diff --git a/.agent/skills/adev-writing-guide/SKILL.md b/.agent/skills/adev-writing-guide/SKILL.md index 250afcbfad1a..bc70c81cd7d4 100644 --- a/.agent/skills/adev-writing-guide/SKILL.md +++ b/.agent/skills/adev-writing-guide/SKILL.md @@ -70,23 +70,24 @@ Use the appropriate language identifier for syntax highlighting: - **TypeScript (Generic):** Use `ts` for plain TypeScript. - **HTML (Generic):** Use `html` for plain HTML. - **Shell/Terminal:** Use `shell` or `bash`. -- **Mermaid Diagrams:** Use `mermaid`. +- **Mermaid Diagrams:** Use a `mermaid` fenced block. `` is not supported and fails the build. #### Attributes -You can enhance code blocks with attributes in curly braces `{}` after the language identifier: +You can enhance code blocks with attributes in curly braces `{}` after the language identifier. `header` and `highlight` take a value after a colon; the rest are bare flags, and writing one as `flag: true` fails the build with `Invalid code block metadata`, as does an unrecognized key: -- `header="Title"`: Adds a title to the code block. +- `header: "Title"`: Adds a title to the code block. - `linenums`: Enables line numbering. -- `highlight="[1, 3-5]"`: Highlights specific lines. +- `highlight: [2]`: Highlights specific lines. An ascending two-number array is a range, so `[12, 19]` highlights lines 12 through 19. One number, or three or more, is a literal list. Nest one level to mix the two: `[[3,7], 9]`. - `hideCopy`: Hides the copy button. +- `hideDollar`: Hides the `$` prompt in shell examples. - `prefer`: Marks code as a preferred example (green border/check). - `avoid`: Marks code as an example to avoid (red border/cross). **Example:** ````markdown -```angular-ts {header:"My Component", linenums, highlight="[2]"} +```angular-ts {header: "My Component", linenums, highlight: [2]} @Component({ selector: 'my-app', template: '

Hello

', @@ -97,18 +98,19 @@ export class App {} #### `` Component -For more advanced code block features, use the `` component: +For more advanced code block features, use the `` component. Its attributes use HTML syntax, `attr="value"` with double quotes, and bare names for the boolean ones. It validates nothing, so an unrecognized attribute and a single-quoted value are both ignored without an error: - `path`: Path to a source file (e.g., `adev/src/content/examples/...`). - `header`: Custom header text. -- `language`: Language identifier (e.g., `angular-ts`). +- `language`: Language identifier (e.g., `angular-ts`). When omitted, it is inferred from the file extension, and an extension it does not recognize falls back to `angular-ts`, so set it for shell, markdown and scss files. - `linenums`: Boolean attribute. -- `highlight`: Array of line numbers/ranges (e.g., `[[3,7], 9]`). -- `diff`: Path to diff file. +- `highlight`: Array of line numbers/ranges, with the same semantics as the fenced form (e.g., `[[3,7], 9]`). - `visibleLines`: Range of lines to show initially (collapsible). - `region`: Region to extract from source file. -- `preview`: Boolean. Renders a live preview (StackBlitz). _Only works with standalone examples._ +- `preview`: Boolean. Renders the example as a running component below the code. _Only works with standalone examples._ - `hideCode`: Boolean. Collapses code by default. +- `hideDollar`: Hides the `$` prompt in shell examples. +- `prefer` / `avoid`: Mark the example as preferred or as one to avoid. **Multifile Example:** @@ -127,7 +129,7 @@ Use specific keywords followed by a colon for alerts. These render as styled blo - `TIP:` For helpful hints or shortcuts. - `IMPORTANT:` For crucial information. - `CRITICAL:` For warnings about potential data loss or severe issues. -- `TODO`: For incomplete documentation. +- `TODO:` For incomplete documentation. - `QUESTION:` To pose a question to the reader. - `SUMMARY:` For section summaries. - `TLDR:` For concise summaries. @@ -142,8 +144,9 @@ TIP: Use `ng serve` to run your application locally. ### Custom Components - **Cards (``):** - - Must be inside ``. - - Attributes: `title`, `link`, `href`. + - Usually inside ``; a single card also renders on its own. + - Attributes: `title`, `href`, `link`, `imgSrc`, `iconImgSrc`, `titleInline`. + - `href` is the destination and `link` only replaces the default "Learn more" label, so a URL written in `link` renders as text and a card without `href` is not clickable. - **Callouts (``):** - Attributes: `title`, `important`, `critical`. - **Pills (``):** @@ -156,7 +159,7 @@ TIP: Use `ng serve` to run your application locally. - Must be inside ``. - Attributes: `label`. - **Videos (``):** - - Attributes: `src` (YouTube embed URL), `alt`. + - Attributes: `src` (YouTube embed URL), `title` (names the video in the play link's label). ### Images diff --git a/.agent/skills/pr_review/scripts/determine_review_type.sh b/.agent/skills/pr_review/scripts/determine_review_type.sh index d773b40f6e42..06f79be4efeb 100755 --- a/.agent/skills/pr_review/scripts/determine_review_type.sh +++ b/.agent/skills/pr_review/scripts/determine_review_type.sh @@ -4,24 +4,28 @@ set -euo pipefail # determine_review_type.sh # Determines if the PR should be reviewed locally or remotely based on author. -if [ -z "$1" ]; then - echo "Usage: determine_review_type.sh " +if [ "$#" -lt 1 ] || [ -z "$1" ]; then + echo "Usage: $0 " >&2 exit 1 fi -PR_NUMBER=$1 +PR_NUMBER="$1" + +# Ensure gh cli is installed +if ! command -v gh &> /dev/null; then + echo "Error: gh CLI could not be found. Please install and authenticate." >&2 + exit 1 +fi # Get current authenticated user -CURRENT_USER=$(gh api user -q .login 2>/dev/null) -if [ $? -ne 0 ]; then - echo "Error: Could not determine current GitHub user. Are you logged in to gh?" +if ! CURRENT_USER=$(gh api user -q .login); then + echo "Error: Could not determine current GitHub user. Are you logged in to gh?" >&2 exit 1 fi -# Get PR author -PR_AUTHOR=$(gh pr view "$PR_NUMBER" --json author -q .author.login 2>/dev/null) -if [ $? -ne 0 ]; then - echo "Error: Could not retrieve PR information for $PR_NUMBER." +# Get PR author. `--` keeps a leading dash in the argument from being read as a flag. +if ! PR_AUTHOR=$(gh pr view --json author -q .author.login -- "$PR_NUMBER"); then + echo "Error: Could not retrieve PR information for $PR_NUMBER." >&2 exit 1 fi diff --git a/.agent/skills/reference-compiler-cli/SKILL.md b/.agent/skills/reference-compiler-cli/SKILL.md index c26878c38c16..a969d556a275 100644 --- a/.agent/skills/reference-compiler-cli/SKILL.md +++ b/.agent/skills/reference-compiler-cli/SKILL.md @@ -49,12 +49,12 @@ The compiler is designed as a **lazy, incremental, and partial** compilation pip ### 4. Template Type Checking (`ngtsc/typecheck`) - **`TemplateTypeChecker`**: Generates "Type Check Blocks" (TCBs). A TCB is a block of TypeScript code that represents the template's logic in a way `tsc` can understand and check for errors. -- **`TypeCheckBlock`**: The actual generated code that validates bindings, events, and structural directives. +- **`generateTypeCheckBlock`** (from `@angular/compiler`, called by `TypeCheckFile` and `InlineTcbOp`): Generates TypeScript source for checking template bindings, events, directive usage, and host bindings. ### 5. Metadata & Scope (`ngtsc/metadata`, `ngtsc/scope`) - **`MetadataReader`**: Reads Angular metadata from source files (using `LocalMetadataRegistry`) and `.d.ts` files (using `DtsMetadataReader`). -- **`ScopeRegistry`**: Determines the "compilation scope" of a component (which directives/pipes are available to it), handling `NgModule` transitive exports and Standalone Component imports. +- **`ComponentScopeReader`**: Determines the "compilation scope" of a component (which directives/pipes are available to it), handling `NgModule` transitive exports and Standalone Component imports. ### 6. Emit & Transformation (`ngtsc/transform`) @@ -71,7 +71,7 @@ The compiler is designed as a **lazy, incremental, and partial** compilation pip - No cross-file resolution happens here (allowing for parallelism and caching). 3. **Resolution** (`resolve`): - `TraitCompiler` resolves traits. - - Components link their templates to specific Directives and Pipes (found via `ScopeRegistry`). + - Components link their templates to specific Directives and Pipes (found via `ComponentScopeReader`). - Import cycles are detected and handled (e.g., via "remote scoping"). 4. **Type Checking**: - `TemplateTypeChecker` creates TCBs for all components. @@ -87,5 +87,5 @@ The compiler is designed as a **lazy, incremental, and partial** compilation pip - `packages/compiler-cli/src/ngtsc/core/src/compiler.ts`: Core logic (`NgCompiler`). - `packages/compiler-cli/src/ngtsc/transform/src/trait.ts`: Trait state machine. - `packages/compiler-cli/src/ngtsc/annotations/component/src/handler.ts`: Component compilation logic. -- `packages/compiler-cli/src/ngtsc/typecheck/src/template_type_checker.ts`: Type checking logic. +- `packages/compiler-cli/src/ngtsc/typecheck/src/checker.ts`: Type checking logic (`TemplateTypeCheckerImpl`). - `packages/compiler-cli/src/ngtsc/transform/src/transform.ts`: AST transformation logic. diff --git a/.agent/skills/reference-core/SKILL.md b/.agent/skills/reference-core/SKILL.md index aecc3f9c801b..432202b11deb 100644 --- a/.agent/skills/reference-core/SKILL.md +++ b/.agent/skills/reference-core/SKILL.md @@ -31,13 +31,13 @@ The rendering engine (located in `packages/core/src/render3`) uses an **instruct - Directive/Component instances. - _Context_: `packages/core/src/render3/interfaces/view.ts` -- **TView (Template View)**: An array containing the _static structure_ of a view. It is shared across all instances (`LView`s) of the same component/template. It holds: +- **TView (Template View)**: An object describing the _static structure_ of a view; its parallel array is `TView.data`. It is shared across all instances (`LView`s) of the same component/template. It holds: - Property names for bindings. - Node relationship information. - Compiled directive definitions. - _Context_: `packages/core/src/render3/interfaces/view.ts` -- **Memory Layout**: `LView` and `TView` are parallel arrays. Index `i` in `LView` corresponds to metadata at index `i` in `TView`. +- **Memory Layout**: `LView` and `TView.data` are parallel arrays. Index `i` in `LView` corresponds to metadata at index `i` in `TView.data`. - `HEADER`: Fixed size, contains context (Parent, Host, etc.). - `DECLS`: Static nodes (elements, text, pipes). - `VARS`: Binding values. @@ -69,8 +69,8 @@ DI in Angular is hierarchical and split into two systems that interact: - **Dirty Checking**: Angular checks if values bound in templates have changed. - **Strategies**: - - `Default`: Checks everything. - - `OnPush`: Checks only if inputs change, events fire, or signals update. + - `OnPush`: The default. Checks when inputs change, events fire, template signals update, or the view is explicitly marked for checking. + - `Eager`: Checks whenever the change detection traversal reaches the component. (`Default` is the deprecated alias for `Eager`.) - **Signals**: The new reactivity primitive. Signals notify the scheduler when they change, potentially allowing for fine-grained updates (Zoneless). ## 5. Key Directories to Know @@ -81,7 +81,7 @@ DI in Angular is hierarchical and split into two systems that interact: - `src/di`: Dependency injection system. - `src/change_detection`: Change detection logic. - `src/zone`: Zone.js integration. -- `src/signal`: Signals implementation (if present in this version, otherwise likely in `primitives`). +- `src/render3/reactivity`: Signals implementation (`signal`, `computed`, `effect`), built on the reactive graph in `primitives/signals`. ## 6. Conventions & Gotchas diff --git a/.bazelversion b/.bazelversion index df5119ec64e6..11f1d47dac93 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -8.7.0 +8.8.2 diff --git a/.gitattributes b/.gitattributes index daf315446071..e31c46deb2f1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,3 +4,6 @@ # JS and TS files must always use LF for tools to work *.js eol=lf *.ts eol=lf + +# Preserve verbatim line endings for NGP golden test fixtures +packages/compiler-cli/preprocessor/test/golden/** -text diff --git a/.github/actions/deploy-docs-site/main.js b/.github/actions/deploy-docs-site/main.js index 1cfc1fb004af..f63e453e6b03 100644 --- a/.github/actions/deploy-docs-site/main.js +++ b/.github/actions/deploy-docs-site/main.js @@ -1861,10 +1861,66 @@ var require_request = __commonJS({ return false; } } - onUpgrade(statusCode, headers, socket) { + /** + * @param {number|null} statusCode + * @param {Buffer[]|null} headers + * @param {import('node:stream').Duplex} socket + * @param {string} [statusText] + */ + onUpgrade(statusCode, headers, socket, statusText = "") { + this.onFinally(); assert2(!this.aborted); assert2(!this.completed); - return this[kHandler].onUpgrade(statusCode, headers, socket); + if (statusCode !== null) { + this.#publishUpgradeHeaders(statusCode, headers, statusText); + } + const result = this[kHandler].onUpgrade(statusCode, headers, socket); + if (!this.aborted) { + this.completed = true; + if (statusCode !== null) { + this.#publishUpgradeTrailers(); + } + } + return result; + } + /** + * @param {number} statusCode + * @param {import('node:http2').IncomingHttpHeaders} headers + * @param {(headers: import('node:http2').IncomingHttpHeaders) => Buffer[]} parseHeaders + * @param {string} [statusText] + */ + onUpgradeResponse(statusCode, headers, parseHeaders, statusText = "") { + assert2(!this.aborted); + assert2(this.completed); + if (channels.headers.hasSubscribers) { + this.#publishUpgradeHeaders(statusCode, parseHeaders(headers), statusText); + } + this.#publishUpgradeTrailers(); + } + /** + * @param {Error} error + */ + onUpgradeError(error2) { + assert2(!this.aborted); + assert2(this.completed); + if (channels.error.hasSubscribers) { + channels.error.publish({ request: this, error: error2 }); + } + } + /** + * @param {number} statusCode + * @param {Buffer[]} headers + * @param {string} statusText + */ + #publishUpgradeHeaders(statusCode, headers, statusText) { + if (channels.headers.hasSubscribers) { + channels.headers.publish({ request: this, response: { statusCode, headers, statusText } }); + } + } + #publishUpgradeTrailers() { + if (channels.trailers.hasSubscribers) { + channels.trailers.publish({ request: this, trailers: [] }); + } } onComplete(trailers) { this.onFinally(); @@ -2049,6 +2105,7 @@ var require_dispatcher = __commonJS({ var require_dispatcher_base = __commonJS({ ""(exports, module) { "use strict"; + var buffer = __require("node:buffer"); var Dispatcher = require_dispatcher(); var { ClientDestroyedError, @@ -2060,6 +2117,7 @@ var require_dispatcher_base = __commonJS({ var kOnClosed = Symbol("onClosed"); var kInterceptedDispatch = Symbol("Intercepted Dispatch"); var kWebSocketOptions = Symbol("webSocketOptions"); + var kEventSourceOptions = Symbol("eventSourceOptions"); var DispatcherBase = class extends Dispatcher { constructor(opts) { super(); @@ -2068,6 +2126,7 @@ var require_dispatcher_base = __commonJS({ this[kClosed] = false; this[kOnClosed] = []; this[kWebSocketOptions] = opts?.webSocket ?? {}; + this[kEventSourceOptions] = opts?.eventSource ?? {}; } get webSocketOptions() { return { @@ -2075,6 +2134,11 @@ var require_dispatcher_base = __commonJS({ maxPayloadSize: this[kWebSocketOptions].maxPayloadSize ?? 128 * 1024 * 1024 }; } + get eventSourceOptions() { + return { + maxEventSize: this[kEventSourceOptions].maxEventSize ?? buffer.kStringMaxLength + }; + } get destroyed() { return this[kDestroyed]; } @@ -5430,7 +5494,7 @@ var require_body = __commonJS({ const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, "0")}`; const prefix = `--${boundary}\r Content-Disposition: form-data`; - const escape = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"); + const escape2 = (str) => str.replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"); const normalizeLinefeeds = (value) => value.replace(/\r?\n|\r/g, "\r\n"); const blobParts = []; const rn = new Uint8Array([13, 10]); @@ -5438,14 +5502,14 @@ Content-Disposition: form-data`; let hasUnknownSizeValue = false; for (const [name, value] of object) { if (typeof value === "string") { - const chunk2 = textEncoder.encode(prefix + `; name="${escape(normalizeLinefeeds(name))}"\r + const chunk2 = textEncoder.encode(prefix + `; name="${escape2(normalizeLinefeeds(name))}"\r \r ${normalizeLinefeeds(value)}\r `); blobParts.push(chunk2); length += chunk2.byteLength; } else { - const chunk2 = textEncoder.encode(`${prefix}; name="${escape(normalizeLinefeeds(name))}"` + (value.name ? `; filename="${escape(value.name)}"` : "") + `\r + const chunk2 = textEncoder.encode(`${prefix}; name="${escape2(normalizeLinefeeds(name))}"` + (value.name ? `; filename="${escape2(value.name)}"` : "") + `\r Content-Type: ${value.type || "application/octet-stream"}\r \r `); @@ -6000,7 +6064,7 @@ var require_client_h1 = __commonJS({ } } onUpgrade(head) { - const { upgrade, client, socket, headers, statusCode } = this; + const { upgrade, client, socket, headers, statusCode, statusText } = this; assert2(upgrade); assert2(client[kSocket] === socket); assert2(!socket.destroyed); @@ -6025,9 +6089,10 @@ var require_client_h1 = __commonJS({ client[kQueue][client[kRunningIdx]++] = null; client.emit("disconnect", client[kUrl], [client], new InformationalError("upgrade")); try { - request3.onUpgrade(statusCode, headers, socket); - } catch (err) { - util.destroy(socket, err); + request3.onUpgrade(statusCode, headers, socket, statusText); + } catch (error2) { + util.errorRequest(client, request3, error2); + util.destroy(socket, error2); } client[kResume](); } @@ -6214,7 +6279,6 @@ var require_client_h1 = __commonJS({ socket[kSocketUsed] = false; socket[kParser] = new Parser2(client, socket, llhttpInstance); addListener(socket, "error", function(err) { - assert2(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID"); const parser2 = this[kParser]; if (err.code === "ECONNRESET" && parser2.statusCode && !parser2.shouldKeepAlive) { const parserErr = parser2.finish(); @@ -6319,21 +6383,20 @@ var require_client_h1 = __commonJS({ } function clearIdleSocketValidation(socket) { if (socket[kIdleSocketValidationTimeout]) { - clearTimeout(socket[kIdleSocketValidationTimeout]); + clearImmediate(socket[kIdleSocketValidationTimeout]); socket[kIdleSocketValidationTimeout] = null; } socket[kIdleSocketValidation] = 0; } function scheduleIdleSocketValidation(client, socket) { socket[kIdleSocketValidation] = 1; - socket[kIdleSocketValidationTimeout] = setTimeout(() => { + socket[kIdleSocketValidationTimeout] = setImmediate(() => { socket[kIdleSocketValidationTimeout] = null; socket[kIdleSocketValidation] = 2; if (client[kSocket] === socket && !socket.destroyed) { client[kResume](); } - }, 0); - socket[kIdleSocketValidationTimeout].unref?.(); + }); } function resumeH1(client) { const socket = client[kSocket]; @@ -6431,11 +6494,17 @@ var require_client_h1 = __commonJS({ } const socket = client[kSocket]; clearIdleSocketValidation(socket); - const abort = (err) => { - if (request3.aborted || request3.completed) { + const abort = (error2) => { + if (request3.aborted) { return; } - util.errorRequest(client, request3, err || new RequestAbortedError()); + if (request3.completed) { + if (request3.upgrade || request3.method === "CONNECT") { + util.destroy(socket, new InformationalError("aborted")); + } + return; + } + util.errorRequest(client, request3, error2 || new RequestAbortedError()); util.destroy(body); util.destroy(socket, new InformationalError("aborted")); }; @@ -6791,6 +6860,7 @@ var require_client_h2 = __commonJS({ ""(exports, module) { "use strict"; var assert2 = __require("node:assert"); + var { errorMonitor } = __require("node:events"); var { pipeline } = __require("node:stream"); var util = require_util(); var { @@ -6851,6 +6921,10 @@ var require_client_h2 = __commonJS({ } return result; } + function parseH2ResponseHeaders(headers) { + const { [HTTP2_HEADER_STATUS]: _statusCode, ...realHeaders } = headers; + return parseH2Headers(realHeaders); + } async function connectH2(client, socket) { client[kSocket] = socket; if (!h2ExperimentalWarned) { @@ -6888,7 +6962,6 @@ var require_client_h2 = __commonJS({ client[kHTTP2Session] = session; socket[kHTTP2Session] = session; util.addListener(socket, "error", function(err) { - assert2(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID"); this[kError] = err; this[kClient][kOnError](err); }); @@ -6947,7 +7020,6 @@ var require_client_h2 = __commonJS({ } } function onHttp2SessionError(err) { - assert2(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID"); this[kSocket][kError] = err; this[kClient][kOnError](err); } @@ -7014,16 +7086,22 @@ var require_client_h2 = __commonJS({ const { hostname, port } = client[kUrl]; headers[HTTP2_HEADER_AUTHORITY] = host || `${hostname}${port ? `:${port}` : ""}`; headers[HTTP2_HEADER_METHOD] = method; - const abort = (err) => { - if (request3.aborted || request3.completed) { + const abort = (error2) => { + if (request3.aborted) { return; } - err = err || new RequestAbortedError(); - util.errorRequest(client, request3, err); + if (request3.completed) { + if (method === "CONNECT" && stream != null) { + util.destroy(stream, error2 || new RequestAbortedError()); + } + return; + } + error2 = error2 || new RequestAbortedError(); + util.errorRequest(client, request3, error2); if (stream != null) { - util.destroy(stream, err); + util.destroy(stream, error2); } - util.destroy(body, err); + util.destroy(body, error2); client[kQueue][client[kRunningIdx]++] = null; client[kResume](); }; @@ -7038,18 +7116,42 @@ var require_client_h2 = __commonJS({ if (method === "CONNECT") { session.ref(); stream = session.request(headers, { endStream: false, signal }); - if (stream.id && !stream.pending) { - request3.onUpgrade(null, null, stream); - ++session[kOpenStreams]; - client[kQueue][client[kRunningIdx]++] = null; - } else { - stream.once("ready", () => { + let upgradeResponseFinished = false; + const onResponse = (headers2) => { + upgradeResponseFinished = true; + stream.off(errorMonitor, onUpgradeError); + request3.onUpgradeResponse(Number(headers2[HTTP2_HEADER_STATUS]), headers2, parseH2ResponseHeaders); + }; + const onUpgradeError = (error2) => { + upgradeResponseFinished = true; + stream.off("response", onResponse); + request3.onUpgradeError(error2); + }; + const onReady = () => { + try { request3.onUpgrade(null, null, stream); - ++session[kOpenStreams]; - client[kQueue][client[kRunningIdx]++] = null; - }); - } + } catch (error2) { + stream.off("response", onResponse); + abort(error2); + return; + } + if (request3.aborted) { + return; + } + stream.off("error", abort); + stream.once(errorMonitor, onUpgradeError); + client[kQueue][client[kRunningIdx]++] = null; + }; + stream.once("response", onResponse); + stream.once("error", abort); + ++session[kOpenStreams]; + onReady(); stream.once("close", () => { + if (!upgradeResponseFinished && request3.completed) { + stream.off("response", onResponse); + stream.off(errorMonitor, onUpgradeError); + request3.onUpgradeError(new InformationalError(`HTTP/2: "stream error" received - code ${stream.rstCode}`)); + } session[kOpenStreams] -= 1; if (session[kOpenStreams] === 0) session.unref(); @@ -7612,9 +7714,10 @@ var require_client = __commonJS({ // h2 maxConcurrentStreams, allowH2, - webSocket + webSocket, + eventSource } = {}) { - super({ webSocket }); + super({ webSocket, eventSource }); if (keepAlive !== void 0) { throw new InvalidArgumentError("unsupported keepAlive, use pipelining=0 instead"); } @@ -8512,7 +8615,7 @@ var require_agent = __commonJS({ return opts && opts.connections === 1 ? new Client(origin, opts) : new Pool(origin, opts); } var Agent = class extends DispatcherBase { - constructor({ factory = defaultFactory, maxRedirections = 0, connect, ...options } = {}) { + constructor({ factory = defaultFactory, maxRedirections = 0, connect, tls, ...options } = {}) { if (typeof factory !== "function") { throw new InvalidArgumentError("factory must be a function."); } @@ -8526,8 +8629,11 @@ var require_agent = __commonJS({ if (connect && typeof connect !== "function") { connect = { ...connect }; } + if (tls && typeof tls !== "function") { + tls = { ...tls }; + } this[kInterceptors] = options.interceptors?.Agent && Array.isArray(options.interceptors.Agent) ? options.interceptors.Agent : [createRedirectInterceptor({ maxRedirections })]; - this[kOptions] = { ...util.deepClone(options), connect }; + this[kOptions] = { ...util.deepClone(options), connect, tls }; this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0; this[kMaxRedirections] = maxRedirections; this[kFactory] = factory; @@ -9035,6 +9141,7 @@ var require_retry_handler = __commonJS({ this.end = null; this.etag = null; this.resume = null; + this.headersSent = false; this.handler.onConnect((reason) => { this.aborted = true; if (this.abort) { @@ -9044,6 +9151,17 @@ var require_retry_handler = __commonJS({ } }); } + checkpointResponseEnd(headers, resume) { + if (this.end == null && this.opts.method !== "HEAD") { + const contentLength = headers["content-length"]; + this.end = contentLength != null ? Number(contentLength) - 1 : null; + assert2( + this.end == null || Number.isFinite(this.end), + "invalid content-length" + ); + } + this.resume = this.end != null ? resume : null; + } onRequestSent() { if (this.handler.onRequestSent) { this.handler.onRequestSent(); @@ -9106,7 +9224,9 @@ var require_retry_handler = __commonJS({ const headers = parseHeaders(rawHeaders); this.retryCount += 1; if (statusCode >= 300) { - if (this.retryOpts.statusCodes.includes(statusCode) === false) { + if (!this.headersSent && this.retryOpts.statusCodes.includes(statusCode) === false) { + this.headersSent = true; + this.checkpointResponseEnd(headers, resume); return this.handler.onHeaders( statusCode, rawHeaders, @@ -9161,8 +9281,15 @@ var require_retry_handler = __commonJS({ return false; } const { start, size, end = size - 1 } = contentRange; - assert2(this.start === start, "content-range mismatch"); - assert2(this.end == null || this.end === end, "content-range mismatch"); + if (this.start !== start || this.end != null && this.end !== end) { + this.abort( + new RequestRetryError("Content-Range mismatch", statusCode, { + headers, + data: { count: this.retryCount } + }) + ); + return false; + } this.resume = resume; return true; } @@ -9170,6 +9297,7 @@ var require_retry_handler = __commonJS({ if (statusCode === 206) { const range = parseRangeHeader(headers["content-range"]); if (range == null) { + this.headersSent = true; return this.handler.onHeaders( statusCode, rawHeaders, @@ -9201,6 +9329,7 @@ var require_retry_handler = __commonJS({ "invalid content-length" ); this.resume = resume; + this.headersSent = true; this.etag = headers.etag != null ? headers.etag : null; if (this.etag != null && this.etag.startsWith("W/")) { this.etag = null; @@ -9228,7 +9357,7 @@ var require_retry_handler = __commonJS({ return this.handler.onComplete(rawTrailers); } onError(err) { - if (this.aborted || isDisturbed(this.opts.body)) { + if (this.aborted || isDisturbed(this.opts.body) || this.headersSent && this.resume == null) { return this.handler.onError(err); } if (this.retryCount - this.retryCountCheckpoint > 0) { @@ -14236,8 +14365,9 @@ var require_fetch = __commonJS({ } ); response.body = { stream, source: null, length: null }; - fetchParams.controller.onAborted = onAborted; - fetchParams.controller.on("terminated", onAborted); + if (!fetchParams.controller.resume) { + fetchParams.controller.on("terminated", onAborted); + } fetchParams.controller.resume = async () => { while (true) { let bytes; @@ -14337,7 +14467,6 @@ var require_fetch = __commonJS({ headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString("latin1"), true); } location = headersList.get("location", true); - this.body = new Readable({ read: resume }); const decoders = []; const willFollow = location && request3.redirect === "follow" && redirectStatusSet.has(status); if (request3.method !== "HEAD" && request3.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) { @@ -14345,7 +14474,7 @@ var require_fetch = __commonJS({ const codings = contentEncoding ? contentEncoding.toLowerCase().split(",") : []; const maxContentEncodings = 5; if (codings.length > maxContentEncodings) { - reject(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`)); + this.abort(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`)); return true; } for (let i = codings.length - 1; i >= 0; --i) { @@ -14375,6 +14504,7 @@ var require_fetch = __commonJS({ } } } + this.body = new Readable({ read: resume }); const onError = this.onError.bind(this); resolve5({ status, @@ -14400,9 +14530,6 @@ var require_fetch = __commonJS({ if (this.abort) { fetchParams.controller.off("terminated", this.abort); } - if (fetchParams.controller.onAborted) { - fetchParams.controller.off("terminated", fetchParams.controller.onAborted); - } fetchParams.controller.ended = true; this.body.push(null); }, @@ -17118,7 +17245,7 @@ var require_connection = __commonJS({ const secProtocol = response.headersList.get("Sec-WebSocket-Protocol"); if (secProtocol !== null) { const requestProtocols = getDecodeSplit("sec-websocket-protocol", request3.headersList); - if (!requestProtocols.includes(secProtocol)) { + if (requestProtocols === null || !requestProtocols.includes(secProtocol)) { failWebsocketConnection(ws, "Protocol was not set in the opening handshake."); return; } @@ -17266,6 +17393,7 @@ var require_permessage_deflate = __commonJS({ if (this.#maxPayloadSize > 0 && this.#inflate[kLength] > this.#maxPayloadSize) { callback(new MessageSizeExceededError()); this.#inflate.removeAllListeners(); + this.#inflate.destroy(); this.#inflate = null; return; } @@ -17477,6 +17605,17 @@ var require_receiver = __commonJS({ if (isControlFrame(this.#info.opcode)) { this.#loop = this.parseControlFrame(body); this.#state = parserStates.INFO; + const socket = this.ws[kResponse].socket; + if (this.#loop && socket.writableNeedDrain) { + this.#loop = false; + socket.once("drain", () => { + if (this.destroyed) + return; + this.#loop = true; + this.run(callback); + }); + return; + } } else { if (!this.#info.compressed) { if (!this.writeFragments(body)) { @@ -18172,6 +18311,7 @@ var require_util8 = __commonJS({ var require_eventsource_stream = __commonJS({ ""(exports, module) { "use strict"; + var buffer = __require("node:buffer"); var { Transform } = __require("node:stream"); var { isASCIINumber, isValidLastEventId } = require_util8(); var BOM = [239, 187, 191]; @@ -18179,6 +18319,49 @@ var require_eventsource_stream = __commonJS({ var CR = 13; var COLON = 58; var SPACE = 32; + var defaultMaxEventSize = buffer.kStringMaxLength; + var DATA = Buffer.from("data"); + var EVENT = Buffer.from("event"); + var ID = Buffer.from("id"); + var RETRY = Buffer.from("retry"); + var minParserItems = 1024; + var maxParserItems = 131072; + var bytesPerParserItem = 128; + function isASCIINumberBytes(buffer2, start) { + if (start >= buffer2.length) { + return false; + } + for (let i = start; i < buffer2.length; i++) { + if (buffer2[i] < 48 || buffer2[i] > 57) { + return false; + } + } + return true; + } + function isValidLastEventIdBytes(buffer2, start) { + for (let i = start; i < buffer2.length; i++) { + if (buffer2[i] === 0) { + return false; + } + } + return true; + } + function isFieldName(line, length, field) { + if (length !== field.length) { + return false; + } + for (let i = 0; i < length; i++) { + if (line[i] !== field[i]) { + return false; + } + } + return true; + } + function createMaxEventSizeExceededError() { + const error2 = new Error("EventSource message size exceeded"); + error2.aborted = false; + return error2; + } var EventSourceStream = class extends Transform { /** * @type {eventSourceSettings} @@ -18198,10 +18381,20 @@ var require_eventsource_stream = __commonJS({ */ eventEndCheck = false; /** - * @type {Buffer} + * @type {Buffer[]} */ - buffer = null; + chunks = []; + chunkIndex = 0; pos = 0; + lineChunkIndex = 0; + linePos = 0; + lineLength = 0; + eventSize = 0; + eventFieldSizes = { data: 0, event: 0, id: 0, retry: 0 }; + dataLineCount = 0; + maxEventSize; + maxDataLines; + maxBufferedChunks; event = { data: void 0, event: void 0, @@ -18210,6 +18403,7 @@ var require_eventsource_stream = __commonJS({ }; /** * @param {object} options + * @param {number} [options.maxEventSize] * @param {eventSourceSettings} options.eventSourceSettings * @param {Function} [options.push] */ @@ -18217,6 +18411,10 @@ var require_eventsource_stream = __commonJS({ options.readableObjectMode = true; super(options); this.state = options.eventSourceSettings || {}; + this.maxEventSize = options.maxEventSize ?? defaultMaxEventSize; + const parserItemLimit = this.maxEventSize > 0 ? Math.min(maxParserItems, Math.max(minParserItems, Math.floor(this.maxEventSize / bytesPerParserItem))) : 0; + this.maxDataLines = parserItemLimit; + this.maxBufferedChunks = parserItemLimit; if (options.push) { this.push = options.push; } @@ -18232,63 +18430,34 @@ var require_eventsource_stream = __commonJS({ callback(); return; } - if (this.buffer) { - this.buffer = Buffer.concat([this.buffer, chunk]); - } else { - this.buffer = chunk; + if (this.maxEventSize > 0 && this.chunks.length >= this.maxBufferedChunks && chunk[0] !== LF && chunk[0] !== CR) { + callback(createMaxEventSizeExceededError()); + return; } + this.chunks.push(chunk); if (this.checkBOM) { - switch (this.buffer.length) { - case 1: - if (this.buffer[0] === BOM[0]) { - callback(); - return; - } - this.checkBOM = false; - callback(); - return; - case 2: - if (this.buffer[0] === BOM[0] && this.buffer[1] === BOM[1]) { - callback(); - return; - } - this.checkBOM = false; - break; - case 3: - if (this.buffer[0] === BOM[0] && this.buffer[1] === BOM[1] && this.buffer[2] === BOM[2]) { - this.buffer = Buffer.alloc(0); - this.checkBOM = false; - callback(); - return; - } - this.checkBOM = false; - break; - default: - if (this.buffer[0] === BOM[0] && this.buffer[1] === BOM[1] && this.buffer[2] === BOM[2]) { - this.buffer = this.buffer.subarray(3); - } - this.checkBOM = false; - break; + if (this.handleBOM()) { + callback(); + return; } } - while (this.pos < this.buffer.length) { + while (this.hasCurrentByte()) { + const byte = this.currentByte(); if (this.eventEndCheck) { if (this.crlfCheck) { - if (this.buffer[this.pos] === LF) { - this.buffer = this.buffer.subarray(this.pos + 1); - this.pos = 0; + if (byte === LF) { this.crlfCheck = false; + this.consumeCurrentByte(); continue; } this.crlfCheck = false; } - if (this.buffer[this.pos] === LF || this.buffer[this.pos] === CR) { - if (this.buffer[this.pos] === CR) { + if (byte === LF || byte === CR) { + if (byte === CR) { this.crlfCheck = true; } - this.buffer = this.buffer.subarray(this.pos + 1); - this.pos = 0; - if (this.event.data !== void 0 || this.event.event || this.event.id || this.event.retry) { + this.consumeCurrentByte(); + if (this.hasPendingEvent()) { this.processEvent(this.event); } this.clearEvent(); @@ -18297,23 +18466,36 @@ var require_eventsource_stream = __commonJS({ this.eventEndCheck = false; continue; } - if (this.buffer[this.pos] === LF || this.buffer[this.pos] === CR) { - if (this.buffer[this.pos] === CR) { + if (byte === LF || byte === CR) { + if (byte === CR) { this.crlfCheck = true; } - this.parseLine(this.buffer.subarray(0, this.pos), this.event); - this.buffer = this.buffer.subarray(this.pos + 1); - this.pos = 0; + try { + this.parseLine(this.readLine(), this.event); + } catch (error2) { + callback(error2); + return; + } + this.consumeCurrentByte(); this.eventEndCheck = true; continue; } - this.pos++; + if (this.maxEventSize > 0 && ++this.lineLength > this.maxEventSize + 7) { + callback(createMaxEventSizeExceededError()); + return; + } + this.advanceCursor(); } callback(); } + _destroy(error2, callback) { + this.chunks.length = 0; + this.clearEvent(); + super._destroy(error2, callback); + } /** * @param {Buffer} line - * @param {EventStreamEvent} event + * @param {EventSourceStreamEvent} event */ parseLine(line, event) { if (line.length === 0) { @@ -18323,45 +18505,61 @@ var require_eventsource_stream = __commonJS({ if (colonPosition === 0) { return; } - let field = ""; - let value = ""; + let fieldLength = line.length; + let valueStart = line.length; if (colonPosition !== -1) { - field = line.subarray(0, colonPosition).toString("utf8"); - let valueStart = colonPosition + 1; + fieldLength = colonPosition; + valueStart = colonPosition + 1; if (line[valueStart] === SPACE) { ++valueStart; } - value = line.subarray(valueStart).toString("utf8"); - } else { - field = line.toString("utf8"); - value = ""; } - switch (field) { - case "data": - if (event[field] === void 0) { - event[field] = value; - } else { - event[field] += ` + if (isFieldName(line, fieldLength, DATA)) { + if (this.maxEventSize > 0 && this.dataLineCount >= this.maxDataLines) { + throw createMaxEventSizeExceededError(); + } + const valueBytes = line.length - valueStart; + const dataSize = this.eventFieldSizes.data + (event.data === void 0 ? 0 : 1) + valueBytes; + this.setEventFieldSize("data", dataSize); + const value = line.toString("utf8", valueStart); + if (event.data === void 0) { + event.data = value; + } else { + event.data += ` ${value}`; - } - break; - case "retry": - if (isASCIINumber(value)) { - event[field] = value; - } - break; - case "id": - if (isValidLastEventId(value)) { - event[field] = value; - } - break; - case "event": - if (value.length > 0) { - event[field] = value; - } - break; + } + this.dataLineCount++; + return; + } + if (isFieldName(line, fieldLength, RETRY)) { + if (isASCIINumberBytes(line, valueStart)) { + this.setEventFieldSize("retry", line.length - valueStart); + event.retry = line.toString("utf8", valueStart); + } + return; + } + if (isFieldName(line, fieldLength, ID)) { + if (isValidLastEventIdBytes(line, valueStart)) { + this.setEventFieldSize("id", line.length - valueStart); + event.id = line.toString("utf8", valueStart); + } + return; + } + if (isFieldName(line, fieldLength, EVENT)) { + if (valueStart < line.length) { + this.setEventFieldSize("event", line.length - valueStart); + event.event = line.toString("utf8", valueStart); + } } } + setEventFieldSize(field, size) { + const eventSize = this.eventSize - this.eventFieldSizes[field] + size; + if (this.maxEventSize > 0 && eventSize > this.maxEventSize) { + throw createMaxEventSizeExceededError(); + } + this.eventSize = eventSize; + this.eventFieldSizes[field] = size; + } /** * @param {EventSourceStreamEvent} event */ @@ -18384,12 +18582,128 @@ ${value}`; } } clearEvent() { - this.event = { - data: void 0, - event: void 0, - id: void 0, - retry: void 0 - }; + this.event.data = void 0; + this.event.event = void 0; + this.event.id = void 0; + this.event.retry = void 0; + this.eventSize = 0; + this.dataLineCount = 0; + this.eventFieldSizes.data = 0; + this.eventFieldSizes.event = 0; + this.eventFieldSizes.id = 0; + this.eventFieldSizes.retry = 0; + } + hasPendingEvent() { + return this.event.data !== void 0 || this.event.event !== void 0 || this.event.id !== void 0 || this.event.retry !== void 0; + } + hasCurrentByte() { + return this.chunkIndex < this.chunks.length && this.pos < this.chunks[this.chunkIndex].length; + } + currentByte() { + return this.chunks[this.chunkIndex][this.pos]; + } + consumeCurrentByte() { + this.advanceCursor(); + this.syncLineStartToCursor(); + } + advanceCursor() { + this.pos++; + while (this.chunkIndex < this.chunks.length && this.pos >= this.chunks[this.chunkIndex].length) { + this.chunkIndex++; + this.pos = 0; + } + } + syncLineStartToCursor() { + this.lineChunkIndex = this.chunkIndex; + this.linePos = this.pos; + this.lineLength = 0; + this.dropConsumedChunks(); + } + dropConsumedChunks() { + if (this.lineChunkIndex > 0) { + const consumed = this.lineChunkIndex; + this.chunks.splice(0, consumed); + this.lineChunkIndex = 0; + this.chunkIndex -= consumed; + } + if (this.chunkIndex === this.chunks.length) { + this.chunks.length = 0; + this.chunkIndex = 0; + this.pos = 0; + this.lineChunkIndex = 0; + this.linePos = 0; + } + } + readLine() { + if (this.lineChunkIndex === this.chunkIndex) { + return this.chunks[this.chunkIndex].subarray(this.linePos, this.pos); + } + const chunks = []; + let length = 0; + for (let i = this.lineChunkIndex; i <= this.chunkIndex; i++) { + const chunk = this.chunks[i]; + const start = i === this.lineChunkIndex ? this.linePos : 0; + const end = i === this.chunkIndex ? this.pos : chunk.length; + const slice = chunk.subarray(start, end); + length += slice.length; + chunks.push(slice); + } + return Buffer.concat(chunks, length); + } + peekBufferedByte(offset) { + let chunkIndex = this.lineChunkIndex; + let pos = this.linePos; + while (chunkIndex < this.chunks.length) { + const chunk = this.chunks[chunkIndex]; + const remaining = chunk.length - pos; + if (offset < remaining) { + return chunk[pos + offset]; + } + offset -= remaining; + chunkIndex++; + pos = 0; + } + } + discardLeadingBytes(count) { + while (count > 0 && this.lineChunkIndex < this.chunks.length) { + const chunk = this.chunks[this.lineChunkIndex]; + const remaining = chunk.length - this.linePos; + if (count < remaining) { + this.linePos += count; + count = 0; + } else { + count -= remaining; + this.lineChunkIndex++; + this.linePos = 0; + } + } + this.chunkIndex = this.lineChunkIndex; + this.pos = this.linePos; + this.dropConsumedChunks(); + } + handleBOM() { + const first = this.peekBufferedByte(0); + const second = this.peekBufferedByte(1); + const third = this.peekBufferedByte(2); + if (second === void 0) { + if (first === BOM[0]) { + return true; + } + this.checkBOM = false; + return true; + } + if (third === void 0) { + if (first === BOM[0] && second === BOM[1]) { + return true; + } + this.checkBOM = false; + return false; + } + if (first === BOM[0] && second === BOM[1] && third === BOM[2]) { + this.discardLeadingBytes(3); + } + this.checkBOM = false; + return !this.hasCurrentByte(); } }; module.exports = { @@ -18413,6 +18727,7 @@ var require_eventsource = __commonJS({ var { delay } = require_util8(); var { kEnumerableProperty } = require_util(); var { environmentSettingsObject } = require_util2(); + var { getGlobalDispatcher } = require_global2(); var experimentalWarned = false; var defaultReconnectionTime = 3e3; var CONNECTING = 0; @@ -18554,6 +18869,7 @@ var require_eventsource = __commonJS({ this.#state.origin = response.urlList[response.urlList.length - 1].origin; const eventSourceStream = new EventSourceStream({ eventSourceSettings: this.#state, + maxEventSize: this.#dispatcher.eventSourceOptions?.maxEventSize, push: (event) => { this.dispatchEvent(createFastMessageEvent( event.type, @@ -18689,7 +19005,8 @@ var require_eventsource = __commonJS({ { key: "dispatcher", // undici only - converter: webidl.converters.any + converter: webidl.converters.any, + defaultValue: () => getGlobalDispatcher() } ]); module.exports = { @@ -19620,146 +19937,6 @@ var require_lib = __commonJS({ } }); -// -var require_dist = __commonJS({ - ""(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.format = format3; - exports.parse = parse4; - var TEXT_REGEXP = /^[\u0009\u0020-\u007e\u0080-\u00ff]*$/; - var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/; - var QUOTE_REGEXP = /[\\"]/g; - var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/; - var NullObject2 = (() => { - const C = function() { - }; - C.prototype = /* @__PURE__ */ Object.create(null); - return C; - })(); - function format3(obj) { - const { type, parameters } = obj; - if (!type || !TYPE_REGEXP.test(type)) { - throw new TypeError(`Invalid type: ${type}`); - } - let result = type; - if (parameters) { - for (const param of Object.keys(parameters)) { - if (!TOKEN_REGEXP.test(param)) { - throw new TypeError(`Invalid parameter name: ${param}`); - } - result += `; ${param}=${qstring(parameters[param])}`; - } - } - return result; - } - function parse4(header, options) { - const stopChar = options?.comma === true ? COMMA2 : 65536; - const len = header.length; - let index = skipOWS2(header, options?.start ?? 0, len); - const valueStart = index; - index = skipValue2(header, index, len, stopChar); - const valueEnd = trailingOWS2(header, valueStart, index); - const type = header.slice(valueStart, valueEnd).toLowerCase(); - if (options?.parameters === false) { - return { type, index, parameters: new NullObject2() }; - } - return parseParameters2(header, type, index, len, stopChar); - } - var SP2 = 32; - var HTAB2 = 9; - var SEMI2 = 59; - var EQ2 = 61; - var DQUOTE2 = 34; - var BSLASH2 = 92; - var COMMA2 = 44; - function parseParameters2(header, type, index, len, stopChar) { - const parameters = new NullObject2(); - parameter: - while (index < len) { - if (header.charCodeAt(index) === stopChar) - break; - index = skipOWS2(header, index + 1, len); - const keyStart = index; - while (index < len) { - const code = header.charCodeAt(index); - if (code === stopChar) - break parameter; - if (code === SEMI2) - continue parameter; - if (code === EQ2) { - const keyEnd = trailingOWS2(header, keyStart, index); - const key = header.slice(keyStart, keyEnd).toLowerCase(); - index = skipOWS2(header, index + 1, len); - if (index < len && header.charCodeAt(index) === DQUOTE2) { - index++; - let value = ""; - while (index < len) { - const code2 = header.charCodeAt(index++); - if (code2 === DQUOTE2) { - index = skipValue2(header, index, len, stopChar); - if (parameters[key] === void 0) - parameters[key] = value; - break; - } - if (code2 === BSLASH2 && index < len) { - value += header[index++]; - continue; - } - value += String.fromCharCode(code2); - } - continue parameter; - } - const valueStart = index; - index = skipValue2(header, index, len, stopChar); - if (parameters[key] === void 0) { - const valueEnd = trailingOWS2(header, valueStart, index); - parameters[key] = header.slice(valueStart, valueEnd); - } - continue parameter; - } - index++; - } - } - return { type, index, parameters }; - } - function skipValue2(str, index, len, stopChar) { - while (index < len) { - const code = str.charCodeAt(index); - if (code === SEMI2 || code === stopChar) - break; - index++; - } - return index; - } - function skipOWS2(header, index, len) { - while (index < len) { - const char = header.charCodeAt(index); - if (char !== SP2 && char !== HTAB2) - break; - index++; - } - return index; - } - function trailingOWS2(header, start, end) { - while (end > start) { - const char = header.charCodeAt(end - 1); - if (char !== SP2 && char !== HTAB2) - break; - end--; - } - return end; - } - function qstring(str) { - if (TOKEN_REGEXP.test(str)) - return str; - if (TEXT_REGEXP.test(str)) - return `"${str.replace(QUOTE_REGEXP, "\\$&")}"`; - throw new TypeError(`Invalid parameter value: ${str}`); - } - } -}); - // var require_lockfile = __commonJS({ ""(exports, module) { @@ -21048,23 +21225,23 @@ var require_lockfile = __commonJS({ } return entries2; } - function removePrefix(pattern, prefix) { - if (pattern.startsWith(prefix)) { - pattern = pattern.slice(prefix.length); + function removePrefix(pattern2, prefix) { + if (pattern2.startsWith(prefix)) { + pattern2 = pattern2.slice(prefix.length); } - return pattern; + return pattern2; } - function removeSuffix(pattern, suffix) { - if (pattern.endsWith(suffix)) { - return pattern.slice(0, -suffix.length); + function removeSuffix(pattern2, suffix) { + if (pattern2.endsWith(suffix)) { + return pattern2.slice(0, -suffix.length); } - return pattern; + return pattern2; } - function addSuffix(pattern, suffix) { - if (!pattern.endsWith(suffix)) { - return pattern + suffix; + function addSuffix(pattern2, suffix) { + if (!pattern2.endsWith(suffix)) { + return pattern2 + suffix; } - return pattern; + return pattern2; } function hyphenate(str) { return str.replace(/[A-Z]/g, (match) => { @@ -21182,8 +21359,8 @@ var require_lockfile = __commonJS({ const invariant = __webpack_require__(7); const path3 = __webpack_require__(0); const ssri = __webpack_require__(55); - function getName(pattern) { - return (0, (_normalizePattern || _load_normalizePattern()).normalizePattern)(pattern).name; + function getName(pattern2) { + return (0, (_normalizePattern || _load_normalizePattern()).normalizePattern)(pattern2).name; } function blankObjectUndefined(obj) { return obj && Object.keys(obj).length ? obj : void 0; @@ -21194,8 +21371,8 @@ var require_lockfile = __commonJS({ function serializeIntegrity(integrity) { return integrity.toString().split(" ").sort().join(" "); } - function implodeEntry(pattern, obj) { - const inferredName = getName(pattern); + function implodeEntry(pattern2, obj) { + const inferredName = getName(pattern2); const integrity = obj.integrity ? serializeIntegrity(obj.integrity) : ""; const imploded = { name: inferredName === obj.name ? void 0 : obj.name, @@ -21213,13 +21390,13 @@ var require_lockfile = __commonJS({ } return imploded; } - function explodeEntry(pattern, obj) { + function explodeEntry(pattern2, obj) { obj.optionalDependencies = obj.optionalDependencies || {}; obj.dependencies = obj.dependencies || {}; obj.uid = obj.uid || obj.version; obj.permissions = obj.permissions || {}; obj.registry = obj.registry || "npm"; - obj.name = obj.name || getName(pattern); + obj.name = obj.name || getName(pattern2); const integrity = obj.integrity; if (integrity && integrity.isIntegrity) { obj.integrity = ssri.parse(integrity); @@ -21268,26 +21445,26 @@ var require_lockfile = __commonJS({ return new Lockfile({ cache: lockfile2, source: rawLockfile, parseResultType: parseResult && parseResult.type }); })(); } - getLocked(pattern) { + getLocked(pattern2) { const cache = this.cache; if (!cache) { return void 0; } - const shrunk = pattern in cache && cache[pattern]; + const shrunk = pattern2 in cache && cache[pattern2]; if (typeof shrunk === "string") { return this.getLocked(shrunk); } else if (shrunk) { - explodeEntry(pattern, shrunk); + explodeEntry(pattern2, shrunk); return shrunk; } return void 0; } - removePattern(pattern) { + removePattern(pattern2) { const cache = this.cache; if (!cache) { return; } - delete cache[pattern]; + delete cache[pattern2]; } getLockfile(patterns) { const lockfile2 = {}; @@ -21305,21 +21482,21 @@ var require_lockfile = __commonJS({ break; _ref = _i.value; } - const pattern = _ref; - const pkg = patterns[pattern]; + const pattern2 = _ref; + const pkg = patterns[pattern2]; const remote = pkg._remote, ref = pkg._reference; invariant(ref, "Package is missing a reference"); invariant(remote, "Package is missing a remote"); const remoteKey = keyForRemote(remote); const seenPattern = remoteKey && seen.get(remoteKey); if (seenPattern) { - lockfile2[pattern] = seenPattern; - if (!seenPattern.name && getName(pattern) !== pkg.name) { + lockfile2[pattern2] = seenPattern; + if (!seenPattern.name && getName(pattern2) !== pkg.name) { seenPattern.name = pkg.name; } continue; } - const obj = implodeEntry(pattern, { + const obj = implodeEntry(pattern2, { name: pkg.name, version: pkg.version, uid: pkg._uid, @@ -21332,7 +21509,7 @@ var require_lockfile = __commonJS({ permissions: ref.permissions, prebuiltVariants: pkg.prebuiltVariants }); - lockfile2[pattern] = obj; + lockfile2[pattern2] = obj; if (remoteKey) { seen.set(remoteKey, obj); } @@ -21422,10 +21599,10 @@ var require_lockfile = __commonJS({ value: true }); exports2.normalizePattern = normalizePattern; - function normalizePattern(pattern) { + function normalizePattern(pattern2) { let hasVersion = false; let range = "latest"; - let name = pattern; + let name = pattern2; let isScoped = false; if (name[0] === "@") { isScoped = true; @@ -22182,10 +22359,10 @@ var require_lockfile = __commonJS({ } var slashSplit = /\/+/; minimatch.filter = filter; - function filter(pattern, options) { + function filter(pattern2, options) { options = options || {}; return function(p, i, list) { - return minimatch(p, pattern, options); + return minimatch(p, pattern2, options); }; } function ext(a, b) { @@ -22204,11 +22381,11 @@ var require_lockfile = __commonJS({ if (!def || !Object.keys(def).length) return minimatch; var orig = minimatch; - var m = function minimatch2(p, pattern, options) { - return orig.minimatch(p, pattern, ext(def, options)); + var m = function minimatch2(p, pattern2, options) { + return orig.minimatch(p, pattern2, ext(def, options)); }; - m.Minimatch = function Minimatch2(pattern, options) { - return new orig.Minimatch(pattern, ext(def, options)); + m.Minimatch = function Minimatch2(pattern2, options) { + return new orig.Minimatch(pattern2, ext(def, options)); }; return m; }; @@ -22217,35 +22394,35 @@ var require_lockfile = __commonJS({ return Minimatch; return minimatch.defaults(def).Minimatch; }; - function minimatch(p, pattern, options) { - if (typeof pattern !== "string") { + function minimatch(p, pattern2, options) { + if (typeof pattern2 !== "string") { throw new TypeError("glob pattern string required"); } if (!options) options = {}; - if (!options.nocomment && pattern.charAt(0) === "#") { + if (!options.nocomment && pattern2.charAt(0) === "#") { return false; } - if (pattern.trim() === "") + if (pattern2.trim() === "") return p === ""; - return new Minimatch(pattern, options).match(p); + return new Minimatch(pattern2, options).match(p); } - function Minimatch(pattern, options) { + function Minimatch(pattern2, options) { if (!(this instanceof Minimatch)) { - return new Minimatch(pattern, options); + return new Minimatch(pattern2, options); } - if (typeof pattern !== "string") { + if (typeof pattern2 !== "string") { throw new TypeError("glob pattern string required"); } if (!options) options = {}; - pattern = pattern.trim(); + pattern2 = pattern2.trim(); if (path3.sep !== "/") { - pattern = pattern.split(path3.sep).join("/"); + pattern2 = pattern2.split(path3.sep).join("/"); } this.options = options; this.set = []; - this.pattern = pattern; + this.pattern = pattern2; this.regexp = null; this.negate = false; this.comment = false; @@ -22258,13 +22435,13 @@ var require_lockfile = __commonJS({ function make() { if (this._made) return; - var pattern = this.pattern; + var pattern2 = this.pattern; var options = this.options; - if (!options.nocomment && pattern.charAt(0) === "#") { + if (!options.nocomment && pattern2.charAt(0) === "#") { this.comment = true; return; } - if (!pattern) { + if (!pattern2) { this.empty = true; return; } @@ -22289,25 +22466,25 @@ var require_lockfile = __commonJS({ } Minimatch.prototype.parseNegate = parseNegate; function parseNegate() { - var pattern = this.pattern; + var pattern2 = this.pattern; var negate = false; var options = this.options; var negateOffset = 0; if (options.nonegate) return; - for (var i = 0, l = pattern.length; i < l && pattern.charAt(i) === "!"; i++) { + for (var i = 0, l = pattern2.length; i < l && pattern2.charAt(i) === "!"; i++) { negate = !negate; negateOffset++; } if (negateOffset) - this.pattern = pattern.substr(negateOffset); + this.pattern = pattern2.substr(negateOffset); this.negate = negate; } - minimatch.braceExpand = function(pattern, options) { - return braceExpand(pattern, options); + minimatch.braceExpand = function(pattern2, options) { + return braceExpand(pattern2, options); }; Minimatch.prototype.braceExpand = braceExpand; - function braceExpand(pattern, options) { + function braceExpand(pattern2, options) { if (!options) { if (this instanceof Minimatch) { options = this.options; @@ -22315,25 +22492,25 @@ var require_lockfile = __commonJS({ options = {}; } } - pattern = typeof pattern === "undefined" ? this.pattern : pattern; - if (typeof pattern === "undefined") { + pattern2 = typeof pattern2 === "undefined" ? this.pattern : pattern2; + if (typeof pattern2 === "undefined") { throw new TypeError("undefined pattern"); } - if (options.nobrace || !pattern.match(/\{.*\}/)) { - return [pattern]; + if (options.nobrace || !pattern2.match(/\{.*\}/)) { + return [pattern2]; } - return expand3(pattern); + return expand3(pattern2); } Minimatch.prototype.parse = parse4; var SUBPARSE = {}; - function parse4(pattern, isSub) { - if (pattern.length > 1024 * 64) { + function parse4(pattern2, isSub) { + if (pattern2.length > 1024 * 64) { throw new TypeError("pattern is too long"); } var options = this.options; - if (!options.noglobstar && pattern === "**") + if (!options.noglobstar && pattern2 === "**") return GLOBSTAR; - if (pattern === "") + if (pattern2 === "") return ""; var re = ""; var hasMagic = !!options.nocase; @@ -22344,7 +22521,7 @@ var require_lockfile = __commonJS({ var inClass = false; var reClassStart = -1; var classStart = -1; - var patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)"; + var patternStart = pattern2.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)"; var self2 = this; function clearStateChar() { if (stateChar) { @@ -22365,8 +22542,8 @@ var require_lockfile = __commonJS({ stateChar = false; } } - for (var i = 0, len = pattern.length, c; i < len && (c = pattern.charAt(i)); i++) { - this.debug("%s %s %s %j", pattern, i, re, c); + for (var i = 0, len = pattern2.length, c; i < len && (c = pattern2.charAt(i)); i++) { + this.debug("%s %s %s %j", pattern2, i, re, c); if (escaping && reSpecials[c]) { re += "\\" + c; escaping = false; @@ -22384,7 +22561,7 @@ var require_lockfile = __commonJS({ case "+": case "@": case "!": - this.debug("%s %s %s %j <-- stateChar", pattern, i, re, c); + this.debug("%s %s %s %j <-- stateChar", pattern2, i, re, c); if (inClass) { this.debug(" in class"); if (c === "!" && i === classStart + 1) @@ -22459,7 +22636,7 @@ var require_lockfile = __commonJS({ continue; } if (inClass) { - var cs = pattern.substring(classStart + 1, i); + var cs = pattern2.substring(classStart + 1, i); try { RegExp("[" + cs + "]"); } catch (er) { @@ -22485,7 +22662,7 @@ var require_lockfile = __commonJS({ } } if (inClass) { - cs = pattern.substr(classStart + 1); + cs = pattern2.substr(classStart + 1); sp = this.parse(cs, SUBPARSE); re = re.substr(0, reClassStart) + "\\[" + sp[0]; hasMagic = hasMagic || sp[1]; @@ -22545,7 +22722,7 @@ var require_lockfile = __commonJS({ return [re, hasMagic]; } if (!hasMagic) { - return globUnescape(pattern); + return globUnescape(pattern2); } var flags = options.nocase ? "i" : ""; try { @@ -22553,12 +22730,12 @@ var require_lockfile = __commonJS({ } catch (er) { return new RegExp("$."); } - regExp._glob = pattern; + regExp._glob = pattern2; regExp._src = re; return regExp; } - minimatch.makeRe = function(pattern, options) { - return new Minimatch(pattern, options || {}).makeRe(); + minimatch.makeRe = function(pattern2, options) { + return new Minimatch(pattern2, options || {}).makeRe(); }; Minimatch.prototype.makeRe = makeRe; function makeRe() { @@ -22572,8 +22749,8 @@ var require_lockfile = __commonJS({ var options = this.options; var twoStar = options.noglobstar ? star : options.dot ? twoStarDot : twoStarNoDot; var flags = options.nocase ? "i" : ""; - var re = set.map(function(pattern) { - return pattern.map(function(p) { + var re = set.map(function(pattern2) { + return pattern2.map(function(p) { return p === GLOBSTAR ? twoStar : typeof p === "string" ? regExpEscape(p) : p._src; }).join("\\/"); }).join("|"); @@ -22587,14 +22764,14 @@ var require_lockfile = __commonJS({ } return this.regexp; } - minimatch.match = function(list, pattern, options) { + minimatch.match = function(list, pattern2, options) { options = options || {}; - var mm = new Minimatch(pattern, options); + var mm = new Minimatch(pattern2, options); list = list.filter(function(f) { return mm.match(f); }); if (mm.options.nonull && !list.length) { - list.push(pattern); + list.push(pattern2); } return list; }; @@ -22623,12 +22800,12 @@ var require_lockfile = __commonJS({ break; } for (i = 0; i < set.length; i++) { - var pattern = set[i]; + var pattern2 = set[i]; var file = f; - if (options.matchBase && pattern.length === 1) { + if (options.matchBase && pattern2.length === 1) { file = [filename]; } - var hit = this.matchOne(file, pattern, partial); + var hit = this.matchOne(file, pattern2, partial); if (hit) { if (options.flipNegate) return true; @@ -22639,22 +22816,22 @@ var require_lockfile = __commonJS({ return false; return this.negate; } - Minimatch.prototype.matchOne = function(file, pattern, partial) { + Minimatch.prototype.matchOne = function(file, pattern2, partial) { var options = this.options; this.debug( "matchOne", - { "this": this, file, pattern } + { "this": this, file, pattern: pattern2 } ); - this.debug("matchOne", file.length, pattern.length); - for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) { + this.debug("matchOne", file.length, pattern2.length); + for (var fi = 0, pi = 0, fl = file.length, pl = pattern2.length; fi < fl && pi < pl; fi++, pi++) { this.debug("matchOne loop"); - var p = pattern[pi]; + var p = pattern2[pi]; var f = file[fi]; - this.debug(pattern, p, f); + this.debug(pattern2, p, f); if (p === false) return false; if (p === GLOBSTAR) { - this.debug("GLOBSTAR", [pattern, p, f]); + this.debug("GLOBSTAR", [pattern2, p, f]); var fr = fi; var pr = pi + 1; if (pr === pl) { @@ -22667,13 +22844,13 @@ var require_lockfile = __commonJS({ } while (fr < fl) { var swallowee = file[fr]; - this.debug("\nglobstar while", file, fr, pattern, pr, swallowee); - if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { + this.debug("\nglobstar while", file, fr, pattern2, pr, swallowee); + if (this.matchOne(file.slice(fr), pattern2.slice(pr), partial)) { this.debug("globstar found match!", fr, fl, swallowee); return true; } else { if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") { - this.debug("dot detected!", file, fr, pattern, pr); + this.debug("dot detected!", file, fr, pattern2, pr); break; } this.debug("globstar swallow a segment, and continue"); @@ -22681,7 +22858,7 @@ var require_lockfile = __commonJS({ } } if (partial) { - this.debug("\n>>> no match, partial?", file, fr, pattern, pr); + this.debug("\n>>> no match, partial?", file, fr, pattern2, pr); if (fr === fl) return true; } @@ -22877,7 +23054,7 @@ var require_lockfile = __commonJS({ var childrenIgnored = common2.childrenIgnored; var isIgnored = common2.isIgnored; var once = __webpack_require__(61); - function glob(pattern, options, cb) { + function glob(pattern2, options, cb) { if (typeof options === "function") cb = options, options = {}; if (!options) @@ -22885,9 +23062,9 @@ var require_lockfile = __commonJS({ if (options.sync) { if (cb) throw new TypeError("callback provided to sync glob"); - return globSync(pattern, options); + return globSync(pattern2, options); } - return new Glob(pattern, options, cb); + return new Glob(pattern2, options, cb); } glob.sync = globSync; var GlobSync = glob.GlobSync = globSync.GlobSync; @@ -22903,12 +23080,12 @@ var require_lockfile = __commonJS({ } return origin; } - glob.hasMagic = function(pattern, options_) { + glob.hasMagic = function(pattern2, options_) { var options = extend({}, options_); options.noprocess = true; - var g = new Glob(pattern, options); + var g = new Glob(pattern2, options); var set = g.minimatch.set; - if (!pattern) + if (!pattern2) return false; if (set.length > 1) return true; @@ -22920,7 +23097,7 @@ var require_lockfile = __commonJS({ }; glob.Glob = Glob; inherits(Glob, EE); - function Glob(pattern, options, cb) { + function Glob(pattern2, options, cb) { if (typeof options === "function") { cb = options; options = null; @@ -22928,11 +23105,11 @@ var require_lockfile = __commonJS({ if (options && options.sync) { if (cb) throw new TypeError("callback provided to sync glob"); - return new GlobSync(pattern, options); + return new GlobSync(pattern2, options); } if (!(this instanceof Glob)) - return new Glob(pattern, options, cb); - setopts(this, pattern, options); + return new Glob(pattern2, options, cb); + setopts(this, pattern2, options); this._didRealPath = false; var n = this.minimatch.set.length; this.matches = new Array(n); @@ -23059,37 +23236,37 @@ var require_lockfile = __commonJS({ } } }; - Glob.prototype._process = function(pattern, index, inGlobStar, cb) { + Glob.prototype._process = function(pattern2, index, inGlobStar, cb) { assert2(this instanceof Glob); assert2(typeof cb === "function"); if (this.aborted) return; this._processing++; if (this.paused) { - this._processQueue.push([pattern, index, inGlobStar, cb]); + this._processQueue.push([pattern2, index, inGlobStar, cb]); return; } var n = 0; - while (typeof pattern[n] === "string") { + while (typeof pattern2[n] === "string") { n++; } var prefix; switch (n) { - case pattern.length: - this._processSimple(pattern.join("/"), index, cb); + case pattern2.length: + this._processSimple(pattern2.join("/"), index, cb); return; case 0: prefix = null; break; default: - prefix = pattern.slice(0, n).join("/"); + prefix = pattern2.slice(0, n).join("/"); break; } - var remain = pattern.slice(n); + var remain = pattern2.slice(n); var read; if (prefix === null) read = "."; - else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) { + else if (isAbsolute(prefix) || isAbsolute(pattern2.join("/"))) { if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix; read = prefix; @@ -24427,28 +24604,28 @@ var require_lockfile = __commonJS({ self2.ignore = self2.ignore.map(ignoreMap); } } - function ignoreMap(pattern) { + function ignoreMap(pattern2) { var gmatcher = null; - if (pattern.slice(-3) === "/**") { - var gpattern = pattern.replace(/(\/\*\*)+$/, ""); + if (pattern2.slice(-3) === "/**") { + var gpattern = pattern2.replace(/(\/\*\*)+$/, ""); gmatcher = new Minimatch(gpattern, { dot: true }); } return { - matcher: new Minimatch(pattern, { dot: true }), + matcher: new Minimatch(pattern2, { dot: true }), gmatcher }; } - function setopts(self2, pattern, options) { + function setopts(self2, pattern2, options) { if (!options) options = {}; - if (options.matchBase && -1 === pattern.indexOf("/")) { + if (options.matchBase && -1 === pattern2.indexOf("/")) { if (options.noglobstar) { throw new Error("base matching requires globstar"); } - pattern = "**/" + pattern; + pattern2 = "**/" + pattern2; } self2.silent = !!options.silent; - self2.pattern = pattern; + self2.pattern = pattern2; self2.strict = options.strict !== false; self2.realpath = !!options.realpath; self2.realpathCache = options.realpathCache || /* @__PURE__ */ Object.create(null); @@ -24489,7 +24666,7 @@ var require_lockfile = __commonJS({ self2.nomount = !!options.nomount; options.nonegate = true; options.nocomment = true; - self2.minimatch = new Minimatch(pattern, options); + self2.minimatch = new Minimatch(pattern2, options); self2.options = self2.minimatch.options; } function finish(self2) { @@ -26811,19 +26988,19 @@ ${indent}`); var ownProp = common2.ownProp; var childrenIgnored = common2.childrenIgnored; var isIgnored = common2.isIgnored; - function globSync(pattern, options) { + function globSync(pattern2, options) { if (typeof options === "function" || arguments.length === 3) throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167"); - return new GlobSync(pattern, options).found; + return new GlobSync(pattern2, options).found; } - function GlobSync(pattern, options) { - if (!pattern) + function GlobSync(pattern2, options) { + if (!pattern2) throw new Error("must provide pattern"); if (typeof options === "function" || arguments.length === 3) throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167"); if (!(this instanceof GlobSync)) - return new GlobSync(pattern, options); - setopts(this, pattern, options); + return new GlobSync(pattern2, options); + setopts(this, pattern2, options); if (this.noprocess) return this; var n = this.minimatch.set.length; @@ -26855,29 +27032,29 @@ ${indent}`); } common2.finish(this); }; - GlobSync.prototype._process = function(pattern, index, inGlobStar) { + GlobSync.prototype._process = function(pattern2, index, inGlobStar) { assert2(this instanceof GlobSync); var n = 0; - while (typeof pattern[n] === "string") { + while (typeof pattern2[n] === "string") { n++; } var prefix; switch (n) { - case pattern.length: - this._processSimple(pattern.join("/"), index); + case pattern2.length: + this._processSimple(pattern2.join("/"), index); return; case 0: prefix = null; break; default: - prefix = pattern.slice(0, n).join("/"); + prefix = pattern2.slice(0, n).join("/"); break; } - var remain = pattern.slice(n); + var remain = pattern2.slice(n); var read; if (prefix === null) read = "."; - else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) { + else if (isAbsolute(prefix) || isAbsolute(pattern2.join("/"))) { if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix; read = prefix; @@ -28685,7 +28862,189 @@ function withDefaults(oldDefaults, newDefaults) { var endpoint = withDefaults(null, DEFAULTS); // -var import_content_type = __toESM(require_dist()); +var SP = 32; +var HTAB = 9; +var SEMI = 59; +var EQ = 61; +var DQUOTE = 34; +var BSLASH = 92; +var COMMA = 44; +var LOWER_CASE = 1; +var OWS = 2; +var SEMI_FLAG = 4; +var COMMA_FLAG = 8; +var TOKEN_FLAG = 16; +var NON_ASCII = 65280; +var CASE_FLAGS = LOWER_CASE | NON_ASCII; +var CHAR_MAP = new Uint8Array(256); +CHAR_MAP[HTAB] |= OWS; +CHAR_MAP[SP] |= OWS; +CHAR_MAP[SEMI] |= SEMI_FLAG; +CHAR_MAP[COMMA] |= COMMA_FLAG; +for (let code = 128; code <= 255; code++) { + CHAR_MAP[code] |= LOWER_CASE; +} +for (const char of "!#$%&'*+-.^_`|~") { + CHAR_MAP[char.charCodeAt(0)] |= TOKEN_FLAG; +} +for (let code = 48; code <= 57; code++) { + CHAR_MAP[code] |= TOKEN_FLAG; +} +for (let code = 65; code <= 90; code++) { + CHAR_MAP[code] |= LOWER_CASE | TOKEN_FLAG; +} +for (let code = 97; code <= 122; code++) { + CHAR_MAP[code] |= TOKEN_FLAG; +} +var NullObject = (() => { + const C = function() { + }; + C.prototype = /* @__PURE__ */ Object.create(null); + return C; +})(); +function parse2(header, options) { + const stopFlags = SEMI_FLAG | (options?.comma === true ? COMMA_FLAG : 0); + const len = header.length; + let valueStart = options?.start ?? 0; + while ((CHAR_MAP[header.charCodeAt(valueStart)] & OWS) !== 0) { + valueStart++; + } + let index = valueStart; + let typeFlags = 0; + let whitespace = -1; + let stop = options?.parameters === false ? COMMA_FLAG : 0; + while (index < len) { + const code = header.charCodeAt(index); + const flags = CHAR_MAP[code]; + if ((flags & stopFlags) !== 0) { + stop |= flags & COMMA_FLAG; + break; + } + if ((flags & OWS) !== 0) { + if (whitespace === -1) + whitespace = index; + } else { + whitespace = -1; + } + typeFlags |= code & NON_ASCII | flags; + index++; + } + const valueEnd = whitespace === -1 ? index : whitespace; + const value = header.slice(valueStart, valueEnd); + const type = (typeFlags & CASE_FLAGS) === 0 ? value : value.toLowerCase(); + if (index === len || stop !== 0) { + return { type, index, parameters: new NullObject() }; + } + return parseParameters(header, type, index, len, stopFlags); +} +function parseParameters(header, type, index, len, stopFlags) { + const parameters = new NullObject(); + parameter: + while (index < len) { + index++; + while ((CHAR_MAP[header.charCodeAt(index)] & OWS) !== 0) { + index++; + } + const keyStart = index; + let keyFlags = 0; + let keyWhitespace = -1; + while (index < len) { + const code = header.charCodeAt(index); + const flags = CHAR_MAP[code]; + if ((flags & stopFlags) !== 0) { + if ((flags & COMMA_FLAG) !== 0) + break parameter; + continue parameter; + } + if (code === EQ) { + const keyEnd = keyWhitespace === -1 ? index : keyWhitespace; + const value = header.slice(keyStart, keyEnd); + const key = (keyFlags & CASE_FLAGS) === 0 ? value : value.toLowerCase(); + index++; + while ((CHAR_MAP[header.charCodeAt(index)] & OWS) !== 0) { + index++; + } + if (index < len && header.charCodeAt(index) === DQUOTE) { + const quotedStart = ++index; + let escaped = false; + while (index < len) { + const code2 = header.charCodeAt(index); + if (code2 === DQUOTE) { + if (parameters[key] === void 0) { + parameters[key] = escaped ? unescapeQuotedPairs(header, quotedStart, index) : header.slice(quotedStart, index); + } + index++; + let stop2 = 0; + while (index < len) { + const code3 = header.charCodeAt(index); + const flags2 = CHAR_MAP[code3]; + if ((flags2 & stopFlags) !== 0) { + stop2 = flags2 & COMMA_FLAG; + break; + } + index++; + } + if (stop2 !== 0) + break parameter; + continue parameter; + } + if (code2 === BSLASH && index + 1 < len) { + escaped = true; + index += 2; + continue; + } + index++; + } + continue parameter; + } + const valueStart = index; + let stop = 0; + let valueWhitespace = -1; + while (index < len) { + const code2 = header.charCodeAt(index); + const flags2 = CHAR_MAP[code2]; + if ((flags2 & stopFlags) !== 0) { + stop = flags2 & COMMA_FLAG; + break; + } + if ((flags2 & OWS) !== 0) { + if (valueWhitespace === -1) + valueWhitespace = index; + } else { + valueWhitespace = -1; + } + index++; + } + if (parameters[key] === void 0) { + const valueEnd = valueWhitespace === -1 ? index : valueWhitespace; + parameters[key] = header.slice(valueStart, valueEnd); + } + if (stop !== 0) + break parameter; + continue parameter; + } + if ((flags & OWS) !== 0) { + if (keyWhitespace === -1) + keyWhitespace = index; + } else { + keyWhitespace = -1; + } + keyFlags |= code & NON_ASCII | flags; + index++; + } + } + return { type, index, parameters }; +} +function unescapeQuotedPairs(str, start, end) { + let result = ""; + for (let index = start; index < end; index++) { + if (str.charCodeAt(index) === BSLASH) { + result += str.slice(start, index); + start = ++index; + } + } + return result + str.slice(start, end); +} // var intRegex = /^-?\d+$/; @@ -29090,7 +29449,7 @@ var RequestError = class extends Error { }; // -var VERSION2 = "10.0.13"; +var VERSION2 = "10.0.16"; var defaults_default = { headers: { "user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}` @@ -29211,7 +29570,7 @@ async function getResponseData(response) { if (!contentType) { return response.text().catch(noop); } - const mimetype = (0, import_content_type.parse)(contentType); + const mimetype = parse2(contentType); if (isJSONResponse(mimetype)) { let text = ""; try { @@ -29431,7 +29790,7 @@ var createTokenAuth = function createTokenAuth2(token) { }; // -var VERSION4 = "7.0.7"; +var VERSION4 = "7.0.8"; // var noop2 = () => { @@ -32730,11 +33089,15 @@ function cliui(opts, _mixin) { wrap: opts === null || opts === void 0 ? void 0 : opts.wrap }); } +var ST = String.raw`(?:\u001B\u005C|\u009C)`; +var stringControls = String.raw`\u0018\u001A\u001B\u0080-\u009F`; +var osc = String.raw`(?:\u001B\]|\u009D)[^\u0007${stringControls}]*(?:\u0007|${ST})`; +var controlString = String.raw`(?:\u001B[PX^_k]|[\u0090\u0098\u009E\u009F])[^${stringControls}]*${ST}`; +var linuxPalette = String.raw`\u001B\](?:P[\dA-Fa-f]{7}|R)(?:\u0007|${ST})?`; +var csi = String.raw`(?:\u001B\[|\u009B)[\u0030-\u003F]*[\u0020-\u002F]*[\u0040-\u007E]`; +var escape = String.raw`\u001B(?:[\u0020-\u002F]+[\u0030-\u007E]|[\dA-PR-TZcf-oq-uy=><~|}])`; +var pattern = `${linuxPalette}|${osc}|${controlString}|${csi}|${escape}`; function ansiRegex({ onlyFirst = false } = {}) { - const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)"; - const osc = `(?:\\u001B\\][^\\u0007\\u001B\\u009C]*${ST})`; - const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]"; - const pattern = `${osc}|${csi}`; return new RegExp(pattern, onlyFirst ? void 0 : "g"); } var regex = ansiRegex(); @@ -32755,7 +33118,7 @@ var fullwidthMaximumCodePoint = 65510; var fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510]; var wideMinimalCodePoint = 4352; var wideMaximumCodePoint = 262141; -var wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141]; +var wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101594, 101631, 101664, 101760, 101874, 101888, 102801, 102816, 102866, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110888, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110952, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127406, 127406, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128729, 128732, 128735, 128747, 128748, 128756, 128764, 128986, 128986, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129734, 129736, 129736, 129740, 129757, 129759, 129771, 129775, 129786, 131072, 196605, 196608, 262141]; var isInRange = (ranges, codePoint) => { let low = 0; let high = Math.floor(ranges.length / 2) - 1; @@ -32796,7 +33159,7 @@ var isAmbiguous = (codePoint) => { } return isInRange(ambiguousRanges, codePoint); }; -var isFullWidth = (codePoint) => { +var isFullwidth = (codePoint) => { if (codePoint < fullwidthMinimalCodePoint || codePoint > fullwidthMaximumCodePoint) { return false; } @@ -32818,7 +33181,7 @@ function validate(codePoint) { } function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) { validate(codePoint); - if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) { + if (isFullwidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) { return 2; } return 1; @@ -34018,8 +34381,8 @@ var YargsParser = class { } function hasFlagsMatching(arg, ...patterns) { const toCheck = [].concat(...patterns); - return toCheck.some(function(pattern) { - const match = arg.match(pattern); + return toCheck.some(function(pattern2) { + const match = arg.match(pattern2); return match && hasAnyFlag(match[1]); }); } @@ -34215,8 +34578,7 @@ function getProcessArgvBin() { return process.argv[getProcessArgvBinIndex()]; } var segmenter2 = new Intl.Segmenter(); -var zeroWidthClusterRegex = new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Format}|\\p{Nonspacing_Mark}|\\p{Enclosing_Mark}|\\p{Surrogate})+$", "v"); -var leadingNonPrintingRegex = new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]+", "v"); +var visibleCharacterRegex = new RegExp("[^\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Nonspacing_Mark}\\p{Enclosing_Mark}\\p{Surrogate}]", "v"); var spacingMarkRegex = new RegExp("\\p{Spacing_Mark}", "v"); var rgiEmojiRegex = new RegExp("^\\p{RGI_Emoji}$", "v"); var unqualifiedKeycapRegex = /^[\d#*]\u20E3$/; @@ -34235,10 +34597,8 @@ function isDoubleWidthNonRgiEmojiSequence(segment) { return false; } function baseVisible(segment) { - return segment.replace(leadingNonPrintingRegex, ""); -} -function isZeroWidthCluster(segment) { - return zeroWidthClusterRegex.test(segment); + const index = segment.search(visibleCharacterRegex); + return index === -1 ? void 0 : segment.slice(index); } function isHangulLeadingJamo(codePoint) { return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388; @@ -34255,7 +34615,7 @@ function isHangulJamo(codePoint) { function hangulClusterWidth(visibleSegment, eastAsianWidthOptions) { const codePoints = []; for (const character of visibleSegment) { - if (zeroWidthClusterRegex.test(character)) { + if (!visibleCharacterRegex.test(character)) { continue; } codePoints.push(character.codePointAt(0)); @@ -34319,14 +34679,14 @@ function stringWidth2(input, options = {}) { let width = 0; const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow }; for (const { segment } of segmenter2.segment(string)) { - if (isZeroWidthCluster(segment)) { + const visibleSegment = baseVisible(segment); + if (visibleSegment === void 0) { continue; } if (rgiEmojiRegex.test(segment) || isDoubleWidthNonRgiEmojiSequence(segment)) { width += 2; continue; } - const visibleSegment = baseVisible(segment); const hangulWidth = hangulClusterWidth(visibleSegment, eastAsianWidthOptions); if (hangulWidth !== void 0) { width += hangulWidth; @@ -35780,16 +36140,25 @@ _{{app_name}}_yargs_completions() _default fi } -if [[ "'\${zsh_eval_context[-1]}" == "loadautofunc" ]]; then +if [[ "\${zsh_eval_context[-1]}" == "loadautofunc" ]]; then _{{app_name}}_yargs_completions "$@" else compdef _{{app_name}}_yargs_completions {{app_name}} fi ###-end-{{app_name}}-completions-### `; +var completionFishTemplate = `###-begin-{{app_name}}-completions-### +# +# yargs command completion script +# +# Installation: {{app_path}} {{completion_command}} > ~/.config/fish/completions/{{app_name}}.fish +# +complete -f -c {{app_name}} -a '({{app_path}} --get-yargs-completions (commandline -o)[2..-1])' +###-end-{{app_name}}-completions-### +`; var Completion = class { constructor(yargs, usage2, command2, shim3) { - var _a2, _b2, _c2; + var _a2, _b2, _c2, _d, _e; this.yargs = yargs; this.usage = usage2; this.command = command2; @@ -35799,6 +36168,7 @@ var Completion = class { this.customCompletionFunction = null; this.indexAfterLastReset = 0; this.zshShell = (_c2 = ((_a2 = this.shim.getEnv("SHELL")) === null || _a2 === void 0 ? void 0 : _a2.includes("zsh")) || ((_b2 = this.shim.getEnv("ZSH_NAME")) === null || _b2 === void 0 ? void 0 : _b2.includes("zsh"))) !== null && _c2 !== void 0 ? _c2 : false; + this.fishShell = (_e = (_d = this.shim.getEnv("SHELL")) === null || _d === void 0 ? void 0 : _d.includes("fish")) !== null && _e !== void 0 ? _e : false; } defaultCompletion(args, argv, current, done) { const handlers = this.command.getCommandHandlers(); @@ -35826,11 +36196,13 @@ var Completion = class { this.usage.getCommands().forEach((usageCommand) => { const commandName = parseCommand(usageCommand[0]).cmd; if (args.indexOf(commandName) === -1) { - if (!this.zshShell) { - completions.push(commandName); - } else { - const desc = usageCommand[1] || ""; + const desc = usageCommand[1] || ""; + if (this.fishShell) { + completions.push(commandName + " " + desc); + } else if (this.zshShell) { completions.push(commandName.replace(/:/g, "\\:") + ":" + desc); + } else { + completions.push(commandName); } } }); @@ -35853,7 +36225,11 @@ var Completion = class { if (this.previousArgHasChoices(args)) { const choices = this.getPreviousArgChoices(args); if (choices && choices.length > 0) { - completions.push(...choices.map((c) => c.replace(/:/g, "\\:"))); + if (this.fishShell) { + completions.push(...choices); + } else { + completions.push(...choices.map((c) => c.replace(/:/g, "\\:"))); + } } } } @@ -35870,7 +36246,11 @@ var Completion = class { const choices = this.yargs.getOptions().choices[positionalKey] || []; for (const choice of choices) { if (choice.startsWith(current)) { - completions.push(choice.replace(/:/g, "\\:")); + if (this.fishShell) { + completions.push(choice); + } else { + completions.push(choice.replace(/:/g, "\\:")); + } } } } @@ -35923,7 +36303,7 @@ var Completion = class { completeOptionKey(key, completions, current, negable) { var _a2, _b2, _c2, _d; let keyWithDesc = key; - if (this.zshShell) { + if (this.zshShell || this.fishShell) { const descs = this.usage.getDescriptions(); const aliasKey = (_b2 = (_a2 = this === null || this === void 0 ? void 0 : this.aliases) === null || _a2 === void 0 ? void 0 : _a2[key]) === null || _b2 === void 0 ? void 0 : _b2.find((alias) => { const desc2 = descs[alias]; @@ -35931,7 +36311,12 @@ var Completion = class { }); const descFromAlias = aliasKey ? descs[aliasKey] : void 0; const desc = (_d = (_c2 = descs[key]) !== null && _c2 !== void 0 ? _c2 : descFromAlias) !== null && _d !== void 0 ? _d : ""; - keyWithDesc = `${key.replace(/:/g, "\\:")}:${desc.replace("__yargsString__:", "").replace(/(\r\n|\n|\r)/gm, " ")}`; + const cleanedDesc = desc.replace("__yargsString__:", "").replace(/(\r\n|\n|\r)/gm, " "); + if (this.fishShell) { + keyWithDesc = `${key} ${cleanedDesc}`; + } else { + keyWithDesc = `${key.replace(/:/g, "\\:")}:${cleanedDesc}`; + } } const startsByTwoDashes = (s) => /^--/.test(s); const isShortOption = (s) => /^[^0-9]$/.test(s); @@ -35974,7 +36359,14 @@ var Completion = class { return isPromise(argv) ? argv.then(completionFunction) : completionFunction(argv); } generateCompletionScript($0, cmd) { - let script = this.zshShell ? completionZshTemplate : completionShTemplate; + let script; + if (this.zshShell) { + script = completionZshTemplate; + } else if (this.fishShell) { + script = completionFishTemplate; + } else { + script = completionShTemplate; + } const name = this.shim.path.basename($0); if ($0.match(/\.js$/)) $0 = `./${$0}`; @@ -37926,7 +38318,7 @@ ${sanitize(logOutput)}`); if (status === 0 || options.suppressErrorOnFailingExitCode) { resolve5({ stdout, stderr, status }); } else { - reject(options.mode === "silent" ? logOutput : void 0); + reject(options.mode === "silent" ? sanitize(logOutput) : void 0); } }); }); @@ -37963,6 +38355,7 @@ var yellow = styleText.bind(null, "yellow"); var bold = styleText.bind(null, "bold"); var blue = styleText.bind(null, "blue"); var underline = styleText.bind(null, "underline"); +var magenta = styleText.bind(null, "magenta"); var Log = class { }; Log.info = buildLogLevelFunction(() => console.info, LogLevel.INFO, null); @@ -38096,6 +38489,8 @@ import { styleText as styleText4 } from "node:util"; import { styleText as styleText5 } from "node:util"; import { styleText as styleText6 } from "node:util"; import { styleText as styleText7 } from "node:util"; +import { styleText as styleText8 } from "node:util"; +import { styleText as styleText9 } from "node:util"; var require4 = __cjsCompatRequire_ngDev3(import.meta.url); var require_constants6 = __commonJS2({ ""(exports, module) { @@ -38106,6 +38501,33 @@ var require_constants6 = __commonJS2({ 9007199254740991; var MAX_SAFE_COMPONENT_LENGTH = 16; var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6; + var WHITESPACE_CHARACTERS = [ + " ", + "\n", + "\v", + "\f", + "\r", + " ", + "\xA0", + "\u1680", + "\u2000", + "\u2001", + "\u2002", + "\u2003", + "\u2004", + "\u2005", + "\u2006", + "\u2007", + "\u2008", + "\u2009", + "\u200A", + "\u2028", + "\u2029", + "\u202F", + "\u205F", + "\u3000", + "\uFEFF" + ]; var RELEASE_TYPES = [ "major", "premajor", @@ -38120,6 +38542,7 @@ var require_constants6 = __commonJS2({ MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_SAFE_INTEGER, + WHITESPACE_CHARACTERS, RELEASE_TYPES, SEMVER_SPEC_VERSION, FLAG_INCLUDE_PRERELEASE: 1, @@ -38955,6 +39378,195 @@ var require_lrucache = __commonJS2({ module.exports = LRUCache; } }); +var require_trim_comparator_whitespace = __commonJS2({ + ""(exports, module) { + "use strict"; + var { + MAX_LENGTH, + MAX_SAFE_BUILD_LENGTH, + WHITESPACE_CHARACTERS + } = require_constants6(); + var whitespace = new Uint8Array(65536); + for (const char of WHITESPACE_CHARACTERS) { + whitespace[char.charCodeAt(0)] = 1; + } + var isWhitespace = (char) => char !== void 0 && whitespace[char.charCodeAt(0)] === 1; + var isVersionPrefix = (char) => char === "v" || char === "=" || isWhitespace(char); + var isDigit = (char) => char !== void 0 && char >= "0" && char <= "9"; + var isLetter = (char) => char !== void 0 && (char >= "a" && char <= "z" || char >= "A" && char <= "Z"); + var isIdentifierCharacter = (char) => isDigit(char) || isLetter(char) || char === "-"; + var isVersionStart = (char) => isDigit(char) || char === "x" || char === "X" || char === "*"; + var findDigitsEndIndex = (range, start, limit, digitRuns) => { + if (!isDigit(range[start])) { + return start; + } + if (start >= digitRuns.start && start < digitRuns.end) { + return Math.min(start + limit, digitRuns.end); + } + if (start >= digitRuns.previousStart && start < digitRuns.previousEnd) { + return Math.min(start + limit, digitRuns.previousEnd); + } + let end = start + 1; + while (isDigit(range[end])) { + end++; + } + digitRuns.previousStart = digitRuns.start; + digitRuns.previousEnd = digitRuns.end; + digitRuns.start = start; + digitRuns.end = end; + return Math.min(start + limit, end); + }; + var findVersionNumberEndIndex = (range, start, loose, digitRuns) => { + if (!loose && range[start] === "0") { + return start + 1; + } + return findDigitsEndIndex(range, start, loose ? MAX_LENGTH : MAX_LENGTH + 1, digitRuns); + }; + var findPrereleaseIdentifierEndIndex = (range, start, loose, digitRuns) => { + const digitsEnd = findDigitsEndIndex(range, start, MAX_LENGTH, digitRuns); + if (isLetter(range[digitsEnd]) || range[digitsEnd] === "-") { + let end = digitsEnd + 1; + const limit = end + MAX_SAFE_BUILD_LENGTH; + while (end < limit && isIdentifierCharacter(range[end])) { + end++; + } + return end; + } + return findVersionNumberEndIndex(range, start, loose, digitRuns); + }; + var findPrereleaseEndIndex = (range, start, loose, digitRuns) => { + const hyphen = range[start] === "-"; + if (!loose && !hyphen) { + return start; + } + const identifierStart = start + (hyphen ? 1 : 0); + let end = findPrereleaseIdentifierEndIndex(range, identifierStart, loose, digitRuns); + if (end === identifierStart) { + if (!loose || !hyphen) { + return start; + } + end = findPrereleaseIdentifierEndIndex(range, start, loose, digitRuns); + } + while (range[end] === ".") { + const next = findPrereleaseIdentifierEndIndex(range, end + 1, loose, digitRuns); + if (next === end + 1) { + break; + } + end = next; + } + return end; + }; + var findBuildIdentifierEndIndex = (range, start) => { + let end = start; + while (end - start < MAX_SAFE_BUILD_LENGTH && isIdentifierCharacter(range[end])) { + end++; + } + return end; + }; + var findBuildEndIndex = (range, start) => { + if (range[start] !== "+") { + return start; + } + let end = findBuildIdentifierEndIndex(range, start + 1); + if (end === start + 1) { + return start; + } + while (range[end] === ".") { + const next = findBuildIdentifierEndIndex(range, end + 1); + if (next === end + 1) { + break; + } + end = next; + } + return end; + }; + var findLooseFullVersionEndIndex = (range, start, digitRuns) => { + let end = start; + for (let component = 0; component < 3; component++) { + const next = findVersionNumberEndIndex(range, end, true, digitRuns); + if (next === end) { + return start; + } + end = next; + if (component < 2) { + if (range[end] !== ".") { + return start; + } + end++; + } + } + const prereleaseEnd = findPrereleaseEndIndex(range, end, true, digitRuns); + return findBuildEndIndex(range, prereleaseEnd); + }; + var findPartialVersionComponentEndIndex = (range, start, digitRuns) => { + if (isDigit(range[start])) { + return findVersionNumberEndIndex(range, start, false, digitRuns); + } + return isVersionStart(range[start]) ? start + 1 : start; + }; + var findPartialVersionEndIndex = (range, start, digitRuns) => { + let end = findPartialVersionComponentEndIndex(range, start, digitRuns); + for (let component = 0; component < 2; component++) { + if (range[end] !== ".") { + return end; + } + const next = findPartialVersionComponentEndIndex(range, end + 1, digitRuns); + if (next === end + 1) { + return end; + } + end = next; + } + const prereleaseEnd = findPrereleaseEndIndex(range, end, false, digitRuns); + return findBuildEndIndex(range, prereleaseEnd); + }; + var findVersionEndIndex = (range, start, digitRuns) => { + const fullVersionEnd = findLooseFullVersionEndIndex(range, start, digitRuns); + return fullVersionEnd !== start ? fullVersionEnd : findPartialVersionEndIndex(range, start, digitRuns); + }; + var findRemovableWhitespaceIndex = (range, matchStart) => { + let position = matchStart; + if (isWhitespace(range[position])) { + position++; + } + if (range[position] === "<" || range[position] === ">") { + position++; + } + if (range[position] === "=") { + position++; + } + return isWhitespace(range[position]) ? position : -1; + }; + var trimComparatorWhitespace = (range) => { + let result = ""; + let copyFrom = 0; + let cursor = 0; + const digitRuns = { start: -1, end: -1, previousStart: -1, previousEnd: -1 }; + while (cursor < range.length) { + const matchStart = cursor; + if (range[cursor] === "<" || range[cursor] === ">") { + cursor++; + } else if (!isVersionPrefix(range[cursor]) && !isVersionStart(range[cursor])) { + cursor++; + continue; + } + while (cursor < range.length && isVersionPrefix(range[cursor])) { + cursor++; + } + if (!isVersionStart(range[cursor])) { + continue; + } + const whitespacePosition = findRemovableWhitespaceIndex(range, matchStart); + if (whitespacePosition !== -1) { + result += range.slice(copyFrom, whitespacePosition); + copyFrom = whitespacePosition + 1; + } + cursor = findVersionEndIndex(range, cursor, digitRuns); + } + return result + range.slice(copyFrom); + }; + module.exports = trimComparatorWhitespace; + } +}); var require_range = __commonJS2({ ""(exports, module) { "use strict"; @@ -39035,7 +39647,7 @@ var require_range = __commonJS2({ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]; range = range.replace(hr, hyphenReplace(this.options.includePrerelease)); debug2("hyphen replace", range); - range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace); + range = trimComparatorWhitespace(range); debug2("comparator trim", range); range = range.replace(re[t.TILDETRIM], tildeTrimReplace); debug2("tilde trim", range); @@ -39105,11 +39717,11 @@ var require_range = __commonJS2({ var Comparator = require_comparator(); var debug2 = require_debug(); var SemVer = require_semver(); + var trimComparatorWhitespace = require_trim_comparator_whitespace(); var { safeRe: re, src, t, - comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re(); @@ -50813,36 +51425,38 @@ var require_Alias = __commonJS2({ if (node.anchor === this.source) found = node; } + if (found && ctx) { + const { anchors: anchors2, doc: doc2, maxAliasCount } = ctx; + let data = anchors2.get(found); + if (!data) { + toJS.toJS(found, null, ctx); + data = anchors2.get(found); + } + if (data?.res === void 0) { + const msg = "This should not happen: Alias anchor was not resolved?"; + throw new ReferenceError(msg); + } + if (maxAliasCount >= 0) { + data.count += 1; + if (data.aliasCount === 0) + data.aliasCount = getAliasCount(doc2, found, anchors2); + if (data.count * data.aliasCount > maxAliasCount) { + const msg = "Excessive alias count indicates a resource exhaustion attack"; + throw new ReferenceError(msg); + } + } + } return found; } toJSON(_arg, ctx) { if (!ctx) return { source: this.source }; - const { anchors: anchors2, doc, maxAliasCount } = ctx; - const source = this.resolve(doc, ctx); + const source = this.resolve(ctx.doc, ctx); if (!source) { const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`; throw new ReferenceError(msg); } - let data = anchors2.get(source); - if (!data) { - toJS.toJS(source, null, ctx); - data = anchors2.get(source); - } - if (data?.res === void 0) { - const msg = "This should not happen: Alias anchor was not resolved?"; - throw new ReferenceError(msg); - } - if (maxAliasCount >= 0) { - data.count += 1; - if (data.aliasCount === 0) - data.aliasCount = getAliasCount(doc, source, anchors2); - if (data.count * data.aliasCount > maxAliasCount) { - const msg = "Excessive alias count indicates a resource exhaustion attack"; - throw new ReferenceError(msg); - } - } - return data.res; + return ctx.anchors.get(source).res; } toString(ctx, _onComment, _onChompKeep) { const src = `*${this.source}`; @@ -54740,37 +55354,38 @@ var require_resolve_flow_scalar = __commonJS2({ } if (badChar) onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`); - return foldLines(source); + return unfoldLines(source); } function singleQuotedValue(source, onError) { if (source[source.length - 1] !== "'" || source.length === 1) onError(source.length, "MISSING_CHAR", "Missing closing 'quote"); - return foldLines(source.slice(1, -1)).replace(/''/g, "'"); + return unfoldLines(source.slice(1, -1)).replace(/''/g, "'"); } - function foldLines(source) { - let first, line; + function unfoldLines(source) { + const line = /(.*?)\r?\n/sy; + let match = line.exec(source); + if (!match) + return source; + let trimEnd, trimBoth; try { - first = new RegExp("(.*?)(? { +var SP2 = 32; +var HTAB2 = 9; +var SEMI2 = 59; +var EQ2 = 61; +var DQUOTE2 = 34; +var BSLASH2 = 92; +var COMMA2 = 44; +var LOWER_CASE2 = 1; +var OWS2 = 2; +var SEMI_FLAG2 = 4; +var COMMA_FLAG2 = 8; +var TOKEN_FLAG2 = 16; +var NON_ASCII2 = 65280; +var CASE_FLAGS2 = LOWER_CASE2 | NON_ASCII2; +var CHAR_MAP2 = new Uint8Array(256); +CHAR_MAP2[HTAB2] |= OWS2; +CHAR_MAP2[SP2] |= OWS2; +CHAR_MAP2[SEMI2] |= SEMI_FLAG2; +CHAR_MAP2[COMMA2] |= COMMA_FLAG2; +for (let code = 128; code <= 255; code++) { + CHAR_MAP2[code] |= LOWER_CASE2; +} +for (const char of "!#$%&'*+-.^_`|~") { + CHAR_MAP2[char.charCodeAt(0)] |= TOKEN_FLAG2; +} +for (let code = 48; code <= 57; code++) { + CHAR_MAP2[code] |= TOKEN_FLAG2; +} +for (let code = 65; code <= 90; code++) { + CHAR_MAP2[code] |= LOWER_CASE2 | TOKEN_FLAG2; +} +for (let code = 97; code <= 122; code++) { + CHAR_MAP2[code] |= TOKEN_FLAG2; +} +var NullObject2 = (() => { const C = function() { }; C.prototype = /* @__PURE__ */ Object.create(null); return C; })(); function parse22(header, options) { - const stopChar = options?.comma === true ? COMMA : 65536; + const stopFlags = SEMI_FLAG2 | (options?.comma === true ? COMMA_FLAG2 : 0); const len = header.length; - let index = skipOWS(header, options?.start ?? 0, len); - const valueStart = index; - index = skipValue(header, index, len, stopChar); - const valueEnd = trailingOWS(header, valueStart, index); - const type = header.slice(valueStart, valueEnd).toLowerCase(); - if (options?.parameters === false) { - return { type, index, parameters: new NullObject() }; + let valueStart = options?.start ?? 0; + while ((CHAR_MAP2[header.charCodeAt(valueStart)] & OWS2) !== 0) { + valueStart++; + } + let index = valueStart; + let typeFlags = 0; + let whitespace = -1; + let stop = options?.parameters === false ? COMMA_FLAG2 : 0; + while (index < len) { + const code = header.charCodeAt(index); + const flags = CHAR_MAP2[code]; + if ((flags & stopFlags) !== 0) { + stop |= flags & COMMA_FLAG2; + break; + } + if ((flags & OWS2) !== 0) { + if (whitespace === -1) + whitespace = index; + } else { + whitespace = -1; + } + typeFlags |= code & NON_ASCII2 | flags; + index++; + } + const valueEnd = whitespace === -1 ? index : whitespace; + const value = header.slice(valueStart, valueEnd); + const type = (typeFlags & CASE_FLAGS2) === 0 ? value : value.toLowerCase(); + if (index === len || stop !== 0) { + return { type, index, parameters: new NullObject2() }; } - return parseParameters(header, type, index, len, stopChar); + return parseParameters2(header, type, index, len, stopFlags); } -var SP = 32; -var HTAB = 9; -var SEMI = 59; -var EQ = 61; -var DQUOTE = 34; -var BSLASH = 92; -var COMMA = 44; -function parseParameters(header, type, index, len, stopChar) { - const parameters = new NullObject(); +function parseParameters2(header, type, index, len, stopFlags) { + const parameters = new NullObject2(); parameter: while (index < len) { - if (header.charCodeAt(index) === stopChar) - break; - index = skipOWS(header, index + 1, len); + index++; + while ((CHAR_MAP2[header.charCodeAt(index)] & OWS2) !== 0) { + index++; + } const keyStart = index; + let keyFlags = 0; + let keyWhitespace = -1; while (index < len) { const code = header.charCodeAt(index); - if (code === stopChar) - break parameter; - if (code === SEMI) + const flags = CHAR_MAP2[code]; + if ((flags & stopFlags) !== 0) { + if ((flags & COMMA_FLAG2) !== 0) + break parameter; continue parameter; - if (code === EQ) { - const keyEnd = trailingOWS(header, keyStart, index); - const key = header.slice(keyStart, keyEnd).toLowerCase(); - index = skipOWS(header, index + 1, len); - if (index < len && header.charCodeAt(index) === DQUOTE) { + } + if (code === EQ2) { + const keyEnd = keyWhitespace === -1 ? index : keyWhitespace; + const value = header.slice(keyStart, keyEnd); + const key = (keyFlags & CASE_FLAGS2) === 0 ? value : value.toLowerCase(); + index++; + while ((CHAR_MAP2[header.charCodeAt(index)] & OWS2) !== 0) { index++; - let value = ""; + } + if (index < len && header.charCodeAt(index) === DQUOTE2) { + const quotedStart = ++index; + let escaped = false; while (index < len) { - const code2 = header.charCodeAt(index++); - if (code2 === DQUOTE) { - index = skipValue(header, index, len, stopChar); - if (parameters[key] === void 0) - parameters[key] = value; - break; + const code2 = header.charCodeAt(index); + if (code2 === DQUOTE2) { + if (parameters[key] === void 0) { + parameters[key] = escaped ? unescapeQuotedPairs2(header, quotedStart, index) : header.slice(quotedStart, index); + } + index++; + let stop2 = 0; + while (index < len) { + const code3 = header.charCodeAt(index); + const flags2 = CHAR_MAP2[code3]; + if ((flags2 & stopFlags) !== 0) { + stop2 = flags2 & COMMA_FLAG2; + break; + } + index++; + } + if (stop2 !== 0) + break parameter; + continue parameter; } - if (code2 === BSLASH && index < len) { - value += header[index++]; + if (code2 === BSLASH2 && index + 1 < len) { + escaped = true; + index += 2; continue; } - value += String.fromCharCode(code2); + index++; } continue parameter; } const valueStart = index; - index = skipValue(header, index, len, stopChar); + let stop = 0; + let valueWhitespace = -1; + while (index < len) { + const code2 = header.charCodeAt(index); + const flags2 = CHAR_MAP2[code2]; + if ((flags2 & stopFlags) !== 0) { + stop = flags2 & COMMA_FLAG2; + break; + } + if ((flags2 & OWS2) !== 0) { + if (valueWhitespace === -1) + valueWhitespace = index; + } else { + valueWhitespace = -1; + } + index++; + } if (parameters[key] === void 0) { - const valueEnd = trailingOWS(header, valueStart, index); + const valueEnd = valueWhitespace === -1 ? index : valueWhitespace; parameters[key] = header.slice(valueStart, valueEnd); } + if (stop !== 0) + break parameter; continue parameter; } + if ((flags & OWS2) !== 0) { + if (keyWhitespace === -1) + keyWhitespace = index; + } else { + keyWhitespace = -1; + } + keyFlags |= code & NON_ASCII2 | flags; index++; } } return { type, index, parameters }; } -function skipValue(str, index, len, stopChar) { - while (index < len) { - const code = str.charCodeAt(index); - if (code === SEMI || code === stopChar) - break; - index++; - } - return index; -} -function skipOWS(header, index, len) { - while (index < len) { - const char = header.charCodeAt(index); - if (char !== SP && char !== HTAB) - break; - index++; - } - return index; -} -function trailingOWS(header, start, end) { - while (end > start) { - const char = header.charCodeAt(end - 1); - if (char !== SP && char !== HTAB) - break; - end--; +function unescapeQuotedPairs2(str, start, end) { + let result = ""; + for (let index = start; index < end; index++) { + if (str.charCodeAt(index) === BSLASH2) { + result += str.slice(start, index); + start = ++index; + } } - return end; + return result + str.slice(start, end); } var intRegex2 = /^-?\d+$/; var noiseValue2 = /^-?\d+n+$/; @@ -58301,7 +58996,7 @@ var RequestError2 = class extends Error { this.request = requestCopy; } }; -var VERSION22 = "10.0.15"; +var VERSION22 = "10.0.16"; var defaults_default2 = { headers: { "user-agent": `octokit-request.js/${VERSION22} ${getUserAgent2()}` @@ -58636,7 +59331,7 @@ var createTokenAuth3 = function createTokenAuth22(token) { hook: hook2.bind(null, token) }); }; -var VERSION42 = "7.0.7"; +var VERSION42 = "7.0.8"; var noop22 = () => { }; var consoleWarn2 = console.warn.bind(console); @@ -61703,7 +62398,7 @@ var GitClient = class _GitClient { Log.debug(`"git push" is not able to be run in dryRun mode.`); throw new DryRunError(); } - args = ["-c", "credential.helper=", ...args]; + args = ["-c", "credential.helper=", "-c", "core.hooksPath=/dev/null", ...args]; Log.debug("Executing: git", this.sanitizeConsoleOutput(args.join(" "))); const result = spawnSync2(this.gitBinPath, args, { cwd: this.baseDir, @@ -61810,10 +62505,11 @@ var findOwnedForksOfRepoQuery = params({ }) }); var AuthenticatedGitClient = class _AuthenticatedGitClient extends GitClient { - constructor(githubToken, userType, config, baseDir) { + constructor(githubToken, userType, config, baseDir, tokenEnvironmentVariable = null) { super(config, baseDir); this.githubToken = githubToken; this.userType = userType; + this.tokenEnvironmentVariable = tokenEnvironmentVariable; this._githubTokenRegex = new RegExp(this.githubToken, "g"); this._cachedOauthScopes = null; this._cachedForkRepositories = null; @@ -61880,21 +62576,23 @@ Alternatively, a new token can be created at: ${GITHUB_TOKEN_GENERATE_URL} throw new Error("No instance of `AuthenticatedGitClient` has been configured."); } if (_AuthenticatedGitClient._authenticatedInstance === null) { - _AuthenticatedGitClient._authenticatedInstance = (async (token, userType) => { - return new _AuthenticatedGitClient(token, userType, await getConfig([assertValidGithubConfig])); - })(_AuthenticatedGitClient._token, _AuthenticatedGitClient._userType); + _AuthenticatedGitClient._authenticatedInstance = (async (token, userType, tokenEnvironmentVariable) => { + return new _AuthenticatedGitClient(token, userType, await getConfig([assertValidGithubConfig]), void 0, tokenEnvironmentVariable); + })(_AuthenticatedGitClient._token, _AuthenticatedGitClient._userType, _AuthenticatedGitClient._tokenEnvironmentVariable); } return _AuthenticatedGitClient._authenticatedInstance; } - static configure(token, userType = "user") { + static configure(token, userType = "user", tokenEnvironmentVariable = null) { if (_AuthenticatedGitClient._token) { throw Error("Unable to configure `AuthenticatedGitClient` as it has been configured already."); } _AuthenticatedGitClient._token = token; _AuthenticatedGitClient._userType = userType; + _AuthenticatedGitClient._tokenEnvironmentVariable = tokenEnvironmentVariable; } }; AuthenticatedGitClient._token = null; +AuthenticatedGitClient._tokenEnvironmentVariable = null; AuthenticatedGitClient._authenticatedInstance = null; var ReleaseTrain = class { constructor(branchName, version) { @@ -62393,10 +63091,6 @@ var miscLabels = createTypedObject(MiscLabel)({ RENOVATE_MANAGED: { name: "renovate managed", description: "Label noting that a pull request will automatically be managed and rebased by renovate" - }, - GEMINI_TRIAGED: { - name: "gemini-triaged", - description: "Label noting that an issue has been triaged by gemini" } }); var allLabels = { @@ -62473,16 +63167,14 @@ function createStore(rl) { } function withHooks(rl, cb) { const store = createStore(rl); - return hookStorage.run(store, () => { - function cycle(render2) { - store.handleChange = () => { - store.index = 0; - render2(); - }; - store.handleChange(); - } - return cb(cycle); - }); + function cycle(render2) { + store.handleChange = () => { + store.index = 0; + render2(); + }; + store.handleChange(); + } + return hookStorage.run(store, () => cb(cycle)); } function getStore() { const store = hookStorage.getStore(); @@ -62924,6 +63616,8 @@ function deepMerge(...objects) { const output = {}; for (const obj of objects) { for (const [key, value] of Object.entries(obj)) { + if (value === void 0) + continue; const prevValue = output[key]; output[key] = isPlainObject32(prevValue) && isPlainObject32(value) ? deepMerge(prevValue, value) : value; } @@ -63009,7 +63703,7 @@ var getCodePointsLength = /* @__PURE__ */ (() => { return input.length - surrogatePairsNr; }; })(); -var isFullWidth2 = (x) => { +var isFullWidth = (x) => { return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510; }; var isWideNotCJKTNotEmoji = (x) => { @@ -63060,7 +63754,7 @@ var getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {}) lengthExtra = 0; for (const char of unmatched.replaceAll(MODIFIER_RE, "")) { const codePoint = char.codePointAt(0) || 0; - if (isFullWidth2(codePoint)) { + if (isFullWidth(codePoint)) { widthExtra = FULL_WIDTH_WIDTH; } else if (isWideNotCJKTNotEmoji(codePoint)) { widthExtra = WIDE_WIDTH; @@ -63420,6 +64114,15 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) { } return pageBuffer.filter((line) => typeof line === "string").join("\n"); } +function withResolver() { + let resolve22; + let reject; + const promise = new Promise((res, rej) => { + resolve22 = res; + reject = rej; + }); + return { promise, resolve: resolve22, reject }; +} var import_mute_stream = __toESM2(require_lib22()); var signals = []; signals.push("SIGHUP", "SIGINT", "SIGTERM"); @@ -63741,20 +64444,16 @@ var ScreenManager = class { this.rl.close(); } }; -var PromisePolyfill = class extends Promise { - // Available starting from Node 22 - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers - static withResolver() { - let resolve22; - let reject; - const promise = new Promise((res, rej) => { - resolve22 = res; - reject = rej; - }); - return { promise, resolve: resolve22, reject }; - } -}; var nativeSetImmediate = globalThis.setImmediate; +var nativeClearImmediate = globalThis.clearImmediate; +function listenTo(target, event, listener) { + if ("on" in target) { + target.on(event, listener); + return () => target.removeListener(event, listener); + } + target.addEventListener(event, listener); + return () => target.removeEventListener(event, listener); +} function getCallSites() { const savedPrepareStackTrace = Error.prepareStackTrace; let result = []; @@ -63785,38 +64484,46 @@ function createPrompt(view) { }); output.mute(); const screen = new ScreenManager(rl); - const { promise, resolve: resolve22, reject } = PromisePolyfill.withResolver(); - const cancel = () => reject(new CancelPromptError()); - if (signal) { - const abort = () => reject(new AbortPromptError({ cause: signal.reason })); - if (signal.aborted) { - abort(); - return Object.assign(promise, { cancel }); - } - signal.addEventListener("abort", abort); - cleanups.add(() => signal.removeEventListener("abort", abort)); - } - cleanups.add(onExit((code, signal2) => { - reject(new ExitPromptError(`User force closed the prompt with ${code} ${signal2}`)); - })); - const sigint = () => reject(new ExitPromptError(`User force closed the prompt with SIGINT`)); - rl.on("SIGINT", sigint); - cleanups.add(() => rl.removeListener("SIGINT", sigint)); + const { promise, resolve: resolve22, reject } = withResolver(); return withHooks(rl, (cycle) => { - const hooksCleanup = AsyncResource3.bind(() => effectScheduler.clearAll()); - rl.on("close", hooksCleanup); - cleanups.add(() => rl.removeListener("close", hooksCleanup)); + const clearEffects = AsyncResource3.bind(() => effectScheduler.clearAll()); + const settlePrompt = (settle) => { + try { + clearEffects(); + settle(); + } catch (error2) { + reject(error2); + } + }; + const resolvePrompt = (value) => settlePrompt(() => resolve22(value)); + const rejectPrompt = (error2) => settlePrompt(() => reject(error2)); + const promptPromise = Object.assign(promise.finally(() => { + cleanups.forEach((cleanup) => cleanup()); + screen.done({ clearContent: Boolean(context3.clearPromptOnDone) }); + output.end(); + }).then(() => promise), { cancel: () => rejectPrompt(new CancelPromptError()) }); + if (signal) { + const abort = () => rejectPrompt(new AbortPromptError({ cause: signal.reason })); + if (signal.aborted) { + abort(); + return promptPromise; + } + cleanups.add(listenTo(signal, "abort", abort)); + } + cleanups.add(onExit((code, signal2) => { + rejectPrompt(new ExitPromptError(`User force closed the prompt with ${code} ${signal2}`)); + })); + cleanups.add(listenTo(rl, "SIGINT", () => rejectPrompt(new ExitPromptError(`User force closed the prompt with SIGINT`)))); + cleanups.add(listenTo(rl, "close", clearEffects)); const startCycle = () => { - const checkCursorPos = () => screen.checkCursorPos(); - rl.input.on("keypress", checkCursorPos); - cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos)); + cleanups.add(listenTo(rl.input, "keypress", () => screen.checkCursorPos())); let pendingDone = null; cycle(() => { let effectsSettled = false; try { const nextView = view(config, (value) => { if (effectsSettled) { - resolve22(value); + resolvePrompt(value); } else { pendingDone = { value }; } @@ -63833,32 +64540,23 @@ function createPrompt(view) { screen.render(content, bottomContent); effectScheduler.run(); } catch (error2) { - reject(error2); + rejectPrompt(error2); } effectsSettled = true; if (pendingDone !== null) { const { value } = pendingDone; pendingDone = null; - resolve22(value); + resolvePrompt(value); } }); }; - if ("readableFlowing" in input) { - nativeSetImmediate(startCycle); + if ("readableFlowing" in input && input.isTTY) { + const immediate = nativeSetImmediate(startCycle); + cleanups.add(() => nativeClearImmediate(immediate)); } else { startCycle(); } - return Object.assign(promise.then((answer) => { - effectScheduler.clearAll(); - return answer; - }, (error2) => { - effectScheduler.clearAll(); - throw error2; - }).finally(() => { - cleanups.forEach((cleanup) => cleanup()); - screen.done({ clearContent: Boolean(context3.clearPromptOnDone) }); - output.end(); - }).then(() => promise), { cancel }); + return promptPromise; }); }; return prompt; @@ -63957,9 +64655,13 @@ var dist_default4 = createPrompt((config, done) => { const [active, setActive] = useState(bounds.first); const [errorMsg, setError] = useState(); useKeypress(async (key) => { + if (status !== "idle") + return; if (isEnterKey(key)) { + setStatus("loading"); const selection = items.filter(isChecked); const isValid = await validate2([...selection]); + setStatus("idle"); if (required && !selection.length) { setError("At least one choice must be selected"); } else if (isValid === true) { @@ -64140,7 +64842,7 @@ var ExternalEditor = class { constructor(text = "", fileOptions = {}) { this.text = text; this.fileOptions = fileOptions; - this.editor = parseEditorCommand(process.env["VISUAL"] ?? process.env["EDITOR"] ?? (process.platform.startsWith("win") ? "notepad" : "vim")); + this.editor = parseEditorCommand(process.env["VISUAL"] || process.env["EDITOR"] || (process.platform.startsWith("win") ? "notepad" : "vim")); } run() { this.createTempFile(); @@ -64307,38 +65009,71 @@ var dist_default5 = createPrompt((config, done) => { } return [[prefix, message, helpTip].filter(Boolean).join(" "), error2]; }); -function getBooleanValue(value, defaultValue) { - let answer = defaultValue !== false; - if (/^(y|yes)/i.test(value)) - answer = true; - else if (/^(n|no)/i.test(value)) - answer = false; - return answer; -} -function boolToString(value) { - return value ? "Yes" : "No"; -} +var confirmTheme = { + keywords: { + yes: "Yes", + no: "No", + error: ({ yes, no }) => `You must answer with "${yes}" or "${no}"` + }, + style: { + confirmDefault: (text) => { + const first = text[0] ?? ""; + if (first.toLowerCase() === first.toUpperCase()) { + return styleText4("cyan", text); + } + return first.toUpperCase() + text.slice(1); + } + } +}; var dist_default6 = createPrompt((config, done) => { - const { transformer = boolToString } = config; const [status, setStatus] = useState("idle"); const [value, setValue] = useState(""); - const theme = makeTheme(config.theme); + const [errorMsg, setError] = useState(); + const theme = makeTheme(confirmTheme, config.theme); const prefix = usePrefix({ status, theme }); + const { yes, no } = theme.keywords; + const yesHint = (yes[0] ?? "").toLowerCase(); + const noHint = (no[0] ?? "").toLowerCase(); + const hint = config.default === false ? `${yesHint}/${theme.style.confirmDefault(noHint)}` : `${theme.style.confirmDefault(yesHint)}/${noHint}`; + function boolToString(value2) { + return value2 ? yes : no; + } + const { transformer = boolToString } = config; + function getBooleanValue(value2) { + const v = value2.trim().toLowerCase(); + if (v === "") + return config.default !== false; + if (yes.toLowerCase().startsWith(v)) + return true; + if (no.toLowerCase().startsWith(v)) + return false; + if ("yes".startsWith(v)) + return true; + if ("no".startsWith(v)) + return false; + return void 0; + } useKeypress((key, rl) => { if (status !== "idle") return; if (isEnterKey(key)) { - const answer = getBooleanValue(value, config.default); + const answer = getBooleanValue(value); + if (answer === void 0) { + rl.write(value); + setError(theme.keywords.error({ yes, no })); + return; + } setValue(transformer(answer)); setStatus("done"); done(answer); } else if (isTabKey(key)) { - const answer = boolToString(!getBooleanValue(value, config.default)); + const answer = boolToString(!(getBooleanValue(value) ?? config.default !== false)); rl.clearLine(0); rl.write(answer); setValue(answer); } else { setValue(rl.line); + setError(void 0); } }); let formattedValue = value; @@ -64346,10 +65081,14 @@ var dist_default6 = createPrompt((config, done) => { if (status === "done") { formattedValue = theme.style.answer(value); } else { - defaultValue = ` ${theme.style.defaultAnswer(config.default === false ? "y/N" : "Y/n")}`; + defaultValue = ` ${theme.style.defaultAnswer(hint)}`; } const message = theme.style.message(config.message, status); - return `${prefix} ${message}${defaultValue} ${formattedValue}`; + let error2 = ""; + if (errorMsg) { + error2 = theme.style.error(errorMsg); + } + return [`${prefix} ${message}${defaultValue} ${formattedValue}`, error2]; }); var inputTheme = { validationFailureMode: "keep" @@ -64363,11 +65102,11 @@ var dist_default7 = createPrompt((config, done) => { const [value, setValue] = useState(""); const prefix = usePrefix({ status, theme }); async function validate2(value2) { - const { required, pattern, patternError = "Invalid input" } = config; + const { required, pattern: pattern2, patternError = "Invalid input" } = config; if (required && !value2) { return "You must provide a value"; } - if (pattern && !pattern.test(value2)) { + if (pattern2 && !pattern2.test(value2)) { return patternError; } if (typeof config.validate === "function") { @@ -64480,15 +65219,18 @@ var dist_default8 = createPrompt((config, done) => { return; } if (isEnterKey(key)) { - const input = value || defaultValue; + const input = value.trim() || defaultValue; const answer = input === "" ? void 0 : Number(input); setStatus("loading"); let isValid = true; if (required || answer != null) { isValid = validateNumber(answer, { min, max, step }); } - if (isValid === true && answer != null) { - isValid = await validate2(answer); + if (isValid === true) { + isValid = await validate2( + // oxlint-disable-next-line typescript/no-unsafe-type-assertion + answer + ); } if (isValid === true) { setValue(String(answer ?? "")); @@ -64560,7 +65302,7 @@ var expand22 = createPrompt((config, done) => { const prefix = usePrefix({ theme, status }); useKeypress((event, rl) => { if (isEnterKey(event)) { - const answer = (value || defaultKey).toLowerCase(); + const answer = (value.trim() || defaultKey).toLowerCase(); if (answer === "h" && !expanded) { setExpanded(true); } else { @@ -64572,7 +65314,7 @@ var expand22 = createPrompt((config, done) => { } else if (value === "") { setError("Please input a value"); } else { - setError(`"${styleText4("red", value)}" isn't an available option`); + setError(`"${styleText5("red", value)}" isn't an available option`); } } } else { @@ -64603,16 +65345,16 @@ var expand22 = createPrompt((config, done) => { return ` ${choice.separator}`; } const line = ` ${choice.key}) ${choice.name}`; - if (choice.key === value.toLowerCase()) { + if (choice.key === value.trim().toLowerCase()) { return theme.style.highlight(line); } return line; }).join("\n"); } let helpTip = ""; - const currentOption = choices.find((choice) => !Separator.isSeparator(choice) && choice.key === value.toLowerCase()); + const currentOption = choices.find((choice) => !Separator.isSeparator(choice) && choice.key === value.trim().toLowerCase()); if (currentOption) { - helpTip = `${styleText4("cyan", ">>")} ${currentOption.name}`; + helpTip = `${styleText5("cyan", ">>")} ${currentOption.name}`; } let error2 = ""; if (errorMsg) { @@ -64623,10 +65365,10 @@ var expand22 = createPrompt((config, done) => { [longChoices, helpTip, error2].filter(Boolean).join("\n") ]; }); -var numberRegex = /\d+/; +var numberRegex = /^\d+$/; var rawlistTheme = { style: { - description: (text) => styleText5("cyan", text) + description: (text) => styleText6("cyan", text) } }; function isSelectableChoice(choice) { @@ -64660,9 +65402,10 @@ function normalizeChoices3(choices) { function getSelectedChoice(input, choices) { let selectedChoice; const selectableChoices = choices.filter(isSelectableChoice); - selectedChoice = selectableChoices.find((choice) => choice.key === input); - if (!selectedChoice && numberRegex.test(input)) { - const answer = Number.parseInt(input, 10) - 1; + const trimmedInput = input.trim(); + selectedChoice = selectableChoices.find((choice) => choice.key === input || choice.key === trimmedInput); + if (!selectedChoice && numberRegex.test(trimmedInput)) { + const answer = Number.parseInt(trimmedInput, 10) - 1; selectedChoice = selectableChoices[answer]; } return selectedChoice ? [selectedChoice, choices.indexOf(selectedChoice)] : [void 0, void 0]; @@ -64697,7 +65440,7 @@ var dist_default9 = createPrompt((config, done) => { } else if (value === "") { setError("Please input a value"); } else { - setError(`"${styleText5("red", value)}" isn't an available option`); + setError(`"${styleText6("red", value)}" isn't an available option`); } } else if (isUpKey(key, keybindings2) || isDownKey(key, keybindings2)) { rl.clearLine(0); @@ -64724,12 +65467,13 @@ var dist_default9 = createPrompt((config, done) => { if (status === "done") { return `${prefix} ${message} ${theme.style.answer(value)}`; } + const [selectedChoice] = getSelectedChoice(value, choices); const choicesStr = choices.map((choice) => { if (Separator.isSeparator(choice)) { return ` ${choice.separator}`; } const line = ` ${choice.key}) ${choice.name}`; - if (choice.key === value) { + if (selectedChoice && choice.key === selectedChoice.key) { return theme.style.highlight(line); } return line; @@ -64738,7 +65482,6 @@ var dist_default9 = createPrompt((config, done) => { if (errorMsg) { error2 = theme.style.error(errorMsg); } - const [selectedChoice] = getSelectedChoice(value, choices); let description = ""; if (!errorMsg && selectedChoice?.description) { description = theme.style.description(selectedChoice.description); @@ -64750,15 +65493,17 @@ var dist_default9 = createPrompt((config, done) => { }); var passwordTheme = { style: { - maskedText: "[input is masked]" + maskedText: "[input is masked]", + keysHelpTip: (keys) => keys.map(([key, action]) => `${styleText7("bold", key)} ${styleText7("dim", action)}`).join(styleText7("dim", " \u2022 ")) } }; var dist_default10 = createPrompt((config, done) => { - const { validate: validate2 = () => true } = config; + const { toggleMask = true, validate: validate2 = () => true } = config; const theme = makeTheme(passwordTheme, config.theme); const [status, setStatus] = useState("idle"); const [errorMsg, setError] = useState(); const [value, setValue] = useState(""); + const [revealed, setRevealed] = useState(false); const prefix = usePrefix({ status, theme }); useKeypress(async (key, rl) => { if (status !== "idle") { @@ -64777,36 +65522,43 @@ var dist_default10 = createPrompt((config, done) => { setError(isValid || "You must provide a valid value"); setStatus("idle"); } + } else if (toggleMask && key.ctrl && key.name === "t") { + setRevealed((prev) => !prev); } else { setValue(rl.line); setError(void 0); } }); const message = theme.style.message(config.message, status); + const showPlaintext = toggleMask && revealed && status === "idle"; let formattedValue = ""; - let helpTip; - if (config.mask) { + if (showPlaintext) { + formattedValue = value; + } else if (config.mask) { const maskChar = typeof config.mask === "string" ? config.mask : "*"; formattedValue = maskChar.repeat(value.length); } else if (status !== "done") { - helpTip = `${theme.style.help(theme.style.maskedText)}${cursorHide}`; + formattedValue = theme.style.help(theme.style.maskedText); } if (status === "done") { formattedValue = theme.style.answer(formattedValue); + } else if (!config.mask) { + formattedValue += cursorHide; } - let error2 = ""; - if (errorMsg) { - error2 = theme.style.error(errorMsg); - } - return [[prefix, message, config.mask ? formattedValue : helpTip].join(" "), error2]; + const content = [prefix, message, formattedValue].join(" "); + const bottomContent = [ + errorMsg ? theme.style.error(errorMsg) : "", + toggleMask && status === "idle" ? theme.style.keysHelpTip([["ctrl+t", "toggle visibility"]]) : "" + ].filter(Boolean).join("\n"); + return [content, bottomContent]; }); var searchTheme = { icon: { cursor: dist_default.pointer }, style: { - disabled: (text) => styleText6("dim", `- ${text}`), - searchTerm: (text) => styleText6("cyan", text), - description: (text) => styleText6("cyan", text), - keysHelpTip: (keys) => keys.map(([key, action]) => `${styleText6("bold", key)} ${styleText6("dim", action)}`).join(styleText6("dim", " \u2022 ")) + disabled: (text) => styleText8("dim", `- ${text}`), + searchTerm: (text) => styleText8("cyan", text), + description: (text) => styleText8("cyan", text), + keysHelpTip: (keys) => keys.map(([key, action]) => `${styleText8("bold", key)} ${styleText8("dim", action)}`).join(styleText8("dim", " \u2022 ")) } }; function isSelectable2(item) { @@ -64894,7 +65646,7 @@ var dist_default11 = createPrompt((config, done) => { const selectedChoice = searchResults[active]; useKeypress(async (key, rl) => { if (isEnterKey(key)) { - if (selectedChoice) { + if (selectedChoice && status === "idle") { setStatus("loading"); const isValid = await validate2(selectedChoice.value); setStatus("idle"); @@ -64973,12 +65725,13 @@ var dist_default11 = createPrompt((config, done) => { ].filter(Boolean).join("\n").trimEnd(); return [header, body]; }); +var numberLineRegex = /^\d+$/; var selectTheme = { icon: { cursor: dist_default.pointer }, style: { - disabled: (text) => styleText7("dim", text), - description: (text) => styleText7("cyan", text), - keysHelpTip: (keys) => keys.map(([key, action]) => `${styleText7("bold", key)} ${styleText7("dim", action)}`).join(styleText7("dim", " \u2022 ")) + disabled: (text) => styleText9("dim", text), + description: (text) => styleText9("cyan", text), + keysHelpTip: (keys) => keys.map(([key, action]) => `${styleText9("bold", key)} ${styleText9("dim", action)}`).join(styleText9("dim", " \u2022 ")) }, i18n: { disabledError: "This option is disabled and cannot be selected." }, indexMode: "hidden" @@ -65065,7 +65818,7 @@ var dist_default12 = createPrompt((config, done) => { } while (!isNavigable2(items[next])); setActive(next); } - } else if (isNumberKey(key) && !Number.isNaN(Number(rl.line))) { + } else if (isNumberKey(key) && numberLineRegex.test(rl.line)) { const selectedIndex = Number(rl.line) - 1; let selectableIndex = -1; const position = items.findIndex((item2) => { @@ -65155,7 +65908,7 @@ Prompt.input = dist_default7; Prompt.checkbox = dist_default4; Prompt.select = dist_default12; Prompt.editor = dist_default5; -var import_yaml = __toESM2(require_dist2()); +var import_yaml = __toESM2(require_dist()); // var require5 = __cjsCompatRequire_ngDev4(import.meta.url); @@ -65337,7 +66090,7 @@ content-type/dist/index.js: @octokit/graphql/dist-bundle/index.js: (* v8 ignore if -- @preserve *) -@angular/ng-dev/bundles/chunk-H3MYIWGQ.mjs: +@angular/ng-dev/bundles/chunk-XNKXDVMU.mjs: (*! Bundled license information: yargs-parser/build/lib/string-utils.js: @@ -65378,7 +66131,7 @@ content-type/dist/index.js: *) *) -@angular/ng-dev/bundles/chunk-Z3X5GOBV.mjs: +@angular/ng-dev/bundles/chunk-WRTEXYVR.mjs: (*! Bundled license information: content-type/dist/index.js: diff --git a/.github/actions/deploy-docs-site/tsconfig.json b/.github/actions/deploy-docs-site/tsconfig.json index ddabad392d77..bc8e4ee479dd 100644 --- a/.github/actions/deploy-docs-site/tsconfig.json +++ b/.github/actions/deploy-docs-site/tsconfig.json @@ -5,7 +5,6 @@ "types": ["node"], "lib": ["es2021"], "experimentalDecorators": true, - "strict": true, "skipLibCheck": true, "noImplicitOverride": true, "esModuleInterop": true, @@ -13,4 +12,4 @@ "declaration": true, "sourceMap": true } -} \ No newline at end of file +} diff --git a/.github/workflows/adev-preview-build.yml b/.github/workflows/adev-preview-build.yml index 734a4b168ffd..42952f3e0067 100644 --- a/.github/workflows/adev-preview-build.yml +++ b/.github/workflows/adev-preview-build.yml @@ -21,21 +21,19 @@ jobs: (github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'adev: preview')) steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel RBE - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile - name: Build adev # `snapshot-build` config is used to stamp the exact version with sha in the footer. run: pnpm bazel build //adev:build.production --config=snapshot-build - - uses: angular/dev-infra/github-actions/previews/pack-and-upload-artifact@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + - uses: angular/dev-infra/github-actions/previews/pack-and-upload-artifact@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: workflow-artifact-name: 'adev-preview' - angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY || 'bypassed_for_forks' }} - triggering-label: 'adev: preview' pull-number: '${{github.event.pull_request.number}}' artifact-build-revision: '${{github.event.pull_request.head.sha}}' deploy-directory: './dist/bin/adev/dist/browser' diff --git a/.github/workflows/adev-preview-deploy.yml b/.github/workflows/adev-preview-deploy.yml index 88b490c2663e..769d23dd8996 100644 --- a/.github/workflows/adev-preview-deploy.yml +++ b/.github/workflows/adev-preview-deploy.yml @@ -34,7 +34,7 @@ jobs: with: token: '${{secrets.GITHUB_TOKEN}}' persist-credentials: false - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version-file: '.nvmrc' package-manager-cache: false @@ -46,7 +46,7 @@ jobs: npx -y firebase-tools@15.15.0 target:clear --config adev/firebase.json --project ${{env.PREVIEW_PROJECT}} hosting angular-docs npx -y firebase-tools@15.15.0 target:apply --config adev/firebase.json --project ${{env.PREVIEW_PROJECT}} hosting angular-docs ${{env.PREVIEW_SITE}} - - uses: angular/dev-infra/github-actions/previews/upload-artifacts-to-firebase@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + - uses: angular/dev-infra/github-actions/previews/upload-artifacts-to-firebase@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: github-token: '${{secrets.GITHUB_TOKEN}}' workflow-artifact-name: 'adev-preview' diff --git a/.github/workflows/assistant-to-the-branch-manager.yml b/.github/workflows/assistant-to-the-branch-manager.yml index adb1937840ae..d1c8b49c73a3 100644 --- a/.github/workflows/assistant-to-the-branch-manager.yml +++ b/.github/workflows/assistant-to-the-branch-manager.yml @@ -18,6 +18,6 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - uses: angular/dev-infra/github-actions/branch-manager@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + - uses: angular/dev-infra/github-actions/branch-manager@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }} diff --git a/.github/workflows/benchmark-compare.yml b/.github/workflows/benchmark-compare.yml index 0469f5c99a95..8a907fdb4f60 100644 --- a/.github/workflows/benchmark-compare.yml +++ b/.github/workflows/benchmark-compare.yml @@ -40,19 +40,19 @@ jobs: # because it does not support checking out from a fork (as it lacks a `repository` input). # Thus, we checkout and setup Node/pnpm manually. - name: Setup Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version-file: '.nvmrc' - name: Install pnpm - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 + uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 - run: pnpm install --frozen-lockfile - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + - uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: bazelrc: ./.bazelrc.user diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2708859c1a65..6cb0d3bab538 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile - name: Check code lint @@ -41,13 +41,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: disable-package-manager-cache: true - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel RBE - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }} - name: Install node modules @@ -57,7 +57,7 @@ jobs: - name: Test build run: pnpm devtools:build:chrome - name: Cypress run - uses: cypress-io/github-action@09090944bd8aaa2a517cefb6e38bf1aae336b42b # v7.4.3 + uses: cypress-io/github-action@18016a55674bd02cabf197de5762a1710cb5577c # v7.4.9 with: command: pnpm devtools:test:e2e start: pnpm bazel run //devtools/src:devserver @@ -69,11 +69,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel Remote Caching - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }} - name: Install node modules @@ -85,11 +85,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel Remote Caching - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }} - name: Install node modules @@ -102,11 +102,11 @@ jobs: labels: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel RBE - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }} - name: Install node modules @@ -121,11 +121,11 @@ jobs: labels: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel RBE - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }} - name: Install node modules @@ -138,11 +138,11 @@ jobs: labels: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel RBE - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile - run: echo "https://${{secrets.SNAPSHOT_BUILDS_GITHUB_TOKEN}}:@github.com" > ${HOME}/.git_credentials @@ -154,11 +154,11 @@ jobs: labels: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel RBE - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }} - name: Install node modules @@ -198,11 +198,11 @@ jobs: runs-on: ubuntu-latest-8core steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel RBE - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile - name: Build adev diff --git a/.github/workflows/cross-repo-adev-docs.yml b/.github/workflows/cross-repo-adev-docs.yml index eecfceb78c1d..30bf6f9f622d 100644 --- a/.github/workflows/cross-repo-adev-docs.yml +++ b/.github/workflows/cross-repo-adev-docs.yml @@ -37,7 +37,7 @@ jobs: ANGULAR_READONLY_GITHUB_TOKEN: ${{ secrets.READONLY_GITHUB_TOKEN }} - name: Create a PR (if necessary) - uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 + uses: peter-evans/create-pull-request@3ffccacd46053766916f087ce41d627c0b8cf2d1 # v8.1.3 with: token: ${{ secrets.ANGULAR_ROBOT_ACCESS_TOKEN }} push-to-fork: 'angular-robot/angular' diff --git a/.github/workflows/dev-infra.yml b/.github/workflows/dev-infra.yml index f52b9debde53..0af7aa905663 100644 --- a/.github/workflows/dev-infra.yml +++ b/.github/workflows/dev-infra.yml @@ -16,7 +16,7 @@ jobs: if: github.event_name == 'pull_request_target' runs-on: ubuntu-latest steps: - - uses: angular/dev-infra/github-actions/labeling/pull-request@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + - uses: angular/dev-infra/github-actions/labeling/pull-request@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }} labels: '{"requires: TGP": ["packages/core/primitives/**/{*,.*}"]}' @@ -24,14 +24,14 @@ jobs: if: github.event_name == 'pull_request_target' runs-on: ubuntu-latest steps: - - uses: angular/dev-infra/github-actions/post-approval-changes@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + - uses: angular/dev-infra/github-actions/post-approval-changes@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }} issue_labels: if: github.event_name == 'issues' runs-on: ubuntu-latest steps: - - uses: angular/dev-infra/github-actions/labeling/issue@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + - uses: angular/dev-infra/github-actions/labeling/issue@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }} google-generative-ai-key: ${{ secrets.GOOGLE_GENERATIVE_AI_KEY }} diff --git a/.github/workflows/google-internal-tests.yml b/.github/workflows/google-internal-tests.yml index e0c643340621..4cd9d7379a32 100644 --- a/.github/workflows/google-internal-tests.yml +++ b/.github/workflows/google-internal-tests.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: angular/dev-infra/github-actions/google-internal-tests@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + - uses: angular/dev-infra/github-actions/google-internal-tests@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: run-tests-guide-url: http://go/angular-g3sync-start github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/merge-ready-status.yml b/.github/workflows/merge-ready-status.yml deleted file mode 100644 index 8813e5a50d8e..000000000000 --- a/.github/workflows/merge-ready-status.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Merge Ready - -on: - # zizmor: ignore[dangerous-triggers] - {Trigger is safe as workflow does not checkout untrusted code} - pull_request_target: - -# Declare default permissions as read only. -permissions: {} - -jobs: - status: - runs-on: ubuntu-latest - steps: - - uses: angular/dev-infra/github-actions/unified-status-check@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main - with: - angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }} diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 63197d86088d..852f29c00517 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -20,7 +20,7 @@ jobs: workflows: ${{ steps.workflows.outputs.workflows }} steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile - id: workflows @@ -38,9 +38,9 @@ jobs: workflow: ${{ fromJSON(needs.list.outputs.workflows) }} steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile # We utilize the google-github-actions/auth action to allow us to get an active credential using workflow diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 21229b5a0982..08b5b072992d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile - name: Check code lint @@ -39,7 +39,7 @@ jobs: - name: Check code format run: pnpm ng-dev format changed --check ${{ github.event.pull_request.base.sha }} - name: Check Package Licenses - uses: angular/dev-infra/github-actions/linting/licenses@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/linting/licenses@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: allow-dependencies-licenses: 'pkg:npm/google-protobuf@' @@ -47,13 +47,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main with: disable-package-manager-cache: true - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel RBE - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile - name: Run unit tests @@ -61,7 +61,7 @@ jobs: - name: Test build run: pnpm devtools:build:chrome - name: Cypress run - uses: cypress-io/github-action@09090944bd8aaa2a517cefb6e38bf1aae336b42b # v7.4.3 + uses: cypress-io/github-action@18016a55674bd02cabf197de5762a1710cb5577c # v7.4.9 with: command: pnpm devtools:test:e2e start: pnpm bazel run //devtools/src:devserver @@ -73,11 +73,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel Remote Caching - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile - name: Run CI tests for framework @@ -88,7 +88,7 @@ jobs: ASPECT_RULES_JS_FROZEN_PNPM_LOCK: '1' - name: Upload GRPC logs (for debugging of RBE issues) if: always() - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: path: /tmp/rbe-grpc.log retention-days: 1 @@ -97,11 +97,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel Remote Caching - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile - name: Run integration CI tests for framework @@ -112,11 +112,11 @@ jobs: labels: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel RBE - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile - name: Run tests @@ -129,11 +129,11 @@ jobs: labels: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel RBE - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile - name: Run tests @@ -144,11 +144,11 @@ jobs: labels: ubuntu-latest steps: - name: Initialize environment - uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel - uses: angular/dev-infra/github-actions/bazel/setup@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/setup@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Setup Bazel RBE - uses: angular/dev-infra/github-actions/bazel/configure-remote@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/github-actions/bazel/configure-remote@4915333b8fd3bb24085df356cde085edf2d7db89 # main - name: Install node modules run: pnpm install --frozen-lockfile - run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7efa66715e97..dad3b6973251 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ permissions: jobs: release: - uses: angular/dev-infra/.github/workflows/reusable-release.yml@fa43fd2864c3bec677cd47f4e095370850cdf8bc # main + uses: angular/dev-infra/.github/workflows/reusable-release.yml@4915333b8fd3bb24085df356cde085edf2d7db89 # main secrets: wombot-token: ${{ secrets.WOMBOT_TOKEN }} angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }} diff --git a/.gitignore b/.gitignore index a7b08fdcd43e..1c5d9a5cf037 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,9 @@ *.log node_modules/ modules/ssr-benchmarks/node_modules/ +/ngp-vscode-ng-language-service/dist/ +/.vscode-test/ +/.vscode-test-user-data/ # Include when developing application packages. pubspec.lock @@ -57,3 +60,6 @@ baseline.json # pnpm store .pnpm-store + +# Cargo target directory +target/ diff --git a/.ng-dev/google-sync-config.json b/.ng-dev/google-sync-config.json index a779d65d8120..72ed7302a19b 100644 --- a/.ng-dev/google-sync-config.json +++ b/.ng-dev/google-sync-config.json @@ -5,6 +5,7 @@ "packages/*", "packages/bazel/**", "packages/compiler-cli/linker/**", + "packages/compiler-cli/preprocessor/**", "packages/compiler-cli/src/ngtsc/sourcemaps/**", "packages/compiler-cli/src/ngtsc/testing/**", "packages/compiler-cli/private/bazel.ts", diff --git a/.ng-dev/tsconfig.json b/.ng-dev/tsconfig.json index 755e28d9d8d9..7eface4d1f8f 100644 --- a/.ng-dev/tsconfig.json +++ b/.ng-dev/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "strict": true, "target": "es2020", "module": "Node16", "noEmit": true, diff --git a/.nvmrc b/.nvmrc index 60ade1ae01e8..229b3ce85a63 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -24.19.0 +24.22.3 diff --git a/.pnpmfile.cjs b/.pnpmfile.cjs index 9fbb50301f0c..12e9ed8cb77e 100644 --- a/.pnpmfile.cjs +++ b/.pnpmfile.cjs @@ -53,7 +53,7 @@ function readPackage(pkg, context) { if (pkg.version === '0.0.0-PLACEHOLDER' && localAngularPackages.has(key)) { pkg.dependencies = { ...pkg.dependencies, - [key]: 'workspace: *', + [key]: 'workspace:*', }; delete pkg.peerDependencies[key]; diff --git a/.prettierignore b/.prettierignore index a3406c270666..d5a36e666219 100644 --- a/.prettierignore +++ b/.prettierignore @@ -47,3 +47,11 @@ adev/src/content/examples/schematics-for-libraries/projects/my-lib/package.json CHANGELOG.md CHANGELOG_ARCHIVE.md + +# Ignore NGP test fixture markdown files +packages/compiler-cli/preprocessor/test/golden/** + +# Ignore NGP language service test workspaces +packages/compiler-cli/preprocessor/language-service/tests/test-workspace/** +ngp-vscode-ng-language-service/tests/test-workspace/** +ngp-vscode-ng-language-service/e2e/test-workspace/** diff --git a/.pullapprove.yml b/.pullapprove.yml index 47e9cf24a23d..a571ce9c50f7 100644 --- a/.pullapprove.yml +++ b/.pullapprove.yml @@ -138,11 +138,13 @@ groups: 'packages/platform-browser/**/{*,.*}', 'packages/platform-browser-dynamic/**/{*,.*}', 'packages/platform-server/**/{*,.*}', + 'packages/private/**/{*,.*}', 'packages/ssr/**/{*,.*}', 'packages/router/**/{*,.*}', 'packages/service-worker/**/{*,.*}', 'packages/upgrade/**/{*,.*}', 'vscode-ng-language-service/**/{*,.*}', + 'ngp-vscode-ng-language-service/**/{*,.*}', ]) reviewers: users: @@ -302,7 +304,7 @@ groups: conditions: - > contains_any_globs(files - .exclude('.pullapprove.yml') + .exclude('.pullapprove.yml') .exclude('tools/manual_api_docs/blocks/*.md') .exclude('tools/manual_api_docs/elements/*.md') .exclude('.agent/**/*.md'), @@ -322,7 +324,6 @@ groups: 'modules/{*,.*}', 'packages/{*,.*}', 'packages/examples/test-utils/**/{*,.*}', - 'packages/private/**/{*,.*}', 'packages/examples/{*,.*}', 'scripts/**/{*,.*}', 'third_party/**/{*,.*}', @@ -484,23 +485,9 @@ groups: - ~thePunderWoman # Jessica Janiuk - ~AndrewKushnir # Andrew Kushnir - atscott # Andrew Scott - - # External team required reviews - primitives-shared: - <<: *defaults - conditions: - - > - contains_any_globs(files.exclude('packages/core/primitives/**/*spec.ts'), [ - 'packages/core/primitives/**/{*,.*}', - ]) - reviewers: - users: - - csmick # Cameron Smick - - mturco # Matt Turco - - iteriani # Thomas Nguyen - - tbondwilkinson # Tom Wilkinson - rahatarmanahmed # Rahat Ahmed - e-cline # Ethan Cline + - rockymeza # Rocky Meza #################################################################################### # Override managed result groups diff --git a/AGENTS.md b/AGENTS.md index aa957faf31ee..d120951b52cb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -17,6 +17,10 @@ This is the source code for the Angular framework. This guide outlines standard ## Testing +- Create standalone component/directives by default, DO NOT introduce new NgModules/non-standalone components even if sibling tests use them. +- Prefer current best practices over existing authoring styles in the same file +- Test components usually do not need selectors unless they are used in templates +- Components are `OnPush` by default, prefer signals for test component state - **Zoneless & Async-First:** Assume a zoneless environment where state changes schedule updates asynchronously. - **Do NOT** use `fixture.detectChanges()` to manually trigger updates. - **ALWAYS** use the "Act, Wait, Assert" pattern: @@ -28,6 +32,7 @@ This is the source code for the Angular framework. This guide outlines standard - When waiting is necessary, use real async tests (`it('...', async () => { ... })`) along with: - `await timeout(ms)` (from `packages/private/testing/src/utils.ts`) to wait a specific number of milliseconds. - `await fixture.whenStable()` to wait for framework stability. + - Use the `waitFor` helper function exposed by `@angular/private/testing` ## Pull Requests diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fcc8ecbf180..adfdccd11a29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,46 +1,973 @@ - -# 22.2.0-next.4 (2026-08-26) + +# 22.3.0-rc.0 (2026-11-12) +### animations +| Commit | Type | Description | +| -- | -- | -- | +| [a62ae5b04d](https://github.com/angular/angular/commit/a62ae5b04dfca682a61996c2c5920d0cacec52ea) | fix | memory leak in renderer | +### common +| Commit | Type | Description | +| -- | -- | -- | +| [00ea9a4556](https://github.com/angular/angular/commit/00ea9a4556cb1f2710edd7e184f16d0c28f92ca4) | fix | omit empty arrays from HttpParams | +| [622a7c7f29](https://github.com/angular/angular/commit/622a7c7f29d397fee68ed39d753a088787625829) | fix | restore natural order when KeyValuePipe compareFn changes to null | +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [e4f67442bb](https://github.com/angular/angular/commit/e4f67442bbfc0a7d29793c4ff937a517887bc588) | feat | report unknown property bindings on explicit ng-template elements | +| [5e9c18755c](https://github.com/angular/angular/commit/5e9c18755ce95118b022da5d993478ac40f87fc8) | fix | convert &ngsp; to a space inside ngNonBindable | +| [225d600314](https://github.com/angular/angular/commit/225d60031485306c20dc88a6a6783ed75b70b0a2) | fix | disallow attribute and property names starting with a colon | +| [f9fe21d67f](https://github.com/angular/angular/commit/f9fe21d67f47bfc77eb3495d325e31ddc3adae69) | fix | handle void expressions in constant literals | +| [9731822b27](https://github.com/angular/angular/commit/9731822b270573f7964089c54c0f082804e76b7e) | fix | report errors at arrow parameters | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [d3dedf53e4](https://github.com/angular/angular/commit/d3dedf53e4414f97d5e7610aaf0f8f0a5cf3f061) | fix | avoid names used in the file for generated namespace imports in ngp | +| [8f6fd2bdf3](https://github.com/angular/angular/commit/8f6fd2bdf3d89243756e82255457cf6824707f1f) | fix | hoist `import x = …` declarations like ngtsc's ImportManager | +| [670c17232b](https://github.com/angular/angular/commit/670c17232b06b26471414b7dc76d719af952087a) | fix | never drop hostDirectives entries in local compilation | +| [13627163fd](https://github.com/angular/angular/commit/13627163fd3d1598e89592557542e800aaa82887) | fix | remove functions in text interpolations check | +| [672b9dcfc2](https://github.com/angular/angular/commit/672b9dcfc21a94281b391563fb4d4c8f95089af8) | fix | remove nullish coalescing check | +| [e150abb571](https://github.com/angular/angular/commit/e150abb57144f0f6ce5df3641df5e6ed5dcc68ec) | fix | remove optional chain check | +| [19c56bd3fc](https://github.com/angular/angular/commit/19c56bd3fc3f8ec3839c1cd2b5d796a4799d25f5) | fix | remove uninvoked track function check | +| [5ac4cf7b54](https://github.com/angular/angular/commit/5ac4cf7b546df2d26c7fe33ac70934c2f26ede84) | fix | resolve ambient global values declared in tsconfig .d.ts files | +| [4fd60ae6c0](https://github.com/angular/angular/commit/4fd60ae6c05fc13c847054953b946f696487cfbc) | fix | share parsed .d.ts files within same process | +| [dd3eb346c7](https://github.com/angular/angular/commit/dd3eb346c7b6c691e65d2df45179ef46dc26ba58) | fix | skip fingerprinting when incremental compilation is disabled | +| [08d41a9e94](https://github.com/angular/angular/commit/08d41a9e94d0f456a8bf4e80d9e6050cc672e638) | fix | suggest ngProjectAs in control flow content projection diagnostic | +| [4f3dec7b5a](https://github.com/angular/angular/commit/4f3dec7b5a35f9892d6d0d9764077d1642811346) | perf | look up ambient globals lazily in tsconfig order | +| [77a5094b52](https://github.com/angular/angular/commit/77a5094b52ed338abc06aa9df07ab5b63abfacdb) | perf | memoize ambient global lookups from the start of tsconfig files | +| [1bc2f95306](https://github.com/angular/angular/commit/1bc2f95306cd16a8c50f211c3204d71bf8d0491b) | perf | track ambient global consumers by name and cache .d.ts global names | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [088cdd2cab](https://github.com/angular/angular/commit/088cdd2cab6d68aa1f8c5420bb6bd4940bdf5111) | fix | allow binding null and undefined to resource URL properties | +| [efbab16e56](https://github.com/angular/angular/commit/efbab16e56734d7121d9dd29c2761dec6e787807) | fix | cancel obsolete resource loads when params become unavailable | +| [2282d6637f](https://github.com/angular/angular/commit/2282d6637f979910c64b54bf1c4119a4d8957b48) | fix | detect own NgZone by reference instead of instance ID | +| [af620ea3d9](https://github.com/angular/angular/commit/af620ea3d938fbec380166f25b18966621879b6d) | fix | guard hydrating map access and release pending task on error | +| [c476164c6c](https://github.com/angular/angular/commit/c476164c6cf475544935420a2bd511071ddd8694) | fix | http golden symbols updated again | +| [3296939422](https://github.com/angular/angular/commit/3296939422876b6f54f0715ca723069cf89b937d) | fix | improve error message for unparsable ICU expressions in translations | +| [74260b298f](https://github.com/angular/angular/commit/74260b298fe7bc35c428780928d6d85da113eee1) | fix | remove early event listeners after replay | +| [5f51154197](https://github.com/angular/angular/commit/5f511541978b3e927e58cf2a2a186725ce1c4bf5) | fix | resolve closure and reference retention leaks | +| [e25a22841a](https://github.com/angular/angular/commit/e25a22841aa2e1dc6a3991012e3678745247f9dd) | fix | update golden symbols | +| [2d6183f42f](https://github.com/angular/angular/commit/2d6183f42f42c8630ad0a4d73d04e6200e2c5f2c) | perf | allow `EffectRefImpl` to be tree-shaken | +| [b662e55749](https://github.com/angular/angular/commit/b662e557498a15e03802ab123b7494fe9967ea69) | perf | allow `ResourceParamsStatus` to be tree-shaken | +| [833c1f2c96](https://github.com/angular/angular/commit/833c1f2c96c514ad2d71a3ce5a1997ef2598eaf3) | perf | avoid unnecessary aborts and reuse abort reason during resource teardown | +| [b178c11301](https://github.com/angular/angular/commit/b178c113010fcca221b85f6738e83e8bfe3b9d92) | perf | release intermediate inert trees while sanitizing HTML | +| [4854f68e39](https://github.com/angular/angular/commit/4854f68e39130a6dec754354a535f0d2c075a418) | perf | tree-shake JIT dependencies from AOT module bootstrap | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [f9cf82642c](https://github.com/angular/angular/commit/f9cf82642ca205d4d761c952ddfa08a37a0627bb) | fix | apply validator directives to custom form controls | +| [cf37344a4d](https://github.com/angular/angular/commit/cf37344a4d692d1099745901e2809691416d3e1e) | fix | flush debounced descendant values when a field is touched | +| [11c32ff559](https://github.com/angular/angular/commit/11c32ff5590bee0b46f3b81c3e106a4fc53d521b) | fix | forms signals goldens update | +| [12278e5f67](https://github.com/angular/angular/commit/12278e5f67b053dd82ef308b5dc1362e95cbf2f8) | fix | preserve options passed to SignalFormControl | +| [84d332f9c5](https://github.com/angular/angular/commit/84d332f9c589b8d50b9f4b5c532688d2e98e84b9) | fix | prevent duplicate valueChanges events on parseErrors update | +| [e6798fbfd4](https://github.com/angular/angular/commit/e6798fbfd4bf1e94bc7a7a3880770ca392fc2afd) | fix | untrack parseErrors read in validator and add unchanged model test | +| [4422f4ef50](https://github.com/angular/angular/commit/4422f4ef50924bd7ff53414420d7e8293b336a9a) | perf | avoid retaining AbstractControl in signal forms | +### http +| Commit | Type | Description | +| -- | -- | -- | +| [effbe56432](https://github.com/angular/angular/commit/effbe56432499b961b0c8ad97e4777c310923cad) | feat | add `HttpClient.query()` method for HTTP QUERY requests | +| [818742755c](https://github.com/angular/angular/commit/818742755cc5cc4089ee19fee1ab9f08635a9999) | fix | clean up pending tasks when interceptors throw synchronously | +| [00e584e698](https://github.com/angular/angular/commit/00e584e6989c35f1a0d1ed9a41a11ae08a374f04) | fix | mark `httpResource` top-level IIFE as pure | +| [b7cf38695f](https://github.com/angular/angular/commit/b7cf38695f3d4bc5d57475c98b105a0ef26054e6) | perf | tree-shake unused transfer cache from httpResource | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [262417f155](https://github.com/angular/angular/commit/262417f15558b8999da310613173c2f88b6ede62) | feat | introduce route error boundaries and redirect handling | +| [9ec80904ab](https://github.com/angular/angular/commit/9ec80904ab19202bab7ff2a03825fec103b43c6d) | fix | do not call history.go() when cancelling navigation before first success | +| [4a1a7ad2d9](https://github.com/angular/angular/commit/4a1a7ad2d9d755f76a4d25a2259540146b946648) | fix | don't reload the page when restoring the URL with the Navigation API | +| [e8b1afd07f](https://github.com/angular/angular/commit/e8b1afd07fe37e75c219ab068a0bf8316bce9cae) | perf | run loadComponent in parallel with route resources | + + + + +# 22.2.6 (2026-11-11) +### animations +| Commit | Type | Description | +| -- | -- | -- | +| [af0c243479](https://github.com/angular/angular/commit/af0c243479ec265d1871ece2218acfed649c186e) | fix | memory leak in renderer | +### common +| Commit | Type | Description | +| -- | -- | -- | +| [5cd5f0b760](https://github.com/angular/angular/commit/5cd5f0b76094eb6e1d456371d25371561f60b594) | fix | omit empty arrays from HttpParams | +| [fb705aad90](https://github.com/angular/angular/commit/fb705aad90aadfd6c8dcc9bd7b6c3acf990d9e4d) | fix | restore natural order when KeyValuePipe compareFn changes to null | +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [649dbadb33](https://github.com/angular/angular/commit/649dbadb33e1897c49f49ac5a7a7f65c9aeb4440) | fix | convert &ngsp; to a space inside ngNonBindable | +| [97fbca6a35](https://github.com/angular/angular/commit/97fbca6a356c79f3cab4b44b57e4b507d3b119ba) | fix | handle void expressions in constant literals | +| [de5a1df482](https://github.com/angular/angular/commit/de5a1df4821a556a157fdf4c79099fe658a83e1a) | fix | report errors at arrow parameters | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [30aee51dcd](https://github.com/angular/angular/commit/30aee51dcd5e3baaba2c6e91ce5beceefd0bf57e) | fix | fix compliance test golden and ignore missing input sourcemap on 22.2.x | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [7c883e02bd](https://github.com/angular/angular/commit/7c883e02bdde46041b729906fec537ea4e57636b) | fix | allow binding null and undefined to resource URL properties | +| [d8acf34b43](https://github.com/angular/angular/commit/d8acf34b4329053b16dc4806a3c98d2763b6a5cc) | fix | detect own NgZone by reference instead of instance ID | +| [ea96450ee8](https://github.com/angular/angular/commit/ea96450ee8756ebe37ca9f8c907e1942d395eab7) | fix | guard hydrating map access and release pending task on error | +| [bf2f213d69](https://github.com/angular/angular/commit/bf2f213d6962d5b8b781ba949f18f9f040f7968b) | fix | http golden symbols updated again | +| [0f78a2f00c](https://github.com/angular/angular/commit/0f78a2f00cc82047132631cd506bcc9f0d34c41d) | fix | improve error message for unparsable ICU expressions in translations | +| [6b257f59b4](https://github.com/angular/angular/commit/6b257f59b4231da9b2b0997442b5bb7654ff8e3e) | fix | remove early event listeners after replay | +| [596a40061f](https://github.com/angular/angular/commit/596a40061fab2ed288eef6fe123178a47e65c8da) | fix | resolve closure and reference retention leaks | +| [d5f31d86c9](https://github.com/angular/angular/commit/d5f31d86c9e8045747618867958f932032a8b89e) | fix | update golden symbols | +| [c639183667](https://github.com/angular/angular/commit/c639183667b8588c68aa6671ff9c2f0bf6e1516a) | fix | Update golden symbols for forms and http | +| [601989607e](https://github.com/angular/angular/commit/601989607e63aa0b2b70956976e5602f389460b4) | perf | allow `EffectRefImpl` to be tree-shaken | +| [8d06d97c72](https://github.com/angular/angular/commit/8d06d97c723ecf58b8357ad17884ca9816ea8d45) | perf | allow `ResourceParamsStatus` to be tree-shaken | +| [c489b852a5](https://github.com/angular/angular/commit/c489b852a5aa1d39ca5703da64ebd2888dbb199b) | perf | avoid unnecessary aborts and reuse abort reason during resource teardown | +| [e7e03b78d5](https://github.com/angular/angular/commit/e7e03b78d5f64266f484cbdd628bb434cec347ef) | perf | release intermediate inert trees while sanitizing HTML | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [5b66fb4010](https://github.com/angular/angular/commit/5b66fb401044b43c729ac2eac469dda4353b2aac) | fix | flush debounced descendant values when a field is touched | +| [6124529528](https://github.com/angular/angular/commit/61245295281e1b492a7f013e9ab4d6670e8ee477) | fix | preserve options passed to SignalFormControl | +| [67c4e8fc6c](https://github.com/angular/angular/commit/67c4e8fc6c3409bbd018a6c71ff0a6270fd85e2f) | fix | prevent duplicate valueChanges events on parseErrors update | +| [a55fb23376](https://github.com/angular/angular/commit/a55fb233761c964998265fb1a85468f4b73ceda4) | fix | untrack parseErrors read in validator and add unchanged model test | +| [7e16d77e58](https://github.com/angular/angular/commit/7e16d77e58354c4b6da596ff9e3dca92144f5bfc) | perf | avoid retaining AbstractControl in signal forms | +### http +| Commit | Type | Description | +| -- | -- | -- | +| [7644d2dc4a](https://github.com/angular/angular/commit/7644d2dc4aa614ea845c2b493fea90ae6c1584de) | fix | clean up pending tasks when interceptors throw synchronously | +| [a339c06f55](https://github.com/angular/angular/commit/a339c06f557cbd3990c0af02bf45d0369526bb85) | fix | mark `httpResource` top-level IIFE as pure | +| [899302961a](https://github.com/angular/angular/commit/899302961a29c039e4866f3bc265be9d425a46ed) | perf | tree-shake unused transfer cache from httpResource | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [0a40f5ac4e](https://github.com/angular/angular/commit/0a40f5ac4e3468a17062d27349831a17e3df387b) | fix | do not call history.go() when cancelling navigation before first success | +| [53e9164101](https://github.com/angular/angular/commit/53e9164101487537e919a828247473ea3a28521c) | fix | don't reload the page when restoring the URL with the Navigation API | + + + + +# 22.2.5 (2026-11-06) +### core +| Commit | Type | Description | +| -- | -- | -- | +| [6f06af76c9](https://github.com/angular/angular/commit/6f06af76c931a6924993e9f061fe99c5128a3ceb) | fix | add debugName option to rxResource | +| [8c426b6cbc](https://github.com/angular/angular/commit/8c426b6cbc132b1591eb42f0570edc22531223e4) | fix | escape comment markers which share characters | +| [ca3afffbdc](https://github.com/angular/angular/commit/ca3afffbdc3378e8b5597aa04b6502d1b875db20) | fix | remove attribute when img/video attr.src is null or undefined | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [545eb3d07b](https://github.com/angular/angular/commit/545eb3d07baee57d6a8c15729b36b9ceba84d766) | fix | reflect required validators in compat fields | +| [a7b0e8ef9d](https://github.com/angular/angular/commit/a7b0e8ef9d676135f8ba66d554766c8e9472f00b) | fix | support updateOn blur and submit for custom FormValueControl | +| [96b027ebf6](https://github.com/angular/angular/commit/96b027ebf68e7b2ca341c516d96063c39248d65c) | perf | avoid creating unused field injectors | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [ca42fefa56](https://github.com/angular/angular/commit/ca42fefa566048ac6f52b5e3714ec61929d81ad3) | fix | read focusReset from the navigation extras | +| [585271376a](https://github.com/angular/angular/commit/585271376ab924e9457d38911fe315fd89f9bd34) | perf | run loadComponent and loadChildren in root environment injector (g3-only) | + + + + +# 22.3.0-next.4 (2026-11-05) +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [20dd959f4c](https://github.com/angular/angular/commit/20dd959f4c8a32a2e885fe15456c66c49018c4e1) | fix | avoid compilation errors for invalid tracking functions | +| [9fe64d48d2](https://github.com/angular/angular/commit/9fe64d48d29f15ccad00f4d405ad7f2f1f647ae5) | fix | avoid producing type errors for invalid `@let` usages | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [1ab73090b5](https://github.com/angular/angular/commit/1ab73090b50e1fd80febb9413d8fab6b44cfec81) | fix | add explicit type to propDecorators | +| [47edfd51a2](https://github.com/angular/angular/commit/47edfd51a2c3cbd69348a30013016adbbcdd2235) | fix | add validation for defer in local compilation mode | +| [5c00d135e3](https://github.com/angular/angular/commit/5c00d135e36adf88a08f0b114f35e4f319bc63de) | fix | do not decorate signal APIs in preprocessor | +| [458303fe94](https://github.com/angular/angular/commit/458303fe94d75ea94a662fa45d2030041bf10ea8) | fix | emit namespace imports for standalone declarations in remote scopes | +| [f5b0fa96a4](https://github.com/angular/angular/commit/f5b0fa96a44c30af55c84e1d0e0e09c82979ee5d) | fix | emit static ctorParameters for zero-arg constructor in jit: true | +| [8c91cf2b42](https://github.com/angular/angular/commit/8c91cf2b4220e24b13835e42eb6456521a44354b) | fix | emit untyped inline input transforms in local mode | +| [caa4aa9005](https://github.com/angular/angular/commit/caa4aa9005f87ce1c1decfdea25eff419b8be7ae) | fix | expand more expression types for same-file imports array | +| [c7bcc2e3b8](https://github.com/angular/angular/commit/c7bcc2e3b8648d27021133daedabe95278c8e73a) | fix | expand same-file imports arrays in preprocessor | +| [73911c88ca](https://github.com/angular/angular/commit/73911c88ca0adbafcba20bd7fdc920563816dca5) | fix | fix json parsing error in sidecar | +| [f7b389879f](https://github.com/angular/angular/commit/f7b389879f0c9d73eefb6eb6aebdf82985cdb4e0) | fix | generate extra imports in local compilation mode | +| [492c1338a2](https://github.com/angular/angular/commit/492c1338a2346e3001824d0e12d4fdfff67bf35e) | fix | guard forward references in jit propDecorators | +| [7d2330e459](https://github.com/angular/angular/commit/7d2330e459dd7562f0aa7a515c9bc23d01d06fa2) | fix | handle generic expressions in queries | +| [009ec5ccbe](https://github.com/angular/angular/commit/009ec5ccbea77e4414d9264ca4b402c9cf1b6f87) | fix | handle optional signals in uninvoked signals check | +| [78b6c53d48](https://github.com/angular/angular/commit/78b6c53d489ded2ff918cca3d371912b941cd7da) | fix | implement uninvoked signal check in preprocessor | +| [a2617c5b96](https://github.com/angular/angular/commit/a2617c5b96b02fe446ff51a70212cf687218092f) | fix | mark ModuleWithProviders from foreign function calls as synthetic | +| [26f7e70520](https://github.com/angular/angular/commit/26f7e70520175a0290b5124425bb407408c7ad17) | fix | port custom decorator validation in local mode | +| [b3f98afcb1](https://github.com/angular/angular/commit/b3f98afcb119821e96b2cc3dbfb101f86c5a7f44) | fix | preserve multiline template literals in createStaticBlock | +| [6c21e65fe0](https://github.com/angular/angular/commit/6c21e65fe09cb7ab64a22cd77cbda29c0d87c792) | fix | skip outputs for unchanged files in preprocessor | +| [c1b8c53505](https://github.com/angular/angular/commit/c1b8c53505de4f91b59a1f9b36d3ecfc4bdf8321) | fix | strip UTF-8 BOM when loading external component resources | +| [393ec969e8](https://github.com/angular/angular/commit/393ec969e82bd1cc5c797356cbbfa33ea28e44aa) | fix | suppress inheritance errors for metadata in preprocessor | +| [02a8a664ae](https://github.com/angular/angular/commit/02a8a664aedba87f5720faa318ca8e64e98a072f) | fix | suppress wire codegen when NgModule analysis fails | +| [7c9f3263d9](https://github.com/angular/angular/commit/7c9f3263d91af55ef75a9854e7322b50716318c5) | fix | validate constants in local mode | +| [323495c2ec](https://github.com/angular/angular/commit/323495c2ec568adaa97cb69fe317a508405404b6) | fix | validate host directive in local compilation | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [afbe39765c](https://github.com/angular/angular/commit/afbe39765caf125bb4e81f32ce579f29906fc4fe) | fix | add debugName option to rxResource | +| [f3c77f1e2b](https://github.com/angular/angular/commit/f3c77f1e2b989b20611de55c265b64fb6fcc5848) | fix | escape comment markers which share characters | +| [d0bef2c605](https://github.com/angular/angular/commit/d0bef2c605358c87ca706ad49ceaa178be066acf) | fix | remove attribute when img/video attr.src is null or undefined | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [97bde8aa6c](https://github.com/angular/angular/commit/97bde8aa6cbb651467b5da37d71e760119562299) | fix | reflect required validators in compat fields | +| [401b4f2011](https://github.com/angular/angular/commit/401b4f2011c5d978bd11edde5a67217b92d1fb65) | fix | support updateOn blur and submit for custom FormValueControl | +| [67e5069327](https://github.com/angular/angular/commit/67e50693274153555918bfaa8e136aabd149f3a3) | perf | avoid creating unused field injectors | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [cfad3f5854](https://github.com/angular/angular/commit/cfad3f58543861a25a2f1d5bbe34f8bd13cb9cff) | perf | run loadComponent and loadChildren in root environment injector (g3-only) | + + + + +# 21.2.26 (2026-11-02) +### upgrade +| Commit | Type | Description | +| -- | -- | -- | +| [bc74d72035](https://github.com/angular/angular/commit/bc74d72035bdf3aff82fe84514a1f00d37459cc5) | fix | only compile the template contents of a downgraded component | + + + + +# 20.3.35 (2026-11-02) +### upgrade +| Commit | Type | Description | +| -- | -- | -- | +| [59ee277941](https://github.com/angular/angular/commit/59ee277941a6a396f11207afc4063479f01175e8) | fix | only compile the template contents of a downgraded component | + + + + +# 22.3.0-next.3 (2026-10-29) +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [ec9bcab279](https://github.com/angular/angular/commit/ec9bcab279e5a98f4644ede98182cb7a3086ca9f) | fix | avoid treating attributes with object prototype names as being translated | +| [3d104c0abb](https://github.com/angular/angular/commit/3d104c0abbe4372f38ff97b684b857fb55aef297) | fix | default to Eager change detection for pre-v22 libraries in JIT | +| [8ffc232bbf](https://github.com/angular/angular/commit/8ffc232bbf35188411a6511a3c038e29fa0fa2f7) | fix | report errors for malformed template literal interpolations | +| [5244ea781d](https://github.com/angular/angular/commit/5244ea781d51eba3da4ba5c89c647d1bf7db9c35) | fix | skip escaped characters when looking for comments in expressions | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [1f1d4d1b8b](https://github.com/angular/angular/commit/1f1d4d1b8b5b6a3d2ef87106d9e3821ea5b24f4f) | feat | add check for numeric CSS properties requiring units | +| [89f67a04f3](https://github.com/angular/angular/commit/89f67a04f3211390ffae810220c84a709f460864) | fix | account for _angularCoreVersion flag | +| [a1586ac622](https://github.com/angular/angular/commit/a1586ac62213fa4782b7c5d20c01ab59465c64e9) | fix | accurate spans for host bindings in preprocessor | +| [a802ab6bfa](https://github.com/angular/angular/commit/a802ab6bfa51cf96dbb17c39a20e74d34d760a18) | fix | add guides and correct error codes in diagnostics | +| [e11093ab3e](https://github.com/angular/angular/commit/e11093ab3ea2b2201ab25f83c26139919fba670c) | fix | align `@NgModule` + `@Injectable` static field and decorator order | +| [0883f5898a](https://github.com/angular/angular/commit/0883f5898a4b107e3d9b7010ea1338d6046dbbc5) | fix | align defer block validation behavior with ngtsc | +| [c7fd4a2ed9](https://github.com/angular/angular/commit/c7fd4a2ed99fa266b9241aff3e529d1238e89909) | fix | align foreign component validations | +| [da45c9a0a3](https://github.com/angular/angular/commit/da45c9a0a3c75a8be5fdc6cc4b70e30e73717b45) | fix | align option diagnostics behavior with ngtsc | +| [ce30bb0889](https://github.com/angular/angular/commit/ce30bb0889018ad9da521d6ad729294e1aa3b5ff) | fix | align preprocessor debug name output with ngtsc | +| [ba92531467](https://github.com/angular/angular/commit/ba925314676489bbbc2ccd6297caec078038b71c) | fix | align query emission order with ngtsc | +| [eb4c9e3a3d](https://github.com/angular/angular/commit/eb4c9e3a3d879f6ad3f6d1039e65d380acf47aab) | fix | always validate component hostDirectives and poison on error | +| [ab6effbf14](https://github.com/angular/angular/commit/ab6effbf146a908f5a1452d6e4a95d7fd89d0bb2) | fix | attach relatedInformation to diagnostics from external template | +| [1ed8c92c62](https://github.com/angular/angular/commit/1ed8c92c62890a34788b200ee2cc77a1057fdfd2) | fix | attach relatedInformation to out-of-bounds diagnostics | +| [06af10f23e](https://github.com/angular/angular/commit/06af10f23e72f3493b5ca07032eb397d5a06197b) | fix | avoid duplicate diagnostics in invalid expressions | +| [1f0ef60125](https://github.com/angular/angular/commit/1f0ef60125344870ce1e892ea9664a2be00415b3) | fix | avoid duplicate diagnostics on `in` and `typeof` expressions | +| [bff8295efc](https://github.com/angular/angular/commit/bff8295efc0c0eedbcd574b13cb9bd5c1b624be5) | fix | avoid false positive in export check | +| [5a7ea6059a](https://github.com/angular/angular/commit/5a7ea6059ad5b40f922a382bf0a07bfb3268609a) | fix | avoid overriding enableI18nLegacyMessageIdFormat | +| [4f26011189](https://github.com/angular/angular/commit/4f26011189ec200c05075bc000cce05ae0898237) | fix | avoid spurious forwardRef closure for re-exported NgModule deps | +| [a2084b8e7f](https://github.com/angular/angular/commit/a2084b8e7f775be5480865e7618702532e3b557f) | fix | classify built-in *Constructor interfaces as type-only DI params | +| [4b823a701c](https://github.com/angular/angular/commit/4b823a701c8d4db2b1494a262edb6734b414dcc7) | fix | compile indirectly exported classes | +| [b05f7ce15a](https://github.com/angular/angular/commit/b05f7ce15ae5e57a377d7fcf38d464c71fe20936) | fix | correctly classify DI tokens from ambient modules | +| [435f92da18](https://github.com/angular/angular/commit/435f92da183d4bd78cf5ae60f80b0a7953906afd) | fix | decouple usePoisonedData from enableTemplateTypeChecker in buildTypeCheckingConfig | +| [9afbec76ed](https://github.com/angular/angular/commit/9afbec76edda34af201325349ab86d333d202920) | fix | deduplicate pipe diagnostics in preprocessor | +| [fec57ba54a](https://github.com/angular/angular/commit/fec57ba54a756eab3080319dffcbc12a15bf7317) | fix | defer class static field printing until sharedPool is finalized | +| [f86766dbfe](https://github.com/angular/angular/commit/f86766dbfe4722942072728a39d7140468f22c2c) | fix | disallow bindings to on* properties in preprocessor | +| [19fefad3ea](https://github.com/angular/angular/commit/19fefad3ea49a406d2228150f84cea50d5e105d7) | fix | do not emit internal tags when closure is enabled | +| [7c64deacf4](https://github.com/angular/angular/commit/7c64deacf42f60487279883a3d5e49daeabdfb97) | fix | do not emit new namespace imports for DI dependencies | +| [bb2530dad0](https://github.com/angular/angular/commit/bb2530dad022fbd863436fa41f849fa7ef8d0266) | fix | do not inline transform type of imported component | +| [d7be93c520](https://github.com/angular/angular/commit/d7be93c52077b6f92e9d5bce3346d8a455256210) | fix | do not treat declaration files as compilation roots in preprocessor | +| [453b5ea59c](https://github.com/angular/angular/commit/453b5ea59c56a4cd80e867a2156f40cf4d9d37a7) | fix | don't analyze .d.ts files twice with rootDirs and paths in preprocessor | +| [def073ed0a](https://github.com/angular/angular/commit/def073ed0aeedd2fa4740aa375473048124fc3bc) | fix | don't report diagnostics against .d.ts files in preprocessor | +| [0f0ec267c8](https://github.com/angular/angular/commit/0f0ec267c8b414488fde6dd3998ef6646f80022a) | fix | downlevel jit: true Angular member and parameter decorators | +| [f40d321ab1](https://github.com/angular/angular/commit/f40d321ab10bbae71146f2921a1c103e68075458) | fix | emit diagnostic instead of panicking on spread query or input options | +| [fdb84e2e62](https://github.com/angular/angular/commit/fdb84e2e6213646acdf028ce7595453474c9cfc4) | fix | emit NG1003 and NG1002 for bare `@Pipe` and invalid `@NgModule` calls | +| [004f8be4b0](https://github.com/angular/angular/commit/004f8be4b0e3769e8b39cddf9e00edf3ad425b55) | fix | emit ɵsetClassMetadata after class when custom decorators exist | +| [45e8b809b1](https://github.com/angular/angular/commit/45e8b809b14fb9452f35c103f2c2514e5837a815) | fix | enable control flow content projection diagnostics | +| [777c8c50e5](https://github.com/angular/angular/commit/777c8c50e578155927ec033ca931dddbd3792932) | fix | enforce declaration-only emission diagnostics in preprocessor | +| [eef1db88f9](https://github.com/angular/angular/commit/eef1db88f9d26bd43bbefb8c3790c55dba9f47b3) | fix | ensure diagnostic spans are correct in preprocessor | +| [918aca03d7](https://github.com/angular/angular/commit/918aca03d7e161e96c0ee256cf8a069aa3926e8c) | fix | escape non-ascii characters in ngp string literals | +| [e7c3835123](https://github.com/angular/angular/commit/e7c3835123a227a4d26e9102a570c47640079a0d) | fix | extract rest constructor params and preserve value types on `@Inject` params | +| [5700a5bba5](https://github.com/angular/angular/commit/5700a5bba5a95909f83f72b434be8cb903459c4d) | fix | fix remaining NGP compliance test failures | +| [ea11c9aa0e](https://github.com/angular/angular/commit/ea11c9aa0ea00fc905e9c0c2df6525a21a91c908) | fix | format two-way bindings in preprocessor diagnostics | +| [9d12747050](https://github.com/angular/angular/commit/9d127470504aef32f65bab88f43e3c4712d82537) | fix | handle dynamic host bindings in preprocessor | +| [df63544ed5](https://github.com/angular/angular/commit/df63544ed569bc6f9cfd0caa564626dec0abd757) | fix | handle input transforms without parameters | +| [92d19c4afc](https://github.com/angular/angular/commit/92d19c4afc1723e9ffe9ca04bb8a7fac27f031ed) | fix | handle jit: true on NgModule in preprocessor | +| [d6c4caded4](https://github.com/angular/angular/commit/d6c4caded4c906dd57316ae7fb2cdbf5f26cef06) | fix | handle missing tyes as injection tokens | +| [c1b047e199](https://github.com/angular/angular/commit/c1b047e1994d5986d1c379a0f5376e6a45a1175e) | fix | handle pipeline errors in preprocessor | +| [7110603992](https://github.com/angular/angular/commit/71106039921863bd42965c738ec8f7585b9abfc3) | fix | handle unexported host directives | +| [2766c7057c](https://github.com/angular/angular/commit/2766c7057cca95bb00fea05f69003612e0368403) | fix | implement compiler option validations | +| [035e46e15f](https://github.com/angular/angular/commit/035e46e15f3f16f9e904b850f3c47c4bc8171f47) | fix | implement component handler and service validations | +| [06b2d2cee0](https://github.com/angular/angular/commit/06b2d2cee0b4c7680ed41d43a320c5ae26823592) | fix | implement host directive validations in preprocessor | +| [93479241ba](https://github.com/angular/angular/commit/93479241bac84ed829f529cd41aec92524135b68) | fix | implement initial set of decorator validations | +| [c25d860f9e](https://github.com/angular/angular/commit/c25d860f9e78f23db3e6782f5db26b987e2542b5) | fix | implement initializer API checks | +| [fba7f3f45c](https://github.com/angular/angular/commit/fba7f3f45cbc05a68095c162d7c88e7c8684dab9) | fix | implement injection and lifecycle validations | +| [c7d9b28293](https://github.com/angular/angular/commit/c7d9b28293ccc7d8f3ec358cf5c15d6cfe1af75a) | fix | implement input transform validations | +| [a51e7292b7](https://github.com/angular/angular/commit/a51e7292b703989fac07cb7fc0632492ee7cf386) | fix | implement internal compiler flag | +| [c5170a1240](https://github.com/angular/angular/commit/c5170a12403348fca26f60cc54226f59ff0dc9e9) | fix | implement ModuleWithProviders diagnostic in preprocessor | +| [c56b9e70c4](https://github.com/angular/angular/commit/c56b9e70c4c0fa8565fad427c326a56161e0b498) | fix | implement NgModule scope diagnostics in preprocessor | +| [df917bc9ff](https://github.com/angular/angular/commit/df917bc9ffdf00f0413a7e85d332af27dec5c766) | fix | include TSImportEqualsDeclaration in importsEnd and skip hoisting in non-Angular files | +| [d6820f959f](https://github.com/angular/angular/commit/d6820f959ff9ebe5f79c2cbeb119769fbb86c355) | fix | index value and type-only declarations inside ambient namespaces for export = | +| [fffcdc54ce](https://github.com/angular/angular/commit/fffcdc54ce3bcd2124c8c89ebff3391ddd4a8e4d) | fix | inline type constructor when dependency are in the same file | +| [c27695f278](https://github.com/angular/angular/commit/c27695f278a88ce5e74f7504320dae5a53862236) | fix | invalidate preprocessor program queries when entry points change | +| [16932e9825](https://github.com/angular/angular/commit/16932e98253ad01abf94c9dc1d50bfac9cc7a3a7) | fix | keep imports identical between local and optimized emit for `@Inject` params | +| [1172ba317e](https://github.com/angular/angular/commit/1172ba317e40cb1b7d196b62d35eebad4aa35a87) | fix | match ctorParameters behavior from ngtsc | +| [940f02e903](https://github.com/angular/angular/commit/940f02e9038130d2a9cfa5579bc905297427d053) | fix | match diagnostic for incorrect styleUrls | +| [7fd41b0e02](https://github.com/angular/angular/commit/7fd41b0e021d2413bc2eb2f45ee5d65fde8464db) | fix | match ngtsc behavior for exported forward refs | +| [d0873a4533](https://github.com/angular/angular/commit/d0873a4533481f5dc5e61dfdd85cdc0b7722d698) | fix | match ngtsc behavior when inspecting injectables | +| [5668ee664d](https://github.com/angular/angular/commit/5668ee664de6e14a8afaf94e17595dbaf6e4ae3b) | fix | order directives before pipes in component and `@defer` dependencies | +| [8c918999c7](https://github.com/angular/angular/commit/8c918999c73703c7a419100f17422e004efd2036) | fix | place standalone self-reference at index 0 and preserve forwardRef closure | +| [0fc2bfee4c](https://github.com/angular/angular/commit/0fc2bfee4c8e623d19e2d0044ac3daed55e5bc78) | fix | plumb i18nPreserveWhitespaceForLegacyExtraction into hybrid compiler | +| [236568ddf5](https://github.com/angular/angular/commit/236568ddf55ec718a1760c687eac165a17cf9a00) | fix | port parentheses insertion logic | +| [52f304ee8e](https://github.com/angular/angular/commit/52f304ee8e2152a5a6ba23d8d5c0d0c9863c1781) | fix | port templat semantics checker to preprocessor | +| [48b7e2ec86](https://github.com/angular/angular/commit/48b7e2ec868719e66ee13b32a88a6eb50939cb43) | fix | preserve AST property name and omit redundant transform in JIT signalInputsTransform | +| [7ebff26496](https://github.com/angular/angular/commit/7ebff26496568477d825093e70b4f1d3974c2e88) | fix | preserve deterministic tsconfig.json files order during FileId interning | +| [5d929e57e4](https://github.com/angular/angular/commit/5d929e57e47bd207f668cb482599357bff18d89e) | fix | preserve isolated NgModule imports in emitDeclarationOnly mode | +| [5df5395330](https://github.com/angular/angular/commit/5df539533043c7fd4168725934a22f526cb2d6de) | fix | preserve NgModule scope dependency insertion order and deduplicate on first seen | +| [dd5ef53817](https://github.com/angular/angular/commit/dd5ef53817347de845d8bf4954ac964f766d1980) | fix | preserve pure annotations on ngp static fields through tsc | +| [d9a271a73b](https://github.com/angular/angular/commit/d9a271a73b14cac9f8907f86e92d2fe3ae76a9ae) | fix | preserve signal debugName insertions in sliced decorator args | +| [c1b2b931aa](https://github.com/angular/angular/commit/c1b2b931aa45400c12b5160c0d7a6a6d2e8fff76) | fix | prevent static members from clobbering same-named instance inputs/outputs | +| [c075a34852](https://github.com/angular/angular/commit/c075a348524e5ea1bc89166e752719269fac4355) | fix | properly handle quoted members with transforms | +| [3346e19686](https://github.com/angular/angular/commit/3346e196864b3b89c26bde547f9c61215a34cd6f) | fix | record argsSpan on non-object pipe decorators in ng-analyze | +| [e0260db54c](https://github.com/angular/angular/commit/e0260db54c25529205901a20cd33d72c974061f0) | fix | reduce memory use by source maps | +| [39f5f74534](https://github.com/angular/angular/commit/39f5f745345095bfd8e05a2b3371326217e6e030) | fix | report diagnostic on specific imports item array | +| [38c3a79b73](https://github.com/angular/angular/commit/38c3a79b73c316f8cc546f9da3117921caf8e500) | fix | require @jridgewell/sourcemap-codec 1.6.0 or later | +| [a1acec2998](https://github.com/angular/angular/commit/a1acec29981e654c90910faaab6516a20a8e9dd3) | fix | resolve `@Input` transform first-parameter types in coercion members | +| [aa48892e48](https://github.com/angular/angular/commit/aa48892e48ee50855d6f4a2d75b59eb0da7f1293) | fix | resolve host directives on directives in preprocessor | +| [dfd30edb5d](https://github.com/angular/angular/commit/dfd30edb5d12badc5a82a2607a8c4ae7df317537) | fix | resolve indirectly referenced input transform | +| [5d69bf4f4a](https://github.com/angular/angular/commit/5d69bf4f4ae8f99c46d0d6481ec0709cb4be69d9) | fix | resolve project-relative context file path for closure message names in ngp | +| [29bfe100d5](https://github.com/angular/angular/commit/29bfe100d5870cb29efe822d713345b2a8a9a671) | fix | resolve project-relative paths across rootDirs in ngp | +| [10d7f02f4d](https://github.com/angular/angular/commit/10d7f02f4d091031127305eaa7e1ded79883acd9) | fix | retain NgModule imports that transitively export providers via helper functions | +| [16d0968e27](https://github.com/angular/angular/commit/16d0968e275f8dc4f2926b90d2b1a9702e255557) | fix | revert breaking ngp change | +| [876c9f52f8](https://github.com/angular/angular/commit/876c9f52f8eddfc046b0e069f98fddacedc25ac7) | fix | set up source span for host bindings | +| [6809f99b1c](https://github.com/angular/angular/commit/6809f99b1caf4ab6482a726dfd7342e7baeae4f6) | fix | share a single ImportManager for CopySourceToTcb shims | +| [62f0bd4442](https://github.com/angular/angular/commit/62f0bd44429c80c8a8ece531ed584eb628dd1855) | fix | silence diagnostics on constant writes in generated code | +| [89843cddfc](https://github.com/angular/angular/commit/89843cddfc058da45c9aa4160d832112fc3b3300) | fix | source map generated code in preprocessor | +| [fd9e5635d8](https://github.com/angular/angular/commit/fd9e5635d8cabfe90972c04391be8d89f9a6e895) | fix | spread raw options argument in ngp signal query metadata | +| [046da17a96](https://github.com/angular/angular/commit/046da17a96086392cd93734cfc9723d3d477bc1a) | fix | strip Angular decorators from static and private class members | +| [4893561fa2](https://github.com/angular/angular/commit/4893561fa27439cd62d0c8ac7f3f022f05c1d7e2) | fix | surface preprocessor wasm engine errors as Error instances | +| [8bf5f6fcd6](https://github.com/angular/angular/commit/8bf5f6fcd6e7472092a3a042e655493899d47348) | fix | synthesize static ctorParameters on jit: true classes | +| [4690b54bec](https://github.com/angular/angular/commit/4690b54bec4dc92395d600e9cada3d4334d3a5b3) | fix | update ambient module specifier check for Oxc 0.155 | +| [25d602dfbc](https://github.com/angular/angular/commit/25d602dfbc8f96e189eb456d2086d7d6dd6cdae1) | fix | use canonical exported symbol in NgModule ɵmod types and skip .d.ts extra imports | +| [0fb8466b63](https://github.com/angular/angular/commit/0fb8466b6343781e0f17fbf94bcaff44bba2685a) | fix | use flattened host directives in preprocessor | +| [eda02c3300](https://github.com/angular/angular/commit/eda02c3300a964c3c541f281b54150b8cd7f4677) | fix | use sequential cycle breaking and exclude type-only imports from cycle graph | +| [c2772aa836](https://github.com/angular/angular/commit/c2772aa83604c0c94843682f16014b09e3021a4d) | fix | validate constructor dependencies in the preprocessor | +| [401cb2ec0f](https://github.com/angular/angular/commit/401cb2ec0f1e4bbc9a24418423c6f0ccf3843ac5) | fix | validate deferredImports | +| [c511ee40ef](https://github.com/angular/angular/commit/c511ee40ef5893281c1dfd0a2f863dc159753f75) | fix | wire up strictUnclaimedEventNames flag | +| [92b6ae2a58](https://github.com/angular/angular/commit/92b6ae2a5830dc24c0fe8306f983fd6dffe195ac) | fix | wire up strictUnknownElements flag | +| [c01d3adf01](https://github.com/angular/angular/commit/c01d3adf018e67396b0b7a10ce43c15df5a065a4) | fix | wire up supportJitMode flag | +| [849403b9cd](https://github.com/angular/angular/commit/849403b9cdfa21534249f8fb8e5784a5dbafa6cd) | perf | filter non-compilation roots before canonicalizing entrypoints | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [fe9c0d7797](https://github.com/angular/angular/commit/fe9c0d77975c7ada32b902179000f6c46f338f97) | feat | expose `debugging` annotation | +| [33f8855da5](https://github.com/angular/angular/commit/33f8855da535ec3703f8707d9ffb2995a51435eb) | fix | avoid mutating shared ICU case queue during i18n hydration | +| [5c4b6a4867](https://github.com/angular/angular/commit/5c4b6a486791d24eabb71d4b8e279df6701d4c1f) | fix | avoid reloading a resource when params is unchanged | +| [ea43e6c393](https://github.com/angular/angular/commit/ea43e6c3934a8cf6b9d420505611096db3bb435c) | fix | catch view effect errors in targeted change detection mode | +| [b03bb7af35](https://github.com/angular/angular/commit/b03bb7af3578f436579a0e2fe83c75bb4eece960) | fix | check every i18n attribute translation for ICUs | +| [2adfdf0f73](https://github.com/angular/angular/commit/2adfdf0f73b068733488b4e22001969153925734) | fix | correctly inherit component metadata in JIT undecorated base classes | +| [5fb2b68847](https://github.com/angular/angular/commit/5fb2b68847d6c674c0906dc176e754989601488d) | fix | do not treat outputs named class or style as styling inputs | +| [18fd9bed76](https://github.com/angular/angular/commit/18fd9bed76ea597c00706fb5d762dbe2806706f5) | fix | guard against integer overflow in i18n | +| [8523b79bee](https://github.com/angular/angular/commit/8523b79beed1dc88a4c50a145da3f079d632d047) | fix | improve the warning for bindings on elements inside ICU expressions | +| [f7460e520e](https://github.com/angular/angular/commit/f7460e520e2695e9d74b33971bc465218be836cf) | fix | keep prototype-named keys in getTransferState | +| [41ec8aa571](https://github.com/angular/angular/commit/41ec8aa571b325b9a7574ab8ca16c7ede34d1600) | fix | respect `@Host` boundary in embedded view injector lookup | +| [a01ba1c119](https://github.com/angular/angular/commit/a01ba1c11960edd59499300ac5783752c0fe81c7) | fix | update defer trigger instructions to reflect generated code | +| [ab4f64be44](https://github.com/angular/angular/commit/ab4f64be442bbf0fd4679e403d3e547e9a823065) | fix | widen type on viewport instructions | +| [073bc77368](https://github.com/angular/angular/commit/073bc7736843540d3274994313d9138d860445ae) | perf | avoid reading linked signal debug names in production | +| [85e7e5054a](https://github.com/angular/angular/commit/85e7e5054a697adbc31e4b89176c19efcba393fb) | perf | guard i18n insertion assertion with ngDevMode | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [d2f5ec92de](https://github.com/angular/angular/commit/d2f5ec92de91d48d8df8404dc509635afdafd7c8) | fix | annotate field context helpers with this: void | +| [63f4bd4c7e](https://github.com/angular/angular/commit/63f4bd4c7eb6485bb0e36411cd55d4603921b5ea) | fix | don't crash when formControlName has no matching control | +| [9e99093bfe](https://github.com/angular/angular/commit/9e99093bfe342e79c314b57b67d819cf4a3fd3cb) | fix | reject unsupported updateOn in SignalFormControl | +| [0a61a687c4](https://github.com/angular/angular/commit/0a61a687c4344300a3304c80381b82bcf5716c4c) | perf | match multi-select identities in a single pass | +### http +| Commit | Type | Description | +| -- | -- | -- | +| [bc22890f53](https://github.com/angular/angular/commit/bc22890f537ea81b738de88de3ef2d4f332b667d) | fix | account for multiple cache control headers | +### language-service +| Commit | Type | Description | +| -- | -- | -- | +| [1445af58e6](https://github.com/angular/angular/commit/1445af58e6d98c9366b8ff90872785e93131cd0a) | fix | resolve symbols for inputs with restricted access | +### migrations +| Commit | Type | Description | +| -- | -- | -- | +| [9ab611de28](https://github.com/angular/angular/commit/9ab611de284152a811e7fc10406b39232376110b) | feat | migrate static string and array ngClass bindings to class | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [8260542ce0](https://github.com/angular/angular/commit/8260542ce03780d158638723ccaf7f52e9708da1) | feat | add focusReset to NavigationBehaviorOptions | +| [e7f04bd20c](https://github.com/angular/angular/commit/e7f04bd20c5a1aaa323f43628f2e0342f4ac5372) | feat | add navigate method to RouterTestingHarness | +| [34ea5922ba](https://github.com/angular/angular/commit/34ea5922baba42439f8bca6382dc61be73743672) | feat | add scroll input to RouterLink | +| [4742af1435](https://github.com/angular/angular/commit/4742af1435957d4a325c338255e0dbed8c4b0298) | feat | make route resources reactive and support parallel dependent loading | +| [64502f9ae2](https://github.com/angular/angular/commit/64502f9ae23ce7ec0ca7769f68854273c097aeeb) | feat | Mark view transitions as stable | +| [63e21a76de](https://github.com/angular/angular/commit/63e21a76dedc196cbdb210cbad24836fdd86ae96) | feat | support direct component param | +| [c7404dbf5a](https://github.com/angular/angular/commit/c7404dbf5a57752caf4ec38d9caeecf1f70e848e) | feat | update RouterTestingHarness documentation | +| [e09bbed21a](https://github.com/angular/angular/commit/e09bbed21a700afbb054a0e428241ee87cc90f8a) | fix | don't intercept downloads with the Navigation API | +| [2dd93cd949](https://github.com/angular/angular/commit/2dd93cd949b934fd7c7eb743a7f5fe776328adeb) | fix | drop null query params in createUrlTreeFromSnapshot | +| [011675e417](https://github.com/angular/angular/commit/011675e417d9929d1186b13a41570bdfe8b3022e) | fix | escape colons in parenthesized primary child segments | +| [3320da96da](https://github.com/angular/angular/commit/3320da96da2c8e867c9e7a79636e41315a269300) | fix | properly handle redirects during traversal navigations with Navigation API | +| [98c0265880](https://github.com/angular/angular/commit/98c0265880f1a5f271cb952b710534bf1edb0c2d) | fix | remove previous classes when routerLinkActive changes | +| [21dd0171b3](https://github.com/angular/angular/commit/21dd0171b39f62ce3f1112f5ca0b9e7cac59af2d) | fix | respect guard order when a guard throws a RedirectCommand | +| [5048f50268](https://github.com/angular/angular/commit/5048f502683e0080333c0c7a5e75ba91e185d93a) | fix | skip split when piercing empty path outlets | +| [664a9971e3](https://github.com/angular/angular/commit/664a9971e3cb99fac76880b0556a10f8f14e7b65) | fix | unsubscribe from route data when outlet deactivates | +### upgrade +| Commit | Type | Description | +| -- | -- | -- | +| [b2d3ba9f5f](https://github.com/angular/angular/commit/b2d3ba9f5f05447d37fa2d068c17d593c04ef9d6) | fix | only compile the template contents of a downgraded component | + + + + +# 22.2.4 (2026-10-29) +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [bc600a2fc2](https://github.com/angular/angular/commit/bc600a2fc259d14d8a3f6055fc4c42639dbae191) | fix | avoid treating attributes with object prototype names as being translated | +| [1a7ebad7a5](https://github.com/angular/angular/commit/1a7ebad7a580496e2b8f120924cc68cc6d35fc7f) | fix | default to Eager change detection for pre-v22 libraries in JIT | +| [4e4df4a696](https://github.com/angular/angular/commit/4e4df4a696aa426885af44afbcb13ee58014455d) | fix | report errors for malformed template literal interpolations | +| [00229e112d](https://github.com/angular/angular/commit/00229e112d538210a2fb60f6e6780c15aa78a90d) | fix | skip escaped characters when looking for comments in expressions | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [4b82200c4e](https://github.com/angular/angular/commit/4b82200c4e08f4100d202c25cac0039ff2543dbd) | fix | require @jridgewell/sourcemap-codec 1.6.0 or later | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [570679134b](https://github.com/angular/angular/commit/570679134bde4b8cae04c805b742b99419da746b) | fix | avoid mutating shared ICU case queue during i18n hydration | +| [fe02c34c3c](https://github.com/angular/angular/commit/fe02c34c3ce22784e1eb2afb2b8d842df6ffbeb4) | fix | avoid reloading a resource when params is unchanged | +| [d3c72743a9](https://github.com/angular/angular/commit/d3c72743a9da84866f95776bf36d74b3d0492bdd) | fix | catch view effect errors in targeted change detection mode | +| [b8102ebeb4](https://github.com/angular/angular/commit/b8102ebeb4891e5f8d4cc48ad28661616fbfc12f) | fix | check every i18n attribute translation for ICUs | +| [57ae1d1bb6](https://github.com/angular/angular/commit/57ae1d1bb6e37ed5d08dd0bae85f27f784ae5c39) | fix | guard against integer overflow in i18n | +| [84a398bec2](https://github.com/angular/angular/commit/84a398bec2c48831fe77397c7b789ebc21c3a543) | fix | improve the warning for bindings on elements inside ICU expressions | +| [be85e4eb74](https://github.com/angular/angular/commit/be85e4eb749e14f78b5fd2b385912759ee35ddc6) | fix | keep prototype-named keys in getTransferState | +| [c1b8b0a914](https://github.com/angular/angular/commit/c1b8b0a914594514f5a6822cf1e931c112feeb54) | perf | avoid reading linked signal debug names in production | +| [e79a9199a5](https://github.com/angular/angular/commit/e79a9199a5ae910cbd050e954c4b2c3b75f066ae) | perf | guard i18n insertion assertion with ngDevMode | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [1586cc72ab](https://github.com/angular/angular/commit/1586cc72ab34b2e5a2741b6b28458425c2111d82) | fix | annotate field context helpers with this: void | +| [41b189752e](https://github.com/angular/angular/commit/41b189752e24d6d3afe2f3a651e044eaab19e299) | fix | don't crash when formControlName has no matching control | +| [122663145b](https://github.com/angular/angular/commit/122663145b865a9f825ad8a01fd589e2ef743b88) | fix | reject unsupported updateOn in SignalFormControl | +| [a02ad167dc](https://github.com/angular/angular/commit/a02ad167dc7a8fe02f6c5055506028223f287d06) | perf | match multi-select identities in a single pass | +### http +| Commit | Type | Description | +| -- | -- | -- | +| [2251098d52](https://github.com/angular/angular/commit/2251098d520c8825965cecabe54792a0c9949fcc) | fix | account for multiple cache control headers | +### language-service +| Commit | Type | Description | +| -- | -- | -- | +| [646e9723db](https://github.com/angular/angular/commit/646e9723db196d2a403f23c3e274aa4c258e8dfa) | fix | resolve symbols for inputs with restricted access | +### migrations +| Commit | Type | Description | +| -- | -- | -- | +| [6c631a5359](https://github.com/angular/angular/commit/6c631a5359b600f877171c628a7d84c3fafd102a) | feat | migrate static string and array ngClass bindings to class | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [6ccbb0f6aa](https://github.com/angular/angular/commit/6ccbb0f6aa74770e7fb6d40988dc289c06b1787f) | fix | don't intercept downloads with the Navigation API | +| [d1da1a7c4c](https://github.com/angular/angular/commit/d1da1a7c4ccb0b0648bd58fcf90d864eb8894582) | fix | drop null query params in createUrlTreeFromSnapshot | +| [12b553bc28](https://github.com/angular/angular/commit/12b553bc282a0eeaa2e7e99562ee594821098bbc) | fix | escape colons in parenthesized primary child segments | +| [b8383a1987](https://github.com/angular/angular/commit/b8383a1987ab25a402112f5de3208de2073cde74) | fix | properly handle redirects during traversal navigations with Navigation API | +| [702ba3a2eb](https://github.com/angular/angular/commit/702ba3a2eb60e537b2398815ba6f83777d0572bc) | fix | remove previous classes when routerLinkActive changes | +| [2f0e2ac5e7](https://github.com/angular/angular/commit/2f0e2ac5e7fbf91cbec2399cb2fb069cc03d4e27) | fix | respect guard order when a guard throws a RedirectCommand | +| [ea8cdc4c6b](https://github.com/angular/angular/commit/ea8cdc4c6b4776832bf73a8f8cca7a729b2d58d9) | fix | skip split when piercing empty path outlets | +| [6c995a5a6d](https://github.com/angular/angular/commit/6c995a5a6dc0cd8f4a083a09cc7b726f664a0fd3) | fix | unsubscribe from route data when outlet deactivates | +### upgrade +| Commit | Type | Description | +| -- | -- | -- | +| [ecaec13db4](https://github.com/angular/angular/commit/ecaec13db4fde7ceb0104105ee356bf00596f3d6) | fix | only compile the template contents of a downgraded component | + + + + +# 22.2.3 (2026-10-14) +### common +| Commit | Type | Description | +| -- | -- | -- | +| [fafec77b5d](https://github.com/angular/angular/commit/fafec77b5d4e6dfc89aad72db9c132d3dfe46ba6) | fix | harden param encoding against prototype pollution | +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [54f3de517c](https://github.com/angular/angular/commit/54f3de517c2e4cda264eca5f2d143a1f6967c7a9) | fix | check `@boundary` blocks in the control flow content projection diagnostic | +| [5e50658fd2](https://github.com/angular/angular/commit/5e50658fd23983dd27ef89a67cea26910af6fd79) | fix | compare the operand in ReadTemporaryExpr.isEquivalent | +| [b6f9cc5d70](https://github.com/angular/angular/commit/b6f9cc5d7013f8f136b38cccfe486264200f04f5) | fix | do not scope comments placed inside of a selector | +| [35a02f8097](https://github.com/angular/angular/commit/35a02f8097724f4b6e83e1c9c008da8f1fc7f127) | fix | harden JIT against prototype pollution | +| [08075e8aa0](https://github.com/angular/angular/commit/08075e8aa03800bc1b8ae793fb3d52761cdd28b6) | fix | support dots in class binding names | +| [c7a72c2bf2](https://github.com/angular/angular/commit/c7a72c2bf2213d881496e70933fc61bdaaa00621) | fix | support popover property bindings | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [fa21d083fe](https://github.com/angular/angular/commit/fa21d083fe92e67a2a070059b850b9a32a08cef9) | fix | inline tcb when depending on local directive | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [b5208f9fc3](https://github.com/angular/angular/commit/b5208f9fc3a77a9631c2f38c30c38c777a642839) | fix | avoid deleting idle bucket created during another bucket's drain | +| [90af679c3b](https://github.com/angular/angular/commit/90af679c3b585515651b138667b8eaf3df652968) | fix | do not swallow compilation errors in computeStandaloneComponentScope | +| [eca5fa4665](https://github.com/angular/angular/commit/eca5fa466508ef68014cbebb0cafd63947f9eda7) | fix | don't crash initEventReplay when two apps share an APP_ID | +| [e59a2303df](https://github.com/angular/angular/commit/e59a2303dfb4f3242552d382bbeebf6a38446856) | fix | error when destroying embedded view with animations | +| [a23941fe75](https://github.com/angular/angular/commit/a23941fe7547634c9f1160541b3a2265e284f624) | fix | keep activeConsumer and currentInjector constant using Store helper | +| [913ae7421f](https://github.com/angular/angular/commit/913ae7421f609c6ad375219045e9ab3f3b0eba73) | fix | skip nested tick from onMicrotaskEmpty while a tick is running | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [cc515b8b23](https://github.com/angular/angular/commit/cc515b8b2331df643e7ff80915efc402bc97d3bb) | perf | use addEventListener to avoid unconditional CD scheduling on blur | +### migrations +| Commit | Type | Description | +| -- | -- | -- | +| [d04f214d04](https://github.com/angular/angular/commit/d04f214d04678f0dbb0b769a53d1f15ece09c4a2) | fix | normalize .d.ts paths in output migration field IDs | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [f9a4f751f0](https://github.com/angular/angular/commit/f9a4f751f0ad0f3f22d49430475d6d57fa29fd3f) | fix | check abort signal state on subscribe | + + + + +# 22.3.0-next.2 (2026-10-14) +### common +| Commit | Type | Description | +| -- | -- | -- | +| [01c883e2b6](https://github.com/angular/angular/commit/01c883e2b6fb92a61c0759978f53846f84a23367) | fix | harden param encoding against prototype pollution | +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [d9bd68258d](https://github.com/angular/angular/commit/d9bd68258dcb0192487837ed53ce393ca51c6ed6) | fix | check `@boundary` blocks in the control flow content projection diagnostic | +| [3aaf026486](https://github.com/angular/angular/commit/3aaf0264867b712eae6c78a6f9632bcb78b5a38c) | fix | compare the operand in ReadTemporaryExpr.isEquivalent | +| [8acf703db6](https://github.com/angular/angular/commit/8acf703db6b30305905dba59ad304f0a52e5e790) | fix | do not scope comments placed inside of a selector | +| [f2b1c1d3d7](https://github.com/angular/angular/commit/f2b1c1d3d7d2c2816c79bb26a5128ecea2d1ff50) | fix | harden JIT against prototype pollution | +| [f1d1953fa8](https://github.com/angular/angular/commit/f1d1953fa8d6c201f08d2433d83fe5fe65c93b1d) | fix | support dots in class binding names | +| [9a2c9f1b20](https://github.com/angular/angular/commit/9a2c9f1b20edccf3478e45b3c22715f6c370f8b0) | fix | support popover property bindings | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [d23ead8d51](https://github.com/angular/angular/commit/d23ead8d512bd68bd11f5457f2a12b1842ecd1e6) | feat | port preprocessor serve tool | +| [4b6788f1fe](https://github.com/angular/angular/commit/4b6788f1fefa8aa97a61386a840edfab9e8595cf) | feat | support synchronous WASM execution in preprocessor ([#71313](https://github.com/angular/angular/pull/71313)) | +| [0e49d96fe6](https://github.com/angular/angular/commit/0e49d96fe65dd1b9ddf43fc17ae53f2aef9a4183) | fix | capture public methods in preprocessor | +| [3e45f7b51b](https://github.com/angular/angular/commit/3e45f7b51b8396f3d2b6b6c2a7d1bce1f345252c) | fix | correctly attach pure comments | +| [69f705cf2d](https://github.com/angular/angular/commit/69f705cf2dea3c5d3f1cb69deea93ddbcdbe4d04) | fix | do not type check getter host bindings in preprocessor | +| [389db18cdd](https://github.com/angular/angular/commit/389db18cdd92c0ba4fc0d91dcfb073954f95b3fb) | fix | fetch data asynchronously in hybrid indexer | +| [ea3528fcdb](https://github.com/angular/angular/commit/ea3528fcdbed280669a7eebd5d3d00e21f348d68) | fix | handle imported templateUrl in preprocessor | +| [8374641bcd](https://github.com/angular/angular/commit/8374641bcdaed05151ce05cf66ba750f3ab6ed75) | fix | handle imports arrays with some dynamic entries | +| [b26f09f9f1](https://github.com/angular/angular/commit/b26f09f9f1024114411f4ddbd8bca9230c598b30) | fix | implement core handling in the preprocessor | +| [d348fd884a](https://github.com/angular/angular/commit/d348fd884a2b71aa76eaedac315723094e29aaf3) | fix | implement HMR in preprocessor | +| [0a77018368](https://github.com/angular/angular/commit/0a770183680c81cda04f35ed2d04216dd39fc877) | fix | inline tcb when depending on local directive | +| [30e3b9ee72](https://github.com/angular/angular/commit/30e3b9ee72fa14ebb51149a911db6a1f82ede945) | fix | propagate hasNgFieldDirective in preprocessor | +| [8984e6bf3d](https://github.com/angular/angular/commit/8984e6bf3daf5804eb3e4dcc7a78fe61d63aca4c) | fix | resolve imported classes in declaration-only NgModule types | +| [520fe13f85](https://github.com/angular/angular/commit/520fe13f8578c962898e617b584979724fc60d34) | fix | resolve template stylesheets through the analyzer in the preprocessor | +| [96ccdc02fe](https://github.com/angular/angular/commit/96ccdc02febd217c2d425344ae3e98d54f9c3b7c) | fix | sync hybrid preprocessor evaluator and cache invalidation fixes | +| [684a89027b](https://github.com/angular/angular/commit/684a89027bcc28e397f0a345584c56de0334c61a) | fix | wire up foreign component matcher in preprocessor | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [09e132a2cd](https://github.com/angular/angular/commit/09e132a2cddb98a7ed4028b7fac48c3fd3ace6b9) | fix | avoid deleting idle bucket created during another bucket's drain | +| [fd5ccc9df8](https://github.com/angular/angular/commit/fd5ccc9df85e79c9a12088813f3b08accb3b8bbb) | fix | avoid infinite loop in i18n if DOM is clobbered | +| [54acced1d7](https://github.com/angular/angular/commit/54acced1d72e785b9bed13154cbd888558795d29) | fix | do not swallow compilation errors in computeStandaloneComponentScope | +| [3a0835b332](https://github.com/angular/angular/commit/3a0835b33286bd0ca237339d3c920ba651d32a1b) | fix | don't crash initEventReplay when two apps share an APP_ID | +| [97f8b6af93](https://github.com/angular/angular/commit/97f8b6af935baddd72906df3aa6f6a0d23e16efb) | fix | error when destroying embedded view with animations | +| [1f1f1f10ab](https://github.com/angular/angular/commit/1f1f1f10ab924eeb06d1d9369b2a0813cf227052) | fix | harden hydration against clobbering | +| [4fe5d08c7e](https://github.com/angular/angular/commit/4fe5d08c7ece5c08b4ec6456c1d27da6396985e7) | fix | improve clobbered element detection | +| [6829292dc6](https://github.com/angular/angular/commit/6829292dc626ac57130998064bd3b79427a037f8) | fix | keep activeConsumer and currentInjector constant using Store helper | +| [38816151b8](https://github.com/angular/angular/commit/38816151b8eb5c0cf62f23d8338c6c33bda612db) | fix | race condition when setting locale | +| [8afd16848c](https://github.com/angular/angular/commit/8afd16848ca50e620e57c5df08bdba4988b03a78) | fix | skip nested tick from onMicrotaskEmpty while a tick is running | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [6d36d6c097](https://github.com/angular/angular/commit/6d36d6c0977d9e8fd789143758033187da9ab5d7) | perf | use addEventListener to avoid unconditional CD scheduling on blur | +### language-service +| Commit | Type | Description | +| -- | -- | -- | +| [33dcc7acfb](https://github.com/angular/angular/commit/33dcc7acfbe7a5ca1e08f7293149cc2cb9fcf0d4) | fix | await hybridCompiler.ensureReady before handling project requests | +### migrations +| Commit | Type | Description | +| -- | -- | -- | +| [baa916d129](https://github.com/angular/angular/commit/baa916d129d1df1e3f5a48e29fe5da21433115e2) | fix | normalize .d.ts paths in output migration field IDs | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [44b7f00e88](https://github.com/angular/angular/commit/44b7f00e8895d969fb334990741b6675242d88b1) | fix | check abort signal state on subscribe | + + + + +# 20.3.34 (2026-10-14) +### core +| Commit | Type | Description | +| -- | -- | -- | +| [fc0e50a2d2](https://github.com/angular/angular/commit/fc0e50a2d2441941de359c623621d8d530ee46ef) | fix | i18n flags leaking on errors | +### http +| Commit | Type | Description | +| -- | -- | -- | +| [933ce817d5](https://github.com/angular/angular/commit/933ce817d53e25926844fa56af8230816763d08e) | fix | enable XSRF protection for same-origin absolute URLs | + + + + +# 22.3.0-next.1 (2026-10-08) +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [ff0dbf1cd4](https://github.com/angular/angular/commit/ff0dbf1cd47bb2a252ae87719dd193a8fbb064e2) | fix | avoid leaking ::ng-deep detection state between rules | +| [0bd78b80b9](https://github.com/angular/angular/commit/0bd78b80b9682d8db54d66620158f820c21f0796) | fix | avoid prototype lookups when resolving entities | +| [a9d6b2fff9](https://github.com/angular/angular/commit/a9d6b2fff90827338127710d513760e1f4ee1b42) | fix | correctly match directives on `<ng-template>` nested in various namespaces | +| [439d495aaa](https://github.com/angular/angular/commit/439d495aaa53ebce35e46464a08b5fb10a5ecd61) | fix | ignore `@let` declarations in the control flow content projection diagnostic | +| [0244a1cb31](https://github.com/angular/angular/commit/0244a1cb312835e500ea6003f54ead9b2347dc28) | fix | match namespaced root nodes of control flow blocks against ng-content tag selectors | +| [97e6aa4a55](https://github.com/angular/angular/commit/97e6aa4a5579e7c968231b0864a3b3890c348863) | fix | strip script elements regardless of namespace | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [8dd33e726b](https://github.com/angular/angular/commit/8dd33e726b465167f5c5bc455267b0e7b133a1ad) | fix | don't mark constructor parameter properties as inherited | +| [b9f7c1fe82](https://github.com/angular/angular/commit/b9f7c1fe827e1fe79499a051e9f3722aa9c23dde) | perf | optimize missing directive extended checks | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [61fd731e6a](https://github.com/angular/angular/commit/61fd731e6a524a0568e99a5b5ea49f8786825895) | feat | add `scrollMargin` to `@defer` viewport options | +| [e332260d73](https://github.com/angular/angular/commit/e332260d73e6e8672694ded25439ef95b1c91070) | fix | defer afterRenderEffect sequences registered while hooks run | +| [17f689bf58](https://github.com/angular/angular/commit/17f689bf58283e4721df6e206062c110f54e8b5e) | fix | strip reserved character from translations | +| [3be586f930](https://github.com/angular/angular/commit/3be586f930dd8d0fc2a544de82604670c18f28f9) | fix | untrack `onError` handler to prevent signal write exceptions | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [fc3dc890aa](https://github.com/angular/angular/commit/fc3dc890aadca8ad4bfa109343c144b5f4530598) | fix | don't crash when control is missing in setUpValidators | +| [c0dc8c4bbe](https://github.com/angular/angular/commit/c0dc8c4bbeea70879aef54e9fcc7888359dfd1a5) | fix | skip class bindings for orphaned fields | +| [e118e15527](https://github.com/angular/angular/commit/e118e155271b8c8b94cd08cb471635a461faf592) | fix | use `Object.is` when comparing control bindings in signal forms | +| [c58464d13e](https://github.com/angular/angular/commit/c58464d13edc71cfbe00f1853fb0c23e6eca4e9f) | fix | write a pending debounced value when its control is destroyed | +### language-service +| Commit | Type | Description | +| -- | -- | -- | +| [a7381e14b5](https://github.com/angular/angular/commit/a7381e14b5616b423be4b6a28257cc4b1a561db2) | feat | add smart selection ranges for templates | +| [73858905a2](https://github.com/angular/angular/commit/73858905a277fe2938efff030a686a61c3a38fab) | fix | add missing options to angularCompilerOptions schema | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [a1bffc29dd](https://github.com/angular/angular/commit/a1bffc29dda1d2ead36cf21cfd6f5c7dd39e629c) | fix | fall back when serializing protocol-relative URLs | +| [ed24615af8](https://github.com/angular/angular/commit/ed24615af8f30c088bc25be734efa71955500acb) | fix | remove the navigate event abort listener once it fires | +| [f591d36fa7](https://github.com/angular/angular/commit/f591d36fa7acf519d0b2cc53879dce17dd691895) | fix | reset internal state on error handler redirect after state commit | + + + + +# 22.2.2 (2026-10-08) +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [fa63bfad14](https://github.com/angular/angular/commit/fa63bfad14dfb94d2985d7e486c8b0b98c231e52) | fix | avoid leaking ::ng-deep detection state between rules | +| [5744e7575c](https://github.com/angular/angular/commit/5744e7575ccdcc1363ad65d0626baf0ccc3c62ae) | fix | avoid prototype lookups when resolving entities | +| [97e57157e4](https://github.com/angular/angular/commit/97e57157e46d8bd0edb9ef5b1d92985b1276c4e6) | fix | correctly match directives on `<ng-template>` nested in various namespaces | +| [0474258a5a](https://github.com/angular/angular/commit/0474258a5a0a01fd866b242863d8ef57e2d4c9b5) | fix | ignore `@let` declarations in the control flow content projection diagnostic | +| [725ffcf4fa](https://github.com/angular/angular/commit/725ffcf4fa6e1105d7e7f092ef4bb4865d568011) | fix | match namespaced root nodes of control flow blocks against ng-content tag selectors | +| [5ff83c11fe](https://github.com/angular/angular/commit/5ff83c11fe38587b6bf484b4b7435bb57874e41a) | fix | strip script elements regardless of namespace | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [01949c53a6](https://github.com/angular/angular/commit/01949c53a611a08b2096f0ef382dc290895ecd0e) | fix | don't mark constructor parameter properties as inherited | +| [f43c63f70c](https://github.com/angular/angular/commit/f43c63f70cfd3cd407807e50ea309d142dfd8c73) | perf | optimize missing directive extended checks | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [095644168e](https://github.com/angular/angular/commit/095644168e856a643c44074555103c645ed28e24) | fix | defer afterRenderEffect sequences registered while hooks run | +| [a312520447](https://github.com/angular/angular/commit/a312520447a51744044e8177f8600607629fb034) | fix | strip reserved character from translations | +| [74bc86d8b2](https://github.com/angular/angular/commit/74bc86d8b21c9b48e22adf36923a83c254e00de0) | fix | untrack `onError` handler to prevent signal write exceptions | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [b0710b8db6](https://github.com/angular/angular/commit/b0710b8db6fc86b8cc1f901ffe2d45787c2ab944) | fix | don't crash when control is missing in setUpValidators | +| [ef0359676c](https://github.com/angular/angular/commit/ef0359676c8e25e363ee39e8060cf13933cfe1d9) | fix | skip class bindings for orphaned fields | +| [c91a8c429d](https://github.com/angular/angular/commit/c91a8c429db610df790d5ad8168087b0f726a34d) | fix | use `Object.is` when comparing control bindings in signal forms | +| [6cd3a8a929](https://github.com/angular/angular/commit/6cd3a8a9292ba48ac5b63472e3d2d47e2c3779b6) | fix | write a pending debounced value when its control is destroyed | +### language-service +| Commit | Type | Description | +| -- | -- | -- | +| [6c44a9ecc5](https://github.com/angular/angular/commit/6c44a9ecc57d5474f4fd793458b9b38249090cdb) | fix | add strictUnclaimedEventNames to angularCompilerOptions schema | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [576df28471](https://github.com/angular/angular/commit/576df28471a5007f7eec56cc56cc8b87c5c74be5) | fix | fall back when serializing protocol-relative URLs | +| [e0137cbfde](https://github.com/angular/angular/commit/e0137cbfde745217fd4ce811bb4ebc58c6aafc40) | fix | remove the navigate event abort listener once it fires | +| [fc91c725a0](https://github.com/angular/angular/commit/fc91c725a0fcc9e3370f518199271773b8c1a093) | fix | reset internal state on error handler redirect after state commit | + + + + +# 22.3.0-next.0 (2026-09-30) +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [0ee0a16c4a](https://github.com/angular/angular/commit/0ee0a16c4ae92458757f79afbbfc1e3aa000eae6) | fix | stop suppressing non-iterable values in `@for` expression | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [a614bd23cd](https://github.com/angular/angular/commit/a614bd23cd9b0b4c0b8676bf72eadafa7a30e785) | fix | resolve base class defined via intermediate variable in dts | +| [91b8391b3d](https://github.com/angular/angular/commit/91b8391b3d3fb23767834a373b68ab604f2f1655) | fix | validate unknown element tags even when matched by attribute directives | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [6ea13efc20](https://github.com/angular/angular/commit/6ea13efc20c9509237062b1aaa77dad8942b9b25) | feat | support increment/decrement operators in expressions | + + + + +# 22.2.1 (2026-09-30) ### common | Commit | Type | Description | | -- | -- | -- | -| [862a0c8ab3](https://github.com/angular/angular/commit/862a0c8ab3403242eeac3b2fb80f7cf63cf0c892) | fix | avoid prototype member collisions | -| [7596548e9b](https://github.com/angular/angular/commit/7596548e9b836a5d12e966bf296a4dbba044b78f) | fix | use locale NaN symbol in number formatting | +| [ad2f291ba0](https://github.com/angular/angular/commit/ad2f291ba06a7d6807f1fde6641502f455f248e5) | fix | let NgOptimizedImage pass a [srcset] binding through when srcset optimization is disabled | +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [0ecaf8e7ab](https://github.com/angular/angular/commit/0ecaf8e7ab8d52957dc314a09d52b4e6da500f11) | fix | add explicit return types to generated functions | +| [c451a3b98d](https://github.com/angular/angular/commit/c451a3b98d405521bf3a4970e20d20bd5b578415) | fix | avoid incorrectly stripping parentheses in template pipeline | +| [bbc556daa9](https://github.com/angular/angular/commit/bbc556daa9d83b6bf1bfa88f6239ae8210ac6a00) | fix | avoid stripping parentheses from some expressions | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [fe9ebf5bf5](https://github.com/angular/angular/commit/fe9ebf5bf5ef8a56bc20b2de8115d4b1a1ed299a) | fix | support extendedConfigCache in readConfiguration | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [21851fc3a3](https://github.com/angular/angular/commit/21851fc3a38258a68d62d966bf5202d6f4e23df1) | fix | add debugName on afterRenderEffect | +| [7c634ecec4](https://github.com/angular/angular/commit/7c634ecec442d71e023ad8ec1976c2791d547bf8) | fix | block dangerous data: and vbscript: URLs in URL sanitizer | +| [9aeef8df6f](https://github.com/angular/angular/commit/9aeef8df6f8c49270ff67aa7656419b65d4df993) | fix | extend data: URL allowlist for non-executable MIME types | +| [f5e8edc5a6](https://github.com/angular/angular/commit/f5e8edc5a6faa798a958548e90f91aaefeee9484) | fix | include signal and component name in NG0600 error message | +| [88614a5407](https://github.com/angular/angular/commit/88614a54070c194a281ccc116a54d2b7e7546f92) | fix | render error boundary fallbacks after HMR | +### http +| Commit | Type | Description | +| -- | -- | -- | +| [6dee7fe91c](https://github.com/angular/angular/commit/6dee7fe91c95fc0de80bde547f5c904c4bb3391b) | fix | forward `reportProgress` of `httpResource` as `reportDownloadProgress` | +### platform-server +| Commit | Type | Description | +| -- | -- | -- | +| [928dcfd258](https://github.com/angular/angular/commit/928dcfd2582152655b5559509d057bf6a5a19521) | fix | reject protocol-relative paths in resolveUrl | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [568d6a83a2](https://github.com/angular/angular/commit/568d6a83a23b37f519ba564f79f7a03bbdfb6893) | fix | do not copy URL-sized objects into every route snapshot | +| [a6e6097b3d](https://github.com/angular/angular/commit/a6e6097b3d0d60f2d7057bfb261c9e4776b2b0b1) | fix | fall back when serializing protocol-relative URLs | +| [8b6dd5e947](https://github.com/angular/angular/commit/8b6dd5e947d74af79d50f1bace38b3229b451bab) | fix | limit absolute redirects from redirect functions | +| [3b6796f1ab](https://github.com/angular/angular/commit/3b6796f1ab279ab26b33d4e29e576d3b1762ccf5) | fix | reject duplicate outlets in production builds | +| [e9bf52aa03](https://github.com/angular/angular/commit/e9bf52aa03a3b9b302c33ffbc967ef0e1de5fb79) | fix | require outlets to match a route before processing child segments | +| [d23932f2fd](https://github.com/angular/angular/commit/d23932f2fd134e6e2608b2ccefdd69c5d9b8f83c) | fix | set initial blocking resource input synchronously on activation | +| [14793bfe4b](https://github.com/angular/angular/commit/14793bfe4b44a36ed4b7e49a60458ec711c2b41a) | perf | do not retain UrlTree instances in RouterLink | + + + + +# 21.2.25 (2026-09-30) +### platform-server +| Commit | Type | Description | +| -- | -- | -- | +| [450af9c813](https://github.com/angular/angular/commit/450af9c813c7660b9bd91e5635f705ee3ed7b32a) | fix | reject protocol-relative paths in resolveUrl | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [4bc11a546b](https://github.com/angular/angular/commit/4bc11a546be9e66ee5c40b48d7a8a5d014609987) | fix | do not copy URL-sized objects into every route snapshot | +| [6489ca5d84](https://github.com/angular/angular/commit/6489ca5d8460a9ed8ae4daf7b0c24ec052f20398) | fix | reject duplicate outlets in production builds | +| [a83f8119ac](https://github.com/angular/angular/commit/a83f8119acd466b524ae0113096ed188358d6d6c) | fix | require outlets to match a route before processing child segments | +| [a131f77d92](https://github.com/angular/angular/commit/a131f77d92808ad5c2f3fa4dc6fde36825f12c5a) | perf | do not retain UrlTree instances in RouterLink | + + + + +# 20.3.33 (2026-09-30) +### platform-server +| Commit | Type | Description | +| -- | -- | -- | +| [83944fc8c5](https://github.com/angular/angular/commit/83944fc8c50e86be90e8ec4184cd15002b5af262) | fix | reject protocol-relative paths in resolveUrl | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [142f187b3c](https://github.com/angular/angular/commit/142f187b3c8e956aade5457f7f9c8ed73754979b) | fix | do not copy URL-sized objects into every route snapshot | +| [cd8efcb924](https://github.com/angular/angular/commit/cd8efcb924d26464bc42ee436d39e10784cfc240) | fix | reject duplicate outlets in production builds | +| [b0d2ba0f54](https://github.com/angular/angular/commit/b0d2ba0f54e21cb57ea5a0ca0d8e6065f28e23a0) | fix | require outlets to match a route before processing child segments | + + + + +# 22.2.0 (2026-09-23) ### compiler | Commit | Type | Description | | -- | -- | -- | -| [58b0cb4735](https://github.com/angular/angular/commit/58b0cb47358861de0a512711addb8e29f984a57e) | fix | scope animations declared in minified nested rules | +| [48a0fd6e8a](https://github.com/angular/angular/commit/48a0fd6e8a8d14bdc1d901ee5615f4b0ab698fe8) | feat | allow template to access private props | +| [a4f1a94948](https://github.com/angular/angular/commit/a4f1a949486d20ce2bf9add427eea6629228b28b) | fix | do not encapsulate nested selectors if parent contains ::ng-deep | +| [d0d7f57e08](https://github.com/angular/angular/commit/d0d7f57e0810a24ba16dbb1f2ab9f079a096fa3d) | fix | scope nested CSS rules | ### compiler-cli | Commit | Type | Description | | -- | -- | -- | +| [312e1d8089](https://github.com/angular/angular/commit/312e1d808902116fb8cd4e02d936260113453999) | feat | add strictUnclaimedEventNames option to catch misspelled output bindings | | [7d9f55da11](https://github.com/angular/angular/commit/7d9f55da11319da8f273d9edcd38ff2983bdbb0c) | feat | scope type-checking of keyed defer blocks | | [2e2c426e76](https://github.com/angular/angular/commit/2e2c426e7609de551dafb6360e6373333a278c4e) | fix | deduplicate deferred imports across multiple blocks | -| [a46292af26](https://github.com/angular/angular/commit/a46292af260f241da2f9f4e4cbb7d40b14a678f1) | fix | default template diagnostic related message source file to template | -| [e9ba39d671](https://github.com/angular/angular/commit/e9ba39d671a3645ef5ca8233c96bacc94f02d155) | fix | Produce correct tcb expression for optional chaining | -| [74b294cd51](https://github.com/angular/angular/commit/74b294cd51b0f73e3a71e0cd13a176b1d0f3a89f) | fix | retain metadata for strict standalone errors | ### core | Commit | Type | Description | | -- | -- | -- | -| [7ba082e08e](https://github.com/angular/angular/commit/7ba082e08e59eadec4594ad80661d5c1ec08cb2a) | fix | avoid prototype member collisions | -| [915a03ae85](https://github.com/angular/angular/commit/915a03ae856a595bd5fa0f364928869db8daec19) | fix | explicitly reject foreign components in JIT mode | -| [2ab5ff56de](https://github.com/angular/angular/commit/2ab5ff56ded8c6246c0035d9df62a0c7fc9e1308) | fix | preserve namespace for dynamic component hosts | -| [168a324cce](https://github.com/angular/angular/commit/168a324cce0f133ed92953374c2510a75868b790) | fix | prevent TransferState prototype pollution | -| [83f7695b2e](https://github.com/angular/angular/commit/83f7695b2e4e1cab347f7817da4ae4262dade415) | fix | throw coded RuntimeErrors instead of crashing when hydration/rendering can't find an expected DOM node | +| [f6afb807c1](https://github.com/angular/angular/commit/f6afb807c1e62d26b8b665f2b4a9a52c2433a673) | feat | add ErrorBoundary programmatic APIs ([#70463](https://github.com/angular/angular/pull/70463)) | +| [05c4d5a835](https://github.com/angular/angular/commit/05c4d5a8354228100b51176f295ed5dee4f3febc) | feat | add utility for testing directives | +| [bd9b45b5cc](https://github.com/angular/angular/commit/bd9b45b5cc1dd904cc4a5de45f6de8e1564b70b6) | feat | allow reading `Injector` from a view or content query | +| [91a2bf8425](https://github.com/angular/angular/commit/91a2bf84250f9b0a28a8a68e1eded6e9506bc5e9) | feat | support annotations in WebMCP tool declarations | +| [af2c7e386d](https://github.com/angular/angular/commit/af2c7e386d8c88fe6c27b148bb84ee0e26662e5b) | fix | cancel leave animations in nested views during list reordering | +| [de5889ec4f](https://github.com/angular/angular/commit/de5889ec4fab2b337e394eb994c8d428272d5ec9) | fix | support function and signal bindings in animate.enter and animate.leave | +| [a8233232f5](https://github.com/angular/angular/commit/a8233232f5ade21a15a6645135accd21cf041b1e) | fix | update FakeNavigation to match WHATWG HTML spec | ### forms | Commit | Type | Description | | -- | -- | -- | -| [1e35de536d](https://github.com/angular/angular/commit/1e35de536d8332dfcbb3d89d01ca84b50aa56bd2) | fix | use dot-access for readonly rule configuration | +| [d5e8b1ef7a](https://github.com/angular/angular/commit/d5e8b1ef7a02c84d4fd70a6b4d748ead9ff815bf) | feat | allow permanent hidden fields in signal forms | +| [6e299da8cf](https://github.com/angular/angular/commit/6e299da8cfc7df49029d5d8bb7d5739560e1aaa4) | feat | hard-code `readOnlyHint` and `untrustedContentHint` for WebMCP implicit signal forms | ### language-service | Commit | Type | Description | | -- | -- | -- | -| [0f0d52e9c1](https://github.com/angular/angular/commit/0f0d52e9c1154f8db9a4a8d9d0ff73f0afdc7031) | fix | honor quote style preference when generating imports | +| [f4a5650ed9](https://github.com/angular/angular/commit/f4a5650ed9c71a8ee1dbd3003e13900464827757) | feat | add support for `@boundary` blocks ([#70463](https://github.com/angular/angular/pull/70463)) | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [2720362818](https://github.com/angular/angular/commit/2720362818cdeb2a940171e4ab6f21cf78c6a302) | feat | add containsTree as public API | +| [b65dea4f03](https://github.com/angular/angular/commit/b65dea4f03e5fc01093a718c990c72ae9165c43f) | feat | allow throwing RedirectCommand to trigger redirects | +| [3064f3f1dc](https://github.com/angular/angular/commit/3064f3f1dccd78177bf3b86f8ea231102884f0d7) | feat | expose router resources in public API | +| [7137a41223](https://github.com/angular/angular/commit/7137a41223079b4b172aeccb5031347fcc947b79) | feat | stabilize auto cleanup injectors feature | +| [094bce9e3d](https://github.com/angular/angular/commit/094bce9e3defe7e9fd56f951641f3bb74248d06a) | fix | determine blocking state solely by resource loading status | +| [6f5a4a06c2](https://github.com/angular/angular/commit/6f5a4a06c2e7c565e584c72910c2d8fa7ba9cb2f) | fix | expose reload method on ActivatedRoute resources | +| [2c6c67bee6](https://github.com/angular/angular/commit/2c6c67bee675a67eff2c2d219dcb88cc1c305190) | fix | maintain frozen state on rollback until resource loading completes | +| [2dcdf9aae6](https://github.com/angular/angular/commit/2dcdf9aae637a247d1a9bdcf03c740d0b3036cd0) | fix | mark router_resource module-level symbols as side-effect free | + + + + +# 21.2.24 (2026-09-23) +### router +| Commit | Type | Description | +| -- | -- | -- | +| [03872a80bc](https://github.com/angular/angular/commit/03872a80bcf1c89b2b04cdd3f444b2ee954da583) | fix | avoid dense elements allocation for numeric URL keys | + + + + +# 20.3.32 (2026-09-23) +### router +| Commit | Type | Description | +| -- | -- | -- | +| [ddfe21072b](https://github.com/angular/angular/commit/ddfe21072ba32ca4cd9d7d3c6b7df66af81d58c4) | fix | avoid dense elements allocation for numeric URL keys | + + + + +# 22.1.8 (2026-09-23) +### common +| Commit | Type | Description | +| -- | -- | -- | +| [850db9d999](https://github.com/angular/angular/commit/850db9d9997d026542eb4626aff3e2bf02ab9290) | fix | remove abort listener on the abort path too in httpResource | +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [4e5f4c38a7](https://github.com/angular/angular/commit/4e5f4c38a7eae17262d32f26c06f62d0e5203df8) | fix | add return type to pure functions | +| [02e83dc288](https://github.com/angular/angular/commit/02e83dc28846c735744ab8769690dba0b62b5db2) | fix | avoid hitting TypeScript limits if template has many translations | +| [024ebe668c](https://github.com/angular/angular/commit/024ebe668c27668e3cc48023ba48ef24468bdfbb) | fix | do not copy expression type into output AST variables | +| [b3c5824bd6](https://github.com/angular/angular/commit/b3c5824bd643f06e28fc298779fc31c3095ed092) | fix | guard unverified ctor parameter types in class metadata | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [fe671d9024](https://github.com/angular/angular/commit/fe671d9024d737b0304cc66366450e6fa0560cd9) | fix | output function return types in linker | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [d7d5401cd5](https://github.com/angular/angular/commit/d7d5401cd5e8ce23d8bb3f0e7ae08323b307d0d5) | fix | don't use plain objects as maps for jsaction data | +| [c3e8f29b3f](https://github.com/angular/angular/commit/c3e8f29b3f898ee5377b0110683fe9dc2808c116) | fix | ensure references are cleared from idle scheduler | +| [9b854f6e76](https://github.com/angular/angular/commit/9b854f6e760b6b6a710f43ca9edafe9f79aed538) | fix | loosen return types for arrow functions in generated code | +| [cfa8967683](https://github.com/angular/angular/commit/cfa896768301bf74c2e09e35d9a03cc6d2d2a885) | fix | wait for app stability before cleaning up dehydrated views | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [78c7ab3926](https://github.com/angular/angular/commit/78c7ab392627d87d76df3e28df5cda2449d93a68) | fix | create controls before listeners | +### platform-server +| Commit | Type | Description | +| -- | -- | -- | +| [330083f250](https://github.com/angular/angular/commit/330083f250fe3be6b415be1ea7d6905e7511b5b9) | fix | preserve Unicode whitespace in ServerXhr URLs | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [2cab6f5964](https://github.com/angular/angular/commit/2cab6f59649af47dd86e2fc7dd0dd269209c58bc) | fix | avoid dense elements allocation for numeric URL keys | + + + + +# 22.1.7 (2026-09-16) +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [5e632b639f](https://github.com/angular/angular/commit/5e632b639f736de876823a596dd9e3a094b03e1b) | fix | wrap `@for` collection expression before appending non-null assertion | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [ec48c8305c](https://github.com/angular/angular/commit/ec48c8305c40fbafbab51801f93bb4e4b6a25ea0) | fix | return null when getDirectiveMetadata is called with null or undefined | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [6555c4ee1e](https://github.com/angular/angular/commit/6555c4ee1ec2aea7eb541d558981b55eb751497c) | fix | mark control as dirty before setting its value in FVC interop | + + + + +# 22.1.6 (2026-09-09) +### compiler +| Commit | Type | Description | +| -- | -- | -- | +| [cbb8702143](https://github.com/angular/angular/commit/cbb8702143bd04b68253758dbc2c4a8fb49c0237) | fix | namespace `@property` declarations | +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [aea121e532](https://github.com/angular/angular/commit/aea121e53217a7f74d2a8e4a7a6bf0f3a96b7c49) | fix | do not flag callable objects with zero parameters in uninvoked track function check | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [c19b948ef8](https://github.com/angular/angular/commit/c19b948ef8d34e5a15e41cd5a88cdd4bda848f8f) | fix | apply SkipSelf to only the starting node in embedded views | +### platform-server +| Commit | Type | Description | +| -- | -- | -- | +| [d20a379583](https://github.com/angular/angular/commit/d20a37958318c898a72109480cee556e388cd78b) | fix | avoid sourcemap corruption during domino path substitution | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [95c01e9cde](https://github.com/angular/angular/commit/95c01e9cdea251e09d321a01e9b982b2fe1b7873) | fix | keep detached route subtree contexts isolated and intact | + + + + +# 20.3.31 (2026-09-09) +### platform-server +| Commit | Type | Description | +| -- | -- | -- | +| [3db26e2544](https://github.com/angular/angular/commit/3db26e2544964d07a520836ad01f02f36ec88e25) | fix | update domino to latest version | + + + + +# 21.2.23 (2026-09-09) +### platform-server +| Commit | Type | Description | +| -- | -- | -- | +| [fc2e8fbc0b](https://github.com/angular/angular/commit/fc2e8fbc0bda2f5c11585e8a0cbd88c074f5e567) | fix | update domino to latest version | + + + + +# 22.1.5 (2026-09-02) +### compiler-cli +| Commit | Type | Description | +| -- | -- | -- | +| [d90698dae7](https://github.com/angular/angular/commit/d90698dae759f21f29052e521ffaec6c3a79f6d1) | fix | check uninvoked signal aliases in extended diagnostic | +### core +| Commit | Type | Description | +| -- | -- | -- | +| [2ceeb27078](https://github.com/angular/angular/commit/2ceeb27078d890514a1e87b0d99f366d9a4a796f) | fix | cancel stale debounce timers to prevent timer leaks | +| [ed2e401d2d](https://github.com/angular/angular/commit/ed2e401d2da9a6dd5c87006573a8e42934f58f62) | fix | don't fail NgModule checks for a pipe that extends a base class | +| [c65d378bb4](https://github.com/angular/angular/commit/c65d378bb4fded436f197aa7bc52c03f507b8bd4) | fix | validate SVG animation attributes outside the SVG namespace | +### forms +| Commit | Type | Description | +| -- | -- | -- | +| [43aaeaec29](https://github.com/angular/angular/commit/43aaeaec29e15d7b2504e8930c92c94b898ca200) | fix | avoid writing to `name` input on ControlValueAccessor | ### migrations | Commit | Type | Description | | -- | -- | -- | -| [bdc09e8183](https://github.com/angular/angular/commit/bdc09e8183a3280d25bfc93b4d5ae4452cc551ec) | fix | preserve registerLocaleData calls in standalone bootstrap migration | +| [d85288d75f](https://github.com/angular/angular/commit/d85288d75f3f85dc6b10bf813c805b1b7fed7329) | fix | skip tsconfig files of non-Angular projects | ### platform-server | Commit | Type | Description | | -- | -- | -- | -| [3e924cc8db](https://github.com/angular/angular/commit/3e924cc8dbbb57f23b262cb8f0d7e2bd0673034c) | fix | avoid stripping unicode whitespace during url resolution | +| [3b8723ce3d](https://github.com/angular/angular/commit/3b8723ce3d88b2bf871185736bc33e3cf9a189f4) | fix | resolve HTTP(S) URLs without authority as relative during SSR | +### router +| Commit | Type | Description | +| -- | -- | -- | +| [4340a63c52](https://github.com/angular/angular/commit/4340a63c52fca4d08ef258a3c053f50932eab27e) | fix | avoid view transitions when the user agent provides one | @@ -108,58 +1035,6 @@ - -# 22.2.0-next.3 (2026-08-19) -### animations -| Commit | Type | Description | -| -- | -- | -- | -| [c73a001fbf](https://github.com/angular/angular/commit/c73a001fbf766b350fab4e64244cfaee23fdc8bc) | fix | detect object trigger values with Object.hasOwn | -### common -| Commit | Type | Description | -| -- | -- | -- | -| [46d2cb7ff0](https://github.com/angular/angular/commit/46d2cb7ff049dc4549080f64dceb1541b3a87cee) | fix | preserve literal key union in KeyValuePipe.transform() | -### compiler -| Commit | Type | Description | -| -- | -- | -- | -| [48a0fd6e8a](https://github.com/angular/angular/commit/48a0fd6e8a8d14bdc1d901ee5615f4b0ab698fe8) | feat | allow template to access private props | - -### core -| Commit | Type | Description | -| -- | -- | -- | -| [dc65e3656f](https://github.com/angular/angular/commit/dc65e3656ff56fc6c5c03cf59991a6e8760b5279) | fix | accept readonly arrays for setClassMetadata decorators | -| [eee9ef4d09](https://github.com/angular/angular/commit/eee9ef4d09c091e9066ed6074a19c0eee0e84da2) | fix | allow readonly arrays in RawScopeInfoFromDecorator | -| [0ddbc47e7f](https://github.com/angular/angular/commit/0ddbc47e7f6a4eced3a1a986b260747dc37ee9c9) | fix | expose debuggableFn for non-computed signal graph nodes | -| [c2b14b7ab4](https://github.com/angular/angular/commit/c2b14b7ab44003d6fd1154300c5cc483644d80e6) | fix | prevent orphaned requestIdleCallback handle from re-entrant scheduling | -| [732e505018](https://github.com/angular/angular/commit/732e5050180190df24768ace7aa3e785ca0dcc0a) | fix | replace all hasOwnProperty usages with Object.hasOwn | -| [c658d73210](https://github.com/angular/angular/commit/c658d73210d1a2e808cfe659dddd48e8389086c7) | fix | stop running further effects once one destroys the view mid-flush | -| [c6e4a36be1](https://github.com/angular/angular/commit/c6e4a36be1246e0fbe06d591a69ac79cd74348d2) | fix | throw a descriptive error instead of crashing when a hydration node is missing | -| [4560f4fdcd](https://github.com/angular/angular/commit/4560f4fdcda4d55c9234f71fda2e73938cb55ed6) | fix | throw NG0500 instead of a raw TypeError on element hydration mismatch | -### forms -| Commit | Type | Description | -| -- | -- | -- | -| [c819880b91](https://github.com/angular/angular/commit/c819880b91bf5ff1c5aa71afd314ae7cae241065) | fix | report forbidden 2way bindings on when `FormField` is applied | -| [38d093232c](https://github.com/angular/angular/commit/38d093232c6d2fad99f2e361e9f6e31923507658) | fix | warn in dev mode when ngModel cannot reach parent NgForm across component boundary | -### http -| Commit | Type | Description | -| -- | -- | -- | -| [1a006a8f97](https://github.com/angular/angular/commit/1a006a8f9794240a950c388387bd8b9a671801da) | fix | cancel oversized fetch response bodies | -### language-server -| Commit | Type | Description | -| -- | -- | -- | -| [3f8d9d6ea6](https://github.com/angular/angular/commit/3f8d9d6ea6a0a0e7edbc12baf08b1f6db8c0f6b8) | fix | recover project for external templates in solution-style workspaces | -### platform-browser -| Commit | Type | Description | -| -- | -- | -- | -| [6f9a6bea50](https://github.com/angular/angular/commit/6f9a6bea50944fff894eb5629075b13f8c3090d7) | fix | disallow event handler attributes in Meta | -| [1cb3d606bf](https://github.com/angular/angular/commit/1cb3d606bf5bb01ec9c9e9289703a79f64c76e89) | fix | throw a descriptive error when insertBefore reference node is missing | -### router -| Commit | Type | Description | -| -- | -- | -- | -| [2720362818](https://github.com/angular/angular/commit/2720362818cdeb2a940171e4ab6f21cf78c6a302) | feat | add containsTree as public API | -| [f1a4c85212](https://github.com/angular/angular/commit/f1a4c8521296d7414a1eab84352ca7db966f35e2) | fix | pass correct component to canDeactivate for named outlets in componentless parent routes | - - - # 22.1.3 (2026-08-19) ### animations @@ -261,42 +1136,6 @@ - -# 22.2.0-next.2 (2026-08-13) -### compiler -| Commit | Type | Description | -| -- | -- | -- | -| [a4f1a94948](https://github.com/angular/angular/commit/a4f1a949486d20ce2bf9add427eea6629228b28b) | fix | do not encapsulate nested selectors if parent contains ::ng-deep | -| [d7b03f5523](https://github.com/angular/angular/commit/d7b03f5523d220c7935426d23ff5f103c96b00d9) | fix | Generate correct expression for optional chaning. | -| [107f6fa49d](https://github.com/angular/angular/commit/107f6fa49d00ec250b94a8d5f484bae2fc3d71c9) | fix | remove namespaced MathML script elements | -| [d0d7f57e08](https://github.com/angular/angular/commit/d0d7f57e0810a24ba16dbb1f2ab9f079a096fa3d) | fix | scope nested CSS rules | -### compiler-cli -| Commit | Type | Description | -| -- | -- | -- | -| [e8aa222e7d](https://github.com/angular/angular/commit/e8aa222e7d98d2e54c5604107a929a11cb1ef62d) | fix | correctly resolve symbol for SafePropertyRead in chained optional navigation | -| [8d6c925392](https://github.com/angular/angular/commit/8d6c925392c7230fbe6b39abdad05381672631b1) | fix | record class extends clause references in DeferredSymbolTracker | -### core -| Commit | Type | Description | -| -- | -- | -- | -| [8925a4ee49](https://github.com/angular/angular/commit/8925a4ee491aebaf6a1a74880c73dfb20e0a4ba1) | fix | ensure i18n_util hasOwnProperty checks are safe for property renaming | -| [565dbb2fe5](https://github.com/angular/angular/commit/565dbb2fe5406f2a86d43a5b3c6993434b7124a7) | fix | incorrect loop in defer blocks | -| [9f8e32616b](https://github.com/angular/angular/commit/9f8e32616b79892785051fab1c3120a770f5f682) | fix | reject prefixed SVG script hosts | -### forms -| Commit | Type | Description | -| -- | -- | -- | -| [9e37a58e14](https://github.com/angular/angular/commit/9e37a58e14bd7955d40255e42e20aa84fcde02f4) | fix | keep radio inputs in sync when values change | -### http -| Commit | Type | Description | -| -- | -- | -- | -| [09bc90003e](https://github.com/angular/angular/commit/09bc90003ed6e9f6c166e885503728af49d1af67) | fix | always decode JSON responses as UTF-8 | -### router -| Commit | Type | Description | -| -- | -- | -- | -| [b65dea4f03](https://github.com/angular/angular/commit/b65dea4f03e5fc01093a718c990c72ae9165c43f) | feat | allow throwing RedirectCommand to trigger redirects | -| [435f8b2b8b](https://github.com/angular/angular/commit/435f8b2b8b67277fc69888911251d14b32705828) | fix | limit protocol-relative URL handling to serialization | - - - # 20.3.28 (2026-08-13) ### core @@ -327,23 +1166,6 @@ - -# 22.2.0-next.1 (2026-08-07) -### core -| Commit | Type | Description | -| -- | -- | -- | -| [cfe2cda110](https://github.com/angular/angular/commit/cfe2cda1100bb84e2ecf954687126c4d30212d07) | fix | initialize hydration triggers after late runtime activation | -| [e43eb96341](https://github.com/angular/angular/commit/e43eb96341b692525743a1f3aa1380ce21a9dd02) | fix | warn when style property bindings receive invalid values | -### http -| Commit | Type | Description | -| -- | -- | -- | -| [ef4dfead83](https://github.com/angular/angular/commit/ef4dfead83ea8b3843b98a17ac572f2a380b1c46) | fix | avoid aborting completed requests in FetchBackend | -| [6a0789dc7f](https://github.com/angular/angular/commit/6a0789dc7f0ac9d1249c4d9f315e83424867169b) | fix | respect content-type charset in fetch backend text decoder | -| [bb78286e5e](https://github.com/angular/angular/commit/bb78286e5e729d1e1fcfd2733d88351a38083ef5) | fix | run root interceptors in the terminal request chain | -| [280d09b160](https://github.com/angular/angular/commit/280d09b16011e4f53f9e696fd95964943c6dcbfa) | fix | strip RFC 6265 DQUOTE characters and handle URIError in parseCookieValue | - - - # 22.1.1 (2026-08-06) ### core @@ -361,15 +1183,6 @@ - -# 22.2.0-next.0 (2026-07-29) -### forms -| Commit | Type | Description | -| -- | -- | -- | -| [d5e8b1ef7a](https://github.com/angular/angular/commit/d5e8b1ef7a02c84d4fd70a6b4d748ead9ff815bf) | feat | allow permanent hidden fields in signal forms | - - - # 21.2.19 (2026-07-29) ### compiler diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 000000000000..37d50091f13b --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,1728 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + +[[package]] +name = "arrayvec" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" +dependencies = [ + "serde_core", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytecount" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e" + +[[package]] +name = "castaway" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dec551ab6e7578819132c713a93c022a05d60159dc86e7a7050223577484c55a" +dependencies = [ + "rustversion", +] + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "compact_str" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79fcda08c33bb58b97008b2cdada6622500e949e060f5913361763121abd2416" +dependencies = [ + "castaway", + "cfg-if", + "itoa", + "serde", + "static_assertions", + "zmij", +] + +[[package]] +name = "convert_case" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1af709f1f33454bf52eadfc8c78b3b9ef9cb26fb54d16dc9cd9a7299f899fd1b" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "cow-utils" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "417bef24afe1460300965a25ff4a24b8b45ad011948302ec221e8a0a81eb2c79" + +[[package]] +name = "crossbeam-utils" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" + +[[package]] +name = "ctor" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d" + +[[package]] +name = "dashmap" +version = "6.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6361d5c062261c78a176addb82d4c821ae42bed6089de0e12603cd25de2059c" +dependencies = [ + "cfg-if", + "crossbeam-utils", + "hashbrown 0.14.5", + "lock_api", + "once_cell", + "parking_lot_core", +] + +[[package]] +name = "displaydoc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "dragonbox_ecma" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd8e701084c37e7ef62d3f9e453b618130cbc0ef3573847785952a3ac3f746bf" + +[[package]] +name = "either" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" + +[[package]] +name = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys", +] + +[[package]] +name = "fast-glob" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a044ed96eb57253e806d08b74260638af189687e583f04947a5e11e75e0b0d1" +dependencies = [ + "arrayvec", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "float-cmp" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b09cf3155332e944990140d967ff5eceb70df778b34f77d8075db46e4704e6d8" +dependencies = [ + "num-traits", +] + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "futures" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-executor" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi", +] + +[[package]] +name = "glob" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" + +[[package]] +name = "halfbrown" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c7ed2f2edad8a14c8186b847909a41fbb9c3eafa44f88bd891114ed5019da09" +dependencies = [ + "hashbrown 0.16.1", +] + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +dependencies = [ + "allocator-api2", +] + +[[package]] +name = "icu_collections" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0" +dependencies = [ + "displaydoc", + "litemap", + "serde", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locale_fallback" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "406e9ae5b95d8aa37db6293405931b766a6172d1848daee22d70eb44aa78a43c" +dependencies = [ + "icu_locale_core", + "icu_locale_fallback_data", + "icu_provider", + "potential_utf", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locale_fallback_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3632ebbd0c5c3637ba1a40bdf8288f2cb9d2268e73441a69d5fc73d7cfbaa87c" + +[[package]] +name = "icu_provider" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514" +dependencies = [ + "displaydoc", + "icu_locale_core", + "serde", + "stable_deref_trait", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_segmenter" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61b195dc605f81aa181bec9b3bd14e26cc71b903e4644f6af578ca9772c7a710" +dependencies = [ + "icu_collections", + "icu_locale_fallback", + "icu_provider", + "icu_segmenter_data", + "potential_utf", + "smallvec", + "utf8_iter", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_segmenter_data" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "913a7d294ad056474749152107309fdee3ec17d2482d1ab70fdc61a81c64b9a3" + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", + "serde", + "serde_core", +] + +[[package]] +name = "itertools" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b4baf93f58d4425749ca49a51c50ebab072c5df6994d08fed93541c331481dc" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4" + +[[package]] +name = "js-sys" +version = "0.3.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08" +dependencies = [ + "cfg-if", + "futures-util", + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "json-strip-comments" +version = "3.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01ed659c5f428031b9c1fb7de6729af2eb491654d4bcd416a5b5b704986b9658" +dependencies = [ + "memchr", +] + +[[package]] +name = "lazy_static" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" + +[[package]] +name = "libc" +version = "0.2.191" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" + +[[package]] +name = "libloading" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "754ca22de805bb5744484a5b151a9e1a8e837d5dc232c2d7d8c2e3492edc8b60" +dependencies = [ + "cfg-if", + "windows-link", +] + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "napi" +version = "3.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "907ff7366fb7182e28edd0f08ef8ac5d6b13b8d65a3c0b3a10bf3ac092437d6b" +dependencies = [ + "bitflags", + "ctor", + "futures", + "libc", + "napi-build", + "napi-sys", + "nohash-hasher", + "rustc-hash", + "tokio", +] + +[[package]] +name = "napi-build" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b899b545d3aa6dca985939059f258c5488d34e4ecf39c274e20009748f4b846d" + +[[package]] +name = "napi-derive" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d32eb00f92f84cf462fc328f49082b29c2a7d2eebeb1d447d19c1f9fdd9f89ee" +dependencies = [ + "convert_case", + "ctor", + "napi-derive-backend", + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "napi-derive-backend" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1fe28c64d8fc12e69f9b817d0febdbe7914555760f1e353106281b8ff99cc90" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "semver", + "syn 3.0.10", +] + +[[package]] +name = "napi-sys" +version = "3.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d153beb7d5c973f4b9395be8a83054a28968b61188f1dd1a2cc2321af22daea2" +dependencies = [ + "libloading", +] + +[[package]] +name = "ng-analyze" +version = "0.1.0" +dependencies = [ + "futures", + "glob", + "js-sys", + "json-strip-comments", + "napi", + "napi-build", + "napi-derive", + "oxc-miette-derive", + "oxc_allocator", + "oxc_ast", + "oxc_ast_visit", + "oxc_diagnostics", + "oxc_parser", + "oxc_resolver", + "oxc_semantic", + "oxc_span", + "oxc_syntax", + "pathdiff", + "regex", + "self_cell", + "serde", + "serde_json", + "tempfile", + "tracing", + "tracing-subscriber", + "wasm-bindgen", +] + +[[package]] +name = "nodejs-built-in-modules" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5eb86a92577833b75522336f210c49d9ebd7dd55a44d80a92e68c668a75f27c" + +[[package]] +name = "nohash-hasher" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" + +[[package]] +name = "nonmax" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "610a5acd306ec67f907abe5567859a3c693fb9886eb1f012ab8f2a47bef3db51" + +[[package]] +name = "num-bigint" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93e7820bc0a80a0238e650327316f929ba18d5be054b647490a3a6a339f3e7c0" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-integer" +version = "0.1.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "owo-colors" +version = "4.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c45bb4a6ae1280ec0803b1ef9d3455eb50f01efbbe1447ab020f1d54fba9d8" + +[[package]] +name = "oxc-miette" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330e07b3807046e0afa8fcc94f1fe976e93831b370d148bfe1168cb53da1b913" +dependencies = [ + "bytecount", + "memchr", + "owo-colors", + "textwrap", + "unicode-segmentation", + "unicode-width", +] + +[[package]] +name = "oxc-miette-derive" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "acc072d11d45ebe7801459b4e829184ba0934d68027fdc51d327335b53a95a49" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "oxc_allocator" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9262c7bbd58c8c32c2c60d1a7b6c274cd2aeaff1b726a2fb86081b75084698cb" +dependencies = [ + "allocator-api2", + "hashbrown 0.17.1", + "oxc_data_structures", + "oxc_estree", + "rustc-hash", + "serde", +] + +[[package]] +name = "oxc_ast" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8134809b665d524d9a0ddeee87a5d3602776aa2410a10a0439fd25eeb594a5d" +dependencies = [ + "bitflags", + "oxc_allocator", + "oxc_ast_macros", + "oxc_data_structures", + "oxc_diagnostics", + "oxc_estree", + "oxc_regular_expression", + "oxc_span", + "oxc_str", + "oxc_syntax", +] + +[[package]] +name = "oxc_ast_macros" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac120c6863a9d036c78a42a5e4d2f58bb27c5df795d61d904f6e19e48c681a37" +dependencies = [ + "phf", + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "oxc_ast_visit" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a57626cd6ef87f5173110a301868e3c438fd8e0576f489d9a61540ef133f686" +dependencies = [ + "oxc_allocator", + "oxc_ast", + "oxc_span", + "oxc_syntax", +] + +[[package]] +name = "oxc_data_structures" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a71efea56db93d3ce9e88e1d9f74f6d50fc2b06092444cdd08579f5827fd8db" + +[[package]] +name = "oxc_diagnostics" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5ff8638533094ecdcd38a63930c003c261d81650e4531c3bc805c797aec2a52" +dependencies = [ + "cow-utils", + "memchr", + "oxc-miette", + "percent-encoding", + "smallvec", +] + +[[package]] +name = "oxc_ecmascript" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77c7a326f49f06da37affdcad2fb3ebab46ac4ada8953a428f7cbd04e5cc9e6e" +dependencies = [ + "dragonbox_ecma", + "itoa", + "num-bigint", + "num-traits", + "oxc_ast", + "oxc_data_structures", + "oxc_span", + "oxc_syntax", +] + +[[package]] +name = "oxc_estree" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8275fcb9674a1c320f0bdbc2f534ba9bb09fcb8b1c9fe306c9595d262a06bfcb" +dependencies = [ + "dragonbox_ecma", + "itoa", + "oxc_data_structures", +] + +[[package]] +name = "oxc_index" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "191884bee6c3744909a51acc7d78d4ae370d817b25875b10642f632327b6296e" +dependencies = [ + "nonmax", + "serde", +] + +[[package]] +name = "oxc_parser" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d13016de81370106ea4065cfabe4a278dc09e82523cfe22bb6a8ab8e993b4c3a" +dependencies = [ + "bitflags", + "cow-utils", + "memchr", + "num-bigint", + "num-traits", + "oxc_allocator", + "oxc_ast", + "oxc_data_structures", + "oxc_diagnostics", + "oxc_ecmascript", + "oxc_regular_expression", + "oxc_span", + "oxc_str", + "oxc_syntax", + "rustc-hash", + "seq-macro", +] + +[[package]] +name = "oxc_regular_expression" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c375b89d88ec03301b0e62528715699551871861197aa39148e95a1422e1ae9b" +dependencies = [ + "bitflags", + "oxc_allocator", + "oxc_ast_macros", + "oxc_diagnostics", + "oxc_span", + "oxc_str", + "phf", + "rustc-hash", + "unicode-id-start", +] + +[[package]] +name = "oxc_resolver" +version = "11.24.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c7fd0839a5ecee17c0d2c88c8006e8ab4dff25d4a79e3a0bf7a9f0cce17f4e3" +dependencies = [ + "compact_str", + "dashmap", + "fast-glob", + "indexmap", + "json-strip-comments", + "memchr", + "nodejs-built-in-modules", + "once_cell", + "percent-encoding", + "rustc-hash", + "rustix", + "self_cell", + "serde", + "serde_json", + "simd-json", + "simdutf8", + "thiserror", + "tracing", + "windows", +] + +[[package]] +name = "oxc_semantic" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8d80604c4220c8f5b1c19682216921397fb45a616db47d3a044474662f0c2e" +dependencies = [ + "itertools", + "memchr", + "oxc_allocator", + "oxc_ast", + "oxc_ast_visit", + "oxc_data_structures", + "oxc_diagnostics", + "oxc_ecmascript", + "oxc_index", + "oxc_span", + "oxc_str", + "oxc_syntax", + "rustc-hash", + "self_cell", + "smallvec", +] + +[[package]] +name = "oxc_span" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abd732008dbfb09984106925f7ff7268687c8020b89bd7ee0f0b695c5bb07950" +dependencies = [ + "compact_str", + "oxc-miette", + "oxc_allocator", + "oxc_ast_macros", + "oxc_estree", + "oxc_str", + "serde", +] + +[[package]] +name = "oxc_str" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1d2ccb0f5aa4da9fc98ef70f59553c2779e28e064a8b271fcb1e88c11a63607" +dependencies = [ + "compact_str", + "hashbrown 0.17.1", + "oxc_allocator", + "oxc_estree", + "serde", +] + +[[package]] +name = "oxc_syntax" +version = "0.144.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15ff0e987ab15a71dae36fd544b9859513e76639e2cc6c5e25895081162755b1" +dependencies = [ + "bitflags", + "cow-utils", + "dragonbox_ecma", + "nonmax", + "oxc_allocator", + "oxc_ast_macros", + "oxc_estree", + "oxc_index", + "oxc_span", + "oxc_str", + "phf", + "serde", + "unicode-id-start", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "pathdiff" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "phf" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6" +dependencies = [ + "phf_macros", + "phf_shared", + "serde", +] + +[[package]] +name = "phf_generator" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb62e0959d5a1bebc965f4d15d9e2b7cea002b6b0f5ba8cde6cc26738467100" +dependencies = [ + "fastrand", + "phf_shared", +] + +[[package]] +name = "phf_macros" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fa8d0ca26d424d27630da600c6624696e7dec8bf7b3b492b383c5dc49e5e085" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "phf_shared" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "potential_utf" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" +dependencies = [ + "serde_core", + "writeable", + "zerovec", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "ref-cast" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustix" +version = "1.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "self_cell" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab42ca02749e120097e328d91d415325bdf43b1c72c4c8badf37375fe40a813" + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + +[[package]] +name = "seq-macro" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc" + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "serde_json" +version = "1.0.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" +dependencies = [ + "foldhash", + "indexmap", + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "simd-json" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ebe141eb4a23ecc4d5de93fa5b139ac65dc07c38037a2fe9a8fb7c9d36bd832" +dependencies = [ + "halfbrown", + "ref-cast", + "simdutf8", + "value-trait", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "siphasher" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.16.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" +dependencies = [ + "serde", +] + +[[package]] +name = "smawk" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8e2fb0f499abb4d162f2bedad68f5ef91a1682b5a03596ddb67efd37768d100" + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "synstructure" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom", + "once_cell", + "rustix", + "windows-sys", +] + +[[package]] +name = "textwrap" +version = "0.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ecfad6c3abc80a577f2b91c1e412ee57e7a060d430b553c1b0c940974ebcd49" +dependencies = [ + "icu_segmenter", + "smawk", + "unicode-width", +] + +[[package]] +name = "thiserror" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "thread_local" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "tinystr" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a" +dependencies = [ + "displaydoc", + "serde_core", + "zerovec", +] + +[[package]] +name = "tokio" +version = "1.54.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3" +dependencies = [ + "pin-project-lite", +] + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" +dependencies = [ + "sharded-slab", + "thread_local", + "tracing-core", +] + +[[package]] +name = "unicode-id-start" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0825d2e09dcae814a4273c1e1435979d414ede25b2ee235b1545da6682483765" + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "unicode-width" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557" + +[[package]] +name = "utf8_iter" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0" +dependencies = [ + "utf_types", +] + +[[package]] +name = "utf_types" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" + +[[package]] +name = "value-trait" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "545a3d7089f11f1741d12963c057adf9443fc24325110a6a6daf582e825fd51b" +dependencies = [ + "float-cmp", + "halfbrown", + "itoa", + "ryu", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.119", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "windows" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" +dependencies = [ + "windows-collections", + "windows-core", + "windows-future", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610" +dependencies = [ + "windows-core", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-future" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" +dependencies = [ + "windows-core", + "windows-link", + "windows-threading", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" +dependencies = [ + "windows-core", + "windows-link", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-threading" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" +dependencies = [ + "windows-link", +] + +[[package]] +name = "writeable" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" + +[[package]] +name = "yoke" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", + "synstructure", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "zerovec" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40" +dependencies = [ + "serde", + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.10", +] + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 000000000000..e6ca63fd5c5e --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,5 @@ +[workspace] +members = [ + "packages/compiler-cli/preprocessor/ng-analyze", +] +resolver = "3" diff --git a/MODULE.bazel b/MODULE.bazel index d8bbf44c230d..f2e195bbd63b 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -5,41 +5,48 @@ module( ) bazel_dep(name = "rules_pkg", version = "1.3.0") -bazel_dep(name = "rules_nodejs", version = "6.7.5") +bazel_dep(name = "rules_nodejs", version = "6.7.7") bazel_dep(name = "aspect_rules_ts", version = "3.10.1") -bazel_dep(name = "aspect_rules_js", version = "3.4.1") -bazel_dep(name = "aspect_rules_esbuild", version = "0.27.0") +bazel_dep(name = "aspect_rules_js", version = "3.6.0") +bazel_dep(name = "aspect_rules_esbuild", version = "0.27.1") bazel_dep(name = "aspect_rules_jasmine", version = "2.0.4") +single_version_override( + module_name = "aspect_rules_jasmine", + patch_strip = 1, + patches = ["//tools/bazel/patches:aspect_rules_jasmine.patch"], +) + bazel_dep(name = "aspect_rules_rollup", version = "2.0.1") bazel_dep(name = "bazel_skylib", version = "1.9.2") -bazel_dep(name = "bazel_lib", version = "3.7.1") -bazel_dep(name = "tar.bzl", version = "0.10.8") -bazel_dep(name = "yq.bzl", version = "0.3.6") +bazel_dep(name = "bazel_lib", version = "3.8.0") +bazel_dep(name = "platforms", version = "1.1.0") +bazel_dep(name = "tar.bzl", version = "0.10.9") +bazel_dep(name = "yq.bzl", version = "0.4.0") bazel_dep(name = "rules_angular") git_override( module_name = "rules_angular", - commit = "ed98d720477b10c13f3d0ccee72f929c777f6ccd", + commit = "e5cb4c388495711d194f2d686cb0f0f69fd3bd54", remote = "https://github.com/angular/rules_angular.git", ) bazel_dep(name = "devinfra") git_override( module_name = "devinfra", - commit = "fa43fd2864c3bec677cd47f4e095370850cdf8bc", + commit = "4915333b8fd3bb24085df356cde085edf2d7db89", remote = "https://github.com/angular/dev-infra.git", ) bazel_dep(name = "rules_sass") git_override( module_name = "rules_sass", - commit = "8ae8c820345a93c29e4f220b4d6f459f30243683", + commit = "53391fc5b8d1e1c5506801b9a54f4a298665578e", remote = "https://github.com/angular/rules_sass.git", ) bazel_dep(name = "rules_browsers") git_override( module_name = "rules_browsers", - commit = "c6cb5590120af8ae8125343f9fc522b7b66eb0e8", + commit = "6c0b598bef709b8d3ec603c733a1b18d073b191b", remote = "https://github.com/angular/rules_browsers.git", ) @@ -49,15 +56,15 @@ use_repo(yq, "yq_toolchains") node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") node.toolchain( node_repositories = { - "24.19.0-darwin_arm64": ("node-v24.19.0-darwin-arm64.tar.gz", "node-v24.19.0-darwin-arm64", "8294b7aa9b03997481c06babf1e8b270c859358f27da57a11509afe537ac381d"), - "24.19.0-darwin_amd64": ("node-v24.19.0-darwin-x64.tar.gz", "node-v24.19.0-darwin-x64", "d1b5e999db158c62fe8f7267a4476b035d8bd93b1a605bac24a3f0dd166e3316"), - "24.19.0-linux_arm64": ("node-v24.19.0-linux-arm64.tar.xz", "node-v24.19.0-linux-arm64", "01443c1e1a29e531ccad5a46fefa6df490d2189c49f7955904aecdbb0fe86fdc"), - "24.19.0-linux_ppc64le": ("node-v24.19.0-linux-ppc64le.tar.xz", "node-v24.19.0-linux-ppc64le", "c510c6ce12f07010f771e6edb22a3fe23f4f2e6f40b1ffd4941aed0646a0d8b3"), - "24.19.0-linux_s390x": ("node-v24.19.0-linux-s390x.tar.xz", "node-v24.19.0-linux-s390x", "a4792e65962ffa0af42627aacf1122a60c3c88dbf4e4184f06820d66f9da8ba4"), - "24.19.0-linux_amd64": ("node-v24.19.0-linux-x64.tar.xz", "node-v24.19.0-linux-x64", "14b342e71204f811bde6153be8e04b62aef63c236fef92b55f9c83154b409647"), - "24.19.0-windows_amd64": ("node-v24.19.0-win-x64.zip", "node-v24.19.0-win-x64", "57f71ab3652e797d84acddc79c81cc9ff1c6ddb2a1974cdb83f00fee9bff4c73"), + "24.22.3-darwin_arm64": ("node-v24.22.3-darwin-arm64.tar.gz", "node-v24.22.3-darwin-arm64", "ff6e17d4874b76d272212b908cc020d6e815fba5a6c7eaaa06add725840307fd"), + "24.22.3-darwin_amd64": ("node-v24.22.3-darwin-x64.tar.gz", "node-v24.22.3-darwin-x64", "977614af0504c81045e7fd85596dbca0e5f951b96681516dadafedcca8c447f7"), + "24.22.3-linux_arm64": ("node-v24.22.3-linux-arm64.tar.xz", "node-v24.22.3-linux-arm64", "6e51a2ada00f0011cc266f65d98922b403d7ad88f809ca2aa615a5fe1ce6e86c"), + "24.22.3-linux_ppc64le": ("node-v24.22.3-linux-ppc64le.tar.xz", "node-v24.22.3-linux-ppc64le", "c4b446699171f64763304a0bc6fb972b0fb4acb1de5358e52b4c52a95883593a"), + "24.22.3-linux_s390x": ("node-v24.22.3-linux-s390x.tar.xz", "node-v24.22.3-linux-s390x", "b5dbeb563ffb81946478fd765ae92efc21117e410e4e9b7d966bf59b00cee55d"), + "24.22.3-linux_amd64": ("node-v24.22.3-linux-x64.tar.xz", "node-v24.22.3-linux-x64", "4f2b175a6d53a5c617a80dba2676238a0688cef28c6da4eba35c7d844e66fcfb"), + "24.22.3-windows_amd64": ("node-v24.22.3-win-x64.zip", "node-v24.22.3-win-x64", "e612af99f626ab415ea225af6bce5c971feb448cb5cae250bb1c3fa50c5f7d9f"), }, - node_version = "24.19.0", + node_version = "24.22.3", ) use_repo(node, "nodejs_toolchains") use_repo(node, "nodejs_darwin_amd64") @@ -71,8 +78,8 @@ use_repo(node, "nodejs_windows_amd64") pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm") pnpm.pnpm( name = "pnpm", - pnpm_version = "11.24.0", - pnpm_version_integrity = "sha512-vSfjRel23LC+C3oSKCF7BJqBfiGx81XJDb59xGZxiVqLwebQbCRVRQXqk+oLRfSJon7Bv7yN5qlln8oPFvoAAA==", + pnpm_version = "12.18.0", + pnpm_version_integrity = "sha512-nXiC1dyCFH7PxOBiqjSDTgrQKWcQoYN6ERWuASEn02txCeMhrBWYod0KZVl2gbHpmRfhLtDXSerpEYeUM2O+sw==", ) use_repo(pnpm, "pnpm") @@ -95,6 +102,7 @@ npm.npm_translate_lock( "//packages/compiler:package.json", "//packages/compiler-cli:package.json", "//packages/compiler-cli/linker/babel/test:package.json", + "//packages/compiler-cli/preprocessor/language-service:package.json", "//packages/core:package.json", "//packages/core/test/bundling:package.json", "//packages/elements:package.json", @@ -163,3 +171,25 @@ cldr_xml_data( "https://github.com/unicode-org/cldr/releases/download/release-%s/core.zip" % CLDR_VERSION: "d5ee2abac64158c04884a722f8ef4830ea22b6c74aac20185be2838db8eda788", }, ) + +bazel_dep(name = "rules_rust", version = "0.75.0") +bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.75.0") + +rust = use_extension("@rules_rust//rust:extensions.bzl", "rust") +rust.toolchain( + edition = "2024", + extra_target_triples = ["wasm32-unknown-unknown"], +) +use_repo(rust, "rust_toolchains") + +register_toolchains("@rust_toolchains//:all") + +register_toolchains("@rules_rust_wasm_bindgen//:default_wasm_bindgen_toolchain") + +crate = use_extension("@rules_rust//crate_universe:extensions.bzl", "crate") +crate.from_cargo( + name = "crates", + cargo_lockfile = "//:Cargo.lock", + manifests = ["//:Cargo.toml"], +) +use_repo(crate, "crates") diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index ebc0dde93cd3..8fc8389a13c0 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -1,5 +1,5 @@ { - "lockFileVersion": 24, + "lockFileVersion": 28, "registryFileHashes": { "https://bcr.bazel.build/bazel_registry.json": "8a28e4aff06ee60aed2a8c281907fb8bcbf3b753c91fb5a5c57da3215d5b3497", "https://bcr.bazel.build/modules/abseil-cpp/20210324.2/MODULE.bazel": "7cd0312e064fde87c8d1cd79ba06c876bd23630c83466e9500321be55c96ace2", @@ -10,6 +10,9 @@ "https://bcr.bazel.build/modules/abseil-cpp/20230802.1/MODULE.bazel": "fa92e2eb41a04df73cdabeec37107316f7e5272650f81d6cc096418fe647b915", "https://bcr.bazel.build/modules/abseil-cpp/20240116.1/MODULE.bazel": "37bcdb4440fbb61df6a1c296ae01b327f19e9bb521f9b8e26ec854b6f97309ed", "https://bcr.bazel.build/modules/abseil-cpp/20240116.1/source.json": "9be551b8d4e3ef76875c0d744b5d6a504a27e3ae67bc6b28f46415fd2d2957da", + "https://bcr.bazel.build/modules/apple_support/1.23.1/MODULE.bazel": "53763fed456a968cf919b3240427cf3a9d5481ec5466abc9d5dc51bc70087442", + "https://bcr.bazel.build/modules/apple_support/1.24.1/MODULE.bazel": "f46e8ddad60aef170ee92b2f3d00ef66c147ceafea68b6877cb45bd91737f5f8", + "https://bcr.bazel.build/modules/apple_support/1.24.1/source.json": "cf725267cbacc5f028ef13bb77e7f2c2e0066923a4dab1025e4a0511b1ed258a", "https://bcr.bazel.build/modules/aspect_bazel_lib/2.0.0/MODULE.bazel": "e118477db5c49419a88d78ebc7a2c2cea9d49600fe0f490c1903324a2c16ecd9", "https://bcr.bazel.build/modules/aspect_bazel_lib/2.11.0/MODULE.bazel": "cb1ba9f9999ed0bc08600c221f532c1ddd8d217686b32ba7d45b0713b5131452", "https://bcr.bazel.build/modules/aspect_bazel_lib/2.14.0/MODULE.bazel": "2b31ffcc9bdc8295b2167e07a757dbbc9ac8906e7028e5170a3708cecaac119f", @@ -19,17 +22,16 @@ "https://bcr.bazel.build/modules/aspect_bazel_lib/2.22.5/source.json": "ac2c3213df8f985785f1d0aeb7f0f73d5324e6e67d593d9b9470fb74a25d4a9b", "https://bcr.bazel.build/modules/aspect_bazel_lib/2.7.7/MODULE.bazel": "491f8681205e31bb57892d67442ce448cda4f472a8e6b3dc062865e29a64f89c", "https://bcr.bazel.build/modules/aspect_bazel_lib/2.8.1/MODULE.bazel": "812d2dd42f65dca362152101fbec418029cc8fd34cbad1a2fde905383d705838", - "https://bcr.bazel.build/modules/aspect_rules_esbuild/0.27.0/MODULE.bazel": "877dafc0b925f8af19e8bc2abed04a757bb565c57c1866e8851ac4d15ed5e6d2", - "https://bcr.bazel.build/modules/aspect_rules_esbuild/0.27.0/source.json": "21f8738b3e62310ef43b7cef4284e1bafd69bd8e4e50251b71b20bbfed4372d8", + "https://bcr.bazel.build/modules/aspect_rules_esbuild/0.27.1/MODULE.bazel": "99c3978959edd9892e4b513831b218a13cc84a0215bfe1b972a1e3a771c4670e", + "https://bcr.bazel.build/modules/aspect_rules_esbuild/0.27.1/source.json": "20f515102cbcd0835d90bb3976b193eb58c2a0c534093c85cfd3bf6f06dba748", "https://bcr.bazel.build/modules/aspect_rules_jasmine/2.0.4/MODULE.bazel": "fbb819eb8b7e5d7f67fdd38f7cecb413e287594cd666ce192c72c8828527775a", "https://bcr.bazel.build/modules/aspect_rules_jasmine/2.0.4/source.json": "81ffb708333cd98ec3c0b4cc004f4d5cf92a16914b5196a2892c45141bba7cff", "https://bcr.bazel.build/modules/aspect_rules_js/2.0.0/MODULE.bazel": "b45b507574aa60a92796e3e13c195cd5744b3b8aff516a9c0cb5ae6a048161c5", "https://bcr.bazel.build/modules/aspect_rules_js/3.4.0/MODULE.bazel": "88844ac411e1961f4574a92f3c5be5b20d1c6997778c6b88316c5c3b4b60e284", - "https://bcr.bazel.build/modules/aspect_rules_js/3.4.1/MODULE.bazel": "e46853c134b48bc84c9bb5c4a4c8ae792dcfd5277acac9d90c444d65fa43dd19", - "https://bcr.bazel.build/modules/aspect_rules_js/3.4.1/source.json": "b11f550b53d451800ebd0b4f38a048aea33fbfbd78fb5c77dca847f6b9b47a3b", + "https://bcr.bazel.build/modules/aspect_rules_js/3.6.0/MODULE.bazel": "f7cd94cfa20f6a6dcf1d19d025b97a2a0298013296e4b3d3204c28ee46d0fcfa", + "https://bcr.bazel.build/modules/aspect_rules_js/3.6.0/source.json": "8d66ed9a83cc6ce80d85a9d8c95ce3fc355b2d359f74af8193efcdce35334a17", "https://bcr.bazel.build/modules/aspect_rules_rollup/2.0.1/MODULE.bazel": "296e3a053658c2af989ba9bd62a205e6d1fa84bdd6dd5249196546e6b84770ec", "https://bcr.bazel.build/modules/aspect_rules_rollup/2.0.1/source.json": "2fe8ac1ccb4de74bf884761e070010280b272d94e3997205b361b91c75409726", - "https://bcr.bazel.build/modules/aspect_rules_ts/3.10.0/MODULE.bazel": "69d06f57f30f4a2b6e53471584a9559d3b7cd7f891e1699876991230c7cabb95", "https://bcr.bazel.build/modules/aspect_rules_ts/3.10.1/MODULE.bazel": "035205a7834b0ed9724ed3c4790e12d1c779ef2520d72496ab234e6307715e6c", "https://bcr.bazel.build/modules/aspect_rules_ts/3.10.1/source.json": "d42b6560206adb5524caad2abc40ae0b5b34478dd38184a9f6ea4a5fed848cd6", "https://bcr.bazel.build/modules/aspect_tools_telemetry/0.2.8/MODULE.bazel": "aa975a83e72bcaac62ee61ab12b788ea324a1d05c4aab28aadb202f647881679", @@ -44,20 +46,24 @@ "https://bcr.bazel.build/modules/bazel_features/1.18.0/MODULE.bazel": "1be0ae2557ab3a72a57aeb31b29be347bcdc5d2b1eb1e70f39e3851a7e97041a", "https://bcr.bazel.build/modules/bazel_features/1.19.0/MODULE.bazel": "59adcdf28230d220f0067b1f435b8537dd033bfff8db21335ef9217919c7fb58", "https://bcr.bazel.build/modules/bazel_features/1.21.0/MODULE.bazel": "675642261665d8eea09989aa3b8afb5c37627f1be178382c320d1b46afba5e3b", + "https://bcr.bazel.build/modules/bazel_features/1.27.0/MODULE.bazel": "621eeee06c4458a9121d1f104efb80f39d34deff4984e778359c60eaf1a8cb65", "https://bcr.bazel.build/modules/bazel_features/1.28.0/MODULE.bazel": "4b4200e6cbf8fa335b2c3f43e1d6ef3e240319c33d43d60cc0fbd4b87ece299d", "https://bcr.bazel.build/modules/bazel_features/1.30.0/MODULE.bazel": "a14b62d05969a293b80257e72e597c2da7f717e1e69fa8b339703ed6731bec87", + "https://bcr.bazel.build/modules/bazel_features/1.32.0/MODULE.bazel": "095d67022a58cb20f7e20e1aefecfa65257a222c18a938e2914fd257b5f1ccdc", "https://bcr.bazel.build/modules/bazel_features/1.34.0/MODULE.bazel": "e8475ad7c8965542e0c7aac8af68eb48c4af904be3d614b6aa6274c092c2ea1e", "https://bcr.bazel.build/modules/bazel_features/1.39.0/MODULE.bazel": "28739425c1fc283c91931619749c832b555e60bcd1010b40d8441ce0a5cf726d", "https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7", "https://bcr.bazel.build/modules/bazel_features/1.41.0/MODULE.bazel": "6e0f87fafed801273c371d41e22a15a6f8abf83fdd7f87d5e44ad317b94433d0", - "https://bcr.bazel.build/modules/bazel_features/1.41.0/source.json": "8fd525b31b0883c47e0593443cdd10219b94a7556b3195fc02d75c86c66cfe30", + "https://bcr.bazel.build/modules/bazel_features/1.50.0/MODULE.bazel": "2083ef9c7a469f520890483ccf8e0189d6e71e2117e7752e15e6554433d5ae3e", + "https://bcr.bazel.build/modules/bazel_features/1.50.0/source.json": "e0ee3debde2789ff56e4452e612d126925ba9ab64d4bde79c67f099d2902df9b", "https://bcr.bazel.build/modules/bazel_features/1.9.0/MODULE.bazel": "885151d58d90d8d9c811eb75e3288c11f850e1d6b481a8c9f766adee4712358b", "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel": "8f679097876a9b609ad1f60249c49d68bfab783dd9be012faf9d82547b14815a", "https://bcr.bazel.build/modules/bazel_lib/3.0.0-rc.0/MODULE.bazel": "d6e00979a98ac14ada5e31c8794708b41434d461e7e7ca39b59b765e6d233b18", "https://bcr.bazel.build/modules/bazel_lib/3.0.0/MODULE.bazel": "22b70b80ac89ad3f3772526cd9feee2fa412c2b01933fea7ed13238a448d370d", + "https://bcr.bazel.build/modules/bazel_lib/3.2.0/MODULE.bazel": "39b50d94b9be6bda507862254e20c263f9b950e3160112348d10a938be9ce2c2", "https://bcr.bazel.build/modules/bazel_lib/3.7.0/MODULE.bazel": "d7c10ed67f0f7f1fda179db8f86c22642581bd614882e1a50545fbe069525173", - "https://bcr.bazel.build/modules/bazel_lib/3.7.1/MODULE.bazel": "b6fd9b2f8fab956420c11836f416efac4a70e20804ae384ebe62773a4ed70046", - "https://bcr.bazel.build/modules/bazel_lib/3.7.1/source.json": "635fdaa28b50c04febc5e60ef51bc913d3bc87bfbaac7045449273c2341648cb", + "https://bcr.bazel.build/modules/bazel_lib/3.8.0/MODULE.bazel": "ac892a5b9b1d6b755c915f1e82663cb71ebffb4183d57f95c6507fafc2cac53a", + "https://bcr.bazel.build/modules/bazel_lib/3.8.0/source.json": "45eb621b9efa8fbc4c1c9f2ea484fc0e330558a1d8e120b063f7463363adc854", "https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8", "https://bcr.bazel.build/modules/bazel_skylib/1.1.1/MODULE.bazel": "1add3e7d93ff2e6998f9e118022c84d163917d912f5afafb3058e3d2f1545b5e", "https://bcr.bazel.build/modules/bazel_skylib/1.2.0/MODULE.bazel": "44fe84260e454ed94ad326352a698422dbe372b21a1ac9f3eab76eb531223686", @@ -84,10 +90,12 @@ "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/MODULE.bazel": "22c31a561553727960057361aa33bf20fb2e98584bc4fec007906e27053f80c6", "https://bcr.bazel.build/modules/googletest/1.14.0.bcr.1/source.json": "41e9e129f80d8c8bf103a7acc337b76e54fad1214ac0a7084bf24f4cd924b8b4", "https://bcr.bazel.build/modules/googletest/1.14.0/MODULE.bazel": "cfbcbf3e6eac06ef9d85900f64424708cc08687d1b527f0ef65aa7517af8118f", + "https://bcr.bazel.build/modules/hermetic_launcher/0.0.17/MODULE.bazel": "afa67883ae04001c93578f80c39e5ec9231ae670978bc380778baf66e1936ad5", + "https://bcr.bazel.build/modules/hermetic_launcher/0.0.17/source.json": "46ee01ccb275e46f59a3c070f91be52eb113405efe577a99365dd69f168713ef", "https://bcr.bazel.build/modules/jq.bzl/0.1.0/MODULE.bazel": "2ce69b1af49952cd4121a9c3055faa679e748ce774c7f1fda9657f936cae902f", "https://bcr.bazel.build/modules/jq.bzl/0.4.0/MODULE.bazel": "a7b39b37589f2b0dad53fd6c1ccaabbdb290330caa920d7ef3e6aad068cd4ab2", - "https://bcr.bazel.build/modules/jq.bzl/0.6.1/MODULE.bazel": "f30c46e0a08a9f7566a8bf60a43d48abea960cd7f57b315b01e2762f1537eb52", - "https://bcr.bazel.build/modules/jq.bzl/0.6.1/source.json": "9ca9e2f90baa6a5bb0a49626ed9528554ec83165adf47b39792673ecc7feda22", + "https://bcr.bazel.build/modules/jq.bzl/0.7.2/MODULE.bazel": "565fe7719b172a4d7dddd2ebbbe9f5f3fb0b45e88bcbb70ae850fd586e564f47", + "https://bcr.bazel.build/modules/jq.bzl/0.7.2/source.json": "fd7fb0afe4813ab3581ca7b735ce4871b778530823b744a7986b53d8a9b52a3b", "https://bcr.bazel.build/modules/jsoncpp/1.9.5/MODULE.bazel": "31271aedc59e815656f5736f282bb7509a97c7ecb43e927ac1a37966e0578075", "https://bcr.bazel.build/modules/jsoncpp/1.9.5/source.json": "4108ee5085dd2885a341c7fab149429db457b3169b86eb081fa245eadf69169d", "https://bcr.bazel.build/modules/libpfm/4.11.0/MODULE.bazel": "45061ff025b301940f1e30d2c16bea596c25b176c8b6b3087e92615adbd52902", @@ -101,6 +109,7 @@ "https://bcr.bazel.build/modules/platforms/0.0.6/MODULE.bazel": "ad6eeef431dc52aefd2d77ed20a4b353f8ebf0f4ecdd26a807d2da5aa8cd0615", "https://bcr.bazel.build/modules/platforms/0.0.7/MODULE.bazel": "72fd4a0ede9ee5c021f6a8dd92b503e089f46c227ba2813ff183b71616034814", "https://bcr.bazel.build/modules/platforms/0.0.8/MODULE.bazel": "9f142c03e348f6d263719f5074b21ef3adf0b139ee4c5133e2aa35664da9eb2d", + "https://bcr.bazel.build/modules/platforms/0.0.9/MODULE.bazel": "4a87a60c927b56ddd67db50c89acaa62f4ce2a1d2149ccb63ffd871d5ce29ebc", "https://bcr.bazel.build/modules/platforms/1.0.0/MODULE.bazel": "f05feb42b48f1b3c225e4ccf351f367be0371411a803198ec34a389fb22aa580", "https://bcr.bazel.build/modules/platforms/1.1.0/MODULE.bazel": "1c0c09f5bdcf4b3f924720d2478a3711cb39f4977019ca5988685e5b7e18b3d2", "https://bcr.bazel.build/modules/platforms/1.1.0/source.json": "fcf351c47596c939140ab0d333dfdd08ed1ea6ce33c2fe70c12493a301cf1344", @@ -134,6 +143,8 @@ "https://bcr.bazel.build/modules/rules_cc/0.2.16/MODULE.bazel": "9242fa89f950c6ef7702801ab53922e99c69b02310c39fb6e62b2bd30df2a1d4", "https://bcr.bazel.build/modules/rules_cc/0.2.16/source.json": "d03d5cde49376d87e14ec14b666c56075e5e3926930327fd5d0484a1ff2ac1cc", "https://bcr.bazel.build/modules/rules_cc/0.2.4/MODULE.bazel": "1ff1223dfd24f3ecf8f028446d4a27608aa43c3f41e346d22838a4223980b8cc", + "https://bcr.bazel.build/modules/rules_cc/0.2.8/MODULE.bazel": "f1df20f0bf22c28192a794f29b501ee2018fa37a3862a1a2132ae2940a23a642", + "https://bcr.bazel.build/modules/rules_cc/0.2.9/MODULE.bazel": "34263f1dca62ea664265438cef714d7db124c03e1ed55ebb4f1dc860164308d1", "https://bcr.bazel.build/modules/rules_foreign_cc/0.9.0/MODULE.bazel": "c9e8c682bf75b0e7c704166d79b599f93b72cfca5ad7477df596947891feeef6", "https://bcr.bazel.build/modules/rules_fuzzing/0.5.2/MODULE.bazel": "40c97d1144356f52905566c55811f13b299453a14ac7769dfba2ac38192337a8", "https://bcr.bazel.build/modules/rules_fuzzing/0.5.2/source.json": "c8b1e2c717646f1702290959a3302a178fb639d987ab61d548105019f11e527e", @@ -169,8 +180,8 @@ "https://bcr.bazel.build/modules/rules_nodejs/6.2.0/MODULE.bazel": "ec27907f55eb34705adb4e8257952162a2d4c3ed0f0b3b4c3c1aad1fac7be35e", "https://bcr.bazel.build/modules/rules_nodejs/6.5.0/MODULE.bazel": "546d0cf79f36f9f6e080816045f97234b071c205f4542e3351bd4424282a8810", "https://bcr.bazel.build/modules/rules_nodejs/6.7.3/MODULE.bazel": "c22a48b2a0dbf05a9dc5f83837bbc24c226c1f6e618de3c3a610044c9f336056", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.5/MODULE.bazel": "97e6794043821d23c013baa4a50fd1c599f2e6ae92b06e2c5f1cd7074fd83e7c", - "https://bcr.bazel.build/modules/rules_nodejs/6.7.5/source.json": "d60ee5a76258b1c8f99545ed24172b44d43ba64ca1a2dfc04371ef203df19fdf", + "https://bcr.bazel.build/modules/rules_nodejs/6.7.7/MODULE.bazel": "e80c95eebba3e38fa28ea0553ec580e4bffbbe8d0e8fa892457fa0e6b616f3d8", + "https://bcr.bazel.build/modules/rules_nodejs/6.7.7/source.json": "60081c2448d70db3c5c0e75f55c0a55a22b2144646c21977c46c4986dacacdb6", "https://bcr.bazel.build/modules/rules_pkg/0.7.0/MODULE.bazel": "df99f03fc7934a4737122518bb87e667e62d780b610910f0447665a7e2be62dc", "https://bcr.bazel.build/modules/rules_pkg/1.0.1/MODULE.bazel": "5b1df97dbc29623bccdf2b0dcd0f5cb08e2f2c9050aab1092fd39a41e82686ff", "https://bcr.bazel.build/modules/rules_pkg/1.3.0/MODULE.bazel": "ae0bdefbacc990c91f843206c90cf0f4be620639a5bf22119043599ba86d51a3", @@ -190,9 +201,14 @@ "https://bcr.bazel.build/modules/rules_python/0.40.0/MODULE.bazel": "9d1a3cd88ed7d8e39583d9ffe56ae8a244f67783ae89b60caafc9f5cf318ada7", "https://bcr.bazel.build/modules/rules_python/1.7.0/MODULE.bazel": "d01f995ecd137abf30238ad9ce97f8fc3ac57289c8b24bd0bf53324d937a14f8", "https://bcr.bazel.build/modules/rules_python/1.7.0/source.json": "028a084b65dcf8f4dc4f82f8778dbe65df133f234b316828a82e060d81bdce32", + "https://bcr.bazel.build/modules/rules_rust/0.75.0/MODULE.bazel": "77452ad75faf65400abc8d0956033d5732c68d39478c9ac064288d3f484f6e34", + "https://bcr.bazel.build/modules/rules_rust/0.75.0/source.json": "6205a2156646606f99828f217931f4cd5c68f3ada35916dab6601020358bfc63", + "https://bcr.bazel.build/modules/rules_rust_wasm_bindgen/0.75.0/MODULE.bazel": "2da21af41a035b2c603b2b8fe768d63746df1bae69fadd2d762c0436cd601ac8", + "https://bcr.bazel.build/modules/rules_rust_wasm_bindgen/0.75.0/source.json": "f0ce711d9162d4fda731e58d2939358d70bc35ac641c9890f998e6852842cec2", "https://bcr.bazel.build/modules/rules_shell/0.2.0/MODULE.bazel": "fda8a652ab3c7d8fee214de05e7a9916d8b28082234e8d2c0094505c5268ed3c", "https://bcr.bazel.build/modules/rules_shell/0.4.1/MODULE.bazel": "00e501db01bbf4e3e1dd1595959092c2fadf2087b2852d3f553b5370f5633592", - "https://bcr.bazel.build/modules/rules_shell/0.4.1/source.json": "4757bd277fe1567763991c4425b483477bb82e35e777a56fd846eb5cceda324a", + "https://bcr.bazel.build/modules/rules_shell/0.6.1/MODULE.bazel": "72e76b0eea4e81611ef5452aa82b3da34caca0c8b7b5c0c9584338aa93bae26b", + "https://bcr.bazel.build/modules/rules_shell/0.6.1/source.json": "20ec05cd5e592055e214b2da8ccb283c7f2a421ea0dc2acbf1aa792e11c03d0c", "https://bcr.bazel.build/modules/stardoc/0.5.1/MODULE.bazel": "1a05d92974d0c122f5ccf09291442580317cdd859f07a8655f1db9a60374f9f8", "https://bcr.bazel.build/modules/stardoc/0.5.3/MODULE.bazel": "c7f6948dae6999bf0db32c1858ae345f112cacf98f174c7a8bb707e41b974f1c", "https://bcr.bazel.build/modules/stardoc/0.5.4/MODULE.bazel": "6569966df04610b8520957cb8e97cf2e9faac2c0309657c537ab51c16c18a2a4", @@ -203,15 +219,15 @@ "https://bcr.bazel.build/modules/stardoc/0.7.2/MODULE.bazel": "fc152419aa2ea0f51c29583fab1e8c99ddefd5b3778421845606ee628629e0e5", "https://bcr.bazel.build/modules/stardoc/0.7.2/source.json": "58b029e5e901d6802967754adf0a9056747e8176f017cfe3607c0851f4d42216", "https://bcr.bazel.build/modules/tar.bzl/0.10.4/MODULE.bazel": "e8f9ff79199e8d9eaad7f1b0a77ad74b30bb82d794b87d8ca942bead5de83ae9", - "https://bcr.bazel.build/modules/tar.bzl/0.10.8/MODULE.bazel": "443884cabe241f640cfef256b1de2ccb116752895532900a4be9500e1124323f", - "https://bcr.bazel.build/modules/tar.bzl/0.10.8/source.json": "4173be64b38e471d92d2eb139a6496311de6de75e710f04edce78c43122c5419", + "https://bcr.bazel.build/modules/tar.bzl/0.10.9/MODULE.bazel": "4636f5f6a7c34d3d0653634ed95a34560426d548c5301c6c5924c885ef737b46", + "https://bcr.bazel.build/modules/tar.bzl/0.10.9/source.json": "30a5cf0a8281adce53ab1c5a4291e88b2c161e2df1feb6cba4ee50556f1748d7", "https://bcr.bazel.build/modules/tar.bzl/0.2.1/MODULE.bazel": "52d1c00a80a8cc67acbd01649e83d8dd6a9dc426a6c0b754a04fe8c219c76468", "https://bcr.bazel.build/modules/tar.bzl/0.5.1/MODULE.bazel": "7c2eb3dcfc53b0f3d6f9acdfd911ca803eaf92aadf54f8ca6e4c1f3aee288351", "https://bcr.bazel.build/modules/upb/0.0.0-20220923-a547704/MODULE.bazel": "7298990c00040a0e2f121f6c32544bab27d4452f80d9ce51349b1a28f3005c43", "https://bcr.bazel.build/modules/yq.bzl/0.1.1/MODULE.bazel": "9039681f9bcb8958ee2c87ffc74bdafba9f4369096a2b5634b88abc0eaefa072", "https://bcr.bazel.build/modules/yq.bzl/0.3.4/MODULE.bazel": "d3a270662f5d766cd7229732d65a5a5bc485240c3007343dd279edfb60c9ae27", - "https://bcr.bazel.build/modules/yq.bzl/0.3.6/MODULE.bazel": "985c2a0cb4ad9994bb0e33cc7fae931c91105eeefe3faa355b8f4c258d0607c0", - "https://bcr.bazel.build/modules/yq.bzl/0.3.6/source.json": "678aaf6e291164f3cd761bb3e872e8a151248f413dbb63c5524a50b82a5bc890", + "https://bcr.bazel.build/modules/yq.bzl/0.4.0/MODULE.bazel": "1e4b142e391b62c95eb637fc0e944c17f3ed5276cdc9d7033df72a2f96a2a457", + "https://bcr.bazel.build/modules/yq.bzl/0.4.0/source.json": "e5a3b94fe7ab720818ac2d8150cb19b009daf48c69a72eaab9a4852efb75331d", "https://bcr.bazel.build/modules/zlib/1.2.11/MODULE.bazel": "07b389abc85fdbca459b69e2ec656ae5622873af3f845e1c9d80fe179f3effa0", "https://bcr.bazel.build/modules/zlib/1.2.12/MODULE.bazel": "3b1a8834ada2a883674be8cbd36ede1b6ec481477ada359cd2d3ddc562340b27", "https://bcr.bazel.build/modules/zlib/1.3.1.bcr.5/MODULE.bazel": "eec517b5bbe5492629466e11dae908d043364302283de25581e3eb944326c4ca", @@ -222,11 +238,30 @@ "moduleExtensions": { "@@aspect_rules_esbuild+//esbuild:extensions.bzl%esbuild": { "general": { - "bzlTransitiveDigest": "u/j0r7+d7j4C3v0tKCZICN2uOsUToxLiwG+L1mENvsA=", - "usagesDigest": "LZ71sshnfqI8R/HeWwBTwawxIa7KnitayBl2hYrqPo4=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, + "bzlTransitiveDigest": "Mqgl1HezeyvsAl6I8KQ+PZ877KXqBvVLEj2zLdHQ6Ew=", + "usagesDigest": "ZqBbSnzAi8ZyBL3PXnAGtDMIdC2pcuieJWMY3/94lvA=", + "recordedInputs": [ + "REPO_MAPPING:aspect_rules_esbuild+,aspect_rules_js aspect_rules_js+", + "REPO_MAPPING:aspect_rules_esbuild+,aspect_tools_telemetry_report aspect_tools_telemetry++telemetry+aspect_tools_telemetry_report", + "REPO_MAPPING:aspect_rules_esbuild+,bazel_skylib bazel_skylib+", + "REPO_MAPPING:aspect_rules_js+,aspect_rules_js aspect_rules_js+", + "REPO_MAPPING:aspect_rules_js+,bazel_features bazel_features+", + "REPO_MAPPING:aspect_rules_js+,bazel_lib bazel_lib+", + "REPO_MAPPING:aspect_rules_js+,bazel_skylib bazel_skylib+", + "REPO_MAPPING:aspect_rules_js+,bazel_tools bazel_tools", + "REPO_MAPPING:aspect_rules_js+,hermetic_launcher hermetic_launcher+", + "REPO_MAPPING:aspect_rules_js+,protobuf protobuf+", + "REPO_MAPPING:aspect_rules_js+,tar.bzl tar.bzl+", + "REPO_MAPPING:bazel_features+,bazel_features_globals bazel_features++version_extension+bazel_features_globals", + "REPO_MAPPING:bazel_features+,bazel_features_version bazel_features++version_extension+bazel_features_version", + "REPO_MAPPING:bazel_lib+,bazel_lib bazel_lib+", + "REPO_MAPPING:bazel_lib+,bazel_skylib bazel_skylib+", + "REPO_MAPPING:bazel_lib+,bazel_tools bazel_tools", + "REPO_MAPPING:protobuf+,proto_bazel_features bazel_features+", + "REPO_MAPPING:tar.bzl+,bazel_lib bazel_lib+", + "REPO_MAPPING:tar.bzl+,bazel_skylib bazel_skylib+", + "REPO_MAPPING:tar.bzl+,tar.bzl tar.bzl+" + ], "generatedRepoSpecs": { "esbuild_darwin-x64": { "repoRuleId": "@@aspect_rules_esbuild+//esbuild:repositories.bzl%esbuild_repositories", @@ -330,162 +365,46 @@ "exclude_package_contents_presets": [] } } - }, - "recordedRepoMappingEntries": [ - [ - "aspect_rules_esbuild+", - "aspect_rules_js", - "aspect_rules_js+" - ], - [ - "aspect_rules_esbuild+", - "aspect_tools_telemetry_report", - "aspect_tools_telemetry++telemetry+aspect_tools_telemetry_report" - ], - [ - "aspect_rules_esbuild+", - "bazel_skylib", - "bazel_skylib+" - ], - [ - "aspect_rules_js+", - "aspect_rules_js", - "aspect_rules_js+" - ], - [ - "aspect_rules_js+", - "aspect_tools_telemetry_report", - "aspect_tools_telemetry++telemetry+aspect_tools_telemetry_report" - ], - [ - "aspect_rules_js+", - "bazel_features", - "bazel_features+" - ], - [ - "aspect_rules_js+", - "bazel_lib", - "bazel_lib+" - ], - [ - "aspect_rules_js+", - "bazel_skylib", - "bazel_skylib+" - ], - [ - "aspect_rules_js+", - "bazel_tools", - "bazel_tools" - ], - [ - "aspect_rules_js+", - "protobuf", - "protobuf+" - ], - [ - "aspect_rules_js+", - "tar.bzl", - "tar.bzl+" - ], - [ - "bazel_features+", - "bazel_features_globals", - "bazel_features++version_extension+bazel_features_globals" - ], - [ - "bazel_features+", - "bazel_features_version", - "bazel_features++version_extension+bazel_features_version" - ], - [ - "bazel_lib+", - "bazel_lib", - "bazel_lib+" - ], - [ - "bazel_lib+", - "bazel_skylib", - "bazel_skylib+" - ], - [ - "bazel_lib+", - "bazel_tools", - "bazel_tools" - ], - [ - "protobuf+", - "proto_bazel_features", - "bazel_features+" - ], - [ - "tar.bzl+", - "bazel_lib", - "bazel_lib+" - ], - [ - "tar.bzl+", - "bazel_skylib", - "bazel_skylib+" - ], - [ - "tar.bzl+", - "tar.bzl", - "tar.bzl+" - ] - ] + } } }, "@@aspect_tools_telemetry+//:extension.bzl%telemetry": { "general": { - "bzlTransitiveDigest": "zFgbaCUuPzH6bIE7CBHBVCqjWSJ78/WNXisdzXaKSnU=", - "usagesDigest": "Phst1qcPvuJw9q9yNNi5469cS42E8W05JrrOvyWy67Y=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": { - "ASPECT_TOOLS_TELEMETRY_TEST": null - }, + "bzlTransitiveDigest": "3Dz1J6jY+ftpUHn2HUY0F2dzp0hgl4KCOgVSEkpsaC0=", + "usagesDigest": "mJ/VX9b6VbE7w7DDVYo4wCcOoJ3lUf82/V8VCKG5r9A=", + "recordedInputs": [ + "REPO_MAPPING:aspect_tools_telemetry+,bazel_lib bazel_lib+", + "REPO_MAPPING:aspect_tools_telemetry+,bazel_skylib bazel_skylib+", + "ENV:ASPECT_TOOLS_TELEMETRY_TEST \\0" + ], "generatedRepoSpecs": { "aspect_tools_telemetry_report": { "repoRuleId": "@@aspect_tools_telemetry+//:extension.bzl%tel_repository", "attributes": { "deps": { "aspect_rules_ts": "3.10.1", - "aspect_rules_js": "3.4.1", - "aspect_rules_esbuild": "0.27.0", + "aspect_rules_esbuild": "0.27.1", "aspect_rules_jasmine": "2.0.4", "aspect_tools_telemetry": "0.5.1" }, - "last_notice": 1 + "last_notice": 3 } } }, "moduleExtensionMetadata": { "useAllRepos": "NO", "reproducible": false - }, - "recordedRepoMappingEntries": [ - [ - "aspect_tools_telemetry+", - "bazel_lib", - "bazel_lib+" - ], - [ - "aspect_tools_telemetry+", - "bazel_skylib", - "bazel_skylib+" - ] - ] + } } }, "@@pybind11_bazel+//:python_configure.bzl%extension": { "general": { "bzlTransitiveDigest": "VhEtmxw1yzb9rBZVsKTdti7p+nDM/Fv1p9TmKdO45+Q=", "usagesDigest": "fycyB39YnXIJkfWCIXLUKJMZzANcuLy9ZE73hRucjFk=", - "recordedFileInputs": { - "@@pybind11_bazel+//MODULE.bazel": "88af1c246226d87e65be78ed49ecd1e6f5e98648558c14ce99176da041dc378e" - }, - "recordedDirentsInputs": {}, - "envVariables": {}, + "recordedInputs": [ + "REPO_MAPPING:pybind11_bazel+,bazel_tools bazel_tools", + "FILE:@@pybind11_bazel+//MODULE.bazel 88af1c246226d87e65be78ed49ecd1e6f5e98648558c14ce99176da041dc378e" + ], "generatedRepoSpecs": { "local_config_python": { "repoRuleId": "@@pybind11_bazel+//:python_configure.bzl%python_configure", @@ -501,23 +420,14 @@ ] } } - }, - "recordedRepoMappingEntries": [ - [ - "pybind11_bazel+", - "bazel_tools", - "bazel_tools" - ] - ] + } } }, "@@rules_angular+//setup:extensions.bzl%rules_angular": { "general": { "bzlTransitiveDigest": "aS7Uud1IzoU7PPLzH3s6IfFS4b2fa0SRWDi2/fS4bQU=", "usagesDigest": "PaJB/TvnSzJTbqGUeIfiFAEjGkG4FEW7es6f6MFMtq8=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, + "recordedInputs": [], "generatedRepoSpecs": { "angular_rules_angular_configurable_deps": { "repoRuleId": "@@rules_angular+//setup:repositories.bzl%configurable_deps_repo", @@ -533,24 +443,21 @@ "typescript": "@@//:node_modules/typescript" } } - }, - "recordedRepoMappingEntries": [] + } } }, "@@rules_browsers+//browsers:extensions.bzl%browsers": { "general": { - "bzlTransitiveDigest": "85AglD+Q1+ncEIApuW5Ng/2cY4OkSMPrOZ05Jp4CTmk=", + "bzlTransitiveDigest": "ZDmIf5ppOwTGXoMjIVG/ipZ9kLV1g1XCrAHWrAqDmog=", "usagesDigest": "FmXYJVoVJlnfUU8x8gObSvu4qWcco/9Faw61aC/wBF0=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, + "recordedInputs": [], "generatedRepoSpecs": { "rules_browsers_chrome_linux": { "repoRuleId": "@@rules_browsers+//browsers/private:browser_repo.bzl%browser_repo", "attributes": { - "sha256": "1a20882bf1a4f9d1167171b6905efe359bb229be1ce636ae9c931f3d285fbabe", + "sha256": "b64e7107632f22b4300f2c159909eb601d58364803bc39b00c227e948e677db6", "urls": [ - "https://storage.googleapis.com/chrome-for-testing-public/154.0.8013.0/linux64/chrome-headless-shell-linux64.zip" + "https://storage.googleapis.com/chrome-for-testing-public/159.0.8154.2/linux64/chrome-headless-shell-linux64.zip" ], "named_files": { "CHROME-HEADLESS-SHELL": "chrome-headless-shell-linux64/chrome-headless-shell" @@ -566,9 +473,9 @@ "rules_browsers_chrome_mac": { "repoRuleId": "@@rules_browsers+//browsers/private:browser_repo.bzl%browser_repo", "attributes": { - "sha256": "1b0e0a078fc62c2b9f8cf837d41461084bd4064cf50cfc15ff84447a1f1b8dab", + "sha256": "283404ad20bbe0a5f937666475ba17cf878cdc5e3bb0c28b48afb57efe323c21", "urls": [ - "https://storage.googleapis.com/chrome-for-testing-public/154.0.8013.0/mac-x64/chrome-headless-shell-mac-x64.zip" + "https://storage.googleapis.com/chrome-for-testing-public/159.0.8154.2/mac-x64/chrome-headless-shell-mac-x64.zip" ], "named_files": { "CHROME-HEADLESS-SHELL": "chrome-headless-shell-mac-x64/chrome-headless-shell" @@ -584,9 +491,9 @@ "rules_browsers_chrome_mac_arm": { "repoRuleId": "@@rules_browsers+//browsers/private:browser_repo.bzl%browser_repo", "attributes": { - "sha256": "7438714da3696778b697b277a2df1d9701b99819ae58f5ab809b1009933677ec", + "sha256": "1bf5977949625d9e615035aa9f5d76dfc061f18cc40088bcc14f477c24b4b3dc", "urls": [ - "https://storage.googleapis.com/chrome-for-testing-public/154.0.8013.0/mac-arm64/chrome-headless-shell-mac-arm64.zip" + "https://storage.googleapis.com/chrome-for-testing-public/159.0.8154.2/mac-arm64/chrome-headless-shell-mac-arm64.zip" ], "named_files": { "CHROME-HEADLESS-SHELL": "chrome-headless-shell-mac-arm64/chrome-headless-shell" @@ -602,9 +509,9 @@ "rules_browsers_chrome_win64": { "repoRuleId": "@@rules_browsers+//browsers/private:browser_repo.bzl%browser_repo", "attributes": { - "sha256": "4349c800be1f063adc0f1a7e820d024b43ea73917a6893a3f6b3797a5200d49b", + "sha256": "c9e969d0510df4b249031ff973d223320fcfc3a9cecf98421b55b785505a1ac5", "urls": [ - "https://storage.googleapis.com/chrome-for-testing-public/154.0.8013.0/win64/chrome-headless-shell-win64.zip" + "https://storage.googleapis.com/chrome-for-testing-public/159.0.8154.2/win64/chrome-headless-shell-win64.zip" ], "named_files": { "CHROME-HEADLESS-SHELL": "chrome-headless-shell-win64/chrome-headless-shell.exe" @@ -620,9 +527,9 @@ "rules_browsers_chromedriver_linux": { "repoRuleId": "@@rules_browsers+//browsers/private:browser_repo.bzl%browser_repo", "attributes": { - "sha256": "d275f01236831bd44c6b6712ba5bec0a028b1ce9473a6182aceae6657740a3d3", + "sha256": "83ea0f32e490b318b83a347082c24e4f9c3e2a9caebe89fee3309b80b7dacd0e", "urls": [ - "https://storage.googleapis.com/chrome-for-testing-public/154.0.8013.0/linux64/chromedriver-linux64.zip" + "https://storage.googleapis.com/chrome-for-testing-public/159.0.8154.2/linux64/chromedriver-linux64.zip" ], "named_files": { "CHROMEDRIVER": "chromedriver-linux64/chromedriver" @@ -636,9 +543,9 @@ "rules_browsers_chromedriver_mac": { "repoRuleId": "@@rules_browsers+//browsers/private:browser_repo.bzl%browser_repo", "attributes": { - "sha256": "cb331889191aa8ab11be6d5a3cc4de760f8cf63dbea5d1f22c80cf16ae68e46f", + "sha256": "5447a98427b2d2754bbfd14e056597b39128a0ee73e47951fa59db6ce07417eb", "urls": [ - "https://storage.googleapis.com/chrome-for-testing-public/154.0.8013.0/mac-x64/chromedriver-mac-x64.zip" + "https://storage.googleapis.com/chrome-for-testing-public/159.0.8154.2/mac-x64/chromedriver-mac-x64.zip" ], "named_files": { "CHROMEDRIVER": "chromedriver-mac-x64/chromedriver" @@ -652,9 +559,9 @@ "rules_browsers_chromedriver_mac_arm": { "repoRuleId": "@@rules_browsers+//browsers/private:browser_repo.bzl%browser_repo", "attributes": { - "sha256": "1584dc9ae35f4a22c4ba4b142335d91d6d3096813395d3acaf135fb6e716ce8e", + "sha256": "d5d3b0ba24b2c22004ca9a49e9f468b4f048e64074049ad1a0c08067ab40930d", "urls": [ - "https://storage.googleapis.com/chrome-for-testing-public/154.0.8013.0/mac-arm64/chromedriver-mac-arm64.zip" + "https://storage.googleapis.com/chrome-for-testing-public/159.0.8154.2/mac-arm64/chromedriver-mac-arm64.zip" ], "named_files": { "CHROMEDRIVER": "chromedriver-mac-arm64/chromedriver" @@ -668,9 +575,9 @@ "rules_browsers_chromedriver_win64": { "repoRuleId": "@@rules_browsers+//browsers/private:browser_repo.bzl%browser_repo", "attributes": { - "sha256": "061b4d1be9eb2a11ed036b3e562b565ebfd257fcd7cda3681a58e63bff5dd6d0", + "sha256": "2903e57fbc9b164151ba6b9d769d258b2eda0104955b9661b28e51ca74bc4b23", "urls": [ - "https://storage.googleapis.com/chrome-for-testing-public/154.0.8013.0/win64/chromedriver-win64.zip" + "https://storage.googleapis.com/chrome-for-testing-public/159.0.8154.2/win64/chromedriver-win64.zip" ], "named_files": { "CHROMEDRIVER": "chromedriver-win64/chromedriver.exe" @@ -684,9 +591,9 @@ "rules_browsers_firefox_linux": { "repoRuleId": "@@rules_browsers+//browsers/private:browser_repo.bzl%browser_repo", "attributes": { - "sha256": "7665cd49ab13417270748325838e565136adbc76d41bbd76fb24d15a0cc7792b", + "sha256": "fde774e9757c8878534c05ec210db592bf6a1b244c57941ffb2e364c04f35fcd", "urls": [ - "https://archive.mozilla.org/pub/firefox/releases/154.0/linux-x86_64/en-US/firefox-154.0.tar.xz" + "https://archive.mozilla.org/pub/firefox/releases/160.0/linux-x86_64/en-US/firefox-160.0.tar.xz" ], "named_files": { "FIREFOX": "firefox/firefox" @@ -700,9 +607,9 @@ "rules_browsers_firefox_mac": { "repoRuleId": "@@rules_browsers+//browsers/private:browser_repo.bzl%browser_repo", "attributes": { - "sha256": "b0295d3b77ec632a60282cf2b9770e1dada085879d00e43d8d23fddf5015e06a", + "sha256": "b270ccc60eb899bd0277bd078d7bd8690f5c4fc3e44b4fa9ee78ed2a3e89f0ca", "urls": [ - "https://archive.mozilla.org/pub/firefox/releases/154.0/mac/en-US/Firefox%20154.0.dmg" + "https://archive.mozilla.org/pub/firefox/releases/160.0/mac/en-US/Firefox%20160.0.dmg" ], "named_files": { "FIREFOX": "Firefox.app/Contents/MacOS/firefox" @@ -716,9 +623,9 @@ "rules_browsers_firefox_mac_arm": { "repoRuleId": "@@rules_browsers+//browsers/private:browser_repo.bzl%browser_repo", "attributes": { - "sha256": "b0295d3b77ec632a60282cf2b9770e1dada085879d00e43d8d23fddf5015e06a", + "sha256": "b270ccc60eb899bd0277bd078d7bd8690f5c4fc3e44b4fa9ee78ed2a3e89f0ca", "urls": [ - "https://archive.mozilla.org/pub/firefox/releases/154.0/mac/en-US/Firefox%20154.0.dmg" + "https://archive.mozilla.org/pub/firefox/releases/160.0/mac/en-US/Firefox%20160.0.dmg" ], "named_files": { "FIREFOX": "Firefox.app/Contents/MacOS/firefox" @@ -732,9 +639,9 @@ "rules_browsers_firefox_win64": { "repoRuleId": "@@rules_browsers+//browsers/private:browser_repo.bzl%browser_repo", "attributes": { - "sha256": "6b3c996d27b50dca8e5b6dd2956233cc6bf4720cea3f0847a9423c2cd6759e73", + "sha256": "8732312ee2d7960c6ea830a4e0d3c0ff5fe0b10856dab44e2c432fcdeb63ff63", "urls": [ - "https://archive.mozilla.org/pub/firefox/releases/154.0/win64/en-US/Firefox%20Setup%20154.0.exe" + "https://archive.mozilla.org/pub/firefox/releases/160.0/win64/en-US/Firefox%20Setup%20160.0.exe" ], "named_files": { "FIREFOX": "core/firefox.exe" @@ -745,17 +652,16 @@ ] } } - }, - "recordedRepoMappingEntries": [] + } } }, "@@rules_fuzzing+//fuzzing/private:extensions.bzl%non_module_dependencies": { "general": { "bzlTransitiveDigest": "CYUiFDCnL2VGx3uotIu/VuGabgObnZra2zzRUJCX0sU=", "usagesDigest": "wy6ISK6UOcBEjj/mvJ/S3WeXoO67X+1llb9yPyFtPgc=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, + "recordedInputs": [ + "REPO_MAPPING:rules_fuzzing+,bazel_tools bazel_tools" + ], "generatedRepoSpecs": { "platforms": { "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", @@ -822,23 +728,16 @@ "url": "https://repo1.maven.org/maven2/com/code-intelligence/jazzer-api/0.20.1/jazzer-api-0.20.1.jar" } } - }, - "recordedRepoMappingEntries": [ - [ - "rules_fuzzing+", - "bazel_tools", - "bazel_tools" - ] - ] + } } }, "@@rules_kotlin+//src/main/starlark/core/repositories:bzlmod_setup.bzl%rules_kotlin_extensions": { "general": { "bzlTransitiveDigest": "03Qju4tW0vE+0RBuZGuV2A4Hx6AiSkdNahYvworx2aM=", "usagesDigest": "QI2z8ZUR+mqtbwsf2fLqYdJAkPOHdOV+tF2yVAUgRzw=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, + "recordedInputs": [ + "REPO_MAPPING:rules_kotlin+,bazel_tools bazel_tools" + ], "generatedRepoSpecs": { "com_github_jetbrains_kotlin_git": { "repoRuleId": "@@rules_kotlin+//src/main/starlark/core/repositories:compiler.bzl%kotlin_compiler_git_repository", @@ -886,23 +785,31 @@ ] } } - }, - "recordedRepoMappingEntries": [ - [ - "rules_kotlin+", - "bazel_tools", - "bazel_tools" - ] - ] + } } }, "@@rules_python+//python/extensions:config.bzl%config": { "general": { "bzlTransitiveDigest": "1eE/aNv0So57EZMzcxgDSCFkzlydiaC4TpHowQfrcBk=", "usagesDigest": "ZVSXMAGpD+xzVNPuvF1IoLBkty7TROO0+akMapt1pAg=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, + "recordedInputs": [ + "REPO_MAPPING:rules_python+,bazel_tools bazel_tools", + "REPO_MAPPING:rules_python+,pypi__build rules_python++config+pypi__build", + "REPO_MAPPING:rules_python+,pypi__click rules_python++config+pypi__click", + "REPO_MAPPING:rules_python+,pypi__colorama rules_python++config+pypi__colorama", + "REPO_MAPPING:rules_python+,pypi__importlib_metadata rules_python++config+pypi__importlib_metadata", + "REPO_MAPPING:rules_python+,pypi__installer rules_python++config+pypi__installer", + "REPO_MAPPING:rules_python+,pypi__more_itertools rules_python++config+pypi__more_itertools", + "REPO_MAPPING:rules_python+,pypi__packaging rules_python++config+pypi__packaging", + "REPO_MAPPING:rules_python+,pypi__pep517 rules_python++config+pypi__pep517", + "REPO_MAPPING:rules_python+,pypi__pip rules_python++config+pypi__pip", + "REPO_MAPPING:rules_python+,pypi__pip_tools rules_python++config+pypi__pip_tools", + "REPO_MAPPING:rules_python+,pypi__pyproject_hooks rules_python++config+pypi__pyproject_hooks", + "REPO_MAPPING:rules_python+,pypi__setuptools rules_python++config+pypi__setuptools", + "REPO_MAPPING:rules_python+,pypi__tomli rules_python++config+pypi__tomli", + "REPO_MAPPING:rules_python+,pypi__wheel rules_python++config+pypi__wheel", + "REPO_MAPPING:rules_python+,pypi__zipp rules_python++config+pypi__zipp" + ], "generatedRepoSpecs": { "rules_python_internal": { "repoRuleId": "@@rules_python+//python/private:internal_config_repo.bzl%internal_config_repo", @@ -1046,98 +953,17 @@ "build_file_content": "package(default_visibility = [\"//visibility:public\"])\n\nload(\"@rules_python//python:py_library.bzl\", \"py_library\")\n\npy_library(\n name = \"lib\",\n srcs = glob([\"**/*.py\"]),\n data = glob([\"**/*\"], exclude=[\n # These entries include those put into user-installed dependencies by\n # data_exclude to avoid non-determinism.\n \"**/*.py\",\n \"**/*.pyc\",\n \"**/*.pyc.*\", # During pyc creation, temp files named *.pyc.NNN are created\n \"**/*.dist-info/RECORD\",\n \"BUILD\",\n \"WORKSPACE\",\n ]),\n # This makes this directory a top-level in the python import\n # search path for anything that depends on this.\n imports = [\".\"],\n)\n" } } - }, - "recordedRepoMappingEntries": [ - [ - "rules_python+", - "bazel_tools", - "bazel_tools" - ], - [ - "rules_python+", - "pypi__build", - "rules_python++config+pypi__build" - ], - [ - "rules_python+", - "pypi__click", - "rules_python++config+pypi__click" - ], - [ - "rules_python+", - "pypi__colorama", - "rules_python++config+pypi__colorama" - ], - [ - "rules_python+", - "pypi__importlib_metadata", - "rules_python++config+pypi__importlib_metadata" - ], - [ - "rules_python+", - "pypi__installer", - "rules_python++config+pypi__installer" - ], - [ - "rules_python+", - "pypi__more_itertools", - "rules_python++config+pypi__more_itertools" - ], - [ - "rules_python+", - "pypi__packaging", - "rules_python++config+pypi__packaging" - ], - [ - "rules_python+", - "pypi__pep517", - "rules_python++config+pypi__pep517" - ], - [ - "rules_python+", - "pypi__pip", - "rules_python++config+pypi__pip" - ], - [ - "rules_python+", - "pypi__pip_tools", - "rules_python++config+pypi__pip_tools" - ], - [ - "rules_python+", - "pypi__pyproject_hooks", - "rules_python++config+pypi__pyproject_hooks" - ], - [ - "rules_python+", - "pypi__setuptools", - "rules_python++config+pypi__setuptools" - ], - [ - "rules_python+", - "pypi__tomli", - "rules_python++config+pypi__tomli" - ], - [ - "rules_python+", - "pypi__wheel", - "rules_python++config+pypi__wheel" - ], - [ - "rules_python+", - "pypi__zipp", - "rules_python++config+pypi__zipp" - ] - ] + } } }, "@@rules_python+//python/uv:uv.bzl%uv": { "general": { "bzlTransitiveDigest": "ijW9KS7qsIY+yBVvJ+Nr1mzwQox09j13DnE3iIwaeTM=", "usagesDigest": "H8dQoNZcoqP+Mu0tHZTi4KHATzvNkM5ePuEqoQdklIU=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, + "recordedInputs": [ + "REPO_MAPPING:rules_python+,bazel_tools bazel_tools", + "REPO_MAPPING:rules_python+,platforms platforms" + ], "generatedRepoSpecs": { "uv": { "repoRuleId": "@@rules_python+//python/uv/private:uv_toolchains_repo.bzl%uv_toolchains_repo", @@ -1157,162 +983,2951 @@ "toolchain_target_settings": {} } } - }, - "recordedRepoMappingEntries": [ - [ - "rules_python+", - "bazel_tools", - "bazel_tools" - ], - [ - "rules_python+", - "platforms", - "platforms" - ] - ] + } } }, - "@@rules_sass+//src/toolchain:extensions.bzl%sass": { + "@@rules_rust+//crate_universe:extensions.bzl%crate": { "general": { - "bzlTransitiveDigest": "mOfuR8PsNuUWEq7JZ4MpIRbwyAGAqrCvkXXGaRNnlPQ=", - "usagesDigest": "R0KshhzIouLWuexMUCrl4HY+FUDwlVVgF9Z7UnwyUWA=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, + "bzlTransitiveDigest": "zGAxvfL6V4qrCkSetjAUPk8KX1GHmA3cah/0ITBgZe4=", + "usagesDigest": "G954QC8Fxv48WdaVXl/ke0bYklIphptHjOEmweSInNI=", + "recordedInputs": [ + "ENV:CARGO_BAZEL_DEBUG \\0", + "ENV:CARGO_BAZEL_GENERATOR_SHA256 \\0", + "ENV:CARGO_BAZEL_GENERATOR_URL \\0", + "ENV:CARGO_BAZEL_ISOLATED \\0", + "ENV:CARGO_BAZEL_REPIN \\0", + "ENV:CARGO_BAZEL_REPIN_ONLY \\0", + "ENV:CARGO_BAZEL_TIMEOUT \\0", + "ENV:REPIN \\0", + "REPO_MAPPING:bazel_features+,bazel_features_globals bazel_features++version_extension+bazel_features_globals", + "REPO_MAPPING:bazel_features+,bazel_features_version bazel_features++version_extension+bazel_features_version", + "REPO_MAPPING:rules_cc+,bazel_tools bazel_tools", + "REPO_MAPPING:rules_cc+,cc_compatibility_proxy rules_cc++compatibility_proxy+cc_compatibility_proxy", + "REPO_MAPPING:rules_cc+,rules_cc rules_cc+", + "REPO_MAPPING:rules_cc++compatibility_proxy+cc_compatibility_proxy,rules_cc rules_cc+", + "REPO_MAPPING:rules_rust+,bazel_features bazel_features+", + "REPO_MAPPING:rules_rust+,bazel_skylib bazel_skylib+", + "REPO_MAPPING:rules_rust+,bazel_tools bazel_tools", + "REPO_MAPPING:rules_rust+,rules_cc rules_cc+", + "REPO_MAPPING:rules_rust+,rules_rust rules_rust+", + "FILE:@@//Cargo.lock 5f18c63a345305fdcf51b842b87757a8c6d85fe3b82737daa1c800594758e279", + "FILE:@@//Cargo.toml fc01cb4d18d554ba93e0da9e9d2b6bca0467927c00677984a69a08e29ebd7b16", + "FILE:@@//packages/compiler-cli/preprocessor/ng-analyze/Cargo.toml 87ade323ebbb029134d220185b58f0c79a104283587919f88e97c6ff49a77b68" + ], "generatedRepoSpecs": { - "linux_amd64_sass": { - "repoRuleId": "@@rules_sass+//src/toolchain:configure_sass.bzl%configure_sass", + "crates": { + "repoRuleId": "@@rules_rust+//crate_universe/private:crates_vendor.bzl%crates_vendor_remote_repository", + "attributes": { + "contents": { + "BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files(\n [\n \"cargo-bazel.json\",\n \"crates.bzl\",\n \"defs.bzl\",\n ] + glob(\n allow_empty = True,\n include = [\"*.bazel\"],\n ),\n)\n\nfilegroup(\n name = \"srcs\",\n srcs = glob(\n allow_empty = True,\n include = [\n \"*.bazel\",\n \"*.bzl\",\n ],\n ),\n)\n\n# Workspace Member Dependencies\nalias(\n name = \"futures-0.3.34\",\n actual = \"@crates__futures-0.3.34//:futures\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"futures\",\n actual = \"@crates__futures-0.3.34//:futures\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"glob-0.3.4\",\n actual = \"@crates__glob-0.3.4//:glob\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"glob\",\n actual = \"@crates__glob-0.3.4//:glob\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"js-sys-0.3.98\",\n actual = \"@crates__js-sys-0.3.98//:js_sys\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"js-sys\",\n actual = \"@crates__js-sys-0.3.98//:js_sys\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"json-strip-comments-3.1.2\",\n actual = \"@crates__json-strip-comments-3.1.2//:json_strip_comments\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"json-strip-comments\",\n actual = \"@crates__json-strip-comments-3.1.2//:json_strip_comments\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc-miette-derive-3.0.1\",\n actual = \"@crates__oxc-miette-derive-3.0.1//:oxc_miette_derive\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc-miette-derive\",\n actual = \"@crates__oxc-miette-derive-3.0.1//:oxc_miette_derive\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_allocator-0.144.0\",\n actual = \"@crates__oxc_allocator-0.144.0//:oxc_allocator\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_allocator\",\n actual = \"@crates__oxc_allocator-0.144.0//:oxc_allocator\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_ast-0.144.0\",\n actual = \"@crates__oxc_ast-0.144.0//:oxc_ast\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_ast\",\n actual = \"@crates__oxc_ast-0.144.0//:oxc_ast\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_ast_visit-0.144.0\",\n actual = \"@crates__oxc_ast_visit-0.144.0//:oxc_ast_visit\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_ast_visit\",\n actual = \"@crates__oxc_ast_visit-0.144.0//:oxc_ast_visit\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_diagnostics-0.144.0\",\n actual = \"@crates__oxc_diagnostics-0.144.0//:oxc_diagnostics\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_diagnostics\",\n actual = \"@crates__oxc_diagnostics-0.144.0//:oxc_diagnostics\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_parser-0.144.0\",\n actual = \"@crates__oxc_parser-0.144.0//:oxc_parser\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_parser\",\n actual = \"@crates__oxc_parser-0.144.0//:oxc_parser\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_resolver-11.24.3\",\n actual = \"@crates__oxc_resolver-11.24.3//:oxc_resolver\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_resolver\",\n actual = \"@crates__oxc_resolver-11.24.3//:oxc_resolver\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_semantic-0.144.0\",\n actual = \"@crates__oxc_semantic-0.144.0//:oxc_semantic\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_semantic\",\n actual = \"@crates__oxc_semantic-0.144.0//:oxc_semantic\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_span-0.144.0\",\n actual = \"@crates__oxc_span-0.144.0//:oxc_span\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_span\",\n actual = \"@crates__oxc_span-0.144.0//:oxc_span\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_syntax-0.144.0\",\n actual = \"@crates__oxc_syntax-0.144.0//:oxc_syntax\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"oxc_syntax\",\n actual = \"@crates__oxc_syntax-0.144.0//:oxc_syntax\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"pathdiff-0.2.3\",\n actual = \"@crates__pathdiff-0.2.3//:pathdiff\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"pathdiff\",\n actual = \"@crates__pathdiff-0.2.3//:pathdiff\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"regex-1.13.1\",\n actual = \"@crates__regex-1.13.1//:regex\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"regex\",\n actual = \"@crates__regex-1.13.1//:regex\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"self_cell-1.3.0\",\n actual = \"@crates__self_cell-1.3.0//:self_cell\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"self_cell\",\n actual = \"@crates__self_cell-1.3.0//:self_cell\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"serde-1.0.229\",\n actual = \"@crates__serde-1.0.229//:serde\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"serde\",\n actual = \"@crates__serde-1.0.229//:serde\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"serde_json-1.0.154\",\n actual = \"@crates__serde_json-1.0.154//:serde_json\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"serde_json\",\n actual = \"@crates__serde_json-1.0.154//:serde_json\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"tempfile-3.27.0\",\n actual = \"@crates__tempfile-3.27.0//:tempfile\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"tempfile\",\n actual = \"@crates__tempfile-3.27.0//:tempfile\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"tracing-0.1.44\",\n actual = \"@crates__tracing-0.1.44//:tracing\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"tracing\",\n actual = \"@crates__tracing-0.1.44//:tracing\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"tracing-subscriber-0.3.23\",\n actual = \"@crates__tracing-subscriber-0.3.23//:tracing_subscriber\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"tracing-subscriber\",\n actual = \"@crates__tracing-subscriber-0.3.23//:tracing_subscriber\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"wasm-bindgen-0.2.121\",\n actual = \"@crates__wasm-bindgen-0.2.121//:wasm_bindgen\",\n tags = [\"manual\"],\n)\n\nalias(\n name = \"wasm-bindgen\",\n actual = \"@crates__wasm-bindgen-0.2.121//:wasm_bindgen\",\n tags = [\"manual\"],\n)\n", + "alias_rules.bzl": "\"\"\"Alias that transitions its target to `compilation_mode=opt`. Use `transition_alias=\"opt\"` to enable.\"\"\"\n\nload(\"@rules_cc//cc:defs.bzl\", \"CcInfo\")\nload(\"@rules_rust//rust:rust_common.bzl\", \"COMMON_PROVIDERS\")\n\ndef _transition_alias_impl(ctx):\n # `ctx.attr.actual` is a list of 1 item due to the transition\n providers = [ctx.attr.actual[0][provider] for provider in COMMON_PROVIDERS]\n if CcInfo in ctx.attr.actual[0]:\n providers.append(ctx.attr.actual[0][CcInfo])\n return providers\n\ndef _change_compilation_mode(compilation_mode):\n def _change_compilation_mode_impl(_settings, _attr):\n return {\n \"//command_line_option:compilation_mode\": compilation_mode,\n }\n\n return transition(\n implementation = _change_compilation_mode_impl,\n inputs = [],\n outputs = [\n \"//command_line_option:compilation_mode\",\n ],\n )\n\ndef _transition_alias_rule(compilation_mode):\n return rule(\n implementation = _transition_alias_impl,\n provides = COMMON_PROVIDERS,\n attrs = {\n \"actual\": attr.label(\n mandatory = True,\n doc = \"`rust_library()` target to transition to `compilation_mode=opt`.\",\n providers = COMMON_PROVIDERS,\n cfg = _change_compilation_mode(compilation_mode),\n ),\n \"_allowlist_function_transition\": attr.label(\n default = \"@bazel_tools//tools/allowlists/function_transition_allowlist\",\n ),\n },\n doc = \"Transitions a Rust library crate to the `compilation_mode=opt`.\",\n )\n\ntransition_alias_dbg = _transition_alias_rule(\"dbg\")\ntransition_alias_fastbuild = _transition_alias_rule(\"fastbuild\")\ntransition_alias_opt = _transition_alias_rule(\"opt\")\n", + "crates.bzl": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\"\"\"\n# `crates_repository` API\n\n- [aliases](#aliases)\n- [crate_edition](#crate_edition)\n- [crate_deps](#crate_deps)\n- [all_crate_deps](#all_crate_deps)\n- [crate_repositories](#crate_repositories)\n\n\"\"\"\n\nload(\"@bazel_tools//tools/build_defs/repo:git.bzl\", \"git_repository\")\nload(\"@bazel_tools//tools/build_defs/repo:http.bzl\", \"http_archive\")\nload(\"@bazel_tools//tools/build_defs/repo:utils.bzl\", \"maybe\")\nload(\"@bazel_skylib//lib:selects.bzl\", \"selects\")\nload(\"@rules_rust//crate_universe:defs.bzl\", \"crates_vendor_remote_repository\", \"local_crate_mirror\")\n\n###############################################################################\n# MACROS API\n###############################################################################\n\n# An identifier that represent common dependencies (unconditional).\n_COMMON_CONDITION = \"\"\n\ndef _flatten_dependency_maps(all_dependency_maps):\n \"\"\"Flatten a list of dependency maps into one dictionary.\n\n Dependency maps have the following structure:\n\n ```python\n DEPENDENCIES_MAP = {\n # The first key in the map is a Bazel package\n # name of the workspace this file is defined in.\n \"workspace_member_package\": {\n\n # Not all dependencies are supported for all platforms.\n # the condition key is the condition required to be true\n # on the host platform.\n \"condition\": {\n\n # An alias to a crate target. # The label of the crate target the\n # Aliases are only crate names. # package name refers to.\n \"package_name\": \"@full//:label\",\n }\n }\n }\n ```\n\n Args:\n all_dependency_maps (list): A list of dicts as described above\n\n Returns:\n dict: A dictionary as described above\n \"\"\"\n dependencies = {}\n\n for workspace_deps_map in all_dependency_maps:\n for pkg_name, conditional_deps_map in workspace_deps_map.items():\n if pkg_name not in dependencies:\n non_frozen_map = dict()\n for key, values in conditional_deps_map.items():\n non_frozen_map.update({key: dict(values.items())})\n dependencies.setdefault(pkg_name, non_frozen_map)\n continue\n\n for condition, deps_map in conditional_deps_map.items():\n # If the condition has not been recorded, do so and continue\n if condition not in dependencies[pkg_name]:\n dependencies[pkg_name].setdefault(condition, dict(deps_map.items()))\n continue\n\n # Alert on any miss-matched dependencies\n inconsistent_entries = []\n for crate_name, crate_label in deps_map.items():\n existing = dependencies[pkg_name][condition].get(crate_name)\n if existing and existing != crate_label:\n inconsistent_entries.append((crate_name, existing, crate_label))\n dependencies[pkg_name][condition].update({crate_name: crate_label})\n\n return dependencies\n\ndef crate_deps(deps, package_name = None):\n \"\"\"Finds the fully qualified label of the requested crates for the package where this macro is called.\n\n Args:\n deps (list): The desired list of crate targets.\n package_name (str, optional): The package name of the set of dependencies to look up.\n Defaults to `native.package_name()`.\n\n Returns:\n list: A list of labels to generated rust targets (str)\n \"\"\"\n\n if not deps:\n return []\n\n if package_name == None:\n package_name = native.package_name()\n\n # Join both sets of dependencies\n dependencies = _flatten_dependency_maps([\n _NORMAL_DEPENDENCIES,\n _NORMAL_DEV_DEPENDENCIES,\n _PROC_MACRO_DEPENDENCIES,\n _PROC_MACRO_DEV_DEPENDENCIES,\n _BUILD_DEPENDENCIES,\n _BUILD_PROC_MACRO_DEPENDENCIES,\n ]).pop(package_name, {})\n\n # Combine all conditional packages so we can easily index over a flat list\n # TODO: Perhaps this should actually return select statements and maintain\n # the conditionals of the dependencies\n flat_deps = {}\n for deps_set in dependencies.values():\n for crate_name, crate_label in deps_set.items():\n flat_deps.update({crate_name: crate_label})\n\n missing_crates = []\n crate_targets = []\n for crate_target in deps:\n if crate_target not in flat_deps:\n missing_crates.append(crate_target)\n else:\n crate_targets.append(flat_deps[crate_target])\n\n if missing_crates:\n fail(\"Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`\".format(\n missing_crates,\n package_name,\n dependencies,\n ))\n\n return crate_targets\n\ndef crate_edition(package_name = None):\n \"\"\"Finds the Rust edition for the package where this macro is called.\n\n Args:\n package_name (str, optional): The package name whose edition should be\n looked up. Defaults to `native.package_name()` when unset.\n\n Returns:\n str: The Rust edition declared by the package's Cargo.toml file.\n \"\"\"\n if package_name == None:\n package_name = native.package_name()\n\n if package_name not in _CRATE_EDITIONS:\n fail(\"Tried to get crate_edition for package \" + package_name + \" but that package had no Cargo.toml file\")\n\n return _CRATE_EDITIONS[package_name]\n\ndef all_crate_deps(\n normal = False, \n normal_dev = False, \n proc_macro = False, \n proc_macro_dev = False,\n build = False,\n build_proc_macro = False,\n package_name = None):\n \"\"\"Finds the fully qualified label of all requested direct crate dependencies \\\n for the package where this macro is called.\n\n If no parameters are set, all normal dependencies are returned. Setting any one flag will\n otherwise impact the contents of the returned list.\n\n Args:\n normal (bool, optional): If True, normal dependencies are included in the\n output list.\n normal_dev (bool, optional): If True, normal dev dependencies will be\n included in the output list.\n proc_macro (bool, optional): If True, proc_macro dependencies are included\n in the output list.\n proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are\n included in the output list.\n build (bool, optional): If True, build dependencies are included\n in the output list.\n build_proc_macro (bool, optional): If True, build proc_macro dependencies are\n included in the output list.\n package_name (str, optional): The package name of the set of dependencies to look up.\n Defaults to `native.package_name()` when unset.\n\n Returns:\n list: A list of labels to generated rust targets (str)\n \"\"\"\n\n if package_name == None:\n package_name = native.package_name()\n\n # Determine the relevant maps to use\n all_dependency_maps = []\n if normal:\n all_dependency_maps.append(_NORMAL_DEPENDENCIES)\n if normal_dev:\n all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES)\n if proc_macro:\n all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES)\n if proc_macro_dev:\n all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES)\n if build:\n all_dependency_maps.append(_BUILD_DEPENDENCIES)\n if build_proc_macro:\n all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES)\n\n # Default to always using normal dependencies\n if not all_dependency_maps:\n all_dependency_maps.append(_NORMAL_DEPENDENCIES)\n\n dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None)\n\n if not dependencies:\n if dependencies == None:\n fail(\"Tried to get all_crate_deps for package \" + package_name + \" but that package had no Cargo.toml file\")\n else:\n return []\n\n crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values())\n for condition, deps in dependencies.items():\n crate_deps += selects.with_or({\n tuple(_CONDITIONS[condition]): deps.values(),\n \"//conditions:default\": [],\n })\n\n return crate_deps\n\ndef aliases(\n normal = False,\n normal_dev = False,\n proc_macro = False,\n proc_macro_dev = False,\n build = False,\n build_proc_macro = False,\n package_name = None):\n \"\"\"Produces a map of Crate alias names to their original label\n\n If no dependency kinds are specified, `normal` and `proc_macro` are used by default.\n Setting any one flag will otherwise determine the contents of the returned dict.\n\n Args:\n normal (bool, optional): If True, normal dependencies are included in the\n output list.\n normal_dev (bool, optional): If True, normal dev dependencies will be\n included in the output list..\n proc_macro (bool, optional): If True, proc_macro dependencies are included\n in the output list.\n proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are\n included in the output list.\n build (bool, optional): If True, build dependencies are included\n in the output list.\n build_proc_macro (bool, optional): If True, build proc_macro dependencies are\n included in the output list.\n package_name (str, optional): The package name of the set of dependencies to look up.\n Defaults to `native.package_name()` when unset.\n\n Returns:\n dict: The aliases of all associated packages\n \"\"\"\n if package_name == None:\n package_name = native.package_name()\n\n # Determine the relevant maps to use\n all_aliases_maps = []\n if normal:\n all_aliases_maps.append(_NORMAL_ALIASES)\n if normal_dev:\n all_aliases_maps.append(_NORMAL_DEV_ALIASES)\n if proc_macro:\n all_aliases_maps.append(_PROC_MACRO_ALIASES)\n if proc_macro_dev:\n all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES)\n if build:\n all_aliases_maps.append(_BUILD_ALIASES)\n if build_proc_macro:\n all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES)\n\n # Default to always using normal aliases\n if not all_aliases_maps:\n all_aliases_maps.append(_NORMAL_ALIASES)\n all_aliases_maps.append(_PROC_MACRO_ALIASES)\n\n aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None)\n\n if not aliases:\n return dict()\n\n common_items = aliases.pop(_COMMON_CONDITION, {}).items()\n\n # If there are only common items in the dictionary, immediately return them\n if not len(aliases.keys()) == 1:\n return dict(common_items)\n\n # Build a single select statement where each conditional has accounted for the\n # common set of aliases.\n crate_aliases = {\"//conditions:default\": dict(common_items)}\n for condition, deps in aliases.items():\n condition_triples = _CONDITIONS[condition]\n for triple in condition_triples:\n if triple in crate_aliases:\n crate_aliases[triple].update(deps)\n else:\n crate_aliases.update({triple: dict(deps.items() + common_items)})\n\n return select(crate_aliases)\n\n###############################################################################\n# WORKSPACE MEMBER DEPS, ALIASES, AND EDITIONS\n###############################################################################\n\n_CRATE_EDITIONS = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": \"2021\",\n}\n\n_NORMAL_DEPENDENCIES = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": {\n _COMMON_CONDITION: {\n \"futures\": Label(\"@crates//futures-0.3.34\"),\n \"glob\": Label(\"@crates//glob-0.3.4\"),\n \"js-sys\": Label(\"@crates//js-sys-0.3.98\"),\n \"json-strip-comments\": Label(\"@crates//json-strip-comments-3.1.2\"),\n \"oxc_allocator\": Label(\"@crates//oxc_allocator-0.144.0\"),\n \"oxc_ast\": Label(\"@crates//oxc_ast-0.144.0\"),\n \"oxc_ast_visit\": Label(\"@crates//oxc_ast_visit-0.144.0\"),\n \"oxc_diagnostics\": Label(\"@crates//oxc_diagnostics-0.144.0\"),\n \"oxc_parser\": Label(\"@crates//oxc_parser-0.144.0\"),\n \"oxc_resolver\": Label(\"@crates//oxc_resolver-11.24.3\"),\n \"oxc_semantic\": Label(\"@crates//oxc_semantic-0.144.0\"),\n \"oxc_span\": Label(\"@crates//oxc_span-0.144.0\"),\n \"oxc_syntax\": Label(\"@crates//oxc_syntax-0.144.0\"),\n \"pathdiff\": Label(\"@crates//pathdiff-0.2.3\"),\n \"regex\": Label(\"@crates//regex-1.13.1\"),\n \"self_cell\": Label(\"@crates//self_cell-1.3.0\"),\n \"serde\": Label(\"@crates//serde-1.0.229\"),\n \"serde_json\": Label(\"@crates//serde_json-1.0.154\"),\n \"tracing\": Label(\"@crates//tracing-0.1.44\"),\n \"wasm-bindgen\": Label(\"@crates//wasm-bindgen-0.2.121\"),\n },\n \"cfg(not(target_arch = \\\"wasm32\\\"))\": {\n \"tracing-subscriber\": Label(\"@crates//tracing-subscriber-0.3.23\"),\n },\n },\n}\n\n\n_NORMAL_ALIASES = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": {\n _COMMON_CONDITION: {\n },\n \"cfg(not(target_arch = \\\"wasm32\\\"))\": {\n },\n },\n}\n\n\n_NORMAL_DEV_DEPENDENCIES = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": {\n _COMMON_CONDITION: {\n \"tempfile\": Label(\"@crates//tempfile-3.27.0\"),\n },\n },\n}\n\n\n_NORMAL_DEV_ALIASES = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": {\n _COMMON_CONDITION: {\n },\n },\n}\n\n\n_PROC_MACRO_DEPENDENCIES = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": {\n _COMMON_CONDITION: {\n \"oxc-miette-derive\": Label(\"@crates//oxc-miette-derive-3.0.1\"),\n },\n },\n}\n\n\n_PROC_MACRO_ALIASES = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": {\n },\n}\n\n\n_PROC_MACRO_DEV_DEPENDENCIES = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": {\n },\n}\n\n\n_PROC_MACRO_DEV_ALIASES = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": {\n _COMMON_CONDITION: {\n },\n },\n}\n\n\n_BUILD_DEPENDENCIES = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": {\n },\n}\n\n\n_BUILD_ALIASES = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": {\n },\n}\n\n\n_BUILD_PROC_MACRO_DEPENDENCIES = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": {\n },\n}\n\n\n_BUILD_PROC_MACRO_ALIASES = {\n \"packages/compiler-cli/preprocessor/ng-analyze\": {\n },\n}\n\n\n_CONDITIONS = {\n \"aarch64-apple-darwin\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\"],\n \"aarch64-unknown-linux-gnu\": [\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\"],\n \"cfg(all(any(target_os = \\\"linux\\\", target_os = \\\"android\\\"), any(rustix_use_libc, miri, not(all(target_os = \\\"linux\\\", any(target_endian = \\\"little\\\", any(target_arch = \\\"s390x\\\", target_arch = \\\"powerpc\\\")), any(target_arch = \\\"arm\\\", all(target_arch = \\\"aarch64\\\", target_pointer_width = \\\"64\\\"), target_arch = \\\"riscv64\\\", all(rustix_use_experimental_asm, target_arch = \\\"powerpc\\\"), all(rustix_use_experimental_asm, target_arch = \\\"powerpc64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"s390x\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips32r6\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64r6\\\"), target_arch = \\\"x86\\\", all(target_arch = \\\"x86_64\\\", target_pointer_width = \\\"64\\\")))))))\": [],\n \"cfg(all(any(target_os = \\\"linux\\\", target_os = \\\"android\\\"), not(any(all(target_os = \\\"linux\\\", target_env = \\\"\\\"), getrandom_backend = \\\"custom\\\", getrandom_backend = \\\"linux_raw\\\", getrandom_backend = \\\"rdrand\\\", getrandom_backend = \\\"rndr\\\"))))\": [\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\"],\n \"cfg(all(not(rustix_use_libc), not(miri), target_os = \\\"linux\\\", any(target_endian = \\\"little\\\", any(target_arch = \\\"s390x\\\", target_arch = \\\"powerpc\\\")), any(target_arch = \\\"arm\\\", all(target_arch = \\\"aarch64\\\", target_pointer_width = \\\"64\\\"), target_arch = \\\"riscv64\\\", all(rustix_use_experimental_asm, target_arch = \\\"powerpc\\\"), all(rustix_use_experimental_asm, target_arch = \\\"powerpc64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"s390x\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips32r6\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64r6\\\"), target_arch = \\\"x86\\\", all(target_arch = \\\"x86_64\\\", target_pointer_width = \\\"64\\\"))))\": [\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\"],\n \"cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \\\"linux\\\", any(target_endian = \\\"little\\\", any(target_arch = \\\"s390x\\\", target_arch = \\\"powerpc\\\")), any(target_arch = \\\"arm\\\", all(target_arch = \\\"aarch64\\\", target_pointer_width = \\\"64\\\"), target_arch = \\\"riscv64\\\", all(rustix_use_experimental_asm, target_arch = \\\"powerpc\\\"), all(rustix_use_experimental_asm, target_arch = \\\"powerpc64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"s390x\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips32r6\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64\\\"), all(rustix_use_experimental_asm, target_arch = \\\"mips64r6\\\"), target_arch = \\\"x86\\\", all(target_arch = \\\"x86_64\\\", target_pointer_width = \\\"64\\\")))))))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:wasm32-unknown-unknown\",\"@rules_rust//rust/platform:wasm32-wasip1\"],\n \"cfg(all(target_os = \\\"uefi\\\", getrandom_backend = \\\"efi_rng\\\"))\": [],\n \"cfg(any())\": [],\n \"cfg(any(target_os = \\\"dragonfly\\\", target_os = \\\"freebsd\\\", target_os = \\\"hurd\\\", target_os = \\\"illumos\\\", target_os = \\\"cygwin\\\", all(target_os = \\\"horizon\\\", target_arch = \\\"arm\\\")))\": [],\n \"cfg(any(target_os = \\\"haiku\\\", target_os = \\\"redox\\\", target_os = \\\"nto\\\", target_os = \\\"aix\\\"))\": [],\n \"cfg(any(target_os = \\\"ios\\\", target_os = \\\"visionos\\\", target_os = \\\"watchos\\\", target_os = \\\"tvos\\\"))\": [],\n \"cfg(any(target_os = \\\"macos\\\", target_os = \\\"linux\\\"))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\"],\n \"cfg(any(target_os = \\\"macos\\\", target_os = \\\"openbsd\\\", target_os = \\\"vita\\\", target_os = \\\"emscripten\\\"))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\"],\n \"cfg(any(unix, target_os = \\\"wasi\\\"))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:wasm32-wasip1\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\"],\n \"cfg(not(target_arch = \\\"wasm32\\\"))\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\"],\n \"cfg(target_arch = \\\"x86_64\\\")\": [\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\"],\n \"cfg(target_endian = \\\"little\\\")\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:wasm32-unknown-unknown\",\"@rules_rust//rust/platform:wasm32-wasip1\",\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\"],\n \"cfg(target_os = \\\"hermit\\\")\": [],\n \"cfg(target_os = \\\"netbsd\\\")\": [],\n \"cfg(target_os = \\\"redox\\\")\": [],\n \"cfg(target_os = \\\"solaris\\\")\": [],\n \"cfg(target_os = \\\"vxworks\\\")\": [],\n \"cfg(target_os = \\\"wasi\\\")\": [\"@rules_rust//rust/platform:wasm32-wasip1\"],\n \"cfg(target_os = \\\"windows\\\")\": [\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\"],\n \"cfg(unix)\": [\"@rules_rust//rust/platform:aarch64-apple-darwin\",\"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\"],\n \"cfg(windows)\": [\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\"],\n \"wasm32-unknown-unknown\": [\"@rules_rust//rust/platform:wasm32-unknown-unknown\"],\n \"wasm32-wasip1\": [\"@rules_rust//rust/platform:wasm32-wasip1\"],\n \"x86_64-pc-windows-msvc\": [\"@rules_rust//rust/platform:x86_64-pc-windows-msvc\"],\n \"x86_64-unknown-linux-gnu\": [\"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\",\"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\"],\n \"x86_64-unknown-nixos-gnu\": [\"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\"],\n}\n\n###############################################################################\n\ndef crate_repositories():\n \"\"\"A macro for defining repositories for all generated crates.\n\n Returns:\n A list of repos visible to the module through the module extension.\n \"\"\"\n maybe(\n crates_vendor_remote_repository,\n name = \"crates\",\n # Lean interface: just point at `crates.bzl`; the repo rule\n # derives the sibling `BUILD.bazel` and `defs.bzl`.\n crates_module = Label(\"@crates//crates:crates.bzl\"),\n )\n maybe(\n http_archive,\n name = \"crates__aho-corasick-1.1.5\",\n sha256 = \"c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/aho-corasick/1.1.5/download\"],\n strip_prefix = \"aho-corasick-1.1.5\",\n build_file = Label(\"@crates//crates:BUILD.aho-corasick-1.1.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__allocator-api2-0.2.21\",\n sha256 = \"683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/allocator-api2/0.2.21/download\"],\n strip_prefix = \"allocator-api2-0.2.21\",\n build_file = Label(\"@crates//crates:BUILD.allocator-api2-0.2.21.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__arrayvec-0.7.8\",\n sha256 = \"d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/arrayvec/0.7.8/download\"],\n strip_prefix = \"arrayvec-0.7.8\",\n build_file = Label(\"@crates//crates:BUILD.arrayvec-0.7.8.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__autocfg-1.5.1\",\n sha256 = \"f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/autocfg/1.5.1/download\"],\n strip_prefix = \"autocfg-1.5.1\",\n build_file = Label(\"@crates//crates:BUILD.autocfg-1.5.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bitflags-2.13.2\",\n sha256 = \"3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bitflags/2.13.2/download\"],\n strip_prefix = \"bitflags-2.13.2\",\n build_file = Label(\"@crates//crates:BUILD.bitflags-2.13.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bumpalo-3.20.3\",\n sha256 = \"72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bumpalo/3.20.3/download\"],\n strip_prefix = \"bumpalo-3.20.3\",\n build_file = Label(\"@crates//crates:BUILD.bumpalo-3.20.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__bytecount-0.6.9\",\n sha256 = \"175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/bytecount/0.6.9/download\"],\n strip_prefix = \"bytecount-0.6.9\",\n build_file = Label(\"@crates//crates:BUILD.bytecount-0.6.9.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__castaway-0.2.4\",\n sha256 = \"dec551ab6e7578819132c713a93c022a05d60159dc86e7a7050223577484c55a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/castaway/0.2.4/download\"],\n strip_prefix = \"castaway-0.2.4\",\n build_file = Label(\"@crates//crates:BUILD.castaway-0.2.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cfg-if-1.0.5\",\n sha256 = \"4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cfg-if/1.0.5/download\"],\n strip_prefix = \"cfg-if-1.0.5\",\n build_file = Label(\"@crates//crates:BUILD.cfg-if-1.0.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__compact_str-0.10.0\",\n sha256 = \"79fcda08c33bb58b97008b2cdada6622500e949e060f5913361763121abd2416\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/compact_str/0.10.0/download\"],\n strip_prefix = \"compact_str-0.10.0\",\n build_file = Label(\"@crates//crates:BUILD.compact_str-0.10.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__cow-utils-0.1.3\",\n sha256 = \"417bef24afe1460300965a25ff4a24b8b45ad011948302ec221e8a0a81eb2c79\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/cow-utils/0.1.3/download\"],\n strip_prefix = \"cow-utils-0.1.3\",\n build_file = Label(\"@crates//crates:BUILD.cow-utils-0.1.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__crossbeam-utils-0.8.23\",\n sha256 = \"a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/crossbeam-utils/0.8.23/download\"],\n strip_prefix = \"crossbeam-utils-0.8.23\",\n build_file = Label(\"@crates//crates:BUILD.crossbeam-utils-0.8.23.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__dashmap-6.2.1\",\n sha256 = \"e6361d5c062261c78a176addb82d4c821ae42bed6089de0e12603cd25de2059c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/dashmap/6.2.1/download\"],\n strip_prefix = \"dashmap-6.2.1\",\n build_file = Label(\"@crates//crates:BUILD.dashmap-6.2.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__displaydoc-0.2.7\",\n sha256 = \"c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/displaydoc/0.2.7/download\"],\n strip_prefix = \"displaydoc-0.2.7\",\n build_file = Label(\"@crates//crates:BUILD.displaydoc-0.2.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__dragonbox_ecma-0.1.12\",\n sha256 = \"fd8e701084c37e7ef62d3f9e453b618130cbc0ef3573847785952a3ac3f746bf\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/dragonbox_ecma/0.1.12/download\"],\n strip_prefix = \"dragonbox_ecma-0.1.12\",\n build_file = Label(\"@crates//crates:BUILD.dragonbox_ecma-0.1.12.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__either-1.19.0\",\n sha256 = \"0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/either/1.19.0/download\"],\n strip_prefix = \"either-1.19.0\",\n build_file = Label(\"@crates//crates:BUILD.either-1.19.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__equivalent-1.0.3\",\n sha256 = \"00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/equivalent/1.0.3/download\"],\n strip_prefix = \"equivalent-1.0.3\",\n build_file = Label(\"@crates//crates:BUILD.equivalent-1.0.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__errno-0.3.14\",\n sha256 = \"39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/errno/0.3.14/download\"],\n strip_prefix = \"errno-0.3.14\",\n build_file = Label(\"@crates//crates:BUILD.errno-0.3.14.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__fast-glob-1.1.2\",\n sha256 = \"2a044ed96eb57253e806d08b74260638af189687e583f04947a5e11e75e0b0d1\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/fast-glob/1.1.2/download\"],\n strip_prefix = \"fast-glob-1.1.2\",\n build_file = Label(\"@crates//crates:BUILD.fast-glob-1.1.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__fastrand-2.5.0\",\n sha256 = \"da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/fastrand/2.5.0/download\"],\n strip_prefix = \"fastrand-2.5.0\",\n build_file = Label(\"@crates//crates:BUILD.fastrand-2.5.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__float-cmp-0.10.0\",\n sha256 = \"b09cf3155332e944990140d967ff5eceb70df778b34f77d8075db46e4704e6d8\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/float-cmp/0.10.0/download\"],\n strip_prefix = \"float-cmp-0.10.0\",\n build_file = Label(\"@crates//crates:BUILD.float-cmp-0.10.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__foldhash-0.2.0\",\n sha256 = \"77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/foldhash/0.2.0/download\"],\n strip_prefix = \"foldhash-0.2.0\",\n build_file = Label(\"@crates//crates:BUILD.foldhash-0.2.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-0.3.34\",\n sha256 = \"9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures/0.3.34/download\"],\n strip_prefix = \"futures-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-channel-0.3.34\",\n sha256 = \"b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-channel/0.3.34/download\"],\n strip_prefix = \"futures-channel-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-channel-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-core-0.3.34\",\n sha256 = \"92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-core/0.3.34/download\"],\n strip_prefix = \"futures-core-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-core-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-executor-0.3.34\",\n sha256 = \"031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-executor/0.3.34/download\"],\n strip_prefix = \"futures-executor-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-executor-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-io-0.3.34\",\n sha256 = \"53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-io/0.3.34/download\"],\n strip_prefix = \"futures-io-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-io-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-macro-0.3.34\",\n sha256 = \"9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-macro/0.3.34/download\"],\n strip_prefix = \"futures-macro-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-macro-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-sink-0.3.34\",\n sha256 = \"1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-sink/0.3.34/download\"],\n strip_prefix = \"futures-sink-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-sink-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-task-0.3.34\",\n sha256 = \"cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-task/0.3.34/download\"],\n strip_prefix = \"futures-task-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-task-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__futures-util-0.3.34\",\n sha256 = \"0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/futures-util/0.3.34/download\"],\n strip_prefix = \"futures-util-0.3.34\",\n build_file = Label(\"@crates//crates:BUILD.futures-util-0.3.34.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__getrandom-0.4.3\",\n sha256 = \"300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/getrandom/0.4.3/download\"],\n strip_prefix = \"getrandom-0.4.3\",\n build_file = Label(\"@crates//crates:BUILD.getrandom-0.4.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__glob-0.3.4\",\n sha256 = \"e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/glob/0.3.4/download\"],\n strip_prefix = \"glob-0.3.4\",\n build_file = Label(\"@crates//crates:BUILD.glob-0.3.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__halfbrown-0.4.0\",\n sha256 = \"0c7ed2f2edad8a14c8186b847909a41fbb9c3eafa44f88bd891114ed5019da09\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/halfbrown/0.4.0/download\"],\n strip_prefix = \"halfbrown-0.4.0\",\n build_file = Label(\"@crates//crates:BUILD.halfbrown-0.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__hashbrown-0.14.5\",\n sha256 = \"e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/hashbrown/0.14.5/download\"],\n strip_prefix = \"hashbrown-0.14.5\",\n build_file = Label(\"@crates//crates:BUILD.hashbrown-0.14.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__hashbrown-0.16.1\",\n sha256 = \"841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/hashbrown/0.16.1/download\"],\n strip_prefix = \"hashbrown-0.16.1\",\n build_file = Label(\"@crates//crates:BUILD.hashbrown-0.16.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__hashbrown-0.17.1\",\n sha256 = \"ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/hashbrown/0.17.1/download\"],\n strip_prefix = \"hashbrown-0.17.1\",\n build_file = Label(\"@crates//crates:BUILD.hashbrown-0.17.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_collections-2.4.0\",\n sha256 = \"fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_collections/2.4.0/download\"],\n strip_prefix = \"icu_collections-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_collections-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_locale_core-2.4.0\",\n sha256 = \"25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_locale_core/2.4.0/download\"],\n strip_prefix = \"icu_locale_core-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_locale_core-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_locale_fallback-2.4.0\",\n sha256 = \"406e9ae5b95d8aa37db6293405931b766a6172d1848daee22d70eb44aa78a43c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_locale_fallback/2.4.0/download\"],\n strip_prefix = \"icu_locale_fallback-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_locale_fallback-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_locale_fallback_data-2.4.0\",\n sha256 = \"3632ebbd0c5c3637ba1a40bdf8288f2cb9d2268e73441a69d5fc73d7cfbaa87c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_locale_fallback_data/2.4.0/download\"],\n strip_prefix = \"icu_locale_fallback_data-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_locale_fallback_data-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_provider-2.4.0\",\n sha256 = \"413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_provider/2.4.0/download\"],\n strip_prefix = \"icu_provider-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_provider-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_segmenter-2.4.0\",\n sha256 = \"61b195dc605f81aa181bec9b3bd14e26cc71b903e4644f6af578ca9772c7a710\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_segmenter/2.4.0/download\"],\n strip_prefix = \"icu_segmenter-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_segmenter-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__icu_segmenter_data-2.4.0\",\n sha256 = \"913a7d294ad056474749152107309fdee3ec17d2482d1ab70fdc61a81c64b9a3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/icu_segmenter_data/2.4.0/download\"],\n strip_prefix = \"icu_segmenter_data-2.4.0\",\n build_file = Label(\"@crates//crates:BUILD.icu_segmenter_data-2.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__indexmap-2.14.2\",\n sha256 = \"cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/indexmap/2.14.2/download\"],\n strip_prefix = \"indexmap-2.14.2\",\n build_file = Label(\"@crates//crates:BUILD.indexmap-2.14.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__itertools-0.15.0\",\n sha256 = \"8b4baf93f58d4425749ca49a51c50ebab072c5df6994d08fed93541c331481dc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/itertools/0.15.0/download\"],\n strip_prefix = \"itertools-0.15.0\",\n build_file = Label(\"@crates//crates:BUILD.itertools-0.15.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__itoa-1.0.19\",\n sha256 = \"3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/itoa/1.0.19/download\"],\n strip_prefix = \"itoa-1.0.19\",\n build_file = Label(\"@crates//crates:BUILD.itoa-1.0.19.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__js-sys-0.3.98\",\n sha256 = \"67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/js-sys/0.3.98/download\"],\n strip_prefix = \"js-sys-0.3.98\",\n build_file = Label(\"@crates//crates:BUILD.js-sys-0.3.98.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__json-strip-comments-3.1.2\",\n sha256 = \"01ed659c5f428031b9c1fb7de6729af2eb491654d4bcd416a5b5b704986b9658\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/json-strip-comments/3.1.2/download\"],\n strip_prefix = \"json-strip-comments-3.1.2\",\n build_file = Label(\"@crates//crates:BUILD.json-strip-comments-3.1.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__lazy_static-1.5.1\",\n sha256 = \"20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/lazy_static/1.5.1/download\"],\n strip_prefix = \"lazy_static-1.5.1\",\n build_file = Label(\"@crates//crates:BUILD.lazy_static-1.5.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__libc-0.2.191\",\n sha256 = \"65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/libc/0.2.191/download\"],\n strip_prefix = \"libc-0.2.191\",\n build_file = Label(\"@crates//crates:BUILD.libc-0.2.191.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__linux-raw-sys-0.12.1\",\n sha256 = \"32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/linux-raw-sys/0.12.1/download\"],\n strip_prefix = \"linux-raw-sys-0.12.1\",\n build_file = Label(\"@crates//crates:BUILD.linux-raw-sys-0.12.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__litemap-0.8.3\",\n sha256 = \"47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/litemap/0.8.3/download\"],\n strip_prefix = \"litemap-0.8.3\",\n build_file = Label(\"@crates//crates:BUILD.litemap-0.8.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__lock_api-0.4.14\",\n sha256 = \"224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/lock_api/0.4.14/download\"],\n strip_prefix = \"lock_api-0.4.14\",\n build_file = Label(\"@crates//crates:BUILD.lock_api-0.4.14.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__memchr-2.8.3\",\n sha256 = \"cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/memchr/2.8.3/download\"],\n strip_prefix = \"memchr-2.8.3\",\n build_file = Label(\"@crates//crates:BUILD.memchr-2.8.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__nodejs-built-in-modules-1.0.0\",\n sha256 = \"a5eb86a92577833b75522336f210c49d9ebd7dd55a44d80a92e68c668a75f27c\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/nodejs-built-in-modules/1.0.0/download\"],\n strip_prefix = \"nodejs-built-in-modules-1.0.0\",\n build_file = Label(\"@crates//crates:BUILD.nodejs-built-in-modules-1.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__nonmax-0.5.5\",\n sha256 = \"610a5acd306ec67f907abe5567859a3c693fb9886eb1f012ab8f2a47bef3db51\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/nonmax/0.5.5/download\"],\n strip_prefix = \"nonmax-0.5.5\",\n build_file = Label(\"@crates//crates:BUILD.nonmax-0.5.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__num-bigint-0.5.1\",\n sha256 = \"93e7820bc0a80a0238e650327316f929ba18d5be054b647490a3a6a339f3e7c0\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/num-bigint/0.5.1/download\"],\n strip_prefix = \"num-bigint-0.5.1\",\n build_file = Label(\"@crates//crates:BUILD.num-bigint-0.5.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__num-integer-0.1.47\",\n sha256 = \"7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/num-integer/0.1.47/download\"],\n strip_prefix = \"num-integer-0.1.47\",\n build_file = Label(\"@crates//crates:BUILD.num-integer-0.1.47.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__num-traits-0.2.19\",\n sha256 = \"071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/num-traits/0.2.19/download\"],\n strip_prefix = \"num-traits-0.2.19\",\n build_file = Label(\"@crates//crates:BUILD.num-traits-0.2.19.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__once_cell-1.21.4\",\n sha256 = \"9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/once_cell/1.21.4/download\"],\n strip_prefix = \"once_cell-1.21.4\",\n build_file = Label(\"@crates//crates:BUILD.once_cell-1.21.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__owo-colors-4.4.0\",\n sha256 = \"13c45bb4a6ae1280ec0803b1ef9d3455eb50f01efbbe1447ab020f1d54fba9d8\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/owo-colors/4.4.0/download\"],\n strip_prefix = \"owo-colors-4.4.0\",\n build_file = Label(\"@crates//crates:BUILD.owo-colors-4.4.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc-miette-4.0.0\",\n sha256 = \"330e07b3807046e0afa8fcc94f1fe976e93831b370d148bfe1168cb53da1b913\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc-miette/4.0.0/download\"],\n strip_prefix = \"oxc-miette-4.0.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc-miette-4.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc-miette-derive-3.0.1\",\n sha256 = \"acc072d11d45ebe7801459b4e829184ba0934d68027fdc51d327335b53a95a49\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc-miette-derive/3.0.1/download\"],\n strip_prefix = \"oxc-miette-derive-3.0.1\",\n build_file = Label(\"@crates//crates:BUILD.oxc-miette-derive-3.0.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_allocator-0.144.0\",\n sha256 = \"9262c7bbd58c8c32c2c60d1a7b6c274cd2aeaff1b726a2fb86081b75084698cb\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_allocator/0.144.0/download\"],\n strip_prefix = \"oxc_allocator-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_allocator-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_ast-0.144.0\",\n sha256 = \"e8134809b665d524d9a0ddeee87a5d3602776aa2410a10a0439fd25eeb594a5d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_ast/0.144.0/download\"],\n strip_prefix = \"oxc_ast-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_ast-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_ast_macros-0.144.0\",\n sha256 = \"ac120c6863a9d036c78a42a5e4d2f58bb27c5df795d61d904f6e19e48c681a37\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_ast_macros/0.144.0/download\"],\n strip_prefix = \"oxc_ast_macros-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_ast_macros-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_ast_visit-0.144.0\",\n sha256 = \"4a57626cd6ef87f5173110a301868e3c438fd8e0576f489d9a61540ef133f686\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_ast_visit/0.144.0/download\"],\n strip_prefix = \"oxc_ast_visit-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_ast_visit-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_data_structures-0.144.0\",\n sha256 = \"2a71efea56db93d3ce9e88e1d9f74f6d50fc2b06092444cdd08579f5827fd8db\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_data_structures/0.144.0/download\"],\n strip_prefix = \"oxc_data_structures-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_data_structures-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_diagnostics-0.144.0\",\n sha256 = \"e5ff8638533094ecdcd38a63930c003c261d81650e4531c3bc805c797aec2a52\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_diagnostics/0.144.0/download\"],\n strip_prefix = \"oxc_diagnostics-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_diagnostics-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_ecmascript-0.144.0\",\n sha256 = \"77c7a326f49f06da37affdcad2fb3ebab46ac4ada8953a428f7cbd04e5cc9e6e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_ecmascript/0.144.0/download\"],\n strip_prefix = \"oxc_ecmascript-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_ecmascript-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_estree-0.144.0\",\n sha256 = \"8275fcb9674a1c320f0bdbc2f534ba9bb09fcb8b1c9fe306c9595d262a06bfcb\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_estree/0.144.0/download\"],\n strip_prefix = \"oxc_estree-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_estree-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_index-5.0.0\",\n sha256 = \"191884bee6c3744909a51acc7d78d4ae370d817b25875b10642f632327b6296e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_index/5.0.0/download\"],\n strip_prefix = \"oxc_index-5.0.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_index-5.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_parser-0.144.0\",\n sha256 = \"d13016de81370106ea4065cfabe4a278dc09e82523cfe22bb6a8ab8e993b4c3a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_parser/0.144.0/download\"],\n strip_prefix = \"oxc_parser-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_parser-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_regular_expression-0.144.0\",\n sha256 = \"c375b89d88ec03301b0e62528715699551871861197aa39148e95a1422e1ae9b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_regular_expression/0.144.0/download\"],\n strip_prefix = \"oxc_regular_expression-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_regular_expression-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_resolver-11.24.3\",\n sha256 = \"2c7fd0839a5ecee17c0d2c88c8006e8ab4dff25d4a79e3a0bf7a9f0cce17f4e3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_resolver/11.24.3/download\"],\n strip_prefix = \"oxc_resolver-11.24.3\",\n build_file = Label(\"@crates//crates:BUILD.oxc_resolver-11.24.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_semantic-0.144.0\",\n sha256 = \"0d8d80604c4220c8f5b1c19682216921397fb45a616db47d3a044474662f0c2e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_semantic/0.144.0/download\"],\n strip_prefix = \"oxc_semantic-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_semantic-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_span-0.144.0\",\n sha256 = \"abd732008dbfb09984106925f7ff7268687c8020b89bd7ee0f0b695c5bb07950\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_span/0.144.0/download\"],\n strip_prefix = \"oxc_span-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_span-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_str-0.144.0\",\n sha256 = \"e1d2ccb0f5aa4da9fc98ef70f59553c2779e28e064a8b271fcb1e88c11a63607\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_str/0.144.0/download\"],\n strip_prefix = \"oxc_str-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_str-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__oxc_syntax-0.144.0\",\n sha256 = \"15ff0e987ab15a71dae36fd544b9859513e76639e2cc6c5e25895081162755b1\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/oxc_syntax/0.144.0/download\"],\n strip_prefix = \"oxc_syntax-0.144.0\",\n build_file = Label(\"@crates//crates:BUILD.oxc_syntax-0.144.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__parking_lot_core-0.9.12\",\n sha256 = \"2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/parking_lot_core/0.9.12/download\"],\n strip_prefix = \"parking_lot_core-0.9.12\",\n build_file = Label(\"@crates//crates:BUILD.parking_lot_core-0.9.12.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pathdiff-0.2.3\",\n sha256 = \"df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pathdiff/0.2.3/download\"],\n strip_prefix = \"pathdiff-0.2.3\",\n build_file = Label(\"@crates//crates:BUILD.pathdiff-0.2.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__percent-encoding-2.3.2\",\n sha256 = \"9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/percent-encoding/2.3.2/download\"],\n strip_prefix = \"percent-encoding-2.3.2\",\n build_file = Label(\"@crates//crates:BUILD.percent-encoding-2.3.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__phf-0.14.0\",\n sha256 = \"010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/phf/0.14.0/download\"],\n strip_prefix = \"phf-0.14.0\",\n build_file = Label(\"@crates//crates:BUILD.phf-0.14.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__phf_generator-0.14.0\",\n sha256 = \"aeb62e0959d5a1bebc965f4d15d9e2b7cea002b6b0f5ba8cde6cc26738467100\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/phf_generator/0.14.0/download\"],\n strip_prefix = \"phf_generator-0.14.0\",\n build_file = Label(\"@crates//crates:BUILD.phf_generator-0.14.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__phf_macros-0.14.0\",\n sha256 = \"5fa8d0ca26d424d27630da600c6624696e7dec8bf7b3b492b383c5dc49e5e085\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/phf_macros/0.14.0/download\"],\n strip_prefix = \"phf_macros-0.14.0\",\n build_file = Label(\"@crates//crates:BUILD.phf_macros-0.14.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__phf_shared-0.14.0\",\n sha256 = \"c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/phf_shared/0.14.0/download\"],\n strip_prefix = \"phf_shared-0.14.0\",\n build_file = Label(\"@crates//crates:BUILD.phf_shared-0.14.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__pin-project-lite-0.2.17\",\n sha256 = \"a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/pin-project-lite/0.2.17/download\"],\n strip_prefix = \"pin-project-lite-0.2.17\",\n build_file = Label(\"@crates//crates:BUILD.pin-project-lite-0.2.17.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__potential_utf-0.1.6\",\n sha256 = \"d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/potential_utf/0.1.6/download\"],\n strip_prefix = \"potential_utf-0.1.6\",\n build_file = Label(\"@crates//crates:BUILD.potential_utf-0.1.6.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__proc-macro2-1.0.107\",\n sha256 = \"985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/proc-macro2/1.0.107/download\"],\n strip_prefix = \"proc-macro2-1.0.107\",\n build_file = Label(\"@crates//crates:BUILD.proc-macro2-1.0.107.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__quote-1.0.47\",\n sha256 = \"1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/quote/1.0.47/download\"],\n strip_prefix = \"quote-1.0.47\",\n build_file = Label(\"@crates//crates:BUILD.quote-1.0.47.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__r-efi-6.0.0\",\n sha256 = \"f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/r-efi/6.0.0/download\"],\n strip_prefix = \"r-efi-6.0.0\",\n build_file = Label(\"@crates//crates:BUILD.r-efi-6.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__redox_syscall-0.5.18\",\n sha256 = \"ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/redox_syscall/0.5.18/download\"],\n strip_prefix = \"redox_syscall-0.5.18\",\n build_file = Label(\"@crates//crates:BUILD.redox_syscall-0.5.18.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ref-cast-1.0.27\",\n sha256 = \"7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ref-cast/1.0.27/download\"],\n strip_prefix = \"ref-cast-1.0.27\",\n build_file = Label(\"@crates//crates:BUILD.ref-cast-1.0.27.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ref-cast-impl-1.0.27\",\n sha256 = \"92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ref-cast-impl/1.0.27/download\"],\n strip_prefix = \"ref-cast-impl-1.0.27\",\n build_file = Label(\"@crates//crates:BUILD.ref-cast-impl-1.0.27.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__regex-1.13.1\",\n sha256 = \"f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/regex/1.13.1/download\"],\n strip_prefix = \"regex-1.13.1\",\n build_file = Label(\"@crates//crates:BUILD.regex-1.13.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__regex-automata-0.4.18\",\n sha256 = \"ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/regex-automata/0.4.18/download\"],\n strip_prefix = \"regex-automata-0.4.18\",\n build_file = Label(\"@crates//crates:BUILD.regex-automata-0.4.18.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__regex-syntax-0.8.11\",\n sha256 = \"d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/regex-syntax/0.8.11/download\"],\n strip_prefix = \"regex-syntax-0.8.11\",\n build_file = Label(\"@crates//crates:BUILD.regex-syntax-0.8.11.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rustc-hash-2.1.3\",\n sha256 = \"6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rustc-hash/2.1.3/download\"],\n strip_prefix = \"rustc-hash-2.1.3\",\n build_file = Label(\"@crates//crates:BUILD.rustc-hash-2.1.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rustix-1.1.6\",\n sha256 = \"e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rustix/1.1.6/download\"],\n strip_prefix = \"rustix-1.1.6\",\n build_file = Label(\"@crates//crates:BUILD.rustix-1.1.6.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__rustversion-1.0.23\",\n sha256 = \"cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/rustversion/1.0.23/download\"],\n strip_prefix = \"rustversion-1.0.23\",\n build_file = Label(\"@crates//crates:BUILD.rustversion-1.0.23.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__ryu-1.0.23\",\n sha256 = \"9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/ryu/1.0.23/download\"],\n strip_prefix = \"ryu-1.0.23\",\n build_file = Label(\"@crates//crates:BUILD.ryu-1.0.23.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__scopeguard-1.2.0\",\n sha256 = \"94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/scopeguard/1.2.0/download\"],\n strip_prefix = \"scopeguard-1.2.0\",\n build_file = Label(\"@crates//crates:BUILD.scopeguard-1.2.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__self_cell-1.3.0\",\n sha256 = \"2ab42ca02749e120097e328d91d415325bdf43b1c72c4c8badf37375fe40a813\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/self_cell/1.3.0/download\"],\n strip_prefix = \"self_cell-1.3.0\",\n build_file = Label(\"@crates//crates:BUILD.self_cell-1.3.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__seq-macro-0.3.6\",\n sha256 = \"1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/seq-macro/0.3.6/download\"],\n strip_prefix = \"seq-macro-0.3.6\",\n build_file = Label(\"@crates//crates:BUILD.seq-macro-0.3.6.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde-1.0.229\",\n sha256 = \"4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde/1.0.229/download\"],\n strip_prefix = \"serde-1.0.229\",\n build_file = Label(\"@crates//crates:BUILD.serde-1.0.229.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde_core-1.0.229\",\n sha256 = \"67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde_core/1.0.229/download\"],\n strip_prefix = \"serde_core-1.0.229\",\n build_file = Label(\"@crates//crates:BUILD.serde_core-1.0.229.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde_derive-1.0.229\",\n sha256 = \"e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde_derive/1.0.229/download\"],\n strip_prefix = \"serde_derive-1.0.229\",\n build_file = Label(\"@crates//crates:BUILD.serde_derive-1.0.229.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__serde_json-1.0.154\",\n sha256 = \"e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/serde_json/1.0.154/download\"],\n strip_prefix = \"serde_json-1.0.154\",\n build_file = Label(\"@crates//crates:BUILD.serde_json-1.0.154.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__sharded-slab-0.1.7\",\n sha256 = \"f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/sharded-slab/0.1.7/download\"],\n strip_prefix = \"sharded-slab-0.1.7\",\n build_file = Label(\"@crates//crates:BUILD.sharded-slab-0.1.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__simd-json-0.18.1\",\n sha256 = \"6ebe141eb4a23ecc4d5de93fa5b139ac65dc07c38037a2fe9a8fb7c9d36bd832\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/simd-json/0.18.1/download\"],\n strip_prefix = \"simd-json-0.18.1\",\n build_file = Label(\"@crates//crates:BUILD.simd-json-0.18.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__simdutf8-0.1.5\",\n sha256 = \"e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/simdutf8/0.1.5/download\"],\n strip_prefix = \"simdutf8-0.1.5\",\n build_file = Label(\"@crates//crates:BUILD.simdutf8-0.1.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__siphasher-1.0.4\",\n sha256 = \"33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/siphasher/1.0.4/download\"],\n strip_prefix = \"siphasher-1.0.4\",\n build_file = Label(\"@crates//crates:BUILD.siphasher-1.0.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__slab-0.4.12\",\n sha256 = \"0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/slab/0.4.12/download\"],\n strip_prefix = \"slab-0.4.12\",\n build_file = Label(\"@crates//crates:BUILD.slab-0.4.12.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__smallvec-1.16.5\",\n sha256 = \"149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/smallvec/1.16.5/download\"],\n strip_prefix = \"smallvec-1.16.5\",\n build_file = Label(\"@crates//crates:BUILD.smallvec-1.16.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__smawk-0.3.3\",\n sha256 = \"e8e2fb0f499abb4d162f2bedad68f5ef91a1682b5a03596ddb67efd37768d100\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/smawk/0.3.3/download\"],\n strip_prefix = \"smawk-0.3.3\",\n build_file = Label(\"@crates//crates:BUILD.smawk-0.3.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__stable_deref_trait-1.2.1\",\n sha256 = \"6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/stable_deref_trait/1.2.1/download\"],\n strip_prefix = \"stable_deref_trait-1.2.1\",\n build_file = Label(\"@crates//crates:BUILD.stable_deref_trait-1.2.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__static_assertions-1.1.0\",\n sha256 = \"a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/static_assertions/1.1.0/download\"],\n strip_prefix = \"static_assertions-1.1.0\",\n build_file = Label(\"@crates//crates:BUILD.static_assertions-1.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__syn-2.0.119\",\n sha256 = \"872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/syn/2.0.119/download\"],\n strip_prefix = \"syn-2.0.119\",\n build_file = Label(\"@crates//crates:BUILD.syn-2.0.119.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__syn-3.0.10\",\n sha256 = \"4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/syn/3.0.10/download\"],\n strip_prefix = \"syn-3.0.10\",\n build_file = Label(\"@crates//crates:BUILD.syn-3.0.10.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__synstructure-0.14.0\",\n sha256 = \"901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/synstructure/0.14.0/download\"],\n strip_prefix = \"synstructure-0.14.0\",\n build_file = Label(\"@crates//crates:BUILD.synstructure-0.14.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__tempfile-3.27.0\",\n sha256 = \"32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/tempfile/3.27.0/download\"],\n strip_prefix = \"tempfile-3.27.0\",\n build_file = Label(\"@crates//crates:BUILD.tempfile-3.27.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__textwrap-0.16.4\",\n sha256 = \"6ecfad6c3abc80a577f2b91c1e412ee57e7a060d430b553c1b0c940974ebcd49\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/textwrap/0.16.4/download\"],\n strip_prefix = \"textwrap-0.16.4\",\n build_file = Label(\"@crates//crates:BUILD.textwrap-0.16.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__thiserror-2.0.21\",\n sha256 = \"09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/thiserror/2.0.21/download\"],\n strip_prefix = \"thiserror-2.0.21\",\n build_file = Label(\"@crates//crates:BUILD.thiserror-2.0.21.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__thiserror-impl-2.0.21\",\n sha256 = \"fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/thiserror-impl/2.0.21/download\"],\n strip_prefix = \"thiserror-impl-2.0.21\",\n build_file = Label(\"@crates//crates:BUILD.thiserror-impl-2.0.21.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__thread_local-1.1.10\",\n sha256 = \"1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/thread_local/1.1.10/download\"],\n strip_prefix = \"thread_local-1.1.10\",\n build_file = Label(\"@crates//crates:BUILD.thread_local-1.1.10.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__tinystr-0.8.5\",\n sha256 = \"abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/tinystr/0.8.5/download\"],\n strip_prefix = \"tinystr-0.8.5\",\n build_file = Label(\"@crates//crates:BUILD.tinystr-0.8.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__tracing-0.1.44\",\n sha256 = \"63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/tracing/0.1.44/download\"],\n strip_prefix = \"tracing-0.1.44\",\n build_file = Label(\"@crates//crates:BUILD.tracing-0.1.44.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__tracing-attributes-0.1.31\",\n sha256 = \"7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/tracing-attributes/0.1.31/download\"],\n strip_prefix = \"tracing-attributes-0.1.31\",\n build_file = Label(\"@crates//crates:BUILD.tracing-attributes-0.1.31.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__tracing-core-0.1.36\",\n sha256 = \"db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/tracing-core/0.1.36/download\"],\n strip_prefix = \"tracing-core-0.1.36\",\n build_file = Label(\"@crates//crates:BUILD.tracing-core-0.1.36.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__tracing-subscriber-0.3.23\",\n sha256 = \"cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/tracing-subscriber/0.3.23/download\"],\n strip_prefix = \"tracing-subscriber-0.3.23\",\n build_file = Label(\"@crates//crates:BUILD.tracing-subscriber-0.3.23.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__unicode-id-start-1.5.0\",\n sha256 = \"0825d2e09dcae814a4273c1e1435979d414ede25b2ee235b1545da6682483765\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/unicode-id-start/1.5.0/download\"],\n strip_prefix = \"unicode-id-start-1.5.0\",\n build_file = Label(\"@crates//crates:BUILD.unicode-id-start-1.5.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__unicode-ident-1.0.27\",\n sha256 = \"a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/unicode-ident/1.0.27/download\"],\n strip_prefix = \"unicode-ident-1.0.27\",\n build_file = Label(\"@crates//crates:BUILD.unicode-ident-1.0.27.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__unicode-segmentation-1.13.3\",\n sha256 = \"c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/unicode-segmentation/1.13.3/download\"],\n strip_prefix = \"unicode-segmentation-1.13.3\",\n build_file = Label(\"@crates//crates:BUILD.unicode-segmentation-1.13.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__unicode-width-0.2.3\",\n sha256 = \"ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/unicode-width/0.2.3/download\"],\n strip_prefix = \"unicode-width-0.2.3\",\n build_file = Label(\"@crates//crates:BUILD.unicode-width-0.2.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__utf8_iter-1.1.0\",\n sha256 = \"af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/utf8_iter/1.1.0/download\"],\n strip_prefix = \"utf8_iter-1.1.0\",\n build_file = Label(\"@crates//crates:BUILD.utf8_iter-1.1.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__utf_types-1.0.0\",\n sha256 = \"3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/utf_types/1.0.0/download\"],\n strip_prefix = \"utf_types-1.0.0\",\n build_file = Label(\"@crates//crates:BUILD.utf_types-1.0.0.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__value-trait-0.12.3\",\n sha256 = \"545a3d7089f11f1741d12963c057adf9443fc24325110a6a6daf582e825fd51b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/value-trait/0.12.3/download\"],\n strip_prefix = \"value-trait-0.12.3\",\n build_file = Label(\"@crates//crates:BUILD.value-trait-0.12.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__wasm-bindgen-0.2.121\",\n sha256 = \"49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/wasm-bindgen/0.2.121/download\"],\n strip_prefix = \"wasm-bindgen-0.2.121\",\n build_file = Label(\"@crates//crates:BUILD.wasm-bindgen-0.2.121.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__wasm-bindgen-macro-0.2.121\",\n sha256 = \"8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/wasm-bindgen-macro/0.2.121/download\"],\n strip_prefix = \"wasm-bindgen-macro-0.2.121\",\n build_file = Label(\"@crates//crates:BUILD.wasm-bindgen-macro-0.2.121.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__wasm-bindgen-macro-support-0.2.121\",\n sha256 = \"d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/wasm-bindgen-macro-support/0.2.121/download\"],\n strip_prefix = \"wasm-bindgen-macro-support-0.2.121\",\n build_file = Label(\"@crates//crates:BUILD.wasm-bindgen-macro-support-0.2.121.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__wasm-bindgen-shared-0.2.121\",\n sha256 = \"c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/wasm-bindgen-shared/0.2.121/download\"],\n strip_prefix = \"wasm-bindgen-shared-0.2.121\",\n build_file = Label(\"@crates//crates:BUILD.wasm-bindgen-shared-0.2.121.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-0.62.2\",\n sha256 = \"527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows/0.62.2/download\"],\n strip_prefix = \"windows-0.62.2\",\n build_file = Label(\"@crates//crates:BUILD.windows-0.62.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-collections-0.3.2\",\n sha256 = \"23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-collections/0.3.2/download\"],\n strip_prefix = \"windows-collections-0.3.2\",\n build_file = Label(\"@crates//crates:BUILD.windows-collections-0.3.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-core-0.62.2\",\n sha256 = \"b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-core/0.62.2/download\"],\n strip_prefix = \"windows-core-0.62.2\",\n build_file = Label(\"@crates//crates:BUILD.windows-core-0.62.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-future-0.3.2\",\n sha256 = \"e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-future/0.3.2/download\"],\n strip_prefix = \"windows-future-0.3.2\",\n build_file = Label(\"@crates//crates:BUILD.windows-future-0.3.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-implement-0.60.2\",\n sha256 = \"053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-implement/0.60.2/download\"],\n strip_prefix = \"windows-implement-0.60.2\",\n build_file = Label(\"@crates//crates:BUILD.windows-implement-0.60.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-interface-0.59.3\",\n sha256 = \"3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-interface/0.59.3/download\"],\n strip_prefix = \"windows-interface-0.59.3\",\n build_file = Label(\"@crates//crates:BUILD.windows-interface-0.59.3.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-link-0.2.1\",\n sha256 = \"f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-link/0.2.1/download\"],\n strip_prefix = \"windows-link-0.2.1\",\n build_file = Label(\"@crates//crates:BUILD.windows-link-0.2.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-numerics-0.3.1\",\n sha256 = \"6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-numerics/0.3.1/download\"],\n strip_prefix = \"windows-numerics-0.3.1\",\n build_file = Label(\"@crates//crates:BUILD.windows-numerics-0.3.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-result-0.4.1\",\n sha256 = \"7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-result/0.4.1/download\"],\n strip_prefix = \"windows-result-0.4.1\",\n build_file = Label(\"@crates//crates:BUILD.windows-result-0.4.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-strings-0.5.1\",\n sha256 = \"7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-strings/0.5.1/download\"],\n strip_prefix = \"windows-strings-0.5.1\",\n build_file = Label(\"@crates//crates:BUILD.windows-strings-0.5.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-sys-0.61.2\",\n sha256 = \"ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-sys/0.61.2/download\"],\n strip_prefix = \"windows-sys-0.61.2\",\n build_file = Label(\"@crates//crates:BUILD.windows-sys-0.61.2.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__windows-threading-0.2.1\",\n sha256 = \"3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/windows-threading/0.2.1/download\"],\n strip_prefix = \"windows-threading-0.2.1\",\n build_file = Label(\"@crates//crates:BUILD.windows-threading-0.2.1.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__writeable-0.6.4\",\n sha256 = \"3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/writeable/0.6.4/download\"],\n strip_prefix = \"writeable-0.6.4\",\n build_file = Label(\"@crates//crates:BUILD.writeable-0.6.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__yoke-0.8.4\",\n sha256 = \"417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/yoke/0.8.4/download\"],\n strip_prefix = \"yoke-0.8.4\",\n build_file = Label(\"@crates//crates:BUILD.yoke-0.8.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__yoke-derive-0.8.4\",\n sha256 = \"ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/yoke-derive/0.8.4/download\"],\n strip_prefix = \"yoke-derive-0.8.4\",\n build_file = Label(\"@crates//crates:BUILD.yoke-derive-0.8.4.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerofrom-0.1.8\",\n sha256 = \"0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerofrom/0.1.8/download\"],\n strip_prefix = \"zerofrom-0.1.8\",\n build_file = Label(\"@crates//crates:BUILD.zerofrom-0.1.8.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerofrom-derive-0.1.8\",\n sha256 = \"f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerofrom-derive/0.1.8/download\"],\n strip_prefix = \"zerofrom-derive-0.1.8\",\n build_file = Label(\"@crates//crates:BUILD.zerofrom-derive-0.1.8.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerotrie-0.2.5\",\n sha256 = \"4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerotrie/0.2.5/download\"],\n strip_prefix = \"zerotrie-0.2.5\",\n build_file = Label(\"@crates//crates:BUILD.zerotrie-0.2.5.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerovec-0.11.9\",\n sha256 = \"f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerovec/0.11.9/download\"],\n strip_prefix = \"zerovec-0.11.9\",\n build_file = Label(\"@crates//crates:BUILD.zerovec-0.11.9.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zerovec-derive-0.11.7\",\n sha256 = \"c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zerovec-derive/0.11.7/download\"],\n strip_prefix = \"zerovec-derive-0.11.7\",\n build_file = Label(\"@crates//crates:BUILD.zerovec-derive-0.11.7.bazel\"),\n )\n\n maybe(\n http_archive,\n name = \"crates__zmij-1.0.23\",\n sha256 = \"29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b\",\n type = \"tar.gz\",\n urls = [\"https://static.crates.io/crates/zmij/1.0.23/download\"],\n strip_prefix = \"zmij-1.0.23\",\n build_file = Label(\"@crates//crates:BUILD.zmij-1.0.23.bazel\"),\n )\n\n return [\n struct(repo = \"crates\", is_dev_dep = False),\n struct(repo=\"crates__futures-0.3.34\", is_dev_dep = False),\n struct(repo=\"crates__glob-0.3.4\", is_dev_dep = False),\n struct(repo=\"crates__js-sys-0.3.98\", is_dev_dep = False),\n struct(repo=\"crates__json-strip-comments-3.1.2\", is_dev_dep = False),\n struct(repo=\"crates__oxc-miette-derive-3.0.1\", is_dev_dep = False),\n struct(repo=\"crates__oxc_allocator-0.144.0\", is_dev_dep = False),\n struct(repo=\"crates__oxc_ast-0.144.0\", is_dev_dep = False),\n struct(repo=\"crates__oxc_ast_visit-0.144.0\", is_dev_dep = False),\n struct(repo=\"crates__oxc_diagnostics-0.144.0\", is_dev_dep = False),\n struct(repo=\"crates__oxc_parser-0.144.0\", is_dev_dep = False),\n struct(repo=\"crates__oxc_resolver-11.24.3\", is_dev_dep = False),\n struct(repo=\"crates__oxc_semantic-0.144.0\", is_dev_dep = False),\n struct(repo=\"crates__oxc_span-0.144.0\", is_dev_dep = False),\n struct(repo=\"crates__oxc_syntax-0.144.0\", is_dev_dep = False),\n struct(repo=\"crates__pathdiff-0.2.3\", is_dev_dep = False),\n struct(repo=\"crates__regex-1.13.1\", is_dev_dep = False),\n struct(repo=\"crates__self_cell-1.3.0\", is_dev_dep = False),\n struct(repo=\"crates__serde-1.0.229\", is_dev_dep = False),\n struct(repo=\"crates__serde_json-1.0.154\", is_dev_dep = False),\n struct(repo=\"crates__tracing-0.1.44\", is_dev_dep = False),\n struct(repo=\"crates__tracing-subscriber-0.3.23\", is_dev_dep = False),\n struct(repo=\"crates__wasm-bindgen-0.2.121\", is_dev_dep = False),\n struct(repo = \"crates__tempfile-3.27.0\", is_dev_dep = True),\n ]\n", + "defs.bzl": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\"\"\"Deprecated: re-exports the crate_universe macros from `:crates.bzl`.\"\"\"\n\nload(\n \":crates.bzl\",\n _aliases = \"aliases\",\n _all_crate_deps = \"all_crate_deps\",\n _crate_deps = \"crate_deps\",\n _crate_edition = \"crate_edition\",\n _crate_repositories = \"crate_repositories\",\n)\n\naliases = _aliases\nall_crate_deps = _all_crate_deps\ncrate_deps = _crate_deps\ncrate_edition = _crate_edition\ncrate_repositories = _crate_repositories\n", + "futures-0.3.34/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"futures-0.3.34\",\n actual = \"@crates__futures-0.3.34//:futures\",\n tags = [\"manual\"],\n)\n", + "futures/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"futures\",\n actual = \"@crates__futures-0.3.34//:futures\",\n tags = [\"manual\"],\n)\n", + "glob-0.3.4/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"glob-0.3.4\",\n actual = \"@crates__glob-0.3.4//:glob\",\n tags = [\"manual\"],\n)\n", + "glob/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"glob\",\n actual = \"@crates__glob-0.3.4//:glob\",\n tags = [\"manual\"],\n)\n", + "js-sys-0.3.98/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"js-sys-0.3.98\",\n actual = \"@crates__js-sys-0.3.98//:js_sys\",\n tags = [\"manual\"],\n)\n", + "js-sys/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"js-sys\",\n actual = \"@crates__js-sys-0.3.98//:js_sys\",\n tags = [\"manual\"],\n)\n", + "json-strip-comments-3.1.2/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"json-strip-comments-3.1.2\",\n actual = \"@crates__json-strip-comments-3.1.2//:json_strip_comments\",\n tags = [\"manual\"],\n)\n", + "json-strip-comments/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"json-strip-comments\",\n actual = \"@crates__json-strip-comments-3.1.2//:json_strip_comments\",\n tags = [\"manual\"],\n)\n", + "oxc-miette-derive-3.0.1/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc-miette-derive-3.0.1\",\n actual = \"@crates__oxc-miette-derive-3.0.1//:oxc_miette_derive\",\n tags = [\"manual\"],\n)\n", + "oxc-miette-derive/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc-miette-derive\",\n actual = \"@crates__oxc-miette-derive-3.0.1//:oxc_miette_derive\",\n tags = [\"manual\"],\n)\n", + "oxc_allocator-0.144.0/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_allocator-0.144.0\",\n actual = \"@crates__oxc_allocator-0.144.0//:oxc_allocator\",\n tags = [\"manual\"],\n)\n", + "oxc_allocator/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_allocator\",\n actual = \"@crates__oxc_allocator-0.144.0//:oxc_allocator\",\n tags = [\"manual\"],\n)\n", + "oxc_ast-0.144.0/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_ast-0.144.0\",\n actual = \"@crates__oxc_ast-0.144.0//:oxc_ast\",\n tags = [\"manual\"],\n)\n", + "oxc_ast/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_ast\",\n actual = \"@crates__oxc_ast-0.144.0//:oxc_ast\",\n tags = [\"manual\"],\n)\n", + "oxc_ast_visit-0.144.0/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_ast_visit-0.144.0\",\n actual = \"@crates__oxc_ast_visit-0.144.0//:oxc_ast_visit\",\n tags = [\"manual\"],\n)\n", + "oxc_ast_visit/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_ast_visit\",\n actual = \"@crates__oxc_ast_visit-0.144.0//:oxc_ast_visit\",\n tags = [\"manual\"],\n)\n", + "oxc_diagnostics-0.144.0/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_diagnostics-0.144.0\",\n actual = \"@crates__oxc_diagnostics-0.144.0//:oxc_diagnostics\",\n tags = [\"manual\"],\n)\n", + "oxc_diagnostics/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_diagnostics\",\n actual = \"@crates__oxc_diagnostics-0.144.0//:oxc_diagnostics\",\n tags = [\"manual\"],\n)\n", + "oxc_parser-0.144.0/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_parser-0.144.0\",\n actual = \"@crates__oxc_parser-0.144.0//:oxc_parser\",\n tags = [\"manual\"],\n)\n", + "oxc_parser/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_parser\",\n actual = \"@crates__oxc_parser-0.144.0//:oxc_parser\",\n tags = [\"manual\"],\n)\n", + "oxc_resolver-11.24.3/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_resolver-11.24.3\",\n actual = \"@crates__oxc_resolver-11.24.3//:oxc_resolver\",\n tags = [\"manual\"],\n)\n", + "oxc_resolver/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_resolver\",\n actual = \"@crates__oxc_resolver-11.24.3//:oxc_resolver\",\n tags = [\"manual\"],\n)\n", + "oxc_semantic-0.144.0/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_semantic-0.144.0\",\n actual = \"@crates__oxc_semantic-0.144.0//:oxc_semantic\",\n tags = [\"manual\"],\n)\n", + "oxc_semantic/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_semantic\",\n actual = \"@crates__oxc_semantic-0.144.0//:oxc_semantic\",\n tags = [\"manual\"],\n)\n", + "oxc_span-0.144.0/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_span-0.144.0\",\n actual = \"@crates__oxc_span-0.144.0//:oxc_span\",\n tags = [\"manual\"],\n)\n", + "oxc_span/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_span\",\n actual = \"@crates__oxc_span-0.144.0//:oxc_span\",\n tags = [\"manual\"],\n)\n", + "oxc_syntax-0.144.0/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_syntax-0.144.0\",\n actual = \"@crates__oxc_syntax-0.144.0//:oxc_syntax\",\n tags = [\"manual\"],\n)\n", + "oxc_syntax/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"oxc_syntax\",\n actual = \"@crates__oxc_syntax-0.144.0//:oxc_syntax\",\n tags = [\"manual\"],\n)\n", + "pathdiff-0.2.3/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"pathdiff-0.2.3\",\n actual = \"@crates__pathdiff-0.2.3//:pathdiff\",\n tags = [\"manual\"],\n)\n", + "pathdiff/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"pathdiff\",\n actual = \"@crates__pathdiff-0.2.3//:pathdiff\",\n tags = [\"manual\"],\n)\n", + "regex-1.13.1/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"regex-1.13.1\",\n actual = \"@crates__regex-1.13.1//:regex\",\n tags = [\"manual\"],\n)\n", + "regex/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"regex\",\n actual = \"@crates__regex-1.13.1//:regex\",\n tags = [\"manual\"],\n)\n", + "self_cell-1.3.0/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"self_cell-1.3.0\",\n actual = \"@crates__self_cell-1.3.0//:self_cell\",\n tags = [\"manual\"],\n)\n", + "self_cell/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"self_cell\",\n actual = \"@crates__self_cell-1.3.0//:self_cell\",\n tags = [\"manual\"],\n)\n", + "serde-1.0.229/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"serde-1.0.229\",\n actual = \"@crates__serde-1.0.229//:serde\",\n tags = [\"manual\"],\n)\n", + "serde/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"serde\",\n actual = \"@crates__serde-1.0.229//:serde\",\n tags = [\"manual\"],\n)\n", + "serde_json-1.0.154/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"serde_json-1.0.154\",\n actual = \"@crates__serde_json-1.0.154//:serde_json\",\n tags = [\"manual\"],\n)\n", + "serde_json/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"serde_json\",\n actual = \"@crates__serde_json-1.0.154//:serde_json\",\n tags = [\"manual\"],\n)\n", + "tempfile-3.27.0/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"tempfile-3.27.0\",\n actual = \"@crates__tempfile-3.27.0//:tempfile\",\n tags = [\"manual\"],\n)\n", + "tempfile/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"tempfile\",\n actual = \"@crates__tempfile-3.27.0//:tempfile\",\n tags = [\"manual\"],\n)\n", + "tracing-0.1.44/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"tracing-0.1.44\",\n actual = \"@crates__tracing-0.1.44//:tracing\",\n tags = [\"manual\"],\n)\n", + "tracing/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"tracing\",\n actual = \"@crates__tracing-0.1.44//:tracing\",\n tags = [\"manual\"],\n)\n", + "tracing-subscriber-0.3.23/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"tracing-subscriber-0.3.23\",\n actual = \"@crates__tracing-subscriber-0.3.23//:tracing_subscriber\",\n tags = [\"manual\"],\n)\n", + "tracing-subscriber/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"tracing-subscriber\",\n actual = \"@crates__tracing-subscriber-0.3.23//:tracing_subscriber\",\n tags = [\"manual\"],\n)\n", + "wasm-bindgen-0.2.121/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"wasm-bindgen-0.2.121\",\n actual = \"@crates__wasm-bindgen-0.2.121//:wasm_bindgen\",\n tags = [\"manual\"],\n)\n", + "wasm-bindgen/BUILD.bazel": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\npackage(default_visibility = [\"//visibility:public\"])\n\nalias(\n name = \"wasm-bindgen\",\n actual = \"@crates__wasm-bindgen-0.2.121//:wasm_bindgen\",\n tags = [\"manual\"],\n)\n" + } + } + }, + "crates__aho-corasick-1.1.5": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "file": "@rules_sass//src/compiler/built:sass_linux_x64", - "sha256": "", - "constraints": [ - "@@platforms//os:linux", - "@@platforms//cpu:x86_64" - ] + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/aho-corasick/1.1.5/download" + ], + "strip_prefix": "aho-corasick-1.1.5", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"aho_corasick\",\n deps = [\n \"@crates__memchr-2.8.3//:memchr\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"perf-literal\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=aho-corasick\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.1.5\",\n)\n" } }, - "linux_arm64_sass": { - "repoRuleId": "@@rules_sass+//src/toolchain:configure_sass.bzl%configure_sass", + "crates__allocator-api2-0.2.21": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "file": "@rules_sass//src/compiler/built:sass_linux_arm", - "sha256": "", - "constraints": [ - "@@platforms//os:linux", - "@@platforms//cpu:arm64" - ] + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/allocator-api2/0.2.21/download" + ], + "strip_prefix": "allocator-api2-0.2.21", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"allocator_api2\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=allocator-api2\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.21\",\n)\n" } }, - "darwin_amd64_sass": { - "repoRuleId": "@@rules_sass+//src/toolchain:configure_sass.bzl%configure_sass", + "crates__arrayvec-0.7.8": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "file": "@rules_sass//src/compiler/built:sass_mac_x64", - "sha256": "", - "constraints": [ - "@@platforms//os:macos", - "@@platforms//cpu:x86_64" - ] + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/arrayvec/0.7.8/download" + ], + "strip_prefix": "arrayvec-0.7.8", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"arrayvec\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=arrayvec\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.7.8\",\n)\n" } }, - "darwin_arm64_sass": { - "repoRuleId": "@@rules_sass+//src/toolchain:configure_sass.bzl%configure_sass", + "crates__autocfg-1.5.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "file": "@rules_sass//src/compiler/built:sass_mac_arm", - "sha256": "", - "constraints": [ - "@@platforms//os:macos", - "@@platforms//cpu:arm64" - ] + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/autocfg/1.5.1/download" + ], + "strip_prefix": "autocfg-1.5.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"autocfg\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2015\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=autocfg\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.5.1\",\n)\n" } - } - }, - "recordedRepoMappingEntries": [] - } - }, - "@@yq.bzl+//yq:extensions.bzl%yq": { - "general": { - "bzlTransitiveDigest": "UfFMy8CWK4/dVo/tfaSAIYUiDGNAPes5eRllx9O9Q9Q=", - "usagesDigest": "wN/YWfsKT2hjjsIqTeV8v4xlUGOP49JgAF/RHTls0yE=", - "recordedFileInputs": {}, - "recordedDirentsInputs": {}, - "envVariables": {}, - "generatedRepoSpecs": { - "yq_darwin_amd64": { - "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + }, + "crates__bitflags-2.13.2": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "platform": "darwin_amd64", - "version": "4.45.2" + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/bitflags/2.13.2/download" + ], + "strip_prefix": "bitflags-2.13.2", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"bitflags\",\n deps = [\n \"@crates__serde_core-1.0.229//:serde_core\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"serde\",\n \"serde_core\",\n ] + select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [\n \"std\", # aarch64-apple-darwin\n ],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [\n \"std\", # aarch64-unknown-linux-gnu\n ],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [\n \"std\", # wasm32-wasip1\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [\n \"std\", # x86_64-unknown-linux-gnu\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [\n \"std\", # x86_64-unknown-linux-gnu, x86_64-unknown-nixos-gnu\n ],\n \"//conditions:default\": [],\n }),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=bitflags\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.13.2\",\n)\n" } }, - "yq_darwin_arm64": { - "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "crates__bumpalo-3.20.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "platform": "darwin_arm64", - "version": "4.45.2" + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/bumpalo/3.20.3/download" + ], + "strip_prefix": "bumpalo-3.20.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"bumpalo\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=bumpalo\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"3.20.3\",\n)\n" } }, - "yq_linux_amd64": { - "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "crates__bytecount-0.6.9": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "platform": "linux_amd64", - "version": "4.45.2" + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/bytecount/0.6.9/download" + ], + "strip_prefix": "bytecount-0.6.9", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"bytecount\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=bytecount\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.6.9\",\n)\n" } }, - "yq_linux_arm64": { - "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "crates__castaway-0.2.4": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "platform": "linux_arm64", - "version": "4.45.2" + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "dec551ab6e7578819132c713a93c022a05d60159dc86e7a7050223577484c55a", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/castaway/0.2.4/download" + ], + "strip_prefix": "castaway-0.2.4", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"castaway\",\n proc_macro_deps = [\n \"@crates__rustversion-1.0.23//:rustversion\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=castaway\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.4\",\n)\n" } }, - "yq_linux_s390x": { - "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "crates__cfg-if-1.0.5": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "platform": "linux_s390x", - "version": "4.45.2" + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/cfg-if/1.0.5/download" + ], + "strip_prefix": "cfg-if-1.0.5", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"cfg_if\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=cfg-if\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.5\",\n)\n" } }, - "yq_linux_riscv64": { - "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "crates__compact_str-0.10.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "platform": "linux_riscv64", - "version": "4.45.2" + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "79fcda08c33bb58b97008b2cdada6622500e949e060f5913361763121abd2416", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/compact_str/0.10.0/download" + ], + "strip_prefix": "compact_str-0.10.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"compact_str\",\n deps = [\n \"@crates__castaway-0.2.4//:castaway\",\n \"@crates__cfg-if-1.0.5//:cfg_if\",\n \"@crates__itoa-1.0.19//:itoa\",\n \"@crates__serde-1.0.229//:serde\",\n \"@crates__static_assertions-1.1.0//:static_assertions\",\n \"@crates__zmij-1.0.23//:zmij\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"serde\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=compact_str\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.10.0\",\n)\n" } }, - "yq_linux_ppc64le": { - "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "crates__cow-utils-0.1.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "platform": "linux_ppc64le", - "version": "4.45.2" + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "417bef24afe1460300965a25ff4a24b8b45ad011948302ec221e8a0a81eb2c79", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/cow-utils/0.1.3/download" + ], + "strip_prefix": "cow-utils-0.1.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"cow_utils\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=cow-utils\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.1.3\",\n)\n" } }, - "yq_windows_amd64": { - "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "crates__crossbeam-utils-0.8.23": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "platform": "windows_amd64", - "version": "4.45.2" + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/crossbeam-utils/0.8.23/download" + ], + "strip_prefix": "crossbeam-utils-0.8.23", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"crossbeam_utils\",\n deps = [\n \":build_script_build\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=crossbeam-utils\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.8.23\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n ],\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"crossbeam-utils\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=crossbeam-utils\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"0.8.23\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" } }, - "yq_windows_arm64": { - "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "crates__dashmap-6.2.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "platform": "windows_arm64", - "version": "4.45.2" + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "e6361d5c062261c78a176addb82d4c821ae42bed6089de0e12603cd25de2059c", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/dashmap/6.2.1/download" + ], + "strip_prefix": "dashmap-6.2.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"dashmap\",\n deps = [\n \"@crates__cfg-if-1.0.5//:cfg_if\",\n \"@crates__crossbeam-utils-0.8.23//:crossbeam_utils\",\n \"@crates__hashbrown-0.14.5//:hashbrown\",\n \"@crates__lock_api-0.4.14//:lock_api\",\n \"@crates__once_cell-1.21.4//:once_cell\",\n \"@crates__parking_lot_core-0.9.12//:parking_lot_core\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"raw-api\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=dashmap\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"6.2.1\",\n)\n" } }, - "yq_toolchains": { - "repoRuleId": "@@yq.bzl+//yq/toolchain:toolchain.bzl%yq_toolchains_repo", + "crates__displaydoc-0.2.7": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { - "user_repository_name": "yq" + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/displaydoc/0.2.7/download" + ], + "strip_prefix": "displaydoc-0.2.7", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"displaydoc\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-3.0.10//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=displaydoc\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.7\",\n)\n" } - } - }, - "recordedRepoMappingEntries": [] - } - } - }, - "facts": { - "@@aspect_tools_telemetry+//:extension.bzl%telemetry": { - "notice_version": "2" - } - } + }, + "crates__dragonbox_ecma-0.1.12": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "fd8e701084c37e7ef62d3f9e453b618130cbc0ef3573847785952a3ac3f746bf", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/dragonbox_ecma/0.1.12/download" + ], + "strip_prefix": "dragonbox_ecma-0.1.12", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"dragonbox_ecma\",\n deps = [\n \":build_script_build\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"ecma\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=dragonbox_ecma\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.1.12\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"ecma\",\n ],\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"dragonbox_ecma\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=dragonbox_ecma\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"0.1.12\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__either-1.19.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/either/1.19.0/download" + ], + "strip_prefix": "either-1.19.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"either\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n \"use_std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=either\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.19.0\",\n)\n" + } + }, + "crates__equivalent-1.0.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/equivalent/1.0.3/download" + ], + "strip_prefix": "equivalent-1.0.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"equivalent\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2015\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=equivalent\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.3\",\n)\n" + } + }, + "crates__errno-0.3.14": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/errno/0.3.14/download" + ], + "strip_prefix": "errno-0.3.14", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"errno\",\n deps = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(unix)\n ],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(unix)\n ],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(target_os = \"wasi\")\n ],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [\n \"@crates__windows-sys-0.61.2//:windows_sys\", # cfg(windows)\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(unix)\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(unix)\n ],\n \"//conditions:default\": [],\n }),\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=errno\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.14\",\n)\n" + } + }, + "crates__fast-glob-1.1.2": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "2a044ed96eb57253e806d08b74260638af189687e583f04947a5e11e75e0b0d1", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/fast-glob/1.1.2/download" + ], + "strip_prefix": "fast-glob-1.1.2", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"fast_glob\",\n deps = [\n \"@crates__arrayvec-0.7.8//:arrayvec\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=fast-glob\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.1.2\",\n)\n" + } + }, + "crates__fastrand-2.5.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/fastrand/2.5.0/download" + ], + "strip_prefix": "fastrand-2.5.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"fastrand\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=fastrand\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.5.0\",\n)\n" + } + }, + "crates__float-cmp-0.10.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "b09cf3155332e944990140d967ff5eceb70df778b34f77d8075db46e4704e6d8", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/float-cmp/0.10.0/download" + ], + "strip_prefix": "float-cmp-0.10.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"float_cmp\",\n deps = [\n \"@crates__num-traits-0.2.19//:num_traits\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"num-traits\",\n \"ratio\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=float-cmp\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.10.0\",\n)\n" + } + }, + "crates__foldhash-0.2.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/foldhash/0.2.0/download" + ], + "strip_prefix": "foldhash-0.2.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"foldhash\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=foldhash\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.0\",\n)\n" + } + }, + "crates__futures-0.3.34": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/futures/0.3.34/download" + ], + "strip_prefix": "futures-0.3.34", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"futures\",\n deps = [\n \"@crates__futures-channel-0.3.34//:futures_channel\",\n \"@crates__futures-core-0.3.34//:futures_core\",\n \"@crates__futures-executor-0.3.34//:futures_executor\",\n \"@crates__futures-io-0.3.34//:futures_io\",\n \"@crates__futures-sink-0.3.34//:futures_sink\",\n \"@crates__futures-task-0.3.34//:futures_task\",\n \"@crates__futures-util-0.3.34//:futures_util\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"async-await\",\n \"default\",\n \"executor\",\n \"futures-executor\",\n \"std\",\n \"thread-pool\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=futures\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.34\",\n)\n" + } + }, + "crates__futures-channel-0.3.34": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/futures-channel/0.3.34/download" + ], + "strip_prefix": "futures-channel-0.3.34", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"futures_channel\",\n deps = [\n \"@crates__futures-core-0.3.34//:futures_core\",\n \"@crates__futures-sink-0.3.34//:futures_sink\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"futures-sink\",\n \"sink\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=futures-channel\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.34\",\n)\n" + } + }, + "crates__futures-core-0.3.34": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/futures-core/0.3.34/download" + ], + "strip_prefix": "futures-core-0.3.34", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"futures_core\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=futures-core\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.34\",\n)\n" + } + }, + "crates__futures-executor-0.3.34": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/futures-executor/0.3.34/download" + ], + "strip_prefix": "futures-executor-0.3.34", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"futures_executor\",\n deps = [\n \"@crates__futures-core-0.3.34//:futures_core\",\n \"@crates__futures-task-0.3.34//:futures_task\",\n \"@crates__futures-util-0.3.34//:futures_util\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n \"thread-pool\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=futures-executor\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.34\",\n)\n" + } + }, + "crates__futures-io-0.3.34": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/futures-io/0.3.34/download" + ], + "strip_prefix": "futures-io-0.3.34", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"futures_io\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=futures-io\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.34\",\n)\n" + } + }, + "crates__futures-macro-0.3.34": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/futures-macro/0.3.34/download" + ], + "strip_prefix": "futures-macro-0.3.34", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"futures_macro\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-3.0.10//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=futures-macro\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.34\",\n)\n" + } + }, + "crates__futures-sink-0.3.34": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/futures-sink/0.3.34/download" + ], + "strip_prefix": "futures-sink-0.3.34", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"futures_sink\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=futures-sink\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.34\",\n)\n" + } + }, + "crates__futures-task-0.3.34": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/futures-task/0.3.34/download" + ], + "strip_prefix": "futures-task-0.3.34", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"futures_task\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=futures-task\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.34\",\n)\n" + } + }, + "crates__futures-util-0.3.34": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/futures-util/0.3.34/download" + ], + "strip_prefix": "futures-util-0.3.34", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"futures_util\",\n deps = [\n \"@crates__futures-channel-0.3.34//:futures_channel\",\n \"@crates__futures-core-0.3.34//:futures_core\",\n \"@crates__futures-io-0.3.34//:futures_io\",\n \"@crates__futures-sink-0.3.34//:futures_sink\",\n \"@crates__futures-task-0.3.34//:futures_task\",\n \"@crates__memchr-2.8.3//:memchr\",\n \"@crates__pin-project-lite-0.2.17//:pin_project_lite\",\n \"@crates__slab-0.4.12//:slab\",\n ],\n proc_macro_deps = [\n \"@crates__futures-macro-0.3.34//:futures_macro\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"async-await\",\n \"async-await-macro\",\n \"channel\",\n \"futures-channel\",\n \"futures-io\",\n \"futures-macro\",\n \"futures-sink\",\n \"io\",\n \"memchr\",\n \"sink\",\n \"slab\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=futures-util\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.34\",\n)\n" + } + }, + "crates__getrandom-0.4.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/getrandom/0.4.3/download" + ], + "strip_prefix": "getrandom-0.4.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"getrandom\",\n deps = [\n \":build_script_build\",\n \"@crates__cfg-if-1.0.5//:cfg_if\",\n ] + select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(any(target_os = \"macos\", target_os = \"openbsd\", target_os = \"vita\", target_os = \"emscripten\"))\n ],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(all(any(target_os = \"linux\", target_os = \"android\"), not(any(all(target_os = \"linux\", target_env = \"\"), getrandom_backend = \"custom\", getrandom_backend = \"linux_raw\", getrandom_backend = \"rdrand\", getrandom_backend = \"rndr\"))))\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(all(any(target_os = \"linux\", target_os = \"android\"), not(any(all(target_os = \"linux\", target_env = \"\"), getrandom_backend = \"custom\", getrandom_backend = \"linux_raw\", getrandom_backend = \"rdrand\", getrandom_backend = \"rndr\"))))\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(all(any(target_os = \"linux\", target_os = \"android\"), not(any(all(target_os = \"linux\", target_env = \"\"), getrandom_backend = \"custom\", getrandom_backend = \"linux_raw\", getrandom_backend = \"rdrand\", getrandom_backend = \"rndr\"))))\n ],\n \"//conditions:default\": [],\n }),\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=getrandom\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.4.3\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2024\",\n pkg_name = \"getrandom\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=getrandom\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"0.4.3\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__glob-0.3.4": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/glob/0.3.4/download" + ], + "strip_prefix": "glob-0.3.4", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"glob\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=glob\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.4\",\n)\n" + } + }, + "crates__halfbrown-0.4.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "0c7ed2f2edad8a14c8186b847909a41fbb9c3eafa44f88bd891114ed5019da09", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/halfbrown/0.4.0/download" + ], + "strip_prefix": "halfbrown-0.4.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"halfbrown\",\n deps = [\n \"@crates__hashbrown-0.16.1//:hashbrown\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=halfbrown\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.4.0\",\n)\n" + } + }, + "crates__hashbrown-0.14.5": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/hashbrown/0.14.5/download" + ], + "strip_prefix": "hashbrown-0.14.5", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"hashbrown\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"raw\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=hashbrown\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.14.5\",\n)\n" + } + }, + "crates__hashbrown-0.16.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/hashbrown/0.16.1/download" + ], + "strip_prefix": "hashbrown-0.16.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"hashbrown\",\n deps = [\n \"@crates__allocator-api2-0.2.21//:allocator_api2\",\n \"@crates__equivalent-1.0.3//:equivalent\",\n \"@crates__foldhash-0.2.0//:foldhash\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"allocator-api2\",\n \"default\",\n \"default-hasher\",\n \"equivalent\",\n \"inline-more\",\n \"raw-entry\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=hashbrown\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.16.1\",\n)\n" + } + }, + "crates__hashbrown-0.17.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/hashbrown/0.17.1/download" + ], + "strip_prefix": "hashbrown-0.17.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"hashbrown\",\n deps = [\n \"@crates__allocator-api2-0.2.21//:allocator_api2\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"allocator-api2\",\n \"inline-more\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=hashbrown\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.17.1\",\n)\n" + } + }, + "crates__icu_collections-2.4.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/icu_collections/2.4.0/download" + ], + "strip_prefix": "icu_collections-2.4.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"icu_collections\",\n deps = [\n \"@crates__potential_utf-0.1.6//:potential_utf\",\n \"@crates__utf8_iter-1.1.0//:utf8_iter\",\n \"@crates__yoke-0.8.4//:yoke\",\n \"@crates__zerofrom-0.1.8//:zerofrom\",\n \"@crates__zerovec-0.11.9//:zerovec\",\n ],\n proc_macro_deps = [\n \"@crates__displaydoc-0.2.7//:displaydoc\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=icu_collections\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.4.0\",\n)\n" + } + }, + "crates__icu_locale_core-2.4.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/icu_locale_core/2.4.0/download" + ], + "strip_prefix": "icu_locale_core-2.4.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"icu_locale_core\",\n deps = [\n \"@crates__litemap-0.8.3//:litemap\",\n \"@crates__tinystr-0.8.5//:tinystr\",\n \"@crates__writeable-0.6.4//:writeable\",\n \"@crates__zerovec-0.11.9//:zerovec\",\n ],\n proc_macro_deps = [\n \"@crates__displaydoc-0.2.7//:displaydoc\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"zerovec\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=icu_locale_core\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.4.0\",\n)\n" + } + }, + "crates__icu_locale_fallback-2.4.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "406e9ae5b95d8aa37db6293405931b766a6172d1848daee22d70eb44aa78a43c", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/icu_locale_fallback/2.4.0/download" + ], + "strip_prefix": "icu_locale_fallback-2.4.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"icu_locale_fallback\",\n deps = [\n \"@crates__icu_locale_core-2.4.0//:icu_locale_core\",\n \"@crates__icu_locale_fallback_data-2.4.0//:icu_locale_fallback_data\",\n \"@crates__icu_provider-2.4.0//:icu_provider\",\n \"@crates__potential_utf-0.1.6//:potential_utf\",\n \"@crates__tinystr-0.8.5//:tinystr\",\n \"@crates__zerovec-0.11.9//:zerovec\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"compiled_data\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=icu_locale_fallback\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.4.0\",\n)\n" + } + }, + "crates__icu_locale_fallback_data-2.4.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "3632ebbd0c5c3637ba1a40bdf8288f2cb9d2268e73441a69d5fc73d7cfbaa87c", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/icu_locale_fallback_data/2.4.0/download" + ], + "strip_prefix": "icu_locale_fallback_data-2.4.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"icu_locale_fallback_data\",\n deps = [\n \":build_script_build\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=icu_locale_fallback_data\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.4.0\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2024\",\n pkg_name = \"icu_locale_fallback_data\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=icu_locale_fallback_data\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"2.4.0\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__icu_provider-2.4.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/icu_provider/2.4.0/download" + ], + "strip_prefix": "icu_provider-2.4.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"icu_provider\",\n deps = [\n \"@crates__icu_locale_core-2.4.0//:icu_locale_core\",\n \"@crates__stable_deref_trait-1.2.1//:stable_deref_trait\",\n \"@crates__writeable-0.6.4//:writeable\",\n \"@crates__yoke-0.8.4//:yoke\",\n \"@crates__zerofrom-0.1.8//:zerofrom\",\n \"@crates__zerotrie-0.2.5//:zerotrie\",\n \"@crates__zerovec-0.11.9//:zerovec\",\n ],\n proc_macro_deps = [\n \"@crates__displaydoc-0.2.7//:displaydoc\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"baked\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=icu_provider\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.4.0\",\n)\n" + } + }, + "crates__icu_segmenter-2.4.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "61b195dc605f81aa181bec9b3bd14e26cc71b903e4644f6af578ca9772c7a710", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/icu_segmenter/2.4.0/download" + ], + "strip_prefix": "icu_segmenter-2.4.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"icu_segmenter\",\n deps = [\n \"@crates__icu_collections-2.4.0//:icu_collections\",\n \"@crates__icu_locale_fallback-2.4.0//:icu_locale_fallback\",\n \"@crates__icu_provider-2.4.0//:icu_provider\",\n \"@crates__icu_segmenter_data-2.4.0//:icu_segmenter_data\",\n \"@crates__potential_utf-0.1.6//:potential_utf\",\n \"@crates__smallvec-1.16.5//:smallvec\",\n \"@crates__utf8_iter-1.1.0//:utf8_iter\",\n \"@crates__zerotrie-0.2.5//:zerotrie\",\n \"@crates__zerovec-0.11.9//:zerovec\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"compiled_data\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=icu_segmenter\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.4.0\",\n)\n" + } + }, + "crates__icu_segmenter_data-2.4.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "913a7d294ad056474749152107309fdee3ec17d2482d1ab70fdc61a81c64b9a3", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/icu_segmenter_data/2.4.0/download" + ], + "strip_prefix": "icu_segmenter_data-2.4.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"icu_segmenter_data\",\n deps = [\n \":build_script_build\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=icu_segmenter_data\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.4.0\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2024\",\n pkg_name = \"icu_segmenter_data\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=icu_segmenter_data\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"2.4.0\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__indexmap-2.14.2": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/indexmap/2.14.2/download" + ], + "strip_prefix": "indexmap-2.14.2", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"indexmap\",\n deps = [\n \"@crates__equivalent-1.0.3//:equivalent\",\n \"@crates__hashbrown-0.17.1//:hashbrown\",\n \"@crates__serde_core-1.0.229//:serde_core\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"serde\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=indexmap\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.14.2\",\n)\n" + } + }, + "crates__itertools-0.15.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "8b4baf93f58d4425749ca49a51c50ebab072c5df6994d08fed93541c331481dc", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/itertools/0.15.0/download" + ], + "strip_prefix": "itertools-0.15.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"itertools\",\n deps = [\n \"@crates__either-1.19.0//:either\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"use_alloc\",\n \"use_std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=itertools\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.15.0\",\n)\n" + } + }, + "crates__itoa-1.0.19": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/itoa/1.0.19/download" + ], + "strip_prefix": "itoa-1.0.19", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"itoa\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=itoa\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.19\",\n)\n" + } + }, + "crates__js-sys-0.3.98": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/js-sys/0.3.98/download" + ], + "strip_prefix": "js-sys-0.3.98", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"js_sys\",\n deps = [\n \"@crates__cfg-if-1.0.5//:cfg_if\",\n \"@crates__futures-util-0.3.34//:futures_util\",\n \"@crates__once_cell-1.21.4//:once_cell\",\n \"@crates__wasm-bindgen-0.2.121//:wasm_bindgen\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n \"unsafe-eval\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=js-sys\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.98\",\n)\n" + } + }, + "crates__json-strip-comments-3.1.2": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "01ed659c5f428031b9c1fb7de6729af2eb491654d4bcd416a5b5b704986b9658", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/json-strip-comments/3.1.2/download" + ], + "strip_prefix": "json-strip-comments-3.1.2", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"json_strip_comments\",\n deps = [\n \"@crates__memchr-2.8.3//:memchr\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=json-strip-comments\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"3.1.2\",\n)\n" + } + }, + "crates__lazy_static-1.5.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/lazy_static/1.5.1/download" + ], + "strip_prefix": "lazy_static-1.5.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"lazy_static\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2015\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=lazy_static\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.5.1\",\n)\n" + } + }, + "crates__libc-0.2.191": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/libc/0.2.191/download" + ], + "strip_prefix": "libc-0.2.191", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"libc\",\n deps = [\n \":build_script_build\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n ] + select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [\n \"default\", # aarch64-apple-darwin\n ],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [\n \"default\", # aarch64-unknown-linux-gnu\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [\n \"default\", # x86_64-unknown-linux-gnu\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [\n \"default\", # x86_64-unknown-linux-gnu, x86_64-unknown-nixos-gnu\n ],\n \"//conditions:default\": [],\n }),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=libc\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.191\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n ] + select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [\n \"default\", # aarch64-apple-darwin\n ],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [\n \"default\", # aarch64-unknown-linux-gnu\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [\n \"default\", # x86_64-unknown-linux-gnu\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [\n \"default\", # x86_64-unknown-linux-gnu, x86_64-unknown-nixos-gnu\n ],\n \"//conditions:default\": [],\n }),\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"libc\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=libc\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"0.2.191\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__linux-raw-sys-0.12.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/linux-raw-sys/0.12.1/download" + ], + "strip_prefix": "linux-raw-sys-0.12.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"linux_raw_sys\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"auxvec\",\n \"elf\",\n \"errno\",\n \"general\",\n \"ioctl\",\n \"no_std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=linux-raw-sys\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.12.1\",\n)\n" + } + }, + "crates__litemap-0.8.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/litemap/0.8.3/download" + ], + "strip_prefix": "litemap-0.8.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"litemap\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=litemap\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.8.3\",\n)\n" + } + }, + "crates__lock_api-0.4.14": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/lock_api/0.4.14/download" + ], + "strip_prefix": "lock_api-0.4.14", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"lock_api\",\n deps = [\n \"@crates__scopeguard-1.2.0//:scopeguard\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"atomic_usize\",\n \"default\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=lock_api\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.4.14\",\n)\n" + } + }, + "crates__memchr-2.8.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/memchr/2.8.3/download" + ], + "strip_prefix": "memchr-2.8.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"memchr\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=memchr\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.8.3\",\n)\n" + } + }, + "crates__nodejs-built-in-modules-1.0.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "a5eb86a92577833b75522336f210c49d9ebd7dd55a44d80a92e68c668a75f27c", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/nodejs-built-in-modules/1.0.0/download" + ], + "strip_prefix": "nodejs-built-in-modules-1.0.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"nodejs_built_in_modules\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=nodejs-built-in-modules\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.0\",\n)\n" + } + }, + "crates__nonmax-0.5.5": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "610a5acd306ec67f907abe5567859a3c693fb9886eb1f012ab8f2a47bef3db51", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/nonmax/0.5.5/download" + ], + "strip_prefix": "nonmax-0.5.5", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"nonmax\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=nonmax\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.5.5\",\n)\n" + } + }, + "crates__num-bigint-0.5.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "93e7820bc0a80a0238e650327316f929ba18d5be054b647490a3a6a339f3e7c0", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/num-bigint/0.5.1/download" + ], + "strip_prefix": "num-bigint-0.5.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"num_bigint\",\n deps = [\n \"@crates__num-integer-0.1.47//:num_integer\",\n \"@crates__num-traits-0.2.19//:num_traits\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=num-bigint\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.5.1\",\n)\n" + } + }, + "crates__num-integer-0.1.47": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/num-integer/0.1.47/download" + ], + "strip_prefix": "num-integer-0.1.47", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"num_integer\",\n deps = [\n \"@crates__num-traits-0.2.19//:num_traits\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"i128\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=num-integer\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.1.47\",\n)\n" + } + }, + "crates__num-traits-0.2.19": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/num-traits/0.2.19/download" + ], + "strip_prefix": "num-traits-0.2.19", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"num_traits\",\n deps = [\n \":build_script_build\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"i128\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=num-traits\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.19\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"i128\",\n \"std\",\n ],\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n deps = [\n \"@crates__autocfg-1.5.1//:autocfg\",\n ],\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"num-traits\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=num-traits\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"0.2.19\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__once_cell-1.21.4": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/once_cell/1.21.4/download" + ], + "strip_prefix": "once_cell-1.21.4", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"once_cell\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"default\",\n \"race\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=once_cell\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.21.4\",\n)\n" + } + }, + "crates__owo-colors-4.4.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "13c45bb4a6ae1280ec0803b1ef9d3455eb50f01efbbe1447ab020f1d54fba9d8", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/owo-colors/4.4.0/download" + ], + "strip_prefix": "owo-colors-4.4.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"owo_colors\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=owo-colors\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"4.4.0\",\n)\n" + } + }, + "crates__oxc-miette-4.0.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "330e07b3807046e0afa8fcc94f1fe976e93831b370d148bfe1168cb53da1b913", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc-miette/4.0.0/download" + ], + "strip_prefix": "oxc-miette-4.0.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"miette\",\n deps = [\n \"@crates__bytecount-0.6.9//:bytecount\",\n \"@crates__memchr-2.8.3//:memchr\",\n \"@crates__owo-colors-4.4.0//:owo_colors\",\n \"@crates__textwrap-0.16.4//:textwrap\",\n \"@crates__unicode-segmentation-1.13.3//:unicode_segmentation\",\n \"@crates__unicode-width-0.2.3//:unicode_width\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc-miette\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"4.0.0\",\n)\n" + } + }, + "crates__oxc-miette-derive-3.0.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "acc072d11d45ebe7801459b4e829184ba0934d68027fdc51d327335b53a95a49", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc-miette-derive/3.0.1/download" + ], + "strip_prefix": "oxc-miette-derive-3.0.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"oxc_miette_derive\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-2.0.119//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc-miette-derive\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"3.0.1\",\n)\n" + } + }, + "crates__oxc_allocator-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "9262c7bbd58c8c32c2c60d1a7b6c274cd2aeaff1b726a2fb86081b75084698cb", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_allocator/0.144.0/download" + ], + "strip_prefix": "oxc_allocator-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_allocator\",\n deps = [\n \"@crates__allocator-api2-0.2.21//:allocator_api2\",\n \"@crates__hashbrown-0.17.1//:hashbrown\",\n \"@crates__oxc_data_structures-0.144.0//:oxc_data_structures\",\n \"@crates__oxc_estree-0.144.0//:oxc_estree\",\n \"@crates__rustc-hash-2.1.3//:rustc_hash\",\n \"@crates__serde-1.0.229//:serde\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"bitset\",\n \"oxc_estree\",\n \"serialize\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_allocator\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_ast-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "e8134809b665d524d9a0ddeee87a5d3602776aa2410a10a0439fd25eeb594a5d", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_ast/0.144.0/download" + ], + "strip_prefix": "oxc_ast-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_ast\",\n deps = [\n \"@crates__bitflags-2.13.2//:bitflags\",\n \"@crates__oxc_allocator-0.144.0//:oxc_allocator\",\n \"@crates__oxc_data_structures-0.144.0//:oxc_data_structures\",\n \"@crates__oxc_diagnostics-0.144.0//:oxc_diagnostics\",\n \"@crates__oxc_estree-0.144.0//:oxc_estree\",\n \"@crates__oxc_regular_expression-0.144.0//:oxc_regular_expression\",\n \"@crates__oxc_span-0.144.0//:oxc_span\",\n \"@crates__oxc_str-0.144.0//:oxc_str\",\n \"@crates__oxc_syntax-0.144.0//:oxc_syntax\",\n ],\n proc_macro_deps = [\n \"@crates__oxc_ast_macros-0.144.0//:oxc_ast_macros\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"serialize\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_ast\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_ast_macros-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "ac120c6863a9d036c78a42a5e4d2f58bb27c5df795d61d904f6e19e48c681a37", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_ast_macros/0.144.0/download" + ], + "strip_prefix": "oxc_ast_macros-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"oxc_ast_macros\",\n deps = [\n \"@crates__phf-0.14.0//:phf\",\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-3.0.10//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_ast_macros\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_ast_visit-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "4a57626cd6ef87f5173110a301868e3c438fd8e0576f489d9a61540ef133f686", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_ast_visit/0.144.0/download" + ], + "strip_prefix": "oxc_ast_visit-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_ast_visit\",\n deps = [\n \"@crates__oxc_allocator-0.144.0//:oxc_allocator\",\n \"@crates__oxc_ast-0.144.0//:oxc_ast\",\n \"@crates__oxc_span-0.144.0//:oxc_span\",\n \"@crates__oxc_syntax-0.144.0//:oxc_syntax\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"serialize\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_ast_visit\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_data_structures-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "2a71efea56db93d3ce9e88e1d9f74f6d50fc2b06092444cdd08579f5827fd8db", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_data_structures/0.144.0/download" + ], + "strip_prefix": "oxc_data_structures-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_data_structures\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"assert_unchecked\",\n \"branch_hints\",\n \"code_buffer\",\n \"default\",\n \"fieldless_enum\",\n \"inline_string\",\n \"slice_iter\",\n \"stack\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_data_structures\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_diagnostics-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "e5ff8638533094ecdcd38a63930c003c261d81650e4531c3bc805c797aec2a52", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_diagnostics/0.144.0/download" + ], + "strip_prefix": "oxc_diagnostics-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_diagnostics\",\n deps = [\n \"@crates__cow-utils-0.1.3//:cow_utils\",\n \"@crates__memchr-2.8.3//:memchr\",\n \"@crates__oxc-miette-4.0.0//:miette\",\n \"@crates__percent-encoding-2.3.2//:percent_encoding\",\n \"@crates__smallvec-1.16.5//:smallvec\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_diagnostics\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_ecmascript-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "77c7a326f49f06da37affdcad2fb3ebab46ac4ada8953a428f7cbd04e5cc9e6e", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_ecmascript/0.144.0/download" + ], + "strip_prefix": "oxc_ecmascript-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_ecmascript\",\n deps = [\n \"@crates__dragonbox_ecma-0.1.12//:dragonbox_ecma\",\n \"@crates__itoa-1.0.19//:itoa\",\n \"@crates__num-bigint-0.5.1//:num_bigint\",\n \"@crates__num-traits-0.2.19//:num_traits\",\n \"@crates__oxc_ast-0.144.0//:oxc_ast\",\n \"@crates__oxc_data_structures-0.144.0//:oxc_data_structures\",\n \"@crates__oxc_span-0.144.0//:oxc_span\",\n \"@crates__oxc_syntax-0.144.0//:oxc_syntax\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_ecmascript\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_estree-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "8275fcb9674a1c320f0bdbc2f534ba9bb09fcb8b1c9fe306c9595d262a06bfcb", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_estree/0.144.0/download" + ], + "strip_prefix": "oxc_estree-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_estree\",\n deps = [\n \"@crates__dragonbox_ecma-0.1.12//:dragonbox_ecma\",\n \"@crates__itoa-1.0.19//:itoa\",\n \"@crates__oxc_data_structures-0.144.0//:oxc_data_structures\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"serialize\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_estree\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_index-5.0.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "191884bee6c3744909a51acc7d78d4ae370d817b25875b10642f632327b6296e", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_index/5.0.0/download" + ], + "strip_prefix": "oxc_index-5.0.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_index\",\n deps = [\n \"@crates__nonmax-0.5.5//:nonmax\",\n \"@crates__serde-1.0.229//:serde\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"nonmax\",\n \"serde\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_index\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"5.0.0\",\n)\n" + } + }, + "crates__oxc_parser-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "d13016de81370106ea4065cfabe4a278dc09e82523cfe22bb6a8ab8e993b4c3a", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_parser/0.144.0/download" + ], + "strip_prefix": "oxc_parser-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_parser\",\n deps = [\n \"@crates__bitflags-2.13.2//:bitflags\",\n \"@crates__cow-utils-0.1.3//:cow_utils\",\n \"@crates__memchr-2.8.3//:memchr\",\n \"@crates__num-bigint-0.5.1//:num_bigint\",\n \"@crates__num-traits-0.2.19//:num_traits\",\n \"@crates__oxc_allocator-0.144.0//:oxc_allocator\",\n \"@crates__oxc_ast-0.144.0//:oxc_ast\",\n \"@crates__oxc_data_structures-0.144.0//:oxc_data_structures\",\n \"@crates__oxc_diagnostics-0.144.0//:oxc_diagnostics\",\n \"@crates__oxc_ecmascript-0.144.0//:oxc_ecmascript\",\n \"@crates__oxc_regular_expression-0.144.0//:oxc_regular_expression\",\n \"@crates__oxc_span-0.144.0//:oxc_span\",\n \"@crates__oxc_str-0.144.0//:oxc_str\",\n \"@crates__oxc_syntax-0.144.0//:oxc_syntax\",\n \"@crates__rustc-hash-2.1.3//:rustc_hash\",\n ],\n proc_macro_deps = [\n \"@crates__seq-macro-0.3.6//:seq_macro\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"regular_expression\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_parser\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_regular_expression-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "c375b89d88ec03301b0e62528715699551871861197aa39148e95a1422e1ae9b", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_regular_expression/0.144.0/download" + ], + "strip_prefix": "oxc_regular_expression-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_regular_expression\",\n deps = [\n \"@crates__bitflags-2.13.2//:bitflags\",\n \"@crates__oxc_allocator-0.144.0//:oxc_allocator\",\n \"@crates__oxc_diagnostics-0.144.0//:oxc_diagnostics\",\n \"@crates__oxc_span-0.144.0//:oxc_span\",\n \"@crates__oxc_str-0.144.0//:oxc_str\",\n \"@crates__phf-0.14.0//:phf\",\n \"@crates__rustc-hash-2.1.3//:rustc_hash\",\n \"@crates__unicode-id-start-1.5.0//:unicode_id_start\",\n ],\n proc_macro_deps = [\n \"@crates__oxc_ast_macros-0.144.0//:oxc_ast_macros\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_regular_expression\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_resolver-11.24.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "2c7fd0839a5ecee17c0d2c88c8006e8ab4dff25d4a79e3a0bf7a9f0cce17f4e3", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_resolver/11.24.3/download" + ], + "strip_prefix": "oxc_resolver-11.24.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_resolver\",\n deps = [\n \"@crates__compact_str-0.10.0//:compact_str\",\n \"@crates__dashmap-6.2.1//:dashmap\",\n \"@crates__fast-glob-1.1.2//:fast_glob\",\n \"@crates__indexmap-2.14.2//:indexmap\",\n \"@crates__json-strip-comments-3.1.2//:json_strip_comments\",\n \"@crates__memchr-2.8.3//:memchr\",\n \"@crates__nodejs-built-in-modules-1.0.0//:nodejs_built_in_modules\",\n \"@crates__once_cell-1.21.4//:once_cell\",\n \"@crates__percent-encoding-2.3.2//:percent_encoding\",\n \"@crates__rustc-hash-2.1.3//:rustc_hash\",\n \"@crates__serde-1.0.229//:serde\",\n \"@crates__serde_json-1.0.154//:serde_json\",\n \"@crates__simdutf8-0.1.5//:simdutf8\",\n \"@crates__thiserror-2.0.21//:thiserror\",\n \"@crates__tracing-0.1.44//:tracing\",\n ] + select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [\n \"@crates__rustix-1.1.6//:rustix\", # cfg(any(target_os = \"macos\", target_os = \"linux\"))\n \"@crates__self_cell-1.3.0//:self_cell\", # cfg(target_endian = \"little\")\n \"@crates__simd-json-0.18.1//:simd_json\", # cfg(target_endian = \"little\")\n ],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [\n \"@crates__rustix-1.1.6//:rustix\", # cfg(any(target_os = \"macos\", target_os = \"linux\"))\n \"@crates__self_cell-1.3.0//:self_cell\", # cfg(target_endian = \"little\")\n \"@crates__simd-json-0.18.1//:simd_json\", # cfg(target_endian = \"little\")\n ],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [\n \"@crates__self_cell-1.3.0//:self_cell\", # cfg(target_endian = \"little\")\n \"@crates__simd-json-0.18.1//:simd_json\", # cfg(target_endian = \"little\")\n ],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [\n \"@crates__self_cell-1.3.0//:self_cell\", # cfg(target_endian = \"little\")\n \"@crates__simd-json-0.18.1//:simd_json\", # cfg(target_endian = \"little\")\n ],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [\n \"@crates__self_cell-1.3.0//:self_cell\", # cfg(target_endian = \"little\")\n \"@crates__simd-json-0.18.1//:simd_json\", # cfg(target_endian = \"little\")\n \"@crates__windows-0.62.2//:windows\", # cfg(target_os = \"windows\")\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [\n \"@crates__rustix-1.1.6//:rustix\", # cfg(any(target_os = \"macos\", target_os = \"linux\"))\n \"@crates__self_cell-1.3.0//:self_cell\", # cfg(target_endian = \"little\")\n \"@crates__simd-json-0.18.1//:simd_json\", # cfg(target_endian = \"little\")\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [\n \"@crates__rustix-1.1.6//:rustix\", # cfg(any(target_os = \"macos\", target_os = \"linux\"))\n \"@crates__self_cell-1.3.0//:self_cell\", # cfg(target_endian = \"little\")\n \"@crates__simd-json-0.18.1//:simd_json\", # cfg(target_endian = \"little\")\n ],\n \"//conditions:default\": [],\n }),\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_resolver\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"11.24.3\",\n)\n" + } + }, + "crates__oxc_semantic-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "0d8d80604c4220c8f5b1c19682216921397fb45a616db47d3a044474662f0c2e", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_semantic/0.144.0/download" + ], + "strip_prefix": "oxc_semantic-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_semantic\",\n deps = [\n \"@crates__itertools-0.15.0//:itertools\",\n \"@crates__memchr-2.8.3//:memchr\",\n \"@crates__oxc_allocator-0.144.0//:oxc_allocator\",\n \"@crates__oxc_ast-0.144.0//:oxc_ast\",\n \"@crates__oxc_ast_visit-0.144.0//:oxc_ast_visit\",\n \"@crates__oxc_data_structures-0.144.0//:oxc_data_structures\",\n \"@crates__oxc_diagnostics-0.144.0//:oxc_diagnostics\",\n \"@crates__oxc_ecmascript-0.144.0//:oxc_ecmascript\",\n \"@crates__oxc_index-5.0.0//:oxc_index\",\n \"@crates__oxc_span-0.144.0//:oxc_span\",\n \"@crates__oxc_str-0.144.0//:oxc_str\",\n \"@crates__oxc_syntax-0.144.0//:oxc_syntax\",\n \"@crates__rustc-hash-2.1.3//:rustc_hash\",\n \"@crates__self_cell-1.3.0//:self_cell\",\n \"@crates__smallvec-1.16.5//:smallvec\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_semantic\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_span-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "abd732008dbfb09984106925f7ff7268687c8020b89bd7ee0f0b695c5bb07950", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_span/0.144.0/download" + ], + "strip_prefix": "oxc_span-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_span\",\n deps = [\n \"@crates__compact_str-0.10.0//:compact_str\",\n \"@crates__oxc-miette-4.0.0//:miette\",\n \"@crates__oxc_allocator-0.144.0//:oxc_allocator\",\n \"@crates__oxc_estree-0.144.0//:oxc_estree\",\n \"@crates__oxc_str-0.144.0//:oxc_str\",\n \"@crates__serde-1.0.229//:serde\",\n ],\n proc_macro_deps = [\n \"@crates__oxc_ast_macros-0.144.0//:oxc_ast_macros\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"serialize\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_span\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_str-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "e1d2ccb0f5aa4da9fc98ef70f59553c2779e28e064a8b271fcb1e88c11a63607", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_str/0.144.0/download" + ], + "strip_prefix": "oxc_str-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_str\",\n deps = [\n \"@crates__compact_str-0.10.0//:compact_str\",\n \"@crates__hashbrown-0.17.1//:hashbrown\",\n \"@crates__oxc_allocator-0.144.0//:oxc_allocator\",\n \"@crates__oxc_estree-0.144.0//:oxc_estree\",\n \"@crates__serde-1.0.229//:serde\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"serialize\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_str\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__oxc_syntax-0.144.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "15ff0e987ab15a71dae36fd544b9859513e76639e2cc6c5e25895081162755b1", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/oxc_syntax/0.144.0/download" + ], + "strip_prefix": "oxc_syntax-0.144.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"oxc_syntax\",\n deps = [\n \"@crates__bitflags-2.13.2//:bitflags\",\n \"@crates__cow-utils-0.1.3//:cow_utils\",\n \"@crates__dragonbox_ecma-0.1.12//:dragonbox_ecma\",\n \"@crates__nonmax-0.5.5//:nonmax\",\n \"@crates__oxc_allocator-0.144.0//:oxc_allocator\",\n \"@crates__oxc_estree-0.144.0//:oxc_estree\",\n \"@crates__oxc_index-5.0.0//:oxc_index\",\n \"@crates__oxc_span-0.144.0//:oxc_span\",\n \"@crates__oxc_str-0.144.0//:oxc_str\",\n \"@crates__phf-0.14.0//:phf\",\n \"@crates__serde-1.0.229//:serde\",\n \"@crates__unicode-id-start-1.5.0//:unicode_id_start\",\n ],\n proc_macro_deps = [\n \"@crates__oxc_ast_macros-0.144.0//:oxc_ast_macros\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"serialize\",\n \"to_js_string\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=oxc_syntax\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.144.0\",\n)\n" + } + }, + "crates__parking_lot_core-0.9.12": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/parking_lot_core/0.9.12/download" + ], + "strip_prefix": "parking_lot_core-0.9.12", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"parking_lot_core\",\n deps = [\n \":build_script_build\",\n \"@crates__cfg-if-1.0.5//:cfg_if\",\n \"@crates__smallvec-1.16.5//:smallvec\",\n ] + select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(unix)\n ],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(unix)\n ],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [\n \"@crates__windows-link-0.2.1//:windows_link\", # cfg(windows)\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(unix)\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [\n \"@crates__libc-0.2.191//:libc\", # cfg(unix)\n ],\n \"//conditions:default\": [],\n }),\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=parking_lot_core\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.9.12\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"parking_lot_core\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=parking_lot_core\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"0.9.12\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__pathdiff-0.2.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/pathdiff/0.2.3/download" + ], + "strip_prefix": "pathdiff-0.2.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"pathdiff\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=pathdiff\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.3\",\n)\n" + } + }, + "crates__percent-encoding-2.3.2": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/percent-encoding/2.3.2/download" + ], + "strip_prefix": "percent-encoding-2.3.2", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"percent_encoding\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=percent-encoding\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.3.2\",\n)\n" + } + }, + "crates__phf-0.14.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/phf/0.14.0/download" + ], + "strip_prefix": "phf-0.14.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"phf\",\n deps = [\n \"@crates__phf_shared-0.14.0//:phf_shared\",\n ],\n proc_macro_deps = [\n \"@crates__phf_macros-0.14.0//:phf_macros\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"macros\",\n \"phf_macros\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=phf\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.14.0\",\n)\n" + } + }, + "crates__phf_generator-0.14.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "aeb62e0959d5a1bebc965f4d15d9e2b7cea002b6b0f5ba8cde6cc26738467100", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/phf_generator/0.14.0/download" + ], + "strip_prefix": "phf_generator-0.14.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"phf_generator\",\n deps = [\n \"@crates__fastrand-2.5.0//:fastrand\",\n \"@crates__phf_shared-0.14.0//:phf_shared\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=phf_generator\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.14.0\",\n)\n" + } + }, + "crates__phf_macros-0.14.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "5fa8d0ca26d424d27630da600c6624696e7dec8bf7b3b492b383c5dc49e5e085", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/phf_macros/0.14.0/download" + ], + "strip_prefix": "phf_macros-0.14.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"phf_macros\",\n deps = [\n \"@crates__phf_generator-0.14.0//:phf_generator\",\n \"@crates__phf_shared-0.14.0//:phf_shared\",\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-2.0.119//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=phf_macros\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.14.0\",\n)\n" + } + }, + "crates__phf_shared-0.14.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/phf_shared/0.14.0/download" + ], + "strip_prefix": "phf_shared-0.14.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"phf_shared\",\n deps = [\n \"@crates__siphasher-1.0.4//:siphasher\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=phf_shared\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.14.0\",\n)\n" + } + }, + "crates__pin-project-lite-0.2.17": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/pin-project-lite/0.2.17/download" + ], + "strip_prefix": "pin-project-lite-0.2.17", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"pin_project_lite\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=pin-project-lite\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.17\",\n)\n" + } + }, + "crates__potential_utf-0.1.6": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/potential_utf/0.1.6/download" + ], + "strip_prefix": "potential_utf-0.1.6", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"potential_utf\",\n deps = [\n \"@crates__writeable-0.6.4//:writeable\",\n \"@crates__zerovec-0.11.9//:zerovec\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"writeable\",\n \"zerovec\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=potential_utf\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.1.6\",\n)\n" + } + }, + "crates__proc-macro2-1.0.107": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/proc-macro2/1.0.107/download" + ], + "strip_prefix": "proc-macro2-1.0.107", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"proc_macro2\",\n deps = [\n \":build_script_build\",\n \"@crates__unicode-ident-1.0.27//:unicode_ident\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"proc-macro\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=proc-macro2\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.107\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"proc-macro\",\n ],\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"proc-macro2\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=proc-macro2\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"1.0.107\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__quote-1.0.47": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/quote/1.0.47/download" + ], + "strip_prefix": "quote-1.0.47", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"quote\",\n deps = [\n \":build_script_build\",\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"proc-macro\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=quote\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.47\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"proc-macro\",\n ],\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"quote\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=quote\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"1.0.47\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__r-efi-6.0.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/r-efi/6.0.0/download" + ], + "strip_prefix": "r-efi-6.0.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"r_efi\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=r-efi\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"6.0.0\",\n)\n" + } + }, + "crates__redox_syscall-0.5.18": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/redox_syscall/0.5.18/download" + ], + "strip_prefix": "redox_syscall-0.5.18", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"syscall\",\n deps = [\n \"@crates__bitflags-2.13.2//:bitflags\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=redox_syscall\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.5.18\",\n)\n" + } + }, + "crates__ref-cast-1.0.27": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/ref-cast/1.0.27/download" + ], + "strip_prefix": "ref-cast-1.0.27", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"ref_cast\",\n deps = [\n \":build_script_build\",\n ],\n proc_macro_deps = [\n \"@crates__ref-cast-impl-1.0.27//:ref_cast_impl\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=ref-cast\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.27\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"ref-cast\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=ref-cast\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"1.0.27\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__ref-cast-impl-1.0.27": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/ref-cast-impl/1.0.27/download" + ], + "strip_prefix": "ref-cast-impl-1.0.27", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"ref_cast_impl\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-3.0.10//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=ref-cast-impl\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.27\",\n)\n" + } + }, + "crates__regex-1.13.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/regex/1.13.1/download" + ], + "strip_prefix": "regex-1.13.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"regex\",\n deps = [\n \"@crates__aho-corasick-1.1.5//:aho_corasick\",\n \"@crates__memchr-2.8.3//:memchr\",\n \"@crates__regex-automata-0.4.18//:regex_automata\",\n \"@crates__regex-syntax-0.8.11//:regex_syntax\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"perf\",\n \"perf-backtrack\",\n \"perf-cache\",\n \"perf-dfa\",\n \"perf-inline\",\n \"perf-literal\",\n \"perf-onepass\",\n \"std\",\n \"unicode\",\n \"unicode-age\",\n \"unicode-bool\",\n \"unicode-case\",\n \"unicode-gencat\",\n \"unicode-perl\",\n \"unicode-script\",\n \"unicode-segment\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=regex\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.13.1\",\n)\n" + } + }, + "crates__regex-automata-0.4.18": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/regex-automata/0.4.18/download" + ], + "strip_prefix": "regex-automata-0.4.18", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"regex_automata\",\n deps = [\n \"@crates__aho-corasick-1.1.5//:aho_corasick\",\n \"@crates__memchr-2.8.3//:memchr\",\n \"@crates__regex-syntax-0.8.11//:regex_syntax\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"dfa-onepass\",\n \"hybrid\",\n \"meta\",\n \"nfa-backtrack\",\n \"nfa-pikevm\",\n \"nfa-thompson\",\n \"perf-inline\",\n \"perf-literal\",\n \"perf-literal-multisubstring\",\n \"perf-literal-substring\",\n \"std\",\n \"syntax\",\n \"unicode\",\n \"unicode-age\",\n \"unicode-bool\",\n \"unicode-case\",\n \"unicode-gencat\",\n \"unicode-perl\",\n \"unicode-script\",\n \"unicode-segment\",\n \"unicode-word-boundary\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=regex-automata\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.4.18\",\n)\n" + } + }, + "crates__regex-syntax-0.8.11": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/regex-syntax/0.8.11/download" + ], + "strip_prefix": "regex-syntax-0.8.11", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"regex_syntax\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n \"unicode\",\n \"unicode-age\",\n \"unicode-bool\",\n \"unicode-case\",\n \"unicode-gencat\",\n \"unicode-perl\",\n \"unicode-script\",\n \"unicode-segment\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=regex-syntax\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.8.11\",\n)\n" + } + }, + "crates__rustc-hash-2.1.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/rustc-hash/2.1.3/download" + ], + "strip_prefix": "rustc-hash-2.1.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"rustc_hash\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=rustc-hash\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.1.3\",\n)\n" + } + }, + "crates__rustix-1.1.6": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/rustix/1.1.6/download" + ], + "strip_prefix": "rustix-1.1.6", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"rustix\",\n deps = [\n \":build_script_build\",\n \"@crates__bitflags-2.13.2//:bitflags\",\n ] + select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [\n \"@crates__errno-0.3.14//:errno\", # aarch64-apple-darwin, cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_endian = \"little\", any(target_arch = \"s390x\", target_arch = \"powerpc\")), any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc\"), all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"s390x\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))\n \"@crates__libc-0.2.191//:libc\", # aarch64-apple-darwin, cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_endian = \"little\", any(target_arch = \"s390x\", target_arch = \"powerpc\")), any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc\"), all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"s390x\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))\n ],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [\n \"@crates__linux-raw-sys-0.12.1//:linux_raw_sys\", # cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", any(target_endian = \"little\", any(target_arch = \"s390x\", target_arch = \"powerpc\")), any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc\"), all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"s390x\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))\n ],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [\n \"@crates__errno-0.3.14//:errno\", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_endian = \"little\", any(target_arch = \"s390x\", target_arch = \"powerpc\")), any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc\"), all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"s390x\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))\n \"@crates__libc-0.2.191//:libc\", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_endian = \"little\", any(target_arch = \"s390x\", target_arch = \"powerpc\")), any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc\"), all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"s390x\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))\n ],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [\n \"@crates__errno-0.3.14//:errno\", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_endian = \"little\", any(target_arch = \"s390x\", target_arch = \"powerpc\")), any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc\"), all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"s390x\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))))), wasm32-wasip1\n \"@crates__libc-0.2.191//:libc\", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_endian = \"little\", any(target_arch = \"s390x\", target_arch = \"powerpc\")), any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc\"), all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"s390x\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))))), wasm32-wasip1\n ],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [\n \"@crates__errno-0.3.14//:errno\", # cfg(windows)\n \"@crates__windows-sys-0.61.2//:windows_sys\", # cfg(windows)\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [\n \"@crates__linux-raw-sys-0.12.1//:linux_raw_sys\", # cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", any(target_endian = \"little\", any(target_arch = \"s390x\", target_arch = \"powerpc\")), any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc\"), all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"s390x\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [\n \"@crates__linux-raw-sys-0.12.1//:linux_raw_sys\", # cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", any(target_endian = \"little\", any(target_arch = \"s390x\", target_arch = \"powerpc\")), any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc\"), all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"s390x\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))\n ],\n \"//conditions:default\": [],\n }),\n aliases = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": {\n \"@crates__errno-0.3.14//:errno\": \"libc_errno\", # aarch64-apple-darwin, cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_endian = \"little\", any(target_arch = \"s390x\", target_arch = \"powerpc\")), any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc\"), all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"s390x\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))\n },\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": {\n \"@crates__errno-0.3.14//:errno\": \"libc_errno\", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_endian = \"little\", any(target_arch = \"s390x\", target_arch = \"powerpc\")), any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc\"), all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"s390x\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))\n },\n \"@rules_rust//rust/platform:wasm32-wasip1\": {\n \"@crates__errno-0.3.14//:errno\": \"libc_errno\", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_endian = \"little\", any(target_arch = \"s390x\", target_arch = \"powerpc\")), any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc\"), all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"s390x\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))))), wasm32-wasip1\n },\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": {\n \"@crates__errno-0.3.14//:errno\": \"libc_errno\", # cfg(windows)\n },\n \"//conditions:default\": {},\n }),\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"default\",\n \"fs\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=rustix\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.1.6\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"default\",\n \"fs\",\n \"std\",\n ],\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"rustix\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=rustix\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"1.1.6\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__rustversion-1.0.23": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/rustversion/1.0.23/download" + ], + "strip_prefix": "rustversion-1.0.23", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"rustversion\",\n deps = [\n \":build_script_build\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=rustversion\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.23\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_name = \"build_script_build\",\n crate_root = \"build/build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2018\",\n pkg_name = \"rustversion\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=rustversion\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"1.0.23\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__ryu-1.0.23": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/ryu/1.0.23/download" + ], + "strip_prefix": "ryu-1.0.23", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"ryu\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=ryu\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.23\",\n)\n" + } + }, + "crates__scopeguard-1.2.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/scopeguard/1.2.0/download" + ], + "strip_prefix": "scopeguard-1.2.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"scopeguard\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2015\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=scopeguard\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.2.0\",\n)\n" + } + }, + "crates__self_cell-1.3.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "2ab42ca02749e120097e328d91d415325bdf43b1c72c4c8badf37375fe40a813", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/self_cell/1.3.0/download" + ], + "strip_prefix": "self_cell-1.3.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"self_cell\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=self_cell\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.3.0\",\n)\n" + } + }, + "crates__seq-macro-0.3.6": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/seq-macro/0.3.6/download" + ], + "strip_prefix": "seq-macro-0.3.6", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"seq_macro\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=seq-macro\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.6\",\n)\n" + } + }, + "crates__serde-1.0.229": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/serde/1.0.229/download" + ], + "strip_prefix": "serde-1.0.229", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"serde\",\n deps = [\n \":build_script_build\",\n \"@crates__serde_core-1.0.229//:serde_core\",\n ],\n proc_macro_deps = [\n \"@crates__serde_derive-1.0.229//:serde_derive\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"default\",\n \"derive\",\n \"serde_derive\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=serde\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.229\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"default\",\n \"derive\",\n \"serde_derive\",\n \"std\",\n ],\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"serde\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=serde\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"1.0.229\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__serde_core-1.0.229": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/serde_core/1.0.229/download" + ], + "strip_prefix": "serde_core-1.0.229", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"serde_core\",\n deps = [\n \":build_script_build\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"result\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=serde_core\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.229\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"result\",\n \"std\",\n ],\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"serde_core\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=serde_core\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"1.0.229\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__serde_derive-1.0.229": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/serde_derive/1.0.229/download" + ], + "strip_prefix": "serde_derive-1.0.229", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"serde_derive\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-3.0.10//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=serde_derive\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.229\",\n)\n" + } + }, + "crates__serde_json-1.0.154": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/serde_json/1.0.154/download" + ], + "strip_prefix": "serde_json-1.0.154", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"serde_json\",\n deps = [\n \":build_script_build\",\n \"@crates__foldhash-0.2.0//:foldhash\",\n \"@crates__indexmap-2.14.2//:indexmap\",\n \"@crates__itoa-1.0.19//:itoa\",\n \"@crates__memchr-2.8.3//:memchr\",\n \"@crates__serde_core-1.0.229//:serde_core\",\n \"@crates__zmij-1.0.23//:zmij\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"default\",\n \"indexmap\",\n \"preserve_order\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=serde_json\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.154\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"default\",\n \"indexmap\",\n \"preserve_order\",\n \"std\",\n ],\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"serde_json\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=serde_json\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"1.0.154\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__sharded-slab-0.1.7": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/sharded-slab/0.1.7/download" + ], + "strip_prefix": "sharded-slab-0.1.7", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"sharded_slab\",\n deps = [\n \"@crates__lazy_static-1.5.1//:lazy_static\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=sharded-slab\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.1.7\",\n)\n" + } + }, + "crates__simd-json-0.18.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "6ebe141eb4a23ecc4d5de93fa5b139ac65dc07c38037a2fe9a8fb7c9d36bd832", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/simd-json/0.18.1/download" + ], + "strip_prefix": "simd-json-0.18.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"simd_json\",\n deps = [\n \"@crates__halfbrown-0.4.0//:halfbrown\",\n \"@crates__simdutf8-0.1.5//:simdutf8\",\n \"@crates__value-trait-0.12.3//:value_trait\",\n ] + select({\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [\n \"@crates__ref-cast-1.0.27//:ref_cast\", # cfg(target_arch = \"x86_64\")\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [\n \"@crates__ref-cast-1.0.27//:ref_cast\", # cfg(target_arch = \"x86_64\")\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [\n \"@crates__ref-cast-1.0.27//:ref_cast\", # cfg(target_arch = \"x86_64\")\n ],\n \"//conditions:default\": [],\n }),\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"runtime-detection\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=simd-json\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.18.1\",\n)\n" + } + }, + "crates__simdutf8-0.1.5": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/simdutf8/0.1.5/download" + ], + "strip_prefix": "simdutf8-0.1.5", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"simdutf8\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"aarch64_neon\",\n \"default\",\n \"public_imp\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=simdutf8\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.1.5\",\n)\n" + } + }, + "crates__siphasher-1.0.4": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/siphasher/1.0.4/download" + ], + "strip_prefix": "siphasher-1.0.4", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"siphasher\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=siphasher\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.4\",\n)\n" + } + }, + "crates__slab-0.4.12": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/slab/0.4.12/download" + ], + "strip_prefix": "slab-0.4.12", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"slab\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=slab\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.4.12\",\n)\n" + } + }, + "crates__smallvec-1.16.5": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/smallvec/1.16.5/download" + ], + "strip_prefix": "smallvec-1.16.5", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"smallvec\",\n deps = [\n \"@crates__serde-1.0.229//:serde\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"serde\",\n \"union\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=smallvec\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.16.5\",\n)\n" + } + }, + "crates__smawk-0.3.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "e8e2fb0f499abb4d162f2bedad68f5ef91a1682b5a03596ddb67efd37768d100", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/smawk/0.3.3/download" + ], + "strip_prefix": "smawk-0.3.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"smawk\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=smawk\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.3\",\n)\n" + } + }, + "crates__stable_deref_trait-1.2.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/stable_deref_trait/1.2.1/download" + ], + "strip_prefix": "stable_deref_trait-1.2.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"stable_deref_trait\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2015\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=stable_deref_trait\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.2.1\",\n)\n" + } + }, + "crates__static_assertions-1.1.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/static_assertions/1.1.0/download" + ], + "strip_prefix": "static_assertions-1.1.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"static_assertions\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2015\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=static_assertions\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.1.0\",\n)\n" + } + }, + "crates__syn-2.0.119": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/syn/2.0.119/download" + ], + "strip_prefix": "syn-2.0.119", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"syn\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__unicode-ident-1.0.27//:unicode_ident\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"clone-impls\",\n \"default\",\n \"derive\",\n \"extra-traits\",\n \"full\",\n \"parsing\",\n \"printing\",\n \"proc-macro\",\n \"visit\",\n \"visit-mut\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=syn\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.0.119\",\n)\n" + } + }, + "crates__syn-3.0.10": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/syn/3.0.10/download" + ], + "strip_prefix": "syn-3.0.10", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"syn\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__unicode-ident-1.0.27//:unicode_ident\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"clone-impls\",\n \"default\",\n \"derive\",\n \"extra-traits\",\n \"fold\",\n \"full\",\n \"parsing\",\n \"printing\",\n \"proc-macro\",\n \"visit\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=syn\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"3.0.10\",\n)\n" + } + }, + "crates__synstructure-0.14.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/synstructure/0.14.0/download" + ], + "strip_prefix": "synstructure-0.14.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"synstructure\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-3.0.10//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"proc-macro\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=synstructure\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.14.0\",\n)\n" + } + }, + "crates__tempfile-3.27.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/tempfile/3.27.0/download" + ], + "strip_prefix": "tempfile-3.27.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"tempfile\",\n deps = [\n \"@crates__fastrand-2.5.0//:fastrand\",\n \"@crates__once_cell-1.21.4//:once_cell\",\n ] + select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [\n \"@crates__getrandom-0.4.3//:getrandom\", # aarch64-apple-darwin\n \"@crates__rustix-1.1.6//:rustix\", # cfg(any(unix, target_os = \"wasi\"))\n ],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [\n \"@crates__getrandom-0.4.3//:getrandom\", # aarch64-unknown-linux-gnu\n \"@crates__rustix-1.1.6//:rustix\", # cfg(any(unix, target_os = \"wasi\"))\n ],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [\n \"@crates__getrandom-0.4.3//:getrandom\", # wasm32-wasip1\n \"@crates__rustix-1.1.6//:rustix\", # cfg(any(unix, target_os = \"wasi\"))\n ],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [\n \"@crates__getrandom-0.4.3//:getrandom\", # x86_64-pc-windows-msvc\n \"@crates__windows-sys-0.61.2//:windows_sys\", # cfg(windows)\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [\n \"@crates__getrandom-0.4.3//:getrandom\", # x86_64-unknown-linux-gnu\n \"@crates__rustix-1.1.6//:rustix\", # cfg(any(unix, target_os = \"wasi\"))\n ],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [\n \"@crates__getrandom-0.4.3//:getrandom\", # x86_64-unknown-linux-gnu, x86_64-unknown-nixos-gnu\n \"@crates__rustix-1.1.6//:rustix\", # cfg(any(unix, target_os = \"wasi\"))\n ],\n \"//conditions:default\": [],\n }),\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"getrandom\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=tempfile\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"3.27.0\",\n)\n" + } + }, + "crates__textwrap-0.16.4": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "6ecfad6c3abc80a577f2b91c1e412ee57e7a060d430b553c1b0c940974ebcd49", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/textwrap/0.16.4/download" + ], + "strip_prefix": "textwrap-0.16.4", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"textwrap\",\n deps = [\n \"@crates__icu_segmenter-2.4.0//:icu_segmenter\",\n \"@crates__smawk-0.3.3//:smawk\",\n \"@crates__unicode-width-0.2.3//:unicode_width\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"icu_segmenter\",\n \"smawk\",\n \"std\",\n \"unicode-linebreak\",\n \"unicode-width\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=textwrap\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.16.4\",\n)\n" + } + }, + "crates__thiserror-2.0.21": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/thiserror/2.0.21/download" + ], + "strip_prefix": "thiserror-2.0.21", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"thiserror\",\n deps = [\n \":build_script_build\",\n ],\n proc_macro_deps = [\n \"@crates__thiserror-impl-2.0.21//:thiserror_impl\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=thiserror\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.0.21\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n ],\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"thiserror\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=thiserror\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"2.0.21\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__thiserror-impl-2.0.21": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/thiserror-impl/2.0.21/download" + ], + "strip_prefix": "thiserror-impl-2.0.21", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"thiserror_impl\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-3.0.10//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=thiserror-impl\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"2.0.21\",\n)\n" + } + }, + "crates__thread_local-1.1.10": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/thread_local/1.1.10/download" + ], + "strip_prefix": "thread_local-1.1.10", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"thread_local\",\n deps = [\n \"@crates__cfg-if-1.0.5//:cfg_if\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=thread_local\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.1.10\",\n)\n" + } + }, + "crates__tinystr-0.8.5": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/tinystr/0.8.5/download" + ], + "strip_prefix": "tinystr-0.8.5", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"tinystr\",\n deps = [\n \"@crates__zerovec-0.11.9//:zerovec\",\n ],\n proc_macro_deps = [\n \"@crates__displaydoc-0.2.7//:displaydoc\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"zerovec\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=tinystr\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.8.5\",\n)\n" + } + }, + "crates__tracing-0.1.44": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/tracing/0.1.44/download" + ], + "strip_prefix": "tracing-0.1.44", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"tracing\",\n deps = [\n \"@crates__pin-project-lite-0.2.17//:pin_project_lite\",\n \"@crates__tracing-core-0.1.36//:tracing_core\",\n ],\n proc_macro_deps = [\n \"@crates__tracing-attributes-0.1.31//:tracing_attributes\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"attributes\",\n \"default\",\n \"std\",\n \"tracing-attributes\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=tracing\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.1.44\",\n)\n" + } + }, + "crates__tracing-attributes-0.1.31": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/tracing-attributes/0.1.31/download" + ], + "strip_prefix": "tracing-attributes-0.1.31", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"tracing_attributes\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-2.0.119//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=tracing-attributes\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.1.31\",\n)\n" + } + }, + "crates__tracing-core-0.1.36": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/tracing-core/0.1.36/download" + ], + "strip_prefix": "tracing-core-0.1.36", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"tracing_core\",\n deps = [\n \"@crates__once_cell-1.21.4//:once_cell\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"once_cell\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=tracing-core\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.1.36\",\n)\n" + } + }, + "crates__tracing-subscriber-0.3.23": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/tracing-subscriber/0.3.23/download" + ], + "strip_prefix": "tracing-subscriber-0.3.23", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"tracing_subscriber\",\n deps = [\n \"@crates__sharded-slab-0.1.7//:sharded_slab\",\n \"@crates__thread_local-1.1.10//:thread_local\",\n \"@crates__tracing-core-0.1.36//:tracing_core\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"registry\",\n \"sharded-slab\",\n \"std\",\n \"thread_local\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=tracing-subscriber\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.23\",\n)\n" + } + }, + "crates__unicode-id-start-1.5.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "0825d2e09dcae814a4273c1e1435979d414ede25b2ee235b1545da6682483765", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/unicode-id-start/1.5.0/download" + ], + "strip_prefix": "unicode-id-start-1.5.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"unicode_id_start\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=unicode-id-start\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.5.0\",\n)\n" + } + }, + "crates__unicode-ident-1.0.27": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/unicode-ident/1.0.27/download" + ], + "strip_prefix": "unicode-ident-1.0.27", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"unicode_ident\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=unicode-ident\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.27\",\n)\n" + } + }, + "crates__unicode-segmentation-1.13.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/unicode-segmentation/1.13.3/download" + ], + "strip_prefix": "unicode-segmentation-1.13.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"unicode_segmentation\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2018\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=unicode-segmentation\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.13.3\",\n)\n" + } + }, + "crates__unicode-width-0.2.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/unicode-width/0.2.3/download" + ], + "strip_prefix": "unicode-width-0.2.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"unicode_width\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"cjk\",\n \"default\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=unicode-width\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.3\",\n)\n" + } + }, + "crates__utf8_iter-1.1.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/utf8_iter/1.1.0/download" + ], + "strip_prefix": "utf8_iter-1.1.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"utf8_iter\",\n deps = [\n \"@crates__utf_types-1.0.0//:utf_types\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=utf8_iter\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.1.0\",\n)\n" + } + }, + "crates__utf_types-1.0.0": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/utf_types/1.0.0/download" + ], + "strip_prefix": "utf_types-1.0.0", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"utf_types\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=utf_types\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.0\",\n)\n" + } + }, + "crates__value-trait-0.12.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "545a3d7089f11f1741d12963c057adf9443fc24325110a6a6daf582e825fd51b", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/value-trait/0.12.3/download" + ], + "strip_prefix": "value-trait-0.12.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"value_trait\",\n deps = [\n \"@crates__float-cmp-0.10.0//:float_cmp\",\n \"@crates__halfbrown-0.4.0//:halfbrown\",\n \"@crates__itoa-1.0.19//:itoa\",\n \"@crates__ryu-1.0.23//:ryu\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"custom-types\",\n \"default\",\n \"halfbrown\",\n \"runtime-detection\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2024\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=value-trait\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.12.3\",\n)\n" + } + }, + "crates__wasm-bindgen-0.2.121": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/wasm-bindgen/0.2.121/download" + ], + "strip_prefix": "wasm-bindgen-0.2.121", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"wasm_bindgen\",\n deps = [\n \":build_script_build\",\n \"@crates__cfg-if-1.0.5//:cfg_if\",\n \"@crates__once_cell-1.21.4//:once_cell\",\n \"@crates__wasm-bindgen-shared-0.2.121//:wasm_bindgen_shared\",\n ],\n proc_macro_deps = [\n \"@crates__wasm-bindgen-macro-0.2.121//:wasm_bindgen_macro\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=wasm-bindgen\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.121\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n aliases = {\n \"@crates__rustversion-1.0.23//:rustversion\": \"rustversion_compat\",\n },\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"default\",\n \"std\",\n ],\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n link_deps = [\n \"@crates__wasm-bindgen-shared-0.2.121//:wasm_bindgen_shared\",\n ],\n edition = \"2021\",\n pkg_name = \"wasm-bindgen\",\n proc_macro_deps = [\n \"@crates__rustversion-1.0.23//:rustversion\",\n ],\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=wasm-bindgen\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"0.2.121\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__wasm-bindgen-macro-0.2.121": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/wasm-bindgen-macro/0.2.121/download" + ], + "strip_prefix": "wasm-bindgen-macro-0.2.121", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"wasm_bindgen_macro\",\n deps = [\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__wasm-bindgen-macro-support-0.2.121//:wasm_bindgen_macro_support\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=wasm-bindgen-macro\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.121\",\n)\n" + } + }, + "crates__wasm-bindgen-macro-support-0.2.121": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/wasm-bindgen-macro-support/0.2.121/download" + ], + "strip_prefix": "wasm-bindgen-macro-support-0.2.121", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"wasm_bindgen_macro_support\",\n deps = [\n \"@crates__bumpalo-3.20.3//:bumpalo\",\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-2.0.119//:syn\",\n \"@crates__wasm-bindgen-shared-0.2.121//:wasm_bindgen_shared\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=wasm-bindgen-macro-support\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.121\",\n)\n" + } + }, + "crates__wasm-bindgen-shared-0.2.121": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/wasm-bindgen-shared/0.2.121/download" + ], + "strip_prefix": "wasm-bindgen-shared-0.2.121", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"wasm_bindgen_shared\",\n deps = [\n \":build_script_build\",\n \"@crates__unicode-ident-1.0.27//:unicode_ident\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=wasm-bindgen-shared\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.121\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n links = \"wasm_bindgen\",\n pkg_name = \"wasm-bindgen-shared\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=wasm-bindgen-shared\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"0.2.121\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + }, + "crates__windows-0.62.2": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/windows/0.62.2/download" + ], + "strip_prefix": "windows-0.62.2", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"windows\",\n deps = [\n \"@crates__windows-collections-0.3.2//:windows_collections\",\n \"@crates__windows-core-0.62.2//:windows_core\",\n \"@crates__windows-future-0.3.2//:windows_future\",\n \"@crates__windows-numerics-0.3.1//:windows_numerics\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"Win32\",\n \"Win32_Foundation\",\n \"Win32_Storage\",\n \"Win32_Storage_FileSystem\",\n \"default\",\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=windows\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.62.2\",\n)\n" + } + }, + "crates__windows-collections-0.3.2": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/windows-collections/0.3.2/download" + ], + "strip_prefix": "windows-collections-0.3.2", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"windows_collections\",\n deps = [\n \"@crates__windows-core-0.62.2//:windows_core\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=windows-collections\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.2\",\n)\n" + } + }, + "crates__windows-core-0.62.2": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/windows-core/0.62.2/download" + ], + "strip_prefix": "windows-core-0.62.2", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"windows_core\",\n deps = [\n \"@crates__windows-link-0.2.1//:windows_link\",\n \"@crates__windows-result-0.4.1//:windows_result\",\n \"@crates__windows-strings-0.5.1//:windows_strings\",\n ],\n proc_macro_deps = [\n \"@crates__windows-implement-0.60.2//:windows_implement\",\n \"@crates__windows-interface-0.59.3//:windows_interface\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=windows-core\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.62.2\",\n)\n" + } + }, + "crates__windows-future-0.3.2": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/windows-future/0.3.2/download" + ], + "strip_prefix": "windows-future-0.3.2", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"windows_future\",\n deps = [\n \"@crates__windows-core-0.62.2//:windows_core\",\n \"@crates__windows-link-0.2.1//:windows_link\",\n \"@crates__windows-threading-0.2.1//:windows_threading\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=windows-future\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.2\",\n)\n" + } + }, + "crates__windows-implement-0.60.2": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/windows-implement/0.60.2/download" + ], + "strip_prefix": "windows-implement-0.60.2", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"windows_implement\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-2.0.119//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=windows-implement\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.60.2\",\n)\n" + } + }, + "crates__windows-interface-0.59.3": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/windows-interface/0.59.3/download" + ], + "strip_prefix": "windows-interface-0.59.3", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"windows_interface\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-2.0.119//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=windows-interface\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.59.3\",\n)\n" + } + }, + "crates__windows-link-0.2.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/windows-link/0.2.1/download" + ], + "strip_prefix": "windows-link-0.2.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"windows_link\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=windows-link\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.1\",\n)\n" + } + }, + "crates__windows-numerics-0.3.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/windows-numerics/0.3.1/download" + ], + "strip_prefix": "windows-numerics-0.3.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"windows_numerics\",\n deps = [\n \"@crates__windows-core-0.62.2//:windows_core\",\n \"@crates__windows-link-0.2.1//:windows_link\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=windows-numerics\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.3.1\",\n)\n" + } + }, + "crates__windows-result-0.4.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/windows-result/0.4.1/download" + ], + "strip_prefix": "windows-result-0.4.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"windows_result\",\n deps = [\n \"@crates__windows-link-0.2.1//:windows_link\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=windows-result\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.4.1\",\n)\n" + } + }, + "crates__windows-strings-0.5.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/windows-strings/0.5.1/download" + ], + "strip_prefix": "windows-strings-0.5.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"windows_strings\",\n deps = [\n \"@crates__windows-link-0.2.1//:windows_link\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"std\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=windows-strings\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.5.1\",\n)\n" + } + }, + "crates__windows-sys-0.61.2": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/windows-sys/0.61.2/download" + ], + "strip_prefix": "windows-sys-0.61.2", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"windows_sys\",\n deps = [\n \"@crates__windows-link-0.2.1//:windows_link\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"Win32\",\n \"Win32_Foundation\",\n \"Win32_Storage\",\n \"Win32_Storage_FileSystem\",\n \"default\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=windows-sys\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.61.2\",\n)\n" + } + }, + "crates__windows-threading-0.2.1": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/windows-threading/0.2.1/download" + ], + "strip_prefix": "windows-threading-0.2.1", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"windows_threading\",\n deps = [\n \"@crates__windows-link-0.2.1//:windows_link\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=windows-threading\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.1\",\n)\n" + } + }, + "crates__writeable-0.6.4": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/writeable/0.6.4/download" + ], + "strip_prefix": "writeable-0.6.4", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"writeable\",\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=writeable\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.6.4\",\n)\n" + } + }, + "crates__yoke-0.8.4": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/yoke/0.8.4/download" + ], + "strip_prefix": "yoke-0.8.4", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"yoke\",\n deps = [\n \"@crates__stable_deref_trait-1.2.1//:stable_deref_trait\",\n \"@crates__zerofrom-0.1.8//:zerofrom\",\n ],\n proc_macro_deps = [\n \"@crates__yoke-derive-0.8.4//:yoke_derive\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"derive\",\n \"zerofrom\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=yoke\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.8.4\",\n)\n" + } + }, + "crates__yoke-derive-0.8.4": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/yoke-derive/0.8.4/download" + ], + "strip_prefix": "yoke-derive-0.8.4", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"yoke_derive\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-3.0.10//:syn\",\n \"@crates__synstructure-0.14.0//:synstructure\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=yoke-derive\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.8.4\",\n)\n" + } + }, + "crates__zerofrom-0.1.8": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/zerofrom/0.1.8/download" + ], + "strip_prefix": "zerofrom-0.1.8", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"zerofrom\",\n proc_macro_deps = [\n \"@crates__zerofrom-derive-0.1.8//:zerofrom_derive\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"derive\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=zerofrom\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.1.8\",\n)\n" + } + }, + "crates__zerofrom-derive-0.1.8": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/zerofrom-derive/0.1.8/download" + ], + "strip_prefix": "zerofrom-derive-0.1.8", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"zerofrom_derive\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-3.0.10//:syn\",\n \"@crates__synstructure-0.14.0//:synstructure\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=zerofrom-derive\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.1.8\",\n)\n" + } + }, + "crates__zerotrie-0.2.5": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/zerotrie/0.2.5/download" + ], + "strip_prefix": "zerotrie-0.2.5", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"zerotrie\",\n deps = [\n \"@crates__yoke-0.8.4//:yoke\",\n \"@crates__zerofrom-0.1.8//:zerofrom\",\n ],\n proc_macro_deps = [\n \"@crates__displaydoc-0.2.7//:displaydoc\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"yoke\",\n \"zerofrom\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=zerotrie\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.2.5\",\n)\n" + } + }, + "crates__zerovec-0.11.9": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/zerovec/0.11.9/download" + ], + "strip_prefix": "zerovec-0.11.9", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"zerovec\",\n deps = [\n \"@crates__yoke-0.8.4//:yoke\",\n \"@crates__zerofrom-0.1.8//:zerofrom\",\n ],\n proc_macro_deps = [\n \"@crates__zerovec-derive-0.11.7//:zerovec_derive\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_features = [\n \"alloc\",\n \"derive\",\n \"yoke\",\n ],\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=zerovec\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.11.9\",\n)\n" + } + }, + "crates__zerovec-derive-0.11.7": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/zerovec-derive/0.11.7/download" + ], + "strip_prefix": "zerovec-derive-0.11.7", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\"@rules_rust//cargo:defs.bzl\", \"cargo_toml_env_vars\")\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_proc_macro\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_proc_macro(\n name = \"zerovec_derive\",\n deps = [\n \"@crates__proc-macro2-1.0.107//:proc_macro2\",\n \"@crates__quote-1.0.47//:quote\",\n \"@crates__syn-3.0.10//:syn\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=zerovec-derive\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"0.11.7\",\n)\n" + } + }, + "crates__zmij-1.0.23": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "patch_args": [], + "patch_tool": "", + "patches": [], + "remote_patch_strip": 1, + "sha256": "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b", + "type": "tar.gz", + "urls": [ + "https://static.crates.io/crates/zmij/1.0.23/download" + ], + "strip_prefix": "zmij-1.0.23", + "build_file_content": "###############################################################################\n# @generated\n# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To \n# regenerate this file, run the following:\n#\n# bazel mod show_repo 'angular'\n###############################################################################\n\nload(\n \"@rules_rust//cargo:defs.bzl\",\n \"cargo_build_script\",\n \"cargo_toml_env_vars\",\n)\n\nload(\"@rules_rust//rust:defs.bzl\", \"rust_library\")\n\n# buildifier: disable=bzl-visibility\nload(\"@rules_rust//crate_universe/private:selects.bzl\", \"selects\")\n\npackage(default_visibility = [\"//visibility:public\"])\n\ncargo_toml_env_vars(\n name = \"cargo_toml_env_vars\",\n src = \"Cargo.toml\",\n)\n\nrust_library(\n name = \"zmij\",\n deps = [\n \":build_script_build\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_root = \"src/lib.rs\",\n edition = \"2021\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=zmij\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n target_compatible_with = select({\n \"@rules_rust//rust/platform:aarch64-apple-darwin\": [],\n \"@rules_rust//rust/platform:aarch64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:wasm32-unknown-unknown\": [],\n \"@rules_rust//rust/platform:wasm32-wasip1\": [],\n \"@rules_rust//rust/platform:x86_64-pc-windows-msvc\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-linux-gnu\": [],\n \"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu\": [],\n \"//conditions:default\": [\"@platforms//:incompatible\"],\n }),\n version = \"1.0.23\",\n)\n\ncargo_build_script(\n name = \"_bs\",\n build_script_env_files = [\n \":cargo_toml_env_vars\",\n ],\n compile_data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \"**/*.rs\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n crate_name = \"build_script_build\",\n crate_root = \"build.rs\",\n data = glob(\n allow_empty = True,\n include = [\"**\"],\n exclude = [\n \"**/* *\",\n \".tmp_git_root/**/*\",\n \"BUILD\",\n \"BUILD.bazel\",\n \"WORKSPACE\",\n \"WORKSPACE.bazel\",\n ],\n ),\n emit_warnings = False,\n edition = \"2021\",\n pkg_name = \"zmij\",\n rustc_env_files = [\n \":cargo_toml_env_vars\",\n ],\n rustc_flags = [\n \"--cap-lints=allow\",\n ],\n srcs = glob(\n allow_empty = True,\n include = [\"**/*.rs\"],\n ),\n tags = [\n \"cargo-bazel\",\n \"crate-name=zmij\",\n \"manual\",\n \"noclippy\",\n \"norustfmt\",\n ],\n version = \"1.0.23\",\n visibility = [\"//visibility:private\"],\n)\n\nalias(\n name = \"build_script_build\",\n actual = \":_bs\",\n tags = [\"manual\"],\n)\n" + } + } + } + } + }, + "@@rules_rust+//crate_universe/private:internal_extensions.bzl%cu_nr": { + "general": { + "bzlTransitiveDigest": "0TnDR8NyTsBuUOZvoRgWmoyj3e9RCS2alG4Nzms+Z5Q=", + "usagesDigest": "/bGmDj4Nr856OGWTjcSOPnxG0gSTFtYse380wG1a98A=", + "recordedInputs": [ + "REPO_MAPPING:apple_support+,bazel_skylib bazel_skylib+", + "REPO_MAPPING:bazel_features+,bazel_features_globals bazel_features++version_extension+bazel_features_globals", + "REPO_MAPPING:bazel_features+,bazel_features_version bazel_features++version_extension+bazel_features_version", + "REPO_MAPPING:rules_cc+,bazel_tools bazel_tools", + "REPO_MAPPING:rules_cc+,cc_compatibility_proxy rules_cc++compatibility_proxy+cc_compatibility_proxy", + "REPO_MAPPING:rules_cc+,rules_cc rules_cc+", + "REPO_MAPPING:rules_cc++compatibility_proxy+cc_compatibility_proxy,rules_cc rules_cc+", + "REPO_MAPPING:rules_rust+,apple_support apple_support+", + "REPO_MAPPING:rules_rust+,bazel_features bazel_features+", + "REPO_MAPPING:rules_rust+,bazel_skylib bazel_skylib+", + "REPO_MAPPING:rules_rust+,bazel_tools bazel_tools", + "REPO_MAPPING:rules_rust+,cui rules_rust++cu+cui", + "REPO_MAPPING:rules_rust+,rrc rules_rust++i2+rrc", + "REPO_MAPPING:rules_rust+,rules_cc rules_cc+", + "REPO_MAPPING:rules_rust+,rules_rust rules_rust+" + ], + "generatedRepoSpecs": { + "cargo_bazel_bootstrap": { + "repoRuleId": "@@rules_rust+//cargo/private:cargo_bootstrap.bzl%cargo_bootstrap_repository", + "attributes": { + "srcs": [ + "@@rules_rust+//crate_universe:src/api.rs", + "@@rules_rust+//crate_universe:src/api/lockfile.rs", + "@@rules_rust+//crate_universe:src/cli.rs", + "@@rules_rust+//crate_universe:src/cli/generate.rs", + "@@rules_rust+//crate_universe:src/cli/query.rs", + "@@rules_rust+//crate_universe:src/cli/render.rs", + "@@rules_rust+//crate_universe:src/cli/splice.rs", + "@@rules_rust+//crate_universe:src/cli/vendor.rs", + "@@rules_rust+//crate_universe:src/config.rs", + "@@rules_rust+//crate_universe:src/config/label_injection.rs", + "@@rules_rust+//crate_universe:src/context.rs", + "@@rules_rust+//crate_universe:src/context/crate_context.rs", + "@@rules_rust+//crate_universe:src/context/platforms.rs", + "@@rules_rust+//crate_universe:src/lib.rs", + "@@rules_rust+//crate_universe:src/lockfile.rs", + "@@rules_rust+//crate_universe:src/main.rs", + "@@rules_rust+//crate_universe:src/metadata.rs", + "@@rules_rust+//crate_universe:src/metadata/cargo_bin.rs", + "@@rules_rust+//crate_universe:src/metadata/cargo_tree_resolver.rs", + "@@rules_rust+//crate_universe:src/metadata/cargo_tree_rustc_wrapper.bat", + "@@rules_rust+//crate_universe:src/metadata/cargo_tree_rustc_wrapper.sh", + "@@rules_rust+//crate_universe:src/metadata/dependency.rs", + "@@rules_rust+//crate_universe:src/metadata/metadata_annotation.rs", + "@@rules_rust+//crate_universe:src/rendering.rs", + "@@rules_rust+//crate_universe:src/rendering/template_engine.rs", + "@@rules_rust+//crate_universe:src/rendering/templates/defs_bzl_shim.j2", + "@@rules_rust+//crate_universe:src/rendering/templates/module_bzl.j2", + "@@rules_rust+//crate_universe:src/rendering/templates/partials/header.j2", + "@@rules_rust+//crate_universe:src/rendering/templates/partials/module/aliases_map.j2", + "@@rules_rust+//crate_universe:src/rendering/templates/partials/module/deps_map.j2", + "@@rules_rust+//crate_universe:src/rendering/templates/partials/module/repo_git.j2", + "@@rules_rust+//crate_universe:src/rendering/templates/partials/module/repo_http.j2", + "@@rules_rust+//crate_universe:src/rendering/verbatim/alias_rules.bzl", + "@@rules_rust+//crate_universe:src/select.rs", + "@@rules_rust+//crate_universe:src/splicing.rs", + "@@rules_rust+//crate_universe:src/splicing/cargo_config.rs", + "@@rules_rust+//crate_universe:src/splicing/crate_index_lookup.rs", + "@@rules_rust+//crate_universe:src/splicing/splicer.rs", + "@@rules_rust+//crate_universe:src/test.rs", + "@@rules_rust+//crate_universe:src/utils.rs", + "@@rules_rust+//crate_universe:src/utils/starlark.rs", + "@@rules_rust+//crate_universe:src/utils/starlark/glob.rs", + "@@rules_rust+//crate_universe:src/utils/starlark/label.rs", + "@@rules_rust+//crate_universe:src/utils/starlark/select.rs", + "@@rules_rust+//crate_universe:src/utils/starlark/select_dict.rs", + "@@rules_rust+//crate_universe:src/utils/starlark/select_list.rs", + "@@rules_rust+//crate_universe:src/utils/starlark/select_scalar.rs", + "@@rules_rust+//crate_universe:src/utils/starlark/select_set.rs", + "@@rules_rust+//crate_universe:src/utils/starlark/serialize.rs", + "@@rules_rust+//crate_universe:src/utils/starlark/target_compatible_with.rs", + "@@rules_rust+//crate_universe:src/utils/symlink.rs", + "@@rules_rust+//crate_universe:src/utils/target_triple.rs" + ], + "binary": "cargo-bazel", + "cargo_lockfile": "@@rules_rust+//crate_universe:Cargo.lock", + "cargo_toml": "@@rules_rust+//crate_universe:Cargo.toml", + "version": "1.99.1", + "rust_toolchain_cargo_template": "@rust_host_tools//:bin/{tool}", + "rust_toolchain_rustc_template": "@rust_host_tools//:bin/{tool}", + "compressed_windows_toolchain_names": false, + "timeout": 900 + } + } + }, + "moduleExtensionMetadata": { + "explicitRootModuleDirectDeps": [ + "cargo_bazel_bootstrap" + ], + "explicitRootModuleDirectDevDeps": [], + "useAllRepos": "NO", + "reproducible": false + } + } + }, + "@@rules_sass+//src/toolchain:extensions.bzl%sass": { + "general": { + "bzlTransitiveDigest": "mOfuR8PsNuUWEq7JZ4MpIRbwyAGAqrCvkXXGaRNnlPQ=", + "usagesDigest": "R0KshhzIouLWuexMUCrl4HY+FUDwlVVgF9Z7UnwyUWA=", + "recordedInputs": [], + "generatedRepoSpecs": { + "linux_amd64_sass": { + "repoRuleId": "@@rules_sass+//src/toolchain:configure_sass.bzl%configure_sass", + "attributes": { + "file": "@rules_sass//src/compiler/built:sass_linux_x64", + "sha256": "", + "constraints": [ + "@@platforms//os:linux", + "@@platforms//cpu:x86_64" + ] + } + }, + "linux_arm64_sass": { + "repoRuleId": "@@rules_sass+//src/toolchain:configure_sass.bzl%configure_sass", + "attributes": { + "file": "@rules_sass//src/compiler/built:sass_linux_arm", + "sha256": "", + "constraints": [ + "@@platforms//os:linux", + "@@platforms//cpu:arm64" + ] + } + }, + "darwin_amd64_sass": { + "repoRuleId": "@@rules_sass+//src/toolchain:configure_sass.bzl%configure_sass", + "attributes": { + "file": "@rules_sass//src/compiler/built:sass_mac_x64", + "sha256": "", + "constraints": [ + "@@platforms//os:macos", + "@@platforms//cpu:x86_64" + ] + } + }, + "darwin_arm64_sass": { + "repoRuleId": "@@rules_sass+//src/toolchain:configure_sass.bzl%configure_sass", + "attributes": { + "file": "@rules_sass//src/compiler/built:sass_mac_arm", + "sha256": "", + "constraints": [ + "@@platforms//os:macos", + "@@platforms//cpu:arm64" + ] + } + } + } + } + }, + "@@yq.bzl+//yq:extensions.bzl%yq": { + "general": { + "bzlTransitiveDigest": "lH0oIGWeh0sI6/jlDMTxYo34YKkvNfvwdiMIhfM532I=", + "usagesDigest": "aFZO0y4lKtGQKy4wNhdb7KZkQ9pqMiPwkWygLMm1p9o=", + "recordedInputs": [ + "REPO_MAPPING:yq.bzl+,bazel_lib bazel_lib+" + ], + "generatedRepoSpecs": { + "yq_darwin_amd64": { + "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "attributes": { + "platform": "darwin_amd64", + "version": "4.45.2" + } + }, + "yq_darwin_arm64": { + "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "attributes": { + "platform": "darwin_arm64", + "version": "4.45.2" + } + }, + "yq_linux_amd64": { + "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "attributes": { + "platform": "linux_amd64", + "version": "4.45.2" + } + }, + "yq_linux_arm64": { + "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "attributes": { + "platform": "linux_arm64", + "version": "4.45.2" + } + }, + "yq_linux_s390x": { + "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "attributes": { + "platform": "linux_s390x", + "version": "4.45.2" + } + }, + "yq_linux_riscv64": { + "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "attributes": { + "platform": "linux_riscv64", + "version": "4.45.2" + } + }, + "yq_linux_ppc64le": { + "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "attributes": { + "platform": "linux_ppc64le", + "version": "4.45.2" + } + }, + "yq_windows_amd64": { + "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "attributes": { + "platform": "windows_amd64", + "version": "4.45.2" + } + }, + "yq_windows_arm64": { + "repoRuleId": "@@yq.bzl+//yq/toolchain:platforms.bzl%yq_platform_repo", + "attributes": { + "platform": "windows_arm64", + "version": "4.45.2" + } + }, + "yq_toolchains": { + "repoRuleId": "@@yq.bzl+//yq/toolchain:toolchain.bzl%yq_toolchains_repo", + "attributes": { + "user_repository_name": "yq" + } + }, + "yq": { + "repoRuleId": "@@yq.bzl+//yq/toolchain:toolchain.bzl%yq_host_alias_repo", + "attributes": {} + } + } + } + } + }, + "facts": { + "@@aspect_rules_js+//npm:extensions.bzl%pnpm": { + "exe:12.18.0": "{\"darwin-arm64\":\"sha512-zkq+4YzVIX39ETYLyC3W7LY7MpHEU/J3nRhHl4i2yPld2Cf2+rEKRh3ejJ4AmaQ77HHJLCktY4Z3jq0fpcxFXg==\",\"darwin-x64\":\"sha512-qMsL9qx92unOTa6hgkfiTJv8ceZaTx0IQg7InhYDVX2ZrTECujaVEEVypnJK5m3eGUsP1KD7Y4qIgleCwfRsYw==\",\"linux-arm64\":\"sha512-2dpyVBCHT+FfpuQh9i+7MXAqNWYLCvD5vYr5p6Eimxoga8USLnjbUgyj72AOrO0hjc5ri3TEFP3jiyBHjkSZpQ==\",\"linux-arm64-musl\":\"sha512-Vp+TIMPPyackVCXkOdEKH/RmAn/r07EcIyrgZYQK7VrkksqZOie0GnWIx+85mPqeFEYCRtXIZAFJ9L4ceTndDg==\",\"linux-x64\":\"sha512-OJ+X2wcraldCwj75pCIerWARQSRpdfj0eBTs/2ODyhfeW46ylOnjTIE/GKra6Mn6E72/gBmXS8igrUioa+F9fQ==\",\"linux-x64-musl\":\"sha512-Uj+vzfIQ62kDP10x36yHZIXVs5ohdNtiPYwn5FhCLlNScHPo0OAI+ShGDtLofiBXKE7umu71Jmjm7N8a8zVcDw==\",\"win32-arm64\":\"sha512-wEY6jiACGcbhhi5yD59doHqNTndS7AaujaPmtWAu1DKkHru2hy5fJ9yUGecW72Ypaw2/I3BEprfMOopap2NQtw==\",\"win32-x64\":\"sha512-5FJkghO7RLRkQpWxeVEygW9XsmnNuxzPfXbgwFWCHsFyFhpDn/vOdL88ToQEM0Kt5igdW5s6U0/IDH8Dvkt3pg==\"}" + }, + "@@aspect_tools_telemetry+//:extension.bzl%telemetry": { + "notice_version": "2" + } + }, + "factsVersions": {} } diff --git a/SECURITY.md b/SECURITY.md index 0361308689ab..1f57d501eb91 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,3 +1,53 @@ Angular is part of Google [Open Source Software Vulnerability Reward Program](https://bughunters.google.com/about/rules/6521337925468160/google-open-source-software-vulnerability-reward-program-rules). For vulnerabilities in Angular, please submit your report [here](https://bughunters.google.com/report). For more information, check out [Angular's security policy](https://angular.dev/best-practices/security). + +## Policies + +The following defines some team policies around what does and does not constitute a security vulnerability in the Angular framework. + +- **Prototype pollution is itself a DoS vulnerability.** + - An attacker could pollute any symbol into the wrong type and cause an error, nothing we can do will prevent that. + - Therefore we don't care about any DoS vulnerability which relies on prototype pollution as a precondition. +- **We trust the user's source code.** + - "A malicious repository can execute untrusted code" is not a viable attack vector. + - Language service does not run in restricted mode, has minimal risk of a malicious repository compromising a user. + - We assume it is always unsafe to run an untrusted repository outside of a sandbox. +- **DoS attacks which break only the attacker's client are not security issues.** + - Exception: DoS attacks which break other users may be security issues. + - Exception: DoS attacks which waste server resources significantly beyond the cost of the attacker's request may be security issues. +- **Memory leaks are considered general bugs, not DOS vulnerabilities.** + - While any memory leak is technically a DOS vulnerability in SSR, these are generally low enough impact to not be considered security issues. +- **Our public API contract is defined by our TS types, any issue which requires breaking those types (ex. via a cast to `any`) falls outside Angular's support.** + - Ex. It may be possible to leak user state by attaching it to some global data structure in SSR, but we do not consider this to be a valid vulnerability if you have to escape TS types to do it. +- **JIT compiler is removed and not supported in production.** + - Exploits which require the JIT compiler on the page are not vulnerabilities. +- **Circumventing router guards/safety checks in CSR or SSR is not a security vulnerability.** + - Attackers can trivially circumvent these guards in CSR via dev tooling. + - Developers should not rely upon these guards in SSR either, they are purely convenience. +- **Circumventing form validity checks is not a security vulnerability.** + - Attackers can trivially circumvent these checks via dev tooling. + +## Invariants + +The following are invariants about Angular's technical infrastructure which limit some potential attack vectors. These statements are asserted by humans, not proven in any formal means. However, any security report should assume them to be true unless and until it can conclusively prove them to be false in an attack. If one of these statements invalidates a security report, that report bears the burden of conclusively demonstrating the statement to be false in its reproduction. + +- **Zones don't leak across SSR requests (except for the root).** + - Every request gets its own Zone, so data stored on the Zone is unique to that user, no intrinsic risk of leaking user data from one request to an attacker's request. +- **Injectors are not shared between applications.** + - SSR always creates a new ApplicationRef and root services, no intrinsic risk of leaking user data from one request to an attacker's request. + - Exception: Module-scoped data is shared and is a potential vector for data leakage. +- **`ngDevMode` / `ngServerMode` are set at compile time** in production deployments and cannot be manipulated by attackers. + +## Prioritization Guide + +Angular (specifically the framework) is not a product, and almost no vulnerability is an exploit in and of itself, given there is nothing to compromise. Angular can only be exploited through a real deployment of a specific application. The vast majority of potential issues do not affect the default `ng new` app, and require additional steps of varying use/misuse of the framework before introducing a vulnerability on that real application. This goes beyond just an attacker finding the right sequence of characters to cause an exploit, and requires a well-intentioned developer to make a legitimate mistake introducing the vulnerability in the first place. Therefore we need to examine prioritization through the lens of how likely a developer is to make that mistake and the severity of what happens when they do. + +- **High:** A vulnerability impacts ~all users of a major feature in common usage such as SSR, hydration, templating, or routing (ex. SSRF via a malicious `Host` header affects all SSR + `HttpClient` users, which is a fairly common use case). +- **Medium:** A vulnerability impacts users interacting with public APIs in their reasonable usage. +- **Low:** A vulnerability impacts users interacting with public APIs misused in an unintended or unreasonable way (ex. vulnerability from unsanitized user input polluting the `APP_ID` value, which should never be user writable). +- **None:** A vulnerability impacts users of private APIs or explicitly unsupported use cases. + +Experimental / developer preview APIs _are not_ exempted from these priorities. While we make no hard guarantees about these APIs publicly, a vulnerability in such features should be raised to our attention and addressed before reaching stability. + +_Exception:_ angular.dev, Angular DevTools, and the Angular VSCode Extension _are_ products with concrete deployments and can be exploited in their current states. Vulnerabilities should be evaluated against the real deployments of these products. diff --git a/adev/BUILD.bazel b/adev/BUILD.bazel index dca05f409a65..191f331ea51b 100644 --- a/adev/BUILD.bazel +++ b/adev/BUILD.bazel @@ -56,6 +56,7 @@ APPLICATION_DEPS = [ ":node_modules/@codemirror/lint", ":node_modules/@codemirror/search", ":node_modules/@codemirror/state", + ":node_modules/@codemirror/streamparser", ":node_modules/@codemirror/view", ":node_modules/@lezer/common", ":node_modules/@lezer/highlight", @@ -84,6 +85,7 @@ APPLICATION_DEPS = [ ":node_modules/@algolia/client-common", ":node_modules/@algolia/requester-browser-xhr", ":node_modules/@algolia/requester-node-http", + ":node_modules/beasties", ":node_modules/@lezer/css", ":node_modules/@lezer/html", ":node_modules/@lezer/lr", @@ -144,6 +146,11 @@ ng_application( env = { "NG_BUILD_PARTIAL_SSR": "1", }, + execution_requirements = { + # RBE significantly slows down the build because the CLI executes multiple CPU-intensive instances of esbuild. + # Furthermore, the current RBE machine pool lacks high-spec machines. + "no-remote-exec": "1", + }, ng_config = ":ng_config", node_modules = ":node_modules", project_name = "angular-dev", @@ -154,9 +161,6 @@ ng_application( tags = [ # Tagged as manual as both build and build.production use the same output directory. "manual", - # RBE significantly slows down the build because the CLI executes multiple CPU-intensive instances of esbuild. - # Furthermore, the current RBE machine pool lacks high-spec machines. - "no-remote-exec", ], ) @@ -170,6 +174,11 @@ ng_application( env = { "NG_BUILD_OPTIMIZE_CHUNKS": "1", }, + execution_requirements = { + # RBE significantly slows down the build because the CLI executes multiple CPU-intensive instances of esbuild. + # Furthermore, the current RBE machine pool lacks high-spec machines. + "no-remote-exec": "1", + }, ng_config = ":ng_config", node_modules = ":node_modules", project_name = "angular-dev", @@ -180,9 +189,6 @@ ng_application( tags = [ # Tagged as manual as both build and build.production use the same output directory. "manual", - # RBE significantly slows down the build because the CLI executes multiple CPU-intensive instances of esbuild. - # Furthermore, the current RBE machine pool lacks high-spec machines. - "no-remote-exec", ], ) diff --git a/adev/angular.json b/adev/angular.json index 2d2e45f6c6ce..d9335b56fbae 100644 --- a/adev/angular.json +++ b/adev/angular.json @@ -26,14 +26,7 @@ "polyfills": [], "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", - "assets": [ - "src/favicon.ico", - "src/robots.txt", - "src/llms.txt", - "src/assets", - "src/assets/images/v21-event", - "src/assets/images/v22-event" - ], + "assets": ["src/favicon.ico", "src/robots.txt", "src/llms.txt", "src/assets"], "styles": ["@angular/docs/styles/global-styles.scss", "./src/local-styles.scss"], "scripts": [], "webWorkerTsConfig": "tsconfig.worker.json", diff --git a/adev/e2e_test/BUILD.bazel b/adev/e2e_test/BUILD.bazel new file mode 100644 index 000000000000..3aa8c01948b5 --- /dev/null +++ b/adev/e2e_test/BUILD.bazel @@ -0,0 +1,40 @@ +load("//tools:defaults.bzl", "http_server", "ts_project", "webdriver_test") + +package(default_visibility = ["//visibility:public"]) + +http_server( + name = "devserver", + testonly = True, + additional_root_paths = [ + "_main/adev/dist/browser", + ], + relax_cors = True, + tags = [ + "manual", + ], + deps = ["//adev:build"], +) + +ts_project( + name = "e2e_tests_lib", + testonly = True, + srcs = glob(["**/*.spec.ts"]), + tsconfig = ":tsconfig.json", + deps = [ + "//:node_modules/@types/jasmine", + "//:node_modules/@types/selenium-webdriver", + "//:node_modules/selenium-webdriver", + "//packages/examples/test-utils", + ], +) + +webdriver_test( + name = "webdriver_tests", + server = ":devserver", + tags = [ + "requires-network", + ], + deps = [ + ":e2e_tests_lib", + ], +) diff --git a/adev/e2e_test/playground.spec.ts b/adev/e2e_test/playground.spec.ts new file mode 100644 index 000000000000..8bae9d215c6e --- /dev/null +++ b/adev/e2e_test/playground.spec.ts @@ -0,0 +1,46 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import * as webdriver from 'selenium-webdriver'; +import {createWebDriver} from '../../packages/examples/test-utils'; + +describe('Playground', () => { + let driver: webdriver.WebDriver; + let baseUrl: string; + + beforeAll(async () => { + ({driver, baseUrl} = await createWebDriver()); + }); + + afterAll(async () => { + await driver.quit(); + }); + + it('should run an Angular application in the preview', async () => { + await driver.get(`${baseUrl}/playground`); + + await driver.wait(async () => { + try { + await driver.switchTo().defaultContent(); + const previewFrame = await driver.findElement( + webdriver.By.css('iframe.adev-embedded-editor-preview[src^="http"]'), + ); + await driver.switchTo().frame(previewFrame); + const appRoot = await driver.findElement(webdriver.By.css('app-root')); + const text = await appRoot.getText(); + if (text.includes('Hello world!')) { + return true; + } + } catch { + // Ignore errors while the preview iframe and Angular app are still loading. + } + await driver.sleep(1000); + return false; + }, 90_000); + }); +}); diff --git a/adev/e2e_test/tsconfig.json b/adev/e2e_test/tsconfig.json new file mode 100644 index 000000000000..ea4a7f9d9192 --- /dev/null +++ b/adev/e2e_test/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "lib": ["es2022"], + "types": ["node", "jasmine", "selenium-webdriver"], + "declaration": true, + "sourceMap": true + } +} diff --git a/adev/package.json b/adev/package.json index 9bfae329f941..a60546a57a19 100644 --- a/adev/package.json +++ b/adev/package.json @@ -1,43 +1,44 @@ { "dependencies": { - "@algolia/client-common": "5.57.0", - "@algolia/client-search": "5.57.0", - "@algolia/requester-browser-xhr": "5.57.0", - "@algolia/requester-node-http": "5.57.0", + "@algolia/client-common": "5.64.0", + "@algolia/client-search": "5.64.0", + "@algolia/requester-browser-xhr": "5.64.0", + "@algolia/requester-node-http": "5.64.0", "@angular/animations": "workspace:*", - "@angular/aria": "22.2.0-next.3", - "@angular/build": "22.2.0-next.5", - "@angular/cdk": "22.2.0-next.3", - "@angular/cli": "22.2.0-next.5", + "@angular/aria": "22.3.0-rc.0", + "@angular/build": "22.3.0-rc.0", + "@angular/cdk": "22.3.0-rc.0", + "@angular/cli": "22.3.0-rc.0", "@angular/common": "workspace:*", "@angular/compiler": "workspace:*", "@angular/compiler-cli": "workspace:*", "@angular/core": "workspace:*", "@angular/docs": "workspace:*", "@angular/forms": "workspace:*", - "@angular/material": "22.2.0-next.3", + "@angular/material": "22.3.0-rc.0", "@angular/platform-browser": "workspace:*", "@angular/platform-server": "workspace:*", "@angular/router": "workspace:*", - "@angular/ssr": "22.2.0-next.5", - "@codemirror/autocomplete": "6.20.3", - "@codemirror/commands": "6.11.0", + "@angular/ssr": "22.3.0-rc.0", + "@codemirror/autocomplete": "6.20.4", + "@codemirror/commands": "6.11.1", "@codemirror/lang-angular": "0.1.4", "@codemirror/lang-css": "6.3.1", "@codemirror/lang-html": "6.4.12", "@codemirror/lang-javascript": "6.2.5", "@codemirror/lang-sass": "6.0.2", - "@codemirror/language": "6.12.4", + "@codemirror/language": "6.13.1", + "@codemirror/streamparser": "6.0.0", "@codemirror/lint": "6.9.7", - "@codemirror/search": "6.7.1", - "@codemirror/state": "6.7.1", - "@codemirror/view": "6.43.9", - "@lezer/common": "1.5.2", - "@lezer/css": "1.3.6", - "@lezer/highlight": "1.2.3", + "@codemirror/search": "6.7.2", + "@codemirror/state": "6.7.6", + "@codemirror/view": "6.43.15", + "@lezer/common": "1.5.5", + "@lezer/css": "1.3.9", + "@lezer/highlight": "1.2.5", "@lezer/html": "1.3.13", - "@lezer/javascript": "1.5.4", - "@lezer/lr": "1.4.10", + "@lezer/javascript": "1.5.6", + "@lezer/lr": "1.4.12", "@lezer/sass": "1.1.0", "@marijn/find-cluster-break": "1.0.4", "@shikijs/core": "^4.0.0", @@ -50,55 +51,56 @@ "@shikijs/vscode-textmate": "^10.0.2", "@stackblitz/sdk": "1.11.1", "@types/dom-navigation": "1.0.7", - "@types/jasmine": "6.0.0", + "@types/jasmine": "7.0.0", "@types/jsdom": "30.0.0", - "@types/node": "24.13.3", - "@typescript/vfs": "1.6.4", + "@types/node": "24.19.2", + "@typescript/vfs": "1.6.6", "@webcontainer/api": "1.6.4", "@xterm/addon-fit": "0.11.0", "@xterm/xterm": "6.0.0", - "algoliasearch": "5.57.0", + "algoliasearch": "5.64.0", "angular-split": "20.0.0", + "beasties": "0.5.5", "ccount": "^2.0.1", "character-entities-html4": "^2.1.0", "character-entities-legacy": "^3.0.0", "comma-separated-tokens": "^2.0.3", "crelt": "1.0.7", "diff": "9.0.0", - "emoji-regex": "10.6.0", + "emoji-regex": "11.0.0", "fflate": "0.8.3", "hast-util-to-html": "^9.0.5", "hast-util-whitespace": "^3.0.0", "html-void-elements": "^3.0.0", - "jsdom": "30.0.1", - "jasmine-core": "6.3.0", + "jasmine-core": "7.0.2", + "jsdom": "31.0.0", "karma-chrome-launcher": "3.2.0", "karma-coverage": "2.2.1", "karma-jasmine": "5.1.0", "karma-jasmine-html-reporter": "2.3.0", - "marked": "18.0.11", - "mermaid": "11.17.2", + "marked": "18.2.0", + "mermaid": "12.3.0", "ngx-progressbar": "14.0.0", - "playwright-core": "1.62.1", - "preact": "10.29.8", - "preact-render-to-string": "6.7.0", - "prettier": "3.9.6", + "playwright-core": "1.65.0", + "preact": "11.2.0", + "preact-render-to-string": "6.8.2", + "prettier": "3.10.0", "property-information": "^7.1.0", "rxjs": "7.8.2", - "shiki": "4.4.3", + "shiki": "4.6.0", "space-separated-tokens": "^2.0.2", "stringify-entities": "^4.0.4", - "style-mod": "4.1.3", + "style-mod": "4.1.4", "tinyglobby": "0.2.17", - "tslib": "2.8.1", + "tslib": "2.9.1", "typescript": "6.0.3", "w3c-keyname": "2.2.8", "zwitch": "^2.0.4" }, "devDependencies": { - "autoprefixer": "10.5.4", + "autoprefixer": "10.6.2", "karma": "~6.4.4", - "postcss": "8.5.26", + "postcss": "8.5.32", "tailwindcss": "3.4.19" } } diff --git a/adev/scripts/routes/BUILD.bazel b/adev/scripts/routes/BUILD.bazel index 6dbfbd916d92..df817de4ba22 100644 --- a/adev/scripts/routes/BUILD.bazel +++ b/adev/scripts/routes/BUILD.bazel @@ -1,5 +1,5 @@ load("@aspect_rules_ts//ts:defs.bzl", "ts_project") -load("//adev/shared-docs:defaults.bzl", "js_binary", "js_run_binary") +load("//adev/shared-docs:defaults.bzl", "js_binary", "js_run_binary", "zoneless_jasmine_test") package(default_visibility = ["//adev:__subpackages__"]) @@ -51,11 +51,48 @@ js_run_binary( outs = ["defined-routes.json"], chdir = package_name(), tool = ":generate_route", - # Public so the api-gen rendering pipeline (used from //packages/...) can validate guide - # links against the same set of routes defined for the live site. - visibility = [ - "//adev:__subpackages__", - "//packages:__subpackages__", - "//tools:__subpackages__", +) + +ts_project( + name = "test_lib", + testonly = True, + srcs = [ + "routes.spec.mts", + ], + data = [ + "//adev/src/assets:docs_api_manifest", + "//adev/src/content:guide_files", + "//adev/src/content/tutorials/deferrable-views", + "//adev/src/content/tutorials/first-app", + "//adev/src/content/tutorials/learn-angular", + "//adev/src/content/tutorials/signal-forms", + "//adev/src/content/tutorials/signals", + ], + tsconfig = { + "compilerOptions": { + "target": "ES2022", + "module": "nodenext", + "moduleResolution": "nodenext", + "types": [ + "node", + "jasmine", + ], + "rootDir": ".", + "skipLibCheck": True, + }, + }, + deps = [ + "//adev:node_modules/@types/jasmine", + "//adev:node_modules/@types/node", + "//adev/shared-docs/interfaces", + "//adev/shared-docs/utils", + "//adev/src/app/routing/navigation-entries", + "//adev/src/content/reference/errors:route-nav-items", + "//adev/src/content/reference/extended-diagnostics:route-nav-items", ], ) + +zoneless_jasmine_test( + name = "test", + data = [":test_lib"], +) diff --git a/adev/scripts/routes/routes.spec.mts b/adev/scripts/routes/routes.spec.mts new file mode 100644 index 000000000000..050eb76068b9 --- /dev/null +++ b/adev/scripts/routes/routes.spec.mts @@ -0,0 +1,144 @@ +/*! + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import { + ALL_ITEMS, + DOCS_SUB_NAVIGATION_DATA, + FOOTER_NAVIGATION_DATA, + REFERENCE_SUB_NAVIGATION_DATA, + TUTORIALS_SUB_NAVIGATION_DATA, +} from '../../src/app/routing/navigation-entries/index.js'; +import {NavigationItem} from '../../shared-docs/interfaces/index.js'; +import {flatNavigationData, mapNavigationItemsToRoutes} from '../../shared-docs/utils/index.js'; +import {existsSync} from 'fs'; +import {join, resolve} from 'path'; + +describe('adev navigation and route generation smoke tests', () => { + // Relative to adev/scripts/routes + const contentRoot = resolve(process.cwd(), '../../src/content'); + + function collectAllNavigationItems(items: NavigationItem[]): NavigationItem[] { + const result: NavigationItem[] = []; + for (const item of items) { + result.push(item); + if (item.children) { + result.push(...collectAllNavigationItems(item.children)); + } + } + return result; + } + + it('should have populated navigation collections', () => { + expect(DOCS_SUB_NAVIGATION_DATA.length).toBeGreaterThan(0); + expect(REFERENCE_SUB_NAVIGATION_DATA.length).toBeGreaterThan(0); + expect(TUTORIALS_SUB_NAVIGATION_DATA.length).toBeGreaterThan(0); + expect(FOOTER_NAVIGATION_DATA.length).toBeGreaterThan(0); + expect(ALL_ITEMS.length).toBeGreaterThan(0); + }); + + it('should have existing markdown files for all navigation items with contentPath', () => { + const allItems = collectAllNavigationItems(ALL_ITEMS); + const missingContentFiles: string[] = []; + + for (const item of allItems) { + if (item.contentPath) { + const relativePath = + item.contentPath.endsWith('.md') || item.contentPath.endsWith('.html') + ? item.contentPath + : `${item.contentPath}.md`; + const filePath = join(contentRoot, relativePath); + if (!existsSync(filePath)) { + missingContentFiles.push( + `${item.contentPath} (resolved: ${relativePath}, label: "${item.label}", path: "${item.path}")`, + ); + } + } + } + + expect(missingContentFiles) + .withContext( + `Found navigation entries pointing to non-existent markdown content files:\n${missingContentFiles.join('\n')}`, + ) + .toEqual([]); + }); + + it('should not have empty paths or malformed paths in navigation entries', () => { + const allItems = collectAllNavigationItems(ALL_ITEMS); + const malformedPaths: string[] = []; + + for (const item of allItems) { + if (item.path !== undefined) { + if (item.path.trim() === '') { + malformedPaths.push(`Empty path for item "${item.label}"`); + } + if (item.path.startsWith('/') && !item.path.startsWith('//')) { + malformedPaths.push(`Leading slash in path "${item.path}" for item "${item.label}"`); + } + } + } + + expect(malformedPaths) + .withContext(`Found malformed paths in navigation entries:\n${malformedPaths.join('\n')}`) + .toEqual([]); + }); + + it('should not produce routes with external URLs when mapping navigation items', () => { + const allFlatItems = flatNavigationData(ALL_ITEMS); + const mappedRoutes = mapNavigationItemsToRoutes(allFlatItems, {}); + const externalRoutePaths: string[] = []; + + for (const route of mappedRoutes) { + if ( + route.path && + (route.path.includes('://') || + route.path.startsWith('http:') || + route.path.startsWith('https:') || + route.path.startsWith('//') || + route.path.startsWith('mailto:')) + ) { + externalRoutePaths.push(route.path); + } + } + + expect(externalRoutePaths) + .withContext( + `Found external URLs in mapped Angular Router routes. External links in navigation items ` + + `must not be converted into client routes, as static site prerendering will attempt ` + + `to generate static pages for them and fail the build:\n${externalRoutePaths.join('\n')}`, + ) + .toEqual([]); + }); + + it('should cover representative routes across all content sections', () => { + const allItems = collectAllNavigationItems(ALL_ITEMS); + const allPaths = new Set(allItems.map((item) => item.path).filter(Boolean)); + + const representativePaths = [ + 'overview', + 'installation', + 'essentials/signals', + 'guide/signals', + 'guide/components', + 'guide/http', + 'guide/routing', + 'tutorials/learn-angular', + 'tutorials/first-app', + 'tutorials/signals', + 'tutorials/deferrable-views', + 'tutorials/signal-forms', + 'press-kit', + 'license', + ]; + + for (const path of representativePaths) { + expect(allPaths.has(path)) + .withContext(`Expected representative route path "${path}" to exist in navigation entries`) + .toBe(true); + } + }); +}); diff --git a/adev/scripts/synonyms/tsconfig.json b/adev/scripts/synonyms/tsconfig.json index 7f56507bc278..5ac7e6c16418 100644 --- a/adev/scripts/synonyms/tsconfig.json +++ b/adev/scripts/synonyms/tsconfig.json @@ -2,7 +2,6 @@ "compileOnSave": false, "compilerOptions": { "forceConsistentCasingInFileNames": true, - "strict": true, "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, "noImplicitReturns": true, diff --git a/adev/shared-docs/components/copy-link-anchor/copy-link-anchor.component.ts b/adev/shared-docs/components/copy-link-anchor/copy-link-anchor.component.ts index e77d1133abf5..3ed8cbc5f4a0 100644 --- a/adev/shared-docs/components/copy-link-anchor/copy-link-anchor.component.ts +++ b/adev/shared-docs/components/copy-link-anchor/copy-link-anchor.component.ts @@ -11,7 +11,7 @@ import {Component, inject, input, signal} from '@angular/core'; import {MatTooltip} from '@angular/material/tooltip'; import {IconComponent} from '../icon/icon.component'; -export const CONFIRMATION_DISPLAY_TIME_MS = 1000; +const CONFIRMATION_DISPLAY_TIME_MS = 1000; @Component({ selector: 'docs-copy-link-button', diff --git a/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.spec.ts b/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.spec.ts index 8485588947e7..6bfa490135a4 100644 --- a/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.spec.ts +++ b/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.spec.ts @@ -50,6 +50,36 @@ describe('CopySourceCodeButton', () => { expect(copySpy.calls.argsFor(0)[0].trim()).toBe(expectedCodeToBeCopied); }); + it('should keep blank lines and skip line numbers', async () => { + component.code.set( + '1const a = 1;\n' + + '2\n' + + '3const b = 2;', + ); + + await fixture.whenStable(); + + const button = fixture.debugElement.query(By.directive(CopySourceCodeButton)).nativeElement; + button.click(); + + expect(copySpy.calls.argsFor(0)[0]).toBe('const a = 1;\n\nconst b = 2;'); + }); + + it('should skip hidden lines', async () => { + component.code.set( + 'const a = 1;\n' + + '\n' + + 'const c = 3;', + ); + + await fixture.whenStable(); + + const button = fixture.debugElement.query(By.directive(CopySourceCodeButton)).nativeElement; + button.click(); + + expect(copySpy.calls.argsFor(0)[0]).toBe('const a = 1;\nconst c = 3;'); + }); + it(`should set ${SUCCESSFULLY_COPY_CLASS_NAME} for ${CONFIRMATION_DISPLAY_TIME_MS} ms when copy was executed properly`, async () => { const clock = jasmine.clock().install(); component.code.set('example'); diff --git a/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.ts b/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.ts index 9664603a05ae..535915b00310 100644 --- a/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.ts +++ b/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.ts @@ -17,7 +17,6 @@ import { } from '@angular/core'; import {IconComponent} from '../icon/icon.component'; -export const REMOVED_LINE_CLASS_NAME = '.line.remove'; export const CONFIRMATION_DISPLAY_TIME_MS = 2000; @Component({ @@ -58,19 +57,16 @@ export class CopySourceCodeButton { this.showCopySuccess.set(false); this.showCopyFailure.set(false); - const removedLines: NodeList = codeElement.querySelectorAll(REMOVED_LINE_CLASS_NAME); + const lines = Array.from(codeElement.querySelectorAll('.line:not(.hidden)')); - if (removedLines.length) { - // Get only those lines which are not marked as removed - const formattedText = Array.from(codeElement.querySelectorAll('.line:not(.remove)')) - .map((line) => (line as HTMLDivElement).innerText) - .join('\n'); - - return formattedText.trim(); - } else { - const text: string = codeElement.innerText || ''; - return text.replace(/\n\n\n/g, ``).trim(); + if (lines.length) { + return lines + .map((line) => line.textContent) + .join('\n') + .trim(); } + + return (codeElement.innerText || '').trim(); } private showResult(messageState: WritableSignal) { diff --git a/adev/shared-docs/components/search-dialog/search-dialog.component.html b/adev/shared-docs/components/search-dialog/search-dialog.component.html index 8e79cd5d0a9c..ee333b214e39 100644 --- a/adev/shared-docs/components/search-dialog/search-dialog.component.html +++ b/adev/shared-docs/components/search-dialog/search-dialog.component.html @@ -11,8 +11,13 @@ @if (searchResults().length) {
    - @for (result of searchResults(); track result.id) { -
  • + @for (result of searchResults(); track result.id; let i = $index) { +
  • { expect(navigateByUrlSpy).toHaveBeenCalledOnceWith('fakeUrl1#h1'); }); + it('should navigate to the item the pointer moved over when user pressed Enter', async () => { + const router = TestBed.inject(Router); + const navigateByUrlSpy = spyOn(router, 'navigateByUrl'); + + search.searchQuery.set('fakeQuery'); + searchResults.and.returnValue(Promise.resolve({results: [{hits: fakeSearchResults}]})); + + TestBed.inject(ApplicationRef).tick(); + await timeout(300); + await TestBed.inject(ApplicationRef).whenStable(); + + const items = fixture.debugElement.queryAll(By.css('.docs-search-result')); + items[1].nativeElement.dispatchEvent(new MouseEvent('mousemove', {bubbles: true})); + await fixture.whenStable(); + + expect(items[0].nativeElement.classList).not.toContain('active'); + expect(items[1].nativeElement.classList).toContain('active'); + + fakeWindow.dispatchEvent( + new KeyboardEvent('keydown', { + code: 'Enter', + key: 'Enter', + charCode: 13, + keyCode: 13, + view: window, + bubbles: true, + }), + ); + + expect(navigateByUrlSpy).toHaveBeenCalledOnceWith('fakeUrl2#h1'); + }); + it('should always display algolia logo', () => { const algoliaIcon = fixture.debugElement.query(By.directive(AlgoliaIcon)); diff --git a/adev/shared-docs/components/search-dialog/search-dialog.component.ts b/adev/shared-docs/components/search-dialog/search-dialog.component.ts index 8f7fda1dd49b..5b0f25aeb6cd 100644 --- a/adev/shared-docs/components/search-dialog/search-dialog.component.ts +++ b/adev/shared-docs/components/search-dialog/search-dialog.component.ts @@ -115,6 +115,10 @@ export class SearchDialog { this.onClose.emit(); } + protected activateItem(index: number): void { + this.keyManager.setActiveItem(index); + } + private navigateToTheActiveItem(): void { const activeItemLink: string | undefined = this.keyManager.activeItem?.item()?.url; diff --git a/adev/shared-docs/components/slide-toggle/slide-toggle.component.spec.ts b/adev/shared-docs/components/slide-toggle/slide-toggle.component.spec.ts index 841526d97325..5edf7a82e439 100644 --- a/adev/shared-docs/components/slide-toggle/slide-toggle.component.spec.ts +++ b/adev/shared-docs/components/slide-toggle/slide-toggle.component.spec.ts @@ -31,14 +31,14 @@ describe('SlideToggle', () => { expect(component['checked']()).toBeTrue(); }); - it('should set active class for button when is checked', () => { + it('should set active class for button when is checked', async () => { component.checked.set(true); - fixture.detectChanges(); + await fixture.whenStable(); const buttonElement: HTMLButtonElement = fixture.nativeElement.querySelector('input'); expect(buttonElement.classList.contains('docs-toggle-active')).toBeTrue(); component.checked.set(false); - fixture.detectChanges(); + await fixture.whenStable(); expect(buttonElement.classList.contains('docs-toggle-active')).toBeFalse(); }); }); diff --git a/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.spec.ts b/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.spec.ts index 487bb9b08030..833c10153830 100644 --- a/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.spec.ts +++ b/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.spec.ts @@ -238,12 +238,12 @@ describe('DocViewer', () => { expect(copyButton).toBeTruthy(); }); - it('should not leak any icon text content (so it stays out of the search index)', () => { + it('should not leak any icon text content (so it stays out of the search index)', async () => { const fixture = TestBed.createComponent(CopyLinkButton); fixture.componentRef.setInput('href', '#test-section'); fixture.componentRef.setInput('label', 'Test Section'); fixture.componentRef.setInput('matTooltip', 'Copy link to Test Section'); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.nativeElement.textContent.trim()).toBe(''); }); diff --git a/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts b/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts index aa8caacbe85a..4dec771b0327 100644 --- a/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts +++ b/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts @@ -43,12 +43,11 @@ import {TabGroup} from '../../tab-group/tab-group.component'; import {ExampleViewer} from '../example-viewer/example-viewer.component'; const TOC_HOST_ELEMENT_NAME = 'docs-table-of-contents'; -export const ASSETS_EXAMPLES_PATH = 'assets/content/examples'; export const DOCS_VIEWER_SELECTOR = 'docs-viewer, main[docsViewer]'; -export const DOCS_CODE_SELECTOR = '.docs-code'; -export const DOCS_CODE_MUTLIFILE_SELECTOR = '.docs-code-multifile'; -export const DOCS_CODE_TAB_GROUP_SELECTOR = '.docs-tab-group'; -export const DOCS_CODE_TAB_SELECTOR = '.docs-tab'; +const DOCS_CODE_SELECTOR = '.docs-code'; +const DOCS_CODE_MUTLIFILE_SELECTOR = '.docs-code-multifile'; +const DOCS_CODE_TAB_GROUP_SELECTOR = '.docs-tab-group'; +const DOCS_CODE_TAB_SELECTOR = '.docs-tab'; const GITHUB_CONTENT_URL = 'https://github.com/angular/angular/blob/{{BUILD_SCM_ABBREV_HASH}}'; @Component({ diff --git a/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.html b/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.html index b95b642f2bc2..3285fcba2f9c 100644 --- a/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.html +++ b/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.html @@ -5,6 +5,7 @@ #codeTabs animationDuration="0ms" mat-stretch-tabs="false" + [selectedIndex]="selectedTabIndex()" (selectedTabChange)="onTabIndexChange($event.index)" > @for (tab of tabs(); track tab) { @@ -21,7 +22,7 @@ [class.docs-example-code-toggle__show]="!showCode()" [attr.aria-checked]="showCode()" [attr.aria-label]="showCode() ? 'Hide code' : 'Show code'" - (click)="showCode.set(!showCode())" + (click)="toggleCodeVisibility()" [matTooltip]="showCode() ? 'Hide code' : 'Show code'" matTooltipPosition="above" > diff --git a/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.spec.ts b/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.spec.ts index 78346aa5fa04..2fe1052353e8 100644 --- a/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.spec.ts +++ b/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.spec.ts @@ -166,6 +166,147 @@ describe('ExampleViewer', () => { expect(hiddenLine).toBeNull(); }); + it('keeps the expand control after switching tabs while expanded', async () => { + const collapsible = { + name: 'example.ts', + sanitizedContent: + '
    one
    two
    ', + visibleLinesRange: '1', + }; + + componentRef.setInput( + 'metadata', + getMetadata({files: [collapsible, {name: 'example.css', sanitizedContent: ''}]}), + ); + + await component.renderExample(); + await fixture.whenStable(); + + expect(component.expandable()).toBeTrue(); + + component.toggleExampleVisibility(); + await fixture.whenStable(); + + const tabGroup = await loader.getHarness(MatTabGroupHarness); + await (await tabGroup.getTabs())[1].select(); + await fixture.whenStable(); + await (await tabGroup.getTabs())[0].select(); + await fixture.whenStable(); + + expect(component.expandable()).toBeTrue(); + }); + + it('hides only the lines outside the visible range, and adds no gap within one range', async () => { + componentRef.setInput( + 'metadata', + getMetadata({ + files: [ + { + name: 'example.ts', + sanitizedContent: + '
    one
    two
    three
    ', + visibleLinesRange: '2,3', + }, + ], + }), + ); + + await component.renderExample(); + await fixture.whenStable(); + + const lines = fixture.debugElement + .queryAll(By.css('.line')) + .map((line) => (line.nativeElement as HTMLElement).className); + + expect(lines).toEqual(['line hidden', 'line', 'line']); + }); + + it('hides the line numbers that pair with the hidden lines', async () => { + const numbered = (n: number, text: string) => + `${n}
    ${text}
    `; + + componentRef.setInput( + 'metadata', + getMetadata({ + files: [ + { + name: 'example.ts', + sanitizedContent: `
    ${numbered(1, 'one')}${numbered(2, 'two')}${numbered(3, 'three')}
    `, + visibleLinesRange: '2,3', + }, + ], + }), + ); + + await component.renderExample(); + await fixture.whenStable(); + + const visibleNumbers = fixture.debugElement + .queryAll(By.css('.shiki-ln-number')) + .filter((el) => !(el.nativeElement as HTMLElement).classList.contains('hidden')) + .map((el) => (el.nativeElement as HTMLElement).textContent); + + expect(visibleNumbers).toEqual(['2', '3']); + }); + + it('restores the selected tab and its collapsed lines after hiding and reshowing the code', async () => { + componentRef.setInput( + 'metadata', + getMetadata({ + files: [ + {name: 'example.ts', sanitizedContent: ''}, + { + name: 'example.css', + sanitizedContent: + '
    one
    two
    ', + visibleLinesRange: '2', + }, + ], + }), + ); + + await component.renderExample(); + await fixture.whenStable(); + + const tabGroup = await loader.getHarness(MatTabGroupHarness); + await (await tabGroup.getTabs())[1].select(); + await fixture.whenStable(); + + component.toggleCodeVisibility(); + await fixture.whenStable(); + component.toggleCodeVisibility(); + await fixture.whenStable(); + + expect( + await (await (await loader.getHarness(MatTabGroupHarness)).getSelectedTab()).getLabel(), + ).toBe('CSS'); + const lines = fixture.debugElement + .queryAll(By.css('.line')) + .map((line) => (line.nativeElement as HTMLElement).className); + expect(lines).toEqual(['line hidden', 'line']); + }); + + it('offers no expand control when the range covers the whole file', async () => { + componentRef.setInput( + 'metadata', + getMetadata({ + files: [ + { + name: 'example.ts', + sanitizedContent: + '
    one
    two
    ', + visibleLinesRange: '1,2', + }, + ], + }), + ); + + await component.renderExample(); + await fixture.whenStable(); + + expect(component.expandable()).toBeFalse(); + }); + it('should set exampleComponent when metadata contains path and preview is true', async () => { exampleContentSpy.loadPreview.and.resolveTo(ExampleComponent); componentRef.setInput( diff --git a/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.ts b/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.ts index 54251f2461b9..d696df8ce5b0 100644 --- a/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.ts +++ b/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.ts @@ -26,10 +26,10 @@ import {EXAMPLE_VIEWER_CONTENT_LOADER} from '../../../providers/index'; import {CopySourceCodeButton} from '../../copy-source-code-button/copy-source-code-button.component'; import {IconComponent} from '../../icon/icon.component'; -export const CODE_LINE_NUMBER_CLASS_NAME = 'shiki-ln-number'; -export const CODE_LINE_CLASS_NAME = 'line'; -export const GAP_CODE_LINE_CLASS_NAME = 'gap'; -export const HIDDEN_CLASS_NAME = 'hidden'; +const CODE_LINE_NUMBER_CLASS_NAME = 'shiki-ln-number'; +const CODE_LINE_CLASS_NAME = 'line'; +const GAP_CODE_LINE_CLASS_NAME = 'gap'; +const HIDDEN_CLASS_NAME = 'hidden'; @Component({ selector: 'docs-example-viewer', @@ -69,6 +69,7 @@ export class ExampleViewer { readonly expandable = signal(false); readonly expanded = signal(false); readonly snippetCode = signal(undefined); + readonly selectedTabIndex = signal(0); readonly showCode = signal(true); readonly tabs = computed(() => this.exampleMetadata()?.files.map((file) => ({ @@ -101,10 +102,7 @@ export class ExampleViewer { `example-${this.exampleMetadata()?.id.toString()!}`, ); - const lines = this.getHiddenCodeLines(); - const lineNumbers = this.getHiddenCodeLineNumbers(); - - this.expandable.set(lines.length > 0 || lineNumbers.length > 0); + this.updateExpandable(); }, {injector: this.injector}, ); @@ -116,6 +114,15 @@ export class ExampleViewer { this.setCodeLinesVisibility(); } + toggleCodeVisibility(): void { + const showCode = !this.showCode(); + this.showCode.set(showCode); + + if (showCode) { + afterNextRender(() => this.setCodeLinesVisibility(), {injector: this.injector}); + } + } + copyLink(): void { // Reconstruct the URL using `origin + pathname` so we drop any pre-existing hash. const fullUrl = @@ -128,8 +135,25 @@ export class ExampleViewer { } protected onTabIndexChange(index: number): void { + this.selectedTabIndex.set(index); this.snippetCode.set(this.exampleMetadata()?.files[index]); - this.setCodeLinesVisibility(); + + afterNextRender( + () => { + this.setCodeLinesVisibility(); + this.updateExpandable(); + }, + {injector: this.injector}, + ); + } + + // A file is expandable when its range hides lines. While the block is expanded nothing is + // hidden, so trust the presence of a range instead of the rendered state. + private updateExpandable(): void { + this.expandable.set( + !!this.snippetCode()?.visibleLinesRange && + (this.expanded() || this.getHiddenCodeLines().length > 0), + ); } private getFileExtension(name: string): string { @@ -188,13 +212,13 @@ export class ExampleViewer { for (const [index, line] of lines.entries()) { if (!linesToDisplay.includes(index + 1)) { line.classList.add(HIDDEN_CLASS_NAME); - } else if (!linesToDisplay.includes(index - 1)) { + } else if (!linesToDisplay.includes(index)) { appendGapBefore.push(line); } } for (const [index, lineNumber] of lineNumbers.entries()) { - if (!linesToDisplay.includes(index)) { + if (!linesToDisplay.includes(index + 1)) { lineNumber.classList.add(HIDDEN_CLASS_NAME); } } diff --git a/adev/shared-docs/interfaces/BUILD.bazel b/adev/shared-docs/interfaces/BUILD.bazel index 52b3272630f0..702d20865490 100644 --- a/adev/shared-docs/interfaces/BUILD.bazel +++ b/adev/shared-docs/interfaces/BUILD.bazel @@ -7,7 +7,7 @@ ts_project( srcs = [ "index.ts", ], - visibility = ["//adev/shared-docs:__subpackages__"], + visibility = ["//adev:__subpackages__"], deps = [ ":lib", ], diff --git a/adev/shared-docs/interfaces/search-results.ts b/adev/shared-docs/interfaces/search-results.ts index 882e9e3c1967..274e6f12c05c 100644 --- a/adev/shared-docs/interfaces/search-results.ts +++ b/adev/shared-docs/interfaces/search-results.ts @@ -42,7 +42,7 @@ export interface SearchResult { } /* The hierarchy of the item */ -export interface Hierarchy { +interface Hierarchy { /* It's kind of the page i.e `Docs`, `Tutorials`, `Reference` etc. */ lvl0: string | null; /* Typicaly it's the content of H1 of the page */ diff --git a/adev/shared-docs/interfaces/tutorial.ts b/adev/shared-docs/interfaces/tutorial.ts index b2c3a2c7e04d..396cb51b6a43 100644 --- a/adev/shared-docs/interfaces/tutorial.ts +++ b/adev/shared-docs/interfaces/tutorial.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import type {FileSystemTree} from '@webcontainer/api'; import {NavigationItem} from './navigation-item'; /** the step is used only in this function to sort the nav items */ @@ -16,23 +15,6 @@ export type TutorialNavigationItemWithStep = TutorialNavigationItem & { }; }; -/** - * Represents the contents of the tutorial files to be generated by the build script - */ -export type TutorialFiles = { - sourceCode?: FileSystemTree; - metadata?: TutorialMetadata; - sourceCodeZip?: Uint8Array; - route?: Omit; -}; - -export type PlaygroundFiles = { - sourceCode?: FileSystemTree; - metadata?: TutorialMetadata; - sourceCodeZip?: undefined; - route?: PlaygroundRouteData; -}; - /** Represents the contents of the tutorial config file */ export type TutorialMetadata = { type: TutorialConfig['type']; @@ -58,7 +40,7 @@ export type TutorialMetadata = { dependencies?: Record; }; -export type TutorialStep = { +type TutorialStep = { step: number; name: string; path: string; @@ -69,12 +51,9 @@ export type TutorialStep = { }; export type TutorialConfig = - | EditorTutorialConfig - | LocalTutorialConfig - | CliTutorialConfig - | EditorOnlyTutorialConfig; + EditorTutorialConfig | LocalTutorialConfig | CliTutorialConfig | EditorOnlyTutorialConfig; -export interface TutorialConfigBase { +interface TutorialConfigBase { type: TutorialType; /** The tutorial title */ @@ -111,11 +90,11 @@ export interface LocalTutorialConfig extends TutorialConfigBase { } /** Represents a tutorial config that supports only the interactive terminal for the Angular CLI */ -export type CliTutorialConfig = Omit & { +type CliTutorialConfig = Omit & { type: TutorialType.CLI; }; -export type EditorOnlyTutorialConfig = Omit & { +type EditorOnlyTutorialConfig = Omit & { type: TutorialType.EDITOR_ONLY; }; diff --git a/adev/shared-docs/package.json b/adev/shared-docs/package.json index 2dbd5c28fc0d..95da38902b63 100644 --- a/adev/shared-docs/package.json +++ b/adev/shared-docs/package.json @@ -16,11 +16,11 @@ "dependencies": { "@webcontainer/api": "^1.1.8", "diff": "~9.0.0", - "emoji-regex": "~10.6.0", + "emoji-regex": "~11.0.0", "fflate": "^0.8.2", - "jsdom": "~30.0.0", - "marked": "~18.0.0", - "mermaid": "^11.0.0", + "jsdom": "~31.0.0", + "marked": "~18.2.0", + "mermaid": "^12.0.0", "shiki": "^4.0.0", "tinyglobby": "^0.2.12" }, diff --git a/adev/shared-docs/pipeline/api-gen/manifest/generate_manifest.mts b/adev/shared-docs/pipeline/api-gen/manifest/generate_manifest.mts index c2e820dc43ee..2e05b892ec96 100644 --- a/adev/shared-docs/pipeline/api-gen/manifest/generate_manifest.mts +++ b/adev/shared-docs/pipeline/api-gen/manifest/generate_manifest.mts @@ -66,7 +66,7 @@ function getTagSinceVersion( } // In case of deprecated tag we need to separate the version from the deprecation message. - const version = tag.comment.match(/\d+(\.\d+)?/)?.[0]; + const version = tag.comment.match(/^\s*(?:(?:since|from|as of)\s+)?v?(\d+(?:\.\d+)?)/i)?.[1]; return {version}; } diff --git a/adev/shared-docs/pipeline/api-gen/rendering/cli-entities.mts b/adev/shared-docs/pipeline/api-gen/rendering/cli-entities.mts index daa081341c2f..0476faf55853 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/cli-entities.mts +++ b/adev/shared-docs/pipeline/api-gen/rendering/cli-entities.mts @@ -16,9 +16,15 @@ export interface CliCommand { deprecated: boolean; aliases: string[]; options: CliOption[]; + builders?: CliBuilder[]; subcommands?: CliCommand[]; } +export interface CliBuilder { + name: string; + options: CliOption[]; +} + /** The CLI item option info. */ export interface CliOption { name: string; @@ -28,5 +34,5 @@ export interface CliOption { description: string; positional?: number; aliases?: string[]; - deprecated: {version: string | undefined} | undefined; + deprecated?: boolean | string; } diff --git a/adev/shared-docs/pipeline/api-gen/rendering/entities/categorization.mts b/adev/shared-docs/pipeline/api-gen/rendering/entities/categorization.mts index 02f51035bfa5..e1c916e3577f 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/entities/categorization.mts +++ b/adev/shared-docs/pipeline/api-gen/rendering/entities/categorization.mts @@ -191,7 +191,7 @@ export function getTagSinceVersion( } // In case of deprecated tag we need to separate the version from the deprecation message. - const version = tag.comment.match(/\d+(\.\d+)?/)?.[0]; + const version = tag.comment.match(/^\s*(?:(?:since|from|as of)\s+)?v?(\d+(?:\.\d+)?)/i)?.[1]; return {version}; } diff --git a/adev/shared-docs/pipeline/api-gen/rendering/entities/renderables.mts b/adev/shared-docs/pipeline/api-gen/rendering/entities/renderables.mts index a4ca789838ec..327cc1852970 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/entities/renderables.mts +++ b/adev/shared-docs/pipeline/api-gen/rendering/entities/renderables.mts @@ -152,14 +152,15 @@ export interface LinkEntryRenderable { target?: string; } -export type CliOptionRenderable = CliOption & { +export type CliOptionRenderable = Omit & { deprecated: {version: string | undefined} | undefined; + deprecationMessage: string | null; }; export type CliCardItemRenderable = CliOptionRenderable; export interface CliCardRenderable { - type: 'Options' | 'Arguments'; + type: 'Options' | 'Arguments' | `${string} builder options`; items: CliCardItemRenderable[]; } diff --git a/adev/shared-docs/pipeline/api-gen/rendering/index.mts b/adev/shared-docs/pipeline/api-gen/rendering/index.mts index 2f77c25ec9c7..a9a5cd655a9e 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/index.mts +++ b/adev/shared-docs/pipeline/api-gen/rendering/index.mts @@ -13,7 +13,12 @@ import {DocEntry} from './entities.mjs'; import {isCliEntry, isHiddenEntry} from './entities/categorization.mjs'; import {getRenderable} from './processing.mjs'; import {renderEntry} from './rendering.mjs'; -import {setCurrentSymbol, setSymbolMembers, setSymbols} from './symbol-context.mjs'; +import { + setCurrentSymbol, + setSymbolEntryTypes, + setSymbolMembers, + setSymbols, +} from './symbol-context.mjs'; import {setDefinedRoutes} from './defined-routes-context.mjs'; import {CliCommandRenderable, DocEntryRenderable} from './entities/renderables.mjs'; import {initHighlighter} from '../../shared/shiki.mjs'; @@ -153,6 +158,13 @@ async function main() { // Setting the symbols are a global context for the rendering templates of this entry setSymbols(collection.symbols); setSymbolMembers(buildSymbolMembersIndex(collection.entries)); + setSymbolEntryTypes( + new Map( + collection.entries + .filter((entry): entry is DocEntry => 'entryType' in entry) + .map((entry) => [entry.name, entry.entryType]), + ), + ); const renderableEntries: (DocEntryRenderable | CliCommandRenderable)[] = []; for (const entry of extractedEntries) { diff --git a/adev/shared-docs/pipeline/api-gen/rendering/shiki/shiki.mts b/adev/shared-docs/pipeline/api-gen/rendering/shiki/shiki.mts index 126261f56e1b..bb665304f3c7 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/shiki/shiki.mts +++ b/adev/shared-docs/pipeline/api-gen/rendering/shiki/shiki.mts @@ -34,16 +34,17 @@ export function replaceKeywordFromShikiHtml( shikiHtml: string, replaceWith: string, ): string { + const keywordElement = `<[^>]*>(?:${keyword})<\\/\\w+>`; + return ( shikiHtml - // remove the leading space of the element after the keyword - .replace( - new RegExp(`(<[^>]*>(?:${keyword})<\\/\\w+><[^>]*>)(\\s)(\\w+<\\/\\w+>)`, 'g'), - '$1$3', - ) + // Linking an identifier causes Shiki to emit the space before it as a separate element. + .replace(new RegExp(`(${keywordElement})<[^>]*>\\s+<\\/\\w+>`, 'g'), '$1') + // Without a link, Shiki includes the space in the identifier's element instead. + .replace(new RegExp(`(${keywordElement}<[^>]*>)\\s+(?=[^<\\s]+<\\/\\w+>)`, 'g'), '$1') // Shiki requires the keywords (eg. function,interface) for highlighting signatures // here we are replacing it - .replace(new RegExp(`<[^>]*>(?:${keyword})<\\/\\w+>`, 'g'), replaceWith) + .replace(new RegExp(keywordElement, 'g'), replaceWith) ); } diff --git a/adev/shared-docs/pipeline/api-gen/rendering/symbol-context.mts b/adev/shared-docs/pipeline/api-gen/rendering/symbol-context.mts index e0dfcd2c27d9..d6e98cb70477 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/symbol-context.mts +++ b/adev/shared-docs/pipeline/api-gen/rendering/symbol-context.mts @@ -6,7 +6,10 @@ * found in the LICENSE file at https://angular.dev/license */ -import {getSymbolUrl as sharedGetSymbolUrl} from '../../shared/linking.mjs'; +import { + getSymbolUrl as sharedGetSymbolUrl, + resolveSymbolUrl as sharedResolveSymbolUrl, +} from '../../shared/linking.mjs'; /** * API pages are generated each package at a time. @@ -25,6 +28,8 @@ let symbols: Record = {}; */ let symbolMembers: Map> = new Map(); +let symbolEntryTypes: Map = new Map(); + // This is used to store the currently processed symbol (usually a class or an interface) let currentSymbol: string | undefined; export function setCurrentSymbol(symbol: string): void { @@ -32,11 +37,11 @@ export function setCurrentSymbol(symbol: string): void { } /** Convert Record to ApiEntries format */ -export function getSymbolsAsApiEntries(): Record { - const result: Record = {}; +export function getSymbolsAsApiEntries(): Record { + const result: Record = {}; for (const symbol in symbols) { - result[symbol] = {moduleName: symbols[symbol]}; + result[symbol] = {moduleName: symbols[symbol], entryType: symbolEntryTypes.get(symbol)}; } return result; @@ -50,6 +55,10 @@ export function setSymbols(newSymbols: Record): void { symbols = newSymbols; } +export function setSymbolEntryTypes(newSymbolEntryTypes: Map): void { + symbolEntryTypes = newSymbolEntryTypes; +} + /** Set the index of known members per symbol for the currently processed package. */ export function setSymbolMembers(newSymbolMembers: Map>): void { symbolMembers = newSymbolMembers; @@ -64,6 +73,10 @@ export function getSymbolUrl(symbol: string): string | undefined { return sharedGetSymbolUrl(symbol, getSymbolsAsApiEntries()); } +export function resolveSymbolUrl(symbol: string): string | undefined { + return sharedResolveSymbolUrl(symbol, getSymbolsAsApiEntries()); +} + export function unknownSymbolMessage(link: string, symbol: string): string { return `WARNING: {@link ${link}} is invalid, ${symbol} or ${currentSymbol}.${symbol} is unknown in this context`; } diff --git a/adev/shared-docs/pipeline/api-gen/rendering/templates/cli-card.tsx b/adev/shared-docs/pipeline/api-gen/rendering/templates/cli-card.tsx index a49dba4deebf..81b44baeb588 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/templates/cli-card.tsx +++ b/adev/shared-docs/pipeline/api-gen/rendering/templates/cli-card.tsx @@ -48,9 +48,11 @@ export function CliCard(props: {card: CliCardRenderable}) { <> )} {/* Default Value */} - {item.default !== undefined ? Default : <>} - {props.card.type === 'Options' && item.default !== undefined ? ( - {item.default.toString()} + {props.card.type !== 'Arguments' && item.default !== undefined ? ( + <> + Default + {item.default.toString()} + ) : ( <> )} diff --git a/adev/shared-docs/pipeline/api-gen/rendering/templates/cli-reference.tsx b/adev/shared-docs/pipeline/api-gen/rendering/templates/cli-reference.tsx index 8740b4dfdbf4..929e5ac1e502 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/templates/cli-reference.tsx +++ b/adev/shared-docs/pipeline/api-gen/rendering/templates/cli-reference.tsx @@ -9,6 +9,7 @@ import {Fragment, h} from 'preact'; import {CliCommandRenderable} from '../entities/renderables.mjs'; import {REFERENCE_MEMBERS} from '../styling/css-classes.mjs'; +import {convertSectionNameToId} from '../transforms/reference-section-id.mjs'; import {CliCard} from './cli-card'; import {HeaderCli} from './header-cli'; import {RawHtml} from './raw-html'; @@ -57,6 +58,23 @@ export function CliCommandReference(entry: CliCommandRenderable) { ) : ( <> )} + {entry.builders && entry.builders.length > 0 ? ( + <> +

    Builders

    +

    This command has the following builders

    +
    + + ) : ( + <> + )}
    {entry.cards.map((card) => ( diff --git a/adev/shared-docs/pipeline/api-gen/rendering/templates/decorator-reference.tsx b/adev/shared-docs/pipeline/api-gen/rendering/templates/decorator-reference.tsx index 95f170b75df4..660083efcd8c 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/templates/decorator-reference.tsx +++ b/adev/shared-docs/pipeline/api-gen/rendering/templates/decorator-reference.tsx @@ -54,9 +54,9 @@ export function DecoratorReference(entry: DecoratorEntryRenderable) {
    - {entry.members.map((member, index) => + {entry.members.map((member) => signatureCard(member.name, member, { - id: `${member.name}_${index}`, + id: member.name, }), )}
    diff --git a/adev/shared-docs/pipeline/api-gen/rendering/templates/deprecated-label.tsx b/adev/shared-docs/pipeline/api-gen/rendering/templates/deprecated-label.tsx index 0eb265a28d5e..b713c0a36efe 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/templates/deprecated-label.tsx +++ b/adev/shared-docs/pipeline/api-gen/rendering/templates/deprecated-label.tsx @@ -11,8 +11,7 @@ import {PARAM_KEYWORD_CLASS_NAME} from '../styling/css-classes.mjs'; export function DeprecatedLabel(props: { entry: - | {deprecated: {version: string | undefined} | undefined} - | {deprecationMessage: string | null}; + {deprecated: {version: string | undefined} | undefined} | {deprecationMessage: string | null}; hideLabel?: true; }) { const entry = props.entry; @@ -26,7 +25,7 @@ export function DeprecatedLabel(props: {
    ); - } else if ('isDeprecated' in entry && entry.isDeprecated) { + } else if ('deprecated' in entry && entry.deprecated) { return @deprecated; } diff --git a/adev/shared-docs/pipeline/api-gen/rendering/templates/header-api.tsx b/adev/shared-docs/pipeline/api-gen/rendering/templates/header-api.tsx index 5d0d2289ce16..2a70583d9569 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/templates/header-api.tsx +++ b/adev/shared-docs/pipeline/api-gen/rendering/templates/header-api.tsx @@ -82,7 +82,7 @@ function statusTag(entry: DocEntryRenderable) { if (entry.deprecated) { tag = ( -
    +
    {tagInVersionString('deprecated', entry.deprecated)}
    ); diff --git a/adev/shared-docs/pipeline/api-gen/rendering/templates/section-description.tsx b/adev/shared-docs/pipeline/api-gen/rendering/templates/section-description.tsx index a940809840b3..08a7d39fc7e4 100644 --- a/adev/shared-docs/pipeline/api-gen/rendering/templates/section-description.tsx +++ b/adev/shared-docs/pipeline/api-gen/rendering/templates/section-description.tsx @@ -14,6 +14,7 @@ import {SECTION_CONTAINER} from '../styling/css-classes.mjs'; import {SectionHeading} from './section-heading'; const DESCRIPTION_SECTION_NAME = 'Description'; +const EXPORTED_BY_SECTION_NAME = 'Exported by'; /** Component to render the description section. */ export function SectionDescription(props: {entry: DocEntryRenderable}) { @@ -33,8 +34,7 @@ export function SectionDescription(props: {entry: DocEntryRenderable}) { {exportedBy.length ? ( <> -
    -

    Exported by

    +
    - @if (from.number >= futureVersion || to.number >= futureVersion) { + @if (from().number >= futureVersion || to().number >= futureVersion) {

    Warning: @@ -61,7 +61,7 @@

    Angular versions

    } - @if (from.number > to.number) { + @if (from().number > to().number) {

    Warning: @@ -70,7 +70,7 @@

    Angular versions

    } - @if (to.number - from.number > 150 && from.number > 240) { + @if (to().number - from().number > 150 && from().number > 240) {

    Warning: @@ -84,19 +84,19 @@

    Angular versions

    Application complexity

    Basic Medium Advanced - @if (level === 1) { + @if (level() === 1) {

    Shows information for all Angular developers.

    - } @else if (level === 2) { + } @else if (level() === 2) {

    Shows information that's of interest to more advanced Angular developers.

    - } @else if (level === 3) { + } @else if (level() === 3) {

    Shows all the information we have about this update.

    } @@ -111,7 +111,7 @@

    Other dependencies

    } - @if (from.number < 600) { + @if (from().number < 600) {

    Package Manager

    {{ title() }}

    Before you update

    @for (r of beforeRecommendations; track $index) {
    - -
    + +
    {{ getComplexityLevelName(r.level) }}
    - } - @if (beforeRecommendations.length <= 0) { + } @empty {
    You don't need to do anything before moving between these versions.
    @@ -171,16 +174,19 @@

    Update to the new version

    @for (r of duringRecommendations; track $index) {
    - -
    + +
    {{ getComplexityLevelName(r.level) }}
    - } - @if (duringRecommendations.length <= 0) { + } @empty {
    There aren't any recommendations for moving between these versions.
    @@ -189,16 +195,19 @@

    Update to the new version

    After you update

    @for (r of afterRecommendations; track $index) {
    - -
    + +
    {{ getComplexityLevelName(r.level) }}
    - } - @if (afterRecommendations.length <= 0) { + } @empty {
    You don't need to do anything after moving between these versions.
    diff --git a/adev/src/app/features/update/update.component.scss b/adev/src/app/features/update/update.component.scss index 968e47de00a6..1a5e043da1b0 100644 --- a/adev/src/app/features/update/update.component.scss +++ b/adev/src/app/features/update/update.component.scss @@ -137,6 +137,7 @@ h4 { align-items: center; justify-content: space-between; gap: 1rem; + cursor: pointer; } .adev-complexity-badge { diff --git a/adev/src/app/features/update/update.component.spec.ts b/adev/src/app/features/update/update.component.spec.ts index 35b9b65012aa..5067c146bc39 100644 --- a/adev/src/app/features/update/update.component.spec.ts +++ b/adev/src/app/features/update/update.component.spec.ts @@ -33,6 +33,18 @@ describe('UpdateComponent', () => { expect(component).toBeTruthy(); }); + it('should read the versions and level from the query param inputs', async () => { + const queryParamFixture = TestBed.createComponent(UpdateComponent); + queryParamFixture.componentRef.setInput('v', '20.0-21.0'); + queryParamFixture.componentRef.setInput('l', '3'); + await queryParamFixture.whenStable(); + + const queryParamComponent = queryParamFixture.componentInstance; + expect(queryParamComponent['from']().name).toBe('20.0'); + expect(queryParamComponent['to']().name).toBe('21.0'); + expect(queryParamComponent['level']()).toBe(3); + }); + describe('getComplexityLevelName', () => { it('should return "Basic" for ApplicationComplexity.Basic', () => { expect(component['getComplexityLevelName'](ApplicationComplexity.Basic)).toBe('Basic'); diff --git a/adev/src/app/features/update/update.component.ts b/adev/src/app/features/update/update.component.ts index 6445d9188ccd..793ed71ce7a3 100644 --- a/adev/src/app/features/update/update.component.ts +++ b/adev/src/app/features/update/update.component.ts @@ -8,7 +8,7 @@ import {Clipboard} from '@angular/cdk/clipboard'; import {CdkMenu, CdkMenuItem, CdkMenuTrigger} from '@angular/cdk/menu'; -import {Component, inject, signal} from '@angular/core'; +import {afterNextRender, Component, inject, input, linkedSignal, signal} from '@angular/core'; import {IconComponent} from '@angular/docs'; import {MatButtonToggle, MatButtonToggleGroup} from '@angular/material/button-toggle'; import {MatCheckbox} from '@angular/material/checkbox'; @@ -39,6 +39,10 @@ interface Option { const isWindows = typeof window !== 'undefined' && window.navigator.userAgent.includes('Windows'); +/** Versions selected when the URL doesn't specify any. */ +const DEFAULT_FROM_VERSION = '21.0'; +const DEFAULT_TO_VERSION = '22.0'; + @Component({ selector: 'adev-update-guide', templateUrl: './update.component.html', @@ -61,7 +65,8 @@ export default class UpdateComponent { protected title = signal(''); - protected level = 1; + /** The application complexity level, initialized from the `l` query param. */ + protected readonly level = linkedSignal(() => parseInt(this.levelParam() ?? '', 10) || 1); protected options: Record = { ngUpgrade: false, material: false, @@ -120,8 +125,17 @@ export default class UpdateComponent { {name: '2.1', number: 201}, {name: '2.0', number: 200}, ]; - protected from = this.versions.find((version) => version.name === '21.0')!; - protected to = this.versions.find((version) => version.name === '22.0')!; + /** The versions to update from and to, initialized from the `v` query param. */ + protected readonly from = linkedSignal( + () => + this.findVersion(this.versionsParam()?.split('-')[0]) ?? + this.findVersion(DEFAULT_FROM_VERSION)!, + ); + protected readonly to = linkedSignal( + () => + this.findVersion(this.versionsParam()?.split('-')[1]) ?? + this.findVersion(DEFAULT_TO_VERSION)!, + ); protected futureVersion = 2300; protected readonly steps: Step[] = RECOMMENDATIONS; @@ -130,19 +144,22 @@ export default class UpdateComponent { private readonly router = inject(Router); private readonly activatedRoute = inject(ActivatedRoute); + /** Bound from the `v` query param, in the `-` format (e.g. `21.0-22.0`). */ + readonly versionsParam = input(undefined, {alias: 'v'}); + /** Bound from the `l` query param, the application complexity level. */ + readonly levelParam = input(undefined, {alias: 'l'}); + constructor() { - const queryMap = this.activatedRoute.snapshot.queryParamMap; - // Detect settings in URL - this.level = parseInt(queryMap.get('l')!, 10) || this.level; - - // Detect versions of from and to - const versions = queryMap.get('v'); - if (versions) { - const [from, to] = versions.split('-'); - this.from = this.versions.find((version) => version.name === from)!; - this.to = this.versions.find((version) => version.name === to)!; - this.showUpdatePath(); - } + // Show the update path right away when the versions are provided in the URL. + afterNextRender(() => { + if (this.versionsParam()) { + this.showUpdatePath(); + } + }); + } + + private findVersion(name: string | undefined) { + return this.versions.find((version) => version.name === name); } copyCode(event: Event) { @@ -154,13 +171,25 @@ export default class UpdateComponent { } } + protected toggleRecommendation(event: MouseEvent, checkbox: MatCheckbox): void { + const target = event.target as Element | null; + + // Keep links in the recommendation independently operable. + if (target?.closest('a')) { + return; + } + + checkbox.toggle(); + checkbox.focus(); + } + async showUpdatePath() { this.beforeRecommendations = []; this.duringRecommendations = []; this.afterRecommendations = []; // Refuse to generate recommendations for downgrades - if (this.to.number < this.from.number) { + if (this.to().number < this.from().number) { alert('We do not support downgrading versions of Angular.'); return; } @@ -170,13 +199,13 @@ export default class UpdateComponent { const labelMedium = 'medium applications'; const labelAdvanced = 'advanced applications'; - this.title.set(`${labelTitle} v${this.from.name} -> v${this.to.name} + this.title.set(`${labelTitle} v${this.from().name} -> v${this.to().name} for - ${this.level < 2 ? labelBasic : this.level < 3 ? labelMedium : labelAdvanced}`); + ${this.level() < 2 ? labelBasic : this.level() < 3 ? labelMedium : labelAdvanced}`); // Find applicable steps and organize them into before, during, and after upgrade for (const step of this.steps) { - if (step.level <= this.level && step.necessaryAsOf > this.from.number) { + if (step.level <= this.level() && step.necessaryAsOf > this.from().number) { // Check Options // Only show steps that don't have a required option // Or when the user has a matching option selected @@ -201,12 +230,12 @@ export default class UpdateComponent { step.renderedStep = await marked(this.replaceVariables(step.action)); // If you could do it before now, but didn't have to finish it before now - if (step.possibleIn <= this.from.number && step.necessaryAsOf >= this.from.number) { + if (step.possibleIn <= this.from().number && step.necessaryAsOf >= this.from().number) { this.beforeRecommendations.push(step); // If you couldn't do it before now, and you must do it now - } else if (step.possibleIn > this.from.number && step.necessaryAsOf <= this.to.number) { + } else if (step.possibleIn > this.from().number && step.necessaryAsOf <= this.to().number) { this.duringRecommendations.push(step); - } else if (step.possibleIn <= this.to.number) { + } else if (step.possibleIn <= this.to().number) { this.afterRecommendations.push(step); } } @@ -215,7 +244,7 @@ export default class UpdateComponent { // Update the URL so users can link to this transition this.router.navigate([], { relativeTo: this.activatedRoute, - queryParams: {v: `${this.from.name}-${this.to.name}`, l: this.level}, + queryParams: {v: `${this.from().name}-${this.to().name}`, l: this.level()}, queryParamsHandling: 'merge', }); @@ -245,8 +274,8 @@ export default class UpdateComponent { private async renderPreV6Instructions(): Promise { let upgradeStep: Step; - const additionalDeps = this.getAdditionalDependencies(this.to.number); - const angularVersion = this.getAngularVersion(this.to.number); + const additionalDeps = this.getAdditionalDependencies(this.to().number); + const angularVersion = this.getAngularVersion(this.to().number); const angularPackages = [ 'animations', 'common', @@ -262,7 +291,7 @@ export default class UpdateComponent { ]; // Provide npm/yarn instructions for versions before 6 - if (this.to.number < 600) { + if (this.to().number < 600) { const actionMessage = `Update all of your dependencies to the latest Angular and the right version of TypeScript.`; if (isWindows) { @@ -293,7 +322,7 @@ export default class UpdateComponent { // Npm installs typescript wrong in v5, let's manually specify // https://github.com/npm/npm/issues/16813 - if (this.packageManager === 'npm install' && this.to.number === 500) { + if (this.packageManager === 'npm install' && this.to().number === 500) { upgradeStep.action += ` \`npm install typescript@2.4.2 --save-exact\``; diff --git a/adev/src/app/routing/navigation-entries/index.ts b/adev/src/app/routing/navigation-entries/index.ts index 9f93f9a8bc2e..2e8edca69e13 100644 --- a/adev/src/app/routing/navigation-entries/index.ts +++ b/adev/src/app/routing/navigation-entries/index.ts @@ -26,13 +26,6 @@ import SIGNAL_FORMS_TUTORIAL_NAV_DATA from '../../../content/tutorials/signal-fo // @ts-ignore import API_MANIFEST_JSON from '../../../assets/manifest.json' with {type: 'json'}; -interface SubNavigationData { - docs: NavigationItem[]; - reference: NavigationItem[]; - tutorials: NavigationItem[]; - footer: NavigationItem[]; -} - export const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [ { label: 'Introduction', @@ -263,6 +256,12 @@ export const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [ path: 'guide/templates/defer', contentPath: 'guide/templates/defer', }, + { + label: 'Error boundaries with @boundary', + path: 'guide/templates/error-boundaries', + contentPath: 'guide/templates/error-boundaries', + status: 'new', + }, { label: 'Expression syntax', path: 'guide/templates/expression-syntax', @@ -406,6 +405,18 @@ export const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [ path: 'guide/routing/data-resolvers', contentPath: 'guide/routing/data-resolvers', }, + { + label: 'Data fetching with resources', + path: 'guide/routing/data-fetching-with-resources', + contentPath: 'guide/routing/data-fetching-with-resources', + status: 'new', + }, + { + label: 'Error boundaries', + path: 'guide/routing/error-boundaries', + contentPath: 'guide/routing/error-boundaries', + status: 'new', + }, { label: 'Lifecycle and events', path: 'guide/routing/lifecycle-and-events', @@ -1082,12 +1093,11 @@ export const DOCS_SUB_NAVIGATION_DATA: NavigationItem[] = [ path: 'tools/devtools/injectors', contentPath: 'tools/devtools/injectors', }, - // TODO: create those guides - // The signal debugging docs should also be added to the signal section - // label: 'Signals', - // path: 'tools/devtools/signals', - // contentPath: 'tools/devtools/signals', - // }, + { + label: 'Signals', + path: 'tools/devtools/signals', + contentPath: 'tools/devtools/signals', + }, { label: 'Router Tree', path: 'tools/devtools/router', @@ -1554,6 +1564,10 @@ export const REFERENCE_SUB_NAVIGATION_DATA: NavigationItem[] = [ label: 'directive', path: 'cli/generate/directive', }, + { + label: 'entry-point', + path: 'cli/generate/entry-point', + }, { label: 'enum', path: 'cli/generate/enum', @@ -1768,6 +1782,11 @@ export const REFERENCE_SUB_NAVIGATION_DATA: NavigationItem[] = [ path: 'reference/migrations/common-to-standalone', contentPath: 'reference/migrations/common-to-standalone', }, + { + label: 'Injectable to Service', + path: 'reference/migrations/injectable-to-service', + contentPath: 'reference/migrations/injectable-to-service', + }, ], }, ]; diff --git a/adev/src/app/routing/router_providers.ts b/adev/src/app/routing/router_providers.ts index 4d02a6be731b..78a3aca4e36d 100644 --- a/adev/src/app/routing/router_providers.ts +++ b/adev/src/app/routing/router_providers.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ -import {DOCUMENT, inject, provideEnvironmentInitializer} from '@angular/core'; +import {inject, provideEnvironmentInitializer} from '@angular/core'; import { provideRouter, withInMemoryScrolling, @@ -16,24 +16,38 @@ import { withComponentInputBinding, RouteReuseStrategy, TitleStrategy, - NavigationCancel, - NavigationError, - NavigationStart, RedirectCommand, withNavigationErrorHandler, withRouterConfig, + withExperimentalPlatformNavigation, isActive, } from '@angular/router'; import {routes} from './routes'; import {ADevTitleStrategy} from '../core/services/a-dev-title-strategy'; import {ReuseTutorialsRouteStrategy} from '../features/tutorial/tutorials-route-reuse-strategy'; import {AppScroller} from '../app-scroller'; -import {Subject} from 'rxjs/internal/Subject'; import {HttpErrorResponse} from '@angular/common/http'; -import {WINDOW} from '@angular/docs'; -import {merge, map} from 'rxjs'; +import {isFirefox} from '@angular/docs'; + +/** + * Integrates the Router with the browser's Navigation API, which lets the browser indicate an + * ongoing navigation (loading indicator on the tab, refresh button turns into "stop") and lets + * visitors cancel it with the stop button or the escape key. + * + * Only enabled when the Navigation API is available: it is not supported by all browsers yet, and + * it doesn't exist on the server (SSR/prerendering). + * + * Firefox is excluded for now: versions prior to 159 crash the tab on fragment navigations when + * the Router drives the Navigation API (https://bugzilla.mozilla.org/show_bug.cgi?id=2077448), + * e.g. when using the "On this page" menu or opening a URL with a hash. See + * https://github.com/angular/angular/issues/71567. + * TODO: remove the Firefox exclusion once Firefox 159+ is widely adopted. + */ +const isPlatformNavigationSupported = + typeof window !== 'undefined' && + (window as {navigation?: unknown}).navigation !== undefined && + !isFirefox; -const transitionCreated = new Subject(); export const routerProviders = [ provideRouter( routes, @@ -48,7 +62,6 @@ export const routerProviders = [ }), withViewTransitions({ onViewTransitionCreated: ({transition, to}) => { - transitionCreated.next(); const router = inject(Router); const toTree = createUrlTreeFromSnapshot(to, []); // Skip the transition if the only thing changing is the fragment and queryParams @@ -65,6 +78,7 @@ export const routerProviders = [ }, }), withComponentInputBinding(), + ...(isPlatformNavigationSupported ? [withExperimentalPlatformNavigation()] : []), ), { provide: RouteReuseStrategy, @@ -72,77 +86,4 @@ export const routerProviders = [ }, {provide: TitleStrategy, useClass: ADevTitleStrategy}, provideEnvironmentInitializer(() => inject(AppScroller)), - provideEnvironmentInitializer(() => initializeNavigationAdapter()), ]; - -/** - * This function creates an adapter for the Router which creates a browser navigation - * event for any Router navigations (indicated by NavigationStart). This navigation - * is then cancelled right before the Router would commit the change to the browser - * state through history.[push/replace]State (happens right after view transition is created) - * or when the navigation ends without completing (NavigationCancel or NavigationError). - * - * In addition, it listens for the 'navigateerror' event, which would happen if the - * user cancels the navigation using the stop button in the browser UI, pressing the escape key, - * or initiates a document traversal (e.g. browser back/forward button). When this event - * happens, it aborts any ongoing Router navigation. - * - * The benefit we get out of this is that the browser can better indicate a navigation is happening - * when we use the Navigation API. A loading indicator appears on the tab (in desktop chrome) and the - * refresh button changes to an "x" for stop. Site visitors can cancel the navigation using the stop - * button or the escape key (again, on desktop). - */ -const initializeNavigationAdapter = () => { - const router = inject(Router); - const window = inject(WINDOW); - const navigation = window.navigation; - if (!navigation || !inject(DOCUMENT).startViewTransition) { - return; - } - - let intercept = false; - let clearNavigation: (() => void) | undefined; - navigation.addEventListener('navigateerror', async () => { - if (!clearNavigation) { - return; - } - clearNavigation = undefined; - router.currentNavigation()?.abort(); - }); - navigation.addEventListener('navigate', (navigateEvent) => { - if (!intercept) { - return; - } - navigateEvent.intercept({ - handler: () => - new Promise((_, reject) => { - clearNavigation = () => { - clearNavigation = undefined; - reject(); - }; - }), - }); - }); - - merge(transitionCreated.pipe(map(() => 'viewtransition')), router.events).subscribe((e) => { - // Skip this for popstate/traversals that are already committed. - // The rollback is problematic so we only do it for navigations that - // defer the actual update (pushState) on the browser. - const currentNavigation = router.currentNavigation(); - if (currentNavigation?.trigger === 'popstate' || currentNavigation?.extras.replaceUrl) { - return; - } - if (e instanceof NavigationStart) { - intercept = true; - window.history.replaceState(window.history.state, '', window.location.href); - intercept = false; - } else if ( - // viewtransition happens before NavigateEnd - e === 'viewtransition' || - e instanceof NavigationCancel || - e instanceof NavigationError - ) { - clearNavigation?.(); - } - }); -}; diff --git a/adev/src/app/routing/routes.spec.ts b/adev/src/app/routing/routes.spec.ts new file mode 100644 index 000000000000..d8c69209194c --- /dev/null +++ b/adev/src/app/routing/routes.spec.ts @@ -0,0 +1,114 @@ +/*! + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import {Route} from '@angular/router'; +import { + DOCS_ROUTES, + REFERENCE_ROUTES, + SUB_NAVIGATION_ROUTES, + TUTORIALS_ROUTES, + routes, +} from './routes'; + +describe('adev routing smoke tests', () => { + function flattenRoutes(routeList: Route[]): Route[] { + const result: Route[] = []; + for (const route of routeList) { + result.push(route); + if (route.children) { + result.push(...flattenRoutes(route.children)); + } + } + return result; + } + + it('should not contain any external URLs in route paths', () => { + const allRoutes = flattenRoutes(routes); + const externalRoutes: string[] = []; + + for (const route of allRoutes) { + if (route.path) { + if ( + route.path.includes('://') || + route.path.startsWith('http:') || + route.path.startsWith('https:') || + route.path.startsWith('//') || + route.path.startsWith('mailto:') + ) { + externalRoutes.push(route.path); + } + } + } + + expect(externalRoutes) + .withContext( + `Found external URLs in Angular Router route paths. External links should not be registered as routes because prerendering will attempt to render them as static pages:\n${externalRoutes.join('\n')}`, + ) + .toEqual([]); + }); + + it('should not have invalid route path formats (leading slashes or backslashes)', () => { + const allRoutes = flattenRoutes(routes); + const invalidPaths: string[] = []; + + for (const route of allRoutes) { + if (route.path) { + if (route.path.startsWith('/') || route.path.includes('\\')) { + invalidPaths.push(route.path); + } + } + } + + expect(invalidPaths) + .withContext( + `Found invalid route paths (leading slash or backslashes):\n${invalidPaths.join('\n')}`, + ) + .toEqual([]); + }); + + it('should have populated sub-navigation route collections', () => { + expect(DOCS_ROUTES.length).toBeGreaterThan(0); + expect(REFERENCE_ROUTES.length).toBeGreaterThan(0); + expect(TUTORIALS_ROUTES.length).toBeGreaterThan(0); + expect(SUB_NAVIGATION_ROUTES.length).toBeGreaterThan(0); + }); + + describe('representative route prerender smoke test', () => { + const representativeRoutes: {path: string; description: string}[] = [ + {path: '', description: 'Home page'}, + {path: 'overview', description: 'Docs overview'}, + {path: 'essentials/signals', description: 'Docs essentials'}, + {path: 'guide/signals', description: 'In-depth guide'}, + {path: 'api', description: 'API reference list'}, + {path: 'cli', description: 'CLI reference list'}, + {path: 'tutorials', description: 'Tutorials list'}, + {path: 'tutorials/learn-angular', description: 'Interactive tutorial'}, + {path: 'playground', description: 'Playground'}, + {path: 'update', description: 'Update guide'}, + {path: '**', description: 'Not found page'}, + ]; + + for (const {path, description} of representativeRoutes) { + it(`should successfully resolve route and load component for ${description} ('${path}')`, async () => { + const allRoutes = flattenRoutes(routes); + const matchedRoute = allRoutes.find((r) => r.path === path); + + expect(matchedRoute) + .withContext(`Representative route '${path}' (${description}) was not found in routes`) + .toBeDefined(); + + if (matchedRoute?.loadComponent) { + const component = await matchedRoute.loadComponent(); + expect(component) + .withContext(`loadComponent failed for route '${path}' (${description})`) + .toBeTruthy(); + } + }); + } + }); +}); diff --git a/adev/src/assets/BUILD.bazel b/adev/src/assets/BUILD.bazel index 0fbec8a0428d..8a4b551f95d2 100644 --- a/adev/src/assets/BUILD.bazel +++ b/adev/src/assets/BUILD.bazel @@ -8,6 +8,7 @@ copy_to_directory( srcs = [ "//adev/src/content", "//adev/src/content/ai", + "//adev/src/content/api:api_docs", "//adev/src/content/aria:aria_docs", "//adev/src/content/best-practices", "//adev/src/content/best-practices/performance", @@ -55,51 +56,13 @@ copy_to_directory( "//adev/src/content/tutorials/signal-forms:signal-forms-guides", "//adev/src/content/tutorials/signals", "//adev/src/content/tutorials/signals:signals-guides", - "//packages/animations:animations_docs", - "//packages/animations/browser:animations_browser_docs", - "//packages/animations/browser/testing:animations_browser_testing_docs", - "//packages/common:common_docs", - "//packages/common/http:http_docs", - "//packages/common/http/testing:http_testing_docs", - "//packages/common/testing:common_testing_docs", - "//packages/common/upgrade:common_upgrade_docs", - "//packages/core:core_docs", - "//packages/core/global:core_global_docs", - "//packages/core/rxjs-interop:core_rxjs-interop_docs", - "//packages/core/testing:core_testing_docs", - "//packages/elements:elements_docs", - "//packages/forms:forms_docs", - "//packages/forms/signals:forms_signals_docs", - "//packages/forms/signals/compat:forms_signals_compat_docs", - "//packages/localize:localize_docs", - "//packages/localize/src/localize:localize_init_docs", - "//packages/platform-browser:platform-browser_docs", - "//packages/platform-browser-dynamic:platform-browser_dynamic_docs", - "//packages/platform-browser-dynamic/testing:platform-browser_dynamic_testing_docs", - "//packages/platform-browser/animations:platform-browser_animations_docs", - "//packages/platform-browser/animations/async:platform-browser_animations_async_docs", - "//packages/platform-browser/testing:platform-browser_testing_docs", - "//packages/platform-server:platform-server_docs", - "//packages/platform-server/testing:platform-server_testing_docs", - "//packages/router:router_docs", - "//packages/router/testing:router_testing_docs", - "//packages/router/upgrade:router_upgrade_docs", - "//packages/service-worker:service-worker_docs", - "//packages/ssr/docs:ssr_docs", - "//packages/ssr/docs:ssr_node_docs", - "//packages/upgrade:upgrade_docs", - "//packages/upgrade/static:upgrade_static_docs", - "//packages/upgrade/static/testing:upgrade_static_testing_docs", - "//tools/manual_api_docs/blocks:blocks_docs", - "//tools/manual_api_docs/elements:elements_docs", ], replace_prefixes = { "adev/src/content/cli/cli_docs_html": "cli/", "adev/src/content/aria/aria_docs_html": "api/", "adev/src/content/cdk/cdk_docs_html": "api/", + "adev/src/content/api/**/": "api/", "adev/src/content": "", - "packages/**/": "api/", - "tools/**/": "api/", }, ) @@ -122,9 +85,9 @@ copy_to_directory( generate_api_manifest( name = "docs_api_manifest", srcs = [ + "//adev/src/content/api:docs_extracted_apis", "//adev/src/content/aria:aria_extracted_apis", "//adev/src/content/cdk:cdk_extracted_apis", - "//packages:docs_extracted_apis", ], ) diff --git a/adev/src/assets/images/aria.svg b/adev/src/assets/images/aria.svg new file mode 100644 index 000000000000..36161ee48ca9 --- /dev/null +++ b/adev/src/assets/images/aria.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + aria-expanded + + + + aria-label + + + + role + + + + aria-selected + + + + diff --git a/adev/src/assets/images/components.svg b/adev/src/assets/images/components.svg index 73f6e51ac27c..3ed9cc107cae 100644 --- a/adev/src/assets/images/components.svg +++ b/adev/src/assets/images/components.svg @@ -5,7 +5,61 @@ fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" + style="overflow: visible" > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/adev/src/assets/images/dependency_injection.svg b/adev/src/assets/images/dependency_injection.svg index 0030f86fefad..f69e643a8bcf 100644 --- a/adev/src/assets/images/dependency_injection.svg +++ b/adev/src/assets/images/dependency_injection.svg @@ -1,58 +1,61 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/adev/src/assets/images/directives.svg b/adev/src/assets/images/directives.svg index 9075e4962158..91d001167eb2 100644 --- a/adev/src/assets/images/directives.svg +++ b/adev/src/assets/images/directives.svg @@ -1,11 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/adev/src/assets/images/guide/devtools/signal-graph.png b/adev/src/assets/images/guide/devtools/signal-graph.png new file mode 100644 index 000000000000..a1c2ef74c81a Binary files /dev/null and b/adev/src/assets/images/guide/devtools/signal-graph.png differ diff --git a/adev/src/assets/images/guide/inputs-outputs/input.svg b/adev/src/assets/images/guide/inputs-outputs/input.svg deleted file mode 100644 index 4eacafaeae64..000000000000 --- a/adev/src/assets/images/guide/inputs-outputs/input.svg +++ /dev/null @@ -1 +0,0 @@ -@Inputdata flowParentChild \ No newline at end of file diff --git a/adev/src/assets/images/guide/inputs-outputs/output.svg b/adev/src/assets/images/guide/inputs-outputs/output.svg deleted file mode 100644 index e77cd9796f9a..000000000000 --- a/adev/src/assets/images/guide/inputs-outputs/output.svg +++ /dev/null @@ -1 +0,0 @@ -@Outputdata flowParentChild \ No newline at end of file diff --git a/adev/src/assets/images/i18n.svg b/adev/src/assets/images/i18n.svg new file mode 100644 index 000000000000..777e78b893c1 --- /dev/null +++ b/adev/src/assets/images/i18n.svg @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hello + + こんにちは + + Hola + + Bonjour + + Merhaba + + Ciao + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/adev/src/assets/images/overview.svg b/adev/src/assets/images/overview.svg index b4d8ae52c75e..ccfa887d1df0 100644 --- a/adev/src/assets/images/overview.svg +++ b/adev/src/assets/images/overview.svg @@ -1,10 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/adev/src/assets/images/routing.svg b/adev/src/assets/images/routing.svg index 6915b000d321..6b48a5f6a1c7 100644 --- a/adev/src/assets/images/routing.svg +++ b/adev/src/assets/images/routing.svg @@ -1,11 +1,11 @@ - + diff --git a/adev/src/assets/images/templates.svg b/adev/src/assets/images/templates.svg index 78945defe60a..de5cdb5a6bc5 100644 --- a/adev/src/assets/images/templates.svg +++ b/adev/src/assets/images/templates.svg @@ -1,10 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/adev/src/assets/images/what_is_angular.svg b/adev/src/assets/images/what_is_angular.svg index 7dffd8fbb4af..a0558d59f0c2 100644 --- a/adev/src/assets/images/what_is_angular.svg +++ b/adev/src/assets/images/what_is_angular.svg @@ -5,6 +5,7 @@ fill="none" xmlns="http://www.w3.org/2000/svg" class="docs-what-is-angular-svg" + style="overflow: visible" > - + + diff --git a/adev/src/content/ai/develop-with-ai.md b/adev/src/content/ai/develop-with-ai.md index 771d649b80b8..3d402700b895 100644 --- a/adev/src/content/ai/develop-with-ai.md +++ b/adev/src/content/ai/develop-with-ai.md @@ -25,7 +25,7 @@ Several tools, such as GEMINI.md | Configure `GEMINI.md` | | Copilot powered IDEs | copilot-instructions.md | Configure `.github/copilot-instructions.md` | | Cursor | cursor.md | Configure `cursorrules.md` | -| JetBrains IDEs | guidelines.md | Configure `guidelines.md` | +| JetBrains IDEs | AGENTS.md | Configure `AGENTS.md` | | VS Code | .instructions.md | Configure `.instructions.md` | | Windsurf | guidelines.md | Configure `guidelines.md` | @@ -43,7 +43,3 @@ The Angular CLI includes an experimental [Model Context Protocol (MCP) server](h - llms-full.txt - a more robust compiled set of resources describing how Angular works and how to build Angular applications. Be sure to check out the [overview page](/ai) for more information on how to integrate AI into your Angular applications. - -## Web Codegen Scorer - -The Angular team developed and open-sourced the [Web Codegen Scorer](https://github.com/angular/web-codegen-scorer), a tool to evaluate and score the quality of AI generated web code. You can use this tool to make evidence-based decisions relating to AI-generated code, such as fine-tuning prompts to improve the accuracy of LLM-generated code for Angular. These prompts can be included as system instructions for your AI tooling or as context with your prompt. You can also use this tool to compare the quality of code produced by different models and monitor quality over time as models and agents evolve. diff --git a/adev/src/content/ai/mcp-server-setup.md b/adev/src/content/ai/mcp-server-setup.md index f8901dd2f080..2d96fd5f2af2 100644 --- a/adev/src/content/ai/mcp-server-setup.md +++ b/adev/src/content/ai/mcp-server-setup.md @@ -67,9 +67,9 @@ When the MCP server is enabled, AI agents have access to the following tools: | Name | Description | | :-------------------------- | :-------------------------------------------------------------------------------------------------------- | | `ai_tutor` | Launches an interactive AI-powered Angular tutor. | -| `devserver.start` | Asynchronously starts a dev server (`ng serve`). Returns immediately. | -| `devserver.stop` | Stops the dev server. | -| `devserver.wait_for_build` | Returns the logs of the most recent build in a running dev server. | +| `devserver_start` | Asynchronously starts a dev server (`ng serve`). Returns immediately. | +| `devserver_stop` | Stops the dev server. | +| `devserver_wait_for_build` | Returns the logs of the most recent build in a running dev server. | | `get_best_practices` | Retrieves the Angular Best Practices Guide (crucial for standalone components, typed forms, etc.). | | `list_projects` | Lists all applications and libraries in the workspace by reading `angular.json`. | | `onpush_zoneless_migration` | Analyzes code and provides a plan to migrate it to `OnPush` change detection (prerequisite for zoneless). | @@ -97,10 +97,10 @@ The AI agent automates research, implementation, and verification when developin 1. **API & Syntax Research**: The AI agent uses `search_documentation` to look up Angular APIs or syntax rules (e.g., `@defer` block options). 2. **Load Coding Standards**: The AI agent calls `get_best_practices` with the workspace path to load Angular version-aligned coding rules. -3. **Start Local Dev Server**: The AI agent starts a background server by calling `devserver.start`. -4. **Monitor Build**: The AI agent uses `devserver.wait_for_build` to watch build logs and ensure compilation succeeds as it edits the code. +3. **Start Local Dev Server**: The AI agent starts a background server by calling `devserver_start`. +4. **Monitor Build**: The AI agent uses `devserver_wait_for_build` to watch build logs and ensure compilation succeeds as it edits the code. 5. **Write and Execute Tests**: The AI agent identifies the project's test framework (e.g., Jasmine, Jest, Vitest) via `list_projects`, writes the corresponding test file, and runs the tests using `run_target` with `"test"`. -6. **Stop Dev Server**: When finished, the AI agent stops the active dev server by calling `devserver.stop`. +6. **Stop Dev Server**: When finished, the AI agent stops the active dev server by calling `devserver_stop`. ### 3. Developer Onboarding and Learning diff --git a/adev/src/content/ai/webmcp.md b/adev/src/content/ai/webmcp.md index b175a4dc8594..b6b8eb70e1aa 100644 --- a/adev/src/content/ai/webmcp.md +++ b/adev/src/content/ai/webmcp.md @@ -1,6 +1,6 @@ # WebMCP -Web Model Context Protocol (WebMCP) is an [emerging web standard](https://github.com/webmachinelearning/webmcp/) that allows web applications to expose structured tools directly to AI agents running natively in the browser. Tools defined by an application allow AI assistants to interact with it directly, providing additional capabilities to the agent and reducing the need for DOM interactions. +WebMCP is a [proposed web standard](https://github.com/webmachinelearning/webmcp/) that allows web applications to expose structured tools directly to AI agents running natively in the browser. Tools defined by an application allow AI assistants to interact with it directly, providing additional capabilities to the agent and reducing the need for DOM interactions. For example, an application to register a new user might provide a WebMCP tool for a browser's AI agent to create the user directly rather than requiring the agent to go through a complex wizard UI via DOM interactions. @@ -32,7 +32,6 @@ bootstrapApplication(AppRoot, { { name: 'greet', description: 'Greets the agent.', - inputSchema: {type: 'object', properties: {}}, execute: () => { const greeter = inject(Greeter); @@ -113,7 +112,6 @@ export const routes: Routes = [ { name: 'exportDashboardReports', description: 'Exports the current dashboard analytics.', - inputSchema: {type: 'object', properties: {}}, execute: () => ({ content: [{type: 'text', text: 'Dashboard export successfully triggered.'}], }), @@ -124,15 +122,15 @@ export const routes: Routes = [ ]; ``` -NOTE: When registering tools to a particular route, consider configuring the router to use [`withExperimentalAutoCleanupInjectors`](api/router/withExperimentalAutoCleanupInjectors) to ensure tools are automatically _unregistered_ when the user navigates away from the route. Without this option, WebMCP tools declared on routes will remain accessible to AI agents even after the user has navigated to a different route. +NOTE: When registering tools to a particular route, consider configuring the router to use [`withAutoCleanupInjectors`](api/router/withAutoCleanupInjectors) to ensure tools are automatically _unregistered_ when the user navigates away from the route. Without this option, WebMCP tools declared on routes will remain accessible to AI agents even after the user has navigated to a different route. ```ts {header:"app.config.ts"} import {ApplicationConfig} from '@angular/core'; -import {provideRouter, withExperimentalAutoCleanupInjectors} from '@angular/router'; +import {provideRouter, withAutoCleanupInjectors} from '@angular/router'; import {routes} from './routes'; export const appConfig: ApplicationConfig = { - providers: [provideRouter(routes, withExperimentalAutoCleanupInjectors())], + providers: [provideRouter(routes, withAutoCleanupInjectors())], }; ``` @@ -151,7 +149,6 @@ export class Counter { declareExperimentalWebMcpTool({ name: 'getCounter', description: 'Reads the global counter.', - inputSchema: {type: 'object', properties: {}}, execute: () => ({ content: [{type: 'text', text: `The count is: ${this.count()}.`}], }), @@ -214,7 +211,7 @@ export class UserRegistration { }, submission: { action: async (formValue) => { - console.log('Submitting user:', formValue); + console.log('Submitting user:', formValue().value()); // ... }, }, @@ -231,7 +228,7 @@ In this example, Angular generates a WebMCP tool with a JSON schema which: Beyond inferring the input schema, Angular also connects the WebMCP tool to the form's validation logic and submission handler. This means the agent will observe any validation errors triggered by its inputs or any failures which happen during submission, allowing it to self-correct and potentially retry. -NOTE: Async validators are _not_ triggered and should be handled by the submission action. +NOTE: By default, async validators don't block submission: the submission action runs before they finish, so their errors aren't reported to the agent. Handle these checks in the submission action instead. #### Constraints diff --git a/adev/src/content/api/BUILD.bazel b/adev/src/content/api/BUILD.bazel new file mode 100644 index 000000000000..d35c1389ae63 --- /dev/null +++ b/adev/src/content/api/BUILD.bazel @@ -0,0 +1,506 @@ +load("@bazel_skylib//rules:build_test.bzl", "build_test") +load("//adev/shared-docs/pipeline/api-gen:generate_api_docs.bzl", "generate_api_docs") +load("//adev/shared-docs/pipeline/api-gen/rendering:render_api_to_html.bzl", "render_api_to_html") +load(":framework_api_docs.bzl", "generate_framework_api_docs") + +package(default_visibility = ["//adev:__subpackages__"]) + +# This target captures common dependencies needed for all `generate_api_docs` targets +# throughout Angular's public API surface. +filegroup( + name = "common_files_and_deps_for_docs", + srcs = [ + "//:node_modules/rxjs", + "//:node_modules/zone.js", + "//packages:types", + "//packages/common:files_for_docgen", + "//packages/common/http:files_for_docgen", + "//packages/core:files_for_docgen", + "//packages/core/primitives/signals:files_for_docgen", + "//packages/core/src/compiler:files_for_docgen", + "//packages/core/src/di/interface:files_for_docgen", + "//packages/core/src/interface:files_for_docgen", + "//packages/core/src/reflection:files_for_docgen", + "//packages/core/src/util:files_for_docgen", + "//packages/examples:files_for_docgen", + "//packages/platform-browser:files_for_docgen", + "//packages/platform-browser-dynamic:files_for_docgen", + ], +) + +generate_framework_api_docs( + name = "animations_docs", + srcs = [ + "//packages/animations:files_for_docgen", + ], + entry_point = "//packages/animations:index.ts", + module_name = "@angular/animations", +) + +generate_framework_api_docs( + name = "animations_browser_docs", + srcs = [ + "//packages/animations:files_for_docgen", + "//packages/animations/browser:files_for_docgen", + ], + entry_point = "//packages/animations/browser:index.ts", + module_name = "@angular/animations/browser", +) + +generate_framework_api_docs( + name = "animations_browser_testing_docs", + srcs = [ + "//packages/animations/browser/testing:files_for_docgen", + ], + entry_point = "//packages/animations/browser/testing:index.ts", + module_name = "@angular/animations/browser/testing", +) + +generate_framework_api_docs( + name = "common_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/common:files_for_docgen", + "//packages/platform-browser:files_for_docgen", + ], + entry_point = "//packages/common:index.ts", + module_name = "@angular/common", +) + +generate_framework_api_docs( + name = "http_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/common:files_for_docgen", + "//packages/common/http:files_for_docgen", + ], + entry_point = "//packages/common/http:index.ts", + module_name = "@angular/common/http", +) + +generate_api_docs( + name = "http_testing_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/common/http/testing:files_for_docgen", + ], + entry_point = "//packages/common/http/testing:index.ts", + module_name = "@angular/common/http/testing", +) + +generate_framework_api_docs( + name = "common_testing_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/common/testing:files_for_docgen", + ], + entry_point = "//packages/common/testing:index.ts", + module_name = "@angular/common/testing", +) + +generate_framework_api_docs( + name = "common_upgrade_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/common/upgrade:files_for_docgen", + ], + entry_point = "//packages/common/upgrade:index.ts", + module_name = "@angular/common/upgrade", +) + +generate_api_docs( + name = "core_docs", + srcs = [ + ":common_files_and_deps_for_docs", + ], + entry_point = "//packages/core:index.ts", + module_name = "@angular/core", + private_modules = [ + "//packages/core/primitives/di", + "core/primitives/signals", + "core/primitives/event-dispatch", + ], +) + +generate_framework_api_docs( + name = "core_global_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/core/global:files_for_docgen", + ], + entry_point = "//packages/core/global:index.ts", + module_label = "window.ng globals", + module_name = "@angular/core/globals", +) + +generate_framework_api_docs( + name = "core_rxjs-interop_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/common:files_for_docgen", + "//packages/common/http:files_for_docgen", + "//packages/core/rxjs-interop:files_for_docgen", + ], + entry_point = "//packages/core/rxjs-interop:index.ts", + module_name = "@angular/core/rxjs-interop", +) + +generate_framework_api_docs( + name = "core_testing_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/core/testing:files_for_docgen", + ], + entry_point = "//packages/core/testing:index.ts", + module_name = "@angular/core/testing", +) + +generate_framework_api_docs( + name = "elements_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/elements:files_for_docgen", + ], + entry_point = "//packages/elements:index.ts", + module_name = "@angular/elements", +) + +generate_framework_api_docs( + name = "forms_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/forms:files_for_docgen", + ], + entry_point = "//packages/forms:index.ts", + module_name = "@angular/forms", +) + +generate_framework_api_docs( + name = "forms_signals_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/common:files_for_docgen", + "//packages/forms/signals:files_for_docgen", + ], + entry_point = "//packages/forms/signals:index.ts", + module_name = "@angular/forms/signals", +) + +generate_framework_api_docs( + name = "forms_signals_compat_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/common:files_for_docgen", + "//packages/forms/signals/compat:files_for_docgen", + ], + entry_point = "//packages/forms/signals/compat:index.ts", + module_name = "@angular/forms/signals/compat", +) + +generate_framework_api_docs( + name = "localize_docs", + srcs = [ + "//packages/localize:files_for_docgen", + "//packages/localize/src/utils:files_for_docgen", + ], + entry_point = "//packages/localize:index.ts", + module_name = "@angular/localize", +) + +generate_framework_api_docs( + name = "localize_init_docs", + srcs = [ + "//packages/localize/src/localize:files_for_docgen", + ], + entry_point = "//packages/localize/src/localize:doc_index.ts", + module_name = "@angular/localize/init", +) + +generate_framework_api_docs( + name = "platform-browser_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/platform-browser:files_for_docgen", + ], + entry_point = "//packages/platform-browser:index.ts", + module_name = "@angular/platform-browser", +) + +generate_framework_api_docs( + name = "platform-browser_dynamic_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/platform-browser-dynamic:files_for_docgen", + ], + entry_point = "//packages/platform-browser-dynamic:index.ts", + module_name = "@angular/platform-browser-dynamic", +) + +generate_framework_api_docs( + name = "platform-browser_dynamic_testing_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/platform-browser-dynamic/testing:files_for_docgen", + ], + entry_point = "//packages/platform-browser-dynamic/testing:index.ts", + module_name = "@angular/platform-browser-dynamic/testing", +) + +generate_framework_api_docs( + name = "platform-browser_animations_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/platform-browser/animations:files_for_docgen", + ], + entry_point = "//packages/platform-browser/animations:index.ts", + module_name = "@angular/platform-browser/animations", +) + +generate_api_docs( + name = "platform-browser_animations_async_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/platform-browser/animations/async:files_for_docgen", + ], + entry_point = "//packages/platform-browser/animations/async:index.ts", + module_name = "@angular/platform-browser/animations/async", +) + +generate_framework_api_docs( + name = "platform-browser_testing_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/platform-browser/testing:files_for_docgen", + ], + entry_point = "//packages/platform-browser/testing:index.ts", + module_name = "@angular/platform-browser/testing", +) + +generate_framework_api_docs( + name = "platform-server_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/platform-server:files_for_docgen", + ], + entry_point = "//packages/platform-server:index.ts", + module_name = "@angular/platform-server", +) + +generate_framework_api_docs( + name = "platform-server_testing_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/platform-server/testing:files_for_docgen", + ], + entry_point = "//packages/platform-server/testing:index.ts", + module_name = "@angular/platform-server/testing", +) + +generate_framework_api_docs( + name = "router_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/common:files_for_docgen", + "//packages/common/http:files_for_docgen", + "//packages/router:files_for_docgen", + ], + entry_point = "//packages/router:index.ts", + module_name = "@angular/router", +) + +generate_framework_api_docs( + name = "router_testing_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/router/testing:files_for_docgen", + ], + entry_point = "//packages/router/testing:index.ts", + module_name = "@angular/router/testing", +) + +generate_framework_api_docs( + name = "router_upgrade_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/router/upgrade:files_for_docgen", + ], + entry_point = "//packages/router/upgrade:index.ts", + module_name = "@angular/router/upgrade", +) + +generate_framework_api_docs( + name = "service-worker_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/service-worker:files_for_docgen", + ], + entry_point = "//packages/service-worker:index.ts", + module_name = "@angular/service-worker", +) + +### @angular/ssr package located in the Angular/CLI repository +generate_framework_api_docs( + name = "ssr_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//:node_modules/@angular/ssr", + "//packages/ssr/docs:ssr_docs_lib", + "//packages/ssr/docs:ssr_docs_lib_types", + ], + entry_point = "//packages/ssr/docs:_index.d.ts", + module_name = "@angular/ssr", +) + +generate_framework_api_docs( + name = "ssr_node_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//:node_modules/@angular/ssr", + "//:node_modules/@types/node", + "//packages/ssr/docs:ssr_docs_lib", + "//packages/ssr/docs:ssr_docs_lib_types", + ], + entry_point = "//packages/ssr/docs:_node.d.ts", + module_name = "@angular/ssr/node", +) + +generate_framework_api_docs( + name = "upgrade_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/upgrade:files_for_docgen", + "//packages/upgrade/src/common:files_for_docgen", + ], + entry_point = "//packages/upgrade:index.ts", + module_name = "@angular/upgrade", +) + +generate_framework_api_docs( + name = "upgrade_static_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/upgrade:files_for_docgen", + "//packages/upgrade/src/common:files_for_docgen", + "//packages/upgrade/static:files_for_docgen", + ], + entry_point = "//packages/upgrade/static:index.ts", + module_name = "@angular/upgrade/static", +) + +generate_framework_api_docs( + name = "upgrade_static_testing_docs", + srcs = [ + ":common_files_and_deps_for_docs", + "//packages/upgrade/static/testing:files_for_docgen", + ], + entry_point = "//packages/upgrade/static/testing:index.ts", + module_name = "@angular/upgrade/static/testing", +) + +render_api_to_html( + name = "blocks_docs", + srcs = [ + "//tools/manual_api_docs/blocks", + ], +) + +render_api_to_html( + name = "manual_elements_docs", + srcs = [ + "//tools/manual_api_docs/elements", + ], +) + +filegroup( + name = "docs_extracted_apis", + srcs = [ + ":animations_browser_docs_extraction", + ":animations_browser_testing_docs_extraction", + ":animations_docs_extraction", + ":common_docs_extraction", + ":common_testing_docs_extraction", + ":common_upgrade_docs_extraction", + ":core_docs_extraction", + ":core_global_docs_extraction", + ":core_rxjs-interop_docs_extraction", + ":core_testing_docs_extraction", + ":elements_docs_extraction", + ":forms_docs_extraction", + ":forms_signals_compat_docs_extraction", + ":forms_signals_docs_extraction", + ":http_docs_extraction", + ":http_testing_docs_extraction", + ":localize_docs_extraction", + ":localize_init_docs_extraction", + ":platform-browser_animations_async_docs_extraction", + ":platform-browser_animations_docs_extraction", + ":platform-browser_docs_extraction", + ":platform-browser_dynamic_docs_extraction", + ":platform-browser_dynamic_testing_docs_extraction", + ":platform-browser_testing_docs_extraction", + ":platform-server_docs_extraction", + ":platform-server_testing_docs_extraction", + ":router_docs_extraction", + ":router_testing_docs_extraction", + ":router_upgrade_docs_extraction", + ":service-worker_docs_extraction", + ":ssr_docs_extraction", + ":ssr_node_docs_extraction", + ":upgrade_docs_extraction", + ":upgrade_static_docs_extraction", + ":upgrade_static_testing_docs_extraction", + "//tools/manual_api_docs/blocks", + "//tools/manual_api_docs/elements", + ], +) + +filegroup( + name = "api_docs", + srcs = [ + ":animations_browser_docs", + ":animations_browser_testing_docs", + ":animations_docs", + ":blocks_docs", + ":common_docs", + ":common_testing_docs", + ":common_upgrade_docs", + ":core_docs", + ":core_global_docs", + ":core_rxjs-interop_docs", + ":core_testing_docs", + ":elements_docs", + ":forms_docs", + ":forms_signals_compat_docs", + ":forms_signals_docs", + ":http_docs", + ":http_testing_docs", + ":localize_docs", + ":localize_init_docs", + ":manual_elements_docs", + ":platform-browser_animations_async_docs", + ":platform-browser_animations_docs", + ":platform-browser_docs", + ":platform-browser_dynamic_docs", + ":platform-browser_dynamic_testing_docs", + ":platform-browser_testing_docs", + ":platform-server_docs", + ":platform-server_testing_docs", + ":router_docs", + ":router_testing_docs", + ":router_upgrade_docs", + ":service-worker_docs", + ":ssr_docs", + ":ssr_node_docs", + ":upgrade_docs", + ":upgrade_static_docs", + ":upgrade_static_testing_docs", + ], +) + +build_test( + name = "api_docs_test", + targets = [ + ":api_docs", + ":docs_extracted_apis", + ], +) diff --git a/adev/src/content/api/framework_api_docs.bzl b/adev/src/content/api/framework_api_docs.bzl new file mode 100644 index 000000000000..647231b697a8 --- /dev/null +++ b/adev/src/content/api/framework_api_docs.bzl @@ -0,0 +1,22 @@ +load("//adev/shared-docs/pipeline/api-gen:generate_api_docs.bzl", _generate_api_docs = "generate_api_docs") + +def generate_framework_api_docs(**kwargs): + _generate_api_docs( + # We need to specify import mappings for Angular packages that import other Angular + # packages. + import_map = { + # We only need to specify top-level entry-points, and only those that + # are imported from other packages. + "//packages/animations:index.ts": "@angular/animations", + "//packages/common:index.ts": "@angular/common", + "//packages/core:index.ts": "@angular/core", + "//packages/forms:index.ts": "@angular/forms", + "//packages/localize:index.ts": "@angular/localize", + "//packages/platform-browser-dynamic:index.ts": "@angular/platform-browser-dynamic", + "//packages/platform-browser:index.ts": "@angular/platform-browser", + "//packages/platform-server:index.ts": "@angular/platform-server", + "//packages/router:index.ts": "@angular/router", + "//packages/upgrade:index.ts": "@angular/upgrade", + }, + **kwargs + ) diff --git a/adev/src/content/aria/_build-info.json b/adev/src/content/aria/_build-info.json index bee571c0223c..b39e5cc9a9fc 100644 --- a/adev/src/content/aria/_build-info.json +++ b/adev/src/content/aria/_build-info.json @@ -1,4 +1,4 @@ { "branchName": "refs/heads/main", - "sha": "d2a5d8578e039301b04c1d28f09d90e73cfd36d8" + "sha": "840a1547c6bd852df6f1efc858c28289bf443046" } \ No newline at end of file diff --git a/adev/src/content/aria/aria-accordion.json b/adev/src/content/aria/aria-accordion.json index 3c8246327afa..1f20566a57fa 100755 --- a/adev/src/content/aria/aria-accordion.json +++ b/adev/src/content/aria/aria-accordion.json @@ -7,7 +7,7 @@ { "name": "AccordionContent", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [], "generics": [], "description": "A structural directive that provides a mechanism for lazily rendering the content for an\n`ngAccordionPanel`.\n\nThis directive should be applied to an `ng-template` inside an `ngAccordionPanel`.\nIt allows the content of the panel to be lazily rendered, improving performance\nby only creating the content when the panel is first expanded.\n\n```html\n
    \n \n

    This is the content that will be displayed inside the panel.

    \n
    \n
    \n```", @@ -19,6 +19,12 @@ ], "rawComment": "/**\n * A structural directive that provides a mechanism for lazily rendering the content for an\n * `ngAccordionPanel`.\n *\n * This directive should be applied to an `ng-template` inside an `ngAccordionPanel`.\n * It allows the content of the panel to be lazily rendered, improving performance\n * by only creating the content when the panel is first expanded.\n *\n * ```html\n *
    \n * \n *

    This is the content that will be displayed inside the panel.

    \n *
    \n *
    \n * ```\n *\n * @see [Accordion](guide/aria/accordion)\n */", "implements": [], + "isStandalone": true, + "selector": "ng-template[ngAccordionContent]", + "exportAs": [], + "aliases": [ + "ngAccordionContent" + ], "source": { "filePath": "src/aria/accordion/accordion-content.ts", "startLine": 30, @@ -41,7 +47,7 @@ { "name": "AccordionPanel", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [ { "name": "element", @@ -55,13 +61,16 @@ }, { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "input" ], "description": "A global unique identifier for the panel.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "id", + "isRequiredInput": false }, { "name": "visible", @@ -183,6 +192,14 @@ ], "rawComment": "/**\n * The content panel of an accordion item that is conditionally visible.\n *\n * This directive is a container for the content that is shown or hidden. It should\n * expose a template reference that will be used by the corresponding `ngAccordionTrigger`.\n * The content within the panel should be provided using an `ng-template` with the\n * `ngAccordionContent` directive so that the content is not rendered on the page until the trigger\n * is expanded. It applies `role=\"region\"` for accessibility and uses the `inert` attribute to hide\n * its content from assistive technologies when not visible.\n *\n * ```html\n *
    \n * \n *

    This content is lazily rendered and will be shown when the panel is expanded.

    \n *
    \n *
    \n * ```\n *\n * @see [Accordion](guide/aria/accordion)\n */", "implements": [], + "isStandalone": true, + "selector": "[ngAccordionPanel]", + "exportAs": [ + "ngAccordionPanel" + ], + "aliases": [ + "ngAccordionPanel" + ], "source": { "filePath": "/src/aria/accordion/accordion-panel.ts", "startLine": 42, @@ -219,7 +236,7 @@ }, { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ "readonly", @@ -232,7 +249,7 @@ }, { "name": "panelId", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -270,7 +287,7 @@ }, { "name": "active", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -278,72 +295,6 @@ "description": "Whether the trigger is active.", "jsdocTags": [] }, - { - "name": "ngOnInit", - "signatures": [ - { - "name": "ngOnInit", - "entryType": "function", - "description": "", - "generics": [], - "isNewType": false, - "jsdocTags": [], - "params": [], - "rawComment": "", - "returnType": "void" - } - ], - "implementation": { - "params": [], - "isNewType": false, - "returnType": "void", - "generics": [], - "name": "ngOnInit", - "description": "", - "entryType": "function", - "jsdocTags": [], - "rawComment": "" - }, - "entryType": "function", - "description": "", - "jsdocTags": [], - "rawComment": "", - "memberType": "method", - "memberTags": [] - }, - { - "name": "ngOnDestroy", - "signatures": [ - { - "name": "ngOnDestroy", - "entryType": "function", - "description": "", - "generics": [], - "isNewType": false, - "jsdocTags": [], - "params": [], - "rawComment": "", - "returnType": "void" - } - ], - "implementation": { - "params": [], - "isNewType": false, - "returnType": "void", - "generics": [], - "name": "ngOnDestroy", - "description": "", - "entryType": "function", - "jsdocTags": [], - "rawComment": "" - }, - "entryType": "function", - "description": "", - "jsdocTags": [], - "rawComment": "", - "memberType": "method", - "memberTags": [] - }, { "name": "expand", "signatures": [ @@ -453,10 +404,7 @@ } ], "rawComment": "/**\n * The trigger that toggles the visibility of its associated `ngAccordionPanel`.\n *\n * This directive requires the `panel` input be set to the template reference of the `ngAccordionPanel`\n * it controls. When clicked, it will expand or collapse the panel. It also handles keyboard\n * interactions for navigation within the `ngAccordionGroup`. It applies `role=\"button\"` and manages\n * `aria-expanded`, `aria-controls`, and `aria-disabled` attributes for accessibility.\n * The `disabled` input can be used to disable the trigger.\n *\n * ```html\n * \n * ```\n *\n * @see [Accordion](guide/aria/accordion)\n */", - "implements": [ - "OnInit", - "OnDestroy" - ], + "implements": [], "isStandalone": true, "selector": "[ngAccordionTrigger]", "exportAs": [ @@ -468,7 +416,7 @@ "source": { "filePath": "/src/aria/accordion/accordion-trigger.ts", "startLine": 43, - "endLine": 150 + "endLine": 154 } }, { @@ -671,7 +619,7 @@ "source": { "filePath": "src/aria/accordion/accordion-group.ts", "startLine": 61, - "endLine": 141 + "endLine": 136 } } ], @@ -713,11 +661,11 @@ "@angular/cdk/a11y" ], [ - "OnDestroy", + "effect", "@angular/core" ], [ - "OnInit", + "untracked", "@angular/core" ], [ @@ -736,6 +684,10 @@ "afterNextRender", "@angular/core" ], + [ + "OnDestroy", + "@angular/core" + ], [ "Directionality", "@angular/cdk/bidi" @@ -828,14 +780,6 @@ "AccordionTrigger.active", "@angular/aria/accordion" ], - [ - "AccordionTrigger.ngOnInit", - "@angular/aria/accordion" - ], - [ - "AccordionTrigger.ngOnDestroy", - "@angular/aria/accordion" - ], [ "AccordionTrigger.expand", "@angular/aria/accordion" diff --git a/adev/src/content/aria/aria-combobox.json b/adev/src/content/aria/aria-combobox.json index 8a5efbe5d6b7..6927cecab402 100755 --- a/adev/src/content/aria/aria-combobox.json +++ b/adev/src/content/aria/aria-combobox.json @@ -229,17 +229,20 @@ { "name": "ComboboxPopup", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [ { "name": "combobox", "type": "InputSignal", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "input" ], "description": "The combobox that the popup belongs to.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "combobox", + "isRequiredInput": true }, { "name": "controlTarget", @@ -276,10 +279,13 @@ "type": "InputSignal<\"listbox\" | \"tree\" | \"grid\" | \"dialog\">", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "input" ], "description": "The type of the popup (e.g., listbox, tree, grid, dialog).", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "popupType", + "isRequiredInput": false }, { "name": "ngOnInit", @@ -356,10 +362,18 @@ "OnInit", "OnDestroy" ], + "isStandalone": true, + "selector": "ng-template[ngComboboxPopup]", + "exportAs": [ + "ngComboboxPopup" + ], + "aliases": [ + "ngComboboxPopup" + ], "source": { "filePath": "src/aria/combobox/combobox-popup.ts", "startLine": 29, - "endLine": 80 + "endLine": 84 } }, { @@ -431,7 +445,7 @@ }, { "name": "tabIndex", - "type": "InputSignal", + "type": "InputSignalWithTransform", "memberType": "property", "memberTags": [ "readonly", @@ -517,6 +531,28 @@ "rawComment": "", "memberType": "method", "memberTags": [] + }, + { + "name": "contentVisible", + "type": "WritableSignal", + "memberType": "property", + "memberTags": [ + "readonly", + "override" + ], + "description": "", + "jsdocTags": [] + }, + { + "name": "preserveContent", + "type": "ModelSignal", + "memberType": "property", + "memberTags": [ + "readonly", + "override" + ], + "description": "", + "jsdocTags": [] } ], "generics": [], @@ -538,7 +574,7 @@ "source": { "filePath": "/src/aria/combobox/combobox.ts", "startLine": 59, - "endLine": 163 + "endLine": 157 } } ], @@ -587,14 +623,6 @@ "computed", "@angular/core" ], - [ - "DeferredContent", - "@angular/aria/private" - ], - [ - "ComboboxPopupPattern", - "@angular/aria/private" - ], [ "afterRenderEffect", "@angular/core" @@ -611,18 +639,6 @@ "Renderer2", "@angular/core" ], - [ - "DeferredContentAware", - "@angular/aria/private" - ], - [ - "ComboboxPattern", - "@angular/aria/private" - ], - [ - "tabIndexTransform", - "@angular/aria/private" - ], [ "COMBOBOX_POPUP", "@angular/aria/combobox" @@ -750,6 +766,14 @@ [ "Combobox.ngOnInit", "@angular/aria/combobox" + ], + [ + "Combobox.contentVisible", + "@angular/aria/combobox" + ], + [ + "Combobox.preserveContent", + "@angular/aria/combobox" ] ] } \ No newline at end of file diff --git a/adev/src/content/aria/aria-grid.json b/adev/src/content/aria/aria-grid.json index 05c38daee922..78a1dbfc3fcb 100755 --- a/adev/src/content/aria/aria-grid.json +++ b/adev/src/content/aria/aria-grid.json @@ -156,7 +156,7 @@ }, { "name": "active", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -166,7 +166,7 @@ }, { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ "readonly", @@ -205,7 +205,7 @@ }, { "name": "focusTarget", - "type": "InputSignal", + "type": "InputSignal>", "memberType": "property", "memberTags": [ "readonly", @@ -349,7 +349,7 @@ "source": { "filePath": "src/aria/grid/grid-cell-widget.ts", "startLine": 40, - "endLine": 125 + "endLine": 127 } }, { @@ -509,7 +509,7 @@ }, { "name": "tabIndex", - "type": "InputSignal", + "type": "InputSignalWithTransform", "memberType": "property", "memberTags": [ "readonly", @@ -522,7 +522,7 @@ }, { "name": "activeDescendant", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -656,7 +656,7 @@ }, { "name": "active", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -676,7 +676,7 @@ }, { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ "readonly", diff --git a/adev/src/content/aria/aria-listbox.json b/adev/src/content/aria/aria-listbox.json index 751ab862ddc8..b6555b4413eb 100755 --- a/adev/src/content/aria/aria-listbox.json +++ b/adev/src/content/aria/aria-listbox.json @@ -34,7 +34,7 @@ }, { "name": "active", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -44,7 +44,7 @@ }, { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ "readonly", @@ -96,7 +96,7 @@ }, { "name": "selected", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -221,7 +221,7 @@ "members": [ { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ "readonly", @@ -372,7 +372,7 @@ }, { "name": "tabIndex", - "type": "InputSignal", + "type": "InputSignalWithTransform", "memberType": "property", "memberTags": [ "readonly", diff --git a/adev/src/content/aria/aria-menu.json b/adev/src/content/aria/aria-menu.json index 306748d57631..53d9d60ca2e6 100755 --- a/adev/src/content/aria/aria-menu.json +++ b/adev/src/content/aria/aria-menu.json @@ -7,7 +7,7 @@ { "name": "MenuContent", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [], "generics": [], "description": "Defers the rendering of the menu content.\n\nThis structural directive should be applied to an `ng-template` within a `ngMenu`\nor `ngMenuBar` to lazily render its content only when the menu is opened.\n\n```html\n
    \n \n
    Lazy Item 1
    \n
    Lazy Item 2
    \n
    \n
    \n```", @@ -23,6 +23,14 @@ ], "rawComment": "/**\n * Defers the rendering of the menu content.\n *\n * This structural directive should be applied to an `ng-template` within a `ngMenu`\n * or `ngMenuBar` to lazily render its content only when the menu is opened.\n *\n * ```html\n *
    \n * \n *
    Lazy Item 1
    \n *
    Lazy Item 2
    \n *
    \n *
    \n * ```\n *\n * @see [Menu](guide/aria/menu)\n * @see [MenuBar](guide/aria/menubar)\n */", "implements": [], + "isStandalone": true, + "selector": "ng-template[ngMenuContent]", + "exportAs": [ + "ngMenuContent" + ], + "aliases": [ + "ngMenuContent" + ], "source": { "filePath": "/src/aria/menu/menu-content.ts", "startLine": 30, @@ -82,7 +90,7 @@ }, { "name": "expanded", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -92,7 +100,7 @@ }, { "name": "hasPopup", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -126,6 +134,16 @@ "inputAlias": "softDisabled", "isRequiredInput": false }, + { + "name": "tabIndex", + "type": "Signal<0 | -1>", + "memberType": "property", + "memberTags": [ + "readonly" + ], + "description": "Tab index of the menu trigger.", + "jsdocTags": [] + }, { "name": "open", "signatures": [ @@ -222,7 +240,7 @@ "source": { "filePath": "/src/aria/menu/menu-trigger.ts", "startLine": 41, - "endLine": 109 + "endLine": 112 } }, { @@ -242,7 +260,7 @@ }, { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ "readonly", @@ -332,7 +350,7 @@ }, { "name": "active", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -342,7 +360,7 @@ }, { "name": "expanded", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -352,7 +370,7 @@ }, { "name": "hasPopup", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -525,7 +543,7 @@ "source": { "filePath": "/src/aria/menu/menu-item.ts", "startLine": 43, - "endLine": 140 + "endLine": 141 } }, { @@ -736,7 +754,7 @@ { "name": "Menu", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [ { "name": "element", @@ -760,43 +778,55 @@ }, { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "input" ], "description": "The unique ID of the menu.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "id", + "isRequiredInput": false }, { "name": "wrap", "type": "InputSignalWithTransform", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "input" ], "description": "Whether the menu should wrap its items.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "wrap", + "isRequiredInput": false }, { "name": "typeaheadDelay", "type": "InputSignal", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "input" ], "description": "The delay in milliseconds before the typeahead buffer is cleared.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "typeaheadDelay", + "isRequiredInput": false }, { "name": "disabled", "type": "InputSignalWithTransform", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "input" ], "description": "Whether the menu is disabled.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "disabled", + "isRequiredInput": false }, { "name": "parent", @@ -813,14 +843,17 @@ "type": "InputSignalWithTransform", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "input" ], "description": "Whether the menu is soft disabled.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "softDisabled", + "isRequiredInput": false }, { "name": "visible", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -830,7 +863,7 @@ }, { "name": "tabIndex", - "type": "Signal", + "type": "Signal<0 | -1>", "memberType": "property", "memberTags": [ "readonly" @@ -843,20 +876,25 @@ "type": "OutputEmitterRef", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "output" ], "description": "A callback function triggered when a menu item is selected.", - "jsdocTags": [] + "jsdocTags": [], + "outputAlias": "itemSelected" }, { "name": "expansionDelay", "type": "InputSignal", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "input" ], "description": "The delay in milliseconds before expanding sub-menus on hover.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "expansionDelay", + "isRequiredInput": false }, { "name": "ngOnDestroy", @@ -945,10 +983,18 @@ "implements": [ "OnDestroy" ], + "isStandalone": true, + "selector": "[ngMenu]", + "exportAs": [ + "ngMenu" + ], + "aliases": [ + "ngMenu" + ], "source": { "filePath": "/src/aria/menu/menu.ts", "startLine": 57, - "endLine": 215 + "endLine": 213 } } ], @@ -1093,6 +1139,10 @@ "MenuTrigger.softDisabled", "@angular/aria/menu" ], + [ + "MenuTrigger.tabIndex", + "@angular/aria/menu" + ], [ "MenuTrigger.open", "@angular/aria/menu" diff --git a/adev/src/content/aria/aria-tabs.json b/adev/src/content/aria/aria-tabs.json index 428bba90011b..c3cdee3738b2 100755 --- a/adev/src/content/aria/aria-tabs.json +++ b/adev/src/content/aria/aria-tabs.json @@ -7,7 +7,7 @@ { "name": "TabContent", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [], "generics": [], "description": "A TabContent container for the lazy-loaded content.\n\nThis structural directive should be applied to an `ng-template` within an `ngTabPanel`.\nIt enables lazy loading of the tab's content, meaning the content is only rendered\nwhen the tab is activated for the first time.\n\n```html\n
    \n \n

    This content will be loaded when 'myTabId' is selected.

    \n
    \n
    \n```", @@ -19,6 +19,14 @@ ], "rawComment": "/**\n * A TabContent container for the lazy-loaded content.\n *\n * This structural directive should be applied to an `ng-template` within an `ngTabPanel`.\n * It enables lazy loading of the tab's content, meaning the content is only rendered\n * when the tab is activated for the first time.\n *\n * ```html\n *
    \n * \n *

    This content will be loaded when 'myTabId' is selected.

    \n *
    \n *
    \n * ```\n *\n * @see [Tabs](guide/aria/tabs)\n */", "implements": [], + "isStandalone": true, + "selector": "ng-template[ngTabContent]", + "exportAs": [ + "ngTabContent" + ], + "aliases": [ + "ngTabContent" + ], "source": { "filePath": "/src/aria/tabs/tab-content.ts", "startLine": 29, @@ -143,7 +151,7 @@ }, { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ "readonly", @@ -182,7 +190,7 @@ }, { "name": "active", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -192,7 +200,7 @@ }, { "name": "selected", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -331,7 +339,7 @@ { "name": "TabPanel", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [ { "name": "element", @@ -345,23 +353,29 @@ }, { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "input" ], "description": "A global unique identifier for the tab.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "id", + "isRequiredInput": false }, { "name": "value", "type": "InputSignal", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "input" ], "description": "A local unique identifier for the tabpanel.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "value", + "isRequiredInput": true }, { "name": "visible", @@ -453,6 +467,14 @@ "OnInit", "OnDestroy" ], + "isStandalone": true, + "selector": "[ngTabPanel]", + "exportAs": [ + "ngTabPanel" + ], + "aliases": [ + "ngTabPanel" + ], "source": { "filePath": "/src/aria/tabs/tab-panel.ts", "startLine": 42, @@ -712,7 +734,7 @@ } ], "rawComment": "", - "returnType": "any" + "returnType": "Tab | undefined" } ], "implementation": { @@ -726,7 +748,7 @@ } ], "isNewType": false, - "returnType": "any", + "returnType": "Tab | undefined", "generics": [], "name": "findTab", "description": "", diff --git a/adev/src/content/aria/aria-toolbar.json b/adev/src/content/aria/aria-toolbar.json index f7c33eb00621..df92067a1e63 100755 --- a/adev/src/content/aria/aria-toolbar.json +++ b/adev/src/content/aria/aria-toolbar.json @@ -6,7 +6,7 @@ "entries": [ { "name": "TOOLBAR_WIDGET_GROUP", - "type": "InjectionToken>", + "type": "InjectionToken", "entryType": "constant", "rawComment": "/** Token used to provide the `ToolbarWidgetGroup` directive. */", "description": "Token used to provide the `ToolbarWidgetGroup` directive.", @@ -14,77 +14,7 @@ "source": { "filePath": "/src/aria/toolbar/toolbar-tokens.ts", "startLine": 13, - "endLine": 15 - } - }, - { - "name": "ToolbarWidgetGroup", - "isAbstract": false, - "entryType": "directive", - "members": [ - { - "name": "element", - "type": "HTMLElement", - "memberType": "property", - "memberTags": [ - "readonly" - ], - "description": "A reference to the host element.", - "jsdocTags": [] - }, - { - "name": "disabled", - "type": "InputSignalWithTransform", - "memberType": "property", - "memberTags": [ - "readonly", - "input" - ], - "description": "Whether the widget group is disabled.", - "jsdocTags": [], - "inputAlias": "disabled", - "isRequiredInput": false - }, - { - "name": "multi", - "type": "InputSignalWithTransform", - "memberType": "property", - "memberTags": [ - "readonly", - "input" - ], - "description": "Whether the group allows multiple widgets to be selected.", - "jsdocTags": [], - "inputAlias": "multi", - "isRequiredInput": false - } - ], - "generics": [ - { - "name": "V" - } - ], - "description": "A directive that groups toolbar widgets, used for more complex widgets like radio groups\nthat have their own internal navigation.", - "jsdocTags": [ - { - "name": "see", - "comment": "[Toolbar](guide/aria/toolbar)" - } - ], - "rawComment": "/**\n * A directive that groups toolbar widgets, used for more complex widgets like radio groups\n * that have their own internal navigation.\n *\n * @see [Toolbar](guide/aria/toolbar)\n */", - "implements": [], - "isStandalone": true, - "selector": "[ngToolbarWidgetGroup]", - "exportAs": [ - "ngToolbarWidgetGroup" - ], - "aliases": [ - "ngToolbarWidgetGroup" - ], - "source": { - "filePath": "/src/aria/toolbar/toolbar-widget-group.ts", - "startLine": 30, - "endLine": 81 + "endLine": 13 } }, { @@ -164,21 +94,6 @@ "inputAlias": "wrap", "isRequiredInput": false }, - { - "name": "value", - "type": "ModelSignal", - "memberType": "property", - "memberTags": [ - "readonly", - "input", - "output" - ], - "description": "The values of the selected widgets within the toolbar.", - "jsdocTags": [], - "inputAlias": "value", - "isRequiredInput": false, - "outputAlias": "valueChange" - }, { "name": "ngOnDestroy", "signatures": [ @@ -213,19 +128,15 @@ "memberTags": [] } ], - "generics": [ - { - "name": "V" - } - ], - "description": "A toolbar widget container for a group of interactive widgets, such as\nbuttons or radio groups. It provides a single point of reference for keyboard navigation\nand focus management. It supports various orientations and disabled states.\n\n```html\n
    \n \n \n\n
    \n \n \n \n
    \n
    \n```", + "generics": [], + "description": "A toolbar widget container for a group of interactive widgets, such as\nbuttons or radio groups. It provides a single point of reference for keyboard navigation\nand focus management. It supports various orientations and disabled states.\n\n```html\n
    \n \n \n\n
    \n \n \n \n
    \n
    \n```", "jsdocTags": [ { "name": "see", "comment": "[Toolbar](guide/aria/toolbar)" } ], - "rawComment": "/**\n * A toolbar widget container for a group of interactive widgets, such as\n * buttons or radio groups. It provides a single point of reference for keyboard navigation\n * and focus management. It supports various orientations and disabled states.\n *\n * ```html\n *
    \n * \n * \n *\n *
    \n * \n * \n * \n *
    \n *
    \n * ```\n *\n * @see [Toolbar](guide/aria/toolbar)\n */", + "rawComment": "/**\n * A toolbar widget container for a group of interactive widgets, such as\n * buttons or radio groups. It provides a single point of reference for keyboard navigation\n * and focus management. It supports various orientations and disabled states.\n *\n * ```html\n *
    \n * \n * \n *\n *
    \n * \n * \n * \n *
    \n *
    \n * ```\n *\n * @see [Toolbar](guide/aria/toolbar)\n */", "implements": [ "OnDestroy" ], @@ -239,8 +150,61 @@ ], "source": { "filePath": "/src/aria/toolbar/toolbar.ts", - "startLine": 46, - "endLine": 132 + "startLine": 45, + "endLine": 118 + } + }, + { + "name": "ToolbarWidgetGroup", + "isAbstract": false, + "entryType": "directive", + "members": [ + { + "name": "element", + "type": "HTMLElement", + "memberType": "property", + "memberTags": [ + "readonly" + ], + "description": "A reference to the host element.", + "jsdocTags": [] + }, + { + "name": "disabled", + "type": "InputSignalWithTransform", + "memberType": "property", + "memberTags": [ + "readonly", + "input" + ], + "description": "Whether the widget group is disabled.", + "jsdocTags": [], + "inputAlias": "disabled", + "isRequiredInput": false + } + ], + "generics": [], + "description": "A directive that groups toolbar widgets, used for more complex widgets like radio groups\nthat have their own internal navigation.", + "jsdocTags": [ + { + "name": "see", + "comment": "[Toolbar](guide/aria/toolbar)" + } + ], + "rawComment": "/**\n * A directive that groups toolbar widgets, used for more complex widgets like radio groups\n * that have their own internal navigation.\n *\n * @see [Toolbar](guide/aria/toolbar)\n */", + "implements": [], + "isStandalone": true, + "selector": "[ngToolbarWidgetGroup]", + "exportAs": [ + "ngToolbarWidgetGroup" + ], + "aliases": [ + "ngToolbarWidgetGroup" + ], + "source": { + "filePath": "/src/aria/toolbar/toolbar-widget-group.ts", + "startLine": 30, + "endLine": 78 } }, { @@ -260,7 +224,7 @@ }, { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ "readonly", @@ -286,7 +250,7 @@ }, { "name": "hardDisabled", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -294,22 +258,9 @@ "description": "Whether the widget is 'hard' disabled, which is different from `aria-disabled`. A hard disabled widget cannot receive focus.", "jsdocTags": [] }, - { - "name": "value", - "type": "InputSignal", - "memberType": "property", - "memberTags": [ - "readonly", - "input" - ], - "description": "The value associated with the widget.", - "jsdocTags": [], - "inputAlias": "value", - "isRequiredInput": true - }, { "name": "active", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -317,16 +268,6 @@ "description": "Whether the widget is currently active (focused).", "jsdocTags": [] }, - { - "name": "selected", - "type": "() => any", - "memberType": "property", - "memberTags": [ - "readonly" - ], - "description": "Whether the widget is selected (only relevant in a selection group).", - "jsdocTags": [] - }, { "name": "ngOnInit", "signatures": [ @@ -394,19 +335,15 @@ "memberTags": [] } ], - "generics": [ - { - "name": "V" - } - ], - "description": "A widget within a toolbar.\n\nThe `ngToolbarWidget` directive should be applied to any native HTML element that acts\nas an interactive widget within an `ngToolbar` or `ngToolbarWidgetGroup`. It enables\nkeyboard navigation and selection within the toolbar.\n\n```html\n\n```", + "generics": [], + "description": "A widget within a toolbar.\n\nThe `ngToolbarWidget` directive should be applied to any native HTML element that acts\nas an interactive widget within an `ngToolbar` or `ngToolbarWidgetGroup`. It enables\nkeyboard navigation within the toolbar.\n\n```html\n\n```", "jsdocTags": [ { "name": "see", "comment": "[Toolbar](guide/aria/toolbar)" } ], - "rawComment": "/**\n * A widget within a toolbar.\n *\n * The `ngToolbarWidget` directive should be applied to any native HTML element that acts\n * as an interactive widget within an `ngToolbar` or `ngToolbarWidgetGroup`. It enables\n * keyboard navigation and selection within the toolbar.\n *\n * ```html\n * \n * ```\n *\n * @see [Toolbar](guide/aria/toolbar)\n */", + "rawComment": "/**\n * A widget within a toolbar.\n *\n * The `ngToolbarWidget` directive should be applied to any native HTML element that acts\n * as an interactive widget within an `ngToolbar` or `ngToolbarWidgetGroup`. It enables\n * keyboard navigation within the toolbar.\n *\n * ```html\n * \n * ```\n *\n * @see [Toolbar](guide/aria/toolbar)\n */", "implements": [ "OnInit", "OnDestroy" @@ -422,7 +359,7 @@ "source": { "filePath": "/src/aria/toolbar/toolbar-widget.ts", "startLine": 45, - "endLine": 114 + "endLine": 106 } } ], @@ -432,15 +369,15 @@ "@angular/core" ], [ - "Directive", + "afterNextRender", "@angular/core" ], [ - "ElementRef", + "afterRenderEffect", "@angular/core" ], [ - "inject", + "booleanAttribute", "@angular/core" ], [ @@ -448,27 +385,19 @@ "@angular/core" ], [ - "input", - "@angular/core" - ], - [ - "booleanAttribute", - "@angular/core" - ], - [ - "contentChildren", + "Directive", "@angular/core" ], [ - "afterRenderEffect", + "ElementRef", "@angular/core" ], [ - "afterNextRender", + "inject", "@angular/core" ], [ - "model", + "input", "@angular/core" ], [ @@ -483,6 +412,10 @@ "Directionality", "@angular/cdk/bidi" ], + [ + "contentChildren", + "@angular/core" + ], [ "OnInit", "@angular/core" @@ -495,36 +428,20 @@ "TOOLBAR_WIDGET_GROUP", "@angular/aria/toolbar" ], - [ - "ToolbarWidgetGroup", - "@angular/aria/toolbar" - ], [ "Toolbar", "@angular/aria/toolbar" ], - [ - "ToolbarWidget", - "@angular/aria/toolbar" - ], - [ - "TOOLBAR_WIDGET_GROUP", - "@angular/aria/toolbar" - ], [ "ToolbarWidgetGroup", "@angular/aria/toolbar" ], [ - "ToolbarWidgetGroup.element", - "@angular/aria/toolbar" - ], - [ - "ToolbarWidgetGroup.disabled", + "ToolbarWidget", "@angular/aria/toolbar" ], [ - "ToolbarWidgetGroup.multi", + "TOOLBAR_WIDGET_GROUP", "@angular/aria/toolbar" ], [ @@ -556,43 +473,43 @@ "@angular/aria/toolbar" ], [ - "Toolbar.value", + "Toolbar.ngOnDestroy", "@angular/aria/toolbar" ], [ - "Toolbar.ngOnDestroy", + "ToolbarWidgetGroup", "@angular/aria/toolbar" ], [ - "ToolbarWidget", + "ToolbarWidgetGroup.element", "@angular/aria/toolbar" ], [ - "ToolbarWidget.element", + "ToolbarWidgetGroup.disabled", "@angular/aria/toolbar" ], [ - "ToolbarWidget.id", + "ToolbarWidget", "@angular/aria/toolbar" ], [ - "ToolbarWidget.disabled", + "ToolbarWidget.element", "@angular/aria/toolbar" ], [ - "ToolbarWidget.hardDisabled", + "ToolbarWidget.id", "@angular/aria/toolbar" ], [ - "ToolbarWidget.value", + "ToolbarWidget.disabled", "@angular/aria/toolbar" ], [ - "ToolbarWidget.active", + "ToolbarWidget.hardDisabled", "@angular/aria/toolbar" ], [ - "ToolbarWidget.selected", + "ToolbarWidget.active", "@angular/aria/toolbar" ], [ diff --git a/adev/src/content/aria/aria-tree.json b/adev/src/content/aria/aria-tree.json index 0bfd2326b80c..459c8d08d8b8 100755 --- a/adev/src/content/aria/aria-tree.json +++ b/adev/src/content/aria/aria-tree.json @@ -7,7 +7,7 @@ { "name": "TreeItemGroup", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [ { "name": "element", @@ -24,76 +24,13 @@ "type": "InputSignal>", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "input" ], "description": "Tree item that owns the group.", - "jsdocTags": [] - }, - { - "name": "ngOnInit", - "signatures": [ - { - "name": "ngOnInit", - "entryType": "function", - "description": "", - "generics": [], - "isNewType": false, - "jsdocTags": [], - "params": [], - "rawComment": "", - "returnType": "void" - } - ], - "implementation": { - "params": [], - "isNewType": false, - "returnType": "void", - "generics": [], - "name": "ngOnInit", - "description": "", - "entryType": "function", - "jsdocTags": [], - "rawComment": "" - }, - "entryType": "function", - "description": "", - "jsdocTags": [], - "rawComment": "", - "memberType": "method", - "memberTags": [] - }, - { - "name": "ngOnDestroy", - "signatures": [ - { - "name": "ngOnDestroy", - "entryType": "function", - "description": "", - "generics": [], - "isNewType": false, - "jsdocTags": [], - "params": [], - "rawComment": "", - "returnType": "void" - } - ], - "implementation": { - "params": [], - "isNewType": false, - "returnType": "void", - "generics": [], - "name": "ngOnDestroy", - "description": "", - "entryType": "function", - "jsdocTags": [], - "rawComment": "" - }, - "entryType": "function", - "description": "", "jsdocTags": [], - "rawComment": "", - "memberType": "method", - "memberTags": [] + "inputAlias": "ownedBy", + "isRequiredInput": true } ], "generics": [ @@ -109,14 +46,19 @@ } ], "rawComment": "/**\n * Group that contains children tree items.\n *\n * The `ngTreeItemGroup` structural directive should be applied to an `ng-template` that\n * wraps the child `ngTreeItem` elements. It is used to define a group of children for an\n * expandable `ngTreeItem`. The `ownedBy` input links the group to its parent `ngTreeItem`.\n *\n * ```html\n *
  • \n * Parent Item\n *
      \n * \n *
    • Child Item
    • \n *
      \n *
    \n *
  • \n * ```\n *\n * @see [Tree](guide/aria/tree)\n */", - "implements": [ - "OnInit", - "OnDestroy" + "implements": [], + "isStandalone": true, + "selector": "ng-template[ngTreeItemGroup]", + "exportAs": [ + "ngTreeItemGroup" + ], + "aliases": [ + "ngTreeItemGroup" ], "source": { "filePath": "/src/aria/tree/tree-item-group.ts", "startLine": 42, - "endLine": 86 + "endLine": 88 } }, { @@ -136,7 +78,7 @@ }, { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ "readonly", @@ -249,7 +191,7 @@ }, { "name": "active", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -259,7 +201,7 @@ }, { "name": "level", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -269,7 +211,7 @@ }, { "name": "selected", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -279,7 +221,7 @@ }, { "name": "visible", - "type": "Signal", + "type": "Signal", "memberType": "property", "memberTags": [ "readonly" @@ -321,37 +263,26 @@ "memberTags": [] }, { - "name": "ngOnDestroy", - "signatures": [ - { - "name": "ngOnDestroy", - "entryType": "function", - "description": "", - "generics": [], - "isNewType": false, - "jsdocTags": [], - "params": [], - "rawComment": "", - "returnType": "void" - } + "name": "contentVisible", + "type": "WritableSignal", + "memberType": "property", + "memberTags": [ + "readonly", + "override" ], - "implementation": { - "params": [], - "isNewType": false, - "returnType": "void", - "generics": [], - "name": "ngOnDestroy", - "description": "", - "entryType": "function", - "jsdocTags": [], - "rawComment": "" - }, - "entryType": "function", "description": "", - "jsdocTags": [], - "rawComment": "", - "memberType": "method", - "memberTags": [] + "jsdocTags": [] + }, + { + "name": "preserveContent", + "type": "ModelSignal", + "memberType": "property", + "memberTags": [ + "readonly", + "override" + ], + "description": "", + "jsdocTags": [] } ], "generics": [ @@ -365,7 +296,6 @@ "extends": "DeferredContentAware", "implements": [ "OnInit", - "OnDestroy", "HasElement" ], "isStandalone": true, @@ -378,8 +308,8 @@ ], "source": { "filePath": "/src/aria/tree/tree-item.ts", - "startLine": 41, - "endLine": 167 + "startLine": 42, + "endLine": 172 } }, { @@ -399,7 +329,7 @@ }, { "name": "id", - "type": "InputSignal", + "type": "InputSignal", "memberType": "property", "memberTags": [ "readonly", @@ -516,7 +446,7 @@ }, { "name": "tabIndex", - "type": "InputSignal", + "type": "InputSignalWithTransform", "memberType": "property", "memberTags": [ "readonly", @@ -728,11 +658,11 @@ "@angular/core" ], [ - "OnInit", + "effect", "@angular/core" ], [ - "OnDestroy", + "untracked", "@angular/core" ], [ @@ -751,6 +681,10 @@ "Signal", "@angular/core" ], + [ + "OnInit", + "@angular/core" + ], [ "_IdGenerator", "@angular/cdk/a11y" @@ -760,7 +694,7 @@ "@angular/core" ], [ - "untracked", + "OnDestroy", "@angular/core" ], [ @@ -791,14 +725,6 @@ "TreeItemGroup.ownedBy", "@angular/aria/tree" ], - [ - "TreeItemGroup.ngOnInit", - "@angular/aria/tree" - ], - [ - "TreeItemGroup.ngOnDestroy", - "@angular/aria/tree" - ], [ "TreeItem", "@angular/aria/tree" @@ -864,7 +790,11 @@ "@angular/aria/tree" ], [ - "TreeItem.ngOnDestroy", + "TreeItem.contentVisible", + "@angular/aria/tree" + ], + [ + "TreeItem.preserveContent", "@angular/aria/tree" ], [ diff --git a/adev/src/content/best-practices/error-handling.md b/adev/src/content/best-practices/error-handling.md index 8f88da54ddc4..16f8323fc289 100644 --- a/adev/src/content/best-practices/error-handling.md +++ b/adev/src/content/best-practices/error-handling.md @@ -46,6 +46,20 @@ export class GlobalErrorHandler implements ErrorHandler { In many cases, `ErrorHandler` may only log errors and otherwise allow the application to continue running. In tests, however, you almost always want to surface these errors. Angular's `TestBed` rethrows unexpected errors to ensure that errors caught by the framework cannot be unintentionally missed or ignored. In rare circumstances, a test may specifically attempt to ensure errors do not cause the application to be unresponsive or crash. In these situations, you can [configure `TestBed` to _not_ rethrow application errors](api/core/testing/TestModuleMetadata#rethrowApplicationErrors) with `TestBed.configureTestingModule({rethrowApplicationErrors: false})`. +### Errors thrown while your app is still starting up + +There's a brief moment when Angular can't send errors to your `ErrorHandler` yet: while it is still creating your app's root module or root component. Angular needs that root instance to exist before it can look up the `ErrorHandler` you provided, so an error thrown before then has nowhere to go. It behaves like a normal uncaught error instead of being reported through `ErrorHandler`. + +You're most likely to run into this with [Angular elements](guide/elements). If you define a custom element while its tag is already present on the page, the browser upgrades it right away, running the component's constructor and `ngOnInit` as part of that early startup work. Any error thrown there can get lost. + +If this happens to you, move the code that throws so it runs after your app has finished starting up, for example: + +- Wrap it in `setTimeout(() => /* your code */)` so it runs on its own turn instead of during startup. +- Provide it as an `APP_BOOTSTRAP_LISTENER` instead of running it from a constructor. +- Define your custom elements in `ngDoBootstrap` instead of your root module's constructor. + +Turning on `provideBrowserGlobalErrorListeners()` (see below) can also help catch these errors, since they still reach the browser as uncaught errors. + ## Global error listeners Errors that are caught neither by the application code nor by the framework's application instance may reach the global scope. Errors reaching the global scope can have unintended consequences if not accounted for. In non-browser environments, they may cause the process to crash. In the browser, these errors may go unreported and site visitors may see the errors in the browser console. Angular provides global listeners for both environments to account for these issues. diff --git a/adev/src/content/best-practices/runtime-performance/skipping-subtrees.md b/adev/src/content/best-practices/runtime-performance/skipping-subtrees.md index 405836da6e6b..d2f400e900a8 100644 --- a/adev/src/content/best-practices/runtime-performance/skipping-subtrees.md +++ b/adev/src/content/best-practices/runtime-performance/skipping-subtrees.md @@ -8,8 +8,10 @@ Change detection is sufficiently fast for most applications. However, when an ap OnPush is the default change detection strategy in Angular (since v22). It instructs Angular to run change detection for a component subtree **only** when: -- The root component of the subtree receives new inputs as the result of a template binding. Angular compares the current and past value of the input with `==`. +- The root component of the subtree receives new inputs as the result of a template binding. Angular compares the current and past value of the input with `Object.is`. - Angular handles an event _(for example using event binding, output binding, or `@HostListener` )_ in the subtree's root component or any of its children whether they are using OnPush change detection or not. +- A component in the subtree is marked for check, for example with `ChangeDetectorRef.markForCheck` or by `AsyncPipe`. +- A signal read in the template of a component in the subtree changes. Angular then refreshes only the components that read the signal. ## Common change detection scenarios diff --git a/adev/src/content/best-practices/runtime-performance/zone-pollution.md b/adev/src/content/best-practices/runtime-performance/zone-pollution.md index 38dfda071a7a..1519a9914fe5 100644 --- a/adev/src/content/best-practices/runtime-performance/zone-pollution.md +++ b/adev/src/content/best-practices/runtime-performance/zone-pollution.md @@ -25,7 +25,7 @@ In such cases, you can instruct Angular to avoid calling change detection for ta import { Component, NgZone, OnInit, inject } from '@angular/core'; @Component(...) -class AppComponent implements OnInit { +class App implements OnInit { private ngZone = inject(NgZone); ngOnInit() { @@ -43,7 +43,7 @@ import { Component, NgZone, OnInit, inject } from '@angular/core'; import * as Plotly from 'plotly.js-dist-min'; @Component(...) -class AppComponent implements OnInit { +class App implements OnInit { private ngZone = inject(NgZone); ngOnInit() { @@ -65,7 +65,7 @@ import { Component, NgZone, OnInit, output, inject } from '@angular/core'; import * as Plotly from 'plotly.js-dist-min'; @Component(...) -class AppComponent implements OnInit { +class App implements OnInit { private ngZone = inject(NgZone); plotlyClick = output(); @@ -97,7 +97,7 @@ import { Component, NgZone, OnInit, output, inject } from '@angular/core'; import * as Plotly from 'plotly.js-dist-min'; @Component(...) -class AppComponent implements OnInit { +class App implements OnInit { private ngZone = inject(NgZone); plotlyClick = output(); diff --git a/adev/src/content/cdk/_build-info.json b/adev/src/content/cdk/_build-info.json index 8657fb52c878..09704ebd6d05 100644 --- a/adev/src/content/cdk/_build-info.json +++ b/adev/src/content/cdk/_build-info.json @@ -1,4 +1,4 @@ { "branchName": "refs/heads/main", - "sha": "7575c178998483176800a185be08cd42c8f658cd" + "sha": "7c43fa75199a5e1b2212d04ec3febbc8f77379b3" } \ No newline at end of file diff --git a/adev/src/content/cdk/cdk_drag_drop.json b/adev/src/content/cdk/cdk_drag_drop.json index 03b38560fd10..f84f903eb417 100755 --- a/adev/src/content/cdk/cdk_drag_drop.json +++ b/adev/src/content/cdk/cdk_drag_drop.json @@ -227,7 +227,7 @@ { "name": "element", "description": "Element to which to attach the dragging functionality.", - "type": "any", + "type": "HTMLElement | ElementRef", "isOptional": false, "isRestParam": false }, @@ -248,7 +248,7 @@ { "name": "element", "description": "Element to which to attach the dragging functionality.", - "type": "any", + "type": "HTMLElement | ElementRef", "isOptional": false, "isRestParam": false }, @@ -347,7 +347,7 @@ { "name": "element", "description": "Element to which to attach the drop list functionality.", - "type": "any", + "type": "HTMLElement | ElementRef", "isOptional": false, "isRestParam": false } @@ -361,7 +361,7 @@ { "name": "element", "description": "Element to which to attach the drop list functionality.", - "type": "any", + "type": "HTMLElement | ElementRef", "isOptional": false, "isRestParam": false } @@ -451,7 +451,7 @@ }, { "name": "CDK_DRAG_PARENT", - "type": "any", + "type": "InjectionToken>", "entryType": "constant", "rawComment": "/**\n * Injection token that can be used for a `CdkDrag` to provide itself as a parent to the\n * drag-specific child directive (`CdkDragHandle`, `CdkDragPreview` etc.). Used primarily\n * to avoid circular imports.\n * @docs-private\n */", "description": "Injection token that can be used for a `CdkDrag` to provide itself as a parent to the\ndrag-specific child directive (`CdkDragHandle`, `CdkDragPreview` etc.). Used primarily\nto avoid circular imports.", @@ -522,7 +522,7 @@ }, { "name": "CDK_DROP_LIST_GROUP", - "type": "any", + "type": "InjectionToken>>", "entryType": "constant", "rawComment": "/**\n * Injection token that can be used to reference instances of `CdkDropListGroup`. It serves as\n * alternative token to the actual `CdkDropListGroup` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */", "description": "Injection token that can be used to reference instances of `CdkDropListGroup`. It serves as\nalternative token to the actual `CdkDropListGroup` class which could cause unnecessary\nretention of the class and its directive metadata.", @@ -535,7 +535,7 @@ }, { "name": "CDK_DRAG_PLACEHOLDER", - "type": "any", + "type": "InjectionToken>", "entryType": "constant", "rawComment": "/**\n * Injection token that can be used to reference instances of `CdkDragPlaceholder`. It serves as\n * alternative token to the actual `CdkDragPlaceholder` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */", "description": "Injection token that can be used to reference instances of `CdkDragPlaceholder`. It serves as\nalternative token to the actual `CdkDragPlaceholder` class which could cause unnecessary\nretention of the class and its directive metadata.", @@ -548,7 +548,7 @@ }, { "name": "CDK_DRAG_PREVIEW", - "type": "any", + "type": "InjectionToken>", "entryType": "constant", "rawComment": "/**\n * Injection token that can be used to reference instances of `CdkDragPreview`. It serves as\n * alternative token to the actual `CdkDragPreview` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */", "description": "Injection token that can be used to reference instances of `CdkDragPreview`. It serves as\nalternative token to the actual `CdkDragPreview` class which could cause unnecessary\nretention of the class and its directive metadata.", @@ -566,7 +566,7 @@ "members": [ { "name": "templateRef", - "type": "any", + "type": "TemplateRef", "memberType": "property", "memberTags": [], "description": "", @@ -645,15 +645,19 @@ { "name": "CdkDropListGroup", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [ { "name": "disabled", "type": "boolean", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Whether starting a dragging sequence from inside this group is disabled.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListGroupDisabled", + "isRequiredInput": false }, { "name": "ngOnDestroy", @@ -700,6 +704,14 @@ "implements": [ "OnDestroy" ], + "isStandalone": true, + "selector": "[cdkDropListGroup]", + "exportAs": [ + "cdkDropListGroup" + ], + "aliases": [ + "cdkDropListGroup" + ], "source": { "filePath": "/src/cdk/drag-drop/directives/drop-list-group.ts", "startLine": 27, @@ -709,11 +721,11 @@ { "name": "CdkDragPreview", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [ { "name": "templateRef", - "type": "any", + "type": "TemplateRef", "memberType": "property", "memberTags": [], "description": "", @@ -723,17 +735,25 @@ "name": "data", "type": "T", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Context data to be added to the preview template instance.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "data", + "isRequiredInput": false }, { "name": "matchSize", "type": "boolean", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Whether the preview should preserve the same size as the item that is being dragged.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "matchSize", + "isRequiredInput": false }, { "name": "ngOnDestroy", @@ -781,6 +801,12 @@ "implements": [ "OnDestroy" ], + "isStandalone": true, + "selector": "ng-template[cdkDragPreview]", + "exportAs": [], + "aliases": [ + "cdkDragPreview" + ], "source": { "filePath": "/src/cdk/drag-drop/directives/drag-preview.ts", "startLine": 31, @@ -789,7 +815,7 @@ }, { "name": "CDK_DRAG_CONFIG", - "type": "any", + "type": "InjectionToken", "entryType": "constant", "rawComment": "/**\n * Injection token that can be used to configure the\n * behavior of the drag&drop-related components.\n */", "description": "Injection token that can be used to configure the\nbehavior of the drag&drop-related components.", @@ -803,7 +829,7 @@ { "name": "DragDropModule", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "ng_module", "members": [], "generics": [], "description": "", @@ -818,7 +844,7 @@ }, { "name": "CDK_DRAG_HANDLE", - "type": "any", + "type": "InjectionToken", "entryType": "constant", "rawComment": "/**\n * Injection token that can be used to reference instances of `CdkDragHandle`. It serves as\n * alternative token to the actual `CdkDragHandle` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */", "description": "Injection token that can be used to reference instances of `CdkDragHandle`. It serves as\nalternative token to the actual `CdkDragHandle` class which could cause unnecessary\nretention of the class and its directive metadata.", @@ -1211,11 +1237,11 @@ { "name": "CdkDragHandle", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [ { "name": "element", - "type": "any", + "type": "ElementRef", "memberType": "property", "memberTags": [], "description": "", @@ -1225,17 +1251,25 @@ "name": "disabled", "type": "boolean", "memberType": "getter", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Whether starting to drag through this handle is disabled.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragHandleDisabled", + "isRequiredInput": false }, { "name": "disabled", "type": "boolean", "memberType": "setter", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragHandleDisabled", + "isRequiredInput": false }, { "name": "ngAfterViewInit", @@ -1312,6 +1346,12 @@ "AfterViewInit", "OnDestroy" ], + "isStandalone": true, + "selector": "[cdkDragHandle]", + "exportAs": [], + "aliases": [ + "cdkDragHandle" + ], "source": { "filePath": "/src/cdk/drag-drop/directives/drag-handle.ts", "startLine": 33, @@ -1321,11 +1361,11 @@ { "name": "CdkDropList", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [ { "name": "element", - "type": "any", + "type": "ElementRef", "memberType": "property", "memberTags": [], "description": "", @@ -1335,153 +1375,217 @@ "name": "connectedTo", "type": "string | CdkDropList | (string | CdkDropList)[]", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Other draggable containers that this container is connected to and into which the\ncontainer's items can be transferred. Can either be references to other drop containers,\nor their unique IDs.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListConnectedTo", + "isRequiredInput": false }, { "name": "data", "type": "T", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Arbitrary data to attach to this container.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListData", + "isRequiredInput": false }, { "name": "orientation", "type": "DropListOrientation", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Direction in which the list is oriented.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListOrientation", + "isRequiredInput": false }, { "name": "id", "type": "string", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Unique ID for the drop zone. Can be used as a reference\nin the `connectedTo` of another `CdkDropList`.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "id", + "isRequiredInput": false }, { "name": "lockAxis", "type": "DragAxis | null", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Locks the position of the draggable elements inside the container along the specified axis.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListLockAxis", + "isRequiredInput": false }, { "name": "disabled", "type": "boolean", "memberType": "getter", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Whether starting a dragging sequence from this container is disabled.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListDisabled", + "isRequiredInput": false }, { "name": "disabled", "type": "boolean", "memberType": "setter", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListDisabled", + "isRequiredInput": false }, { "name": "sortingDisabled", "type": "boolean", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Whether sorting within this drop list is disabled.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListSortingDisabled", + "isRequiredInput": false }, { "name": "enterPredicate", "type": "(drag: CdkDrag, drop: CdkDropList) => boolean", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Function that is used to determine whether an item\nis allowed to be moved into a drop container.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListEnterPredicate", + "isRequiredInput": false }, { "name": "sortPredicate", "type": "(index: number, drag: CdkDrag, drop: CdkDropList) => boolean", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Functions that is used to determine whether an item can be sorted into a particular index.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListSortPredicate", + "isRequiredInput": false }, { "name": "autoScrollDisabled", "type": "boolean", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Whether to auto-scroll the view when the user moves their pointer close to the edges.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListAutoScrollDisabled", + "isRequiredInput": false }, { "name": "autoScrollStep", "type": "NumberInput", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Number of pixels to scroll for each frame when auto-scrolling an element.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListAutoScrollStep", + "isRequiredInput": false }, { "name": "elementContainerSelector", "type": "string | null", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Selector that will be used to resolve an alternate element container for the drop list.\nPassing an alternate container is useful for the cases where one might not have control\nover the parent node of the draggable items within the list (e.g. due to content projection).\nThis allows for usages like:\n\n```\n
    \n
    \n
    \n
    \n
    \n```", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListElementContainer", + "isRequiredInput": false }, { "name": "hasAnchor", "type": "boolean", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "By default when an item leaves its initial container, its placeholder will be transferred\nto the new container. If that's not desirable for your use case, you can enable this option\nwhich will clone the placeholder and leave it inside the original container. If the item is\nreturned to the initial container, the anchor element will be removed automatically.\n\nThe cloned placeholder can be styled by targeting the `cdk-drag-anchor` class.\n\nThis option is useful in combination with `cdkDropListSortingDisabled` to implement copying\nbehavior in a drop list.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDropListHasAnchor", + "isRequiredInput": false }, { "name": "dropped", "type": "EventEmitter>", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "output" ], "description": "Emits when the user drops an item inside the container.", - "jsdocTags": [] + "jsdocTags": [], + "outputAlias": "cdkDropListDropped" }, { "name": "entered", "type": "EventEmitter>", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "output" ], "description": "Emits when the user has moved a new drag item into this container.", - "jsdocTags": [] + "jsdocTags": [], + "outputAlias": "cdkDropListEntered" }, { "name": "exited", "type": "EventEmitter>", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "output" ], "description": "Emits when the user removes an item from the container\nby dragging it into another container.", - "jsdocTags": [] + "jsdocTags": [], + "outputAlias": "cdkDropListExited" }, { "name": "sorted", "type": "EventEmitter>", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "output" ], "description": "Emits as the user is swapping items while actively dragging.", - "jsdocTags": [] + "jsdocTags": [], + "outputAlias": "cdkDropListSorted" }, { "name": "addItem", @@ -1660,6 +1764,14 @@ "implements": [ "OnDestroy" ], + "isStandalone": true, + "selector": "[cdkDropList], cdk-drop-list", + "exportAs": [ + "cdkDropList" + ], + "aliases": [ + "cdkDropList" + ], "source": { "filePath": "/src/cdk/drag-drop/directives/drop-list.ts", "startLine": 36, @@ -2711,7 +2823,7 @@ }, { "name": "CDK_DROP_LIST", - "type": "any", + "type": "InjectionToken>", "entryType": "constant", "rawComment": "/**\n * Injection token that can be used to reference instances of `CdkDropList`. It serves as\n * alternative token to the actual `CdkDropList` class which could cause unnecessary\n * retention of the class and its directive metadata.\n */", "description": "Injection token that can be used to reference instances of `CdkDropList`. It serves as\nalternative token to the actual `CdkDropList` class which could cause unnecessary\nretention of the class and its directive metadata.", @@ -2757,7 +2869,7 @@ { "name": "element", "description": "Element to which to attach the drop list functionality.", - "type": "any", + "type": "HTMLElement | ElementRef", "isOptional": false, "isRestParam": false } @@ -2778,7 +2890,7 @@ { "name": "element", "description": "Element to which to attach the drop list functionality.", - "type": "any", + "type": "HTMLElement | ElementRef", "isOptional": false, "isRestParam": false } @@ -2828,11 +2940,11 @@ { "name": "CdkDrag", "isAbstract": false, - "entryType": "undecorated_class", + "entryType": "directive", "members": [ { "name": "element", - "type": "any", + "type": "ElementRef", "memberType": "property", "memberTags": [], "description": "", @@ -2840,7 +2952,7 @@ }, { "name": "dropContainer", - "type": "any", + "type": "CdkDropList", "memberType": "property", "memberTags": [], "description": "", @@ -2850,169 +2962,230 @@ "name": "data", "type": "T", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Arbitrary data to attach to this drag instance.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragData", + "isRequiredInput": false }, { "name": "lockAxis", "type": "DragAxis | null", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Locks the position of the dragged element along the specified axis.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragLockAxis", + "isRequiredInput": false }, { "name": "rootElementSelector", "type": "string", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Selector that will be used to determine the root draggable element, starting from\nthe `cdkDrag` element and going up the DOM. Passing an alternate root element is useful\nwhen trying to enable dragging on an element that you might not have access to.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragRootElement", + "isRequiredInput": false }, { "name": "boundaryElement", - "type": "any", + "type": "string | HTMLElement | ElementRef", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Node or selector that will be used to determine the element to which the draggable's\nposition will be constrained. If a string is passed in, it'll be used as a selector that\nwill be matched starting from the element's parent and going up the DOM until a match\nhas been found.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragBoundary", + "isRequiredInput": false }, { "name": "dragStartDelay", "type": "DragStartDelay", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Amount of milliseconds to wait after the user has put their\npointer down before starting to drag the element.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragStartDelay", + "isRequiredInput": false }, { "name": "freeDragPosition", "type": "Point", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Sets the position of a `CdkDrag` that is outside of a drop container.\nCan be used to restore the element's position for a returning user.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragFreeDragPosition", + "isRequiredInput": false }, { "name": "disabled", "type": "boolean", "memberType": "getter", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Whether starting to drag this element is disabled.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragDisabled", + "isRequiredInput": false }, { "name": "disabled", "type": "boolean", "memberType": "setter", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragDisabled", + "isRequiredInput": false }, { "name": "constrainPosition", "type": "DragConstrainPosition | undefined", "memberType": "property", "memberTags": [ - "optional" + "optional", + "input" ], "description": "Function that can be used to customize the logic of how the position of the drag item\nis limited while it's being dragged. Gets called with a point containing the current position\nof the user's pointer on the page, a reference to the item being dragged and its dimensions.\nShould return a point describing where the item should be rendered.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragConstrainPosition", + "isRequiredInput": false }, { "name": "previewClass", "type": "string | string[]", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Class to be added to the preview element.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragPreviewClass", + "isRequiredInput": false }, { "name": "previewContainer", - "type": "any", + "type": "PreviewContainer", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "Configures the place into which the preview of the item will be inserted. Can be configured\nglobally through `CDK_DROP_LIST`. Possible values:\n- `global` - Preview will be inserted at the bottom of the ``. The advantage is that\nyou don't have to worry about `overflow: hidden` or `z-index`, but the item won't retain\nits inherited styles.\n- `parent` - Preview will be inserted into the parent of the drag item. The advantage is that\ninherited styles will be preserved, but it may be clipped by `overflow: hidden` or not be\nvisible due to `z-index`. Furthermore, the preview is going to have an effect over selectors\nlike `:nth-child` and some flexbox configurations.\n- `ElementRef | HTMLElement` - Preview will be inserted into a specific element.\nSame advantages and disadvantages as `parent`.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragPreviewContainer", + "isRequiredInput": false }, { "name": "scale", "type": "number", "memberType": "property", - "memberTags": [], + "memberTags": [ + "input" + ], "description": "If the parent of the dragged element has a `scale` transform, it can throw off the\npositioning when the user starts dragging. Use this input to notify the CDK of the scale.", - "jsdocTags": [] + "jsdocTags": [], + "inputAlias": "cdkDragScale", + "isRequiredInput": false }, { "name": "started", "type": "EventEmitter>", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "output" ], "description": "Emits when the user starts dragging the item.", - "jsdocTags": [] + "jsdocTags": [], + "outputAlias": "cdkDragStarted" }, { "name": "released", "type": "EventEmitter>", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "output" ], "description": "Emits when the user has released a drag item, before any animations have started.", - "jsdocTags": [] + "jsdocTags": [], + "outputAlias": "cdkDragReleased" }, { "name": "ended", "type": "EventEmitter>", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "output" ], "description": "Emits when the user stops dragging an item in the container.", - "jsdocTags": [] + "jsdocTags": [], + "outputAlias": "cdkDragEnded" }, { "name": "entered", "type": "EventEmitter>", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "output" ], "description": "Emits when the user has moved the item into a new container.", - "jsdocTags": [] + "jsdocTags": [], + "outputAlias": "cdkDragEntered" }, { "name": "exited", "type": "EventEmitter>", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "output" ], "description": "Emits when the user removes the item its container by dragging it into another container.", - "jsdocTags": [] + "jsdocTags": [], + "outputAlias": "cdkDragExited" }, { "name": "dropped", "type": "EventEmitter>", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "output" ], "description": "Emits when the user drops the item inside a container.", - "jsdocTags": [] + "jsdocTags": [], + "outputAlias": "cdkDragDropped" }, { "name": "moved", "type": "Observable>", "memberType": "property", "memberTags": [ - "readonly" + "readonly", + "output" ], "description": "Emits as the user is dragging the item. Use with caution,\nbecause this event will fire for every pixel that the user has dragged.", - "jsdocTags": [] + "jsdocTags": [], + "outputAlias": "cdkDragMoved" }, { "name": "getPlaceholderElement", @@ -3373,6 +3546,14 @@ "OnChanges", "OnDestroy" ], + "isStandalone": true, + "selector": "[cdkDrag]", + "exportAs": [ + "cdkDrag" + ], + "aliases": [ + "cdkDrag" + ], "source": { "filePath": "/src/cdk/drag-drop/directives/drag.ts", "startLine": 60, @@ -3508,7 +3689,7 @@ { "name": "element", "description": "", - "type": "any", + "type": "HTMLElement | ElementRef", "isOptional": false, "isRestParam": false }, @@ -3559,7 +3740,7 @@ }, { "name": "element", - "type": "any", + "type": "HTMLElement | ElementRef", "memberType": "property", "memberTags": [], "description": "Element that the drop list is attached to.", @@ -3631,7 +3812,7 @@ }, { "name": "beforeStarted", - "type": "any", + "type": "Subject", "memberType": "property", "memberTags": [ "readonly" @@ -3641,7 +3822,7 @@ }, { "name": "entered", - "type": "any", + "type": "Subject<{ item: DragRef; container: DropListRef; currentIndex: number; }>", "memberType": "property", "memberTags": [ "readonly" @@ -3651,7 +3832,7 @@ }, { "name": "exited", - "type": "any", + "type": "Subject<{ item: DragRef; container: DropListRef; }>", "memberType": "property", "memberTags": [ "readonly" @@ -3661,7 +3842,7 @@ }, { "name": "dropped", - "type": "any", + "type": "Subject<{ item: DragRef; currentIndex: number; previousIndex: number; container: DropListRef; previousContainer: DropListRef; isPointerOverContainer: boolean; distance: Point; dropPoint: Point; event: MouseEvent | TouchEvent; }>", "memberType": "property", "memberTags": [ "readonly" @@ -3671,7 +3852,7 @@ }, { "name": "sorted", - "type": "any", + "type": "Subject<{ previousIndex: number; currentIndex: number; container: DropListRef; item: DragRef; }>", "memberType": "property", "memberTags": [ "readonly" @@ -3681,7 +3862,7 @@ }, { "name": "receivingStarted", - "type": "any", + "type": "Subject<{ receiver: DropListRef; initiator: DropListRef; items: DragRef[]; }>", "memberType": "property", "memberTags": [ "readonly" @@ -3691,7 +3872,7 @@ }, { "name": "receivingStopped", - "type": "any", + "type": "Subject<{ receiver: DropListRef; initiator: DropListRef; }>", "memberType": "property", "memberTags": [ "readonly" @@ -5033,7 +5214,7 @@ { "name": "element", "description": "Element to which to attach the dragging functionality.", - "type": "any", + "type": "HTMLElement | ElementRef", "isOptional": false, "isRestParam": false }, @@ -5061,7 +5242,7 @@ { "name": "element", "description": "Element to which to attach the dragging functionality.", - "type": "any", + "type": "HTMLElement | ElementRef", "isOptional": false, "isRestParam": false }, @@ -5136,7 +5317,7 @@ { "name": "element", "description": "", - "type": "any", + "type": "HTMLElement | ElementRef", "isOptional": false, "isRestParam": false }, @@ -5249,7 +5430,7 @@ }, { "name": "beforeStarted", - "type": "any", + "type": "Subject", "memberType": "property", "memberTags": [ "readonly" @@ -5259,7 +5440,7 @@ }, { "name": "started", - "type": "any", + "type": "Subject<{ source: DragRef; event: MouseEvent | TouchEvent; }>", "memberType": "property", "memberTags": [ "readonly" @@ -5269,7 +5450,7 @@ }, { "name": "released", - "type": "any", + "type": "Subject<{ source: DragRef; event: MouseEvent | TouchEvent; }>", "memberType": "property", "memberTags": [ "readonly" @@ -5279,7 +5460,7 @@ }, { "name": "ended", - "type": "any", + "type": "Subject<{ source: DragRef; distance: Point; dropPoint: Point; event: MouseEvent | TouchEvent; }>", "memberType": "property", "memberTags": [ "readonly" @@ -5289,7 +5470,7 @@ }, { "name": "entered", - "type": "any", + "type": "Subject<{ container: DropListRef; item: DragRef; currentIndex: number; }>", "memberType": "property", "memberTags": [ "readonly" @@ -5299,7 +5480,7 @@ }, { "name": "exited", - "type": "any", + "type": "Subject<{ container: DropListRef; item: DragRef; }>", "memberType": "property", "memberTags": [ "readonly" @@ -5309,7 +5490,7 @@ }, { "name": "dropped", - "type": "any", + "type": "Subject<{ previousIndex: number; currentIndex: number; item: DragRef; container: DropListRef; previousContainer: DropListRef; distance: Point; dropPoint: Point; isPointerOverContainer: boolean; event: MouseEvent | TouchEvent; }>", "memberType": "property", "memberTags": [ "readonly" @@ -5458,7 +5639,7 @@ { "name": "handles", "description": "", - "type": "any[]", + "type": "(HTMLElement | ElementRef)[]", "isOptional": false, "isRestParam": false } @@ -5472,7 +5653,7 @@ { "name": "handles", "description": "", - "type": "any[]", + "type": "(HTMLElement | ElementRef)[]", "isOptional": false, "isRestParam": false } @@ -5635,7 +5816,7 @@ { "name": "rootElement", "description": "", - "type": "any", + "type": "HTMLElement | ElementRef", "isOptional": false, "isRestParam": false } @@ -5649,7 +5830,7 @@ { "name": "rootElement", "description": "", - "type": "any", + "type": "HTMLElement | ElementRef", "isOptional": false, "isRestParam": false } @@ -5684,7 +5865,7 @@ { "name": "boundaryElement", "description": "", - "type": "any", + "type": "HTMLElement | ElementRef | null", "isOptional": false, "isRestParam": false } @@ -5698,7 +5879,7 @@ { "name": "boundaryElement", "description": "", - "type": "any", + "type": "HTMLElement | ElementRef | null", "isOptional": false, "isRestParam": false } @@ -6193,7 +6374,7 @@ { "name": "value", "description": "Container into which to insert the preview.", - "type": "any", + "type": "PreviewContainer", "isOptional": false, "isRestParam": false } @@ -6207,7 +6388,7 @@ { "name": "value", "description": "Container into which to insert the preview.", - "type": "any", + "type": "PreviewContainer", "isOptional": false, "isRestParam": false } @@ -6252,7 +6433,7 @@ "source": { "filePath": "/src/cdk/drag-drop/drag-ref.ts", "startLine": 162, - "endLine": 1663 + "endLine": 1662 } } ], diff --git a/adev/src/content/cdk/cdk_testing.json b/adev/src/content/cdk/cdk_testing.json index 7da8dc996e9e..566aca588f0a 100755 --- a/adev/src/content/cdk/cdk_testing.json +++ b/adev/src/content/cdk/cdk_testing.json @@ -6236,9 +6236,7 @@ "name": "harnessType", "type": "ComponentHarnessConstructor", "memberType": "property", - "memberTags": [ - "override" - ], + "memberTags": [], "description": "", "jsdocTags": [] }, diff --git a/adev/src/content/cdk/cdk_testing_protractor.json b/adev/src/content/cdk/cdk_testing_protractor.json index 9ef6126b8926..a8d47d303418 100755 --- a/adev/src/content/cdk/cdk_testing_protractor.json +++ b/adev/src/content/cdk/cdk_testing_protractor.json @@ -350,6 +350,1454 @@ "protected" ] }, + { + "name": "rawRootElement", + "type": "E", + "memberType": "property", + "memberTags": [ + "protected", + "override" + ], + "description": "The native root element of this `HarnessEnvironment`.", + "jsdocTags": [] + }, + { + "name": "rootElement", + "type": "TestElement", + "memberType": "getter", + "memberTags": [ + "override" + ], + "description": "The root element of this `HarnessEnvironment` as a `TestElement`.", + "jsdocTags": [] + }, + { + "name": "rootElement", + "type": "TestElement", + "memberType": "setter", + "memberTags": [ + "override" + ], + "description": "", + "jsdocTags": [] + }, + { + "name": "documentRootLocatorFactory", + "signatures": [ + { + "name": "documentRootLocatorFactory", + "entryType": "function", + "description": "Gets a locator factory rooted at the document root.", + "generics": [], + "isNewType": false, + "jsdocTags": [], + "params": [], + "rawComment": "/** Gets a locator factory rooted at the document root. */", + "returnType": "LocatorFactory" + } + ], + "implementation": { + "params": [], + "isNewType": false, + "returnType": "LocatorFactory", + "generics": [], + "name": "documentRootLocatorFactory", + "description": "Gets a locator factory rooted at the document root.", + "entryType": "function", + "jsdocTags": [], + "rawComment": "/** Gets a locator factory rooted at the document root. */" + }, + "entryType": "function", + "description": "Gets a locator factory rooted at the document root.", + "jsdocTags": [], + "rawComment": "/** Gets a locator factory rooted at the document root. */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "locatorFor", + "signatures": [ + { + "name": "locatorFor", + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query." + } + ], + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */", + "returnType": "() => Promise>" + } + ], + "implementation": { + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "isNewType": false, + "returnType": "() => Promise>", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "name": "locatorFor", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */" + }, + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "locatorForOptional", + "signatures": [ + { + "name": "locatorForOptional", + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironmnet`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null." + } + ], + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironmnet`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */", + "returnType": "() => Promise | null>" + } + ], + "implementation": { + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "isNewType": false, + "returnType": "() => Promise | null>", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "name": "locatorForOptional", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironmnet`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironmnet`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */" + }, + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironmnet`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironmnet`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "locatorForAll", + "signatures": [ + { + "name": "locatorForAll", + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query." + } + ], + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */", + "returnType": "() => Promise[]>" + } + ], + "implementation": { + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "isNewType": false, + "returnType": "() => Promise[]>", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "name": "locatorForAll", + "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */" + }, + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "rootHarnessLoader", + "signatures": [ + { + "name": "rootHarnessLoader", + "entryType": "function", + "description": "", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`." + } + ], + "params": [], + "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "rootHarnessLoader", + "description": "", + "entryType": "function", + "jsdocTags": [ + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`." + } + ], + "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */" + }, + "entryType": "function", + "description": "", + "jsdocTags": [ + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`." + } + ], + "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "harnessLoaderFor", + "signatures": [ + { + "name": "harnessLoaderFor", + "entryType": "function", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector." + }, + { + "name": "throws", + "comment": "If no matching element is found for the given selector." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "harnessLoaderFor", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector." + }, + { + "name": "throws", + "comment": "If no matching element is found for the given selector." + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */" + }, + "entryType": "function", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector." + }, + { + "name": "throws", + "comment": "If no matching element is found for the given selector." + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "harnessLoaderForOptional", + "signatures": [ + { + "name": "harnessLoaderForOptional", + "entryType": "function", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "harnessLoaderForOptional", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found." + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */" + }, + "entryType": "function", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found." + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "harnessLoaderForAll", + "signatures": [ + { + "name": "harnessLoaderForAll", + "entryType": "function", + "description": "Gets a list of `HarnessLoader` instances, one for each matching element.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "harnessLoaderForAll", + "description": "Gets a list of `HarnessLoader` instances, one for each matching element.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector." + } + ], + "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */" + }, + "entryType": "function", + "description": "Gets a list of `HarnessLoader` instances, one for each matching element.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector." + } + ], + "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getHarness", + "signatures": [ + { + "name": "getHarness", + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "getHarness", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */" + }, + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getHarnessOrNull", + "signatures": [ + { + "name": "getHarnessOrNull", + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type (or null if not found)." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "getHarnessOrNull", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type (or null if not found)." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */" + }, + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type (or null if not found)." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getHarnessAtIndex", + "signatures": [ + { + "name": "getHarnessAtIndex", + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type and index\nunder the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\ninstance. The index specifies the offset of the component to find. If no matching\ncomponent is found at that index, an error is thrown.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "param", + "comment": "The zero-indexed offset of the component to find" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + }, + { + "name": "offset", + "description": "", + "type": "number", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type and index\n * under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\n * instance. The index specifies the offset of the component to find. If no matching\n * component is found at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the component to find\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + }, + { + "name": "offset", + "description": "", + "type": "number", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "getHarnessAtIndex", + "description": "Searches for an instance of the component corresponding to the given harness type and index\nunder the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\ninstance. The index specifies the offset of the component to find. If no matching\ncomponent is found at that index, an error is thrown.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "param", + "comment": "The zero-indexed offset of the component to find" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type and index\n * under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\n * instance. The index specifies the offset of the component to find. If no matching\n * component is found at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the component to find\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */" + }, + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type and index\nunder the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\ninstance. The index specifies the offset of the component to find. If no matching\ncomponent is found at that index, an error is thrown.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "param", + "comment": "The zero-indexed offset of the component to find" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type and index\n * under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\n * instance. The index specifies the offset of the component to find. If no matching\n * component is found at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the component to find\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getAllHarnesses", + "signatures": [ + { + "name": "getAllHarnesses", + "entryType": "function", + "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A list instances of the given harness type." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "getAllHarnesses", + "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A list instances of the given harness type." + } + ], + "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */" + }, + "entryType": "function", + "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A list instances of the given harness type." + } + ], + "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "countHarnesses", + "signatures": [ + { + "name": "countHarnesses", + "entryType": "function", + "description": "Searches for all instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns the number that were found.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "The number of instances that were found." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for all instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns the number that were found.\n * @param query A query for a harness to create\n * @return The number of instances that were found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "countHarnesses", + "description": "Searches for all instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns the number that were found.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "The number of instances that were found." + } + ], + "rawComment": "/**\n * Searches for all instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns the number that were found.\n * @param query A query for a harness to create\n * @return The number of instances that were found.\n */" + }, + "entryType": "function", + "description": "Searches for all instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns the number that were found.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "The number of instances that were found." + } + ], + "rawComment": "/**\n * Searches for all instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns the number that were found.\n * @param query A query for a harness to create\n * @return The number of instances that were found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "hasHarness", + "signatures": [ + { + "name": "hasHarness", + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A boolean indicating if an instance was found." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "hasHarness", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A boolean indicating if an instance was found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */" + }, + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A boolean indicating if an instance was found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getChildLoader", + "signatures": [ + { + "name": "getChildLoader", + "entryType": "function", + "description": "Searches for an element with the given selector under the evironment's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the element matching the given selector." + }, + { + "name": "throws", + "comment": "If a matching element can't be found." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element of the new `HarnessLoader`", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an element with the given selector under the evironment's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element of the new `HarnessLoader`", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "getChildLoader", + "description": "Searches for an element with the given selector under the evironment's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the element matching the given selector." + }, + { + "name": "throws", + "comment": "If a matching element can't be found." + } + ], + "rawComment": "/**\n * Searches for an element with the given selector under the evironment's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */" + }, + "entryType": "function", + "description": "Searches for an element with the given selector under the evironment's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the element matching the given selector." + }, + { + "name": "throws", + "comment": "If a matching element can't be found." + } + ], + "rawComment": "/**\n * Searches for an element with the given selector under the evironment's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getAllChildLoaders", + "signatures": [ + { + "name": "getAllChildLoaders", + "entryType": "function", + "description": "Searches for all elements with the given selector under the environment's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element of the new `HarnessLoader`", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for all elements with the given selector under the environment's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element of the new `HarnessLoader`", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "getAllChildLoaders", + "description": "Searches for all elements with the given selector under the environment's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element." + } + ], + "rawComment": "/**\n * Searches for all elements with the given selector under the environment's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */" + }, + "entryType": "function", + "description": "Searches for all elements with the given selector under the environment's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element." + } + ], + "rawComment": "/**\n * Searches for all elements with the given selector under the environment's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "createComponentHarness", + "signatures": [ + { + "name": "createComponentHarness", + "entryType": "function", + "description": "Creates a `ComponentHarness` for the given harness type with the given raw host element.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [], + "params": [ + { + "name": "harnessType", + "description": "", + "type": "ComponentHarnessConstructor", + "isOptional": false, + "isRestParam": false + }, + { + "name": "element", + "description": "", + "type": "E", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */", + "returnType": "T" + } + ], + "implementation": { + "params": [ + { + "name": "harnessType", + "description": "", + "type": "ComponentHarnessConstructor", + "isOptional": false, + "isRestParam": false + }, + { + "name": "element", + "description": "", + "type": "E", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "T", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "createComponentHarness", + "description": "Creates a `ComponentHarness` for the given harness type with the given raw host element.", + "entryType": "function", + "jsdocTags": [], + "rawComment": "/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */" + }, + "entryType": "function", + "description": "Creates a `ComponentHarness` for the given harness type with the given raw host element.", + "jsdocTags": [], + "rawComment": "/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */", + "memberType": "method", + "memberTags": [ + "protected", + "override" + ] + }, { "name": "loader", "signatures": [ @@ -588,7 +2036,7 @@ { "name": "modifiers", "description": "", - "type": "any", + "type": "ModifierKeys | undefined", "isOptional": true, "isRestParam": false } @@ -614,7 +2062,7 @@ { "name": "modifiers", "description": "", - "type": "any", + "type": "ModifierKeys | undefined", "isOptional": true, "isRestParam": false } @@ -660,7 +2108,7 @@ { "name": "modifiers", "description": "Modifier keys held while clicking", - "type": "any", + "type": "ModifierKeys | undefined", "isOptional": true, "isRestParam": false } @@ -674,7 +2122,7 @@ { "name": "args", "description": "", - "type": "[any?] | [\"center\", any?] | [number, number, any?]", + "type": "[(ModifierKeys | undefined)?] | [\"center\", (ModifierKeys | undefined)?] | [number, number, (ModifierKeys | undefined)?]", "isOptional": false, "isRestParam": true } @@ -736,7 +2184,7 @@ { "name": "modifiers", "description": "Modifier keys held while clicking", - "type": "any", + "type": "ModifierKeys | undefined", "isOptional": true, "isRestParam": false } @@ -750,7 +2198,7 @@ { "name": "args", "description": "", - "type": "[any?] | [\"center\", any?] | [number, number, any?]", + "type": "[(ModifierKeys | undefined)?] | [\"center\", (ModifierKeys | undefined)?] | [number, number, (ModifierKeys | undefined)?]", "isOptional": false, "isRestParam": true } @@ -946,7 +2394,7 @@ { "name": "keys", "description": "", - "type": "any[]", + "type": "(string | TestKey)[]", "isOptional": false, "isRestParam": true } @@ -972,7 +2420,7 @@ { "name": "keys", "description": "", - "type": "any[]", + "type": "(string | TestKey)[]", "isOptional": false, "isRestParam": true } @@ -1026,7 +2474,7 @@ { "name": "options", "description": "Options that affect what text is included.", - "type": "any", + "type": "TextOptions | undefined", "isOptional": true, "isRestParam": false } @@ -1040,7 +2488,7 @@ { "name": "options", "description": "Options that affect what text is included.", - "type": "any", + "type": "TextOptions | undefined", "isOptional": true, "isRestParam": false } @@ -1660,6 +3108,86 @@ "ProtractorHarnessEnvironment.getAllRawElements", "@angular/cdk/testing/protractor" ], + [ + "ProtractorHarnessEnvironment.rawRootElement", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.rootElement", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.rootElement", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.documentRootLocatorFactory", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.locatorFor", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.locatorForOptional", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.locatorForAll", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.rootHarnessLoader", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.harnessLoaderFor", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.harnessLoaderForOptional", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.harnessLoaderForAll", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.getHarness", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.getHarnessOrNull", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.getHarnessAtIndex", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.getAllHarnesses", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.countHarnesses", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.hasHarness", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.getChildLoader", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.getAllChildLoaders", + "@angular/cdk/testing/protractor" + ], + [ + "ProtractorHarnessEnvironment.createComponentHarness", + "@angular/cdk/testing/protractor" + ], [ "ProtractorHarnessEnvironment.loader", "@angular/cdk/testing/protractor" diff --git a/adev/src/content/cdk/cdk_testing_selenium_webdriver.json b/adev/src/content/cdk/cdk_testing_selenium_webdriver.json index d6e10bcd809b..7f8165a6d2ec 100755 --- a/adev/src/content/cdk/cdk_testing_selenium_webdriver.json +++ b/adev/src/content/cdk/cdk_testing_selenium_webdriver.json @@ -125,7 +125,7 @@ { "name": "modifiers", "description": "", - "type": "any", + "type": "ModifierKeys | undefined", "isOptional": true, "isRestParam": false } @@ -151,7 +151,7 @@ { "name": "modifiers", "description": "", - "type": "any", + "type": "ModifierKeys | undefined", "isOptional": true, "isRestParam": false } @@ -197,7 +197,7 @@ { "name": "modifiers", "description": "Modifier keys held while clicking", - "type": "any", + "type": "ModifierKeys | undefined", "isOptional": true, "isRestParam": false } @@ -211,7 +211,7 @@ { "name": "args", "description": "", - "type": "[any?] | [\"center\", any?] | [number, number, any?]", + "type": "[(ModifierKeys | undefined)?] | [\"center\", (ModifierKeys | undefined)?] | [number, number, (ModifierKeys | undefined)?]", "isOptional": false, "isRestParam": true } @@ -273,7 +273,7 @@ { "name": "modifiers", "description": "Modifier keys held while clicking", - "type": "any", + "type": "ModifierKeys | undefined", "isOptional": true, "isRestParam": false } @@ -287,7 +287,7 @@ { "name": "args", "description": "", - "type": "[any?] | [\"center\", any?] | [number, number, any?]", + "type": "[(ModifierKeys | undefined)?] | [\"center\", (ModifierKeys | undefined)?] | [number, number, (ModifierKeys | undefined)?]", "isOptional": false, "isRestParam": true } @@ -483,7 +483,7 @@ { "name": "keys", "description": "", - "type": "any[]", + "type": "(string | TestKey)[]", "isOptional": false, "isRestParam": true } @@ -509,7 +509,7 @@ { "name": "keys", "description": "", - "type": "any[]", + "type": "(string | TestKey)[]", "isOptional": false, "isRestParam": true } @@ -563,7 +563,7 @@ { "name": "options", "description": "Options that affect what text is included.", - "type": "any", + "type": "TextOptions | undefined", "isOptional": true, "isRestParam": false } @@ -577,7 +577,7 @@ { "name": "options", "description": "Options that affect what text is included.", - "type": "any", + "type": "TextOptions | undefined", "isOptional": true, "isRestParam": false } @@ -1523,6 +1523,1454 @@ "protected" ] }, + { + "name": "rawRootElement", + "type": "E", + "memberType": "property", + "memberTags": [ + "protected", + "override" + ], + "description": "The native root element of this `HarnessEnvironment`.", + "jsdocTags": [] + }, + { + "name": "rootElement", + "type": "TestElement", + "memberType": "getter", + "memberTags": [ + "override" + ], + "description": "The root element of this `HarnessEnvironment` as a `TestElement`.", + "jsdocTags": [] + }, + { + "name": "rootElement", + "type": "TestElement", + "memberType": "setter", + "memberTags": [ + "override" + ], + "description": "", + "jsdocTags": [] + }, + { + "name": "documentRootLocatorFactory", + "signatures": [ + { + "name": "documentRootLocatorFactory", + "entryType": "function", + "description": "Gets a locator factory rooted at the document root.", + "generics": [], + "isNewType": false, + "jsdocTags": [], + "params": [], + "rawComment": "/** Gets a locator factory rooted at the document root. */", + "returnType": "LocatorFactory" + } + ], + "implementation": { + "params": [], + "isNewType": false, + "returnType": "LocatorFactory", + "generics": [], + "name": "documentRootLocatorFactory", + "description": "Gets a locator factory rooted at the document root.", + "entryType": "function", + "jsdocTags": [], + "rawComment": "/** Gets a locator factory rooted at the document root. */" + }, + "entryType": "function", + "description": "Gets a locator factory rooted at the document root.", + "jsdocTags": [], + "rawComment": "/** Gets a locator factory rooted at the document root. */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "locatorFor", + "signatures": [ + { + "name": "locatorFor", + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query." + } + ], + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */", + "returnType": "() => Promise>" + } + ], + "implementation": { + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "isNewType": false, + "returnType": "() => Promise>", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "name": "locatorFor", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */" + }, + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "locatorForOptional", + "signatures": [ + { + "name": "locatorForOptional", + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironmnet`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null." + } + ], + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironmnet`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */", + "returnType": "() => Promise | null>" + } + ], + "implementation": { + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "isNewType": false, + "returnType": "() => Promise | null>", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "name": "locatorForOptional", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironmnet`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironmnet`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */" + }, + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironmnet`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironmnet`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "locatorForAll", + "signatures": [ + { + "name": "locatorForAll", + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query." + } + ], + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */", + "returnType": "() => Promise[]>" + } + ], + "implementation": { + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "isNewType": false, + "returnType": "() => Promise[]>", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "name": "locatorForAll", + "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */" + }, + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "rootHarnessLoader", + "signatures": [ + { + "name": "rootHarnessLoader", + "entryType": "function", + "description": "", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`." + } + ], + "params": [], + "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "rootHarnessLoader", + "description": "", + "entryType": "function", + "jsdocTags": [ + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`." + } + ], + "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */" + }, + "entryType": "function", + "description": "", + "jsdocTags": [ + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`." + } + ], + "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "harnessLoaderFor", + "signatures": [ + { + "name": "harnessLoaderFor", + "entryType": "function", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector." + }, + { + "name": "throws", + "comment": "If no matching element is found for the given selector." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "harnessLoaderFor", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector." + }, + { + "name": "throws", + "comment": "If no matching element is found for the given selector." + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */" + }, + "entryType": "function", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector." + }, + { + "name": "throws", + "comment": "If no matching element is found for the given selector." + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "harnessLoaderForOptional", + "signatures": [ + { + "name": "harnessLoaderForOptional", + "entryType": "function", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "harnessLoaderForOptional", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found." + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */" + }, + "entryType": "function", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found." + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "harnessLoaderForAll", + "signatures": [ + { + "name": "harnessLoaderForAll", + "entryType": "function", + "description": "Gets a list of `HarnessLoader` instances, one for each matching element.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "harnessLoaderForAll", + "description": "Gets a list of `HarnessLoader` instances, one for each matching element.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector." + } + ], + "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */" + }, + "entryType": "function", + "description": "Gets a list of `HarnessLoader` instances, one for each matching element.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector." + } + ], + "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getHarness", + "signatures": [ + { + "name": "getHarness", + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "getHarness", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */" + }, + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getHarnessOrNull", + "signatures": [ + { + "name": "getHarnessOrNull", + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type (or null if not found)." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "getHarnessOrNull", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type (or null if not found)." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */" + }, + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type (or null if not found)." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getHarnessAtIndex", + "signatures": [ + { + "name": "getHarnessAtIndex", + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type and index\nunder the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\ninstance. The index specifies the offset of the component to find. If no matching\ncomponent is found at that index, an error is thrown.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "param", + "comment": "The zero-indexed offset of the component to find" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + }, + { + "name": "offset", + "description": "", + "type": "number", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type and index\n * under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\n * instance. The index specifies the offset of the component to find. If no matching\n * component is found at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the component to find\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + }, + { + "name": "offset", + "description": "", + "type": "number", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "getHarnessAtIndex", + "description": "Searches for an instance of the component corresponding to the given harness type and index\nunder the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\ninstance. The index specifies the offset of the component to find. If no matching\ncomponent is found at that index, an error is thrown.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "param", + "comment": "The zero-indexed offset of the component to find" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type and index\n * under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\n * instance. The index specifies the offset of the component to find. If no matching\n * component is found at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the component to find\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */" + }, + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type and index\nunder the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\ninstance. The index specifies the offset of the component to find. If no matching\ncomponent is found at that index, an error is thrown.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "param", + "comment": "The zero-indexed offset of the component to find" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type and index\n * under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\n * instance. The index specifies the offset of the component to find. If no matching\n * component is found at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the component to find\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getAllHarnesses", + "signatures": [ + { + "name": "getAllHarnesses", + "entryType": "function", + "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A list instances of the given harness type." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "getAllHarnesses", + "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A list instances of the given harness type." + } + ], + "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */" + }, + "entryType": "function", + "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A list instances of the given harness type." + } + ], + "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "countHarnesses", + "signatures": [ + { + "name": "countHarnesses", + "entryType": "function", + "description": "Searches for all instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns the number that were found.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "The number of instances that were found." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for all instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns the number that were found.\n * @param query A query for a harness to create\n * @return The number of instances that were found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "countHarnesses", + "description": "Searches for all instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns the number that were found.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "The number of instances that were found." + } + ], + "rawComment": "/**\n * Searches for all instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns the number that were found.\n * @param query A query for a harness to create\n * @return The number of instances that were found.\n */" + }, + "entryType": "function", + "description": "Searches for all instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns the number that were found.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "The number of instances that were found." + } + ], + "rawComment": "/**\n * Searches for all instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns the number that were found.\n * @param query A query for a harness to create\n * @return The number of instances that were found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "hasHarness", + "signatures": [ + { + "name": "hasHarness", + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A boolean indicating if an instance was found." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "hasHarness", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A boolean indicating if an instance was found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */" + }, + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A boolean indicating if an instance was found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getChildLoader", + "signatures": [ + { + "name": "getChildLoader", + "entryType": "function", + "description": "Searches for an element with the given selector under the evironment's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the element matching the given selector." + }, + { + "name": "throws", + "comment": "If a matching element can't be found." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element of the new `HarnessLoader`", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an element with the given selector under the evironment's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element of the new `HarnessLoader`", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "getChildLoader", + "description": "Searches for an element with the given selector under the evironment's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the element matching the given selector." + }, + { + "name": "throws", + "comment": "If a matching element can't be found." + } + ], + "rawComment": "/**\n * Searches for an element with the given selector under the evironment's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */" + }, + "entryType": "function", + "description": "Searches for an element with the given selector under the evironment's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the element matching the given selector." + }, + { + "name": "throws", + "comment": "If a matching element can't be found." + } + ], + "rawComment": "/**\n * Searches for an element with the given selector under the evironment's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getAllChildLoaders", + "signatures": [ + { + "name": "getAllChildLoaders", + "entryType": "function", + "description": "Searches for all elements with the given selector under the environment's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element of the new `HarnessLoader`", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for all elements with the given selector under the environment's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element of the new `HarnessLoader`", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "getAllChildLoaders", + "description": "Searches for all elements with the given selector under the environment's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element." + } + ], + "rawComment": "/**\n * Searches for all elements with the given selector under the environment's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */" + }, + "entryType": "function", + "description": "Searches for all elements with the given selector under the environment's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element." + } + ], + "rawComment": "/**\n * Searches for all elements with the given selector under the environment's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "createComponentHarness", + "signatures": [ + { + "name": "createComponentHarness", + "entryType": "function", + "description": "Creates a `ComponentHarness` for the given harness type with the given raw host element.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [], + "params": [ + { + "name": "harnessType", + "description": "", + "type": "ComponentHarnessConstructor", + "isOptional": false, + "isRestParam": false + }, + { + "name": "element", + "description": "", + "type": "E", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */", + "returnType": "T" + } + ], + "implementation": { + "params": [ + { + "name": "harnessType", + "description": "", + "type": "ComponentHarnessConstructor", + "isOptional": false, + "isRestParam": false + }, + { + "name": "element", + "description": "", + "type": "E", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "T", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "createComponentHarness", + "description": "Creates a `ComponentHarness` for the given harness type with the given raw host element.", + "entryType": "function", + "jsdocTags": [], + "rawComment": "/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */" + }, + "entryType": "function", + "description": "Creates a `ComponentHarness` for the given harness type with the given raw host element.", + "jsdocTags": [], + "rawComment": "/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */", + "memberType": "method", + "memberTags": [ + "protected", + "override" + ] + }, { "name": "getNativeElement", "signatures": [ @@ -1802,6 +3250,86 @@ "SeleniumWebDriverHarnessEnvironment.getAllRawElements", "@angular/cdk/testing/selenium-webdriver" ], + [ + "SeleniumWebDriverHarnessEnvironment.rawRootElement", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.rootElement", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.rootElement", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.documentRootLocatorFactory", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.locatorFor", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.locatorForOptional", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.locatorForAll", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.rootHarnessLoader", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.harnessLoaderFor", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.harnessLoaderForOptional", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.harnessLoaderForAll", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.getHarness", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.getHarnessOrNull", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.getHarnessAtIndex", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.getAllHarnesses", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.countHarnesses", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.hasHarness", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.getChildLoader", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.getAllChildLoaders", + "@angular/cdk/testing/selenium-webdriver" + ], + [ + "SeleniumWebDriverHarnessEnvironment.createComponentHarness", + "@angular/cdk/testing/selenium-webdriver" + ], [ "SeleniumWebDriverHarnessEnvironment.getNativeElement", "@angular/cdk/testing/selenium-webdriver" diff --git a/adev/src/content/cdk/cdk_testing_testbed.json b/adev/src/content/cdk/cdk_testing_testbed.json index 7e61d2519567..3f95b9df4665 100755 --- a/adev/src/content/cdk/cdk_testing_testbed.json +++ b/adev/src/content/cdk/cdk_testing_testbed.json @@ -29,6 +29,26 @@ "endLine": 28 } }, + { + "name": "Fixture", + "type": "ComponentFixture | DirectiveFixture", + "entryType": "type_alias", + "generics": [ + { + "name": "T", + "default": "unknown" + } + ], + "rawComment": "/** Covers all fixtures supported by `TestBed`. */", + "description": "Covers all fixtures supported by `TestBed`.", + "jsdocTags": [], + "members": [], + "source": { + "filePath": "/src/cdk/testing/testbed/testbed-harness-environment.ts", + "startLine": 36, + "endLine": 36 + } + }, { "name": "TestbedHarnessEnvironment", "isAbstract": false, @@ -49,7 +69,7 @@ { "name": "_fixture", "description": "", - "type": "ComponentFixture", + "type": "Fixture", "isOptional": false, "isRestParam": false }, @@ -161,176 +181,1624 @@ } ], "implementation": { - "params": [], + "params": [], + "isNewType": false, + "returnType": "Element", + "generics": [], + "name": "getDocumentRoot", + "description": "Gets the root element for the document.", + "entryType": "function", + "jsdocTags": [], + "rawComment": "/** Gets the root element for the document. */" + }, + "entryType": "function", + "description": "Gets the root element for the document.", + "jsdocTags": [], + "rawComment": "/** Gets the root element for the document. */", + "memberType": "method", + "memberTags": [ + "protected" + ] + }, + { + "name": "createTestElement", + "signatures": [ + { + "name": "createTestElement", + "entryType": "function", + "description": "Creates a `TestElement` from a raw element.", + "generics": [], + "isNewType": false, + "jsdocTags": [], + "params": [ + { + "name": "element", + "description": "", + "type": "Element", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/** Creates a `TestElement` from a raw element. */", + "returnType": "TestElement" + } + ], + "implementation": { + "params": [ + { + "name": "element", + "description": "", + "type": "Element", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "TestElement", + "generics": [], + "name": "createTestElement", + "description": "Creates a `TestElement` from a raw element.", + "entryType": "function", + "jsdocTags": [], + "rawComment": "/** Creates a `TestElement` from a raw element. */" + }, + "entryType": "function", + "description": "Creates a `TestElement` from a raw element.", + "jsdocTags": [], + "rawComment": "/** Creates a `TestElement` from a raw element. */", + "memberType": "method", + "memberTags": [ + "protected" + ] + }, + { + "name": "createEnvironment", + "signatures": [ + { + "name": "createEnvironment", + "entryType": "function", + "description": "Creates a `HarnessLoader` rooted at the given raw element.", + "generics": [], + "isNewType": false, + "jsdocTags": [], + "params": [ + { + "name": "element", + "description": "", + "type": "Element", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/** Creates a `HarnessLoader` rooted at the given raw element. */", + "returnType": "HarnessEnvironment" + } + ], + "implementation": { + "params": [ + { + "name": "element", + "description": "", + "type": "Element", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "HarnessEnvironment", + "generics": [], + "name": "createEnvironment", + "description": "Creates a `HarnessLoader` rooted at the given raw element.", + "entryType": "function", + "jsdocTags": [], + "rawComment": "/** Creates a `HarnessLoader` rooted at the given raw element. */" + }, + "entryType": "function", + "description": "Creates a `HarnessLoader` rooted at the given raw element.", + "jsdocTags": [], + "rawComment": "/** Creates a `HarnessLoader` rooted at the given raw element. */", + "memberType": "method", + "memberTags": [ + "protected" + ] + }, + { + "name": "getAllRawElements", + "signatures": [ + { + "name": "getAllRawElements", + "entryType": "function", + "description": "Gets a list of all elements matching the given selector under this environment's root element.", + "generics": [], + "isNewType": false, + "jsdocTags": [], + "params": [ + { + "name": "selector", + "description": "", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Gets a list of all elements matching the given selector under this environment's root element.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "getAllRawElements", + "description": "Gets a list of all elements matching the given selector under this environment's root element.", + "entryType": "function", + "jsdocTags": [], + "rawComment": "/**\n * Gets a list of all elements matching the given selector under this environment's root element.\n */" + }, + "entryType": "function", + "description": "Gets a list of all elements matching the given selector under this environment's root element.", + "jsdocTags": [], + "rawComment": "/**\n * Gets a list of all elements matching the given selector under this environment's root element.\n */", + "memberType": "method", + "memberTags": [ + "protected" + ] + }, + { + "name": "rawRootElement", + "type": "E", + "memberType": "property", + "memberTags": [ + "protected", + "override" + ], + "description": "The native root element of this `HarnessEnvironment`.", + "jsdocTags": [] + }, + { + "name": "rootElement", + "type": "TestElement", + "memberType": "getter", + "memberTags": [ + "override" + ], + "description": "The root element of this `HarnessEnvironment` as a `TestElement`.", + "jsdocTags": [] + }, + { + "name": "rootElement", + "type": "TestElement", + "memberType": "setter", + "memberTags": [ + "override" + ], + "description": "", + "jsdocTags": [] + }, + { + "name": "documentRootLocatorFactory", + "signatures": [ + { + "name": "documentRootLocatorFactory", + "entryType": "function", + "description": "Gets a locator factory rooted at the document root.", + "generics": [], + "isNewType": false, + "jsdocTags": [], + "params": [], + "rawComment": "/** Gets a locator factory rooted at the document root. */", + "returnType": "LocatorFactory" + } + ], + "implementation": { + "params": [], + "isNewType": false, + "returnType": "LocatorFactory", + "generics": [], + "name": "documentRootLocatorFactory", + "description": "Gets a locator factory rooted at the document root.", + "entryType": "function", + "jsdocTags": [], + "rawComment": "/** Gets a locator factory rooted at the document root. */" + }, + "entryType": "function", + "description": "Gets a locator factory rooted at the document root.", + "jsdocTags": [], + "rawComment": "/** Gets a locator factory rooted at the document root. */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "locatorFor", + "signatures": [ + { + "name": "locatorFor", + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query." + } + ], + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */", + "returnType": "() => Promise>" + } + ], + "implementation": { + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "isNewType": false, + "returnType": "() => Promise>", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "name": "locatorFor", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */" + }, + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorFor('span')() // Throws because the `Promise` rejects\n```", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\neach query." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorFor(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorFor('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorFor('span')() // Throws because the `Promise` rejects\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` rejects. The type that the `Promise` resolves to is a union of all result types for\n * each query.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "locatorForOptional", + "signatures": [ + { + "name": "locatorForOptional", + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironmnet`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null." + } + ], + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironmnet`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */", + "returnType": "() => Promise | null>" + } + ], + "implementation": { + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "isNewType": false, + "returnType": "() => Promise | null>", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "name": "locatorForOptional", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironmnet`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironmnet`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */" + }, + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\nor element under the root element of this `HarnessEnvironmnet`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\nawait lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\nawait lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\nawait lf.locatorForOptional('span')() // Gets `null`\n```", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for the\nfirst element or harness matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If no matches are found, the\n`Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\nresult types for each query or null." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find a `ComponentHarness` instance\n * or element under the root element of this `HarnessEnvironmnet`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * await lf.locatorForOptional(DivHarness, 'div')() // Gets a `DivHarness` instance for #d1\n * await lf.locatorForOptional('div', DivHarness)() // Gets a `TestElement` instance for #d1\n * await lf.locatorForOptional('span')() // Gets `null`\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for the\n * first element or harness matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If no matches are found, the\n * `Promise` is resolved with `null`. The type that the `Promise` resolves to is a union of all\n * result types for each query or null.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "locatorForAll", + "signatures": [ + { + "name": "locatorForAll", + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query." + } + ], + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */", + "returnType": "() => Promise[]>" + } + ], + "implementation": { + "params": [ + { + "name": "queries", + "description": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate.", + "type": "T", + "isOptional": false, + "isRestParam": true + } + ], + "isNewType": false, + "returnType": "() => Promise[]>", + "generics": [ + { + "name": "T", + "constraint": "(HarnessQuery | string)[]" + } + ], + "name": "locatorForAll", + "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */" + }, + "entryType": "function", + "description": "Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\nor elements under the root element of this `HarnessEnvironment`.\n\nFor example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n`IdIsD1Harness.hostSelector` is `'#d1'`\n\n```html\n
    \n```\n\nthen we expect:\n\n```ts\n// Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\nawait lf.locatorForAll(DivHarness, 'div')()\n// Gets [TestElement for #d1, TestElement for #d2]\nawait lf.locatorForAll('div', '#d1')()\n// Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\nawait lf.locatorForAll(DivHarness, IdIsD1Harness)()\n// Gets []\nawait lf.locatorForAll('span')()\n```", + "jsdocTags": [ + { + "name": "param", + "comment": "A list of queries specifying which harnesses and elements to search for:\n- A `string` searches for elements matching the CSS selector specified by the string.\n- A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\ngiven class.\n- A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\npredicate." + }, + { + "name": "return", + "comment": "An asynchronous locator function that searches for and returns a `Promise` for all\nelements and harnesses matching the given search criteria. Matches are ordered first by\norder in the DOM, and second by order in the queries list. If an element matches more than\none `ComponentHarness` class, the locator gets an instance of each for the same element. If\nan element matches multiple `string` selectors, only one `TestElement` instance is returned\nfor that element. The type that the `Promise` resolves to is an array where each element is\nthe union of all result types for each query." + } + ], + "rawComment": "/**\n * Creates an asynchronous locator function that can be used to find `ComponentHarness` instances\n * or elements under the root element of this `HarnessEnvironment`.\n *\n * For example, given the following DOM and assuming `DivHarness.hostSelector` is `'div'` and\n * `IdIsD1Harness.hostSelector` is `'#d1'`\n *\n * ```html\n *
    \n * ```\n *\n * then we expect:\n *\n * ```ts\n * // Gets [DivHarness for #d1, TestElement for #d1, DivHarness for #d2, TestElement for #d2]\n * await lf.locatorForAll(DivHarness, 'div')()\n * // Gets [TestElement for #d1, TestElement for #d2]\n * await lf.locatorForAll('div', '#d1')()\n * // Gets [DivHarness for #d1, IdIsD1Harness for #d1, DivHarness for #d2]\n * await lf.locatorForAll(DivHarness, IdIsD1Harness)()\n * // Gets []\n * await lf.locatorForAll('span')()\n * ```\n *\n * @param queries A list of queries specifying which harnesses and elements to search for:\n * - A `string` searches for elements matching the CSS selector specified by the string.\n * - A `ComponentHarness` constructor searches for `ComponentHarness` instances matching the\n * given class.\n * - A `HarnessPredicate` searches for `ComponentHarness` instances matching the given\n * predicate.\n * @return An asynchronous locator function that searches for and returns a `Promise` for all\n * elements and harnesses matching the given search criteria. Matches are ordered first by\n * order in the DOM, and second by order in the queries list. If an element matches more than\n * one `ComponentHarness` class, the locator gets an instance of each for the same element. If\n * an element matches multiple `string` selectors, only one `TestElement` instance is returned\n * for that element. The type that the `Promise` resolves to is an array where each element is\n * the union of all result types for each query.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "rootHarnessLoader", + "signatures": [ + { + "name": "rootHarnessLoader", + "entryType": "function", + "description": "", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`." + } + ], + "params": [], + "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "rootHarnessLoader", + "description": "", + "entryType": "function", + "jsdocTags": [ + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`." + } + ], + "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */" + }, + "entryType": "function", + "description": "", + "jsdocTags": [ + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`." + } + ], + "rawComment": "/** @return A `HarnessLoader` rooted at the root element of this `HarnessEnvironment`. */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "harnessLoaderFor", + "signatures": [ + { + "name": "harnessLoaderFor", + "entryType": "function", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector." + }, + { + "name": "throws", + "comment": "If no matching element is found for the given selector." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "harnessLoaderFor", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector." + }, + { + "name": "throws", + "comment": "If no matching element is found for the given selector." + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */" + }, + "entryType": "function", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector." + }, + { + "name": "throws", + "comment": "If no matching element is found for the given selector." + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector.\n * @throws If no matching element is found for the given selector.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "harnessLoaderForOptional", + "signatures": [ + { + "name": "harnessLoaderForOptional", + "entryType": "function", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "harnessLoaderForOptional", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found." + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */" + }, + "entryType": "function", + "description": "Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the first element matching the given selector, or null if\nno matching element is found." + } + ], + "rawComment": "/**\n * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`.\n * @param selector The selector for the root element.\n * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if\n * no matching element is found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "harnessLoaderForAll", + "signatures": [ + { + "name": "harnessLoaderForAll", + "entryType": "function", + "description": "Gets a list of `HarnessLoader` instances, one for each matching element.", + "generics": [], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector." + } + ], + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "selector", + "description": "The selector for the root element.", + "type": "string", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [], + "name": "harnessLoaderForAll", + "description": "Gets a list of `HarnessLoader` instances, one for each matching element.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector." + } + ], + "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */" + }, + "entryType": "function", + "description": "Gets a list of `HarnessLoader` instances, one for each matching element.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element." + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`, one rooted at each element matching the given selector." + } + ], + "rawComment": "/**\n * Gets a list of `HarnessLoader` instances, one for each matching element.\n * @param selector The selector for the root element.\n * @return A list of `HarnessLoader`, one rooted at each element matching the given selector.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getHarness", + "signatures": [ + { + "name": "getHarness", + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "getHarness", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */" + }, + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, an error is thrown.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, an error is thrown.\n * @param query A query for a harness to create\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getHarnessOrNull", + "signatures": [ + { + "name": "getHarnessOrNull", + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type (or null if not found)." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "getHarnessOrNull", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type (or null if not found)." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */" + }, + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\nmultiple matching components are found, a harness for the first one is returned. If no matching\ncomponent is found, null is returned.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "An instance of the given harness type (or null if not found)." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that instance. If\n * multiple matching components are found, a harness for the first one is returned. If no matching\n * component is found, null is returned.\n * @param query A query for a harness to create\n * @return An instance of the given harness type (or null if not found).\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getHarnessAtIndex", + "signatures": [ + { + "name": "getHarnessAtIndex", + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type and index\nunder the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\ninstance. The index specifies the offset of the component to find. If no matching\ncomponent is found at that index, an error is thrown.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "param", + "comment": "The zero-indexed offset of the component to find" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + }, + { + "name": "offset", + "description": "", + "type": "number", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type and index\n * under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\n * instance. The index specifies the offset of the component to find. If no matching\n * component is found at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the component to find\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + }, + { + "name": "offset", + "description": "", + "type": "number", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "getHarnessAtIndex", + "description": "Searches for an instance of the component corresponding to the given harness type and index\nunder the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\ninstance. The index specifies the offset of the component to find. If no matching\ncomponent is found at that index, an error is thrown.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "param", + "comment": "The zero-indexed offset of the component to find" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type and index\n * under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\n * instance. The index specifies the offset of the component to find. If no matching\n * component is found at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the component to find\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */" + }, + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type and index\nunder the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\ninstance. The index specifies the offset of the component to find. If no matching\ncomponent is found at that index, an error is thrown.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "param", + "comment": "The zero-indexed offset of the component to find" + }, + { + "name": "return", + "comment": "An instance of the given harness type" + }, + { + "name": "throws", + "comment": "If a matching component instance can't be found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type and index\n * under the `HarnessEnvironment`'s root element, and returns a `ComponentHarness` for that\n * instance. The index specifies the offset of the component to find. If no matching\n * component is found at that index, an error is thrown.\n * @param query A query for a harness to create\n * @param index The zero-indexed offset of the component to find\n * @return An instance of the given harness type\n * @throws If a matching component instance can't be found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "getAllHarnesses", + "signatures": [ + { + "name": "getAllHarnesses", + "entryType": "function", + "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A list instances of the given harness type." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "getAllHarnesses", + "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A list instances of the given harness type." + } + ], + "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */" + }, + "entryType": "function", + "description": "Searches for all instances of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A list instances of the given harness type." + } + ], + "rawComment": "/**\n * Searches for all instances of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a list `ComponentHarness` for each instance.\n * @param query A query for a harness to create\n * @return A list instances of the given harness type.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "countHarnesses", + "signatures": [ + { + "name": "countHarnesses", + "entryType": "function", + "description": "Searches for all instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns the number that were found.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "The number of instances that were found." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for all instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns the number that were found.\n * @param query A query for a harness to create\n * @return The number of instances that were found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "isNewType": false, + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "countHarnesses", + "description": "Searches for all instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns the number that were found.", + "entryType": "function", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "The number of instances that were found." + } + ], + "rawComment": "/**\n * Searches for all instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns the number that were found.\n * @param query A query for a harness to create\n * @return The number of instances that were found.\n */" + }, + "entryType": "function", + "description": "Searches for all instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns the number that were found.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "The number of instances that were found." + } + ], + "rawComment": "/**\n * Searches for all instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns the number that were found.\n * @param query A query for a harness to create\n * @return The number of instances that were found.\n */", + "memberType": "method", + "memberTags": [ + "override" + ] + }, + { + "name": "hasHarness", + "signatures": [ + { + "name": "hasHarness", + "entryType": "function", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "isNewType": false, + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A boolean indicating if an instance was found." + } + ], + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */", + "returnType": "Promise" + } + ], + "implementation": { + "params": [ + { + "name": "query", + "description": "A query for a harness to create", + "type": "HarnessQuery", + "isOptional": false, + "isRestParam": false + } + ], "isNewType": false, - "returnType": "Element", - "generics": [], - "name": "getDocumentRoot", - "description": "Gets the root element for the document.", + "returnType": "Promise", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "hasHarness", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.", "entryType": "function", - "jsdocTags": [], - "rawComment": "/** Gets the root element for the document. */" + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A boolean indicating if an instance was found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */" }, "entryType": "function", - "description": "Gets the root element for the document.", - "jsdocTags": [], - "rawComment": "/** Gets the root element for the document. */", + "description": "Searches for an instance of the component corresponding to the given harness type under the\n`HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.", + "jsdocTags": [ + { + "name": "param", + "comment": "A query for a harness to create" + }, + { + "name": "return", + "comment": "A boolean indicating if an instance was found." + } + ], + "rawComment": "/**\n * Searches for an instance of the component corresponding to the given harness type under the\n * `HarnessEnvironment`'s root element, and returns a boolean indicating if any were found.\n * @param query A query for a harness to create\n * @return A boolean indicating if an instance was found.\n */", "memberType": "method", "memberTags": [ - "protected" + "override" ] }, { - "name": "createTestElement", + "name": "getChildLoader", "signatures": [ { - "name": "createTestElement", + "name": "getChildLoader", "entryType": "function", - "description": "Creates a `TestElement` from a raw element.", + "description": "Searches for an element with the given selector under the evironment's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.", "generics": [], "isNewType": false, - "jsdocTags": [], + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the element matching the given selector." + }, + { + "name": "throws", + "comment": "If a matching element can't be found." + } + ], "params": [ { - "name": "element", - "description": "", - "type": "Element", + "name": "selector", + "description": "The selector for the root element of the new `HarnessLoader`", + "type": "string", "isOptional": false, "isRestParam": false } ], - "rawComment": "/** Creates a `TestElement` from a raw element. */", - "returnType": "TestElement" + "rawComment": "/**\n * Searches for an element with the given selector under the evironment's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */", + "returnType": "Promise" } ], "implementation": { "params": [ { - "name": "element", - "description": "", - "type": "Element", + "name": "selector", + "description": "The selector for the root element of the new `HarnessLoader`", + "type": "string", "isOptional": false, "isRestParam": false } ], "isNewType": false, - "returnType": "TestElement", + "returnType": "Promise", "generics": [], - "name": "createTestElement", - "description": "Creates a `TestElement` from a raw element.", + "name": "getChildLoader", + "description": "Searches for an element with the given selector under the evironment's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.", "entryType": "function", - "jsdocTags": [], - "rawComment": "/** Creates a `TestElement` from a raw element. */" + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the element matching the given selector." + }, + { + "name": "throws", + "comment": "If a matching element can't be found." + } + ], + "rawComment": "/**\n * Searches for an element with the given selector under the evironment's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */" }, "entryType": "function", - "description": "Creates a `TestElement` from a raw element.", - "jsdocTags": [], - "rawComment": "/** Creates a `TestElement` from a raw element. */", + "description": "Searches for an element with the given selector under the evironment's root element,\nand returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\nselector, the first is used. If no elements match, an error is thrown.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A `HarnessLoader` rooted at the element matching the given selector." + }, + { + "name": "throws", + "comment": "If a matching element can't be found." + } + ], + "rawComment": "/**\n * Searches for an element with the given selector under the evironment's root element,\n * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the\n * selector, the first is used. If no elements match, an error is thrown.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A `HarnessLoader` rooted at the element matching the given selector.\n * @throws If a matching element can't be found.\n */", "memberType": "method", "memberTags": [ - "protected" + "override" ] }, { - "name": "createEnvironment", + "name": "getAllChildLoaders", "signatures": [ { - "name": "createEnvironment", + "name": "getAllChildLoaders", "entryType": "function", - "description": "Creates a `HarnessLoader` rooted at the given raw element.", + "description": "Searches for all elements with the given selector under the environment's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.", "generics": [], "isNewType": false, - "jsdocTags": [], + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element." + } + ], "params": [ { - "name": "element", - "description": "", - "type": "Element", + "name": "selector", + "description": "The selector for the root element of the new `HarnessLoader`", + "type": "string", "isOptional": false, "isRestParam": false } ], - "rawComment": "/** Creates a `HarnessLoader` rooted at the given raw element. */", - "returnType": "HarnessEnvironment" + "rawComment": "/**\n * Searches for all elements with the given selector under the environment's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */", + "returnType": "Promise" } ], "implementation": { "params": [ { - "name": "element", - "description": "", - "type": "Element", + "name": "selector", + "description": "The selector for the root element of the new `HarnessLoader`", + "type": "string", "isOptional": false, "isRestParam": false } ], "isNewType": false, - "returnType": "HarnessEnvironment", + "returnType": "Promise", "generics": [], - "name": "createEnvironment", - "description": "Creates a `HarnessLoader` rooted at the given raw element.", + "name": "getAllChildLoaders", + "description": "Searches for all elements with the given selector under the environment's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.", "entryType": "function", - "jsdocTags": [], - "rawComment": "/** Creates a `HarnessLoader` rooted at the given raw element. */" + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element." + } + ], + "rawComment": "/**\n * Searches for all elements with the given selector under the environment's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */" }, "entryType": "function", - "description": "Creates a `HarnessLoader` rooted at the given raw element.", - "jsdocTags": [], - "rawComment": "/** Creates a `HarnessLoader` rooted at the given raw element. */", + "description": "Searches for all elements with the given selector under the environment's root element,\nand returns an array of `HarnessLoader`s, one for each matching element, rooted at that\nelement.", + "jsdocTags": [ + { + "name": "param", + "comment": "The selector for the root element of the new `HarnessLoader`" + }, + { + "name": "return", + "comment": "A list of `HarnessLoader`s, one for each matching element, rooted at that element." + } + ], + "rawComment": "/**\n * Searches for all elements with the given selector under the environment's root element,\n * and returns an array of `HarnessLoader`s, one for each matching element, rooted at that\n * element.\n * @param selector The selector for the root element of the new `HarnessLoader`\n * @return A list of `HarnessLoader`s, one for each matching element, rooted at that element.\n */", "memberType": "method", "memberTags": [ - "protected" + "override" ] }, { - "name": "getAllRawElements", + "name": "createComponentHarness", "signatures": [ { - "name": "getAllRawElements", + "name": "createComponentHarness", "entryType": "function", - "description": "Gets a list of all elements matching the given selector under this environment's root element.", - "generics": [], + "description": "Creates a `ComponentHarness` for the given harness type with the given raw host element.", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], "isNewType": false, "jsdocTags": [], "params": [ { - "name": "selector", + "name": "harnessType", "description": "", - "type": "string", + "type": "ComponentHarnessConstructor", + "isOptional": false, + "isRestParam": false + }, + { + "name": "element", + "description": "", + "type": "E", "isOptional": false, "isRestParam": false } ], - "rawComment": "/**\n * Gets a list of all elements matching the given selector under this environment's root element.\n */", - "returnType": "Promise" + "rawComment": "/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */", + "returnType": "T" } ], "implementation": { "params": [ { - "name": "selector", + "name": "harnessType", "description": "", - "type": "string", + "type": "ComponentHarnessConstructor", + "isOptional": false, + "isRestParam": false + }, + { + "name": "element", + "description": "", + "type": "E", "isOptional": false, "isRestParam": false } ], "isNewType": false, - "returnType": "Promise", - "generics": [], - "name": "getAllRawElements", - "description": "Gets a list of all elements matching the given selector under this environment's root element.", + "returnType": "T", + "generics": [ + { + "name": "T", + "constraint": "ComponentHarness" + } + ], + "name": "createComponentHarness", + "description": "Creates a `ComponentHarness` for the given harness type with the given raw host element.", "entryType": "function", "jsdocTags": [], - "rawComment": "/**\n * Gets a list of all elements matching the given selector under this environment's root element.\n */" + "rawComment": "/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */" }, "entryType": "function", - "description": "Gets a list of all elements matching the given selector under this environment's root element.", + "description": "Creates a `ComponentHarness` for the given harness type with the given raw host element.", "jsdocTags": [], - "rawComment": "/**\n * Gets a list of all elements matching the given selector under this environment's root element.\n */", + "rawComment": "/** Creates a `ComponentHarness` for the given harness type with the given raw host element. */", "memberType": "method", "memberTags": [ - "protected" + "protected", + "override" ] }, { @@ -347,7 +1815,7 @@ { "name": "fixture", "description": "", - "type": "ComponentFixture", + "type": "Fixture", "isOptional": false, "isRestParam": false }, @@ -368,7 +1836,7 @@ { "name": "fixture", "description": "", - "type": "ComponentFixture", + "type": "Fixture", "isOptional": false, "isRestParam": false }, @@ -412,7 +1880,7 @@ { "name": "fixture", "description": "", - "type": "ComponentFixture", + "type": "Fixture", "isOptional": false, "isRestParam": false }, @@ -433,7 +1901,7 @@ { "name": "fixture", "description": "", - "type": "ComponentFixture", + "type": "Fixture", "isOptional": false, "isRestParam": false }, @@ -533,7 +2001,7 @@ { "name": "fixture", "description": "", - "type": "ComponentFixture", + "type": "Fixture", "isOptional": false, "isRestParam": false }, @@ -561,7 +2029,7 @@ { "name": "fixture", "description": "", - "type": "ComponentFixture", + "type": "Fixture", "isOptional": false, "isRestParam": false }, @@ -612,8 +2080,8 @@ "implements": [], "source": { "filePath": "/src/cdk/testing/testbed/testbed-harness-environment.ts", - "startLine": 89, - "endLine": 225 + "startLine": 92, + "endLine": 232 } }, { @@ -737,7 +2205,7 @@ { "name": "modifiers", "description": "", - "type": "any", + "type": "ModifierKeys | undefined", "isOptional": true, "isRestParam": false } @@ -763,7 +2231,7 @@ { "name": "modifiers", "description": "", - "type": "any", + "type": "ModifierKeys | undefined", "isOptional": true, "isRestParam": false } @@ -809,7 +2277,7 @@ { "name": "modifiers", "description": "Modifier keys held while clicking", - "type": "any", + "type": "ModifierKeys | undefined", "isOptional": true, "isRestParam": false } @@ -823,7 +2291,7 @@ { "name": "args", "description": "", - "type": "[any?] | [\"center\", any?] | [number, number, any?]", + "type": "[(ModifierKeys | undefined)?] | [\"center\", (ModifierKeys | undefined)?] | [number, number, (ModifierKeys | undefined)?]", "isOptional": false, "isRestParam": true } @@ -885,7 +2353,7 @@ { "name": "modifiers", "description": "Modifier keys held while clicking", - "type": "any", + "type": "ModifierKeys | undefined", "isOptional": true, "isRestParam": false } @@ -899,7 +2367,7 @@ { "name": "args", "description": "", - "type": "[any?] | [\"center\", any?] | [number, number, any?]", + "type": "[(ModifierKeys | undefined)?] | [\"center\", (ModifierKeys | undefined)?] | [number, number, (ModifierKeys | undefined)?]", "isOptional": false, "isRestParam": true } @@ -1095,7 +2563,7 @@ { "name": "keys", "description": "", - "type": "any[]", + "type": "(string | TestKey)[]", "isOptional": false, "isRestParam": true } @@ -1121,7 +2589,7 @@ { "name": "keys", "description": "", - "type": "any[]", + "type": "(string | TestKey)[]", "isOptional": false, "isRestParam": true } @@ -1175,7 +2643,7 @@ { "name": "options", "description": "Options that affect what text is included.", - "type": "any", + "type": "TextOptions | undefined", "isOptional": true, "isRestParam": false } @@ -1189,7 +2657,7 @@ { "name": "options", "description": "Options that affect what text is included.", - "type": "any", + "type": "TextOptions | undefined", "isOptional": true, "isRestParam": false } @@ -1743,7 +3211,7 @@ "source": { "filePath": "/src/cdk/testing/testbed/unit-test-element.ts", "startLine": 68, - "endLine": 405 + "endLine": 408 } } ], @@ -1752,6 +3220,10 @@ "ComponentFixture", "@angular/core/testing" ], + [ + "DirectiveFixture", + "@angular/core/testing" + ], [ "flush", "@angular/core/testing" @@ -1760,6 +3232,10 @@ "TestbedHarnessEnvironmentOptions", "@angular/cdk/testing/testbed" ], + [ + "Fixture", + "@angular/cdk/testing/testbed" + ], [ "TestbedHarnessEnvironment", "@angular/cdk/testing/testbed" @@ -1776,6 +3252,10 @@ "TestbedHarnessEnvironmentOptions.queryFn", "@angular/cdk/testing/testbed" ], + [ + "Fixture", + "@angular/cdk/testing/testbed" + ], [ "TestbedHarnessEnvironment", "@angular/cdk/testing/testbed" @@ -1808,6 +3288,86 @@ "TestbedHarnessEnvironment.getAllRawElements", "@angular/cdk/testing/testbed" ], + [ + "TestbedHarnessEnvironment.rawRootElement", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.rootElement", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.rootElement", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.documentRootLocatorFactory", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.locatorFor", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.locatorForOptional", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.locatorForAll", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.rootHarnessLoader", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.harnessLoaderFor", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.harnessLoaderForOptional", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.harnessLoaderForAll", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.getHarness", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.getHarnessOrNull", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.getHarnessAtIndex", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.getAllHarnesses", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.countHarnesses", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.hasHarness", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.getChildLoader", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.getAllChildLoaders", + "@angular/cdk/testing/testbed" + ], + [ + "TestbedHarnessEnvironment.createComponentHarness", + "@angular/cdk/testing/testbed" + ], [ "TestbedHarnessEnvironment.loader", "@angular/cdk/testing/testbed" diff --git a/adev/src/content/cli/_build-info.json b/adev/src/content/cli/_build-info.json index 376d72508b3a..8f10fd44540c 100644 --- a/adev/src/content/cli/_build-info.json +++ b/adev/src/content/cli/_build-info.json @@ -1,4 +1,4 @@ { "branchName": "refs/heads/main", - "sha": "bd66ac975d7271f75b03814a4091ecd3293b994e" + "sha": "809c7f386a8b9a4cc5b9d8223e4e03437bc3d33e" } \ No newline at end of file diff --git a/adev/src/content/cli/build.json b/adev/src/content/cli/build.json index c772aeeebcce..74ef7cb9d536 100644 --- a/adev/src/content/cli/build.json +++ b/adev/src/content/cli/build.json @@ -3,49 +3,12 @@ "command": "ng build [project]", "shortDescription": "Compiles an Angular application or library into an output directory named dist/ at the given output path.", "longDescriptionRelativePath": "@angular/cli/src/commands/build/long-description.md", - "longDescription": "The command can be used to build a project of type \"application\" or \"library\".\nWhen used to build a library, a different builder is invoked, and only the `ts-config`, `configuration`, `poll` and `watch` options are applied.\nAll other options apply only to building applications.\n\nThe application builder uses the [esbuild](https://esbuild.github.io/) build tool, with default configuration options specified in the workspace configuration file (`angular.json`) or with a named alternative configuration.\nA \"development\" configuration is created by default when you use the CLI to create the project, and you can use that configuration by specifying the `--configuration development`.\n\nThe configuration options generally correspond to the command options.\nYou can override individual configuration defaults by specifying the corresponding options on the command line.\nThe command can accept option names given in dash-case.\nNote that in the configuration file, you must specify names in camelCase.\n\nSome additional options can only be set through the configuration file,\neither by direct editing or with the `ng config` command.\nThese include `assets`, `styles`, and `scripts` objects that provide runtime-global resources to include in the project.\nResources in CSS, such as images and fonts, are automatically written and fingerprinted at the root of the output folder.\n\nFor further details, see [Workspace Configuration](reference/configs/workspace-config).\n", + "longDescription": "The command can be used to build a project of type \"application\" or \"library\".\nDepending on the project type, the CLI invokes either the application builder (`@angular/build:application`) or the library builder (`@angular/build:library`), each supporting its own set of options.\n\nThe application builder uses the [esbuild](https://esbuild.github.io/) build tool, with default configuration options specified in the workspace configuration file (`angular.json`) or with a named alternative configuration.\nA \"development\" configuration is created by default when you use the CLI to create the project, and you can use that configuration by specifying the `--configuration development`.\n\nThe configuration options generally correspond to the command options.\nYou can override individual configuration defaults by specifying the corresponding options on the command line.\nThe command can accept option names given in dash-case.\nNote that in the configuration file, you must specify names in camelCase.\n\nSome additional options can only be set through the configuration file,\neither by direct editing or with the `ng config` command.\nThese include `assets`, `styles`, and `scripts` objects that provide runtime-global resources to include in the project.\nResources in CSS, such as images and fonts, are automatically written to the `media` directory of the browser output\n(configurable with the `outputPath.media` option) and fingerprinted when `outputHashing` is set to `all` or `media`.\n\nFor further details, see [Workspace Configuration](reference/configs/workspace-config).\n", "aliases": [ "b" ], "deprecated": false, "options": [ - { - "name": "allowed-common-js-dependencies", - "type": "array", - "description": "A list of CommonJS or AMD packages that are allowed to be used without a build time warning. Use `'*'` to allow all." - }, - { - "name": "aot", - "type": "boolean", - "default": true, - "description": "Build using Ahead of Time compilation." - }, - { - "name": "app-shell", - "type": "boolean", - "description": "Generates an application shell during build time." - }, - { - "name": "base-href", - "type": "string", - "description": "Base url for the application being built." - }, - { - "name": "browser", - "type": "string", - "description": "The full path for the browser entry point to the application, relative to the current workspace." - }, - { - "name": "clear-screen", - "type": "boolean", - "default": false, - "description": "Automatically clear the terminal screen during rebuilds." - }, - { - "name": "conditions", - "type": "array", - "description": "Custom package resolution conditions used to resolve conditional exports/imports. Defaults to ['module', 'development'/'production']. The following special conditions are always present if the requirements are satisfied: 'default', 'import', 'require', 'browser', 'node'." - }, { "name": "configuration", "type": "string", @@ -54,228 +17,358 @@ ], "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section in angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.dev/reference/configs/workspace-config#alternate-build-configurations." }, - { - "name": "cross-origin", - "type": "string", - "default": "none", - "enum": [ - "anonymous", - "none", - "use-credentials" - ], - "description": "Define the crossorigin attribute setting of elements that provide CORS support." - }, - { - "name": "define", - "type": "array", - "description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced." - }, - { - "name": "delete-output-path", - "type": "boolean", - "default": true, - "description": "Delete the output path before building." - }, - { - "name": "deploy-url", - "type": "string", - "description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations." - }, - { - "name": "external-dependencies", - "type": "array", - "description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime. Note: `@foo/bar` marks all paths within the `@foo/bar` package as external, including sub-paths like `@foo/bar/baz`." - }, - { - "name": "extract-licenses", - "type": "boolean", - "default": true, - "description": "Extract all licenses in a separate file." - }, { "name": "help", "type": "boolean", "description": "Shows a help message for this command in the console." }, - { - "name": "i18n-duplicate-translation", - "type": "string", - "default": "warning", - "enum": [ - "error", - "ignore", - "warning" - ], - "description": "How to handle duplicate translations for i18n." - }, - { - "name": "i18n-missing-translation", - "type": "string", - "default": "warning", - "enum": [ - "error", - "ignore", - "warning" - ], - "description": "How to handle missing translations for i18n." - }, - { - "name": "index", - "type": "string", - "description": "Configures the generation of the application's HTML index." - }, - { - "name": "inline-style-language", - "type": "string", - "default": "css", - "enum": [ - "css", - "less", - "sass", - "scss" - ], - "description": "The stylesheet language to use for the application's inline component styles." - }, - { - "name": "localize", - "type": "boolean", - "description": "Translate the bundles in one or more locales." - }, - { - "name": "named-chunks", - "type": "boolean", - "default": false, - "description": "Use file name for lazy loaded chunks." - }, - { - "name": "optimization", - "type": "boolean", - "default": true, - "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration." - }, - { - "name": "output-hashing", - "type": "string", - "default": "none", - "enum": [ - "all", - "bundles", - "media", - "none" - ], - "description": "Define the output filename cache-busting hashing mode.\n\n- `none`: No hashing.\n- `all`: Hash for all output bundles. \n- `media`: Hash for all output media (e.g., images, fonts, etc. that are referenced in CSS files).\n- `bundles`: Hash for output of lazy and main bundles." - }, - { - "name": "output-mode", - "type": "string", - "enum": [ - "server", - "static" - ], - "description": "Defines the type of build output artifact. 'static': Generates a static site build artifact for deployment on any static hosting service. 'server': Generates a server application build artifact, required for applications using hybrid rendering or APIs." - }, - { - "name": "output-path", - "type": "string", - "description": "Specify the output path relative to workspace root." - }, - { - "name": "poll", - "type": "number", - "description": "Enable and define the file watching poll time period in milliseconds." - }, - { - "name": "polyfills", - "type": "array", - "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'." - }, - { - "name": "prerender", - "type": "boolean", - "description": "Prerender (SSG) pages of your application during build time." - }, - { - "name": "preserve-symlinks", - "type": "boolean", - "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set." - }, - { - "name": "progress", - "type": "boolean", - "default": true, - "description": "Log progress to the console while building." - }, { "name": "project", "type": "string", - "description": "The name of the project to build. Can be an application or a library.", + "description": "The name of the project to run the command for. Can be an application or a library.", "positional": 0 - }, - { - "name": "scripts", - "type": "array", - "description": "Global scripts to be included in the build." - }, - { - "name": "server", - "type": "string", - "description": "The full path for the server entry point to the application, relative to the current workspace." - }, - { - "name": "service-worker", - "type": "string", - "description": "Generates a service worker configuration." - }, - { - "name": "source-map", - "type": "boolean", - "default": false, - "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration." - }, - { - "name": "ssr", - "type": "boolean", - "default": false, - "description": "Server side render (SSR) pages of your application during runtime." - }, - { - "name": "stats-json", - "type": "boolean", - "default": false, - "description": "Generates a 'stats.json' file which can be analyzed with https://esbuild.github.io/analyze/." - }, - { - "name": "styles", - "type": "array", - "description": "Global styles to be included in the build." - }, - { - "name": "subresource-integrity", - "type": "boolean", - "default": false, - "description": "Enables the use of subresource integrity validation." - }, - { - "name": "ts-config", - "type": "string", - "description": "The full path for the TypeScript configuration file, relative to the current workspace." - }, - { - "name": "verbose", - "type": "boolean", - "default": false, - "description": "Adds more details to output logging." - }, - { - "name": "watch", - "type": "boolean", - "default": false, - "description": "Run build when files change." - }, - { - "name": "web-worker-ts-config", - "type": "string", - "description": "TypeScript configuration for Web Worker modules." + } + ], + "builders": [ + { + "name": "Application", + "options": [ + { + "name": "allowed-common-js-dependencies", + "type": "array", + "description": "A list of CommonJS or AMD packages that are allowed to be used without a build time warning. Use `'*'` to allow all." + }, + { + "name": "aot", + "type": "boolean", + "default": true, + "description": "Build using Ahead of Time compilation." + }, + { + "name": "app-shell", + "type": "boolean", + "description": "Generates an application shell during build time." + }, + { + "name": "base-href", + "type": "string", + "description": "Base url for the application being built." + }, + { + "name": "browser", + "type": "string", + "description": "The full path for the browser entry point to the application, relative to the current workspace." + }, + { + "name": "clear-screen", + "type": "boolean", + "default": false, + "description": "Automatically clear the terminal screen during rebuilds." + }, + { + "name": "conditions", + "type": "array", + "description": "Custom package resolution conditions used to resolve conditional exports/imports. Defaults to ['module', 'development'/'production']. The following special conditions are always present if the requirements are satisfied: 'default', 'import', 'require', 'browser', 'node'." + }, + { + "name": "cross-origin", + "type": "string", + "default": "none", + "enum": [ + "anonymous", + "none", + "use-credentials" + ], + "description": "Define the crossorigin attribute setting of elements that provide CORS support." + }, + { + "name": "define", + "type": "array", + "description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced." + }, + { + "name": "delete-output-path", + "type": "boolean", + "default": true, + "description": "Delete the output path before building." + }, + { + "name": "deploy-url", + "type": "string", + "description": "Customize the base path for the URLs of resources in 'index.html' and component stylesheets. This option is only necessary for specific deployment scenarios, such as with Angular Elements or when utilizing different CDN locations." + }, + { + "name": "external-dependencies", + "type": "array", + "description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime. Note: `@foo/bar` marks all paths within the `@foo/bar` package as external, including sub-paths like `@foo/bar/baz`." + }, + { + "name": "extract-licenses", + "type": "boolean", + "default": true, + "description": "Extract all licenses in a separate file." + }, + { + "name": "i18n-duplicate-translation", + "type": "string", + "default": "warning", + "enum": [ + "error", + "ignore", + "warning" + ], + "description": "How to handle duplicate translations for i18n." + }, + { + "name": "i18n-missing-translation", + "type": "string", + "default": "warning", + "enum": [ + "error", + "ignore", + "warning" + ], + "description": "How to handle missing translations for i18n." + }, + { + "name": "index", + "type": "string", + "description": "Configures the generation of the application's HTML index." + }, + { + "name": "inline-style-language", + "type": "string", + "default": "css", + "enum": [ + "css", + "less", + "sass", + "scss" + ], + "description": "The stylesheet language to use for the application's inline component styles." + }, + { + "name": "localize", + "type": "array", + "description": "Translate the bundles in one or more locales." + }, + { + "name": "named-chunks", + "type": "boolean", + "default": false, + "description": "Use file name for lazy loaded chunks." + }, + { + "name": "optimization", + "type": "boolean", + "default": true, + "description": "Enables optimization of the build output. Including minification of scripts and styles, tree-shaking, dead-code elimination, inlining of critical CSS and fonts inlining. For more information, see https://angular.dev/reference/configs/workspace-config#optimization-configuration." + }, + { + "name": "output-hashing", + "type": "string", + "default": "none", + "enum": [ + "all", + "bundles", + "media", + "none" + ], + "description": "Define the output filename cache-busting hashing mode.\n\n- `none`: No hashing.\n- `all`: Hash for all output bundles. \n- `media`: Hash for all output media (e.g., images, fonts, etc. that are referenced in CSS files).\n- `bundles`: Hash for output of lazy and main bundles." + }, + { + "name": "output-mode", + "type": "string", + "enum": [ + "server", + "static" + ], + "description": "Defines the type of build output artifact. 'static': Generates a static site build artifact for deployment on any static hosting service. 'server': Generates a server application build artifact, required for applications using hybrid rendering or APIs." + }, + { + "name": "output-path", + "type": "string", + "description": "Specify the output path relative to workspace root." + }, + { + "name": "poll", + "type": "number", + "description": "Enable and define the file watching poll time period in milliseconds." + }, + { + "name": "polyfills", + "type": "array", + "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'." + }, + { + "name": "prerender", + "type": "boolean", + "description": "Prerender (SSG) pages of your application during build time." + }, + { + "name": "preserve-symlinks", + "type": "boolean", + "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set." + }, + { + "name": "progress", + "type": "boolean", + "default": true, + "description": "Log progress to the console while building." + }, + { + "name": "scripts", + "type": "array", + "description": "Global scripts to be included in the build." + }, + { + "name": "server", + "type": "string", + "description": "The full path for the server entry point to the application, relative to the current workspace." + }, + { + "name": "service-worker", + "type": "string", + "description": "Generates a service worker configuration." + }, + { + "name": "source-map", + "type": "boolean", + "default": false, + "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration." + }, + { + "name": "ssr", + "type": "boolean", + "default": false, + "description": "Server side render (SSR) pages of your application during runtime." + }, + { + "name": "stats-json", + "type": "boolean", + "default": false, + "description": "Generates a 'browser-stats.json' file which can be analyzed with https://esbuild.github.io/analyze/. When server-side rendering is enabled, a 'server-stats.json' file is also generated." + }, + { + "name": "styles", + "type": "array", + "description": "Global styles to be included in the build." + }, + { + "name": "subresource-integrity", + "type": "boolean", + "default": false, + "description": "Enables the use of subresource integrity validation." + }, + { + "name": "ts-config", + "type": "string", + "description": "The full path for the TypeScript configuration file, relative to the current workspace." + }, + { + "name": "verbose", + "type": "boolean", + "default": false, + "description": "Adds more details to output logging." + }, + { + "name": "watch", + "type": "boolean", + "default": false, + "description": "Run build when files change." + }, + { + "name": "web-worker-ts-config", + "type": "string", + "description": "TypeScript configuration for Web Worker modules." + } + ] + }, + { + "name": "Library", + "options": [ + { + "name": "allowed-non-peer-dependencies", + "type": "array", + "description": "A list of package names allowed in the 'dependencies' and 'optionalDependencies' sections of package.json. Values can be regular expression patterns." + }, + { + "name": "clear-screen", + "type": "boolean", + "default": false, + "description": "Automatically clear the terminal screen during rebuilds." + }, + { + "name": "compilation-mode", + "type": "string", + "enum": [ + "full", + "partial" + ], + "description": "Angular compilation mode. Use 'partial' when publishing to npm (APF requirement). Use 'full' only during development or for private, internal monorepo packages that are never published. Defaults to the `angularCompilerOptions.compilationMode` value in the TypeScript configuration file, or 'partial' if not set." + }, + { + "name": "declaration-map", + "type": "boolean", + "description": "Generates a sourcemap for each corresponding '.d.ts' file. Defaults to the `compilerOptions.declarationMap` value in the TypeScript configuration file." + }, + { + "name": "delete-output-path", + "type": "boolean", + "default": true, + "description": "Delete the output path before building." + }, + { + "name": "inline-style-language", + "type": "string", + "default": "css", + "enum": [ + "css", + "less", + "sass", + "scss" + ], + "description": "The stylesheet language to use for the library's inline component styles." + }, + { + "name": "keep-lifecycle-scripts", + "type": "boolean", + "default": false, + "description": "Enable this to keep the 'scripts' section in the published package.json." + }, + { + "name": "output-path", + "type": "string", + "description": "Specify the output directory for the built package, relative to the workspace root." + }, + { + "name": "poll", + "type": "number", + "description": "Enable and define the file watching poll time period in milliseconds." + }, + { + "name": "preserve-symlinks", + "type": "boolean", + "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set." + }, + { + "name": "progress", + "type": "boolean", + "default": true, + "description": "Log progress to the console while building." + }, + { + "name": "ts-config", + "type": "string", + "description": "The full path for the TypeScript configuration file, relative to the current workspace root." + }, + { + "name": "watch", + "type": "boolean", + "default": false, + "description": "Run build when files change." + } + ] } ] } \ No newline at end of file diff --git a/adev/src/content/cli/completion.json b/adev/src/content/cli/completion.json index 32a2e398588e..24c56522b835 100644 --- a/adev/src/content/cli/completion.json +++ b/adev/src/content/cli/completion.json @@ -3,7 +3,7 @@ "command": "ng completion", "shortDescription": "Set up Angular CLI autocompletion for your terminal.", "longDescriptionRelativePath": "@angular/cli/src/commands/completion/long-description.md", - "longDescription": "Setting up autocompletion configures your terminal, so pressing the `` key while in the middle\nof typing will display various commands and options available to you. This makes it very easy to\ndiscover and use CLI commands without lots of memorization.\n\n![A demo of Angular CLI autocompletion in a terminal. The user types several partial `ng` commands,\nusing autocompletion to finish several arguments and list contextual options.\n](assets/images/guide/cli/completion.gif)\n\n## Automated setup\n\nThe CLI should prompt and ask to set up autocompletion for you the first time you use it (v14+).\nSimply answer \"Yes\" and the CLI will take care of the rest.\n\n```\n$ ng serve\n? Would you like to enable autocompletion? This will set up your terminal so pressing TAB while typing Angular CLI commands will show possible options and autocomplete arguments. (Enabling autocompletion will modify configuration files in your home directory.) Yes\nAppended `source <(ng completion script)` to `/home/my-username/.bashrc`. Restart your terminal or run:\n\nsource <(ng completion script)\n\nto autocomplete `ng` commands.\n\n# Serve output...\n```\n\nIf you already refused the prompt, it won't ask again. But you can run `ng completion` to\ndo the same thing automatically.\n\nThis modifies your terminal environment to load Angular CLI autocompletion, but can't update your\ncurrent terminal session. Either restart it or run `source <(ng completion script)` directly to\nenable autocompletion in your current session.\n\nTest it out by typing `ng ser` and it should autocomplete to `ng serve`. Ambiguous arguments\nwill show all possible options and their documentation, such as `ng generate `.\n\n## Manual setup\n\nSome users may have highly customized terminal setups, possibly with configuration files checked\ninto source control with an opinionated structure. `ng completion` only ever appends Angular's setup\nto an existing configuration file for your current shell, or creates one if none exists. If you want\nmore control over exactly where this configuration lives, you can manually set it up by having your\nshell run at startup:\n\n```bash\nsource <(ng completion script)\n```\n\nThis is equivalent to what `ng completion` will automatically set up, and gives power users more\nflexibility in their environments when desired.\n\n## Platform support\n\nAngular CLI supports autocompletion for the Bash and Zsh shells on MacOS and Linux operating\nsystems. On Windows, Git Bash and [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/)\nusing Bash or Zsh are supported.\n\n## Global install\n\nAutocompletion works by configuring your terminal to invoke the Angular CLI on startup to load the\nsetup script. This means the terminal must be able to find and execute the Angular CLI, typically\nthrough a global install that places the binary on the user's `$PATH`. If you get\n`command not found: ng`, make sure the CLI is installed globally which you can do with the `-g`\nflag:\n\n```bash\nnpm install -g @angular/cli\n```\n", + "longDescription": "Setting up autocompletion configures your terminal, so pressing the `` key while in the middle\nof typing will display various commands and options available to you. This makes it very easy to\ndiscover and use CLI commands without lots of memorization.\n\n![A demo of Angular CLI autocompletion in a terminal. The user types several partial `ng` commands,\nusing autocompletion to finish several arguments and list contextual options.\n](assets/images/guide/cli/completion.gif)\n\n## Automated setup\n\nThe CLI should prompt and ask to set up autocompletion for you the first time you use it (v14+).\nSimply answer \"Yes\" and the CLI will take care of the rest.\n\n```\n$ ng serve\n? Would you like to enable autocompletion? This will set up your terminal so pressing TAB while typing Angular CLI commands will show possible options and autocomplete arguments. (Enabling autocompletion will modify configuration files in your home directory.) Yes\nAppended `source <(ng completion script)` to `/home/my-username/.bashrc`. Restart your terminal or run:\n\nsource <(ng completion script)\n\nto autocomplete `ng` commands.\n\n# Serve output...\n```\n\nIf you already refused the prompt, it won't ask again. But you can run `ng completion` to\ndo the same thing automatically.\n\nThis modifies your terminal environment to load Angular CLI autocompletion, but can't update your\ncurrent terminal session. Either restart it or run `source <(ng completion script)` directly to\nenable autocompletion in your current session.\n\nTest it out by typing `ng ser` and it should autocomplete to `ng serve`. Ambiguous arguments\nwill show all possible options and their documentation, such as `ng generate `.\n\n## Manual setup\n\nSome users may have highly customized terminal setups, possibly with configuration files checked\ninto source control with an opinionated structure. `ng completion` only ever appends Angular's setup\nto an existing configuration file for your current shell, or creates one if none exists. If you want\nmore control over exactly where this configuration lives, you can manually set it up by having your\nshell run at startup:\n\n```bash\nif [[ $- == *i* ]]; then\n source <(ng completion script)\nfi\n```\n\nThis is equivalent to what `ng completion` will automatically set up, and gives power users more\nflexibility in their environments when desired.\n\n## Platform support\n\nAngular CLI supports autocompletion for the Bash and Zsh shells on MacOS and Linux operating\nsystems. On Windows, Git Bash and [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/)\nusing Bash or Zsh are supported.\n\n## Global install\n\nAutocompletion works by configuring your terminal to invoke the Angular CLI on startup to load the\nsetup script. This means the terminal must be able to find and execute the Angular CLI, typically\nthrough a global install that places the binary on the user's `$PATH`. If you get\n`command not found: ng`, make sure the CLI is installed globally which you can do with the `-g`\nflag:\n\n```bash\nnpm install -g @angular/cli\n```\n", "aliases": [], "deprecated": false, "options": [ diff --git a/adev/src/content/cli/deploy.json b/adev/src/content/cli/deploy.json index e168ec6c4a37..64024068b5a2 100644 --- a/adev/src/content/cli/deploy.json +++ b/adev/src/content/cli/deploy.json @@ -1,9 +1,9 @@ { "name": "deploy", "command": "ng deploy [project]", - "shortDescription": "Invokes the deploy builder for a specified project or for the default project in the workspace.", + "shortDescription": "Invokes the deploy builder for a specified project, the only project with a deploy target, or the project in the current working directory.", "longDescriptionRelativePath": "@angular/cli/src/commands/deploy/long-description.md", - "longDescription": "The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file.\nWhen a project name is not supplied, executes the `deploy` builder for the default project.\n\nTo use the `ng deploy` command, use `ng add` to add a package that implements deployment capabilities to your favorite platform.\nAdding the package automatically updates your workspace configuration, adding a deployment\n[CLI builder](tools/cli/cli-builder).\nFor example:\n\n```json\n\"projects\": {\n \"my-project\": {\n ...\n \"architect\": {\n ...\n \"deploy\": {\n \"builder\": \"@angular/fire:deploy\",\n \"options\": {}\n }\n }\n }\n}\n```\n", + "longDescription": "The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file.\nWhen a project name is not supplied, executes the `deploy` builder for the only project that has a `deploy` target,\nor for the project in the current working directory.\n\nTo use the `ng deploy` command, use `ng add` to add a package that implements deployment capabilities to your favorite platform.\nAdding the package automatically updates your workspace configuration, adding a deployment\n[CLI builder](tools/cli/cli-builder).\nFor example:\n\n```json\n\"projects\": {\n \"my-project\": {\n ...\n \"architect\": {\n ...\n \"deploy\": {\n \"builder\": \"@angular/fire:deploy\",\n \"options\": {}\n }\n }\n }\n}\n```\n", "aliases": [], "deprecated": false, "options": [ @@ -23,7 +23,7 @@ { "name": "project", "type": "string", - "description": "The name of the project to build. Can be an application or a library.", + "description": "The name of the project to run the command for. Can be an application or a library.", "positional": 0 } ] diff --git a/adev/src/content/cli/e2e.json b/adev/src/content/cli/e2e.json index f534dc7c2569..f1ab5cf887b3 100644 --- a/adev/src/content/cli/e2e.json +++ b/adev/src/content/cli/e2e.json @@ -23,7 +23,7 @@ { "name": "project", "type": "string", - "description": "The name of the project to build. Can be an application or a library.", + "description": "The name of the project to run the command for. Can be an application or a library.", "positional": 0 } ] diff --git a/adev/src/content/cli/extract-i18n.json b/adev/src/content/cli/extract-i18n.json index 7829ca1e778f..ca9de9f961f1 100644 --- a/adev/src/content/cli/extract-i18n.json +++ b/adev/src/content/cli/extract-i18n.json @@ -43,12 +43,13 @@ { "name": "i18n-duplicate-translation", "type": "string", + "default": "warning", "enum": [ "error", "ignore", "warning" ], - "description": "How to handle duplicate translations." + "description": "How to handle duplicate messages found during extraction." }, { "name": "out-file", @@ -69,7 +70,7 @@ { "name": "project", "type": "string", - "description": "The name of the project to build. Can be an application or a library.", + "description": "The name of the project to run the command for. Can be an application or a library.", "positional": 0 } ] diff --git a/adev/src/content/cli/generate.json b/adev/src/content/cli/generate.json index c54ae2016487..3c1a94c65e69 100644 --- a/adev/src/content/cli/generate.json +++ b/adev/src/content/cli/generate.json @@ -42,7 +42,7 @@ { "name": "schematic", "type": "string", - "description": "The [collection:schematic] to run.", + "description": "The `[collection:schematic]` to run.", "positional": 0 } ], @@ -107,7 +107,7 @@ "aliases": [ "s" ], - "description": "Include the styles for the root component directly within the `app.ts` file. Only CSS styles can be included inline. By default, a separate stylesheet file (e.g., `app.css`) is created." + "description": "Include the styles for the root component directly within the `app.ts` file. By default, a separate stylesheet file (e.g., `app.css`) is created." }, { "name": "inline-template", @@ -168,7 +168,7 @@ "S" ], "default": false, - "description": "Skip the generation of a unit test files `spec.ts`." + "description": "Skip the generation of unit test files `spec.ts`." }, { "name": "ssr", @@ -204,6 +204,7 @@ { "name": "test-runner", "type": "string", + "deprecated": "New projects will only be configured with Vitest in a future version.", "default": "vitest", "enum": [ "karma", @@ -493,7 +494,7 @@ { "name": "name", "type": "string", - "description": "The name for the new directive. This will be used to create the directive's class and spec files (e.g., `my-directive.directive.ts` and `my-directive.directive.spec.ts`).", + "description": "The name for the new directive. This will be used to create the directive's class and spec files (e.g., `my-directive.ts` and `my-directive.spec.ts`).", "positional": 0 }, { @@ -543,6 +544,58 @@ ], "deprecated": false }, + { + "name": "entry-point", + "command": "entry-point [name]", + "shortDescription": "Creates a new secondary entry point in an Angular library project.", + "options": [ + { + "name": "entry-file", + "type": "string", + "default": "public-api", + "description": "The file name at which to create the secondary entry point's public API file, without the `.ts` extension." + }, + { + "name": "name", + "type": "string", + "description": "The name of the secondary entry point (for example, 'testing' or 'feature/sub').", + "positional": 0 + }, + { + "name": "prefix", + "type": "string", + "aliases": [ + "p" + ], + "description": "A prefix to apply to generated selectors." + }, + { + "name": "project", + "type": "string", + "description": "The name of the library project where the secondary entry point should be added. If not specified, the CLI will determine the project from the current directory." + }, + { + "name": "skip-tests", + "type": "boolean", + "default": false, + "description": "Do not create `spec.ts` test files for the new secondary entry point." + }, + { + "name": "skip-ts-config", + "type": "boolean", + "default": false, + "description": "Do not update `tsconfig.json` to add a path mapping for the new secondary entry point." + }, + { + "name": "standalone", + "type": "boolean", + "default": true, + "description": "Creates a secondary entry point based upon the standalone API, without NgModules." + } + ], + "aliases": [], + "deprecated": false + }, { "name": "enum", "command": "enum [name]", @@ -551,7 +604,7 @@ { "name": "name", "type": "string", - "description": "The name for the new enum. This will be used to create the enum file (e.g., `my-enum.enum.ts`).", + "description": "The name for the new enum. This will be used to create the enum file (e.g., `my-enum.ts`).", "positional": 0 }, { @@ -621,7 +674,7 @@ { "name": "name", "type": "string", - "description": "The name for the new route guard. This will be used to create the guard's class and spec files (e.g., `my-guard.guard.ts` and `my-guard.guard.spec.ts`).", + "description": "The name for the new route guard. This will be used to create the guard's class and spec files (e.g., `example-guard.ts` and `example-guard.spec.ts`).", "positional": 0 }, { @@ -671,7 +724,7 @@ { "name": "name", "type": "string", - "description": "The name for the new interceptor. This will be used to create the interceptor's class and spec files (e.g., `my-interceptor.interceptor.ts` and `my-interceptor.interceptor.spec.ts`).", + "description": "The name for the new interceptor. This will be used to create the interceptor's class and spec files (e.g., `example-interceptor.ts` and `example-interceptor.spec.ts`).", "positional": 0 }, { @@ -707,7 +760,7 @@ { "name": "name", "type": "string", - "description": "The name for the new interface. This will be used to create the interface file (e.g., `my-interface.interface.ts`).", + "description": "The name for the new interface. This will be used to create the interface file (e.g., `my-interface.ts`).", "positional": 0 }, { @@ -741,7 +794,7 @@ "name": "entry-file", "type": "string", "default": "public-api", - "description": "The path to the library's public API file, relative to the workspace root. This file defines what parts of the library are accessible to applications that import it." + "description": "The name of the library's public API file, without the `.ts` extension, created in the library's `src` directory. This file defines what parts of the library are accessible to applications that import it." }, { "name": "name", @@ -790,6 +843,7 @@ { "name": "test-runner", "type": "string", + "deprecated": "New projects will only be configured with Vitest in a future version.", "default": "vitest", "enum": [ "karma", @@ -898,7 +952,7 @@ { "name": "name", "type": "string", - "description": "The name for the new pipe. This will be used to create the pipe's class and spec files (e.g., `my-pipe.pipe.ts` and `my-pipe.pipe.spec.ts`).", + "description": "The name for the new pipe. This will be used to create the pipe's class and spec files (e.g., `example-pipe.ts` and `example-pipe.spec.ts`).", "positional": 0 }, { @@ -960,7 +1014,7 @@ { "name": "name", "type": "string", - "description": "The name for the new resolver. This will be used to create the resolver's class and spec files (e.g., `my-resolver.resolver.ts` and `my-resolver.resolver.spec.ts`).", + "description": "The name for the new resolver. This will be used to create the resolver's class and spec files (e.g., `example-resolver.ts` and `example-resolver.spec.ts`).", "positional": 0 }, { @@ -1016,7 +1070,7 @@ { "name": "name", "type": "string", - "description": "The name for the new service. This will be used to create the service's class and spec files (e.g., `my-service.service.ts` and `my-service.service.spec.ts`).", + "description": "The name for the new service. This will be used to create the service's class and spec files (e.g., `my-service.ts` and `my-service.spec.ts`).", "positional": 0 }, { diff --git a/adev/src/content/cli/lint.json b/adev/src/content/cli/lint.json index 96b1137aeeff..5033964426b6 100644 --- a/adev/src/content/cli/lint.json +++ b/adev/src/content/cli/lint.json @@ -23,7 +23,7 @@ { "name": "project", "type": "string", - "description": "The name of the project to build. Can be an application or a library.", + "description": "The name of the project to run the command for. Can be an application or a library.", "positional": 0 } ] diff --git a/adev/src/content/cli/new.json b/adev/src/content/cli/new.json index 61346e585ad9..2f29f9b84750 100644 --- a/adev/src/content/cli/new.json +++ b/adev/src/content/cli/new.json @@ -3,7 +3,7 @@ "command": "ng new [name]", "shortDescription": "Creates a new Angular workspace.", "longDescriptionRelativePath": "@angular/cli/src/commands/new/long-description.md", - "longDescription": "Creates and initializes a new Angular application that is the default project for a new workspace.\n\nProvides interactive prompts for optional configuration, such as adding routing support.\nAll prompts can safely be allowed to default.\n\n- The new workspace folder is given the specified project name, and contains configuration files at the top level.\n\n- By default, the files for a new initial application (with the same name as the workspace) are placed in the `src/` subfolder.\n- The new application's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name.\n\n- Subsequent applications that you generate in the workspace reside in the `projects/` subfolder.\n\nIf you plan to have multiple applications in the workspace, you can create an empty workspace by using the `--no-create-application` option.\nYou can then use `ng generate application` to create an initial application.\nThis allows a workspace name different from the initial app name, and ensures that all applications reside in the `/projects` subfolder, matching the structure of the configuration file.\n", + "longDescription": "Creates and initializes a new Angular workspace with an initial application.\n\nProvides interactive prompts for optional configuration, such as adding routing support.\nAll prompts can safely be allowed to default.\n\n- The new workspace folder is given the specified project name, and contains configuration files at the top level.\n\n- By default, the files for a new initial application (with the same name as the workspace) are placed in the `src/` subfolder.\n- The new application's configuration appears in the `projects` section of the `angular.json` workspace configuration file, under its project name.\n\n- Subsequent applications that you generate in the workspace reside in the `projects/` subfolder.\n\nIf you plan to have multiple applications in the workspace, you can create an empty workspace by using the `--no-create-application` option.\nYou can then use `ng generate application` to create an initial application.\nThis allows a workspace name different from the initial app name, and ensures that all applications reside in the `/projects` subfolder, matching the structure of the configuration file.\n", "aliases": [ "n" ], @@ -20,7 +20,7 @@ "open-ai-codex", "vscode" ], - "description": "Specifies which AI tools to generate configuration files for. These file are used to improve the outputs of AI tools by following the best practices." + "description": "Specifies which AI tools to generate configuration files for. These files are used to improve the outputs of AI tools by following the best practices." }, { "name": "collection", @@ -51,7 +51,7 @@ { "name": "directory", "type": "string", - "description": "The directory where the new workspace and project should be created. If not specified, the workspace will be created in the current directory." + "description": "The directory where the new workspace and project should be created. If not specified, the workspace will be created in a subfolder within the current directory, using the workspace's name." }, { "name": "dry-run", @@ -204,6 +204,7 @@ { "name": "test-runner", "type": "string", + "deprecated": "New projects will only be configured with Vitest in a future version.", "default": "vitest", "enum": [ "karma", diff --git a/adev/src/content/cli/run.json b/adev/src/content/cli/run.json index 5468e6798ef9..c7a988c3b38d 100644 --- a/adev/src/content/cli/run.json +++ b/adev/src/content/cli/run.json @@ -3,7 +3,7 @@ "command": "ng run ", "shortDescription": "Runs an Architect target with an optional custom builder configuration defined in your project.", "longDescriptionRelativePath": "@angular/cli/src/commands/run/long-description.md", - "longDescription": "Architect is the tool that the CLI uses to perform complex tasks such as compilation, according to provided configurations.\nThe CLI commands run Architect targets such as `build`, `serve`, `test`, and `lint`.\nEach named target has a default configuration, specified by an `options` object,\nand an optional set of named alternate configurations in the `configurations` object.\n\nFor example, the `serve` target for a newly generated app has a predefined\nalternate configuration named `production`.\n\nYou can define new targets and their configuration options in the `architect` section\nof the `angular.json` file which you can run them from the command line using the `ng run` command.\n", + "longDescription": "Architect is the tool that the CLI uses to perform complex tasks such as compilation, according to provided configurations.\nThe CLI commands run Architect targets such as `build`, `serve`, `test`, and `lint`.\nEach named target has a default configuration, specified by an `options` object,\nand an optional set of named alternate configurations in the `configurations` object.\n\nFor example, the `serve` target for a newly generated app has a predefined\nalternate configuration named `production`.\n\nYou can define new targets and their configuration options in the `architect` section\nof the `angular.json` file, which you can run from the command line using the `ng run` command.\n", "aliases": [], "deprecated": false, "options": [ diff --git a/adev/src/content/cli/serve.json b/adev/src/content/cli/serve.json index a83453477e50..b70f433029a9 100644 --- a/adev/src/content/cli/serve.json +++ b/adev/src/content/cli/serve.json @@ -10,7 +10,7 @@ "options": [ { "name": "allowed-hosts", - "type": "boolean", + "type": "array", "description": "The hosts that the development server will respond to. This option sets the Vite option of the same name. For further details: https://vite.dev/config/server-options.html#server-allowedhosts" }, { @@ -44,7 +44,7 @@ { "name": "hmr", "type": "boolean", - "description": "Enable hot module replacement. Defaults to the value of 'liveReload'. Currently, only global and component stylesheets are supported." + "description": "Enable hot module replacement. Defaults to the value of 'liveReload'. Currently, global stylesheets, component stylesheets, and component templates are supported." }, { "name": "host", @@ -81,7 +81,7 @@ "name": "port", "type": "number", "default": 4200, - "description": "Port to listen on." + "description": "Port to listen on. The `PORT` environment variable, when set, takes precedence over this option." }, { "name": "prebundle", @@ -92,7 +92,7 @@ { "name": "project", "type": "string", - "description": "The name of the project to build. Can be an application or a library.", + "description": "The name of the project to run the command for. Can be an application or a library.", "positional": 0 }, { diff --git a/adev/src/content/cli/test.json b/adev/src/content/cli/test.json index 140564488bba..38b78c30a3cd 100644 --- a/adev/src/content/cli/test.json +++ b/adev/src/content/cli/test.json @@ -9,21 +9,6 @@ ], "deprecated": false, "options": [ - { - "name": "browser-viewport", - "type": "string", - "description": "Specifies the browser viewport dimensions for browser-based tests in the format `widthxheight`." - }, - { - "name": "browsers", - "type": "array", - "description": "Specifies the browsers to use for test execution. When not specified, tests are run in a Node.js environment using jsdom. For both Vitest and Karma, browser names ending with 'Headless' (e.g., 'ChromeHeadless') will enable headless mode." - }, - { - "name": "build-target", - "type": "string", - "description": "Specifies the build target to use for the unit test build in the format `project:target[:configuration]`. This defaults to the `build` target of the current project with the `development` configuration. You can also pass a comma-separated list of configurations. Example: `project:target:production,staging`." - }, { "name": "configuration", "type": "string", @@ -32,147 +17,316 @@ ], "description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section in angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.dev/reference/configs/workspace-config#alternate-build-configurations." }, - { - "name": "coverage", - "type": "boolean", - "description": "Enables coverage reporting for tests. If not specified, the coverage configuration from a runner configuration file will be used if present. Otherwise, coverage is disabled by default." - }, - { - "name": "coverage-exclude", - "type": "array", - "description": "Specifies glob patterns of files to exclude from the coverage report." - }, - { - "name": "coverage-include", - "type": "array", - "description": "Specifies glob patterns of files to include in the coverage report." - }, - { - "name": "coverage-reporters", - "type": "array", - "enum": [ - "cobertura", - "html", - "json", - "json-summary", - "lcov", - "lcovonly", - "text", - "text-summary" - ], - "description": "Specifies the reporters to use for coverage results. Each reporter can be a string representing its name, or a tuple containing the name and an options object. Built-in reporters include 'html', 'lcov', 'lcovonly', 'text', 'text-summary', 'cobertura', 'json', and 'json-summary'." - }, - { - "name": "debug", - "type": "boolean", - "default": false, - "description": "Enables debugging mode for tests, allowing the use of the Node Inspector." - }, - { - "name": "exclude", - "type": "array", - "description": "Specifies glob patterns of files to exclude from testing, relative to the project root." - }, - { - "name": "filter", - "type": "string", - "description": "Specifies a regular expression pattern to match against test suite and test names. Only tests with a name matching the pattern will be executed. For example, `^App` will run only tests in suites beginning with 'App'." - }, - { - "name": "headless", - "type": "boolean", - "description": "Forces all configured browsers to run in headless mode. When using the Vitest runner, this option is ignored if no browsers are configured. The Karma runner does not support this option." - }, { "name": "help", "type": "boolean", "description": "Shows a help message for this command in the console." }, - { - "name": "include", - "type": "array", - "default": [ - "**/*.spec.ts", - "**/*.test.ts" - ], - "description": "Specifies glob patterns of files to include for testing, relative to the project root. This option also has special handling for directory paths (includes all test files within) and file paths (includes the corresponding test file if one exists)." - }, - { - "name": "isolate", - "type": "boolean", - "description": "Enables isolation for test execution. When true, Vitest runs tests in separate threads or processes. This option is only available for the Vitest runner. Defaults to false to align with the Karma/Jasmine experience." - }, - { - "name": "list-tests", - "type": "boolean", - "default": false, - "description": "Lists all discovered test files and exits the process without building or executing the tests." - }, - { - "name": "output-file", - "type": "string", - "description": "Specifies a file path for the test report, applying only to the first reporter. To configure output files for multiple reporters, use the tuple format `['reporter-name', { outputFile: '...' }]` within the `reporters` option. When not provided, output is written to the console." - }, - { - "name": "progress", - "type": "boolean", - "description": "Shows build progress information in the console. Defaults to the `progress` setting of the specified `buildTarget`." - }, { "name": "project", "type": "string", - "description": "The name of the project to build. Can be an application or a library.", + "description": "The name of the project to run the command for. Can be an application or a library.", "positional": 0 - }, - { - "name": "providers-file", - "type": "string", - "description": "Specifies the path to a TypeScript file that provides an array of Angular providers for the test environment. The file must contain a default export of the provider array." - }, - { - "name": "quiet", - "type": "boolean", - "description": "Suppresses the verbose build summary and stats table on each rebuild. Defaults to `true` locally and `false` in CI environments." - }, - { - "name": "reporters", - "type": "array", - "description": "Specifies the reporters to use during test execution. Each reporter can be a string representing its name, or a tuple containing the name and an options object. Built-in reporters include 'default', 'verbose', 'dots', 'json', 'junit', 'tap', 'tap-flat', and 'html'. You can also provide a path to a custom reporter." - }, - { - "name": "runner", - "type": "string", - "default": "vitest", - "enum": [ - "karma", - "vitest" - ], - "description": "Specifies the test runner to use for test execution." - }, - { - "name": "runner-config", - "type": "string", - "description": "Specifies the configuration file for the selected test runner. If a string is provided, it will be used as the path to the configuration file. If `true`, the builder will search for a default configuration file (e.g., `vitest-base.config.ts` or `karma.conf.js`). If `false`, no external configuration file will be used.\\nFor Vitest, this enables advanced options and the use of custom plugins. Please note that while the file is loaded, the Angular team does not provide direct support for its specific contents or any third-party plugins used within it." - }, - { - "name": "setup-files", - "type": "array", - "description": "A list of paths to global setup files that are executed before the test files. The application's polyfills and the Angular TestBed are always initialized before these files." - }, - { - "name": "ts-config", - "type": "string", - "description": "The path to the TypeScript configuration file, relative to the workspace root. Defaults to `tsconfig.spec.json` in the project root if it exists. If not specified and the default does not exist, the `tsConfig` from the specified `buildTarget` will be used." - }, + } + ], + "builders": [ { - "name": "ui", - "type": "boolean", - "description": "Enables the Vitest UI for interactive test execution. This option is only available for the Vitest runner." + "name": "Unit-test", + "options": [ + { + "name": "browser-viewport", + "type": "string", + "description": "Specifies the browser viewport dimensions for browser-based tests in the format `widthxheight`." + }, + { + "name": "browsers", + "type": "array", + "description": "Specifies the browsers to use for test execution. When not specified, the Vitest runner runs tests in a Node.js environment using `happy-dom` if it is installed, otherwise `jsdom`, and the Karma runner uses the browsers of its configuration. Browser names ending with `Headless` enable headless mode (e.g., `ChromiumHeadless` for Vitest with the Playwright provider, or `ChromeHeadless` for Karma)." + }, + { + "name": "build-target", + "type": "string", + "description": "Specifies the build target to use for the unit test build in the format `project:target[:configuration]`. This defaults to the `build` target of the current project with the `development` configuration. You can also pass a comma-separated list of configurations. Example: `project:target:production,staging`." + }, + { + "name": "coverage", + "type": "boolean", + "description": "Enables coverage reporting for tests. If not specified, the coverage configuration from a runner configuration file will be used if present. Otherwise, coverage is disabled by default." + }, + { + "name": "coverage-exclude", + "type": "array", + "description": "Specifies glob patterns of files to exclude from the coverage report." + }, + { + "name": "coverage-include", + "type": "array", + "description": "Specifies glob patterns of files to include in the coverage report." + }, + { + "name": "coverage-reporters", + "type": "array", + "enum": [ + "cobertura", + "html", + "json", + "json-summary", + "lcov", + "lcovonly", + "text", + "text-summary" + ], + "description": "Specifies the reporters to use for coverage results. Each reporter can be a string representing its name, or a tuple containing the name and an options object. Built-in reporters include 'html', 'lcov', 'lcovonly', 'text', 'text-summary', 'cobertura', 'json', and 'json-summary'." + }, + { + "name": "debug", + "type": "boolean", + "default": false, + "description": "Enables debugging mode for tests, allowing the use of the Node Inspector." + }, + { + "name": "exclude", + "type": "array", + "description": "Specifies glob patterns of files to exclude from testing, relative to the project source root." + }, + { + "name": "filter", + "type": "string", + "description": "Specifies a regular expression pattern to match against test suite and test names. Only tests with a name matching the pattern will be executed. For example, `^App` will run only tests in suites beginning with 'App'." + }, + { + "name": "headless", + "type": "boolean", + "description": "Forces all configured browsers to run in headless mode. When using the Vitest runner, this option is ignored if no browsers are configured. The Karma runner does not support this option." + }, + { + "name": "include", + "type": "array", + "default": [ + "**/*.spec.ts", + "**/*.test.ts" + ], + "description": "Specifies glob patterns of files to include for testing, relative to the project source root. This option also has special handling for directory paths (includes all test files within) and file paths (includes the corresponding test file if one exists)." + }, + { + "name": "isolate", + "type": "boolean", + "description": "Enables isolation for test execution. When true, Vitest runs tests in separate threads or processes. This option is only available for the Vitest runner. Defaults to false to align with the Karma/Jasmine experience." + }, + { + "name": "list-tests", + "type": "boolean", + "default": false, + "description": "Lists all discovered test files and exits the process without building or executing the tests." + }, + { + "name": "output-file", + "type": "string", + "description": "Specifies a file path for the test report. This path is used by every configured reporter that writes to a file. To write a separate file for each reporter, use the tuple format `['reporter-name', { outputFile: '...' }]` within the `reporters` option. When not provided, output is written to the console." + }, + { + "name": "polyfills", + "type": "array", + "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'. If not specified, polyfills will be inherited from the build target." + }, + { + "name": "progress", + "type": "boolean", + "description": "Shows build progress information in the console. Defaults to the `progress` setting of the specified `buildTarget`." + }, + { + "name": "providers-file", + "type": "string", + "description": "Specifies the path to a TypeScript file that provides an array of Angular providers for the test environment. The file must contain a default export of the provider array." + }, + { + "name": "quiet", + "type": "boolean", + "description": "Suppresses the verbose build summary and stats table on each rebuild. Defaults to `true` locally and `false` in CI environments." + }, + { + "name": "reporters", + "type": "array", + "description": "Specifies the reporters to use during test execution. Each reporter can be a string representing its name, or a tuple containing the name and an options object. Built-in reporters include 'default', 'verbose', 'dots', 'json', 'junit', 'tap', 'tap-flat', and 'html'. You can also provide a path to a custom reporter." + }, + { + "name": "runner", + "type": "string", + "default": "vitest", + "enum": [ + "karma", + "vitest" + ], + "description": "Specifies the test runner to use for test execution." + }, + { + "name": "runner-args", + "type": "array", + "description": "Additional command line arguments to provide to the test runner. Each argument must be a separate value, for example `--runner-args=--update --runner-args=--bail=1`. This option is only available for the Vitest runner and only a subset of the Vitest command line options is supported. Options that have an equivalent builder option, such as `--reporter` or `--coverage`, must be configured with the builder option." + }, + { + "name": "runner-config", + "type": "string", + "description": "Specifies the configuration file for the selected test runner. If a string is provided, it will be used as the path to the configuration file. If `true`, the builder will search for a default configuration file (e.g., `vitest-base.config.mts` or `karma.conf.js`). If `false`, no external configuration file will be used.\\nFor Vitest, this enables advanced options and the use of custom plugins. Please note that while the file is loaded, the Angular team does not provide direct support for its specific contents or any third-party plugins used within it." + }, + { + "name": "setup-files", + "type": "array", + "description": "A list of paths to global setup files that are executed before the test files. The application's polyfills and the Angular TestBed are always initialized before these files." + }, + { + "name": "splitting", + "type": "boolean", + "deprecated": "No longer needed with Vitest 5.", + "default": true, + "description": "Enables code splitting for test execution. When enabled, shared code between test files is split into separate chunks. Issues with live ESM bindings in Node.js environments (such as uninitialized exports or mocking failures) can be resolved by disabling splitting. This option is only available for the Vitest runner." + }, + { + "name": "ts-config", + "type": "string", + "description": "The path to the TypeScript configuration file, relative to the workspace root. Defaults to `tsconfig.spec.json` in the project root if it exists. If not specified and the default does not exist, the `tsConfig` from the specified `buildTarget` will be used." + }, + { + "name": "ui", + "type": "boolean", + "description": "Enables the Vitest UI for interactive test execution. This option is only available for the Vitest runner." + }, + { + "name": "watch", + "type": "boolean", + "description": "Enables watch mode, which re-runs tests when source files change. Defaults to `true` in TTY environments and `false` otherwise." + } + ] }, { - "name": "watch", - "type": "boolean", - "description": "Enables watch mode, which re-runs tests when source files change. Defaults to `true` in TTY environments and `false` otherwise." + "name": "Karma", + "options": [ + { + "name": "aot", + "type": "boolean", + "default": false, + "description": "Run tests using Ahead of Time compilation." + }, + { + "name": "browsers", + "type": "string", + "description": "Override which browsers tests are run against. Set to `false` to not use any browser." + }, + { + "name": "code-coverage", + "type": "boolean", + "default": false, + "description": "Output a code coverage report." + }, + { + "name": "code-coverage-exclude", + "type": "array", + "description": "Globs to exclude from code coverage." + }, + { + "name": "define", + "type": "array", + "description": "Defines global identifiers that will be replaced with a specified constant value when found in any JavaScript or TypeScript code including libraries. The value will be used directly. String values must be put in quotes. Identifiers within Angular metadata such as Component Decorators will not be replaced." + }, + { + "name": "exclude", + "type": "array", + "description": "Globs of files to exclude, relative to the project source root." + }, + { + "name": "external-dependencies", + "type": "array", + "description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime." + }, + { + "name": "include", + "type": "array", + "default": [ + "**/*.spec.ts" + ], + "description": "Globs of files to include, relative to the project source root. \nThere are 2 special cases:\n - when a path to a directory is provided, all test files ending \".@(spec|test).@(ts|tsx)\" will be included\n - when a path to a file is provided, and a matching test file exists, it will be included instead." + }, + { + "name": "inline-style-language", + "type": "string", + "default": "css", + "enum": [ + "css", + "less", + "sass", + "scss" + ], + "description": "The stylesheet language to use for the application's inline component styles." + }, + { + "name": "karma-config", + "type": "string", + "description": "The name of the Karma configuration file." + }, + { + "name": "main", + "type": "string", + "description": "The name of the main entry-point file." + }, + { + "name": "poll", + "type": "number", + "description": "Enable and define the file watching poll time period in milliseconds." + }, + { + "name": "polyfills", + "type": "array", + "description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'." + }, + { + "name": "preserve-symlinks", + "type": "boolean", + "description": "Do not use the real path when resolving modules. If unset then will default to `true` if NodeJS option --preserve-symlinks is set." + }, + { + "name": "progress", + "type": "boolean", + "default": true, + "description": "Log progress to the console while building." + }, + { + "name": "reporters", + "type": "array", + "description": "Karma reporters to use. Directly passed to the karma runner." + }, + { + "name": "scripts", + "type": "array", + "description": "Global scripts to be included in the build." + }, + { + "name": "source-map", + "type": "boolean", + "default": true, + "description": "Output source maps for scripts and styles. For more information, see https://angular.dev/reference/configs/workspace-config#source-map-configuration." + }, + { + "name": "styles", + "type": "array", + "description": "Global styles to be included in the build." + }, + { + "name": "ts-config", + "type": "string", + "description": "The name of the TypeScript configuration file." + }, + { + "name": "watch", + "type": "boolean", + "default": true, + "description": "Re-run tests when source files change." + }, + { + "name": "web-worker-ts-config", + "type": "string", + "description": "TypeScript configuration for Web Worker modules." + } + ] } ] } \ No newline at end of file diff --git a/adev/src/content/ecosystem/rxjs-interop/output-interop.md b/adev/src/content/ecosystem/rxjs-interop/output-interop.md index 3a5fef2cd31f..75f6165f7353 100644 --- a/adev/src/content/ecosystem/rxjs-interop/output-interop.md +++ b/adev/src/content/ecosystem/rxjs-interop/output-interop.md @@ -2,15 +2,16 @@ TIP: This guide assumes you're familiar with [component and directive outputs](guide/components/outputs). -The `@angular/rxjs-interop` package offers two APIs related to component and directive outputs. +The `@angular/core/rxjs-interop` package offers two APIs related to component and directive outputs. -## Creating an output based on an RxJs Observable +## Creating an output based on an RxJS Observable The `outputFromObservable` lets you create a component or directive output that emits based on an RxJS observable: -```ts {highlight:[11]} +```ts {highlight:[9]} import {Directive} from '@angular/core'; import {outputFromObservable} from '@angular/core/rxjs-interop'; +import {Observable} from 'rxjs'; @Directive(/* ... */) class Draggable { @@ -33,6 +34,7 @@ The `outputToObservable` function lets you create an RxJS observable from a comp ```ts {highlight:[11]} import {outputToObservable} from '@angular/core/rxjs-interop'; +import {Component, output} from '@angular/core'; @Component(/*...*/) class CustomSlider { diff --git a/adev/src/content/ecosystem/rxjs-interop/signals-interop.md b/adev/src/content/ecosystem/rxjs-interop/signals-interop.md index 24d3f21ef630..f7f96e338b72 100644 --- a/adev/src/content/ecosystem/rxjs-interop/signals-interop.md +++ b/adev/src/content/ecosystem/rxjs-interop/signals-interop.md @@ -2,7 +2,7 @@ The `@angular/core/rxjs-interop` package offers APIs that help you integrate RxJS and Angular signals. -## Create a signal from an RxJs Observable with `toSignal` +## Create a signal from an RxJS Observable with `toSignal` Use the `toSignal` function to create a signal which tracks the value of an Observable. It behaves similarly to the `async` pipe in templates, but is more flexible and can be used anywhere in an application. @@ -91,8 +91,9 @@ If an Observable used in `toSignal` completes, the signal continues to return th Use the `toObservable` utility to create an `Observable` which tracks the value of a signal. The signal's value is monitored with an `effect` which emits the value to the Observable when it changes. ```ts -import {Component, signal} from '@angular/core'; +import {Component, signal, Signal, inject} from '@angular/core'; import {toObservable} from '@angular/core/rxjs-interop'; +import {switchMap} from 'rxjs'; @Component(/* ... */) export class SearchResults { @@ -128,10 +129,10 @@ Here, only the last value (3) will be logged. ## Using `rxResource` for async data -Angular's [`resource` function](/guide/signals/resource) gives you a way to incorporate async data into your application's signal-based code. Building on top of this pattern, `rxResource` lets you define a resource where the source of your data is defined in terms of an RxJS `Observable`. Instead of accepting a `loader` function, `rxResource` accepts a `stream` function that accepts an RxJS `Observable`. +Angular's [`resource` function](/guide/signals/resource) gives you a way to incorporate async data into your application's signal-based code. Building on top of this pattern, `rxResource` lets you define a resource where the source of your data is defined in terms of an RxJS `Observable`. Instead of accepting a `loader` function, `rxResource` accepts a `stream` function that returns an RxJS `Observable`. ```typescript -import {Component, inject} from '@angular/core'; +import {Component, inject, input} from '@angular/core'; import {rxResource} from '@angular/core/rxjs-interop'; @Component(/* ... */) @@ -154,3 +155,5 @@ export class UserProfile { The `stream` property accepts a factory function for an RxJS `Observable`. This factory function is passed the resource's `params` value and returns an `Observable`. The resource calls this factory function every time the `params` computation produces a new value. See [Resource loaders](/guide/signals/resource#resource-loaders) for more details on the parameters passed to the factory function. In all other ways, `rxResource` behaves like and provides the same APIs as `resource` for specifying parameters, reading values, checking loading state, and examining errors. + +The `Observable` returned from `stream` must always emit a value or an error before it completes; see [`NG0991`](/errors/NG0991) for what happens otherwise and how to avoid it. diff --git a/adev/src/content/ecosystem/rxjs-interop/take-until-destroyed.md b/adev/src/content/ecosystem/rxjs-interop/take-until-destroyed.md index fc94b13d506e..00179aa5f5dc 100644 --- a/adev/src/content/ecosystem/rxjs-interop/take-until-destroyed.md +++ b/adev/src/content/ecosystem/rxjs-interop/take-until-destroyed.md @@ -7,6 +7,7 @@ The `takeUntilDestroyed` operator, from `@angular/core/rxjs-interop`, provides a ```typescript import {Component, inject} from '@angular/core'; import {takeUntilDestroyed} from '@angular/core/rxjs-interop'; +import {Observable} from 'rxjs'; import {NotificationDispatcher, CustomPopupShower} from './some-shared-project-code'; @Component(/* ... */) diff --git a/adev/src/content/ecosystem/service-workers/app-shell.md b/adev/src/content/ecosystem/service-workers/app-shell.md index 7a7d9afc4cad..ccc29cb4bcd4 100644 --- a/adev/src/content/ecosystem/service-workers/app-shell.md +++ b/adev/src/content/ecosystem/service-workers/app-shell.md @@ -30,14 +30,16 @@ The command updates the application code and adds extra files to the project str src ├── app │ ├── app.config.server.ts # server application configuration +│ ├── app.routes.server.ts # server routes configuration │ └── app-shell # app-shell component -│ ├── app-shell.component.html -│ ├── app-shell.component.scss -│ ├── app-shell.component.spec.ts -│ └── app-shell.component.ts +│ ├── app-shell.css +│ ├── app-shell.html +│ ├── app-shell.spec.ts +│ └── app-shell.ts └── main.server.ts # main server application bootstrapping ``` + ```shell diff --git a/adev/src/content/ecosystem/service-workers/communications.md b/adev/src/content/ecosystem/service-workers/communications.md index 22822c68f262..f10efab1473f 100644 --- a/adev/src/content/ecosystem/service-workers/communications.md +++ b/adev/src/content/ecosystem/service-workers/communications.md @@ -14,15 +14,14 @@ The `SwUpdate` service supports three separate operations: ### Version updates -The `versionUpdates` is an `Observable` property of `SwUpdate` and emits five event types: - -| Event types | Details | -| :------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `VersionDetectedEvent` | Emitted when the service worker has detected a new version of the app on the server and is about to start downloading it. | -| `NoNewVersionDetectedEvent` | Emitted when the service worker has checked the version of the app on the server and did not find a new version. | -| `VersionReadyEvent` | Emitted when a new version of the app is available to be activated by clients. It may be used to notify the user of an available update or prompt them to refresh the page. | -| `VersionInstallationFailedEvent` | Emitted when the installation of a new version failed. It may be used for logging/monitoring purposes. | -| `VersionFailedEvent` | Emitted when a version encounters a critical failure (such as broken hash errors) that affects all clients using that version. Provides error details for debugging and transparency. | +The `versionUpdates` is an `Observable` property of `SwUpdate` and emits four event types: + +| Event types | Details | +| :------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `VersionDetectedEvent` | Emitted when the service worker has detected a new version of the app on the server and is about to start downloading it. | +| `NoNewVersionDetectedEvent` | Emitted when the service worker has checked the version of the app on the server and did not find a new version. | +| `VersionReadyEvent` | Emitted when a new version of the app is available to be activated by clients. It may be used to notify the user of an available update or prompt them to refresh the page. | +| `VersionInstallationFailedEvent` | Emitted when the installation of a new version failed. It may be used for logging/monitoring purposes. | diff --git a/adev/src/content/ecosystem/service-workers/config.md b/adev/src/content/ecosystem/service-workers/config.md index ac85607e4342..26783cddbad7 100644 --- a/adev/src/content/ecosystem/service-workers/config.md +++ b/adev/src/content/ecosystem/service-workers/config.md @@ -332,7 +332,7 @@ The ServiceWorker redirects navigation requests that don't match any `asset` or A request is considered to be a navigation request if: - Its [method](https://developer.mozilla.org/docs/Web/API/Request/method) is `GET` -- Its [mode](https://developer.mozilla.org/docs/Web/API/Request/mode) is `navigation` +- Its [mode](https://developer.mozilla.org/docs/Web/API/Request/mode) is `navigate` - It accepts a `text/html` response as determined by the value of the `Accept` header - Its URL matches the following criteria: - The URL must not contain a file extension (that is, a `.`) in the last path segment @@ -381,4 +381,8 @@ IMPORTANT: The `freshness` strategy usually results in more requests sent to the ### `applicationMaxAge` -This optional property enables you to configure how long the service worker will cache any requests. Within the `maxAge`, files will be served from cache. Beyond it, all requests will only be served from the network, including asset and data requests. +This optional property enables you to configure how long the service worker serves an application version from its cache. The age is measured from the time you built the application, not from the time the files were cached on the device. + +Within the `applicationMaxAge`, the service worker serves files from the cache. Beyond it, the service worker sends all requests to the network, including asset and data requests, even if no newer version exists. The application does not work offline until a new build is deployed and the device has fetched it. + +If you omit `applicationMaxAge`, there is no maximum age and the service worker serves cached versions regardless of how old they are. diff --git a/adev/src/content/ecosystem/service-workers/devops.md b/adev/src/content/ecosystem/service-workers/devops.md index 498cceabd69f..38830ddd548d 100644 --- a/adev/src/content/ecosystem/service-workers/devops.md +++ b/adev/src/content/ecosystem/service-workers/devops.md @@ -110,6 +110,24 @@ Most updates to the Angular service worker are transparent to the application. T Occasionally, a bug fix or feature in the Angular service worker might require the invalidation of old caches. In this case, the service worker transparently refreshes the application from the network. +#### Updating the service worker when only its response headers change + +Browsers only install a new service worker when the service worker script is byte-different from the installed one. +Because `ngsw-worker.js` is usually identical across builds, changing only the response headers that the server sends with it, such as a `Content-Security-Policy`, does not update the installed service worker. +The service worker keeps running with the headers it was installed with. + +To make browsers install the service worker again, register it with a versioned script URL, and change the version whenever those headers change: + +```ts +provideServiceWorker('ngsw-worker.js?v=2', { + enabled: !isDevMode(), + registrationStrategy: 'registerWhenStable:30000', +}); +``` + +Registering a different script URL makes the browser fetch and install the service worker again, even if its content is unchanged. +The Angular service worker resolves its caches and `ngsw.json` relative to its registration scope, not its script URL, so the query parameter doesn't affect cached content. + ### Bypassing the service worker In some cases, you might want to bypass the service worker entirely and let the browser handle the request. diff --git a/adev/src/content/ecosystem/service-workers/getting-started.md b/adev/src/content/ecosystem/service-workers/getting-started.md index a99bb75ca797..5775c28b8409 100644 --- a/adev/src/content/ecosystem/service-workers/getting-started.md +++ b/adev/src/content/ecosystem/service-workers/getting-started.md @@ -97,17 +97,13 @@ Instead, they are being loaded from the service worker's cache. Notice that all of the files the browser needs to render this application are cached. The `ngsw-config.json` boilerplate configuration is set up to cache the specific resources used by the CLI: -- `index.html` -- `favicon.ico` +- `index.html` (and `index.csr.html` for applications with server-side rendering or prerendering) +- `favicon.ico` and `manifest.webmanifest` - Build artifacts (JS and CSS bundles) -- Anything under `assets` -- Images and fonts directly under the configured `outputPath` (by default `./dist//`) or `resourcesOutputPath`. - See the documentation for `ng build` for more information about these options. +- Images and fonts anywhere in the browser output (by default `./dist//browser/`) IMPORTANT: The generated `ngsw-config.json` includes a limited list of cacheable fonts and images extensions. In some cases, you might want to modify the glob pattern to suit your needs. -IMPORTANT: If `resourcesOutputPath` or `assets` paths are modified after the generation of configuration file, you need to change the paths manually in `ngsw-config.json`. - ### Making changes to your application Now that you've seen how service workers cache your application, the next step is understanding how updates work. @@ -120,8 +116,8 @@ Make a change to the application, and watch the service worker install the updat This should also close the Developer Tools. 1. Shut down `http-server` (Ctrl-c). -1. Open `src/app/app.component.html` for editing. -1. Change the text `Welcome to {{title}}!` to `Bienvenue à {{title}}!`. +1. Open `src/app/app.html` for editing. +1. Change the text `Hello, {{ title() }}` to `Bienvenue à {{ title() }}!`. 1. Build and run the server again: ```shell @@ -256,6 +252,7 @@ export const appConfig: ApplicationConfig = { Available registration strategies: - **`'registerWhenStable:timeout'`** (default: `'registerWhenStable:30000'`) - Register as soon as the application stabilizes (no pending micro-/macro-tasks) but no later than the specified timeout in milliseconds + The timeout is required. Without it, `'registerWhenStable'` registers the service worker immediately. - **`'registerImmediately'`** - Register the service worker immediately - **`'registerWithDelay:timeout'`** - Register with a delay of the specified timeout in milliseconds @@ -284,6 +281,8 @@ export const delayedConfig: ApplicationConfig = { You can also provide an Observable factory function for custom registration timing: ```ts +import {ApplicationConfig, isDevMode} from '@angular/core'; +import {provideServiceWorker} from '@angular/service-worker'; import {timer} from 'rxjs'; export const customConfig: ApplicationConfig = { diff --git a/adev/src/content/ecosystem/service-workers/overview.md b/adev/src/content/ecosystem/service-workers/overview.md index dc80edeb7901..6834f37e6275 100644 --- a/adev/src/content/ecosystem/service-workers/overview.md +++ b/adev/src/content/ecosystem/service-workers/overview.md @@ -73,7 +73,7 @@ More specifically: - The browser does not download the service worker script and the `ngsw.json` manifest file - Active attempts to interact with the service worker, such as calling `SwUpdate.checkForUpdate()`, return rejected promises -- The observable events of related services, such as `SwUpdate.available`, are not triggered +- The observable events of related services, such as `SwUpdate.versionUpdates`, are not triggered It is highly recommended that you ensure that your application works even without service worker support in the browser. Although an unsupported browser ignores service worker caching, it still reports errors if the application attempts to interact with the service worker. diff --git a/adev/src/content/ecosystem/web-workers.md b/adev/src/content/ecosystem/web-workers.md index 74ba7736397a..dff85f273645 100644 --- a/adev/src/content/ecosystem/web-workers.md +++ b/adev/src/content/ecosystem/web-workers.md @@ -14,7 +14,7 @@ ng generate web-worker ``` You can add a web worker anywhere in your application. -For example, to add a web worker to the root component, `src/app/app.component.ts`, run the following command. +For example, to add a web worker to the root component, `src/app/app.ts`, run the following command. ```shell ng generate web-worker app @@ -32,9 +32,9 @@ The command performs the following actions. }); ``` -1. Adds the following scaffold code to `src/app/app.component.ts` to use the worker. +1. Adds the following scaffold code to `src/app/app.ts` to use the worker. - ```ts {header:"src/app/app.component.ts"} + ```ts {header:"src/app/app.ts"} if (typeof Worker !== 'undefined') { // Create a new const worker = new Worker(new URL('./app.worker', import.meta.url)); diff --git a/adev/src/content/examples/BUILD.bazel b/adev/src/content/examples/BUILD.bazel index 80daf0ef0afb..0f84e06ec6c3 100644 --- a/adev/src/content/examples/BUILD.bazel +++ b/adev/src/content/examples/BUILD.bazel @@ -16,9 +16,12 @@ copy_to_bin( "i18n/**", # @angular/localize/init not available in docs app "elements/**", # @angular/elements not available in docs app "service-worker-getting-started/**", # @angular/service-worker not available in docs app - # TODO: The following examples have broken code that does not compile, fix them and remove them from this list. - "reactive-forms/**", - "form-validation/**", + # Partial snapshots quoted by the guides. Each shares the final template of + # the component it precedes, which references members it does not have yet. + "form-validation/src/app/reactive/actor-form-reactive.component.1.ts", + "form-validation/src/app/reactive/actor-form-reactive.component.2.ts", + "reactive-forms/src/app/profile-editor/profile-editor.component.1.ts", + "reactive-forms/src/app/profile-editor/profile-editor.component.2.ts", ], ), visibility = ["//visibility:public"], diff --git a/adev/src/content/examples/accessibility/src/app/progress-bar.component.ts b/adev/src/content/examples/accessibility/src/app/progress-bar.component.ts index 54aa160388eb..bf9f886dbf5f 100755 --- a/adev/src/content/examples/accessibility/src/app/progress-bar.component.ts +++ b/adev/src/content/examples/accessibility/src/app/progress-bar.component.ts @@ -18,7 +18,7 @@ import {Component, input} from '@angular/core'; 'aria-valuemax': '100', // Binding that updates the current value of the progressbar. - '[attr.aria-valuenow]': 'value', + '[attr.aria-valuenow]': 'value()', }, }) export class ExampleProgressbarComponent { diff --git a/adev/src/content/examples/angular-compiler-options/tsconfig.app.json b/adev/src/content/examples/angular-compiler-options/tsconfig.app.json index 1e5510af3855..f5468d37f5e0 100644 --- a/adev/src/content/examples/angular-compiler-options/tsconfig.app.json +++ b/adev/src/content/examples/angular-compiler-options/tsconfig.app.json @@ -2,44 +2,39 @@ /* To learn more about this file see: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */ // #docregion angular-compiler-options-app { - "extends": "./tsconfig.json", - "compilerOptions": { - "outDir": "./out-tsc/app", - // #enddocregion angular-compiler-options-app - "types": [] - // #docregion angular-compiler-options-app - }, + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/app", // #enddocregion angular-compiler-options-app - "files": [ - "src/main.ts" - ], - "include": [ - "src/**/*.d.ts" - ], - "exclude": [ - "src/test.ts", - "src/**/*.spec.ts", - "src/**/*-specs.ts", - "src/**/*.avoid.ts", - "src/**/*.0.ts", - "src/**/*.1.ts", - "src/**/*.1b.ts", - "src/**/*.2.ts", - "src/**/*.3.ts", - "src/**/*.4.ts", - "src/**/*.5.ts", - "src/**/*.6.ts", - "src/**/*.7.ts", - "src/**/testing" - ], + "types": [] // #docregion angular-compiler-options-app - "angularCompilerOptions": { - "strictTemplates": true, - "preserveWhitespaces": true, - // #enddocregion angular-compiler-options-app - "sourceMap": true, - "declaration": false - // #docregion angular-compiler-options-app - } - } + }, // #enddocregion angular-compiler-options-app + "files": ["src/main.ts"], + "include": ["src/**/*.d.ts"], + "exclude": [ + "src/test.ts", + "src/**/*.spec.ts", + "src/**/*-specs.ts", + "src/**/*.avoid.ts", + "src/**/*.0.ts", + "src/**/*.1.ts", + "src/**/*.1b.ts", + "src/**/*.2.ts", + "src/**/*.3.ts", + "src/**/*.4.ts", + "src/**/*.5.ts", + "src/**/*.6.ts", + "src/**/*.7.ts", + "src/**/testing" + ], + // #docregion angular-compiler-options-app + "angularCompilerOptions": { + "preserveWhitespaces": true, + // #enddocregion angular-compiler-options-app + "sourceMap": true, + "declaration": false + // #docregion angular-compiler-options-app + } +} +// #enddocregion angular-compiler-options-app diff --git a/adev/src/content/examples/angular-compiler-options/tsconfig.json b/adev/src/content/examples/angular-compiler-options/tsconfig.json index 70b310ec64de..363cf9be3581 100644 --- a/adev/src/content/examples/angular-compiler-options/tsconfig.json +++ b/adev/src/content/examples/angular-compiler-options/tsconfig.json @@ -7,7 +7,6 @@ // #enddocregion angular-compiler-options "outDir": "./dist/out-tsc", "forceConsistentCasingInFileNames": true, - "strict": true, "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, "noImplicitReturns": true, @@ -26,8 +25,7 @@ "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, // #enddocregion angular-compiler-options - "strictInputAccessModifiers": true, - "strictTemplates": true + "strictInputAccessModifiers": true // #docregion angular-compiler-options } } diff --git a/adev/src/content/examples/aria/autocomplete/src/basic/app/app.html b/adev/src/content/examples/aria/autocomplete/src/basic/app/app.html index ae3deab84c0a..cbdcec5d8103 100644 --- a/adev/src/content/examples/aria/autocomplete/src/basic/app/app.html +++ b/adev/src/content/examples/aria/autocomplete/src/basic/app/app.html @@ -11,7 +11,6 @@ [(value)]="query" [(expanded)]="popupExpanded" (click)="popupExpanded.set(true)" - (focusout)="onBlur()" /> - - - - - - -
    - - - - - -
    - - - -
    - - - - - -
    - diff --git a/adev/src/content/examples/aria/toolbar/src/disabled/app/app/app.ts b/adev/src/content/examples/aria/toolbar/src/disabled/app/app/app.ts deleted file mode 100644 index b53e249a983d..000000000000 --- a/adev/src/content/examples/aria/toolbar/src/disabled/app/app/app.ts +++ /dev/null @@ -1,10 +0,0 @@ -import {Component} from '@angular/core'; -import {Toolbar, ToolbarWidget, ToolbarWidgetGroup} from '@angular/aria/toolbar'; - -@Component({ - selector: 'app-root', - templateUrl: 'app.html', - styleUrl: 'app.css', - imports: [Toolbar, ToolbarWidget, ToolbarWidgetGroup], -}) -export class App {} diff --git a/adev/src/content/examples/aria/toolbar/src/disabled/material/app/app.html b/adev/src/content/examples/aria/toolbar/src/disabled/material/app/app.html index 24f4950311d8..8e68b0d26b66 100644 --- a/adev/src/content/examples/aria/toolbar/src/disabled/material/app/app.html +++ b/adev/src/content/examples/aria/toolbar/src/disabled/material/app/app.html @@ -32,9 +32,9 @@ value="bold" type="button" aria-label="bold" - #bold="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="bold.selected()" + [attr.aria-pressed]="bold()" + (click)="bold.set(!bold())" translate="no" > format_bold @@ -45,9 +45,9 @@ value="italic" type="button" aria-label="italic" - #italic="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="italic.selected()" + [attr.aria-pressed]="italic()" + (click)="italic.set(!italic())" translate="no" > format_italic @@ -58,9 +58,9 @@ value="underlined" type="button" aria-label="underlined" - #underlined="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="underlined.selected()" + [attr.aria-pressed]="underlined()" + (click)="underlined.set(!underlined())" translate="no" > format_underlined @@ -82,9 +82,8 @@ type="button" value="align left" aria-label="align left" - #leftAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="leftAlign.selected()" + [attr.aria-checked]="alignment() === 'left'" translate="no" > format_align_left @@ -96,9 +95,8 @@ type="button" value="align center" aria-label="align center" - #centerAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="centerAlign.selected()" + [attr.aria-checked]="alignment() === 'center'" translate="no" > format_align_center @@ -110,9 +108,8 @@ type="button" value="align right" aria-label="align right" - #rightAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="rightAlign.selected()" + [attr.aria-checked]="alignment() === 'right'" translate="no" > format_align_right diff --git a/adev/src/content/examples/aria/toolbar/src/disabled/material/app/app.ts b/adev/src/content/examples/aria/toolbar/src/disabled/material/app/app.ts index b53e249a983d..1ce09a14ab6f 100644 --- a/adev/src/content/examples/aria/toolbar/src/disabled/material/app/app.ts +++ b/adev/src/content/examples/aria/toolbar/src/disabled/material/app/app.ts @@ -1,4 +1,4 @@ -import {Component} from '@angular/core'; +import {Component, signal} from '@angular/core'; import {Toolbar, ToolbarWidget, ToolbarWidgetGroup} from '@angular/aria/toolbar'; @Component({ @@ -7,4 +7,9 @@ import {Toolbar, ToolbarWidget, ToolbarWidgetGroup} from '@angular/aria/toolbar' styleUrl: 'app.css', imports: [Toolbar, ToolbarWidget, ToolbarWidgetGroup], }) -export class App {} +export class App { + readonly bold = signal(false); + readonly italic = signal(false); + readonly underlined = signal(false); + readonly alignment = signal<'left' | 'center' | 'right'>('left'); +} diff --git a/adev/src/content/examples/aria/toolbar/src/disabled/retro/app/app.html b/adev/src/content/examples/aria/toolbar/src/disabled/retro/app/app.html index fd05cd971a8b..001f00562dff 100644 --- a/adev/src/content/examples/aria/toolbar/src/disabled/retro/app/app.html +++ b/adev/src/content/examples/aria/toolbar/src/disabled/retro/app/app.html @@ -32,9 +32,9 @@ value="bold" type="button" aria-label="bold" - #bold="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="bold.selected()" + [attr.aria-pressed]="bold()" + (click)="bold.set(!bold())" translate="no" > format_bold @@ -45,9 +45,9 @@ value="italic" type="button" aria-label="italic" - #italic="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="italic.selected()" + [attr.aria-pressed]="italic()" + (click)="italic.set(!italic())" translate="no" > format_italic @@ -58,9 +58,9 @@ value="underlined" type="button" aria-label="underlined" - #underlined="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="underlined.selected()" + [attr.aria-pressed]="underlined()" + (click)="underlined.set(!underlined())" translate="no" > format_underlined @@ -82,9 +82,8 @@ type="button" value="align left" aria-label="align left" - #leftAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="leftAlign.selected()" + [attr.aria-checked]="alignment() === 'left'" translate="no" > format_align_left @@ -96,9 +95,8 @@ type="button" value="align center" aria-label="align center" - #centerAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="centerAlign.selected()" + [attr.aria-checked]="alignment() === 'center'" translate="no" > format_align_center @@ -110,9 +108,8 @@ type="button" value="align right" aria-label="align right" - #rightAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="rightAlign.selected()" + [attr.aria-checked]="alignment() === 'right'" translate="no" > format_align_right diff --git a/adev/src/content/examples/aria/toolbar/src/disabled/retro/app/app.ts b/adev/src/content/examples/aria/toolbar/src/disabled/retro/app/app.ts index b53e249a983d..1ce09a14ab6f 100644 --- a/adev/src/content/examples/aria/toolbar/src/disabled/retro/app/app.ts +++ b/adev/src/content/examples/aria/toolbar/src/disabled/retro/app/app.ts @@ -1,4 +1,4 @@ -import {Component} from '@angular/core'; +import {Component, signal} from '@angular/core'; import {Toolbar, ToolbarWidget, ToolbarWidgetGroup} from '@angular/aria/toolbar'; @Component({ @@ -7,4 +7,9 @@ import {Toolbar, ToolbarWidget, ToolbarWidgetGroup} from '@angular/aria/toolbar' styleUrl: 'app.css', imports: [Toolbar, ToolbarWidget, ToolbarWidgetGroup], }) -export class App {} +export class App { + readonly bold = signal(false); + readonly italic = signal(false); + readonly underlined = signal(false); + readonly alignment = signal<'left' | 'center' | 'right'>('left'); +} diff --git a/adev/src/content/examples/aria/toolbar/src/rtl/app/app.html b/adev/src/content/examples/aria/toolbar/src/rtl/app/app.html index 1f0909abadd8..321df557318f 100644 --- a/adev/src/content/examples/aria/toolbar/src/rtl/app/app.html +++ b/adev/src/content/examples/aria/toolbar/src/rtl/app/app.html @@ -31,9 +31,9 @@ value="bold" type="button" aria-label="bold" - #bold="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="bold.selected()" + [attr.aria-pressed]="bold()" + (click)="bold.set(!bold())" translate="no" > format_bold @@ -44,9 +44,9 @@ value="italic" type="button" aria-label="italic" - #italic="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="italic.selected()" + [attr.aria-pressed]="italic()" + (click)="italic.set(!italic())" translate="no" > format_italic @@ -57,9 +57,9 @@ value="underlined" type="button" aria-label="underlined" - #underlined="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="underlined.selected()" + [attr.aria-pressed]="underlined()" + (click)="underlined.set(!underlined())" translate="no" > format_underlined @@ -75,9 +75,9 @@ type="button" value="align left" aria-label="align left" - #leftAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="leftAlign.selected()" + [attr.aria-checked]="alignment() === 'left'" + (click)="alignment.set('left')" translate="no" > format_align_left @@ -89,9 +89,9 @@ type="button" value="align center" aria-label="align center" - #centerAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="centerAlign.selected()" + [attr.aria-checked]="alignment() === 'center'" + (click)="alignment.set('center')" translate="no" > format_align_center @@ -103,9 +103,9 @@ type="button" value="align right" aria-label="align right" - #rightAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="rightAlign.selected()" + [attr.aria-checked]="alignment() === 'right'" + (click)="alignment.set('right')" translate="no" > format_align_right diff --git a/adev/src/content/examples/aria/toolbar/src/rtl/app/app.ts b/adev/src/content/examples/aria/toolbar/src/rtl/app/app.ts index 8f4d0f2f2303..cc78d428172e 100644 --- a/adev/src/content/examples/aria/toolbar/src/rtl/app/app.ts +++ b/adev/src/content/examples/aria/toolbar/src/rtl/app/app.ts @@ -1,5 +1,5 @@ import {Dir} from '@angular/cdk/bidi'; -import {Component} from '@angular/core'; +import {Component, signal} from '@angular/core'; import {Toolbar, ToolbarWidget, ToolbarWidgetGroup} from '@angular/aria/toolbar'; @Component({ @@ -8,4 +8,9 @@ import {Toolbar, ToolbarWidget, ToolbarWidgetGroup} from '@angular/aria/toolbar' styleUrl: 'app.css', imports: [Dir, Toolbar, ToolbarWidget, ToolbarWidgetGroup], }) -export class App {} +export class App { + readonly bold = signal(false); + readonly italic = signal(false); + readonly underlined = signal(false); + readonly alignment = signal<'left' | 'center' | 'right'>('left'); +} diff --git a/adev/src/content/examples/aria/toolbar/src/rtl/material/app/app.html b/adev/src/content/examples/aria/toolbar/src/rtl/material/app/app.html index 8f19ae394b33..b09c5c5d37ad 100644 --- a/adev/src/content/examples/aria/toolbar/src/rtl/material/app/app.html +++ b/adev/src/content/examples/aria/toolbar/src/rtl/material/app/app.html @@ -31,9 +31,9 @@ value="bold" type="button" aria-label="bold" - #bold="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="bold.selected()" + [attr.aria-pressed]="bold()" + (click)="bold.set(!bold())" translate="no" > format_bold @@ -44,9 +44,9 @@ value="italic" type="button" aria-label="italic" - #italic="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="italic.selected()" + [attr.aria-pressed]="italic()" + (click)="italic.set(!italic())" translate="no" > format_italic @@ -57,9 +57,9 @@ value="underlined" type="button" aria-label="underlined" - #underlined="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="underlined.selected()" + [attr.aria-pressed]="underlined()" + (click)="underlined.set(!underlined())" translate="no" > format_underlined @@ -75,9 +75,9 @@ type="button" value="align left" aria-label="align left" - #leftAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="leftAlign.selected()" + [attr.aria-checked]="alignment() === 'left'" + (click)="alignment.set('left')" translate="no" > format_align_left @@ -89,9 +89,9 @@ type="button" value="align center" aria-label="align center" - #centerAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="centerAlign.selected()" + [attr.aria-checked]="alignment() === 'center'" + (click)="alignment.set('center')" translate="no" > format_align_center @@ -103,9 +103,9 @@ type="button" value="align right" aria-label="align right" - #rightAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="rightAlign.selected()" + [attr.aria-checked]="alignment() === 'right'" + (click)="alignment.set('right')" translate="no" > format_align_right diff --git a/adev/src/content/examples/aria/toolbar/src/rtl/material/app/app.ts b/adev/src/content/examples/aria/toolbar/src/rtl/material/app/app.ts index 8f4d0f2f2303..cc78d428172e 100644 --- a/adev/src/content/examples/aria/toolbar/src/rtl/material/app/app.ts +++ b/adev/src/content/examples/aria/toolbar/src/rtl/material/app/app.ts @@ -1,5 +1,5 @@ import {Dir} from '@angular/cdk/bidi'; -import {Component} from '@angular/core'; +import {Component, signal} from '@angular/core'; import {Toolbar, ToolbarWidget, ToolbarWidgetGroup} from '@angular/aria/toolbar'; @Component({ @@ -8,4 +8,9 @@ import {Toolbar, ToolbarWidget, ToolbarWidgetGroup} from '@angular/aria/toolbar' styleUrl: 'app.css', imports: [Dir, Toolbar, ToolbarWidget, ToolbarWidgetGroup], }) -export class App {} +export class App { + readonly bold = signal(false); + readonly italic = signal(false); + readonly underlined = signal(false); + readonly alignment = signal<'left' | 'center' | 'right'>('left'); +} diff --git a/adev/src/content/examples/aria/toolbar/src/rtl/retro/app/app.html b/adev/src/content/examples/aria/toolbar/src/rtl/retro/app/app.html index 887d010a6cd7..9eeee96aee27 100644 --- a/adev/src/content/examples/aria/toolbar/src/rtl/retro/app/app.html +++ b/adev/src/content/examples/aria/toolbar/src/rtl/retro/app/app.html @@ -31,9 +31,9 @@ value="bold" type="button" aria-label="bold" - #bold="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="bold.selected()" + [attr.aria-pressed]="bold()" + (click)="bold.set(!bold())" translate="no" > format_bold @@ -44,9 +44,9 @@ value="italic" type="button" aria-label="italic" - #italic="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="italic.selected()" + [attr.aria-pressed]="italic()" + (click)="italic.set(!italic())" translate="no" > format_italic @@ -57,9 +57,9 @@ value="underlined" type="button" aria-label="underlined" - #underlined="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="underlined.selected()" + [attr.aria-pressed]="underlined()" + (click)="underlined.set(!underlined())" translate="no" > format_underlined @@ -75,9 +75,9 @@ type="button" value="align left" aria-label="align left" - #leftAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="leftAlign.selected()" + [attr.aria-checked]="alignment() === 'left'" + (click)="alignment.set('left')" translate="no" > format_align_left @@ -89,9 +89,9 @@ type="button" value="align center" aria-label="align center" - #centerAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="centerAlign.selected()" + [attr.aria-checked]="alignment() === 'center'" + (click)="alignment.set('center')" translate="no" > format_align_center @@ -103,9 +103,9 @@ type="button" value="align right" aria-label="align right" - #rightAlign="ngToolbarWidget" class="material-symbols-outlined" - [aria-checked]="rightAlign.selected()" + [attr.aria-checked]="alignment() === 'right'" + (click)="alignment.set('right')" translate="no" > format_align_right diff --git a/adev/src/content/examples/aria/toolbar/src/rtl/retro/app/app.ts b/adev/src/content/examples/aria/toolbar/src/rtl/retro/app/app.ts index 8f4d0f2f2303..cc78d428172e 100644 --- a/adev/src/content/examples/aria/toolbar/src/rtl/retro/app/app.ts +++ b/adev/src/content/examples/aria/toolbar/src/rtl/retro/app/app.ts @@ -1,5 +1,5 @@ import {Dir} from '@angular/cdk/bidi'; -import {Component} from '@angular/core'; +import {Component, signal} from '@angular/core'; import {Toolbar, ToolbarWidget, ToolbarWidgetGroup} from '@angular/aria/toolbar'; @Component({ @@ -8,4 +8,9 @@ import {Toolbar, ToolbarWidget, ToolbarWidgetGroup} from '@angular/aria/toolbar' styleUrl: 'app.css', imports: [Dir, Toolbar, ToolbarWidget, ToolbarWidgetGroup], }) -export class App {} +export class App { + readonly bold = signal(false); + readonly italic = signal(false); + readonly underlined = signal(false); + readonly alignment = signal<'left' | 'center' | 'right'>('left'); +} diff --git a/adev/src/content/examples/aria/toolbar/src/vertical/app/app.html b/adev/src/content/examples/aria/toolbar/src/vertical/app/app.html index 5f64afb224c3..4999cdc5343f 100644 --- a/adev/src/content/examples/aria/toolbar/src/vertical/app/app.html +++ b/adev/src/content/examples/aria/toolbar/src/vertical/app/app.html @@ -31,9 +31,9 @@ value="bold" type="button" aria-label="bold" - #bold="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="bold.selected()" + [attr.aria-pressed]="bold()" + (click)="bold.set(!bold())" translate="no" > format_bold @@ -44,9 +44,9 @@ value="italic" type="button" aria-label="italic" - #italic="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="italic.selected()" + [attr.aria-pressed]="italic()" + (click)="italic.set(!italic())" translate="no" > format_italic @@ -57,9 +57,9 @@ value="underlined" type="button" aria-label="underlined" - #underlined="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="underlined.selected()" + [attr.aria-pressed]="underlined()" + (click)="underlined.set(!underlined())" translate="no" > format_underlined diff --git a/adev/src/content/examples/aria/toolbar/src/vertical/app/app.ts b/adev/src/content/examples/aria/toolbar/src/vertical/app/app.ts index 566bc3259464..0bdb967c9ec6 100644 --- a/adev/src/content/examples/aria/toolbar/src/vertical/app/app.ts +++ b/adev/src/content/examples/aria/toolbar/src/vertical/app/app.ts @@ -1,4 +1,4 @@ -import {Component} from '@angular/core'; +import {Component, signal} from '@angular/core'; import {Toolbar, ToolbarWidget} from '@angular/aria/toolbar'; @Component({ @@ -7,4 +7,8 @@ import {Toolbar, ToolbarWidget} from '@angular/aria/toolbar'; styleUrl: 'app.css', imports: [Toolbar, ToolbarWidget], }) -export class App {} +export class App { + readonly bold = signal(false); + readonly italic = signal(false); + readonly underlined = signal(false); +} diff --git a/adev/src/content/examples/aria/toolbar/src/vertical/material/app/app.html b/adev/src/content/examples/aria/toolbar/src/vertical/material/app/app.html index bb8dddb23cee..19b7c444437b 100644 --- a/adev/src/content/examples/aria/toolbar/src/vertical/material/app/app.html +++ b/adev/src/content/examples/aria/toolbar/src/vertical/material/app/app.html @@ -36,9 +36,9 @@ value="bold" type="button" aria-label="bold" - #bold="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="bold.selected()" + [attr.aria-pressed]="bold()" + (click)="bold.set(!bold())" translate="no" > format_bold @@ -49,9 +49,9 @@ value="italic" type="button" aria-label="italic" - #italic="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="italic.selected()" + [attr.aria-pressed]="italic()" + (click)="italic.set(!italic())" translate="no" > format_italic @@ -62,9 +62,9 @@ value="underlined" type="button" aria-label="underlined" - #underlined="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="underlined.selected()" + [attr.aria-pressed]="underlined()" + (click)="underlined.set(!underlined())" translate="no" > format_underlined diff --git a/adev/src/content/examples/aria/toolbar/src/vertical/material/app/app.ts b/adev/src/content/examples/aria/toolbar/src/vertical/material/app/app.ts index 566bc3259464..0bdb967c9ec6 100644 --- a/adev/src/content/examples/aria/toolbar/src/vertical/material/app/app.ts +++ b/adev/src/content/examples/aria/toolbar/src/vertical/material/app/app.ts @@ -1,4 +1,4 @@ -import {Component} from '@angular/core'; +import {Component, signal} from '@angular/core'; import {Toolbar, ToolbarWidget} from '@angular/aria/toolbar'; @Component({ @@ -7,4 +7,8 @@ import {Toolbar, ToolbarWidget} from '@angular/aria/toolbar'; styleUrl: 'app.css', imports: [Toolbar, ToolbarWidget], }) -export class App {} +export class App { + readonly bold = signal(false); + readonly italic = signal(false); + readonly underlined = signal(false); +} diff --git a/adev/src/content/examples/aria/toolbar/src/vertical/retro/app/app.html b/adev/src/content/examples/aria/toolbar/src/vertical/retro/app/app.html index a14447d9266b..62e9eb5205ba 100644 --- a/adev/src/content/examples/aria/toolbar/src/vertical/retro/app/app.html +++ b/adev/src/content/examples/aria/toolbar/src/vertical/retro/app/app.html @@ -31,9 +31,9 @@ value="bold" type="button" aria-label="bold" - #bold="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="bold.selected()" + [attr.aria-pressed]="bold()" + (click)="bold.set(!bold())" translate="no" > format_bold @@ -44,9 +44,9 @@ value="italic" type="button" aria-label="italic" - #italic="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="italic.selected()" + [attr.aria-pressed]="italic()" + (click)="italic.set(!italic())" translate="no" > format_italic @@ -57,9 +57,9 @@ value="underlined" type="button" aria-label="underlined" - #underlined="ngToolbarWidget" class="material-symbols-outlined" - [aria-pressed]="underlined.selected()" + [attr.aria-pressed]="underlined()" + (click)="underlined.set(!underlined())" translate="no" > format_underlined diff --git a/adev/src/content/examples/aria/toolbar/src/vertical/retro/app/app.ts b/adev/src/content/examples/aria/toolbar/src/vertical/retro/app/app.ts index 566bc3259464..0bdb967c9ec6 100644 --- a/adev/src/content/examples/aria/toolbar/src/vertical/retro/app/app.ts +++ b/adev/src/content/examples/aria/toolbar/src/vertical/retro/app/app.ts @@ -1,4 +1,4 @@ -import {Component} from '@angular/core'; +import {Component, signal} from '@angular/core'; import {Toolbar, ToolbarWidget} from '@angular/aria/toolbar'; @Component({ @@ -7,4 +7,8 @@ import {Toolbar, ToolbarWidget} from '@angular/aria/toolbar'; styleUrl: 'app.css', imports: [Toolbar, ToolbarWidget], }) -export class App {} +export class App { + readonly bold = signal(false); + readonly italic = signal(false); + readonly underlined = signal(false); +} diff --git a/adev/src/content/examples/form-validation/src/app/app.component.ts b/adev/src/content/examples/form-validation/src/app/app.component.ts index 267aaaa879d4..53283d0b274a 100644 --- a/adev/src/content/examples/form-validation/src/app/app.component.ts +++ b/adev/src/content/examples/form-validation/src/app/app.component.ts @@ -1,8 +1,7 @@ // #docregion import {Component} from '@angular/core'; import {ActorFormReactiveComponent} from './reactive/actor-form-reactive.component'; -import {ReactiveFormsModule} from '@angular/forms'; -import {FormsModule} from '@angular/forms'; +import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {ActorFormTemplateComponent} from './template/actor-form-template.component'; @Component({ diff --git a/adev/src/content/examples/form-validation/src/app/shared/actors.service.ts b/adev/src/content/examples/form-validation/src/app/shared/actors.service.ts index 47971ec6046e..06f330fbf2d5 100644 --- a/adev/src/content/examples/form-validation/src/app/shared/actors.service.ts +++ b/adev/src/content/examples/form-validation/src/app/shared/actors.service.ts @@ -1,10 +1,9 @@ -import {Injectable} from '@angular/core'; -import {Observable, of} from 'rxjs'; -import {delay} from 'rxjs/operators'; +import {Service} from '@angular/core'; +import {Observable, of, delay} from 'rxjs'; const ROLES = ['Hamlet', 'Ophelia', 'Romeo', 'Juliet']; -@Injectable({providedIn: 'root'}) +@Service() export class ActorsService { isRoleTaken(role: string): Observable { const isTaken = ROLES.includes(role); diff --git a/adev/src/content/examples/form-validation/src/app/shared/role.directive.ts b/adev/src/content/examples/form-validation/src/app/shared/role.directive.ts index afd7450ab4bb..d67f6f98b0be 100644 --- a/adev/src/content/examples/form-validation/src/app/shared/role.directive.ts +++ b/adev/src/content/examples/form-validation/src/app/shared/role.directive.ts @@ -1,16 +1,15 @@ -import {Directive, forwardRef, inject, Injectable} from '@angular/core'; +import {Directive, forwardRef, inject, Service} from '@angular/core'; import { AsyncValidator, AbstractControl, NG_ASYNC_VALIDATORS, ValidationErrors, } from '@angular/forms'; -import {catchError, map} from 'rxjs/operators'; import {ActorsService} from './actors.service'; -import {Observable, of} from 'rxjs'; +import {Observable, of, catchError, map} from 'rxjs'; // #docregion async-validator -@Injectable({providedIn: 'root'}) +@Service() export class UniqueRoleValidator implements AsyncValidator { private readonly actorsService = inject(ActorsService); diff --git a/adev/src/content/examples/i18n/doc-files/apache2.conf b/adev/src/content/examples/i18n/doc-files/apache2.conf index 431111e47fe9..7f6dc6f66d62 100644 --- a/adev/src/content/examples/i18n/doc-files/apache2.conf +++ b/adev/src/content/examples/i18n/doc-files/apache2.conf @@ -1,4 +1,4 @@ -# docregion +# #docregion ServerName localhost DocumentRoot /www/data diff --git a/adev/src/content/examples/reactive-forms/src/app/profile-editor/profile-editor.component.ts b/adev/src/content/examples/reactive-forms/src/app/profile-editor/profile-editor.component.ts index f66589991177..e657e0d53262 100644 --- a/adev/src/content/examples/reactive-forms/src/app/profile-editor/profile-editor.component.ts +++ b/adev/src/content/examples/reactive-forms/src/app/profile-editor/profile-editor.component.ts @@ -1,10 +1,9 @@ // #docplaster import {Component, inject} from '@angular/core'; -import {FormBuilder, ReactiveFormsModule} from '@angular/forms'; +import {FormArray, FormBuilder, ReactiveFormsModule} from '@angular/forms'; // #docregion validator-imports import {Validators} from '@angular/forms'; // #enddocregion validator-imports -import {FormArray} from '@angular/forms'; import {JsonPipe} from '@angular/common'; @Component({ diff --git a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/ng-package.json b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/ng-package.json deleted file mode 100644 index 7ca31cd52817..000000000000 --- a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/ng-package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/my-lib", - "lib": { - "entryFile": "src/public_api.ts" - } -} \ No newline at end of file diff --git a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/package.json b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/package.json index 1d4d218716d1..349201ff23d4 100644 --- a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/package.json +++ b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/package.json @@ -4,6 +4,9 @@ "name": "my-lib", "version": "0.0.1", // #enddocregion collection + "exports": { + ".": "./src/public_api.ts" + }, "scripts": { "build": "tsc -p tsconfig.schematics.json", "postbuild": "copyfiles schematics/*/schema.json schematics/*/files/** schematics/collection.json ../../dist/my-lib/" diff --git a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/schematics/my-service/files/__name@dasherize__.service.ts.template b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/schematics/my-service/files/__name@dasherize__.service.ts.template index deb1fb4294f7..c62c4251f321 100644 --- a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/schematics/my-service/files/__name@dasherize__.service.ts.template +++ b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/schematics/my-service/files/__name@dasherize__.service.ts.template @@ -1,10 +1,8 @@ // #docregion template -import { Injectable } from '@angular/core'; +import { Service } from '@angular/core'; import { HttpClient } from '@angular/common/http'; -@Injectable({ - providedIn: 'root' -}) +@Service() export class <%= classify(name) %>Service { private http = inject(HttpClient); } \ No newline at end of file diff --git a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/src/lib/my-lib.service.ts b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/src/lib/my-lib.service.ts index af502af5d279..c8964ee8e6c1 100644 --- a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/src/lib/my-lib.service.ts +++ b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/src/lib/my-lib.service.ts @@ -1,6 +1,4 @@ -import {Injectable} from '@angular/core'; +import {Service} from '@angular/core'; -@Injectable({ - providedIn: 'root', -}) +@Service() export class MyLibService {} diff --git a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/tsconfig.lib.json b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/tsconfig.lib.json index 04bde6995ae5..516a73d97e85 100644 --- a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/tsconfig.lib.json +++ b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/tsconfig.lib.json @@ -11,17 +11,10 @@ "experimentalDecorators": true, "importHelpers": true, "types": [], - "lib": [ - "dom", - "es2018" - ] + "lib": ["dom", "es2018"] }, "angularCompilerOptions": { - "strictTemplates": true, "strictInjectionParameters": true }, - "exclude": [ - "src/test.ts", - "**/*.spec.ts" - ] + "exclude": ["src/test.ts", "**/*.spec.ts"] } diff --git a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/tsconfig.schematics.json b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/tsconfig.schematics.json index 4722c6029ac0..1cc66878bf12 100644 --- a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/tsconfig.schematics.json +++ b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/tsconfig.schematics.json @@ -1,10 +1,7 @@ { "compilerOptions": { "baseUrl": ".", - "lib": [ - "es2018", - "dom" - ], + "lib": ["es2018", "dom"], "declaration": true, "module": "commonjs", "moduleResolution": "node", @@ -19,17 +16,9 @@ "skipDefaultLibCheck": true, "skipLibCheck": true, "sourceMap": true, - "strictNullChecks": true, "target": "es6", - "types": [ - "jasmine", - "node" - ] + "types": ["jasmine", "node"] }, - "include": [ - "schematics/**/*" - ], - "exclude": [ - "schematics/*/files/**/*" - ] -} \ No newline at end of file + "include": ["schematics/**/*"], + "exclude": ["schematics/*/files/**/*"] +} diff --git a/adev/src/content/examples/service-worker-getting-started/src/app/check-for-update.service.ts b/adev/src/content/examples/service-worker-getting-started/src/app/check-for-update.service.ts index c793473213c0..7b5bdd77c55e 100755 --- a/adev/src/content/examples/service-worker-getting-started/src/app/check-for-update.service.ts +++ b/adev/src/content/examples/service-worker-getting-started/src/app/check-for-update.service.ts @@ -1,9 +1,8 @@ -import {ApplicationRef, inject, Injectable} from '@angular/core'; +import {ApplicationRef, inject, Service} from '@angular/core'; import {SwUpdate} from '@angular/service-worker'; -import {concat, interval} from 'rxjs'; -import {first} from 'rxjs/operators'; +import {concat, interval, first} from 'rxjs'; -@Injectable({providedIn: 'root'}) +@Service() export class CheckForUpdateService { private appRef = inject(ApplicationRef); private updates = inject(SwUpdate); diff --git a/adev/src/content/examples/service-worker-getting-started/src/app/handle-unrecoverable-state.service.ts b/adev/src/content/examples/service-worker-getting-started/src/app/handle-unrecoverable-state.service.ts index c80f77d15f3d..2ea3554eddcc 100644 --- a/adev/src/content/examples/service-worker-getting-started/src/app/handle-unrecoverable-state.service.ts +++ b/adev/src/content/examples/service-worker-getting-started/src/app/handle-unrecoverable-state.service.ts @@ -1,10 +1,10 @@ -import {inject, Injectable} from '@angular/core'; +import {inject, Service} from '@angular/core'; import {SwUpdate} from '@angular/service-worker'; function notifyUser(message: string): void {} // #docregion sw-unrecoverable-state -@Injectable({providedIn: 'root'}) +@Service() export class HandleUnrecoverableStateService { private updates = inject(SwUpdate); constructor() { diff --git a/adev/src/content/examples/service-worker-getting-started/src/app/log-update.service.ts b/adev/src/content/examples/service-worker-getting-started/src/app/log-update.service.ts index 94036199bf54..1a29753826a1 100755 --- a/adev/src/content/examples/service-worker-getting-started/src/app/log-update.service.ts +++ b/adev/src/content/examples/service-worker-getting-started/src/app/log-update.service.ts @@ -1,8 +1,8 @@ -import {inject, Injectable} from '@angular/core'; +import {inject, Service} from '@angular/core'; import {SwUpdate, VersionReadyEvent} from '@angular/service-worker'; // #docregion sw-update -@Injectable({providedIn: 'root'}) +@Service() export class LogUpdateService { private updates = inject(SwUpdate); constructor() { @@ -18,9 +18,6 @@ export class LogUpdateService { case 'VERSION_INSTALLATION_FAILED': console.log(`Failed to install app version '${evt.version.hash}': ${evt.error}`); break; - case 'VERSION_FAILED': - console.log(`Version '${evt.version.hash}' failed with error: ${evt.error}`); - break; } }); } diff --git a/adev/src/content/examples/service-worker-getting-started/src/app/prompt-update.service.ts b/adev/src/content/examples/service-worker-getting-started/src/app/prompt-update.service.ts index ef3739c991ab..05b50f3da307 100755 --- a/adev/src/content/examples/service-worker-getting-started/src/app/prompt-update.service.ts +++ b/adev/src/content/examples/service-worker-getting-started/src/app/prompt-update.service.ts @@ -1,7 +1,7 @@ // #docplaster -import {inject, Injectable} from '@angular/core'; +import {inject, Service} from '@angular/core'; // #docregion sw-replicate-available -import {filter, map} from 'rxjs/operators'; +import {filter, map} from 'rxjs'; // #enddocregion sw-replicate-available import {SwUpdate, VersionReadyEvent} from '@angular/service-worker'; @@ -10,7 +10,7 @@ function promptUser(event: VersionReadyEvent): boolean { } // #docregion sw-version-ready -@Injectable({providedIn: 'root'}) +@Service() export class PromptUpdateService { constructor() { const swUpdate = inject(SwUpdate); diff --git a/adev/src/content/examples/signal-forms/src/comparison/app/signal-forms.ts b/adev/src/content/examples/signal-forms/src/comparison/app/signal-forms.ts index 025032bf5ed1..d72f65ade13d 100644 --- a/adev/src/content/examples/signal-forms/src/comparison/app/signal-forms.ts +++ b/adev/src/content/examples/signal-forms/src/comparison/app/signal-forms.ts @@ -1,11 +1,19 @@ import {Component, signal} from '@angular/core'; -import {email, form, FormField, minLength, required} from '@angular/forms/signals'; +import { + email, + form, + FormField, + FormRoot, + minLength, + required, + submit, +} from '@angular/forms/signals'; @Component({ selector: 'app-login', - imports: [FormField], + imports: [FormField, FormRoot], template: ` -
    +
    ", - "closeTagSpan": "", - "startBlockDefer": "@defer (when isLoaded) {", - "startBlockError": "@error {", - "startBlockLoading": "@loading {", - "startBlockPlaceholder": "@placeholder {", - "startHeadingLevel1": "

    ", - "startTagButton": "

    ", + "closeTagButton": "", + "closeTagDiv": "", + "closeTagSpan": "", + "startBlockDefer": "@defer (when isLoaded) {", + "startBlockError": "@error {", + "startBlockLoading": "@loading {", + "startBlockPlaceholder": "@placeholder {", + "startHeadingLevel1": "

    ", + "startTagButton": "after + } @error { + before

    error

    after + } + + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { className: "MyApp", filePath: "defer.ts", lineNumber: 20 }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/blocks/for_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/blocks/for_template.js index 78935f74baea..f15858175975 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/blocks/for_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/blocks/for_template.js @@ -1,71 +1,127 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyApp_For_3_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 1); - $r3$.ɵɵelement(1, "span"); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 1); + i0.ɵɵelement(1, "span"); + i0.ɵɵi18nEnd(); } } - function MyApp_ForEmpty_4_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 2); - $r3$.ɵɵelement(1, "div"); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 2); + i0.ɵɵelement(1, "div"); + i0.ɵɵi18nEnd(); } } - -… export class MyApp { - … - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - … - consts: () => { - let i18n_0; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_ID_WITH_SUFFIX$ = /* @ts-ignore */ goog.getMsg(" Content: {$startBlockFor} before{$startTagSpan}middle{$closeTagSpan}after {$closeBlockFor}{$startBlockEmpty} before{$startTagDiv}empty{$closeTagDiv}after {$closeBlockEmpty}! ", { - "closeBlockEmpty": "\uFFFD/*4:2\uFFFD", - "closeBlockFor": "\uFFFD/*3:1\uFFFD", - "closeTagDiv": "\uFFFD/#1:2\uFFFD", - "closeTagSpan": "\uFFFD/#1:1\uFFFD", - "startBlockEmpty": "\uFFFD*4:2\uFFFD", - "startBlockFor": "\uFFFD*3:1\uFFFD", - "startTagDiv": "\uFFFD#1:2\uFFFD", - "startTagSpan": "\uFFFD#1:1\uFFFD" - }, { - original_code: { - "closeBlockEmpty": "}", - "closeBlockFor": "}", - "closeTagDiv": "", - "closeTagSpan": "", - "startBlockEmpty": "@empty {", - "startBlockFor": "@for (item of items; track item) {", - "startTagDiv": "
    ", - "startTagSpan": "" - } - }); - i18n_0 = $MSG_ID_WITH_SUFFIX$; - } else { - /* @ts-ignore */ - i18n_0 = $localize` Content: ${"\uFFFD*3:1\uFFFD"}:START_BLOCK_FOR: before${"\uFFFD#1:1\uFFFD"}:START_TAG_SPAN:middle${"\uFFFD/#1:1\uFFFD"}:CLOSE_TAG_SPAN:after ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_EMPTY: before${"\uFFFD#1:2\uFFFD"}:START_TAG_DIV:empty${"\uFFFD/#1:2\uFFFD"}:CLOSE_TAG_DIV:after ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_EMPTY:! `; - } - return [i18n_0]; - }, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵrepeaterCreate(2, MyApp_For_3_Template, 2, 0, null, null, $r3$.ɵɵrepeaterTrackByIdentity, false, MyApp_ForEmpty_4_Template, 2, 0); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵrepeater(ctx.items); - } - }, - … -}); + items = [1, 2, 3]; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + standalone: false, + decls: 5, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7811380212725452224$$FOR_TS_0 = + /* @ts-ignore */ + goog.getMsg( + " Content: {$startBlockFor} before{$startTagSpan}middle{$closeTagSpan}after {$closeBlockFor}{$startBlockEmpty} before{$startTagDiv}empty{$closeTagDiv}after {$closeBlockEmpty}! ", + { + "closeBlockEmpty": "\uFFFD/*4:2\uFFFD", + "closeBlockFor": "\uFFFD/*3:1\uFFFD", + "closeTagDiv": "\uFFFD/#1:2\uFFFD", + "closeTagSpan": "\uFFFD/#1:1\uFFFD", + "startBlockEmpty": "\uFFFD*4:2\uFFFD", + "startBlockFor": "\uFFFD*3:1\uFFFD", + "startTagDiv": "\uFFFD#1:2\uFFFD", + "startTagSpan": "\uFFFD#1:1\uFFFD" + }, + { + original_code: { + "closeBlockEmpty": "}", + "closeBlockFor": "}", + "closeTagDiv": "
    ", + "closeTagSpan": "", + "startBlockEmpty": "@empty {", + "startBlockFor": "@for (item of items; track item) {", + "startTagDiv": "
    ", + "startTagSpan": "" + } + } + ); + i18n_0 = MSG_EXTERNAL_7811380212725452224$$FOR_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize` Content: ${"\uFFFD*3:1\uFFFD"}:START_BLOCK_FOR: before${"\uFFFD#1:1\uFFFD"}:START_TAG_SPAN:middle${"\uFFFD/#1:1\uFFFD"}:CLOSE_TAG_SPAN:after ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_EMPTY: before${"\uFFFD#1:2\uFFFD"}:START_TAG_DIV:empty${"\uFFFD/#1:2\uFFFD"}:CLOSE_TAG_DIV:after ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_EMPTY:! `; + } + return [i18n_0]; + }, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵrepeaterCreate( + 2, + MyApp_For_3_Template, + 2, + 0, + null, + null, + i0.ɵɵrepeaterTrackByIdentity, + false, + MyApp_ForEmpty_4_Template, + 2, + 0 + ); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵrepeater(ctx.items); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` +
    + Content: + @for (item of items; track item) { + beforemiddleafter + } @empty { + before
    empty
    after + }! +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { className: "MyApp", filePath: "for.ts", lineNumber: 16 }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/blocks/switch_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/blocks/switch_template.js index 44b3dd58303d..07b7e4f41f2b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/blocks/switch_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/blocks/switch_template.js @@ -1,87 +1,135 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyApp_Case_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 1); - $r3$.ɵɵelement(1, "span"); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 1); + i0.ɵɵelement(1, "span"); + i0.ɵɵi18nEnd(); } } - function MyApp_Case_3_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 2); - $r3$.ɵɵelement(1, "div"); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 2); + i0.ɵɵelement(1, "div"); + i0.ɵɵi18nEnd(); } } - function MyApp_Case_4_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 3); - $r3$.ɵɵelement(1, "button"); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 3); + i0.ɵɵelement(1, "button"); + i0.ɵɵi18nEnd(); } } - -… export class MyApp { - … - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - … - consts: () => { - let i18n_0; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_ID_WITH_SUFFIX$ = /* @ts-ignore */ goog.getMsg(" Content: {$startBlockCase}before{$startTagSpan}zero{$closeTagSpan}after{$closeBlockCase}{$startBlockCase_1}before{$startTagDiv}one{$closeTagDiv}after{$closeBlockCase}{$startBlockDefault}before{$startTagButton}otherwise{$closeTagButton}after{$closeBlockDefault}", { - "closeBlockCase": "[\uFFFD/*2:1\uFFFD|\uFFFD/*3:2\uFFFD]", - "closeBlockDefault": "\uFFFD/*4:3\uFFFD", - "closeTagButton": "\uFFFD/#1:3\uFFFD", - "closeTagDiv": "\uFFFD/#1:2\uFFFD", - "closeTagSpan": "\uFFFD/#1:1\uFFFD", - "startBlockCase": "\uFFFD*2:1\uFFFD", - "startBlockCase_1": "\uFFFD*3:2\uFFFD", - "startBlockDefault": "\uFFFD*4:3\uFFFD", - "startTagButton": "\uFFFD#1:3\uFFFD", - "startTagDiv": "\uFFFD#1:2\uFFFD", - "startTagSpan": "\uFFFD#1:1\uFFFD" - }, { - original_code: { - "closeBlockCase": "}", - "closeBlockDefault": "}", - "closeTagButton": "", - "closeTagDiv": "
    ", - "closeTagSpan": "", - "startBlockCase": "@case (0) {", - "startBlockCase_1": "@case (1) {", - "startBlockDefault": "@default {", - "startTagButton": "", + "closeTagDiv": "", + "closeTagSpan": "", + "startBlockCase": "@case (0) {", + "startBlockCase_1": "@case (1) {", + "startBlockDefault": "@default {", + "startTagButton": "after} + } + + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { className: "MyApp", filePath: "switch.ts", lineNumber: 16 }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/bound_attributes.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/bound_attributes.js index 1ab5dc6ea1b1..63fb1d3c5126 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/bound_attributes.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/bound_attributes.js @@ -1,10 +1,85 @@ -consts: [[3, "title"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div", 0); - } - if (rf & 2) { - $r3$.ɵɵproperty("title", ctx.title); - $r3$.ɵɵattribute("label", ctx.label); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + title = ""; + label = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 2, + consts: [[3, "title"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div", 0); + } + if (rf & 2) { + i0.ɵɵproperty("title", ctx.title); + i0.ɵɵattribute("label", ctx.label); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "bound_attributes.ts", + lineNumber: 13 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/empty_attributes.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/empty_attributes.js index 694cd412806e..817bb68e7c64 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/empty_attributes.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/empty_attributes.js @@ -1,7 +1,76 @@ -consts: [["id", "static", "title", ""]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div", 0); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [["id", "static", "title", ""]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div", 0); + } + }, + encapsulation: 2 + }); } - +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "empty_attributes.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/i18n_root_node_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/i18n_root_node_template.js index 102c961dd282..5e59a442b883 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/i18n_root_node_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/i18n_root_node_template.js @@ -1,16 +1,107 @@ -consts: () => { - __i18nMsg__('Element title', [], {}, {meaning: 'm', desc: 'd'}) - __i18nMsg__('Some content', [], {}, {}) - return [ - $i18n_1$, - ["title", $i18n_0$] - ]; - }, - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div", 1); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - } - } - \ No newline at end of file +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc d + * @meaning m + */ + const MSG_EXTERNAL_7727043314656808423$$I18N_ROOT_NODE_TS_0 = + /* @ts-ignore */ + goog.getMsg("Element title"); + i18n_0 = MSG_EXTERNAL_7727043314656808423$$I18N_ROOT_NODE_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:m|d:Element title`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4969674997806975147$$I18N_ROOT_NODE_TS_1 = + /* @ts-ignore */ + goog.getMsg("Some content"); + i18n_1 = MSG_EXTERNAL_4969674997806975147$$I18N_ROOT_NODE_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`Some content`; + } + return [i18n_1, ["title", i18n_0]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    Some content
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "i18n_root_node.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_basic_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_basic_template.js index bd5d98d7e0da..c0d974c3c18a 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_basic_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_basic_template.js @@ -1,34 +1,278 @@ -decls: 5, -vars: 8, -consts: () => { - __i18nMsg__('static text', [], {}, {}) - __i18nMsg__('intro {$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ valueA | uppercase }}'}}, {meaning: 'm', desc: 'd'}) - __i18nMsg__('{$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ valueB }}'}}, {meaning: 'm1', desc: 'd1'}) - __i18nMsg__('{$interpolation} and {$interpolation_1} and again {$interpolation_2}', [['interpolation', String.raw`\uFFFD0\uFFFD`],['interpolation_1', String.raw`\uFFFD1\uFFFD`],['interpolation_2', String.raw`\uFFFD2\uFFFD`]], {original_code: {'interpolation': '{{ valueA }}', 'interpolation_1': '{{ valueB }}', 'interpolation_2': '{{ valueA + valueB }}'}}, {meaning: 'm2', desc: 'd2'}) - __i18nMsg__('{$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ valueC }}'}}, {}) -return [ - ["title", $i18n_1$, "aria-label", $i18n_2$], - ["title", $i18n_3$, "aria-roledescription", $i18n_4$], - ["id", "dynamic-1", "aria-roledescription", $i18n_0$, __AttributeMarker.I18n__, - "title", "aria-label"], - ["id", "dynamic-2", __AttributeMarker.I18n__, "title", "aria-roledescription"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div", 2); - $r3$.ɵɵpipe(1, "uppercase"); - $r3$.ɵɵi18nAttributes(2, 0); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(3, "div", 3); - $r3$.ɵɵi18nAttributes(4, 1); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵi18nExp($r3$.ɵɵpipeBind1(1, 6, ctx.valueA))(ctx.valueB); - $r3$.ɵɵi18nApply(2); - $r3$.ɵɵadvance(3); - $r3$.ɵɵi18nExp(ctx.valueA)(ctx.valueB)(ctx.valueA + ctx.valueB)(ctx.valueC); - $r3$.ɵɵi18nApply(4); - } +import { Component, Directive, Input, NgModule, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; +export class UppercasePipe { + transform(v) {} + static ɵfac = function UppercasePipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || UppercasePipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "uppercase", + type: UppercasePipe, + pure: true, + standalone: false + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + UppercasePipe, + [ + { + type: Pipe, + args: [ + { + name: "uppercase", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class DivDir { + al; + arl; + static ɵfac = function DivDir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || DivDir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: DivDir, + selectors: [["div"]], + inputs: { al: [0, "aria-label", "al"], arl: [0, "aria-roledescription", "arl"] }, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + DivDir, + [ + { + type: Directive, + args: [ + { + selector: "div", + standalone: false + } + ] + } + ], + null, + { + al: [ + { + type: Input, + args: ["aria-label"] + } + ], + arl: [ + { + type: Input, + args: ["aria-roledescription"] + } + ] + } + ); +})(); +export class MyComponent { + valueA; + valueB; + valueC; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 5, + vars: 8, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5526535577705876535$$INTERPOLATION_BASIC_TS_0 = + /* @ts-ignore */ + goog.getMsg("static text"); + i18n_0 = MSG_EXTERNAL_5526535577705876535$$INTERPOLATION_BASIC_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`static text`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc d + * @meaning m + */ + const MSG_EXTERNAL_8977039798304050198$$INTERPOLATION_BASIC_TS_1 = + /* @ts-ignore */ + goog.getMsg( + "intro {$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ valueA | uppercase }}" } } + ); + i18n_1 = MSG_EXTERNAL_8977039798304050198$$INTERPOLATION_BASIC_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`:m|d:intro ${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc d1 + * @meaning m1 + */ + const MSG_EXTERNAL_7432761130955693041$$INTERPOLATION_BASIC_TS_2 = + /* @ts-ignore */ + goog.getMsg( + "{$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ valueB }}" } } + ); + i18n_2 = MSG_EXTERNAL_7432761130955693041$$INTERPOLATION_BASIC_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`:m1|d1:${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + let i18n_3; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc d2 + * @meaning m2 + */ + const MSG_EXTERNAL_7566208596013750546$$INTERPOLATION_BASIC_TS_3 = + /* @ts-ignore */ + goog.getMsg( + "{$interpolation} and {$interpolation_1} and again {$interpolation_2}", + { + "interpolation": "\uFFFD0\uFFFD", + "interpolation_1": "\uFFFD1\uFFFD", + "interpolation_2": "\uFFFD2\uFFFD" + }, + { + original_code: { + "interpolation": "{{ valueA }}", + "interpolation_1": "{{ valueB }}", + "interpolation_2": "{{ valueA + valueB }}" + } + } + ); + i18n_3 = MSG_EXTERNAL_7566208596013750546$$INTERPOLATION_BASIC_TS_3; + } else { + /* @ts-ignore */ + i18n_3 = $localize`:m2|d2:${"\uFFFD0\uFFFD"}:INTERPOLATION: and ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: and again ${"\uFFFD2\uFFFD"}:INTERPOLATION_2:`; + } + let i18n_4; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6639222533406278123$$INTERPOLATION_BASIC_TS_4 = + /* @ts-ignore */ + goog.getMsg( + "{$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ valueC }}" } } + ); + i18n_4 = MSG_EXTERNAL_6639222533406278123$$INTERPOLATION_BASIC_TS_4; + } else { + /* @ts-ignore */ + i18n_4 = $localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + return [ + ["title", i18n_1, "aria-label", i18n_2], + ["title", i18n_3, "aria-roledescription", i18n_4], + ["id", "dynamic-1", "aria-roledescription", i18n_0, 6, "title", "aria-label"], + ["id", "dynamic-2", 6, "title", "aria-roledescription"] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 2); + i0.ɵɵpipe(1, "uppercase"); + i0.ɵɵi18nAttributes(2, 0); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(3, "div", 3); + i0.ɵɵi18nAttributes(4, 1); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(1, 6, ctx.valueA))(ctx.valueB); + i0.ɵɵi18nApply(2); + i0.ɵɵadvance(3); + i0.ɵɵi18nExp(ctx.valueA)(ctx.valueB)(ctx.valueA + ctx.valueB)(ctx.valueC); + i0.ɵɵi18nApply(4); + } + }, + dependencies: [DivDir, UppercasePipe], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "interpolation_basic.ts", + lineNumber: 35 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [UppercasePipe, MyComponent, DivDir] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [UppercasePipe, MyComponent, DivDir] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_complex_expressions_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_complex_expressions_template.js index 5e4c573d2635..f89aa9028a51 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_complex_expressions_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_complex_expressions_template.js @@ -1,20 +1,105 @@ -decls: 2, -vars: 1, -consts: () => { - __i18nMsg__('{$interpolation} title', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{valueA.getRawValue()?.getTitle()}}'}}, {}) - return [ - ["title", $i18n_0$], - [__AttributeMarker.I18n__, "title"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div", 1); - $r3$.ɵɵi18nAttributes(1, 0); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - i0.ɵɵi18nExp(ctx.valueA.getRawValue()?.getTitle()); - i0.ɵɵi18nApply(1); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + valueA; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3462388422673575127$$INTERPOLATION_COMPLEX_EXPRESSIONS_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$interpolation} title", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{valueA.getRawValue()?.getTitle()}}" } } + ); + i18n_0 = MSG_EXTERNAL_3462388422673575127$$INTERPOLATION_COMPLEX_EXPRESSIONS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: title`; + } + return [ + ["title", i18n_0], + [6, "title"] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵi18nAttributes(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵi18nExp(ctx.valueA.getRawValue()?.getTitle()); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "interpolation_complex_expressions.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_complex_expressions_template_use_null.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_complex_expressions_template_use_null.js index 20dca2cea363..8a0ca181da9b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_complex_expressions_template_use_null.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_complex_expressions_template_use_null.js @@ -1,21 +1,106 @@ -decls: 2, -vars: 1, -consts: () => { - __i18nMsg__('{$interpolation} title', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{valueA.getRawValue()?.getTitle()}}'}}, {}) - return [ - ["title", $i18n_0$], - [__AttributeMarker.I18n__, "title"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div", 1); - $r3$.ɵɵi18nAttributes(1, 0); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - let $tmp_0_0$; - $r3$.ɵɵi18nExp(($tmp_0_0$ = ctx.valueA.getRawValue()) == null ? null : $tmp_0_0$.getTitle()); - $r3$.ɵɵi18nApply(1); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + valueA; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3462388422673575127$$INTERPOLATION_COMPLEX_EXPRESSIONS_USE_NULL_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$interpolation} title", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{valueA.getRawValue()?.getTitle()}}" } } + ); + i18n_0 = MSG_EXTERNAL_3462388422673575127$$INTERPOLATION_COMPLEX_EXPRESSIONS_USE_NULL_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: title`; + } + return [ + ["title", i18n_0], + [6, "title"] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵi18nAttributes(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + let tmp_0_0; + i0.ɵɵi18nExp((tmp_0_0 = ctx.valueA.getRawValue()) == null ? null : tmp_0_0.getTitle()); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "interpolation_complex_expressions_use_null.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_nested_context_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_nested_context_template.js index 09ea9d05902f..46f361a9e74e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_nested_context_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/interpolation_nested_context_template.js @@ -1,33 +1,152 @@ +import { Component, NgModule, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_0_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div")(1, "div", 2); - $r3$.ɵɵpipe(2, "uppercase"); - $r3$.ɵɵi18nAttributes(3, 0); - $r3$.ɵɵelementEnd()(); - } - if (rf & 2) { - const $outer_r1$ = ctx.$implicit; - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp($r3$.ɵɵpipeBind1(2, 1, $outer_r1$)); - $r3$.ɵɵi18nApply(3); - } + if (rf & 1) { + i0.ɵɵelementStart(0, "div")(1, "div", 2); + i0.ɵɵpipe(2, "uppercase"); + i0.ɵɵi18nAttributes(3, 0); + i0.ɵɵelementEnd()(); } - … - decls: 1, - vars: 1, - consts: () => { - __i18nMsg__('different scope {$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ outer | uppercase }}'}}, {meaning: 'm', desc: 'd'}) - return [ - ["title", $i18n_0$], - [__AttributeMarker.Template__, "ngFor", "ngForOf"], - [__AttributeMarker.I18n__, "title"] - ]; - }, - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_div_0_Template, 4, 3, "div", 1); - } - if (rf & 2) { - $r3$.ɵɵproperty("ngForOf", ctx.items); - } + if (rf & 2) { + const outer_r1 = ctx.$implicit; + i0.ɵɵadvance(); + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(2, 1, outer_r1)); + i0.ɵɵi18nApply(3); } +} +export class UppercasePipe { + transform(v) {} + static ɵfac = function UppercasePipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || UppercasePipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "uppercase", + type: UppercasePipe, + pure: true, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + UppercasePipe, + [ + { + type: Pipe, + args: [ + { + name: "uppercase", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class MyComponent { + outer = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc d + * @meaning m + */ + const MSG_EXTERNAL_8538466649243975456$$INTERPOLATION_NESTED_CONTEXT_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "different scope {$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ outer | uppercase }}" } } + ); + i18n_0 = MSG_EXTERNAL_8538466649243975456$$INTERPOLATION_NESTED_CONTEXT_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:m|d:different scope ${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + return [ + ["title", i18n_0], + [4, "ngFor", "ngForOf"], + [6, "title"] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_div_0_Template, 4, 3, "div", 1); + } + if (rf & 2) { + i0.ɵɵproperty("ngForOf", ctx.items); + } + }, + dependencies: [UppercasePipe], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "interpolation_nested_context.ts", + lineNumber: 20 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [UppercasePipe, MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [UppercasePipe, MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/invalid_i18n_meta.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/invalid_i18n_meta.js index 3bf281f448c5..ca0f60674bdf 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/invalid_i18n_meta.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/invalid_i18n_meta.js @@ -1,26 +1,104 @@ -// NOTE: Keeping raw content (avoiding `__i18nMsg__` macro) to illustrate message id sanitization. -let $I18N_0$; -if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_ID_WITH_INVALID_CHARS$$APP_SPEC_TS_1$ = /* @ts-ignore */ goog.getMsg("Element title"); - $I18N_0$ = $MSG_EXTERNAL_ID_WITH_INVALID_CHARS$$APP_SPEC_TS_1$; -} else { - /* @ts-ignore */ - $I18N_0$ = $localize`:@@ID.WITH.INVALID.CHARS:Element title`; +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_INVALID_I18N_META_TS_0 = /* @ts-ignore */ goog.getMsg("Element title"); + i18n_0 = MSG_INVALID_I18N_META_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:@@ID.WITH.INVALID.CHARS:Element title`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_INVALID_I18N_META_TS_1 = /* @ts-ignore */ goog.getMsg(" Some content "); + i18n_1 = MSG_INVALID_I18N_META_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`:@@ID.WITH.INVALID.CHARS.2: Some content `; + } + return [i18n_1, ["title", i18n_0]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); } - -… - -let $I18N_2$; -if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_ID_WITH_INVALID_CHARS_2$$APP_SPEC_TS_4$ = /* @ts-ignore */ goog.getMsg(" Some content "); - $I18N_2$ = $MSG_EXTERNAL_ID_WITH_INVALID_CHARS_2$$APP_SPEC_TS_4$; -} else { - /* @ts-ignore */ - $I18N_2$ = $localize`:@@ID.WITH.INVALID.CHARS.2: Some content `; +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + Some content +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "invalid_i18n_meta.ts", + lineNumber: 12 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/meaning_description_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/meaning_description_template.js index 596e11504097..451e21068210 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/meaning_description_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/meaning_description_template.js @@ -1,71 +1,217 @@ -consts: - () => { - __i18nMsg__('Title B', [], {}, {id: 'idB', meaning: 'meaningB', desc: 'descB'}) - __i18nMsg__('Title C', [], {}, {meaning: 'meaningC'}) - __i18nMsg__('Title D', [], {}, {meaning: 'meaningD', desc: 'descD'}) - __i18nMsg__('Title E', [], {}, {id: 'idE', desc: 'meaningE'}) - __i18nMsg__('Title F', [], {}, {id: 'idF'}) - - // NOTE: Keeping this block as a raw string, since it checks escaping of special chars. - let $i18n_23$; +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 16, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc descB + * @meaning meaningB + */ + const MSG_EXTERNAL_idB$$MEANING_DESCRIPTION_TS_0 = /* @ts-ignore */ goog.getMsg("Title B"); + i18n_0 = MSG_EXTERNAL_idB$$MEANING_DESCRIPTION_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:meaningB|descB@@idB:Title B`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + * @meaning meaningC + */ + const MSG_EXTERNAL_6435899732746131543$$MEANING_DESCRIPTION_TS_1 = + /* @ts-ignore */ + goog.getMsg("Title C"); + i18n_1 = MSG_EXTERNAL_6435899732746131543$$MEANING_DESCRIPTION_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`:meaningC|:Title C`; + } + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc descD + * @meaning meaningD + */ + const MSG_EXTERNAL_5200291527729162531$$MEANING_DESCRIPTION_TS_2 = + /* @ts-ignore */ + goog.getMsg("Title D"); + i18n_2 = MSG_EXTERNAL_5200291527729162531$$MEANING_DESCRIPTION_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`:meaningD|descD:Title D`; + } + let i18n_3; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc meaningE + */ + const MSG_EXTERNAL_idE$$MEANING_DESCRIPTION_TS_3 = /* @ts-ignore */ goog.getMsg("Title E"); + i18n_3 = MSG_EXTERNAL_idE$$MEANING_DESCRIPTION_TS_3; + } else { + /* @ts-ignore */ + i18n_3 = $localize`:meaningE@@idE:Title E`; + } + let i18n_4; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_idF$$MEANING_DESCRIPTION_TS_4 = /* @ts-ignore */ goog.getMsg("Title F"); + i18n_4 = MSG_EXTERNAL_idF$$MEANING_DESCRIPTION_TS_4; + } else { + /* @ts-ignore */ + i18n_4 = $localize`:@@idF:Title F`; + } + let i18n_5; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { /** * @desc [BACKUP_${MESSAGE}_ID:idH]`desc */ - const $MSG_EXTERNAL_idG$$APP_SPEC_TS_24$ = /* @ts-ignore */ goog.getMsg("Title G"); - $i18n_23$ = $MSG_EXTERNAL_idG$$APP_SPEC_TS_24$; + const MSG_EXTERNAL_idG$$MEANING_DESCRIPTION_TS_5 = /* @ts-ignore */ goog.getMsg("Title G"); + i18n_5 = MSG_EXTERNAL_idG$$MEANING_DESCRIPTION_TS_5; } else { /* @ts-ignore */ - $i18n_23$ = $localize`:[BACKUP_$\{MESSAGE}_ID\:idH]\`desc@@idG:Title G`; + i18n_5 = $localize`:[BACKUP_$\{MESSAGE}_ID\:idH]\`desc@@idG:Title G`; } - - __i18nMsg__('Content A', [], {}, {id: 'idA', meaning: 'meaningA', desc: 'descA'}) - - // NOTE: Keeping this block as a raw string, since it checks escaping of special chars. - let $i18n_7$; + let i18n_6; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc descA + * @meaning meaningA + */ + const MSG_EXTERNAL_idA$$MEANING_DESCRIPTION_TS_6 = + /* @ts-ignore */ + goog.getMsg("Content A"); + i18n_6 = MSG_EXTERNAL_idA$$MEANING_DESCRIPTION_TS_6; + } else { + /* @ts-ignore */ + i18n_6 = $localize`:meaningA|descA@@idA:Content A`; + } + let i18n_7; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { /** * @desc Some text \' [BACKUP_MESSAGE_ID: xxx] */ - const $MSG_EXTERNAL_idG$$APP_SPEC_TS_21$ = /* @ts-ignore */ goog.getMsg("Content H"); - $i18n_7$ = $MSG_EXTERNAL_idG$$APP_SPEC_TS_21$; + const MSG_EXTERNAL_6499290067750703197$$MEANING_DESCRIPTION_TS_7 = + /* @ts-ignore */ + goog.getMsg("Content H"); + i18n_7 = MSG_EXTERNAL_6499290067750703197$$MEANING_DESCRIPTION_TS_7; } else { /* @ts-ignore */ - $i18n_7$ = $localize`:Some text \\' [BACKUP_MESSAGE_ID\: xxx]:Content H`; + i18n_7 = $localize`:Some text \\' [BACKUP_MESSAGE_ID\: xxx]:Content H`; } - - return [ - $i18n_0$, $i18n_7$, ["title", $i18n_1$], ["title", $i18n_2$], ["title", $i18n_3$], - ["title", $i18n_4$], ["title", $i18n_5$], ["title", $i18n_6$] + i18n_6, + i18n_7, + ["title", i18n_0], + ["title", i18n_1], + ["title", i18n_2], + ["title", i18n_3], + ["title", i18n_4], + ["title", i18n_5] ]; }, - template: function MyComponent_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(2, "div", 2); - $r3$.ɵɵtext(3, "Content B"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(4, "div", 3); - $r3$.ɵɵtext(5, "Content C"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(6, "div", 4); - $r3$.ɵɵtext(7, "Content D"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(8, "div", 5); - $r3$.ɵɵtext(9, "Content E"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(10, "div", 6); - $r3$.ɵɵtext(11, "Content F"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(12, "div", 7); - $r3$.ɵɵtext(13, "Content G"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(14, "div"); - $r3$.ɵɵi18n(15, 1); - $r3$.ɵɵelementEnd(); + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(2, "div", 2); + i0.ɵɵtext(3, "Content B"); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(4, "div", 3); + i0.ɵɵtext(5, "Content C"); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(6, "div", 4); + i0.ɵɵtext(7, "Content D"); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(8, "div", 5); + i0.ɵɵtext(9, "Content E"); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(10, "div", 6); + i0.ɵɵtext(11, "Content F"); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(12, "div", 7); + i0.ɵɵtext(13, "Content G"); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(14, "div"); + i0.ɵɵi18n(15, 1); + i0.ɵɵelementEnd(); } - } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    Content A
    +
    Content B
    +
    Content C
    +
    Content D
    +
    Content E
    +
    Content F
    +
    Content G
    +
    Content H
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "meaning_description.ts", + lineNumber: 17 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_basic.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_basic.js index 3eab282cce8e..07d07db4543e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_basic.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_basic.js @@ -1,11 +1,92 @@ -consts: () => { - __i18nMsg__('Hello', [], {}, {}) - return [ - ["title", $i18n_0$] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 0, 0, "ng-template", 0); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_ng_template_0_Template(rf, ctx) {} +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3902961887793684628$$NG_TEMPLATE_BASIC_TS_0 = + /* @ts-ignore */ + goog.getMsg("Hello"); + i18n_0 = MSG_EXTERNAL_3902961887793684628$$NG_TEMPLATE_BASIC_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Hello`; + } + return [["title", i18n_0]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 0, 0, "ng-template", 0); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng-template_basic.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_interpolation_structural_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_interpolation_structural_template.js index 6a37a0e961fe..e64f29354fa1 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_interpolation_structural_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_interpolation_structural_template.js @@ -1,29 +1,146 @@ +import { Component, NgModule, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_0_ng_template_0_Template(rf, ctx) {} function MyComponent_0_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_0_ng_template_0_Template, 0, 0, "ng-template", 2); - $r3$.ɵɵi18nAttributes(1, 0); - } - if (rf & 2) { - const $ctx_r2$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵi18nExp($ctx_r2$.name); - $r3$.ɵɵi18nApply(1); - } + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_0_ng_template_0_Template, 0, 0, "ng-template", 2); + i0.ɵɵi18nAttributes(1, 0); } - … - consts: () => { - __i18nMsg__('Hello {$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ name }}'}}, {}) - return [ - ["title", $i18n_0$], - [__AttributeMarker.Template__, "ngIf"], - [__AttributeMarker.Bindings__, "title"] - ]; - }, - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_0_Template, 2, 1, null, 1); - } - if (rf & 2) { - $r3$.ɵɵproperty("ngIf", true); - } - }, - \ No newline at end of file + if (rf & 2) { + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵi18nExp(ctx_r0.name); + i0.ɵɵi18nApply(1); + } +} +export class UppercasePipe { + transform(v) {} + static ɵfac = function UppercasePipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || UppercasePipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "uppercase", + type: UppercasePipe, + pure: true, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + UppercasePipe, + [ + { + type: Pipe, + args: [ + { + name: "uppercase", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class MyComponent { + name = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3771704108176831903$$NG_TEMPLATE_INTERPOLATION_STRUCTURAL_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "Hello {$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ name }}" } } + ); + i18n_0 = MSG_EXTERNAL_3771704108176831903$$NG_TEMPLATE_INTERPOLATION_STRUCTURAL_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Hello ${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + return [ + ["title", i18n_0], + [4, "ngIf"], + [3, "title"] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_0_Template, 2, 1, null, 1); + } + if (rf & 2) { + i0.ɵɵproperty("ngIf", true); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng-template_interpolation_structural.ts", + lineNumber: 18 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [UppercasePipe, MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [UppercasePipe, MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_interpolation_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_interpolation_template.js index db47a1ed3149..5eb57bf8c667 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_interpolation_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_interpolation_template.js @@ -1,18 +1,105 @@ -consts: () => { - __i18nMsg__('Hello {$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ name }}'}}, {}) - return [ - ["title", $i18n_0$], - [__AttributeMarker.Bindings__, "title"] - ]; - }, - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 0, 0, "ng-template", 1); - $r3$.ɵɵi18nAttributes(1, 0); - } - if (rf & 2) { - $r3$.ɵɵi18nExp(ctx.name); - $r3$.ɵɵi18nApply(1); - } - } - \ No newline at end of file +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_ng_template_0_Template(rf, ctx) {} +export class MyComponent { + name = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3771704108176831903$$NG_TEMPLATE_INTERPOLATION_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "Hello {$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ name }}" } } + ); + i18n_0 = MSG_EXTERNAL_3771704108176831903$$NG_TEMPLATE_INTERPOLATION_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Hello ${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + return [ + ["title", i18n_0], + [3, "title"] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 0, 0, "ng-template", 1); + i0.ɵɵi18nAttributes(1, 0); + } + if (rf & 2) { + i0.ɵɵi18nExp(ctx.name); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng-template_interpolation.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_structural.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_structural.js index 7a6fd9c6c805..0dbc2397a745 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_structural.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/ng-template_structural.js @@ -1,27 +1,108 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_0_ng_template_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵtext(0, "Test"); + i0.ɵɵtext(0, "Test"); } } function MyComponent_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_0_ng_template_0_Template, 1, 0, "ng-template", 1); + i0.ɵɵtemplate(0, MyComponent_0_ng_template_0_Template, 1, 0, "ng-template", 1); } } -… -consts: () => { - __i18nMsg__('Hello', [], {}, {}) - return [ - // NOTE: AttributeMarker.Template = 4 - [4, "ngIf"], - ["title", $i18n_0$] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_0_Template, 1, 0, null, 0); - } - if (rf & 2) { - $r3$.ɵɵproperty("ngIf", ctx.visible); - } +export class MyComponent { + visible = false; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3902961887793684628$$NG_TEMPLATE_STRUCTURAL_TS_0 = + /* @ts-ignore */ + goog.getMsg("Hello"); + i18n_0 = MSG_EXTERNAL_3902961887793684628$$NG_TEMPLATE_STRUCTURAL_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Hello`; + } + return [ + [4, "ngIf"], + ["title", i18n_0] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_0_Template, 1, 0, null, 0); + } + if (rf & 2) { + i0.ɵɵproperty("ngIf", ctx.visible); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + Test +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng-template_structural.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/static_attributes.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/static_attributes.js index 5d5e89c22342..0283fb7c094d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/static_attributes.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/static_attributes.js @@ -1,11 +1,92 @@ -consts: () => { - __i18nMsg__('introduction', [], {}, {meaning: 'm', desc: 'd'}) - return [ - ["id", "static", "title", $i18n_0$] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div", 0); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc d + * @meaning m + */ + const MSG_EXTERNAL_8809028065680254561$$STATIC_ATTRIBUTES_TS_0 = + /* @ts-ignore */ + goog.getMsg("introduction"); + i18n_0 = MSG_EXTERNAL_8809028065680254561$$STATIC_ATTRIBUTES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:m|d:introduction`; + } + return [["id", "static", "title", i18n_0]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div", 0); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "static_attributes.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/static_attributes_structural_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/static_attributes_structural_template.js index fd8e0001911b..4f78eee2747b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/static_attributes_structural_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/static_attributes_structural_template.js @@ -1,22 +1,104 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_0_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div", 1); - } + if (rf & 1) { + i0.ɵɵelement(0, "div", 1); } - … - consts: () => { - __i18nMsg__('introduction', [], {}, {meaning: 'm', desc: 'd'}) - return [ - ["id", "static", "title", $i18n_0$, __AttributeMarker.Template__, "ngIf"], - ["id", "static", "title", $i18n_0$] - ]; - }, - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_div_0_Template, 1, 0, "div", 0); - } - if (rf & 2) { - $r3$.ɵɵproperty("ngIf", ctx.exp); - } - } - \ No newline at end of file +} +export class MyComponent { + exp = true; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc d + * @meaning m + */ + const MSG_EXTERNAL_8809028065680254561$$STATIC_ATTRIBUTES_STRUCTURAL_TS_0 = + /* @ts-ignore */ + goog.getMsg("introduction"); + i18n_0 = MSG_EXTERNAL_8809028065680254561$$STATIC_ATTRIBUTES_STRUCTURAL_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:m|d:introduction`; + } + return [ + ["id", "static", "title", i18n_0, 4, "ngIf"], + ["id", "static", "title", i18n_0] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_div_0_Template, 1, 0, "div", 0); + } + if (rf & 2) { + i0.ɵɵproperty("ngIf", ctx.exp); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "static_attributes_structural.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/test.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/test.js index 3548b5410d83..9e4354609646 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/test.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/test.js @@ -1,3 +1,113 @@ -var $I18N_0$; -… -$I18N_0$ = $localize(…__makeTemplateObject([":meaning:A|descA@@idA:Content A"], [":meaning\\:A|descA@@idA:Content A"])…); +var __makeTemplateObject = + (this && this.__makeTemplateObject) || + function (cooked, raw) { + if (Object.defineProperty) { + Object.defineProperty(cooked, "raw", { value: raw }); + } else { + cooked.raw = raw; + } + return cooked; + }; +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +var MyComponent = /** @class */ (function () { + function MyComponent() {} + MyComponent.ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + MyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 0, + consts: function () { + var i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc descA + * @meaning meaning:A + */ + var MSG_EXTERNAL_idA$$TEST_TS_0 = /* @ts-ignore */ goog.getMsg("Content A"); + i18n_0 = MSG_EXTERNAL_idA$$TEST_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize( + templateObject_1 || + (templateObject_1 = __makeTemplateObject( + [":meaning:A|descA@@idA:Content A"], + [":meaning\\:A|descA@@idA:Content A"] + )) + ); + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); + return MyComponent; +})(); +export { MyComponent }; +(function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: '
    Content A
    ', + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "test.ts", + lineNumber: 8 + }); +})(); +var MyModule = /** @class */ (function () { + function MyModule() {} + MyModule.ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + MyModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + MyModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); + return MyModule; +})(); +export { MyModule }; +(function () { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); +var templateObject_1; diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_and_i18n.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_and_i18n.js index 4f326e6d00ed..235f32153dae 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_and_i18n.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_and_i18n.js @@ -1,25 +1,120 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_2_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 1); - $r3$.ɵɵdomElement(1, "div"); - $r3$.ɵɵi18nEnd(); - } if (rf & 2) { - const diskView_r1 = ctx.$implicit; - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(diskView_r1.name)(diskView_r1.length); - $r3$.ɵɵi18nApply(0); - } + if (rf & 1) { + i0.ɵɵi18nStart(0, 0, 1); + i0.ɵɵdomElement(1, "div"); + i0.ɵɵi18nEnd(); + } + if (rf & 2) { + const diskView_r1 = ctx.$implicit; + i0.ɵɵadvance(); + i0.ɵɵi18nExp(diskView_r1.name)(diskView_r1.length); + i0.ɵɵi18nApply(0); + } } -… -function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵdomTemplate(2, MyComponent_div_2_Template, 2, 2, "div", 1); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵdomElementEnd(); - } if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵdomProperty("ngForOf", ctx.disks); - } +export class MyComponent { + disks; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + decls: 3, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5731037447622183595$$ICU_AND_I18N_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_PLURAL, plural, =1 {VM} other {VMs}}"); + i18n_0 = MSG_EXTERNAL_5731037447622183595$$ICU_AND_I18N_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_PLURAL, plural, =1 {VM} other {VMs}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_PLURAL": "\uFFFD1:1\uFFFD" }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7553006261446141114$$ICU_AND_I18N_TS_1 = + /* @ts-ignore */ + goog.getMsg( + "{$startTagDiv} {$interpolation} has {$icu} {$closeTagDiv}", + { + "closeTagDiv": "\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD", + "icu": i18n_0, + "interpolation": "\uFFFD0:1\uFFFD", + "startTagDiv": "\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD" + }, + { + original_code: { + "closeTagDiv": "", + "icu": "{diskView.length, plural, =1 {VM} other {VMs}}", + "interpolation": "{{diskView.name}}", + "startTagDiv": '
    ' + } + } + ); + i18n_1 = MSG_EXTERNAL_7553006261446141114$$ICU_AND_I18N_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`${"\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_DIV: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: has ${i18n_0}:ICU@@6698398538955432050: ${"\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD"}:CLOSE_TAG_DIV:`; + } + return [i18n_1, [4, "ngFor", "ngForOf"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵdomTemplate(2, MyComponent_div_2_Template, 2, 2, "div", 1); + i0.ɵɵi18nEnd(); + i0.ɵɵdomElementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵdomProperty("ngForOf", ctx.disks); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    + {{diskView.name}} has {diskView.length, plural, =1 {VM} other {VMs}} +
    +
    + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "icu_and_i18n.ts", + lineNumber: 13 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/attribute_interpolation.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/attribute_interpolation.js index 76c1662f6448..4c36eb3022eb 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/attribute_interpolation.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/attribute_interpolation.js @@ -1,78 +1,134 @@ -consts: () => { - let $i18n_1$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_6301050568345677976__ATTRIBUTE_INTERPOLATION_TS_2$ = /* @ts-ignore */ goog.getMsg("{VAR_SELECT, select, other {{START_TAG_SPAN}foo{CLOSE_TAG_SPAN}}}"); - $i18n_1$ = $MSG_EXTERNAL_6301050568345677976__ATTRIBUTE_INTERPOLATION_TS_2$; - } else { - /* @ts-ignore */ - $i18n_1$ = $localize`{VAR_SELECT, select, other {{START_TAG_SPAN}foo{CLOSE_TAG_SPAN}}}`; - } - $i18n_1$ = $r3$.ɵɵi18nPostprocess($i18n_1$, { - "CLOSE_TAG_SPAN": "", - "START_TAG_SPAN": "", - "VAR_SELECT": "\uFFFD0\uFFFD" +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + foo; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-comp"]], + decls: 5, + vars: 8, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6301050568345677976$$ATTRIBUTE_INTERPOLATION_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, other {{START_TAG_SPAN}foo{CLOSE_TAG_SPAN}}}"); + i18n_0 = MSG_EXTERNAL_6301050568345677976$$ATTRIBUTE_INTERPOLATION_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, other {{START_TAG_SPAN}foo{CLOSE_TAG_SPAN}}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { + "CLOSE_TAG_SPAN": "", + "START_TAG_SPAN": '', + "VAR_SELECT": "\uFFFD0\uFFFD" + }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_369205108016154659$$ATTRIBUTE_INTERPOLATION_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, other {{INTERPOLATION}-{INTERPOLATION}}}"); + i18n_1 = MSG_EXTERNAL_369205108016154659$$ATTRIBUTE_INTERPOLATION_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, other {{INTERPOLATION}-{INTERPOLATION}}}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { + "INTERPOLATION": "\uFFFD4\uFFFD", + "VAR_SELECT": "\uFFFD3\uFFFD" + }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6009429127580785009$$ATTRIBUTE_INTERPOLATION_TS_2 = + /* @ts-ignore */ + goog.getMsg( + "{$startTagSpan}{$closeTagSpan}{$startTagSpan_1}{$icu}{$closeTagSpan}{$startTagSpan_1}{$icu_1}{$closeTagSpan}", + { + "closeTagSpan": "[\uFFFD/#2\uFFFD|\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]", + "icu": i18n_0, + "icu_1": i18n_1, + "startTagSpan": "\uFFFD#2\uFFFD", + "startTagSpan_1": "[\uFFFD#3\uFFFD|\uFFFD#4\uFFFD]" + }, + { + original_code: { + "closeTagSpan": "", + "icu": '{foo, select, other {foo}}', + "icu_1": "{foo, select, other {{{foo}}-{{foo}}}}", + "startTagSpan": '', + "startTagSpan_1": "" + } + } + ); + i18n_2 = MSG_EXTERNAL_6009429127580785009$$ATTRIBUTE_INTERPOLATION_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:${"[\uFFFD/#2\uFFFD|\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_SPAN:${"[\uFFFD#3\uFFFD|\uFFFD#4\uFFFD]"}:START_TAG_SPAN_1:${i18n_0}:ICU@@6051755734147382484:${"[\uFFFD/#2\uFFFD|\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_SPAN:${"[\uFFFD#3\uFFFD|\uFFFD#4\uFFFD]"}:START_TAG_SPAN_1:${i18n_1}:ICU_1@@7593934392904803263:${"[\uFFFD/#2\uFFFD|\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_SPAN:`; + } + i18n_2 = i0.ɵɵi18nPostprocess(i18n_2); + return [i18n_2, [3, "title"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵdomElement(2, "span", 1)(3, "span")(4, "span"); + i0.ɵɵi18nEnd(); + i0.ɵɵdomElementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵdomProperty("title", i0.ɵɵinterpolate2("", ctx.foo, "-", ctx.foo)); + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(ctx.foo)(ctx.foo)(ctx.foo)(ctx.foo)(ctx.foo); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 }); - let $i18n_3$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_369205108016154659__ATTRIBUTE_INTERPOLATION_TS_4$ = /* @ts-ignore */ goog.getMsg("{VAR_SELECT, select, other {{INTERPOLATION}-{INTERPOLATION}}}"); - $i18n_3$ = $MSG_EXTERNAL_369205108016154659__ATTRIBUTE_INTERPOLATION_TS_4$; - } else { - /* @ts-ignore */ - $i18n_3$ = $localize`{VAR_SELECT, select, other {{INTERPOLATION}-{INTERPOLATION}}}`; - } - $i18n_3$ = $r3$.ɵɵi18nPostprocess($i18n_3$, { - "INTERPOLATION": "\uFFFD4\uFFFD", - "VAR_SELECT": "\uFFFD3\uFFFD" - }); - let $i18n_0$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_6009429127580785009__ATTRIBUTE_INTERPOLATION_TS_5$ = /* @ts-ignore */ goog.getMsg( - "{$startTagSpan}{$closeTagSpan}{$startTagSpan_1}{$icu}{$closeTagSpan}{$startTagSpan_1}{$icu_1}{$closeTagSpan}", - { - "closeTagSpan": "[\uFFFD/#2\uFFFD|\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]", - "icu": $i18n_1$, - "icu_1": $i18n_3$, - "startTagSpan": "\uFFFD#2\uFFFD", - "startTagSpan_1": "[\uFFFD#3\uFFFD|\uFFFD#4\uFFFD]" - }, { - original_code: { - "closeTagSpan": "", - "icu": "{foo, select, other {foo}}", - "icu_1": "{foo, select, other {{{foo}}-{{foo}}}}", - "startTagSpan": "", - "startTagSpan_1": "" - } - }); - $i18n_0$ = $MSG_EXTERNAL_6009429127580785009__ATTRIBUTE_INTERPOLATION_TS_5$; - } else { - /* @ts-ignore */ - $i18n_0$ = $localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:${"[\uFFFD/#2\uFFFD|\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_SPAN:${"[\uFFFD#3\uFFFD|\uFFFD#4\uFFFD]"}:START_TAG_SPAN_1:${$i18n_1$}:ICU@@6051755734147382484:${"[\uFFFD/#2\uFFFD|\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_SPAN:${"[\uFFFD#3\uFFFD|\uFFFD#4\uFFFD]"}:START_TAG_SPAN_1:${$i18n_3$}:ICU_1@@7593934392904803263:${"[\uFFFD/#2\uFFFD|\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_SPAN:`; - } - $i18n_0$ = $r3$.ɵɵi18nPostprocess($i18n_0$); - return [$i18n_0$, [3, "title"]]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵdomElement(2, "span", 1)(3, "span")(4, "span"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵdomElementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵdomProperty("title", $r3$.ɵɵinterpolate2("", ctx.foo, "-", ctx.foo)); - $r3$.ɵɵadvance(2); - $r3$.ɵɵi18nExp(ctx.foo)(ctx.foo)(ctx.foo)(ctx.foo)(ctx.foo); - $r3$.ɵɵi18nApply(1); - } } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-comp", + template: ` +
    + + {foo, select, other {foo}} + {foo, select, other {{{foo}}-{{foo}}}} +
    + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "attribute_interpolation.ts", + lineNumber: 13 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/bare_icu.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/bare_icu.js index e11e424c7de9..fbb89795aa00 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/bare_icu.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/bare_icu.js @@ -1,64 +1,189 @@ -function $MyComponent_div_2_Template$(rf, ctx) { +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_div_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelementStart(0, "div", 5); - $r3$.ɵɵtext(1, " "); - $r3$.ɵɵi18n(2, 1); - $r3$.ɵɵtext(3, " "); - $r3$.ɵɵelementEnd(); + i0.ɵɵelementStart(0, "div", 5); + i0.ɵɵtext(1, " "); + i0.ɵɵi18n(2, 1); + i0.ɵɵtext(3, " "); + i0.ɵɵelementEnd(); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵadvance(2); - $r3$.ɵɵi18nExp($ctx_r0$.age); - $r3$.ɵɵi18nApply(2); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(ctx_r0.age); + i0.ɵɵi18nApply(2); } } -… -function $MyComponent_div_3_Template$(rf, ctx) { +function MyComponent_div_3_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelementStart(0, "div", 6); - $r3$.ɵɵtext(1, " You have "); - $r3$.ɵɵi18n(2, 2); - $r3$.ɵɵtext(3, ". "); - $r3$.ɵɵelementEnd(); + i0.ɵɵelementStart(0, "div", 6); + i0.ɵɵtext(1, " You have "); + i0.ɵɵi18n(2, 2); + i0.ɵɵtext(3, ". "); + i0.ɵɵelementEnd(); } if (rf & 2) { - const $ctx_r1$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵadvance(2); - $r3$.ɵɵi18nExp($ctx_r1$.count)($ctx_r1$.count); - $r3$.ɵɵi18nApply(2); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(ctx_r0.count)(ctx_r0.count); + i0.ɵɵi18nApply(2); } } -… -decls: 4, -vars: 3, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT, select, male {male} female {female} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) __i18nIcuMsg__('{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - __i18nIcuMsg__('{VAR_SELECT, select, 0 {no emails} 1 {one email} other {{INTERPOLATION} emails}}', [['INTERPOLATION', String.raw`\uFFFD1\uFFFD`], ['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - return [ - $i18n_0$, - $i18n_1$, - $i18n_2$, - ["title", "icu only", __AttributeMarker.Template__, "ngIf"], - ["title", "icu and text", __AttributeMarker.Template__, "ngIf"], - ["title", "icu only"], - ["title", "icu and text"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵtemplate(2, $MyComponent_div_2_Template$, 4, 1, "div", 3)(3, $MyComponent_div_3_Template$, 4, 2, "div", 4); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.gender); - $r3$.ɵɵi18nApply(1); - $r3$.ɵɵadvance(); - $r3$.ɵɵproperty("ngIf", ctx.visible); - $r3$.ɵɵadvance(); - $r3$.ɵɵproperty("ngIf", ctx.available); - } +export class MyComponent { + gender = "female"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 4, + vars: 3, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7842238767399919809$$BARE_ICU_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, male {male} female {female} other {other}}"); + i18n_0 = MSG_EXTERNAL_7842238767399919809$$BARE_ICU_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, male {male} female {female} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8806993169187953163$$BARE_ICU_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}"); + i18n_1 = MSG_EXTERNAL_8806993169187953163$$BARE_ICU_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1922743304863699161$$BARE_ICU_TS_2 = + /* @ts-ignore */ + goog.getMsg( + "{VAR_SELECT, select, 0 {no emails} 1 {one email} other {{INTERPOLATION} emails}}" + ); + i18n_2 = MSG_EXTERNAL_1922743304863699161$$BARE_ICU_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`{VAR_SELECT, select, 0 {no emails} 1 {one email} other {{INTERPOLATION} emails}}`; + } + i18n_2 = i0.ɵɵi18nPostprocess(i18n_2, { + "INTERPOLATION": "\uFFFD1\uFFFD", + "VAR_SELECT": "\uFFFD0\uFFFD" + }); + return [ + i18n_0, + i18n_1, + i18n_2, + ["title", "icu only", 4, "ngIf"], + ["title", "icu and text", 4, "ngIf"], + ["title", "icu only"], + ["title", "icu and text"] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + i0.ɵɵtemplate(2, MyComponent_div_2_Template, 4, 1, "div", 3)( + 3, + MyComponent_div_3_Template, + 4, + 2, + "div", + 4 + ); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.gender); + i0.ɵɵi18nApply(1); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx.visible); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx.available); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    {gender, select, male {male} female {female} other {other}}
    +
    + {age, select, 10 {ten} 20 {twenty} other {other}} +
    +
    + You have {count, select, 0 {no emails} 1 {one email} other {{{count}} emails}}. +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "bare_icu.ts", + lineNumber: 16 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/different_contexts.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/different_contexts.js index 73beb32f6f80..d51b5c144184 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/different_contexts.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/different_contexts.js @@ -1,40 +1,164 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_span_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 1); - $r3$.ɵɵelement(1, "span"); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 1); + i0.ɵɵelement(1, "span"); + i0.ɵɵi18nEnd(); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp($ctx_r0$.age); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx_r0.age); + i0.ɵɵi18nApply(0); } } -… -decls: 3, -vars: 2, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT, select, male {male} female {female} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - __i18nIcuMsg__('{VAR_SELECT, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0:1\uFFFD`]], {}) - __i18nMsg__(' {$icu} {$startTagSpan} {$icu_1} {$closeTagSpan}', [['closeTagSpan', String.raw`\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD`], ['icu', '$i18n_0$', '7670372064920373295'], ['icu_1', '$i18n_1$', '4590395557003415341'], ['startTagSpan', String.raw`\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD`]], {original_code: {'closeTagSpan': '
    ', 'icu': '{gender, select, male {male} female {female} other {other}}', 'icu_1': '{age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}', 'startTagSpan': ''}}, {}) - return [ - $i18n_2$, - [__AttributeMarker.Template__, "ngIf"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵtemplate(2, MyComponent_span_2_Template, 2, 1, "span", 1); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵproperty("ngIf", ctx.ageVisible); - $r3$.ɵɵi18nExp(ctx.gender); - $r3$.ɵɵi18nApply(1); - } +export class MyComponent { + gender = "female"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7842238767399919809$$DIFFERENT_CONTEXTS_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, male {male} female {female} other {other}}"); + i18n_0 = MSG_EXTERNAL_7842238767399919809$$DIFFERENT_CONTEXTS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, male {male} female {female} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7068143081688428291$$DIFFERENT_CONTEXTS_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}"); + i18n_1 = MSG_EXTERNAL_7068143081688428291$$DIFFERENT_CONTEXTS_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD0:1\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6305631112932538342$$DIFFERENT_CONTEXTS_TS_2 = + /* @ts-ignore */ + goog.getMsg( + " {$icu} {$startTagSpan} {$icu_1} {$closeTagSpan}", + { + "closeTagSpan": "\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD", + "icu": i18n_0, + "icu_1": i18n_1, + "startTagSpan": "\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD" + }, + { + original_code: { + "closeTagSpan": "", + "icu": "{gender, select, male {male} female {female} other {other}}", + "icu_1": "{age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}", + "startTagSpan": '' + } + } + ); + i18n_2 = MSG_EXTERNAL_6305631112932538342$$DIFFERENT_CONTEXTS_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize` ${i18n_0}:ICU@@7670372064920373295: ${"\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_SPAN: ${i18n_1}:ICU_1@@4590395557003415341: ${"\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD"}:CLOSE_TAG_SPAN:`; + } + return [i18n_2, [4, "ngIf"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵtemplate(2, MyComponent_span_2_Template, 2, 1, "span", 1); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵproperty("ngIf", ctx.ageVisible); + i0.ɵɵi18nExp(ctx.gender); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + {gender, select, male {male} female {female} other {other}} + + {age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}} + +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "different_contexts.ts", + lineNumber: 15 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/escape_quotes.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/escape_quotes.js index b80bfa75aead..89ceac3ef0ee 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/escape_quotes.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/escape_quotes.js @@ -1,15 +1,102 @@ -let $I18N_0$; -if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_4166854826696768832$$APP_SPEC_TS_0$ = /* @ts-ignore */ goog.getMsg("{VAR_SELECT, select, single {'single quotes'} double {\"double quotes\"} other {other}}"); - $I18N_0$ = $MSG_EXTERNAL_4166854826696768832$$APP_SPEC_TS_0$; +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + gender = "male"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4166854826696768832$$ESCAPE_QUOTES_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{VAR_SELECT, select, single {'single quotes'} double {\"double quotes\"} other {other}}" + ); + i18n_0 = MSG_EXTERNAL_4166854826696768832$$ESCAPE_QUOTES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, single {'single quotes'} double {"double quotes"} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.gender); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); } -else { - /* @ts-ignore */ - $I18N_0$ = $localize `{VAR_SELECT, select, single {'single quotes'} double {"double quotes"} other {other}}`; +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    {gender, select, single {'single quotes'} double {"double quotes"} other {other}}
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "escape_quotes.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } -$I18N_0$ = $r3$.ɵɵi18nPostprocess($I18N_0$, { - "VAR_SELECT": "\uFFFD0\uFFFD" -}); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/expressions.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/expressions.js index 1b8b732627c5..8e6a8f1f1a5d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/expressions.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/expressions.js @@ -1,20 +1,108 @@ -decls: 2, -vars: 2, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT, select, male {male of age: {INTERPOLATION}} female {female} other {other}}', [['INTERPOLATION', String.raw`\uFFFD1\uFFFD`], ['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.gender)(ctx.ageA + ctx.ageB + ctx.ageC); - $r3$.ɵɵi18nApply(1); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + gender = "female"; + ageA = 1; + ageB = 2; + ageC = 3; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6879461626778511059$$EXPRESSIONS_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{VAR_SELECT, select, male {male of age: {INTERPOLATION}} female {female} other {other}}" + ); + i18n_0 = MSG_EXTERNAL_6879461626778511059$$EXPRESSIONS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, male {male of age: {INTERPOLATION}} female {female} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { + "INTERPOLATION": "\uFFFD1\uFFFD", + "VAR_SELECT": "\uFFFD0\uFFFD" + }); + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.gender)(ctx.ageA + ctx.ageB + ctx.ageC); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    {gender, select, male {male of age: {{ ageA + ageB + ageC }}} female {female} other {other}}
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "expressions.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/html_content.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/html_content.js index b797dbdde754..4775fb638a74 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/html_content.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/html_content.js @@ -1,27 +1,155 @@ -decls: 5, -vars: 1, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT, select, male {male - {START_BOLD_TEXT}male{CLOSE_BOLD_TEXT}} female {female {START_BOLD_TEXT}female{CLOSE_BOLD_TEXT}} other {{START_TAG_DIV}{START_ITALIC_TEXT}other{CLOSE_ITALIC_TEXT}{CLOSE_TAG_DIV}}}', [['CLOSE_BOLD_TEXT', ''], ['CLOSE_ITALIC_TEXT', ''], ['CLOSE_TAG_DIV', '
    '], ['START_BOLD_TEXT', ''], ['START_ITALIC_TEXT', ''], ['START_TAG_DIV', '
    '], ['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - __i18nMsg__(' {$icu} {$startBoldText}Other content{$closeBoldText}{$startTagDiv}{$startItalicText}Another content{$closeItalicText}{$closeTagDiv}', [['closeBoldText', String.raw`\uFFFD/#2\uFFFD`], ['closeItalicText', String.raw`\uFFFD/#4\uFFFD`], ['closeTagDiv', String.raw`\uFFFD/#3\uFFFD`], ['icu', '$I18N_1$', '4731057199984078679'], ['startBoldText', String.raw`\uFFFD#2\uFFFD`], ['startItalicText', String.raw`\uFFFD#4\uFFFD`], ['startTagDiv', String.raw`\uFFFD#3\uFFFD`]], {original_code: {'closeBoldText': '', 'closeItalicText': '', 'closeTagDiv': '
    ', 'icu': '{gender, select, male {male - male} female {female female} other {
    other
    }}', 'startBoldText': '', 'startItalicText': '', 'startTagDiv': '
    '}}, {}) - return [ - $i18n_1$, - [__AttributeMarker.Classes__, "other"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵelement(2, "b"); - $r3$.ɵɵelementStart(3, "div", 1); - $r3$.ɵɵelement(4, "i"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(4); - $r3$.ɵɵi18nExp(ctx.gender); - $r3$.ɵɵi18nApply(1); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + gender = "female"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 5, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2417296354340576868$$HTML_CONTENT_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{VAR_SELECT, select, male {male - {START_BOLD_TEXT}male{CLOSE_BOLD_TEXT}} female {female {START_BOLD_TEXT}female{CLOSE_BOLD_TEXT}} other {{START_TAG_DIV}{START_ITALIC_TEXT}other{CLOSE_ITALIC_TEXT}{CLOSE_TAG_DIV}}}" + ); + i18n_0 = MSG_EXTERNAL_2417296354340576868$$HTML_CONTENT_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, male {male - {START_BOLD_TEXT}male{CLOSE_BOLD_TEXT}} female {female {START_BOLD_TEXT}female{CLOSE_BOLD_TEXT}} other {{START_TAG_DIV}{START_ITALIC_TEXT}other{CLOSE_ITALIC_TEXT}{CLOSE_TAG_DIV}}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { + "CLOSE_BOLD_TEXT": "", + "CLOSE_ITALIC_TEXT": "", + "CLOSE_TAG_DIV": "
    ", + "START_BOLD_TEXT": "", + "START_ITALIC_TEXT": "", + "START_TAG_DIV": '
    ', + "VAR_SELECT": "\uFFFD0\uFFFD" + }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2500076286225379125$$HTML_CONTENT_TS_1 = + /* @ts-ignore */ + goog.getMsg( + " {$icu} {$startBoldText}Other content{$closeBoldText}{$startTagDiv}{$startItalicText}Another content{$closeItalicText}{$closeTagDiv}", + { + "closeBoldText": "\uFFFD/#2\uFFFD", + "closeItalicText": "\uFFFD/#4\uFFFD", + "closeTagDiv": "\uFFFD/#3\uFFFD", + "icu": i18n_0, + "startBoldText": "\uFFFD#2\uFFFD", + "startItalicText": "\uFFFD#4\uFFFD", + "startTagDiv": "\uFFFD#3\uFFFD" + }, + { + original_code: { + "closeBoldText": "", + "closeItalicText": "", + "closeTagDiv": "
    ", + "icu": + '{gender, select, male {male - male} female {female female} other {
    other
    }}', + "startBoldText": "", + "startItalicText": "", + "startTagDiv": '
    ' + } + } + ); + i18n_1 = MSG_EXTERNAL_2500076286225379125$$HTML_CONTENT_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize` ${i18n_0}:ICU@@4731057199984078679: ${"\uFFFD#2\uFFFD"}:START_BOLD_TEXT:Other content${"\uFFFD/#2\uFFFD"}:CLOSE_BOLD_TEXT:${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_ITALIC_TEXT:Another content${"\uFFFD/#4\uFFFD"}:CLOSE_ITALIC_TEXT:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`; + } + return [i18n_1, [1, "other"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵelement(2, "b"); + i0.ɵɵelementStart(3, "div", 1); + i0.ɵɵelement(4, "i"); + i0.ɵɵelementEnd(); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(4); + i0.ɵɵi18nExp(ctx.gender); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + {gender, select, male {male - male} female {female female} other {
    other
    }} + Other content +
    Another content
    +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "html_content.ts", + lineNumber: 14 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/icu_only.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/icu_only.js index 914f7c231588..cd5eefaf539b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/icu_only.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/icu_only.js @@ -1,17 +1,97 @@ -decls: 1, -vars: 1, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵi18n(0, 0); - } - if (rf & 2) { - $r3$.ɵɵi18nExp(ctx.age); - $r3$.ɵɵi18nApply(0); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + age = 20; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8806993169187953163$$ICU_ONLY_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}"); + i18n_0 = MSG_EXTERNAL_8806993169187953163$$ICU_ONLY_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵi18n(0, 0); + } + if (rf & 2) { + i0.ɵɵi18nExp(ctx.age); + i0.ɵɵi18nApply(0); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + {age, select, 10 {ten} 20 {twenty} other {other}} +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "icu_only.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/icu_with_interpolations.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/icu_with_interpolations.js index 41cf8168fb1d..4baf26fdc1eb 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/icu_with_interpolations.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/icu_with_interpolations.js @@ -1,40 +1,179 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_span_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 1); - $r3$.ɵɵelement(1, "span"); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 1); + i0.ɵɵelement(1, "span"); + i0.ɵɵi18nEnd(); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp($ctx_r0$.age)($ctx_r0$.otherAge); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx_r0.age)(ctx_r0.otherAge); + i0.ɵɵi18nApply(0); } } -… -decls: 3, -vars: 4, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT, select, male {male {INTERPOLATION}} female {female {INTERPOLATION_1}} other {other}}', [['INTERPOLATION', String.raw`\uFFFD1\uFFFD`], ['INTERPOLATION_1', String.raw`\uFFFD2\uFFFD`], ['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - __i18nIcuMsg__('{VAR_SELECT, select, 10 {ten} 20 {twenty} 30 {thirty} other {other: {INTERPOLATION}}}', [['INTERPOLATION', String.raw`\uFFFD1:1\uFFFD`], ['VAR_SELECT', String.raw`\uFFFD0:1\uFFFD`]], {}) - __i18nMsg__(' {$icu} {$startTagSpan} {$icu_1} {$closeTagSpan}', [['closeTagSpan', String.raw`\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD`], ['icu', '$i18n_0$', '567200399523107034'], ['icu_1', '$i18n_1$', '5762277079421427850'], ['startTagSpan', String.raw`\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD`]], {original_code: {'closeTagSpan': '', 'icu': '{gender, select, male {male {{ weight }}} female {female {{ height }}} other {other}}', 'icu_1': '{age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other: {{ otherAge }}}}', 'startTagSpan': ''}}, {}) - return [ - $i18n_2$, - [__AttributeMarker.Template__, "ngIf"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵtemplate(2, MyComponent_span_2_Template, 2, 2, "span", 1); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵproperty("ngIf", ctx.ageVisible); - $r3$.ɵɵi18nExp(ctx.gender)(ctx.weight)(ctx.height); - $r3$.ɵɵi18nApply(1); - } +export class MyComponent { + gender = "male"; + weight = 1; + height = 1; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 4, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7825031864601787094$$ICU_WITH_INTERPOLATIONS_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{VAR_SELECT, select, male {male {INTERPOLATION}} female {female {INTERPOLATION_1}} other {other}}" + ); + i18n_0 = MSG_EXTERNAL_7825031864601787094$$ICU_WITH_INTERPOLATIONS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, male {male {INTERPOLATION}} female {female {INTERPOLATION_1}} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { + "INTERPOLATION": "\uFFFD1\uFFFD", + "INTERPOLATION_1": "\uFFFD2\uFFFD", + "VAR_SELECT": "\uFFFD0\uFFFD" + }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2310343208266678305$$ICU_WITH_INTERPOLATIONS_TS_1 = + /* @ts-ignore */ + goog.getMsg( + "{VAR_SELECT, select, 10 {ten} 20 {twenty} 30 {thirty} other {other: {INTERPOLATION}}}" + ); + i18n_1 = MSG_EXTERNAL_2310343208266678305$$ICU_WITH_INTERPOLATIONS_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, 10 {ten} 20 {twenty} 30 {thirty} other {other: {INTERPOLATION}}}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { + "INTERPOLATION": "\uFFFD1:1\uFFFD", + "VAR_SELECT": "\uFFFD0:1\uFFFD" + }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7229970708438032491$$ICU_WITH_INTERPOLATIONS_TS_2 = + /* @ts-ignore */ + goog.getMsg( + " {$icu} {$startTagSpan} {$icu_1} {$closeTagSpan}", + { + "closeTagSpan": "\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD", + "icu": i18n_0, + "icu_1": i18n_1, + "startTagSpan": "\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD" + }, + { + original_code: { + "closeTagSpan": "", + "icu": + "{gender, select, male {male {{ weight }}} female {female {{ height }}} other {other}}", + "icu_1": + "{age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other: {{ otherAge }}}}", + "startTagSpan": '' + } + } + ); + i18n_2 = MSG_EXTERNAL_7229970708438032491$$ICU_WITH_INTERPOLATIONS_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize` ${i18n_0}:ICU@@567200399523107034: ${"\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_SPAN: ${i18n_1}:ICU_1@@5762277079421427850: ${"\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD"}:CLOSE_TAG_SPAN:`; + } + return [i18n_2, [4, "ngIf"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵtemplate(2, MyComponent_span_2_Template, 2, 2, "span", 1); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵproperty("ngIf", ctx.ageVisible); + i0.ɵɵi18nExp(ctx.gender)(ctx.weight)(ctx.height); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + {gender, select, male {male {{ weight }}} female {female {{ height }}} other {other}} + + {age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other: {{ otherAge }}}} + +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "icu_with_interpolations.ts", + lineNumber: 15 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/keyword_spaces.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/keyword_spaces.js index 45881b6ad943..6914157c9aad 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/keyword_spaces.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/keyword_spaces.js @@ -1,3 +1,139 @@ -__i18nIcuMsg__('{VAR_SELECT , select , 1 {one} other {more than one}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) -__i18nIcuMsg__('{VAR_PLURAL , plural , =1 {one} other {more than one}}', [['VAR_PLURAL', String.raw`\uFFFD1\uFFFD`]], {}) - +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + count = 0; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_199763560911211963$$KEYWORD_SPACES_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT , select , 1 {one} other {more than one}}"); + i18n_0 = MSG_EXTERNAL_199763560911211963$$KEYWORD_SPACES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT , select , 1 {one} other {more than one}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3383986062053865025$$KEYWORD_SPACES_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_PLURAL , plural , =1 {one} other {more than one}}"); + i18n_1 = MSG_EXTERNAL_3383986062053865025$$KEYWORD_SPACES_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_PLURAL , plural , =1 {one} other {more than one}}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_PLURAL": "\uFFFD1\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6804521423144261079$$KEYWORD_SPACES_TS_2 = + /* @ts-ignore */ + goog.getMsg( + " {$icu} {$icu_1} ", + { "icu": i18n_0, "icu_1": i18n_1 }, + { + original_code: { + "icu": "{count, select , 1 {one} other {more than one}}", + "icu_1": "{count, plural , =1 {one} other {more than one}}" + } + } + ); + i18n_2 = MSG_EXTERNAL_6804521423144261079$$KEYWORD_SPACES_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize` ${i18n_0}:ICU@@4297240864973290312: ${i18n_1}:ICU_1@@149492185132484300: `; + } + return [i18n_2]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.count)(ctx.count); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + {count, select , 1 {one} other {more than one}} + {count, plural , =1 {one} other {more than one}} +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "keyword_spaces.ts", + lineNumber: 13 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/metadata.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/metadata.js index b1344139f030..9b58dfb83053 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/metadata.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/metadata.js @@ -1 +1,101 @@ -__i18nMsgWithPostprocess__('{VAR_SELECT, select, 1 {one} other {more than one}}', [], {}, {meaning: 'meaningA', desc: 'descA', id: 'idA'}, [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]]) +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + count = 1; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc descA + * @meaning meaningA + */ + const MSG_EXTERNAL_idA$$METADATA_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, 1 {one} other {more than one}}"); + i18n_0 = MSG_EXTERNAL_idA$$METADATA_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:meaningA|descA@@idA:{VAR_SELECT, select, 1 {one} other {more than one}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.count); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    {count, select, 1 {one} other {more than one}}
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "metadata.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/multiple_icus.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/multiple_icus.js index 430559bcdf06..cb326bb57f19 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/multiple_icus.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/multiple_icus.js @@ -1,22 +1,140 @@ -decls: 2, -vars: 2, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT, select, male {male} female {female} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - __i18nIcuMsg__('{VAR_SELECT, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}', [['VAR_SELECT', String.raw`\uFFFD1\uFFFD`]], {}) - __i18nMsg__(' {$icu} {$icu_1} ', [['icu', '$i18n_0$', '7670372064920373295'], ['icu_1', '$i18n_1$', '4590395557003415341']], {original_code: {'icu': '{gender, select, male {male} female {female} other {other}}', 'icu_1': '{age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}'}}, {}) - return [ - $i18n_2$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.gender)(ctx.age); - $r3$.ɵɵi18nApply(1); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + gender = "male"; + age = 1; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7842238767399919809$$MULTIPLE_ICUS_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, male {male} female {female} other {other}}"); + i18n_0 = MSG_EXTERNAL_7842238767399919809$$MULTIPLE_ICUS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, male {male} female {female} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7068143081688428291$$MULTIPLE_ICUS_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}"); + i18n_1 = MSG_EXTERNAL_7068143081688428291$$MULTIPLE_ICUS_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD1\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_692449625378653608$$MULTIPLE_ICUS_TS_2 = + /* @ts-ignore */ + goog.getMsg( + " {$icu} {$icu_1} ", + { "icu": i18n_0, "icu_1": i18n_1 }, + { + original_code: { + "icu": "{gender, select, male {male} female {female} other {other}}", + "icu_1": "{age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}" + } + } + ); + i18n_2 = MSG_EXTERNAL_692449625378653608$$MULTIPLE_ICUS_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize` ${i18n_0}:ICU@@7670372064920373295: ${i18n_1}:ICU_1@@4590395557003415341: `; + } + return [i18n_2]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.gender)(ctx.age); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + {gender, select, male {male} female {female} other {other}} + {age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}} +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "multiple_icus.ts", + lineNumber: 13 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/named_interpolations.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/named_interpolations.js index 65028f6aa525..2cee0ad921c3 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/named_interpolations.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/named_interpolations.js @@ -1,20 +1,116 @@ -decls: 2, -vars: 4, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT, select, male {male {PH_A}} female {female {PH_B}} other {other {PH_WITH_SPACES}}}', [['PH_WITH_SPACES', String.raw`\uFFFD3\uFFFD`], ['PH_A', String.raw`\uFFFD1\uFFFD`], ['PH_B', String.raw`\uFFFD2\uFFFD`], ['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.gender)(ctx.weight)(ctx.height)(ctx.age); - $r3$.ɵɵi18nApply(1); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + gender = "male"; + weight = 1; + height = 1; + age = 1; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 4, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6318060397235942326$$NAMED_INTERPOLATIONS_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{VAR_SELECT, select, male {male {PH_A}} female {female {PH_B}} other {other {PH_WITH_SPACES}}}" + ); + i18n_0 = MSG_EXTERNAL_6318060397235942326$$NAMED_INTERPOLATIONS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, male {male {PH_A}} female {female {PH_B}} other {other {PH_WITH_SPACES}}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { + "PH_WITH_SPACES": "\uFFFD3\uFFFD", + "PH_A": "\uFFFD1\uFFFD", + "PH_B": "\uFFFD2\uFFFD", + "VAR_SELECT": "\uFFFD0\uFFFD" + }); + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.gender)(ctx.weight)(ctx.height)(ctx.age); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    { + gender, + select, + male {male {{ weight // i18n(ph="PH_A") }}} + female {female {{ height // i18n(ph="PH_B") }}} + other {other {{ age // i18n(ph="PH WITH SPACES") }}} + }
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "named_interpolations.ts", + lineNumber: 16 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/nested_icu_in_other_block.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/nested_icu_in_other_block.js index f3706ab54039..37e8343224f9 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/nested_icu_in_other_block.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/nested_icu_in_other_block.js @@ -1,20 +1,114 @@ -decls: 2, -vars: 3, -consts: () => { - __i18nIcuMsg__('{VAR_PLURAL, plural, =0 {zero} =2 {{INTERPOLATION} {VAR_SELECT, select, cat {cats} dog {dogs} other {animals}} !} other {other - {INTERPOLATION}}}', [['INTERPOLATION', String.raw`\uFFFD2\uFFFD`], ['VAR_PLURAL', String.raw`\uFFFD1\uFFFD`], ['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.name)(ctx.count)(ctx.count); - $r3$.ɵɵi18nApply(1); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + count = 0; + name = "Andrew"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 3, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6870293071705078389$$NESTED_ICU_IN_OTHER_BLOCK_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{VAR_PLURAL, plural, =0 {zero} =2 {{INTERPOLATION} {VAR_SELECT, select, cat {cats} dog {dogs} other {animals}} !} other {other - {INTERPOLATION}}}" + ); + i18n_0 = MSG_EXTERNAL_6870293071705078389$$NESTED_ICU_IN_OTHER_BLOCK_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_PLURAL, plural, =0 {zero} =2 {{INTERPOLATION} {VAR_SELECT, select, cat {cats} dog {dogs} other {animals}} !} other {other - {INTERPOLATION}}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { + "INTERPOLATION": "\uFFFD2\uFFFD", + "VAR_PLURAL": "\uFFFD1\uFFFD", + "VAR_SELECT": "\uFFFD0\uFFFD" + }); + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.name)(ctx.count)(ctx.count); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    {count, plural, + =0 {zero} + =2 {{{count}} {name, select, + cat {cats} + dog {dogs} + other {animals}} !} + other {other - {{count}}} + }
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "nested_icu_in_other_block.ts", + lineNumber: 17 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/nested_icus.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/nested_icus.js index 10e1e4be7163..583034c351dc 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/nested_icus.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/nested_icus.js @@ -1,21 +1,134 @@ -decls: 2, -vars: 2, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT_1, select, male {male of age: {VAR_SELECT, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}} female {female} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`], ['VAR_SELECT_1', String.raw`\uFFFD1\uFFFD`]], {}) - __i18nMsg__(' {$icu} ', [['icu', '$i18n_0$', '2960440207608193372']], {original_code: {'icu': '{gender, select,\\n male {male of age: {age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}}\\n female {female}\\n other {other}\\n }'}}, {}) - return [ - $i18n_1$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.age)(ctx.gender); - $r3$.ɵɵi18nApply(1); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + age = 1; + gender = "male"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_343563413083115114$$NESTED_ICUS_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{VAR_SELECT_1, select, male {male of age: {VAR_SELECT, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}} female {female} other {other}}" + ); + i18n_0 = MSG_EXTERNAL_343563413083115114$$NESTED_ICUS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT_1, select, male {male of age: {VAR_SELECT, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}} female {female} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { + "VAR_SELECT": "\uFFFD0\uFFFD", + "VAR_SELECT_1": "\uFFFD1\uFFFD" + }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1913020609154054897$$NESTED_ICUS_TS_1 = + /* @ts-ignore */ + goog.getMsg( + " {$icu} ", + { "icu": i18n_0 }, + { + original_code: { + "icu": + "{gender, select,\n male {male of age: {age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}}\n female {female}\n other {other}\n }" + } + } + ); + i18n_1 = MSG_EXTERNAL_1913020609154054897$$NESTED_ICUS_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize` ${i18n_0}:ICU@@2960440207608193372: `; + } + return [i18n_1]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.age)(ctx.gender); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + {gender, select, + male {male of age: {age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}}} + female {female} + other {other} + } +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "nested_icus.ts", + lineNumber: 16 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/root_icu_with_elements.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/root_icu_with_elements.js index 8b8a15625a6d..5d1d1949a38c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/root_icu_with_elements.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/root_icu_with_elements.js @@ -1,45 +1,125 @@ -consts: () => { - let i18n_0; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @desc someText1 - */ - const $MSG_EXTERNAL_4505060179465988919ICU_WHITESPACE_TS_1$ = /* @ts-ignore */ goog.getMsg("{VAR_SELECT, select, WEBSITE {{START_TAG_STRONG}someText{CLOSE_TAG_STRONG}\n }}"); - i18n_0 = $MSG_EXTERNAL_4505060179465988919ICU_WHITESPACE_TS_1$; - } else { - … - } i18n_0 = $r3$.ɵɵi18nPostprocess(i18n_0, { "CLOSE_TAG_STRONG": "", "START_TAG_STRONG": "", "VAR_SELECT": "\uFFFD0\uFFFD" }); - let i18n_1; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_4505060179465988919ICU_WHITESPACE_TS_3$ = /* @ts-ignore */ goog.getMsg("{VAR_SELECT, select, WEBSITE {{START_TAG_STRONG}someText{CLOSE_TAG_STRONG}\n }}"); - i18n_1 = $MSG_EXTERNAL_4505060179465988919ICU_WHITESPACE_TS_3$; - } else { - … - } - i18n_1 = $r3$.ɵɵi18nPostprocess(i18n_1, { "CLOSE_TAG_STRONG": "", "START_TAG_STRONG": "", "VAR_SELECT": "\uFFFD0\uFFFD" }); - return [i18n_0, i18n_1]; +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + someField; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + decls: 6, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc someText1 + */ + const MSG_EXTERNAL_4505060179465988919$$ROOT_ICU_WITH_ELEMENTS_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{VAR_SELECT, select, WEBSITE {{START_TAG_STRONG}someText{CLOSE_TAG_STRONG}\n }}" + ); + i18n_0 = MSG_EXTERNAL_4505060179465988919$$ROOT_ICU_WITH_ELEMENTS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:someText1:{VAR_SELECT, select, WEBSITE {{START_TAG_STRONG}someText{CLOSE_TAG_STRONG} + }}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { + "CLOSE_TAG_STRONG": "", + "START_TAG_STRONG": "", + "VAR_SELECT": "\uFFFD0\uFFFD" + }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4505060179465988919$$ROOT_ICU_WITH_ELEMENTS_TS_1 = + /* @ts-ignore */ + goog.getMsg( + "{VAR_SELECT, select, WEBSITE {{START_TAG_STRONG}someText{CLOSE_TAG_STRONG}\n }}" + ); + i18n_1 = MSG_EXTERNAL_4505060179465988919$$ROOT_ICU_WITH_ELEMENTS_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, WEBSITE {{START_TAG_STRONG}someText{CLOSE_TAG_STRONG} + }}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { + "CLOSE_TAG_STRONG": "", + "START_TAG_STRONG": "", + "VAR_SELECT": "\uFFFD0\uFFFD" + }); + return [i18n_0, i18n_1]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElementStart(0, "span"); + i0.ɵɵi18n(1, 0); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(2, "span"); + i0.ɵɵtext(3, " "); + i0.ɵɵi18n(4, 1); + i0.ɵɵtext(5, " "); + i0.ɵɵdomElementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.someField); + i0.ɵɵi18nApply(1); + i0.ɵɵadvance(3); + i0.ɵɵi18nExp(ctx.someField); + i0.ɵɵi18nApply(4); + } + }, + encapsulation: 2 + }); } -… +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + { + someField, + select, + WEBSITE { + someText + } + } -function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElementStart(0, "span"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵdomElementEnd(); - $r3$.ɵɵdomElementStart(2, "span"); - $r3$.ɵɵtext(3, " "); - $r3$.ɵɵi18n(4, 1); - $r3$.ɵɵtext(5, " "); - $r3$.ɵɵdomElementEnd(); - } if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.someField); - $r3$.ɵɵi18nApply(1); - $r3$.ɵɵadvance(3); - $r3$.ɵɵi18nExp(ctx.someField); - $r3$.ɵɵi18nApply(4); - } -} + + { + someField, + select, + WEBSITE { + someText + } + } + +` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "root_icu_with_elements.ts", + lineNumber: 25 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/shared_placeholder.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/shared_placeholder.js index f50ae693f7ba..fbcaec25c02d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/shared_placeholder.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/shared_placeholder.js @@ -1,118 +1,183 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_3_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 1); - $r3$.ɵɵelement(1, "div"); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 1); + i0.ɵɵelement(1, "div"); + i0.ɵɵi18nEnd(); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp($ctx_r0$.gender); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx_r0.gender); + i0.ɵɵi18nApply(0); } } -… -decls: 4, -vars: 3, -consts: () => { - // NOTE: Keeping raw content here to illustrate the difference in placeholders generated for goog.getMsg and $localize calls (see last i18n block). - let $I18N_1$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_APP_SPEC_TS_1$ = /* @ts-ignore */ goog.getMsg("{VAR_SELECT, select, male {male} female {female} other {other}}"); - $I18N_1$ = $MSG_APP_SPEC_TS_1$; - } - else { - /* @ts-ignore */ - $I18N_1$ = $localize `{VAR_SELECT, select, male {male} female {female} other {other}}`; - } - $I18N_1$ = $r3$.ɵɵi18nPostprocess($I18N_1$, { - "VAR_SELECT": "\uFFFD0\uFFFD" - }); - - let $I18N_2$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_APP_SPEC_TS_2$ = /* @ts-ignore */ goog.getMsg("{VAR_SELECT, select, male {male} female {female} other {other}}"); - $I18N_2$ = $MSG_APP_SPEC_TS_2$; - } - else { - /* @ts-ignore */ - $I18N_2$ = $localize `{VAR_SELECT, select, male {male} female {female} other {other}}`; - } - $I18N_2$ = $r3$.ɵɵi18nPostprocess($I18N_2$, { - "VAR_SELECT": "\uFFFD1\uFFFD" +export class MyComponent { + gender = "male"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 4, + vars: 3, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7842238767399919809$$SHARED_PLACEHOLDER_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, male {male} female {female} other {other}}"); + i18n_0 = MSG_EXTERNAL_7842238767399919809$$SHARED_PLACEHOLDER_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, male {male} female {female} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7842238767399919809$$SHARED_PLACEHOLDER_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, male {male} female {female} other {other}}"); + i18n_1 = MSG_EXTERNAL_7842238767399919809$$SHARED_PLACEHOLDER_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, male {male} female {female} other {other}}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD1\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7842238767399919809$$SHARED_PLACEHOLDER_TS_2 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, male {male} female {female} other {other}}"); + i18n_2 = MSG_EXTERNAL_7842238767399919809$$SHARED_PLACEHOLDER_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`{VAR_SELECT, select, male {male} female {female} other {other}}`; + } + i18n_2 = i0.ɵɵi18nPostprocess(i18n_2, { "VAR_SELECT": "\uFFFD0:1\uFFFD" }); + let i18n_3; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_795316458693634260$$SHARED_PLACEHOLDER_TS_3 = + /* @ts-ignore */ + goog.getMsg( + " {$icu} {$startTagDiv} {$icu} {$closeTagDiv}{$startTagDiv_1} {$icu} {$closeTagDiv}", + { + "closeTagDiv": "[\uFFFD/#2\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*3:1\uFFFD]", + "icu": "\uFFFDI18N_EXP_ICU\uFFFD", + "startTagDiv": "\uFFFD#2\uFFFD", + "startTagDiv_1": "\uFFFD*3:1\uFFFD\uFFFD#1:1\uFFFD" + }, + { + original_code: { + "closeTagDiv": "
    ", + "icu": "{gender, select, male {male} female {female} other {other}}", + "startTagDiv": "
    ", + "startTagDiv_1": '
    ' + } + } + ); + i18n_3 = MSG_EXTERNAL_795316458693634260$$SHARED_PLACEHOLDER_TS_3; + } else { + /* @ts-ignore */ + i18n_3 = $localize` ${"\uFFFDI18N_EXP_ICU\uFFFD"}:ICU@@7670372064920373295: ${"\uFFFD#2\uFFFD"}:START_TAG_DIV: ${"\uFFFDI18N_EXP_ICU\uFFFD"}:ICU@@7670372064920373295: ${"[\uFFFD/#2\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*3:1\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD*3:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_DIV_1: ${"\uFFFDI18N_EXP_ICU\uFFFD"}:ICU@@7670372064920373295: ${"[\uFFFD/#2\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*3:1\uFFFD]"}:CLOSE_TAG_DIV:`; + } + i18n_3 = i0.ɵɵi18nPostprocess(i18n_3, { "ICU": [i18n_0, i18n_1, i18n_2] }); + return [i18n_3, [4, "ngIf"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵelement(2, "div"); + i0.ɵɵtemplate(3, MyComponent_div_3_Template, 2, 1, "div", 1); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(3); + i0.ɵɵproperty("ngIf", ctx.visible); + i0.ɵɵi18nExp(ctx.gender)(ctx.gender); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 }); - - let $I18N_4$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_APP_SPEC_TS__4$ = /* @ts-ignore */ goog.getMsg("{VAR_SELECT, select, male {male} female {female} other {other}}"); - $I18N_4$ = $MSG_APP_SPEC_TS__4$; - } - else { - /* @ts-ignore */ - $I18N_4$ = $localize `{VAR_SELECT, select, male {male} female {female} other {other}}`; - } - $I18N_4$ = $r3$.ɵɵi18nPostprocess($I18N_4$, { - "VAR_SELECT": "\uFFFD0:1\uFFFD" - }); - - let $I18N_0$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_APP_SPEC_TS_0$ = /* @ts-ignore */ goog.getMsg(" {$icu} {$startTagDiv} {$icu} {$closeTagDiv}{$startTagDiv_1} {$icu} {$closeTagDiv}", { - "closeTagDiv": "[\uFFFD/#2\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*3:1\uFFFD]", - "icu": "\uFFFDI18N_EXP_ICU\uFFFD", - "startTagDiv": "\uFFFD#2\uFFFD", - "startTagDiv_1": "\uFFFD*3:1\uFFFD\uFFFD#1:1\uFFFD" - }, { - original_code: { - "closeTagDiv": "
    ", - "icu": "{gender, select, male {male} female {female} other {other}}", - "startTagDiv": "
    ", - "startTagDiv_1": "
    " +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + {gender, select, male {male} female {female} other {other}} +
    + {gender, select, male {male} female {female} other {other}} +
    +
    + {gender, select, male {male} female {female} other {other}} +
    +
    +`, + standalone: false + } + ] } - }); - $I18N_0$ = $MSG_APP_SPEC_TS_0$; - } - else { - /* @ts-ignore */ - $I18N_0$ = $localize ` ${"\uFFFDI18N_EXP_ICU\uFFFD"}:ICU@@7670372064920373295: ${"\uFFFD#2\uFFFD"}:START_TAG_DIV: ${"\uFFFDI18N_EXP_ICU\uFFFD"}:ICU@@7670372064920373295: ${"[\uFFFD/#2\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*3:1\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD*3:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_DIV_1: ${"\uFFFDI18N_EXP_ICU\uFFFD"}:ICU@@7670372064920373295: ${"[\uFFFD/#2\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*3:1\uFFFD]"}:CLOSE_TAG_DIV:`; - } - - $I18N_0$ = $r3$.ɵɵi18nPostprocess($I18N_0$, { - "ICU": [$I18N_1$, $I18N_2$, $I18N_4$] - }); - return [ - $i18n_0$, - [__AttributeMarker.Template__, "ngIf"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵelement(2, "div"); - $r3$.ɵɵtemplate(3, MyComponent_div_3_Template, 2, 1, "div", 1); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(3); - $r3$.ɵɵproperty("ngIf", ctx.visible); - $r3$.ɵɵi18nExp(ctx.gender)(ctx.gender); - $r3$.ɵɵi18nApply(1); - } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "shared_placeholder.ts", + lineNumber: 18 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } - -// NOTE: TODO(FW-635): this use-case is currently supported with file-based prefix for translation const names. -// NOTE: Translation statements caching is required to support this use-case with id-based consts. +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/single_icu.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/single_icu.js index 771eab88e5ef..dc071a98b2db 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/single_icu.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/single_icu.js @@ -1,19 +1,121 @@ -decls: 2, -vars: 1, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT, select, male {male} female {female} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - __i18nMsg__('before {$icu} after', [['icu', '$i18n_0$', '7670372064920373295']], {original_code: {'icu': '{gender, select, male {male} female {female} other {other}}'}}, {}) - return [$i18n_1$]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.gender); - $r3$.ɵɵi18nApply(1); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + gender = "male"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7842238767399919809$$SINGLE_ICU_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, male {male} female {female} other {other}}"); + i18n_0 = MSG_EXTERNAL_7842238767399919809$$SINGLE_ICU_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, male {male} female {female} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3335957916051601262$$SINGLE_ICU_TS_1 = + /* @ts-ignore */ + goog.getMsg( + "before {$icu} after", + { "icu": i18n_0 }, + { + original_code: { + "icu": "{gender, select, male {male} female {female} other {other}}" + } + } + ); + i18n_1 = MSG_EXTERNAL_3335957916051601262$$SINGLE_ICU_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`before ${i18n_0}:ICU@@7670372064920373295: after`; + } + return [i18n_1]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.gender); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    before {gender, select, male {male} female {female} other {other}} after
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "single_icu.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/TEST_CASES.json b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/TEST_CASES.json index 3e5c45518af7..474ea298bb3e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/TEST_CASES.json +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/TEST_CASES.json @@ -3,197 +3,109 @@ "cases": [ { "description": "should normalize line breaks for non-legacy messages in 'inline templates' where i18nNormalizeLineEndingsInICUs is true", - "inputFiles": [ - "inline_template_non_legacy_normalized.ts" - ], + "inputFiles": ["inline_template_non_legacy_normalized.ts"], "angularCompilerOptions": { "i18nNormalizeLineEndingsInICUs": true, "enableI18nLegacyMessageIdFormat": false }, "expectations": [ { - "files": [ - { - "generated": "inline_template_non_legacy_normalized.js", - "expected": "inline_template_non_legacy.js" - } - ], - "extraChecks": [ - "verifyPlaceholdersIntegrity", - "verifyUniqueConsts" - ] + "extraChecks": ["verifyPlaceholdersIntegrity", "verifyUniqueConsts"] } ] }, { "description": "should normalize line breaks for non-legacy messages in 'inline templates' where i18nNormalizeLineEndingsInICUs is false", - "inputFiles": [ - "inline_template_non_legacy_non_normalized.ts" - ], + "inputFiles": ["inline_template_non_legacy_non_normalized.ts"], "angularCompilerOptions": { "i18nNormalizeLineEndingsInICUs": false, "enableI18nLegacyMessageIdFormat": false }, "expectations": [ { - "files": [ - { - "generated": "inline_template_non_legacy_non_normalized.js", - "expected": "inline_template_non_legacy.js" - } - ], - "extraChecks": [ - "verifyPlaceholdersIntegrity", - "verifyUniqueConsts" - ] + "extraChecks": ["verifyPlaceholdersIntegrity", "verifyUniqueConsts"] } ] }, { "description": "should normalize line breaks for non-legacy messages in 'external templates' where i18nNormalizeLineEndingsInICUs is true", - "inputFiles": [ - "external_template_non_legacy_normalized.ts" - ], + "inputFiles": ["external_template_non_legacy_normalized.ts"], "angularCompilerOptions": { "i18nNormalizeLineEndingsInICUs": true, "enableI18nLegacyMessageIdFormat": false }, "expectations": [ { - "files": [ - { - "generated": "external_template_non_legacy_normalized.js", - "expected": "external_template_non_legacy.js" - } - ], - "extraChecks": [ - "verifyPlaceholdersIntegrity", - "verifyUniqueConsts" - ] + "extraChecks": ["verifyPlaceholdersIntegrity", "verifyUniqueConsts"] } ] }, { "description": "should normalize line breaks for non-legacy messages in 'external templates' where i18nNormalizeLineEndingsInICUs is false", - "inputFiles": [ - "external_template_non_legacy_non_normalized.ts" - ], + "inputFiles": ["external_template_non_legacy_non_normalized.ts"], "angularCompilerOptions": { "i18nNormalizeLineEndingsInICUs": false, "enableI18nLegacyMessageIdFormat": false }, "expectations": [ { - "files": [ - { - "generated": "external_template_non_legacy_non_normalized.js", - "expected": "external_template_non_legacy.js" - } - ], - "extraChecks": [ - "verifyPlaceholdersIntegrity", - "verifyUniqueConsts" - ] + "extraChecks": ["verifyPlaceholdersIntegrity", "verifyUniqueConsts"] } ] }, { "description": "should compute normalized legacy ids for messages in inline templates where i18nNormalizeLineEndingsInICUs is true", - "inputFiles": [ - "inline_template_legacy_normalized.ts" - ], + "inputFiles": ["inline_template_legacy_normalized.ts"], "angularCompilerOptions": { "i18nNormalizeLineEndingsInICUs": true, "enableI18nLegacyMessageIdFormat": true }, - "compilationModeFilter": [ - "full compile", - "declaration-only emit" - ], + "compilationModeFilter": ["full compile", "declaration-only emit"], "expectations": [ { - "files": [ - { - "generated": "inline_template_legacy_normalized.js", - "expected": "inline_template_legacy.js" - } - ], - "extraChecks": [ - "verifyPlaceholdersIntegrity", - "verifyUniqueConsts" - ] + "extraChecks": ["verifyPlaceholdersIntegrity", "verifyUniqueConsts"] } ] }, { "description": "should compute normalized legacy ids for messages in inline templates where i18nNormalizeLineEndingsInICUs is false", - "inputFiles": [ - "inline_template_legacy_non_normalized.ts" - ], + "inputFiles": ["inline_template_legacy_non_normalized.ts"], "angularCompilerOptions": { "i18nNormalizeLineEndingsInICUs": false, "enableI18nLegacyMessageIdFormat": true }, - "compilationModeFilter": [ - "full compile", - "declaration-only emit" - ], + "compilationModeFilter": ["full compile", "declaration-only emit"], "expectations": [ { - "files": [ - { - "generated": "inline_template_legacy_non_normalized.js", - "expected": "inline_template_legacy.js" - } - ], - "extraChecks": [ - "verifyPlaceholdersIntegrity", - "verifyUniqueConsts" - ] + "extraChecks": ["verifyPlaceholdersIntegrity", "verifyUniqueConsts"] } ] }, { "description": "should compute normalized legacy ids for messages in external templates where i18nNormalizeLineEndingsInICUs is true", - "inputFiles": [ - "external_template_legacy_normalized.ts" - ], + "inputFiles": ["external_template_legacy_normalized.ts"], "angularCompilerOptions": { "i18nNormalizeLineEndingsInICUs": true, "enableI18nLegacyMessageIdFormat": true }, - "compilationModeFilter": [ - "full compile", - "declaration-only emit" - ], + "compilationModeFilter": ["full compile", "declaration-only emit"], "expectations": [ { - "extraChecks": [ - "verifyPlaceholdersIntegrity", - "verifyUniqueConsts" - ] + "extraChecks": ["verifyPlaceholdersIntegrity", "verifyUniqueConsts"] } ] }, { "description": "should compute non-normalized legacy ids for messages in external templates where i18nNormalizeLineEndingsInICUs is false", - "inputFiles": [ - "external_template_legacy_non_normalized.ts" - ], + "inputFiles": ["external_template_legacy_non_normalized.ts"], "angularCompilerOptions": { "i18nNormalizeLineEndingsInICUs": false, "enableI18nLegacyMessageIdFormat": true }, - "compilationModeFilter": [ - "full compile", - "declaration-only emit" - ], + "compilationModeFilter": ["full compile", "declaration-only emit"], "expectations": [ { - "extraChecks": [ - "verifyPlaceholdersIntegrity", - "verifyUniqueConsts" - ] + "extraChecks": ["verifyPlaceholdersIntegrity", "verifyUniqueConsts"] } ] } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_legacy_non_normalized.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_legacy_non_normalized.js index 3de7f7926b90..790314bc8581 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_legacy_non_normalized.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_legacy_non_normalized.js @@ -1,8 +1,135 @@ -// NOTE: The ids generated by the compiler are different if the template is external and we are not explicitly normalizing the line endings. -$I18N_1$ = $localize `:␟4f9ce2c66b187afd9898b25f6336d1eb2be8b5dc␟7326958852138509669:abc +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + value; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7326958852138509669$$EXTERNAL_TEMPLATE_LEGACY_NON_NORMALIZED_TS_0 = + /* @ts-ignore */ + goog.getMsg("abc\ndef"); + i18n_0 = MSG_EXTERNAL_7326958852138509669$$EXTERNAL_TEMPLATE_LEGACY_NON_NORMALIZED_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:␟4f9ce2c66b187afd9898b25f6336d1eb2be8b5dc␟7326958852138509669:abc def`; -… -$I18N_2$ = $localize `:␟ed275132ef4cf80cbcf817e66b74c384e68340b1␟2056861121373082280:{VAR_SELECT, select, =0 {zero - }}` -… -$I18N_3$ = $localize `:␟55d63b098ee4cce61944f086cdd9b60c6bcef20b␟6752545234037626269: Some Message ${$I18N_2$}:ICU:`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2056861121373082280$$EXTERNAL_TEMPLATE_LEGACY_NON_NORMALIZED_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, =0 {zero\n }}"); + i18n_1 = MSG_EXTERNAL_2056861121373082280$$EXTERNAL_TEMPLATE_LEGACY_NON_NORMALIZED_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`:␟ed275132ef4cf80cbcf817e66b74c384e68340b1␟2056861121373082280:{VAR_SELECT, select, =0 {zero + }}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6752545234037626269$$EXTERNAL_TEMPLATE_LEGACY_NON_NORMALIZED_TS_2 = + /* @ts-ignore */ + goog.getMsg( + " Some Message {$icu}", + { "icu": i18n_1 }, + { + original_code: { + "icu": "{\r\n value,\r\n select,\r\n =0 {\r\n zero\r\n }\r\n }" + } + } + ); + i18n_2 = MSG_EXTERNAL_6752545234037626269$$EXTERNAL_TEMPLATE_LEGACY_NON_NORMALIZED_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`:␟55d63b098ee4cce61944f086cdd9b60c6bcef20b␟6752545234037626269: Some Message ${i18n_1}:ICU:`; + } + return [i18n_2, ["title", i18n_0]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.value); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + standalone: false, + template: + '\n
    \r\n Some Message\r\n {\r\n value,\r\n select,\r\n =0 {\r\n zero\r\n }\r\n }
    ' + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "external_template_legacy_non_normalized.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_legacy_normalized.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_legacy_normalized.js index b52187f4b2b1..442b4eb1989e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_legacy_normalized.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_legacy_normalized.js @@ -1,8 +1,135 @@ -// NOTE: The ids generated by the compiler are different if the template is external and we are not explicitly normalizing the line endings. -$I18N_1$ = $localize `:␟4f9ce2c66b187afd9898b25f6336d1eb2be8b5dc␟7326958852138509669:abc +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + value; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7326958852138509669$$EXTERNAL_TEMPLATE_LEGACY_NORMALIZED_TS_0 = + /* @ts-ignore */ + goog.getMsg("abc\ndef"); + i18n_0 = MSG_EXTERNAL_7326958852138509669$$EXTERNAL_TEMPLATE_LEGACY_NORMALIZED_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:␟4f9ce2c66b187afd9898b25f6336d1eb2be8b5dc␟7326958852138509669:abc def`; -… -$I18N_2$ = $localize `:␟47e6af99f2e9137a977cf8c7bf39d091d339ae3a␟2056861121373082280:{VAR_SELECT, select, =0 {zero - }}` -… -$I18N_3$ = $localize `:␟23ea0658f9e9f6c61c9e2798fff0f4b11c509fae␟6752545234037626269: Some Message ${$I18N_2$}:ICU:`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2056861121373082280$$EXTERNAL_TEMPLATE_LEGACY_NORMALIZED_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, =0 {zero\n }}"); + i18n_1 = MSG_EXTERNAL_2056861121373082280$$EXTERNAL_TEMPLATE_LEGACY_NORMALIZED_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`:␟47e6af99f2e9137a977cf8c7bf39d091d339ae3a␟2056861121373082280:{VAR_SELECT, select, =0 {zero + }}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6752545234037626269$$EXTERNAL_TEMPLATE_LEGACY_NORMALIZED_TS_2 = + /* @ts-ignore */ + goog.getMsg( + " Some Message {$icu}", + { "icu": i18n_1 }, + { + original_code: { + "icu": "{\r\n value,\r\n select,\r\n =0 {\r\n zero\r\n }\r\n }" + } + } + ); + i18n_2 = MSG_EXTERNAL_6752545234037626269$$EXTERNAL_TEMPLATE_LEGACY_NORMALIZED_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`:␟23ea0658f9e9f6c61c9e2798fff0f4b11c509fae␟6752545234037626269: Some Message ${i18n_1}:ICU:`; + } + return [i18n_2, ["title", i18n_0]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.value); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + standalone: false, + template: + '\n
    \r\n Some Message\r\n {\r\n value,\r\n select,\r\n =0 {\r\n zero\r\n }\r\n }
    ' + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "external_template_legacy_normalized.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_non_legacy.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_non_legacy.js deleted file mode 100644 index 21fe25109156..000000000000 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_non_legacy.js +++ /dev/null @@ -1,7 +0,0 @@ -$I18N_0$ = $localize `abc -def`; -… -$I18N_4$ = $localize `{VAR_SELECT, select, =0 {zero - }}` -… -$I18N_3$ = $localize ` Some Message ${$I18N_4$}:ICU@@2416068396348331473:`; diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_non_legacy_non_normalized.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_non_legacy_non_normalized.js new file mode 100644 index 000000000000..b7c57d3029aa --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_non_legacy_non_normalized.js @@ -0,0 +1,131 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + value; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7326958852138509669$$EXTERNAL_TEMPLATE_NON_LEGACY_NON_NORMALIZED_TS_0 = + /* @ts-ignore */ + goog.getMsg("abc\ndef"); + i18n_0 = MSG_EXTERNAL_7326958852138509669$$EXTERNAL_TEMPLATE_NON_LEGACY_NON_NORMALIZED_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`abc +def`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2056861121373082280$$EXTERNAL_TEMPLATE_NON_LEGACY_NON_NORMALIZED_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, =0 {zero\n }}"); + i18n_1 = MSG_EXTERNAL_2056861121373082280$$EXTERNAL_TEMPLATE_NON_LEGACY_NON_NORMALIZED_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, =0 {zero + }}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6752545234037626269$$EXTERNAL_TEMPLATE_NON_LEGACY_NON_NORMALIZED_TS_2 = + /* @ts-ignore */ + goog.getMsg( + " Some Message {$icu}", + { "icu": i18n_1 }, + { original_code: { "icu": … } } + ); + i18n_2 = MSG_EXTERNAL_6752545234037626269$$EXTERNAL_TEMPLATE_NON_LEGACY_NON_NORMALIZED_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize` Some Message ${i18n_1}:ICU@@2416068396348331473:`; + } + return [i18n_2, ["title", i18n_0]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.value); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + standalone: false, + template: + '\n
    \r\n Some Message\r\n {\r\n value,\r\n select,\r\n =0 {\r\n zero\r\n }\r\n }
    ' + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "external_template_non_legacy_non_normalized.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_non_legacy_normalized.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_non_legacy_normalized.js new file mode 100644 index 000000000000..1270e6263c7b --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/external_template_non_legacy_normalized.js @@ -0,0 +1,131 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + value; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7326958852138509669$$EXTERNAL_TEMPLATE_NON_LEGACY_NORMALIZED_TS_0 = + /* @ts-ignore */ + goog.getMsg("abc\ndef"); + i18n_0 = MSG_EXTERNAL_7326958852138509669$$EXTERNAL_TEMPLATE_NON_LEGACY_NORMALIZED_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`abc +def`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2056861121373082280$$EXTERNAL_TEMPLATE_NON_LEGACY_NORMALIZED_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, =0 {zero\n }}"); + i18n_1 = MSG_EXTERNAL_2056861121373082280$$EXTERNAL_TEMPLATE_NON_LEGACY_NORMALIZED_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, =0 {zero + }}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6752545234037626269$$EXTERNAL_TEMPLATE_NON_LEGACY_NORMALIZED_TS_2 = + /* @ts-ignore */ + goog.getMsg( + " Some Message {$icu}", + { "icu": i18n_1 }, + { original_code: { "icu": … } } + ); + i18n_2 = MSG_EXTERNAL_6752545234037626269$$EXTERNAL_TEMPLATE_NON_LEGACY_NORMALIZED_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize` Some Message ${i18n_1}:ICU@@2416068396348331473:`; + } + return [i18n_2, ["title", i18n_0]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.value); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + standalone: false, + template: + '\n
    \r\n Some Message\r\n {\r\n value,\r\n select,\r\n =0 {\r\n zero\r\n }\r\n }
    ' + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "external_template_non_legacy_normalized.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_legacy.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_legacy.js deleted file mode 100644 index 7ad84559ffc0..000000000000 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_legacy.js +++ /dev/null @@ -1,10 +0,0 @@ -// NOTE: The ids generated by the compiler are different if the template is external and we are not explicitly normalizing the line endings. -$I18N_0$ = $localize `:␟4f9ce2c66b187afd9898b25f6336d1eb2be8b5dc␟7326958852138509669:abc -def`; -… -$I18N_4$ = $localize `:␟b5fe162f4e47ab5b3e534491d30b715e0dff0f52␟4863953183043480207:{VAR_SELECT, select, =0 {zero - }}` -… -$I18N_3$ = $localize `:␟e31c7bc4db2f2e56dc40f005958055a02fd43a2e␟2773178924738647105: -Some Message -${$I18N_4$}:ICU:`; diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_legacy_non_normalized.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_legacy_non_normalized.js new file mode 100644 index 000000000000..a45eaf656c74 --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_legacy_non_normalized.js @@ -0,0 +1,148 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + value; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7326958852138509669$$INLINE_TEMPLATE_LEGACY_NON_NORMALIZED_TS_0 = + /* @ts-ignore */ + goog.getMsg("abc\ndef"); + i18n_0 = MSG_EXTERNAL_7326958852138509669$$INLINE_TEMPLATE_LEGACY_NON_NORMALIZED_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:␟4f9ce2c66b187afd9898b25f6336d1eb2be8b5dc␟7326958852138509669:abc +def`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4863953183043480207$$INLINE_TEMPLATE_LEGACY_NON_NORMALIZED_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, =0 {zero\n }}"); + i18n_1 = MSG_EXTERNAL_4863953183043480207$$INLINE_TEMPLATE_LEGACY_NON_NORMALIZED_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`:␟b5fe162f4e47ab5b3e534491d30b715e0dff0f52␟4863953183043480207:{VAR_SELECT, select, =0 {zero + }}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2773178924738647105$$INLINE_TEMPLATE_LEGACY_NON_NORMALIZED_TS_2 = + /* @ts-ignore */ + goog.getMsg( + "\nSome Message\n{$icu}", + { "icu": i18n_1 }, + { + original_code: { + "icu": "{\r\n value,\r\n select,\r\n =0 {\r\n zero\r\n }\r\n}" + } + } + ); + i18n_2 = MSG_EXTERNAL_2773178924738647105$$INLINE_TEMPLATE_LEGACY_NON_NORMALIZED_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`:␟e31c7bc4db2f2e56dc40f005958055a02fd43a2e␟2773178924738647105: +Some Message +${i18n_1}:ICU:`; + } + return [i18n_2, ["title", i18n_0]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.value); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + // NOTE: This template has escaped `\r\n` line-endings markers that will be converted to real + // `\r\n` line-ending chars when loaded from the test file-system. + template: ` +
    +Some Message +{ + value, + select, + =0 { + zero + } +}
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "inline_template_legacy_non_normalized.ts", + lineNumber: 20 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_legacy_normalized.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_legacy_normalized.js new file mode 100644 index 000000000000..2ffffe79d52d --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_legacy_normalized.js @@ -0,0 +1,148 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + value; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7326958852138509669$$INLINE_TEMPLATE_LEGACY_NORMALIZED_TS_0 = + /* @ts-ignore */ + goog.getMsg("abc\ndef"); + i18n_0 = MSG_EXTERNAL_7326958852138509669$$INLINE_TEMPLATE_LEGACY_NORMALIZED_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:␟4f9ce2c66b187afd9898b25f6336d1eb2be8b5dc␟7326958852138509669:abc +def`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4863953183043480207$$INLINE_TEMPLATE_LEGACY_NORMALIZED_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, =0 {zero\n }}"); + i18n_1 = MSG_EXTERNAL_4863953183043480207$$INLINE_TEMPLATE_LEGACY_NORMALIZED_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`:␟b5fe162f4e47ab5b3e534491d30b715e0dff0f52␟4863953183043480207:{VAR_SELECT, select, =0 {zero + }}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2773178924738647105$$INLINE_TEMPLATE_LEGACY_NORMALIZED_TS_2 = + /* @ts-ignore */ + goog.getMsg( + "\nSome Message\n{$icu}", + { "icu": i18n_1 }, + { + original_code: { + "icu": "{\r\n value,\r\n select,\r\n =0 {\r\n zero\r\n }\r\n}" + } + } + ); + i18n_2 = MSG_EXTERNAL_2773178924738647105$$INLINE_TEMPLATE_LEGACY_NORMALIZED_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`:␟e31c7bc4db2f2e56dc40f005958055a02fd43a2e␟2773178924738647105: +Some Message +${i18n_1}:ICU:`; + } + return [i18n_2, ["title", i18n_0]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.value); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + // NOTE: This template has escaped `\r\n` line-endings markers that will be converted to real + // `\r\n` line-ending chars when loaded from the test file-system. + template: ` +
    +Some Message +{ + value, + select, + =0 { + zero + } +}
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "inline_template_legacy_normalized.ts", + lineNumber: 20 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_non_legacy.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_non_legacy.js deleted file mode 100644 index 96918e9fd686..000000000000 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_non_legacy.js +++ /dev/null @@ -1,9 +0,0 @@ -$I18N_0$ = $localize `abc -def`; -… -$I18N_4$ = $localize `{VAR_SELECT, select, =0 {zero - }}` -… -$I18N_3$ = $localize ` -Some Message -${$I18N_4$}:ICU@@7530413425895265894:`; diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_non_legacy_non_normalized.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_non_legacy_non_normalized.js new file mode 100644 index 000000000000..83be71c49405 --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_non_legacy_non_normalized.js @@ -0,0 +1,144 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + value; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7326958852138509669$$INLINE_TEMPLATE_NON_LEGACY_NON_NORMALIZED_TS_0 = + /* @ts-ignore */ + goog.getMsg("abc\ndef"); + i18n_0 = MSG_EXTERNAL_7326958852138509669$$INLINE_TEMPLATE_NON_LEGACY_NON_NORMALIZED_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`abc +def`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4863953183043480207$$INLINE_TEMPLATE_NON_LEGACY_NON_NORMALIZED_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, =0 {zero\n }}"); + i18n_1 = MSG_EXTERNAL_4863953183043480207$$INLINE_TEMPLATE_NON_LEGACY_NON_NORMALIZED_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, =0 {zero + }}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2773178924738647105$$INLINE_TEMPLATE_NON_LEGACY_NON_NORMALIZED_TS_2 = + /* @ts-ignore */ + goog.getMsg( + "\nSome Message\n{$icu}", + { "icu": i18n_1 }, + { original_code: { "icu": … } } + ); + i18n_2 = MSG_EXTERNAL_2773178924738647105$$INLINE_TEMPLATE_NON_LEGACY_NON_NORMALIZED_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize` +Some Message +${i18n_1}:ICU@@7530413425895265894:`; + } + return [i18n_2, ["title", i18n_0]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.value); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + // NOTE: This template has escaped `\r\n` line-endings markers that will be converted to real + // `\r\n` line-ending chars when loaded from the test file-system. + template: ` +
    +Some Message +{ + value, + select, + =0 { + zero + } +}
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "inline_template_non_legacy_non_normalized.ts", + lineNumber: 20 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_non_legacy_normalized.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_non_legacy_normalized.js new file mode 100644 index 000000000000..df433eafdb69 --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/inline_template_non_legacy_normalized.js @@ -0,0 +1,144 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + value; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7326958852138509669$$INLINE_TEMPLATE_NON_LEGACY_NORMALIZED_TS_0 = + /* @ts-ignore */ + goog.getMsg("abc\ndef"); + i18n_0 = MSG_EXTERNAL_7326958852138509669$$INLINE_TEMPLATE_NON_LEGACY_NORMALIZED_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`abc +def`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4863953183043480207$$INLINE_TEMPLATE_NON_LEGACY_NORMALIZED_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, =0 {zero\n }}"); + i18n_1 = MSG_EXTERNAL_4863953183043480207$$INLINE_TEMPLATE_NON_LEGACY_NORMALIZED_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, =0 {zero + }}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2773178924738647105$$INLINE_TEMPLATE_NON_LEGACY_NORMALIZED_TS_2 = + /* @ts-ignore */ + goog.getMsg( + "\nSome Message\n{$icu}", + { "icu": i18n_1 }, + { original_code: { "icu": … } } + ); + i18n_2 = MSG_EXTERNAL_2773178924738647105$$INLINE_TEMPLATE_NON_LEGACY_NORMALIZED_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize` +Some Message +${i18n_1}:ICU@@7530413425895265894:`; + } + return [i18n_2, ["title", i18n_0]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.value); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + // NOTE: This template has escaped `\r\n` line-endings markers that will be converted to real + // `\r\n` line-ending chars when loaded from the test file-system. + template: ` +
    +Some Message +{ + value, + select, + =0 { + zero + } +}
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "inline_template_non_legacy_normalized.ts", + lineNumber: 20 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/legacy_disabled.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/legacy_disabled.js index bfb0faaab47d..97b732c90752 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/legacy_disabled.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/legacy_disabled.js @@ -1,7 +1,93 @@ -let $I18N_0$; -if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - … -} else { - /* @ts-ignore */ - $I18N_0$ = $localize`Some Message`; +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6795333002533525253$$LEGACY_DISABLED_TS_0 = + /* @ts-ignore */ + goog.getMsg("Some Message"); + i18n_0 = MSG_EXTERNAL_6795333002533525253$$LEGACY_DISABLED_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Some Message`; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    Some Message
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "legacy_disabled.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/legacy_enabled.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/legacy_enabled.js index 6cbf4fa9b9e6..47366ee4684c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/legacy_enabled.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/legacy_enabled.js @@ -1,130 +1,231 @@ -consts: () => { - let $i18n_0$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_2908931752694090721$$LEGACY_ENABLED_TS_1$ = /* @ts-ignore */ goog.getMsg( - "Some & attribute"); - $i18n_0$ = $MSG_EXTERNAL_2908931752694090721$$LEGACY_ENABLED_TS_1$; - } else { - /* @ts-ignore */ - $i18n_0$ = $localize`:␟82ec661067f503a3357ecc159b2128325e9208cd␟2908931752694090721:Some & attribute`; - } - let $i18n_2$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_2720535395337591908$$LEGACY_ENABLED_TS_13$ = /* @ts-ignore */ goog.getMsg( - "\""); - $i18n_2$ = $MSG_EXTERNAL_2720535395337591908$$LEGACY_ENABLED_TS_13$; - } else { - /* @ts-ignore */ - $i18n_2$ = $localize`:␟5b30d888e99e7c6cfc6265f89c39b5921805cd2e␟2720535395337591908:"`; - } - let $i18n_4$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_3600934704948217447$$LEGACY_ENABLED_TS_15$ = /* @ts-ignore */ goog.getMsg( - "\"\""); - $i18n_4$ = $MSG_EXTERNAL_3600934704948217447$$LEGACY_ENABLED_TS_15$; - } else { - /* @ts-ignore */ - $i18n_4$ = $localize`:␟bdfdbea9161864191756930161fd41b8bc980fde␟3600934704948217447:""`; - } - let $i18n_6$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_2334195497629636162$$LEGACY_ENABLED_TS_5$ = /* @ts-ignore */ goog.getMsg( - "Some & {$interpolation} attribute", {"interpolation": "\uFFFD0\uFFFD"}, - {original_code: {"interpolation": "{{'interpolated'}}"}}); - $i18n_6$ = $MSG_EXTERNAL_2334195497629636162$$LEGACY_ENABLED_TS_5$; - } else { - /* @ts-ignore */ - $i18n_6$ = $localize`:␟57ebd20267116c04cc1dbd7be0b73bf56484f45d␟2334195497629636162:Some & ${"\uFFFD0\uFFFD"}:INTERPOLATION: attribute`; - } - let $i18n_8$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_4700340487900776701$$LEGACY_ENABLED_TS_3$ = /* @ts-ignore */ goog.getMsg( - "Some & message"); - $i18n_8$ = $MSG_EXTERNAL_4700340487900776701$$LEGACY_ENABLED_TS_3$; - } else { - /* @ts-ignore */ - $i18n_8$ = $localize`:␟10adaf0ad7b8ba40200cd3c0e7c8d0f13280d522␟4700340487900776701:Some & message`; - } - let $i18n_10$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_3204054277547499090$$LEGACY_ENABLED_TS_7$ = /* @ts-ignore */ goog.getMsg( - "Some & {$interpolation} message", {"interpolation": "\uFFFD0\uFFFD"}, - {original_code: {"interpolation": "{{'interpolated' }}"}}); - $i18n_10$ = $MSG_EXTERNAL_3204054277547499090$$LEGACY_ENABLED_TS_7$; - } else { - /* @ts-ignore */ - $i18n_10$ = $localize`:␟28d558ca32556f1da67a333e3dada321a97212cd␟3204054277547499090:Some & ${"\uFFFD0\uFFFD"}:INTERPOLATION: message`; - } - let $i18n_12$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_2406634758623728945$$LEGACY_ENABLED_TS_9$ = /* @ts-ignore */ goog.getMsg( - "&"); - $i18n_12$ = $MSG_EXTERNAL_2406634758623728945$$LEGACY_ENABLED_TS_9$; - } else { - /* @ts-ignore */ - $i18n_12$ = $localize`:␟0b3dff7b9382b6217ac97c99f9b04df04381bfdd␟2406634758623728945:&`; - } - let $i18n_14$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_4156372478368653226$$LEGACY_ENABLED_TS_11$ = /* @ts-ignore */ goog.getMsg( - "&\""); - $i18n_14$ = $MSG_EXTERNAL_4156372478368653226$$LEGACY_ENABLED_TS_11$; - } else { - /* @ts-ignore */ - $i18n_14$ = $localize`:␟25b7cbf210e59a931423097cb7f2e1b72991a687␟4156372478368653226:&"`; - } - return [$i18n_8$, $i18n_10$, $i18n_12$, $i18n_14$, ["title", $i18n_6$], ["title", $i18n_0$], [6, "title"], ["title", $i18n_2$], ["title", $i18n_4$]]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - i0.ɵɵelement(0, "div", 5); - i0.ɵɵelementStart(1, "div"); - i0.ɵɵi18n(2, 0); - i0.ɵɵelementEnd(); - i0.ɵɵelementStart(3, "div", 6); - i0.ɵɵi18nAttributes(4, 4); - i0.ɵɵelementEnd(); - i0.ɵɵelementStart(5, "div"); - i0.ɵɵi18n(6, 1); - i0.ɵɵelementEnd(); - i0.ɵɵelementStart(7, "div"); - i0.ɵɵi18n(8, 2); - i0.ɵɵelementEnd(); - i0.ɵɵelementStart(9, "div"); - i0.ɵɵi18n(10, 3); - i0.ɵɵelementEnd(); - i0.ɵɵelement(11, "div", 7)(12, "div", 8); - } - if (rf & 2) { - i0.ɵɵadvance(3); - i0.ɵɵi18nExp("interpolated"); - i0.ɵɵi18nApply(4); - i0.ɵɵadvance(3); - i0.ɵɵi18nExp("interpolated"); - i0.ɵɵi18nApply(6); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 13, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2908931752694090721$$LEGACY_ENABLED_TS_0 = + /* @ts-ignore */ + goog.getMsg("Some & attribute"); + i18n_0 = MSG_EXTERNAL_2908931752694090721$$LEGACY_ENABLED_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:␟82ec661067f503a3357ecc159b2128325e9208cd␟2908931752694090721:Some & attribute`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2720535395337591908$$LEGACY_ENABLED_TS_1 = + /* @ts-ignore */ + goog.getMsg('"'); + i18n_1 = MSG_EXTERNAL_2720535395337591908$$LEGACY_ENABLED_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`:␟5b30d888e99e7c6cfc6265f89c39b5921805cd2e␟2720535395337591908:"`; + } + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3600934704948217447$$LEGACY_ENABLED_TS_2 = + /* @ts-ignore */ + goog.getMsg('""'); + i18n_2 = MSG_EXTERNAL_3600934704948217447$$LEGACY_ENABLED_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`:␟bdfdbea9161864191756930161fd41b8bc980fde␟3600934704948217447:""`; + } + let i18n_3; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2334195497629636162$$LEGACY_ENABLED_TS_3 = + /* @ts-ignore */ + goog.getMsg( + "Some & {$interpolation} attribute", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{'interpolated'}}" } } + ); + i18n_3 = MSG_EXTERNAL_2334195497629636162$$LEGACY_ENABLED_TS_3; + } else { + /* @ts-ignore */ + i18n_3 = $localize`:␟57ebd20267116c04cc1dbd7be0b73bf56484f45d␟2334195497629636162:Some & ${"\uFFFD0\uFFFD"}:INTERPOLATION: attribute`; + } + let i18n_4; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4700340487900776701$$LEGACY_ENABLED_TS_4 = + /* @ts-ignore */ + goog.getMsg("Some & message"); + i18n_4 = MSG_EXTERNAL_4700340487900776701$$LEGACY_ENABLED_TS_4; + } else { + /* @ts-ignore */ + i18n_4 = $localize`:␟10adaf0ad7b8ba40200cd3c0e7c8d0f13280d522␟4700340487900776701:Some & message`; + } + let i18n_5; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3204054277547499090$$LEGACY_ENABLED_TS_5 = + /* @ts-ignore */ + goog.getMsg( + "Some & {$interpolation} message", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{'interpolated' }}" } } + ); + i18n_5 = MSG_EXTERNAL_3204054277547499090$$LEGACY_ENABLED_TS_5; + } else { + /* @ts-ignore */ + i18n_5 = $localize`:␟28d558ca32556f1da67a333e3dada321a97212cd␟3204054277547499090:Some & ${"\uFFFD0\uFFFD"}:INTERPOLATION: message`; + } + let i18n_6; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2406634758623728945$$LEGACY_ENABLED_TS_6 = + /* @ts-ignore */ + goog.getMsg("&"); + i18n_6 = MSG_EXTERNAL_2406634758623728945$$LEGACY_ENABLED_TS_6; + } else { + /* @ts-ignore */ + i18n_6 = $localize`:␟0b3dff7b9382b6217ac97c99f9b04df04381bfdd␟2406634758623728945:&`; + } + let i18n_7; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4156372478368653226$$LEGACY_ENABLED_TS_7 = + /* @ts-ignore */ + goog.getMsg('&"'); + i18n_7 = MSG_EXTERNAL_4156372478368653226$$LEGACY_ENABLED_TS_7; + } else { + /* @ts-ignore */ + i18n_7 = $localize`:␟25b7cbf210e59a931423097cb7f2e1b72991a687␟4156372478368653226:&"`; + } + return [ + i18n_4, + i18n_5, + i18n_6, + i18n_7, + ["title", i18n_3], + ["title", i18n_0], + [6, "title"], + ["title", i18n_1], + ["title", i18n_2] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div", 5); + i0.ɵɵelementStart(1, "div"); + i0.ɵɵi18n(2, 0); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(3, "div", 6); + i0.ɵɵi18nAttributes(4, 4); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(5, "div"); + i0.ɵɵi18n(6, 1); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(7, "div"); + i0.ɵɵi18n(8, 2); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(9, "div"); + i0.ɵɵi18n(10, 3); + i0.ɵɵelementEnd(); + i0.ɵɵelement(11, "div", 7)(12, "div", 8); + } + if (rf & 2) { + i0.ɵɵadvance(3); + i0.ɵɵi18nExp("interpolated"); + i0.ɵɵi18nApply(4); + i0.ɵɵadvance(3); + i0.ɵɵi18nExp("interpolated"); + i0.ɵɵi18nApply(6); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    Some & message
    +
    +
    Some & {{'interpolated' }} message
    +
    &
    +
    &"
    +
    +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "legacy_enabled.ts", + lineNumber: 17 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_attributes.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_attributes.js new file mode 100644 index 000000000000..a403bc96b023 --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_attributes.js @@ -0,0 +1,17867 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +function i18n_250() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 251 + */ + const MSG_EXTERNAL_8135467576330035758$$MANY_I18N_ATTRIBUTES_TS_250 = + /* @ts-ignore */ + goog.getMsg("251"); + msg = MSG_EXTERNAL_8135467576330035758$$MANY_I18N_ATTRIBUTES_TS_250; + } else { + /* @ts-ignore */ + msg = $localize`:251:251`; + } + return msg; +} +function i18n_251() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 252 + */ + const MSG_EXTERNAL_3149124541639692071$$MANY_I18N_ATTRIBUTES_TS_251 = + /* @ts-ignore */ + goog.getMsg("252"); + msg = MSG_EXTERNAL_3149124541639692071$$MANY_I18N_ATTRIBUTES_TS_251; + } else { + /* @ts-ignore */ + msg = $localize`:252:252`; + } + return msg; +} +function i18n_252() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 253 + */ + const MSG_EXTERNAL_4048857477971842634$$MANY_I18N_ATTRIBUTES_TS_252 = + /* @ts-ignore */ + goog.getMsg("253"); + msg = MSG_EXTERNAL_4048857477971842634$$MANY_I18N_ATTRIBUTES_TS_252; + } else { + /* @ts-ignore */ + msg = $localize`:253:253`; + } + return msg; +} +function i18n_253() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 254 + */ + const MSG_EXTERNAL_6399057748340713385$$MANY_I18N_ATTRIBUTES_TS_253 = + /* @ts-ignore */ + goog.getMsg("254"); + msg = MSG_EXTERNAL_6399057748340713385$$MANY_I18N_ATTRIBUTES_TS_253; + } else { + /* @ts-ignore */ + msg = $localize`:254:254`; + } + return msg; +} +function i18n_254() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 255 + */ + const MSG_EXTERNAL_6524274391737206658$$MANY_I18N_ATTRIBUTES_TS_254 = + /* @ts-ignore */ + goog.getMsg("255"); + msg = MSG_EXTERNAL_6524274391737206658$$MANY_I18N_ATTRIBUTES_TS_254; + } else { + /* @ts-ignore */ + msg = $localize`:255:255`; + } + return msg; +} +function i18n_255() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 256 + */ + const MSG_EXTERNAL_6991108300301321954$$MANY_I18N_ATTRIBUTES_TS_255 = + /* @ts-ignore */ + goog.getMsg("256"); + msg = MSG_EXTERNAL_6991108300301321954$$MANY_I18N_ATTRIBUTES_TS_255; + } else { + /* @ts-ignore */ + msg = $localize`:256:256`; + } + return msg; +} +function i18n_256() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 257 + */ + const MSG_EXTERNAL_9201468179152343312$$MANY_I18N_ATTRIBUTES_TS_256 = + /* @ts-ignore */ + goog.getMsg("257"); + msg = MSG_EXTERNAL_9201468179152343312$$MANY_I18N_ATTRIBUTES_TS_256; + } else { + /* @ts-ignore */ + msg = $localize`:257:257`; + } + return msg; +} +function i18n_257() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 258 + */ + const MSG_EXTERNAL_1381077111751743526$$MANY_I18N_ATTRIBUTES_TS_257 = + /* @ts-ignore */ + goog.getMsg("258"); + msg = MSG_EXTERNAL_1381077111751743526$$MANY_I18N_ATTRIBUTES_TS_257; + } else { + /* @ts-ignore */ + msg = $localize`:258:258`; + } + return msg; +} +function i18n_258() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 259 + */ + const MSG_EXTERNAL_3880859343808657024$$MANY_I18N_ATTRIBUTES_TS_258 = + /* @ts-ignore */ + goog.getMsg("259"); + msg = MSG_EXTERNAL_3880859343808657024$$MANY_I18N_ATTRIBUTES_TS_258; + } else { + /* @ts-ignore */ + msg = $localize`:259:259`; + } + return msg; +} +function i18n_259() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 260 + */ + const MSG_EXTERNAL_2909185222816770703$$MANY_I18N_ATTRIBUTES_TS_259 = + /* @ts-ignore */ + goog.getMsg("260"); + msg = MSG_EXTERNAL_2909185222816770703$$MANY_I18N_ATTRIBUTES_TS_259; + } else { + /* @ts-ignore */ + msg = $localize`:260:260`; + } + return msg; +} +function i18n_260() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 261 + */ + const MSG_EXTERNAL_1349780592973462586$$MANY_I18N_ATTRIBUTES_TS_260 = + /* @ts-ignore */ + goog.getMsg("261"); + msg = MSG_EXTERNAL_1349780592973462586$$MANY_I18N_ATTRIBUTES_TS_260; + } else { + /* @ts-ignore */ + msg = $localize`:261:261`; + } + return msg; +} +function i18n_261() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 262 + */ + const MSG_EXTERNAL_665318035969773150$$MANY_I18N_ATTRIBUTES_TS_261 = + /* @ts-ignore */ + goog.getMsg("262"); + msg = MSG_EXTERNAL_665318035969773150$$MANY_I18N_ATTRIBUTES_TS_261; + } else { + /* @ts-ignore */ + msg = $localize`:262:262`; + } + return msg; +} +function i18n_262() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 263 + */ + const MSG_EXTERNAL_3378032126096401664$$MANY_I18N_ATTRIBUTES_TS_262 = + /* @ts-ignore */ + goog.getMsg("263"); + msg = MSG_EXTERNAL_3378032126096401664$$MANY_I18N_ATTRIBUTES_TS_262; + } else { + /* @ts-ignore */ + msg = $localize`:263:263`; + } + return msg; +} +function i18n_263() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 264 + */ + const MSG_EXTERNAL_5826935010713511156$$MANY_I18N_ATTRIBUTES_TS_263 = + /* @ts-ignore */ + goog.getMsg("264"); + msg = MSG_EXTERNAL_5826935010713511156$$MANY_I18N_ATTRIBUTES_TS_263; + } else { + /* @ts-ignore */ + msg = $localize`:264:264`; + } + return msg; +} +function i18n_264() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 265 + */ + const MSG_EXTERNAL_871065667990336285$$MANY_I18N_ATTRIBUTES_TS_264 = + /* @ts-ignore */ + goog.getMsg("265"); + msg = MSG_EXTERNAL_871065667990336285$$MANY_I18N_ATTRIBUTES_TS_264; + } else { + /* @ts-ignore */ + msg = $localize`:265:265`; + } + return msg; +} +function i18n_265() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 266 + */ + const MSG_EXTERNAL_4584924634908923108$$MANY_I18N_ATTRIBUTES_TS_265 = + /* @ts-ignore */ + goog.getMsg("266"); + msg = MSG_EXTERNAL_4584924634908923108$$MANY_I18N_ATTRIBUTES_TS_265; + } else { + /* @ts-ignore */ + msg = $localize`:266:266`; + } + return msg; +} +function i18n_266() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 267 + */ + const MSG_EXTERNAL_455127541367971522$$MANY_I18N_ATTRIBUTES_TS_266 = + /* @ts-ignore */ + goog.getMsg("267"); + msg = MSG_EXTERNAL_455127541367971522$$MANY_I18N_ATTRIBUTES_TS_266; + } else { + /* @ts-ignore */ + msg = $localize`:267:267`; + } + return msg; +} +function i18n_267() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 268 + */ + const MSG_EXTERNAL_6641875461501270527$$MANY_I18N_ATTRIBUTES_TS_267 = + /* @ts-ignore */ + goog.getMsg("268"); + msg = MSG_EXTERNAL_6641875461501270527$$MANY_I18N_ATTRIBUTES_TS_267; + } else { + /* @ts-ignore */ + msg = $localize`:268:268`; + } + return msg; +} +function i18n_268() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 269 + */ + const MSG_EXTERNAL_5506410581686063$$MANY_I18N_ATTRIBUTES_TS_268 = + /* @ts-ignore */ + goog.getMsg("269"); + msg = MSG_EXTERNAL_5506410581686063$$MANY_I18N_ATTRIBUTES_TS_268; + } else { + /* @ts-ignore */ + msg = $localize`:269:269`; + } + return msg; +} +function i18n_269() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 270 + */ + const MSG_EXTERNAL_9105010445600018997$$MANY_I18N_ATTRIBUTES_TS_269 = + /* @ts-ignore */ + goog.getMsg("270"); + msg = MSG_EXTERNAL_9105010445600018997$$MANY_I18N_ATTRIBUTES_TS_269; + } else { + /* @ts-ignore */ + msg = $localize`:270:270`; + } + return msg; +} +function i18n_270() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 271 + */ + const MSG_EXTERNAL_7846974540399239055$$MANY_I18N_ATTRIBUTES_TS_270 = + /* @ts-ignore */ + goog.getMsg("271"); + msg = MSG_EXTERNAL_7846974540399239055$$MANY_I18N_ATTRIBUTES_TS_270; + } else { + /* @ts-ignore */ + msg = $localize`:271:271`; + } + return msg; +} +function i18n_271() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 272 + */ + const MSG_EXTERNAL_4139475360913841906$$MANY_I18N_ATTRIBUTES_TS_271 = + /* @ts-ignore */ + goog.getMsg("272"); + msg = MSG_EXTERNAL_4139475360913841906$$MANY_I18N_ATTRIBUTES_TS_271; + } else { + /* @ts-ignore */ + msg = $localize`:272:272`; + } + return msg; +} +function i18n_272() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 273 + */ + const MSG_EXTERNAL_2526908525223709471$$MANY_I18N_ATTRIBUTES_TS_272 = + /* @ts-ignore */ + goog.getMsg("273"); + msg = MSG_EXTERNAL_2526908525223709471$$MANY_I18N_ATTRIBUTES_TS_272; + } else { + /* @ts-ignore */ + msg = $localize`:273:273`; + } + return msg; +} +function i18n_273() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 274 + */ + const MSG_EXTERNAL_8792033388875140674$$MANY_I18N_ATTRIBUTES_TS_273 = + /* @ts-ignore */ + goog.getMsg("274"); + msg = MSG_EXTERNAL_8792033388875140674$$MANY_I18N_ATTRIBUTES_TS_273; + } else { + /* @ts-ignore */ + msg = $localize`:274:274`; + } + return msg; +} +function i18n_274() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 275 + */ + const MSG_EXTERNAL_6258338466959167420$$MANY_I18N_ATTRIBUTES_TS_274 = + /* @ts-ignore */ + goog.getMsg("275"); + msg = MSG_EXTERNAL_6258338466959167420$$MANY_I18N_ATTRIBUTES_TS_274; + } else { + /* @ts-ignore */ + msg = $localize`:275:275`; + } + return msg; +} +function i18n_275() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 276 + */ + const MSG_EXTERNAL_8999798216784560459$$MANY_I18N_ATTRIBUTES_TS_275 = + /* @ts-ignore */ + goog.getMsg("276"); + msg = MSG_EXTERNAL_8999798216784560459$$MANY_I18N_ATTRIBUTES_TS_275; + } else { + /* @ts-ignore */ + msg = $localize`:276:276`; + } + return msg; +} +function i18n_276() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 277 + */ + const MSG_EXTERNAL_3775542017603658005$$MANY_I18N_ATTRIBUTES_TS_276 = + /* @ts-ignore */ + goog.getMsg("277"); + msg = MSG_EXTERNAL_3775542017603658005$$MANY_I18N_ATTRIBUTES_TS_276; + } else { + /* @ts-ignore */ + msg = $localize`:277:277`; + } + return msg; +} +function i18n_277() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 278 + */ + const MSG_EXTERNAL_4583536484855014800$$MANY_I18N_ATTRIBUTES_TS_277 = + /* @ts-ignore */ + goog.getMsg("278"); + msg = MSG_EXTERNAL_4583536484855014800$$MANY_I18N_ATTRIBUTES_TS_277; + } else { + /* @ts-ignore */ + msg = $localize`:278:278`; + } + return msg; +} +function i18n_278() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 279 + */ + const MSG_EXTERNAL_1648115191333398845$$MANY_I18N_ATTRIBUTES_TS_278 = + /* @ts-ignore */ + goog.getMsg("279"); + msg = MSG_EXTERNAL_1648115191333398845$$MANY_I18N_ATTRIBUTES_TS_278; + } else { + /* @ts-ignore */ + msg = $localize`:279:279`; + } + return msg; +} +function i18n_279() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 280 + */ + const MSG_EXTERNAL_8610159118251600926$$MANY_I18N_ATTRIBUTES_TS_279 = + /* @ts-ignore */ + goog.getMsg("280"); + msg = MSG_EXTERNAL_8610159118251600926$$MANY_I18N_ATTRIBUTES_TS_279; + } else { + /* @ts-ignore */ + msg = $localize`:280:280`; + } + return msg; +} +function i18n_280() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 281 + */ + const MSG_EXTERNAL_6358723634853246850$$MANY_I18N_ATTRIBUTES_TS_280 = + /* @ts-ignore */ + goog.getMsg("281"); + msg = MSG_EXTERNAL_6358723634853246850$$MANY_I18N_ATTRIBUTES_TS_280; + } else { + /* @ts-ignore */ + msg = $localize`:281:281`; + } + return msg; +} +function i18n_281() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 282 + */ + const MSG_EXTERNAL_7331821045910666684$$MANY_I18N_ATTRIBUTES_TS_281 = + /* @ts-ignore */ + goog.getMsg("282"); + msg = MSG_EXTERNAL_7331821045910666684$$MANY_I18N_ATTRIBUTES_TS_281; + } else { + /* @ts-ignore */ + msg = $localize`:282:282`; + } + return msg; +} +function i18n_282() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 283 + */ + const MSG_EXTERNAL_7944476751457733591$$MANY_I18N_ATTRIBUTES_TS_282 = + /* @ts-ignore */ + goog.getMsg("283"); + msg = MSG_EXTERNAL_7944476751457733591$$MANY_I18N_ATTRIBUTES_TS_282; + } else { + /* @ts-ignore */ + msg = $localize`:283:283`; + } + return msg; +} +function i18n_283() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 284 + */ + const MSG_EXTERNAL_2700887595076907916$$MANY_I18N_ATTRIBUTES_TS_283 = + /* @ts-ignore */ + goog.getMsg("284"); + msg = MSG_EXTERNAL_2700887595076907916$$MANY_I18N_ATTRIBUTES_TS_283; + } else { + /* @ts-ignore */ + msg = $localize`:284:284`; + } + return msg; +} +function i18n_284() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 285 + */ + const MSG_EXTERNAL_9020072075616733200$$MANY_I18N_ATTRIBUTES_TS_284 = + /* @ts-ignore */ + goog.getMsg("285"); + msg = MSG_EXTERNAL_9020072075616733200$$MANY_I18N_ATTRIBUTES_TS_284; + } else { + /* @ts-ignore */ + msg = $localize`:285:285`; + } + return msg; +} +function i18n_285() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 286 + */ + const MSG_EXTERNAL_282692621809673934$$MANY_I18N_ATTRIBUTES_TS_285 = + /* @ts-ignore */ + goog.getMsg("286"); + msg = MSG_EXTERNAL_282692621809673934$$MANY_I18N_ATTRIBUTES_TS_285; + } else { + /* @ts-ignore */ + msg = $localize`:286:286`; + } + return msg; +} +function i18n_286() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 287 + */ + const MSG_EXTERNAL_3879782924432611725$$MANY_I18N_ATTRIBUTES_TS_286 = + /* @ts-ignore */ + goog.getMsg("287"); + msg = MSG_EXTERNAL_3879782924432611725$$MANY_I18N_ATTRIBUTES_TS_286; + } else { + /* @ts-ignore */ + msg = $localize`:287:287`; + } + return msg; +} +function i18n_287() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 288 + */ + const MSG_EXTERNAL_4336966077677072344$$MANY_I18N_ATTRIBUTES_TS_287 = + /* @ts-ignore */ + goog.getMsg("288"); + msg = MSG_EXTERNAL_4336966077677072344$$MANY_I18N_ATTRIBUTES_TS_287; + } else { + /* @ts-ignore */ + msg = $localize`:288:288`; + } + return msg; +} +function i18n_288() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 289 + */ + const MSG_EXTERNAL_8232534303282901116$$MANY_I18N_ATTRIBUTES_TS_288 = + /* @ts-ignore */ + goog.getMsg("289"); + msg = MSG_EXTERNAL_8232534303282901116$$MANY_I18N_ATTRIBUTES_TS_288; + } else { + /* @ts-ignore */ + msg = $localize`:289:289`; + } + return msg; +} +function i18n_289() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 290 + */ + const MSG_EXTERNAL_6636030378583915434$$MANY_I18N_ATTRIBUTES_TS_289 = + /* @ts-ignore */ + goog.getMsg("290"); + msg = MSG_EXTERNAL_6636030378583915434$$MANY_I18N_ATTRIBUTES_TS_289; + } else { + /* @ts-ignore */ + msg = $localize`:290:290`; + } + return msg; +} +function i18n_290() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 291 + */ + const MSG_EXTERNAL_8158077031960996083$$MANY_I18N_ATTRIBUTES_TS_290 = + /* @ts-ignore */ + goog.getMsg("291"); + msg = MSG_EXTERNAL_8158077031960996083$$MANY_I18N_ATTRIBUTES_TS_290; + } else { + /* @ts-ignore */ + msg = $localize`:291:291`; + } + return msg; +} +function i18n_291() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 292 + */ + const MSG_EXTERNAL_5988529183155719156$$MANY_I18N_ATTRIBUTES_TS_291 = + /* @ts-ignore */ + goog.getMsg("292"); + msg = MSG_EXTERNAL_5988529183155719156$$MANY_I18N_ATTRIBUTES_TS_291; + } else { + /* @ts-ignore */ + msg = $localize`:292:292`; + } + return msg; +} +function i18n_292() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 293 + */ + const MSG_EXTERNAL_238291029190485598$$MANY_I18N_ATTRIBUTES_TS_292 = + /* @ts-ignore */ + goog.getMsg("293"); + msg = MSG_EXTERNAL_238291029190485598$$MANY_I18N_ATTRIBUTES_TS_292; + } else { + /* @ts-ignore */ + msg = $localize`:293:293`; + } + return msg; +} +function i18n_293() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 294 + */ + const MSG_EXTERNAL_7994914038274477303$$MANY_I18N_ATTRIBUTES_TS_293 = + /* @ts-ignore */ + goog.getMsg("294"); + msg = MSG_EXTERNAL_7994914038274477303$$MANY_I18N_ATTRIBUTES_TS_293; + } else { + /* @ts-ignore */ + msg = $localize`:294:294`; + } + return msg; +} +function i18n_294() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 295 + */ + const MSG_EXTERNAL_7597211182173786147$$MANY_I18N_ATTRIBUTES_TS_294 = + /* @ts-ignore */ + goog.getMsg("295"); + msg = MSG_EXTERNAL_7597211182173786147$$MANY_I18N_ATTRIBUTES_TS_294; + } else { + /* @ts-ignore */ + msg = $localize`:295:295`; + } + return msg; +} +function i18n_295() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 296 + */ + const MSG_EXTERNAL_3729316106873458293$$MANY_I18N_ATTRIBUTES_TS_295 = + /* @ts-ignore */ + goog.getMsg("296"); + msg = MSG_EXTERNAL_3729316106873458293$$MANY_I18N_ATTRIBUTES_TS_295; + } else { + /* @ts-ignore */ + msg = $localize`:296:296`; + } + return msg; +} +function i18n_296() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 297 + */ + const MSG_EXTERNAL_1683792798327020667$$MANY_I18N_ATTRIBUTES_TS_296 = + /* @ts-ignore */ + goog.getMsg("297"); + msg = MSG_EXTERNAL_1683792798327020667$$MANY_I18N_ATTRIBUTES_TS_296; + } else { + /* @ts-ignore */ + msg = $localize`:297:297`; + } + return msg; +} +function i18n_297() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 298 + */ + const MSG_EXTERNAL_19228152609968969$$MANY_I18N_ATTRIBUTES_TS_297 = + /* @ts-ignore */ + goog.getMsg("298"); + msg = MSG_EXTERNAL_19228152609968969$$MANY_I18N_ATTRIBUTES_TS_297; + } else { + /* @ts-ignore */ + msg = $localize`:298:298`; + } + return msg; +} +function i18n_298() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 299 + */ + const MSG_EXTERNAL_5637181670638893278$$MANY_I18N_ATTRIBUTES_TS_298 = + /* @ts-ignore */ + goog.getMsg("299"); + msg = MSG_EXTERNAL_5637181670638893278$$MANY_I18N_ATTRIBUTES_TS_298; + } else { + /* @ts-ignore */ + msg = $localize`:299:299`; + } + return msg; +} +function i18n_299() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 300 + */ + const MSG_EXTERNAL_44255961994460369$$MANY_I18N_ATTRIBUTES_TS_299 = + /* @ts-ignore */ + goog.getMsg("300"); + msg = MSG_EXTERNAL_44255961994460369$$MANY_I18N_ATTRIBUTES_TS_299; + } else { + /* @ts-ignore */ + msg = $localize`:300:300`; + } + return msg; +} +function i18n_300() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 301 + */ + const MSG_EXTERNAL_5825299137669053049$$MANY_I18N_ATTRIBUTES_TS_300 = + /* @ts-ignore */ + goog.getMsg("301"); + msg = MSG_EXTERNAL_5825299137669053049$$MANY_I18N_ATTRIBUTES_TS_300; + } else { + /* @ts-ignore */ + msg = $localize`:301:301`; + } + return msg; +} +function i18n_301() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 302 + */ + const MSG_EXTERNAL_4569981340310264818$$MANY_I18N_ATTRIBUTES_TS_301 = + /* @ts-ignore */ + goog.getMsg("302"); + msg = MSG_EXTERNAL_4569981340310264818$$MANY_I18N_ATTRIBUTES_TS_301; + } else { + /* @ts-ignore */ + msg = $localize`:302:302`; + } + return msg; +} +function i18n_302() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 303 + */ + const MSG_EXTERNAL_7709923049158845829$$MANY_I18N_ATTRIBUTES_TS_302 = + /* @ts-ignore */ + goog.getMsg("303"); + msg = MSG_EXTERNAL_7709923049158845829$$MANY_I18N_ATTRIBUTES_TS_302; + } else { + /* @ts-ignore */ + msg = $localize`:303:303`; + } + return msg; +} +function i18n_303() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 304 + */ + const MSG_EXTERNAL_6503027606591703605$$MANY_I18N_ATTRIBUTES_TS_303 = + /* @ts-ignore */ + goog.getMsg("304"); + msg = MSG_EXTERNAL_6503027606591703605$$MANY_I18N_ATTRIBUTES_TS_303; + } else { + /* @ts-ignore */ + msg = $localize`:304:304`; + } + return msg; +} +function i18n_304() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 305 + */ + const MSG_EXTERNAL_2145123158846990047$$MANY_I18N_ATTRIBUTES_TS_304 = + /* @ts-ignore */ + goog.getMsg("305"); + msg = MSG_EXTERNAL_2145123158846990047$$MANY_I18N_ATTRIBUTES_TS_304; + } else { + /* @ts-ignore */ + msg = $localize`:305:305`; + } + return msg; +} +function i18n_305() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 306 + */ + const MSG_EXTERNAL_1056540591449151568$$MANY_I18N_ATTRIBUTES_TS_305 = + /* @ts-ignore */ + goog.getMsg("306"); + msg = MSG_EXTERNAL_1056540591449151568$$MANY_I18N_ATTRIBUTES_TS_305; + } else { + /* @ts-ignore */ + msg = $localize`:306:306`; + } + return msg; +} +function i18n_306() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 307 + */ + const MSG_EXTERNAL_5575321868624290903$$MANY_I18N_ATTRIBUTES_TS_306 = + /* @ts-ignore */ + goog.getMsg("307"); + msg = MSG_EXTERNAL_5575321868624290903$$MANY_I18N_ATTRIBUTES_TS_306; + } else { + /* @ts-ignore */ + msg = $localize`:307:307`; + } + return msg; +} +function i18n_307() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 308 + */ + const MSG_EXTERNAL_5577038063160658297$$MANY_I18N_ATTRIBUTES_TS_307 = + /* @ts-ignore */ + goog.getMsg("308"); + msg = MSG_EXTERNAL_5577038063160658297$$MANY_I18N_ATTRIBUTES_TS_307; + } else { + /* @ts-ignore */ + msg = $localize`:308:308`; + } + return msg; +} +function i18n_308() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 309 + */ + const MSG_EXTERNAL_934677739785108604$$MANY_I18N_ATTRIBUTES_TS_308 = + /* @ts-ignore */ + goog.getMsg("309"); + msg = MSG_EXTERNAL_934677739785108604$$MANY_I18N_ATTRIBUTES_TS_308; + } else { + /* @ts-ignore */ + msg = $localize`:309:309`; + } + return msg; +} +function i18n_309() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 310 + */ + const MSG_EXTERNAL_4428467336597071231$$MANY_I18N_ATTRIBUTES_TS_309 = + /* @ts-ignore */ + goog.getMsg("310"); + msg = MSG_EXTERNAL_4428467336597071231$$MANY_I18N_ATTRIBUTES_TS_309; + } else { + /* @ts-ignore */ + msg = $localize`:310:310`; + } + return msg; +} +function i18n_310() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 311 + */ + const MSG_EXTERNAL_1814761285814227730$$MANY_I18N_ATTRIBUTES_TS_310 = + /* @ts-ignore */ + goog.getMsg("311"); + msg = MSG_EXTERNAL_1814761285814227730$$MANY_I18N_ATTRIBUTES_TS_310; + } else { + /* @ts-ignore */ + msg = $localize`:311:311`; + } + return msg; +} +function i18n_311() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 312 + */ + const MSG_EXTERNAL_7080231081441344096$$MANY_I18N_ATTRIBUTES_TS_311 = + /* @ts-ignore */ + goog.getMsg("312"); + msg = MSG_EXTERNAL_7080231081441344096$$MANY_I18N_ATTRIBUTES_TS_311; + } else { + /* @ts-ignore */ + msg = $localize`:312:312`; + } + return msg; +} +function i18n_312() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 313 + */ + const MSG_EXTERNAL_7513852279246096183$$MANY_I18N_ATTRIBUTES_TS_312 = + /* @ts-ignore */ + goog.getMsg("313"); + msg = MSG_EXTERNAL_7513852279246096183$$MANY_I18N_ATTRIBUTES_TS_312; + } else { + /* @ts-ignore */ + msg = $localize`:313:313`; + } + return msg; +} +function i18n_313() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 314 + */ + const MSG_EXTERNAL_462616829401171937$$MANY_I18N_ATTRIBUTES_TS_313 = + /* @ts-ignore */ + goog.getMsg("314"); + msg = MSG_EXTERNAL_462616829401171937$$MANY_I18N_ATTRIBUTES_TS_313; + } else { + /* @ts-ignore */ + msg = $localize`:314:314`; + } + return msg; +} +function i18n_314() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 315 + */ + const MSG_EXTERNAL_6330059387086949376$$MANY_I18N_ATTRIBUTES_TS_314 = + /* @ts-ignore */ + goog.getMsg("315"); + msg = MSG_EXTERNAL_6330059387086949376$$MANY_I18N_ATTRIBUTES_TS_314; + } else { + /* @ts-ignore */ + msg = $localize`:315:315`; + } + return msg; +} +function i18n_315() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 316 + */ + const MSG_EXTERNAL_1101419124342814845$$MANY_I18N_ATTRIBUTES_TS_315 = + /* @ts-ignore */ + goog.getMsg("316"); + msg = MSG_EXTERNAL_1101419124342814845$$MANY_I18N_ATTRIBUTES_TS_315; + } else { + /* @ts-ignore */ + msg = $localize`:316:316`; + } + return msg; +} +function i18n_316() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 317 + */ + const MSG_EXTERNAL_601858558890933107$$MANY_I18N_ATTRIBUTES_TS_316 = + /* @ts-ignore */ + goog.getMsg("317"); + msg = MSG_EXTERNAL_601858558890933107$$MANY_I18N_ATTRIBUTES_TS_316; + } else { + /* @ts-ignore */ + msg = $localize`:317:317`; + } + return msg; +} +function i18n_317() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 318 + */ + const MSG_EXTERNAL_7303407801394367022$$MANY_I18N_ATTRIBUTES_TS_317 = + /* @ts-ignore */ + goog.getMsg("318"); + msg = MSG_EXTERNAL_7303407801394367022$$MANY_I18N_ATTRIBUTES_TS_317; + } else { + /* @ts-ignore */ + msg = $localize`:318:318`; + } + return msg; +} +function i18n_318() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 319 + */ + const MSG_EXTERNAL_1278202510003347965$$MANY_I18N_ATTRIBUTES_TS_318 = + /* @ts-ignore */ + goog.getMsg("319"); + msg = MSG_EXTERNAL_1278202510003347965$$MANY_I18N_ATTRIBUTES_TS_318; + } else { + /* @ts-ignore */ + msg = $localize`:319:319`; + } + return msg; +} +function i18n_319() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 320 + */ + const MSG_EXTERNAL_3865068550040512777$$MANY_I18N_ATTRIBUTES_TS_319 = + /* @ts-ignore */ + goog.getMsg("320"); + msg = MSG_EXTERNAL_3865068550040512777$$MANY_I18N_ATTRIBUTES_TS_319; + } else { + /* @ts-ignore */ + msg = $localize`:320:320`; + } + return msg; +} +function i18n_320() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 321 + */ + const MSG_EXTERNAL_8348372968666359836$$MANY_I18N_ATTRIBUTES_TS_320 = + /* @ts-ignore */ + goog.getMsg("321"); + msg = MSG_EXTERNAL_8348372968666359836$$MANY_I18N_ATTRIBUTES_TS_320; + } else { + /* @ts-ignore */ + msg = $localize`:321:321`; + } + return msg; +} +function i18n_321() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 322 + */ + const MSG_EXTERNAL_5106664568463863621$$MANY_I18N_ATTRIBUTES_TS_321 = + /* @ts-ignore */ + goog.getMsg("322"); + msg = MSG_EXTERNAL_5106664568463863621$$MANY_I18N_ATTRIBUTES_TS_321; + } else { + /* @ts-ignore */ + msg = $localize`:322:322`; + } + return msg; +} +function i18n_322() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 323 + */ + const MSG_EXTERNAL_6283849857043814316$$MANY_I18N_ATTRIBUTES_TS_322 = + /* @ts-ignore */ + goog.getMsg("323"); + msg = MSG_EXTERNAL_6283849857043814316$$MANY_I18N_ATTRIBUTES_TS_322; + } else { + /* @ts-ignore */ + msg = $localize`:323:323`; + } + return msg; +} +function i18n_323() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 324 + */ + const MSG_EXTERNAL_6354041151090005875$$MANY_I18N_ATTRIBUTES_TS_323 = + /* @ts-ignore */ + goog.getMsg("324"); + msg = MSG_EXTERNAL_6354041151090005875$$MANY_I18N_ATTRIBUTES_TS_323; + } else { + /* @ts-ignore */ + msg = $localize`:324:324`; + } + return msg; +} +function i18n_324() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 325 + */ + const MSG_EXTERNAL_1753605970641215059$$MANY_I18N_ATTRIBUTES_TS_324 = + /* @ts-ignore */ + goog.getMsg("325"); + msg = MSG_EXTERNAL_1753605970641215059$$MANY_I18N_ATTRIBUTES_TS_324; + } else { + /* @ts-ignore */ + msg = $localize`:325:325`; + } + return msg; +} +function i18n_325() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 326 + */ + const MSG_EXTERNAL_5905311923529627773$$MANY_I18N_ATTRIBUTES_TS_325 = + /* @ts-ignore */ + goog.getMsg("326"); + msg = MSG_EXTERNAL_5905311923529627773$$MANY_I18N_ATTRIBUTES_TS_325; + } else { + /* @ts-ignore */ + msg = $localize`:326:326`; + } + return msg; +} +function i18n_326() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 327 + */ + const MSG_EXTERNAL_3489445373898627866$$MANY_I18N_ATTRIBUTES_TS_326 = + /* @ts-ignore */ + goog.getMsg("327"); + msg = MSG_EXTERNAL_3489445373898627866$$MANY_I18N_ATTRIBUTES_TS_326; + } else { + /* @ts-ignore */ + msg = $localize`:327:327`; + } + return msg; +} +function i18n_327() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 328 + */ + const MSG_EXTERNAL_4428338269048886617$$MANY_I18N_ATTRIBUTES_TS_327 = + /* @ts-ignore */ + goog.getMsg("328"); + msg = MSG_EXTERNAL_4428338269048886617$$MANY_I18N_ATTRIBUTES_TS_327; + } else { + /* @ts-ignore */ + msg = $localize`:328:328`; + } + return msg; +} +function i18n_328() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 329 + */ + const MSG_EXTERNAL_2800589603363346497$$MANY_I18N_ATTRIBUTES_TS_328 = + /* @ts-ignore */ + goog.getMsg("329"); + msg = MSG_EXTERNAL_2800589603363346497$$MANY_I18N_ATTRIBUTES_TS_328; + } else { + /* @ts-ignore */ + msg = $localize`:329:329`; + } + return msg; +} +function i18n_329() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 330 + */ + const MSG_EXTERNAL_4513246497193300718$$MANY_I18N_ATTRIBUTES_TS_329 = + /* @ts-ignore */ + goog.getMsg("330"); + msg = MSG_EXTERNAL_4513246497193300718$$MANY_I18N_ATTRIBUTES_TS_329; + } else { + /* @ts-ignore */ + msg = $localize`:330:330`; + } + return msg; +} +function i18n_330() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 331 + */ + const MSG_EXTERNAL_3578871923820296804$$MANY_I18N_ATTRIBUTES_TS_330 = + /* @ts-ignore */ + goog.getMsg("331"); + msg = MSG_EXTERNAL_3578871923820296804$$MANY_I18N_ATTRIBUTES_TS_330; + } else { + /* @ts-ignore */ + msg = $localize`:331:331`; + } + return msg; +} +function i18n_331() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 332 + */ + const MSG_EXTERNAL_6316500056349083871$$MANY_I18N_ATTRIBUTES_TS_331 = + /* @ts-ignore */ + goog.getMsg("332"); + msg = MSG_EXTERNAL_6316500056349083871$$MANY_I18N_ATTRIBUTES_TS_331; + } else { + /* @ts-ignore */ + msg = $localize`:332:332`; + } + return msg; +} +function i18n_332() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 333 + */ + const MSG_EXTERNAL_3391087084593129088$$MANY_I18N_ATTRIBUTES_TS_332 = + /* @ts-ignore */ + goog.getMsg("333"); + msg = MSG_EXTERNAL_3391087084593129088$$MANY_I18N_ATTRIBUTES_TS_332; + } else { + /* @ts-ignore */ + msg = $localize`:333:333`; + } + return msg; +} +function i18n_333() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 334 + */ + const MSG_EXTERNAL_2063235090710431959$$MANY_I18N_ATTRIBUTES_TS_333 = + /* @ts-ignore */ + goog.getMsg("334"); + msg = MSG_EXTERNAL_2063235090710431959$$MANY_I18N_ATTRIBUTES_TS_333; + } else { + /* @ts-ignore */ + msg = $localize`:334:334`; + } + return msg; +} +function i18n_334() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 335 + */ + const MSG_EXTERNAL_2482742303089540318$$MANY_I18N_ATTRIBUTES_TS_334 = + /* @ts-ignore */ + goog.getMsg("335"); + msg = MSG_EXTERNAL_2482742303089540318$$MANY_I18N_ATTRIBUTES_TS_334; + } else { + /* @ts-ignore */ + msg = $localize`:335:335`; + } + return msg; +} +function i18n_335() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 336 + */ + const MSG_EXTERNAL_5162158917323765870$$MANY_I18N_ATTRIBUTES_TS_335 = + /* @ts-ignore */ + goog.getMsg("336"); + msg = MSG_EXTERNAL_5162158917323765870$$MANY_I18N_ATTRIBUTES_TS_335; + } else { + /* @ts-ignore */ + msg = $localize`:336:336`; + } + return msg; +} +function i18n_336() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 337 + */ + const MSG_EXTERNAL_5769672761297280321$$MANY_I18N_ATTRIBUTES_TS_336 = + /* @ts-ignore */ + goog.getMsg("337"); + msg = MSG_EXTERNAL_5769672761297280321$$MANY_I18N_ATTRIBUTES_TS_336; + } else { + /* @ts-ignore */ + msg = $localize`:337:337`; + } + return msg; +} +function i18n_337() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 338 + */ + const MSG_EXTERNAL_2784957313430035310$$MANY_I18N_ATTRIBUTES_TS_337 = + /* @ts-ignore */ + goog.getMsg("338"); + msg = MSG_EXTERNAL_2784957313430035310$$MANY_I18N_ATTRIBUTES_TS_337; + } else { + /* @ts-ignore */ + msg = $localize`:338:338`; + } + return msg; +} +function i18n_338() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 339 + */ + const MSG_EXTERNAL_8874666690405093577$$MANY_I18N_ATTRIBUTES_TS_338 = + /* @ts-ignore */ + goog.getMsg("339"); + msg = MSG_EXTERNAL_8874666690405093577$$MANY_I18N_ATTRIBUTES_TS_338; + } else { + /* @ts-ignore */ + msg = $localize`:339:339`; + } + return msg; +} +function i18n_339() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 340 + */ + const MSG_EXTERNAL_935090379523618453$$MANY_I18N_ATTRIBUTES_TS_339 = + /* @ts-ignore */ + goog.getMsg("340"); + msg = MSG_EXTERNAL_935090379523618453$$MANY_I18N_ATTRIBUTES_TS_339; + } else { + /* @ts-ignore */ + msg = $localize`:340:340`; + } + return msg; +} +function i18n_340() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 341 + */ + const MSG_EXTERNAL_8113565094684071864$$MANY_I18N_ATTRIBUTES_TS_340 = + /* @ts-ignore */ + goog.getMsg("341"); + msg = MSG_EXTERNAL_8113565094684071864$$MANY_I18N_ATTRIBUTES_TS_340; + } else { + /* @ts-ignore */ + msg = $localize`:341:341`; + } + return msg; +} +function i18n_341() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 342 + */ + const MSG_EXTERNAL_7347780698064555606$$MANY_I18N_ATTRIBUTES_TS_341 = + /* @ts-ignore */ + goog.getMsg("342"); + msg = MSG_EXTERNAL_7347780698064555606$$MANY_I18N_ATTRIBUTES_TS_341; + } else { + /* @ts-ignore */ + msg = $localize`:342:342`; + } + return msg; +} +function i18n_342() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 343 + */ + const MSG_EXTERNAL_9164977207367766213$$MANY_I18N_ATTRIBUTES_TS_342 = + /* @ts-ignore */ + goog.getMsg("343"); + msg = MSG_EXTERNAL_9164977207367766213$$MANY_I18N_ATTRIBUTES_TS_342; + } else { + /* @ts-ignore */ + msg = $localize`:343:343`; + } + return msg; +} +function i18n_343() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 344 + */ + const MSG_EXTERNAL_8669513785995356237$$MANY_I18N_ATTRIBUTES_TS_343 = + /* @ts-ignore */ + goog.getMsg("344"); + msg = MSG_EXTERNAL_8669513785995356237$$MANY_I18N_ATTRIBUTES_TS_343; + } else { + /* @ts-ignore */ + msg = $localize`:344:344`; + } + return msg; +} +function i18n_344() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 345 + */ + const MSG_EXTERNAL_4873775753575489482$$MANY_I18N_ATTRIBUTES_TS_344 = + /* @ts-ignore */ + goog.getMsg("345"); + msg = MSG_EXTERNAL_4873775753575489482$$MANY_I18N_ATTRIBUTES_TS_344; + } else { + /* @ts-ignore */ + msg = $localize`:345:345`; + } + return msg; +} +function i18n_345() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 346 + */ + const MSG_EXTERNAL_2584131134230773290$$MANY_I18N_ATTRIBUTES_TS_345 = + /* @ts-ignore */ + goog.getMsg("346"); + msg = MSG_EXTERNAL_2584131134230773290$$MANY_I18N_ATTRIBUTES_TS_345; + } else { + /* @ts-ignore */ + msg = $localize`:346:346`; + } + return msg; +} +function i18n_346() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 347 + */ + const MSG_EXTERNAL_7863867240119316070$$MANY_I18N_ATTRIBUTES_TS_346 = + /* @ts-ignore */ + goog.getMsg("347"); + msg = MSG_EXTERNAL_7863867240119316070$$MANY_I18N_ATTRIBUTES_TS_346; + } else { + /* @ts-ignore */ + msg = $localize`:347:347`; + } + return msg; +} +function i18n_347() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 348 + */ + const MSG_EXTERNAL_4210690788002987094$$MANY_I18N_ATTRIBUTES_TS_347 = + /* @ts-ignore */ + goog.getMsg("348"); + msg = MSG_EXTERNAL_4210690788002987094$$MANY_I18N_ATTRIBUTES_TS_347; + } else { + /* @ts-ignore */ + msg = $localize`:348:348`; + } + return msg; +} +function i18n_348() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 349 + */ + const MSG_EXTERNAL_9178091514962861068$$MANY_I18N_ATTRIBUTES_TS_348 = + /* @ts-ignore */ + goog.getMsg("349"); + msg = MSG_EXTERNAL_9178091514962861068$$MANY_I18N_ATTRIBUTES_TS_348; + } else { + /* @ts-ignore */ + msg = $localize`:349:349`; + } + return msg; +} +function i18n_349() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 350 + */ + const MSG_EXTERNAL_1333369325892082284$$MANY_I18N_ATTRIBUTES_TS_349 = + /* @ts-ignore */ + goog.getMsg("350"); + msg = MSG_EXTERNAL_1333369325892082284$$MANY_I18N_ATTRIBUTES_TS_349; + } else { + /* @ts-ignore */ + msg = $localize`:350:350`; + } + return msg; +} +function i18n_350() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 351 + */ + const MSG_EXTERNAL_5551739636356005303$$MANY_I18N_ATTRIBUTES_TS_350 = + /* @ts-ignore */ + goog.getMsg("351"); + msg = MSG_EXTERNAL_5551739636356005303$$MANY_I18N_ATTRIBUTES_TS_350; + } else { + /* @ts-ignore */ + msg = $localize`:351:351`; + } + return msg; +} +function i18n_351() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 352 + */ + const MSG_EXTERNAL_9147502396042711671$$MANY_I18N_ATTRIBUTES_TS_351 = + /* @ts-ignore */ + goog.getMsg("352"); + msg = MSG_EXTERNAL_9147502396042711671$$MANY_I18N_ATTRIBUTES_TS_351; + } else { + /* @ts-ignore */ + msg = $localize`:352:352`; + } + return msg; +} +function i18n_352() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 353 + */ + const MSG_EXTERNAL_1259684327682045112$$MANY_I18N_ATTRIBUTES_TS_352 = + /* @ts-ignore */ + goog.getMsg("353"); + msg = MSG_EXTERNAL_1259684327682045112$$MANY_I18N_ATTRIBUTES_TS_352; + } else { + /* @ts-ignore */ + msg = $localize`:353:353`; + } + return msg; +} +function i18n_353() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 354 + */ + const MSG_EXTERNAL_7157861862371322544$$MANY_I18N_ATTRIBUTES_TS_353 = + /* @ts-ignore */ + goog.getMsg("354"); + msg = MSG_EXTERNAL_7157861862371322544$$MANY_I18N_ATTRIBUTES_TS_353; + } else { + /* @ts-ignore */ + msg = $localize`:354:354`; + } + return msg; +} +function i18n_354() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 355 + */ + const MSG_EXTERNAL_1938690226369786433$$MANY_I18N_ATTRIBUTES_TS_354 = + /* @ts-ignore */ + goog.getMsg("355"); + msg = MSG_EXTERNAL_1938690226369786433$$MANY_I18N_ATTRIBUTES_TS_354; + } else { + /* @ts-ignore */ + msg = $localize`:355:355`; + } + return msg; +} +function i18n_355() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 356 + */ + const MSG_EXTERNAL_6286284605248468629$$MANY_I18N_ATTRIBUTES_TS_355 = + /* @ts-ignore */ + goog.getMsg("356"); + msg = MSG_EXTERNAL_6286284605248468629$$MANY_I18N_ATTRIBUTES_TS_355; + } else { + /* @ts-ignore */ + msg = $localize`:356:356`; + } + return msg; +} +function i18n_356() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 357 + */ + const MSG_EXTERNAL_7431762882366675654$$MANY_I18N_ATTRIBUTES_TS_356 = + /* @ts-ignore */ + goog.getMsg("357"); + msg = MSG_EXTERNAL_7431762882366675654$$MANY_I18N_ATTRIBUTES_TS_356; + } else { + /* @ts-ignore */ + msg = $localize`:357:357`; + } + return msg; +} +function i18n_357() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 358 + */ + const MSG_EXTERNAL_326752455087679366$$MANY_I18N_ATTRIBUTES_TS_357 = + /* @ts-ignore */ + goog.getMsg("358"); + msg = MSG_EXTERNAL_326752455087679366$$MANY_I18N_ATTRIBUTES_TS_357; + } else { + /* @ts-ignore */ + msg = $localize`:358:358`; + } + return msg; +} +function i18n_358() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 359 + */ + const MSG_EXTERNAL_1241432090351907772$$MANY_I18N_ATTRIBUTES_TS_358 = + /* @ts-ignore */ + goog.getMsg("359"); + msg = MSG_EXTERNAL_1241432090351907772$$MANY_I18N_ATTRIBUTES_TS_358; + } else { + /* @ts-ignore */ + msg = $localize`:359:359`; + } + return msg; +} +function i18n_359() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 360 + */ + const MSG_EXTERNAL_80903839980443886$$MANY_I18N_ATTRIBUTES_TS_359 = + /* @ts-ignore */ + goog.getMsg("360"); + msg = MSG_EXTERNAL_80903839980443886$$MANY_I18N_ATTRIBUTES_TS_359; + } else { + /* @ts-ignore */ + msg = $localize`:360:360`; + } + return msg; +} +function i18n_360() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 361 + */ + const MSG_EXTERNAL_917312687897952273$$MANY_I18N_ATTRIBUTES_TS_360 = + /* @ts-ignore */ + goog.getMsg("361"); + msg = MSG_EXTERNAL_917312687897952273$$MANY_I18N_ATTRIBUTES_TS_360; + } else { + /* @ts-ignore */ + msg = $localize`:361:361`; + } + return msg; +} +function i18n_361() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 362 + */ + const MSG_EXTERNAL_3877997868038550263$$MANY_I18N_ATTRIBUTES_TS_361 = + /* @ts-ignore */ + goog.getMsg("362"); + msg = MSG_EXTERNAL_3877997868038550263$$MANY_I18N_ATTRIBUTES_TS_361; + } else { + /* @ts-ignore */ + msg = $localize`:362:362`; + } + return msg; +} +function i18n_362() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 363 + */ + const MSG_EXTERNAL_5906686442141602269$$MANY_I18N_ATTRIBUTES_TS_362 = + /* @ts-ignore */ + goog.getMsg("363"); + msg = MSG_EXTERNAL_5906686442141602269$$MANY_I18N_ATTRIBUTES_TS_362; + } else { + /* @ts-ignore */ + msg = $localize`:363:363`; + } + return msg; +} +function i18n_363() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 364 + */ + const MSG_EXTERNAL_6509023228361756477$$MANY_I18N_ATTRIBUTES_TS_363 = + /* @ts-ignore */ + goog.getMsg("364"); + msg = MSG_EXTERNAL_6509023228361756477$$MANY_I18N_ATTRIBUTES_TS_363; + } else { + /* @ts-ignore */ + msg = $localize`:364:364`; + } + return msg; +} +function i18n_364() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 365 + */ + const MSG_EXTERNAL_3930788383443413009$$MANY_I18N_ATTRIBUTES_TS_364 = + /* @ts-ignore */ + goog.getMsg("365"); + msg = MSG_EXTERNAL_3930788383443413009$$MANY_I18N_ATTRIBUTES_TS_364; + } else { + /* @ts-ignore */ + msg = $localize`:365:365`; + } + return msg; +} +function i18n_365() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 366 + */ + const MSG_EXTERNAL_3405799275797767089$$MANY_I18N_ATTRIBUTES_TS_365 = + /* @ts-ignore */ + goog.getMsg("366"); + msg = MSG_EXTERNAL_3405799275797767089$$MANY_I18N_ATTRIBUTES_TS_365; + } else { + /* @ts-ignore */ + msg = $localize`:366:366`; + } + return msg; +} +function i18n_366() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 367 + */ + const MSG_EXTERNAL_4279832540609303283$$MANY_I18N_ATTRIBUTES_TS_366 = + /* @ts-ignore */ + goog.getMsg("367"); + msg = MSG_EXTERNAL_4279832540609303283$$MANY_I18N_ATTRIBUTES_TS_366; + } else { + /* @ts-ignore */ + msg = $localize`:367:367`; + } + return msg; +} +function i18n_367() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 368 + */ + const MSG_EXTERNAL_1784676769567433878$$MANY_I18N_ATTRIBUTES_TS_367 = + /* @ts-ignore */ + goog.getMsg("368"); + msg = MSG_EXTERNAL_1784676769567433878$$MANY_I18N_ATTRIBUTES_TS_367; + } else { + /* @ts-ignore */ + msg = $localize`:368:368`; + } + return msg; +} +function i18n_368() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 369 + */ + const MSG_EXTERNAL_4543017341636737542$$MANY_I18N_ATTRIBUTES_TS_368 = + /* @ts-ignore */ + goog.getMsg("369"); + msg = MSG_EXTERNAL_4543017341636737542$$MANY_I18N_ATTRIBUTES_TS_368; + } else { + /* @ts-ignore */ + msg = $localize`:369:369`; + } + return msg; +} +function i18n_369() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 370 + */ + const MSG_EXTERNAL_3020982533916043189$$MANY_I18N_ATTRIBUTES_TS_369 = + /* @ts-ignore */ + goog.getMsg("370"); + msg = MSG_EXTERNAL_3020982533916043189$$MANY_I18N_ATTRIBUTES_TS_369; + } else { + /* @ts-ignore */ + msg = $localize`:370:370`; + } + return msg; +} +function i18n_370() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 371 + */ + const MSG_EXTERNAL_4873737995762607135$$MANY_I18N_ATTRIBUTES_TS_370 = + /* @ts-ignore */ + goog.getMsg("371"); + msg = MSG_EXTERNAL_4873737995762607135$$MANY_I18N_ATTRIBUTES_TS_370; + } else { + /* @ts-ignore */ + msg = $localize`:371:371`; + } + return msg; +} +function i18n_371() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 372 + */ + const MSG_EXTERNAL_8738979303167075215$$MANY_I18N_ATTRIBUTES_TS_371 = + /* @ts-ignore */ + goog.getMsg("372"); + msg = MSG_EXTERNAL_8738979303167075215$$MANY_I18N_ATTRIBUTES_TS_371; + } else { + /* @ts-ignore */ + msg = $localize`:372:372`; + } + return msg; +} +function i18n_372() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 373 + */ + const MSG_EXTERNAL_9117957765200203372$$MANY_I18N_ATTRIBUTES_TS_372 = + /* @ts-ignore */ + goog.getMsg("373"); + msg = MSG_EXTERNAL_9117957765200203372$$MANY_I18N_ATTRIBUTES_TS_372; + } else { + /* @ts-ignore */ + msg = $localize`:373:373`; + } + return msg; +} +function i18n_373() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 374 + */ + const MSG_EXTERNAL_5679862029202283976$$MANY_I18N_ATTRIBUTES_TS_373 = + /* @ts-ignore */ + goog.getMsg("374"); + msg = MSG_EXTERNAL_5679862029202283976$$MANY_I18N_ATTRIBUTES_TS_373; + } else { + /* @ts-ignore */ + msg = $localize`:374:374`; + } + return msg; +} +function i18n_374() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 375 + */ + const MSG_EXTERNAL_4516847914489029566$$MANY_I18N_ATTRIBUTES_TS_374 = + /* @ts-ignore */ + goog.getMsg("375"); + msg = MSG_EXTERNAL_4516847914489029566$$MANY_I18N_ATTRIBUTES_TS_374; + } else { + /* @ts-ignore */ + msg = $localize`:375:375`; + } + return msg; +} +function i18n_375() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 376 + */ + const MSG_EXTERNAL_4441796907455588665$$MANY_I18N_ATTRIBUTES_TS_375 = + /* @ts-ignore */ + goog.getMsg("376"); + msg = MSG_EXTERNAL_4441796907455588665$$MANY_I18N_ATTRIBUTES_TS_375; + } else { + /* @ts-ignore */ + msg = $localize`:376:376`; + } + return msg; +} +function i18n_376() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 377 + */ + const MSG_EXTERNAL_3907635634063395131$$MANY_I18N_ATTRIBUTES_TS_376 = + /* @ts-ignore */ + goog.getMsg("377"); + msg = MSG_EXTERNAL_3907635634063395131$$MANY_I18N_ATTRIBUTES_TS_376; + } else { + /* @ts-ignore */ + msg = $localize`:377:377`; + } + return msg; +} +function i18n_377() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 378 + */ + const MSG_EXTERNAL_4365561749399560162$$MANY_I18N_ATTRIBUTES_TS_377 = + /* @ts-ignore */ + goog.getMsg("378"); + msg = MSG_EXTERNAL_4365561749399560162$$MANY_I18N_ATTRIBUTES_TS_377; + } else { + /* @ts-ignore */ + msg = $localize`:378:378`; + } + return msg; +} +function i18n_378() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 379 + */ + const MSG_EXTERNAL_949702201542680085$$MANY_I18N_ATTRIBUTES_TS_378 = + /* @ts-ignore */ + goog.getMsg("379"); + msg = MSG_EXTERNAL_949702201542680085$$MANY_I18N_ATTRIBUTES_TS_378; + } else { + /* @ts-ignore */ + msg = $localize`:379:379`; + } + return msg; +} +function i18n_379() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 380 + */ + const MSG_EXTERNAL_3365892817323149662$$MANY_I18N_ATTRIBUTES_TS_379 = + /* @ts-ignore */ + goog.getMsg("380"); + msg = MSG_EXTERNAL_3365892817323149662$$MANY_I18N_ATTRIBUTES_TS_379; + } else { + /* @ts-ignore */ + msg = $localize`:380:380`; + } + return msg; +} +function i18n_380() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 381 + */ + const MSG_EXTERNAL_3634293322949168735$$MANY_I18N_ATTRIBUTES_TS_380 = + /* @ts-ignore */ + goog.getMsg("381"); + msg = MSG_EXTERNAL_3634293322949168735$$MANY_I18N_ATTRIBUTES_TS_380; + } else { + /* @ts-ignore */ + msg = $localize`:381:381`; + } + return msg; +} +function i18n_381() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 382 + */ + const MSG_EXTERNAL_2529285047105507220$$MANY_I18N_ATTRIBUTES_TS_381 = + /* @ts-ignore */ + goog.getMsg("382"); + msg = MSG_EXTERNAL_2529285047105507220$$MANY_I18N_ATTRIBUTES_TS_381; + } else { + /* @ts-ignore */ + msg = $localize`:382:382`; + } + return msg; +} +function i18n_382() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 383 + */ + const MSG_EXTERNAL_926905113230773536$$MANY_I18N_ATTRIBUTES_TS_382 = + /* @ts-ignore */ + goog.getMsg("383"); + msg = MSG_EXTERNAL_926905113230773536$$MANY_I18N_ATTRIBUTES_TS_382; + } else { + /* @ts-ignore */ + msg = $localize`:383:383`; + } + return msg; +} +function i18n_383() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 384 + */ + const MSG_EXTERNAL_1432819600262916613$$MANY_I18N_ATTRIBUTES_TS_383 = + /* @ts-ignore */ + goog.getMsg("384"); + msg = MSG_EXTERNAL_1432819600262916613$$MANY_I18N_ATTRIBUTES_TS_383; + } else { + /* @ts-ignore */ + msg = $localize`:384:384`; + } + return msg; +} +function i18n_384() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 385 + */ + const MSG_EXTERNAL_1270888288481880494$$MANY_I18N_ATTRIBUTES_TS_384 = + /* @ts-ignore */ + goog.getMsg("385"); + msg = MSG_EXTERNAL_1270888288481880494$$MANY_I18N_ATTRIBUTES_TS_384; + } else { + /* @ts-ignore */ + msg = $localize`:385:385`; + } + return msg; +} +function i18n_385() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 386 + */ + const MSG_EXTERNAL_8451854227740074960$$MANY_I18N_ATTRIBUTES_TS_385 = + /* @ts-ignore */ + goog.getMsg("386"); + msg = MSG_EXTERNAL_8451854227740074960$$MANY_I18N_ATTRIBUTES_TS_385; + } else { + /* @ts-ignore */ + msg = $localize`:386:386`; + } + return msg; +} +function i18n_386() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 387 + */ + const MSG_EXTERNAL_790141988470651309$$MANY_I18N_ATTRIBUTES_TS_386 = + /* @ts-ignore */ + goog.getMsg("387"); + msg = MSG_EXTERNAL_790141988470651309$$MANY_I18N_ATTRIBUTES_TS_386; + } else { + /* @ts-ignore */ + msg = $localize`:387:387`; + } + return msg; +} +function i18n_387() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 388 + */ + const MSG_EXTERNAL_5265604424934261226$$MANY_I18N_ATTRIBUTES_TS_387 = + /* @ts-ignore */ + goog.getMsg("388"); + msg = MSG_EXTERNAL_5265604424934261226$$MANY_I18N_ATTRIBUTES_TS_387; + } else { + /* @ts-ignore */ + msg = $localize`:388:388`; + } + return msg; +} +function i18n_388() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 389 + */ + const MSG_EXTERNAL_1694421464299599027$$MANY_I18N_ATTRIBUTES_TS_388 = + /* @ts-ignore */ + goog.getMsg("389"); + msg = MSG_EXTERNAL_1694421464299599027$$MANY_I18N_ATTRIBUTES_TS_388; + } else { + /* @ts-ignore */ + msg = $localize`:389:389`; + } + return msg; +} +function i18n_389() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 390 + */ + const MSG_EXTERNAL_15844132517572955$$MANY_I18N_ATTRIBUTES_TS_389 = + /* @ts-ignore */ + goog.getMsg("390"); + msg = MSG_EXTERNAL_15844132517572955$$MANY_I18N_ATTRIBUTES_TS_389; + } else { + /* @ts-ignore */ + msg = $localize`:390:390`; + } + return msg; +} +function i18n_390() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 391 + */ + const MSG_EXTERNAL_4021044151101122565$$MANY_I18N_ATTRIBUTES_TS_390 = + /* @ts-ignore */ + goog.getMsg("391"); + msg = MSG_EXTERNAL_4021044151101122565$$MANY_I18N_ATTRIBUTES_TS_390; + } else { + /* @ts-ignore */ + msg = $localize`:391:391`; + } + return msg; +} +function i18n_391() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 392 + */ + const MSG_EXTERNAL_1193259435863177566$$MANY_I18N_ATTRIBUTES_TS_391 = + /* @ts-ignore */ + goog.getMsg("392"); + msg = MSG_EXTERNAL_1193259435863177566$$MANY_I18N_ATTRIBUTES_TS_391; + } else { + /* @ts-ignore */ + msg = $localize`:392:392`; + } + return msg; +} +function i18n_392() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 393 + */ + const MSG_EXTERNAL_872620878797557063$$MANY_I18N_ATTRIBUTES_TS_392 = + /* @ts-ignore */ + goog.getMsg("393"); + msg = MSG_EXTERNAL_872620878797557063$$MANY_I18N_ATTRIBUTES_TS_392; + } else { + /* @ts-ignore */ + msg = $localize`:393:393`; + } + return msg; +} +function i18n_393() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 394 + */ + const MSG_EXTERNAL_5292870954998330982$$MANY_I18N_ATTRIBUTES_TS_393 = + /* @ts-ignore */ + goog.getMsg("394"); + msg = MSG_EXTERNAL_5292870954998330982$$MANY_I18N_ATTRIBUTES_TS_393; + } else { + /* @ts-ignore */ + msg = $localize`:394:394`; + } + return msg; +} +function i18n_394() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 395 + */ + const MSG_EXTERNAL_1636817310111771403$$MANY_I18N_ATTRIBUTES_TS_394 = + /* @ts-ignore */ + goog.getMsg("395"); + msg = MSG_EXTERNAL_1636817310111771403$$MANY_I18N_ATTRIBUTES_TS_394; + } else { + /* @ts-ignore */ + msg = $localize`:395:395`; + } + return msg; +} +function i18n_395() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 396 + */ + const MSG_EXTERNAL_7625386057800960770$$MANY_I18N_ATTRIBUTES_TS_395 = + /* @ts-ignore */ + goog.getMsg("396"); + msg = MSG_EXTERNAL_7625386057800960770$$MANY_I18N_ATTRIBUTES_TS_395; + } else { + /* @ts-ignore */ + msg = $localize`:396:396`; + } + return msg; +} +function i18n_396() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 397 + */ + const MSG_EXTERNAL_6466801551592024728$$MANY_I18N_ATTRIBUTES_TS_396 = + /* @ts-ignore */ + goog.getMsg("397"); + msg = MSG_EXTERNAL_6466801551592024728$$MANY_I18N_ATTRIBUTES_TS_396; + } else { + /* @ts-ignore */ + msg = $localize`:397:397`; + } + return msg; +} +function i18n_397() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 398 + */ + const MSG_EXTERNAL_4090749509619070918$$MANY_I18N_ATTRIBUTES_TS_397 = + /* @ts-ignore */ + goog.getMsg("398"); + msg = MSG_EXTERNAL_4090749509619070918$$MANY_I18N_ATTRIBUTES_TS_397; + } else { + /* @ts-ignore */ + msg = $localize`:398:398`; + } + return msg; +} +function i18n_398() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 399 + */ + const MSG_EXTERNAL_2341346183346723426$$MANY_I18N_ATTRIBUTES_TS_398 = + /* @ts-ignore */ + goog.getMsg("399"); + msg = MSG_EXTERNAL_2341346183346723426$$MANY_I18N_ATTRIBUTES_TS_398; + } else { + /* @ts-ignore */ + msg = $localize`:399:399`; + } + return msg; +} +function i18n_399() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 400 + */ + const MSG_EXTERNAL_3874653915323545866$$MANY_I18N_ATTRIBUTES_TS_399 = + /* @ts-ignore */ + goog.getMsg("400"); + msg = MSG_EXTERNAL_3874653915323545866$$MANY_I18N_ATTRIBUTES_TS_399; + } else { + /* @ts-ignore */ + msg = $localize`:400:400`; + } + return msg; +} +function i18n_400() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 401 + */ + const MSG_EXTERNAL_1843700032600803002$$MANY_I18N_ATTRIBUTES_TS_400 = + /* @ts-ignore */ + goog.getMsg("401"); + msg = MSG_EXTERNAL_1843700032600803002$$MANY_I18N_ATTRIBUTES_TS_400; + } else { + /* @ts-ignore */ + msg = $localize`:401:401`; + } + return msg; +} +function i18n_401() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 402 + */ + const MSG_EXTERNAL_458220479161526417$$MANY_I18N_ATTRIBUTES_TS_401 = + /* @ts-ignore */ + goog.getMsg("402"); + msg = MSG_EXTERNAL_458220479161526417$$MANY_I18N_ATTRIBUTES_TS_401; + } else { + /* @ts-ignore */ + msg = $localize`:402:402`; + } + return msg; +} +function i18n_402() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 403 + */ + const MSG_EXTERNAL_4713357405604523613$$MANY_I18N_ATTRIBUTES_TS_402 = + /* @ts-ignore */ + goog.getMsg("403"); + msg = MSG_EXTERNAL_4713357405604523613$$MANY_I18N_ATTRIBUTES_TS_402; + } else { + /* @ts-ignore */ + msg = $localize`:403:403`; + } + return msg; +} +function i18n_403() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 404 + */ + const MSG_EXTERNAL_2471041631220366258$$MANY_I18N_ATTRIBUTES_TS_403 = + /* @ts-ignore */ + goog.getMsg("404"); + msg = MSG_EXTERNAL_2471041631220366258$$MANY_I18N_ATTRIBUTES_TS_403; + } else { + /* @ts-ignore */ + msg = $localize`:404:404`; + } + return msg; +} +function i18n_404() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 405 + */ + const MSG_EXTERNAL_6486164534282805873$$MANY_I18N_ATTRIBUTES_TS_404 = + /* @ts-ignore */ + goog.getMsg("405"); + msg = MSG_EXTERNAL_6486164534282805873$$MANY_I18N_ATTRIBUTES_TS_404; + } else { + /* @ts-ignore */ + msg = $localize`:405:405`; + } + return msg; +} +function i18n_405() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 406 + */ + const MSG_EXTERNAL_6819581998637626014$$MANY_I18N_ATTRIBUTES_TS_405 = + /* @ts-ignore */ + goog.getMsg("406"); + msg = MSG_EXTERNAL_6819581998637626014$$MANY_I18N_ATTRIBUTES_TS_405; + } else { + /* @ts-ignore */ + msg = $localize`:406:406`; + } + return msg; +} +function i18n_406() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 407 + */ + const MSG_EXTERNAL_5276452883320122441$$MANY_I18N_ATTRIBUTES_TS_406 = + /* @ts-ignore */ + goog.getMsg("407"); + msg = MSG_EXTERNAL_5276452883320122441$$MANY_I18N_ATTRIBUTES_TS_406; + } else { + /* @ts-ignore */ + msg = $localize`:407:407`; + } + return msg; +} +function i18n_407() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 408 + */ + const MSG_EXTERNAL_6783701698921606852$$MANY_I18N_ATTRIBUTES_TS_407 = + /* @ts-ignore */ + goog.getMsg("408"); + msg = MSG_EXTERNAL_6783701698921606852$$MANY_I18N_ATTRIBUTES_TS_407; + } else { + /* @ts-ignore */ + msg = $localize`:408:408`; + } + return msg; +} +function i18n_408() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 409 + */ + const MSG_EXTERNAL_8925984458999345001$$MANY_I18N_ATTRIBUTES_TS_408 = + /* @ts-ignore */ + goog.getMsg("409"); + msg = MSG_EXTERNAL_8925984458999345001$$MANY_I18N_ATTRIBUTES_TS_408; + } else { + /* @ts-ignore */ + msg = $localize`:409:409`; + } + return msg; +} +function i18n_409() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 410 + */ + const MSG_EXTERNAL_4604709441534274224$$MANY_I18N_ATTRIBUTES_TS_409 = + /* @ts-ignore */ + goog.getMsg("410"); + msg = MSG_EXTERNAL_4604709441534274224$$MANY_I18N_ATTRIBUTES_TS_409; + } else { + /* @ts-ignore */ + msg = $localize`:410:410`; + } + return msg; +} +function i18n_410() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 411 + */ + const MSG_EXTERNAL_436252719647546904$$MANY_I18N_ATTRIBUTES_TS_410 = + /* @ts-ignore */ + goog.getMsg("411"); + msg = MSG_EXTERNAL_436252719647546904$$MANY_I18N_ATTRIBUTES_TS_410; + } else { + /* @ts-ignore */ + msg = $localize`:411:411`; + } + return msg; +} +function i18n_411() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 412 + */ + const MSG_EXTERNAL_8705184226807970030$$MANY_I18N_ATTRIBUTES_TS_411 = + /* @ts-ignore */ + goog.getMsg("412"); + msg = MSG_EXTERNAL_8705184226807970030$$MANY_I18N_ATTRIBUTES_TS_411; + } else { + /* @ts-ignore */ + msg = $localize`:412:412`; + } + return msg; +} +function i18n_412() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 413 + */ + const MSG_EXTERNAL_3860648477988585096$$MANY_I18N_ATTRIBUTES_TS_412 = + /* @ts-ignore */ + goog.getMsg("413"); + msg = MSG_EXTERNAL_3860648477988585096$$MANY_I18N_ATTRIBUTES_TS_412; + } else { + /* @ts-ignore */ + msg = $localize`:413:413`; + } + return msg; +} +function i18n_413() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 414 + */ + const MSG_EXTERNAL_8756129745740284323$$MANY_I18N_ATTRIBUTES_TS_413 = + /* @ts-ignore */ + goog.getMsg("414"); + msg = MSG_EXTERNAL_8756129745740284323$$MANY_I18N_ATTRIBUTES_TS_413; + } else { + /* @ts-ignore */ + msg = $localize`:414:414`; + } + return msg; +} +function i18n_414() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 415 + */ + const MSG_EXTERNAL_2259005633110458891$$MANY_I18N_ATTRIBUTES_TS_414 = + /* @ts-ignore */ + goog.getMsg("415"); + msg = MSG_EXTERNAL_2259005633110458891$$MANY_I18N_ATTRIBUTES_TS_414; + } else { + /* @ts-ignore */ + msg = $localize`:415:415`; + } + return msg; +} +function i18n_415() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 416 + */ + const MSG_EXTERNAL_6297356832977260539$$MANY_I18N_ATTRIBUTES_TS_415 = + /* @ts-ignore */ + goog.getMsg("416"); + msg = MSG_EXTERNAL_6297356832977260539$$MANY_I18N_ATTRIBUTES_TS_415; + } else { + /* @ts-ignore */ + msg = $localize`:416:416`; + } + return msg; +} +function i18n_416() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 417 + */ + const MSG_EXTERNAL_5257601026255727235$$MANY_I18N_ATTRIBUTES_TS_416 = + /* @ts-ignore */ + goog.getMsg("417"); + msg = MSG_EXTERNAL_5257601026255727235$$MANY_I18N_ATTRIBUTES_TS_416; + } else { + /* @ts-ignore */ + msg = $localize`:417:417`; + } + return msg; +} +function i18n_417() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 418 + */ + const MSG_EXTERNAL_348701408260791859$$MANY_I18N_ATTRIBUTES_TS_417 = + /* @ts-ignore */ + goog.getMsg("418"); + msg = MSG_EXTERNAL_348701408260791859$$MANY_I18N_ATTRIBUTES_TS_417; + } else { + /* @ts-ignore */ + msg = $localize`:418:418`; + } + return msg; +} +function i18n_418() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 419 + */ + const MSG_EXTERNAL_8563312178107008141$$MANY_I18N_ATTRIBUTES_TS_418 = + /* @ts-ignore */ + goog.getMsg("419"); + msg = MSG_EXTERNAL_8563312178107008141$$MANY_I18N_ATTRIBUTES_TS_418; + } else { + /* @ts-ignore */ + msg = $localize`:419:419`; + } + return msg; +} +function i18n_419() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 420 + */ + const MSG_EXTERNAL_8828659748644128358$$MANY_I18N_ATTRIBUTES_TS_419 = + /* @ts-ignore */ + goog.getMsg("420"); + msg = MSG_EXTERNAL_8828659748644128358$$MANY_I18N_ATTRIBUTES_TS_419; + } else { + /* @ts-ignore */ + msg = $localize`:420:420`; + } + return msg; +} +function i18n_420() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 421 + */ + const MSG_EXTERNAL_7418638874667553263$$MANY_I18N_ATTRIBUTES_TS_420 = + /* @ts-ignore */ + goog.getMsg("421"); + msg = MSG_EXTERNAL_7418638874667553263$$MANY_I18N_ATTRIBUTES_TS_420; + } else { + /* @ts-ignore */ + msg = $localize`:421:421`; + } + return msg; +} +function i18n_421() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 422 + */ + const MSG_EXTERNAL_3463680069853813968$$MANY_I18N_ATTRIBUTES_TS_421 = + /* @ts-ignore */ + goog.getMsg("422"); + msg = MSG_EXTERNAL_3463680069853813968$$MANY_I18N_ATTRIBUTES_TS_421; + } else { + /* @ts-ignore */ + msg = $localize`:422:422`; + } + return msg; +} +function i18n_422() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 423 + */ + const MSG_EXTERNAL_5557587980926870550$$MANY_I18N_ATTRIBUTES_TS_422 = + /* @ts-ignore */ + goog.getMsg("423"); + msg = MSG_EXTERNAL_5557587980926870550$$MANY_I18N_ATTRIBUTES_TS_422; + } else { + /* @ts-ignore */ + msg = $localize`:423:423`; + } + return msg; +} +function i18n_423() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 424 + */ + const MSG_EXTERNAL_5848122953433083139$$MANY_I18N_ATTRIBUTES_TS_423 = + /* @ts-ignore */ + goog.getMsg("424"); + msg = MSG_EXTERNAL_5848122953433083139$$MANY_I18N_ATTRIBUTES_TS_423; + } else { + /* @ts-ignore */ + msg = $localize`:424:424`; + } + return msg; +} +function i18n_424() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 425 + */ + const MSG_EXTERNAL_7664792886964347485$$MANY_I18N_ATTRIBUTES_TS_424 = + /* @ts-ignore */ + goog.getMsg("425"); + msg = MSG_EXTERNAL_7664792886964347485$$MANY_I18N_ATTRIBUTES_TS_424; + } else { + /* @ts-ignore */ + msg = $localize`:425:425`; + } + return msg; +} +function i18n_425() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 426 + */ + const MSG_EXTERNAL_2688839558013919771$$MANY_I18N_ATTRIBUTES_TS_425 = + /* @ts-ignore */ + goog.getMsg("426"); + msg = MSG_EXTERNAL_2688839558013919771$$MANY_I18N_ATTRIBUTES_TS_425; + } else { + /* @ts-ignore */ + msg = $localize`:426:426`; + } + return msg; +} +function i18n_426() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 427 + */ + const MSG_EXTERNAL_1706206539592990372$$MANY_I18N_ATTRIBUTES_TS_426 = + /* @ts-ignore */ + goog.getMsg("427"); + msg = MSG_EXTERNAL_1706206539592990372$$MANY_I18N_ATTRIBUTES_TS_426; + } else { + /* @ts-ignore */ + msg = $localize`:427:427`; + } + return msg; +} +function i18n_427() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 428 + */ + const MSG_EXTERNAL_4660064108942333661$$MANY_I18N_ATTRIBUTES_TS_427 = + /* @ts-ignore */ + goog.getMsg("428"); + msg = MSG_EXTERNAL_4660064108942333661$$MANY_I18N_ATTRIBUTES_TS_427; + } else { + /* @ts-ignore */ + msg = $localize`:428:428`; + } + return msg; +} +function i18n_428() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 429 + */ + const MSG_EXTERNAL_6104649384367343631$$MANY_I18N_ATTRIBUTES_TS_428 = + /* @ts-ignore */ + goog.getMsg("429"); + msg = MSG_EXTERNAL_6104649384367343631$$MANY_I18N_ATTRIBUTES_TS_428; + } else { + /* @ts-ignore */ + msg = $localize`:429:429`; + } + return msg; +} +function i18n_429() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 430 + */ + const MSG_EXTERNAL_7737440796999007159$$MANY_I18N_ATTRIBUTES_TS_429 = + /* @ts-ignore */ + goog.getMsg("430"); + msg = MSG_EXTERNAL_7737440796999007159$$MANY_I18N_ATTRIBUTES_TS_429; + } else { + /* @ts-ignore */ + msg = $localize`:430:430`; + } + return msg; +} +function i18n_430() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 431 + */ + const MSG_EXTERNAL_3225010897743746974$$MANY_I18N_ATTRIBUTES_TS_430 = + /* @ts-ignore */ + goog.getMsg("431"); + msg = MSG_EXTERNAL_3225010897743746974$$MANY_I18N_ATTRIBUTES_TS_430; + } else { + /* @ts-ignore */ + msg = $localize`:431:431`; + } + return msg; +} +function i18n_431() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 432 + */ + const MSG_EXTERNAL_3182815079845287682$$MANY_I18N_ATTRIBUTES_TS_431 = + /* @ts-ignore */ + goog.getMsg("432"); + msg = MSG_EXTERNAL_3182815079845287682$$MANY_I18N_ATTRIBUTES_TS_431; + } else { + /* @ts-ignore */ + msg = $localize`:432:432`; + } + return msg; +} +function i18n_432() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 433 + */ + const MSG_EXTERNAL_2326696770287613439$$MANY_I18N_ATTRIBUTES_TS_432 = + /* @ts-ignore */ + goog.getMsg("433"); + msg = MSG_EXTERNAL_2326696770287613439$$MANY_I18N_ATTRIBUTES_TS_432; + } else { + /* @ts-ignore */ + msg = $localize`:433:433`; + } + return msg; +} +function i18n_433() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 434 + */ + const MSG_EXTERNAL_8492696513930948646$$MANY_I18N_ATTRIBUTES_TS_433 = + /* @ts-ignore */ + goog.getMsg("434"); + msg = MSG_EXTERNAL_8492696513930948646$$MANY_I18N_ATTRIBUTES_TS_433; + } else { + /* @ts-ignore */ + msg = $localize`:434:434`; + } + return msg; +} +function i18n_434() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 435 + */ + const MSG_EXTERNAL_6317681190155857413$$MANY_I18N_ATTRIBUTES_TS_434 = + /* @ts-ignore */ + goog.getMsg("435"); + msg = MSG_EXTERNAL_6317681190155857413$$MANY_I18N_ATTRIBUTES_TS_434; + } else { + /* @ts-ignore */ + msg = $localize`:435:435`; + } + return msg; +} +function i18n_435() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 436 + */ + const MSG_EXTERNAL_7660807974473729612$$MANY_I18N_ATTRIBUTES_TS_435 = + /* @ts-ignore */ + goog.getMsg("436"); + msg = MSG_EXTERNAL_7660807974473729612$$MANY_I18N_ATTRIBUTES_TS_435; + } else { + /* @ts-ignore */ + msg = $localize`:436:436`; + } + return msg; +} +function i18n_436() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 437 + */ + const MSG_EXTERNAL_74362144241773445$$MANY_I18N_ATTRIBUTES_TS_436 = + /* @ts-ignore */ + goog.getMsg("437"); + msg = MSG_EXTERNAL_74362144241773445$$MANY_I18N_ATTRIBUTES_TS_436; + } else { + /* @ts-ignore */ + msg = $localize`:437:437`; + } + return msg; +} +function i18n_437() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 438 + */ + const MSG_EXTERNAL_488472584401838657$$MANY_I18N_ATTRIBUTES_TS_437 = + /* @ts-ignore */ + goog.getMsg("438"); + msg = MSG_EXTERNAL_488472584401838657$$MANY_I18N_ATTRIBUTES_TS_437; + } else { + /* @ts-ignore */ + msg = $localize`:438:438`; + } + return msg; +} +function i18n_438() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 439 + */ + const MSG_EXTERNAL_552563452819940466$$MANY_I18N_ATTRIBUTES_TS_438 = + /* @ts-ignore */ + goog.getMsg("439"); + msg = MSG_EXTERNAL_552563452819940466$$MANY_I18N_ATTRIBUTES_TS_438; + } else { + /* @ts-ignore */ + msg = $localize`:439:439`; + } + return msg; +} +function i18n_439() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 440 + */ + const MSG_EXTERNAL_4084550219000858645$$MANY_I18N_ATTRIBUTES_TS_439 = + /* @ts-ignore */ + goog.getMsg("440"); + msg = MSG_EXTERNAL_4084550219000858645$$MANY_I18N_ATTRIBUTES_TS_439; + } else { + /* @ts-ignore */ + msg = $localize`:440:440`; + } + return msg; +} +function i18n_440() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 441 + */ + const MSG_EXTERNAL_1067806993226250194$$MANY_I18N_ATTRIBUTES_TS_440 = + /* @ts-ignore */ + goog.getMsg("441"); + msg = MSG_EXTERNAL_1067806993226250194$$MANY_I18N_ATTRIBUTES_TS_440; + } else { + /* @ts-ignore */ + msg = $localize`:441:441`; + } + return msg; +} +function i18n_441() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 442 + */ + const MSG_EXTERNAL_4998716130417638751$$MANY_I18N_ATTRIBUTES_TS_441 = + /* @ts-ignore */ + goog.getMsg("442"); + msg = MSG_EXTERNAL_4998716130417638751$$MANY_I18N_ATTRIBUTES_TS_441; + } else { + /* @ts-ignore */ + msg = $localize`:442:442`; + } + return msg; +} +function i18n_442() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 443 + */ + const MSG_EXTERNAL_5392015505051988299$$MANY_I18N_ATTRIBUTES_TS_442 = + /* @ts-ignore */ + goog.getMsg("443"); + msg = MSG_EXTERNAL_5392015505051988299$$MANY_I18N_ATTRIBUTES_TS_442; + } else { + /* @ts-ignore */ + msg = $localize`:443:443`; + } + return msg; +} +function i18n_443() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 444 + */ + const MSG_EXTERNAL_715736212316944723$$MANY_I18N_ATTRIBUTES_TS_443 = + /* @ts-ignore */ + goog.getMsg("444"); + msg = MSG_EXTERNAL_715736212316944723$$MANY_I18N_ATTRIBUTES_TS_443; + } else { + /* @ts-ignore */ + msg = $localize`:444:444`; + } + return msg; +} +function i18n_444() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 445 + */ + const MSG_EXTERNAL_6395101903275524629$$MANY_I18N_ATTRIBUTES_TS_444 = + /* @ts-ignore */ + goog.getMsg("445"); + msg = MSG_EXTERNAL_6395101903275524629$$MANY_I18N_ATTRIBUTES_TS_444; + } else { + /* @ts-ignore */ + msg = $localize`:445:445`; + } + return msg; +} +function i18n_445() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 446 + */ + const MSG_EXTERNAL_3531019757116929875$$MANY_I18N_ATTRIBUTES_TS_445 = + /* @ts-ignore */ + goog.getMsg("446"); + msg = MSG_EXTERNAL_3531019757116929875$$MANY_I18N_ATTRIBUTES_TS_445; + } else { + /* @ts-ignore */ + msg = $localize`:446:446`; + } + return msg; +} +function i18n_446() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 447 + */ + const MSG_EXTERNAL_6019822332440397413$$MANY_I18N_ATTRIBUTES_TS_446 = + /* @ts-ignore */ + goog.getMsg("447"); + msg = MSG_EXTERNAL_6019822332440397413$$MANY_I18N_ATTRIBUTES_TS_446; + } else { + /* @ts-ignore */ + msg = $localize`:447:447`; + } + return msg; +} +function i18n_447() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 448 + */ + const MSG_EXTERNAL_5164081812905744326$$MANY_I18N_ATTRIBUTES_TS_447 = + /* @ts-ignore */ + goog.getMsg("448"); + msg = MSG_EXTERNAL_5164081812905744326$$MANY_I18N_ATTRIBUTES_TS_447; + } else { + /* @ts-ignore */ + msg = $localize`:448:448`; + } + return msg; +} +function i18n_448() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 449 + */ + const MSG_EXTERNAL_5779964790992439971$$MANY_I18N_ATTRIBUTES_TS_448 = + /* @ts-ignore */ + goog.getMsg("449"); + msg = MSG_EXTERNAL_5779964790992439971$$MANY_I18N_ATTRIBUTES_TS_448; + } else { + /* @ts-ignore */ + msg = $localize`:449:449`; + } + return msg; +} +function i18n_449() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 450 + */ + const MSG_EXTERNAL_3653361849389120520$$MANY_I18N_ATTRIBUTES_TS_449 = + /* @ts-ignore */ + goog.getMsg("450"); + msg = MSG_EXTERNAL_3653361849389120520$$MANY_I18N_ATTRIBUTES_TS_449; + } else { + /* @ts-ignore */ + msg = $localize`:450:450`; + } + return msg; +} +function i18n_450() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 451 + */ + const MSG_EXTERNAL_158738304617273727$$MANY_I18N_ATTRIBUTES_TS_450 = + /* @ts-ignore */ + goog.getMsg("451"); + msg = MSG_EXTERNAL_158738304617273727$$MANY_I18N_ATTRIBUTES_TS_450; + } else { + /* @ts-ignore */ + msg = $localize`:451:451`; + } + return msg; +} +function i18n_451() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 452 + */ + const MSG_EXTERNAL_7672844123976822285$$MANY_I18N_ATTRIBUTES_TS_451 = + /* @ts-ignore */ + goog.getMsg("452"); + msg = MSG_EXTERNAL_7672844123976822285$$MANY_I18N_ATTRIBUTES_TS_451; + } else { + /* @ts-ignore */ + msg = $localize`:452:452`; + } + return msg; +} +function i18n_452() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 453 + */ + const MSG_EXTERNAL_5717238977563594277$$MANY_I18N_ATTRIBUTES_TS_452 = + /* @ts-ignore */ + goog.getMsg("453"); + msg = MSG_EXTERNAL_5717238977563594277$$MANY_I18N_ATTRIBUTES_TS_452; + } else { + /* @ts-ignore */ + msg = $localize`:453:453`; + } + return msg; +} +function i18n_453() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 454 + */ + const MSG_EXTERNAL_9154236628483440418$$MANY_I18N_ATTRIBUTES_TS_453 = + /* @ts-ignore */ + goog.getMsg("454"); + msg = MSG_EXTERNAL_9154236628483440418$$MANY_I18N_ATTRIBUTES_TS_453; + } else { + /* @ts-ignore */ + msg = $localize`:454:454`; + } + return msg; +} +function i18n_454() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 455 + */ + const MSG_EXTERNAL_6356033488300782784$$MANY_I18N_ATTRIBUTES_TS_454 = + /* @ts-ignore */ + goog.getMsg("455"); + msg = MSG_EXTERNAL_6356033488300782784$$MANY_I18N_ATTRIBUTES_TS_454; + } else { + /* @ts-ignore */ + msg = $localize`:455:455`; + } + return msg; +} +function i18n_455() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 456 + */ + const MSG_EXTERNAL_8672294012568036592$$MANY_I18N_ATTRIBUTES_TS_455 = + /* @ts-ignore */ + goog.getMsg("456"); + msg = MSG_EXTERNAL_8672294012568036592$$MANY_I18N_ATTRIBUTES_TS_455; + } else { + /* @ts-ignore */ + msg = $localize`:456:456`; + } + return msg; +} +function i18n_456() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 457 + */ + const MSG_EXTERNAL_3857638144174210555$$MANY_I18N_ATTRIBUTES_TS_456 = + /* @ts-ignore */ + goog.getMsg("457"); + msg = MSG_EXTERNAL_3857638144174210555$$MANY_I18N_ATTRIBUTES_TS_456; + } else { + /* @ts-ignore */ + msg = $localize`:457:457`; + } + return msg; +} +function i18n_457() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 458 + */ + const MSG_EXTERNAL_3045695327175378337$$MANY_I18N_ATTRIBUTES_TS_457 = + /* @ts-ignore */ + goog.getMsg("458"); + msg = MSG_EXTERNAL_3045695327175378337$$MANY_I18N_ATTRIBUTES_TS_457; + } else { + /* @ts-ignore */ + msg = $localize`:458:458`; + } + return msg; +} +function i18n_458() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 459 + */ + const MSG_EXTERNAL_3644484817035455202$$MANY_I18N_ATTRIBUTES_TS_458 = + /* @ts-ignore */ + goog.getMsg("459"); + msg = MSG_EXTERNAL_3644484817035455202$$MANY_I18N_ATTRIBUTES_TS_458; + } else { + /* @ts-ignore */ + msg = $localize`:459:459`; + } + return msg; +} +function i18n_459() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 460 + */ + const MSG_EXTERNAL_7660359530594750114$$MANY_I18N_ATTRIBUTES_TS_459 = + /* @ts-ignore */ + goog.getMsg("460"); + msg = MSG_EXTERNAL_7660359530594750114$$MANY_I18N_ATTRIBUTES_TS_459; + } else { + /* @ts-ignore */ + msg = $localize`:460:460`; + } + return msg; +} +function i18n_460() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 461 + */ + const MSG_EXTERNAL_859029215945778019$$MANY_I18N_ATTRIBUTES_TS_460 = + /* @ts-ignore */ + goog.getMsg("461"); + msg = MSG_EXTERNAL_859029215945778019$$MANY_I18N_ATTRIBUTES_TS_460; + } else { + /* @ts-ignore */ + msg = $localize`:461:461`; + } + return msg; +} +function i18n_461() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 462 + */ + const MSG_EXTERNAL_5607532337489776885$$MANY_I18N_ATTRIBUTES_TS_461 = + /* @ts-ignore */ + goog.getMsg("462"); + msg = MSG_EXTERNAL_5607532337489776885$$MANY_I18N_ATTRIBUTES_TS_461; + } else { + /* @ts-ignore */ + msg = $localize`:462:462`; + } + return msg; +} +function i18n_462() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 463 + */ + const MSG_EXTERNAL_4240067400031681086$$MANY_I18N_ATTRIBUTES_TS_462 = + /* @ts-ignore */ + goog.getMsg("463"); + msg = MSG_EXTERNAL_4240067400031681086$$MANY_I18N_ATTRIBUTES_TS_462; + } else { + /* @ts-ignore */ + msg = $localize`:463:463`; + } + return msg; +} +function i18n_463() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 464 + */ + const MSG_EXTERNAL_1640272610790531385$$MANY_I18N_ATTRIBUTES_TS_463 = + /* @ts-ignore */ + goog.getMsg("464"); + msg = MSG_EXTERNAL_1640272610790531385$$MANY_I18N_ATTRIBUTES_TS_463; + } else { + /* @ts-ignore */ + msg = $localize`:464:464`; + } + return msg; +} +function i18n_464() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 465 + */ + const MSG_EXTERNAL_3491441897963531818$$MANY_I18N_ATTRIBUTES_TS_464 = + /* @ts-ignore */ + goog.getMsg("465"); + msg = MSG_EXTERNAL_3491441897963531818$$MANY_I18N_ATTRIBUTES_TS_464; + } else { + /* @ts-ignore */ + msg = $localize`:465:465`; + } + return msg; +} +function i18n_465() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 466 + */ + const MSG_EXTERNAL_6403507623520365877$$MANY_I18N_ATTRIBUTES_TS_465 = + /* @ts-ignore */ + goog.getMsg("466"); + msg = MSG_EXTERNAL_6403507623520365877$$MANY_I18N_ATTRIBUTES_TS_465; + } else { + /* @ts-ignore */ + msg = $localize`:466:466`; + } + return msg; +} +function i18n_466() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 467 + */ + const MSG_EXTERNAL_4091657843540113630$$MANY_I18N_ATTRIBUTES_TS_466 = + /* @ts-ignore */ + goog.getMsg("467"); + msg = MSG_EXTERNAL_4091657843540113630$$MANY_I18N_ATTRIBUTES_TS_466; + } else { + /* @ts-ignore */ + msg = $localize`:467:467`; + } + return msg; +} +function i18n_467() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 468 + */ + const MSG_EXTERNAL_3076972487047087405$$MANY_I18N_ATTRIBUTES_TS_467 = + /* @ts-ignore */ + goog.getMsg("468"); + msg = MSG_EXTERNAL_3076972487047087405$$MANY_I18N_ATTRIBUTES_TS_467; + } else { + /* @ts-ignore */ + msg = $localize`:468:468`; + } + return msg; +} +function i18n_468() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 469 + */ + const MSG_EXTERNAL_5500299522025254954$$MANY_I18N_ATTRIBUTES_TS_468 = + /* @ts-ignore */ + goog.getMsg("469"); + msg = MSG_EXTERNAL_5500299522025254954$$MANY_I18N_ATTRIBUTES_TS_468; + } else { + /* @ts-ignore */ + msg = $localize`:469:469`; + } + return msg; +} +function i18n_469() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 470 + */ + const MSG_EXTERNAL_8992664674709063031$$MANY_I18N_ATTRIBUTES_TS_469 = + /* @ts-ignore */ + goog.getMsg("470"); + msg = MSG_EXTERNAL_8992664674709063031$$MANY_I18N_ATTRIBUTES_TS_469; + } else { + /* @ts-ignore */ + msg = $localize`:470:470`; + } + return msg; +} +function i18n_470() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 471 + */ + const MSG_EXTERNAL_7397185572114470672$$MANY_I18N_ATTRIBUTES_TS_470 = + /* @ts-ignore */ + goog.getMsg("471"); + msg = MSG_EXTERNAL_7397185572114470672$$MANY_I18N_ATTRIBUTES_TS_470; + } else { + /* @ts-ignore */ + msg = $localize`:471:471`; + } + return msg; +} +function i18n_471() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 472 + */ + const MSG_EXTERNAL_4419652340563278731$$MANY_I18N_ATTRIBUTES_TS_471 = + /* @ts-ignore */ + goog.getMsg("472"); + msg = MSG_EXTERNAL_4419652340563278731$$MANY_I18N_ATTRIBUTES_TS_471; + } else { + /* @ts-ignore */ + msg = $localize`:472:472`; + } + return msg; +} +function i18n_472() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 473 + */ + const MSG_EXTERNAL_66554995291161941$$MANY_I18N_ATTRIBUTES_TS_472 = + /* @ts-ignore */ + goog.getMsg("473"); + msg = MSG_EXTERNAL_66554995291161941$$MANY_I18N_ATTRIBUTES_TS_472; + } else { + /* @ts-ignore */ + msg = $localize`:473:473`; + } + return msg; +} +function i18n_473() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 474 + */ + const MSG_EXTERNAL_1730638004408107401$$MANY_I18N_ATTRIBUTES_TS_473 = + /* @ts-ignore */ + goog.getMsg("474"); + msg = MSG_EXTERNAL_1730638004408107401$$MANY_I18N_ATTRIBUTES_TS_473; + } else { + /* @ts-ignore */ + msg = $localize`:474:474`; + } + return msg; +} +function i18n_474() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 475 + */ + const MSG_EXTERNAL_1383887689453599139$$MANY_I18N_ATTRIBUTES_TS_474 = + /* @ts-ignore */ + goog.getMsg("475"); + msg = MSG_EXTERNAL_1383887689453599139$$MANY_I18N_ATTRIBUTES_TS_474; + } else { + /* @ts-ignore */ + msg = $localize`:475:475`; + } + return msg; +} +function i18n_475() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 476 + */ + const MSG_EXTERNAL_2583434773836125750$$MANY_I18N_ATTRIBUTES_TS_475 = + /* @ts-ignore */ + goog.getMsg("476"); + msg = MSG_EXTERNAL_2583434773836125750$$MANY_I18N_ATTRIBUTES_TS_475; + } else { + /* @ts-ignore */ + msg = $localize`:476:476`; + } + return msg; +} +function i18n_476() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 477 + */ + const MSG_EXTERNAL_364015306856065006$$MANY_I18N_ATTRIBUTES_TS_476 = + /* @ts-ignore */ + goog.getMsg("477"); + msg = MSG_EXTERNAL_364015306856065006$$MANY_I18N_ATTRIBUTES_TS_476; + } else { + /* @ts-ignore */ + msg = $localize`:477:477`; + } + return msg; +} +function i18n_477() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 478 + */ + const MSG_EXTERNAL_2179867506451951579$$MANY_I18N_ATTRIBUTES_TS_477 = + /* @ts-ignore */ + goog.getMsg("478"); + msg = MSG_EXTERNAL_2179867506451951579$$MANY_I18N_ATTRIBUTES_TS_477; + } else { + /* @ts-ignore */ + msg = $localize`:478:478`; + } + return msg; +} +function i18n_478() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 479 + */ + const MSG_EXTERNAL_7630056743933849698$$MANY_I18N_ATTRIBUTES_TS_478 = + /* @ts-ignore */ + goog.getMsg("479"); + msg = MSG_EXTERNAL_7630056743933849698$$MANY_I18N_ATTRIBUTES_TS_478; + } else { + /* @ts-ignore */ + msg = $localize`:479:479`; + } + return msg; +} +function i18n_479() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 480 + */ + const MSG_EXTERNAL_5897035674175241162$$MANY_I18N_ATTRIBUTES_TS_479 = + /* @ts-ignore */ + goog.getMsg("480"); + msg = MSG_EXTERNAL_5897035674175241162$$MANY_I18N_ATTRIBUTES_TS_479; + } else { + /* @ts-ignore */ + msg = $localize`:480:480`; + } + return msg; +} +function i18n_480() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 481 + */ + const MSG_EXTERNAL_5735410914727717601$$MANY_I18N_ATTRIBUTES_TS_480 = + /* @ts-ignore */ + goog.getMsg("481"); + msg = MSG_EXTERNAL_5735410914727717601$$MANY_I18N_ATTRIBUTES_TS_480; + } else { + /* @ts-ignore */ + msg = $localize`:481:481`; + } + return msg; +} +function i18n_481() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 482 + */ + const MSG_EXTERNAL_416490898951677518$$MANY_I18N_ATTRIBUTES_TS_481 = + /* @ts-ignore */ + goog.getMsg("482"); + msg = MSG_EXTERNAL_416490898951677518$$MANY_I18N_ATTRIBUTES_TS_481; + } else { + /* @ts-ignore */ + msg = $localize`:482:482`; + } + return msg; +} +function i18n_482() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 483 + */ + const MSG_EXTERNAL_3738301243897298849$$MANY_I18N_ATTRIBUTES_TS_482 = + /* @ts-ignore */ + goog.getMsg("483"); + msg = MSG_EXTERNAL_3738301243897298849$$MANY_I18N_ATTRIBUTES_TS_482; + } else { + /* @ts-ignore */ + msg = $localize`:483:483`; + } + return msg; +} +function i18n_483() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 484 + */ + const MSG_EXTERNAL_2547937874240015967$$MANY_I18N_ATTRIBUTES_TS_483 = + /* @ts-ignore */ + goog.getMsg("484"); + msg = MSG_EXTERNAL_2547937874240015967$$MANY_I18N_ATTRIBUTES_TS_483; + } else { + /* @ts-ignore */ + msg = $localize`:484:484`; + } + return msg; +} +function i18n_484() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 485 + */ + const MSG_EXTERNAL_5294428313685765795$$MANY_I18N_ATTRIBUTES_TS_484 = + /* @ts-ignore */ + goog.getMsg("485"); + msg = MSG_EXTERNAL_5294428313685765795$$MANY_I18N_ATTRIBUTES_TS_484; + } else { + /* @ts-ignore */ + msg = $localize`:485:485`; + } + return msg; +} +function i18n_485() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 486 + */ + const MSG_EXTERNAL_616403259028242308$$MANY_I18N_ATTRIBUTES_TS_485 = + /* @ts-ignore */ + goog.getMsg("486"); + msg = MSG_EXTERNAL_616403259028242308$$MANY_I18N_ATTRIBUTES_TS_485; + } else { + /* @ts-ignore */ + msg = $localize`:486:486`; + } + return msg; +} +function i18n_486() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 487 + */ + const MSG_EXTERNAL_4475068601923037843$$MANY_I18N_ATTRIBUTES_TS_486 = + /* @ts-ignore */ + goog.getMsg("487"); + msg = MSG_EXTERNAL_4475068601923037843$$MANY_I18N_ATTRIBUTES_TS_486; + } else { + /* @ts-ignore */ + msg = $localize`:487:487`; + } + return msg; +} +function i18n_487() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 488 + */ + const MSG_EXTERNAL_4876435386198377668$$MANY_I18N_ATTRIBUTES_TS_487 = + /* @ts-ignore */ + goog.getMsg("488"); + msg = MSG_EXTERNAL_4876435386198377668$$MANY_I18N_ATTRIBUTES_TS_487; + } else { + /* @ts-ignore */ + msg = $localize`:488:488`; + } + return msg; +} +function i18n_488() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 489 + */ + const MSG_EXTERNAL_1771490289433450695$$MANY_I18N_ATTRIBUTES_TS_488 = + /* @ts-ignore */ + goog.getMsg("489"); + msg = MSG_EXTERNAL_1771490289433450695$$MANY_I18N_ATTRIBUTES_TS_488; + } else { + /* @ts-ignore */ + msg = $localize`:489:489`; + } + return msg; +} +function i18n_489() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 490 + */ + const MSG_EXTERNAL_1560312989455252247$$MANY_I18N_ATTRIBUTES_TS_489 = + /* @ts-ignore */ + goog.getMsg("490"); + msg = MSG_EXTERNAL_1560312989455252247$$MANY_I18N_ATTRIBUTES_TS_489; + } else { + /* @ts-ignore */ + msg = $localize`:490:490`; + } + return msg; +} +function i18n_490() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 491 + */ + const MSG_EXTERNAL_8412302102230709486$$MANY_I18N_ATTRIBUTES_TS_490 = + /* @ts-ignore */ + goog.getMsg("491"); + msg = MSG_EXTERNAL_8412302102230709486$$MANY_I18N_ATTRIBUTES_TS_490; + } else { + /* @ts-ignore */ + msg = $localize`:491:491`; + } + return msg; +} +function i18n_491() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 492 + */ + const MSG_EXTERNAL_3934795069589749288$$MANY_I18N_ATTRIBUTES_TS_491 = + /* @ts-ignore */ + goog.getMsg("492"); + msg = MSG_EXTERNAL_3934795069589749288$$MANY_I18N_ATTRIBUTES_TS_491; + } else { + /* @ts-ignore */ + msg = $localize`:492:492`; + } + return msg; +} +function i18n_492() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 493 + */ + const MSG_EXTERNAL_4355747588924184966$$MANY_I18N_ATTRIBUTES_TS_492 = + /* @ts-ignore */ + goog.getMsg("493"); + msg = MSG_EXTERNAL_4355747588924184966$$MANY_I18N_ATTRIBUTES_TS_492; + } else { + /* @ts-ignore */ + msg = $localize`:493:493`; + } + return msg; +} +function i18n_493() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 494 + */ + const MSG_EXTERNAL_7836545017374130131$$MANY_I18N_ATTRIBUTES_TS_493 = + /* @ts-ignore */ + goog.getMsg("494"); + msg = MSG_EXTERNAL_7836545017374130131$$MANY_I18N_ATTRIBUTES_TS_493; + } else { + /* @ts-ignore */ + msg = $localize`:494:494`; + } + return msg; +} +function i18n_494() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 495 + */ + const MSG_EXTERNAL_5451859542377643686$$MANY_I18N_ATTRIBUTES_TS_494 = + /* @ts-ignore */ + goog.getMsg("495"); + msg = MSG_EXTERNAL_5451859542377643686$$MANY_I18N_ATTRIBUTES_TS_494; + } else { + /* @ts-ignore */ + msg = $localize`:495:495`; + } + return msg; +} +function i18n_495() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 496 + */ + const MSG_EXTERNAL_3827305446558093656$$MANY_I18N_ATTRIBUTES_TS_495 = + /* @ts-ignore */ + goog.getMsg("496"); + msg = MSG_EXTERNAL_3827305446558093656$$MANY_I18N_ATTRIBUTES_TS_495; + } else { + /* @ts-ignore */ + msg = $localize`:496:496`; + } + return msg; +} +function i18n_496() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 497 + */ + const MSG_EXTERNAL_8303356916283782409$$MANY_I18N_ATTRIBUTES_TS_496 = + /* @ts-ignore */ + goog.getMsg("497"); + msg = MSG_EXTERNAL_8303356916283782409$$MANY_I18N_ATTRIBUTES_TS_496; + } else { + /* @ts-ignore */ + msg = $localize`:497:497`; + } + return msg; +} +function i18n_497() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 498 + */ + const MSG_EXTERNAL_8475697065630706875$$MANY_I18N_ATTRIBUTES_TS_497 = + /* @ts-ignore */ + goog.getMsg("498"); + msg = MSG_EXTERNAL_8475697065630706875$$MANY_I18N_ATTRIBUTES_TS_497; + } else { + /* @ts-ignore */ + msg = $localize`:498:498`; + } + return msg; +} +function i18n_498() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 499 + */ + const MSG_EXTERNAL_3431877929024550401$$MANY_I18N_ATTRIBUTES_TS_498 = + /* @ts-ignore */ + goog.getMsg("499"); + msg = MSG_EXTERNAL_3431877929024550401$$MANY_I18N_ATTRIBUTES_TS_498; + } else { + /* @ts-ignore */ + msg = $localize`:499:499`; + } + return msg; +} +function i18n_499() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 500 + */ + const MSG_EXTERNAL_4457064427864045824$$MANY_I18N_ATTRIBUTES_TS_499 = + /* @ts-ignore */ + goog.getMsg("500"); + msg = MSG_EXTERNAL_4457064427864045824$$MANY_I18N_ATTRIBUTES_TS_499; + } else { + /* @ts-ignore */ + msg = $localize`:500:500`; + } + return msg; +} +function i18n_500() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 501 + */ + const MSG_EXTERNAL_4835717312846681229$$MANY_I18N_ATTRIBUTES_TS_500 = + /* @ts-ignore */ + goog.getMsg("501"); + msg = MSG_EXTERNAL_4835717312846681229$$MANY_I18N_ATTRIBUTES_TS_500; + } else { + /* @ts-ignore */ + msg = $localize`:501:501`; + } + return msg; +} +function i18n_501() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 502 + */ + const MSG_EXTERNAL_9078664051157153489$$MANY_I18N_ATTRIBUTES_TS_501 = + /* @ts-ignore */ + goog.getMsg("502"); + msg = MSG_EXTERNAL_9078664051157153489$$MANY_I18N_ATTRIBUTES_TS_501; + } else { + /* @ts-ignore */ + msg = $localize`:502:502`; + } + return msg; +} +function i18n_502() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 503 + */ + const MSG_EXTERNAL_511369475241360326$$MANY_I18N_ATTRIBUTES_TS_502 = + /* @ts-ignore */ + goog.getMsg("503"); + msg = MSG_EXTERNAL_511369475241360326$$MANY_I18N_ATTRIBUTES_TS_502; + } else { + /* @ts-ignore */ + msg = $localize`:503:503`; + } + return msg; +} +function i18n_503() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 504 + */ + const MSG_EXTERNAL_6243482556750375859$$MANY_I18N_ATTRIBUTES_TS_503 = + /* @ts-ignore */ + goog.getMsg("504"); + msg = MSG_EXTERNAL_6243482556750375859$$MANY_I18N_ATTRIBUTES_TS_503; + } else { + /* @ts-ignore */ + msg = $localize`:504:504`; + } + return msg; +} +function i18n_504() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 505 + */ + const MSG_EXTERNAL_2511240777980040286$$MANY_I18N_ATTRIBUTES_TS_504 = + /* @ts-ignore */ + goog.getMsg("505"); + msg = MSG_EXTERNAL_2511240777980040286$$MANY_I18N_ATTRIBUTES_TS_504; + } else { + /* @ts-ignore */ + msg = $localize`:505:505`; + } + return msg; +} +function i18n_505() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 506 + */ + const MSG_EXTERNAL_1077269740685515527$$MANY_I18N_ATTRIBUTES_TS_505 = + /* @ts-ignore */ + goog.getMsg("506"); + msg = MSG_EXTERNAL_1077269740685515527$$MANY_I18N_ATTRIBUTES_TS_505; + } else { + /* @ts-ignore */ + msg = $localize`:506:506`; + } + return msg; +} +function i18n_506() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 507 + */ + const MSG_EXTERNAL_1689483662688577965$$MANY_I18N_ATTRIBUTES_TS_506 = + /* @ts-ignore */ + goog.getMsg("507"); + msg = MSG_EXTERNAL_1689483662688577965$$MANY_I18N_ATTRIBUTES_TS_506; + } else { + /* @ts-ignore */ + msg = $localize`:507:507`; + } + return msg; +} +function i18n_507() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 508 + */ + const MSG_EXTERNAL_1102274504706636545$$MANY_I18N_ATTRIBUTES_TS_507 = + /* @ts-ignore */ + goog.getMsg("508"); + msg = MSG_EXTERNAL_1102274504706636545$$MANY_I18N_ATTRIBUTES_TS_507; + } else { + /* @ts-ignore */ + msg = $localize`:508:508`; + } + return msg; +} +function i18n_508() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 509 + */ + const MSG_EXTERNAL_6226436718112231675$$MANY_I18N_ATTRIBUTES_TS_508 = + /* @ts-ignore */ + goog.getMsg("509"); + msg = MSG_EXTERNAL_6226436718112231675$$MANY_I18N_ATTRIBUTES_TS_508; + } else { + /* @ts-ignore */ + msg = $localize`:509:509`; + } + return msg; +} +function i18n_509() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 510 + */ + const MSG_EXTERNAL_684979110802785007$$MANY_I18N_ATTRIBUTES_TS_509 = + /* @ts-ignore */ + goog.getMsg("510"); + msg = MSG_EXTERNAL_684979110802785007$$MANY_I18N_ATTRIBUTES_TS_509; + } else { + /* @ts-ignore */ + msg = $localize`:510:510`; + } + return msg; +} +function i18n_510() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 511 + */ + const MSG_EXTERNAL_4296896040823338474$$MANY_I18N_ATTRIBUTES_TS_510 = + /* @ts-ignore */ + goog.getMsg("511"); + msg = MSG_EXTERNAL_4296896040823338474$$MANY_I18N_ATTRIBUTES_TS_510; + } else { + /* @ts-ignore */ + msg = $localize`:511:511`; + } + return msg; +} +function i18n_511() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 512 + */ + const MSG_EXTERNAL_9063542580376065530$$MANY_I18N_ATTRIBUTES_TS_511 = + /* @ts-ignore */ + goog.getMsg("512"); + msg = MSG_EXTERNAL_9063542580376065530$$MANY_I18N_ATTRIBUTES_TS_511; + } else { + /* @ts-ignore */ + msg = $localize`:512:512`; + } + return msg; +} +function i18n_512() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 513 + */ + const MSG_EXTERNAL_4583342910800195982$$MANY_I18N_ATTRIBUTES_TS_512 = + /* @ts-ignore */ + goog.getMsg("513"); + msg = MSG_EXTERNAL_4583342910800195982$$MANY_I18N_ATTRIBUTES_TS_512; + } else { + /* @ts-ignore */ + msg = $localize`:513:513`; + } + return msg; +} +function i18n_513() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 514 + */ + const MSG_EXTERNAL_8863893035353155219$$MANY_I18N_ATTRIBUTES_TS_513 = + /* @ts-ignore */ + goog.getMsg("514"); + msg = MSG_EXTERNAL_8863893035353155219$$MANY_I18N_ATTRIBUTES_TS_513; + } else { + /* @ts-ignore */ + msg = $localize`:514:514`; + } + return msg; +} +function i18n_514() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 515 + */ + const MSG_EXTERNAL_1668867486872647333$$MANY_I18N_ATTRIBUTES_TS_514 = + /* @ts-ignore */ + goog.getMsg("515"); + msg = MSG_EXTERNAL_1668867486872647333$$MANY_I18N_ATTRIBUTES_TS_514; + } else { + /* @ts-ignore */ + msg = $localize`:515:515`; + } + return msg; +} +function i18n_515() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 516 + */ + const MSG_EXTERNAL_7554406348610228270$$MANY_I18N_ATTRIBUTES_TS_515 = + /* @ts-ignore */ + goog.getMsg("516"); + msg = MSG_EXTERNAL_7554406348610228270$$MANY_I18N_ATTRIBUTES_TS_515; + } else { + /* @ts-ignore */ + msg = $localize`:516:516`; + } + return msg; +} +function i18n_516() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 517 + */ + const MSG_EXTERNAL_8284231330504165283$$MANY_I18N_ATTRIBUTES_TS_516 = + /* @ts-ignore */ + goog.getMsg("517"); + msg = MSG_EXTERNAL_8284231330504165283$$MANY_I18N_ATTRIBUTES_TS_516; + } else { + /* @ts-ignore */ + msg = $localize`:517:517`; + } + return msg; +} +function i18n_517() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 518 + */ + const MSG_EXTERNAL_7625716525028929107$$MANY_I18N_ATTRIBUTES_TS_517 = + /* @ts-ignore */ + goog.getMsg("518"); + msg = MSG_EXTERNAL_7625716525028929107$$MANY_I18N_ATTRIBUTES_TS_517; + } else { + /* @ts-ignore */ + msg = $localize`:518:518`; + } + return msg; +} +function i18n_518() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 519 + */ + const MSG_EXTERNAL_9058838481332734818$$MANY_I18N_ATTRIBUTES_TS_518 = + /* @ts-ignore */ + goog.getMsg("519"); + msg = MSG_EXTERNAL_9058838481332734818$$MANY_I18N_ATTRIBUTES_TS_518; + } else { + /* @ts-ignore */ + msg = $localize`:519:519`; + } + return msg; +} +function i18n_519() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 520 + */ + const MSG_EXTERNAL_8005231904969278590$$MANY_I18N_ATTRIBUTES_TS_519 = + /* @ts-ignore */ + goog.getMsg("520"); + msg = MSG_EXTERNAL_8005231904969278590$$MANY_I18N_ATTRIBUTES_TS_519; + } else { + /* @ts-ignore */ + msg = $localize`:520:520`; + } + return msg; +} +function i18n_520() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 521 + */ + const MSG_EXTERNAL_4198986407501175619$$MANY_I18N_ATTRIBUTES_TS_520 = + /* @ts-ignore */ + goog.getMsg("521"); + msg = MSG_EXTERNAL_4198986407501175619$$MANY_I18N_ATTRIBUTES_TS_520; + } else { + /* @ts-ignore */ + msg = $localize`:521:521`; + } + return msg; +} +function i18n_521() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 522 + */ + const MSG_EXTERNAL_2431270465241190822$$MANY_I18N_ATTRIBUTES_TS_521 = + /* @ts-ignore */ + goog.getMsg("522"); + msg = MSG_EXTERNAL_2431270465241190822$$MANY_I18N_ATTRIBUTES_TS_521; + } else { + /* @ts-ignore */ + msg = $localize`:522:522`; + } + return msg; +} +function i18n_522() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 523 + */ + const MSG_EXTERNAL_6730586199735623145$$MANY_I18N_ATTRIBUTES_TS_522 = + /* @ts-ignore */ + goog.getMsg("523"); + msg = MSG_EXTERNAL_6730586199735623145$$MANY_I18N_ATTRIBUTES_TS_522; + } else { + /* @ts-ignore */ + msg = $localize`:523:523`; + } + return msg; +} +function i18n_523() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 524 + */ + const MSG_EXTERNAL_569576625098292798$$MANY_I18N_ATTRIBUTES_TS_523 = + /* @ts-ignore */ + goog.getMsg("524"); + msg = MSG_EXTERNAL_569576625098292798$$MANY_I18N_ATTRIBUTES_TS_523; + } else { + /* @ts-ignore */ + msg = $localize`:524:524`; + } + return msg; +} +function i18n_524() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 525 + */ + const MSG_EXTERNAL_2480372203821745013$$MANY_I18N_ATTRIBUTES_TS_524 = + /* @ts-ignore */ + goog.getMsg("525"); + msg = MSG_EXTERNAL_2480372203821745013$$MANY_I18N_ATTRIBUTES_TS_524; + } else { + /* @ts-ignore */ + msg = $localize`:525:525`; + } + return msg; +} +function i18n_525() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 526 + */ + const MSG_EXTERNAL_2954142628984937568$$MANY_I18N_ATTRIBUTES_TS_525 = + /* @ts-ignore */ + goog.getMsg("526"); + msg = MSG_EXTERNAL_2954142628984937568$$MANY_I18N_ATTRIBUTES_TS_525; + } else { + /* @ts-ignore */ + msg = $localize`:526:526`; + } + return msg; +} +function i18n_526() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 527 + */ + const MSG_EXTERNAL_4997577844524771362$$MANY_I18N_ATTRIBUTES_TS_526 = + /* @ts-ignore */ + goog.getMsg("527"); + msg = MSG_EXTERNAL_4997577844524771362$$MANY_I18N_ATTRIBUTES_TS_526; + } else { + /* @ts-ignore */ + msg = $localize`:527:527`; + } + return msg; +} +function i18n_527() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 528 + */ + const MSG_EXTERNAL_4131860367950266555$$MANY_I18N_ATTRIBUTES_TS_527 = + /* @ts-ignore */ + goog.getMsg("528"); + msg = MSG_EXTERNAL_4131860367950266555$$MANY_I18N_ATTRIBUTES_TS_527; + } else { + /* @ts-ignore */ + msg = $localize`:528:528`; + } + return msg; +} +function i18n_528() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 529 + */ + const MSG_EXTERNAL_6420702701734267178$$MANY_I18N_ATTRIBUTES_TS_528 = + /* @ts-ignore */ + goog.getMsg("529"); + msg = MSG_EXTERNAL_6420702701734267178$$MANY_I18N_ATTRIBUTES_TS_528; + } else { + /* @ts-ignore */ + msg = $localize`:529:529`; + } + return msg; +} +function i18n_529() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 530 + */ + const MSG_EXTERNAL_7212839838640613203$$MANY_I18N_ATTRIBUTES_TS_529 = + /* @ts-ignore */ + goog.getMsg("530"); + msg = MSG_EXTERNAL_7212839838640613203$$MANY_I18N_ATTRIBUTES_TS_529; + } else { + /* @ts-ignore */ + msg = $localize`:530:530`; + } + return msg; +} +function i18n_530() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 531 + */ + const MSG_EXTERNAL_1475076150311943525$$MANY_I18N_ATTRIBUTES_TS_530 = + /* @ts-ignore */ + goog.getMsg("531"); + msg = MSG_EXTERNAL_1475076150311943525$$MANY_I18N_ATTRIBUTES_TS_530; + } else { + /* @ts-ignore */ + msg = $localize`:531:531`; + } + return msg; +} +function i18n_531() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 532 + */ + const MSG_EXTERNAL_3063698967799445073$$MANY_I18N_ATTRIBUTES_TS_531 = + /* @ts-ignore */ + goog.getMsg("532"); + msg = MSG_EXTERNAL_3063698967799445073$$MANY_I18N_ATTRIBUTES_TS_531; + } else { + /* @ts-ignore */ + msg = $localize`:532:532`; + } + return msg; +} +function i18n_532() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 533 + */ + const MSG_EXTERNAL_1723417304676500909$$MANY_I18N_ATTRIBUTES_TS_532 = + /* @ts-ignore */ + goog.getMsg("533"); + msg = MSG_EXTERNAL_1723417304676500909$$MANY_I18N_ATTRIBUTES_TS_532; + } else { + /* @ts-ignore */ + msg = $localize`:533:533`; + } + return msg; +} +function i18n_533() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 534 + */ + const MSG_EXTERNAL_2734796332025803751$$MANY_I18N_ATTRIBUTES_TS_533 = + /* @ts-ignore */ + goog.getMsg("534"); + msg = MSG_EXTERNAL_2734796332025803751$$MANY_I18N_ATTRIBUTES_TS_533; + } else { + /* @ts-ignore */ + msg = $localize`:534:534`; + } + return msg; +} +function i18n_534() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 535 + */ + const MSG_EXTERNAL_5777639044279170363$$MANY_I18N_ATTRIBUTES_TS_534 = + /* @ts-ignore */ + goog.getMsg("535"); + msg = MSG_EXTERNAL_5777639044279170363$$MANY_I18N_ATTRIBUTES_TS_534; + } else { + /* @ts-ignore */ + msg = $localize`:535:535`; + } + return msg; +} +function i18n_535() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 536 + */ + const MSG_EXTERNAL_7953683499821209290$$MANY_I18N_ATTRIBUTES_TS_535 = + /* @ts-ignore */ + goog.getMsg("536"); + msg = MSG_EXTERNAL_7953683499821209290$$MANY_I18N_ATTRIBUTES_TS_535; + } else { + /* @ts-ignore */ + msg = $localize`:536:536`; + } + return msg; +} +function i18n_536() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 537 + */ + const MSG_EXTERNAL_552956116952226031$$MANY_I18N_ATTRIBUTES_TS_536 = + /* @ts-ignore */ + goog.getMsg("537"); + msg = MSG_EXTERNAL_552956116952226031$$MANY_I18N_ATTRIBUTES_TS_536; + } else { + /* @ts-ignore */ + msg = $localize`:537:537`; + } + return msg; +} +function i18n_537() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 538 + */ + const MSG_EXTERNAL_3130519228438050799$$MANY_I18N_ATTRIBUTES_TS_537 = + /* @ts-ignore */ + goog.getMsg("538"); + msg = MSG_EXTERNAL_3130519228438050799$$MANY_I18N_ATTRIBUTES_TS_537; + } else { + /* @ts-ignore */ + msg = $localize`:538:538`; + } + return msg; +} +function i18n_538() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 539 + */ + const MSG_EXTERNAL_4038732451791054690$$MANY_I18N_ATTRIBUTES_TS_538 = + /* @ts-ignore */ + goog.getMsg("539"); + msg = MSG_EXTERNAL_4038732451791054690$$MANY_I18N_ATTRIBUTES_TS_538; + } else { + /* @ts-ignore */ + msg = $localize`:539:539`; + } + return msg; +} +function i18n_539() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 540 + */ + const MSG_EXTERNAL_974395780180346699$$MANY_I18N_ATTRIBUTES_TS_539 = + /* @ts-ignore */ + goog.getMsg("540"); + msg = MSG_EXTERNAL_974395780180346699$$MANY_I18N_ATTRIBUTES_TS_539; + } else { + /* @ts-ignore */ + msg = $localize`:540:540`; + } + return msg; +} +function i18n_540() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 541 + */ + const MSG_EXTERNAL_154127424508534469$$MANY_I18N_ATTRIBUTES_TS_540 = + /* @ts-ignore */ + goog.getMsg("541"); + msg = MSG_EXTERNAL_154127424508534469$$MANY_I18N_ATTRIBUTES_TS_540; + } else { + /* @ts-ignore */ + msg = $localize`:541:541`; + } + return msg; +} +function i18n_541() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 542 + */ + const MSG_EXTERNAL_6789220548268482475$$MANY_I18N_ATTRIBUTES_TS_541 = + /* @ts-ignore */ + goog.getMsg("542"); + msg = MSG_EXTERNAL_6789220548268482475$$MANY_I18N_ATTRIBUTES_TS_541; + } else { + /* @ts-ignore */ + msg = $localize`:542:542`; + } + return msg; +} +function i18n_542() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 543 + */ + const MSG_EXTERNAL_9100834671714161985$$MANY_I18N_ATTRIBUTES_TS_542 = + /* @ts-ignore */ + goog.getMsg("543"); + msg = MSG_EXTERNAL_9100834671714161985$$MANY_I18N_ATTRIBUTES_TS_542; + } else { + /* @ts-ignore */ + msg = $localize`:543:543`; + } + return msg; +} +function i18n_543() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 544 + */ + const MSG_EXTERNAL_6340366952505621256$$MANY_I18N_ATTRIBUTES_TS_543 = + /* @ts-ignore */ + goog.getMsg("544"); + msg = MSG_EXTERNAL_6340366952505621256$$MANY_I18N_ATTRIBUTES_TS_543; + } else { + /* @ts-ignore */ + msg = $localize`:544:544`; + } + return msg; +} +function i18n_544() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 545 + */ + const MSG_EXTERNAL_3712852565849019142$$MANY_I18N_ATTRIBUTES_TS_544 = + /* @ts-ignore */ + goog.getMsg("545"); + msg = MSG_EXTERNAL_3712852565849019142$$MANY_I18N_ATTRIBUTES_TS_544; + } else { + /* @ts-ignore */ + msg = $localize`:545:545`; + } + return msg; +} +function i18n_545() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 546 + */ + const MSG_EXTERNAL_6448186959072369875$$MANY_I18N_ATTRIBUTES_TS_545 = + /* @ts-ignore */ + goog.getMsg("546"); + msg = MSG_EXTERNAL_6448186959072369875$$MANY_I18N_ATTRIBUTES_TS_545; + } else { + /* @ts-ignore */ + msg = $localize`:546:546`; + } + return msg; +} +function i18n_546() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 547 + */ + const MSG_EXTERNAL_6137795660369455956$$MANY_I18N_ATTRIBUTES_TS_546 = + /* @ts-ignore */ + goog.getMsg("547"); + msg = MSG_EXTERNAL_6137795660369455956$$MANY_I18N_ATTRIBUTES_TS_546; + } else { + /* @ts-ignore */ + msg = $localize`:547:547`; + } + return msg; +} +function i18n_547() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 548 + */ + const MSG_EXTERNAL_4599860022428050957$$MANY_I18N_ATTRIBUTES_TS_547 = + /* @ts-ignore */ + goog.getMsg("548"); + msg = MSG_EXTERNAL_4599860022428050957$$MANY_I18N_ATTRIBUTES_TS_547; + } else { + /* @ts-ignore */ + msg = $localize`:548:548`; + } + return msg; +} +function i18n_548() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 549 + */ + const MSG_EXTERNAL_7903695147924286234$$MANY_I18N_ATTRIBUTES_TS_548 = + /* @ts-ignore */ + goog.getMsg("549"); + msg = MSG_EXTERNAL_7903695147924286234$$MANY_I18N_ATTRIBUTES_TS_548; + } else { + /* @ts-ignore */ + msg = $localize`:549:549`; + } + return msg; +} +function i18n_549() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 550 + */ + const MSG_EXTERNAL_5596847578921895672$$MANY_I18N_ATTRIBUTES_TS_549 = + /* @ts-ignore */ + goog.getMsg("550"); + msg = MSG_EXTERNAL_5596847578921895672$$MANY_I18N_ATTRIBUTES_TS_549; + } else { + /* @ts-ignore */ + msg = $localize`:550:550`; + } + return msg; +} +function i18n_550() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 551 + */ + const MSG_EXTERNAL_1821865701301610542$$MANY_I18N_ATTRIBUTES_TS_550 = + /* @ts-ignore */ + goog.getMsg("551"); + msg = MSG_EXTERNAL_1821865701301610542$$MANY_I18N_ATTRIBUTES_TS_550; + } else { + /* @ts-ignore */ + msg = $localize`:551:551`; + } + return msg; +} +function i18n_551() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 552 + */ + const MSG_EXTERNAL_6597229916728888229$$MANY_I18N_ATTRIBUTES_TS_551 = + /* @ts-ignore */ + goog.getMsg("552"); + msg = MSG_EXTERNAL_6597229916728888229$$MANY_I18N_ATTRIBUTES_TS_551; + } else { + /* @ts-ignore */ + msg = $localize`:552:552`; + } + return msg; +} +function i18n_552() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 553 + */ + const MSG_EXTERNAL_5749202281753030180$$MANY_I18N_ATTRIBUTES_TS_552 = + /* @ts-ignore */ + goog.getMsg("553"); + msg = MSG_EXTERNAL_5749202281753030180$$MANY_I18N_ATTRIBUTES_TS_552; + } else { + /* @ts-ignore */ + msg = $localize`:553:553`; + } + return msg; +} +function i18n_553() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 554 + */ + const MSG_EXTERNAL_9036479897511996131$$MANY_I18N_ATTRIBUTES_TS_553 = + /* @ts-ignore */ + goog.getMsg("554"); + msg = MSG_EXTERNAL_9036479897511996131$$MANY_I18N_ATTRIBUTES_TS_553; + } else { + /* @ts-ignore */ + msg = $localize`:554:554`; + } + return msg; +} +function i18n_554() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 555 + */ + const MSG_EXTERNAL_8964440564577070202$$MANY_I18N_ATTRIBUTES_TS_554 = + /* @ts-ignore */ + goog.getMsg("555"); + msg = MSG_EXTERNAL_8964440564577070202$$MANY_I18N_ATTRIBUTES_TS_554; + } else { + /* @ts-ignore */ + msg = $localize`:555:555`; + } + return msg; +} +function i18n_555() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 556 + */ + const MSG_EXTERNAL_3996605250704756000$$MANY_I18N_ATTRIBUTES_TS_555 = + /* @ts-ignore */ + goog.getMsg("556"); + msg = MSG_EXTERNAL_3996605250704756000$$MANY_I18N_ATTRIBUTES_TS_555; + } else { + /* @ts-ignore */ + msg = $localize`:556:556`; + } + return msg; +} +function i18n_556() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 557 + */ + const MSG_EXTERNAL_8739126221014752563$$MANY_I18N_ATTRIBUTES_TS_556 = + /* @ts-ignore */ + goog.getMsg("557"); + msg = MSG_EXTERNAL_8739126221014752563$$MANY_I18N_ATTRIBUTES_TS_556; + } else { + /* @ts-ignore */ + msg = $localize`:557:557`; + } + return msg; +} +function i18n_557() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 558 + */ + const MSG_EXTERNAL_4602075917882759224$$MANY_I18N_ATTRIBUTES_TS_557 = + /* @ts-ignore */ + goog.getMsg("558"); + msg = MSG_EXTERNAL_4602075917882759224$$MANY_I18N_ATTRIBUTES_TS_557; + } else { + /* @ts-ignore */ + msg = $localize`:558:558`; + } + return msg; +} +function i18n_558() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 559 + */ + const MSG_EXTERNAL_5394043385477653925$$MANY_I18N_ATTRIBUTES_TS_558 = + /* @ts-ignore */ + goog.getMsg("559"); + msg = MSG_EXTERNAL_5394043385477653925$$MANY_I18N_ATTRIBUTES_TS_558; + } else { + /* @ts-ignore */ + msg = $localize`:559:559`; + } + return msg; +} +function i18n_559() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 560 + */ + const MSG_EXTERNAL_35559244211896822$$MANY_I18N_ATTRIBUTES_TS_559 = + /* @ts-ignore */ + goog.getMsg("560"); + msg = MSG_EXTERNAL_35559244211896822$$MANY_I18N_ATTRIBUTES_TS_559; + } else { + /* @ts-ignore */ + msg = $localize`:560:560`; + } + return msg; +} +function i18n_560() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 561 + */ + const MSG_EXTERNAL_7896896431532321823$$MANY_I18N_ATTRIBUTES_TS_560 = + /* @ts-ignore */ + goog.getMsg("561"); + msg = MSG_EXTERNAL_7896896431532321823$$MANY_I18N_ATTRIBUTES_TS_560; + } else { + /* @ts-ignore */ + msg = $localize`:561:561`; + } + return msg; +} +function i18n_561() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 562 + */ + const MSG_EXTERNAL_3952853332150771292$$MANY_I18N_ATTRIBUTES_TS_561 = + /* @ts-ignore */ + goog.getMsg("562"); + msg = MSG_EXTERNAL_3952853332150771292$$MANY_I18N_ATTRIBUTES_TS_561; + } else { + /* @ts-ignore */ + msg = $localize`:562:562`; + } + return msg; +} +function i18n_562() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 563 + */ + const MSG_EXTERNAL_3697171665655714644$$MANY_I18N_ATTRIBUTES_TS_562 = + /* @ts-ignore */ + goog.getMsg("563"); + msg = MSG_EXTERNAL_3697171665655714644$$MANY_I18N_ATTRIBUTES_TS_562; + } else { + /* @ts-ignore */ + msg = $localize`:563:563`; + } + return msg; +} +function i18n_563() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 564 + */ + const MSG_EXTERNAL_8902178795700630407$$MANY_I18N_ATTRIBUTES_TS_563 = + /* @ts-ignore */ + goog.getMsg("564"); + msg = MSG_EXTERNAL_8902178795700630407$$MANY_I18N_ATTRIBUTES_TS_563; + } else { + /* @ts-ignore */ + msg = $localize`:564:564`; + } + return msg; +} +function i18n_564() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 565 + */ + const MSG_EXTERNAL_7688992138435404351$$MANY_I18N_ATTRIBUTES_TS_564 = + /* @ts-ignore */ + goog.getMsg("565"); + msg = MSG_EXTERNAL_7688992138435404351$$MANY_I18N_ATTRIBUTES_TS_564; + } else { + /* @ts-ignore */ + msg = $localize`:565:565`; + } + return msg; +} +function i18n_565() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 566 + */ + const MSG_EXTERNAL_5528129345918762712$$MANY_I18N_ATTRIBUTES_TS_565 = + /* @ts-ignore */ + goog.getMsg("566"); + msg = MSG_EXTERNAL_5528129345918762712$$MANY_I18N_ATTRIBUTES_TS_565; + } else { + /* @ts-ignore */ + msg = $localize`:566:566`; + } + return msg; +} +function i18n_566() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 567 + */ + const MSG_EXTERNAL_6561865276054976252$$MANY_I18N_ATTRIBUTES_TS_566 = + /* @ts-ignore */ + goog.getMsg("567"); + msg = MSG_EXTERNAL_6561865276054976252$$MANY_I18N_ATTRIBUTES_TS_566; + } else { + /* @ts-ignore */ + msg = $localize`:567:567`; + } + return msg; +} +function i18n_567() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 568 + */ + const MSG_EXTERNAL_2812486979565265603$$MANY_I18N_ATTRIBUTES_TS_567 = + /* @ts-ignore */ + goog.getMsg("568"); + msg = MSG_EXTERNAL_2812486979565265603$$MANY_I18N_ATTRIBUTES_TS_567; + } else { + /* @ts-ignore */ + msg = $localize`:568:568`; + } + return msg; +} +function i18n_568() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 569 + */ + const MSG_EXTERNAL_8138823950843812379$$MANY_I18N_ATTRIBUTES_TS_568 = + /* @ts-ignore */ + goog.getMsg("569"); + msg = MSG_EXTERNAL_8138823950843812379$$MANY_I18N_ATTRIBUTES_TS_568; + } else { + /* @ts-ignore */ + msg = $localize`:569:569`; + } + return msg; +} +function i18n_569() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 570 + */ + const MSG_EXTERNAL_7219407671036845746$$MANY_I18N_ATTRIBUTES_TS_569 = + /* @ts-ignore */ + goog.getMsg("570"); + msg = MSG_EXTERNAL_7219407671036845746$$MANY_I18N_ATTRIBUTES_TS_569; + } else { + /* @ts-ignore */ + msg = $localize`:570:570`; + } + return msg; +} +function i18n_570() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 571 + */ + const MSG_EXTERNAL_3272424693761595130$$MANY_I18N_ATTRIBUTES_TS_570 = + /* @ts-ignore */ + goog.getMsg("571"); + msg = MSG_EXTERNAL_3272424693761595130$$MANY_I18N_ATTRIBUTES_TS_570; + } else { + /* @ts-ignore */ + msg = $localize`:571:571`; + } + return msg; +} +function i18n_571() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 572 + */ + const MSG_EXTERNAL_7282474681828676323$$MANY_I18N_ATTRIBUTES_TS_571 = + /* @ts-ignore */ + goog.getMsg("572"); + msg = MSG_EXTERNAL_7282474681828676323$$MANY_I18N_ATTRIBUTES_TS_571; + } else { + /* @ts-ignore */ + msg = $localize`:572:572`; + } + return msg; +} +function i18n_572() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 573 + */ + const MSG_EXTERNAL_7177062860633761137$$MANY_I18N_ATTRIBUTES_TS_572 = + /* @ts-ignore */ + goog.getMsg("573"); + msg = MSG_EXTERNAL_7177062860633761137$$MANY_I18N_ATTRIBUTES_TS_572; + } else { + /* @ts-ignore */ + msg = $localize`:573:573`; + } + return msg; +} +function i18n_573() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 574 + */ + const MSG_EXTERNAL_7226281520202033021$$MANY_I18N_ATTRIBUTES_TS_573 = + /* @ts-ignore */ + goog.getMsg("574"); + msg = MSG_EXTERNAL_7226281520202033021$$MANY_I18N_ATTRIBUTES_TS_573; + } else { + /* @ts-ignore */ + msg = $localize`:574:574`; + } + return msg; +} +function i18n_574() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 575 + */ + const MSG_EXTERNAL_7351641346787613972$$MANY_I18N_ATTRIBUTES_TS_574 = + /* @ts-ignore */ + goog.getMsg("575"); + msg = MSG_EXTERNAL_7351641346787613972$$MANY_I18N_ATTRIBUTES_TS_574; + } else { + /* @ts-ignore */ + msg = $localize`:575:575`; + } + return msg; +} +function i18n_575() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 576 + */ + const MSG_EXTERNAL_5756838000123632997$$MANY_I18N_ATTRIBUTES_TS_575 = + /* @ts-ignore */ + goog.getMsg("576"); + msg = MSG_EXTERNAL_5756838000123632997$$MANY_I18N_ATTRIBUTES_TS_575; + } else { + /* @ts-ignore */ + msg = $localize`:576:576`; + } + return msg; +} +function i18n_576() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 577 + */ + const MSG_EXTERNAL_3282902652753393340$$MANY_I18N_ATTRIBUTES_TS_576 = + /* @ts-ignore */ + goog.getMsg("577"); + msg = MSG_EXTERNAL_3282902652753393340$$MANY_I18N_ATTRIBUTES_TS_576; + } else { + /* @ts-ignore */ + msg = $localize`:577:577`; + } + return msg; +} +function i18n_577() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 578 + */ + const MSG_EXTERNAL_8704921783805470724$$MANY_I18N_ATTRIBUTES_TS_577 = + /* @ts-ignore */ + goog.getMsg("578"); + msg = MSG_EXTERNAL_8704921783805470724$$MANY_I18N_ATTRIBUTES_TS_577; + } else { + /* @ts-ignore */ + msg = $localize`:578:578`; + } + return msg; +} +function i18n_578() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 579 + */ + const MSG_EXTERNAL_5476257510969866083$$MANY_I18N_ATTRIBUTES_TS_578 = + /* @ts-ignore */ + goog.getMsg("579"); + msg = MSG_EXTERNAL_5476257510969866083$$MANY_I18N_ATTRIBUTES_TS_578; + } else { + /* @ts-ignore */ + msg = $localize`:579:579`; + } + return msg; +} +function i18n_579() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 580 + */ + const MSG_EXTERNAL_388851920662662388$$MANY_I18N_ATTRIBUTES_TS_579 = + /* @ts-ignore */ + goog.getMsg("580"); + msg = MSG_EXTERNAL_388851920662662388$$MANY_I18N_ATTRIBUTES_TS_579; + } else { + /* @ts-ignore */ + msg = $localize`:580:580`; + } + return msg; +} +function i18n_580() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 581 + */ + const MSG_EXTERNAL_1258281109356172678$$MANY_I18N_ATTRIBUTES_TS_580 = + /* @ts-ignore */ + goog.getMsg("581"); + msg = MSG_EXTERNAL_1258281109356172678$$MANY_I18N_ATTRIBUTES_TS_580; + } else { + /* @ts-ignore */ + msg = $localize`:581:581`; + } + return msg; +} +function i18n_581() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 582 + */ + const MSG_EXTERNAL_4365708089543726930$$MANY_I18N_ATTRIBUTES_TS_581 = + /* @ts-ignore */ + goog.getMsg("582"); + msg = MSG_EXTERNAL_4365708089543726930$$MANY_I18N_ATTRIBUTES_TS_581; + } else { + /* @ts-ignore */ + msg = $localize`:582:582`; + } + return msg; +} +function i18n_582() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 583 + */ + const MSG_EXTERNAL_3393376841240602940$$MANY_I18N_ATTRIBUTES_TS_582 = + /* @ts-ignore */ + goog.getMsg("583"); + msg = MSG_EXTERNAL_3393376841240602940$$MANY_I18N_ATTRIBUTES_TS_582; + } else { + /* @ts-ignore */ + msg = $localize`:583:583`; + } + return msg; +} +function i18n_583() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 584 + */ + const MSG_EXTERNAL_1260336577133934981$$MANY_I18N_ATTRIBUTES_TS_583 = + /* @ts-ignore */ + goog.getMsg("584"); + msg = MSG_EXTERNAL_1260336577133934981$$MANY_I18N_ATTRIBUTES_TS_583; + } else { + /* @ts-ignore */ + msg = $localize`:584:584`; + } + return msg; +} +function i18n_584() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 585 + */ + const MSG_EXTERNAL_3193069557222500071$$MANY_I18N_ATTRIBUTES_TS_584 = + /* @ts-ignore */ + goog.getMsg("585"); + msg = MSG_EXTERNAL_3193069557222500071$$MANY_I18N_ATTRIBUTES_TS_584; + } else { + /* @ts-ignore */ + msg = $localize`:585:585`; + } + return msg; +} +function i18n_585() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 586 + */ + const MSG_EXTERNAL_192409742777863658$$MANY_I18N_ATTRIBUTES_TS_585 = + /* @ts-ignore */ + goog.getMsg("586"); + msg = MSG_EXTERNAL_192409742777863658$$MANY_I18N_ATTRIBUTES_TS_585; + } else { + /* @ts-ignore */ + msg = $localize`:586:586`; + } + return msg; +} +function i18n_586() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 587 + */ + const MSG_EXTERNAL_7344828823554047561$$MANY_I18N_ATTRIBUTES_TS_586 = + /* @ts-ignore */ + goog.getMsg("587"); + msg = MSG_EXTERNAL_7344828823554047561$$MANY_I18N_ATTRIBUTES_TS_586; + } else { + /* @ts-ignore */ + msg = $localize`:587:587`; + } + return msg; +} +function i18n_587() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 588 + */ + const MSG_EXTERNAL_987851592814414677$$MANY_I18N_ATTRIBUTES_TS_587 = + /* @ts-ignore */ + goog.getMsg("588"); + msg = MSG_EXTERNAL_987851592814414677$$MANY_I18N_ATTRIBUTES_TS_587; + } else { + /* @ts-ignore */ + msg = $localize`:588:588`; + } + return msg; +} +function i18n_588() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 589 + */ + const MSG_EXTERNAL_1668487490133979070$$MANY_I18N_ATTRIBUTES_TS_588 = + /* @ts-ignore */ + goog.getMsg("589"); + msg = MSG_EXTERNAL_1668487490133979070$$MANY_I18N_ATTRIBUTES_TS_588; + } else { + /* @ts-ignore */ + msg = $localize`:589:589`; + } + return msg; +} +function i18n_589() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 590 + */ + const MSG_EXTERNAL_3956279881783964821$$MANY_I18N_ATTRIBUTES_TS_589 = + /* @ts-ignore */ + goog.getMsg("590"); + msg = MSG_EXTERNAL_3956279881783964821$$MANY_I18N_ATTRIBUTES_TS_589; + } else { + /* @ts-ignore */ + msg = $localize`:590:590`; + } + return msg; +} +function i18n_590() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 591 + */ + const MSG_EXTERNAL_3397897325341616056$$MANY_I18N_ATTRIBUTES_TS_590 = + /* @ts-ignore */ + goog.getMsg("591"); + msg = MSG_EXTERNAL_3397897325341616056$$MANY_I18N_ATTRIBUTES_TS_590; + } else { + /* @ts-ignore */ + msg = $localize`:591:591`; + } + return msg; +} +function i18n_591() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 592 + */ + const MSG_EXTERNAL_6232100357008014969$$MANY_I18N_ATTRIBUTES_TS_591 = + /* @ts-ignore */ + goog.getMsg("592"); + msg = MSG_EXTERNAL_6232100357008014969$$MANY_I18N_ATTRIBUTES_TS_591; + } else { + /* @ts-ignore */ + msg = $localize`:592:592`; + } + return msg; +} +function i18n_592() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 593 + */ + const MSG_EXTERNAL_8262042933191386195$$MANY_I18N_ATTRIBUTES_TS_592 = + /* @ts-ignore */ + goog.getMsg("593"); + msg = MSG_EXTERNAL_8262042933191386195$$MANY_I18N_ATTRIBUTES_TS_592; + } else { + /* @ts-ignore */ + msg = $localize`:593:593`; + } + return msg; +} +function i18n_593() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 594 + */ + const MSG_EXTERNAL_5368321628355414154$$MANY_I18N_ATTRIBUTES_TS_593 = + /* @ts-ignore */ + goog.getMsg("594"); + msg = MSG_EXTERNAL_5368321628355414154$$MANY_I18N_ATTRIBUTES_TS_593; + } else { + /* @ts-ignore */ + msg = $localize`:594:594`; + } + return msg; +} +function i18n_594() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 595 + */ + const MSG_EXTERNAL_8024853291221800504$$MANY_I18N_ATTRIBUTES_TS_594 = + /* @ts-ignore */ + goog.getMsg("595"); + msg = MSG_EXTERNAL_8024853291221800504$$MANY_I18N_ATTRIBUTES_TS_594; + } else { + /* @ts-ignore */ + msg = $localize`:595:595`; + } + return msg; +} +function i18n_595() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 596 + */ + const MSG_EXTERNAL_4856390233823500488$$MANY_I18N_ATTRIBUTES_TS_595 = + /* @ts-ignore */ + goog.getMsg("596"); + msg = MSG_EXTERNAL_4856390233823500488$$MANY_I18N_ATTRIBUTES_TS_595; + } else { + /* @ts-ignore */ + msg = $localize`:596:596`; + } + return msg; +} +function i18n_596() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 597 + */ + const MSG_EXTERNAL_4021051041221076116$$MANY_I18N_ATTRIBUTES_TS_596 = + /* @ts-ignore */ + goog.getMsg("597"); + msg = MSG_EXTERNAL_4021051041221076116$$MANY_I18N_ATTRIBUTES_TS_596; + } else { + /* @ts-ignore */ + msg = $localize`:597:597`; + } + return msg; +} +function i18n_597() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 598 + */ + const MSG_EXTERNAL_8879359788223302649$$MANY_I18N_ATTRIBUTES_TS_597 = + /* @ts-ignore */ + goog.getMsg("598"); + msg = MSG_EXTERNAL_8879359788223302649$$MANY_I18N_ATTRIBUTES_TS_597; + } else { + /* @ts-ignore */ + msg = $localize`:598:598`; + } + return msg; +} +function i18n_598() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 599 + */ + const MSG_EXTERNAL_5061511761553334485$$MANY_I18N_ATTRIBUTES_TS_598 = + /* @ts-ignore */ + goog.getMsg("599"); + msg = MSG_EXTERNAL_5061511761553334485$$MANY_I18N_ATTRIBUTES_TS_598; + } else { + /* @ts-ignore */ + msg = $localize`:599:599`; + } + return msg; +} +function i18n_599() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 600 + */ + const MSG_EXTERNAL_2212417202698410841$$MANY_I18N_ATTRIBUTES_TS_599 = + /* @ts-ignore */ + goog.getMsg("600"); + msg = MSG_EXTERNAL_2212417202698410841$$MANY_I18N_ATTRIBUTES_TS_599; + } else { + /* @ts-ignore */ + msg = $localize`:600:600`; + } + return msg; +} +function i18n_600() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 601 + */ + const MSG_EXTERNAL_3364370407974317399$$MANY_I18N_ATTRIBUTES_TS_600 = + /* @ts-ignore */ + goog.getMsg("601"); + msg = MSG_EXTERNAL_3364370407974317399$$MANY_I18N_ATTRIBUTES_TS_600; + } else { + /* @ts-ignore */ + msg = $localize`:601:601`; + } + return msg; +} +function i18n_601() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 602 + */ + const MSG_EXTERNAL_586951201303587729$$MANY_I18N_ATTRIBUTES_TS_601 = + /* @ts-ignore */ + goog.getMsg("602"); + msg = MSG_EXTERNAL_586951201303587729$$MANY_I18N_ATTRIBUTES_TS_601; + } else { + /* @ts-ignore */ + msg = $localize`:602:602`; + } + return msg; +} +function i18n_602() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 603 + */ + const MSG_EXTERNAL_3447491501831293233$$MANY_I18N_ATTRIBUTES_TS_602 = + /* @ts-ignore */ + goog.getMsg("603"); + msg = MSG_EXTERNAL_3447491501831293233$$MANY_I18N_ATTRIBUTES_TS_602; + } else { + /* @ts-ignore */ + msg = $localize`:603:603`; + } + return msg; +} +function i18n_603() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 604 + */ + const MSG_EXTERNAL_6700113764510660979$$MANY_I18N_ATTRIBUTES_TS_603 = + /* @ts-ignore */ + goog.getMsg("604"); + msg = MSG_EXTERNAL_6700113764510660979$$MANY_I18N_ATTRIBUTES_TS_603; + } else { + /* @ts-ignore */ + msg = $localize`:604:604`; + } + return msg; +} +function i18n_604() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 605 + */ + const MSG_EXTERNAL_6309632650817189207$$MANY_I18N_ATTRIBUTES_TS_604 = + /* @ts-ignore */ + goog.getMsg("605"); + msg = MSG_EXTERNAL_6309632650817189207$$MANY_I18N_ATTRIBUTES_TS_604; + } else { + /* @ts-ignore */ + msg = $localize`:605:605`; + } + return msg; +} +function i18n_605() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 606 + */ + const MSG_EXTERNAL_1894910306515874596$$MANY_I18N_ATTRIBUTES_TS_605 = + /* @ts-ignore */ + goog.getMsg("606"); + msg = MSG_EXTERNAL_1894910306515874596$$MANY_I18N_ATTRIBUTES_TS_605; + } else { + /* @ts-ignore */ + msg = $localize`:606:606`; + } + return msg; +} +function i18n_606() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 607 + */ + const MSG_EXTERNAL_1493162153080531062$$MANY_I18N_ATTRIBUTES_TS_606 = + /* @ts-ignore */ + goog.getMsg("607"); + msg = MSG_EXTERNAL_1493162153080531062$$MANY_I18N_ATTRIBUTES_TS_606; + } else { + /* @ts-ignore */ + msg = $localize`:607:607`; + } + return msg; +} +function i18n_607() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 608 + */ + const MSG_EXTERNAL_2208397424631813375$$MANY_I18N_ATTRIBUTES_TS_607 = + /* @ts-ignore */ + goog.getMsg("608"); + msg = MSG_EXTERNAL_2208397424631813375$$MANY_I18N_ATTRIBUTES_TS_607; + } else { + /* @ts-ignore */ + msg = $localize`:608:608`; + } + return msg; +} +function i18n_608() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 609 + */ + const MSG_EXTERNAL_5166545520902743783$$MANY_I18N_ATTRIBUTES_TS_608 = + /* @ts-ignore */ + goog.getMsg("609"); + msg = MSG_EXTERNAL_5166545520902743783$$MANY_I18N_ATTRIBUTES_TS_608; + } else { + /* @ts-ignore */ + msg = $localize`:609:609`; + } + return msg; +} +function i18n_609() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 610 + */ + const MSG_EXTERNAL_4424696092787115112$$MANY_I18N_ATTRIBUTES_TS_609 = + /* @ts-ignore */ + goog.getMsg("610"); + msg = MSG_EXTERNAL_4424696092787115112$$MANY_I18N_ATTRIBUTES_TS_609; + } else { + /* @ts-ignore */ + msg = $localize`:610:610`; + } + return msg; +} +function i18n_610() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 611 + */ + const MSG_EXTERNAL_2518857945032128966$$MANY_I18N_ATTRIBUTES_TS_610 = + /* @ts-ignore */ + goog.getMsg("611"); + msg = MSG_EXTERNAL_2518857945032128966$$MANY_I18N_ATTRIBUTES_TS_610; + } else { + /* @ts-ignore */ + msg = $localize`:611:611`; + } + return msg; +} +function i18n_611() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 612 + */ + const MSG_EXTERNAL_3389162048858972318$$MANY_I18N_ATTRIBUTES_TS_611 = + /* @ts-ignore */ + goog.getMsg("612"); + msg = MSG_EXTERNAL_3389162048858972318$$MANY_I18N_ATTRIBUTES_TS_611; + } else { + /* @ts-ignore */ + msg = $localize`:612:612`; + } + return msg; +} +function i18n_612() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 613 + */ + const MSG_EXTERNAL_1583816522003992383$$MANY_I18N_ATTRIBUTES_TS_612 = + /* @ts-ignore */ + goog.getMsg("613"); + msg = MSG_EXTERNAL_1583816522003992383$$MANY_I18N_ATTRIBUTES_TS_612; + } else { + /* @ts-ignore */ + msg = $localize`:613:613`; + } + return msg; +} +function i18n_613() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 614 + */ + const MSG_EXTERNAL_3523530736714652172$$MANY_I18N_ATTRIBUTES_TS_613 = + /* @ts-ignore */ + goog.getMsg("614"); + msg = MSG_EXTERNAL_3523530736714652172$$MANY_I18N_ATTRIBUTES_TS_613; + } else { + /* @ts-ignore */ + msg = $localize`:614:614`; + } + return msg; +} +function i18n_614() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 615 + */ + const MSG_EXTERNAL_6429502147777377124$$MANY_I18N_ATTRIBUTES_TS_614 = + /* @ts-ignore */ + goog.getMsg("615"); + msg = MSG_EXTERNAL_6429502147777377124$$MANY_I18N_ATTRIBUTES_TS_614; + } else { + /* @ts-ignore */ + msg = $localize`:615:615`; + } + return msg; +} +function i18n_615() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 616 + */ + const MSG_EXTERNAL_3407114967522550478$$MANY_I18N_ATTRIBUTES_TS_615 = + /* @ts-ignore */ + goog.getMsg("616"); + msg = MSG_EXTERNAL_3407114967522550478$$MANY_I18N_ATTRIBUTES_TS_615; + } else { + /* @ts-ignore */ + msg = $localize`:616:616`; + } + return msg; +} +function i18n_616() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 617 + */ + const MSG_EXTERNAL_3661822566573305399$$MANY_I18N_ATTRIBUTES_TS_616 = + /* @ts-ignore */ + goog.getMsg("617"); + msg = MSG_EXTERNAL_3661822566573305399$$MANY_I18N_ATTRIBUTES_TS_616; + } else { + /* @ts-ignore */ + msg = $localize`:617:617`; + } + return msg; +} +function i18n_617() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 618 + */ + const MSG_EXTERNAL_7834071633285307400$$MANY_I18N_ATTRIBUTES_TS_617 = + /* @ts-ignore */ + goog.getMsg("618"); + msg = MSG_EXTERNAL_7834071633285307400$$MANY_I18N_ATTRIBUTES_TS_617; + } else { + /* @ts-ignore */ + msg = $localize`:618:618`; + } + return msg; +} +function i18n_618() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 619 + */ + const MSG_EXTERNAL_8167427092667557758$$MANY_I18N_ATTRIBUTES_TS_618 = + /* @ts-ignore */ + goog.getMsg("619"); + msg = MSG_EXTERNAL_8167427092667557758$$MANY_I18N_ATTRIBUTES_TS_618; + } else { + /* @ts-ignore */ + msg = $localize`:619:619`; + } + return msg; +} +function i18n_619() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 620 + */ + const MSG_EXTERNAL_3997128240474656940$$MANY_I18N_ATTRIBUTES_TS_619 = + /* @ts-ignore */ + goog.getMsg("620"); + msg = MSG_EXTERNAL_3997128240474656940$$MANY_I18N_ATTRIBUTES_TS_619; + } else { + /* @ts-ignore */ + msg = $localize`:620:620`; + } + return msg; +} +function i18n_620() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 621 + */ + const MSG_EXTERNAL_2563144669055378111$$MANY_I18N_ATTRIBUTES_TS_620 = + /* @ts-ignore */ + goog.getMsg("621"); + msg = MSG_EXTERNAL_2563144669055378111$$MANY_I18N_ATTRIBUTES_TS_620; + } else { + /* @ts-ignore */ + msg = $localize`:621:621`; + } + return msg; +} +function i18n_621() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 622 + */ + const MSG_EXTERNAL_6086511944763089772$$MANY_I18N_ATTRIBUTES_TS_621 = + /* @ts-ignore */ + goog.getMsg("622"); + msg = MSG_EXTERNAL_6086511944763089772$$MANY_I18N_ATTRIBUTES_TS_621; + } else { + /* @ts-ignore */ + msg = $localize`:622:622`; + } + return msg; +} +function i18n_622() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 623 + */ + const MSG_EXTERNAL_7786572920245783056$$MANY_I18N_ATTRIBUTES_TS_622 = + /* @ts-ignore */ + goog.getMsg("623"); + msg = MSG_EXTERNAL_7786572920245783056$$MANY_I18N_ATTRIBUTES_TS_622; + } else { + /* @ts-ignore */ + msg = $localize`:623:623`; + } + return msg; +} +function i18n_623() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 624 + */ + const MSG_EXTERNAL_4295027757457296507$$MANY_I18N_ATTRIBUTES_TS_623 = + /* @ts-ignore */ + goog.getMsg("624"); + msg = MSG_EXTERNAL_4295027757457296507$$MANY_I18N_ATTRIBUTES_TS_623; + } else { + /* @ts-ignore */ + msg = $localize`:624:624`; + } + return msg; +} +function i18n_624() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 625 + */ + const MSG_EXTERNAL_3661556099666925070$$MANY_I18N_ATTRIBUTES_TS_624 = + /* @ts-ignore */ + goog.getMsg("625"); + msg = MSG_EXTERNAL_3661556099666925070$$MANY_I18N_ATTRIBUTES_TS_624; + } else { + /* @ts-ignore */ + msg = $localize`:625:625`; + } + return msg; +} +function i18n_625() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 626 + */ + const MSG_EXTERNAL_886505315006087504$$MANY_I18N_ATTRIBUTES_TS_625 = + /* @ts-ignore */ + goog.getMsg("626"); + msg = MSG_EXTERNAL_886505315006087504$$MANY_I18N_ATTRIBUTES_TS_625; + } else { + /* @ts-ignore */ + msg = $localize`:626:626`; + } + return msg; +} +function i18n_626() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 627 + */ + const MSG_EXTERNAL_3037055336989464897$$MANY_I18N_ATTRIBUTES_TS_626 = + /* @ts-ignore */ + goog.getMsg("627"); + msg = MSG_EXTERNAL_3037055336989464897$$MANY_I18N_ATTRIBUTES_TS_626; + } else { + /* @ts-ignore */ + msg = $localize`:627:627`; + } + return msg; +} +function i18n_627() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 628 + */ + const MSG_EXTERNAL_4635606041683997137$$MANY_I18N_ATTRIBUTES_TS_627 = + /* @ts-ignore */ + goog.getMsg("628"); + msg = MSG_EXTERNAL_4635606041683997137$$MANY_I18N_ATTRIBUTES_TS_627; + } else { + /* @ts-ignore */ + msg = $localize`:628:628`; + } + return msg; +} +function i18n_628() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 629 + */ + const MSG_EXTERNAL_6525442747972369068$$MANY_I18N_ATTRIBUTES_TS_628 = + /* @ts-ignore */ + goog.getMsg("629"); + msg = MSG_EXTERNAL_6525442747972369068$$MANY_I18N_ATTRIBUTES_TS_628; + } else { + /* @ts-ignore */ + msg = $localize`:629:629`; + } + return msg; +} +function i18n_629() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 630 + */ + const MSG_EXTERNAL_1031854065713884918$$MANY_I18N_ATTRIBUTES_TS_629 = + /* @ts-ignore */ + goog.getMsg("630"); + msg = MSG_EXTERNAL_1031854065713884918$$MANY_I18N_ATTRIBUTES_TS_629; + } else { + /* @ts-ignore */ + msg = $localize`:630:630`; + } + return msg; +} +function i18n_630() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 631 + */ + const MSG_EXTERNAL_7662386530910408047$$MANY_I18N_ATTRIBUTES_TS_630 = + /* @ts-ignore */ + goog.getMsg("631"); + msg = MSG_EXTERNAL_7662386530910408047$$MANY_I18N_ATTRIBUTES_TS_630; + } else { + /* @ts-ignore */ + msg = $localize`:631:631`; + } + return msg; +} +function i18n_631() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 632 + */ + const MSG_EXTERNAL_6400042755783393394$$MANY_I18N_ATTRIBUTES_TS_631 = + /* @ts-ignore */ + goog.getMsg("632"); + msg = MSG_EXTERNAL_6400042755783393394$$MANY_I18N_ATTRIBUTES_TS_631; + } else { + /* @ts-ignore */ + msg = $localize`:632:632`; + } + return msg; +} +function i18n_632() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 633 + */ + const MSG_EXTERNAL_6332604276033001266$$MANY_I18N_ATTRIBUTES_TS_632 = + /* @ts-ignore */ + goog.getMsg("633"); + msg = MSG_EXTERNAL_6332604276033001266$$MANY_I18N_ATTRIBUTES_TS_632; + } else { + /* @ts-ignore */ + msg = $localize`:633:633`; + } + return msg; +} +function i18n_633() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 634 + */ + const MSG_EXTERNAL_8077696543211280702$$MANY_I18N_ATTRIBUTES_TS_633 = + /* @ts-ignore */ + goog.getMsg("634"); + msg = MSG_EXTERNAL_8077696543211280702$$MANY_I18N_ATTRIBUTES_TS_633; + } else { + /* @ts-ignore */ + msg = $localize`:634:634`; + } + return msg; +} +function i18n_634() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 635 + */ + const MSG_EXTERNAL_5481500973142458663$$MANY_I18N_ATTRIBUTES_TS_634 = + /* @ts-ignore */ + goog.getMsg("635"); + msg = MSG_EXTERNAL_5481500973142458663$$MANY_I18N_ATTRIBUTES_TS_634; + } else { + /* @ts-ignore */ + msg = $localize`:635:635`; + } + return msg; +} +function i18n_635() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 636 + */ + const MSG_EXTERNAL_68805895023637041$$MANY_I18N_ATTRIBUTES_TS_635 = + /* @ts-ignore */ + goog.getMsg("636"); + msg = MSG_EXTERNAL_68805895023637041$$MANY_I18N_ATTRIBUTES_TS_635; + } else { + /* @ts-ignore */ + msg = $localize`:636:636`; + } + return msg; +} +function i18n_636() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 637 + */ + const MSG_EXTERNAL_181058366337683857$$MANY_I18N_ATTRIBUTES_TS_636 = + /* @ts-ignore */ + goog.getMsg("637"); + msg = MSG_EXTERNAL_181058366337683857$$MANY_I18N_ATTRIBUTES_TS_636; + } else { + /* @ts-ignore */ + msg = $localize`:637:637`; + } + return msg; +} +function i18n_637() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 638 + */ + const MSG_EXTERNAL_5796037781781991039$$MANY_I18N_ATTRIBUTES_TS_637 = + /* @ts-ignore */ + goog.getMsg("638"); + msg = MSG_EXTERNAL_5796037781781991039$$MANY_I18N_ATTRIBUTES_TS_637; + } else { + /* @ts-ignore */ + msg = $localize`:638:638`; + } + return msg; +} +function i18n_638() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 639 + */ + const MSG_EXTERNAL_8690596733696151310$$MANY_I18N_ATTRIBUTES_TS_638 = + /* @ts-ignore */ + goog.getMsg("639"); + msg = MSG_EXTERNAL_8690596733696151310$$MANY_I18N_ATTRIBUTES_TS_638; + } else { + /* @ts-ignore */ + msg = $localize`:639:639`; + } + return msg; +} +function i18n_639() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 640 + */ + const MSG_EXTERNAL_8450058067148968516$$MANY_I18N_ATTRIBUTES_TS_639 = + /* @ts-ignore */ + goog.getMsg("640"); + msg = MSG_EXTERNAL_8450058067148968516$$MANY_I18N_ATTRIBUTES_TS_639; + } else { + /* @ts-ignore */ + msg = $localize`:640:640`; + } + return msg; +} +function i18n_640() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 641 + */ + const MSG_EXTERNAL_2483495200320224140$$MANY_I18N_ATTRIBUTES_TS_640 = + /* @ts-ignore */ + goog.getMsg("641"); + msg = MSG_EXTERNAL_2483495200320224140$$MANY_I18N_ATTRIBUTES_TS_640; + } else { + /* @ts-ignore */ + msg = $localize`:641:641`; + } + return msg; +} +function i18n_641() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 642 + */ + const MSG_EXTERNAL_8795696146200580312$$MANY_I18N_ATTRIBUTES_TS_641 = + /* @ts-ignore */ + goog.getMsg("642"); + msg = MSG_EXTERNAL_8795696146200580312$$MANY_I18N_ATTRIBUTES_TS_641; + } else { + /* @ts-ignore */ + msg = $localize`:642:642`; + } + return msg; +} +function i18n_642() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 643 + */ + const MSG_EXTERNAL_5779264732003938503$$MANY_I18N_ATTRIBUTES_TS_642 = + /* @ts-ignore */ + goog.getMsg("643"); + msg = MSG_EXTERNAL_5779264732003938503$$MANY_I18N_ATTRIBUTES_TS_642; + } else { + /* @ts-ignore */ + msg = $localize`:643:643`; + } + return msg; +} +function i18n_643() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 644 + */ + const MSG_EXTERNAL_3839780120878232394$$MANY_I18N_ATTRIBUTES_TS_643 = + /* @ts-ignore */ + goog.getMsg("644"); + msg = MSG_EXTERNAL_3839780120878232394$$MANY_I18N_ATTRIBUTES_TS_643; + } else { + /* @ts-ignore */ + msg = $localize`:644:644`; + } + return msg; +} +function i18n_644() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 645 + */ + const MSG_EXTERNAL_7644769998360792672$$MANY_I18N_ATTRIBUTES_TS_644 = + /* @ts-ignore */ + goog.getMsg("645"); + msg = MSG_EXTERNAL_7644769998360792672$$MANY_I18N_ATTRIBUTES_TS_644; + } else { + /* @ts-ignore */ + msg = $localize`:645:645`; + } + return msg; +} +function i18n_645() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 646 + */ + const MSG_EXTERNAL_7529928260570834496$$MANY_I18N_ATTRIBUTES_TS_645 = + /* @ts-ignore */ + goog.getMsg("646"); + msg = MSG_EXTERNAL_7529928260570834496$$MANY_I18N_ATTRIBUTES_TS_645; + } else { + /* @ts-ignore */ + msg = $localize`:646:646`; + } + return msg; +} +function i18n_646() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 647 + */ + const MSG_EXTERNAL_8782532094893087477$$MANY_I18N_ATTRIBUTES_TS_646 = + /* @ts-ignore */ + goog.getMsg("647"); + msg = MSG_EXTERNAL_8782532094893087477$$MANY_I18N_ATTRIBUTES_TS_646; + } else { + /* @ts-ignore */ + msg = $localize`:647:647`; + } + return msg; +} +function i18n_647() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 648 + */ + const MSG_EXTERNAL_3498480433716116779$$MANY_I18N_ATTRIBUTES_TS_647 = + /* @ts-ignore */ + goog.getMsg("648"); + msg = MSG_EXTERNAL_3498480433716116779$$MANY_I18N_ATTRIBUTES_TS_647; + } else { + /* @ts-ignore */ + msg = $localize`:648:648`; + } + return msg; +} +function i18n_648() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 649 + */ + const MSG_EXTERNAL_2250854831408502928$$MANY_I18N_ATTRIBUTES_TS_648 = + /* @ts-ignore */ + goog.getMsg("649"); + msg = MSG_EXTERNAL_2250854831408502928$$MANY_I18N_ATTRIBUTES_TS_648; + } else { + /* @ts-ignore */ + msg = $localize`:649:649`; + } + return msg; +} +function i18n_649() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 650 + */ + const MSG_EXTERNAL_8468523236312389542$$MANY_I18N_ATTRIBUTES_TS_649 = + /* @ts-ignore */ + goog.getMsg("650"); + msg = MSG_EXTERNAL_8468523236312389542$$MANY_I18N_ATTRIBUTES_TS_649; + } else { + /* @ts-ignore */ + msg = $localize`:650:650`; + } + return msg; +} +function i18n_650() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 651 + */ + const MSG_EXTERNAL_6763526321726820236$$MANY_I18N_ATTRIBUTES_TS_650 = + /* @ts-ignore */ + goog.getMsg("651"); + msg = MSG_EXTERNAL_6763526321726820236$$MANY_I18N_ATTRIBUTES_TS_650; + } else { + /* @ts-ignore */ + msg = $localize`:651:651`; + } + return msg; +} +function i18n_651() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 652 + */ + const MSG_EXTERNAL_1543510284016827890$$MANY_I18N_ATTRIBUTES_TS_651 = + /* @ts-ignore */ + goog.getMsg("652"); + msg = MSG_EXTERNAL_1543510284016827890$$MANY_I18N_ATTRIBUTES_TS_651; + } else { + /* @ts-ignore */ + msg = $localize`:652:652`; + } + return msg; +} +function i18n_652() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 653 + */ + const MSG_EXTERNAL_3943492540547491102$$MANY_I18N_ATTRIBUTES_TS_652 = + /* @ts-ignore */ + goog.getMsg("653"); + msg = MSG_EXTERNAL_3943492540547491102$$MANY_I18N_ATTRIBUTES_TS_652; + } else { + /* @ts-ignore */ + msg = $localize`:653:653`; + } + return msg; +} +function i18n_653() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 654 + */ + const MSG_EXTERNAL_1821678905941686382$$MANY_I18N_ATTRIBUTES_TS_653 = + /* @ts-ignore */ + goog.getMsg("654"); + msg = MSG_EXTERNAL_1821678905941686382$$MANY_I18N_ATTRIBUTES_TS_653; + } else { + /* @ts-ignore */ + msg = $localize`:654:654`; + } + return msg; +} +function i18n_654() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 655 + */ + const MSG_EXTERNAL_4288688957897758334$$MANY_I18N_ATTRIBUTES_TS_654 = + /* @ts-ignore */ + goog.getMsg("655"); + msg = MSG_EXTERNAL_4288688957897758334$$MANY_I18N_ATTRIBUTES_TS_654; + } else { + /* @ts-ignore */ + msg = $localize`:655:655`; + } + return msg; +} +function i18n_655() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 656 + */ + const MSG_EXTERNAL_7742163796071914546$$MANY_I18N_ATTRIBUTES_TS_655 = + /* @ts-ignore */ + goog.getMsg("656"); + msg = MSG_EXTERNAL_7742163796071914546$$MANY_I18N_ATTRIBUTES_TS_655; + } else { + /* @ts-ignore */ + msg = $localize`:656:656`; + } + return msg; +} +function i18n_656() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 657 + */ + const MSG_EXTERNAL_6018421906459524896$$MANY_I18N_ATTRIBUTES_TS_656 = + /* @ts-ignore */ + goog.getMsg("657"); + msg = MSG_EXTERNAL_6018421906459524896$$MANY_I18N_ATTRIBUTES_TS_656; + } else { + /* @ts-ignore */ + msg = $localize`:657:657`; + } + return msg; +} +function i18n_657() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 658 + */ + const MSG_EXTERNAL_4924128521310407541$$MANY_I18N_ATTRIBUTES_TS_657 = + /* @ts-ignore */ + goog.getMsg("658"); + msg = MSG_EXTERNAL_4924128521310407541$$MANY_I18N_ATTRIBUTES_TS_657; + } else { + /* @ts-ignore */ + msg = $localize`:658:658`; + } + return msg; +} +function i18n_658() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 659 + */ + const MSG_EXTERNAL_1485437957049141529$$MANY_I18N_ATTRIBUTES_TS_658 = + /* @ts-ignore */ + goog.getMsg("659"); + msg = MSG_EXTERNAL_1485437957049141529$$MANY_I18N_ATTRIBUTES_TS_658; + } else { + /* @ts-ignore */ + msg = $localize`:659:659`; + } + return msg; +} +function i18n_659() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 660 + */ + const MSG_EXTERNAL_7752444021361355425$$MANY_I18N_ATTRIBUTES_TS_659 = + /* @ts-ignore */ + goog.getMsg("660"); + msg = MSG_EXTERNAL_7752444021361355425$$MANY_I18N_ATTRIBUTES_TS_659; + } else { + /* @ts-ignore */ + msg = $localize`:660:660`; + } + return msg; +} +function i18n_660() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 661 + */ + const MSG_EXTERNAL_5915857773873700899$$MANY_I18N_ATTRIBUTES_TS_660 = + /* @ts-ignore */ + goog.getMsg("661"); + msg = MSG_EXTERNAL_5915857773873700899$$MANY_I18N_ATTRIBUTES_TS_660; + } else { + /* @ts-ignore */ + msg = $localize`:661:661`; + } + return msg; +} +function i18n_661() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 662 + */ + const MSG_EXTERNAL_5654948568624516120$$MANY_I18N_ATTRIBUTES_TS_661 = + /* @ts-ignore */ + goog.getMsg("662"); + msg = MSG_EXTERNAL_5654948568624516120$$MANY_I18N_ATTRIBUTES_TS_661; + } else { + /* @ts-ignore */ + msg = $localize`:662:662`; + } + return msg; +} +function i18n_662() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 663 + */ + const MSG_EXTERNAL_8181158467258474028$$MANY_I18N_ATTRIBUTES_TS_662 = + /* @ts-ignore */ + goog.getMsg("663"); + msg = MSG_EXTERNAL_8181158467258474028$$MANY_I18N_ATTRIBUTES_TS_662; + } else { + /* @ts-ignore */ + msg = $localize`:663:663`; + } + return msg; +} +function i18n_663() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 664 + */ + const MSG_EXTERNAL_8612646531777918899$$MANY_I18N_ATTRIBUTES_TS_663 = + /* @ts-ignore */ + goog.getMsg("664"); + msg = MSG_EXTERNAL_8612646531777918899$$MANY_I18N_ATTRIBUTES_TS_663; + } else { + /* @ts-ignore */ + msg = $localize`:664:664`; + } + return msg; +} +function i18n_664() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 665 + */ + const MSG_EXTERNAL_4083312503802804640$$MANY_I18N_ATTRIBUTES_TS_664 = + /* @ts-ignore */ + goog.getMsg("665"); + msg = MSG_EXTERNAL_4083312503802804640$$MANY_I18N_ATTRIBUTES_TS_664; + } else { + /* @ts-ignore */ + msg = $localize`:665:665`; + } + return msg; +} +function i18n_665() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 666 + */ + const MSG_EXTERNAL_8533930265514194568$$MANY_I18N_ATTRIBUTES_TS_665 = + /* @ts-ignore */ + goog.getMsg("666"); + msg = MSG_EXTERNAL_8533930265514194568$$MANY_I18N_ATTRIBUTES_TS_665; + } else { + /* @ts-ignore */ + msg = $localize`:666:666`; + } + return msg; +} +function i18n_666() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 667 + */ + const MSG_EXTERNAL_2810704386001307822$$MANY_I18N_ATTRIBUTES_TS_666 = + /* @ts-ignore */ + goog.getMsg("667"); + msg = MSG_EXTERNAL_2810704386001307822$$MANY_I18N_ATTRIBUTES_TS_666; + } else { + /* @ts-ignore */ + msg = $localize`:667:667`; + } + return msg; +} +function i18n_667() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 668 + */ + const MSG_EXTERNAL_4169577441056627402$$MANY_I18N_ATTRIBUTES_TS_667 = + /* @ts-ignore */ + goog.getMsg("668"); + msg = MSG_EXTERNAL_4169577441056627402$$MANY_I18N_ATTRIBUTES_TS_667; + } else { + /* @ts-ignore */ + msg = $localize`:668:668`; + } + return msg; +} +function i18n_668() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 669 + */ + const MSG_EXTERNAL_8054181840914594559$$MANY_I18N_ATTRIBUTES_TS_668 = + /* @ts-ignore */ + goog.getMsg("669"); + msg = MSG_EXTERNAL_8054181840914594559$$MANY_I18N_ATTRIBUTES_TS_668; + } else { + /* @ts-ignore */ + msg = $localize`:669:669`; + } + return msg; +} +function i18n_669() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 670 + */ + const MSG_EXTERNAL_5013042004666104740$$MANY_I18N_ATTRIBUTES_TS_669 = + /* @ts-ignore */ + goog.getMsg("670"); + msg = MSG_EXTERNAL_5013042004666104740$$MANY_I18N_ATTRIBUTES_TS_669; + } else { + /* @ts-ignore */ + msg = $localize`:670:670`; + } + return msg; +} +function i18n_670() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 671 + */ + const MSG_EXTERNAL_61316860313367070$$MANY_I18N_ATTRIBUTES_TS_670 = + /* @ts-ignore */ + goog.getMsg("671"); + msg = MSG_EXTERNAL_61316860313367070$$MANY_I18N_ATTRIBUTES_TS_670; + } else { + /* @ts-ignore */ + msg = $localize`:671:671`; + } + return msg; +} +function i18n_671() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 672 + */ + const MSG_EXTERNAL_8519306278390481387$$MANY_I18N_ATTRIBUTES_TS_671 = + /* @ts-ignore */ + goog.getMsg("672"); + msg = MSG_EXTERNAL_8519306278390481387$$MANY_I18N_ATTRIBUTES_TS_671; + } else { + /* @ts-ignore */ + msg = $localize`:672:672`; + } + return msg; +} +function i18n_672() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 673 + */ + const MSG_EXTERNAL_5409952686243007563$$MANY_I18N_ATTRIBUTES_TS_672 = + /* @ts-ignore */ + goog.getMsg("673"); + msg = MSG_EXTERNAL_5409952686243007563$$MANY_I18N_ATTRIBUTES_TS_672; + } else { + /* @ts-ignore */ + msg = $localize`:673:673`; + } + return msg; +} +function i18n_673() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 674 + */ + const MSG_EXTERNAL_1648071507833607765$$MANY_I18N_ATTRIBUTES_TS_673 = + /* @ts-ignore */ + goog.getMsg("674"); + msg = MSG_EXTERNAL_1648071507833607765$$MANY_I18N_ATTRIBUTES_TS_673; + } else { + /* @ts-ignore */ + msg = $localize`:674:674`; + } + return msg; +} +function i18n_674() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 675 + */ + const MSG_EXTERNAL_8441488852311348253$$MANY_I18N_ATTRIBUTES_TS_674 = + /* @ts-ignore */ + goog.getMsg("675"); + msg = MSG_EXTERNAL_8441488852311348253$$MANY_I18N_ATTRIBUTES_TS_674; + } else { + /* @ts-ignore */ + msg = $localize`:675:675`; + } + return msg; +} +function i18n_675() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 676 + */ + const MSG_EXTERNAL_2935593410217541082$$MANY_I18N_ATTRIBUTES_TS_675 = + /* @ts-ignore */ + goog.getMsg("676"); + msg = MSG_EXTERNAL_2935593410217541082$$MANY_I18N_ATTRIBUTES_TS_675; + } else { + /* @ts-ignore */ + msg = $localize`:676:676`; + } + return msg; +} +function i18n_676() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 677 + */ + const MSG_EXTERNAL_941428253729056387$$MANY_I18N_ATTRIBUTES_TS_676 = + /* @ts-ignore */ + goog.getMsg("677"); + msg = MSG_EXTERNAL_941428253729056387$$MANY_I18N_ATTRIBUTES_TS_676; + } else { + /* @ts-ignore */ + msg = $localize`:677:677`; + } + return msg; +} +function i18n_677() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 678 + */ + const MSG_EXTERNAL_1121755268578688340$$MANY_I18N_ATTRIBUTES_TS_677 = + /* @ts-ignore */ + goog.getMsg("678"); + msg = MSG_EXTERNAL_1121755268578688340$$MANY_I18N_ATTRIBUTES_TS_677; + } else { + /* @ts-ignore */ + msg = $localize`:678:678`; + } + return msg; +} +function i18n_678() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 679 + */ + const MSG_EXTERNAL_9210296859470888090$$MANY_I18N_ATTRIBUTES_TS_678 = + /* @ts-ignore */ + goog.getMsg("679"); + msg = MSG_EXTERNAL_9210296859470888090$$MANY_I18N_ATTRIBUTES_TS_678; + } else { + /* @ts-ignore */ + msg = $localize`:679:679`; + } + return msg; +} +function i18n_679() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 680 + */ + const MSG_EXTERNAL_4075650586789706134$$MANY_I18N_ATTRIBUTES_TS_679 = + /* @ts-ignore */ + goog.getMsg("680"); + msg = MSG_EXTERNAL_4075650586789706134$$MANY_I18N_ATTRIBUTES_TS_679; + } else { + /* @ts-ignore */ + msg = $localize`:680:680`; + } + return msg; +} +function i18n_680() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 681 + */ + const MSG_EXTERNAL_8223081118926581309$$MANY_I18N_ATTRIBUTES_TS_680 = + /* @ts-ignore */ + goog.getMsg("681"); + msg = MSG_EXTERNAL_8223081118926581309$$MANY_I18N_ATTRIBUTES_TS_680; + } else { + /* @ts-ignore */ + msg = $localize`:681:681`; + } + return msg; +} +function i18n_681() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 682 + */ + const MSG_EXTERNAL_567124123097300804$$MANY_I18N_ATTRIBUTES_TS_681 = + /* @ts-ignore */ + goog.getMsg("682"); + msg = MSG_EXTERNAL_567124123097300804$$MANY_I18N_ATTRIBUTES_TS_681; + } else { + /* @ts-ignore */ + msg = $localize`:682:682`; + } + return msg; +} +function i18n_682() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 683 + */ + const MSG_EXTERNAL_3065659317979098943$$MANY_I18N_ATTRIBUTES_TS_682 = + /* @ts-ignore */ + goog.getMsg("683"); + msg = MSG_EXTERNAL_3065659317979098943$$MANY_I18N_ATTRIBUTES_TS_682; + } else { + /* @ts-ignore */ + msg = $localize`:683:683`; + } + return msg; +} +function i18n_683() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 684 + */ + const MSG_EXTERNAL_2778229072263063368$$MANY_I18N_ATTRIBUTES_TS_683 = + /* @ts-ignore */ + goog.getMsg("684"); + msg = MSG_EXTERNAL_2778229072263063368$$MANY_I18N_ATTRIBUTES_TS_683; + } else { + /* @ts-ignore */ + msg = $localize`:684:684`; + } + return msg; +} +function i18n_684() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 685 + */ + const MSG_EXTERNAL_3668581224623389273$$MANY_I18N_ATTRIBUTES_TS_684 = + /* @ts-ignore */ + goog.getMsg("685"); + msg = MSG_EXTERNAL_3668581224623389273$$MANY_I18N_ATTRIBUTES_TS_684; + } else { + /* @ts-ignore */ + msg = $localize`:685:685`; + } + return msg; +} +function i18n_685() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 686 + */ + const MSG_EXTERNAL_17469824768251674$$MANY_I18N_ATTRIBUTES_TS_685 = + /* @ts-ignore */ + goog.getMsg("686"); + msg = MSG_EXTERNAL_17469824768251674$$MANY_I18N_ATTRIBUTES_TS_685; + } else { + /* @ts-ignore */ + msg = $localize`:686:686`; + } + return msg; +} +function i18n_686() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 687 + */ + const MSG_EXTERNAL_2021057401590594042$$MANY_I18N_ATTRIBUTES_TS_686 = + /* @ts-ignore */ + goog.getMsg("687"); + msg = MSG_EXTERNAL_2021057401590594042$$MANY_I18N_ATTRIBUTES_TS_686; + } else { + /* @ts-ignore */ + msg = $localize`:687:687`; + } + return msg; +} +function i18n_687() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 688 + */ + const MSG_EXTERNAL_1040379532845027589$$MANY_I18N_ATTRIBUTES_TS_687 = + /* @ts-ignore */ + goog.getMsg("688"); + msg = MSG_EXTERNAL_1040379532845027589$$MANY_I18N_ATTRIBUTES_TS_687; + } else { + /* @ts-ignore */ + msg = $localize`:688:688`; + } + return msg; +} +function i18n_688() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 689 + */ + const MSG_EXTERNAL_1614433729807273255$$MANY_I18N_ATTRIBUTES_TS_688 = + /* @ts-ignore */ + goog.getMsg("689"); + msg = MSG_EXTERNAL_1614433729807273255$$MANY_I18N_ATTRIBUTES_TS_688; + } else { + /* @ts-ignore */ + msg = $localize`:689:689`; + } + return msg; +} +function i18n_689() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 690 + */ + const MSG_EXTERNAL_2501153824270813728$$MANY_I18N_ATTRIBUTES_TS_689 = + /* @ts-ignore */ + goog.getMsg("690"); + msg = MSG_EXTERNAL_2501153824270813728$$MANY_I18N_ATTRIBUTES_TS_689; + } else { + /* @ts-ignore */ + msg = $localize`:690:690`; + } + return msg; +} +function i18n_690() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 691 + */ + const MSG_EXTERNAL_7758365448456086555$$MANY_I18N_ATTRIBUTES_TS_690 = + /* @ts-ignore */ + goog.getMsg("691"); + msg = MSG_EXTERNAL_7758365448456086555$$MANY_I18N_ATTRIBUTES_TS_690; + } else { + /* @ts-ignore */ + msg = $localize`:691:691`; + } + return msg; +} +function i18n_691() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 692 + */ + const MSG_EXTERNAL_2751913178448602821$$MANY_I18N_ATTRIBUTES_TS_691 = + /* @ts-ignore */ + goog.getMsg("692"); + msg = MSG_EXTERNAL_2751913178448602821$$MANY_I18N_ATTRIBUTES_TS_691; + } else { + /* @ts-ignore */ + msg = $localize`:692:692`; + } + return msg; +} +function i18n_692() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 693 + */ + const MSG_EXTERNAL_5756625862033098242$$MANY_I18N_ATTRIBUTES_TS_692 = + /* @ts-ignore */ + goog.getMsg("693"); + msg = MSG_EXTERNAL_5756625862033098242$$MANY_I18N_ATTRIBUTES_TS_692; + } else { + /* @ts-ignore */ + msg = $localize`:693:693`; + } + return msg; +} +function i18n_693() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 694 + */ + const MSG_EXTERNAL_8645666064162852193$$MANY_I18N_ATTRIBUTES_TS_693 = + /* @ts-ignore */ + goog.getMsg("694"); + msg = MSG_EXTERNAL_8645666064162852193$$MANY_I18N_ATTRIBUTES_TS_693; + } else { + /* @ts-ignore */ + msg = $localize`:694:694`; + } + return msg; +} +function i18n_694() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 695 + */ + const MSG_EXTERNAL_3337079046122075821$$MANY_I18N_ATTRIBUTES_TS_694 = + /* @ts-ignore */ + goog.getMsg("695"); + msg = MSG_EXTERNAL_3337079046122075821$$MANY_I18N_ATTRIBUTES_TS_694; + } else { + /* @ts-ignore */ + msg = $localize`:695:695`; + } + return msg; +} +function i18n_695() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 696 + */ + const MSG_EXTERNAL_3862686946722382548$$MANY_I18N_ATTRIBUTES_TS_695 = + /* @ts-ignore */ + goog.getMsg("696"); + msg = MSG_EXTERNAL_3862686946722382548$$MANY_I18N_ATTRIBUTES_TS_695; + } else { + /* @ts-ignore */ + msg = $localize`:696:696`; + } + return msg; +} +function i18n_696() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 697 + */ + const MSG_EXTERNAL_6506173025720606822$$MANY_I18N_ATTRIBUTES_TS_696 = + /* @ts-ignore */ + goog.getMsg("697"); + msg = MSG_EXTERNAL_6506173025720606822$$MANY_I18N_ATTRIBUTES_TS_696; + } else { + /* @ts-ignore */ + msg = $localize`:697:697`; + } + return msg; +} +function i18n_697() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 698 + */ + const MSG_EXTERNAL_6275557106142806811$$MANY_I18N_ATTRIBUTES_TS_697 = + /* @ts-ignore */ + goog.getMsg("698"); + msg = MSG_EXTERNAL_6275557106142806811$$MANY_I18N_ATTRIBUTES_TS_697; + } else { + /* @ts-ignore */ + msg = $localize`:698:698`; + } + return msg; +} +function i18n_698() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 699 + */ + const MSG_EXTERNAL_7622531084037683319$$MANY_I18N_ATTRIBUTES_TS_698 = + /* @ts-ignore */ + goog.getMsg("699"); + msg = MSG_EXTERNAL_7622531084037683319$$MANY_I18N_ATTRIBUTES_TS_698; + } else { + /* @ts-ignore */ + msg = $localize`:699:699`; + } + return msg; +} +function i18n_699() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 700 + */ + const MSG_EXTERNAL_4332372897673253973$$MANY_I18N_ATTRIBUTES_TS_699 = + /* @ts-ignore */ + goog.getMsg("700"); + msg = MSG_EXTERNAL_4332372897673253973$$MANY_I18N_ATTRIBUTES_TS_699; + } else { + /* @ts-ignore */ + msg = $localize`:700:700`; + } + return msg; +} +function i18n_700() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 701 + */ + const MSG_EXTERNAL_1860004902610510936$$MANY_I18N_ATTRIBUTES_TS_700 = + /* @ts-ignore */ + goog.getMsg("701"); + msg = MSG_EXTERNAL_1860004902610510936$$MANY_I18N_ATTRIBUTES_TS_700; + } else { + /* @ts-ignore */ + msg = $localize`:701:701`; + } + return msg; +} +function i18n_701() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 702 + */ + const MSG_EXTERNAL_3974742626766578911$$MANY_I18N_ATTRIBUTES_TS_701 = + /* @ts-ignore */ + goog.getMsg("702"); + msg = MSG_EXTERNAL_3974742626766578911$$MANY_I18N_ATTRIBUTES_TS_701; + } else { + /* @ts-ignore */ + msg = $localize`:702:702`; + } + return msg; +} +function i18n_702() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 703 + */ + const MSG_EXTERNAL_2189636116637677712$$MANY_I18N_ATTRIBUTES_TS_702 = + /* @ts-ignore */ + goog.getMsg("703"); + msg = MSG_EXTERNAL_2189636116637677712$$MANY_I18N_ATTRIBUTES_TS_702; + } else { + /* @ts-ignore */ + msg = $localize`:703:703`; + } + return msg; +} +function i18n_703() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 704 + */ + const MSG_EXTERNAL_2612811517762853271$$MANY_I18N_ATTRIBUTES_TS_703 = + /* @ts-ignore */ + goog.getMsg("704"); + msg = MSG_EXTERNAL_2612811517762853271$$MANY_I18N_ATTRIBUTES_TS_703; + } else { + /* @ts-ignore */ + msg = $localize`:704:704`; + } + return msg; +} +function i18n_704() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 705 + */ + const MSG_EXTERNAL_6664611260628287284$$MANY_I18N_ATTRIBUTES_TS_704 = + /* @ts-ignore */ + goog.getMsg("705"); + msg = MSG_EXTERNAL_6664611260628287284$$MANY_I18N_ATTRIBUTES_TS_704; + } else { + /* @ts-ignore */ + msg = $localize`:705:705`; + } + return msg; +} +function i18n_705() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 706 + */ + const MSG_EXTERNAL_6587540031613476071$$MANY_I18N_ATTRIBUTES_TS_705 = + /* @ts-ignore */ + goog.getMsg("706"); + msg = MSG_EXTERNAL_6587540031613476071$$MANY_I18N_ATTRIBUTES_TS_705; + } else { + /* @ts-ignore */ + msg = $localize`:706:706`; + } + return msg; +} +function i18n_706() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 707 + */ + const MSG_EXTERNAL_1601990680117149075$$MANY_I18N_ATTRIBUTES_TS_706 = + /* @ts-ignore */ + goog.getMsg("707"); + msg = MSG_EXTERNAL_1601990680117149075$$MANY_I18N_ATTRIBUTES_TS_706; + } else { + /* @ts-ignore */ + msg = $localize`:707:707`; + } + return msg; +} +function i18n_707() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 708 + */ + const MSG_EXTERNAL_5795503665947221014$$MANY_I18N_ATTRIBUTES_TS_707 = + /* @ts-ignore */ + goog.getMsg("708"); + msg = MSG_EXTERNAL_5795503665947221014$$MANY_I18N_ATTRIBUTES_TS_707; + } else { + /* @ts-ignore */ + msg = $localize`:708:708`; + } + return msg; +} +function i18n_708() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 709 + */ + const MSG_EXTERNAL_4987881968531678098$$MANY_I18N_ATTRIBUTES_TS_708 = + /* @ts-ignore */ + goog.getMsg("709"); + msg = MSG_EXTERNAL_4987881968531678098$$MANY_I18N_ATTRIBUTES_TS_708; + } else { + /* @ts-ignore */ + msg = $localize`:709:709`; + } + return msg; +} +function i18n_709() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 710 + */ + const MSG_EXTERNAL_591225538626516963$$MANY_I18N_ATTRIBUTES_TS_709 = + /* @ts-ignore */ + goog.getMsg("710"); + msg = MSG_EXTERNAL_591225538626516963$$MANY_I18N_ATTRIBUTES_TS_709; + } else { + /* @ts-ignore */ + msg = $localize`:710:710`; + } + return msg; +} +function i18n_710() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 711 + */ + const MSG_EXTERNAL_6751468249039259217$$MANY_I18N_ATTRIBUTES_TS_710 = + /* @ts-ignore */ + goog.getMsg("711"); + msg = MSG_EXTERNAL_6751468249039259217$$MANY_I18N_ATTRIBUTES_TS_710; + } else { + /* @ts-ignore */ + msg = $localize`:711:711`; + } + return msg; +} +function i18n_711() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 712 + */ + const MSG_EXTERNAL_9158611238924753419$$MANY_I18N_ATTRIBUTES_TS_711 = + /* @ts-ignore */ + goog.getMsg("712"); + msg = MSG_EXTERNAL_9158611238924753419$$MANY_I18N_ATTRIBUTES_TS_711; + } else { + /* @ts-ignore */ + msg = $localize`:712:712`; + } + return msg; +} +function i18n_712() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 713 + */ + const MSG_EXTERNAL_2880517176312445736$$MANY_I18N_ATTRIBUTES_TS_712 = + /* @ts-ignore */ + goog.getMsg("713"); + msg = MSG_EXTERNAL_2880517176312445736$$MANY_I18N_ATTRIBUTES_TS_712; + } else { + /* @ts-ignore */ + msg = $localize`:713:713`; + } + return msg; +} +function i18n_713() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 714 + */ + const MSG_EXTERNAL_4302609357339006321$$MANY_I18N_ATTRIBUTES_TS_713 = + /* @ts-ignore */ + goog.getMsg("714"); + msg = MSG_EXTERNAL_4302609357339006321$$MANY_I18N_ATTRIBUTES_TS_713; + } else { + /* @ts-ignore */ + msg = $localize`:714:714`; + } + return msg; +} +function i18n_714() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 715 + */ + const MSG_EXTERNAL_8453878916079625279$$MANY_I18N_ATTRIBUTES_TS_714 = + /* @ts-ignore */ + goog.getMsg("715"); + msg = MSG_EXTERNAL_8453878916079625279$$MANY_I18N_ATTRIBUTES_TS_714; + } else { + /* @ts-ignore */ + msg = $localize`:715:715`; + } + return msg; +} +function i18n_715() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 716 + */ + const MSG_EXTERNAL_7491601065298594636$$MANY_I18N_ATTRIBUTES_TS_715 = + /* @ts-ignore */ + goog.getMsg("716"); + msg = MSG_EXTERNAL_7491601065298594636$$MANY_I18N_ATTRIBUTES_TS_715; + } else { + /* @ts-ignore */ + msg = $localize`:716:716`; + } + return msg; +} +function i18n_716() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 717 + */ + const MSG_EXTERNAL_5471879486856132841$$MANY_I18N_ATTRIBUTES_TS_716 = + /* @ts-ignore */ + goog.getMsg("717"); + msg = MSG_EXTERNAL_5471879486856132841$$MANY_I18N_ATTRIBUTES_TS_716; + } else { + /* @ts-ignore */ + msg = $localize`:717:717`; + } + return msg; +} +function i18n_717() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 718 + */ + const MSG_EXTERNAL_4441960077735964026$$MANY_I18N_ATTRIBUTES_TS_717 = + /* @ts-ignore */ + goog.getMsg("718"); + msg = MSG_EXTERNAL_4441960077735964026$$MANY_I18N_ATTRIBUTES_TS_717; + } else { + /* @ts-ignore */ + msg = $localize`:718:718`; + } + return msg; +} +function i18n_718() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 719 + */ + const MSG_EXTERNAL_7247020318691612281$$MANY_I18N_ATTRIBUTES_TS_718 = + /* @ts-ignore */ + goog.getMsg("719"); + msg = MSG_EXTERNAL_7247020318691612281$$MANY_I18N_ATTRIBUTES_TS_718; + } else { + /* @ts-ignore */ + msg = $localize`:719:719`; + } + return msg; +} +function i18n_719() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 720 + */ + const MSG_EXTERNAL_8093658149569543488$$MANY_I18N_ATTRIBUTES_TS_719 = + /* @ts-ignore */ + goog.getMsg("720"); + msg = MSG_EXTERNAL_8093658149569543488$$MANY_I18N_ATTRIBUTES_TS_719; + } else { + /* @ts-ignore */ + msg = $localize`:720:720`; + } + return msg; +} +function i18n_720() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 721 + */ + const MSG_EXTERNAL_9012132713944719727$$MANY_I18N_ATTRIBUTES_TS_720 = + /* @ts-ignore */ + goog.getMsg("721"); + msg = MSG_EXTERNAL_9012132713944719727$$MANY_I18N_ATTRIBUTES_TS_720; + } else { + /* @ts-ignore */ + msg = $localize`:721:721`; + } + return msg; +} +function i18n_721() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 722 + */ + const MSG_EXTERNAL_884483813704530410$$MANY_I18N_ATTRIBUTES_TS_721 = + /* @ts-ignore */ + goog.getMsg("722"); + msg = MSG_EXTERNAL_884483813704530410$$MANY_I18N_ATTRIBUTES_TS_721; + } else { + /* @ts-ignore */ + msg = $localize`:722:722`; + } + return msg; +} +function i18n_722() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 723 + */ + const MSG_EXTERNAL_8880252123308139329$$MANY_I18N_ATTRIBUTES_TS_722 = + /* @ts-ignore */ + goog.getMsg("723"); + msg = MSG_EXTERNAL_8880252123308139329$$MANY_I18N_ATTRIBUTES_TS_722; + } else { + /* @ts-ignore */ + msg = $localize`:723:723`; + } + return msg; +} +function i18n_723() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 724 + */ + const MSG_EXTERNAL_463342707504198028$$MANY_I18N_ATTRIBUTES_TS_723 = + /* @ts-ignore */ + goog.getMsg("724"); + msg = MSG_EXTERNAL_463342707504198028$$MANY_I18N_ATTRIBUTES_TS_723; + } else { + /* @ts-ignore */ + msg = $localize`:724:724`; + } + return msg; +} +function i18n_724() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 725 + */ + const MSG_EXTERNAL_2728648484323800440$$MANY_I18N_ATTRIBUTES_TS_724 = + /* @ts-ignore */ + goog.getMsg("725"); + msg = MSG_EXTERNAL_2728648484323800440$$MANY_I18N_ATTRIBUTES_TS_724; + } else { + /* @ts-ignore */ + msg = $localize`:725:725`; + } + return msg; +} +function i18n_725() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 726 + */ + const MSG_EXTERNAL_373142560191127839$$MANY_I18N_ATTRIBUTES_TS_725 = + /* @ts-ignore */ + goog.getMsg("726"); + msg = MSG_EXTERNAL_373142560191127839$$MANY_I18N_ATTRIBUTES_TS_725; + } else { + /* @ts-ignore */ + msg = $localize`:726:726`; + } + return msg; +} +function i18n_726() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 727 + */ + const MSG_EXTERNAL_2358573508109969654$$MANY_I18N_ATTRIBUTES_TS_726 = + /* @ts-ignore */ + goog.getMsg("727"); + msg = MSG_EXTERNAL_2358573508109969654$$MANY_I18N_ATTRIBUTES_TS_726; + } else { + /* @ts-ignore */ + msg = $localize`:727:727`; + } + return msg; +} +function i18n_727() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 728 + */ + const MSG_EXTERNAL_3992916623510847614$$MANY_I18N_ATTRIBUTES_TS_727 = + /* @ts-ignore */ + goog.getMsg("728"); + msg = MSG_EXTERNAL_3992916623510847614$$MANY_I18N_ATTRIBUTES_TS_727; + } else { + /* @ts-ignore */ + msg = $localize`:728:728`; + } + return msg; +} +function i18n_728() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 729 + */ + const MSG_EXTERNAL_2137641368333487134$$MANY_I18N_ATTRIBUTES_TS_728 = + /* @ts-ignore */ + goog.getMsg("729"); + msg = MSG_EXTERNAL_2137641368333487134$$MANY_I18N_ATTRIBUTES_TS_728; + } else { + /* @ts-ignore */ + msg = $localize`:729:729`; + } + return msg; +} +function i18n_729() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 730 + */ + const MSG_EXTERNAL_2411169627518470258$$MANY_I18N_ATTRIBUTES_TS_729 = + /* @ts-ignore */ + goog.getMsg("730"); + msg = MSG_EXTERNAL_2411169627518470258$$MANY_I18N_ATTRIBUTES_TS_729; + } else { + /* @ts-ignore */ + msg = $localize`:730:730`; + } + return msg; +} +function i18n_730() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 731 + */ + const MSG_EXTERNAL_6980666020883504838$$MANY_I18N_ATTRIBUTES_TS_730 = + /* @ts-ignore */ + goog.getMsg("731"); + msg = MSG_EXTERNAL_6980666020883504838$$MANY_I18N_ATTRIBUTES_TS_730; + } else { + /* @ts-ignore */ + msg = $localize`:731:731`; + } + return msg; +} +function i18n_731() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 732 + */ + const MSG_EXTERNAL_3729576884468944720$$MANY_I18N_ATTRIBUTES_TS_731 = + /* @ts-ignore */ + goog.getMsg("732"); + msg = MSG_EXTERNAL_3729576884468944720$$MANY_I18N_ATTRIBUTES_TS_731; + } else { + /* @ts-ignore */ + msg = $localize`:732:732`; + } + return msg; +} +function i18n_732() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 733 + */ + const MSG_EXTERNAL_8438840527578016412$$MANY_I18N_ATTRIBUTES_TS_732 = + /* @ts-ignore */ + goog.getMsg("733"); + msg = MSG_EXTERNAL_8438840527578016412$$MANY_I18N_ATTRIBUTES_TS_732; + } else { + /* @ts-ignore */ + msg = $localize`:733:733`; + } + return msg; +} +function i18n_733() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 734 + */ + const MSG_EXTERNAL_7481860888113493105$$MANY_I18N_ATTRIBUTES_TS_733 = + /* @ts-ignore */ + goog.getMsg("734"); + msg = MSG_EXTERNAL_7481860888113493105$$MANY_I18N_ATTRIBUTES_TS_733; + } else { + /* @ts-ignore */ + msg = $localize`:734:734`; + } + return msg; +} +function i18n_734() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 735 + */ + const MSG_EXTERNAL_5622400606034928823$$MANY_I18N_ATTRIBUTES_TS_734 = + /* @ts-ignore */ + goog.getMsg("735"); + msg = MSG_EXTERNAL_5622400606034928823$$MANY_I18N_ATTRIBUTES_TS_734; + } else { + /* @ts-ignore */ + msg = $localize`:735:735`; + } + return msg; +} +function i18n_735() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 736 + */ + const MSG_EXTERNAL_6729208316950098529$$MANY_I18N_ATTRIBUTES_TS_735 = + /* @ts-ignore */ + goog.getMsg("736"); + msg = MSG_EXTERNAL_6729208316950098529$$MANY_I18N_ATTRIBUTES_TS_735; + } else { + /* @ts-ignore */ + msg = $localize`:736:736`; + } + return msg; +} +function i18n_736() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 737 + */ + const MSG_EXTERNAL_2490092137951529331$$MANY_I18N_ATTRIBUTES_TS_736 = + /* @ts-ignore */ + goog.getMsg("737"); + msg = MSG_EXTERNAL_2490092137951529331$$MANY_I18N_ATTRIBUTES_TS_736; + } else { + /* @ts-ignore */ + msg = $localize`:737:737`; + } + return msg; +} +function i18n_737() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 738 + */ + const MSG_EXTERNAL_919534262868803094$$MANY_I18N_ATTRIBUTES_TS_737 = + /* @ts-ignore */ + goog.getMsg("738"); + msg = MSG_EXTERNAL_919534262868803094$$MANY_I18N_ATTRIBUTES_TS_737; + } else { + /* @ts-ignore */ + msg = $localize`:738:738`; + } + return msg; +} +function i18n_738() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 739 + */ + const MSG_EXTERNAL_9051083996840524823$$MANY_I18N_ATTRIBUTES_TS_738 = + /* @ts-ignore */ + goog.getMsg("739"); + msg = MSG_EXTERNAL_9051083996840524823$$MANY_I18N_ATTRIBUTES_TS_738; + } else { + /* @ts-ignore */ + msg = $localize`:739:739`; + } + return msg; +} +function i18n_739() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 740 + */ + const MSG_EXTERNAL_5949782150517894851$$MANY_I18N_ATTRIBUTES_TS_739 = + /* @ts-ignore */ + goog.getMsg("740"); + msg = MSG_EXTERNAL_5949782150517894851$$MANY_I18N_ATTRIBUTES_TS_739; + } else { + /* @ts-ignore */ + msg = $localize`:740:740`; + } + return msg; +} +function i18n_740() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 741 + */ + const MSG_EXTERNAL_8467196449485763416$$MANY_I18N_ATTRIBUTES_TS_740 = + /* @ts-ignore */ + goog.getMsg("741"); + msg = MSG_EXTERNAL_8467196449485763416$$MANY_I18N_ATTRIBUTES_TS_740; + } else { + /* @ts-ignore */ + msg = $localize`:741:741`; + } + return msg; +} +function i18n_741() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 742 + */ + const MSG_EXTERNAL_1621187843280750623$$MANY_I18N_ATTRIBUTES_TS_741 = + /* @ts-ignore */ + goog.getMsg("742"); + msg = MSG_EXTERNAL_1621187843280750623$$MANY_I18N_ATTRIBUTES_TS_741; + } else { + /* @ts-ignore */ + msg = $localize`:742:742`; + } + return msg; +} +function i18n_742() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 743 + */ + const MSG_EXTERNAL_8077573035785579449$$MANY_I18N_ATTRIBUTES_TS_742 = + /* @ts-ignore */ + goog.getMsg("743"); + msg = MSG_EXTERNAL_8077573035785579449$$MANY_I18N_ATTRIBUTES_TS_742; + } else { + /* @ts-ignore */ + msg = $localize`:743:743`; + } + return msg; +} +function i18n_743() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 744 + */ + const MSG_EXTERNAL_3666575155015064350$$MANY_I18N_ATTRIBUTES_TS_743 = + /* @ts-ignore */ + goog.getMsg("744"); + msg = MSG_EXTERNAL_3666575155015064350$$MANY_I18N_ATTRIBUTES_TS_743; + } else { + /* @ts-ignore */ + msg = $localize`:744:744`; + } + return msg; +} +function i18n_744() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 745 + */ + const MSG_EXTERNAL_4067334784313812341$$MANY_I18N_ATTRIBUTES_TS_744 = + /* @ts-ignore */ + goog.getMsg("745"); + msg = MSG_EXTERNAL_4067334784313812341$$MANY_I18N_ATTRIBUTES_TS_744; + } else { + /* @ts-ignore */ + msg = $localize`:745:745`; + } + return msg; +} +function i18n_745() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 746 + */ + const MSG_EXTERNAL_8590158622504269310$$MANY_I18N_ATTRIBUTES_TS_745 = + /* @ts-ignore */ + goog.getMsg("746"); + msg = MSG_EXTERNAL_8590158622504269310$$MANY_I18N_ATTRIBUTES_TS_745; + } else { + /* @ts-ignore */ + msg = $localize`:746:746`; + } + return msg; +} +function i18n_746() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 747 + */ + const MSG_EXTERNAL_1421970443151533364$$MANY_I18N_ATTRIBUTES_TS_746 = + /* @ts-ignore */ + goog.getMsg("747"); + msg = MSG_EXTERNAL_1421970443151533364$$MANY_I18N_ATTRIBUTES_TS_746; + } else { + /* @ts-ignore */ + msg = $localize`:747:747`; + } + return msg; +} +function i18n_747() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 748 + */ + const MSG_EXTERNAL_3938658227151454940$$MANY_I18N_ATTRIBUTES_TS_747 = + /* @ts-ignore */ + goog.getMsg("748"); + msg = MSG_EXTERNAL_3938658227151454940$$MANY_I18N_ATTRIBUTES_TS_747; + } else { + /* @ts-ignore */ + msg = $localize`:748:748`; + } + return msg; +} +function i18n_748() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 749 + */ + const MSG_EXTERNAL_7107298487227839810$$MANY_I18N_ATTRIBUTES_TS_748 = + /* @ts-ignore */ + goog.getMsg("749"); + msg = MSG_EXTERNAL_7107298487227839810$$MANY_I18N_ATTRIBUTES_TS_748; + } else { + /* @ts-ignore */ + msg = $localize`:749:749`; + } + return msg; +} +function i18n_749() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 750 + */ + const MSG_EXTERNAL_1120299606461952478$$MANY_I18N_ATTRIBUTES_TS_749 = + /* @ts-ignore */ + goog.getMsg("750"); + msg = MSG_EXTERNAL_1120299606461952478$$MANY_I18N_ATTRIBUTES_TS_749; + } else { + /* @ts-ignore */ + msg = $localize`:750:750`; + } + return msg; +} +function i18n_750() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 751 + */ + const MSG_EXTERNAL_3818362133160296029$$MANY_I18N_ATTRIBUTES_TS_750 = + /* @ts-ignore */ + goog.getMsg("751"); + msg = MSG_EXTERNAL_3818362133160296029$$MANY_I18N_ATTRIBUTES_TS_750; + } else { + /* @ts-ignore */ + msg = $localize`:751:751`; + } + return msg; +} +function i18n_751() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 752 + */ + const MSG_EXTERNAL_1475143513970400156$$MANY_I18N_ATTRIBUTES_TS_751 = + /* @ts-ignore */ + goog.getMsg("752"); + msg = MSG_EXTERNAL_1475143513970400156$$MANY_I18N_ATTRIBUTES_TS_751; + } else { + /* @ts-ignore */ + msg = $localize`:752:752`; + } + return msg; +} +function i18n_752() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 753 + */ + const MSG_EXTERNAL_670723565601038578$$MANY_I18N_ATTRIBUTES_TS_752 = + /* @ts-ignore */ + goog.getMsg("753"); + msg = MSG_EXTERNAL_670723565601038578$$MANY_I18N_ATTRIBUTES_TS_752; + } else { + /* @ts-ignore */ + msg = $localize`:753:753`; + } + return msg; +} +function i18n_753() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 754 + */ + const MSG_EXTERNAL_2014011320228737919$$MANY_I18N_ATTRIBUTES_TS_753 = + /* @ts-ignore */ + goog.getMsg("754"); + msg = MSG_EXTERNAL_2014011320228737919$$MANY_I18N_ATTRIBUTES_TS_753; + } else { + /* @ts-ignore */ + msg = $localize`:754:754`; + } + return msg; +} +function i18n_754() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 755 + */ + const MSG_EXTERNAL_8084836133336095164$$MANY_I18N_ATTRIBUTES_TS_754 = + /* @ts-ignore */ + goog.getMsg("755"); + msg = MSG_EXTERNAL_8084836133336095164$$MANY_I18N_ATTRIBUTES_TS_754; + } else { + /* @ts-ignore */ + msg = $localize`:755:755`; + } + return msg; +} +function i18n_755() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 756 + */ + const MSG_EXTERNAL_5599953443776292326$$MANY_I18N_ATTRIBUTES_TS_755 = + /* @ts-ignore */ + goog.getMsg("756"); + msg = MSG_EXTERNAL_5599953443776292326$$MANY_I18N_ATTRIBUTES_TS_755; + } else { + /* @ts-ignore */ + msg = $localize`:756:756`; + } + return msg; +} +function i18n_756() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 757 + */ + const MSG_EXTERNAL_922112052071138289$$MANY_I18N_ATTRIBUTES_TS_756 = + /* @ts-ignore */ + goog.getMsg("757"); + msg = MSG_EXTERNAL_922112052071138289$$MANY_I18N_ATTRIBUTES_TS_756; + } else { + /* @ts-ignore */ + msg = $localize`:757:757`; + } + return msg; +} +function i18n_757() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 758 + */ + const MSG_EXTERNAL_1771409773231507203$$MANY_I18N_ATTRIBUTES_TS_757 = + /* @ts-ignore */ + goog.getMsg("758"); + msg = MSG_EXTERNAL_1771409773231507203$$MANY_I18N_ATTRIBUTES_TS_757; + } else { + /* @ts-ignore */ + msg = $localize`:758:758`; + } + return msg; +} +function i18n_758() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 759 + */ + const MSG_EXTERNAL_1799476110044458329$$MANY_I18N_ATTRIBUTES_TS_758 = + /* @ts-ignore */ + goog.getMsg("759"); + msg = MSG_EXTERNAL_1799476110044458329$$MANY_I18N_ATTRIBUTES_TS_758; + } else { + /* @ts-ignore */ + msg = $localize`:759:759`; + } + return msg; +} +function i18n_759() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 760 + */ + const MSG_EXTERNAL_2213214617964062399$$MANY_I18N_ATTRIBUTES_TS_759 = + /* @ts-ignore */ + goog.getMsg("760"); + msg = MSG_EXTERNAL_2213214617964062399$$MANY_I18N_ATTRIBUTES_TS_759; + } else { + /* @ts-ignore */ + msg = $localize`:760:760`; + } + return msg; +} +function i18n_760() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 761 + */ + const MSG_EXTERNAL_5184923002801276181$$MANY_I18N_ATTRIBUTES_TS_760 = + /* @ts-ignore */ + goog.getMsg("761"); + msg = MSG_EXTERNAL_5184923002801276181$$MANY_I18N_ATTRIBUTES_TS_760; + } else { + /* @ts-ignore */ + msg = $localize`:761:761`; + } + return msg; +} +function i18n_761() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 762 + */ + const MSG_EXTERNAL_8429203999666453428$$MANY_I18N_ATTRIBUTES_TS_761 = + /* @ts-ignore */ + goog.getMsg("762"); + msg = MSG_EXTERNAL_8429203999666453428$$MANY_I18N_ATTRIBUTES_TS_761; + } else { + /* @ts-ignore */ + msg = $localize`:762:762`; + } + return msg; +} +function i18n_762() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 763 + */ + const MSG_EXTERNAL_286502376650730418$$MANY_I18N_ATTRIBUTES_TS_762 = + /* @ts-ignore */ + goog.getMsg("763"); + msg = MSG_EXTERNAL_286502376650730418$$MANY_I18N_ATTRIBUTES_TS_762; + } else { + /* @ts-ignore */ + msg = $localize`:763:763`; + } + return msg; +} +function i18n_763() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 764 + */ + const MSG_EXTERNAL_1536388372722367101$$MANY_I18N_ATTRIBUTES_TS_763 = + /* @ts-ignore */ + goog.getMsg("764"); + msg = MSG_EXTERNAL_1536388372722367101$$MANY_I18N_ATTRIBUTES_TS_763; + } else { + /* @ts-ignore */ + msg = $localize`:764:764`; + } + return msg; +} +function i18n_764() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 765 + */ + const MSG_EXTERNAL_8275602049429002932$$MANY_I18N_ATTRIBUTES_TS_764 = + /* @ts-ignore */ + goog.getMsg("765"); + msg = MSG_EXTERNAL_8275602049429002932$$MANY_I18N_ATTRIBUTES_TS_764; + } else { + /* @ts-ignore */ + msg = $localize`:765:765`; + } + return msg; +} +function i18n_765() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 766 + */ + const MSG_EXTERNAL_8983433350294122716$$MANY_I18N_ATTRIBUTES_TS_765 = + /* @ts-ignore */ + goog.getMsg("766"); + msg = MSG_EXTERNAL_8983433350294122716$$MANY_I18N_ATTRIBUTES_TS_765; + } else { + /* @ts-ignore */ + msg = $localize`:766:766`; + } + return msg; +} +function i18n_766() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 767 + */ + const MSG_EXTERNAL_8629004538579298506$$MANY_I18N_ATTRIBUTES_TS_766 = + /* @ts-ignore */ + goog.getMsg("767"); + msg = MSG_EXTERNAL_8629004538579298506$$MANY_I18N_ATTRIBUTES_TS_766; + } else { + /* @ts-ignore */ + msg = $localize`:767:767`; + } + return msg; +} +function i18n_767() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 768 + */ + const MSG_EXTERNAL_6827886011821122519$$MANY_I18N_ATTRIBUTES_TS_767 = + /* @ts-ignore */ + goog.getMsg("768"); + msg = MSG_EXTERNAL_6827886011821122519$$MANY_I18N_ATTRIBUTES_TS_767; + } else { + /* @ts-ignore */ + msg = $localize`:768:768`; + } + return msg; +} +function i18n_768() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 769 + */ + const MSG_EXTERNAL_2344009459628503063$$MANY_I18N_ATTRIBUTES_TS_768 = + /* @ts-ignore */ + goog.getMsg("769"); + msg = MSG_EXTERNAL_2344009459628503063$$MANY_I18N_ATTRIBUTES_TS_768; + } else { + /* @ts-ignore */ + msg = $localize`:769:769`; + } + return msg; +} +function i18n_769() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 770 + */ + const MSG_EXTERNAL_7073484529310088884$$MANY_I18N_ATTRIBUTES_TS_769 = + /* @ts-ignore */ + goog.getMsg("770"); + msg = MSG_EXTERNAL_7073484529310088884$$MANY_I18N_ATTRIBUTES_TS_769; + } else { + /* @ts-ignore */ + msg = $localize`:770:770`; + } + return msg; +} +function i18n_770() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 771 + */ + const MSG_EXTERNAL_7953702078491529875$$MANY_I18N_ATTRIBUTES_TS_770 = + /* @ts-ignore */ + goog.getMsg("771"); + msg = MSG_EXTERNAL_7953702078491529875$$MANY_I18N_ATTRIBUTES_TS_770; + } else { + /* @ts-ignore */ + msg = $localize`:771:771`; + } + return msg; +} +function i18n_771() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 772 + */ + const MSG_EXTERNAL_4370705889766059441$$MANY_I18N_ATTRIBUTES_TS_771 = + /* @ts-ignore */ + goog.getMsg("772"); + msg = MSG_EXTERNAL_4370705889766059441$$MANY_I18N_ATTRIBUTES_TS_771; + } else { + /* @ts-ignore */ + msg = $localize`:772:772`; + } + return msg; +} +function i18n_772() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 773 + */ + const MSG_EXTERNAL_4694505150363791702$$MANY_I18N_ATTRIBUTES_TS_772 = + /* @ts-ignore */ + goog.getMsg("773"); + msg = MSG_EXTERNAL_4694505150363791702$$MANY_I18N_ATTRIBUTES_TS_772; + } else { + /* @ts-ignore */ + msg = $localize`:773:773`; + } + return msg; +} +function i18n_773() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 774 + */ + const MSG_EXTERNAL_5871692916860080709$$MANY_I18N_ATTRIBUTES_TS_773 = + /* @ts-ignore */ + goog.getMsg("774"); + msg = MSG_EXTERNAL_5871692916860080709$$MANY_I18N_ATTRIBUTES_TS_773; + } else { + /* @ts-ignore */ + msg = $localize`:774:774`; + } + return msg; +} +function i18n_774() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 775 + */ + const MSG_EXTERNAL_8944138706350370975$$MANY_I18N_ATTRIBUTES_TS_774 = + /* @ts-ignore */ + goog.getMsg("775"); + msg = MSG_EXTERNAL_8944138706350370975$$MANY_I18N_ATTRIBUTES_TS_774; + } else { + /* @ts-ignore */ + msg = $localize`:775:775`; + } + return msg; +} +function i18n_775() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 776 + */ + const MSG_EXTERNAL_8117535666005074159$$MANY_I18N_ATTRIBUTES_TS_775 = + /* @ts-ignore */ + goog.getMsg("776"); + msg = MSG_EXTERNAL_8117535666005074159$$MANY_I18N_ATTRIBUTES_TS_775; + } else { + /* @ts-ignore */ + msg = $localize`:776:776`; + } + return msg; +} +function i18n_776() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 777 + */ + const MSG_EXTERNAL_6452448059671109007$$MANY_I18N_ATTRIBUTES_TS_776 = + /* @ts-ignore */ + goog.getMsg("777"); + msg = MSG_EXTERNAL_6452448059671109007$$MANY_I18N_ATTRIBUTES_TS_776; + } else { + /* @ts-ignore */ + msg = $localize`:777:777`; + } + return msg; +} +function i18n_777() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 778 + */ + const MSG_EXTERNAL_1910689258764463180$$MANY_I18N_ATTRIBUTES_TS_777 = + /* @ts-ignore */ + goog.getMsg("778"); + msg = MSG_EXTERNAL_1910689258764463180$$MANY_I18N_ATTRIBUTES_TS_777; + } else { + /* @ts-ignore */ + msg = $localize`:778:778`; + } + return msg; +} +function i18n_778() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 779 + */ + const MSG_EXTERNAL_420894399981602047$$MANY_I18N_ATTRIBUTES_TS_778 = + /* @ts-ignore */ + goog.getMsg("779"); + msg = MSG_EXTERNAL_420894399981602047$$MANY_I18N_ATTRIBUTES_TS_778; + } else { + /* @ts-ignore */ + msg = $localize`:779:779`; + } + return msg; +} +function i18n_779() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 780 + */ + const MSG_EXTERNAL_7512892853205477342$$MANY_I18N_ATTRIBUTES_TS_779 = + /* @ts-ignore */ + goog.getMsg("780"); + msg = MSG_EXTERNAL_7512892853205477342$$MANY_I18N_ATTRIBUTES_TS_779; + } else { + /* @ts-ignore */ + msg = $localize`:780:780`; + } + return msg; +} +function i18n_780() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 781 + */ + const MSG_EXTERNAL_8648865661890500998$$MANY_I18N_ATTRIBUTES_TS_780 = + /* @ts-ignore */ + goog.getMsg("781"); + msg = MSG_EXTERNAL_8648865661890500998$$MANY_I18N_ATTRIBUTES_TS_780; + } else { + /* @ts-ignore */ + msg = $localize`:781:781`; + } + return msg; +} +function i18n_781() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 782 + */ + const MSG_EXTERNAL_4464697718075319146$$MANY_I18N_ATTRIBUTES_TS_781 = + /* @ts-ignore */ + goog.getMsg("782"); + msg = MSG_EXTERNAL_4464697718075319146$$MANY_I18N_ATTRIBUTES_TS_781; + } else { + /* @ts-ignore */ + msg = $localize`:782:782`; + } + return msg; +} +function i18n_782() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 783 + */ + const MSG_EXTERNAL_3414241892761459282$$MANY_I18N_ATTRIBUTES_TS_782 = + /* @ts-ignore */ + goog.getMsg("783"); + msg = MSG_EXTERNAL_3414241892761459282$$MANY_I18N_ATTRIBUTES_TS_782; + } else { + /* @ts-ignore */ + msg = $localize`:783:783`; + } + return msg; +} +function i18n_783() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 784 + */ + const MSG_EXTERNAL_1174222413914761507$$MANY_I18N_ATTRIBUTES_TS_783 = + /* @ts-ignore */ + goog.getMsg("784"); + msg = MSG_EXTERNAL_1174222413914761507$$MANY_I18N_ATTRIBUTES_TS_783; + } else { + /* @ts-ignore */ + msg = $localize`:784:784`; + } + return msg; +} +function i18n_784() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 785 + */ + const MSG_EXTERNAL_2669455240131510789$$MANY_I18N_ATTRIBUTES_TS_784 = + /* @ts-ignore */ + goog.getMsg("785"); + msg = MSG_EXTERNAL_2669455240131510789$$MANY_I18N_ATTRIBUTES_TS_784; + } else { + /* @ts-ignore */ + msg = $localize`:785:785`; + } + return msg; +} +function i18n_785() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 786 + */ + const MSG_EXTERNAL_20764427315015593$$MANY_I18N_ATTRIBUTES_TS_785 = + /* @ts-ignore */ + goog.getMsg("786"); + msg = MSG_EXTERNAL_20764427315015593$$MANY_I18N_ATTRIBUTES_TS_785; + } else { + /* @ts-ignore */ + msg = $localize`:786:786`; + } + return msg; +} +function i18n_786() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 787 + */ + const MSG_EXTERNAL_7512017941536487483$$MANY_I18N_ATTRIBUTES_TS_786 = + /* @ts-ignore */ + goog.getMsg("787"); + msg = MSG_EXTERNAL_7512017941536487483$$MANY_I18N_ATTRIBUTES_TS_786; + } else { + /* @ts-ignore */ + msg = $localize`:787:787`; + } + return msg; +} +function i18n_787() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 788 + */ + const MSG_EXTERNAL_5306472014739204959$$MANY_I18N_ATTRIBUTES_TS_787 = + /* @ts-ignore */ + goog.getMsg("788"); + msg = MSG_EXTERNAL_5306472014739204959$$MANY_I18N_ATTRIBUTES_TS_787; + } else { + /* @ts-ignore */ + msg = $localize`:788:788`; + } + return msg; +} +function i18n_788() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 789 + */ + const MSG_EXTERNAL_1119634597807582228$$MANY_I18N_ATTRIBUTES_TS_788 = + /* @ts-ignore */ + goog.getMsg("789"); + msg = MSG_EXTERNAL_1119634597807582228$$MANY_I18N_ATTRIBUTES_TS_788; + } else { + /* @ts-ignore */ + msg = $localize`:789:789`; + } + return msg; +} +function i18n_789() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 790 + */ + const MSG_EXTERNAL_1565161290511872364$$MANY_I18N_ATTRIBUTES_TS_789 = + /* @ts-ignore */ + goog.getMsg("790"); + msg = MSG_EXTERNAL_1565161290511872364$$MANY_I18N_ATTRIBUTES_TS_789; + } else { + /* @ts-ignore */ + msg = $localize`:790:790`; + } + return msg; +} +function i18n_790() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 791 + */ + const MSG_EXTERNAL_3659145686070658179$$MANY_I18N_ATTRIBUTES_TS_790 = + /* @ts-ignore */ + goog.getMsg("791"); + msg = MSG_EXTERNAL_3659145686070658179$$MANY_I18N_ATTRIBUTES_TS_790; + } else { + /* @ts-ignore */ + msg = $localize`:791:791`; + } + return msg; +} +function i18n_791() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 792 + */ + const MSG_EXTERNAL_6329392316889833144$$MANY_I18N_ATTRIBUTES_TS_791 = + /* @ts-ignore */ + goog.getMsg("792"); + msg = MSG_EXTERNAL_6329392316889833144$$MANY_I18N_ATTRIBUTES_TS_791; + } else { + /* @ts-ignore */ + msg = $localize`:792:792`; + } + return msg; +} +function i18n_792() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 793 + */ + const MSG_EXTERNAL_5831793302292443029$$MANY_I18N_ATTRIBUTES_TS_792 = + /* @ts-ignore */ + goog.getMsg("793"); + msg = MSG_EXTERNAL_5831793302292443029$$MANY_I18N_ATTRIBUTES_TS_792; + } else { + /* @ts-ignore */ + msg = $localize`:793:793`; + } + return msg; +} +function i18n_793() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 794 + */ + const MSG_EXTERNAL_5220621657550361378$$MANY_I18N_ATTRIBUTES_TS_793 = + /* @ts-ignore */ + goog.getMsg("794"); + msg = MSG_EXTERNAL_5220621657550361378$$MANY_I18N_ATTRIBUTES_TS_793; + } else { + /* @ts-ignore */ + msg = $localize`:794:794`; + } + return msg; +} +function i18n_794() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 795 + */ + const MSG_EXTERNAL_5813633774617253142$$MANY_I18N_ATTRIBUTES_TS_794 = + /* @ts-ignore */ + goog.getMsg("795"); + msg = MSG_EXTERNAL_5813633774617253142$$MANY_I18N_ATTRIBUTES_TS_794; + } else { + /* @ts-ignore */ + msg = $localize`:795:795`; + } + return msg; +} +function i18n_795() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 796 + */ + const MSG_EXTERNAL_4686997802752025703$$MANY_I18N_ATTRIBUTES_TS_795 = + /* @ts-ignore */ + goog.getMsg("796"); + msg = MSG_EXTERNAL_4686997802752025703$$MANY_I18N_ATTRIBUTES_TS_795; + } else { + /* @ts-ignore */ + msg = $localize`:796:796`; + } + return msg; +} +function i18n_796() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 797 + */ + const MSG_EXTERNAL_1955126812065845645$$MANY_I18N_ATTRIBUTES_TS_796 = + /* @ts-ignore */ + goog.getMsg("797"); + msg = MSG_EXTERNAL_1955126812065845645$$MANY_I18N_ATTRIBUTES_TS_796; + } else { + /* @ts-ignore */ + msg = $localize`:797:797`; + } + return msg; +} +function i18n_797() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 798 + */ + const MSG_EXTERNAL_1670818442213711187$$MANY_I18N_ATTRIBUTES_TS_797 = + /* @ts-ignore */ + goog.getMsg("798"); + msg = MSG_EXTERNAL_1670818442213711187$$MANY_I18N_ATTRIBUTES_TS_797; + } else { + /* @ts-ignore */ + msg = $localize`:798:798`; + } + return msg; +} +function i18n_798() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 799 + */ + const MSG_EXTERNAL_570802159836868064$$MANY_I18N_ATTRIBUTES_TS_798 = + /* @ts-ignore */ + goog.getMsg("799"); + msg = MSG_EXTERNAL_570802159836868064$$MANY_I18N_ATTRIBUTES_TS_798; + } else { + /* @ts-ignore */ + msg = $localize`:799:799`; + } + return msg; +} +function i18n_799() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 800 + */ + const MSG_EXTERNAL_6948849870599061046$$MANY_I18N_ATTRIBUTES_TS_799 = + /* @ts-ignore */ + goog.getMsg("800"); + msg = MSG_EXTERNAL_6948849870599061046$$MANY_I18N_ATTRIBUTES_TS_799; + } else { + /* @ts-ignore */ + msg = $localize`:800:800`; + } + return msg; +} +function i18n_800() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 801 + */ + const MSG_EXTERNAL_5908203436199399810$$MANY_I18N_ATTRIBUTES_TS_800 = + /* @ts-ignore */ + goog.getMsg("801"); + msg = MSG_EXTERNAL_5908203436199399810$$MANY_I18N_ATTRIBUTES_TS_800; + } else { + /* @ts-ignore */ + msg = $localize`:801:801`; + } + return msg; +} +function i18n_801() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 802 + */ + const MSG_EXTERNAL_4077495645034644669$$MANY_I18N_ATTRIBUTES_TS_801 = + /* @ts-ignore */ + goog.getMsg("802"); + msg = MSG_EXTERNAL_4077495645034644669$$MANY_I18N_ATTRIBUTES_TS_801; + } else { + /* @ts-ignore */ + msg = $localize`:802:802`; + } + return msg; +} +function i18n_802() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 803 + */ + const MSG_EXTERNAL_3596104221959808285$$MANY_I18N_ATTRIBUTES_TS_802 = + /* @ts-ignore */ + goog.getMsg("803"); + msg = MSG_EXTERNAL_3596104221959808285$$MANY_I18N_ATTRIBUTES_TS_802; + } else { + /* @ts-ignore */ + msg = $localize`:803:803`; + } + return msg; +} +function i18n_803() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 804 + */ + const MSG_EXTERNAL_6729430650073181229$$MANY_I18N_ATTRIBUTES_TS_803 = + /* @ts-ignore */ + goog.getMsg("804"); + msg = MSG_EXTERNAL_6729430650073181229$$MANY_I18N_ATTRIBUTES_TS_803; + } else { + /* @ts-ignore */ + msg = $localize`:804:804`; + } + return msg; +} +function i18n_804() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 805 + */ + const MSG_EXTERNAL_1959288823936419023$$MANY_I18N_ATTRIBUTES_TS_804 = + /* @ts-ignore */ + goog.getMsg("805"); + msg = MSG_EXTERNAL_1959288823936419023$$MANY_I18N_ATTRIBUTES_TS_804; + } else { + /* @ts-ignore */ + msg = $localize`:805:805`; + } + return msg; +} +function i18n_805() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 806 + */ + const MSG_EXTERNAL_2016121480151658347$$MANY_I18N_ATTRIBUTES_TS_805 = + /* @ts-ignore */ + goog.getMsg("806"); + msg = MSG_EXTERNAL_2016121480151658347$$MANY_I18N_ATTRIBUTES_TS_805; + } else { + /* @ts-ignore */ + msg = $localize`:806:806`; + } + return msg; +} +function i18n_806() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 807 + */ + const MSG_EXTERNAL_1665467769674141437$$MANY_I18N_ATTRIBUTES_TS_806 = + /* @ts-ignore */ + goog.getMsg("807"); + msg = MSG_EXTERNAL_1665467769674141437$$MANY_I18N_ATTRIBUTES_TS_806; + } else { + /* @ts-ignore */ + msg = $localize`:807:807`; + } + return msg; +} +function i18n_807() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 808 + */ + const MSG_EXTERNAL_7016249765189753143$$MANY_I18N_ATTRIBUTES_TS_807 = + /* @ts-ignore */ + goog.getMsg("808"); + msg = MSG_EXTERNAL_7016249765189753143$$MANY_I18N_ATTRIBUTES_TS_807; + } else { + /* @ts-ignore */ + msg = $localize`:808:808`; + } + return msg; +} +function i18n_808() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 809 + */ + const MSG_EXTERNAL_8542944861474956220$$MANY_I18N_ATTRIBUTES_TS_808 = + /* @ts-ignore */ + goog.getMsg("809"); + msg = MSG_EXTERNAL_8542944861474956220$$MANY_I18N_ATTRIBUTES_TS_808; + } else { + /* @ts-ignore */ + msg = $localize`:809:809`; + } + return msg; +} +function i18n_809() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 810 + */ + const MSG_EXTERNAL_232849999628222943$$MANY_I18N_ATTRIBUTES_TS_809 = + /* @ts-ignore */ + goog.getMsg("810"); + msg = MSG_EXTERNAL_232849999628222943$$MANY_I18N_ATTRIBUTES_TS_809; + } else { + /* @ts-ignore */ + msg = $localize`:810:810`; + } + return msg; +} +function i18n_810() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 811 + */ + const MSG_EXTERNAL_4939003112927388146$$MANY_I18N_ATTRIBUTES_TS_810 = + /* @ts-ignore */ + goog.getMsg("811"); + msg = MSG_EXTERNAL_4939003112927388146$$MANY_I18N_ATTRIBUTES_TS_810; + } else { + /* @ts-ignore */ + msg = $localize`:811:811`; + } + return msg; +} +function i18n_811() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 812 + */ + const MSG_EXTERNAL_3544757316783988895$$MANY_I18N_ATTRIBUTES_TS_811 = + /* @ts-ignore */ + goog.getMsg("812"); + msg = MSG_EXTERNAL_3544757316783988895$$MANY_I18N_ATTRIBUTES_TS_811; + } else { + /* @ts-ignore */ + msg = $localize`:812:812`; + } + return msg; +} +function i18n_812() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 813 + */ + const MSG_EXTERNAL_8301537533824414054$$MANY_I18N_ATTRIBUTES_TS_812 = + /* @ts-ignore */ + goog.getMsg("813"); + msg = MSG_EXTERNAL_8301537533824414054$$MANY_I18N_ATTRIBUTES_TS_812; + } else { + /* @ts-ignore */ + msg = $localize`:813:813`; + } + return msg; +} +function i18n_813() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 814 + */ + const MSG_EXTERNAL_3777903794823033199$$MANY_I18N_ATTRIBUTES_TS_813 = + /* @ts-ignore */ + goog.getMsg("814"); + msg = MSG_EXTERNAL_3777903794823033199$$MANY_I18N_ATTRIBUTES_TS_813; + } else { + /* @ts-ignore */ + msg = $localize`:814:814`; + } + return msg; +} +function i18n_814() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 815 + */ + const MSG_EXTERNAL_8914590115361141689$$MANY_I18N_ATTRIBUTES_TS_814 = + /* @ts-ignore */ + goog.getMsg("815"); + msg = MSG_EXTERNAL_8914590115361141689$$MANY_I18N_ATTRIBUTES_TS_814; + } else { + /* @ts-ignore */ + msg = $localize`:815:815`; + } + return msg; +} +function i18n_815() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 816 + */ + const MSG_EXTERNAL_3531162226510959139$$MANY_I18N_ATTRIBUTES_TS_815 = + /* @ts-ignore */ + goog.getMsg("816"); + msg = MSG_EXTERNAL_3531162226510959139$$MANY_I18N_ATTRIBUTES_TS_815; + } else { + /* @ts-ignore */ + msg = $localize`:816:816`; + } + return msg; +} +function i18n_816() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 817 + */ + const MSG_EXTERNAL_1515047116521341618$$MANY_I18N_ATTRIBUTES_TS_816 = + /* @ts-ignore */ + goog.getMsg("817"); + msg = MSG_EXTERNAL_1515047116521341618$$MANY_I18N_ATTRIBUTES_TS_816; + } else { + /* @ts-ignore */ + msg = $localize`:817:817`; + } + return msg; +} +function i18n_817() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 818 + */ + const MSG_EXTERNAL_3281534610415360284$$MANY_I18N_ATTRIBUTES_TS_817 = + /* @ts-ignore */ + goog.getMsg("818"); + msg = MSG_EXTERNAL_3281534610415360284$$MANY_I18N_ATTRIBUTES_TS_817; + } else { + /* @ts-ignore */ + msg = $localize`:818:818`; + } + return msg; +} +function i18n_818() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 819 + */ + const MSG_EXTERNAL_7576857838981658884$$MANY_I18N_ATTRIBUTES_TS_818 = + /* @ts-ignore */ + goog.getMsg("819"); + msg = MSG_EXTERNAL_7576857838981658884$$MANY_I18N_ATTRIBUTES_TS_818; + } else { + /* @ts-ignore */ + msg = $localize`:819:819`; + } + return msg; +} +function i18n_819() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 820 + */ + const MSG_EXTERNAL_4213468014389831513$$MANY_I18N_ATTRIBUTES_TS_819 = + /* @ts-ignore */ + goog.getMsg("820"); + msg = MSG_EXTERNAL_4213468014389831513$$MANY_I18N_ATTRIBUTES_TS_819; + } else { + /* @ts-ignore */ + msg = $localize`:820:820`; + } + return msg; +} +function i18n_820() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 821 + */ + const MSG_EXTERNAL_2601177602053121686$$MANY_I18N_ATTRIBUTES_TS_820 = + /* @ts-ignore */ + goog.getMsg("821"); + msg = MSG_EXTERNAL_2601177602053121686$$MANY_I18N_ATTRIBUTES_TS_820; + } else { + /* @ts-ignore */ + msg = $localize`:821:821`; + } + return msg; +} +function i18n_821() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 822 + */ + const MSG_EXTERNAL_8683629216547874422$$MANY_I18N_ATTRIBUTES_TS_821 = + /* @ts-ignore */ + goog.getMsg("822"); + msg = MSG_EXTERNAL_8683629216547874422$$MANY_I18N_ATTRIBUTES_TS_821; + } else { + /* @ts-ignore */ + msg = $localize`:822:822`; + } + return msg; +} +function i18n_822() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 823 + */ + const MSG_EXTERNAL_5378155351069159033$$MANY_I18N_ATTRIBUTES_TS_822 = + /* @ts-ignore */ + goog.getMsg("823"); + msg = MSG_EXTERNAL_5378155351069159033$$MANY_I18N_ATTRIBUTES_TS_822; + } else { + /* @ts-ignore */ + msg = $localize`:823:823`; + } + return msg; +} +function i18n_823() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 824 + */ + const MSG_EXTERNAL_4486228934493632544$$MANY_I18N_ATTRIBUTES_TS_823 = + /* @ts-ignore */ + goog.getMsg("824"); + msg = MSG_EXTERNAL_4486228934493632544$$MANY_I18N_ATTRIBUTES_TS_823; + } else { + /* @ts-ignore */ + msg = $localize`:824:824`; + } + return msg; +} +function i18n_824() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 825 + */ + const MSG_EXTERNAL_7856702962396482880$$MANY_I18N_ATTRIBUTES_TS_824 = + /* @ts-ignore */ + goog.getMsg("825"); + msg = MSG_EXTERNAL_7856702962396482880$$MANY_I18N_ATTRIBUTES_TS_824; + } else { + /* @ts-ignore */ + msg = $localize`:825:825`; + } + return msg; +} +function i18n_825() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 826 + */ + const MSG_EXTERNAL_7579032910732762791$$MANY_I18N_ATTRIBUTES_TS_825 = + /* @ts-ignore */ + goog.getMsg("826"); + msg = MSG_EXTERNAL_7579032910732762791$$MANY_I18N_ATTRIBUTES_TS_825; + } else { + /* @ts-ignore */ + msg = $localize`:826:826`; + } + return msg; +} +function i18n_826() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 827 + */ + const MSG_EXTERNAL_5215825310522189240$$MANY_I18N_ATTRIBUTES_TS_826 = + /* @ts-ignore */ + goog.getMsg("827"); + msg = MSG_EXTERNAL_5215825310522189240$$MANY_I18N_ATTRIBUTES_TS_826; + } else { + /* @ts-ignore */ + msg = $localize`:827:827`; + } + return msg; +} +function i18n_827() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 828 + */ + const MSG_EXTERNAL_4118735566466817631$$MANY_I18N_ATTRIBUTES_TS_827 = + /* @ts-ignore */ + goog.getMsg("828"); + msg = MSG_EXTERNAL_4118735566466817631$$MANY_I18N_ATTRIBUTES_TS_827; + } else { + /* @ts-ignore */ + msg = $localize`:828:828`; + } + return msg; +} +function i18n_828() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 829 + */ + const MSG_EXTERNAL_5255371178884845863$$MANY_I18N_ATTRIBUTES_TS_828 = + /* @ts-ignore */ + goog.getMsg("829"); + msg = MSG_EXTERNAL_5255371178884845863$$MANY_I18N_ATTRIBUTES_TS_828; + } else { + /* @ts-ignore */ + msg = $localize`:829:829`; + } + return msg; +} +function i18n_829() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 830 + */ + const MSG_EXTERNAL_6112667900254162928$$MANY_I18N_ATTRIBUTES_TS_829 = + /* @ts-ignore */ + goog.getMsg("830"); + msg = MSG_EXTERNAL_6112667900254162928$$MANY_I18N_ATTRIBUTES_TS_829; + } else { + /* @ts-ignore */ + msg = $localize`:830:830`; + } + return msg; +} +function i18n_830() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 831 + */ + const MSG_EXTERNAL_6561511005064941052$$MANY_I18N_ATTRIBUTES_TS_830 = + /* @ts-ignore */ + goog.getMsg("831"); + msg = MSG_EXTERNAL_6561511005064941052$$MANY_I18N_ATTRIBUTES_TS_830; + } else { + /* @ts-ignore */ + msg = $localize`:831:831`; + } + return msg; +} +function i18n_831() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 832 + */ + const MSG_EXTERNAL_1961660381998604691$$MANY_I18N_ATTRIBUTES_TS_831 = + /* @ts-ignore */ + goog.getMsg("832"); + msg = MSG_EXTERNAL_1961660381998604691$$MANY_I18N_ATTRIBUTES_TS_831; + } else { + /* @ts-ignore */ + msg = $localize`:832:832`; + } + return msg; +} +function i18n_832() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 833 + */ + const MSG_EXTERNAL_3760693582600832482$$MANY_I18N_ATTRIBUTES_TS_832 = + /* @ts-ignore */ + goog.getMsg("833"); + msg = MSG_EXTERNAL_3760693582600832482$$MANY_I18N_ATTRIBUTES_TS_832; + } else { + /* @ts-ignore */ + msg = $localize`:833:833`; + } + return msg; +} +function i18n_833() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 834 + */ + const MSG_EXTERNAL_3000598978003810381$$MANY_I18N_ATTRIBUTES_TS_833 = + /* @ts-ignore */ + goog.getMsg("834"); + msg = MSG_EXTERNAL_3000598978003810381$$MANY_I18N_ATTRIBUTES_TS_833; + } else { + /* @ts-ignore */ + msg = $localize`:834:834`; + } + return msg; +} +function i18n_834() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 835 + */ + const MSG_EXTERNAL_940251825912556132$$MANY_I18N_ATTRIBUTES_TS_834 = + /* @ts-ignore */ + goog.getMsg("835"); + msg = MSG_EXTERNAL_940251825912556132$$MANY_I18N_ATTRIBUTES_TS_834; + } else { + /* @ts-ignore */ + msg = $localize`:835:835`; + } + return msg; +} +function i18n_835() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 836 + */ + const MSG_EXTERNAL_3291288652072993394$$MANY_I18N_ATTRIBUTES_TS_835 = + /* @ts-ignore */ + goog.getMsg("836"); + msg = MSG_EXTERNAL_3291288652072993394$$MANY_I18N_ATTRIBUTES_TS_835; + } else { + /* @ts-ignore */ + msg = $localize`:836:836`; + } + return msg; +} +function i18n_836() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 837 + */ + const MSG_EXTERNAL_5913381561485536747$$MANY_I18N_ATTRIBUTES_TS_836 = + /* @ts-ignore */ + goog.getMsg("837"); + msg = MSG_EXTERNAL_5913381561485536747$$MANY_I18N_ATTRIBUTES_TS_836; + } else { + /* @ts-ignore */ + msg = $localize`:837:837`; + } + return msg; +} +function i18n_837() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 838 + */ + const MSG_EXTERNAL_3049712671645535641$$MANY_I18N_ATTRIBUTES_TS_837 = + /* @ts-ignore */ + goog.getMsg("838"); + msg = MSG_EXTERNAL_3049712671645535641$$MANY_I18N_ATTRIBUTES_TS_837; + } else { + /* @ts-ignore */ + msg = $localize`:838:838`; + } + return msg; +} +function i18n_838() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 839 + */ + const MSG_EXTERNAL_8240673517767771733$$MANY_I18N_ATTRIBUTES_TS_838 = + /* @ts-ignore */ + goog.getMsg("839"); + msg = MSG_EXTERNAL_8240673517767771733$$MANY_I18N_ATTRIBUTES_TS_838; + } else { + /* @ts-ignore */ + msg = $localize`:839:839`; + } + return msg; +} +function i18n_839() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 840 + */ + const MSG_EXTERNAL_8298123826614598740$$MANY_I18N_ATTRIBUTES_TS_839 = + /* @ts-ignore */ + goog.getMsg("840"); + msg = MSG_EXTERNAL_8298123826614598740$$MANY_I18N_ATTRIBUTES_TS_839; + } else { + /* @ts-ignore */ + msg = $localize`:840:840`; + } + return msg; +} +function i18n_840() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 841 + */ + const MSG_EXTERNAL_4884520710034928859$$MANY_I18N_ATTRIBUTES_TS_840 = + /* @ts-ignore */ + goog.getMsg("841"); + msg = MSG_EXTERNAL_4884520710034928859$$MANY_I18N_ATTRIBUTES_TS_840; + } else { + /* @ts-ignore */ + msg = $localize`:841:841`; + } + return msg; +} +function i18n_841() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 842 + */ + const MSG_EXTERNAL_8678470782254748063$$MANY_I18N_ATTRIBUTES_TS_841 = + /* @ts-ignore */ + goog.getMsg("842"); + msg = MSG_EXTERNAL_8678470782254748063$$MANY_I18N_ATTRIBUTES_TS_841; + } else { + /* @ts-ignore */ + msg = $localize`:842:842`; + } + return msg; +} +function i18n_842() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 843 + */ + const MSG_EXTERNAL_2231040587438032327$$MANY_I18N_ATTRIBUTES_TS_842 = + /* @ts-ignore */ + goog.getMsg("843"); + msg = MSG_EXTERNAL_2231040587438032327$$MANY_I18N_ATTRIBUTES_TS_842; + } else { + /* @ts-ignore */ + msg = $localize`:843:843`; + } + return msg; +} +function i18n_843() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 844 + */ + const MSG_EXTERNAL_5749913408679971084$$MANY_I18N_ATTRIBUTES_TS_843 = + /* @ts-ignore */ + goog.getMsg("844"); + msg = MSG_EXTERNAL_5749913408679971084$$MANY_I18N_ATTRIBUTES_TS_843; + } else { + /* @ts-ignore */ + msg = $localize`:844:844`; + } + return msg; +} +function i18n_844() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 845 + */ + const MSG_EXTERNAL_5630071944941988831$$MANY_I18N_ATTRIBUTES_TS_844 = + /* @ts-ignore */ + goog.getMsg("845"); + msg = MSG_EXTERNAL_5630071944941988831$$MANY_I18N_ATTRIBUTES_TS_844; + } else { + /* @ts-ignore */ + msg = $localize`:845:845`; + } + return msg; +} +function i18n_845() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 846 + */ + const MSG_EXTERNAL_7885664853270279860$$MANY_I18N_ATTRIBUTES_TS_845 = + /* @ts-ignore */ + goog.getMsg("846"); + msg = MSG_EXTERNAL_7885664853270279860$$MANY_I18N_ATTRIBUTES_TS_845; + } else { + /* @ts-ignore */ + msg = $localize`:846:846`; + } + return msg; +} +function i18n_846() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 847 + */ + const MSG_EXTERNAL_5315711957637760039$$MANY_I18N_ATTRIBUTES_TS_846 = + /* @ts-ignore */ + goog.getMsg("847"); + msg = MSG_EXTERNAL_5315711957637760039$$MANY_I18N_ATTRIBUTES_TS_846; + } else { + /* @ts-ignore */ + msg = $localize`:847:847`; + } + return msg; +} +function i18n_847() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 848 + */ + const MSG_EXTERNAL_2878023266500813457$$MANY_I18N_ATTRIBUTES_TS_847 = + /* @ts-ignore */ + goog.getMsg("848"); + msg = MSG_EXTERNAL_2878023266500813457$$MANY_I18N_ATTRIBUTES_TS_847; + } else { + /* @ts-ignore */ + msg = $localize`:848:848`; + } + return msg; +} +function i18n_848() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 849 + */ + const MSG_EXTERNAL_8283821018269254166$$MANY_I18N_ATTRIBUTES_TS_848 = + /* @ts-ignore */ + goog.getMsg("849"); + msg = MSG_EXTERNAL_8283821018269254166$$MANY_I18N_ATTRIBUTES_TS_848; + } else { + /* @ts-ignore */ + msg = $localize`:849:849`; + } + return msg; +} +function i18n_849() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 850 + */ + const MSG_EXTERNAL_8583613549959773057$$MANY_I18N_ATTRIBUTES_TS_849 = + /* @ts-ignore */ + goog.getMsg("850"); + msg = MSG_EXTERNAL_8583613549959773057$$MANY_I18N_ATTRIBUTES_TS_849; + } else { + /* @ts-ignore */ + msg = $localize`:850:850`; + } + return msg; +} +function i18n_850() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 851 + */ + const MSG_EXTERNAL_8192597452921243481$$MANY_I18N_ATTRIBUTES_TS_850 = + /* @ts-ignore */ + goog.getMsg("851"); + msg = MSG_EXTERNAL_8192597452921243481$$MANY_I18N_ATTRIBUTES_TS_850; + } else { + /* @ts-ignore */ + msg = $localize`:851:851`; + } + return msg; +} +function i18n_851() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 852 + */ + const MSG_EXTERNAL_6693040837543880535$$MANY_I18N_ATTRIBUTES_TS_851 = + /* @ts-ignore */ + goog.getMsg("852"); + msg = MSG_EXTERNAL_6693040837543880535$$MANY_I18N_ATTRIBUTES_TS_851; + } else { + /* @ts-ignore */ + msg = $localize`:852:852`; + } + return msg; +} +function i18n_852() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 853 + */ + const MSG_EXTERNAL_6967039598736092866$$MANY_I18N_ATTRIBUTES_TS_852 = + /* @ts-ignore */ + goog.getMsg("853"); + msg = MSG_EXTERNAL_6967039598736092866$$MANY_I18N_ATTRIBUTES_TS_852; + } else { + /* @ts-ignore */ + msg = $localize`:853:853`; + } + return msg; +} +function i18n_853() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 854 + */ + const MSG_EXTERNAL_3940962376599897431$$MANY_I18N_ATTRIBUTES_TS_853 = + /* @ts-ignore */ + goog.getMsg("854"); + msg = MSG_EXTERNAL_3940962376599897431$$MANY_I18N_ATTRIBUTES_TS_853; + } else { + /* @ts-ignore */ + msg = $localize`:854:854`; + } + return msg; +} +function i18n_854() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 855 + */ + const MSG_EXTERNAL_5561917606260636296$$MANY_I18N_ATTRIBUTES_TS_854 = + /* @ts-ignore */ + goog.getMsg("855"); + msg = MSG_EXTERNAL_5561917606260636296$$MANY_I18N_ATTRIBUTES_TS_854; + } else { + /* @ts-ignore */ + msg = $localize`:855:855`; + } + return msg; +} +function i18n_855() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 856 + */ + const MSG_EXTERNAL_1611666373021918159$$MANY_I18N_ATTRIBUTES_TS_855 = + /* @ts-ignore */ + goog.getMsg("856"); + msg = MSG_EXTERNAL_1611666373021918159$$MANY_I18N_ATTRIBUTES_TS_855; + } else { + /* @ts-ignore */ + msg = $localize`:856:856`; + } + return msg; +} +function i18n_856() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 857 + */ + const MSG_EXTERNAL_1546093254389032618$$MANY_I18N_ATTRIBUTES_TS_856 = + /* @ts-ignore */ + goog.getMsg("857"); + msg = MSG_EXTERNAL_1546093254389032618$$MANY_I18N_ATTRIBUTES_TS_856; + } else { + /* @ts-ignore */ + msg = $localize`:857:857`; + } + return msg; +} +function i18n_857() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 858 + */ + const MSG_EXTERNAL_3347496338481353275$$MANY_I18N_ATTRIBUTES_TS_857 = + /* @ts-ignore */ + goog.getMsg("858"); + msg = MSG_EXTERNAL_3347496338481353275$$MANY_I18N_ATTRIBUTES_TS_857; + } else { + /* @ts-ignore */ + msg = $localize`:858:858`; + } + return msg; +} +function i18n_858() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 859 + */ + const MSG_EXTERNAL_9124306851040166930$$MANY_I18N_ATTRIBUTES_TS_858 = + /* @ts-ignore */ + goog.getMsg("859"); + msg = MSG_EXTERNAL_9124306851040166930$$MANY_I18N_ATTRIBUTES_TS_858; + } else { + /* @ts-ignore */ + msg = $localize`:859:859`; + } + return msg; +} +function i18n_859() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 860 + */ + const MSG_EXTERNAL_47826188224850081$$MANY_I18N_ATTRIBUTES_TS_859 = + /* @ts-ignore */ + goog.getMsg("860"); + msg = MSG_EXTERNAL_47826188224850081$$MANY_I18N_ATTRIBUTES_TS_859; + } else { + /* @ts-ignore */ + msg = $localize`:860:860`; + } + return msg; +} +function i18n_860() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 861 + */ + const MSG_EXTERNAL_7446150564054303111$$MANY_I18N_ATTRIBUTES_TS_860 = + /* @ts-ignore */ + goog.getMsg("861"); + msg = MSG_EXTERNAL_7446150564054303111$$MANY_I18N_ATTRIBUTES_TS_860; + } else { + /* @ts-ignore */ + msg = $localize`:861:861`; + } + return msg; +} +function i18n_861() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 862 + */ + const MSG_EXTERNAL_1022337239949024010$$MANY_I18N_ATTRIBUTES_TS_861 = + /* @ts-ignore */ + goog.getMsg("862"); + msg = MSG_EXTERNAL_1022337239949024010$$MANY_I18N_ATTRIBUTES_TS_861; + } else { + /* @ts-ignore */ + msg = $localize`:862:862`; + } + return msg; +} +function i18n_862() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 863 + */ + const MSG_EXTERNAL_264713073329289109$$MANY_I18N_ATTRIBUTES_TS_862 = + /* @ts-ignore */ + goog.getMsg("863"); + msg = MSG_EXTERNAL_264713073329289109$$MANY_I18N_ATTRIBUTES_TS_862; + } else { + /* @ts-ignore */ + msg = $localize`:863:863`; + } + return msg; +} +function i18n_863() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 864 + */ + const MSG_EXTERNAL_6449563930457765740$$MANY_I18N_ATTRIBUTES_TS_863 = + /* @ts-ignore */ + goog.getMsg("864"); + msg = MSG_EXTERNAL_6449563930457765740$$MANY_I18N_ATTRIBUTES_TS_863; + } else { + /* @ts-ignore */ + msg = $localize`:864:864`; + } + return msg; +} +function i18n_864() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 865 + */ + const MSG_EXTERNAL_6764374980882121731$$MANY_I18N_ATTRIBUTES_TS_864 = + /* @ts-ignore */ + goog.getMsg("865"); + msg = MSG_EXTERNAL_6764374980882121731$$MANY_I18N_ATTRIBUTES_TS_864; + } else { + /* @ts-ignore */ + msg = $localize`:865:865`; + } + return msg; +} +function i18n_865() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 866 + */ + const MSG_EXTERNAL_5026487409494899092$$MANY_I18N_ATTRIBUTES_TS_865 = + /* @ts-ignore */ + goog.getMsg("866"); + msg = MSG_EXTERNAL_5026487409494899092$$MANY_I18N_ATTRIBUTES_TS_865; + } else { + /* @ts-ignore */ + msg = $localize`:866:866`; + } + return msg; +} +function i18n_866() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 867 + */ + const MSG_EXTERNAL_1353222213317812001$$MANY_I18N_ATTRIBUTES_TS_866 = + /* @ts-ignore */ + goog.getMsg("867"); + msg = MSG_EXTERNAL_1353222213317812001$$MANY_I18N_ATTRIBUTES_TS_866; + } else { + /* @ts-ignore */ + msg = $localize`:867:867`; + } + return msg; +} +function i18n_867() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 868 + */ + const MSG_EXTERNAL_3745007094973953049$$MANY_I18N_ATTRIBUTES_TS_867 = + /* @ts-ignore */ + goog.getMsg("868"); + msg = MSG_EXTERNAL_3745007094973953049$$MANY_I18N_ATTRIBUTES_TS_867; + } else { + /* @ts-ignore */ + msg = $localize`:868:868`; + } + return msg; +} +function i18n_868() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 869 + */ + const MSG_EXTERNAL_8045124936718506767$$MANY_I18N_ATTRIBUTES_TS_868 = + /* @ts-ignore */ + goog.getMsg("869"); + msg = MSG_EXTERNAL_8045124936718506767$$MANY_I18N_ATTRIBUTES_TS_868; + } else { + /* @ts-ignore */ + msg = $localize`:869:869`; + } + return msg; +} +function i18n_869() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 870 + */ + const MSG_EXTERNAL_4908083333357466794$$MANY_I18N_ATTRIBUTES_TS_869 = + /* @ts-ignore */ + goog.getMsg("870"); + msg = MSG_EXTERNAL_4908083333357466794$$MANY_I18N_ATTRIBUTES_TS_869; + } else { + /* @ts-ignore */ + msg = $localize`:870:870`; + } + return msg; +} +function i18n_870() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 871 + */ + const MSG_EXTERNAL_4235699358766234282$$MANY_I18N_ATTRIBUTES_TS_870 = + /* @ts-ignore */ + goog.getMsg("871"); + msg = MSG_EXTERNAL_4235699358766234282$$MANY_I18N_ATTRIBUTES_TS_870; + } else { + /* @ts-ignore */ + msg = $localize`:871:871`; + } + return msg; +} +function i18n_871() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 872 + */ + const MSG_EXTERNAL_7726870922469339123$$MANY_I18N_ATTRIBUTES_TS_871 = + /* @ts-ignore */ + goog.getMsg("872"); + msg = MSG_EXTERNAL_7726870922469339123$$MANY_I18N_ATTRIBUTES_TS_871; + } else { + /* @ts-ignore */ + msg = $localize`:872:872`; + } + return msg; +} +function i18n_872() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 873 + */ + const MSG_EXTERNAL_8853974338040534885$$MANY_I18N_ATTRIBUTES_TS_872 = + /* @ts-ignore */ + goog.getMsg("873"); + msg = MSG_EXTERNAL_8853974338040534885$$MANY_I18N_ATTRIBUTES_TS_872; + } else { + /* @ts-ignore */ + msg = $localize`:873:873`; + } + return msg; +} +function i18n_873() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 874 + */ + const MSG_EXTERNAL_8774096724980409944$$MANY_I18N_ATTRIBUTES_TS_873 = + /* @ts-ignore */ + goog.getMsg("874"); + msg = MSG_EXTERNAL_8774096724980409944$$MANY_I18N_ATTRIBUTES_TS_873; + } else { + /* @ts-ignore */ + msg = $localize`:874:874`; + } + return msg; +} +function i18n_874() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 875 + */ + const MSG_EXTERNAL_6253024413698916342$$MANY_I18N_ATTRIBUTES_TS_874 = + /* @ts-ignore */ + goog.getMsg("875"); + msg = MSG_EXTERNAL_6253024413698916342$$MANY_I18N_ATTRIBUTES_TS_874; + } else { + /* @ts-ignore */ + msg = $localize`:875:875`; + } + return msg; +} +function i18n_875() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 876 + */ + const MSG_EXTERNAL_1146292740593980670$$MANY_I18N_ATTRIBUTES_TS_875 = + /* @ts-ignore */ + goog.getMsg("876"); + msg = MSG_EXTERNAL_1146292740593980670$$MANY_I18N_ATTRIBUTES_TS_875; + } else { + /* @ts-ignore */ + msg = $localize`:876:876`; + } + return msg; +} +function i18n_876() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 877 + */ + const MSG_EXTERNAL_3616480260646185039$$MANY_I18N_ATTRIBUTES_TS_876 = + /* @ts-ignore */ + goog.getMsg("877"); + msg = MSG_EXTERNAL_3616480260646185039$$MANY_I18N_ATTRIBUTES_TS_876; + } else { + /* @ts-ignore */ + msg = $localize`:877:877`; + } + return msg; +} +function i18n_877() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 878 + */ + const MSG_EXTERNAL_2018565490905568412$$MANY_I18N_ATTRIBUTES_TS_877 = + /* @ts-ignore */ + goog.getMsg("878"); + msg = MSG_EXTERNAL_2018565490905568412$$MANY_I18N_ATTRIBUTES_TS_877; + } else { + /* @ts-ignore */ + msg = $localize`:878:878`; + } + return msg; +} +function i18n_878() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 879 + */ + const MSG_EXTERNAL_6732061534146878179$$MANY_I18N_ATTRIBUTES_TS_878 = + /* @ts-ignore */ + goog.getMsg("879"); + msg = MSG_EXTERNAL_6732061534146878179$$MANY_I18N_ATTRIBUTES_TS_878; + } else { + /* @ts-ignore */ + msg = $localize`:879:879`; + } + return msg; +} +function i18n_879() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 880 + */ + const MSG_EXTERNAL_1655292393382153552$$MANY_I18N_ATTRIBUTES_TS_879 = + /* @ts-ignore */ + goog.getMsg("880"); + msg = MSG_EXTERNAL_1655292393382153552$$MANY_I18N_ATTRIBUTES_TS_879; + } else { + /* @ts-ignore */ + msg = $localize`:880:880`; + } + return msg; +} +function i18n_880() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 881 + */ + const MSG_EXTERNAL_1049126709492442925$$MANY_I18N_ATTRIBUTES_TS_880 = + /* @ts-ignore */ + goog.getMsg("881"); + msg = MSG_EXTERNAL_1049126709492442925$$MANY_I18N_ATTRIBUTES_TS_880; + } else { + /* @ts-ignore */ + msg = $localize`:881:881`; + } + return msg; +} +function i18n_881() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 882 + */ + const MSG_EXTERNAL_762189444063803320$$MANY_I18N_ATTRIBUTES_TS_881 = + /* @ts-ignore */ + goog.getMsg("882"); + msg = MSG_EXTERNAL_762189444063803320$$MANY_I18N_ATTRIBUTES_TS_881; + } else { + /* @ts-ignore */ + msg = $localize`:882:882`; + } + return msg; +} +function i18n_882() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 883 + */ + const MSG_EXTERNAL_3254062861328486985$$MANY_I18N_ATTRIBUTES_TS_882 = + /* @ts-ignore */ + goog.getMsg("883"); + msg = MSG_EXTERNAL_3254062861328486985$$MANY_I18N_ATTRIBUTES_TS_882; + } else { + /* @ts-ignore */ + msg = $localize`:883:883`; + } + return msg; +} +function i18n_883() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 884 + */ + const MSG_EXTERNAL_2902297989682858488$$MANY_I18N_ATTRIBUTES_TS_883 = + /* @ts-ignore */ + goog.getMsg("884"); + msg = MSG_EXTERNAL_2902297989682858488$$MANY_I18N_ATTRIBUTES_TS_883; + } else { + /* @ts-ignore */ + msg = $localize`:884:884`; + } + return msg; +} +function i18n_884() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 885 + */ + const MSG_EXTERNAL_4444907132180074359$$MANY_I18N_ATTRIBUTES_TS_884 = + /* @ts-ignore */ + goog.getMsg("885"); + msg = MSG_EXTERNAL_4444907132180074359$$MANY_I18N_ATTRIBUTES_TS_884; + } else { + /* @ts-ignore */ + msg = $localize`:885:885`; + } + return msg; +} +function i18n_885() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 886 + */ + const MSG_EXTERNAL_116241190130813449$$MANY_I18N_ATTRIBUTES_TS_885 = + /* @ts-ignore */ + goog.getMsg("886"); + msg = MSG_EXTERNAL_116241190130813449$$MANY_I18N_ATTRIBUTES_TS_885; + } else { + /* @ts-ignore */ + msg = $localize`:886:886`; + } + return msg; +} +function i18n_886() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 887 + */ + const MSG_EXTERNAL_1847502606699236868$$MANY_I18N_ATTRIBUTES_TS_886 = + /* @ts-ignore */ + goog.getMsg("887"); + msg = MSG_EXTERNAL_1847502606699236868$$MANY_I18N_ATTRIBUTES_TS_886; + } else { + /* @ts-ignore */ + msg = $localize`:887:887`; + } + return msg; +} +function i18n_887() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 888 + */ + const MSG_EXTERNAL_5467596240303515320$$MANY_I18N_ATTRIBUTES_TS_887 = + /* @ts-ignore */ + goog.getMsg("888"); + msg = MSG_EXTERNAL_5467596240303515320$$MANY_I18N_ATTRIBUTES_TS_887; + } else { + /* @ts-ignore */ + msg = $localize`:888:888`; + } + return msg; +} +function i18n_888() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 889 + */ + const MSG_EXTERNAL_1143549824257390237$$MANY_I18N_ATTRIBUTES_TS_888 = + /* @ts-ignore */ + goog.getMsg("889"); + msg = MSG_EXTERNAL_1143549824257390237$$MANY_I18N_ATTRIBUTES_TS_888; + } else { + /* @ts-ignore */ + msg = $localize`:889:889`; + } + return msg; +} +function i18n_889() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 890 + */ + const MSG_EXTERNAL_178997202225260840$$MANY_I18N_ATTRIBUTES_TS_889 = + /* @ts-ignore */ + goog.getMsg("890"); + msg = MSG_EXTERNAL_178997202225260840$$MANY_I18N_ATTRIBUTES_TS_889; + } else { + /* @ts-ignore */ + msg = $localize`:890:890`; + } + return msg; +} +function i18n_890() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 891 + */ + const MSG_EXTERNAL_7491064948060940564$$MANY_I18N_ATTRIBUTES_TS_890 = + /* @ts-ignore */ + goog.getMsg("891"); + msg = MSG_EXTERNAL_7491064948060940564$$MANY_I18N_ATTRIBUTES_TS_890; + } else { + /* @ts-ignore */ + msg = $localize`:891:891`; + } + return msg; +} +function i18n_891() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 892 + */ + const MSG_EXTERNAL_2580511447911285596$$MANY_I18N_ATTRIBUTES_TS_891 = + /* @ts-ignore */ + goog.getMsg("892"); + msg = MSG_EXTERNAL_2580511447911285596$$MANY_I18N_ATTRIBUTES_TS_891; + } else { + /* @ts-ignore */ + msg = $localize`:892:892`; + } + return msg; +} +function i18n_892() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 893 + */ + const MSG_EXTERNAL_2890778901939884897$$MANY_I18N_ATTRIBUTES_TS_892 = + /* @ts-ignore */ + goog.getMsg("893"); + msg = MSG_EXTERNAL_2890778901939884897$$MANY_I18N_ATTRIBUTES_TS_892; + } else { + /* @ts-ignore */ + msg = $localize`:893:893`; + } + return msg; +} +function i18n_893() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 894 + */ + const MSG_EXTERNAL_8496033544591763644$$MANY_I18N_ATTRIBUTES_TS_893 = + /* @ts-ignore */ + goog.getMsg("894"); + msg = MSG_EXTERNAL_8496033544591763644$$MANY_I18N_ATTRIBUTES_TS_893; + } else { + /* @ts-ignore */ + msg = $localize`:894:894`; + } + return msg; +} +function i18n_894() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 895 + */ + const MSG_EXTERNAL_1170216891349126798$$MANY_I18N_ATTRIBUTES_TS_894 = + /* @ts-ignore */ + goog.getMsg("895"); + msg = MSG_EXTERNAL_1170216891349126798$$MANY_I18N_ATTRIBUTES_TS_894; + } else { + /* @ts-ignore */ + msg = $localize`:895:895`; + } + return msg; +} +function i18n_895() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 896 + */ + const MSG_EXTERNAL_3730579587370801083$$MANY_I18N_ATTRIBUTES_TS_895 = + /* @ts-ignore */ + goog.getMsg("896"); + msg = MSG_EXTERNAL_3730579587370801083$$MANY_I18N_ATTRIBUTES_TS_895; + } else { + /* @ts-ignore */ + msg = $localize`:896:896`; + } + return msg; +} +function i18n_896() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 897 + */ + const MSG_EXTERNAL_3854276300312543507$$MANY_I18N_ATTRIBUTES_TS_896 = + /* @ts-ignore */ + goog.getMsg("897"); + msg = MSG_EXTERNAL_3854276300312543507$$MANY_I18N_ATTRIBUTES_TS_896; + } else { + /* @ts-ignore */ + msg = $localize`:897:897`; + } + return msg; +} +function i18n_897() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 898 + */ + const MSG_EXTERNAL_7075401687480378530$$MANY_I18N_ATTRIBUTES_TS_897 = + /* @ts-ignore */ + goog.getMsg("898"); + msg = MSG_EXTERNAL_7075401687480378530$$MANY_I18N_ATTRIBUTES_TS_897; + } else { + /* @ts-ignore */ + msg = $localize`:898:898`; + } + return msg; +} +function i18n_898() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 899 + */ + const MSG_EXTERNAL_7995774347682550065$$MANY_I18N_ATTRIBUTES_TS_898 = + /* @ts-ignore */ + goog.getMsg("899"); + msg = MSG_EXTERNAL_7995774347682550065$$MANY_I18N_ATTRIBUTES_TS_898; + } else { + /* @ts-ignore */ + msg = $localize`:899:899`; + } + return msg; +} +function i18n_899() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 900 + */ + const MSG_EXTERNAL_4408516231241419831$$MANY_I18N_ATTRIBUTES_TS_899 = + /* @ts-ignore */ + goog.getMsg("900"); + msg = MSG_EXTERNAL_4408516231241419831$$MANY_I18N_ATTRIBUTES_TS_899; + } else { + /* @ts-ignore */ + msg = $localize`:900:900`; + } + return msg; +} +function i18n_900() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 901 + */ + const MSG_EXTERNAL_2101239219038632154$$MANY_I18N_ATTRIBUTES_TS_900 = + /* @ts-ignore */ + goog.getMsg("901"); + msg = MSG_EXTERNAL_2101239219038632154$$MANY_I18N_ATTRIBUTES_TS_900; + } else { + /* @ts-ignore */ + msg = $localize`:901:901`; + } + return msg; +} +function i18n_901() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 902 + */ + const MSG_EXTERNAL_4967510859442101225$$MANY_I18N_ATTRIBUTES_TS_901 = + /* @ts-ignore */ + goog.getMsg("902"); + msg = MSG_EXTERNAL_4967510859442101225$$MANY_I18N_ATTRIBUTES_TS_901; + } else { + /* @ts-ignore */ + msg = $localize`:902:902`; + } + return msg; +} +function i18n_902() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 903 + */ + const MSG_EXTERNAL_6633629225136480639$$MANY_I18N_ATTRIBUTES_TS_902 = + /* @ts-ignore */ + goog.getMsg("903"); + msg = MSG_EXTERNAL_6633629225136480639$$MANY_I18N_ATTRIBUTES_TS_902; + } else { + /* @ts-ignore */ + msg = $localize`:903:903`; + } + return msg; +} +function i18n_903() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 904 + */ + const MSG_EXTERNAL_2759305893104357759$$MANY_I18N_ATTRIBUTES_TS_903 = + /* @ts-ignore */ + goog.getMsg("904"); + msg = MSG_EXTERNAL_2759305893104357759$$MANY_I18N_ATTRIBUTES_TS_903; + } else { + /* @ts-ignore */ + msg = $localize`:904:904`; + } + return msg; +} +function i18n_904() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 905 + */ + const MSG_EXTERNAL_2451980407806602000$$MANY_I18N_ATTRIBUTES_TS_904 = + /* @ts-ignore */ + goog.getMsg("905"); + msg = MSG_EXTERNAL_2451980407806602000$$MANY_I18N_ATTRIBUTES_TS_904; + } else { + /* @ts-ignore */ + msg = $localize`:905:905`; + } + return msg; +} +function i18n_905() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 906 + */ + const MSG_EXTERNAL_6233389725298747397$$MANY_I18N_ATTRIBUTES_TS_905 = + /* @ts-ignore */ + goog.getMsg("906"); + msg = MSG_EXTERNAL_6233389725298747397$$MANY_I18N_ATTRIBUTES_TS_905; + } else { + /* @ts-ignore */ + msg = $localize`:906:906`; + } + return msg; +} +function i18n_906() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 907 + */ + const MSG_EXTERNAL_6111753577636399696$$MANY_I18N_ATTRIBUTES_TS_906 = + /* @ts-ignore */ + goog.getMsg("907"); + msg = MSG_EXTERNAL_6111753577636399696$$MANY_I18N_ATTRIBUTES_TS_906; + } else { + /* @ts-ignore */ + msg = $localize`:907:907`; + } + return msg; +} +function i18n_907() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 908 + */ + const MSG_EXTERNAL_9126194935608266136$$MANY_I18N_ATTRIBUTES_TS_907 = + /* @ts-ignore */ + goog.getMsg("908"); + msg = MSG_EXTERNAL_9126194935608266136$$MANY_I18N_ATTRIBUTES_TS_907; + } else { + /* @ts-ignore */ + msg = $localize`:908:908`; + } + return msg; +} +function i18n_908() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 909 + */ + const MSG_EXTERNAL_6634236806192969298$$MANY_I18N_ATTRIBUTES_TS_908 = + /* @ts-ignore */ + goog.getMsg("909"); + msg = MSG_EXTERNAL_6634236806192969298$$MANY_I18N_ATTRIBUTES_TS_908; + } else { + /* @ts-ignore */ + msg = $localize`:909:909`; + } + return msg; +} +function i18n_909() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 910 + */ + const MSG_EXTERNAL_4989355804086858860$$MANY_I18N_ATTRIBUTES_TS_909 = + /* @ts-ignore */ + goog.getMsg("910"); + msg = MSG_EXTERNAL_4989355804086858860$$MANY_I18N_ATTRIBUTES_TS_909; + } else { + /* @ts-ignore */ + msg = $localize`:910:910`; + } + return msg; +} +function i18n_910() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 911 + */ + const MSG_EXTERNAL_559318340275719642$$MANY_I18N_ATTRIBUTES_TS_910 = + /* @ts-ignore */ + goog.getMsg("911"); + msg = MSG_EXTERNAL_559318340275719642$$MANY_I18N_ATTRIBUTES_TS_910; + } else { + /* @ts-ignore */ + msg = $localize`:911:911`; + } + return msg; +} +function i18n_911() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 912 + */ + const MSG_EXTERNAL_7151828829554642114$$MANY_I18N_ATTRIBUTES_TS_911 = + /* @ts-ignore */ + goog.getMsg("912"); + msg = MSG_EXTERNAL_7151828829554642114$$MANY_I18N_ATTRIBUTES_TS_911; + } else { + /* @ts-ignore */ + msg = $localize`:912:912`; + } + return msg; +} +function i18n_912() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 913 + */ + const MSG_EXTERNAL_9210279744330234368$$MANY_I18N_ATTRIBUTES_TS_912 = + /* @ts-ignore */ + goog.getMsg("913"); + msg = MSG_EXTERNAL_9210279744330234368$$MANY_I18N_ATTRIBUTES_TS_912; + } else { + /* @ts-ignore */ + msg = $localize`:913:913`; + } + return msg; +} +function i18n_913() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 914 + */ + const MSG_EXTERNAL_4855532047767902385$$MANY_I18N_ATTRIBUTES_TS_913 = + /* @ts-ignore */ + goog.getMsg("914"); + msg = MSG_EXTERNAL_4855532047767902385$$MANY_I18N_ATTRIBUTES_TS_913; + } else { + /* @ts-ignore */ + msg = $localize`:914:914`; + } + return msg; +} +function i18n_914() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 915 + */ + const MSG_EXTERNAL_2883473504477680479$$MANY_I18N_ATTRIBUTES_TS_914 = + /* @ts-ignore */ + goog.getMsg("915"); + msg = MSG_EXTERNAL_2883473504477680479$$MANY_I18N_ATTRIBUTES_TS_914; + } else { + /* @ts-ignore */ + msg = $localize`:915:915`; + } + return msg; +} +function i18n_915() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 916 + */ + const MSG_EXTERNAL_3123982867846495262$$MANY_I18N_ATTRIBUTES_TS_915 = + /* @ts-ignore */ + goog.getMsg("916"); + msg = MSG_EXTERNAL_3123982867846495262$$MANY_I18N_ATTRIBUTES_TS_915; + } else { + /* @ts-ignore */ + msg = $localize`:916:916`; + } + return msg; +} +function i18n_916() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 917 + */ + const MSG_EXTERNAL_2849061081743835076$$MANY_I18N_ATTRIBUTES_TS_916 = + /* @ts-ignore */ + goog.getMsg("917"); + msg = MSG_EXTERNAL_2849061081743835076$$MANY_I18N_ATTRIBUTES_TS_916; + } else { + /* @ts-ignore */ + msg = $localize`:917:917`; + } + return msg; +} +function i18n_917() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 918 + */ + const MSG_EXTERNAL_1772650429088627991$$MANY_I18N_ATTRIBUTES_TS_917 = + /* @ts-ignore */ + goog.getMsg("918"); + msg = MSG_EXTERNAL_1772650429088627991$$MANY_I18N_ATTRIBUTES_TS_917; + } else { + /* @ts-ignore */ + msg = $localize`:918:918`; + } + return msg; +} +function i18n_918() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 919 + */ + const MSG_EXTERNAL_5358255354818979895$$MANY_I18N_ATTRIBUTES_TS_918 = + /* @ts-ignore */ + goog.getMsg("919"); + msg = MSG_EXTERNAL_5358255354818979895$$MANY_I18N_ATTRIBUTES_TS_918; + } else { + /* @ts-ignore */ + msg = $localize`:919:919`; + } + return msg; +} +function i18n_919() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 920 + */ + const MSG_EXTERNAL_3826993176960150034$$MANY_I18N_ATTRIBUTES_TS_919 = + /* @ts-ignore */ + goog.getMsg("920"); + msg = MSG_EXTERNAL_3826993176960150034$$MANY_I18N_ATTRIBUTES_TS_919; + } else { + /* @ts-ignore */ + msg = $localize`:920:920`; + } + return msg; +} +function i18n_920() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 921 + */ + const MSG_EXTERNAL_144932017622617329$$MANY_I18N_ATTRIBUTES_TS_920 = + /* @ts-ignore */ + goog.getMsg("921"); + msg = MSG_EXTERNAL_144932017622617329$$MANY_I18N_ATTRIBUTES_TS_920; + } else { + /* @ts-ignore */ + msg = $localize`:921:921`; + } + return msg; +} +function i18n_921() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 922 + */ + const MSG_EXTERNAL_7906182227402159516$$MANY_I18N_ATTRIBUTES_TS_921 = + /* @ts-ignore */ + goog.getMsg("922"); + msg = MSG_EXTERNAL_7906182227402159516$$MANY_I18N_ATTRIBUTES_TS_921; + } else { + /* @ts-ignore */ + msg = $localize`:922:922`; + } + return msg; +} +function i18n_922() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 923 + */ + const MSG_EXTERNAL_1901786818324935623$$MANY_I18N_ATTRIBUTES_TS_922 = + /* @ts-ignore */ + goog.getMsg("923"); + msg = MSG_EXTERNAL_1901786818324935623$$MANY_I18N_ATTRIBUTES_TS_922; + } else { + /* @ts-ignore */ + msg = $localize`:923:923`; + } + return msg; +} +function i18n_923() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 924 + */ + const MSG_EXTERNAL_5599756499646193107$$MANY_I18N_ATTRIBUTES_TS_923 = + /* @ts-ignore */ + goog.getMsg("924"); + msg = MSG_EXTERNAL_5599756499646193107$$MANY_I18N_ATTRIBUTES_TS_923; + } else { + /* @ts-ignore */ + msg = $localize`:924:924`; + } + return msg; +} +function i18n_924() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 925 + */ + const MSG_EXTERNAL_6827119025313779880$$MANY_I18N_ATTRIBUTES_TS_924 = + /* @ts-ignore */ + goog.getMsg("925"); + msg = MSG_EXTERNAL_6827119025313779880$$MANY_I18N_ATTRIBUTES_TS_924; + } else { + /* @ts-ignore */ + msg = $localize`:925:925`; + } + return msg; +} +function i18n_925() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 926 + */ + const MSG_EXTERNAL_7417529777895998021$$MANY_I18N_ATTRIBUTES_TS_925 = + /* @ts-ignore */ + goog.getMsg("926"); + msg = MSG_EXTERNAL_7417529777895998021$$MANY_I18N_ATTRIBUTES_TS_925; + } else { + /* @ts-ignore */ + msg = $localize`:926:926`; + } + return msg; +} +function i18n_926() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 927 + */ + const MSG_EXTERNAL_549852104502047746$$MANY_I18N_ATTRIBUTES_TS_926 = + /* @ts-ignore */ + goog.getMsg("927"); + msg = MSG_EXTERNAL_549852104502047746$$MANY_I18N_ATTRIBUTES_TS_926; + } else { + /* @ts-ignore */ + msg = $localize`:927:927`; + } + return msg; +} +function i18n_927() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 928 + */ + const MSG_EXTERNAL_2735103616054751411$$MANY_I18N_ATTRIBUTES_TS_927 = + /* @ts-ignore */ + goog.getMsg("928"); + msg = MSG_EXTERNAL_2735103616054751411$$MANY_I18N_ATTRIBUTES_TS_927; + } else { + /* @ts-ignore */ + msg = $localize`:928:928`; + } + return msg; +} +function i18n_928() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 929 + */ + const MSG_EXTERNAL_2984842085233698041$$MANY_I18N_ATTRIBUTES_TS_928 = + /* @ts-ignore */ + goog.getMsg("929"); + msg = MSG_EXTERNAL_2984842085233698041$$MANY_I18N_ATTRIBUTES_TS_928; + } else { + /* @ts-ignore */ + msg = $localize`:929:929`; + } + return msg; +} +function i18n_929() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 930 + */ + const MSG_EXTERNAL_2291084883224977240$$MANY_I18N_ATTRIBUTES_TS_929 = + /* @ts-ignore */ + goog.getMsg("930"); + msg = MSG_EXTERNAL_2291084883224977240$$MANY_I18N_ATTRIBUTES_TS_929; + } else { + /* @ts-ignore */ + msg = $localize`:930:930`; + } + return msg; +} +function i18n_930() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 931 + */ + const MSG_EXTERNAL_7042117067195601148$$MANY_I18N_ATTRIBUTES_TS_930 = + /* @ts-ignore */ + goog.getMsg("931"); + msg = MSG_EXTERNAL_7042117067195601148$$MANY_I18N_ATTRIBUTES_TS_930; + } else { + /* @ts-ignore */ + msg = $localize`:931:931`; + } + return msg; +} +function i18n_931() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 932 + */ + const MSG_EXTERNAL_8193475114374708351$$MANY_I18N_ATTRIBUTES_TS_931 = + /* @ts-ignore */ + goog.getMsg("932"); + msg = MSG_EXTERNAL_8193475114374708351$$MANY_I18N_ATTRIBUTES_TS_931; + } else { + /* @ts-ignore */ + msg = $localize`:932:932`; + } + return msg; +} +function i18n_932() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 933 + */ + const MSG_EXTERNAL_3344741141913186660$$MANY_I18N_ATTRIBUTES_TS_932 = + /* @ts-ignore */ + goog.getMsg("933"); + msg = MSG_EXTERNAL_3344741141913186660$$MANY_I18N_ATTRIBUTES_TS_932; + } else { + /* @ts-ignore */ + msg = $localize`:933:933`; + } + return msg; +} +function i18n_933() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 934 + */ + const MSG_EXTERNAL_7711375839519716779$$MANY_I18N_ATTRIBUTES_TS_933 = + /* @ts-ignore */ + goog.getMsg("934"); + msg = MSG_EXTERNAL_7711375839519716779$$MANY_I18N_ATTRIBUTES_TS_933; + } else { + /* @ts-ignore */ + msg = $localize`:934:934`; + } + return msg; +} +function i18n_934() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 935 + */ + const MSG_EXTERNAL_8427128500859670957$$MANY_I18N_ATTRIBUTES_TS_934 = + /* @ts-ignore */ + goog.getMsg("935"); + msg = MSG_EXTERNAL_8427128500859670957$$MANY_I18N_ATTRIBUTES_TS_934; + } else { + /* @ts-ignore */ + msg = $localize`:935:935`; + } + return msg; +} +function i18n_935() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 936 + */ + const MSG_EXTERNAL_2777735753391832904$$MANY_I18N_ATTRIBUTES_TS_935 = + /* @ts-ignore */ + goog.getMsg("936"); + msg = MSG_EXTERNAL_2777735753391832904$$MANY_I18N_ATTRIBUTES_TS_935; + } else { + /* @ts-ignore */ + msg = $localize`:936:936`; + } + return msg; +} +function i18n_936() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 937 + */ + const MSG_EXTERNAL_7611895375513361983$$MANY_I18N_ATTRIBUTES_TS_936 = + /* @ts-ignore */ + goog.getMsg("937"); + msg = MSG_EXTERNAL_7611895375513361983$$MANY_I18N_ATTRIBUTES_TS_936; + } else { + /* @ts-ignore */ + msg = $localize`:937:937`; + } + return msg; +} +function i18n_937() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 938 + */ + const MSG_EXTERNAL_533347868427915099$$MANY_I18N_ATTRIBUTES_TS_937 = + /* @ts-ignore */ + goog.getMsg("938"); + msg = MSG_EXTERNAL_533347868427915099$$MANY_I18N_ATTRIBUTES_TS_937; + } else { + /* @ts-ignore */ + msg = $localize`:938:938`; + } + return msg; +} +function i18n_938() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 939 + */ + const MSG_EXTERNAL_748465198757315031$$MANY_I18N_ATTRIBUTES_TS_938 = + /* @ts-ignore */ + goog.getMsg("939"); + msg = MSG_EXTERNAL_748465198757315031$$MANY_I18N_ATTRIBUTES_TS_938; + } else { + /* @ts-ignore */ + msg = $localize`:939:939`; + } + return msg; +} +function i18n_939() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 940 + */ + const MSG_EXTERNAL_8119864861931202455$$MANY_I18N_ATTRIBUTES_TS_939 = + /* @ts-ignore */ + goog.getMsg("940"); + msg = MSG_EXTERNAL_8119864861931202455$$MANY_I18N_ATTRIBUTES_TS_939; + } else { + /* @ts-ignore */ + msg = $localize`:940:940`; + } + return msg; +} +function i18n_940() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 941 + */ + const MSG_EXTERNAL_4492272824701700467$$MANY_I18N_ATTRIBUTES_TS_940 = + /* @ts-ignore */ + goog.getMsg("941"); + msg = MSG_EXTERNAL_4492272824701700467$$MANY_I18N_ATTRIBUTES_TS_940; + } else { + /* @ts-ignore */ + msg = $localize`:941:941`; + } + return msg; +} +function i18n_941() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 942 + */ + const MSG_EXTERNAL_6296778842719098690$$MANY_I18N_ATTRIBUTES_TS_941 = + /* @ts-ignore */ + goog.getMsg("942"); + msg = MSG_EXTERNAL_6296778842719098690$$MANY_I18N_ATTRIBUTES_TS_941; + } else { + /* @ts-ignore */ + msg = $localize`:942:942`; + } + return msg; +} +function i18n_942() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 943 + */ + const MSG_EXTERNAL_8554722406346847370$$MANY_I18N_ATTRIBUTES_TS_942 = + /* @ts-ignore */ + goog.getMsg("943"); + msg = MSG_EXTERNAL_8554722406346847370$$MANY_I18N_ATTRIBUTES_TS_942; + } else { + /* @ts-ignore */ + msg = $localize`:943:943`; + } + return msg; +} +function i18n_943() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 944 + */ + const MSG_EXTERNAL_5280188299861972088$$MANY_I18N_ATTRIBUTES_TS_943 = + /* @ts-ignore */ + goog.getMsg("944"); + msg = MSG_EXTERNAL_5280188299861972088$$MANY_I18N_ATTRIBUTES_TS_943; + } else { + /* @ts-ignore */ + msg = $localize`:944:944`; + } + return msg; +} +function i18n_944() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 945 + */ + const MSG_EXTERNAL_7149764251460755327$$MANY_I18N_ATTRIBUTES_TS_944 = + /* @ts-ignore */ + goog.getMsg("945"); + msg = MSG_EXTERNAL_7149764251460755327$$MANY_I18N_ATTRIBUTES_TS_944; + } else { + /* @ts-ignore */ + msg = $localize`:945:945`; + } + return msg; +} +function i18n_945() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 946 + */ + const MSG_EXTERNAL_5635035040686377129$$MANY_I18N_ATTRIBUTES_TS_945 = + /* @ts-ignore */ + goog.getMsg("946"); + msg = MSG_EXTERNAL_5635035040686377129$$MANY_I18N_ATTRIBUTES_TS_945; + } else { + /* @ts-ignore */ + msg = $localize`:946:946`; + } + return msg; +} +function i18n_946() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 947 + */ + const MSG_EXTERNAL_7935238619554134094$$MANY_I18N_ATTRIBUTES_TS_946 = + /* @ts-ignore */ + goog.getMsg("947"); + msg = MSG_EXTERNAL_7935238619554134094$$MANY_I18N_ATTRIBUTES_TS_946; + } else { + /* @ts-ignore */ + msg = $localize`:947:947`; + } + return msg; +} +function i18n_947() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 948 + */ + const MSG_EXTERNAL_4440245207831379346$$MANY_I18N_ATTRIBUTES_TS_947 = + /* @ts-ignore */ + goog.getMsg("948"); + msg = MSG_EXTERNAL_4440245207831379346$$MANY_I18N_ATTRIBUTES_TS_947; + } else { + /* @ts-ignore */ + msg = $localize`:948:948`; + } + return msg; +} +function i18n_948() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 949 + */ + const MSG_EXTERNAL_4644686625338167325$$MANY_I18N_ATTRIBUTES_TS_948 = + /* @ts-ignore */ + goog.getMsg("949"); + msg = MSG_EXTERNAL_4644686625338167325$$MANY_I18N_ATTRIBUTES_TS_948; + } else { + /* @ts-ignore */ + msg = $localize`:949:949`; + } + return msg; +} +function i18n_949() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 950 + */ + const MSG_EXTERNAL_8898666941873063962$$MANY_I18N_ATTRIBUTES_TS_949 = + /* @ts-ignore */ + goog.getMsg("950"); + msg = MSG_EXTERNAL_8898666941873063962$$MANY_I18N_ATTRIBUTES_TS_949; + } else { + /* @ts-ignore */ + msg = $localize`:950:950`; + } + return msg; +} +function i18n_950() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 951 + */ + const MSG_EXTERNAL_2884693679599752358$$MANY_I18N_ATTRIBUTES_TS_950 = + /* @ts-ignore */ + goog.getMsg("951"); + msg = MSG_EXTERNAL_2884693679599752358$$MANY_I18N_ATTRIBUTES_TS_950; + } else { + /* @ts-ignore */ + msg = $localize`:951:951`; + } + return msg; +} +function i18n_951() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 952 + */ + const MSG_EXTERNAL_2301825012981372234$$MANY_I18N_ATTRIBUTES_TS_951 = + /* @ts-ignore */ + goog.getMsg("952"); + msg = MSG_EXTERNAL_2301825012981372234$$MANY_I18N_ATTRIBUTES_TS_951; + } else { + /* @ts-ignore */ + msg = $localize`:952:952`; + } + return msg; +} +function i18n_952() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 953 + */ + const MSG_EXTERNAL_220420259785501009$$MANY_I18N_ATTRIBUTES_TS_952 = + /* @ts-ignore */ + goog.getMsg("953"); + msg = MSG_EXTERNAL_220420259785501009$$MANY_I18N_ATTRIBUTES_TS_952; + } else { + /* @ts-ignore */ + msg = $localize`:953:953`; + } + return msg; +} +function i18n_953() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 954 + */ + const MSG_EXTERNAL_5793190343241638325$$MANY_I18N_ATTRIBUTES_TS_953 = + /* @ts-ignore */ + goog.getMsg("954"); + msg = MSG_EXTERNAL_5793190343241638325$$MANY_I18N_ATTRIBUTES_TS_953; + } else { + /* @ts-ignore */ + msg = $localize`:954:954`; + } + return msg; +} +function i18n_954() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 955 + */ + const MSG_EXTERNAL_4355277743930860786$$MANY_I18N_ATTRIBUTES_TS_954 = + /* @ts-ignore */ + goog.getMsg("955"); + msg = MSG_EXTERNAL_4355277743930860786$$MANY_I18N_ATTRIBUTES_TS_954; + } else { + /* @ts-ignore */ + msg = $localize`:955:955`; + } + return msg; +} +function i18n_955() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 956 + */ + const MSG_EXTERNAL_7794916460794862153$$MANY_I18N_ATTRIBUTES_TS_955 = + /* @ts-ignore */ + goog.getMsg("956"); + msg = MSG_EXTERNAL_7794916460794862153$$MANY_I18N_ATTRIBUTES_TS_955; + } else { + /* @ts-ignore */ + msg = $localize`:956:956`; + } + return msg; +} +function i18n_956() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 957 + */ + const MSG_EXTERNAL_6916695237387612271$$MANY_I18N_ATTRIBUTES_TS_956 = + /* @ts-ignore */ + goog.getMsg("957"); + msg = MSG_EXTERNAL_6916695237387612271$$MANY_I18N_ATTRIBUTES_TS_956; + } else { + /* @ts-ignore */ + msg = $localize`:957:957`; + } + return msg; +} +function i18n_957() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 958 + */ + const MSG_EXTERNAL_3266221757094376930$$MANY_I18N_ATTRIBUTES_TS_957 = + /* @ts-ignore */ + goog.getMsg("958"); + msg = MSG_EXTERNAL_3266221757094376930$$MANY_I18N_ATTRIBUTES_TS_957; + } else { + /* @ts-ignore */ + msg = $localize`:958:958`; + } + return msg; +} +function i18n_958() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 959 + */ + const MSG_EXTERNAL_8803193050111058210$$MANY_I18N_ATTRIBUTES_TS_958 = + /* @ts-ignore */ + goog.getMsg("959"); + msg = MSG_EXTERNAL_8803193050111058210$$MANY_I18N_ATTRIBUTES_TS_958; + } else { + /* @ts-ignore */ + msg = $localize`:959:959`; + } + return msg; +} +function i18n_959() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 960 + */ + const MSG_EXTERNAL_1867225321244992645$$MANY_I18N_ATTRIBUTES_TS_959 = + /* @ts-ignore */ + goog.getMsg("960"); + msg = MSG_EXTERNAL_1867225321244992645$$MANY_I18N_ATTRIBUTES_TS_959; + } else { + /* @ts-ignore */ + msg = $localize`:960:960`; + } + return msg; +} +function i18n_960() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 961 + */ + const MSG_EXTERNAL_84300565037175591$$MANY_I18N_ATTRIBUTES_TS_960 = + /* @ts-ignore */ + goog.getMsg("961"); + msg = MSG_EXTERNAL_84300565037175591$$MANY_I18N_ATTRIBUTES_TS_960; + } else { + /* @ts-ignore */ + msg = $localize`:961:961`; + } + return msg; +} +function i18n_961() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 962 + */ + const MSG_EXTERNAL_8760900674130693521$$MANY_I18N_ATTRIBUTES_TS_961 = + /* @ts-ignore */ + goog.getMsg("962"); + msg = MSG_EXTERNAL_8760900674130693521$$MANY_I18N_ATTRIBUTES_TS_961; + } else { + /* @ts-ignore */ + msg = $localize`:962:962`; + } + return msg; +} +function i18n_962() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 963 + */ + const MSG_EXTERNAL_409837923447242926$$MANY_I18N_ATTRIBUTES_TS_962 = + /* @ts-ignore */ + goog.getMsg("963"); + msg = MSG_EXTERNAL_409837923447242926$$MANY_I18N_ATTRIBUTES_TS_962; + } else { + /* @ts-ignore */ + msg = $localize`:963:963`; + } + return msg; +} +function i18n_963() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 964 + */ + const MSG_EXTERNAL_4337683855114402040$$MANY_I18N_ATTRIBUTES_TS_963 = + /* @ts-ignore */ + goog.getMsg("964"); + msg = MSG_EXTERNAL_4337683855114402040$$MANY_I18N_ATTRIBUTES_TS_963; + } else { + /* @ts-ignore */ + msg = $localize`:964:964`; + } + return msg; +} +function i18n_964() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 965 + */ + const MSG_EXTERNAL_1783631509129679657$$MANY_I18N_ATTRIBUTES_TS_964 = + /* @ts-ignore */ + goog.getMsg("965"); + msg = MSG_EXTERNAL_1783631509129679657$$MANY_I18N_ATTRIBUTES_TS_964; + } else { + /* @ts-ignore */ + msg = $localize`:965:965`; + } + return msg; +} +function i18n_965() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 966 + */ + const MSG_EXTERNAL_4031327718859850652$$MANY_I18N_ATTRIBUTES_TS_965 = + /* @ts-ignore */ + goog.getMsg("966"); + msg = MSG_EXTERNAL_4031327718859850652$$MANY_I18N_ATTRIBUTES_TS_965; + } else { + /* @ts-ignore */ + msg = $localize`:966:966`; + } + return msg; +} +function i18n_966() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 967 + */ + const MSG_EXTERNAL_7476082723771536276$$MANY_I18N_ATTRIBUTES_TS_966 = + /* @ts-ignore */ + goog.getMsg("967"); + msg = MSG_EXTERNAL_7476082723771536276$$MANY_I18N_ATTRIBUTES_TS_966; + } else { + /* @ts-ignore */ + msg = $localize`:967:967`; + } + return msg; +} +function i18n_967() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 968 + */ + const MSG_EXTERNAL_6944997819445312856$$MANY_I18N_ATTRIBUTES_TS_967 = + /* @ts-ignore */ + goog.getMsg("968"); + msg = MSG_EXTERNAL_6944997819445312856$$MANY_I18N_ATTRIBUTES_TS_967; + } else { + /* @ts-ignore */ + msg = $localize`:968:968`; + } + return msg; +} +function i18n_968() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 969 + */ + const MSG_EXTERNAL_7235214694789174479$$MANY_I18N_ATTRIBUTES_TS_968 = + /* @ts-ignore */ + goog.getMsg("969"); + msg = MSG_EXTERNAL_7235214694789174479$$MANY_I18N_ATTRIBUTES_TS_968; + } else { + /* @ts-ignore */ + msg = $localize`:969:969`; + } + return msg; +} +function i18n_969() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 970 + */ + const MSG_EXTERNAL_476917990907019245$$MANY_I18N_ATTRIBUTES_TS_969 = + /* @ts-ignore */ + goog.getMsg("970"); + msg = MSG_EXTERNAL_476917990907019245$$MANY_I18N_ATTRIBUTES_TS_969; + } else { + /* @ts-ignore */ + msg = $localize`:970:970`; + } + return msg; +} +function i18n_970() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 971 + */ + const MSG_EXTERNAL_4192519059083852944$$MANY_I18N_ATTRIBUTES_TS_970 = + /* @ts-ignore */ + goog.getMsg("971"); + msg = MSG_EXTERNAL_4192519059083852944$$MANY_I18N_ATTRIBUTES_TS_970; + } else { + /* @ts-ignore */ + msg = $localize`:971:971`; + } + return msg; +} +function i18n_971() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 972 + */ + const MSG_EXTERNAL_4488989513006386681$$MANY_I18N_ATTRIBUTES_TS_971 = + /* @ts-ignore */ + goog.getMsg("972"); + msg = MSG_EXTERNAL_4488989513006386681$$MANY_I18N_ATTRIBUTES_TS_971; + } else { + /* @ts-ignore */ + msg = $localize`:972:972`; + } + return msg; +} +function i18n_972() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 973 + */ + const MSG_EXTERNAL_6435315635394757075$$MANY_I18N_ATTRIBUTES_TS_972 = + /* @ts-ignore */ + goog.getMsg("973"); + msg = MSG_EXTERNAL_6435315635394757075$$MANY_I18N_ATTRIBUTES_TS_972; + } else { + /* @ts-ignore */ + msg = $localize`:973:973`; + } + return msg; +} +function i18n_973() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 974 + */ + const MSG_EXTERNAL_3556754794890039042$$MANY_I18N_ATTRIBUTES_TS_973 = + /* @ts-ignore */ + goog.getMsg("974"); + msg = MSG_EXTERNAL_3556754794890039042$$MANY_I18N_ATTRIBUTES_TS_973; + } else { + /* @ts-ignore */ + msg = $localize`:974:974`; + } + return msg; +} +function i18n_974() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 975 + */ + const MSG_EXTERNAL_7419984011877865274$$MANY_I18N_ATTRIBUTES_TS_974 = + /* @ts-ignore */ + goog.getMsg("975"); + msg = MSG_EXTERNAL_7419984011877865274$$MANY_I18N_ATTRIBUTES_TS_974; + } else { + /* @ts-ignore */ + msg = $localize`:975:975`; + } + return msg; +} +function i18n_975() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 976 + */ + const MSG_EXTERNAL_6696304441905635524$$MANY_I18N_ATTRIBUTES_TS_975 = + /* @ts-ignore */ + goog.getMsg("976"); + msg = MSG_EXTERNAL_6696304441905635524$$MANY_I18N_ATTRIBUTES_TS_975; + } else { + /* @ts-ignore */ + msg = $localize`:976:976`; + } + return msg; +} +function i18n_976() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 977 + */ + const MSG_EXTERNAL_1377609742372019379$$MANY_I18N_ATTRIBUTES_TS_976 = + /* @ts-ignore */ + goog.getMsg("977"); + msg = MSG_EXTERNAL_1377609742372019379$$MANY_I18N_ATTRIBUTES_TS_976; + } else { + /* @ts-ignore */ + msg = $localize`:977:977`; + } + return msg; +} +function i18n_977() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 978 + */ + const MSG_EXTERNAL_1114883346309089487$$MANY_I18N_ATTRIBUTES_TS_977 = + /* @ts-ignore */ + goog.getMsg("978"); + msg = MSG_EXTERNAL_1114883346309089487$$MANY_I18N_ATTRIBUTES_TS_977; + } else { + /* @ts-ignore */ + msg = $localize`:978:978`; + } + return msg; +} +function i18n_978() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 979 + */ + const MSG_EXTERNAL_51249307998526243$$MANY_I18N_ATTRIBUTES_TS_978 = + /* @ts-ignore */ + goog.getMsg("979"); + msg = MSG_EXTERNAL_51249307998526243$$MANY_I18N_ATTRIBUTES_TS_978; + } else { + /* @ts-ignore */ + msg = $localize`:979:979`; + } + return msg; +} +function i18n_979() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 980 + */ + const MSG_EXTERNAL_918217691820643885$$MANY_I18N_ATTRIBUTES_TS_979 = + /* @ts-ignore */ + goog.getMsg("980"); + msg = MSG_EXTERNAL_918217691820643885$$MANY_I18N_ATTRIBUTES_TS_979; + } else { + /* @ts-ignore */ + msg = $localize`:980:980`; + } + return msg; +} +function i18n_980() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 981 + */ + const MSG_EXTERNAL_6276856084827044622$$MANY_I18N_ATTRIBUTES_TS_980 = + /* @ts-ignore */ + goog.getMsg("981"); + msg = MSG_EXTERNAL_6276856084827044622$$MANY_I18N_ATTRIBUTES_TS_980; + } else { + /* @ts-ignore */ + msg = $localize`:981:981`; + } + return msg; +} +function i18n_981() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 982 + */ + const MSG_EXTERNAL_3926232380881867734$$MANY_I18N_ATTRIBUTES_TS_981 = + /* @ts-ignore */ + goog.getMsg("982"); + msg = MSG_EXTERNAL_3926232380881867734$$MANY_I18N_ATTRIBUTES_TS_981; + } else { + /* @ts-ignore */ + msg = $localize`:982:982`; + } + return msg; +} +function i18n_982() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 983 + */ + const MSG_EXTERNAL_4021383907091137654$$MANY_I18N_ATTRIBUTES_TS_982 = + /* @ts-ignore */ + goog.getMsg("983"); + msg = MSG_EXTERNAL_4021383907091137654$$MANY_I18N_ATTRIBUTES_TS_982; + } else { + /* @ts-ignore */ + msg = $localize`:983:983`; + } + return msg; +} +function i18n_983() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 984 + */ + const MSG_EXTERNAL_2111725909660440742$$MANY_I18N_ATTRIBUTES_TS_983 = + /* @ts-ignore */ + goog.getMsg("984"); + msg = MSG_EXTERNAL_2111725909660440742$$MANY_I18N_ATTRIBUTES_TS_983; + } else { + /* @ts-ignore */ + msg = $localize`:984:984`; + } + return msg; +} +function i18n_984() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 985 + */ + const MSG_EXTERNAL_3050977062967573353$$MANY_I18N_ATTRIBUTES_TS_984 = + /* @ts-ignore */ + goog.getMsg("985"); + msg = MSG_EXTERNAL_3050977062967573353$$MANY_I18N_ATTRIBUTES_TS_984; + } else { + /* @ts-ignore */ + msg = $localize`:985:985`; + } + return msg; +} +function i18n_985() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 986 + */ + const MSG_EXTERNAL_3325247151618123089$$MANY_I18N_ATTRIBUTES_TS_985 = + /* @ts-ignore */ + goog.getMsg("986"); + msg = MSG_EXTERNAL_3325247151618123089$$MANY_I18N_ATTRIBUTES_TS_985; + } else { + /* @ts-ignore */ + msg = $localize`:986:986`; + } + return msg; +} +function i18n_986() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 987 + */ + const MSG_EXTERNAL_5946412549600479173$$MANY_I18N_ATTRIBUTES_TS_986 = + /* @ts-ignore */ + goog.getMsg("987"); + msg = MSG_EXTERNAL_5946412549600479173$$MANY_I18N_ATTRIBUTES_TS_986; + } else { + /* @ts-ignore */ + msg = $localize`:987:987`; + } + return msg; +} +function i18n_987() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 988 + */ + const MSG_EXTERNAL_335671797902107655$$MANY_I18N_ATTRIBUTES_TS_987 = + /* @ts-ignore */ + goog.getMsg("988"); + msg = MSG_EXTERNAL_335671797902107655$$MANY_I18N_ATTRIBUTES_TS_987; + } else { + /* @ts-ignore */ + msg = $localize`:988:988`; + } + return msg; +} +function i18n_988() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 989 + */ + const MSG_EXTERNAL_7592938793775110918$$MANY_I18N_ATTRIBUTES_TS_988 = + /* @ts-ignore */ + goog.getMsg("989"); + msg = MSG_EXTERNAL_7592938793775110918$$MANY_I18N_ATTRIBUTES_TS_988; + } else { + /* @ts-ignore */ + msg = $localize`:989:989`; + } + return msg; +} +function i18n_989() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 990 + */ + const MSG_EXTERNAL_8387397612652592951$$MANY_I18N_ATTRIBUTES_TS_989 = + /* @ts-ignore */ + goog.getMsg("990"); + msg = MSG_EXTERNAL_8387397612652592951$$MANY_I18N_ATTRIBUTES_TS_989; + } else { + /* @ts-ignore */ + msg = $localize`:990:990`; + } + return msg; +} +function i18n_990() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 991 + */ + const MSG_EXTERNAL_4596042704121123310$$MANY_I18N_ATTRIBUTES_TS_990 = + /* @ts-ignore */ + goog.getMsg("991"); + msg = MSG_EXTERNAL_4596042704121123310$$MANY_I18N_ATTRIBUTES_TS_990; + } else { + /* @ts-ignore */ + msg = $localize`:991:991`; + } + return msg; +} +function i18n_991() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 992 + */ + const MSG_EXTERNAL_6551078144457953925$$MANY_I18N_ATTRIBUTES_TS_991 = + /* @ts-ignore */ + goog.getMsg("992"); + msg = MSG_EXTERNAL_6551078144457953925$$MANY_I18N_ATTRIBUTES_TS_991; + } else { + /* @ts-ignore */ + msg = $localize`:992:992`; + } + return msg; +} +function i18n_992() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 993 + */ + const MSG_EXTERNAL_3829977354757415485$$MANY_I18N_ATTRIBUTES_TS_992 = + /* @ts-ignore */ + goog.getMsg("993"); + msg = MSG_EXTERNAL_3829977354757415485$$MANY_I18N_ATTRIBUTES_TS_992; + } else { + /* @ts-ignore */ + msg = $localize`:993:993`; + } + return msg; +} +function i18n_993() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 994 + */ + const MSG_EXTERNAL_5908982775668501451$$MANY_I18N_ATTRIBUTES_TS_993 = + /* @ts-ignore */ + goog.getMsg("994"); + msg = MSG_EXTERNAL_5908982775668501451$$MANY_I18N_ATTRIBUTES_TS_993; + } else { + /* @ts-ignore */ + msg = $localize`:994:994`; + } + return msg; +} +function i18n_994() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 995 + */ + const MSG_EXTERNAL_8021508531015187844$$MANY_I18N_ATTRIBUTES_TS_994 = + /* @ts-ignore */ + goog.getMsg("995"); + msg = MSG_EXTERNAL_8021508531015187844$$MANY_I18N_ATTRIBUTES_TS_994; + } else { + /* @ts-ignore */ + msg = $localize`:995:995`; + } + return msg; +} +function i18n_995() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 996 + */ + const MSG_EXTERNAL_5861389317338209955$$MANY_I18N_ATTRIBUTES_TS_995 = + /* @ts-ignore */ + goog.getMsg("996"); + msg = MSG_EXTERNAL_5861389317338209955$$MANY_I18N_ATTRIBUTES_TS_995; + } else { + /* @ts-ignore */ + msg = $localize`:996:996`; + } + return msg; +} +function i18n_996() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 997 + */ + const MSG_EXTERNAL_8424998229040397119$$MANY_I18N_ATTRIBUTES_TS_996 = + /* @ts-ignore */ + goog.getMsg("997"); + msg = MSG_EXTERNAL_8424998229040397119$$MANY_I18N_ATTRIBUTES_TS_996; + } else { + /* @ts-ignore */ + msg = $localize`:997:997`; + } + return msg; +} +function i18n_997() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 998 + */ + const MSG_EXTERNAL_6972265845850315089$$MANY_I18N_ATTRIBUTES_TS_997 = + /* @ts-ignore */ + goog.getMsg("998"); + msg = MSG_EXTERNAL_6972265845850315089$$MANY_I18N_ATTRIBUTES_TS_997; + } else { + /* @ts-ignore */ + msg = $localize`:998:998`; + } + return msg; +} +function i18n_998() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 999 + */ + const MSG_EXTERNAL_1557442344052740353$$MANY_I18N_ATTRIBUTES_TS_998 = + /* @ts-ignore */ + goog.getMsg("999"); + msg = MSG_EXTERNAL_1557442344052740353$$MANY_I18N_ATTRIBUTES_TS_998; + } else { + /* @ts-ignore */ + msg = $localize`:999:999`; + } + return msg; +} +function i18n_999() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 1000 + */ + const MSG_EXTERNAL_141047061535912199$$MANY_I18N_ATTRIBUTES_TS_999 = + /* @ts-ignore */ + goog.getMsg("1000"); + msg = MSG_EXTERNAL_141047061535912199$$MANY_I18N_ATTRIBUTES_TS_999; + } else { + /* @ts-ignore */ + msg = $localize`:1000:1000`; + } + return msg; +} +export class App { + static ɵfac = function App_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || App)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: App, + selectors: [["ng-component"]], + decls: 1000, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 1 + */ + const MSG_EXTERNAL_4863371103643861248$$MANY_I18N_ATTRIBUTES_TS_0 = + /* @ts-ignore */ + goog.getMsg("1"); + i18n_0 = MSG_EXTERNAL_4863371103643861248$$MANY_I18N_ATTRIBUTES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:1:1`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 2 + */ + const MSG_EXTERNAL_6441168497334529189$$MANY_I18N_ATTRIBUTES_TS_1 = + /* @ts-ignore */ + goog.getMsg("2"); + i18n_1 = MSG_EXTERNAL_6441168497334529189$$MANY_I18N_ATTRIBUTES_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`:2:2`; + } + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 3 + */ + const MSG_EXTERNAL_5553013051982389716$$MANY_I18N_ATTRIBUTES_TS_2 = + /* @ts-ignore */ + goog.getMsg("3"); + i18n_2 = MSG_EXTERNAL_5553013051982389716$$MANY_I18N_ATTRIBUTES_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`:3:3`; + } + let i18n_3; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 4 + */ + const MSG_EXTERNAL_6300003832284833975$$MANY_I18N_ATTRIBUTES_TS_3 = + /* @ts-ignore */ + goog.getMsg("4"); + i18n_3 = MSG_EXTERNAL_6300003832284833975$$MANY_I18N_ATTRIBUTES_TS_3; + } else { + /* @ts-ignore */ + i18n_3 = $localize`:4:4`; + } + let i18n_4; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 5 + */ + const MSG_EXTERNAL_5170424074936382089$$MANY_I18N_ATTRIBUTES_TS_4 = + /* @ts-ignore */ + goog.getMsg("5"); + i18n_4 = MSG_EXTERNAL_5170424074936382089$$MANY_I18N_ATTRIBUTES_TS_4; + } else { + /* @ts-ignore */ + i18n_4 = $localize`:5:5`; + } + let i18n_5; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 6 + */ + const MSG_EXTERNAL_6338182211544106163$$MANY_I18N_ATTRIBUTES_TS_5 = + /* @ts-ignore */ + goog.getMsg("6"); + i18n_5 = MSG_EXTERNAL_6338182211544106163$$MANY_I18N_ATTRIBUTES_TS_5; + } else { + /* @ts-ignore */ + i18n_5 = $localize`:6:6`; + } + let i18n_6; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 7 + */ + const MSG_EXTERNAL_1499934221434374468$$MANY_I18N_ATTRIBUTES_TS_6 = + /* @ts-ignore */ + goog.getMsg("7"); + i18n_6 = MSG_EXTERNAL_1499934221434374468$$MANY_I18N_ATTRIBUTES_TS_6; + } else { + /* @ts-ignore */ + i18n_6 = $localize`:7:7`; + } + let i18n_7; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 8 + */ + const MSG_EXTERNAL_1084741602881469169$$MANY_I18N_ATTRIBUTES_TS_7 = + /* @ts-ignore */ + goog.getMsg("8"); + i18n_7 = MSG_EXTERNAL_1084741602881469169$$MANY_I18N_ATTRIBUTES_TS_7; + } else { + /* @ts-ignore */ + i18n_7 = $localize`:8:8`; + } + let i18n_8; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 9 + */ + const MSG_EXTERNAL_2890473785242626159$$MANY_I18N_ATTRIBUTES_TS_8 = + /* @ts-ignore */ + goog.getMsg("9"); + i18n_8 = MSG_EXTERNAL_2890473785242626159$$MANY_I18N_ATTRIBUTES_TS_8; + } else { + /* @ts-ignore */ + i18n_8 = $localize`:9:9`; + } + let i18n_9; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 10 + */ + const MSG_EXTERNAL_3194836961668992694$$MANY_I18N_ATTRIBUTES_TS_9 = + /* @ts-ignore */ + goog.getMsg("10"); + i18n_9 = MSG_EXTERNAL_3194836961668992694$$MANY_I18N_ATTRIBUTES_TS_9; + } else { + /* @ts-ignore */ + i18n_9 = $localize`:10:10`; + } + let i18n_10; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 11 + */ + const MSG_EXTERNAL_2194884218271018037$$MANY_I18N_ATTRIBUTES_TS_10 = + /* @ts-ignore */ + goog.getMsg("11"); + i18n_10 = MSG_EXTERNAL_2194884218271018037$$MANY_I18N_ATTRIBUTES_TS_10; + } else { + /* @ts-ignore */ + i18n_10 = $localize`:11:11`; + } + let i18n_11; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 12 + */ + const MSG_EXTERNAL_8808682958974357007$$MANY_I18N_ATTRIBUTES_TS_11 = + /* @ts-ignore */ + goog.getMsg("12"); + i18n_11 = MSG_EXTERNAL_8808682958974357007$$MANY_I18N_ATTRIBUTES_TS_11; + } else { + /* @ts-ignore */ + i18n_11 = $localize`:12:12`; + } + let i18n_12; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 13 + */ + const MSG_EXTERNAL_1426029655970332575$$MANY_I18N_ATTRIBUTES_TS_12 = + /* @ts-ignore */ + goog.getMsg("13"); + i18n_12 = MSG_EXTERNAL_1426029655970332575$$MANY_I18N_ATTRIBUTES_TS_12; + } else { + /* @ts-ignore */ + i18n_12 = $localize`:13:13`; + } + let i18n_13; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 14 + */ + const MSG_EXTERNAL_4236063460773505757$$MANY_I18N_ATTRIBUTES_TS_13 = + /* @ts-ignore */ + goog.getMsg("14"); + i18n_13 = MSG_EXTERNAL_4236063460773505757$$MANY_I18N_ATTRIBUTES_TS_13; + } else { + /* @ts-ignore */ + i18n_13 = $localize`:14:14`; + } + let i18n_14; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 15 + */ + const MSG_EXTERNAL_942075175465938398$$MANY_I18N_ATTRIBUTES_TS_14 = + /* @ts-ignore */ + goog.getMsg("15"); + i18n_14 = MSG_EXTERNAL_942075175465938398$$MANY_I18N_ATTRIBUTES_TS_14; + } else { + /* @ts-ignore */ + i18n_14 = $localize`:15:15`; + } + let i18n_15; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 16 + */ + const MSG_EXTERNAL_1623295449498492817$$MANY_I18N_ATTRIBUTES_TS_15 = + /* @ts-ignore */ + goog.getMsg("16"); + i18n_15 = MSG_EXTERNAL_1623295449498492817$$MANY_I18N_ATTRIBUTES_TS_15; + } else { + /* @ts-ignore */ + i18n_15 = $localize`:16:16`; + } + let i18n_16; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 17 + */ + const MSG_EXTERNAL_2293936066607691778$$MANY_I18N_ATTRIBUTES_TS_16 = + /* @ts-ignore */ + goog.getMsg("17"); + i18n_16 = MSG_EXTERNAL_2293936066607691778$$MANY_I18N_ATTRIBUTES_TS_16; + } else { + /* @ts-ignore */ + i18n_16 = $localize`:17:17`; + } + let i18n_17; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 18 + */ + const MSG_EXTERNAL_4236068387422542718$$MANY_I18N_ATTRIBUTES_TS_17 = + /* @ts-ignore */ + goog.getMsg("18"); + i18n_17 = MSG_EXTERNAL_4236068387422542718$$MANY_I18N_ATTRIBUTES_TS_17; + } else { + /* @ts-ignore */ + i18n_17 = $localize`:18:18`; + } + let i18n_18; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 19 + */ + const MSG_EXTERNAL_75454074287422194$$MANY_I18N_ATTRIBUTES_TS_18 = + /* @ts-ignore */ + goog.getMsg("19"); + i18n_18 = MSG_EXTERNAL_75454074287422194$$MANY_I18N_ATTRIBUTES_TS_18; + } else { + /* @ts-ignore */ + i18n_18 = $localize`:19:19`; + } + let i18n_19; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 20 + */ + const MSG_EXTERNAL_1889722484816371833$$MANY_I18N_ATTRIBUTES_TS_19 = + /* @ts-ignore */ + goog.getMsg("20"); + i18n_19 = MSG_EXTERNAL_1889722484816371833$$MANY_I18N_ATTRIBUTES_TS_19; + } else { + /* @ts-ignore */ + i18n_19 = $localize`:20:20`; + } + let i18n_20; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 21 + */ + const MSG_EXTERNAL_7854800921504792134$$MANY_I18N_ATTRIBUTES_TS_20 = + /* @ts-ignore */ + goog.getMsg("21"); + i18n_20 = MSG_EXTERNAL_7854800921504792134$$MANY_I18N_ATTRIBUTES_TS_20; + } else { + /* @ts-ignore */ + i18n_20 = $localize`:21:21`; + } + let i18n_21; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 22 + */ + const MSG_EXTERNAL_1061222808808044202$$MANY_I18N_ATTRIBUTES_TS_21 = + /* @ts-ignore */ + goog.getMsg("22"); + i18n_21 = MSG_EXTERNAL_1061222808808044202$$MANY_I18N_ATTRIBUTES_TS_21; + } else { + /* @ts-ignore */ + i18n_21 = $localize`:22:22`; + } + let i18n_22; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 23 + */ + const MSG_EXTERNAL_6831776898924515503$$MANY_I18N_ATTRIBUTES_TS_22 = + /* @ts-ignore */ + goog.getMsg("23"); + i18n_22 = MSG_EXTERNAL_6831776898924515503$$MANY_I18N_ATTRIBUTES_TS_22; + } else { + /* @ts-ignore */ + i18n_22 = $localize`:23:23`; + } + let i18n_23; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 24 + */ + const MSG_EXTERNAL_9044509709766830809$$MANY_I18N_ATTRIBUTES_TS_23 = + /* @ts-ignore */ + goog.getMsg("24"); + i18n_23 = MSG_EXTERNAL_9044509709766830809$$MANY_I18N_ATTRIBUTES_TS_23; + } else { + /* @ts-ignore */ + i18n_23 = $localize`:24:24`; + } + let i18n_24; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 25 + */ + const MSG_EXTERNAL_6395264418740121248$$MANY_I18N_ATTRIBUTES_TS_24 = + /* @ts-ignore */ + goog.getMsg("25"); + i18n_24 = MSG_EXTERNAL_6395264418740121248$$MANY_I18N_ATTRIBUTES_TS_24; + } else { + /* @ts-ignore */ + i18n_24 = $localize`:25:25`; + } + let i18n_25; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 26 + */ + const MSG_EXTERNAL_4746970274036331649$$MANY_I18N_ATTRIBUTES_TS_25 = + /* @ts-ignore */ + goog.getMsg("26"); + i18n_25 = MSG_EXTERNAL_4746970274036331649$$MANY_I18N_ATTRIBUTES_TS_25; + } else { + /* @ts-ignore */ + i18n_25 = $localize`:26:26`; + } + let i18n_26; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 27 + */ + const MSG_EXTERNAL_3606979657711941339$$MANY_I18N_ATTRIBUTES_TS_26 = + /* @ts-ignore */ + goog.getMsg("27"); + i18n_26 = MSG_EXTERNAL_3606979657711941339$$MANY_I18N_ATTRIBUTES_TS_26; + } else { + /* @ts-ignore */ + i18n_26 = $localize`:27:27`; + } + let i18n_27; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 28 + */ + const MSG_EXTERNAL_8464137077297362496$$MANY_I18N_ATTRIBUTES_TS_27 = + /* @ts-ignore */ + goog.getMsg("28"); + i18n_27 = MSG_EXTERNAL_8464137077297362496$$MANY_I18N_ATTRIBUTES_TS_27; + } else { + /* @ts-ignore */ + i18n_27 = $localize`:28:28`; + } + let i18n_28; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 29 + */ + const MSG_EXTERNAL_5083769449049921018$$MANY_I18N_ATTRIBUTES_TS_28 = + /* @ts-ignore */ + goog.getMsg("29"); + i18n_28 = MSG_EXTERNAL_5083769449049921018$$MANY_I18N_ATTRIBUTES_TS_28; + } else { + /* @ts-ignore */ + i18n_28 = $localize`:29:29`; + } + let i18n_29; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 30 + */ + const MSG_EXTERNAL_4740349832371977963$$MANY_I18N_ATTRIBUTES_TS_29 = + /* @ts-ignore */ + goog.getMsg("30"); + i18n_29 = MSG_EXTERNAL_4740349832371977963$$MANY_I18N_ATTRIBUTES_TS_29; + } else { + /* @ts-ignore */ + i18n_29 = $localize`:30:30`; + } + let i18n_30; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 31 + */ + const MSG_EXTERNAL_4481260554508326130$$MANY_I18N_ATTRIBUTES_TS_30 = + /* @ts-ignore */ + goog.getMsg("31"); + i18n_30 = MSG_EXTERNAL_4481260554508326130$$MANY_I18N_ATTRIBUTES_TS_30; + } else { + /* @ts-ignore */ + i18n_30 = $localize`:31:31`; + } + let i18n_31; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 32 + */ + const MSG_EXTERNAL_978665088271864757$$MANY_I18N_ATTRIBUTES_TS_31 = + /* @ts-ignore */ + goog.getMsg("32"); + i18n_31 = MSG_EXTERNAL_978665088271864757$$MANY_I18N_ATTRIBUTES_TS_31; + } else { + /* @ts-ignore */ + i18n_31 = $localize`:32:32`; + } + let i18n_32; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 33 + */ + const MSG_EXTERNAL_6903756285022109898$$MANY_I18N_ATTRIBUTES_TS_32 = + /* @ts-ignore */ + goog.getMsg("33"); + i18n_32 = MSG_EXTERNAL_6903756285022109898$$MANY_I18N_ATTRIBUTES_TS_32; + } else { + /* @ts-ignore */ + i18n_32 = $localize`:33:33`; + } + let i18n_33; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 34 + */ + const MSG_EXTERNAL_889447088844909396$$MANY_I18N_ATTRIBUTES_TS_33 = + /* @ts-ignore */ + goog.getMsg("34"); + i18n_33 = MSG_EXTERNAL_889447088844909396$$MANY_I18N_ATTRIBUTES_TS_33; + } else { + /* @ts-ignore */ + i18n_33 = $localize`:34:34`; + } + let i18n_34; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 35 + */ + const MSG_EXTERNAL_8059259399232736948$$MANY_I18N_ATTRIBUTES_TS_34 = + /* @ts-ignore */ + goog.getMsg("35"); + i18n_34 = MSG_EXTERNAL_8059259399232736948$$MANY_I18N_ATTRIBUTES_TS_34; + } else { + /* @ts-ignore */ + i18n_34 = $localize`:35:35`; + } + let i18n_35; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 36 + */ + const MSG_EXTERNAL_3689271639020260956$$MANY_I18N_ATTRIBUTES_TS_35 = + /* @ts-ignore */ + goog.getMsg("36"); + i18n_35 = MSG_EXTERNAL_3689271639020260956$$MANY_I18N_ATTRIBUTES_TS_35; + } else { + /* @ts-ignore */ + i18n_35 = $localize`:36:36`; + } + let i18n_36; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 37 + */ + const MSG_EXTERNAL_4824862297537760297$$MANY_I18N_ATTRIBUTES_TS_36 = + /* @ts-ignore */ + goog.getMsg("37"); + i18n_36 = MSG_EXTERNAL_4824862297537760297$$MANY_I18N_ATTRIBUTES_TS_36; + } else { + /* @ts-ignore */ + i18n_36 = $localize`:37:37`; + } + let i18n_37; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 38 + */ + const MSG_EXTERNAL_3777658387499381435$$MANY_I18N_ATTRIBUTES_TS_37 = + /* @ts-ignore */ + goog.getMsg("38"); + i18n_37 = MSG_EXTERNAL_3777658387499381435$$MANY_I18N_ATTRIBUTES_TS_37; + } else { + /* @ts-ignore */ + i18n_37 = $localize`:38:38`; + } + let i18n_38; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 39 + */ + const MSG_EXTERNAL_4921487945478769148$$MANY_I18N_ATTRIBUTES_TS_38 = + /* @ts-ignore */ + goog.getMsg("39"); + i18n_38 = MSG_EXTERNAL_4921487945478769148$$MANY_I18N_ATTRIBUTES_TS_38; + } else { + /* @ts-ignore */ + i18n_38 = $localize`:39:39`; + } + let i18n_39; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 40 + */ + const MSG_EXTERNAL_8989665588817608506$$MANY_I18N_ATTRIBUTES_TS_39 = + /* @ts-ignore */ + goog.getMsg("40"); + i18n_39 = MSG_EXTERNAL_8989665588817608506$$MANY_I18N_ATTRIBUTES_TS_39; + } else { + /* @ts-ignore */ + i18n_39 = $localize`:40:40`; + } + let i18n_40; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 41 + */ + const MSG_EXTERNAL_194241339735546571$$MANY_I18N_ATTRIBUTES_TS_40 = + /* @ts-ignore */ + goog.getMsg("41"); + i18n_40 = MSG_EXTERNAL_194241339735546571$$MANY_I18N_ATTRIBUTES_TS_40; + } else { + /* @ts-ignore */ + i18n_40 = $localize`:41:41`; + } + let i18n_41; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 42 + */ + const MSG_EXTERNAL_8029938078906594809$$MANY_I18N_ATTRIBUTES_TS_41 = + /* @ts-ignore */ + goog.getMsg("42"); + i18n_41 = MSG_EXTERNAL_8029938078906594809$$MANY_I18N_ATTRIBUTES_TS_41; + } else { + /* @ts-ignore */ + i18n_41 = $localize`:42:42`; + } + let i18n_42; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 43 + */ + const MSG_EXTERNAL_8677356097815105111$$MANY_I18N_ATTRIBUTES_TS_42 = + /* @ts-ignore */ + goog.getMsg("43"); + i18n_42 = MSG_EXTERNAL_8677356097815105111$$MANY_I18N_ATTRIBUTES_TS_42; + } else { + /* @ts-ignore */ + i18n_42 = $localize`:43:43`; + } + let i18n_43; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 44 + */ + const MSG_EXTERNAL_1714953966636339623$$MANY_I18N_ATTRIBUTES_TS_43 = + /* @ts-ignore */ + goog.getMsg("44"); + i18n_43 = MSG_EXTERNAL_1714953966636339623$$MANY_I18N_ATTRIBUTES_TS_43; + } else { + /* @ts-ignore */ + i18n_43 = $localize`:44:44`; + } + let i18n_44; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 45 + */ + const MSG_EXTERNAL_4229798946726476971$$MANY_I18N_ATTRIBUTES_TS_44 = + /* @ts-ignore */ + goog.getMsg("45"); + i18n_44 = MSG_EXTERNAL_4229798946726476971$$MANY_I18N_ATTRIBUTES_TS_44; + } else { + /* @ts-ignore */ + i18n_44 = $localize`:45:45`; + } + let i18n_45; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 46 + */ + const MSG_EXTERNAL_6936703223313302020$$MANY_I18N_ATTRIBUTES_TS_45 = + /* @ts-ignore */ + goog.getMsg("46"); + i18n_45 = MSG_EXTERNAL_6936703223313302020$$MANY_I18N_ATTRIBUTES_TS_45; + } else { + /* @ts-ignore */ + i18n_45 = $localize`:46:46`; + } + let i18n_46; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 47 + */ + const MSG_EXTERNAL_6052302293951492075$$MANY_I18N_ATTRIBUTES_TS_46 = + /* @ts-ignore */ + goog.getMsg("47"); + i18n_46 = MSG_EXTERNAL_6052302293951492075$$MANY_I18N_ATTRIBUTES_TS_46; + } else { + /* @ts-ignore */ + i18n_46 = $localize`:47:47`; + } + let i18n_47; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 48 + */ + const MSG_EXTERNAL_8573506830982293163$$MANY_I18N_ATTRIBUTES_TS_47 = + /* @ts-ignore */ + goog.getMsg("48"); + i18n_47 = MSG_EXTERNAL_8573506830982293163$$MANY_I18N_ATTRIBUTES_TS_47; + } else { + /* @ts-ignore */ + i18n_47 = $localize`:48:48`; + } + let i18n_48; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 49 + */ + const MSG_EXTERNAL_9199085633510661109$$MANY_I18N_ATTRIBUTES_TS_48 = + /* @ts-ignore */ + goog.getMsg("49"); + i18n_48 = MSG_EXTERNAL_9199085633510661109$$MANY_I18N_ATTRIBUTES_TS_48; + } else { + /* @ts-ignore */ + i18n_48 = $localize`:49:49`; + } + let i18n_49; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 50 + */ + const MSG_EXTERNAL_3050467842799257499$$MANY_I18N_ATTRIBUTES_TS_49 = + /* @ts-ignore */ + goog.getMsg("50"); + i18n_49 = MSG_EXTERNAL_3050467842799257499$$MANY_I18N_ATTRIBUTES_TS_49; + } else { + /* @ts-ignore */ + i18n_49 = $localize`:50:50`; + } + let i18n_50; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 51 + */ + const MSG_EXTERNAL_6813801992144158393$$MANY_I18N_ATTRIBUTES_TS_50 = + /* @ts-ignore */ + goog.getMsg("51"); + i18n_50 = MSG_EXTERNAL_6813801992144158393$$MANY_I18N_ATTRIBUTES_TS_50; + } else { + /* @ts-ignore */ + i18n_50 = $localize`:51:51`; + } + let i18n_51; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 52 + */ + const MSG_EXTERNAL_8020219366784435885$$MANY_I18N_ATTRIBUTES_TS_51 = + /* @ts-ignore */ + goog.getMsg("52"); + i18n_51 = MSG_EXTERNAL_8020219366784435885$$MANY_I18N_ATTRIBUTES_TS_51; + } else { + /* @ts-ignore */ + i18n_51 = $localize`:52:52`; + } + let i18n_52; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 53 + */ + const MSG_EXTERNAL_8738288426194552922$$MANY_I18N_ATTRIBUTES_TS_52 = + /* @ts-ignore */ + goog.getMsg("53"); + i18n_52 = MSG_EXTERNAL_8738288426194552922$$MANY_I18N_ATTRIBUTES_TS_52; + } else { + /* @ts-ignore */ + i18n_52 = $localize`:53:53`; + } + let i18n_53; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 54 + */ + const MSG_EXTERNAL_3360762533993165457$$MANY_I18N_ATTRIBUTES_TS_53 = + /* @ts-ignore */ + goog.getMsg("54"); + i18n_53 = MSG_EXTERNAL_3360762533993165457$$MANY_I18N_ATTRIBUTES_TS_53; + } else { + /* @ts-ignore */ + i18n_53 = $localize`:54:54`; + } + let i18n_54; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 55 + */ + const MSG_EXTERNAL_5354555694948248718$$MANY_I18N_ATTRIBUTES_TS_54 = + /* @ts-ignore */ + goog.getMsg("55"); + i18n_54 = MSG_EXTERNAL_5354555694948248718$$MANY_I18N_ATTRIBUTES_TS_54; + } else { + /* @ts-ignore */ + i18n_54 = $localize`:55:55`; + } + let i18n_55; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 56 + */ + const MSG_EXTERNAL_5827638088794815761$$MANY_I18N_ATTRIBUTES_TS_55 = + /* @ts-ignore */ + goog.getMsg("56"); + i18n_55 = MSG_EXTERNAL_5827638088794815761$$MANY_I18N_ATTRIBUTES_TS_55; + } else { + /* @ts-ignore */ + i18n_55 = $localize`:56:56`; + } + let i18n_56; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 57 + */ + const MSG_EXTERNAL_7261222115572070152$$MANY_I18N_ATTRIBUTES_TS_56 = + /* @ts-ignore */ + goog.getMsg("57"); + i18n_56 = MSG_EXTERNAL_7261222115572070152$$MANY_I18N_ATTRIBUTES_TS_56; + } else { + /* @ts-ignore */ + i18n_56 = $localize`:57:57`; + } + let i18n_57; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 58 + */ + const MSG_EXTERNAL_8483157908139883015$$MANY_I18N_ATTRIBUTES_TS_57 = + /* @ts-ignore */ + goog.getMsg("58"); + i18n_57 = MSG_EXTERNAL_8483157908139883015$$MANY_I18N_ATTRIBUTES_TS_57; + } else { + /* @ts-ignore */ + i18n_57 = $localize`:58:58`; + } + let i18n_58; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 59 + */ + const MSG_EXTERNAL_5053259082682658671$$MANY_I18N_ATTRIBUTES_TS_58 = + /* @ts-ignore */ + goog.getMsg("59"); + i18n_58 = MSG_EXTERNAL_5053259082682658671$$MANY_I18N_ATTRIBUTES_TS_58; + } else { + /* @ts-ignore */ + i18n_58 = $localize`:59:59`; + } + let i18n_59; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 60 + */ + const MSG_EXTERNAL_1060563867641587320$$MANY_I18N_ATTRIBUTES_TS_59 = + /* @ts-ignore */ + goog.getMsg("60"); + i18n_59 = MSG_EXTERNAL_1060563867641587320$$MANY_I18N_ATTRIBUTES_TS_59; + } else { + /* @ts-ignore */ + i18n_59 = $localize`:60:60`; + } + let i18n_60; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 61 + */ + const MSG_EXTERNAL_3038027231018938364$$MANY_I18N_ATTRIBUTES_TS_60 = + /* @ts-ignore */ + goog.getMsg("61"); + i18n_60 = MSG_EXTERNAL_3038027231018938364$$MANY_I18N_ATTRIBUTES_TS_60; + } else { + /* @ts-ignore */ + i18n_60 = $localize`:61:61`; + } + let i18n_61; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 62 + */ + const MSG_EXTERNAL_5244437078987276700$$MANY_I18N_ATTRIBUTES_TS_61 = + /* @ts-ignore */ + goog.getMsg("62"); + i18n_61 = MSG_EXTERNAL_5244437078987276700$$MANY_I18N_ATTRIBUTES_TS_61; + } else { + /* @ts-ignore */ + i18n_61 = $localize`:62:62`; + } + let i18n_62; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 63 + */ + const MSG_EXTERNAL_2118965884797906686$$MANY_I18N_ATTRIBUTES_TS_62 = + /* @ts-ignore */ + goog.getMsg("63"); + i18n_62 = MSG_EXTERNAL_2118965884797906686$$MANY_I18N_ATTRIBUTES_TS_62; + } else { + /* @ts-ignore */ + i18n_62 = $localize`:63:63`; + } + let i18n_63; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 64 + */ + const MSG_EXTERNAL_3634413570694971395$$MANY_I18N_ATTRIBUTES_TS_63 = + /* @ts-ignore */ + goog.getMsg("64"); + i18n_63 = MSG_EXTERNAL_3634413570694971395$$MANY_I18N_ATTRIBUTES_TS_63; + } else { + /* @ts-ignore */ + i18n_63 = $localize`:64:64`; + } + let i18n_64; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 65 + */ + const MSG_EXTERNAL_1743036418611442071$$MANY_I18N_ATTRIBUTES_TS_64 = + /* @ts-ignore */ + goog.getMsg("65"); + i18n_64 = MSG_EXTERNAL_1743036418611442071$$MANY_I18N_ATTRIBUTES_TS_64; + } else { + /* @ts-ignore */ + i18n_64 = $localize`:65:65`; + } + let i18n_65; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 66 + */ + const MSG_EXTERNAL_7803455220407177161$$MANY_I18N_ATTRIBUTES_TS_65 = + /* @ts-ignore */ + goog.getMsg("66"); + i18n_65 = MSG_EXTERNAL_7803455220407177161$$MANY_I18N_ATTRIBUTES_TS_65; + } else { + /* @ts-ignore */ + i18n_65 = $localize`:66:66`; + } + let i18n_66; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 67 + */ + const MSG_EXTERNAL_915856575020721706$$MANY_I18N_ATTRIBUTES_TS_66 = + /* @ts-ignore */ + goog.getMsg("67"); + i18n_66 = MSG_EXTERNAL_915856575020721706$$MANY_I18N_ATTRIBUTES_TS_66; + } else { + /* @ts-ignore */ + i18n_66 = $localize`:67:67`; + } + let i18n_67; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 68 + */ + const MSG_EXTERNAL_6095514951881913295$$MANY_I18N_ATTRIBUTES_TS_67 = + /* @ts-ignore */ + goog.getMsg("68"); + i18n_67 = MSG_EXTERNAL_6095514951881913295$$MANY_I18N_ATTRIBUTES_TS_67; + } else { + /* @ts-ignore */ + i18n_67 = $localize`:68:68`; + } + let i18n_68; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 69 + */ + const MSG_EXTERNAL_6354290662838188109$$MANY_I18N_ATTRIBUTES_TS_68 = + /* @ts-ignore */ + goog.getMsg("69"); + i18n_68 = MSG_EXTERNAL_6354290662838188109$$MANY_I18N_ATTRIBUTES_TS_68; + } else { + /* @ts-ignore */ + i18n_68 = $localize`:69:69`; + } + let i18n_69; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 70 + */ + const MSG_EXTERNAL_8451792735911834369$$MANY_I18N_ATTRIBUTES_TS_69 = + /* @ts-ignore */ + goog.getMsg("70"); + i18n_69 = MSG_EXTERNAL_8451792735911834369$$MANY_I18N_ATTRIBUTES_TS_69; + } else { + /* @ts-ignore */ + i18n_69 = $localize`:70:70`; + } + let i18n_70; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 71 + */ + const MSG_EXTERNAL_8756030545091302258$$MANY_I18N_ATTRIBUTES_TS_70 = + /* @ts-ignore */ + goog.getMsg("71"); + i18n_70 = MSG_EXTERNAL_8756030545091302258$$MANY_I18N_ATTRIBUTES_TS_70; + } else { + /* @ts-ignore */ + i18n_70 = $localize`:71:71`; + } + let i18n_71; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 72 + */ + const MSG_EXTERNAL_4869765851467256406$$MANY_I18N_ATTRIBUTES_TS_71 = + /* @ts-ignore */ + goog.getMsg("72"); + i18n_71 = MSG_EXTERNAL_4869765851467256406$$MANY_I18N_ATTRIBUTES_TS_71; + } else { + /* @ts-ignore */ + i18n_71 = $localize`:72:72`; + } + let i18n_72; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 73 + */ + const MSG_EXTERNAL_2093214977471818953$$MANY_I18N_ATTRIBUTES_TS_72 = + /* @ts-ignore */ + goog.getMsg("73"); + i18n_72 = MSG_EXTERNAL_2093214977471818953$$MANY_I18N_ATTRIBUTES_TS_72; + } else { + /* @ts-ignore */ + i18n_72 = $localize`:73:73`; + } + let i18n_73; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 74 + */ + const MSG_EXTERNAL_4555247331679942357$$MANY_I18N_ATTRIBUTES_TS_73 = + /* @ts-ignore */ + goog.getMsg("74"); + i18n_73 = MSG_EXTERNAL_4555247331679942357$$MANY_I18N_ATTRIBUTES_TS_73; + } else { + /* @ts-ignore */ + i18n_73 = $localize`:74:74`; + } + let i18n_74; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 75 + */ + const MSG_EXTERNAL_2917985033890864689$$MANY_I18N_ATTRIBUTES_TS_74 = + /* @ts-ignore */ + goog.getMsg("75"); + i18n_74 = MSG_EXTERNAL_2917985033890864689$$MANY_I18N_ATTRIBUTES_TS_74; + } else { + /* @ts-ignore */ + i18n_74 = $localize`:75:75`; + } + let i18n_75; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 76 + */ + const MSG_EXTERNAL_1856024475675634472$$MANY_I18N_ATTRIBUTES_TS_75 = + /* @ts-ignore */ + goog.getMsg("76"); + i18n_75 = MSG_EXTERNAL_1856024475675634472$$MANY_I18N_ATTRIBUTES_TS_75; + } else { + /* @ts-ignore */ + i18n_75 = $localize`:76:76`; + } + let i18n_76; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 77 + */ + const MSG_EXTERNAL_8869484602332726482$$MANY_I18N_ATTRIBUTES_TS_76 = + /* @ts-ignore */ + goog.getMsg("77"); + i18n_76 = MSG_EXTERNAL_8869484602332726482$$MANY_I18N_ATTRIBUTES_TS_76; + } else { + /* @ts-ignore */ + i18n_76 = $localize`:77:77`; + } + let i18n_77; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 78 + */ + const MSG_EXTERNAL_3799523179441184750$$MANY_I18N_ATTRIBUTES_TS_77 = + /* @ts-ignore */ + goog.getMsg("78"); + i18n_77 = MSG_EXTERNAL_3799523179441184750$$MANY_I18N_ATTRIBUTES_TS_77; + } else { + /* @ts-ignore */ + i18n_77 = $localize`:78:78`; + } + let i18n_78; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 79 + */ + const MSG_EXTERNAL_6337321994182508391$$MANY_I18N_ATTRIBUTES_TS_78 = + /* @ts-ignore */ + goog.getMsg("79"); + i18n_78 = MSG_EXTERNAL_6337321994182508391$$MANY_I18N_ATTRIBUTES_TS_78; + } else { + /* @ts-ignore */ + i18n_78 = $localize`:79:79`; + } + let i18n_79; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 80 + */ + const MSG_EXTERNAL_3420847888426284718$$MANY_I18N_ATTRIBUTES_TS_79 = + /* @ts-ignore */ + goog.getMsg("80"); + i18n_79 = MSG_EXTERNAL_3420847888426284718$$MANY_I18N_ATTRIBUTES_TS_79; + } else { + /* @ts-ignore */ + i18n_79 = $localize`:80:80`; + } + let i18n_80; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 81 + */ + const MSG_EXTERNAL_5460885851232939828$$MANY_I18N_ATTRIBUTES_TS_80 = + /* @ts-ignore */ + goog.getMsg("81"); + i18n_80 = MSG_EXTERNAL_5460885851232939828$$MANY_I18N_ATTRIBUTES_TS_80; + } else { + /* @ts-ignore */ + i18n_80 = $localize`:81:81`; + } + let i18n_81; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 82 + */ + const MSG_EXTERNAL_3136236000478836076$$MANY_I18N_ATTRIBUTES_TS_81 = + /* @ts-ignore */ + goog.getMsg("82"); + i18n_81 = MSG_EXTERNAL_3136236000478836076$$MANY_I18N_ATTRIBUTES_TS_81; + } else { + /* @ts-ignore */ + i18n_81 = $localize`:82:82`; + } + let i18n_82; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 83 + */ + const MSG_EXTERNAL_4772649398893837456$$MANY_I18N_ATTRIBUTES_TS_82 = + /* @ts-ignore */ + goog.getMsg("83"); + i18n_82 = MSG_EXTERNAL_4772649398893837456$$MANY_I18N_ATTRIBUTES_TS_82; + } else { + /* @ts-ignore */ + i18n_82 = $localize`:83:83`; + } + let i18n_83; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 84 + */ + const MSG_EXTERNAL_6704600775247230534$$MANY_I18N_ATTRIBUTES_TS_83 = + /* @ts-ignore */ + goog.getMsg("84"); + i18n_83 = MSG_EXTERNAL_6704600775247230534$$MANY_I18N_ATTRIBUTES_TS_83; + } else { + /* @ts-ignore */ + i18n_83 = $localize`:84:84`; + } + let i18n_84; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 85 + */ + const MSG_EXTERNAL_8509568510928167317$$MANY_I18N_ATTRIBUTES_TS_84 = + /* @ts-ignore */ + goog.getMsg("85"); + i18n_84 = MSG_EXTERNAL_8509568510928167317$$MANY_I18N_ATTRIBUTES_TS_84; + } else { + /* @ts-ignore */ + i18n_84 = $localize`:85:85`; + } + let i18n_85; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 86 + */ + const MSG_EXTERNAL_2974674864286095831$$MANY_I18N_ATTRIBUTES_TS_85 = + /* @ts-ignore */ + goog.getMsg("86"); + i18n_85 = MSG_EXTERNAL_2974674864286095831$$MANY_I18N_ATTRIBUTES_TS_85; + } else { + /* @ts-ignore */ + i18n_85 = $localize`:86:86`; + } + let i18n_86; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 87 + */ + const MSG_EXTERNAL_2983556040682323141$$MANY_I18N_ATTRIBUTES_TS_86 = + /* @ts-ignore */ + goog.getMsg("87"); + i18n_86 = MSG_EXTERNAL_2983556040682323141$$MANY_I18N_ATTRIBUTES_TS_86; + } else { + /* @ts-ignore */ + i18n_86 = $localize`:87:87`; + } + let i18n_87; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 88 + */ + const MSG_EXTERNAL_8153982803621044055$$MANY_I18N_ATTRIBUTES_TS_87 = + /* @ts-ignore */ + goog.getMsg("88"); + i18n_87 = MSG_EXTERNAL_8153982803621044055$$MANY_I18N_ATTRIBUTES_TS_87; + } else { + /* @ts-ignore */ + i18n_87 = $localize`:88:88`; + } + let i18n_88; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 89 + */ + const MSG_EXTERNAL_5039911467321252447$$MANY_I18N_ATTRIBUTES_TS_88 = + /* @ts-ignore */ + goog.getMsg("89"); + i18n_88 = MSG_EXTERNAL_5039911467321252447$$MANY_I18N_ATTRIBUTES_TS_88; + } else { + /* @ts-ignore */ + i18n_88 = $localize`:89:89`; + } + let i18n_89; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 90 + */ + const MSG_EXTERNAL_1160985416069640372$$MANY_I18N_ATTRIBUTES_TS_89 = + /* @ts-ignore */ + goog.getMsg("90"); + i18n_89 = MSG_EXTERNAL_1160985416069640372$$MANY_I18N_ATTRIBUTES_TS_89; + } else { + /* @ts-ignore */ + i18n_89 = $localize`:90:90`; + } + let i18n_90; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 91 + */ + const MSG_EXTERNAL_5535264500267659403$$MANY_I18N_ATTRIBUTES_TS_90 = + /* @ts-ignore */ + goog.getMsg("91"); + i18n_90 = MSG_EXTERNAL_5535264500267659403$$MANY_I18N_ATTRIBUTES_TS_90; + } else { + /* @ts-ignore */ + i18n_90 = $localize`:91:91`; + } + let i18n_91; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 92 + */ + const MSG_EXTERNAL_3182731761600089856$$MANY_I18N_ATTRIBUTES_TS_91 = + /* @ts-ignore */ + goog.getMsg("92"); + i18n_91 = MSG_EXTERNAL_3182731761600089856$$MANY_I18N_ATTRIBUTES_TS_91; + } else { + /* @ts-ignore */ + i18n_91 = $localize`:92:92`; + } + let i18n_92; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 93 + */ + const MSG_EXTERNAL_4810754177810373441$$MANY_I18N_ATTRIBUTES_TS_92 = + /* @ts-ignore */ + goog.getMsg("93"); + i18n_92 = MSG_EXTERNAL_4810754177810373441$$MANY_I18N_ATTRIBUTES_TS_92; + } else { + /* @ts-ignore */ + i18n_92 = $localize`:93:93`; + } + let i18n_93; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 94 + */ + const MSG_EXTERNAL_7040742344823100319$$MANY_I18N_ATTRIBUTES_TS_93 = + /* @ts-ignore */ + goog.getMsg("94"); + i18n_93 = MSG_EXTERNAL_7040742344823100319$$MANY_I18N_ATTRIBUTES_TS_93; + } else { + /* @ts-ignore */ + i18n_93 = $localize`:94:94`; + } + let i18n_94; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 95 + */ + const MSG_EXTERNAL_518245151717849616$$MANY_I18N_ATTRIBUTES_TS_94 = + /* @ts-ignore */ + goog.getMsg("95"); + i18n_94 = MSG_EXTERNAL_518245151717849616$$MANY_I18N_ATTRIBUTES_TS_94; + } else { + /* @ts-ignore */ + i18n_94 = $localize`:95:95`; + } + let i18n_95; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 96 + */ + const MSG_EXTERNAL_4063007454688580111$$MANY_I18N_ATTRIBUTES_TS_95 = + /* @ts-ignore */ + goog.getMsg("96"); + i18n_95 = MSG_EXTERNAL_4063007454688580111$$MANY_I18N_ATTRIBUTES_TS_95; + } else { + /* @ts-ignore */ + i18n_95 = $localize`:96:96`; + } + let i18n_96; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 97 + */ + const MSG_EXTERNAL_1825969852352414416$$MANY_I18N_ATTRIBUTES_TS_96 = + /* @ts-ignore */ + goog.getMsg("97"); + i18n_96 = MSG_EXTERNAL_1825969852352414416$$MANY_I18N_ATTRIBUTES_TS_96; + } else { + /* @ts-ignore */ + i18n_96 = $localize`:97:97`; + } + let i18n_97; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 98 + */ + const MSG_EXTERNAL_7319415480545188997$$MANY_I18N_ATTRIBUTES_TS_97 = + /* @ts-ignore */ + goog.getMsg("98"); + i18n_97 = MSG_EXTERNAL_7319415480545188997$$MANY_I18N_ATTRIBUTES_TS_97; + } else { + /* @ts-ignore */ + i18n_97 = $localize`:98:98`; + } + let i18n_98; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 99 + */ + const MSG_EXTERNAL_4072425896856618077$$MANY_I18N_ATTRIBUTES_TS_98 = + /* @ts-ignore */ + goog.getMsg("99"); + i18n_98 = MSG_EXTERNAL_4072425896856618077$$MANY_I18N_ATTRIBUTES_TS_98; + } else { + /* @ts-ignore */ + i18n_98 = $localize`:99:99`; + } + let i18n_99; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 100 + */ + const MSG_EXTERNAL_7671287306230991380$$MANY_I18N_ATTRIBUTES_TS_99 = + /* @ts-ignore */ + goog.getMsg("100"); + i18n_99 = MSG_EXTERNAL_7671287306230991380$$MANY_I18N_ATTRIBUTES_TS_99; + } else { + /* @ts-ignore */ + i18n_99 = $localize`:100:100`; + } + let i18n_100; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 101 + */ + const MSG_EXTERNAL_6748498863794060453$$MANY_I18N_ATTRIBUTES_TS_100 = + /* @ts-ignore */ + goog.getMsg("101"); + i18n_100 = MSG_EXTERNAL_6748498863794060453$$MANY_I18N_ATTRIBUTES_TS_100; + } else { + /* @ts-ignore */ + i18n_100 = $localize`:101:101`; + } + let i18n_101; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 102 + */ + const MSG_EXTERNAL_864377051682107602$$MANY_I18N_ATTRIBUTES_TS_101 = + /* @ts-ignore */ + goog.getMsg("102"); + i18n_101 = MSG_EXTERNAL_864377051682107602$$MANY_I18N_ATTRIBUTES_TS_101; + } else { + /* @ts-ignore */ + i18n_101 = $localize`:102:102`; + } + let i18n_102; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 103 + */ + const MSG_EXTERNAL_7534700124634872747$$MANY_I18N_ATTRIBUTES_TS_102 = + /* @ts-ignore */ + goog.getMsg("103"); + i18n_102 = MSG_EXTERNAL_7534700124634872747$$MANY_I18N_ATTRIBUTES_TS_102; + } else { + /* @ts-ignore */ + i18n_102 = $localize`:103:103`; + } + let i18n_103; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 104 + */ + const MSG_EXTERNAL_2119576898379964081$$MANY_I18N_ATTRIBUTES_TS_103 = + /* @ts-ignore */ + goog.getMsg("104"); + i18n_103 = MSG_EXTERNAL_2119576898379964081$$MANY_I18N_ATTRIBUTES_TS_103; + } else { + /* @ts-ignore */ + i18n_103 = $localize`:104:104`; + } + let i18n_104; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 105 + */ + const MSG_EXTERNAL_2887849893551347554$$MANY_I18N_ATTRIBUTES_TS_104 = + /* @ts-ignore */ + goog.getMsg("105"); + i18n_104 = MSG_EXTERNAL_2887849893551347554$$MANY_I18N_ATTRIBUTES_TS_104; + } else { + /* @ts-ignore */ + i18n_104 = $localize`:105:105`; + } + let i18n_105; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 106 + */ + const MSG_EXTERNAL_1089757651095424369$$MANY_I18N_ATTRIBUTES_TS_105 = + /* @ts-ignore */ + goog.getMsg("106"); + i18n_105 = MSG_EXTERNAL_1089757651095424369$$MANY_I18N_ATTRIBUTES_TS_105; + } else { + /* @ts-ignore */ + i18n_105 = $localize`:106:106`; + } + let i18n_106; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 107 + */ + const MSG_EXTERNAL_8907278221642338271$$MANY_I18N_ATTRIBUTES_TS_106 = + /* @ts-ignore */ + goog.getMsg("107"); + i18n_106 = MSG_EXTERNAL_8907278221642338271$$MANY_I18N_ATTRIBUTES_TS_106; + } else { + /* @ts-ignore */ + i18n_106 = $localize`:107:107`; + } + let i18n_107; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 108 + */ + const MSG_EXTERNAL_1509351087736695403$$MANY_I18N_ATTRIBUTES_TS_107 = + /* @ts-ignore */ + goog.getMsg("108"); + i18n_107 = MSG_EXTERNAL_1509351087736695403$$MANY_I18N_ATTRIBUTES_TS_107; + } else { + /* @ts-ignore */ + i18n_107 = $localize`:108:108`; + } + let i18n_108; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 109 + */ + const MSG_EXTERNAL_8726423325946035562$$MANY_I18N_ATTRIBUTES_TS_108 = + /* @ts-ignore */ + goog.getMsg("109"); + i18n_108 = MSG_EXTERNAL_8726423325946035562$$MANY_I18N_ATTRIBUTES_TS_108; + } else { + /* @ts-ignore */ + i18n_108 = $localize`:109:109`; + } + let i18n_109; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 110 + */ + const MSG_EXTERNAL_6507876323715735142$$MANY_I18N_ATTRIBUTES_TS_109 = + /* @ts-ignore */ + goog.getMsg("110"); + i18n_109 = MSG_EXTERNAL_6507876323715735142$$MANY_I18N_ATTRIBUTES_TS_109; + } else { + /* @ts-ignore */ + i18n_109 = $localize`:110:110`; + } + let i18n_110; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 111 + */ + const MSG_EXTERNAL_7750463948414044892$$MANY_I18N_ATTRIBUTES_TS_110 = + /* @ts-ignore */ + goog.getMsg("111"); + i18n_110 = MSG_EXTERNAL_7750463948414044892$$MANY_I18N_ATTRIBUTES_TS_110; + } else { + /* @ts-ignore */ + i18n_110 = $localize`:111:111`; + } + let i18n_111; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 112 + */ + const MSG_EXTERNAL_8533911132453413712$$MANY_I18N_ATTRIBUTES_TS_111 = + /* @ts-ignore */ + goog.getMsg("112"); + i18n_111 = MSG_EXTERNAL_8533911132453413712$$MANY_I18N_ATTRIBUTES_TS_111; + } else { + /* @ts-ignore */ + i18n_111 = $localize`:112:112`; + } + let i18n_112; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 113 + */ + const MSG_EXTERNAL_851355621710879401$$MANY_I18N_ATTRIBUTES_TS_112 = + /* @ts-ignore */ + goog.getMsg("113"); + i18n_112 = MSG_EXTERNAL_851355621710879401$$MANY_I18N_ATTRIBUTES_TS_112; + } else { + /* @ts-ignore */ + i18n_112 = $localize`:113:113`; + } + let i18n_113; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 114 + */ + const MSG_EXTERNAL_1173297686246417543$$MANY_I18N_ATTRIBUTES_TS_113 = + /* @ts-ignore */ + goog.getMsg("114"); + i18n_113 = MSG_EXTERNAL_1173297686246417543$$MANY_I18N_ATTRIBUTES_TS_113; + } else { + /* @ts-ignore */ + i18n_113 = $localize`:114:114`; + } + let i18n_114; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 115 + */ + const MSG_EXTERNAL_8032568591661151370$$MANY_I18N_ATTRIBUTES_TS_114 = + /* @ts-ignore */ + goog.getMsg("115"); + i18n_114 = MSG_EXTERNAL_8032568591661151370$$MANY_I18N_ATTRIBUTES_TS_114; + } else { + /* @ts-ignore */ + i18n_114 = $localize`:115:115`; + } + let i18n_115; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 116 + */ + const MSG_EXTERNAL_755898327179497367$$MANY_I18N_ATTRIBUTES_TS_115 = + /* @ts-ignore */ + goog.getMsg("116"); + i18n_115 = MSG_EXTERNAL_755898327179497367$$MANY_I18N_ATTRIBUTES_TS_115; + } else { + /* @ts-ignore */ + i18n_115 = $localize`:116:116`; + } + let i18n_116; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 117 + */ + const MSG_EXTERNAL_6089651194837005295$$MANY_I18N_ATTRIBUTES_TS_116 = + /* @ts-ignore */ + goog.getMsg("117"); + i18n_116 = MSG_EXTERNAL_6089651194837005295$$MANY_I18N_ATTRIBUTES_TS_116; + } else { + /* @ts-ignore */ + i18n_116 = $localize`:117:117`; + } + let i18n_117; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 118 + */ + const MSG_EXTERNAL_8633906036172202546$$MANY_I18N_ATTRIBUTES_TS_117 = + /* @ts-ignore */ + goog.getMsg("118"); + i18n_117 = MSG_EXTERNAL_8633906036172202546$$MANY_I18N_ATTRIBUTES_TS_117; + } else { + /* @ts-ignore */ + i18n_117 = $localize`:118:118`; + } + let i18n_118; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 119 + */ + const MSG_EXTERNAL_3484942288143815778$$MANY_I18N_ATTRIBUTES_TS_118 = + /* @ts-ignore */ + goog.getMsg("119"); + i18n_118 = MSG_EXTERNAL_3484942288143815778$$MANY_I18N_ATTRIBUTES_TS_118; + } else { + /* @ts-ignore */ + i18n_118 = $localize`:119:119`; + } + let i18n_119; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 120 + */ + const MSG_EXTERNAL_6579875651484765631$$MANY_I18N_ATTRIBUTES_TS_119 = + /* @ts-ignore */ + goog.getMsg("120"); + i18n_119 = MSG_EXTERNAL_6579875651484765631$$MANY_I18N_ATTRIBUTES_TS_119; + } else { + /* @ts-ignore */ + i18n_119 = $localize`:120:120`; + } + let i18n_120; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 121 + */ + const MSG_EXTERNAL_3229458132960703515$$MANY_I18N_ATTRIBUTES_TS_120 = + /* @ts-ignore */ + goog.getMsg("121"); + i18n_120 = MSG_EXTERNAL_3229458132960703515$$MANY_I18N_ATTRIBUTES_TS_120; + } else { + /* @ts-ignore */ + i18n_120 = $localize`:121:121`; + } + let i18n_121; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 122 + */ + const MSG_EXTERNAL_6396508323851754941$$MANY_I18N_ATTRIBUTES_TS_121 = + /* @ts-ignore */ + goog.getMsg("122"); + i18n_121 = MSG_EXTERNAL_6396508323851754941$$MANY_I18N_ATTRIBUTES_TS_121; + } else { + /* @ts-ignore */ + i18n_121 = $localize`:122:122`; + } + let i18n_122; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 123 + */ + const MSG_EXTERNAL_4730008887537631422$$MANY_I18N_ATTRIBUTES_TS_122 = + /* @ts-ignore */ + goog.getMsg("123"); + i18n_122 = MSG_EXTERNAL_4730008887537631422$$MANY_I18N_ATTRIBUTES_TS_122; + } else { + /* @ts-ignore */ + i18n_122 = $localize`:123:123`; + } + let i18n_123; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 124 + */ + const MSG_EXTERNAL_6689603280308505614$$MANY_I18N_ATTRIBUTES_TS_123 = + /* @ts-ignore */ + goog.getMsg("124"); + i18n_123 = MSG_EXTERNAL_6689603280308505614$$MANY_I18N_ATTRIBUTES_TS_123; + } else { + /* @ts-ignore */ + i18n_123 = $localize`:124:124`; + } + let i18n_124; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 125 + */ + const MSG_EXTERNAL_9177127539091982297$$MANY_I18N_ATTRIBUTES_TS_124 = + /* @ts-ignore */ + goog.getMsg("125"); + i18n_124 = MSG_EXTERNAL_9177127539091982297$$MANY_I18N_ATTRIBUTES_TS_124; + } else { + /* @ts-ignore */ + i18n_124 = $localize`:125:125`; + } + let i18n_125; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 126 + */ + const MSG_EXTERNAL_9189331306922022361$$MANY_I18N_ATTRIBUTES_TS_125 = + /* @ts-ignore */ + goog.getMsg("126"); + i18n_125 = MSG_EXTERNAL_9189331306922022361$$MANY_I18N_ATTRIBUTES_TS_125; + } else { + /* @ts-ignore */ + i18n_125 = $localize`:126:126`; + } + let i18n_126; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 127 + */ + const MSG_EXTERNAL_7345292339964447426$$MANY_I18N_ATTRIBUTES_TS_126 = + /* @ts-ignore */ + goog.getMsg("127"); + i18n_126 = MSG_EXTERNAL_7345292339964447426$$MANY_I18N_ATTRIBUTES_TS_126; + } else { + /* @ts-ignore */ + i18n_126 = $localize`:127:127`; + } + let i18n_127; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 128 + */ + const MSG_EXTERNAL_1194580641817104050$$MANY_I18N_ATTRIBUTES_TS_127 = + /* @ts-ignore */ + goog.getMsg("128"); + i18n_127 = MSG_EXTERNAL_1194580641817104050$$MANY_I18N_ATTRIBUTES_TS_127; + } else { + /* @ts-ignore */ + i18n_127 = $localize`:128:128`; + } + let i18n_128; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 129 + */ + const MSG_EXTERNAL_1585006425314909883$$MANY_I18N_ATTRIBUTES_TS_128 = + /* @ts-ignore */ + goog.getMsg("129"); + i18n_128 = MSG_EXTERNAL_1585006425314909883$$MANY_I18N_ATTRIBUTES_TS_128; + } else { + /* @ts-ignore */ + i18n_128 = $localize`:129:129`; + } + let i18n_129; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 130 + */ + const MSG_EXTERNAL_5539937405471295936$$MANY_I18N_ATTRIBUTES_TS_129 = + /* @ts-ignore */ + goog.getMsg("130"); + i18n_129 = MSG_EXTERNAL_5539937405471295936$$MANY_I18N_ATTRIBUTES_TS_129; + } else { + /* @ts-ignore */ + i18n_129 = $localize`:130:130`; + } + let i18n_130; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 131 + */ + const MSG_EXTERNAL_262370978045439125$$MANY_I18N_ATTRIBUTES_TS_130 = + /* @ts-ignore */ + goog.getMsg("131"); + i18n_130 = MSG_EXTERNAL_262370978045439125$$MANY_I18N_ATTRIBUTES_TS_130; + } else { + /* @ts-ignore */ + i18n_130 = $localize`:131:131`; + } + let i18n_131; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 132 + */ + const MSG_EXTERNAL_1852116319486955880$$MANY_I18N_ATTRIBUTES_TS_131 = + /* @ts-ignore */ + goog.getMsg("132"); + i18n_131 = MSG_EXTERNAL_1852116319486955880$$MANY_I18N_ATTRIBUTES_TS_131; + } else { + /* @ts-ignore */ + i18n_131 = $localize`:132:132`; + } + let i18n_132; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 133 + */ + const MSG_EXTERNAL_5274937282922491117$$MANY_I18N_ATTRIBUTES_TS_132 = + /* @ts-ignore */ + goog.getMsg("133"); + i18n_132 = MSG_EXTERNAL_5274937282922491117$$MANY_I18N_ATTRIBUTES_TS_132; + } else { + /* @ts-ignore */ + i18n_132 = $localize`:133:133`; + } + let i18n_133; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 134 + */ + const MSG_EXTERNAL_5221708818832730213$$MANY_I18N_ATTRIBUTES_TS_133 = + /* @ts-ignore */ + goog.getMsg("134"); + i18n_133 = MSG_EXTERNAL_5221708818832730213$$MANY_I18N_ATTRIBUTES_TS_133; + } else { + /* @ts-ignore */ + i18n_133 = $localize`:134:134`; + } + let i18n_134; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 135 + */ + const MSG_EXTERNAL_3567286861743321843$$MANY_I18N_ATTRIBUTES_TS_134 = + /* @ts-ignore */ + goog.getMsg("135"); + i18n_134 = MSG_EXTERNAL_3567286861743321843$$MANY_I18N_ATTRIBUTES_TS_134; + } else { + /* @ts-ignore */ + i18n_134 = $localize`:135:135`; + } + let i18n_135; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 136 + */ + const MSG_EXTERNAL_2403336036491847743$$MANY_I18N_ATTRIBUTES_TS_135 = + /* @ts-ignore */ + goog.getMsg("136"); + i18n_135 = MSG_EXTERNAL_2403336036491847743$$MANY_I18N_ATTRIBUTES_TS_135; + } else { + /* @ts-ignore */ + i18n_135 = $localize`:136:136`; + } + let i18n_136; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 137 + */ + const MSG_EXTERNAL_6508220554048621589$$MANY_I18N_ATTRIBUTES_TS_136 = + /* @ts-ignore */ + goog.getMsg("137"); + i18n_136 = MSG_EXTERNAL_6508220554048621589$$MANY_I18N_ATTRIBUTES_TS_136; + } else { + /* @ts-ignore */ + i18n_136 = $localize`:137:137`; + } + let i18n_137; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 138 + */ + const MSG_EXTERNAL_7097283872874210592$$MANY_I18N_ATTRIBUTES_TS_137 = + /* @ts-ignore */ + goog.getMsg("138"); + i18n_137 = MSG_EXTERNAL_7097283872874210592$$MANY_I18N_ATTRIBUTES_TS_137; + } else { + /* @ts-ignore */ + i18n_137 = $localize`:138:138`; + } + let i18n_138; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 139 + */ + const MSG_EXTERNAL_4971503385946958824$$MANY_I18N_ATTRIBUTES_TS_138 = + /* @ts-ignore */ + goog.getMsg("139"); + i18n_138 = MSG_EXTERNAL_4971503385946958824$$MANY_I18N_ATTRIBUTES_TS_138; + } else { + /* @ts-ignore */ + i18n_138 = $localize`:139:139`; + } + let i18n_139; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 140 + */ + const MSG_EXTERNAL_3318591540668233454$$MANY_I18N_ATTRIBUTES_TS_139 = + /* @ts-ignore */ + goog.getMsg("140"); + i18n_139 = MSG_EXTERNAL_3318591540668233454$$MANY_I18N_ATTRIBUTES_TS_139; + } else { + /* @ts-ignore */ + i18n_139 = $localize`:140:140`; + } + let i18n_140; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 141 + */ + const MSG_EXTERNAL_3358573721747071298$$MANY_I18N_ATTRIBUTES_TS_140 = + /* @ts-ignore */ + goog.getMsg("141"); + i18n_140 = MSG_EXTERNAL_3358573721747071298$$MANY_I18N_ATTRIBUTES_TS_140; + } else { + /* @ts-ignore */ + i18n_140 = $localize`:141:141`; + } + let i18n_141; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 142 + */ + const MSG_EXTERNAL_6417251486817211011$$MANY_I18N_ATTRIBUTES_TS_141 = + /* @ts-ignore */ + goog.getMsg("142"); + i18n_141 = MSG_EXTERNAL_6417251486817211011$$MANY_I18N_ATTRIBUTES_TS_141; + } else { + /* @ts-ignore */ + i18n_141 = $localize`:142:142`; + } + let i18n_142; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 143 + */ + const MSG_EXTERNAL_8828596576790799547$$MANY_I18N_ATTRIBUTES_TS_142 = + /* @ts-ignore */ + goog.getMsg("143"); + i18n_142 = MSG_EXTERNAL_8828596576790799547$$MANY_I18N_ATTRIBUTES_TS_142; + } else { + /* @ts-ignore */ + i18n_142 = $localize`:143:143`; + } + let i18n_143; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 144 + */ + const MSG_EXTERNAL_7679931867726154579$$MANY_I18N_ATTRIBUTES_TS_143 = + /* @ts-ignore */ + goog.getMsg("144"); + i18n_143 = MSG_EXTERNAL_7679931867726154579$$MANY_I18N_ATTRIBUTES_TS_143; + } else { + /* @ts-ignore */ + i18n_143 = $localize`:144:144`; + } + let i18n_144; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 145 + */ + const MSG_EXTERNAL_4097731480923666835$$MANY_I18N_ATTRIBUTES_TS_144 = + /* @ts-ignore */ + goog.getMsg("145"); + i18n_144 = MSG_EXTERNAL_4097731480923666835$$MANY_I18N_ATTRIBUTES_TS_144; + } else { + /* @ts-ignore */ + i18n_144 = $localize`:145:145`; + } + let i18n_145; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 146 + */ + const MSG_EXTERNAL_4293378471778720513$$MANY_I18N_ATTRIBUTES_TS_145 = + /* @ts-ignore */ + goog.getMsg("146"); + i18n_145 = MSG_EXTERNAL_4293378471778720513$$MANY_I18N_ATTRIBUTES_TS_145; + } else { + /* @ts-ignore */ + i18n_145 = $localize`:146:146`; + } + let i18n_146; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 147 + */ + const MSG_EXTERNAL_5767138707752754823$$MANY_I18N_ATTRIBUTES_TS_146 = + /* @ts-ignore */ + goog.getMsg("147"); + i18n_146 = MSG_EXTERNAL_5767138707752754823$$MANY_I18N_ATTRIBUTES_TS_146; + } else { + /* @ts-ignore */ + i18n_146 = $localize`:147:147`; + } + let i18n_147; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 148 + */ + const MSG_EXTERNAL_120677222804010003$$MANY_I18N_ATTRIBUTES_TS_147 = + /* @ts-ignore */ + goog.getMsg("148"); + i18n_147 = MSG_EXTERNAL_120677222804010003$$MANY_I18N_ATTRIBUTES_TS_147; + } else { + /* @ts-ignore */ + i18n_147 = $localize`:148:148`; + } + let i18n_148; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 149 + */ + const MSG_EXTERNAL_1159879205890557527$$MANY_I18N_ATTRIBUTES_TS_148 = + /* @ts-ignore */ + goog.getMsg("149"); + i18n_148 = MSG_EXTERNAL_1159879205890557527$$MANY_I18N_ATTRIBUTES_TS_148; + } else { + /* @ts-ignore */ + i18n_148 = $localize`:149:149`; + } + let i18n_149; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 150 + */ + const MSG_EXTERNAL_1661494093102452649$$MANY_I18N_ATTRIBUTES_TS_149 = + /* @ts-ignore */ + goog.getMsg("150"); + i18n_149 = MSG_EXTERNAL_1661494093102452649$$MANY_I18N_ATTRIBUTES_TS_149; + } else { + /* @ts-ignore */ + i18n_149 = $localize`:150:150`; + } + let i18n_150; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 151 + */ + const MSG_EXTERNAL_2236520595663587163$$MANY_I18N_ATTRIBUTES_TS_150 = + /* @ts-ignore */ + goog.getMsg("151"); + i18n_150 = MSG_EXTERNAL_2236520595663587163$$MANY_I18N_ATTRIBUTES_TS_150; + } else { + /* @ts-ignore */ + i18n_150 = $localize`:151:151`; + } + let i18n_151; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 152 + */ + const MSG_EXTERNAL_2652974688136233164$$MANY_I18N_ATTRIBUTES_TS_151 = + /* @ts-ignore */ + goog.getMsg("152"); + i18n_151 = MSG_EXTERNAL_2652974688136233164$$MANY_I18N_ATTRIBUTES_TS_151; + } else { + /* @ts-ignore */ + i18n_151 = $localize`:152:152`; + } + let i18n_152; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 153 + */ + const MSG_EXTERNAL_5963647766129172963$$MANY_I18N_ATTRIBUTES_TS_152 = + /* @ts-ignore */ + goog.getMsg("153"); + i18n_152 = MSG_EXTERNAL_5963647766129172963$$MANY_I18N_ATTRIBUTES_TS_152; + } else { + /* @ts-ignore */ + i18n_152 = $localize`:153:153`; + } + let i18n_153; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 154 + */ + const MSG_EXTERNAL_1944737270659421722$$MANY_I18N_ATTRIBUTES_TS_153 = + /* @ts-ignore */ + goog.getMsg("154"); + i18n_153 = MSG_EXTERNAL_1944737270659421722$$MANY_I18N_ATTRIBUTES_TS_153; + } else { + /* @ts-ignore */ + i18n_153 = $localize`:154:154`; + } + let i18n_154; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 155 + */ + const MSG_EXTERNAL_5496717610670573649$$MANY_I18N_ATTRIBUTES_TS_154 = + /* @ts-ignore */ + goog.getMsg("155"); + i18n_154 = MSG_EXTERNAL_5496717610670573649$$MANY_I18N_ATTRIBUTES_TS_154; + } else { + /* @ts-ignore */ + i18n_154 = $localize`:155:155`; + } + let i18n_155; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 156 + */ + const MSG_EXTERNAL_3360747335167767814$$MANY_I18N_ATTRIBUTES_TS_155 = + /* @ts-ignore */ + goog.getMsg("156"); + i18n_155 = MSG_EXTERNAL_3360747335167767814$$MANY_I18N_ATTRIBUTES_TS_155; + } else { + /* @ts-ignore */ + i18n_155 = $localize`:156:156`; + } + let i18n_156; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 157 + */ + const MSG_EXTERNAL_5503499770263428045$$MANY_I18N_ATTRIBUTES_TS_156 = + /* @ts-ignore */ + goog.getMsg("157"); + i18n_156 = MSG_EXTERNAL_5503499770263428045$$MANY_I18N_ATTRIBUTES_TS_156; + } else { + /* @ts-ignore */ + i18n_156 = $localize`:157:157`; + } + let i18n_157; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 158 + */ + const MSG_EXTERNAL_4907856706752079273$$MANY_I18N_ATTRIBUTES_TS_157 = + /* @ts-ignore */ + goog.getMsg("158"); + i18n_157 = MSG_EXTERNAL_4907856706752079273$$MANY_I18N_ATTRIBUTES_TS_157; + } else { + /* @ts-ignore */ + i18n_157 = $localize`:158:158`; + } + let i18n_158; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 159 + */ + const MSG_EXTERNAL_3767829522912146941$$MANY_I18N_ATTRIBUTES_TS_158 = + /* @ts-ignore */ + goog.getMsg("159"); + i18n_158 = MSG_EXTERNAL_3767829522912146941$$MANY_I18N_ATTRIBUTES_TS_158; + } else { + /* @ts-ignore */ + i18n_158 = $localize`:159:159`; + } + let i18n_159; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 160 + */ + const MSG_EXTERNAL_5090832530779218123$$MANY_I18N_ATTRIBUTES_TS_159 = + /* @ts-ignore */ + goog.getMsg("160"); + i18n_159 = MSG_EXTERNAL_5090832530779218123$$MANY_I18N_ATTRIBUTES_TS_159; + } else { + /* @ts-ignore */ + i18n_159 = $localize`:160:160`; + } + let i18n_160; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 161 + */ + const MSG_EXTERNAL_3208591303688713742$$MANY_I18N_ATTRIBUTES_TS_160 = + /* @ts-ignore */ + goog.getMsg("161"); + i18n_160 = MSG_EXTERNAL_3208591303688713742$$MANY_I18N_ATTRIBUTES_TS_160; + } else { + /* @ts-ignore */ + i18n_160 = $localize`:161:161`; + } + let i18n_161; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 162 + */ + const MSG_EXTERNAL_7477683900572379155$$MANY_I18N_ATTRIBUTES_TS_161 = + /* @ts-ignore */ + goog.getMsg("162"); + i18n_161 = MSG_EXTERNAL_7477683900572379155$$MANY_I18N_ATTRIBUTES_TS_161; + } else { + /* @ts-ignore */ + i18n_161 = $localize`:162:162`; + } + let i18n_162; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 163 + */ + const MSG_EXTERNAL_8051105923462022869$$MANY_I18N_ATTRIBUTES_TS_162 = + /* @ts-ignore */ + goog.getMsg("163"); + i18n_162 = MSG_EXTERNAL_8051105923462022869$$MANY_I18N_ATTRIBUTES_TS_162; + } else { + /* @ts-ignore */ + i18n_162 = $localize`:163:163`; + } + let i18n_163; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 164 + */ + const MSG_EXTERNAL_2047564130648527904$$MANY_I18N_ATTRIBUTES_TS_163 = + /* @ts-ignore */ + goog.getMsg("164"); + i18n_163 = MSG_EXTERNAL_2047564130648527904$$MANY_I18N_ATTRIBUTES_TS_163; + } else { + /* @ts-ignore */ + i18n_163 = $localize`:164:164`; + } + let i18n_164; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 165 + */ + const MSG_EXTERNAL_4586612958538599993$$MANY_I18N_ATTRIBUTES_TS_164 = + /* @ts-ignore */ + goog.getMsg("165"); + i18n_164 = MSG_EXTERNAL_4586612958538599993$$MANY_I18N_ATTRIBUTES_TS_164; + } else { + /* @ts-ignore */ + i18n_164 = $localize`:165:165`; + } + let i18n_165; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 166 + */ + const MSG_EXTERNAL_1658700347431839190$$MANY_I18N_ATTRIBUTES_TS_165 = + /* @ts-ignore */ + goog.getMsg("166"); + i18n_165 = MSG_EXTERNAL_1658700347431839190$$MANY_I18N_ATTRIBUTES_TS_165; + } else { + /* @ts-ignore */ + i18n_165 = $localize`:166:166`; + } + let i18n_166; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 167 + */ + const MSG_EXTERNAL_147819885493718802$$MANY_I18N_ATTRIBUTES_TS_166 = + /* @ts-ignore */ + goog.getMsg("167"); + i18n_166 = MSG_EXTERNAL_147819885493718802$$MANY_I18N_ATTRIBUTES_TS_166; + } else { + /* @ts-ignore */ + i18n_166 = $localize`:167:167`; + } + let i18n_167; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 168 + */ + const MSG_EXTERNAL_5598473468340617954$$MANY_I18N_ATTRIBUTES_TS_167 = + /* @ts-ignore */ + goog.getMsg("168"); + i18n_167 = MSG_EXTERNAL_5598473468340617954$$MANY_I18N_ATTRIBUTES_TS_167; + } else { + /* @ts-ignore */ + i18n_167 = $localize`:168:168`; + } + let i18n_168; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 169 + */ + const MSG_EXTERNAL_5402452507622016045$$MANY_I18N_ATTRIBUTES_TS_168 = + /* @ts-ignore */ + goog.getMsg("169"); + i18n_168 = MSG_EXTERNAL_5402452507622016045$$MANY_I18N_ATTRIBUTES_TS_168; + } else { + /* @ts-ignore */ + i18n_168 = $localize`:169:169`; + } + let i18n_169; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 170 + */ + const MSG_EXTERNAL_3173510385929877369$$MANY_I18N_ATTRIBUTES_TS_169 = + /* @ts-ignore */ + goog.getMsg("170"); + i18n_169 = MSG_EXTERNAL_3173510385929877369$$MANY_I18N_ATTRIBUTES_TS_169; + } else { + /* @ts-ignore */ + i18n_169 = $localize`:170:170`; + } + let i18n_170; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 171 + */ + const MSG_EXTERNAL_8141779416388186581$$MANY_I18N_ATTRIBUTES_TS_170 = + /* @ts-ignore */ + goog.getMsg("171"); + i18n_170 = MSG_EXTERNAL_8141779416388186581$$MANY_I18N_ATTRIBUTES_TS_170; + } else { + /* @ts-ignore */ + i18n_170 = $localize`:171:171`; + } + let i18n_171; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 172 + */ + const MSG_EXTERNAL_3702741587280302027$$MANY_I18N_ATTRIBUTES_TS_171 = + /* @ts-ignore */ + goog.getMsg("172"); + i18n_171 = MSG_EXTERNAL_3702741587280302027$$MANY_I18N_ATTRIBUTES_TS_171; + } else { + /* @ts-ignore */ + i18n_171 = $localize`:172:172`; + } + let i18n_172; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 173 + */ + const MSG_EXTERNAL_2609768463217977349$$MANY_I18N_ATTRIBUTES_TS_172 = + /* @ts-ignore */ + goog.getMsg("173"); + i18n_172 = MSG_EXTERNAL_2609768463217977349$$MANY_I18N_ATTRIBUTES_TS_172; + } else { + /* @ts-ignore */ + i18n_172 = $localize`:173:173`; + } + let i18n_173; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 174 + */ + const MSG_EXTERNAL_3474912625280993329$$MANY_I18N_ATTRIBUTES_TS_173 = + /* @ts-ignore */ + goog.getMsg("174"); + i18n_173 = MSG_EXTERNAL_3474912625280993329$$MANY_I18N_ATTRIBUTES_TS_173; + } else { + /* @ts-ignore */ + i18n_173 = $localize`:174:174`; + } + let i18n_174; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 175 + */ + const MSG_EXTERNAL_3668011430361561106$$MANY_I18N_ATTRIBUTES_TS_174 = + /* @ts-ignore */ + goog.getMsg("175"); + i18n_174 = MSG_EXTERNAL_3668011430361561106$$MANY_I18N_ATTRIBUTES_TS_174; + } else { + /* @ts-ignore */ + i18n_174 = $localize`:175:175`; + } + let i18n_175; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 176 + */ + const MSG_EXTERNAL_6955715010250310081$$MANY_I18N_ATTRIBUTES_TS_175 = + /* @ts-ignore */ + goog.getMsg("176"); + i18n_175 = MSG_EXTERNAL_6955715010250310081$$MANY_I18N_ATTRIBUTES_TS_175; + } else { + /* @ts-ignore */ + i18n_175 = $localize`:176:176`; + } + let i18n_176; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 177 + */ + const MSG_EXTERNAL_8211458983710743981$$MANY_I18N_ATTRIBUTES_TS_176 = + /* @ts-ignore */ + goog.getMsg("177"); + i18n_176 = MSG_EXTERNAL_8211458983710743981$$MANY_I18N_ATTRIBUTES_TS_176; + } else { + /* @ts-ignore */ + i18n_176 = $localize`:177:177`; + } + let i18n_177; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 178 + */ + const MSG_EXTERNAL_1126141388798846727$$MANY_I18N_ATTRIBUTES_TS_177 = + /* @ts-ignore */ + goog.getMsg("178"); + i18n_177 = MSG_EXTERNAL_1126141388798846727$$MANY_I18N_ATTRIBUTES_TS_177; + } else { + /* @ts-ignore */ + i18n_177 = $localize`:178:178`; + } + let i18n_178; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 179 + */ + const MSG_EXTERNAL_7399947575414146872$$MANY_I18N_ATTRIBUTES_TS_178 = + /* @ts-ignore */ + goog.getMsg("179"); + i18n_178 = MSG_EXTERNAL_7399947575414146872$$MANY_I18N_ATTRIBUTES_TS_178; + } else { + /* @ts-ignore */ + i18n_178 = $localize`:179:179`; + } + let i18n_179; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 180 + */ + const MSG_EXTERNAL_5802511037516207777$$MANY_I18N_ATTRIBUTES_TS_179 = + /* @ts-ignore */ + goog.getMsg("180"); + i18n_179 = MSG_EXTERNAL_5802511037516207777$$MANY_I18N_ATTRIBUTES_TS_179; + } else { + /* @ts-ignore */ + i18n_179 = $localize`:180:180`; + } + let i18n_180; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 181 + */ + const MSG_EXTERNAL_1219232524361245007$$MANY_I18N_ATTRIBUTES_TS_180 = + /* @ts-ignore */ + goog.getMsg("181"); + i18n_180 = MSG_EXTERNAL_1219232524361245007$$MANY_I18N_ATTRIBUTES_TS_180; + } else { + /* @ts-ignore */ + i18n_180 = $localize`:181:181`; + } + let i18n_181; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 182 + */ + const MSG_EXTERNAL_6601356179643256077$$MANY_I18N_ATTRIBUTES_TS_181 = + /* @ts-ignore */ + goog.getMsg("182"); + i18n_181 = MSG_EXTERNAL_6601356179643256077$$MANY_I18N_ATTRIBUTES_TS_181; + } else { + /* @ts-ignore */ + i18n_181 = $localize`:182:182`; + } + let i18n_182; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 183 + */ + const MSG_EXTERNAL_2158064177181513014$$MANY_I18N_ATTRIBUTES_TS_182 = + /* @ts-ignore */ + goog.getMsg("183"); + i18n_182 = MSG_EXTERNAL_2158064177181513014$$MANY_I18N_ATTRIBUTES_TS_182; + } else { + /* @ts-ignore */ + i18n_182 = $localize`:183:183`; + } + let i18n_183; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 184 + */ + const MSG_EXTERNAL_472849099133785516$$MANY_I18N_ATTRIBUTES_TS_183 = + /* @ts-ignore */ + goog.getMsg("184"); + i18n_183 = MSG_EXTERNAL_472849099133785516$$MANY_I18N_ATTRIBUTES_TS_183; + } else { + /* @ts-ignore */ + i18n_183 = $localize`:184:184`; + } + let i18n_184; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 185 + */ + const MSG_EXTERNAL_8668882129235856182$$MANY_I18N_ATTRIBUTES_TS_184 = + /* @ts-ignore */ + goog.getMsg("185"); + i18n_184 = MSG_EXTERNAL_8668882129235856182$$MANY_I18N_ATTRIBUTES_TS_184; + } else { + /* @ts-ignore */ + i18n_184 = $localize`:185:185`; + } + let i18n_185; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 186 + */ + const MSG_EXTERNAL_3775889044065880708$$MANY_I18N_ATTRIBUTES_TS_185 = + /* @ts-ignore */ + goog.getMsg("186"); + i18n_185 = MSG_EXTERNAL_3775889044065880708$$MANY_I18N_ATTRIBUTES_TS_185; + } else { + /* @ts-ignore */ + i18n_185 = $localize`:186:186`; + } + let i18n_186; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 187 + */ + const MSG_EXTERNAL_8884120928112195778$$MANY_I18N_ATTRIBUTES_TS_186 = + /* @ts-ignore */ + goog.getMsg("187"); + i18n_186 = MSG_EXTERNAL_8884120928112195778$$MANY_I18N_ATTRIBUTES_TS_186; + } else { + /* @ts-ignore */ + i18n_186 = $localize`:187:187`; + } + let i18n_187; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 188 + */ + const MSG_EXTERNAL_4095954327669801059$$MANY_I18N_ATTRIBUTES_TS_187 = + /* @ts-ignore */ + goog.getMsg("188"); + i18n_187 = MSG_EXTERNAL_4095954327669801059$$MANY_I18N_ATTRIBUTES_TS_187; + } else { + /* @ts-ignore */ + i18n_187 = $localize`:188:188`; + } + let i18n_188; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 189 + */ + const MSG_EXTERNAL_8155185074246590640$$MANY_I18N_ATTRIBUTES_TS_188 = + /* @ts-ignore */ + goog.getMsg("189"); + i18n_188 = MSG_EXTERNAL_8155185074246590640$$MANY_I18N_ATTRIBUTES_TS_188; + } else { + /* @ts-ignore */ + i18n_188 = $localize`:189:189`; + } + let i18n_189; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 190 + */ + const MSG_EXTERNAL_6514489385360467438$$MANY_I18N_ATTRIBUTES_TS_189 = + /* @ts-ignore */ + goog.getMsg("190"); + i18n_189 = MSG_EXTERNAL_6514489385360467438$$MANY_I18N_ATTRIBUTES_TS_189; + } else { + /* @ts-ignore */ + i18n_189 = $localize`:190:190`; + } + let i18n_190; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 191 + */ + const MSG_EXTERNAL_7606547524514490902$$MANY_I18N_ATTRIBUTES_TS_190 = + /* @ts-ignore */ + goog.getMsg("191"); + i18n_190 = MSG_EXTERNAL_7606547524514490902$$MANY_I18N_ATTRIBUTES_TS_190; + } else { + /* @ts-ignore */ + i18n_190 = $localize`:191:191`; + } + let i18n_191; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 192 + */ + const MSG_EXTERNAL_7822863047467663030$$MANY_I18N_ATTRIBUTES_TS_191 = + /* @ts-ignore */ + goog.getMsg("192"); + i18n_191 = MSG_EXTERNAL_7822863047467663030$$MANY_I18N_ATTRIBUTES_TS_191; + } else { + /* @ts-ignore */ + i18n_191 = $localize`:192:192`; + } + let i18n_192; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 193 + */ + const MSG_EXTERNAL_1000781359194194333$$MANY_I18N_ATTRIBUTES_TS_192 = + /* @ts-ignore */ + goog.getMsg("193"); + i18n_192 = MSG_EXTERNAL_1000781359194194333$$MANY_I18N_ATTRIBUTES_TS_192; + } else { + /* @ts-ignore */ + i18n_192 = $localize`:193:193`; + } + let i18n_193; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 194 + */ + const MSG_EXTERNAL_5286028632089236985$$MANY_I18N_ATTRIBUTES_TS_193 = + /* @ts-ignore */ + goog.getMsg("194"); + i18n_193 = MSG_EXTERNAL_5286028632089236985$$MANY_I18N_ATTRIBUTES_TS_193; + } else { + /* @ts-ignore */ + i18n_193 = $localize`:194:194`; + } + let i18n_194; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 195 + */ + const MSG_EXTERNAL_6304619091039380824$$MANY_I18N_ATTRIBUTES_TS_194 = + /* @ts-ignore */ + goog.getMsg("195"); + i18n_194 = MSG_EXTERNAL_6304619091039380824$$MANY_I18N_ATTRIBUTES_TS_194; + } else { + /* @ts-ignore */ + i18n_194 = $localize`:195:195`; + } + let i18n_195; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 196 + */ + const MSG_EXTERNAL_7698288858767734649$$MANY_I18N_ATTRIBUTES_TS_195 = + /* @ts-ignore */ + goog.getMsg("196"); + i18n_195 = MSG_EXTERNAL_7698288858767734649$$MANY_I18N_ATTRIBUTES_TS_195; + } else { + /* @ts-ignore */ + i18n_195 = $localize`:196:196`; + } + let i18n_196; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 197 + */ + const MSG_EXTERNAL_7478361010808051048$$MANY_I18N_ATTRIBUTES_TS_196 = + /* @ts-ignore */ + goog.getMsg("197"); + i18n_196 = MSG_EXTERNAL_7478361010808051048$$MANY_I18N_ATTRIBUTES_TS_196; + } else { + /* @ts-ignore */ + i18n_196 = $localize`:197:197`; + } + let i18n_197; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 198 + */ + const MSG_EXTERNAL_8167527023912489900$$MANY_I18N_ATTRIBUTES_TS_197 = + /* @ts-ignore */ + goog.getMsg("198"); + i18n_197 = MSG_EXTERNAL_8167527023912489900$$MANY_I18N_ATTRIBUTES_TS_197; + } else { + /* @ts-ignore */ + i18n_197 = $localize`:198:198`; + } + let i18n_198; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 199 + */ + const MSG_EXTERNAL_4663722642051085264$$MANY_I18N_ATTRIBUTES_TS_198 = + /* @ts-ignore */ + goog.getMsg("199"); + i18n_198 = MSG_EXTERNAL_4663722642051085264$$MANY_I18N_ATTRIBUTES_TS_198; + } else { + /* @ts-ignore */ + i18n_198 = $localize`:199:199`; + } + let i18n_199; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 200 + */ + const MSG_EXTERNAL_2844378818442121992$$MANY_I18N_ATTRIBUTES_TS_199 = + /* @ts-ignore */ + goog.getMsg("200"); + i18n_199 = MSG_EXTERNAL_2844378818442121992$$MANY_I18N_ATTRIBUTES_TS_199; + } else { + /* @ts-ignore */ + i18n_199 = $localize`:200:200`; + } + let i18n_200; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 201 + */ + const MSG_EXTERNAL_5458090117461751483$$MANY_I18N_ATTRIBUTES_TS_200 = + /* @ts-ignore */ + goog.getMsg("201"); + i18n_200 = MSG_EXTERNAL_5458090117461751483$$MANY_I18N_ATTRIBUTES_TS_200; + } else { + /* @ts-ignore */ + i18n_200 = $localize`:201:201`; + } + let i18n_201; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 202 + */ + const MSG_EXTERNAL_6796379954188507098$$MANY_I18N_ATTRIBUTES_TS_201 = + /* @ts-ignore */ + goog.getMsg("202"); + i18n_201 = MSG_EXTERNAL_6796379954188507098$$MANY_I18N_ATTRIBUTES_TS_201; + } else { + /* @ts-ignore */ + i18n_201 = $localize`:202:202`; + } + let i18n_202; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 203 + */ + const MSG_EXTERNAL_6046825567840136404$$MANY_I18N_ATTRIBUTES_TS_202 = + /* @ts-ignore */ + goog.getMsg("203"); + i18n_202 = MSG_EXTERNAL_6046825567840136404$$MANY_I18N_ATTRIBUTES_TS_202; + } else { + /* @ts-ignore */ + i18n_202 = $localize`:203:203`; + } + let i18n_203; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 204 + */ + const MSG_EXTERNAL_398370993033790849$$MANY_I18N_ATTRIBUTES_TS_203 = + /* @ts-ignore */ + goog.getMsg("204"); + i18n_203 = MSG_EXTERNAL_398370993033790849$$MANY_I18N_ATTRIBUTES_TS_203; + } else { + /* @ts-ignore */ + i18n_203 = $localize`:204:204`; + } + let i18n_204; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 205 + */ + const MSG_EXTERNAL_2214069869235024892$$MANY_I18N_ATTRIBUTES_TS_204 = + /* @ts-ignore */ + goog.getMsg("205"); + i18n_204 = MSG_EXTERNAL_2214069869235024892$$MANY_I18N_ATTRIBUTES_TS_204; + } else { + /* @ts-ignore */ + i18n_204 = $localize`:205:205`; + } + let i18n_205; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 206 + */ + const MSG_EXTERNAL_2432971091892305428$$MANY_I18N_ATTRIBUTES_TS_205 = + /* @ts-ignore */ + goog.getMsg("206"); + i18n_205 = MSG_EXTERNAL_2432971091892305428$$MANY_I18N_ATTRIBUTES_TS_205; + } else { + /* @ts-ignore */ + i18n_205 = $localize`:206:206`; + } + let i18n_206; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 207 + */ + const MSG_EXTERNAL_3883638997167019320$$MANY_I18N_ATTRIBUTES_TS_206 = + /* @ts-ignore */ + goog.getMsg("207"); + i18n_206 = MSG_EXTERNAL_3883638997167019320$$MANY_I18N_ATTRIBUTES_TS_206; + } else { + /* @ts-ignore */ + i18n_206 = $localize`:207:207`; + } + let i18n_207; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 208 + */ + const MSG_EXTERNAL_301196079063346608$$MANY_I18N_ATTRIBUTES_TS_207 = + /* @ts-ignore */ + goog.getMsg("208"); + i18n_207 = MSG_EXTERNAL_301196079063346608$$MANY_I18N_ATTRIBUTES_TS_207; + } else { + /* @ts-ignore */ + i18n_207 = $localize`:208:208`; + } + let i18n_208; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 209 + */ + const MSG_EXTERNAL_1887037150498923152$$MANY_I18N_ATTRIBUTES_TS_208 = + /* @ts-ignore */ + goog.getMsg("209"); + i18n_208 = MSG_EXTERNAL_1887037150498923152$$MANY_I18N_ATTRIBUTES_TS_208; + } else { + /* @ts-ignore */ + i18n_208 = $localize`:209:209`; + } + let i18n_209; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 210 + */ + const MSG_EXTERNAL_2672505093354340508$$MANY_I18N_ATTRIBUTES_TS_209 = + /* @ts-ignore */ + goog.getMsg("210"); + i18n_209 = MSG_EXTERNAL_2672505093354340508$$MANY_I18N_ATTRIBUTES_TS_209; + } else { + /* @ts-ignore */ + i18n_209 = $localize`:210:210`; + } + let i18n_210; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 211 + */ + const MSG_EXTERNAL_50798133743996132$$MANY_I18N_ATTRIBUTES_TS_210 = + /* @ts-ignore */ + goog.getMsg("211"); + i18n_210 = MSG_EXTERNAL_50798133743996132$$MANY_I18N_ATTRIBUTES_TS_210; + } else { + /* @ts-ignore */ + i18n_210 = $localize`:211:211`; + } + let i18n_211; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 212 + */ + const MSG_EXTERNAL_6771719321391545698$$MANY_I18N_ATTRIBUTES_TS_211 = + /* @ts-ignore */ + goog.getMsg("212"); + i18n_211 = MSG_EXTERNAL_6771719321391545698$$MANY_I18N_ATTRIBUTES_TS_211; + } else { + /* @ts-ignore */ + i18n_211 = $localize`:212:212`; + } + let i18n_212; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 213 + */ + const MSG_EXTERNAL_29766569375404634$$MANY_I18N_ATTRIBUTES_TS_212 = + /* @ts-ignore */ + goog.getMsg("213"); + i18n_212 = MSG_EXTERNAL_29766569375404634$$MANY_I18N_ATTRIBUTES_TS_212; + } else { + /* @ts-ignore */ + i18n_212 = $localize`:213:213`; + } + let i18n_213; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 214 + */ + const MSG_EXTERNAL_6358231135210584047$$MANY_I18N_ATTRIBUTES_TS_213 = + /* @ts-ignore */ + goog.getMsg("214"); + i18n_213 = MSG_EXTERNAL_6358231135210584047$$MANY_I18N_ATTRIBUTES_TS_213; + } else { + /* @ts-ignore */ + i18n_213 = $localize`:214:214`; + } + let i18n_214; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 215 + */ + const MSG_EXTERNAL_8110593851180150969$$MANY_I18N_ATTRIBUTES_TS_214 = + /* @ts-ignore */ + goog.getMsg("215"); + i18n_214 = MSG_EXTERNAL_8110593851180150969$$MANY_I18N_ATTRIBUTES_TS_214; + } else { + /* @ts-ignore */ + i18n_214 = $localize`:215:215`; + } + let i18n_215; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 216 + */ + const MSG_EXTERNAL_1858656361183260974$$MANY_I18N_ATTRIBUTES_TS_215 = + /* @ts-ignore */ + goog.getMsg("216"); + i18n_215 = MSG_EXTERNAL_1858656361183260974$$MANY_I18N_ATTRIBUTES_TS_215; + } else { + /* @ts-ignore */ + i18n_215 = $localize`:216:216`; + } + let i18n_216; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 217 + */ + const MSG_EXTERNAL_991530101550005155$$MANY_I18N_ATTRIBUTES_TS_216 = + /* @ts-ignore */ + goog.getMsg("217"); + i18n_216 = MSG_EXTERNAL_991530101550005155$$MANY_I18N_ATTRIBUTES_TS_216; + } else { + /* @ts-ignore */ + i18n_216 = $localize`:217:217`; + } + let i18n_217; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 218 + */ + const MSG_EXTERNAL_1952022193084995435$$MANY_I18N_ATTRIBUTES_TS_217 = + /* @ts-ignore */ + goog.getMsg("218"); + i18n_217 = MSG_EXTERNAL_1952022193084995435$$MANY_I18N_ATTRIBUTES_TS_217; + } else { + /* @ts-ignore */ + i18n_217 = $localize`:218:218`; + } + let i18n_218; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 219 + */ + const MSG_EXTERNAL_6798399991570535973$$MANY_I18N_ATTRIBUTES_TS_218 = + /* @ts-ignore */ + goog.getMsg("219"); + i18n_218 = MSG_EXTERNAL_6798399991570535973$$MANY_I18N_ATTRIBUTES_TS_218; + } else { + /* @ts-ignore */ + i18n_218 = $localize`:219:219`; + } + let i18n_219; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 220 + */ + const MSG_EXTERNAL_2083232074898870122$$MANY_I18N_ATTRIBUTES_TS_219 = + /* @ts-ignore */ + goog.getMsg("220"); + i18n_219 = MSG_EXTERNAL_2083232074898870122$$MANY_I18N_ATTRIBUTES_TS_219; + } else { + /* @ts-ignore */ + i18n_219 = $localize`:220:220`; + } + let i18n_220; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 221 + */ + const MSG_EXTERNAL_5703538487958252436$$MANY_I18N_ATTRIBUTES_TS_220 = + /* @ts-ignore */ + goog.getMsg("221"); + i18n_220 = MSG_EXTERNAL_5703538487958252436$$MANY_I18N_ATTRIBUTES_TS_220; + } else { + /* @ts-ignore */ + i18n_220 = $localize`:221:221`; + } + let i18n_221; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 222 + */ + const MSG_EXTERNAL_9000644593085276723$$MANY_I18N_ATTRIBUTES_TS_221 = + /* @ts-ignore */ + goog.getMsg("222"); + i18n_221 = MSG_EXTERNAL_9000644593085276723$$MANY_I18N_ATTRIBUTES_TS_221; + } else { + /* @ts-ignore */ + i18n_221 = $localize`:222:222`; + } + let i18n_222; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 223 + */ + const MSG_EXTERNAL_6981666890647413750$$MANY_I18N_ATTRIBUTES_TS_222 = + /* @ts-ignore */ + goog.getMsg("223"); + i18n_222 = MSG_EXTERNAL_6981666890647413750$$MANY_I18N_ATTRIBUTES_TS_222; + } else { + /* @ts-ignore */ + i18n_222 = $localize`:223:223`; + } + let i18n_223; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 224 + */ + const MSG_EXTERNAL_3376478315534693830$$MANY_I18N_ATTRIBUTES_TS_223 = + /* @ts-ignore */ + goog.getMsg("224"); + i18n_223 = MSG_EXTERNAL_3376478315534693830$$MANY_I18N_ATTRIBUTES_TS_223; + } else { + /* @ts-ignore */ + i18n_223 = $localize`:224:224`; + } + let i18n_224; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 225 + */ + const MSG_EXTERNAL_1124827272760898355$$MANY_I18N_ATTRIBUTES_TS_224 = + /* @ts-ignore */ + goog.getMsg("225"); + i18n_224 = MSG_EXTERNAL_1124827272760898355$$MANY_I18N_ATTRIBUTES_TS_224; + } else { + /* @ts-ignore */ + i18n_224 = $localize`:225:225`; + } + let i18n_225; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 226 + */ + const MSG_EXTERNAL_1672999625421027749$$MANY_I18N_ATTRIBUTES_TS_225 = + /* @ts-ignore */ + goog.getMsg("226"); + i18n_225 = MSG_EXTERNAL_1672999625421027749$$MANY_I18N_ATTRIBUTES_TS_225; + } else { + /* @ts-ignore */ + i18n_225 = $localize`:226:226`; + } + let i18n_226; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 227 + */ + const MSG_EXTERNAL_2852405050154648310$$MANY_I18N_ATTRIBUTES_TS_226 = + /* @ts-ignore */ + goog.getMsg("227"); + i18n_226 = MSG_EXTERNAL_2852405050154648310$$MANY_I18N_ATTRIBUTES_TS_226; + } else { + /* @ts-ignore */ + i18n_226 = $localize`:227:227`; + } + let i18n_227; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 228 + */ + const MSG_EXTERNAL_1175040882302800018$$MANY_I18N_ATTRIBUTES_TS_227 = + /* @ts-ignore */ + goog.getMsg("228"); + i18n_227 = MSG_EXTERNAL_1175040882302800018$$MANY_I18N_ATTRIBUTES_TS_227; + } else { + /* @ts-ignore */ + i18n_227 = $localize`:228:228`; + } + let i18n_228; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 229 + */ + const MSG_EXTERNAL_474159351404982532$$MANY_I18N_ATTRIBUTES_TS_228 = + /* @ts-ignore */ + goog.getMsg("229"); + i18n_228 = MSG_EXTERNAL_474159351404982532$$MANY_I18N_ATTRIBUTES_TS_228; + } else { + /* @ts-ignore */ + i18n_228 = $localize`:229:229`; + } + let i18n_229; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 230 + */ + const MSG_EXTERNAL_6079546817318153418$$MANY_I18N_ATTRIBUTES_TS_229 = + /* @ts-ignore */ + goog.getMsg("230"); + i18n_229 = MSG_EXTERNAL_6079546817318153418$$MANY_I18N_ATTRIBUTES_TS_229; + } else { + /* @ts-ignore */ + i18n_229 = $localize`:230:230`; + } + let i18n_230; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 231 + */ + const MSG_EXTERNAL_5925650610463308594$$MANY_I18N_ATTRIBUTES_TS_230 = + /* @ts-ignore */ + goog.getMsg("231"); + i18n_230 = MSG_EXTERNAL_5925650610463308594$$MANY_I18N_ATTRIBUTES_TS_230; + } else { + /* @ts-ignore */ + i18n_230 = $localize`:231:231`; + } + let i18n_231; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 232 + */ + const MSG_EXTERNAL_3333371197801297629$$MANY_I18N_ATTRIBUTES_TS_231 = + /* @ts-ignore */ + goog.getMsg("232"); + i18n_231 = MSG_EXTERNAL_3333371197801297629$$MANY_I18N_ATTRIBUTES_TS_231; + } else { + /* @ts-ignore */ + i18n_231 = $localize`:232:232`; + } + let i18n_232; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 233 + */ + const MSG_EXTERNAL_7945665004377933421$$MANY_I18N_ATTRIBUTES_TS_232 = + /* @ts-ignore */ + goog.getMsg("233"); + i18n_232 = MSG_EXTERNAL_7945665004377933421$$MANY_I18N_ATTRIBUTES_TS_232; + } else { + /* @ts-ignore */ + i18n_232 = $localize`:233:233`; + } + let i18n_233; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 234 + */ + const MSG_EXTERNAL_1917451399451147798$$MANY_I18N_ATTRIBUTES_TS_233 = + /* @ts-ignore */ + goog.getMsg("234"); + i18n_233 = MSG_EXTERNAL_1917451399451147798$$MANY_I18N_ATTRIBUTES_TS_233; + } else { + /* @ts-ignore */ + i18n_233 = $localize`:234:234`; + } + let i18n_234; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 235 + */ + const MSG_EXTERNAL_3023272261989920617$$MANY_I18N_ATTRIBUTES_TS_234 = + /* @ts-ignore */ + goog.getMsg("235"); + i18n_234 = MSG_EXTERNAL_3023272261989920617$$MANY_I18N_ATTRIBUTES_TS_234; + } else { + /* @ts-ignore */ + i18n_234 = $localize`:235:235`; + } + let i18n_235; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 236 + */ + const MSG_EXTERNAL_7616836355902126432$$MANY_I18N_ATTRIBUTES_TS_235 = + /* @ts-ignore */ + goog.getMsg("236"); + i18n_235 = MSG_EXTERNAL_7616836355902126432$$MANY_I18N_ATTRIBUTES_TS_235; + } else { + /* @ts-ignore */ + i18n_235 = $localize`:236:236`; + } + let i18n_236; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 237 + */ + const MSG_EXTERNAL_5001025928987250739$$MANY_I18N_ATTRIBUTES_TS_236 = + /* @ts-ignore */ + goog.getMsg("237"); + i18n_236 = MSG_EXTERNAL_5001025928987250739$$MANY_I18N_ATTRIBUTES_TS_236; + } else { + /* @ts-ignore */ + i18n_236 = $localize`:237:237`; + } + let i18n_237; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 238 + */ + const MSG_EXTERNAL_1481544996702059162$$MANY_I18N_ATTRIBUTES_TS_237 = + /* @ts-ignore */ + goog.getMsg("238"); + i18n_237 = MSG_EXTERNAL_1481544996702059162$$MANY_I18N_ATTRIBUTES_TS_237; + } else { + /* @ts-ignore */ + i18n_237 = $localize`:238:238`; + } + let i18n_238; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 239 + */ + const MSG_EXTERNAL_60696305140509481$$MANY_I18N_ATTRIBUTES_TS_238 = + /* @ts-ignore */ + goog.getMsg("239"); + i18n_238 = MSG_EXTERNAL_60696305140509481$$MANY_I18N_ATTRIBUTES_TS_238; + } else { + /* @ts-ignore */ + i18n_238 = $localize`:239:239`; + } + let i18n_239; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 240 + */ + const MSG_EXTERNAL_8115943018131254792$$MANY_I18N_ATTRIBUTES_TS_239 = + /* @ts-ignore */ + goog.getMsg("240"); + i18n_239 = MSG_EXTERNAL_8115943018131254792$$MANY_I18N_ATTRIBUTES_TS_239; + } else { + /* @ts-ignore */ + i18n_239 = $localize`:240:240`; + } + let i18n_240; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 241 + */ + const MSG_EXTERNAL_4216388870816683291$$MANY_I18N_ATTRIBUTES_TS_240 = + /* @ts-ignore */ + goog.getMsg("241"); + i18n_240 = MSG_EXTERNAL_4216388870816683291$$MANY_I18N_ATTRIBUTES_TS_240; + } else { + /* @ts-ignore */ + i18n_240 = $localize`:241:241`; + } + let i18n_241; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 242 + */ + const MSG_EXTERNAL_3970937308291859658$$MANY_I18N_ATTRIBUTES_TS_241 = + /* @ts-ignore */ + goog.getMsg("242"); + i18n_241 = MSG_EXTERNAL_3970937308291859658$$MANY_I18N_ATTRIBUTES_TS_241; + } else { + /* @ts-ignore */ + i18n_241 = $localize`:242:242`; + } + let i18n_242; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 243 + */ + const MSG_EXTERNAL_5052794152313186136$$MANY_I18N_ATTRIBUTES_TS_242 = + /* @ts-ignore */ + goog.getMsg("243"); + i18n_242 = MSG_EXTERNAL_5052794152313186136$$MANY_I18N_ATTRIBUTES_TS_242; + } else { + /* @ts-ignore */ + i18n_242 = $localize`:243:243`; + } + let i18n_243; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 244 + */ + const MSG_EXTERNAL_875965060615889142$$MANY_I18N_ATTRIBUTES_TS_243 = + /* @ts-ignore */ + goog.getMsg("244"); + i18n_243 = MSG_EXTERNAL_875965060615889142$$MANY_I18N_ATTRIBUTES_TS_243; + } else { + /* @ts-ignore */ + i18n_243 = $localize`:244:244`; + } + let i18n_244; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 245 + */ + const MSG_EXTERNAL_4647195052776731587$$MANY_I18N_ATTRIBUTES_TS_244 = + /* @ts-ignore */ + goog.getMsg("245"); + i18n_244 = MSG_EXTERNAL_4647195052776731587$$MANY_I18N_ATTRIBUTES_TS_244; + } else { + /* @ts-ignore */ + i18n_244 = $localize`:245:245`; + } + let i18n_245; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 246 + */ + const MSG_EXTERNAL_4852561278655590341$$MANY_I18N_ATTRIBUTES_TS_245 = + /* @ts-ignore */ + goog.getMsg("246"); + i18n_245 = MSG_EXTERNAL_4852561278655590341$$MANY_I18N_ATTRIBUTES_TS_245; + } else { + /* @ts-ignore */ + i18n_245 = $localize`:246:246`; + } + let i18n_246; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 247 + */ + const MSG_EXTERNAL_7928389573009182813$$MANY_I18N_ATTRIBUTES_TS_246 = + /* @ts-ignore */ + goog.getMsg("247"); + i18n_246 = MSG_EXTERNAL_7928389573009182813$$MANY_I18N_ATTRIBUTES_TS_246; + } else { + /* @ts-ignore */ + i18n_246 = $localize`:247:247`; + } + let i18n_247; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 248 + */ + const MSG_EXTERNAL_1371261749853214930$$MANY_I18N_ATTRIBUTES_TS_247 = + /* @ts-ignore */ + goog.getMsg("248"); + i18n_247 = MSG_EXTERNAL_1371261749853214930$$MANY_I18N_ATTRIBUTES_TS_247; + } else { + /* @ts-ignore */ + i18n_247 = $localize`:248:248`; + } + let i18n_248; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 249 + */ + const MSG_EXTERNAL_9021834737440403473$$MANY_I18N_ATTRIBUTES_TS_248 = + /* @ts-ignore */ + goog.getMsg("249"); + i18n_248 = MSG_EXTERNAL_9021834737440403473$$MANY_I18N_ATTRIBUTES_TS_248; + } else { + /* @ts-ignore */ + i18n_248 = $localize`:249:249`; + } + let i18n_249; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @desc 250 + */ + const MSG_EXTERNAL_3540448456440647475$$MANY_I18N_ATTRIBUTES_TS_249 = + /* @ts-ignore */ + goog.getMsg("250"); + i18n_249 = MSG_EXTERNAL_3540448456440647475$$MANY_I18N_ATTRIBUTES_TS_249; + } else { + /* @ts-ignore */ + i18n_249 = $localize`:250:250`; + } + return [ + ["aria-label", i18n_0], + ["aria-label", i18n_1], + ["aria-label", i18n_2], + ["aria-label", i18n_3], + ["aria-label", i18n_4], + ["aria-label", i18n_5], + ["aria-label", i18n_6], + ["aria-label", i18n_7], + ["aria-label", i18n_8], + ["aria-label", i18n_9], + ["aria-label", i18n_10], + ["aria-label", i18n_11], + ["aria-label", i18n_12], + ["aria-label", i18n_13], + ["aria-label", i18n_14], + ["aria-label", i18n_15], + ["aria-label", i18n_16], + ["aria-label", i18n_17], + ["aria-label", i18n_18], + ["aria-label", i18n_19], + ["aria-label", i18n_20], + ["aria-label", i18n_21], + ["aria-label", i18n_22], + ["aria-label", i18n_23], + ["aria-label", i18n_24], + ["aria-label", i18n_25], + ["aria-label", i18n_26], + ["aria-label", i18n_27], + ["aria-label", i18n_28], + ["aria-label", i18n_29], + ["aria-label", i18n_30], + ["aria-label", i18n_31], + ["aria-label", i18n_32], + ["aria-label", i18n_33], + ["aria-label", i18n_34], + ["aria-label", i18n_35], + ["aria-label", i18n_36], + ["aria-label", i18n_37], + ["aria-label", i18n_38], + ["aria-label", i18n_39], + ["aria-label", i18n_40], + ["aria-label", i18n_41], + ["aria-label", i18n_42], + ["aria-label", i18n_43], + ["aria-label", i18n_44], + ["aria-label", i18n_45], + ["aria-label", i18n_46], + ["aria-label", i18n_47], + ["aria-label", i18n_48], + ["aria-label", i18n_49], + ["aria-label", i18n_50], + ["aria-label", i18n_51], + ["aria-label", i18n_52], + ["aria-label", i18n_53], + ["aria-label", i18n_54], + ["aria-label", i18n_55], + ["aria-label", i18n_56], + ["aria-label", i18n_57], + ["aria-label", i18n_58], + ["aria-label", i18n_59], + ["aria-label", i18n_60], + ["aria-label", i18n_61], + ["aria-label", i18n_62], + ["aria-label", i18n_63], + ["aria-label", i18n_64], + ["aria-label", i18n_65], + ["aria-label", i18n_66], + ["aria-label", i18n_67], + ["aria-label", i18n_68], + ["aria-label", i18n_69], + ["aria-label", i18n_70], + ["aria-label", i18n_71], + ["aria-label", i18n_72], + ["aria-label", i18n_73], + ["aria-label", i18n_74], + ["aria-label", i18n_75], + ["aria-label", i18n_76], + ["aria-label", i18n_77], + ["aria-label", i18n_78], + ["aria-label", i18n_79], + ["aria-label", i18n_80], + ["aria-label", i18n_81], + ["aria-label", i18n_82], + ["aria-label", i18n_83], + ["aria-label", i18n_84], + ["aria-label", i18n_85], + ["aria-label", i18n_86], + ["aria-label", i18n_87], + ["aria-label", i18n_88], + ["aria-label", i18n_89], + ["aria-label", i18n_90], + ["aria-label", i18n_91], + ["aria-label", i18n_92], + ["aria-label", i18n_93], + ["aria-label", i18n_94], + ["aria-label", i18n_95], + ["aria-label", i18n_96], + ["aria-label", i18n_97], + ["aria-label", i18n_98], + ["aria-label", i18n_99], + ["aria-label", i18n_100], + ["aria-label", i18n_101], + ["aria-label", i18n_102], + ["aria-label", i18n_103], + ["aria-label", i18n_104], + ["aria-label", i18n_105], + ["aria-label", i18n_106], + ["aria-label", i18n_107], + ["aria-label", i18n_108], + ["aria-label", i18n_109], + ["aria-label", i18n_110], + ["aria-label", i18n_111], + ["aria-label", i18n_112], + ["aria-label", i18n_113], + ["aria-label", i18n_114], + ["aria-label", i18n_115], + ["aria-label", i18n_116], + ["aria-label", i18n_117], + ["aria-label", i18n_118], + ["aria-label", i18n_119], + ["aria-label", i18n_120], + ["aria-label", i18n_121], + ["aria-label", i18n_122], + ["aria-label", i18n_123], + ["aria-label", i18n_124], + ["aria-label", i18n_125], + ["aria-label", i18n_126], + ["aria-label", i18n_127], + ["aria-label", i18n_128], + ["aria-label", i18n_129], + ["aria-label", i18n_130], + ["aria-label", i18n_131], + ["aria-label", i18n_132], + ["aria-label", i18n_133], + ["aria-label", i18n_134], + ["aria-label", i18n_135], + ["aria-label", i18n_136], + ["aria-label", i18n_137], + ["aria-label", i18n_138], + ["aria-label", i18n_139], + ["aria-label", i18n_140], + ["aria-label", i18n_141], + ["aria-label", i18n_142], + ["aria-label", i18n_143], + ["aria-label", i18n_144], + ["aria-label", i18n_145], + ["aria-label", i18n_146], + ["aria-label", i18n_147], + ["aria-label", i18n_148], + ["aria-label", i18n_149], + ["aria-label", i18n_150], + ["aria-label", i18n_151], + ["aria-label", i18n_152], + ["aria-label", i18n_153], + ["aria-label", i18n_154], + ["aria-label", i18n_155], + ["aria-label", i18n_156], + ["aria-label", i18n_157], + ["aria-label", i18n_158], + ["aria-label", i18n_159], + ["aria-label", i18n_160], + ["aria-label", i18n_161], + ["aria-label", i18n_162], + ["aria-label", i18n_163], + ["aria-label", i18n_164], + ["aria-label", i18n_165], + ["aria-label", i18n_166], + ["aria-label", i18n_167], + ["aria-label", i18n_168], + ["aria-label", i18n_169], + ["aria-label", i18n_170], + ["aria-label", i18n_171], + ["aria-label", i18n_172], + ["aria-label", i18n_173], + ["aria-label", i18n_174], + ["aria-label", i18n_175], + ["aria-label", i18n_176], + ["aria-label", i18n_177], + ["aria-label", i18n_178], + ["aria-label", i18n_179], + ["aria-label", i18n_180], + ["aria-label", i18n_181], + ["aria-label", i18n_182], + ["aria-label", i18n_183], + ["aria-label", i18n_184], + ["aria-label", i18n_185], + ["aria-label", i18n_186], + ["aria-label", i18n_187], + ["aria-label", i18n_188], + ["aria-label", i18n_189], + ["aria-label", i18n_190], + ["aria-label", i18n_191], + ["aria-label", i18n_192], + ["aria-label", i18n_193], + ["aria-label", i18n_194], + ["aria-label", i18n_195], + ["aria-label", i18n_196], + ["aria-label", i18n_197], + ["aria-label", i18n_198], + ["aria-label", i18n_199], + ["aria-label", i18n_200], + ["aria-label", i18n_201], + ["aria-label", i18n_202], + ["aria-label", i18n_203], + ["aria-label", i18n_204], + ["aria-label", i18n_205], + ["aria-label", i18n_206], + ["aria-label", i18n_207], + ["aria-label", i18n_208], + ["aria-label", i18n_209], + ["aria-label", i18n_210], + ["aria-label", i18n_211], + ["aria-label", i18n_212], + ["aria-label", i18n_213], + ["aria-label", i18n_214], + ["aria-label", i18n_215], + ["aria-label", i18n_216], + ["aria-label", i18n_217], + ["aria-label", i18n_218], + ["aria-label", i18n_219], + ["aria-label", i18n_220], + ["aria-label", i18n_221], + ["aria-label", i18n_222], + ["aria-label", i18n_223], + ["aria-label", i18n_224], + ["aria-label", i18n_225], + ["aria-label", i18n_226], + ["aria-label", i18n_227], + ["aria-label", i18n_228], + ["aria-label", i18n_229], + ["aria-label", i18n_230], + ["aria-label", i18n_231], + ["aria-label", i18n_232], + ["aria-label", i18n_233], + ["aria-label", i18n_234], + ["aria-label", i18n_235], + ["aria-label", i18n_236], + ["aria-label", i18n_237], + ["aria-label", i18n_238], + ["aria-label", i18n_239], + ["aria-label", i18n_240], + ["aria-label", i18n_241], + ["aria-label", i18n_242], + ["aria-label", i18n_243], + ["aria-label", i18n_244], + ["aria-label", i18n_245], + ["aria-label", i18n_246], + ["aria-label", i18n_247], + ["aria-label", i18n_248], + ["aria-label", i18n_249], + ["aria-label", i18n_250()], + ["aria-label", i18n_251()], + ["aria-label", i18n_252()], + ["aria-label", i18n_253()], + ["aria-label", i18n_254()], + ["aria-label", i18n_255()], + ["aria-label", i18n_256()], + ["aria-label", i18n_257()], + ["aria-label", i18n_258()], + ["aria-label", i18n_259()], + ["aria-label", i18n_260()], + ["aria-label", i18n_261()], + ["aria-label", i18n_262()], + ["aria-label", i18n_263()], + ["aria-label", i18n_264()], + ["aria-label", i18n_265()], + ["aria-label", i18n_266()], + ["aria-label", i18n_267()], + ["aria-label", i18n_268()], + ["aria-label", i18n_269()], + ["aria-label", i18n_270()], + ["aria-label", i18n_271()], + ["aria-label", i18n_272()], + ["aria-label", i18n_273()], + ["aria-label", i18n_274()], + ["aria-label", i18n_275()], + ["aria-label", i18n_276()], + ["aria-label", i18n_277()], + ["aria-label", i18n_278()], + ["aria-label", i18n_279()], + ["aria-label", i18n_280()], + ["aria-label", i18n_281()], + ["aria-label", i18n_282()], + ["aria-label", i18n_283()], + ["aria-label", i18n_284()], + ["aria-label", i18n_285()], + ["aria-label", i18n_286()], + ["aria-label", i18n_287()], + ["aria-label", i18n_288()], + ["aria-label", i18n_289()], + ["aria-label", i18n_290()], + ["aria-label", i18n_291()], + ["aria-label", i18n_292()], + ["aria-label", i18n_293()], + ["aria-label", i18n_294()], + ["aria-label", i18n_295()], + ["aria-label", i18n_296()], + ["aria-label", i18n_297()], + ["aria-label", i18n_298()], + ["aria-label", i18n_299()], + ["aria-label", i18n_300()], + ["aria-label", i18n_301()], + ["aria-label", i18n_302()], + ["aria-label", i18n_303()], + ["aria-label", i18n_304()], + ["aria-label", i18n_305()], + ["aria-label", i18n_306()], + ["aria-label", i18n_307()], + ["aria-label", i18n_308()], + ["aria-label", i18n_309()], + ["aria-label", i18n_310()], + ["aria-label", i18n_311()], + ["aria-label", i18n_312()], + ["aria-label", i18n_313()], + ["aria-label", i18n_314()], + ["aria-label", i18n_315()], + ["aria-label", i18n_316()], + ["aria-label", i18n_317()], + ["aria-label", i18n_318()], + ["aria-label", i18n_319()], + ["aria-label", i18n_320()], + ["aria-label", i18n_321()], + ["aria-label", i18n_322()], + ["aria-label", i18n_323()], + ["aria-label", i18n_324()], + ["aria-label", i18n_325()], + ["aria-label", i18n_326()], + ["aria-label", i18n_327()], + ["aria-label", i18n_328()], + ["aria-label", i18n_329()], + ["aria-label", i18n_330()], + ["aria-label", i18n_331()], + ["aria-label", i18n_332()], + ["aria-label", i18n_333()], + ["aria-label", i18n_334()], + ["aria-label", i18n_335()], + ["aria-label", i18n_336()], + ["aria-label", i18n_337()], + ["aria-label", i18n_338()], + ["aria-label", i18n_339()], + ["aria-label", i18n_340()], + ["aria-label", i18n_341()], + ["aria-label", i18n_342()], + ["aria-label", i18n_343()], + ["aria-label", i18n_344()], + ["aria-label", i18n_345()], + ["aria-label", i18n_346()], + ["aria-label", i18n_347()], + ["aria-label", i18n_348()], + ["aria-label", i18n_349()], + ["aria-label", i18n_350()], + ["aria-label", i18n_351()], + ["aria-label", i18n_352()], + ["aria-label", i18n_353()], + ["aria-label", i18n_354()], + ["aria-label", i18n_355()], + ["aria-label", i18n_356()], + ["aria-label", i18n_357()], + ["aria-label", i18n_358()], + ["aria-label", i18n_359()], + ["aria-label", i18n_360()], + ["aria-label", i18n_361()], + ["aria-label", i18n_362()], + ["aria-label", i18n_363()], + ["aria-label", i18n_364()], + ["aria-label", i18n_365()], + ["aria-label", i18n_366()], + ["aria-label", i18n_367()], + ["aria-label", i18n_368()], + ["aria-label", i18n_369()], + ["aria-label", i18n_370()], + ["aria-label", i18n_371()], + ["aria-label", i18n_372()], + ["aria-label", i18n_373()], + ["aria-label", i18n_374()], + ["aria-label", i18n_375()], + ["aria-label", i18n_376()], + ["aria-label", i18n_377()], + ["aria-label", i18n_378()], + ["aria-label", i18n_379()], + ["aria-label", i18n_380()], + ["aria-label", i18n_381()], + ["aria-label", i18n_382()], + ["aria-label", i18n_383()], + ["aria-label", i18n_384()], + ["aria-label", i18n_385()], + ["aria-label", i18n_386()], + ["aria-label", i18n_387()], + ["aria-label", i18n_388()], + ["aria-label", i18n_389()], + ["aria-label", i18n_390()], + ["aria-label", i18n_391()], + ["aria-label", i18n_392()], + ["aria-label", i18n_393()], + ["aria-label", i18n_394()], + ["aria-label", i18n_395()], + ["aria-label", i18n_396()], + ["aria-label", i18n_397()], + ["aria-label", i18n_398()], + ["aria-label", i18n_399()], + ["aria-label", i18n_400()], + ["aria-label", i18n_401()], + ["aria-label", i18n_402()], + ["aria-label", i18n_403()], + ["aria-label", i18n_404()], + ["aria-label", i18n_405()], + ["aria-label", i18n_406()], + ["aria-label", i18n_407()], + ["aria-label", i18n_408()], + ["aria-label", i18n_409()], + ["aria-label", i18n_410()], + ["aria-label", i18n_411()], + ["aria-label", i18n_412()], + ["aria-label", i18n_413()], + ["aria-label", i18n_414()], + ["aria-label", i18n_415()], + ["aria-label", i18n_416()], + ["aria-label", i18n_417()], + ["aria-label", i18n_418()], + ["aria-label", i18n_419()], + ["aria-label", i18n_420()], + ["aria-label", i18n_421()], + ["aria-label", i18n_422()], + ["aria-label", i18n_423()], + ["aria-label", i18n_424()], + ["aria-label", i18n_425()], + ["aria-label", i18n_426()], + ["aria-label", i18n_427()], + ["aria-label", i18n_428()], + ["aria-label", i18n_429()], + ["aria-label", i18n_430()], + ["aria-label", i18n_431()], + ["aria-label", i18n_432()], + ["aria-label", i18n_433()], + ["aria-label", i18n_434()], + ["aria-label", i18n_435()], + ["aria-label", i18n_436()], + ["aria-label", i18n_437()], + ["aria-label", i18n_438()], + ["aria-label", i18n_439()], + ["aria-label", i18n_440()], + ["aria-label", i18n_441()], + ["aria-label", i18n_442()], + ["aria-label", i18n_443()], + ["aria-label", i18n_444()], + ["aria-label", i18n_445()], + ["aria-label", i18n_446()], + ["aria-label", i18n_447()], + ["aria-label", i18n_448()], + ["aria-label", i18n_449()], + ["aria-label", i18n_450()], + ["aria-label", i18n_451()], + ["aria-label", i18n_452()], + ["aria-label", i18n_453()], + ["aria-label", i18n_454()], + ["aria-label", i18n_455()], + ["aria-label", i18n_456()], + ["aria-label", i18n_457()], + ["aria-label", i18n_458()], + ["aria-label", i18n_459()], + ["aria-label", i18n_460()], + ["aria-label", i18n_461()], + ["aria-label", i18n_462()], + ["aria-label", i18n_463()], + ["aria-label", i18n_464()], + ["aria-label", i18n_465()], + ["aria-label", i18n_466()], + ["aria-label", i18n_467()], + ["aria-label", i18n_468()], + ["aria-label", i18n_469()], + ["aria-label", i18n_470()], + ["aria-label", i18n_471()], + ["aria-label", i18n_472()], + ["aria-label", i18n_473()], + ["aria-label", i18n_474()], + ["aria-label", i18n_475()], + ["aria-label", i18n_476()], + ["aria-label", i18n_477()], + ["aria-label", i18n_478()], + ["aria-label", i18n_479()], + ["aria-label", i18n_480()], + ["aria-label", i18n_481()], + ["aria-label", i18n_482()], + ["aria-label", i18n_483()], + ["aria-label", i18n_484()], + ["aria-label", i18n_485()], + ["aria-label", i18n_486()], + ["aria-label", i18n_487()], + ["aria-label", i18n_488()], + ["aria-label", i18n_489()], + ["aria-label", i18n_490()], + ["aria-label", i18n_491()], + ["aria-label", i18n_492()], + ["aria-label", i18n_493()], + ["aria-label", i18n_494()], + ["aria-label", i18n_495()], + ["aria-label", i18n_496()], + ["aria-label", i18n_497()], + ["aria-label", i18n_498()], + ["aria-label", i18n_499()], + ["aria-label", i18n_500()], + ["aria-label", i18n_501()], + ["aria-label", i18n_502()], + ["aria-label", i18n_503()], + ["aria-label", i18n_504()], + ["aria-label", i18n_505()], + ["aria-label", i18n_506()], + ["aria-label", i18n_507()], + ["aria-label", i18n_508()], + ["aria-label", i18n_509()], + ["aria-label", i18n_510()], + ["aria-label", i18n_511()], + ["aria-label", i18n_512()], + ["aria-label", i18n_513()], + ["aria-label", i18n_514()], + ["aria-label", i18n_515()], + ["aria-label", i18n_516()], + ["aria-label", i18n_517()], + ["aria-label", i18n_518()], + ["aria-label", i18n_519()], + ["aria-label", i18n_520()], + ["aria-label", i18n_521()], + ["aria-label", i18n_522()], + ["aria-label", i18n_523()], + ["aria-label", i18n_524()], + ["aria-label", i18n_525()], + ["aria-label", i18n_526()], + ["aria-label", i18n_527()], + ["aria-label", i18n_528()], + ["aria-label", i18n_529()], + ["aria-label", i18n_530()], + ["aria-label", i18n_531()], + ["aria-label", i18n_532()], + ["aria-label", i18n_533()], + ["aria-label", i18n_534()], + ["aria-label", i18n_535()], + ["aria-label", i18n_536()], + ["aria-label", i18n_537()], + ["aria-label", i18n_538()], + ["aria-label", i18n_539()], + ["aria-label", i18n_540()], + ["aria-label", i18n_541()], + ["aria-label", i18n_542()], + ["aria-label", i18n_543()], + ["aria-label", i18n_544()], + ["aria-label", i18n_545()], + ["aria-label", i18n_546()], + ["aria-label", i18n_547()], + ["aria-label", i18n_548()], + ["aria-label", i18n_549()], + ["aria-label", i18n_550()], + ["aria-label", i18n_551()], + ["aria-label", i18n_552()], + ["aria-label", i18n_553()], + ["aria-label", i18n_554()], + ["aria-label", i18n_555()], + ["aria-label", i18n_556()], + ["aria-label", i18n_557()], + ["aria-label", i18n_558()], + ["aria-label", i18n_559()], + ["aria-label", i18n_560()], + ["aria-label", i18n_561()], + ["aria-label", i18n_562()], + ["aria-label", i18n_563()], + ["aria-label", i18n_564()], + ["aria-label", i18n_565()], + ["aria-label", i18n_566()], + ["aria-label", i18n_567()], + ["aria-label", i18n_568()], + ["aria-label", i18n_569()], + ["aria-label", i18n_570()], + ["aria-label", i18n_571()], + ["aria-label", i18n_572()], + ["aria-label", i18n_573()], + ["aria-label", i18n_574()], + ["aria-label", i18n_575()], + ["aria-label", i18n_576()], + ["aria-label", i18n_577()], + ["aria-label", i18n_578()], + ["aria-label", i18n_579()], + ["aria-label", i18n_580()], + ["aria-label", i18n_581()], + ["aria-label", i18n_582()], + ["aria-label", i18n_583()], + ["aria-label", i18n_584()], + ["aria-label", i18n_585()], + ["aria-label", i18n_586()], + ["aria-label", i18n_587()], + ["aria-label", i18n_588()], + ["aria-label", i18n_589()], + ["aria-label", i18n_590()], + ["aria-label", i18n_591()], + ["aria-label", i18n_592()], + ["aria-label", i18n_593()], + ["aria-label", i18n_594()], + ["aria-label", i18n_595()], + ["aria-label", i18n_596()], + ["aria-label", i18n_597()], + ["aria-label", i18n_598()], + ["aria-label", i18n_599()], + ["aria-label", i18n_600()], + ["aria-label", i18n_601()], + ["aria-label", i18n_602()], + ["aria-label", i18n_603()], + ["aria-label", i18n_604()], + ["aria-label", i18n_605()], + ["aria-label", i18n_606()], + ["aria-label", i18n_607()], + ["aria-label", i18n_608()], + ["aria-label", i18n_609()], + ["aria-label", i18n_610()], + ["aria-label", i18n_611()], + ["aria-label", i18n_612()], + ["aria-label", i18n_613()], + ["aria-label", i18n_614()], + ["aria-label", i18n_615()], + ["aria-label", i18n_616()], + ["aria-label", i18n_617()], + ["aria-label", i18n_618()], + ["aria-label", i18n_619()], + ["aria-label", i18n_620()], + ["aria-label", i18n_621()], + ["aria-label", i18n_622()], + ["aria-label", i18n_623()], + ["aria-label", i18n_624()], + ["aria-label", i18n_625()], + ["aria-label", i18n_626()], + ["aria-label", i18n_627()], + ["aria-label", i18n_628()], + ["aria-label", i18n_629()], + ["aria-label", i18n_630()], + ["aria-label", i18n_631()], + ["aria-label", i18n_632()], + ["aria-label", i18n_633()], + ["aria-label", i18n_634()], + ["aria-label", i18n_635()], + ["aria-label", i18n_636()], + ["aria-label", i18n_637()], + ["aria-label", i18n_638()], + ["aria-label", i18n_639()], + ["aria-label", i18n_640()], + ["aria-label", i18n_641()], + ["aria-label", i18n_642()], + ["aria-label", i18n_643()], + ["aria-label", i18n_644()], + ["aria-label", i18n_645()], + ["aria-label", i18n_646()], + ["aria-label", i18n_647()], + ["aria-label", i18n_648()], + ["aria-label", i18n_649()], + ["aria-label", i18n_650()], + ["aria-label", i18n_651()], + ["aria-label", i18n_652()], + ["aria-label", i18n_653()], + ["aria-label", i18n_654()], + ["aria-label", i18n_655()], + ["aria-label", i18n_656()], + ["aria-label", i18n_657()], + ["aria-label", i18n_658()], + ["aria-label", i18n_659()], + ["aria-label", i18n_660()], + ["aria-label", i18n_661()], + ["aria-label", i18n_662()], + ["aria-label", i18n_663()], + ["aria-label", i18n_664()], + ["aria-label", i18n_665()], + ["aria-label", i18n_666()], + ["aria-label", i18n_667()], + ["aria-label", i18n_668()], + ["aria-label", i18n_669()], + ["aria-label", i18n_670()], + ["aria-label", i18n_671()], + ["aria-label", i18n_672()], + ["aria-label", i18n_673()], + ["aria-label", i18n_674()], + ["aria-label", i18n_675()], + ["aria-label", i18n_676()], + ["aria-label", i18n_677()], + ["aria-label", i18n_678()], + ["aria-label", i18n_679()], + ["aria-label", i18n_680()], + ["aria-label", i18n_681()], + ["aria-label", i18n_682()], + ["aria-label", i18n_683()], + ["aria-label", i18n_684()], + ["aria-label", i18n_685()], + ["aria-label", i18n_686()], + ["aria-label", i18n_687()], + ["aria-label", i18n_688()], + ["aria-label", i18n_689()], + ["aria-label", i18n_690()], + ["aria-label", i18n_691()], + ["aria-label", i18n_692()], + ["aria-label", i18n_693()], + ["aria-label", i18n_694()], + ["aria-label", i18n_695()], + ["aria-label", i18n_696()], + ["aria-label", i18n_697()], + ["aria-label", i18n_698()], + ["aria-label", i18n_699()], + ["aria-label", i18n_700()], + ["aria-label", i18n_701()], + ["aria-label", i18n_702()], + ["aria-label", i18n_703()], + ["aria-label", i18n_704()], + ["aria-label", i18n_705()], + ["aria-label", i18n_706()], + ["aria-label", i18n_707()], + ["aria-label", i18n_708()], + ["aria-label", i18n_709()], + ["aria-label", i18n_710()], + ["aria-label", i18n_711()], + ["aria-label", i18n_712()], + ["aria-label", i18n_713()], + ["aria-label", i18n_714()], + ["aria-label", i18n_715()], + ["aria-label", i18n_716()], + ["aria-label", i18n_717()], + ["aria-label", i18n_718()], + ["aria-label", i18n_719()], + ["aria-label", i18n_720()], + ["aria-label", i18n_721()], + ["aria-label", i18n_722()], + ["aria-label", i18n_723()], + ["aria-label", i18n_724()], + ["aria-label", i18n_725()], + ["aria-label", i18n_726()], + ["aria-label", i18n_727()], + ["aria-label", i18n_728()], + ["aria-label", i18n_729()], + ["aria-label", i18n_730()], + ["aria-label", i18n_731()], + ["aria-label", i18n_732()], + ["aria-label", i18n_733()], + ["aria-label", i18n_734()], + ["aria-label", i18n_735()], + ["aria-label", i18n_736()], + ["aria-label", i18n_737()], + ["aria-label", i18n_738()], + ["aria-label", i18n_739()], + ["aria-label", i18n_740()], + ["aria-label", i18n_741()], + ["aria-label", i18n_742()], + ["aria-label", i18n_743()], + ["aria-label", i18n_744()], + ["aria-label", i18n_745()], + ["aria-label", i18n_746()], + ["aria-label", i18n_747()], + ["aria-label", i18n_748()], + ["aria-label", i18n_749()], + ["aria-label", i18n_750()], + ["aria-label", i18n_751()], + ["aria-label", i18n_752()], + ["aria-label", i18n_753()], + ["aria-label", i18n_754()], + ["aria-label", i18n_755()], + ["aria-label", i18n_756()], + ["aria-label", i18n_757()], + ["aria-label", i18n_758()], + ["aria-label", i18n_759()], + ["aria-label", i18n_760()], + ["aria-label", i18n_761()], + ["aria-label", i18n_762()], + ["aria-label", i18n_763()], + ["aria-label", i18n_764()], + ["aria-label", i18n_765()], + ["aria-label", i18n_766()], + ["aria-label", i18n_767()], + ["aria-label", i18n_768()], + ["aria-label", i18n_769()], + ["aria-label", i18n_770()], + ["aria-label", i18n_771()], + ["aria-label", i18n_772()], + ["aria-label", i18n_773()], + ["aria-label", i18n_774()], + ["aria-label", i18n_775()], + ["aria-label", i18n_776()], + ["aria-label", i18n_777()], + ["aria-label", i18n_778()], + ["aria-label", i18n_779()], + ["aria-label", i18n_780()], + ["aria-label", i18n_781()], + ["aria-label", i18n_782()], + ["aria-label", i18n_783()], + ["aria-label", i18n_784()], + ["aria-label", i18n_785()], + ["aria-label", i18n_786()], + ["aria-label", i18n_787()], + ["aria-label", i18n_788()], + ["aria-label", i18n_789()], + ["aria-label", i18n_790()], + ["aria-label", i18n_791()], + ["aria-label", i18n_792()], + ["aria-label", i18n_793()], + ["aria-label", i18n_794()], + ["aria-label", i18n_795()], + ["aria-label", i18n_796()], + ["aria-label", i18n_797()], + ["aria-label", i18n_798()], + ["aria-label", i18n_799()], + ["aria-label", i18n_800()], + ["aria-label", i18n_801()], + ["aria-label", i18n_802()], + ["aria-label", i18n_803()], + ["aria-label", i18n_804()], + ["aria-label", i18n_805()], + ["aria-label", i18n_806()], + ["aria-label", i18n_807()], + ["aria-label", i18n_808()], + ["aria-label", i18n_809()], + ["aria-label", i18n_810()], + ["aria-label", i18n_811()], + ["aria-label", i18n_812()], + ["aria-label", i18n_813()], + ["aria-label", i18n_814()], + ["aria-label", i18n_815()], + ["aria-label", i18n_816()], + ["aria-label", i18n_817()], + ["aria-label", i18n_818()], + ["aria-label", i18n_819()], + ["aria-label", i18n_820()], + ["aria-label", i18n_821()], + ["aria-label", i18n_822()], + ["aria-label", i18n_823()], + ["aria-label", i18n_824()], + ["aria-label", i18n_825()], + ["aria-label", i18n_826()], + ["aria-label", i18n_827()], + ["aria-label", i18n_828()], + ["aria-label", i18n_829()], + ["aria-label", i18n_830()], + ["aria-label", i18n_831()], + ["aria-label", i18n_832()], + ["aria-label", i18n_833()], + ["aria-label", i18n_834()], + ["aria-label", i18n_835()], + ["aria-label", i18n_836()], + ["aria-label", i18n_837()], + ["aria-label", i18n_838()], + ["aria-label", i18n_839()], + ["aria-label", i18n_840()], + ["aria-label", i18n_841()], + ["aria-label", i18n_842()], + ["aria-label", i18n_843()], + ["aria-label", i18n_844()], + ["aria-label", i18n_845()], + ["aria-label", i18n_846()], + ["aria-label", i18n_847()], + ["aria-label", i18n_848()], + ["aria-label", i18n_849()], + ["aria-label", i18n_850()], + ["aria-label", i18n_851()], + ["aria-label", i18n_852()], + ["aria-label", i18n_853()], + ["aria-label", i18n_854()], + ["aria-label", i18n_855()], + ["aria-label", i18n_856()], + ["aria-label", i18n_857()], + ["aria-label", i18n_858()], + ["aria-label", i18n_859()], + ["aria-label", i18n_860()], + ["aria-label", i18n_861()], + ["aria-label", i18n_862()], + ["aria-label", i18n_863()], + ["aria-label", i18n_864()], + ["aria-label", i18n_865()], + ["aria-label", i18n_866()], + ["aria-label", i18n_867()], + ["aria-label", i18n_868()], + ["aria-label", i18n_869()], + ["aria-label", i18n_870()], + ["aria-label", i18n_871()], + ["aria-label", i18n_872()], + ["aria-label", i18n_873()], + ["aria-label", i18n_874()], + ["aria-label", i18n_875()], + ["aria-label", i18n_876()], + ["aria-label", i18n_877()], + ["aria-label", i18n_878()], + ["aria-label", i18n_879()], + ["aria-label", i18n_880()], + ["aria-label", i18n_881()], + ["aria-label", i18n_882()], + ["aria-label", i18n_883()], + ["aria-label", i18n_884()], + ["aria-label", i18n_885()], + ["aria-label", i18n_886()], + ["aria-label", i18n_887()], + ["aria-label", i18n_888()], + ["aria-label", i18n_889()], + ["aria-label", i18n_890()], + ["aria-label", i18n_891()], + ["aria-label", i18n_892()], + ["aria-label", i18n_893()], + ["aria-label", i18n_894()], + ["aria-label", i18n_895()], + ["aria-label", i18n_896()], + ["aria-label", i18n_897()], + ["aria-label", i18n_898()], + ["aria-label", i18n_899()], + ["aria-label", i18n_900()], + ["aria-label", i18n_901()], + ["aria-label", i18n_902()], + ["aria-label", i18n_903()], + ["aria-label", i18n_904()], + ["aria-label", i18n_905()], + ["aria-label", i18n_906()], + ["aria-label", i18n_907()], + ["aria-label", i18n_908()], + ["aria-label", i18n_909()], + ["aria-label", i18n_910()], + ["aria-label", i18n_911()], + ["aria-label", i18n_912()], + ["aria-label", i18n_913()], + ["aria-label", i18n_914()], + ["aria-label", i18n_915()], + ["aria-label", i18n_916()], + ["aria-label", i18n_917()], + ["aria-label", i18n_918()], + ["aria-label", i18n_919()], + ["aria-label", i18n_920()], + ["aria-label", i18n_921()], + ["aria-label", i18n_922()], + ["aria-label", i18n_923()], + ["aria-label", i18n_924()], + ["aria-label", i18n_925()], + ["aria-label", i18n_926()], + ["aria-label", i18n_927()], + ["aria-label", i18n_928()], + ["aria-label", i18n_929()], + ["aria-label", i18n_930()], + ["aria-label", i18n_931()], + ["aria-label", i18n_932()], + ["aria-label", i18n_933()], + ["aria-label", i18n_934()], + ["aria-label", i18n_935()], + ["aria-label", i18n_936()], + ["aria-label", i18n_937()], + ["aria-label", i18n_938()], + ["aria-label", i18n_939()], + ["aria-label", i18n_940()], + ["aria-label", i18n_941()], + ["aria-label", i18n_942()], + ["aria-label", i18n_943()], + ["aria-label", i18n_944()], + ["aria-label", i18n_945()], + ["aria-label", i18n_946()], + ["aria-label", i18n_947()], + ["aria-label", i18n_948()], + ["aria-label", i18n_949()], + ["aria-label", i18n_950()], + ["aria-label", i18n_951()], + ["aria-label", i18n_952()], + ["aria-label", i18n_953()], + ["aria-label", i18n_954()], + ["aria-label", i18n_955()], + ["aria-label", i18n_956()], + ["aria-label", i18n_957()], + ["aria-label", i18n_958()], + ["aria-label", i18n_959()], + ["aria-label", i18n_960()], + ["aria-label", i18n_961()], + ["aria-label", i18n_962()], + ["aria-label", i18n_963()], + ["aria-label", i18n_964()], + ["aria-label", i18n_965()], + ["aria-label", i18n_966()], + ["aria-label", i18n_967()], + ["aria-label", i18n_968()], + ["aria-label", i18n_969()], + ["aria-label", i18n_970()], + ["aria-label", i18n_971()], + ["aria-label", i18n_972()], + ["aria-label", i18n_973()], + ["aria-label", i18n_974()], + ["aria-label", i18n_975()], + ["aria-label", i18n_976()], + ["aria-label", i18n_977()], + ["aria-label", i18n_978()], + ["aria-label", i18n_979()], + ["aria-label", i18n_980()], + ["aria-label", i18n_981()], + ["aria-label", i18n_982()], + ["aria-label", i18n_983()], + ["aria-label", i18n_984()], + ["aria-label", i18n_985()], + ["aria-label", i18n_986()], + ["aria-label", i18n_987()], + ["aria-label", i18n_988()], + ["aria-label", i18n_989()], + ["aria-label", i18n_990()], + ["aria-label", i18n_991()], + ["aria-label", i18n_992()], + ["aria-label", i18n_993()], + ["aria-label", i18n_994()], + ["aria-label", i18n_995()], + ["aria-label", i18n_996()], + ["aria-label", i18n_997()], + ["aria-label", i18n_998()], + ["aria-label", i18n_999()] + ]; + }, + template: function App_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElement(0, "b", 0)(1, "b", 1)(2, "b", 2)(3, "b", 3)(4, "b", 4)(5, "b", 5)( + 6, + "b", + 6 + )(7, "b", 7)(8, "b", 8)(9, "b", 9)(10, "b", 10)(11, "b", 11)(12, "b", 12)(13, "b", 13)( + 14, + "b", + 14 + )(15, "b", 15)(16, "b", 16)(17, "b", 17)(18, "b", 18)(19, "b", 19)(20, "b", 20)( + 21, + "b", + 21 + )(22, "b", 22)(23, "b", 23)(24, "b", 24)(25, "b", 25)(26, "b", 26)(27, "b", 27)( + 28, + "b", + 28 + )(29, "b", 29)(30, "b", 30)(31, "b", 31)(32, "b", 32)(33, "b", 33)(34, "b", 34)( + 35, + "b", + 35 + )(36, "b", 36)(37, "b", 37)(38, "b", 38)(39, "b", 39)(40, "b", 40)(41, "b", 41)( + 42, + "b", + 42 + )(43, "b", 43)(44, "b", 44)(45, "b", 45)(46, "b", 46)(47, "b", 47)(48, "b", 48)( + 49, + "b", + 49 + )(50, "b", 50)(51, "b", 51)(52, "b", 52)(53, "b", 53)(54, "b", 54)(55, "b", 55)( + 56, + "b", + 56 + )(57, "b", 57)(58, "b", 58)(59, "b", 59)(60, "b", 60)(61, "b", 61)(62, "b", 62)( + 63, + "b", + 63 + )(64, "b", 64)(65, "b", 65)(66, "b", 66)(67, "b", 67)(68, "b", 68)(69, "b", 69)( + 70, + "b", + 70 + )(71, "b", 71)(72, "b", 72)(73, "b", 73)(74, "b", 74)(75, "b", 75)(76, "b", 76)( + 77, + "b", + 77 + )(78, "b", 78)(79, "b", 79)(80, "b", 80)(81, "b", 81)(82, "b", 82)(83, "b", 83)( + 84, + "b", + 84 + )(85, "b", 85)(86, "b", 86)(87, "b", 87)(88, "b", 88)(89, "b", 89)(90, "b", 90)( + 91, + "b", + 91 + )(92, "b", 92)(93, "b", 93)(94, "b", 94)(95, "b", 95)(96, "b", 96)(97, "b", 97)( + 98, + "b", + 98 + )(99, "b", 99)(100, "b", 100)(101, "b", 101)(102, "b", 102)(103, "b", 103)(104, "b", 104)( + 105, + "b", + 105 + )(106, "b", 106)(107, "b", 107)(108, "b", 108)(109, "b", 109)(110, "b", 110)(111, "b", 111)( + 112, + "b", + 112 + )(113, "b", 113)(114, "b", 114)(115, "b", 115)(116, "b", 116)(117, "b", 117)(118, "b", 118)( + 119, + "b", + 119 + )(120, "b", 120)(121, "b", 121)(122, "b", 122)(123, "b", 123)(124, "b", 124)(125, "b", 125)( + 126, + "b", + 126 + )(127, "b", 127)(128, "b", 128)(129, "b", 129)(130, "b", 130)(131, "b", 131)(132, "b", 132)( + 133, + "b", + 133 + )(134, "b", 134)(135, "b", 135)(136, "b", 136)(137, "b", 137)(138, "b", 138)(139, "b", 139)( + 140, + "b", + 140 + )(141, "b", 141)(142, "b", 142)(143, "b", 143)(144, "b", 144)(145, "b", 145)(146, "b", 146)( + 147, + "b", + 147 + )(148, "b", 148)(149, "b", 149)(150, "b", 150)(151, "b", 151)(152, "b", 152)(153, "b", 153)( + 154, + "b", + 154 + )(155, "b", 155)(156, "b", 156)(157, "b", 157)(158, "b", 158)(159, "b", 159)(160, "b", 160)( + 161, + "b", + 161 + )(162, "b", 162)(163, "b", 163)(164, "b", 164)(165, "b", 165)(166, "b", 166)(167, "b", 167)( + 168, + "b", + 168 + )(169, "b", 169)(170, "b", 170)(171, "b", 171)(172, "b", 172)(173, "b", 173)(174, "b", 174)( + 175, + "b", + 175 + )(176, "b", 176)(177, "b", 177)(178, "b", 178)(179, "b", 179)(180, "b", 180)(181, "b", 181)( + 182, + "b", + 182 + )(183, "b", 183)(184, "b", 184)(185, "b", 185)(186, "b", 186)(187, "b", 187)(188, "b", 188)( + 189, + "b", + 189 + )(190, "b", 190)(191, "b", 191)(192, "b", 192)(193, "b", 193)(194, "b", 194)(195, "b", 195)( + 196, + "b", + 196 + )(197, "b", 197)(198, "b", 198)(199, "b", 199)(200, "b", 200)(201, "b", 201)(202, "b", 202)( + 203, + "b", + 203 + )(204, "b", 204)(205, "b", 205)(206, "b", 206)(207, "b", 207)(208, "b", 208)(209, "b", 209)( + 210, + "b", + 210 + )(211, "b", 211)(212, "b", 212)(213, "b", 213)(214, "b", 214)(215, "b", 215)(216, "b", 216)( + 217, + "b", + 217 + )(218, "b", 218)(219, "b", 219)(220, "b", 220)(221, "b", 221)(222, "b", 222)(223, "b", 223)( + 224, + "b", + 224 + )(225, "b", 225)(226, "b", 226)(227, "b", 227)(228, "b", 228)(229, "b", 229)(230, "b", 230)( + 231, + "b", + 231 + )(232, "b", 232)(233, "b", 233)(234, "b", 234)(235, "b", 235)(236, "b", 236)(237, "b", 237)( + 238, + "b", + 238 + )(239, "b", 239)(240, "b", 240)(241, "b", 241)(242, "b", 242)(243, "b", 243)(244, "b", 244)( + 245, + "b", + 245 + )(246, "b", 246)(247, "b", 247)(248, "b", 248)(249, "b", 249)(250, "b", 250)(251, "b", 251)( + 252, + "b", + 252 + )(253, "b", 253)(254, "b", 254)(255, "b", 255); + i0.ɵɵdomElement(256, "b", 256)(257, "b", 257)(258, "b", 258)(259, "b", 259)(260, "b", 260)( + 261, + "b", + 261 + )(262, "b", 262)(263, "b", 263)(264, "b", 264)(265, "b", 265)(266, "b", 266)(267, "b", 267)( + 268, + "b", + 268 + )(269, "b", 269)(270, "b", 270)(271, "b", 271)(272, "b", 272)(273, "b", 273)(274, "b", 274)( + 275, + "b", + 275 + )(276, "b", 276)(277, "b", 277)(278, "b", 278)(279, "b", 279)(280, "b", 280)(281, "b", 281)( + 282, + "b", + 282 + )(283, "b", 283)(284, "b", 284)(285, "b", 285)(286, "b", 286)(287, "b", 287)(288, "b", 288)( + 289, + "b", + 289 + )(290, "b", 290)(291, "b", 291)(292, "b", 292)(293, "b", 293)(294, "b", 294)(295, "b", 295)( + 296, + "b", + 296 + )(297, "b", 297)(298, "b", 298)(299, "b", 299)(300, "b", 300)(301, "b", 301)(302, "b", 302)( + 303, + "b", + 303 + )(304, "b", 304)(305, "b", 305)(306, "b", 306)(307, "b", 307)(308, "b", 308)(309, "b", 309)( + 310, + "b", + 310 + )(311, "b", 311)(312, "b", 312)(313, "b", 313)(314, "b", 314)(315, "b", 315)(316, "b", 316)( + 317, + "b", + 317 + )(318, "b", 318)(319, "b", 319)(320, "b", 320)(321, "b", 321)(322, "b", 322)(323, "b", 323)( + 324, + "b", + 324 + )(325, "b", 325)(326, "b", 326)(327, "b", 327)(328, "b", 328)(329, "b", 329)(330, "b", 330)( + 331, + "b", + 331 + )(332, "b", 332)(333, "b", 333)(334, "b", 334)(335, "b", 335)(336, "b", 336)(337, "b", 337)( + 338, + "b", + 338 + )(339, "b", 339)(340, "b", 340)(341, "b", 341)(342, "b", 342)(343, "b", 343)(344, "b", 344)( + 345, + "b", + 345 + )(346, "b", 346)(347, "b", 347)(348, "b", 348)(349, "b", 349)(350, "b", 350)(351, "b", 351)( + 352, + "b", + 352 + )(353, "b", 353)(354, "b", 354)(355, "b", 355)(356, "b", 356)(357, "b", 357)(358, "b", 358)( + 359, + "b", + 359 + )(360, "b", 360)(361, "b", 361)(362, "b", 362)(363, "b", 363)(364, "b", 364)(365, "b", 365)( + 366, + "b", + 366 + )(367, "b", 367)(368, "b", 368)(369, "b", 369)(370, "b", 370)(371, "b", 371)(372, "b", 372)( + 373, + "b", + 373 + )(374, "b", 374)(375, "b", 375)(376, "b", 376)(377, "b", 377)(378, "b", 378)(379, "b", 379)( + 380, + "b", + 380 + )(381, "b", 381)(382, "b", 382)(383, "b", 383)(384, "b", 384)(385, "b", 385)(386, "b", 386)( + 387, + "b", + 387 + )(388, "b", 388)(389, "b", 389)(390, "b", 390)(391, "b", 391)(392, "b", 392)(393, "b", 393)( + 394, + "b", + 394 + )(395, "b", 395)(396, "b", 396)(397, "b", 397)(398, "b", 398)(399, "b", 399)(400, "b", 400)( + 401, + "b", + 401 + )(402, "b", 402)(403, "b", 403)(404, "b", 404)(405, "b", 405)(406, "b", 406)(407, "b", 407)( + 408, + "b", + 408 + )(409, "b", 409)(410, "b", 410)(411, "b", 411)(412, "b", 412)(413, "b", 413)(414, "b", 414)( + 415, + "b", + 415 + )(416, "b", 416)(417, "b", 417)(418, "b", 418)(419, "b", 419)(420, "b", 420)(421, "b", 421)( + 422, + "b", + 422 + )(423, "b", 423)(424, "b", 424)(425, "b", 425)(426, "b", 426)(427, "b", 427)(428, "b", 428)( + 429, + "b", + 429 + )(430, "b", 430)(431, "b", 431)(432, "b", 432)(433, "b", 433)(434, "b", 434)(435, "b", 435)( + 436, + "b", + 436 + )(437, "b", 437)(438, "b", 438)(439, "b", 439)(440, "b", 440)(441, "b", 441)(442, "b", 442)( + 443, + "b", + 443 + )(444, "b", 444)(445, "b", 445)(446, "b", 446)(447, "b", 447)(448, "b", 448)(449, "b", 449)( + 450, + "b", + 450 + )(451, "b", 451)(452, "b", 452)(453, "b", 453)(454, "b", 454)(455, "b", 455)(456, "b", 456)( + 457, + "b", + 457 + )(458, "b", 458)(459, "b", 459)(460, "b", 460)(461, "b", 461)(462, "b", 462)(463, "b", 463)( + 464, + "b", + 464 + )(465, "b", 465)(466, "b", 466)(467, "b", 467)(468, "b", 468)(469, "b", 469)(470, "b", 470)( + 471, + "b", + 471 + )(472, "b", 472)(473, "b", 473)(474, "b", 474)(475, "b", 475)(476, "b", 476)(477, "b", 477)( + 478, + "b", + 478 + )(479, "b", 479)(480, "b", 480)(481, "b", 481)(482, "b", 482)(483, "b", 483)(484, "b", 484)( + 485, + "b", + 485 + )(486, "b", 486)(487, "b", 487)(488, "b", 488)(489, "b", 489)(490, "b", 490)(491, "b", 491)( + 492, + "b", + 492 + )(493, "b", 493)(494, "b", 494)(495, "b", 495)(496, "b", 496)(497, "b", 497)(498, "b", 498)( + 499, + "b", + 499 + )(500, "b", 500)(501, "b", 501)(502, "b", 502)(503, "b", 503)(504, "b", 504)(505, "b", 505)( + 506, + "b", + 506 + )(507, "b", 507)(508, "b", 508)(509, "b", 509)(510, "b", 510)(511, "b", 511); + i0.ɵɵdomElement(512, "b", 512)(513, "b", 513)(514, "b", 514)(515, "b", 515)(516, "b", 516)( + 517, + "b", + 517 + )(518, "b", 518)(519, "b", 519)(520, "b", 520)(521, "b", 521)(522, "b", 522)(523, "b", 523)( + 524, + "b", + 524 + )(525, "b", 525)(526, "b", 526)(527, "b", 527)(528, "b", 528)(529, "b", 529)(530, "b", 530)( + 531, + "b", + 531 + )(532, "b", 532)(533, "b", 533)(534, "b", 534)(535, "b", 535)(536, "b", 536)(537, "b", 537)( + 538, + "b", + 538 + )(539, "b", 539)(540, "b", 540)(541, "b", 541)(542, "b", 542)(543, "b", 543)(544, "b", 544)( + 545, + "b", + 545 + )(546, "b", 546)(547, "b", 547)(548, "b", 548)(549, "b", 549)(550, "b", 550)(551, "b", 551)( + 552, + "b", + 552 + )(553, "b", 553)(554, "b", 554)(555, "b", 555)(556, "b", 556)(557, "b", 557)(558, "b", 558)( + 559, + "b", + 559 + )(560, "b", 560)(561, "b", 561)(562, "b", 562)(563, "b", 563)(564, "b", 564)(565, "b", 565)( + 566, + "b", + 566 + )(567, "b", 567)(568, "b", 568)(569, "b", 569)(570, "b", 570)(571, "b", 571)(572, "b", 572)( + 573, + "b", + 573 + )(574, "b", 574)(575, "b", 575)(576, "b", 576)(577, "b", 577)(578, "b", 578)(579, "b", 579)( + 580, + "b", + 580 + )(581, "b", 581)(582, "b", 582)(583, "b", 583)(584, "b", 584)(585, "b", 585)(586, "b", 586)( + 587, + "b", + 587 + )(588, "b", 588)(589, "b", 589)(590, "b", 590)(591, "b", 591)(592, "b", 592)(593, "b", 593)( + 594, + "b", + 594 + )(595, "b", 595)(596, "b", 596)(597, "b", 597)(598, "b", 598)(599, "b", 599)(600, "b", 600)( + 601, + "b", + 601 + )(602, "b", 602)(603, "b", 603)(604, "b", 604)(605, "b", 605)(606, "b", 606)(607, "b", 607)( + 608, + "b", + 608 + )(609, "b", 609)(610, "b", 610)(611, "b", 611)(612, "b", 612)(613, "b", 613)(614, "b", 614)( + 615, + "b", + 615 + )(616, "b", 616)(617, "b", 617)(618, "b", 618)(619, "b", 619)(620, "b", 620)(621, "b", 621)( + 622, + "b", + 622 + )(623, "b", 623)(624, "b", 624)(625, "b", 625)(626, "b", 626)(627, "b", 627)(628, "b", 628)( + 629, + "b", + 629 + )(630, "b", 630)(631, "b", 631)(632, "b", 632)(633, "b", 633)(634, "b", 634)(635, "b", 635)( + 636, + "b", + 636 + )(637, "b", 637)(638, "b", 638)(639, "b", 639)(640, "b", 640)(641, "b", 641)(642, "b", 642)( + 643, + "b", + 643 + )(644, "b", 644)(645, "b", 645)(646, "b", 646)(647, "b", 647)(648, "b", 648)(649, "b", 649)( + 650, + "b", + 650 + )(651, "b", 651)(652, "b", 652)(653, "b", 653)(654, "b", 654)(655, "b", 655)(656, "b", 656)( + 657, + "b", + 657 + )(658, "b", 658)(659, "b", 659)(660, "b", 660)(661, "b", 661)(662, "b", 662)(663, "b", 663)( + 664, + "b", + 664 + )(665, "b", 665)(666, "b", 666)(667, "b", 667)(668, "b", 668)(669, "b", 669)(670, "b", 670)( + 671, + "b", + 671 + )(672, "b", 672)(673, "b", 673)(674, "b", 674)(675, "b", 675)(676, "b", 676)(677, "b", 677)( + 678, + "b", + 678 + )(679, "b", 679)(680, "b", 680)(681, "b", 681)(682, "b", 682)(683, "b", 683)(684, "b", 684)( + 685, + "b", + 685 + )(686, "b", 686)(687, "b", 687)(688, "b", 688)(689, "b", 689)(690, "b", 690)(691, "b", 691)( + 692, + "b", + 692 + )(693, "b", 693)(694, "b", 694)(695, "b", 695)(696, "b", 696)(697, "b", 697)(698, "b", 698)( + 699, + "b", + 699 + )(700, "b", 700)(701, "b", 701)(702, "b", 702)(703, "b", 703)(704, "b", 704)(705, "b", 705)( + 706, + "b", + 706 + )(707, "b", 707)(708, "b", 708)(709, "b", 709)(710, "b", 710)(711, "b", 711)(712, "b", 712)( + 713, + "b", + 713 + )(714, "b", 714)(715, "b", 715)(716, "b", 716)(717, "b", 717)(718, "b", 718)(719, "b", 719)( + 720, + "b", + 720 + )(721, "b", 721)(722, "b", 722)(723, "b", 723)(724, "b", 724)(725, "b", 725)(726, "b", 726)( + 727, + "b", + 727 + )(728, "b", 728)(729, "b", 729)(730, "b", 730)(731, "b", 731)(732, "b", 732)(733, "b", 733)( + 734, + "b", + 734 + )(735, "b", 735)(736, "b", 736)(737, "b", 737)(738, "b", 738)(739, "b", 739)(740, "b", 740)( + 741, + "b", + 741 + )(742, "b", 742)(743, "b", 743)(744, "b", 744)(745, "b", 745)(746, "b", 746)(747, "b", 747)( + 748, + "b", + 748 + )(749, "b", 749)(750, "b", 750)(751, "b", 751)(752, "b", 752)(753, "b", 753)(754, "b", 754)( + 755, + "b", + 755 + )(756, "b", 756)(757, "b", 757)(758, "b", 758)(759, "b", 759)(760, "b", 760)(761, "b", 761)( + 762, + "b", + 762 + )(763, "b", 763)(764, "b", 764)(765, "b", 765)(766, "b", 766)(767, "b", 767); + i0.ɵɵdomElement(768, "b", 768)(769, "b", 769)(770, "b", 770)(771, "b", 771)(772, "b", 772)( + 773, + "b", + 773 + )(774, "b", 774)(775, "b", 775)(776, "b", 776)(777, "b", 777)(778, "b", 778)(779, "b", 779)( + 780, + "b", + 780 + )(781, "b", 781)(782, "b", 782)(783, "b", 783)(784, "b", 784)(785, "b", 785)(786, "b", 786)( + 787, + "b", + 787 + )(788, "b", 788)(789, "b", 789)(790, "b", 790)(791, "b", 791)(792, "b", 792)(793, "b", 793)( + 794, + "b", + 794 + )(795, "b", 795)(796, "b", 796)(797, "b", 797)(798, "b", 798)(799, "b", 799)(800, "b", 800)( + 801, + "b", + 801 + )(802, "b", 802)(803, "b", 803)(804, "b", 804)(805, "b", 805)(806, "b", 806)(807, "b", 807)( + 808, + "b", + 808 + )(809, "b", 809)(810, "b", 810)(811, "b", 811)(812, "b", 812)(813, "b", 813)(814, "b", 814)( + 815, + "b", + 815 + )(816, "b", 816)(817, "b", 817)(818, "b", 818)(819, "b", 819)(820, "b", 820)(821, "b", 821)( + 822, + "b", + 822 + )(823, "b", 823)(824, "b", 824)(825, "b", 825)(826, "b", 826)(827, "b", 827)(828, "b", 828)( + 829, + "b", + 829 + )(830, "b", 830)(831, "b", 831)(832, "b", 832)(833, "b", 833)(834, "b", 834)(835, "b", 835)( + 836, + "b", + 836 + )(837, "b", 837)(838, "b", 838)(839, "b", 839)(840, "b", 840)(841, "b", 841)(842, "b", 842)( + 843, + "b", + 843 + )(844, "b", 844)(845, "b", 845)(846, "b", 846)(847, "b", 847)(848, "b", 848)(849, "b", 849)( + 850, + "b", + 850 + )(851, "b", 851)(852, "b", 852)(853, "b", 853)(854, "b", 854)(855, "b", 855)(856, "b", 856)( + 857, + "b", + 857 + )(858, "b", 858)(859, "b", 859)(860, "b", 860)(861, "b", 861)(862, "b", 862)(863, "b", 863)( + 864, + "b", + 864 + )(865, "b", 865)(866, "b", 866)(867, "b", 867)(868, "b", 868)(869, "b", 869)(870, "b", 870)( + 871, + "b", + 871 + )(872, "b", 872)(873, "b", 873)(874, "b", 874)(875, "b", 875)(876, "b", 876)(877, "b", 877)( + 878, + "b", + 878 + )(879, "b", 879)(880, "b", 880)(881, "b", 881)(882, "b", 882)(883, "b", 883)(884, "b", 884)( + 885, + "b", + 885 + )(886, "b", 886)(887, "b", 887)(888, "b", 888)(889, "b", 889)(890, "b", 890)(891, "b", 891)( + 892, + "b", + 892 + )(893, "b", 893)(894, "b", 894)(895, "b", 895)(896, "b", 896)(897, "b", 897)(898, "b", 898)( + 899, + "b", + 899 + )(900, "b", 900)(901, "b", 901)(902, "b", 902)(903, "b", 903)(904, "b", 904)(905, "b", 905)( + 906, + "b", + 906 + )(907, "b", 907)(908, "b", 908)(909, "b", 909)(910, "b", 910)(911, "b", 911)(912, "b", 912)( + 913, + "b", + 913 + )(914, "b", 914)(915, "b", 915)(916, "b", 916)(917, "b", 917)(918, "b", 918)(919, "b", 919)( + 920, + "b", + 920 + )(921, "b", 921)(922, "b", 922)(923, "b", 923)(924, "b", 924)(925, "b", 925)(926, "b", 926)( + 927, + "b", + 927 + )(928, "b", 928)(929, "b", 929)(930, "b", 930)(931, "b", 931)(932, "b", 932)(933, "b", 933)( + 934, + "b", + 934 + )(935, "b", 935)(936, "b", 936)(937, "b", 937)(938, "b", 938)(939, "b", 939)(940, "b", 940)( + 941, + "b", + 941 + )(942, "b", 942)(943, "b", 943)(944, "b", 944)(945, "b", 945)(946, "b", 946)(947, "b", 947)( + 948, + "b", + 948 + )(949, "b", 949)(950, "b", 950)(951, "b", 951)(952, "b", 952)(953, "b", 953)(954, "b", 954)( + 955, + "b", + 955 + )(956, "b", 956)(957, "b", 957)(958, "b", 958)(959, "b", 959)(960, "b", 960)(961, "b", 961)( + 962, + "b", + 962 + )(963, "b", 963)(964, "b", 964)(965, "b", 965)(966, "b", 966)(967, "b", 967)(968, "b", 968)( + 969, + "b", + 969 + )(970, "b", 970)(971, "b", 971)(972, "b", 972)(973, "b", 973)(974, "b", 974)(975, "b", 975)( + 976, + "b", + 976 + )(977, "b", 977)(978, "b", 978)(979, "b", 979)(980, "b", 980)(981, "b", 981)(982, "b", 982)( + 983, + "b", + 983 + )(984, "b", 984)(985, "b", 985)(986, "b", 986)(987, "b", 987)(988, "b", 988)(989, "b", 989)( + 990, + "b", + 990 + )(991, "b", 991)(992, "b", 992)(993, "b", 993)(994, "b", 994)(995, "b", 995)(996, "b", 996)( + 997, + "b", + 997 + )(998, "b", 998)(999, "b", 999); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + App, + [ + { + type: Component, + args: [ + { + template: ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(App, { + className: "App", + filePath: "many_i18n_attributes.ts", + lineNumber: 1007 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_attributes.ts b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_attributes.ts new file mode 100644 index 000000000000..30bbb900ea42 --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_attributes.ts @@ -0,0 +1,1007 @@ +import {Component} from "@angular/core"; + +@Component({ + template: ` + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + `, +}) +export class App {} diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_attributes_isolated.golden.d.ts b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_attributes_isolated.golden.d.ts new file mode 100644 index 000000000000..1bf11e5847e7 --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_attributes_isolated.golden.d.ts @@ -0,0 +1,5 @@ +import * as i0 from "@angular/core"; +export declare class App { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_elements.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_elements.js new file mode 100644 index 000000000000..445bfa27dfa3 --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_elements.js @@ -0,0 +1,20299 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +function i18n_250() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8135467576330035758$$MANY_I18N_ELEMENTS_TS_250 = + /* @ts-ignore */ + goog.getMsg("251"); + msg = MSG_EXTERNAL_8135467576330035758$$MANY_I18N_ELEMENTS_TS_250; + } else { + /* @ts-ignore */ + msg = $localize`251`; + } + return msg; +} +function i18n_251() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3149124541639692071$$MANY_I18N_ELEMENTS_TS_251 = + /* @ts-ignore */ + goog.getMsg("252"); + msg = MSG_EXTERNAL_3149124541639692071$$MANY_I18N_ELEMENTS_TS_251; + } else { + /* @ts-ignore */ + msg = $localize`252`; + } + return msg; +} +function i18n_252() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4048857477971842634$$MANY_I18N_ELEMENTS_TS_252 = + /* @ts-ignore */ + goog.getMsg("253"); + msg = MSG_EXTERNAL_4048857477971842634$$MANY_I18N_ELEMENTS_TS_252; + } else { + /* @ts-ignore */ + msg = $localize`253`; + } + return msg; +} +function i18n_253() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6399057748340713385$$MANY_I18N_ELEMENTS_TS_253 = + /* @ts-ignore */ + goog.getMsg("254"); + msg = MSG_EXTERNAL_6399057748340713385$$MANY_I18N_ELEMENTS_TS_253; + } else { + /* @ts-ignore */ + msg = $localize`254`; + } + return msg; +} +function i18n_254() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6524274391737206658$$MANY_I18N_ELEMENTS_TS_254 = + /* @ts-ignore */ + goog.getMsg("255"); + msg = MSG_EXTERNAL_6524274391737206658$$MANY_I18N_ELEMENTS_TS_254; + } else { + /* @ts-ignore */ + msg = $localize`255`; + } + return msg; +} +function i18n_255() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6991108300301321954$$MANY_I18N_ELEMENTS_TS_255 = + /* @ts-ignore */ + goog.getMsg("256"); + msg = MSG_EXTERNAL_6991108300301321954$$MANY_I18N_ELEMENTS_TS_255; + } else { + /* @ts-ignore */ + msg = $localize`256`; + } + return msg; +} +function i18n_256() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9201468179152343312$$MANY_I18N_ELEMENTS_TS_256 = + /* @ts-ignore */ + goog.getMsg("257"); + msg = MSG_EXTERNAL_9201468179152343312$$MANY_I18N_ELEMENTS_TS_256; + } else { + /* @ts-ignore */ + msg = $localize`257`; + } + return msg; +} +function i18n_257() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1381077111751743526$$MANY_I18N_ELEMENTS_TS_257 = + /* @ts-ignore */ + goog.getMsg("258"); + msg = MSG_EXTERNAL_1381077111751743526$$MANY_I18N_ELEMENTS_TS_257; + } else { + /* @ts-ignore */ + msg = $localize`258`; + } + return msg; +} +function i18n_258() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3880859343808657024$$MANY_I18N_ELEMENTS_TS_258 = + /* @ts-ignore */ + goog.getMsg("259"); + msg = MSG_EXTERNAL_3880859343808657024$$MANY_I18N_ELEMENTS_TS_258; + } else { + /* @ts-ignore */ + msg = $localize`259`; + } + return msg; +} +function i18n_259() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2909185222816770703$$MANY_I18N_ELEMENTS_TS_259 = + /* @ts-ignore */ + goog.getMsg("260"); + msg = MSG_EXTERNAL_2909185222816770703$$MANY_I18N_ELEMENTS_TS_259; + } else { + /* @ts-ignore */ + msg = $localize`260`; + } + return msg; +} +function i18n_260() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1349780592973462586$$MANY_I18N_ELEMENTS_TS_260 = + /* @ts-ignore */ + goog.getMsg("261"); + msg = MSG_EXTERNAL_1349780592973462586$$MANY_I18N_ELEMENTS_TS_260; + } else { + /* @ts-ignore */ + msg = $localize`261`; + } + return msg; +} +function i18n_261() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_665318035969773150$$MANY_I18N_ELEMENTS_TS_261 = + /* @ts-ignore */ + goog.getMsg("262"); + msg = MSG_EXTERNAL_665318035969773150$$MANY_I18N_ELEMENTS_TS_261; + } else { + /* @ts-ignore */ + msg = $localize`262`; + } + return msg; +} +function i18n_262() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3378032126096401664$$MANY_I18N_ELEMENTS_TS_262 = + /* @ts-ignore */ + goog.getMsg("263"); + msg = MSG_EXTERNAL_3378032126096401664$$MANY_I18N_ELEMENTS_TS_262; + } else { + /* @ts-ignore */ + msg = $localize`263`; + } + return msg; +} +function i18n_263() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5826935010713511156$$MANY_I18N_ELEMENTS_TS_263 = + /* @ts-ignore */ + goog.getMsg("264"); + msg = MSG_EXTERNAL_5826935010713511156$$MANY_I18N_ELEMENTS_TS_263; + } else { + /* @ts-ignore */ + msg = $localize`264`; + } + return msg; +} +function i18n_264() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_871065667990336285$$MANY_I18N_ELEMENTS_TS_264 = + /* @ts-ignore */ + goog.getMsg("265"); + msg = MSG_EXTERNAL_871065667990336285$$MANY_I18N_ELEMENTS_TS_264; + } else { + /* @ts-ignore */ + msg = $localize`265`; + } + return msg; +} +function i18n_265() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4584924634908923108$$MANY_I18N_ELEMENTS_TS_265 = + /* @ts-ignore */ + goog.getMsg("266"); + msg = MSG_EXTERNAL_4584924634908923108$$MANY_I18N_ELEMENTS_TS_265; + } else { + /* @ts-ignore */ + msg = $localize`266`; + } + return msg; +} +function i18n_266() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_455127541367971522$$MANY_I18N_ELEMENTS_TS_266 = + /* @ts-ignore */ + goog.getMsg("267"); + msg = MSG_EXTERNAL_455127541367971522$$MANY_I18N_ELEMENTS_TS_266; + } else { + /* @ts-ignore */ + msg = $localize`267`; + } + return msg; +} +function i18n_267() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6641875461501270527$$MANY_I18N_ELEMENTS_TS_267 = + /* @ts-ignore */ + goog.getMsg("268"); + msg = MSG_EXTERNAL_6641875461501270527$$MANY_I18N_ELEMENTS_TS_267; + } else { + /* @ts-ignore */ + msg = $localize`268`; + } + return msg; +} +function i18n_268() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5506410581686063$$MANY_I18N_ELEMENTS_TS_268 = + /* @ts-ignore */ + goog.getMsg("269"); + msg = MSG_EXTERNAL_5506410581686063$$MANY_I18N_ELEMENTS_TS_268; + } else { + /* @ts-ignore */ + msg = $localize`269`; + } + return msg; +} +function i18n_269() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9105010445600018997$$MANY_I18N_ELEMENTS_TS_269 = + /* @ts-ignore */ + goog.getMsg("270"); + msg = MSG_EXTERNAL_9105010445600018997$$MANY_I18N_ELEMENTS_TS_269; + } else { + /* @ts-ignore */ + msg = $localize`270`; + } + return msg; +} +function i18n_270() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7846974540399239055$$MANY_I18N_ELEMENTS_TS_270 = + /* @ts-ignore */ + goog.getMsg("271"); + msg = MSG_EXTERNAL_7846974540399239055$$MANY_I18N_ELEMENTS_TS_270; + } else { + /* @ts-ignore */ + msg = $localize`271`; + } + return msg; +} +function i18n_271() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4139475360913841906$$MANY_I18N_ELEMENTS_TS_271 = + /* @ts-ignore */ + goog.getMsg("272"); + msg = MSG_EXTERNAL_4139475360913841906$$MANY_I18N_ELEMENTS_TS_271; + } else { + /* @ts-ignore */ + msg = $localize`272`; + } + return msg; +} +function i18n_272() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2526908525223709471$$MANY_I18N_ELEMENTS_TS_272 = + /* @ts-ignore */ + goog.getMsg("273"); + msg = MSG_EXTERNAL_2526908525223709471$$MANY_I18N_ELEMENTS_TS_272; + } else { + /* @ts-ignore */ + msg = $localize`273`; + } + return msg; +} +function i18n_273() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8792033388875140674$$MANY_I18N_ELEMENTS_TS_273 = + /* @ts-ignore */ + goog.getMsg("274"); + msg = MSG_EXTERNAL_8792033388875140674$$MANY_I18N_ELEMENTS_TS_273; + } else { + /* @ts-ignore */ + msg = $localize`274`; + } + return msg; +} +function i18n_274() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6258338466959167420$$MANY_I18N_ELEMENTS_TS_274 = + /* @ts-ignore */ + goog.getMsg("275"); + msg = MSG_EXTERNAL_6258338466959167420$$MANY_I18N_ELEMENTS_TS_274; + } else { + /* @ts-ignore */ + msg = $localize`275`; + } + return msg; +} +function i18n_275() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8999798216784560459$$MANY_I18N_ELEMENTS_TS_275 = + /* @ts-ignore */ + goog.getMsg("276"); + msg = MSG_EXTERNAL_8999798216784560459$$MANY_I18N_ELEMENTS_TS_275; + } else { + /* @ts-ignore */ + msg = $localize`276`; + } + return msg; +} +function i18n_276() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3775542017603658005$$MANY_I18N_ELEMENTS_TS_276 = + /* @ts-ignore */ + goog.getMsg("277"); + msg = MSG_EXTERNAL_3775542017603658005$$MANY_I18N_ELEMENTS_TS_276; + } else { + /* @ts-ignore */ + msg = $localize`277`; + } + return msg; +} +function i18n_277() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4583536484855014800$$MANY_I18N_ELEMENTS_TS_277 = + /* @ts-ignore */ + goog.getMsg("278"); + msg = MSG_EXTERNAL_4583536484855014800$$MANY_I18N_ELEMENTS_TS_277; + } else { + /* @ts-ignore */ + msg = $localize`278`; + } + return msg; +} +function i18n_278() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1648115191333398845$$MANY_I18N_ELEMENTS_TS_278 = + /* @ts-ignore */ + goog.getMsg("279"); + msg = MSG_EXTERNAL_1648115191333398845$$MANY_I18N_ELEMENTS_TS_278; + } else { + /* @ts-ignore */ + msg = $localize`279`; + } + return msg; +} +function i18n_279() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8610159118251600926$$MANY_I18N_ELEMENTS_TS_279 = + /* @ts-ignore */ + goog.getMsg("280"); + msg = MSG_EXTERNAL_8610159118251600926$$MANY_I18N_ELEMENTS_TS_279; + } else { + /* @ts-ignore */ + msg = $localize`280`; + } + return msg; +} +function i18n_280() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6358723634853246850$$MANY_I18N_ELEMENTS_TS_280 = + /* @ts-ignore */ + goog.getMsg("281"); + msg = MSG_EXTERNAL_6358723634853246850$$MANY_I18N_ELEMENTS_TS_280; + } else { + /* @ts-ignore */ + msg = $localize`281`; + } + return msg; +} +function i18n_281() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7331821045910666684$$MANY_I18N_ELEMENTS_TS_281 = + /* @ts-ignore */ + goog.getMsg("282"); + msg = MSG_EXTERNAL_7331821045910666684$$MANY_I18N_ELEMENTS_TS_281; + } else { + /* @ts-ignore */ + msg = $localize`282`; + } + return msg; +} +function i18n_282() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7944476751457733591$$MANY_I18N_ELEMENTS_TS_282 = + /* @ts-ignore */ + goog.getMsg("283"); + msg = MSG_EXTERNAL_7944476751457733591$$MANY_I18N_ELEMENTS_TS_282; + } else { + /* @ts-ignore */ + msg = $localize`283`; + } + return msg; +} +function i18n_283() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2700887595076907916$$MANY_I18N_ELEMENTS_TS_283 = + /* @ts-ignore */ + goog.getMsg("284"); + msg = MSG_EXTERNAL_2700887595076907916$$MANY_I18N_ELEMENTS_TS_283; + } else { + /* @ts-ignore */ + msg = $localize`284`; + } + return msg; +} +function i18n_284() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9020072075616733200$$MANY_I18N_ELEMENTS_TS_284 = + /* @ts-ignore */ + goog.getMsg("285"); + msg = MSG_EXTERNAL_9020072075616733200$$MANY_I18N_ELEMENTS_TS_284; + } else { + /* @ts-ignore */ + msg = $localize`285`; + } + return msg; +} +function i18n_285() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_282692621809673934$$MANY_I18N_ELEMENTS_TS_285 = + /* @ts-ignore */ + goog.getMsg("286"); + msg = MSG_EXTERNAL_282692621809673934$$MANY_I18N_ELEMENTS_TS_285; + } else { + /* @ts-ignore */ + msg = $localize`286`; + } + return msg; +} +function i18n_286() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3879782924432611725$$MANY_I18N_ELEMENTS_TS_286 = + /* @ts-ignore */ + goog.getMsg("287"); + msg = MSG_EXTERNAL_3879782924432611725$$MANY_I18N_ELEMENTS_TS_286; + } else { + /* @ts-ignore */ + msg = $localize`287`; + } + return msg; +} +function i18n_287() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4336966077677072344$$MANY_I18N_ELEMENTS_TS_287 = + /* @ts-ignore */ + goog.getMsg("288"); + msg = MSG_EXTERNAL_4336966077677072344$$MANY_I18N_ELEMENTS_TS_287; + } else { + /* @ts-ignore */ + msg = $localize`288`; + } + return msg; +} +function i18n_288() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8232534303282901116$$MANY_I18N_ELEMENTS_TS_288 = + /* @ts-ignore */ + goog.getMsg("289"); + msg = MSG_EXTERNAL_8232534303282901116$$MANY_I18N_ELEMENTS_TS_288; + } else { + /* @ts-ignore */ + msg = $localize`289`; + } + return msg; +} +function i18n_289() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6636030378583915434$$MANY_I18N_ELEMENTS_TS_289 = + /* @ts-ignore */ + goog.getMsg("290"); + msg = MSG_EXTERNAL_6636030378583915434$$MANY_I18N_ELEMENTS_TS_289; + } else { + /* @ts-ignore */ + msg = $localize`290`; + } + return msg; +} +function i18n_290() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8158077031960996083$$MANY_I18N_ELEMENTS_TS_290 = + /* @ts-ignore */ + goog.getMsg("291"); + msg = MSG_EXTERNAL_8158077031960996083$$MANY_I18N_ELEMENTS_TS_290; + } else { + /* @ts-ignore */ + msg = $localize`291`; + } + return msg; +} +function i18n_291() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5988529183155719156$$MANY_I18N_ELEMENTS_TS_291 = + /* @ts-ignore */ + goog.getMsg("292"); + msg = MSG_EXTERNAL_5988529183155719156$$MANY_I18N_ELEMENTS_TS_291; + } else { + /* @ts-ignore */ + msg = $localize`292`; + } + return msg; +} +function i18n_292() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_238291029190485598$$MANY_I18N_ELEMENTS_TS_292 = + /* @ts-ignore */ + goog.getMsg("293"); + msg = MSG_EXTERNAL_238291029190485598$$MANY_I18N_ELEMENTS_TS_292; + } else { + /* @ts-ignore */ + msg = $localize`293`; + } + return msg; +} +function i18n_293() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7994914038274477303$$MANY_I18N_ELEMENTS_TS_293 = + /* @ts-ignore */ + goog.getMsg("294"); + msg = MSG_EXTERNAL_7994914038274477303$$MANY_I18N_ELEMENTS_TS_293; + } else { + /* @ts-ignore */ + msg = $localize`294`; + } + return msg; +} +function i18n_294() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7597211182173786147$$MANY_I18N_ELEMENTS_TS_294 = + /* @ts-ignore */ + goog.getMsg("295"); + msg = MSG_EXTERNAL_7597211182173786147$$MANY_I18N_ELEMENTS_TS_294; + } else { + /* @ts-ignore */ + msg = $localize`295`; + } + return msg; +} +function i18n_295() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3729316106873458293$$MANY_I18N_ELEMENTS_TS_295 = + /* @ts-ignore */ + goog.getMsg("296"); + msg = MSG_EXTERNAL_3729316106873458293$$MANY_I18N_ELEMENTS_TS_295; + } else { + /* @ts-ignore */ + msg = $localize`296`; + } + return msg; +} +function i18n_296() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1683792798327020667$$MANY_I18N_ELEMENTS_TS_296 = + /* @ts-ignore */ + goog.getMsg("297"); + msg = MSG_EXTERNAL_1683792798327020667$$MANY_I18N_ELEMENTS_TS_296; + } else { + /* @ts-ignore */ + msg = $localize`297`; + } + return msg; +} +function i18n_297() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_19228152609968969$$MANY_I18N_ELEMENTS_TS_297 = + /* @ts-ignore */ + goog.getMsg("298"); + msg = MSG_EXTERNAL_19228152609968969$$MANY_I18N_ELEMENTS_TS_297; + } else { + /* @ts-ignore */ + msg = $localize`298`; + } + return msg; +} +function i18n_298() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5637181670638893278$$MANY_I18N_ELEMENTS_TS_298 = + /* @ts-ignore */ + goog.getMsg("299"); + msg = MSG_EXTERNAL_5637181670638893278$$MANY_I18N_ELEMENTS_TS_298; + } else { + /* @ts-ignore */ + msg = $localize`299`; + } + return msg; +} +function i18n_299() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_44255961994460369$$MANY_I18N_ELEMENTS_TS_299 = + /* @ts-ignore */ + goog.getMsg("300"); + msg = MSG_EXTERNAL_44255961994460369$$MANY_I18N_ELEMENTS_TS_299; + } else { + /* @ts-ignore */ + msg = $localize`300`; + } + return msg; +} +function i18n_300() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5825299137669053049$$MANY_I18N_ELEMENTS_TS_300 = + /* @ts-ignore */ + goog.getMsg("301"); + msg = MSG_EXTERNAL_5825299137669053049$$MANY_I18N_ELEMENTS_TS_300; + } else { + /* @ts-ignore */ + msg = $localize`301`; + } + return msg; +} +function i18n_301() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4569981340310264818$$MANY_I18N_ELEMENTS_TS_301 = + /* @ts-ignore */ + goog.getMsg("302"); + msg = MSG_EXTERNAL_4569981340310264818$$MANY_I18N_ELEMENTS_TS_301; + } else { + /* @ts-ignore */ + msg = $localize`302`; + } + return msg; +} +function i18n_302() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7709923049158845829$$MANY_I18N_ELEMENTS_TS_302 = + /* @ts-ignore */ + goog.getMsg("303"); + msg = MSG_EXTERNAL_7709923049158845829$$MANY_I18N_ELEMENTS_TS_302; + } else { + /* @ts-ignore */ + msg = $localize`303`; + } + return msg; +} +function i18n_303() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6503027606591703605$$MANY_I18N_ELEMENTS_TS_303 = + /* @ts-ignore */ + goog.getMsg("304"); + msg = MSG_EXTERNAL_6503027606591703605$$MANY_I18N_ELEMENTS_TS_303; + } else { + /* @ts-ignore */ + msg = $localize`304`; + } + return msg; +} +function i18n_304() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2145123158846990047$$MANY_I18N_ELEMENTS_TS_304 = + /* @ts-ignore */ + goog.getMsg("305"); + msg = MSG_EXTERNAL_2145123158846990047$$MANY_I18N_ELEMENTS_TS_304; + } else { + /* @ts-ignore */ + msg = $localize`305`; + } + return msg; +} +function i18n_305() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1056540591449151568$$MANY_I18N_ELEMENTS_TS_305 = + /* @ts-ignore */ + goog.getMsg("306"); + msg = MSG_EXTERNAL_1056540591449151568$$MANY_I18N_ELEMENTS_TS_305; + } else { + /* @ts-ignore */ + msg = $localize`306`; + } + return msg; +} +function i18n_306() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5575321868624290903$$MANY_I18N_ELEMENTS_TS_306 = + /* @ts-ignore */ + goog.getMsg("307"); + msg = MSG_EXTERNAL_5575321868624290903$$MANY_I18N_ELEMENTS_TS_306; + } else { + /* @ts-ignore */ + msg = $localize`307`; + } + return msg; +} +function i18n_307() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5577038063160658297$$MANY_I18N_ELEMENTS_TS_307 = + /* @ts-ignore */ + goog.getMsg("308"); + msg = MSG_EXTERNAL_5577038063160658297$$MANY_I18N_ELEMENTS_TS_307; + } else { + /* @ts-ignore */ + msg = $localize`308`; + } + return msg; +} +function i18n_308() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_934677739785108604$$MANY_I18N_ELEMENTS_TS_308 = + /* @ts-ignore */ + goog.getMsg("309"); + msg = MSG_EXTERNAL_934677739785108604$$MANY_I18N_ELEMENTS_TS_308; + } else { + /* @ts-ignore */ + msg = $localize`309`; + } + return msg; +} +function i18n_309() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4428467336597071231$$MANY_I18N_ELEMENTS_TS_309 = + /* @ts-ignore */ + goog.getMsg("310"); + msg = MSG_EXTERNAL_4428467336597071231$$MANY_I18N_ELEMENTS_TS_309; + } else { + /* @ts-ignore */ + msg = $localize`310`; + } + return msg; +} +function i18n_310() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1814761285814227730$$MANY_I18N_ELEMENTS_TS_310 = + /* @ts-ignore */ + goog.getMsg("311"); + msg = MSG_EXTERNAL_1814761285814227730$$MANY_I18N_ELEMENTS_TS_310; + } else { + /* @ts-ignore */ + msg = $localize`311`; + } + return msg; +} +function i18n_311() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7080231081441344096$$MANY_I18N_ELEMENTS_TS_311 = + /* @ts-ignore */ + goog.getMsg("312"); + msg = MSG_EXTERNAL_7080231081441344096$$MANY_I18N_ELEMENTS_TS_311; + } else { + /* @ts-ignore */ + msg = $localize`312`; + } + return msg; +} +function i18n_312() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7513852279246096183$$MANY_I18N_ELEMENTS_TS_312 = + /* @ts-ignore */ + goog.getMsg("313"); + msg = MSG_EXTERNAL_7513852279246096183$$MANY_I18N_ELEMENTS_TS_312; + } else { + /* @ts-ignore */ + msg = $localize`313`; + } + return msg; +} +function i18n_313() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_462616829401171937$$MANY_I18N_ELEMENTS_TS_313 = + /* @ts-ignore */ + goog.getMsg("314"); + msg = MSG_EXTERNAL_462616829401171937$$MANY_I18N_ELEMENTS_TS_313; + } else { + /* @ts-ignore */ + msg = $localize`314`; + } + return msg; +} +function i18n_314() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6330059387086949376$$MANY_I18N_ELEMENTS_TS_314 = + /* @ts-ignore */ + goog.getMsg("315"); + msg = MSG_EXTERNAL_6330059387086949376$$MANY_I18N_ELEMENTS_TS_314; + } else { + /* @ts-ignore */ + msg = $localize`315`; + } + return msg; +} +function i18n_315() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1101419124342814845$$MANY_I18N_ELEMENTS_TS_315 = + /* @ts-ignore */ + goog.getMsg("316"); + msg = MSG_EXTERNAL_1101419124342814845$$MANY_I18N_ELEMENTS_TS_315; + } else { + /* @ts-ignore */ + msg = $localize`316`; + } + return msg; +} +function i18n_316() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_601858558890933107$$MANY_I18N_ELEMENTS_TS_316 = + /* @ts-ignore */ + goog.getMsg("317"); + msg = MSG_EXTERNAL_601858558890933107$$MANY_I18N_ELEMENTS_TS_316; + } else { + /* @ts-ignore */ + msg = $localize`317`; + } + return msg; +} +function i18n_317() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7303407801394367022$$MANY_I18N_ELEMENTS_TS_317 = + /* @ts-ignore */ + goog.getMsg("318"); + msg = MSG_EXTERNAL_7303407801394367022$$MANY_I18N_ELEMENTS_TS_317; + } else { + /* @ts-ignore */ + msg = $localize`318`; + } + return msg; +} +function i18n_318() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1278202510003347965$$MANY_I18N_ELEMENTS_TS_318 = + /* @ts-ignore */ + goog.getMsg("319"); + msg = MSG_EXTERNAL_1278202510003347965$$MANY_I18N_ELEMENTS_TS_318; + } else { + /* @ts-ignore */ + msg = $localize`319`; + } + return msg; +} +function i18n_319() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3865068550040512777$$MANY_I18N_ELEMENTS_TS_319 = + /* @ts-ignore */ + goog.getMsg("320"); + msg = MSG_EXTERNAL_3865068550040512777$$MANY_I18N_ELEMENTS_TS_319; + } else { + /* @ts-ignore */ + msg = $localize`320`; + } + return msg; +} +function i18n_320() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8348372968666359836$$MANY_I18N_ELEMENTS_TS_320 = + /* @ts-ignore */ + goog.getMsg("321"); + msg = MSG_EXTERNAL_8348372968666359836$$MANY_I18N_ELEMENTS_TS_320; + } else { + /* @ts-ignore */ + msg = $localize`321`; + } + return msg; +} +function i18n_321() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5106664568463863621$$MANY_I18N_ELEMENTS_TS_321 = + /* @ts-ignore */ + goog.getMsg("322"); + msg = MSG_EXTERNAL_5106664568463863621$$MANY_I18N_ELEMENTS_TS_321; + } else { + /* @ts-ignore */ + msg = $localize`322`; + } + return msg; +} +function i18n_322() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6283849857043814316$$MANY_I18N_ELEMENTS_TS_322 = + /* @ts-ignore */ + goog.getMsg("323"); + msg = MSG_EXTERNAL_6283849857043814316$$MANY_I18N_ELEMENTS_TS_322; + } else { + /* @ts-ignore */ + msg = $localize`323`; + } + return msg; +} +function i18n_323() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6354041151090005875$$MANY_I18N_ELEMENTS_TS_323 = + /* @ts-ignore */ + goog.getMsg("324"); + msg = MSG_EXTERNAL_6354041151090005875$$MANY_I18N_ELEMENTS_TS_323; + } else { + /* @ts-ignore */ + msg = $localize`324`; + } + return msg; +} +function i18n_324() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1753605970641215059$$MANY_I18N_ELEMENTS_TS_324 = + /* @ts-ignore */ + goog.getMsg("325"); + msg = MSG_EXTERNAL_1753605970641215059$$MANY_I18N_ELEMENTS_TS_324; + } else { + /* @ts-ignore */ + msg = $localize`325`; + } + return msg; +} +function i18n_325() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5905311923529627773$$MANY_I18N_ELEMENTS_TS_325 = + /* @ts-ignore */ + goog.getMsg("326"); + msg = MSG_EXTERNAL_5905311923529627773$$MANY_I18N_ELEMENTS_TS_325; + } else { + /* @ts-ignore */ + msg = $localize`326`; + } + return msg; +} +function i18n_326() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3489445373898627866$$MANY_I18N_ELEMENTS_TS_326 = + /* @ts-ignore */ + goog.getMsg("327"); + msg = MSG_EXTERNAL_3489445373898627866$$MANY_I18N_ELEMENTS_TS_326; + } else { + /* @ts-ignore */ + msg = $localize`327`; + } + return msg; +} +function i18n_327() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4428338269048886617$$MANY_I18N_ELEMENTS_TS_327 = + /* @ts-ignore */ + goog.getMsg("328"); + msg = MSG_EXTERNAL_4428338269048886617$$MANY_I18N_ELEMENTS_TS_327; + } else { + /* @ts-ignore */ + msg = $localize`328`; + } + return msg; +} +function i18n_328() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2800589603363346497$$MANY_I18N_ELEMENTS_TS_328 = + /* @ts-ignore */ + goog.getMsg("329"); + msg = MSG_EXTERNAL_2800589603363346497$$MANY_I18N_ELEMENTS_TS_328; + } else { + /* @ts-ignore */ + msg = $localize`329`; + } + return msg; +} +function i18n_329() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4513246497193300718$$MANY_I18N_ELEMENTS_TS_329 = + /* @ts-ignore */ + goog.getMsg("330"); + msg = MSG_EXTERNAL_4513246497193300718$$MANY_I18N_ELEMENTS_TS_329; + } else { + /* @ts-ignore */ + msg = $localize`330`; + } + return msg; +} +function i18n_330() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3578871923820296804$$MANY_I18N_ELEMENTS_TS_330 = + /* @ts-ignore */ + goog.getMsg("331"); + msg = MSG_EXTERNAL_3578871923820296804$$MANY_I18N_ELEMENTS_TS_330; + } else { + /* @ts-ignore */ + msg = $localize`331`; + } + return msg; +} +function i18n_331() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6316500056349083871$$MANY_I18N_ELEMENTS_TS_331 = + /* @ts-ignore */ + goog.getMsg("332"); + msg = MSG_EXTERNAL_6316500056349083871$$MANY_I18N_ELEMENTS_TS_331; + } else { + /* @ts-ignore */ + msg = $localize`332`; + } + return msg; +} +function i18n_332() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3391087084593129088$$MANY_I18N_ELEMENTS_TS_332 = + /* @ts-ignore */ + goog.getMsg("333"); + msg = MSG_EXTERNAL_3391087084593129088$$MANY_I18N_ELEMENTS_TS_332; + } else { + /* @ts-ignore */ + msg = $localize`333`; + } + return msg; +} +function i18n_333() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2063235090710431959$$MANY_I18N_ELEMENTS_TS_333 = + /* @ts-ignore */ + goog.getMsg("334"); + msg = MSG_EXTERNAL_2063235090710431959$$MANY_I18N_ELEMENTS_TS_333; + } else { + /* @ts-ignore */ + msg = $localize`334`; + } + return msg; +} +function i18n_334() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2482742303089540318$$MANY_I18N_ELEMENTS_TS_334 = + /* @ts-ignore */ + goog.getMsg("335"); + msg = MSG_EXTERNAL_2482742303089540318$$MANY_I18N_ELEMENTS_TS_334; + } else { + /* @ts-ignore */ + msg = $localize`335`; + } + return msg; +} +function i18n_335() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5162158917323765870$$MANY_I18N_ELEMENTS_TS_335 = + /* @ts-ignore */ + goog.getMsg("336"); + msg = MSG_EXTERNAL_5162158917323765870$$MANY_I18N_ELEMENTS_TS_335; + } else { + /* @ts-ignore */ + msg = $localize`336`; + } + return msg; +} +function i18n_336() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5769672761297280321$$MANY_I18N_ELEMENTS_TS_336 = + /* @ts-ignore */ + goog.getMsg("337"); + msg = MSG_EXTERNAL_5769672761297280321$$MANY_I18N_ELEMENTS_TS_336; + } else { + /* @ts-ignore */ + msg = $localize`337`; + } + return msg; +} +function i18n_337() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2784957313430035310$$MANY_I18N_ELEMENTS_TS_337 = + /* @ts-ignore */ + goog.getMsg("338"); + msg = MSG_EXTERNAL_2784957313430035310$$MANY_I18N_ELEMENTS_TS_337; + } else { + /* @ts-ignore */ + msg = $localize`338`; + } + return msg; +} +function i18n_338() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8874666690405093577$$MANY_I18N_ELEMENTS_TS_338 = + /* @ts-ignore */ + goog.getMsg("339"); + msg = MSG_EXTERNAL_8874666690405093577$$MANY_I18N_ELEMENTS_TS_338; + } else { + /* @ts-ignore */ + msg = $localize`339`; + } + return msg; +} +function i18n_339() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_935090379523618453$$MANY_I18N_ELEMENTS_TS_339 = + /* @ts-ignore */ + goog.getMsg("340"); + msg = MSG_EXTERNAL_935090379523618453$$MANY_I18N_ELEMENTS_TS_339; + } else { + /* @ts-ignore */ + msg = $localize`340`; + } + return msg; +} +function i18n_340() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8113565094684071864$$MANY_I18N_ELEMENTS_TS_340 = + /* @ts-ignore */ + goog.getMsg("341"); + msg = MSG_EXTERNAL_8113565094684071864$$MANY_I18N_ELEMENTS_TS_340; + } else { + /* @ts-ignore */ + msg = $localize`341`; + } + return msg; +} +function i18n_341() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7347780698064555606$$MANY_I18N_ELEMENTS_TS_341 = + /* @ts-ignore */ + goog.getMsg("342"); + msg = MSG_EXTERNAL_7347780698064555606$$MANY_I18N_ELEMENTS_TS_341; + } else { + /* @ts-ignore */ + msg = $localize`342`; + } + return msg; +} +function i18n_342() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9164977207367766213$$MANY_I18N_ELEMENTS_TS_342 = + /* @ts-ignore */ + goog.getMsg("343"); + msg = MSG_EXTERNAL_9164977207367766213$$MANY_I18N_ELEMENTS_TS_342; + } else { + /* @ts-ignore */ + msg = $localize`343`; + } + return msg; +} +function i18n_343() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8669513785995356237$$MANY_I18N_ELEMENTS_TS_343 = + /* @ts-ignore */ + goog.getMsg("344"); + msg = MSG_EXTERNAL_8669513785995356237$$MANY_I18N_ELEMENTS_TS_343; + } else { + /* @ts-ignore */ + msg = $localize`344`; + } + return msg; +} +function i18n_344() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4873775753575489482$$MANY_I18N_ELEMENTS_TS_344 = + /* @ts-ignore */ + goog.getMsg("345"); + msg = MSG_EXTERNAL_4873775753575489482$$MANY_I18N_ELEMENTS_TS_344; + } else { + /* @ts-ignore */ + msg = $localize`345`; + } + return msg; +} +function i18n_345() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2584131134230773290$$MANY_I18N_ELEMENTS_TS_345 = + /* @ts-ignore */ + goog.getMsg("346"); + msg = MSG_EXTERNAL_2584131134230773290$$MANY_I18N_ELEMENTS_TS_345; + } else { + /* @ts-ignore */ + msg = $localize`346`; + } + return msg; +} +function i18n_346() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7863867240119316070$$MANY_I18N_ELEMENTS_TS_346 = + /* @ts-ignore */ + goog.getMsg("347"); + msg = MSG_EXTERNAL_7863867240119316070$$MANY_I18N_ELEMENTS_TS_346; + } else { + /* @ts-ignore */ + msg = $localize`347`; + } + return msg; +} +function i18n_347() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4210690788002987094$$MANY_I18N_ELEMENTS_TS_347 = + /* @ts-ignore */ + goog.getMsg("348"); + msg = MSG_EXTERNAL_4210690788002987094$$MANY_I18N_ELEMENTS_TS_347; + } else { + /* @ts-ignore */ + msg = $localize`348`; + } + return msg; +} +function i18n_348() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9178091514962861068$$MANY_I18N_ELEMENTS_TS_348 = + /* @ts-ignore */ + goog.getMsg("349"); + msg = MSG_EXTERNAL_9178091514962861068$$MANY_I18N_ELEMENTS_TS_348; + } else { + /* @ts-ignore */ + msg = $localize`349`; + } + return msg; +} +function i18n_349() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1333369325892082284$$MANY_I18N_ELEMENTS_TS_349 = + /* @ts-ignore */ + goog.getMsg("350"); + msg = MSG_EXTERNAL_1333369325892082284$$MANY_I18N_ELEMENTS_TS_349; + } else { + /* @ts-ignore */ + msg = $localize`350`; + } + return msg; +} +function i18n_350() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5551739636356005303$$MANY_I18N_ELEMENTS_TS_350 = + /* @ts-ignore */ + goog.getMsg("351"); + msg = MSG_EXTERNAL_5551739636356005303$$MANY_I18N_ELEMENTS_TS_350; + } else { + /* @ts-ignore */ + msg = $localize`351`; + } + return msg; +} +function i18n_351() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9147502396042711671$$MANY_I18N_ELEMENTS_TS_351 = + /* @ts-ignore */ + goog.getMsg("352"); + msg = MSG_EXTERNAL_9147502396042711671$$MANY_I18N_ELEMENTS_TS_351; + } else { + /* @ts-ignore */ + msg = $localize`352`; + } + return msg; +} +function i18n_352() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1259684327682045112$$MANY_I18N_ELEMENTS_TS_352 = + /* @ts-ignore */ + goog.getMsg("353"); + msg = MSG_EXTERNAL_1259684327682045112$$MANY_I18N_ELEMENTS_TS_352; + } else { + /* @ts-ignore */ + msg = $localize`353`; + } + return msg; +} +function i18n_353() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7157861862371322544$$MANY_I18N_ELEMENTS_TS_353 = + /* @ts-ignore */ + goog.getMsg("354"); + msg = MSG_EXTERNAL_7157861862371322544$$MANY_I18N_ELEMENTS_TS_353; + } else { + /* @ts-ignore */ + msg = $localize`354`; + } + return msg; +} +function i18n_354() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1938690226369786433$$MANY_I18N_ELEMENTS_TS_354 = + /* @ts-ignore */ + goog.getMsg("355"); + msg = MSG_EXTERNAL_1938690226369786433$$MANY_I18N_ELEMENTS_TS_354; + } else { + /* @ts-ignore */ + msg = $localize`355`; + } + return msg; +} +function i18n_355() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6286284605248468629$$MANY_I18N_ELEMENTS_TS_355 = + /* @ts-ignore */ + goog.getMsg("356"); + msg = MSG_EXTERNAL_6286284605248468629$$MANY_I18N_ELEMENTS_TS_355; + } else { + /* @ts-ignore */ + msg = $localize`356`; + } + return msg; +} +function i18n_356() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7431762882366675654$$MANY_I18N_ELEMENTS_TS_356 = + /* @ts-ignore */ + goog.getMsg("357"); + msg = MSG_EXTERNAL_7431762882366675654$$MANY_I18N_ELEMENTS_TS_356; + } else { + /* @ts-ignore */ + msg = $localize`357`; + } + return msg; +} +function i18n_357() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_326752455087679366$$MANY_I18N_ELEMENTS_TS_357 = + /* @ts-ignore */ + goog.getMsg("358"); + msg = MSG_EXTERNAL_326752455087679366$$MANY_I18N_ELEMENTS_TS_357; + } else { + /* @ts-ignore */ + msg = $localize`358`; + } + return msg; +} +function i18n_358() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1241432090351907772$$MANY_I18N_ELEMENTS_TS_358 = + /* @ts-ignore */ + goog.getMsg("359"); + msg = MSG_EXTERNAL_1241432090351907772$$MANY_I18N_ELEMENTS_TS_358; + } else { + /* @ts-ignore */ + msg = $localize`359`; + } + return msg; +} +function i18n_359() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_80903839980443886$$MANY_I18N_ELEMENTS_TS_359 = + /* @ts-ignore */ + goog.getMsg("360"); + msg = MSG_EXTERNAL_80903839980443886$$MANY_I18N_ELEMENTS_TS_359; + } else { + /* @ts-ignore */ + msg = $localize`360`; + } + return msg; +} +function i18n_360() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_917312687897952273$$MANY_I18N_ELEMENTS_TS_360 = + /* @ts-ignore */ + goog.getMsg("361"); + msg = MSG_EXTERNAL_917312687897952273$$MANY_I18N_ELEMENTS_TS_360; + } else { + /* @ts-ignore */ + msg = $localize`361`; + } + return msg; +} +function i18n_361() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3877997868038550263$$MANY_I18N_ELEMENTS_TS_361 = + /* @ts-ignore */ + goog.getMsg("362"); + msg = MSG_EXTERNAL_3877997868038550263$$MANY_I18N_ELEMENTS_TS_361; + } else { + /* @ts-ignore */ + msg = $localize`362`; + } + return msg; +} +function i18n_362() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5906686442141602269$$MANY_I18N_ELEMENTS_TS_362 = + /* @ts-ignore */ + goog.getMsg("363"); + msg = MSG_EXTERNAL_5906686442141602269$$MANY_I18N_ELEMENTS_TS_362; + } else { + /* @ts-ignore */ + msg = $localize`363`; + } + return msg; +} +function i18n_363() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6509023228361756477$$MANY_I18N_ELEMENTS_TS_363 = + /* @ts-ignore */ + goog.getMsg("364"); + msg = MSG_EXTERNAL_6509023228361756477$$MANY_I18N_ELEMENTS_TS_363; + } else { + /* @ts-ignore */ + msg = $localize`364`; + } + return msg; +} +function i18n_364() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3930788383443413009$$MANY_I18N_ELEMENTS_TS_364 = + /* @ts-ignore */ + goog.getMsg("365"); + msg = MSG_EXTERNAL_3930788383443413009$$MANY_I18N_ELEMENTS_TS_364; + } else { + /* @ts-ignore */ + msg = $localize`365`; + } + return msg; +} +function i18n_365() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3405799275797767089$$MANY_I18N_ELEMENTS_TS_365 = + /* @ts-ignore */ + goog.getMsg("366"); + msg = MSG_EXTERNAL_3405799275797767089$$MANY_I18N_ELEMENTS_TS_365; + } else { + /* @ts-ignore */ + msg = $localize`366`; + } + return msg; +} +function i18n_366() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4279832540609303283$$MANY_I18N_ELEMENTS_TS_366 = + /* @ts-ignore */ + goog.getMsg("367"); + msg = MSG_EXTERNAL_4279832540609303283$$MANY_I18N_ELEMENTS_TS_366; + } else { + /* @ts-ignore */ + msg = $localize`367`; + } + return msg; +} +function i18n_367() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1784676769567433878$$MANY_I18N_ELEMENTS_TS_367 = + /* @ts-ignore */ + goog.getMsg("368"); + msg = MSG_EXTERNAL_1784676769567433878$$MANY_I18N_ELEMENTS_TS_367; + } else { + /* @ts-ignore */ + msg = $localize`368`; + } + return msg; +} +function i18n_368() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4543017341636737542$$MANY_I18N_ELEMENTS_TS_368 = + /* @ts-ignore */ + goog.getMsg("369"); + msg = MSG_EXTERNAL_4543017341636737542$$MANY_I18N_ELEMENTS_TS_368; + } else { + /* @ts-ignore */ + msg = $localize`369`; + } + return msg; +} +function i18n_369() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3020982533916043189$$MANY_I18N_ELEMENTS_TS_369 = + /* @ts-ignore */ + goog.getMsg("370"); + msg = MSG_EXTERNAL_3020982533916043189$$MANY_I18N_ELEMENTS_TS_369; + } else { + /* @ts-ignore */ + msg = $localize`370`; + } + return msg; +} +function i18n_370() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4873737995762607135$$MANY_I18N_ELEMENTS_TS_370 = + /* @ts-ignore */ + goog.getMsg("371"); + msg = MSG_EXTERNAL_4873737995762607135$$MANY_I18N_ELEMENTS_TS_370; + } else { + /* @ts-ignore */ + msg = $localize`371`; + } + return msg; +} +function i18n_371() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8738979303167075215$$MANY_I18N_ELEMENTS_TS_371 = + /* @ts-ignore */ + goog.getMsg("372"); + msg = MSG_EXTERNAL_8738979303167075215$$MANY_I18N_ELEMENTS_TS_371; + } else { + /* @ts-ignore */ + msg = $localize`372`; + } + return msg; +} +function i18n_372() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9117957765200203372$$MANY_I18N_ELEMENTS_TS_372 = + /* @ts-ignore */ + goog.getMsg("373"); + msg = MSG_EXTERNAL_9117957765200203372$$MANY_I18N_ELEMENTS_TS_372; + } else { + /* @ts-ignore */ + msg = $localize`373`; + } + return msg; +} +function i18n_373() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5679862029202283976$$MANY_I18N_ELEMENTS_TS_373 = + /* @ts-ignore */ + goog.getMsg("374"); + msg = MSG_EXTERNAL_5679862029202283976$$MANY_I18N_ELEMENTS_TS_373; + } else { + /* @ts-ignore */ + msg = $localize`374`; + } + return msg; +} +function i18n_374() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4516847914489029566$$MANY_I18N_ELEMENTS_TS_374 = + /* @ts-ignore */ + goog.getMsg("375"); + msg = MSG_EXTERNAL_4516847914489029566$$MANY_I18N_ELEMENTS_TS_374; + } else { + /* @ts-ignore */ + msg = $localize`375`; + } + return msg; +} +function i18n_375() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4441796907455588665$$MANY_I18N_ELEMENTS_TS_375 = + /* @ts-ignore */ + goog.getMsg("376"); + msg = MSG_EXTERNAL_4441796907455588665$$MANY_I18N_ELEMENTS_TS_375; + } else { + /* @ts-ignore */ + msg = $localize`376`; + } + return msg; +} +function i18n_376() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3907635634063395131$$MANY_I18N_ELEMENTS_TS_376 = + /* @ts-ignore */ + goog.getMsg("377"); + msg = MSG_EXTERNAL_3907635634063395131$$MANY_I18N_ELEMENTS_TS_376; + } else { + /* @ts-ignore */ + msg = $localize`377`; + } + return msg; +} +function i18n_377() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4365561749399560162$$MANY_I18N_ELEMENTS_TS_377 = + /* @ts-ignore */ + goog.getMsg("378"); + msg = MSG_EXTERNAL_4365561749399560162$$MANY_I18N_ELEMENTS_TS_377; + } else { + /* @ts-ignore */ + msg = $localize`378`; + } + return msg; +} +function i18n_378() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_949702201542680085$$MANY_I18N_ELEMENTS_TS_378 = + /* @ts-ignore */ + goog.getMsg("379"); + msg = MSG_EXTERNAL_949702201542680085$$MANY_I18N_ELEMENTS_TS_378; + } else { + /* @ts-ignore */ + msg = $localize`379`; + } + return msg; +} +function i18n_379() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3365892817323149662$$MANY_I18N_ELEMENTS_TS_379 = + /* @ts-ignore */ + goog.getMsg("380"); + msg = MSG_EXTERNAL_3365892817323149662$$MANY_I18N_ELEMENTS_TS_379; + } else { + /* @ts-ignore */ + msg = $localize`380`; + } + return msg; +} +function i18n_380() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3634293322949168735$$MANY_I18N_ELEMENTS_TS_380 = + /* @ts-ignore */ + goog.getMsg("381"); + msg = MSG_EXTERNAL_3634293322949168735$$MANY_I18N_ELEMENTS_TS_380; + } else { + /* @ts-ignore */ + msg = $localize`381`; + } + return msg; +} +function i18n_381() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2529285047105507220$$MANY_I18N_ELEMENTS_TS_381 = + /* @ts-ignore */ + goog.getMsg("382"); + msg = MSG_EXTERNAL_2529285047105507220$$MANY_I18N_ELEMENTS_TS_381; + } else { + /* @ts-ignore */ + msg = $localize`382`; + } + return msg; +} +function i18n_382() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_926905113230773536$$MANY_I18N_ELEMENTS_TS_382 = + /* @ts-ignore */ + goog.getMsg("383"); + msg = MSG_EXTERNAL_926905113230773536$$MANY_I18N_ELEMENTS_TS_382; + } else { + /* @ts-ignore */ + msg = $localize`383`; + } + return msg; +} +function i18n_383() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1432819600262916613$$MANY_I18N_ELEMENTS_TS_383 = + /* @ts-ignore */ + goog.getMsg("384"); + msg = MSG_EXTERNAL_1432819600262916613$$MANY_I18N_ELEMENTS_TS_383; + } else { + /* @ts-ignore */ + msg = $localize`384`; + } + return msg; +} +function i18n_384() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1270888288481880494$$MANY_I18N_ELEMENTS_TS_384 = + /* @ts-ignore */ + goog.getMsg("385"); + msg = MSG_EXTERNAL_1270888288481880494$$MANY_I18N_ELEMENTS_TS_384; + } else { + /* @ts-ignore */ + msg = $localize`385`; + } + return msg; +} +function i18n_385() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8451854227740074960$$MANY_I18N_ELEMENTS_TS_385 = + /* @ts-ignore */ + goog.getMsg("386"); + msg = MSG_EXTERNAL_8451854227740074960$$MANY_I18N_ELEMENTS_TS_385; + } else { + /* @ts-ignore */ + msg = $localize`386`; + } + return msg; +} +function i18n_386() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_790141988470651309$$MANY_I18N_ELEMENTS_TS_386 = + /* @ts-ignore */ + goog.getMsg("387"); + msg = MSG_EXTERNAL_790141988470651309$$MANY_I18N_ELEMENTS_TS_386; + } else { + /* @ts-ignore */ + msg = $localize`387`; + } + return msg; +} +function i18n_387() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5265604424934261226$$MANY_I18N_ELEMENTS_TS_387 = + /* @ts-ignore */ + goog.getMsg("388"); + msg = MSG_EXTERNAL_5265604424934261226$$MANY_I18N_ELEMENTS_TS_387; + } else { + /* @ts-ignore */ + msg = $localize`388`; + } + return msg; +} +function i18n_388() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1694421464299599027$$MANY_I18N_ELEMENTS_TS_388 = + /* @ts-ignore */ + goog.getMsg("389"); + msg = MSG_EXTERNAL_1694421464299599027$$MANY_I18N_ELEMENTS_TS_388; + } else { + /* @ts-ignore */ + msg = $localize`389`; + } + return msg; +} +function i18n_389() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_15844132517572955$$MANY_I18N_ELEMENTS_TS_389 = + /* @ts-ignore */ + goog.getMsg("390"); + msg = MSG_EXTERNAL_15844132517572955$$MANY_I18N_ELEMENTS_TS_389; + } else { + /* @ts-ignore */ + msg = $localize`390`; + } + return msg; +} +function i18n_390() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4021044151101122565$$MANY_I18N_ELEMENTS_TS_390 = + /* @ts-ignore */ + goog.getMsg("391"); + msg = MSG_EXTERNAL_4021044151101122565$$MANY_I18N_ELEMENTS_TS_390; + } else { + /* @ts-ignore */ + msg = $localize`391`; + } + return msg; +} +function i18n_391() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1193259435863177566$$MANY_I18N_ELEMENTS_TS_391 = + /* @ts-ignore */ + goog.getMsg("392"); + msg = MSG_EXTERNAL_1193259435863177566$$MANY_I18N_ELEMENTS_TS_391; + } else { + /* @ts-ignore */ + msg = $localize`392`; + } + return msg; +} +function i18n_392() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_872620878797557063$$MANY_I18N_ELEMENTS_TS_392 = + /* @ts-ignore */ + goog.getMsg("393"); + msg = MSG_EXTERNAL_872620878797557063$$MANY_I18N_ELEMENTS_TS_392; + } else { + /* @ts-ignore */ + msg = $localize`393`; + } + return msg; +} +function i18n_393() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5292870954998330982$$MANY_I18N_ELEMENTS_TS_393 = + /* @ts-ignore */ + goog.getMsg("394"); + msg = MSG_EXTERNAL_5292870954998330982$$MANY_I18N_ELEMENTS_TS_393; + } else { + /* @ts-ignore */ + msg = $localize`394`; + } + return msg; +} +function i18n_394() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1636817310111771403$$MANY_I18N_ELEMENTS_TS_394 = + /* @ts-ignore */ + goog.getMsg("395"); + msg = MSG_EXTERNAL_1636817310111771403$$MANY_I18N_ELEMENTS_TS_394; + } else { + /* @ts-ignore */ + msg = $localize`395`; + } + return msg; +} +function i18n_395() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7625386057800960770$$MANY_I18N_ELEMENTS_TS_395 = + /* @ts-ignore */ + goog.getMsg("396"); + msg = MSG_EXTERNAL_7625386057800960770$$MANY_I18N_ELEMENTS_TS_395; + } else { + /* @ts-ignore */ + msg = $localize`396`; + } + return msg; +} +function i18n_396() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6466801551592024728$$MANY_I18N_ELEMENTS_TS_396 = + /* @ts-ignore */ + goog.getMsg("397"); + msg = MSG_EXTERNAL_6466801551592024728$$MANY_I18N_ELEMENTS_TS_396; + } else { + /* @ts-ignore */ + msg = $localize`397`; + } + return msg; +} +function i18n_397() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4090749509619070918$$MANY_I18N_ELEMENTS_TS_397 = + /* @ts-ignore */ + goog.getMsg("398"); + msg = MSG_EXTERNAL_4090749509619070918$$MANY_I18N_ELEMENTS_TS_397; + } else { + /* @ts-ignore */ + msg = $localize`398`; + } + return msg; +} +function i18n_398() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2341346183346723426$$MANY_I18N_ELEMENTS_TS_398 = + /* @ts-ignore */ + goog.getMsg("399"); + msg = MSG_EXTERNAL_2341346183346723426$$MANY_I18N_ELEMENTS_TS_398; + } else { + /* @ts-ignore */ + msg = $localize`399`; + } + return msg; +} +function i18n_399() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3874653915323545866$$MANY_I18N_ELEMENTS_TS_399 = + /* @ts-ignore */ + goog.getMsg("400"); + msg = MSG_EXTERNAL_3874653915323545866$$MANY_I18N_ELEMENTS_TS_399; + } else { + /* @ts-ignore */ + msg = $localize`400`; + } + return msg; +} +function i18n_400() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1843700032600803002$$MANY_I18N_ELEMENTS_TS_400 = + /* @ts-ignore */ + goog.getMsg("401"); + msg = MSG_EXTERNAL_1843700032600803002$$MANY_I18N_ELEMENTS_TS_400; + } else { + /* @ts-ignore */ + msg = $localize`401`; + } + return msg; +} +function i18n_401() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_458220479161526417$$MANY_I18N_ELEMENTS_TS_401 = + /* @ts-ignore */ + goog.getMsg("402"); + msg = MSG_EXTERNAL_458220479161526417$$MANY_I18N_ELEMENTS_TS_401; + } else { + /* @ts-ignore */ + msg = $localize`402`; + } + return msg; +} +function i18n_402() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4713357405604523613$$MANY_I18N_ELEMENTS_TS_402 = + /* @ts-ignore */ + goog.getMsg("403"); + msg = MSG_EXTERNAL_4713357405604523613$$MANY_I18N_ELEMENTS_TS_402; + } else { + /* @ts-ignore */ + msg = $localize`403`; + } + return msg; +} +function i18n_403() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2471041631220366258$$MANY_I18N_ELEMENTS_TS_403 = + /* @ts-ignore */ + goog.getMsg("404"); + msg = MSG_EXTERNAL_2471041631220366258$$MANY_I18N_ELEMENTS_TS_403; + } else { + /* @ts-ignore */ + msg = $localize`404`; + } + return msg; +} +function i18n_404() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6486164534282805873$$MANY_I18N_ELEMENTS_TS_404 = + /* @ts-ignore */ + goog.getMsg("405"); + msg = MSG_EXTERNAL_6486164534282805873$$MANY_I18N_ELEMENTS_TS_404; + } else { + /* @ts-ignore */ + msg = $localize`405`; + } + return msg; +} +function i18n_405() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6819581998637626014$$MANY_I18N_ELEMENTS_TS_405 = + /* @ts-ignore */ + goog.getMsg("406"); + msg = MSG_EXTERNAL_6819581998637626014$$MANY_I18N_ELEMENTS_TS_405; + } else { + /* @ts-ignore */ + msg = $localize`406`; + } + return msg; +} +function i18n_406() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5276452883320122441$$MANY_I18N_ELEMENTS_TS_406 = + /* @ts-ignore */ + goog.getMsg("407"); + msg = MSG_EXTERNAL_5276452883320122441$$MANY_I18N_ELEMENTS_TS_406; + } else { + /* @ts-ignore */ + msg = $localize`407`; + } + return msg; +} +function i18n_407() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6783701698921606852$$MANY_I18N_ELEMENTS_TS_407 = + /* @ts-ignore */ + goog.getMsg("408"); + msg = MSG_EXTERNAL_6783701698921606852$$MANY_I18N_ELEMENTS_TS_407; + } else { + /* @ts-ignore */ + msg = $localize`408`; + } + return msg; +} +function i18n_408() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8925984458999345001$$MANY_I18N_ELEMENTS_TS_408 = + /* @ts-ignore */ + goog.getMsg("409"); + msg = MSG_EXTERNAL_8925984458999345001$$MANY_I18N_ELEMENTS_TS_408; + } else { + /* @ts-ignore */ + msg = $localize`409`; + } + return msg; +} +function i18n_409() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4604709441534274224$$MANY_I18N_ELEMENTS_TS_409 = + /* @ts-ignore */ + goog.getMsg("410"); + msg = MSG_EXTERNAL_4604709441534274224$$MANY_I18N_ELEMENTS_TS_409; + } else { + /* @ts-ignore */ + msg = $localize`410`; + } + return msg; +} +function i18n_410() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_436252719647546904$$MANY_I18N_ELEMENTS_TS_410 = + /* @ts-ignore */ + goog.getMsg("411"); + msg = MSG_EXTERNAL_436252719647546904$$MANY_I18N_ELEMENTS_TS_410; + } else { + /* @ts-ignore */ + msg = $localize`411`; + } + return msg; +} +function i18n_411() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8705184226807970030$$MANY_I18N_ELEMENTS_TS_411 = + /* @ts-ignore */ + goog.getMsg("412"); + msg = MSG_EXTERNAL_8705184226807970030$$MANY_I18N_ELEMENTS_TS_411; + } else { + /* @ts-ignore */ + msg = $localize`412`; + } + return msg; +} +function i18n_412() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3860648477988585096$$MANY_I18N_ELEMENTS_TS_412 = + /* @ts-ignore */ + goog.getMsg("413"); + msg = MSG_EXTERNAL_3860648477988585096$$MANY_I18N_ELEMENTS_TS_412; + } else { + /* @ts-ignore */ + msg = $localize`413`; + } + return msg; +} +function i18n_413() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8756129745740284323$$MANY_I18N_ELEMENTS_TS_413 = + /* @ts-ignore */ + goog.getMsg("414"); + msg = MSG_EXTERNAL_8756129745740284323$$MANY_I18N_ELEMENTS_TS_413; + } else { + /* @ts-ignore */ + msg = $localize`414`; + } + return msg; +} +function i18n_414() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2259005633110458891$$MANY_I18N_ELEMENTS_TS_414 = + /* @ts-ignore */ + goog.getMsg("415"); + msg = MSG_EXTERNAL_2259005633110458891$$MANY_I18N_ELEMENTS_TS_414; + } else { + /* @ts-ignore */ + msg = $localize`415`; + } + return msg; +} +function i18n_415() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6297356832977260539$$MANY_I18N_ELEMENTS_TS_415 = + /* @ts-ignore */ + goog.getMsg("416"); + msg = MSG_EXTERNAL_6297356832977260539$$MANY_I18N_ELEMENTS_TS_415; + } else { + /* @ts-ignore */ + msg = $localize`416`; + } + return msg; +} +function i18n_416() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5257601026255727235$$MANY_I18N_ELEMENTS_TS_416 = + /* @ts-ignore */ + goog.getMsg("417"); + msg = MSG_EXTERNAL_5257601026255727235$$MANY_I18N_ELEMENTS_TS_416; + } else { + /* @ts-ignore */ + msg = $localize`417`; + } + return msg; +} +function i18n_417() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_348701408260791859$$MANY_I18N_ELEMENTS_TS_417 = + /* @ts-ignore */ + goog.getMsg("418"); + msg = MSG_EXTERNAL_348701408260791859$$MANY_I18N_ELEMENTS_TS_417; + } else { + /* @ts-ignore */ + msg = $localize`418`; + } + return msg; +} +function i18n_418() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8563312178107008141$$MANY_I18N_ELEMENTS_TS_418 = + /* @ts-ignore */ + goog.getMsg("419"); + msg = MSG_EXTERNAL_8563312178107008141$$MANY_I18N_ELEMENTS_TS_418; + } else { + /* @ts-ignore */ + msg = $localize`419`; + } + return msg; +} +function i18n_419() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8828659748644128358$$MANY_I18N_ELEMENTS_TS_419 = + /* @ts-ignore */ + goog.getMsg("420"); + msg = MSG_EXTERNAL_8828659748644128358$$MANY_I18N_ELEMENTS_TS_419; + } else { + /* @ts-ignore */ + msg = $localize`420`; + } + return msg; +} +function i18n_420() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7418638874667553263$$MANY_I18N_ELEMENTS_TS_420 = + /* @ts-ignore */ + goog.getMsg("421"); + msg = MSG_EXTERNAL_7418638874667553263$$MANY_I18N_ELEMENTS_TS_420; + } else { + /* @ts-ignore */ + msg = $localize`421`; + } + return msg; +} +function i18n_421() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3463680069853813968$$MANY_I18N_ELEMENTS_TS_421 = + /* @ts-ignore */ + goog.getMsg("422"); + msg = MSG_EXTERNAL_3463680069853813968$$MANY_I18N_ELEMENTS_TS_421; + } else { + /* @ts-ignore */ + msg = $localize`422`; + } + return msg; +} +function i18n_422() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5557587980926870550$$MANY_I18N_ELEMENTS_TS_422 = + /* @ts-ignore */ + goog.getMsg("423"); + msg = MSG_EXTERNAL_5557587980926870550$$MANY_I18N_ELEMENTS_TS_422; + } else { + /* @ts-ignore */ + msg = $localize`423`; + } + return msg; +} +function i18n_423() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5848122953433083139$$MANY_I18N_ELEMENTS_TS_423 = + /* @ts-ignore */ + goog.getMsg("424"); + msg = MSG_EXTERNAL_5848122953433083139$$MANY_I18N_ELEMENTS_TS_423; + } else { + /* @ts-ignore */ + msg = $localize`424`; + } + return msg; +} +function i18n_424() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7664792886964347485$$MANY_I18N_ELEMENTS_TS_424 = + /* @ts-ignore */ + goog.getMsg("425"); + msg = MSG_EXTERNAL_7664792886964347485$$MANY_I18N_ELEMENTS_TS_424; + } else { + /* @ts-ignore */ + msg = $localize`425`; + } + return msg; +} +function i18n_425() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2688839558013919771$$MANY_I18N_ELEMENTS_TS_425 = + /* @ts-ignore */ + goog.getMsg("426"); + msg = MSG_EXTERNAL_2688839558013919771$$MANY_I18N_ELEMENTS_TS_425; + } else { + /* @ts-ignore */ + msg = $localize`426`; + } + return msg; +} +function i18n_426() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1706206539592990372$$MANY_I18N_ELEMENTS_TS_426 = + /* @ts-ignore */ + goog.getMsg("427"); + msg = MSG_EXTERNAL_1706206539592990372$$MANY_I18N_ELEMENTS_TS_426; + } else { + /* @ts-ignore */ + msg = $localize`427`; + } + return msg; +} +function i18n_427() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4660064108942333661$$MANY_I18N_ELEMENTS_TS_427 = + /* @ts-ignore */ + goog.getMsg("428"); + msg = MSG_EXTERNAL_4660064108942333661$$MANY_I18N_ELEMENTS_TS_427; + } else { + /* @ts-ignore */ + msg = $localize`428`; + } + return msg; +} +function i18n_428() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6104649384367343631$$MANY_I18N_ELEMENTS_TS_428 = + /* @ts-ignore */ + goog.getMsg("429"); + msg = MSG_EXTERNAL_6104649384367343631$$MANY_I18N_ELEMENTS_TS_428; + } else { + /* @ts-ignore */ + msg = $localize`429`; + } + return msg; +} +function i18n_429() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7737440796999007159$$MANY_I18N_ELEMENTS_TS_429 = + /* @ts-ignore */ + goog.getMsg("430"); + msg = MSG_EXTERNAL_7737440796999007159$$MANY_I18N_ELEMENTS_TS_429; + } else { + /* @ts-ignore */ + msg = $localize`430`; + } + return msg; +} +function i18n_430() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3225010897743746974$$MANY_I18N_ELEMENTS_TS_430 = + /* @ts-ignore */ + goog.getMsg("431"); + msg = MSG_EXTERNAL_3225010897743746974$$MANY_I18N_ELEMENTS_TS_430; + } else { + /* @ts-ignore */ + msg = $localize`431`; + } + return msg; +} +function i18n_431() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3182815079845287682$$MANY_I18N_ELEMENTS_TS_431 = + /* @ts-ignore */ + goog.getMsg("432"); + msg = MSG_EXTERNAL_3182815079845287682$$MANY_I18N_ELEMENTS_TS_431; + } else { + /* @ts-ignore */ + msg = $localize`432`; + } + return msg; +} +function i18n_432() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2326696770287613439$$MANY_I18N_ELEMENTS_TS_432 = + /* @ts-ignore */ + goog.getMsg("433"); + msg = MSG_EXTERNAL_2326696770287613439$$MANY_I18N_ELEMENTS_TS_432; + } else { + /* @ts-ignore */ + msg = $localize`433`; + } + return msg; +} +function i18n_433() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8492696513930948646$$MANY_I18N_ELEMENTS_TS_433 = + /* @ts-ignore */ + goog.getMsg("434"); + msg = MSG_EXTERNAL_8492696513930948646$$MANY_I18N_ELEMENTS_TS_433; + } else { + /* @ts-ignore */ + msg = $localize`434`; + } + return msg; +} +function i18n_434() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6317681190155857413$$MANY_I18N_ELEMENTS_TS_434 = + /* @ts-ignore */ + goog.getMsg("435"); + msg = MSG_EXTERNAL_6317681190155857413$$MANY_I18N_ELEMENTS_TS_434; + } else { + /* @ts-ignore */ + msg = $localize`435`; + } + return msg; +} +function i18n_435() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7660807974473729612$$MANY_I18N_ELEMENTS_TS_435 = + /* @ts-ignore */ + goog.getMsg("436"); + msg = MSG_EXTERNAL_7660807974473729612$$MANY_I18N_ELEMENTS_TS_435; + } else { + /* @ts-ignore */ + msg = $localize`436`; + } + return msg; +} +function i18n_436() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_74362144241773445$$MANY_I18N_ELEMENTS_TS_436 = + /* @ts-ignore */ + goog.getMsg("437"); + msg = MSG_EXTERNAL_74362144241773445$$MANY_I18N_ELEMENTS_TS_436; + } else { + /* @ts-ignore */ + msg = $localize`437`; + } + return msg; +} +function i18n_437() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_488472584401838657$$MANY_I18N_ELEMENTS_TS_437 = + /* @ts-ignore */ + goog.getMsg("438"); + msg = MSG_EXTERNAL_488472584401838657$$MANY_I18N_ELEMENTS_TS_437; + } else { + /* @ts-ignore */ + msg = $localize`438`; + } + return msg; +} +function i18n_438() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_552563452819940466$$MANY_I18N_ELEMENTS_TS_438 = + /* @ts-ignore */ + goog.getMsg("439"); + msg = MSG_EXTERNAL_552563452819940466$$MANY_I18N_ELEMENTS_TS_438; + } else { + /* @ts-ignore */ + msg = $localize`439`; + } + return msg; +} +function i18n_439() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4084550219000858645$$MANY_I18N_ELEMENTS_TS_439 = + /* @ts-ignore */ + goog.getMsg("440"); + msg = MSG_EXTERNAL_4084550219000858645$$MANY_I18N_ELEMENTS_TS_439; + } else { + /* @ts-ignore */ + msg = $localize`440`; + } + return msg; +} +function i18n_440() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1067806993226250194$$MANY_I18N_ELEMENTS_TS_440 = + /* @ts-ignore */ + goog.getMsg("441"); + msg = MSG_EXTERNAL_1067806993226250194$$MANY_I18N_ELEMENTS_TS_440; + } else { + /* @ts-ignore */ + msg = $localize`441`; + } + return msg; +} +function i18n_441() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4998716130417638751$$MANY_I18N_ELEMENTS_TS_441 = + /* @ts-ignore */ + goog.getMsg("442"); + msg = MSG_EXTERNAL_4998716130417638751$$MANY_I18N_ELEMENTS_TS_441; + } else { + /* @ts-ignore */ + msg = $localize`442`; + } + return msg; +} +function i18n_442() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5392015505051988299$$MANY_I18N_ELEMENTS_TS_442 = + /* @ts-ignore */ + goog.getMsg("443"); + msg = MSG_EXTERNAL_5392015505051988299$$MANY_I18N_ELEMENTS_TS_442; + } else { + /* @ts-ignore */ + msg = $localize`443`; + } + return msg; +} +function i18n_443() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_715736212316944723$$MANY_I18N_ELEMENTS_TS_443 = + /* @ts-ignore */ + goog.getMsg("444"); + msg = MSG_EXTERNAL_715736212316944723$$MANY_I18N_ELEMENTS_TS_443; + } else { + /* @ts-ignore */ + msg = $localize`444`; + } + return msg; +} +function i18n_444() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6395101903275524629$$MANY_I18N_ELEMENTS_TS_444 = + /* @ts-ignore */ + goog.getMsg("445"); + msg = MSG_EXTERNAL_6395101903275524629$$MANY_I18N_ELEMENTS_TS_444; + } else { + /* @ts-ignore */ + msg = $localize`445`; + } + return msg; +} +function i18n_445() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3531019757116929875$$MANY_I18N_ELEMENTS_TS_445 = + /* @ts-ignore */ + goog.getMsg("446"); + msg = MSG_EXTERNAL_3531019757116929875$$MANY_I18N_ELEMENTS_TS_445; + } else { + /* @ts-ignore */ + msg = $localize`446`; + } + return msg; +} +function i18n_446() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6019822332440397413$$MANY_I18N_ELEMENTS_TS_446 = + /* @ts-ignore */ + goog.getMsg("447"); + msg = MSG_EXTERNAL_6019822332440397413$$MANY_I18N_ELEMENTS_TS_446; + } else { + /* @ts-ignore */ + msg = $localize`447`; + } + return msg; +} +function i18n_447() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5164081812905744326$$MANY_I18N_ELEMENTS_TS_447 = + /* @ts-ignore */ + goog.getMsg("448"); + msg = MSG_EXTERNAL_5164081812905744326$$MANY_I18N_ELEMENTS_TS_447; + } else { + /* @ts-ignore */ + msg = $localize`448`; + } + return msg; +} +function i18n_448() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5779964790992439971$$MANY_I18N_ELEMENTS_TS_448 = + /* @ts-ignore */ + goog.getMsg("449"); + msg = MSG_EXTERNAL_5779964790992439971$$MANY_I18N_ELEMENTS_TS_448; + } else { + /* @ts-ignore */ + msg = $localize`449`; + } + return msg; +} +function i18n_449() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3653361849389120520$$MANY_I18N_ELEMENTS_TS_449 = + /* @ts-ignore */ + goog.getMsg("450"); + msg = MSG_EXTERNAL_3653361849389120520$$MANY_I18N_ELEMENTS_TS_449; + } else { + /* @ts-ignore */ + msg = $localize`450`; + } + return msg; +} +function i18n_450() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_158738304617273727$$MANY_I18N_ELEMENTS_TS_450 = + /* @ts-ignore */ + goog.getMsg("451"); + msg = MSG_EXTERNAL_158738304617273727$$MANY_I18N_ELEMENTS_TS_450; + } else { + /* @ts-ignore */ + msg = $localize`451`; + } + return msg; +} +function i18n_451() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7672844123976822285$$MANY_I18N_ELEMENTS_TS_451 = + /* @ts-ignore */ + goog.getMsg("452"); + msg = MSG_EXTERNAL_7672844123976822285$$MANY_I18N_ELEMENTS_TS_451; + } else { + /* @ts-ignore */ + msg = $localize`452`; + } + return msg; +} +function i18n_452() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5717238977563594277$$MANY_I18N_ELEMENTS_TS_452 = + /* @ts-ignore */ + goog.getMsg("453"); + msg = MSG_EXTERNAL_5717238977563594277$$MANY_I18N_ELEMENTS_TS_452; + } else { + /* @ts-ignore */ + msg = $localize`453`; + } + return msg; +} +function i18n_453() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9154236628483440418$$MANY_I18N_ELEMENTS_TS_453 = + /* @ts-ignore */ + goog.getMsg("454"); + msg = MSG_EXTERNAL_9154236628483440418$$MANY_I18N_ELEMENTS_TS_453; + } else { + /* @ts-ignore */ + msg = $localize`454`; + } + return msg; +} +function i18n_454() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6356033488300782784$$MANY_I18N_ELEMENTS_TS_454 = + /* @ts-ignore */ + goog.getMsg("455"); + msg = MSG_EXTERNAL_6356033488300782784$$MANY_I18N_ELEMENTS_TS_454; + } else { + /* @ts-ignore */ + msg = $localize`455`; + } + return msg; +} +function i18n_455() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8672294012568036592$$MANY_I18N_ELEMENTS_TS_455 = + /* @ts-ignore */ + goog.getMsg("456"); + msg = MSG_EXTERNAL_8672294012568036592$$MANY_I18N_ELEMENTS_TS_455; + } else { + /* @ts-ignore */ + msg = $localize`456`; + } + return msg; +} +function i18n_456() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3857638144174210555$$MANY_I18N_ELEMENTS_TS_456 = + /* @ts-ignore */ + goog.getMsg("457"); + msg = MSG_EXTERNAL_3857638144174210555$$MANY_I18N_ELEMENTS_TS_456; + } else { + /* @ts-ignore */ + msg = $localize`457`; + } + return msg; +} +function i18n_457() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3045695327175378337$$MANY_I18N_ELEMENTS_TS_457 = + /* @ts-ignore */ + goog.getMsg("458"); + msg = MSG_EXTERNAL_3045695327175378337$$MANY_I18N_ELEMENTS_TS_457; + } else { + /* @ts-ignore */ + msg = $localize`458`; + } + return msg; +} +function i18n_458() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3644484817035455202$$MANY_I18N_ELEMENTS_TS_458 = + /* @ts-ignore */ + goog.getMsg("459"); + msg = MSG_EXTERNAL_3644484817035455202$$MANY_I18N_ELEMENTS_TS_458; + } else { + /* @ts-ignore */ + msg = $localize`459`; + } + return msg; +} +function i18n_459() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7660359530594750114$$MANY_I18N_ELEMENTS_TS_459 = + /* @ts-ignore */ + goog.getMsg("460"); + msg = MSG_EXTERNAL_7660359530594750114$$MANY_I18N_ELEMENTS_TS_459; + } else { + /* @ts-ignore */ + msg = $localize`460`; + } + return msg; +} +function i18n_460() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_859029215945778019$$MANY_I18N_ELEMENTS_TS_460 = + /* @ts-ignore */ + goog.getMsg("461"); + msg = MSG_EXTERNAL_859029215945778019$$MANY_I18N_ELEMENTS_TS_460; + } else { + /* @ts-ignore */ + msg = $localize`461`; + } + return msg; +} +function i18n_461() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5607532337489776885$$MANY_I18N_ELEMENTS_TS_461 = + /* @ts-ignore */ + goog.getMsg("462"); + msg = MSG_EXTERNAL_5607532337489776885$$MANY_I18N_ELEMENTS_TS_461; + } else { + /* @ts-ignore */ + msg = $localize`462`; + } + return msg; +} +function i18n_462() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4240067400031681086$$MANY_I18N_ELEMENTS_TS_462 = + /* @ts-ignore */ + goog.getMsg("463"); + msg = MSG_EXTERNAL_4240067400031681086$$MANY_I18N_ELEMENTS_TS_462; + } else { + /* @ts-ignore */ + msg = $localize`463`; + } + return msg; +} +function i18n_463() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1640272610790531385$$MANY_I18N_ELEMENTS_TS_463 = + /* @ts-ignore */ + goog.getMsg("464"); + msg = MSG_EXTERNAL_1640272610790531385$$MANY_I18N_ELEMENTS_TS_463; + } else { + /* @ts-ignore */ + msg = $localize`464`; + } + return msg; +} +function i18n_464() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3491441897963531818$$MANY_I18N_ELEMENTS_TS_464 = + /* @ts-ignore */ + goog.getMsg("465"); + msg = MSG_EXTERNAL_3491441897963531818$$MANY_I18N_ELEMENTS_TS_464; + } else { + /* @ts-ignore */ + msg = $localize`465`; + } + return msg; +} +function i18n_465() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6403507623520365877$$MANY_I18N_ELEMENTS_TS_465 = + /* @ts-ignore */ + goog.getMsg("466"); + msg = MSG_EXTERNAL_6403507623520365877$$MANY_I18N_ELEMENTS_TS_465; + } else { + /* @ts-ignore */ + msg = $localize`466`; + } + return msg; +} +function i18n_466() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4091657843540113630$$MANY_I18N_ELEMENTS_TS_466 = + /* @ts-ignore */ + goog.getMsg("467"); + msg = MSG_EXTERNAL_4091657843540113630$$MANY_I18N_ELEMENTS_TS_466; + } else { + /* @ts-ignore */ + msg = $localize`467`; + } + return msg; +} +function i18n_467() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3076972487047087405$$MANY_I18N_ELEMENTS_TS_467 = + /* @ts-ignore */ + goog.getMsg("468"); + msg = MSG_EXTERNAL_3076972487047087405$$MANY_I18N_ELEMENTS_TS_467; + } else { + /* @ts-ignore */ + msg = $localize`468`; + } + return msg; +} +function i18n_468() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5500299522025254954$$MANY_I18N_ELEMENTS_TS_468 = + /* @ts-ignore */ + goog.getMsg("469"); + msg = MSG_EXTERNAL_5500299522025254954$$MANY_I18N_ELEMENTS_TS_468; + } else { + /* @ts-ignore */ + msg = $localize`469`; + } + return msg; +} +function i18n_469() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8992664674709063031$$MANY_I18N_ELEMENTS_TS_469 = + /* @ts-ignore */ + goog.getMsg("470"); + msg = MSG_EXTERNAL_8992664674709063031$$MANY_I18N_ELEMENTS_TS_469; + } else { + /* @ts-ignore */ + msg = $localize`470`; + } + return msg; +} +function i18n_470() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7397185572114470672$$MANY_I18N_ELEMENTS_TS_470 = + /* @ts-ignore */ + goog.getMsg("471"); + msg = MSG_EXTERNAL_7397185572114470672$$MANY_I18N_ELEMENTS_TS_470; + } else { + /* @ts-ignore */ + msg = $localize`471`; + } + return msg; +} +function i18n_471() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4419652340563278731$$MANY_I18N_ELEMENTS_TS_471 = + /* @ts-ignore */ + goog.getMsg("472"); + msg = MSG_EXTERNAL_4419652340563278731$$MANY_I18N_ELEMENTS_TS_471; + } else { + /* @ts-ignore */ + msg = $localize`472`; + } + return msg; +} +function i18n_472() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_66554995291161941$$MANY_I18N_ELEMENTS_TS_472 = + /* @ts-ignore */ + goog.getMsg("473"); + msg = MSG_EXTERNAL_66554995291161941$$MANY_I18N_ELEMENTS_TS_472; + } else { + /* @ts-ignore */ + msg = $localize`473`; + } + return msg; +} +function i18n_473() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1730638004408107401$$MANY_I18N_ELEMENTS_TS_473 = + /* @ts-ignore */ + goog.getMsg("474"); + msg = MSG_EXTERNAL_1730638004408107401$$MANY_I18N_ELEMENTS_TS_473; + } else { + /* @ts-ignore */ + msg = $localize`474`; + } + return msg; +} +function i18n_474() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1383887689453599139$$MANY_I18N_ELEMENTS_TS_474 = + /* @ts-ignore */ + goog.getMsg("475"); + msg = MSG_EXTERNAL_1383887689453599139$$MANY_I18N_ELEMENTS_TS_474; + } else { + /* @ts-ignore */ + msg = $localize`475`; + } + return msg; +} +function i18n_475() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2583434773836125750$$MANY_I18N_ELEMENTS_TS_475 = + /* @ts-ignore */ + goog.getMsg("476"); + msg = MSG_EXTERNAL_2583434773836125750$$MANY_I18N_ELEMENTS_TS_475; + } else { + /* @ts-ignore */ + msg = $localize`476`; + } + return msg; +} +function i18n_476() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_364015306856065006$$MANY_I18N_ELEMENTS_TS_476 = + /* @ts-ignore */ + goog.getMsg("477"); + msg = MSG_EXTERNAL_364015306856065006$$MANY_I18N_ELEMENTS_TS_476; + } else { + /* @ts-ignore */ + msg = $localize`477`; + } + return msg; +} +function i18n_477() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2179867506451951579$$MANY_I18N_ELEMENTS_TS_477 = + /* @ts-ignore */ + goog.getMsg("478"); + msg = MSG_EXTERNAL_2179867506451951579$$MANY_I18N_ELEMENTS_TS_477; + } else { + /* @ts-ignore */ + msg = $localize`478`; + } + return msg; +} +function i18n_478() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7630056743933849698$$MANY_I18N_ELEMENTS_TS_478 = + /* @ts-ignore */ + goog.getMsg("479"); + msg = MSG_EXTERNAL_7630056743933849698$$MANY_I18N_ELEMENTS_TS_478; + } else { + /* @ts-ignore */ + msg = $localize`479`; + } + return msg; +} +function i18n_479() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5897035674175241162$$MANY_I18N_ELEMENTS_TS_479 = + /* @ts-ignore */ + goog.getMsg("480"); + msg = MSG_EXTERNAL_5897035674175241162$$MANY_I18N_ELEMENTS_TS_479; + } else { + /* @ts-ignore */ + msg = $localize`480`; + } + return msg; +} +function i18n_480() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5735410914727717601$$MANY_I18N_ELEMENTS_TS_480 = + /* @ts-ignore */ + goog.getMsg("481"); + msg = MSG_EXTERNAL_5735410914727717601$$MANY_I18N_ELEMENTS_TS_480; + } else { + /* @ts-ignore */ + msg = $localize`481`; + } + return msg; +} +function i18n_481() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_416490898951677518$$MANY_I18N_ELEMENTS_TS_481 = + /* @ts-ignore */ + goog.getMsg("482"); + msg = MSG_EXTERNAL_416490898951677518$$MANY_I18N_ELEMENTS_TS_481; + } else { + /* @ts-ignore */ + msg = $localize`482`; + } + return msg; +} +function i18n_482() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3738301243897298849$$MANY_I18N_ELEMENTS_TS_482 = + /* @ts-ignore */ + goog.getMsg("483"); + msg = MSG_EXTERNAL_3738301243897298849$$MANY_I18N_ELEMENTS_TS_482; + } else { + /* @ts-ignore */ + msg = $localize`483`; + } + return msg; +} +function i18n_483() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2547937874240015967$$MANY_I18N_ELEMENTS_TS_483 = + /* @ts-ignore */ + goog.getMsg("484"); + msg = MSG_EXTERNAL_2547937874240015967$$MANY_I18N_ELEMENTS_TS_483; + } else { + /* @ts-ignore */ + msg = $localize`484`; + } + return msg; +} +function i18n_484() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5294428313685765795$$MANY_I18N_ELEMENTS_TS_484 = + /* @ts-ignore */ + goog.getMsg("485"); + msg = MSG_EXTERNAL_5294428313685765795$$MANY_I18N_ELEMENTS_TS_484; + } else { + /* @ts-ignore */ + msg = $localize`485`; + } + return msg; +} +function i18n_485() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_616403259028242308$$MANY_I18N_ELEMENTS_TS_485 = + /* @ts-ignore */ + goog.getMsg("486"); + msg = MSG_EXTERNAL_616403259028242308$$MANY_I18N_ELEMENTS_TS_485; + } else { + /* @ts-ignore */ + msg = $localize`486`; + } + return msg; +} +function i18n_486() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4475068601923037843$$MANY_I18N_ELEMENTS_TS_486 = + /* @ts-ignore */ + goog.getMsg("487"); + msg = MSG_EXTERNAL_4475068601923037843$$MANY_I18N_ELEMENTS_TS_486; + } else { + /* @ts-ignore */ + msg = $localize`487`; + } + return msg; +} +function i18n_487() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4876435386198377668$$MANY_I18N_ELEMENTS_TS_487 = + /* @ts-ignore */ + goog.getMsg("488"); + msg = MSG_EXTERNAL_4876435386198377668$$MANY_I18N_ELEMENTS_TS_487; + } else { + /* @ts-ignore */ + msg = $localize`488`; + } + return msg; +} +function i18n_488() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1771490289433450695$$MANY_I18N_ELEMENTS_TS_488 = + /* @ts-ignore */ + goog.getMsg("489"); + msg = MSG_EXTERNAL_1771490289433450695$$MANY_I18N_ELEMENTS_TS_488; + } else { + /* @ts-ignore */ + msg = $localize`489`; + } + return msg; +} +function i18n_489() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1560312989455252247$$MANY_I18N_ELEMENTS_TS_489 = + /* @ts-ignore */ + goog.getMsg("490"); + msg = MSG_EXTERNAL_1560312989455252247$$MANY_I18N_ELEMENTS_TS_489; + } else { + /* @ts-ignore */ + msg = $localize`490`; + } + return msg; +} +function i18n_490() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8412302102230709486$$MANY_I18N_ELEMENTS_TS_490 = + /* @ts-ignore */ + goog.getMsg("491"); + msg = MSG_EXTERNAL_8412302102230709486$$MANY_I18N_ELEMENTS_TS_490; + } else { + /* @ts-ignore */ + msg = $localize`491`; + } + return msg; +} +function i18n_491() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3934795069589749288$$MANY_I18N_ELEMENTS_TS_491 = + /* @ts-ignore */ + goog.getMsg("492"); + msg = MSG_EXTERNAL_3934795069589749288$$MANY_I18N_ELEMENTS_TS_491; + } else { + /* @ts-ignore */ + msg = $localize`492`; + } + return msg; +} +function i18n_492() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4355747588924184966$$MANY_I18N_ELEMENTS_TS_492 = + /* @ts-ignore */ + goog.getMsg("493"); + msg = MSG_EXTERNAL_4355747588924184966$$MANY_I18N_ELEMENTS_TS_492; + } else { + /* @ts-ignore */ + msg = $localize`493`; + } + return msg; +} +function i18n_493() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7836545017374130131$$MANY_I18N_ELEMENTS_TS_493 = + /* @ts-ignore */ + goog.getMsg("494"); + msg = MSG_EXTERNAL_7836545017374130131$$MANY_I18N_ELEMENTS_TS_493; + } else { + /* @ts-ignore */ + msg = $localize`494`; + } + return msg; +} +function i18n_494() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5451859542377643686$$MANY_I18N_ELEMENTS_TS_494 = + /* @ts-ignore */ + goog.getMsg("495"); + msg = MSG_EXTERNAL_5451859542377643686$$MANY_I18N_ELEMENTS_TS_494; + } else { + /* @ts-ignore */ + msg = $localize`495`; + } + return msg; +} +function i18n_495() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3827305446558093656$$MANY_I18N_ELEMENTS_TS_495 = + /* @ts-ignore */ + goog.getMsg("496"); + msg = MSG_EXTERNAL_3827305446558093656$$MANY_I18N_ELEMENTS_TS_495; + } else { + /* @ts-ignore */ + msg = $localize`496`; + } + return msg; +} +function i18n_496() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8303356916283782409$$MANY_I18N_ELEMENTS_TS_496 = + /* @ts-ignore */ + goog.getMsg("497"); + msg = MSG_EXTERNAL_8303356916283782409$$MANY_I18N_ELEMENTS_TS_496; + } else { + /* @ts-ignore */ + msg = $localize`497`; + } + return msg; +} +function i18n_497() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8475697065630706875$$MANY_I18N_ELEMENTS_TS_497 = + /* @ts-ignore */ + goog.getMsg("498"); + msg = MSG_EXTERNAL_8475697065630706875$$MANY_I18N_ELEMENTS_TS_497; + } else { + /* @ts-ignore */ + msg = $localize`498`; + } + return msg; +} +function i18n_498() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3431877929024550401$$MANY_I18N_ELEMENTS_TS_498 = + /* @ts-ignore */ + goog.getMsg("499"); + msg = MSG_EXTERNAL_3431877929024550401$$MANY_I18N_ELEMENTS_TS_498; + } else { + /* @ts-ignore */ + msg = $localize`499`; + } + return msg; +} +function i18n_499() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4457064427864045824$$MANY_I18N_ELEMENTS_TS_499 = + /* @ts-ignore */ + goog.getMsg("500"); + msg = MSG_EXTERNAL_4457064427864045824$$MANY_I18N_ELEMENTS_TS_499; + } else { + /* @ts-ignore */ + msg = $localize`500`; + } + return msg; +} +function i18n_500() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4835717312846681229$$MANY_I18N_ELEMENTS_TS_500 = + /* @ts-ignore */ + goog.getMsg("501"); + msg = MSG_EXTERNAL_4835717312846681229$$MANY_I18N_ELEMENTS_TS_500; + } else { + /* @ts-ignore */ + msg = $localize`501`; + } + return msg; +} +function i18n_501() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9078664051157153489$$MANY_I18N_ELEMENTS_TS_501 = + /* @ts-ignore */ + goog.getMsg("502"); + msg = MSG_EXTERNAL_9078664051157153489$$MANY_I18N_ELEMENTS_TS_501; + } else { + /* @ts-ignore */ + msg = $localize`502`; + } + return msg; +} +function i18n_502() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_511369475241360326$$MANY_I18N_ELEMENTS_TS_502 = + /* @ts-ignore */ + goog.getMsg("503"); + msg = MSG_EXTERNAL_511369475241360326$$MANY_I18N_ELEMENTS_TS_502; + } else { + /* @ts-ignore */ + msg = $localize`503`; + } + return msg; +} +function i18n_503() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6243482556750375859$$MANY_I18N_ELEMENTS_TS_503 = + /* @ts-ignore */ + goog.getMsg("504"); + msg = MSG_EXTERNAL_6243482556750375859$$MANY_I18N_ELEMENTS_TS_503; + } else { + /* @ts-ignore */ + msg = $localize`504`; + } + return msg; +} +function i18n_504() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2511240777980040286$$MANY_I18N_ELEMENTS_TS_504 = + /* @ts-ignore */ + goog.getMsg("505"); + msg = MSG_EXTERNAL_2511240777980040286$$MANY_I18N_ELEMENTS_TS_504; + } else { + /* @ts-ignore */ + msg = $localize`505`; + } + return msg; +} +function i18n_505() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1077269740685515527$$MANY_I18N_ELEMENTS_TS_505 = + /* @ts-ignore */ + goog.getMsg("506"); + msg = MSG_EXTERNAL_1077269740685515527$$MANY_I18N_ELEMENTS_TS_505; + } else { + /* @ts-ignore */ + msg = $localize`506`; + } + return msg; +} +function i18n_506() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1689483662688577965$$MANY_I18N_ELEMENTS_TS_506 = + /* @ts-ignore */ + goog.getMsg("507"); + msg = MSG_EXTERNAL_1689483662688577965$$MANY_I18N_ELEMENTS_TS_506; + } else { + /* @ts-ignore */ + msg = $localize`507`; + } + return msg; +} +function i18n_507() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1102274504706636545$$MANY_I18N_ELEMENTS_TS_507 = + /* @ts-ignore */ + goog.getMsg("508"); + msg = MSG_EXTERNAL_1102274504706636545$$MANY_I18N_ELEMENTS_TS_507; + } else { + /* @ts-ignore */ + msg = $localize`508`; + } + return msg; +} +function i18n_508() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6226436718112231675$$MANY_I18N_ELEMENTS_TS_508 = + /* @ts-ignore */ + goog.getMsg("509"); + msg = MSG_EXTERNAL_6226436718112231675$$MANY_I18N_ELEMENTS_TS_508; + } else { + /* @ts-ignore */ + msg = $localize`509`; + } + return msg; +} +function i18n_509() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_684979110802785007$$MANY_I18N_ELEMENTS_TS_509 = + /* @ts-ignore */ + goog.getMsg("510"); + msg = MSG_EXTERNAL_684979110802785007$$MANY_I18N_ELEMENTS_TS_509; + } else { + /* @ts-ignore */ + msg = $localize`510`; + } + return msg; +} +function i18n_510() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4296896040823338474$$MANY_I18N_ELEMENTS_TS_510 = + /* @ts-ignore */ + goog.getMsg("511"); + msg = MSG_EXTERNAL_4296896040823338474$$MANY_I18N_ELEMENTS_TS_510; + } else { + /* @ts-ignore */ + msg = $localize`511`; + } + return msg; +} +function i18n_511() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9063542580376065530$$MANY_I18N_ELEMENTS_TS_511 = + /* @ts-ignore */ + goog.getMsg("512"); + msg = MSG_EXTERNAL_9063542580376065530$$MANY_I18N_ELEMENTS_TS_511; + } else { + /* @ts-ignore */ + msg = $localize`512`; + } + return msg; +} +function i18n_512() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4583342910800195982$$MANY_I18N_ELEMENTS_TS_512 = + /* @ts-ignore */ + goog.getMsg("513"); + msg = MSG_EXTERNAL_4583342910800195982$$MANY_I18N_ELEMENTS_TS_512; + } else { + /* @ts-ignore */ + msg = $localize`513`; + } + return msg; +} +function i18n_513() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8863893035353155219$$MANY_I18N_ELEMENTS_TS_513 = + /* @ts-ignore */ + goog.getMsg("514"); + msg = MSG_EXTERNAL_8863893035353155219$$MANY_I18N_ELEMENTS_TS_513; + } else { + /* @ts-ignore */ + msg = $localize`514`; + } + return msg; +} +function i18n_514() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1668867486872647333$$MANY_I18N_ELEMENTS_TS_514 = + /* @ts-ignore */ + goog.getMsg("515"); + msg = MSG_EXTERNAL_1668867486872647333$$MANY_I18N_ELEMENTS_TS_514; + } else { + /* @ts-ignore */ + msg = $localize`515`; + } + return msg; +} +function i18n_515() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7554406348610228270$$MANY_I18N_ELEMENTS_TS_515 = + /* @ts-ignore */ + goog.getMsg("516"); + msg = MSG_EXTERNAL_7554406348610228270$$MANY_I18N_ELEMENTS_TS_515; + } else { + /* @ts-ignore */ + msg = $localize`516`; + } + return msg; +} +function i18n_516() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8284231330504165283$$MANY_I18N_ELEMENTS_TS_516 = + /* @ts-ignore */ + goog.getMsg("517"); + msg = MSG_EXTERNAL_8284231330504165283$$MANY_I18N_ELEMENTS_TS_516; + } else { + /* @ts-ignore */ + msg = $localize`517`; + } + return msg; +} +function i18n_517() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7625716525028929107$$MANY_I18N_ELEMENTS_TS_517 = + /* @ts-ignore */ + goog.getMsg("518"); + msg = MSG_EXTERNAL_7625716525028929107$$MANY_I18N_ELEMENTS_TS_517; + } else { + /* @ts-ignore */ + msg = $localize`518`; + } + return msg; +} +function i18n_518() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9058838481332734818$$MANY_I18N_ELEMENTS_TS_518 = + /* @ts-ignore */ + goog.getMsg("519"); + msg = MSG_EXTERNAL_9058838481332734818$$MANY_I18N_ELEMENTS_TS_518; + } else { + /* @ts-ignore */ + msg = $localize`519`; + } + return msg; +} +function i18n_519() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8005231904969278590$$MANY_I18N_ELEMENTS_TS_519 = + /* @ts-ignore */ + goog.getMsg("520"); + msg = MSG_EXTERNAL_8005231904969278590$$MANY_I18N_ELEMENTS_TS_519; + } else { + /* @ts-ignore */ + msg = $localize`520`; + } + return msg; +} +function i18n_520() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4198986407501175619$$MANY_I18N_ELEMENTS_TS_520 = + /* @ts-ignore */ + goog.getMsg("521"); + msg = MSG_EXTERNAL_4198986407501175619$$MANY_I18N_ELEMENTS_TS_520; + } else { + /* @ts-ignore */ + msg = $localize`521`; + } + return msg; +} +function i18n_521() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2431270465241190822$$MANY_I18N_ELEMENTS_TS_521 = + /* @ts-ignore */ + goog.getMsg("522"); + msg = MSG_EXTERNAL_2431270465241190822$$MANY_I18N_ELEMENTS_TS_521; + } else { + /* @ts-ignore */ + msg = $localize`522`; + } + return msg; +} +function i18n_522() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6730586199735623145$$MANY_I18N_ELEMENTS_TS_522 = + /* @ts-ignore */ + goog.getMsg("523"); + msg = MSG_EXTERNAL_6730586199735623145$$MANY_I18N_ELEMENTS_TS_522; + } else { + /* @ts-ignore */ + msg = $localize`523`; + } + return msg; +} +function i18n_523() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_569576625098292798$$MANY_I18N_ELEMENTS_TS_523 = + /* @ts-ignore */ + goog.getMsg("524"); + msg = MSG_EXTERNAL_569576625098292798$$MANY_I18N_ELEMENTS_TS_523; + } else { + /* @ts-ignore */ + msg = $localize`524`; + } + return msg; +} +function i18n_524() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2480372203821745013$$MANY_I18N_ELEMENTS_TS_524 = + /* @ts-ignore */ + goog.getMsg("525"); + msg = MSG_EXTERNAL_2480372203821745013$$MANY_I18N_ELEMENTS_TS_524; + } else { + /* @ts-ignore */ + msg = $localize`525`; + } + return msg; +} +function i18n_525() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2954142628984937568$$MANY_I18N_ELEMENTS_TS_525 = + /* @ts-ignore */ + goog.getMsg("526"); + msg = MSG_EXTERNAL_2954142628984937568$$MANY_I18N_ELEMENTS_TS_525; + } else { + /* @ts-ignore */ + msg = $localize`526`; + } + return msg; +} +function i18n_526() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4997577844524771362$$MANY_I18N_ELEMENTS_TS_526 = + /* @ts-ignore */ + goog.getMsg("527"); + msg = MSG_EXTERNAL_4997577844524771362$$MANY_I18N_ELEMENTS_TS_526; + } else { + /* @ts-ignore */ + msg = $localize`527`; + } + return msg; +} +function i18n_527() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4131860367950266555$$MANY_I18N_ELEMENTS_TS_527 = + /* @ts-ignore */ + goog.getMsg("528"); + msg = MSG_EXTERNAL_4131860367950266555$$MANY_I18N_ELEMENTS_TS_527; + } else { + /* @ts-ignore */ + msg = $localize`528`; + } + return msg; +} +function i18n_528() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6420702701734267178$$MANY_I18N_ELEMENTS_TS_528 = + /* @ts-ignore */ + goog.getMsg("529"); + msg = MSG_EXTERNAL_6420702701734267178$$MANY_I18N_ELEMENTS_TS_528; + } else { + /* @ts-ignore */ + msg = $localize`529`; + } + return msg; +} +function i18n_529() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7212839838640613203$$MANY_I18N_ELEMENTS_TS_529 = + /* @ts-ignore */ + goog.getMsg("530"); + msg = MSG_EXTERNAL_7212839838640613203$$MANY_I18N_ELEMENTS_TS_529; + } else { + /* @ts-ignore */ + msg = $localize`530`; + } + return msg; +} +function i18n_530() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1475076150311943525$$MANY_I18N_ELEMENTS_TS_530 = + /* @ts-ignore */ + goog.getMsg("531"); + msg = MSG_EXTERNAL_1475076150311943525$$MANY_I18N_ELEMENTS_TS_530; + } else { + /* @ts-ignore */ + msg = $localize`531`; + } + return msg; +} +function i18n_531() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3063698967799445073$$MANY_I18N_ELEMENTS_TS_531 = + /* @ts-ignore */ + goog.getMsg("532"); + msg = MSG_EXTERNAL_3063698967799445073$$MANY_I18N_ELEMENTS_TS_531; + } else { + /* @ts-ignore */ + msg = $localize`532`; + } + return msg; +} +function i18n_532() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1723417304676500909$$MANY_I18N_ELEMENTS_TS_532 = + /* @ts-ignore */ + goog.getMsg("533"); + msg = MSG_EXTERNAL_1723417304676500909$$MANY_I18N_ELEMENTS_TS_532; + } else { + /* @ts-ignore */ + msg = $localize`533`; + } + return msg; +} +function i18n_533() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2734796332025803751$$MANY_I18N_ELEMENTS_TS_533 = + /* @ts-ignore */ + goog.getMsg("534"); + msg = MSG_EXTERNAL_2734796332025803751$$MANY_I18N_ELEMENTS_TS_533; + } else { + /* @ts-ignore */ + msg = $localize`534`; + } + return msg; +} +function i18n_534() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5777639044279170363$$MANY_I18N_ELEMENTS_TS_534 = + /* @ts-ignore */ + goog.getMsg("535"); + msg = MSG_EXTERNAL_5777639044279170363$$MANY_I18N_ELEMENTS_TS_534; + } else { + /* @ts-ignore */ + msg = $localize`535`; + } + return msg; +} +function i18n_535() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7953683499821209290$$MANY_I18N_ELEMENTS_TS_535 = + /* @ts-ignore */ + goog.getMsg("536"); + msg = MSG_EXTERNAL_7953683499821209290$$MANY_I18N_ELEMENTS_TS_535; + } else { + /* @ts-ignore */ + msg = $localize`536`; + } + return msg; +} +function i18n_536() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_552956116952226031$$MANY_I18N_ELEMENTS_TS_536 = + /* @ts-ignore */ + goog.getMsg("537"); + msg = MSG_EXTERNAL_552956116952226031$$MANY_I18N_ELEMENTS_TS_536; + } else { + /* @ts-ignore */ + msg = $localize`537`; + } + return msg; +} +function i18n_537() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3130519228438050799$$MANY_I18N_ELEMENTS_TS_537 = + /* @ts-ignore */ + goog.getMsg("538"); + msg = MSG_EXTERNAL_3130519228438050799$$MANY_I18N_ELEMENTS_TS_537; + } else { + /* @ts-ignore */ + msg = $localize`538`; + } + return msg; +} +function i18n_538() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4038732451791054690$$MANY_I18N_ELEMENTS_TS_538 = + /* @ts-ignore */ + goog.getMsg("539"); + msg = MSG_EXTERNAL_4038732451791054690$$MANY_I18N_ELEMENTS_TS_538; + } else { + /* @ts-ignore */ + msg = $localize`539`; + } + return msg; +} +function i18n_539() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_974395780180346699$$MANY_I18N_ELEMENTS_TS_539 = + /* @ts-ignore */ + goog.getMsg("540"); + msg = MSG_EXTERNAL_974395780180346699$$MANY_I18N_ELEMENTS_TS_539; + } else { + /* @ts-ignore */ + msg = $localize`540`; + } + return msg; +} +function i18n_540() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_154127424508534469$$MANY_I18N_ELEMENTS_TS_540 = + /* @ts-ignore */ + goog.getMsg("541"); + msg = MSG_EXTERNAL_154127424508534469$$MANY_I18N_ELEMENTS_TS_540; + } else { + /* @ts-ignore */ + msg = $localize`541`; + } + return msg; +} +function i18n_541() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6789220548268482475$$MANY_I18N_ELEMENTS_TS_541 = + /* @ts-ignore */ + goog.getMsg("542"); + msg = MSG_EXTERNAL_6789220548268482475$$MANY_I18N_ELEMENTS_TS_541; + } else { + /* @ts-ignore */ + msg = $localize`542`; + } + return msg; +} +function i18n_542() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9100834671714161985$$MANY_I18N_ELEMENTS_TS_542 = + /* @ts-ignore */ + goog.getMsg("543"); + msg = MSG_EXTERNAL_9100834671714161985$$MANY_I18N_ELEMENTS_TS_542; + } else { + /* @ts-ignore */ + msg = $localize`543`; + } + return msg; +} +function i18n_543() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6340366952505621256$$MANY_I18N_ELEMENTS_TS_543 = + /* @ts-ignore */ + goog.getMsg("544"); + msg = MSG_EXTERNAL_6340366952505621256$$MANY_I18N_ELEMENTS_TS_543; + } else { + /* @ts-ignore */ + msg = $localize`544`; + } + return msg; +} +function i18n_544() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3712852565849019142$$MANY_I18N_ELEMENTS_TS_544 = + /* @ts-ignore */ + goog.getMsg("545"); + msg = MSG_EXTERNAL_3712852565849019142$$MANY_I18N_ELEMENTS_TS_544; + } else { + /* @ts-ignore */ + msg = $localize`545`; + } + return msg; +} +function i18n_545() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6448186959072369875$$MANY_I18N_ELEMENTS_TS_545 = + /* @ts-ignore */ + goog.getMsg("546"); + msg = MSG_EXTERNAL_6448186959072369875$$MANY_I18N_ELEMENTS_TS_545; + } else { + /* @ts-ignore */ + msg = $localize`546`; + } + return msg; +} +function i18n_546() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6137795660369455956$$MANY_I18N_ELEMENTS_TS_546 = + /* @ts-ignore */ + goog.getMsg("547"); + msg = MSG_EXTERNAL_6137795660369455956$$MANY_I18N_ELEMENTS_TS_546; + } else { + /* @ts-ignore */ + msg = $localize`547`; + } + return msg; +} +function i18n_547() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4599860022428050957$$MANY_I18N_ELEMENTS_TS_547 = + /* @ts-ignore */ + goog.getMsg("548"); + msg = MSG_EXTERNAL_4599860022428050957$$MANY_I18N_ELEMENTS_TS_547; + } else { + /* @ts-ignore */ + msg = $localize`548`; + } + return msg; +} +function i18n_548() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7903695147924286234$$MANY_I18N_ELEMENTS_TS_548 = + /* @ts-ignore */ + goog.getMsg("549"); + msg = MSG_EXTERNAL_7903695147924286234$$MANY_I18N_ELEMENTS_TS_548; + } else { + /* @ts-ignore */ + msg = $localize`549`; + } + return msg; +} +function i18n_549() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5596847578921895672$$MANY_I18N_ELEMENTS_TS_549 = + /* @ts-ignore */ + goog.getMsg("550"); + msg = MSG_EXTERNAL_5596847578921895672$$MANY_I18N_ELEMENTS_TS_549; + } else { + /* @ts-ignore */ + msg = $localize`550`; + } + return msg; +} +function i18n_550() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1821865701301610542$$MANY_I18N_ELEMENTS_TS_550 = + /* @ts-ignore */ + goog.getMsg("551"); + msg = MSG_EXTERNAL_1821865701301610542$$MANY_I18N_ELEMENTS_TS_550; + } else { + /* @ts-ignore */ + msg = $localize`551`; + } + return msg; +} +function i18n_551() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6597229916728888229$$MANY_I18N_ELEMENTS_TS_551 = + /* @ts-ignore */ + goog.getMsg("552"); + msg = MSG_EXTERNAL_6597229916728888229$$MANY_I18N_ELEMENTS_TS_551; + } else { + /* @ts-ignore */ + msg = $localize`552`; + } + return msg; +} +function i18n_552() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5749202281753030180$$MANY_I18N_ELEMENTS_TS_552 = + /* @ts-ignore */ + goog.getMsg("553"); + msg = MSG_EXTERNAL_5749202281753030180$$MANY_I18N_ELEMENTS_TS_552; + } else { + /* @ts-ignore */ + msg = $localize`553`; + } + return msg; +} +function i18n_553() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9036479897511996131$$MANY_I18N_ELEMENTS_TS_553 = + /* @ts-ignore */ + goog.getMsg("554"); + msg = MSG_EXTERNAL_9036479897511996131$$MANY_I18N_ELEMENTS_TS_553; + } else { + /* @ts-ignore */ + msg = $localize`554`; + } + return msg; +} +function i18n_554() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8964440564577070202$$MANY_I18N_ELEMENTS_TS_554 = + /* @ts-ignore */ + goog.getMsg("555"); + msg = MSG_EXTERNAL_8964440564577070202$$MANY_I18N_ELEMENTS_TS_554; + } else { + /* @ts-ignore */ + msg = $localize`555`; + } + return msg; +} +function i18n_555() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3996605250704756000$$MANY_I18N_ELEMENTS_TS_555 = + /* @ts-ignore */ + goog.getMsg("556"); + msg = MSG_EXTERNAL_3996605250704756000$$MANY_I18N_ELEMENTS_TS_555; + } else { + /* @ts-ignore */ + msg = $localize`556`; + } + return msg; +} +function i18n_556() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8739126221014752563$$MANY_I18N_ELEMENTS_TS_556 = + /* @ts-ignore */ + goog.getMsg("557"); + msg = MSG_EXTERNAL_8739126221014752563$$MANY_I18N_ELEMENTS_TS_556; + } else { + /* @ts-ignore */ + msg = $localize`557`; + } + return msg; +} +function i18n_557() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4602075917882759224$$MANY_I18N_ELEMENTS_TS_557 = + /* @ts-ignore */ + goog.getMsg("558"); + msg = MSG_EXTERNAL_4602075917882759224$$MANY_I18N_ELEMENTS_TS_557; + } else { + /* @ts-ignore */ + msg = $localize`558`; + } + return msg; +} +function i18n_558() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5394043385477653925$$MANY_I18N_ELEMENTS_TS_558 = + /* @ts-ignore */ + goog.getMsg("559"); + msg = MSG_EXTERNAL_5394043385477653925$$MANY_I18N_ELEMENTS_TS_558; + } else { + /* @ts-ignore */ + msg = $localize`559`; + } + return msg; +} +function i18n_559() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_35559244211896822$$MANY_I18N_ELEMENTS_TS_559 = + /* @ts-ignore */ + goog.getMsg("560"); + msg = MSG_EXTERNAL_35559244211896822$$MANY_I18N_ELEMENTS_TS_559; + } else { + /* @ts-ignore */ + msg = $localize`560`; + } + return msg; +} +function i18n_560() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7896896431532321823$$MANY_I18N_ELEMENTS_TS_560 = + /* @ts-ignore */ + goog.getMsg("561"); + msg = MSG_EXTERNAL_7896896431532321823$$MANY_I18N_ELEMENTS_TS_560; + } else { + /* @ts-ignore */ + msg = $localize`561`; + } + return msg; +} +function i18n_561() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3952853332150771292$$MANY_I18N_ELEMENTS_TS_561 = + /* @ts-ignore */ + goog.getMsg("562"); + msg = MSG_EXTERNAL_3952853332150771292$$MANY_I18N_ELEMENTS_TS_561; + } else { + /* @ts-ignore */ + msg = $localize`562`; + } + return msg; +} +function i18n_562() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3697171665655714644$$MANY_I18N_ELEMENTS_TS_562 = + /* @ts-ignore */ + goog.getMsg("563"); + msg = MSG_EXTERNAL_3697171665655714644$$MANY_I18N_ELEMENTS_TS_562; + } else { + /* @ts-ignore */ + msg = $localize`563`; + } + return msg; +} +function i18n_563() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8902178795700630407$$MANY_I18N_ELEMENTS_TS_563 = + /* @ts-ignore */ + goog.getMsg("564"); + msg = MSG_EXTERNAL_8902178795700630407$$MANY_I18N_ELEMENTS_TS_563; + } else { + /* @ts-ignore */ + msg = $localize`564`; + } + return msg; +} +function i18n_564() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7688992138435404351$$MANY_I18N_ELEMENTS_TS_564 = + /* @ts-ignore */ + goog.getMsg("565"); + msg = MSG_EXTERNAL_7688992138435404351$$MANY_I18N_ELEMENTS_TS_564; + } else { + /* @ts-ignore */ + msg = $localize`565`; + } + return msg; +} +function i18n_565() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5528129345918762712$$MANY_I18N_ELEMENTS_TS_565 = + /* @ts-ignore */ + goog.getMsg("566"); + msg = MSG_EXTERNAL_5528129345918762712$$MANY_I18N_ELEMENTS_TS_565; + } else { + /* @ts-ignore */ + msg = $localize`566`; + } + return msg; +} +function i18n_566() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6561865276054976252$$MANY_I18N_ELEMENTS_TS_566 = + /* @ts-ignore */ + goog.getMsg("567"); + msg = MSG_EXTERNAL_6561865276054976252$$MANY_I18N_ELEMENTS_TS_566; + } else { + /* @ts-ignore */ + msg = $localize`567`; + } + return msg; +} +function i18n_567() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2812486979565265603$$MANY_I18N_ELEMENTS_TS_567 = + /* @ts-ignore */ + goog.getMsg("568"); + msg = MSG_EXTERNAL_2812486979565265603$$MANY_I18N_ELEMENTS_TS_567; + } else { + /* @ts-ignore */ + msg = $localize`568`; + } + return msg; +} +function i18n_568() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8138823950843812379$$MANY_I18N_ELEMENTS_TS_568 = + /* @ts-ignore */ + goog.getMsg("569"); + msg = MSG_EXTERNAL_8138823950843812379$$MANY_I18N_ELEMENTS_TS_568; + } else { + /* @ts-ignore */ + msg = $localize`569`; + } + return msg; +} +function i18n_569() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7219407671036845746$$MANY_I18N_ELEMENTS_TS_569 = + /* @ts-ignore */ + goog.getMsg("570"); + msg = MSG_EXTERNAL_7219407671036845746$$MANY_I18N_ELEMENTS_TS_569; + } else { + /* @ts-ignore */ + msg = $localize`570`; + } + return msg; +} +function i18n_570() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3272424693761595130$$MANY_I18N_ELEMENTS_TS_570 = + /* @ts-ignore */ + goog.getMsg("571"); + msg = MSG_EXTERNAL_3272424693761595130$$MANY_I18N_ELEMENTS_TS_570; + } else { + /* @ts-ignore */ + msg = $localize`571`; + } + return msg; +} +function i18n_571() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7282474681828676323$$MANY_I18N_ELEMENTS_TS_571 = + /* @ts-ignore */ + goog.getMsg("572"); + msg = MSG_EXTERNAL_7282474681828676323$$MANY_I18N_ELEMENTS_TS_571; + } else { + /* @ts-ignore */ + msg = $localize`572`; + } + return msg; +} +function i18n_572() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7177062860633761137$$MANY_I18N_ELEMENTS_TS_572 = + /* @ts-ignore */ + goog.getMsg("573"); + msg = MSG_EXTERNAL_7177062860633761137$$MANY_I18N_ELEMENTS_TS_572; + } else { + /* @ts-ignore */ + msg = $localize`573`; + } + return msg; +} +function i18n_573() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7226281520202033021$$MANY_I18N_ELEMENTS_TS_573 = + /* @ts-ignore */ + goog.getMsg("574"); + msg = MSG_EXTERNAL_7226281520202033021$$MANY_I18N_ELEMENTS_TS_573; + } else { + /* @ts-ignore */ + msg = $localize`574`; + } + return msg; +} +function i18n_574() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7351641346787613972$$MANY_I18N_ELEMENTS_TS_574 = + /* @ts-ignore */ + goog.getMsg("575"); + msg = MSG_EXTERNAL_7351641346787613972$$MANY_I18N_ELEMENTS_TS_574; + } else { + /* @ts-ignore */ + msg = $localize`575`; + } + return msg; +} +function i18n_575() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5756838000123632997$$MANY_I18N_ELEMENTS_TS_575 = + /* @ts-ignore */ + goog.getMsg("576"); + msg = MSG_EXTERNAL_5756838000123632997$$MANY_I18N_ELEMENTS_TS_575; + } else { + /* @ts-ignore */ + msg = $localize`576`; + } + return msg; +} +function i18n_576() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3282902652753393340$$MANY_I18N_ELEMENTS_TS_576 = + /* @ts-ignore */ + goog.getMsg("577"); + msg = MSG_EXTERNAL_3282902652753393340$$MANY_I18N_ELEMENTS_TS_576; + } else { + /* @ts-ignore */ + msg = $localize`577`; + } + return msg; +} +function i18n_577() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8704921783805470724$$MANY_I18N_ELEMENTS_TS_577 = + /* @ts-ignore */ + goog.getMsg("578"); + msg = MSG_EXTERNAL_8704921783805470724$$MANY_I18N_ELEMENTS_TS_577; + } else { + /* @ts-ignore */ + msg = $localize`578`; + } + return msg; +} +function i18n_578() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5476257510969866083$$MANY_I18N_ELEMENTS_TS_578 = + /* @ts-ignore */ + goog.getMsg("579"); + msg = MSG_EXTERNAL_5476257510969866083$$MANY_I18N_ELEMENTS_TS_578; + } else { + /* @ts-ignore */ + msg = $localize`579`; + } + return msg; +} +function i18n_579() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_388851920662662388$$MANY_I18N_ELEMENTS_TS_579 = + /* @ts-ignore */ + goog.getMsg("580"); + msg = MSG_EXTERNAL_388851920662662388$$MANY_I18N_ELEMENTS_TS_579; + } else { + /* @ts-ignore */ + msg = $localize`580`; + } + return msg; +} +function i18n_580() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1258281109356172678$$MANY_I18N_ELEMENTS_TS_580 = + /* @ts-ignore */ + goog.getMsg("581"); + msg = MSG_EXTERNAL_1258281109356172678$$MANY_I18N_ELEMENTS_TS_580; + } else { + /* @ts-ignore */ + msg = $localize`581`; + } + return msg; +} +function i18n_581() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4365708089543726930$$MANY_I18N_ELEMENTS_TS_581 = + /* @ts-ignore */ + goog.getMsg("582"); + msg = MSG_EXTERNAL_4365708089543726930$$MANY_I18N_ELEMENTS_TS_581; + } else { + /* @ts-ignore */ + msg = $localize`582`; + } + return msg; +} +function i18n_582() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3393376841240602940$$MANY_I18N_ELEMENTS_TS_582 = + /* @ts-ignore */ + goog.getMsg("583"); + msg = MSG_EXTERNAL_3393376841240602940$$MANY_I18N_ELEMENTS_TS_582; + } else { + /* @ts-ignore */ + msg = $localize`583`; + } + return msg; +} +function i18n_583() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1260336577133934981$$MANY_I18N_ELEMENTS_TS_583 = + /* @ts-ignore */ + goog.getMsg("584"); + msg = MSG_EXTERNAL_1260336577133934981$$MANY_I18N_ELEMENTS_TS_583; + } else { + /* @ts-ignore */ + msg = $localize`584`; + } + return msg; +} +function i18n_584() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3193069557222500071$$MANY_I18N_ELEMENTS_TS_584 = + /* @ts-ignore */ + goog.getMsg("585"); + msg = MSG_EXTERNAL_3193069557222500071$$MANY_I18N_ELEMENTS_TS_584; + } else { + /* @ts-ignore */ + msg = $localize`585`; + } + return msg; +} +function i18n_585() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_192409742777863658$$MANY_I18N_ELEMENTS_TS_585 = + /* @ts-ignore */ + goog.getMsg("586"); + msg = MSG_EXTERNAL_192409742777863658$$MANY_I18N_ELEMENTS_TS_585; + } else { + /* @ts-ignore */ + msg = $localize`586`; + } + return msg; +} +function i18n_586() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7344828823554047561$$MANY_I18N_ELEMENTS_TS_586 = + /* @ts-ignore */ + goog.getMsg("587"); + msg = MSG_EXTERNAL_7344828823554047561$$MANY_I18N_ELEMENTS_TS_586; + } else { + /* @ts-ignore */ + msg = $localize`587`; + } + return msg; +} +function i18n_587() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_987851592814414677$$MANY_I18N_ELEMENTS_TS_587 = + /* @ts-ignore */ + goog.getMsg("588"); + msg = MSG_EXTERNAL_987851592814414677$$MANY_I18N_ELEMENTS_TS_587; + } else { + /* @ts-ignore */ + msg = $localize`588`; + } + return msg; +} +function i18n_588() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1668487490133979070$$MANY_I18N_ELEMENTS_TS_588 = + /* @ts-ignore */ + goog.getMsg("589"); + msg = MSG_EXTERNAL_1668487490133979070$$MANY_I18N_ELEMENTS_TS_588; + } else { + /* @ts-ignore */ + msg = $localize`589`; + } + return msg; +} +function i18n_589() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3956279881783964821$$MANY_I18N_ELEMENTS_TS_589 = + /* @ts-ignore */ + goog.getMsg("590"); + msg = MSG_EXTERNAL_3956279881783964821$$MANY_I18N_ELEMENTS_TS_589; + } else { + /* @ts-ignore */ + msg = $localize`590`; + } + return msg; +} +function i18n_590() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3397897325341616056$$MANY_I18N_ELEMENTS_TS_590 = + /* @ts-ignore */ + goog.getMsg("591"); + msg = MSG_EXTERNAL_3397897325341616056$$MANY_I18N_ELEMENTS_TS_590; + } else { + /* @ts-ignore */ + msg = $localize`591`; + } + return msg; +} +function i18n_591() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6232100357008014969$$MANY_I18N_ELEMENTS_TS_591 = + /* @ts-ignore */ + goog.getMsg("592"); + msg = MSG_EXTERNAL_6232100357008014969$$MANY_I18N_ELEMENTS_TS_591; + } else { + /* @ts-ignore */ + msg = $localize`592`; + } + return msg; +} +function i18n_592() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8262042933191386195$$MANY_I18N_ELEMENTS_TS_592 = + /* @ts-ignore */ + goog.getMsg("593"); + msg = MSG_EXTERNAL_8262042933191386195$$MANY_I18N_ELEMENTS_TS_592; + } else { + /* @ts-ignore */ + msg = $localize`593`; + } + return msg; +} +function i18n_593() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5368321628355414154$$MANY_I18N_ELEMENTS_TS_593 = + /* @ts-ignore */ + goog.getMsg("594"); + msg = MSG_EXTERNAL_5368321628355414154$$MANY_I18N_ELEMENTS_TS_593; + } else { + /* @ts-ignore */ + msg = $localize`594`; + } + return msg; +} +function i18n_594() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8024853291221800504$$MANY_I18N_ELEMENTS_TS_594 = + /* @ts-ignore */ + goog.getMsg("595"); + msg = MSG_EXTERNAL_8024853291221800504$$MANY_I18N_ELEMENTS_TS_594; + } else { + /* @ts-ignore */ + msg = $localize`595`; + } + return msg; +} +function i18n_595() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4856390233823500488$$MANY_I18N_ELEMENTS_TS_595 = + /* @ts-ignore */ + goog.getMsg("596"); + msg = MSG_EXTERNAL_4856390233823500488$$MANY_I18N_ELEMENTS_TS_595; + } else { + /* @ts-ignore */ + msg = $localize`596`; + } + return msg; +} +function i18n_596() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4021051041221076116$$MANY_I18N_ELEMENTS_TS_596 = + /* @ts-ignore */ + goog.getMsg("597"); + msg = MSG_EXTERNAL_4021051041221076116$$MANY_I18N_ELEMENTS_TS_596; + } else { + /* @ts-ignore */ + msg = $localize`597`; + } + return msg; +} +function i18n_597() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8879359788223302649$$MANY_I18N_ELEMENTS_TS_597 = + /* @ts-ignore */ + goog.getMsg("598"); + msg = MSG_EXTERNAL_8879359788223302649$$MANY_I18N_ELEMENTS_TS_597; + } else { + /* @ts-ignore */ + msg = $localize`598`; + } + return msg; +} +function i18n_598() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5061511761553334485$$MANY_I18N_ELEMENTS_TS_598 = + /* @ts-ignore */ + goog.getMsg("599"); + msg = MSG_EXTERNAL_5061511761553334485$$MANY_I18N_ELEMENTS_TS_598; + } else { + /* @ts-ignore */ + msg = $localize`599`; + } + return msg; +} +function i18n_599() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2212417202698410841$$MANY_I18N_ELEMENTS_TS_599 = + /* @ts-ignore */ + goog.getMsg("600"); + msg = MSG_EXTERNAL_2212417202698410841$$MANY_I18N_ELEMENTS_TS_599; + } else { + /* @ts-ignore */ + msg = $localize`600`; + } + return msg; +} +function i18n_600() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3364370407974317399$$MANY_I18N_ELEMENTS_TS_600 = + /* @ts-ignore */ + goog.getMsg("601"); + msg = MSG_EXTERNAL_3364370407974317399$$MANY_I18N_ELEMENTS_TS_600; + } else { + /* @ts-ignore */ + msg = $localize`601`; + } + return msg; +} +function i18n_601() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_586951201303587729$$MANY_I18N_ELEMENTS_TS_601 = + /* @ts-ignore */ + goog.getMsg("602"); + msg = MSG_EXTERNAL_586951201303587729$$MANY_I18N_ELEMENTS_TS_601; + } else { + /* @ts-ignore */ + msg = $localize`602`; + } + return msg; +} +function i18n_602() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3447491501831293233$$MANY_I18N_ELEMENTS_TS_602 = + /* @ts-ignore */ + goog.getMsg("603"); + msg = MSG_EXTERNAL_3447491501831293233$$MANY_I18N_ELEMENTS_TS_602; + } else { + /* @ts-ignore */ + msg = $localize`603`; + } + return msg; +} +function i18n_603() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6700113764510660979$$MANY_I18N_ELEMENTS_TS_603 = + /* @ts-ignore */ + goog.getMsg("604"); + msg = MSG_EXTERNAL_6700113764510660979$$MANY_I18N_ELEMENTS_TS_603; + } else { + /* @ts-ignore */ + msg = $localize`604`; + } + return msg; +} +function i18n_604() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6309632650817189207$$MANY_I18N_ELEMENTS_TS_604 = + /* @ts-ignore */ + goog.getMsg("605"); + msg = MSG_EXTERNAL_6309632650817189207$$MANY_I18N_ELEMENTS_TS_604; + } else { + /* @ts-ignore */ + msg = $localize`605`; + } + return msg; +} +function i18n_605() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1894910306515874596$$MANY_I18N_ELEMENTS_TS_605 = + /* @ts-ignore */ + goog.getMsg("606"); + msg = MSG_EXTERNAL_1894910306515874596$$MANY_I18N_ELEMENTS_TS_605; + } else { + /* @ts-ignore */ + msg = $localize`606`; + } + return msg; +} +function i18n_606() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1493162153080531062$$MANY_I18N_ELEMENTS_TS_606 = + /* @ts-ignore */ + goog.getMsg("607"); + msg = MSG_EXTERNAL_1493162153080531062$$MANY_I18N_ELEMENTS_TS_606; + } else { + /* @ts-ignore */ + msg = $localize`607`; + } + return msg; +} +function i18n_607() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2208397424631813375$$MANY_I18N_ELEMENTS_TS_607 = + /* @ts-ignore */ + goog.getMsg("608"); + msg = MSG_EXTERNAL_2208397424631813375$$MANY_I18N_ELEMENTS_TS_607; + } else { + /* @ts-ignore */ + msg = $localize`608`; + } + return msg; +} +function i18n_608() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5166545520902743783$$MANY_I18N_ELEMENTS_TS_608 = + /* @ts-ignore */ + goog.getMsg("609"); + msg = MSG_EXTERNAL_5166545520902743783$$MANY_I18N_ELEMENTS_TS_608; + } else { + /* @ts-ignore */ + msg = $localize`609`; + } + return msg; +} +function i18n_609() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4424696092787115112$$MANY_I18N_ELEMENTS_TS_609 = + /* @ts-ignore */ + goog.getMsg("610"); + msg = MSG_EXTERNAL_4424696092787115112$$MANY_I18N_ELEMENTS_TS_609; + } else { + /* @ts-ignore */ + msg = $localize`610`; + } + return msg; +} +function i18n_610() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2518857945032128966$$MANY_I18N_ELEMENTS_TS_610 = + /* @ts-ignore */ + goog.getMsg("611"); + msg = MSG_EXTERNAL_2518857945032128966$$MANY_I18N_ELEMENTS_TS_610; + } else { + /* @ts-ignore */ + msg = $localize`611`; + } + return msg; +} +function i18n_611() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3389162048858972318$$MANY_I18N_ELEMENTS_TS_611 = + /* @ts-ignore */ + goog.getMsg("612"); + msg = MSG_EXTERNAL_3389162048858972318$$MANY_I18N_ELEMENTS_TS_611; + } else { + /* @ts-ignore */ + msg = $localize`612`; + } + return msg; +} +function i18n_612() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1583816522003992383$$MANY_I18N_ELEMENTS_TS_612 = + /* @ts-ignore */ + goog.getMsg("613"); + msg = MSG_EXTERNAL_1583816522003992383$$MANY_I18N_ELEMENTS_TS_612; + } else { + /* @ts-ignore */ + msg = $localize`613`; + } + return msg; +} +function i18n_613() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3523530736714652172$$MANY_I18N_ELEMENTS_TS_613 = + /* @ts-ignore */ + goog.getMsg("614"); + msg = MSG_EXTERNAL_3523530736714652172$$MANY_I18N_ELEMENTS_TS_613; + } else { + /* @ts-ignore */ + msg = $localize`614`; + } + return msg; +} +function i18n_614() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6429502147777377124$$MANY_I18N_ELEMENTS_TS_614 = + /* @ts-ignore */ + goog.getMsg("615"); + msg = MSG_EXTERNAL_6429502147777377124$$MANY_I18N_ELEMENTS_TS_614; + } else { + /* @ts-ignore */ + msg = $localize`615`; + } + return msg; +} +function i18n_615() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3407114967522550478$$MANY_I18N_ELEMENTS_TS_615 = + /* @ts-ignore */ + goog.getMsg("616"); + msg = MSG_EXTERNAL_3407114967522550478$$MANY_I18N_ELEMENTS_TS_615; + } else { + /* @ts-ignore */ + msg = $localize`616`; + } + return msg; +} +function i18n_616() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3661822566573305399$$MANY_I18N_ELEMENTS_TS_616 = + /* @ts-ignore */ + goog.getMsg("617"); + msg = MSG_EXTERNAL_3661822566573305399$$MANY_I18N_ELEMENTS_TS_616; + } else { + /* @ts-ignore */ + msg = $localize`617`; + } + return msg; +} +function i18n_617() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7834071633285307400$$MANY_I18N_ELEMENTS_TS_617 = + /* @ts-ignore */ + goog.getMsg("618"); + msg = MSG_EXTERNAL_7834071633285307400$$MANY_I18N_ELEMENTS_TS_617; + } else { + /* @ts-ignore */ + msg = $localize`618`; + } + return msg; +} +function i18n_618() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8167427092667557758$$MANY_I18N_ELEMENTS_TS_618 = + /* @ts-ignore */ + goog.getMsg("619"); + msg = MSG_EXTERNAL_8167427092667557758$$MANY_I18N_ELEMENTS_TS_618; + } else { + /* @ts-ignore */ + msg = $localize`619`; + } + return msg; +} +function i18n_619() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3997128240474656940$$MANY_I18N_ELEMENTS_TS_619 = + /* @ts-ignore */ + goog.getMsg("620"); + msg = MSG_EXTERNAL_3997128240474656940$$MANY_I18N_ELEMENTS_TS_619; + } else { + /* @ts-ignore */ + msg = $localize`620`; + } + return msg; +} +function i18n_620() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2563144669055378111$$MANY_I18N_ELEMENTS_TS_620 = + /* @ts-ignore */ + goog.getMsg("621"); + msg = MSG_EXTERNAL_2563144669055378111$$MANY_I18N_ELEMENTS_TS_620; + } else { + /* @ts-ignore */ + msg = $localize`621`; + } + return msg; +} +function i18n_621() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6086511944763089772$$MANY_I18N_ELEMENTS_TS_621 = + /* @ts-ignore */ + goog.getMsg("622"); + msg = MSG_EXTERNAL_6086511944763089772$$MANY_I18N_ELEMENTS_TS_621; + } else { + /* @ts-ignore */ + msg = $localize`622`; + } + return msg; +} +function i18n_622() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7786572920245783056$$MANY_I18N_ELEMENTS_TS_622 = + /* @ts-ignore */ + goog.getMsg("623"); + msg = MSG_EXTERNAL_7786572920245783056$$MANY_I18N_ELEMENTS_TS_622; + } else { + /* @ts-ignore */ + msg = $localize`623`; + } + return msg; +} +function i18n_623() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4295027757457296507$$MANY_I18N_ELEMENTS_TS_623 = + /* @ts-ignore */ + goog.getMsg("624"); + msg = MSG_EXTERNAL_4295027757457296507$$MANY_I18N_ELEMENTS_TS_623; + } else { + /* @ts-ignore */ + msg = $localize`624`; + } + return msg; +} +function i18n_624() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3661556099666925070$$MANY_I18N_ELEMENTS_TS_624 = + /* @ts-ignore */ + goog.getMsg("625"); + msg = MSG_EXTERNAL_3661556099666925070$$MANY_I18N_ELEMENTS_TS_624; + } else { + /* @ts-ignore */ + msg = $localize`625`; + } + return msg; +} +function i18n_625() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_886505315006087504$$MANY_I18N_ELEMENTS_TS_625 = + /* @ts-ignore */ + goog.getMsg("626"); + msg = MSG_EXTERNAL_886505315006087504$$MANY_I18N_ELEMENTS_TS_625; + } else { + /* @ts-ignore */ + msg = $localize`626`; + } + return msg; +} +function i18n_626() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3037055336989464897$$MANY_I18N_ELEMENTS_TS_626 = + /* @ts-ignore */ + goog.getMsg("627"); + msg = MSG_EXTERNAL_3037055336989464897$$MANY_I18N_ELEMENTS_TS_626; + } else { + /* @ts-ignore */ + msg = $localize`627`; + } + return msg; +} +function i18n_627() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4635606041683997137$$MANY_I18N_ELEMENTS_TS_627 = + /* @ts-ignore */ + goog.getMsg("628"); + msg = MSG_EXTERNAL_4635606041683997137$$MANY_I18N_ELEMENTS_TS_627; + } else { + /* @ts-ignore */ + msg = $localize`628`; + } + return msg; +} +function i18n_628() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6525442747972369068$$MANY_I18N_ELEMENTS_TS_628 = + /* @ts-ignore */ + goog.getMsg("629"); + msg = MSG_EXTERNAL_6525442747972369068$$MANY_I18N_ELEMENTS_TS_628; + } else { + /* @ts-ignore */ + msg = $localize`629`; + } + return msg; +} +function i18n_629() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1031854065713884918$$MANY_I18N_ELEMENTS_TS_629 = + /* @ts-ignore */ + goog.getMsg("630"); + msg = MSG_EXTERNAL_1031854065713884918$$MANY_I18N_ELEMENTS_TS_629; + } else { + /* @ts-ignore */ + msg = $localize`630`; + } + return msg; +} +function i18n_630() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7662386530910408047$$MANY_I18N_ELEMENTS_TS_630 = + /* @ts-ignore */ + goog.getMsg("631"); + msg = MSG_EXTERNAL_7662386530910408047$$MANY_I18N_ELEMENTS_TS_630; + } else { + /* @ts-ignore */ + msg = $localize`631`; + } + return msg; +} +function i18n_631() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6400042755783393394$$MANY_I18N_ELEMENTS_TS_631 = + /* @ts-ignore */ + goog.getMsg("632"); + msg = MSG_EXTERNAL_6400042755783393394$$MANY_I18N_ELEMENTS_TS_631; + } else { + /* @ts-ignore */ + msg = $localize`632`; + } + return msg; +} +function i18n_632() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6332604276033001266$$MANY_I18N_ELEMENTS_TS_632 = + /* @ts-ignore */ + goog.getMsg("633"); + msg = MSG_EXTERNAL_6332604276033001266$$MANY_I18N_ELEMENTS_TS_632; + } else { + /* @ts-ignore */ + msg = $localize`633`; + } + return msg; +} +function i18n_633() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8077696543211280702$$MANY_I18N_ELEMENTS_TS_633 = + /* @ts-ignore */ + goog.getMsg("634"); + msg = MSG_EXTERNAL_8077696543211280702$$MANY_I18N_ELEMENTS_TS_633; + } else { + /* @ts-ignore */ + msg = $localize`634`; + } + return msg; +} +function i18n_634() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5481500973142458663$$MANY_I18N_ELEMENTS_TS_634 = + /* @ts-ignore */ + goog.getMsg("635"); + msg = MSG_EXTERNAL_5481500973142458663$$MANY_I18N_ELEMENTS_TS_634; + } else { + /* @ts-ignore */ + msg = $localize`635`; + } + return msg; +} +function i18n_635() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_68805895023637041$$MANY_I18N_ELEMENTS_TS_635 = + /* @ts-ignore */ + goog.getMsg("636"); + msg = MSG_EXTERNAL_68805895023637041$$MANY_I18N_ELEMENTS_TS_635; + } else { + /* @ts-ignore */ + msg = $localize`636`; + } + return msg; +} +function i18n_636() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_181058366337683857$$MANY_I18N_ELEMENTS_TS_636 = + /* @ts-ignore */ + goog.getMsg("637"); + msg = MSG_EXTERNAL_181058366337683857$$MANY_I18N_ELEMENTS_TS_636; + } else { + /* @ts-ignore */ + msg = $localize`637`; + } + return msg; +} +function i18n_637() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5796037781781991039$$MANY_I18N_ELEMENTS_TS_637 = + /* @ts-ignore */ + goog.getMsg("638"); + msg = MSG_EXTERNAL_5796037781781991039$$MANY_I18N_ELEMENTS_TS_637; + } else { + /* @ts-ignore */ + msg = $localize`638`; + } + return msg; +} +function i18n_638() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8690596733696151310$$MANY_I18N_ELEMENTS_TS_638 = + /* @ts-ignore */ + goog.getMsg("639"); + msg = MSG_EXTERNAL_8690596733696151310$$MANY_I18N_ELEMENTS_TS_638; + } else { + /* @ts-ignore */ + msg = $localize`639`; + } + return msg; +} +function i18n_639() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8450058067148968516$$MANY_I18N_ELEMENTS_TS_639 = + /* @ts-ignore */ + goog.getMsg("640"); + msg = MSG_EXTERNAL_8450058067148968516$$MANY_I18N_ELEMENTS_TS_639; + } else { + /* @ts-ignore */ + msg = $localize`640`; + } + return msg; +} +function i18n_640() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2483495200320224140$$MANY_I18N_ELEMENTS_TS_640 = + /* @ts-ignore */ + goog.getMsg("641"); + msg = MSG_EXTERNAL_2483495200320224140$$MANY_I18N_ELEMENTS_TS_640; + } else { + /* @ts-ignore */ + msg = $localize`641`; + } + return msg; +} +function i18n_641() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8795696146200580312$$MANY_I18N_ELEMENTS_TS_641 = + /* @ts-ignore */ + goog.getMsg("642"); + msg = MSG_EXTERNAL_8795696146200580312$$MANY_I18N_ELEMENTS_TS_641; + } else { + /* @ts-ignore */ + msg = $localize`642`; + } + return msg; +} +function i18n_642() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5779264732003938503$$MANY_I18N_ELEMENTS_TS_642 = + /* @ts-ignore */ + goog.getMsg("643"); + msg = MSG_EXTERNAL_5779264732003938503$$MANY_I18N_ELEMENTS_TS_642; + } else { + /* @ts-ignore */ + msg = $localize`643`; + } + return msg; +} +function i18n_643() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3839780120878232394$$MANY_I18N_ELEMENTS_TS_643 = + /* @ts-ignore */ + goog.getMsg("644"); + msg = MSG_EXTERNAL_3839780120878232394$$MANY_I18N_ELEMENTS_TS_643; + } else { + /* @ts-ignore */ + msg = $localize`644`; + } + return msg; +} +function i18n_644() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7644769998360792672$$MANY_I18N_ELEMENTS_TS_644 = + /* @ts-ignore */ + goog.getMsg("645"); + msg = MSG_EXTERNAL_7644769998360792672$$MANY_I18N_ELEMENTS_TS_644; + } else { + /* @ts-ignore */ + msg = $localize`645`; + } + return msg; +} +function i18n_645() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7529928260570834496$$MANY_I18N_ELEMENTS_TS_645 = + /* @ts-ignore */ + goog.getMsg("646"); + msg = MSG_EXTERNAL_7529928260570834496$$MANY_I18N_ELEMENTS_TS_645; + } else { + /* @ts-ignore */ + msg = $localize`646`; + } + return msg; +} +function i18n_646() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8782532094893087477$$MANY_I18N_ELEMENTS_TS_646 = + /* @ts-ignore */ + goog.getMsg("647"); + msg = MSG_EXTERNAL_8782532094893087477$$MANY_I18N_ELEMENTS_TS_646; + } else { + /* @ts-ignore */ + msg = $localize`647`; + } + return msg; +} +function i18n_647() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3498480433716116779$$MANY_I18N_ELEMENTS_TS_647 = + /* @ts-ignore */ + goog.getMsg("648"); + msg = MSG_EXTERNAL_3498480433716116779$$MANY_I18N_ELEMENTS_TS_647; + } else { + /* @ts-ignore */ + msg = $localize`648`; + } + return msg; +} +function i18n_648() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2250854831408502928$$MANY_I18N_ELEMENTS_TS_648 = + /* @ts-ignore */ + goog.getMsg("649"); + msg = MSG_EXTERNAL_2250854831408502928$$MANY_I18N_ELEMENTS_TS_648; + } else { + /* @ts-ignore */ + msg = $localize`649`; + } + return msg; +} +function i18n_649() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8468523236312389542$$MANY_I18N_ELEMENTS_TS_649 = + /* @ts-ignore */ + goog.getMsg("650"); + msg = MSG_EXTERNAL_8468523236312389542$$MANY_I18N_ELEMENTS_TS_649; + } else { + /* @ts-ignore */ + msg = $localize`650`; + } + return msg; +} +function i18n_650() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6763526321726820236$$MANY_I18N_ELEMENTS_TS_650 = + /* @ts-ignore */ + goog.getMsg("651"); + msg = MSG_EXTERNAL_6763526321726820236$$MANY_I18N_ELEMENTS_TS_650; + } else { + /* @ts-ignore */ + msg = $localize`651`; + } + return msg; +} +function i18n_651() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1543510284016827890$$MANY_I18N_ELEMENTS_TS_651 = + /* @ts-ignore */ + goog.getMsg("652"); + msg = MSG_EXTERNAL_1543510284016827890$$MANY_I18N_ELEMENTS_TS_651; + } else { + /* @ts-ignore */ + msg = $localize`652`; + } + return msg; +} +function i18n_652() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3943492540547491102$$MANY_I18N_ELEMENTS_TS_652 = + /* @ts-ignore */ + goog.getMsg("653"); + msg = MSG_EXTERNAL_3943492540547491102$$MANY_I18N_ELEMENTS_TS_652; + } else { + /* @ts-ignore */ + msg = $localize`653`; + } + return msg; +} +function i18n_653() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1821678905941686382$$MANY_I18N_ELEMENTS_TS_653 = + /* @ts-ignore */ + goog.getMsg("654"); + msg = MSG_EXTERNAL_1821678905941686382$$MANY_I18N_ELEMENTS_TS_653; + } else { + /* @ts-ignore */ + msg = $localize`654`; + } + return msg; +} +function i18n_654() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4288688957897758334$$MANY_I18N_ELEMENTS_TS_654 = + /* @ts-ignore */ + goog.getMsg("655"); + msg = MSG_EXTERNAL_4288688957897758334$$MANY_I18N_ELEMENTS_TS_654; + } else { + /* @ts-ignore */ + msg = $localize`655`; + } + return msg; +} +function i18n_655() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7742163796071914546$$MANY_I18N_ELEMENTS_TS_655 = + /* @ts-ignore */ + goog.getMsg("656"); + msg = MSG_EXTERNAL_7742163796071914546$$MANY_I18N_ELEMENTS_TS_655; + } else { + /* @ts-ignore */ + msg = $localize`656`; + } + return msg; +} +function i18n_656() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6018421906459524896$$MANY_I18N_ELEMENTS_TS_656 = + /* @ts-ignore */ + goog.getMsg("657"); + msg = MSG_EXTERNAL_6018421906459524896$$MANY_I18N_ELEMENTS_TS_656; + } else { + /* @ts-ignore */ + msg = $localize`657`; + } + return msg; +} +function i18n_657() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4924128521310407541$$MANY_I18N_ELEMENTS_TS_657 = + /* @ts-ignore */ + goog.getMsg("658"); + msg = MSG_EXTERNAL_4924128521310407541$$MANY_I18N_ELEMENTS_TS_657; + } else { + /* @ts-ignore */ + msg = $localize`658`; + } + return msg; +} +function i18n_658() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1485437957049141529$$MANY_I18N_ELEMENTS_TS_658 = + /* @ts-ignore */ + goog.getMsg("659"); + msg = MSG_EXTERNAL_1485437957049141529$$MANY_I18N_ELEMENTS_TS_658; + } else { + /* @ts-ignore */ + msg = $localize`659`; + } + return msg; +} +function i18n_659() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7752444021361355425$$MANY_I18N_ELEMENTS_TS_659 = + /* @ts-ignore */ + goog.getMsg("660"); + msg = MSG_EXTERNAL_7752444021361355425$$MANY_I18N_ELEMENTS_TS_659; + } else { + /* @ts-ignore */ + msg = $localize`660`; + } + return msg; +} +function i18n_660() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5915857773873700899$$MANY_I18N_ELEMENTS_TS_660 = + /* @ts-ignore */ + goog.getMsg("661"); + msg = MSG_EXTERNAL_5915857773873700899$$MANY_I18N_ELEMENTS_TS_660; + } else { + /* @ts-ignore */ + msg = $localize`661`; + } + return msg; +} +function i18n_661() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5654948568624516120$$MANY_I18N_ELEMENTS_TS_661 = + /* @ts-ignore */ + goog.getMsg("662"); + msg = MSG_EXTERNAL_5654948568624516120$$MANY_I18N_ELEMENTS_TS_661; + } else { + /* @ts-ignore */ + msg = $localize`662`; + } + return msg; +} +function i18n_662() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8181158467258474028$$MANY_I18N_ELEMENTS_TS_662 = + /* @ts-ignore */ + goog.getMsg("663"); + msg = MSG_EXTERNAL_8181158467258474028$$MANY_I18N_ELEMENTS_TS_662; + } else { + /* @ts-ignore */ + msg = $localize`663`; + } + return msg; +} +function i18n_663() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8612646531777918899$$MANY_I18N_ELEMENTS_TS_663 = + /* @ts-ignore */ + goog.getMsg("664"); + msg = MSG_EXTERNAL_8612646531777918899$$MANY_I18N_ELEMENTS_TS_663; + } else { + /* @ts-ignore */ + msg = $localize`664`; + } + return msg; +} +function i18n_664() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4083312503802804640$$MANY_I18N_ELEMENTS_TS_664 = + /* @ts-ignore */ + goog.getMsg("665"); + msg = MSG_EXTERNAL_4083312503802804640$$MANY_I18N_ELEMENTS_TS_664; + } else { + /* @ts-ignore */ + msg = $localize`665`; + } + return msg; +} +function i18n_665() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8533930265514194568$$MANY_I18N_ELEMENTS_TS_665 = + /* @ts-ignore */ + goog.getMsg("666"); + msg = MSG_EXTERNAL_8533930265514194568$$MANY_I18N_ELEMENTS_TS_665; + } else { + /* @ts-ignore */ + msg = $localize`666`; + } + return msg; +} +function i18n_666() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2810704386001307822$$MANY_I18N_ELEMENTS_TS_666 = + /* @ts-ignore */ + goog.getMsg("667"); + msg = MSG_EXTERNAL_2810704386001307822$$MANY_I18N_ELEMENTS_TS_666; + } else { + /* @ts-ignore */ + msg = $localize`667`; + } + return msg; +} +function i18n_667() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4169577441056627402$$MANY_I18N_ELEMENTS_TS_667 = + /* @ts-ignore */ + goog.getMsg("668"); + msg = MSG_EXTERNAL_4169577441056627402$$MANY_I18N_ELEMENTS_TS_667; + } else { + /* @ts-ignore */ + msg = $localize`668`; + } + return msg; +} +function i18n_668() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8054181840914594559$$MANY_I18N_ELEMENTS_TS_668 = + /* @ts-ignore */ + goog.getMsg("669"); + msg = MSG_EXTERNAL_8054181840914594559$$MANY_I18N_ELEMENTS_TS_668; + } else { + /* @ts-ignore */ + msg = $localize`669`; + } + return msg; +} +function i18n_669() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5013042004666104740$$MANY_I18N_ELEMENTS_TS_669 = + /* @ts-ignore */ + goog.getMsg("670"); + msg = MSG_EXTERNAL_5013042004666104740$$MANY_I18N_ELEMENTS_TS_669; + } else { + /* @ts-ignore */ + msg = $localize`670`; + } + return msg; +} +function i18n_670() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_61316860313367070$$MANY_I18N_ELEMENTS_TS_670 = + /* @ts-ignore */ + goog.getMsg("671"); + msg = MSG_EXTERNAL_61316860313367070$$MANY_I18N_ELEMENTS_TS_670; + } else { + /* @ts-ignore */ + msg = $localize`671`; + } + return msg; +} +function i18n_671() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8519306278390481387$$MANY_I18N_ELEMENTS_TS_671 = + /* @ts-ignore */ + goog.getMsg("672"); + msg = MSG_EXTERNAL_8519306278390481387$$MANY_I18N_ELEMENTS_TS_671; + } else { + /* @ts-ignore */ + msg = $localize`672`; + } + return msg; +} +function i18n_672() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5409952686243007563$$MANY_I18N_ELEMENTS_TS_672 = + /* @ts-ignore */ + goog.getMsg("673"); + msg = MSG_EXTERNAL_5409952686243007563$$MANY_I18N_ELEMENTS_TS_672; + } else { + /* @ts-ignore */ + msg = $localize`673`; + } + return msg; +} +function i18n_673() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1648071507833607765$$MANY_I18N_ELEMENTS_TS_673 = + /* @ts-ignore */ + goog.getMsg("674"); + msg = MSG_EXTERNAL_1648071507833607765$$MANY_I18N_ELEMENTS_TS_673; + } else { + /* @ts-ignore */ + msg = $localize`674`; + } + return msg; +} +function i18n_674() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8441488852311348253$$MANY_I18N_ELEMENTS_TS_674 = + /* @ts-ignore */ + goog.getMsg("675"); + msg = MSG_EXTERNAL_8441488852311348253$$MANY_I18N_ELEMENTS_TS_674; + } else { + /* @ts-ignore */ + msg = $localize`675`; + } + return msg; +} +function i18n_675() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2935593410217541082$$MANY_I18N_ELEMENTS_TS_675 = + /* @ts-ignore */ + goog.getMsg("676"); + msg = MSG_EXTERNAL_2935593410217541082$$MANY_I18N_ELEMENTS_TS_675; + } else { + /* @ts-ignore */ + msg = $localize`676`; + } + return msg; +} +function i18n_676() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_941428253729056387$$MANY_I18N_ELEMENTS_TS_676 = + /* @ts-ignore */ + goog.getMsg("677"); + msg = MSG_EXTERNAL_941428253729056387$$MANY_I18N_ELEMENTS_TS_676; + } else { + /* @ts-ignore */ + msg = $localize`677`; + } + return msg; +} +function i18n_677() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1121755268578688340$$MANY_I18N_ELEMENTS_TS_677 = + /* @ts-ignore */ + goog.getMsg("678"); + msg = MSG_EXTERNAL_1121755268578688340$$MANY_I18N_ELEMENTS_TS_677; + } else { + /* @ts-ignore */ + msg = $localize`678`; + } + return msg; +} +function i18n_678() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9210296859470888090$$MANY_I18N_ELEMENTS_TS_678 = + /* @ts-ignore */ + goog.getMsg("679"); + msg = MSG_EXTERNAL_9210296859470888090$$MANY_I18N_ELEMENTS_TS_678; + } else { + /* @ts-ignore */ + msg = $localize`679`; + } + return msg; +} +function i18n_679() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4075650586789706134$$MANY_I18N_ELEMENTS_TS_679 = + /* @ts-ignore */ + goog.getMsg("680"); + msg = MSG_EXTERNAL_4075650586789706134$$MANY_I18N_ELEMENTS_TS_679; + } else { + /* @ts-ignore */ + msg = $localize`680`; + } + return msg; +} +function i18n_680() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8223081118926581309$$MANY_I18N_ELEMENTS_TS_680 = + /* @ts-ignore */ + goog.getMsg("681"); + msg = MSG_EXTERNAL_8223081118926581309$$MANY_I18N_ELEMENTS_TS_680; + } else { + /* @ts-ignore */ + msg = $localize`681`; + } + return msg; +} +function i18n_681() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_567124123097300804$$MANY_I18N_ELEMENTS_TS_681 = + /* @ts-ignore */ + goog.getMsg("682"); + msg = MSG_EXTERNAL_567124123097300804$$MANY_I18N_ELEMENTS_TS_681; + } else { + /* @ts-ignore */ + msg = $localize`682`; + } + return msg; +} +function i18n_682() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3065659317979098943$$MANY_I18N_ELEMENTS_TS_682 = + /* @ts-ignore */ + goog.getMsg("683"); + msg = MSG_EXTERNAL_3065659317979098943$$MANY_I18N_ELEMENTS_TS_682; + } else { + /* @ts-ignore */ + msg = $localize`683`; + } + return msg; +} +function i18n_683() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2778229072263063368$$MANY_I18N_ELEMENTS_TS_683 = + /* @ts-ignore */ + goog.getMsg("684"); + msg = MSG_EXTERNAL_2778229072263063368$$MANY_I18N_ELEMENTS_TS_683; + } else { + /* @ts-ignore */ + msg = $localize`684`; + } + return msg; +} +function i18n_684() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3668581224623389273$$MANY_I18N_ELEMENTS_TS_684 = + /* @ts-ignore */ + goog.getMsg("685"); + msg = MSG_EXTERNAL_3668581224623389273$$MANY_I18N_ELEMENTS_TS_684; + } else { + /* @ts-ignore */ + msg = $localize`685`; + } + return msg; +} +function i18n_685() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_17469824768251674$$MANY_I18N_ELEMENTS_TS_685 = + /* @ts-ignore */ + goog.getMsg("686"); + msg = MSG_EXTERNAL_17469824768251674$$MANY_I18N_ELEMENTS_TS_685; + } else { + /* @ts-ignore */ + msg = $localize`686`; + } + return msg; +} +function i18n_686() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2021057401590594042$$MANY_I18N_ELEMENTS_TS_686 = + /* @ts-ignore */ + goog.getMsg("687"); + msg = MSG_EXTERNAL_2021057401590594042$$MANY_I18N_ELEMENTS_TS_686; + } else { + /* @ts-ignore */ + msg = $localize`687`; + } + return msg; +} +function i18n_687() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1040379532845027589$$MANY_I18N_ELEMENTS_TS_687 = + /* @ts-ignore */ + goog.getMsg("688"); + msg = MSG_EXTERNAL_1040379532845027589$$MANY_I18N_ELEMENTS_TS_687; + } else { + /* @ts-ignore */ + msg = $localize`688`; + } + return msg; +} +function i18n_688() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1614433729807273255$$MANY_I18N_ELEMENTS_TS_688 = + /* @ts-ignore */ + goog.getMsg("689"); + msg = MSG_EXTERNAL_1614433729807273255$$MANY_I18N_ELEMENTS_TS_688; + } else { + /* @ts-ignore */ + msg = $localize`689`; + } + return msg; +} +function i18n_689() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2501153824270813728$$MANY_I18N_ELEMENTS_TS_689 = + /* @ts-ignore */ + goog.getMsg("690"); + msg = MSG_EXTERNAL_2501153824270813728$$MANY_I18N_ELEMENTS_TS_689; + } else { + /* @ts-ignore */ + msg = $localize`690`; + } + return msg; +} +function i18n_690() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7758365448456086555$$MANY_I18N_ELEMENTS_TS_690 = + /* @ts-ignore */ + goog.getMsg("691"); + msg = MSG_EXTERNAL_7758365448456086555$$MANY_I18N_ELEMENTS_TS_690; + } else { + /* @ts-ignore */ + msg = $localize`691`; + } + return msg; +} +function i18n_691() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2751913178448602821$$MANY_I18N_ELEMENTS_TS_691 = + /* @ts-ignore */ + goog.getMsg("692"); + msg = MSG_EXTERNAL_2751913178448602821$$MANY_I18N_ELEMENTS_TS_691; + } else { + /* @ts-ignore */ + msg = $localize`692`; + } + return msg; +} +function i18n_692() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5756625862033098242$$MANY_I18N_ELEMENTS_TS_692 = + /* @ts-ignore */ + goog.getMsg("693"); + msg = MSG_EXTERNAL_5756625862033098242$$MANY_I18N_ELEMENTS_TS_692; + } else { + /* @ts-ignore */ + msg = $localize`693`; + } + return msg; +} +function i18n_693() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8645666064162852193$$MANY_I18N_ELEMENTS_TS_693 = + /* @ts-ignore */ + goog.getMsg("694"); + msg = MSG_EXTERNAL_8645666064162852193$$MANY_I18N_ELEMENTS_TS_693; + } else { + /* @ts-ignore */ + msg = $localize`694`; + } + return msg; +} +function i18n_694() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3337079046122075821$$MANY_I18N_ELEMENTS_TS_694 = + /* @ts-ignore */ + goog.getMsg("695"); + msg = MSG_EXTERNAL_3337079046122075821$$MANY_I18N_ELEMENTS_TS_694; + } else { + /* @ts-ignore */ + msg = $localize`695`; + } + return msg; +} +function i18n_695() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3862686946722382548$$MANY_I18N_ELEMENTS_TS_695 = + /* @ts-ignore */ + goog.getMsg("696"); + msg = MSG_EXTERNAL_3862686946722382548$$MANY_I18N_ELEMENTS_TS_695; + } else { + /* @ts-ignore */ + msg = $localize`696`; + } + return msg; +} +function i18n_696() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6506173025720606822$$MANY_I18N_ELEMENTS_TS_696 = + /* @ts-ignore */ + goog.getMsg("697"); + msg = MSG_EXTERNAL_6506173025720606822$$MANY_I18N_ELEMENTS_TS_696; + } else { + /* @ts-ignore */ + msg = $localize`697`; + } + return msg; +} +function i18n_697() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6275557106142806811$$MANY_I18N_ELEMENTS_TS_697 = + /* @ts-ignore */ + goog.getMsg("698"); + msg = MSG_EXTERNAL_6275557106142806811$$MANY_I18N_ELEMENTS_TS_697; + } else { + /* @ts-ignore */ + msg = $localize`698`; + } + return msg; +} +function i18n_698() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7622531084037683319$$MANY_I18N_ELEMENTS_TS_698 = + /* @ts-ignore */ + goog.getMsg("699"); + msg = MSG_EXTERNAL_7622531084037683319$$MANY_I18N_ELEMENTS_TS_698; + } else { + /* @ts-ignore */ + msg = $localize`699`; + } + return msg; +} +function i18n_699() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4332372897673253973$$MANY_I18N_ELEMENTS_TS_699 = + /* @ts-ignore */ + goog.getMsg("700"); + msg = MSG_EXTERNAL_4332372897673253973$$MANY_I18N_ELEMENTS_TS_699; + } else { + /* @ts-ignore */ + msg = $localize`700`; + } + return msg; +} +function i18n_700() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1860004902610510936$$MANY_I18N_ELEMENTS_TS_700 = + /* @ts-ignore */ + goog.getMsg("701"); + msg = MSG_EXTERNAL_1860004902610510936$$MANY_I18N_ELEMENTS_TS_700; + } else { + /* @ts-ignore */ + msg = $localize`701`; + } + return msg; +} +function i18n_701() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3974742626766578911$$MANY_I18N_ELEMENTS_TS_701 = + /* @ts-ignore */ + goog.getMsg("702"); + msg = MSG_EXTERNAL_3974742626766578911$$MANY_I18N_ELEMENTS_TS_701; + } else { + /* @ts-ignore */ + msg = $localize`702`; + } + return msg; +} +function i18n_702() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2189636116637677712$$MANY_I18N_ELEMENTS_TS_702 = + /* @ts-ignore */ + goog.getMsg("703"); + msg = MSG_EXTERNAL_2189636116637677712$$MANY_I18N_ELEMENTS_TS_702; + } else { + /* @ts-ignore */ + msg = $localize`703`; + } + return msg; +} +function i18n_703() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2612811517762853271$$MANY_I18N_ELEMENTS_TS_703 = + /* @ts-ignore */ + goog.getMsg("704"); + msg = MSG_EXTERNAL_2612811517762853271$$MANY_I18N_ELEMENTS_TS_703; + } else { + /* @ts-ignore */ + msg = $localize`704`; + } + return msg; +} +function i18n_704() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6664611260628287284$$MANY_I18N_ELEMENTS_TS_704 = + /* @ts-ignore */ + goog.getMsg("705"); + msg = MSG_EXTERNAL_6664611260628287284$$MANY_I18N_ELEMENTS_TS_704; + } else { + /* @ts-ignore */ + msg = $localize`705`; + } + return msg; +} +function i18n_705() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6587540031613476071$$MANY_I18N_ELEMENTS_TS_705 = + /* @ts-ignore */ + goog.getMsg("706"); + msg = MSG_EXTERNAL_6587540031613476071$$MANY_I18N_ELEMENTS_TS_705; + } else { + /* @ts-ignore */ + msg = $localize`706`; + } + return msg; +} +function i18n_706() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1601990680117149075$$MANY_I18N_ELEMENTS_TS_706 = + /* @ts-ignore */ + goog.getMsg("707"); + msg = MSG_EXTERNAL_1601990680117149075$$MANY_I18N_ELEMENTS_TS_706; + } else { + /* @ts-ignore */ + msg = $localize`707`; + } + return msg; +} +function i18n_707() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5795503665947221014$$MANY_I18N_ELEMENTS_TS_707 = + /* @ts-ignore */ + goog.getMsg("708"); + msg = MSG_EXTERNAL_5795503665947221014$$MANY_I18N_ELEMENTS_TS_707; + } else { + /* @ts-ignore */ + msg = $localize`708`; + } + return msg; +} +function i18n_708() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4987881968531678098$$MANY_I18N_ELEMENTS_TS_708 = + /* @ts-ignore */ + goog.getMsg("709"); + msg = MSG_EXTERNAL_4987881968531678098$$MANY_I18N_ELEMENTS_TS_708; + } else { + /* @ts-ignore */ + msg = $localize`709`; + } + return msg; +} +function i18n_709() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_591225538626516963$$MANY_I18N_ELEMENTS_TS_709 = + /* @ts-ignore */ + goog.getMsg("710"); + msg = MSG_EXTERNAL_591225538626516963$$MANY_I18N_ELEMENTS_TS_709; + } else { + /* @ts-ignore */ + msg = $localize`710`; + } + return msg; +} +function i18n_710() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6751468249039259217$$MANY_I18N_ELEMENTS_TS_710 = + /* @ts-ignore */ + goog.getMsg("711"); + msg = MSG_EXTERNAL_6751468249039259217$$MANY_I18N_ELEMENTS_TS_710; + } else { + /* @ts-ignore */ + msg = $localize`711`; + } + return msg; +} +function i18n_711() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9158611238924753419$$MANY_I18N_ELEMENTS_TS_711 = + /* @ts-ignore */ + goog.getMsg("712"); + msg = MSG_EXTERNAL_9158611238924753419$$MANY_I18N_ELEMENTS_TS_711; + } else { + /* @ts-ignore */ + msg = $localize`712`; + } + return msg; +} +function i18n_712() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2880517176312445736$$MANY_I18N_ELEMENTS_TS_712 = + /* @ts-ignore */ + goog.getMsg("713"); + msg = MSG_EXTERNAL_2880517176312445736$$MANY_I18N_ELEMENTS_TS_712; + } else { + /* @ts-ignore */ + msg = $localize`713`; + } + return msg; +} +function i18n_713() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4302609357339006321$$MANY_I18N_ELEMENTS_TS_713 = + /* @ts-ignore */ + goog.getMsg("714"); + msg = MSG_EXTERNAL_4302609357339006321$$MANY_I18N_ELEMENTS_TS_713; + } else { + /* @ts-ignore */ + msg = $localize`714`; + } + return msg; +} +function i18n_714() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8453878916079625279$$MANY_I18N_ELEMENTS_TS_714 = + /* @ts-ignore */ + goog.getMsg("715"); + msg = MSG_EXTERNAL_8453878916079625279$$MANY_I18N_ELEMENTS_TS_714; + } else { + /* @ts-ignore */ + msg = $localize`715`; + } + return msg; +} +function i18n_715() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7491601065298594636$$MANY_I18N_ELEMENTS_TS_715 = + /* @ts-ignore */ + goog.getMsg("716"); + msg = MSG_EXTERNAL_7491601065298594636$$MANY_I18N_ELEMENTS_TS_715; + } else { + /* @ts-ignore */ + msg = $localize`716`; + } + return msg; +} +function i18n_716() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5471879486856132841$$MANY_I18N_ELEMENTS_TS_716 = + /* @ts-ignore */ + goog.getMsg("717"); + msg = MSG_EXTERNAL_5471879486856132841$$MANY_I18N_ELEMENTS_TS_716; + } else { + /* @ts-ignore */ + msg = $localize`717`; + } + return msg; +} +function i18n_717() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4441960077735964026$$MANY_I18N_ELEMENTS_TS_717 = + /* @ts-ignore */ + goog.getMsg("718"); + msg = MSG_EXTERNAL_4441960077735964026$$MANY_I18N_ELEMENTS_TS_717; + } else { + /* @ts-ignore */ + msg = $localize`718`; + } + return msg; +} +function i18n_718() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7247020318691612281$$MANY_I18N_ELEMENTS_TS_718 = + /* @ts-ignore */ + goog.getMsg("719"); + msg = MSG_EXTERNAL_7247020318691612281$$MANY_I18N_ELEMENTS_TS_718; + } else { + /* @ts-ignore */ + msg = $localize`719`; + } + return msg; +} +function i18n_719() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8093658149569543488$$MANY_I18N_ELEMENTS_TS_719 = + /* @ts-ignore */ + goog.getMsg("720"); + msg = MSG_EXTERNAL_8093658149569543488$$MANY_I18N_ELEMENTS_TS_719; + } else { + /* @ts-ignore */ + msg = $localize`720`; + } + return msg; +} +function i18n_720() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9012132713944719727$$MANY_I18N_ELEMENTS_TS_720 = + /* @ts-ignore */ + goog.getMsg("721"); + msg = MSG_EXTERNAL_9012132713944719727$$MANY_I18N_ELEMENTS_TS_720; + } else { + /* @ts-ignore */ + msg = $localize`721`; + } + return msg; +} +function i18n_721() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_884483813704530410$$MANY_I18N_ELEMENTS_TS_721 = + /* @ts-ignore */ + goog.getMsg("722"); + msg = MSG_EXTERNAL_884483813704530410$$MANY_I18N_ELEMENTS_TS_721; + } else { + /* @ts-ignore */ + msg = $localize`722`; + } + return msg; +} +function i18n_722() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8880252123308139329$$MANY_I18N_ELEMENTS_TS_722 = + /* @ts-ignore */ + goog.getMsg("723"); + msg = MSG_EXTERNAL_8880252123308139329$$MANY_I18N_ELEMENTS_TS_722; + } else { + /* @ts-ignore */ + msg = $localize`723`; + } + return msg; +} +function i18n_723() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_463342707504198028$$MANY_I18N_ELEMENTS_TS_723 = + /* @ts-ignore */ + goog.getMsg("724"); + msg = MSG_EXTERNAL_463342707504198028$$MANY_I18N_ELEMENTS_TS_723; + } else { + /* @ts-ignore */ + msg = $localize`724`; + } + return msg; +} +function i18n_724() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2728648484323800440$$MANY_I18N_ELEMENTS_TS_724 = + /* @ts-ignore */ + goog.getMsg("725"); + msg = MSG_EXTERNAL_2728648484323800440$$MANY_I18N_ELEMENTS_TS_724; + } else { + /* @ts-ignore */ + msg = $localize`725`; + } + return msg; +} +function i18n_725() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_373142560191127839$$MANY_I18N_ELEMENTS_TS_725 = + /* @ts-ignore */ + goog.getMsg("726"); + msg = MSG_EXTERNAL_373142560191127839$$MANY_I18N_ELEMENTS_TS_725; + } else { + /* @ts-ignore */ + msg = $localize`726`; + } + return msg; +} +function i18n_726() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2358573508109969654$$MANY_I18N_ELEMENTS_TS_726 = + /* @ts-ignore */ + goog.getMsg("727"); + msg = MSG_EXTERNAL_2358573508109969654$$MANY_I18N_ELEMENTS_TS_726; + } else { + /* @ts-ignore */ + msg = $localize`727`; + } + return msg; +} +function i18n_727() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3992916623510847614$$MANY_I18N_ELEMENTS_TS_727 = + /* @ts-ignore */ + goog.getMsg("728"); + msg = MSG_EXTERNAL_3992916623510847614$$MANY_I18N_ELEMENTS_TS_727; + } else { + /* @ts-ignore */ + msg = $localize`728`; + } + return msg; +} +function i18n_728() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2137641368333487134$$MANY_I18N_ELEMENTS_TS_728 = + /* @ts-ignore */ + goog.getMsg("729"); + msg = MSG_EXTERNAL_2137641368333487134$$MANY_I18N_ELEMENTS_TS_728; + } else { + /* @ts-ignore */ + msg = $localize`729`; + } + return msg; +} +function i18n_729() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2411169627518470258$$MANY_I18N_ELEMENTS_TS_729 = + /* @ts-ignore */ + goog.getMsg("730"); + msg = MSG_EXTERNAL_2411169627518470258$$MANY_I18N_ELEMENTS_TS_729; + } else { + /* @ts-ignore */ + msg = $localize`730`; + } + return msg; +} +function i18n_730() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6980666020883504838$$MANY_I18N_ELEMENTS_TS_730 = + /* @ts-ignore */ + goog.getMsg("731"); + msg = MSG_EXTERNAL_6980666020883504838$$MANY_I18N_ELEMENTS_TS_730; + } else { + /* @ts-ignore */ + msg = $localize`731`; + } + return msg; +} +function i18n_731() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3729576884468944720$$MANY_I18N_ELEMENTS_TS_731 = + /* @ts-ignore */ + goog.getMsg("732"); + msg = MSG_EXTERNAL_3729576884468944720$$MANY_I18N_ELEMENTS_TS_731; + } else { + /* @ts-ignore */ + msg = $localize`732`; + } + return msg; +} +function i18n_732() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8438840527578016412$$MANY_I18N_ELEMENTS_TS_732 = + /* @ts-ignore */ + goog.getMsg("733"); + msg = MSG_EXTERNAL_8438840527578016412$$MANY_I18N_ELEMENTS_TS_732; + } else { + /* @ts-ignore */ + msg = $localize`733`; + } + return msg; +} +function i18n_733() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7481860888113493105$$MANY_I18N_ELEMENTS_TS_733 = + /* @ts-ignore */ + goog.getMsg("734"); + msg = MSG_EXTERNAL_7481860888113493105$$MANY_I18N_ELEMENTS_TS_733; + } else { + /* @ts-ignore */ + msg = $localize`734`; + } + return msg; +} +function i18n_734() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5622400606034928823$$MANY_I18N_ELEMENTS_TS_734 = + /* @ts-ignore */ + goog.getMsg("735"); + msg = MSG_EXTERNAL_5622400606034928823$$MANY_I18N_ELEMENTS_TS_734; + } else { + /* @ts-ignore */ + msg = $localize`735`; + } + return msg; +} +function i18n_735() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6729208316950098529$$MANY_I18N_ELEMENTS_TS_735 = + /* @ts-ignore */ + goog.getMsg("736"); + msg = MSG_EXTERNAL_6729208316950098529$$MANY_I18N_ELEMENTS_TS_735; + } else { + /* @ts-ignore */ + msg = $localize`736`; + } + return msg; +} +function i18n_736() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2490092137951529331$$MANY_I18N_ELEMENTS_TS_736 = + /* @ts-ignore */ + goog.getMsg("737"); + msg = MSG_EXTERNAL_2490092137951529331$$MANY_I18N_ELEMENTS_TS_736; + } else { + /* @ts-ignore */ + msg = $localize`737`; + } + return msg; +} +function i18n_737() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_919534262868803094$$MANY_I18N_ELEMENTS_TS_737 = + /* @ts-ignore */ + goog.getMsg("738"); + msg = MSG_EXTERNAL_919534262868803094$$MANY_I18N_ELEMENTS_TS_737; + } else { + /* @ts-ignore */ + msg = $localize`738`; + } + return msg; +} +function i18n_738() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9051083996840524823$$MANY_I18N_ELEMENTS_TS_738 = + /* @ts-ignore */ + goog.getMsg("739"); + msg = MSG_EXTERNAL_9051083996840524823$$MANY_I18N_ELEMENTS_TS_738; + } else { + /* @ts-ignore */ + msg = $localize`739`; + } + return msg; +} +function i18n_739() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5949782150517894851$$MANY_I18N_ELEMENTS_TS_739 = + /* @ts-ignore */ + goog.getMsg("740"); + msg = MSG_EXTERNAL_5949782150517894851$$MANY_I18N_ELEMENTS_TS_739; + } else { + /* @ts-ignore */ + msg = $localize`740`; + } + return msg; +} +function i18n_740() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8467196449485763416$$MANY_I18N_ELEMENTS_TS_740 = + /* @ts-ignore */ + goog.getMsg("741"); + msg = MSG_EXTERNAL_8467196449485763416$$MANY_I18N_ELEMENTS_TS_740; + } else { + /* @ts-ignore */ + msg = $localize`741`; + } + return msg; +} +function i18n_741() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1621187843280750623$$MANY_I18N_ELEMENTS_TS_741 = + /* @ts-ignore */ + goog.getMsg("742"); + msg = MSG_EXTERNAL_1621187843280750623$$MANY_I18N_ELEMENTS_TS_741; + } else { + /* @ts-ignore */ + msg = $localize`742`; + } + return msg; +} +function i18n_742() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8077573035785579449$$MANY_I18N_ELEMENTS_TS_742 = + /* @ts-ignore */ + goog.getMsg("743"); + msg = MSG_EXTERNAL_8077573035785579449$$MANY_I18N_ELEMENTS_TS_742; + } else { + /* @ts-ignore */ + msg = $localize`743`; + } + return msg; +} +function i18n_743() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3666575155015064350$$MANY_I18N_ELEMENTS_TS_743 = + /* @ts-ignore */ + goog.getMsg("744"); + msg = MSG_EXTERNAL_3666575155015064350$$MANY_I18N_ELEMENTS_TS_743; + } else { + /* @ts-ignore */ + msg = $localize`744`; + } + return msg; +} +function i18n_744() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4067334784313812341$$MANY_I18N_ELEMENTS_TS_744 = + /* @ts-ignore */ + goog.getMsg("745"); + msg = MSG_EXTERNAL_4067334784313812341$$MANY_I18N_ELEMENTS_TS_744; + } else { + /* @ts-ignore */ + msg = $localize`745`; + } + return msg; +} +function i18n_745() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8590158622504269310$$MANY_I18N_ELEMENTS_TS_745 = + /* @ts-ignore */ + goog.getMsg("746"); + msg = MSG_EXTERNAL_8590158622504269310$$MANY_I18N_ELEMENTS_TS_745; + } else { + /* @ts-ignore */ + msg = $localize`746`; + } + return msg; +} +function i18n_746() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1421970443151533364$$MANY_I18N_ELEMENTS_TS_746 = + /* @ts-ignore */ + goog.getMsg("747"); + msg = MSG_EXTERNAL_1421970443151533364$$MANY_I18N_ELEMENTS_TS_746; + } else { + /* @ts-ignore */ + msg = $localize`747`; + } + return msg; +} +function i18n_747() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3938658227151454940$$MANY_I18N_ELEMENTS_TS_747 = + /* @ts-ignore */ + goog.getMsg("748"); + msg = MSG_EXTERNAL_3938658227151454940$$MANY_I18N_ELEMENTS_TS_747; + } else { + /* @ts-ignore */ + msg = $localize`748`; + } + return msg; +} +function i18n_748() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7107298487227839810$$MANY_I18N_ELEMENTS_TS_748 = + /* @ts-ignore */ + goog.getMsg("749"); + msg = MSG_EXTERNAL_7107298487227839810$$MANY_I18N_ELEMENTS_TS_748; + } else { + /* @ts-ignore */ + msg = $localize`749`; + } + return msg; +} +function i18n_749() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1120299606461952478$$MANY_I18N_ELEMENTS_TS_749 = + /* @ts-ignore */ + goog.getMsg("750"); + msg = MSG_EXTERNAL_1120299606461952478$$MANY_I18N_ELEMENTS_TS_749; + } else { + /* @ts-ignore */ + msg = $localize`750`; + } + return msg; +} +function i18n_750() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3818362133160296029$$MANY_I18N_ELEMENTS_TS_750 = + /* @ts-ignore */ + goog.getMsg("751"); + msg = MSG_EXTERNAL_3818362133160296029$$MANY_I18N_ELEMENTS_TS_750; + } else { + /* @ts-ignore */ + msg = $localize`751`; + } + return msg; +} +function i18n_751() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1475143513970400156$$MANY_I18N_ELEMENTS_TS_751 = + /* @ts-ignore */ + goog.getMsg("752"); + msg = MSG_EXTERNAL_1475143513970400156$$MANY_I18N_ELEMENTS_TS_751; + } else { + /* @ts-ignore */ + msg = $localize`752`; + } + return msg; +} +function i18n_752() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_670723565601038578$$MANY_I18N_ELEMENTS_TS_752 = + /* @ts-ignore */ + goog.getMsg("753"); + msg = MSG_EXTERNAL_670723565601038578$$MANY_I18N_ELEMENTS_TS_752; + } else { + /* @ts-ignore */ + msg = $localize`753`; + } + return msg; +} +function i18n_753() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2014011320228737919$$MANY_I18N_ELEMENTS_TS_753 = + /* @ts-ignore */ + goog.getMsg("754"); + msg = MSG_EXTERNAL_2014011320228737919$$MANY_I18N_ELEMENTS_TS_753; + } else { + /* @ts-ignore */ + msg = $localize`754`; + } + return msg; +} +function i18n_754() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8084836133336095164$$MANY_I18N_ELEMENTS_TS_754 = + /* @ts-ignore */ + goog.getMsg("755"); + msg = MSG_EXTERNAL_8084836133336095164$$MANY_I18N_ELEMENTS_TS_754; + } else { + /* @ts-ignore */ + msg = $localize`755`; + } + return msg; +} +function i18n_755() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5599953443776292326$$MANY_I18N_ELEMENTS_TS_755 = + /* @ts-ignore */ + goog.getMsg("756"); + msg = MSG_EXTERNAL_5599953443776292326$$MANY_I18N_ELEMENTS_TS_755; + } else { + /* @ts-ignore */ + msg = $localize`756`; + } + return msg; +} +function i18n_756() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_922112052071138289$$MANY_I18N_ELEMENTS_TS_756 = + /* @ts-ignore */ + goog.getMsg("757"); + msg = MSG_EXTERNAL_922112052071138289$$MANY_I18N_ELEMENTS_TS_756; + } else { + /* @ts-ignore */ + msg = $localize`757`; + } + return msg; +} +function i18n_757() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1771409773231507203$$MANY_I18N_ELEMENTS_TS_757 = + /* @ts-ignore */ + goog.getMsg("758"); + msg = MSG_EXTERNAL_1771409773231507203$$MANY_I18N_ELEMENTS_TS_757; + } else { + /* @ts-ignore */ + msg = $localize`758`; + } + return msg; +} +function i18n_758() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1799476110044458329$$MANY_I18N_ELEMENTS_TS_758 = + /* @ts-ignore */ + goog.getMsg("759"); + msg = MSG_EXTERNAL_1799476110044458329$$MANY_I18N_ELEMENTS_TS_758; + } else { + /* @ts-ignore */ + msg = $localize`759`; + } + return msg; +} +function i18n_759() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2213214617964062399$$MANY_I18N_ELEMENTS_TS_759 = + /* @ts-ignore */ + goog.getMsg("760"); + msg = MSG_EXTERNAL_2213214617964062399$$MANY_I18N_ELEMENTS_TS_759; + } else { + /* @ts-ignore */ + msg = $localize`760`; + } + return msg; +} +function i18n_760() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5184923002801276181$$MANY_I18N_ELEMENTS_TS_760 = + /* @ts-ignore */ + goog.getMsg("761"); + msg = MSG_EXTERNAL_5184923002801276181$$MANY_I18N_ELEMENTS_TS_760; + } else { + /* @ts-ignore */ + msg = $localize`761`; + } + return msg; +} +function i18n_761() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8429203999666453428$$MANY_I18N_ELEMENTS_TS_761 = + /* @ts-ignore */ + goog.getMsg("762"); + msg = MSG_EXTERNAL_8429203999666453428$$MANY_I18N_ELEMENTS_TS_761; + } else { + /* @ts-ignore */ + msg = $localize`762`; + } + return msg; +} +function i18n_762() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_286502376650730418$$MANY_I18N_ELEMENTS_TS_762 = + /* @ts-ignore */ + goog.getMsg("763"); + msg = MSG_EXTERNAL_286502376650730418$$MANY_I18N_ELEMENTS_TS_762; + } else { + /* @ts-ignore */ + msg = $localize`763`; + } + return msg; +} +function i18n_763() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1536388372722367101$$MANY_I18N_ELEMENTS_TS_763 = + /* @ts-ignore */ + goog.getMsg("764"); + msg = MSG_EXTERNAL_1536388372722367101$$MANY_I18N_ELEMENTS_TS_763; + } else { + /* @ts-ignore */ + msg = $localize`764`; + } + return msg; +} +function i18n_764() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8275602049429002932$$MANY_I18N_ELEMENTS_TS_764 = + /* @ts-ignore */ + goog.getMsg("765"); + msg = MSG_EXTERNAL_8275602049429002932$$MANY_I18N_ELEMENTS_TS_764; + } else { + /* @ts-ignore */ + msg = $localize`765`; + } + return msg; +} +function i18n_765() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8983433350294122716$$MANY_I18N_ELEMENTS_TS_765 = + /* @ts-ignore */ + goog.getMsg("766"); + msg = MSG_EXTERNAL_8983433350294122716$$MANY_I18N_ELEMENTS_TS_765; + } else { + /* @ts-ignore */ + msg = $localize`766`; + } + return msg; +} +function i18n_766() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8629004538579298506$$MANY_I18N_ELEMENTS_TS_766 = + /* @ts-ignore */ + goog.getMsg("767"); + msg = MSG_EXTERNAL_8629004538579298506$$MANY_I18N_ELEMENTS_TS_766; + } else { + /* @ts-ignore */ + msg = $localize`767`; + } + return msg; +} +function i18n_767() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6827886011821122519$$MANY_I18N_ELEMENTS_TS_767 = + /* @ts-ignore */ + goog.getMsg("768"); + msg = MSG_EXTERNAL_6827886011821122519$$MANY_I18N_ELEMENTS_TS_767; + } else { + /* @ts-ignore */ + msg = $localize`768`; + } + return msg; +} +function i18n_768() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2344009459628503063$$MANY_I18N_ELEMENTS_TS_768 = + /* @ts-ignore */ + goog.getMsg("769"); + msg = MSG_EXTERNAL_2344009459628503063$$MANY_I18N_ELEMENTS_TS_768; + } else { + /* @ts-ignore */ + msg = $localize`769`; + } + return msg; +} +function i18n_769() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7073484529310088884$$MANY_I18N_ELEMENTS_TS_769 = + /* @ts-ignore */ + goog.getMsg("770"); + msg = MSG_EXTERNAL_7073484529310088884$$MANY_I18N_ELEMENTS_TS_769; + } else { + /* @ts-ignore */ + msg = $localize`770`; + } + return msg; +} +function i18n_770() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7953702078491529875$$MANY_I18N_ELEMENTS_TS_770 = + /* @ts-ignore */ + goog.getMsg("771"); + msg = MSG_EXTERNAL_7953702078491529875$$MANY_I18N_ELEMENTS_TS_770; + } else { + /* @ts-ignore */ + msg = $localize`771`; + } + return msg; +} +function i18n_771() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4370705889766059441$$MANY_I18N_ELEMENTS_TS_771 = + /* @ts-ignore */ + goog.getMsg("772"); + msg = MSG_EXTERNAL_4370705889766059441$$MANY_I18N_ELEMENTS_TS_771; + } else { + /* @ts-ignore */ + msg = $localize`772`; + } + return msg; +} +function i18n_772() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4694505150363791702$$MANY_I18N_ELEMENTS_TS_772 = + /* @ts-ignore */ + goog.getMsg("773"); + msg = MSG_EXTERNAL_4694505150363791702$$MANY_I18N_ELEMENTS_TS_772; + } else { + /* @ts-ignore */ + msg = $localize`773`; + } + return msg; +} +function i18n_773() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5871692916860080709$$MANY_I18N_ELEMENTS_TS_773 = + /* @ts-ignore */ + goog.getMsg("774"); + msg = MSG_EXTERNAL_5871692916860080709$$MANY_I18N_ELEMENTS_TS_773; + } else { + /* @ts-ignore */ + msg = $localize`774`; + } + return msg; +} +function i18n_774() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8944138706350370975$$MANY_I18N_ELEMENTS_TS_774 = + /* @ts-ignore */ + goog.getMsg("775"); + msg = MSG_EXTERNAL_8944138706350370975$$MANY_I18N_ELEMENTS_TS_774; + } else { + /* @ts-ignore */ + msg = $localize`775`; + } + return msg; +} +function i18n_775() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8117535666005074159$$MANY_I18N_ELEMENTS_TS_775 = + /* @ts-ignore */ + goog.getMsg("776"); + msg = MSG_EXTERNAL_8117535666005074159$$MANY_I18N_ELEMENTS_TS_775; + } else { + /* @ts-ignore */ + msg = $localize`776`; + } + return msg; +} +function i18n_776() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6452448059671109007$$MANY_I18N_ELEMENTS_TS_776 = + /* @ts-ignore */ + goog.getMsg("777"); + msg = MSG_EXTERNAL_6452448059671109007$$MANY_I18N_ELEMENTS_TS_776; + } else { + /* @ts-ignore */ + msg = $localize`777`; + } + return msg; +} +function i18n_777() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1910689258764463180$$MANY_I18N_ELEMENTS_TS_777 = + /* @ts-ignore */ + goog.getMsg("778"); + msg = MSG_EXTERNAL_1910689258764463180$$MANY_I18N_ELEMENTS_TS_777; + } else { + /* @ts-ignore */ + msg = $localize`778`; + } + return msg; +} +function i18n_778() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_420894399981602047$$MANY_I18N_ELEMENTS_TS_778 = + /* @ts-ignore */ + goog.getMsg("779"); + msg = MSG_EXTERNAL_420894399981602047$$MANY_I18N_ELEMENTS_TS_778; + } else { + /* @ts-ignore */ + msg = $localize`779`; + } + return msg; +} +function i18n_779() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7512892853205477342$$MANY_I18N_ELEMENTS_TS_779 = + /* @ts-ignore */ + goog.getMsg("780"); + msg = MSG_EXTERNAL_7512892853205477342$$MANY_I18N_ELEMENTS_TS_779; + } else { + /* @ts-ignore */ + msg = $localize`780`; + } + return msg; +} +function i18n_780() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8648865661890500998$$MANY_I18N_ELEMENTS_TS_780 = + /* @ts-ignore */ + goog.getMsg("781"); + msg = MSG_EXTERNAL_8648865661890500998$$MANY_I18N_ELEMENTS_TS_780; + } else { + /* @ts-ignore */ + msg = $localize`781`; + } + return msg; +} +function i18n_781() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4464697718075319146$$MANY_I18N_ELEMENTS_TS_781 = + /* @ts-ignore */ + goog.getMsg("782"); + msg = MSG_EXTERNAL_4464697718075319146$$MANY_I18N_ELEMENTS_TS_781; + } else { + /* @ts-ignore */ + msg = $localize`782`; + } + return msg; +} +function i18n_782() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3414241892761459282$$MANY_I18N_ELEMENTS_TS_782 = + /* @ts-ignore */ + goog.getMsg("783"); + msg = MSG_EXTERNAL_3414241892761459282$$MANY_I18N_ELEMENTS_TS_782; + } else { + /* @ts-ignore */ + msg = $localize`783`; + } + return msg; +} +function i18n_783() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1174222413914761507$$MANY_I18N_ELEMENTS_TS_783 = + /* @ts-ignore */ + goog.getMsg("784"); + msg = MSG_EXTERNAL_1174222413914761507$$MANY_I18N_ELEMENTS_TS_783; + } else { + /* @ts-ignore */ + msg = $localize`784`; + } + return msg; +} +function i18n_784() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2669455240131510789$$MANY_I18N_ELEMENTS_TS_784 = + /* @ts-ignore */ + goog.getMsg("785"); + msg = MSG_EXTERNAL_2669455240131510789$$MANY_I18N_ELEMENTS_TS_784; + } else { + /* @ts-ignore */ + msg = $localize`785`; + } + return msg; +} +function i18n_785() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_20764427315015593$$MANY_I18N_ELEMENTS_TS_785 = + /* @ts-ignore */ + goog.getMsg("786"); + msg = MSG_EXTERNAL_20764427315015593$$MANY_I18N_ELEMENTS_TS_785; + } else { + /* @ts-ignore */ + msg = $localize`786`; + } + return msg; +} +function i18n_786() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7512017941536487483$$MANY_I18N_ELEMENTS_TS_786 = + /* @ts-ignore */ + goog.getMsg("787"); + msg = MSG_EXTERNAL_7512017941536487483$$MANY_I18N_ELEMENTS_TS_786; + } else { + /* @ts-ignore */ + msg = $localize`787`; + } + return msg; +} +function i18n_787() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5306472014739204959$$MANY_I18N_ELEMENTS_TS_787 = + /* @ts-ignore */ + goog.getMsg("788"); + msg = MSG_EXTERNAL_5306472014739204959$$MANY_I18N_ELEMENTS_TS_787; + } else { + /* @ts-ignore */ + msg = $localize`788`; + } + return msg; +} +function i18n_788() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1119634597807582228$$MANY_I18N_ELEMENTS_TS_788 = + /* @ts-ignore */ + goog.getMsg("789"); + msg = MSG_EXTERNAL_1119634597807582228$$MANY_I18N_ELEMENTS_TS_788; + } else { + /* @ts-ignore */ + msg = $localize`789`; + } + return msg; +} +function i18n_789() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1565161290511872364$$MANY_I18N_ELEMENTS_TS_789 = + /* @ts-ignore */ + goog.getMsg("790"); + msg = MSG_EXTERNAL_1565161290511872364$$MANY_I18N_ELEMENTS_TS_789; + } else { + /* @ts-ignore */ + msg = $localize`790`; + } + return msg; +} +function i18n_790() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3659145686070658179$$MANY_I18N_ELEMENTS_TS_790 = + /* @ts-ignore */ + goog.getMsg("791"); + msg = MSG_EXTERNAL_3659145686070658179$$MANY_I18N_ELEMENTS_TS_790; + } else { + /* @ts-ignore */ + msg = $localize`791`; + } + return msg; +} +function i18n_791() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6329392316889833144$$MANY_I18N_ELEMENTS_TS_791 = + /* @ts-ignore */ + goog.getMsg("792"); + msg = MSG_EXTERNAL_6329392316889833144$$MANY_I18N_ELEMENTS_TS_791; + } else { + /* @ts-ignore */ + msg = $localize`792`; + } + return msg; +} +function i18n_792() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5831793302292443029$$MANY_I18N_ELEMENTS_TS_792 = + /* @ts-ignore */ + goog.getMsg("793"); + msg = MSG_EXTERNAL_5831793302292443029$$MANY_I18N_ELEMENTS_TS_792; + } else { + /* @ts-ignore */ + msg = $localize`793`; + } + return msg; +} +function i18n_793() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5220621657550361378$$MANY_I18N_ELEMENTS_TS_793 = + /* @ts-ignore */ + goog.getMsg("794"); + msg = MSG_EXTERNAL_5220621657550361378$$MANY_I18N_ELEMENTS_TS_793; + } else { + /* @ts-ignore */ + msg = $localize`794`; + } + return msg; +} +function i18n_794() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5813633774617253142$$MANY_I18N_ELEMENTS_TS_794 = + /* @ts-ignore */ + goog.getMsg("795"); + msg = MSG_EXTERNAL_5813633774617253142$$MANY_I18N_ELEMENTS_TS_794; + } else { + /* @ts-ignore */ + msg = $localize`795`; + } + return msg; +} +function i18n_795() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4686997802752025703$$MANY_I18N_ELEMENTS_TS_795 = + /* @ts-ignore */ + goog.getMsg("796"); + msg = MSG_EXTERNAL_4686997802752025703$$MANY_I18N_ELEMENTS_TS_795; + } else { + /* @ts-ignore */ + msg = $localize`796`; + } + return msg; +} +function i18n_796() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1955126812065845645$$MANY_I18N_ELEMENTS_TS_796 = + /* @ts-ignore */ + goog.getMsg("797"); + msg = MSG_EXTERNAL_1955126812065845645$$MANY_I18N_ELEMENTS_TS_796; + } else { + /* @ts-ignore */ + msg = $localize`797`; + } + return msg; +} +function i18n_797() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1670818442213711187$$MANY_I18N_ELEMENTS_TS_797 = + /* @ts-ignore */ + goog.getMsg("798"); + msg = MSG_EXTERNAL_1670818442213711187$$MANY_I18N_ELEMENTS_TS_797; + } else { + /* @ts-ignore */ + msg = $localize`798`; + } + return msg; +} +function i18n_798() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_570802159836868064$$MANY_I18N_ELEMENTS_TS_798 = + /* @ts-ignore */ + goog.getMsg("799"); + msg = MSG_EXTERNAL_570802159836868064$$MANY_I18N_ELEMENTS_TS_798; + } else { + /* @ts-ignore */ + msg = $localize`799`; + } + return msg; +} +function i18n_799() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6948849870599061046$$MANY_I18N_ELEMENTS_TS_799 = + /* @ts-ignore */ + goog.getMsg("800"); + msg = MSG_EXTERNAL_6948849870599061046$$MANY_I18N_ELEMENTS_TS_799; + } else { + /* @ts-ignore */ + msg = $localize`800`; + } + return msg; +} +function i18n_800() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5908203436199399810$$MANY_I18N_ELEMENTS_TS_800 = + /* @ts-ignore */ + goog.getMsg("801"); + msg = MSG_EXTERNAL_5908203436199399810$$MANY_I18N_ELEMENTS_TS_800; + } else { + /* @ts-ignore */ + msg = $localize`801`; + } + return msg; +} +function i18n_801() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4077495645034644669$$MANY_I18N_ELEMENTS_TS_801 = + /* @ts-ignore */ + goog.getMsg("802"); + msg = MSG_EXTERNAL_4077495645034644669$$MANY_I18N_ELEMENTS_TS_801; + } else { + /* @ts-ignore */ + msg = $localize`802`; + } + return msg; +} +function i18n_802() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3596104221959808285$$MANY_I18N_ELEMENTS_TS_802 = + /* @ts-ignore */ + goog.getMsg("803"); + msg = MSG_EXTERNAL_3596104221959808285$$MANY_I18N_ELEMENTS_TS_802; + } else { + /* @ts-ignore */ + msg = $localize`803`; + } + return msg; +} +function i18n_803() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6729430650073181229$$MANY_I18N_ELEMENTS_TS_803 = + /* @ts-ignore */ + goog.getMsg("804"); + msg = MSG_EXTERNAL_6729430650073181229$$MANY_I18N_ELEMENTS_TS_803; + } else { + /* @ts-ignore */ + msg = $localize`804`; + } + return msg; +} +function i18n_804() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1959288823936419023$$MANY_I18N_ELEMENTS_TS_804 = + /* @ts-ignore */ + goog.getMsg("805"); + msg = MSG_EXTERNAL_1959288823936419023$$MANY_I18N_ELEMENTS_TS_804; + } else { + /* @ts-ignore */ + msg = $localize`805`; + } + return msg; +} +function i18n_805() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2016121480151658347$$MANY_I18N_ELEMENTS_TS_805 = + /* @ts-ignore */ + goog.getMsg("806"); + msg = MSG_EXTERNAL_2016121480151658347$$MANY_I18N_ELEMENTS_TS_805; + } else { + /* @ts-ignore */ + msg = $localize`806`; + } + return msg; +} +function i18n_806() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1665467769674141437$$MANY_I18N_ELEMENTS_TS_806 = + /* @ts-ignore */ + goog.getMsg("807"); + msg = MSG_EXTERNAL_1665467769674141437$$MANY_I18N_ELEMENTS_TS_806; + } else { + /* @ts-ignore */ + msg = $localize`807`; + } + return msg; +} +function i18n_807() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7016249765189753143$$MANY_I18N_ELEMENTS_TS_807 = + /* @ts-ignore */ + goog.getMsg("808"); + msg = MSG_EXTERNAL_7016249765189753143$$MANY_I18N_ELEMENTS_TS_807; + } else { + /* @ts-ignore */ + msg = $localize`808`; + } + return msg; +} +function i18n_808() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8542944861474956220$$MANY_I18N_ELEMENTS_TS_808 = + /* @ts-ignore */ + goog.getMsg("809"); + msg = MSG_EXTERNAL_8542944861474956220$$MANY_I18N_ELEMENTS_TS_808; + } else { + /* @ts-ignore */ + msg = $localize`809`; + } + return msg; +} +function i18n_809() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_232849999628222943$$MANY_I18N_ELEMENTS_TS_809 = + /* @ts-ignore */ + goog.getMsg("810"); + msg = MSG_EXTERNAL_232849999628222943$$MANY_I18N_ELEMENTS_TS_809; + } else { + /* @ts-ignore */ + msg = $localize`810`; + } + return msg; +} +function i18n_810() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4939003112927388146$$MANY_I18N_ELEMENTS_TS_810 = + /* @ts-ignore */ + goog.getMsg("811"); + msg = MSG_EXTERNAL_4939003112927388146$$MANY_I18N_ELEMENTS_TS_810; + } else { + /* @ts-ignore */ + msg = $localize`811`; + } + return msg; +} +function i18n_811() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3544757316783988895$$MANY_I18N_ELEMENTS_TS_811 = + /* @ts-ignore */ + goog.getMsg("812"); + msg = MSG_EXTERNAL_3544757316783988895$$MANY_I18N_ELEMENTS_TS_811; + } else { + /* @ts-ignore */ + msg = $localize`812`; + } + return msg; +} +function i18n_812() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8301537533824414054$$MANY_I18N_ELEMENTS_TS_812 = + /* @ts-ignore */ + goog.getMsg("813"); + msg = MSG_EXTERNAL_8301537533824414054$$MANY_I18N_ELEMENTS_TS_812; + } else { + /* @ts-ignore */ + msg = $localize`813`; + } + return msg; +} +function i18n_813() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3777903794823033199$$MANY_I18N_ELEMENTS_TS_813 = + /* @ts-ignore */ + goog.getMsg("814"); + msg = MSG_EXTERNAL_3777903794823033199$$MANY_I18N_ELEMENTS_TS_813; + } else { + /* @ts-ignore */ + msg = $localize`814`; + } + return msg; +} +function i18n_814() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8914590115361141689$$MANY_I18N_ELEMENTS_TS_814 = + /* @ts-ignore */ + goog.getMsg("815"); + msg = MSG_EXTERNAL_8914590115361141689$$MANY_I18N_ELEMENTS_TS_814; + } else { + /* @ts-ignore */ + msg = $localize`815`; + } + return msg; +} +function i18n_815() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3531162226510959139$$MANY_I18N_ELEMENTS_TS_815 = + /* @ts-ignore */ + goog.getMsg("816"); + msg = MSG_EXTERNAL_3531162226510959139$$MANY_I18N_ELEMENTS_TS_815; + } else { + /* @ts-ignore */ + msg = $localize`816`; + } + return msg; +} +function i18n_816() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1515047116521341618$$MANY_I18N_ELEMENTS_TS_816 = + /* @ts-ignore */ + goog.getMsg("817"); + msg = MSG_EXTERNAL_1515047116521341618$$MANY_I18N_ELEMENTS_TS_816; + } else { + /* @ts-ignore */ + msg = $localize`817`; + } + return msg; +} +function i18n_817() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3281534610415360284$$MANY_I18N_ELEMENTS_TS_817 = + /* @ts-ignore */ + goog.getMsg("818"); + msg = MSG_EXTERNAL_3281534610415360284$$MANY_I18N_ELEMENTS_TS_817; + } else { + /* @ts-ignore */ + msg = $localize`818`; + } + return msg; +} +function i18n_818() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7576857838981658884$$MANY_I18N_ELEMENTS_TS_818 = + /* @ts-ignore */ + goog.getMsg("819"); + msg = MSG_EXTERNAL_7576857838981658884$$MANY_I18N_ELEMENTS_TS_818; + } else { + /* @ts-ignore */ + msg = $localize`819`; + } + return msg; +} +function i18n_819() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4213468014389831513$$MANY_I18N_ELEMENTS_TS_819 = + /* @ts-ignore */ + goog.getMsg("820"); + msg = MSG_EXTERNAL_4213468014389831513$$MANY_I18N_ELEMENTS_TS_819; + } else { + /* @ts-ignore */ + msg = $localize`820`; + } + return msg; +} +function i18n_820() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2601177602053121686$$MANY_I18N_ELEMENTS_TS_820 = + /* @ts-ignore */ + goog.getMsg("821"); + msg = MSG_EXTERNAL_2601177602053121686$$MANY_I18N_ELEMENTS_TS_820; + } else { + /* @ts-ignore */ + msg = $localize`821`; + } + return msg; +} +function i18n_821() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8683629216547874422$$MANY_I18N_ELEMENTS_TS_821 = + /* @ts-ignore */ + goog.getMsg("822"); + msg = MSG_EXTERNAL_8683629216547874422$$MANY_I18N_ELEMENTS_TS_821; + } else { + /* @ts-ignore */ + msg = $localize`822`; + } + return msg; +} +function i18n_822() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5378155351069159033$$MANY_I18N_ELEMENTS_TS_822 = + /* @ts-ignore */ + goog.getMsg("823"); + msg = MSG_EXTERNAL_5378155351069159033$$MANY_I18N_ELEMENTS_TS_822; + } else { + /* @ts-ignore */ + msg = $localize`823`; + } + return msg; +} +function i18n_823() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4486228934493632544$$MANY_I18N_ELEMENTS_TS_823 = + /* @ts-ignore */ + goog.getMsg("824"); + msg = MSG_EXTERNAL_4486228934493632544$$MANY_I18N_ELEMENTS_TS_823; + } else { + /* @ts-ignore */ + msg = $localize`824`; + } + return msg; +} +function i18n_824() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7856702962396482880$$MANY_I18N_ELEMENTS_TS_824 = + /* @ts-ignore */ + goog.getMsg("825"); + msg = MSG_EXTERNAL_7856702962396482880$$MANY_I18N_ELEMENTS_TS_824; + } else { + /* @ts-ignore */ + msg = $localize`825`; + } + return msg; +} +function i18n_825() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7579032910732762791$$MANY_I18N_ELEMENTS_TS_825 = + /* @ts-ignore */ + goog.getMsg("826"); + msg = MSG_EXTERNAL_7579032910732762791$$MANY_I18N_ELEMENTS_TS_825; + } else { + /* @ts-ignore */ + msg = $localize`826`; + } + return msg; +} +function i18n_826() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5215825310522189240$$MANY_I18N_ELEMENTS_TS_826 = + /* @ts-ignore */ + goog.getMsg("827"); + msg = MSG_EXTERNAL_5215825310522189240$$MANY_I18N_ELEMENTS_TS_826; + } else { + /* @ts-ignore */ + msg = $localize`827`; + } + return msg; +} +function i18n_827() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4118735566466817631$$MANY_I18N_ELEMENTS_TS_827 = + /* @ts-ignore */ + goog.getMsg("828"); + msg = MSG_EXTERNAL_4118735566466817631$$MANY_I18N_ELEMENTS_TS_827; + } else { + /* @ts-ignore */ + msg = $localize`828`; + } + return msg; +} +function i18n_828() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5255371178884845863$$MANY_I18N_ELEMENTS_TS_828 = + /* @ts-ignore */ + goog.getMsg("829"); + msg = MSG_EXTERNAL_5255371178884845863$$MANY_I18N_ELEMENTS_TS_828; + } else { + /* @ts-ignore */ + msg = $localize`829`; + } + return msg; +} +function i18n_829() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6112667900254162928$$MANY_I18N_ELEMENTS_TS_829 = + /* @ts-ignore */ + goog.getMsg("830"); + msg = MSG_EXTERNAL_6112667900254162928$$MANY_I18N_ELEMENTS_TS_829; + } else { + /* @ts-ignore */ + msg = $localize`830`; + } + return msg; +} +function i18n_830() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6561511005064941052$$MANY_I18N_ELEMENTS_TS_830 = + /* @ts-ignore */ + goog.getMsg("831"); + msg = MSG_EXTERNAL_6561511005064941052$$MANY_I18N_ELEMENTS_TS_830; + } else { + /* @ts-ignore */ + msg = $localize`831`; + } + return msg; +} +function i18n_831() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1961660381998604691$$MANY_I18N_ELEMENTS_TS_831 = + /* @ts-ignore */ + goog.getMsg("832"); + msg = MSG_EXTERNAL_1961660381998604691$$MANY_I18N_ELEMENTS_TS_831; + } else { + /* @ts-ignore */ + msg = $localize`832`; + } + return msg; +} +function i18n_832() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3760693582600832482$$MANY_I18N_ELEMENTS_TS_832 = + /* @ts-ignore */ + goog.getMsg("833"); + msg = MSG_EXTERNAL_3760693582600832482$$MANY_I18N_ELEMENTS_TS_832; + } else { + /* @ts-ignore */ + msg = $localize`833`; + } + return msg; +} +function i18n_833() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3000598978003810381$$MANY_I18N_ELEMENTS_TS_833 = + /* @ts-ignore */ + goog.getMsg("834"); + msg = MSG_EXTERNAL_3000598978003810381$$MANY_I18N_ELEMENTS_TS_833; + } else { + /* @ts-ignore */ + msg = $localize`834`; + } + return msg; +} +function i18n_834() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_940251825912556132$$MANY_I18N_ELEMENTS_TS_834 = + /* @ts-ignore */ + goog.getMsg("835"); + msg = MSG_EXTERNAL_940251825912556132$$MANY_I18N_ELEMENTS_TS_834; + } else { + /* @ts-ignore */ + msg = $localize`835`; + } + return msg; +} +function i18n_835() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3291288652072993394$$MANY_I18N_ELEMENTS_TS_835 = + /* @ts-ignore */ + goog.getMsg("836"); + msg = MSG_EXTERNAL_3291288652072993394$$MANY_I18N_ELEMENTS_TS_835; + } else { + /* @ts-ignore */ + msg = $localize`836`; + } + return msg; +} +function i18n_836() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5913381561485536747$$MANY_I18N_ELEMENTS_TS_836 = + /* @ts-ignore */ + goog.getMsg("837"); + msg = MSG_EXTERNAL_5913381561485536747$$MANY_I18N_ELEMENTS_TS_836; + } else { + /* @ts-ignore */ + msg = $localize`837`; + } + return msg; +} +function i18n_837() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3049712671645535641$$MANY_I18N_ELEMENTS_TS_837 = + /* @ts-ignore */ + goog.getMsg("838"); + msg = MSG_EXTERNAL_3049712671645535641$$MANY_I18N_ELEMENTS_TS_837; + } else { + /* @ts-ignore */ + msg = $localize`838`; + } + return msg; +} +function i18n_838() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8240673517767771733$$MANY_I18N_ELEMENTS_TS_838 = + /* @ts-ignore */ + goog.getMsg("839"); + msg = MSG_EXTERNAL_8240673517767771733$$MANY_I18N_ELEMENTS_TS_838; + } else { + /* @ts-ignore */ + msg = $localize`839`; + } + return msg; +} +function i18n_839() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8298123826614598740$$MANY_I18N_ELEMENTS_TS_839 = + /* @ts-ignore */ + goog.getMsg("840"); + msg = MSG_EXTERNAL_8298123826614598740$$MANY_I18N_ELEMENTS_TS_839; + } else { + /* @ts-ignore */ + msg = $localize`840`; + } + return msg; +} +function i18n_840() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4884520710034928859$$MANY_I18N_ELEMENTS_TS_840 = + /* @ts-ignore */ + goog.getMsg("841"); + msg = MSG_EXTERNAL_4884520710034928859$$MANY_I18N_ELEMENTS_TS_840; + } else { + /* @ts-ignore */ + msg = $localize`841`; + } + return msg; +} +function i18n_841() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8678470782254748063$$MANY_I18N_ELEMENTS_TS_841 = + /* @ts-ignore */ + goog.getMsg("842"); + msg = MSG_EXTERNAL_8678470782254748063$$MANY_I18N_ELEMENTS_TS_841; + } else { + /* @ts-ignore */ + msg = $localize`842`; + } + return msg; +} +function i18n_842() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2231040587438032327$$MANY_I18N_ELEMENTS_TS_842 = + /* @ts-ignore */ + goog.getMsg("843"); + msg = MSG_EXTERNAL_2231040587438032327$$MANY_I18N_ELEMENTS_TS_842; + } else { + /* @ts-ignore */ + msg = $localize`843`; + } + return msg; +} +function i18n_843() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5749913408679971084$$MANY_I18N_ELEMENTS_TS_843 = + /* @ts-ignore */ + goog.getMsg("844"); + msg = MSG_EXTERNAL_5749913408679971084$$MANY_I18N_ELEMENTS_TS_843; + } else { + /* @ts-ignore */ + msg = $localize`844`; + } + return msg; +} +function i18n_844() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5630071944941988831$$MANY_I18N_ELEMENTS_TS_844 = + /* @ts-ignore */ + goog.getMsg("845"); + msg = MSG_EXTERNAL_5630071944941988831$$MANY_I18N_ELEMENTS_TS_844; + } else { + /* @ts-ignore */ + msg = $localize`845`; + } + return msg; +} +function i18n_845() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7885664853270279860$$MANY_I18N_ELEMENTS_TS_845 = + /* @ts-ignore */ + goog.getMsg("846"); + msg = MSG_EXTERNAL_7885664853270279860$$MANY_I18N_ELEMENTS_TS_845; + } else { + /* @ts-ignore */ + msg = $localize`846`; + } + return msg; +} +function i18n_846() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5315711957637760039$$MANY_I18N_ELEMENTS_TS_846 = + /* @ts-ignore */ + goog.getMsg("847"); + msg = MSG_EXTERNAL_5315711957637760039$$MANY_I18N_ELEMENTS_TS_846; + } else { + /* @ts-ignore */ + msg = $localize`847`; + } + return msg; +} +function i18n_847() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2878023266500813457$$MANY_I18N_ELEMENTS_TS_847 = + /* @ts-ignore */ + goog.getMsg("848"); + msg = MSG_EXTERNAL_2878023266500813457$$MANY_I18N_ELEMENTS_TS_847; + } else { + /* @ts-ignore */ + msg = $localize`848`; + } + return msg; +} +function i18n_848() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8283821018269254166$$MANY_I18N_ELEMENTS_TS_848 = + /* @ts-ignore */ + goog.getMsg("849"); + msg = MSG_EXTERNAL_8283821018269254166$$MANY_I18N_ELEMENTS_TS_848; + } else { + /* @ts-ignore */ + msg = $localize`849`; + } + return msg; +} +function i18n_849() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8583613549959773057$$MANY_I18N_ELEMENTS_TS_849 = + /* @ts-ignore */ + goog.getMsg("850"); + msg = MSG_EXTERNAL_8583613549959773057$$MANY_I18N_ELEMENTS_TS_849; + } else { + /* @ts-ignore */ + msg = $localize`850`; + } + return msg; +} +function i18n_850() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8192597452921243481$$MANY_I18N_ELEMENTS_TS_850 = + /* @ts-ignore */ + goog.getMsg("851"); + msg = MSG_EXTERNAL_8192597452921243481$$MANY_I18N_ELEMENTS_TS_850; + } else { + /* @ts-ignore */ + msg = $localize`851`; + } + return msg; +} +function i18n_851() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6693040837543880535$$MANY_I18N_ELEMENTS_TS_851 = + /* @ts-ignore */ + goog.getMsg("852"); + msg = MSG_EXTERNAL_6693040837543880535$$MANY_I18N_ELEMENTS_TS_851; + } else { + /* @ts-ignore */ + msg = $localize`852`; + } + return msg; +} +function i18n_852() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6967039598736092866$$MANY_I18N_ELEMENTS_TS_852 = + /* @ts-ignore */ + goog.getMsg("853"); + msg = MSG_EXTERNAL_6967039598736092866$$MANY_I18N_ELEMENTS_TS_852; + } else { + /* @ts-ignore */ + msg = $localize`853`; + } + return msg; +} +function i18n_853() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3940962376599897431$$MANY_I18N_ELEMENTS_TS_853 = + /* @ts-ignore */ + goog.getMsg("854"); + msg = MSG_EXTERNAL_3940962376599897431$$MANY_I18N_ELEMENTS_TS_853; + } else { + /* @ts-ignore */ + msg = $localize`854`; + } + return msg; +} +function i18n_854() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5561917606260636296$$MANY_I18N_ELEMENTS_TS_854 = + /* @ts-ignore */ + goog.getMsg("855"); + msg = MSG_EXTERNAL_5561917606260636296$$MANY_I18N_ELEMENTS_TS_854; + } else { + /* @ts-ignore */ + msg = $localize`855`; + } + return msg; +} +function i18n_855() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1611666373021918159$$MANY_I18N_ELEMENTS_TS_855 = + /* @ts-ignore */ + goog.getMsg("856"); + msg = MSG_EXTERNAL_1611666373021918159$$MANY_I18N_ELEMENTS_TS_855; + } else { + /* @ts-ignore */ + msg = $localize`856`; + } + return msg; +} +function i18n_856() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1546093254389032618$$MANY_I18N_ELEMENTS_TS_856 = + /* @ts-ignore */ + goog.getMsg("857"); + msg = MSG_EXTERNAL_1546093254389032618$$MANY_I18N_ELEMENTS_TS_856; + } else { + /* @ts-ignore */ + msg = $localize`857`; + } + return msg; +} +function i18n_857() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3347496338481353275$$MANY_I18N_ELEMENTS_TS_857 = + /* @ts-ignore */ + goog.getMsg("858"); + msg = MSG_EXTERNAL_3347496338481353275$$MANY_I18N_ELEMENTS_TS_857; + } else { + /* @ts-ignore */ + msg = $localize`858`; + } + return msg; +} +function i18n_858() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9124306851040166930$$MANY_I18N_ELEMENTS_TS_858 = + /* @ts-ignore */ + goog.getMsg("859"); + msg = MSG_EXTERNAL_9124306851040166930$$MANY_I18N_ELEMENTS_TS_858; + } else { + /* @ts-ignore */ + msg = $localize`859`; + } + return msg; +} +function i18n_859() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_47826188224850081$$MANY_I18N_ELEMENTS_TS_859 = + /* @ts-ignore */ + goog.getMsg("860"); + msg = MSG_EXTERNAL_47826188224850081$$MANY_I18N_ELEMENTS_TS_859; + } else { + /* @ts-ignore */ + msg = $localize`860`; + } + return msg; +} +function i18n_860() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7446150564054303111$$MANY_I18N_ELEMENTS_TS_860 = + /* @ts-ignore */ + goog.getMsg("861"); + msg = MSG_EXTERNAL_7446150564054303111$$MANY_I18N_ELEMENTS_TS_860; + } else { + /* @ts-ignore */ + msg = $localize`861`; + } + return msg; +} +function i18n_861() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1022337239949024010$$MANY_I18N_ELEMENTS_TS_861 = + /* @ts-ignore */ + goog.getMsg("862"); + msg = MSG_EXTERNAL_1022337239949024010$$MANY_I18N_ELEMENTS_TS_861; + } else { + /* @ts-ignore */ + msg = $localize`862`; + } + return msg; +} +function i18n_862() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_264713073329289109$$MANY_I18N_ELEMENTS_TS_862 = + /* @ts-ignore */ + goog.getMsg("863"); + msg = MSG_EXTERNAL_264713073329289109$$MANY_I18N_ELEMENTS_TS_862; + } else { + /* @ts-ignore */ + msg = $localize`863`; + } + return msg; +} +function i18n_863() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6449563930457765740$$MANY_I18N_ELEMENTS_TS_863 = + /* @ts-ignore */ + goog.getMsg("864"); + msg = MSG_EXTERNAL_6449563930457765740$$MANY_I18N_ELEMENTS_TS_863; + } else { + /* @ts-ignore */ + msg = $localize`864`; + } + return msg; +} +function i18n_864() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6764374980882121731$$MANY_I18N_ELEMENTS_TS_864 = + /* @ts-ignore */ + goog.getMsg("865"); + msg = MSG_EXTERNAL_6764374980882121731$$MANY_I18N_ELEMENTS_TS_864; + } else { + /* @ts-ignore */ + msg = $localize`865`; + } + return msg; +} +function i18n_865() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5026487409494899092$$MANY_I18N_ELEMENTS_TS_865 = + /* @ts-ignore */ + goog.getMsg("866"); + msg = MSG_EXTERNAL_5026487409494899092$$MANY_I18N_ELEMENTS_TS_865; + } else { + /* @ts-ignore */ + msg = $localize`866`; + } + return msg; +} +function i18n_866() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1353222213317812001$$MANY_I18N_ELEMENTS_TS_866 = + /* @ts-ignore */ + goog.getMsg("867"); + msg = MSG_EXTERNAL_1353222213317812001$$MANY_I18N_ELEMENTS_TS_866; + } else { + /* @ts-ignore */ + msg = $localize`867`; + } + return msg; +} +function i18n_867() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3745007094973953049$$MANY_I18N_ELEMENTS_TS_867 = + /* @ts-ignore */ + goog.getMsg("868"); + msg = MSG_EXTERNAL_3745007094973953049$$MANY_I18N_ELEMENTS_TS_867; + } else { + /* @ts-ignore */ + msg = $localize`868`; + } + return msg; +} +function i18n_868() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8045124936718506767$$MANY_I18N_ELEMENTS_TS_868 = + /* @ts-ignore */ + goog.getMsg("869"); + msg = MSG_EXTERNAL_8045124936718506767$$MANY_I18N_ELEMENTS_TS_868; + } else { + /* @ts-ignore */ + msg = $localize`869`; + } + return msg; +} +function i18n_869() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4908083333357466794$$MANY_I18N_ELEMENTS_TS_869 = + /* @ts-ignore */ + goog.getMsg("870"); + msg = MSG_EXTERNAL_4908083333357466794$$MANY_I18N_ELEMENTS_TS_869; + } else { + /* @ts-ignore */ + msg = $localize`870`; + } + return msg; +} +function i18n_870() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4235699358766234282$$MANY_I18N_ELEMENTS_TS_870 = + /* @ts-ignore */ + goog.getMsg("871"); + msg = MSG_EXTERNAL_4235699358766234282$$MANY_I18N_ELEMENTS_TS_870; + } else { + /* @ts-ignore */ + msg = $localize`871`; + } + return msg; +} +function i18n_871() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7726870922469339123$$MANY_I18N_ELEMENTS_TS_871 = + /* @ts-ignore */ + goog.getMsg("872"); + msg = MSG_EXTERNAL_7726870922469339123$$MANY_I18N_ELEMENTS_TS_871; + } else { + /* @ts-ignore */ + msg = $localize`872`; + } + return msg; +} +function i18n_872() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8853974338040534885$$MANY_I18N_ELEMENTS_TS_872 = + /* @ts-ignore */ + goog.getMsg("873"); + msg = MSG_EXTERNAL_8853974338040534885$$MANY_I18N_ELEMENTS_TS_872; + } else { + /* @ts-ignore */ + msg = $localize`873`; + } + return msg; +} +function i18n_873() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8774096724980409944$$MANY_I18N_ELEMENTS_TS_873 = + /* @ts-ignore */ + goog.getMsg("874"); + msg = MSG_EXTERNAL_8774096724980409944$$MANY_I18N_ELEMENTS_TS_873; + } else { + /* @ts-ignore */ + msg = $localize`874`; + } + return msg; +} +function i18n_874() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6253024413698916342$$MANY_I18N_ELEMENTS_TS_874 = + /* @ts-ignore */ + goog.getMsg("875"); + msg = MSG_EXTERNAL_6253024413698916342$$MANY_I18N_ELEMENTS_TS_874; + } else { + /* @ts-ignore */ + msg = $localize`875`; + } + return msg; +} +function i18n_875() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1146292740593980670$$MANY_I18N_ELEMENTS_TS_875 = + /* @ts-ignore */ + goog.getMsg("876"); + msg = MSG_EXTERNAL_1146292740593980670$$MANY_I18N_ELEMENTS_TS_875; + } else { + /* @ts-ignore */ + msg = $localize`876`; + } + return msg; +} +function i18n_876() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3616480260646185039$$MANY_I18N_ELEMENTS_TS_876 = + /* @ts-ignore */ + goog.getMsg("877"); + msg = MSG_EXTERNAL_3616480260646185039$$MANY_I18N_ELEMENTS_TS_876; + } else { + /* @ts-ignore */ + msg = $localize`877`; + } + return msg; +} +function i18n_877() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2018565490905568412$$MANY_I18N_ELEMENTS_TS_877 = + /* @ts-ignore */ + goog.getMsg("878"); + msg = MSG_EXTERNAL_2018565490905568412$$MANY_I18N_ELEMENTS_TS_877; + } else { + /* @ts-ignore */ + msg = $localize`878`; + } + return msg; +} +function i18n_878() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6732061534146878179$$MANY_I18N_ELEMENTS_TS_878 = + /* @ts-ignore */ + goog.getMsg("879"); + msg = MSG_EXTERNAL_6732061534146878179$$MANY_I18N_ELEMENTS_TS_878; + } else { + /* @ts-ignore */ + msg = $localize`879`; + } + return msg; +} +function i18n_879() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1655292393382153552$$MANY_I18N_ELEMENTS_TS_879 = + /* @ts-ignore */ + goog.getMsg("880"); + msg = MSG_EXTERNAL_1655292393382153552$$MANY_I18N_ELEMENTS_TS_879; + } else { + /* @ts-ignore */ + msg = $localize`880`; + } + return msg; +} +function i18n_880() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1049126709492442925$$MANY_I18N_ELEMENTS_TS_880 = + /* @ts-ignore */ + goog.getMsg("881"); + msg = MSG_EXTERNAL_1049126709492442925$$MANY_I18N_ELEMENTS_TS_880; + } else { + /* @ts-ignore */ + msg = $localize`881`; + } + return msg; +} +function i18n_881() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_762189444063803320$$MANY_I18N_ELEMENTS_TS_881 = + /* @ts-ignore */ + goog.getMsg("882"); + msg = MSG_EXTERNAL_762189444063803320$$MANY_I18N_ELEMENTS_TS_881; + } else { + /* @ts-ignore */ + msg = $localize`882`; + } + return msg; +} +function i18n_882() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3254062861328486985$$MANY_I18N_ELEMENTS_TS_882 = + /* @ts-ignore */ + goog.getMsg("883"); + msg = MSG_EXTERNAL_3254062861328486985$$MANY_I18N_ELEMENTS_TS_882; + } else { + /* @ts-ignore */ + msg = $localize`883`; + } + return msg; +} +function i18n_883() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2902297989682858488$$MANY_I18N_ELEMENTS_TS_883 = + /* @ts-ignore */ + goog.getMsg("884"); + msg = MSG_EXTERNAL_2902297989682858488$$MANY_I18N_ELEMENTS_TS_883; + } else { + /* @ts-ignore */ + msg = $localize`884`; + } + return msg; +} +function i18n_884() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4444907132180074359$$MANY_I18N_ELEMENTS_TS_884 = + /* @ts-ignore */ + goog.getMsg("885"); + msg = MSG_EXTERNAL_4444907132180074359$$MANY_I18N_ELEMENTS_TS_884; + } else { + /* @ts-ignore */ + msg = $localize`885`; + } + return msg; +} +function i18n_885() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_116241190130813449$$MANY_I18N_ELEMENTS_TS_885 = + /* @ts-ignore */ + goog.getMsg("886"); + msg = MSG_EXTERNAL_116241190130813449$$MANY_I18N_ELEMENTS_TS_885; + } else { + /* @ts-ignore */ + msg = $localize`886`; + } + return msg; +} +function i18n_886() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1847502606699236868$$MANY_I18N_ELEMENTS_TS_886 = + /* @ts-ignore */ + goog.getMsg("887"); + msg = MSG_EXTERNAL_1847502606699236868$$MANY_I18N_ELEMENTS_TS_886; + } else { + /* @ts-ignore */ + msg = $localize`887`; + } + return msg; +} +function i18n_887() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5467596240303515320$$MANY_I18N_ELEMENTS_TS_887 = + /* @ts-ignore */ + goog.getMsg("888"); + msg = MSG_EXTERNAL_5467596240303515320$$MANY_I18N_ELEMENTS_TS_887; + } else { + /* @ts-ignore */ + msg = $localize`888`; + } + return msg; +} +function i18n_888() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1143549824257390237$$MANY_I18N_ELEMENTS_TS_888 = + /* @ts-ignore */ + goog.getMsg("889"); + msg = MSG_EXTERNAL_1143549824257390237$$MANY_I18N_ELEMENTS_TS_888; + } else { + /* @ts-ignore */ + msg = $localize`889`; + } + return msg; +} +function i18n_889() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_178997202225260840$$MANY_I18N_ELEMENTS_TS_889 = + /* @ts-ignore */ + goog.getMsg("890"); + msg = MSG_EXTERNAL_178997202225260840$$MANY_I18N_ELEMENTS_TS_889; + } else { + /* @ts-ignore */ + msg = $localize`890`; + } + return msg; +} +function i18n_890() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7491064948060940564$$MANY_I18N_ELEMENTS_TS_890 = + /* @ts-ignore */ + goog.getMsg("891"); + msg = MSG_EXTERNAL_7491064948060940564$$MANY_I18N_ELEMENTS_TS_890; + } else { + /* @ts-ignore */ + msg = $localize`891`; + } + return msg; +} +function i18n_891() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2580511447911285596$$MANY_I18N_ELEMENTS_TS_891 = + /* @ts-ignore */ + goog.getMsg("892"); + msg = MSG_EXTERNAL_2580511447911285596$$MANY_I18N_ELEMENTS_TS_891; + } else { + /* @ts-ignore */ + msg = $localize`892`; + } + return msg; +} +function i18n_892() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2890778901939884897$$MANY_I18N_ELEMENTS_TS_892 = + /* @ts-ignore */ + goog.getMsg("893"); + msg = MSG_EXTERNAL_2890778901939884897$$MANY_I18N_ELEMENTS_TS_892; + } else { + /* @ts-ignore */ + msg = $localize`893`; + } + return msg; +} +function i18n_893() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8496033544591763644$$MANY_I18N_ELEMENTS_TS_893 = + /* @ts-ignore */ + goog.getMsg("894"); + msg = MSG_EXTERNAL_8496033544591763644$$MANY_I18N_ELEMENTS_TS_893; + } else { + /* @ts-ignore */ + msg = $localize`894`; + } + return msg; +} +function i18n_894() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1170216891349126798$$MANY_I18N_ELEMENTS_TS_894 = + /* @ts-ignore */ + goog.getMsg("895"); + msg = MSG_EXTERNAL_1170216891349126798$$MANY_I18N_ELEMENTS_TS_894; + } else { + /* @ts-ignore */ + msg = $localize`895`; + } + return msg; +} +function i18n_895() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3730579587370801083$$MANY_I18N_ELEMENTS_TS_895 = + /* @ts-ignore */ + goog.getMsg("896"); + msg = MSG_EXTERNAL_3730579587370801083$$MANY_I18N_ELEMENTS_TS_895; + } else { + /* @ts-ignore */ + msg = $localize`896`; + } + return msg; +} +function i18n_896() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3854276300312543507$$MANY_I18N_ELEMENTS_TS_896 = + /* @ts-ignore */ + goog.getMsg("897"); + msg = MSG_EXTERNAL_3854276300312543507$$MANY_I18N_ELEMENTS_TS_896; + } else { + /* @ts-ignore */ + msg = $localize`897`; + } + return msg; +} +function i18n_897() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7075401687480378530$$MANY_I18N_ELEMENTS_TS_897 = + /* @ts-ignore */ + goog.getMsg("898"); + msg = MSG_EXTERNAL_7075401687480378530$$MANY_I18N_ELEMENTS_TS_897; + } else { + /* @ts-ignore */ + msg = $localize`898`; + } + return msg; +} +function i18n_898() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7995774347682550065$$MANY_I18N_ELEMENTS_TS_898 = + /* @ts-ignore */ + goog.getMsg("899"); + msg = MSG_EXTERNAL_7995774347682550065$$MANY_I18N_ELEMENTS_TS_898; + } else { + /* @ts-ignore */ + msg = $localize`899`; + } + return msg; +} +function i18n_899() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4408516231241419831$$MANY_I18N_ELEMENTS_TS_899 = + /* @ts-ignore */ + goog.getMsg("900"); + msg = MSG_EXTERNAL_4408516231241419831$$MANY_I18N_ELEMENTS_TS_899; + } else { + /* @ts-ignore */ + msg = $localize`900`; + } + return msg; +} +function i18n_900() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2101239219038632154$$MANY_I18N_ELEMENTS_TS_900 = + /* @ts-ignore */ + goog.getMsg("901"); + msg = MSG_EXTERNAL_2101239219038632154$$MANY_I18N_ELEMENTS_TS_900; + } else { + /* @ts-ignore */ + msg = $localize`901`; + } + return msg; +} +function i18n_901() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4967510859442101225$$MANY_I18N_ELEMENTS_TS_901 = + /* @ts-ignore */ + goog.getMsg("902"); + msg = MSG_EXTERNAL_4967510859442101225$$MANY_I18N_ELEMENTS_TS_901; + } else { + /* @ts-ignore */ + msg = $localize`902`; + } + return msg; +} +function i18n_902() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6633629225136480639$$MANY_I18N_ELEMENTS_TS_902 = + /* @ts-ignore */ + goog.getMsg("903"); + msg = MSG_EXTERNAL_6633629225136480639$$MANY_I18N_ELEMENTS_TS_902; + } else { + /* @ts-ignore */ + msg = $localize`903`; + } + return msg; +} +function i18n_903() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2759305893104357759$$MANY_I18N_ELEMENTS_TS_903 = + /* @ts-ignore */ + goog.getMsg("904"); + msg = MSG_EXTERNAL_2759305893104357759$$MANY_I18N_ELEMENTS_TS_903; + } else { + /* @ts-ignore */ + msg = $localize`904`; + } + return msg; +} +function i18n_904() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2451980407806602000$$MANY_I18N_ELEMENTS_TS_904 = + /* @ts-ignore */ + goog.getMsg("905"); + msg = MSG_EXTERNAL_2451980407806602000$$MANY_I18N_ELEMENTS_TS_904; + } else { + /* @ts-ignore */ + msg = $localize`905`; + } + return msg; +} +function i18n_905() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6233389725298747397$$MANY_I18N_ELEMENTS_TS_905 = + /* @ts-ignore */ + goog.getMsg("906"); + msg = MSG_EXTERNAL_6233389725298747397$$MANY_I18N_ELEMENTS_TS_905; + } else { + /* @ts-ignore */ + msg = $localize`906`; + } + return msg; +} +function i18n_906() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6111753577636399696$$MANY_I18N_ELEMENTS_TS_906 = + /* @ts-ignore */ + goog.getMsg("907"); + msg = MSG_EXTERNAL_6111753577636399696$$MANY_I18N_ELEMENTS_TS_906; + } else { + /* @ts-ignore */ + msg = $localize`907`; + } + return msg; +} +function i18n_907() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9126194935608266136$$MANY_I18N_ELEMENTS_TS_907 = + /* @ts-ignore */ + goog.getMsg("908"); + msg = MSG_EXTERNAL_9126194935608266136$$MANY_I18N_ELEMENTS_TS_907; + } else { + /* @ts-ignore */ + msg = $localize`908`; + } + return msg; +} +function i18n_908() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6634236806192969298$$MANY_I18N_ELEMENTS_TS_908 = + /* @ts-ignore */ + goog.getMsg("909"); + msg = MSG_EXTERNAL_6634236806192969298$$MANY_I18N_ELEMENTS_TS_908; + } else { + /* @ts-ignore */ + msg = $localize`909`; + } + return msg; +} +function i18n_909() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4989355804086858860$$MANY_I18N_ELEMENTS_TS_909 = + /* @ts-ignore */ + goog.getMsg("910"); + msg = MSG_EXTERNAL_4989355804086858860$$MANY_I18N_ELEMENTS_TS_909; + } else { + /* @ts-ignore */ + msg = $localize`910`; + } + return msg; +} +function i18n_910() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_559318340275719642$$MANY_I18N_ELEMENTS_TS_910 = + /* @ts-ignore */ + goog.getMsg("911"); + msg = MSG_EXTERNAL_559318340275719642$$MANY_I18N_ELEMENTS_TS_910; + } else { + /* @ts-ignore */ + msg = $localize`911`; + } + return msg; +} +function i18n_911() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7151828829554642114$$MANY_I18N_ELEMENTS_TS_911 = + /* @ts-ignore */ + goog.getMsg("912"); + msg = MSG_EXTERNAL_7151828829554642114$$MANY_I18N_ELEMENTS_TS_911; + } else { + /* @ts-ignore */ + msg = $localize`912`; + } + return msg; +} +function i18n_912() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9210279744330234368$$MANY_I18N_ELEMENTS_TS_912 = + /* @ts-ignore */ + goog.getMsg("913"); + msg = MSG_EXTERNAL_9210279744330234368$$MANY_I18N_ELEMENTS_TS_912; + } else { + /* @ts-ignore */ + msg = $localize`913`; + } + return msg; +} +function i18n_913() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4855532047767902385$$MANY_I18N_ELEMENTS_TS_913 = + /* @ts-ignore */ + goog.getMsg("914"); + msg = MSG_EXTERNAL_4855532047767902385$$MANY_I18N_ELEMENTS_TS_913; + } else { + /* @ts-ignore */ + msg = $localize`914`; + } + return msg; +} +function i18n_914() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2883473504477680479$$MANY_I18N_ELEMENTS_TS_914 = + /* @ts-ignore */ + goog.getMsg("915"); + msg = MSG_EXTERNAL_2883473504477680479$$MANY_I18N_ELEMENTS_TS_914; + } else { + /* @ts-ignore */ + msg = $localize`915`; + } + return msg; +} +function i18n_915() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3123982867846495262$$MANY_I18N_ELEMENTS_TS_915 = + /* @ts-ignore */ + goog.getMsg("916"); + msg = MSG_EXTERNAL_3123982867846495262$$MANY_I18N_ELEMENTS_TS_915; + } else { + /* @ts-ignore */ + msg = $localize`916`; + } + return msg; +} +function i18n_916() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2849061081743835076$$MANY_I18N_ELEMENTS_TS_916 = + /* @ts-ignore */ + goog.getMsg("917"); + msg = MSG_EXTERNAL_2849061081743835076$$MANY_I18N_ELEMENTS_TS_916; + } else { + /* @ts-ignore */ + msg = $localize`917`; + } + return msg; +} +function i18n_917() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1772650429088627991$$MANY_I18N_ELEMENTS_TS_917 = + /* @ts-ignore */ + goog.getMsg("918"); + msg = MSG_EXTERNAL_1772650429088627991$$MANY_I18N_ELEMENTS_TS_917; + } else { + /* @ts-ignore */ + msg = $localize`918`; + } + return msg; +} +function i18n_918() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5358255354818979895$$MANY_I18N_ELEMENTS_TS_918 = + /* @ts-ignore */ + goog.getMsg("919"); + msg = MSG_EXTERNAL_5358255354818979895$$MANY_I18N_ELEMENTS_TS_918; + } else { + /* @ts-ignore */ + msg = $localize`919`; + } + return msg; +} +function i18n_919() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3826993176960150034$$MANY_I18N_ELEMENTS_TS_919 = + /* @ts-ignore */ + goog.getMsg("920"); + msg = MSG_EXTERNAL_3826993176960150034$$MANY_I18N_ELEMENTS_TS_919; + } else { + /* @ts-ignore */ + msg = $localize`920`; + } + return msg; +} +function i18n_920() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_144932017622617329$$MANY_I18N_ELEMENTS_TS_920 = + /* @ts-ignore */ + goog.getMsg("921"); + msg = MSG_EXTERNAL_144932017622617329$$MANY_I18N_ELEMENTS_TS_920; + } else { + /* @ts-ignore */ + msg = $localize`921`; + } + return msg; +} +function i18n_921() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7906182227402159516$$MANY_I18N_ELEMENTS_TS_921 = + /* @ts-ignore */ + goog.getMsg("922"); + msg = MSG_EXTERNAL_7906182227402159516$$MANY_I18N_ELEMENTS_TS_921; + } else { + /* @ts-ignore */ + msg = $localize`922`; + } + return msg; +} +function i18n_922() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1901786818324935623$$MANY_I18N_ELEMENTS_TS_922 = + /* @ts-ignore */ + goog.getMsg("923"); + msg = MSG_EXTERNAL_1901786818324935623$$MANY_I18N_ELEMENTS_TS_922; + } else { + /* @ts-ignore */ + msg = $localize`923`; + } + return msg; +} +function i18n_923() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5599756499646193107$$MANY_I18N_ELEMENTS_TS_923 = + /* @ts-ignore */ + goog.getMsg("924"); + msg = MSG_EXTERNAL_5599756499646193107$$MANY_I18N_ELEMENTS_TS_923; + } else { + /* @ts-ignore */ + msg = $localize`924`; + } + return msg; +} +function i18n_924() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6827119025313779880$$MANY_I18N_ELEMENTS_TS_924 = + /* @ts-ignore */ + goog.getMsg("925"); + msg = MSG_EXTERNAL_6827119025313779880$$MANY_I18N_ELEMENTS_TS_924; + } else { + /* @ts-ignore */ + msg = $localize`925`; + } + return msg; +} +function i18n_925() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7417529777895998021$$MANY_I18N_ELEMENTS_TS_925 = + /* @ts-ignore */ + goog.getMsg("926"); + msg = MSG_EXTERNAL_7417529777895998021$$MANY_I18N_ELEMENTS_TS_925; + } else { + /* @ts-ignore */ + msg = $localize`926`; + } + return msg; +} +function i18n_926() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_549852104502047746$$MANY_I18N_ELEMENTS_TS_926 = + /* @ts-ignore */ + goog.getMsg("927"); + msg = MSG_EXTERNAL_549852104502047746$$MANY_I18N_ELEMENTS_TS_926; + } else { + /* @ts-ignore */ + msg = $localize`927`; + } + return msg; +} +function i18n_927() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2735103616054751411$$MANY_I18N_ELEMENTS_TS_927 = + /* @ts-ignore */ + goog.getMsg("928"); + msg = MSG_EXTERNAL_2735103616054751411$$MANY_I18N_ELEMENTS_TS_927; + } else { + /* @ts-ignore */ + msg = $localize`928`; + } + return msg; +} +function i18n_928() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2984842085233698041$$MANY_I18N_ELEMENTS_TS_928 = + /* @ts-ignore */ + goog.getMsg("929"); + msg = MSG_EXTERNAL_2984842085233698041$$MANY_I18N_ELEMENTS_TS_928; + } else { + /* @ts-ignore */ + msg = $localize`929`; + } + return msg; +} +function i18n_929() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2291084883224977240$$MANY_I18N_ELEMENTS_TS_929 = + /* @ts-ignore */ + goog.getMsg("930"); + msg = MSG_EXTERNAL_2291084883224977240$$MANY_I18N_ELEMENTS_TS_929; + } else { + /* @ts-ignore */ + msg = $localize`930`; + } + return msg; +} +function i18n_930() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7042117067195601148$$MANY_I18N_ELEMENTS_TS_930 = + /* @ts-ignore */ + goog.getMsg("931"); + msg = MSG_EXTERNAL_7042117067195601148$$MANY_I18N_ELEMENTS_TS_930; + } else { + /* @ts-ignore */ + msg = $localize`931`; + } + return msg; +} +function i18n_931() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8193475114374708351$$MANY_I18N_ELEMENTS_TS_931 = + /* @ts-ignore */ + goog.getMsg("932"); + msg = MSG_EXTERNAL_8193475114374708351$$MANY_I18N_ELEMENTS_TS_931; + } else { + /* @ts-ignore */ + msg = $localize`932`; + } + return msg; +} +function i18n_932() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3344741141913186660$$MANY_I18N_ELEMENTS_TS_932 = + /* @ts-ignore */ + goog.getMsg("933"); + msg = MSG_EXTERNAL_3344741141913186660$$MANY_I18N_ELEMENTS_TS_932; + } else { + /* @ts-ignore */ + msg = $localize`933`; + } + return msg; +} +function i18n_933() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7711375839519716779$$MANY_I18N_ELEMENTS_TS_933 = + /* @ts-ignore */ + goog.getMsg("934"); + msg = MSG_EXTERNAL_7711375839519716779$$MANY_I18N_ELEMENTS_TS_933; + } else { + /* @ts-ignore */ + msg = $localize`934`; + } + return msg; +} +function i18n_934() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8427128500859670957$$MANY_I18N_ELEMENTS_TS_934 = + /* @ts-ignore */ + goog.getMsg("935"); + msg = MSG_EXTERNAL_8427128500859670957$$MANY_I18N_ELEMENTS_TS_934; + } else { + /* @ts-ignore */ + msg = $localize`935`; + } + return msg; +} +function i18n_935() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2777735753391832904$$MANY_I18N_ELEMENTS_TS_935 = + /* @ts-ignore */ + goog.getMsg("936"); + msg = MSG_EXTERNAL_2777735753391832904$$MANY_I18N_ELEMENTS_TS_935; + } else { + /* @ts-ignore */ + msg = $localize`936`; + } + return msg; +} +function i18n_936() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7611895375513361983$$MANY_I18N_ELEMENTS_TS_936 = + /* @ts-ignore */ + goog.getMsg("937"); + msg = MSG_EXTERNAL_7611895375513361983$$MANY_I18N_ELEMENTS_TS_936; + } else { + /* @ts-ignore */ + msg = $localize`937`; + } + return msg; +} +function i18n_937() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_533347868427915099$$MANY_I18N_ELEMENTS_TS_937 = + /* @ts-ignore */ + goog.getMsg("938"); + msg = MSG_EXTERNAL_533347868427915099$$MANY_I18N_ELEMENTS_TS_937; + } else { + /* @ts-ignore */ + msg = $localize`938`; + } + return msg; +} +function i18n_938() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_748465198757315031$$MANY_I18N_ELEMENTS_TS_938 = + /* @ts-ignore */ + goog.getMsg("939"); + msg = MSG_EXTERNAL_748465198757315031$$MANY_I18N_ELEMENTS_TS_938; + } else { + /* @ts-ignore */ + msg = $localize`939`; + } + return msg; +} +function i18n_939() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8119864861931202455$$MANY_I18N_ELEMENTS_TS_939 = + /* @ts-ignore */ + goog.getMsg("940"); + msg = MSG_EXTERNAL_8119864861931202455$$MANY_I18N_ELEMENTS_TS_939; + } else { + /* @ts-ignore */ + msg = $localize`940`; + } + return msg; +} +function i18n_940() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4492272824701700467$$MANY_I18N_ELEMENTS_TS_940 = + /* @ts-ignore */ + goog.getMsg("941"); + msg = MSG_EXTERNAL_4492272824701700467$$MANY_I18N_ELEMENTS_TS_940; + } else { + /* @ts-ignore */ + msg = $localize`941`; + } + return msg; +} +function i18n_941() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6296778842719098690$$MANY_I18N_ELEMENTS_TS_941 = + /* @ts-ignore */ + goog.getMsg("942"); + msg = MSG_EXTERNAL_6296778842719098690$$MANY_I18N_ELEMENTS_TS_941; + } else { + /* @ts-ignore */ + msg = $localize`942`; + } + return msg; +} +function i18n_942() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8554722406346847370$$MANY_I18N_ELEMENTS_TS_942 = + /* @ts-ignore */ + goog.getMsg("943"); + msg = MSG_EXTERNAL_8554722406346847370$$MANY_I18N_ELEMENTS_TS_942; + } else { + /* @ts-ignore */ + msg = $localize`943`; + } + return msg; +} +function i18n_943() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5280188299861972088$$MANY_I18N_ELEMENTS_TS_943 = + /* @ts-ignore */ + goog.getMsg("944"); + msg = MSG_EXTERNAL_5280188299861972088$$MANY_I18N_ELEMENTS_TS_943; + } else { + /* @ts-ignore */ + msg = $localize`944`; + } + return msg; +} +function i18n_944() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7149764251460755327$$MANY_I18N_ELEMENTS_TS_944 = + /* @ts-ignore */ + goog.getMsg("945"); + msg = MSG_EXTERNAL_7149764251460755327$$MANY_I18N_ELEMENTS_TS_944; + } else { + /* @ts-ignore */ + msg = $localize`945`; + } + return msg; +} +function i18n_945() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5635035040686377129$$MANY_I18N_ELEMENTS_TS_945 = + /* @ts-ignore */ + goog.getMsg("946"); + msg = MSG_EXTERNAL_5635035040686377129$$MANY_I18N_ELEMENTS_TS_945; + } else { + /* @ts-ignore */ + msg = $localize`946`; + } + return msg; +} +function i18n_946() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7935238619554134094$$MANY_I18N_ELEMENTS_TS_946 = + /* @ts-ignore */ + goog.getMsg("947"); + msg = MSG_EXTERNAL_7935238619554134094$$MANY_I18N_ELEMENTS_TS_946; + } else { + /* @ts-ignore */ + msg = $localize`947`; + } + return msg; +} +function i18n_947() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4440245207831379346$$MANY_I18N_ELEMENTS_TS_947 = + /* @ts-ignore */ + goog.getMsg("948"); + msg = MSG_EXTERNAL_4440245207831379346$$MANY_I18N_ELEMENTS_TS_947; + } else { + /* @ts-ignore */ + msg = $localize`948`; + } + return msg; +} +function i18n_948() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4644686625338167325$$MANY_I18N_ELEMENTS_TS_948 = + /* @ts-ignore */ + goog.getMsg("949"); + msg = MSG_EXTERNAL_4644686625338167325$$MANY_I18N_ELEMENTS_TS_948; + } else { + /* @ts-ignore */ + msg = $localize`949`; + } + return msg; +} +function i18n_949() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8898666941873063962$$MANY_I18N_ELEMENTS_TS_949 = + /* @ts-ignore */ + goog.getMsg("950"); + msg = MSG_EXTERNAL_8898666941873063962$$MANY_I18N_ELEMENTS_TS_949; + } else { + /* @ts-ignore */ + msg = $localize`950`; + } + return msg; +} +function i18n_950() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2884693679599752358$$MANY_I18N_ELEMENTS_TS_950 = + /* @ts-ignore */ + goog.getMsg("951"); + msg = MSG_EXTERNAL_2884693679599752358$$MANY_I18N_ELEMENTS_TS_950; + } else { + /* @ts-ignore */ + msg = $localize`951`; + } + return msg; +} +function i18n_951() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2301825012981372234$$MANY_I18N_ELEMENTS_TS_951 = + /* @ts-ignore */ + goog.getMsg("952"); + msg = MSG_EXTERNAL_2301825012981372234$$MANY_I18N_ELEMENTS_TS_951; + } else { + /* @ts-ignore */ + msg = $localize`952`; + } + return msg; +} +function i18n_952() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_220420259785501009$$MANY_I18N_ELEMENTS_TS_952 = + /* @ts-ignore */ + goog.getMsg("953"); + msg = MSG_EXTERNAL_220420259785501009$$MANY_I18N_ELEMENTS_TS_952; + } else { + /* @ts-ignore */ + msg = $localize`953`; + } + return msg; +} +function i18n_953() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5793190343241638325$$MANY_I18N_ELEMENTS_TS_953 = + /* @ts-ignore */ + goog.getMsg("954"); + msg = MSG_EXTERNAL_5793190343241638325$$MANY_I18N_ELEMENTS_TS_953; + } else { + /* @ts-ignore */ + msg = $localize`954`; + } + return msg; +} +function i18n_954() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4355277743930860786$$MANY_I18N_ELEMENTS_TS_954 = + /* @ts-ignore */ + goog.getMsg("955"); + msg = MSG_EXTERNAL_4355277743930860786$$MANY_I18N_ELEMENTS_TS_954; + } else { + /* @ts-ignore */ + msg = $localize`955`; + } + return msg; +} +function i18n_955() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7794916460794862153$$MANY_I18N_ELEMENTS_TS_955 = + /* @ts-ignore */ + goog.getMsg("956"); + msg = MSG_EXTERNAL_7794916460794862153$$MANY_I18N_ELEMENTS_TS_955; + } else { + /* @ts-ignore */ + msg = $localize`956`; + } + return msg; +} +function i18n_956() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6916695237387612271$$MANY_I18N_ELEMENTS_TS_956 = + /* @ts-ignore */ + goog.getMsg("957"); + msg = MSG_EXTERNAL_6916695237387612271$$MANY_I18N_ELEMENTS_TS_956; + } else { + /* @ts-ignore */ + msg = $localize`957`; + } + return msg; +} +function i18n_957() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3266221757094376930$$MANY_I18N_ELEMENTS_TS_957 = + /* @ts-ignore */ + goog.getMsg("958"); + msg = MSG_EXTERNAL_3266221757094376930$$MANY_I18N_ELEMENTS_TS_957; + } else { + /* @ts-ignore */ + msg = $localize`958`; + } + return msg; +} +function i18n_958() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8803193050111058210$$MANY_I18N_ELEMENTS_TS_958 = + /* @ts-ignore */ + goog.getMsg("959"); + msg = MSG_EXTERNAL_8803193050111058210$$MANY_I18N_ELEMENTS_TS_958; + } else { + /* @ts-ignore */ + msg = $localize`959`; + } + return msg; +} +function i18n_959() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1867225321244992645$$MANY_I18N_ELEMENTS_TS_959 = + /* @ts-ignore */ + goog.getMsg("960"); + msg = MSG_EXTERNAL_1867225321244992645$$MANY_I18N_ELEMENTS_TS_959; + } else { + /* @ts-ignore */ + msg = $localize`960`; + } + return msg; +} +function i18n_960() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_84300565037175591$$MANY_I18N_ELEMENTS_TS_960 = + /* @ts-ignore */ + goog.getMsg("961"); + msg = MSG_EXTERNAL_84300565037175591$$MANY_I18N_ELEMENTS_TS_960; + } else { + /* @ts-ignore */ + msg = $localize`961`; + } + return msg; +} +function i18n_961() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8760900674130693521$$MANY_I18N_ELEMENTS_TS_961 = + /* @ts-ignore */ + goog.getMsg("962"); + msg = MSG_EXTERNAL_8760900674130693521$$MANY_I18N_ELEMENTS_TS_961; + } else { + /* @ts-ignore */ + msg = $localize`962`; + } + return msg; +} +function i18n_962() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_409837923447242926$$MANY_I18N_ELEMENTS_TS_962 = + /* @ts-ignore */ + goog.getMsg("963"); + msg = MSG_EXTERNAL_409837923447242926$$MANY_I18N_ELEMENTS_TS_962; + } else { + /* @ts-ignore */ + msg = $localize`963`; + } + return msg; +} +function i18n_963() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4337683855114402040$$MANY_I18N_ELEMENTS_TS_963 = + /* @ts-ignore */ + goog.getMsg("964"); + msg = MSG_EXTERNAL_4337683855114402040$$MANY_I18N_ELEMENTS_TS_963; + } else { + /* @ts-ignore */ + msg = $localize`964`; + } + return msg; +} +function i18n_964() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1783631509129679657$$MANY_I18N_ELEMENTS_TS_964 = + /* @ts-ignore */ + goog.getMsg("965"); + msg = MSG_EXTERNAL_1783631509129679657$$MANY_I18N_ELEMENTS_TS_964; + } else { + /* @ts-ignore */ + msg = $localize`965`; + } + return msg; +} +function i18n_965() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4031327718859850652$$MANY_I18N_ELEMENTS_TS_965 = + /* @ts-ignore */ + goog.getMsg("966"); + msg = MSG_EXTERNAL_4031327718859850652$$MANY_I18N_ELEMENTS_TS_965; + } else { + /* @ts-ignore */ + msg = $localize`966`; + } + return msg; +} +function i18n_966() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7476082723771536276$$MANY_I18N_ELEMENTS_TS_966 = + /* @ts-ignore */ + goog.getMsg("967"); + msg = MSG_EXTERNAL_7476082723771536276$$MANY_I18N_ELEMENTS_TS_966; + } else { + /* @ts-ignore */ + msg = $localize`967`; + } + return msg; +} +function i18n_967() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6944997819445312856$$MANY_I18N_ELEMENTS_TS_967 = + /* @ts-ignore */ + goog.getMsg("968"); + msg = MSG_EXTERNAL_6944997819445312856$$MANY_I18N_ELEMENTS_TS_967; + } else { + /* @ts-ignore */ + msg = $localize`968`; + } + return msg; +} +function i18n_968() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7235214694789174479$$MANY_I18N_ELEMENTS_TS_968 = + /* @ts-ignore */ + goog.getMsg("969"); + msg = MSG_EXTERNAL_7235214694789174479$$MANY_I18N_ELEMENTS_TS_968; + } else { + /* @ts-ignore */ + msg = $localize`969`; + } + return msg; +} +function i18n_969() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_476917990907019245$$MANY_I18N_ELEMENTS_TS_969 = + /* @ts-ignore */ + goog.getMsg("970"); + msg = MSG_EXTERNAL_476917990907019245$$MANY_I18N_ELEMENTS_TS_969; + } else { + /* @ts-ignore */ + msg = $localize`970`; + } + return msg; +} +function i18n_970() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4192519059083852944$$MANY_I18N_ELEMENTS_TS_970 = + /* @ts-ignore */ + goog.getMsg("971"); + msg = MSG_EXTERNAL_4192519059083852944$$MANY_I18N_ELEMENTS_TS_970; + } else { + /* @ts-ignore */ + msg = $localize`971`; + } + return msg; +} +function i18n_971() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4488989513006386681$$MANY_I18N_ELEMENTS_TS_971 = + /* @ts-ignore */ + goog.getMsg("972"); + msg = MSG_EXTERNAL_4488989513006386681$$MANY_I18N_ELEMENTS_TS_971; + } else { + /* @ts-ignore */ + msg = $localize`972`; + } + return msg; +} +function i18n_972() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6435315635394757075$$MANY_I18N_ELEMENTS_TS_972 = + /* @ts-ignore */ + goog.getMsg("973"); + msg = MSG_EXTERNAL_6435315635394757075$$MANY_I18N_ELEMENTS_TS_972; + } else { + /* @ts-ignore */ + msg = $localize`973`; + } + return msg; +} +function i18n_973() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3556754794890039042$$MANY_I18N_ELEMENTS_TS_973 = + /* @ts-ignore */ + goog.getMsg("974"); + msg = MSG_EXTERNAL_3556754794890039042$$MANY_I18N_ELEMENTS_TS_973; + } else { + /* @ts-ignore */ + msg = $localize`974`; + } + return msg; +} +function i18n_974() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7419984011877865274$$MANY_I18N_ELEMENTS_TS_974 = + /* @ts-ignore */ + goog.getMsg("975"); + msg = MSG_EXTERNAL_7419984011877865274$$MANY_I18N_ELEMENTS_TS_974; + } else { + /* @ts-ignore */ + msg = $localize`975`; + } + return msg; +} +function i18n_975() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6696304441905635524$$MANY_I18N_ELEMENTS_TS_975 = + /* @ts-ignore */ + goog.getMsg("976"); + msg = MSG_EXTERNAL_6696304441905635524$$MANY_I18N_ELEMENTS_TS_975; + } else { + /* @ts-ignore */ + msg = $localize`976`; + } + return msg; +} +function i18n_976() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1377609742372019379$$MANY_I18N_ELEMENTS_TS_976 = + /* @ts-ignore */ + goog.getMsg("977"); + msg = MSG_EXTERNAL_1377609742372019379$$MANY_I18N_ELEMENTS_TS_976; + } else { + /* @ts-ignore */ + msg = $localize`977`; + } + return msg; +} +function i18n_977() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1114883346309089487$$MANY_I18N_ELEMENTS_TS_977 = + /* @ts-ignore */ + goog.getMsg("978"); + msg = MSG_EXTERNAL_1114883346309089487$$MANY_I18N_ELEMENTS_TS_977; + } else { + /* @ts-ignore */ + msg = $localize`978`; + } + return msg; +} +function i18n_978() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_51249307998526243$$MANY_I18N_ELEMENTS_TS_978 = + /* @ts-ignore */ + goog.getMsg("979"); + msg = MSG_EXTERNAL_51249307998526243$$MANY_I18N_ELEMENTS_TS_978; + } else { + /* @ts-ignore */ + msg = $localize`979`; + } + return msg; +} +function i18n_979() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_918217691820643885$$MANY_I18N_ELEMENTS_TS_979 = + /* @ts-ignore */ + goog.getMsg("980"); + msg = MSG_EXTERNAL_918217691820643885$$MANY_I18N_ELEMENTS_TS_979; + } else { + /* @ts-ignore */ + msg = $localize`980`; + } + return msg; +} +function i18n_980() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6276856084827044622$$MANY_I18N_ELEMENTS_TS_980 = + /* @ts-ignore */ + goog.getMsg("981"); + msg = MSG_EXTERNAL_6276856084827044622$$MANY_I18N_ELEMENTS_TS_980; + } else { + /* @ts-ignore */ + msg = $localize`981`; + } + return msg; +} +function i18n_981() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3926232380881867734$$MANY_I18N_ELEMENTS_TS_981 = + /* @ts-ignore */ + goog.getMsg("982"); + msg = MSG_EXTERNAL_3926232380881867734$$MANY_I18N_ELEMENTS_TS_981; + } else { + /* @ts-ignore */ + msg = $localize`982`; + } + return msg; +} +function i18n_982() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4021383907091137654$$MANY_I18N_ELEMENTS_TS_982 = + /* @ts-ignore */ + goog.getMsg("983"); + msg = MSG_EXTERNAL_4021383907091137654$$MANY_I18N_ELEMENTS_TS_982; + } else { + /* @ts-ignore */ + msg = $localize`983`; + } + return msg; +} +function i18n_983() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2111725909660440742$$MANY_I18N_ELEMENTS_TS_983 = + /* @ts-ignore */ + goog.getMsg("984"); + msg = MSG_EXTERNAL_2111725909660440742$$MANY_I18N_ELEMENTS_TS_983; + } else { + /* @ts-ignore */ + msg = $localize`984`; + } + return msg; +} +function i18n_984() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3050977062967573353$$MANY_I18N_ELEMENTS_TS_984 = + /* @ts-ignore */ + goog.getMsg("985"); + msg = MSG_EXTERNAL_3050977062967573353$$MANY_I18N_ELEMENTS_TS_984; + } else { + /* @ts-ignore */ + msg = $localize`985`; + } + return msg; +} +function i18n_985() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3325247151618123089$$MANY_I18N_ELEMENTS_TS_985 = + /* @ts-ignore */ + goog.getMsg("986"); + msg = MSG_EXTERNAL_3325247151618123089$$MANY_I18N_ELEMENTS_TS_985; + } else { + /* @ts-ignore */ + msg = $localize`986`; + } + return msg; +} +function i18n_986() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5946412549600479173$$MANY_I18N_ELEMENTS_TS_986 = + /* @ts-ignore */ + goog.getMsg("987"); + msg = MSG_EXTERNAL_5946412549600479173$$MANY_I18N_ELEMENTS_TS_986; + } else { + /* @ts-ignore */ + msg = $localize`987`; + } + return msg; +} +function i18n_987() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_335671797902107655$$MANY_I18N_ELEMENTS_TS_987 = + /* @ts-ignore */ + goog.getMsg("988"); + msg = MSG_EXTERNAL_335671797902107655$$MANY_I18N_ELEMENTS_TS_987; + } else { + /* @ts-ignore */ + msg = $localize`988`; + } + return msg; +} +function i18n_988() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7592938793775110918$$MANY_I18N_ELEMENTS_TS_988 = + /* @ts-ignore */ + goog.getMsg("989"); + msg = MSG_EXTERNAL_7592938793775110918$$MANY_I18N_ELEMENTS_TS_988; + } else { + /* @ts-ignore */ + msg = $localize`989`; + } + return msg; +} +function i18n_989() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8387397612652592951$$MANY_I18N_ELEMENTS_TS_989 = + /* @ts-ignore */ + goog.getMsg("990"); + msg = MSG_EXTERNAL_8387397612652592951$$MANY_I18N_ELEMENTS_TS_989; + } else { + /* @ts-ignore */ + msg = $localize`990`; + } + return msg; +} +function i18n_990() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4596042704121123310$$MANY_I18N_ELEMENTS_TS_990 = + /* @ts-ignore */ + goog.getMsg("991"); + msg = MSG_EXTERNAL_4596042704121123310$$MANY_I18N_ELEMENTS_TS_990; + } else { + /* @ts-ignore */ + msg = $localize`991`; + } + return msg; +} +function i18n_991() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6551078144457953925$$MANY_I18N_ELEMENTS_TS_991 = + /* @ts-ignore */ + goog.getMsg("992"); + msg = MSG_EXTERNAL_6551078144457953925$$MANY_I18N_ELEMENTS_TS_991; + } else { + /* @ts-ignore */ + msg = $localize`992`; + } + return msg; +} +function i18n_992() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3829977354757415485$$MANY_I18N_ELEMENTS_TS_992 = + /* @ts-ignore */ + goog.getMsg("993"); + msg = MSG_EXTERNAL_3829977354757415485$$MANY_I18N_ELEMENTS_TS_992; + } else { + /* @ts-ignore */ + msg = $localize`993`; + } + return msg; +} +function i18n_993() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5908982775668501451$$MANY_I18N_ELEMENTS_TS_993 = + /* @ts-ignore */ + goog.getMsg("994"); + msg = MSG_EXTERNAL_5908982775668501451$$MANY_I18N_ELEMENTS_TS_993; + } else { + /* @ts-ignore */ + msg = $localize`994`; + } + return msg; +} +function i18n_994() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8021508531015187844$$MANY_I18N_ELEMENTS_TS_994 = + /* @ts-ignore */ + goog.getMsg("995"); + msg = MSG_EXTERNAL_8021508531015187844$$MANY_I18N_ELEMENTS_TS_994; + } else { + /* @ts-ignore */ + msg = $localize`995`; + } + return msg; +} +function i18n_995() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5861389317338209955$$MANY_I18N_ELEMENTS_TS_995 = + /* @ts-ignore */ + goog.getMsg("996"); + msg = MSG_EXTERNAL_5861389317338209955$$MANY_I18N_ELEMENTS_TS_995; + } else { + /* @ts-ignore */ + msg = $localize`996`; + } + return msg; +} +function i18n_996() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8424998229040397119$$MANY_I18N_ELEMENTS_TS_996 = + /* @ts-ignore */ + goog.getMsg("997"); + msg = MSG_EXTERNAL_8424998229040397119$$MANY_I18N_ELEMENTS_TS_996; + } else { + /* @ts-ignore */ + msg = $localize`997`; + } + return msg; +} +function i18n_997() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6972265845850315089$$MANY_I18N_ELEMENTS_TS_997 = + /* @ts-ignore */ + goog.getMsg("998"); + msg = MSG_EXTERNAL_6972265845850315089$$MANY_I18N_ELEMENTS_TS_997; + } else { + /* @ts-ignore */ + msg = $localize`998`; + } + return msg; +} +function i18n_998() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1557442344052740353$$MANY_I18N_ELEMENTS_TS_998 = + /* @ts-ignore */ + goog.getMsg("999"); + msg = MSG_EXTERNAL_1557442344052740353$$MANY_I18N_ELEMENTS_TS_998; + } else { + /* @ts-ignore */ + msg = $localize`999`; + } + return msg; +} +function i18n_999() { + let msg; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_141047061535912199$$MANY_I18N_ELEMENTS_TS_999 = + /* @ts-ignore */ + goog.getMsg("1000"); + msg = MSG_EXTERNAL_141047061535912199$$MANY_I18N_ELEMENTS_TS_999; + } else { + /* @ts-ignore */ + msg = $localize`1000`; + } + return msg; +} +export class App { + static ɵfac = function App_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || App)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: App, + selectors: [["ng-component"]], + decls: 2000, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4863371103643861248$$MANY_I18N_ELEMENTS_TS_0 = + /* @ts-ignore */ + goog.getMsg("1"); + i18n_0 = MSG_EXTERNAL_4863371103643861248$$MANY_I18N_ELEMENTS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`1`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6441168497334529189$$MANY_I18N_ELEMENTS_TS_1 = + /* @ts-ignore */ + goog.getMsg("2"); + i18n_1 = MSG_EXTERNAL_6441168497334529189$$MANY_I18N_ELEMENTS_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`2`; + } + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5553013051982389716$$MANY_I18N_ELEMENTS_TS_2 = + /* @ts-ignore */ + goog.getMsg("3"); + i18n_2 = MSG_EXTERNAL_5553013051982389716$$MANY_I18N_ELEMENTS_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`3`; + } + let i18n_3; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6300003832284833975$$MANY_I18N_ELEMENTS_TS_3 = + /* @ts-ignore */ + goog.getMsg("4"); + i18n_3 = MSG_EXTERNAL_6300003832284833975$$MANY_I18N_ELEMENTS_TS_3; + } else { + /* @ts-ignore */ + i18n_3 = $localize`4`; + } + let i18n_4; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5170424074936382089$$MANY_I18N_ELEMENTS_TS_4 = + /* @ts-ignore */ + goog.getMsg("5"); + i18n_4 = MSG_EXTERNAL_5170424074936382089$$MANY_I18N_ELEMENTS_TS_4; + } else { + /* @ts-ignore */ + i18n_4 = $localize`5`; + } + let i18n_5; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6338182211544106163$$MANY_I18N_ELEMENTS_TS_5 = + /* @ts-ignore */ + goog.getMsg("6"); + i18n_5 = MSG_EXTERNAL_6338182211544106163$$MANY_I18N_ELEMENTS_TS_5; + } else { + /* @ts-ignore */ + i18n_5 = $localize`6`; + } + let i18n_6; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1499934221434374468$$MANY_I18N_ELEMENTS_TS_6 = + /* @ts-ignore */ + goog.getMsg("7"); + i18n_6 = MSG_EXTERNAL_1499934221434374468$$MANY_I18N_ELEMENTS_TS_6; + } else { + /* @ts-ignore */ + i18n_6 = $localize`7`; + } + let i18n_7; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1084741602881469169$$MANY_I18N_ELEMENTS_TS_7 = + /* @ts-ignore */ + goog.getMsg("8"); + i18n_7 = MSG_EXTERNAL_1084741602881469169$$MANY_I18N_ELEMENTS_TS_7; + } else { + /* @ts-ignore */ + i18n_7 = $localize`8`; + } + let i18n_8; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2890473785242626159$$MANY_I18N_ELEMENTS_TS_8 = + /* @ts-ignore */ + goog.getMsg("9"); + i18n_8 = MSG_EXTERNAL_2890473785242626159$$MANY_I18N_ELEMENTS_TS_8; + } else { + /* @ts-ignore */ + i18n_8 = $localize`9`; + } + let i18n_9; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3194836961668992694$$MANY_I18N_ELEMENTS_TS_9 = + /* @ts-ignore */ + goog.getMsg("10"); + i18n_9 = MSG_EXTERNAL_3194836961668992694$$MANY_I18N_ELEMENTS_TS_9; + } else { + /* @ts-ignore */ + i18n_9 = $localize`10`; + } + let i18n_10; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2194884218271018037$$MANY_I18N_ELEMENTS_TS_10 = + /* @ts-ignore */ + goog.getMsg("11"); + i18n_10 = MSG_EXTERNAL_2194884218271018037$$MANY_I18N_ELEMENTS_TS_10; + } else { + /* @ts-ignore */ + i18n_10 = $localize`11`; + } + let i18n_11; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8808682958974357007$$MANY_I18N_ELEMENTS_TS_11 = + /* @ts-ignore */ + goog.getMsg("12"); + i18n_11 = MSG_EXTERNAL_8808682958974357007$$MANY_I18N_ELEMENTS_TS_11; + } else { + /* @ts-ignore */ + i18n_11 = $localize`12`; + } + let i18n_12; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1426029655970332575$$MANY_I18N_ELEMENTS_TS_12 = + /* @ts-ignore */ + goog.getMsg("13"); + i18n_12 = MSG_EXTERNAL_1426029655970332575$$MANY_I18N_ELEMENTS_TS_12; + } else { + /* @ts-ignore */ + i18n_12 = $localize`13`; + } + let i18n_13; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4236063460773505757$$MANY_I18N_ELEMENTS_TS_13 = + /* @ts-ignore */ + goog.getMsg("14"); + i18n_13 = MSG_EXTERNAL_4236063460773505757$$MANY_I18N_ELEMENTS_TS_13; + } else { + /* @ts-ignore */ + i18n_13 = $localize`14`; + } + let i18n_14; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_942075175465938398$$MANY_I18N_ELEMENTS_TS_14 = + /* @ts-ignore */ + goog.getMsg("15"); + i18n_14 = MSG_EXTERNAL_942075175465938398$$MANY_I18N_ELEMENTS_TS_14; + } else { + /* @ts-ignore */ + i18n_14 = $localize`15`; + } + let i18n_15; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1623295449498492817$$MANY_I18N_ELEMENTS_TS_15 = + /* @ts-ignore */ + goog.getMsg("16"); + i18n_15 = MSG_EXTERNAL_1623295449498492817$$MANY_I18N_ELEMENTS_TS_15; + } else { + /* @ts-ignore */ + i18n_15 = $localize`16`; + } + let i18n_16; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2293936066607691778$$MANY_I18N_ELEMENTS_TS_16 = + /* @ts-ignore */ + goog.getMsg("17"); + i18n_16 = MSG_EXTERNAL_2293936066607691778$$MANY_I18N_ELEMENTS_TS_16; + } else { + /* @ts-ignore */ + i18n_16 = $localize`17`; + } + let i18n_17; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4236068387422542718$$MANY_I18N_ELEMENTS_TS_17 = + /* @ts-ignore */ + goog.getMsg("18"); + i18n_17 = MSG_EXTERNAL_4236068387422542718$$MANY_I18N_ELEMENTS_TS_17; + } else { + /* @ts-ignore */ + i18n_17 = $localize`18`; + } + let i18n_18; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_75454074287422194$$MANY_I18N_ELEMENTS_TS_18 = + /* @ts-ignore */ + goog.getMsg("19"); + i18n_18 = MSG_EXTERNAL_75454074287422194$$MANY_I18N_ELEMENTS_TS_18; + } else { + /* @ts-ignore */ + i18n_18 = $localize`19`; + } + let i18n_19; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1889722484816371833$$MANY_I18N_ELEMENTS_TS_19 = + /* @ts-ignore */ + goog.getMsg("20"); + i18n_19 = MSG_EXTERNAL_1889722484816371833$$MANY_I18N_ELEMENTS_TS_19; + } else { + /* @ts-ignore */ + i18n_19 = $localize`20`; + } + let i18n_20; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7854800921504792134$$MANY_I18N_ELEMENTS_TS_20 = + /* @ts-ignore */ + goog.getMsg("21"); + i18n_20 = MSG_EXTERNAL_7854800921504792134$$MANY_I18N_ELEMENTS_TS_20; + } else { + /* @ts-ignore */ + i18n_20 = $localize`21`; + } + let i18n_21; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1061222808808044202$$MANY_I18N_ELEMENTS_TS_21 = + /* @ts-ignore */ + goog.getMsg("22"); + i18n_21 = MSG_EXTERNAL_1061222808808044202$$MANY_I18N_ELEMENTS_TS_21; + } else { + /* @ts-ignore */ + i18n_21 = $localize`22`; + } + let i18n_22; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6831776898924515503$$MANY_I18N_ELEMENTS_TS_22 = + /* @ts-ignore */ + goog.getMsg("23"); + i18n_22 = MSG_EXTERNAL_6831776898924515503$$MANY_I18N_ELEMENTS_TS_22; + } else { + /* @ts-ignore */ + i18n_22 = $localize`23`; + } + let i18n_23; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9044509709766830809$$MANY_I18N_ELEMENTS_TS_23 = + /* @ts-ignore */ + goog.getMsg("24"); + i18n_23 = MSG_EXTERNAL_9044509709766830809$$MANY_I18N_ELEMENTS_TS_23; + } else { + /* @ts-ignore */ + i18n_23 = $localize`24`; + } + let i18n_24; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6395264418740121248$$MANY_I18N_ELEMENTS_TS_24 = + /* @ts-ignore */ + goog.getMsg("25"); + i18n_24 = MSG_EXTERNAL_6395264418740121248$$MANY_I18N_ELEMENTS_TS_24; + } else { + /* @ts-ignore */ + i18n_24 = $localize`25`; + } + let i18n_25; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4746970274036331649$$MANY_I18N_ELEMENTS_TS_25 = + /* @ts-ignore */ + goog.getMsg("26"); + i18n_25 = MSG_EXTERNAL_4746970274036331649$$MANY_I18N_ELEMENTS_TS_25; + } else { + /* @ts-ignore */ + i18n_25 = $localize`26`; + } + let i18n_26; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3606979657711941339$$MANY_I18N_ELEMENTS_TS_26 = + /* @ts-ignore */ + goog.getMsg("27"); + i18n_26 = MSG_EXTERNAL_3606979657711941339$$MANY_I18N_ELEMENTS_TS_26; + } else { + /* @ts-ignore */ + i18n_26 = $localize`27`; + } + let i18n_27; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8464137077297362496$$MANY_I18N_ELEMENTS_TS_27 = + /* @ts-ignore */ + goog.getMsg("28"); + i18n_27 = MSG_EXTERNAL_8464137077297362496$$MANY_I18N_ELEMENTS_TS_27; + } else { + /* @ts-ignore */ + i18n_27 = $localize`28`; + } + let i18n_28; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5083769449049921018$$MANY_I18N_ELEMENTS_TS_28 = + /* @ts-ignore */ + goog.getMsg("29"); + i18n_28 = MSG_EXTERNAL_5083769449049921018$$MANY_I18N_ELEMENTS_TS_28; + } else { + /* @ts-ignore */ + i18n_28 = $localize`29`; + } + let i18n_29; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4740349832371977963$$MANY_I18N_ELEMENTS_TS_29 = + /* @ts-ignore */ + goog.getMsg("30"); + i18n_29 = MSG_EXTERNAL_4740349832371977963$$MANY_I18N_ELEMENTS_TS_29; + } else { + /* @ts-ignore */ + i18n_29 = $localize`30`; + } + let i18n_30; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4481260554508326130$$MANY_I18N_ELEMENTS_TS_30 = + /* @ts-ignore */ + goog.getMsg("31"); + i18n_30 = MSG_EXTERNAL_4481260554508326130$$MANY_I18N_ELEMENTS_TS_30; + } else { + /* @ts-ignore */ + i18n_30 = $localize`31`; + } + let i18n_31; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_978665088271864757$$MANY_I18N_ELEMENTS_TS_31 = + /* @ts-ignore */ + goog.getMsg("32"); + i18n_31 = MSG_EXTERNAL_978665088271864757$$MANY_I18N_ELEMENTS_TS_31; + } else { + /* @ts-ignore */ + i18n_31 = $localize`32`; + } + let i18n_32; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6903756285022109898$$MANY_I18N_ELEMENTS_TS_32 = + /* @ts-ignore */ + goog.getMsg("33"); + i18n_32 = MSG_EXTERNAL_6903756285022109898$$MANY_I18N_ELEMENTS_TS_32; + } else { + /* @ts-ignore */ + i18n_32 = $localize`33`; + } + let i18n_33; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_889447088844909396$$MANY_I18N_ELEMENTS_TS_33 = + /* @ts-ignore */ + goog.getMsg("34"); + i18n_33 = MSG_EXTERNAL_889447088844909396$$MANY_I18N_ELEMENTS_TS_33; + } else { + /* @ts-ignore */ + i18n_33 = $localize`34`; + } + let i18n_34; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8059259399232736948$$MANY_I18N_ELEMENTS_TS_34 = + /* @ts-ignore */ + goog.getMsg("35"); + i18n_34 = MSG_EXTERNAL_8059259399232736948$$MANY_I18N_ELEMENTS_TS_34; + } else { + /* @ts-ignore */ + i18n_34 = $localize`35`; + } + let i18n_35; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3689271639020260956$$MANY_I18N_ELEMENTS_TS_35 = + /* @ts-ignore */ + goog.getMsg("36"); + i18n_35 = MSG_EXTERNAL_3689271639020260956$$MANY_I18N_ELEMENTS_TS_35; + } else { + /* @ts-ignore */ + i18n_35 = $localize`36`; + } + let i18n_36; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4824862297537760297$$MANY_I18N_ELEMENTS_TS_36 = + /* @ts-ignore */ + goog.getMsg("37"); + i18n_36 = MSG_EXTERNAL_4824862297537760297$$MANY_I18N_ELEMENTS_TS_36; + } else { + /* @ts-ignore */ + i18n_36 = $localize`37`; + } + let i18n_37; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3777658387499381435$$MANY_I18N_ELEMENTS_TS_37 = + /* @ts-ignore */ + goog.getMsg("38"); + i18n_37 = MSG_EXTERNAL_3777658387499381435$$MANY_I18N_ELEMENTS_TS_37; + } else { + /* @ts-ignore */ + i18n_37 = $localize`38`; + } + let i18n_38; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4921487945478769148$$MANY_I18N_ELEMENTS_TS_38 = + /* @ts-ignore */ + goog.getMsg("39"); + i18n_38 = MSG_EXTERNAL_4921487945478769148$$MANY_I18N_ELEMENTS_TS_38; + } else { + /* @ts-ignore */ + i18n_38 = $localize`39`; + } + let i18n_39; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8989665588817608506$$MANY_I18N_ELEMENTS_TS_39 = + /* @ts-ignore */ + goog.getMsg("40"); + i18n_39 = MSG_EXTERNAL_8989665588817608506$$MANY_I18N_ELEMENTS_TS_39; + } else { + /* @ts-ignore */ + i18n_39 = $localize`40`; + } + let i18n_40; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_194241339735546571$$MANY_I18N_ELEMENTS_TS_40 = + /* @ts-ignore */ + goog.getMsg("41"); + i18n_40 = MSG_EXTERNAL_194241339735546571$$MANY_I18N_ELEMENTS_TS_40; + } else { + /* @ts-ignore */ + i18n_40 = $localize`41`; + } + let i18n_41; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8029938078906594809$$MANY_I18N_ELEMENTS_TS_41 = + /* @ts-ignore */ + goog.getMsg("42"); + i18n_41 = MSG_EXTERNAL_8029938078906594809$$MANY_I18N_ELEMENTS_TS_41; + } else { + /* @ts-ignore */ + i18n_41 = $localize`42`; + } + let i18n_42; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8677356097815105111$$MANY_I18N_ELEMENTS_TS_42 = + /* @ts-ignore */ + goog.getMsg("43"); + i18n_42 = MSG_EXTERNAL_8677356097815105111$$MANY_I18N_ELEMENTS_TS_42; + } else { + /* @ts-ignore */ + i18n_42 = $localize`43`; + } + let i18n_43; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1714953966636339623$$MANY_I18N_ELEMENTS_TS_43 = + /* @ts-ignore */ + goog.getMsg("44"); + i18n_43 = MSG_EXTERNAL_1714953966636339623$$MANY_I18N_ELEMENTS_TS_43; + } else { + /* @ts-ignore */ + i18n_43 = $localize`44`; + } + let i18n_44; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4229798946726476971$$MANY_I18N_ELEMENTS_TS_44 = + /* @ts-ignore */ + goog.getMsg("45"); + i18n_44 = MSG_EXTERNAL_4229798946726476971$$MANY_I18N_ELEMENTS_TS_44; + } else { + /* @ts-ignore */ + i18n_44 = $localize`45`; + } + let i18n_45; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6936703223313302020$$MANY_I18N_ELEMENTS_TS_45 = + /* @ts-ignore */ + goog.getMsg("46"); + i18n_45 = MSG_EXTERNAL_6936703223313302020$$MANY_I18N_ELEMENTS_TS_45; + } else { + /* @ts-ignore */ + i18n_45 = $localize`46`; + } + let i18n_46; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6052302293951492075$$MANY_I18N_ELEMENTS_TS_46 = + /* @ts-ignore */ + goog.getMsg("47"); + i18n_46 = MSG_EXTERNAL_6052302293951492075$$MANY_I18N_ELEMENTS_TS_46; + } else { + /* @ts-ignore */ + i18n_46 = $localize`47`; + } + let i18n_47; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8573506830982293163$$MANY_I18N_ELEMENTS_TS_47 = + /* @ts-ignore */ + goog.getMsg("48"); + i18n_47 = MSG_EXTERNAL_8573506830982293163$$MANY_I18N_ELEMENTS_TS_47; + } else { + /* @ts-ignore */ + i18n_47 = $localize`48`; + } + let i18n_48; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9199085633510661109$$MANY_I18N_ELEMENTS_TS_48 = + /* @ts-ignore */ + goog.getMsg("49"); + i18n_48 = MSG_EXTERNAL_9199085633510661109$$MANY_I18N_ELEMENTS_TS_48; + } else { + /* @ts-ignore */ + i18n_48 = $localize`49`; + } + let i18n_49; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3050467842799257499$$MANY_I18N_ELEMENTS_TS_49 = + /* @ts-ignore */ + goog.getMsg("50"); + i18n_49 = MSG_EXTERNAL_3050467842799257499$$MANY_I18N_ELEMENTS_TS_49; + } else { + /* @ts-ignore */ + i18n_49 = $localize`50`; + } + let i18n_50; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6813801992144158393$$MANY_I18N_ELEMENTS_TS_50 = + /* @ts-ignore */ + goog.getMsg("51"); + i18n_50 = MSG_EXTERNAL_6813801992144158393$$MANY_I18N_ELEMENTS_TS_50; + } else { + /* @ts-ignore */ + i18n_50 = $localize`51`; + } + let i18n_51; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8020219366784435885$$MANY_I18N_ELEMENTS_TS_51 = + /* @ts-ignore */ + goog.getMsg("52"); + i18n_51 = MSG_EXTERNAL_8020219366784435885$$MANY_I18N_ELEMENTS_TS_51; + } else { + /* @ts-ignore */ + i18n_51 = $localize`52`; + } + let i18n_52; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8738288426194552922$$MANY_I18N_ELEMENTS_TS_52 = + /* @ts-ignore */ + goog.getMsg("53"); + i18n_52 = MSG_EXTERNAL_8738288426194552922$$MANY_I18N_ELEMENTS_TS_52; + } else { + /* @ts-ignore */ + i18n_52 = $localize`53`; + } + let i18n_53; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3360762533993165457$$MANY_I18N_ELEMENTS_TS_53 = + /* @ts-ignore */ + goog.getMsg("54"); + i18n_53 = MSG_EXTERNAL_3360762533993165457$$MANY_I18N_ELEMENTS_TS_53; + } else { + /* @ts-ignore */ + i18n_53 = $localize`54`; + } + let i18n_54; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5354555694948248718$$MANY_I18N_ELEMENTS_TS_54 = + /* @ts-ignore */ + goog.getMsg("55"); + i18n_54 = MSG_EXTERNAL_5354555694948248718$$MANY_I18N_ELEMENTS_TS_54; + } else { + /* @ts-ignore */ + i18n_54 = $localize`55`; + } + let i18n_55; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5827638088794815761$$MANY_I18N_ELEMENTS_TS_55 = + /* @ts-ignore */ + goog.getMsg("56"); + i18n_55 = MSG_EXTERNAL_5827638088794815761$$MANY_I18N_ELEMENTS_TS_55; + } else { + /* @ts-ignore */ + i18n_55 = $localize`56`; + } + let i18n_56; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7261222115572070152$$MANY_I18N_ELEMENTS_TS_56 = + /* @ts-ignore */ + goog.getMsg("57"); + i18n_56 = MSG_EXTERNAL_7261222115572070152$$MANY_I18N_ELEMENTS_TS_56; + } else { + /* @ts-ignore */ + i18n_56 = $localize`57`; + } + let i18n_57; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8483157908139883015$$MANY_I18N_ELEMENTS_TS_57 = + /* @ts-ignore */ + goog.getMsg("58"); + i18n_57 = MSG_EXTERNAL_8483157908139883015$$MANY_I18N_ELEMENTS_TS_57; + } else { + /* @ts-ignore */ + i18n_57 = $localize`58`; + } + let i18n_58; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5053259082682658671$$MANY_I18N_ELEMENTS_TS_58 = + /* @ts-ignore */ + goog.getMsg("59"); + i18n_58 = MSG_EXTERNAL_5053259082682658671$$MANY_I18N_ELEMENTS_TS_58; + } else { + /* @ts-ignore */ + i18n_58 = $localize`59`; + } + let i18n_59; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1060563867641587320$$MANY_I18N_ELEMENTS_TS_59 = + /* @ts-ignore */ + goog.getMsg("60"); + i18n_59 = MSG_EXTERNAL_1060563867641587320$$MANY_I18N_ELEMENTS_TS_59; + } else { + /* @ts-ignore */ + i18n_59 = $localize`60`; + } + let i18n_60; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3038027231018938364$$MANY_I18N_ELEMENTS_TS_60 = + /* @ts-ignore */ + goog.getMsg("61"); + i18n_60 = MSG_EXTERNAL_3038027231018938364$$MANY_I18N_ELEMENTS_TS_60; + } else { + /* @ts-ignore */ + i18n_60 = $localize`61`; + } + let i18n_61; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5244437078987276700$$MANY_I18N_ELEMENTS_TS_61 = + /* @ts-ignore */ + goog.getMsg("62"); + i18n_61 = MSG_EXTERNAL_5244437078987276700$$MANY_I18N_ELEMENTS_TS_61; + } else { + /* @ts-ignore */ + i18n_61 = $localize`62`; + } + let i18n_62; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2118965884797906686$$MANY_I18N_ELEMENTS_TS_62 = + /* @ts-ignore */ + goog.getMsg("63"); + i18n_62 = MSG_EXTERNAL_2118965884797906686$$MANY_I18N_ELEMENTS_TS_62; + } else { + /* @ts-ignore */ + i18n_62 = $localize`63`; + } + let i18n_63; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3634413570694971395$$MANY_I18N_ELEMENTS_TS_63 = + /* @ts-ignore */ + goog.getMsg("64"); + i18n_63 = MSG_EXTERNAL_3634413570694971395$$MANY_I18N_ELEMENTS_TS_63; + } else { + /* @ts-ignore */ + i18n_63 = $localize`64`; + } + let i18n_64; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1743036418611442071$$MANY_I18N_ELEMENTS_TS_64 = + /* @ts-ignore */ + goog.getMsg("65"); + i18n_64 = MSG_EXTERNAL_1743036418611442071$$MANY_I18N_ELEMENTS_TS_64; + } else { + /* @ts-ignore */ + i18n_64 = $localize`65`; + } + let i18n_65; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7803455220407177161$$MANY_I18N_ELEMENTS_TS_65 = + /* @ts-ignore */ + goog.getMsg("66"); + i18n_65 = MSG_EXTERNAL_7803455220407177161$$MANY_I18N_ELEMENTS_TS_65; + } else { + /* @ts-ignore */ + i18n_65 = $localize`66`; + } + let i18n_66; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_915856575020721706$$MANY_I18N_ELEMENTS_TS_66 = + /* @ts-ignore */ + goog.getMsg("67"); + i18n_66 = MSG_EXTERNAL_915856575020721706$$MANY_I18N_ELEMENTS_TS_66; + } else { + /* @ts-ignore */ + i18n_66 = $localize`67`; + } + let i18n_67; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6095514951881913295$$MANY_I18N_ELEMENTS_TS_67 = + /* @ts-ignore */ + goog.getMsg("68"); + i18n_67 = MSG_EXTERNAL_6095514951881913295$$MANY_I18N_ELEMENTS_TS_67; + } else { + /* @ts-ignore */ + i18n_67 = $localize`68`; + } + let i18n_68; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6354290662838188109$$MANY_I18N_ELEMENTS_TS_68 = + /* @ts-ignore */ + goog.getMsg("69"); + i18n_68 = MSG_EXTERNAL_6354290662838188109$$MANY_I18N_ELEMENTS_TS_68; + } else { + /* @ts-ignore */ + i18n_68 = $localize`69`; + } + let i18n_69; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8451792735911834369$$MANY_I18N_ELEMENTS_TS_69 = + /* @ts-ignore */ + goog.getMsg("70"); + i18n_69 = MSG_EXTERNAL_8451792735911834369$$MANY_I18N_ELEMENTS_TS_69; + } else { + /* @ts-ignore */ + i18n_69 = $localize`70`; + } + let i18n_70; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8756030545091302258$$MANY_I18N_ELEMENTS_TS_70 = + /* @ts-ignore */ + goog.getMsg("71"); + i18n_70 = MSG_EXTERNAL_8756030545091302258$$MANY_I18N_ELEMENTS_TS_70; + } else { + /* @ts-ignore */ + i18n_70 = $localize`71`; + } + let i18n_71; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4869765851467256406$$MANY_I18N_ELEMENTS_TS_71 = + /* @ts-ignore */ + goog.getMsg("72"); + i18n_71 = MSG_EXTERNAL_4869765851467256406$$MANY_I18N_ELEMENTS_TS_71; + } else { + /* @ts-ignore */ + i18n_71 = $localize`72`; + } + let i18n_72; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2093214977471818953$$MANY_I18N_ELEMENTS_TS_72 = + /* @ts-ignore */ + goog.getMsg("73"); + i18n_72 = MSG_EXTERNAL_2093214977471818953$$MANY_I18N_ELEMENTS_TS_72; + } else { + /* @ts-ignore */ + i18n_72 = $localize`73`; + } + let i18n_73; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4555247331679942357$$MANY_I18N_ELEMENTS_TS_73 = + /* @ts-ignore */ + goog.getMsg("74"); + i18n_73 = MSG_EXTERNAL_4555247331679942357$$MANY_I18N_ELEMENTS_TS_73; + } else { + /* @ts-ignore */ + i18n_73 = $localize`74`; + } + let i18n_74; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2917985033890864689$$MANY_I18N_ELEMENTS_TS_74 = + /* @ts-ignore */ + goog.getMsg("75"); + i18n_74 = MSG_EXTERNAL_2917985033890864689$$MANY_I18N_ELEMENTS_TS_74; + } else { + /* @ts-ignore */ + i18n_74 = $localize`75`; + } + let i18n_75; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1856024475675634472$$MANY_I18N_ELEMENTS_TS_75 = + /* @ts-ignore */ + goog.getMsg("76"); + i18n_75 = MSG_EXTERNAL_1856024475675634472$$MANY_I18N_ELEMENTS_TS_75; + } else { + /* @ts-ignore */ + i18n_75 = $localize`76`; + } + let i18n_76; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8869484602332726482$$MANY_I18N_ELEMENTS_TS_76 = + /* @ts-ignore */ + goog.getMsg("77"); + i18n_76 = MSG_EXTERNAL_8869484602332726482$$MANY_I18N_ELEMENTS_TS_76; + } else { + /* @ts-ignore */ + i18n_76 = $localize`77`; + } + let i18n_77; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3799523179441184750$$MANY_I18N_ELEMENTS_TS_77 = + /* @ts-ignore */ + goog.getMsg("78"); + i18n_77 = MSG_EXTERNAL_3799523179441184750$$MANY_I18N_ELEMENTS_TS_77; + } else { + /* @ts-ignore */ + i18n_77 = $localize`78`; + } + let i18n_78; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6337321994182508391$$MANY_I18N_ELEMENTS_TS_78 = + /* @ts-ignore */ + goog.getMsg("79"); + i18n_78 = MSG_EXTERNAL_6337321994182508391$$MANY_I18N_ELEMENTS_TS_78; + } else { + /* @ts-ignore */ + i18n_78 = $localize`79`; + } + let i18n_79; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3420847888426284718$$MANY_I18N_ELEMENTS_TS_79 = + /* @ts-ignore */ + goog.getMsg("80"); + i18n_79 = MSG_EXTERNAL_3420847888426284718$$MANY_I18N_ELEMENTS_TS_79; + } else { + /* @ts-ignore */ + i18n_79 = $localize`80`; + } + let i18n_80; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5460885851232939828$$MANY_I18N_ELEMENTS_TS_80 = + /* @ts-ignore */ + goog.getMsg("81"); + i18n_80 = MSG_EXTERNAL_5460885851232939828$$MANY_I18N_ELEMENTS_TS_80; + } else { + /* @ts-ignore */ + i18n_80 = $localize`81`; + } + let i18n_81; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3136236000478836076$$MANY_I18N_ELEMENTS_TS_81 = + /* @ts-ignore */ + goog.getMsg("82"); + i18n_81 = MSG_EXTERNAL_3136236000478836076$$MANY_I18N_ELEMENTS_TS_81; + } else { + /* @ts-ignore */ + i18n_81 = $localize`82`; + } + let i18n_82; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4772649398893837456$$MANY_I18N_ELEMENTS_TS_82 = + /* @ts-ignore */ + goog.getMsg("83"); + i18n_82 = MSG_EXTERNAL_4772649398893837456$$MANY_I18N_ELEMENTS_TS_82; + } else { + /* @ts-ignore */ + i18n_82 = $localize`83`; + } + let i18n_83; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6704600775247230534$$MANY_I18N_ELEMENTS_TS_83 = + /* @ts-ignore */ + goog.getMsg("84"); + i18n_83 = MSG_EXTERNAL_6704600775247230534$$MANY_I18N_ELEMENTS_TS_83; + } else { + /* @ts-ignore */ + i18n_83 = $localize`84`; + } + let i18n_84; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8509568510928167317$$MANY_I18N_ELEMENTS_TS_84 = + /* @ts-ignore */ + goog.getMsg("85"); + i18n_84 = MSG_EXTERNAL_8509568510928167317$$MANY_I18N_ELEMENTS_TS_84; + } else { + /* @ts-ignore */ + i18n_84 = $localize`85`; + } + let i18n_85; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2974674864286095831$$MANY_I18N_ELEMENTS_TS_85 = + /* @ts-ignore */ + goog.getMsg("86"); + i18n_85 = MSG_EXTERNAL_2974674864286095831$$MANY_I18N_ELEMENTS_TS_85; + } else { + /* @ts-ignore */ + i18n_85 = $localize`86`; + } + let i18n_86; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2983556040682323141$$MANY_I18N_ELEMENTS_TS_86 = + /* @ts-ignore */ + goog.getMsg("87"); + i18n_86 = MSG_EXTERNAL_2983556040682323141$$MANY_I18N_ELEMENTS_TS_86; + } else { + /* @ts-ignore */ + i18n_86 = $localize`87`; + } + let i18n_87; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8153982803621044055$$MANY_I18N_ELEMENTS_TS_87 = + /* @ts-ignore */ + goog.getMsg("88"); + i18n_87 = MSG_EXTERNAL_8153982803621044055$$MANY_I18N_ELEMENTS_TS_87; + } else { + /* @ts-ignore */ + i18n_87 = $localize`88`; + } + let i18n_88; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5039911467321252447$$MANY_I18N_ELEMENTS_TS_88 = + /* @ts-ignore */ + goog.getMsg("89"); + i18n_88 = MSG_EXTERNAL_5039911467321252447$$MANY_I18N_ELEMENTS_TS_88; + } else { + /* @ts-ignore */ + i18n_88 = $localize`89`; + } + let i18n_89; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1160985416069640372$$MANY_I18N_ELEMENTS_TS_89 = + /* @ts-ignore */ + goog.getMsg("90"); + i18n_89 = MSG_EXTERNAL_1160985416069640372$$MANY_I18N_ELEMENTS_TS_89; + } else { + /* @ts-ignore */ + i18n_89 = $localize`90`; + } + let i18n_90; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5535264500267659403$$MANY_I18N_ELEMENTS_TS_90 = + /* @ts-ignore */ + goog.getMsg("91"); + i18n_90 = MSG_EXTERNAL_5535264500267659403$$MANY_I18N_ELEMENTS_TS_90; + } else { + /* @ts-ignore */ + i18n_90 = $localize`91`; + } + let i18n_91; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3182731761600089856$$MANY_I18N_ELEMENTS_TS_91 = + /* @ts-ignore */ + goog.getMsg("92"); + i18n_91 = MSG_EXTERNAL_3182731761600089856$$MANY_I18N_ELEMENTS_TS_91; + } else { + /* @ts-ignore */ + i18n_91 = $localize`92`; + } + let i18n_92; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4810754177810373441$$MANY_I18N_ELEMENTS_TS_92 = + /* @ts-ignore */ + goog.getMsg("93"); + i18n_92 = MSG_EXTERNAL_4810754177810373441$$MANY_I18N_ELEMENTS_TS_92; + } else { + /* @ts-ignore */ + i18n_92 = $localize`93`; + } + let i18n_93; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7040742344823100319$$MANY_I18N_ELEMENTS_TS_93 = + /* @ts-ignore */ + goog.getMsg("94"); + i18n_93 = MSG_EXTERNAL_7040742344823100319$$MANY_I18N_ELEMENTS_TS_93; + } else { + /* @ts-ignore */ + i18n_93 = $localize`94`; + } + let i18n_94; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_518245151717849616$$MANY_I18N_ELEMENTS_TS_94 = + /* @ts-ignore */ + goog.getMsg("95"); + i18n_94 = MSG_EXTERNAL_518245151717849616$$MANY_I18N_ELEMENTS_TS_94; + } else { + /* @ts-ignore */ + i18n_94 = $localize`95`; + } + let i18n_95; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4063007454688580111$$MANY_I18N_ELEMENTS_TS_95 = + /* @ts-ignore */ + goog.getMsg("96"); + i18n_95 = MSG_EXTERNAL_4063007454688580111$$MANY_I18N_ELEMENTS_TS_95; + } else { + /* @ts-ignore */ + i18n_95 = $localize`96`; + } + let i18n_96; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1825969852352414416$$MANY_I18N_ELEMENTS_TS_96 = + /* @ts-ignore */ + goog.getMsg("97"); + i18n_96 = MSG_EXTERNAL_1825969852352414416$$MANY_I18N_ELEMENTS_TS_96; + } else { + /* @ts-ignore */ + i18n_96 = $localize`97`; + } + let i18n_97; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7319415480545188997$$MANY_I18N_ELEMENTS_TS_97 = + /* @ts-ignore */ + goog.getMsg("98"); + i18n_97 = MSG_EXTERNAL_7319415480545188997$$MANY_I18N_ELEMENTS_TS_97; + } else { + /* @ts-ignore */ + i18n_97 = $localize`98`; + } + let i18n_98; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4072425896856618077$$MANY_I18N_ELEMENTS_TS_98 = + /* @ts-ignore */ + goog.getMsg("99"); + i18n_98 = MSG_EXTERNAL_4072425896856618077$$MANY_I18N_ELEMENTS_TS_98; + } else { + /* @ts-ignore */ + i18n_98 = $localize`99`; + } + let i18n_99; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7671287306230991380$$MANY_I18N_ELEMENTS_TS_99 = + /* @ts-ignore */ + goog.getMsg("100"); + i18n_99 = MSG_EXTERNAL_7671287306230991380$$MANY_I18N_ELEMENTS_TS_99; + } else { + /* @ts-ignore */ + i18n_99 = $localize`100`; + } + let i18n_100; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6748498863794060453$$MANY_I18N_ELEMENTS_TS_100 = + /* @ts-ignore */ + goog.getMsg("101"); + i18n_100 = MSG_EXTERNAL_6748498863794060453$$MANY_I18N_ELEMENTS_TS_100; + } else { + /* @ts-ignore */ + i18n_100 = $localize`101`; + } + let i18n_101; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_864377051682107602$$MANY_I18N_ELEMENTS_TS_101 = + /* @ts-ignore */ + goog.getMsg("102"); + i18n_101 = MSG_EXTERNAL_864377051682107602$$MANY_I18N_ELEMENTS_TS_101; + } else { + /* @ts-ignore */ + i18n_101 = $localize`102`; + } + let i18n_102; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7534700124634872747$$MANY_I18N_ELEMENTS_TS_102 = + /* @ts-ignore */ + goog.getMsg("103"); + i18n_102 = MSG_EXTERNAL_7534700124634872747$$MANY_I18N_ELEMENTS_TS_102; + } else { + /* @ts-ignore */ + i18n_102 = $localize`103`; + } + let i18n_103; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2119576898379964081$$MANY_I18N_ELEMENTS_TS_103 = + /* @ts-ignore */ + goog.getMsg("104"); + i18n_103 = MSG_EXTERNAL_2119576898379964081$$MANY_I18N_ELEMENTS_TS_103; + } else { + /* @ts-ignore */ + i18n_103 = $localize`104`; + } + let i18n_104; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2887849893551347554$$MANY_I18N_ELEMENTS_TS_104 = + /* @ts-ignore */ + goog.getMsg("105"); + i18n_104 = MSG_EXTERNAL_2887849893551347554$$MANY_I18N_ELEMENTS_TS_104; + } else { + /* @ts-ignore */ + i18n_104 = $localize`105`; + } + let i18n_105; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1089757651095424369$$MANY_I18N_ELEMENTS_TS_105 = + /* @ts-ignore */ + goog.getMsg("106"); + i18n_105 = MSG_EXTERNAL_1089757651095424369$$MANY_I18N_ELEMENTS_TS_105; + } else { + /* @ts-ignore */ + i18n_105 = $localize`106`; + } + let i18n_106; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8907278221642338271$$MANY_I18N_ELEMENTS_TS_106 = + /* @ts-ignore */ + goog.getMsg("107"); + i18n_106 = MSG_EXTERNAL_8907278221642338271$$MANY_I18N_ELEMENTS_TS_106; + } else { + /* @ts-ignore */ + i18n_106 = $localize`107`; + } + let i18n_107; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1509351087736695403$$MANY_I18N_ELEMENTS_TS_107 = + /* @ts-ignore */ + goog.getMsg("108"); + i18n_107 = MSG_EXTERNAL_1509351087736695403$$MANY_I18N_ELEMENTS_TS_107; + } else { + /* @ts-ignore */ + i18n_107 = $localize`108`; + } + let i18n_108; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8726423325946035562$$MANY_I18N_ELEMENTS_TS_108 = + /* @ts-ignore */ + goog.getMsg("109"); + i18n_108 = MSG_EXTERNAL_8726423325946035562$$MANY_I18N_ELEMENTS_TS_108; + } else { + /* @ts-ignore */ + i18n_108 = $localize`109`; + } + let i18n_109; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6507876323715735142$$MANY_I18N_ELEMENTS_TS_109 = + /* @ts-ignore */ + goog.getMsg("110"); + i18n_109 = MSG_EXTERNAL_6507876323715735142$$MANY_I18N_ELEMENTS_TS_109; + } else { + /* @ts-ignore */ + i18n_109 = $localize`110`; + } + let i18n_110; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7750463948414044892$$MANY_I18N_ELEMENTS_TS_110 = + /* @ts-ignore */ + goog.getMsg("111"); + i18n_110 = MSG_EXTERNAL_7750463948414044892$$MANY_I18N_ELEMENTS_TS_110; + } else { + /* @ts-ignore */ + i18n_110 = $localize`111`; + } + let i18n_111; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8533911132453413712$$MANY_I18N_ELEMENTS_TS_111 = + /* @ts-ignore */ + goog.getMsg("112"); + i18n_111 = MSG_EXTERNAL_8533911132453413712$$MANY_I18N_ELEMENTS_TS_111; + } else { + /* @ts-ignore */ + i18n_111 = $localize`112`; + } + let i18n_112; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_851355621710879401$$MANY_I18N_ELEMENTS_TS_112 = + /* @ts-ignore */ + goog.getMsg("113"); + i18n_112 = MSG_EXTERNAL_851355621710879401$$MANY_I18N_ELEMENTS_TS_112; + } else { + /* @ts-ignore */ + i18n_112 = $localize`113`; + } + let i18n_113; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1173297686246417543$$MANY_I18N_ELEMENTS_TS_113 = + /* @ts-ignore */ + goog.getMsg("114"); + i18n_113 = MSG_EXTERNAL_1173297686246417543$$MANY_I18N_ELEMENTS_TS_113; + } else { + /* @ts-ignore */ + i18n_113 = $localize`114`; + } + let i18n_114; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8032568591661151370$$MANY_I18N_ELEMENTS_TS_114 = + /* @ts-ignore */ + goog.getMsg("115"); + i18n_114 = MSG_EXTERNAL_8032568591661151370$$MANY_I18N_ELEMENTS_TS_114; + } else { + /* @ts-ignore */ + i18n_114 = $localize`115`; + } + let i18n_115; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_755898327179497367$$MANY_I18N_ELEMENTS_TS_115 = + /* @ts-ignore */ + goog.getMsg("116"); + i18n_115 = MSG_EXTERNAL_755898327179497367$$MANY_I18N_ELEMENTS_TS_115; + } else { + /* @ts-ignore */ + i18n_115 = $localize`116`; + } + let i18n_116; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6089651194837005295$$MANY_I18N_ELEMENTS_TS_116 = + /* @ts-ignore */ + goog.getMsg("117"); + i18n_116 = MSG_EXTERNAL_6089651194837005295$$MANY_I18N_ELEMENTS_TS_116; + } else { + /* @ts-ignore */ + i18n_116 = $localize`117`; + } + let i18n_117; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8633906036172202546$$MANY_I18N_ELEMENTS_TS_117 = + /* @ts-ignore */ + goog.getMsg("118"); + i18n_117 = MSG_EXTERNAL_8633906036172202546$$MANY_I18N_ELEMENTS_TS_117; + } else { + /* @ts-ignore */ + i18n_117 = $localize`118`; + } + let i18n_118; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3484942288143815778$$MANY_I18N_ELEMENTS_TS_118 = + /* @ts-ignore */ + goog.getMsg("119"); + i18n_118 = MSG_EXTERNAL_3484942288143815778$$MANY_I18N_ELEMENTS_TS_118; + } else { + /* @ts-ignore */ + i18n_118 = $localize`119`; + } + let i18n_119; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6579875651484765631$$MANY_I18N_ELEMENTS_TS_119 = + /* @ts-ignore */ + goog.getMsg("120"); + i18n_119 = MSG_EXTERNAL_6579875651484765631$$MANY_I18N_ELEMENTS_TS_119; + } else { + /* @ts-ignore */ + i18n_119 = $localize`120`; + } + let i18n_120; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3229458132960703515$$MANY_I18N_ELEMENTS_TS_120 = + /* @ts-ignore */ + goog.getMsg("121"); + i18n_120 = MSG_EXTERNAL_3229458132960703515$$MANY_I18N_ELEMENTS_TS_120; + } else { + /* @ts-ignore */ + i18n_120 = $localize`121`; + } + let i18n_121; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6396508323851754941$$MANY_I18N_ELEMENTS_TS_121 = + /* @ts-ignore */ + goog.getMsg("122"); + i18n_121 = MSG_EXTERNAL_6396508323851754941$$MANY_I18N_ELEMENTS_TS_121; + } else { + /* @ts-ignore */ + i18n_121 = $localize`122`; + } + let i18n_122; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4730008887537631422$$MANY_I18N_ELEMENTS_TS_122 = + /* @ts-ignore */ + goog.getMsg("123"); + i18n_122 = MSG_EXTERNAL_4730008887537631422$$MANY_I18N_ELEMENTS_TS_122; + } else { + /* @ts-ignore */ + i18n_122 = $localize`123`; + } + let i18n_123; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6689603280308505614$$MANY_I18N_ELEMENTS_TS_123 = + /* @ts-ignore */ + goog.getMsg("124"); + i18n_123 = MSG_EXTERNAL_6689603280308505614$$MANY_I18N_ELEMENTS_TS_123; + } else { + /* @ts-ignore */ + i18n_123 = $localize`124`; + } + let i18n_124; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9177127539091982297$$MANY_I18N_ELEMENTS_TS_124 = + /* @ts-ignore */ + goog.getMsg("125"); + i18n_124 = MSG_EXTERNAL_9177127539091982297$$MANY_I18N_ELEMENTS_TS_124; + } else { + /* @ts-ignore */ + i18n_124 = $localize`125`; + } + let i18n_125; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9189331306922022361$$MANY_I18N_ELEMENTS_TS_125 = + /* @ts-ignore */ + goog.getMsg("126"); + i18n_125 = MSG_EXTERNAL_9189331306922022361$$MANY_I18N_ELEMENTS_TS_125; + } else { + /* @ts-ignore */ + i18n_125 = $localize`126`; + } + let i18n_126; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7345292339964447426$$MANY_I18N_ELEMENTS_TS_126 = + /* @ts-ignore */ + goog.getMsg("127"); + i18n_126 = MSG_EXTERNAL_7345292339964447426$$MANY_I18N_ELEMENTS_TS_126; + } else { + /* @ts-ignore */ + i18n_126 = $localize`127`; + } + let i18n_127; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1194580641817104050$$MANY_I18N_ELEMENTS_TS_127 = + /* @ts-ignore */ + goog.getMsg("128"); + i18n_127 = MSG_EXTERNAL_1194580641817104050$$MANY_I18N_ELEMENTS_TS_127; + } else { + /* @ts-ignore */ + i18n_127 = $localize`128`; + } + let i18n_128; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1585006425314909883$$MANY_I18N_ELEMENTS_TS_128 = + /* @ts-ignore */ + goog.getMsg("129"); + i18n_128 = MSG_EXTERNAL_1585006425314909883$$MANY_I18N_ELEMENTS_TS_128; + } else { + /* @ts-ignore */ + i18n_128 = $localize`129`; + } + let i18n_129; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5539937405471295936$$MANY_I18N_ELEMENTS_TS_129 = + /* @ts-ignore */ + goog.getMsg("130"); + i18n_129 = MSG_EXTERNAL_5539937405471295936$$MANY_I18N_ELEMENTS_TS_129; + } else { + /* @ts-ignore */ + i18n_129 = $localize`130`; + } + let i18n_130; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_262370978045439125$$MANY_I18N_ELEMENTS_TS_130 = + /* @ts-ignore */ + goog.getMsg("131"); + i18n_130 = MSG_EXTERNAL_262370978045439125$$MANY_I18N_ELEMENTS_TS_130; + } else { + /* @ts-ignore */ + i18n_130 = $localize`131`; + } + let i18n_131; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1852116319486955880$$MANY_I18N_ELEMENTS_TS_131 = + /* @ts-ignore */ + goog.getMsg("132"); + i18n_131 = MSG_EXTERNAL_1852116319486955880$$MANY_I18N_ELEMENTS_TS_131; + } else { + /* @ts-ignore */ + i18n_131 = $localize`132`; + } + let i18n_132; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5274937282922491117$$MANY_I18N_ELEMENTS_TS_132 = + /* @ts-ignore */ + goog.getMsg("133"); + i18n_132 = MSG_EXTERNAL_5274937282922491117$$MANY_I18N_ELEMENTS_TS_132; + } else { + /* @ts-ignore */ + i18n_132 = $localize`133`; + } + let i18n_133; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5221708818832730213$$MANY_I18N_ELEMENTS_TS_133 = + /* @ts-ignore */ + goog.getMsg("134"); + i18n_133 = MSG_EXTERNAL_5221708818832730213$$MANY_I18N_ELEMENTS_TS_133; + } else { + /* @ts-ignore */ + i18n_133 = $localize`134`; + } + let i18n_134; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3567286861743321843$$MANY_I18N_ELEMENTS_TS_134 = + /* @ts-ignore */ + goog.getMsg("135"); + i18n_134 = MSG_EXTERNAL_3567286861743321843$$MANY_I18N_ELEMENTS_TS_134; + } else { + /* @ts-ignore */ + i18n_134 = $localize`135`; + } + let i18n_135; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2403336036491847743$$MANY_I18N_ELEMENTS_TS_135 = + /* @ts-ignore */ + goog.getMsg("136"); + i18n_135 = MSG_EXTERNAL_2403336036491847743$$MANY_I18N_ELEMENTS_TS_135; + } else { + /* @ts-ignore */ + i18n_135 = $localize`136`; + } + let i18n_136; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6508220554048621589$$MANY_I18N_ELEMENTS_TS_136 = + /* @ts-ignore */ + goog.getMsg("137"); + i18n_136 = MSG_EXTERNAL_6508220554048621589$$MANY_I18N_ELEMENTS_TS_136; + } else { + /* @ts-ignore */ + i18n_136 = $localize`137`; + } + let i18n_137; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7097283872874210592$$MANY_I18N_ELEMENTS_TS_137 = + /* @ts-ignore */ + goog.getMsg("138"); + i18n_137 = MSG_EXTERNAL_7097283872874210592$$MANY_I18N_ELEMENTS_TS_137; + } else { + /* @ts-ignore */ + i18n_137 = $localize`138`; + } + let i18n_138; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4971503385946958824$$MANY_I18N_ELEMENTS_TS_138 = + /* @ts-ignore */ + goog.getMsg("139"); + i18n_138 = MSG_EXTERNAL_4971503385946958824$$MANY_I18N_ELEMENTS_TS_138; + } else { + /* @ts-ignore */ + i18n_138 = $localize`139`; + } + let i18n_139; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3318591540668233454$$MANY_I18N_ELEMENTS_TS_139 = + /* @ts-ignore */ + goog.getMsg("140"); + i18n_139 = MSG_EXTERNAL_3318591540668233454$$MANY_I18N_ELEMENTS_TS_139; + } else { + /* @ts-ignore */ + i18n_139 = $localize`140`; + } + let i18n_140; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3358573721747071298$$MANY_I18N_ELEMENTS_TS_140 = + /* @ts-ignore */ + goog.getMsg("141"); + i18n_140 = MSG_EXTERNAL_3358573721747071298$$MANY_I18N_ELEMENTS_TS_140; + } else { + /* @ts-ignore */ + i18n_140 = $localize`141`; + } + let i18n_141; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6417251486817211011$$MANY_I18N_ELEMENTS_TS_141 = + /* @ts-ignore */ + goog.getMsg("142"); + i18n_141 = MSG_EXTERNAL_6417251486817211011$$MANY_I18N_ELEMENTS_TS_141; + } else { + /* @ts-ignore */ + i18n_141 = $localize`142`; + } + let i18n_142; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8828596576790799547$$MANY_I18N_ELEMENTS_TS_142 = + /* @ts-ignore */ + goog.getMsg("143"); + i18n_142 = MSG_EXTERNAL_8828596576790799547$$MANY_I18N_ELEMENTS_TS_142; + } else { + /* @ts-ignore */ + i18n_142 = $localize`143`; + } + let i18n_143; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7679931867726154579$$MANY_I18N_ELEMENTS_TS_143 = + /* @ts-ignore */ + goog.getMsg("144"); + i18n_143 = MSG_EXTERNAL_7679931867726154579$$MANY_I18N_ELEMENTS_TS_143; + } else { + /* @ts-ignore */ + i18n_143 = $localize`144`; + } + let i18n_144; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4097731480923666835$$MANY_I18N_ELEMENTS_TS_144 = + /* @ts-ignore */ + goog.getMsg("145"); + i18n_144 = MSG_EXTERNAL_4097731480923666835$$MANY_I18N_ELEMENTS_TS_144; + } else { + /* @ts-ignore */ + i18n_144 = $localize`145`; + } + let i18n_145; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4293378471778720513$$MANY_I18N_ELEMENTS_TS_145 = + /* @ts-ignore */ + goog.getMsg("146"); + i18n_145 = MSG_EXTERNAL_4293378471778720513$$MANY_I18N_ELEMENTS_TS_145; + } else { + /* @ts-ignore */ + i18n_145 = $localize`146`; + } + let i18n_146; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5767138707752754823$$MANY_I18N_ELEMENTS_TS_146 = + /* @ts-ignore */ + goog.getMsg("147"); + i18n_146 = MSG_EXTERNAL_5767138707752754823$$MANY_I18N_ELEMENTS_TS_146; + } else { + /* @ts-ignore */ + i18n_146 = $localize`147`; + } + let i18n_147; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_120677222804010003$$MANY_I18N_ELEMENTS_TS_147 = + /* @ts-ignore */ + goog.getMsg("148"); + i18n_147 = MSG_EXTERNAL_120677222804010003$$MANY_I18N_ELEMENTS_TS_147; + } else { + /* @ts-ignore */ + i18n_147 = $localize`148`; + } + let i18n_148; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1159879205890557527$$MANY_I18N_ELEMENTS_TS_148 = + /* @ts-ignore */ + goog.getMsg("149"); + i18n_148 = MSG_EXTERNAL_1159879205890557527$$MANY_I18N_ELEMENTS_TS_148; + } else { + /* @ts-ignore */ + i18n_148 = $localize`149`; + } + let i18n_149; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1661494093102452649$$MANY_I18N_ELEMENTS_TS_149 = + /* @ts-ignore */ + goog.getMsg("150"); + i18n_149 = MSG_EXTERNAL_1661494093102452649$$MANY_I18N_ELEMENTS_TS_149; + } else { + /* @ts-ignore */ + i18n_149 = $localize`150`; + } + let i18n_150; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2236520595663587163$$MANY_I18N_ELEMENTS_TS_150 = + /* @ts-ignore */ + goog.getMsg("151"); + i18n_150 = MSG_EXTERNAL_2236520595663587163$$MANY_I18N_ELEMENTS_TS_150; + } else { + /* @ts-ignore */ + i18n_150 = $localize`151`; + } + let i18n_151; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2652974688136233164$$MANY_I18N_ELEMENTS_TS_151 = + /* @ts-ignore */ + goog.getMsg("152"); + i18n_151 = MSG_EXTERNAL_2652974688136233164$$MANY_I18N_ELEMENTS_TS_151; + } else { + /* @ts-ignore */ + i18n_151 = $localize`152`; + } + let i18n_152; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5963647766129172963$$MANY_I18N_ELEMENTS_TS_152 = + /* @ts-ignore */ + goog.getMsg("153"); + i18n_152 = MSG_EXTERNAL_5963647766129172963$$MANY_I18N_ELEMENTS_TS_152; + } else { + /* @ts-ignore */ + i18n_152 = $localize`153`; + } + let i18n_153; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1944737270659421722$$MANY_I18N_ELEMENTS_TS_153 = + /* @ts-ignore */ + goog.getMsg("154"); + i18n_153 = MSG_EXTERNAL_1944737270659421722$$MANY_I18N_ELEMENTS_TS_153; + } else { + /* @ts-ignore */ + i18n_153 = $localize`154`; + } + let i18n_154; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5496717610670573649$$MANY_I18N_ELEMENTS_TS_154 = + /* @ts-ignore */ + goog.getMsg("155"); + i18n_154 = MSG_EXTERNAL_5496717610670573649$$MANY_I18N_ELEMENTS_TS_154; + } else { + /* @ts-ignore */ + i18n_154 = $localize`155`; + } + let i18n_155; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3360747335167767814$$MANY_I18N_ELEMENTS_TS_155 = + /* @ts-ignore */ + goog.getMsg("156"); + i18n_155 = MSG_EXTERNAL_3360747335167767814$$MANY_I18N_ELEMENTS_TS_155; + } else { + /* @ts-ignore */ + i18n_155 = $localize`156`; + } + let i18n_156; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5503499770263428045$$MANY_I18N_ELEMENTS_TS_156 = + /* @ts-ignore */ + goog.getMsg("157"); + i18n_156 = MSG_EXTERNAL_5503499770263428045$$MANY_I18N_ELEMENTS_TS_156; + } else { + /* @ts-ignore */ + i18n_156 = $localize`157`; + } + let i18n_157; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4907856706752079273$$MANY_I18N_ELEMENTS_TS_157 = + /* @ts-ignore */ + goog.getMsg("158"); + i18n_157 = MSG_EXTERNAL_4907856706752079273$$MANY_I18N_ELEMENTS_TS_157; + } else { + /* @ts-ignore */ + i18n_157 = $localize`158`; + } + let i18n_158; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3767829522912146941$$MANY_I18N_ELEMENTS_TS_158 = + /* @ts-ignore */ + goog.getMsg("159"); + i18n_158 = MSG_EXTERNAL_3767829522912146941$$MANY_I18N_ELEMENTS_TS_158; + } else { + /* @ts-ignore */ + i18n_158 = $localize`159`; + } + let i18n_159; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5090832530779218123$$MANY_I18N_ELEMENTS_TS_159 = + /* @ts-ignore */ + goog.getMsg("160"); + i18n_159 = MSG_EXTERNAL_5090832530779218123$$MANY_I18N_ELEMENTS_TS_159; + } else { + /* @ts-ignore */ + i18n_159 = $localize`160`; + } + let i18n_160; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3208591303688713742$$MANY_I18N_ELEMENTS_TS_160 = + /* @ts-ignore */ + goog.getMsg("161"); + i18n_160 = MSG_EXTERNAL_3208591303688713742$$MANY_I18N_ELEMENTS_TS_160; + } else { + /* @ts-ignore */ + i18n_160 = $localize`161`; + } + let i18n_161; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7477683900572379155$$MANY_I18N_ELEMENTS_TS_161 = + /* @ts-ignore */ + goog.getMsg("162"); + i18n_161 = MSG_EXTERNAL_7477683900572379155$$MANY_I18N_ELEMENTS_TS_161; + } else { + /* @ts-ignore */ + i18n_161 = $localize`162`; + } + let i18n_162; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8051105923462022869$$MANY_I18N_ELEMENTS_TS_162 = + /* @ts-ignore */ + goog.getMsg("163"); + i18n_162 = MSG_EXTERNAL_8051105923462022869$$MANY_I18N_ELEMENTS_TS_162; + } else { + /* @ts-ignore */ + i18n_162 = $localize`163`; + } + let i18n_163; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2047564130648527904$$MANY_I18N_ELEMENTS_TS_163 = + /* @ts-ignore */ + goog.getMsg("164"); + i18n_163 = MSG_EXTERNAL_2047564130648527904$$MANY_I18N_ELEMENTS_TS_163; + } else { + /* @ts-ignore */ + i18n_163 = $localize`164`; + } + let i18n_164; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4586612958538599993$$MANY_I18N_ELEMENTS_TS_164 = + /* @ts-ignore */ + goog.getMsg("165"); + i18n_164 = MSG_EXTERNAL_4586612958538599993$$MANY_I18N_ELEMENTS_TS_164; + } else { + /* @ts-ignore */ + i18n_164 = $localize`165`; + } + let i18n_165; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1658700347431839190$$MANY_I18N_ELEMENTS_TS_165 = + /* @ts-ignore */ + goog.getMsg("166"); + i18n_165 = MSG_EXTERNAL_1658700347431839190$$MANY_I18N_ELEMENTS_TS_165; + } else { + /* @ts-ignore */ + i18n_165 = $localize`166`; + } + let i18n_166; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_147819885493718802$$MANY_I18N_ELEMENTS_TS_166 = + /* @ts-ignore */ + goog.getMsg("167"); + i18n_166 = MSG_EXTERNAL_147819885493718802$$MANY_I18N_ELEMENTS_TS_166; + } else { + /* @ts-ignore */ + i18n_166 = $localize`167`; + } + let i18n_167; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5598473468340617954$$MANY_I18N_ELEMENTS_TS_167 = + /* @ts-ignore */ + goog.getMsg("168"); + i18n_167 = MSG_EXTERNAL_5598473468340617954$$MANY_I18N_ELEMENTS_TS_167; + } else { + /* @ts-ignore */ + i18n_167 = $localize`168`; + } + let i18n_168; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5402452507622016045$$MANY_I18N_ELEMENTS_TS_168 = + /* @ts-ignore */ + goog.getMsg("169"); + i18n_168 = MSG_EXTERNAL_5402452507622016045$$MANY_I18N_ELEMENTS_TS_168; + } else { + /* @ts-ignore */ + i18n_168 = $localize`169`; + } + let i18n_169; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3173510385929877369$$MANY_I18N_ELEMENTS_TS_169 = + /* @ts-ignore */ + goog.getMsg("170"); + i18n_169 = MSG_EXTERNAL_3173510385929877369$$MANY_I18N_ELEMENTS_TS_169; + } else { + /* @ts-ignore */ + i18n_169 = $localize`170`; + } + let i18n_170; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8141779416388186581$$MANY_I18N_ELEMENTS_TS_170 = + /* @ts-ignore */ + goog.getMsg("171"); + i18n_170 = MSG_EXTERNAL_8141779416388186581$$MANY_I18N_ELEMENTS_TS_170; + } else { + /* @ts-ignore */ + i18n_170 = $localize`171`; + } + let i18n_171; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3702741587280302027$$MANY_I18N_ELEMENTS_TS_171 = + /* @ts-ignore */ + goog.getMsg("172"); + i18n_171 = MSG_EXTERNAL_3702741587280302027$$MANY_I18N_ELEMENTS_TS_171; + } else { + /* @ts-ignore */ + i18n_171 = $localize`172`; + } + let i18n_172; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2609768463217977349$$MANY_I18N_ELEMENTS_TS_172 = + /* @ts-ignore */ + goog.getMsg("173"); + i18n_172 = MSG_EXTERNAL_2609768463217977349$$MANY_I18N_ELEMENTS_TS_172; + } else { + /* @ts-ignore */ + i18n_172 = $localize`173`; + } + let i18n_173; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3474912625280993329$$MANY_I18N_ELEMENTS_TS_173 = + /* @ts-ignore */ + goog.getMsg("174"); + i18n_173 = MSG_EXTERNAL_3474912625280993329$$MANY_I18N_ELEMENTS_TS_173; + } else { + /* @ts-ignore */ + i18n_173 = $localize`174`; + } + let i18n_174; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3668011430361561106$$MANY_I18N_ELEMENTS_TS_174 = + /* @ts-ignore */ + goog.getMsg("175"); + i18n_174 = MSG_EXTERNAL_3668011430361561106$$MANY_I18N_ELEMENTS_TS_174; + } else { + /* @ts-ignore */ + i18n_174 = $localize`175`; + } + let i18n_175; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6955715010250310081$$MANY_I18N_ELEMENTS_TS_175 = + /* @ts-ignore */ + goog.getMsg("176"); + i18n_175 = MSG_EXTERNAL_6955715010250310081$$MANY_I18N_ELEMENTS_TS_175; + } else { + /* @ts-ignore */ + i18n_175 = $localize`176`; + } + let i18n_176; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8211458983710743981$$MANY_I18N_ELEMENTS_TS_176 = + /* @ts-ignore */ + goog.getMsg("177"); + i18n_176 = MSG_EXTERNAL_8211458983710743981$$MANY_I18N_ELEMENTS_TS_176; + } else { + /* @ts-ignore */ + i18n_176 = $localize`177`; + } + let i18n_177; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1126141388798846727$$MANY_I18N_ELEMENTS_TS_177 = + /* @ts-ignore */ + goog.getMsg("178"); + i18n_177 = MSG_EXTERNAL_1126141388798846727$$MANY_I18N_ELEMENTS_TS_177; + } else { + /* @ts-ignore */ + i18n_177 = $localize`178`; + } + let i18n_178; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7399947575414146872$$MANY_I18N_ELEMENTS_TS_178 = + /* @ts-ignore */ + goog.getMsg("179"); + i18n_178 = MSG_EXTERNAL_7399947575414146872$$MANY_I18N_ELEMENTS_TS_178; + } else { + /* @ts-ignore */ + i18n_178 = $localize`179`; + } + let i18n_179; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5802511037516207777$$MANY_I18N_ELEMENTS_TS_179 = + /* @ts-ignore */ + goog.getMsg("180"); + i18n_179 = MSG_EXTERNAL_5802511037516207777$$MANY_I18N_ELEMENTS_TS_179; + } else { + /* @ts-ignore */ + i18n_179 = $localize`180`; + } + let i18n_180; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1219232524361245007$$MANY_I18N_ELEMENTS_TS_180 = + /* @ts-ignore */ + goog.getMsg("181"); + i18n_180 = MSG_EXTERNAL_1219232524361245007$$MANY_I18N_ELEMENTS_TS_180; + } else { + /* @ts-ignore */ + i18n_180 = $localize`181`; + } + let i18n_181; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6601356179643256077$$MANY_I18N_ELEMENTS_TS_181 = + /* @ts-ignore */ + goog.getMsg("182"); + i18n_181 = MSG_EXTERNAL_6601356179643256077$$MANY_I18N_ELEMENTS_TS_181; + } else { + /* @ts-ignore */ + i18n_181 = $localize`182`; + } + let i18n_182; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2158064177181513014$$MANY_I18N_ELEMENTS_TS_182 = + /* @ts-ignore */ + goog.getMsg("183"); + i18n_182 = MSG_EXTERNAL_2158064177181513014$$MANY_I18N_ELEMENTS_TS_182; + } else { + /* @ts-ignore */ + i18n_182 = $localize`183`; + } + let i18n_183; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_472849099133785516$$MANY_I18N_ELEMENTS_TS_183 = + /* @ts-ignore */ + goog.getMsg("184"); + i18n_183 = MSG_EXTERNAL_472849099133785516$$MANY_I18N_ELEMENTS_TS_183; + } else { + /* @ts-ignore */ + i18n_183 = $localize`184`; + } + let i18n_184; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8668882129235856182$$MANY_I18N_ELEMENTS_TS_184 = + /* @ts-ignore */ + goog.getMsg("185"); + i18n_184 = MSG_EXTERNAL_8668882129235856182$$MANY_I18N_ELEMENTS_TS_184; + } else { + /* @ts-ignore */ + i18n_184 = $localize`185`; + } + let i18n_185; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3775889044065880708$$MANY_I18N_ELEMENTS_TS_185 = + /* @ts-ignore */ + goog.getMsg("186"); + i18n_185 = MSG_EXTERNAL_3775889044065880708$$MANY_I18N_ELEMENTS_TS_185; + } else { + /* @ts-ignore */ + i18n_185 = $localize`186`; + } + let i18n_186; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8884120928112195778$$MANY_I18N_ELEMENTS_TS_186 = + /* @ts-ignore */ + goog.getMsg("187"); + i18n_186 = MSG_EXTERNAL_8884120928112195778$$MANY_I18N_ELEMENTS_TS_186; + } else { + /* @ts-ignore */ + i18n_186 = $localize`187`; + } + let i18n_187; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4095954327669801059$$MANY_I18N_ELEMENTS_TS_187 = + /* @ts-ignore */ + goog.getMsg("188"); + i18n_187 = MSG_EXTERNAL_4095954327669801059$$MANY_I18N_ELEMENTS_TS_187; + } else { + /* @ts-ignore */ + i18n_187 = $localize`188`; + } + let i18n_188; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8155185074246590640$$MANY_I18N_ELEMENTS_TS_188 = + /* @ts-ignore */ + goog.getMsg("189"); + i18n_188 = MSG_EXTERNAL_8155185074246590640$$MANY_I18N_ELEMENTS_TS_188; + } else { + /* @ts-ignore */ + i18n_188 = $localize`189`; + } + let i18n_189; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6514489385360467438$$MANY_I18N_ELEMENTS_TS_189 = + /* @ts-ignore */ + goog.getMsg("190"); + i18n_189 = MSG_EXTERNAL_6514489385360467438$$MANY_I18N_ELEMENTS_TS_189; + } else { + /* @ts-ignore */ + i18n_189 = $localize`190`; + } + let i18n_190; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7606547524514490902$$MANY_I18N_ELEMENTS_TS_190 = + /* @ts-ignore */ + goog.getMsg("191"); + i18n_190 = MSG_EXTERNAL_7606547524514490902$$MANY_I18N_ELEMENTS_TS_190; + } else { + /* @ts-ignore */ + i18n_190 = $localize`191`; + } + let i18n_191; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7822863047467663030$$MANY_I18N_ELEMENTS_TS_191 = + /* @ts-ignore */ + goog.getMsg("192"); + i18n_191 = MSG_EXTERNAL_7822863047467663030$$MANY_I18N_ELEMENTS_TS_191; + } else { + /* @ts-ignore */ + i18n_191 = $localize`192`; + } + let i18n_192; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1000781359194194333$$MANY_I18N_ELEMENTS_TS_192 = + /* @ts-ignore */ + goog.getMsg("193"); + i18n_192 = MSG_EXTERNAL_1000781359194194333$$MANY_I18N_ELEMENTS_TS_192; + } else { + /* @ts-ignore */ + i18n_192 = $localize`193`; + } + let i18n_193; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5286028632089236985$$MANY_I18N_ELEMENTS_TS_193 = + /* @ts-ignore */ + goog.getMsg("194"); + i18n_193 = MSG_EXTERNAL_5286028632089236985$$MANY_I18N_ELEMENTS_TS_193; + } else { + /* @ts-ignore */ + i18n_193 = $localize`194`; + } + let i18n_194; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6304619091039380824$$MANY_I18N_ELEMENTS_TS_194 = + /* @ts-ignore */ + goog.getMsg("195"); + i18n_194 = MSG_EXTERNAL_6304619091039380824$$MANY_I18N_ELEMENTS_TS_194; + } else { + /* @ts-ignore */ + i18n_194 = $localize`195`; + } + let i18n_195; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7698288858767734649$$MANY_I18N_ELEMENTS_TS_195 = + /* @ts-ignore */ + goog.getMsg("196"); + i18n_195 = MSG_EXTERNAL_7698288858767734649$$MANY_I18N_ELEMENTS_TS_195; + } else { + /* @ts-ignore */ + i18n_195 = $localize`196`; + } + let i18n_196; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7478361010808051048$$MANY_I18N_ELEMENTS_TS_196 = + /* @ts-ignore */ + goog.getMsg("197"); + i18n_196 = MSG_EXTERNAL_7478361010808051048$$MANY_I18N_ELEMENTS_TS_196; + } else { + /* @ts-ignore */ + i18n_196 = $localize`197`; + } + let i18n_197; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8167527023912489900$$MANY_I18N_ELEMENTS_TS_197 = + /* @ts-ignore */ + goog.getMsg("198"); + i18n_197 = MSG_EXTERNAL_8167527023912489900$$MANY_I18N_ELEMENTS_TS_197; + } else { + /* @ts-ignore */ + i18n_197 = $localize`198`; + } + let i18n_198; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4663722642051085264$$MANY_I18N_ELEMENTS_TS_198 = + /* @ts-ignore */ + goog.getMsg("199"); + i18n_198 = MSG_EXTERNAL_4663722642051085264$$MANY_I18N_ELEMENTS_TS_198; + } else { + /* @ts-ignore */ + i18n_198 = $localize`199`; + } + let i18n_199; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2844378818442121992$$MANY_I18N_ELEMENTS_TS_199 = + /* @ts-ignore */ + goog.getMsg("200"); + i18n_199 = MSG_EXTERNAL_2844378818442121992$$MANY_I18N_ELEMENTS_TS_199; + } else { + /* @ts-ignore */ + i18n_199 = $localize`200`; + } + let i18n_200; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5458090117461751483$$MANY_I18N_ELEMENTS_TS_200 = + /* @ts-ignore */ + goog.getMsg("201"); + i18n_200 = MSG_EXTERNAL_5458090117461751483$$MANY_I18N_ELEMENTS_TS_200; + } else { + /* @ts-ignore */ + i18n_200 = $localize`201`; + } + let i18n_201; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6796379954188507098$$MANY_I18N_ELEMENTS_TS_201 = + /* @ts-ignore */ + goog.getMsg("202"); + i18n_201 = MSG_EXTERNAL_6796379954188507098$$MANY_I18N_ELEMENTS_TS_201; + } else { + /* @ts-ignore */ + i18n_201 = $localize`202`; + } + let i18n_202; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6046825567840136404$$MANY_I18N_ELEMENTS_TS_202 = + /* @ts-ignore */ + goog.getMsg("203"); + i18n_202 = MSG_EXTERNAL_6046825567840136404$$MANY_I18N_ELEMENTS_TS_202; + } else { + /* @ts-ignore */ + i18n_202 = $localize`203`; + } + let i18n_203; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_398370993033790849$$MANY_I18N_ELEMENTS_TS_203 = + /* @ts-ignore */ + goog.getMsg("204"); + i18n_203 = MSG_EXTERNAL_398370993033790849$$MANY_I18N_ELEMENTS_TS_203; + } else { + /* @ts-ignore */ + i18n_203 = $localize`204`; + } + let i18n_204; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2214069869235024892$$MANY_I18N_ELEMENTS_TS_204 = + /* @ts-ignore */ + goog.getMsg("205"); + i18n_204 = MSG_EXTERNAL_2214069869235024892$$MANY_I18N_ELEMENTS_TS_204; + } else { + /* @ts-ignore */ + i18n_204 = $localize`205`; + } + let i18n_205; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2432971091892305428$$MANY_I18N_ELEMENTS_TS_205 = + /* @ts-ignore */ + goog.getMsg("206"); + i18n_205 = MSG_EXTERNAL_2432971091892305428$$MANY_I18N_ELEMENTS_TS_205; + } else { + /* @ts-ignore */ + i18n_205 = $localize`206`; + } + let i18n_206; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3883638997167019320$$MANY_I18N_ELEMENTS_TS_206 = + /* @ts-ignore */ + goog.getMsg("207"); + i18n_206 = MSG_EXTERNAL_3883638997167019320$$MANY_I18N_ELEMENTS_TS_206; + } else { + /* @ts-ignore */ + i18n_206 = $localize`207`; + } + let i18n_207; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_301196079063346608$$MANY_I18N_ELEMENTS_TS_207 = + /* @ts-ignore */ + goog.getMsg("208"); + i18n_207 = MSG_EXTERNAL_301196079063346608$$MANY_I18N_ELEMENTS_TS_207; + } else { + /* @ts-ignore */ + i18n_207 = $localize`208`; + } + let i18n_208; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1887037150498923152$$MANY_I18N_ELEMENTS_TS_208 = + /* @ts-ignore */ + goog.getMsg("209"); + i18n_208 = MSG_EXTERNAL_1887037150498923152$$MANY_I18N_ELEMENTS_TS_208; + } else { + /* @ts-ignore */ + i18n_208 = $localize`209`; + } + let i18n_209; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2672505093354340508$$MANY_I18N_ELEMENTS_TS_209 = + /* @ts-ignore */ + goog.getMsg("210"); + i18n_209 = MSG_EXTERNAL_2672505093354340508$$MANY_I18N_ELEMENTS_TS_209; + } else { + /* @ts-ignore */ + i18n_209 = $localize`210`; + } + let i18n_210; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_50798133743996132$$MANY_I18N_ELEMENTS_TS_210 = + /* @ts-ignore */ + goog.getMsg("211"); + i18n_210 = MSG_EXTERNAL_50798133743996132$$MANY_I18N_ELEMENTS_TS_210; + } else { + /* @ts-ignore */ + i18n_210 = $localize`211`; + } + let i18n_211; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6771719321391545698$$MANY_I18N_ELEMENTS_TS_211 = + /* @ts-ignore */ + goog.getMsg("212"); + i18n_211 = MSG_EXTERNAL_6771719321391545698$$MANY_I18N_ELEMENTS_TS_211; + } else { + /* @ts-ignore */ + i18n_211 = $localize`212`; + } + let i18n_212; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_29766569375404634$$MANY_I18N_ELEMENTS_TS_212 = + /* @ts-ignore */ + goog.getMsg("213"); + i18n_212 = MSG_EXTERNAL_29766569375404634$$MANY_I18N_ELEMENTS_TS_212; + } else { + /* @ts-ignore */ + i18n_212 = $localize`213`; + } + let i18n_213; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6358231135210584047$$MANY_I18N_ELEMENTS_TS_213 = + /* @ts-ignore */ + goog.getMsg("214"); + i18n_213 = MSG_EXTERNAL_6358231135210584047$$MANY_I18N_ELEMENTS_TS_213; + } else { + /* @ts-ignore */ + i18n_213 = $localize`214`; + } + let i18n_214; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8110593851180150969$$MANY_I18N_ELEMENTS_TS_214 = + /* @ts-ignore */ + goog.getMsg("215"); + i18n_214 = MSG_EXTERNAL_8110593851180150969$$MANY_I18N_ELEMENTS_TS_214; + } else { + /* @ts-ignore */ + i18n_214 = $localize`215`; + } + let i18n_215; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1858656361183260974$$MANY_I18N_ELEMENTS_TS_215 = + /* @ts-ignore */ + goog.getMsg("216"); + i18n_215 = MSG_EXTERNAL_1858656361183260974$$MANY_I18N_ELEMENTS_TS_215; + } else { + /* @ts-ignore */ + i18n_215 = $localize`216`; + } + let i18n_216; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_991530101550005155$$MANY_I18N_ELEMENTS_TS_216 = + /* @ts-ignore */ + goog.getMsg("217"); + i18n_216 = MSG_EXTERNAL_991530101550005155$$MANY_I18N_ELEMENTS_TS_216; + } else { + /* @ts-ignore */ + i18n_216 = $localize`217`; + } + let i18n_217; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1952022193084995435$$MANY_I18N_ELEMENTS_TS_217 = + /* @ts-ignore */ + goog.getMsg("218"); + i18n_217 = MSG_EXTERNAL_1952022193084995435$$MANY_I18N_ELEMENTS_TS_217; + } else { + /* @ts-ignore */ + i18n_217 = $localize`218`; + } + let i18n_218; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6798399991570535973$$MANY_I18N_ELEMENTS_TS_218 = + /* @ts-ignore */ + goog.getMsg("219"); + i18n_218 = MSG_EXTERNAL_6798399991570535973$$MANY_I18N_ELEMENTS_TS_218; + } else { + /* @ts-ignore */ + i18n_218 = $localize`219`; + } + let i18n_219; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2083232074898870122$$MANY_I18N_ELEMENTS_TS_219 = + /* @ts-ignore */ + goog.getMsg("220"); + i18n_219 = MSG_EXTERNAL_2083232074898870122$$MANY_I18N_ELEMENTS_TS_219; + } else { + /* @ts-ignore */ + i18n_219 = $localize`220`; + } + let i18n_220; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5703538487958252436$$MANY_I18N_ELEMENTS_TS_220 = + /* @ts-ignore */ + goog.getMsg("221"); + i18n_220 = MSG_EXTERNAL_5703538487958252436$$MANY_I18N_ELEMENTS_TS_220; + } else { + /* @ts-ignore */ + i18n_220 = $localize`221`; + } + let i18n_221; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9000644593085276723$$MANY_I18N_ELEMENTS_TS_221 = + /* @ts-ignore */ + goog.getMsg("222"); + i18n_221 = MSG_EXTERNAL_9000644593085276723$$MANY_I18N_ELEMENTS_TS_221; + } else { + /* @ts-ignore */ + i18n_221 = $localize`222`; + } + let i18n_222; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6981666890647413750$$MANY_I18N_ELEMENTS_TS_222 = + /* @ts-ignore */ + goog.getMsg("223"); + i18n_222 = MSG_EXTERNAL_6981666890647413750$$MANY_I18N_ELEMENTS_TS_222; + } else { + /* @ts-ignore */ + i18n_222 = $localize`223`; + } + let i18n_223; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3376478315534693830$$MANY_I18N_ELEMENTS_TS_223 = + /* @ts-ignore */ + goog.getMsg("224"); + i18n_223 = MSG_EXTERNAL_3376478315534693830$$MANY_I18N_ELEMENTS_TS_223; + } else { + /* @ts-ignore */ + i18n_223 = $localize`224`; + } + let i18n_224; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1124827272760898355$$MANY_I18N_ELEMENTS_TS_224 = + /* @ts-ignore */ + goog.getMsg("225"); + i18n_224 = MSG_EXTERNAL_1124827272760898355$$MANY_I18N_ELEMENTS_TS_224; + } else { + /* @ts-ignore */ + i18n_224 = $localize`225`; + } + let i18n_225; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1672999625421027749$$MANY_I18N_ELEMENTS_TS_225 = + /* @ts-ignore */ + goog.getMsg("226"); + i18n_225 = MSG_EXTERNAL_1672999625421027749$$MANY_I18N_ELEMENTS_TS_225; + } else { + /* @ts-ignore */ + i18n_225 = $localize`226`; + } + let i18n_226; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2852405050154648310$$MANY_I18N_ELEMENTS_TS_226 = + /* @ts-ignore */ + goog.getMsg("227"); + i18n_226 = MSG_EXTERNAL_2852405050154648310$$MANY_I18N_ELEMENTS_TS_226; + } else { + /* @ts-ignore */ + i18n_226 = $localize`227`; + } + let i18n_227; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1175040882302800018$$MANY_I18N_ELEMENTS_TS_227 = + /* @ts-ignore */ + goog.getMsg("228"); + i18n_227 = MSG_EXTERNAL_1175040882302800018$$MANY_I18N_ELEMENTS_TS_227; + } else { + /* @ts-ignore */ + i18n_227 = $localize`228`; + } + let i18n_228; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_474159351404982532$$MANY_I18N_ELEMENTS_TS_228 = + /* @ts-ignore */ + goog.getMsg("229"); + i18n_228 = MSG_EXTERNAL_474159351404982532$$MANY_I18N_ELEMENTS_TS_228; + } else { + /* @ts-ignore */ + i18n_228 = $localize`229`; + } + let i18n_229; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6079546817318153418$$MANY_I18N_ELEMENTS_TS_229 = + /* @ts-ignore */ + goog.getMsg("230"); + i18n_229 = MSG_EXTERNAL_6079546817318153418$$MANY_I18N_ELEMENTS_TS_229; + } else { + /* @ts-ignore */ + i18n_229 = $localize`230`; + } + let i18n_230; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5925650610463308594$$MANY_I18N_ELEMENTS_TS_230 = + /* @ts-ignore */ + goog.getMsg("231"); + i18n_230 = MSG_EXTERNAL_5925650610463308594$$MANY_I18N_ELEMENTS_TS_230; + } else { + /* @ts-ignore */ + i18n_230 = $localize`231`; + } + let i18n_231; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3333371197801297629$$MANY_I18N_ELEMENTS_TS_231 = + /* @ts-ignore */ + goog.getMsg("232"); + i18n_231 = MSG_EXTERNAL_3333371197801297629$$MANY_I18N_ELEMENTS_TS_231; + } else { + /* @ts-ignore */ + i18n_231 = $localize`232`; + } + let i18n_232; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7945665004377933421$$MANY_I18N_ELEMENTS_TS_232 = + /* @ts-ignore */ + goog.getMsg("233"); + i18n_232 = MSG_EXTERNAL_7945665004377933421$$MANY_I18N_ELEMENTS_TS_232; + } else { + /* @ts-ignore */ + i18n_232 = $localize`233`; + } + let i18n_233; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1917451399451147798$$MANY_I18N_ELEMENTS_TS_233 = + /* @ts-ignore */ + goog.getMsg("234"); + i18n_233 = MSG_EXTERNAL_1917451399451147798$$MANY_I18N_ELEMENTS_TS_233; + } else { + /* @ts-ignore */ + i18n_233 = $localize`234`; + } + let i18n_234; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3023272261989920617$$MANY_I18N_ELEMENTS_TS_234 = + /* @ts-ignore */ + goog.getMsg("235"); + i18n_234 = MSG_EXTERNAL_3023272261989920617$$MANY_I18N_ELEMENTS_TS_234; + } else { + /* @ts-ignore */ + i18n_234 = $localize`235`; + } + let i18n_235; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7616836355902126432$$MANY_I18N_ELEMENTS_TS_235 = + /* @ts-ignore */ + goog.getMsg("236"); + i18n_235 = MSG_EXTERNAL_7616836355902126432$$MANY_I18N_ELEMENTS_TS_235; + } else { + /* @ts-ignore */ + i18n_235 = $localize`236`; + } + let i18n_236; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5001025928987250739$$MANY_I18N_ELEMENTS_TS_236 = + /* @ts-ignore */ + goog.getMsg("237"); + i18n_236 = MSG_EXTERNAL_5001025928987250739$$MANY_I18N_ELEMENTS_TS_236; + } else { + /* @ts-ignore */ + i18n_236 = $localize`237`; + } + let i18n_237; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1481544996702059162$$MANY_I18N_ELEMENTS_TS_237 = + /* @ts-ignore */ + goog.getMsg("238"); + i18n_237 = MSG_EXTERNAL_1481544996702059162$$MANY_I18N_ELEMENTS_TS_237; + } else { + /* @ts-ignore */ + i18n_237 = $localize`238`; + } + let i18n_238; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_60696305140509481$$MANY_I18N_ELEMENTS_TS_238 = + /* @ts-ignore */ + goog.getMsg("239"); + i18n_238 = MSG_EXTERNAL_60696305140509481$$MANY_I18N_ELEMENTS_TS_238; + } else { + /* @ts-ignore */ + i18n_238 = $localize`239`; + } + let i18n_239; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8115943018131254792$$MANY_I18N_ELEMENTS_TS_239 = + /* @ts-ignore */ + goog.getMsg("240"); + i18n_239 = MSG_EXTERNAL_8115943018131254792$$MANY_I18N_ELEMENTS_TS_239; + } else { + /* @ts-ignore */ + i18n_239 = $localize`240`; + } + let i18n_240; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4216388870816683291$$MANY_I18N_ELEMENTS_TS_240 = + /* @ts-ignore */ + goog.getMsg("241"); + i18n_240 = MSG_EXTERNAL_4216388870816683291$$MANY_I18N_ELEMENTS_TS_240; + } else { + /* @ts-ignore */ + i18n_240 = $localize`241`; + } + let i18n_241; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3970937308291859658$$MANY_I18N_ELEMENTS_TS_241 = + /* @ts-ignore */ + goog.getMsg("242"); + i18n_241 = MSG_EXTERNAL_3970937308291859658$$MANY_I18N_ELEMENTS_TS_241; + } else { + /* @ts-ignore */ + i18n_241 = $localize`242`; + } + let i18n_242; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5052794152313186136$$MANY_I18N_ELEMENTS_TS_242 = + /* @ts-ignore */ + goog.getMsg("243"); + i18n_242 = MSG_EXTERNAL_5052794152313186136$$MANY_I18N_ELEMENTS_TS_242; + } else { + /* @ts-ignore */ + i18n_242 = $localize`243`; + } + let i18n_243; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_875965060615889142$$MANY_I18N_ELEMENTS_TS_243 = + /* @ts-ignore */ + goog.getMsg("244"); + i18n_243 = MSG_EXTERNAL_875965060615889142$$MANY_I18N_ELEMENTS_TS_243; + } else { + /* @ts-ignore */ + i18n_243 = $localize`244`; + } + let i18n_244; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4647195052776731587$$MANY_I18N_ELEMENTS_TS_244 = + /* @ts-ignore */ + goog.getMsg("245"); + i18n_244 = MSG_EXTERNAL_4647195052776731587$$MANY_I18N_ELEMENTS_TS_244; + } else { + /* @ts-ignore */ + i18n_244 = $localize`245`; + } + let i18n_245; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4852561278655590341$$MANY_I18N_ELEMENTS_TS_245 = + /* @ts-ignore */ + goog.getMsg("246"); + i18n_245 = MSG_EXTERNAL_4852561278655590341$$MANY_I18N_ELEMENTS_TS_245; + } else { + /* @ts-ignore */ + i18n_245 = $localize`246`; + } + let i18n_246; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7928389573009182813$$MANY_I18N_ELEMENTS_TS_246 = + /* @ts-ignore */ + goog.getMsg("247"); + i18n_246 = MSG_EXTERNAL_7928389573009182813$$MANY_I18N_ELEMENTS_TS_246; + } else { + /* @ts-ignore */ + i18n_246 = $localize`247`; + } + let i18n_247; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1371261749853214930$$MANY_I18N_ELEMENTS_TS_247 = + /* @ts-ignore */ + goog.getMsg("248"); + i18n_247 = MSG_EXTERNAL_1371261749853214930$$MANY_I18N_ELEMENTS_TS_247; + } else { + /* @ts-ignore */ + i18n_247 = $localize`248`; + } + let i18n_248; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9021834737440403473$$MANY_I18N_ELEMENTS_TS_248 = + /* @ts-ignore */ + goog.getMsg("249"); + i18n_248 = MSG_EXTERNAL_9021834737440403473$$MANY_I18N_ELEMENTS_TS_248; + } else { + /* @ts-ignore */ + i18n_248 = $localize`249`; + } + let i18n_249; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3540448456440647475$$MANY_I18N_ELEMENTS_TS_249 = + /* @ts-ignore */ + goog.getMsg("250"); + i18n_249 = MSG_EXTERNAL_3540448456440647475$$MANY_I18N_ELEMENTS_TS_249; + } else { + /* @ts-ignore */ + i18n_249 = $localize`250`; + } + return [ + i18n_0, + i18n_1, + i18n_2, + i18n_3, + i18n_4, + i18n_5, + i18n_6, + i18n_7, + i18n_8, + i18n_9, + i18n_10, + i18n_11, + i18n_12, + i18n_13, + i18n_14, + i18n_15, + i18n_16, + i18n_17, + i18n_18, + i18n_19, + i18n_20, + i18n_21, + i18n_22, + i18n_23, + i18n_24, + i18n_25, + i18n_26, + i18n_27, + i18n_28, + i18n_29, + i18n_30, + i18n_31, + i18n_32, + i18n_33, + i18n_34, + i18n_35, + i18n_36, + i18n_37, + i18n_38, + i18n_39, + i18n_40, + i18n_41, + i18n_42, + i18n_43, + i18n_44, + i18n_45, + i18n_46, + i18n_47, + i18n_48, + i18n_49, + i18n_50, + i18n_51, + i18n_52, + i18n_53, + i18n_54, + i18n_55, + i18n_56, + i18n_57, + i18n_58, + i18n_59, + i18n_60, + i18n_61, + i18n_62, + i18n_63, + i18n_64, + i18n_65, + i18n_66, + i18n_67, + i18n_68, + i18n_69, + i18n_70, + i18n_71, + i18n_72, + i18n_73, + i18n_74, + i18n_75, + i18n_76, + i18n_77, + i18n_78, + i18n_79, + i18n_80, + i18n_81, + i18n_82, + i18n_83, + i18n_84, + i18n_85, + i18n_86, + i18n_87, + i18n_88, + i18n_89, + i18n_90, + i18n_91, + i18n_92, + i18n_93, + i18n_94, + i18n_95, + i18n_96, + i18n_97, + i18n_98, + i18n_99, + i18n_100, + i18n_101, + i18n_102, + i18n_103, + i18n_104, + i18n_105, + i18n_106, + i18n_107, + i18n_108, + i18n_109, + i18n_110, + i18n_111, + i18n_112, + i18n_113, + i18n_114, + i18n_115, + i18n_116, + i18n_117, + i18n_118, + i18n_119, + i18n_120, + i18n_121, + i18n_122, + i18n_123, + i18n_124, + i18n_125, + i18n_126, + i18n_127, + i18n_128, + i18n_129, + i18n_130, + i18n_131, + i18n_132, + i18n_133, + i18n_134, + i18n_135, + i18n_136, + i18n_137, + i18n_138, + i18n_139, + i18n_140, + i18n_141, + i18n_142, + i18n_143, + i18n_144, + i18n_145, + i18n_146, + i18n_147, + i18n_148, + i18n_149, + i18n_150, + i18n_151, + i18n_152, + i18n_153, + i18n_154, + i18n_155, + i18n_156, + i18n_157, + i18n_158, + i18n_159, + i18n_160, + i18n_161, + i18n_162, + i18n_163, + i18n_164, + i18n_165, + i18n_166, + i18n_167, + i18n_168, + i18n_169, + i18n_170, + i18n_171, + i18n_172, + i18n_173, + i18n_174, + i18n_175, + i18n_176, + i18n_177, + i18n_178, + i18n_179, + i18n_180, + i18n_181, + i18n_182, + i18n_183, + i18n_184, + i18n_185, + i18n_186, + i18n_187, + i18n_188, + i18n_189, + i18n_190, + i18n_191, + i18n_192, + i18n_193, + i18n_194, + i18n_195, + i18n_196, + i18n_197, + i18n_198, + i18n_199, + i18n_200, + i18n_201, + i18n_202, + i18n_203, + i18n_204, + i18n_205, + i18n_206, + i18n_207, + i18n_208, + i18n_209, + i18n_210, + i18n_211, + i18n_212, + i18n_213, + i18n_214, + i18n_215, + i18n_216, + i18n_217, + i18n_218, + i18n_219, + i18n_220, + i18n_221, + i18n_222, + i18n_223, + i18n_224, + i18n_225, + i18n_226, + i18n_227, + i18n_228, + i18n_229, + i18n_230, + i18n_231, + i18n_232, + i18n_233, + i18n_234, + i18n_235, + i18n_236, + i18n_237, + i18n_238, + i18n_239, + i18n_240, + i18n_241, + i18n_242, + i18n_243, + i18n_244, + i18n_245, + i18n_246, + i18n_247, + i18n_248, + i18n_249, + i18n_250(), + i18n_251(), + i18n_252(), + i18n_253(), + i18n_254(), + i18n_255(), + i18n_256(), + i18n_257(), + i18n_258(), + i18n_259(), + i18n_260(), + i18n_261(), + i18n_262(), + i18n_263(), + i18n_264(), + i18n_265(), + i18n_266(), + i18n_267(), + i18n_268(), + i18n_269(), + i18n_270(), + i18n_271(), + i18n_272(), + i18n_273(), + i18n_274(), + i18n_275(), + i18n_276(), + i18n_277(), + i18n_278(), + i18n_279(), + i18n_280(), + i18n_281(), + i18n_282(), + i18n_283(), + i18n_284(), + i18n_285(), + i18n_286(), + i18n_287(), + i18n_288(), + i18n_289(), + i18n_290(), + i18n_291(), + i18n_292(), + i18n_293(), + i18n_294(), + i18n_295(), + i18n_296(), + i18n_297(), + i18n_298(), + i18n_299(), + i18n_300(), + i18n_301(), + i18n_302(), + i18n_303(), + i18n_304(), + i18n_305(), + i18n_306(), + i18n_307(), + i18n_308(), + i18n_309(), + i18n_310(), + i18n_311(), + i18n_312(), + i18n_313(), + i18n_314(), + i18n_315(), + i18n_316(), + i18n_317(), + i18n_318(), + i18n_319(), + i18n_320(), + i18n_321(), + i18n_322(), + i18n_323(), + i18n_324(), + i18n_325(), + i18n_326(), + i18n_327(), + i18n_328(), + i18n_329(), + i18n_330(), + i18n_331(), + i18n_332(), + i18n_333(), + i18n_334(), + i18n_335(), + i18n_336(), + i18n_337(), + i18n_338(), + i18n_339(), + i18n_340(), + i18n_341(), + i18n_342(), + i18n_343(), + i18n_344(), + i18n_345(), + i18n_346(), + i18n_347(), + i18n_348(), + i18n_349(), + i18n_350(), + i18n_351(), + i18n_352(), + i18n_353(), + i18n_354(), + i18n_355(), + i18n_356(), + i18n_357(), + i18n_358(), + i18n_359(), + i18n_360(), + i18n_361(), + i18n_362(), + i18n_363(), + i18n_364(), + i18n_365(), + i18n_366(), + i18n_367(), + i18n_368(), + i18n_369(), + i18n_370(), + i18n_371(), + i18n_372(), + i18n_373(), + i18n_374(), + i18n_375(), + i18n_376(), + i18n_377(), + i18n_378(), + i18n_379(), + i18n_380(), + i18n_381(), + i18n_382(), + i18n_383(), + i18n_384(), + i18n_385(), + i18n_386(), + i18n_387(), + i18n_388(), + i18n_389(), + i18n_390(), + i18n_391(), + i18n_392(), + i18n_393(), + i18n_394(), + i18n_395(), + i18n_396(), + i18n_397(), + i18n_398(), + i18n_399(), + i18n_400(), + i18n_401(), + i18n_402(), + i18n_403(), + i18n_404(), + i18n_405(), + i18n_406(), + i18n_407(), + i18n_408(), + i18n_409(), + i18n_410(), + i18n_411(), + i18n_412(), + i18n_413(), + i18n_414(), + i18n_415(), + i18n_416(), + i18n_417(), + i18n_418(), + i18n_419(), + i18n_420(), + i18n_421(), + i18n_422(), + i18n_423(), + i18n_424(), + i18n_425(), + i18n_426(), + i18n_427(), + i18n_428(), + i18n_429(), + i18n_430(), + i18n_431(), + i18n_432(), + i18n_433(), + i18n_434(), + i18n_435(), + i18n_436(), + i18n_437(), + i18n_438(), + i18n_439(), + i18n_440(), + i18n_441(), + i18n_442(), + i18n_443(), + i18n_444(), + i18n_445(), + i18n_446(), + i18n_447(), + i18n_448(), + i18n_449(), + i18n_450(), + i18n_451(), + i18n_452(), + i18n_453(), + i18n_454(), + i18n_455(), + i18n_456(), + i18n_457(), + i18n_458(), + i18n_459(), + i18n_460(), + i18n_461(), + i18n_462(), + i18n_463(), + i18n_464(), + i18n_465(), + i18n_466(), + i18n_467(), + i18n_468(), + i18n_469(), + i18n_470(), + i18n_471(), + i18n_472(), + i18n_473(), + i18n_474(), + i18n_475(), + i18n_476(), + i18n_477(), + i18n_478(), + i18n_479(), + i18n_480(), + i18n_481(), + i18n_482(), + i18n_483(), + i18n_484(), + i18n_485(), + i18n_486(), + i18n_487(), + i18n_488(), + i18n_489(), + i18n_490(), + i18n_491(), + i18n_492(), + i18n_493(), + i18n_494(), + i18n_495(), + i18n_496(), + i18n_497(), + i18n_498(), + i18n_499(), + i18n_500(), + i18n_501(), + i18n_502(), + i18n_503(), + i18n_504(), + i18n_505(), + i18n_506(), + i18n_507(), + i18n_508(), + i18n_509(), + i18n_510(), + i18n_511(), + i18n_512(), + i18n_513(), + i18n_514(), + i18n_515(), + i18n_516(), + i18n_517(), + i18n_518(), + i18n_519(), + i18n_520(), + i18n_521(), + i18n_522(), + i18n_523(), + i18n_524(), + i18n_525(), + i18n_526(), + i18n_527(), + i18n_528(), + i18n_529(), + i18n_530(), + i18n_531(), + i18n_532(), + i18n_533(), + i18n_534(), + i18n_535(), + i18n_536(), + i18n_537(), + i18n_538(), + i18n_539(), + i18n_540(), + i18n_541(), + i18n_542(), + i18n_543(), + i18n_544(), + i18n_545(), + i18n_546(), + i18n_547(), + i18n_548(), + i18n_549(), + i18n_550(), + i18n_551(), + i18n_552(), + i18n_553(), + i18n_554(), + i18n_555(), + i18n_556(), + i18n_557(), + i18n_558(), + i18n_559(), + i18n_560(), + i18n_561(), + i18n_562(), + i18n_563(), + i18n_564(), + i18n_565(), + i18n_566(), + i18n_567(), + i18n_568(), + i18n_569(), + i18n_570(), + i18n_571(), + i18n_572(), + i18n_573(), + i18n_574(), + i18n_575(), + i18n_576(), + i18n_577(), + i18n_578(), + i18n_579(), + i18n_580(), + i18n_581(), + i18n_582(), + i18n_583(), + i18n_584(), + i18n_585(), + i18n_586(), + i18n_587(), + i18n_588(), + i18n_589(), + i18n_590(), + i18n_591(), + i18n_592(), + i18n_593(), + i18n_594(), + i18n_595(), + i18n_596(), + i18n_597(), + i18n_598(), + i18n_599(), + i18n_600(), + i18n_601(), + i18n_602(), + i18n_603(), + i18n_604(), + i18n_605(), + i18n_606(), + i18n_607(), + i18n_608(), + i18n_609(), + i18n_610(), + i18n_611(), + i18n_612(), + i18n_613(), + i18n_614(), + i18n_615(), + i18n_616(), + i18n_617(), + i18n_618(), + i18n_619(), + i18n_620(), + i18n_621(), + i18n_622(), + i18n_623(), + i18n_624(), + i18n_625(), + i18n_626(), + i18n_627(), + i18n_628(), + i18n_629(), + i18n_630(), + i18n_631(), + i18n_632(), + i18n_633(), + i18n_634(), + i18n_635(), + i18n_636(), + i18n_637(), + i18n_638(), + i18n_639(), + i18n_640(), + i18n_641(), + i18n_642(), + i18n_643(), + i18n_644(), + i18n_645(), + i18n_646(), + i18n_647(), + i18n_648(), + i18n_649(), + i18n_650(), + i18n_651(), + i18n_652(), + i18n_653(), + i18n_654(), + i18n_655(), + i18n_656(), + i18n_657(), + i18n_658(), + i18n_659(), + i18n_660(), + i18n_661(), + i18n_662(), + i18n_663(), + i18n_664(), + i18n_665(), + i18n_666(), + i18n_667(), + i18n_668(), + i18n_669(), + i18n_670(), + i18n_671(), + i18n_672(), + i18n_673(), + i18n_674(), + i18n_675(), + i18n_676(), + i18n_677(), + i18n_678(), + i18n_679(), + i18n_680(), + i18n_681(), + i18n_682(), + i18n_683(), + i18n_684(), + i18n_685(), + i18n_686(), + i18n_687(), + i18n_688(), + i18n_689(), + i18n_690(), + i18n_691(), + i18n_692(), + i18n_693(), + i18n_694(), + i18n_695(), + i18n_696(), + i18n_697(), + i18n_698(), + i18n_699(), + i18n_700(), + i18n_701(), + i18n_702(), + i18n_703(), + i18n_704(), + i18n_705(), + i18n_706(), + i18n_707(), + i18n_708(), + i18n_709(), + i18n_710(), + i18n_711(), + i18n_712(), + i18n_713(), + i18n_714(), + i18n_715(), + i18n_716(), + i18n_717(), + i18n_718(), + i18n_719(), + i18n_720(), + i18n_721(), + i18n_722(), + i18n_723(), + i18n_724(), + i18n_725(), + i18n_726(), + i18n_727(), + i18n_728(), + i18n_729(), + i18n_730(), + i18n_731(), + i18n_732(), + i18n_733(), + i18n_734(), + i18n_735(), + i18n_736(), + i18n_737(), + i18n_738(), + i18n_739(), + i18n_740(), + i18n_741(), + i18n_742(), + i18n_743(), + i18n_744(), + i18n_745(), + i18n_746(), + i18n_747(), + i18n_748(), + i18n_749(), + i18n_750(), + i18n_751(), + i18n_752(), + i18n_753(), + i18n_754(), + i18n_755(), + i18n_756(), + i18n_757(), + i18n_758(), + i18n_759(), + i18n_760(), + i18n_761(), + i18n_762(), + i18n_763(), + i18n_764(), + i18n_765(), + i18n_766(), + i18n_767(), + i18n_768(), + i18n_769(), + i18n_770(), + i18n_771(), + i18n_772(), + i18n_773(), + i18n_774(), + i18n_775(), + i18n_776(), + i18n_777(), + i18n_778(), + i18n_779(), + i18n_780(), + i18n_781(), + i18n_782(), + i18n_783(), + i18n_784(), + i18n_785(), + i18n_786(), + i18n_787(), + i18n_788(), + i18n_789(), + i18n_790(), + i18n_791(), + i18n_792(), + i18n_793(), + i18n_794(), + i18n_795(), + i18n_796(), + i18n_797(), + i18n_798(), + i18n_799(), + i18n_800(), + i18n_801(), + i18n_802(), + i18n_803(), + i18n_804(), + i18n_805(), + i18n_806(), + i18n_807(), + i18n_808(), + i18n_809(), + i18n_810(), + i18n_811(), + i18n_812(), + i18n_813(), + i18n_814(), + i18n_815(), + i18n_816(), + i18n_817(), + i18n_818(), + i18n_819(), + i18n_820(), + i18n_821(), + i18n_822(), + i18n_823(), + i18n_824(), + i18n_825(), + i18n_826(), + i18n_827(), + i18n_828(), + i18n_829(), + i18n_830(), + i18n_831(), + i18n_832(), + i18n_833(), + i18n_834(), + i18n_835(), + i18n_836(), + i18n_837(), + i18n_838(), + i18n_839(), + i18n_840(), + i18n_841(), + i18n_842(), + i18n_843(), + i18n_844(), + i18n_845(), + i18n_846(), + i18n_847(), + i18n_848(), + i18n_849(), + i18n_850(), + i18n_851(), + i18n_852(), + i18n_853(), + i18n_854(), + i18n_855(), + i18n_856(), + i18n_857(), + i18n_858(), + i18n_859(), + i18n_860(), + i18n_861(), + i18n_862(), + i18n_863(), + i18n_864(), + i18n_865(), + i18n_866(), + i18n_867(), + i18n_868(), + i18n_869(), + i18n_870(), + i18n_871(), + i18n_872(), + i18n_873(), + i18n_874(), + i18n_875(), + i18n_876(), + i18n_877(), + i18n_878(), + i18n_879(), + i18n_880(), + i18n_881(), + i18n_882(), + i18n_883(), + i18n_884(), + i18n_885(), + i18n_886(), + i18n_887(), + i18n_888(), + i18n_889(), + i18n_890(), + i18n_891(), + i18n_892(), + i18n_893(), + i18n_894(), + i18n_895(), + i18n_896(), + i18n_897(), + i18n_898(), + i18n_899(), + i18n_900(), + i18n_901(), + i18n_902(), + i18n_903(), + i18n_904(), + i18n_905(), + i18n_906(), + i18n_907(), + i18n_908(), + i18n_909(), + i18n_910(), + i18n_911(), + i18n_912(), + i18n_913(), + i18n_914(), + i18n_915(), + i18n_916(), + i18n_917(), + i18n_918(), + i18n_919(), + i18n_920(), + i18n_921(), + i18n_922(), + i18n_923(), + i18n_924(), + i18n_925(), + i18n_926(), + i18n_927(), + i18n_928(), + i18n_929(), + i18n_930(), + i18n_931(), + i18n_932(), + i18n_933(), + i18n_934(), + i18n_935(), + i18n_936(), + i18n_937(), + i18n_938(), + i18n_939(), + i18n_940(), + i18n_941(), + i18n_942(), + i18n_943(), + i18n_944(), + i18n_945(), + i18n_946(), + i18n_947(), + i18n_948(), + i18n_949(), + i18n_950(), + i18n_951(), + i18n_952(), + i18n_953(), + i18n_954(), + i18n_955(), + i18n_956(), + i18n_957(), + i18n_958(), + i18n_959(), + i18n_960(), + i18n_961(), + i18n_962(), + i18n_963(), + i18n_964(), + i18n_965(), + i18n_966(), + i18n_967(), + i18n_968(), + i18n_969(), + i18n_970(), + i18n_971(), + i18n_972(), + i18n_973(), + i18n_974(), + i18n_975(), + i18n_976(), + i18n_977(), + i18n_978(), + i18n_979(), + i18n_980(), + i18n_981(), + i18n_982(), + i18n_983(), + i18n_984(), + i18n_985(), + i18n_986(), + i18n_987(), + i18n_988(), + i18n_989(), + i18n_990(), + i18n_991(), + i18n_992(), + i18n_993(), + i18n_994(), + i18n_995(), + i18n_996(), + i18n_997(), + i18n_998(), + i18n_999() + ]; + }, + template: function App_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElementStart(0, "b"); + i0.ɵɵi18n(1, 0); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(2, "b"); + i0.ɵɵi18n(3, 1); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(4, "b"); + i0.ɵɵi18n(5, 2); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(6, "b"); + i0.ɵɵi18n(7, 3); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(8, "b"); + i0.ɵɵi18n(9, 4); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(10, "b"); + i0.ɵɵi18n(11, 5); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(12, "b"); + i0.ɵɵi18n(13, 6); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(14, "b"); + i0.ɵɵi18n(15, 7); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(16, "b"); + i0.ɵɵi18n(17, 8); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(18, "b"); + i0.ɵɵi18n(19, 9); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(20, "b"); + i0.ɵɵi18n(21, 10); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(22, "b"); + i0.ɵɵi18n(23, 11); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(24, "b"); + i0.ɵɵi18n(25, 12); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(26, "b"); + i0.ɵɵi18n(27, 13); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(28, "b"); + i0.ɵɵi18n(29, 14); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(30, "b"); + i0.ɵɵi18n(31, 15); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(32, "b"); + i0.ɵɵi18n(33, 16); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(34, "b"); + i0.ɵɵi18n(35, 17); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(36, "b"); + i0.ɵɵi18n(37, 18); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(38, "b"); + i0.ɵɵi18n(39, 19); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(40, "b"); + i0.ɵɵi18n(41, 20); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(42, "b"); + i0.ɵɵi18n(43, 21); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(44, "b"); + i0.ɵɵi18n(45, 22); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(46, "b"); + i0.ɵɵi18n(47, 23); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(48, "b"); + i0.ɵɵi18n(49, 24); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(50, "b"); + i0.ɵɵi18n(51, 25); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(52, "b"); + i0.ɵɵi18n(53, 26); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(54, "b"); + i0.ɵɵi18n(55, 27); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(56, "b"); + i0.ɵɵi18n(57, 28); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(58, "b"); + i0.ɵɵi18n(59, 29); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(60, "b"); + i0.ɵɵi18n(61, 30); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(62, "b"); + i0.ɵɵi18n(63, 31); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(64, "b"); + i0.ɵɵi18n(65, 32); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(66, "b"); + i0.ɵɵi18n(67, 33); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(68, "b"); + i0.ɵɵi18n(69, 34); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(70, "b"); + i0.ɵɵi18n(71, 35); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(72, "b"); + i0.ɵɵi18n(73, 36); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(74, "b"); + i0.ɵɵi18n(75, 37); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(76, "b"); + i0.ɵɵi18n(77, 38); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(78, "b"); + i0.ɵɵi18n(79, 39); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(80, "b"); + i0.ɵɵi18n(81, 40); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(82, "b"); + i0.ɵɵi18n(83, 41); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(84, "b"); + i0.ɵɵi18n(85, 42); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(86, "b"); + i0.ɵɵi18n(87, 43); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(88, "b"); + i0.ɵɵi18n(89, 44); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(90, "b"); + i0.ɵɵi18n(91, 45); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(92, "b"); + i0.ɵɵi18n(93, 46); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(94, "b"); + i0.ɵɵi18n(95, 47); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(96, "b"); + i0.ɵɵi18n(97, 48); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(98, "b"); + i0.ɵɵi18n(99, 49); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(100, "b"); + i0.ɵɵi18n(101, 50); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(102, "b"); + i0.ɵɵi18n(103, 51); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(104, "b"); + i0.ɵɵi18n(105, 52); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(106, "b"); + i0.ɵɵi18n(107, 53); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(108, "b"); + i0.ɵɵi18n(109, 54); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(110, "b"); + i0.ɵɵi18n(111, 55); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(112, "b"); + i0.ɵɵi18n(113, 56); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(114, "b"); + i0.ɵɵi18n(115, 57); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(116, "b"); + i0.ɵɵi18n(117, 58); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(118, "b"); + i0.ɵɵi18n(119, 59); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(120, "b"); + i0.ɵɵi18n(121, 60); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(122, "b"); + i0.ɵɵi18n(123, 61); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(124, "b"); + i0.ɵɵi18n(125, 62); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(126, "b"); + i0.ɵɵi18n(127, 63); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(128, "b"); + i0.ɵɵi18n(129, 64); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(130, "b"); + i0.ɵɵi18n(131, 65); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(132, "b"); + i0.ɵɵi18n(133, 66); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(134, "b"); + i0.ɵɵi18n(135, 67); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(136, "b"); + i0.ɵɵi18n(137, 68); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(138, "b"); + i0.ɵɵi18n(139, 69); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(140, "b"); + i0.ɵɵi18n(141, 70); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(142, "b"); + i0.ɵɵi18n(143, 71); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(144, "b"); + i0.ɵɵi18n(145, 72); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(146, "b"); + i0.ɵɵi18n(147, 73); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(148, "b"); + i0.ɵɵi18n(149, 74); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(150, "b"); + i0.ɵɵi18n(151, 75); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(152, "b"); + i0.ɵɵi18n(153, 76); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(154, "b"); + i0.ɵɵi18n(155, 77); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(156, "b"); + i0.ɵɵi18n(157, 78); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(158, "b"); + i0.ɵɵi18n(159, 79); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(160, "b"); + i0.ɵɵi18n(161, 80); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(162, "b"); + i0.ɵɵi18n(163, 81); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(164, "b"); + i0.ɵɵi18n(165, 82); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(166, "b"); + i0.ɵɵi18n(167, 83); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(168, "b"); + i0.ɵɵi18n(169, 84); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(170, "b"); + i0.ɵɵi18n(171, 85); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(172, "b"); + i0.ɵɵi18n(173, 86); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(174, "b"); + i0.ɵɵi18n(175, 87); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(176, "b"); + i0.ɵɵi18n(177, 88); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(178, "b"); + i0.ɵɵi18n(179, 89); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(180, "b"); + i0.ɵɵi18n(181, 90); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(182, "b"); + i0.ɵɵi18n(183, 91); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(184, "b"); + i0.ɵɵi18n(185, 92); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(186, "b"); + i0.ɵɵi18n(187, 93); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(188, "b"); + i0.ɵɵi18n(189, 94); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(190, "b"); + i0.ɵɵi18n(191, 95); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(192, "b"); + i0.ɵɵi18n(193, 96); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(194, "b"); + i0.ɵɵi18n(195, 97); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(196, "b"); + i0.ɵɵi18n(197, 98); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(198, "b"); + i0.ɵɵi18n(199, 99); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(200, "b"); + i0.ɵɵi18n(201, 100); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(202, "b"); + i0.ɵɵi18n(203, 101); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(204, "b"); + i0.ɵɵi18n(205, 102); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(206, "b"); + i0.ɵɵi18n(207, 103); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(208, "b"); + i0.ɵɵi18n(209, 104); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(210, "b"); + i0.ɵɵi18n(211, 105); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(212, "b"); + i0.ɵɵi18n(213, 106); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(214, "b"); + i0.ɵɵi18n(215, 107); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(216, "b"); + i0.ɵɵi18n(217, 108); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(218, "b"); + i0.ɵɵi18n(219, 109); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(220, "b"); + i0.ɵɵi18n(221, 110); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(222, "b"); + i0.ɵɵi18n(223, 111); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(224, "b"); + i0.ɵɵi18n(225, 112); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(226, "b"); + i0.ɵɵi18n(227, 113); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(228, "b"); + i0.ɵɵi18n(229, 114); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(230, "b"); + i0.ɵɵi18n(231, 115); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(232, "b"); + i0.ɵɵi18n(233, 116); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(234, "b"); + i0.ɵɵi18n(235, 117); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(236, "b"); + i0.ɵɵi18n(237, 118); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(238, "b"); + i0.ɵɵi18n(239, 119); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(240, "b"); + i0.ɵɵi18n(241, 120); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(242, "b"); + i0.ɵɵi18n(243, 121); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(244, "b"); + i0.ɵɵi18n(245, 122); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(246, "b"); + i0.ɵɵi18n(247, 123); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(248, "b"); + i0.ɵɵi18n(249, 124); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(250, "b"); + i0.ɵɵi18n(251, 125); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(252, "b"); + i0.ɵɵi18n(253, 126); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(254, "b"); + i0.ɵɵi18n(255, 127); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(256, "b"); + i0.ɵɵi18n(257, 128); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(258, "b"); + i0.ɵɵi18n(259, 129); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(260, "b"); + i0.ɵɵi18n(261, 130); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(262, "b"); + i0.ɵɵi18n(263, 131); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(264, "b"); + i0.ɵɵi18n(265, 132); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(266, "b"); + i0.ɵɵi18n(267, 133); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(268, "b"); + i0.ɵɵi18n(269, 134); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(270, "b"); + i0.ɵɵi18n(271, 135); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(272, "b"); + i0.ɵɵi18n(273, 136); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(274, "b"); + i0.ɵɵi18n(275, 137); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(276, "b"); + i0.ɵɵi18n(277, 138); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(278, "b"); + i0.ɵɵi18n(279, 139); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(280, "b"); + i0.ɵɵi18n(281, 140); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(282, "b"); + i0.ɵɵi18n(283, 141); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(284, "b"); + i0.ɵɵi18n(285, 142); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(286, "b"); + i0.ɵɵi18n(287, 143); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(288, "b"); + i0.ɵɵi18n(289, 144); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(290, "b"); + i0.ɵɵi18n(291, 145); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(292, "b"); + i0.ɵɵi18n(293, 146); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(294, "b"); + i0.ɵɵi18n(295, 147); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(296, "b"); + i0.ɵɵi18n(297, 148); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(298, "b"); + i0.ɵɵi18n(299, 149); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(300, "b"); + i0.ɵɵi18n(301, 150); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(302, "b"); + i0.ɵɵi18n(303, 151); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(304, "b"); + i0.ɵɵi18n(305, 152); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(306, "b"); + i0.ɵɵi18n(307, 153); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(308, "b"); + i0.ɵɵi18n(309, 154); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(310, "b"); + i0.ɵɵi18n(311, 155); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(312, "b"); + i0.ɵɵi18n(313, 156); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(314, "b"); + i0.ɵɵi18n(315, 157); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(316, "b"); + i0.ɵɵi18n(317, 158); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(318, "b"); + i0.ɵɵi18n(319, 159); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(320, "b"); + i0.ɵɵi18n(321, 160); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(322, "b"); + i0.ɵɵi18n(323, 161); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(324, "b"); + i0.ɵɵi18n(325, 162); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(326, "b"); + i0.ɵɵi18n(327, 163); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(328, "b"); + i0.ɵɵi18n(329, 164); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(330, "b"); + i0.ɵɵi18n(331, 165); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(332, "b"); + i0.ɵɵi18n(333, 166); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(334, "b"); + i0.ɵɵi18n(335, 167); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(336, "b"); + i0.ɵɵi18n(337, 168); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(338, "b"); + i0.ɵɵi18n(339, 169); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(340, "b"); + i0.ɵɵi18n(341, 170); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(342, "b"); + i0.ɵɵi18n(343, 171); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(344, "b"); + i0.ɵɵi18n(345, 172); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(346, "b"); + i0.ɵɵi18n(347, 173); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(348, "b"); + i0.ɵɵi18n(349, 174); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(350, "b"); + i0.ɵɵi18n(351, 175); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(352, "b"); + i0.ɵɵi18n(353, 176); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(354, "b"); + i0.ɵɵi18n(355, 177); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(356, "b"); + i0.ɵɵi18n(357, 178); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(358, "b"); + i0.ɵɵi18n(359, 179); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(360, "b"); + i0.ɵɵi18n(361, 180); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(362, "b"); + i0.ɵɵi18n(363, 181); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(364, "b"); + i0.ɵɵi18n(365, 182); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(366, "b"); + i0.ɵɵi18n(367, 183); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(368, "b"); + i0.ɵɵi18n(369, 184); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(370, "b"); + i0.ɵɵi18n(371, 185); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(372, "b"); + i0.ɵɵi18n(373, 186); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(374, "b"); + i0.ɵɵi18n(375, 187); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(376, "b"); + i0.ɵɵi18n(377, 188); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(378, "b"); + i0.ɵɵi18n(379, 189); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(380, "b"); + i0.ɵɵi18n(381, 190); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(382, "b"); + i0.ɵɵi18n(383, 191); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(384, "b"); + i0.ɵɵi18n(385, 192); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(386, "b"); + i0.ɵɵi18n(387, 193); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(388, "b"); + i0.ɵɵi18n(389, 194); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(390, "b"); + i0.ɵɵi18n(391, 195); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(392, "b"); + i0.ɵɵi18n(393, 196); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(394, "b"); + i0.ɵɵi18n(395, 197); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(396, "b"); + i0.ɵɵi18n(397, 198); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(398, "b"); + i0.ɵɵi18n(399, 199); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(400, "b"); + i0.ɵɵi18n(401, 200); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(402, "b"); + i0.ɵɵi18n(403, 201); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(404, "b"); + i0.ɵɵi18n(405, 202); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(406, "b"); + i0.ɵɵi18n(407, 203); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(408, "b"); + i0.ɵɵi18n(409, 204); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(410, "b"); + i0.ɵɵi18n(411, 205); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(412, "b"); + i0.ɵɵi18n(413, 206); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(414, "b"); + i0.ɵɵi18n(415, 207); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(416, "b"); + i0.ɵɵi18n(417, 208); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(418, "b"); + i0.ɵɵi18n(419, 209); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(420, "b"); + i0.ɵɵi18n(421, 210); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(422, "b"); + i0.ɵɵi18n(423, 211); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(424, "b"); + i0.ɵɵi18n(425, 212); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(426, "b"); + i0.ɵɵi18n(427, 213); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(428, "b"); + i0.ɵɵi18n(429, 214); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(430, "b"); + i0.ɵɵi18n(431, 215); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(432, "b"); + i0.ɵɵi18n(433, 216); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(434, "b"); + i0.ɵɵi18n(435, 217); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(436, "b"); + i0.ɵɵi18n(437, 218); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(438, "b"); + i0.ɵɵi18n(439, 219); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(440, "b"); + i0.ɵɵi18n(441, 220); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(442, "b"); + i0.ɵɵi18n(443, 221); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(444, "b"); + i0.ɵɵi18n(445, 222); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(446, "b"); + i0.ɵɵi18n(447, 223); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(448, "b"); + i0.ɵɵi18n(449, 224); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(450, "b"); + i0.ɵɵi18n(451, 225); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(452, "b"); + i0.ɵɵi18n(453, 226); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(454, "b"); + i0.ɵɵi18n(455, 227); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(456, "b"); + i0.ɵɵi18n(457, 228); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(458, "b"); + i0.ɵɵi18n(459, 229); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(460, "b"); + i0.ɵɵi18n(461, 230); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(462, "b"); + i0.ɵɵi18n(463, 231); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(464, "b"); + i0.ɵɵi18n(465, 232); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(466, "b"); + i0.ɵɵi18n(467, 233); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(468, "b"); + i0.ɵɵi18n(469, 234); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(470, "b"); + i0.ɵɵi18n(471, 235); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(472, "b"); + i0.ɵɵi18n(473, 236); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(474, "b"); + i0.ɵɵi18n(475, 237); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(476, "b"); + i0.ɵɵi18n(477, 238); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(478, "b"); + i0.ɵɵi18n(479, 239); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(480, "b"); + i0.ɵɵi18n(481, 240); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(482, "b"); + i0.ɵɵi18n(483, 241); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(484, "b"); + i0.ɵɵi18n(485, 242); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(486, "b"); + i0.ɵɵi18n(487, 243); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(488, "b"); + i0.ɵɵi18n(489, 244); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(490, "b"); + i0.ɵɵi18n(491, 245); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(492, "b"); + i0.ɵɵi18n(493, 246); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(494, "b"); + i0.ɵɵi18n(495, 247); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(496, "b"); + i0.ɵɵi18n(497, 248); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(498, "b"); + i0.ɵɵi18n(499, 249); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(500, "b"); + i0.ɵɵi18n(501, 250); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(502, "b"); + i0.ɵɵi18n(503, 251); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(504, "b"); + i0.ɵɵi18n(505, 252); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(506, "b"); + i0.ɵɵi18n(507, 253); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(508, "b"); + i0.ɵɵi18n(509, 254); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(510, "b"); + i0.ɵɵi18n(511, 255); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(512, "b"); + i0.ɵɵi18n(513, 256); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(514, "b"); + i0.ɵɵi18n(515, 257); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(516, "b"); + i0.ɵɵi18n(517, 258); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(518, "b"); + i0.ɵɵi18n(519, 259); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(520, "b"); + i0.ɵɵi18n(521, 260); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(522, "b"); + i0.ɵɵi18n(523, 261); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(524, "b"); + i0.ɵɵi18n(525, 262); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(526, "b"); + i0.ɵɵi18n(527, 263); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(528, "b"); + i0.ɵɵi18n(529, 264); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(530, "b"); + i0.ɵɵi18n(531, 265); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(532, "b"); + i0.ɵɵi18n(533, 266); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(534, "b"); + i0.ɵɵi18n(535, 267); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(536, "b"); + i0.ɵɵi18n(537, 268); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(538, "b"); + i0.ɵɵi18n(539, 269); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(540, "b"); + i0.ɵɵi18n(541, 270); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(542, "b"); + i0.ɵɵi18n(543, 271); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(544, "b"); + i0.ɵɵi18n(545, 272); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(546, "b"); + i0.ɵɵi18n(547, 273); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(548, "b"); + i0.ɵɵi18n(549, 274); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(550, "b"); + i0.ɵɵi18n(551, 275); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(552, "b"); + i0.ɵɵi18n(553, 276); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(554, "b"); + i0.ɵɵi18n(555, 277); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(556, "b"); + i0.ɵɵi18n(557, 278); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(558, "b"); + i0.ɵɵi18n(559, 279); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(560, "b"); + i0.ɵɵi18n(561, 280); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(562, "b"); + i0.ɵɵi18n(563, 281); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(564, "b"); + i0.ɵɵi18n(565, 282); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(566, "b"); + i0.ɵɵi18n(567, 283); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(568, "b"); + i0.ɵɵi18n(569, 284); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(570, "b"); + i0.ɵɵi18n(571, 285); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(572, "b"); + i0.ɵɵi18n(573, 286); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(574, "b"); + i0.ɵɵi18n(575, 287); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(576, "b"); + i0.ɵɵi18n(577, 288); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(578, "b"); + i0.ɵɵi18n(579, 289); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(580, "b"); + i0.ɵɵi18n(581, 290); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(582, "b"); + i0.ɵɵi18n(583, 291); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(584, "b"); + i0.ɵɵi18n(585, 292); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(586, "b"); + i0.ɵɵi18n(587, 293); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(588, "b"); + i0.ɵɵi18n(589, 294); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(590, "b"); + i0.ɵɵi18n(591, 295); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(592, "b"); + i0.ɵɵi18n(593, 296); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(594, "b"); + i0.ɵɵi18n(595, 297); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(596, "b"); + i0.ɵɵi18n(597, 298); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(598, "b"); + i0.ɵɵi18n(599, 299); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(600, "b"); + i0.ɵɵi18n(601, 300); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(602, "b"); + i0.ɵɵi18n(603, 301); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(604, "b"); + i0.ɵɵi18n(605, 302); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(606, "b"); + i0.ɵɵi18n(607, 303); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(608, "b"); + i0.ɵɵi18n(609, 304); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(610, "b"); + i0.ɵɵi18n(611, 305); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(612, "b"); + i0.ɵɵi18n(613, 306); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(614, "b"); + i0.ɵɵi18n(615, 307); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(616, "b"); + i0.ɵɵi18n(617, 308); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(618, "b"); + i0.ɵɵi18n(619, 309); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(620, "b"); + i0.ɵɵi18n(621, 310); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(622, "b"); + i0.ɵɵi18n(623, 311); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(624, "b"); + i0.ɵɵi18n(625, 312); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(626, "b"); + i0.ɵɵi18n(627, 313); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(628, "b"); + i0.ɵɵi18n(629, 314); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(630, "b"); + i0.ɵɵi18n(631, 315); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(632, "b"); + i0.ɵɵi18n(633, 316); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(634, "b"); + i0.ɵɵi18n(635, 317); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(636, "b"); + i0.ɵɵi18n(637, 318); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(638, "b"); + i0.ɵɵi18n(639, 319); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(640, "b"); + i0.ɵɵi18n(641, 320); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(642, "b"); + i0.ɵɵi18n(643, 321); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(644, "b"); + i0.ɵɵi18n(645, 322); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(646, "b"); + i0.ɵɵi18n(647, 323); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(648, "b"); + i0.ɵɵi18n(649, 324); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(650, "b"); + i0.ɵɵi18n(651, 325); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(652, "b"); + i0.ɵɵi18n(653, 326); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(654, "b"); + i0.ɵɵi18n(655, 327); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(656, "b"); + i0.ɵɵi18n(657, 328); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(658, "b"); + i0.ɵɵi18n(659, 329); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(660, "b"); + i0.ɵɵi18n(661, 330); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(662, "b"); + i0.ɵɵi18n(663, 331); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(664, "b"); + i0.ɵɵi18n(665, 332); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(666, "b"); + i0.ɵɵi18n(667, 333); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(668, "b"); + i0.ɵɵi18n(669, 334); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(670, "b"); + i0.ɵɵi18n(671, 335); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(672, "b"); + i0.ɵɵi18n(673, 336); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(674, "b"); + i0.ɵɵi18n(675, 337); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(676, "b"); + i0.ɵɵi18n(677, 338); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(678, "b"); + i0.ɵɵi18n(679, 339); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(680, "b"); + i0.ɵɵi18n(681, 340); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(682, "b"); + i0.ɵɵi18n(683, 341); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(684, "b"); + i0.ɵɵi18n(685, 342); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(686, "b"); + i0.ɵɵi18n(687, 343); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(688, "b"); + i0.ɵɵi18n(689, 344); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(690, "b"); + i0.ɵɵi18n(691, 345); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(692, "b"); + i0.ɵɵi18n(693, 346); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(694, "b"); + i0.ɵɵi18n(695, 347); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(696, "b"); + i0.ɵɵi18n(697, 348); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(698, "b"); + i0.ɵɵi18n(699, 349); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(700, "b"); + i0.ɵɵi18n(701, 350); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(702, "b"); + i0.ɵɵi18n(703, 351); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(704, "b"); + i0.ɵɵi18n(705, 352); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(706, "b"); + i0.ɵɵi18n(707, 353); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(708, "b"); + i0.ɵɵi18n(709, 354); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(710, "b"); + i0.ɵɵi18n(711, 355); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(712, "b"); + i0.ɵɵi18n(713, 356); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(714, "b"); + i0.ɵɵi18n(715, 357); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(716, "b"); + i0.ɵɵi18n(717, 358); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(718, "b"); + i0.ɵɵi18n(719, 359); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(720, "b"); + i0.ɵɵi18n(721, 360); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(722, "b"); + i0.ɵɵi18n(723, 361); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(724, "b"); + i0.ɵɵi18n(725, 362); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(726, "b"); + i0.ɵɵi18n(727, 363); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(728, "b"); + i0.ɵɵi18n(729, 364); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(730, "b"); + i0.ɵɵi18n(731, 365); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(732, "b"); + i0.ɵɵi18n(733, 366); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(734, "b"); + i0.ɵɵi18n(735, 367); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(736, "b"); + i0.ɵɵi18n(737, 368); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(738, "b"); + i0.ɵɵi18n(739, 369); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(740, "b"); + i0.ɵɵi18n(741, 370); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(742, "b"); + i0.ɵɵi18n(743, 371); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(744, "b"); + i0.ɵɵi18n(745, 372); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(746, "b"); + i0.ɵɵi18n(747, 373); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(748, "b"); + i0.ɵɵi18n(749, 374); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(750, "b"); + i0.ɵɵi18n(751, 375); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(752, "b"); + i0.ɵɵi18n(753, 376); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(754, "b"); + i0.ɵɵi18n(755, 377); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(756, "b"); + i0.ɵɵi18n(757, 378); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(758, "b"); + i0.ɵɵi18n(759, 379); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(760, "b"); + i0.ɵɵi18n(761, 380); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(762, "b"); + i0.ɵɵi18n(763, 381); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(764, "b"); + i0.ɵɵi18n(765, 382); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(766, "b"); + i0.ɵɵi18n(767, 383); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(768, "b"); + i0.ɵɵi18n(769, 384); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(770, "b"); + i0.ɵɵi18n(771, 385); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(772, "b"); + i0.ɵɵi18n(773, 386); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(774, "b"); + i0.ɵɵi18n(775, 387); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(776, "b"); + i0.ɵɵi18n(777, 388); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(778, "b"); + i0.ɵɵi18n(779, 389); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(780, "b"); + i0.ɵɵi18n(781, 390); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(782, "b"); + i0.ɵɵi18n(783, 391); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(784, "b"); + i0.ɵɵi18n(785, 392); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(786, "b"); + i0.ɵɵi18n(787, 393); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(788, "b"); + i0.ɵɵi18n(789, 394); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(790, "b"); + i0.ɵɵi18n(791, 395); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(792, "b"); + i0.ɵɵi18n(793, 396); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(794, "b"); + i0.ɵɵi18n(795, 397); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(796, "b"); + i0.ɵɵi18n(797, 398); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(798, "b"); + i0.ɵɵi18n(799, 399); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(800, "b"); + i0.ɵɵi18n(801, 400); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(802, "b"); + i0.ɵɵi18n(803, 401); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(804, "b"); + i0.ɵɵi18n(805, 402); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(806, "b"); + i0.ɵɵi18n(807, 403); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(808, "b"); + i0.ɵɵi18n(809, 404); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(810, "b"); + i0.ɵɵi18n(811, 405); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(812, "b"); + i0.ɵɵi18n(813, 406); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(814, "b"); + i0.ɵɵi18n(815, 407); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(816, "b"); + i0.ɵɵi18n(817, 408); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(818, "b"); + i0.ɵɵi18n(819, 409); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(820, "b"); + i0.ɵɵi18n(821, 410); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(822, "b"); + i0.ɵɵi18n(823, 411); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(824, "b"); + i0.ɵɵi18n(825, 412); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(826, "b"); + i0.ɵɵi18n(827, 413); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(828, "b"); + i0.ɵɵi18n(829, 414); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(830, "b"); + i0.ɵɵi18n(831, 415); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(832, "b"); + i0.ɵɵi18n(833, 416); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(834, "b"); + i0.ɵɵi18n(835, 417); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(836, "b"); + i0.ɵɵi18n(837, 418); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(838, "b"); + i0.ɵɵi18n(839, 419); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(840, "b"); + i0.ɵɵi18n(841, 420); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(842, "b"); + i0.ɵɵi18n(843, 421); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(844, "b"); + i0.ɵɵi18n(845, 422); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(846, "b"); + i0.ɵɵi18n(847, 423); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(848, "b"); + i0.ɵɵi18n(849, 424); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(850, "b"); + i0.ɵɵi18n(851, 425); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(852, "b"); + i0.ɵɵi18n(853, 426); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(854, "b"); + i0.ɵɵi18n(855, 427); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(856, "b"); + i0.ɵɵi18n(857, 428); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(858, "b"); + i0.ɵɵi18n(859, 429); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(860, "b"); + i0.ɵɵi18n(861, 430); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(862, "b"); + i0.ɵɵi18n(863, 431); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(864, "b"); + i0.ɵɵi18n(865, 432); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(866, "b"); + i0.ɵɵi18n(867, 433); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(868, "b"); + i0.ɵɵi18n(869, 434); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(870, "b"); + i0.ɵɵi18n(871, 435); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(872, "b"); + i0.ɵɵi18n(873, 436); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(874, "b"); + i0.ɵɵi18n(875, 437); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(876, "b"); + i0.ɵɵi18n(877, 438); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(878, "b"); + i0.ɵɵi18n(879, 439); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(880, "b"); + i0.ɵɵi18n(881, 440); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(882, "b"); + i0.ɵɵi18n(883, 441); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(884, "b"); + i0.ɵɵi18n(885, 442); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(886, "b"); + i0.ɵɵi18n(887, 443); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(888, "b"); + i0.ɵɵi18n(889, 444); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(890, "b"); + i0.ɵɵi18n(891, 445); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(892, "b"); + i0.ɵɵi18n(893, 446); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(894, "b"); + i0.ɵɵi18n(895, 447); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(896, "b"); + i0.ɵɵi18n(897, 448); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(898, "b"); + i0.ɵɵi18n(899, 449); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(900, "b"); + i0.ɵɵi18n(901, 450); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(902, "b"); + i0.ɵɵi18n(903, 451); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(904, "b"); + i0.ɵɵi18n(905, 452); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(906, "b"); + i0.ɵɵi18n(907, 453); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(908, "b"); + i0.ɵɵi18n(909, 454); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(910, "b"); + i0.ɵɵi18n(911, 455); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(912, "b"); + i0.ɵɵi18n(913, 456); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(914, "b"); + i0.ɵɵi18n(915, 457); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(916, "b"); + i0.ɵɵi18n(917, 458); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(918, "b"); + i0.ɵɵi18n(919, 459); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(920, "b"); + i0.ɵɵi18n(921, 460); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(922, "b"); + i0.ɵɵi18n(923, 461); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(924, "b"); + i0.ɵɵi18n(925, 462); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(926, "b"); + i0.ɵɵi18n(927, 463); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(928, "b"); + i0.ɵɵi18n(929, 464); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(930, "b"); + i0.ɵɵi18n(931, 465); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(932, "b"); + i0.ɵɵi18n(933, 466); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(934, "b"); + i0.ɵɵi18n(935, 467); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(936, "b"); + i0.ɵɵi18n(937, 468); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(938, "b"); + i0.ɵɵi18n(939, 469); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(940, "b"); + i0.ɵɵi18n(941, 470); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(942, "b"); + i0.ɵɵi18n(943, 471); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(944, "b"); + i0.ɵɵi18n(945, 472); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(946, "b"); + i0.ɵɵi18n(947, 473); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(948, "b"); + i0.ɵɵi18n(949, 474); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(950, "b"); + i0.ɵɵi18n(951, 475); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(952, "b"); + i0.ɵɵi18n(953, 476); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(954, "b"); + i0.ɵɵi18n(955, 477); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(956, "b"); + i0.ɵɵi18n(957, 478); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(958, "b"); + i0.ɵɵi18n(959, 479); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(960, "b"); + i0.ɵɵi18n(961, 480); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(962, "b"); + i0.ɵɵi18n(963, 481); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(964, "b"); + i0.ɵɵi18n(965, 482); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(966, "b"); + i0.ɵɵi18n(967, 483); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(968, "b"); + i0.ɵɵi18n(969, 484); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(970, "b"); + i0.ɵɵi18n(971, 485); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(972, "b"); + i0.ɵɵi18n(973, 486); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(974, "b"); + i0.ɵɵi18n(975, 487); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(976, "b"); + i0.ɵɵi18n(977, 488); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(978, "b"); + i0.ɵɵi18n(979, 489); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(980, "b"); + i0.ɵɵi18n(981, 490); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(982, "b"); + i0.ɵɵi18n(983, 491); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(984, "b"); + i0.ɵɵi18n(985, 492); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(986, "b"); + i0.ɵɵi18n(987, 493); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(988, "b"); + i0.ɵɵi18n(989, 494); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(990, "b"); + i0.ɵɵi18n(991, 495); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(992, "b"); + i0.ɵɵi18n(993, 496); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(994, "b"); + i0.ɵɵi18n(995, 497); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(996, "b"); + i0.ɵɵi18n(997, 498); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(998, "b"); + i0.ɵɵi18n(999, 499); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1000, "b"); + i0.ɵɵi18n(1001, 500); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1002, "b"); + i0.ɵɵi18n(1003, 501); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1004, "b"); + i0.ɵɵi18n(1005, 502); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1006, "b"); + i0.ɵɵi18n(1007, 503); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1008, "b"); + i0.ɵɵi18n(1009, 504); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1010, "b"); + i0.ɵɵi18n(1011, 505); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1012, "b"); + i0.ɵɵi18n(1013, 506); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1014, "b"); + i0.ɵɵi18n(1015, 507); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1016, "b"); + i0.ɵɵi18n(1017, 508); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1018, "b"); + i0.ɵɵi18n(1019, 509); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1020, "b"); + i0.ɵɵi18n(1021, 510); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1022, "b"); + i0.ɵɵi18n(1023, 511); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1024, "b"); + i0.ɵɵi18n(1025, 512); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1026, "b"); + i0.ɵɵi18n(1027, 513); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1028, "b"); + i0.ɵɵi18n(1029, 514); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1030, "b"); + i0.ɵɵi18n(1031, 515); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1032, "b"); + i0.ɵɵi18n(1033, 516); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1034, "b"); + i0.ɵɵi18n(1035, 517); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1036, "b"); + i0.ɵɵi18n(1037, 518); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1038, "b"); + i0.ɵɵi18n(1039, 519); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1040, "b"); + i0.ɵɵi18n(1041, 520); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1042, "b"); + i0.ɵɵi18n(1043, 521); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1044, "b"); + i0.ɵɵi18n(1045, 522); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1046, "b"); + i0.ɵɵi18n(1047, 523); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1048, "b"); + i0.ɵɵi18n(1049, 524); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1050, "b"); + i0.ɵɵi18n(1051, 525); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1052, "b"); + i0.ɵɵi18n(1053, 526); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1054, "b"); + i0.ɵɵi18n(1055, 527); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1056, "b"); + i0.ɵɵi18n(1057, 528); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1058, "b"); + i0.ɵɵi18n(1059, 529); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1060, "b"); + i0.ɵɵi18n(1061, 530); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1062, "b"); + i0.ɵɵi18n(1063, 531); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1064, "b"); + i0.ɵɵi18n(1065, 532); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1066, "b"); + i0.ɵɵi18n(1067, 533); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1068, "b"); + i0.ɵɵi18n(1069, 534); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1070, "b"); + i0.ɵɵi18n(1071, 535); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1072, "b"); + i0.ɵɵi18n(1073, 536); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1074, "b"); + i0.ɵɵi18n(1075, 537); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1076, "b"); + i0.ɵɵi18n(1077, 538); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1078, "b"); + i0.ɵɵi18n(1079, 539); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1080, "b"); + i0.ɵɵi18n(1081, 540); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1082, "b"); + i0.ɵɵi18n(1083, 541); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1084, "b"); + i0.ɵɵi18n(1085, 542); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1086, "b"); + i0.ɵɵi18n(1087, 543); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1088, "b"); + i0.ɵɵi18n(1089, 544); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1090, "b"); + i0.ɵɵi18n(1091, 545); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1092, "b"); + i0.ɵɵi18n(1093, 546); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1094, "b"); + i0.ɵɵi18n(1095, 547); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1096, "b"); + i0.ɵɵi18n(1097, 548); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1098, "b"); + i0.ɵɵi18n(1099, 549); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1100, "b"); + i0.ɵɵi18n(1101, 550); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1102, "b"); + i0.ɵɵi18n(1103, 551); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1104, "b"); + i0.ɵɵi18n(1105, 552); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1106, "b"); + i0.ɵɵi18n(1107, 553); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1108, "b"); + i0.ɵɵi18n(1109, 554); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1110, "b"); + i0.ɵɵi18n(1111, 555); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1112, "b"); + i0.ɵɵi18n(1113, 556); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1114, "b"); + i0.ɵɵi18n(1115, 557); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1116, "b"); + i0.ɵɵi18n(1117, 558); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1118, "b"); + i0.ɵɵi18n(1119, 559); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1120, "b"); + i0.ɵɵi18n(1121, 560); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1122, "b"); + i0.ɵɵi18n(1123, 561); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1124, "b"); + i0.ɵɵi18n(1125, 562); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1126, "b"); + i0.ɵɵi18n(1127, 563); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1128, "b"); + i0.ɵɵi18n(1129, 564); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1130, "b"); + i0.ɵɵi18n(1131, 565); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1132, "b"); + i0.ɵɵi18n(1133, 566); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1134, "b"); + i0.ɵɵi18n(1135, 567); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1136, "b"); + i0.ɵɵi18n(1137, 568); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1138, "b"); + i0.ɵɵi18n(1139, 569); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1140, "b"); + i0.ɵɵi18n(1141, 570); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1142, "b"); + i0.ɵɵi18n(1143, 571); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1144, "b"); + i0.ɵɵi18n(1145, 572); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1146, "b"); + i0.ɵɵi18n(1147, 573); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1148, "b"); + i0.ɵɵi18n(1149, 574); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1150, "b"); + i0.ɵɵi18n(1151, 575); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1152, "b"); + i0.ɵɵi18n(1153, 576); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1154, "b"); + i0.ɵɵi18n(1155, 577); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1156, "b"); + i0.ɵɵi18n(1157, 578); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1158, "b"); + i0.ɵɵi18n(1159, 579); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1160, "b"); + i0.ɵɵi18n(1161, 580); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1162, "b"); + i0.ɵɵi18n(1163, 581); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1164, "b"); + i0.ɵɵi18n(1165, 582); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1166, "b"); + i0.ɵɵi18n(1167, 583); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1168, "b"); + i0.ɵɵi18n(1169, 584); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1170, "b"); + i0.ɵɵi18n(1171, 585); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1172, "b"); + i0.ɵɵi18n(1173, 586); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1174, "b"); + i0.ɵɵi18n(1175, 587); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1176, "b"); + i0.ɵɵi18n(1177, 588); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1178, "b"); + i0.ɵɵi18n(1179, 589); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1180, "b"); + i0.ɵɵi18n(1181, 590); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1182, "b"); + i0.ɵɵi18n(1183, 591); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1184, "b"); + i0.ɵɵi18n(1185, 592); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1186, "b"); + i0.ɵɵi18n(1187, 593); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1188, "b"); + i0.ɵɵi18n(1189, 594); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1190, "b"); + i0.ɵɵi18n(1191, 595); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1192, "b"); + i0.ɵɵi18n(1193, 596); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1194, "b"); + i0.ɵɵi18n(1195, 597); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1196, "b"); + i0.ɵɵi18n(1197, 598); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1198, "b"); + i0.ɵɵi18n(1199, 599); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1200, "b"); + i0.ɵɵi18n(1201, 600); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1202, "b"); + i0.ɵɵi18n(1203, 601); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1204, "b"); + i0.ɵɵi18n(1205, 602); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1206, "b"); + i0.ɵɵi18n(1207, 603); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1208, "b"); + i0.ɵɵi18n(1209, 604); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1210, "b"); + i0.ɵɵi18n(1211, 605); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1212, "b"); + i0.ɵɵi18n(1213, 606); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1214, "b"); + i0.ɵɵi18n(1215, 607); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1216, "b"); + i0.ɵɵi18n(1217, 608); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1218, "b"); + i0.ɵɵi18n(1219, 609); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1220, "b"); + i0.ɵɵi18n(1221, 610); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1222, "b"); + i0.ɵɵi18n(1223, 611); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1224, "b"); + i0.ɵɵi18n(1225, 612); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1226, "b"); + i0.ɵɵi18n(1227, 613); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1228, "b"); + i0.ɵɵi18n(1229, 614); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1230, "b"); + i0.ɵɵi18n(1231, 615); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1232, "b"); + i0.ɵɵi18n(1233, 616); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1234, "b"); + i0.ɵɵi18n(1235, 617); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1236, "b"); + i0.ɵɵi18n(1237, 618); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1238, "b"); + i0.ɵɵi18n(1239, 619); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1240, "b"); + i0.ɵɵi18n(1241, 620); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1242, "b"); + i0.ɵɵi18n(1243, 621); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1244, "b"); + i0.ɵɵi18n(1245, 622); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1246, "b"); + i0.ɵɵi18n(1247, 623); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1248, "b"); + i0.ɵɵi18n(1249, 624); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1250, "b"); + i0.ɵɵi18n(1251, 625); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1252, "b"); + i0.ɵɵi18n(1253, 626); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1254, "b"); + i0.ɵɵi18n(1255, 627); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1256, "b"); + i0.ɵɵi18n(1257, 628); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1258, "b"); + i0.ɵɵi18n(1259, 629); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1260, "b"); + i0.ɵɵi18n(1261, 630); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1262, "b"); + i0.ɵɵi18n(1263, 631); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1264, "b"); + i0.ɵɵi18n(1265, 632); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1266, "b"); + i0.ɵɵi18n(1267, 633); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1268, "b"); + i0.ɵɵi18n(1269, 634); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1270, "b"); + i0.ɵɵi18n(1271, 635); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1272, "b"); + i0.ɵɵi18n(1273, 636); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1274, "b"); + i0.ɵɵi18n(1275, 637); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1276, "b"); + i0.ɵɵi18n(1277, 638); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1278, "b"); + i0.ɵɵi18n(1279, 639); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1280, "b"); + i0.ɵɵi18n(1281, 640); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1282, "b"); + i0.ɵɵi18n(1283, 641); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1284, "b"); + i0.ɵɵi18n(1285, 642); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1286, "b"); + i0.ɵɵi18n(1287, 643); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1288, "b"); + i0.ɵɵi18n(1289, 644); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1290, "b"); + i0.ɵɵi18n(1291, 645); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1292, "b"); + i0.ɵɵi18n(1293, 646); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1294, "b"); + i0.ɵɵi18n(1295, 647); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1296, "b"); + i0.ɵɵi18n(1297, 648); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1298, "b"); + i0.ɵɵi18n(1299, 649); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1300, "b"); + i0.ɵɵi18n(1301, 650); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1302, "b"); + i0.ɵɵi18n(1303, 651); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1304, "b"); + i0.ɵɵi18n(1305, 652); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1306, "b"); + i0.ɵɵi18n(1307, 653); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1308, "b"); + i0.ɵɵi18n(1309, 654); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1310, "b"); + i0.ɵɵi18n(1311, 655); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1312, "b"); + i0.ɵɵi18n(1313, 656); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1314, "b"); + i0.ɵɵi18n(1315, 657); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1316, "b"); + i0.ɵɵi18n(1317, 658); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1318, "b"); + i0.ɵɵi18n(1319, 659); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1320, "b"); + i0.ɵɵi18n(1321, 660); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1322, "b"); + i0.ɵɵi18n(1323, 661); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1324, "b"); + i0.ɵɵi18n(1325, 662); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1326, "b"); + i0.ɵɵi18n(1327, 663); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1328, "b"); + i0.ɵɵi18n(1329, 664); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1330, "b"); + i0.ɵɵi18n(1331, 665); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1332, "b"); + i0.ɵɵi18n(1333, 666); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1334, "b"); + i0.ɵɵi18n(1335, 667); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1336, "b"); + i0.ɵɵi18n(1337, 668); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1338, "b"); + i0.ɵɵi18n(1339, 669); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1340, "b"); + i0.ɵɵi18n(1341, 670); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1342, "b"); + i0.ɵɵi18n(1343, 671); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1344, "b"); + i0.ɵɵi18n(1345, 672); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1346, "b"); + i0.ɵɵi18n(1347, 673); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1348, "b"); + i0.ɵɵi18n(1349, 674); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1350, "b"); + i0.ɵɵi18n(1351, 675); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1352, "b"); + i0.ɵɵi18n(1353, 676); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1354, "b"); + i0.ɵɵi18n(1355, 677); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1356, "b"); + i0.ɵɵi18n(1357, 678); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1358, "b"); + i0.ɵɵi18n(1359, 679); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1360, "b"); + i0.ɵɵi18n(1361, 680); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1362, "b"); + i0.ɵɵi18n(1363, 681); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1364, "b"); + i0.ɵɵi18n(1365, 682); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1366, "b"); + i0.ɵɵi18n(1367, 683); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1368, "b"); + i0.ɵɵi18n(1369, 684); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1370, "b"); + i0.ɵɵi18n(1371, 685); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1372, "b"); + i0.ɵɵi18n(1373, 686); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1374, "b"); + i0.ɵɵi18n(1375, 687); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1376, "b"); + i0.ɵɵi18n(1377, 688); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1378, "b"); + i0.ɵɵi18n(1379, 689); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1380, "b"); + i0.ɵɵi18n(1381, 690); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1382, "b"); + i0.ɵɵi18n(1383, 691); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1384, "b"); + i0.ɵɵi18n(1385, 692); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1386, "b"); + i0.ɵɵi18n(1387, 693); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1388, "b"); + i0.ɵɵi18n(1389, 694); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1390, "b"); + i0.ɵɵi18n(1391, 695); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1392, "b"); + i0.ɵɵi18n(1393, 696); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1394, "b"); + i0.ɵɵi18n(1395, 697); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1396, "b"); + i0.ɵɵi18n(1397, 698); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1398, "b"); + i0.ɵɵi18n(1399, 699); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1400, "b"); + i0.ɵɵi18n(1401, 700); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1402, "b"); + i0.ɵɵi18n(1403, 701); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1404, "b"); + i0.ɵɵi18n(1405, 702); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1406, "b"); + i0.ɵɵi18n(1407, 703); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1408, "b"); + i0.ɵɵi18n(1409, 704); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1410, "b"); + i0.ɵɵi18n(1411, 705); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1412, "b"); + i0.ɵɵi18n(1413, 706); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1414, "b"); + i0.ɵɵi18n(1415, 707); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1416, "b"); + i0.ɵɵi18n(1417, 708); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1418, "b"); + i0.ɵɵi18n(1419, 709); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1420, "b"); + i0.ɵɵi18n(1421, 710); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1422, "b"); + i0.ɵɵi18n(1423, 711); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1424, "b"); + i0.ɵɵi18n(1425, 712); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1426, "b"); + i0.ɵɵi18n(1427, 713); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1428, "b"); + i0.ɵɵi18n(1429, 714); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1430, "b"); + i0.ɵɵi18n(1431, 715); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1432, "b"); + i0.ɵɵi18n(1433, 716); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1434, "b"); + i0.ɵɵi18n(1435, 717); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1436, "b"); + i0.ɵɵi18n(1437, 718); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1438, "b"); + i0.ɵɵi18n(1439, 719); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1440, "b"); + i0.ɵɵi18n(1441, 720); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1442, "b"); + i0.ɵɵi18n(1443, 721); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1444, "b"); + i0.ɵɵi18n(1445, 722); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1446, "b"); + i0.ɵɵi18n(1447, 723); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1448, "b"); + i0.ɵɵi18n(1449, 724); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1450, "b"); + i0.ɵɵi18n(1451, 725); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1452, "b"); + i0.ɵɵi18n(1453, 726); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1454, "b"); + i0.ɵɵi18n(1455, 727); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1456, "b"); + i0.ɵɵi18n(1457, 728); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1458, "b"); + i0.ɵɵi18n(1459, 729); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1460, "b"); + i0.ɵɵi18n(1461, 730); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1462, "b"); + i0.ɵɵi18n(1463, 731); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1464, "b"); + i0.ɵɵi18n(1465, 732); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1466, "b"); + i0.ɵɵi18n(1467, 733); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1468, "b"); + i0.ɵɵi18n(1469, 734); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1470, "b"); + i0.ɵɵi18n(1471, 735); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1472, "b"); + i0.ɵɵi18n(1473, 736); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1474, "b"); + i0.ɵɵi18n(1475, 737); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1476, "b"); + i0.ɵɵi18n(1477, 738); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1478, "b"); + i0.ɵɵi18n(1479, 739); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1480, "b"); + i0.ɵɵi18n(1481, 740); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1482, "b"); + i0.ɵɵi18n(1483, 741); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1484, "b"); + i0.ɵɵi18n(1485, 742); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1486, "b"); + i0.ɵɵi18n(1487, 743); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1488, "b"); + i0.ɵɵi18n(1489, 744); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1490, "b"); + i0.ɵɵi18n(1491, 745); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1492, "b"); + i0.ɵɵi18n(1493, 746); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1494, "b"); + i0.ɵɵi18n(1495, 747); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1496, "b"); + i0.ɵɵi18n(1497, 748); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1498, "b"); + i0.ɵɵi18n(1499, 749); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1500, "b"); + i0.ɵɵi18n(1501, 750); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1502, "b"); + i0.ɵɵi18n(1503, 751); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1504, "b"); + i0.ɵɵi18n(1505, 752); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1506, "b"); + i0.ɵɵi18n(1507, 753); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1508, "b"); + i0.ɵɵi18n(1509, 754); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1510, "b"); + i0.ɵɵi18n(1511, 755); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1512, "b"); + i0.ɵɵi18n(1513, 756); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1514, "b"); + i0.ɵɵi18n(1515, 757); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1516, "b"); + i0.ɵɵi18n(1517, 758); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1518, "b"); + i0.ɵɵi18n(1519, 759); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1520, "b"); + i0.ɵɵi18n(1521, 760); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1522, "b"); + i0.ɵɵi18n(1523, 761); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1524, "b"); + i0.ɵɵi18n(1525, 762); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1526, "b"); + i0.ɵɵi18n(1527, 763); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1528, "b"); + i0.ɵɵi18n(1529, 764); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1530, "b"); + i0.ɵɵi18n(1531, 765); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1532, "b"); + i0.ɵɵi18n(1533, 766); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1534, "b"); + i0.ɵɵi18n(1535, 767); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1536, "b"); + i0.ɵɵi18n(1537, 768); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1538, "b"); + i0.ɵɵi18n(1539, 769); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1540, "b"); + i0.ɵɵi18n(1541, 770); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1542, "b"); + i0.ɵɵi18n(1543, 771); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1544, "b"); + i0.ɵɵi18n(1545, 772); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1546, "b"); + i0.ɵɵi18n(1547, 773); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1548, "b"); + i0.ɵɵi18n(1549, 774); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1550, "b"); + i0.ɵɵi18n(1551, 775); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1552, "b"); + i0.ɵɵi18n(1553, 776); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1554, "b"); + i0.ɵɵi18n(1555, 777); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1556, "b"); + i0.ɵɵi18n(1557, 778); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1558, "b"); + i0.ɵɵi18n(1559, 779); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1560, "b"); + i0.ɵɵi18n(1561, 780); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1562, "b"); + i0.ɵɵi18n(1563, 781); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1564, "b"); + i0.ɵɵi18n(1565, 782); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1566, "b"); + i0.ɵɵi18n(1567, 783); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1568, "b"); + i0.ɵɵi18n(1569, 784); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1570, "b"); + i0.ɵɵi18n(1571, 785); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1572, "b"); + i0.ɵɵi18n(1573, 786); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1574, "b"); + i0.ɵɵi18n(1575, 787); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1576, "b"); + i0.ɵɵi18n(1577, 788); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1578, "b"); + i0.ɵɵi18n(1579, 789); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1580, "b"); + i0.ɵɵi18n(1581, 790); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1582, "b"); + i0.ɵɵi18n(1583, 791); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1584, "b"); + i0.ɵɵi18n(1585, 792); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1586, "b"); + i0.ɵɵi18n(1587, 793); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1588, "b"); + i0.ɵɵi18n(1589, 794); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1590, "b"); + i0.ɵɵi18n(1591, 795); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1592, "b"); + i0.ɵɵi18n(1593, 796); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1594, "b"); + i0.ɵɵi18n(1595, 797); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1596, "b"); + i0.ɵɵi18n(1597, 798); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1598, "b"); + i0.ɵɵi18n(1599, 799); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1600, "b"); + i0.ɵɵi18n(1601, 800); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1602, "b"); + i0.ɵɵi18n(1603, 801); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1604, "b"); + i0.ɵɵi18n(1605, 802); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1606, "b"); + i0.ɵɵi18n(1607, 803); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1608, "b"); + i0.ɵɵi18n(1609, 804); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1610, "b"); + i0.ɵɵi18n(1611, 805); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1612, "b"); + i0.ɵɵi18n(1613, 806); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1614, "b"); + i0.ɵɵi18n(1615, 807); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1616, "b"); + i0.ɵɵi18n(1617, 808); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1618, "b"); + i0.ɵɵi18n(1619, 809); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1620, "b"); + i0.ɵɵi18n(1621, 810); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1622, "b"); + i0.ɵɵi18n(1623, 811); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1624, "b"); + i0.ɵɵi18n(1625, 812); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1626, "b"); + i0.ɵɵi18n(1627, 813); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1628, "b"); + i0.ɵɵi18n(1629, 814); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1630, "b"); + i0.ɵɵi18n(1631, 815); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1632, "b"); + i0.ɵɵi18n(1633, 816); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1634, "b"); + i0.ɵɵi18n(1635, 817); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1636, "b"); + i0.ɵɵi18n(1637, 818); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1638, "b"); + i0.ɵɵi18n(1639, 819); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1640, "b"); + i0.ɵɵi18n(1641, 820); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1642, "b"); + i0.ɵɵi18n(1643, 821); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1644, "b"); + i0.ɵɵi18n(1645, 822); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1646, "b"); + i0.ɵɵi18n(1647, 823); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1648, "b"); + i0.ɵɵi18n(1649, 824); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1650, "b"); + i0.ɵɵi18n(1651, 825); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1652, "b"); + i0.ɵɵi18n(1653, 826); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1654, "b"); + i0.ɵɵi18n(1655, 827); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1656, "b"); + i0.ɵɵi18n(1657, 828); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1658, "b"); + i0.ɵɵi18n(1659, 829); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1660, "b"); + i0.ɵɵi18n(1661, 830); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1662, "b"); + i0.ɵɵi18n(1663, 831); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1664, "b"); + i0.ɵɵi18n(1665, 832); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1666, "b"); + i0.ɵɵi18n(1667, 833); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1668, "b"); + i0.ɵɵi18n(1669, 834); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1670, "b"); + i0.ɵɵi18n(1671, 835); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1672, "b"); + i0.ɵɵi18n(1673, 836); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1674, "b"); + i0.ɵɵi18n(1675, 837); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1676, "b"); + i0.ɵɵi18n(1677, 838); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1678, "b"); + i0.ɵɵi18n(1679, 839); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1680, "b"); + i0.ɵɵi18n(1681, 840); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1682, "b"); + i0.ɵɵi18n(1683, 841); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1684, "b"); + i0.ɵɵi18n(1685, 842); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1686, "b"); + i0.ɵɵi18n(1687, 843); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1688, "b"); + i0.ɵɵi18n(1689, 844); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1690, "b"); + i0.ɵɵi18n(1691, 845); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1692, "b"); + i0.ɵɵi18n(1693, 846); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1694, "b"); + i0.ɵɵi18n(1695, 847); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1696, "b"); + i0.ɵɵi18n(1697, 848); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1698, "b"); + i0.ɵɵi18n(1699, 849); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1700, "b"); + i0.ɵɵi18n(1701, 850); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1702, "b"); + i0.ɵɵi18n(1703, 851); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1704, "b"); + i0.ɵɵi18n(1705, 852); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1706, "b"); + i0.ɵɵi18n(1707, 853); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1708, "b"); + i0.ɵɵi18n(1709, 854); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1710, "b"); + i0.ɵɵi18n(1711, 855); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1712, "b"); + i0.ɵɵi18n(1713, 856); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1714, "b"); + i0.ɵɵi18n(1715, 857); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1716, "b"); + i0.ɵɵi18n(1717, 858); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1718, "b"); + i0.ɵɵi18n(1719, 859); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1720, "b"); + i0.ɵɵi18n(1721, 860); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1722, "b"); + i0.ɵɵi18n(1723, 861); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1724, "b"); + i0.ɵɵi18n(1725, 862); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1726, "b"); + i0.ɵɵi18n(1727, 863); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1728, "b"); + i0.ɵɵi18n(1729, 864); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1730, "b"); + i0.ɵɵi18n(1731, 865); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1732, "b"); + i0.ɵɵi18n(1733, 866); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1734, "b"); + i0.ɵɵi18n(1735, 867); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1736, "b"); + i0.ɵɵi18n(1737, 868); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1738, "b"); + i0.ɵɵi18n(1739, 869); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1740, "b"); + i0.ɵɵi18n(1741, 870); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1742, "b"); + i0.ɵɵi18n(1743, 871); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1744, "b"); + i0.ɵɵi18n(1745, 872); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1746, "b"); + i0.ɵɵi18n(1747, 873); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1748, "b"); + i0.ɵɵi18n(1749, 874); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1750, "b"); + i0.ɵɵi18n(1751, 875); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1752, "b"); + i0.ɵɵi18n(1753, 876); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1754, "b"); + i0.ɵɵi18n(1755, 877); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1756, "b"); + i0.ɵɵi18n(1757, 878); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1758, "b"); + i0.ɵɵi18n(1759, 879); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1760, "b"); + i0.ɵɵi18n(1761, 880); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1762, "b"); + i0.ɵɵi18n(1763, 881); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1764, "b"); + i0.ɵɵi18n(1765, 882); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1766, "b"); + i0.ɵɵi18n(1767, 883); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1768, "b"); + i0.ɵɵi18n(1769, 884); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1770, "b"); + i0.ɵɵi18n(1771, 885); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1772, "b"); + i0.ɵɵi18n(1773, 886); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1774, "b"); + i0.ɵɵi18n(1775, 887); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1776, "b"); + i0.ɵɵi18n(1777, 888); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1778, "b"); + i0.ɵɵi18n(1779, 889); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1780, "b"); + i0.ɵɵi18n(1781, 890); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1782, "b"); + i0.ɵɵi18n(1783, 891); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1784, "b"); + i0.ɵɵi18n(1785, 892); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1786, "b"); + i0.ɵɵi18n(1787, 893); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1788, "b"); + i0.ɵɵi18n(1789, 894); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1790, "b"); + i0.ɵɵi18n(1791, 895); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1792, "b"); + i0.ɵɵi18n(1793, 896); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1794, "b"); + i0.ɵɵi18n(1795, 897); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1796, "b"); + i0.ɵɵi18n(1797, 898); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1798, "b"); + i0.ɵɵi18n(1799, 899); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1800, "b"); + i0.ɵɵi18n(1801, 900); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1802, "b"); + i0.ɵɵi18n(1803, 901); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1804, "b"); + i0.ɵɵi18n(1805, 902); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1806, "b"); + i0.ɵɵi18n(1807, 903); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1808, "b"); + i0.ɵɵi18n(1809, 904); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1810, "b"); + i0.ɵɵi18n(1811, 905); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1812, "b"); + i0.ɵɵi18n(1813, 906); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1814, "b"); + i0.ɵɵi18n(1815, 907); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1816, "b"); + i0.ɵɵi18n(1817, 908); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1818, "b"); + i0.ɵɵi18n(1819, 909); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1820, "b"); + i0.ɵɵi18n(1821, 910); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1822, "b"); + i0.ɵɵi18n(1823, 911); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1824, "b"); + i0.ɵɵi18n(1825, 912); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1826, "b"); + i0.ɵɵi18n(1827, 913); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1828, "b"); + i0.ɵɵi18n(1829, 914); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1830, "b"); + i0.ɵɵi18n(1831, 915); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1832, "b"); + i0.ɵɵi18n(1833, 916); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1834, "b"); + i0.ɵɵi18n(1835, 917); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1836, "b"); + i0.ɵɵi18n(1837, 918); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1838, "b"); + i0.ɵɵi18n(1839, 919); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1840, "b"); + i0.ɵɵi18n(1841, 920); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1842, "b"); + i0.ɵɵi18n(1843, 921); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1844, "b"); + i0.ɵɵi18n(1845, 922); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1846, "b"); + i0.ɵɵi18n(1847, 923); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1848, "b"); + i0.ɵɵi18n(1849, 924); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1850, "b"); + i0.ɵɵi18n(1851, 925); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1852, "b"); + i0.ɵɵi18n(1853, 926); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1854, "b"); + i0.ɵɵi18n(1855, 927); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1856, "b"); + i0.ɵɵi18n(1857, 928); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1858, "b"); + i0.ɵɵi18n(1859, 929); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1860, "b"); + i0.ɵɵi18n(1861, 930); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1862, "b"); + i0.ɵɵi18n(1863, 931); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1864, "b"); + i0.ɵɵi18n(1865, 932); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1866, "b"); + i0.ɵɵi18n(1867, 933); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1868, "b"); + i0.ɵɵi18n(1869, 934); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1870, "b"); + i0.ɵɵi18n(1871, 935); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1872, "b"); + i0.ɵɵi18n(1873, 936); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1874, "b"); + i0.ɵɵi18n(1875, 937); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1876, "b"); + i0.ɵɵi18n(1877, 938); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1878, "b"); + i0.ɵɵi18n(1879, 939); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1880, "b"); + i0.ɵɵi18n(1881, 940); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1882, "b"); + i0.ɵɵi18n(1883, 941); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1884, "b"); + i0.ɵɵi18n(1885, 942); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1886, "b"); + i0.ɵɵi18n(1887, 943); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1888, "b"); + i0.ɵɵi18n(1889, 944); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1890, "b"); + i0.ɵɵi18n(1891, 945); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1892, "b"); + i0.ɵɵi18n(1893, 946); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1894, "b"); + i0.ɵɵi18n(1895, 947); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1896, "b"); + i0.ɵɵi18n(1897, 948); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1898, "b"); + i0.ɵɵi18n(1899, 949); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1900, "b"); + i0.ɵɵi18n(1901, 950); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1902, "b"); + i0.ɵɵi18n(1903, 951); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1904, "b"); + i0.ɵɵi18n(1905, 952); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1906, "b"); + i0.ɵɵi18n(1907, 953); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1908, "b"); + i0.ɵɵi18n(1909, 954); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1910, "b"); + i0.ɵɵi18n(1911, 955); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1912, "b"); + i0.ɵɵi18n(1913, 956); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1914, "b"); + i0.ɵɵi18n(1915, 957); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1916, "b"); + i0.ɵɵi18n(1917, 958); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1918, "b"); + i0.ɵɵi18n(1919, 959); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1920, "b"); + i0.ɵɵi18n(1921, 960); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1922, "b"); + i0.ɵɵi18n(1923, 961); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1924, "b"); + i0.ɵɵi18n(1925, 962); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1926, "b"); + i0.ɵɵi18n(1927, 963); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1928, "b"); + i0.ɵɵi18n(1929, 964); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1930, "b"); + i0.ɵɵi18n(1931, 965); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1932, "b"); + i0.ɵɵi18n(1933, 966); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1934, "b"); + i0.ɵɵi18n(1935, 967); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1936, "b"); + i0.ɵɵi18n(1937, 968); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1938, "b"); + i0.ɵɵi18n(1939, 969); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1940, "b"); + i0.ɵɵi18n(1941, 970); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1942, "b"); + i0.ɵɵi18n(1943, 971); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1944, "b"); + i0.ɵɵi18n(1945, 972); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1946, "b"); + i0.ɵɵi18n(1947, 973); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1948, "b"); + i0.ɵɵi18n(1949, 974); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1950, "b"); + i0.ɵɵi18n(1951, 975); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1952, "b"); + i0.ɵɵi18n(1953, 976); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1954, "b"); + i0.ɵɵi18n(1955, 977); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1956, "b"); + i0.ɵɵi18n(1957, 978); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1958, "b"); + i0.ɵɵi18n(1959, 979); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1960, "b"); + i0.ɵɵi18n(1961, 980); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1962, "b"); + i0.ɵɵi18n(1963, 981); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1964, "b"); + i0.ɵɵi18n(1965, 982); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1966, "b"); + i0.ɵɵi18n(1967, 983); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1968, "b"); + i0.ɵɵi18n(1969, 984); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1970, "b"); + i0.ɵɵi18n(1971, 985); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1972, "b"); + i0.ɵɵi18n(1973, 986); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1974, "b"); + i0.ɵɵi18n(1975, 987); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1976, "b"); + i0.ɵɵi18n(1977, 988); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1978, "b"); + i0.ɵɵi18n(1979, 989); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1980, "b"); + i0.ɵɵi18n(1981, 990); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1982, "b"); + i0.ɵɵi18n(1983, 991); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1984, "b"); + i0.ɵɵi18n(1985, 992); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1986, "b"); + i0.ɵɵi18n(1987, 993); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1988, "b"); + i0.ɵɵi18n(1989, 994); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1990, "b"); + i0.ɵɵi18n(1991, 995); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1992, "b"); + i0.ɵɵi18n(1993, 996); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1994, "b"); + i0.ɵɵi18n(1995, 997); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1996, "b"); + i0.ɵɵi18n(1997, 998); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(1998, "b"); + i0.ɵɵi18n(1999, 999); + i0.ɵɵdomElementEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + App, + [ + { + type: Component, + args: [ + { + template: ` + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44 + 45 + 46 + 47 + 48 + 49 + 50 + 51 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 62 + 63 + 64 + 65 + 66 + 67 + 68 + 69 + 70 + 71 + 72 + 73 + 74 + 75 + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 + 100 + 101 + 102 + 103 + 104 + 105 + 106 + 107 + 108 + 109 + 110 + 111 + 112 + 113 + 114 + 115 + 116 + 117 + 118 + 119 + 120 + 121 + 122 + 123 + 124 + 125 + 126 + 127 + 128 + 129 + 130 + 131 + 132 + 133 + 134 + 135 + 136 + 137 + 138 + 139 + 140 + 141 + 142 + 143 + 144 + 145 + 146 + 147 + 148 + 149 + 150 + 151 + 152 + 153 + 154 + 155 + 156 + 157 + 158 + 159 + 160 + 161 + 162 + 163 + 164 + 165 + 166 + 167 + 168 + 169 + 170 + 171 + 172 + 173 + 174 + 175 + 176 + 177 + 178 + 179 + 180 + 181 + 182 + 183 + 184 + 185 + 186 + 187 + 188 + 189 + 190 + 191 + 192 + 193 + 194 + 195 + 196 + 197 + 198 + 199 + 200 + 201 + 202 + 203 + 204 + 205 + 206 + 207 + 208 + 209 + 210 + 211 + 212 + 213 + 214 + 215 + 216 + 217 + 218 + 219 + 220 + 221 + 222 + 223 + 224 + 225 + 226 + 227 + 228 + 229 + 230 + 231 + 232 + 233 + 234 + 235 + 236 + 237 + 238 + 239 + 240 + 241 + 242 + 243 + 244 + 245 + 246 + 247 + 248 + 249 + 250 + 251 + 252 + 253 + 254 + 255 + 256 + 257 + 258 + 259 + 260 + 261 + 262 + 263 + 264 + 265 + 266 + 267 + 268 + 269 + 270 + 271 + 272 + 273 + 274 + 275 + 276 + 277 + 278 + 279 + 280 + 281 + 282 + 283 + 284 + 285 + 286 + 287 + 288 + 289 + 290 + 291 + 292 + 293 + 294 + 295 + 296 + 297 + 298 + 299 + 300 + 301 + 302 + 303 + 304 + 305 + 306 + 307 + 308 + 309 + 310 + 311 + 312 + 313 + 314 + 315 + 316 + 317 + 318 + 319 + 320 + 321 + 322 + 323 + 324 + 325 + 326 + 327 + 328 + 329 + 330 + 331 + 332 + 333 + 334 + 335 + 336 + 337 + 338 + 339 + 340 + 341 + 342 + 343 + 344 + 345 + 346 + 347 + 348 + 349 + 350 + 351 + 352 + 353 + 354 + 355 + 356 + 357 + 358 + 359 + 360 + 361 + 362 + 363 + 364 + 365 + 366 + 367 + 368 + 369 + 370 + 371 + 372 + 373 + 374 + 375 + 376 + 377 + 378 + 379 + 380 + 381 + 382 + 383 + 384 + 385 + 386 + 387 + 388 + 389 + 390 + 391 + 392 + 393 + 394 + 395 + 396 + 397 + 398 + 399 + 400 + 401 + 402 + 403 + 404 + 405 + 406 + 407 + 408 + 409 + 410 + 411 + 412 + 413 + 414 + 415 + 416 + 417 + 418 + 419 + 420 + 421 + 422 + 423 + 424 + 425 + 426 + 427 + 428 + 429 + 430 + 431 + 432 + 433 + 434 + 435 + 436 + 437 + 438 + 439 + 440 + 441 + 442 + 443 + 444 + 445 + 446 + 447 + 448 + 449 + 450 + 451 + 452 + 453 + 454 + 455 + 456 + 457 + 458 + 459 + 460 + 461 + 462 + 463 + 464 + 465 + 466 + 467 + 468 + 469 + 470 + 471 + 472 + 473 + 474 + 475 + 476 + 477 + 478 + 479 + 480 + 481 + 482 + 483 + 484 + 485 + 486 + 487 + 488 + 489 + 490 + 491 + 492 + 493 + 494 + 495 + 496 + 497 + 498 + 499 + 500 + 501 + 502 + 503 + 504 + 505 + 506 + 507 + 508 + 509 + 510 + 511 + 512 + 513 + 514 + 515 + 516 + 517 + 518 + 519 + 520 + 521 + 522 + 523 + 524 + 525 + 526 + 527 + 528 + 529 + 530 + 531 + 532 + 533 + 534 + 535 + 536 + 537 + 538 + 539 + 540 + 541 + 542 + 543 + 544 + 545 + 546 + 547 + 548 + 549 + 550 + 551 + 552 + 553 + 554 + 555 + 556 + 557 + 558 + 559 + 560 + 561 + 562 + 563 + 564 + 565 + 566 + 567 + 568 + 569 + 570 + 571 + 572 + 573 + 574 + 575 + 576 + 577 + 578 + 579 + 580 + 581 + 582 + 583 + 584 + 585 + 586 + 587 + 588 + 589 + 590 + 591 + 592 + 593 + 594 + 595 + 596 + 597 + 598 + 599 + 600 + 601 + 602 + 603 + 604 + 605 + 606 + 607 + 608 + 609 + 610 + 611 + 612 + 613 + 614 + 615 + 616 + 617 + 618 + 619 + 620 + 621 + 622 + 623 + 624 + 625 + 626 + 627 + 628 + 629 + 630 + 631 + 632 + 633 + 634 + 635 + 636 + 637 + 638 + 639 + 640 + 641 + 642 + 643 + 644 + 645 + 646 + 647 + 648 + 649 + 650 + 651 + 652 + 653 + 654 + 655 + 656 + 657 + 658 + 659 + 660 + 661 + 662 + 663 + 664 + 665 + 666 + 667 + 668 + 669 + 670 + 671 + 672 + 673 + 674 + 675 + 676 + 677 + 678 + 679 + 680 + 681 + 682 + 683 + 684 + 685 + 686 + 687 + 688 + 689 + 690 + 691 + 692 + 693 + 694 + 695 + 696 + 697 + 698 + 699 + 700 + 701 + 702 + 703 + 704 + 705 + 706 + 707 + 708 + 709 + 710 + 711 + 712 + 713 + 714 + 715 + 716 + 717 + 718 + 719 + 720 + 721 + 722 + 723 + 724 + 725 + 726 + 727 + 728 + 729 + 730 + 731 + 732 + 733 + 734 + 735 + 736 + 737 + 738 + 739 + 740 + 741 + 742 + 743 + 744 + 745 + 746 + 747 + 748 + 749 + 750 + 751 + 752 + 753 + 754 + 755 + 756 + 757 + 758 + 759 + 760 + 761 + 762 + 763 + 764 + 765 + 766 + 767 + 768 + 769 + 770 + 771 + 772 + 773 + 774 + 775 + 776 + 777 + 778 + 779 + 780 + 781 + 782 + 783 + 784 + 785 + 786 + 787 + 788 + 789 + 790 + 791 + 792 + 793 + 794 + 795 + 796 + 797 + 798 + 799 + 800 + 801 + 802 + 803 + 804 + 805 + 806 + 807 + 808 + 809 + 810 + 811 + 812 + 813 + 814 + 815 + 816 + 817 + 818 + 819 + 820 + 821 + 822 + 823 + 824 + 825 + 826 + 827 + 828 + 829 + 830 + 831 + 832 + 833 + 834 + 835 + 836 + 837 + 838 + 839 + 840 + 841 + 842 + 843 + 844 + 845 + 846 + 847 + 848 + 849 + 850 + 851 + 852 + 853 + 854 + 855 + 856 + 857 + 858 + 859 + 860 + 861 + 862 + 863 + 864 + 865 + 866 + 867 + 868 + 869 + 870 + 871 + 872 + 873 + 874 + 875 + 876 + 877 + 878 + 879 + 880 + 881 + 882 + 883 + 884 + 885 + 886 + 887 + 888 + 889 + 890 + 891 + 892 + 893 + 894 + 895 + 896 + 897 + 898 + 899 + 900 + 901 + 902 + 903 + 904 + 905 + 906 + 907 + 908 + 909 + 910 + 911 + 912 + 913 + 914 + 915 + 916 + 917 + 918 + 919 + 920 + 921 + 922 + 923 + 924 + 925 + 926 + 927 + 928 + 929 + 930 + 931 + 932 + 933 + 934 + 935 + 936 + 937 + 938 + 939 + 940 + 941 + 942 + 943 + 944 + 945 + 946 + 947 + 948 + 949 + 950 + 951 + 952 + 953 + 954 + 955 + 956 + 957 + 958 + 959 + 960 + 961 + 962 + 963 + 964 + 965 + 966 + 967 + 968 + 969 + 970 + 971 + 972 + 973 + 974 + 975 + 976 + 977 + 978 + 979 + 980 + 981 + 982 + 983 + 984 + 985 + 986 + 987 + 988 + 989 + 990 + 991 + 992 + 993 + 994 + 995 + 996 + 997 + 998 + 999 + 1000 + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(App, { + className: "App", + filePath: "many_i18n_elements.ts", + lineNumber: 1007 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_elements.ts b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_elements.ts new file mode 100644 index 000000000000..c3df60dabfe2 --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_elements.ts @@ -0,0 +1,1007 @@ +import {Component} from "@angular/core"; + +@Component({ + template: ` + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44 + 45 + 46 + 47 + 48 + 49 + 50 + 51 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 62 + 63 + 64 + 65 + 66 + 67 + 68 + 69 + 70 + 71 + 72 + 73 + 74 + 75 + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + 89 + 90 + 91 + 92 + 93 + 94 + 95 + 96 + 97 + 98 + 99 + 100 + 101 + 102 + 103 + 104 + 105 + 106 + 107 + 108 + 109 + 110 + 111 + 112 + 113 + 114 + 115 + 116 + 117 + 118 + 119 + 120 + 121 + 122 + 123 + 124 + 125 + 126 + 127 + 128 + 129 + 130 + 131 + 132 + 133 + 134 + 135 + 136 + 137 + 138 + 139 + 140 + 141 + 142 + 143 + 144 + 145 + 146 + 147 + 148 + 149 + 150 + 151 + 152 + 153 + 154 + 155 + 156 + 157 + 158 + 159 + 160 + 161 + 162 + 163 + 164 + 165 + 166 + 167 + 168 + 169 + 170 + 171 + 172 + 173 + 174 + 175 + 176 + 177 + 178 + 179 + 180 + 181 + 182 + 183 + 184 + 185 + 186 + 187 + 188 + 189 + 190 + 191 + 192 + 193 + 194 + 195 + 196 + 197 + 198 + 199 + 200 + 201 + 202 + 203 + 204 + 205 + 206 + 207 + 208 + 209 + 210 + 211 + 212 + 213 + 214 + 215 + 216 + 217 + 218 + 219 + 220 + 221 + 222 + 223 + 224 + 225 + 226 + 227 + 228 + 229 + 230 + 231 + 232 + 233 + 234 + 235 + 236 + 237 + 238 + 239 + 240 + 241 + 242 + 243 + 244 + 245 + 246 + 247 + 248 + 249 + 250 + 251 + 252 + 253 + 254 + 255 + 256 + 257 + 258 + 259 + 260 + 261 + 262 + 263 + 264 + 265 + 266 + 267 + 268 + 269 + 270 + 271 + 272 + 273 + 274 + 275 + 276 + 277 + 278 + 279 + 280 + 281 + 282 + 283 + 284 + 285 + 286 + 287 + 288 + 289 + 290 + 291 + 292 + 293 + 294 + 295 + 296 + 297 + 298 + 299 + 300 + 301 + 302 + 303 + 304 + 305 + 306 + 307 + 308 + 309 + 310 + 311 + 312 + 313 + 314 + 315 + 316 + 317 + 318 + 319 + 320 + 321 + 322 + 323 + 324 + 325 + 326 + 327 + 328 + 329 + 330 + 331 + 332 + 333 + 334 + 335 + 336 + 337 + 338 + 339 + 340 + 341 + 342 + 343 + 344 + 345 + 346 + 347 + 348 + 349 + 350 + 351 + 352 + 353 + 354 + 355 + 356 + 357 + 358 + 359 + 360 + 361 + 362 + 363 + 364 + 365 + 366 + 367 + 368 + 369 + 370 + 371 + 372 + 373 + 374 + 375 + 376 + 377 + 378 + 379 + 380 + 381 + 382 + 383 + 384 + 385 + 386 + 387 + 388 + 389 + 390 + 391 + 392 + 393 + 394 + 395 + 396 + 397 + 398 + 399 + 400 + 401 + 402 + 403 + 404 + 405 + 406 + 407 + 408 + 409 + 410 + 411 + 412 + 413 + 414 + 415 + 416 + 417 + 418 + 419 + 420 + 421 + 422 + 423 + 424 + 425 + 426 + 427 + 428 + 429 + 430 + 431 + 432 + 433 + 434 + 435 + 436 + 437 + 438 + 439 + 440 + 441 + 442 + 443 + 444 + 445 + 446 + 447 + 448 + 449 + 450 + 451 + 452 + 453 + 454 + 455 + 456 + 457 + 458 + 459 + 460 + 461 + 462 + 463 + 464 + 465 + 466 + 467 + 468 + 469 + 470 + 471 + 472 + 473 + 474 + 475 + 476 + 477 + 478 + 479 + 480 + 481 + 482 + 483 + 484 + 485 + 486 + 487 + 488 + 489 + 490 + 491 + 492 + 493 + 494 + 495 + 496 + 497 + 498 + 499 + 500 + 501 + 502 + 503 + 504 + 505 + 506 + 507 + 508 + 509 + 510 + 511 + 512 + 513 + 514 + 515 + 516 + 517 + 518 + 519 + 520 + 521 + 522 + 523 + 524 + 525 + 526 + 527 + 528 + 529 + 530 + 531 + 532 + 533 + 534 + 535 + 536 + 537 + 538 + 539 + 540 + 541 + 542 + 543 + 544 + 545 + 546 + 547 + 548 + 549 + 550 + 551 + 552 + 553 + 554 + 555 + 556 + 557 + 558 + 559 + 560 + 561 + 562 + 563 + 564 + 565 + 566 + 567 + 568 + 569 + 570 + 571 + 572 + 573 + 574 + 575 + 576 + 577 + 578 + 579 + 580 + 581 + 582 + 583 + 584 + 585 + 586 + 587 + 588 + 589 + 590 + 591 + 592 + 593 + 594 + 595 + 596 + 597 + 598 + 599 + 600 + 601 + 602 + 603 + 604 + 605 + 606 + 607 + 608 + 609 + 610 + 611 + 612 + 613 + 614 + 615 + 616 + 617 + 618 + 619 + 620 + 621 + 622 + 623 + 624 + 625 + 626 + 627 + 628 + 629 + 630 + 631 + 632 + 633 + 634 + 635 + 636 + 637 + 638 + 639 + 640 + 641 + 642 + 643 + 644 + 645 + 646 + 647 + 648 + 649 + 650 + 651 + 652 + 653 + 654 + 655 + 656 + 657 + 658 + 659 + 660 + 661 + 662 + 663 + 664 + 665 + 666 + 667 + 668 + 669 + 670 + 671 + 672 + 673 + 674 + 675 + 676 + 677 + 678 + 679 + 680 + 681 + 682 + 683 + 684 + 685 + 686 + 687 + 688 + 689 + 690 + 691 + 692 + 693 + 694 + 695 + 696 + 697 + 698 + 699 + 700 + 701 + 702 + 703 + 704 + 705 + 706 + 707 + 708 + 709 + 710 + 711 + 712 + 713 + 714 + 715 + 716 + 717 + 718 + 719 + 720 + 721 + 722 + 723 + 724 + 725 + 726 + 727 + 728 + 729 + 730 + 731 + 732 + 733 + 734 + 735 + 736 + 737 + 738 + 739 + 740 + 741 + 742 + 743 + 744 + 745 + 746 + 747 + 748 + 749 + 750 + 751 + 752 + 753 + 754 + 755 + 756 + 757 + 758 + 759 + 760 + 761 + 762 + 763 + 764 + 765 + 766 + 767 + 768 + 769 + 770 + 771 + 772 + 773 + 774 + 775 + 776 + 777 + 778 + 779 + 780 + 781 + 782 + 783 + 784 + 785 + 786 + 787 + 788 + 789 + 790 + 791 + 792 + 793 + 794 + 795 + 796 + 797 + 798 + 799 + 800 + 801 + 802 + 803 + 804 + 805 + 806 + 807 + 808 + 809 + 810 + 811 + 812 + 813 + 814 + 815 + 816 + 817 + 818 + 819 + 820 + 821 + 822 + 823 + 824 + 825 + 826 + 827 + 828 + 829 + 830 + 831 + 832 + 833 + 834 + 835 + 836 + 837 + 838 + 839 + 840 + 841 + 842 + 843 + 844 + 845 + 846 + 847 + 848 + 849 + 850 + 851 + 852 + 853 + 854 + 855 + 856 + 857 + 858 + 859 + 860 + 861 + 862 + 863 + 864 + 865 + 866 + 867 + 868 + 869 + 870 + 871 + 872 + 873 + 874 + 875 + 876 + 877 + 878 + 879 + 880 + 881 + 882 + 883 + 884 + 885 + 886 + 887 + 888 + 889 + 890 + 891 + 892 + 893 + 894 + 895 + 896 + 897 + 898 + 899 + 900 + 901 + 902 + 903 + 904 + 905 + 906 + 907 + 908 + 909 + 910 + 911 + 912 + 913 + 914 + 915 + 916 + 917 + 918 + 919 + 920 + 921 + 922 + 923 + 924 + 925 + 926 + 927 + 928 + 929 + 930 + 931 + 932 + 933 + 934 + 935 + 936 + 937 + 938 + 939 + 940 + 941 + 942 + 943 + 944 + 945 + 946 + 947 + 948 + 949 + 950 + 951 + 952 + 953 + 954 + 955 + 956 + 957 + 958 + 959 + 960 + 961 + 962 + 963 + 964 + 965 + 966 + 967 + 968 + 969 + 970 + 971 + 972 + 973 + 974 + 975 + 976 + 977 + 978 + 979 + 980 + 981 + 982 + 983 + 984 + 985 + 986 + 987 + 988 + 989 + 990 + 991 + 992 + 993 + 994 + 995 + 996 + 997 + 998 + 999 + 1000 + `, +}) +export class App {} diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_elements_isolated.golden.d.ts b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_elements_isolated.golden.d.ts new file mode 100644 index 000000000000..1bf11e5847e7 --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/many_i18n_elements_isolated.golden.d.ts @@ -0,0 +1,5 @@ +import * as i0 from "@angular/core"; +export declare class App { + static ɵfac: i0.ɵɵFactoryDeclaration; + static ɵcmp: i0.ɵɵComponentDeclaration; +} diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/multiple_pipes.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/multiple_pipes.js index e36762a0141a..51c572b721da 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/multiple_pipes.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/multiple_pipes.js @@ -1,31 +1,259 @@ -consts: () => { - __i18nMsg__('{$interpolation} and {$interpolation_1}', [['interpolation', String.raw`\uFFFD0\uFFFD`], ['interpolation_1', String.raw`\uFFFD1\uFFFD`]], {original_code: {'interpolation': '{{ valueA | pipeA }}', 'interpolation_1': '{{ valueB | pipeB }}'}}, {}) - __i18nMsg__('{$startTagSpan}{$interpolation}{$closeTagSpan} and {$interpolation_1} {$startTagSpan}and {$interpolation_2}{$closeTagSpan}', [['closeTagSpan', String.raw`[\uFFFD/#6\uFFFD|\uFFFD/#9\uFFFD]`], ['interpolation', String.raw`\uFFFD0\uFFFD`], ['interpolation_1', String.raw`\uFFFD1\uFFFD`], ['interpolation_2', String.raw`\uFFFD2\uFFFD`], ['startTagSpan', String.raw`[\uFFFD#6\uFFFD|\uFFFD#9\uFFFD]`]], {original_code: {'closeTagSpan': '', 'interpolation': '{{ valueA | pipeA }}', 'interpolation_1': '{{ valueB | pipeB }}', 'interpolation_2': '{{ valueC | pipeC }}', 'startTagSpan': ''}}, {}) - … -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵpipe(2, "pipeA"); - $r3$.ɵɵpipe(3, "pipeB"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(4, "div"); - $r3$.ɵɵi18nStart(5, 1); - $r3$.ɵɵelement(6, "span"); - $r3$.ɵɵpipe(7, "pipeA"); - $r3$.ɵɵpipe(8, "pipeB"); - $r3$.ɵɵelement(9, "span"); - $r3$.ɵɵpipe(10, "pipeC"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); +import { Component, NgModule, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + valueA = 0; + valueB = 0; + valueC = 0; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 11, + vars: 15, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3087172561491410158$$MULTIPLE_PIPES_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$interpolation} and {$interpolation_1}", + { "interpolation": "\uFFFD0\uFFFD", "interpolation_1": "\uFFFD1\uFFFD" }, + { + original_code: { + "interpolation": "{{ valueA | pipeA }}", + "interpolation_1": "{{ valueB | pipeB }}" + } + } + ); + i18n_0 = MSG_EXTERNAL_3087172561491410158$$MULTIPLE_PIPES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: and ${"\uFFFD1\uFFFD"}:INTERPOLATION_1:`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1641175607905636072$$MULTIPLE_PIPES_TS_1 = + /* @ts-ignore */ + goog.getMsg( + "{$startTagSpan}{$interpolation}{$closeTagSpan} and {$interpolation_1} {$startTagSpan}and {$interpolation_2}{$closeTagSpan}", + { + "closeTagSpan": "[\uFFFD/#6\uFFFD|\uFFFD/#9\uFFFD]", + "interpolation": "\uFFFD0\uFFFD", + "interpolation_1": "\uFFFD1\uFFFD", + "interpolation_2": "\uFFFD2\uFFFD", + "startTagSpan": "[\uFFFD#6\uFFFD|\uFFFD#9\uFFFD]" + }, + { + original_code: { + "closeTagSpan": "", + "interpolation": "{{ valueA | pipeA }}", + "interpolation_1": "{{ valueB | pipeB }}", + "interpolation_2": "{{ valueC | pipeC }}", + "startTagSpan": "" + } + } + ); + i18n_1 = MSG_EXTERNAL_1641175607905636072$$MULTIPLE_PIPES_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`${"[\uFFFD#6\uFFFD|\uFFFD#9\uFFFD]"}:START_TAG_SPAN:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"[\uFFFD/#6\uFFFD|\uFFFD/#9\uFFFD]"}:CLOSE_TAG_SPAN: and ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: ${"[\uFFFD#6\uFFFD|\uFFFD#9\uFFFD]"}:START_TAG_SPAN:and ${"\uFFFD2\uFFFD"}:INTERPOLATION_2:${"[\uFFFD/#6\uFFFD|\uFFFD/#9\uFFFD]"}:CLOSE_TAG_SPAN:`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1); + return [i18n_0, i18n_1]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵpipe(2, "pipeA"); + i0.ɵɵpipe(3, "pipeB"); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(4, "div"); + i0.ɵɵi18nStart(5, 1); + i0.ɵɵelement(6, "span"); + i0.ɵɵpipe(7, "pipeA"); + i0.ɵɵpipe(8, "pipeB"); + i0.ɵɵelement(9, "span"); + i0.ɵɵpipe(10, "pipeC"); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(3); + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(2, 5, ctx.valueA))(i0.ɵɵpipeBind1(3, 7, ctx.valueB)); + i0.ɵɵi18nApply(1); + i0.ɵɵadvance(7); + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(7, 9, ctx.valueA))(i0.ɵɵpipeBind1(8, 11, ctx.valueB))( + i0.ɵɵpipeBind1(10, 13, ctx.valueC) + ); + i0.ɵɵi18nApply(5); + } + }, + dependencies: () => [PipeA, PipeB, PipeC], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    {{ valueA | pipeA }} and {{ valueB | pipeB }}
    +
    {{ valueA | pipeA }} and {{ valueB | pipeB }} and {{ valueC | pipeC }}
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "multiple_pipes.ts", + lineNumber: 11 + }); +})(); +export class PipeA { + transform() { + return null; } - if (rf & 2) { - $r3$.ɵɵadvance(3); - $r3$.ɵɵi18nExp($r3$.ɵɵpipeBind1(2, …, ctx.valueA))($r3$.ɵɵpipeBind1(3, …, ctx.valueB)); - $r3$.ɵɵi18nApply(1); - $r3$.ɵɵadvance(7); - $r3$.ɵɵi18nExp($r3$.ɵɵpipeBind1(7, …, ctx.valueA))($r3$.ɵɵpipeBind1(8, …, ctx.valueB))($r3$.ɵɵpipeBind1(10, …, ctx.valueC)); - $r3$.ɵɵi18nApply(5); + static ɵfac = function PipeA_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || PipeA)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "pipeA", + type: PipeA, + pure: true, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + PipeA, + [ + { + type: Pipe, + args: [ + { + name: "pipeA", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class PipeB { + transform() { + return null; } + static ɵfac = function PipeB_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || PipeB)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "pipeB", + type: PipeB, + pure: true, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + PipeB, + [ + { + type: Pipe, + args: [ + { + name: "pipeB", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class PipeC { + transform() { + return null; + } + static ɵfac = function PipeC_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || PipeC)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "pipeC", + type: PipeC, + pure: true, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + PipeC, + [ + { + type: Pipe, + args: [ + { + name: "pipeC", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent, PipeA, PipeB, PipeC] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, PipeA, PipeB, PipeC] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/foreign_object.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/foreign_object.js index 02cc7c69d344..ef7f4cc65d51 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/foreign_object.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/foreign_object.js @@ -1,45 +1,125 @@ - -consts: () => { - let $I18N_0$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_7128002169381370313$$APP_SPEC_TS_1$ = /* @ts-ignore */ goog.getMsg("{$startTagXhtmlDiv} Count: {$startTagXhtmlSpan}5{$closeTagXhtmlSpan}{$closeTagXhtmlDiv}", { - "closeTagXhtmlDiv": "\uFFFD/#3\uFFFD", - "closeTagXhtmlSpan": "\uFFFD/#4\uFFFD", - "startTagXhtmlDiv": "\uFFFD#3\uFFFD", - "startTagXhtmlSpan": "\uFFFD#4\uFFFD" - }, { - original_code: { - "closeTagXhtmlDiv": "", - "closeTagXhtmlSpan": "
    ", - "startTagXhtmlDiv": "", - "startTagXhtmlSpan": "" +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 5, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8448806415640562150$$FOREIGN_OBJECT_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$startTagXhtmlDiv} Count: {$startTagXhtmlSpan}5{$closeTagXhtmlSpan}{$closeTagXhtmlDiv}", + { + "closeTagXhtmlDiv": "\uFFFD/#3\uFFFD", + "closeTagXhtmlSpan": "\uFFFD/#4\uFFFD", + "startTagXhtmlDiv": "\uFFFD#3\uFFFD", + "startTagXhtmlSpan": "\uFFFD#4\uFFFD" + }, + { + original_code: { + "closeTagXhtmlDiv": "", + "closeTagXhtmlSpan": "", + "startTagXhtmlDiv": '', + "startTagXhtmlSpan": "" + } + } + ); + i18n_0 = MSG_EXTERNAL_8448806415640562150$$FOREIGN_OBJECT_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"\uFFFD#3\uFFFD"}:START_TAG__XHTML_DIV: Count: ${"\uFFFD#4\uFFFD"}:START_TAG__XHTML_SPAN:5${"\uFFFD/#4\uFFFD"}:CLOSE_TAG__XHTML_SPAN:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG__XHTML_DIV:`; } + return [ + i18n_0, + ["xmlns", "http://www.w3.org/2000/svg"], + ["xmlns", "http://www.w3.org/1999/xhtml"] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵnamespaceSVG(); + i0.ɵɵelementStart(0, "svg", 1)(1, "foreignObject"); + i0.ɵɵi18nStart(2, 0); + i0.ɵɵnamespaceHTML(); + i0.ɵɵelementStart(3, "div", 2); + i0.ɵɵelement(4, "span"); + i0.ɵɵelementEnd(); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd()(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + + + + Count: 5 + + + +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "foreign_object.ts", + lineNumber: 16 }); - $I18N_0$ = $MSG_EXTERNAL_7128002169381370313$$APP_SPEC_TS_1$; - } - else { - /* @ts-ignore */ - $I18N_0$ = $localize `${"\uFFFD#3\uFFFD"}:START_TAG__XHTML_DIV: Count: ${"\uFFFD#4\uFFFD"}:START_TAG__XHTML_SPAN:5${"\uFFFD/#4\uFFFD"}:CLOSE_TAG__XHTML_SPAN:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG__XHTML_DIV:`; - } - return [ - $i18n_0$, - ["xmlns", "http://www.w3.org/2000/svg"], - ["xmlns", "http://www.w3.org/1999/xhtml"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵnamespaceSVG(); - $r3$.ɵɵelementStart(0, "svg", 1)(1, "foreignObject"); - $r3$.ɵɵi18nStart(2, 0); - $r3$.ɵɵnamespaceHTML(); - $r3$.ɵɵelementStart(3, "div", 2); - $r3$.ɵɵelement(4, "span"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd()(); - } +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/namespaced_div.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/namespaced_div.js index c9b1347646bc..1ef4d0218fd4 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/namespaced_div.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/namespaced_div.js @@ -1,39 +1,112 @@ -consts: () => { - let $I18N_0$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_7428861019045796010$$APP_SPEC_TS_1$ = /* @ts-ignore */ goog.getMsg(" Count: {$startTagXhtmlSpan}5{$closeTagXhtmlSpan}", { - "closeTagXhtmlSpan": "\uFFFD/#4\uFFFD", - "startTagXhtmlSpan": "\uFFFD#4\uFFFD" - }, { - original_code: { - "closeTagXhtmlSpan": "", - "startTagXhtmlSpan": "" +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 5, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_638066648693524227$$NAMESPACED_DIV_TS_0 = + /* @ts-ignore */ + goog.getMsg( + " Count: {$startTagXhtmlSpan}5{$closeTagXhtmlSpan}", + { "closeTagXhtmlSpan": "\uFFFD/#4\uFFFD", "startTagXhtmlSpan": "\uFFFD#4\uFFFD" }, + { original_code: { "closeTagXhtmlSpan": "", "startTagXhtmlSpan": "" } } + ); + i18n_0 = MSG_EXTERNAL_638066648693524227$$NAMESPACED_DIV_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize` Count: ${"\uFFFD#4\uFFFD"}:START_TAG__XHTML_SPAN:5${"\uFFFD/#4\uFFFD"}:CLOSE_TAG__XHTML_SPAN:`; } + return [ + i18n_0, + ["xmlns", "http://www.w3.org/2000/svg"], + ["xmlns", "http://www.w3.org/1999/xhtml"] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵnamespaceSVG(); + i0.ɵɵelementStart(0, "svg", 1)(1, "foreignObject"); + i0.ɵɵnamespaceHTML(); + i0.ɵɵelementStart(2, "div", 2); + i0.ɵɵi18nStart(3, 0); + i0.ɵɵelement(4, "span"); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd()()(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + + + + Count: 5 + + + +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "namespaced_div.ts", + lineNumber: 16 }); - $I18N_0$ = $MSG_EXTERNAL_7428861019045796010$$APP_SPEC_TS_1$; - } - else { - /* @ts-ignore */ - $I18N_0$ = $localize ` Count: ${"\uFFFD#4\uFFFD"}:START_TAG__XHTML_SPAN:5${"\uFFFD/#4\uFFFD"}:CLOSE_TAG__XHTML_SPAN:`; - } - return [ - $i18n_0$, - ["xmlns", "http://www.w3.org/2000/svg"], - ["xmlns", "http://www.w3.org/1999/xhtml"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵnamespaceSVG(); - $r3$.ɵɵelementStart(0, "svg", 1)(1, "foreignObject"); - $r3$.ɵɵnamespaceHTML(); - $r3$.ɵɵelementStart(2, "div", 2); - $r3$.ɵɵi18nStart(3, 0); - $r3$.ɵɵelement(4, "span"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd()()(); - } +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/backtick_quotes.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/backtick_quotes.js index 0390969e511d..bde9a27134e1 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/backtick_quotes.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/backtick_quotes.js @@ -1,13 +1,101 @@ -// NOTE: Keeping raw content (avoiding `__i18nMsg__` macro) to illustrate backticks escaping. -let $I18N_0$; -if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_APP_SPEC_TS_1$ = /* @ts-ignore */ goog.getMsg("`{$interpolation}`", { "interpolation": "\uFFFD0\uFFFD" }, { original_code: { "interpolation": "{{ count }}" } }); - $I18N_0$ = $MSG_APP_SPEC_TS_1$; +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + count = 1; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6063854695944501059$$BACKTICK_QUOTES_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "`{$interpolation}`", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ count }}" } } + ); + i18n_0 = MSG_EXTERNAL_6063854695944501059$$BACKTICK_QUOTES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`\`${"\uFFFD0\uFFFD"}:INTERPOLATION:\``; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.count); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); } -else { - /* @ts-ignore */ - $I18N_0$ = $localize `\`${"\uFFFD0\uFFFD"}:INTERPOLATION:\``; +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: "
    `{{ count }}`
    ", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "backtick_quotes.ts", + lineNumber: 8 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/bindings_in_content.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/bindings_in_content.js index c10c2ea93019..f46f2a692455 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/bindings_in_content.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/bindings_in_content.js @@ -1,37 +1,188 @@ -decls: 7, -vars: 5, -consts: () => { - __i18nMsg__('My i18n block #{$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ one }}'}}, {}) - __i18nMsg__('My i18n block #{$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ two | uppercase }}'}}, {}) - __i18nMsg__('My i18n block #{$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ three + four + five }}'}}, {}) - return [ - $i18n_0$, - $i18n_1$, - $i18n_2$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(2, "div"); - $r3$.ɵɵi18n(3, 1); - $r3$.ɵɵpipe(4, "uppercase"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(5, "div"); - $r3$.ɵɵi18n(6, 2); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.one); - $r3$.ɵɵi18nApply(1); - $r3$.ɵɵadvance(3); - $r3$.ɵɵi18nExp($r3$.ɵɵpipeBind1(4, 3, ctx.two)); - $r3$.ɵɵi18nApply(3); - $r3$.ɵɵadvance(2); - $r3$.ɵɵi18nExp(ctx.three + ctx.four + ctx.five); - $r3$.ɵɵi18nApply(6); - } +import { Component, NgModule, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; +export class UppercasePipe { + transform(v) {} + static ɵfac = function UppercasePipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || UppercasePipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "uppercase", + type: UppercasePipe, + pure: true, + standalone: false + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + UppercasePipe, + [ + { + type: Pipe, + args: [ + { + name: "uppercase", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class MyComponent { + one = 1; + two = 2; + three = 3; + four = 4; + five = 5; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 7, + vars: 5, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_572579892698764378$$BINDINGS_IN_CONTENT_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "My i18n block #{$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ one }}" } } + ); + i18n_0 = MSG_EXTERNAL_572579892698764378$$BINDINGS_IN_CONTENT_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`My i18n block #${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_609623417156596326$$BINDINGS_IN_CONTENT_TS_1 = + /* @ts-ignore */ + goog.getMsg( + "My i18n block #{$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ two | uppercase }}" } } + ); + i18n_1 = MSG_EXTERNAL_609623417156596326$$BINDINGS_IN_CONTENT_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`My i18n block #${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3998119318957372120$$BINDINGS_IN_CONTENT_TS_2 = + /* @ts-ignore */ + goog.getMsg( + "My i18n block #{$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ three + four + five }}" } } + ); + i18n_2 = MSG_EXTERNAL_3998119318957372120$$BINDINGS_IN_CONTENT_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`My i18n block #${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + return [i18n_0, i18n_1, i18n_2]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(2, "div"); + i0.ɵɵi18n(3, 1); + i0.ɵɵpipe(4, "uppercase"); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(5, "div"); + i0.ɵɵi18n(6, 2); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.one); + i0.ɵɵi18nApply(1); + i0.ɵɵadvance(3); + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(4, 3, ctx.two)); + i0.ɵɵi18nApply(3); + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(ctx.three + ctx.four + ctx.five); + i0.ɵɵi18nApply(6); + } + }, + dependencies: [UppercasePipe], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    My i18n block #{{ one }}
    +
    My i18n block #{{ two | uppercase }}
    +
    My i18n block #{{ three + four + five }}
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "bindings_in_content.ts", + lineNumber: 20 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent, UppercasePipe] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, UppercasePipe] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/comments_in_translated_text.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/comments_in_translated_text.js index a0042f1543b6..6148f1074d0c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/comments_in_translated_text.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/comments_in_translated_text.js @@ -1 +1,93 @@ -__i18nMsg__('Some text', [], {}, {}) +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3784161717320915177$$COMMENTS_IN_TRANSLATED_TEXT_TS_0 = + /* @ts-ignore */ + goog.getMsg("Some text"); + i18n_0 = MSG_EXTERNAL_3784161717320915177$$COMMENTS_IN_TRANSLATED_TEXT_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Some text`; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    Some text
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "comments_in_translated_text.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/directives.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/directives.js index 6ba18757e519..f29266370d35 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/directives.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/directives.js @@ -1,33 +1,123 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵelement(2, "span"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵelement(2, "span"); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵadvance(2); - $r3$.ɵɵi18nExp($ctx_r0$.valueA); - $r3$.ɵɵi18nApply(1); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(ctx_r0.valueA); + i0.ɵɵi18nApply(1); } } -… -decls: 1, -vars: 1, -consts: () => { - __i18nMsg__('Some other content {$startTagSpan}{$interpolation}{$closeTagSpan}', [['closeTagSpan', String.raw`\uFFFD/#2\uFFFD`], ['interpolation', String.raw`\uFFFD0\uFFFD`], ['startTagSpan', String.raw`\uFFFD#2\uFFFD`]], {original_code: {'closeTagSpan': '
    ', 'interpolation': '{{ valueA }}', 'startTagSpan': '',}}, {}) - return [ - $i18n_0$, - [__AttributeMarker.Template__, "ngIf"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_div_0_Template, 3, 1, "div", 1); - } - if (rf & 2) { - $r3$.ɵɵproperty("ngIf", ctx.visible); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_119975189388320493$$DIRECTIVES_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "Some other content {$startTagSpan}{$interpolation}{$closeTagSpan}", + { + "closeTagSpan": "\uFFFD/#2\uFFFD", + "interpolation": "\uFFFD0\uFFFD", + "startTagSpan": "\uFFFD#2\uFFFD" + }, + { + original_code: { + "closeTagSpan": "", + "interpolation": "{{ valueA }}", + "startTagSpan": "" + } + } + ); + i18n_0 = MSG_EXTERNAL_119975189388320493$$DIRECTIVES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Some other content ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`; + } + return [i18n_0, [4, "ngIf"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_div_0_Template, 3, 1, "div", 1); + } + if (rf & 2) { + i0.ɵɵproperty("ngIf", ctx.visible); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    Some other content {{ valueA }}
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "directives.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/empty_content.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/empty_content.js index 2973061e2307..6dc67aac5b71 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/empty_content.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/empty_content.js @@ -1,5 +1,79 @@ -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div")(1, "div")(2, "div"); - } -} \ No newline at end of file +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 0, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div")(1, "div")(2, "div"); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    +
    + +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "empty_content.ts", + lineNumber: 14 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/escape_quotes.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/escape_quotes.js index b09a39f27c34..e4a7144b43af 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/escape_quotes.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/escape_quotes.js @@ -1,13 +1,95 @@ -// NOTE: Keeping raw content (avoiding `__i18nMsg__` macro) to illustrate quotes escaping. -let $I18N_0$; -if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_4924931801512133405$$APP_SPEC_TS_0$ = /* @ts-ignore */ goog.getMsg("Some text 'with single quotes', \"with double quotes\", `with backticks` and without quotes."); - $I18N_0$ = $MSG_EXTERNAL_4924931801512133405$$APP_SPEC_TS_0$; +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6706932755599817741$$ESCAPE_QUOTES_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "Some text 'with single quotes', \"with double quotes\", `with backticks` and without quotes." + ); + i18n_0 = MSG_EXTERNAL_6706932755599817741$$ESCAPE_QUOTES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Some text 'with single quotes', "with double quotes", \`with backticks\` and without quotes.`; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); } -else { - /* @ts-ignore */ - $I18N_0$ = $localize `Some text 'with single quotes', "with double quotes", \`with backticks\` and without quotes.`; +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    Some text 'with single quotes', "with double quotes", \`with backticks\` and without quotes.
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "escape_quotes.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/event_listeners_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/event_listeners_template.js index d8ed304fe128..4f3ae83763cf 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/event_listeners_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/event_listeners_template.js @@ -1,16 +1,97 @@ -consts: () => { - __i18nMsg__('Hello', [], {}, {}) - return [ - $i18n_0$, - [__AttributeMarker.Bindings__, "click"] - ]; - }, - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div", 1); - $r3$.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { return ctx.onClick(); }); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - } - } - \ No newline at end of file +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + onClick() {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3902961887793684628$$EVENT_LISTENERS_TS_0 = + /* @ts-ignore */ + goog.getMsg("Hello"); + i18n_0 = MSG_EXTERNAL_3902961887793684628$$EVENT_LISTENERS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Hello`; + } + return [i18n_0, [3, "click"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { + return ctx.onClick(); + }); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    Hello
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "event_listeners.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/i18n_after_binding.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/i18n_after_binding.js index 62aa4cd9cbac..4297882e959e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/i18n_after_binding.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/i18n_after_binding.js @@ -1,14 +1,88 @@ -function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElementStart(0, "span"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵdomElement(2, "input", 1); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵdomElementEnd(); - } if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵdomProperty("disabled", ctx.someBoolean); - $r3$.ɵɵi18nExp(ctx.someField); - $r3$.ɵɵi18nApply(1); - } -} \ No newline at end of file +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + someBoolean = false; + someField; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-cmp"]], + decls: 3, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8762838141169159471$$I18N_AFTER_BINDING_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$tagInput} {$interpolation} ", + { "interpolation": "\uFFFD0\uFFFD", "tagInput": "\uFFFD#2\uFFFD\uFFFD/#2\uFFFD" }, + { + original_code: { + "interpolation": "{{ someField }}", + "tagInput": '' + } + } + ); + i18n_0 = MSG_EXTERNAL_8762838141169159471$$I18N_AFTER_BINDING_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `; + } + return [i18n_0, [3, "disabled"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElementStart(0, "span"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵdomElement(2, "input", 1); + i0.ɵɵi18nEnd(); + i0.ɵɵdomElementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵdomProperty("disabled", ctx.someBoolean); + i0.ɵɵi18nExp(ctx.someField); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-cmp", + template: ` + + + {{ someField }} + + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "i18n_after_binding.ts", + lineNumber: 12 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/interpolation_complex_expressions.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/interpolation_complex_expressions.js index a58f5d070c73..be1580eb9eed 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/interpolation_complex_expressions.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/interpolation_complex_expressions.js @@ -1,19 +1,152 @@ -consts: () => { - __i18nMsg__(' {$interpolation} {$interpolation_1} {$interpolation_2} ', [['interpolation', String.raw`\uFFFD0\uFFFD`], ['interpolation_1', String.raw`\uFFFD1\uFFFD`], ['interpolation_2', String.raw`\uFFFD2\uFFFD`]], {original_code: {'interpolation': '{{ valueA | async }}', 'interpolation_1': '{{ valueA?.a?.b }}', 'interpolation_2': '{{ valueA.getRawValue()?.getTitle() }}'}}, {}) - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵpipe(2, "async"); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - i0.ɵɵadvance(2); - i0.ɵɵi18nExp(i0.ɵɵpipeBind1(2, 3, ctx.valueA))(ctx.valueA?.a?.b)(ctx.valueA.getRawValue()?.getTitle()); - i0.ɵɵi18nApply(1); - } +import { Component, NgModule, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; +export class AsyncPipe { + transform(v) {} + static ɵfac = function AsyncPipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || AsyncPipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "async", + type: AsyncPipe, + pure: true, + standalone: false + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + AsyncPipe, + [ + { + type: Pipe, + args: [ + { + name: "async", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class MyComponent { + valueA; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 5, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6886266366118454233$$INTERPOLATION_COMPLEX_EXPRESSIONS_TS_0 = + /* @ts-ignore */ + goog.getMsg( + " {$interpolation} {$interpolation_1} {$interpolation_2} ", + { + "interpolation": "\uFFFD0\uFFFD", + "interpolation_1": "\uFFFD1\uFFFD", + "interpolation_2": "\uFFFD2\uFFFD" + }, + { + original_code: { + "interpolation": "{{ valueA | async }}", + "interpolation_1": "{{ valueA?.a?.b }}", + "interpolation_2": "{{ valueA.getRawValue()?.getTitle() }}" + } + } + ); + i18n_0 = MSG_EXTERNAL_6886266366118454233$$INTERPOLATION_COMPLEX_EXPRESSIONS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: ${"\uFFFD2\uFFFD"}:INTERPOLATION_2: `; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵpipe(2, "async"); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(2, 3, ctx.valueA))(ctx.valueA?.a?.b)( + ctx.valueA.getRawValue()?.getTitle() + ); + i0.ɵɵi18nApply(1); + } + }, + dependencies: [AsyncPipe], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + {{ valueA | async }} + {{ valueA?.a?.b }} + {{ valueA.getRawValue()?.getTitle() }} +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "interpolation_complex_expressions.ts", + lineNumber: 22 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent, AsyncPipe] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, AsyncPipe] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/last_elem_inside_i18n_block_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/last_elem_inside_i18n_block_template.js index 17c850af0d43..1157d0927992 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/last_elem_inside_i18n_block_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/last_elem_inside_i18n_block_template.js @@ -1,28 +1,138 @@ -consts: () => { - __i18nMsg__('{$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ attr }}'}}, {}) - __i18nMsg__('{$interpolation}{$startHeadingLevel1}{$closeHeadingLevel1}', [['closeHeadingLevel1', String.raw`\uFFFD/#2\uFFFD`], ['interpolation', String.raw`\uFFFD0\uFFFD`], ['startHeadingLevel1', String.raw`\uFFFD#2\uFFFD`]], {original_code: { 'closeHeadingLevel1': '', 'interpolation': '{{ text }}', 'startHeadingLevel1': '

    ' }}, {}) - return [ - $i18n_0$, - ["title", $i18n_1$], - [__AttributeMarker.I18n__, "title"] - ]; - }, - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - i0.ɵɵelementStart(0, "div"); - i0.ɵɵi18nStart(1, 0); - i0.ɵɵelementStart(2, "h1", 2); - i0.ɵɵi18nAttributes(3, 1); - i0.ɵɵelementEnd(); - i0.ɵɵi18nEnd(); - i0.ɵɵelementEnd(); - } - if (rf & 2) { - i0.ɵɵadvance(2); - i0.ɵɵi18nExp(ctx.attr); - i0.ɵɵi18nApply(3); - i0.ɵɵadvance(); - i0.ɵɵi18nExp(ctx.text); - i0.ɵɵi18nApply(1); - } - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + attr; + text; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 4, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1678983741718428223$$LAST_ELEM_INSIDE_I18N_BLOCK_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ attr }}" } } + ); + i18n_0 = MSG_EXTERNAL_1678983741718428223$$LAST_ELEM_INSIDE_I18N_BLOCK_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3554215745691683147$$LAST_ELEM_INSIDE_I18N_BLOCK_TS_1 = + /* @ts-ignore */ + goog.getMsg( + "{$interpolation}{$startHeadingLevel1}{$closeHeadingLevel1}", + { + "closeHeadingLevel1": "\uFFFD/#2\uFFFD", + "interpolation": "\uFFFD0\uFFFD", + "startHeadingLevel1": "\uFFFD#2\uFFFD" + }, + { + original_code: { + "closeHeadingLevel1": "

    ", + "interpolation": "{{ text }}", + "startHeadingLevel1": '

    ' + } + } + ); + i18n_1 = MSG_EXTERNAL_3554215745691683147$$LAST_ELEM_INSIDE_I18N_BLOCK_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD#2\uFFFD"}:START_HEADING_LEVEL1:${"\uFFFD/#2\uFFFD"}:CLOSE_HEADING_LEVEL1:`; + } + return [i18n_1, ["title", i18n_0], [6, "title"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵelementStart(2, "h1", 2); + i0.ɵɵi18nAttributes(3, 1); + i0.ɵɵelementEnd(); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(ctx.attr); + i0.ɵɵi18nApply(3); + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.text); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    {{ text }}

    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "last_elem_inside_i18n_block.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/named_interpolations.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/named_interpolations.js index bb0134a3420b..e181291e27fc 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/named_interpolations.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/named_interpolations.js @@ -1,40 +1,112 @@ -// NOTE: Keeping raw content (avoiding `__i18nMsg__` macro) to illustrate how named interpolations are generated. -decls: 2, -vars: 2, -consts: () => { - let $I18N_0$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_7597881511811528589$$APP_SPEC_TS_0$ = /* @ts-ignore */ goog.getMsg(" Named interpolation: {$phA} Named interpolation with spaces: {$phB} ", { - "phB": "\uFFFD1\uFFFD", - "phA": "\uFFFD0\uFFFD" - }, { - original_code: { - "phB": "{{ valueB // i18n(ph=\"PH B\") }}", - "phA": "{{ valueA // i18n(ph=\"PH_A\") }}" +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + valueA = ""; + valueB = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8886186367501632276$$NAMED_INTERPOLATIONS_TS_0 = + /* @ts-ignore */ + goog.getMsg( + " Named interpolation: {$phA} Named interpolation with spaces: {$phB} ", + { "phB": "\uFFFD1\uFFFD", "phA": "\uFFFD0\uFFFD" }, + { + original_code: { + "phB": '{{ valueB // i18n(ph="PH B") }}', + "phA": '{{ valueA // i18n(ph="PH_A") }}' + } + } + ); + i18n_0 = MSG_EXTERNAL_8886186367501632276$$NAMED_INTERPOLATIONS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize` Named interpolation: ${"\uFFFD0\uFFFD"}:PH_A: Named interpolation with spaces: ${"\uFFFD1\uFFFD"}:PH_B: `; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.valueA)(ctx.valueB); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + Named interpolation: {{ valueA // i18n(ph="PH_A") }} + Named interpolation with spaces: {{ valueB // i18n(ph="PH B") }} +
    +`, + standalone: false + } + ] } - }); - $I18N_0$ = $MSG_EXTERNAL_7597881511811528589$$APP_SPEC_TS_0$; - } - else { - /* @ts-ignore */ - $I18N_0$ = $localize ` Named interpolation: ${"\uFFFD0\uFFFD"}:PH_A: Named interpolation with spaces: ${"\uFFFD1\uFFFD"}:PH_B: `; - } - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.valueA)(ctx.valueB); - $r3$.ɵɵi18nApply(1); - } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "named_interpolations.ts", + lineNumber: 13 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_elements.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_elements.js index 541ed5583cce..c0fb75b680f8 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_elements.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_elements.js @@ -1,35 +1,207 @@ -decls: 9, -vars: 5, -consts: () => { - __i18nMsg__(' My i18n block #{$interpolation} {$startTagSpan}Plain text in nested element{$closeTagSpan}', [['closeTagSpan', String.raw`\uFFFD/#2\uFFFD`], ['interpolation', String.raw`\uFFFD0\uFFFD`], ['startTagSpan', String.raw`\uFFFD#2\uFFFD`]], {original_code: {'closeTagSpan': '', 'interpolation': '{{ one }}', 'startTagSpan': ''}}, {}) - __i18nMsgWithPostprocess__(' My i18n block #{$interpolation} {$startTagDiv}{$startTagDiv}{$startTagSpan} More bindings in more nested element: {$interpolation_1} {$closeTagSpan}{$closeTagDiv}{$closeTagDiv}', [['closeTagDiv', String.raw`[\uFFFD/#7\uFFFD|\uFFFD/#6\uFFFD]`], ['closeTagSpan', String.raw`\uFFFD/#8\uFFFD`], ['interpolation', String.raw`\uFFFD0\uFFFD`], ['interpolation_1', String.raw`\uFFFD1\uFFFD`], ['startTagDiv', String.raw`[\uFFFD#6\uFFFD|\uFFFD#7\uFFFD]`], ['startTagSpan', String.raw`\uFFFD#8\uFFFD`]], {original_code: {'closeTagDiv': '

    ', 'closeTagSpan': '', 'interpolation': '{{ two | uppercase }}', 'interpolation_1': '{{ nestedInBlockTwo }}', 'startTagDiv': '
    ', 'startTagSpan': ''}}, {}, []) - return [ - $i18n_0$, - $i18n_1$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵelement(2, "span"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(3, "div"); - $r3$.ɵɵi18nStart(4, 1); - $r3$.ɵɵpipe(5, "uppercase"); - $r3$.ɵɵelementStart(6, "div")(7, "div"); - $r3$.ɵɵelement(8, "span"); - $r3$.ɵɵelementEnd()(); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵi18nExp(ctx.one); - $r3$.ɵɵi18nApply(1); - $r3$.ɵɵadvance(6); - $r3$.ɵɵi18nExp($r3$.ɵɵpipeBind1(5, 3, ctx.two))(ctx.nestedInBlockTwo); - $r3$.ɵɵi18nApply(4); - } +import { Component, NgModule, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; +export class UppercasePipe { + transform(v) {} + static ɵfac = function UppercasePipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || UppercasePipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "uppercase", + type: UppercasePipe, + pure: true, + standalone: false + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + UppercasePipe, + [ + { + type: Pipe, + args: [ + { + name: "uppercase", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class MyComponent { + one = 1; + two = 2; + nestedInBlockTwo = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 9, + vars: 5, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_882337278752123074$$NESTED_ELEMENTS_TS_0 = + /* @ts-ignore */ + goog.getMsg( + " My i18n block #{$interpolation} {$startTagSpan}Plain text in nested element{$closeTagSpan}", + { + "closeTagSpan": "\uFFFD/#2\uFFFD", + "interpolation": "\uFFFD0\uFFFD", + "startTagSpan": "\uFFFD#2\uFFFD" + }, + { + original_code: { + "closeTagSpan": "", + "interpolation": "{{ one }}", + "startTagSpan": "" + } + } + ); + i18n_0 = MSG_EXTERNAL_882337278752123074$$NESTED_ELEMENTS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize` My i18n block #${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Plain text in nested element${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_725745709163573690$$NESTED_ELEMENTS_TS_1 = + /* @ts-ignore */ + goog.getMsg( + " My i18n block #{$interpolation} {$startTagDiv}{$startTagDiv}{$startTagSpan} More bindings in more nested element: {$interpolation_1} {$closeTagSpan}{$closeTagDiv}{$closeTagDiv}", + { + "closeTagDiv": "[\uFFFD/#7\uFFFD|\uFFFD/#6\uFFFD]", + "closeTagSpan": "\uFFFD/#8\uFFFD", + "interpolation": "\uFFFD0\uFFFD", + "interpolation_1": "\uFFFD1\uFFFD", + "startTagDiv": "[\uFFFD#6\uFFFD|\uFFFD#7\uFFFD]", + "startTagSpan": "\uFFFD#8\uFFFD" + }, + { + original_code: { + "closeTagDiv": "
    ", + "closeTagSpan": "", + "interpolation": "{{ two | uppercase }}", + "interpolation_1": "{{ nestedInBlockTwo }}", + "startTagDiv": "
    ", + "startTagSpan": "" + } + } + ); + i18n_1 = MSG_EXTERNAL_725745709163573690$$NESTED_ELEMENTS_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize` My i18n block #${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"[\uFFFD#6\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_DIV:${"[\uFFFD#6\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_DIV:${"\uFFFD#8\uFFFD"}:START_TAG_SPAN: More bindings in more nested element: ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: ${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPAN:${"[\uFFFD/#7\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_DIV:${"[\uFFFD/#7\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_DIV:`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1); + return [i18n_0, i18n_1]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵelement(2, "span"); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(3, "div"); + i0.ɵɵi18nStart(4, 1); + i0.ɵɵpipe(5, "uppercase"); + i0.ɵɵelementStart(6, "div")(7, "div"); + i0.ɵɵelement(8, "span"); + i0.ɵɵelementEnd()(); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(ctx.one); + i0.ɵɵi18nApply(1); + i0.ɵɵadvance(6); + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(5, 3, ctx.two))(ctx.nestedInBlockTwo); + i0.ɵɵi18nApply(4); + } + }, + dependencies: [UppercasePipe], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + My i18n block #{{ one }} + Plain text in nested element +
    +
    + My i18n block #{{ two | uppercase }} +
    +
    + + More bindings in more nested element: {{ nestedInBlockTwo }} + +
    +
    +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "nested_elements.ts", + lineNumber: 31 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent, UppercasePipe] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, UppercasePipe] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_elements_with_i18n_attributes_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_elements_with_i18n_attributes_template.js index 4963b19e1958..0820533ec045 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_elements_with_i18n_attributes_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_elements_with_i18n_attributes_template.js @@ -1,48 +1,244 @@ -decls: 9, -vars: 7, -consts: () => { - __i18nMsg__('Span title {$interpolation} and {$interpolation_1}', [['interpolation', String.raw`\uFFFD0\uFFFD`], ['interpolation_1', String.raw`\uFFFD1\uFFFD`]], {original_code: {'interpolation': '{{ valueB }}', 'interpolation_1': '{{ valueC }}'}}, {}) - __i18nMsg__('Span title {$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ valueE }}'}}, {}) - __i18nMsg__(' My i18n block #1 with value: {$interpolation} {$startTagSpan} Plain text in nested element (block #1) {$closeTagSpan}',[['closeTagSpan', String.raw`\uFFFD/#2\uFFFD`], ['interpolation', String.raw`\uFFFD0\uFFFD`], ['startTagSpan', String.raw`\uFFFD#2\uFFFD`]], {original_code: {'closeTagSpan': '
    ', 'interpolation': '{{ valueA }}', 'startTagSpan': ''}}, {}) - __i18nMsg__(' My i18n block #2 with value {$interpolation} {$startTagSpan} Plain text in nested element (block #2) {$closeTagSpan}',[['closeTagSpan', String.raw`\uFFFD/#7\uFFFD`], ['interpolation', String.raw`\uFFFD0\uFFFD`], ['startTagSpan', String.raw`\uFFFD#7\uFFFD`]], {original_code: {'closeTagSpan': '', 'interpolation': '{{ valueD | uppercase }}', 'startTagSpan': ''}}, {}) - return [ - $i18n_0$, - $i18n_2$, - ["title", $i18n_1$], - ["title", $i18n_3$], - [__AttributeMarker.I18n__, "title"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵelementStart(2, "span", 4); - $r3$.ɵɵi18nAttributes(3, 2); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(4, "div"); - $r3$.ɵɵi18nStart(5, 1); - $r3$.ɵɵpipe(6, "uppercase"); - $r3$.ɵɵelementStart(7, "span", 4); - $r3$.ɵɵi18nAttributes(8, 3); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵi18nExp(ctx.valueB)(ctx.valueC); - $r3$.ɵɵi18nApply(3); - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.valueA); - $r3$.ɵɵi18nApply(1); - $r3$.ɵɵadvance(4); - $r3$.ɵɵi18nExp(ctx.valueE); - $r3$.ɵɵi18nApply(8); - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp($r3$.ɵɵpipeBind1(6, 5, ctx.valueD)); - $r3$.ɵɵi18nApply(5); - } +import { Component, NgModule, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; +export class UppercasePipe { + transform(v) {} + static ɵfac = function UppercasePipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || UppercasePipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "uppercase", + type: UppercasePipe, + pure: true, + standalone: false + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + UppercasePipe, + [ + { + type: Pipe, + args: [ + { + name: "uppercase", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class MyComponent { + valueA; + valueB; + valueC; + valueD; + valueE; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 9, + vars: 7, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4782264005467235841$$NESTED_ELEMENTS_WITH_I18N_ATTRIBUTES_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "Span title {$interpolation} and {$interpolation_1}", + { "interpolation": "\uFFFD0\uFFFD", "interpolation_1": "\uFFFD1\uFFFD" }, + { + original_code: { "interpolation": "{{ valueB }}", "interpolation_1": "{{ valueC }}" } + } + ); + i18n_0 = MSG_EXTERNAL_4782264005467235841$$NESTED_ELEMENTS_WITH_I18N_ATTRIBUTES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Span title ${"\uFFFD0\uFFFD"}:INTERPOLATION: and ${"\uFFFD1\uFFFD"}:INTERPOLATION_1:`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2719594642740200058$$NESTED_ELEMENTS_WITH_I18N_ATTRIBUTES_TS_1 = + /* @ts-ignore */ + goog.getMsg( + "Span title {$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ valueE }}" } } + ); + i18n_1 = MSG_EXTERNAL_2719594642740200058$$NESTED_ELEMENTS_WITH_I18N_ATTRIBUTES_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`Span title ${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_789713089942130201$$NESTED_ELEMENTS_WITH_I18N_ATTRIBUTES_TS_2 = + /* @ts-ignore */ + goog.getMsg( + " My i18n block #1 with value: {$interpolation} {$startTagSpan} Plain text in nested element (block #1) {$closeTagSpan}", + { + "closeTagSpan": "\uFFFD/#2\uFFFD", + "interpolation": "\uFFFD0\uFFFD", + "startTagSpan": "\uFFFD#2\uFFFD" + }, + { + original_code: { + "closeTagSpan": "", + "interpolation": "{{ valueA }}", + "startTagSpan": '' + } + } + ); + i18n_2 = MSG_EXTERNAL_789713089942130201$$NESTED_ELEMENTS_WITH_I18N_ATTRIBUTES_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize` My i18n block #1 with value: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN: Plain text in nested element (block #1) ${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`; + } + let i18n_3; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6932146024895341161$$NESTED_ELEMENTS_WITH_I18N_ATTRIBUTES_TS_3 = + /* @ts-ignore */ + goog.getMsg( + " My i18n block #2 with value {$interpolation} {$startTagSpan} Plain text in nested element (block #2) {$closeTagSpan}", + { + "closeTagSpan": "\uFFFD/#7\uFFFD", + "interpolation": "\uFFFD0\uFFFD", + "startTagSpan": "\uFFFD#7\uFFFD" + }, + { + original_code: { + "closeTagSpan": "", + "interpolation": "{{ valueD | uppercase }}", + "startTagSpan": '' + } + } + ); + i18n_3 = MSG_EXTERNAL_6932146024895341161$$NESTED_ELEMENTS_WITH_I18N_ATTRIBUTES_TS_3; + } else { + /* @ts-ignore */ + i18n_3 = $localize` My i18n block #2 with value ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#7\uFFFD"}:START_TAG_SPAN: Plain text in nested element (block #2) ${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPAN:`; + } + return [i18n_2, i18n_3, ["title", i18n_0], ["title", i18n_1], [6, "title"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵelementStart(2, "span", 4); + i0.ɵɵi18nAttributes(3, 2); + i0.ɵɵelementEnd(); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(4, "div"); + i0.ɵɵi18nStart(5, 1); + i0.ɵɵpipe(6, "uppercase"); + i0.ɵɵelementStart(7, "span", 4); + i0.ɵɵi18nAttributes(8, 3); + i0.ɵɵelementEnd(); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(ctx.valueB)(ctx.valueC); + i0.ɵɵi18nApply(3); + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.valueA); + i0.ɵɵi18nApply(1); + i0.ɵɵadvance(4); + i0.ɵɵi18nExp(ctx.valueE); + i0.ɵɵi18nApply(8); + i0.ɵɵadvance(); + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(6, 5, ctx.valueD)); + i0.ɵɵi18nApply(5); + } + }, + dependencies: [UppercasePipe], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + My i18n block #1 with value: {{ valueA }} + + Plain text in nested element (block #1) + +
    +
    + My i18n block #2 with value {{ valueD | uppercase }} + + Plain text in nested element (block #2) + +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "nested_elements_with_i18n_attributes.ts", + lineNumber: 29 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [UppercasePipe, MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [UppercasePipe, MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_ng-content.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_ng-content.js index 2a2147f283c3..85d084ad63f2 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_ng-content.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_ng-content.js @@ -1,20 +1,91 @@ -const $_c2$ = [[["special"]], "*"]; -const $_c3$ = ["special", "*"]; -… -decls: 4, -vars: 0, -consts: () => { - __i18nMsgWithPostprocess__('{$startTagNgContent}{$closeTagNgContent}{$startTagNgContent_1}{$closeTagNgContent}', [['closeTagNgContent', String.raw`[\uFFFD/#2\uFFFD|\uFFFD/#3\uFFFD]`], ['startTagNgContent', String.raw`\uFFFD#2\uFFFD`], ['startTagNgContent_1', String.raw`\uFFFD#3\uFFFD`]], {original_code: { 'closeTagNgContent': '', 'startTagNgContent': '', 'startTagNgContent_1': '' }}, {}, []) - return [$i18n_0$]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵprojectionDef($_c2$); - $r3$.ɵɵdomElementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵprojection(2); - $r3$.ɵɵprojection(3, 1); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵdomElementEnd(); - } +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +const _c0 = [[["special"]], "*"]; +const _c1 = ["special", "*"]; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + ngContentSelectors: _c1, + decls: 4, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1823079451302886188$$NESTED_NG_CONTENT_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$startTagNgContent}{$closeTagNgContent}{$startTagNgContent_1}{$closeTagNgContent}", + { + "closeTagNgContent": "[\uFFFD/#2\uFFFD|\uFFFD/#3\uFFFD]", + "startTagNgContent": "\uFFFD#2\uFFFD", + "startTagNgContent_1": "\uFFFD#3\uFFFD" + }, + { + original_code: { + "closeTagNgContent": "", + "startTagNgContent": '', + "startTagNgContent_1": "" + } + } + ); + i18n_0 = MSG_EXTERNAL_1823079451302886188$$NESTED_NG_CONTENT_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"\uFFFD#2\uFFFD"}:START_TAG_NG_CONTENT:${"[\uFFFD/#2\uFFFD|\uFFFD/#3\uFFFD]"}:CLOSE_TAG_NG_CONTENT:${"\uFFFD#3\uFFFD"}:START_TAG_NG_CONTENT_1:${"[\uFFFD/#2\uFFFD|\uFFFD/#3\uFFFD]"}:CLOSE_TAG_NG_CONTENT:`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0); + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵprojectionDef(_c0); + i0.ɵɵdomElementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵprojection(2); + i0.ɵɵprojection(3, 1); + i0.ɵɵi18nEnd(); + i0.ɵɵdomElementEnd(); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + + +
    +` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "nested_ng-content.ts", + lineNumber: 12 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_templates.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_templates.js index 32bb67c1de06..226be2e362e4 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_templates.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_templates.js @@ -1,38 +1,140 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelementStart(0, "div")(1, "div"); - $r3$.ɵɵi18nStart(2, 0); - $r3$.ɵɵelement(3, "div"); - $r3$.ɵɵpipe(4, "uppercase"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd()(); + i0.ɵɵelementStart(0, "div")(1, "div"); + i0.ɵɵi18nStart(2, 0); + i0.ɵɵelement(3, "div"); + i0.ɵɵpipe(4, "uppercase"); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd()(); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵadvance(4); - $r3$.ɵɵi18nExp($ctx_r0$.valueA)($r3$.ɵɵpipeBind1(4, 2, $ctx_r0$.valueB)); - $r3$.ɵɵi18nApply(2); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵadvance(4); + i0.ɵɵi18nExp(ctx_r0.valueA)(i0.ɵɵpipeBind1(4, 2, ctx_r0.valueB)); + i0.ɵɵi18nApply(2); } } -… -decls: 3, -vars: 1, -consts: () => { - __i18nMsg__(' Some other content {$interpolation} {$startTagDiv} More nested levels with bindings {$interpolation_1} {$closeTagDiv}', [['closeTagDiv', String.raw`\uFFFD/#3\uFFFD`], ['interpolation', String.raw`\uFFFD0\uFFFD`], ['interpolation_1', String.raw`\uFFFD1\uFFFD`], ['startTagDiv', String.raw`\uFFFD#3\uFFFD`]], {original_code: {'closeTagDiv': '
    ', 'interpolation': '{{ valueA }}', 'interpolation_1': '{{ valueB | uppercase }}', 'startTagDiv': '
    '}}, {}) - return [ - $i18n_0$, - [__AttributeMarker.Template__, "ngIf"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵtext(1, " Some content "); - $r3$.ɵɵtemplate(2, MyComponent_div_2_Template, 5, 4, "div", 1); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵproperty("ngIf", ctx.visible); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_1048067148715869345$$NESTED_TEMPLATES_TS_0 = + /* @ts-ignore */ + goog.getMsg( + " Some other content {$interpolation} {$startTagDiv} More nested levels with bindings {$interpolation_1} {$closeTagDiv}", + { + "closeTagDiv": "\uFFFD/#3\uFFFD", + "interpolation": "\uFFFD0\uFFFD", + "interpolation_1": "\uFFFD1\uFFFD", + "startTagDiv": "\uFFFD#3\uFFFD" + }, + { + original_code: { + "closeTagDiv": "
    ", + "interpolation": "{{ valueA }}", + "interpolation_1": "{{ valueB | uppercase }}", + "startTagDiv": "
    " + } + } + ); + i18n_0 = MSG_EXTERNAL_1048067148715869345$$NESTED_TEMPLATES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize` Some other content ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#3\uFFFD"}:START_TAG_DIV: More nested levels with bindings ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: ${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`; + } + return [i18n_0, [4, "ngIf"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵtext(1, " Some content "); + i0.ɵɵtemplate(2, MyComponent_div_2_Template, 5, 4, "div", 1); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵproperty("ngIf", ctx.visible); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + Some content +
    +
    + Some other content {{ valueA }} +
    + More nested levels with bindings {{ valueB | uppercase }} +
    +
    +
    +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "nested_templates.ts", + lineNumber: 20 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_templates_context.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_templates_context.js index cba8347ab062..c4223ced37d7 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_templates_context.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/nested_templates_context.js @@ -1,74 +1,208 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_2_div_4_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 2); - $r3$.ɵɵelementStart(1, "div"); - $r3$.ɵɵelement(2, "div"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 2); + i0.ɵɵelementStart(1, "div"); + i0.ɵɵelement(2, "div"); + i0.ɵɵelementEnd(); + i0.ɵɵi18nEnd(); } if (rf & 2) { - const $ctx_r2$ = $r3$.ɵɵnextContext(2); - $r3$.ɵɵadvance(2); - $r3$.ɵɵi18nExp($ctx_r2$.valueC)($ctx_r2$.valueD); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(2); + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(ctx_r0.valueC)(ctx_r0.valueD); + i0.ɵɵi18nApply(0); } } function MyComponent_div_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 1); - $r3$.ɵɵelementStart(1, "div")(2, "div"); - $r3$.ɵɵpipe(3, "uppercase"); - $r3$.ɵɵtemplate(4, MyComponent_div_2_div_4_Template, 3, 2, "div", 1); - $r3$.ɵɵelementEnd()(); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 1); + i0.ɵɵelementStart(1, "div")(2, "div"); + i0.ɵɵpipe(3, "uppercase"); + i0.ɵɵtemplate(4, MyComponent_div_2_div_4_Template, 3, 2, "div", 1); + i0.ɵɵelementEnd()(); + i0.ɵɵi18nEnd(); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵadvance(4); - $r3$.ɵɵproperty("ngIf", $ctx_r0$.exists); - $r3$.ɵɵi18nExp($ctx_r0$.valueA)($r3$.ɵɵpipeBind1(3, 3, $ctx_r0$.valueB)); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵadvance(4); + i0.ɵɵproperty("ngIf", ctx_r0.exists); + i0.ɵɵi18nExp(ctx_r0.valueA)(i0.ɵɵpipeBind1(3, 3, ctx_r0.valueB)); + i0.ɵɵi18nApply(0); } } -… function MyComponent_div_3_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 3); - $r3$.ɵɵelementStart(1, "div"); - $r3$.ɵɵelement(2, "div"); - $r3$.ɵɵpipe(3, "uppercase"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 3); + i0.ɵɵelementStart(1, "div"); + i0.ɵɵelement(2, "div"); + i0.ɵɵpipe(3, "uppercase"); + i0.ɵɵelementEnd(); + i0.ɵɵi18nEnd(); } if (rf & 2) { - const $ctx_r1$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵadvance(3); - $r3$.ɵɵi18nExp($ctx_r1$.valueE + $ctx_r1$.valueF)($r3$.ɵɵpipeBind1(3, 2, $ctx_r1$.valueG)); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵadvance(3); + i0.ɵɵi18nExp(ctx_r0.valueE + ctx_r0.valueF)(i0.ɵɵpipeBind1(3, 2, ctx_r0.valueG)); + i0.ɵɵi18nApply(0); } } -… -decls: 4, -vars: 2, -consts: () => { - __i18nMsgWithPostprocess__(' Some content {$startTagDiv_2} Some other content {$interpolation} {$startTagDiv} More nested levels with bindings {$interpolation_1} {$startTagDiv_1} Content inside sub-template {$interpolation_2} {$startTagDiv} Bottom level element {$interpolation_3} {$closeTagDiv}{$closeTagDiv}{$closeTagDiv}{$closeTagDiv}{$startTagDiv_3} Some other content {$interpolation_4} {$startTagDiv} More nested levels with bindings {$interpolation_5} {$closeTagDiv}{$closeTagDiv}', [['closeTagDiv', String.raw`[\uFFFD/#2:2\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*4:2\uFFFD|\uFFFD/#2:1\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#2:3\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*3:3\uFFFD]`], ['interpolation', String.raw`\uFFFD0:1\uFFFD`], ['interpolation_1', String.raw`\uFFFD1:1\uFFFD`], ['interpolation_2', String.raw`\uFFFD0:2\uFFFD`], ['interpolation_3', String.raw`\uFFFD1:2\uFFFD`], ['interpolation_4', String.raw`\uFFFD0:3\uFFFD`], ['interpolation_5', String.raw`\uFFFD1:3\uFFFD`], ['startTagDiv', String.raw`[\uFFFD#2:1\uFFFD|\uFFFD#2:2\uFFFD|\uFFFD#2:3\uFFFD]`], ['startTagDiv_1', String.raw`\uFFFD*4:2\uFFFD\uFFFD#1:2\uFFFD`], ['startTagDiv_2', String.raw`\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD`], ['startTagDiv_3', String.raw`\uFFFD*3:3\uFFFD\uFFFD#1:3\uFFFD`]], {original_code: {'closeTagDiv': '
    ', 'interpolation': '{{ valueA }}', 'interpolation_1': '{{ valueB | uppercase }}', 'interpolation_2': '{{ valueC }}', 'interpolation_3': '{{ valueD }}', 'interpolation_4': '{{ valueE + valueF }}', 'interpolation_5': '{{ valueG | uppercase }}', 'startTagDiv': '
    ', 'startTagDiv_1': '
    ', 'startTagDiv_2': '
    ', 'startTagDiv_3': '
    ',}}, {}, []) - return [ - $i18n_0$, - [__AttributeMarker.Template__, "ngIf"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵtemplate(2, MyComponent_div_2_Template, 5, 5, "div", 1)(3, MyComponent_div_3_Template, 4, 4, "div", 1); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵproperty("ngIf", ctx.visible); - $r3$.ɵɵadvance(); - $r3$.ɵɵproperty("ngIf", !ctx.visible); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 4, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4021381850553435020$$NESTED_TEMPLATES_CONTEXT_TS_0 = + /* @ts-ignore */ + goog.getMsg( + " Some content {$startTagDiv_2} Some other content {$interpolation} {$startTagDiv} More nested levels with bindings {$interpolation_1} {$startTagDiv_1} Content inside sub-template {$interpolation_2} {$startTagDiv} Bottom level element {$interpolation_3} {$closeTagDiv}{$closeTagDiv}{$closeTagDiv}{$closeTagDiv}{$startTagDiv_3} Some other content {$interpolation_4} {$startTagDiv} More nested levels with bindings {$interpolation_5} {$closeTagDiv}{$closeTagDiv}", + { + "closeTagDiv": + "[\uFFFD/#2:2\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*4:2\uFFFD|\uFFFD/#2:1\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#2:3\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*3:3\uFFFD]", + "interpolation": "\uFFFD0:1\uFFFD", + "interpolation_1": "\uFFFD1:1\uFFFD", + "interpolation_2": "\uFFFD0:2\uFFFD", + "interpolation_3": "\uFFFD1:2\uFFFD", + "interpolation_4": "\uFFFD0:3\uFFFD", + "interpolation_5": "\uFFFD1:3\uFFFD", + "startTagDiv": "[\uFFFD#2:1\uFFFD|\uFFFD#2:2\uFFFD|\uFFFD#2:3\uFFFD]", + "startTagDiv_1": "\uFFFD*4:2\uFFFD\uFFFD#1:2\uFFFD", + "startTagDiv_2": "\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD", + "startTagDiv_3": "\uFFFD*3:3\uFFFD\uFFFD#1:3\uFFFD" + }, + { + original_code: { + "closeTagDiv": "
    ", + "interpolation": "{{ valueA }}", + "interpolation_1": "{{ valueB | uppercase }}", + "interpolation_2": "{{ valueC }}", + "interpolation_3": "{{ valueD }}", + "interpolation_4": "{{ valueE + valueF }}", + "interpolation_5": "{{ valueG | uppercase }}", + "startTagDiv": "
    ", + "startTagDiv_1": '
    ', + "startTagDiv_2": '
    ', + "startTagDiv_3": '
    ' + } + } + ); + i18n_0 = MSG_EXTERNAL_4021381850553435020$$NESTED_TEMPLATES_CONTEXT_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize` Some content ${"\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD"}:START_TAG_DIV_2: Some other content ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD#2:1\uFFFD|\uFFFD#2:2\uFFFD|\uFFFD#2:3\uFFFD]"}:START_TAG_DIV: More nested levels with bindings ${"\uFFFD1:1\uFFFD"}:INTERPOLATION_1: ${"\uFFFD*4:2\uFFFD\uFFFD#1:2\uFFFD"}:START_TAG_DIV_1: Content inside sub-template ${"\uFFFD0:2\uFFFD"}:INTERPOLATION_2: ${"[\uFFFD#2:1\uFFFD|\uFFFD#2:2\uFFFD|\uFFFD#2:3\uFFFD]"}:START_TAG_DIV: Bottom level element ${"\uFFFD1:2\uFFFD"}:INTERPOLATION_3: ${"[\uFFFD/#2:2\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*4:2\uFFFD|\uFFFD/#2:1\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#2:3\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*3:3\uFFFD]"}:CLOSE_TAG_DIV:${"[\uFFFD/#2:2\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*4:2\uFFFD|\uFFFD/#2:1\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#2:3\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*3:3\uFFFD]"}:CLOSE_TAG_DIV:${"[\uFFFD/#2:2\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*4:2\uFFFD|\uFFFD/#2:1\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#2:3\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*3:3\uFFFD]"}:CLOSE_TAG_DIV:${"[\uFFFD/#2:2\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*4:2\uFFFD|\uFFFD/#2:1\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#2:3\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*3:3\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD*3:3\uFFFD\uFFFD#1:3\uFFFD"}:START_TAG_DIV_3: Some other content ${"\uFFFD0:3\uFFFD"}:INTERPOLATION_4: ${"[\uFFFD#2:1\uFFFD|\uFFFD#2:2\uFFFD|\uFFFD#2:3\uFFFD]"}:START_TAG_DIV: More nested levels with bindings ${"\uFFFD1:3\uFFFD"}:INTERPOLATION_5: ${"[\uFFFD/#2:2\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*4:2\uFFFD|\uFFFD/#2:1\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#2:3\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*3:3\uFFFD]"}:CLOSE_TAG_DIV:${"[\uFFFD/#2:2\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*4:2\uFFFD|\uFFFD/#2:1\uFFFD|\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#2:3\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*3:3\uFFFD]"}:CLOSE_TAG_DIV:`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0); + return [i18n_0, [4, "ngIf"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵtemplate(2, MyComponent_div_2_Template, 5, 5, "div", 1)( + 3, + MyComponent_div_3_Template, + 4, + 4, + "div", + 1 + ); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵproperty("ngIf", ctx.visible); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", !ctx.visible); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + Some content +
    + Some other content {{ valueA }} +
    + More nested levels with bindings {{ valueB | uppercase }} +
    + Content inside sub-template {{ valueC }} +
    + Bottom level element {{ valueD }} +
    +
    +
    +
    +
    + Some other content {{ valueE + valueF }} +
    + More nested levels with bindings {{ valueG | uppercase }} +
    +
    +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "nested_templates_context.ts", + lineNumber: 30 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/ng_content_with_i18n_children.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/ng_content_with_i18n_children.js index 757dfbea99f7..2ade4151a675 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/ng_content_with_i18n_children.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/ng_content_with_i18n_children.js @@ -1,31 +1,82 @@ -const $_c0$ = ["*"]; - +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +const _c0 = ["*"]; function MyComponent_ProjectionFallback_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵdomElementStart(0, "span"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵdomElement(2, "b"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(0, "span"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵdomElement(2, "b"); + i0.ɵɵi18nEnd(); + i0.ɵɵdomElementEnd(); } } - -… - -$r3$.ɵɵdefineComponent({ - … - ngContentSelectors: $_c0$, - decls: 2, - vars: 0, - consts: () => { - __i18nMsg__('a {$startBoldText}b{$closeBoldText} c', [['closeBoldText', String.raw`\uFFFD/#2\uFFFD`], ['startBoldText', String.raw`\uFFFD#2\uFFFD`]], {original_code: {"closeBoldText": "", "startBoldText": ""}}, {id: 'MY_ID'}) - return [$i18n_0$]; - }, - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵprojectionDef(); - $r3$.ɵɵprojection(0, 0, null, MyComponent_ProjectionFallback_0_Template, 3, 0); - } - }, - … -}); +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + ngContentSelectors: _c0, + decls: 2, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_MY_ID$$NG_CONTENT_WITH_I18N_CHILDREN_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "a {$startBoldText}b{$closeBoldText} c", + { "closeBoldText": "\uFFFD/#2\uFFFD", "startBoldText": "\uFFFD#2\uFFFD" }, + { original_code: { "closeBoldText": "", "startBoldText": "" } } + ); + i18n_0 = MSG_EXTERNAL_MY_ID$$NG_CONTENT_WITH_I18N_CHILDREN_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`:@@MY_ID:a ${"\uFFFD#2\uFFFD"}:START_BOLD_TEXT:b${"\uFFFD/#2\uFFFD"}:CLOSE_BOLD_TEXT: c`; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵprojectionDef(); + i0.ɵɵprojection(0, 0, null, MyComponent_ProjectionFallback_0_Template, 3, 0); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + + a b c + + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng_content_with_i18n_children.ts", + lineNumber: 11 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/plain_text_messages.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/plain_text_messages.js index 69e0e478ccdd..2b1868051c48 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/plain_text_messages.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/plain_text_messages.js @@ -1,29 +1,135 @@ -consts: () => { - __i18nMsg__('My i18n block #1', [], {}, {}) - __i18nMsg__('My i18n block #2', [], {}, {}) - __i18nMsg__('My i18n block #3', [], {}, {}) - return [ - $i18n_0$, - $i18n_1$, - $i18n_2$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(2, "div"); - $r3$.ɵɵtext(3, "My non-i18n block #1"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(4, "div"); - $r3$.ɵɵi18n(5, 1); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(6, "div"); - $r3$.ɵɵtext(7, "My non-i18n block #2"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(8, "div"); - $r3$.ɵɵi18n(9, 2); - $r3$.ɵɵelementEnd(); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 10, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4890179241114413722$$PLAIN_TEXT_MESSAGES_TS_0 = + /* @ts-ignore */ + goog.getMsg("My i18n block #1"); + i18n_0 = MSG_EXTERNAL_4890179241114413722$$PLAIN_TEXT_MESSAGES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`My i18n block #1`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2413150872298537152$$PLAIN_TEXT_MESSAGES_TS_1 = + /* @ts-ignore */ + goog.getMsg("My i18n block #2"); + i18n_1 = MSG_EXTERNAL_2413150872298537152$$PLAIN_TEXT_MESSAGES_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`My i18n block #2`; + } + let i18n_2; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5023003143537152794$$PLAIN_TEXT_MESSAGES_TS_2 = + /* @ts-ignore */ + goog.getMsg("My i18n block #3"); + i18n_2 = MSG_EXTERNAL_5023003143537152794$$PLAIN_TEXT_MESSAGES_TS_2; + } else { + /* @ts-ignore */ + i18n_2 = $localize`My i18n block #3`; + } + return [i18n_0, i18n_1, i18n_2]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(2, "div"); + i0.ɵɵtext(3, "My non-i18n block #1"); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(4, "div"); + i0.ɵɵi18n(5, 1); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(6, "div"); + i0.ɵɵtext(7, "My non-i18n block #2"); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(8, "div"); + i0.ɵɵi18n(9, 2); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    My i18n block #1
    +
    My non-i18n block #1
    +
    My i18n block #2
    +
    My non-i18n block #2
    +
    My i18n block #3
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "plain_text_messages.ts", + lineNumber: 14 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/self_closing_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/self_closing_template.js index eeff85b07cbd..2bd91f385db0 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/self_closing_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/self_closing_template.js @@ -1,44 +1,134 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_img_1_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelement(0, "img", 1); - } + if (rf & 1) { + i0.ɵɵelement(0, "img", 1); } - … - function MyComponent_img_2_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "img", 4); - $r3$.ɵɵi18nAttributes(1, 0); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - const $ctx_r1$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵi18nExp($ctx_r1$.id); - $r3$.ɵɵi18nApply(1); - } +} +function MyComponent_img_2_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "img", 4); + i0.ɵɵi18nAttributes(1, 0); + i0.ɵɵelementEnd(); } - … - decls: 3, - vars: 2, - consts: () => { - __i18nMsg__('App logo #{$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ id }}'}}, {}) - return [ - ["title", $i18n_0$], - ["src", "logo.png"], - ["src", "logo.png", __AttributeMarker.Template__, "ngIf"], - ["src", "logo.png", __AttributeMarker.Bindings__, "title", - __AttributeMarker.Template__, "ngIf"], - ["src", "logo.png", __AttributeMarker.I18n__, "title"] - ]; - }, - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelement(0, "img", 1); - $r3$.ɵɵtemplate(1, MyComponent_img_1_Template, 1, 0, "img", 2)(2, MyComponent_img_2_Template, 2, 1, "img", 3); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵproperty("ngIf", ctx.visible); - $r3$.ɵɵadvance(); - $r3$.ɵɵproperty("ngIf", ctx.visible); - } + if (rf & 2) { + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵi18nExp(ctx_r0.id); + i0.ɵɵi18nApply(1); } +} +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2367729185105559721$$SELF_CLOSING_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "App logo #{$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ id }}" } } + ); + i18n_0 = MSG_EXTERNAL_2367729185105559721$$SELF_CLOSING_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`App logo #${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + return [ + ["title", i18n_0], + ["src", "logo.png"], + ["src", "logo.png", 4, "ngIf"], + ["src", "logo.png", 3, "title", 4, "ngIf"], + ["src", "logo.png", 6, "title"] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "img", 1); + i0.ɵɵtemplate(1, MyComponent_img_1_Template, 1, 0, "img", 2)( + 2, + MyComponent_img_2_Template, + 2, + 1, + "img", + 3 + ); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx.visible); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx.visible); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + + + + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "self_closing.ts", + lineNumber: 12 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/bare_icus.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/bare_icus.js index 16c171911686..1ee50a02668a 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/bare_icus.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/bare_icus.js @@ -1,34 +1,126 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18n(0, 1); + i0.ɵɵi18n(0, 1); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵi18nExp($ctx_r0$.gender); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵi18nExp(ctx_r0.gender); + i0.ɵɵi18nApply(0); } } -… -decls: 3, -vars: 1, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - __i18nIcuMsg__('{VAR_SELECT, select, male {male} female {female} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - return [ - $i18n_0$, - $i18n_1$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 1, 1, "ng-template"); - $r3$.ɵɵelementContainerStart(1); - $r3$.ɵɵi18n(2, 0); - $r3$.ɵɵelementContainerEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵi18nExp(ctx.age); - $r3$.ɵɵi18nApply(2); - } +export class MyComponent { + age = 0; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8806993169187953163$$BARE_ICUS_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}"); + i18n_0 = MSG_EXTERNAL_8806993169187953163$$BARE_ICUS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7842238767399919809$$BARE_ICUS_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, male {male} female {female} other {other}}"); + i18n_1 = MSG_EXTERNAL_7842238767399919809$$BARE_ICUS_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, male {male} female {female} other {other}}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + return [i18n_0, i18n_1]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 1, 1, "ng-template"); + i0.ɵɵelementContainerStart(1); + i0.ɵɵi18n(2, 0); + i0.ɵɵelementContainerEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(ctx.age); + i0.ɵɵi18nApply(2); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + {gender, select, male {male} female {female} other {other}} + {age, select, 10 {ten} 20 {twenty} other {other}} +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "bare_icus.ts", + lineNumber: 11 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/child_elements.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/child_elements.js index fa86f012a422..92f61cd6d62c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/child_elements.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/child_elements.js @@ -1,37 +1,171 @@ +import { Component, NgModule, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18n(0, 0, 1); - $r3$.ɵɵpipe(1, "uppercase"); + i0.ɵɵi18n(0, 0, 1); + i0.ɵɵpipe(1, "uppercase"); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp($r3$.ɵɵpipeBind1(1, 1, $ctx_r0$.valueA)); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵadvance(); + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(1, 1, ctx_r0.valueA)); + i0.ɵɵi18nApply(0); } } -… -decls: 5, -vars: 3, -consts: () => { - __i18nMsg__('{$startTagNgTemplate}Template content: {$interpolation}{$closeTagNgTemplate}{$startTagNgContainer}Container content: {$interpolation_1}{$closeTagNgContainer}', [['closeTagNgContainer', String.raw`\uFFFD/#3\uFFFD`], ['closeTagNgTemplate', String.raw`\uFFFD/*2:1\uFFFD`], ['interpolation', String.raw`\uFFFD0:1\uFFFD`], ['interpolation_1', String.raw`\uFFFD0\uFFFD`], ['startTagNgContainer', String.raw`\uFFFD#3\uFFFD`], ['startTagNgTemplate', String.raw`\uFFFD*2:1\uFFFD`]], {original_code: {'closeTagNgContainer': '', 'closeTagNgTemplate': '', 'interpolation': '{{ valueA | uppercase }}', 'interpolation_1': '{{ valueB | uppercase }}', 'startTagNgContainer': '', 'startTagNgTemplate': '',}}, {}) - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵtemplate(2, MyComponent_ng_template_2_Template, 2, 3, "ng-template"); - $r3$.ɵɵelementContainer(3); - $r3$.ɵɵpipe(4, "uppercase"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(4); - $r3$.ɵɵi18nExp($r3$.ɵɵpipeBind1(4, 1, ctx.valueB)); - $r3$.ɵɵi18nApply(1); - } +export class UppercasePipe { + transform(v) {} + static ɵfac = function UppercasePipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || UppercasePipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "uppercase", + type: UppercasePipe, + pure: true, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + UppercasePipe, + [ + { + type: Pipe, + args: [ + { + name: "uppercase", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class MyComponent { + valueA = ""; + valueB = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 5, + vars: 3, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_321671710121172402$$CHILD_ELEMENTS_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$startTagNgTemplate}Template content: {$interpolation}{$closeTagNgTemplate}{$startTagNgContainer}Container content: {$interpolation_1}{$closeTagNgContainer}", + { + "closeTagNgContainer": "\uFFFD/#3\uFFFD", + "closeTagNgTemplate": "\uFFFD/*2:1\uFFFD", + "interpolation": "\uFFFD0:1\uFFFD", + "interpolation_1": "\uFFFD0\uFFFD", + "startTagNgContainer": "\uFFFD#3\uFFFD", + "startTagNgTemplate": "\uFFFD*2:1\uFFFD" + }, + { + original_code: { + "closeTagNgContainer": "", + "closeTagNgTemplate": "", + "interpolation": "{{ valueA | uppercase }}", + "interpolation_1": "{{ valueB | uppercase }}", + "startTagNgContainer": "", + "startTagNgTemplate": "" + } + } + ); + i18n_0 = MSG_EXTERNAL_321671710121172402$$CHILD_ELEMENTS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"\uFFFD*2:1\uFFFD"}:START_TAG_NG_TEMPLATE:Template content: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"\uFFFD/*2:1\uFFFD"}:CLOSE_TAG_NG_TEMPLATE:${"\uFFFD#3\uFFFD"}:START_TAG_NG_CONTAINER:Container content: ${"\uFFFD0\uFFFD"}:INTERPOLATION_1:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵtemplate(2, MyComponent_ng_template_2_Template, 2, 3, "ng-template"); + i0.ɵɵelementContainer(3); + i0.ɵɵpipe(4, "uppercase"); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(4); + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(4, 1, ctx.valueB)); + i0.ɵɵi18nApply(1); + } + }, + dependencies: [UppercasePipe], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + Template content: {{ valueA | uppercase }} + Container content: {{ valueB | uppercase }} +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "child_elements.ts", + lineNumber: 21 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent, UppercasePipe] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, UppercasePipe] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/duplicate_content.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/duplicate_content.js index 8dbb61d3e991..aaa93c806fdb 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/duplicate_content.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/duplicate_content.js @@ -1,4 +1,110 @@ -// NOTE: TODO(FW-635): currently we generate unique consts for each i18n block even though it might contain the same content. This should be optimized by translation statements caching, that can be implemented in the future. -__i18nMsg__('Test', [], {}, {}) -__i18nMsg__('Test', [], {}, {}) - +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 4, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6563391987554512024$$DUPLICATE_CONTENT_TS_0 = + /* @ts-ignore */ + goog.getMsg("Test"); + i18n_0 = MSG_EXTERNAL_6563391987554512024$$DUPLICATE_CONTENT_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Test`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_6563391987554512024$$DUPLICATE_CONTENT_TS_1 = + /* @ts-ignore */ + goog.getMsg("Test"); + i18n_1 = MSG_EXTERNAL_6563391987554512024$$DUPLICATE_CONTENT_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`Test`; + } + return [i18n_0, i18n_1]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(2, "div"); + i0.ɵɵi18n(3, 1); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    Test
    +
    Test
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "duplicate_content.ts", + lineNumber: 11 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/icus.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/icus.js index f061aa819956..249689bbdf87 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/icus.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/icus.js @@ -1,34 +1,126 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18n(0, 1); + i0.ɵɵi18n(0, 1); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵi18nExp($ctx_r0$.age); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵi18nExp(ctx_r0.age); + i0.ɵɵi18nApply(0); } } -… -decls: 3, -vars: 1, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT, select, male {male} female {female} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - __i18nIcuMsg__('{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - return [ - $i18n_0$, - $i18n_1$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementContainerStart(0); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementContainerEnd(); - $r3$.ɵɵtemplate(2, MyComponent_ng_template_2_Template, 1, 1, "ng-template"); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.gender); - $r3$.ɵɵi18nApply(1); - } +export class MyComponent { + gender = "female"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7842238767399919809$$ICUS_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, male {male} female {female} other {other}}"); + i18n_0 = MSG_EXTERNAL_7842238767399919809$$ICUS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, male {male} female {female} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8806993169187953163$$ICUS_TS_1 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}"); + i18n_1 = MSG_EXTERNAL_8806993169187953163$$ICUS_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + return [i18n_0, i18n_1]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementContainerStart(0); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementContainerEnd(); + i0.ɵɵtemplate(2, MyComponent_ng_template_2_Template, 1, 1, "ng-template"); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.gender); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + {gender, select, male {male} female {female} other {other}} + {age, select, 10 {ten} 20 {twenty} other {other}} +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "icus.ts", + lineNumber: 11 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/nested_templates.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/nested_templates.js index da899dcde447..4fcc5c9be5c8 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/nested_templates.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/nested_templates.js @@ -1,56 +1,167 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_ng_template_2_ng_template_2_ng_template_1_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18n(0, 0, 3); + i0.ɵɵi18n(0, 0, 3); } if (rf & 2) { - const $ctx_r2$ = $r3$.ɵɵnextContext(3); - $r3$.ɵɵi18nExp($ctx_r2$.valueC); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(3); + i0.ɵɵi18nExp(ctx_r0.valueC); + i0.ɵɵi18nApply(0); } } function MyComponent_ng_template_2_ng_template_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 2); - $r3$.ɵɵtemplate(1, MyComponent_ng_template_2_ng_template_2_ng_template_1_Template, 1, 1, "ng-template"); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 2); + i0.ɵɵtemplate( + 1, + MyComponent_ng_template_2_ng_template_2_ng_template_1_Template, + 1, + 1, + "ng-template" + ); + i0.ɵɵi18nEnd(); } if (rf & 2) { - const $ctx_r1$ = $r3$.ɵɵnextContext(2); - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp($ctx_r1$.valueB); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(2); + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx_r0.valueB); + i0.ɵɵi18nApply(0); } } -… function MyComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 0, 1); - $r3$.ɵɵpipe(1, "uppercase"); - $r3$.ɵɵtemplate(2, MyComponent_ng_template_2_ng_template_2_Template, 2, 1, "ng-template"); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 0, 1); + i0.ɵɵpipe(1, "uppercase"); + i0.ɵɵtemplate(2, MyComponent_ng_template_2_ng_template_2_Template, 2, 1, "ng-template"); + i0.ɵɵi18nEnd(); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵadvance(2); - $r3$.ɵɵi18nExp($r3$.ɵɵpipeBind1(1, 1, $ctx_r0$.valueA)); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(1, 1, ctx_r0.valueA)); + i0.ɵɵi18nApply(0); } } -… -decls: 3, -vars: 0, -consts: () => { - __i18nMsgWithPostprocess__('{$startTagNgTemplate} Template A: {$interpolation} {$startTagNgTemplate} Template B: {$interpolation_1} {$startTagNgTemplate} Template C: {$interpolation_2} {$closeTagNgTemplate}{$closeTagNgTemplate}{$closeTagNgTemplate}', [['closeTagNgTemplate', String.raw`[\uFFFD/*1:3\uFFFD|\uFFFD/*2:2\uFFFD|\uFFFD/*2:1\uFFFD]`], ['interpolation', String.raw`\uFFFD0:1\uFFFD`], ['interpolation_1', String.raw`\uFFFD0:2\uFFFD`], ['interpolation_2', String.raw`\uFFFD0:3\uFFFD`], ['startTagNgTemplate', String.raw`[\uFFFD*2:1\uFFFD|\uFFFD*2:2\uFFFD|\uFFFD*1:3\uFFFD]`]], {original_code: {'closeTagNgTemplate': '
    ', 'interpolation': '{{ valueA | uppercase }}', 'interpolation_1': '{{ valueB }}', 'interpolation_2': '{{ valueC }}', 'startTagNgTemplate': ''}}, {}, []) - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵtemplate(2, MyComponent_ng_template_2_Template, 3, 3, "ng-template"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4054819503343192023$$NESTED_TEMPLATES_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$startTagNgTemplate} Template A: {$interpolation} {$startTagNgTemplate} Template B: {$interpolation_1} {$startTagNgTemplate} Template C: {$interpolation_2} {$closeTagNgTemplate}{$closeTagNgTemplate}{$closeTagNgTemplate}", + { + "closeTagNgTemplate": "[\uFFFD/*1:3\uFFFD|\uFFFD/*2:2\uFFFD|\uFFFD/*2:1\uFFFD]", + "interpolation": "\uFFFD0:1\uFFFD", + "interpolation_1": "\uFFFD0:2\uFFFD", + "interpolation_2": "\uFFFD0:3\uFFFD", + "startTagNgTemplate": "[\uFFFD*2:1\uFFFD|\uFFFD*2:2\uFFFD|\uFFFD*1:3\uFFFD]" + }, + { + original_code: { + "closeTagNgTemplate": "", + "interpolation": "{{ valueA | uppercase }}", + "interpolation_1": "{{ valueB }}", + "interpolation_2": "{{ valueC }}", + "startTagNgTemplate": "" + } + } + ); + i18n_0 = MSG_EXTERNAL_4054819503343192023$$NESTED_TEMPLATES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"[\uFFFD*2:1\uFFFD|\uFFFD*2:2\uFFFD|\uFFFD*1:3\uFFFD]"}:START_TAG_NG_TEMPLATE: Template A: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD*2:1\uFFFD|\uFFFD*2:2\uFFFD|\uFFFD*1:3\uFFFD]"}:START_TAG_NG_TEMPLATE: Template B: ${"\uFFFD0:2\uFFFD"}:INTERPOLATION_1: ${"[\uFFFD*2:1\uFFFD|\uFFFD*2:2\uFFFD|\uFFFD*1:3\uFFFD]"}:START_TAG_NG_TEMPLATE: Template C: ${"\uFFFD0:3\uFFFD"}:INTERPOLATION_2: ${"[\uFFFD/*1:3\uFFFD|\uFFFD/*2:2\uFFFD|\uFFFD/*2:1\uFFFD]"}:CLOSE_TAG_NG_TEMPLATE:${"[\uFFFD/*1:3\uFFFD|\uFFFD/*2:2\uFFFD|\uFFFD/*2:1\uFFFD]"}:CLOSE_TAG_NG_TEMPLATE:${"[\uFFFD/*1:3\uFFFD|\uFFFD/*2:2\uFFFD|\uFFFD/*2:1\uFFFD]"}:CLOSE_TAG_NG_TEMPLATE:`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0); + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵtemplate(2, MyComponent_ng_template_2_Template, 3, 3, "ng-template"); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + + Template A: {{ valueA | uppercase }} + + Template B: {{ valueB }} + + Template C: {{ valueC }} + + + +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "nested_templates.ts", + lineNumber: 20 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/ng-container_with_non_text_content.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/ng-container_with_non_text_content.js index de1e90e0e339..8263482a2971 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/ng-container_with_non_text_content.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/ng-container_with_non_text_content.js @@ -1,19 +1,115 @@ -decls: 4, -vars: 0, -consts: () => { - __i18nMsg__(' Hello {$startTagNgContainer}there {$startTagStrong}!{$closeTagStrong}{$closeTagNgContainer}', [['closeTagNgContainer', String.raw`\uFFFD/#2\uFFFD`], ['closeTagStrong', String.raw`\uFFFD/#3\uFFFD`], ['startTagNgContainer', String.raw`\uFFFD#2\uFFFD`], ['startTagStrong', String.raw`\uFFFD#3\uFFFD`]], {original_code: {'closeTagNgContainer': '
    ', 'closeTagStrong': '', 'startTagNgContainer': '', 'startTagStrong': ''}}, {}) - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵelementContainerStart(2); - $r3$.ɵɵelement(3, "strong"); - $r3$.ɵɵelementContainerEnd(); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 4, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5421724224363734696$$NG_CONTAINER_WITH_NON_TEXT_CONTENT_TS_0 = + /* @ts-ignore */ + goog.getMsg( + " Hello {$startTagNgContainer}there {$startTagStrong}!{$closeTagStrong}{$closeTagNgContainer}", + { + "closeTagNgContainer": "\uFFFD/#2\uFFFD", + "closeTagStrong": "\uFFFD/#3\uFFFD", + "startTagNgContainer": "\uFFFD#2\uFFFD", + "startTagStrong": "\uFFFD#3\uFFFD" + }, + { + original_code: { + "closeTagNgContainer": "", + "closeTagStrong": "", + "startTagNgContainer": "", + "startTagStrong": "" + } + } + ); + i18n_0 = MSG_EXTERNAL_5421724224363734696$$NG_CONTAINER_WITH_NON_TEXT_CONTENT_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize` Hello ${"\uFFFD#2\uFFFD"}:START_TAG_NG_CONTAINER:there ${"\uFFFD#3\uFFFD"}:START_TAG_STRONG:!${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵelementContainerStart(2); + i0.ɵɵelement(3, "strong"); + i0.ɵɵelementContainerEnd(); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + Hello there ! +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng-container_with_non_text_content.ts", + lineNumber: 12 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/self_closing_ng-container.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/self_closing_ng-container.js index f444b34e22a4..bae6e3ac190e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/self_closing_ng-container.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/self_closing_ng-container.js @@ -1,17 +1,106 @@ -decls: 3, -vars: 0, -consts: () => { - __i18nMsg__(' Hello {$startTagNgContainer}there{$closeTagNgContainer}', [['closeTagNgContainer', String.raw`\uFFFD/#2\uFFFD`], ['startTagNgContainer', String.raw`\uFFFD#2\uFFFD`],], {original_code: {'closeTagNgContainer': '
    ', 'startTagNgContainer': ''}}, {}) - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵelementContainer(2); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5918426009610945623$$SELF_CLOSING_NG_CONTAINER_TS_0 = + /* @ts-ignore */ + goog.getMsg( + " Hello {$startTagNgContainer}there{$closeTagNgContainer}", + { "closeTagNgContainer": "\uFFFD/#2\uFFFD", "startTagNgContainer": "\uFFFD#2\uFFFD" }, + { + original_code: { + "closeTagNgContainer": "", + "startTagNgContainer": "" + } + } + ); + i18n_0 = MSG_EXTERNAL_5918426009610945623$$SELF_CLOSING_NG_CONTAINER_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize` Hello ${"\uFFFD#2\uFFFD"}:START_TAG_NG_CONTAINER:there${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_NG_CONTAINER:`; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵelementContainer(2); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + Hello there +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "self_closing_ng-container.ts", + lineNumber: 12 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/self_closing_tags.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/self_closing_tags.js index ca02b27fd86e..66c6d9ae6be8 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/self_closing_tags.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/self_closing_tags.js @@ -1,27 +1,129 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18nStart(0, 1); - $r3$.ɵɵelement(1, "img", 2); - $r3$.ɵɵi18nEnd(); + i0.ɵɵi18nStart(0, 1); + i0.ɵɵelement(1, "img", 2); + i0.ɵɵi18nEnd(); } } -… -consts: () => { - __i18nMsg__('{$tagImg} is my logo #1 ', [['tagImg', String.raw`\uFFFD#2\uFFFD\uFFFD/#2\uFFFD`]], {original_code: {tagImg: ''}}, {}) - __i18nMsg__('{$tagImg} is my logo #2 ', [['tagImg', String.raw`\uFFFD#1\uFFFD\uFFFD/#1\uFFFD`]], {original_code: {tagImg: ''}}, {}) - return [ - $i18n_0$, - $i18n_1$, - ["src", "logo.png", "title", "Logo"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementContainerStart(0); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵelement(2, "img", 2); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementContainerEnd(); - $r3$.ɵɵtemplate(3, MyComponent_ng_template_3_Template, 2, 0, "ng-template"); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 4, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5420441640329771391$$SELF_CLOSING_TAGS_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$tagImg} is my logo #1 ", + { "tagImg": "\uFFFD#2\uFFFD\uFFFD/#2\uFFFD" }, + { original_code: { "tagImg": '' } } + ); + i18n_0 = MSG_EXTERNAL_5420441640329771391$$SELF_CLOSING_TAGS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_IMG: is my logo #1 `; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2178806453879858557$$SELF_CLOSING_TAGS_TS_1 = + /* @ts-ignore */ + goog.getMsg( + "{$tagImg} is my logo #2 ", + { "tagImg": "\uFFFD#1\uFFFD\uFFFD/#1\uFFFD" }, + { original_code: { "tagImg": '' } } + ); + i18n_1 = MSG_EXTERNAL_2178806453879858557$$SELF_CLOSING_TAGS_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`${"\uFFFD#1\uFFFD\uFFFD/#1\uFFFD"}:TAG_IMG: is my logo #2 `; + } + return [i18n_0, i18n_1, ["src", "logo.png", "title", "Logo"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementContainerStart(0); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵelement(2, "img", 2); + i0.ɵɵi18nEnd(); + i0.ɵɵelementContainerEnd(); + i0.ɵɵtemplate(3, MyComponent_ng_template_3_Template, 2, 0, "ng-template"); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + + is my logo #1 + + + is my logo #2 + +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "self_closing_tags.ts", + lineNumber: 15 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/sibling_i18n_blocks.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/sibling_i18n_blocks.js index 7bd65e2e15a1..f5c5a3b1e604 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/sibling_i18n_blocks.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/sibling_i18n_blocks.js @@ -1,32 +1,119 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18n(0, 0, 1); + i0.ɵɵi18n(0, 0, 1); } } function MyComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18n(0, 1, 1); + i0.ɵɵi18n(0, 1, 1); } } -… -decls: 6, -vars: 0, -consts: () => { - __i18nMsg__('{$startTagNgTemplate}Content A{$closeTagNgTemplate}', [['closeTagNgTemplate', String.raw`\uFFFD/*2:1\uFFFD`], ['startTagNgTemplate', String.raw`\uFFFD*2:1\uFFFD`]], {original_code: { 'closeTagNgTemplate': '', 'startTagNgTemplate': '' }}, {}) - __i18nMsg__('{$startTagNgTemplate}Content B{$closeTagNgTemplate}', [['closeTagNgTemplate', String.raw`\uFFFD/*5:1\uFFFD`], ['startTagNgTemplate', String.raw`\uFFFD*5:1\uFFFD`]], {original_code: { 'closeTagNgTemplate': '', 'startTagNgTemplate': '' }}, {}) - return [$i18n_0$, $i18n_1$]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵdomTemplate(2, MyComponent_ng_template_2_Template, 1, 0, "ng-template"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵdomElementEnd(); - $r3$.ɵɵdomElementStart(3, "div"); - $r3$.ɵɵi18nStart(4, 1); - $r3$.ɵɵdomTemplate(5, MyComponent_ng_template_5_Template, 1, 0, "ng-template"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵdomElementEnd(); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + decls: 6, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2794571749861951181$$SIBLING_I18N_BLOCKS_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$startTagNgTemplate}Content A{$closeTagNgTemplate}", + { "closeTagNgTemplate": "\uFFFD/*2:1\uFFFD", "startTagNgTemplate": "\uFFFD*2:1\uFFFD" }, + { + original_code: { + "closeTagNgTemplate": "", + "startTagNgTemplate": "" + } + } + ); + i18n_0 = MSG_EXTERNAL_2794571749861951181$$SIBLING_I18N_BLOCKS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"\uFFFD*2:1\uFFFD"}:START_TAG_NG_TEMPLATE:Content A${"\uFFFD/*2:1\uFFFD"}:CLOSE_TAG_NG_TEMPLATE:`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3741326655422864774$$SIBLING_I18N_BLOCKS_TS_1 = + /* @ts-ignore */ + goog.getMsg( + "{$startTagNgTemplate}Content B{$closeTagNgTemplate}", + { "closeTagNgTemplate": "\uFFFD/*5:1\uFFFD", "startTagNgTemplate": "\uFFFD*5:1\uFFFD" }, + { + original_code: { + "closeTagNgTemplate": "", + "startTagNgTemplate": "" + } + } + ); + i18n_1 = MSG_EXTERNAL_3741326655422864774$$SIBLING_I18N_BLOCKS_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`${"\uFFFD*5:1\uFFFD"}:START_TAG_NG_TEMPLATE:Content B${"\uFFFD/*5:1\uFFFD"}:CLOSE_TAG_NG_TEMPLATE:`; + } + return [i18n_0, i18n_1]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵdomTemplate(2, MyComponent_ng_template_2_Template, 1, 0, "ng-template"); + i0.ɵɵi18nEnd(); + i0.ɵɵdomElementEnd(); + i0.ɵɵdomElementStart(3, "div"); + i0.ɵɵi18nStart(4, 1); + i0.ɵɵdomTemplate(5, MyComponent_ng_template_5_Template, 1, 0, "ng-template"); + i0.ɵɵi18nEnd(); + i0.ɵɵdomElementEnd(); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + Content A +
    +
    + Content B +
    +` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "sibling_i18n_blocks.ts", + lineNumber: 14 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/single_ng-container.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/single_ng-container.js index 638394622c1e..c7cae2cb6c8a 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/single_ng-container.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/single_ng-container.js @@ -1,21 +1,136 @@ -decls: 3, -vars: 3, -consts: () => { - __i18nMsg__('Some content: {$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ valueA | uppercase }}'}}, {}) - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementContainerStart(0); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵpipe(2, "uppercase"); - $r3$.ɵɵelementContainerEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵi18nExp($r3$.ɵɵpipeBind1(2, 1, ctx.valueA)); - $r3$.ɵɵi18nApply(1); - } +import { Component, NgModule, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; +export class UppercasePipe { + transform(v) {} + static ɵfac = function UppercasePipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || UppercasePipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "uppercase", + type: UppercasePipe, + pure: true, + standalone: false + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + UppercasePipe, + [ + { + type: Pipe, + args: [ + { + name: "uppercase", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class MyComponent { + valueA = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 3, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_355394464191978948$$SINGLE_NG_CONTAINER_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "Some content: {$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ valueA | uppercase }}" } } + ); + i18n_0 = MSG_EXTERNAL_355394464191978948$$SINGLE_NG_CONTAINER_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Some content: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementContainerStart(0); + i0.ɵɵi18n(1, 0); + i0.ɵɵpipe(2, "uppercase"); + i0.ɵɵelementContainerEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(2, 1, ctx.valueA)); + i0.ɵɵi18nApply(1); + } + }, + dependencies: [UppercasePipe], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + Some content: {{ valueA | uppercase }} +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "single_ng-container.ts", + lineNumber: 18 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent, UppercasePipe] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, UppercasePipe] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/single_ng-template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/single_ng-template.js index 8a690f698198..71f4b1a042af 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/single_ng-template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/single_ng-template.js @@ -1,22 +1,107 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18n(0, 0); - $r3$.ɵɵpipe(1, "uppercase"); + i0.ɵɵi18n(0, 0); + i0.ɵɵpipe(1, "uppercase"); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp($r3$.ɵɵpipeBind1(1, 1, $ctx_r0$.valueA)); - $r3$.ɵɵi18nApply(0); + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵadvance(); + i0.ɵɵi18nExp(i0.ɵɵpipeBind1(1, 1, ctx_r0.valueA)); + i0.ɵɵi18nApply(0); } } -… -decls: 1, vars: 0, consts: () => { - __i18nMsg__('Some content: {$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ valueA | uppercase }}'}}, {}) - return [$i18n_0$]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 2, 3, "ng-template"); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_355394464191978948$$SINGLE_NG_TEMPLATE_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "Some content: {$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{ valueA | uppercase }}" } } + ); + i18n_0 = MSG_EXTERNAL_355394464191978948$$SINGLE_NG_TEMPLATE_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Some content: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 2, 3, "ng-template"); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + Some content: {{ valueA | uppercase }} +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "single_ng-template.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/structural_directives.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/structural_directives.js index df493812c355..bf97a1282fc7 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/structural_directives.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/structural_directives.js @@ -1,41 +1,134 @@ -// NOTE: applying structural directives to is typically user error, but it is technically allowed, so we need to support it. +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_0_ng_template_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18n(0, 0); + i0.ɵɵi18n(0, 0); } } function MyComponent_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_0_ng_template_0_Template, 1, 0, "ng-template"); + i0.ɵɵtemplate(0, MyComponent_0_ng_template_0_Template, 1, 0, "ng-template"); } } -… function MyComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelementContainerStart(0); - $r3$.ɵɵi18n(1, 1); - $r3$.ɵɵelementContainerEnd(); + i0.ɵɵelementContainerStart(0); + i0.ɵɵi18n(1, 1); + i0.ɵɵelementContainerEnd(); } } -… -decls: 2, -vars: 2, -consts: () => { - __i18nMsg__('Content A', [], {}, {}) - __i18nMsg__('Content B', [], {}, {}) - return [ - $i18n_0$, - $i18n_1$, - [__AttributeMarker.Template__, "ngIf"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_0_Template, 1, 0, null, 2)(1, MyComponent_ng_container_1_Template, 2, 0, "ng-container", 2); - } - if (rf & 2) { - $r3$.ɵɵproperty("ngIf", ctx.someFlag); - $r3$.ɵɵadvance(); - $r3$.ɵɵproperty("ngIf", ctx.someFlag); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_3308216566145348998$$STRUCTURAL_DIRECTIVES_TS_0 = + /* @ts-ignore */ + goog.getMsg("Content A"); + i18n_0 = MSG_EXTERNAL_3308216566145348998$$STRUCTURAL_DIRECTIVES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Content A`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8349021389088127654$$STRUCTURAL_DIRECTIVES_TS_1 = + /* @ts-ignore */ + goog.getMsg("Content B"); + i18n_1 = MSG_EXTERNAL_8349021389088127654$$STRUCTURAL_DIRECTIVES_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`Content B`; + } + return [i18n_0, i18n_1, [4, "ngIf"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_0_Template, 1, 0, null, 2)( + 1, + MyComponent_ng_container_1_Template, + 2, + 0, + "ng-container", + 2 + ); + } + if (rf & 2) { + i0.ɵɵproperty("ngIf", ctx.someFlag); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx.someFlag); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + Content A + Content B +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "structural_directives.ts", + lineNumber: 11 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/structural_directives_same_placeholder.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/structural_directives_same_placeholder.js index 0833867590c6..c7b181bc238e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/structural_directives_same_placeholder.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/structural_directives_same_placeholder.js @@ -1,3 +1,5 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵi18nStart(0, 0, 1); @@ -21,9 +23,9 @@ function MyComponent_div_3_Template(rf, ctx) { i0.ɵɵi18nEnd(); } if (rf & 2) { - const $ctx_r1$ = i0.ɵɵnextContext(); + const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵadvance(2); - i0.ɵɵproperty("ngIf", $ctx_r1$.someFlag); + i0.ɵɵproperty("ngIf", ctx_r0.someFlag); } } function MyComponent_img_4_Template(rf, ctx) { @@ -40,29 +42,146 @@ function MyComponent_img_5_Template(rf, ctx) { i0.ɵɵi18nEnd(); } } -… -decls: 6, -vars: 4, -consts: () => { - __i18nMsgWithPostprocess__('{$startTagDiv}Content{$closeTagDiv}{$startTagDiv}{$startTagDiv}Content{$closeTagDiv}{$closeTagDiv}{$tagImg}{$tagImg}', [['closeTagDiv', String.raw`[\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*2:3\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*3:2\uFFFD]`], ['startTagDiv', String.raw`[\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD|\uFFFD*3:2\uFFFD\uFFFD#1:2\uFFFD|\uFFFD*2:3\uFFFD\uFFFD#1:3\uFFFD]`], ['tagImg', String.raw`[\uFFFD*4:4\uFFFD\uFFFD/*4:4\uFFFD\uFFFD#1:4\uFFFD\uFFFD/#1:4\uFFFD\uFFFD*4:4\uFFFD\uFFFD/*4:4\uFFFD|\uFFFD*5:5\uFFFD\uFFFD/*5:5\uFFFD\uFFFD#1:5\uFFFD\uFFFD/#1:5\uFFFD\uFFFD*5:5\uFFFD\uFFFD/*5:5\uFFFD]`]], {original_code: {closeTagDiv: '
    ', startTagDiv: '
    ', tagImg: '' }}, {}, []) - return [i18n_0, [4, "ngIf"]]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - i0.ɵɵelementStart(0, "div"); - i0.ɵɵi18nStart(1, 0); - i0.ɵɵtemplate(2, MyComponent_div_2_Template, 2, 0, "div", 1)(3, MyComponent_div_3_Template, 3, 1, "div", 1)(4, MyComponent_img_4_Template, 2, 0, "img", 1)(5, MyComponent_img_5_Template, 2, 0, "img", 1); - i0.ɵɵi18nEnd(); - i0.ɵɵelementEnd(); - } - if (rf & 2) { - i0.ɵɵadvance(2); - i0.ɵɵproperty("ngIf", ctx.someFlag); - i0.ɵɵadvance(); - i0.ɵɵproperty("ngIf", ctx.someFlag); - i0.ɵɵadvance(); - i0.ɵɵproperty("ngIf", ctx.someOtherFlag); - i0.ɵɵadvance(); - i0.ɵɵproperty("ngIf", ctx.someOtherFlag); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 6, + vars: 4, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_7491232361816524177$$STRUCTURAL_DIRECTIVES_SAME_PLACEHOLDER_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$startTagDiv}Content{$closeTagDiv}{$startTagDiv}{$startTagDiv}Content{$closeTagDiv}{$closeTagDiv}{$tagImg}{$tagImg}", + { + "closeTagDiv": + "[\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*2:3\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*3:2\uFFFD]", + "startTagDiv": + "[\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD|\uFFFD*3:2\uFFFD\uFFFD#1:2\uFFFD|\uFFFD*2:3\uFFFD\uFFFD#1:3\uFFFD]", + "tagImg": + "[\uFFFD*4:4\uFFFD\uFFFD/*4:4\uFFFD\uFFFD#1:4\uFFFD\uFFFD/#1:4\uFFFD\uFFFD*4:4\uFFFD\uFFFD/*4:4\uFFFD|\uFFFD*5:5\uFFFD\uFFFD/*5:5\uFFFD\uFFFD#1:5\uFFFD\uFFFD/#1:5\uFFFD\uFFFD*5:5\uFFFD\uFFFD/*5:5\uFFFD]" + }, + { + original_code: { + "closeTagDiv": "
    ", + "startTagDiv": '
    ', + "tagImg": '' + } + } + ); + i18n_0 = MSG_EXTERNAL_7491232361816524177$$STRUCTURAL_DIRECTIVES_SAME_PLACEHOLDER_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"[\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD|\uFFFD*3:2\uFFFD\uFFFD#1:2\uFFFD|\uFFFD*2:3\uFFFD\uFFFD#1:3\uFFFD]"}:START_TAG_DIV:Content${"[\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*2:3\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*3:2\uFFFD]"}:CLOSE_TAG_DIV:${"[\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD|\uFFFD*3:2\uFFFD\uFFFD#1:2\uFFFD|\uFFFD*2:3\uFFFD\uFFFD#1:3\uFFFD]"}:START_TAG_DIV:${"[\uFFFD*2:1\uFFFD\uFFFD#1:1\uFFFD|\uFFFD*3:2\uFFFD\uFFFD#1:2\uFFFD|\uFFFD*2:3\uFFFD\uFFFD#1:3\uFFFD]"}:START_TAG_DIV:Content${"[\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*2:3\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*3:2\uFFFD]"}:CLOSE_TAG_DIV:${"[\uFFFD/#1:1\uFFFD\uFFFD/*2:1\uFFFD|\uFFFD/#1:3\uFFFD\uFFFD/*2:3\uFFFD|\uFFFD/#1:2\uFFFD\uFFFD/*3:2\uFFFD]"}:CLOSE_TAG_DIV:${"[\uFFFD*4:4\uFFFD\uFFFD/*4:4\uFFFD\uFFFD#1:4\uFFFD\uFFFD/#1:4\uFFFD\uFFFD*4:4\uFFFD\uFFFD/*4:4\uFFFD|\uFFFD*5:5\uFFFD\uFFFD/*5:5\uFFFD\uFFFD#1:5\uFFFD\uFFFD/#1:5\uFFFD\uFFFD*5:5\uFFFD\uFFFD/*5:5\uFFFD]"}:TAG_IMG:${"[\uFFFD*4:4\uFFFD\uFFFD/*4:4\uFFFD\uFFFD#1:4\uFFFD\uFFFD/#1:4\uFFFD\uFFFD*4:4\uFFFD\uFFFD/*4:4\uFFFD|\uFFFD*5:5\uFFFD\uFFFD/*5:5\uFFFD\uFFFD#1:5\uFFFD\uFFFD/#1:5\uFFFD\uFFFD*5:5\uFFFD\uFFFD/*5:5\uFFFD]"}:TAG_IMG:`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0); + return [i18n_0, [4, "ngIf"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵtemplate(2, MyComponent_div_2_Template, 2, 0, "div", 1)( + 3, + MyComponent_div_3_Template, + 3, + 1, + "div", + 1 + )(4, MyComponent_img_4_Template, 2, 0, "img", 1)( + 5, + MyComponent_img_5_Template, + 2, + 0, + "img", + 1 + ); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵproperty("ngIf", ctx.someFlag); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx.someFlag); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx.someOtherFlag); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx.someOtherFlag); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    Content
    +
    +
    Content
    +
    + + + +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "structural_directives_same_placeholder.ts", + lineNumber: 18 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/repeated_placeholder.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/repeated_placeholder.js index abbe8b96b9c8..08489f0a495d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/repeated_placeholder.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/repeated_placeholder.js @@ -1,3 +1,129 @@ -consts: () => { - __i18nMsgWithPostprocess__('Hello, {$interpolation}! You are a very good {$interpolation}.', [['interpolation', String.raw`[\uFFFD0\uFFFD|\uFFFD1\uFFFD]`]], {original_code: {'interpolation': '{{ placeholder }}'}}, {}, []) - __i18nMsgWithPostprocess__('Hello, {$ph}! Hello again {$ph}.', [['ph', String.raw`[\uFFFD0\uFFFD|\uFFFD1\uFFFD]`]], {original_code: {'ph': '{{ placeholder // i18n(ph = "ph") }}'}}, {}, []) +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + placeholder; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 4, + vars: 4, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5630555247629532920$$REPEATED_PLACEHOLDER_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "Hello, {$interpolation}! You are a very good {$interpolation}.", + { "interpolation": "[\uFFFD0\uFFFD|\uFFFD1\uFFFD]" }, + { original_code: { "interpolation": "{{ placeholder }}" } } + ); + i18n_0 = MSG_EXTERNAL_5630555247629532920$$REPEATED_PLACEHOLDER_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Hello, ${"[\uFFFD0\uFFFD|\uFFFD1\uFFFD]"}:INTERPOLATION:! You are a very good ${"[\uFFFD0\uFFFD|\uFFFD1\uFFFD]"}:INTERPOLATION:.`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0); + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8920820792479556534$$REPEATED_PLACEHOLDER_TS_1 = + /* @ts-ignore */ + goog.getMsg( + "Hello, {$ph}! Hello again {$ph}.", + { "ph": "[\uFFFD0\uFFFD|\uFFFD1\uFFFD]" }, + { original_code: { "ph": '{{ placeholder // i18n(ph = "ph") }}' } } + ); + i18n_1 = MSG_EXTERNAL_8920820792479556534$$REPEATED_PLACEHOLDER_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`Hello, ${"[\uFFFD0\uFFFD|\uFFFD1\uFFFD]"}:PH:! Hello again ${"[\uFFFD0\uFFFD|\uFFFD1\uFFFD]"}:PH:.`; + } + i18n_1 = i0.ɵɵi18nPostprocess(i18n_1); + return [i18n_0, i18n_1]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(2, "div"); + i0.ɵɵi18n(3, 1); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.placeholder)(ctx.placeholder); + i0.ɵɵi18nApply(1); + i0.ɵɵadvance(2); + i0.ɵɵi18nExp(ctx.placeholder)(ctx.placeholder); + i0.ɵɵi18nApply(3); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    Hello, {{ placeholder }}! You are a very good {{ placeholder }}.
    +
    Hello, {{ placeholder // i18n(ph = "ph") }}! Hello again {{ placeholder // i18n(ph = "ph") }}.
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "repeated_placeholder.ts", + lineNumber: 11 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/icu_only.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/icu_only.js index 6179114d120c..46ca89475434 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/icu_only.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/icu_only.js @@ -1,20 +1,100 @@ -decls: 2, -vars: 1, -consts: () => { - __i18nIcuMsg__('{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}', [['VAR_SELECT', String.raw`\uFFFD0\uFFFD`]], {}) - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.age); - $r3$.ɵɵi18nApply(1); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + age = 1; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8806993169187953163$$ICU_ONLY_TS_0 = + /* @ts-ignore */ + goog.getMsg("{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}"); + i18n_0 = MSG_EXTERNAL_8806993169187953163$$ICU_ONLY_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`{VAR_SELECT, select, 10 {ten} 20 {twenty} other {other}}`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0, { "VAR_SELECT": "\uFFFD0\uFFFD" }); + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.age); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    {age, select, 10 {ten} 20 {twenty} other {other}}
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "icu_only.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/ng-container_ng-template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/ng-container_ng-template.js index 4b7a466b66c4..10bb33425e71 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/ng-container_ng-template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/ng-container_ng-template.js @@ -1,22 +1,113 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18n(0, 1); + i0.ɵɵi18n(0, 1); } } -… -consts: () => { - __i18nMsg__('My i18n block #2', [], {}, {}) - __i18nMsg__('My i18n block #1', [], {}, {}) - return [ - $i18n_0$, - $i18n_1$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 1, 0, "ng-template"); - $r3$.ɵɵelementContainerStart(1); - $r3$.ɵɵi18n(2, 0); - $r3$.ɵɵelementContainerEnd(); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2413150872298537152$$NG_CONTAINER_NG_TEMPLATE_TS_0 = + /* @ts-ignore */ + goog.getMsg("My i18n block #2"); + i18n_0 = MSG_EXTERNAL_2413150872298537152$$NG_CONTAINER_NG_TEMPLATE_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`My i18n block #2`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4890179241114413722$$NG_CONTAINER_NG_TEMPLATE_TS_1 = + /* @ts-ignore */ + goog.getMsg("My i18n block #1"); + i18n_1 = MSG_EXTERNAL_4890179241114413722$$NG_CONTAINER_NG_TEMPLATE_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`My i18n block #1`; + } + return [i18n_0, i18n_1]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 1, 0, "ng-template"); + i0.ɵɵelementContainerStart(1); + i0.ɵɵi18n(2, 0); + i0.ɵɵelementContainerEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + My i18n block #1 + My i18n block #2 +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng-container_ng-template.ts", + lineNumber: 11 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/styles.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/styles.js index 2b56bc172679..2b35c9ffe4ae 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/styles.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/styles.js @@ -1,22 +1,110 @@ -decls: 4, -vars: 0, -consts: () => { - __i18nMsg__('Text #1', [], {}, {}) - __i18nMsg__('Text #2', [], {}, {}) - return [ - $i18n_0$, - $i18n_1$, - [__AttributeMarker.Classes__, "myClass"], - [__AttributeMarker.Styles__, "padding", "10px"] - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "span", 2); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(2, "span", 3); - $r3$.ɵɵi18n(3, 1); - $r3$.ɵɵelementEnd(); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 4, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5295701706185791735$$STYLES_TS_0 = + /* @ts-ignore */ + goog.getMsg("Text #1"); + i18n_0 = MSG_EXTERNAL_5295701706185791735$$STYLES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Text #1`; + } + let i18n_1; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4722270221386399294$$STYLES_TS_1 = + /* @ts-ignore */ + goog.getMsg("Text #2"); + i18n_1 = MSG_EXTERNAL_4722270221386399294$$STYLES_TS_1; + } else { + /* @ts-ignore */ + i18n_1 = $localize`Text #2`; + } + return [i18n_0, i18n_1, [1, "myClass"], [2, "padding", "10px"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "span", 2); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(2, "span", 3); + i0.ɵɵi18n(3, 1); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + Text #1 + Text #2 +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "styles.ts", + lineNumber: 11 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/text_only_content.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/text_only_content.js index f0f594d18c9b..a6d134860235 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/text_only_content.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/text_only_content.js @@ -1,13 +1,93 @@ -consts: () => { - __i18nMsg__('My i18n block #1', [], {}, {}) - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵelementEnd(); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4890179241114413722$$TEXT_ONLY_CONTENT_TS_0 = + /* @ts-ignore */ + goog.getMsg("My i18n block #1"); + i18n_0 = MSG_EXTERNAL_4890179241114413722$$TEXT_ONLY_CONTENT_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`My i18n block #1`; + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    My i18n block #1
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "text_only_content.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/preserve_inner_content.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/preserve_inner_content.js index 661446911d5c..0e5214f4a8e3 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/preserve_inner_content.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/preserve_inner_content.js @@ -1,40 +1,108 @@ -consts: () => { - // NOTE: Keeping raw content (avoiding `i18nMsg`) to illustrate message layout in case of whitespace preserving mode. - let $I18N_0$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_EXTERNAL_963542717423364282$$APP_SPEC_TS_0$ = /* @ts-ignore */ goog.getMsg("\n Some text\n {$startTagSpan}Text inside span{$closeTagSpan}\n ", { - "closeTagSpan": "\uFFFD/#3\uFFFD", - "startTagSpan": "\uFFFD#3\uFFFD" - }, { - original_code: { - "closeTagSpan": "", - "startTagSpan": "" - } - }); - $I18N_0$ = $MSG_EXTERNAL_963542717423364282$$APP_SPEC_TS_0$; - } - else { - /* @ts-ignore */ - $I18N_0$ = $localize ` +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 5, + vars: 0, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5871145577455911624$$PRESERVE_INNER_CONTENT_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "\n Some text\n {$startTagSpan}Text inside span{$closeTagSpan}\n ", + { "closeTagSpan": "\uFFFD/#3\uFFFD", "startTagSpan": "\uFFFD#3\uFFFD" }, + { original_code: { "closeTagSpan": "", "startTagSpan": "" } } + ); + i18n_0 = MSG_EXTERNAL_5871145577455911624$$PRESERVE_INNER_CONTENT_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize` Some text ${"\uFFFD#3\uFFFD"}:START_TAG_SPAN:Text inside span${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SPAN: `; - } - return [ - $i18n_0$ - ]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtext(0, "\n "); - $r3$.ɵɵelementStart(1, "div"); - $r3$.ɵɵi18nStart(2, 0); - $r3$.ɵɵelement(3, "span"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵtext(4, "\n"); - } + } + return [i18n_0]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0, "\n "); + i0.ɵɵelementStart(1, "div"); + i0.ɵɵi18nStart(2, 0); + i0.ɵɵelement(3, "span"); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + i0.ɵɵtext(4, "\n"); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + Some text + Text inside span +
    +`, + preserveWhitespaces: true, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "preserve_inner_content.ts", + lineNumber: 14 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/component_definition.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/component_definition.js index 3ffd5ae34f4e..7d21fc446ad5 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/component_definition.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/component_definition.js @@ -1,15 +1,104 @@ +import { Component, Input, NgModule, Output } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - … - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - … - inputs:{ + componentInput; + originalComponentInput; + componentOutput; + originalComponentOutput; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + inputs: { componentInput: "componentInput", originalComponentInput: [0, "renamedComponentInput", "originalComponentInput"] }, outputs: { componentOutput: "componentOutput", originalComponentOutput: "renamedComponentOutput" - } - … + }, + standalone: false, + decls: 0, + vars: 0, + template: function MyComponent_Template(rf, ctx) {}, + encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: "", + standalone: false + } + ] + } + ], + null, + { + componentInput: [ + { + type: Input + } + ], + originalComponentInput: [ + { + type: Input, + args: ["renamedComponentInput"] + } + ], + componentOutput: [ + { + type: Output + } + ], + originalComponentOutput: [ + { + type: Output, + args: ["renamedComponentOutput"] + } + ] + } + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "component.ts", + lineNumber: 7 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/directive_definition.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/directive_definition.js index 67c791e76bec..d96169ca7139 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/directive_definition.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/directive_definition.js @@ -1,15 +1,91 @@ +import { Directive, Input, NgModule, Output } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyDirective { - … - static ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ - … - inputs:{ + directiveInput; + originalDirectiveInput; + directiveOutput; + originalDirectiveOutput; + static ɵfac = function MyDirective_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyDirective)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: MyDirective, + selectors: [["", "my-directive", ""]], + inputs: { directiveInput: "directiveInput", originalDirectiveInput: [0, "renamedDirectiveInput", "originalDirectiveInput"] }, outputs: { directiveOutput: "directiveOutput", originalDirectiveOutput: "renamedDirectiveOutput" - } - … + }, + standalone: false }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyDirective, + [ + { + type: Directive, + args: [ + { + selector: "[my-directive]", + standalone: false + } + ] + } + ], + null, + { + directiveInput: [ + { + type: Input + } + ], + originalDirectiveInput: [ + { + type: Input, + args: ["renamedDirectiveInput"] + } + ], + directiveOutput: [ + { + type: Output + } + ], + originalDirectiveOutput: [ + { + type: Output, + args: ["renamedDirectiveOutput"] + } + ] + } + ); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyDirective] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyDirective] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/input_transform_definition.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/input_transform_definition.js index b2e246e6537e..645df3505ab3 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/input_transform_definition.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/input_transform_definition.js @@ -1,11 +1,91 @@ +import { Directive, Input, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +function toNumber(value) { + return value ? 1 : 0; +} export class MyDirective { - … - static ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ - … + functionDeclarationInput; + // There's an extra `_` parameter, because full compilation strips the parentheses around the + // parameters while partial compilation keeps them. This ensures consistent output. + // @ts-ignore + inlineFunctionInput; + static ɵfac = function MyDirective_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyDirective)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: MyDirective, + selectors: [["", "my-directive", ""]], inputs: { - functionDeclarationInput: [2, "functionDeclarationInput", "functionDeclarationInput", toNumber], - inlineFunctionInput: [2, "inlineFunctionInput", "inlineFunctionInput", (value, _) => value ? 1 : 0] + functionDeclarationInput: [ + 2, + "functionDeclarationInput", + "functionDeclarationInput", + toNumber + ], + inlineFunctionInput: [ + 2, + "inlineFunctionInput", + "inlineFunctionInput", + (value, _) => (value ? 1 : 0) + ] }, - … + standalone: false }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyDirective, + [ + { + type: Directive, + args: [ + { + selector: "[my-directive]", + standalone: false + } + ] + } + ], + null, + { + functionDeclarationInput: [ + { + type: Input, + args: [{ transform: toNumber }] + } + ], + inlineFunctionInput: [ + { + type: Input, + args: [{ transform: (value, _) => (value ? 1 : 0) }] + } + ] + } + ); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyDirective] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyDirective] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/TEST_CASES.json b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/TEST_CASES.json index 1f1b4980d200..20329be75cc6 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/TEST_CASES.json +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/TEST_CASES.json @@ -3,9 +3,7 @@ "cases": [ { "description": "should create a simple @let declaration", - "inputFiles": [ - "simple_let.ts" - ], + "inputFiles": ["simple_let.ts"], "expectations": [ { "files": [ @@ -20,9 +18,7 @@ }, { "description": "should create multiple @let declarations that depend on each other", - "inputFiles": [ - "multiple_let.ts" - ], + "inputFiles": ["multiple_let.ts"], "expectations": [ { "files": [ @@ -37,9 +33,7 @@ }, { "description": "should create a let using a pipe", - "inputFiles": [ - "let_with_pipe.ts" - ], + "inputFiles": ["let_with_pipe.ts"], "expectations": [ { "files": [ @@ -54,9 +48,7 @@ }, { "description": "should be able to use let declarations in event listeners", - "inputFiles": [ - "let_in_listener.ts" - ], + "inputFiles": ["let_in_listener.ts"], "expectations": [ { "files": [ @@ -71,9 +63,7 @@ }, { "description": "should be able to use let declarations in child views", - "inputFiles": [ - "let_in_child_view.ts" - ], + "inputFiles": ["let_in_child_view.ts"], "expectations": [ { "files": [ @@ -88,9 +78,7 @@ }, { "description": "should share let declarations between parent and child views", - "inputFiles": [ - "let_shared_with_child_view.ts" - ], + "inputFiles": ["let_shared_with_child_view.ts"], "expectations": [ { "files": [ @@ -105,9 +93,7 @@ }, { "description": "should be able to use let declarations in event listeners inside child views", - "inputFiles": [ - "let_in_child_view_listener.ts" - ], + "inputFiles": ["let_in_child_view_listener.ts"], "expectations": [ { "files": [ @@ -122,9 +108,7 @@ }, { "description": "should be able to use local references in let declarations", - "inputFiles": [ - "let_local_refs.ts" - ], + "inputFiles": ["let_local_refs.ts"], "expectations": [ { "files": [ @@ -139,9 +123,7 @@ }, { "description": "should be able to use forward references defined after the let declaration", - "inputFiles": [ - "let_local_forward_refs.ts" - ], + "inputFiles": ["let_local_forward_refs.ts"], "expectations": [ { "files": [ @@ -156,9 +138,7 @@ }, { "description": "should be able to use for loop variables in let declarations", - "inputFiles": [ - "let_for_loop.ts" - ], + "inputFiles": ["let_for_loop.ts"], "expectations": [ { "files": [ @@ -172,13 +152,11 @@ ] }, { - "description": "should transform an invalid let reference to undefined", + "description": "should transform an invalid let reference to a placeholder", "angularCompilerOptions": { "checkTemplateBodies": false }, - "inputFiles": [ - "let_invalid_forward_ref.ts" - ], + "inputFiles": ["let_invalid_forward_ref.ts"], "expectations": [ { "files": [ @@ -193,9 +171,7 @@ }, { "description": "should remove a single unused let declaration", - "inputFiles": [ - "let_single_optimization.ts" - ], + "inputFiles": ["let_single_optimization.ts"], "expectations": [ { "files": [ @@ -210,9 +186,7 @@ }, { "description": "should remove a chain of unused let declarations", - "inputFiles": [ - "let_multiple_optimization.ts" - ], + "inputFiles": ["let_multiple_optimization.ts"], "expectations": [ { "files": [ @@ -227,9 +201,7 @@ }, { "description": "should remove only the unused let declarations from the middle of a chain of declarations", - "inputFiles": [ - "let_partial_optimization.ts" - ], + "inputFiles": ["let_partial_optimization.ts"], "expectations": [ { "files": [ @@ -244,9 +216,7 @@ }, { "description": "should not remove let declarations that are only used in an event listener", - "inputFiles": [ - "let_optimization_listener.ts" - ], + "inputFiles": ["let_optimization_listener.ts"], "expectations": [ { "files": [ @@ -261,9 +231,7 @@ }, { "description": "should not remove let declarations that are only used in a child view", - "inputFiles": [ - "let_optimization_child_view.ts" - ], + "inputFiles": ["let_optimization_child_view.ts"], "expectations": [ { "files": [ @@ -278,9 +246,7 @@ }, { "description": "should give precedence to local @let definition over one from a parent view", - "inputFiles": [ - "shadowed_let.ts" - ], + "inputFiles": ["shadowed_let.ts"], "expectations": [ { "files": [ @@ -295,9 +261,7 @@ }, { "description": "should not optimize away declareLet if expression is using a pipe", - "inputFiles": [ - "let_with_pipe_optimization.ts" - ], + "inputFiles": ["let_with_pipe_optimization.ts"], "expectations": [ { "files": [ @@ -312,9 +276,7 @@ }, { "description": "should handle an @let used only directly inside i18n", - "inputFiles": [ - "let_in_i18n.ts" - ], + "inputFiles": ["let_in_i18n.ts"], "expectations": [ { "files": [ @@ -329,9 +291,7 @@ }, { "description": "should handle an @let referenced inside a child view inside i18n", - "inputFiles": [ - "let_in_child_view_inside_i18n.ts" - ], + "inputFiles": ["let_in_child_view_inside_i18n.ts"], "expectations": [ { "files": [ @@ -346,9 +306,7 @@ }, { "description": "should handle an @let referenced inside i18n and in a child view", - "inputFiles": [ - "let_in_i18n_and_child_view.ts" - ], + "inputFiles": ["let_in_i18n_and_child_view.ts"], "expectations": [ { "files": [ @@ -363,9 +321,7 @@ }, { "description": "should handle an @let preceded by an element with i18n", - "inputFiles": [ - "let_preceded_by_i18n.ts" - ], + "inputFiles": ["let_preceded_by_i18n.ts"], "expectations": [ { "files": [ diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_for_loop_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_for_loop_template.js index cf8eac2deda8..0dbe732d9631 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_for_loop_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_for_loop_template.js @@ -1,45 +1,100 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyApp_For_1_For_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵtext(0); + i0.ɵɵtext(0); } if (rf & 2) { const ɵ$index_3_r1 = ctx.$index; - $r3$.ɵɵnextContext(); - const $outerFirst_1$ = $r3$.ɵɵreadContextLet(0); - const $innerFirst_2$ = ɵ$index_3_r1 === 0; - $r3$.ɵɵtextInterpolate1(" ", $outerFirst_1$ || $innerFirst_2$, " "); + i0.ɵɵnextContext(); + const outerFirst_r2 = i0.ɵɵreadContextLet(0); + const innerFirst_r3 = ɵ$index_3_r1 === 0; + i0.ɵɵtextInterpolate1(" ", outerFirst_r2 || innerFirst_r3, " "); } } - -… - function MyApp_For_1_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵdeclareLet(0); - $r3$.ɵɵrepeaterCreate(1, MyApp_For_1_For_2_Template, 1, 1, null, null, $r3$.ɵɵrepeaterTrackByIdentity); + i0.ɵɵdeclareLet(0); + i0.ɵɵrepeaterCreate( + 1, + MyApp_For_1_For_2_Template, + 1, + 1, + null, + null, + i0.ɵɵrepeaterTrackByIdentity + ); } if (rf & 2) { - const $item_r4$ = ctx.$implicit; + const item_r4 = ctx.$implicit; const ɵ$index_1_r5 = ctx.$index; - $r3$.ɵɵstoreLet(ɵ$index_1_r5 === 0); - $r3$.ɵɵadvance(); - $r3$.ɵɵrepeater($item_r4$.children); + i0.ɵɵstoreLet(ɵ$index_1_r5 === 0); + i0.ɵɵadvance(); + i0.ɵɵrepeater(item_r4.children); } } +export class MyApp { + items = []; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 2, + vars: 0, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵrepeaterCreate( + 0, + MyApp_For_1_Template, + 3, + 1, + null, + null, + i0.ɵɵrepeaterTrackByIdentity + ); + } + if (rf & 2) { + i0.ɵɵrepeater(ctx.items); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + @for (item of items; track item) { + @let outerFirst = $first; -… + @for (subitem of item.children; track subitem) { + @let innerFirst = $first; -$r3$.ɵɵdefineComponent({ - … - decls: 2, - vars: 0, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵrepeaterCreate(0, MyApp_For_1_Template, 3, 1, null, null, $r3$.ɵɵrepeaterTrackByIdentity); - } - if (rf & 2) { - $r3$.ɵɵrepeater(ctx.items); + {{outerFirst || innerFirst}} + } } - }, - … -}); + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_for_loop.ts", + lineNumber: 16 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_child_view_inside_i18n_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_child_view_inside_i18n_template.js index 468fd670c1de..8991d696d7ba 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_child_view_inside_i18n_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_child_view_inside_i18n_template.js @@ -1,58 +1,101 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyApp_ng_template_3_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18n(0, 0, 1); + i0.ɵɵi18n(0, 0, 1); } if (rf & 2) { - $r3$.ɵɵnextContext(); - const $result_r1$ = $r3$.ɵɵreadContextLet(2); - $r3$.ɵɵi18nExp($result_r1$); - $r3$.ɵɵi18nApply(0); + i0.ɵɵnextContext(); + const result_r1 = i0.ɵɵreadContextLet(2); + i0.ɵɵi18nExp(result_r1); + i0.ɵɵi18nApply(0); } } - -… - -$r3$.ɵɵdefineComponent({ - … - decls: 4, - vars: 1, - consts: () => { - let $i18n_0$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_ID_WITH_SUFFIX$ = /* @ts-ignore */ goog.getMsg("{$startTagNgTemplate}The result is {$interpolation}{$closeTagNgTemplate}", { - "closeTagNgTemplate": "\uFFFD/*3:1\uFFFD", - "interpolation": "\uFFFD0:1\uFFFD", - "startTagNgTemplate": "\uFFFD*3:1\uFFFD" - }, { - original_code: { - "closeTagNgTemplate": "", - "interpolation": "{{result}}", - "startTagNgTemplate": "" +export class MyApp { + value = 1; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 4, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_2787201391422886295$$LET_IN_CHILD_VIEW_INSIDE_I18N_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$startTagNgTemplate}The result is {$interpolation}{$closeTagNgTemplate}", + { + "closeTagNgTemplate": "\uFFFD/*3:1\uFFFD", + "interpolation": "\uFFFD0:1\uFFFD", + "startTagNgTemplate": "\uFFFD*3:1\uFFFD" + }, + { + original_code: { + "closeTagNgTemplate": "", + "interpolation": "{{result}}", + "startTagNgTemplate": "" + } + } + ); + i18n_0 = MSG_EXTERNAL_2787201391422886295$$LET_IN_CHILD_VIEW_INSIDE_I18N_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"\uFFFD*3:1\uFFFD"}:START_TAG_NG_TEMPLATE:The result is ${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"\uFFFD/*3:1\uFFFD"}:CLOSE_TAG_NG_TEMPLATE:`; + } + return [i18n_0]; + }, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵdeclareLet(2); + i0.ɵɵdomTemplate(3, MyApp_ng_template_3_Template, 1, 1, "ng-template"); + i0.ɵɵi18nEnd(); + i0.ɵɵdomElementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵstoreLet(ctx.value * 2); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` +
    + @let result = value * 2; + The result is {{result}} +
    + ` + } + ] } - }); - $i18n_0$ = $MSG_ID_WITH_SUFFIX$; - } else { - /* @ts-ignore */ - $i18n_0$ = $localize `${"\uFFFD*3:1\uFFFD"}:START_TAG_NG_TEMPLATE:The result is ${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"\uFFFD/*3:1\uFFFD"}:CLOSE_TAG_NG_TEMPLATE:`; - } - return [$i18n_0$]; - }, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵdeclareLet(2); - $r3$.ɵɵdomTemplate(3, MyApp_ng_template_3_Template, 1, 1, "ng-template"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵdomElementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(2); - $r3$.ɵɵstoreLet(ctx.value * 2); - } - }, - … -}); + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_in_child_view_inside_i18n.ts", + lineNumber: 11 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_child_view_listener_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_child_view_listener_template.js index 8c2ca52b3415..c3286e91dab0 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_child_view_listener_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_child_view_listener_template.js @@ -1,79 +1,125 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyApp_ng_template_1_Conditional_1_Case_1_Template(rf, ctx) { if (rf & 1) { - const $_r1$ = $r3$.ɵɵgetCurrentView(); - $r3$.ɵɵdeclareLet(0); - $r3$.ɵɵdomElementStart(1, "button", 0); - $r3$.ɵɵdomListener( + const _r1 = i0.ɵɵgetCurrentView(); + i0.ɵɵdeclareLet(0); + i0.ɵɵdomElementStart(1, "button", 0); + i0.ɵɵdomListener( "click", function MyApp_ng_template_1_Conditional_1_Case_1_Template_button_click_1_listener() { - $r3$.ɵɵrestoreView($_r1$); - const $four_1$ = $r3$.ɵɵreadContextLet(0); - $r3$.ɵɵnextContext(); - const $three_2$ = $r3$.ɵɵreadContextLet(0); - $r3$.ɵɵnextContext(); - const $two_3$ = $r3$.ɵɵreadContextLet(0); - const $ctx_r4$ = $r3$.ɵɵnextContext(); - const $one_5$ = $r3$.ɵɵreadContextLet(0); - return $r3$.ɵɵresetView($ctx_r4$.callback($one_5$, $two_3$, $three_2$, $four_1$)); + i0.ɵɵrestoreView(_r1); + const four_r2 = i0.ɵɵreadContextLet(0); + i0.ɵɵnextContext(); + const three_r3 = i0.ɵɵreadContextLet(0); + i0.ɵɵnextContext(); + const two_r4 = i0.ɵɵreadContextLet(0); + const ctx_r4 = i0.ɵɵnextContext(); + const one_r6 = i0.ɵɵreadContextLet(0); + return i0.ɵɵresetView(ctx_r4.callback(one_r6, two_r4, three_r3, four_r2)); } ); - $r3$.ɵɵdomElementEnd(); + i0.ɵɵdomElementEnd(); } if (rf & 2) { - $r3$.ɵɵnextContext(); - const $three_2$ = $r3$.ɵɵreadContextLet(0); - $r3$.ɵɵstoreLet($three_2$ + 1); + i0.ɵɵnextContext(); + const three_r3 = i0.ɵɵreadContextLet(0); + i0.ɵɵstoreLet(three_r3 + 1); } } - -… - function MyApp_ng_template_1_Conditional_1_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵdeclareLet(0); - $r3$.ɵɵconditionalCreate(1, MyApp_ng_template_1_Conditional_1_Case_1_Template, 2, 1, "button"); + i0.ɵɵdeclareLet(0); + i0.ɵɵconditionalCreate(1, MyApp_ng_template_1_Conditional_1_Case_1_Template, 2, 1, "button"); } if (rf & 2) { - let $tmp_5_0$; - $r3$.ɵɵnextContext(); - const $two_3$ = $r3$.ɵɵreadContextLet(0); - $r3$.ɵɵstoreLet($two_3$ + 1); - $r3$.ɵɵadvance(); - $r3$.ɵɵconditional(($tmp_5_0$ = 1) === 1 ? 1 : -1); + let tmp_5_0; + i0.ɵɵnextContext(); + const two_r4 = i0.ɵɵreadContextLet(0); + i0.ɵɵstoreLet(two_r4 + 1); + i0.ɵɵadvance(); + i0.ɵɵconditional((tmp_5_0 = 1) === 1 ? 1 : -1); } } - -… - function MyApp_ng_template_1_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵdeclareLet(0); - $r3$.ɵɵconditionalCreate(1, MyApp_ng_template_1_Conditional_1_Template, 2, 2); + i0.ɵɵdeclareLet(0); + i0.ɵɵconditionalCreate(1, MyApp_ng_template_1_Conditional_1_Template, 2, 2); } if (rf & 2) { - $r3$.ɵɵnextContext(); - const $one_5$ = $r3$.ɵɵreadContextLet(0); - $r3$.ɵɵstoreLet($one_5$ + 1); - $r3$.ɵɵadvance(); - $r3$.ɵɵconditional(true ? 1 : -1); + i0.ɵɵnextContext(); + const one_r6 = i0.ɵɵreadContextLet(0); + i0.ɵɵstoreLet(one_r6 + 1); + i0.ɵɵadvance(); + i0.ɵɵconditional(true ? 1 : -1); } } +export class MyApp { + value = 1; + callback(one, two, three, four) { + console.log(one, two, three, four); + } + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 2, + vars: 1, + consts: [[3, "click"]], + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdeclareLet(0); + i0.ɵɵdomTemplate(1, MyApp_ng_template_1_Template, 2, 2, "ng-template"); + } + if (rf & 2) { + i0.ɵɵstoreLet(ctx.value + 1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + @let one = value + 1; + + + @let two = one + 1; -… + @if (true) { + @let three = two + 1; -$r3$.ɵɵdefineComponent({ - … - decls: 2, - vars: 1, - … - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdeclareLet(0); - $r3$.ɵɵdomTemplate(1, MyApp_ng_template_1_Template, 2, 2, "ng-template"); - } - if (rf & 2) { - $r3$.ɵɵstoreLet(ctx.value + 1); - } - }, - … -}); + @switch (1) { + @case (1) { + @let four = three + 1; + + } + } + } + + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_in_child_view_listener.ts", + lineNumber: 23 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_child_view_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_child_view_template.js index e8f38af91b63..150e94a318a8 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_child_view_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_child_view_template.js @@ -1,47 +1,85 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyApp_Conditional_0_Conditional_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵtext(0); + i0.ɵɵtext(0); } if (rf & 2) { - $r3$.ɵɵnextContext(); - const $two_0$ = $r3$.ɵɵreadContextLet(1); - const $three_1$ = $two_0$ + 1; - $r3$.ɵɵtextInterpolate1(" ", $three_1$, " "); + i0.ɵɵnextContext(); + const two_r1 = i0.ɵɵreadContextLet(1); + const three_r2 = two_r1 + 1; + i0.ɵɵtextInterpolate1(" ", three_r2, " "); } } - -… - function MyApp_Conditional_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵconditionalCreate(0, MyApp_Conditional_0_Conditional_0_Template, 1, 1); - $r3$.ɵɵdeclareLet(1); + i0.ɵɵconditionalCreate(0, MyApp_Conditional_0_Conditional_0_Template, 1, 1); + i0.ɵɵdeclareLet(1); } if (rf & 2) { - $r3$.ɵɵnextContext(); - const $one_2$ = $r3$.ɵɵreadContextLet(1); - $r3$.ɵɵconditional(true ? 0 : -1); - $r3$.ɵɵadvance(); - $r3$.ɵɵstoreLet($one_2$ + 1); + i0.ɵɵnextContext(); + const one_r3 = i0.ɵɵreadContextLet(1); + i0.ɵɵconditional(true ? 0 : -1); + i0.ɵɵadvance(); + i0.ɵɵstoreLet(one_r3 + 1); } } - -… - -$r3$.ɵɵdefineComponent({ - … - decls: 2, - vars: 2, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵconditionalCreate(0, MyApp_Conditional_0_Template, 2, 2); - $r3$.ɵɵdeclareLet(1); - } - if (rf & 2) { - $r3$.ɵɵconditional(true ? 0 : -1); - $r3$.ɵɵadvance(); - $r3$.ɵɵstoreLet(1); +export class MyApp { + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 2, + vars: 2, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵconditionalCreate(0, MyApp_Conditional_0_Template, 2, 2); + i0.ɵɵdeclareLet(1); + } + if (rf & 2) { + i0.ɵɵconditional(true ? 0 : -1); + i0.ɵɵadvance(); + i0.ɵɵstoreLet(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + @if (true) { + @if (true) { + @let three = two + 1; + {{three}} + } + @let two = one + 1; } - }, - … -}); + + @let one = 1; + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_in_child_view.ts", + lineNumber: 16 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_i18n_and_child_view_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_i18n_and_child_view_template.js index 2a2e11f579c5..2d7012dea26d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_i18n_and_child_view_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_i18n_and_child_view_template.js @@ -1,62 +1,106 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyApp_ng_template_3_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵi18n(0, 0, 1); + i0.ɵɵi18n(0, 0, 1); } if (rf & 2) { - $r3$.ɵɵnextContext(); - const $result_r1$ = $r3$.ɵɵreadContextLet(2); - $r3$.ɵɵi18nExp($result_r1$); - $r3$.ɵɵi18nApply(0); + i0.ɵɵnextContext(); + const result_r1 = i0.ɵɵreadContextLet(2); + i0.ɵɵi18nExp(result_r1); + i0.ɵɵi18nApply(0); } } - -… - -$r3$.ɵɵdefineComponent({ - … - decls: 4, - vars: 2, - consts: () => { - let $i18n_0$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_ID_WITH_SUFFIX$ = /* @ts-ignore */ goog.getMsg(" The result is {$interpolation} {$startTagNgTemplate}To repeat, the result is {$interpolation}{$closeTagNgTemplate}", { - "closeTagNgTemplate": "\uFFFD/*3:1\uFFFD", - "interpolation": "[\uFFFD0\uFFFD|\uFFFD0:1\uFFFD]", - "startTagNgTemplate": "\uFFFD*3:1\uFFFD" - }, { - original_code: { - "closeTagNgTemplate": "
    ", - "interpolation": "{{result}}", - "startTagNgTemplate": "" +export class MyApp { + value = 1; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 4, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4767697818648227077$$LET_IN_I18N_AND_CHILD_VIEW_TS_0 = + /* @ts-ignore */ + goog.getMsg( + " The result is {$interpolation} {$startTagNgTemplate}To repeat, the result is {$interpolation}{$closeTagNgTemplate}", + { + "closeTagNgTemplate": "\uFFFD/*3:1\uFFFD", + "interpolation": "[\uFFFD0\uFFFD|\uFFFD0:1\uFFFD]", + "startTagNgTemplate": "\uFFFD*3:1\uFFFD" + }, + { + original_code: { + "closeTagNgTemplate": "", + "interpolation": "{{result}}", + "startTagNgTemplate": "" + } + } + ); + i18n_0 = MSG_EXTERNAL_4767697818648227077$$LET_IN_I18N_AND_CHILD_VIEW_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize` The result is ${"[\uFFFD0\uFFFD|\uFFFD0:1\uFFFD]"}:INTERPOLATION: ${"\uFFFD*3:1\uFFFD"}:START_TAG_NG_TEMPLATE:To repeat, the result is ${"[\uFFFD0\uFFFD|\uFFFD0:1\uFFFD]"}:INTERPOLATION:${"\uFFFD/*3:1\uFFFD"}:CLOSE_TAG_NG_TEMPLATE:`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0); + return [i18n_0]; + }, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵdeclareLet(2); + i0.ɵɵdomTemplate(3, MyApp_ng_template_3_Template, 1, 1, "ng-template"); + i0.ɵɵi18nEnd(); + i0.ɵɵdomElementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + const result_r2 = i0.ɵɵstoreLet(ctx.value * 2); + i0.ɵɵadvance(); + i0.ɵɵi18nExp(result_r2); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` +
    + @let result = value * 2; + The result is {{result}} + To repeat, the result is {{result}} +
    + ` + } + ] } - }); - $i18n_0$ = $MSG_ID_WITH_SUFFIX$; - } else { - /* @ts-ignore */ - $i18n_0$ = $localize ` The result is ${"[\uFFFD0\uFFFD|\uFFFD0:1\uFFFD]"}:INTERPOLATION: ${"\uFFFD*3:1\uFFFD"}:START_TAG_NG_TEMPLATE:To repeat, the result is ${"[\uFFFD0\uFFFD|\uFFFD0:1\uFFFD]"}:INTERPOLATION:${"\uFFFD/*3:1\uFFFD"}:CLOSE_TAG_NG_TEMPLATE:`; - } - $i18n_0$ = $r3$.ɵɵi18nPostprocess($i18n_0$); - return [$i18n_0$]; - }, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElementStart(0, "div"); - $r3$.ɵɵi18nStart(1, 0); - $r3$.ɵɵdeclareLet(2); - $r3$.ɵɵdomTemplate(3, MyApp_ng_template_3_Template, 1, 1, "ng-template"); - $r3$.ɵɵi18nEnd(); - $r3$.ɵɵdomElementEnd(); - } - if (rf & 2) { - $r3$.ɵɵadvance(2); - const $result_r2$ = $r3$.ɵɵstoreLet(ctx.value * 2); - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp($result_r2$); - $r3$.ɵɵi18nApply(1); - } - }, - … -}); + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_in_i18n_and_child_view.ts", + lineNumber: 12 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_i18n_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_i18n_template.js index 63a5395586e5..1fd84c67d8c2 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_i18n_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_i18n_template.js @@ -1,37 +1,79 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 2, - vars: 1, - consts: () => { - let $i18n_0$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_ID_WITH_SUFFIX$ = /* @ts-ignore */ goog.getMsg(" The result is {$interpolation} ", { - "interpolation": "\uFFFD0\uFFFD" - }, { - original_code: { "interpolation": "{{result}}" } - }); - $i18n_0$ = $MSG_ID_WITH_SUFFIX$; - } else { - /* @ts-ignore */ - $i18n_0$ = $localize ` The result is ${"\uFFFD0\uFFFD"}:INTERPOLATION: `; - } - return [$i18n_0$]; - }, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵdomElementEnd(); - } - if (rf & 2) { - const result_r1 = ctx.value * 2; - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(result_r1); - $r3$.ɵɵi18nApply(1); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyApp { + value = 1; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 2, + vars: 1, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_5917233897031232074$$LET_IN_I18N_TS_0 = + /* @ts-ignore */ + goog.getMsg( + " The result is {$interpolation} ", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{result}}" } } + ); + i18n_0 = MSG_EXTERNAL_5917233897031232074$$LET_IN_I18N_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize` The result is ${"\uFFFD0\uFFFD"}:INTERPOLATION: `; + } + return [i18n_0]; + }, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵdomElementEnd(); + } + if (rf & 2) { + const result_r1 = ctx.value * 2; + i0.ɵɵadvance(); + i0.ɵɵi18nExp(result_r1); + i0.ɵɵi18nApply(1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` +
    + @let result = value * 2; + The result is {{result}} +
    + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_in_i18n.ts", + lineNumber: 11 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_listener_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_listener_template.js index dcc31c36d37a..dd17b9a8efba 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_listener_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_in_listener_template.js @@ -1,26 +1,69 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 3, - vars: 2, - … - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - const $_r1$ = $r3$.ɵɵgetCurrentView(); - $r3$.ɵɵdeclareLet(0)(1); - $r3$.ɵɵdomElementStart(2, "button", 0); - $r3$.ɵɵdomListener("click", function MyApp_Template_button_click_2_listener() { - $r3$.ɵɵrestoreView($_r1$); - const $one_1$ = $r3$.ɵɵreadContextLet(0); - const $two_2$ = $r3$.ɵɵreadContextLet(1); - return $r3$.ɵɵresetView(ctx.callback($one_1$, $two_2$)); - }); - $r3$.ɵɵdomElementEnd(); - } - if (rf & 2) { - const $one_r1$ = $r3$.ɵɵstoreLet(ctx.value + 1); - $r3$.ɵɵadvance(); - $r3$.ɵɵstoreLet($one_r1$ + 1); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyApp { + value = 1; + callback(one, two) { + console.log(one, two); + } + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 3, + vars: 2, + consts: [[3, "click"]], + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + const _r1 = i0.ɵɵgetCurrentView(); + i0.ɵɵdeclareLet(0)(1); + i0.ɵɵdomElementStart(2, "button", 0); + i0.ɵɵdomListener("click", function MyApp_Template_button_click_2_listener() { + i0.ɵɵrestoreView(_r1); + const one_r2 = i0.ɵɵreadContextLet(0); + const two_r3 = i0.ɵɵreadContextLet(1); + return i0.ɵɵresetView(ctx.callback(one_r2, two_r3)); + }); + i0.ɵɵdomElementEnd(); + } + if (rf & 2) { + const one_r4 = i0.ɵɵstoreLet(ctx.value + 1); + i0.ɵɵadvance(); + i0.ɵɵstoreLet(one_r4 + 1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + @let one = value + 1; + @let two = one + 1; + + + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_in_listener.ts", + lineNumber: 11 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_invalid_forward_ref_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_invalid_forward_ref_template.js index 016ba377782c..e9bf6511aeeb 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_invalid_forward_ref_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_invalid_forward_ref_template.js @@ -1,18 +1,61 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyApp_ng_template_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵtext(0); + i0.ɵɵtext(0); } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵtextInterpolate1(" ", undefined, " "); - $ctx_r0$.value * 2; + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵtextInterpolate1(" ", i0.ɵɵinvalid(), " "); + ctx_r0.value * 2; } } - -… - -function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomTemplate(0, MyApp_ng_template_0_Template, 1, 1, "ng-template"); - } +export class MyApp { + value = 1; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 1, + vars: 0, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomTemplate(0, MyApp_ng_template_0_Template, 1, 1, "ng-template"); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + + {{result}} + @let result = value * 2; + + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_invalid_forward_ref.ts", + lineNumber: 11 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_local_forward_refs_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_local_forward_refs_template.js index 42528caebb27..ef3ed32d6e02 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_local_forward_refs_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_local_forward_refs_template.js @@ -1,18 +1,56 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 3, - vars: 1, - … - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtext(0); - $r3$.ɵɵdomElement(1, "input", null, 0); - } - if (rf & 2) { - const $name_r1$ = $r3$.ɵɵreference(2); - const $message_1$ = "Hello, " + $name_r1$.value; - $r3$.ɵɵtextInterpolate1(" ", $message_1$, " "); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyApp { + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 3, + vars: 1, + consts: [["name", ""]], + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0); + i0.ɵɵdomElement(1, "input", null, 0); + } + if (rf & 2) { + const name_r1 = i0.ɵɵreference(2); + const message_r2 = "Hello, " + name_r1.value; + i0.ɵɵtextInterpolate1(" ", message_r2, " "); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + @let message = 'Hello, ' + name.value; + {{message}} + + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_local_forward_refs.ts", + lineNumber: 10 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_local_refs_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_local_refs_template.js index 5347f3e13d77..f19b1fac5ff1 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_local_refs_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_local_refs_template.js @@ -1,20 +1,63 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 5, - vars: 1, - … - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElement(0, "input", null, 0)(2, "input", null, 1); - $r3$.ɵɵtext(4); - } - if (rf & 2) { - const $name_r1$ = $r3$.ɵɵreference(1); - const $lastName_r2$ = $r3$.ɵɵreference(3); - const $fullName_2$ = $name_r1$.value + " " + $lastName_r2$.value; - $r3$.ɵɵadvance(4); - $r3$.ɵɵtextInterpolate1(" Hello, ", $fullName_2$, " "); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyApp { + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 5, + vars: 1, + consts: [ + ["name", ""], + ["lastName", ""] + ], + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElement(0, "input", null, 0)(2, "input", null, 1); + i0.ɵɵtext(4); + } + if (rf & 2) { + const name_r1 = i0.ɵɵreference(1); + const lastName_r2 = i0.ɵɵreference(3); + const fullName_r3 = name_r1.value + " " + lastName_r2.value; + i0.ɵɵadvance(4); + i0.ɵɵtextInterpolate1(" Hello, ", fullName_r3, " "); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + + + + @let fullName = name.value + ' ' + lastName.value; + Hello, {{fullName}} + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_local_refs.ts", + lineNumber: 12 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_multiple_optimization_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_multiple_optimization_template.js index 781e70cfae74..80edf89b522d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_multiple_optimization_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_multiple_optimization_template.js @@ -1,21 +1,63 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 2, - vars: 2, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtext(0); - $r3$.ɵɵtext(1); - } - if (rf & 2) { - $r3$.ɵɵtextInterpolate1(" ", ctx.value, " "); - const $one_1$ = ctx.value + 1; - const $two_2$ = $one_1$ + 1; - const $three_3$ = $two_2$ + 1; - $three_3$ + 1; - $r3$.ɵɵadvance(); - $r3$.ɵɵtextInterpolate1(" ", ctx.value, " "); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyApp { + value = 0; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 2, + vars: 2, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0); + i0.ɵɵtext(1); + } + if (rf & 2) { + i0.ɵɵtextInterpolate1(" ", ctx.value, " "); + const one_r1 = ctx.value + 1; + const two_r2 = one_r1 + 1; + const three_r3 = two_r2 + 1; + three_r3 + 1; + i0.ɵɵadvance(); + i0.ɵɵtextInterpolate1(" ", ctx.value, " "); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + {{value}} + @let one = value + 1; + @let two = one + 1; + @let three = two + 1; + @let four = three + 1; + {{value}} + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_multiple_optimization.ts", + lineNumber: 13 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_optimization_child_view_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_optimization_child_view_template.js index 9d8f71d7d5a2..98b9b540ee53 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_optimization_child_view_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_optimization_child_view_template.js @@ -1,39 +1,81 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyApp_Conditional_3_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵtext(0); + i0.ɵɵtext(0); } if (rf & 2) { - $r3$.ɵɵnextContext(); - const $three_0$ = $r3$.ɵɵreadContextLet(1); - $r3$.ɵɵtextInterpolate1(" ", $three_0$, " "); + i0.ɵɵnextContext(); + const three_r1 = i0.ɵɵreadContextLet(1); + i0.ɵɵtextInterpolate1(" ", three_r1, " "); } } - -… - -$r3$.ɵɵdefineComponent({ - … - decls: 4, - vars: 4, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtext(0); - $r3$.ɵɵdeclareLet(1); - $r3$.ɵɵtext(2); - $r3$.ɵɵconditionalCreate(3, MyApp_Conditional_3_Template, 1, 1); - } - if (rf & 2) { - $r3$.ɵɵtextInterpolate1(" ", ctx.value, " "); - const $one_1$ = ctx.value + 1; - const $two_2$ = $one_1$ + 1; - $r3$.ɵɵadvance(); - const $three_3$ = i0.ɵɵstoreLet($two_2$ + 1); - $three_3$ + 1; - $r3$.ɵɵadvance(); - $r3$.ɵɵtextInterpolate1(" ", ctx.value, " "); - $r3$.ɵɵadvance(); - $r3$.ɵɵconditional(true ? 3 : -1); +export class MyApp { + value = 0; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 4, + vars: 4, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0); + i0.ɵɵdeclareLet(1); + i0.ɵɵtext(2); + i0.ɵɵconditionalCreate(3, MyApp_Conditional_3_Template, 1, 1); + } + if (rf & 2) { + i0.ɵɵtextInterpolate1(" ", ctx.value, " "); + const one_r2 = ctx.value + 1; + const two_r3 = one_r2 + 1; + i0.ɵɵadvance(); + const three_r4 = i0.ɵɵstoreLet(two_r3 + 1); + three_r4 + 1; + i0.ɵɵadvance(); + i0.ɵɵtextInterpolate1(" ", ctx.value, " "); + i0.ɵɵadvance(); + i0.ɵɵconditional(true ? 3 : -1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + {{value}} + @let one = value + 1; + @let two = one + 1; + @let three = two + 1; + @let four = three + 1; + {{value}} + @if (true) { + {{three}} } - }, - … -}); + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_optimization_child_view.ts", + lineNumber: 16 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_optimization_listener_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_optimization_listener_template.js index b1392dd240c3..81078b9a2923 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_optimization_listener_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_optimization_listener_template.js @@ -1,32 +1,78 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 4, - vars: 3, - … - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - const $_r1$ = $r3$.ɵɵgetCurrentView(); - $r3$.ɵɵtext(0); - $r3$.ɵɵdeclareLet(1); - $r3$.ɵɵtext(2); - $r3$.ɵɵdomElementStart(3, "button", 0); - $r3$.ɵɵdomListener("click", function MyApp_Template_button_click_3_listener() { - $r3$.ɵɵrestoreView($_r1$); - const $three_1$ = $r3$.ɵɵreadContextLet(1); - return $r3$.ɵɵresetView(ctx.callback($three_1$)); - }); - $r3$.ɵɵdomElementEnd(); - } - if (rf & 2) { - $r3$.ɵɵtextInterpolate1(" ", ctx.value, " "); - const $one_2$ = ctx.value + 1; - const $two_3$ = $one_2$ + 1; - $r3$.ɵɵadvance(); - const $three_5$ = $r3$.ɵɵstoreLet($two_3$ + 1); - $three_5$ + 1; - $r3$.ɵɵadvance(); - $r3$.ɵɵtextInterpolate1(" ", ctx.value, " "); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyApp { + value = 0; + callback(value) { + console.log(value); + } + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 4, + vars: 3, + consts: [[3, "click"]], + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + const _r1 = i0.ɵɵgetCurrentView(); + i0.ɵɵtext(0); + i0.ɵɵdeclareLet(1); + i0.ɵɵtext(2); + i0.ɵɵdomElementStart(3, "button", 0); + i0.ɵɵdomListener("click", function MyApp_Template_button_click_3_listener() { + i0.ɵɵrestoreView(_r1); + const three_r2 = i0.ɵɵreadContextLet(1); + return i0.ɵɵresetView(ctx.callback(three_r2)); + }); + i0.ɵɵdomElementEnd(); + } + if (rf & 2) { + i0.ɵɵtextInterpolate1(" ", ctx.value, " "); + const one_r3 = ctx.value + 1; + const two_r4 = one_r3 + 1; + i0.ɵɵadvance(); + const three_r5 = i0.ɵɵstoreLet(two_r4 + 1); + three_r5 + 1; + i0.ɵɵadvance(); + i0.ɵɵtextInterpolate1(" ", ctx.value, " "); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + {{value}} + @let one = value + 1; + @let two = one + 1; + @let three = two + 1; + @let four = three + 1; + {{value}} + + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_optimization_listener.ts", + lineNumber: 14 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_partial_optimization_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_partial_optimization_template.js index 0f1ba0151d9e..7fd6ad4ddcd5 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_partial_optimization_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_partial_optimization_template.js @@ -1,21 +1,63 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 2, - vars: 2, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtext(0); - $r3$.ɵɵtext(1); - } - if (rf & 2) { - $r3$.ɵɵtextInterpolate1(" ", ctx.value, " "); - const $one_0$ = ctx.value + 1; - const $two_1$ = $one_0$ + 1; - const $three_2$ = $two_1$ + 1; - $three_2$ + 1; - $r3$.ɵɵadvance(); - $r3$.ɵɵtextInterpolate1(" ", $two_1$, " "); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyApp { + value = 0; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 2, + vars: 2, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0); + i0.ɵɵtext(1); + } + if (rf & 2) { + i0.ɵɵtextInterpolate1(" ", ctx.value, " "); + const one_r1 = ctx.value + 1; + const two_r2 = one_r1 + 1; + const three_r3 = two_r2 + 1; + three_r3 + 1; + i0.ɵɵadvance(); + i0.ɵɵtextInterpolate1(" ", two_r2, " "); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + {{value}} + @let one = value + 1; + @let two = one + 1; + @let three = two + 1; + @let four = three + 1; + {{two}} + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_partial_optimization.ts", + lineNumber: 13 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_preceded_by_i18n_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_preceded_by_i18n_template.js index 92bb743bbc6a..07abdc95cb1c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_preceded_by_i18n_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_preceded_by_i18n_template.js @@ -1,53 +1,91 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyApp_ng_template_3_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵtext(0); + i0.ɵɵtext(0); } if (rf & 2) { - $r3$.ɵɵnextContext(); - const $result_r1$ = $r3$.ɵɵreadContextLet(2); - $r3$.ɵɵtextInterpolate1("The result is ", $result_r1$); + i0.ɵɵnextContext(); + const result_r1 = i0.ɵɵreadContextLet(2); + i0.ɵɵtextInterpolate1("The result is ", result_r1); } } - -… - -$r3$.ɵɵdefineComponent({ - … - decls: 4, - vars: 2, - consts: () => { - let $i18n_0$; - if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { - /** - * @suppress {msgDescriptions} - */ - const $MSG_ID_WITH_SUFFIX$ = /* @ts-ignore */ goog.getMsg("Hello {$interpolation}", { - "interpolation": "\uFFFD0\uFFFD" - }, { - original_code: { "interpolation": "{{value}}" } - }); - $i18n_0$ = $MSG_ID_WITH_SUFFIX$; - } else { - /* @ts-ignore */ - $i18n_0$ = $localize `Hello ${"\uFFFD0\uFFFD"}:INTERPOLATION:`; - } - return [$i18n_0$]; - }, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElementStart(0, "div"); - $r3$.ɵɵi18n(1, 0); - $r3$.ɵɵdomElementEnd(); - $r3$.ɵɵdeclareLet(2); - $r3$.ɵɵdomTemplate(3, MyApp_ng_template_3_Template, 1, 1, "ng-template"); - } - if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵi18nExp(ctx.value); - $r3$.ɵɵi18nApply(1); - $r3$.ɵɵadvance(); - $r3$.ɵɵstoreLet(ctx.value * 2); - } - }, - … -}); +export class MyApp { + value = 1; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 4, + vars: 2, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_4986895904639400025$$LET_PRECEDED_BY_I18N_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "Hello {$interpolation}", + { "interpolation": "\uFFFD0\uFFFD" }, + { original_code: { "interpolation": "{{value}}" } } + ); + i18n_0 = MSG_EXTERNAL_4986895904639400025$$LET_PRECEDED_BY_I18N_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`Hello ${"\uFFFD0\uFFFD"}:INTERPOLATION:`; + } + return [i18n_0]; + }, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElementStart(0, "div"); + i0.ɵɵi18n(1, 0); + i0.ɵɵdomElementEnd(); + i0.ɵɵdeclareLet(2); + i0.ɵɵdomTemplate(3, MyApp_ng_template_3_Template, 1, 1, "ng-template"); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵi18nExp(ctx.value); + i0.ɵɵi18nApply(1); + i0.ɵɵadvance(); + i0.ɵɵstoreLet(ctx.value * 2); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` +
    Hello {{value}}
    + @let result = value * 2; + The result is {{result}} + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_preceded_by_i18n.ts", + lineNumber: 10 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_shared_with_child_view_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_shared_with_child_view_template.js index 1bc1ee504c50..33592e69e9c5 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_shared_with_child_view_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_shared_with_child_view_template.js @@ -1,31 +1,66 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyApp_ng_template_2_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵtext(0); + i0.ɵɵtext(0); } if (rf & 2) { - $r3$.ɵɵnextContext(); - const $value_0$ = $r3$.ɵɵreadContextLet(0); - $r3$.ɵɵtextInterpolate($value_0$); + i0.ɵɵnextContext(); + const value_r1 = i0.ɵɵreadContextLet(0); + i0.ɵɵtextInterpolate(value_r1); } } - -… - -$r3$.ɵɵdefineComponent({ - … - decls: 3, - vars: 2, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdeclareLet(0); - $r3$.ɵɵtext(1); - $r3$.ɵɵdomTemplate(2, MyApp_ng_template_2_Template, 1, 1, "ng-template"); - } - if (rf & 2) { - const $value_r0$ = $r3$.ɵɵstoreLet(123); - $r3$.ɵɵadvance(); - $r3$.ɵɵtextInterpolate1(" ", $value_r0$, " "); - } - }, - … -}); +export class MyApp { + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 3, + vars: 2, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdeclareLet(0); + i0.ɵɵtext(1); + i0.ɵɵdomTemplate(2, MyApp_ng_template_2_Template, 1, 1, "ng-template"); + } + if (rf & 2) { + const value_r2 = i0.ɵɵstoreLet(123); + i0.ɵɵadvance(); + i0.ɵɵtextInterpolate1(" ", value_r2, " "); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + @let value = 123; + {{value}} + {{value}} + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_shared_with_child_view.ts", + lineNumber: 10 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_single_optimization_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_single_optimization_template.js index 014fa4c11fb3..3399a33871dd 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_single_optimization_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_single_optimization_template.js @@ -1,18 +1,57 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 2, - vars: 2, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtext(0); - $r3$.ɵɵtext(1); - } - if (rf & 2) { - $r3$.ɵɵtextInterpolate1(" ", ctx.value, " "); - ctx.value * 2; - $r3$.ɵɵadvance(); - $r3$.ɵɵtextInterpolate1(" ", ctx.value, " "); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyApp { + value = 0; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 2, + vars: 2, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0); + i0.ɵɵtext(1); + } + if (rf & 2) { + i0.ɵɵtextInterpolate1(" ", ctx.value, " "); + ctx.value * 2; + i0.ɵɵadvance(); + i0.ɵɵtextInterpolate1(" ", ctx.value, " "); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + {{value}} + @let result = value * 2; + {{value}} + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_single_optimization.ts", + lineNumber: 10 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_with_pipe_optimization_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_with_pipe_optimization_template.js index fc68633bf142..0bd749425aad 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_with_pipe_optimization_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_with_pipe_optimization_template.js @@ -1,18 +1,85 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 3, - vars: 3, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdeclareLet(0); - $r3$.ɵɵpipe(1, "double"); - $r3$.ɵɵtext(2); - } - if (rf & 2) { - const $foo_r1$ = $r3$.ɵɵpipeBind1(1, 1, ctx.value) + 3; - $r3$.ɵɵadvance(2); - $r3$.ɵɵtextInterpolate1(" ", $foo_r1$, " "); - } - }, - … -}); +import { Component, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; +export class DoublePipe { + transform(value) { + return value * 2; + } + static ɵfac = function DoublePipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || DoublePipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "double", type: DoublePipe, pure: true }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + DoublePipe, + [ + { + type: Pipe, + args: [ + { + name: "double" + } + ] + } + ], + null, + null + ); +})(); +export class MyApp { + value = 1; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 3, + vars: 3, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdeclareLet(0); + i0.ɵɵpipe(1, "double"); + i0.ɵɵtext(2); + } + if (rf & 2) { + const foo_r1 = i0.ɵɵpipeBind1(1, 1, ctx.value) + 3; + i0.ɵɵadvance(2); + i0.ɵɵtextInterpolate1(" ", foo_r1, " "); + } + }, + dependencies: [DoublePipe], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + @let foo = (value | double) + 3; + {{foo}} + `, + imports: [DoublePipe] + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_with_pipe_optimization.ts", + lineNumber: 19 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_with_pipe_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_with_pipe_template.js index b29cf3f52c84..99cf48b80ad4 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_with_pipe_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/let_with_pipe_template.js @@ -1,19 +1,87 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 3, - vars: 3, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdeclareLet(0); - $r3$.ɵɵpipe(1, "double"); - $r3$.ɵɵtext(2); - } - if (rf & 2) { - const $one_0$ = ctx.value + 1; - const $result_1$ = $r3$.ɵɵpipeBind1(1, 1, $one_0$); - $r3$.ɵɵadvance(2); - $r3$.ɵɵtextInterpolate1(" The result is ", $result_1$, " "); - } - }, - … -}); +import { Component, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; +export class DoublePipe { + transform(value) { + return value * 2; + } + static ɵfac = function DoublePipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || DoublePipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "double", type: DoublePipe, pure: true }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + DoublePipe, + [ + { + type: Pipe, + args: [ + { + name: "double" + } + ] + } + ], + null, + null + ); +})(); +export class MyApp { + value = 1; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 3, + vars: 3, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdeclareLet(0); + i0.ɵɵpipe(1, "double"); + i0.ɵɵtext(2); + } + if (rf & 2) { + const one_r1 = ctx.value + 1; + const result_r2 = i0.ɵɵpipeBind1(1, 1, one_r1); + i0.ɵɵadvance(2); + i0.ɵɵtextInterpolate1(" The result is ", result_r2, " "); + } + }, + dependencies: [DoublePipe], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + @let one = value + 1; + @let result = one | double; + The result is {{result}} + `, + imports: [DoublePipe] + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "let_with_pipe.ts", + lineNumber: 20 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/multiple_let_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/multiple_let_template.js index b0258b180533..775c0b0a707c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/multiple_let_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/multiple_let_template.js @@ -1,17 +1,57 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 1, - vars: 1, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtext(0); - } - if (rf & 2) { - const $one_0$ = ctx.value + 1; - const $two_1$ = $one_0$ + 1; - const $result_2$ = $two_1$ + 1; - $r3$.ɵɵtextInterpolate1(" The result is ", $result_2$, " "); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyApp { + value = 1; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 1, + vars: 1, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0); + } + if (rf & 2) { + const one_r1 = ctx.value + 1; + const two_r2 = one_r1 + 1; + const result_r3 = two_r2 + 1; + i0.ɵɵtextInterpolate1(" The result is ", result_r3, " "); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + @let one = value + 1; + @let two = one + 1; + @let result = two + 1; + The result is {{result}} + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "multiple_let.ts", + lineNumber: 11 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/shadowed_let_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/shadowed_let_template.js index 22a8d0e82a98..aa36cda9296b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/shadowed_let_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/shadowed_let_template.js @@ -1,27 +1,65 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyApp_Conditional_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵtext(0); + i0.ɵɵtext(0); } if (rf & 2) { - const $value_r1$ = "local"; - $r3$.ɵɵtextInterpolate1(" The value comes from ", $value_r1$, " "); + const value_r1 = "local"; + i0.ɵɵtextInterpolate1(" The value comes from ", value_r1, " "); } } +export class MyApp { + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 1, + vars: 1, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵconditionalCreate(0, MyApp_Conditional_0_Template, 1, 1); + } + if (rf & 2) { + ("parent"); + i0.ɵɵconditional(true ? 0 : -1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + @let value = 'parent'; -… - -$r3$.ɵɵdefineComponent({ - … - decls: 1, - vars: 1, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵconditionalCreate(0, MyApp_Conditional_0_Template, 1, 1); - } - if (rf & 2) { - "parent"; - $r3$.ɵɵconditional(true ? 0 : -1); + @if (true) { + @let value = 'local'; + The value comes from {{value}} } - }, - … -}); + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "shadowed_let.ts", + lineNumber: 13 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/simple_let_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/simple_let_template.js index aa24a681a361..f9bf9dc29b1c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/simple_let_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/simple_let_template.js @@ -1,15 +1,49 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 1, - vars: 1, - template: function MyApp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtext(0); - } - if (rf & 2) { - const $result_0$ = ctx.value * 2; - $r3$.ɵɵtextInterpolate1(" The result is ", $result_0$, " "); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyApp { + value = 1; + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["ng-component"]], + decls: 1, + vars: 1, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0); + } + if (rf & 2) { + const result_r1 = ctx.value * 2; + i0.ɵɵtextInterpolate1(" The result is ", result_r1, " "); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + template: ` + @let result = value * 2; + The result is {{result}} + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { className: "MyApp", filePath: "simple_let.ts", lineNumber: 9 }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/TEST_CASES.json b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/TEST_CASES.json index 8f6e95252815..7c7105c98888 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/TEST_CASES.json +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/TEST_CASES.json @@ -51,22 +51,7 @@ "inputFiles": ["local_ref_before_listener.ts"], "expectations": [ { - "files": [ - { - "expected": "local_ref_before_listener.js", - "generated": "local_ref_before_listener.js" - } - ], - "failureMessage": "Incorrect template" - }, - { - "files": [ - { - "expected": "local_ref_before_listener_factory.js", - "generated": "local_ref_before_listener.js" - } - ], - "failureMessage": "Incorrect factory" + "files": ["local_ref_before_listener.js"] } ] }, diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/component_listener_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/component_listener_template.js index c5798ccf87ea..cdc5cc3d96c4 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/component_listener_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/component_listener_template.js @@ -1,11 +1,128 @@ -… -consts: [[__AttributeMarker.Bindings__, "click"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "my-app", 0); - $r3$.ɵɵlistener("click", function MyComponent_Template_my_app_click_0_listener($event) { - return ctx.onClick($event); +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyApp { + static ɵfac = function MyApp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyApp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyApp, + selectors: [["my-app"]], + standalone: false, + decls: 2, + vars: 0, + template: function MyApp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵtext(1, "My App"); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyApp, + [ + { + type: Component, + args: [ + { + selector: "my-app", + template: `
    My App
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyApp, { + className: "MyApp", + filePath: "component_listener.ts", + lineNumber: 7 + }); +})(); +export class MyComponent { + onClick(event) {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [[3, "click"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "my-app", 0); + i0.ɵɵlistener("click", function MyComponent_Template_my_app_click_0_listener($event) { + return ctx.onClick($event); + }); + i0.ɵɵelementEnd(); + } + }, + dependencies: [MyApp], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ``, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "component_listener.ts", + lineNumber: 14 }); - $r3$.ɵɵelementEnd(); - } +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent, MyApp] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, MyApp] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/cross_element_chained_listeners_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/cross_element_chained_listeners_template.js index ae1288840a16..8950015ca4fd 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/cross_element_chained_listeners_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/cross_element_chained_listeners_template.js @@ -1,12 +1,154 @@ -… -consts: [[__AttributeMarker.Bindings__, "click", "change"], [__AttributeMarker.Bindings__, "update", "delete"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div", 0); - $r3$.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { return ctx.click(); })("change", function MyComponent_Template_div_change_0_listener() { return ctx.change(); }); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(1, "some-comp", 1); - $r3$.ɵɵlistener("update", function MyComponent_Template_some_comp_update_1_listener() { return ctx.update(); })("delete", function MyComponent_Template_some_comp_delete_1_listener() { return ctx.delete(); }); - $r3$.ɵɵelementEnd(); - } +import { Component, EventEmitter, NgModule, Output } from "@angular/core"; +import * as i0 from "@angular/core"; +export class SomeComp { + update = new EventEmitter(); + delete = new EventEmitter(); + static ɵfac = function SomeComp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || SomeComp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: SomeComp, + selectors: [["some-comp"]], + outputs: { update: "update", delete: "delete" }, + standalone: false, + decls: 0, + vars: 0, + template: function SomeComp_Template(rf, ctx) {}, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + SomeComp, + [ + { + type: Component, + args: [ + { + selector: "some-comp", + template: "", + standalone: false + } + ] + } + ], + null, + { + update: [ + { + type: Output + } + ], + delete: [ + { + type: Output + } + ] + } + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(SomeComp, { + className: "SomeComp", + filePath: "cross_element_chained_listeners.ts", + lineNumber: 8 + }); +})(); +export class MyComponent { + click() {} + change() {} + delete() {} + update() {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 0, + consts: [ + [3, "click", "change"], + [3, "update", "delete"] + ], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 0); + i0.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { + return ctx.click(); + })("change", function MyComponent_Template_div_change_0_listener() { + return ctx.change(); + }); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(1, "some-comp", 1); + i0.ɵɵlistener("update", function MyComponent_Template_some_comp_update_1_listener() { + return ctx.update(); + })("delete", function MyComponent_Template_some_comp_delete_1_listener() { + return ctx.delete(); + }); + i0.ɵɵelementEnd(); + } + }, + dependencies: [SomeComp], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "cross_element_chained_listeners.ts", + lineNumber: 21 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent, SomeComp] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, SomeComp] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/element_listener_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/element_listener_template.js index c460a2d86614..2d3c4720b2aa 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/element_listener_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/element_listener_template.js @@ -1,12 +1,80 @@ -… -consts: [[__AttributeMarker.Bindings__, "click"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div", 0); - $r3$.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener($event) { - ctx.onClick($event); - return 1 == 1; +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + onClick(event) {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [[3, "click"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 0); + i0.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener($event) { + ctx.onClick($event); + return 1 == 1; + }); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "element_listener.ts", + lineNumber: 7 }); - $r3$.ɵɵelementEnd(); - } +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/embedded_view_listener_context_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/embedded_view_listener_context_template.js index 76a368ac171b..d758c753e331 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/embedded_view_listener_context_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/embedded_view_listener_context_template.js @@ -1,13 +1,90 @@ -function MyComponent_ng_template_0_Template(rf, $ctx$) { - if (rf & 1) { - const $_r3$ = $i0$.ɵɵgetCurrentView(); - $i0$.ɵɵelementStart(0, "button", 0); - $i0$.ɵɵlistener("click", function MyComponent_ng_template_0_Template_button_click_0_listener() { - const $obj_r1$ = $i0$.ɵɵrestoreView($_r3$).$implicit; - return $i0$.ɵɵresetView($obj_r1$.value = 1); - }); - $i0$.ɵɵtext(1, "Change"); - $i0$.ɵɵelementEnd(); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_ng_template_0_Template(rf, ctx) { + if (rf & 1) { + const _r1 = i0.ɵɵgetCurrentView(); + i0.ɵɵelementStart(0, "button", 0); + i0.ɵɵlistener("click", function MyComponent_ng_template_0_Template_button_click_0_listener() { + const obj_r2 = i0.ɵɵrestoreView(_r1).$implicit; + return i0.ɵɵresetView((obj_r2.value = 1)); + }); + i0.ɵɵtext(1, "Change"); + i0.ɵɵelementEnd(); } - \ No newline at end of file +} +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [[3, "click"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 2, 0, "ng-template"); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + + + + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "embedded_view_listener_context.ts", + lineNumber: 12 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_host_listener_implicit_meaning_host_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_host_listener_implicit_meaning_host_bindings.js index 762dad6d1cf6..0b5d07f2f4c1 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_host_listener_implicit_meaning_host_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_host_listener_implicit_meaning_host_bindings.js @@ -1,2 +1,38 @@ -… -i0.ɵɵlistener("click", function Dir_click_HostBindingHandler($event) { return ctx.c($event); }); +import { Directive } from "@angular/core"; +import * as i0 from "@angular/core"; +class Dir { + c(event) {} + static ɵfac = function Dir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || Dir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: Dir, + hostBindings: function Dir_HostBindings(rf, ctx) { + if (rf & 1) { + i0.ɵɵlistener("click", function Dir_click_HostBindingHandler($event) { + return ctx.c($event); + }); + } + }, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + Dir, + [ + { + type: Directive, + args: [ + { + host: { "(click)": "c($event)" }, + standalone: false + } + ] + } + ], + null, + null + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_listener_implicit_meaning_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_listener_implicit_meaning_template.js index e8287c49bd5e..7b731179f0f7 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_listener_implicit_meaning_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_arg_listener_implicit_meaning_template.js @@ -1,2 +1,53 @@ -… -i0.ɵɵlistener("click", function Comp_Template_div_click_0_listener($event) { return ctx.c($event); }); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +class Comp { + c(event) {} + static ɵfac = function Comp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || Comp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: Comp, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [[3, "click"]], + template: function Comp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 0); + i0.ɵɵlistener("click", function Comp_Template_div_click_0_listener($event) { + return ctx.c($event); + }); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + Comp, + [ + { + type: Component, + args: [ + { + template: '
    ', + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(Comp, { + className: "Comp", + filePath: "event_arg_listener_implicit_meaning.ts", + lineNumber: 7 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_explicit_access_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_explicit_access_template.js index fb473cc5c60b..5da26a258290 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_explicit_access_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_explicit_access_template.js @@ -1,2 +1,54 @@ -… -i0.ɵɵlistener("click", function Comp_Template_div_click_0_listener() { return ctx.c(ctx.$event); }); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +class Comp { + $event = {}; + c(value) {} + static ɵfac = function Comp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || Comp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: Comp, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [[3, "click"]], + template: function Comp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 0); + i0.ɵɵlistener("click", function Comp_Template_div_click_0_listener() { + return ctx.c(ctx.$event); + }); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + Comp, + [ + { + type: Component, + args: [ + { + template: '
    ', + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(Comp, { + className: "Comp", + filePath: "event_explicit_access.ts", + lineNumber: 7 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_host_explicit_access_host_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_host_explicit_access_host_bindings.js index 0fe7a768c448..c3e668eafa6a 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_host_explicit_access_host_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_host_explicit_access_host_bindings.js @@ -1,2 +1,41 @@ -… -i0.ɵɵlistener("click", function Dir_click_HostBindingHandler() { return ctx.c(ctx.$event); }); +import { Directive } from "@angular/core"; +import * as i0 from "@angular/core"; +class Dir { + $event = {}; + c(value) {} + static ɵfac = function Dir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || Dir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: Dir, + hostBindings: function Dir_HostBindings(rf, ctx) { + if (rf & 1) { + i0.ɵɵlistener("click", function Dir_click_HostBindingHandler() { + return ctx.c(ctx.$event); + }); + } + }, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + Dir, + [ + { + type: Directive, + args: [ + { + host: { + "(click)": "c(this.$event)" + }, + standalone: false + } + ] + } + ], + null, + null + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_in_property_binding_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_in_property_binding_template.js index b69d04e1c934..e0b97322acbd 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_in_property_binding_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_in_property_binding_template.js @@ -1,2 +1,115 @@ -… -i0.ɵɵproperty("event", ctx.$event); +import { Component, Directive, Input, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class DivDir { + event; + static ɵfac = function DivDir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || DivDir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: DivDir, + selectors: [["div"]], + inputs: { event: "event" }, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + DivDir, + [ + { + type: Directive, + args: [ + { + selector: "div", + standalone: false + } + ] + } + ], + null, + { + event: [ + { + type: Input + } + ] + } + ); +})(); +class Comp { + $event = 1; + static ɵfac = function Comp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || Comp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: Comp, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: [[3, "event"]], + template: function Comp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div", 0); + } + if (rf & 2) { + i0.ɵɵproperty("event", ctx.$event); + } + }, + dependencies: [DivDir], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + Comp, + [ + { + type: Component, + args: [ + { + template: '
    ', + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(Comp, { + className: "Comp", + filePath: "event_in_property_binding.ts", + lineNumber: 15 + }); +})(); +export class MyMod { + static ɵfac = function MyMod_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyMod)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyMod }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyMod, + [ + { + type: NgModule, + args: [{ declarations: [Comp, DivDir] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyMod, { declarations: [Comp, DivDir] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/has_event_arg_host_listener_host_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/has_event_arg_host_listener_host_bindings.js index 600c50ebb924..3fbfb0590526 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/has_event_arg_host_listener_host_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/has_event_arg_host_listener_host_bindings.js @@ -1,8 +1,38 @@ -… -hostBindings: function MyComponent_HostBindings(rf, ctx) { - if (rf & 1) { - i0.ɵɵlistener("click", function MyComponent_click_HostBindingHandler($event) { - return ctx.click($event.target); - }); - } +import { Directive, HostListener } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + click(target) {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: MyComponent, + hostBindings: function MyComponent_HostBindings(rf, ctx) { + if (rf & 1) { + i0.ɵɵlistener("click", function MyComponent_click_HostBindingHandler($event) { + return ctx.click($event.target); + }); + } + } + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Directive + } + ], + null, + { + click: [ + { + type: HostListener, + args: ["click", ["$event.target"]] + } + ] + } + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/host_listener_property_host_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/host_listener_property_host_bindings.js index d128ed4ebc7e..bc04c1fce5ab 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/host_listener_property_host_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/host_listener_property_host_bindings.js @@ -1,10 +1,51 @@ -… -hostBindings: function MyComponent_HostBindings(rf, ctx) { - if (rf & 1) { - i0.ɵɵlistener("click", function MyComponent_click_HostBindingHandler($event) { - return ctx.handleClick($event); - })("beforeunload", function MyComponent_beforeunload_HostBindingHandler($event) { - return ctx.handleBeforeUnload($event); - }, i0.ɵɵresolveWindow); - } +import { Directive, HostListener } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + handleClick = $event => {}; + handleBeforeUnload = $event => {}; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: MyComponent, + hostBindings: function MyComponent_HostBindings(rf, ctx) { + if (rf & 1) { + i0.ɵɵlistener("click", function MyComponent_click_HostBindingHandler($event) { + return ctx.handleClick($event); + })( + "beforeunload", + function MyComponent_beforeunload_HostBindingHandler($event) { + return ctx.handleBeforeUnload($event); + }, + i0.ɵɵresolveWindow + ); + } + } + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Directive + } + ], + null, + { + handleClick: [ + { + type: HostListener, + args: ["click", ["$event"]] + } + ], + handleBeforeUnload: [ + { + type: HostListener, + args: ["window:beforeunload", ["$event"]] + } + ] + } + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/implicit_receiver_keyed_write_inside_template_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/implicit_receiver_keyed_write_inside_template_template.js index 0d84b7133e2b..50e13beb1616 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/implicit_receiver_keyed_write_inside_template_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/implicit_receiver_keyed_write_inside_template_template.js @@ -1,13 +1,104 @@ -function MyComponent_ng_template_0_Template(rf, $ctx$) { +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) { - const $_r3$ = $i0$.ɵɵgetCurrentView(); - $i0$.ɵɵelementStart(0, "button", 1); - $i0$.ɵɵlistener("click", function MyComponent_ng_template_0_Template_button_click_0_listener() { - $i0$.ɵɵrestoreView($_r3$); - const $ctx_2$ = $i0$.ɵɵnextContext(); - return $i0$.ɵɵresetView($ctx_2$["mes" + "sage"] = "hello"); + const _r1 = i0.ɵɵgetCurrentView(); + i0.ɵɵelementStart(0, "button", 1); + i0.ɵɵlistener("click", function MyComponent_ng_template_0_Template_button_click_0_listener() { + i0.ɵɵrestoreView(_r1); + const ctx_r1 = i0.ɵɵnextContext(); + return i0.ɵɵresetView((ctx_r1["mes" + "sage"] = "hello")); }); - $i0$.ɵɵtext(1, "Click me"); - $i0$.ɵɵelementEnd(); + i0.ɵɵtext(1, "Click me"); + i0.ɵɵelementEnd(); } } +export class MyComponent { + message = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 0, + consts: [ + ["template", ""], + [3, "click"] + ], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate( + 0, + MyComponent_ng_template_0_Template, + 2, + 0, + "ng-template", + null, + 0, + i0.ɵɵtemplateRefExtractor + ); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + + + + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "implicit_receiver_keyed_write_inside_template.ts", + lineNumber: 12 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/listener_unused_let_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/listener_unused_let_template.js index 91d46fac32a6..3bdb8e626588 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/listener_unused_let_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/listener_unused_let_template.js @@ -1,20 +1,61 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 2, - vars: 1, - consts: [[3, "click"]], - template: function TestCmp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElementStart(0, "button", 0); - $r3$.ɵɵdomListener("click", function TestCmp_Template_button_click_0_listener() { return ctx.noop(); }); - $r3$.ɵɵdomElementEnd(); - $r3$.ɵɵtext(1); - } - if (rf & 2) { - const $foo_r1$ = 123; - $r3$.ɵɵadvance(); - $r3$.ɵɵtextInterpolate1(" ", $foo_r1$, " "); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class TestCmp { + noop() {} + static ɵfac = function TestCmp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestCmp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: TestCmp, + selectors: [["ng-component"]], + decls: 2, + vars: 1, + consts: [[3, "click"]], + template: function TestCmp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElementStart(0, "button", 0); + i0.ɵɵdomListener("click", function TestCmp_Template_button_click_0_listener() { + return ctx.noop(); + }); + i0.ɵɵdomElementEnd(); + i0.ɵɵtext(1); + } + if (rf & 2) { + const foo_r1 = 123; + i0.ɵɵadvance(); + i0.ɵɵtextInterpolate1(" ", foo_r1, " "); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestCmp, + [ + { + type: Component, + args: [ + { + template: ` + @let foo = 123; + + {{foo}} + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(TestCmp, { + className: "TestCmp", + filePath: "listener_unused_let.ts", + lineNumber: 10 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener.js index f8bc135d8260..7322216de459 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener.js @@ -1,27 +1,90 @@ -… +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - … - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ + onClick(v) {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MyComponent, selectors: [["my-component"]], standalone: false, decls: 4, vars: 0, - consts: [["user", ""], [__AttributeMarker.Bindings__, "click"]], - template: function MyComponent_Template(rf, ctx) { + consts: [ + ["user", ""], + [3, "click"] + ], + template: function MyComponent_Template(rf, ctx) { if (rf & 1) { - const $s$ = $r3$.ɵɵgetCurrentView(); - $r3$.ɵɵelementStart(0, "button", 1); - $r3$.ɵɵlistener("click", function MyComponent_Template_button_click_0_listener() { - $r3$.ɵɵrestoreView($s$); - const $user$ = $r3$.ɵɵreference(3); - return $r3$.ɵɵresetView(ctx.onClick($user$.value)); - }); - $r3$.ɵɵtext(1, "Save"); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelement(2, "input", null, 0); + const _r1 = i0.ɵɵgetCurrentView(); + i0.ɵɵelementStart(0, "button", 1); + i0.ɵɵlistener("click", function MyComponent_Template_button_click_0_listener() { + i0.ɵɵrestoreView(_r1); + const user_r2 = i0.ɵɵreference(3); + return i0.ɵɵresetView(ctx.onClick(user_r2.value)); + }); + i0.ɵɵtext(1, "Save"); + i0.ɵɵelementEnd(); + i0.ɵɵelement(2, "input", null, 0); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + + + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "local_ref_before_listener.ts", + lineNumber: 11 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener_factory.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener_factory.js deleted file mode 100644 index abd3cc26c9f8..000000000000 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/local_ref_before_listener_factory.js +++ /dev/null @@ -1,5 +0,0 @@ -export class MyComponent { - … - static ɵfac = function MyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyComponent)(); }; - … -} diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/mixed_one_way_two_way_listener_order.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/mixed_one_way_two_way_listener_order.js index 990dc8b83b23..7d20d7756f20 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/mixed_one_way_two_way_listener_order.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/mixed_one_way_two_way_listener_order.js @@ -1,18 +1,132 @@ -if (rf & 1) { - $r3$.ɵɵelementStart(0, "div", 0); - $r3$.ɵɵtwoWayListener("aChange", function App_Template_div_aChange_0_listener($event) { - $r3$.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); - return $event; +import { Component, Directive, EventEmitter, Input, Output } from "@angular/core"; +import * as i0 from "@angular/core"; +export class Dir { + a = ""; + aChange = new EventEmitter(); + b = new EventEmitter(); + c = ""; + cChange = new EventEmitter(); + d = new EventEmitter(); + static ɵfac = function Dir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || Dir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: Dir, + selectors: [["", "dir", ""]], + inputs: { a: "a", c: "c" }, + outputs: { aChange: "aChange", b: "b", cChange: "cChange", d: "d" } }); - $r3$.ɵɵlistener("b", function App_Template_div_b_0_listener() { - return ctx.noop(); - }); - $r3$.ɵɵtwoWayListener("cChange", function App_Template_div_cChange_0_listener($event) { - $r3$.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); - return $event; - }); - $r3$.ɵɵlistener("d", function App_Template_div_d_0_listener() { - return ctx.noop(); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + Dir, + [ + { + type: Directive, + args: [{ selector: "[dir]" }] + } + ], + null, + { + a: [ + { + type: Input + } + ], + aChange: [ + { + type: Output + } + ], + b: [ + { + type: Output + } + ], + c: [ + { + type: Input + } + ], + cChange: [ + { + type: Output + } + ], + d: [ + { + type: Output + } + ] + } + ); +})(); +export class App { + value = "hi"; + noop = () => {}; + static ɵfac = function App_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || App)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: App, + selectors: [["ng-component"]], + decls: 1, + vars: 2, + consts: [["dir", "", 3, "aChange", "b", "cChange", "d", "a", "c"]], + template: function App_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 0); + i0.ɵɵtwoWayListener("aChange", function App_Template_div_aChange_0_listener($event) { + i0.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); + return $event; + }); + i0.ɵɵlistener("b", function App_Template_div_b_0_listener() { + return ctx.noop(); + }); + i0.ɵɵtwoWayListener("cChange", function App_Template_div_cChange_0_listener($event) { + i0.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); + return $event; + }); + i0.ɵɵlistener("d", function App_Template_div_d_0_listener() { + return ctx.noop(); + }); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵtwoWayProperty("a", ctx.value)("c", ctx.value); + } + }, + dependencies: [Dir], + encapsulation: 2 }); - $r3$.ɵɵelementEnd(); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + App, + [ + { + type: Component, + args: [ + { + imports: [Dir], + template: ` +
    + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(App, { + className: "App", + filePath: "mixed_one_way_two_way_listener_order.ts", + lineNumber: 22 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/multiple_statements.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/multiple_statements.js index 58a3d6c1bf5d..5f09f0e32cda 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/multiple_statements.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/multiple_statements.js @@ -1,13 +1,63 @@ -hostBindings: function MyComponent_HostBindings(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵlistener("click", function MyComponent_click_HostBindingHandler($event) { $event.preventDefault(); return $event.target; }); - } -} -… -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElementStart(0, "div", 0); - $r3$.ɵɵdomListener("click", function MyComponent_Template_div_click_0_listener($event) { $event.preventDefault(); return $event.target; }); - $r3$.ɵɵdomElementEnd(); - } +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + hostBindings: function MyComponent_HostBindings(rf, ctx) { + if (rf & 1) { + i0.ɵɵlistener("click", function MyComponent_click_HostBindingHandler($event) { + $event.preventDefault(); + return $event.target; + }); + } + }, + decls: 1, + vars: 0, + consts: [[3, "click"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElementStart(0, "div", 0); + i0.ɵɵdomListener("click", function MyComponent_Template_div_click_0_listener($event) { + $event.preventDefault(); + return $event.target; + }); + i0.ɵɵdomElementEnd(); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + host: { "(click)": "$event.preventDefault(); $event.target" }, + template: ` +
    + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "multiple_statements.ts", + lineNumber: 10 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/nested_two_way_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/nested_two_way_template.js index d61182c6906d..bc9200d61b66 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/nested_two_way_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/nested_two_way_template.js @@ -1,18 +1,143 @@ +import { Component, Directive, EventEmitter, Input, NgModule, Output } from "@angular/core"; +import * as i0 from "@angular/core"; function TestCmp_ng_template_1_Template(rf, ctx) { if (rf & 1) { - const $_r2$ = $r3$.ɵɵgetCurrentView(); - $r3$.ɵɵelementStart(0, "input", 0); - $r3$.ɵɵtwoWayListener("ngModelChange", function TestCmp_ng_template_1_Template_input_ngModelChange_0_listener($event) { - $r3$.ɵɵrestoreView($_r2$); - const $ctx_r1$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵtwoWayBindingSet($ctx_r1$.name, $event) || ($ctx_r1$.name = $event); - return $r3$.ɵɵresetView($event); - }); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵcontrolCreate(); - } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵtwoWayProperty("ngModel", $ctx_r0$.name); - $r3$.ɵɵcontrol(); + const _r1 = i0.ɵɵgetCurrentView(); + i0.ɵɵelementStart(0, "input", 0); + i0.ɵɵcontrolCreate(); + i0.ɵɵtwoWayListener( + "ngModelChange", + function TestCmp_ng_template_1_Template_input_ngModelChange_0_listener($event) { + i0.ɵɵrestoreView(_r1); + const ctx_r1 = i0.ɵɵnextContext(); + i0.ɵɵtwoWayBindingSet(ctx_r1.name, $event) || (ctx_r1.name = $event); + return i0.ɵɵresetView($event); + } + ); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + const ctx_r1 = i0.ɵɵnextContext(); + i0.ɵɵtwoWayProperty("ngModel", ctx_r1.name); + i0.ɵɵcontrol(); } -} \ No newline at end of file +} +export class TestCmp { + name = ""; + static ɵfac = function TestCmp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestCmp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: TestCmp, + selectors: [["test-cmp"]], + standalone: false, + decls: 2, + vars: 0, + consts: [[3, "ngModelChange", "ngModel"]], + template: function TestCmp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0, "Name: "); + i0.ɵɵtemplate(1, TestCmp_ng_template_1_Template, 1, 1, "ng-template"); + } + }, + dependencies: () => [NgModelDirective], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestCmp, + [ + { + type: Component, + args: [ + { + selector: "test-cmp", + template: 'Name: ', + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(TestCmp, { + className: "TestCmp", + filePath: "nested_two_way.ts", + lineNumber: 8 + }); +})(); +export class NgModelDirective { + ngModel = ""; + ngModelChange = new EventEmitter(); + static ɵfac = function NgModelDirective_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || NgModelDirective)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: NgModelDirective, + selectors: [["", "ngModel", ""]], + inputs: { ngModel: "ngModel" }, + outputs: { ngModelChange: "ngModelChange" }, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + NgModelDirective, + [ + { + type: Directive, + args: [ + { + selector: "[ngModel]", + standalone: false + } + ] + } + ], + null, + { + ngModel: [ + { + type: Input + } + ], + ngModelChange: [ + { + type: Output + } + ] + } + ); +})(); +export class AppModule { + static ɵfac = function AppModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || AppModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AppModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + AppModule, + [ + { + type: NgModule, + args: [{ declarations: [TestCmp, NgModelDirective] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(AppModule, { declarations: [TestCmp, NgModelDirective] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_host_listener_host_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_host_listener_host_bindings.js index fbfe4162639f..00c8f1453dca 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_host_listener_host_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_host_listener_host_bindings.js @@ -1,10 +1,64 @@ -… -hostBindings: function MyComponent_HostBindings(rf, ctx) { - if (rf & 1) { - i0.ɵɵlistener("mousedown", function MyComponent_mousedown_HostBindingHandler() { - return ctx.mousedown(); - })("click", function MyComponent_click_HostBindingHandler() { - return ctx.click(); - }); - } +import { Component, HostListener } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + mousedown() {} + click() {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + hostBindings: function MyComponent_HostBindings(rf, ctx) { + if (rf & 1) { + i0.ɵɵlistener("mousedown", function MyComponent_mousedown_HostBindingHandler() { + return ctx.mousedown(); + })("click", function MyComponent_click_HostBindingHandler() { + return ctx.click(); + }); + } + }, + standalone: false, + decls: 0, + vars: 0, + template: function MyComponent_Template(rf, ctx) {}, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: "", + host: { + "(mousedown)": "mousedown()" + }, + standalone: false + } + ] + } + ], + null, + { + click: [ + { + type: HostListener, + args: ["click"] + } + ] + } + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "no_event_arg_host_listener.ts", + lineNumber: 10 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_listener_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_listener_template.js index 47d9a4dcf750..242069d7cb09 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_listener_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/no_event_arg_listener_template.js @@ -1,11 +1,53 @@ -… -consts: [[__AttributeMarker.Bindings__, "click"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div", 0); - $r3$.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { - return ctx.onClick(); - }); - $r3$.ɵɵelementEnd(); - } +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + onClick() {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [[3, "click"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 0); + i0.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { + return ctx.onClick(); + }); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "no_event_arg_listener.ts", + lineNumber: 7 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/same_element_chained_listeners_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/same_element_chained_listeners_template.js index ead0dd551895..f4ae7e77b456 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/same_element_chained_listeners_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/same_element_chained_listeners_template.js @@ -1,13 +1,82 @@ -… -consts: [[__AttributeMarker.Bindings__, "click", "change"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div", 0); - $r3$.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { - return ctx.click(); - })("change", function MyComponent_Template_div_change_0_listener() { - return ctx.change(); +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + click() {} + change() {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [[3, "click", "change"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 0); + i0.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { + return ctx.click(); + })("change", function MyComponent_Template_div_change_0_listener() { + return ctx.change(); + }); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "same_element_chained_listeners.ts", + lineNumber: 8 }); - $r3$.ɵɵelementEnd(); - } +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/shared_snapshot_listeners_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/shared_snapshot_listeners_template.js index db56ee07eb13..79767d806fa5 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/shared_snapshot_listeners_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/shared_snapshot_listeners_template.js @@ -1,29 +1,106 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_0_Template(rf, ctx) { if (rf & 1) { - const $s$ = $r3$.ɵɵgetCurrentView(); - $r3$.ɵɵelementStart(0, "div")(1, "div", 1); - $r3$.ɵɵlistener("click", function MyComponent_div_0_Template_div_click_1_listener() { - $r3$.ɵɵrestoreView($s$); - const $comp$ = $r3$.ɵɵnextContext(); - return $i0$.ɵɵresetView($comp$.onClick(1)); + const _r1 = i0.ɵɵgetCurrentView(); + i0.ɵɵelementStart(0, "div")(1, "div", 1); + i0.ɵɵlistener("click", function MyComponent_div_0_Template_div_click_1_listener() { + i0.ɵɵrestoreView(_r1); + const ctx_r1 = i0.ɵɵnextContext(); + return i0.ɵɵresetView(ctx_r1.onClick(1)); }); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵelementStart(2, "button", 1); - $r3$.ɵɵlistener("click", function MyComponent_div_0_Template_button_click_2_listener() { - $r3$.ɵɵrestoreView($s$); - const $comp2$ = $r3$.ɵɵnextContext(); - return $i0$.ɵɵresetView($comp2$.onClick2(2)); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(2, "button", 1); + i0.ɵɵlistener("click", function MyComponent_div_0_Template_button_click_2_listener() { + i0.ɵɵrestoreView(_r1); + const ctx_r1 = i0.ɵɵnextContext(); + return i0.ɵɵresetView(ctx_r1.onClick2(2)); }); - $r3$.ɵɵelementEnd()(); + i0.ɵɵelementEnd()(); } } -// ... -consts: [[__AttributeMarker.Template__, "ngIf"], [__AttributeMarker.Bindings__, "click"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_div_0_Template, 3, 0, "div", 0); - } - if (rf & 2) { - $i0$.ɵɵproperty("ngIf", ctx.showing); - } +export class MyComponent { + onClick(name) {} + onClick2(name) {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: [ + [4, "ngIf"], + [3, "click"] + ], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_div_0_Template, 3, 0, "div", 0); + } + if (rf & 2) { + i0.ɵɵproperty("ngIf", ctx.showing); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    + +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "shared_snapshot_listeners.ts", + lineNumber: 13 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/simple_two_way_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/simple_two_way_template.js index 52b0d3f69466..a192415b4ec9 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/simple_two_way_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/simple_two_way_template.js @@ -1,16 +1,135 @@ -function TestCmp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtext(0, "Name: "); - $r3$.ɵɵelementStart(1, "input", 0); - $r3$.ɵɵtwoWayListener("ngModelChange", function TestCmp_Template_input_ngModelChange_1_listener($event) { - $r3$.ɵɵtwoWayBindingSet(ctx.name, $event) || (ctx.name = $event); - return $event; +import { Component, Directive, EventEmitter, Input, NgModule, Output } from "@angular/core"; +import * as i0 from "@angular/core"; +export class TestCmp { + name = ""; + static ɵfac = function TestCmp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestCmp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: TestCmp, + selectors: [["test-cmp"]], + standalone: false, + decls: 2, + vars: 1, + consts: [[3, "ngModelChange", "ngModel"]], + template: function TestCmp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0, "Name: "); + i0.ɵɵelementStart(1, "input", 0); + i0.ɵɵcontrolCreate(); + i0.ɵɵtwoWayListener( + "ngModelChange", + function TestCmp_Template_input_ngModelChange_1_listener($event) { + i0.ɵɵtwoWayBindingSet(ctx.name, $event) || (ctx.name = $event); + return $event; + } + ); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(); + i0.ɵɵtwoWayProperty("ngModel", ctx.name); + i0.ɵɵcontrol(); + } + }, + dependencies: () => [NgModelDirective], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestCmp, + [ + { + type: Component, + args: [ + { + selector: "test-cmp", + template: 'Name: ', + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(TestCmp, { + className: "TestCmp", + filePath: "simple_two_way.ts", + lineNumber: 8 }); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵcontrolCreate(); - } if (rf & 2) { - $r3$.ɵɵadvance(); - $r3$.ɵɵtwoWayProperty("ngModel", ctx.name); - $r3$.ɵɵcontrol(); - } +})(); +export class NgModelDirective { + ngModel = ""; + ngModelChange = new EventEmitter(); + static ɵfac = function NgModelDirective_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || NgModelDirective)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: NgModelDirective, + selectors: [["", "ngModel", ""]], + inputs: { ngModel: "ngModel" }, + outputs: { ngModelChange: "ngModelChange" }, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + NgModelDirective, + [ + { + type: Directive, + args: [ + { + selector: "[ngModel]", + standalone: false + } + ] + } + ], + null, + { + ngModel: [ + { + type: Input + } + ], + ngModelChange: [ + { + type: Output + } + ] + } + ); +})(); +export class AppModule { + static ɵfac = function AppModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || AppModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AppModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + AppModule, + [ + { + type: NgModule, + args: [{ declarations: [TestCmp, NgModelDirective] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(AppModule, { declarations: [TestCmp, NgModelDirective] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/template_chained_listeners_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/template_chained_listeners_template.js index 6bdbcb3b0c27..f004f7223ba8 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/template_chained_listeners_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/template_chained_listeners_template.js @@ -1,8 +1,80 @@ -… -consts: [[__AttributeMarker.Bindings__, "click", "change"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 0, 0, "ng-template", 0); - $r3$.ɵɵlistener("click", function MyComponent_Template_ng_template_click_0_listener() { return ctx.click(); })("change", function MyComponent_Template_ng_template_change_0_listener() { return ctx.change(); }); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_ng_template_0_Template(rf, ctx) {} +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [[3, "click", "change"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 0, 0, "ng-template", 0); + i0.ɵɵlistener("click", function MyComponent_Template_ng_template_click_0_listener() { + return ctx.click(); + })("change", function MyComponent_Template_ng_template_change_0_listener() { + return ctx.change(); + }); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ``, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "template_chained_listeners.ts", + lineNumber: 8 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/two_way_binding_to_signal_loop_variable_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/two_way_binding_to_signal_loop_variable_template.js index 44f9199f958f..6c4e34bfc23b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/two_way_binding_to_signal_loop_variable_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/two_way_binding_to_signal_loop_variable_template.js @@ -1,29 +1,118 @@ +import { Component, Directive, model, signal } from "@angular/core"; +import * as i0 from "@angular/core"; function TestCmp_For_1_Template(rf, ctx) { if (rf & 1) { - const $_r1$ = $r3$.ɵɵgetCurrentView(); - $r3$.ɵɵelementStart(0, "input", 1); - $r3$.ɵɵtwoWayListener("ngModelChange", function TestCmp_For_1_Template_input_ngModelChange_0_listener($event) { - const $name_r2$ = $r3$.ɵɵrestoreView($_r1$).$implicit; - $r3$.ɵɵtwoWayBindingSet($name_r2$, $event); - return $r3$.ɵɵresetView($event); - }); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵcontrolCreate(); + const _r1 = i0.ɵɵgetCurrentView(); + i0.ɵɵelementStart(0, "input", 1); + i0.ɵɵcontrolCreate(); + i0.ɵɵtwoWayListener( + "ngModelChange", + function TestCmp_For_1_Template_input_ngModelChange_0_listener($event) { + const name_r2 = i0.ɵɵrestoreView(_r1).$implicit; + i0.ɵɵtwoWayBindingSet(name_r2, $event); + return i0.ɵɵresetView($event); + } + ); + i0.ɵɵelementEnd(); } if (rf & 2) { - const $name_r2$ = ctx.$implicit; - $r3$.ɵɵtwoWayProperty("ngModel", $name_r2$); - $r3$.ɵɵcontrol(); + const name_r2 = ctx.$implicit; + i0.ɵɵtwoWayProperty("ngModel", name_r2); + i0.ɵɵcontrol(); } } - -… - -function TestCmp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵrepeaterCreate(0, TestCmp_For_1_Template, 1, 1, "input", 0, $r3$.ɵɵrepeaterTrackByIndex); - } - if (rf & 2) { - $r3$.ɵɵrepeater(ctx.names); - } +export class NgModelDirective { + ngModel = model.required( + /* @ts-ignore */ + ...(ngDevMode ? [{ debugName: "ngModel" }] : /* istanbul ignore next */ []) + ); + static ɵfac = function NgModelDirective_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || NgModelDirective)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: NgModelDirective, + selectors: [["", "ngModel", ""]], + inputs: { ngModel: [1, "ngModel"] }, + outputs: { ngModel: "ngModelChange" } + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + NgModelDirective, + [ + { + type: Directive, + args: [ + { + selector: "[ngModel]" + } + ] + } + ], + null, + { + ngModel: [ + { type: i0.Input, args: [{ isSignal: true, alias: "ngModel", required: true }] }, + { type: i0.Output, args: ["ngModelChange"] } + ] + } + ); +})(); +export class TestCmp { + names = [signal("Angular")]; + static ɵfac = function TestCmp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestCmp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: TestCmp, + selectors: [["ng-component"]], + decls: 2, + vars: 0, + consts: [ + [3, "ngModel"], + [3, "ngModelChange", "ngModel"] + ], + template: function TestCmp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵrepeaterCreate(0, TestCmp_For_1_Template, 1, 1, "input", 0, i0.ɵɵrepeaterTrackByIndex); + } + if (rf & 2) { + i0.ɵɵrepeater(ctx.names); + } + }, + dependencies: [NgModelDirective], + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestCmp, + [ + { + type: Component, + args: [ + { + template: ` + @for (name of names; track $index) { + + } + `, + imports: [NgModelDirective] + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(TestCmp, { + className: "TestCmp", + filePath: "two_way_binding_to_signal_loop_variable.ts", + lineNumber: 18 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/two_way_to_any_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/two_way_to_any_template.js index e57ec47f83ee..5faa94816cf3 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/two_way_to_any_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/two_way_to_any_template.js @@ -1,15 +1,97 @@ -function TestCmp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "input", 0); - $r3$.ɵɵtwoWayListener("ngModelChange", function TestCmp_Template_input_ngModelChange_0_listener($event) { - $r3$.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); - return $event; - }); - $r3$.ɵɵelementEnd(); - $r3$.ɵɵcontrolCreate(); - } - if (rf & 2) { - $r3$.ɵɵtwoWayProperty("ngModel", ctx.value); - $r3$.ɵɵcontrol(); - } +import { Component, Directive, model } from "@angular/core"; +import * as i0 from "@angular/core"; +export class NgModelDirective { + ngModel = model( + "" /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "ngModel" }] : /* istanbul ignore next */ []) + ); + static ɵfac = function NgModelDirective_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || NgModelDirective)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: NgModelDirective, + selectors: [["", "ngModel", ""]], + inputs: { ngModel: [1, "ngModel"] }, + outputs: { ngModel: "ngModelChange" } + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + NgModelDirective, + [ + { + type: Directive, + args: [{ selector: "[ngModel]" }] + } + ], + null, + { + ngModel: [ + { type: i0.Input, args: [{ isSignal: true, alias: "ngModel", required: false }] }, + { type: i0.Output, args: ["ngModelChange"] } + ] + } + ); +})(); +export class TestCmp { + value = 123; + static ɵfac = function TestCmp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestCmp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: TestCmp, + selectors: [["test-cmp"]], + decls: 1, + vars: 1, + consts: [[3, "ngModelChange", "ngModel"]], + template: function TestCmp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "input", 0); + i0.ɵɵcontrolCreate(); + i0.ɵɵtwoWayListener( + "ngModelChange", + function TestCmp_Template_input_ngModelChange_0_listener($event) { + i0.ɵɵtwoWayBindingSet(ctx.value, $event) || (ctx.value = $event); + return $event; + } + ); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵtwoWayProperty("ngModel", ctx.value); + i0.ɵɵcontrol(); + } + }, + dependencies: [NgModelDirective], + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestCmp, + [ + { + type: Component, + args: [ + { + selector: "test-cmp", + template: '', + imports: [NgModelDirective] + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(TestCmp, { + className: "TestCmp", + filePath: "two_way_to_any.ts", + lineNumber: 13 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/TEST_CASES.json b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/TEST_CASES.json index 2840fe1f8073..1a28df9812bc 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/TEST_CASES.json +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/TEST_CASES.json @@ -3,9 +3,7 @@ "cases": [ { "description": "should emit the ProvidersFeature feature when providers and viewProviders are used", - "inputFiles": [ - "providers_feature_providers_and_view_providers.ts" - ], + "inputFiles": ["providers_feature_providers_and_view_providers.ts"], "expectations": [ { "files": [ @@ -20,9 +18,7 @@ }, { "description": "should emit the ProvidersFeature feature when providers only", - "inputFiles": [ - "providers_feature_providers_only.ts" - ], + "inputFiles": ["providers_feature_providers_only.ts"], "expectations": [ { "files": [ @@ -37,9 +33,7 @@ }, { "description": "should emit the ProvidersFeature feature when viewProviders only", - "inputFiles": [ - "providers_feature_view_providers_only.ts" - ], + "inputFiles": ["providers_feature_view_providers_only.ts"], "expectations": [ { "files": [ @@ -54,27 +48,10 @@ }, { "description": "should not emit the ProvidersFeature feature when no providers", - "inputFiles": [ - "providers_feature_no_providers.ts" - ], + "inputFiles": ["providers_feature_no_providers.ts"], "expectations": [ { - "files": [ - { - "expected": "providers_feature_no_providers_definition.js", - "generated": "providers_feature_no_providers.js" - } - ], - "failureMessage": "Incorrect definition" - }, - { - "files": [ - { - "expected": "providers_feature_no_providers_factory.js", - "generated": "providers_feature_no_providers.js" - } - ], - "failureMessage": "Incorrect factory" + "files": ["providers_feature_no_providers.js"] } ] } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_no_providers.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_no_providers.js new file mode 100644 index 000000000000..011615cf36cc --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_no_providers.js @@ -0,0 +1,73 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: "
    ", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "providers_feature_no_providers.ts", + lineNumber: 7 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_no_providers_definition.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_no_providers_definition.js deleted file mode 100644 index bc5db9a3291a..000000000000 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_no_providers_definition.js +++ /dev/null @@ -1,16 +0,0 @@ -export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ - type: MyComponent, - selectors: [["my-component"]], - standalone: false, - decls: 1, - vars: 0, - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - i0.ɵɵelement(0, "div"); - } - }, - encapsulation: 2 - }); -} diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_no_providers_factory.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_no_providers_factory.js deleted file mode 100644 index abd3cc26c9f8..000000000000 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_no_providers_factory.js +++ /dev/null @@ -1,5 +0,0 @@ -export class MyComponent { - … - static ɵfac = function MyComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyComponent)(); }; - … -} diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_providers_and_view_providers_features.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_providers_and_view_providers_features.js index b2ca4ff263a2..e93c1de43573 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_providers_and_view_providers_features.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_providers_and_view_providers_features.js @@ -1 +1,84 @@ -features: [i0.ɵɵProvidersFeature([GreeterEN, {provide: Greeter, useClass: GreeterEN}], [GreeterEN])], +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +class Greeter {} +class GreeterEN { + greet() { + return "Hi"; + } +} +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + features: [ + i0.ɵɵProvidersFeature([GreeterEN, { provide: Greeter, useClass: GreeterEN }], [GreeterEN]) + ], + decls: 1, + vars: 0, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: "
    ", + providers: [GreeterEN, { provide: Greeter, useClass: GreeterEN }], + viewProviders: [GreeterEN], + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "providers_feature_providers_and_view_providers.ts", + lineNumber: 20 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_providers_only_features.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_providers_only_features.js index f5bfa8567236..eac1054d84b5 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_providers_only_features.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_providers_only_features.js @@ -1 +1,81 @@ -features: [i0.ɵɵProvidersFeature([GreeterEN, {provide: Greeter, useClass: GreeterEN}])], +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +class Greeter {} +class GreeterEN { + greet() { + return "Hi"; + } +} +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + features: [i0.ɵɵProvidersFeature([GreeterEN, { provide: Greeter, useClass: GreeterEN }])], + decls: 1, + vars: 0, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: "
    ", + providers: [GreeterEN, { provide: Greeter, useClass: GreeterEN }], + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "providers_feature_providers_only.ts", + lineNumber: 19 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_view_providers_only_features.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_view_providers_only_features.js index dc13c1f25307..e0ea350f7866 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_view_providers_only_features.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/providers_feature_view_providers_only_features.js @@ -1 +1,81 @@ -features: [i0.ɵɵProvidersFeature([], [GreeterEN])], +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +class Greeter {} +class GreeterEN { + greet() { + return "Hi"; + } +} +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + features: [i0.ɵɵProvidersFeature([], [GreeterEN])], + decls: 1, + vars: 0, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: "
    ", + viewProviders: [GreeterEN], + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "providers_feature_view_providers_only.ts", + lineNumber: 17 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/component_host_binding_slots.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/component_host_binding_slots.js index e3c4a671e750..4aa19d4755f7 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/component_host_binding_slots.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/component_host_binding_slots.js @@ -1,9 +1,120 @@ -hostAttrs: ["title", "foo title", __AttributeMarker.Classes__, "foo", "baz", __AttributeMarker.Styles__, "width", "200px", "height", "500px"], -hostVars: 6, -hostBindings: function MyComponent_HostBindings(rf, ctx) { - if (rf & 2) { - $r3$.ɵɵdomProperty("id", ctx.id)("title", ctx.title); - $r3$.ɵɵstyleMap(ctx.myStyle); - $r3$.ɵɵclassMap(ctx.myClass); - } +import { Component, HostBinding, Input, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + myStyle = { width: "100px" }; + myClass = { bar: false }; + id = "some id"; + title = "some title"; + name = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + hostAttrs: ["title", "foo title", 1, "foo", "baz", 2, "width", "200px", "height", "500px"], + hostVars: 6, + hostBindings: function MyComponent_HostBindings(rf, ctx) { + if (rf & 2) { + i0.ɵɵdomProperty("id", ctx.id)("title", ctx.title); + i0.ɵɵstyleMap(ctx.myStyle); + i0.ɵɵclassMap(ctx.myClass); + } + }, + inputs: { name: "name" }, + standalone: false, + decls: 0, + vars: 0, + template: function MyComponent_Template(rf, ctx) {}, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: "", + host: { + "style": "width:200px; height:500px", + "class": "foo baz", + "title": "foo title" + }, + standalone: false + } + ] + } + ], + null, + { + myStyle: [ + { + type: HostBinding, + args: ["style"] + } + ], + myClass: [ + { + type: HostBinding, + args: ["class"] + } + ], + id: [ + { + type: HostBinding, + args: ["id"] + } + ], + title: [ + { + type: HostBinding, + args: ["title"] + } + ], + name: [ + { + type: Input, + args: ["name"] + } + ] + } + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "component_host_binding_slots.ts", + lineNumber: 9 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/directive_host_binding_slots.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/directive_host_binding_slots.js index f82aa0fc14e7..2f42aa8096e8 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/directive_host_binding_slots.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/directive_host_binding_slots.js @@ -1,8 +1,68 @@ -hostVars: 6, -hostBindings: function WidthDirective_HostBindings(rf, ctx) { - if (rf & 2) { - $r3$.ɵɵdomProperty("id", ctx.id)("title", ctx.title); - $r3$.ɵɵstyleProp("width", ctx.myWidth); - $r3$.ɵɵclassProp("foo", ctx.myFooClass); - } - } +import { Directive, HostBinding } from "@angular/core"; +import * as i0 from "@angular/core"; +export class WidthDirective { + myWidth = 200; + myFooClass = true; + id = "some id"; + title = "some title"; + static ɵfac = function WidthDirective_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || WidthDirective)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: WidthDirective, + selectors: [["", "myWidthDir", ""]], + hostVars: 6, + hostBindings: function WidthDirective_HostBindings(rf, ctx) { + if (rf & 2) { + i0.ɵɵdomProperty("id", ctx.id)("title", ctx.title); + i0.ɵɵstyleProp("width", ctx.myWidth); + i0.ɵɵclassProp("foo", ctx.myFooClass); + } + }, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + WidthDirective, + [ + { + type: Directive, + args: [ + { + selector: "[myWidthDir]", + standalone: false + } + ] + } + ], + null, + { + myWidth: [ + { + type: HostBinding, + args: ["style.width"] + } + ], + myFooClass: [ + { + type: HostBinding, + args: ["class.foo"] + } + ], + id: [ + { + type: HostBinding, + args: ["id"] + } + ], + title: [ + { + type: HostBinding, + args: ["title"] + } + ] + } + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/host_binding_slots.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/host_binding_slots.js index 478a7d936571..b760efa59d97 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/host_binding_slots.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/host_binding_slots.js @@ -1,10 +1,140 @@ -hostVars: 10, -hostBindings: function MyDir_HostBindings(rf, ctx) { - if (rf & 2) { - $r3$.ɵɵdomProperty("title", ctx.title); - $r3$.ɵɵsyntheticHostProperty("@anim", - $r3$.ɵɵpureFunction2(7, _c1, ctx._animValue, - $r3$.ɵɵpureFunction2(4, _c0, ctx._animParam1, ctx._animParam2))); - $r3$.ɵɵclassProp("foo", ctx.foo); - } +import { Component, Directive, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +const _c0 = (a0, a1) => ({ param1: a0, param2: a1 }); +const _c1 = (a0, a1) => ({ value: a0, params: a1 }); +export class MyDir { + title = ""; + foo = true; + _animValue = null; + _animParam1 = null; + _animParam2 = null; + static ɵfac = function MyDir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyDir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: MyDir, + selectors: [["", "my-dir", ""]], + hostVars: 10, + hostBindings: function MyDir_HostBindings(rf, ctx) { + if (rf & 2) { + i0.ɵɵdomProperty("title", ctx.title); + i0.ɵɵsyntheticHostProperty( + "@anim", + i0.ɵɵpureFunction2( + 7, + _c1, + ctx._animValue, + i0.ɵɵpureFunction2(4, _c0, ctx._animParam1, ctx._animParam2) + ) + ); + i0.ɵɵclassProp("foo", ctx.foo); + } + }, + standalone: false + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyDir, + [ + { + type: Directive, + args: [ + { + selector: "[my-dir]", + host: { + "[title]": "title", + "[class.foo]": "foo", + "[@anim]": `{ + value: _animValue, + params: { + param1: _animParam1, + param2: _animParam2 + } + }` + }, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class MyAppComp { + static ɵfac = function MyAppComp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyAppComp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyAppComp, + selectors: [["my-app"]], + standalone: false, + decls: 1, + vars: 0, + consts: [["my-dir", ""]], + template: function MyAppComp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div", 0); + } + }, + dependencies: [MyDir], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyAppComp, + [ + { + type: Component, + args: [ + { + selector: "my-app", + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyAppComp, { + className: "MyAppComp", + filePath: "host_binding_slots.ts", + lineNumber: 33 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyAppComp, MyDir] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyAppComp, MyDir] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/break_different_instructions.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/break_different_instructions.js index 29e6cc2af9a6..dc63e8c06bcd 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/break_different_instructions.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/break_different_instructions.js @@ -1,15 +1,70 @@ -// ... +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - // ... - template: function MyComponent_Template(rf, $ctx$) { - // ... + one = ""; + transition = "all 1337ms ease"; + width = "42px"; + yesToApple = true; + yesToOrange = true; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 20, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } if (rf & 2) { - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolate1("a", ctx.one, "b"))("border", $r3$.ɵɵinterpolate1("a", ctx.one, "b"))("transition", ctx.transition)("width", ctx.width)("height", $r3$.ɵɵinterpolate1("a", ctx.one, "b"))("top", $r3$.ɵɵinterpolate1("a", ctx.one, "b")); - $r3$.ɵɵclassProp("apple", ctx.yesToApple)("orange", ctx.yesToOrange); + i0.ɵɵstyleProp("color", i0.ɵɵinterpolate1("a", ctx.one, "b"))( + "border", + i0.ɵɵinterpolate1("a", ctx.one, "b") + )("transition", ctx.transition)("width", ctx.width)( + "height", + i0.ɵɵinterpolate1("a", ctx.one, "b") + )("top", i0.ɵɵinterpolate1("a", ctx.one, "b")); + i0.ɵɵclassProp("apple", ctx.yesToApple)("orange", ctx.yesToOrange); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "break_different_instructions.ts", + lineNumber: 15 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/break_different_interpolation_instructions.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/break_different_interpolation_instructions.js index c5ac63516772..7d2410e70a11 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/break_different_interpolation_instructions.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/break_different_interpolation_instructions.js @@ -1,14 +1,70 @@ -// ... +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - // ... - template: function MyComponent_Template(rf, $ctx$) { - // ... + one = ""; + two = ""; + three = ""; + transition = "all 1337ms ease"; + width = "42px"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 21, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } if (rf & 2) { - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolate1("a", ctx.one, "b"))("border", $r3$.ɵɵinterpolate1("a", ctx.one, "b"))("transition", $r3$.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c"))("width", $r3$.ɵɵinterpolate3("a", ctx.one, "b", ctx.two, "c", ctx.three, "d"))("height", $r3$.ɵɵinterpolate1("a", ctx.one, "b"))("top", $r3$.ɵɵinterpolate1("a", ctx.one, "b")); + i0.ɵɵstyleProp("color", i0.ɵɵinterpolate1("a", ctx.one, "b"))( + "border", + i0.ɵɵinterpolate1("a", ctx.one, "b") + )("transition", i0.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c"))( + "width", + i0.ɵɵinterpolate3("a", ctx.one, "b", ctx.two, "c", ctx.three, "d") + )("height", i0.ɵɵinterpolate1("a", ctx.one, "b"))( + "top", + i0.ɵɵinterpolate1("a", ctx.one, "b") + ); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "break_different_interpolation_instructions.ts", + lineNumber: 13 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/class_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/class_bindings.js index fa30d2a9c615..12c8cb344902 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/class_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/class_bindings.js @@ -1,14 +1,59 @@ - // ... +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - // ... - template: function MyComponent_Template(rf, $ctx$) { - // ... + yesToApple = true; + yesToOrange = true; + yesToTomato = false; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 6, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } if (rf & 2) { - $r3$.ɵɵclassProp("apple", $ctx$.yesToApple)("orange", $ctx$.yesToOrange)("tomato", $ctx$.yesToTomato); + i0.ɵɵclassProp("apple", ctx.yesToApple)("orange", ctx.yesToOrange)( + "tomato", + ctx.yesToTomato + ); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "class_bindings.ts", + lineNumber: 10 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/host_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/host_bindings.js index 721029cc1f2f..ccda1c4b2c52 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/host_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/host_bindings.js @@ -1,15 +1,78 @@ -// ... +import { Component, HostBinding } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - // ... - hostBindings: function MyComponent_HostBindings(rf, $ctx$) { - // ... - if (rf & 2) { - $r3$.ɵɵstyleProp("color", $ctx$.color)("transition", $ctx$.transition)("border", $ctx$.border); - $r3$.ɵɵclassProp("apple", $ctx$.yesToApple)("tomato", $ctx$.yesToTomato)("orange", $ctx$.yesToOrange); - } - }, - // ... - }); + color = "red"; + transition = "all 1337ms ease"; + yesToApple = true; + yesToTomato = false; + border = "1px solid purple"; + yesToOrange = true; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + hostVars: 12, + hostBindings: function MyComponent_HostBindings(rf, ctx) { + if (rf & 2) { + i0.ɵɵstyleProp("color", ctx.color)("transition", ctx.transition)("border", ctx.border); + i0.ɵɵclassProp("apple", ctx.yesToApple)("tomato", ctx.yesToTomato)( + "orange", + ctx.yesToOrange + ); + } + }, + standalone: false, + decls: 0, + vars: 0, + template: function MyComponent_Template(rf, ctx) {}, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: "", + host: { + "[class.apple]": "yesToApple", + "[style.color]": "color", + "[class.tomato]": "yesToTomato", + "[style.transition]": "transition" + }, + standalone: false + } + ] + } + ], + null, + { + border: [ + { + type: HostBinding, + args: ["style.border"] + } + ], + yesToOrange: [ + { + type: HostBinding, + args: ["class.orange"] + } + ] + } + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "host_bindings.ts", + lineNumber: 13 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_different_arity.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_different_arity.js index 682f893b2520..c433eda1e2b9 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_different_arity.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_different_arity.js @@ -1,14 +1,68 @@ -// ... +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - // ... - template: function MyComponent_Template(rf, $ctx$) { - // ... + one = ""; + two = ""; + three = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 24, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } if (rf & 2) { - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolate1("a", ctx.one, "b"))("border", $r3$.ɵɵinterpolate1("a", ctx.one, "b"))("transition", $r3$.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c"))("width", $r3$.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c"))("height", $r3$.ɵɵinterpolate3("a", ctx.one, "b", ctx.two, "c", ctx.three, "d"))("top", $r3$.ɵɵinterpolate3("a", ctx.one, "b", ctx.two, "c", ctx.three, "d")); + i0.ɵɵstyleProp("color", i0.ɵɵinterpolate1("a", ctx.one, "b"))( + "border", + i0.ɵɵinterpolate1("a", ctx.one, "b") + )("transition", i0.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c"))( + "width", + i0.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c") + )("height", i0.ɵɵinterpolate3("a", ctx.one, "b", ctx.two, "c", ctx.three, "d"))( + "top", + i0.ɵɵinterpolate3("a", ctx.one, "b", ctx.two, "c", ctx.three, "d") + ); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "interpolations_different_arity.ts", + lineNumber: 13 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_equal_arity.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_equal_arity.js index 40bd509a4fa6..1a15722986e9 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_equal_arity.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/interpolations_equal_arity.js @@ -1,14 +1,57 @@ -// ... +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - // ... - template: function MyComponent_Template(rf, $ctx$) { - // ... + one = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 9, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } if (rf & 2) { - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolate1("a", ctx.one, "b"))("border", $r3$.ɵɵinterpolate1("a", ctx.one, "b"))("transition", $r3$.ɵɵinterpolate1("a", ctx.one, "b")); + i0.ɵɵstyleProp("color", i0.ɵɵinterpolate1("a", ctx.one, "b"))( + "border", + i0.ɵɵinterpolate1("a", ctx.one, "b") + )("transition", i0.ɵɵinterpolate1("a", ctx.one, "b")); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "interpolations_equal_arity.ts", + lineNumber: 10 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/mixed_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/mixed_bindings.js index 09d33df96b49..b9d4ed5b0b4b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/mixed_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/mixed_bindings.js @@ -1,15 +1,66 @@ -// ... +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - // ... - template: function MyComponent_Template(rf, $ctx$) { - // ... + color = "red"; + border = "1px solid purple"; + transition = "all 1337ms ease"; + yesToApple = true; + yesToOrange = true; + yesToTomato = false; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 12, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } if (rf & 2) { - $r3$.ɵɵstyleProp("color", $ctx$.color)("border", $ctx$.border)("transition", $ctx$.transition); - $r3$.ɵɵclassProp("apple", $ctx$.yesToApple)("orange", $ctx$.yesToOrange)("tomato", $ctx$.yesToTomato); + i0.ɵɵstyleProp("color", ctx.color)("border", ctx.border)("transition", ctx.transition); + i0.ɵɵclassProp("apple", ctx.yesToApple)("orange", ctx.yesToOrange)( + "tomato", + ctx.yesToTomato + ); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "mixed_bindings.ts", + lineNumber: 13 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/style_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/style_bindings.js index 23e5838c9484..f53515bcc453 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/style_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/style_bindings.js @@ -1,14 +1,56 @@ -// ... +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - // ... - template: function MyComponent_Template(rf, $ctx$) { - // ... + color = "red"; + border = "1px solid purple"; + transition = "all 1337ms ease"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 6, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } if (rf & 2) { - $r3$.ɵɵstyleProp("color", $ctx$.color)("border", $ctx$.border)("transition", $ctx$.transition); + i0.ɵɵstyleProp("color", ctx.color)("border", ctx.border)("transition", ctx.transition); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "style_bindings.ts", + lineNumber: 10 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding.js index f5147e4e4879..5ace276cf8c5 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding.js @@ -1,8 +1,77 @@ -template: function MyComponent_Template(rf, $ctx$) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div"); - } - if (rf & 2) { - $r3$.ɵɵclassMap($ctx$.myClassExp); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + myClassExp = { "foo": true }; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 2, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + if (rf & 2) { + i0.ɵɵclassMap(ctx.myClassExp); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "class_binding.ts", + lineNumber: 7 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding_on_structural.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding_on_structural.js index 582d2d8834b3..4384313be9a5 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding_on_structural.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding_on_structural.js @@ -1,17 +1,62 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_0_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElement(0, "div"); - } if (rf & 2) { - const $ctx_r0$ = $r3$.ɵɵnextContext(); - $r3$.ɵɵclassProp("bar", $ctx_r0$.field); - } + if (rf & 1) { + i0.ɵɵdomElement(0, "div"); + } + if (rf & 2) { + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵclassProp("bar", ctx_r0.field); + } } -… -consts: [[__AttributeMarker.Bindings__, "bar", __AttributeMarker.Template__, "ngIf"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomTemplate(0, MyComponent_div_0_Template, 1, 2, "div", 0); - } if (rf & 2) { - $r3$.ɵɵdomProperty("ngIf", true); - } -} \ No newline at end of file +export class MyComponent { + field; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + decls: 1, + vars: 1, + consts: [[3, "bar", 4, "ngIf"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomTemplate(0, MyComponent_div_0_Template, 1, 2, "div", 0); + } + if (rf & 2) { + i0.ɵɵdomProperty("ngIf", true); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "class_binding_on_structural.ts", + lineNumber: 9 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding_special_chars.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding_special_chars.js index cf4511045bbd..9da18ab3b105 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding_special_chars.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_binding_special_chars.js @@ -1,14 +1,55 @@ -$r3$.ɵɵdefineComponent({ - … - decls: 1, - vars: 6, - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElement(0, "div"); - } - if (rf & 2) { - $r3$.ɵɵclassProp("text-primary/80", ctx.expr)("data-active:text-green-300/80", ctx.expr)("data-[size='large']:p-8", ctx.expr); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + expr = true; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + decls: 1, + vars: 6, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElement(0, "div"); + } + if (rf & 2) { + i0.ɵɵclassProp("text-primary/80", ctx.expr)("data-active:text-green-300/80", ctx.expr)( + "data-[size='large']:p-8", + ctx.expr + ); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: ` +
    ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "class_binding_special_chars.ts", + lineNumber: 9 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_ordering.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_ordering.js index 9916f723e17a..bd3763222dd6 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_ordering.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/class_ordering.js @@ -1,23 +1,87 @@ -// ... +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ + myClassExp = { a: true, b: true }; + yesToApple = true; + yesToOrange = true; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MyComponent, - selectors:[["my-component"]], + selectors: [["my-component"]], standalone: false, decls: 1, vars: 7, - consts: [[__AttributeMarker.Classes__, "grape"]], - template: function MyComponent_Template(rf, $ctx$) { + consts: [[1, "grape"]], + template: function MyComponent_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelement(0, "div", 0); + i0.ɵɵelement(0, "div", 0); } if (rf & 2) { - $r3$.ɵɵclassMap($ctx$.myClassExp); - $r3$.ɵɵclassProp("apple", $ctx$.yesToApple)("orange", $ctx$.yesToOrange); - $r3$.ɵɵattribute("class", "banana"); + i0.ɵɵclassMap(ctx.myClassExp); + i0.ɵɵclassProp("apple", ctx.yesToApple)("orange", ctx.yesToOrange); + i0.ɵɵattribute("class", "banana"); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "class_ordering.ts", + lineNumber: 13 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/empty_class_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/empty_class_bindings.js index caf2cef02bfe..64e510e2eb1c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/empty_class_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/empty_class_bindings.js @@ -1,5 +1,74 @@ -template: function MyComponent_Template(rf, $ctx$) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div", 0); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [[3, "color"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div", 0); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "empty_class_bindings.ts", + lineNumber: 7 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/host_class_binding_special_chars.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/host_class_binding_special_chars.js index a683e16b8905..dcc4cb7859c1 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/host_class_binding_special_chars.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/host_class_binding_special_chars.js @@ -1,10 +1,56 @@ -$r3$.ɵɵdefineComponent({ - … - hostVars: 6, - hostBindings: function MyComponent_HostBindings(rf, ctx) { - if (rf & 2) { - $r3$.ɵɵclassProp("text-primary/80", ctx.expr)("data-active:text-green-300/80", ctx.expr)("data-[size='large']:p-8", ctx.expr); - } - }, - … -}); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + expr = true; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + hostVars: 6, + hostBindings: function MyComponent_HostBindings(rf, ctx) { + if (rf & 2) { + i0.ɵɵclassProp("text-primary/80", ctx.expr)("data-active:text-green-300/80", ctx.expr)( + "data-[size='large']:p-8", + ctx.expr + ); + } + }, + decls: 0, + vars: 0, + template: function MyComponent_Template(rf, ctx) {}, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: ``, + host: { + "[class.text-primary/80]": "expr", + "[class.data-active:text-green-300/80]": "expr", + "[class.data-[size='large']:p-8]": "expr" + } + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "host_class_binding_special_chars.ts", + lineNumber: 11 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/shared_name_with_consts_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/shared_name_with_consts_template.js index 1a11460166af..3091f948777d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/shared_name_with_consts_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/shared_name_with_consts_template.js @@ -1,31 +1,121 @@ -consts: () => { - __i18nMsg__('label', [], {}, {}) - return [ - ["attr", "", __AttributeMarker.Classes__, "attr"], - ["ngProjectAs", "selector", __AttributeMarker.ProjectAs__, ["selector"], __AttributeMarker.Classes__, "selector"], - [__AttributeMarker.Classes__, "width", __AttributeMarker.Styles__, "width", "0px"], - [__AttributeMarker.Classes__, "tabindex", __AttributeMarker.Bindings__, "tabindex"], - ["class", "ngIf", __AttributeMarker.Template__, "ngIf"], - ["aria-label", i18n_0, __AttributeMarker.Classes__, "aria-label"], - // NOTE: We tolerate a slight difference -- we emit `all` as a Template binding - ["all", "", "ngProjectAs", "all", "style", "all:all", "class", "all", __AttributeMarker.ProjectAs__, ["all"], __AttributeMarker.Bindings__, "all", __AttributeMarker.Template__, "all"], - [__AttributeMarker.Classes__, "ngIf"], - ["all", "", "ngProjectAs", "all", __AttributeMarker.ProjectAs__, ["all"], __AttributeMarker.Classes__, "all", __AttributeMarker.Styles__, "all", "all", __AttributeMarker.Bindings__, "all"] - ]; - }, - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElement(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3); - $r3$.ɵɵdomTemplate(4, MyComponent_div_4_Template, 1, 0, "div", 4); - $r3$.ɵɵdomElement(5, "div", 5); - $r3$.ɵɵdomTemplate(6, MyComponent_div_6_Template, 1, 1, "div", 6); - } - if (rf & 2) { - $r3$.ɵɵadvance(3); - $r3$.ɵɵdomProperty("tabIndex", ctx.tabIndex); - $r3$.ɵɵadvance(); - $r3$.ɵɵdomProperty("ngIf", ctx.cond); - $r3$.ɵɵadvance(2); - $r3$.ɵɵdomProperty("all", ctx.all); - } +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_div_4_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElement(0, "div", 7); } +} +function MyComponent_div_6_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElement(0, "div", 8); + } + if (rf & 2) { + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵdomProperty("all", ctx_r0.all); + } +} +export class MyComponent { + tabIndex = 0; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + decls: 7, + vars: 3, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_8915674564851115041$$SHARED_NAME_WITH_CONSTS_TS_0 = + /* @ts-ignore */ + goog.getMsg("label"); + i18n_0 = MSG_EXTERNAL_8915674564851115041$$SHARED_NAME_WITH_CONSTS_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`label`; + } + return [ + ["attr", "", 1, "attr"], + ["ngProjectAs", "selector", 5, ["selector"], 1, "selector"], + [1, "width", 2, "width", "0px"], + [1, "tabindex", 3, "tabindex"], + ["class", "ngIf", 4, "ngIf"], + ["aria-label", i18n_0, 1, "aria-label"], + [ + "all", + "", + "ngProjectAs", + "all", + "style", + "all:all", + "class", + "all", + 5, + ["all"], + 3, + "all", + 4, + "all" + ], + [1, "ngIf"], + ["all", "", "ngProjectAs", "all", 5, ["all"], 1, "all", 2, "all", "all", 3, "all"] + ]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElement(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3); + i0.ɵɵdomTemplate(4, MyComponent_div_4_Template, 1, 0, "div", 4); + i0.ɵɵdomElement(5, "div", 5); + i0.ɵɵdomTemplate(6, MyComponent_div_6_Template, 1, 1, "div", 6); + } + if (rf & 2) { + i0.ɵɵadvance(3); + i0.ɵɵdomProperty("tabIndex", ctx.tabIndex); + i0.ɵɵadvance(); + i0.ɵɵdomProperty("ngIf", ctx.cond); + i0.ɵɵadvance(2); + i0.ɵɵdomProperty("all", ctx.all); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    +
    +
    +
    +
    +
    +` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "shared_name_with_consts.ts", + lineNumber: 15 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/static_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/static_bindings.js index 96188d3a8073..c05b24be7ee7 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/static_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/static_bindings.js @@ -1,21 +1,81 @@ -// ... +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MyComponent, - selectors:[["my-component"]], + selectors: [["my-component"]], standalone: false, decls: 1, vars: 2, - consts: [[__AttributeMarker.Classes__, "foo", __AttributeMarker.Styles__, "width", "100px"]], - template: function MyComponent_Template(rf, $ctx$) { + consts: [[1, "foo", 2, "width", "100px"]], + template: function MyComponent_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelement(0, "div", 0); + i0.ɵɵelement(0, "div", 0); } if (rf & 2) { - $r3$.ɵɵattribute("class", "round")("style", "height:100px", $r3$.ɵɵsanitizeStyle); + i0.ɵɵattribute("class", "round")("style", "height:100px", i0.ɵɵsanitizeStyle); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "static_bindings.ts", + lineNumber: 12 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/animation_host_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/animation_host_bindings.js index e6d2dafb2399..b5b0874cf575 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/animation_host_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/animation_host_bindings.js @@ -1,16 +1,130 @@ +import { Component, Directive, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; class MyAnimDir { - // ... - static ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ - // ... + onStart() {} + onDone() {} + myAnimState = "123"; + static ɵfac = function MyAnimDir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyAnimDir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: MyAnimDir, + selectors: [["", "my-anim-dir", ""]], hostVars: 1, hostBindings: function MyAnimDir_HostBindings(rf, ctx) { if (rf & 1) { - $r3$.ɵɵsyntheticHostListener("@myAnim.start", function MyAnimDir_animation_myAnim_start_HostBindingHandler() { return ctx.onStart(); })("@myAnim.done", function MyAnimDir_animation_myAnim_done_HostBindingHandler() { return ctx.onDone(); }); + i0.ɵɵsyntheticHostListener( + "@myAnim.start", + function MyAnimDir_animation_myAnim_start_HostBindingHandler() { + return ctx.onStart(); + } + )("@myAnim.done", function MyAnimDir_animation_myAnim_done_HostBindingHandler() { + return ctx.onDone(); + }); } if (rf & 2) { - $r3$.ɵɵsyntheticHostProperty("@myAnim", ctx.myAnimState); + i0.ɵɵsyntheticHostProperty("@myAnim", ctx.myAnimState); } - } - // ... + }, + standalone: false }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyAnimDir, + [ + { + type: Directive, + args: [ + { + selector: "[my-anim-dir]", + host: { + "[@myAnim]": "myAnimState", + "(@myAnim.start)": "onStart()", + "(@myAnim.done)": "onDone()" + }, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-cmp"]], + standalone: false, + decls: 1, + vars: 0, + consts: [["my-anim-dir", ""]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div", 0); + } + }, + dependencies: [MyAnimDir], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-cmp", + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "animation_host_bindings.ts", + lineNumber: 21 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent, MyAnimDir] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, MyAnimDir] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/animation_listeners.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/animation_listeners.js index f0e8648e4812..175b8970a18d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/animation_listeners.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/animation_listeners.js @@ -1,20 +1,120 @@ -// ... +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - // ... + exp; + startEvent; + doneEvent; + onStart(event) { + this.startEvent = event; + } + onDone(event) { + this.doneEvent = event; + } + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-cmp"]], + standalone: false, decls: 1, vars: 1, template: function MyComponent_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵlistener("@myAnimation.start", function MyComponent_Template_div_animation_myAnimation_start_0_listener($event) { return ctx.onStart($event); })("@myAnimation.done", function MyComponent_Template_div_animation_myAnimation_done_0_listener($event) { return ctx.onDone($event); }); - $r3$.ɵɵelementEnd(); - } if (rf & 2) { - $r3$.ɵɵproperty("@myAnimation", ctx.exp); + i0.ɵɵelementStart(0, "div"); + i0.ɵɵlistener( + "@myAnimation.start", + function MyComponent_Template_div_animation_myAnimation_start_0_listener($event) { + return ctx.onStart($event); + } + )( + "@myAnimation.done", + function MyComponent_Template_div_animation_myAnimation_done_0_listener($event) { + return ctx.onDone($event); + } + ); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵproperty("@myAnimation", ctx.exp); } }, encapsulation: 2, - // ... + data: { + animation: [ + trigger("myAnimation", [ + transition("* => state", [ + style({ "opacity": "0" }), + animate(500, style({ "opacity": "1" })) + ]) + ]) + ] + } }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-cmp", + template: ` +
    + `, + animations: [ + trigger("myAnimation", [ + transition("* => state", [ + style({ "opacity": "0" }), + animate(500, style({ "opacity": "1" })) + ]) + ]) + ], + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "animation_listeners.ts", + lineNumber: 23 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/animation_property_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/animation_property_bindings.js index 95793a523658..b85384264ab4 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/animation_property_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/animation_property_bindings.js @@ -1,22 +1,84 @@ -// ... +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - // ... + exp = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, decls: 3, vars: 3, - template: function MyComponent_Template(rf, $ctx$) { + template: function MyComponent_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelement(0, "div")(1, "div")(2, "div"); + i0.ɵɵelement(0, "div")(1, "div")(2, "div"); } if (rf & 2) { - $r3$.ɵɵproperty("@foo", ctx.exp); - $r3$.ɵɵadvance(); - $r3$.ɵɵproperty("@bar", undefined); - $r3$.ɵɵadvance(); - $r3$.ɵɵproperty("@baz", undefined); + i0.ɵɵproperty("@foo", ctx.exp); + i0.ɵɵadvance(); + i0.ɵɵproperty("@bar", undefined); + i0.ɵɵadvance(); + i0.ɵɵproperty("@baz", undefined); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    +
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "animation_property_bindings.ts", + lineNumber: 11 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/metadata.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/metadata.js index e74deba1669d..c640c8c49b70 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/metadata.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/metadata.js @@ -1,16 +1,71 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MyComponent, - selectors:[["my-component"]], + selectors: [["my-component"]], standalone: false, decls: 0, vars: 0, - template: function MyComponent_Template(rf, $ctx$) { - }, + template: function MyComponent_Template(rf, ctx) {}, encapsulation: 2, - data: { - animation: [{name: 'foo123'}, {name: 'trigger123'}] - } + data: { animation: [{ name: "foo123" }, { name: "trigger123" }] } }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + animations: [{ name: "foo123" }, { name: "trigger123" }], + template: "", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "metadata.ts", + lineNumber: 8 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/metadata_empty.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/metadata_empty.js index 86cb9b6b481d..e01320fb2cac 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/metadata_empty.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/metadata_empty.js @@ -1,16 +1,71 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MyComponent, - selectors:[["my-component"]], + selectors: [["my-component"]], standalone: false, decls: 0, vars: 0, - template: function MyComponent_Template(rf, $ctx$) { - }, + template: function MyComponent_Template(rf, ctx) {}, encapsulation: 2, - data: { - animation: [] - } + data: { animation: [] } }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + animations: [], + template: "", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "metadata_empty.ts", + lineNumber: 7 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_default.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_default.js index cec9497d2906..361470ca21cb 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_default.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_default.js @@ -1 +1,80 @@ -styles: ["div.foo[_ngcontent-%COMP%] { color: red; }", "[_nghost-%COMP%] p[_ngcontent-%COMP%]:nth-child(even) { --%NS%webkit-transition: 1s linear all; }"] \ No newline at end of file +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0, "..."); + } + }, + styles: [ + "div.foo[_ngcontent-%COMP%] { color: red; }", + "[_nghost-%COMP%] p[_ngcontent-%COMP%]:nth-child(even) { --%NS%webkit-transition: 1s linear all; }" + ] + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: "...", + standalone: false, + styles: [ + "div.foo { color: red; }", + ":host p:nth-child(even) { --webkit-transition: 1s linear all; }" + ] + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "encapsulation_default.ts", + lineNumber: 11 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_emulated.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_emulated.js index 04f1f6e3dde6..306853bdfd8a 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_emulated.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_emulated.js @@ -1 +1,85 @@ -["div.bar { color: blue; }\n", "div.baz { color: purple; }\n", "div.foo { color: red; }", ":host p:nth-child(even) { --webkit-transition: 1s linear all; }"] +import { Component, NgModule, ViewEncapsulation } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0, "..."); + } + }, + styles: [ + "div.bar[_ngcontent-%COMP%] { color: blue; }", + "div.baz[_ngcontent-%COMP%] { color: purple; }", + "div.foo[_ngcontent-%COMP%] { color: red; }", + "[_nghost-%COMP%] p[_ngcontent-%COMP%]:nth-child(even) { --%NS%webkit-transition: 1s linear all; }" + ] + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + encapsulation: ViewEncapsulation.Emulated, + standalone: false, + template: "...", + styles: [ + "div.bar { color: blue; }\n", + "div.baz { color: purple; }\n", + "div.foo { color: red; }", + ":host p:nth-child(even) { --webkit-transition: 1s linear all; }" + ] + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "encapsulation_emulated.ts", + lineNumber: 13 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_none.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_none.js index 9dcf56608abf..59713748dbdc 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_none.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_none.js @@ -1 +1,76 @@ -div.tall { height: 123px; }", ":host.small p { height:5px; } \ No newline at end of file +import { Component, NgModule, ViewEncapsulation } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0, "..."); + } + }, + styles: ["div.tall { height: 123px; }", ":host.small p { height:5px; }"], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + encapsulation: ViewEncapsulation.None, + template: "...", + standalone: false, + styles: ["div.tall { height: 123px; }", ":host.small p { height:5px; }"] + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "encapsulation_none.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_shadow_dom.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_shadow_dom.js index b86fd44b198b..e6ca2cbf0c79 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_shadow_dom.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/encapsulation_shadow_dom.js @@ -1,8 +1,76 @@ +import { Component, NgModule, ViewEncapsulation } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - // ... + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0, "..."); + } + }, styles: ["div.cool { color: blue; }", ":host.nice p { color: gold; }"], encapsulation: 3 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + encapsulation: ViewEncapsulation.ShadowDom, + selector: "my-component", + template: "...", + standalone: false, + styles: ["div.cool { color: blue; }", ":host.nice p { color: gold; }"] + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "encapsulation_shadow_dom.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/external_runtime_files.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/external_runtime_files.js index 5f1209e54bda..1d72851b2eaf 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/external_runtime_files.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/external_runtime_files.js @@ -1 +1,74 @@ -ɵɵExternalStylesFeature(["/style-A.css", "/style-B.css"]) +import { Component, NgModule, ViewEncapsulation } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + features: [i0.ɵɵExternalStylesFeature(["/style-A.css", "/style-B.css"])], + decls: 1, + vars: 0, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0, "..."); + } + } + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + encapsulation: ViewEncapsulation.Emulated, + template: "...", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "external_runtime_files.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/TEST_CASES.json b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/TEST_CASES.json index 22b46dd6918e..534647844a01 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/TEST_CASES.json +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/TEST_CASES.json @@ -26,22 +26,7 @@ "inputFiles": ["important.ts"], "expectations": [ { - "failureMessage": "Incorrect template", - "files": [ - { - "expected": "important_template.js", - "generated": "important.js" - } - ] - }, - { - "failureMessage": "Incorrect host", - "files": [ - { - "expected": "important_host.js", - "generated": "important.js" - } - ] + "files": ["important.js"] } ] }, diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/class_interpolation.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/class_interpolation.js index 00e9aae4baf4..7dc650616183 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/class_interpolation.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/class_interpolation.js @@ -1,24 +1,192 @@ -function MyComponent_Template(rf, ctx) { - if (rf & 1) { - // ... - } - if (rf & 2) { - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate1("A", ctx.p1, "B")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate2("A", ctx.p1, "B", ctx.p2, "C")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate3("A", ctx.p1, "B", ctx.p2, "C", ctx.p3, "D")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate4("A", ctx.p1, "B", ctx.p2, "C", ctx.p3, "D", ctx.p4, "E")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate5("A", ctx.p1, "B", ctx.p2, "C", ctx.p3, "D", ctx.p4, "E", ctx.p5, "F")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate6("A", ctx.p1, "B", ctx.p2, "C", ctx.p3, "D", ctx.p4, "E", ctx.p5, "F", ctx.p6, "G")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate7("A", ctx.p1, "B", ctx.p2, "C", ctx.p3, "D", ctx.p4, "E", ctx.p5, "F", ctx.p6, "G", ctx.p7, "H")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate8("A", ctx.p1, "B", ctx.p2, "C", ctx.p3, "D", ctx.p4, "E", ctx.p5, "F", ctx.p6, "G", ctx.p7, "H", ctx.p8, "I")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolateV(["A", ctx.p1, "B", ctx.p2, "C", ctx.p3, "D", ctx.p4, "E", ctx.p5, "F", ctx.p6, "G", ctx.p7, "H", ctx.p8, "I", ctx.p9, "J"])); - } -}, +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + p1 = 100; + p2 = 100; + p3 = 100; + p4 = 100; + p5 = 100; + p6 = 100; + p7 = 100; + p8 = 100; + p9 = 100; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 9, + vars: 63, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div")(1, "div")(2, "div")(3, "div")(4, "div")(5, "div")(6, "div")( + 7, + "div" + )(8, "div"); + } + if (rf & 2) { + i0.ɵɵclassMap(i0.ɵɵinterpolate1("A", ctx.p1, "B")); + i0.ɵɵadvance(); + i0.ɵɵclassMap(i0.ɵɵinterpolate2("A", ctx.p1, "B", ctx.p2, "C")); + i0.ɵɵadvance(); + i0.ɵɵclassMap(i0.ɵɵinterpolate3("A", ctx.p1, "B", ctx.p2, "C", ctx.p3, "D")); + i0.ɵɵadvance(); + i0.ɵɵclassMap(i0.ɵɵinterpolate4("A", ctx.p1, "B", ctx.p2, "C", ctx.p3, "D", ctx.p4, "E")); + i0.ɵɵadvance(); + i0.ɵɵclassMap( + i0.ɵɵinterpolate5("A", ctx.p1, "B", ctx.p2, "C", ctx.p3, "D", ctx.p4, "E", ctx.p5, "F") + ); + i0.ɵɵadvance(); + i0.ɵɵclassMap( + i0.ɵɵinterpolate6( + "A", + ctx.p1, + "B", + ctx.p2, + "C", + ctx.p3, + "D", + ctx.p4, + "E", + ctx.p5, + "F", + ctx.p6, + "G" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵclassMap( + i0.ɵɵinterpolate7( + "A", + ctx.p1, + "B", + ctx.p2, + "C", + ctx.p3, + "D", + ctx.p4, + "E", + ctx.p5, + "F", + ctx.p6, + "G", + ctx.p7, + "H" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵclassMap( + i0.ɵɵinterpolate8( + "A", + ctx.p1, + "B", + ctx.p2, + "C", + ctx.p3, + "D", + ctx.p4, + "E", + ctx.p5, + "F", + ctx.p6, + "G", + ctx.p7, + "H", + ctx.p8, + "I" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵclassMap( + i0.ɵɵinterpolateV([ + "A", + ctx.p1, + "B", + ctx.p2, + "C", + ctx.p3, + "D", + ctx.p4, + "E", + ctx.p5, + "F", + ctx.p6, + "G", + ctx.p7, + "H", + ctx.p8, + "I", + ctx.p9, + "J" + ]) + ); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    +
    +
    +
    +
    +
    +
    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "class_interpolation.ts", + lineNumber: 18 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/css_custom_properties.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/css_custom_properties.js index fb952a07a280..196fe2e48549 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/css_custom_properties.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/css_custom_properties.js @@ -1,8 +1,44 @@ -// NOTE: It *does* mangle the camel case property in the consts array. This was pre-existing TDB behavior, but should be fixed. -hostAttrs: [2, "--camel-case", "foo", "--kebab-case", "foo"], -… -hostBindings: function MyDirective_HostBindings(rf, ctx) { - if (rf & 2) { - i0.ɵɵstyleProp("--%NS%camelCase", ctx.value)("--%NS%kebab-case", ctx.value); - } +import { Directive } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyDirective { + value; + static ɵfac = function MyDirective_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyDirective)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: MyDirective, + selectors: [["my-dir"]], + hostAttrs: [2, "--camel-case", "foo", "--kebab-case", "foo"], + hostVars: 4, + hostBindings: function MyDirective_HostBindings(rf, ctx) { + if (rf & 2) { + i0.ɵɵstyleProp("--%NS%camelCase", ctx.value)("--%NS%kebab-case", ctx.value); + } + }, + standalone: false + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyDirective, + [ + { + type: Directive, + args: [ + { + selector: "my-dir", + host: { + "[style.--camelCase]": "value", + "[style.--kebab-case]": "value", + "style": "--camelCase: foo; --kebab-case: foo" + }, + standalone: false + } + ] + } + ], + null, + null + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/important.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/important.js new file mode 100644 index 000000000000..8d53a8146f05 --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/important.js @@ -0,0 +1,110 @@ +import { Component, HostBinding, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + myStyleExp = ""; + myClassExp = ""; + myFooClassExp = true; + myWidthExp = "100px"; + myBarClassExp = true; + myHeightExp = "200px"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + hostVars: 6, + hostBindings: function MyComponent_HostBindings(rf, ctx) { + if (rf & 2) { + i0.ɵɵstyleProp("width", ctx.myWidthExp); + i0.ɵɵclassProp("baz", ctx.myClassExp)("foo", ctx.myFooClassExp); + } + }, + standalone: false, + decls: 1, + vars: 4, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + if (rf & 2) { + i0.ɵɵstyleProp("height", ctx.myHeightExp); + i0.ɵɵclassProp("bar", ctx.myBarClassExp); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + `, + host: { + "[style.width!important]": "myStyleExp", + "[class.baz!important]": "myClassExp" + }, + standalone: false + } + ] + } + ], + null, + { + myFooClassExp: [ + { + type: HostBinding, + args: ["class.foo!important"] + } + ], + myWidthExp: [ + { + type: HostBinding, + args: ["style.width!important"] + } + ] + } + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "important.ts", + lineNumber: 12 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/important_host.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/important_host.js deleted file mode 100644 index f1867736ceb7..000000000000 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/important_host.js +++ /dev/null @@ -1,9 +0,0 @@ -function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div"); - } - if (rf & 2) { - $r3$.ɵɵstyleProp("height", ctx.myHeightExp); - $r3$.ɵɵclassProp("bar", ctx.myBarClassExp); - } -}, diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/important_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/important_template.js deleted file mode 100644 index b6463c99c559..000000000000 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/important_template.js +++ /dev/null @@ -1,8 +0,0 @@ - -hostVars: 6, -hostBindings: function MyComponent_HostBindings(rf, ctx) { - if (rf & 2) { - $r3$.ɵɵstyleProp("width", ctx.myWidthExp); - $r3$.ɵɵclassProp("baz", ctx.myClassExp)("foo", ctx.myFooClassExp); - } -}, diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_directives.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_directives.js index fc4ee5cbf0cc..7ce4896b5ba1 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_directives.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_directives.js @@ -1,24 +1,222 @@ -// ... -hostVars: 2, -hostBindings: function ClassDirective_HostBindings(rf, ctx) { - if (rf & 2) { - $r3$.ɵɵclassMap(ctx.myClassMap); - } +import { Component, Directive, HostBinding, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class ClassDirective { + myClassMap = { red: true }; + static ɵfac = function ClassDirective_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || ClassDirective)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: ClassDirective, + selectors: [["", "myClassDir", ""]], + hostVars: 2, + hostBindings: function ClassDirective_HostBindings(rf, ctx) { + if (rf & 2) { + i0.ɵɵclassMap(ctx.myClassMap); + } + }, + standalone: false + }); } -// ... -hostVars: 4, -hostBindings: function WidthDirective_HostBindings(rf, ctx) { - if (rf & 2) { - $r3$.ɵɵstyleProp("width", ctx.myWidth); - $r3$.ɵɵclassProp("foo", ctx.myFooClass); - } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + ClassDirective, + [ + { + type: Directive, + args: [ + { + selector: "[myClassDir]", + standalone: false + } + ] + } + ], + null, + { + myClassMap: [ + { + type: HostBinding, + args: ["class"] + } + ] + } + ); +})(); +export class WidthDirective { + myWidth = 200; + myFooClass = true; + static ɵfac = function WidthDirective_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || WidthDirective)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: WidthDirective, + selectors: [["", "myWidthDir", ""]], + hostVars: 4, + hostBindings: function WidthDirective_HostBindings(rf, ctx) { + if (rf & 2) { + i0.ɵɵstyleProp("width", ctx.myWidth); + i0.ɵɵclassProp("foo", ctx.myFooClass); + } + }, + standalone: false + }); } -// ... -hostVars: 4, -hostBindings: function HeightDirective_HostBindings(rf, ctx) { - if (rf & 2) { - $r3$.ɵɵstyleProp("height", ctx.myHeight); - $r3$.ɵɵclassProp("bar", ctx.myBarClass); - } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + WidthDirective, + [ + { + type: Directive, + args: [ + { + selector: "[myWidthDir]", + standalone: false + } + ] + } + ], + null, + { + myWidth: [ + { + type: HostBinding, + args: ["style.width"] + } + ], + myFooClass: [ + { + type: HostBinding, + args: ["class.foo"] + } + ] + } + ); +})(); +export class HeightDirective { + myHeight = 200; + myBarClass = true; + static ɵfac = function HeightDirective_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || HeightDirective)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: HeightDirective, + selectors: [["", "myHeightDir", ""]], + hostVars: 4, + hostBindings: function HeightDirective_HostBindings(rf, ctx) { + if (rf & 2) { + i0.ɵɵstyleProp("height", ctx.myHeight); + i0.ɵɵclassProp("bar", ctx.myBarClass); + } + }, + standalone: false + }); } -// ... +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + HeightDirective, + [ + { + type: Directive, + args: [ + { + selector: "[myHeightDir]", + standalone: false + } + ] + } + ], + null, + { + myHeight: [ + { + type: HostBinding, + args: ["style.height"] + } + ], + myBarClass: [ + { + type: HostBinding, + args: ["class.bar"] + } + ] + } + ); +})(); +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [["myWidthDir", "", "myHeightDir", "", "myClassDir", ""]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div", 0); + } + }, + dependencies: [WidthDirective, HeightDirective, ClassDirective], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: "
    ", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "multiple_directives.ts", + lineNumber: 36 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent, WidthDirective, HeightDirective, ClassDirective] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { + declarations: [MyComponent, WidthDirective, HeightDirective, ClassDirective] + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_dynamic.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_dynamic.js index ea2c0977cddf..86cdc7ff080c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_dynamic.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/multiple_dynamic.js @@ -1,12 +1,110 @@ -hostVars: 12, -hostBindings: function MyComponent_HostBindings(rf, ctx) { - if (rf & 2) { - $r3$.ɵɵstyleMap(ctx.myStyle); - $r3$.ɵɵclassMap(ctx.myClasses); - $r3$.ɵɵstyleProp("height", ctx.myHeightProp, "pt")("width", ctx.myWidthProp); - $r3$.ɵɵclassProp("bar", ctx.myBarClass)("foo", ctx.myFooClass); - } -}, -standalone: false, -decls: 0, -vars: 0, +import { Component, HostBinding, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + myHeightProp = 20; + myBarClass = true; + myStyle = {}; + myWidthProp = "500px"; + myFooClass = true; + myClasses = { a: true, b: true }; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + hostVars: 12, + hostBindings: function MyComponent_HostBindings(rf, ctx) { + if (rf & 2) { + i0.ɵɵstyleMap(ctx.myStyle); + i0.ɵɵclassMap(ctx.myClasses); + i0.ɵɵstyleProp("height", ctx.myHeightProp, "pt")("width", ctx.myWidthProp); + i0.ɵɵclassProp("bar", ctx.myBarClass)("foo", ctx.myFooClass); + } + }, + standalone: false, + decls: 0, + vars: 0, + template: function MyComponent_Template(rf, ctx) {}, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: "", + host: { "[style.height.pt]": "myHeightProp", "[class.bar]": "myBarClass" }, + standalone: false + } + ] + } + ], + null, + { + myStyle: [ + { + type: HostBinding, + args: ["style"] + } + ], + myWidthProp: [ + { + type: HostBinding, + args: ["style.width"] + } + ], + myFooClass: [ + { + type: HostBinding, + args: ["class.foo"] + } + ], + myClasses: [ + { + type: HostBinding, + args: ["class"] + } + ] + } + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "multiple_dynamic.ts", + lineNumber: 9 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/static_and_dynamic.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/static_and_dynamic.js index 079019ee500b..f7daca114fac 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/static_and_dynamic.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/static_and_dynamic.js @@ -1,13 +1,109 @@ -hostAttrs: [__AttributeMarker.Classes__, "foo", "baz", __AttributeMarker.Styles__, "width", "200px", "height", "500px"], -hostVars: 8, -hostBindings: function MyComponent_HostBindings(rf, ctx) { - if (rf & 2) { - $r3$.ɵɵstyleMap(ctx.myStyle); - $r3$.ɵɵclassMap(ctx.myClass); - $r3$.ɵɵstyleProp("color", ctx.myColorProp); - $r3$.ɵɵclassProp("foo", ctx.myFooClass); - } -}, -standalone: false, -decls: 0, -vars: 0, +import { Component, HostBinding, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + myStyle = { width: "100px" }; + myClass = { bar: false }; + myColorProp = "red"; + myFooClass = "red"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + hostAttrs: [1, "foo", "baz", 2, "width", "200px", "height", "500px"], + hostVars: 8, + hostBindings: function MyComponent_HostBindings(rf, ctx) { + if (rf & 2) { + i0.ɵɵstyleMap(ctx.myStyle); + i0.ɵɵclassMap(ctx.myClass); + i0.ɵɵstyleProp("color", ctx.myColorProp); + i0.ɵɵclassProp("foo", ctx.myFooClass); + } + }, + standalone: false, + decls: 0, + vars: 0, + template: function MyComponent_Template(rf, ctx) {}, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: "", + host: { "style": "width:200px; height:500px", "class": "foo baz" }, + standalone: false + } + ] + } + ], + null, + { + myStyle: [ + { + type: HostBinding, + args: ["style"] + } + ], + myClass: [ + { + type: HostBinding, + args: ["class"] + } + ], + myColorProp: [ + { + type: HostBinding, + args: ["style.color"] + } + ], + myFooClass: [ + { + type: HostBinding, + args: ["class.foo"] + } + ] + } + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "static_and_dynamic.ts", + lineNumber: 9 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/style_interpolation.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/style_interpolation.js index 19fa4755ad73..80596a659888 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/style_interpolation.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/style_interpolation.js @@ -1,24 +1,206 @@ -function MyComponent_Template(rf, ctx) { - if (rf & 1) { - // ... - } - if (rf & 2) { - $r3$.ɵɵstyleMap($r3$.ɵɵinterpolate1("p1:", ctx.p1, ";")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleMap($r3$.ɵɵinterpolate2("p1:", ctx.p1, ";p2:", ctx.p2, ";")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleMap($r3$.ɵɵinterpolate3("p1:", ctx.p1, ";p2:", ctx.p2, ";p3:", ctx.p3, ";")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleMap($r3$.ɵɵinterpolate4("p1:", ctx.p1, ";p2:", ctx.p2, ";p3:", ctx.p3, ";p4:", ctx.p4, ";")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleMap($r3$.ɵɵinterpolate5("p1:", ctx.p1, ";p2:", ctx.p2, ";p3:", ctx.p3, ";p4:", ctx.p4, ";p5:", ctx.p5, ";")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleMap($r3$.ɵɵinterpolate6("p1:", ctx.p1, ";p2:", ctx.p2, ";p3:", ctx.p3, ";p4:", ctx.p4, ";p5:", ctx.p5, ";p6:", ctx.p6, ";")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleMap($r3$.ɵɵinterpolate7("p1:", ctx.p1, ";p2:", ctx.p2, ";p3:", ctx.p3, ";p4:", ctx.p4, ";p5:", ctx.p5, ";p6:", ctx.p6, ";p7:", ctx.p7, ";")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleMap($r3$.ɵɵinterpolate8("p1:", ctx.p1, ";p2:", ctx.p2, ";p3:", ctx.p3, ";p4:", ctx.p4, ";p5:", ctx.p5, ";p6:", ctx.p6, ";p7:", ctx.p7, ";p8:", ctx.p8, ";")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleMap($r3$.ɵɵinterpolateV(["p1:", ctx.p1, ";p2:", ctx.p2, ";p3:", ctx.p3, ";p4:", ctx.p4, ";p5:", ctx.p5, ";p6:", ctx.p6, ";p7:", ctx.p7, ";p8:", ctx.p8, ";p9:", ctx.p9, ";"])); - } -}, +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + p1 = 100; + p2 = 100; + p3 = 100; + p4 = 100; + p5 = 100; + p6 = 100; + p7 = 100; + p8 = 100; + p9 = 100; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 9, + vars: 63, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div")(1, "div")(2, "div")(3, "div")(4, "div")(5, "div")(6, "div")( + 7, + "div" + )(8, "div"); + } + if (rf & 2) { + i0.ɵɵstyleMap(i0.ɵɵinterpolate1("p1:", ctx.p1, ";")); + i0.ɵɵadvance(); + i0.ɵɵstyleMap(i0.ɵɵinterpolate2("p1:", ctx.p1, ";p2:", ctx.p2, ";")); + i0.ɵɵadvance(); + i0.ɵɵstyleMap(i0.ɵɵinterpolate3("p1:", ctx.p1, ";p2:", ctx.p2, ";p3:", ctx.p3, ";")); + i0.ɵɵadvance(); + i0.ɵɵstyleMap( + i0.ɵɵinterpolate4("p1:", ctx.p1, ";p2:", ctx.p2, ";p3:", ctx.p3, ";p4:", ctx.p4, ";") + ); + i0.ɵɵadvance(); + i0.ɵɵstyleMap( + i0.ɵɵinterpolate5( + "p1:", + ctx.p1, + ";p2:", + ctx.p2, + ";p3:", + ctx.p3, + ";p4:", + ctx.p4, + ";p5:", + ctx.p5, + ";" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵstyleMap( + i0.ɵɵinterpolate6( + "p1:", + ctx.p1, + ";p2:", + ctx.p2, + ";p3:", + ctx.p3, + ";p4:", + ctx.p4, + ";p5:", + ctx.p5, + ";p6:", + ctx.p6, + ";" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵstyleMap( + i0.ɵɵinterpolate7( + "p1:", + ctx.p1, + ";p2:", + ctx.p2, + ";p3:", + ctx.p3, + ";p4:", + ctx.p4, + ";p5:", + ctx.p5, + ";p6:", + ctx.p6, + ";p7:", + ctx.p7, + ";" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵstyleMap( + i0.ɵɵinterpolate8( + "p1:", + ctx.p1, + ";p2:", + ctx.p2, + ";p3:", + ctx.p3, + ";p4:", + ctx.p4, + ";p5:", + ctx.p5, + ";p6:", + ctx.p6, + ";p7:", + ctx.p7, + ";p8:", + ctx.p8, + ";" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵstyleMap( + i0.ɵɵinterpolateV([ + "p1:", + ctx.p1, + ";p2:", + ctx.p2, + ";p3:", + ctx.p3, + ";p4:", + ctx.p4, + ";p5:", + ctx.p5, + ";p6:", + ctx.p6, + ";p7:", + ctx.p7, + ";p8:", + ctx.p8, + ";p9:", + ctx.p9, + ";" + ]) + ); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    +
    +
    +
    +
    +
    +
    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "style_interpolation.ts", + lineNumber: 18 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/class_interpolations.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/class_interpolations.js index c7b0ebdddf91..cca88c713501 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/class_interpolations.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/class_interpolations.js @@ -1,23 +1,183 @@ -// ... - if (rf & 2) { - $r3$.ɵɵclassMap($r3$.ɵɵinterpolateV(["a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i", ctx.nine, "j"])); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate8("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate7("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate6("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate5("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate4("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate3("a", ctx.one, "b", ctx.two, "c", ctx.three, "d")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate1("a", ctx.one, "b")); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassMap(ctx.one); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + one = ""; + two = ""; + three = ""; + four = ""; + five = ""; + six = ""; + seven = ""; + eight = ""; + nine = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 10, + vars: 65, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div")(1, "div")(2, "div")(3, "div")(4, "div")(5, "div")(6, "div")( + 7, + "div" + )(8, "div")(9, "div"); + } + if (rf & 2) { + i0.ɵɵclassMap( + i0.ɵɵinterpolateV([ + "a", + ctx.one, + "b", + ctx.two, + "c", + ctx.three, + "d", + ctx.four, + "e", + ctx.five, + "f", + ctx.six, + "g", + ctx.seven, + "h", + ctx.eight, + "i", + ctx.nine, + "j" + ]) + ); + i0.ɵɵadvance(); + i0.ɵɵclassMap( + i0.ɵɵinterpolate8( + "a", + ctx.one, + "b", + ctx.two, + "c", + ctx.three, + "d", + ctx.four, + "e", + ctx.five, + "f", + ctx.six, + "g", + ctx.seven, + "h", + ctx.eight, + "i" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵclassMap( + i0.ɵɵinterpolate7( + "a", + ctx.one, + "b", + ctx.two, + "c", + ctx.three, + "d", + ctx.four, + "e", + ctx.five, + "f", + ctx.six, + "g", + ctx.seven, + "h" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵclassMap( + i0.ɵɵinterpolate6( + "a", + ctx.one, + "b", + ctx.two, + "c", + ctx.three, + "d", + ctx.four, + "e", + ctx.five, + "f", + ctx.six, + "g" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵclassMap( + i0.ɵɵinterpolate5( + "a", + ctx.one, + "b", + ctx.two, + "c", + ctx.three, + "d", + ctx.four, + "e", + ctx.five, + "f" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵclassMap( + i0.ɵɵinterpolate4("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e") + ); + i0.ɵɵadvance(); + i0.ɵɵclassMap(i0.ɵɵinterpolate3("a", ctx.one, "b", ctx.two, "c", ctx.three, "d")); + i0.ɵɵadvance(); + i0.ɵɵclassMap(i0.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c")); + i0.ɵɵadvance(); + i0.ɵɵclassMap(i0.ɵɵinterpolate1("a", ctx.one, "b")); + i0.ɵɵadvance(); + i0.ɵɵclassMap(ctx.one); + } + }, + encapsulation: 2 + }); } -// ... +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: ` +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "class_interpolations.ts", + lineNumber: 18 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_important.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_important.js index b34aebd3b8d2..64bc432fcbd0 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_important.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_important.js @@ -1,5 +1,54 @@ -// ... -if (rf & 2) { - $r3$.ɵɵstyleProp("width", $r3$.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c")); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + one = ""; + two = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 4, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + if (rf & 2) { + i0.ɵɵstyleProp("width", i0.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c")); + } + }, + encapsulation: 2 + }); } -// ... +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "style_binding_important.ts", + lineNumber: 9 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_sanitizer.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_sanitizer.js index 68dab1401f2a..bb3d7c6bcd14 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_sanitizer.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_sanitizer.js @@ -1,5 +1,66 @@ -// ... -if (rf & 2) { - $r3$.ɵɵstyleProp("background", $r3$.ɵɵinterpolate1("url(", ctx.myUrl1, ")"))("border-image", $r3$.ɵɵinterpolate2("url(", ctx.myUrl2, ") ", ctx.myRepeat, " auto"))("box-shadow", $r3$.ɵɵinterpolate3("", ctx.myBoxX, " ", ctx.myBoxY, " ", ctx.myBoxWidth, " black")); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + myUrl1 = "..."; + myUrl2 = "..."; + myBoxX = "0px"; + myBoxY = "0px"; + myBoxWidth = "100px"; + myRepeat = "no-repeat"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 12, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + if (rf & 2) { + i0.ɵɵstyleProp("background", i0.ɵɵinterpolate1("url(", ctx.myUrl1, ")"))( + "border-image", + i0.ɵɵinterpolate2("url(", ctx.myUrl2, ") ", ctx.myRepeat, " auto") + )( + "box-shadow", + i0.ɵɵinterpolate3("", ctx.myBoxX, " ", ctx.myBoxY, " ", ctx.myBoxWidth, " black") + ); + } + }, + encapsulation: 2 + }); } -// ... +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "style_binding_sanitizer.ts", + lineNumber: 11 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_suffixed.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_suffixed.js index 5634be86d6a3..3daf25db93ca 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_suffixed.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_binding_suffixed.js @@ -1,5 +1,54 @@ -// ... -if (rf & 2) { - $r3$.ɵɵstyleProp("width", $r3$.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c"), "px"); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + one = ""; + two = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 4, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + if (rf & 2) { + i0.ɵɵstyleProp("width", i0.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c"), "px"); + } + }, + encapsulation: 2 + }); } -// ... +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "style_binding_suffixed.ts", + lineNumber: 9 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_properties.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_properties.js index afad1b09fde3..6242b20e99af 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_properties.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/style_properties.js @@ -1,23 +1,189 @@ -// ... - if (rf & 2) { - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolateV(["a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i", ctx.nine, "j"])); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolate8("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolate7("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolate6("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolate5("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolate4("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolate3("a", ctx.one, "b", ctx.two, "c", ctx.three, "d")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleProp("color", $r3$.ɵɵinterpolate1("a", ctx.one, "b")); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleProp("color", ctx.one); +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + one = ""; + two = ""; + three = ""; + four = ""; + five = ""; + six = ""; + seven = ""; + eight = ""; + nine = ""; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 10, + vars: 65, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div")(1, "div")(2, "div")(3, "div")(4, "div")(5, "div")(6, "div")( + 7, + "div" + )(8, "div")(9, "div"); + } + if (rf & 2) { + i0.ɵɵstyleProp( + "color", + i0.ɵɵinterpolateV([ + "a", + ctx.one, + "b", + ctx.two, + "c", + ctx.three, + "d", + ctx.four, + "e", + ctx.five, + "f", + ctx.six, + "g", + ctx.seven, + "h", + ctx.eight, + "i", + ctx.nine, + "j" + ]) + ); + i0.ɵɵadvance(); + i0.ɵɵstyleProp( + "color", + i0.ɵɵinterpolate8( + "a", + ctx.one, + "b", + ctx.two, + "c", + ctx.three, + "d", + ctx.four, + "e", + ctx.five, + "f", + ctx.six, + "g", + ctx.seven, + "h", + ctx.eight, + "i" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵstyleProp( + "color", + i0.ɵɵinterpolate7( + "a", + ctx.one, + "b", + ctx.two, + "c", + ctx.three, + "d", + ctx.four, + "e", + ctx.five, + "f", + ctx.six, + "g", + ctx.seven, + "h" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵstyleProp( + "color", + i0.ɵɵinterpolate6( + "a", + ctx.one, + "b", + ctx.two, + "c", + ctx.three, + "d", + ctx.four, + "e", + ctx.five, + "f", + ctx.six, + "g" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵstyleProp( + "color", + i0.ɵɵinterpolate5( + "a", + ctx.one, + "b", + ctx.two, + "c", + ctx.three, + "d", + ctx.four, + "e", + ctx.five, + "f" + ) + ); + i0.ɵɵadvance(); + i0.ɵɵstyleProp( + "color", + i0.ɵɵinterpolate4("a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e") + ); + i0.ɵɵadvance(); + i0.ɵɵstyleProp("color", i0.ɵɵinterpolate3("a", ctx.one, "b", ctx.two, "c", ctx.three, "d")); + i0.ɵɵadvance(); + i0.ɵɵstyleProp("color", i0.ɵɵinterpolate2("a", ctx.one, "b", ctx.two, "c")); + i0.ɵɵadvance(); + i0.ɵɵstyleProp("color", i0.ɵɵinterpolate1("a", ctx.one, "b")); + i0.ɵɵadvance(); + i0.ɵɵstyleProp("color", ctx.one); + } + }, + encapsulation: 2 + }); } -// ... +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: ` +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "style_properties.ts", + lineNumber: 18 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/mixed.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/mixed.js index 919c9e05c022..e21b6d00d455 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/mixed.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/mixed.js @@ -1,9 +1,79 @@ -template: function MyComponent_Template(rf, $ctx$) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div"); - } - if (rf & 2) { - $r3$.ɵɵstyleMap($ctx$.myStyleExp); - $r3$.ɵɵclassMap($ctx$.myClassExp); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + myStyleExp = [{ color: "red" }, { color: "blue", duration: 1000 }]; + myClassExp = "foo bar apple"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 4, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + if (rf & 2) { + i0.ɵɵstyleMap(ctx.myStyleExp); + i0.ɵɵclassMap(ctx.myClassExp); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "mixed.ts", + lineNumber: 8 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/multiple_elements.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/multiple_elements.js index 096b658c09ad..a8fec11fb768 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/multiple_elements.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/multiple_elements.js @@ -1,13 +1,91 @@ -// ... -template: function MyComponent_Template(rf, $ctx$) { - // ... - if (rf & 2) { - $r3$.ɵɵstyleProp("width", $ctx$.w1); - $r3$.ɵɵadvance(); - $r3$.ɵɵstyleProp("height", $ctx$.h1); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassProp("active", $ctx$.a1); - $r3$.ɵɵadvance(); - $r3$.ɵɵclassProp("removed", $ctx$.r1); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + w1 = "100px"; + h1 = "100px"; + a1 = true; + r1 = true; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 4, + vars: 8, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div")(1, "div")(2, "div")(3, "div"); + } + if (rf & 2) { + i0.ɵɵstyleProp("width", ctx.w1); + i0.ɵɵadvance(); + i0.ɵɵstyleProp("height", ctx.h1); + i0.ɵɵadvance(); + i0.ɵɵclassProp("active", ctx.a1); + i0.ɵɵadvance(); + i0.ɵɵclassProp("removed", ctx.r1); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    +
    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "multiple_elements.ts", + lineNumber: 13 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/pipe_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/pipe_bindings.js index f4a756cf5aa6..4f9d9235de50 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/pipe_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/pipe_bindings.js @@ -1,12 +1,144 @@ -template: function MyComponent_Template(rf, $ctx$) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div"); - $r3$.ɵɵpipe(1, "stylePipe"); - $r3$.ɵɵpipe(2, "classPipe"); - } - if (rf & 2) { - $r3$.ɵɵstyleMap($r3$.ɵɵpipeBind1(1, 4, $ctx$.myStyleExp)); - $r3$.ɵɵclassMap($r3$.ɵɵpipeBind1(2, 6, $ctx$.myClassExp)); - } - } - \ No newline at end of file +import { Component, NgModule, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; +export class StylePipe { + transform(v) {} + static ɵfac = function StylePipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || StylePipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "stylePipe", + type: StylePipe, + pure: true, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + StylePipe, + [ + { + type: Pipe, + args: [ + { + name: "stylePipe", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class ClassPipe { + transform(v) {} + static ɵfac = function ClassPipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || ClassPipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "classPipe", + type: ClassPipe, + pure: true, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + ClassPipe, + [ + { + type: Pipe, + args: [ + { + name: "classPipe", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class MyComponent { + myStyleExp = [{ color: "red" }, { color: "blue", duration: 1000 }]; + myClassExp = "foo bar apple"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 3, + vars: 8, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + i0.ɵɵpipe(1, "stylePipe"); + i0.ɵɵpipe(2, "classPipe"); + } + if (rf & 2) { + i0.ɵɵstyleMap(i0.ɵɵpipeBind1(1, 4, ctx.myStyleExp)); + i0.ɵɵclassMap(i0.ɵɵpipeBind1(2, 6, ctx.myClassExp)); + } + }, + dependencies: [StylePipe, ClassPipe], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "pipe_bindings.ts", + lineNumber: 24 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent, StylePipe, ClassPipe] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, StylePipe, ClassPipe] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/pipe_bindings_slots.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/pipe_bindings_slots.js index 90f543e3ed24..e58b5de59f4f 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/pipe_bindings_slots.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/pipe_bindings_slots.js @@ -1,19 +1,135 @@ -template: function MyComponent_Template(rf, $ctx$) { - if (rf & 1) { - $r3$.ɵɵelementStart(0, "div"); - $r3$.ɵɵpipe(1, "pipe"); - $r3$.ɵɵpipe(2, "pipe"); - $r3$.ɵɵpipe(3, "pipe"); - $r3$.ɵɵpipe(4, "pipe"); - $r3$.ɵɵtext(5); - $r3$.ɵɵelementEnd(); - } - if (rf & 2) { - $r3$.ɵɵstyleMap($r3$.ɵɵpipeBind2(1, 11, $ctx$.myStyleExp, 1000)); - $r3$.ɵɵclassMap($r3$.ɵɵpureFunction0(23, _c0)); - $r3$.ɵɵstyleProp("bar", $r3$.ɵɵpipeBind2(2, 14, $ctx$.barExp, 3000))("baz", $r3$.ɵɵpipeBind2(3, 17, $ctx$.bazExp, 4000)); - $r3$.ɵɵclassProp("foo", $r3$.ɵɵpipeBind2(4, 20, $ctx$.fooExp, 2000)); - $r3$.ɵɵadvance(5); - $r3$.ɵɵtextInterpolate1(" ", $ctx$.item); - } +import { Component, NgModule, Pipe } from "@angular/core"; +import * as i0 from "@angular/core"; +const _c0 = () => ({}); +export class PipePipe { + transform(v) {} + static ɵfac = function PipePipe_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || PipePipe)(); + }; + static ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ + name: "pipe", + type: PipePipe, + pure: true, + standalone: false + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + PipePipe, + [ + { + type: Pipe, + args: [ + { + name: "pipe", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +export class MyComponent { + myStyleExp = {}; + fooExp = "foo"; + barExp = "bar"; + bazExp = "baz"; + items = [1, 2, 3]; + item = 1; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 6, + vars: 24, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵpipe(1, "pipe"); + i0.ɵɵpipe(2, "pipe"); + i0.ɵɵpipe(3, "pipe"); + i0.ɵɵpipe(4, "pipe"); + i0.ɵɵtext(5); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵstyleMap(i0.ɵɵpipeBind2(1, 11, ctx.myStyleExp, 1000)); + i0.ɵɵclassMap(i0.ɵɵpureFunction0(23, _c0)); + i0.ɵɵstyleProp("bar", i0.ɵɵpipeBind2(2, 14, ctx.barExp, 3000))( + "baz", + i0.ɵɵpipeBind2(3, 17, ctx.bazExp, 4000) + ); + i0.ɵɵclassProp("foo", i0.ɵɵpipeBind2(4, 20, ctx.fooExp, 2000)); + i0.ɵɵadvance(5); + i0.ɵɵtextInterpolate1(" ", ctx.item); + } + }, + dependencies: [PipePipe], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + {{ item }}
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "pipe_bindings_slots.ts", + lineNumber: 22 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent, PipePipe] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent, PipePipe] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots.js index a5b715a5f612..31dd753cad38 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots.js @@ -1,33 +1,198 @@ -// ... - decls: 1, - vars: 3, - template: function MyComponentWithInterpolation_Template(rf, $ctx$) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div"); - } - if (rf & 2) { - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate1("foo foo-", $ctx$.fooId)); - } - } -// ... - decls: 1, - vars: 4, - template: function MyComponentWithMuchosInterpolation_Template(rf, $ctx$) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div"); - } - if (rf & 2) { - $r3$.ɵɵclassMap($r3$.ɵɵinterpolate2("foo foo-", $ctx$.fooId, "-", $ctx$.fooUsername)); - } - } -// ... - decls: 1, - vars: 2, - template: function MyComponentWithoutInterpolation_Template(rf, $ctx$) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div"); - } - if (rf & 2) { - $r3$.ɵɵclassMap($ctx$.exp); - } - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponentWithInterpolation { + fooId = "123"; + static ɵfac = function MyComponentWithInterpolation_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponentWithInterpolation)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponentWithInterpolation, + selectors: [["my-component-with-interpolation"]], + standalone: false, + decls: 1, + vars: 3, + template: function MyComponentWithInterpolation_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + if (rf & 2) { + i0.ɵɵclassMap(i0.ɵɵinterpolate1("foo foo-", ctx.fooId)); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponentWithInterpolation, + [ + { + type: Component, + args: [ + { + selector: "my-component-with-interpolation", + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponentWithInterpolation, { + className: "MyComponentWithInterpolation", + filePath: "binding_slots.ts", + lineNumber: 10 + }); +})(); +export class MyComponentWithMuchosInterpolation { + fooId = "123"; + fooUsername = "superfoo"; + static ɵfac = function MyComponentWithMuchosInterpolation_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponentWithMuchosInterpolation)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponentWithMuchosInterpolation, + selectors: [["my-component-with-muchos-interpolation"]], + standalone: false, + decls: 1, + vars: 4, + template: function MyComponentWithMuchosInterpolation_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + if (rf & 2) { + i0.ɵɵclassMap(i0.ɵɵinterpolate2("foo foo-", ctx.fooId, "-", ctx.fooUsername)); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponentWithMuchosInterpolation, + [ + { + type: Component, + args: [ + { + selector: "my-component-with-muchos-interpolation", + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponentWithMuchosInterpolation, { + className: "MyComponentWithMuchosInterpolation", + filePath: "binding_slots.ts", + lineNumber: 21 + }); +})(); +export class MyComponentWithoutInterpolation { + exp = "bar"; + static ɵfac = function MyComponentWithoutInterpolation_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponentWithoutInterpolation)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponentWithoutInterpolation, + selectors: [["my-component-without-interpolation"]], + standalone: false, + decls: 1, + vars: 2, + template: function MyComponentWithoutInterpolation_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + if (rf & 2) { + i0.ɵɵclassMap(ctx.exp); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponentWithoutInterpolation, + [ + { + type: Component, + args: [ + { + selector: "my-component-without-interpolation", + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponentWithoutInterpolation, { + className: "MyComponentWithoutInterpolation", + filePath: "binding_slots.ts", + lineNumber: 33 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [ + { + declarations: [ + MyComponentWithInterpolation, + MyComponentWithMuchosInterpolation, + MyComponentWithoutInterpolation + ] + } + ] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { + declarations: [ + MyComponentWithInterpolation, + MyComponentWithMuchosInterpolation, + MyComponentWithoutInterpolation + ] + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots_interpolations.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots_interpolations.js index 05697db72b14..6f535585f939 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots_interpolations.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/binding_slots_interpolations.js @@ -1,23 +1,86 @@ -// ... +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ + myStyleExp = [{ color: "red" }, { color: "blue", duration: 1000 }]; + myWidth = "100px"; + myHeight = "100px"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MyComponent, - selectors:[["my-component"]], + selectors: [["my-component"]], standalone: false, decls: 1, vars: 7, - consts: [[__AttributeMarker.Styles__, "opacity", "1"]], - template: function MyComponent_Template(rf, $ctx$) { + consts: [[2, "opacity", "1"]], + template: function MyComponent_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelement(0, "div", 0); + i0.ɵɵelement(0, "div", 0); } if (rf & 2) { - $r3$.ɵɵstyleMap($ctx$.myStyleExp); - $r3$.ɵɵstyleProp("width", $ctx$.myWidth)("height", $ctx$.myHeight); - $r3$.ɵɵattribute("style", "border-width: 10px", $r3$.ɵɵsanitizeStyle); + i0.ɵɵstyleMap(ctx.myStyleExp); + i0.ɵɵstyleProp("width", ctx.myWidth)("height", ctx.myHeight); + i0.ɵɵattribute("style", "border-width: 10px", i0.ɵɵsanitizeStyle); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "binding_slots_interpolations.ts", + lineNumber: 12 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/colon_style.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/colon_style.js index 63fce0836dc3..7bb1828ff368 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/colon_style.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/colon_style.js @@ -1,8 +1,49 @@ -// NOTE: This is the way TemplateDefinitionBuilder behaves today, but it's crazy!! -// NOTE: TODO: Should we fix it? -consts: [[__AttributeMarker.Styles__, ":root {color", "red"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomElement(0, "div", 0); - } -} \ No newline at end of file +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + decls: 1, + vars: 0, + consts: [[2, ":root {color", "red"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElement(0, "div", 0); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "colon_style.ts", + lineNumber: 9 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/css_custom_properties.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/css_custom_properties.js index 09e233d21b20..afabd08dd84d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/css_custom_properties.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/css_custom_properties.js @@ -1,9 +1,59 @@ - // NOTE: It *does* mangle the camel case property in the consts array. This was pre-existing TDB behavior, but should be fixed. - consts: [[2, "--camel-case", "foo", "--kebab-case", "foo"]], - template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - i0.ɵɵelement(0, "div", 0); - } if (rf & 2) { - i0.ɵɵstyleProp("--%NS%camelCase", ctx.value)("--%NS%kebab-case", ctx.value); - } +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + value; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-dir"]], + standalone: false, + decls: 1, + vars: 4, + consts: [[2, "--camel-case", "foo", "--kebab-case", "foo"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div", 0); + } + if (rf & 2) { + i0.ɵɵstyleProp("--%NS%camelCase", ctx.value)("--%NS%kebab-case", ctx.value); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-dir", + template: ` +
    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "css_custom_properties.ts", + lineNumber: 14 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/duplicate_style_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/duplicate_style_bindings.js index f14313c6b342..470d57191f30 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/duplicate_style_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/duplicate_style_bindings.js @@ -1 +1,49 @@ -consts: [[1, "cls1", "cls1", 2, "width", "1px", "width", "10px"]] +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + decls: 1, + vars: 0, + consts: [[1, "cls1", "cls1", 2, "width", "1px", "width", "10px"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomElement(0, "div", 0); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + ` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "duplicate_style_bindings.ts", + lineNumber: 9 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/empty_style_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/empty_style_bindings.js index caf2cef02bfe..785ac283b774 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/empty_style_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/empty_style_bindings.js @@ -1,5 +1,74 @@ -template: function MyComponent_Template(rf, $ctx$) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div", 0); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [[3, "color"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div", 0); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "empty_style_bindings.ts", + lineNumber: 7 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding.js index 7a555e99d22b..c23aba179f63 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding.js @@ -1,8 +1,77 @@ -template: function MyComponent_Template(rf, $ctx$) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div"); - } - if (rf & 2) { - $r3$.ɵɵstyleMap($ctx$.myStyleExp); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + myStyleExp = [{ color: "red" }, { color: "blue", duration: 1000 }]; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 2, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + if (rf & 2) { + i0.ɵɵstyleMap(ctx.myStyleExp); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "style_binding.ts", + lineNumber: 7 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding_suffixed.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding_suffixed.js index c3b339d3db83..847cd94adcd8 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding_suffixed.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_binding_suffixed.js @@ -1,9 +1,76 @@ - -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div"); - } - if (rf & 2) { - $r3$.ɵɵstyleProp("font-size", 12, "px"); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 2, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + if (rf & 2) { + i0.ɵɵstyleProp("font-size", 12, "px"); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "style_binding_suffixed.ts", + lineNumber: 7 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_ordering.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_ordering.js index 3c4b3253be36..81a41bc2d817 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_ordering.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/style_ordering.js @@ -1,19 +1,77 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyComponent { - // ... - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ + myImage = "url(foo.jpg)"; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MyComponent, selectors: [["my-component"]], standalone: false, decls: 1, vars: 2, - template: function MyComponent_Template(rf, ctx) { + template: function MyComponent_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelement(0, "div"); + i0.ɵɵelement(0, "div"); } if (rf & 2) { - $r3$.ɵɵstyleProp("background-image", ctx.myImage); + i0.ɵɵstyleProp("background-image", ctx.myImage); } }, encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "style_ordering.ts", + lineNumber: 7 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/TEST_CASES.json b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/TEST_CASES.json index 6c12573e896c..58aaa7223c1c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/TEST_CASES.json +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/TEST_CASES.json @@ -156,22 +156,7 @@ "inputFiles": ["ng_template_interpolated_prop_with_structural_directive.ts"], "expectations": [ { - "files": [ - { - "expected": "ng_template_interpolated_prop_with_structural_directive_inner_template.js", - "generated": "ng_template_interpolated_prop_with_structural_directive.js" - } - ], - "failureMessage": "Incorrect inner template" - }, - { - "files": [ - { - "expected": "ng_template_interpolated_prop_with_structural_directive_outer_template.js", - "generated": "ng_template_interpolated_prop_with_structural_directive.js" - } - ], - "failureMessage": "Incorrect outer template" + "files": ["ng_template_interpolated_prop_with_structural_directive.js"] } ] }, diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/attr_binding_on_structural_inside_ng_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/attr_binding_on_structural_inside_ng_template.js index 4c23be0f6801..6bab1279ac38 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/attr_binding_on_structural_inside_ng_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/attr_binding_on_structural_inside_ng_template.js @@ -1,24 +1,110 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_ng_template_0_span_0_Template(rf, ctx) { - if (rf & 1) { - i0.ɵɵelement(0, "span"); - } if (rf & 2) { - const $ctx_r2$ = i0.ɵɵnextContext(2); - i0.ɵɵattribute("someAttr", $ctx_r2$.someField); - } + if (rf & 1) { + i0.ɵɵelement(0, "span"); + } + if (rf & 2) { + const ctx_r0 = i0.ɵɵnextContext(2); + i0.ɵɵattribute("someAttr", ctx_r0.someField); + } } - function MyComponent_ng_template_0_Template(rf, ctx) { - if (rf & 1) { - i0.ɵɵtemplate(0, MyComponent_ng_template_0_span_0_Template, 1, 1, "span", 1); - } if (rf & 2) { - const $ctx_r0$ = i0.ɵɵnextContext(); - i0.ɵɵproperty("ngIf", $ctx_r0$.someBooleanField); - } + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_ng_template_0_span_0_Template, 1, 1, "span", 1); + } + if (rf & 2) { + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵproperty("ngIf", ctx_r0.someBooleanField); + } } - -… -consts: [["someLocalRef", ""], [4, "ngIf"]], template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - i0.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 1, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor); - } -} \ No newline at end of file +export class MyComponent { + someField; + someBooleanField; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 0, + consts: [ + ["someLocalRef", ""], + [4, "ngIf"] + ], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate( + 0, + MyComponent_ng_template_0_Template, + 1, + 1, + "ng-template", + null, + 0, + i0.ɵɵtemplateRefExtractor + ); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + + + +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "attr_binding_on_structural_inside_ng_template.ts", + lineNumber: 12 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/create_many_elements.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/create_many_elements.js index 5286f89c7ddd..0d9cad6dd821 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/create_many_elements.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/create_many_elements.js @@ -1,6 +1,400 @@ -function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵelement(0, "div")(1, "div")(2, "div")…(255, "div"); - $r3$.ɵɵelement(256, "div")(257, "div")(258, "div")(259, "div"); - } +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 260, + vars: 0, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div")(1, "div")(2, "div")(3, "div")(4, "div")(5, "div")(6, "div")( + 7, + "div" + )(8, "div")(9, "div")(10, "div")(11, "div")(12, "div")(13, "div")(14, "div")(15, "div")( + 16, + "div" + )(17, "div")(18, "div")(19, "div")(20, "div")(21, "div")(22, "div")(23, "div")(24, "div")( + 25, + "div" + )(26, "div")(27, "div")(28, "div")(29, "div")(30, "div")(31, "div")(32, "div")(33, "div")( + 34, + "div" + )(35, "div")(36, "div")(37, "div")(38, "div")(39, "div")(40, "div")(41, "div")(42, "div")( + 43, + "div" + )(44, "div")(45, "div")(46, "div")(47, "div")(48, "div")(49, "div")(50, "div")(51, "div")( + 52, + "div" + )(53, "div")(54, "div")(55, "div")(56, "div")(57, "div")(58, "div")(59, "div")(60, "div")( + 61, + "div" + )(62, "div")(63, "div")(64, "div")(65, "div")(66, "div")(67, "div")(68, "div")(69, "div")( + 70, + "div" + )(71, "div")(72, "div")(73, "div")(74, "div")(75, "div")(76, "div")(77, "div")(78, "div")( + 79, + "div" + )(80, "div")(81, "div")(82, "div")(83, "div")(84, "div")(85, "div")(86, "div")(87, "div")( + 88, + "div" + )(89, "div")(90, "div")(91, "div")(92, "div")(93, "div")(94, "div")(95, "div")(96, "div")( + 97, + "div" + )(98, "div")(99, "div")(100, "div")(101, "div")(102, "div")(103, "div")(104, "div")( + 105, + "div" + )(106, "div")(107, "div")(108, "div")(109, "div")(110, "div")(111, "div")(112, "div")( + 113, + "div" + )(114, "div")(115, "div")(116, "div")(117, "div")(118, "div")(119, "div")(120, "div")( + 121, + "div" + )(122, "div")(123, "div")(124, "div")(125, "div")(126, "div")(127, "div")(128, "div")( + 129, + "div" + )(130, "div")(131, "div")(132, "div")(133, "div")(134, "div")(135, "div")(136, "div")( + 137, + "div" + )(138, "div")(139, "div")(140, "div")(141, "div")(142, "div")(143, "div")(144, "div")( + 145, + "div" + )(146, "div")(147, "div")(148, "div")(149, "div")(150, "div")(151, "div")(152, "div")( + 153, + "div" + )(154, "div")(155, "div")(156, "div")(157, "div")(158, "div")(159, "div")(160, "div")( + 161, + "div" + )(162, "div")(163, "div")(164, "div")(165, "div")(166, "div")(167, "div")(168, "div")( + 169, + "div" + )(170, "div")(171, "div")(172, "div")(173, "div")(174, "div")(175, "div")(176, "div")( + 177, + "div" + )(178, "div")(179, "div")(180, "div")(181, "div")(182, "div")(183, "div")(184, "div")( + 185, + "div" + )(186, "div")(187, "div")(188, "div")(189, "div")(190, "div")(191, "div")(192, "div")( + 193, + "div" + )(194, "div")(195, "div")(196, "div")(197, "div")(198, "div")(199, "div")(200, "div")( + 201, + "div" + )(202, "div")(203, "div")(204, "div")(205, "div")(206, "div")(207, "div")(208, "div")( + 209, + "div" + )(210, "div")(211, "div")(212, "div")(213, "div")(214, "div")(215, "div")(216, "div")( + 217, + "div" + )(218, "div")(219, "div")(220, "div")(221, "div")(222, "div")(223, "div")(224, "div")( + 225, + "div" + )(226, "div")(227, "div")(228, "div")(229, "div")(230, "div")(231, "div")(232, "div")( + 233, + "div" + )(234, "div")(235, "div")(236, "div")(237, "div")(238, "div")(239, "div")(240, "div")( + 241, + "div" + )(242, "div")(243, "div")(244, "div")(245, "div")(246, "div")(247, "div")(248, "div")( + 249, + "div" + )(250, "div")(251, "div")(252, "div")(253, "div")(254, "div")(255, "div"); + i0.ɵɵelement(256, "div")(257, "div")(258, "div")(259, "div"); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "create_many_elements.ts", + lineNumber: 269 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/implicit_receiver_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/implicit_receiver_template.js index 989fe14b1248..cbc161f02ea9 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/implicit_receiver_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/implicit_receiver_template.js @@ -1,21 +1,116 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_0_Template(rf, ctx) { if (rf & 1) { - const $_r2$ = i0.ɵɵgetCurrentView(); - $r3$.ɵɵelementStart(0, "div", 2); - $r3$.ɵɵlistener("click", function MyComponent_div_0_Template_div_click_0_listener() { - i0.ɵɵrestoreView($_r2$); - const $ctx_r1$ = i0.ɵɵnextContext(); - return $i0$.ɵɵresetView($ctx_r1$.greet($ctx_r1$)); + const _r1 = i0.ɵɵgetCurrentView(); + i0.ɵɵelementStart(0, "div", 2); + i0.ɵɵlistener("click", function MyComponent_div_0_Template_div_click_0_listener() { + i0.ɵɵrestoreView(_r1); + const ctx_r1 = i0.ɵɵnextContext(); + return i0.ɵɵresetView(ctx_r1.greet(ctx_r1)); }); - $r3$.ɵɵelementEnd(); + i0.ɵɵelementEnd(); } } -… function MyComponent_div_1_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵelement(0, "div", 3); - } if (rf & 2) { - const $ctx_0$ = i0.ɵɵnextContext(); - $r3$.ɵɵproperty("id", $ctx_0$); + i0.ɵɵelement(0, "div", 3); } + if (rf & 2) { + const ctx_r1 = i0.ɵɵnextContext(); + i0.ɵɵproperty("id", ctx_r1); + } +} +export class MyComponent { + greet(val) {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 2, + consts: [ + [3, "click", 4, "ngIf"], + [3, "id", 4, "ngIf"], + [3, "click"], + [3, "id"] + ], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_div_0_Template, 1, 0, "div", 0)( + 1, + MyComponent_div_1_Template, + 1, + 1, + "div", + 1 + ); + } + if (rf & 2) { + i0.ɵɵproperty("ngIf", true); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", true); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "implicit_receiver.ts", + lineNumber: 11 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_template_context.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_template_context.js index f9fb48ef7272..f4262fa22ae4 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_template_context.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_template_context.js @@ -1,65 +1,142 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_ul_0_li_1_div_1_Template(rf, ctx) { - if (rf & 1) { - const $s$ = $i0$.ɵɵgetCurrentView(); - $i0$.ɵɵelementStart(0, "div", 2); - $i0$.ɵɵlistener("click", function MyComponent_ul_0_li_1_div_1_Template_div_click_0_listener(){ - const $inner$ = $i0$.ɵɵrestoreView($s$).$implicit; - const $middle$ = $i0$.ɵɵnextContext().$implicit; - const $outer$ = $i0$.ɵɵnextContext().$implicit; - const $myComp$ = $i0$.ɵɵnextContext(); - return $i0$.ɵɵresetView($myComp$.onClick($outer$, $middle$, $inner$)); - }); - $i0$.ɵɵtext(1); - $i0$.ɵɵelementEnd(); - } - - if (rf & 2) { - const $inner1$ = ctx.$implicit; - const $middle1$ = $i0$.ɵɵnextContext().$implicit; - const $outer1$ = $i0$.ɵɵnextContext().$implicit; - const $myComp1$ = $i0$.ɵɵnextContext(); - $i0$.ɵɵproperty("title", $myComp1$.format($outer1$, $middle1$, $inner1$, $myComp1$.component)); - $r3$.ɵɵadvance(); - $i0$.ɵɵtextInterpolate1(" ", $myComp1$.format($outer1$, $middle1$, $inner1$, $myComp1$.component), " "); - } + if (rf & 1) { + const _r1 = i0.ɵɵgetCurrentView(); + i0.ɵɵelementStart(0, "div", 2); + i0.ɵɵlistener("click", function MyComponent_ul_0_li_1_div_1_Template_div_click_0_listener() { + const inner_r2 = i0.ɵɵrestoreView(_r1).$implicit; + const middle_r3 = i0.ɵɵnextContext().$implicit; + const outer_r4 = i0.ɵɵnextContext().$implicit; + const ctx_r4 = i0.ɵɵnextContext(); + return i0.ɵɵresetView(ctx_r4.onClick(outer_r4, middle_r3, inner_r2)); + }); + i0.ɵɵtext(1); + i0.ɵɵelementEnd(); } - - function MyComponent_ul_0_li_1_Template(rf, ctx) { - if (rf & 1) { - $i0$.ɵɵelementStart(0, "li"); - $i0$.ɵɵtemplate(1, MyComponent_ul_0_li_1_div_1_Template, 2, 2, "div", 1); - $i0$.ɵɵelementEnd(); - } - if (rf & 2) { - const $myComp2$ = $i0$.ɵɵnextContext(2); - $r3$.ɵɵadvance(); - $i0$.ɵɵproperty("ngForOf", $myComp2$.items); - } + if (rf & 2) { + const inner_r2 = ctx.$implicit; + const middle_r3 = i0.ɵɵnextContext().$implicit; + const outer_r4 = i0.ɵɵnextContext().$implicit; + const ctx_r4 = i0.ɵɵnextContext(); + i0.ɵɵproperty("title", ctx_r4.format(outer_r4, middle_r3, inner_r2, ctx_r4.component)); + i0.ɵɵadvance(); + i0.ɵɵtextInterpolate1(" ", ctx_r4.format(outer_r4, middle_r3, inner_r2, ctx_r4.component), " "); } - - function MyComponent_ul_0_Template(rf, ctx) { - if (rf & 1) { - $i0$.ɵɵelementStart(0, "ul"); - $i0$.ɵɵtemplate(1, MyComponent_ul_0_li_1_Template, 2, 1, "li", 0); - $i0$.ɵɵelementEnd(); - } - if (rf & 2) { - const $outer2$ = ctx.$implicit; - $r3$.ɵɵadvance(); - $i0$.ɵɵproperty("ngForOf", $outer2$.items); - } +} +function MyComponent_ul_0_li_1_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "li"); + i0.ɵɵtemplate(1, MyComponent_ul_0_li_1_div_1_Template, 2, 2, "div", 1); + i0.ɵɵelementEnd(); } - … - consts: [ - [__AttributeMarker.Template__, "ngFor", "ngForOf"], - [__AttributeMarker.Bindings__, "title", "click", __AttributeMarker.Template__, "ngFor", "ngForOf"], - [__AttributeMarker.Bindings__, "click", "title"] - ], - template:function MyComponent_Template(rf, ctx){ - if (rf & 1) { - $i0$.ɵɵtemplate(0, MyComponent_ul_0_Template, 2, 1, "ul", 0); - } - if (rf & 2) { - $i0$.ɵɵproperty("ngForOf", ctx.items); - } + if (rf & 2) { + const ctx_r4 = i0.ɵɵnextContext(2); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngForOf", ctx_r4.items); } +} +function MyComponent_ul_0_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "ul"); + i0.ɵɵtemplate(1, MyComponent_ul_0_li_1_Template, 2, 1, "li", 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + const outer_r4 = ctx.$implicit; + i0.ɵɵadvance(); + i0.ɵɵproperty("ngForOf", outer_r4.items); + } +} +export class MyComponent { + component = this; + format(outer, middle, inner) {} + onClick(outer, middle, inner) {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: [ + [4, "ngFor", "ngForOf"], + [3, "title", "click", 4, "ngFor", "ngForOf"], + [3, "click", "title"] + ], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_ul_0_Template, 2, 1, "ul", 0); + } + if (rf & 2) { + i0.ɵɵproperty("ngForOf", ctx.items); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
      +
    • +
      + {{format(outer, middle, inner, component)}} +
      +
    • +
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "nested_template_context.ts", + lineNumber: 18 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_template_context_many_bindings_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_template_context_many_bindings_template.js index 0a49bff65cce..48433625b73d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_template_context_many_bindings_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_template_context_many_bindings_template.js @@ -1,27 +1,98 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_0_Template(rf, ctx) { if (rf & 1) { - const $s$ = $r3$.ɵɵgetCurrentView(); - $r3$.ɵɵelementStart(0, "div", 1); - $r3$.ɵɵlistener("click", function MyComponent_div_0_Template_div_click_0_listener() { - const $sr$ = $r3$.ɵɵrestoreView($s$); - const $d$ = $sr$.$implicit; - const $i$ = $sr$.index; - const $comp$ = $r3$.ɵɵnextContext(); - return $i0$.ɵɵresetView($comp$._handleClick($d$, $i$)); + const _r1 = i0.ɵɵgetCurrentView(); + i0.ɵɵelementStart(0, "div", 1); + i0.ɵɵlistener("click", function MyComponent_div_0_Template_div_click_0_listener() { + const ctx_r1 = i0.ɵɵrestoreView(_r1); + const d_r3 = ctx_r1.$implicit; + const i_r4 = ctx_r1.index; + const ctx_r4 = i0.ɵɵnextContext(); + return i0.ɵɵresetView(ctx_r4._handleClick(d_r3, i_r4)); }); - $r3$.ɵɵelementEnd(); + i0.ɵɵelementEnd(); } } -… -consts: [ - [__AttributeMarker.Bindings__, "click", __AttributeMarker.Template__, "ngFor", "ngForOf"], - [__AttributeMarker.Bindings__, "click"] -], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, MyComponent_div_0_Template, 1, 0, "div", 0); - } - if (rf & 2) { - $r3$.ɵɵproperty("ngForOf", ctx._data); - } +export class MyComponent { + _data = [1, 2, 3]; + _handleClick(d, i) {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: [ + [3, "click", 4, "ngFor", "ngForOf"], + [3, "click"] + ], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_div_0_Template, 1, 0, "div", 0); + } + if (rf & 2) { + i0.ɵɵproperty("ngForOf", ctx._data); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "nested_template_context_many_bindings.ts", + lineNumber: 10 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_ternary_operation_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_ternary_operation_template.js index 30317fdafb06..a956033866e3 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_ternary_operation_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_ternary_operation_template.js @@ -1,2 +1,78 @@ -… -i0.ɵɵtextInterpolate1(" ", ctx.a?.b ? 1 : 2); +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + a; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0); + } + if (rf & 2) { + i0.ɵɵtextInterpolate1(" ", ctx.a?.b ? 1 : 2); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + {{a?.b ? 1 : 2 }}`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "nested_ternary_operation.ts", + lineNumber: 9 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_ternary_operation_template_use_null.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_ternary_operation_template_use_null.js index c8f40370207a..db0500dda198 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_ternary_operation_template_use_null.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/nested_ternary_operation_template_use_null.js @@ -1,2 +1,78 @@ -… -i0.ɵɵtextInterpolate1(" ", (ctx.a == null ? null : ctx.a.b) ? 1 : 2) +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + a; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0); + } + if (rf & 2) { + i0.ɵɵtextInterpolate1(" ", (ctx.a == null ? null : ctx.a.b) ? 1 : 2); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + {{a?.b ? 1 : 2 }}`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "nested_ternary_operation_use_null.ts", + lineNumber: 9 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_for_context_in_attr_binding.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_for_context_in_attr_binding.js index 062810902cdd..962462fb6be4 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_for_context_in_attr_binding.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_for_context_in_attr_binding.js @@ -1,18 +1,91 @@ -MyComponent_div_0_Template(rf, ctx) { - if (rf & 1) { - i0.ɵɵelement(0, "div"); - } if (rf & 2) { - const $someElem_r1$ = ctx.$implicit; - i0.ɵɵattribute("someInputAttr", $someElem_r1$.someAttr()); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_div_0_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "div"); + } + if (rf & 2) { + const someElem_r1 = ctx.$implicit; + i0.ɵɵattribute("someInputAttr", someElem_r1.someAttr()); + } } - -… -consts: [[__AttributeMarker.Template__, "ngFor", "ngForOf"]], -template:function MyComponent_Template(rf, ctx){ - if (rf & 1) { - i0.ɵɵtemplate(0, MyComponent_div_0_Template, 1, 1, "div", 0); - } if (rf & 2) { +export class MyComponent { + someField; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: [[4, "ngFor", "ngForOf"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_div_0_Template, 1, 1, "div", 0); + } + if (rf & 2) { i0.ɵɵproperty("ngForOf", ctx.someField.someMethod()); - } + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    +`, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng_for_context_in_attr_binding.ts", + lineNumber: 12 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_for_context_variables_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_for_context_variables_template.js index 61d3a84f19bb..215372e396d2 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_for_context_variables_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_for_context_variables_template.js @@ -1,23 +1,94 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_span_0_Template(rf, ctx) { if (rf & 1) { - $i0$.ɵɵelementStart(0, "span"); - $i0$.ɵɵtext(1); - $i0$.ɵɵelementEnd(); + i0.ɵɵelementStart(0, "span"); + i0.ɵɵtext(1); + i0.ɵɵelementEnd(); } if (rf & 2) { - const $item$ = ctx.$implicit; - const $i$ = ctx.index; - $r3$.ɵɵadvance(); - $i0$.ɵɵtextInterpolate2(" ", $i$, " - ", $item$, " "); + const item_r1 = ctx.$implicit; + const i_r2 = ctx.index; + i0.ɵɵadvance(); + i0.ɵɵtextInterpolate2(" ", i_r2, " - ", item_r1, " "); } } -… -consts: [[__AttributeMarker.Template__, "ngFor", "ngForOf"]], -template:function MyComponent_Template(rf, ctx){ - if (rf & 1) { - $i0$.ɵɵtemplate(0, MyComponent_span_0_Template, 2, 2, "span", 0); - } - if (rf & 2) { - $i0$.ɵɵproperty("ngForOf", ctx.items); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: [[4, "ngFor", "ngForOf"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_span_0_Template, 2, 2, "span", 0); + } + if (rf & 2) { + i0.ɵɵproperty("ngForOf", ctx.items); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + + {{ i }} - {{ item }} + + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng_for_context_variables.ts", + lineNumber: 12 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_for_parent_context_variables.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_for_parent_context_variables.js index d402bb1044f7..1718421cdcdb 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_for_parent_context_variables.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_for_parent_context_variables.js @@ -1,41 +1,111 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_0_span_1_Template(rf, ctx) { - if (rf & 1) { - $i0$.ɵɵelementStart(0, "span"); - $i0$.ɵɵtext(1); - $i0$.ɵɵelementEnd(); - } - if (rf & 2) { - const $div$ = $i0$.ɵɵnextContext(); - const $item$ = $div$.$implicit; - const $i$ = $div$.index; - $r3$.ɵɵadvance(); - $i0$.ɵɵtextInterpolate2(" ", $i$, " - ", $item$, " "); - } + if (rf & 1) { + i0.ɵɵelementStart(0, "span"); + i0.ɵɵtext(1); + i0.ɵɵelementEnd(); } - - function MyComponent_div_0_Template(rf, ctx) { - if (rf & 1) { - $i0$.ɵɵelementStart(0, "div"); - $i0$.ɵɵtemplate(1, MyComponent_div_0_span_1_Template, 2, 2, "span", 1); - $i0$.ɵɵelementEnd(); - } - if (rf & 2) { - const $app$ = $i0$.ɵɵnextContext(); - $r3$.ɵɵadvance(); - $i0$.ɵɵproperty("ngIf", $app$.showing); - } + if (rf & 2) { + const ctx_r0 = i0.ɵɵnextContext(); + const item_r2 = ctx_r0.$implicit; + const i_r3 = ctx_r0.index; + i0.ɵɵadvance(); + i0.ɵɵtextInterpolate2(" ", i_r3, " - ", item_r2, " "); } - - … - consts: [ - [__AttributeMarker.Template__, "ngFor", "ngForOf"], - [__AttributeMarker.Template__, "ngIf"] - ], - template:function MyComponent_Template(rf, ctx){ - if (rf & 1) { - $i0$.ɵɵtemplate(0, MyComponent_div_0_Template, 2, 1, "div", 0); - } - if (rf & 2) { - $i0$.ɵɵproperty("ngForOf", ctx.items); - } +} +function MyComponent_div_0_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵtemplate(1, MyComponent_div_0_span_1_Template, 2, 2, "span", 1); + i0.ɵɵelementEnd(); } + if (rf & 2) { + const ctx_r3 = i0.ɵɵnextContext(); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx_r3.showing); + } +} +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: [ + [4, "ngFor", "ngForOf"], + [4, "ngIf"] + ], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_div_0_Template, 2, 1, "div", 0); + } + if (rf & 2) { + i0.ɵɵproperty("ngForOf", ctx.items); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    + + {{ i }} - {{ item }} + +
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng_for_parent_context_variables.ts", + lineNumber: 13 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_bindings.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_bindings.js index 33c68192ce1f..1c0f2cf968f1 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_bindings.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_bindings.js @@ -1,12 +1,54 @@ -function MyComponent_ng_template_0_Template(rf, ctx) { } - -… -// NOTE: Template Pipeline also collects the "a" into the Bindings section; this should be fine. -consts: [["l", "l1", __AttributeMarker.Bindings__, "p" … "c"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - i0.ɵɵdomTemplate(0, MyComponent_ng_template_0_Template, 0, 0, "ng-template", 0); - } if (rf & 2) { - i0.ɵɵdomProperty("p", ctx.p1)("a", ctx.a1)("c", ctx.c1); - } -} \ No newline at end of file +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_ng_template_0_Template(rf, ctx) {} +export class MyComponent { + p1; + a1; + c1; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + decls: 1, + vars: 3, + consts: [["l", "l1", 3, "p", "a", "c"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomTemplate(0, MyComponent_ng_template_0_Template, 0, 0, "ng-template", 0); + } + if (rf & 2) { + i0.ɵɵdomProperty("p", ctx.p1)("a", ctx.a1)("c", ctx.c1); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: '' + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng_template_bindings.ts", + lineNumber: 7 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_implicit.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_implicit.js index 44a06081212e..a532dc82fd39 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_implicit.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_implicit.js @@ -1,18 +1,62 @@ -MyComponent_ng_template_0_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtext(0); - } if (rf & 2) { - const $a_r1$ = ctx.$implicit; - $r3$.ɵɵtextInterpolate($a_r1$); - } +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_ng_template_0_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0); + } + if (rf & 2) { + const a_r1 = ctx.$implicit; + i0.ɵɵtextInterpolate(a_r1); + } } -// ... -consts: [[3, "ngIf"]] -// ... -function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomTemplate(0, MyComponent_ng_template_0_Template, 1, 1, "ng-template", 0); - } if (rf & 2) { - $r3$.ɵɵdomProperty("ngIf", true); - } +export class MyComponent { + p1; + a1; + c1; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + decls: 1, + vars: 1, + consts: [[3, "ngIf"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomTemplate(0, MyComponent_ng_template_0_Template, 1, 1, "ng-template", 0); + } + if (rf & 2) { + i0.ɵɵdomProperty("ngIf", true); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: '{{a}}' + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng_template_implicit.ts", + lineNumber: 7 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_template.js index 876d3f8724a2..e6343395f8c2 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_template.js @@ -1,9 +1,91 @@ -consts: [[__AttributeMarker.Bindings__, "dir"]], -template: function TestComp_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, $TestComp_ng_template_0_Template$, 0, 0, "ng-template", 0); - } - if (rf & 2) { - $r3$.ɵɵproperty("dir", $r3$.ɵɵinterpolate(ctx.message)); - } +import { Component, Directive, Input } from "@angular/core"; +import * as i0 from "@angular/core"; +function TestComp_ng_template_0_Template(rf, ctx) {} +class WithInput { + dir = ""; + static ɵfac = function WithInput_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || WithInput)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: WithInput, + selectors: [["", "dir", ""]], + inputs: { dir: "dir" }, + standalone: false + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + WithInput, + [ + { + type: Directive, + args: [ + { + selector: "[dir]", + standalone: false + } + ] + } + ], + null, + { + dir: [ + { + type: Input + } + ] + } + ); +})(); +export class TestComp { + message = "Hello"; + static ɵfac = function TestComp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestComp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: TestComp, + selectors: [["my-app"]], + standalone: false, + decls: 1, + vars: 2, + consts: [[3, "dir"]], + template: function TestComp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, TestComp_ng_template_0_Template, 0, 0, "ng-template", 0); + } + if (rf & 2) { + i0.ɵɵproperty("dir", i0.ɵɵinterpolate(ctx.message)); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestComp, + [ + { + type: Component, + args: [ + { + selector: "my-app", + template: '', + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(TestComp, { + className: "TestComp", + filePath: "ng_template_interpolated_prop.ts", + lineNumber: 16 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_with_structural_directive.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_with_structural_directive.js new file mode 100644 index 000000000000..2354c24c6da4 --- /dev/null +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_with_structural_directive.js @@ -0,0 +1,103 @@ +import { Component, Directive, Input } from "@angular/core"; +import * as i0 from "@angular/core"; +function TestComp_0_ng_template_0_Template(rf, ctx) {} +function TestComp_0_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, TestComp_0_ng_template_0_Template, 0, 0, "ng-template", 1); + } + if (rf & 2) { + const ctx_r0 = i0.ɵɵnextContext(); + i0.ɵɵproperty("dir", i0.ɵɵinterpolate(ctx_r0.message)); + } +} +class WithInput { + dir = ""; + static ɵfac = function WithInput_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || WithInput)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: WithInput, + selectors: [["", "dir", ""]], + inputs: { dir: "dir" }, + standalone: false + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + WithInput, + [ + { + type: Directive, + args: [ + { + selector: "[dir]", + standalone: false + } + ] + } + ], + null, + { + dir: [ + { + type: Input + } + ] + } + ); +})(); +export class TestComp { + message = "Hello"; + static ɵfac = function TestComp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestComp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: TestComp, + selectors: [["my-app"]], + standalone: false, + decls: 1, + vars: 1, + consts: [ + [4, "ngIf"], + [3, "dir"] + ], + template: function TestComp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, TestComp_0_Template, 1, 2, null, 0); + } + if (rf & 2) { + i0.ɵɵproperty("ngIf", true); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestComp, + [ + { + type: Component, + args: [ + { + selector: "my-app", + template: '', + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(TestComp, { + className: "TestComp", + filePath: "ng_template_interpolated_prop_with_structural_directive.ts", + lineNumber: 16 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_with_structural_directive_inner_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_with_structural_directive_inner_template.js deleted file mode 100644 index 89f69b982980..000000000000 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_with_structural_directive_inner_template.js +++ /dev/null @@ -1,9 +0,0 @@ -function $TestComp_0_Template$(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵtemplate(0, $TestComp_0_ng_template_0_Template$, 0, 0, "ng-template", 1); - } - if (rf & 2) { - const $ctx_r0$ = i0.ɵɵnextContext(); - $r3$.ɵɵproperty("dir", $r3$.ɵɵinterpolate($ctx_r0$.message)); - } -} diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_with_structural_directive_outer_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_with_structural_directive_outer_template.js deleted file mode 100644 index 220327e9adce..000000000000 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_interpolated_prop_with_structural_directive_outer_template.js +++ /dev/null @@ -1,9 +0,0 @@ -consts: [[4, "ngIf"], [3, "dir"]], -template: function TestComp_Template(rf, ctx) { - if (rf & 1) { - $i0$.ɵɵtemplate(0, $TestComp_0_Template$, 1, 2, null, 0); - } - if (rf & 2) { - $i0$.ɵɵproperty("ngIf", true); - } -}, diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_local_ref_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_local_ref_template.js index 643bb6eb7ca8..601c41366647 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_local_ref_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_local_ref_template.js @@ -1,13 +1,88 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) { - $i0$.ɵɵtext(0, "some-content"); + i0.ɵɵtext(0, "some-content"); } } - -… -consts: [["foo", ""]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $i0$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 1, 0, "ng-template", null, 0, $i0$.ɵɵtemplateRefExtractor); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 0, + consts: [["foo", ""]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate( + 0, + MyComponent_ng_template_0_Template, + 1, + 0, + "ng-template", + null, + 0, + i0.ɵɵtemplateRefExtractor + ); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: "some-content", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng_template_local_ref.ts", + lineNumber: 8 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_output_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_output_template.js index a000e225679a..2f0000b5638a 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_output_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_output_template.js @@ -1,11 +1,81 @@ -function MyComponent_ng_template_0_Template(rf, ctx) { } - -… - -consts: [[__AttributeMarker.Bindings__, "outDirective"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $i0$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 0, 0, "ng-template", 0); - $i0$.ɵɵlistener("outDirective", function MyComponent_Template_ng_template_outDirective_0_listener($event) { return $event.doSth(); }); - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_ng_template_0_Template(rf, ctx) {} +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [[3, "outDirective"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 0, 0, "ng-template", 0); + i0.ɵɵlistener( + "outDirective", + function MyComponent_Template_ng_template_outDirective_0_listener($event) { + return $event.doSth(); + } + ); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: '', + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng_template_output.ts", + lineNumber: 8 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_template.js index f352ea298dfe..d1b90ffb890f 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_template.js @@ -1,17 +1,85 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) { - $i0$.ɵɵtext(0, " some-content "); + i0.ɵɵtext(0, " some-content "); } } - -… - -consts: [["attr", "l", __AttributeMarker.Bindings__, "boundAttr"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $i0$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 1, 0, "ng-template", 0); - } - if (rf & 2) { - $i0$.ɵɵproperty("boundAttr", ctx.b); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: [["attr", "l", 3, "boundAttr"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 1, 0, "ng-template", 0); + } + if (rf & 2) { + i0.ɵɵproperty("boundAttr", ctx.b); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + + some-content + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "ng_template.ts", + lineNumber: 11 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/self_closing_structural_directives.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/self_closing_structural_directives.js index 130e9aa24192..1fd363b2f81c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/self_closing_structural_directives.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/self_closing_structural_directives.js @@ -1,5 +1,7 @@ -const $_c1$ = ["*ngIf", "flag"]; - +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; +const _c0 = ["*"]; +const _c1 = ["*ngIf", "flag"]; function MyComponent_img_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵi18nStart(0, 0, 1); @@ -36,36 +38,177 @@ function MyComponent_ng_container_5_Template(rf, ctx) { function MyComponent_ng_content_6_Template(rf, ctx) { if (rf & 1) { i0.ɵɵi18nStart(0, 0, 6); - i0.ɵɵprojection(1, 0, $_c1$); + i0.ɵɵprojection(1, 0, _c1); i0.ɵɵi18nEnd(); } } -… -decls: 7, -vars: 5, -consts: () => { - __i18nMsgWithPostprocess__('{$tagImg}{$startTagOtherComponent}{$closeTagOtherComponent}{$startTagNgTemplate}{$closeTagNgTemplate}{$startTagNgContainer}{$closeTagNgContainer}{$startTagNgContent}{$closeTagNgContent}', [['closeTagNgContainer', String.raw`\uFFFD/#1:5\uFFFD\uFFFD/*5:5\uFFFD`], ['closeTagNgContent', String.raw`\uFFFD/#1:6\uFFFD\uFFFD/*6:6\uFFFD`], ['closeTagNgTemplate', String.raw`[\uFFFD/*1:4\uFFFD|\uFFFD/*4:3\uFFFD]`], ['closeTagOtherComponent', String.raw`\uFFFD/#1:2\uFFFD\uFFFD/*3:2\uFFFD`], ['startTagNgContainer', String.raw`\uFFFD*5:5\uFFFD\uFFFD#1:5\uFFFD`], ['startTagNgContent', String.raw`\uFFFD*6:6\uFFFD\uFFFD#1:6\uFFFD`], ['startTagNgTemplate', String.raw`[\uFFFD*4:3\uFFFD|\uFFFD*1:4\uFFFD]`], ['startTagOtherComponent', String.raw`\uFFFD*3:2\uFFFD\uFFFD#1:2\uFFFD`], ['tagImg', String.raw`\uFFFD*2:1\uFFFD\uFFFD/*2:1\uFFFD\uFFFD#1:1\uFFFD\uFFFD/#1:1\uFFFD\uFFFD*2:1\uFFFD\uFFFD/*2:1\uFFFD`]], {original_code: { 'closeTagNgContainer': '', 'closeTagNgContent': '', 'closeTagNgTemplate': '', 'closeTagOtherComponent': '', 'startTagNgContainer': '', 'startTagNgContent': '', 'startTagNgTemplate': '', 'startTagOtherComponent': '', 'tagImg': ''}}, {}, []) - return [$i18n_0$, [4, "ngIf"]]; -}, -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - i0.ɵɵprojectionDef(); - i0.ɵɵelementStart(0, "div"); - i0.ɵɵi18nStart(1, 0); - i0.ɵɵtemplate(2, MyComponent_img_2_Template, 2, 0, "img", 1)(3, MyComponent_other_component_3_Template, 2, 0, "other-component", 1)(4, MyComponent_4_Template, 2, 0, null, 1)(5, MyComponent_ng_container_5_Template, 2, 0, "ng-container", 1)(6, MyComponent_ng_content_6_Template, 2, 0, "ng-content", 1); - i0.ɵɵi18nEnd(); - i0.ɵɵelementEnd(); - } - if (rf & 2) { - i0.ɵɵadvance(2); - i0.ɵɵproperty("ngIf", ctx.flag); - i0.ɵɵadvance(); - i0.ɵɵproperty("ngIf", ctx.flag); - i0.ɵɵadvance(); - i0.ɵɵproperty("ngIf", ctx.flag); - i0.ɵɵadvance(); - i0.ɵɵproperty("ngIf", ctx.flag); - i0.ɵɵadvance(); - i0.ɵɵproperty("ngIf", ctx.flag); - } +export class OtherComponent { + static ɵfac = function OtherComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || OtherComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: OtherComponent, + selectors: [["other-component"]], + decls: 0, + vars: 0, + template: function OtherComponent_Template(rf, ctx) {}, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + OtherComponent, + [ + { + type: Component, + args: [ + { + selector: "other-component", + template: "" + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(OtherComponent, { + className: "OtherComponent", + filePath: "self_closing_structural_directives.ts", + lineNumber: 7 + }); +})(); +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + ngContentSelectors: _c0, + decls: 7, + vars: 5, + consts: () => { + let i18n_0; + if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) { + /** + * @suppress {msgDescriptions} + */ + const MSG_EXTERNAL_9160312708998185306$$SELF_CLOSING_STRUCTURAL_DIRECTIVES_TS_0 = + /* @ts-ignore */ + goog.getMsg( + "{$tagImg}{$startTagOtherComponent}{$closeTagOtherComponent}{$startTagNgTemplate}{$closeTagNgTemplate}{$startTagNgContainer}{$closeTagNgContainer}{$startTagNgContent}{$closeTagNgContent}", + { + "closeTagNgContainer": "\uFFFD/#1:5\uFFFD\uFFFD/*5:5\uFFFD", + "closeTagNgContent": "\uFFFD/#1:6\uFFFD\uFFFD/*6:6\uFFFD", + "closeTagNgTemplate": "[\uFFFD/*1:4\uFFFD|\uFFFD/*4:3\uFFFD]", + "closeTagOtherComponent": "\uFFFD/#1:2\uFFFD\uFFFD/*3:2\uFFFD", + "startTagNgContainer": "\uFFFD*5:5\uFFFD\uFFFD#1:5\uFFFD", + "startTagNgContent": "\uFFFD*6:6\uFFFD\uFFFD#1:6\uFFFD", + "startTagNgTemplate": "[\uFFFD*4:3\uFFFD|\uFFFD*1:4\uFFFD]", + "startTagOtherComponent": "\uFFFD*3:2\uFFFD\uFFFD#1:2\uFFFD", + "tagImg": + "\uFFFD*2:1\uFFFD\uFFFD/*2:1\uFFFD\uFFFD#1:1\uFFFD\uFFFD/#1:1\uFFFD\uFFFD*2:1\uFFFD\uFFFD/*2:1\uFFFD" + }, + { + original_code: { + "closeTagNgContainer": '', + "closeTagNgContent": '', + "closeTagNgTemplate": '', + "closeTagOtherComponent": '', + "startTagNgContainer": '', + "startTagNgContent": '', + "startTagNgTemplate": '', + "startTagOtherComponent": '', + "tagImg": '' + } + } + ); + i18n_0 = MSG_EXTERNAL_9160312708998185306$$SELF_CLOSING_STRUCTURAL_DIRECTIVES_TS_0; + } else { + /* @ts-ignore */ + i18n_0 = $localize`${"\uFFFD*2:1\uFFFD\uFFFD/*2:1\uFFFD\uFFFD#1:1\uFFFD\uFFFD/#1:1\uFFFD\uFFFD*2:1\uFFFD\uFFFD/*2:1\uFFFD"}:TAG_IMG:${"\uFFFD*3:2\uFFFD\uFFFD#1:2\uFFFD"}:START_TAG_OTHER_COMPONENT:${"\uFFFD/#1:2\uFFFD\uFFFD/*3:2\uFFFD"}:CLOSE_TAG_OTHER_COMPONENT:${"[\uFFFD*4:3\uFFFD|\uFFFD*1:4\uFFFD]"}:START_TAG_NG_TEMPLATE:${"[\uFFFD/*1:4\uFFFD|\uFFFD/*4:3\uFFFD]"}:CLOSE_TAG_NG_TEMPLATE:${"\uFFFD*5:5\uFFFD\uFFFD#1:5\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD/#1:5\uFFFD\uFFFD/*5:5\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD*6:6\uFFFD\uFFFD#1:6\uFFFD"}:START_TAG_NG_CONTENT:${"\uFFFD/#1:6\uFFFD\uFFFD/*6:6\uFFFD"}:CLOSE_TAG_NG_CONTENT:`; + } + i18n_0 = i0.ɵɵi18nPostprocess(i18n_0); + return [i18n_0, [4, "ngIf"]]; + }, + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵprojectionDef(); + i0.ɵɵelementStart(0, "div"); + i0.ɵɵi18nStart(1, 0); + i0.ɵɵtemplate(2, MyComponent_img_2_Template, 2, 0, "img", 1)( + 3, + MyComponent_other_component_3_Template, + 2, + 0, + "other-component", + 1 + )(4, MyComponent_4_Template, 2, 0, null, 1)( + 5, + MyComponent_ng_container_5_Template, + 2, + 0, + "ng-container", + 1 + )(6, MyComponent_ng_content_6_Template, 2, 0, "ng-content", 1); + i0.ɵɵi18nEnd(); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + i0.ɵɵadvance(2); + i0.ɵɵproperty("ngIf", ctx.flag); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx.flag); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx.flag); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx.flag); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", ctx.flag); + } + }, + dependencies: [OtherComponent], + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + imports: [OtherComponent], + template: ` +
    + + + + + +
    +` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "self_closing_structural_directives.ts", + lineNumber: 22 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/self_closing_tags_nested_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/self_closing_tags_nested_template.js index 48faee28a956..0d74a945f9eb 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/self_closing_tags_nested_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/self_closing_tags_nested_template.js @@ -1,11 +1,129 @@ -template: function App_Template(rf, ctx) { - if (rf & 1) { - … - i0.ɵɵelementStart(0, "my-comp", 0); - i0.ɵɵtext(1, "Before"); - i0.ɵɵelement(2, "my-comp", 1); - i0.ɵɵtext(3, "After"); - i0.ɵɵelementEnd(); - … - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComp { + static ɵfac = function MyComp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComp, + selectors: [["my-comp"]], + standalone: false, + decls: 1, + vars: 0, + template: function MyComp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0, "hello"); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComp, + [ + { + type: Component, + args: [ + { + selector: "my-comp", + template: "hello", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComp, { + className: "MyComp", + filePath: "self_closing_tags_nested.ts", + lineNumber: 7 + }); +})(); +export class App { + static ɵfac = function App_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || App)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: App, + selectors: [["ng-component"]], + standalone: false, + decls: 4, + vars: 0, + consts: [ + ["title", "a"], + ["title", "b"] + ], + template: function App_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "my-comp", 0); + i0.ɵɵtext(1, "Before"); + i0.ɵɵelement(2, "my-comp", 1); + i0.ɵɵtext(3, "After"); + i0.ɵɵelementEnd(); + } + }, + dependencies: [MyComp], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + App, + [ + { + type: Component, + args: [ + { + template: ` + BeforeAfter + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(App, { + className: "App", + filePath: "self_closing_tags_nested.ts", + lineNumber: 16 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [App, MyComp] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [App, MyComp] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/self_closing_tags_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/self_closing_tags_template.js index fb24ceebe2eb..f05816bddfe5 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/self_closing_tags_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/self_closing_tags_template.js @@ -1,7 +1,119 @@ -template: function App_Template(rf, ctx) { - if (rf & 1) { - … - i0.ɵɵelement(0, "my-comp"); - … - } +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComp { + static ɵfac = function MyComp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComp, + selectors: [["my-comp"]], + standalone: false, + decls: 1, + vars: 0, + template: function MyComp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0, "hello"); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComp, + [ + { + type: Component, + args: [ + { + selector: "my-comp", + template: "hello", + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComp, { + className: "MyComp", + filePath: "self_closing_tags.ts", + lineNumber: 7 + }); +})(); +export class App { + static ɵfac = function App_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || App)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: App, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 0, + template: function App_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelement(0, "my-comp"); + } + }, + dependencies: [MyComp], + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + App, + [ + { + type: Component, + args: [ + { + template: ``, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(App, { + className: "App", + filePath: "self_closing_tags.ts", + lineNumber: 14 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [App, MyComp] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [App, MyComp] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/shorthand_property_declaration_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/shorthand_property_declaration_template.js index 03de9b391b55..376e742a9c2b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/shorthand_property_declaration_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/shorthand_property_declaration_template.js @@ -1,13 +1,82 @@ -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - … - i0.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { - return ctx._handleClick({ - a: ctx.a, - b: 2, - c: ctx.c - }); +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +export class MyComponent { + a = 1; + c = 3; + _handleClick(_value) {} + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["ng-component"]], + standalone: false, + decls: 1, + vars: 0, + consts: [[3, "click"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div", 0); + i0.ɵɵlistener("click", function MyComponent_Template_div_click_0_listener() { + return ctx._handleClick({ a: ctx.a, b: 2, c: ctx.c }); + }); + i0.ɵɵelementEnd(); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + template: ` +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "shorthand_property_declaration.ts", + lineNumber: 9 }); - … - } +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/template_binding_pipe_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/template_binding_pipe_template.js index 00646435a3ac..23abbfd0ddc2 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/template_binding_pipe_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/template_binding_pipe_template.js @@ -1,16 +1,83 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_0_Template(rf, ctx) { if (rf & 1) { - $i0$.ɵɵelement(0, "div"); + i0.ɵɵelement(0, "div"); } } - -… -consts: [[__AttributeMarker.Template__, "ngIf"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $i0$.ɵɵtemplate(0, MyComponent_div_0_Template, 1, 0, "div", 0); - $i0$.ɵɵpipe(1, "pipe"); - } if (rf & 2) { - $i0$.ɵɵproperty("ngIf", $i0$.ɵɵpipeBind1(1, 1, ctx.val)); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 3, + consts: [[4, "ngIf"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_div_0_Template, 1, 0, "div", 0); + i0.ɵɵpipe(1, "pipe"); + } + if (rf & 2) { + i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.val)); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: `
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "template_binding_pipe.ts", + lineNumber: 8 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/template_context_skip_template.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/template_context_skip_template.js index bcdb6d62a9e1..ee1e404f1fae 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/template_context_skip_template.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/template_context_skip_template.js @@ -1,49 +1,121 @@ +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_div_0_div_1_div_1_Template(rf, ctx) { if (rf & 1) { - $i0$.ɵɵelementStart(0, "div"); - $i0$.ɵɵtext(1); - $i0$.ɵɵelementEnd(); + i0.ɵɵelementStart(0, "div"); + i0.ɵɵtext(1); + i0.ɵɵelementEnd(); } if (rf & 2) { - const $middle$ = $i0$.ɵɵnextContext().$implicit; - const $myComp$ = $i0$.ɵɵnextContext(2); - $r3$.ɵɵadvance(); - $i0$.ɵɵtextInterpolate2(" ", $middle$.value, " - ", $myComp$.name, " "); + const middle_r1 = i0.ɵɵnextContext().$implicit; + const ctx_r1 = i0.ɵɵnextContext(2); + i0.ɵɵadvance(); + i0.ɵɵtextInterpolate2(" ", middle_r1.value, " - ", ctx_r1.name, " "); } } - function MyComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) { - $i0$.ɵɵelementStart(0, "div"); - $i0$.ɵɵtemplate(1, MyComponent_div_0_div_1_div_1_Template, 2, 2, "div", 0); - $i0$.ɵɵelementEnd(); + i0.ɵɵelementStart(0, "div"); + i0.ɵɵtemplate(1, MyComponent_div_0_div_1_div_1_Template, 2, 2, "div", 0); + i0.ɵɵelementEnd(); } if (rf & 2) { - const $middle$ = ctx.$implicit; - $r3$.ɵɵadvance(); - $i0$.ɵɵproperty("ngForOf", $middle$.items); + const middle_r1 = ctx.$implicit; + i0.ɵɵadvance(); + i0.ɵɵproperty("ngForOf", middle_r1.items); } } - function MyComponent_div_0_Template(rf, ctx) { if (rf & 1) { - $i0$.ɵɵelementStart(0, "div"); - $i0$.ɵɵtemplate(1, MyComponent_div_0_div_1_Template, 2, 1, "div", 0); - $i0$.ɵɵelementEnd(); + i0.ɵɵelementStart(0, "div"); + i0.ɵɵtemplate(1, MyComponent_div_0_div_1_Template, 2, 1, "div", 0); + i0.ɵɵelementEnd(); } if (rf & 2) { - const $outer$ = ctx.$implicit; - $r3$.ɵɵadvance(); - $i0$.ɵɵproperty("ngForOf", $outer$.items); + const outer_r3 = ctx.$implicit; + i0.ɵɵadvance(); + i0.ɵɵproperty("ngForOf", outer_r3.items); } } -… -consts: [[__AttributeMarker.Template__, "ngFor", "ngForOf"]], -template: function MyComponent_Template(rf, ctx){ - if (rf & 1) { - $i0$.ɵɵtemplate(0, MyComponent_div_0_Template, 2, 1, "div", 0); - } - if (rf & 2) { - $i0$.ɵɵproperty("ngForOf", ctx.items); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 1, + vars: 1, + consts: [[4, "ngFor", "ngForOf"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_div_0_Template, 2, 1, "div", 0); + } + if (rf & 2) { + i0.ɵɵproperty("ngForOf", ctx.items); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +
    +
    + {{ middle.value }} - {{ name }} +
    +
    +
    `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "template_context_skip.ts", + lineNumber: 15 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/template_with_structural_directive.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/template_with_structural_directive.js index 0791a4e4229a..804967a9996b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/template_with_structural_directive.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/template_with_structural_directive.js @@ -1,22 +1,62 @@ +import { Component } from "@angular/core"; +import * as i0 from "@angular/core"; function MyComponent_0_ng_template_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵtext(0, "Content"); + i0.ɵɵtext(0, "Content"); } } function MyComponent_0_Template(rf, ctx) { if (rf & 1) { - $r3$.ɵɵdomTemplate(0, MyComponent_0_ng_template_0_Template, 1, 0, "ng-template"); + i0.ɵɵdomTemplate(0, MyComponent_0_ng_template_0_Template, 1, 0, "ng-template"); } } -… -decls: 1, -vars: 1, -consts: [[4, "ngIf"]], -template: function MyComponent_Template(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵdomTemplate(0, MyComponent_0_Template, 1, 0, null, 0); - } - if (rf & 2) { - $r3$.ɵɵdomProperty("ngIf", true); - } +export class MyComponent { + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + decls: 1, + vars: 1, + consts: [[4, "ngIf"]], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵdomTemplate(0, MyComponent_0_Template, 1, 0, null, 0); + } + if (rf & 2) { + i0.ɵɵdomProperty("ngIf", true); + } + }, + encapsulation: 2 + }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` + Content +` + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "template_with_structural_directive.ts", + lineNumber: 9 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/unique_listener_function_names.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/unique_listener_function_names.js index df0dbb1fe78e..4c76b8ed2467 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/unique_listener_function_names.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/unique_listener_function_names.js @@ -1,2 +1,136 @@ -… -// NOTE: the assertions for this test happen through `verifyUniqueFunctions`. +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +function MyComponent_div_0_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div")(1, "p", 1); + i0.ɵɵlistener("click", function MyComponent_div_0_Template_p_click_1_listener($event) { + return $event; + }); + i0.ɵɵtext(2); + i0.ɵɵelementEnd(); + i0.ɵɵelementStart(3, "p", 1); + i0.ɵɵlistener("click", function MyComponent_div_0_Template_p_click_3_listener($event) { + return $event; + }); + i0.ɵɵtext(4); + i0.ɵɵelementEnd()(); + } + if (rf & 2) { + const item_r1 = ctx.$implicit; + i0.ɵɵadvance(2); + i0.ɵɵtextInterpolate(item_r1); + i0.ɵɵadvance(2); + i0.ɵɵtextInterpolate(item_r1); + } +} +function MyComponent_div_1_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div")(1, "p", 1); + i0.ɵɵlistener("click", function MyComponent_div_1_Template_p_click_1_listener($event) { + return $event; + }); + i0.ɵɵtext(2); + i0.ɵɵelementEnd()(); + } + if (rf & 2) { + const item_r2 = ctx.$implicit; + i0.ɵɵadvance(2); + i0.ɵɵtextInterpolate(item_r2); + } +} +export class MyComponent { + items = [4, 2]; + static ɵfac = function MyComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: MyComponent, + selectors: [["my-component"]], + standalone: false, + decls: 2, + vars: 2, + consts: [ + [4, "ngFor", "ngForOf"], + [3, "click"] + ], + template: function MyComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, MyComponent_div_0_Template, 5, 2, "div", 0)( + 1, + MyComponent_div_1_Template, + 3, + 1, + "div", + 0 + ); + } + if (rf & 2) { + i0.ɵɵproperty("ngForOf", ctx.items); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngForOf", ctx.items); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyComponent, + [ + { + type: Component, + args: [ + { + selector: "my-component", + template: ` +
    +

    {{ item }}

    +

    {{ item }}

    +
    +
    +

    {{ item }}

    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(MyComponent, { + className: "MyComponent", + filePath: "unique_listener_function_names.ts", + lineNumber: 16 + }); +})(); +export class MyModule { + static ɵfac = function MyModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MyModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyModule, + [ + { + type: NgModule, + args: [{ declarations: [MyComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(MyModule, { declarations: [MyComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/unique_template_function_names.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/unique_template_function_names.js index df0dbb1fe78e..dd03dc2f04a5 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/unique_template_function_names.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/unique_template_function_names.js @@ -1,2 +1,361 @@ -… -// NOTE: the assertions for this test happen through `verifyUniqueFunctions`. +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +function AComponent_div_0_p_1_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "p"); + i0.ɵɵtext(1, "less than 10"); + i0.ɵɵelementEnd(); + } +} +function AComponent_div_0_p_2_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "p"); + i0.ɵɵtext(1, "less than 10"); + i0.ɵɵelementEnd(); + } +} +function AComponent_div_0_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵtemplate(1, AComponent_div_0_p_1_Template, 2, 0, "p", 1)( + 2, + AComponent_div_0_p_2_Template, + 2, + 0, + "p", + 1 + ); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + const item_r1 = ctx.$implicit; + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", item_r1 < 10); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", item_r1 < 10); + } +} +function AComponent_div_1_p_1_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "p"); + i0.ɵɵtext(1, "more than 10"); + i0.ɵɵelementEnd(); + } +} +function AComponent_div_1_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵtemplate(1, AComponent_div_1_p_1_Template, 2, 0, "p", 1); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + const item_r2 = ctx.$implicit; + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", item_r2 > 10); + } +} +function BComponent_div_0_ng_container_1_p_1_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "p"); + i0.ɵɵtext(1, "less than 10"); + i0.ɵɵelementEnd(); + } +} +function BComponent_div_0_ng_container_1_p_2_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "p"); + i0.ɵɵtext(1, "less than 10"); + i0.ɵɵelementEnd(); + } +} +function BComponent_div_0_ng_container_1_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementContainerStart(0); + i0.ɵɵtemplate(1, BComponent_div_0_ng_container_1_p_1_Template, 2, 0, "p", 1)( + 2, + BComponent_div_0_ng_container_1_p_2_Template, + 2, + 0, + "p", + 1 + ); + i0.ɵɵelementContainerEnd(); + } + if (rf & 2) { + const subitem_r1 = ctx.$implicit; + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", subitem_r1 < 10); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", subitem_r1 < 10); + } +} +function BComponent_div_0_ng_container_2_p_1_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "p"); + i0.ɵɵtext(1, "less than 10"); + i0.ɵɵelementEnd(); + } +} +function BComponent_div_0_ng_container_2_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementContainerStart(0); + i0.ɵɵtemplate(1, BComponent_div_0_ng_container_2_p_1_Template, 2, 0, "p", 1); + i0.ɵɵelementContainerEnd(); + } + if (rf & 2) { + const subitem_r2 = ctx.$implicit; + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", subitem_r2 < 10); + } +} +function BComponent_div_0_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵtemplate(1, BComponent_div_0_ng_container_1_Template, 3, 2, "ng-container", 0)( + 2, + BComponent_div_0_ng_container_2_Template, + 2, + 1, + "ng-container", + 0 + ); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + const item_r3 = ctx.$implicit; + i0.ɵɵadvance(); + i0.ɵɵproperty("ngForOf", item_r3.subitems); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngForOf", item_r3.subitems); + } +} +function BComponent_div_1_ng_container_1_p_1_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "p"); + i0.ɵɵtext(1, "more than 10"); + i0.ɵɵelementEnd(); + } +} +function BComponent_div_1_ng_container_1_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementContainerStart(0); + i0.ɵɵtemplate(1, BComponent_div_1_ng_container_1_p_1_Template, 2, 0, "p", 1); + i0.ɵɵelementContainerEnd(); + } + if (rf & 2) { + const subitem_r4 = ctx.$implicit; + i0.ɵɵadvance(); + i0.ɵɵproperty("ngIf", subitem_r4 > 10); + } +} +function BComponent_div_1_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵelementStart(0, "div"); + i0.ɵɵtemplate(1, BComponent_div_1_ng_container_1_Template, 2, 1, "ng-container", 0); + i0.ɵɵelementEnd(); + } + if (rf & 2) { + const item_r5 = ctx.$implicit; + i0.ɵɵadvance(); + i0.ɵɵproperty("ngForOf", item_r5.subitems); + } +} +export class AComponent { + items = [4, 2]; + static ɵfac = function AComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || AComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: AComponent, + selectors: [["a-component"]], + standalone: false, + decls: 2, + vars: 2, + consts: [ + [4, "ngFor", "ngForOf"], + [4, "ngIf"] + ], + template: function AComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, AComponent_div_0_Template, 3, 2, "div", 0)( + 1, + AComponent_div_1_Template, + 2, + 1, + "div", + 0 + ); + } + if (rf & 2) { + i0.ɵɵproperty("ngForOf", ctx.items); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngForOf", ctx.items); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + AComponent, + [ + { + type: Component, + args: [ + { + selector: "a-component", + template: ` +
    +

    less than 10

    +

    less than 10

    +
    +
    +

    more than 10

    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(AComponent, { + className: "AComponent", + filePath: "unique_template_function_names.ts", + lineNumber: 16 + }); +})(); +export class AModule { + static ɵfac = function AModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || AModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + AModule, + [ + { + type: NgModule, + args: [{ declarations: [AComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(AModule, { declarations: [AComponent] }); +})(); +export class BComponent { + items = [{ subitems: [1, 3] }, { subitems: [3, 7] }]; + static ɵfac = function BComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || BComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: BComponent, + selectors: [["b-component"]], + standalone: false, + decls: 2, + vars: 2, + consts: [ + [4, "ngFor", "ngForOf"], + [4, "ngIf"] + ], + template: function BComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtemplate(0, BComponent_div_0_Template, 3, 2, "div", 0)( + 1, + BComponent_div_1_Template, + 2, + 1, + "div", + 0 + ); + } + if (rf & 2) { + i0.ɵɵproperty("ngForOf", ctx.items); + i0.ɵɵadvance(); + i0.ɵɵproperty("ngForOf", ctx.items); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + BComponent, + [ + { + type: Component, + args: [ + { + selector: "b-component", + template: ` +
    + +

    less than 10

    +

    less than 10

    +
    + +

    less than 10

    +
    +
    +
    + +

    more than 10

    +
    +
    + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(BComponent, { + className: "BComponent", + filePath: "unique_template_function_names.ts", + lineNumber: 44 + }); +})(); +export class BModule { + static ɵfac = function BModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || BModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: BModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + BModule, + [ + { + type: NgModule, + args: [{ declarations: [BComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(BModule, { declarations: [BComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/unique_template_function_names_ng_content.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/unique_template_function_names_ng_content.js index df0dbb1fe78e..362f64d0e5fa 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/unique_template_function_names_ng_content.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/unique_template_function_names_ng_content.js @@ -1,2 +1,149 @@ -… -// NOTE: the assertions for this test happen through `verifyUniqueFunctions`. +import { Component, NgModule } from "@angular/core"; +import * as i0 from "@angular/core"; +const _c0 = ["*"]; +const _c1 = ["*ngIf", "show"]; +function AComponent_ng_content_0_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵprojection(0, 0, _c1); + } +} +function BComponent_ng_content_0_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵprojection(0, 0, _c1); + } +} +export class AComponent { + show = true; + static ɵfac = function AComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || AComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: AComponent, + selectors: [["a-component"]], + standalone: false, + ngContentSelectors: _c0, + decls: 1, + vars: 1, + consts: [[4, "ngIf"]], + template: function AComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵprojectionDef(); + i0.ɵɵtemplate(0, AComponent_ng_content_0_Template, 1, 0, "ng-content", 0); + } + if (rf & 2) { + i0.ɵɵproperty("ngIf", ctx.show); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + AComponent, + [ + { + type: Component, + args: [ + { + selector: "a-component", + template: ` + + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(AComponent, { + className: "AComponent", + filePath: "unique_template_function_names_ng_content.ts", + lineNumber: 10 + }); +})(); +export class BComponent { + show = true; + static ɵfac = function BComponent_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || BComponent)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: BComponent, + selectors: [["b-component"]], + standalone: false, + ngContentSelectors: _c0, + decls: 1, + vars: 1, + consts: [[4, "ngIf"]], + template: function BComponent_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵprojectionDef(); + i0.ɵɵtemplate(0, BComponent_ng_content_0_Template, 1, 0, "ng-content", 0); + } + if (rf & 2) { + i0.ɵɵproperty("ngIf", ctx.show); + } + }, + encapsulation: 2 + }); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + BComponent, + [ + { + type: Component, + args: [ + { + selector: "b-component", + template: ` + + `, + standalone: false + } + ] + } + ], + null, + null + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(BComponent, { + className: "BComponent", + filePath: "unique_template_function_names_ng_content.ts", + lineNumber: 21 + }); +})(); +export class AModule { + static ɵfac = function AModule_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || AModule)(); + }; + static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AModule }); + static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({}); +} +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + AModule, + [ + { + type: NgModule, + args: [{ declarations: [AComponent, BComponent] }] + } + ], + null, + null + ); +})(); +(function () { + (typeof ngJitMode === "undefined" || ngJitMode) && + i0.ɵɵsetNgModuleScope(AModule, { declarations: [AComponent, BComponent] }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/service_decorator/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/service_decorator/GOLDEN_PARTIAL.js index 686178c642f1..e64ce4392784 100644 --- a/packages/compiler-cli/test/compliance/test_cases/service_decorator/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/service_decorator/GOLDEN_PARTIAL.js @@ -17,7 +17,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE import * as i0 from "@angular/core"; export declare class MyService { static ɵfac: i0.ɵɵFactoryDeclaration; - static ɵprov: i0.ɵɵInjectableDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; } /**************************************************************************************************** @@ -42,7 +42,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE import * as i0 from "@angular/core"; export declare class MyService { static ɵfac: i0.ɵɵFactoryDeclaration; - static ɵprov: i0.ɵɵInjectableDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; } /**************************************************************************************************** @@ -65,7 +65,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE import * as i0 from "@angular/core"; export declare class MyService { static ɵfac: i0.ɵɵFactoryDeclaration; - static ɵprov: i0.ɵɵInjectableDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; } /**************************************************************************************************** @@ -88,7 +88,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE import * as i0 from "@angular/core"; export declare class MyService { static ɵfac: i0.ɵɵFactoryDeclaration; - static ɵprov: i0.ɵɵInjectableDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; } /**************************************************************************************************** @@ -118,6 +118,6 @@ export declare class MyService { getOne(): T; getTwo(): V; static ɵfac: i0.ɵɵFactoryDeclaration, never>; - static ɵprov: i0.ɵɵInjectableDeclaration>; + static ɵprov: i0.ɵɵInjectableDeclaration; } diff --git a/packages/compiler-cli/test/compliance/test_cases/service_decorator/basic_service.js b/packages/compiler-cli/test/compliance/test_cases/service_decorator/basic_service.js index b8266ebd43ea..6ca58273b048 100644 --- a/packages/compiler-cli/test/compliance/test_cases/service_decorator/basic_service.js +++ b/packages/compiler-cli/test/compliance/test_cases/service_decorator/basic_service.js @@ -1,8 +1,21 @@ +import { Service } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyService { - static ɵfac = function MyService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyService)(); }; - static ɵprov = /*@__PURE__*/ $r3$.ɵɵdefineService({ token: MyService, factory: MyService.ɵfac }); + static ɵfac = function MyService_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyService)(); + }; + static ɵprov = /*@__PURE__*/ i0.ɵɵdefineService({ token: MyService, factory: MyService.ɵfac }); } - -(() => { (typeof ngDevMode === "undefined" || ngDevMode) && $r3$.ɵsetClassMetadata(MyService, [{ - type: Service -}], null, null); })(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyService, + [ + { + type: Service + } + ], + null, + null + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/service_decorator/basic_service_isolated.golden.d.ts b/packages/compiler-cli/test/compliance/test_cases/service_decorator/basic_service_isolated.golden.d.ts index c358bcfdd283..ae88cfe0b90c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/service_decorator/basic_service_isolated.golden.d.ts +++ b/packages/compiler-cli/test/compliance/test_cases/service_decorator/basic_service_isolated.golden.d.ts @@ -1,6 +1,6 @@ import * as i0 from "@angular/core"; export declare class MyService { static ɵfac: i0.ɵɵFactoryDeclaration; - static ɵprov: i0.ɵɵInjectableDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; } diff --git a/packages/compiler-cli/test/compliance/test_cases/service_decorator/explicitly_provided_service.js b/packages/compiler-cli/test/compliance/test_cases/service_decorator/explicitly_provided_service.js index 35a8dce64944..b9f4de3376ed 100644 --- a/packages/compiler-cli/test/compliance/test_cases/service_decorator/explicitly_provided_service.js +++ b/packages/compiler-cli/test/compliance/test_cases/service_decorator/explicitly_provided_service.js @@ -1,9 +1,22 @@ +import { Service } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyService { - static ɵfac = function MyService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyService)(); }; - static ɵprov = /*@__PURE__*/ $r3$.ɵɵdefineService({ token: MyService, factory: MyService.ɵfac }); + static ɵfac = function MyService_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyService)(); + }; + static ɵprov = /*@__PURE__*/ i0.ɵɵdefineService({ token: MyService, factory: MyService.ɵfac }); } - -(() => { (typeof ngDevMode === "undefined" || ngDevMode) && $r3$.ɵsetClassMetadata(MyService, [{ - type: Service, - args: [{ autoProvided: true }] -}], null, null); })(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyService, + [ + { + type: Service, + args: [{ autoProvided: true }] + } + ], + null, + null + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/service_decorator/explicitly_provided_service_isolated.golden.d.ts b/packages/compiler-cli/test/compliance/test_cases/service_decorator/explicitly_provided_service_isolated.golden.d.ts index c358bcfdd283..ae88cfe0b90c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/service_decorator/explicitly_provided_service_isolated.golden.d.ts +++ b/packages/compiler-cli/test/compliance/test_cases/service_decorator/explicitly_provided_service_isolated.golden.d.ts @@ -1,6 +1,6 @@ import * as i0 from "@angular/core"; export declare class MyService { static ɵfac: i0.ɵɵFactoryDeclaration; - static ɵprov: i0.ɵɵInjectableDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; } diff --git a/packages/compiler-cli/test/compliance/test_cases/service_decorator/generic_service.js b/packages/compiler-cli/test/compliance/test_cases/service_decorator/generic_service.js index 09ff0733696a..1b41d04c1adb 100644 --- a/packages/compiler-cli/test/compliance/test_cases/service_decorator/generic_service.js +++ b/packages/compiler-cli/test/compliance/test_cases/service_decorator/generic_service.js @@ -1,6 +1,27 @@ +import { Service } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyService { - … - static ɵfac = function MyService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyService)(); }; + getOne() { + return null; + } + getTwo() { + return null; + } + static ɵfac = function MyService_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyService)(); + }; static ɵprov = /*@__PURE__*/ i0.ɵɵdefineService({ token: MyService, factory: MyService.ɵfac }); } - +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyService, + [ + { + type: Service + } + ], + null, + null + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/service_decorator/generic_service_isolated.golden.d.ts b/packages/compiler-cli/test/compliance/test_cases/service_decorator/generic_service_isolated.golden.d.ts index ce98cba9208a..09e8d89bf6bd 100644 --- a/packages/compiler-cli/test/compliance/test_cases/service_decorator/generic_service_isolated.golden.d.ts +++ b/packages/compiler-cli/test/compliance/test_cases/service_decorator/generic_service_isolated.golden.d.ts @@ -3,6 +3,6 @@ export declare class MyService { getOne(): T; getTwo(): V; static ɵfac: i0.ɵɵFactoryDeclaration, never>; - static ɵprov: i0.ɵɵInjectableDeclaration>; + static ɵprov: i0.ɵɵInjectableDeclaration; } diff --git a/packages/compiler-cli/test/compliance/test_cases/service_decorator/not_provided_service.js b/packages/compiler-cli/test/compliance/test_cases/service_decorator/not_provided_service.js index ed83abc0f2d4..0d629ec19c4f 100644 --- a/packages/compiler-cli/test/compliance/test_cases/service_decorator/not_provided_service.js +++ b/packages/compiler-cli/test/compliance/test_cases/service_decorator/not_provided_service.js @@ -1,9 +1,26 @@ +import { Service } from "@angular/core"; +import * as i0 from "@angular/core"; export class MyService { - static ɵfac = function MyService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyService)(); }; - static ɵprov = /*@__PURE__*/ $r3$.ɵɵdefineService({ token: MyService, factory: MyService.ɵfac, autoProvided: false }); + static ɵfac = function MyService_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyService)(); + }; + static ɵprov = /*@__PURE__*/ i0.ɵɵdefineService({ + token: MyService, + factory: MyService.ɵfac, + autoProvided: false + }); } - -(() => { (typeof ngDevMode === "undefined" || ngDevMode) && $r3$.ɵsetClassMetadata(MyService, [{ - type: Service, - args: [{ autoProvided: false }] -}], null, null); })(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyService, + [ + { + type: Service, + args: [{ autoProvided: false }] + } + ], + null, + null + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/service_decorator/not_provided_service_isolated.golden.d.ts b/packages/compiler-cli/test/compliance/test_cases/service_decorator/not_provided_service_isolated.golden.d.ts index c358bcfdd283..ae88cfe0b90c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/service_decorator/not_provided_service_isolated.golden.d.ts +++ b/packages/compiler-cli/test/compliance/test_cases/service_decorator/not_provided_service_isolated.golden.d.ts @@ -1,6 +1,6 @@ import * as i0 from "@angular/core"; export declare class MyService { static ɵfac: i0.ɵɵFactoryDeclaration; - static ɵprov: i0.ɵɵInjectableDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; } diff --git a/packages/compiler-cli/test/compliance/test_cases/service_decorator/service_with_factory.js b/packages/compiler-cli/test/compliance/test_cases/service_decorator/service_with_factory.js index 025baf142427..50a88d94dd70 100644 --- a/packages/compiler-cli/test/compliance/test_cases/service_decorator/service_with_factory.js +++ b/packages/compiler-cli/test/compliance/test_cases/service_decorator/service_with_factory.js @@ -1,11 +1,26 @@ +import { Service } from "@angular/core"; +import * as i0 from "@angular/core"; class Alternate {} - export class MyService { - static ɵfac = function MyService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MyService)(); }; - static ɵprov = /*@__PURE__*/ $r3$.ɵɵdefineService({ token: MyService, factory: () => (() => new Alternate())() }); + static ɵfac = function MyService_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || MyService)(); + }; + static ɵprov = /*@__PURE__*/ i0.ɵɵdefineService({ + token: MyService, + factory: () => (() => new Alternate())() + }); } - -(() => { (typeof ngDevMode === "undefined" || ngDevMode) && $r3$.ɵsetClassMetadata(MyService, [{ - type: Service, - args: [{ factory: () => new Alternate() }] -}], null, null); })(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + MyService, + [ + { + type: Service, + args: [{ factory: () => new Alternate() }] + } + ], + null, + null + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/service_decorator/service_with_factory_isolated.golden.d.ts b/packages/compiler-cli/test/compliance/test_cases/service_decorator/service_with_factory_isolated.golden.d.ts index c358bcfdd283..ae88cfe0b90c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/service_decorator/service_with_factory_isolated.golden.d.ts +++ b/packages/compiler-cli/test/compliance/test_cases/service_decorator/service_with_factory_isolated.golden.d.ts @@ -1,6 +1,6 @@ import * as i0 from "@angular/core"; export declare class MyService { static ɵfac: i0.ɵɵFactoryDeclaration; - static ɵprov: i0.ɵɵInjectableDeclaration; + static ɵprov: i0.ɵɵInjectableDeclaration; } diff --git a/packages/compiler-cli/test/compliance/test_cases/signal_inputs/complex_transform_functions.js b/packages/compiler-cli/test/compliance/test_cases/signal_inputs/complex_transform_functions.js index 69a74acd5003..a06082603b24 100644 --- a/packages/compiler-cli/test/compliance/test_cases/signal_inputs/complex_transform_functions.js +++ b/packages/compiler-cli/test/compliance/test_cases/signal_inputs/complex_transform_functions.js @@ -1,13 +1,59 @@ +import { Directive, input } from "@angular/core"; +import * as i0 from "@angular/core"; +// Note: `@Input` non-signal inputs did not support arrow functions as an example. +const toBoolean = v => v === true || v !== ""; +// Note: `@Input` non-signal inputs did not support transform function "builders" and generics. +const complexTransform = defaultVal => v => v || defaultVal; export class TestDir { - … - static ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ - … + name = input.required({ + ...(ngDevMode ? { debugName: "name" } : /* istanbul ignore next */ {}), + transform: v => v === true || v !== "" + }); + name2 = input.required({ + ...(ngDevMode ? { debugName: "name2" } : /* istanbul ignore next */ {}), + transform: toBoolean + }); + genericTransform = input.required({ + ...(ngDevMode ? { debugName: "genericTransform" } : /* istanbul ignore next */ {}), + transform: complexTransform(1) + }); + genericTransform2 = input.required({ + ...(ngDevMode ? { debugName: "genericTransform2" } : /* istanbul ignore next */ {}), + transform: complexTransform(null) + }); + static ɵfac = function TestDir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestDir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: TestDir, inputs: { - name: [1, "name"], - name2: [1, "name2"], - genericTransform: [1, "genericTransform"], - genericTransform2: [1, "genericTransform2"] + name: [1, "name"], + name2: [1, "name2"], + genericTransform: [1, "genericTransform"], + genericTransform2: [1, "genericTransform2"] } - … }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestDir, + [ + { + type: Directive, + args: [{}] + } + ], + null, + { + name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], + name2: [{ type: i0.Input, args: [{ isSignal: true, alias: "name2", required: true }] }], + genericTransform: [ + { type: i0.Input, args: [{ isSignal: true, alias: "genericTransform", required: true }] } + ], + genericTransform2: [ + { type: i0.Input, args: [{ isSignal: true, alias: "genericTransform2", required: true }] } + ] + } + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/signal_inputs/input_component_definition.js b/packages/compiler-cli/test/compliance/test_cases/signal_inputs/input_component_definition.js index bcc5d7d855ef..0a85f78e29af 100644 --- a/packages/compiler-cli/test/compliance/test_cases/signal_inputs/input_component_definition.js +++ b/packages/compiler-cli/test/compliance/test_cases/signal_inputs/input_component_definition.js @@ -1,11 +1,59 @@ +import { Component, input } from "@angular/core"; +import * as i0 from "@angular/core"; export class TestComp { - … - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - … - inputs: { - counter: [1, "counter"], - name: [1, "name"] + counter = input( + 0 /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "counter" }] : /* istanbul ignore next */ []) + ); + name = input.required( + /* @ts-ignore */ + ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []) + ); + static ɵfac = function TestComp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestComp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: TestComp, + selectors: [["ng-component"]], + inputs: { counter: [1, "counter"], name: [1, "name"] }, + decls: 1, + vars: 0, + template: function TestComp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0, "Works"); + } }, - … + encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestComp, + [ + { + type: Component, + args: [ + { + template: "Works" + } + ] + } + ], + null, + { + counter: [ + { type: i0.Input, args: [{ isSignal: true, alias: "counter", required: false }] } + ], + name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }] + } + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(TestComp, { + className: "TestComp", + filePath: "input_component_definition.ts", + lineNumber: 6 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/signal_inputs/input_directive_definition.js b/packages/compiler-cli/test/compliance/test_cases/signal_inputs/input_directive_definition.js index a6727daaf7d8..4c80a0709a27 100644 --- a/packages/compiler-cli/test/compliance/test_cases/signal_inputs/input_directive_definition.js +++ b/packages/compiler-cli/test/compliance/test_cases/signal_inputs/input_directive_definition.js @@ -1,11 +1,38 @@ +import { Directive, input } from "@angular/core"; +import * as i0 from "@angular/core"; export class TestDir { - … - static ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ - … - inputs: { - counter: [1, "counter"], - name: [1, "name"] - } - … + counter = input( + 0 /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "counter" }] : /* istanbul ignore next */ []) + ); + name = input.required( + /* @ts-ignore */ + ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []) + ); + static ɵfac = function TestDir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestDir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: TestDir, + inputs: { counter: [1, "counter"], name: [1, "name"] } }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestDir, + [ + { + type: Directive, + args: [{}] + } + ], + null, + { + counter: [ + { type: i0.Input, args: [{ isSignal: true, alias: "counter", required: false }] } + ], + name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }] + } + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/signal_inputs/mixed_input_types.js b/packages/compiler-cli/test/compliance/test_cases/signal_inputs/mixed_input_types.js index dc707a9677d2..ca9e5e37e7b6 100644 --- a/packages/compiler-cli/test/compliance/test_cases/signal_inputs/mixed_input_types.js +++ b/packages/compiler-cli/test/compliance/test_cases/signal_inputs/mixed_input_types.js @@ -1,15 +1,86 @@ +import { Directive, Input, input } from "@angular/core"; +import * as i0 from "@angular/core"; +function convertToBoolean(value) { + return value === true || value !== ""; +} export class TestDir { - … - static ɵdir = /* @__PURE__ */ $r3$.ɵɵdefineDirective({ - … + counter = input( + 0 /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "counter" }] : /* istanbul ignore next */ []) + ); + signalWithTransform = input(false, { + ...(ngDevMode ? { debugName: "signalWithTransform" } : /* istanbul ignore next */ {}), + transform: convertToBoolean + }); + signalWithTransformAndAlias = input(false, { + ...(ngDevMode ? { debugName: "signalWithTransformAndAlias" } : /* istanbul ignore next */ {}), + alias: "publicNameSignal", + transform: convertToBoolean + }); + decoratorInput = true; + decoratorInputWithAlias = true; + decoratorInputWithTransformAndAlias = true; + static ɵfac = function TestDir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestDir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: TestDir, inputs: { counter: [1, "counter"], signalWithTransform: [1, "signalWithTransform"], signalWithTransformAndAlias: [1, "publicNameSignal", "signalWithTransformAndAlias"], decoratorInput: "decoratorInput", decoratorInputWithAlias: [0, "publicNameDecorator", "decoratorInputWithAlias"], - decoratorInputWithTransformAndAlias: [2, "publicNameDecorator2", "decoratorInputWithTransformAndAlias", convertToBoolean] + decoratorInputWithTransformAndAlias: [ + 2, + "publicNameDecorator2", + "decoratorInputWithTransformAndAlias", + convertToBoolean + ] } - … }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestDir, + [ + { + type: Directive, + args: [{}] + } + ], + null, + { + counter: [ + { type: i0.Input, args: [{ isSignal: true, alias: "counter", required: false }] } + ], + signalWithTransform: [ + { + type: i0.Input, + args: [{ isSignal: true, alias: "signalWithTransform", required: false }] + } + ], + signalWithTransformAndAlias: [ + { type: i0.Input, args: [{ isSignal: true, alias: "publicNameSignal", required: false }] } + ], + decoratorInput: [ + { + type: Input + } + ], + decoratorInputWithAlias: [ + { + type: Input, + args: ["publicNameDecorator"] + } + ], + decoratorInputWithTransformAndAlias: [ + { + type: Input, + args: [{ alias: "publicNameDecorator2", transform: convertToBoolean }] + } + ] + } + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/signal_inputs/transform_not_captured.js b/packages/compiler-cli/test/compliance/test_cases/signal_inputs/transform_not_captured.js index dda9d5b36ec4..347f13b851b6 100644 --- a/packages/compiler-cli/test/compliance/test_cases/signal_inputs/transform_not_captured.js +++ b/packages/compiler-cli/test/compliance/test_cases/signal_inputs/transform_not_captured.js @@ -1,10 +1,32 @@ +import { Directive, input } from "@angular/core"; +import * as i0 from "@angular/core"; +function convertToBoolean(value) { + return value === true || value !== ""; +} export class TestDir { - … - static ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ - … - inputs: { - name: [1, "name"] - } - … + name = input.required({ + ...(ngDevMode ? { debugName: "name" } : /* istanbul ignore next */ {}), + transform: convertToBoolean + }); + static ɵfac = function TestDir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestDir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: TestDir, + inputs: { name: [1, "name"] } }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestDir, + [ + { + type: Directive, + args: [{}] + } + ], + null, + { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }] } + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/signal_queries/mixed_query_variants.js b/packages/compiler-cli/test/compliance/test_cases/signal_queries/mixed_query_variants.js index ab80a817244f..c7f91fa651b8 100644 --- a/packages/compiler-cli/test/compliance/test_cases/signal_queries/mixed_query_variants.js +++ b/packages/compiler-cli/test/compliance/test_cases/signal_queries/mixed_query_variants.js @@ -1,27 +1,73 @@ +import { ContentChild, contentChild, Directive, ViewChild, viewChild } from "@angular/core"; +import * as i0 from "@angular/core"; +const _c0 = ["locator2"]; +const _c1 = ["locator1"]; export class TestDir { - … - static ɵdir = /* @__PURE__ */ $r3$.ɵɵdefineDirective({ - … + decoratorViewChild; + signalViewChild = viewChild( + "locator1" /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "signalViewChild" }] : /* istanbul ignore next */ []) + ); + decoratorContentChild; + signalContentChild = contentChild( + "locator2" /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "signalContentChild" }] : /* istanbul ignore next */ []) + ); + static ɵfac = function TestDir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestDir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: TestDir, contentQueries: function TestDir_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) { i0.ɵɵcontentQuerySignal(dirIndex, ctx.signalContentChild, _c0, 5); i0.ɵɵcontentQuery(dirIndex, _c0, 5); - } if (rf & 2) { + } + if (rf & 2) { i0.ɵɵqueryAdvance(); let _t; - i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.decoratorContentChild = _t.first); + i0.ɵɵqueryRefresh((_t = i0.ɵɵloadQuery())) && (ctx.decoratorContentChild = _t.first); } }, viewQuery: function TestDir_Query(rf, ctx) { if (rf & 1) { i0.ɵɵviewQuerySignal(ctx.signalViewChild, _c1, 5); i0.ɵɵviewQuery(_c1, 5); - } if (rf & 2) { + } + if (rf & 2) { i0.ɵɵqueryAdvance(); let _t; - i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.decoratorViewChild = _t.first); + i0.ɵɵqueryRefresh((_t = i0.ɵɵloadQuery())) && (ctx.decoratorViewChild = _t.first); } } - … }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestDir, + [ + { + type: Directive, + args: [{}] + } + ], + null, + { + decoratorViewChild: [ + { + type: ViewChild, + args: ["locator1"] + } + ], + signalViewChild: [{ type: i0.ViewChild, args: ["locator1", { isSignal: true }] }], + decoratorContentChild: [ + { + type: ContentChild, + args: ["locator2"] + } + ], + signalContentChild: [{ type: i0.ContentChild, args: ["locator2", { isSignal: true }] }] + } + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/signal_queries/query_in_component.js b/packages/compiler-cli/test/compliance/test_cases/signal_queries/query_in_component.js index 481630f74936..427275639b0d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/signal_queries/query_in_component.js +++ b/packages/compiler-cli/test/compliance/test_cases/signal_queries/query_in_component.js @@ -1,21 +1,86 @@ +import { Component, contentChild, contentChildren, viewChild, viewChildren } from "@angular/core"; +import * as i0 from "@angular/core"; +const _c0 = ["locatorC"]; +const _c1 = ["locatorD"]; +const _c2 = ["locatorA"]; +const _c3 = ["locatorB"]; export class TestComp { - … - static ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({ - … + query1 = viewChild( + "locatorA" /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "query1" }] : /* istanbul ignore next */ []) + ); + query2 = viewChildren( + "locatorB" /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "query2" }] : /* istanbul ignore next */ []) + ); + query3 = contentChild( + "locatorC" /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "query3" }] : /* istanbul ignore next */ []) + ); + query4 = contentChildren( + "locatorD" /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "query4" }] : /* istanbul ignore next */ []) + ); + static ɵfac = function TestComp_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestComp)(); + }; + static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ + type: TestComp, + selectors: [["ng-component"]], contentQueries: function TestComp_ContentQueries(rf, ctx, dirIndex) { - if (rf & 1) { - $r3$.ɵɵcontentQuerySignal(dirIndex, ctx.query3, _c0, 5)(dirIndex, ctx.query4, _c1, 4); - } if (rf & 2) { - $r3$.ɵɵqueryAdvance(2); - } + if (rf & 1) { + i0.ɵɵcontentQuerySignal(dirIndex, ctx.query3, _c0, 5)(dirIndex, ctx.query4, _c1, 4); + } + if (rf & 2) { + i0.ɵɵqueryAdvance(2); + } }, viewQuery: function TestComp_Query(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵviewQuerySignal(ctx.query1, _c2, 5)(ctx.query2, _c3, 5); - } if (rf & 2) { - $r3$.ɵɵqueryAdvance(2); - } + if (rf & 1) { + i0.ɵɵviewQuerySignal(ctx.query1, _c2, 5)(ctx.query2, _c3, 5); + } + if (rf & 2) { + i0.ɵɵqueryAdvance(2); + } }, - … + decls: 1, + vars: 0, + template: function TestComp_Template(rf, ctx) { + if (rf & 1) { + i0.ɵɵtext(0, "Works"); + } + }, + encapsulation: 2 }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestComp, + [ + { + type: Component, + args: [ + { + template: "Works" + } + ] + } + ], + null, + { + query1: [{ type: i0.ViewChild, args: ["locatorA", { isSignal: true }] }], + query2: [{ type: i0.ViewChildren, args: ["locatorB", { isSignal: true }] }], + query3: [{ type: i0.ContentChild, args: ["locatorC", { isSignal: true }] }], + query4: [{ type: i0.ContentChildren, args: ["locatorD", { isSignal: true }] }] + } + ); +})(); +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassDebugInfo(TestComp, { + className: "TestComp", + filePath: "query_in_component.ts", + lineNumber: 6 + }); +})(); diff --git a/packages/compiler-cli/test/compliance/test_cases/signal_queries/query_in_directive.js b/packages/compiler-cli/test/compliance/test_cases/signal_queries/query_in_directive.js index c1d6ec7358ee..405d3efcf403 100644 --- a/packages/compiler-cli/test/compliance/test_cases/signal_queries/query_in_directive.js +++ b/packages/compiler-cli/test/compliance/test_cases/signal_queries/query_in_directive.js @@ -1,30 +1,127 @@ +import { + contentChild, + contentChildren, + Directive, + forwardRef, + viewChild, + viewChildren +} from "@angular/core"; +import * as i0 from "@angular/core"; const _c0 = ["locatorC"]; const _c1 = ["locatorD"]; const _c2 = ["locatorF", "locatorG"]; const _c3 = ["locatorA"]; const _c4 = ["locatorB"]; const _c5 = ["locatorE"]; - -… - +export class SomeToken {} +const nonAnalyzableRefersToString = "a, b, c"; export class TestDir { - … - static ɵdir = /*@__PURE__*/ $r3$.ɵɵdefineDirective({ - … + query1 = viewChild( + "locatorA" /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "query1" }] : /* istanbul ignore next */ []) + ); + query2 = viewChildren( + "locatorB" /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "query2" }] : /* istanbul ignore next */ []) + ); + query3 = contentChild( + "locatorC" /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "query3" }] : /* istanbul ignore next */ []) + ); + query4 = contentChildren( + "locatorD" /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "query4" }] : /* istanbul ignore next */ []) + ); + query5 = viewChild( + forwardRef(() => SomeToken) /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "query5" }] : /* istanbul ignore next */ []) + ); + query6 = viewChildren( + SomeToken /* @ts-ignore */, + ...(ngDevMode ? [{ debugName: "query6" }] : /* istanbul ignore next */ []) + ); + query7 = viewChild("locatorE", { + ...(ngDevMode ? { debugName: "query7" } : /* istanbul ignore next */ {}), + read: SomeToken + }); + query8 = contentChildren("locatorF, locatorG", { + ...(ngDevMode ? { debugName: "query8" } : /* istanbul ignore next */ {}), + descendants: true + }); + query9 = contentChildren(nonAnalyzableRefersToString, { + ...(ngDevMode ? { debugName: "query9" } : /* istanbul ignore next */ {}), + descendants: true + }); + static ɵfac = function TestDir_Factory(__ngFactoryType__) { + return new (__ngFactoryType__ || TestDir)(); + }; + static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ + type: TestDir, contentQueries: function TestDir_ContentQueries(rf, ctx, dirIndex) { - if (rf & 1) { - $r3$.ɵɵcontentQuerySignal(dirIndex, ctx.query3, _c0, 5)(dirIndex, ctx.query4, _c1, 4)(dirIndex, ctx.query8, _c2, 5)(dirIndex, ctx.query9, nonAnalyzableRefersToString, 5); - } if (rf & 2) { - $r3$.ɵɵqueryAdvance(4); - } + if (rf & 1) { + i0.ɵɵcontentQuerySignal(dirIndex, ctx.query3, _c0, 5)(dirIndex, ctx.query4, _c1, 4)( + dirIndex, + ctx.query8, + _c2, + 5 + )(dirIndex, ctx.query9, nonAnalyzableRefersToString, 5); + } + if (rf & 2) { + i0.ɵɵqueryAdvance(4); + } }, viewQuery: function TestDir_Query(rf, ctx) { - if (rf & 1) { - $r3$.ɵɵviewQuerySignal(ctx.query1, _c3, 5)(ctx.query2, _c4, 5)(ctx.query5, SomeToken, 5)(ctx.query6, SomeToken, 5)(ctx.query7, _c5, 5, SomeToken); - } if (rf & 2) { - $r3$.ɵɵqueryAdvance(5); - } + if (rf & 1) { + i0.ɵɵviewQuerySignal(ctx.query1, _c3, 5)(ctx.query2, _c4, 5)(ctx.query5, SomeToken, 5)( + ctx.query6, + SomeToken, + 5 + )(ctx.query7, _c5, 5, SomeToken); + } + if (rf & 2) { + i0.ɵɵqueryAdvance(5); + } } - … }); } +(() => { + (typeof ngDevMode === "undefined" || ngDevMode) && + i0.ɵsetClassMetadata( + TestDir, + [ + { + type: Directive, + args: [{}] + } + ], + null, + { + query1: [{ type: i0.ViewChild, args: ["locatorA", { isSignal: true }] }], + query2: [{ type: i0.ViewChildren, args: ["locatorB", { isSignal: true }] }], + query3: [{ type: i0.ContentChild, args: ["locatorC", { isSignal: true }] }], + query4: [{ type: i0.ContentChildren, args: ["locatorD", { isSignal: true }] }], + query5: [{ type: i0.ViewChild, args: [forwardRef(() => SomeToken), { isSignal: true }] }], + query6: [ + { type: i0.ViewChildren, args: [i0.forwardRef(() => SomeToken), { isSignal: true }] } + ], + query7: [ + { type: i0.ViewChild, args: ["locatorE", { ...{ read: SomeToken }, isSignal: true }] } + ], + query8: [ + { + type: i0.ContentChildren, + args: ["locatorF, locatorG", { ...{ descendants: true }, isSignal: true }] + } + ], + query9: [ + { + type: i0.ContentChildren, + args: [ + i0.forwardRef(() => nonAnalyzableRefersToString), + { ...{ descendants: true }, isSignal: true } + ] + } + ] + } + ); +})(); diff --git a/packages/compiler-cli/test/compliance/test_helpers/BUILD.bazel b/packages/compiler-cli/test/compliance/test_helpers/BUILD.bazel index d098f037da84..9ea5157c28e2 100644 --- a/packages/compiler-cli/test/compliance/test_helpers/BUILD.bazel +++ b/packages/compiler-cli/test/compliance/test_helpers/BUILD.bazel @@ -7,9 +7,11 @@ ts_project( ["**/*.ts"], ), visibility = [ + "//packages/compiler-cli/preprocessor/test:__pkg__", "//packages/compiler-cli/test/compliance:__subpackages__", ], deps = [ + "//:node_modules/prettier", "//:node_modules/typescript", "//packages:types", "//packages/compiler", diff --git a/packages/compiler-cli/test/compliance/test_helpers/check_expectations.ts b/packages/compiler-cli/test/compliance/test_helpers/check_expectations.ts index ce3a363dbd23..786a0f5b614e 100644 --- a/packages/compiler-cli/test/compliance/test_helpers/check_expectations.ts +++ b/packages/compiler-cli/test/compliance/test_helpers/check_expectations.ts @@ -5,6 +5,7 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ +import * as prettier from 'prettier'; import {ReadonlyFileSystem} from '../../../src/ngtsc/file_system'; import {getBuildOutputDirectory, getRootDirectory} from './compile_test'; @@ -35,14 +36,15 @@ const EXTRA_CHECK_FUNCTIONS: Record = { * TODO: Remove this option. This only exists until we fix: * https://github.com/angular/angular/issues/51647. */ -export function checkExpectations( +export async function checkExpectations( fs: ReadonlyFileSystem, testPath: string, failureMessage: string, expectedFiles: ExpectedFile[], extraChecks: ExtraCheck[], skipMappingCheck = false, -): void { + isLinkedCompilation = false, +): Promise { const builtDirectory = getBuildOutputDirectory(fs); for (const expectedFile of expectedFiles) { const expectedPath = fs.resolve(getRootDirectory(fs), expectedFile.expected); @@ -64,23 +66,36 @@ export function checkExpectations( error.stack = ''; throw error; } - const generated = fs.readFile(generatedPath); - let expected = fs.readFile(expectedPath); - expected = replaceMacros(expected); + const rawGenerated = fs.readFile(generatedPath); + const rawExpected = fs.readFile(expectedPath); + const allowPartial = /\/\/\s*SOURCE:/.test(rawExpected); + let expected = replaceMacros(rawExpected); expected = stripAndCheckMappings( fs, - generated, + rawGenerated, generatedPath, expected, expectedPath, /** skipMappingCheck */ !!skipMappingCheck, ); + let generated = rawGenerated; + generated = await prettier.format(rawGenerated, { + parser: 'babel', + printWidth: 100, + singleQuote: false, + trailingComma: 'none', + arrowParens: 'avoid', + quoteProps: 'preserve', + }); + expectEmit( generated, expected, `When checking against expected file "${testPath}/${expectedFile.expected}"\n` + failureMessage, + undefined, + {isLinkedCompilation, allowPartial}, ); runExtraChecks(testPath, generated, extraChecks); diff --git a/packages/compiler-cli/test/compliance/test_helpers/check_type_declarations.ts b/packages/compiler-cli/test/compliance/test_helpers/check_type_declarations.ts index dd7cfb1d5ee8..00b3b6687018 100644 --- a/packages/compiler-cli/test/compliance/test_helpers/check_type_declarations.ts +++ b/packages/compiler-cli/test/compliance/test_helpers/check_type_declarations.ts @@ -7,6 +7,7 @@ */ import {AbsoluteFsPath, FileSystem} from '../../../src/ngtsc/file_system'; +import {isNgpTestMode, normalizeNgpOutputFile} from '../../../src/ngtsc/testing'; /** * Check that the content of each emitted type declaration file matches the content of their @@ -21,6 +22,15 @@ export function checkTypeDeclarations(fs: FileSystem, emittedFiles: AbsoluteFsPa if (!emittedDeclarationFiles.length) { throw new Error('No type declarations emitted.'); } + const normalize = isNgpTestMode() + ? (text: string): string => { + let normalized = normalizeNgpOutputFile(text); + if (normalized.includes('import * as i0 from "@angular/core"')) { + normalized = normalized.replace(/import\("@angular\/core"\)\./g, 'i0.'); + } + return normalized.replace(/\s+/g, ' ').trim(); + } + : (text: string): string => text.trim(); const diff = emittedDeclarationFiles .map((file) => ({ expectedFilename: getReferenceFileForTypeDeclaration(fs, file), @@ -32,7 +42,7 @@ export function checkTypeDeclarations(fs: FileSystem, emittedFiles: AbsoluteFsPa })) .find( ({expectedFile, generatedFile}) => - expectedFile.content.trim() !== generatedFile.content.trim(), + normalize(expectedFile.content) !== normalize(generatedFile.content), ); if (diff) { diff --git a/packages/compiler-cli/test/compliance/test_helpers/compile_test.ts b/packages/compiler-cli/test/compliance/test_helpers/compile_test.ts index a7e432c3b5b9..335be33fe88c 100644 --- a/packages/compiler-cli/test/compliance/test_helpers/compile_test.ts +++ b/packages/compiler-cli/test/compliance/test_helpers/compile_test.ts @@ -15,9 +15,11 @@ import { } from '../../../src/ngtsc/file_system'; import {initMockFileSystem} from '../../../src/ngtsc/file_system/testing'; import { + isNgpTestMode, loadStandardTestFiles, loadTestDirectory, NgtscTestCompilerHost, + performNgpCompilationSync, } from '../../../src/ngtsc/testing'; import {performCompilation} from '../../../src/perform_compile'; import {CompilerOptions} from '../../../src/transformers/api'; @@ -68,6 +70,19 @@ export function compileTest( strictTemplates: false, }); const rootNames = files.map((f) => fs.resolve(f)); + if (isNgpTestMode()) { + const {diagnostics, emittedFiles} = performNgpCompilationSync({ + fs, + basePath: rootDir, + tsconfigPath: fs.resolve(rootDir, 'tsconfig.json'), + rootNames, + options, + emit: true, + complianceMode: true, + }); + const errors = parseDiagnostics(diagnostics); + return {errors, emittedFiles}; + } const host = new NgtscTestCompilerHost(fs, options); const {diagnostics, emitResult} = performCompilation({rootNames, host, options}); const emittedFiles = emitResult diff --git a/packages/compiler-cli/test/compliance/test_helpers/expect_emit.ts b/packages/compiler-cli/test/compliance/test_helpers/expect_emit.ts index 2e8c066918cd..b8e12f983ae4 100644 --- a/packages/compiler-cli/test/compliance/test_helpers/expect_emit.ts +++ b/packages/compiler-cli/test/compliance/test_helpers/expect_emit.ts @@ -6,6 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ import {escapeRegExp} from '@angular/compiler'; +import {isNgpTestMode, normalizeNgpEmitForComparison} from '../../../src/ngtsc/testing'; const IDENTIFIER = /[A-Za-z_$ɵ][A-Za-z0-9_$]*/; const COMMENT_START = /\/\*/; @@ -13,12 +14,37 @@ const COMMENT_END = /\*\//; const OPERATOR = /!|\?|%|\*|\/|\^|&&?|\|\|?|\(|\)|\{|\}|\[|\]|:|;|<=?|>=?|={1,3}|!==?|=>|\+\+?|--?|@|,|\.|\.\.\.|\\`|\\'/; const STRING = /'(\\'|[^'])*'|"(\\"|[^"])*"/; -const INLINE_BACKTICK_STRING = /`(?:[\s\S]|(?:\$\{[^}]*?\}))*?[^\\]`/; +const INLINE_BACKTICK_STRING = /`(?:\\[\s\S]|\$\{[^}]*?\}|[^\\`])*`/; const SINGLE_BACKTICK_STRING = new RegExp('^' + INLINE_BACKTICK_STRING.source); const BACKTICK_INTERPOLATION = /(\$\{[^}]*\})/; const NUMBER = /\d+/; +const COMMENT_OR_STRING = + /\/\*[\s\S]*?\*\/|`(?:\\[\s\S]|\$\{[^}]*?\}|[^\\`])*`|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|(\/\/[^\n]*)/g; + const ELLIPSIS = '…'; + +function stripLineComments(code: string, convertEllipsisComment = false): string { + return code.replace(COMMENT_OR_STRING, (match, lineComment: string | undefined) => { + if (!lineComment) { + return match; + } + return convertEllipsisComment && /^\/\/\s*\.\.\./.test(lineComment) ? ELLIPSIS : ''; + }); +} + +function transformOutsideStringsAndComments( + code: string, + transform: (segment: string) => string, +): string { + let out = ''; + let last = 0; + for (const match of code.matchAll(COMMENT_OR_STRING)) { + out += transform(code.slice(last, match.index!)) + match[0]; + last = match.index! + match[0].length; + } + return out + transform(code.slice(last)); +} const TOKEN = new RegExp( `\\s*((${COMMENT_START.source})|(${COMMENT_END.source})|(${IDENTIFIER.source})|(${INLINE_BACKTICK_STRING.source})|(${OPERATOR.source})|(${STRING.source})|${NUMBER.source}|${ELLIPSIS})\\s*`, 'y', @@ -111,39 +137,121 @@ const BLUE = '\x1b[36m'; const RED = '\x1b[31m'; const GREEN = '\x1b[32m'; +export interface ExpectEmitOptions { + isLinkedCompilation?: boolean; + isNgpCompilation?: boolean; + allowPartial?: boolean; +} + export function expectEmit( source: string, expected: string, description: string, assertIdentifiers?: {[name: string]: RegExp}, + options?: ExpectEmitOptions, ) { - expected = expected - // turns `// ...` into `…` - .replace(/\/\/\s*\.\.\./g, ELLIPSIS) - // remove `// TODO` comment lines - .replace(/\/\/\s*TODO.*?\n/g, '') - // remove `// NOTE` comment lines - .replace(/\/\/\s*NOTE.*?\n/g, ''); + const isNgpMode = isNgpTestMode() || Boolean(options?.isNgpCompilation); + const allowPartial = Boolean(options?.allowPartial); + if (isNgpMode) { + source = normalizeNgpEmitForComparison(source); + expected = normalizeNgpEmitForComparison(expected, {pruneUnusedImports: true}); + } + if (options?.isLinkedCompilation) { + // Partial declaration linking does not emit `ɵsetClassDebugInfo` or `ɵɵsetNgModuleScope` + // side-effect calls, and generates Closure message constants from the linked `.js` path + // rather than the original `.ts` path + external hash. + expected = expected + .replace( + /(?:\(\(\)\s*=>|\(function\s*\(\))\s*\{\s*\(typeof\s+ngDevMode\s*===\s*(['"])undefined\1\s*\|\|\s*ngDevMode\)\s*&&\s*i0\.ɵsetClassDebugInfo\([\s\S]*?\}\)\(\);\s*/g, + '', + ) + .replace( + /(?:\(\(\)\s*=>|\(function\s*\(\))\s*\{\s*\(typeof\s+ngJitMode\s*===\s*(['"])undefined\1\s*\|\|\s*ngJitMode\)\s*&&\s*i0\.ɵɵsetNgModuleScope\([\s\S]*?\}\)\(\);\s*/g, + '', + ); + const normalizeLinkedTokens = (segment: string) => + segment.replace( + /\bMSG_(?:EXTERNAL_[A-Za-z0-9_$.]+?\$\$)?(?:_BUILT_)?([A-Za-z0-9_$]+?)_(?:TS|JS)_(\d+)\b/g, + 'MSG_$1_$2', + ); + source = transformOutsideStringsAndComments(source, normalizeLinkedTokens).replace( + /\/\*\s*@ts-ignore\s*\*\/\s*/g, + '', + ); + expected = transformOutsideStringsAndComments(expected, normalizeLinkedTokens).replace( + /\/\*\s*@ts-ignore\s*\*\/\s*/g, + '', + ); + } + source = stripLineComments(source); + expected = stripLineComments(expected, true); const pieces = tokenize(expected); + const endsWithSkip = pieces[pieces.length - 1] === SKIP; - // Group pieces into chunks separated by SKIP. - const chunks: {pieces: (string | RegExp)[]; skipBefore: boolean}[] = []; + const MAX_CHUNK_PIECES = 500; + const MAX_PIECE_LENGTH = 4000; + // Group pieces into chunks separated by SKIP (and sub-chunk very large piece arrays or + // giant string literals to stay within V8's RegExp size limit). + const chunks: { + pieces: (string | RegExp)[]; + skipBefore: boolean; + leadingWhitespace: boolean; + }[] = []; let currentChunk: (string | RegExp)[] = []; let hasSkip = false; for (const piece of pieces) { if (piece === SKIP) { if (currentChunk.length > 0 || hasSkip) { - chunks.push({pieces: currentChunk, skipBefore: hasSkip}); + chunks.push({ + pieces: currentChunk, + skipBefore: hasSkip, + leadingWhitespace: (chunks.length > 0 || !allowPartial) && !hasSkip, + }); } hasSkip = true; currentChunk = []; + } else if (typeof piece === 'string' && piece.length > MAX_PIECE_LENGTH) { + if (currentChunk.length > 0) { + chunks.push({ + pieces: currentChunk, + skipBefore: hasSkip, + leadingWhitespace: (chunks.length > 0 || !allowPartial) && !hasSkip, + }); + hasSkip = false; + currentChunk = []; + } + for (let offset = 0; offset < piece.length; offset += MAX_PIECE_LENGTH) { + const slice = piece.slice(offset, offset + MAX_PIECE_LENGTH); + const isFirstSlice = offset === 0; + chunks.push({ + pieces: [slice], + skipBefore: isFirstSlice ? hasSkip : false, + leadingWhitespace: isFirstSlice + ? (chunks.length > 0 || !allowPartial) && !hasSkip + : false, + }); + } + hasSkip = false; } else { currentChunk.push(piece); + if (currentChunk.length >= MAX_CHUNK_PIECES) { + chunks.push({ + pieces: currentChunk, + skipBefore: hasSkip, + leadingWhitespace: (chunks.length > 0 || !allowPartial) && !hasSkip, + }); + hasSkip = false; + currentChunk = []; + } } } if (currentChunk.length > 0 || chunks.length === 0) { - chunks.push({pieces: currentChunk, skipBefore: hasSkip}); + chunks.push({ + pieces: currentChunk, + skipBefore: hasSkip, + leadingWhitespace: (chunks.length > 0 || !allowPartial) && !hasSkip, + }); } const extractedGroups = new Map(); @@ -153,7 +261,14 @@ export function expectEmit( const chunk = chunks[i]; if (chunk.pieces.length === 0) continue; - const {regexp, newGroups} = buildChunkMatcher(chunk.pieces, extractedGroups, 'g'); + const contiguous = (i > 0 || !allowPartial) && !chunk.skipBefore; + const flag = contiguous ? 'y' : 'g'; + const {regexp, newGroups} = buildChunkMatcher( + chunk.pieces, + extractedGroups, + flag, + chunk.leadingWhitespace, + ); regexp.lastIndex = lastIndex; let m = regexp.exec(source); @@ -162,7 +277,12 @@ export function expectEmit( let errLast = lastIndex; for (let j = 1; j <= chunk.pieces.length; j++) { const subPieces = chunk.pieces.slice(0, j); - const {regexp: subRegexp} = buildChunkMatcher(subPieces, extractedGroups, 'g'); + const {regexp: subRegexp} = buildChunkMatcher( + subPieces, + extractedGroups, + flag, + chunk.leadingWhitespace, + ); subRegexp.lastIndex = lastIndex; let subMatch = subRegexp.exec(source); @@ -199,6 +319,15 @@ export function expectEmit( lastIndex = m.index + m[0].length; } + if (!allowPartial && !endsWithSkip && source.slice(lastIndex).trim() !== '') { + throw new Error( + `${RED}${description}:\n${RESET}${BLUE}Unexpected trailing content at end of generated file:${RESET}\n\n` + + `${source.slice(0, lastIndex)}` + + `${RED}[[[ <<<<---HERE expected end of file ]]]${RESET}` + + `${source.slice(lastIndex)}`, + ); + } + if (assertIdentifiers) { const ids = Object.keys(assertIdentifiers); for (let i = 0; i < ids.length; i++) { @@ -230,9 +359,10 @@ function buildChunkMatcher( pieces: (string | RegExp)[], knownGroups: Map, flag: string, + leadingWhitespace = false, ): {regexp: RegExp; newGroups: Map} { const results: string[] = []; - let first = true; + let first = !leadingWhitespace; let groupCounter = 0; const newGroups = new Map(); diff --git a/packages/compiler-cli/test/compliance/test_helpers/sourcemap_helpers.ts b/packages/compiler-cli/test/compliance/test_helpers/sourcemap_helpers.ts index 4b3494292075..ed161d47710b 100644 --- a/packages/compiler-cli/test/compliance/test_helpers/sourcemap_helpers.ts +++ b/packages/compiler-cli/test/compliance/test_helpers/sourcemap_helpers.ts @@ -8,6 +8,7 @@ import {AbsoluteFsPath, ReadonlyFileSystem} from '../../../src/ngtsc/file_system'; import {ConsoleLogger, LogLevel} from '../../../src/ngtsc/logging'; import {SourceFileLoader} from '../../../src/ngtsc/sourcemaps'; +import {isNgpTestMode, normalizeNgpSourceMapSegment} from '../../../src/ngtsc/testing'; /** * Check the source-mappings of the generated source file against mappings stored in the expected @@ -179,17 +180,21 @@ function getMappedSegments( * @returns An error message if a matching segment cannot be found, or null if it can. */ function checkMapping(mappings: SegmentMapping[], expected: SegmentMapping): string | null { + // NGP's printer emits code slightly differently from ngtsc's TypeScript emit; only the generated + // side is relaxed, the source side must match exactly. + const normalize = isNgpTestMode() ? normalizeNgpSourceMapSegment : (code: string) => code; + const expectedGenerated = normalize(expected.generated); if ( mappings.some( (m) => - m.generated === expected.generated && + normalize(m.generated) === expectedGenerated && m.source === expected.source && m.sourceUrl === expected.sourceUrl, ) ) { return null; } - const matchingGenerated = mappings.filter((m) => m.generated === expected.generated); + const matchingGenerated = mappings.filter((m) => normalize(m.generated) === expectedGenerated); const matchingSource = mappings.filter((m) => m.source === expected.source); const message = [ diff --git a/packages/compiler-cli/test/compliance/test_helpers/test_runner.ts b/packages/compiler-cli/test/compliance/test_helpers/test_runner.ts index 4e356ab47820..e9f9e5c07304 100644 --- a/packages/compiler-cli/test/compliance/test_helpers/test_runner.ts +++ b/packages/compiler-cli/test/compliance/test_helpers/test_runner.ts @@ -67,7 +67,7 @@ export function runTests( describe(`[${test.relativePath}]/${counter++}`, () => { const itFn = test.focusTest ? fit : test.excludeTest ? xit : it; - itFn(test.description, () => { + itFn(test.description, async () => { if (type === 'linked compile' && test.compilerOptions?.['target'] === 'ES5') { throw new Error( `The "${type}" scenario does not support ES5 output.\n` + @@ -93,13 +93,14 @@ export function runTests( checkTypeDeclarations(fs, emittedFiles); } else { checkNoUnexpectedErrors(test.relativePath, errors); - checkExpectations( + await checkExpectations( fs, test.relativePath, expectation.failureMessage, expectation.files, expectation.extraChecks, options.skipMappingChecks, + type === 'linked compile', ); } } diff --git a/packages/compiler-cli/test/compliance/update_all_goldens.js b/packages/compiler-cli/test/compliance/update_all_goldens.js index e5858a04e10b..f5e6f606f936 100644 --- a/packages/compiler-cli/test/compliance/update_all_goldens.js +++ b/packages/compiler-cli/test/compliance/update_all_goldens.js @@ -12,7 +12,7 @@ import {execSync, spawnSync} from 'child_process'; process.stdout.write('Gathering all partial golden update targets'); -const queryCommand = `pnpm -s bazel query --output label "kind(_write_source_file, //packages/compiler-cli/test/compliance/test_cases:*)"`; +const queryCommand = `pnpm --silent bazel query --output label "kind(_write_source_file, //packages/compiler-cli/test/compliance/test_cases:*)"`; const allUpdateTargets = execSync(queryCommand, {encoding: 'utf-8', stdio: 'pipe'}) .trim() .split('\n') @@ -20,14 +20,14 @@ const allUpdateTargets = execSync(queryCommand, {encoding: 'utf-8', stdio: 'pipe .filter((target) => target.length > 0); if (allUpdateTargets.length === 0) { - process.stdout.clearLine(); - process.stdout.cursorTo(0); + if (process.stdout.clearLine) process.stdout.clearLine(); + if (process.stdout.cursorTo) process.stdout.cursorTo(0); console.error(`Could not find any symbol test targets using: ${queryCommand}`); process.exit(1); } -process.stdout.clearLine(); -process.stdout.cursorTo(0); +if (process.stdout.clearLine) process.stdout.clearLine(); +if (process.stdout.cursorTo) process.stdout.cursorTo(0); for (const [index, target] of allUpdateTargets.entries()) { const progress = `${index + 1} / ${allUpdateTargets.length}`; @@ -36,8 +36,8 @@ for (const [index, target] of allUpdateTargets.entries()) { stdio: 'pipe', encoding: 'utf-8', }); - process.stdout.clearLine(); - process.stdout.cursorTo(0); + if (process.stdout.clearLine) process.stdout.clearLine(); + if (process.stdout.cursorTo) process.stdout.cursorTo(0); if (commandResult.status) { console.error(`[${progress}] Failed run: ${target}`); console.group(); diff --git a/packages/compiler-cli/test/ngtsc/BUILD.bazel b/packages/compiler-cli/test/ngtsc/BUILD.bazel index 779f0a94a70a..2cbf43e244d9 100644 --- a/packages/compiler-cli/test/ngtsc/BUILD.bazel +++ b/packages/compiler-cli/test/ngtsc/BUILD.bazel @@ -15,7 +15,6 @@ ts_project( "//packages/compiler-cli/src/ngtsc/docs", "//packages/compiler-cli/src/ngtsc/file_system", "//packages/compiler-cli/src/ngtsc/file_system/testing", - "//packages/compiler-cli/src/ngtsc/indexer", "//packages/compiler-cli/src/ngtsc/reflection", "//packages/compiler-cli/src/ngtsc/testing", "//packages/compiler-cli/src/ngtsc/typecheck/api", @@ -37,3 +36,20 @@ jasmine_test( ], shard_count = 4, ) + +jasmine_test( + name = "ngtsc_ngp", + timeout = "long", + data = [ + ":ngtsc_lib", + "//:node_modules/yargs", + "//packages/compiler-cli/preprocessor/ng-analyze:wasm", + "//packages/compiler-cli/src/ngtsc/testing/fake_common:npm_package", + "//packages/core:npm_package", + "//packages/forms:npm_package", + ], + env = { + "NG_COMPILER_BACKEND": "ngp", + }, + shard_count = 4, +) diff --git a/packages/compiler-cli/test/ngtsc/authoring_inputs_spec.ts b/packages/compiler-cli/test/ngtsc/authoring_inputs_spec.ts index 6bad19d146c8..5221b78ce231 100644 --- a/packages/compiler-cli/test/ngtsc/authoring_inputs_spec.ts +++ b/packages/compiler-cli/test/ngtsc/authoring_inputs_spec.ts @@ -7,7 +7,6 @@ */ import ts from 'typescript'; - import {runInEachFileSystem} from '../../src/ngtsc/file_system/testing'; import {loadStandardTestFiles} from '../../src/ngtsc/testing'; @@ -15,6 +14,10 @@ import {NgtscTestEnvironment} from './env'; const testFiles = loadStandardTestFiles(); +function extractMessage(diag: ts.Diagnostic) { + return typeof diag.messageText === 'string' ? diag.messageText : diag.messageText.messageText; +} + runInEachFileSystem(() => { describe('initializer-based input() API', () => { let env!: NgtscTestEnvironment; @@ -54,10 +57,8 @@ runInEachFileSystem(() => { `, ); const diagnostics = env.driveDiagnostics(); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: `Using @Input with a signal input is not allowed.`, - }), + expect(diagnostics.map(extractMessage)).toEqual([ + `Using @Input with a signal input is not allowed.`, ]); }); @@ -76,10 +77,8 @@ runInEachFileSystem(() => { `, ); const diagnostics = env.driveDiagnostics(); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: 'Input "data" is also declared as non-signal in @Directive.', - }), + expect(diagnostics.map(extractMessage)).toEqual([ + 'Input "data" is also declared as non-signal in @Directive.', ]); }); @@ -100,10 +99,8 @@ runInEachFileSystem(() => { `, ); const diagnostics = env.driveDiagnostics(); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: 'Alias needs to be a string that is statically analyzable.', - }), + expect(diagnostics.map(extractMessage)).toEqual([ + 'Alias needs to be a string that is statically analyzable.', ]); }); @@ -124,10 +121,8 @@ runInEachFileSystem(() => { `, ); const diagnostics = env.driveDiagnostics(); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: 'Argument needs to be an object literal that is statically analyzable.', - }), + expect(diagnostics.map(extractMessage)).toEqual([ + 'Argument needs to be an object literal that is statically analyzable.', ]); }); @@ -144,10 +139,8 @@ runInEachFileSystem(() => { `, ); const diagnostics = env.driveDiagnostics(); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: 'Input "data" is incorrectly declared as static member of "TestDir".', - }), + expect(diagnostics.map(extractMessage)).toEqual([ + 'Input "data" is incorrectly declared as static member of "TestDir".', ]); }); @@ -185,11 +178,7 @@ runInEachFileSystem(() => { `, ); const diagnostics = env.driveDiagnostics(); - expect(diagnostics[0].messageText).toEqual( - jasmine.objectContaining({ - messageText: 'No overload matches this call.', - }), - ); + expect(extractMessage(diagnostics[0])).toContain('No overload matches this call.'); }); it('should handle a transform and required input', () => { @@ -207,9 +196,10 @@ runInEachFileSystem(() => { `, ); env.driveMain(); + const dts = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(env.getContents('test.js')).toContain(`inputs: { data: [1, "data"] }`); - expect(env.getContents('test.d.ts')).toContain('"required": true; "isSignal": true;'); - expect(env.getContents('test.d.ts')) + expect(dts).toContain('"required": true; "isSignal": true;'); + expect(dts) .withContext( 'Expected no coercion member as input signal captures the write type of the transform', ) @@ -256,7 +246,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`Type 'number' is not assignable to type 'string'.`); + expect(extractMessage(diags[0])).toBe(`Type 'number' is not assignable to type 'string'.`); }); describe('type checking', () => { @@ -284,7 +274,7 @@ runInEachFileSystem(() => { const diagnostics = env.driveDiagnostics(); expect(diagnostics.length).toBe(1); - expect(diagnostics[0].messageText).toBe( + expect(extractMessage(diagnostics[0])).toBe( `Type 'boolean' is not assignable to type 'number'.`, ); }); @@ -315,7 +305,7 @@ runInEachFileSystem(() => { const diagnostics = env.driveDiagnostics(); expect(diagnostics.length).toBe(1); - expect(diagnostics[0].messageText).toBe( + expect(extractMessage(diagnostics[0])).toBe( `Type 'boolean' is not assignable to type 'string | number'.`, ); }); @@ -402,7 +392,7 @@ runInEachFileSystem(() => { const diagnostics = env.driveDiagnostics(); expect(diagnostics.length).toBe(1); - expect(diagnostics[0].messageText).toBe( + expect(extractMessage(diagnostics[0])).toBe( `Required input 'data' from directive TestDir must be specified.`, ); }); @@ -426,13 +416,9 @@ runInEachFileSystem(() => { const diagnostics = env.driveDiagnostics(); expect(diagnostics.length).toBe(1); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: jasmine.objectContaining({ - messageText: `Cannot use "input" on a class member that is declared as ES private.`, - }), - }), - ]); + expect(extractMessage(diagnostics[0])).toContain( + `Cannot use "input" on a class member that is declared as ES private`, + ); }); it('should error when declared using a `private` field', () => { @@ -452,13 +438,9 @@ runInEachFileSystem(() => { const diagnostics = env.driveDiagnostics(); expect(diagnostics.length).toBe(1); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: jasmine.objectContaining({ - messageText: `Cannot use "input" on a class member that is declared as private.`, - }), - }), - ]); + expect(extractMessage(diagnostics[0])).toContain( + `Cannot use "input" on a class member that is declared as private.`, + ); }); it('should allow declaring using a `protected` field', () => { @@ -530,9 +512,10 @@ runInEachFileSystem(() => { env.driveMain(); const js = env.getContents('test.js'); expect(js).toContain('import * as i0 from "@angular/core";'); - expect(js).toContain(`i0.ɵsetClassMetadata(TestDir, [{ - type: Directive - }], null, { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }] });`); + expect(js).toContain(`i0.ɵsetClassMetadata(TestDir`); + expect(js).toMatch( + /data: \[{ type: i0\.Input, args: \[{ isSignal: true, alias: ['"]data['"], required: false }]/, + ); }); }); }); diff --git a/packages/compiler-cli/test/ngtsc/authoring_models_spec.ts b/packages/compiler-cli/test/ngtsc/authoring_models_spec.ts index d6359255929d..687268ddcb11 100644 --- a/packages/compiler-cli/test/ngtsc/authoring_models_spec.ts +++ b/packages/compiler-cli/test/ngtsc/authoring_models_spec.ts @@ -7,7 +7,6 @@ */ import ts from 'typescript'; - import {runInEachFileSystem} from '../../src/ngtsc/file_system/testing'; import {loadStandardTestFiles} from '../../src/ngtsc/testing'; @@ -15,6 +14,10 @@ import {NgtscTestEnvironment} from './env'; const testFiles = loadStandardTestFiles(); +function extractMessage(diag: ts.Diagnostic) { + return typeof diag.messageText === 'string' ? diag.messageText : diag.messageText.messageText; +} + runInEachFileSystem(() => { describe('initializer-based model() API', () => { let env!: NgtscTestEnvironment; @@ -39,7 +42,7 @@ runInEachFileSystem(() => { env.driveMain(); const js = env.getContents('test.js'); - const dts = env.getContents('test.d.ts'); + const dts = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(js).toContain('inputs: { value: [1, "value"] }'); expect(js).toContain('outputs: { value: "valueChange" }'); @@ -65,7 +68,7 @@ runInEachFileSystem(() => { env.driveMain(); const js = env.getContents('test.js'); - const dts = env.getContents('test.d.ts'); + const dts = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(js).toContain('inputs: { value: [1, "alias", "value"] }'); expect(js).toContain('outputs: { value: "aliasChange" }'); @@ -91,7 +94,7 @@ runInEachFileSystem(() => { env.driveMain(); const js = env.getContents('test.js'); - const dts = env.getContents('test.d.ts'); + const dts = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(js).toContain('inputs: { value: [1, "value"] }'); expect(js).toContain('outputs: { value: "valueChange" }'); @@ -116,7 +119,7 @@ runInEachFileSystem(() => { ); const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe('Using @Input with a model input is not allowed.'); + expect(extractMessage(diags[0])).toBe('Using @Input with a model input is not allowed.'); }); it('should report a diagnostic if a model field is decorated with @Output', () => { @@ -133,7 +136,7 @@ runInEachFileSystem(() => { ); const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe('Using @Output with a model input is not allowed.'); + expect(extractMessage(diags[0])).toBe('Using @Output with a model input is not allowed.'); }); it('should report a diagnostic if a model input is also declared in the `inputs` field', () => { @@ -152,7 +155,7 @@ runInEachFileSystem(() => { ); const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( + expect(extractMessage(diags[0])).toBe( 'Input "value" is also declared as non-signal in @Directive.', ); }); @@ -174,7 +177,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( + expect(extractMessage(diags[0])).toBe( 'Alias needs to be a string that is statically analyzable.', ); }); @@ -195,7 +198,7 @@ runInEachFileSystem(() => { ); const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( + expect(extractMessage(diags[0])).toBe( 'Argument needs to be an object literal that is statically analyzable.', ); }); @@ -214,7 +217,7 @@ runInEachFileSystem(() => { ); const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( + expect(extractMessage(diags[0])).toBe( 'Input "value" is incorrectly declared as static member of "TestDir".', ); }); @@ -235,7 +238,7 @@ runInEachFileSystem(() => { ); const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( + expect(extractMessage(diags[0])).toBe( `Object literal may only specify known properties, ` + `and 'initialValue' does not exist in type 'ModelOptions'.`, ); @@ -266,7 +269,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe('Unsupported expression in a two-way binding'); + expect(extractMessage(diags[0])).toBe('Unsupported expression in a two-way binding'); }); describe('type checking', () => { @@ -295,7 +298,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`Type 'boolean' is not assignable to type 'number'.`); + expect(extractMessage(diags[0])).toBe(`Type 'boolean' is not assignable to type 'number'.`); }); it('should check a signal value bound to a model input via a two-way binding', () => { @@ -323,7 +326,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`Type 'boolean' is not assignable to type 'number'.`); + expect(extractMessage(diags[0])).toBe(`Type 'boolean' is not assignable to type 'number'.`); }); it('should check two-way binding of a signal to a decorator-based input/output pair', () => { @@ -352,7 +355,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`Type 'boolean' is not assignable to type 'number'.`); + expect(extractMessage(diags[0])).toBe(`Type 'boolean' is not assignable to type 'number'.`); }); it('should not allow a non-writable signal to be assigned to a model', () => { @@ -380,7 +383,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( + expect(extractMessage(diags[0])).toBe( `Type 'InputSignal' is not assignable to type 'number'.`, ); }); @@ -437,7 +440,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( + expect(extractMessage(diags[0])).toBe( `Argument of type 'number' is not assignable to parameter of type 'string'.`, ); }); @@ -466,7 +469,7 @@ runInEachFileSystem(() => { const diagnostics = env.driveDiagnostics(); expect(diagnostics.length).toBe(1); - expect(diagnostics[0].messageText).toBe( + expect(extractMessage(diagnostics[0])).toBe( `Required input 'value' from directive TestDir must be specified.`, ); }); @@ -496,10 +499,8 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toEqual( - jasmine.objectContaining({ - messageText: `Type '{ id: number; }' is not assignable to type '{ id: string; }'.`, - }), + expect(extractMessage(diags[0])).toContain( + `Type '{ id: number; }' is not assignable to type '{ id: string; }'.`, ); }); @@ -528,10 +529,8 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toEqual( - jasmine.objectContaining({ - messageText: `Type '{ id: number; }' is not assignable to type '{ id: string; }'.`, - }), + expect(extractMessage(diags[0])).toContain( + `Type '{ id: number; }' is not assignable to type '{ id: string; }'.`, ); }); @@ -560,7 +559,7 @@ runInEachFileSystem(() => { const diagnostics = env.driveDiagnostics(); expect(diagnostics.length).toBe(1); - expect(diagnostics[0].messageText).toBe( + expect(extractMessage(diagnostics[0])).toBe( `Type 'WritableSignal' is not assignable to type 'number'.`, ); }); @@ -621,7 +620,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( + expect(extractMessage(diags[0])).toBe( `Type 'WritableSignal' is not assignable to type 'number'.`, ); }); @@ -677,13 +676,9 @@ runInEachFileSystem(() => { const diagnostics = env.driveDiagnostics(); expect(diagnostics.length).toBe(1); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: jasmine.objectContaining({ - messageText: `Cannot use "model" on a class member that is declared as ES private.`, - }), - }), - ]); + expect(extractMessage(diagnostics[0])).toContain( + `Cannot use "model" on a class member that is declared as ES private.`, + ); }); it('should error when declared using a `private` field', () => { @@ -703,13 +698,9 @@ runInEachFileSystem(() => { const diagnostics = env.driveDiagnostics(); expect(diagnostics.length).toBe(1); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: jasmine.objectContaining({ - messageText: `Cannot use "model" on a class member that is declared as private.`, - }), - }), - ]); + expect(extractMessage(diagnostics[0])).toContain( + `Cannot use "model" on a class member that is declared as private.`, + ); }); it('should allow using a `protected` field', () => { @@ -748,12 +739,9 @@ runInEachFileSystem(() => { const js = env.getContents('test.js'); expect(js).toContain('import * as i0 from "@angular/core";'); - expect(js).toContain( - `i0.ɵsetClassMetadata(TestDir, [{ - type: Directive - }], null, { value: [` + - `{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, ` + - `{ type: i0.Output, args: ["valueChange"] }] });`, + expect(js).toContain(`i0.ɵsetClassMetadata(TestDir`); + expect(js).toMatch( + /value: \[{ type: i0\.Input, args: \[{ isSignal: true, alias: ['"]value['"], required: false }\] }, { type: i0\.Output, args: \[['"]valueChange['"]\] }]/, ); }); }); diff --git a/packages/compiler-cli/test/ngtsc/authoring_outputs_spec.ts b/packages/compiler-cli/test/ngtsc/authoring_outputs_spec.ts index 48a3dad4dad5..b92714e02704 100644 --- a/packages/compiler-cli/test/ngtsc/authoring_outputs_spec.ts +++ b/packages/compiler-cli/test/ngtsc/authoring_outputs_spec.ts @@ -7,7 +7,6 @@ */ import ts from 'typescript'; - import {runInEachFileSystem} from '../../src/ngtsc/file_system/testing'; import {loadStandardTestFiles} from '../../src/ngtsc/testing'; @@ -15,6 +14,10 @@ import {NgtscTestEnvironment} from './env'; const testFiles = loadStandardTestFiles(); +function extractMessage(diag: ts.Diagnostic) { + return typeof diag.messageText === 'string' ? diag.messageText : diag.messageText.messageText; +} + runInEachFileSystem(() => { describe('initializer-based output() API', () => { let env!: NgtscTestEnvironment; @@ -39,7 +42,7 @@ runInEachFileSystem(() => { env.driveMain(); const js = env.getContents('test.js'); - const dts = env.getContents('test.d.ts'); + const dts = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(js).toContain(`outputs: { click: "click" }`); expect(dts).toContain('{ "click": "click"; '); @@ -61,7 +64,7 @@ runInEachFileSystem(() => { env.driveMain(); const js = env.getContents('test.js'); - const dts = env.getContents('test.d.ts'); + const dts = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(js).toContain(`outputs: { click: "click" }`); expect(dts).toContain('{ "click": "click"; '); @@ -82,7 +85,7 @@ runInEachFileSystem(() => { env.driveMain(); const js = env.getContents('test.js'); - const dts = env.getContents('test.d.ts'); + const dts = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(js).toContain(`outputs: { click: "publicClick" }`); expect(dts).toContain('{ "click": "publicClick"; '); @@ -105,7 +108,7 @@ runInEachFileSystem(() => { env.driveMain(); const js = env.getContents('test.js'); - const dts = env.getContents('test.d.ts'); + const dts = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(js).toContain(`outputs: { click: "publicClick" }`); expect(dts).toContain('{ "click": "publicClick"; '); @@ -126,11 +129,10 @@ runInEachFileSystem(() => { ); const diagnostics = env.driveDiagnostics(); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: 'Using "@Output" with "output()" is not allowed.', - }), - ]); + expect(diagnostics.length).toBe(1); + expect(extractMessage(diagnostics[0])).toContain( + 'Using "@Output" with "output()" is not allowed.', + ); }); it('should fail when outputFromObservable() is used with @Output decorator', () => { @@ -148,11 +150,10 @@ runInEachFileSystem(() => { ); const diagnostics = env.driveDiagnostics(); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: 'Using "@Output" with "output()" is not allowed.', - }), - ]); + expect(diagnostics.length).toBe(1); + expect(extractMessage(diagnostics[0])).toContain( + 'Using "@Output" with "output()" is not allowed.', + ); }); it('should fail if used with output declared in @Directive metadata', () => { @@ -172,11 +173,10 @@ runInEachFileSystem(() => { ); const diagnostics = env.driveDiagnostics(); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: 'Output "click" is unexpectedly declared in @Directive as well.', - }), - ]); + expect(diagnostics.length).toBe(1); + expect(extractMessage(diagnostics[0])).toContain( + 'Output "click" is unexpectedly declared in @Directive as well.', + ); }); it('should fail if used with output declared in @Component metadata', () => { @@ -197,11 +197,10 @@ runInEachFileSystem(() => { ); const diagnostics = env.driveDiagnostics(); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: 'Output "click" is unexpectedly declared in @Component as well.', - }), - ]); + expect(diagnostics.length).toBe(1); + expect(extractMessage(diagnostics[0])).toContain( + 'Output "click" is unexpectedly declared in @Component as well.', + ); }); it('should fail if declared on a static member', () => { @@ -221,11 +220,10 @@ runInEachFileSystem(() => { ); const diagnostics = env.driveDiagnostics(); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: 'Output is incorrectly declared on a static class member.', - }), - ]); + expect(diagnostics.length).toBe(1); + expect(extractMessage(diagnostics[0])).toContain( + 'Output is incorrectly declared on a static class member.', + ); }); it('should fail if `.required` method is used (even though not supported via types)', () => { @@ -246,9 +244,8 @@ runInEachFileSystem(() => { ); const diagnostics = env.driveDiagnostics(); - expect(diagnostics).toEqual([ - jasmine.objectContaining({messageText: 'Output does not support ".required()".'}), - ]); + expect(diagnostics.length).toBe(1); + expect(extractMessage(diagnostics[0])).toContain('Output does not support ".required()".'); }); it('should report an error when using an ES private field', () => { @@ -269,13 +266,9 @@ runInEachFileSystem(() => { const diagnostics = env.driveDiagnostics(); expect(diagnostics.length).toBe(1); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: jasmine.objectContaining({ - messageText: `Cannot use "output" on a class member that is declared as ES private.`, - }), - }), - ]); + expect(extractMessage(diagnostics[0])).toContain( + `Cannot use "output" on a class member that is declared as ES private.`, + ); }); it('should report an error when using a `private` field', () => { @@ -296,13 +289,9 @@ runInEachFileSystem(() => { const diagnostics = env.driveDiagnostics(); expect(diagnostics.length).toBe(1); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: jasmine.objectContaining({ - messageText: `Cannot use "output" on a class member that is declared as private.`, - }), - }), - ]); + expect(extractMessage(diagnostics[0])).toContain( + `Cannot use "output" on a class member that is declared as private.`, + ); }); it('should allow an output using a `protected` field', () => { @@ -340,10 +329,8 @@ runInEachFileSystem(() => { env.driveMain(); const js = env.getContents('test.js'); expect(js).toContain('import * as i0 from "@angular/core";'); - expect(js).toContain(`i0.ɵsetClassMetadata(TestDir, [{ - type: Component, - args: [{ selector: 'test', template: '' }] - }], null, { click: [{ type: i0.Output, args: ["click"] }] });`); + expect(js).toContain('i0.ɵsetClassMetadata(TestDir'); + expect(js).toMatch(/click: \[{ type: i0\.Output, args: \[['"]click['"]] }]/); }); }); }); diff --git a/packages/compiler-cli/test/ngtsc/authoring_queries_spec.ts b/packages/compiler-cli/test/ngtsc/authoring_queries_spec.ts index 9d5f20de8ebc..0bd45ce6f11a 100644 --- a/packages/compiler-cli/test/ngtsc/authoring_queries_spec.ts +++ b/packages/compiler-cli/test/ngtsc/authoring_queries_spec.ts @@ -84,7 +84,7 @@ runInEachFileSystem(() => { env.driveMain(); const js = env.getContents('test.js'); - expect(js).toContain(`i0.ɵɵviewQuerySignal(ctx.el, _c0, 5, ElementRef);`); + expect(js).toMatch(/i0\.ɵɵviewQuerySignal\(ctx\.el, _c0, 5, \(*ElementRef\)*\);/); expect(js).toContain(`i0.ɵɵqueryAdvance();`); }); @@ -103,7 +103,7 @@ runInEachFileSystem(() => { env.driveMain(); const js = env.getContents('test.js'); - expect(js).toContain(`i0.ɵɵviewQuerySignal(ctx.el, _c0, 5, ElementRef);`); + expect(js).toMatch(/i0\.ɵɵviewQuerySignal\(ctx\.el, _c0, 5, \(*ElementRef\)*\);/); expect(js).toContain(`i0.ɵɵqueryAdvance();`); }); @@ -346,13 +346,9 @@ runInEachFileSystem(() => { ); const diagnostics = env.driveDiagnostics(); expect(diagnostics.length).toBe(1); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: jasmine.objectContaining({ - messageText: `Cannot use "viewChild" on a class member that is declared as ES private.`, - }), - }), - ]); + expect(ts.flattenDiagnosticMessageText(diagnostics[0].messageText, '\n')).toContain( + `Cannot use "viewChild" on a class member that is declared as ES private.`, + ); }); it('should allow query is declared on a `private` field', () => { @@ -407,10 +403,9 @@ runInEachFileSystem(() => { const js = env.getContents('test.js'); expect(js).toContain('import * as i0 from "@angular/core";'); - expect(js).toContain(`i0.ɵsetClassMetadata(TestDir, [{ - type: Component, - args: [{ selector: 'test', template: '' }] - }], null, { el: [{ type: i0.ViewChild, args: ['myLocator', { isSignal: true }] }] });`); + expect(js).toMatch( + /i0\.ɵsetClassMetadata\(TestDir,\s*\[\{\s*type:\s*Component,\s*args:\s*\[\{\s*selector:\s*['"]test['"],\s*template:\s*['"]['"]\s*\}\]\s*\}\],\s*null,\s*\{\s*el:\s*\[\{\s*type:\s*i0\.ViewChild,\s*args:\s*\[['"]myLocator['"],\s*\{\s*isSignal:\s*true\s*\}\]\s*\}\]\s*\}\);/, + ); }); it('should capture a viewChildren query in the setClasMetadata call', () => { @@ -429,10 +424,9 @@ runInEachFileSystem(() => { const js = env.getContents('test.js'); expect(js).toContain('import * as i0 from "@angular/core";'); - expect(js).toContain(`i0.ɵsetClassMetadata(TestDir, [{ - type: Component, - args: [{ selector: 'test', template: '' }] - }], null, { el: [{ type: i0.ViewChildren, args: ['myLocator', { isSignal: true }] }] });`); + expect(js).toMatch( + /i0\.ɵsetClassMetadata\(TestDir,\s*\[\{\s*type:\s*Component,\s*args:\s*\[\{\s*selector:\s*['"]test['"],\s*template:\s*['"]['"]\s*\}\]\s*\}\],\s*null,\s*\{\s*el:\s*\[\{\s*type:\s*i0\.ViewChildren,\s*args:\s*\[['"]myLocator['"],\s*\{\s*isSignal:\s*true\s*\}\]\s*\}\]\s*\}\);/, + ); }); it('should capture a contentChild query in the setClasMetadata call', () => { @@ -451,10 +445,9 @@ runInEachFileSystem(() => { const js = env.getContents('test.js'); expect(js).toContain('import * as i0 from "@angular/core";'); - expect(js).toContain(`i0.ɵsetClassMetadata(TestDir, [{ - type: Component, - args: [{ selector: 'test', template: '' }] - }], null, { el: [{ type: i0.ContentChild, args: ['myLocator', { isSignal: true }] }] });`); + expect(js).toMatch( + /i0\.ɵsetClassMetadata\(TestDir,\s*\[\{\s*type:\s*Component,\s*args:\s*\[\{\s*selector:\s*['"]test['"],\s*template:\s*['"]['"]\s*\}\]\s*\}\],\s*null,\s*\{\s*el:\s*\[\{\s*type:\s*i0\.ContentChild,\s*args:\s*\[['"]myLocator['"],\s*\{\s*isSignal:\s*true\s*\}\]\s*\}\]\s*\}\);/, + ); }); it('should capture a contentChildren query in the setClasMetadata call', () => { @@ -473,10 +466,9 @@ runInEachFileSystem(() => { const js = env.getContents('test.js'); expect(js).toContain('import * as i0 from "@angular/core";'); - expect(js).toContain(`i0.ɵsetClassMetadata(TestDir, [{ - type: Component, - args: [{ selector: 'test', template: '' }] - }], null, { el: [{ type: i0.ContentChildren, args: ['myLocator', { isSignal: true }] }] });`); + expect(js).toMatch( + /i0\.ɵsetClassMetadata\(TestDir,\s*\[\{\s*type:\s*Component,\s*args:\s*\[\{\s*selector:\s*['"]test['"],\s*template:\s*['"]['"]\s*\}\]\s*\}\],\s*null,\s*\{\s*el:\s*\[\{\s*type:\s*i0\.ContentChildren,\s*args:\s*\[['"]myLocator['"],\s*\{\s*isSignal:\s*true\s*\}\]\s*\}\]\s*\}\);/, + ); }); it('should capture a query with options in a setClassMetadata call', () => { @@ -495,12 +487,8 @@ runInEachFileSystem(() => { const js = env.getContents('test.js'); expect(js).toContain('import * as i0 from "@angular/core";'); - expect(js).toContain( - `i0.ɵsetClassMetadata(TestDir, [{ - type: Component, - args: [{ selector: 'test', template: '' }] - }], null, { el: [{ type: i0.ViewChild, ` + - `args: ['myLocator', Object.assign({ read: ElementRef }, { isSignal: true })] }] });`, + expect(js).toMatch( + /i0\.ɵsetClassMetadata\(TestDir,\s*\[\{\s*type:\s*Component,\s*args:\s*\[\{\s*selector:\s*['"]test['"],\s*template:\s*['"]['"]\s*\}\]\s*\}\],\s*null,\s*\{\s*el:\s*\[\{\s*type:\s*i0\.ViewChild,\s*args:\s*\[['"]myLocator['"],\s*Object\.assign\(\{\s*read:\s*ElementRef\s*\},\s*\{\s*isSignal:\s*true\s*\}\)\]\s*\}\]\s*\}\);/, ); }); @@ -523,11 +511,8 @@ runInEachFileSystem(() => { const js = env.getContents('test.js'); expect(js).toContain('import * as i0 from "@angular/core";'); - expect(js).toContain( - `i0.ɵsetClassMetadata(TestDir, [{ - type: Component, - args: [{ selector: 'test', template: '' }] - }], null, { el: [{ type: i0.ViewChild, args: [i0.forwardRef(() => Dep), { isSignal: true }] }] });`, + expect(js).toMatch( + /i0\.ɵsetClassMetadata\(TestDir,\s*\[\{\s*type:\s*Component,\s*args:\s*\[\{\s*selector:\s*['"]test['"],\s*template:\s*['"]['"]\s*\}\]\s*\}\],\s*null,\s*\{\s*el:\s*\[\{\s*type:\s*i0\.ViewChild,\s*args:\s*\[i0\.forwardRef\(\(\)\s*=>\s*Dep\),\s*\{\s*isSignal:\s*true\s*\}\]\s*\}\]\s*\}\);/, ); }); }); diff --git a/packages/compiler-cli/test/ngtsc/boundary_spec.ts b/packages/compiler-cli/test/ngtsc/boundary_spec.ts new file mode 100644 index 000000000000..3b31abd3def0 --- /dev/null +++ b/packages/compiler-cli/test/ngtsc/boundary_spec.ts @@ -0,0 +1,268 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import {runInEachFileSystem} from '../../src/ngtsc/file_system/testing'; +import {loadStandardTestFiles} from '../../src/ngtsc/testing'; +import {NgtscTestEnvironment} from './env'; + +const testFiles = loadStandardTestFiles({fakeCommon: true}); + +runInEachFileSystem(() => { + describe('ngtsc @boundary type checking', () => { + let env!: NgtscTestEnvironment; + + beforeEach(() => { + env = NgtscTestEnvironment.setup(testFiles); + env.tsconfig({fullTemplateTypeCheck: true, strictTemplates: true}); + }); + + it('should type check error alias as Error', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + + @Component({ + selector: 'test-cmp', + template: \` + @boundary { +
    Normal
    + } @error (let err) { +
    {{ err.message }}
    + } + \`, + }) + export class TestCmp {} + `, + ); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(0); + }); + + it('should error when accessing non-existent properties on error alias', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + + @Component({ + selector: 'test-cmp', + template: \` + @boundary { +
    Normal
    + } @error (let err) { +
    {{ err.nonExistentProperty }}
    + } + \`, + }) + export class TestCmp {} + `, + ); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(1); + expect(diags[0].messageText).toContain( + "Property 'nonExistentProperty' does not exist on type 'Error'", + ); + }); + + it('should narrowing type using condition when available', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + + class CustomError extends Error { + customField = 'test'; + } + + @Component({ + selector: 'test-cmp', + template: \` + @boundary { +
    Normal
    + } @error (let err; when err instanceof CustomError) { +
    {{ err.customField }}
    + } @error (let err) { +
    Fallback
    + } + \`, + }) + export class TestCmp { + CustomError = CustomError; // Expose to template if needed, though with control flow it uses standard TS scope in some regards + } + `, + ); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(0); + }); + + it('should report an error if there are multiple unconditional @error blocks', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + + @Component({ + selector: 'test-cmp', + template: \` + @boundary { +
    Normal
    + } @error { +
    Fallback 1
    + } @error { +
    Fallback 2
    + } + \`, + }) + export class TestCmp {} + `, + ); + + const diags = env.driveDiagnostics(); + // It will report two errors: one because the first block isn't the last, and one for the duplicate + expect(diags.length).toBe(2); + expect(diags[0].messageText).toContain( + 'Unconditional @error block must be the last @error block in the boundary chain', + ); + expect(diags[1].messageText).toContain( + '@boundary block can only have one unconditional @error block', + ); + }); + + it('should report an error if an unconditional @error block is not the last block', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + + class CustomError extends Error {} + + @Component({ + selector: 'test-cmp', + template: \` + @boundary { +
    Normal
    + } @error { +
    Fallback
    + } @error (let err; when err instanceof CustomError) { +
    Custom Error
    + } + \`, + }) + export class TestCmp { + CustomError = CustomError; + } + `, + ); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(1); + expect(diags[0].messageText).toContain( + 'Unconditional @error block must be the last @error block in the boundary chain', + ); + }); + + it('should error when accessing error alias outside of error block', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + + @Component({ + selector: 'test-cmp', + template: \` + @boundary { +
    Normal {{ err.message }}
    + } @error (let err) { +
    {{ err.message }}
    + } + \`, + }) + export class TestCmp {} + `, + ); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(1); + expect(diags[0].messageText).toContain("Property 'err' does not exist on type 'TestCmp'"); + }); + + it('should correctly handle nested boundary blocks and shadow error alias', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + + class CustomError extends Error { + customField = 'test'; + } + + @Component({ + selector: 'test-cmp', + template: \` + @boundary { + @boundary { +
    Inner
    + } @error (let err; when err instanceof CustomError) { +
    Inner Custom: {{ err.customField }}
    + } @error (let err) { +
    Inner Fallback: {{ err.message }}
    + } + } @error (let err) { +
    Outer Fallback: {{ err.message }}
    + } + \`, + }) + export class TestCmp { + CustomError = CustomError; + } + `, + ); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(0); + }); + + it('should allow multiple error blocks with different conditions', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + + class ErrorA extends Error { type = 'a' } + class ErrorB extends Error { type = 'b' } + + @Component({ + selector: 'test-cmp', + template: \` + @boundary { +
    Normal
    + } @error (let err; when err instanceof ErrorA) { +
    A: {{ err.type }}
    + } @error (let err; when err instanceof ErrorB) { +
    B: {{ err.type }}
    + } @error (let err) { +
    Generic: {{ err.message }}
    + } + \`, + }) + export class TestCmp { + ErrorA = ErrorA; + ErrorB = ErrorB; + } + `, + ); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(0); + }); + }); +}); diff --git a/packages/compiler-cli/test/ngtsc/component_indexing_spec.ts b/packages/compiler-cli/test/ngtsc/component_indexing_spec.ts index 84e115ca1237..1db7f2278230 100644 --- a/packages/compiler-cli/test/ngtsc/component_indexing_spec.ts +++ b/packages/compiler-cli/test/ngtsc/component_indexing_spec.ts @@ -12,7 +12,8 @@ import { IdentifierKind, IndexedComponent, TopLevelIdentifier, -} from '../../src/ngtsc/indexer'; +} from '@angular/compiler'; +import {DeclarationNode} from '../../src/ngtsc/reflection'; import {NgtscTestEnvironment} from './env'; @@ -50,7 +51,7 @@ runInEachFileSystem(() => { expect(decl.getText()).toContain('export class TestCmp {}'); expect(indexedComp).toEqual( - jasmine.objectContaining({ + jasmine.objectContaining>({ name: 'TestCmp', selector: 'test-cmp', fileUrl: testSourceFile, @@ -74,7 +75,7 @@ runInEachFileSystem(() => { const template = indexedComp.template; expect(template).toEqual({ - identifiers: new Set([ + identifiers: new Set>([ { name: 'foo', kind: IdentifierKind.Property, @@ -105,7 +106,7 @@ runInEachFileSystem(() => { const template = indexedComp.template; expect(template).toEqual({ - identifiers: new Set([ + identifiers: new Set>([ { name: 'foo', kind: IdentifierKind.Property, @@ -140,7 +141,7 @@ runInEachFileSystem(() => { const template = indexedComp.template; expect(template).toEqual({ - identifiers: new Set([ + identifiers: new Set>([ { name: 'foo', kind: IdentifierKind.Property, diff --git a/packages/compiler-cli/test/ngtsc/debug_transform_spec.ts b/packages/compiler-cli/test/ngtsc/debug_transform_spec.ts index 15746de9e801..674b62a09f34 100644 --- a/packages/compiler-cli/test/ngtsc/debug_transform_spec.ts +++ b/packages/compiler-cli/test/ngtsc/debug_transform_spec.ts @@ -34,6 +34,20 @@ function cleanNewLines(contents: string) { return contents.replace(/\s*\n\s*/g, ' '); } +/** + * Creates a regex that matches the expected shape of the `debugName` while + * tolerating differences in output between ngtsc and ngp. + */ +function looseMatch(expected: string): RegExp { + const pattern = expected + .replace(/[.*+?^${}()|[\]\\/]/g, '\\$&') + .replace(/\\\/\\\* @ts-ignore \\\*\\\/ /g, '(?:\\/\\* @ts-ignore \\*\\/ )?') + .replace(/\\\(\s*/g, '\\(\\s*') + .replace(/\s*\\\)/g, '\\s*\\)') + .replace(/,?\s*\\\}/g, ',?\\s*\\}'); + return new RegExp(pattern); +} + runInEachFileSystem(() => { describe('Debug Info Typescript tranformation', () => { let env!: NgtscTestEnvironment; @@ -69,8 +83,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `signal('Hello World', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testSignal" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + /signal\(['"]Hello World['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testSignal" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); }); @@ -88,7 +102,7 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('signal( "Hello World" )'); + expect(cleanNewLines(builtContent)).toMatch(looseMatch('signal( "Hello World" )')); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -103,8 +117,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `signal( "Hello World", { debugName: "testSignal" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`signal( "Hello World", { debugName: "testSignal" } )`), ); }); @@ -119,8 +133,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `signal('Hello World', { ...(ngDevMode ? { debugName: "testSignal" } : /* istanbul ignore next */ {}), equal: () => true })`, + expect(cleanNewLines(jsContents)).toMatch( + /signal\(['"]Hello World['"], \{ \.\.\.\(ngDevMode \? \{ debugName: "testSignal" \} : \/\* istanbul ignore next \*\/ \{\}\), equal: \(\) => true \}\)/, ); }); @@ -161,8 +175,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `signal('Hello World', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testSignal" }] : /* istanbul ignore next */ [])`, + expect(cleanNewLines(jsContents)).toMatch( + /signal\(['"]Hello World['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testSignal" \}\] : \/\* istanbul ignore next \*\/ \[\]\)/, ); }); @@ -185,7 +199,7 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('signal( "Hello World" )'); + expect(cleanNewLines(builtContent)).toMatch(looseMatch('signal( "Hello World" )')); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -206,8 +220,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `signal( "Hello World", { debugName: "testSignal" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`signal( "Hello World", { debugName: "testSignal" } )`), ); }); @@ -228,8 +242,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `signal('Hello World', { ...(ngDevMode ? { debugName: "testSignal" } : /* istanbul ignore next */ {}), equal: () => true })`, + expect(cleanNewLines(jsContents)).toMatch( + /signal\(['"]Hello World['"], \{ \.\.\.\(ngDevMode \? \{ debugName: "testSignal" \} : \/\* istanbul ignore next \*\/ \{\}\), equal: \(\) => true \}\)/, ); }); @@ -280,8 +294,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `signal('Hello World', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testSignal" }] : /* istanbul ignore next */ [])`, + expect(cleanNewLines(jsContents)).toMatch( + /signal\(['"]Hello World['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testSignal" \}\] : \/\* istanbul ignore next \*\/ \[\]\)/, ); }); @@ -307,7 +321,7 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('signal( "Hello World" )'); + expect(cleanNewLines(builtContent)).toMatch(looseMatch('signal( "Hello World" )')); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -331,8 +345,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `signal( "Hello World", { debugName: "testSignal" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`signal( "Hello World", { debugName: "testSignal" } )`), ); }); @@ -356,8 +370,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `signal('Hello World', { ...(ngDevMode ? { debugName: "testSignal" } : /* istanbul ignore next */ {}), equal: () => true })`, + expect(cleanNewLines(jsContents)).toMatch( + /signal\(['"]Hello World['"], \{ \.\.\.\(ngDevMode \? \{ debugName: "testSignal" \} : \/\* istanbul ignore next \*\/ \{\}\), equal: \(\) => true \}\)/, ); }); @@ -416,8 +430,10 @@ runInEachFileSystem(() => { ); env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `computed(() => testSignal(), /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testComputed" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + looseMatch( + `computed(() => testSignal(), /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testComputed" }] : /* istanbul ignore next */ []))`, + ), ); }); @@ -435,7 +451,7 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('computed( () => testSignal() )'); + expect(cleanNewLines(builtContent)).toMatch(looseMatch('computed( () => testSignal() )')); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -450,8 +466,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `computed( () => testSignal(), { debugName: "testComputed" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`computed( () => testSignal(), { debugName: "testComputed" } )`), ); }); @@ -534,7 +550,9 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('computed( () => this.testSignal() )'); + expect(cleanNewLines(builtContent)).toMatch( + looseMatch('computed( () => this.testSignal() )'), + ); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -554,8 +572,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `computed( () => this.testSignal(), { debugName: "testComputed" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`computed( () => this.testSignal(), { debugName: "testComputed" } )`), ); }); @@ -658,7 +676,9 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('computed( () => this.testSignal() )'); + expect(cleanNewLines(builtContent)).toMatch( + looseMatch('computed( () => this.testSignal() )'), + ); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -684,8 +704,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `computed( () => this.testSignal(), { debugName: "testComputed" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`computed( () => this.testSignal(), { debugName: "testComputed" } )`), ); }); @@ -811,14 +831,37 @@ runInEachFileSystem(() => { ); env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `model('Hello World', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testModel" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + /model\(['"]Hello World['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testModel" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); - expect(cleanNewLines(jsContents)).toContain( - `model(/* @ts-ignore */ ...(ngDevMode ? [undefined, { debugName: "testModel2" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + /model\((?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[undefined, \{ debugName: "testModel2" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); }); + it('should not change which overload a zero-argument model call resolves to', () => { + env.write( + 'test.ts', + ` + import {model, ModelSignal, Component} from '@angular/core'; + + @Component({ + template: '' + }) export class MyComponent { + explicit: ModelSignal = model(); + inferred = model(); + untyped = model(); + } + `, + ); + env.driveMain(); + + const dtsContents = env.getContents('test.d.ts'); + expect(dtsContents).toContain('explicit: ModelSignal;'); + expect(dtsContents).toContain('inferred: ModelSignal;'); + expect(dtsContents).toContain('untyped: ModelSignal;'); + }); + it('should tree-shake away debug info if in prod mode', async () => { env.write( 'test.ts', @@ -836,7 +879,7 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('model( "Hello World" )'); + expect(cleanNewLines(builtContent)).toMatch(looseMatch('model( "Hello World" )')); }); describe('.required', () => { @@ -856,8 +899,10 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `model.required(/* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testModel" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + looseMatch( + `model.required(/* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testModel" }] : /* istanbul ignore next */ []))`, + ), ); }); @@ -877,8 +922,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `model.required({ ...(ngDevMode ? { debugName: "testModel" } : /* istanbul ignore next */ {}), alias: 'testModelAlias' })`, + expect(cleanNewLines(jsContents)).toMatch( + /model\.required\(\{ \.\.\.\(ngDevMode \? \{ debugName: "testModel" \} : \/\* istanbul ignore next \*\/ \{\}\), alias: ['"]testModelAlias['"] \}\)/, ); }); @@ -918,8 +963,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `model.required( { debugName: "testModel" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`model.required( { debugName: "testModel" } )`), ); }); @@ -1003,11 +1048,36 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `input(/* @ts-ignore */ ...(ngDevMode ? [undefined, { debugName: "testInput" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + looseMatch( + `input(/* @ts-ignore */ ...(ngDevMode ? [undefined, { debugName: "testInput" }] : /* istanbul ignore next */ []))`, + ), ); }); + it('should not change which overload a zero-argument input call resolves to', () => { + env.write( + 'test.ts', + ` + import {input, InputSignal, Component} from '@angular/core'; + + @Component({ + template: '' + }) export class MyComponent { + explicit: InputSignal = input(); + inferred = input(); + untyped = input(); + } + `, + ); + env.driveMain(); + + const dtsContents = env.getContents('test.d.ts'); + expect(dtsContents).toContain('explicit: InputSignal;'); + expect(dtsContents).toContain('inferred: InputSignal;'); + expect(dtsContents).toContain('untyped: InputSignal;'); + }); + it('should tree-shake away debug info if in prod mode', async () => { env.write( 'test.ts', @@ -1046,8 +1116,10 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `input.required(/* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testInput" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + looseMatch( + `input.required(/* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testInput" }] : /* istanbul ignore next */ []))`, + ), ); }); @@ -1067,8 +1139,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `input.required({ ...(ngDevMode ? { debugName: "testInput" } : /* istanbul ignore next */ {}), alias: 'testInputAlias' })`, + expect(cleanNewLines(jsContents)).toMatch( + /input\.required\(\{ \.\.\.\(ngDevMode \? \{ debugName: "testInput" \} : \/\* istanbul ignore next \*\/ \{\}\), alias: ['"]testInputAlias['"] \}\)/, ); }); @@ -1110,8 +1182,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `input.required( { debugName: "testInput" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`input.required( { debugName: "testInput" } )`), ); }); @@ -1206,11 +1278,11 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `viewChild('foo', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testViewChild" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + /viewChild\(['"]foo['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testViewChild" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); - expect(cleanNewLines(jsContents)).toContain( - `viewChild(ChildComponent, /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testViewChildComponent" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + /viewChild\(ChildComponent, (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testViewChildComponent" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); }); @@ -1240,8 +1312,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain(`viewChild( "foo" )`); - expect(cleanNewLines(builtContent)).toContain(`viewChild( ChildComponent )`); + expect(cleanNewLines(builtContent)).toMatch(looseMatch(`viewChild( "foo" )`)); + expect(cleanNewLines(builtContent)).toMatch(looseMatch(`viewChild( ChildComponent )`)); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -1269,11 +1341,11 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `viewChild( "foo", { debugName: "testViewChild" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`viewChild( "foo", { debugName: "testViewChild" } )`), ); - expect(cleanNewLines(builtContent)).toContain( - `viewChild( ChildComponent, { debugName: "testViewChildComponent" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`viewChild( ChildComponent, { debugName: "testViewChildComponent" } )`), ); }); @@ -1338,8 +1410,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `viewChild.required('foo', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testViewChild" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + /viewChild\.required\(['"]foo['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testViewChild" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); }); @@ -1359,8 +1431,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `viewChild.required('foo', { ...(ngDevMode ? { debugName: "testViewChild" } : /* istanbul ignore next */ {}), read: ElementRef })`, + expect(cleanNewLines(jsContents)).toMatch( + /viewChild\.required\(['"]foo['"], \{ \.\.\.\(ngDevMode \? \{ debugName: "testViewChild" \} : \/\* istanbul ignore next \*\/ \{\}\), read: ElementRef \}\)/, ); }); @@ -1383,7 +1455,7 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain(`viewChild( "foo" )`); + expect(cleanNewLines(builtContent)).toMatch(looseMatch(`viewChild( "foo" )`)); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -1404,8 +1476,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `viewChild.required( "foo", { debugName: "testViewChild" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`viewChild.required( "foo", { debugName: "testViewChild" } )`), ); }); @@ -1490,8 +1562,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `viewChildren('foo', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testViewChildren" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + /viewChildren\(['"]foo['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testViewChildren" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); }); @@ -1513,7 +1585,7 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('viewChildren( "foo" )'); + expect(cleanNewLines(builtContent)).toMatch(looseMatch('viewChildren( "foo" )')); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -1533,8 +1605,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `viewChildren( "foo", { debugName: "testViewChildren" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`viewChildren( "foo", { debugName: "testViewChildren" } )`), ); }); @@ -1618,8 +1690,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `contentChild('foo', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testContentChild" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + /contentChild\(['"]foo['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testContentChild" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); }); @@ -1641,7 +1713,7 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('contentChild( "foo" )'); + expect(cleanNewLines(builtContent)).toMatch(looseMatch('contentChild( "foo" )')); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -1661,8 +1733,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `contentChild( "foo", { debugName: "testContentChild" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`contentChild( "foo", { debugName: "testContentChild" } )`), ); }); @@ -1727,8 +1799,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `contentChild.required('foo', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testContentChild" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + /contentChild\.required\(['"]foo['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testContentChild" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); }); @@ -1748,8 +1820,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `contentChild.required('foo', { ...(ngDevMode ? { debugName: "testContentChild" } : /* istanbul ignore next */ {}), read: ElementRef })`, + expect(cleanNewLines(jsContents)).toMatch( + /contentChild\.required\(['"]foo['"], \{ \.\.\.\(ngDevMode \? \{ debugName: "testContentChild" \} : \/\* istanbul ignore next \*\/ \{\}\), read: ElementRef \}\)/, ); }); @@ -1772,7 +1844,7 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain(`contentChild( "foo" )`); + expect(cleanNewLines(builtContent)).toMatch(looseMatch(`contentChild( "foo" )`)); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -1793,8 +1865,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `contentChild.required( "foo", { debugName: "testContentChild" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`contentChild.required( "foo", { debugName: "testContentChild" } )`), ); }); @@ -1881,8 +1953,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `contentChildren('foo', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testContentChildren" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + /contentChildren\(['"]foo['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testContentChildren" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); }); @@ -1904,7 +1976,7 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('contentChildren( "foo" )'); + expect(cleanNewLines(builtContent)).toMatch(looseMatch('contentChildren( "foo" )')); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -1924,8 +1996,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `contentChildren( "foo", { debugName: "testContentChildren" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`contentChildren( "foo", { debugName: "testContentChildren" } )`), ); }); @@ -2013,8 +2085,10 @@ runInEachFileSystem(() => { ); env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `effect(() => this.testSignal(), /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testEffect" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + looseMatch( + `effect(() => this.testSignal(), /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testEffect" }] : /* istanbul ignore next */ []))`, + ), ); }); @@ -2035,7 +2109,9 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('effect( () => this.testSignal() )'); + expect(cleanNewLines(builtContent)).toMatch( + looseMatch('effect( () => this.testSignal() )'), + ); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -2056,8 +2132,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `effect( () => this.testSignal(), { debugName: "testEffect" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`effect( () => this.testSignal(), { debugName: "testEffect" } )`), ); }); @@ -2109,6 +2185,210 @@ runInEachFileSystem(() => { }); }); + describe('afterRenderEffect', () => { + it('should not insert debug info into afterRenderEffect function if not imported from angular core', () => { + env.write( + 'test.ts', + ` + declare function afterRenderEffect(fn: () => any): any; + import {Component} from '@angular/core'; + + @Component({ + template: '' + }) class MyComponent { + testEffect = afterRenderEffect(() => {}); + } + `, + ); + env.driveMain(); + const jsContents = env.getContents('test.js'); + expect(jsContents).not.toContain('debugName'); + }); + + it('should insert debug info into afterRenderEffect function if imported from angular core', () => { + env.write( + 'test.ts', + ` + import {signal, afterRenderEffect, Component} from '@angular/core'; + + @Component({ + template: '' + }) class MyComponent { + testSignal = signal(123); + testEffect = afterRenderEffect(() => this.testSignal()); + } + `, + ); + env.driveMain(); + const jsContents = env.getContents('test.js'); + expect(cleanNewLines(jsContents)).toMatch( + looseMatch( + `afterRenderEffect(() => this.testSignal(), /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testEffect" }] : /* istanbul ignore next */ []))`, + ), + ); + }); + + it('should insert debug info into afterRenderEffect function with a phase spec', () => { + env.write( + 'test.ts', + ` + import {signal, afterRenderEffect, Component} from '@angular/core'; + + @Component({ + template: '' + }) class MyComponent { + testSignal = signal(123); + testEffect = afterRenderEffect({read: () => this.testSignal()}); + } + `, + ); + env.driveMain(); + const jsContents = env.getContents('test.js'); + expect(cleanNewLines(jsContents)).toMatch( + looseMatch( + `afterRenderEffect({ read: () => this.testSignal() }, /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testEffect" }] : /* istanbul ignore next */ []))`, + ), + ); + }); + + it('should insert debug info into afterRenderEffect function in a property assignment', () => { + env.write( + 'test.ts', + ` + import {signal, afterRenderEffect, AfterRenderRef, Component} from '@angular/core'; + + @Component({ + template: '' + }) class MyComponent { + testSignal = signal(123); + testEffect: AfterRenderRef; + constructor() { + this.testEffect = afterRenderEffect(() => this.testSignal()); + } + } + `, + ); + env.driveMain(); + const jsContents = env.getContents('test.js'); + expect(cleanNewLines(jsContents)).toMatch( + looseMatch( + `afterRenderEffect(() => this.testSignal(), /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testEffect" }] : /* istanbul ignore next */ []))`, + ), + ); + }); + + it('should not override an explicit debugName', () => { + env.write( + 'test.ts', + ` + import {afterRenderEffect, Component} from '@angular/core'; + + @Component({ + template: '' + }) class MyComponent { + testEffect = afterRenderEffect(() => {}, {debugName: 'customName'}); + } + `, + ); + env.driveMain(); + const jsContents = env.getContents('test.js'); + expect(jsContents).toMatch(/debugName: ['"]customName['"]/); + expect(jsContents).not.toContain('debugName: "testEffect"'); + }); + + it('should tree-shake away debug info if in prod mode', async () => { + env.write( + 'test.ts', + ` + import {signal, afterRenderEffect, Component} from '@angular/core'; + @Component({ + template: '' + }) class MyComponent { + testSignal = signal(123); + testEffect = afterRenderEffect(() => this.testSignal()); + } + `, + ); + env.driveMain(); + const jsContents = env.getContents('test.js'); + const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; + expect(builtContent).not.toContain('debugName'); + expect(cleanNewLines(builtContent)).toMatch( + looseMatch('afterRenderEffect( () => this.testSignal() )'), + ); + }); + + it('should not tree-shake away debug info if in dev mode', async () => { + env.write( + 'test.ts', + ` + import {signal, afterRenderEffect, Component} from '@angular/core'; + + @Component({ + template: '' + }) class MyComponent { + testSignal = signal(123); + testEffect = afterRenderEffect(() => this.testSignal()); + } + `, + ); + env.driveMain(); + + const jsContents = env.getContents('test.js'); + const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`afterRenderEffect( () => this.testSignal(), { debugName: "testEffect" } )`), + ); + }); + + it('should tree-shake away debug info if in prod mode with existing options', async () => { + env.write( + 'test.ts', + ` + import {signal, afterRenderEffect, Component} from '@angular/core'; + + @Component({ + template: '' + }) class MyComponent { + testSignal = signal(123); + testEffect = afterRenderEffect(() => this.testSignal(), { manualCleanup: true }); + } + `, + ); + env.driveMain(); + + const jsContents = env.getContents('test.js'); + const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; + expect(builtContent).not.toContain('debugName'); + expect(cleanNewLines(builtContent)).toContain( + 'afterRenderEffect(() => this.testSignal(), { manualCleanup: !0 })', + ); + }); + + it('should not tree-shake away debug info if in dev mode with existing options', async () => { + env.write( + 'test.ts', + ` + import {signal, afterRenderEffect, Component} from '@angular/core'; + + @Component({ + template: '' + }) class MyComponent { + testSignal = signal(123); + testEffect = afterRenderEffect(() => this.testSignal(), { manualCleanup: true }); + } + `, + ); + env.driveMain(); + + const jsContents = env.getContents('test.js'); + const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; + expect(cleanNewLines(builtContent)).toContain( + `afterRenderEffect(() => this.testSignal(), { debugName: "testEffect", manualCleanup: !0 })`, + ); + }); + }); + describe('linkedSignal', () => { it('should not insert debug info into linkedSignal function if not imported from angular core', () => { env.write( @@ -2134,8 +2414,10 @@ runInEachFileSystem(() => { ); env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `linkedSignal(() => testSignal(), /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testLinkedSignal" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + looseMatch( + `linkedSignal(() => testSignal(), /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testLinkedSignal" }] : /* istanbul ignore next */ []))`, + ), ); }); @@ -2153,7 +2435,9 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('linkedSignal( () => testSignal() )'); + expect(cleanNewLines(builtContent)).toMatch( + looseMatch('linkedSignal( () => testSignal() )'), + ); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -2168,8 +2452,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `linkedSignal( () => testSignal(), { debugName: "testLinkedSignal" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch(`linkedSignal( () => testSignal(), { debugName: "testLinkedSignal" } )`), ); }); @@ -2247,11 +2531,13 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = cleanNewLines(env.getContents('test.js')); - expect(jsContents).toContain( - 'testLinkedSignal = linkedSignal({ ...(ngDevMode ? { debugName: "testLinkedSignal" } : /* istanbul ignore next */ {}), ' + - 'source: testSignal, ' + - 'computation: (src, prev) => src ' + - '})', + expect(jsContents).toMatch( + looseMatch( + 'testLinkedSignal = linkedSignal({ ...(ngDevMode ? { debugName: "testLinkedSignal" } : /* istanbul ignore next */ {}), ' + + 'source: testSignal, ' + + 'computation: (src, prev) => src ' + + '})', + ), ); }); @@ -2329,7 +2615,9 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('linkedSignal( () => this.testSignal() )'); + expect(cleanNewLines(builtContent)).toMatch( + looseMatch('linkedSignal( () => this.testSignal() )'), + ); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -2349,8 +2637,10 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `linkedSignal( () => this.testSignal(), { debugName: "testLinkedSignal" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch( + `linkedSignal( () => this.testSignal(), { debugName: "testLinkedSignal" } )`, + ), ); }); @@ -2446,11 +2736,13 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = cleanNewLines(env.getContents('test.js')); - expect(jsContents).toContain( - 'linkedSignal({ ...(ngDevMode ? { debugName: "testLinkedSignal" } : /* istanbul ignore next */ {}), ' + - 'source: this.testSignal, ' + - 'computation: (src, prev) => src ' + - '})', + expect(jsContents).toMatch( + looseMatch( + 'linkedSignal({ ...(ngDevMode ? { debugName: "testLinkedSignal" } : /* istanbul ignore next */ {}), ' + + 'source: this.testSignal, ' + + 'computation: (src, prev) => src ' + + '})', + ), ); }); @@ -2541,7 +2833,9 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; expect(builtContent).not.toContain('debugName'); - expect(cleanNewLines(builtContent)).toContain('linkedSignal( () => this.testSignal() )'); + expect(cleanNewLines(builtContent)).toMatch( + looseMatch('linkedSignal( () => this.testSignal() )'), + ); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -2566,8 +2860,10 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; - expect(cleanNewLines(builtContent)).toContain( - `linkedSignal( () => this.testSignal(), { debugName: "testLinkedSignal" } )`, + expect(cleanNewLines(builtContent)).toMatch( + looseMatch( + `linkedSignal( () => this.testSignal(), { debugName: "testLinkedSignal" } )`, + ), ); }); @@ -2683,11 +2979,13 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = cleanNewLines(env.getContents('test.js')); - expect(jsContents).toContain( - 'linkedSignal({ ...(ngDevMode ? { debugName: "testLinkedSignal" } : /* istanbul ignore next */ {}), ' + - 'source: this.testSignal, ' + - 'computation: (src, prev) => src ' + - '})', + expect(jsContents).toMatch( + looseMatch( + 'linkedSignal({ ...(ngDevMode ? { debugName: "testLinkedSignal" } : /* istanbul ignore next */ {}), ' + + 'source: this.testSignal, ' + + 'computation: (src, prev) => src ' + + '})', + ), ); }); @@ -2797,12 +3095,8 @@ runInEachFileSystem(() => { ); env.driveMain(); const jsContents = cleanNewLines(env.getContents('test.js')); - expect(jsContents).toContain( - 'resource({ ' + - '...(ngDevMode ? { debugName: "testResource" } : /* istanbul ignore next */ {}), ' + - `defaultValue: 'foo', ` + - `loader: async () => 'bar' ` + - '})', + expect(jsContents).toMatch( + /resource\(\{ \.\.\.\(ngDevMode \? \{ debugName: "testResource" \} : \/\* istanbul ignore next \*\/ \{\}\), defaultValue: ['"]foo['"], loader: async \(\) => ['"]bar['"],? ?\}\)/, ); }); @@ -2875,12 +3169,8 @@ runInEachFileSystem(() => { ); env.driveMain(); const jsContents = cleanNewLines(env.getContents('test.js')); - expect(jsContents).toContain( - 'resource({ ' + - '...(ngDevMode ? { debugName: "testResource" } : /* istanbul ignore next */ {}), ' + - `defaultValue: 'foo', ` + - `loader: async () => 'bar' ` + - '})', + expect(jsContents).toMatch( + /resource\(\{ \.\.\.\(ngDevMode \? \{ debugName: "testResource" \} : \/\* istanbul ignore next \*\/ \{\}\), defaultValue: ['"]foo['"], loader: async \(\) => ['"]bar['"],? ?\}\)/, ); }); @@ -2966,12 +3256,8 @@ runInEachFileSystem(() => { ); env.driveMain(); const jsContents = cleanNewLines(env.getContents('test.js')); - expect(jsContents).toContain( - 'resource({ ' + - '...(ngDevMode ? { debugName: "testResource" } : /* istanbul ignore next */ {}), ' + - `defaultValue: 'foo', ` + - `loader: async () => 'bar' ` + - '})', + expect(jsContents).toMatch( + /resource\(\{ \.\.\.\(ngDevMode \? \{ debugName: "testResource" \} : \/\* istanbul ignore next \*\/ \{\}\), defaultValue: ['"]foo['"], loader: async \(\) => ['"]bar['"],? ?\}\)/, ); }); @@ -3066,8 +3352,8 @@ runInEachFileSystem(() => { ); env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - `httpResource(() => '/api', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testHttpResource" }] : /* istanbul ignore next */ []))`, + expect(cleanNewLines(jsContents)).toMatch( + /httpResource\(\(\) => ['"]\/api['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testHttpResource" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); }); @@ -3086,7 +3372,9 @@ runInEachFileSystem(() => { const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; const contentWoNewLines = cleanNewLines(builtContent); expect(contentWoNewLines).not.toContain('debugName'); - expect(contentWoNewLines).toContain(`testHttpResource = httpResource( () => "/api" )`); + expect(contentWoNewLines).toMatch( + looseMatch(`testHttpResource = httpResource( () => "/api" )`), + ); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -3102,8 +3390,10 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; const contentWoNewLines = cleanNewLines(builtContent); - expect(contentWoNewLines).toContain( - 'testHttpResource = httpResource( () => "/api", { debugName: "testHttpResource" } )', + expect(contentWoNewLines).toMatch( + looseMatch( + 'testHttpResource = httpResource( () => "/api", { debugName: "testHttpResource" } )', + ), ); }); }); @@ -3124,8 +3414,8 @@ runInEachFileSystem(() => { ); env.driveMain(); const jsContents = cleanNewLines(env.getContents('test.js')); - expect(jsContents).toContain( - `httpResource(() => '/api', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testHttpResource" }] : /* istanbul ignore next */ []))`, + expect(jsContents).toMatch( + /httpResource\(\(\) => ['"]\/api['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testHttpResource" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); }); @@ -3148,7 +3438,9 @@ runInEachFileSystem(() => { const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; const contentWoNewLines = cleanNewLines(builtContent); expect(contentWoNewLines).not.toContain('debugName'); - expect(contentWoNewLines).toContain(`testHttpResource = httpResource( () => "/api" )`); + expect(contentWoNewLines).toMatch( + looseMatch(`testHttpResource = httpResource( () => "/api" )`), + ); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -3169,8 +3461,10 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; const contentWoNewLines = cleanNewLines(builtContent); - expect(contentWoNewLines).toContain( - 'testHttpResource = httpResource( () => "/api", { debugName: "testHttpResource" } )', + expect(contentWoNewLines).toMatch( + looseMatch( + 'testHttpResource = httpResource( () => "/api", { debugName: "testHttpResource" } )', + ), ); }); }); @@ -3194,8 +3488,8 @@ runInEachFileSystem(() => { ); env.driveMain(); const jsContents = cleanNewLines(env.getContents('test.js')); - expect(jsContents).toContain( - `httpResource(() => '/api', /* @ts-ignore */ ...(ngDevMode ? [{ debugName: "testHttpResource" }] : /* istanbul ignore next */ []))`, + expect(jsContents).toMatch( + /httpResource\(\(\) => ['"]\/api['"], (?:\/\* @ts-ignore \*\/ )?\.\.\.\(ngDevMode \? \[\{ debugName: "testHttpResource" \}\] : \/\* istanbul ignore next \*\/ \[\]\)\)/, ); }); @@ -3221,7 +3515,9 @@ runInEachFileSystem(() => { const builtContent = (await esbuild.transform(jsContents, minifiedProdBuildOptions)).code; const contentWoNewLines = cleanNewLines(builtContent); expect(contentWoNewLines).not.toContain('debugName'); - expect(contentWoNewLines).toContain(`testHttpResource = httpResource( () => "/api" )`); + expect(contentWoNewLines).toMatch( + looseMatch(`testHttpResource = httpResource( () => "/api" )`), + ); }); it('should not tree-shake away debug info if in dev mode', async () => { @@ -3245,8 +3541,10 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const builtContent = (await esbuild.transform(jsContents, minifiedDevBuildOptions)).code; const contentWoNewLines = cleanNewLines(builtContent); - expect(contentWoNewLines).toContain( - 'testHttpResource = httpResource( () => "/api", { debugName: "testHttpResource" } )', + expect(contentWoNewLines).toMatch( + looseMatch( + 'testHttpResource = httpResource( () => "/api", { debugName: "testHttpResource" } )', + ), ); }); }); diff --git a/packages/compiler-cli/test/ngtsc/declaration_only_emission_spec.ts b/packages/compiler-cli/test/ngtsc/declaration_only_emission_spec.ts index 14d5c21c3109..5df944291f51 100644 --- a/packages/compiler-cli/test/ngtsc/declaration_only_emission_spec.ts +++ b/packages/compiler-cli/test/ngtsc/declaration_only_emission_spec.ts @@ -109,7 +109,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵmod: i0.ɵɵNgModuleDeclaration;', @@ -131,7 +131,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵmod: i0.ɵɵNgModuleDeclaration], never>;', @@ -153,7 +153,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵmod: i0.ɵɵNgModuleDeclaration], never>;', @@ -176,7 +176,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵmod: i0.ɵɵNgModuleDeclaration], never>;', @@ -198,7 +198,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵmod: i0.ɵɵNgModuleDeclaration]>;', @@ -225,7 +225,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵmod: i0.ɵɵNgModuleDeclaration;', @@ -253,7 +253,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵmod: i0.ɵɵNgModuleDeclaration], never>;', @@ -300,7 +300,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵmod: i0.ɵɵNgModuleDeclaration;', @@ -322,7 +322,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵmod: i0.ɵɵNgModuleDeclaration;', @@ -364,7 +364,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵcmp: i0.ɵɵComponentDeclaration;', @@ -390,7 +390,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵcmp: i0.ɵɵComponentDeclaration;', @@ -413,7 +413,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵdir: i0.ɵɵDirectiveDeclaration;', @@ -438,7 +438,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵdir: i0.ɵɵDirectiveDeclaration;', @@ -462,10 +462,10 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); - expect(dtsContent).toContain( - 'static ɵcmp: i0.ɵɵComponentDeclaration;', + expect(dtsContent).toMatch( + /static ɵcmp: i0\.ɵɵComponentDeclaration;/, ); }); @@ -490,7 +490,7 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(dtsContent).toContain( 'static ɵcmp: i0.ɵɵComponentDeclaration;', @@ -516,10 +516,10 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); - expect(dtsContent).toContain( - 'static ɵcmp: i0.ɵɵComponentDeclaration;', + expect(dtsContent).toMatch( + /static ɵcmp: i0\.ɵɵComponentDeclaration;/, ); }); @@ -544,10 +544,10 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); - expect(dtsContent).toContain( - 'static ɵcmp: i0.ɵɵComponentDeclaration;', + expect(dtsContent).toMatch( + /static ɵcmp: i0\.ɵɵComponentDeclaration;/, ); }); @@ -569,10 +569,10 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); - expect(dtsContent).toContain( - 'static ɵdir: i0.ɵɵDirectiveDeclaration;', + expect(dtsContent).toMatch( + /static ɵdir: i0\.ɵɵDirectiveDeclaration;/, ); }); @@ -596,10 +596,10 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); - expect(dtsContent).toContain( - 'static ɵdir: i0.ɵɵDirectiveDeclaration;', + expect(dtsContent).toMatch( + /static ɵdir: i0\.ɵɵDirectiveDeclaration;/, ); }); @@ -624,10 +624,10 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); - expect(dtsContent).toContain( - 'static ɵcmp: i0.ɵɵComponentDeclaration;', + expect(dtsContent).toMatch( + /static ɵcmp: i0\.ɵɵComponentDeclaration;/, ); }); @@ -654,10 +654,10 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); - expect(dtsContent).toContain( - 'static ɵcmp: i0.ɵɵComponentDeclaration;', + expect(dtsContent).toMatch( + /static ɵcmp: i0\.ɵɵComponentDeclaration;/, ); }); @@ -681,10 +681,10 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); - expect(dtsContent).toContain( - 'static ɵdir: i0.ɵɵDirectiveDeclaration;', + expect(dtsContent).toMatch( + /static ɵdir: i0\.ɵɵDirectiveDeclaration;/, ); }); @@ -710,14 +710,14 @@ runInEachFileSystem(() => { ); env.driveMain(); - const dtsContent = env.getContents('test.d.ts'); + const dtsContent = env.getContents('test.d.ts').replace(/\s+/g, ' '); - expect(dtsContent).toContain( - 'static ɵdir: i0.ɵɵDirectiveDeclaration;', + expect(dtsContent).toMatch( + /static ɵdir: i0\.ɵɵDirectiveDeclaration;/, ); }); - it('should show correct error message when using an expression resovling to an external reference in a simple host directive on a component', () => { + it('should show correct error message when using an expression resolving to an external reference in a simple host directive on a component', () => { env.write( 'test.ts', ` @@ -744,7 +744,7 @@ runInEachFileSystem(() => { ); }); - it('should show correct error message when using an expression resovling to an external reference in host directive object on a component', () => { + it('should show correct error message when using an expression resolving to an external reference in host directive object on a component', () => { env.write( 'test.ts', ` @@ -773,7 +773,7 @@ runInEachFileSystem(() => { ); }); - it('should show correct error message when using an expression resovling to an external reference in a simple host directive on a directive', () => { + it('should show correct error message when using an expression resolving to an external reference in a simple host directive on a directive', () => { env.write( 'test.ts', ` @@ -799,7 +799,7 @@ runInEachFileSystem(() => { ); }); - it('should show correct error message when using an expression resovling to an external reference in host directive object on a directive', () => { + it('should show correct error message when using an expression resolving to an external reference in host directive object on a directive', () => { env.write( 'test.ts', ` @@ -867,6 +867,34 @@ runInEachFileSystem(() => { expect(dtsContent).toContain('static ngAcceptInputType_decoratedInput: string;'); }); + it('should emit type declarations when using an inputs array entry with a transform function referenced via a constant', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + + const INPUT_CONFIG = { + name: 'decoratedInput', + transform: (v: string) => !!v, + }; + + @Component({ + template: '', + selector: 'comp', + inputs: [INPUT_CONFIG], + }) + export class Comp { + decoratedInput!: boolean; + } + `, + ); + + env.driveMain(); + const dtsContent = env.getContents('test.d.ts'); + + expect(dtsContent).toContain('static ngAcceptInputType_decoratedInput: string;'); + }); + it('should produce a diagnostic when using an @Input decorator with an inline transform function missing a parameter type', () => { env.write( 'test.ts', diff --git a/packages/compiler-cli/test/ngtsc/defer_spec.ts b/packages/compiler-cli/test/ngtsc/defer_spec.ts index 2fb31f4b0c7a..fd8ac022bfe6 100644 --- a/packages/compiler-cli/test/ngtsc/defer_spec.ts +++ b/packages/compiler-cli/test/ngtsc/defer_spec.ts @@ -9,7 +9,7 @@ import {ErrorCode, ngErrorCode} from '../../src/ngtsc/diagnostics'; import {runInEachFileSystem} from '../../src/ngtsc/file_system/testing'; -import {loadStandardTestFiles} from '../../src/ngtsc/testing'; +import {isNgpTestMode, loadStandardTestFiles} from '../../src/ngtsc/testing'; import {NgtscTestEnvironment} from './env'; @@ -73,8 +73,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('ɵɵdefer(1, 0, TestCmp_Defer_1_DepsFn)'); - expect(cleanNewLines(jsContents)).toContain( - '() => [/* @ts-ignore */ import("./cmp-a").then(m => m.CmpA), LocalDep]', + expect(cleanNewLines(jsContents)).toMatch( + /\(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp-a"\)\.then\(\(?m\)? => m\.CmpA\), LocalDep ?\]/, ); // The `CmpA` symbol wasn't referenced elsewhere, so it can be defer-loaded @@ -363,8 +363,8 @@ runInEachFileSystem(() => { // Both `CmpA` and `CmpB` were used inside the defer block and were not // referenced elsewhere, so we generate dynamic imports and drop a regular one. - expect(cleanNewLines(jsContents)).toContain( - '() => [/* @ts-ignore */ import("./cmp-a").then(m => m.CmpA), /* @ts-ignore */ import("./cmp-a").then(m => m.CmpB)]', + expect(cleanNewLines(jsContents)).toMatch( + /\(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp-a"\)\.then\(\(?m\)? => m\.CmpA\), (?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp-a"\)\.then\(\(?m\)? => m\.CmpB\) ?\]/, ); expect(jsContents).not.toContain('import { CmpA, CmpB }'); }); @@ -407,8 +407,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('ɵɵdefer(1, 0, TestCmp_Defer_1_DepsFn)'); - expect(cleanNewLines(jsContents)).toContain( - '() => [/* @ts-ignore */ import("./cmp-a").then(m => m.CmpA)]', + expect(cleanNewLines(jsContents)).toMatch( + /\(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp-a"\)\.then\(\(?m\)? => m\.CmpA\) ?\]/, ); // The `CmpA` symbol wasn't referenced elsewhere, so it can be defer-loaded @@ -458,8 +458,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('ɵɵdefer(1, 0, TestCmp_Defer_1_DepsFn)'); - expect(cleanNewLines(jsContents)).toContain( - '() => [/* @ts-ignore */ import("./cmp-a").then(m => m.CmpA)]', + expect(cleanNewLines(jsContents)).toMatch( + /\(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp-a"\)\.then\(\(?m\)? => m\.CmpA\) ?\]/, ); expect(jsContents).not.toContain('import { CmpA }'); }); @@ -507,8 +507,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('ɵɵdefer(1, 0, TestCmp_Defer_1_DepsFn)'); - expect(cleanNewLines(jsContents)).toContain( - '() => [/* @ts-ignore */ import("./cmp-a").then(m => m.CmpA)]', + expect(cleanNewLines(jsContents)).toMatch( + /\(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp-a"\)\.then\(\(?m\)? => m\.CmpA\) ?\]/, ); expect(jsContents).not.toContain('import { CmpA }'); }); @@ -556,8 +556,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('ɵɵdefer(1, 0, TestCmp_Defer_1_DepsFn)'); - expect(cleanNewLines(jsContents)).toContain( - '() => [/* @ts-ignore */ import("./cmp-a").then(m => m.CmpA)]', + expect(cleanNewLines(jsContents)).toMatch( + /\(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp-a"\)\.then\(\(?m\)? => m\.CmpA\) ?\]/, ); expect(jsContents).not.toContain('import { CmpA }'); }); @@ -605,8 +605,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('ɵɵdefer(1, 0, TestCmp_Defer_1_DepsFn)'); - expect(cleanNewLines(jsContents)).toContain( - '() => [/* @ts-ignore */ import("./cmp-a").then(m => m.CmpA)]', + expect(cleanNewLines(jsContents)).toMatch( + /\(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp-a"\)\.then\(\(?m\)? => m\.CmpA\) ?\]/, ); expect(jsContents).not.toContain('import { CmpA }'); }); @@ -657,8 +657,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('ɵɵdefer(1, 0, TestCmp_Defer_1_DepsFn)'); - expect(cleanNewLines(jsContents)).toContain( - '() => [/* @ts-ignore */ import("./cmps").then(m => m.CmpA), /* @ts-ignore */ import("./cmps").then(m => m.CmpB)]', + expect(cleanNewLines(jsContents)).toMatch( + /\(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmps"\)\.then\(\(?m\)? => m\.CmpA\), (?:\/\* @ts-ignore \*\/ )?import\("\.\/cmps"\)\.then\(\(?m\)? => m\.CmpB\) ?\]/, ); expect(jsContents).not.toContain('import { CmpA }'); expect(jsContents).not.toContain('import { CmpB }'); @@ -703,11 +703,11 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('ɵɵdefer(1, 0, TestCmp_Defer_1_DepsFn)'); - expect(cleanNewLines(jsContents)).toContain( - 'const TestCmp_Defer_1_DepsFn = () => [/* @ts-ignore */ import("./cmp-a").then(m => m.default), LocalDep];', + expect(cleanNewLines(jsContents)).toMatch( + /const TestCmp_Defer_1_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp-a"\)\.then\(\(?m\)? => m\.default\), LocalDep ?\];/, ); - expect(cleanNewLines(jsContents)).toContain( - 'i0.ɵsetClassMetadataAsync(TestCmp, () => [/* @ts-ignore */ import("./cmp-a").then(m => m.default)]', + expect(cleanNewLines(jsContents)).toMatch( + /i0\.ɵsetClassMetadataAsync\(TestCmp, \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp-a"\)\.then\(\(?m\)? => m\.default\) ?\]/, ); // The `CmpA` symbol wasn't referenced elsewhere, so it can be defer-loaded // via dynamic imports and an original import can be removed. @@ -766,10 +766,17 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('ɵɵdefer(1, 0, TestCmp_Defer_1_DepsFn)'); - expect(cleanNewLines(jsContents)).toContain( - '() => [/* @ts-ignore */ import("./cmp").then(m => m.Cmp)]', - ); - expect(jsContents).not.toContain('import { Cmp }'); + expect(cleanNewLines(jsContents)).toMatch( + /\(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp"\)\.then\(\(?m\)? => m\.Cmp\) ?\]/, + ); + if (isNgpTestMode()) { + // `TestCmp` also injects `Cmp` via constructor DI (`ɵɵdirectiveInject(Cmp)`), so `ngp` + // retains the named `import { Cmp }` instead of synthesizing `import * as i1`. + expect(jsContents).toContain('import { Cmp }'); + expect(jsContents).not.toContain('import * as i1'); + } else { + expect(jsContents).not.toContain('import { Cmp }'); + } }); it('should retain symbols used in types and eagerly', () => { @@ -987,15 +994,15 @@ runInEachFileSystem(() => { import {PipeA} from './pipe-a'; @Component({ // @ts-ignore - deferredImports: [DeferredCmpA, DeferredCmpB, PipeA], + deferredImports: { block1: [DeferredCmpA, PipeA], block2: [DeferredCmpB] }, template: \` @for (item of items; track item) { @if (true) { - @defer { + @defer (name block1) { {{ 'Hi!' | pipea }} } - @defer { + @defer (name block2) { } } @@ -1014,14 +1021,11 @@ runInEachFileSystem(() => { // Expect that all deferrableImports in local compilation mode // are located in a single function (since we can't detect in // the local mode which components belong to which block). - expect(cleanNewLines(jsContents)).toContain( - 'const AppCmp_For_1_Conditional_0_Defer_1_DepsFn = () => [/* @ts-ignore */ ' + - 'import("./deferred-a").then(m => m.DeferredCmpA), /* @ts-ignore */ ' + - 'import("./pipe-a").then(m => m.PipeA)];', + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmp_For_1_Conditional_0_Defer_1_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-a"\)\.then\(\(?m\)? => m\.DeferredCmpA\), (?:\/\* @ts-ignore \*\/ )?import\("\.\/pipe-a"\)\.then\(\(?m\)? => m\.PipeA\) ?\];/, ); - expect(cleanNewLines(jsContents)).toContain( - 'const AppCmp_For_1_Conditional_0_Defer_4_DepsFn = () => [/* @ts-ignore */ ' + - 'import("./deferred-b").then(m => m.DeferredCmpB)];', + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmp_For_1_Conditional_0_Defer_4_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-b"\)\.then\(\(?m\)? => m\.DeferredCmpB\) ?\];/, ); // Make sure there are no eager imports present in the output. @@ -1034,12 +1038,8 @@ runInEachFileSystem(() => { expect(jsContents).toContain('ɵɵdefer(4, 3, AppCmp_For_1_Conditional_0_Defer_4_DepsFn);'); // Expect `ɵsetClassMetadataAsync` to contain dynamic imports too. - expect(cleanNewLines(jsContents)).toContain( - 'ɵsetClassMetadataAsync(AppCmp, () => [/* @ts-ignore */ ' + - 'import("./deferred-a").then(m => m.DeferredCmpA), /* @ts-ignore */ ' + - 'import("./pipe-a").then(m => m.PipeA), /* @ts-ignore */ ' + - 'import("./deferred-b").then(m => m.DeferredCmpB)], ' + - '(DeferredCmpA, PipeA, DeferredCmpB) => {', + expect(cleanNewLines(jsContents)).toMatch( + /ɵsetClassMetadataAsync\(AppCmp, \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-a"\)\.then\(\(?m\)? => m\.DeferredCmpA\), (?:\/\* @ts-ignore \*\/ )?import\("\.\/pipe-a"\)\.then\(\(?m\)? => m\.PipeA\), (?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-b"\)\.then\(\(?m\)? => m\.DeferredCmpB\) ?\], \(DeferredCmpA, PipeA, DeferredCmpB\) => \{/, ); }); @@ -1097,13 +1097,13 @@ runInEachFileSystem(() => { @Component({ imports: [EagerCmpA], // @ts-ignore - deferredImports: [DeferredCmpA, DeferredCmpB], + deferredImports: { block1: [DeferredCmpA], block2: [DeferredCmpB] }, template: \` - @defer { + @defer (name block1) { } - @defer { + @defer (name block2) { } @@ -1119,32 +1119,27 @@ runInEachFileSystem(() => { // Expect that all deferrableImports to become dynamic imports. // Other imported symbols remain eager. - expect(cleanNewLines(jsContents)).toContain( - 'const AppCmp_Defer_1_DepsFn = () => [/* @ts-ignore */ ' + - 'import("./deferred-a").then(m => m.DeferredCmpA), EagerCmpA];', + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmp_Defer_1_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\(["']\.\/deferred-a["']\)\.then\(\(?m\)? => m\.DeferredCmpA\) ?\];/, ); - expect(cleanNewLines(jsContents)).toContain( - 'const AppCmp_Defer_4_DepsFn = () => [/* @ts-ignore */ ' + - 'import("./deferred-b").then(m => m.DeferredCmpB), EagerCmpA];', + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmp_Defer_4_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\(["']\.\/deferred-b["']\)\.then\(\(?m\)? => m\.DeferredCmpB\) ?\];/, ); // Make sure there are no eager imports present in the output. - expect(jsContents).not.toContain(`from './deferred-a'`); - expect(jsContents).not.toContain(`from './deferred-b'`); + expect(jsContents).not.toMatch(/from ["']\.\/deferred-a["']/); + expect(jsContents).not.toMatch(/from ["']\.\/deferred-b["']/); // Eager dependencies retain their imports. - expect(jsContents).toContain(`from './eager-a';`); + expect(jsContents).toMatch(/from ["']\.\/eager-a["'];/); // Defer blocks would have their own dependency functions in full mode. expect(jsContents).toContain('ɵɵdefer(1, 0, AppCmp_Defer_1_DepsFn);'); expect(jsContents).toContain('ɵɵdefer(4, 3, AppCmp_Defer_4_DepsFn);'); // Expect `ɵsetClassMetadataAsync` to contain dynamic imports too. - expect(cleanNewLines(jsContents)).toContain( - 'ɵsetClassMetadataAsync(AppCmp, () => [/* @ts-ignore */ ' + - 'import("./deferred-a").then(m => m.DeferredCmpA), /* @ts-ignore */ ' + - 'import("./deferred-b").then(m => m.DeferredCmpB)], ' + - '(DeferredCmpA, DeferredCmpB) => {', + expect(cleanNewLines(jsContents)).toMatch( + /ɵsetClassMetadataAsync\(AppCmp, \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\(["']\.\/deferred-a["']\)\.then\(\(?m\)? => m\.DeferredCmpA\), (?:\/\* @ts-ignore \*\/ )?import\(["']\.\/deferred-b["']\)\.then\(\(?m\)? => m\.DeferredCmpB\) ?\], \(DeferredCmpA, DeferredCmpB\) => \{/, ); }); @@ -1158,7 +1153,7 @@ runInEachFileSystem(() => { class MyInjectable {} @Component({ // @ts-ignore - deferredImports: [MyInjectable], + deferredImports: { block1: [MyInjectable] }, template: '', }) export class AppCmp { @@ -1180,7 +1175,7 @@ runInEachFileSystem(() => { class MyModule {} @Component({ // @ts-ignore - deferredImports: [MyModule], + deferredImports: { block1: [MyModule] }, template: '', }) export class AppCmp { @@ -1230,10 +1225,10 @@ runInEachFileSystem(() => { import {DeferredCmpB} from './deferred-b'; @Component({ // @ts-ignore - deferredImports: [DeferredCmpA, DeferredCmpB], + deferredImports: { block1: [DeferredCmpA, DeferredCmpB] }, template: \` - @defer { + @defer (name block1) { } \`, @@ -1275,10 +1270,10 @@ runInEachFileSystem(() => { @Component({ // @ts-ignore - deferredImports: [DeferredCmpA], + deferredImports: { block1: [DeferredCmpA] }, imports: [DeferredCmpA], template: \` - @defer { + @defer (name block1) { } \`, @@ -1323,10 +1318,10 @@ runInEachFileSystem(() => { import {DeferredPipeB} from './deferred-pipe-b'; @Component({ // @ts-ignore - deferredImports: [DeferredPipeA, DeferredPipeB], + deferredImports: { block1: [DeferredPipeA, DeferredPipeB] }, template: \` {{ 'Eager' | deferredPipeA }} - @defer { + @defer (name block1) { {{ 'Deferred' | deferredPipeB }} } \`, @@ -1361,12 +1356,12 @@ runInEachFileSystem(() => { import {DeferredCmpA} from './deferred-a'; @Component({ // @ts-ignore - deferredImports: [DeferredCmpA], + deferredImports: { block1: [DeferredCmpA] }, template: \` @if (true) { @if (true) { @if (true) { - @defer { + @defer (name block1) { } } @@ -1405,9 +1400,9 @@ runInEachFileSystem(() => { import {DeferredCmpA} from './deferred-a'; @Component({ // @ts-ignore - deferredImports: [DeferredCmpA], + deferredImports: { block1: [DeferredCmpA] }, template: \` - @defer { + @defer (name block1) { @if (true) { @if (true) { @if (true) { @@ -1487,13 +1482,11 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - 'const AppCmp_Defer_1_DepsFn = () => [/* @ts-ignore */ ' + - 'import("./deferred-a").then(m => m.DeferredCmpA)];', + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmp_Defer_1_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-a"\)\.then\(\(?m\)? => m\.DeferredCmpA\) ?\];/, ); - expect(cleanNewLines(jsContents)).toContain( - 'const AppCmp_Defer_4_DepsFn = () => [/* @ts-ignore */ ' + - 'import("./deferred-b").then(m => m.DeferredCmpB)];', + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmp_Defer_4_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-b"\)\.then\(\(?m\)? => m\.DeferredCmpB\) ?\];/, ); }); @@ -1584,7 +1577,9 @@ runInEachFileSystem(() => { expect(jsContents).not.toContain('dependencies: [MyCmp]'); // Verify that MyCmp is deferred - expect(cleanNewLines(jsContents)).toContain('import("./my-cmp").then(m => m.MyCmp)'); + expect(cleanNewLines(jsContents)).toMatch( + /import\("\.\/my-cmp"\)\.then\(\(?m\)? => m\.MyCmp\)/, + ); }); it('should remove the import statement for explicitly deferred imports even in local compilation mode', () => { @@ -1742,13 +1737,11 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(cleanNewLines(jsContents)).toContain( - 'const AppCmp_Defer_1_DepsFn = () => [/* @ts-ignore */ ' + - 'import("./deferred-a").then(m => m.DeferredCmpA)];', + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmp_Defer_1_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-a"\)\.then\(\(?m\)? => m\.DeferredCmpA\) ?\];/, ); - expect(cleanNewLines(jsContents)).toContain( - 'const AppCmp_Defer_4_DepsFn = () => [/* @ts-ignore */ ' + - 'import("./deferred-b").then(m => m.DeferredCmpB)];', + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmp_Defer_4_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-b"\)\.then\(\(?m\)? => m\.DeferredCmpB\) ?\];/, ); }); @@ -1776,9 +1769,7 @@ runInEachFileSystem(() => { blockA: [DeferredCmpA], }, template: \` - @defer { - - } + @defer {} \`, }) export class AppCmp {} @@ -1814,9 +1805,7 @@ runInEachFileSystem(() => { blockA: [DeferredCmpA], }, template: \` - @defer (name blockB) { - - } + @defer (name blockB) {} \`, }) export class AppCmp {} @@ -1830,45 +1819,6 @@ runInEachFileSystem(() => { ); }); - it('should report error when name parameter is used but deferredImports is an array', () => { - env.write( - 'deferred-a.ts', - ` - import {Component} from '@angular/core'; - @Component({ - selector: 'deferred-cmp-a', - template: 'DeferredCmpA contents', - }) - export class DeferredCmpA {} - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {DeferredCmpA} from './deferred-a'; - @Component({ - // @ts-ignore - deferredImports: [DeferredCmpA], - template: \` - @defer (name blockA) { - - } - \`, - }) - export class AppCmp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].code).toBe(ngErrorCode(ErrorCode.DEFER_BLOCK_INVALID_NAME_PARAMETER)); - expect(diags[0].messageText).toContain( - `The 'name' parameter can only be used when '@Component.deferredImports' is defined as an object.`, - ); - }); - it('should report error when name parameter is used but component has no deferredImports in standard compilation', () => { env.write( 'deferred-a.ts', @@ -1903,7 +1853,7 @@ runInEachFileSystem(() => { expect(diags.length).toBe(1); expect(diags[0].code).toBe(ngErrorCode(ErrorCode.DEFER_BLOCK_INVALID_NAME_PARAMETER)); expect(diags[0].messageText).toContain( - `The 'name' parameter can only be used when '@Component.deferredImports' is defined as an object.`, + `The 'name' parameter can only be used when '@Component.deferredImports' is defined.`, ); }); @@ -1946,7 +1896,7 @@ runInEachFileSystem(() => { expect(diags.length).toBe(1); expect(diags[0].code).toBe(ngErrorCode(ErrorCode.DEFER_BLOCK_INVALID_NAME_PARAMETER)); expect(diags[0].messageText).toContain( - `The 'name' parameter can only be used when '@Component.deferredImports' is defined as an object.`, + `The 'name' parameter can only be used when '@Component.deferredImports' is defined.`, ); }); @@ -2023,11 +1973,8 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('ɵɵdefer(1, 0, TestCmp_Defer_1_DepsFn)'); - expect(cleanNewLines(jsContents)).toContain( - '(() => { (typeof ngDevMode === "undefined" || ngDevMode) && ' + - 'i0.ɵsetClassMetadataAsync(TestCmp, ' + - '() => [/* @ts-ignore */ import("./cmp-a").then(m => m.CmpA)], ' + - 'CmpA => { i0.ɵsetClassMetadata(TestCmp', + expect(cleanNewLines(jsContents)).toMatch( + /\(\(\) => \{ \(typeof ngDevMode === "undefined" \|\| ngDevMode\) && i0\.ɵsetClassMetadataAsync\(TestCmp, \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp-a"\)\.then\(\(?m\)? => m\.CmpA\) ?\], \(?CmpA\)? => \{ i0\.ɵsetClassMetadata\(TestCmp/, ); }); @@ -2134,14 +2081,10 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('ɵɵdefer(1, 0, TestCmp_Defer_1_DepsFn)'); - expect(cleanNewLines(jsContents)).toContain( - '(() => { (typeof ngDevMode === "undefined" || ngDevMode) && ' + - // Main `setClassMetadataAsync` call - 'i0.ɵsetClassMetadataAsync(TestCmp, ' + - // Dependency loading function (note: no local `LocalDep` here) - // Callback that invokes `setClassMetadata` at the end - '() => [/* @ts-ignore */ import("./cmp-a").then(m => m.default)], ' + - 'CmpA => { i0.ɵsetClassMetadata(TestCmp', + // Main `setClassMetadataAsync` call with the dependency loading function (note: no local + // `LocalDep` here) and the callback that invokes `setClassMetadata` at the end. + expect(cleanNewLines(jsContents)).toMatch( + /\(\(\) => \{ \(typeof ngDevMode === "undefined" \|\| ngDevMode\) && i0\.ɵsetClassMetadataAsync\(TestCmp, \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/cmp-a"\)\.then\(\(?m\)? => m\.default\) ?\], \(?CmpA\)? => \{ i0\.ɵsetClassMetadata\(TestCmp/, ); }); @@ -2601,8 +2544,18 @@ runInEachFileSystem(() => { ); const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toContain(`@defer block must specify a 'name' parameter`); + + if (isNgpTestMode()) { + expect(diags.length).toBe(2); + expect(diags[0].messageText).toContain(`@defer block must specify a 'name' parameter`); + expect(diags[1].messageText).toContain( + `Pipe 'pipea' was imported via \`@Component.deferredImports\` under block 'blockA', ` + + `but is used in a \`@defer\` block configured for 'unnamed'`, + ); + } else { + expect(diags.length).toBe(1); + expect(diags[0].messageText).toContain(`@defer block must specify a 'name' parameter`); + } }); it('should report an error when a structural directive from deferredImports is used in an unassociated defer block', () => { @@ -2818,10 +2771,8 @@ runInEachFileSystem(() => { expect(jsContents).not.toContain('DirA, DirA'); // Ensure that setClassMetadataAsync has exactly one parameter for DirA - expect(cleanNewLines(jsContents)).toContain( - 'i0.ɵsetClassMetadataAsync(TestCmp, ' + - '() => [/* @ts-ignore */ import("./dirs").then(m => m.DirA)], ' + - 'DirA => { i0.ɵsetClassMetadata(TestCmp', + expect(cleanNewLines(jsContents)).toMatch( + /i0\.ɵsetClassMetadataAsync\(TestCmp, \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/dirs"\)\.then\(\(?m\)? => m\.DirA\) ?\], \(?DirA\)? => \{ i0\.ɵsetClassMetadata\(TestCmp/, ); }); }); diff --git a/packages/compiler-cli/test/ngtsc/doc_extraction/class_doc_extraction_spec.ts b/packages/compiler-cli/test/ngtsc/doc_extraction/class_doc_extraction_spec.ts index 26596a7dbfe8..435d415b644b 100644 --- a/packages/compiler-cli/test/ngtsc/doc_extraction/class_doc_extraction_spec.ts +++ b/packages/compiler-cli/test/ngtsc/doc_extraction/class_doc_extraction_spec.ts @@ -721,6 +721,36 @@ runInEachFileSystem(() => { expect(fooEntry.name).toBe('foo'); expect(fooEntry.memberType).toBe(MemberType.Property); expect((fooEntry as PropertyEntry).type).toBe('string'); + expect(fooEntry.memberTags).not.toContain(MemberTags.Inherited); + }); + + it('should only mark constructor parameter properties from a parent as inherited', () => { + env.write( + 'index.ts', + ` + class Parent { + constructor(public name: string) {} + } + + export class Child extends Parent { + constructor(public age: number) { super(''); } + }`, + ); + + const docs: DocEntry[] = env.driveDocsExtraction('index.ts'); + expect(docs.length).toBe(1); + + const classEntry = docs[0] as ClassEntry; + + const ageEntry = classEntry.members.find((member) => member.name === 'age')!; + expect(ageEntry).toBeDefined(); + expect(ageEntry.memberType).toBe(MemberType.Property); + expect(ageEntry.memberTags).not.toContain(MemberTags.Inherited); + + const nameEntry = classEntry.members.find((member) => member.name === 'name')!; + expect(nameEntry).toBeDefined(); + expect(nameEntry.memberType).toBe(MemberType.Property); + expect(nameEntry.memberTags).toContain(MemberTags.Inherited); }); it('should not extract a constructor without parameters', () => { diff --git a/packages/compiler-cli/test/ngtsc/env.ts b/packages/compiler-cli/test/ngtsc/env.ts index 07fee38751d1..8fa33600ac9f 100644 --- a/packages/compiler-cli/test/ngtsc/env.ts +++ b/packages/compiler-cli/test/ngtsc/env.ts @@ -6,6 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ +import type {IndexedComponent} from '@angular/compiler'; import ts from 'typescript'; import { createCompilerHost, @@ -27,10 +28,17 @@ import { relativeFrom, } from '../../src/ngtsc/file_system'; import {Folder, MockFileSystem} from '../../src/ngtsc/file_system/testing'; -import {IndexedComponent} from '../../src/ngtsc/indexer'; import {NgtscProgram} from '../../src/ngtsc/program'; import {DeclarationNode} from '../../src/ngtsc/reflection'; -import {NgtscTestCompilerHost} from '../../src/ngtsc/testing'; +import { + isNgpTestMode, + NgpCompilationSession, + NgtscTestCompilerHost, + normalizeNgpOutputFile, + performNgpCompilationSync, + runNgpSync, + toPosixPath, +} from '../../src/ngtsc/testing'; import {TemplateTypeChecker} from '../../src/ngtsc/typecheck/api'; import {setWrapHostForTest} from '../../src/transformers/compiler_host'; @@ -51,6 +59,12 @@ type TsCompilerOptions = Partial< Record, ts.CompilerOptionsValue> >; +/** + * The NGP compilation of the environment currently compiling repeatedly. Tests set up one + * environment at a time, so setting up the next releases this one's analyzer. + */ +let activeNgpSession: NgpCompilationSession | null = null; + /** * Manages a temporary testing directory structure and environment for testing ngtsc by feeding it * TypeScript code. @@ -58,6 +72,8 @@ type TsCompilerOptions = Partial< export class NgtscTestEnvironment { private multiCompileHostExt: MultiCompileHostExt | null = null; private oldProgram: Program | null = null; + private ngpSession: NgpCompilationSession | null = null; + private lastTsProgram: ts.Program | null = null; private changedResources: Set | null = null; private commandLineArgs: string[]; @@ -73,6 +89,9 @@ export class NgtscTestEnvironment { * Set up a new testing environment. */ static setup(files: Folder = {}, workingDir?: AbsoluteFsPath): NgtscTestEnvironment { + activeNgpSession?.dispose(); + activeNgpSession = null; + const fs = getFileSystem(); if (fs instanceof MockFileSystem) { fs.init(files); @@ -128,15 +147,30 @@ export class NgtscTestEnvironment { } getContents(fileName: string): string { + const content = this.getRawContents(fileName); + if (isNgpTestMode() && (fileName.endsWith('.js') || fileName.endsWith('.d.ts'))) { + return normalizeNgpOutputFile(content); + } + return content; + } + + /** + * The contents of an emitted file exactly as written, without the normalization `getContents` + * applies to NGP output. Needed wherever positions matter, such as reading source maps. + */ + getRawContents(fileName: string): string { this.assertExists(fileName); - const modulePath = this.fs.resolve(this.outDir, fileName); - return this.fs.readFile(modulePath); + return this.fs.readFile(this.fs.resolve(this.outDir, fileName)); } enableMultipleCompilations(): void { this.changedResources = new Set(); this.multiCompileHostExt = new MultiCompileHostExt(this.fs); setWrapHostForTest(makeWrapHost(this.multiCompileHostExt)); + if (isNgpTestMode()) { + activeNgpSession?.dispose(); + this.ngpSession = activeNgpSession = new NgpCompilationSession(); + } } /** @@ -161,6 +195,9 @@ export class NgtscTestEnvironment { } getTsProgram(): ts.Program { + if (this.lastTsProgram !== null) { + return this.lastTsProgram; + } if (this.oldProgram === null) { throw new Error('No ts.Program has been created yet.'); } @@ -169,6 +206,9 @@ export class NgtscTestEnvironment { getReuseTsProgram(): ts.Program { if (this.oldProgram === null) { + if (this.lastTsProgram !== null) { + return this.lastTsProgram; + } throw new Error('No ts.Program has been created yet.'); } return (this.oldProgram as NgtscProgram).getReuseTsProgram(); @@ -199,6 +239,7 @@ export class NgtscTestEnvironment { const absFilePath = this.fs.resolve(this.basePath, fileName); if (this.multiCompileHostExt !== null) { this.multiCompileHostExt.invalidate(absFilePath); + this.ngpSession?.recordChangedFile(absFilePath, /* created */ !this.fs.exists(absFilePath)); if (!fileName.endsWith('.ts')) { this.changedResources!.add(absFilePath); } @@ -213,6 +254,7 @@ export class NgtscTestEnvironment { throw new Error(`Not caching files - call enableMultipleCompilations()`); } this.multiCompileHostExt.invalidate(absFilePath); + this.ngpSession?.recordChangedFile(absFilePath); if (!fileName.endsWith('.ts')) { this.changedResources!.add(absFilePath); } @@ -247,6 +289,37 @@ export class NgtscTestEnvironment { * Run the compiler to completion, and assert that no errors occurred. */ driveMain(customTransformers?: CustomTransformers): void { + if (isNgpTestMode()) { + const { + rootNames, + options, + errors: configErrors, + } = readNgcCommandLineAndConfiguration(this.commandLineArgs); + expect(configErrors.length).toBe(0); + const tsconfigPath = this.fs.resolve(this.basePath, 'tsconfig.json'); + const writeFileCallback = + this.multiCompileHostExt !== null + ? this.multiCompileHostExt.writeFile.bind(this.multiCompileHostExt) + : undefined; + const result = performNgpCompilationSync({ + fs: this.fs, + basePath: this.basePath, + tsconfigPath, + rootNames, + options, + emit: true, + complianceMode: true, + customTransformers, + writeFileCallback, + session: this.ngpSession ?? undefined, + }); + this.lastTsProgram = result.tsProgram; + const errors = result.diagnostics.filter((d) => d.category === ts.DiagnosticCategory.Error); + expect(errors.map((e) => ts.flattenDiagnosticMessageText(e.messageText, '\n'))).toEqual([]); + expect(result.exitCode).toBe(0); + return; + } + const errorSpy = jasmine.createSpy('consoleError').and.callFake(console.error); let reuseProgram: {program: Program | undefined} | undefined = undefined; if (this.multiCompileHostExt !== null) { @@ -278,6 +351,42 @@ export class NgtscTestEnvironment { * Run the compiler to completion, and return any `ts.Diagnostic` errors that may have occurred. */ driveDiagnostics(expectedExitCode?: number): ReadonlyArray { + if (isNgpTestMode()) { + const { + rootNames, + options, + errors: configErrors, + } = readNgcCommandLineAndConfiguration(this.commandLineArgs); + if (configErrors.length > 0) { + return configErrors; + } + const tsconfigPath = this.fs.resolve(this.basePath, 'tsconfig.json'); + const writeFileCallback = + this.multiCompileHostExt !== null + ? this.multiCompileHostExt.writeFile.bind(this.multiCompileHostExt) + : undefined; + const result = performNgpCompilationSync({ + fs: this.fs, + basePath: this.basePath, + tsconfigPath, + rootNames, + options, + emit: true, + complianceMode: true, + writeFileCallback, + session: this.ngpSession ?? undefined, + }); + this.lastTsProgram = result.tsProgram; + if (expectedExitCode !== undefined) { + expect(result.exitCode) + .withContext( + `Expected program to exit with code ${expectedExitCode}, but it actually exited with code ${result.exitCode}.`, + ) + .toBe(expectedExitCode); + } + return result.diagnostics; + } + // ngtsc only produces ts.Diagnostic messages. let reuseProgram: {program: Program | undefined} | undefined = undefined; if (this.multiCompileHostExt !== null) { @@ -309,6 +418,9 @@ export class NgtscTestEnvironment { } async driveDiagnosticsAsync(): Promise> { + if (isNgpTestMode()) { + return this.driveDiagnostics(); + } const {rootNames, options} = readNgcCommandLineAndConfiguration(this.commandLineArgs); const host = createCompilerHost({options}); const program = createProgram({rootNames, host, options}); @@ -319,6 +431,9 @@ export class NgtscTestEnvironment { } driveTemplateTypeChecker(): {program: ts.Program; checker: TemplateTypeChecker} { + if (isNgpTestMode()) { + throw new Error('driveTemplateTypeChecker is not supported in NGP mode.'); + } const {rootNames, options} = readNgcCommandLineAndConfiguration(this.commandLineArgs); const host = createCompilerHost({options}); const program = createProgram({rootNames, host, options}); @@ -329,7 +444,53 @@ export class NgtscTestEnvironment { }; } - driveIndexer(): Map { + driveIndexer(): Map> { + if (isNgpTestMode()) { + const {rootNames, options} = readNgcCommandLineAndConfiguration(this.commandLineArgs); + const tsconfigPath = this.fs.resolve(this.basePath, 'tsconfig.json'); + const result = performNgpCompilationSync({ + fs: this.fs, + basePath: this.basePath, + tsconfigPath, + rootNames, + options, + emit: false, + closeAnalyzer: false, + }); + try { + const rawIndexed = runNgpSync( + result.compiler.getIndexedComponents(), + result.compiler.analyzer, + ); + const out = new Map>(); + for (const [, comp] of rawIndexed.entries()) { + const fsFileUrl = this.fs.resolve(comp.fileUrl); + const sf = + result.originalSourceFiles.get(fsFileUrl) ?? result.tsProgram.getSourceFile(fsFileUrl); + if (!sf) continue; + let classDecl: DeclarationNode | undefined; + for (const stmt of sf.statements) { + if (ts.isClassDeclaration(stmt) && stmt.name?.text === comp.name) { + classDecl = stmt; + break; + } + } + if (!classDecl) continue; + const fsTemplateFileUrl = this.fs.resolve(comp.template.fileUrl); + out.set(classDecl, { + ...comp, + fileUrl: fsFileUrl, + template: { + ...comp.template, + fileUrl: fsTemplateFileUrl, + }, + } as unknown as IndexedComponent); + } + return out; + } finally { + result.compiler.analyzer.close(); + } + } const {rootNames, options} = readNgcCommandLineAndConfiguration(this.commandLineArgs); const host = createCompilerHost({options}); const program = createProgram({rootNames, host, options}); @@ -337,6 +498,9 @@ export class NgtscTestEnvironment { } driveDocsExtraction(entryPoint: string): DocEntry[] { + if (isNgpTestMode()) { + throw new Error('driveDocsExtraction is not supported in NGP mode.'); + } const {rootNames, options} = readNgcCommandLineAndConfiguration(this.commandLineArgs); const host = createCompilerHost({options}); const program = createProgram({rootNames, host, options}); @@ -344,6 +508,9 @@ export class NgtscTestEnvironment { } driveDocsExtractionForSymbols(entryPoint: string): Map { + if (isNgpTestMode()) { + throw new Error('driveDocsExtractionForSymbols is not supported in NGP mode.'); + } const {rootNames, options} = readNgcCommandLineAndConfiguration(this.commandLineArgs); const host = createCompilerHost({options}); const program = createProgram({rootNames, host, options}); @@ -351,6 +518,9 @@ export class NgtscTestEnvironment { } driveXi18n(format: string, outputFileName: string, locale: string | null = null): void { + if (isNgpTestMode()) { + throw new Error('driveXi18n is not supported in NGP mode.'); + } const errorSpy = jasmine.createSpy('consoleError').and.callFake(console.error); const args = [...this.commandLineArgs, `--i18nFormat=${format}`, `--outFile=${outputFileName}`]; if (locale !== null) { @@ -363,6 +533,42 @@ export class NgtscTestEnvironment { driveHmr(fileName: string, className: string): string | null { const {rootNames, options} = readNgcCommandLineAndConfiguration(this.commandLineArgs); + + if (isNgpTestMode()) { + const tsconfigPath = this.fs.resolve(this.basePath, 'tsconfig.json'); + const result = performNgpCompilationSync({ + fs: this.fs, + basePath: this.basePath, + tsconfigPath, + rootNames, + options, + emit: false, + closeAnalyzer: false, + }); + try { + const filePath = toPosixPath(this.fs.resolve(this.basePath, fileName)); + const source = runNgpSync( + result.compiler.emitHmrUpdateModule(filePath, className), + result.compiler.analyzer, + ); + if (source === null) { + return null; + } + const output = ts.transpileModule(source, { + compilerOptions: { + ...options, + module: ts.ModuleKind.ES2022, + target: ts.ScriptTarget.ES2022, + } as ts.CompilerOptions, + fileName, + reportDiagnostics: false, + }).outputText; + return normalizeNgpOutputFile(output); + } finally { + result.compiler.analyzer.close(); + } + } + const host = createCompilerHost({options}); const program = createProgram({rootNames, host, options}); const sourceFile = program.getTsProgram().getSourceFile(fileName); diff --git a/packages/compiler-cli/test/ngtsc/extended_template_diagnostics_spec.ts b/packages/compiler-cli/test/ngtsc/extended_template_diagnostics_spec.ts index f6fca4a91344..293594929f96 100644 --- a/packages/compiler-cli/test/ngtsc/extended_template_diagnostics_spec.ts +++ b/packages/compiler-cli/test/ngtsc/extended_template_diagnostics_spec.ts @@ -76,29 +76,6 @@ runInEachFileSystem(() => { expect(getSourceCodeForDiagnostic(diags[0])).toBe('([notARealThing])="bar"'); }); - it(`should produce nullish coalescing not nullable warning`, () => { - env.tsconfig({strict: true}); // TODO: remove when #70090 is merged - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - @Component({ - selector: 'test', - template: '{{ bar ?? "foo" }}', - }) - export class TestCmp { - bar: string = "text"; - } - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].category).toBe(ts.DiagnosticCategory.Warning); - expect(diags[0].code).toBe(ngErrorCode(ErrorCode.NULLISH_COALESCING_NOT_NULLABLE)); - expect(getSourceCodeForDiagnostic(diags[0])).toBe('bar ?? "foo"'); - }); - describe('handles diagnostic configuration', () => { // Component definition which emits one warning. const warningComponent = ` diff --git a/packages/compiler-cli/test/ngtsc/hmr_spec.ts b/packages/compiler-cli/test/ngtsc/hmr_spec.ts index dab0b5585095..64a0fa4a88ee 100644 --- a/packages/compiler-cli/test/ngtsc/hmr_spec.ts +++ b/packages/compiler-cli/test/ngtsc/hmr_spec.ts @@ -7,9 +7,17 @@ */ import ts from 'typescript'; +import {getFileSystem} from '../../src/ngtsc/file_system'; import {runInEachFileSystem} from '../../src/ngtsc/file_system/testing'; import {NgtscProgram} from '../../src/ngtsc/program'; -import {loadStandardTestFiles} from '../../src/ngtsc/testing'; +import { + isNgpTestMode, + loadStandardTestFiles, + normalizeNgpOutputFile, + performNgpCompilationSync, + runNgpSync, + toPosixPath, +} from '../../src/ngtsc/testing'; import {CompilerOptions} from '../../src/transformers/api'; import {createCompilerHost} from '../../src/transformers/compiler_host'; import {NgtscTestEnvironment} from './env'; @@ -111,17 +119,15 @@ runInEachFileSystem(() => { expect(jsContents).toContain(`import * as i0 from "@angular/core";`); expect(jsContents).toContain('const id = "test.ts%40Cmp";'); expect(jsContents).toContain('function Cmp_HmrLoad(t) {'); - expect(jsContents).toContain( - 'import(/* @vite-ignore */\ni0.ɵɵgetReplaceMetadataURL(id, t, import.meta.url)', + expect(jsContents).toMatch( + /import\(\/\* @vite-ignore \*\/\s+i0\.ɵɵgetReplaceMetadataURL\(id, t, import\.meta\.url\)/, ); - expect(jsContents).toContain( - ').then(m => m.default && i0.ɵɵreplaceMetadata(Cmp, m.default, [i0], ' + - '[Dep, transformValue, TOKEN, Component, Inject, ViewChild, Input], import.meta, id));', + expect(jsContents).toMatch( + /\)\.then\(\(?m\)? => \(?m\.default && i0\.ɵɵreplaceMetadata\(Cmp, m\.default, \[i0\], \[Dep, transformValue, TOKEN, Component, Inject, ViewChild, Input\], import\.meta, id\)\)?\);/, ); expect(jsContents).toContain('Cmp_HmrLoad(Date.now());'); - expect(jsContents).toContain( - 'import.meta.hot && import.meta.hot.on("angular:component-update", ' + - 'd => d.id === id && Cmp_HmrLoad(d.timestamp)', + expect(jsContents).toMatch( + /import\.meta\.hot && import\.meta\.hot\.on\(['"]angular:component-update['"], \(?d\)? => \(?\(?d\.id === id\)? && Cmp_HmrLoad\(d\.timestamp\)\)?/, ); expect(hmrContents).toContain( @@ -129,7 +135,7 @@ runInEachFileSystem(() => { ); expect(hmrContents).toContain(`const ɵhmr0 = ɵɵnamespaces[0];`); expect(hmrContents).toContain('Cmp.ɵfac = function Cmp_Factory'); - expect(hmrContents).toContain('Cmp.ɵcmp = /*@__PURE__*/ ɵhmr0.ɵɵdefineComponent'); + expect(hmrContents).toMatch(/Cmp\.ɵcmp = (?:\/\*@__PURE__\*\/ )?ɵhmr0\.ɵɵdefineComponent/); expect(hmrContents).toContain('ɵhmr0.ɵsetClassMetadata(Cmp,'); expect(hmrContents).toContain('ɵhmr0.ɵsetClassDebugInfo(Cmp,'); }); @@ -177,17 +183,15 @@ runInEachFileSystem(() => { expect(jsContents).toContain(`import * as i1 from "./dep";`); expect(jsContents).toContain('const id = "test.ts%40Cmp";'); expect(jsContents).toContain('function Cmp_HmrLoad(t) {'); - expect(jsContents).toContain( - 'import(/* @vite-ignore */\ni0.ɵɵgetReplaceMetadataURL(id, t, import.meta.url)', + expect(jsContents).toMatch( + /import\(\/\* @vite-ignore \*\/\s+i0\.ɵɵgetReplaceMetadataURL\(id, t, import\.meta\.url\)/, ); - expect(jsContents).toContain( - ').then(m => m.default && i0.ɵɵreplaceMetadata(Cmp, m.default, [i0, i1], ' + - '[DepModule, Component], import.meta, id));', + expect(jsContents).toMatch( + /\)\.then\(\(?m\)? => \(?m\.default && i0\.ɵɵreplaceMetadata\(Cmp, m\.default, \[i0, i1\], \[DepModule, Component\], import\.meta, id\)\)?\);/, ); expect(jsContents).toContain('Cmp_HmrLoad(Date.now());'); - expect(jsContents).toContain( - 'import.meta.hot && import.meta.hot.on("angular:component-update", ' + - 'd => d.id === id && Cmp_HmrLoad(d.timestamp)', + expect(jsContents).toMatch( + /import\.meta\.hot && import\.meta\.hot\.on\(['"]angular:component-update['"], \(?d\)? => \(?\(?d\.id === id\)? && Cmp_HmrLoad\(d\.timestamp\)\)?/, ); expect(hmrContents).toContain( @@ -196,7 +200,7 @@ runInEachFileSystem(() => { expect(hmrContents).toContain(`const ɵhmr0 = ɵɵnamespaces[0];`); expect(hmrContents).toContain(`const ɵhmr1 = ɵɵnamespaces[1];`); expect(hmrContents).toContain('Cmp.ɵfac = function Cmp_Factory'); - expect(hmrContents).toContain('Cmp.ɵcmp = /*@__PURE__*/ ɵhmr0.ɵɵdefineComponent'); + expect(hmrContents).toMatch(/Cmp\.ɵcmp = (?:\/\*@__PURE__\*\/ )?ɵhmr0\.ɵɵdefineComponent/); expect(hmrContents).toContain('ɵhmr0.ɵsetClassMetadata(Cmp,'); expect(hmrContents).toContain('ɵhmr0.ɵsetClassDebugInfo(Cmp,'); expect(hmrContents).toContain('dependencies: [DepModule, ɵhmr1.Dep]'); @@ -288,9 +292,9 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const hmrContents = env.driveHmr('test.ts', 'Cmp'); - expect(jsContents).toContain(`import { Dep } from './dep';`); + expect(jsContents).toMatch(/import \{ ?Dep ?\} from ['"]\.\/dep['"];/); expect(jsContents).toContain('const Cmp_Defer_1_DepsFn = () => [Dep];'); - expect(jsContents).toContain('function Cmp_Defer_0_Template(rf, ctx) { if (rf & 1) {'); + expect(jsContents).toMatch(/function Cmp_Defer_0_Template\(rf, ctx\) \{\s+if \(rf & 1\) \{/); expect(jsContents).toContain('i0.ɵɵdefer(1, 0, Cmp_Defer_1_DepsFn);'); expect(hmrContents).toContain( @@ -302,6 +306,100 @@ runInEachFileSystem(() => { expect(hmrContents).not.toContain('import('); }); + it('should not defer `deferredImports` dependencies when HMR is enabled', () => { + enableHmr({onlyExplicitDeferDependencyImports: true}); + env.write( + 'dep.ts', + ` + import {Directive} from '@angular/core'; + + @Directive({ + selector: '[dep]', + }) + export class Dep {} + `, + ); + + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + import {Dep} from './dep'; + + @Component({ + selector: 'cmp', + template: '@defer (name block; on timer(1000)) {
    }', + // @ts-ignore + deferredImports: {block: [Dep]}, + }) + export class Cmp {} + `, + ); + + env.driveMain(); + + const jsContents = env.getContents('test.js'); + const hmrContents = env.driveHmr('test.ts', 'Cmp'); + + // The dependency stays scoped to its block as a synchronous resolver: it is neither + // dynamically imported (its import has to survive) nor hoisted into `dependencies`. + expect(jsContents).toMatch(/import \{ ?Dep ?\} from ['"]\.\/dep['"];/); + expect(jsContents).toContain('const Cmp_Defer_1_DepsFn = () => [Dep];'); + expect(jsContents).toContain('i0.ɵɵdefer(1, 0, Cmp_Defer_1_DepsFn);'); + expect(jsContents).not.toContain('dependencies:'); + expect(jsContents).not.toContain('import("./dep")'); + expect(jsContents).not.toContain('ɵsetClassMetadataAsync'); + expect(jsContents).toContain( + 'ɵɵreplaceMetadata(Cmp, m.default, [i0], [Component, Dep], import.meta, id)', + ); + + expect(hmrContents).toContain( + 'export default function Cmp_UpdateMetadata(Cmp, ɵɵnamespaces, Component, Dep) {', + ); + expect(hmrContents).toContain('const Cmp_Defer_1_DepsFn = () => [Dep];'); + expect(hmrContents).not.toContain('import('); + }); + + it('should capture dependencies of non-literal `@Inject` and `@Attribute` arguments', () => { + // No `setClassMetadata`, so the factory is the only place the arguments appear. + enableHmr({supportTestBed: false}); + env.write( + 'test.ts', + ` + import {Component, Inject, Attribute, InjectionToken, forwardRef} from '@angular/core'; + + const TOKEN = new InjectionToken('TEST'); + const ATTR = 'some-attr'; + + export const enum Foo { + one, + two = '2', + } + + @Component({template: ''}) + export class Cmp { + constructor( + @Inject(forwardRef(() => TOKEN)) token: number, + @Inject(Foo.two) viaEnum: string, + @Attribute(ATTR) attr: string, + ) {} + } + `, + ); + + env.driveMain(); + + const jsContents = env.getContents('test.js'); + const hmrContents = env.driveHmr('test.ts', 'Cmp'); + + expect(jsContents).toContain( + 'ɵɵreplaceMetadata(Cmp, m.default, [i0], [forwardRef, TOKEN, { one: 0, two: "2" }, ATTR], import.meta, id)', + ); + expect(hmrContents).toContain( + 'export default function Cmp_UpdateMetadata(Cmp, ɵɵnamespaces, forwardRef, TOKEN, Foo, ATTR) {', + ); + }); + it('should capture deferred dependencies when no class metadata is produced', () => { // `supportTestBed` determines whether we produce `setClassMetadata` calls. enableHmr({supportTestBed: false}); @@ -337,9 +435,9 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const hmrContents = env.driveHmr('test.ts', 'Cmp'); - expect(jsContents).toContain(`import { Dep } from './dep';`); + expect(jsContents).toMatch(/import \{ ?Dep ?\} from ['"]\.\/dep['"];/); expect(jsContents).toContain('const Cmp_Defer_1_DepsFn = () => [Dep];'); - expect(jsContents).toContain('function Cmp_Defer_0_Template(rf, ctx) { if (rf & 1) {'); + expect(jsContents).toMatch(/function Cmp_Defer_0_Template\(rf, ctx\) \{\s+if \(rf & 1\) \{/); expect(jsContents).toContain('i0.ɵɵdefer(1, 0, Cmp_Defer_1_DepsFn);'); expect(jsContents).toContain( 'ɵɵreplaceMetadata(Cmp, m.default, [i0], [Dep], import.meta, id));', @@ -942,14 +1040,14 @@ runInEachFileSystem(() => { const options: CompilerOptions = { target: ts.ScriptTarget.Latest, module: ts.ModuleKind.ESNext, + moduleResolution: ts.ModuleResolutionKind.Bundler, + experimentalDecorators: true, + skipLibCheck: true, _enableHmr: true, }; - const program = new NgtscProgram(['/test.ts'], options, createCompilerHost({options})); - const transformers = program.compiler.prepareEmit().transformers; - - transformers.before!.unshift((ctx) => (sourceFile) => { - const visitor = (node: ts.Node) => { + const classTransform: ts.TransformerFactory = (ctx) => (sourceFile) => { + const visitor = (node: ts.Node): ts.Node => { if (ts.isClassDeclaration(node) && node.name?.getText() === 'Cmp') { const newMember = ctx.factory.createPropertyDeclaration( undefined, @@ -971,7 +1069,59 @@ runInEachFileSystem(() => { return ts.visitEachChild(node, visitor, ctx); }; return ts.visitEachChild(sourceFile, visitor, ctx); - }); + }; + + if (isNgpTestMode()) { + const fs = getFileSystem(); + const result = performNgpCompilationSync({ + fs, + basePath: env.basePath, + tsconfigPath: fs.resolve(env.basePath, 'tsconfig.json'), + rootNames: [fs.resolve('/test.ts')], + options, + emit: true, + complianceMode: true, + closeAnalyzer: false, + customTransformers: {beforeTs: [classTransform]}, + }); + try { + const filePath = toPosixPath(fs.resolve('/test.ts')); + const rawHmr = runNgpSync( + result.compiler.emitHmrUpdateModule(filePath, 'Cmp'), + result.compiler.analyzer, + ); + const hmrContents = + rawHmr === null + ? null + : normalizeNgpOutputFile( + ts.transpileModule(rawHmr, { + compilerOptions: { + ...options, + module: ts.ModuleKind.ES2022, + target: ts.ScriptTarget.ES2022, + } as ts.CompilerOptions, + fileName: '/test.ts', + reportDiagnostics: false, + }).outputText, + ); + const jsContents = env.getContents('/test.js'); + + expect( + result.diagnostics.map((d) => ts.flattenDiagnosticMessageText(d.messageText, '\n')), + ).toEqual([]); + expect(jsContents).toContain('ɵreplaceMetadata(Cmp'); + expect(jsContents).toContain('newProp = 123'); + expect(hmrContents).toContain('export default function Cmp_UpdateMetadata'); + return; + } finally { + result.compiler.analyzer.close(); + } + } + + const program = new NgtscProgram(['/test.ts'], options, createCompilerHost({options})); + const transformers = program.compiler.prepareEmit().transformers; + + transformers.before!.unshift(classTransform); const {diagnostics, emitSkipped} = program .getTsProgram() diff --git a/packages/compiler-cli/test/ngtsc/host_bindings_type_check_spec.ts b/packages/compiler-cli/test/ngtsc/host_bindings_type_check_spec.ts index 91b6213e144d..dcbb6d0b9ddd 100644 --- a/packages/compiler-cli/test/ngtsc/host_bindings_type_check_spec.ts +++ b/packages/compiler-cli/test/ngtsc/host_bindings_type_check_spec.ts @@ -742,22 +742,27 @@ runInEachFileSystem(() => { `, ); - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(4); - expect(diags[0].messageText).toBe( - `Property 'literalBindingDoesNotExist' does not exist on type 'SomeDir'.`, - ); - expect(getDiagnosticSourceCode(diags[0])).toBe('literalBindingDoesNotExist'); - expect(diags[1].messageText).toBe( - `Property 'literalListenerDoesNotExist' does not exist on type 'SomeDir'.`, - ); - expect(getDiagnosticSourceCode(diags[1])).toBe('literalListenerDoesNotExist'); - expect(diags[2].messageText).toBe(`Expected 1 arguments, but got 0.`); - expect(getDiagnosticSourceCode(diags[2])).toBe('directiveDecoratorHostListener'); - expect(diags[3].messageText).toMatch( - /Can't bind to 'foo' since it isn't a known property of 'button'\. Find more at .*/, - ); - expect(getDiagnosticSourceCode(diags[3])).toBe('foo'); + const diags = env + .driveDiagnostics() + .map((d) => [getDiagnosticSourceCode(d), d.messageText]) + .sort(([, a], [, b]) => (a as string).localeCompare(b as string)); + expect(diags).toEqual([ + [ + 'foo', + jasmine.stringMatching( + /Can't bind to 'foo' since it isn't a known property of 'button'\. Find more at .*/, + ), + ], + ['directiveDecoratorHostListener', `Expected 1 arguments, but got 0.`], + [ + 'literalBindingDoesNotExist', + `Property 'literalBindingDoesNotExist' does not exist on type 'SomeDir'.`, + ], + [ + 'literalListenerDoesNotExist', + `Property 'literalListenerDoesNotExist' does not exist on type 'SomeDir'.`, + ], + ]); }); it('should not check host bindings if the compiler flag is disabled', () => { diff --git a/packages/compiler-cli/test/ngtsc/host_directives_spec.ts b/packages/compiler-cli/test/ngtsc/host_directives_spec.ts index 2d1c3c104154..203581e4818a 100644 --- a/packages/compiler-cli/test/ngtsc/host_directives_spec.ts +++ b/packages/compiler-cli/test/ngtsc/host_directives_spec.ts @@ -53,7 +53,7 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - const dtsContents = env.getContents('test.d.ts'); + const dtsContents = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(jsContents).toContain('ɵɵdefineDirective({ type: DirectiveA'); expect(jsContents).toContain('ɵɵdefineDirective({ type: DirectiveB'); @@ -98,7 +98,7 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - const dtsContents = env.getContents('test.d.ts'); + const dtsContents = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(jsContents).toContain('ɵɵdefineDirective({ type: HostDir'); expect(jsContents).toContain( @@ -145,7 +145,7 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - const dtsContents = env.getContents('test.d.ts'); + const dtsContents = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(jsContents).toContain('ɵɵdefineDirective({ type: HostDir'); expect(jsContents).toContain( @@ -193,7 +193,7 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - const dtsContents = env.getContents('test.d.ts'); + const dtsContents = env.getContents('test.d.ts').replace(/\s+/g, ' '); expect(jsContents).toContain('ɵɵdefineDirective({ type: DirectiveA });'); expect(jsContents).toContain( @@ -262,31 +262,26 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const dtsContents = env.getContents('test.d.ts'); - expect(jsContents).toContain( - 'features: [i0.ɵɵHostDirectivesFeature(function () { return [DirectiveB]; })]', + expect(jsContents).toMatch( + /features: \[i0\.ɵɵHostDirectivesFeature\(function \(\) {\s*return \[DirectiveB];\s*}\)]/, ); - expect(jsContents).toContain( - 'features: [i0.ɵɵHostDirectivesFeature(function () { return [{ directive: DirectiveA, inputs: ["value", "value"] }]; })]', + expect(jsContents).toMatch( + /features: \[i0\.ɵɵHostDirectivesFeature\(function \(\) {\s*return\s*\[{ directive: DirectiveA, inputs: \[['"]value['"], ['"]value['"]] }];/, ); - expect(jsContents).toContain( - 'ɵɵdefineDirective({ type: DirectiveA, ' + 'inputs: { value: "value" } });', + expect(jsContents).toMatch( + /ɵɵdefineDirective\({ type: DirectiveA, inputs: { value: ['"]value['"] } }\);/, ); - expect(dtsContents).toContain( - 'ɵɵComponentDeclaration;', + expect(dtsContents).toMatch( + /ɵɵComponentDeclaration;/, ); - expect(dtsContents).toContain( - 'ɵɵDirectiveDeclaration;', + expect(dtsContents).toMatch( + /ɵɵDirectiveDeclaration;/, ); - expect(dtsContents).toContain( - 'ɵɵDirectiveDeclaration;', + expect(dtsContents).toMatch( + /ɵɵDirectiveDeclaration;/, ); }); @@ -343,21 +338,16 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const dtsContents = env.getContents('test.d.ts'); - expect(jsContents).toContain(`import { DirectiveA } from './dir-a'`); - expect(jsContents).toContain(`import { DirectiveB } from './dir-b'`); - expect(jsContents).toContain( - 'features: [i0.ɵɵHostDirectivesFeature(function () { ' + - 'return [i1.DirectiveA, { directive: i2.DirectiveB, inputs: ["input", "inputAlias"], ' + - 'outputs: ["output", "outputAlias"] }]; })]', + expect(jsContents).toMatch(/import { DirectiveA } from ['"].\/dir-a['"]/); + expect(jsContents).toMatch(/import { DirectiveB } from ['"].\/dir-b['"]/); + expect(jsContents).toMatch( + /features: \[i0\.ɵɵHostDirectivesFeature\(function \(\) {\s*return \[(i1\.)?DirectiveA, {\s*directive: (i2\.)?DirectiveB,\s*inputs: \[['"]input['"], ['"]inputAlias['"]],\s*outputs: \[['"]output['"], ['"]outputAlias['"]]\s*}];\s*}\)]/, ); expect(dtsContents).toContain('import * as i1 from "./dir-a";'); expect(dtsContents).toContain('import * as i2 from "./dir-b";'); - expect(dtsContents).toContain( - 'ɵɵComponentDeclaration;', + expect(dtsContents).toMatch( + /ɵɵComponentDeclaration;/, ); }); @@ -393,17 +383,16 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const dtsContents = env.getContents('test.d.ts'); - expect(jsContents).toContain(`import * as i1 from "external";`); - expect(jsContents).toContain( - 'features: [i0.ɵɵHostDirectivesFeature([{ directive: i1.ExternalDir, ' + - 'inputs: ["input", "inputAlias"], outputs: ["output", "outputAlias"] }])]', + expect(jsContents).toMatch( + /import \* as i1 from "external";|import { ExternalDir } from "external";/, + ); + expect(jsContents).toMatch( + /features: \[i0\.ɵɵHostDirectivesFeature\(\[{ directive: (i1\.)?ExternalDir, inputs: \["input", "inputAlias"], outputs: \["output", "outputAlias"] }]\)]/, ); expect(dtsContents).toContain('import * as i1 from "external";'); - expect(dtsContents).toContain( - 'ɵɵComponentDeclaration;', + expect(dtsContents).toMatch( + /ɵɵComponentDeclaration;/, ); }); @@ -444,13 +433,16 @@ runInEachFileSystem(() => { const jsContents = env.getContents('test.js'); const dtsContents = env.getContents('test.d.ts'); - expect(jsContents).toContain(`import * as i1 from "external";`); - expect(jsContents).toContain('features: [i0.ɵɵHostDirectivesFeature([i1.ExternalDir])]'); + expect(jsContents).toMatch( + /import \* as i1 from "external";|import { ExternalDir } from "external";/, + ); + expect(jsContents).toMatch( + /features: \[i0\.ɵɵHostDirectivesFeature\(\[(i1\.)?ExternalDir]\)]/, + ); expect(dtsContents).toContain('import * as i1 from "external";'); - expect(dtsContents).toContain( - 'ɵɵComponentDeclaration;', + expect(dtsContents).toMatch( + /ɵɵComponentDeclaration;/, ); }); @@ -549,16 +541,19 @@ runInEachFileSystem(() => { `, ); - // First diagnostic checks that the input is available under the original name. + // First diagnostic checks that the host directive alias does not apply. // Second diagnostic checks that an input that would otherwise be hidden by a host directive is available. - // Third diagnostic checks that the host directive alias does not apply. - const diags = env.driveDiagnostics(); + // Third diagnostic checks that the input is available under the original name. + const diags = env + .driveDiagnostics() + .slice() + .sort((a, b) => (a.messageText as string).localeCompare(b.messageText as string)); expect(diags.length).toBe(3); - expect(diags[0].messageText).toBe(`Type 'string' is not assignable to type 'number'.`); - expect(diags[1].messageText).toBe(`Type 'string' is not assignable to type 'boolean'.`); - expect(diags[2].messageText).toMatch( + expect(diags[0].messageText).toMatch( /Can't bind to 'valueAlias' since it isn't a known property of 'div'\. Find more at .*/, ); + expect(diags[1].messageText).toBe(`Type 'string' is not assignable to type 'boolean'.`); + expect(diags[2].messageText).toBe(`Type 'string' is not assignable to type 'number'.`); }); it('should expose original outputs if a directive matches both as a host directive and through the template', () => { diff --git a/packages/compiler-cli/test/ngtsc/incremental_spec.ts b/packages/compiler-cli/test/ngtsc/incremental_spec.ts index 955c76f69b48..bfe3e7046f5c 100644 --- a/packages/compiler-cli/test/ngtsc/incremental_spec.ts +++ b/packages/compiler-cli/test/ngtsc/incremental_spec.ts @@ -944,7 +944,7 @@ runInEachFileSystem(() => { // Verify that the default import is still present. const content = env.getContents('cmp.js'); - expect(content).toContain(`import DefaultService from './service';`); + expect(content).toMatch(/import DefaultService from ['"]\.\/service['"];/); }); it('should recompile when a remote change happens to a scope', () => { diff --git a/packages/compiler-cli/test/ngtsc/local_compilation_spec.ts b/packages/compiler-cli/test/ngtsc/local_compilation_spec.ts index 86ec8e95ff16..9e52abda8868 100644 --- a/packages/compiler-cli/test/ngtsc/local_compilation_spec.ts +++ b/packages/compiler-cli/test/ngtsc/local_compilation_spec.ts @@ -1047,8 +1047,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - `MainComponent.ɵfac = function MainComponent_Factory(__ngFactoryType__) { /* @ts-ignore */\nreturn new (__ngFactoryType__ || MainComponent)(i0.ɵɵdirectiveInject(i1.SomeService1), i0.ɵɵdirectiveInject(SomeService2), i0.ɵɵdirectiveInject(i2.SomeService3), i0.ɵɵdirectiveInject(i3.nested.SomeService4), i0.ɵɵinjectAttribute('title'), i0.ɵɵdirectiveInject(MESSAGE_TOKEN)); };`, + expect(jsContents).toMatch( + /MainComponent\.ɵfac = function MainComponent_Factory\(__ngFactoryType__\) \{ \/\* @ts-ignore \*\/\nreturn new \(__ngFactoryType__ \|\| MainComponent\)\(i0\.ɵɵdirectiveInject\((?:i1\.)?SomeService1\), i0\.ɵɵdirectiveInject\(SomeService2\), i0\.ɵɵdirectiveInject\((?:i2|SomeWhere3)\.SomeService3\), i0\.ɵɵdirectiveInject\((?:i3|SomeWhere4)\.nested\.SomeService4\), i0\.ɵɵinjectAttribute\(['"]title['"]\), i0\.ɵɵdirectiveInject\(MESSAGE_TOKEN\)\); \};/, ); }); @@ -1083,8 +1083,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - `MainComponent.ɵfac = function MainComponent_Factory(__ngFactoryType__) { /* @ts-ignore */\nreturn new (__ngFactoryType__ || MainComponent)(i0.ɵɵdirectiveInject(i1.SomeService1), i0.ɵɵdirectiveInject(SomeService2), i0.ɵɵdirectiveInject(i2.SomeService3), i0.ɵɵdirectiveInject(i3.nested.SomeService4), i0.ɵɵinjectAttribute('title'), i0.ɵɵdirectiveInject(MESSAGE_TOKEN)); };`, + expect(jsContents).toMatch( + /MainComponent\.ɵfac = function MainComponent_Factory\(__ngFactoryType__\) \{ \/\* @ts-ignore \*\/\nreturn new \(__ngFactoryType__ \|\| MainComponent\)\(i0\.ɵɵdirectiveInject\((?:i1\.)?SomeService1\), i0\.ɵɵdirectiveInject\(SomeService2\), i0\.ɵɵdirectiveInject\((?:i2|SomeWhere3)\.SomeService3\), i0\.ɵɵdirectiveInject\((?:i3|SomeWhere4)\.nested\.SomeService4\), i0\.ɵɵinjectAttribute\(['"]title['"]\), i0\.ɵɵdirectiveInject\(MESSAGE_TOKEN\)\); \};/, ); }); @@ -1123,8 +1123,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - `MainDirective.ɵfac = function MainDirective_Factory(__ngFactoryType__) { /* @ts-ignore */\nreturn new (__ngFactoryType__ || MainDirective)(i0.ɵɵdirectiveInject(i1.SomeService1), i0.ɵɵdirectiveInject(SomeService2), i0.ɵɵdirectiveInject(i2.SomeService3), i0.ɵɵdirectiveInject(i3.nested.SomeService4), i0.ɵɵinjectAttribute('title'), i0.ɵɵdirectiveInject(MESSAGE_TOKEN)); };`, + expect(jsContents).toMatch( + /MainDirective\.ɵfac = function MainDirective_Factory\(__ngFactoryType__\) \{ \/\* @ts-ignore \*\/\nreturn new \(__ngFactoryType__ \|\| MainDirective\)\(i0\.ɵɵdirectiveInject\((?:i1\.)?SomeService1\), i0\.ɵɵdirectiveInject\(SomeService2\), i0\.ɵɵdirectiveInject\((?:i2|SomeWhere3)\.SomeService3\), i0\.ɵɵdirectiveInject\((?:i3|SomeWhere4)\.nested\.SomeService4\), i0\.ɵɵinjectAttribute\(['"]title['"]\), i0\.ɵɵdirectiveInject\(MESSAGE_TOKEN\)\); \};/, ); }); @@ -1156,8 +1156,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - `MainDirective.ɵfac = function MainDirective_Factory(__ngFactoryType__) { /* @ts-ignore */\nreturn new (__ngFactoryType__ || MainDirective)(i0.ɵɵdirectiveInject(i1.SomeService1), i0.ɵɵdirectiveInject(SomeService2), i0.ɵɵdirectiveInject(i2.SomeService3), i0.ɵɵdirectiveInject(i3.nested.SomeService4), i0.ɵɵinjectAttribute('title'), i0.ɵɵdirectiveInject(MESSAGE_TOKEN)); };`, + expect(jsContents).toMatch( + /MainDirective\.ɵfac = function MainDirective_Factory\(__ngFactoryType__\) \{ \/\* @ts-ignore \*\/\nreturn new \(__ngFactoryType__ \|\| MainDirective\)\(i0\.ɵɵdirectiveInject\((?:i1\.)?SomeService1\), i0\.ɵɵdirectiveInject\(SomeService2\), i0\.ɵɵdirectiveInject\((?:i2|SomeWhere3)\.SomeService3\), i0\.ɵɵdirectiveInject\((?:i3|SomeWhere4)\.nested\.SomeService4\), i0\.ɵɵinjectAttribute\(['"]title['"]\), i0\.ɵɵdirectiveInject\(MESSAGE_TOKEN\)\); \};/, ); }); @@ -1195,8 +1195,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - `MainPipe.ɵfac = function MainPipe_Factory(__ngFactoryType__) { /* @ts-ignore */\nreturn new (__ngFactoryType__ || MainPipe)(i0.ɵɵdirectiveInject(i1.SomeService1, 16), i0.ɵɵdirectiveInject(SomeService2, 16), i0.ɵɵdirectiveInject(i2.SomeService3, 16), i0.ɵɵdirectiveInject(i3.nested.SomeService4, 16), i0.ɵɵinjectAttribute('title'), i0.ɵɵdirectiveInject(MESSAGE_TOKEN, 16)); };`, + expect(jsContents).toMatch( + /MainPipe\.ɵfac = function MainPipe_Factory\(__ngFactoryType__\) \{ \/\* @ts-ignore \*\/\nreturn new \(__ngFactoryType__ \|\| MainPipe\)\(i0\.ɵɵdirectiveInject\((?:i1\.)?SomeService1, 16\), i0\.ɵɵdirectiveInject\(SomeService2, 16\), i0\.ɵɵdirectiveInject\((?:i2|SomeWhere3)\.SomeService3, 16\), i0\.ɵɵdirectiveInject\((?:i3|SomeWhere4)\.nested\.SomeService4, 16\), i0\.ɵɵinjectAttribute\(['"]title['"]\), i0\.ɵɵdirectiveInject\(MESSAGE_TOKEN, 16\)\); \};/, ); }); @@ -1228,8 +1228,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - `MainPipe.ɵfac = function MainPipe_Factory(__ngFactoryType__) { /* @ts-ignore */\nreturn new (__ngFactoryType__ || MainPipe)(i0.ɵɵdirectiveInject(i1.SomeService1, 16), i0.ɵɵdirectiveInject(SomeService2, 16), i0.ɵɵdirectiveInject(i2.SomeService3, 16), i0.ɵɵdirectiveInject(i3.nested.SomeService4, 16), i0.ɵɵinjectAttribute('title'), i0.ɵɵdirectiveInject(MESSAGE_TOKEN, 16)); };`, + expect(jsContents).toMatch( + /MainPipe\.ɵfac = function MainPipe_Factory\(__ngFactoryType__\) \{ \/\* @ts-ignore \*\/\nreturn new \(__ngFactoryType__ \|\| MainPipe\)\(i0\.ɵɵdirectiveInject\((?:i1\.)?SomeService1, 16\), i0\.ɵɵdirectiveInject\(SomeService2, 16\), i0\.ɵɵdirectiveInject\((?:i2|SomeWhere3)\.SomeService3, 16\), i0\.ɵɵdirectiveInject\((?:i3|SomeWhere4)\.nested\.SomeService4, 16\), i0\.ɵɵinjectAttribute\(['"]title['"]\), i0\.ɵɵdirectiveInject\(MESSAGE_TOKEN, 16\)\); \};/, ); }); @@ -1263,8 +1263,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - `MainService.ɵfac = function MainService_Factory(__ngFactoryType__) { /* @ts-ignore */\nreturn new (__ngFactoryType__ || MainService)(i0.ɵɵinject(i1.SomeService1), i0.ɵɵinject(SomeService2), i0.ɵɵinject(i2.SomeService3), i0.ɵɵinject(i3.nested.SomeService4), i0.ɵɵinjectAttribute('title'), i0.ɵɵinject(MESSAGE_TOKEN)); };`, + expect(jsContents).toMatch( + /MainService\.ɵfac = function MainService_Factory\(__ngFactoryType__\) \{ \/\* @ts-ignore \*\/\nreturn new \(__ngFactoryType__ \|\| MainService\)\(i0\.ɵɵinject\((?:i1\.)?SomeService1\), i0\.ɵɵinject\(SomeService2\), i0\.ɵɵinject\((?:i2|SomeWhere3)\.SomeService3\), i0\.ɵɵinject\((?:i3|SomeWhere4)\.nested\.SomeService4\), i0\.ɵɵinjectAttribute\(['"]title['"]\), i0\.ɵɵinject\(MESSAGE_TOKEN\)\); \};/, ); }); @@ -1297,8 +1297,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - `MainModule.ɵfac = function MainModule_Factory(__ngFactoryType__) { /* @ts-ignore */\nreturn new (__ngFactoryType__ || MainModule)(i0.ɵɵinject(i1.SomeService1), i0.ɵɵinject(SomeService2), i0.ɵɵinject(i2.SomeService3), i0.ɵɵinject(i3.nested.SomeService4), i0.ɵɵinjectAttribute('title'), i0.ɵɵinject(MESSAGE_TOKEN)); };`, + expect(jsContents).toMatch( + /MainModule\.ɵfac = function MainModule_Factory\(__ngFactoryType__\) \{ \/\* @ts-ignore \*\/\nreturn new \(__ngFactoryType__ \|\| MainModule\)\(i0\.ɵɵinject\((?:i1\.)?SomeService1\), i0\.ɵɵinject\(SomeService2\), i0\.ɵɵinject\((?:i2|SomeWhere3)\.SomeService3\), i0\.ɵɵinject\((?:i3|SomeWhere4)\.nested\.SomeService4\), i0\.ɵɵinjectAttribute\(['"]title['"]\), i0\.ɵɵinject\(MESSAGE_TOKEN\)\); \};/, ); }); @@ -1495,6 +1495,61 @@ runInEachFileSystem(() => { `MyDirective.ɵfac = function MyDirective_Factory(__ngFactoryType__) { i0.ɵɵinvalidFactory(); };`, ); }); + + it('should guard unresolvable constructor parameter types in class metadata', () => { + env.write( + 'test.ts', + ` + import {Directive, Optional} from '@angular/core'; + import {SomeService1} from './some-where1' + import SomeService2 from './some-where2' + + @Directive({ + selector: '[main]', + }) + export class MainDirective { + constructor( + private someService1: SomeService1, + @Optional() private someService2: SomeService2, + ) {} + } + `, + ); + + env.driveMain(); + const jsContents = env.getContents('test.js'); + + // Neither type could be confirmed to exist at runtime, so each parameter type is guarded + // individually on the `type` property assignment. Even when a parameter decorator forces + // the object literal across multiple lines, the comment stays on the line immediately + // before `type:`. + expect(jsContents).toMatch( + /\(\) => \[\{\s*\/\* @ts-ignore \*\/\n\s*type: (?:i1\.)?SomeService1\s*\}, \{\s*\/\* @ts-ignore \*\/\n\s*type: SomeService2,\s*decorators: \[\{\s*type: Optional\s*\}\]\s*\}\], null\)/, + ); + }); + + it('should not guard constructor parameter types that are known to exist at runtime', () => { + env.write( + 'test.ts', + ` + import {Directive} from '@angular/core'; + + export class SomeService {} + + @Directive({ + selector: '[main]', + }) + export class MainDirective { + constructor(private someService: SomeService) {} + } + `, + ); + + env.driveMain(); + const jsContents = env.getContents('test.js'); + + expect(jsContents).toContain('() => [{ type: SomeService }], null)'); + }); }); describe('LOCAL_COMPILATION_UNRESOLVED_CONST errors', () => { @@ -1873,8 +1928,8 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - 'features: [i0.ɵɵHostDirectivesFeature([ExternalDirective, n.ExternalDirective, LocalDirective])]', + expect(jsContents).toMatch( + /features: \[i0\.ɵɵHostDirectivesFeature\(\[ExternalDirective, \w+\.ExternalDirective, LocalDirective\]\)\]/, ); }); @@ -2002,11 +2057,11 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - 'features: [i0.ɵɵHostDirectivesFeature(function () { return [DirectiveB]; })]', + expect(jsContents).toMatch( + /features: \[i0\.ɵɵHostDirectivesFeature\(function \(\) \{\s*return \[DirectiveB\];\s*\}\)\]/, ); - expect(jsContents).toContain( - 'features: [i0.ɵɵHostDirectivesFeature(function () { return [{ directive: DirectiveA, inputs: ["value", "value"] }]; })]', + expect(jsContents).toMatch( + /features: \[i0\.ɵɵHostDirectivesFeature\(function \(\) \{\s*return \[\{ directive: DirectiveA, inputs: \["value", "value"\] \}\];\s*\}\)\]/, ); }); @@ -2131,7 +2186,9 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain('inputs: { x: [2, "x", "x", (v) => v + \'TRANSFORMED!\'] }'); + expect(jsContents).toMatch( + /inputs: \{ x: \[2, "x", "x", \(v\) => v \+ ['"]TRANSFORMED!['"]\] \}/, + ); }); it('should not check inline function param type', () => { @@ -2153,7 +2210,9 @@ runInEachFileSystem(() => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain('inputs: { x: [2, "x", "x", v => v + \'TRANSFORMED!\'] }'); + expect(jsContents).toMatch( + /inputs: \{ x: \[2, "x", "x", v => v \+ ['"]TRANSFORMED!['"]\] \}/, + ); }); }); @@ -2196,12 +2255,12 @@ runInEachFileSystem(() => { import {DeferredCmpA} from './deferred-a'; import {DeferredCmpB} from './deferred-b'; @Component({ - deferredImports: [DeferredCmpA, DeferredCmpB], + deferredImports: { block1: [DeferredCmpA], block2: [DeferredCmpB] }, template: \` - @defer { + @defer (name block1) { } - @defer { + @defer (name block2) { } \`, @@ -2217,10 +2276,11 @@ runInEachFileSystem(() => { // Expect that all deferrableImports in local compilation mode // are located in a single function (since we can't detect in // the local mode which components belong to which block). - expect(cleanNewLines(jsContents)).toContain( - 'const AppCmp_DeferFn = () => [/* @ts-ignore */ ' + - 'import("./deferred-a").then(m => m.DeferredCmpA), /* @ts-ignore */ ' + - 'import("./deferred-b").then(m => m.DeferredCmpB)];', + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmp_Defer_1_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-a"\)\.then\(\(?m\)? => m\.DeferredCmpA\) ?\];/, + ); + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmp_Defer_4_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-b"\)\.then\(\(?m\)? => m\.DeferredCmpB\) ?\];/, ); // Make sure there are no eager imports present in the output. @@ -2228,15 +2288,12 @@ runInEachFileSystem(() => { expect(jsContents).not.toContain(`from './deferred-b'`); // All defer instructions use the same dependency function. - expect(jsContents).toContain('ɵɵdefer(1, 0, AppCmp_DeferFn);'); - expect(jsContents).toContain('ɵɵdefer(4, 3, AppCmp_DeferFn);'); + expect(jsContents).toContain('ɵɵdefer(1, 0, AppCmp_Defer_1_DepsFn);'); + expect(jsContents).toContain('ɵɵdefer(4, 3, AppCmp_Defer_4_DepsFn);'); // Expect `ɵsetClassMetadataAsync` to contain dynamic imports too. - expect(cleanNewLines(jsContents)).toContain( - 'ɵsetClassMetadataAsync(AppCmp, () => [/* @ts-ignore */ ' + - 'import("./deferred-a").then(m => m.DeferredCmpA), /* @ts-ignore */ ' + - 'import("./deferred-b").then(m => m.DeferredCmpB)], ' + - '(DeferredCmpA, DeferredCmpB) => {', + expect(cleanNewLines(jsContents)).toMatch( + /ɵsetClassMetadataAsync\(AppCmp, \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-a"\)\.then\(\(?m\)? => m\.DeferredCmpA\), (?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-b"\)\.then\(\(?m\)? => m\.DeferredCmpB\) ?\], \(DeferredCmpA, DeferredCmpB\) => \{/, ); }); @@ -2281,7 +2338,7 @@ runInEachFileSystem(() => { // and do not generate defer dependency functions for `@defer` instructions. // Eager imports are retained in the output. - expect(jsContents).toContain(`from './deferred-a'`); + expect(jsContents).toMatch(/from ['"]\.\/deferred-a['"]/); // Defer instructions do not have a dependency function, // since all dependencies were defined in `@Component.imports`. @@ -2340,13 +2397,13 @@ runInEachFileSystem(() => { import {EagerCmpA} from './eager-a'; @Component({ imports: [EagerCmpA], - deferredImports: [DeferredCmpA, DeferredCmpB], + deferredImports: { block1: [DeferredCmpA], block2: [DeferredCmpB] }, template: \` - @defer { + @defer (name block1) { } - @defer { + @defer (name block2) { } @@ -2364,29 +2421,27 @@ runInEachFileSystem(() => { // are located in a single function (since we can't detect in // the local mode which components belong to which block). // Eager dependencies are **not* included here. - expect(cleanNewLines(jsContents)).toContain( - 'const AppCmp_DeferFn = () => [/* @ts-ignore */ ' + - 'import("./deferred-a").then(m => m.DeferredCmpA), /* @ts-ignore */ ' + - 'import("./deferred-b").then(m => m.DeferredCmpB)];', + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmp_Defer_1_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-a"\)\.then\(\(?m\)? => m\.DeferredCmpA\) ?\];/, + ); + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmp_Defer_4_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-b"\)\.then\(\(?m\)? => m\.DeferredCmpB\) ?\];/, ); // Make sure there are no eager imports present in the output. - expect(jsContents).not.toContain(`from './deferred-a'`); - expect(jsContents).not.toContain(`from './deferred-b'`); + expect(jsContents).not.toMatch(/from ['"]\.\/deferred-a['"]/); + expect(jsContents).not.toMatch(/from ['"]\.\/deferred-b['"]/); // Eager dependencies retain their imports. - expect(jsContents).toContain(`from './eager-a';`); + expect(jsContents).toMatch(/from ['"]\.\/eager-a['"];/); // All defer instructions use the same dependency function. - expect(jsContents).toContain('ɵɵdefer(1, 0, AppCmp_DeferFn);'); - expect(jsContents).toContain('ɵɵdefer(4, 3, AppCmp_DeferFn);'); + expect(jsContents).toContain('ɵɵdefer(1, 0, AppCmp_Defer_1_DepsFn);'); + expect(jsContents).toContain('ɵɵdefer(4, 3, AppCmp_Defer_4_DepsFn);'); // Expect `ɵsetClassMetadataAsync` to contain dynamic imports too. - expect(cleanNewLines(jsContents)).toContain( - 'ɵsetClassMetadataAsync(AppCmp, () => [/* @ts-ignore */ ' + - 'import("./deferred-a").then(m => m.DeferredCmpA), /* @ts-ignore */ ' + - 'import("./deferred-b").then(m => m.DeferredCmpB)], ' + - '(DeferredCmpA, DeferredCmpB) => {', + expect(cleanNewLines(jsContents)).toMatch( + /ɵsetClassMetadataAsync\(AppCmp, \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-a"\)\.then\(\(?m\)? => m\.DeferredCmpA\), (?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-b"\)\.then\(\(?m\)? => m\.DeferredCmpB\) ?\], \(DeferredCmpA, DeferredCmpB\) => \{/, ); }); @@ -2426,9 +2481,9 @@ runInEachFileSystem(() => { import {DeferredCmpA, DeferredCmpB} from './deferred-deps'; @Component({ - deferredImports: [DeferredCmpA], + deferredImports: { block1: [DeferredCmpA] }, template: \` - @defer { + @defer (name block1) { } \`, @@ -2436,9 +2491,9 @@ runInEachFileSystem(() => { export class AppCmpA {} @Component({ - deferredImports: [DeferredCmpB], + deferredImports: { block1: [DeferredCmpB] }, template: \` - @defer { + @defer (name block1) { } \`, @@ -2452,30 +2507,26 @@ runInEachFileSystem(() => { // Expect that we generate 2 different defer functions // (one for each component). - expect(cleanNewLines(jsContents)).toContain( - 'const AppCmpA_DeferFn = () => [/* @ts-ignore */ ' + - 'import("./deferred-deps").then(m => m.DeferredCmpA)]', + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmpA_Defer_1_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-deps"\)\.then\(\(?m\)? => m\.DeferredCmpA\) ?\]/, ); - expect(cleanNewLines(jsContents)).toContain( - 'const AppCmpB_DeferFn = () => [/* @ts-ignore */ ' + - 'import("./deferred-deps").then(m => m.DeferredCmpB)]', + expect(cleanNewLines(jsContents)).toMatch( + /const AppCmpB_Defer_1_DepsFn = \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-deps"\)\.then\(\(?m\)? => m\.DeferredCmpB\) ?\]/, ); // Make sure there are no eager imports present in the output. - expect(jsContents).not.toContain(`from './deferred-deps'`); + expect(jsContents).not.toMatch(/from ['"]\.\/deferred-deps['"]/); // Defer instructions use per-component dependency function. - expect(jsContents).toContain('ɵɵdefer(1, 0, AppCmpA_DeferFn)'); - expect(jsContents).toContain('ɵɵdefer(1, 0, AppCmpB_DeferFn)'); + expect(jsContents).toContain('ɵɵdefer(1, 0, AppCmpA_Defer_1_DepsFn)'); + expect(jsContents).toContain('ɵɵdefer(1, 0, AppCmpB_Defer_1_DepsFn)'); // Expect `ɵsetClassMetadataAsync` to contain dynamic imports too. - expect(cleanNewLines(jsContents)).toContain( - 'ɵsetClassMetadataAsync(AppCmpA, () => [/* @ts-ignore */ ' + - 'import("./deferred-deps").then(m => m.DeferredCmpA)]', + expect(cleanNewLines(jsContents)).toMatch( + /ɵsetClassMetadataAsync\(AppCmpA, \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-deps"\)\.then\(\(?m\)? => m\.DeferredCmpA\) ?\]/, ); - expect(cleanNewLines(jsContents)).toContain( - 'ɵsetClassMetadataAsync(AppCmpB, () => [/* @ts-ignore */ ' + - 'import("./deferred-deps").then(m => m.DeferredCmpB)]', + expect(cleanNewLines(jsContents)).toMatch( + /ɵsetClassMetadataAsync\(AppCmpB, \(\) => \[ ?(?:\/\* @ts-ignore \*\/ )?import\("\.\/deferred-deps"\)\.then\(\(?m\)? => m\.DeferredCmpB\) ?\]/, ); }, ); @@ -2520,9 +2571,9 @@ runInEachFileSystem(() => { import {DeferredCmpA, DeferredCmpB, utilityFn} from './deferred-deps'; @Component({ - deferredImports: [DeferredCmpA], + deferredImports: { block1: [DeferredCmpA] }, template: \` - @defer { + @defer (name block1) { } \`, @@ -2534,9 +2585,9 @@ runInEachFileSystem(() => { } @Component({ - deferredImports: [DeferredCmpB], + deferredImports: { block1: [DeferredCmpB] }, template: \` - @defer { + @defer (name block1) { } \`, diff --git a/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts b/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts index 030d52793f30..69472f54d86e 100644 --- a/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts +++ b/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts @@ -13,9 +13,13 @@ import {CompilerOptions} from '../../src/transformers/api'; import {createCompilerHost} from '../../src/transformers/compiler_host'; import {ErrorCode, ERROR_DETAILS_PAGE_BASE_URL, ngErrorCode} from '../../src/ngtsc/diagnostics'; -import {absoluteFrom} from '../../src/ngtsc/file_system'; +import {absoluteFrom, getFileSystem} from '../../src/ngtsc/file_system'; import {runInEachFileSystem} from '../../src/ngtsc/file_system/testing'; -import {loadStandardTestFiles} from '../../src/ngtsc/testing'; +import { + isNgpTestMode, + loadStandardTestFiles, + performNgpCompilationSync, +} from '../../src/ngtsc/testing'; import { restoreTypeScriptVersionForTesting, setTypeScriptVersionForTesting, @@ -114,8 +118,7 @@ runInEachFileSystem((os: string) => { expect(jsContents).toContain('Service.ɵprov ='); expect(jsContents).not.toContain('__decorate'); const dtsContents = env.getContents('test.d.ts'); - expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); - expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); + expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDeclaration;'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDeclaration;'); }); @@ -137,7 +140,7 @@ runInEachFileSystem((os: string) => { expect(jsContents).toContain('Store.ɵprov ='); const dtsContents = env.getContents('test.d.ts'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDeclaration, never>;'); - expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration>;'); + expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); }); it('should compile Injectables with providedIn without errors', () => { @@ -161,14 +164,13 @@ runInEachFileSystem((os: string) => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('Dep.ɵprov ='); expect(jsContents).toContain('Service.ɵprov ='); - expect(jsContents).toContain( - 'Service.ɵfac = function Service_Factory(__ngFactoryType__) { /* @ts-ignore */\nreturn new (__ngFactoryType__ || Service)(i0.ɵɵinject(Dep)); };', + expect(jsContents).toMatch( + /Service\.ɵfac = function Service_Factory\(__ngFactoryType__\) \{ (?:\/\* @ts-ignore \*\/\s*)?return new \(__ngFactoryType__ \|\| Service\)\(i0\.ɵɵinject\(Dep\)\); \};/, ); - expect(jsContents).toContain("providedIn: 'root' })"); + expect(jsContents).toMatch(/providedIn: ['"]root['"] \}\)/); expect(jsContents).not.toContain('__decorate'); const dtsContents = env.getContents('test.d.ts'); - expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); - expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); + expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDeclaration;'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDeclaration;'); }); @@ -194,10 +196,10 @@ runInEachFileSystem((os: string) => { expect(jsContents).toContain( 'Service_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Service)(); }', ); - expect(jsContents).toContain(", providedIn: 'root' });"); + expect(jsContents).toMatch(/, providedIn: ['"]root['"] \}\);/); expect(jsContents).not.toContain('__decorate'); const dtsContents = env.getContents('test.d.ts'); - expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); + expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDeclaration;'); }); @@ -225,8 +227,8 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - 'i0.ɵɵanimateEnterListener(function TestComponent_Conditional_1_Template_p_animateenter_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.animateFn($event)); });', + expect(jsContents).toMatch( + /i0\.ɵɵanimateEnterListener\(function TestComponent_Conditional_1_Template_p_animateenter_0_listener\(\$event\) \{\s*i0\.ɵɵrestoreView\(_r1\);\s*const ctx_r1 = i0\.ɵɵnextContext\(\);\s*return i0\.ɵɵresetView\(ctx_r1\.animateFn\(\$event\)\);\s*\}\);/, ); const instances = jsContents.match(/ɵɵanimateEnter/g); expect(instances?.length).toBe(1); @@ -253,8 +255,8 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - 'i0.ɵɵanimateEnter(function TestComponent_Conditional_1_Template_animateenter_cb() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.fade()); });', + expect(jsContents).toMatch( + /i0\.ɵɵanimateEnter\(function TestComponent_Conditional_1_Template_animateenter_cb\(\) \{\s*i0\.ɵɵrestoreView\(_r1\);\s*const ctx_r1 = i0\.ɵɵnextContext\(\);\s*return i0\.ɵɵresetView\(ctx_r1\.fade\(\)\);\s*\}\);/, ); const instances = jsContents.match(/ɵɵanimateEnter/g); expect(instances?.length).toBe(1); @@ -281,8 +283,8 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - 'i0.ɵɵanimateEnter(function TestComponent_Conditional_1_Template_animateenter_cb() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.classList); });', + expect(jsContents).toMatch( + /i0\.ɵɵanimateEnter\(function TestComponent_Conditional_1_Template_animateenter_cb\(\) \{\s*i0\.ɵɵrestoreView\(_r1\);\s*const ctx_r1 = i0\.ɵɵnextContext\(\);\s*return i0\.ɵɵresetView\(ctx_r1\.classList\);\s*\}\);/, ); const instances = jsContents.match(/ɵɵanimateEnter/g); expect(instances?.length).toBe(1); @@ -382,8 +384,8 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - 'i0.ɵɵanimateLeaveListener(function TestComponent_Conditional_1_Template_p_animateleave_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.animateFn($event)); });', + expect(jsContents).toMatch( + /i0\.ɵɵanimateLeaveListener\(function TestComponent_Conditional_1_Template_p_animateleave_0_listener\(\$event\) \{\s*i0\.ɵɵrestoreView\(_r1\);\s*const ctx_r1 = i0\.ɵɵnextContext\(\);\s*return i0\.ɵɵresetView\(ctx_r1\.animateFn\(\$event\)\);\s*\}\);/, ); const instances = jsContents.match(/ɵɵanimateLeave/g); expect(instances?.length).toBe(1); @@ -410,8 +412,8 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - 'i0.ɵɵanimateLeave(function TestComponent_Conditional_1_Template_animateleave_cb() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.fade()); });', + expect(jsContents).toMatch( + /i0\.ɵɵanimateLeave\(function TestComponent_Conditional_1_Template_animateleave_cb\(\) \{\s*i0\.ɵɵrestoreView\(_r1\);\s*const ctx_r1 = i0\.ɵɵnextContext\(\);\s*return i0\.ɵɵresetView\(ctx_r1\.fade\(\)\);\s*\}\);/, ); const instances = jsContents.match(/ɵɵanimateLeave/g); expect(instances?.length).toBe(1); @@ -438,8 +440,8 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - 'i0.ɵɵanimateLeave(function TestComponent_Conditional_1_Template_animateleave_cb() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.classList); });', + expect(jsContents).toMatch( + /i0\.ɵɵanimateLeave\(function TestComponent_Conditional_1_Template_animateleave_cb\(\) \{\s*i0\.ɵɵrestoreView\(_r1\);\s*const ctx_r1 = i0\.ɵɵnextContext\(\);\s*return i0\.ɵɵresetView\(ctx_r1\.classList\);\s*\}\);/, ); const instances = jsContents.match(/ɵɵanimateLeave/g); expect(instances?.length).toBe(1); @@ -491,19 +493,21 @@ runInEachFileSystem((os: string) => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('Service.ɵprov ='); - expect(jsContents).toContain( - 'factory: function Service_Factory(__ngFactoryType__) { let __ngConditionalFactory__ = null; if (__ngFactoryType__) {', + expect(jsContents).toMatch( + /factory: function Service_Factory\(__ngFactoryType__\) \{\s*let __ngConditionalFactory__ = null;\s*if \(__ngFactoryType__\) \{/, ); - expect(jsContents).toContain( - '/* @ts-ignore */\nreturn new (__ngFactoryType__ || Service)(i0.ɵɵinject(Dep));', + expect(jsContents).toMatch( + /(?:\/\* @ts-ignore \*\/\s*)?return new \(__ngFactoryType__ \|\| Service\)\(i0\.ɵɵinject\(Dep\)\);/, ); - expect(jsContents).toContain( - '__ngConditionalFactory__ = ((dep) => new Service(dep))(i0.ɵɵinject(Dep));', + expect(jsContents).toMatch( + /__ngConditionalFactory__ = \(\(dep\) => new Service\(dep\)\)\(i0\.ɵɵinject\(Dep\)\)\)?;/, + ); + expect(jsContents).toMatch( + /return __ngConditionalFactory__;\s*\},\s*providedIn: ['"]root['"] \}\);/, ); - expect(jsContents).toContain("return __ngConditionalFactory__; }, providedIn: 'root' });"); expect(jsContents).not.toContain('__decorate'); const dtsContents = env.getContents('test.d.ts'); - expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); + expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDeclaration;'); }); @@ -531,19 +535,21 @@ runInEachFileSystem((os: string) => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('Service.ɵprov ='); - expect(jsContents).toContain( - 'factory: function Service_Factory(__ngFactoryType__) { let __ngConditionalFactory__ = null; if (__ngFactoryType__) {', + expect(jsContents).toMatch( + /factory: function Service_Factory\(__ngFactoryType__\) \{\s*let __ngConditionalFactory__ = null;\s*if \(__ngFactoryType__\) \{/, ); - expect(jsContents).toContain( - '/* @ts-ignore */\nreturn new (__ngFactoryType__ || Service)(i0.ɵɵinject(Dep));', + expect(jsContents).toMatch( + /(?:\/\* @ts-ignore \*\/\s*)?return new \(__ngFactoryType__ \|\| Service\)\(i0\.ɵɵinject\(Dep\)\);/, ); - expect(jsContents).toContain( - '__ngConditionalFactory__ = ((dep) => new Service(dep))(i0.ɵɵinject(Dep, 10));', + expect(jsContents).toMatch( + /__ngConditionalFactory__ = \(\(dep\) => new Service\(dep\)\)\(i0\.ɵɵinject\(Dep, 10\)\)\)?;/, + ); + expect(jsContents).toMatch( + /return __ngConditionalFactory__;\s*\},\s*providedIn: ['"]root['"] \}\);/, ); - expect(jsContents).toContain(`return __ngConditionalFactory__; }, providedIn: 'root' });`); expect(jsContents).not.toContain('__decorate'); const dtsContents = env.getContents('test.d.ts'); - expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); + expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDeclaration;'); }); @@ -572,14 +578,13 @@ runInEachFileSystem((os: string) => { expect(jsContents).toContain('Dep.ɵprov ='); expect(jsContents).toContain('Service.ɵprov ='); expect(jsContents).toContain('Mod.ɵmod ='); - expect(jsContents).toContain( - 'Service.ɵfac = function Service_Factory(__ngFactoryType__) { /* @ts-ignore */\nreturn new (__ngFactoryType__ || Service)(i0.ɵɵinject(Dep)); };', + expect(jsContents).toMatch( + /Service\.ɵfac = function Service_Factory\(__ngFactoryType__\) \{ (?:\/\* @ts-ignore \*\/\s*)?return new \(__ngFactoryType__ \|\| Service\)\(i0\.ɵɵinject\(Dep\)\); \};/, ); expect(jsContents).toContain('providedIn: i0.forwardRef(() => Mod) })'); expect(jsContents).not.toContain('__decorate'); const dtsContents = env.getContents('test.d.ts'); - expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); - expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); + expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDeclaration;'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDeclaration;'); expect(dtsContents).toContain('i0.ɵɵFactoryDeclaration;'); @@ -628,9 +633,8 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - `Service.ɵfac = function Service_Factory(__ngFactoryType__) { ` + - `/* @ts-ignore */\nreturn new (__ngFactoryType__ || Service)(i0.ɵɵinject(Dep), i0.ɵɵinject(OptionalDep, 8)); };`, + expect(jsContents).toMatch( + /Service\.ɵfac = function Service_Factory\(__ngFactoryType__\) \{ (?:\/\* @ts-ignore \*\/\s*)?return new \(__ngFactoryType__ \|\| Service\)\(i0\.ɵɵinject\(Dep\), i0\.ɵɵinject\(OptionalDep, 8\)\); \};/, ); }); @@ -950,14 +954,11 @@ runInEachFileSystem((os: string) => { env.driveMain(); - expect(trim(env.getContents('test.js'))).toContain( - trim(` - MyTestComponent.propDecorators = { - name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false, transform: undefined },] }] - }; - `), + expect(trim(env.getContents('test.js'))).toMatch( + /i0\.Input[\s\S]*\{\s*isSignal:\s*true,\s*alias:\s*"name",\s*required:\s*false\s*,?\s*\}/, ); expect(env.getContents('test.js')).not.toContain('NonJitComponent.propDecorators'); + expect(env.getContents('test.js')).not.toContain('NonJitComponent.prototype, "nonJitInput"'); }); it('should run JIT transform for `NgModule` marked as `jit: true`', () => { @@ -982,15 +983,49 @@ runInEachFileSystem((os: string) => { env.driveMain(); - expect(trim(env.getContents('test.js'))).toContain( - trim(` - MyJitModule.ctorParameters = () => [ - { type: Injector } - ];`), + expect(trim(env.getContents('test.js'))).toMatch( + /MyJitModule\.ctorParameters = \(\) => \[\s*\{ type: Injector \}\s*\];/, ); expect(env.getContents('test.js')).not.toContain('NonJitModule.ctorParameters'); }); + it('should synthesize boxed primitive/built-in types and null for untyped params in `jit: true` ctorParameters', () => { + env.tsconfig({noImplicitAny: false}); + env.write( + 'test.ts', + ` + import {Component, Optional} from '@angular/core'; + + export interface SomeInterface {} + + @Component({ + template: '{{ view }}', + jit: true, + }) + export class TestHostComponent { + constructor( + public view: string, + public visible: boolean, + count: number, + nullable: string | null, + items: string[], + fn: () => void, + obj: object, + iface: SomeInterface, + untyped, + @Optional() untypedOptional, + ) {} + } + `, + ); + + env.driveMain(); + + expect(trim(env.getContents('test.js'))).toMatch( + /TestHostComponent\.ctorParameters = \(\) => \[\s*\{ type: String \},\s*\{ type: Boolean \},\s*\{ type: Number \},\s*\{ type: String \},\s*\{ type: Array \},\s*\{ type: Function \},\s*\{ type: Object \},\s*\{ type: undefined \},\s*null,\s*\{ type: undefined, decorators: \[\{ type: Optional \}\] \},?\s*\];/, + ); + }); + // This test triggers the Tsickle compiler which asserts that the file-paths // are valid for the real OS. When on non-Windows systems it doesn't like paths // that start with `C:`. @@ -1022,8 +1057,8 @@ runInEachFileSystem((os: string) => { const jsContents = env.getContents('test.js'); expect(jsContents).toContain('Dir.ɵfac = /** @pureOrBreakMyCode */ (() => {'); - expect(jsContents).toContain( - '(ɵDir_BaseFactory || (ɵDir_BaseFactory = i0.ɵɵgetInheritedFactory(Dir)))(__ngFactoryType__ || Dir);', + expect(jsContents).toMatch( + /\(ɵDir_BaseFactory \|\| \(ɵDir_BaseFactory = i0\.ɵɵgetInheritedFactory\(Dir\)\)\)\(\(?__ngFactoryType__ \|\| Dir\)?\);/, ); }); @@ -1048,7 +1083,7 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain('/** @nocollapse */ TestCmp.ɵcmp'); + expect(jsContents).toMatch(/\/\*\* @nocollapse \*\/\s*TestCmp\.ɵcmp/); }); it('should still perform schema checks in embedded views', () => { @@ -1129,20 +1164,8 @@ runInEachFileSystem((os: string) => { // insertion by checking that there are no function return statements // not wrapped in parentheses expect(trim(jsContents)).not.toMatch(/return\s+function/); - expect(trim(jsContents)).toContain( - trim(` - [{ - provide: 'token-a', - useFactory: ((service) => { - return (() => service.id); - }) - }, { - provide: 'token-b', - useFactory: (function (service) { - return (function () { return service.id; }); - }) - }] - `), + expect(trim(jsContents)).toMatch( + /\[\{\s*provide:\s*['"]token-a['"],\s*useFactory:\s*\(\(service\)\s*=>\s*\{\s*return\s*\(\(\)\s*=>\s*service\.id\);\s*\}\)\s*\},\s*\{\s*provide:\s*['"]token-b['"],\s*useFactory:\s*\(function\s*\(service\)\s*\{\s*return\s*\(function\s*\(\)\s*\{\s*return\s*service\.id;\s*\}\);\s*\}\)\s*\}\]/, ); }; @@ -1740,7 +1763,7 @@ runInEachFileSystem((os: string) => { 'i0.ɵɵdefineDirective({ type: TestBase, inputs: { input: "input" } });', ); - const dtsContents = env.getContents('test.d.ts'); + const dtsContents = trim(env.getContents('test.d.ts')); const expectedDirectiveDeclaration = `static ɵdir: i0.ɵɵDirectiveDeclaration;`; expect(dtsContents).toContain(expectedDirectiveDeclaration); }); @@ -1899,7 +1922,9 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain(`i0.ɵɵdefineNgModule({ type: TestModule, id: 'test' })`); + expect(jsContents).toMatch( + /i0\.ɵɵdefineNgModule\(\{ type: TestModule, id: ['"]test['"] \}\)/, + ); }); it('should warn when an NgModule id is defined as module.id, and not emit it', () => { @@ -1945,7 +1970,7 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain(`i0.ɵɵregisterNgModuleType(TestModule, 'test')`); + expect(jsContents).toMatch(/i0\.ɵɵregisterNgModuleType\(TestModule, ['"]test['"]\)/); }); it('should filter out directives and pipes from module exports in the injector def', () => { @@ -2065,10 +2090,8 @@ runInEachFileSystem((os: string) => { 'TestModule.ɵfac = function TestModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TestModule)(); }', ); expect(jsContents).toContain('i0.ɵɵdefineNgModule({ type: TestModule });'); - expect(jsContents).toContain( - `TestModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ ` + - `providers: [{ provide: Token, useValue: 'test' }], ` + - `imports: [OtherModule] });`, + expect(jsContents).toMatch( + /TestModule\.ɵinj = \/\*@__PURE__\*\/ i0\.ɵɵdefineInjector\(\{ providers: \[\{ provide: Token, useValue: ['"]test['"] \}\], imports: \[OtherModule\] \}\);/, ); const dtsContents = env.getContents('test.d.ts'); @@ -2207,7 +2230,7 @@ runInEachFileSystem((os: string) => { const jsContents = env.getContents('test.js'); const dtsContents = env.getContents('test.d.ts'); - expect(jsContents).toContain("import { Foo } from './foo';"); + expect(jsContents).toMatch(/import \{ Foo \} from ['"]\.\/foo['"];/); expect(jsContents).not.toMatch(/as i[0-9] from ".\/foo"/); expect(dtsContents).toContain('as i1 from "./foo";'); }); @@ -2256,7 +2279,7 @@ runInEachFileSystem((os: string) => { const jsContents = env.getContents('test.js'); const dtsContents = env.getContents('test.d.ts'); - expect(jsContents).toContain("import { Foo } from 'foo';"); + expect(jsContents).toMatch(/import \{ Foo \} from ['"]foo['"];/); expect(jsContents).not.toMatch(/as i[0-9] from "foo"/); expect(dtsContents).toContain('as i1 from "foo";'); }); @@ -3403,7 +3426,7 @@ runInEachFileSystem((os: string) => { }); it('should produce a diangostic if the transform function first parameter has no arguments', () => { - env.tsconfig({noImplicitAny: false}); + env.tsconfig({}, {noImplicitAny: false}); env.write( '/test.ts', ` @@ -3706,10 +3729,7 @@ runInEachFileSystem((os: string) => { // Validate that each class's .d.ts declaration also has an injectable // definition. - expect(dtsContents).toContain('ɵɵInjectableDeclaration/g)?.length).toBe(4); }); it('should not compile a component and a directive annotation on the same class', () => { @@ -3752,8 +3772,8 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); expect(jsContents).toContain('Directive({'); - expect(jsContents).toContain( - ` { type: String, decorators: [{ type: Inject, args: ['foo',] }] }`, + expect(jsContents).toMatch( + /\{ type: (?:String|undefined), decorators: \[\{ type: Inject, args: \[['"]foo['"],?\] \}\] \}/, ); }); }); @@ -3995,7 +4015,7 @@ runInEachFileSystem((os: string) => { }); it('should report an error when no type is present', () => { - env.tsconfig({strictInjectionParameters: true, noImplicitAny: false}); + env.tsconfig({strictInjectionParameters: true}, {noImplicitAny: false}); env.write( `test.ts`, ` @@ -5133,8 +5153,8 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - `FooCmp.ɵfac = function FooCmp_Factory(__ngFactoryType__) { /* @ts-ignore */\nreturn new (__ngFactoryType__ || FooCmp)(i0.ɵɵinjectAttribute("test"), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); }`, + expect(jsContents).toMatch( + /FooCmp\.ɵfac = function FooCmp_Factory\(__ngFactoryType__\) \{ (?:\/\* @ts-ignore \*\/\s*)?return new \(__ngFactoryType__ \|\| FooCmp\)\(i0\.ɵɵinjectAttribute\("test"\), i0\.ɵɵdirectiveInject\((?:i0\.)?ChangeDetectorRef\), i0\.ɵɵdirectiveInject\((?:i0\.)?ElementRef\), i0\.ɵɵdirectiveInject\((?:i0\.)?Injector\), i0\.ɵɵdirectiveInject\((?:i0\.)?Renderer2\), i0\.ɵɵdirectiveInject\((?:i0\.)?TemplateRef\), i0\.ɵɵdirectiveInject\((?:i0\.)?ViewContainerRef\)\); \}/, ); }); @@ -5186,7 +5206,7 @@ runInEachFileSystem((os: string) => { ); env.driveMain(); - const dtsContents = env.getContents('test.d.ts'); + const dtsContents = trim(env.getContents('test.d.ts')); expect(dtsContents).toContain( 'static ɵfac: i0.ɵɵFactoryDeclaration { ); env.driveMain(); - const dtsContents = env.getContents('test.d.ts'); + const dtsContents = trim(env.getContents('test.d.ts')); expect(dtsContents).toContain(`static ɵfac: i0.ɵɵFactoryDeclaration`); expect(dtsContents).toContain( `static ɵfac: i0.ɵɵFactoryDeclaration`, @@ -5671,8 +5691,8 @@ runInEachFileSystem((os: string) => { ); env.driveMain(); - expect(env.getContents('test.js')).toContain( - `ɵɵdomListener("click", function TestCmp_Template_div_click_0_listener() { return 123; });`, + expect(env.getContents('test.js')).toMatch( + /ɵɵdomListener\("click", function TestCmp_Template_div_click_0_listener\(\) \{\s*return 123;\s*\}\);/, ); }); @@ -5763,6 +5783,74 @@ runInEachFileSystem((os: string) => { expect(trim(jsContents)).toContain(trim(hostBindingsFn)); }); + it('should report diagnostics for invalid @HostBinding decorator attribute names', () => { + env.write( + 'test.ts', + ` + import {Directive, HostBinding} from '@angular/core'; + + @Directive({selector: '[test1]'}) + export class Dir1 { + @HostBinding('attr.onclick') onClick = 'alert(1)'; + } + + @Directive({selector: '[test2]'}) + export class Dir2 { + @HostBinding('attr.:onclick') colonOnClick = 'alert(1)'; + } + + @Directive({selector: '[test3]'}) + export class Dir3 { + @HostBinding('attr.::onclick') doubleColonOnClick = 'alert(1)'; + } + + @Directive({selector: '[test4]'}) + export class Dir4 { + @HostBinding('attr.svg:onclick') svgOnClick = 'alert(1)'; + } + + @Directive({selector: '[test5]'}) + export class Dir5 { + @HostBinding('attr.:href') colonHref = 'javascript:alert(1)'; + } + + @Directive({selector: '[test6]'}) + export class Dir6 { + @HostBinding('attr.::href') doubleColonHref = 'javascript:alert(1)'; + } + `, + ); + + const errors = env.driveDiagnostics(); + const messages = errors.map((e) => ts.flattenDiagnosticMessageText(e.messageText, '\n')); + expect(messages).toEqual([ + "Binding to event attribute 'onclick' is disallowed for security reasons, please use (click)=...", + "Invalid attribute name ':onclick'. Attribute names cannot start with a colon.", + "Invalid attribute name '::onclick'. Attribute names cannot start with a colon.", + "Binding to event attribute 'svg:onclick' is disallowed for security reasons, please use (click)=...", + "Invalid attribute name ':href'. Attribute names cannot start with a colon.", + "Invalid attribute name '::href'. Attribute names cannot start with a colon.", + ]); + }); + + it('should allow @HostBinding with colon variant class and style bindings', () => { + env.write( + 'test.ts', + ` + import {Directive, HostBinding} from '@angular/core'; + + @Directive({selector: '[test]'}) + export class Dir { + @HostBinding('class.hover:online') isOnline = true; + @HostBinding('style.color:only') colorOnly = 'red'; + } + `, + ); + + const errors = env.driveDiagnostics(); + expect(errors.length).toBe(0); + }); + it('should use proper default value for preserveWhitespaces config param', () => { env.tsconfig(); // default is `false` env.write( @@ -5805,8 +5893,8 @@ runInEachFileSystem((os: string) => { ); env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - 'text(2, "\\n Template with whitespaces\\n ");', + expect(jsContents).toMatch( + /text\(2, ['"]\\n Template with whitespaces\\n ['"]\);/, ); }); @@ -6199,11 +6287,11 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - 'function Base_Factory(__ngFactoryType__) { /* @ts-ignore */\nreturn new (__ngFactoryType__ || Base)(i0.ɵɵinject(Dep)); }', + expect(jsContents).toMatch( + /function Base_Factory\(__ngFactoryType__\) \{ (?:\/\* @ts-ignore \*\/\s*)?return new \(__ngFactoryType__ \|\| Base\)\(i0\.ɵɵinject\(Dep\)\); \}/, ); - expect(jsContents).toContain( - '(() => { let ɵChild_BaseFactory; return function Child_Factory(__ngFactoryType__) { return (ɵChild_BaseFactory || (ɵChild_BaseFactory = i0.ɵɵgetInheritedFactory(Child)))(__ngFactoryType__ || Child); }; })();', + expect(jsContents).toMatch( + /\(\(\) => \{\s*let ɵChild_BaseFactory;\s*return function Child_Factory\(__ngFactoryType__\) \{\s*return \(ɵChild_BaseFactory \|\| \(ɵChild_BaseFactory = i0\.ɵɵgetInheritedFactory\(Child\)\)\)\(\(?__ngFactoryType__ \|\| Child\)?\);\s*\};\s*\}\)\(\);/, ); expect(jsContents).toContain( 'function GrandChild_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GrandChild)(); }', @@ -6231,8 +6319,8 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js'); - expect(jsContents).toContain( - '/*@__PURE__*/ (() => { let ɵDir_BaseFactory; return function Dir_Factory(__ngFactoryType__) { return (ɵDir_BaseFactory || (ɵDir_BaseFactory = i0.ɵɵgetInheritedFactory(Dir)))(__ngFactoryType__ || Dir); }; })();', + expect(jsContents).toMatch( + /\/\*@__PURE__\*\/ \(\(\) => \{\s*let ɵDir_BaseFactory;\s*return function Dir_Factory\(__ngFactoryType__\) \{\s*return \(ɵDir_BaseFactory \|\| \(ɵDir_BaseFactory = i0\.ɵɵgetInheritedFactory\(Dir\)\)\)\(\(?__ngFactoryType__ \|\| Dir\)?\);\s*\};\s*\}\)\(\);/, ); }); @@ -6282,9 +6370,8 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = env.getContents('test.js').replace(/\s+/g, ' '); - expect(jsContents).toContain( - `(() => { (typeof ngDevMode === "undefined" || ngDevMode) && ` + - `i0.ɵsetClassMetadata(Service, [{ type: Injectable, args: [{ providedIn: 'root' }] }], null, null); })();`, + expect(jsContents).toMatch( + /\(\(\) => \{ \(typeof ngDevMode === "undefined" \|\| ngDevMode\) && i0\.ɵsetClassMetadata\(Service, \[\{ type: Injectable, args: \[\{ providedIn: ['"]root['"] \}\] \}\], null, null\); \}\)\(\);/, ); }); @@ -6496,9 +6583,11 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = trim(env.getContents('test.js')); - expect(jsContents).toContain(`import * as i1 from "./types";`); - expect(jsContents).toMatch(setClassMetadataRegExp('type: i1\\.MyTypeA')); - expect(jsContents).toMatch(setClassMetadataRegExp('type: i1\\.MyTypeB')); + expect(jsContents).toMatch( + /import \* as i1 from "\.\/types";|import \{ MyTypeA, MyTypeB \} from "\.\/types";/, + ); + expect(jsContents).toMatch(setClassMetadataRegExp('type: (?:i1\\.MyTypeA|MyTypeA)')); + expect(jsContents).toMatch(setClassMetadataRegExp('type: (?:i1\\.MyTypeB|MyTypeB)')); }); it('should use imported types in setClassMetadata if they can be represented as values and imported as `* as foo`', () => { @@ -6532,9 +6621,11 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = trim(env.getContents('test.js')); - expect(jsContents).toContain(`import * as i1 from "./types";`); - expect(jsContents).toMatch(setClassMetadataRegExp('type: i1.MyTypeA')); - expect(jsContents).toMatch(setClassMetadataRegExp('type: i1.MyTypeB')); + expect(jsContents).toMatch( + /import \* as i1 from "\.\/types";|import \* as types from "\.\/types";/, + ); + expect(jsContents).toMatch(setClassMetadataRegExp('type: (?:i1|types)\\.MyTypeA')); + expect(jsContents).toMatch(setClassMetadataRegExp('type: (?:i1|types)\\.MyTypeB')); }); it('should use default-imported types if they can be represented as values', () => { @@ -6561,12 +6652,14 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = trim(env.getContents('test.js')); - expect(jsContents).toContain(`import Default from './types';`); - expect(jsContents).toContain(`import * as i1 from "./types";`); + expect(jsContents).toMatch(/import Default from ['"]\.\/types['"];/); + expect(jsContents).toMatch( + /import \* as i1 from "\.\/types";|import \{ Other \} from "\.\/types";/, + ); expect(jsContents).toContain('i0.ɵɵdirectiveInject(Default)'); - expect(jsContents).toContain('i0.ɵɵdirectiveInject(i1.Other)'); + expect(jsContents).toMatch(/i0\.ɵɵdirectiveInject\((?:i1\.Other|Other)\)/); expect(jsContents).toMatch(setClassMetadataRegExp('type: Default')); - expect(jsContents).toMatch(setClassMetadataRegExp('type: i1.Other')); + expect(jsContents).toMatch(setClassMetadataRegExp('type: (?:i1\\.Other|Other)')); }); it('should not throw when using an SVG-specific `title` tag', () => { @@ -6629,13 +6722,13 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = trim(env.getContents('test.js')); - expect(jsContents).toContain(`import * as i1 from "ns";`); - expect(jsContents).toContain('i0.ɵɵinject(i1.Zero)'); - expect(jsContents).toContain('i0.ɵɵinject(i1.one.One)'); - expect(jsContents).toContain('i0.ɵɵinject(i1.one.two.Two)'); - expect(jsContents).toMatch(setClassMetadataRegExp('type: i1.Zero')); - expect(jsContents).toMatch(setClassMetadataRegExp('type: i1.one.One')); - expect(jsContents).toMatch(setClassMetadataRegExp('type: i1.one.two.Two')); + expect(jsContents).toMatch(/import \* as i1 from "ns";|import \* as ns from "ns";/); + expect(jsContents).toMatch(/i0\.ɵɵinject\((?:i1|ns)\.Zero\)/); + expect(jsContents).toMatch(/i0\.ɵɵinject\((?:i1|ns)\.one\.One\)/); + expect(jsContents).toMatch(/i0\.ɵɵinject\((?:i1|ns)\.one\.two\.Two\)/); + expect(jsContents).toMatch(setClassMetadataRegExp('type: (?:i1|ns)\\.Zero')); + expect(jsContents).toMatch(setClassMetadataRegExp('type: (?:i1|ns)\\.one\\.One')); + expect(jsContents).toMatch(setClassMetadataRegExp('type: (?:i1|ns)\\.one\\.two\\.Two')); }); it('should generate correct imports for type references to namespaced symbols using named imports', () => { @@ -6676,18 +6769,17 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = trim(env.getContents('test.js')); - expect(jsContents).toContain(`import * as i1 from "ns";`); - expect(jsContents).toContain( - 'i0.ɵɵinject(i1.ns.Zero), ' + - 'i0.ɵɵinject(i1.ns.one.One), ' + - 'i0.ɵɵinject(i1.ns.one.two.Two), ' + - 'i0.ɵɵinject(i1.ns.Zero), ' + - 'i0.ɵɵinject(i1.ns.one.One), ' + - 'i0.ɵɵinject(i1.ns.one.two.Two)', + expect(jsContents).toMatch( + /import \* as i1 from "ns";|import \{ ns \} from "ns"; import \{ ns as alias \} from "ns";/, + ); + expect(jsContents).toMatch( + /i0\.ɵɵinject\(i1\.ns\.Zero\), i0\.ɵɵinject\(i1\.ns\.one\.One\), i0\.ɵɵinject\(i1\.ns\.one\.two\.Two\), i0\.ɵɵinject\(i1\.ns\.Zero\), i0\.ɵɵinject\(i1\.ns\.one\.One\), i0\.ɵɵinject\(i1\.ns\.one\.two\.Two\)|i0\.ɵɵinject\(ns\.Zero\), i0\.ɵɵinject\(ns\.one\.One\), i0\.ɵɵinject\(ns\.one\.two\.Two\), i0\.ɵɵinject\(alias\.Zero\), i0\.ɵɵinject\(alias\.one\.One\), i0\.ɵɵinject\(alias\.one\.two\.Two\)/, + ); + expect(jsContents).toMatch(setClassMetadataRegExp('type: (?:i1\\.ns|ns)\\.Zero')); + expect(jsContents).toMatch(setClassMetadataRegExp('type: (?:i1\\.ns|ns)\\.one\\.One')); + expect(jsContents).toMatch( + setClassMetadataRegExp('type: (?:i1\\.ns|ns)\\.one\\.two\\.Two'), ); - expect(jsContents).toMatch(setClassMetadataRegExp('type: i1.ns.Zero')); - expect(jsContents).toMatch(setClassMetadataRegExp('type: i1.ns.one.One')); - expect(jsContents).toMatch(setClassMetadataRegExp('type: i1.ns.one.two.Two')); }); it('should not error for a namespace import as parameter type when @Inject is used', () => { @@ -6844,8 +6936,10 @@ runInEachFileSystem((os: string) => { env.driveMain(); const jsContents = trim(env.getContents('test.js')); - expect(jsContents).toContain(`import * as i1 from "./keycodes";`); - expect(jsContents).toMatch(setClassMetadataRegExp('type: i1.KeyCodes')); + expect(jsContents).toMatch( + /import \* as i1 from "\.\/keycodes";|import \{ KeyCodes \} from "\.\/keycodes";/, + ); + expect(jsContents).toMatch(setClassMetadataRegExp('type: (?:i1\\.KeyCodes|KeyCodes)')); }); it('should use `undefined` in setClassMetadata if types originate from type-only imports', () => { @@ -7500,7 +7594,7 @@ runInEachFileSystem((os: string) => { env.driveMain(); - const dtsContents = env.getContents('test.d.ts'); + const dtsContents = trim(env.getContents('test.d.ts')); expect(dtsContents).toContain( 'static ɵdir: i0.ɵɵDirectiveDeclaration { env.driveMain(); - const dtsContents = env.getContents('test.d.ts'); + const dtsContents = trim(env.getContents('test.d.ts')); expect(dtsContents).toContain( 'static ɵdir: i0.ɵɵDirectiveDeclaration { env.driveMain(); const jsContents = trim(env.getContents('test.js')); + expect(jsContents).toMatch(/import \{ Directive \} from ['"]@angular\/core['"];/); expect(jsContents).toContain( trim(` - import { Directive } from '@angular/core'; import * as i0 from "@angular/core"; function Log(target, key) { } export class Child { @@ -9698,12 +9792,8 @@ runInEachFileSystem((os: string) => { // Verify that long strings are extracted to a separate var. This should be // wrapped in a function to trick Closure not to inline the contents for very // large strings. See: https://github.com/angular/angular/pull/38253. - expect(jsContents).toContain( - '_c0 = function () {' + - ' return "div[_ngcontent-%COMP%] {' + - ' background: url(/some-very-very-long-path.png);' + - ' }";' + - ' };', + expect(jsContents).toMatch( + /_c0 = function \(\) \{\s*return "div\[_ngcontent-%COMP%\] \{ background: url\(\/some-very-very-long-path\.png\); \}";\s*\};/, ); expect(jsContents).toContain( @@ -10688,7 +10778,7 @@ runInEachFileSystem((os: string) => { } `, ); - const diags = env.driveDiagnostics(); + const diags = [...env.driveDiagnostics()].sort((a, b) => a.start! - b.start!); expect(diags.length).toBe(2); expect(diags[0].messageText).toEqual(`Type 'string' is not assignable to type 'number'.`); @@ -10696,6 +10786,27 @@ runInEachFileSystem((os: string) => { 'Parser Error: Bindings cannot contain assignments at column 5 in [x = 2]', ); }); + + it('should report a parse error for unexpected tokens in a template literal interpolation', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + @Component({ + template: '{{ \`Hello, $\{first last}!\` }}', + selector: 'test-cmp', + }) + export class TestCmp { + first = 'Jane'; + last = 'Doe'; + } + `, + ); + const diags = env.driveDiagnostics(); + + expect(diags.length).toBe(1); + expect(diags[0].messageText).toContain('Parser Error: Missing expected }'); + }); }); describe('shadow DOM selector diagnostics', () => { @@ -11534,6 +11645,36 @@ runInEachFileSystem((os: string) => { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents).toContain('static "ngAcceptInputType_aria-label": string;'); }); + + it('should compile an input with a transform function in the inputs array referenced via a constant', () => { + env.write( + '/test.ts', + ` + import {Directive} from '@angular/core'; + + const INPUT_CONFIG = { + name: 'value', + transform: (value: boolean | string) => 1, + }; + + @Directive({ + selector: '[dir]', + inputs: [INPUT_CONFIG], + }) + export class Dir { + value!: number; + } + `, + ); + + env.driveMain(); + + const jsContents = env.getContents('test.js'); + const dtsContents = env.getContents('test.d.ts'); + + expect(jsContents).toContain('inputs: { value: [2, "value", "value", (value) => 1] }'); + expect(dtsContents).toContain('static ngAcceptInputType_value: boolean | string;'); + }); }); describe('debug info', () => { @@ -11631,38 +11772,63 @@ runInEachFileSystem((os: string) => { // strict: true & strictTemplates: true are set by default target: ts.ScriptTarget.Latest, module: ts.ModuleKind.ESNext, + moduleResolution: ts.ModuleResolutionKind.Bundler, + skipLibCheck: true, annotateForClosureCompiler: true, }; - const program = new NgtscProgram(['/test.ts'], options, createCompilerHost({options})); - const transformers = program.compiler.prepareEmit().transformers; - - // Add a "fake tsickle" transform before Angular's transform. - transformers.before!.unshift((ctx) => (sf: ts.SourceFile) => { - const tsickleFileOverview = ctx.factory.createNotEmittedStatement(sf); - ts.setSyntheticLeadingComments(tsickleFileOverview, [ - { - kind: ts.SyntaxKind.MultiLineCommentTrivia, - text: `* + const fakeTsickleTransform: ts.TransformerFactory = + (ctx) => (sf: ts.SourceFile) => { + const tsickleFileOverview = ctx.factory.createNotEmittedStatement(sf); + ts.setSyntheticLeadingComments(tsickleFileOverview, [ + { + kind: ts.SyntaxKind.MultiLineCommentTrivia, + text: `* * @fileoverview Closure comment * @suppress bla1 * @suppress bla2 `, - pos: -1, - end: -1, - hasTrailingNewLine: true, - }, - ]); - return ctx.factory.updateSourceFile( - sf, - [tsickleFileOverview, ...sf.statements], - sf.isDeclarationFile, - sf.referencedFiles, - sf.typeReferenceDirectives, - sf.hasNoDefaultLib, - sf.libReferenceDirectives, - ); - }); + pos: -1, + end: -1, + hasTrailingNewLine: true, + }, + ]); + return ctx.factory.updateSourceFile( + sf, + [tsickleFileOverview, ...sf.statements], + sf.isDeclarationFile, + sf.referencedFiles, + sf.typeReferenceDirectives, + sf.hasNoDefaultLib, + sf.libReferenceDirectives, + ); + }; + + if (isNgpTestMode()) { + const fs = getFileSystem(); + const result = performNgpCompilationSync({ + fs, + basePath: env.basePath, + tsconfigPath: fs.resolve(env.basePath, 'tsconfig.json'), + rootNames: [fs.resolve('/test.ts')], + options, + emit: true, + complianceMode: true, + customTransformers: {beforeTs: [fakeTsickleTransform]}, + }); + + expect( + result.diagnostics.map((d) => ts.flattenDiagnosticMessageText(d.messageText, '\n')), + ).toEqual([]); + expect(env.getContents('/test.js')).toContain(`* @fileoverview Closure comment`); + return; + } + + const program = new NgtscProgram(['/test.ts'], options, createCompilerHost({options})); + const transformers = program.compiler.prepareEmit().transformers; + + // Add a "fake tsickle" transform before Angular's transform. + transformers.before!.unshift(fakeTsickleTransform); const {diagnostics, emitSkipped} = program .getTsProgram() diff --git a/packages/compiler-cli/test/ngtsc/selectorless_spec.ts b/packages/compiler-cli/test/ngtsc/selectorless_spec.ts deleted file mode 100644 index 89b7dd9b0676..000000000000 --- a/packages/compiler-cli/test/ngtsc/selectorless_spec.ts +++ /dev/null @@ -1,1189 +0,0 @@ -/*! - * @license - * Copyright Google LLC All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.dev/license - */ - -import {runInEachFileSystem} from '../../src/ngtsc/file_system/testing'; -import {loadStandardTestFiles} from '../../src/ngtsc/testing'; -import {NgtscTestEnvironment} from './env'; - -const testFiles = loadStandardTestFiles(); - -function cleanNewLines(contents: string) { - return contents.replace(/\s*\n\s*/g, ' '); -} - -runInEachFileSystem(() => { - describe('selectorless', () => { - let env!: NgtscTestEnvironment; - - beforeEach(() => { - env = NgtscTestEnvironment.setup(testFiles); - env.tsconfig({ - _enableSelectorless: true, - strictTemplates: true, - }); - }); - - it('should report a selectorless component reference that is not imported', () => { - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: ''}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Cannot find name "Dep". Selectorless references are only supported to classes or non-type import statements.', - ); - }); - - it('should report a selectorless directive reference that is not imported', () => { - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: '
    '}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Cannot find name "Dep". Selectorless references are only supported to classes or non-type import statements.', - ); - }); - - it('should report a selectorless reference that is imported through a single type-only import', () => { - env.write( - 'dep.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: ''}) - export class Dep {} - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {type Dep} from './dep'; - - @Component({template: ''}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Cannot find name "Dep". Selectorless references are only supported to classes or non-type import statements.', - ); - }); - - it('should report a selectorless reference that is imported through an entirely type-only import', () => { - env.write( - 'dep.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: ''}) - export class Dep {} - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import type {Dep} from './dep'; - - @Component({template: ''}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Cannot find name "Dep". Selectorless references are only supported to classes or non-type import statements.', - ); - }); - - it('should report a selectorless pipe reference that is not imported', () => { - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: '
    {{123 | Foo}}
    '}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`No pipe found with name 'Foo'.`); - }); - - it('should check that selectorless component reference is a component class', () => { - env.write( - 'dep.ts', - ` - import {Directive} from '@angular/core'; - - @Directive() - export class Dep {} - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({template: ''}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Incorrect reference type. Type must be a standalone @Component.', - ); - }); - - it('should check that selectorless directive reference is a directive class', () => { - env.write( - 'dep.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: ''}) - export class Dep {} - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({template: '
    '}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Incorrect reference type. Type must be a standalone @Directive.', - ); - }); - - it('should check that selectorless component references are standalone', () => { - env.write( - 'dep.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: '', standalone: false}) - export class Dep {} - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({template: ''}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Incorrect reference type. Type must be a standalone @Component.', - ); - }); - - it('should check that selectorless directive references are standalone', () => { - env.write( - 'dep.ts', - ` - import {Directive} from '@angular/core'; - - @Directive({standalone: false}) - export class Dep {} - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({template: '
    '}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Incorrect reference type. Type must be a standalone @Directive.', - ); - }); - - it('should check that the component using selectorless syntax is standalone', () => { - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: ''}) - export class Dep {} - - @Component({template: '', standalone: false}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Cannot use selectorless with a component that is not standalone', - ); - }); - - it('should not allow an `imports` array in a selectorless component', () => { - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: ''}) - export class Dep {} - - @Component({template: '', imports: [Dep]}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Cannot use the "imports" field in a selectorless component', - ); - }); - - it('should not allow a `deferredImports` array in a selectorless component', () => { - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: ''}) - export class Dep {} - - @Component({ - template: '', - // @ts-ignore - deferredImports: [Dep] - }) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Cannot use the "deferredImports" field in a selectorless component', - ); - }); - - it('should check the input bindings of selectorless components', () => { - env.write( - 'dep.ts', - ` - import {Component, Input} from '@angular/core'; - - @Component({template: ''}) - export class Dep { - @Input() someInput: number; - } - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({template: ''}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`Type 'boolean' is not assignable to type 'number'.`); - }); - - it('should check the input bindings of selectorless directives', () => { - env.write( - 'dep.ts', - ` - import {Directive, Input} from '@angular/core'; - - @Directive() - export class Dep { - @Input() someInput: number; - } - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({template: '
    '}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`Type 'boolean' is not assignable to type 'number'.`); - }); - - it('should check the input bindings of selectorless directives imported from an external library', () => { - env.write( - 'node_modules/external/index.d.ts', - ` - import * as i0 from "@angular/core"; - - export declare class Dep { - someInput: boolean; - static ɵfac: i0.ɵɵFactoryDeclaration; - static ɵdir: i0.ɵɵDirectiveDeclaration; - } - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from 'external'; - - @Component({template: '
    '}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`Type 'number' is not assignable to type 'boolean'.`); - }); - - it('should check the output bindings of selectorless components', () => { - env.write( - 'dep.ts', - ` - import {Component, Output, EventEmitter} from '@angular/core'; - - @Component({template: ''}) - export class Dep { - @Output() someEvent = new EventEmitter(); - } - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({template: ''}) - export class Comp { - handleEvent(value: number) {} - } - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - `Argument of type 'boolean' is not assignable to parameter of type 'number'.`, - ); - }); - - it('should check the output bindings of selectorless directives', () => { - env.write( - 'dep.ts', - ` - import {Directive, Output, EventEmitter} from '@angular/core'; - - @Directive() - export class Dep { - @Output() someEvent = new EventEmitter(); - } - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({template: '
    '}) - export class Comp { - handleEvent(value: number) {} - } - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - `Argument of type 'boolean' is not assignable to parameter of type 'number'.`, - ); - }); - - it('should treat unclaimed inputs as DOM property bindings on component nodes', () => { - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: ''}) - export class Dep {} - - @Component({template: ''}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(0); - }); - - it('should report unclaimed inputs on directive nodes as errors', () => { - env.write( - 'test.ts', - ` - import {Component, Directive} from '@angular/core'; - - @Directive() - export class Dep {} - - @Component({template: '
    '}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Directive Dep does not have an input named "id". Bindings to directives must target existing inputs or outputs.', - ); - }); - - it('should treat unclaimed outputs as DOM events on component nodes', () => { - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: ''}) - export class Dep {} - - @Component({template: ''}) - export class Comp { - handleClick(value: number) {} - } - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - `Argument of type 'PointerEvent' is not assignable to parameter of type 'number'.`, - ); - }); - - it('should report unclaimed outputs on directive nodes as errors', () => { - env.write( - 'test.ts', - ` - import {Component, Directive} from '@angular/core'; - - @Directive() - export class Dep {} - - @Component({template: '
    '}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - 'Directive Dep does not have an output named "click". Bindings to directives must target existing inputs or outputs.', - ); - }); - - it('should check input bindings coming from host directives on component nodes', () => { - env.write( - 'dep.ts', - ` - import {Component, Input, Directive} from '@angular/core'; - - @Directive() - export class HostDir { - @Input() someInput: number; - } - - @Component({ - template: '', - hostDirectives: [{directive: HostDir, inputs: ['someInput: alias']}] - }) - export class Dep {} - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({template: ''}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`Type 'boolean' is not assignable to type 'number'.`); - }); - - it('should check input bindings coming from host directives on directive nodes', () => { - env.write( - 'dep.ts', - ` - import {Input, Directive} from '@angular/core'; - - @Directive() - export class HostDir { - @Input() someInput: number; - } - - @Directive({ - hostDirectives: [{directive: HostDir, inputs: ['someInput: alias']}] - }) - export class Dep {} - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({template: '
    '}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`Type 'boolean' is not assignable to type 'number'.`); - }); - - it('should check output bindings coming from host directives on component nodes', () => { - env.write( - 'dep.ts', - ` - import {Component, Output, EventEmitter, Directive} from '@angular/core'; - - @Directive() - export class HostDir { - @Output() someEvent = new EventEmitter(); - } - - @Component({ - template: '', - hostDirectives: [{directive: HostDir, outputs: ['someEvent: alias']}] - }) - export class Dep {} - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({template: ''}) - export class Comp { - handleEvent(value: number) {} - } - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - `Argument of type 'boolean' is not assignable to parameter of type 'number'.`, - ); - }); - - it('should check output bindings coming from host directives on directive nodes', () => { - env.write( - 'dep.ts', - ` - import {Output, EventEmitter, Directive} from '@angular/core'; - - @Directive() - export class HostDir { - @Output() someEvent = new EventEmitter(); - } - - @Directive({ - hostDirectives: [{directive: HostDir, outputs: ['someEvent: alias']}] - }) - export class Dep {} - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({template: '
    '}) - export class Comp { - handleEvent(value: number) {} - } - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - `Argument of type 'boolean' is not assignable to parameter of type 'number'.`, - ); - }); - - it('should check required inputs of selectorless components', () => { - env.write( - 'test.ts', - ` - import {Component, Input} from '@angular/core'; - - @Component({template: ''}) - export class Dep { - @Input({required: true}) someInput: number; - } - - @Component({template: ''}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - `Required input 'someInput' from component Dep must be specified.`, - ); - }); - - it('should check required inputs of selectorless directives', () => { - env.write( - 'test.ts', - ` - import {Component, Directive, Input} from '@angular/core'; - - @Directive() - export class Dep { - @Input({required: true}) someInput: number; - } - - @Component({template: '
    '}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - `Required input 'someInput' from directive Dep must be specified.`, - ); - }); - - it('should import capitalized pipes implicitly', () => { - // TODO(crisbeto): remove `null!` from the pipes when public API is updated. - env.write( - 'pipe.ts', - ` - import {Pipe} from '@angular/core'; - - @Pipe(null!) - export class FooPipe { - transform(value: number) { - return value + 1; - } - } - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {FooPipe} from './pipe'; - - @Component({template: '
    {{ "hello" | FooPipe }}
    '}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - `Argument of type 'string' is not assignable to parameter of type 'number'.`, - ); - }); - - it('should import capitalized pipes from external modules implicitly', () => { - env.write( - 'node_modules/external/index.d.ts', - ` - import * as i0 from "@angular/core"; - - export declare class FooPipe { - transform(value: number): number; - static ɵfac: i0.ɵɵFactoryDeclaration; - static ɵpipe: i0.ɵɵPipeDeclaration; - } - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {FooPipe} from 'external'; - - @Component({template: '
    {{ "hello" | FooPipe }}
    '}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe( - `Argument of type 'string' is not assignable to parameter of type 'number'.`, - ); - }); - - it('should be able to alias imports of selectorless dependencies', () => { - // TODO(crisbeto): remove `null!` from the pipes when public API is updated. - env.write( - 'dep.ts', - ` - import {Directive, Component, Pipe} from '@angular/core'; - - @Component({template: ''}) - export class DepComp {} - - @Directive() - export class DepDir {} - - @Pipe(null!) - export class DepPipe { - transform(value: number) { - return value; - } - } - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import { - DepComp as AliasedDepComp, - DepDir as AliasedDepDir, - DepPipe as AliasedDepPipe, - } from './dep'; - - @Component({template: '{{123 | AliasedDepPipe}}'}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.map((d) => d.messageText)).toEqual([]); - }); - - it('should be able to use default imports as selectorless dependencies', () => { - env.write( - 'dir.ts', - ` - import {Directive} from '@angular/core'; - - @Directive() - export default class DepDir {} - `, - ); - - env.write( - 'comp.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: ''}) - export default class DepComp {} - `, - ); - - // TODO(crisbeto): remove `null!` from the pipes when public API is updated. - env.write( - 'pipe.ts', - ` - import {Pipe} from '@angular/core'; - - @Pipe(null!) - export default class DepPipe { - transform(value: number) { - return value; - } - } - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import DepDir from './dir'; - import DepComp from './comp'; - import DepPipe from './pipe'; - - @Component({template: '{{123 | DepPipe}}'}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.map((d) => d.messageText)).toEqual([]); - }); - - it('should resolve local reference to selectorless component', () => { - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - - @Component({template: ''}) - export class Dep { - getFoo(): string | null { - return null; - } - } - - @Component({template: ' {{ref.getFoo().toUpperCase()}}'}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`Object is possibly 'null'.`); - }); - - it('should resolve local reference to selectorless directive', () => { - env.write( - 'test.ts', - ` - import {Component, Directive} from '@angular/core'; - - @Directive() - export class Dep { - getFoo(): string | null { - return null; - } - } - - @Component({template: '
    {{ref.getFoo().toUpperCase()}}'}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`Object is possibly 'null'.`); - }); - - it('should emit references to selectorless symbols', () => { - // TODO(crisbeto): remove `null!` from the pipes when public API is updated. - env.write( - 'dep.ts', - ` - import {Directive, Component, Pipe} from '@angular/core'; - - @Component({template: ''}) - export class DepComp {} - - @Directive() - export class DepDir {} - - @Pipe(null!) - export class DepPipe { - transform(value: number) { - return value; - } - } - `, - ); - - env.write( - 'test.ts', - ` - import {Component} from '@angular/core'; - import {DepComp, DepDir, DepPipe} from './dep'; - - @Component({template: '{{123 | DepPipe}}'}) - export class Comp {} - `, - ); - - env.driveMain(); - - const jsContents = env.getContents('test.js'); - expect(jsContents).toContain('import * as i1 from "./dep";'); - expect(jsContents).toContain('dependencies: [i1.DepComp, i1.DepDir, i1.DepPipe]'); - }); - - it('should emit references to selectorless dependencies defined in the same function', () => { - env.write( - 'test.ts', - ` - import {Component, Directive} from '@angular/core'; - - // Imagine that this is Jasmine... - function it(name: string, callback: () => void) { - callback(); - } - - it('should work', () => { - @Directive() - class Dep {} - - @Component({template: '
    '}) - class Comp {} - }); - `, - ); - - env.driveMain(); - - const jsContents = env.getContents('test.js'); - expect(jsContents).toContain('dependencies: [Dep]'); - }); - - it('should pick the dependency closest to the class', () => { - env.write( - 'dep.ts', - ` - import {Directive, Input} from '@angular/core'; - - @Directive() - export class Dep { - @Input() value: string; - } - `, - ); - - env.write( - 'test.ts', - ` - import {Component, Directive, Input} from '@angular/core'; - import {Dep} from './dep'; - - export function foo() { - @Directive() - class Dep { - @Input() value: number; - } - - @Component({template: '
    '}) - class Comp {} - - return Comp; - } - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`Type 'string' is not assignable to type 'number'.`); - }); - - it('should defer selectorless symbols', () => { - env.write( - 'dep-comp.ts', - ` - import { Component } from '@angular/core'; - - @Component({template: ''}) - export class DepComp {} - `, - ); - - env.write( - 'dep-dir.ts', - ` - import { Directive } from '@angular/core'; - - @Directive() - export class DepDir {} - `, - ); - - // TODO(crisbeto): remove `null!` from the pipes when public API is updated. - env.write( - 'dep-pipe.ts', - ` - import { Pipe } from '@angular/core'; - - @Pipe(null!) - export class DepPipe { - transform(value: number) { - return value; - } - } - `, - ); - - env.write( - 'test.ts', - ` - import { Component } from '@angular/core'; - import { DepComp } from './dep-comp'; - import { DepDir } from './dep-dir'; - import { DepPipe } from './dep-pipe'; - - @Component({template: '@defer {{{123 | DepPipe}}}'}) - export class Comp {} - `, - ); - - env.driveMain(); - - const jsContents = env.getContents('test.js'); - expect(jsContents).not.toContain('import { DepComp'); - expect(jsContents).not.toContain('import { DepDir'); - expect(jsContents).not.toContain('import { DepPipe'); - expect(cleanNewLines(jsContents)).toContain( - 'const Comp_Defer_1_DepsFn = () => [/* @ts-ignore */ import("./dep-comp").then(m => m.DepComp), ' + - '/* @ts-ignore */ import("./dep-dir").then(m => m.DepDir), ' + - '/* @ts-ignore */ import("./dep-pipe").then(m => m.DepPipe)];', - ); - expect(jsContents).toContain('ɵɵdefer(1, 0, Comp_Defer_1_DepsFn);'); - }); - - it('should generate metadata for a pipe without a name', () => { - // TODO(crisbeto): remove `null!` from the pipes when public API is updated. - env.write( - 'pipe.ts', - ` - import {Pipe} from '@angular/core'; - - @Pipe(null!) - export class FooPipe { - transform(value: any) { - return value; - } - } - `, - ); - - env.driveMain(); - - const jsContents = env.getContents('pipe.js'); - const dtsContents = env.getContents('pipe.d.ts'); - - expect(jsContents).toContain('ɵɵdefinePipe({ name: "FooPipe", type: FooPipe, pure: true });'); - expect(dtsContents).toContain('ɵɵPipeDeclaration;'); - }); - - it('should not expose pipe under its class name if selectorless is disabled', () => { - env.tsconfig({ - _enableSelectorless: false, - strictTemplates: true, - }); - - // TODO(crisbeto): remove `null!` from the pipes when public API is updated. - env.write( - 'pipe.ts', - ` - import {Pipe} from '@angular/core'; - - @Pipe(null!) - export class FooPipe { - transform(value: number) { - return value; - } - } - `, - ); - - env.write( - 'test.ts', - ` - import { Component } from '@angular/core'; - import { FooPipe } from './pipe'; - - @Component({template: '{{"hello" | FooPipe}}', imports: [FooPipe]}) - export class Comp {} - `, - ); - - const diags = env.driveDiagnostics(); - expect(diags.length).toBe(1); - expect(diags[0].messageText).toBe(`No pipe found with name 'FooPipe'.`); - }); - }); -}); diff --git a/packages/compiler-cli/test/ngtsc/service_spec.ts b/packages/compiler-cli/test/ngtsc/service_spec.ts index 7b04d35db987..42994ccdaf1e 100644 --- a/packages/compiler-cli/test/ngtsc/service_spec.ts +++ b/packages/compiler-cli/test/ngtsc/service_spec.ts @@ -40,7 +40,7 @@ runInEachFileSystem(() => { expect(jsContents).toContain('TestService.ɵfac ='); expect(jsContents).toContain('TestService.ɵprov ='); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDeclaration;'); - expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); + expect(dtsContents).toContain('static ɵprov: i0.ɵɵInjectableDeclaration;'); }); it('should report if an @Service class has another Angular decorator', () => { diff --git a/packages/compiler-cli/test/ngtsc/signal_forms_spec.ts b/packages/compiler-cli/test/ngtsc/signal_forms_spec.ts index 0b86c0be83bc..df0dc60c24cb 100644 --- a/packages/compiler-cli/test/ngtsc/signal_forms_spec.ts +++ b/packages/compiler-cli/test/ngtsc/signal_forms_spec.ts @@ -302,10 +302,10 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(2); - expect(extractMessage(diags[0])).toBe( + expect(extractMessage(diags[0])).toContain( `Setting the 'min' attribute is not allowed on nodes using the '[formField]' directive`, ); - expect(extractMessage(diags[1])).toBe( + expect(extractMessage(diags[1])).toContain( `Setting the 'max' attribute is not allowed on nodes using the '[formField]' directive`, ); }); @@ -450,7 +450,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(extractMessage(diags[0])).toBe( + expect(extractMessage(diags[0])).toContain( `Binding to '[max]' is not allowed on nodes using the '[formField]' directive`, ); }); @@ -475,7 +475,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(extractMessage(diags[0])).toBe( + expect(extractMessage(diags[0])).toContain( `Binding to '[attr.maxlength]' is not allowed on nodes using the '[formField]' directive`, ); }); @@ -500,7 +500,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(extractMessage(diags[0])).toBe( + expect(extractMessage(diags[0])).toContain( `Binding to '[(max)]' is not allowed on nodes using the '[formField]' directive`, ); }); @@ -530,7 +530,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(extractMessage(diags[0])).toBe( + expect(extractMessage(diags[0])).toContain( `Binding to '[max]' is not allowed on nodes using the '[formField]' directive`, ); }); @@ -608,7 +608,7 @@ runInEachFileSystem(() => { const diags = env.driveDiagnostics(); expect(diags.length).toBe(1); - expect(extractMessage(diags[0])).toBe( + expect(extractMessage(diags[0])).toContain( `Setting the 'value' attribute is not allowed on nodes using the '[formField]' directive`, ); }); diff --git a/packages/compiler-cli/test/ngtsc/sourcemap_utils.ts b/packages/compiler-cli/test/ngtsc/sourcemap_utils.ts index 16ea187aa91c..6f36afad3a6c 100644 --- a/packages/compiler-cli/test/ngtsc/sourcemap_utils.ts +++ b/packages/compiler-cli/test/ngtsc/sourcemap_utils.ts @@ -7,6 +7,7 @@ */ import {MappingItem, RawSourceMap, SourceMapConsumer} from 'source-map'; +import {isNgpTestMode} from '../../src/ngtsc/testing'; import {NgtscTestEnvironment} from './env'; class TestSourceFile { @@ -77,7 +78,8 @@ export async function getMappedSegments( env: NgtscTestEnvironment, generatedFileName: string, ): Promise { - const generated = new TestSourceFile(generatedFileName, env.getContents(generatedFileName)); + // The map's positions refer to the file as written, so don't normalize it. + const generated = new TestSourceFile(generatedFileName, env.getRawContents(generatedFileName)); const sourceMapFileName = generated.getSourceMapFileName(generated.contents); const sources = new Map(); @@ -103,7 +105,9 @@ export async function getMappedSegments( source: source.getSegment('original', currentMapping, nextMapping), sourceUrl: source.url, }; - if (segment.generated !== segment.source) { + // Segments that map text to itself are noise, except under NGP: its printer keeps the + // template's quote style, so a mapped string literal can read the same as its source. + if (segment.generated !== segment.source || isNgpTestMode()) { segments.push(segment); } } diff --git a/packages/compiler-cli/test/ngtsc/standalone_spec.ts b/packages/compiler-cli/test/ngtsc/standalone_spec.ts index b21fe61e95a6..7f99bd9737b7 100644 --- a/packages/compiler-cli/test/ngtsc/standalone_spec.ts +++ b/packages/compiler-cli/test/ngtsc/standalone_spec.ts @@ -212,8 +212,8 @@ runInEachFileSystem(() => { env.driveMain(); const moduleJs = env.getContents('module.js'); - expect(moduleJs).toContain( - 'i0.ɵɵsetComponentScope(ModuleCmp, function () { return [i1.StandaloneCmp]; }, []);', + expect(moduleJs).toMatch( + /i0\.ɵɵsetComponentScope\(\s*ModuleCmp,\s*function\s*\(\)\s*\{\s*return\s*\[i1\.StandaloneCmp\];\s*\},\s*\[\]\s*\);/, ); const cmpJs = env.getContents('component.js'); diff --git a/packages/compiler-cli/test/ngtsc/template_mapping_spec.ts b/packages/compiler-cli/test/ngtsc/template_mapping_spec.ts index 5fcbbe31b8b7..a3e16c793831 100644 --- a/packages/compiler-cli/test/ngtsc/template_mapping_spec.ts +++ b/packages/compiler-cli/test/ngtsc/template_mapping_spec.ts @@ -8,10 +8,13 @@ /// import {inspect} from 'node:util'; -import ts from 'typescript'; import {runInEachFileSystem} from '../../src/ngtsc/file_system/testing'; -import {loadStandardTestFiles} from '../../src/ngtsc/testing'; +import { + isNgpTestMode, + loadStandardTestFiles, + normalizeNgpSourceMapSegment, +} from '../../src/ngtsc/testing'; import {NgtscTestEnvironment} from './env'; import {getMappedSegments, SegmentMapping} from './sourcemap_utils'; @@ -24,11 +27,15 @@ runInEachFileSystem((os) => { beforeEach(() => { env = NgtscTestEnvironment.setup(testFiles); - env.tsconfig({ - sourceMap: true, - target: ts.ScriptTarget.ES2015, - enableI18nLegacyMessageIdFormat: false, - }); + env.tsconfig( + { + enableI18nLegacyMessageIdFormat: false, + }, + { + sourceMap: true, + target: 'es2015', + }, + ); }); describe('Inline templates', () => { @@ -682,7 +689,8 @@ runInEachFileSystem((os) => { }); const attrsMapping = mappings.find((mapping) => - /consts: \[\[1, "some-class"\]\]/.test(mapping.generated), + // NGP's printer emits single-quoted strings. + /consts: \[\[1, ["']some-class["']\]\]/.test(mapping.generated), ); expect(attrsMapping).toBeDefined(); }); @@ -792,13 +800,15 @@ runInEachFileSystem((os) => { import {Component, Directive, Input, Output, EventEmitter, Pipe, NgModule} from '@angular/core'; @Directive({ - selector: '[ngModel],[attr],[ngModelChange]', + selector: '[ngModel],[attr],[ngModelChange],[ngIf],[ngForOf]', standalone: false, }) export class AllDirective { @Input() ngModel!: any; @Output() ngModelChange = new EventEmitter(); @Input() attr!: any; + @Input() ngIf!: any; + @Input() ngForOf!: any; } @Pipe({ @@ -818,6 +828,7 @@ runInEachFileSystem((os) => { name = ''; isInitial = false; doSomething() {} + showMessage() { return true; } items: any[] = []; greeting = ''; } @@ -858,17 +869,23 @@ runInEachFileSystem((os) => { } function expectMapping(mappings: SegmentMapping[], expected: SegmentMapping): void { + // NGP's printer emits code slightly differently from ngtsc's TypeScript emit; only the + // generated side is relaxed, the source side must match exactly. + const normalize = isNgpTestMode() ? normalizeNgpSourceMapSegment : (code: string) => code; + const expectedGenerated = normalize(expected.generated); if ( mappings.some( (m) => - m.generated === expected.generated && + normalize(m.generated) === expectedGenerated && m.source === expected.source && m.sourceUrl === expected.sourceUrl, ) ) { return; } - const matchingGenerated = mappings.filter((m) => m.generated === expected.generated); + const matchingGenerated = mappings.filter( + (m) => normalize(m.generated) === expectedGenerated, + ); const matchingSource = mappings.filter((m) => m.source === expected.source); const message = [ diff --git a/packages/compiler-cli/test/ngtsc/template_typecheck_spec.ts b/packages/compiler-cli/test/ngtsc/template_typecheck_spec.ts index f693bb3d853e..6338d070c907 100644 --- a/packages/compiler-cli/test/ngtsc/template_typecheck_spec.ts +++ b/packages/compiler-cli/test/ngtsc/template_typecheck_spec.ts @@ -84,7 +84,7 @@ runInEachFileSystem(() => { expect(getSourceCodeForDiagnostic(diags[0])).toBe('does_not_exist'); }); - it('should not fail with a runtime error when generating TCB', () => { + it('should type check templates using a non-exported dependency from the same file', () => { env.tsconfig({strictTemplates: true}); env.write( 'test.ts', @@ -107,12 +107,35 @@ runInEachFileSystem(() => { `, ); + expect(env.driveDiagnostics()).toEqual([]); + }); + + it('should report binding errors on a non-exported dependency from the same file', () => { + env.tsconfig({strictTemplates: true}); + env.write( + 'test.ts', + ` + import {Component, input} from '@angular/core'; + + @Component({ + selector: 'sub-cmp', + template: '', + }) + class Sub { // intentionally not exported + someInput = input.required(); + } + + @Component({ + template: \`\`, + imports: [Sub], + }) + export class MyComponent {} + `, + ); + const diagnostics = env.driveDiagnostics(); - expect(diagnostics).toEqual([ - jasmine.objectContaining({ - messageText: jasmine.objectContaining({messageText: 'Unable to import symbol Sub.'}), - }), - ]); + expect(diagnostics.length).toBe(1); + expect(diagnostics[0].messageText).toBe(`Type 'number' is not assignable to type 'string'.`); }); it('should check regular attributes that are directive inputs', () => { @@ -1391,6 +1414,231 @@ runInEachFileSystem(() => { }); }); + describe('strictUnclaimedEventNames', () => { + function writeTestComponent( + template: string, + imports: string = '[TargetCmp]', + extraMetadata: string = '', + ): void { + env.write( + 'test.ts', + ` + import {Component, CUSTOM_ELEMENTS_SCHEMA, Directive, EventEmitter, NO_ERRORS_SCHEMA, Output} from '@angular/core'; + + @Component({ + selector: 'target-cmp', + template: '', + }) + export class TargetCmp { + @Output() someOutput = new EventEmitter(); + @Output('publicName') internalProp = new EventEmitter(); + } + + @Directive({ + selector: '[some-dir]', + }) + export class SomeDir {} + + @Component({ + selector: 'test', + template: '${template}', + imports: ${imports}, + ${extraMetadata} + }) + export class TestCmp { + handle(value: unknown) {} + } + `, + ); + } + + function expectNoDiagnostics(): void { + expect(env.driveDiagnostics().map((diag) => diag.messageText)).toEqual([]); + } + + it('should report events matching neither an output nor a native DOM event', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent(''); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(1); + expect(diags[0].messageText).toContain( + `Event 'someOutptu' is not emitted by any directive applied to 'target-cmp' and it isn't a known native DOM event.`, + ); + }); + + it('should report unclaimed camelCase events on elements with matched directives', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent('
    ', '[SomeDir]'); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(1); + expect(diags[0].messageText).toContain( + `Event 'myEvent' is not emitted by any directive applied to 'div' and it isn't a known native DOM event.`, + ); + }); + + it('should not report outputs of matched directives', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent(''); + + expectNoDiagnostics(); + }); + + it('should not report native DOM events', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent(''); + + expectNoDiagnostics(); + }); + + it('should not report dash-separated custom events', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent(''); + + expectNoDiagnostics(); + }); + + it('should not report key pseudo-events', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent(''); + + expectNoDiagnostics(); + }); + + it('should not report events with a target prefix', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent(''); + + expectNoDiagnostics(); + }); + + it('should not report events on elements without matched directives', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent('
    ', '[]'); + + expectNoDiagnostics(); + }); + + it('should report output typos on components even when using CUSTOM_ELEMENTS_SCHEMA', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent( + '', + '[TargetCmp]', + 'schemas: [CUSTOM_ELEMENTS_SCHEMA],', + ); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(1); + expect(diags[0].messageText).toContain( + `Event 'someOutptu' is not emitted by any directive applied to 'target-cmp' and it isn't a known native DOM event.`, + ); + }); + + it('should not report events on elements without a matched component when using CUSTOM_ELEMENTS_SCHEMA', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent( + '
    ', + '[SomeDir]', + 'schemas: [CUSTOM_ELEMENTS_SCHEMA],', + ); + + expectNoDiagnostics(); + }); + + it('should not report events on customized built-in elements when using CUSTOM_ELEMENTS_SCHEMA', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent( + '', + '[SomeDir]', + 'schemas: [CUSTOM_ELEMENTS_SCHEMA],', + ); + + expectNoDiagnostics(); + }); + + it('should not report vendor-prefixed native events with camelCase names', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent( + '
    ', + '[SomeDir]', + ); + + expectNoDiagnostics(); + }); + + it('should not report any events when using NO_ERRORS_SCHEMA', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent( + '', + '[TargetCmp]', + 'schemas: [NO_ERRORS_SCHEMA],', + ); + + expectNoDiagnostics(); + }); + + it('should not report unclaimed events when explicitly disabled', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: false}); + writeTestComponent(''); + + expectNoDiagnostics(); + }); + + it('should not report unclaimed events when not enabled', () => { + env.tsconfig({strictTemplates: true}); + writeTestComponent(''); + + expectNoDiagnostics(); + }); + + it('should not report the public name of an aliased output', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent(''); + + expectNoDiagnostics(); + }); + + it('should report the internal property name of an aliased output', () => { + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent(''); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(1); + expect(diags[0].messageText).toContain( + `Event 'internalProp' is not emitted by any directive applied to 'target-cmp' and it isn't a known native DOM event.`, + ); + }); + + it('should report camelCase bubbling custom events listened to via event delegation', () => { + // Event delegation of camelCase custom events dispatched by descendants is valid DOM + // behavior, but it's statically indistinguishable from a misspelled output name. Not + // reporting it would require dropping the check entirely, so reporting it is the + // documented trade-off of this opt-in option: such projects should use dash-separated + // event names or leave the option disabled. + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent( + '
    ', + '[SomeDir]', + ); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(1); + expect(diags[0].messageText).toContain( + `Event 'cardSwipe' is not emitted by any directive applied to 'div' and it isn't a known native DOM event.`, + ); + }); + + it('should not report all-lowercase unclaimed events', () => { + // All-lowercase names could be custom events dispatched by a descendant element, so + // they're intentionally not reported, even when they're likely misspelled outputs. + env.tsconfig({strictTemplates: true, strictUnclaimedEventNames: true}); + writeTestComponent(''); + + expectNoDiagnostics(); + }); + }); + it('should check basic usage of NgIf', () => { env.write( 'test.ts', @@ -2031,6 +2279,44 @@ runInEachFileSystem(() => { expect(getSourceCodeForDiagnostic(diags[0])).toBe('does_not_exist'); }); + it('should type check increment/decrement operations', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + + @Component({template: ''}) + class TestCmp { + name = 'frodo'; + } + `, + ); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(1); + expect(diags[0].messageText).toEqual( + `An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type.`, + ); + }); + + it('should type check increment/decrement targets', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + + @Component({template: ''}) + class TestCmp {} + `, + ); + + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(1); + expect(diags[0].messageText).toEqual( + `Property 'doesNotExist' does not exist on type 'TestCmp'.`, + ); + }); + describe('microsyntax variables', () => { beforeEach(() => { // Use the same template for both tests @@ -2223,12 +2509,74 @@ runInEachFileSystem(() => { export class Module {} `, ); + const diags = env + .driveDiagnostics() + .map((d) => [getSourceCodeForDiagnostic(d), d.messageText]) + .sort(([, a], [, b]) => (a as string).localeCompare(b as string)); + expect(diags).toEqual([ + [ + 'y = !y', + `Cannot use variable 'y' as the left-hand side of an assignment expression. Template variables are read-only.`, + ], + ['y', `Type 'false' is not assignable to type 'true'.`], + ]); + }); + + it('should detect an illegal write to a template variable through update operators', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + import {CommonModule} from '@angular/common'; + + @Component({ + template: \` +
    + + +
    + \`, + imports: [CommonModule] + }) + export class TestCmp { + x!: number; + } + `, + ); const diags = env.driveDiagnostics(); - expect(diags.length).toEqual(2); - expect(getSourceCodeForDiagnostic(diags[0])).toEqual('y'); - expect(getSourceCodeForDiagnostic(diags[1])).toEqual('y = !y'); - expect(diags[0].messageText).toEqual(`Type 'false' is not assignable to type 'true'.`); - expect(diags[1].messageText).toEqual( + expect(diags.length).toBe(2); + expect(diags.map((d) => getSourceCodeForDiagnostic(d))).toEqual(['y++', '--y']); + expect(diags.map((d) => d.messageText)).toEqual([ + `Cannot use variable 'y' as the left-hand side of an assignment expression. Template variables are read-only.`, + `Cannot use variable 'y' as the left-hand side of an assignment expression. Template variables are read-only.`, + ]); + }); + + it('should detect an illegal write to a template variable through an update operator on the right-hand side of an assignment', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; + import {CommonModule} from '@angular/common'; + + @Component({ + template: \` +
    + +
    + \`, + imports: [CommonModule] + }) + export class TestCmp { + x!: number; + prop = 0; + } + `, + ); + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(1); + expect(getSourceCodeForDiagnostic(diags[0])).toBe('prop = y++'); + expect(diags[0].messageText).toBe( `Cannot use variable 'y' as the left-hand side of an assignment expression. Template variables are read-only.`, ); }); @@ -3803,6 +4151,38 @@ runInEachFileSystem(() => { expect(diags.length).toBe(0); }); + it('should widen the inferred literal type of readonly fields', () => { + env.write( + 'test.ts', + ` + import {Component, NgModule, Input, Directive} from '@angular/core'; + + @Component({ + selector: 'blah', + template: '
    ', + standalone: false, + }) + export class FooCmp {} + + @Directive({ + selector: '[dir]', + standalone: false, + }) + export class TestDir { + // Inferred as the literal type \`false\`; the binding must widen it to \`boolean\`. + @Input() readonly showBadge = false; + } + + @NgModule({ + declarations: [FooCmp, TestDir], + }) + export class FooModule {} + `, + ); + const diags = env.driveDiagnostics(); + expect(diags.length).toBe(0); + }); + it('should produce diagnostics when assigning incorrect type to readonly, private, or protected fields', () => { env.write( 'test.ts', @@ -4365,21 +4745,369 @@ runInEachFileSystem(() => { ); }); - it('should convert property names when binding special properties', () => { - env.write( - 'test.ts', - ` - import {Component, NgModule} from '@angular/core'; + describe('strictNgTemplateTypes', () => { + beforeEach(() => env.tsconfig({strictNgTemplateTypes: true})); + + it('should check for unknown properties on an ng-template', () => { + env.write( + 'test.ts', + ` + import {Component} from '@angular/core'; @Component({ selector: 'blah', - template: '
    '], - [TokenType.EOF, ''], - ]); - }); - }); - describe('escapable raw text', () => { it('should parse text', () => { expect(tokenizeAndHumanizeParts(`t\ne\rs\r\nt`)).toEqual([ @@ -1822,6 +1526,17 @@ describe('HtmlLexer', () => { ]); }); + it('should not treat a leading colon as a namespace prefix separator', () => { + expect(tokenizeAndHumanizeParts('')).toEqual([ + [TokenType.TAG_OPEN_START, '', 't'], + [TokenType.ATTR_NAME, '', ':a'], + [TokenType.ATTR_NAME, '', '::b'], + [TokenType.ATTR_NAME, '', ':[c]'], + [TokenType.TAG_OPEN_END], + [TokenType.EOF], + ]); + }); + it('should parse attributes with single quote value', () => { expect(tokenizeAndHumanizeParts("")).toEqual([ [TokenType.TAG_OPEN_START, '', 't'], diff --git a/packages/compiler/test/ml_parser/util/util.ts b/packages/compiler/test/ml_parser/util/util.ts index 76ad50b7d898..4071b83e3606 100644 --- a/packages/compiler/test/ml_parser/util/util.ts +++ b/packages/compiler/test/ml_parser/util/util.ts @@ -11,7 +11,7 @@ import {getHtmlTagDefinition} from '../../../src/ml_parser/html_tags'; class _SerializerVisitor implements html.Visitor { visitElement(element: html.Element, context: any): any { - const attrs = `${this._visitAll(element.attrs, ' ', ' ')}${this._visitAll(element.directives, ' ', ' ')}`; + const attrs = this._visitAll(element.attrs, ' ', ' '); if (getHtmlTagDefinition(element.name).isVoid) { return `<${element.name}${attrs}/>`; @@ -54,15 +54,6 @@ class _SerializerVisitor implements html.Visitor { return `@let ${decl.name} = ${decl.value};`; } - visitComponent(node: html.Component, context: any): any { - const attrs = `${this._visitAll(node.attrs, ' ', ' ')}${this._visitAll(node.directives, ' ', ' ')}`; - return `<${node.fullName}${attrs}>${this._visitAll(node.children)}`; - } - - visitDirective(directive: html.Directive, context: any) { - return `@${directive.name}${this._visitAll(directive.attrs, ' ', ' ')}`; - } - private _visitAll(nodes: html.Node[], separator = '', prefix = ''): string { return nodes.length > 0 ? prefix + nodes.map((a) => a.visit(this, null)).join(separator) : ''; } diff --git a/packages/compiler/test/output/abstract_emitter_spec.ts b/packages/compiler/test/output/abstract_emitter_spec.ts index 6d3ec948fd1b..789563e1a949 100644 --- a/packages/compiler/test/output/abstract_emitter_spec.ts +++ b/packages/compiler/test/output/abstract_emitter_spec.ts @@ -6,7 +6,25 @@ * found in the LICENSE file at https://angular.dev/license */ -import {escapeIdentifier} from '../../src/output/abstract_emitter'; +import {EmitterVisitorContext, escapeIdentifier} from '../../src/output/abstract_emitter'; +import {AbstractJsEmitterVisitor} from '../../src/output/abstract_js_emitter'; +import * as o from '../../src/output/output_ast'; + +class TestJsEmitter extends AbstractJsEmitterVisitor { + constructor(override readonly printComments: boolean) { + super(); + } + + override visitExternalExpr(ast: o.ExternalExpr, ctx: EmitterVisitorContext): void { + ctx.print(ast, ast.value.name!); + } +} + +function emitExpr(expr: o.Expression, printComments = true): string { + const ctx = EmitterVisitorContext.createRoot(); + expr.visitExpression(new TestJsEmitter(printComments), ctx); + return ctx.toSource(); +} describe('AbstractEmitter', () => { describe('escapeIdentifier', () => { @@ -32,6 +50,167 @@ describe('AbstractEmitter', () => { it('does not escape class (but it probably should)', () => { expect(escapeIdentifier('class', false)).toEqual('class'); }); + it('should escape non-ascii and control characters when escapeNonAscii is true', () => { + expect(escapeIdentifier('Jos\u00e9 & \ud83d\ude0a', true, true)).toEqual( + `'Jos\\u00E9 & \\uD83D\\uDE0A'`, + ); + expect(escapeIdentifier('\ufffd0\ufffd', true, true)).toEqual(`'\\uFFFD0\\uFFFD'`); + expect(escapeIdentifier('a\tb\0c\x009', true, true)).toEqual(`'a\\tb\\0c\\x009'`); + }); + it('should not escape unquoted legal identifiers when escapeNonAscii is true', () => { + expect(escapeIdentifier('fooBar', false, true)).toEqual('fooBar'); + expect(escapeIdentifier('foo-bar\u00e9', false, true)).toEqual(`'foo-bar\\u00E9'`); + }); + }); + + describe('visitLiteralMapExpr', () => { + it('should emit leading comments on the first property assignment on its own line', () => { + const expr = new o.LiteralMapExpr([ + new o.LiteralMapPropertyAssignment('a', o.literal(1), false, [o.leadingComment('comment')]), + new o.LiteralMapPropertyAssignment('b', o.literal(2), false), + ]); + + expect(emitExpr(expr)).toBe('{\n// comment\na: 1, b: 2}'); + }); + + it('should emit leading comments on subsequent property assignments after the comma', () => { + const expr = new o.LiteralMapExpr([ + new o.LiteralMapPropertyAssignment('a', o.literal(1), false), + new o.LiteralMapPropertyAssignment('b', o.literal(2), false, [o.leadingComment('comment')]), + ]); + + expect(emitExpr(expr)).toBe('{a: 1,\n// comment\nb: 2}'); + }); + + it('should omit leading comments on property assignments when printComments is false', () => { + const expr = new o.LiteralMapExpr([ + new o.LiteralMapPropertyAssignment('a', o.literal(1), false, [o.leadingComment('comment')]), + new o.LiteralMapPropertyAssignment('b', o.literal(2), false), + ]); + + expect(emitExpr(expr, false)).toBe('{a: 1, b: 2}'); + }); + + it('should handle spread assignments alongside commented property assignments', () => { + const expr = new o.LiteralMapExpr([ + new o.LiteralMapSpreadAssignment(o.variable('rest')), + new o.LiteralMapPropertyAssignment('a', o.literal(1), false, [o.leadingComment('comment')]), + ]); + + expect(emitExpr(expr)).toBe('{...rest,\n// comment\na: 1}'); + }); + }); + + describe('visitParenthesizedExpr', () => { + const a = o.variable('a'); + const b = o.variable('b'); + const f = o.variable('f'); + const x = o.variable('x'); + + it('should parenthesize a double negation before a method call', () => { + const expr = new o.ParenthesizedExpr(o.not(o.not(a.prop('b')))).prop('toString').callFn([]); + expect(emitExpr(expr)).toBe('(!!a.b).toString()'); + }); + + it('should parenthesize a negation before a property read', () => { + expect(emitExpr(new o.ParenthesizedExpr(o.not(a)).prop('b'))).toBe('(!a).b'); + }); + + it('should parenthesize a negation before a keyed read', () => { + expect(emitExpr(new o.ParenthesizedExpr(o.not(a)).key(o.variable('k')))).toBe('(!a)[k]'); + }); + + it('should parenthesize a negation before a call', () => { + expect(emitExpr(new o.ParenthesizedExpr(o.not(f)).callFn([]))).toBe('(!f)()'); + }); + + it('should parenthesize a typeof expression before a property read', () => { + expect(emitExpr(new o.ParenthesizedExpr(o.typeofExpr(a)).prop('length'))).toBe( + '(typeof a).length', + ); + }); + + it('should parenthesize a void expression before a property read', () => { + expect(emitExpr(new o.ParenthesizedExpr(new o.VoidExpr(a)).prop('b'))).toBe('(void a).b'); + }); + + it('should parenthesize a negation on the left side of an exponentiation', () => { + expect(emitExpr(new o.ParenthesizedExpr(o.not(a)).power(o.literal(2)))).toBe('((!a) ** 2)'); + }); + + it('should parenthesize a typeof expression on the left side of an exponentiation', () => { + expect(emitExpr(new o.ParenthesizedExpr(o.typeofExpr(a)).power(o.literal(2)))).toBe( + '((typeof a) ** 2)', + ); + }); + + it('should parenthesize a number literal before a method call', () => { + expect(emitExpr(new o.ParenthesizedExpr(o.literal(1)).prop('toString').callFn([]))).toBe( + '(1).toString()', + ); + }); + + it('should parenthesize an arrow function before a property read', () => { + expect(emitExpr(new o.ParenthesizedExpr(o.arrowFn([], x)).prop('name'))).toBe( + '(() => x).name', + ); + }); + + it('should parenthesize an arrow function in a binary expression', () => { + expect(emitExpr(new o.ParenthesizedExpr(o.arrowFn([], x)).or(b))).toBe('((() => x) || b)'); + }); + + it('should parenthesize a call used as the class of an instantiation', () => { + expect(emitExpr(new o.InstantiateExpr(new o.ParenthesizedExpr(f.callFn([])), []))).toBe( + 'new (f())()', + ); + }); + + it('should not double-parenthesize expressions that parenthesize themselves', () => { + expect(emitExpr(new o.ParenthesizedExpr(a.or(b)).prop('c'))).toBe('(a || b).c'); + expect(emitExpr(new o.ParenthesizedExpr(new o.ConditionalExpr(a, b, x)).prop('c'))).toBe( + '(a ? b : x).c', + ); + expect(emitExpr(new o.ParenthesizedExpr(new o.ParenthesizedExpr(o.not(a))).prop('b'))).toBe( + '(!a).b', + ); + }); + + it('should parenthesize a negative number before a method call', () => { + const unaryMinus = new o.UnaryOperatorExpr(o.UnaryOperator.Minus, o.literal(1)); + expect(emitExpr(new o.ParenthesizedExpr(unaryMinus).prop('toString').callFn([]))).toBe( + '(-1).toString()', + ); + expect(emitExpr(unaryMinus.prop('toString').callFn([]))).toBe('(-1).toString()'); + expect(emitExpr(new o.ParenthesizedExpr(o.literal(-1)).prop('toString').callFn([]))).toBe( + '(-1).toString()', + ); + }); + + it('should parenthesize a conditional expression before a method call', () => { + const conditional = new o.ConditionalExpr(a, b, x); + expect(emitExpr(new o.ParenthesizedExpr(conditional).prop('toString').callFn([]))).toBe( + '(a ? b : x).toString()', + ); + expect(emitExpr(conditional.prop('toString').callFn([]))).toBe('(a ? b : x).toString()'); + }); + + it('should parenthesize a binary expression before a method call', () => { + const sum = a.plus(b); + expect(emitExpr(new o.ParenthesizedExpr(sum).prop('toString').callFn([]))).toBe( + '(a + b).toString()', + ); + expect(emitExpr(sum.prop('toString').callFn([]))).toBe('(a + b).toString()'); + }); + + it('should not add redundant parentheses around an if statement condition', () => { + const ctx = EmitterVisitorContext.createRoot(); + new o.IfStmt(new o.ParenthesizedExpr(a.or(b)), [new o.ExpressionStatement(x)]).visitStatement( + new TestJsEmitter(false), + ctx, + ); + expect(ctx.toSource()).toBe('if (a || b) { x; }'); + }); }); }); diff --git a/packages/compiler/test/render3/r3_ast_spans_spec.ts b/packages/compiler/test/render3/r3_ast_spans_spec.ts index d11e3e2e3d52..13203623fc9b 100644 --- a/packages/compiler/test/render3/r3_ast_spans_spec.ts +++ b/packages/compiler/test/render3/r3_ast_spans_spec.ts @@ -26,7 +26,6 @@ class R3AstSourceSpans implements t.Visitor { element.attributes, element.inputs, element.outputs, - element.directives, element.references, element.children, ]); @@ -43,7 +42,6 @@ class R3AstSourceSpans implements t.Visitor { template.attributes, template.inputs, template.outputs, - template.directives, template.templateAttrs, template.references, template.variables, @@ -219,6 +217,25 @@ class R3AstSourceSpans implements t.Visitor { this.visitAll([block.children]); } + visitBoundaryBlock(block: t.BoundaryBlock): void { + this.result.push([ + 'BoundaryBlock', + humanizeSpan(block.sourceSpan), + humanizeSpan(block.startSourceSpan), + humanizeSpan(block.endSourceSpan), + ]); + this.visitAll([block.children, block.errorBlocks]); + } + + visitBoundaryErrorBlock(block: t.BoundaryErrorBlock): void { + this.result.push([ + 'BoundaryErrorBlock', + humanizeSpan(block.sourceSpan), + humanizeSpan(block.startSourceSpan), + ]); + this.visitAll([block.children]); + } + visitDeferredTrigger(trigger: t.DeferredTrigger): void { let name: string; @@ -288,38 +305,6 @@ class R3AstSourceSpans implements t.Visitor { ]); } - visitComponent(component: t.Component) { - this.result.push([ - 'Component', - humanizeSpan(component.sourceSpan), - humanizeSpan(component.startSourceSpan), - humanizeSpan(component.endSourceSpan), - ]); - this.visitAll([ - component.attributes, - component.inputs, - component.outputs, - component.directives, - component.references, - component.children, - ]); - } - - visitDirective(directive: t.Directive) { - this.result.push([ - 'Directive', - humanizeSpan(directive.sourceSpan), - humanizeSpan(directive.startSourceSpan), - humanizeSpan(directive.endSourceSpan), - ]); - this.visitAll([ - directive.attributes, - directive.inputs, - directive.outputs, - directive.references, - ]); - } - private visitAll(nodes: t.Node[][]) { nodes.forEach((node) => t.visitAll(this, node)); } @@ -332,8 +317,8 @@ function humanizeSpan(span: ParseSourceSpan | null | undefined): string { return span.toString(); } -function expectFromHtml(html: string, selectorlessEnabled = false) { - return expectFromR3Nodes(parse(html, {selectorlessEnabled}).nodes); +function expectFromHtml(html: string) { + return expectFromR3Nodes(parse(html).nodes); } function expectFromR3Nodes(nodes: t.Node[]) { @@ -978,120 +963,4 @@ describe('R3 AST source spans', () => { ]); }); }); - - describe('component tags', () => { - it('is correct for a simple component', () => { - expectFromHtml('', true).toEqual([ - ['Component', '', '', ''], - ]); - }); - - it('is correct for a self-closing component', () => { - expectFromHtml('', true).toEqual([ - ['Component', '', '', ''], - ]); - }); - - it('is correct for a component with a tag name', () => { - expectFromHtml('', true).toEqual([ - ['Component', '', '', ''], - ]); - }); - - it('is correct for a component with attributes and directives', () => { - expectFromHtml( - 'Hello', - true, - ).toEqual([ - [ - 'Component', - 'Hello', - '', - '', - ], - ['TextAttribute', 'before="foo"', 'before', 'foo'], - ['TextAttribute', 'middle', 'middle', ''], - ['TextAttribute', 'after="123"', 'after', '123'], - ['Directive', '@Dir', '@Dir', ''], - ['Directive', '@OtherDir([a]="a" (b)="b()")', '@OtherDir(', ')'], - ['BoundAttribute', '[a]="a"', 'a', 'a'], - ['BoundEvent', '(b)="b()"', 'b', 'b()'], - ['Text', 'Hello'], - ]); - }); - - it('is correct for a component nested inside other markup', () => { - expectFromHtml( - '@if (expr) {
    Hello:
    }', - true, - ).toEqual([ - [ - 'IfBlock', - '@if (expr) {
    Hello:
    }', - '@if (expr) {', - '}', - ], - [ - 'IfBlockBranch', - '@if (expr) {
    Hello:
    }', - '@if (expr) {', - ], - [ - 'Element', - '
    Hello:
    ', - '
    ', - '
    ', - ], - ['Text', 'Hello: '], - ['Component', '', '', ''], - ['Element', '', '', ''], - ['Component', '', '', ''], - ]); - }); - }); - - describe('directives', () => { - it('is correct for a directive with no attributes', () => { - expectFromHtml('
    ', true).toEqual([ - ['Element', '
    ', '
    ', '
    '], - ['Directive', '@Dir', '@Dir', ''], - ]); - }); - - it('is correct for a directive with attributes', () => { - expectFromHtml('
    ', true).toEqual([ - [ - 'Element', - '
    ', - '
    ', - '
    ', - ], - ['Directive', '@Dir(a="1" [b]="two" (c)="c()")', '@Dir(', ')'], - ['TextAttribute', 'a="1"', 'a', '1'], - ['BoundAttribute', '[b]="two"', 'b', 'two'], - ['BoundEvent', '(c)="c()"', 'c', 'c()'], - ]); - }); - - it('is correct for directives mixed with other attributes', () => { - expectFromHtml( - '
    ', - true, - ).toEqual([ - [ - 'Element', - '
    ', - '
    ', - '
    ', - ], - ['TextAttribute', 'before="foo"', 'before', 'foo'], - ['TextAttribute', 'middle', 'middle', ''], - ['TextAttribute', 'after="123"', 'after', '123'], - ['Directive', '@Dir', '@Dir', ''], - ['Directive', '@OtherDir([a]="a" (b)="b()")', '@OtherDir(', ')'], - ['BoundAttribute', '[a]="a"', 'a', 'a'], - ['BoundEvent', '(b)="b()"', 'b', 'b()'], - ]); - }); - }); }); diff --git a/packages/compiler/test/render3/r3_template_transform_spec.ts b/packages/compiler/test/render3/r3_template_transform_spec.ts index 59ac9b364e99..de14a9900e0a 100644 --- a/packages/compiler/test/render3/r3_template_transform_spec.ts +++ b/packages/compiler/test/render3/r3_template_transform_spec.ts @@ -26,7 +26,6 @@ class R3AstHumanizer implements t.Visitor { element.attributes, element.inputs, element.outputs, - element.directives, element.references, element.children, ]); @@ -42,7 +41,6 @@ class R3AstHumanizer implements t.Visitor { template.attributes, template.inputs, template.outputs, - template.directives, template.templateAttrs, template.references, template.variables, @@ -153,6 +151,16 @@ class R3AstHumanizer implements t.Visitor { this.visitAll(toVisit); } + visitBoundaryBlock(block: t.BoundaryBlock): void { + this.result.push(['BoundaryBlock']); + this.visitAll([block.children, block.errorBlocks]); + } + + visitBoundaryErrorBlock(block: t.BoundaryErrorBlock): void { + this.result.push(['BoundaryErrorBlock', block.expression ? unparse(block.expression) : null]); + this.visitAll([block.contextVariables, block.children]); + } + visitDeferredTrigger(trigger: t.DeferredTrigger): void { if (trigger instanceof t.BoundDeferredTrigger) { this.result.push(['BoundDeferredTrigger', unparse(trigger.value)]); @@ -213,39 +221,13 @@ class R3AstHumanizer implements t.Visitor { this.result.push(['LetDeclaration', decl.name, unparse(decl.value)]); } - visitComponent(component: t.Component) { - const res = ['Component', component.componentName, component.tagName, component.fullName]; - if (component.isSelfClosing) { - res.push('#selfClosing'); - } - this.result.push(res); - this.visitAll([ - component.attributes, - component.inputs, - component.outputs, - component.directives, - component.references, - component.children, - ]); - } - - visitDirective(directive: t.Directive): void { - this.result.push(['Directive', directive.name]); - this.visitAll([ - directive.attributes, - directive.inputs, - directive.outputs, - directive.references, - ]); - } - private visitAll(nodes: t.Node[][]) { nodes.forEach((node) => t.visitAll(this, node)); } } -function expectFromHtml(html: string, ignoreError = false, selectorlessEnabled = false) { - const res = parse(html, {ignoreError, selectorlessEnabled}); +function expectFromHtml(html: string, ignoreError = false) { + const res = parse(html, {ignoreError}); return expectFromR3Nodes(res.nodes); } @@ -267,6 +249,35 @@ describe('R3 template transform', () => { }); }); + describe('Boundary blocks', () => { + it('should parse @boundary blocks with multiple @error blocks', () => { + expectFromHtml(` + @boundary { +
    Content
    + } @error (when err instanceof SpecificError) { +
    Specific Error
    + } @error (let err) { +
    General Error {{ err }}
    + } + `).toEqual([ + ['BoundaryBlock'], + ['Element', 'div'], + ['Text', 'Content'], + ['BoundaryErrorBlock', 'err instanceof SpecificError'], + ['Variable', '$error', '$error'], + ['Variable', '$reset', '$reset'], + ['Element', 'div'], + ['Text', 'Specific Error'], + ['BoundaryErrorBlock', null], + ['Variable', '$error', '$error'], + ['Variable', '$reset', '$reset'], + ['Variable', 'err', '$error'], + ['Element', 'div'], + ['BoundText', 'General Error {{ err }}'], + ]); + }); + }); + describe('Nodes without binding', () => { it('should parse incomplete tags terminated by EOF', () => { expectFromHtml(' { ]); }); + it('should parse bound classes with dots in the name', () => { + expectFromHtml('
    ').toEqual([ + ['Element', 'div'], + ['BoundAttribute', BindingType.Class, 'px-3.5', 'v'], + ['BoundAttribute', BindingType.Class, 'a.b.c', 'w'], + ]); + }); + it('should parse mixed case bound styles', () => { expectFromHtml('
    ').toEqual([ ['Element', 'div'], @@ -416,6 +435,36 @@ describe('R3 template transform', () => { ['BoundAttribute', BindingType.Class, `data-[size='large']:p-8`, 'expr3'], ]); }); + + it('should parse interpolated namespaced attributes without error', () => { + expectFromHtml('').toEqual([ + ['Element', ':svg:svg'], + ['Element', ':svg:a'], + ['BoundAttribute', BindingType.Attribute, ':xlink:href', '{{ v }}'], + ]); + }); + + it('should reject interpolated namespaced event attributes', () => { + expect(() => parse('')).toThrowError( + /Binding to event attribute 'svg:onclick' is disallowed for security reasons, please use \(click\)=\.\.\./, + ); + }); + + it('should ignore raw attributes starting with a colon', () => { + expectFromHtml( + '
    ', + true /* ignoreError */, + ).toEqual([['Element', 'div']]); + }); + + it('should not attach i18n metadata for bound properties named after Object.prototype members', () => { + const {nodes} = parse('
    '); + const template = nodes[0] as t.Template; + expect(template.templateAttrs[0].i18n).toBeUndefined(); + const element = template.children[0] as t.Element; + expect(element.inputs[0].i18n).toBeUndefined(); + expect(element.inputs[1].i18n).toBeUndefined(); + }); }); describe('animation bindings', () => { @@ -927,6 +976,17 @@ describe('R3 template transform', () => { expectFromHtml('a').toEqual([['Text', 'a']]); }); + it('should ignore safe', + ).toEqual([ + ['Element', ':xhtml:div'], + ['TextAttribute', ':xmlns:xhtml', 'http://www.w3.org/1999/xhtml'], + ['Element', ':xhtml:span'], + ['Text', 'safe'], + ]); + }); + it('should ignore a').toEqual([['Text', 'a']]); }); @@ -997,6 +1057,17 @@ describe('R3 template transform', () => { ]); }); + it('should ignore custom-namespaced safe', + ).toEqual([ + ['Element', ':foo:div'], + ['TextAttribute', 'ngNonBindable', ''], + ['Element', ':foo:span'], + ['Text', 'safe'], + ]); + }); + it('should ignore a
    ').toEqual([ ['Element', 'div'], @@ -1005,6 +1076,16 @@ describe('R3 template transform', () => { ]); }); + it('should convert &ngsp; to a space inside elements with ngNonBindable', () => { + expectFromR3Nodes( + parse('
    a&ngsp;b
    ', {preserveWhitespaces: true}).nodes, + ).toEqual([ + ['Element', 'pre'], + ['TextAttribute', 'ngNonBindable', ''], + ['Text', 'a b'], + ]); + }); + it('should ignore elements inside of elements with ngNonBindable', () => { expectFromHtml('
    a
    ').toEqual([ ['Element', 'div'], @@ -1384,10 +1465,14 @@ describe('R3 template transform', () => { it('should parse a viewport trigger with an options parameter', () => { expectFromHtml( - '@defer (on viewport({trigger: foo, rootMargin: "123px", threshold: [1, 2, 3]})){hello}', + '@defer (on viewport({trigger: foo, rootMargin: "123px", scrollMargin: "456px", threshold: [1, 2, 3]})){hello}', ).toEqual([ ['DeferredBlock'], - ['ViewportDeferredTrigger', 'foo', '{rootMargin: "123px", threshold: [1, 2, 3]}'], + [ + 'ViewportDeferredTrigger', + 'foo', + '{rootMargin: "123px", scrollMargin: "456px", threshold: [1, 2, 3]}', + ], ['Text', 'hello'], ]); }); @@ -1432,7 +1517,7 @@ describe('R3 template transform', () => { /@loading block can only be used after an @defer block/, ); expect(() => parse('@error {error}')).toThrowError( - /@error block can only be used after an @defer block/, + /@error block can only be used after an @defer or @boundary block/, ); }); @@ -2772,241 +2857,6 @@ describe('R3 template transform', () => { }); }); - describe('component nodes', () => { - function expectSelectorless(html: string, ignoreError?: boolean) { - return expectFromHtml(html, ignoreError, true); - } - - function parseSelectorless(html: string) { - return parse(html, {selectorlessEnabled: true}); - } - - it('should parse a simple component node', () => { - expectSelectorless('Hello').toEqual([ - ['Component', 'MyComp', null, 'MyComp'], - ['Text', 'Hello'], - ]); - }); - - it('should parse a component node with a tag name', () => { - expectSelectorless('Hello').toEqual([ - ['Component', 'MyComp', 'button', 'MyComp:button'], - ['Text', 'Hello'], - ]); - }); - - it('should parse a component tag nested within other markup', () => { - expectSelectorless( - '@if (expr) {
    Hello:
    }', - ).toEqual([ - ['IfBlock'], - ['IfBlockBranch', 'expr'], - ['Element', 'div'], - ['Text', 'Hello: '], - ['Component', 'MyComp', null, 'MyComp'], - ['Element', 'span'], - ['Component', 'OtherComp', null, 'OtherComp', '#selfClosing'], - ]); - }); - - it('should parse a component node with attributes and directives', () => { - expectSelectorless( - 'Hello', - ).toEqual([ - ['Component', 'MyComp', null, 'MyComp'], - ['TextAttribute', 'before', 'foo'], - ['TextAttribute', 'middle', ''], - ['TextAttribute', 'after', '123'], - ['Directive', 'Dir'], - ['Directive', 'OtherDir'], - ['BoundAttribute', 0, 'a', 'a'], - ['BoundEvent', 0, 'b', null, 'b()'], - ['Text', 'Hello'], - ]); - }); - - it('should parse a component node with * directives', () => { - expectSelectorless('Hello').toEqual([ - ['Template'], - ['BoundAttribute', 0, 'ngIf', 'expr'], - ['Component', 'MyComp', null, 'MyComp'], - ['Text', 'Hello'], - ]); - }); - - it('should not pick up attributes from directives when using * syntax', () => { - expectSelectorless( - '', - ).toEqual([ - ['Template'], - ['BoundAttribute', 0, 'ngIf', 'true'], - ['Component', 'MyComp', null, 'MyComp', '#selfClosing'], - ['Directive', 'Dir'], - ['TextAttribute', 'static', '1'], - ['BoundAttribute', 0, 'bound', 'expr'], - ['BoundEvent', 0, 'event', null, 'fn()'], - ]); - }); - - it('should treat components as elements inside ngNonBindable', () => { - expectSelectorless( - '
    ', - ).toEqual([ - ['Element', 'div'], - ['TextAttribute', 'ngNonBindable', ''], - ['Element', 'MyComp'], - ['TextAttribute', 'foo', 'bar'], - ]); - }); - - it('should not allow a selectorless component with an unsupported tag name', () => { - const unsupportedTags = [ - 'link', - 'style', - 'script', - 'ng-template', - 'ng-container', - 'ng-content', - ]; - - for (const name of unsupportedTags) { - expect(() => parseSelectorless(``)).toThrowError( - new RegExp(`Tag name "${name}" cannot be used as a component tag`), - ); - } - }); - }); - - describe('directives', () => { - function expectSelectorless(html: string, ignoreError?: boolean) { - return expectFromHtml(html, ignoreError, true); - } - - function parseSelectorless(html: string) { - return parse(html, {selectorlessEnabled: true}); - } - - it('should parse a directive with no attributes', () => { - expectSelectorless('
    ').toEqual([ - ['Element', 'div'], - ['Directive', 'Dir'], - ]); - }); - - it('should parse a directive with attributes', () => { - expectSelectorless('
    ').toEqual([ - ['Element', 'div'], - ['Directive', 'Dir'], - ['TextAttribute', 'a', '1'], - ['BoundAttribute', 0, 'b', 'two'], - ['BoundAttribute', BindingType.TwoWay, 'd', 'd'], - ['BoundEvent', 0, 'c', null, 'c()'], - ['BoundEvent', 2, 'dChange', null, 'd'], - ]); - }); - - it('should parse a directive mixed with other attributes', () => { - expectSelectorless( - '
    ', - ).toEqual([ - ['Element', 'div'], - ['TextAttribute', 'before', 'foo'], - ['TextAttribute', 'middle', ''], - ['TextAttribute', 'after', '123'], - ['Directive', 'Dir'], - ['Directive', 'OtherDir'], - ['BoundAttribute', 0, 'a', 'a'], - ['BoundEvent', 0, 'b', null, 'b()'], - ]); - }); - - it('should remove directives inside ngNonBindable', () => { - expectSelectorless( - '
    ', - ).toEqual([ - ['Element', 'div'], - ['TextAttribute', 'ngNonBindable', ''], - ['Element', 'span'], - ]); - }); - - it('should pick up attributes from selectorless directives when using * syntax', () => { - expectSelectorless( - '
    ', - ).toEqual([ - ['Template'], - ['BoundAttribute', 0, 'ngIf', 'true'], - ['Element', 'div'], - ['Directive', 'Dir'], - ['TextAttribute', 'static', '1'], - ['BoundAttribute', 0, 'bound', 'expr'], - ['BoundEvent', 0, 'event', null, 'fn()'], - ]); - }); - - describe('validations', () => { - it('should not allow * syntax inside directives', () => { - expect(() => parseSelectorless(`
    `)).toThrowError( - /Shorthand template syntax "\*ngIf" is not supported inside a directive context/, - ); - }); - - it('should not allow ngProjectAs inside directive syntax', () => { - expect(() => parseSelectorless(`
    `)).toThrowError( - /Attribute "ngProjectAs" is not supported in a directive context/, - ); - }); - - it('should not allow ngNonBindable inside directive syntax', () => { - expect(() => parseSelectorless(`
    `)).toThrowError( - /Attribute "ngNonBindable" is not supported in a directive context/, - ); - }); - - it('should not allow the same directive to be applied multiple times', () => { - expect(() => parseSelectorless(`
    `)).toThrowError( - /Cannot apply directive "One" multiple times on the same element/, - ); - }); - - it('should not allow class bindings inside directives', () => { - expect(() => parseSelectorless(`
    `)).toThrowError( - /Binding is not supported in a directive context/, - ); - }); - - it('should not allow style bindings inside directives', () => { - expect(() => parseSelectorless(`
    `)).toThrowError( - /Binding is not supported in a directive context/, - ); - }); - - it('should not allow attribute bindings inside directives', () => { - expect(() => parseSelectorless(`
    `)).toThrowError( - /Binding is not supported in a directive context/, - ); - }); - - it('should not allow animation bindings inside directives', () => { - expect(() => parseSelectorless(`
    `)).toThrowError( - /Binding is not supported in a directive context/, - ); - }); - - it('should not allow named references', () => { - const pattern = /Cannot specify a value for a local reference in this context/; - expect(() => parseSelectorless('')).toThrowError(pattern); - expect(() => parseSelectorless('
    ')).toThrowError(pattern); - }); - - it('should not allow duplicate references', () => { - const pattern = /Duplicate reference names are not allowed/; - expect(() => parseSelectorless('')).toThrowError(pattern); - expect(() => parseSelectorless('
    ')).toThrowError(pattern); - }); - }); - }); - it('should report an error for attribute bindings on ng-container', () => { const template = ``; const errors = parse(template, {ignoreError: true}).errors; @@ -3016,12 +2866,36 @@ describe('R3 template transform', () => { ); }); + // TODO(v23): Enable this breaking change + xit('should report an error for class bindings on ng-container', () => { + const template = ``; + const errors = parse(template, {ignoreError: true}).errors; + expect(errors.length).toBe(1); + expect(errors[0].msg).toBe('Class bindings are not supported on ng-container.'); + }); + + // TODO(v23): Enable this breaking change + xit('should report an error for [class] property bindings on ng-container', () => { + const template = ``; + const errors = parse(template, {ignoreError: true}).errors; + expect(errors.length).toBe(1); + expect(errors[0].msg).toBe('Class bindings are not supported on ng-container.'); + }); + it('should not report an error on non-attr bindings on ng-container', () => { const template = ``; const errors = parse(template, {ignoreError: true}).errors; expect(errors.length).toBe(0); }); + // TODO(v23): Enable this breaking change + xit('should report an error for class interpolation on ng-container', () => { + const template = ``; + const errors = parse(template, {ignoreError: true}).errors; + expect(errors.length).toBe(1); + expect(errors[0].msg).toBe('Class bindings are not supported on ng-container.'); + }); + describe('@content blocks', () => { it('should parse a valid @content block', () => { expectFromHtml(` diff --git a/packages/compiler/test/render3/util/expression.ts b/packages/compiler/test/render3/util/expression.ts index a49567b49b08..ae856289a3fd 100644 --- a/packages/compiler/test/render3/util/expression.ts +++ b/packages/compiler/test/render3/util/expression.ts @@ -142,12 +142,10 @@ class ExpressionSourceHumanizer extends e.RecursiveAstVisitor implements t.Visit } visitTemplate(ast: t.Template) { - t.visitAll(this, ast.directives); t.visitAll(this, ast.children); t.visitAll(this, ast.templateAttrs); } visitElement(ast: t.Element) { - t.visitAll(this, ast.directives); t.visitAll(this, ast.children); t.visitAll(this, ast.inputs); t.visitAll(this, ast.outputs); @@ -243,20 +241,18 @@ class ExpressionSourceHumanizer extends e.RecursiveAstVisitor implements t.Visit t.visitAll(this, block.children); } - visitLetDeclaration(decl: t.LetDeclaration) { - decl.value.visit(this); + visitBoundaryBlock(block: t.BoundaryBlock) { + t.visitAll(this, block.children); + t.visitAll(this, block.errorBlocks); } - visitComponent(ast: t.Component) { - t.visitAll(this, ast.children); - t.visitAll(this, ast.directives); - t.visitAll(this, ast.inputs); - t.visitAll(this, ast.outputs); + visitBoundaryErrorBlock(block: t.BoundaryErrorBlock) { + block.expression?.visit(this); + t.visitAll(this, block.children); } - visitDirective(ast: t.Directive) { - t.visitAll(this, ast.inputs); - t.visitAll(this, ast.outputs); + visitLetDeclaration(decl: t.LetDeclaration) { + decl.value.visit(this); } visitContentBlock(block: t.ContentBlock) { diff --git a/packages/compiler/test/render3/view/binding_spec.ts b/packages/compiler/test/render3/view/binding_spec.ts index dc2450e48110..df75fd93670b 100644 --- a/packages/compiler/test/render3/view/binding_spec.ts +++ b/packages/compiler/test/render3/view/binding_spec.ts @@ -12,7 +12,7 @@ import {ClassPropertyMapping} from '../../../src/property_mapping'; import * as a from '../../../src/render3/r3_ast'; import {DirectiveMeta, ForeignComponentMeta, MatchSource} from '../../../src/render3/view/t2_api'; import {findMatchingDirectivesAndPipes, R3TargetBinder} from '../../../src/render3/view/t2_binder'; -import {parseTemplate, ParseTemplateOptions} from '../../../src/render3/view/template'; +import {parseTemplate} from '../../../src/render3/view/template'; import {findExpression} from './util'; @@ -254,6 +254,22 @@ describe('t2 binding', () => { expect(directives[0].name).toBe('Dir'); }); + it('should match directives on ng-template nested in namespaced elements', () => { + const template = parseTemplate( + '', + '', + {}, + ); + const binder = new R3TargetBinder(makeSelectorMatcher()); + const res = binder.bind({template: template.nodes}); + const svgNode = template.nodes[0] as a.Element; + const tmplNode = svgNode.children[0] as a.Template; + const directives = res.getDirectivesOfNode(tmplNode)!; + expect(directives).not.toBeNull(); + expect(directives.length).toBe(1); + expect(directives[0].name).toBe('HasInput'); + }); + it('should not match directives intended for an element on a microsyntax template', () => { const template = parseTemplate('
    ', '', {}); const binder = new R3TargetBinder(makeSelectorMatcher()); @@ -407,7 +423,7 @@ describe('t2 binding', () => { const template = parseTemplate('
    ', ''); const binder = new R3TargetBinder(null); const res = binder.bind({template: template.nodes}); - const node = template.nodes[0] as a.Component; + const node = template.nodes[0] as a.Element; const reference = node.references[0]; const result = res.getReferenceTarget(reference) as a.Element; expect(result instanceof a.Element).toBe(true); @@ -1061,336 +1077,6 @@ describe('t2 binding', () => { }); }); - describe('selectorless', () => { - const options: ParseTemplateOptions = {enableSelectorless: true}; - - function makeSelectorlessMatcher( - directives: (DirectiveMeta | {root: DirectiveMeta; additionalDirectives: DirectiveMeta[]})[], - ): SelectorlessMatcher { - const registry = new Map(); - const isSingleDirective = (value: any): value is DirectiveMeta => - !value.root && !value.additionalDirectives; - - for (const dir of directives) { - if (isSingleDirective(dir)) { - registry.set(dir.name, [dir]); - } else { - registry.set(dir.root.name, [dir.root, ...dir.additionalDirectives]); - } - } - - return new SelectorlessMatcher(registry); - } - - it('should resolve directives applied on a component node', () => { - const template = parseTemplate('', '', options); - const binder = new R3TargetBinder( - makeSelectorlessMatcher([ - { - root: makeDirectiveMeta({ - name: 'MyComp', - selector: null, - isComponent: true, - }), - additionalDirectives: [makeDirectiveMeta({name: 'MyHostDir', selector: null})], - }, - makeDirectiveMeta({ - name: 'Dir', - selector: null, - }), - makeDirectiveMeta({ - name: 'OtherDir', - selector: null, - }), - ]), - ); - const res = binder.bind({template: template.nodes}); - const node = template.nodes[0] as a.Component; - expect(res.getDirectivesOfNode(node)?.map((d) => d.name)).toEqual(['MyComp', 'MyHostDir']); - }); - - it('should resolve directives applied on a directive node', () => { - const template = parseTemplate('', '', options); - const binder = new R3TargetBinder( - makeSelectorlessMatcher([ - makeDirectiveMeta({ - name: 'MyComp', - selector: null, - isComponent: true, - }), - { - root: makeDirectiveMeta({ - name: 'Dir', - selector: null, - }), - additionalDirectives: [ - makeDirectiveMeta({ - name: 'HostDir', - selector: null, - }), - ], - }, - makeDirectiveMeta({ - name: 'OtherDir', - selector: null, - }), - ]), - ); - const res = binder.bind({template: template.nodes}); - const dirs = (template.nodes[0] as a.Component).directives; - expect(res.getDirectivesOfNode(dirs[0])?.map((d) => d.name)).toEqual(['Dir', 'HostDir']); - expect(res.getDirectivesOfNode(dirs[1])?.map((d) => d.name)).toEqual(['OtherDir']); - }); - - it('should not apply selectorless directives on an element node', () => { - const template = parseTemplate('
    ', '', options); - const binder = new R3TargetBinder( - makeSelectorlessMatcher([ - makeDirectiveMeta({ - name: 'Dir', - selector: null, - }), - makeDirectiveMeta({ - name: 'OtherDir', - selector: null, - }), - ]), - ); - const res = binder.bind({template: template.nodes}); - const node = template.nodes[0] as a.Element; - expect(res.getDirectivesOfNode(node)).toBe(null); - }); - - it('should resolve a reference on a component node to the component', () => { - const template = parseTemplate('', '', options); - const binder = new R3TargetBinder( - makeSelectorlessMatcher([ - makeDirectiveMeta({ - name: 'MyComp', - selector: null, - isComponent: true, - }), - ]), - ); - const res = binder.bind({template: template.nodes}); - const node = template.nodes[0] as a.Component; - const reference = node.references[0]; - const result = res.getReferenceTarget(reference) as {node: a.Node; directive: DirectiveMeta}; - expect(result.node).toBe(node); - expect(result.directive.name).toBe('MyComp'); - }); - - it('should resolve a reference on a directive node to the component', () => { - const template = parseTemplate('
    ', '', options); - const binder = new R3TargetBinder( - makeSelectorlessMatcher([ - makeDirectiveMeta({ - name: 'Dir', - selector: null, - }), - ]), - ); - const res = binder.bind({template: template.nodes}); - const node = template.nodes[0] as a.Element; - const directive = node.directives[0]; - const reference = directive.references[0]; - const result = res.getReferenceTarget(reference) as {node: a.Node; directive: DirectiveMeta}; - expect(result.node).toBe(directive); - expect(result.directive.name).toBe('Dir'); - }); - - it('should resolve a reference on an element when using a selectorless matcher', () => { - const template = parseTemplate('
    ', '', options); - const binder = new R3TargetBinder(makeSelectorlessMatcher([])); - const res = binder.bind({template: template.nodes}); - const node = template.nodes[0] as a.Component; - const reference = node.references[0]; - const result = res.getReferenceTarget(reference) as a.Element; - expect(result instanceof a.Element).toBe(true); - expect(result.name).toBe('div'); - }); - - it('should get consumer of component bindings', () => { - const template = parseTemplate( - '', - '', - options, - ); - const binder = new R3TargetBinder( - makeSelectorlessMatcher([ - makeDirectiveMeta({ - name: 'MyComp', - selector: null, - isComponent: true, - inputs: {input: 'input', static: 'static'}, - outputs: {output: 'output'}, - }), - ]), - ); - const res = binder.bind({template: template.nodes}); - const node = template.nodes[0] as a.Component; - const input = node.inputs[0]; - const staticAttr = node.attributes[0]; - const output = node.outputs[0]; - const doesNotExist = node.inputs[1]; - const attrBinding = node.attributes[1]; - - expect((res.getConsumerOfBinding(input) as DirectiveMeta)?.name).toBe('MyComp'); - expect((res.getConsumerOfBinding(staticAttr) as DirectiveMeta)?.name).toBe('MyComp'); - expect((res.getConsumerOfBinding(output) as DirectiveMeta)?.name).toBe('MyComp'); - expect(res.getConsumerOfBinding(doesNotExist)).toBe(null); - expect(res.getConsumerOfBinding(attrBinding)).toBe(null); - }); - - it('should get consumer of directive bindings', () => { - const template = parseTemplate( - '
    ', - '', - options, - ); - const binder = new R3TargetBinder( - makeSelectorlessMatcher([ - makeDirectiveMeta({ - name: 'Dir', - selector: null, - inputs: {input: 'input', static: 'static'}, - outputs: {output: 'output'}, - }), - ]), - ); - const res = binder.bind({template: template.nodes}); - const node = template.nodes[0] as a.Element; - const directive = node.directives[0]; - const input = directive.inputs[0]; - const staticAttr = directive.attributes[0]; - const output = directive.outputs[0]; - const doesNotExist = directive.inputs[1]; - - expect((res.getConsumerOfBinding(input) as DirectiveMeta)?.name).toBe('Dir'); - expect((res.getConsumerOfBinding(staticAttr) as DirectiveMeta)?.name).toBe('Dir'); - expect((res.getConsumerOfBinding(output) as DirectiveMeta)?.name).toBe('Dir'); - expect(res.getConsumerOfBinding(doesNotExist)).toBe(null); - }); - - it('should get eagerly-used selectorless directives', () => { - const template = parseTemplate('', '', options); - const binder = new R3TargetBinder( - makeSelectorlessMatcher([ - makeDirectiveMeta({ - name: 'MyComp', - selector: null, - isComponent: true, - }), - makeDirectiveMeta({ - name: 'Dir', - selector: null, - }), - makeDirectiveMeta({ - name: 'OtherDir', - selector: null, - }), - makeDirectiveMeta({ - name: 'UnusedDir', - selector: null, - }), - ]), - ); - const res = binder.bind({template: template.nodes}); - expect(res.getUsedDirectives().map((dir) => dir.name)).toEqual(['MyComp', 'Dir', 'OtherDir']); - expect(res.getEagerlyUsedDirectives().map((dir) => dir.name)).toEqual([ - 'MyComp', - 'Dir', - 'OtherDir', - ]); - }); - - it('should get deferred selectorless directives', () => { - const template = parseTemplate('@defer {}', '', options); - const binder = new R3TargetBinder( - makeSelectorlessMatcher([ - makeDirectiveMeta({ - name: 'MyComp', - selector: null, - isComponent: true, - }), - makeDirectiveMeta({ - name: 'Dir', - selector: null, - }), - makeDirectiveMeta({ - name: 'OtherDir', - selector: null, - }), - ]), - ); - const res = binder.bind({template: template.nodes}); - expect(res.getUsedDirectives().map((dir) => dir.name)).toEqual(['MyComp', 'Dir', 'OtherDir']); - expect(res.getEagerlyUsedDirectives().map((dir) => dir.name)).toEqual([]); - }); - - it('should get selectorless directives nested in other code', () => { - const template = parseTemplate( - ` -
    - @if (someCond) { - -
    -

    - -

    -
    -
    - } -
    - `, - '', - options, - ); - const binder = new R3TargetBinder( - makeSelectorlessMatcher([ - makeDirectiveMeta({ - name: 'MyComp', - selector: null, - isComponent: true, - }), - makeDirectiveMeta({ - name: 'Dir', - selector: null, - }), - makeDirectiveMeta({ - name: 'UnusedDir', - selector: null, - }), - ]), - ); - const res = binder.bind({template: template.nodes}); - expect(res.getUsedDirectives().map((dir) => dir.name)).toEqual(['MyComp', 'Dir']); - expect(res.getEagerlyUsedDirectives().map((dir) => dir.name)).toEqual(['MyComp', 'Dir']); - }); - - it('should check whether a referenced directive exists', () => { - const template = parseTemplate('', '', options); - const binder = new R3TargetBinder( - makeSelectorlessMatcher([ - makeDirectiveMeta({ - name: 'MyComp', - selector: null, - isComponent: true, - }), - makeDirectiveMeta({ - name: 'Dir', - selector: null, - }), - ]), - ); - const res = binder.bind({template: template.nodes}); - expect(res.referencedDirectiveExists('MyComp')).toBe(true); - expect(res.referencedDirectiveExists('Dir')).toBe(true); - expect(res.referencedDirectiveExists('MissingDir')).toBe(false); - expect(res.referencedDirectiveExists('MissingComp')).toBe(false); - }); - }); - describe('directive de-duplication', () => { function formatMatches(matches: DirectiveMeta[]): string[] { return matches.map((dir) => `${dir.name}:${MatchSource[dir.matchSource]}`); diff --git a/packages/compiler/test/render3/view/util.ts b/packages/compiler/test/render3/view/util.ts index 4da0df9cfca7..5ff7843385ad 100644 --- a/packages/compiler/test/render3/view/util.ts +++ b/packages/compiler/test/render3/view/util.ts @@ -17,10 +17,13 @@ import * as a from '../../../src/render3/r3_ast'; import {htmlAstToRender3Ast, Render3ParseResult} from '../../../src/render3/r3_template_transform'; import {I18nMetaVisitor} from '../../../src/render3/view/i18n/meta'; import {LEADING_TRIVIA_CHARS} from '../../../src/render3/view/template'; +import {DomElementSchemaRegistry} from '../../../src/schema/dom_element_schema_registry'; import {ElementSchemaRegistry} from '../../../src/schema/element_schema_registry'; import {BindingParser} from '../../../src/template_parser/binding_parser'; class MockSchemaRegistry implements ElementSchemaRegistry { + private domSchema = new DomElementSchemaRegistry(); + constructor( public existingProperties: {[key: string]: boolean}, public attrPropMapping: {[key: string]: string}, @@ -58,9 +61,8 @@ class MockSchemaRegistry implements ElementSchemaRegistry { validateProperty(name: string): {error: boolean; msg?: string} { if (this.invalidProperties.indexOf(name) > -1) { return {error: true, msg: `Binding to property '${name}' is disallowed for security reasons`}; - } else { - return {error: false}; } + return this.domSchema.validateProperty(name); } validateAttribute(name: string): {error: boolean; msg?: string} { @@ -69,9 +71,8 @@ class MockSchemaRegistry implements ElementSchemaRegistry { error: true, msg: `Binding to attribute '${name}' is disallowed for security reasons`, }; - } else { - return {error: false}; } + return this.domSchema.validateAttribute(name); } normalizeAnimationStyleProperty(propName: string): string { @@ -104,10 +105,8 @@ export function findExpression(tmpl: a.Node[], expr: string): e.AST | null { } function findExpressionInNode(node: a.Node, expr: string): e.AST | null { - if (node instanceof a.Element || node instanceof a.Template || node instanceof a.Component) { + if (node instanceof a.Element || node instanceof a.Template) { return findExpression([...node.inputs, ...node.outputs, ...node.children], expr); - } else if (node instanceof a.Directive) { - return findExpression([...node.inputs, ...node.outputs], expr); } else if (node instanceof a.BoundAttribute || node instanceof a.BoundText) { const ts = toStringExpression(node.value); return ts === expr ? node.value : null; @@ -149,14 +148,12 @@ export function parseR3( preserveWhitespaces?: boolean; leadingTriviaChars?: string[]; ignoreError?: boolean; - selectorlessEnabled?: boolean; } = {}, ): Render3ParseResult { const htmlParser = new HtmlParser(); const parseResult = htmlParser.parse(input, 'path:://to/template', { tokenizeExpansionForms: true, leadingTriviaChars: options.leadingTriviaChars ?? LEADING_TRIVIA_CHARS, - selectorlessEnabled: options.selectorlessEnabled, }); if (parseResult.errors.length > 0 && !options.ignoreError) { diff --git a/packages/compiler/test/schema/dom_element_schema_registry_spec.ts b/packages/compiler/test/schema/dom_element_schema_registry_spec.ts index d0cd4dbad345..2a11eb7b227d 100644 --- a/packages/compiler/test/schema/dom_element_schema_registry_spec.ts +++ b/packages/compiler/test/schema/dom_element_schema_registry_spec.ts @@ -27,6 +27,7 @@ describe('DOMElementSchema', () => { expect(registry.hasElement('b', [])).toBeTruthy(); expect(registry.hasElement('ng-container', [])).toBeTruthy(); expect(registry.hasElement('ng-content', [])).toBeTruthy(); + expect(registry.hasElement('ng-template', [])).toBeTruthy(); expect(registry.hasElement('my-cmp', [])).toBeFalsy(); expect(registry.hasElement('abc', [])).toBeFalsy(); @@ -44,6 +45,11 @@ describe('DOMElementSchema', () => { expect(registry.hasProperty('div', 'id', [])).toBeTruthy(); expect(registry.hasProperty('div', 'title', [])).toBeTruthy(); expect(registry.hasProperty('div', 'inert', [])).toBeTruthy(); + expect(registry.hasProperty('div', 'popover', [])).toBeTruthy(); + expect(registry.hasProperty('button', 'popoverTargetAction', [])).toBeTruthy(); + expect(registry.hasProperty('button', 'popoverTargetElement', [])).toBeTruthy(); + expect(registry.hasProperty('input', 'popoverTargetAction', [])).toBeTruthy(); + expect(registry.hasProperty('input', 'popoverTargetElement', [])).toBeTruthy(); expect(registry.hasProperty('h1', 'align', [])).toBeTruthy(); expect(registry.hasProperty('h2', 'align', [])).toBeTruthy(); expect(registry.hasProperty('h3', 'align', [])).toBeTruthy(); @@ -122,6 +128,19 @@ If 'onClick' is a directive input, make sure the directive is imported by the cu `Binding to event property 'onAnything' is disallowed for security reasons, please use (Anything)=... If 'onAnything' is a directive input, make sure the directive is imported by the current module.`, ); + + report = registry.validateProperty(':onClick'); + expect(report.error).toBeTruthy(); + expect(report.msg).toEqual( + `Invalid property name ':onClick'. Property names cannot start with a colon.`, + ); + + report = registry.validateProperty('svg:onclick'); + expect(report.error).toBeTruthy(); + expect(report.msg).toEqual( + `Binding to event property 'svg:onclick' is disallowed for security reasons, please use (click)=... +If 'svg:onclick' is a directive input, make sure the directive is imported by the current module.`, + ); }); it('should return an error message when asserting event attributes', () => { @@ -136,6 +155,44 @@ If 'onAnything' is a directive input, make sure the directive is imported by the expect(report.msg).toEqual( `Binding to event attribute 'onAnything' is disallowed for security reasons, please use (Anything)=...`, ); + + report = registry.validateAttribute(':onclick'); + expect(report.error).toBeTruthy(); + expect(report.msg).toEqual( + `Invalid attribute name ':onclick'. Attribute names cannot start with a colon.`, + ); + + report = registry.validateAttribute(':onClick'); + expect(report.error).toBeTruthy(); + expect(report.msg).toEqual( + `Invalid attribute name ':onClick'. Attribute names cannot start with a colon.`, + ); + + report = registry.validateAttribute('svg:onclick'); + expect(report.error).toBeTruthy(); + expect(report.msg).toEqual( + `Binding to event attribute 'svg:onclick' is disallowed for security reasons, please use (click)=...`, + ); + + report = registry.validateAttribute(':svg:onclick'); + expect(report.error).toBeTruthy(); + expect(report.msg).toEqual( + `Invalid attribute name ':svg:onclick'. Attribute names cannot start with a colon.`, + ); + }); + + it('should return an error message when property or attribute names start with a colon', () => { + let report = registry.validateProperty(':title'); + expect(report.error).toBeTruthy(); + expect(report.msg).toEqual( + `Invalid property name ':title'. Property names cannot start with a colon.`, + ); + + report = registry.validateAttribute(':title'); + expect(report.error).toBeTruthy(); + expect(report.msg).toEqual( + `Invalid attribute name ':title'. Attribute names cannot start with a colon.`, + ); }); it('should not return an error message when asserting non-event properties or attributes', () => { @@ -172,6 +229,33 @@ If 'onAnything' is a directive input, make sure the directive is imported by the SecurityContext.ATTRIBUTE_NO_BINDING, ); + // SVG animation elements are sensitive when their namespace is omitted at compile time. + expect(registry.securityContext('set', 'to', true)).toBe(SecurityContext.ATTRIBUTE_NO_BINDING); + expect(registry.securityContext('set', 'attributeName', true)).toBe( + SecurityContext.ATTRIBUTE_NO_BINDING, + ); + expect(registry.securityContext('animate', 'to', true)).toBe( + SecurityContext.ATTRIBUTE_NO_BINDING, + ); + expect(registry.securityContext('animate', 'from', true)).toBe( + SecurityContext.ATTRIBUTE_NO_BINDING, + ); + expect(registry.securityContext('animate', 'values', true)).toBe( + SecurityContext.ATTRIBUTE_NO_BINDING, + ); + expect(registry.securityContext('animate', 'attributeName', true)).toBe( + SecurityContext.ATTRIBUTE_NO_BINDING, + ); + expect(registry.securityContext('animateMotion', 'attributeName', true)).toBe( + SecurityContext.ATTRIBUTE_NO_BINDING, + ); + expect(registry.securityContext('animateTransform', 'attributeName', true)).toBe( + SecurityContext.ATTRIBUTE_NO_BINDING, + ); + + // The defensive SVG lookup must not apply to elements in an explicit foreign namespace. + expect(registry.securityContext(':math:set', 'to', true)).toBe(SecurityContext.NONE); + // SVG link attributes expect(registry.securityContext(':svg:a', 'href', false)).toBe(SecurityContext.URL); expect(registry.securityContext(':svg:a', 'xlink:href', false)).toBe(SecurityContext.URL); @@ -210,6 +294,10 @@ If 'onAnything' is a directive input, make sure the directive is imported by the it('should check security contexts for attributes', () => { expect(registry.securityContext('p', 'innerHtml', true)).toBe(SecurityContext.HTML); expect(registry.securityContext('p', 'formaction', true)).toBe(SecurityContext.URL); + expect(registry.securityContext('a', ':href', true)).toBe(SecurityContext.URL); + expect(registry.securityContext('a', '::href', true)).toBe(SecurityContext.URL); + expect(registry.securityContext('iframe', '::srcdoc', true)).toBe(SecurityContext.HTML); + expect(registry.securityContext(':svg:a', ':xlink:href', true)).toBe(SecurityContext.URL); }); describe('Angular custom elements', () => { @@ -221,6 +309,13 @@ If 'onAnything' is a directive input, make sure the directive is imported by the expect(registry.hasProperty('ng-content', 'id', [])).toBeFalsy(); expect(registry.hasProperty('ng-content', 'select', [])).toBeFalsy(); }); + + it('should support ', () => { + expect(registry.hasProperty('ng-template', 'id', [])).toBeFalsy(); + expect(registry.hasProperty('ng-template', 'id', [CUSTOM_ELEMENTS_SCHEMA])).toBeFalsy(); + expect(registry.hasProperty(':svg:ng-template', 'id', [])).toBeFalsy(); + expect(registry.hasProperty(':svg:ng-template', 'id', [CUSTOM_ELEMENTS_SCHEMA])).toBeFalsy(); + }); }); describe('Custom XML / XHTML namespaces', () => { diff --git a/packages/compiler/test/shadow_css/nesting_spec.ts b/packages/compiler/test/shadow_css/nesting_spec.ts index dbe8ea9022ab..742d5939822e 100644 --- a/packages/compiler/test/shadow_css/nesting_spec.ts +++ b/packages/compiler/test/shadow_css/nesting_spec.ts @@ -465,4 +465,11 @@ describe('ShadowCss nesting', () => { '.foo[contenta] .bar { .baz { color: red; } }', ); }); + + it('should not let a previous ::ng-deep rule affect the next one', () => { + // An empty rule body leaves nothing to reset the global regex's `lastIndex`. + expect( + shim('.foo ::ng-deep .bar {}\n::ng-deep .baz { .qux { color: red; } }', 'contenta'), + ).toEqualCss('.foo[contenta] .bar {} .baz { .qux { color: red; } }'); + }); }); diff --git a/packages/compiler/test/shadow_css/shadow_css_spec.ts b/packages/compiler/test/shadow_css/shadow_css_spec.ts index a0cd582caf99..68575ce5732a 100644 --- a/packages/compiler/test/shadow_css/shadow_css_spec.ts +++ b/packages/compiler/test/shadow_css/shadow_css_spec.ts @@ -390,6 +390,39 @@ describe('ShadowCss', () => { it('should handle adjacent comments', () => { expect(shim('/* comment 1 */ /* comment 2 */ b {}', 'contenta')).toBe(' b[contenta] {}'); }); + + it('should not scope comments that are placed between a selector and its block', () => { + expect(shim('.a /* comment */ {}', 'contenta')).toBe('.a[contenta] {}'); + }); + + it('should not scope comments that are placed between selectors of a list', () => { + expect(shim('.a, /* comment */ .b {}', 'contenta')).toBe('.a[contenta], .b[contenta] {}'); + expect(shim('.a /* comment */, .b {}', 'contenta')).toBe('.a[contenta] , .b[contenta] {}'); + }); + + it('should not scope comments that are placed between compound selectors', () => { + expect(shim('.a /* comment */ .b {}', 'contenta')).toBe('.a[contenta] .b[contenta] {}'); + expect(shim('.a > /* comment */ .b {}', 'contenta')).toBe( + '.a[contenta] > .b[contenta] {}', + ); + expect(shim('.a /* c1 */ /* c2 */ .b {}', 'contenta')).toBe( + '.a[contenta] .b[contenta] {}', + ); + }); + + it('should not scope comments inside of :host and pseudo selector functions', () => { + expect(shim(':host /* comment */ .b {}', 'contenta', 'a-host')).toBe( + '[a-host] .b[contenta] {}', + ); + expect(shim(':is(.a, /* comment */ .b) {}', 'contenta')).toBe( + ':is(.a[contenta], .b[contenta]) {}', + ); + }); + + it('should scope compound selectors that contain a comment', () => { + expect(shim('.a/* comment */.b {}', 'contenta')).toBe('.a.b[contenta] {}'); + expect(shim('.a/* comment */:hover {}', 'contenta')).toBe('.a[contenta]:hover {}'); + }); }); describe('CSS variable namespacing', () => { @@ -433,7 +466,7 @@ describe('ShadowCss', () => { const input = ` .foo { border: var(--global--border-size) solid var(--border-color); - box-shadow: + box-shadow: var(--shadow-1), var(--global--shadow-2), var(--shadow-3); @@ -443,7 +476,7 @@ describe('ShadowCss', () => { const expected = ` .foo { border: var(--border-size) solid var(--%NS%border-color); - box-shadow: + box-shadow: var(--%NS%shadow-1), var(--shadow-2), var(--%NS%shadow-3); @@ -597,5 +630,93 @@ p { 'CSS variable "--global-" has a single hyphen after "--global". Use two hyphens ("--global--") to opt-out of namespacing.', ); }); + + it('should namespace @property declarations', () => { + const input = ` + @property --myColor { + syntax: ""; + inherits: true; + initial-value: rebeccapurple; + } + + @property --myWidth { + syntax: " | "; + inherits: true; + initial-value: 200px; + } + + p { + background-color: var(--myColor); + width: var(--myWidth); + color: white; + } +`.trim(); + + const expected = ` + @property --%NS%myColor { + syntax: ""; + inherits: true; + initial-value: rebeccapurple; + } + + @property --%NS%myWidth { + syntax: " | "; + inherits: true; + initial-value: 200px; + } + + p { + background-color: var(--%NS%myColor); + width: var(--%NS%myWidth); + color: white; + } +`.trim(); + + expect(namespaceCssVariables(input)).toBe(expected); + }); + + it('should not namespace @property if --global-- is present', () => { + const input = ` + @property --global--my-color { + syntax: ""; + inherits: true; + initial-value: rebeccapurple; + } + + @property --global--my-width { + syntax: " | "; + inherits: true; + initial-value: 200px; + } + + p { + background-color: var(--global--my-color); + width: var(--global--my-width); + color: white; + } +`.trim(); + + const expected = ` + @property --my-color { + syntax: ""; + inherits: true; + initial-value: rebeccapurple; + } + + @property --my-width { + syntax: " | "; + inherits: true; + initial-value: 200px; + } + + p { + background-color: var(--my-color); + width: var(--my-width); + color: white; + } +`.trim(); + + expect(namespaceCssVariables(input)).toBe(expected); + }); }); }); diff --git a/packages/compiler/test/typecheck/BUILD.bazel b/packages/compiler/test/typecheck/BUILD.bazel new file mode 100644 index 000000000000..a023e984cb92 --- /dev/null +++ b/packages/compiler/test/typecheck/BUILD.bazel @@ -0,0 +1,20 @@ +load("//tools:defaults.bzl", "ts_project", "zoneless_jasmine_test") + +ts_project( + name = "test_lib", + testonly = True, + srcs = glob( + ["**/*.ts"], + ), + deps = [ + "//packages:types", + "//packages/compiler", + ], +) + +zoneless_jasmine_test( + name = "test", + data = [ + ":test_lib", + ], +) diff --git a/packages/compiler-cli/src/ngtsc/typecheck/test/span_comments_spec.ts b/packages/compiler/test/typecheck/span_comments_spec.ts similarity index 93% rename from packages/compiler-cli/src/ngtsc/typecheck/test/span_comments_spec.ts rename to packages/compiler/test/typecheck/span_comments_spec.ts index 6368f5f58da7..a0b23b5f7c9f 100644 --- a/packages/compiler-cli/src/ngtsc/typecheck/test/span_comments_spec.ts +++ b/packages/compiler/test/typecheck/span_comments_spec.ts @@ -6,12 +6,9 @@ * found in the LICENSE file at https://angular.dev/license */ -import {initMockFileSystem} from '../../file_system/testing'; -import {tcb, TestDeclaration} from '../testing'; +import {tcb, TestDeclaration} from './util'; describe('type check blocks diagnostics', () => { - beforeEach(() => initMockFileSystem('Native')); - describe('parse spans', () => { it('should annotate unary ops', () => { expect(tcbWithSpans('{{ -a }}')).toContain('(-((this).a /*4,5*/) /*4,5*/) /*3,5*/'); @@ -229,6 +226,24 @@ describe('type check blocks diagnostics', () => { }); }); + describe('attaching comments for restricted directive inputs', () => { + it('should annotate the type of the temporary variable with the key span', () => { + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: {fieldA: 'inputA'}, + restrictedInputFields: ['fieldA'], + }, + ]; + const TEMPLATE = `
    `; + expect(tcbWithSpans(TEMPLATE, DIRECTIVES)).toContain( + 'null! as typeof _t1.fieldA /*D:ignore*/ /*10,16*/;', + ); + }); + }); + describe('control flow', () => { it('@for', () => { const template = `@for (user of users; track user; let i = $index) { {{i}} }`; diff --git a/packages/compiler/test/typecheck/type_check_block_spec.ts b/packages/compiler/test/typecheck/type_check_block_spec.ts new file mode 100644 index 000000000000..0660f7371ce9 --- /dev/null +++ b/packages/compiler/test/typecheck/type_check_block_spec.ts @@ -0,0 +1,2744 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import {TypeCheckingConfig} from '../../src/compiler'; +import {ALL_ENABLED_CONFIG, tcb, TestDeclaration, TestDirective} from './util'; + +describe('type check blocks', () => { + it('should generate a basic block for a binding', () => { + expect(tcb('{{hello}} {{world}}')).toContain('"" + (((this).hello)) + (((this).world));'); + }); + + it('should generate an animation leave function call', () => { + const TEMPLATE = '

    '; + const results = tcb(TEMPLATE); + expect(results).toContain( + '($event: i1.AnimationCallbackEvent): any => { (this).animateFn($event); };', + ); + }); + + it('should generate literal map expressions', () => { + const TEMPLATE = '{{ method({foo: a, bar: b}) }}'; + expect(tcb(TEMPLATE)).toContain('(this).method(({ "foo": ((this).a), "bar": ((this).b) }))'); + }); + + it('should generate literal array expressions', () => { + const TEMPLATE = '{{ method([a, b]) }}'; + expect(tcb(TEMPLATE)).toContain('(this).method([((this).a), ((this).b)])'); + }); + + it('should parenthesize literal maps bound to DOM properties', () => { + const TEMPLATE = '
    '; + expect(tcb(TEMPLATE)).toContain('if (true) { ({ "foo": true, "bar": false }); }'); + }); + + it('should handle non-null assertions', () => { + const TEMPLATE = `{{a!}}`; + expect(tcb(TEMPLATE)).toContain('((((this).a))!)'); + }); + + it('should handle unary - operator', () => { + const TEMPLATE = `{{-1}}`; + expect(tcb(TEMPLATE)).toContain('(-1)'); + }); + + it('should assert the type for DOM events bound on void elements', () => { + const result = tcb(``); + expect(result).toContain('i1.ɵassertType($event.target);'); + expect(result).toContain('(this).handleInput((((($event).target)).value));'); + }); + + it('should handle keyed property access', () => { + const TEMPLATE = `{{a[b]}}`; + expect(tcb(TEMPLATE)).toContain('(((this).a))[((this).b)]'); + }); + + it('should handle nested ternary expressions', () => { + const TEMPLATE = `{{a ? b : c ? d : e}}`; + expect(tcb(TEMPLATE)).toContain( + '(((this).a) ? ((this).b) : ((((this).c) ? ((this).d) : (((this).e)))))', + ); + }); + + it('should handle nullish coalescing operator', () => { + expect(tcb('{{ a ?? b }}')).toContain('((((this).a)) ?? (((this).b)))'); + expect(tcb('{{ a ?? b ?? c }}')).toContain( + '((((((this).a)) ?? (((this).b)))) ?? (((this).c)))', + ); + expect(tcb('{{ (a ?? b) + (c ?? e) }}')).toContain( + '(((((((this).a)) ?? (((this).b))))) + ((((((this).c)) ?? (((this).e))))))', + ); + }); + + it('should handle typeof expressions', () => { + expect(tcb('{{typeof a}}')).toContain('typeof (((this).a))'); + expect(tcb('{{!(typeof a)}}')).toContain('!((typeof (((this).a))))'); + expect(tcb('{{!(typeof a === "object")}}')).toContain( + '!(((typeof (((this).a))) === ("object")))', + ); + }); + + it('should handle void expressions', () => { + expect(tcb('{{void a}}')).toContain('void (((this).a))'); + expect(tcb('{{!(void a)}}')).toContain('!((void (((this).a))))'); + expect(tcb('{{!(void a === "object")}}')).toContain('!(((void (((this).a))) === ("object")))'); + }); + + it('should handle assignment expressions', () => { + expect(tcb('')).toContain('(((this).a)) = (((this).b));'); + expect(tcb('')).toContain('(((this).a)) += (((this).b));'); + expect(tcb('')).toContain('(((this).a)) -= (((this).b));'); + expect(tcb('')).toContain('(((this).a)) *= (((this).b));'); + expect(tcb('')).toContain('(((this).a)) /= (((this).b));'); + expect(tcb('')).toContain('(((this).a)) %= (((this).b));'); + expect(tcb('')).toContain('(((this).a)) **= (((this).b));'); + expect(tcb('')).toContain('(((this).a)) &&= (((this).b));'); + expect(tcb('')).toContain('(((this).a)) ||= (((this).b));'); + expect(tcb('')).toContain('(((this).a)) ??= (((this).b));'); + expect(tcb('')).toContain('(((this).a)++)'); + expect(tcb('')).toContain('(((this).a)--)'); + expect(tcb('')).toContain('(++((this).a))'); + expect(tcb('')).toContain('(--((this).a))'); + }); + + it('should handle exponentiation expressions', () => { + expect(tcb('{{a * b ** c + d}}')).toContain( + '(((((this).a)) * (((((this).b)) ** (((this).c))))) + (((this).d)))', + ); + expect(tcb('{{a ** b ** c}}')).toContain('((((this).a)) ** (((((this).b)) ** (((this).c)))))'); + }); + + it('should handle update expressions as operands of an exponentiation expression', () => { + expect(tcb('')).toContain('(((((this).a)++)) ** (2));'); + expect(tcb('')).toContain('(((++((this).a))) ** (2));'); + expect(tcb('')).toContain('((2) ** ((((this).a)--)));'); + }); + + it('should handle "in" expressions', () => { + expect(tcb(`{{'bar' in {bar: 'bar'} }}`)).toContain(`(("bar") in (({ "bar": "bar" })))`); + expect(tcb(`{{!('bar' in {bar: 'bar'}) }}`)).toContain(`!((("bar") in (({ "bar": "bar" }))))`); + }); + + it('should handle "instanceof" expressions', () => { + expect(tcb(`{{obj instanceof MyClass}}`)).toContain( + `((((this).obj)) instanceof (((this).MyClass)))`, + ); + expect(tcb(`{{!(obj instanceof MyClass)}}`)).toContain( + `!(((((this).obj)) instanceof (((this).MyClass)))))`, + ); + }); + + it('should handle attribute values for directive inputs', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir]', + inputs: {inputA: 'inputA'}, + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain('_t1 = null! as i0.DirA; _t1.inputA = ("value");'); + }); + + it('should handle multiple bindings to the same property', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + inputs: {inputA: 'inputA'}, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('_t1.inputA = (1);'); + expect(block).toContain('_t1.inputA = (2);'); + }); + + it('should handle empty bindings', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + inputs: {inputA: 'inputA'}, + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain('_t1.inputA = (undefined);'); + }); + + it('should handle bindings without value', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + inputs: {inputA: 'inputA'}, + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain('_t1.inputA = (undefined);'); + }); + + it('should handle implicit vars on ng-template', () => { + const TEMPLATE = ``; + expect(tcb(TEMPLATE)).toContain('var _t2 = _t1.$implicit;'); + }); + + it('should handle method calls of template variables', () => { + const TEMPLATE = `{{a(1)}}`; + expect(tcb(TEMPLATE)).toContain('var _t2 = _t1.$implicit;'); + expect(tcb(TEMPLATE)).toContain('_t2(1)'); + }); + + it('should handle implicit vars when using microsyntax', () => { + const TEMPLATE = `
    `; + expect(tcb(TEMPLATE)).toContain('var _t2 = _t1.$implicit;'); + }); + + it('should handle direct calls of an implicit template variable', () => { + const TEMPLATE = `
    {{a(1)}}
    `; + expect(tcb(TEMPLATE)).toContain('var _t2 = _t1.$implicit;'); + expect(tcb(TEMPLATE)).toContain('_t2(1)'); + }); + + it('should handle template literals', () => { + expect(tcb('{{ `hello world` }}')).toContain('"" + (`hello world`);'); + expect(tcb('{{ `hello ${name}!!!` }}')).toContain('"" + (`hello ${((this).name)}!!!`);'); + expect(tcb('{{ `${a} - ${b} - ${c}` }}')).toContain( + '"" + (`${((this).a)} - ${((this).b)} - ${((this).c)}`);', + ); + expect(tcb('{{ `a${`hello ${name}`}b` }}')).toContain('(`a${`hello ${((this).name)}`}b`)'); + }); + + it('should handle tagged template literals', () => { + expect(tcb('{{ tag`hello world` }}')).toContain('"" + (((this).tag)`hello world`);'); + expect(tcb('{{ tag`hello ${name}!!!` }}')).toContain( + '"" + (((this).tag)`hello ${((this).name)}!!!`);', + ); + expect(tcb('{{ tag`${a} - ${b} - ${c}` }}')).toContain( + '"" + (((this).tag)`${((this).a)} - ${((this).b)} - ${((this).c)}`);', + ); + }); + + it('should escape characters in template literals', () => { + expect(tcb('{{ `a\\`b` }}')).toContain('(`a\\`b`)'); + expect(tcb('{{ `a\\${b}` }}')).toContain('(`a$\\{b}`)'); + expect(tcb('{{ `a\\\\b` }}')).toContain('(`a\\\\b`)'); + expect(tcb('{{ `a\\\`${middle}\\\`b` }}')).toContain('(`a\\\`${((this).middle)}\\\`b`)'); + }); + + it('should generate regular expressions', () => { + const TEMPLATE = '{{ /\\d+/g.test("123") }}'; + expect(tcb(TEMPLATE)).toContain('(((/\\d+/g)).test("123"))'); + }); + + describe('type constructors', () => { + it('should handle missing property bindings', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + fieldA: 'inputA', + fieldB: 'inputB', + }, + isGeneric: true, + }, + ]; + const actual = tcb(TEMPLATE, DIRECTIVES); + expect(actual).toContain( + 'const _ctor1: (init: Pick, "fieldA" | "fieldB">) => i0.Dir = null!;', + ); + expect(actual).toContain( + 'var _t1 = _ctor1({ "fieldA": (((this).foo)), "fieldB": 0 as any });', + ); + }); + + it('should handle multiple bindings to the same property', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + fieldA: 'inputA', + }, + isGeneric: true, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('"fieldA": (1)'); + expect(block).not.toContain('"fieldA": (2)'); + }); + + it('should only apply property bindings to directives', () => { + const TEMPLATE = ` +
    + `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: {'color': 'color', 'strong': 'strong', 'enabled': 'enabled'}, + isGeneric: true, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).not.toContain('Dir.ngTypeCtor'); + expect(block).toContain('"blue"; false; true;'); + }); + + it('should generate a circular directive reference correctly', () => { + const TEMPLATE = ` +
    + `; + const DIRECTIVES: TestDirective[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + exportAs: ['dir'], + inputs: {input: 'input'}, + isGeneric: true, + }, + ]; + + const actual = tcb(TEMPLATE, DIRECTIVES); + expect(actual).toContain( + 'const _ctor1: (init: Pick, "input">) => i0.Dir = null!;', + ); + expect(actual).toContain( + 'var _t2 = _ctor1({ "input": (null!) }); ' + 'var _t1 = _t2; ' + '_t2.input = (_t1);', + ); + }); + + it('should generate circular references between two generic directives correctly', () => { + const TEMPLATE = ` +
    A
    +
    B
    +`; + const DIRECTIVES: TestDirective[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + exportAs: ['dirA'], + inputs: {inputA: 'inputA'}, + isGeneric: true, + }, + { + type: 'directive', + name: 'DirB', + selector: '[dir-b]', + exportAs: ['dirB'], + inputs: {inputB: 'inputB'}, + isGeneric: true, + }, + ]; + const actual = tcb(TEMPLATE, DIRECTIVES); + expect(actual).toContain( + 'const _ctor1: (init: Pick, "inputA">) => i0.DirA = null!; const _ctor2: (init: Pick, "inputB">) => i0.DirB = null!;', + ); + expect(actual).toContain( + 'var _t4 = _ctor1({ "inputA": (null!) }); ' + + 'var _t3 = _t4; ' + + 'var _t2 = _ctor2({ "inputB": (_t3) }); ' + + 'var _t1 = _t2; ' + + '_t4.inputA = (_t1); ' + + '_t2.inputB = ((_t3));', + ); + }); + + it('should handle empty bindings', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + inputs: {inputA: 'inputA'}, + isGeneric: true, + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain('"inputA": (undefined)'); + }); + + it('should handle bindings without value', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + inputs: {inputA: 'inputA'}, + isGeneric: true, + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain('"inputA": (undefined)'); + }); + + it('should use coercion types if declared', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + fieldA: 'inputA', + }, + isGeneric: true, + coercedInputFields: ['fieldA'], + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain( + 'var _t1 = null! as typeof i0.Dir.ngAcceptInputType_fieldA; ' + '_t1 = (((this).foo));', + ); + }); + + it('should handle coercion type that needs to be quoted on a generic directive', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + fieldA: 'inputA', + 'aria-label': 'aria-label', + }, + coercedInputFields: ['aria-label'], + isGeneric: true, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + + expect(block).toContain( + 'const _ctor1: (init: Pick, "fieldA"> & ' + + '{ "aria-label": typeof i0.Dir["ngAcceptInputType_aria-label"]; }) => i0.Dir = null!;', + ); + expect(block).toContain( + 'var _t1 = _ctor1({ "fieldA": (((this).foo)), "aria-label": 0 as any });', + ); + }); + }); + + it('should only generate code for DOM elements that are actually referenced', () => { + const TEMPLATE = ` +
    + + `; + const block = tcb(TEMPLATE); + expect(block).not.toContain('"div"'); + expect(block).toContain( + 'var _t1 = document.createElement("button"); ' + 'var _t2 = _t1; ' + '_t1.addEventListener', + ); + }); + + it('should generate code for event targeting `window`', () => { + const block = tcb(``); + expect(block).toContain( + 'window.addEventListener("scroll", ($event): any => { (this).handle(); });', + ); + }); + + it('should generate code for event targeting `document`', () => { + const block = tcb(``); + expect(block).toContain( + 'document.addEventListener("click", ($event): any => { (this).handle(); });', + ); + }); + + it('should only generate directive declarations that have bindings or are referenced', () => { + const TEMPLATE = ` +
    {{ref.a}}
    + `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'HasInput', + selector: '[hasInput]', + inputs: {input: 'input'}, + }, + { + type: 'directive', + name: 'HasOutput', + selector: '[hasOutput]', + outputs: {output: 'output'}, + }, + { + type: 'directive', + name: 'HasReference', + selector: '[hasReference]', + exportAs: ['ref'], + }, + { + type: 'directive', + name: 'NoReference', + selector: '[noReference]', + exportAs: ['no-ref'], + }, + { + type: 'directive', + name: 'NoBindings', + selector: '[noBindings]', + inputs: {unset: 'unset'}, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as i0.HasInput'); + expect(block).toContain('_t1.input = (((this).value));'); + expect(block).toContain('var _t2 = null! as i0.HasOutput'); + expect(block).toContain('_t2["output"]'); + expect(block).toContain('var _t4 = null! as i0.HasReference'); + expect(block).toContain('var _t3 = _t4;'); + expect(block).toContain('(_t3).a'); + expect(block).not.toContain('NoBindings'); + expect(block).not.toContain('NoReference'); + }); + + it('should not bind inputs outside of microsyntax to a structural directive', () => { + const TEMPLATE = ` + + `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'NgFor', + selector: '[ngFor][ngForOf]', + inputs: {ngForOf: 'ngForOf', ngForTrackBy: 'ngForTrackBy'}, + }, + { + type: 'directive', + name: 'MyDir', + selector: 'my-dir', + inputs: {ngForTrackBy: 'ngForTrackBy'}, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as i0.NgFor'); + expect(block).toContain('_t1.ngForOf = (((this).foos))'); + expect(block).not.toContain('_t1.ngForTrackBy'); + expect(block).toContain('var _t4 = null! as i0.MyDir'); + expect(block).toContain('_t4.ngForTrackBy ='); + }); + + it('should bind inputs to a structural directive when used on ng-template', () => { + const TEMPLATE = ` + + `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'NgFor', + selector: '[ngFor][ngForOf]', + inputs: {ngForOf: 'ngForOf', ngForTrackBy: 'ngForTrackBy'}, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as i0.NgFor'); + expect(block).toContain('_t1.ngForOf = (((this).foos))'); + expect(block).toContain('_t1.ngForTrackBy = (((this).foo))'); + }); + + it('should generate a forward element reference correctly', () => { + const TEMPLATE = ` + {{ i.value }} + + `; + expect(tcb(TEMPLATE)).toContain( + 'var _t2 = document.createElement("input"); var _t1 = _t2; "" + (((_t1).value));', + ); + }); + + it('should generate a forward directive reference correctly', () => { + const TEMPLATE = ` + {{d.value}} +
    + `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + exportAs: ['dir'], + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain( + 'var _t2 = null! as i0.Dir; ' + 'var _t1 = _t2; ' + '"" + (((_t1).value));', + ); + }); + + it('should handle style and class bindings specially', () => { + const TEMPLATE = ` +
    + `; + const block = tcb(TEMPLATE); + expect(block).toContain('((this).a); ((this).b);'); + + // There should be no assignments to the class or style properties. + expect(block).not.toContain('.class = '); + expect(block).not.toContain('.style = '); + }); + + it('should only apply property bindings to directives', () => { + const TEMPLATE = ` +
    + `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: {'color': 'color', 'strong': 'strong', 'enabled': 'enabled'}, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).not.toContain('var _t1 = null! as Dir;'); + expect(block).not.toContain('"color"'); + expect(block).not.toContain('"strong"'); + expect(block).not.toContain('"enabled"'); + expect(block).toContain('"blue"; false; true;'); + }); + + it('should generate a circular directive reference correctly', () => { + const TEMPLATE = ` +
    + `; + const DIRECTIVES: TestDirective[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + exportAs: ['dir'], + inputs: {input: 'input'}, + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain( + 'var _t2 = null! as i0.Dir; ' + 'var _t1 = _t2; ' + '_t2.input = (_t1);', + ); + }); + + it('should generate circular references between two directives correctly', () => { + const TEMPLATE = ` +
    A
    +
    B
    +`; + const DIRECTIVES: TestDirective[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + exportAs: ['dirA'], + inputs: {inputA: 'inputA'}, + }, + { + type: 'directive', + name: 'DirB', + selector: '[dir-b]', + exportAs: ['dirB'], + inputs: {inputA: 'inputB'}, + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain( + 'var _t2 = null! as i0.DirB; ' + + 'var _t1 = _t2; ' + + 'var _t3 = null! as i0.DirA; ' + + '_t3.inputA = (_t1); ' + + 'var _t4 = _t3; ' + + '_t2.inputA = (_t4);', + ); + }); + + it('should handle undeclared properties', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + fieldA: 'inputA', + }, + undeclaredInputFields: ['fieldA'], + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).not.toContain('var _t1 = null! as Dir;'); + expect(block).toContain('(((this).foo)); '); + }); + + it('should assign restricted properties to temp variables by default', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + fieldA: 'inputA', + }, + restrictedInputFields: ['fieldA'], + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain( + 'var _t1 = null! as i0.Dir; ' + + 'var _t2 = null! as (typeof _t1)["fieldA"]; ' + + 'null! as typeof _t1.fieldA; ' + + '_t2 = (((this).foo)); ', + ); + }); + + it('should assign properties via element access for field names that are not JS identifiers', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + 'some-input.xs': 'inputA', + }, + stringLiteralInputFields: ['some-input.xs'], + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain( + 'var _t1 = null! as i0.Dir; ' + '_t1["some-input.xs"] = (((this).foo)); ', + ); + }); + + it('should handle a single property bound to multiple fields', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + field1: 'inputA', + field2: 'inputA', + }, + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain( + 'var _t1 = null! as i0.Dir; ' + '_t1.field2 = _t1.field1 = (((this).foo));', + ); + }); + + it('should handle a single property bound to multiple fields, where one of them is coerced', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + field1: 'inputA', + field2: 'inputA', + }, + coercedInputFields: ['field1'], + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain( + 'var _t1 = null! as typeof i0.Dir.ngAcceptInputType_field1; ' + + 'var _t2 = null! as i0.Dir; ' + + '_t2.field2 = _t1 = (((this).foo));', + ); + }); + + it('should handle a single property bound to multiple fields, where one of them is undeclared', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + field1: 'inputA', + field2: 'inputA', + }, + undeclaredInputFields: ['field1'], + }, + ]; + expect(tcb(TEMPLATE, DIRECTIVES)).toContain( + 'var _t1 = null! as i0.Dir; ' + '_t1.field2 = (((this).foo));', + ); + }); + + it('should use coercion types if declared', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + fieldA: 'inputA', + }, + coercedInputFields: ['fieldA'], + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).not.toContain('var _t1 = null! as Dir;'); + expect(block).toContain( + 'var _t1 = null! as typeof i0.Dir.ngAcceptInputType_fieldA; ' + '_t1 = (((this).foo));', + ); + }); + + it('should use coercion types if declared, even when backing field is not declared', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + fieldA: 'inputA', + }, + coercedInputFields: ['fieldA'], + undeclaredInputFields: ['fieldA'], + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).not.toContain('var _t1 = null! as Dir;'); + expect(block).toContain( + 'var _t1 = null! as typeof i0.Dir.ngAcceptInputType_fieldA; ' + '_t1 = (((this).foo));', + ); + }); + + it('should use transform type if an input has one', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + fieldA: { + bindingPropertyName: 'fieldA', + classPropertyName: 'fieldA', + required: false, + isSignal: false, + transformType: 'boolean | string', + }, + }, + coercedInputFields: ['fieldA'], + }, + ]; + + const block = tcb(TEMPLATE, DIRECTIVES); + + expect(block).toContain('var _t1 = null! as boolean | string; ' + '_t1 = (((this).expr));'); + }); + + it('should handle $any casts', () => { + const TEMPLATE = `{{$any(a)}}`; + const block = tcb(TEMPLATE); + expect(block).toContain('(((this).a) as any)'); + }); + + it('should handle $any accessed through `this`', () => { + const TEMPLATE = `{{this.$any(a)}}`; + const block = tcb(TEMPLATE); + expect(block).toContain('((this).$any(((this).a)))'); + }); + + it('should handle $any accessed through a property read', () => { + const TEMPLATE = `{{foo.$any(a)}}`; + const block = tcb(TEMPLATE); + expect(block).toContain('((((this).foo)).$any(((this).a)))'); + }); + + it('should handle a two-way binding to an input/output pair', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'TwoWay', + selector: '[twoWay]', + inputs: {input: 'input'}, + outputs: {inputChange: 'inputChange'}, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as i0.TwoWay;'); + expect(block).toContain('_t1.input = i1.ɵunwrapWritableSignal((((this).value)));'); + }); + + it('should handle a two-way binding to an input/output pair of a generic directive', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'TwoWay', + selector: '[twoWay]', + inputs: {input: 'input'}, + outputs: {inputChange: 'inputChange'}, + isGeneric: true, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain( + 'const _ctor1: (init: Pick, "input">) => i0.TwoWay = null!', + ); + expect(block).toContain( + 'var _t1 = _ctor1({ "input": (i1.ɵunwrapWritableSignal(((this).value))) });', + ); + expect(block).toContain('_t1.input = i1.ɵunwrapWritableSignal((((this).value)));'); + }); + + it('should handle a two-way binding to a model()', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'TwoWay', + selector: '[twoWay]', + inputs: { + input: { + classPropertyName: 'input', + bindingPropertyName: 'input', + required: false, + isSignal: true, + }, + }, + outputs: {inputChange: 'inputChange'}, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as i0.TwoWay;'); + expect(block).toContain( + '_t1.input[i1.ɵINPUT_SIGNAL_BRAND_WRITE_TYPE] = i1.ɵunwrapWritableSignal((((this).value)));', + ); + }); + + it('should handle a two-way binding to an input with a transform', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'TwoWay', + selector: '[twoWay]', + inputs: { + input: { + classPropertyName: 'input', + bindingPropertyName: 'input', + required: false, + isSignal: false, + transformType: 'boolean | string', + }, + }, + outputs: {inputChange: 'inputChange'}, + coercedInputFields: ['input'], + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as boolean | string;'); + expect(block).toContain('_t1 = i1.ɵunwrapWritableSignal((((this).value)));'); + }); + + it('should handle an input binding to a coerced field that needs to be quoted', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + 'aria-label': 'aria-label', + }, + coercedInputFields: ['aria-label'], + }, + ]; + + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as typeof i0.Dir["ngAcceptInputType_aria-label"];'); + expect(block).toContain('_t1 = (((this).foo));'); + }); + + describe('experimental DOM checking via lib.dom.d.ts', () => { + it('should translate unclaimed bindings to their property equivalent', () => { + const TEMPLATE = ``; + const CONFIG = {...ALL_ENABLED_CONFIG, checkTypeOfDomBindings: true}; + expect(tcb(TEMPLATE, /* declarations */ undefined, CONFIG)).toContain( + '_t1["htmlFor"] = ("test");', + ); + }); + }); + + describe('template guards', () => { + it('should emit invocation guards', () => { + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'NgIf', + selector: '[ngIf]', + inputs: {'ngIf': 'ngIf'}, + ngTemplateGuards: [ + { + inputName: 'ngIf', + type: 'invocation', + }, + ], + }, + ]; + const TEMPLATE = `
    {{person.name}}
    `; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('if (i0.NgIf.ngTemplateGuard_ngIf(_t1, ((this).person)))'); + }); + + it('should emit binding guards', () => { + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'NgIf', + selector: '[ngIf]', + inputs: {'ngIf': 'ngIf'}, + ngTemplateGuards: [ + { + inputName: 'ngIf', + type: 'binding', + }, + ], + }, + ]; + const TEMPLATE = `
    {{person.name}}
    `; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('if ((((this).person)) !== (null))'); + }); + + it('should not emit guards when the child scope is empty', () => { + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'NgIf', + selector: '[ngIf]', + inputs: {'ngIf': 'ngIf'}, + ngTemplateGuards: [ + { + inputName: 'ngIf', + type: 'invocation', + }, + ], + }, + ]; + const TEMPLATE = `
    static
    `; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).not.toContain('NgIf.ngTemplateGuard_ngIf'); + }); + }); + + describe('outputs', () => { + it('should emit subscribe calls for directive outputs', () => { + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + outputs: {'outputField': 'dirOutput'}, + }, + ]; + const TEMPLATE = `
    `; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain( + '_t1["outputField"].subscribe(($event): any => { (this).foo($event); });', + ); + }); + + it('should emit a listener function with AnimationEvent for animation events', () => { + const TEMPLATE = `
    `; + const block = tcb(TEMPLATE); + expect(block).toContain('($event: i1.AnimationEvent): any => { (this).foo($event); }'); + }); + + it('should emit addEventListener calls for unclaimed outputs', () => { + const TEMPLATE = `
    `; + const block = tcb(TEMPLATE); + expect(block).toContain( + '_t1.addEventListener("event", ($event): any => { (this).foo($event); });', + ); + }); + + it('should allow to cast $event using $any', () => { + const TEMPLATE = `
    `; + const block = tcb(TEMPLATE); + expect(block).toContain( + '_t1.addEventListener("event", ($event): any => { (this).foo(($event as any)); });', + ); + }); + + it('should handle $any cast in a two-way binding', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'TwoWay', + selector: '[twoWay]', + inputs: {input: 'input'}, + outputs: {inputChange: 'inputChange'}, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as i0.TwoWay;'); + expect(block).toContain('_t1.input = i1.ɵunwrapWritableSignal(((((this).value) as any)));'); + }); + + it('should detect writes to template variables', () => { + const TEMPLATE = `
    `; + const block = tcb(TEMPLATE); + expect(block).toContain('_t3.addEventListener("event", ($event): any => { (_t2 = 3); });'); + }); + + it('should ignore accesses to $event through `this`', () => { + const TEMPLATE = `
    `; + const block = tcb(TEMPLATE); + + expect(block).toContain( + '_t1.addEventListener("event", ($event): any => { (this).foo(((this).$event)); });', + ); + }); + }); + + describe('config', () => { + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + exportAs: ['dir'], + inputs: {'dirInput': 'dirInput'}, + outputs: {'outputField': 'dirOutput'}, + hasNgTemplateContextGuard: true, + }, + ]; + const BASE_CONFIG: TypeCheckingConfig = { + applyTemplateContextGuards: true, + checkTemplateBodies: true, + checkControlFlowBodies: true, + alwaysCheckSchemaInTemplateBodies: true, + checkTypeOfInputBindings: true, + honorAccessModifiersForInputBindings: false, + strictNullInputBindings: true, + checkTypeOfAttributes: true, + checkTypeOfDomBindings: false, + checkTypeOfOutputEvents: true, + checkTypeOfAnimationEvents: true, + checkTypeOfDomEvents: true, + checkUnclaimedEventNames: false, + checkTypeOfDomReferences: true, + checkTypeOfNonDomReferences: true, + checkTypeOfPipes: true, + strictSafeNavigationTypes: true, + useContextGenericType: true, + strictLiteralTypes: true, + enableTemplateTypeChecker: false, + useInlineTypeConstructors: true, + controlFlowPreventingContentProjection: 'warning', + unusedStandaloneImports: 'warning', + allowSignalsInTwoWayBindings: true, + allowDomEventAssertion: true, + checkUnknownElements: true, + checkTypeOfNgTemplateBindings: true, + }; + + describe('config.applyTemplateContextGuards', () => { + const TEMPLATE = `
    {{ value }}
    `; + const GUARD_APPLIED = 'if (i0.Dir.ngTemplateContextGuard('; + + it('should apply template context guards when enabled', () => { + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain(GUARD_APPLIED); + }); + it('should not apply template context guards when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = { + ...BASE_CONFIG, + applyTemplateContextGuards: false, + }; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + expect(block).not.toContain(GUARD_APPLIED); + }); + }); + + describe('config.checkTemplateBodies', () => { + const TEMPLATE = `{{a}}{{ref}}`; + + it('should descend into template bodies when enabled', () => { + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('((this).a)'); + }); + it('should not descend into template bodies when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = {...BASE_CONFIG, checkTemplateBodies: false}; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + expect(block).not.toContain('((this).a)'); + }); + + it('generates a references var when enabled', () => { + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = (_t2 as any as i1.TemplateRef);'); + }); + + it('generates a reference var when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = {...BASE_CONFIG, checkTemplateBodies: false}; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + expect(block).toContain('var _t1 = (_t2 as any as i1.TemplateRef);'); + }); + }); + + describe('config.strictNullInputBindings', () => { + const TEMPLATE = `
    `; + + it('should include null and undefined when enabled', () => { + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('_t1.dirInput = (((this).a));'); + expect(block).toContain('((this).b);'); + }); + it('should use the non-null assertion operator when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = { + ...BASE_CONFIG, + strictNullInputBindings: false, + }; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + expect(block).toContain('_t1.dirInput = ((((this).a))!);'); + expect(block).toContain('(((this).b))!;'); + }); + }); + + describe('config.checkTypeOfBindings', () => { + it('should check types of bindings when enabled', () => { + const TEMPLATE = `
    `; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('_t1.dirInput = (((this).a));'); + expect(block).toContain('((this).b);'); + }); + + it('should not check types of bindings when disabled', () => { + const TEMPLATE = `
    `; + const DISABLED_CONFIG: TypeCheckingConfig = { + ...BASE_CONFIG, + checkTypeOfInputBindings: false, + }; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + expect(block).toContain('_t1.dirInput = (((((this).a)) as any));'); + expect(block).toContain('((((this).b)) as any);'); + }); + + it('should wrap the cast to any in parentheses when required', () => { + const TEMPLATE = `
    `; + const DISABLED_CONFIG: TypeCheckingConfig = { + ...BASE_CONFIG, + checkTypeOfInputBindings: false, + }; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + expect(block).toContain('_t1.dirInput = ((((((this).a)) === (((this).b))) as any));'); + }); + }); + + describe('config.checkTypeOfOutputEvents', () => { + const TEMPLATE = `
    `; + + it('should check types of directive outputs when enabled', () => { + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain( + '_t1["outputField"].subscribe(($event): any => { (this).foo($event); });', + ); + expect(block).toContain( + '_t2.addEventListener("nonDirOutput", ($event): any => { (this).foo($event); });', + ); + }); + it('should not check types of directive outputs when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = { + ...BASE_CONFIG, + checkTypeOfOutputEvents: false, + }; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + expect(block).toContain('($event: any): any => { (this).foo($event); }'); + // Note that DOM events are still checked, that is controlled by `checkTypeOfDomEvents` + expect(block).toContain( + 'addEventListener("nonDirOutput", ($event): any => { (this).foo($event); });', + ); + }); + }); + + describe('config.checkTypeOfAnimationEvents', () => { + const TEMPLATE = `
    `; + + it('should check types of animation events when enabled', () => { + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('($event: i1.AnimationEvent): any => { (this).foo($event); }'); + }); + it('should not check types of animation events when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = { + ...BASE_CONFIG, + checkTypeOfAnimationEvents: false, + }; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + expect(block).toContain('($event: any): any => { (this).foo($event); }'); + }); + }); + + describe('config.checkTypeOfDomEvents', () => { + const TEMPLATE = `
    `; + + it('should check types of DOM events when enabled', () => { + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain( + '_t1["outputField"].subscribe(($event): any => { (this).foo($event); });', + ); + expect(block).toContain( + '_t2.addEventListener("nonDirOutput", ($event): any => { (this).foo($event); });', + ); + }); + it('should not check types of DOM events when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = {...BASE_CONFIG, checkTypeOfDomEvents: false}; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + // Note that directive outputs are still checked, that is controlled by + // `checkTypeOfOutputEvents` + expect(block).toContain( + '_t1["outputField"].subscribe(($event): any => { (this).foo($event); });', + ); + expect(block).toContain('($event: any): any => { (this).foo($event); }'); + }); + }); + + describe('config.checkTypeOfDomReferences', () => { + const TEMPLATE = `{{ref.value}}`; + + it('should trace references when enabled', () => { + const block = tcb(TEMPLATE); + expect(block).toContain('(_t1).value'); + }); + + it('should use any for reference types when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = { + ...BASE_CONFIG, + checkTypeOfDomReferences: false, + }; + const block = tcb(TEMPLATE, [], DISABLED_CONFIG); + expect(block).toContain('var _t1 = _t2 as any; ' + '"" + (((_t1).value));'); + }); + }); + + describe('config.checkTypeOfNonDomReferences', () => { + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + exportAs: ['dir'], + inputs: {'dirInput': 'dirInput'}, + outputs: {'outputField': 'dirOutput'}, + hasNgTemplateContextGuard: true, + }, + ]; + const TEMPLATE = `
    {{ref.value}}
    {{ref2.value2}}`; + + it('should trace references to a directive when enabled', () => { + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('(_t1).value'); + }); + + it('should trace references to an when enabled', () => { + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain( + 'var _t3 = (_t4 as any as i1.TemplateRef); ' + '"" + (((_t3).value2));', + ); + }); + + it('should use any for reference types when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = { + ...BASE_CONFIG, + checkTypeOfNonDomReferences: false, + }; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + expect(block).toContain('var _t1 = _t2 as any; ' + '"" + (((_t1).value));'); + }); + }); + + describe('config.checkTypeOfAttributes', () => { + const TEMPLATE = ``; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: {'disabled': 'disabled', 'cols': 'cols', 'rows': 'rows'}, + }, + ]; + + it('should assign string value to the input when enabled', () => { + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('_t1.disabled = ("");'); + expect(block).toContain('_t1.cols = ("3");'); + expect(block).toContain('_t1.rows = (2);'); + }); + + it('should use any for attributes but still check bound attributes when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = {...BASE_CONFIG, checkTypeOfAttributes: false}; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + expect(block).not.toContain('"disabled"'); + expect(block).not.toContain('"cols"'); + expect(block).toContain('_t1.rows = (2);'); + }); + }); + + describe('config.checkTypeOfPipes', () => { + const TEMPLATE = `{{a | test:b:c}}`; + const PIPES: TestDeclaration[] = [ + { + type: 'pipe', + name: 'TestPipe', + pipeName: 'test', + }, + ]; + + it('should check types of pipes when enabled', () => { + const block = tcb(TEMPLATE, PIPES); + expect(block).toContain('var _pipe1 = null! as i0.TestPipe;'); + expect(block).toContain('(_pipe1.transform(((this).a), ((this).b), ((this).c)));'); + }); + it('should not check types of pipes when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = {...BASE_CONFIG, checkTypeOfPipes: false}; + const block = tcb(TEMPLATE, PIPES, DISABLED_CONFIG); + expect(block).toContain('var _pipe1 = null! as i0.TestPipe;'); + expect(block).toContain('((_pipe1.transform as any)(((this).a), ((this).b), ((this).c))'); + }); + + it('should preserve type inference without explicitly filling generic arguments', () => { + const GENERIC_PIPES: TestDeclaration[] = [ + { + type: 'pipe', + name: 'GenericPipe', + pipeName: 'generic', + isGeneric: true, + }, + ]; + // Test that generic pipes are instantiated like `var _pipe1 = null! as i0.GenericPipe;` + // instead of getting artificial padded `any` type arguments `i0.GenericPipe`. + const block = tcb(`{{a | generic}}`, GENERIC_PIPES); + expect(block).toContain('var _pipe1 = null! as i0.GenericPipe;'); + expect(block).not.toContain('var _pipe1 = null! as i0.GenericPipe;'); + }); + }); + + describe('config.strictSafeNavigationTypes', () => { + const TEMPLATE = `{{a?.b}} {{a?.method()}} {{a?.[0]}} {{a.optionalMethod?.()}}`; + + it('should use undefined for safe navigation operations when enabled', () => { + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('(((this).a))?.method?.())'); + expect(block).toContain('((((this).a))?.b)'); + expect(block).toContain('((((this).a))?.[0])'); + expect(block).toContain('(((((this).a)).optionalMethod))?.())'); + }); + + it('should use undefined for safe navigation operations when using the $safeNavigationMigration magic function', () => { + // This behavior is _wrong_ but this is where we are today. + // See https://github.com/angular/angular/issues/37622 + const TEMPLATE = `{{$safeNavigationMigration(a?.b)}} {{$safeNavigationMigration(a?.method())}} {{$safeNavigationMigration(a?.[0])}} {{$safeNavigationMigration(a.optionalMethod?.())}}`; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('((((this).a))?.method?.())'); + expect(block).toContain('((((this).a))?.b)'); + expect(block).toContain('((((this).a))?.[0])'); + expect(block).toContain('((((((this).a)).optionalMethod))?.())'); + }); + + it("should use an 'any' type for safe navigation operations when disabled", () => { + const DISABLED_CONFIG: TypeCheckingConfig = { + ...BASE_CONFIG, + strictSafeNavigationTypes: false, + }; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + expect(block).toContain('((((((this).a))!.method as any) as any)())'); + expect(block).toContain('((((this).a))!.b as any)'); + expect(block).toContain('(((((this).a))![0] as any)'); + expect(block).toContain('((((((this).a)).optionalMethod))!() as any)'); + }); + + it('should produce correct ts expression without extra parentheses for safe navigation chains', () => { + expect(tcb(`{{ a?.b.c }}`, DIRECTIVES)).toContain('((((this).a))?.b.c)'); + expect(tcb(`{{ a?.b.c.d }}`, DIRECTIVES)).toContain('((((this).a))?.b.c.d)'); + expect(tcb(`{{ a?.b?.c }}`, DIRECTIVES)).toContain('(((((this).a))?.b)?.c)'); // Safe property read receiver wraps + expect(tcb(`{{ a?.b['c'].d }}`, DIRECTIVES)).toContain('((((this).a))?.b["c"].d)'); + expect(tcb(`{{ a?.b().c }}`, DIRECTIVES)).toContain('((((this).a))?.b?.().c)'); // convertToSafeCall no longer wraps + expect(tcb(`{{ a?.b?.().c }}`, DIRECTIVES)).toContain('(((((this).a))?.b)?.().c)'); // SafeCall receiver wraps + }); + }); + + describe('config.strictSafeNavigationTypes (View Engine bug emulation)', () => { + const TEMPLATE = `{{a.method()?.b}} {{a()?.method()}} {{a.method()?.[0]}} {{a.method()?.otherMethod?.()}}`; + it('should check the presence of a property/method on the receiver when enabled', () => { + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('(((((this).a)).method())?.b)'); + expect(block).toContain('(((this).a())?.method?.())'); + expect(block).toContain('(((((this).a)).method())?.[0])'); + expect(block).toContain('((((((this).a)).method())?.otherMethod)?.())'); + }); + + it('should not check the presence of a property/method on the receiver when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = { + ...BASE_CONFIG, + strictSafeNavigationTypes: false, + }; + const block = tcb(TEMPLATE, DIRECTIVES, DISABLED_CONFIG); + expect(block).toContain('(((((this).a)).method()) as any).b'); + expect(block).toContain('(((((this).a()) as any).method as any)())'); + expect(block).toContain('(((((this).a)).method()) as any)[0]'); + expect(block).toContain('(((((((this).a)).method()) as any).otherMethod)!() as any)'); + }); + }); + + describe('config.strictContextGenerics', () => { + const TEMPLATE = `Test`; + + it('should use the generic type of the context when enabled', () => { + const block = tcb(TEMPLATE); + expect(block).toContain('function _tcb1(this: i0.Test)'); + }); + + it('should use any for the context generic type when disabled', () => { + const DISABLED_CONFIG: TypeCheckingConfig = {...BASE_CONFIG, useContextGenericType: false}; + const block = tcb(TEMPLATE, undefined, DISABLED_CONFIG); + expect(block).toContain('function _tcb1(this: i0.Test)'); + }); + }); + + describe('config.checkAccessModifiersForInputBindings', () => { + const TEMPLATE = `
    `; + + it('should assign restricted properties via element access for field names that are not JS identifiers', () => { + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + 'some-input.xs': 'inputA', + }, + restrictedInputFields: ['some-input.xs'], + stringLiteralInputFields: ['some-input.xs'], + }, + ]; + const enableChecks: TypeCheckingConfig = { + ...BASE_CONFIG, + honorAccessModifiersForInputBindings: true, + }; + const block = tcb(TEMPLATE, DIRECTIVES, enableChecks); + expect(block).toContain( + 'var _t1 = null! as i0.Dir; ' + '_t1["some-input.xs"] = (((this).foo)); ', + ); + }); + + it('should assign restricted properties via property access', () => { + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + fieldA: 'inputA', + }, + restrictedInputFields: ['fieldA'], + }, + ]; + const enableChecks: TypeCheckingConfig = { + ...BASE_CONFIG, + honorAccessModifiersForInputBindings: true, + }; + const block = tcb(TEMPLATE, DIRECTIVES, enableChecks); + expect(block).toContain('var _t1 = null! as i0.Dir; ' + '_t1.fieldA = (((this).foo)); '); + }); + }); + + it('should _not_ assert the type for DOM events bound on void elements when disabled', () => { + const result = tcb(``, undefined, { + ...BASE_CONFIG, + allowDomEventAssertion: false, + }); + expect(result).not.toContain('ɵassertType'); + }); + + describe('config.allowSignalsInTwoWayBindings', () => { + it('should not unwrap signals in two-way binding expressions', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'TwoWay', + selector: '[twoWay]', + inputs: {input: 'input'}, + outputs: {inputChange: 'inputChange'}, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES, { + ...BASE_CONFIG, + allowSignalsInTwoWayBindings: false, + }); + expect(block).not.toContain('ɵunwrapWritableSignal'); + }); + + it('should not unwrap signals in two-way bindings to generic directives', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'TwoWay', + selector: '[twoWay]', + inputs: {input: 'input'}, + outputs: {inputChange: 'inputChange'}, + isGeneric: true, + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES, { + ...BASE_CONFIG, + allowSignalsInTwoWayBindings: false, + }); + expect(block).not.toContain('ɵunwrapWritableSignal'); + }); + }); + }); + + it( + 'should use `any` type for type constructors with bound generic params ' + + 'when `useInlineTypeConstructors` is `false`', + () => { + const template = ` +
    + `; + const declarations: TestDeclaration[] = [ + { + // Models `class Dir` where + // `PrivateInterface` isn't exported, so the bounds can't be emitted. + typeParameters: ['T extends PrivateInterface', 'U extends string'], + requiresInlineTypeCtor: true, + type: 'directive', + name: 'Dir', + selector: '[dir]', + inputs: { + inputA: 'inputA', + inputB: 'inputB', + }, + isGeneric: true, + }, + ]; + + const renderedTcb = tcb(template, declarations, {useInlineTypeConstructors: false}); + + expect(renderedTcb).toContain(`var _t1 = null! as i0.Dir;`); + expect(renderedTcb).toContain(`_t1.inputA = (((this).foo));`); + expect(renderedTcb).toContain(`_t1.inputB = (((this).bar));`); + }, + ); + + describe('host directives', () => { + it('should generate bindings to host directive inputs/outputs', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + hostDirectives: [ + { + directive: { + type: 'directive', + name: 'HostDir', + selector: '', + inputs: {hostInput: 'hostInput'}, + outputs: {hostOutput: 'hostOutput'}, + isStandalone: true, + }, + inputs: ['hostInput'], + outputs: ['hostOutput'], + }, + ], + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as i0.HostDir'); + expect(block).toContain('_t1.hostInput = (1)'); + expect(block).toContain('_t1["hostOutput"].subscribe'); + }); + + it('should generate bindings to aliased host directive inputs/outputs', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + hostDirectives: [ + { + directive: { + type: 'directive', + name: 'HostDir', + selector: '', + inputs: {hostInput: 'hostInput'}, + outputs: {hostOutput: 'hostOutput'}, + isStandalone: true, + }, + inputs: ['hostInput: inputAlias'], + outputs: ['hostOutput: outputAlias'], + }, + ], + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as i0.HostDir'); + expect(block).toContain('_t1.hostInput = (1)'); + expect(block).toContain('_t1["hostOutput"].subscribe'); + }); + + it('should generate bindings to an input from a multi-level host directive', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + hostDirectives: [ + { + directive: { + type: 'directive', + name: 'HostDir', + selector: '', + isStandalone: true, + hostDirectives: [ + { + directive: { + type: 'directive', + name: 'MultiLevelHostDir', + selector: '', + isStandalone: true, + inputs: {'multiLevelHostInput': 'multiLevelHostInput'}, + }, + inputs: ['multiLevelHostInput'], + }, + ], + }, + }, + ], + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as i0.MultiLevelHostDir;'); + expect(block).toContain('_t1.multiLevelHostInput = (1)'); + }); + + it('should generate references to host directives', () => { + const TEMPLATE = `
    {{a.propA}} {{b.propB}}
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + hostDirectives: [ + { + directive: { + type: 'directive', + name: 'HostA', + selector: '', + isStandalone: true, + exportAs: ['hostA'], + }, + }, + { + directive: { + type: 'directive', + name: 'HostB', + selector: '', + isStandalone: true, + exportAs: ['hostB'], + }, + }, + ], + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t2 = null! as i0.HostA;'); + expect(block).toContain('var _t4 = null! as i0.HostB;'); + expect(block).toContain('(((_t1).propA)) + (((_t3).propB))'); + }); + + it('should generate bindings to the same input both from the host and host input', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + inputs: {input: 'input'}, + hostDirectives: [ + { + directive: { + type: 'directive', + name: 'HostDir', + selector: '', + inputs: {input: 'input'}, + isStandalone: true, + }, + inputs: ['input'], + }, + ], + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as i0.HostDir'); + expect(block).toContain('var _t2 = null! as i0.DirA;'); + expect(block).toContain('_t1.input = (1)'); + expect(block).toContain('_t2.input = (1)'); + }); + + it('should not generate bindings to host directive inputs/outputs that have not been exposed', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + hostDirectives: [ + { + directive: { + type: 'directive', + name: 'HostDir', + selector: '', + inputs: {hostInput: 'hostInput'}, + outputs: {hostOutput: 'hostOutput'}, + isStandalone: true, + }, + // Intentionally left blank. + inputs: [], + outputs: [], + }, + ], + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).not.toContain('var _t1 = null! i0.HostDir'); + expect(block).not.toContain('_t1.hostInput = (1)'); + expect(block).not.toContain('_t1["hostOutput"].subscribe'); + expect(block).toContain('_t1.addEventListener("hostOutput"'); + }); + + it('should generate bindings to aliased host directive inputs/outputs on a host with its own aliases', () => { + const TEMPLATE = `
    `; + const DIRECTIVES: TestDeclaration[] = [ + { + type: 'directive', + name: 'DirA', + selector: '[dir-a]', + hostDirectives: [ + { + directive: { + type: 'directive', + name: 'HostDir', + selector: '', + inputs: {hostInput: 'hostInputAlias'}, + outputs: {hostOutput: 'hostOutputAlias'}, + isStandalone: true, + }, + inputs: ['hostInputAlias: inputAlias'], + outputs: ['hostOutputAlias: outputAlias'], + }, + ], + }, + ]; + const block = tcb(TEMPLATE, DIRECTIVES); + expect(block).toContain('var _t1 = null! as i0.HostDir'); + expect(block).toContain('_t1.hostInput = (1)'); + expect(block).toContain('_t1["hostOutput"].subscribe'); + }); + }); + + describe('deferred blocks', () => { + it('should generate bindings inside deferred blocks', () => { + const TEMPLATE = ` + @defer { + {{main()}} + } @placeholder { + {{placeholder()}} + } @loading { + {{loading()}} + } @error { + {{error()}} + } + `; + + expect(tcb(TEMPLATE)).toContain( + '"" + ((this).main()); "" + ((this).placeholder()); "" + ((this).loading()); "" + ((this).error());', + ); + }); + + it('should generate `when` trigger', () => { + const TEMPLATE = ` + @defer (when shouldShow() && isVisible) { + {{main()}} + } + `; + + expect(tcb(TEMPLATE)).toContain('if (((this).shouldShow()) && (((this).isVisible))) {}'); + }); + + it('should generate `prefetch when` trigger', () => { + const TEMPLATE = ` + @defer (prefetch when shouldShow() && isVisible) { + {{main()}} + } + `; + + expect(tcb(TEMPLATE)).toContain('if (((this).shouldShow()) && (((this).isVisible))) {}'); + }); + + it('should generate `hydrate when` trigger', () => { + const TEMPLATE = ` + @defer (hydrate when shouldShow() && isVisible) { + {{main()}} + } + `; + + expect(tcb(TEMPLATE)).toContain('if (((this).shouldShow()) && (((this).isVisible))) {}'); + }); + + it('should generate options for `viewport` trigger', () => { + const TEMPLATE = ` + @defer (on viewport({rootMargin: '123px', scrollMargin: '456px'})) { + {{main()}} + } @placeholder { +
    {{placeholder()}}
    + } + `; + + expect(tcb(TEMPLATE)).toContain( + 'new IntersectionObserver(null!, ({ "rootMargin": "123px", "scrollMargin": "456px" })); "" + ((this).main()); "" + ((this).placeholder());', + ); + }); + }); + + describe('conditional blocks', () => { + it('should generate an if block', () => { + const TEMPLATE = ` + @if (expr === 0) { + {{main()}} + } @else if (expr1 === 1) { + {{one()}} + } @else if (expr2 === 2) { + {{two()}} + } @else { + {{other()}} + } + `; + + expect(tcb(TEMPLATE)).toContain( + 'if ((((this).expr)) === (0)) { "" + ((this).main()); } ' + + 'else if ((((this).expr1)) === (1)) { "" + ((this).one()); } ' + + 'else if ((((this).expr2)) === (2)) { "" + ((this).two()); } ' + + 'else { "" + ((this).other()); }', + ); + }); + + it('should generate a guard expression for listener inside conditional', () => { + const TEMPLATE = ` + @if (expr === 0) { + + } @else if (expr === 1) { + + } @else if (expr === 2) { + + } @else { + + } + `; + + const result = tcb(TEMPLATE); + + expect(result).toContain(`if ((((this).expr)) === (0)) { (this).zero(); }`); + expect(result).toContain( + `if ((!((((this).expr)) === (0))) && ((((this).expr)) === (1))) { (this).one(); }`, + ); + expect(result).toContain( + `if (((!((((this).expr)) === (0))) && (!((((this).expr)) === (1)))) && ((((this).expr)) === (2))) { (this).two(); }`, + ); + expect(result).toContain( + `if (((!((((this).expr)) === (0))) && (!((((this).expr)) === (1)))) && (!((((this).expr)) === (2)))) { (this).otherwise(); }`, + ); + }); + + it('should generate an if block with an `as` expression', () => { + const TEMPLATE = `@if (expr === 1; as alias) { + {{alias}} + }`; + + expect(tcb(TEMPLATE)).toContain( + 'var _t1 = ((((this).expr)) === (1)); if (((((this).expr)) === (1)) && _t1) { "" + (_t1); }; } }', + ); + }); + + it('should generate an else if block with an `as` expression', () => { + const TEMPLATE = `@if (expr === 1) { + {{expr}} + } @else if (expr === 2; as alias) { + {{alias}} + }`; + + expect(tcb(TEMPLATE)).toContain( + 'var _t1 = ((((this).expr)) === (2)); if ((((this).expr)) === (1)) { "" + (((this).expr)); } ' + + 'else if (((((this).expr)) === (2)) && _t1) { "" + (_t1); }', + ); + }); + + it('should generate block where `@if` and `@else if` have the same alias name', () => { + const TEMPLATE = `@if (expr === 1; as alias) { + {{alias}} + } @else if (expr === 2; as alias) { + {{alias}} + }`; + + expect(tcb(TEMPLATE)).toContain( + 'var _t1 = ((((this).expr)) === (1)); var _t2 = ((((this).expr)) === (2)); ' + + 'if (((((this).expr)) === (1)) && _t1) { "" + (_t1); } ' + + 'else if (((((this).expr)) === (2)) && _t2) { "" + (_t2); }', + ); + }); + + it('should not generate the body of if blocks when `checkControlFlowBodies` is disabled', () => { + const TEMPLATE = ` + @if (expr === 0) { + {{main()}} + } @else if (expr1 === 1) { + {{one()}} + } @else if (expr2 === 2) { + {{two()}} + } @else { + {{other()}} + } + `; + + expect(tcb(TEMPLATE, undefined, {checkControlFlowBodies: false})).toContain( + 'if ((((this).expr)) === (0)) { } ' + + 'else if ((((this).expr1)) === (1)) { } ' + + 'else if ((((this).expr2)) === (2)) { } ' + + 'else { }', + ); + }); + + it('should generate a switch block', () => { + const TEMPLATE = ` + @switch (expr) { + @case (1) { + {{one()}} + } + @case (2) { + {{two()}} + } + @default { + {{default()}} + } + } + `; + + expect(tcb(TEMPLATE)).toContain( + 'switch (((this).expr)) { ' + + 'case 1: "" + ((this).one()); break; ' + + 'case 2: "" + ((this).two()); break; ' + + 'default: "" + ((this).default()); break; }', + ); + }); + + it('should generate a switch block with a falltrough for consecutive cases', () => { + const TEMPLATE = ` + @switch (expr) { + @case ('one') + @case ('two') { + {{oneOrTwo()}} + } + @case ('three') { + {{three()}} + } + } + `; + + expect(tcb(TEMPLATE)).toContain( + 'switch (((this).expr)) { ' + + 'case "one": ' + + 'case "two": "" + ((this).oneOrTwo()); break; ' + + 'case "three": "" + ((this).three()); break; }', + ); + }); + + it('should generate a switch block with a fallthrough to default case', () => { + const TEMPLATE = ` + @switch (expr) { + @case (1) + @case (2) { + {{oneOrTwo()}} + } + @case (3) + @default { + {{default()}} + } + } + `; + + expect(tcb(TEMPLATE)).toContain( + 'switch (((this).expr)) { ' + + 'case 1: ' + + 'case 2: "" + ((this).oneOrTwo()); break; ' + + 'case 3: ' + + 'default: "" + ((this).default()); break; }', + ); + }); + + it('should generate a switch block that only has a default case', () => { + const TEMPLATE = ` + @switch (expr) { + @default { + {{default()}} + } + } + `; + + expect(tcb(TEMPLATE)).toContain( + 'switch (((this).expr)) { default: "" + ((this).default()); break; }', + ); + }); + + it('should generate a guard expression for a listener inside a switch case', () => { + const TEMPLATE = ` + @switch (expr) { + @case (1) { + + } + @case (2) { + + } + @default { + + } + } + `; + + const result = tcb(TEMPLATE); + + expect(result).toContain(`if (((this).expr) === 1) { (this).one(); }`); + expect(result).toContain(`if (((this).expr) === 2) { (this).two(); }`); + expect(result).toContain( + `if ((((this).expr) !== 1) && (((this).expr) !== 2)) { (this).default(); }`, + ); + }); + + it('should generate a switch block inside a template', () => { + const TEMPLATE = ` + + @switch (expr()) { + @case ('one') { + {{one()}} + } + @case ('two') { + {{two()}} + } + @default { + {{default()}} + } + } + + `; + + expect(tcb(TEMPLATE)).toContain( + 'var _t1 = null! as any; { var _t2 = (_t1.exp); switch (_t2()) { ' + + 'case "one": "" + ((this).one()); break; ' + + 'case "two": "" + ((this).two()); break; ' + + 'default: "" + ((this).default()); break; }; }', + ); + }); + + it('should handle an empty switch block', () => { + expect(tcb('@switch (expr) {}')).toContain('if (true) { switch (((this).expr)) { }; }'); + }); + + it('should not generate the body of a switch block if checkControlFlowBodies is disabled', () => { + const TEMPLATE = ` + @switch (expr) { + @case (1) { + {{one()}} + } + @case (2) { + {{two()}} + } + @default { + {{default()}} + } + } + `; + + expect(tcb(TEMPLATE, undefined, {checkControlFlowBodies: false})).toContain( + 'switch (((this).expr)) { ' + 'case 1: break; ' + 'case 2: break; ' + 'default: break; }', + ); + }); + + it('should generate a switch block with exhaustiveness checking', () => { + const TEMPLATE = ` + @switch (expr) { + @case (1) { + {{one()}} + } + @case (2) { + {{two()}} + } + @default never; + } + `; + + expect(tcb(TEMPLATE)).toContain( + 'switch (((this).expr)) { ' + + 'case 1: "" + ((this).one()); break; ' + + 'case 2: "" + ((this).two()); break; ' + + 'default: const tcbExhaustive_t1: never = ((this).expr);', + ); + }); + + it('should generate a switch block with exhaustiveness checking with param', () => { + const TEMPLATE = ` + @switch (expr) { + @case (1) { + {{one()}} + } + @case (2) { + {{two()}} + } + @default never(expr.prop); + } + `; + + expect(tcb(TEMPLATE)).toContain( + 'switch (((this).expr)) { ' + + 'case 1: "" + ((this).one()); break; ' + + 'case 2: "" + ((this).two()); break; ' + + 'default: const tcbExhaustive_t1: never = ((((this).expr)).prop);', + ); + }); + + it('should not generate exhaustiveness checking when there is a consecutive default case', () => { + const TEMPLATE = ` + @switch (expr) { + @case (1) { + {{one()}} + } + @case (2) + @default { + {{default()}} + } + } + `; + + expect(tcb(TEMPLATE)).toContain( + 'switch (((this).expr)) { ' + + 'case 1: "" + ((this).one()); break; ' + + 'case 2: ' + + 'default: "" + ((this).default()); break; }', + ); + }); + + it('should generate the right TCB if default is not the last case', () => { + const TEMPLATE = ` + @switch (expr) { + @case (1) { + {{one()}} + } + @default + @case (3) { + {{default()}} + } + @case (2) { + {{two()}} + } + } + `; + expect(tcb(TEMPLATE)).toContain( + 'switch (((this).expr)) { ' + + 'case 1: "" + ((this).one()); break; ' + + 'default: ' + + 'case 3: "" + ((this).default()); break; ' + + 'case 2: "" + ((this).two()); break; }', + ); + }); + }); + + describe('for loop blocks', () => { + it('should generate a for block', () => { + const TEMPLATE = ` + @for (item of items; track item) { + {{main(item)}} + } @empty { + {{empty()}} + } + `; + + const result = tcb(TEMPLATE); + expect(result).toContain('for (const _t1 of (((this).items))!) {'); + expect(result).toContain('"" + ((this).main(_t1))'); + expect(result).toContain('"" + ((this).empty())'); + }); + + it('should generate a for block with implicit variables', () => { + const TEMPLATE = ` + @for (item of items; track item) { + {{$index}} {{$first}} {{$last}} {{$even}} {{$odd}} {{$count}} + } + `; + + const result = tcb(TEMPLATE); + expect(result).toContain('for (const _t1 of (((this).items))!) {'); + expect(result).toContain('var _t2 = null! as number;'); + expect(result).toContain('var _t3 = null! as boolean;'); + expect(result).toContain('var _t4 = null! as boolean;'); + expect(result).toContain('var _t5 = null! as boolean;'); + expect(result).toContain('var _t6 = null! as boolean;'); + expect(result).toContain('var _t7 = null! as number;'); + expect(result).toContain('"" + (_t2) + (_t3) + (_t4) + (_t5) + (_t6) + (_t7)'); + }); + + it('should generate a for block with aliased variables', () => { + const TEMPLATE = ` + @for (item of items; track item; let i = $index, f = $first, l = $last, e = $even, o = $odd, c = $count) { + {{i}} {{f}} {{l}} {{e}} {{o}} {{c}} + } + `; + + const result = tcb(TEMPLATE); + expect(result).toContain('for (const _t1 of (((this).items))!) {'); + expect(result).toContain('var _t2 = null! as number;'); + expect(result).toContain('var _t3 = null! as boolean;'); + expect(result).toContain('var _t4 = null! as boolean;'); + expect(result).toContain('var _t5 = null! as boolean;'); + expect(result).toContain('var _t6 = null! as boolean;'); + expect(result).toContain('var _t7 = null! as number;'); + expect(result).toContain('"" + (_t2) + (_t3) + (_t4) + (_t5) + (_t6) + (_t7)'); + }); + + it('should read both implicit variables and their alias at the same time', () => { + const TEMPLATE = ` + @for (item of items; track item; let i = $index) { {{$index}} {{i}} } + `; + + const result = tcb(TEMPLATE); + expect(result).toContain('for (const _t1 of (((this).items))!) {'); + expect(result).toContain('var _t2 = null! as number;'); + expect(result).toContain('var _t3 = null! as number;'); + expect(result).toContain('"" + (_t2) + (_t3)'); + }); + + it('should read variable from a parent for loop', () => { + const TEMPLATE = ` + @for (item of items; track item; let indexAlias = $index) { + {{item}} {{indexAlias}} + + @for (inner of item.items; track inner) { + {{item}} {{indexAlias}} {{inner}} {{$index}} + } + } + `; + + const result = tcb(TEMPLATE); + expect(result).toContain('for (const _t1 of (((this).items))!) { var _t2 = null! as number;'); + expect(result).toContain('"" + (_t1) + (_t2)'); + expect(result).toContain('for (const _t3 of (((_t1).items))!) { var _t4 = null! as number;'); + expect(result).toContain('"" + (_t1) + ((_t2)) + (_t3) + (_t4)'); + }); + + it('should generate the tracking expression of a for loop', () => { + const result = tcb(`@for (item of items; track trackingFn($index, item, prop)) {}`); + expect(result).toContain('for (const _t1 of (((this).items))!) { var _t2 = null! as number;'); + expect(result).toContain('(this).trackingFn(_t2, _t1, ((this).prop));'); + }); + + it('should not generate the body of a for block when checkControlFlowBodies is disabled', () => { + const TEMPLATE = ` + @for (item of items; track item) { + {{main(item)}} + } @empty { + {{empty()}} + } + `; + + const result = tcb(TEMPLATE, undefined, {checkControlFlowBodies: false}); + expect(result).toContain('for (const _t1 of (((this).items))!) {'); + expect(result).not.toContain('.main'); + expect(result).not.toContain('.empty'); + }); + + it('should wrap compound expressions in parentheses before appending non-null assertion', () => { + const TEMPLATE = ` + @for (item of items && items.slice(0, 10); track item) { + {{item}} + } + `; + + const result = tcb(TEMPLATE); + expect(result).toContain( + 'for (const _t1 of ((((this).items)) && ((((this).items)).slice(0, 10)))!) {', + ); + }); + }); + + describe('let declarations', () => { + it('should generate let declarations as constants', () => { + const result = tcb(` + @let one = 1; + @let two = 2; + @let sum = one + two; + {{sum}} + `); + + expect(result).toContain('const _t1 = (1);'); + expect(result).toContain('const _t2 = (2);'); + expect(result).toContain('const _t3 = ((_t1) + (_t2));'); + expect(result).toContain('"" + (_t3);'); + }); + + it('should rewrite references to let declarations inside event listeners', () => { + const result = tcb(` + @let value = 1; + + `); + + expect(result).toContain('const _t1 = (1);'); + expect(result).toContain('var _t2 = document.createElement("button");'); + expect(result).toContain( + '_t2.addEventListener("click", ($event): any => { (this).doStuff(_t1); });', + ); + }); + + it('should rewrite writes to let declarations with update operators', () => { + const result = tcb(` + @let value = 1; + + `); + + expect(result).toContain('const _t1 = (1);'); + expect(result).toContain('(_t1++)'); + }); + }); + + describe('arrow functions', () => { + it('should generate an arrow function that uses only local parameters', () => { + const TEMPLATE = ``; + expect(tcb(TEMPLATE)).toContain('(this).withCallback((a, b) => (a) + (b));'); + }); + + it('should generate an arrow function that references class members', () => { + const TEMPLATE = ``; + expect(tcb(TEMPLATE)).toContain( + '(this).withCallback(a => (this).componentFn((a) + (((this).componentProp))));', + ); + }); + + it('should generate an arrow function that accesses higher-level parameters', () => { + expect(tcb(`{{() => () => (a) => () => () => a + 1}}`)).toContain( + '(() => () => a => () => () => (a) + (1)', + ); + }); + + it('should generate an arrow function that accesses a class member with the same name as a parameter through `this`', () => { + const TEMPLATE = ``; + expect(tcb(TEMPLATE)).toContain('(this).withCallback(a => (a) + (((this).a)));'); + }); + + it('should generate an arrow function that accesses a class member with the same name as a higher-level parameter through `this`', () => { + const TEMPLATE = ``; + expect(tcb(TEMPLATE)).toContain( + '(this).withCallback(a => b => () => ((((a) + (b)) + (((this).a))) + (((this).b))) + (((this).someOtherProp)));', + ); + }); + + it('should generate an arrow function that references local symbols', () => { + const TEMPLATE = ` + @let one = 1; + + + `; + + const result = tcb(TEMPLATE); + expect(result).toContain('const _t1 = (1);'); + // _t2 is the button which we don't care about in this test. + expect(result).toContain('var _t3 = _t4;'); + expect(result).toContain('var _t4 = document.createElement("input");'); + expect(tcb(TEMPLATE)).toContain('(this).withCallback(() => (_t1) + (((_t3).value)));'); + }); + + it('should add span info to arrow function parameters', () => { + const result = tcb(`{{(a, b) => a + b}}`, undefined, undefined, {emitSpans: true}); + expect(result).toContain('((a /*3,4*/, b /*6,7*/) =>'); + }); + }); + + describe('signal forms', () => { + let FieldMock: TestDirective; + + beforeEach(() => { + FieldMock = { + type: 'directive', + name: 'FormField', + selector: '[formField]', + hasNgFieldDirective: true, + inputs: { + field: 'formField', + }, + }; + }); + + it('should generate a string field for an input without a type', () => { + const block = tcb('', [FieldMock]); + expect(block).toContain( + 'var _t1 = null! as { (): string; set: (v: string) => void; } | { (): number | null; set: (v: number | null) => void; };', + ); + expect(block).toContain('_t1 = ((this).f)().value;'); + expect(block).toContain('var _t2 = null! as i0.FormField;'); + expect(block).toContain('_t2.field = (((this).f));'); + }); + + it('should generate all possible type for input with a dynamic `type`', () => { + const block = tcb('', [FieldMock]); + expect(block).toContain('var _t1 = null! as string | number | boolean | Date | null;'); + expect(block).toContain('_t1 = ((this).f)().value();'); + expect(block).toContain('var _t2 = null! as i0.FormField;'); + expect(block).toContain('_t2.field = (((this).f));'); + }); + + it('should generate all possible type for input with a dynamic attribute `type` binding', () => { + const block = tcb('', [FieldMock]); + expect(block).toContain('var _t1 = null! as string | number | boolean | Date | null;'); + expect(block).toContain('_t1 = ((this).f)().value();'); + expect(block).toContain('var _t2 = null! as i0.FormField;'); + expect(block).toContain('_t2.field = (((this).f));'); + }); + + [ + {inputType: 'radio', expectedType: 'string'}, + {inputType: 'checkbox', expectedType: 'boolean'}, + {inputType: 'number', expectedType: 'string | number | null'}, + {inputType: 'range', expectedType: 'string | number | null'}, + {inputType: 'datetime-local', expectedType: 'string | number | null'}, + {inputType: 'date', expectedType: 'string | number | Date | null'}, + {inputType: 'month', expectedType: 'string | number | Date | null'}, + {inputType: 'time', expectedType: 'string | number | Date | null'}, + {inputType: 'week', expectedType: 'string | number | Date | null'}, + {inputType: 'unknown', expectedType: 'string'}, + ].forEach(({inputType, expectedType}) => { + it(`should generate a '${expectedType}' field for an input with a '${inputType}' type`, () => { + const block = tcb(``, [FieldMock]); + expect(block).toContain(`var _t1 = null! as ${expectedType};`); + expect(block).toContain('_t1 = ((this).f)().value();'); + expect(block).toContain('var _t2 = null! as i0.FormField;'); + expect(block).toContain('_t2.field = (((this).f));'); + }); + }); + + it(`should generate a structural union for an input with a 'text' type`, () => { + const block = tcb(``, [FieldMock]); + expect(block).toContain( + 'var _t1 = null! as { (): string; set: (v: string) => void; } | { (): number | null; set: (v: number | null) => void; };', + ); + expect(block).toContain('_t1 = ((this).f)().value;'); + expect(block).toContain('var _t2 = null! as i0.FormField;'); + expect(block).toContain('_t2.field = (((this).f));'); + }); + + it('should generate expressions to check the field and value bindings of a radio input', () => { + const block = tcb('', [FieldMock]); + expect(block).toContain('var _t1 = null! as string;'); + expect(block).toContain('_t1 = ((this).f)().value();'); + expect(block).toContain('var _t2 = null! as string;'); + expect(block).toContain('_t2 = ((this).expr);'); + expect(block).toContain('var _t3 = null! as i0.FormField;'); + expect(block).toContain('_t3.field = (((this).f));'); + }); + + it('should generate a string field for a textarea', () => { + const block = tcb('', [FieldMock]); + expect(block).toContain('var _t1 = null! as string;'); + expect(block).toContain('_t1 = ((this).f)().value();'); + expect(block).toContain('var _t2 = null! as i0.FormField;'); + expect(block).toContain('_t2.field = (((this).f));'); + }); + + it('should generate a string field for a select', () => { + const block = tcb('', [FieldMock]); + expect(block).toContain('var _t1 = null! as string;'); + expect(block).toContain('_t1 = ((this).f)().value();'); + expect(block).toContain('var _t2 = null! as i0.FormField;'); + expect(block).toContain('_t2.field = (((this).f));'); + }); + + it('should generate a custom value control', () => { + const block = tcb('', [ + FieldMock, + { + type: 'directive', + name: 'CustomControl', + selector: 'custom-control', + inputs: { + value: { + classPropertyName: 'value', + bindingPropertyName: 'value', + required: false, + isSignal: true, + }, + }, + outputs: { + valueChange: 'valueChange', + }, + }, + ]); + + expect(block).toContain('var _t1 = null! as i0.CustomControl;'); + expect(block).toContain( + '_t1.value[i1.ɵINPUT_SIGNAL_BRAND_WRITE_TYPE] = i1.ɵunwrapWritableSignal((((((this).f)()).value)));', + ); + expect(block).toContain('var _t2 = null! as i0.FormField;'); + expect(block).toContain('_t2.field = (((this).f));'); + }); + + it('should generate a custom checkbox control', () => { + const block = tcb('', [ + FieldMock, + { + type: 'directive', + name: 'CustomControl', + selector: 'custom-control', + inputs: { + checked: { + classPropertyName: 'checked', + bindingPropertyName: 'checked', + required: false, + isSignal: true, + }, + }, + outputs: { + checkedChange: 'checkedChange', + }, + }, + ]); + + expect(block).toContain('var _t1 = null! as i0.CustomControl;'); + expect(block).toContain( + '_t1.checked[i1.ɵINPUT_SIGNAL_BRAND_WRITE_TYPE] = i1.ɵunwrapWritableSignal((((((this).f)()).value)));', + ); + expect(block).toContain('var _t2 = null! as i0.FormField;'); + expect(block).toContain('_t2.field = (((this).f));'); + }); + + it('should add implicit bindings to other field-related inputs on a custom control', () => { + const block = tcb('', [ + FieldMock, + { + type: 'directive', + name: 'CustomControl', + selector: 'custom-control', + inputs: { + value: { + classPropertyName: 'value', + bindingPropertyName: 'value', + required: false, + isSignal: true, + }, + required: { + classPropertyName: 'required', + bindingPropertyName: 'required', + required: false, + isSignal: true, + }, + disabled: { + classPropertyName: 'disabled', + bindingPropertyName: 'disabled', + required: false, + isSignal: true, + }, + name: { + classPropertyName: 'name', + bindingPropertyName: 'name', + required: false, + isSignal: true, + }, + }, + outputs: { + valueChange: 'valueChange', + }, + }, + ]); + + expect(block).toContain('var _t1 = null! as i0.CustomControl;'); + expect(block).toContain( + '_t1.value[i1.ɵINPUT_SIGNAL_BRAND_WRITE_TYPE] = i1.ɵunwrapWritableSignal((((((this).f)()).value)));', + ); + expect(block).toContain( + '_t1.required[i1.ɵINPUT_SIGNAL_BRAND_WRITE_TYPE] = ((((this).f)()).required());', + ); + expect(block).toContain( + '_t1.disabled[i1.ɵINPUT_SIGNAL_BRAND_WRITE_TYPE] = ((((this).f)()).disabled());', + ); + expect(block).toContain( + '_t1.name[i1.ɵINPUT_SIGNAL_BRAND_WRITE_TYPE] = ((((this).f)()).name());', + ); + expect(block).toContain('var _t2 = null! as i0.FormField;'); + expect(block).toContain('_t2.field = (((this).f));'); + }); + + it('should produce safe reads for the fields that are optional', () => { + const block = tcb('', [ + FieldMock, + { + type: 'directive', + name: 'CustomControl', + selector: 'custom-control', + inputs: { + value: { + classPropertyName: 'value', + bindingPropertyName: 'value', + required: false, + isSignal: true, + }, + max: { + classPropertyName: 'max', + bindingPropertyName: 'max', + required: false, + isSignal: true, + }, + }, + outputs: { + valueChange: 'valueChange', + }, + }, + ]); + + expect(block).toContain('var _t1 = null! as i0.CustomControl;'); + expect(block).toContain( + '_t1.value[i1.ɵINPUT_SIGNAL_BRAND_WRITE_TYPE] = i1.ɵunwrapWritableSignal((((((this).f)()).value)));', + ); + expect(block).toContain( + '_t1.max[i1.ɵINPUT_SIGNAL_BRAND_WRITE_TYPE] = ((((((this).f)()).max))?.());', + ); + expect(block).toContain('var _t2 = null! as i0.FormField;'); + expect(block).toContain('_t2.field = (((this).f));'); + }); + }); +}); diff --git a/packages/compiler/test/typecheck/util.ts b/packages/compiler/test/typecheck/util.ts new file mode 100644 index 000000000000..05f31bd546f1 --- /dev/null +++ b/packages/compiler/test/typecheck/util.ts @@ -0,0 +1,589 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import { + ClassPropertyMapping, + CssSelector, + DomSchemaChecker, + ForeignComponentMeta, + generateTypeCheckBlock, + isUnsafeObjectKey, + MatchSource, + OutOfBandDiagnosticRecorder, + parseTemplate, + ParseTemplateOptions, + R3Identifiers, + R3TargetBinder, + SelectorlessMatcher, + SelectorMatcher, + TcbComponentMetadata, + TcbDirectiveMetadata, + TcbEnvironment, + TcbExpr, + TcbInputMapping, + TcbPipeMetadata, + TcbReferenceKey, + TcbReferenceMetadata, + TcbTypeCheckBlockMetadata, + TcbTypeParameter, + TemplateGuardMeta, + TypeCheckId, + TypeCheckingConfig, + TypeCtorMetadata, +} from '../../src/compiler'; + +/** + * Module specifier under which all test declarations (and the component under test) are emitted. + * Mirrors the compiler-cli test setup, where every declaration lives in `/synthetic.ts` and the + * type-check block is generated into a separate file that imports it as `./synthetic`. + */ +const SYNTHETIC_MODULE = './synthetic'; +const SYNTHETIC_FILE = '/synthetic.ts'; + +/** Name of the component class that owns the template under test. */ +const COMPONENT_NAME = 'Test'; + +/** Type parameters assigned to the component and to every directive unless overridden. */ +const DEFAULT_TYPE_PARAMETERS = ['T extends string']; + +/** An input declared with full metadata, as opposed to the `field: 'bindingName'` shorthand. */ +export interface TestInput { + classPropertyName: string; + bindingPropertyName: string; + required: boolean; + isSignal: boolean; + /** String representation of the type accepted by the input's transform function, if any. */ + transformType?: string; +} + +export interface TestDirective { + type: 'directive'; + name: string; + selector: string | null; + exportAs?: string[] | null; + inputs?: {[fieldName: string]: string | TestInput}; + outputs?: {[fieldName: string]: string}; + isComponent?: boolean; + isStandalone?: boolean; + isGeneric?: boolean; + isStructural?: boolean; + ngTemplateGuards?: TemplateGuardMeta[]; + hasNgTemplateContextGuard?: boolean; + hasNgFieldDirective?: boolean; + coercedInputFields?: string[]; + restrictedInputFields?: string[]; + stringLiteralInputFields?: string[]; + undeclaredInputFields?: string[]; + publicMethods?: string[]; + ngContentSelectors?: string[] | null; + preserveWhitespaces?: boolean; + hostDirectives?: { + directive: TestDirective & {isStandalone: true}; + inputs?: string[]; + outputs?: string[]; + }[]; + /** + * Source representation of the directive class' type parameters (e.g. `T extends Foo`). + * Defaults to `['T extends string']`. + */ + typeParameters?: string[]; + /** + * Whether the directive's generic bounds can't be emitted into the type-check file, requiring + * an inline type constructor. Defaults to `false`. + */ + requiresInlineTypeCtor?: boolean; +} + +export interface TestPipe { + type: 'pipe'; + name: string; + pipeName: string; + isStandalone?: boolean; + isGeneric?: boolean; +} + +export type TestDeclaration = TestDirective | TestPipe; + +/** Default config used by `tcb`, matching the one used by the compiler-cli TCB tests. */ +const DEFAULT_CONFIG: TypeCheckingConfig = { + applyTemplateContextGuards: true, + checkTypeOfInputBindings: true, + honorAccessModifiersForInputBindings: false, + strictNullInputBindings: true, + checkTypeOfAttributes: true, + checkTypeOfDomBindings: false, + checkTypeOfOutputEvents: true, + checkTypeOfAnimationEvents: true, + checkTypeOfDomEvents: true, + checkUnclaimedEventNames: false, + checkTypeOfDomReferences: true, + checkTypeOfNonDomReferences: true, + checkTypeOfPipes: true, + checkTemplateBodies: true, + checkControlFlowBodies: true, + alwaysCheckSchemaInTemplateBodies: true, + controlFlowPreventingContentProjection: 'warning', + unusedStandaloneImports: 'warning', + strictSafeNavigationTypes: true, + useContextGenericType: true, + strictLiteralTypes: true, + enableTemplateTypeChecker: false, + useInlineTypeConstructors: true, + allowSignalsInTwoWayBindings: true, + allowDomEventAssertion: true, + checkUnknownElements: true, + checkTypeOfNgTemplateBindings: true, +}; + +export const ALL_ENABLED_CONFIG: Readonly = { + ...DEFAULT_CONFIG, + honorAccessModifiersForInputBindings: true, +}; + +/** + * Generates a type-check block for the given template and returns it as a single line of code. + * + * @param template Template to generate the type-check block for. + * @param declarations Directives and pipes available to the template. + * @param config Overrides for the type-checking config. + * @param options Rendering options. With `emitSpans`, the source span comments are preserved. + * @param templateParserOptions Options passed through to the template parser. + * @param foreignComponents Names of foreign components available in the template scope. + */ +export function tcb( + template: string, + declarations: TestDeclaration[] = [], + config?: Partial, + options?: {emitSpans?: boolean}, + templateParserOptions?: ParseTemplateOptions, + foreignComponents: string[] = [], +): string { + const fullConfig: TypeCheckingConfig = {...DEFAULT_CONFIG, ...config}; + const {nodes, errors} = parseTemplate(template, 'synthetic.html', templateParserOptions); + + if (errors !== null) { + throw new Error('Template parse errors: \n' + errors.join('\n')); + } + + const {matcher, pipes, foreignMatcher} = prepareDeclarations( + declarations, + fullConfig, + foreignComponents, + ); + const boundTarget = new R3TargetBinder(matcher, foreignMatcher).bind({ + template: nodes, + }); + + // Only pipes that are actually used by the template are passed to the generator. + const usedPipes = new Map(); + for (const name of boundTarget.getUsedPipes()) { + const pipe = pipes.get(name); + if (pipe !== undefined) { + usedPipes.set(name, pipe); + } + } + + const meta: TcbTypeCheckBlockMetadata = { + id: 'tcb' as TypeCheckId, + boundTarget, + pipes: usedPipes, + schemas: [], + isStandalone: false, + preserveWhitespaces: false, + }; + + const typeParameters = toTcbTypeParameters(DEFAULT_TYPE_PARAMETERS); + const component: TcbComponentMetadata = { + ref: createReference(COMPONENT_NAME), + typeParameters, + typeArguments: fullConfig.useContextGenericType + ? typeParameters.map((param) => param.name) + : typeParameters.map(() => 'any'), + }; + + const env = new TestTcbEnvironment(fullConfig); + env.addTypeCheckBlock( + generateTypeCheckBlock( + env, + component, + '_tcb1', + meta, + new NoopSchemaChecker(), + new NoopOobRecorder(), + ), + ); + + let rendered = env.render(); + + if (!options?.emitSpans) { + rendered = rendered.replace(/\s+\/\*[\s\S]*?\*\//g, ''); + } + + return rendered.replace(/\s+/g, ' '); +} + +/** + * Minimal, TypeScript-free `TcbEnvironment` that mimics a type-check file: shared declarations + * (pipe instances and type constructors) are hoisted to the top of the file and every symbol + * from another module is referenced through a namespace import (`i0`, `i1`, ...), allocated in the + * order in which modules are first requested. + */ +class TestTcbEnvironment implements TcbEnvironment { + private readonly imports = new Map(); + private readonly typeCtors = new Map(); + private readonly typeCtorStatements: TcbExpr[] = []; + private readonly pipeInsts = new Map(); + private readonly pipeInstStatements: TcbExpr[] = []; + private readonly tcbStatements: string[] = []; + private nextTypeCtorId = 1; + private nextPipeInstId = 1; + + constructor(readonly config: TypeCheckingConfig) {} + + referenceTcbValue(ref: TcbReferenceMetadata): TcbExpr { + if (ref.unexportedDiagnostic !== null) { + throw new Error(`Unable to import symbol ${ref.name}: ${ref.unexportedDiagnostic}`); + } + if (ref.isLocal || ref.moduleName === null) { + return new TcbExpr(ref.name); + } + return this.referenceExternalSymbol(ref.moduleName, ref.name); + } + + referenceExternalSymbol(moduleName: string, name: string): TcbExpr { + let alias = this.imports.get(moduleName); + if (alias === undefined) { + alias = `i${this.imports.size}`; + this.imports.set(moduleName, alias); + } + return new TcbExpr(`${alias}.${name}`); + } + + typeCtorFor(dir: TcbDirectiveMetadata): TcbExpr { + const existing = this.typeCtors.get(dir.ref.key); + if (existing !== undefined) { + return new TcbExpr(existing); + } + + if (dir.requiresInlineTypeCtor) { + // The type constructor is declared inline in the directive class. + const expr = `${this.referenceTcbValue(dir.ref).print()}.ngTypeCtor`; + this.typeCtors.set(dir.ref.key, expr); + return new TcbExpr(expr); + } + + const fnName = `_ctor${this.nextTypeCtorId++}`; + const meta: TypeCtorMetadata = { + fnName, + body: true, + fields: {inputs: dir.inputs}, + coercedInputFields: dir.coercedInputFields, + }; + this.typeCtorStatements.push( + generateTypeCtorDeclaration( + this, + meta, + this.referenceTcbValue(dir.ref), + dir.typeParameters ?? undefined, + ), + ); + this.typeCtors.set(dir.ref.key, fnName); + return new TcbExpr(fnName); + } + + pipeInst(pipe: TcbPipeMetadata): TcbExpr { + const existing = this.pipeInsts.get(pipe.ref.key); + if (existing !== undefined) { + return new TcbExpr(existing); + } + + const pipeType = this.referenceTcbValue(pipe.ref); + const id = `_pipe${this.nextPipeInstId++}`; + this.pipeInsts.set(pipe.ref.key, id); + this.pipeInstStatements.push(new TcbExpr(`var ${id} = null! as ${pipeType.print()}`)); + return new TcbExpr(id); + } + + getPreludeStatements(): TcbExpr[] { + // Like a type-check file, declarations are hoisted to the file level instead. + return []; + } + + addTypeCheckBlock(code: string): void { + this.tcbStatements.push(code); + } + + render(): string { + let source = ''; + for (const [moduleName, alias] of this.imports) { + source += `import * as ${alias} from '${moduleName}';\n`; + } + source += '\n'; + for (const expr of [...this.pipeInstStatements, ...this.typeCtorStatements]) { + source += `${expr.print()};\n`; + } + source += '\n'; + for (const stmt of this.tcbStatements) { + source += stmt + '\n'; + } + return source + '\nexport const IS_A_MODULE = true;\n'; + } +} + +/** Generates a declared (non-inline) type constructor for a directive. */ +function generateTypeCtorDeclaration( + env: TcbEnvironment, + meta: TypeCtorMetadata, + nodeTypeRef: TcbExpr, + typeParams: TcbTypeParameter[] | undefined, +): TcbExpr { + const typeRef = nodeTypeRef.print(); + const typeRefWithGenerics = + typeParams === undefined || typeParams.length === 0 + ? typeRef + : `${typeRef}<${typeParams.map((param) => param.name).join(', ')}>`; + const typeParamsWithDefaults = + typeParams === undefined || typeParams.length === 0 + ? '' + : `<${typeParams.map((param) => param.representationWithDefault).join(', ')}>`; + + const plainKeys: string[] = []; + const coercedKeys: string[] = []; + const signalInputKeys: string[] = []; + + for (const {classPropertyName, transformType, isSignal} of meta.fields.inputs) { + if (isSignal) { + signalInputKeys.push(TcbExpr.quoteAndEscape(classPropertyName)); + } else if (!meta.coercedInputFields.has(classPropertyName)) { + plainKeys.push(TcbExpr.quoteAndEscape(classPropertyName)); + } else { + const propName = `ngAcceptInputType_${classPropertyName}`; + const isUnsafe = isUnsafeObjectKey(classPropertyName); + const access = isUnsafe ? `[${TcbExpr.quoteAndEscape(propName)}]` : `.${propName}`; + const coercionType = transformType ?? `typeof ${typeRef}${access}`; + const key = isUnsafe ? TcbExpr.quoteAndEscape(classPropertyName) : classPropertyName; + coercedKeys.push(`${key}: ${coercionType}`); + } + } + + let initType: string | null = null; + if (plainKeys.length > 0) { + initType = `Pick<${typeRefWithGenerics}, ${plainKeys.join(' | ')}>`; + } + if (coercedKeys.length > 0) { + const coercedLiteral = `{\n${coercedKeys.map((key) => `${key};\n`).join('')}}`; + initType = initType !== null ? `${initType} & ${coercedLiteral}` : coercedLiteral; + } + if (signalInputKeys.length > 0) { + const unwrapRef = env.referenceExternalSymbol( + R3Identifiers.UnwrapDirectiveSignalInputs.moduleName, + R3Identifiers.UnwrapDirectiveSignalInputs.name, + ); + const unwrapExpr = `${unwrapRef.print()}<${typeRefWithGenerics}, ${signalInputKeys.join(' | ')}>`; + initType = initType !== null ? `${initType} & ${unwrapExpr}` : unwrapExpr; + } + + const initParam = `init: ${initType ?? '{}'}`; + const source = meta.body + ? `const ${meta.fnName}: ${typeParamsWithDefaults}(${initParam}) => ${typeRefWithGenerics} = null!` + : `declare function ${meta.fnName}${typeParamsWithDefaults}(${initParam}): ${typeRefWithGenerics}`; + return new TcbExpr(source); +} + +function createReference(name: string): TcbReferenceMetadata { + return { + name, + moduleName: SYNTHETIC_MODULE, + isLocal: false, + unexportedDiagnostic: null, + key: `${SYNTHETIC_FILE}#${name}` as TcbReferenceKey, + nodeFilePath: SYNTHETIC_FILE, + }; +} + +function toTcbTypeParameters(representations: string[]): TcbTypeParameter[] { + return representations.map((representation) => ({ + name: representation.trim().split(/\s+/)[0], + representation, + representationWithDefault: representation.includes('=') + ? representation + : `${representation} = any`, + })); +} + +function prepareDeclarations( + declarations: TestDeclaration[], + config: TypeCheckingConfig, + foreignComponentNames: string[], +) { + const directives: TcbDirectiveMetadata[] = []; + const hostDirectives = new Map(); + const pipes = new Map(); + + for (const decl of declarations) { + if (decl.type === 'directive') { + const meta = toDirectiveMetadata(decl); + directives.push(meta); + hostDirectives.set(meta, resolveHostDirectives(decl)); + } else { + pipes.set(decl.pipeName, { + name: decl.pipeName, + ref: createReference(decl.name), + isExplicitlyDeferred: false, + deferredBlocks: null, + }); + } + } + + const foreignRegistry = new Map(); + for (const name of foreignComponentNames) { + foreignRegistry.set(name, [{name}]); + } + const foreignMatcher = new SelectorlessMatcher(foreignRegistry); + + const matcher = new SelectorMatcher(); + for (const meta of directives) { + matcher.addSelectables(CssSelector.parse(meta.selector || ''), [ + ...hostDirectives.get(meta)!, + meta, + ]); + } + return {matcher, pipes, foreignMatcher}; +} + +function toDirectiveMetadata( + decl: TestDirective, + matchSource = MatchSource.Selector, +): TcbDirectiveMetadata { + const inputs: {[fieldName: string]: TcbInputMapping} = {}; + for (const [fieldName, input] of Object.entries(decl.inputs ?? {})) { + inputs[fieldName] = + typeof input === 'string' + ? { + classPropertyName: fieldName, + bindingPropertyName: input, + required: false, + isSignal: false, + } + : {...input}; + } + + return { + ref: createReference(decl.name), + name: decl.name, + selector: decl.selector || null, + exportAs: decl.exportAs || null, + isComponent: decl.isComponent ?? false, + isGeneric: decl.isGeneric ?? false, + isStructural: decl.isStructural ?? false, + isStandalone: decl.isStandalone ?? false, + isExplicitlyDeferred: false, + deferredBlocks: null, + preserveWhitespaces: decl.preserveWhitespaces ?? false, + matchSource, + typeParameters: toTcbTypeParameters(decl.typeParameters ?? DEFAULT_TYPE_PARAMETERS), + inputs: ClassPropertyMapping.fromMappedObject(inputs), + outputs: ClassPropertyMapping.fromMappedObject(decl.outputs ?? {}), + requiresInlineTypeCtor: decl.requiresInlineTypeCtor ?? false, + ngTemplateGuards: decl.ngTemplateGuards ?? [], + hasNgTemplateContextGuard: decl.hasNgTemplateContextGuard ?? false, + hasNgFieldDirective: decl.hasNgFieldDirective ?? false, + coercedInputFields: new Set(decl.coercedInputFields ?? []), + restrictedInputFields: new Set(decl.restrictedInputFields ?? []), + stringLiteralInputFields: new Set(decl.stringLiteralInputFields ?? []), + undeclaredInputFields: new Set(decl.undeclaredInputFields ?? []), + publicMethods: new Set(decl.publicMethods ?? []), + ngContentSelectors: decl.ngContentSelectors || null, + animationTriggerNames: null, + }; +} + +/** + * Flattens the host directives of a directive into the list of matches they contribute, with only + * the inputs and outputs that the host exposes (under the aliases the host exposes them as). + */ +function resolveHostDirectives( + decl: TestDirective, + results: TcbDirectiveMetadata[] = [], +): TcbDirectiveMetadata[] { + for (const hostDir of decl.hostDirectives ?? []) { + resolveHostDirectives(hostDir.directive, results); + + const meta = toDirectiveMetadata(hostDir.directive, MatchSource.HostDirective); + const exposedInputs = parseMappingArray(hostDir.inputs ?? []); + const exposedOutputs = parseMappingArray(hostDir.outputs ?? []); + const inputs: {[fieldName: string]: TcbInputMapping} = {}; + const outputs: {[fieldName: string]: string} = {}; + + for (const [publicName, alias] of Object.entries(exposedInputs)) { + for (const input of meta.inputs.getByBindingPropertyName(publicName) ?? []) { + inputs[input.classPropertyName] = {...input, bindingPropertyName: alias}; + } + } + for (const [publicName, alias] of Object.entries(exposedOutputs)) { + for (const output of meta.outputs.getByBindingPropertyName(publicName) ?? []) { + outputs[output.classPropertyName] = alias; + } + } + + results.push({ + ...meta, + inputs: ClassPropertyMapping.fromMappedObject(inputs), + outputs: ClassPropertyMapping.fromMappedObject(outputs), + }); + } + return results; +} + +/** Parses `['field', 'field: alias']` style mappings into a `{field: alias}` record. */ +function parseMappingArray(values: string[]): {[field: string]: string} { + const result: {[field: string]: string} = {}; + for (const value of values) { + const [field, alias] = value.split(':', 2).map((part) => part.trim()); + result[field] = alias || field; + } + return result; +} + +class NoopSchemaChecker implements DomSchemaChecker { + get diagnostics(): ReadonlyArray { + return []; + } + checkElement(): void {} + checkTemplateElementProperty(): void {} + checkTemplateElementEvent(): void {} + checkHostElementProperty(): void {} +} + +class NoopOobRecorder implements OutOfBandDiagnosticRecorder { + get diagnostics(): ReadonlyArray { + return []; + } + missingReferenceTarget(): void {} + missingPipe(): void {} + deferredPipeUsedEagerly(): void {} + deferredComponentUsedEagerly(): void {} + duplicateTemplateVar(): void {} + suboptimalTypeInference(): void {} + splitTwoWayBinding(): void {} + missingRequiredInputs(): void {} + illegalForLoopTrackAccess(): void {} + inaccessibleDeferredTriggerElement(): void {} + controlFlowPreventingContentProjection(): void {} + illegalWriteToLetDeclaration(): void {} + letUsedBeforeDefinition(): void {} + conflictingDeclaration(): void {} + missingNamedTemplateDependency(): void {} + incorrectTemplateDependencyType(): void {} + unclaimedDirectiveBinding(): void {} + deferImplicitTriggerMissingPlaceholder(): void {} + deferImplicitTriggerInvalidPlaceholder(): void {} + formFieldUnsupportedBinding(): void {} + multipleMatchingComponents(): void {} + conflictingHostDirectiveBinding(): void {} +} diff --git a/packages/compiler/test/util_spec.ts b/packages/compiler/test/util_spec.ts index d432e6ccfbbf..29b2b0cb75a6 100644 --- a/packages/compiler/test/util_spec.ts +++ b/packages/compiler/test/util_spec.ts @@ -6,7 +6,15 @@ * found in the LICENSE file at https://angular.dev/license */ -import {escapeRegExp, splitAtColon, stringify, utf8Encode} from '../src/util'; +import {ChangeDetectionStrategy} from '@angular/compiler'; +import { + escapeRegExp, + getJitChangeDetectionDefaultForVersion, + getJitStandaloneDefaultForVersion, + splitAtColon, + stringify, + utf8Encode, +} from '../src/util'; describe('util', () => { describe('splitAtColon', () => { @@ -86,4 +94,41 @@ describe('util', () => { expect(stringify(Object.create(null))).toEqual('object'); }); }); + + describe('getJitStandaloneDefaultForVersion', () => { + it('should return true for 0.0.0-PLACEHOLDER (starts with 0.)', () => { + expect(getJitStandaloneDefaultForVersion('0.0.0-PLACEHOLDER')).toBe(true); + }); + + it('should return false for versions 1 through 18', () => { + expect(getJitStandaloneDefaultForVersion('14.2.0')).toBe(false); + expect(getJitStandaloneDefaultForVersion('18.0.0')).toBe(false); + expect(getJitStandaloneDefaultForVersion('18.2.0')).toBe(false); + }); + + it('should return true for versions 19 and above', () => { + expect(getJitStandaloneDefaultForVersion('19.0.0')).toBe(true); + expect(getJitStandaloneDefaultForVersion('20.0.0')).toBe(true); + }); + }); + + describe('getJitChangeDetectionDefaultForVersion', () => { + it('should return OnPush for 0.0.0-PLACEHOLDER (starts with 0.)', () => { + expect(getJitChangeDetectionDefaultForVersion('0.0.0-PLACEHOLDER')).toBe( + ChangeDetectionStrategy.OnPush, + ); + }); + + it('should return Eager for versions 1 through 21', () => { + expect(getJitChangeDetectionDefaultForVersion('14.2.0')).toBe(ChangeDetectionStrategy.Eager); + expect(getJitChangeDetectionDefaultForVersion('20.0.0')).toBe(ChangeDetectionStrategy.Eager); + expect(getJitChangeDetectionDefaultForVersion('21.0.0')).toBe(ChangeDetectionStrategy.Eager); + expect(getJitChangeDetectionDefaultForVersion('21.2.0')).toBe(ChangeDetectionStrategy.Eager); + }); + + it('should return OnPush for versions 22 and above', () => { + expect(getJitChangeDetectionDefaultForVersion('22.0.0')).toBe(ChangeDetectionStrategy.OnPush); + expect(getJitChangeDetectionDefaultForVersion('23.0.0')).toBe(ChangeDetectionStrategy.OnPush); + }); + }); }); diff --git a/packages/core/BUILD.bazel b/packages/core/BUILD.bazel index 4eeeaf056630..8fcb65699ca2 100644 --- a/packages/core/BUILD.bazel +++ b/packages/core/BUILD.bazel @@ -1,6 +1,5 @@ load("@bazel_lib//lib:write_source_files.bzl", "write_source_file") load("@npm//:defs.bzl", "npm_link_all_packages") -load("//adev/shared-docs/pipeline/api-gen:generate_api_docs.bzl", "generate_api_docs") load("//packages/common/locales:index.bzl", "generate_base_locale_file") load("//tools:defaults.bzl", "api_golden_test", "api_golden_test_npm_package", "ng_package", "ng_project", "ts_config", "tsec_test") @@ -50,7 +49,7 @@ ng_project( "//packages/core/src/interface", "//packages/core/src/reflection", "//packages/core/src/util", - "//packages/core/third_party/@mcp-b/webmcp-types", + "//packages/core/third_party/webmcp-types", ], ) @@ -67,18 +66,18 @@ ng_package( "//packages/core/resources", ], externals = [ - # Don't bundle vendored `@mcp-b/webmcp-types` dependency. - "../third_party/@mcp-b/webmcp-types", - "../../third_party/@mcp-b/webmcp-types", + # Don't bundle vendored `webmcp-types` dependency. + "../third_party/webmcp-types", + "../../third_party/webmcp-types", ], nested_packages = [ "//packages/core/schematics:npm_package", - "//packages/core/third_party/@mcp-b/webmcp-types", + "//packages/core/third_party/webmcp-types", ], package = "@angular/core", substitutions = { - # Link `@mcp-b/webmcp-types` to the vendored package. - "\\./third_party/@mcp-b/webmcp-types": "../third_party/@mcp-b/webmcp-types/index.js", + # Link `webmcp-types` to the vendored package. + "\\./third_party/webmcp-types": "../third_party/webmcp-types/index.js", }, tags = [ "release-with-framework", @@ -146,20 +145,6 @@ filegroup( ], ) -generate_api_docs( - name = "core_docs", - srcs = [ - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_name = "@angular/core", - private_modules = [ - "//packages/core/primitives/di", - "core/primitives/signals", - "core/primitives/event-dispatch", - ], -) - genrule( name = "event_dispatch_contract_binary", srcs = ["//packages/core/primitives/event-dispatch:contract_bundle_min.js"], diff --git a/packages/core/global/BUILD.bazel b/packages/core/global/BUILD.bazel index d050fcf747a2..0a24a960d6c6 100644 --- a/packages/core/global/BUILD.bazel +++ b/packages/core/global/BUILD.bazel @@ -1,5 +1,3 @@ -load("//tools:defaults.bzl", "generate_api_docs") - package(default_visibility = ["//visibility:public"]) filegroup( @@ -8,14 +6,3 @@ filegroup( "index.ts", ], ) - -generate_api_docs( - name = "core_global_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_label = "window.ng globals", - module_name = "@angular/core/globals", -) diff --git a/packages/core/package.json b/packages/core/package.json index dc1358b2d38d..617720b7af14 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -19,8 +19,7 @@ "tslib": "^2.3.0" }, "devDependencies": { - "@mcp-b/webmcp-polyfill": "^4.0.0", - "@mcp-b/webmcp-types": "^4.0.0" + "webmcp-types": "0.1.10" }, "peerDependencies": { "@angular/compiler": "0.0.0-PLACEHOLDER", diff --git a/packages/core/primitives/defer/src/triggers.ts b/packages/core/primitives/defer/src/triggers.ts index de2fd503ba63..1e8e30a5c183 100644 --- a/packages/core/primitives/defer/src/triggers.ts +++ b/packages/core/primitives/defer/src/triggers.ts @@ -216,5 +216,6 @@ function getIntersectionObserverKey(options: IntersectionObserverInit | undefine return ''; } - return `${options.rootMargin}/${typeof options.threshold === 'number' ? options.threshold : options.threshold?.join('\n')}`; + // TODO: Remove the cast once G3 uses the TypeScript 6.0 DOM types. + return `${options.rootMargin}/${(options as any).scrollMargin}/${typeof options.threshold === 'number' ? options.threshold : options.threshold?.join('\n')}`; } diff --git a/packages/core/primitives/di/src/injector.ts b/packages/core/primitives/di/src/injector.ts index 1f730507a204..7fca8e56196a 100644 --- a/packages/core/primitives/di/src/injector.ts +++ b/packages/core/primitives/di/src/injector.ts @@ -18,18 +18,22 @@ export interface Injector { * - `undefined`: it is an error to call `inject` * - `null`: `inject` can be called but there is no injector (limp-mode). * - Injector instance: Use the injector for resolution. + * + * Safari 16-17 have a JIT bug where assigning to a module-level let/var can + * sometimes fail to write the value. We wrap in an array to keep a constant + * variable with a mutable internal value. */ -let _currentInjector: Injector | undefined | null = undefined; +const _currentInjector: [Injector | undefined | null] = [undefined]; export function getCurrentInjector(): Injector | undefined | null { - return _currentInjector; + return _currentInjector[0]; } export function setCurrentInjector( injector: Injector | null | undefined, ): Injector | undefined | null { - const former = _currentInjector; - _currentInjector = injector; + const former = _currentInjector[0]; + _currentInjector[0] = injector; return former; } diff --git a/packages/core/primitives/dom-navigation/src/navigation_types.ts b/packages/core/primitives/dom-navigation/src/navigation_types.ts index 8ff38ff84cc3..599287802834 100644 --- a/packages/core/primitives/dom-navigation/src/navigation_types.ts +++ b/packages/core/primitives/dom-navigation/src/navigation_types.ts @@ -146,11 +146,13 @@ export declare class NavigateEvent extends Event { readonly canIntercept: boolean; readonly userInitiated: boolean; readonly hashChange: boolean; + readonly hasUAVisualTransition: boolean; readonly destination: NavigationDestination; readonly signal: AbortSignal; readonly formData: FormData | null; readonly downloadRequest: string | null; readonly info?: unknown; + readonly sourceElement: Element | null; intercept(options?: NavigationInterceptOptions): void; scroll(): void; @@ -161,15 +163,28 @@ export interface NavigateEventInit extends EventInit { canIntercept?: boolean; userInitiated?: boolean; hashChange?: boolean; + hasUAVisualTransition?: boolean; destination: NavigationDestination; signal: AbortSignal; formData?: FormData | null; downloadRequest?: string | null; info?: unknown; + sourceElement?: Element | null; +} + +export type NavigationInterceptHandler = () => PromiseLike | void; +export type NavigationPrecommitHandler = ( + controller: NavigationPrecommitController, +) => PromiseLike | void; + +export interface NavigationPrecommitController { + redirect: (url: string, options?: NavigationNavigateOptions) => void; + addHandler: (handler: NavigationInterceptHandler) => void; } export interface NavigationInterceptOptions { - handler?: () => Promise; + precommitHandler?: NavigationPrecommitHandler; + handler?: NavigationInterceptHandler; focusReset?: 'after-transition' | 'manual'; scroll?: 'after-transition' | 'manual'; } diff --git a/packages/core/primitives/dom-navigation/testing/fake_navigation.ts b/packages/core/primitives/dom-navigation/testing/fake_navigation.ts index d7d7276ed9d9..f8f37d97482b 100644 --- a/packages/core/primitives/dom-navigation/testing/fake_navigation.ts +++ b/packages/core/primitives/dom-navigation/testing/fake_navigation.ts @@ -19,8 +19,11 @@ import { NavigationResult, NavigationHistoryEntry, NavigationInterceptOptions, + NavigationInterceptHandler, + NavigationPrecommitHandler, NavigationDestination, Navigation, + NavigationPrecommitController, } from '../src/navigation_types'; // 3p-only-end @@ -91,15 +94,26 @@ export class FakeNavigation implements Navigation { /** Whether this fake is disposed. */ private disposed = false; - /** Equivalent to `navigation.currentEntry`. */ + /** + * Equivalent to `navigation.currentEntry`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-currententry + */ get currentEntry(): FakeNavigationHistoryEntry { return this.entriesArr[this.currentEntryIndex]; } + /** + * Equivalent to `navigation.canGoBack`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-cangoback + */ get canGoBack(): boolean { return this.currentEntryIndex > 0; } + /** + * Equivalent to `navigation.canGoForward`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-cangoforward + */ get canGoForward(): boolean { return this.currentEntryIndex < this.entriesArr.length - 1; } @@ -144,7 +158,7 @@ export class FakeNavigation implements Navigation { ): void { if (!this.canSetInitialEntry) { throw new Error( - 'setInitialEntryForTesting can only be called before any ' + 'navigation has occurred', + 'setInitialEntryForTesting can only be called before any navigation has occurred', ); } const currentInitialEntry = this.entriesArr[0]; @@ -171,12 +185,18 @@ export class FakeNavigation implements Navigation { this.synchronousTraversals = synchronousTraversals; } - /** Equivalent to `navigation.entries()`. */ + /** + * Equivalent to `navigation.entries()`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-entries + */ entries(): FakeNavigationHistoryEntry[] { return this.entriesArr.slice(); } - /** Equivalent to `navigation.navigate()`. */ + /** + * Equivalent to `navigation.navigate()`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-navigate + */ navigate(url: string, options?: NavigationNavigateOptions): FakeNavigationResult { const fromUrl = new URL(this.currentEntry.url!); const toUrl = new URL(url, this.currentEntry.url!); @@ -201,9 +221,8 @@ export class FakeNavigation implements Navigation { sameDocument: hashChange, historyState: null, }); - const result = new InternalNavigationResult(this); - const intercepted = this.userAgentNavigate(destination, result, { + return this.performNonTraverseNavigation(destination, { navigationType, cancelable: true, canIntercept: true, @@ -212,14 +231,6 @@ export class FakeNavigation implements Navigation { hashChange, info: options?.info, }); - if (!intercepted) { - this.updateNavigationEntriesForSameDocumentNavigation(this.navigateEvent!); - } - - return { - committed: result.committed, - finished: result.finished, - }; } /** Equivalent to `history.pushState()`. */ @@ -249,9 +260,8 @@ export class FakeNavigation implements Navigation { historyState: data, state: undefined, // No Navigation API state directly from history.pushState }); - const result = new InternalNavigationResult(this); - const intercepted = this.userAgentNavigate(destination, result, { + this.performNonTraverseNavigation(destination, { navigationType, cancelable: true, canIntercept: true, @@ -259,26 +269,17 @@ export class FakeNavigation implements Navigation { userInitiated: false, hashChange, }); - if (intercepted) { - return; - } - this.updateNavigationEntriesForSameDocumentNavigation(this.navigateEvent!); } - /** Equivalent to `navigation.traverseTo()`. */ + /** + * Equivalent to `navigation.traverseTo()`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-traverseto + */ traverseTo(key: string, options?: NavigationOptions): FakeNavigationResult { const fromUrl = new URL(this.currentEntry.url!); const entry = this.findEntry(key); if (!entry) { - const domException = new DOMException('Invalid key', 'InvalidStateError'); - const committed = Promise.reject(domException); - const finished = Promise.reject(domException); - committed.catch(() => {}); - finished.catch(() => {}); - return { - committed, - finished, - }; + return earlyErrorResult(new DOMException('Invalid key', 'InvalidStateError')); } if (entry === this.currentEntry) { return { @@ -295,15 +296,7 @@ export class FakeNavigation implements Navigation { } const hashChange = isHashChange(fromUrl, new URL(entry.url!, this.currentEntry.url!)); - const destination = new FakeNavigationDestination({ - url: entry.url!, - state: entry.getState(), - historyState: entry.getHistoryState(), - key: entry.key, - id: entry.id, - index: entry.index, - sameDocument: entry.sameDocument, - }); + const destination = this.createDestinationFromEntry(entry); this.propsectiveTraversalDestinations.push(entry.index); const result = new InternalNavigationResult(this); this.traversalQueue.set(entry.key, result); @@ -328,35 +321,25 @@ export class FakeNavigation implements Navigation { }; } - /** Equivalent to `navigation.back()`. */ + /** + * Equivalent to `navigation.back()`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-back + */ back(options?: NavigationOptions): FakeNavigationResult { if (this.currentEntryIndex === 0) { - const domException = new DOMException('Cannot go back', 'InvalidStateError'); - const committed = Promise.reject(domException); - const finished = Promise.reject(domException); - committed.catch(() => {}); - finished.catch(() => {}); - return { - committed, - finished, - }; + return earlyErrorResult(new DOMException('Cannot go back', 'InvalidStateError')); } const entry = this.entriesArr[this.currentEntryIndex - 1]; return this.traverseTo(entry.key, options); } - /** Equivalent to `navigation.forward()`. */ + /** + * Equivalent to `navigation.forward()`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-forward + */ forward(options?: NavigationOptions): FakeNavigationResult { if (this.currentEntryIndex === this.entriesArr.length - 1) { - const domException = new DOMException('Cannot go forward', 'InvalidStateError'); - const committed = Promise.reject(domException); - const finished = Promise.reject(domException); - committed.catch(() => {}); - finished.catch(() => {}); - return { - committed, - finished, - }; + return earlyErrorResult(new DOMException('Cannot go forward', 'InvalidStateError')); } const entry = this.entriesArr[this.currentEntryIndex + 1]; return this.traverseTo(entry.key, options); @@ -385,15 +368,7 @@ export class FakeNavigation implements Navigation { const fromUrl = new URL(this.currentEntry.url!); const entry = this.entriesArr[targetIndex]; const hashChange = isHashChange(fromUrl, new URL(entry.url!, this.currentEntry.url!)); - const destination = new FakeNavigationDestination({ - url: entry.url!, - state: entry.getState(), - historyState: entry.getHistoryState(), - key: entry.key, - id: entry.id, - index: entry.index, - sameDocument: entry.sameDocument, - }); + const destination = this.createDestinationFromEntry(entry); const result = new InternalNavigationResult(this); const intercepted = this.userAgentNavigate(destination, result, { navigationType: 'traverse', @@ -409,6 +384,39 @@ export class FakeNavigation implements Navigation { }); } + /** Creates a FakeNavigationDestination matching a given history entry. */ + private createDestinationFromEntry(entry: FakeNavigationHistoryEntry): FakeNavigationDestination { + return new FakeNavigationDestination({ + url: entry.url!, + state: entry.getState(), + historyState: entry.getHistoryState(), + key: entry.key, + id: entry.id, + index: entry.index, + sameDocument: entry.sameDocument, + }); + } + + /** + * Implementation of "performing a non-traverse navigation" from the spec. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-navigate + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-reload + */ + private performNonTraverseNavigation( + destination: FakeNavigationDestination, + options: InternalNavigateOptions, + ): FakeNavigationResult { + const result = new InternalNavigationResult(this); + const intercepted = this.userAgentNavigate(destination, result, options); + if (!intercepted) { + this.updateNavigationEntriesForSameDocumentNavigation(this.navigateEvent!); + } + return { + committed: result.committed, + finished: result.finished, + }; + } + /** Runs a traversal synchronously or asynchronously */ private runTraversal(traversal: () => void) { if (this.synchronousTraversals) { @@ -479,6 +487,7 @@ export class FakeNavigation implements Navigation { /** * Implementation for all navigations and traversals. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigate-event-firing * @returns true if the event was intercepted, otherwise false */ private userAgentNavigate( @@ -507,6 +516,8 @@ export class FakeNavigation implements Navigation { hashChange: options.hashChange, destination, info: options.info, + hasUAVisualTransition: options.hasUAVisualTransition, + sourceElement: options.sourceElement, sameDocument: destination.sameDocument, result, }); @@ -515,8 +526,8 @@ export class FakeNavigation implements Navigation { /** * Implementation for a push or replace navigation. - * https://whatpr.org/html/10919/browsing-the-web.html#url-and-history-update-steps - * https://whatpr.org/html/10919/nav-history-apis.html#update-the-navigation-api-entries-for-a-same-document-navigation + * https://html.spec.whatwg.org/multipage/browsing-the-web.html#url-and-history-update-steps + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#update-the-navigation-api-entries-for-a-same-document-navigation * @internal */ urlAndHistoryUpdateSteps(navigateEvent: InternalFakeNavigateEvent) { @@ -526,20 +537,21 @@ export class FakeNavigation implements Navigation { /** * Implementation for a traverse navigation. * - * https://whatpr.org/html/10919/browsing-the-web.html#apply-the-traverse-history-step + * https://html.spec.whatwg.org/multipage/browsing-the-web.html#apply-the-traverse-history-step * ... * > Let updateDocument be an algorithm step which performs update document for history step application given targetEntry's document, targetEntry, changingNavigableContinuation's update-only, scriptHistoryLength, scriptHistoryIndex, navigationType, entriesForNavigationAPI, and previousEntry. * > If targetEntry's document is equal to displayedDocument, then perform updateDocument. - * https://whatpr.org/html/10919/browsing-the-web.html#update-document-for-history-step-application - * which then goes to https://whatpr.org/html/10919/nav-history-apis.html#update-the-navigation-api-entries-for-a-same-document-navigation + * https://html.spec.whatwg.org/multipage/browsing-the-web.html#update-document-for-history-step-application + * which then goes to https://html.spec.whatwg.org/multipage/nav-history-apis.html#update-the-navigation-api-entries-for-a-same-document-navigation * @internal */ userAgentTraverse(navigateEvent: InternalFakeNavigateEvent) { const oldUrl = this.currentEntry.url!; this.updateNavigationEntriesForSameDocumentNavigation(navigateEvent); - // Happens as part of "updating the document" steps https://whatpr.org/html/10919/browsing-the-web.html#updating-the-document + // Happens as part of "updating the document" steps https://html.spec.whatwg.org/multipage/browsing-the-web.html#updating-the-document const popStateEvent = createPopStateEvent({ state: navigateEvent.destination.getHistoryState(), + hasUAVisualTransition: navigateEvent.hasUAVisualTransition, }); this._window.dispatchEvent(popStateEvent); if (navigateEvent.hashChange) { @@ -549,7 +561,7 @@ export class FakeNavigation implements Navigation { } /** - * https://whatpr.org/html/10919/nav-history-apis.html#update-the-navigation-api-entries-for-a-same-document-navigation + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#update-the-navigation-api-entries-for-a-same-document-navigation * @internal */ updateNavigationEntriesForSameDocumentNavigation({ @@ -586,6 +598,8 @@ export class FakeNavigation implements Navigation { historyState: destination.getHistoryState(), }); this.entriesArr[this.currentEntryIndex] = newNHE; + } else if (navigationType === 'reload') { + oldCurrentNHE.setState(destination.getState()); } result.committedResolve(this.currentEntry); const currentEntryChangeEvent = createFakeNavigationCurrentEntryChangeEvent({ @@ -606,54 +620,79 @@ export class FakeNavigation implements Navigation { return undefined; } + private _onnavigate: ((this: Navigation, ev: NavigateEvent) => any) | null = null; + /** + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#handler-navigation-onnavigate + */ + // tslint:disable-next-line:no-any + get onnavigate(): ((this: Navigation, ev: NavigateEvent) => any) | null { + return this._onnavigate; + } set onnavigate( // tslint:disable-next-line:no-any - _handler: ((this: Navigation, ev: NavigateEvent) => any) | null, + handler: ((this: Navigation, ev: NavigateEvent) => any) | null, ) { - throw new Error('unimplemented'); + this._onnavigate = setEventHandler(this, 'navigate', this._onnavigate, handler); } - // tslint:disable-next-line:no-any - get onnavigate(): ((this: Navigation, ev: NavigateEvent) => any) | null { - throw new Error('unimplemented'); + private _oncurrententrychange: + ((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any) | null = null; + /** + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#handler-navigation-oncurrententrychange + */ + get oncurrententrychange(): + | // tslint:disable-next-line:no-any + ((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any) + | null { + return this._oncurrententrychange; } - set oncurrententrychange( - _handler: - // tslint:disable-next-line:no-any - ((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any) | null, + handler: + | // tslint:disable-next-line:no-any + ((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any) + | null, ) { - throw new Error('unimplemented'); + this._oncurrententrychange = setEventHandler( + this, + 'currententrychange', + this._oncurrententrychange, + handler, + ); } - get oncurrententrychange(): - // tslint:disable-next-line:no-any - ((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any) | null { - throw new Error('unimplemented'); + private _onnavigatesuccess: ((this: Navigation, ev: Event) => any) | null = null; + /** + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#handler-navigation-onnavigatesuccess + */ + // tslint:disable-next-line:no-any + get onnavigatesuccess(): ((this: Navigation, ev: Event) => any) | null { + return this._onnavigatesuccess; } - set onnavigatesuccess( // tslint:disable-next-line:no-any - _handler: ((this: Navigation, ev: Event) => any) | null, + handler: ((this: Navigation, ev: Event) => any) | null, ) { - throw new Error('unimplemented'); + this._onnavigatesuccess = setEventHandler( + this, + 'navigatesuccess', + this._onnavigatesuccess, + handler, + ); } + private _onnavigateerror: ((this: Navigation, ev: ErrorEvent) => any) | null = null; + /** + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#handler-navigation-onnavigateerror + */ // tslint:disable-next-line:no-any - get onnavigatesuccess(): ((this: Navigation, ev: Event) => any) | null { - throw new Error('unimplemented'); + get onnavigateerror(): ((this: Navigation, ev: ErrorEvent) => any) | null { + return this._onnavigateerror; } - set onnavigateerror( // tslint:disable-next-line:no-any - _handler: ((this: Navigation, ev: ErrorEvent) => any) | null, + handler: ((this: Navigation, ev: ErrorEvent) => any) | null, ) { - throw new Error('unimplemented'); - } - - // tslint:disable-next-line:no-any - get onnavigateerror(): ((this: Navigation, ev: ErrorEvent) => any) | null { - throw new Error('unimplemented'); + this._onnavigateerror = setEventHandler(this, 'navigateerror', this._onnavigateerror, handler); } private _transition: NavigationTransition | null = null; @@ -665,12 +704,57 @@ export class FakeNavigation implements Navigation { return this._transition; } - updateCurrentEntry(_options: NavigationUpdateCurrentEntryOptions): void { - throw new Error('unimplemented'); + /** + * Equivalent to `navigation.updateCurrentEntry()`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-updatecurrententry + */ + updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void { + const current = this.currentEntry; + if (!current) { + throw new DOMException( + 'Cannot update current entry when current is null', + 'InvalidStateError', + ); + } + current.setState(cloneState(options.state)); + const currentEntryChangeEvent = createFakeNavigationCurrentEntryChangeEvent({ + from: current, + navigationType: null, + }); + this.eventTarget.dispatchEvent(currentEntryChangeEvent); } - reload(_options?: NavigationReloadOptions): NavigationResult { - throw new Error('unimplemented'); + /** + * Equivalent to `navigation.reload()`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-reload + */ + reload(options?: NavigationReloadOptions): FakeNavigationResult { + const current = this.currentEntry; + if (!current) { + return earlyErrorResult( + new DOMException('Cannot reload when currentEntry is null', 'InvalidStateError'), + ); + } + + const state = options && 'state' in options ? options.state : current.getState(); + const destination = new FakeNavigationDestination({ + url: current.url!, + state, + historyState: current.getHistoryState(), + key: '', + id: '', + index: -1, + sameDocument: current.sameDocument, + }); + + return this.performNonTraverseNavigation(destination, { + navigationType: 'reload', + cancelable: true, + canIntercept: true, + userInitiated: false, + hashChange: false, + info: options?.info, + }); } } @@ -685,6 +769,7 @@ interface FakeNavigationResult extends NavigationResult { /** * Fake equivalent of `NavigationHistoryEntry`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-navigationhistoryentry-interface */ export class FakeNavigationHistoryEntry implements NavigationHistoryEntry { readonly sameDocument: boolean; @@ -692,11 +777,23 @@ export class FakeNavigationHistoryEntry implements NavigationHistoryEntry { readonly id: string; readonly key: string; readonly index: number; - private readonly state: unknown; + private state: unknown; private readonly historyState: unknown; + private _ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null = null; + /** + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationhistoryentry-ondispose + */ // tslint:disable-next-line:no-any - ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null = null; + get ondispose(): ((this: NavigationHistoryEntry, ev: Event) => any) | null { + return this._ondispose; + } + set ondispose( + // tslint:disable-next-line:no-any + handler: ((this: NavigationHistoryEntry, ev: Event) => any) | null, + ) { + this._ondispose = setEventHandler(this, 'dispose', this._ondispose, handler); + } constructor( private eventTarget: EventTarget, @@ -725,16 +822,20 @@ export class FakeNavigationHistoryEntry implements NavigationHistoryEntry { this.historyState = historyState; } + /** + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationhistoryentry-getstate + */ getState(): unknown { - // Budget copy. - return this.state ? (JSON.parse(JSON.stringify(this.state)) as unknown) : this.state; + return cloneState(this.state); + } + + /** @internal */ + setState(state: unknown) { + this.state = state; } getHistoryState(): unknown { - // Budget copy. - return this.historyState - ? (JSON.parse(JSON.stringify(this.historyState)) as unknown) - : this.historyState; + return cloneState(this.historyState); } addEventListener( @@ -757,34 +858,23 @@ export class FakeNavigationHistoryEntry implements NavigationHistoryEntry { return this.eventTarget.dispatchEvent(event); } - /** internal */ + /** + * internal + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationhistoryentry-ondispose + */ dispose() { - const disposeEvent = new Event('disposed'); + const disposeEvent = new Event('dispose'); this.dispatchEvent(disposeEvent); // release current listeners this.eventTarget = null!; } } -/** `NavigationInterceptOptions` with experimental commit option. */ -export interface ExperimentalNavigationInterceptOptions extends NavigationInterceptOptions { - precommitHandler?: (controller: NavigationPrecommitController) => Promise; -} - -export interface NavigationPrecommitController { - redirect: (url: string, options?: NavigationNavigateOptions) => void; -} - -export interface ExperimentalNavigateEvent extends NavigateEvent { - intercept(options?: ExperimentalNavigationInterceptOptions): void; - - precommitHandler?: () => Promise; -} - /** * Fake equivalent of `NavigateEvent`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-navigateevent-interface */ -export interface FakeNavigateEvent extends ExperimentalNavigateEvent { +export interface FakeNavigateEvent extends NavigateEvent { readonly destination: FakeNavigationDestination; } @@ -810,9 +900,11 @@ function dispatchNavigateEvent({ canIntercept, userInitiated, hashChange, + hasUAVisualTransition, navigationType, destination, info, + sourceElement = null, sameDocument, result, }: { @@ -820,9 +912,11 @@ function dispatchNavigateEvent({ canIntercept: boolean; userInitiated: boolean; hashChange: boolean; + hasUAVisualTransition?: boolean; navigationType: NavigationType; destination: FakeNavigationDestination; info: unknown; + sourceElement?: Element | null; sameDocument: boolean; result: InternalNavigationResult; }) { @@ -838,9 +932,13 @@ function dispatchNavigateEvent({ event.canIntercept = canIntercept; event.userInitiated = userInitiated; event.hashChange = hashChange; + if (hasUAVisualTransition) { + event.hasUAVisualTransition = true; + } event.signal = eventAbortController.signal; event.abortController = eventAbortController; event.info = info; + event.sourceElement = sourceElement; event.focusResetBehavior = null; event.scrollBehavior = null; event.interceptionState = 'none'; @@ -849,13 +947,15 @@ function dispatchNavigateEvent({ event.result = result; event.sameDocument = sameDocument; - let precommitHandlers: Array<(controller: NavigationPrecommitController) => Promise> = []; + let precommitHandlers: Array< + (controller: NavigationPrecommitController) => PromiseLike | void + > = []; let handlers: Array<() => PromiseLike | void> = []; - // https://whatpr.org/html/10919/nav-history-apis.html#dom-navigateevent-intercept + // https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigateevent-intercept event.intercept = function ( this: InternalFakeNavigateEvent, - options?: ExperimentalNavigationInterceptOptions, + options?: NavigationInterceptOptions, ): void { if (!this.canIntercept) { throw new DOMException(`Cannot intercept when canIntercept is 'false'`, 'SecurityError'); @@ -885,7 +985,7 @@ function dispatchNavigateEvent({ event.scrollBehavior = options?.scroll ?? event.scrollBehavior; }; - // https://whatpr.org/html/10919/nav-history-apis.html#dom-navigateevent-scroll + // https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigateevent-scroll event.scroll = function (this: InternalFakeNavigateEvent): void { if (event.interceptionState !== 'committed') { throw new DOMException( @@ -897,7 +997,7 @@ function dispatchNavigateEvent({ processScrollBehavior(event); }; - // https://whatpr.org/html/10919/nav-history-apis.html#dom-navigationprecommitcontroller-redirect + // https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationprecommitcontroller-redirect function redirect(url: string, options: NavigationNavigateOptions = {}) { if (event.interceptionState === 'none') { throw new Error('cannot redirect when event is not intercepted'); @@ -927,6 +1027,17 @@ function dispatchNavigateEvent({ } } + // https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationprecommitcontroller-addhandler + function addHandler(handler: () => PromiseLike | void) { + if (event.interceptionState !== 'intercepted') { + throw new DOMException( + `cannot addHandler when event is not in 'intercepted' state`, + 'InvalidStateError', + ); + } + handlers.push(handler); + } + // https://html.spec.whatwg.org/multipage/nav-history-apis.html#process-navigate-event-handler-failure function processNavigateEventHandlerFailure(reason: any) { if (event.abortController.signal.aborted) { @@ -968,10 +1079,13 @@ function dispatchNavigateEvent({ (navigation.transition as InternalNavigationTransition)?.committedResolve(); const promisesList: Array> = []; for (const handler of handlers) { - const handlerResult = handler(); - - if (handlerResult) { - promisesList.push(handlerResult); + try { + const handlerResult = handler(); + if (handlerResult) { + promisesList.push(handlerResult); + } + } catch (e) { + promisesList.push(Promise.reject(e)); } } promisesList.push(result.committed); @@ -1057,17 +1171,23 @@ function dispatchNavigateEvent({ if (precommitHandlers.length === 0) { commit(); } else { - const precommitController: NavigationPrecommitController = {redirect}; - const precommitPromisesList = precommitHandlers.map((handler) => { - let p: Promise; + const precommitController: NavigationPrecommitController = {redirect, addHandler}; + const precommitPromisesList: Array> = []; + for (const handler of precommitHandlers) { try { - p = handler(precommitController); + const handlerResult = handler(precommitController); + if (handlerResult) { + if (typeof (handlerResult as any).catch === 'function') { + (handlerResult as any).catch(() => {}); + } + precommitPromisesList.push(handlerResult); + } } catch (e) { - p = Promise.reject(e); + const rejected = Promise.reject(e); + rejected.catch(() => {}); + precommitPromisesList.push(rejected); } - p.catch(() => {}); - return p; - }); + } Promise.all(precommitPromisesList) .then(() => commit()) .catch(processNavigateEventHandlerFailure); @@ -1079,7 +1199,7 @@ function dispatchNavigateEvent({ return event.interceptionState === 'none'; } -/** https://whatpr.org/html/10919/nav-history-apis.html#navigateevent-finish */ +/** https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigateevent-finish */ function finishNavigationEvent(event: InternalFakeNavigateEvent, didFulfill: boolean) { if (event.interceptionState === 'finished') { throw new Error('Attempting to finish navigation event that was already finished'); @@ -1101,7 +1221,7 @@ function finishNavigationEvent(event: InternalFakeNavigateEvent, didFulfill: boo event.interceptionState = 'finished'; } -/** https://whatpr.org/html/10919/nav-history-apis.html#potentially-reset-the-focus */ +/** https://html.spec.whatwg.org/multipage/nav-history-apis.html#potentially-reset-the-focus */ function potentiallyResetFocus(event: InternalFakeNavigateEvent) { if (event.interceptionState !== 'committed' && event.interceptionState !== 'scrolled') { throw new Error('cannot reset focus if navigation event is not committed or scrolled'); @@ -1112,6 +1232,7 @@ function potentiallyResetFocus(event: InternalFakeNavigateEvent) { // TODO(atscott): the rest of the steps } +/** https://html.spec.whatwg.org/multipage/nav-history-apis.html#potentially-reset-the-scroll-position */ function potentiallyResetScroll(event: InternalFakeNavigateEvent) { if (event.interceptionState !== 'committed' && event.interceptionState !== 'scrolled') { throw new Error('cannot reset scroll if navigation event is not committed or scrolled'); @@ -1122,7 +1243,7 @@ function potentiallyResetScroll(event: InternalFakeNavigateEvent) { processScrollBehavior(event); } -/* https://whatpr.org/html/10919/nav-history-apis.html#process-scroll-behavior */ +/** https://html.spec.whatwg.org/multipage/nav-history-apis.html#process-scroll-behavior */ function processScrollBehavior(event: InternalFakeNavigateEvent) { if (event.interceptionState !== 'committed') { throw new Error('invalid event interception state when processing scroll behavior'); @@ -1131,7 +1252,10 @@ function processScrollBehavior(event: InternalFakeNavigateEvent) { // TODO(atscott): the rest of the steps } -/** Fake equivalent of `NavigationCurrentEntryChangeEvent`. */ +/** + * Fake equivalent of `NavigationCurrentEntryChangeEvent`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-navigationcurrententrychangeevent-interface + */ export interface FakeNavigationCurrentEntryChangeEvent extends NavigationCurrentEntryChangeEvent { readonly from: FakeNavigationHistoryEntry; } @@ -1139,13 +1263,14 @@ export interface FakeNavigationCurrentEntryChangeEvent extends NavigationCurrent /** * Create a fake equivalent of `NavigationCurrentEntryChange`. This does not use * a class because ES5 transpiled JavaScript cannot extend native Event. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-navigationcurrententrychangeevent-interface */ function createFakeNavigationCurrentEntryChangeEvent({ from, navigationType, }: { from: FakeNavigationHistoryEntry; - navigationType: NavigationType; + navigationType: NavigationType | null; }) { const event = new Event('currententrychange', { bubbles: false, @@ -1162,12 +1287,21 @@ function createFakeNavigationCurrentEntryChangeEvent({ * Create a fake equivalent of `PopStateEvent`. This does not use a class * because ES5 transpiled JavaScript cannot extend native Event. */ -function createPopStateEvent({state}: {state: unknown}) { +function createPopStateEvent({ + state, + hasUAVisualTransition, +}: { + state: unknown; + hasUAVisualTransition?: boolean; +}) { const event = new Event('popstate', { bubbles: false, cancelable: false, }) as {-readonly [P in keyof PopStateEvent]: PopStateEvent[P]}; event.state = state; + if (hasUAVisualTransition) { + event.hasUAVisualTransition = true; + } return event as PopStateEvent; } @@ -1183,6 +1317,7 @@ function createHashChangeEvent(newURL: string, oldURL: string) { /** * Fake equivalent of `NavigationDestination`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-navigationdestination-interface */ export class FakeNavigationDestination implements NavigationDestination { url: string; @@ -1239,6 +1374,48 @@ function isHashChange(from: URL, to: URL): boolean { ); } +/** + * Sets an IDL event listener attribute, removing the old listener and adding the new one. + */ +function setEventHandler any) | null>( + target: EventTarget, + type: string, + current: H, + next: H, +): H { + if (current) { + target.removeEventListener(type, current as EventListener); + } + if (next) { + target.addEventListener(type, next as EventListener); + } + return next; +} + +/** Budget structured clone for state objects. */ +function cloneState(state: T): T { + return state !== undefined && state !== null ? (JSON.parse(JSON.stringify(state)) as T) : state; +} + +/** + * Creates a FakeNavigationResult where both committed and finished promises + * are rejected with the given error and marked as handled. + */ +function earlyErrorResult(error: DOMException): FakeNavigationResult { + const committed = Promise.reject(error); + const finished = Promise.reject(error); + committed.catch(() => {}); + finished.catch(() => {}); + return { + committed, + finished, + }; +} + +/** + * Fake equivalent of `NavigationTransition`. + * https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-navigationtransition-interface + */ class InternalNavigationTransition implements NavigationTransition { readonly finished: Promise; readonly committed: Promise; @@ -1320,4 +1497,6 @@ interface InternalNavigateOptions { userInitiated: boolean; hashChange: boolean; info?: unknown; + hasUAVisualTransition?: boolean; + sourceElement?: Element | null; } diff --git a/packages/core/primitives/dom-navigation/testing/test/BUILD.bazel b/packages/core/primitives/dom-navigation/testing/test/BUILD.bazel index 2917169db71c..36b65047d9ca 100644 --- a/packages/core/primitives/dom-navigation/testing/test/BUILD.bazel +++ b/packages/core/primitives/dom-navigation/testing/test/BUILD.bazel @@ -8,6 +8,7 @@ ts_project( ), visibility = ["//:__pkg__"], deps = [ + "//packages/core/primitives/dom-navigation", "//packages/core/primitives/dom-navigation/testing", "//packages/private/testing", ], diff --git a/packages/core/primitives/dom-navigation/testing/test/fake_platform_navigation.spec.ts b/packages/core/primitives/dom-navigation/testing/test/fake_platform_navigation.spec.ts index b41b8557e29c..be5b70ca9c50 100644 --- a/packages/core/primitives/dom-navigation/testing/test/fake_platform_navigation.spec.ts +++ b/packages/core/primitives/dom-navigation/testing/test/fake_platform_navigation.spec.ts @@ -7,7 +7,10 @@ */ import { - ExperimentalNavigationInterceptOptions, + NavigationInterceptOptions, + NavigationPrecommitController, +} from '../../src/navigation_types'; +import { FakeNavigateEvent, FakeNavigation, FakeNavigationCurrentEntryChangeEvent, @@ -21,7 +24,7 @@ interface Locals { navigateEvents: FakeNavigateEvent[]; navigationCurrentEntryChangeEvents: FakeNavigationCurrentEntryChangeEvent[]; popStateEvents: PopStateEvent[]; - pendingInterceptOptions: ExperimentalNavigationInterceptOptions[]; + pendingInterceptOptions: NavigationInterceptOptions[]; nextNavigateEvent: () => Promise; setExtraNavigateCallback: (callback: (event: FakeNavigateEvent) => void) => void; } @@ -47,21 +50,18 @@ describe('navigation', () => { beforeEach(() => { const navigation = new FakeNavigation(document, 'https://test.com'); const navigateEvents: FakeNavigateEvent[] = []; - let nextNavigateEventResolve!: (value: FakeNavigateEvent) => void; - let nextNavigateEventPromise = new Promise((resolve) => { - nextNavigateEventResolve = resolve; - }); + let {promise: nextNavigateEventPromise, resolve: nextNavigateEventResolve} = + Promise.withResolvers(); const navigationCurrentEntryChangeEvents: FakeNavigationCurrentEntryChangeEvent[] = []; const popStateEvents: PopStateEvent[] = []; - const pendingInterceptOptions: ExperimentalNavigationInterceptOptions[] = []; + const pendingInterceptOptions: NavigationInterceptOptions[] = []; let extraNavigateCallback: ((event: FakeNavigateEvent) => void) | undefined = undefined; navigation.addEventListener('navigate', (event: Event) => { const navigateEvent = event as FakeNavigateEvent; nextNavigateEventResolve(navigateEvent); - nextNavigateEventPromise = new Promise((resolve) => { - nextNavigateEventResolve = resolve; - }); + ({promise: nextNavigateEventPromise, resolve: nextNavigateEventResolve} = + Promise.withResolvers()); locals.navigateEvents.push(navigateEvent); const interceptOptions = pendingInterceptOptions.shift(); if (interceptOptions) { @@ -169,6 +169,7 @@ describe('navigation', () => { }), }), ); + expect(Object.hasOwn(navigateEvent, 'hasUAVisualTransition')).toBeFalse(); expect(navigateEvent.destination.getState()).toBeUndefined(); const committedEntry = await committed; expect(committedEntry).toEqual( @@ -374,10 +375,8 @@ describe('navigation', () => { }); it('push URL with handler', async () => { - let handlerFinishedResolve!: (value: Promise | undefined) => void; - const handlerFinished = new Promise((resolve) => { - handlerFinishedResolve = resolve; - }); + const {promise: handlerFinished, resolve: handlerFinishedResolve} = + Promise.withResolvers(); locals.pendingInterceptOptions.push({ handler: () => handlerFinished, }); @@ -402,10 +401,8 @@ describe('navigation', () => { }); it('replace URL with handler', async () => { - let handlerFinishedResolve!: (value: Promise | undefined) => void; - const handlerFinished = new Promise((resolve) => { - handlerFinishedResolve = resolve; - }); + const {promise: handlerFinished, resolve: handlerFinishedResolve} = + Promise.withResolvers(); locals.pendingInterceptOptions.push({ handler: () => handlerFinished, }); @@ -432,14 +429,10 @@ describe('navigation', () => { }); it('deferred commit', async () => { - let handlerFinishedResolve!: (value: Promise | undefined) => void; - const handlerFinished = new Promise((resolve) => { - handlerFinishedResolve = resolve; - }); - let precommitHandlerFinishedResolve!: () => void; - const precommitHandlerFinished = new Promise((resolve) => { - precommitHandlerFinishedResolve = resolve; - }); + const {promise: handlerFinished, resolve: handlerFinishedResolve} = + Promise.withResolvers(); + const {promise: precommitHandlerFinished, resolve: precommitHandlerFinishedResolve} = + Promise.withResolvers(); locals.pendingInterceptOptions.push({ handler: () => handlerFinished, precommitHandler: () => precommitHandlerFinished, @@ -468,10 +461,8 @@ describe('navigation', () => { }); it('deferred commit early resolve', async () => { - let handlerFinishedResolve!: (value: Promise | undefined) => void; - const handlerFinished = new Promise((resolve) => { - handlerFinishedResolve = resolve; - }); + const {promise: handlerFinished, resolve: handlerFinishedResolve} = + Promise.withResolvers(); locals.pendingInterceptOptions.push({ precommitHandler: () => handlerFinished, }); @@ -525,14 +516,10 @@ describe('navigation', () => { }); it('deferred commit resolves on finished', async () => { - let handlerFinishedResolve!: () => void; - let precommitHandlerResolve!: () => void; - const handlerFinished = new Promise((resolve) => { - handlerFinishedResolve = resolve; - }); - const precommitHandlerFinished = new Promise((resolve) => { - precommitHandlerResolve = resolve; - }); + const {promise: handlerFinished, resolve: handlerFinishedResolve} = + Promise.withResolvers(); + const {promise: precommitHandlerFinished, resolve: precommitHandlerResolve} = + Promise.withResolvers(); locals.pendingInterceptOptions.push({ handler: () => handlerFinished, precommitHandler: () => precommitHandlerFinished, @@ -619,10 +606,11 @@ describe('navigation', () => { it('push with handler reject', async () => { let handlerFinishedReject!: (reason: unknown) => void; locals.pendingInterceptOptions.push({ - handler: () => - new Promise((resolve, reject) => { - handlerFinishedReject = reject; - }), + handler: () => { + const {promise, reject} = Promise.withResolvers(); + handlerFinishedReject = reject; + return promise; + }, }); const {committed, finished} = locals.navigation.navigate('/test'); @@ -641,10 +629,11 @@ describe('navigation', () => { it('replace with reject', async () => { let handlerFinishedReject!: (reason: unknown) => void; locals.pendingInterceptOptions.push({ - handler: () => - new Promise((resolve, reject) => { - handlerFinishedReject = reject; - }), + handler: () => { + const {promise, reject} = Promise.withResolvers(); + handlerFinishedReject = reject; + return promise; + }, }); const {committed, finished} = locals.navigation.navigate('/test', { @@ -958,6 +947,7 @@ describe('navigation', () => { expect(locals.popStateEvents.length).toBe(1); const popStateEvent = locals.popStateEvents[0]; expect(popStateEvent.state).toBeNull(); + expect(Object.hasOwn(popStateEvent, 'hasUAVisualTransition')).toBeFalse(); expect(locals.navigation.canGoBack).toBeTrue(); expect(locals.navigation.canGoForward).toBeTrue(); const finishedEntry = await finished; @@ -968,6 +958,18 @@ describe('navigation', () => { expect(locals.popStateEvents.length).toBe(1); }); + it('propagates a UA visual transition to the popstate event', async () => { + await setUpEntries(); + locals.setExtraNavigateCallback((event) => { + Object.defineProperty(event, 'hasUAVisualTransition', {value: true}); + }); + + await locals.navigation.back().finished; + + expect(locals.navigateEvents[0].hasUAVisualTransition).toBeTrue(); + expect(locals.popStateEvents[0].hasUAVisualTransition).toBeTrue(); + }); + it('traverses forward', async () => { expect(locals.navigation.canGoBack).toBeFalse(); expect(locals.navigation.canGoForward).toBeFalse(); @@ -1091,10 +1093,8 @@ describe('navigation', () => { it('traverses with handler', async () => { const [firstPageEntry] = await setUpEntries(); - let handlerFinishedResolve!: (value: Promise | undefined) => void; - const handlerFinished = new Promise((resolve) => { - handlerFinishedResolve = resolve; - }); + const {promise: handlerFinished, resolve: handlerFinishedResolve} = + Promise.withResolvers(); locals.pendingInterceptOptions.push({ handler: () => handlerFinished, }); @@ -1137,10 +1137,11 @@ describe('navigation', () => { const [firstPageEntry] = await setUpEntries(); let handlerFinishedReject!: (reason: unknown) => void; locals.pendingInterceptOptions.push({ - handler: () => - new Promise((resolve, reject) => { - handlerFinishedReject = reject; - }), + handler: () => { + const {promise, reject} = Promise.withResolvers(); + handlerFinishedReject = reject; + return promise; + }, }); const {committed, finished} = locals.navigation.traverseTo(firstPageEntry.key); @@ -1658,10 +1659,8 @@ describe('navigation', () => { }); it('push URL with handler', async () => { - let handlerFinishedResolve!: (value: Promise | undefined) => void; - const handlerFinished = new Promise((resolve) => { - handlerFinishedResolve = resolve; - }); + const {promise: handlerFinished, resolve: handlerFinishedResolve} = + Promise.withResolvers(); locals.pendingInterceptOptions.push({ handler: () => handlerFinished, }); @@ -1681,10 +1680,8 @@ describe('navigation', () => { }); it('replace URL with handler', async () => { - let handlerFinishedResolve!: (value: Promise | undefined) => void; - const handlerFinished = new Promise((resolve) => { - handlerFinishedResolve = resolve; - }); + const {promise: handlerFinished, resolve: handlerFinishedResolve} = + Promise.withResolvers(); locals.pendingInterceptOptions.push({ handler: () => handlerFinished, }); @@ -1742,10 +1739,8 @@ describe('navigation', () => { }); it('push with handler reject', async () => { - let handlerFinishedReject!: (reason: unknown) => void; - const handlerPromise = new Promise((resolve, reject) => { - handlerFinishedReject = reject; - }); + const {promise: handlerPromise, reject: handlerFinishedReject} = + Promise.withResolvers(); locals.pendingInterceptOptions.push({ handler: () => handlerPromise, }); @@ -1762,10 +1757,8 @@ describe('navigation', () => { }); it('replace with reject', async () => { - let handlerFinishedReject!: (reason: unknown) => void; - const handlerPromise = new Promise((resolve, reject) => { - handlerFinishedReject = reject; - }); + const {promise: handlerPromise, reject: handlerFinishedReject} = + Promise.withResolvers(); locals.pendingInterceptOptions.push({ handler: () => handlerPromise, }); @@ -1934,10 +1927,8 @@ describe('navigation', () => { it('go with handler', async () => { const [firstPageEntry] = await setUpEntries(); - let handlerFinishedResolve!: (value: Promise | undefined) => void; - const handlerFinished = new Promise((resolve) => { - handlerFinishedResolve = resolve; - }); + const {promise: handlerFinished, resolve: handlerFinishedResolve} = + Promise.withResolvers(); locals.pendingInterceptOptions.push({ handler: () => handlerFinished, }); @@ -1973,10 +1964,11 @@ describe('navigation', () => { const [firstPageEntry] = await setUpEntries(); let handlerFinishedReject!: (reason: unknown) => void; locals.pendingInterceptOptions.push({ - handler: () => - new Promise((resolve, reject) => { - handlerFinishedReject = reject; - }), + handler: () => { + const {promise, reject} = Promise.withResolvers(); + handlerFinishedReject = reject; + return promise; + }, }); locals.navigation.go(-2); @@ -2172,4 +2164,241 @@ describe('navigation', () => { expect(locals.navigateEvents.length).toBe(1); }); }); + + describe('addHandler', () => { + it('executes post-commit handlers registered during precommit', async () => { + const order: string[] = []; + locals.pendingInterceptOptions.push({ + precommitHandler: (controller) => { + order.push('precommit'); + controller.addHandler(() => { + order.push('postcommit-from-precommit'); + }); + }, + handler: () => { + order.push('postcommit'); + }, + }); + + await locals.navigation.navigate('/test').finished; + expect(order).toEqual(['precommit', 'postcommit', 'postcommit-from-precommit']); + }); + + it('waits for async handlers added via addHandler before finished resolves', async () => { + const {promise: handlerPromise, resolve: resolveHandler} = Promise.withResolvers(); + locals.pendingInterceptOptions.push({ + precommitHandler: (controller) => { + controller.addHandler(() => handlerPromise); + }, + }); + + const {finished} = locals.navigation.navigate('/test'); + await expectAsync(finished).toBePending(); + resolveHandler(); + await expectAsync(finished).toBeResolved(); + }); + + it('throws InvalidStateError when addHandler is called outside intercepted state', async () => { + let controller!: NavigationPrecommitController; + locals.pendingInterceptOptions.push({ + precommitHandler: (c) => { + controller = c; + }, + }); + + await locals.navigation.navigate('/test').finished; + expect(() => controller.addHandler(() => {})).toThrowMatching( + (e: any) => e.name === 'InvalidStateError', + ); + }); + }); + + describe('updateCurrentEntry', () => { + it('updates currentEntry state and dispatches currententrychange with null navigationType', () => { + const initialEntry = locals.navigation.currentEntry; + expect(initialEntry.getState()).toBeUndefined(); + + locals.navigation.updateCurrentEntry({state: {updated: 123}}); + + expect(locals.navigation.currentEntry).toBe(initialEntry); + expect(locals.navigation.currentEntry.getState()).toEqual({updated: 123}); + expect(locals.navigationCurrentEntryChangeEvents.length).toBe(1); + expect(locals.navigationCurrentEntryChangeEvents[0].from).toBe(initialEntry); + expect(locals.navigationCurrentEntryChangeEvents[0].navigationType).toBeNull(); + }); + + it('clones state so modifications do not affect entry state', () => { + const state = {count: 1}; + locals.navigation.updateCurrentEntry({state}); + state.count = 2; + expect(locals.navigation.currentEntry.getState()).toEqual({count: 1}); + + const returnedState = locals.navigation.currentEntry.getState() as {count: number}; + returnedState.count = 3; + expect(locals.navigation.currentEntry.getState()).toEqual({count: 1}); + }); + }); + + describe('reload', () => { + it('reloads the current URL and dispatches navigate event with reload type', async () => { + const initialEntry = locals.navigation.currentEntry; + const result = locals.navigation.reload({info: 'reloadInfo'}); + + expect(locals.navigateEvents.length).toBe(1); + expect(locals.navigateEvents[0].navigationType).toBe('reload'); + expect(locals.navigateEvents[0].info).toBe('reloadInfo'); + expect(locals.navigateEvents[0].destination.url).toBe(initialEntry.url!); + expect(locals.navigateEvents[0].destination.key).toBe(''); + expect(locals.navigateEvents[0].destination.id).toBe(''); + expect(locals.navigateEvents[0].destination.index).toBe(-1); + + const reloadedEntry = await result.finished; + expect(reloadedEntry).toBe(initialEntry); + expect(reloadedEntry.url).toBe(initialEntry.url!); + expect(reloadedEntry.key).toBe(initialEntry.key); + expect(reloadedEntry.id).toBe(initialEntry.id); + }); + + it('allows intercepting reload', async () => { + let intercepted = false; + locals.pendingInterceptOptions.push({ + handler: () => { + intercepted = true; + }, + }); + + await locals.navigation.reload().finished; + expect(intercepted).toBeTrue(); + expect(locals.navigateEvents[0].navigationType).toBe('reload'); + }); + + it('reloads with custom state when provided', async () => { + const result = locals.navigation.reload({state: {reloaded: true}}); + const entry = await result.finished; + expect(entry.getState()).toEqual({reloaded: true}); + }); + + it('preserves existing state when state option is omitted', async () => { + locals.navigation.updateCurrentEntry({state: {preserved: 'yes'}}); + const result = locals.navigation.reload(); + const entry = await result.finished; + expect(entry.getState()).toEqual({preserved: 'yes'}); + }); + + it('resets state when explicitly passed state: undefined', async () => { + locals.navigation.updateCurrentEntry({state: {toReset: true}}); + const result = locals.navigation.reload({state: undefined}); + const entry = await result.finished; + expect(entry.getState()).toBeUndefined(); + }); + + it('does not dispose the current entry on reload', async () => { + const initialEntry = locals.navigation.currentEntry; + let disposed = false; + initialEntry.ondispose = () => { + disposed = true; + }; + + await locals.navigation.reload().finished; + expect(disposed).toBeFalse(); + }); + }); + + describe('NavigateEvent properties', () => { + it('has default hasUAVisualTransition and sourceElement values', async () => { + await locals.navigation.navigate('/page').finished; + const event = locals.navigateEvents[0]; + expect(event.hasUAVisualTransition).toBeFalsy(); + expect(event.sourceElement).toBeNull(); + }); + }); + + describe('NavigationHistoryEntry dispose event', () => { + it('fires "dispose" event and triggers ondispose when entry is replaced', async () => { + const firstEntry = locals.navigation.currentEntry; + let disposeEventFired = false; + let ondisposeFired = false; + + firstEntry.addEventListener('dispose', () => { + disposeEventFired = true; + }); + firstEntry.ondispose = () => { + ondisposeFired = true; + }; + + await locals.navigation.navigate('/replaced', {history: 'replace'}).finished; + + expect(disposeEventFired).toBeTrue(); + expect(ondisposeFired).toBeTrue(); + }); + + it('allows removing ondispose handler by setting it to null', async () => { + const firstEntry = locals.navigation.currentEntry; + let ondisposeFired = false; + firstEntry.ondispose = () => { + ondisposeFired = true; + }; + firstEntry.ondispose = null; + + await locals.navigation.navigate('/replaced', {history: 'replace'}).finished; + expect(ondisposeFired).toBeFalse(); + }); + }); + + describe('Navigation event handlers (on*)', () => { + it('handles onnavigate, onnavigatesuccess, and oncurrententrychange properties', async () => { + let onNavigateCalled = false; + let onNavigateSuccessCalled = false; + let onCurrentEntryChangeCalled = false; + + locals.navigation.onnavigate = () => { + onNavigateCalled = true; + }; + locals.navigation.onnavigatesuccess = () => { + onNavigateSuccessCalled = true; + }; + locals.navigation.oncurrententrychange = () => { + onCurrentEntryChangeCalled = true; + }; + + await locals.navigation.navigate('/test').finished; + + expect(onNavigateCalled).toBeTrue(); + expect(onNavigateSuccessCalled).toBeTrue(); + expect(onCurrentEntryChangeCalled).toBeTrue(); + }); + + it('handles onnavigateerror property when navigation fails', async () => { + let errorEvent: ErrorEvent | undefined; + const expectedError = new Error('handler failure'); + + locals.navigation.onnavigate = (event) => { + event.intercept({ + handler: () => { + throw expectedError; + }, + }); + }; + locals.navigation.onnavigateerror = (event) => { + errorEvent = event; + }; + + await expectAsync(locals.navigation.navigate('/test').finished).toBeRejectedWith( + expectedError, + ); + expect(errorEvent).toBeDefined(); + expect(errorEvent?.error).toBe(expectedError); + }); + + it('removes event listener when handler property is set to null', async () => { + let onNavigateCalled = false; + locals.navigation.onnavigate = () => { + onNavigateCalled = true; + }; + locals.navigation.onnavigate = null; + + await locals.navigation.navigate('/test').finished; + expect(onNavigateCalled).toBeFalse(); + }); + }); }); diff --git a/packages/core/primitives/event-dispatch/src/action_resolver.ts b/packages/core/primitives/event-dispatch/src/action_resolver.ts index 4505e6aebf6e..26178f45c117 100644 --- a/packages/core/primitives/event-dispatch/src/action_resolver.ts +++ b/packages/core/primitives/event-dispatch/src/action_resolver.ts @@ -19,7 +19,8 @@ import * as eventLib from './event'; * Since maps from event to action are immutable we can use a single map * to represent the empty map. */ -const EMPTY_ACTION_MAP: {[key: string]: string} = {}; +// tslint:disable-next-line:no-toplevel-property-access +const EMPTY_ACTION_MAP: {[key: string]: string} = /* @__PURE__ */ Object.create(null); /** * This regular expression matches a semicolon. @@ -258,7 +259,7 @@ export class ActionResolver { } else { actionMap = cache.getParsed(jsactionAttribute); if (!actionMap) { - actionMap = {}; + actionMap = Object.create(null) as {[key: string]: string | undefined}; const values = jsactionAttribute.split(REGEXP_SEMICOLON); for (let idx = 0; idx < values.length; idx++) { const value = values[idx]; diff --git a/packages/core/primitives/event-dispatch/src/bootstrap_app_scoped.ts b/packages/core/primitives/event-dispatch/src/bootstrap_app_scoped.ts index 6c366cfbe8f3..dc7155b2e0a6 100644 --- a/packages/core/primitives/event-dispatch/src/bootstrap_app_scoped.ts +++ b/packages/core/primitives/event-dispatch/src/bootstrap_app_scoped.ts @@ -64,7 +64,7 @@ export function removeAllAppScopedEventListeners( removeAllEventListeners(dataContainer._ejsas?.[appId]); } -/** Clear the early event contract. */ +/** Removes the early event listeners and clears the early event contract. */ export function clearAppScopedEarlyEventContract( appId: string, dataContainer: EarlyJsactionDataContainer = window, @@ -72,5 +72,7 @@ export function clearAppScopedEarlyEventContract( if (!dataContainer._ejsas) { return; } + // This must run first because listeners can only be reached through the contract + removeAllEventListeners(dataContainer._ejsas[appId]); dataContainer._ejsas[appId] = undefined; } diff --git a/packages/core/primitives/event-dispatch/src/bootstrap_global.ts b/packages/core/primitives/event-dispatch/src/bootstrap_global.ts index ae41eeeaa7ea..c2ec80a751ea 100644 --- a/packages/core/primitives/event-dispatch/src/bootstrap_global.ts +++ b/packages/core/primitives/event-dispatch/src/bootstrap_global.ts @@ -41,7 +41,8 @@ export function removeAllGlobalEventListeners() { removeAllEventListeners(window._ejsa); } -/** Removes the global early event contract. */ +/** Removes the early event listeners and the global early event contract. */ export function clearGlobalEarlyEventContract() { + removeAllEventListeners(window._ejsa); window._ejsa = undefined; } diff --git a/packages/core/primitives/event-dispatch/src/cache.ts b/packages/core/primitives/event-dispatch/src/cache.ts index 750263dd2652..72801c9afa9f 100644 --- a/packages/core/primitives/event-dispatch/src/cache.ts +++ b/packages/core/primitives/event-dispatch/src/cache.ts @@ -11,7 +11,9 @@ import {Property} from './property'; /** * Map from jsaction annotation to a parsed map from event name to action name. */ -const parseCache: {[key: string]: {[key: string]: string | undefined}} = {}; +// tslint:disable-next-line:no-toplevel-property-access +const parseCache: {[key: string]: {[key: string]: string | undefined}} = + /* @__PURE__ */ Object.create(null); /** * Reads the jsaction parser cache from the given DOM Element. @@ -25,7 +27,7 @@ export function get(element: Element): {[key: string]: string | undefined} | und * creates an empty one. */ export function getDefaulted(element: Element): {[key: string]: string | undefined} { - const cache = get(element) ?? {}; + const cache = get(element) ?? Object.create(null); set(element, cache); return cache; } diff --git a/packages/core/primitives/event-dispatch/test/dispatcher_test.ts b/packages/core/primitives/event-dispatch/test/dispatcher_test.ts index c2d64cd43900..dac15c0e8e71 100644 --- a/packages/core/primitives/event-dispatch/test/dispatcher_test.ts +++ b/packages/core/primitives/event-dispatch/test/dispatcher_test.ts @@ -1129,4 +1129,26 @@ describe('Dispatcher', () => { expect(eventInfoWrapper.getAction()).toBeUndefined(); }); }); + + it('action map does not resolve Object.prototype properties as actions', () => { + const actionElement = getRequiredElementById('click-action-element'); + const targetElement = getRequiredElementById('click-target-element'); + const container = getRequiredElementById('click-container'); + + actionElement.setAttribute('jsaction', 'click:handleClick'); + cache.clear(actionElement); + + const actionResolver = new ActionResolver(); + const eventInfo = createEventInfo({ + eventType: 'toString', + event: new Event('toString'), + targetElement, + container, + timestamp: 0, + }); + + actionResolver.resolveAction(eventInfo); + + expect(new EventInfoWrapper(eventInfo).getAction()).toBeUndefined(); + }); }); diff --git a/packages/core/primitives/event-dispatch/test/eventcontract_test.ts b/packages/core/primitives/event-dispatch/test/eventcontract_test.ts index c83a9cd09f2e..8cac55eaa6a3 100644 --- a/packages/core/primitives/event-dispatch/test/eventcontract_test.ts +++ b/packages/core/primitives/event-dispatch/test/eventcontract_test.ts @@ -6,6 +6,10 @@ * found in the LICENSE file at https://angular.dev/license */ +import { + bootstrapGlobalEarlyEventContract, + clearGlobalEarlyEventContract, +} from '../src/bootstrap_global'; import { EarlyEventContract, EarlyJsactionData, @@ -602,5 +606,18 @@ describe('EventContract', () => { expect(eventInfoWrapper.getAction()).toBeUndefined(); }); }); + + it('clearing the global early event contract removes its event listeners', () => { + const targetElement = getRequiredElementById('click-target-element'); + bootstrapGlobalEarlyEventContract(['click'], []); + const earlyJsactionData = window._ejsa!; + + dispatchMouseEvent(targetElement); + clearGlobalEarlyEventContract(); + dispatchMouseEvent(targetElement); + + expect(window._ejsa).toBeUndefined(); + expect(earlyJsactionData.q.length).toBe(1); + }); }); }); diff --git a/packages/core/primitives/signals/src/computed.ts b/packages/core/primitives/signals/src/computed.ts index cad637cd9c26..cb921152d2c8 100644 --- a/packages/core/primitives/signals/src/computed.ts +++ b/packages/core/primitives/signals/src/computed.ts @@ -153,6 +153,7 @@ const COMPUTED_NODE: Omit, 'computation'> = /* @__PURE__ * oldValue !== ERRORED && newValue !== ERRORED && node.equal(oldValue, newValue); + node.error = null; } catch (err) { newValue = ERRORED; node.error = err; diff --git a/packages/core/primitives/signals/src/graph.ts b/packages/core/primitives/signals/src/graph.ts index 9738d925e0ea..02e7f2b1f9ea 100644 --- a/packages/core/primitives/signals/src/graph.ts +++ b/packages/core/primitives/signals/src/graph.ts @@ -14,9 +14,13 @@ declare const ngDevMode: boolean | undefined; * The currently active consumer `ReactiveNode`, if running code in a reactive context. * * Change this via `setActiveConsumer`. + * + * Safari 16-17 have a JIT bug where assigning to a module-level let/var can + * sometimes fail to write the value. We wrap in an array to keep a constant + * variable with a mutable internal value. */ -let activeConsumer: ReactiveNode | null = null; -let inNotificationPhase = false; +const activeConsumer: [ReactiveNode | null] = [null]; +const inNotificationPhase: [boolean] = [false]; export type Version = number & {__brand: 'Version'}; @@ -40,17 +44,17 @@ let postProducerCreatedFn: ReactiveHookFn | null = null; export const SIGNAL: unique symbol = /* @__PURE__ */ Symbol('SIGNAL'); export function setActiveConsumer(consumer: ReactiveNode | null): ReactiveNode | null { - const prev = activeConsumer; - activeConsumer = consumer; + const prev = activeConsumer[0]; + activeConsumer[0] = consumer; return prev; } export function getActiveConsumer(): ReactiveNode | null { - return activeConsumer; + return activeConsumer[0]; } export function isInNotificationPhase(): boolean { - return inNotificationPhase; + return inNotificationPhase[0]; } export interface Reactive { @@ -210,7 +214,7 @@ export interface ReactiveNode { * Called by implementations when a producer's signal is read. */ export function producerAccessed(node: ReactiveNode): void { - if (inNotificationPhase) { + if (inNotificationPhase[0]) { throw new Error( typeof ngDevMode !== 'undefined' && ngDevMode ? `Assertion error: signal read during notification phase` @@ -218,14 +222,15 @@ export function producerAccessed(node: ReactiveNode): void { ); } - if (activeConsumer === null) { + const consumer = activeConsumer[0]; + if (consumer === null) { // Accessed outside of a reactive context, so nothing to record. return; } - activeConsumer.consumerOnSignalRead(node); + consumer.consumerOnSignalRead(node); - const prevProducerLink = activeConsumer.producersTail; + const prevProducerLink = consumer.producersTail; // If the last producer we accessed is the same as the current one, we can skip adding a new // link @@ -234,7 +239,7 @@ export function producerAccessed(node: ReactiveNode): void { } let nextProducerLink: ReactiveLink | undefined = undefined; - const isRecomputing = activeConsumer.recomputing; + const isRecomputing = consumer.recomputing; if (isRecomputing) { // If we're incrementally rebuilding the producers list, we want to check if the next producer // in the list is the same as the one we're trying to add. @@ -242,11 +247,11 @@ export function producerAccessed(node: ReactiveNode): void { // If the previous producer is defined, then the next producer is just the one that follows it. // Otherwise, we should check the head of the producers list (the first node that we accessed the last time this consumer was run). nextProducerLink = - prevProducerLink !== undefined ? prevProducerLink.nextProducer : activeConsumer.producers; + prevProducerLink !== undefined ? prevProducerLink.nextProducer : consumer.producers; if (nextProducerLink !== undefined && nextProducerLink.producer === node) { // If the next producer is the same as the one we're trying to add, we can just update the // last read version, update the tail of the producers list of this rerun, and return. - activeConsumer.producersTail = nextProducerLink; + consumer.producersTail = nextProducerLink; nextProducerLink.lastReadVersion = node.version; nextProducerLink.knownValidAtEpoch = epoch; return; @@ -259,17 +264,17 @@ export function producerAccessed(node: ReactiveNode): void { // link. This can short circuit the creation of a new link in the case where the consumer reads alternating ReactiveNodes if ( prevConsumerLink !== undefined && - prevConsumerLink.consumer === activeConsumer && + prevConsumerLink.consumer === consumer && (!isRecomputing || prevConsumerLink.knownValidAtEpoch === epoch) ) { return; } // If we got here, it means that we need to create a new link between the producer and the consumer. - const isLive = consumerIsLive(activeConsumer); + const isLive = consumerIsLive(consumer); const newLink: ReactiveLink = { producer: node, - consumer: activeConsumer, + consumer: consumer, // instead of eagerly destroying the previous link, we delay until we've finished recomputing // the producers list, so that we can destroy all of the old links at once. nextProducer: nextProducerLink, @@ -282,11 +287,11 @@ export function producerAccessed(node: ReactiveNode): void { lastReadVersion: node.version, nextConsumer: undefined, }; - activeConsumer.producersTail = newLink; + consumer.producersTail = newLink; if (prevProducerLink !== undefined) { prevProducerLink.nextProducer = newLink; } else { - activeConsumer.producers = newLink; + consumer.producers = newLink; } if (isLive) { @@ -342,8 +347,8 @@ export function producerNotifyConsumers(node: ReactiveNode): void { } // Prevent signal reads when we're updating the graph - const prev = inNotificationPhase; - inNotificationPhase = true; + const prev = inNotificationPhase[0]; + inNotificationPhase[0] = true; try { for ( let link: ReactiveLink | undefined = node.consumers; @@ -356,7 +361,7 @@ export function producerNotifyConsumers(node: ReactiveNode): void { } } } finally { - inNotificationPhase = prev; + inNotificationPhase[0] = prev; } } @@ -365,7 +370,7 @@ export function producerNotifyConsumers(node: ReactiveNode): void { * based on the current consumer context. */ export function producerUpdatesAllowed(): boolean { - return activeConsumer?.consumerAllowSignalWrites !== false; + return activeConsumer[0]?.consumerAllowSignalWrites !== false; } export function consumerMarkDirty(node: ReactiveNode): void { diff --git a/packages/core/primitives/signals/src/linked_signal.ts b/packages/core/primitives/signals/src/linked_signal.ts index 30d2843c7c40..d5d901d87282 100644 --- a/packages/core/primitives/signals/src/linked_signal.ts +++ b/packages/core/primitives/signals/src/linked_signal.ts @@ -107,6 +107,7 @@ export function linkedSignalSetFn(node: LinkedSignalNode, newValue: producerUpdateValueVersion(node); signalSetFn(node, newValue); producerMarkClean(node); + node.error = null; } export function linkedSignalUpdateFn( @@ -171,6 +172,7 @@ export const LINKED_SIGNAL_NODE: Omit< // to track any reactive reads inside `equal`. setActiveConsumer(null); wasEqual = oldValueValid && newValue !== ERRORED && node.equal(oldValue, newValue); + node.error = null; } catch (err) { newValue = ERRORED; node.error = err; diff --git a/packages/core/resources/best-practices.md b/packages/core/resources/best-practices.md index 085ea868fbe3..e13f7757f30d 100644 --- a/packages/core/resources/best-practices.md +++ b/packages/core/resources/best-practices.md @@ -22,7 +22,7 @@ You are an expert in TypeScript, Angular, and scalable web application developme - It MUST pass all AXE checks. - It MUST follow all WCAG AA minimums, including focus management, color contrast, and ARIA attributes. -### Components +## Components - Keep components small and focused on a single responsibility - Use `input()` and `output()` functions instead of decorators @@ -34,6 +34,7 @@ You are an expert in TypeScript, Angular, and scalable web application developme - When not using Signal Forms, prefer Reactive forms instead of Template-driven ones - Do NOT use `ngClass`, use `class` bindings instead - Do NOT use `ngStyle`, use `style` bindings instead +- Do NOT import `CommonModule`, import only the directives and pipes the template uses, such as `AsyncPipe` or `DatePipe` - When using external templates/styles, use paths relative to the component TS file. ## State Management @@ -53,6 +54,5 @@ You are an expert in TypeScript, Angular, and scalable web application developme ## Services - Design services around a single responsibility -- Use the `providedIn: 'root'` option for singleton services - Prefer the `@Service` decorator over `@Injectable({providedIn: 'root'})` for new singleton services (Angular v22+) - Use the `inject()` function instead of constructor injection diff --git a/packages/core/rxjs-interop/BUILD.bazel b/packages/core/rxjs-interop/BUILD.bazel index c6929409a8b3..6c3ca1f24c2f 100644 --- a/packages/core/rxjs-interop/BUILD.bazel +++ b/packages/core/rxjs-interop/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "generate_api_docs", "ng_project") +load("//tools:defaults.bzl", "ng_project") package(default_visibility = ["//visibility:public"]) @@ -28,15 +28,3 @@ filegroup( ]) + ["PACKAGE.md"], visibility = ["//visibility:public"], ) - -generate_api_docs( - name = "core_rxjs-interop_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - "//packages/common:files_for_docgen", - "//packages/common/http:files_for_docgen", - ], - entry_point = ":index.ts", - module_name = "@angular/core/rxjs-interop", -) diff --git a/packages/core/rxjs-interop/src/output_from_observable.ts b/packages/core/rxjs-interop/src/output_from_observable.ts index 8a500d0f8a86..314c0eec3457 100644 --- a/packages/core/rxjs-interop/src/output_from_observable.ts +++ b/packages/core/rxjs-interop/src/output_from_observable.ts @@ -6,6 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ +import {Observable} from 'rxjs'; import { assertInInjectionContext, DestroyRef, @@ -16,7 +17,6 @@ import { ɵRuntimeError, ɵRuntimeErrorCode, } from '../../src/core'; -import {Observable} from 'rxjs'; import {takeUntilDestroyed} from './take_until_destroyed'; @@ -81,6 +81,7 @@ class OutputFromObservableRef implements OutputRef { * ``` * @see [RxJS interop with component and directive outputs](ecosystem/rxjs-interop/output-interop) * + * @initializerApiFunction * @publicApi 19.0 */ export function outputFromObservable( diff --git a/packages/core/rxjs-interop/src/rx_resource.ts b/packages/core/rxjs-interop/src/rx_resource.ts index 26beb92a9baf..fe071d7b4782 100644 --- a/packages/core/rxjs-interop/src/rx_resource.ts +++ b/packages/core/rxjs-interop/src/rx_resource.ts @@ -28,7 +28,21 @@ import {promiseWithResolvers} from '../../src/util/promise_with_resolvers'; * @publicApi 22.0 */ export interface RxResourceOptions extends BaseResourceOptions { + /** + * A function that returns the `Observable` to load the resource's value from. + * + * This Observable must eventually emit a value or an error before it completes — a resource + * needs one of those two things to know what to show. If the Observable completes without ever + * emitting anything (for example because of `catchError(() => EMPTY)`), Angular throws + * `RESOURCE_COMPLETED_BEFORE_PRODUCING_VALUE` (`NG0991`), since it has nothing to give the + * resource. + */ stream: (params: ResourceLoaderParams) => Observable; + + /** + * A debug name for the reactive node. Used in Angular DevTools to identify the node. + */ + debugName?: string; } /** diff --git a/packages/core/rxjs-interop/test/rx_resource_spec.ts b/packages/core/rxjs-interop/test/rx_resource_spec.ts index 8b12440a4a47..c38e26c2ff66 100644 --- a/packages/core/rxjs-interop/test/rx_resource_spec.ts +++ b/packages/core/rxjs-interop/test/rx_resource_spec.ts @@ -10,12 +10,15 @@ import {timeout} from '@angular/private/testing'; import {BehaviorSubject, EMPTY, Observable, of, Subscriber, throwError} from 'rxjs'; import { ApplicationRef, + Component, + ErrorHandler, ɵCACHE_ACTIVE as CACHE_ACTIVE, Injector, makeStateKey, signal, TransferState, } from '../../src/core'; +import {ReactiveNode, SIGNAL} from '../../primitives/signals'; import {TestBed} from '../../testing'; import {rxResource} from '../src'; @@ -40,6 +43,17 @@ describe('rxResource()', () => { expect(res.status()).toBe('resolved'); }); + it('should set debugName when a debugName is provided', () => { + const res = rxResource({ + stream: () => of(1), + injector: TestBed.inject(Injector), + debugName: 'counter', + }); + const node = res.value[SIGNAL] as ReactiveNode; + + expect(node.debugName).toBe('Resource#counter.value'); + }); + it('should cancel the fetch when a new request comes in', async () => { const injector = TestBed.inject(Injector); const appRef = TestBed.inject(ApplicationRef); @@ -178,6 +192,46 @@ describe('rxResource()', () => { expect(() => res.value()).toThrowError(/Resource completed before producing a value/); }); + it('reports NG0991 to the ErrorHandler when a template reads value() after the stream completes immediately', async () => { + const handledErrors: unknown[] = []; + TestBed.configureTestingModule({ + providers: [ + { + provide: ErrorHandler, + useClass: class extends ErrorHandler { + override handleError(error: unknown): void { + handledErrors.push(error); + } + }, + }, + ], + }); + + @Component({template: '{{res.value()}}'}) + class TestComponent { + res = rxResource({stream: () => EMPTY}); + } + + const fixture = TestBed.createComponent(TestComponent); + // No manual `fixture.detectChanges()` here: that call would surface the + // error synchronously to the test itself. Reading an errored resource + // from a template during an app-triggered (scheduled) CD cycle is what + // routes the error to `ErrorHandler` instead, since nothing in user code + // is positioned to catch it — this is the actual failure mode reported + // in production. + // + // `TestBedApplicationErrorHandler` calls our `ErrorHandler` first and + // then still rejects the pending `whenStable()` promise with the same + // error (so tests don't silently swallow real bugs), so we expect the + // rejection here in addition to asserting our handler saw the error. + await expectAsync(fixture.whenStable()).toBeRejected(); + + expect(handledErrors.length).toBe(1); + expect((handledErrors[0] as Error).message).toContain( + 'Resource completed before producing a value', + ); + }); + it('should report sync error synchronously (after tick) ', () => { const injector = TestBed.inject(Injector); const res = rxResource({ diff --git a/packages/core/rxjs-interop/test/to_observable_spec.ts b/packages/core/rxjs-interop/test/to_observable_spec.ts index e8b25dc7a0e3..ac374142995b 100644 --- a/packages/core/rxjs-interop/test/to_observable_spec.ts +++ b/packages/core/rxjs-interop/test/to_observable_spec.ts @@ -33,8 +33,8 @@ describe('toObservable()', () => { injector = TestBed.inject(EnvironmentInjector); }); - function flushEffects(): void { - fixture.detectChanges(); + async function flushEffects(): Promise { + await fixture.whenStable(); } it('should produce an observable that tracks a signal', async () => { @@ -42,21 +42,21 @@ describe('toObservable()', () => { const counterValues = toObservable(counter, {injector}).pipe(take(3), toArray()).toPromise(); // Initial effect execution, emits 0. - flushEffects(); + await flushEffects(); counter.set(1); // Emits 1. - flushEffects(); + await flushEffects(); counter.set(2); counter.set(3); // Emits 3 (ignores 2 as it was batched by the effect). - flushEffects(); + await flushEffects(); expect(await counterValues).toEqual([0, 1, 3]); }); - it('should propagate errors from the signal', () => { + it('should propagate errors from the signal', async () => { const source = signal(1); const counter = computed(() => { const value = source(); @@ -77,17 +77,17 @@ describe('toObservable()', () => { error: (err) => (currentError = err), }); - flushEffects(); + await flushEffects(); expect(currentValue).toBe(1); source.set(2); - flushEffects(); + await flushEffects(); expect(currentError).toBe('fail'); sub.unsubscribe(); }); - it('monitors the signal even if the Observable is never subscribed', () => { + it('monitors the signal even if the Observable is never subscribed', async () => { let counterRead = false; const counter = computed(() => { counterRead = true; @@ -100,11 +100,11 @@ describe('toObservable()', () => { expect(counterRead).toBeFalse(); // The signal is read after effects have run. - flushEffects(); + await flushEffects(); expect(counterRead).toBeTrue(); }); - it('should still monitor the signal if the Observable has no active subscribers', () => { + it('should still monitor the signal if the Observable has no active subscribers', async () => { const counter = signal(0); // Tracks how many reads of `counter()` there have been. @@ -119,13 +119,13 @@ describe('toObservable()', () => { const sub = counter$.subscribe(); expect(readCount).toBe(0); - flushEffects(); + await flushEffects(); expect(readCount).toBe(1); // Sanity check of the read tracker - updating the counter should cause it to be read again // by the active effect. counter.set(1); - flushEffects(); + await flushEffects(); expect(readCount).toBe(2); // Tear down the only subscription. @@ -133,11 +133,11 @@ describe('toObservable()', () => { // Now, setting the signal still triggers additional reads counter.set(2); - flushEffects(); + await flushEffects(); expect(readCount).toBe(3); }); - it('stops monitoring the signal once injector is destroyed', () => { + it('stops monitoring the signal once injector is destroyed', async () => { const counter = signal(0); // Tracks how many reads of `counter()` there have been. @@ -152,17 +152,17 @@ describe('toObservable()', () => { expect(readCount).toBe(0); - flushEffects(); + await flushEffects(); expect(readCount).toBe(1); // Now, setting the signal shouldn't trigger any additional reads, as the Injector was destroyed childInjector.destroy(); counter.set(2); - flushEffects(); + await flushEffects(); expect(readCount).toBe(1); }); - it('does not track downstream signal reads in the effect', () => { + it('does not track downstream signal reads in the effect', async () => { const counter = signal(0); const emits = signal(0); toObservable(counter, {injector}).subscribe(() => { @@ -171,9 +171,9 @@ describe('toObservable()', () => { emits(); emits.update((v) => v + 1); }); - flushEffects(); + await flushEffects(); expect(emits()).toBe(1); - flushEffects(); + await flushEffects(); expect(emits()).toBe(1); }); }); diff --git a/packages/core/rxjs-interop/test/to_signal_spec.ts b/packages/core/rxjs-interop/test/to_signal_spec.ts index 122dade6b68f..53ae124bcdc1 100644 --- a/packages/core/rxjs-interop/test/to_signal_spec.ts +++ b/packages/core/rxjs-interop/test/to_signal_spec.ts @@ -6,8 +6,9 @@ * found in the LICENSE file at https://angular.dev/license */ +import {BehaviorSubject, Observable, ReplaySubject, Subject} from 'rxjs'; +import {ReactiveNode, SIGNAL} from '../../primitives/signals'; import { - ChangeDetectionStrategy, Component, computed, EnvironmentInjector, @@ -15,18 +16,8 @@ import { runInInjectionContext, Signal, } from '../../src/core'; -import {toSignal} from '../src'; import {TestBed} from '../../testing'; -import { - BehaviorSubject, - Observable, - Observer, - ReplaySubject, - Subject, - Subscribable, - Unsubscribable, -} from 'rxjs'; -import {ReactiveNode, SIGNAL} from '../../primitives/signals'; +import {toSignal} from '../src'; describe('toSignal()', () => { it( @@ -302,11 +293,9 @@ describe('toSignal()', () => { }); describe('in a @Component', () => { - it('should support `toSignal` as a class member initializer', () => { + it('should support `toSignal` as a class member initializer', async () => { @Component({ template: '{{counter()}}', - changeDetection: ChangeDetectionStrategy.OnPush, - standalone: false, }) class TestCmp { // Component creation should not run inside the template effect/consumer, @@ -316,12 +305,12 @@ describe('toSignal()', () => { } const fixture = TestBed.createComponent(TestCmp); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.nativeElement.textContent).toBe(''); fixture.componentInstance.counter$.next(2); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.nativeElement.textContent).toBe('2'); }); diff --git a/packages/core/schematics/collection.json b/packages/core/schematics/collection.json index 707edd88cb4c..c7ab8d086d82 100644 --- a/packages/core/schematics/collection.json +++ b/packages/core/schematics/collection.json @@ -77,7 +77,7 @@ "aliases": ["ngstyle-to-style"] }, "router-testing-module-migration": { - "description": "Replaces deprecated RouterTestingModule with provideRouter() as recommended in the deprecation note", + "description": "Replaces deprecated RouterTestingModule with RouterModule as recommended in the deprecation note", "factory": "./bundles/router-testing-module-migration.cjs#migrate", "schema": "./ng-generate/router-testing-module-migration/schema.json" }, diff --git a/packages/core/schematics/migrations/output-migration/output_helpers.ts b/packages/core/schematics/migrations/output-migration/output_helpers.ts index dba90f02b102..bc00ed3044ec 100644 --- a/packages/core/schematics/migrations/output-migration/output_helpers.ts +++ b/packages/core/schematics/migrations/output-migration/output_helpers.ts @@ -138,8 +138,7 @@ export function getUniqueIdForProperty( info: ProgramInfo, prop: ts.PropertyDeclaration, ): ClassFieldUniqueKey { - const {id} = projectFile(prop.getSourceFile(), info); - id.replace(/\.d\.ts$/, '.ts'); + const id = projectFile(prop.getSourceFile(), info).id.replace(/\.d\.ts$/, '.ts'); return `${id}@@${prop.parent.name ?? 'unknown-class'}@@${prop.name.getText()}` as ClassFieldUniqueKey; } diff --git a/packages/core/schematics/migrations/signal-migration/src/migration.ts b/packages/core/schematics/migrations/signal-migration/src/migration.ts index e6dd85b66716..763c651feeba 100644 --- a/packages/core/schematics/migrations/signal-migration/src/migration.ts +++ b/packages/core/schematics/migrations/signal-migration/src/migration.ts @@ -28,7 +28,6 @@ import { FieldIncompatibilityReason, } from './passes/problematic_patterns/incompatibility'; import {MigrationConfig} from './migration_config'; -import {ClassFieldUniqueKey} from './passes/reference_resolution/known_fields'; /** * Tsurge migration for migrating Angular `@Input()` declarations to @@ -258,12 +257,9 @@ function filterInputsViaConfig( return; } - const skippedInputs = new Set(); - // Mark all skipped inputs as incompatible for migration. for (const input of knownInputs.knownInputIds.values()) { if (!config.shouldMigrateInput(input)) { - skippedInputs.add(input.descriptor.key); knownInputs.markFieldIncompatible(input.descriptor, { context: null, reason: FieldIncompatibilityReason.SkippedViaConfigFilter, diff --git a/packages/core/schematics/migrations/signal-migration/src/passes/reference_resolution/identify_template_references.ts b/packages/core/schematics/migrations/signal-migration/src/passes/reference_resolution/identify_template_references.ts index 48ac15c2bf8b..40b2449f9875 100644 --- a/packages/core/schematics/migrations/signal-migration/src/passes/reference_resolution/identify_template_references.ts +++ b/packages/core/schematics/migrations/signal-migration/src/passes/reference_resolution/identify_template_references.ts @@ -139,7 +139,6 @@ function extractTemplateWithoutCompilerAnalysis( usePoisonedData: true, enableI18nLegacyMessageIdFormat: options.enableI18nLegacyMessageIdFormat !== false, i18nNormalizeLineEndingsInICUs: options.i18nNormalizeLineEndingsInICUs === true, - enableSelectorless: false, }, CompilationMode.FULL, ).nodes; diff --git a/packages/core/schematics/migrations/strict-safe-navigation-narrow/index.ts b/packages/core/schematics/migrations/strict-safe-navigation-narrow/index.ts index bf9305931900..e351f70612da 100644 --- a/packages/core/schematics/migrations/strict-safe-navigation-narrow/index.ts +++ b/packages/core/schematics/migrations/strict-safe-navigation-narrow/index.ts @@ -12,7 +12,9 @@ import {JSONFile} from '@schematics/angular/utility/json-file'; export function migrate(): Rule { return async (tree: Tree) => { - const {buildPaths, testPaths} = await getProjectTsConfigPaths(tree); + const {buildPaths, testPaths} = await getProjectTsConfigPaths(tree, { + angularBuildersOnly: true, + }); const allPaths = [...new Set([...buildPaths, ...testPaths])]; for (const tsconfigPath of allPaths) { diff --git a/packages/core/schematics/migrations/strict-safe-navigation-narrow/migration.spec.ts b/packages/core/schematics/migrations/strict-safe-navigation-narrow/migration.spec.ts index 7218b2e024d7..6c0e720bee64 100644 --- a/packages/core/schematics/migrations/strict-safe-navigation-narrow/migration.spec.ts +++ b/packages/core/schematics/migrations/strict-safe-navigation-narrow/migration.spec.ts @@ -7,7 +7,7 @@ */ import {HostTree} from '@angular-devkit/schematics'; -import {UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {UnitTestTree} from '@angular-devkit/schematics/testing'; import {migrate} from './index'; function parseConfig(tree: UnitTestTree, path: string) { @@ -28,6 +28,7 @@ describe('strict-safe-navigation-narrow migration', () => { root: '', architect: { build: { + builder: '@angular/build:application', options: { tsConfig: './tsconfig.json', }, @@ -138,4 +139,44 @@ describe('strict-safe-navigation-narrow migration', () => { tsconfig.angularCompilerOptions.extendedDiagnostics.checks.nullishCoalescingNotNullable, ).toBe('suppress'); }); + + it('should not migrate tsconfig files of projects that do not use an Angular builder', async () => { + tree.overwrite( + '/angular.json', + JSON.stringify({ + version: 1, + projects: { + 'angular-app': { + root: '', + architect: { + build: { + builder: '@angular/build:application', + options: {tsConfig: './tsconfig.app.json'}, + }, + }, + }, + 'node-lib': { + root: '', + architect: { + build: { + builder: '@nx/js:tsc', + options: {tsConfig: './tsconfig.lib.json'}, + }, + }, + }, + }, + }), + ); + tree.create('/tsconfig.app.json', JSON.stringify({compilerOptions: {target: 'es2020'}})); + tree.create('/tsconfig.lib.json', JSON.stringify({compilerOptions: {target: 'es2020'}})); + + const runMigration = migrate(); + await runMigration(tree, {} as any); + + const appTsconfig = parseConfig(tree, '/tsconfig.app.json'); + expect( + appTsconfig.angularCompilerOptions.extendedDiagnostics.checks.nullishCoalescingNotNullable, + ).toBe('suppress'); + expect(parseConfig(tree, '/tsconfig.lib.json').angularCompilerOptions).toBeUndefined(); + }); }); diff --git a/packages/core/schematics/migrations/strict-templates-default/index.ts b/packages/core/schematics/migrations/strict-templates-default/index.ts index 31a3ede31ef6..1ceb8ee92486 100644 --- a/packages/core/schematics/migrations/strict-templates-default/index.ts +++ b/packages/core/schematics/migrations/strict-templates-default/index.ts @@ -44,7 +44,9 @@ function getResolvedAngularCompilerOptions(tree: any, tsconfigPath: string): Rec */ export function migrate(): Rule { return async (tree) => { - const {buildPaths, testPaths} = await getProjectTsConfigPaths(tree); + const {buildPaths, testPaths} = await getProjectTsConfigPaths(tree, { + angularBuildersOnly: true, + }); const allPaths = [...new Set([...buildPaths, ...testPaths])]; for (const tsconfigPath of allPaths) { diff --git a/packages/core/schematics/migrations/strict-templates-default/migration.spec.ts b/packages/core/schematics/migrations/strict-templates-default/migration.spec.ts index 6a942a24e9df..9f8c51642137 100644 --- a/packages/core/schematics/migrations/strict-templates-default/migration.spec.ts +++ b/packages/core/schematics/migrations/strict-templates-default/migration.spec.ts @@ -7,7 +7,7 @@ */ import {HostTree} from '@angular-devkit/schematics'; -import {UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {UnitTestTree} from '@angular-devkit/schematics/testing'; import {migrate} from './index'; function parseConfig(tree: UnitTestTree, path: string) { @@ -28,6 +28,7 @@ describe('strict-templates-default migration', () => { root: '', architect: { build: { + builder: '@angular/build:application', options: { tsConfig: './tsconfig.json', }, @@ -197,4 +198,41 @@ describe('strict-templates-default migration', () => { expect(baseTsconfig.angularCompilerOptions).toBeDefined(); expect(appTsconfig.angularCompilerOptions).toBeUndefined(); }); + + it('should not migrate tsconfig files of projects that do not use an Angular builder', async () => { + tree.overwrite( + '/angular.json', + JSON.stringify({ + version: 1, + projects: { + 'angular-app': { + root: '', + architect: { + build: { + builder: '@angular/build:application', + options: {tsConfig: './tsconfig.app.json'}, + }, + }, + }, + 'node-lib': { + root: '', + architect: { + build: { + builder: '@nx/js:tsc', + options: {tsConfig: './tsconfig.lib.json'}, + }, + }, + }, + }, + }), + ); + tree.create('/tsconfig.app.json', JSON.stringify({compilerOptions: {target: 'es2020'}})); + tree.create('/tsconfig.lib.json', JSON.stringify({compilerOptions: {target: 'es2020'}})); + + await migrate()(tree, {} as any); + + const appTsconfig = parseConfig(tree, '/tsconfig.app.json'); + expect(appTsconfig.angularCompilerOptions.strictTemplates).toBe(false); + expect(parseConfig(tree, '/tsconfig.lib.json').angularCompilerOptions).toBeUndefined(); + }); }); diff --git a/packages/core/schematics/ng-generate/control-flow-migration/README.md b/packages/core/schematics/ng-generate/control-flow-migration/README.md index 70f75a99b199..9f1ad7e0eefd 100644 --- a/packages/core/schematics/ng-generate/control-flow-migration/README.md +++ b/packages/core/schematics/ng-generate/control-flow-migration/README.md @@ -3,10 +3,11 @@ Angular v17 introduces a new control flow syntax. This migration replaces the existing usages of `*ngIf`, `*ngFor`, and `*ngSwitch` to their equivalent block syntax. Existing ng-templates are preserved in case they are used elsewhere in -the template. It has the following option: +the template. It has the following options: - `path` - Relative path within the project that the migration should apply to. Can be used to migrate specific sub-directories individually. Defaults to the project root. +- `format` - Whether to reformat the templates that the migration touches. Defaults to `true`. #### Before diff --git a/packages/core/schematics/ng-generate/control-flow-migration/schema.json b/packages/core/schematics/ng-generate/control-flow-migration/schema.json index e8a49dbd4850..cb2b12ade916 100644 --- a/packages/core/schematics/ng-generate/control-flow-migration/schema.json +++ b/packages/core/schematics/ng-generate/control-flow-migration/schema.json @@ -14,7 +14,7 @@ "type": "boolean", "description": "Enables reformatting of your templates", "x-prompt": "Should the migration reformat your templates?", - "default": "true" + "default": true } } } diff --git a/packages/core/schematics/ng-generate/inject-migration/README.md b/packages/core/schematics/ng-generate/inject-migration/README.md index b26e33549e71..7bd9716b64cc 100644 --- a/packages/core/schematics/ng-generate/inject-migration/README.md +++ b/packages/core/schematics/ng-generate/inject-migration/README.md @@ -18,7 +18,7 @@ import {DI_TOKEN} from './token'; export class MyComp { constructor( private service: MyService, - @Inject(TOKEN) @Optional() readonly token: string, + @Inject(DI_TOKEN) @Optional() readonly token: string, ) {} } ``` @@ -76,7 +76,7 @@ export class MyComp { **After:** ```typescript -import {Component} from '@angular/core'; +import {Component, inject} from '@angular/core'; import {MyService} from './service'; @Component({}) diff --git a/packages/core/schematics/ng-generate/ngclass-to-class-migration/ngclass_to_class_migration_spec.ts b/packages/core/schematics/ng-generate/ngclass-to-class-migration/ngclass_to_class_migration_spec.ts index 3973a6f8b1f5..67d677f896e5 100644 --- a/packages/core/schematics/ng-generate/ngclass-to-class-migration/ngclass_to_class_migration_spec.ts +++ b/packages/core/schematics/ng-generate/ngclass-to-class-migration/ngclass_to_class_migration_spec.ts @@ -7,7 +7,7 @@ */ import {normalize, virtualFs} from '@angular-devkit/core'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; import {resolve} from 'path'; @@ -899,7 +899,7 @@ describe('NgClass migration', () => { expect(content).toContain(`
    `); }); - it('should not migrate string literal class list', async () => { + it('should migrate string literal class list to [class]', async () => { writeFile( '/app.component.ts', ` @@ -917,7 +917,280 @@ describe('NgClass migration', () => { await runMigration(); const content = tree.readContent('/app.component.ts'); - expect(content).toContain(`
    `); + expect(content).toContain(`
    `); + }); + + it('should migrate array literal to [class]', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: \` +
    + \` }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain(`
    `); + }); + + it('should migrate array with single element to [class]', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: \` +
    + \` }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain(`
    `); + }); + + it('should migrate string with empty value to [class]=""', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: \` +
    + \` }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain(`
    `); + }); + + it('should not migrate a ternary whose branches are string literals', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: \` +
    + \` }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain(`
    `); + }); + + it('should not migrate a concatenation of string literals', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: \` +
    + \` }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain(`
    `); + }); + + it('should not migrate an array whose entry contains a space', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: \` +
    + \` }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain(`
    `); + }); + + it('should migrate a double-quoted literal into a single-quoted attribute', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: \` +
    + \` }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain(`
    `); + }); + + it('should migrate an array of double-quoted entries into a single-quoted attribute', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: \` +
    + \` }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain(`
    `); + }); + + it('should migrate a template literal to [class]', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: '
    ', + }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain('
    '); + }); + + it('should remove the NgClass import once a string literal binding is migrated', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: \` +
    + \` }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain(`
    `); + expect(content).not.toContain("import {NgClass} from '@angular/common';"); + }); + + it('should migrate an object literal with double-quoted keys into a single-quoted attribute', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: \` +
    + \` }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain(`
    `); + }); + + it('should migrate a condition containing a double-quoted string into a single-quoted attribute', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: \` +
    + \` }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain(`
    `); + }); + + it('should migrate a string literal value containing a double quote into a single-quoted attribute', async () => { + writeFile( + '/app.component.ts', + ` + import {Component} from '@angular/core'; + import {NgClass} from '@angular/common'; + @Component({ + imports: [NgClass], + template: \` +
    + \` }) + export class Cmp {} + `, + ); + + await runMigration(); + + const content = tree.readContent('/app.component.ts'); + expect(content).toContain(`
    `); }); it('should not migrate dynamic variable bindings', async () => { diff --git a/packages/core/schematics/ng-generate/ngclass-to-class-migration/util.ts b/packages/core/schematics/ng-generate/ngclass-to-class-migration/util.ts index 64f30f1a9961..6e3e14bdbc34 100644 --- a/packages/core/schematics/ng-generate/ngclass-to-class-migration/util.ts +++ b/packages/core/schematics/ng-generate/ngclass-to-class-migration/util.ts @@ -296,6 +296,19 @@ export class NgClassCollector extends RecursiveVisitor { attr.valueSpan.end.offset, ); + // `[class]` supports the same string and string[] shapes as `[ngClass]`, so a static + // string or array literal can be handed to it unchanged. + const staticLiteral = tryParseStaticStringOrArrayLiteral(expr); + + if (staticLiteral !== null) { + this.replacements.push({ + start: attr.sourceSpan.start.offset, + end: attr.sourceSpan.end.offset, + replacement: buildAttribute('[class]', staticLiteral), + }); + continue; + } + const parseResult = tryParseStaticObjectLiteral(expr); if (parseResult === null) { @@ -316,7 +329,7 @@ export class NgClassCollector extends RecursiveVisitor { replacement = '[class]=""'; } else { // Normal single condition: use [class.className]="condition" - replacement = `[class.${key}]="${value}"`; + replacement = buildAttribute(`[class.${key}]`, value); } } else { // Multiple bindings. If any original key contained spaces, [class]="{...}" object @@ -336,7 +349,7 @@ export class NgClassCollector extends RecursiveVisitor { if (config.migrateSpaceSeparatedKey && canExpand) { replacement = staticMatch - .map(({key, value}) => `[class.${key}]="${value}"`) + .map(({key, value}) => buildAttribute(`[class.${key}]`, value)) .join(' '); } else { // Cannot produce valid [class]="..." output — leave binding as-is. @@ -345,7 +358,7 @@ export class NgClassCollector extends RecursiveVisitor { } } else { // All keys are single class names: [class]="{'cls1': cond1, 'cls2': cond2}" is valid. - replacement = `[class]="${expr}"`; + replacement = buildAttribute('[class]', expr); } } @@ -370,6 +383,91 @@ export class NgClassCollector extends RecursiveVisitor { } } +/** + * Attempts to parse an expression as a static string literal or as an array literal whose + * elements are all static string literals. Returns the expression text to place inside the + * generated `[class]="..."` binding, or `null` when the expression isn't statically known. + * + * `[class]` accepts `string | string[] | Set | {[key: string]: any}` (see + * `toStylingKeyValueArray` in `packages/core/src/render3/instructions/styling.ts`), so both + * shapes map onto it without a behavioural change. Anything dynamic - identifiers, calls, + * ternaries, concatenations - is rejected so that those bindings keep using `NgClass`. + */ +function tryParseStaticStringOrArrayLiteral(expr: string): string | null { + const trimmedExpr = expr.trim(); + + let initializer: ts.Expression; + try { + const sourceFile = ts.createSourceFile( + 'temp.ts', + `const value = ${trimmedExpr}`, + ts.ScriptTarget.Latest, + true, + ); + + const variableStatement = sourceFile.statements[0]; + if (!ts.isVariableStatement(variableStatement)) { + return null; + } + + const declaration = variableStatement.declarationList.declarations[0]; + if (!declaration?.initializer) { + return null; + } + + initializer = declaration.initializer; + } catch { + return null; + } + + // A lone string literal, e.g. [ngClass]="'first second'". + if (isStaticStringLiteral(initializer)) { + return trimmedExpr; + } + + if (!ts.isArrayLiteralExpression(initializer)) { + return null; + } + + // An empty array is already handled by `tryParseStaticObjectLiteral`, which maps it to + // `[class]=""`. Defer to it so that behaviour stays unchanged. + if (initializer.elements.length === 0) { + return null; + } + + for (const element of initializer.elements) { + if (!isStaticStringLiteral(element)) { + return null; + } + + // `NgClass` splits each array entry on whitespace, but `[class]` drops any entry that + // contains a space (see `classKeyValueArraySet`), so such an array cannot be forwarded. + if (/\s/.test(element.text)) { + return null; + } + } + + return trimmedExpr; +} + +/** + * Builds an attribute for the migrated template. The value is emitted verbatim, so the quote + * character has to match it: a value containing a double quote (which can only come from a + * single-quoted attribute such as `[ngClass]='["a", "b"]'`, and therefore never contains a + * single quote) has to be wrapped in single quotes, or it would terminate the attribute early + * and produce invalid HTML. + */ +function buildAttribute(name: string, value: string): string { + return value.includes('"') ? `${name}='${value}'` : `${name}="${value}"`; +} + +/** Whether the expression is a string literal with no interpolation. */ +function isStaticStringLiteral( + node: ts.Expression, +): node is ts.StringLiteral | ts.NoSubstitutionTemplateLiteral { + return ts.isStringLiteral(node) || ts.isNoSubstitutionTemplateLiteral(node); +} + function tryParseStaticObjectLiteral(expr: string): { bindings: {key: string; value: string}[]; hasSpaceSeparatedKeys: boolean; @@ -508,9 +606,12 @@ function extractPropertyKey(name: ts.PropertyName): string | null { * Extracts text from property value */ function extractPropertyValue(initializer: ts.Expression): string | null { - // String literals: 'value' or "value" - if (ts.isStringLiteral(initializer)) { - return `'${initializer.text}'`; + // String literals: 'value', "value" or `value`. Keep them exactly as written rather than + // re-wrapping their text in single quotes: the text may contain a quote (e.g. "\"yes\"" in a + // single-quoted attribute), which would then clash with the quote `buildAttribute` picks for + // the attribute. + if (isStaticStringLiteral(initializer)) { + return initializer.getText(); } // Numeric literals: 42, 3.14 diff --git a/packages/core/schematics/ng-generate/ngstyle-to-style-migration/README.md b/packages/core/schematics/ng-generate/ngstyle-to-style-migration/README.md index 9061c5d4709f..54ff2d9a11c8 100644 --- a/packages/core/schematics/ng-generate/ngstyle-to-style-migration/README.md +++ b/packages/core/schematics/ng-generate/ngstyle-to-style-migration/README.md @@ -20,12 +20,22 @@ ng generate @angular/core:ngstyle-to-style --path src/app/sub-component The schematic will attempt to find all the places in the templates where the directive is used and check if it can be converted to [style]. -Example: +An object with a single key becomes a binding to that one style property: ```html -
    - -
    -
    +
    + + +
    +``` + +An object with more than one key becomes a single `[style]` binding: + +```html + +
    + + +
    ``` diff --git a/packages/core/schematics/ng-generate/route-lazy-loading/to-lazy-routes.ts b/packages/core/schematics/ng-generate/route-lazy-loading/to-lazy-routes.ts index c275759e80b8..cccb88bbd298 100644 --- a/packages/core/schematics/ng-generate/route-lazy-loading/to-lazy-routes.ts +++ b/packages/core/schematics/ng-generate/route-lazy-loading/to-lazy-routes.ts @@ -73,6 +73,17 @@ export function migrateFileToLazyRoutes( /** Finds route object that can be migrated */ function findRoutesArrayToMigrate(sourceFile: ts.SourceFile, typeChecker: ts.TypeChecker) { const routesArrays: RouteData[] = []; + const routeFileImports = sourceFile.statements.filter(ts.isImportDeclaration); + + const addRouteArray = (array: ts.ArrayLiteralExpression) => { + if (!routesArrays.some((x) => x.array === array)) { + routesArrays.push({ + routeFilePath: sourceFile.fileName, + array, + routeFileImports, + }); + } + }; sourceFile.forEachChild(function walk(node) { if (ts.isCallExpression(node)) { @@ -82,15 +93,10 @@ function findRoutesArrayToMigrate(sourceFile: ts.SourceFile, typeChecker: ts.Typ isProvideRouterCallExpression(node, typeChecker) ) { const arg = node.arguments[0]; // ex: RouterModule.forRoot(routes) or provideRouter(routes) - const routeFileImports = sourceFile.statements.filter(ts.isImportDeclaration); if (ts.isArrayLiteralExpression(arg) && arg.elements.length > 0) { // ex: inline routes array: RouterModule.forRoot([{ path: 'test', component: TestComponent }]) - routesArrays.push({ - routeFilePath: sourceFile.fileName, - array: arg as ts.ArrayLiteralExpression, - routeFileImports, - }); + addRouteArray(arg); } else if (ts.isIdentifier(arg)) { // ex: reference to routes array: RouterModule.forRoot(routes) // RouterModule.forRoot(routes), provideRouter(routes) @@ -102,11 +108,7 @@ function findRoutesArrayToMigrate(sourceFile: ts.SourceFile, typeChecker: ts.Typ const initializer = declaration.initializer; if (initializer && ts.isArrayLiteralExpression(initializer)) { // ex: const routes = [{ path: 'test', component: TestComponent }]; - routesArrays.push({ - routeFilePath: sourceFile.fileName, - array: initializer, - routeFileImports, - }); + addRouteArray(initializer); } } } @@ -121,16 +123,7 @@ function findRoutesArrayToMigrate(sourceFile: ts.SourceFile, typeChecker: ts.Typ initializer.elements.length > 0 ) { // ex: const routes: Routes = [{ path: 'test', component: TestComponent }]; - if (routesArrays.find((x) => x.array === initializer)) { - // already exists - return; - } - - routesArrays.push({ - routeFilePath: sourceFile.fileName, - array: initializer, - routeFileImports: sourceFile.statements.filter(ts.isImportDeclaration), - }); + addRouteArray(initializer); } } } else if (ts.isExportAssignment(node)) { @@ -142,11 +135,7 @@ function findRoutesArrayToMigrate(sourceFile: ts.SourceFile, typeChecker: ts.Typ } if (ts.isArrayLiteralExpression(expression)) { - routesArrays.push({ - routeFilePath: sourceFile.fileName, - array: expression, - routeFileImports: sourceFile.statements.filter(ts.isImportDeclaration), - }); + addRouteArray(expression); } else if (ts.isIdentifier(expression)) { manageRoutesExportedByDefault(routesArrays, typeChecker, expression, sourceFile); } @@ -181,7 +170,7 @@ function migrateRoutesArray( ): {migratedRoutes: RouteMigrationData[]; skippedRoutes: RouteMigrationData[]} { const migratedRoutes: RouteMigrationData[] = []; const skippedRoutes: RouteMigrationData[] = []; - const importsToRemove: ts.ImportDeclaration[] = []; + const importsToRemove = new Set(); for (const route of routesArray) { route.array.elements.forEach((element) => { @@ -193,7 +182,9 @@ function migrateRoutesArray( } = migrateRoute(element, route, typeChecker, reflector, tracker); migratedRoutes.push(...migrated); skippedRoutes.push(...toBeSkipped); - importsToRemove.push(...toBeRemoved); + for (const importDecl of toBeRemoved) { + importsToRemove.add(importDecl); + } } }); } @@ -382,11 +373,13 @@ const manageRoutesExportedByDefault = ( declaration.initializer && ts.isArrayLiteralExpression(declaration.initializer) ) { - routesArrays.push({ - routeFilePath: sourceFile.fileName, - array: declaration.initializer, - routeFileImports: sourceFile.statements.filter(ts.isImportDeclaration), - }); + if (!routesArrays.some((x) => x.array === declaration.initializer)) { + routesArrays.push({ + routeFilePath: sourceFile.fileName, + array: declaration.initializer, + routeFileImports: sourceFile.statements.filter(ts.isImportDeclaration), + }); + } } } }; diff --git a/packages/core/schematics/ng-generate/router-testing-module-migration/README.md b/packages/core/schematics/ng-generate/router-testing-module-migration/README.md index 81ad2f0ae245..8b9db39a78f5 100644 --- a/packages/core/schematics/ng-generate/router-testing-module-migration/README.md +++ b/packages/core/schematics/ng-generate/router-testing-module-migration/README.md @@ -1,33 +1,73 @@ -# RouterTestingModule Migration +# RouterTestingModule migration -This migration automatically converts deprecated `RouterTestingModule` usages to the recommended modern APIs. +This schematic converts deprecated `RouterTestingModule` usages in tests to `RouterModule`. -## What it does +## How to run this migration? -- Replaces `RouterTestingModule.withRoutes([...])` with `RouterModule.forRoot([...])` for NgModule tests -- Replaces `RouterTestingModule` with `RouterModule.forRoot([])` when no routes are provided -- For standalone tests (detected by presence of `providers`), moves to `provideRouter([...])` instead -- Updates import statements to use `@angular/router` instead of `@angular/router/testing` -- Preserves other imports and test configuration +The migration can be run using the following command: -## Files +```bash +ng generate @angular/core:router-testing-module-migration +``` -- `router_testing_module_migration.ts` - Main migration logic using TsurgeFunnelMigration -- `index.ts` - Entry point for the schematic -- `../../test/router_testing_to_provide_router_spec.ts` - Comprehensive test suite -- `MIGRATION_NOTES.md` - Detailed documentation with examples -- `BUILD.bazel` - Bazel build configuration +By default, the migration will go over the entire application. If you want to apply this migration to a subset of the files, you can pass the path argument as shown below: -## Running the migration +```bash +ng generate @angular/core:router-testing-module-migration --path src/app/sub-component +``` -The migration runs automatically as part of `ng update @angular/core` for v21.0.0+. +### How does it work? -To run manually: +The schematic looks at `*.spec.ts` files only. In each one it replaces `RouterTestingModule` in the `imports` of a `TestBed` configuration, adds the `RouterModule` import from `@angular/router`, and drops `RouterTestingModule` from the `@angular/router/testing` import. Your other entries and the rest of the test configuration are kept, with `RouterModule` appended to the end of the `imports` array. -```bash -ng update @angular/core --migrate-only router-testing-to-provide-router +Example: + +```ts +// Before +import {RouterTestingModule} from '@angular/router/testing'; + +TestBed.configureTestingModule({ + imports: [RouterTestingModule.withRoutes(routes)], +}); + +// After +import {RouterModule} from '@angular/router'; + +TestBed.configureTestingModule({ + imports: [RouterModule.forRoot(routes)], +}); +``` + +When no routes are given, or the routes array is empty and no options are passed, `RouterTestingModule` becomes `RouterModule` on its own: + +```ts +// Before +import {RouterTestingModule} from '@angular/router/testing'; + +TestBed.configureTestingModule({ + imports: [RouterTestingModule], +}); + +// After +import {RouterModule} from '@angular/router'; + +TestBed.configureTestingModule({ + imports: [RouterModule], +}); ``` +Router options passed to `withRoutes` are carried over: + +```ts +// Before +imports: [RouterTestingModule.withRoutes(routes, {initialNavigation: 'enabledBlocking'})], + +// After +imports: [RouterModule.forRoot(routes, {initialNavigation: 'enabledBlocking'})], +``` + +The schematic also adds `provideLocationMocks()` to the providers of tests that read `SpyLocation.urlChanges`, because `RouterModule` does not set up the location mocks that `RouterTestingModule` did. + ## Related - Issue: angular/angular#54853 diff --git a/packages/core/schematics/ng-generate/service-migration/README.md b/packages/core/schematics/ng-generate/service-migration/README.md index 4d36157a3958..cdd8d4284df9 100644 --- a/packages/core/schematics/ng-generate/service-migration/README.md +++ b/packages/core/schematics/ng-generate/service-migration/README.md @@ -33,10 +33,28 @@ import {Service} from '@angular/core'; export class MyService {} ``` +A class declared without options is not provided automatically, so the migration keeps that behavior +with `autoProvided: false`: + +```ts +// Before +import {Injectable} from '@angular/core'; + +@Injectable() +export class MyService {} + +// After +import {Service} from '@angular/core'; + +@Service({autoProvided: false}) +export class MyService {} +``` + ### Limitations To avoid introducing breakages into your app, the schematic will skip the following classes: -- Using constructor-based dependency injection. +- Using constructor-based dependency injection, either on the class itself or on the closest + ancestor that defines a constructor. - Passing any options into `@Injectable` aside from `providedIn`. - Passing anything aside from `root` into `providedIn`. diff --git a/packages/core/schematics/test/all-migrations.spec.ts b/packages/core/schematics/test/all-migrations.spec.ts index dae338543057..4db625b9be16 100644 --- a/packages/core/schematics/test/all-migrations.spec.ts +++ b/packages/core/schematics/test/all-migrations.spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {rmSync} from 'node:fs'; import fs from 'fs'; import {resolve} from 'path'; @@ -72,7 +72,7 @@ describe('all migrations', () => { }); } - function createTests(migrationName: string) { + async function createTests(migrationName: string) { // Regression test for: https://github.com/angular/angular/issues/36346. it('should not throw if non-existent symbols are imported with rootDirs', async () => { writeFile( diff --git a/packages/core/schematics/test/cleanup_unused_imports_migration_spec.ts b/packages/core/schematics/test/cleanup_unused_imports_migration_spec.ts index f978f6b66ccd..e2e52dbf1fa7 100644 --- a/packages/core/schematics/test/cleanup_unused_imports_migration_spec.ts +++ b/packages/core/schematics/test/cleanup_unused_imports_migration_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {resolve} from 'node:path'; import {rmSync} from 'node:fs'; diff --git a/packages/core/schematics/test/common_to_standalone_migration_spec.ts b/packages/core/schematics/test/common_to_standalone_migration_spec.ts index d8e27c4971dd..85c13efd63a4 100644 --- a/packages/core/schematics/test/common_to_standalone_migration_spec.ts +++ b/packages/core/schematics/test/common_to_standalone_migration_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {resolve} from 'path'; import {rmSync} from 'node:fs'; diff --git a/packages/core/schematics/test/control_flow_migration_spec.ts b/packages/core/schematics/test/control_flow_migration_spec.ts index b2a1ca899f2b..9af7b8ee1d27 100644 --- a/packages/core/schematics/test/control_flow_migration_spec.ts +++ b/packages/core/schematics/test/control_flow_migration_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, logging, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {rmSync} from 'node:fs'; import {resolve} from 'path'; diff --git a/packages/core/schematics/test/inject_migration_spec.ts b/packages/core/schematics/test/inject_migration_spec.ts index 81b9fdb18741..3db564c06b66 100644 --- a/packages/core/schematics/test/inject_migration_spec.ts +++ b/packages/core/schematics/test/inject_migration_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {rmSync} from 'node:fs'; import {resolve} from 'node:path'; diff --git a/packages/core/schematics/test/ngstyle_to_style_migration_spec.ts b/packages/core/schematics/test/ngstyle_to_style_migration_spec.ts index bd888f55bc3e..18012ce12c66 100644 --- a/packages/core/schematics/test/ngstyle_to_style_migration_spec.ts +++ b/packages/core/schematics/test/ngstyle_to_style_migration_spec.ts @@ -7,7 +7,7 @@ */ import {normalize, virtualFs} from '@angular-devkit/core'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; import {resolve} from 'path'; diff --git a/packages/core/schematics/test/output_migration_spec.ts b/packages/core/schematics/test/output_migration_spec.ts index 42138dada3ca..ca636243f6cf 100644 --- a/packages/core/schematics/test/output_migration_spec.ts +++ b/packages/core/schematics/test/output_migration_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {resolve} from 'node:path'; import {rmSync} from 'node:fs'; diff --git a/packages/core/schematics/test/project_tsconfig_paths_spec.ts b/packages/core/schematics/test/project_tsconfig_paths_spec.ts index b30a72da3460..3752152a54de 100644 --- a/packages/core/schematics/test/project_tsconfig_paths_spec.ts +++ b/packages/core/schematics/test/project_tsconfig_paths_spec.ts @@ -7,7 +7,7 @@ */ import {HostTree} from '@angular-devkit/schematics'; -import {UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {UnitTestTree} from '@angular-devkit/schematics/testing'; import {getProjectTsConfigPaths} from '../utils/project_tsconfig_paths'; @@ -100,4 +100,59 @@ describe('project tsconfig paths', () => { expect((await getProjectTsConfigPaths(testTree)).buildPaths).toEqual(['tsconfig.json']); }); + + it('should only return tsconfig paths of Angular builders when `angularBuildersOnly` is set', async () => { + testTree.create('/tsconfig.app.json', ''); + testTree.create('/tsconfig.nx.json', ''); + testTree.create('/tsconfig.lib.json', ''); + testTree.create('/tsconfig.ngx-build-plus.json', ''); + testTree.create( + '/angular.json', + JSON.stringify({ + version: 1, + projects: { + angular_app: { + root: '', + architect: { + build: { + builder: '@angular/build:application', + options: {tsConfig: './tsconfig.app.json'}, + }, + }, + }, + nx_angular_app: { + root: '', + architect: { + build: { + builder: '@nx/angular:webpack-browser', + options: {tsConfig: './tsconfig.nx.json'}, + }, + }, + }, + node_lib: { + root: '', + architect: { + build: {builder: '@nx/js:tsc', options: {tsConfig: './tsconfig.lib.json'}}, + }, + }, + ngx_build_plus_app: { + root: '', + architect: { + build: { + builder: 'ngx-build-plus:browser', + options: {tsConfig: './tsconfig.ngx-build-plus.json'}, + }, + }, + }, + }, + }), + ); + + const {buildPaths} = await getProjectTsConfigPaths(testTree, {angularBuildersOnly: true}); + expect(buildPaths).toEqual([ + 'tsconfig.app.json', + 'tsconfig.nx.json', + 'tsconfig.ngx-build-plus.json', + ]); + }); }); diff --git a/packages/core/schematics/test/queries_migration_spec.ts b/packages/core/schematics/test/queries_migration_spec.ts index 4ce00da1b368..2491ecfce470 100644 --- a/packages/core/schematics/test/queries_migration_spec.ts +++ b/packages/core/schematics/test/queries_migration_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {resolve} from 'node:path'; import {rmSync} from 'node:fs'; diff --git a/packages/core/schematics/test/router-testing-module-migration_spec.ts b/packages/core/schematics/test/router-testing-module-migration_spec.ts index b222f9b36ee9..62f7a29e75b8 100644 --- a/packages/core/schematics/test/router-testing-module-migration_spec.ts +++ b/packages/core/schematics/test/router-testing-module-migration_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {resolve} from 'node:path'; import {rmSync} from 'node:fs'; diff --git a/packages/core/schematics/test/self_closing_tags_migration_spec.ts b/packages/core/schematics/test/self_closing_tags_migration_spec.ts index 1e753f88c2cc..822d1a6af05a 100644 --- a/packages/core/schematics/test/self_closing_tags_migration_spec.ts +++ b/packages/core/schematics/test/self_closing_tags_migration_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {resolve} from 'node:path'; import {rmSync} from 'node:fs'; diff --git a/packages/core/schematics/test/service_migration_spec.ts b/packages/core/schematics/test/service_migration_spec.ts index 3435a5c90e01..a0e09b95a094 100644 --- a/packages/core/schematics/test/service_migration_spec.ts +++ b/packages/core/schematics/test/service_migration_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {resolve} from 'node:path'; import {rmSync} from 'node:fs'; diff --git a/packages/core/schematics/test/signal_input_migration_spec.ts b/packages/core/schematics/test/signal_input_migration_spec.ts index f397cb271c32..3eb0b1be9da5 100644 --- a/packages/core/schematics/test/signal_input_migration_spec.ts +++ b/packages/core/schematics/test/signal_input_migration_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {resolve} from 'node:path'; import {rmSync} from 'node:fs'; diff --git a/packages/core/schematics/test/signals_migration_spec.ts b/packages/core/schematics/test/signals_migration_spec.ts index c38cf61ff1c4..69baab511399 100644 --- a/packages/core/schematics/test/signals_migration_spec.ts +++ b/packages/core/schematics/test/signals_migration_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {resolve} from 'node:path'; import {rmSync} from 'node:fs'; diff --git a/packages/core/schematics/test/standalone_migration_spec.ts b/packages/core/schematics/test/standalone_migration_spec.ts index bfb83074730e..cc9fd37d35c7 100644 --- a/packages/core/schematics/test/standalone_migration_spec.ts +++ b/packages/core/schematics/test/standalone_migration_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {rmSync} from 'node:fs'; import {resolve} from 'node:path'; diff --git a/packages/core/schematics/test/standalone_routes_spec.ts b/packages/core/schematics/test/standalone_routes_spec.ts index 72230ce70e45..9f8199554ca2 100644 --- a/packages/core/schematics/test/standalone_routes_spec.ts +++ b/packages/core/schematics/test/standalone_routes_spec.ts @@ -9,7 +9,7 @@ import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core'; import {TempScopedNodeJsSyncHost} from '@angular-devkit/core/node/testing'; import {HostTree} from '@angular-devkit/schematics'; -import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; import {rmSync} from 'node:fs'; import {resolve} from 'path'; diff --git a/packages/core/schematics/tsconfig.json b/packages/core/schematics/tsconfig.json index 6f343d829492..5771dc1dc173 100644 --- a/packages/core/schematics/tsconfig.json +++ b/packages/core/schematics/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "strict": true, "noImplicitReturns": true, "noImplicitOverride": true, "noFallthroughCasesInSwitch": true, diff --git a/packages/core/schematics/utils/change_tracker.ts b/packages/core/schematics/utils/change_tracker.ts index 5d35cbc19122..4f4a7cc3c2ca 100644 --- a/packages/core/schematics/utils/change_tracker.ts +++ b/packages/core/schematics/utils/change_tracker.ts @@ -187,6 +187,16 @@ export class ChangeTracker { const changes = this._changes.get(file); if (changes) { + const isDuplicate = changes.some( + (current) => + current.start === change.start && + current.removeLength === change.removeLength && + current.text === change.text, + ); + if (isDuplicate) { + return; + } + // Insert the changes in reverse so that they're applied in reverse order. // This ensures that the offsets of subsequent changes aren't affected by // previous changes changing the file's text. diff --git a/packages/core/schematics/utils/project_tsconfig_paths.ts b/packages/core/schematics/utils/project_tsconfig_paths.ts index a195a0238a84..dda7e7cb3ed5 100644 --- a/packages/core/schematics/utils/project_tsconfig_paths.ts +++ b/packages/core/schematics/utils/project_tsconfig_paths.ts @@ -12,9 +12,14 @@ import {Tree} from '@angular-devkit/schematics'; /** * Gets all tsconfig paths from a CLI project by reading the workspace configuration * and looking for common tsconfig locations. + * + * When `angularBuildersOnly` is set, only targets that use an Angular builder are considered. + * This avoids picking up tsconfig files of non-Angular projects in a mixed workspace (e.g. an Nx + * monorepo), which should not be touched by Angular migrations. */ export async function getProjectTsConfigPaths( tree: Tree, + {angularBuildersOnly = false}: {angularBuildersOnly?: boolean} = {}, ): Promise<{buildPaths: string[]; testPaths: string[]}> { // Start with some tsconfig paths that are generally used within CLI projects. Note // that we are not interested in IDE-specific tsconfig files (e.g. /tsconfig.json) @@ -24,6 +29,10 @@ export async function getProjectTsConfigPaths( const workspace = await getWorkspace(tree); for (const [, project] of workspace.projects) { for (const [name, target] of project.targets) { + if (angularBuildersOnly && !isAngularBuilder(target.builder)) { + continue; + } + for (const [, options] of allTargetOptions(target)) { const tsConfig = options['tsConfig']; // Filter out tsconfig files that don't exist in the CLI project. @@ -46,6 +55,22 @@ export async function getProjectTsConfigPaths( }; } +/** Prefixes of Angular builders, including common community builders (e.g. Nx). */ +const angularBuilderPrefixes = [ + '@angular-devkit/build-angular:', + '@angular/build:', + '@nx/angular:', + '@angular-builders/', + 'ngx-build-plus:', +]; + +/** Whether the given builder is a recognized Angular builder. */ +function isAngularBuilder(builder: string | undefined): boolean { + return ( + builder !== undefined && angularBuilderPrefixes.some((prefix) => builder.startsWith(prefix)) + ); +} + /** Get options for all configurations for the passed builder target. */ function* allTargetOptions( target: workspaces.TargetDefinition, diff --git a/packages/core/schematics/utils/template_ast_visitor.ts b/packages/core/schematics/utils/template_ast_visitor.ts index ee250783a4e8..7f17d7e793aa 100644 --- a/packages/core/schematics/utils/template_ast_visitor.ts +++ b/packages/core/schematics/utils/template_ast_visitor.ts @@ -10,14 +10,12 @@ import type { TmplAstBoundAttribute, TmplAstBoundEvent, TmplAstBoundText, - TmplAstComponent, TmplAstContent, TmplAstDeferredBlock, TmplAstDeferredBlockError, TmplAstDeferredBlockLoading, TmplAstDeferredBlockPlaceholder, TmplAstDeferredTrigger, - TmplAstDirective, TmplAstElement, TmplAstForLoopBlock, TmplAstForLoopBlockEmpty, @@ -38,6 +36,8 @@ import type { TmplAstUnknownBlock, TmplAstVariable, TmplAstContentBlock, + TmplAstBoundaryBlock, + TmplAstBoundaryErrorBlock, } from '@angular/compiler'; /** @@ -87,10 +87,10 @@ export class TemplateAstVisitor implements TmplAstRecursiveVisitor { visitIfBlock(block: TmplAstIfBlock): void {} visitIfBlockBranch(block: TmplAstIfBlockBranch): void {} visitLetDeclaration(decl: TmplAstLetDeclaration): void {} - visitComponent(component: TmplAstComponent): void {} - visitDirective(directive: TmplAstDirective): void {} visitSwitchExhaustiveCheck(block: TmplAstSwitchExhaustiveCheck): void {} visitContentBlock(block: TmplAstContentBlock): void {} + visitBoundaryBlock(block: TmplAstBoundaryBlock): void {} + visitBoundaryErrorBlock(block: TmplAstBoundaryErrorBlock): void {} /** * Visits all the provided nodes in order using this Visitor's visit methods. diff --git a/packages/core/schematics/utils/tsurge/helpers/angular_devkit/run_in_devkit.spec.ts b/packages/core/schematics/utils/tsurge/helpers/angular_devkit/run_in_devkit.spec.ts index cdad43a28e0d..453c46f0e487 100644 --- a/packages/core/schematics/utils/tsurge/helpers/angular_devkit/run_in_devkit.spec.ts +++ b/packages/core/schematics/utils/tsurge/helpers/angular_devkit/run_in_devkit.spec.ts @@ -7,7 +7,7 @@ */ import {HostTree} from '@angular-devkit/schematics'; -import {UnitTestTree} from '@angular-devkit/schematics/testing/index.js'; +import {UnitTestTree} from '@angular-devkit/schematics/testing'; import { confirmAsSerializable, ProgramInfo, diff --git a/packages/core/src/animation/interfaces.ts b/packages/core/src/animation/interfaces.ts index 77877e9dd107..2f7dbf908aaf 100644 --- a/packages/core/src/animation/interfaces.ts +++ b/packages/core/src/animation/interfaces.ts @@ -92,6 +92,13 @@ export interface AnimationLViewData { } /** - * Function that returns the class or class list binded to the animate instruction + * Represents the class, class list, or a function returning the class or class list + * bound to an animate instruction. */ -export type AnimationClassBindingFn = () => string | string[] | undefined | null; +export type AnimationClassValue = + string | string[] | (() => AnimationClassValue) | undefined | null; + +/** + * Function that returns the class or class list bound to the animate instruction + */ +export type AnimationClassBindingFn = () => AnimationClassValue; diff --git a/packages/core/src/animation/queue.ts b/packages/core/src/animation/queue.ts index e5294fd78968..4345e66c2b99 100644 --- a/packages/core/src/animation/queue.ts +++ b/packages/core/src/animation/queue.ts @@ -38,11 +38,11 @@ export const ANIMATION_QUEUE = new InjectionToken( ); export function addToAnimationQueue( + animationQueue: AnimationQueue, injector: Injector, animationFns: VoidFunction | VoidFunction[], animationData?: AnimationLViewData, ) { - const animationQueue = injector.get(ANIMATION_QUEUE); if (Array.isArray(animationFns)) { for (const animateFn of animationFns) { animationQueue.queue.add(animateFn); @@ -62,10 +62,9 @@ export function addToAnimationQueue( } export function removeAnimationsFromQueue( - injector: Injector, + animationQueue: AnimationQueue, animationFns: VoidFunction | VoidFunction[], ) { - const animationQueue = injector.get(ANIMATION_QUEUE); if (Array.isArray(animationFns)) { for (const animateFn of animationFns) { animationQueue.queue.delete(animateFn); @@ -113,7 +112,9 @@ export function queueEnterAnimations( injector: Injector, enterAnimations: Map, ) { + const queue = injector.get(ANIMATION_QUEUE); + for (const [_, nodeAnimations] of enterAnimations) { - addToAnimationQueue(injector, nodeAnimations.animateFns); + addToAnimationQueue(queue, injector, nodeAnimations.animateFns); } } diff --git a/packages/core/src/animation/utils.ts b/packages/core/src/animation/utils.ts index 90a39b06cf25..db601c5cef3c 100644 --- a/packages/core/src/animation/utils.ts +++ b/packages/core/src/animation/utils.ts @@ -15,6 +15,7 @@ import { EnterNodeAnimations, LeaveNodeAnimations, AnimationClassBindingFn, + AnimationClassValue, } from './interfaces'; import {INJECTOR, LView, ANIMATIONS, DECLARATION_VIEW} from '../render3/interfaces/view'; import {RuntimeError, RuntimeErrorCode} from '../errors'; @@ -269,8 +270,13 @@ export function getLViewLeaveAnimations(lView: LView): Map 0 && elementHasClassList(element, elementData.classList) ) { - for (const klass of elementData.classList) { - renderer.removeClass(element as unknown as RElement, klass); - } + removeClasses(renderer, element, elementData.classList); } // We need to prevent any enter animation listeners from firing if they exist. cleanupEnterClassData(element); diff --git a/packages/core/src/application/application_ngmodule_factory_compiler.ts b/packages/core/src/application/application_ngmodule_factory_compiler.ts index 2a7420fad3c9..85e49dc2b4c1 100644 --- a/packages/core/src/application/application_ngmodule_factory_compiler.ts +++ b/packages/core/src/application/application_ngmodule_factory_compiler.ts @@ -28,47 +28,47 @@ export function compileNgModuleFactory( const moduleFactory = new R3NgModuleFactory(moduleType); - // All of the logic below is irrelevant for AOT-compiled code. + // Keep JIT-only dependencies in the conditional block so they can be tree-shaken in AOT. if (typeof ngJitMode !== 'undefined' && !ngJitMode) { return Promise.resolve(moduleFactory); - } + } else { + const compilerOptions = injector.get(COMPILER_OPTIONS, []).concat(options); - const compilerOptions = injector.get(COMPILER_OPTIONS, []).concat(options); + // Configure the compiler to use the provided options. This call may fail when multiple modules + // are bootstrapped with incompatible options, as a component can only be compiled according to + // a single set of options. + setJitOptions({ + defaultEncapsulation: _lastDefined(compilerOptions.map((opts) => opts.defaultEncapsulation)), + preserveWhitespaces: _lastDefined(compilerOptions.map((opts) => opts.preserveWhitespaces)), + }); - // Configure the compiler to use the provided options. This call may fail when multiple modules - // are bootstrapped with incompatible options, as a component can only be compiled according to - // a single set of options. - setJitOptions({ - defaultEncapsulation: _lastDefined(compilerOptions.map((opts) => opts.defaultEncapsulation)), - preserveWhitespaces: _lastDefined(compilerOptions.map((opts) => opts.preserveWhitespaces)), - }); + if (isComponentResourceResolutionQueueEmpty()) { + return Promise.resolve(moduleFactory); + } - if (isComponentResourceResolutionQueueEmpty()) { - return Promise.resolve(moduleFactory); - } + const compilerProviders = compilerOptions.flatMap((option) => option.providers ?? []); - const compilerProviders = compilerOptions.flatMap((option) => option.providers ?? []); + // In case there are no compiler providers, we just return the module factory as + // there won't be any resource loader. This can happen with Ivy, because AOT compiled + // modules can be still passed through "bootstrapModule". In that case we shouldn't + // unnecessarily require the JIT compiler. + if (compilerProviders.length === 0) { + return Promise.resolve(moduleFactory); + } - // In case there are no compiler providers, we just return the module factory as - // there won't be any resource loader. This can happen with Ivy, because AOT compiled - // modules can be still passed through "bootstrapModule". In that case we shouldn't - // unnecessarily require the JIT compiler. - if (compilerProviders.length === 0) { - return Promise.resolve(moduleFactory); + const compiler = getCompilerFacade({ + usage: JitCompilerUsage.Decorator, + kind: 'NgModule', + type: moduleType, + }); + const compilerInjector = Injector.create({providers: compilerProviders}); + const resourceLoader = compilerInjector.get(compiler.ResourceLoader); + // The resource loader can also return a string while the "resolveComponentResources" + // always expects a promise. Therefore we need to wrap the returned value in a promise. + return resolveComponentResources((url) => Promise.resolve(resourceLoader.get(url))).then( + () => moduleFactory, + ); } - - const compiler = getCompilerFacade({ - usage: JitCompilerUsage.Decorator, - kind: 'NgModule', - type: moduleType, - }); - const compilerInjector = Injector.create({providers: compilerProviders}); - const resourceLoader = compilerInjector.get(compiler.ResourceLoader); - // The resource loader can also return a string while the "resolveComponentResources" - // always expects a promise. Therefore we need to wrap the returned value in a promise. - return resolveComponentResources((url) => Promise.resolve(resourceLoader.get(url))).then( - () => moduleFactory, - ); } function _lastDefined(args: T[]): T | undefined { diff --git a/packages/core/src/application/application_ref.ts b/packages/core/src/application/application_ref.ts index 3a55545e50b6..97c331f9beaf 100644 --- a/packages/core/src/application/application_ref.ts +++ b/packages/core/src/application/application_ref.ts @@ -38,6 +38,7 @@ import {ComponentFactory} from '../render3/component_ref'; import {getComponentDef, isStandalone} from '../render3/def_getters'; import type {Binding, DirectiveWithBindings} from '../render3/dynamic_bindings'; import {ChangeDetectionMode, detectChangesInternal} from '../render3/instructions/change_detection'; +import {getDeclarationComponentDef} from '../render3/instructions/element_validation'; import {profiler} from '../render3/profiler'; import {isReactiveLViewConsumer} from '../render3/reactive_lview_consumer'; import {EffectScheduler} from '../render3/reactivity/root_effect_scheduler'; @@ -71,14 +72,24 @@ export function publishDefaultGlobalUtils() { * Sets the error for an invalid write to a signal to be an Angular `RuntimeError`. */ export function publishSignalConfiguration(): void { - setThrowInvalidWriteToSignalError(() => { + setThrowInvalidWriteToSignalError((node) => { let errorMessage = ''; if (ngDevMode) { const activeConsumer = getActiveConsumer(); - errorMessage = - activeConsumer && isReactiveLViewConsumer(activeConsumer) - ? 'Writing to signals is not allowed while Angular renders the template (eg. interpolations)' - : 'Writing to signals is not allowed in a `computed`'; + if (activeConsumer && isReactiveLViewConsumer(activeConsumer)) { + errorMessage = + 'Writing to signals is not allowed while Angular renders the template (eg. interpolations)'; + const componentName = + activeConsumer.lView && getDeclarationComponentDef(activeConsumer.lView)?.type?.name; + if (componentName) { + errorMessage += `. Template location: '${componentName}' component`; + } + } else { + errorMessage = 'Writing to signals is not allowed in a `computed`'; + } + if (node.debugName) { + errorMessage += `. Signal: '${node.debugName}'`; + } } throw new RuntimeError(RuntimeErrorCode.SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT, errorMessage); }); diff --git a/packages/core/src/application/application_tokens.ts b/packages/core/src/application/application_tokens.ts index bbc36dcbeb55..df3888cab8fe 100644 --- a/packages/core/src/application/application_tokens.ts +++ b/packages/core/src/application/application_tokens.ts @@ -51,6 +51,16 @@ export const APP_ID = new InjectionToken( /** Default value of the `APP_ID` token. */ const DEFAULT_APP_ID = 'ng'; +/** + * Internal token that indicates whether the application is running in a test environment (e.g. TestBed). + */ +export const IS_TESTING = new InjectionToken( + typeof ngDevMode !== 'undefined' && ngDevMode ? 'IS_TESTING' : '', + { + factory: () => false, + }, +); + /** Initializer check for the validity of the APP_ID */ export const validAppIdInitializer: StaticProvider = { provide: ENVIRONMENT_INITIALIZER, diff --git a/packages/core/src/application/create_application.ts b/packages/core/src/application/create_application.ts index c1ccc95dd729..dcb594906cb6 100644 --- a/packages/core/src/application/create_application.ts +++ b/packages/core/src/application/create_application.ts @@ -13,14 +13,14 @@ import {createOrReusePlatformInjector} from '../platform/platform'; import {assertStandaloneComponentType} from '../render3/errors'; import {EnvironmentNgModuleRefAdapter} from '../render3/ng_module_ref'; -import {ApplicationRef} from './application_ref'; -import {provideZonelessChangeDetectionInternal} from '../change_detection/scheduling/zoneless_scheduling_impl'; -import {bootstrap} from '../platform/bootstrap'; -import {profiler} from '../render3/profiler'; import {ProfilerEvent} from '../../primitives/devtools'; +import {provideZonelessChangeDetectionInternal} from '../change_detection/scheduling/zoneless_scheduling_impl'; import {errorHandlerEnvironmentInitializer} from '../error_handler'; import {RuntimeError, RuntimeErrorCode} from '../errors'; +import {bootstrap} from '../platform/bootstrap'; import {PlatformRef} from '../platform/platform_ref'; +import {profiler} from '../render3/profiler'; +import {ApplicationRef} from './application_ref'; import {validAppIdInitializer} from './application_tokens'; /** @@ -66,7 +66,11 @@ export function internalCreateApplication(config: { const allAppProviders = [ provideZonelessChangeDetectionInternal(), errorHandlerEnvironmentInitializer, - ...(ngDevMode ? [validAppIdInitializer] : []), + ...(typeof ngDevMode === 'undefined' || + ngDevMode || + (typeof ngServerMode !== 'undefined' && ngServerMode) + ? [validAppIdInitializer] + : []), ...(appProviders || []), ]; const adapter = new EnvironmentNgModuleRefAdapter({ diff --git a/packages/core/src/change_detection/pipe_transform.ts b/packages/core/src/change_detection/pipe_transform.ts index b5706fc1d309..721abea85904 100644 --- a/packages/core/src/change_detection/pipe_transform.ts +++ b/packages/core/src/change_detection/pipe_transform.ts @@ -15,14 +15,14 @@ * * In the following example, `TruncatePipe` returns the shortened value with an added ellipses. * - * + * {@example core/ts/pipes/simple_truncate.ts region='simple-truncate'} * * Invoking `{{ 'It was the best of times' | truncate }}` in a template will produce `It was...`. * * In the following example, `TruncatePipe` takes parameters that sets the truncated length and the * string to append with. * - * + * {@example core/ts/pipes/truncate.ts region='truncate'} * * Invoking `{{ 'It was the best of times' | truncate:4:'....' }}` in a template will produce `It * was the best....`. diff --git a/packages/core/src/change_detection/scheduling/ng_zone_scheduling.ts b/packages/core/src/change_detection/scheduling/ng_zone_scheduling.ts index 80a1ccce9625..65a4095d0668 100644 --- a/packages/core/src/change_detection/scheduling/ng_zone_scheduling.ts +++ b/packages/core/src/change_detection/scheduling/ng_zone_scheduling.ts @@ -49,10 +49,11 @@ export class NgZoneChangeDetectionScheduler implements OnDestroy { this._onMicrotaskEmptySubscription = this.zone.onMicrotaskEmpty.subscribe({ next: () => { - // `onMicroTaskEmpty` can happen _during_ the zoneless scheduler change detection because - // zone.run(() => {}) will result in `checkStable` at the end of the `zone.run` closure - // and emit `onMicrotaskEmpty` synchronously if run coalsecing is false. - if (this.changeDetectionScheduler.runningTick) { + // `onMicroTaskEmpty` can happen _during_ change detection because zone.run(() => {}) will + // result in `checkStable` at the end of the `zone.run` closure and emit `onMicrotaskEmpty` + // synchronously if run coalsecing is false. Angular itself enters the zone this way while + // it flushes effects, so this can happen for any running tick, not just a scheduled one. + if (this.changeDetectionScheduler.runningTick || this.applicationRef._runningTick) { return; } this.zone.run(() => { diff --git a/packages/core/src/change_detection/scheduling/zoneless_scheduling_impl.ts b/packages/core/src/change_detection/scheduling/zoneless_scheduling_impl.ts index b6bc7b0faa7d..7813432e7bb6 100644 --- a/packages/core/src/change_detection/scheduling/zoneless_scheduling_impl.ts +++ b/packages/core/src/change_detection/scheduling/zoneless_scheduling_impl.ts @@ -19,7 +19,7 @@ import { scheduleCallbackWithRafRace, } from '../../util/callback_scheduler'; import {performanceMarkFeature} from '../../util/performance'; -import {NgZone, NgZonePrivate, NoopNgZone, angularZoneInstanceIdProperty} from '../../zone/ng_zone'; +import {NgZone, NgZonePrivate, NoopNgZone} from '../../zone/ng_zone'; import {TracingService} from '../../application/tracing'; import {Service} from '../../di'; @@ -67,8 +67,8 @@ export class ChangeDetectionSchedulerImpl implements ChangeDetectionScheduler, O private readonly zoneIsDefined = typeof Zone !== 'undefined' && !!Zone.root.run; private readonly schedulerTickApplyArgs = [{data: {'__scheduler_tick__': true}}]; private readonly subscriptions = new Subscription(); - private readonly angularZoneId = this.zoneIsDefined - ? (this.ngZone as NgZonePrivate)._inner?.get(angularZoneInstanceIdProperty) + private readonly innerNgZone = this.zoneIsDefined + ? ((this.ngZone as NgZonePrivate)._inner ?? null) : null; private readonly scheduleInRootZone = !this.zonelessEnabled && @@ -232,19 +232,26 @@ export class ChangeDetectionSchedulerImpl implements ChangeDetectionScheduler, O if (this.pendingRenderTaskId !== null || this.runningTick || this.appRef._runningTick) { return false; } - // If we're inside the zone don't bother with scheduler. Zone will stabilize + // If we're inside this app's Angular zone don't bother with scheduler. Zone will stabilize // eventually and run change detection. - if ( - !this.zonelessEnabled && - this.zoneIsDefined && - Zone.current.get(angularZoneInstanceIdProperty + this.angularZoneId) - ) { + if (!this.zonelessEnabled && this.innerNgZone !== null && this.isInNgZone()) { return false; } return true; } + private isInNgZone(): boolean { + let zone: Zone | null = Zone.current; + while (zone) { + if (zone === this.innerNgZone) { + return true; + } + zone = zone.parent; + } + return false; + } + /** * Calls ApplicationRef._tick inside the `NgZone`. * diff --git a/packages/core/src/compiler/compiler_facade_interface.ts b/packages/core/src/compiler/compiler_facade_interface.ts index 81c75e56c024..94a657f17996 100644 --- a/packages/core/src/compiler/compiler_facade_interface.ts +++ b/packages/core/src/compiler/compiler_facade_interface.ts @@ -223,7 +223,6 @@ export interface R3DirectiveMetadataFacade { viewQueries: R3QueryMetadataFacade[]; isStandalone: boolean; hostDirectives: R3HostDirectiveMetadataFacade[] | null; - isSignal: boolean; legacyOptionalChaining: boolean; } @@ -242,8 +241,7 @@ export interface R3ComponentMetadataFacade extends R3DirectiveMetadataFacade { // TODO(legacy-partial-output-inputs): Remove in v18. // https://github.com/angular/angular/blob/d4b423690210872b5c32a322a6090beda30b05a3/packages/core/src/compiler/compiler_facade_interface.ts#L197-L199 export type LegacyInputPartialMapping = - | string - | [bindingPropertyName: string, classPropertyName: string, transformFunction?: Function]; + string | [bindingPropertyName: string, classPropertyName: string, transformFunction?: Function]; export interface R3DeclareDirectiveFacade { selector?: string; @@ -276,7 +274,6 @@ export interface R3DeclareDirectiveFacade { usesOnChanges?: boolean; controlCreate?: {passThroughInput: string | null}; isStandalone?: boolean; - isSignal?: boolean; hostDirectives?: R3HostDirectiveMetadataFacade[] | null; legacyOptionalChaining?: boolean; } diff --git a/packages/core/src/core.ts b/packages/core/src/core.ts index f9d11a71af8a..953c4296218b 100644 --- a/packages/core/src/core.ts +++ b/packages/core/src/core.ts @@ -67,7 +67,7 @@ export { export {IdleService, provideIdleServiceWith} from './defer/idle_service'; export * from './di'; export {DOCUMENT} from './document'; -export {ErrorHandler, provideBrowserGlobalErrorListeners} from './error_handler'; +export {ErrorDetails, ErrorHandler, provideBrowserGlobalErrorListeners} from './error_handler'; export {EventEmitter} from './event_emitter'; export { DEFAULT_CURRENCY_CODE, diff --git a/packages/core/src/core_private_export.ts b/packages/core/src/core_private_export.ts index 5e787eaabad3..6eccd4289478 100644 --- a/packages/core/src/core_private_export.ts +++ b/packages/core/src/core_private_export.ts @@ -29,6 +29,7 @@ export { IMAGE_CONFIG as ɵIMAGE_CONFIG, IMAGE_CONFIG_DEFAULTS as ɵIMAGE_CONFIG_DEFAULTS, ImageConfig as ɵImageConfig, + IS_TESTING as ɵIS_TESTING, } from './application/application_tokens'; export {internalCreateApplication as ɵinternalCreateApplication} from './application/create_application'; export { @@ -150,7 +151,10 @@ export { ProviderRecord as ɵProviderRecord, setInjectorProfilerContext as ɵsetInjectorProfilerContext, } from './render3/debug/injector_profiler'; -export {getComponentDef as ɵgetComponentDef} from './render3/def_getters'; +export { + getComponentDef as ɵgetComponentDef, + getDirectiveDef as ɵgetDirectiveDef, +} from './render3/def_getters'; export {getDocument as ɵgetDocument} from './render3/interfaces/document'; export { SHARED_STYLES_HOST as ɵSHARED_STYLES_HOST, diff --git a/packages/core/src/core_reactivity_export_internal.ts b/packages/core/src/core_reactivity_export_internal.ts index f82f06da1084..69a2819b390d 100644 --- a/packages/core/src/core_reactivity_export_internal.ts +++ b/packages/core/src/core_reactivity_export_internal.ts @@ -26,5 +26,9 @@ export { EffectCleanupRegisterFn, } from './render3/reactivity/effect'; export {EffectScheduler as ɵEffectScheduler} from './render3/reactivity/root_effect_scheduler'; -export {afterRenderEffect, ɵFirstAvailableSignal} from './render3/reactivity/after_render_effect'; +export { + afterRenderEffect, + AfterRenderEffectOptions, + ɵFirstAvailableSignal, +} from './render3/reactivity/after_render_effect'; export {assertNotInReactiveContext} from './render3/reactivity/asserts'; diff --git a/packages/core/src/core_render3_private_export.ts b/packages/core/src/core_render3_private_export.ts index 441c0d446e1c..f88b0d3b0056 100644 --- a/packages/core/src/core_render3_private_export.ts +++ b/packages/core/src/core_render3_private_export.ts @@ -11,12 +11,12 @@ // // no code actually imports these symbols from the @angular/core entry point export { - type DebugSignalGraph as ɵDebugSignalGraph, - type DebugSignalGraphEdge as ɵDebugSignalGraphEdge, - type DebugSignalGraphNode as ɵDebugSignalGraphNode, Framework as ɵFramework, Profiler as ɵProfiler, ProfilerEvent as ɵProfilerEvent, + type DebugSignalGraph as ɵDebugSignalGraph, + type DebugSignalGraphEdge as ɵDebugSignalGraphEdge, + type DebugSignalGraphNode as ɵDebugSignalGraphNode, } from '../primitives/devtools'; export {compileNgModuleFactory as ɵcompileNgModuleFactory} from './application/application_ngmodule_factory_compiler'; export {injectChangeDetectorRef as ɵinjectChangeDetectorRef} from './change_detection/change_detector_ref'; @@ -26,6 +26,7 @@ export { NG_INJ_DEF as ɵNG_INJ_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, } from './di/interface/defs'; +export {ɵɵenableIncrementalHydrationRuntime} from './hydration/incremental_runtime'; export { setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest, registerNgModuleType as ɵɵregisterNgModuleType, @@ -36,10 +37,9 @@ export { } from './metadata/ng_module_def'; export {AfterRenderManager as ɵAfterRenderManager} from './render3/after_render/manager'; export {inferTagNameFromDefinition as ɵinferTagNameFromDefinition} from './render3/component_ref'; -export {ɵɵenableIncrementalHydrationRuntime} from './hydration/incremental_runtime'; export {getLContext as ɵgetLContext} from './render3/context_discovery'; -export {depsTracker as ɵdepsTracker} from './render3/deps_tracker/deps_tracker'; export {getComponentInstanceDeepLinkId as ɵgetComponentInstanceDeepLinkId} from './render3/debug/chrome_dev_tools_performance'; +export {depsTracker as ɵdepsTracker} from './render3/deps_tracker/deps_tracker'; export { NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, @@ -81,7 +81,6 @@ export { ɵsetClassDebugInfo, setClassMetadata as ɵsetClassMetadata, setClassMetadataAsync as ɵsetClassMetadataAsync, - setLocaleId as ɵsetLocaleId, ɵsetUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode, store as ɵstore, @@ -95,6 +94,8 @@ export { ɵɵarrowFunction, ɵɵattachSourceLocations, ɵɵattribute, + ɵɵboundaryCreate, + ɵɵboundaryUpdate, ɵɵclassMap, ɵɵclassProp, ɵɵComponentDeclaration, @@ -154,12 +155,13 @@ export { ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, - ɵɵforeignComponent, - ɵɵforeignContent, - ɵɵforeignContentFn, ɵɵenableBindings, ɵɵExternalStylesFeature, ɵɵFactoryDeclaration, + ɵɵforeignComponent, + ɵɵforeignContent, + ɵɵforeignContentFn, + ɵɵgetBoundary, ɵɵgetComponentDepsFactory, ɵɵgetCurrentView, ɵɵgetInheritedFactory, @@ -219,6 +221,7 @@ export { ɵɵqueryRefresh, ɵɵreadContextLet, ɵɵreference, + ɵɵinvalid, ɵɵrepeater, ɵɵrepeaterCreate, ɵɵrepeaterTrackByIdentity, @@ -280,10 +283,10 @@ export { ɵɵngDeclareDirective, ɵɵngDeclareFactory, ɵɵngDeclareInjectable, - ɵɵngDeclareService, ɵɵngDeclareInjector, ɵɵngDeclareNgModule, ɵɵngDeclarePipe, + ɵɵngDeclareService, } from './render3/jit/partial'; export {compilePipe as ɵcompilePipe} from './render3/jit/pipe'; export {isNgModule as ɵisNgModule} from './render3/jit/util'; diff --git a/packages/core/src/debug/ai/di_graph.ts b/packages/core/src/debug/ai/di_graph.ts index 853cd2c360b4..5ed27c1ca801 100644 --- a/packages/core/src/debug/ai/di_graph.ts +++ b/packages/core/src/debug/ai/di_graph.ts @@ -48,6 +48,8 @@ Returns: - \`token\`: The DI token. - \`value\`: The resolved value of that provider if it was instantiated. - \`children\`: Array of child environment injectors. + +Note: Every element injector has a corresponding environment injector which it uses as a fallback during dependency resolution when a dependency cannot be resolved in the element injector tree. This edge is currently omitted from this graph. `.trim(), inputSchema: { type: 'object', diff --git a/packages/core/src/debug/debug_node.ts b/packages/core/src/debug/debug_node.ts index 91aa2b2430f8..4792b72752ee 100644 --- a/packages/core/src/debug/debug_node.ts +++ b/packages/core/src/debug/debug_node.ts @@ -713,9 +713,6 @@ function collectPropertyBindings( } } -// Need to keep the nodes in a global Map so that multiple angular apps are supported. -const _nativeNodeToDebugNode = new Map(); - const NG_DEBUG_PROPERTY = '__ng_debug__'; /** @@ -734,18 +731,6 @@ export function getDebugNode(nativeNode: any): DebugNode | null { return null; } -export function getAllDebugNodes(): DebugNode[] { - return Array.from(_nativeNodeToDebugNode.values()); -} - -export function indexDebugNode(node: DebugNode) { - _nativeNodeToDebugNode.set(node.nativeNode, node); -} - -export function removeDebugNodeFromIndex(node: DebugNode) { - _nativeNodeToDebugNode.delete(node.nativeNode); -} - /** * A boolean-valued function over a value, possibly including context information * regarding that value's position in an array. diff --git a/packages/core/src/defer/dom_triggers.ts b/packages/core/src/defer/dom_triggers.ts index d30eaad28fd1..6ef97f50c5d0 100644 --- a/packages/core/src/defer/dom_triggers.ts +++ b/packages/core/src/defer/dom_triggers.ts @@ -123,7 +123,7 @@ export function getTriggerElement(triggerLView: LView, triggerIndex: number): El export function registerDomTrigger( initialLView: LView, tNode: TNode, - triggerIndex: number, + triggerIndex: number | null, walkUpTimes: number | undefined | null, registerFn: ( element: Element, @@ -172,7 +172,8 @@ export function registerDomTrigger( poll.destroy(); // It's possible that the trigger's view was destroyed before we resolved the trigger element. - if (isDestroyed(triggerLView)) { + // The trigger index can be null if the defer block is invalid. + if (isDestroyed(triggerLView) || triggerIndex === null) { return; } diff --git a/packages/core/src/defer/idle_scheduler.ts b/packages/core/src/defer/idle_scheduler.ts index 4dde89f6a041..ea6e3a2ffb43 100644 --- a/packages/core/src/defer/idle_scheduler.ts +++ b/packages/core/src/defer/idle_scheduler.ts @@ -104,16 +104,19 @@ export class IdleScheduler implements OnDestroy { const callback = (deadline?: IdleDeadline) => { // Keep idleId set during the drain to prevent re-entrant add() from scheduling redundant callbacks. for (const cb of bucket.queue) { - cb(); - // _tick here is an optimized change detection check and is safe to call here. - // We also account for the time it takes to run change detection - // for the newly-created view as a part of the same idle callback. - this.applicationRef._tick(); - bucket.queue.delete(cb); - this.callbackBucket.delete(cb); - - if (deadline && deadline.timeRemaining() === 0 && !deadline.didTimeout) { - break; + try { + cb(); + // _tick here is an optimized change detection check and is safe to call here. + // We also account for the time it takes to run change detection + // for the newly-created view as a part of the same idle callback. + this.applicationRef._tick(); + } finally { + bucket.queue.delete(cb); + this.callbackBucket.delete(cb); + + if (deadline && deadline.timeRemaining() === 0 && !deadline.didTimeout) { + break; + } } } @@ -121,7 +124,7 @@ export class IdleScheduler implements OnDestroy { if (bucket.queue.size > 0) { this.scheduleBucket(bucket, options); - } else { + } else if (this.buckets.get(key) === bucket) { this.buckets.delete(key); } }; diff --git a/packages/core/src/defer/instructions.ts b/packages/core/src/defer/instructions.ts index 727224f62951..1e119f2cbf03 100644 --- a/packages/core/src/defer/instructions.ts +++ b/packages/core/src/defer/instructions.ts @@ -7,6 +7,7 @@ */ import {setActiveConsumer} from '../../primitives/signals'; +import {IS_TESTING} from '../application/application_tokens'; import { DEFER_BLOCK_ID, @@ -148,7 +149,11 @@ export function ɵɵdefer( if (typeof ngHmrMode !== 'undefined' && ngHmrMode) { logHmrWarning(injector); } - if (hasHydrateTriggers(flags) && !incrementalHydrationEnabled) { + if ( + hasHydrateTriggers(flags) && + !incrementalHydrationEnabled && + !injector.get(IS_TESTING, false) + ) { warnIncrementalHydrationNotConfigured(); } } @@ -307,14 +312,13 @@ export function ɵɵdeferHydrateWhen(rawValue: unknown) { if (!shouldAttachTrigger(TriggerType.Hydrate, lView, tNode)) return; - // TODO(incremental-hydration): audit all defer instructions to reduce unnecessary work by - // moving function calls inside their relevant control flow blocks const bindingIndex = nextBindingIndex(); - const tView = getTView(); - const hydrateTriggers = getHydrateTriggers(tView, tNode); - hydrateTriggers.set(DeferBlockTrigger.When, null); if (bindingUpdated(lView, bindingIndex, rawValue)) { + const tView = getTView(); + const hydrateTriggers = getHydrateTriggers(tView, tNode); + hydrateTriggers.set(DeferBlockTrigger.When, null); + if (typeof ngServerMode !== 'undefined' && ngServerMode) { // We are on the server and SSR for defer blocks is enabled. triggerDeferBlock(TriggerType.Hydrate, lView, tNode); @@ -564,7 +568,7 @@ export function ɵɵdeferHydrateOnTimer(delay: number) { * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger. * @codeGenApi */ -export function ɵɵdeferOnHover(triggerIndex: number, walkUpTimes?: number) { +export function ɵɵdeferOnHover(triggerIndex: number | null, walkUpTimes?: number) { const lView = getLView(); const tNode = getCurrentTNode()!; @@ -600,7 +604,7 @@ export function ɵɵdeferOnHover(triggerIndex: number, walkUpTimes?: number) { * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger. * @codeGenApi */ -export function ɵɵdeferPrefetchOnHover(triggerIndex: number, walkUpTimes?: number) { +export function ɵɵdeferPrefetchOnHover(triggerIndex: number | null, walkUpTimes?: number) { const lView = getLView(); const tNode = getCurrentTNode()!; @@ -661,7 +665,7 @@ export function ɵɵdeferHydrateOnHover() { * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger. * @codeGenApi */ -export function ɵɵdeferOnInteraction(triggerIndex: number, walkUpTimes?: number) { +export function ɵɵdeferOnInteraction(triggerIndex: number | null, walkUpTimes?: number) { const lView = getLView(); const tNode = getCurrentTNode()!; @@ -697,7 +701,7 @@ export function ɵɵdeferOnInteraction(triggerIndex: number, walkUpTimes?: numbe * @param walkUpTimes Number of times to walk up/down the tree hierarchy to find the trigger. * @codeGenApi */ -export function ɵɵdeferPrefetchOnInteraction(triggerIndex: number, walkUpTimes?: number) { +export function ɵɵdeferPrefetchOnInteraction(triggerIndex: number | null, walkUpTimes?: number) { const lView = getLView(); const tNode = getCurrentTNode()!; @@ -759,9 +763,9 @@ export function ɵɵdeferHydrateOnInteraction() { * @codeGenApi */ export function ɵɵdeferOnViewport( - triggerIndex: number, + triggerIndex: number | null, walkUpTimes?: number | null, - options?: IntersectionObserverInit, + options?: unknown, ) { const lView = getLView(); const tNode = getCurrentTNode()!; @@ -795,7 +799,7 @@ export function ɵɵdeferOnViewport( onViewportWrapper, () => triggerDeferBlock(TriggerType.Regular, lView, tNode), TriggerType.Regular, - options, + options as IntersectionObserverInit, ); } } @@ -807,9 +811,9 @@ export function ɵɵdeferOnViewport( * @codeGenApi */ export function ɵɵdeferPrefetchOnViewport( - triggerIndex: number, + triggerIndex: number | null, walkUpTimes?: number | null, - options?: IntersectionObserverInit, + options?: unknown, ) { const lView = getLView(); const tNode = getCurrentTNode()!; @@ -843,7 +847,7 @@ export function ɵɵdeferPrefetchOnViewport( onViewportWrapper, () => triggerPrefetching(tDetails, lView, tNode), TriggerType.Prefetch, - options, + options as IntersectionObserverInit, ); } } @@ -852,7 +856,7 @@ export function ɵɵdeferPrefetchOnViewport( * Creates runtime data structures for the `on viewport` hydrate trigger. * @codeGenApi */ -export function ɵɵdeferHydrateOnViewport(options?: IntersectionObserverInit) { +export function ɵɵdeferHydrateOnViewport(options?: unknown) { const lView = getLView(); const tNode = getCurrentTNode()!; diff --git a/packages/core/src/defer/triggering.ts b/packages/core/src/defer/triggering.ts index 3db141d3c273..85528500fe67 100644 --- a/packages/core/src/defer/triggering.ts +++ b/packages/core/src/defer/triggering.ts @@ -447,64 +447,89 @@ export async function triggerHydrationForBlockQueue( // Indicate that we have some pending async work. const pendingTasks = injector.get(PendingTasksInternal); const taskId = pendingTasks.add(); + const lastBlockName = hydrationQueue[hydrationQueue.length - 1]; - // Actually do the triggering and hydration of the queue of blocks - for (let blockQueueIdx = 0; blockQueueIdx < hydrationQueue.length; blockQueueIdx++) { - const dehydratedBlockId = hydrationQueue[blockQueueIdx]; - const dehydratedDeferBlock = dehydratedBlockRegistry.get(dehydratedBlockId); - - if (dehydratedDeferBlock != null) { - // trigger the block resources and await next render for hydration. This should result - // in the next block ɵɵdefer instruction being called and that block being added to the dehydrated registry. - await triggerResourceLoadingForHydration(dehydratedDeferBlock); - await nextRender(injector); - - // if the content has changed since server rendering, we need to check for the expected block - // being in the registry or if errors occurred. In that case, we need to clean up the remaining expected - // content that won't be rendered or fetched. - if (deferBlockHasErrored(dehydratedDeferBlock)) { - // Either the expected block has not yet had its ɵɵdefer instruction called or the block errored out when fetching - // resources. In the former case, either we're hydrating too soon or the client and server differ. In both cases, - // we need to clean up child content and promises. - removeDehydratedViewList(dehydratedDeferBlock); + try { + // Actually do the triggering and hydration of the queue of blocks + for (let blockQueueIdx = 0; blockQueueIdx < hydrationQueue.length; blockQueueIdx++) { + const dehydratedBlockId = hydrationQueue[blockQueueIdx]; + const dehydratedDeferBlock = dehydratedBlockRegistry.get(dehydratedBlockId); + + if (dehydratedDeferBlock != null) { + // trigger the block resources and await next render for hydration. This should result + // in the next block ɵɵdefer instruction being called and that block being added to the dehydrated registry. + await triggerResourceLoadingForHydration(dehydratedDeferBlock); + await nextRender(injector); + + // if the content has changed since server rendering, we need to check for the expected block + // being in the registry or if errors occurred. In that case, we need to clean up the remaining expected + // content that won't be rendered or fetched. + if (deferBlockHasErrored(dehydratedDeferBlock)) { + // Either the expected block has not yet had its ɵɵdefer instruction called or the block errored out when fetching + // resources. In the former case, either we're hydrating too soon or the client and server differ. In both cases, + // we need to clean up child content and promises. + removeDehydratedViewList(dehydratedDeferBlock); + cleanupRemainingHydrationQueue( + hydrationQueue.slice(blockQueueIdx), + dehydratedBlockRegistry, + ); + break; + } + // The defer block has not errored and we've finished fetching resources and rendering. + // At this point it is safe to resolve the hydration promise. + blocksBeingHydrated.get(dehydratedBlockId)?.resolve(); + } else { + // The expected block has not yet had its ɵɵdefer instruction called. This is likely due to content changing between + // client and server. We need to clean up the dehydrated DOM in the container since it no longer is valid. + cleanupParentContainer(blockQueueIdx, hydrationQueue, dehydratedBlockRegistry); cleanupRemainingHydrationQueue( hydrationQueue.slice(blockQueueIdx), dehydratedBlockRegistry, ); break; } - // The defer block has not errored and we've finished fetching resources and rendering. - // At this point it is safe to resolve the hydration promise. - blocksBeingHydrated.get(dehydratedBlockId)!.resolve(); - } else { - // The expected block has not yet had its ɵɵdefer instruction called. This is likely due to content changing between - // client and server. We need to clean up the dehydrated DOM in the container since it no longer is valid. - cleanupParentContainer(blockQueueIdx, hydrationQueue, dehydratedBlockRegistry); - cleanupRemainingHydrationQueue(hydrationQueue.slice(blockQueueIdx), dehydratedBlockRegistry); - break; } - } - - const lastBlockName = hydrationQueue[hydrationQueue.length - 1]; - // Await hydration completion for the last block. - await blocksBeingHydrated.get(lastBlockName)?.promise; - - // All async work is done, remove the taskId from the registry. - pendingTasks.remove(taskId); + // Await hydration completion for the last block. + await blocksBeingHydrated.get(lastBlockName)?.promise; + } finally { + // All async work is done, remove the taskId from the registry. + pendingTasks.remove(taskId); + } // Replay any queued events, if any exist and the replay operation was requested. if (replayQueuedEventsFn) { replayQueuedEventsFn(hydrationQueue); } + // `cleanupHydratedDeferBlocks` -> `cleanupDehydratedViews` walks all LViews + // registered with ApplicationRef and removes dehydrated views that aren't + // associated with a defer block. This is only safe once the app is stable. + // There may still be other pending tasks that need one of those views before + // they get a chance to hydrate it. + // + // This block's task is removed above, but other tasks may still be pending. + // Wait for those before treating any remaining dehydrated views as orphaned. + // + // Don't wait if there are no other pending tasks. Calling `whenStable()` + // creates another subscription to the stability signal, which can move this + // cleanup to a later microtask than callers already waiting on + // `appRef.whenStable()`. Keeping this path synchronous preserves the existing + // behavior when the app is already stable. + const appRef = injector.get(ApplicationRef); + // Read the block before waiting, so it is looked up at the same point as before. + const lastDeferBlock = dehydratedBlockRegistry.get(lastBlockName); + if (pendingTasks.hasPendingTasks) { + await appRef.whenStable(); + + // The app can be destroyed while we wait. The bootstrap cleanup checks this too. + if (appRef.destroyed) { + return; + } + } + // Cleanup after hydration of all affected defer blocks. - cleanupHydratedDeferBlocks( - dehydratedBlockRegistry.get(lastBlockName), - hydrationQueue, - dehydratedBlockRegistry, - injector.get(ApplicationRef), - ); + cleanupHydratedDeferBlocks(lastDeferBlock, hydrationQueue, dehydratedBlockRegistry, appRef); } export function deferBlockHasErrored(deferBlock: DehydratedDeferBlock): boolean { @@ -700,36 +725,36 @@ export function processAndInitTriggers( } function setIdleTriggers(injector: Injector, elementTriggers: ElementTrigger[]) { - for (const elementTrigger of elementTriggers) { + for (const {blockName} of elementTriggers) { const registry = injector.get(DEHYDRATED_BLOCK_REGISTRY); - const onInvoke = () => triggerHydrationFromBlockName(injector, elementTrigger.blockName); + const onInvoke = () => triggerHydrationFromBlockName(injector, blockName); const cleanupFn = onIdle(onInvoke, injector); - registry.addCleanupFn(elementTrigger.blockName, cleanupFn); + registry.addCleanupFn(blockName, cleanupFn); } } function setViewportTriggers(injector: Injector, elementTriggers: ElementTrigger[]) { if (elementTriggers.length > 0) { const registry = injector.get(DEHYDRATED_BLOCK_REGISTRY); - for (let elementTrigger of elementTriggers) { + for (const {el, blockName, intersectionObserverOptions} of elementTriggers) { const cleanupFn = onViewportWrapper( - elementTrigger.el, - () => triggerHydrationFromBlockName(injector, elementTrigger.blockName), + el, + () => triggerHydrationFromBlockName(injector, blockName), injector, - elementTrigger.intersectionObserverOptions, + intersectionObserverOptions, ); - registry.addCleanupFn(elementTrigger.blockName, cleanupFn); + registry.addCleanupFn(blockName, cleanupFn); } } } function setTimerTriggers(injector: Injector, elementTriggers: ElementTrigger[]) { - for (const elementTrigger of elementTriggers) { + for (const {blockName, delay} of elementTriggers) { const registry = injector.get(DEHYDRATED_BLOCK_REGISTRY); - const onInvoke = () => triggerHydrationFromBlockName(injector, elementTrigger.blockName); - const timerFn = onTimer(elementTrigger.delay!); + const onInvoke = () => triggerHydrationFromBlockName(injector, blockName); + const timerFn = onTimer(delay!); const cleanupFn = timerFn(onInvoke, injector); - registry.addCleanupFn(elementTrigger.blockName, cleanupFn); + registry.addCleanupFn(blockName, cleanupFn); } } diff --git a/packages/core/src/di/inject_async.ts b/packages/core/src/di/inject_async.ts index dabca71a5159..42d1de2ab3c8 100644 --- a/packages/core/src/di/inject_async.ts +++ b/packages/core/src/di/inject_async.ts @@ -64,19 +64,12 @@ export function injectAsync( } const injector = inject(Injector); - - let loadedPromise: Promise> | null = null; - const load = () => { - if (!loadedPromise) { - loadedPromise = loader(); - } - return loadedPromise; - }; + const load = createLoader(loader); if (options?.prefetch) { options .prefetch() - .then(() => load()) + .then(load) .catch(() => {}); } @@ -84,6 +77,22 @@ export function injectAsync( return () => load().then((loadedToken) => injector.get(maybeUnwrapDefaultExport(loadedToken))!); } +/** + * Creates the memoized loader function in its own lexical scope so that the + * prefetch callback does not share a closure context with `injector`. + */ +function createLoader( + loader: () => Promise>, +): () => Promise> { + let loadedPromise: Promise> | null = null; + return () => { + if (!loadedPromise) { + loadedPromise = loader(); + } + return loadedPromise; + }; +} + /** * Interface for `options` argument used within `injectAsync` call. * diff --git a/packages/core/src/di/injection_token.ts b/packages/core/src/di/injection_token.ts index 4d5990dddd1d..8dec4b1e459e 100644 --- a/packages/core/src/di/injection_token.ts +++ b/packages/core/src/di/injection_token.ts @@ -127,7 +127,3 @@ export class InjectionToken { return `InjectionToken ${this._desc}`; } } - -export interface InjectableDefToken extends InjectionToken { - ɵprov: unknown; -} diff --git a/packages/core/src/di/injector_compatibility.ts b/packages/core/src/di/injector_compatibility.ts index 8e716b99400e..c35c6e732c3b 100644 --- a/packages/core/src/di/injector_compatibility.ts +++ b/packages/core/src/di/injector_compatibility.ts @@ -67,12 +67,6 @@ export class RetrievingInjector implements PrimitivesInjector { } } -export const NG_TEMP_TOKEN_PATH = 'ngTempTokenPath'; -const NG_TOKEN_PATH = 'ngTokenPath'; -const NEW_LINE = /\n/gm; -const NO_NEW_LINE = 'ɵ'; -export const SOURCE = '__source'; - /** * Temporary type to allow internal symbols to use inject flags. This should be * removed once we consolidate the flags and the object literal approach. @@ -235,9 +229,9 @@ export function inject(token: HostAttributeToken, options: {optional: false}): s * - In a stackframe of a function call in a DI context * * @param token A token that represents a dependency that should be injected. - * @param flags Optional flags that control how injection is executed. - * The flags correspond to injection strategies that can be specified with - * parameter decorators `@Host`, `@Self`, `@SkipSelf`, and `@Optional`. + * @param options Control how injection is executed. Options correspond to injection strategies + * that can be specified with parameter decorators `@Host`, `@Self`, `@SkipSelf`, and + * `@Optional`. * @returns the injected value if operation is successful, `null` otherwise. * @throws if called outside of a supported context. * diff --git a/packages/core/src/di/interface/provider.ts b/packages/core/src/di/interface/provider.ts index 8ecaf5f15d6e..ae0875914724 100644 --- a/packages/core/src/di/interface/provider.ts +++ b/packages/core/src/di/interface/provider.ts @@ -264,7 +264,7 @@ export type StaticProvider = | any[]; /** - * Configures the `Injector` to return an instance of `Type` when `Type' is used as the token. + * Configures the `Injector` to return an instance of `Type` when `Type` is used as the token. * * Create an instance by invoking the `new` operator and supplying additional arguments. * This form is a short form of `TypeProvider`; diff --git a/packages/core/src/di/r3_injector.ts b/packages/core/src/di/r3_injector.ts index 31638400c624..c99c1f34ff4c 100644 --- a/packages/core/src/di/r3_injector.ts +++ b/packages/core/src/di/r3_injector.ts @@ -8,8 +8,8 @@ import '../util/ng_dev_mode'; -import {RuntimeError, RuntimeErrorCode} from '../errors'; import {OnDestroy} from '../change_detection/lifecycle_hooks'; +import {RuntimeError, RuntimeErrorCode} from '../errors'; import {Type} from '../interface/type'; import { emitInjectorToCreateInstanceEvent, @@ -33,6 +33,13 @@ import {newArray} from '../util/array_utils'; import {EMPTY_ARRAY} from '../util/empty'; import {stringify} from '../util/stringify'; +import { + isNotFound, + NotFound, + InjectionToken as PrimitivesInjectionToken, + Injector as PrimitivesInjector, +} from '@angular/core/primitives/di'; +import {setActiveConsumer} from '@angular/core/primitives/signals'; import {resolveForwardRef} from './forward_ref'; import {ENVIRONMENT_INITIALIZER} from './initializer_token'; import {setInjectImplementation} from './inject_switch'; @@ -53,7 +60,7 @@ import { InjectorType, ɵɵInjectableDeclaration, } from './interface/defs'; -import {InternalInjectFlags, InjectOptions} from './interface/injector'; +import {InjectOptions, InternalInjectFlags} from './interface/injector'; import { ClassProvider, ConstructorProvider, @@ -75,13 +82,6 @@ import { } from './provider_collection'; import {ProviderToken} from './provider_token'; import {INJECTOR_SCOPE, InjectorScope} from './scope'; -import {setActiveConsumer} from '@angular/core/primitives/signals'; -import { - Injector as PrimitivesInjector, - InjectionToken as PrimitivesInjectionToken, - NotFound, - isNotFound, -} from '@angular/core/primitives/di'; /** * Marker which indicates that a value has not yet been created from the factory function. @@ -162,6 +162,8 @@ export abstract class EnvironmentInjector implements Injector { */ abstract get(token: string | ProviderToken, notFoundValue?: any): any; + // TODO(v23): remove this method and provide a ng-update migration + // 3p-only-start /** * Runs the given function in the context of this `EnvironmentInjector`. * @@ -174,6 +176,7 @@ export abstract class EnvironmentInjector implements Injector { * @deprecated use the standalone function `runInInjectionContext` instead */ abstract runInContext(fn: () => ReturnT): ReturnT; + // 3p-only-end abstract destroy(): void; @@ -300,6 +303,7 @@ export class R3Injector extends EnvironmentInjector implements PrimitivesInjecto return () => this.removeOnDestroy(callback); } + // 3p-only-start override runInContext(fn: () => ReturnT): ReturnT { assertNotDestroyed(this); @@ -319,6 +323,7 @@ export class R3Injector extends EnvironmentInjector implements PrimitivesInjecto ngDevMode && setInjectorProfilerContext(prevInjectContext!); } } + // 3p-only-end override get( token: ProviderToken, diff --git a/packages/core/src/error_details_base_url.ts b/packages/core/src/error_details_base_url.ts index 673039aa994a..ad91f4d0684c 100644 --- a/packages/core/src/error_details_base_url.ts +++ b/packages/core/src/error_details_base_url.ts @@ -8,7 +8,7 @@ import {VERSION} from './version'; -export const DOC_PAGE_BASE_URL: string = (() => { +export const DOC_PAGE_BASE_URL: string = /* @__PURE__ */ (() => { const full = VERSION.full; const isPreRelease = full.includes('-next') || @@ -26,7 +26,7 @@ export const DOC_PAGE_BASE_URL: string = (() => { * - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts * - packages/core/src/error_details_base_url.ts */ -export const ERROR_DETAILS_PAGE_BASE_URL: string = (() => { +export const ERROR_DETAILS_PAGE_BASE_URL: string = /* @__PURE__ */ (() => { return `${DOC_PAGE_BASE_URL}/errors`; })(); /** diff --git a/packages/core/src/error_handler.ts b/packages/core/src/error_handler.ts index a47f8abfeb2a..4c08b77f35b3 100644 --- a/packages/core/src/error_handler.ts +++ b/packages/core/src/error_handler.ts @@ -17,6 +17,42 @@ import {RuntimeError, RuntimeErrorCode} from './errors'; import {DestroyRef} from './linker/destroy_ref'; import {NgZone} from './zone/ng_zone'; +import {Type} from './interface/type'; + +/** + * Error details caught by the error boundary + * + * @developerPreview 22.2 + */ +export interface ErrorDetails { + /** + * The class of the component or directive where the error occurred. + */ + readonly declarationType: Type; + /** + * The instance of the component or directive where the error occurred. + */ + readonly declarationInstance: unknown; + /** + * Information about the error boundary that caught the error. + */ + readonly boundary?: { + /** + * The component where the error boundary that caught the rendering error was located + */ + readonly type: Type; + + /** + * Call this method to retry rendering the error boundary. + */ + readonly reset: () => void; + }; + /** + * The function that intercepted the error, if any. + */ + readonly caughtBy?: Function; +} + /** * Provides a hook for centralized exception handling. * @@ -60,6 +96,48 @@ export class ErrorHandler { handleError(error: any): void { this._console.error('ERROR', error); } + + /** + * Callback to handle errors happening during the rendering of a component/directive view. + * + * @param error The error that was thrown. + * @param details Additional information about the error. + */ + onViewError?(error: Error, details: ErrorDetails): void; +} + +export function encapsulateBoundaryError(error: unknown): Error { + if (isErrorLike(error)) { + return error; + } + return new ErrorBoundaryWrappedError(error); +} + +export function isErrorLike(error: unknown): error is Error { + return ( + error instanceof Error || + (typeof error === 'object' && + error !== null && + typeof (error as Error).name === 'string' && + typeof (error as Error).message === 'string') + ); +} + +/** + * Error thrown when an error boundary catches an error that is not an `Error` instance. + * + * @publicApi 22.2 + */ +export class ErrorBoundaryWrappedError extends Error { + constructor(error: unknown) { + super( + typeof ngDevMode !== 'undefined' && ngDevMode + ? `Error boundary caught an error that's not an Error instance: ${String(error)}. Check this error's .cause for the actual error.` + : String(error), + {cause: error}, + ); + this.name = 'ErrorBoundaryWrappedError'; + } } /** diff --git a/packages/core/src/errors.ts b/packages/core/src/errors.ts index 250f436c8ab4..a8eb0ee97962 100644 --- a/packages/core/src/errors.ts +++ b/packages/core/src/errors.ts @@ -89,11 +89,13 @@ export const enum RuntimeErrorCode { HYDRATION_STABLE_TIMEDOUT = -506, MISSING_SSR_CONTENT_INTEGRITY_MARKER = -507, MISCONFIGURED_INCREMENTAL_HYDRATION = 508, - HYDRATION_MISSING_NODE_ON_PATH = 509, + HYDRATION_MISSING_NODE_ON_PATH = -509, PARENT_NODE_NOT_FOUND = 510, + EVENT_REPLAY_CONTRACT_ALREADY_CONSUMED = 511, + HYDRATION_MISSING_TEXT = -512, // Signal Errors - SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT = 600, + SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT = -600, REQUIRE_SYNC_WITHOUT_SYNC_EMIT = 601, ASSERTION_NOT_INSIDE_REACTIVE_CONTEXT = -602, @@ -104,6 +106,7 @@ export const enum RuntimeErrorCode { // i18n Errors INVALID_I18N_STRUCTURE = 700, MISSING_LOCALE_DATA = 701, + UNPARSABLE_ICU_EXPRESSION = 702, // Defer errors (750-799 range) DEFER_LOADING_FAILED = -750, @@ -118,7 +121,7 @@ export const enum RuntimeErrorCode { NO_SUPPORTING_DIFFER_FACTORY = 901, VIEW_ALREADY_ATTACHED = 902, INVALID_INHERITANCE = 903, - UNSAFE_VALUE_IN_RESOURCE_URL = 904, + UNSAFE_VALUE_IN_RESOURCE_URL = -904, UNSAFE_VALUE_IN_SCRIPT = 905, MISSING_GENERATED_DEF = 906, TYPE_IS_NOT_STANDALONE = 907, @@ -156,7 +159,7 @@ export const enum RuntimeErrorCode { // resource() API errors MUST_PROVIDE_STREAM_OPTION = 990, - RESOURCE_COMPLETED_BEFORE_PRODUCING_VALUE = 991, + RESOURCE_COMPLETED_BEFORE_PRODUCING_VALUE = -991, INVALID_RESOURCE_CREATION_IN_PARAMS = 992, // Upper bounds for core runtime errors is 999 diff --git a/packages/core/src/hydration/api.ts b/packages/core/src/hydration/api.ts index 5eab98ad0820..058d6256ddef 100644 --- a/packages/core/src/hydration/api.ts +++ b/packages/core/src/hydration/api.ts @@ -7,6 +7,7 @@ */ import {APP_BOOTSTRAP_LISTENER, ApplicationRef} from '../application/application_ref'; +import {IS_TESTING} from '../application/application_tokens'; import {Console} from '../console'; import { ENVIRONMENT_INITIALIZER, @@ -230,6 +231,7 @@ export function withDomHydration(): EnvironmentProviders { } else if ( typeof ngDevMode !== 'undefined' && ngDevMode && + !inject(IS_TESTING) && !isClientRenderModeEnabled(doc) ) { const console = inject(Console); diff --git a/packages/core/src/hydration/cleanup.ts b/packages/core/src/hydration/cleanup.ts index 2fd7baaac948..f8d5de42568c 100644 --- a/packages/core/src/hydration/cleanup.ts +++ b/packages/core/src/hydration/cleanup.ts @@ -19,6 +19,7 @@ import {RNode} from '../render3/interfaces/renderer_dom'; import {isLContainer, isLView} from '../render3/interfaces/type_checks'; import {HEADER_OFFSET, HOST, LView, PARENT, RENDERER, TVIEW} from '../render3/interfaces/view'; import {nativeRemoveNode} from '../render3/dom_node_manipulation'; +import {getNextSibling} from '../util/dom'; import {validateSiblingNodeExists} from './error_handling'; import {cleanupI18nHydrationData} from './i18n'; @@ -75,7 +76,7 @@ function removeDehydratedView(dehydratedView: DehydratedContainerView, renderer: const numNodes = dehydratedView.data[NUM_ROOT_NODES]; while (nodesRemoved < numNodes) { ngDevMode && validateSiblingNodeExists(currentRNode); - const nextSibling: RNode = currentRNode.nextSibling!; + const nextSibling: RNode = getNextSibling(currentRNode as unknown as Node)!; nativeRemoveNode(renderer, currentRNode, false); currentRNode = nextSibling; nodesRemoved++; diff --git a/packages/core/src/hydration/event_replay.ts b/packages/core/src/hydration/event_replay.ts index 3009ebda0e7a..3f5931f7fbcf 100644 --- a/packages/core/src/hydration/event_replay.ts +++ b/packages/core/src/hydration/event_replay.ts @@ -7,6 +7,7 @@ */ import { + Attribute, isEarlyEventType, isCaptureEventType, EventContractContainer, @@ -48,6 +49,7 @@ import {APP_ID} from '../application/application_tokens'; import {performanceMarkFeature} from '../util/performance'; import {triggerHydrationFromBlockName} from '../defer/triggering'; import {isIncrementalHydrationEnabled} from './utils'; +import {formatRuntimeError, RuntimeErrorCode} from '../errors'; /** Apps in which we've enabled event replay. * This is to prevent initializing event replay more than once per app. @@ -114,8 +116,13 @@ export function withEventReplay(): Provider[] { (rEl: RNode, eventName: string, listenerFn: VoidFunction) => { // If a user binds to a ng-container and uses a directive that binds using a host listener, // this element could be a comment node. So we need to ensure we have an actual element - // node before stashing anything. - if ((rEl as Node).nodeType !== Node.ELEMENT_NODE) return; + // node with a `jsaction` attribute before stashing anything. + if ( + (rEl as Node).nodeType !== Node.ELEMENT_NODE || + !(rEl as Element).hasAttribute(Attribute.JSACTION) + ) { + return; + } sharedStashFunction(rEl as RElement, eventName, listenerFn); sharedMapFunction(rEl as RElement, jsActionMap); }, @@ -172,7 +179,11 @@ export function withEventReplay(): Provider[] { } const eventContractDetails = injector.get(JSACTION_EVENT_CONTRACT); - initEventReplay(eventContractDetails, injector); + if (!initEventReplay(eventContractDetails, injector)) { + // Another app with the same APP_ID already used the early event data. + // Nothing left to replay here. + return; + } const jsActionMap = injector.get(JSACTION_BLOCK_ELEMENT_MAP); jsActionMap.get(EAGER_CONTENT_LISTENERS_KEY)?.forEach(removeListeners); jsActionMap.delete(EAGER_CONTENT_LISTENERS_KEY); @@ -201,10 +212,24 @@ export function withEventReplay(): Provider[] { return providers; } -const initEventReplay = (eventDelegation: EventContractDetails, injector: Injector) => { +/** @returns false if there was no early event data to replay (another app already used it). */ +const initEventReplay = (eventDelegation: EventContractDetails, injector: Injector): boolean => { const appId = injector.get(APP_ID); - // This is set in packages/platform-server/src/utils.ts - const earlyJsactionData = window._ejsas![appId]!; + // This is set in packages/platform-server/src/utils.ts. Two apps can share an APP_ID + // (duplicate bootstrap script, embedded widget), so it may already be cleared. + const earlyJsactionData = window._ejsas?.[appId]; + if (!earlyJsactionData) { + console.warn( + formatRuntimeError( + RuntimeErrorCode.EVENT_REPLAY_CONTRACT_ALREADY_CONSUMED, + ngDevMode && + `Event replay was skipped for APP_ID "${appId}". Another application on this page ` + + `already consumed the early event contract for this APP_ID. APP_ID must be unique ` + + `per application when multiple Angular applications share a page.`, + ), + ); + return false; + } const eventContract = (eventDelegation.instance = new EventContract( new EventContractContainer(earlyJsactionData.c), )); @@ -221,6 +246,7 @@ const initEventReplay = (eventDelegation: EventContractDetails, injector: Inject invokeRegisteredReplayListeners(injector, event, event.currentTarget as Element); }); registerDispatcher(eventContract, dispatcher); + return true; }; /** @@ -238,7 +264,7 @@ export function collectDomEventsInfo( if (!tCleanup || !lCleanup) { return domEventsInfo; } - for (let i = 0; i < tCleanup.length; ) { + for (let i = 0; i < tCleanup.length;) { const firstParam = tCleanup[i++]; const secondParam = tCleanup[i++]; if (typeof firstParam !== 'string') { diff --git a/packages/core/src/hydration/i18n.ts b/packages/core/src/hydration/i18n.ts index ec5afeb3da0a..18af3ae50021 100644 --- a/packages/core/src/hydration/i18n.ts +++ b/packages/core/src/hydration/i18n.ts @@ -18,6 +18,7 @@ import {getFirstNativeNode} from '../render3/node_manipulation'; import {nativeRemoveNode} from '../render3/dom_node_manipulation'; import {unwrapRNode} from '../render3/util/view_utils'; import {assertDefined, assertNotEqual} from '../util/assert'; +import {getFirstChild, getNextSibling} from '../util/dom'; import type {HydrationContext} from './annotate'; import {DehydratedIcuData, DehydratedView, I18N_DATA} from './interfaces'; @@ -391,7 +392,7 @@ function skipSiblingNodes(state: I18nHydrationState, skip: number) { if (!currentNode) { break; } - currentNode = currentNode?.nextSibling ?? null; + currentNode = getNextSibling(currentNode); } return currentNode; } @@ -439,7 +440,7 @@ function prepareI18nBlockForHydrationImpl( // If this i18n block is attached to an , then we want to begin // hydrating directly with the RNode. Otherwise, for a TNode with a physical DOM // element, we want to recurse into the first child and begin there. - return parentTNode!.type & TNodeType.ElementContainer ? rootNode : rootNode.firstChild; + return parentTNode!.type & TNodeType.ElementContainer ? rootNode : getFirstChild(rootNode); } // This is a nested template in an i18n block. In this case, the entire view @@ -453,7 +454,7 @@ function prepareI18nBlockForHydrationImpl( const disconnectedNodes = initDisconnectedNodes(hydrationInfo) ?? new Set(); const i18nNodes = (hydrationInfo.i18nNodes ??= new Map()); - const caseQueue = hydrationInfo.data[I18N_DATA]?.[index - HEADER_OFFSET] ?? []; + const caseQueue = [...(hydrationInfo.data[I18N_DATA]?.[index - HEADER_OFFSET] ?? [])]; const dehydratedIcuData = (hydrationInfo.dehydratedIcuData ??= new Map< number, DehydratedIcuData @@ -503,7 +504,7 @@ function collectI18nNodesFromDom( case I18nNodeKind.TEXT: { // Claim a text node for hydration const currentNode = appendI18nNodeToCollection(context, state, nodeOrNodes); - setCurrentNode(state, currentNode?.nextSibling ?? null); + setCurrentNode(state, currentNode && getNextSibling(currentNode)); break; } @@ -511,13 +512,13 @@ function collectI18nNodesFromDom( // Recurse into the current element's children... collectI18nNodesFromDom( context, - forkHydrationState(state, state.currentNode?.firstChild ?? null), + forkHydrationState(state, state.currentNode && getFirstChild(state.currentNode)), nodeOrNodes.children, ); // And claim the parent element itself. const currentNode = appendI18nNodeToCollection(context, state, nodeOrNodes); - setCurrentNode(state, currentNode?.nextSibling ?? null); + setCurrentNode(state, currentNode && getNextSibling(currentNode)); break; } @@ -547,10 +548,10 @@ function collectI18nNodesFromDom( // need to continue hydration with the children, and claim the node. collectI18nNodesFromDom( context, - forkHydrationState(state, state.currentNode?.firstChild ?? null), + forkHydrationState(state, state.currentNode && getFirstChild(state.currentNode)), nodeOrNodes.children, ); - setCurrentNode(state, currentNode?.nextSibling ?? null); + setCurrentNode(state, currentNode && getNextSibling(currentNode)); // Elements can also be the anchor of a view container, so there may // be elements after this node that we need to skip. @@ -609,7 +610,7 @@ function collectI18nNodesFromDom( // Hydration expects to find the ICU anchor element. const currentNode = appendI18nNodeToCollection(context, state, nodeOrNodes); - setCurrentNode(state, currentNode?.nextSibling ?? null); + setCurrentNode(state, currentNode && getNextSibling(currentNode)); break; } } diff --git a/packages/core/src/hydration/interfaces.ts b/packages/core/src/hydration/interfaces.ts index 16454cf33c0f..c7cdde630adf 100644 --- a/packages/core/src/hydration/interfaces.ts +++ b/packages/core/src/hydration/interfaces.ts @@ -46,7 +46,6 @@ export const DEFER_BLOCK_ID = 'di'; export const DEFER_BLOCK_STATE = 's'; export const DEFER_PARENT_BLOCK_ID = 'p'; export const DEFER_HYDRATE_TRIGGERS = 't'; -export const DEFER_PREFETCH_TRIGGERS = 'pt'; /** * Represents element containers within this view, stored as key-value pairs diff --git a/packages/core/src/hydration/node_lookup_utils.ts b/packages/core/src/hydration/node_lookup_utils.ts index ddff29c53374..5e904b06ba87 100644 --- a/packages/core/src/hydration/node_lookup_utils.ts +++ b/packages/core/src/hydration/node_lookup_utils.ts @@ -21,6 +21,7 @@ import {ɵɵresolveBody} from '../render3/util/misc_utils'; import {renderStringify} from '../render3/util/stringify_utils'; import {getNativeByTNode, unwrapRNode} from '../render3/util/view_utils'; import {assertDefined, assertEqual} from '../util/assert'; +import {getFirstChild, getNextSibling} from '../util/dom'; import {compressNodeLocation, decompressNodeLocation} from './compression'; import { @@ -150,7 +151,7 @@ export function locateNextRNode( } else { let previousRElement = getNativeByTNode(previousTNode, lView); if (previousTNodeParent) { - native = (previousRElement as RElement).firstChild; + native = getFirstChild(previousRElement as Node); } else { // If the previous node is an element, but it also has container info, // this means that we are processing a node like `
    `, which is @@ -169,7 +170,7 @@ export function locateNextRNode( // First node after this segment. native = siblingAfter(nodesToSkip, segmentHead); } else { - native = previousRElement.nextSibling; + native = getNextSibling(previousRElement as Node); } } } @@ -195,7 +196,7 @@ export function siblingAfter(skip: number, from: RNode): T | nu 'During hydration Angular expected more sibling nodes to be present. This usually means the client-rendered DOM no longer matches the server-rendered HTML.', ); } - currentNode = currentNode.nextSibling!; + currentNode = getNextSibling(currentNode as Node)!; } return currentNode as T; } @@ -242,10 +243,10 @@ function navigateToNode(from: Node, instructions: (number | NodeNavigationStep)[ } switch (step) { case NODE_NAVIGATION_STEP_FIRST_CHILD: - node = node.firstChild!; + node = getFirstChild(node)!; break; case NODE_NAVIGATION_STEP_NEXT_SIBLING: - node = node.nextSibling!; + node = getNextSibling(node)!; break; } } diff --git a/packages/core/src/hydration/skip_hydration.ts b/packages/core/src/hydration/skip_hydration.ts index 6285e90a2840..f4c509b2c256 100644 --- a/packages/core/src/hydration/skip_hydration.ts +++ b/packages/core/src/hydration/skip_hydration.ts @@ -8,6 +8,7 @@ import {TNode, TNodeFlags} from '../render3/interfaces/node'; import {RElement} from '../render3/interfaces/renderer_dom'; +import {clobberedElementError} from '../util/dom'; /** * The name of an attribute that can be added to the hydration boundary node @@ -41,6 +42,9 @@ export function hasSkipHydrationAttrOnTNode(tNode: TNode): boolean { * Helper function to check if a given RElement has the 'ngSkipHydration' attribute. */ export function hasSkipHydrationAttrOnRElement(rNode: RElement): boolean { + if (typeof rNode.hasAttribute !== 'function') { + throw clobberedElementError(rNode.hasAttribute as unknown as Node); + } return rNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME); } diff --git a/packages/core/src/hydration/utils.ts b/packages/core/src/hydration/utils.ts index d9518aff59d0..e309f2c2fd77 100644 --- a/packages/core/src/hydration/utils.ts +++ b/packages/core/src/hydration/utils.ts @@ -42,6 +42,7 @@ import {sharedMapFunction} from '../event_delegation_utils'; import {isDetachedByI18n} from '../i18n/utils'; import {isInSkipHydrationBlock} from '../render3/state'; import {TNode} from '../render3/interfaces/node'; +import {getFirstChild, getNextSibling} from '../util/dom'; /** * The name of the key used in the TransferState collection, @@ -166,7 +167,7 @@ export function retrieveHydrationInfoImpl( } const dehydratedView: DehydratedView = { data, - firstChild: rNode.firstChild ?? null, + firstChild: getFirstChild(rNode as unknown as Node), }; if (isRootView) { @@ -181,7 +182,7 @@ export function retrieveHydrationInfoImpl( // We use `0` here, since this is the slot (right after the HEADER_OFFSET) // where a component LView or an LContainer is located in a root LView. - setSegmentHead(dehydratedView, 0, rNode.nextSibling); + setSegmentHead(dehydratedView, 0, getNextSibling(rNode as unknown as Node)); } if (remainingNgh) { diff --git a/packages/core/src/linker/compiler.ts b/packages/core/src/linker/compiler.ts index fbcf5b960ee9..05886f5ca02f 100644 --- a/packages/core/src/linker/compiler.ts +++ b/packages/core/src/linker/compiler.ts @@ -17,7 +17,7 @@ import {NgModuleFactory} from './ng_module_factory'; /** * Low-level service for running the angular compiler during runtime - * to create {@link AbstractComponentFactory}s, which + * to create {@link NgModuleFactory} instances, which * can later be used to create and render a Component instance. * * Each `@NgModule` provides an own `Compiler` to its injector, diff --git a/packages/core/src/linker/view_container_ref.ts b/packages/core/src/linker/view_container_ref.ts index 2c59097bb88c..9b9fa4802a70 100644 --- a/packages/core/src/linker/view_container_ref.ts +++ b/packages/core/src/linker/view_container_ref.ts @@ -8,6 +8,7 @@ import {Injector} from '../di/injector'; import {EnvironmentInjector} from '../di/r3_injector'; +import {ErrorDetails} from '../error_handler'; import {validateMatchingNode} from '../hydration/error_handling'; import {CONTAINERS} from '../hydration/interfaces'; import {isInSkipHydrationBlock} from '../hydration/skip_hydration'; @@ -45,6 +46,7 @@ import { HEADER_OFFSET, HYDRATION, LView, + ON_ERROR, PARENT, RENDERER, T_HOST, @@ -71,6 +73,7 @@ import { } from '../util/assert'; import {RuntimeError, RuntimeErrorCode} from '../errors'; +import {registerSpecialProvider} from '../render3/debug/special_providers'; import {Binding, DirectiveWithBindings} from '../render3/dynamic_bindings'; import {addToEndOfViewTree} from '../render3/view/construction'; import {addLViewToLContainer, createLContainer, detachView} from '../render3/view/container'; @@ -79,7 +82,6 @@ import {createElementRef, ElementRef} from './element_ref'; import {NgModuleRef} from './ng_module_factory'; import {TemplateRef} from './template_ref'; import {EmbeddedViewRef, ViewRef} from './view_ref'; -import {registerSpecialProvider} from '../render3/debug/special_providers'; /** * Represents a container where one or more views can be attached to a component. @@ -181,6 +183,8 @@ export abstract class ViewContainerRef { * * index: The 0-based index at which to insert the new view into this container. * If not specified, appends the new view as the last entry. * * injector: Injector to be used within the embedded view. + * * onError: A callback that will be invoked when an error occurs during the view's change detection or lifecycle hooks. + * Note that this will not catch errors thrown during the view's creation. * * @returns The `ViewRef` instance for the newly created view. */ @@ -190,6 +194,7 @@ export abstract class ViewContainerRef { options?: { index?: number; injector?: Injector; + onError?: (error: Error, details: ErrorDetails) => void; }, ): EmbeddedViewRef; @@ -229,6 +234,8 @@ export abstract class ViewContainerRef { * [``](api/core/ng-content) of the new component instance. * * directives: Directives that should be applied to the component. * * bindings: Bindings that should be applied to the component. + * * onError: A callback that will be invoked when an error occurs during the component's change detection or lifecycle hooks. + * Note that this will not catch errors thrown during the component's construction. * * @returns The new `ComponentRef` which contains the component instance and the host view. */ @@ -242,6 +249,7 @@ export abstract class ViewContainerRef { projectableNodes?: Node[][]; directives?: (Type | DirectiveWithBindings)[]; bindings?: Binding[]; + onError?: (error: Error, context: ErrorDetails) => void; }, ): ComponentRef; @@ -258,7 +266,7 @@ export abstract class ViewContainerRef { /** * Moves a view to a new location in this container. * @param viewRef The view to move. - * @param index The 0-based index of the new location. + * @param currentIndex The 0-based index of the new location. * @returns The moved `ViewRef` instance. */ abstract move(viewRef: ViewRef, currentIndex: number): ViewRef; @@ -362,6 +370,7 @@ class R3ViewContainerRef extends ViewContainerRef { options?: { index?: number; injector?: Injector; + onError?: (error: Error, context: ErrorDetails) => void; }, ): EmbeddedViewRef; override createEmbeddedView( @@ -377,16 +386,19 @@ class R3ViewContainerRef extends ViewContainerRef { | { index?: number; injector?: Injector; + onError?: (error: Error, context: ErrorDetails) => void; }, ): EmbeddedViewRef { let index: number | undefined; let injector: Injector | undefined; + let onError: ((error: Error, context: ErrorDetails) => void) | undefined; if (typeof indexOrOptions === 'number') { index = indexOrOptions; } else if (indexOrOptions != null) { index = indexOrOptions.index; injector = indexOrOptions.injector; + onError = indexOrOptions.onError; } const dehydratedView = findMatchingDehydratedView(this._lContainer, templateRef.ssrId); @@ -395,6 +407,9 @@ class R3ViewContainerRef extends ViewContainerRef { injector, dehydratedView, ); + if (onError) { + (viewRef as R3ViewRef)._lView![ON_ERROR] = onError; + } this.insertImpl(viewRef, index, shouldAddViewToDom(this._hostTNode, dehydratedView)); return viewRef; } @@ -408,6 +423,7 @@ class R3ViewContainerRef extends ViewContainerRef { ngModuleRef?: NgModuleRef; directives?: (Type | DirectiveWithBindings)[]; bindings?: Binding[]; + onError?: (error: Error, context: ErrorDetails) => void; }, ): ComponentRef; override createComponent( @@ -420,6 +436,7 @@ class R3ViewContainerRef extends ViewContainerRef { projectableNodes?: Node[][]; directives?: (Type | DirectiveWithBindings)[]; bindings?: Binding[]; + onError?: (error: Error, context: ErrorDetails) => void; }, injector?: Injector | undefined, projectableNodes?: any[][] | undefined, @@ -428,6 +445,7 @@ class R3ViewContainerRef extends ViewContainerRef { bindings?: Binding[], ): ComponentRef { let index: number | undefined; + let onError: ((error: Error, context: ErrorDetails) => void) | undefined; if (ngDevMode) { assertDefined( @@ -452,6 +470,7 @@ class R3ViewContainerRef extends ViewContainerRef { projectableNodes?: Node[][]; directives?: (Type | DirectiveWithBindings)[]; bindings?: Binding[]; + onError?: (error: Error, context: ErrorDetails) => void; }; if (ngDevMode && options.environmentInjector && options.ngModuleRef) { @@ -465,6 +484,7 @@ class R3ViewContainerRef extends ViewContainerRef { environmentInjector = options.environmentInjector || options.ngModuleRef; directives = options.directives; bindings = options.bindings; + onError = options.onError; const componentFactory = new ComponentFactory(getComponentDef(componentType)!); const contextInjector = injector || this.parentInjector; @@ -510,6 +530,9 @@ class R3ViewContainerRef extends ViewContainerRef { bindings, this._getHostElementNamespace(), ); + if (onError) { + (componentRef.hostView as R3ViewRef)._lView![ON_ERROR] = onError; + } this.insertImpl( componentRef.hostView, index, diff --git a/packages/core/src/metadata/di.ts b/packages/core/src/metadata/di.ts index a95c6979bd58..8c6e31038a9c 100644 --- a/packages/core/src/metadata/di.ts +++ b/packages/core/src/metadata/di.ts @@ -123,7 +123,7 @@ export interface ContentChildrenDecorator { * * **emitDistinctChangesOnly** - The ` QueryList#changes` observable will emit new values only * if the QueryList result has changed. When `false` the `changes` observable might emit even * if the QueryList has not changed. - * ** Note: *** This config option is **deprecated**, it will be permanently set to `true` and + * **Note:** This config option is **deprecated**, it will be permanently set to `true` and * removed in future versions of Angular. * * **read** - Used to read a different token from the queried elements. * @@ -146,7 +146,7 @@ export interface ContentChildrenDecorator { * * Any provider defined on the injector of the component that is matched by the `selector` of * this query * * Any provider defined through a string token (e.g. `{provide: 'token', useValue: 'val'}`) - * * `TemplateRef`, `ElementRef`, and `ViewContainerRef` + * * `TemplateRef`, `ElementRef`, `ViewContainerRef`, and `Injector` * * @usageNotes * @@ -249,7 +249,7 @@ export interface ContentChildDecorator { * * Any provider defined on the injector of the component that is matched by the `selector` of * this query * * Any provider defined through a string token (e.g. `{provide: 'token', useValue: 'val'}`) - * * `TemplateRef`, `ElementRef`, and `ViewContainerRef` + * * `TemplateRef`, `ElementRef`, `ViewContainerRef`, and `Injector` * * Difference between dynamic and static queries: * @@ -335,7 +335,7 @@ export interface ViewChildrenDecorator { * * **emitDistinctChangesOnly** - The ` QueryList#changes` observable will emit new values only * if the QueryList result has changed. When `false` the `changes` observable might emit even * if the QueryList has not changed. - * ** Note: *** This config option is **deprecated**, it will be permanently set to `true` and + * **Note:** This config option is **deprecated**, it will be permanently set to `true` and * removed in future versions of Angular. * * The following selectors are supported. @@ -357,7 +357,7 @@ export interface ViewChildrenDecorator { * * Any provider defined on the injector of the component that is matched by the `selector` of * this query * * Any provider defined through a string token (e.g. `{provide: 'token', useValue: 'val'}`) - * * `TemplateRef`, `ElementRef`, and `ViewContainerRef` + * * `TemplateRef`, `ElementRef`, `ViewContainerRef`, and `Injector` * * @usageNotes * @@ -444,7 +444,7 @@ export interface ViewChildDecorator { * * Any provider defined on the injector of the component that is matched by the `selector` of * this query * * Any provider defined through a string token (e.g. `{provide: 'token', useValue: 'val'}`) - * * `TemplateRef`, `ElementRef`, and `ViewContainerRef` + * * `TemplateRef`, `ElementRef`, `ViewContainerRef`, and `Injector` * * Difference between dynamic and static queries: * * Dynamic queries \(`static: false`\) - The query resolves before the `ngAfterViewInit()` diff --git a/packages/core/src/metadata/directives.ts b/packages/core/src/metadata/directives.ts index da0ad2812ffa..a42f7010f1c3 100644 --- a/packages/core/src/metadata/directives.ts +++ b/packages/core/src/metadata/directives.ts @@ -337,13 +337,6 @@ export interface Directive { */ standalone?: boolean; - /** - * // TODO(signals): Remove internal and add public documentation - * - * @internal - */ - signals?: boolean; - /** * Standalone directives that should be applied to the host whenever the directive is matched. * By default, none of the inputs or outputs of the host directives will be available on the host, @@ -659,8 +652,7 @@ export interface Component extends Directive { * Note: this is an internal-only field, use regular `@Component.imports` field instead. * @internal // 3p-only */ - deferredImports?: - (Type | ReadonlyArray)[] | {[blockName: string]: (Type | ReadonlyArray)[]}; + deferredImports?: {[blockName: string]: (Type | ReadonlyArray)[]}; /** * The set of schemas that declare elements to be allowed in a standalone component. Elements and @@ -680,7 +672,8 @@ export interface Component extends Directive { */ export const Component: ComponentDecorator = makeDecorator( 'Component', - (c: Component = {}) => ({changeDetection: ChangeDetectionStrategy.Eager, ...c}), + // g3-only (c: Component = {}) => ({changeDetection: ChangeDetectionStrategy.OnPush, ...c}), + (c: Component = {}) => ({changeDetection: ChangeDetectionStrategy.Eager, ...c}), // 3p-only Directive, undefined, (type: Type, meta: Component) => compileComponent(type, meta), @@ -1069,6 +1062,11 @@ export interface HostListenerDecorator { * * NOTE: that keys can also be combined, e.g. `@HostListener('keydown.shift.a')`. * + * Key names are matched against `KeyboardEvent.key`, which depends on the user's keyboard + * layout and input language. To match a physical key regardless of layout, use the `code` + * modifier instead, e.g. `@HostListener('keydown.code.KeyA')`. See + * [Using key modifiers](guide/templates/event-listeners#using-key-modifiers) for details. + * * The global target names that can be used to prefix an event name are * `document:`, `window:` and `body:`. * diff --git a/packages/core/src/platform/bootstrap.ts b/packages/core/src/platform/bootstrap.ts index 515866db1785..e9e0c576bd28 100644 --- a/packages/core/src/platform/bootstrap.ts +++ b/packages/core/src/platform/bootstrap.ts @@ -11,12 +11,9 @@ import {PROVIDED_NG_ZONE} from '../change_detection/scheduling/ng_zone_schedulin import {R3Injector} from '../di/r3_injector'; import {INTERNAL_APPLICATION_ERROR_HANDLER} from '../error_handler'; import {formatRuntimeError, RuntimeError, RuntimeErrorCode} from '../errors'; -import {DEFAULT_LOCALE_ID} from '../i18n/localization'; -import {LOCALE_ID} from '../i18n/tokens'; import {ImagePerformanceWarning} from '../image_performance_warning'; import {Type} from '../interface/type'; import {PLATFORM_DESTROY_LISTENERS} from './platform_destroy_listeners'; -import {setLocaleId} from '../render3/i18n/i18n_locale_id'; import {NgZone} from '../zone/ng_zone'; import {ApplicationInitStatus} from '../application/application_init'; @@ -142,10 +139,6 @@ export function bootstrap( return initStatus.donePromise .then(() => { - // If the `LOCALE_ID` provider is defined at bootstrap then we set the value for ivy - const localeId = envInjector.get(LOCALE_ID, DEFAULT_LOCALE_ID); - setLocaleId(localeId || DEFAULT_LOCALE_ID); - const enableRootComponentbootstrap = envInjector.get( ENABLE_ROOT_COMPONENT_BOOTSTRAP, true, diff --git a/packages/core/src/platform/platform.ts b/packages/core/src/platform/platform.ts index a77fb7af347f..3d7ec12b2305 100644 --- a/packages/core/src/platform/platform.ts +++ b/packages/core/src/platform/platform.ts @@ -11,14 +11,7 @@ import { publishSignalConfiguration, } from '../application/application_ref'; import {PLATFORM_INITIALIZER} from '../application/application_tokens'; -import { - EnvironmentProviders, - InjectionToken, - Injector, - makeEnvironmentProviders, - runInInjectionContext, - StaticProvider, -} from '../di'; +import {InjectionToken, Injector, runInInjectionContext, StaticProvider} from '../di'; import {INJECTOR_SCOPE} from '../di/scope'; import {RuntimeError, RuntimeErrorCode} from '../errors'; diff --git a/packages/core/src/platform/platform_ref.ts b/packages/core/src/platform/platform_ref.ts index 29bf57a970fa..0ec81e5bdf05 100644 --- a/packages/core/src/platform/platform_ref.ts +++ b/packages/core/src/platform/platform_ref.ts @@ -52,7 +52,11 @@ export class PlatformRef { provideZonelessChangeDetectionInternal(), ...(options?.applicationProviders ?? []), errorHandlerEnvironmentInitializer, - ...(ngDevMode ? [validAppIdInitializer] : []), + ...(typeof ngDevMode === 'undefined' || + ngDevMode || + (typeof ngServerMode !== 'undefined' && ngServerMode) + ? [validAppIdInitializer] + : []), ]; const moduleRef = createNgModuleRefWithProviders( moduleFactory.moduleType, diff --git a/packages/core/src/render3/PERF_NOTES.md b/packages/core/src/render3/PERF_NOTES.md index 467bfc50a127..8c0cf48f4ee6 100644 --- a/packages/core/src/render3/PERF_NOTES.md +++ b/packages/core/src/render3/PERF_NOTES.md @@ -8,8 +8,7 @@ Each Array costs 70 bytes and is composed of `Array` and `(array)` object Each Object cost is 24 bytes plus 8 bytes per property. For small arrays, it is more efficient to store the data as a linked list -of items rather than small arrays. However, the array access is faster as -shown here: https://jsperf.com/small-arrays-vs-linked-objects +of items rather than small arrays. However, the array access is faster. ## Monomorphic vs Megamorphic code @@ -21,8 +20,6 @@ Great reads: 1. Monomorphic prop access is 100 times faster than megamorphic. 2. Monomorphic call is 4 times faster the megamorphic call. -See benchmark [here](https://jsperf.com/mono-vs-megamorphic-property-access). - ## Packed vs. holey Array V8 represents arrays internally in a different way depending on: @@ -75,8 +72,8 @@ Also writing to a property of `exports` might change its hidden class resulting ## Iterating over Keys of an Object. -https://jsperf.com/object-keys-vs-for-in-with-closure/3 implies that `Object.keys` is the fastest way of iterating -over properties of an object. +[This benchmark](https://jsperf.app/object-keys-vs-for-in-with-closure/3) implies that +`Object.keys` is the fastest way of iterating over properties of an object. ``` for (var i = 0, keys = Object.keys(obj); i < keys.length; i++) { @@ -87,7 +84,6 @@ for (var i = 0, keys = Object.keys(obj); i < keys.length; i++) { ## Recursive functions Avoid recursive functions when possible because they cannot be inlined. -https://jsperf.com/cost-of-recursion ## Function Inlining @@ -127,7 +123,7 @@ export function i18nStartfirstCreatePass(tView: TView, index: number, message: s ## Loops Don't use `forEach`, it can cause megamorphic function calls (depending on the browser) and function allocations. -It is [a lot slower than regular `for` loops](https://jsperf.com/for-vs-foreach-misko) +It is a lot slower than regular `for` loops. ## Limit global state access diff --git a/packages/core/src/render3/VIEW_DATA.md b/packages/core/src/render3/VIEW_DATA.md index 1f7437bc2a97..c898ec3e5a7c 100644 --- a/packages/core/src/render3/VIEW_DATA.md +++ b/packages/core/src/render3/VIEW_DATA.md @@ -308,7 +308,6 @@ function factory(fn) { } const FactoryPrototype = Factory.prototype; function isFactory(obj: any): obj is Factory { - // See: https://jsperf.com/instanceof-vs-getprototypeof return typeof obj === 'object' && Object.getPrototypeOf(obj) === FactoryPrototype; } ``` diff --git a/packages/core/src/render3/after_render/manager.ts b/packages/core/src/render3/after_render/manager.ts index 08385dd8d52f..9cc5c54662bc 100644 --- a/packages/core/src/render3/after_render/manager.ts +++ b/packages/core/src/render3/after_render/manager.ts @@ -131,15 +131,19 @@ export class AfterRenderImpl { // Mark the view for traversal to ensure we eventually schedule the afterNextRender. markAncestorsForTraversal(view); view[FLAGS] |= LViewFlags.HasChildViewsToRefresh; - } else if (!this.executing) { - this.addSequence(sequence); } else { - this.deferredRegistrations.add(sequence); + this.addSequence(sequence); } } addSequence(sequence: AfterRenderSequence): void { - this.sequences.add(sequence); + if (this.executing) { + // Defer registrations made while hooks are running. Otherwise the sequence could start + // in the current pass with its earlier phases already skipped. See #61715. + this.deferredRegistrations.add(sequence); + } else { + this.sequences.add(sequence); + } // Trigger an `ApplicationRef.tick()` if one is not already pending/running, because we have a // new render hook that needs to run. this.scheduler.notify(NotificationSource.RenderHook); diff --git a/packages/core/src/render3/assert.ts b/packages/core/src/render3/assert.ts index 80380ea3a21c..8305fdbb9333 100644 --- a/packages/core/src/render3/assert.ts +++ b/packages/core/src/render3/assert.ts @@ -6,7 +6,6 @@ * found in the LICENSE file at https://angular.dev/license */ -import {RuntimeError, RuntimeErrorCode} from '../errors'; import { assertDefined, assertEqual, @@ -16,7 +15,7 @@ import { throwError, } from '../util/assert'; -import {getComponentDef, getNgModuleDef} from './def_getters'; +import {getNgModuleDef} from './def_getters'; import {LContainer} from './interfaces/container'; import {DirectiveDef} from './interfaces/definition'; import {TIcu} from './interfaces/i18n'; @@ -74,15 +73,6 @@ export function assertTIcu(tIcu: TIcu) { } } -export function assertComponentType( - actual: any, - msg: string = "Type passed in is not ComponentType, it does not have 'ɵcmp' property.", -) { - if (!getComponentDef(actual)) { - throwError(msg); - } -} - export function assertNgModuleType( actual: any, msg: string = "Type passed in is not NgModuleType, it does not have 'ɵmod' property.", @@ -92,10 +82,6 @@ export function assertNgModuleType( } } -export function assertCurrentTNodeIsParent(isParent: boolean) { - assertEqual(isParent, true, 'currentTNode should be a parent'); -} - export function assertHasParent(tNode: TNode | null) { assertDefined(tNode, 'currentTNode should exist!'); assertDefined(tNode!.parent, 'currentTNode should have a parent'); diff --git a/packages/core/src/render3/component.ts b/packages/core/src/render3/component.ts index 75fde9f79039..2627964c8ad1 100644 --- a/packages/core/src/render3/component.ts +++ b/packages/core/src/render3/component.ts @@ -15,6 +15,9 @@ import {ComponentFactory} from './component_ref'; import {getComponentDef} from './def_getters'; import {Binding, DirectiveWithBindings} from './dynamic_bindings'; import {assertComponentDef} from './errors'; +import {ON_ERROR} from './interfaces/view'; +import {ErrorDetails} from '../error_handler'; +import {ViewRef as R3ViewRef} from './view_ref'; /** * Creates a `ComponentRef` instance based on provided component type and a set of options. @@ -74,6 +77,8 @@ import {assertComponentDef} from './errors'; * and `element3` into a separate ``. * * `directives` (optional): Directives that should be applied to the component. * * `bindings` (optional): Bindings to apply to the root component. + * * `onError` (optional): A callback that will be invoked when an error occurs during the component's change detection or lifecycle hooks. + * Note that this will not catch errors thrown during the component's construction. * @returns ComponentRef instance that represents a given Component. * * @see [Host view using `ViewContainerRef.createComponent`](guide/components/programmatic-rendering#host-view-using-viewcontainerrefcreatecomponent) @@ -90,13 +95,14 @@ export function createComponent( projectableNodes?: Node[][]; directives?: (Type | DirectiveWithBindings)[]; bindings?: Binding[]; + onError?: (error: Error, details: ErrorDetails) => void; }, ): ComponentRef { ngDevMode && assertComponentDef(component); const componentDef = getComponentDef(component)!; const elementInjector = options.elementInjector || getNullInjector(); const factory = new ComponentFactory(componentDef); - return factory.create( + const componentRef = factory.create( elementInjector, options.projectableNodes, options.hostElement, @@ -104,6 +110,10 @@ export function createComponent( options.directives, options.bindings, ); + if (options.onError) { + (componentRef.hostView as R3ViewRef)._lView![ON_ERROR] = options.onError; + } + return componentRef; } /** @@ -143,11 +153,6 @@ export interface ComponentMirror { * Note: an extra flag, not present in `ComponentFactory`. */ get isStandalone(): boolean; - /** - * // TODO(signals): Remove internal and add public documentation - * @internal - */ - get isSignal(): boolean; } /** @@ -217,8 +222,5 @@ export function reflectComponentType(component: Type): ComponentMirror get isStandalone(): boolean { return componentDef.standalone; }, - get isSignal(): boolean { - return componentDef.signals; - }, }; } diff --git a/packages/core/src/render3/component_ref.ts b/packages/core/src/render3/component_ref.ts index ff4f9e7ecf17..35a6e387671e 100644 --- a/packages/core/src/render3/component_ref.ts +++ b/packages/core/src/render3/component_ref.ts @@ -16,7 +16,7 @@ import { import {Injector} from '../di/injector'; import {EnvironmentInjector} from '../di/r3_injector'; import {RuntimeError, RuntimeErrorCode} from '../errors'; -import {AbstractType, Type} from '../interface/type'; +import {Type} from '../interface/type'; import {ComponentRef as AbstractComponentRef} from '../linker/component_factory'; import {createElementRef, ElementRef} from '../linker/element_ref'; import {NgModuleRef} from '../linker/ng_module_factory'; @@ -83,6 +83,8 @@ import {getComponentLViewByIndex, getTNode, storeLViewOnDestroy} from './util/vi import {createLView, createTView, getInitialLViewFlagsFromDef} from './view/construction'; import {directiveHostEndFirstCreatePass, directiveHostFirstCreatePass} from './view/elements'; import {ViewRef} from './view_ref'; +import {DEFAULT_LOCALE_ID} from '../i18n/localization'; +import {LOCALE_ID} from '../i18n/tokens'; const shadowRootSupported = typeof ShadowRoot !== 'undefined'; const documentSupported = typeof Document !== 'undefined'; @@ -171,6 +173,7 @@ function createRootLViewEnvironment(rootLViewInjector: Injector): LViewEnvironme changeDetectionScheduler, ngReflect, tracingService, + locale: rootLViewInjector.get(LOCALE_ID, DEFAULT_LOCALE_ID), }; } @@ -271,6 +274,7 @@ export class ComponentFactory { directives?: (Type | DirectiveWithBindings)[], componentBindings?: Binding[], hostElementNamespace?: string | null, + allowNonStandaloneDirectives?: boolean, ): AbstractComponentRef { profiler(ProfilerEvent.DynamicComponentStart); @@ -296,6 +300,7 @@ export class ComponentFactory { directives, componentBindings, hostElementNamespace, + allowNonStandaloneDirectives, ), ); } else { @@ -307,6 +312,7 @@ export class ComponentFactory { directives, componentBindings, hostElementNamespace, + allowNonStandaloneDirectives, ); } } finally { @@ -322,9 +328,16 @@ export class ComponentFactory { directives?: (Type | DirectiveWithBindings)[], componentBindings?: Binding[], hostElementNamespace?: string | null, + allowNonStandaloneDirectives?: boolean, ) { const cmpDef = this.componentDef; - const rootTView = createRootTView(rootSelectorOrNode, cmpDef, componentBindings, directives); + const rootTView = createRootTView( + rootSelectorOrNode, + cmpDef, + componentBindings, + directives, + allowNonStandaloneDirectives, + ); const hostRenderer = environment.rendererFactory.createRenderer(null, cmpDef); const hostElement = rootSelectorOrNode @@ -434,6 +447,7 @@ function createRootTView( componentDef: ComponentDef, componentBindings: Binding[] | undefined, directives: (Type | DirectiveWithBindings)[] | undefined, + allowNonStandaloneDirectives?: boolean, ): TView { const tAttributes = rootSelectorOrNode ? ['ng-version', '0.0.0-PLACEHOLDER'] @@ -448,12 +462,12 @@ function createRootTView( varsToAllocate += binding[BINDING].requiredVars; if (binding.create) { - (binding as BindingInternal).targetIdx = 0; + binding.targetIdx = 0; (creationBindings ??= []).push(binding); } if (binding.update) { - (binding as BindingInternal).targetIdx = 0; + binding.targetIdx = 0; (updateBindings ??= []).push(binding); } } @@ -466,13 +480,14 @@ function createRootTView( for (const binding of directive.bindings as BindingInternal[]) { varsToAllocate += binding[BINDING].requiredVars; const targetDirectiveIdx = i + 1; + if (binding.create) { - (binding as BindingInternal).targetIdx = targetDirectiveIdx; + binding.targetIdx = targetDirectiveIdx; (creationBindings ??= []).push(binding); } if (binding.update) { - (binding as BindingInternal).targetIdx = targetDirectiveIdx; + binding.targetIdx = targetDirectiveIdx; (updateBindings ??= []).push(binding); } } @@ -488,7 +503,7 @@ function createRootTView( ? getDirectiveDefOrThrow(directiveType) : getDirectiveDef(directiveType)!; - if (ngDevMode && !directiveDef.standalone) { + if (ngDevMode && !allowNonStandaloneDirectives && !directiveDef.standalone) { throw new RuntimeError( RuntimeErrorCode.TYPE_IS_NOT_STANDALONE, `The ${stringifyForError(directiveType)} directive must be standalone in ` + diff --git a/packages/core/src/render3/context_discovery.ts b/packages/core/src/render3/context_discovery.ts index b59c11375a29..2d795311f4c0 100644 --- a/packages/core/src/render3/context_discovery.ts +++ b/packages/core/src/render3/context_discovery.ts @@ -168,22 +168,6 @@ export function getComponentViewByInstance(componentInstance: {}): LView { */ const MONKEY_PATCH_KEY_NAME = '__ngContext__'; -export function attachLViewId(target: any, data: LView) { - target[MONKEY_PATCH_KEY_NAME] = data[ID]; -} - -/** - * Returns the monkey-patch value data present on the target (which could be - * a component, directive or a DOM node). - */ -export function readLView(target: any): LView | null { - const data = readPatchedData(target); - if (isLView(data)) { - return data; - } - return data ? data.lView : null; -} - /** * Assigns the given data to the given target (which could be a component, * directive or DOM node instance) using monkey-patching. diff --git a/packages/core/src/render3/definition.ts b/packages/core/src/render3/definition.ts index dd7695c5f7cf..324ab80cd9c2 100644 --- a/packages/core/src/render3/definition.ts +++ b/packages/core/src/render3/definition.ts @@ -207,11 +207,6 @@ interface DirectiveDefinition { * Whether this directive/component is standalone. */ standalone?: boolean; - - /** - * Whether this directive/component is signal-based. - */ - signals?: boolean; } interface ComponentDefinition extends Omit, 'features'> { @@ -359,7 +354,6 @@ export function ɵɵdefineComponent( } : null, getExternalStyles: null, - signals: componentDefinition.signals ?? false, data: componentDefinition.data || {}, encapsulation: componentDefinition.encapsulation || ViewEncapsulation.Emulated, styles: componentDefinition.styles || EMPTY_ARRAY, @@ -631,7 +625,6 @@ function getNgDirectiveDef(directiveDefinition: DirectiveDefinition): Dire inputConfig: directiveDefinition.inputs || EMPTY_OBJ, exportAs: directiveDefinition.exportAs || null, standalone: directiveDefinition.standalone ?? true, - signals: directiveDefinition.signals === true, selectors: directiveDefinition.selectors || EMPTY_ARRAY, viewQuery: directiveDefinition.viewQuery || null, features: directiveDefinition.features || null, @@ -712,7 +705,6 @@ function getComponentId(componentDef: ComponentDef): string { componentDef.decls, componentDef.encapsulation, componentDef.standalone, - componentDef.signals, componentDef.exportAs, JSON.stringify(componentDef.inputs), JSON.stringify(componentDef.outputs), diff --git a/packages/core/src/render3/deps_tracker/deps_tracker.ts b/packages/core/src/render3/deps_tracker/deps_tracker.ts index 5fe97a6a4315..0d51697292d6 100644 --- a/packages/core/src/render3/deps_tracker/deps_tracker.ts +++ b/packages/core/src/render3/deps_tracker/deps_tracker.ts @@ -16,7 +16,7 @@ import type { NgModuleScopeInfoFromDecorator, RawScopeInfoFromDecorator, } from '../interfaces/definition'; -import {isComponent, isDirective, isNgModule, isPipe, verifyStandaloneImport} from '../jit/util'; +import {isComponent, isDirective, isNgModule, isPipe} from '../jit/util'; import {getComponentDef, getNgModuleDef, getNgModuleDefOrThrow, isStandalone} from '../def_getters'; import {maybeUnwrapFn} from '../util/misc_utils'; @@ -257,15 +257,7 @@ class DepsTracker implements DepsTrackerApi { for (const rawImport of flatten(rawImports ?? [])) { const imported = resolveForwardRef(rawImport) as Type; - try { - verifyStandaloneImport(imported, type); - } catch (e) { - // Short-circuit if an import is not valid - ans.compilation.isPoisoned = true; - return ans; - } - - if (isNgModule(imported)) { + if (imported && isNgModule(imported)) { ans.compilation.ngModules.add(imported); const importedScope = this.getNgModuleScope(imported); @@ -277,13 +269,19 @@ class DepsTracker implements DepsTrackerApi { addSet(importedScope.exported.directives, ans.compilation.directives); addSet(importedScope.exported.pipes, ans.compilation.pipes); - } else if (isPipe(imported)) { - ans.compilation.pipes.add(imported); - } else if (isDirective(imported) || isComponent(imported)) { - ans.compilation.directives.add(imported); + } else if (imported && isStandalone(imported)) { + if (isPipe(imported)) { + ans.compilation.pipes.add(imported); + } else if (isDirective(imported) || isComponent(imported)) { + ans.compilation.directives.add(imported); + } else { + // The imported thing is not module/pipe/directive/component, so we error and short-circuit + // here + ans.compilation.isPoisoned = true; + return ans; + } } else { - // The imported thing is not module/pipe/directive/component, so we error and short-circuit - // here + // Short-circuit if an import is not valid ans.compilation.isPoisoned = true; return ans; } diff --git a/packages/core/src/render3/di.ts b/packages/core/src/render3/di.ts index 243ad7dd88b1..08af27574110 100644 --- a/packages/core/src/render3/di.ts +++ b/packages/core/src/render3/di.ts @@ -974,6 +974,8 @@ function lookupTokenUsingEmbeddedInjector( ) { let currentTNode: TDirectiveHostNode | null = tNode; let currentLView: LView | null = lView; + const hostTElementNode: TNode | null = + flags & InternalInjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null; // When an LView with an embedded view injector is inserted, it'll likely be interlaced with // nodes who may have injectors (e.g. node injector -> embedded view injector -> node injector). @@ -1003,6 +1005,15 @@ function lookupTokenUsingEmbeddedInjector( return nodeInjectorValue; } + // The injector of the node we started from has been checked at this point, so everything + // we look at from here on is a parent and must not be skipped by the `SkipSelf` flag. + flags &= ~InternalInjectFlags.SkipSelf; + + // If @Host is set and we reached the host element node, we must not search any parent. + if (flags & InternalInjectFlags.Host && currentTNode === hostTElementNode) { + return notFoundValue; + } + // Has an explicit type due to a TS bug: https://github.com/microsoft/TypeScript/issues/33191 let parentTNode: TElementNode | TContainerNode | null = currentTNode.parent; @@ -1015,11 +1026,7 @@ function lookupTokenUsingEmbeddedInjector( const embeddedViewInjectorValue = (embeddedViewInjector as BackwardsCompatibleInjector).get( token, NOT_FOUND as T | {}, - // The `SkipSelf` flag is intended for the current injection context (the child component). - // When we delegate to the embedded view injector, we are effectively traversing to a - // parent/fallback scope, so the "Self" has already been skipped. We must strip the - // flag to ensure the embedded view injector can resolve tokens from itself. - flags & ~InternalInjectFlags.SkipSelf, + flags, ); if (embeddedViewInjectorValue !== NOT_FOUND) { return embeddedViewInjectorValue; diff --git a/packages/core/src/render3/dom_node_manipulation.ts b/packages/core/src/render3/dom_node_manipulation.ts index ea7f47609bc1..544f34569c13 100644 --- a/packages/core/src/render3/dom_node_manipulation.ts +++ b/packages/core/src/render3/dom_node_manipulation.ts @@ -6,12 +6,14 @@ * found in the LICENSE file at https://angular.dev/license */ +import {assertDefined, assertString} from '../util/assert'; +import {escapeCommentText} from '../util/dom'; +import {TNode} from './interfaces/node'; import {Renderer} from './interfaces/renderer'; import {RComment, RElement, RNode, RText} from './interfaces/renderer_dom'; -import {escapeCommentText} from '../util/dom'; -import {assertDefined, assertString} from '../util/assert'; +import {SanitizerFn} from './interfaces/sanitization'; import {setUpAttributes} from './util/attrs_utils'; -import {TNode} from './interfaces/node'; +import {renderStringify} from './util/stringify_utils'; export function createTextNode(renderer: Renderer, value: string): RText { return renderer.createText(value); @@ -102,6 +104,33 @@ export function clearElementContents(rElement: RElement): void { rElement.textContent = ''; } +/** + * Set a value of a DOM element attribute. An attribute is removed if the value is null or undefined. + */ + +export function setElementAttribute( + renderer: Renderer, + element: RElement, + namespace: string | null | undefined, + tagName: string | null, + name: string, + value: any, + sanitizer: SanitizerFn | null | undefined, +) { + if (value == null) { + if (sanitizer != null) { + // Execute sanitizer to enforce security controls (e.g., neutralizing iframe) + sanitizer(value, tagName || '', name); + } + renderer.removeAttribute(element, name, namespace); + } else { + const strValue = + sanitizer == null ? renderStringify(value) : sanitizer(value, tagName || '', name); + + renderer.setAttribute(element, name, strValue as string, namespace); + } +} + /** * Write `cssText` to `RElement`. * diff --git a/packages/core/src/render3/dynamic_bindings.ts b/packages/core/src/render3/dynamic_bindings.ts index da7c7831ae08..7cc0e0628416 100644 --- a/packages/core/src/render3/dynamic_bindings.ts +++ b/packages/core/src/render3/dynamic_bindings.ts @@ -197,7 +197,7 @@ export function outputBinding(eventName: string, listener: (event: T) => unkn /** * Creates a two-way binding. - * @param eventName Public name of the two-way compatible input. + * @param publicName Public name of the two-way compatible input. * @param value Writable signal from which to get the current value and to which to write new * values. * diff --git a/packages/core/src/render3/features/inherit_definition_feature.ts b/packages/core/src/render3/features/inherit_definition_feature.ts index fa05587f7071..919aeec6e77b 100644 --- a/packages/core/src/render3/features/inherit_definition_feature.ts +++ b/packages/core/src/render3/features/inherit_definition_feature.ts @@ -59,7 +59,9 @@ export function ɵɵInheritDefinitionFeature( if (isComponentDef(definition)) { superDef = cmpDef ?? dirDef; } else { - if (cmpDef) { + // Abstract directives (and undecorated base classes compiled as such) + // may extend components without throwing. + if (cmpDef && definition.selectors && definition.selectors.length > 0) { throw new RuntimeError( RuntimeErrorCode.INVALID_INHERITANCE, ngDevMode && @@ -68,7 +70,7 @@ export function ɵɵInheritDefinitionFeature( )} is attempting to extend component ${stringifyForError(superType)}`, ); } - superDef = dirDef; + superDef = cmpDef ?? dirDef; } if (superDef) { @@ -96,12 +98,10 @@ export function ɵɵInheritDefinitionFeature( fillProperties(definition.outputs, superDef.outputs); // Merge animations metadata. - // If `superDef` is a Component, the `data` field is present (defaults to an empty object). - if (isComponentDef(superDef) && superDef.data.animation) { - // If super def is a Component, the `definition` is also a Component, since Directives can - // not inherit Components (we throw an error above and cannot reach this code). - const defData = (definition as ComponentDef).data; - defData.animation = (defData.animation || []).concat(superDef.data.animation); + const superAnimation = (superDef as ComponentDef).data?.animation; + if (superAnimation) { + const defData = ((definition as Writable>).data ??= {}); + defData.animation = (defData.animation || []).concat(superAnimation); } } diff --git a/packages/core/src/render3/features/providers_feature.ts b/packages/core/src/render3/features/providers_feature.ts index 3ded88786adf..ece8206e034a 100644 --- a/packages/core/src/render3/features/providers_feature.ts +++ b/packages/core/src/render3/features/providers_feature.ts @@ -5,7 +5,7 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ -import {ProcessProvidersFunction, Provider} from '../../di/interface/provider'; +import {Provider} from '../../di/interface/provider'; import {providersResolver} from '../di_setup'; import {DirectiveDef} from '../interfaces/definition'; diff --git a/packages/core/src/render3/hmr.ts b/packages/core/src/render3/hmr.ts index 465af090bd7b..3a264af5a987 100644 --- a/packages/core/src/render3/hmr.ts +++ b/packages/core/src/render3/hmr.ts @@ -23,10 +23,12 @@ import { CHILD_TAIL, CONTEXT, ENVIRONMENT, + FLAGS, HEADER_OFFSET, HOST, INJECTOR, LView, + LViewFlags, NEXT, PARENT, RENDERER, @@ -307,7 +309,9 @@ function recreateLView( // Creation pass for the new view. renderView(newTView, newLView, instance); - // Update pass for the new view. + // Consume the initial refresh flag before updating, as in normal change detection, + // so views dirtied during this pass (e.g. by an error boundary) can schedule a refresh. + newLView[FLAGS] &= ~LViewFlags.RefreshView; refreshView(newTView, newLView, newTView.template, instance); }; diff --git a/packages/core/src/render3/i18n/i18n_apply.ts b/packages/core/src/render3/i18n/i18n_apply.ts index 96745d19fbb6..a3e96d1eae36 100644 --- a/packages/core/src/render3/i18n/i18n_apply.ts +++ b/packages/core/src/render3/i18n/i18n_apply.ts @@ -21,7 +21,7 @@ import { } from '../../util/assert'; import {assertIndexInExpandoRange, assertTIcu} from '../assert'; import {attachPatchData} from '../context_discovery'; -import {setPropertyAndInputs, setElementAttribute} from '../instructions/shared'; +import {setPropertyAndInputs} from '../instructions/shared'; import { ELEMENT_MARKER, I18nCreateOpCode, @@ -38,13 +38,14 @@ import { import {TNode} from '../interfaces/node'; import {RElement, RNode, RText} from '../interfaces/renderer_dom'; import {SanitizerFn} from '../interfaces/sanitization'; -import {HEADER_OFFSET, HYDRATION, LView, RENDERER, TView} from '../interfaces/view'; +import {ENVIRONMENT, HEADER_OFFSET, HYDRATION, LView, RENDERER, TView} from '../interfaces/view'; import { createCommentNode, createElementNode, createTextNode, nativeInsertBefore, nativeRemoveNode, + setElementAttribute, updateTextNode, } from '../dom_node_manipulation'; import { @@ -58,7 +59,6 @@ import { import {renderStringify} from '../util/stringify_utils'; import {getNativeByIndex, unwrapRNode} from '../util/view_utils'; -import {getLocaleId} from './i18n_locale_id'; import { getCurrentICUCaseIndex, getParentFromIcuCreateOpCode, @@ -529,7 +529,7 @@ function applyIcuUpdateCase(tView: TView, tIcu: TIcu, bindingsStartIndex: number */ function applyIcuSwitchCase(tView: TView, tIcu: TIcu, lView: LView, value: string) { // Rebuild a new case for this ICU - const caseIndex = getCaseIndex(tIcu, value); + const caseIndex = getCaseIndex(lView[ENVIRONMENT].locale, tIcu, value); let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView); if (activeCaseIndex !== caseIndex) { applyIcuSwitchCaseRemove(tView, tIcu, lView); @@ -579,12 +579,12 @@ function applyIcuSwitchCaseRemove(tView: TView, tIcu: TIcu, lView: LView) { * @param icuExpression * @param bindingValue The value of the main binding used by this ICU expression */ -function getCaseIndex(icuExpression: TIcu, bindingValue: string): number | null { +function getCaseIndex(locale: string, icuExpression: TIcu, bindingValue: string): number | null { let index = icuExpression.cases.indexOf(bindingValue); if (index === -1) { switch (icuExpression.type) { case IcuType.plural: { - const resolvedCase = getPluralCase(bindingValue, getLocaleId()); + const resolvedCase = getPluralCase(bindingValue, locale); index = icuExpression.cases.indexOf(resolvedCase); if (index === -1 && resolvedCase !== 'other') { index = icuExpression.cases.indexOf('other'); diff --git a/packages/core/src/render3/i18n/i18n_locale_id.ts b/packages/core/src/render3/i18n/i18n_locale_id.ts deleted file mode 100644 index 769bf58aaec9..000000000000 --- a/packages/core/src/render3/i18n/i18n_locale_id.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @license - * Copyright Google LLC All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.dev/license - */ - -import {DEFAULT_LOCALE_ID} from '../../i18n/localization'; -import {assertDefined} from '../../util/assert'; - -/** - * The locale id that the application is currently using (for translations and ICU expressions). - * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine - * but is now defined as a global value. - */ -let LOCALE_ID = DEFAULT_LOCALE_ID; - -/** - * Sets the locale id that will be used for translations and ICU expressions. - * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine - * but is now defined as a global value. - * - * @param localeId - */ -export function setLocaleId(localeId: string) { - ngDevMode && assertDefined(localeId, `Expected localeId to be defined`); - if (typeof localeId === 'string') { - LOCALE_ID = localeId.toLowerCase().replace(/_/g, '-'); - } -} - -/** - * Gets the locale id that will be used for translations and ICU expressions. - * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine - * but is now defined as a global value. - */ -export function getLocaleId(): string { - return LOCALE_ID; -} diff --git a/packages/core/src/render3/i18n/i18n_parse.ts b/packages/core/src/render3/i18n/i18n_parse.ts index 57925c3d4886..adf333dfc754 100644 --- a/packages/core/src/render3/i18n/i18n_parse.ts +++ b/packages/core/src/render3/i18n/i18n_parse.ts @@ -10,6 +10,7 @@ import '../../util/ng_i18n_closure_mode'; import {XSS_SECURITY_URL} from '../../error_details_base_url'; import {checkSecurityContext, SecurityContext} from '../../sanitization/dom_security_schema'; +import {formatRuntimeError, RuntimeError, RuntimeErrorCode} from '../../errors'; import {getTemplateContent, VALID_ATTRS, VALID_ELEMENTS} from '../../sanitization/html_sanitizer'; import {getInertBodyHelper} from '../../sanitization/inert_body'; import { @@ -17,9 +18,9 @@ import { ɵɵsanitizeResourceUrl as _sanitizeResourceUrl, ɵɵsanitizeScript as _sanitizeScript, ɵɵsanitizeStyle as _sanitizeStyle, + ɵɵsanitizeUrl as _sanitizeUrl, ɵɵvalidateAttribute as _validateAttribute, } from '../../sanitization/sanitization'; -import {_sanitizeUrl} from '../../sanitization/url_sanitizer'; import { assertDefined, assertEqual, @@ -28,6 +29,7 @@ import { assertString, } from '../../util/assert'; import {CharCode} from '../../util/char_code'; +import {getFirstChild, getNextSibling, getNodeName} from '../../util/dom'; import {loadIcuContainerVisitor} from './i18n_icu_container_visitor'; import {getDocument} from '../interfaces/document'; @@ -77,7 +79,7 @@ import {splitNsName} from '../util/tags'; import {NAMESPACE_URIS} from '../namespaces'; const BINDING_REGEXP = /�(\d+):?\d*�/gi; -const ICU_REGEXP = /({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi; +const ICU_REGEXP = /({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/i; const NESTED_ICU = /�(\d+)�/; const ICU_BLOCK_REGEXP = /^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/; @@ -177,11 +179,20 @@ export function i18nStartFirstCreatePass( // Verify that ICU expression has the right shape. Translations might contain invalid // constructions (while original messages were correct), so ICU parsing at runtime may // not succeed (thus `icuExpression` remains a string). - // Note: we intentionally retain the error here by not using `ngDevMode`, because - // the value can change based on the locale and users aren't guaranteed to hit - // an invalid string while they're developing. + // Note: we intentionally throw the error in production mode as well (only the + // message is guarded by `ngDevMode`), because the value can change based on the + // locale and users aren't guaranteed to hit an invalid string while they're + // developing. if (typeof icuExpression !== 'object') { - throw new Error(`Unable to parse ICU expression in "${message}" message.`); + throw new RuntimeError( + RuntimeErrorCode.UNPARSABLE_ICU_EXPRESSION, + ngDevMode && + `Unable to parse ICU expression in "${message}" message. ` + + `Check that the translation contains a valid ICU expression. ` + + `Note that ICU expressions in translations are only supported if the ` + + `original message contains an ICU expression as well: introducing an ` + + `ICU expression solely in a translation is not supported.`, + ); } const icuContainerTNode = createTNodeAndAddOpCode( tView, @@ -801,19 +812,34 @@ function walkIcuTree( depth: number, ): number { let bindingMask = 0; - let currentNode = parentNode.firstChild; + let currentNode = getFirstChild(parentNode); while (currentNode) { const newIndex = allocExpando(tView, lView, 1, null); switch (currentNode.nodeType) { case Node.ELEMENT_NODE: const element = currentNode as Element; - const tagName = element.tagName.toLowerCase(); + const tagName = getNodeName(element).toLowerCase(); if (Object.hasOwn(VALID_ELEMENTS, tagName)) { addCreateNodeAndAppend(create, ELEMENT_MARKER, tagName, parentIdx, newIndex); tView.data[newIndex] = tagName; const elAttrs = element.attributes; for (let i = 0; i < elAttrs.length; i++) { const attr = elAttrs.item(i)!; + if (ngDevMode && isBindingLikeAttributeName(attr.name)) { + // Directives and bindings are not supported inside ICU expressions, since ICU + // content is processed at runtime as plain HTML. Such attributes are dropped + // below as unknown attributes; explain why instead of reporting them as unsafe. + console.warn( + formatRuntimeError( + RuntimeErrorCode.INVALID_I18N_STRUCTURE, + `ICU expressions cannot contain bindings or structural directives. ` + + `The attribute "${attr.name}" on the <${tagName}> element inside an ICU ` + + `expression is not supported and will be ignored. ` + + `Only static attributes are allowed inside ICU cases.`, + ), + ); + continue; + } const lowerAttrName = attr.name.toLowerCase(); const hasBinding = !!attr.value.match(BINDING_REGEXP); const namespaceUri = element.namespaceURI; @@ -922,7 +948,7 @@ function walkIcuTree( } break; } - currentNode = currentNode.nextSibling; + currentNode = getNextSibling(currentNode); } return bindingMask; } @@ -1010,3 +1036,17 @@ function i18nResolveSanitizer(attrName: string, tagName?: string): SanitizerFn | return null; } } + +/** + * Whether an attribute name uses an Angular binding syntax (`[prop]`, `(event)`, `*structural`, + * `#ref`, `@trigger`) rather than being a plain HTML attribute. + */ +function isBindingLikeAttributeName(attrName: string): boolean { + return ( + attrName.startsWith('[') || + attrName.startsWith('(') || + attrName.startsWith('*') || + attrName.startsWith('#') || + attrName.startsWith('@') + ); +} diff --git a/packages/core/src/render3/i18n/i18n_util.ts b/packages/core/src/render3/i18n/i18n_util.ts index 6338f63a58d8..8c32d08fd6ab 100644 --- a/packages/core/src/render3/i18n/i18n_util.ts +++ b/packages/core/src/render3/i18n/i18n_util.ts @@ -109,7 +109,7 @@ export function setTNodeInsertBeforeIndex(tNode: TNode, index: number) { index, ]; } else { - assertEqual(Array.isArray(insertBeforeIndex), true, 'Expecting array here'); + ngDevMode && assertEqual(Array.isArray(insertBeforeIndex), true, 'Expecting array here'); (insertBeforeIndex as number[]).push(index); } } @@ -157,6 +157,13 @@ export function getInstructionFromIcuCreateOpCode(mergedCode: number): number { export function icuCreateOpCode(opCode: IcuCreateOpCode, parentIdx: number, refIdx: number) { ngDevMode && assertGreaterThanOrEqual(parentIdx, 0, 'Missing parent index'); ngDevMode && assertGreaterThan(refIdx, 0, 'Missing ref index'); + + // Note that we intentionally retain the error here in production, + // because the value can change based on the locale. + if (parentIdx > IcuCreateOpCode.MAX_PARENT || refIdx > IcuCreateOpCode.MAX_REF) { + throw new Error('ICU node index out of range (too many nodes in ICU case)'); + } + return ( opCode | (parentIdx << IcuCreateOpCode.SHIFT_PARENT) | (refIdx << IcuCreateOpCode.SHIFT_REF) ); diff --git a/packages/core/src/render3/index.ts b/packages/core/src/render3/index.ts index 73082ece833e..40d6e1fef756 100644 --- a/packages/core/src/render3/index.ts +++ b/packages/core/src/render3/index.ts @@ -50,7 +50,6 @@ import { export {NgModuleType} from '../metadata/ng_module_def'; export {ComponentFactory, ComponentRef} from './component_ref'; export {ɵɵgetInheritedFactory} from './di'; -export {getLocaleId, setLocaleId} from './i18n/i18n_locale_id'; export { ɵɵadvance, ɵɵariaProperty, @@ -108,6 +107,7 @@ export { ɵɵviewQuery, ɵɵviewQuerySignal, ɵɵreference, + ɵɵinvalid, ɵɵrepeater, ɵɵrepeaterCreate, ɵɵrepeaterTrackByIdentity, @@ -120,6 +120,9 @@ export { ɵɵconditional, ɵɵconditionalCreate, ɵɵconditionalBranchCreate, + ɵɵboundaryCreate, + ɵɵboundaryUpdate, + ɵɵgetBoundary, ɵɵdefer, ɵɵdeferWhen, ɵɵdeferOnIdle, diff --git a/packages/core/src/render3/instructions/all.ts b/packages/core/src/render3/instructions/all.ts index a6bf0c361aaf..f487259887da 100644 --- a/packages/core/src/render3/instructions/all.ts +++ b/packages/core/src/render3/instructions/all.ts @@ -34,6 +34,7 @@ export * from './change_detection'; export * from './component_instance'; export * from './control'; export * from './control_flow'; +export * from './boundary'; export * from './di'; export * from './di_attr'; export * from './element'; @@ -65,3 +66,4 @@ export * from './let_declaration'; export * from './attach_source_locations'; export * from './value_interpolation'; export * from './arrow_function'; +export * from './invalid'; diff --git a/packages/core/src/render3/instructions/animation.ts b/packages/core/src/render3/instructions/animation.ts index 6e8597df319c..1ab7d740d0dc 100644 --- a/packages/core/src/render3/instructions/animation.ts +++ b/packages/core/src/render3/instructions/animation.ts @@ -23,6 +23,7 @@ import {TNode} from '../interfaces/node'; import {promiseWithResolvers} from '../../util/promise_with_resolvers'; import { + addClasses, addAnimationToLView, areAnimationsDisabled, areAnimationSupported, @@ -42,10 +43,12 @@ import { leaveAnimationFunctionCleanup, longestAnimations, noOpAnimationComplete, + removeClasses, trackEnterClasses, trackLeavingNodes, } from '../../animation/utils'; import {initializeAnimationQueueScheduler, queueEnterAnimations} from '../../animation/queue'; +import {enableAnimationRuntimeSupport, enableViewDetachAnimationsSupport} from '../node_animations'; /** * Instruction to handle the `animate.enter` behavior for class bindings. @@ -75,6 +78,9 @@ export function ɵɵanimateEnter(value: string | AnimationClassBindingFn): typeo // may have been destroyed. const ngZone = lView[INJECTOR]!.get(NgZone); + // The runtime that plays and awaits the animations is only linked in from here. + enableAnimationRuntimeSupport(); + addAnimationToLView(getLViewEnterAnimations(lView), tNode, () => runEnterAnimation(lView, tNode, value, ngZone), ); @@ -143,9 +149,7 @@ export function runEnterAnimation( trackEnterClasses(nativeElement, activeClasses, cleanupFns); - for (const klass of activeClasses) { - renderer.addClass(nativeElement, klass); - } + addClasses(renderer, nativeElement, activeClasses); // In the case that the classes added have no animations, we need to remove // the classes right away. This could happen because someone is intentionally @@ -155,9 +159,7 @@ export function runEnterAnimation( if (hasCompleted) return; determineLongestAnimation(nativeElement, longestAnimations, areAnimationSupported); if (!longestAnimations.has(nativeElement)) { - for (const klass of activeClasses) { - renderer.removeClass(nativeElement, klass); - } + removeClasses(renderer, nativeElement, activeClasses); cleanupEnterClassData(nativeElement); } }); @@ -179,9 +181,7 @@ function enterAnimationEnd( // other elements further up. We don't want it to inadvertently // affect any other animations on the page. event.stopPropagation(); - for (const klass of elementData.classList) { - renderer.removeClass(nativeElement, klass); - } + removeClasses(renderer, nativeElement, elementData.classList); cleanupEnterClassData(nativeElement); } } @@ -210,6 +210,8 @@ export function ɵɵanimateEnterListener(value: AnimationFunction): typeof ɵɵa } const tNode = getCurrentTNode()!; + enableAnimationRuntimeSupport(); + addAnimationToLView(getLViewEnterAnimations(lView), tNode, () => runEnterAnimationFunction(lView, tNode, value), ); @@ -268,6 +270,9 @@ export function ɵɵanimateLeave(value: string | AnimationClassBindingFn): typeo // may have been destroyed. const ngZone = lView[INJECTOR]!.get(NgZone); + enableAnimationRuntimeSupport(); + enableViewDetachAnimationsSupport(); + addAnimationToLView(getLViewLeaveAnimations(lView), tNode, () => runLeaveAnimations(lView, tNode, value, ngZone), ); @@ -334,6 +339,7 @@ function animateLeaveClassRunner( if ( event.type === 'animation-fallback' || + (event as CustomEvent).detail?.cancel || isLongestAnimation(event as TransitionEvent | AnimationEvent, el) ) { hasCompleted = true; @@ -346,14 +352,7 @@ function animateLeaveClassRunner( longestAnimations.delete(el); clearLeavingNodes(tNode, el); - if (Array.isArray(tNode.projection)) { - // in the content projection case, the element is not destroyed. - // So we need to remove the class at the end so that it isn't left - // behind for whenever the item shows up again. - for (const item of classList) { - renderer.removeClass(el, item); - } - } + removeClasses(renderer, el, classList); cleanupAfterLeaveAnimations(componentResolvers, cleanupFns); clearLViewNodeAnimationResolvers(lView, tNode); } @@ -365,9 +364,7 @@ function animateLeaveClassRunner( }); trackLeavingNodes(tNode, el); - for (const item of classList) { - renderer.addClass(el, item); - } + addClasses(renderer, el, classList); // Force a reflow to ensure the browser registers the class addition and triggers the transition // eslint-disable-next-line @typescript-eslint/no-unused-vars @@ -383,6 +380,7 @@ function animateLeaveClassRunner( const longest = longestAnimations.get(el); if (!longest) { clearLeavingNodes(tNode, el); + removeClasses(renderer, el, classList); cleanupAfterLeaveAnimations(componentResolvers, cleanupFns); clearLViewNodeAnimationResolvers(lView, tNode); } else { @@ -424,14 +422,15 @@ export function ɵɵanimateLeaveListener(value: AnimationFunction): typeof ɵɵa const lView = getLView(); const tNode = getCurrentTNode()!; - allLeavingAnimations.add(lView[ID]); - // Capture NgZone and MAX_ANIMATION_TIMEOUT eagerly while the injector is // still valid. The animation function runs later from the queue, at which // point the lView injector may have been destroyed. const ngZone = lView[INJECTOR]!.get(NgZone); const maxAnimationTimeout = lView[INJECTOR]!.get(MAX_ANIMATION_TIMEOUT); + enableAnimationRuntimeSupport(); + enableViewDetachAnimationsSupport(); + addAnimationToLView(getLViewLeaveAnimations(lView), tNode, () => runLeaveAnimationFunction(lView, tNode, value, ngZone, maxAnimationTimeout), ); @@ -460,6 +459,7 @@ function runLeaveAnimationFunction( const renderer = lView[RENDERER]; const animationsDisabled = areAnimationsDisabled(lView); + allLeavingAnimations.add(lView[ID]); (getLViewLeaveAnimations(lView).get(tNode.index)!.resolvers ??= []).push(resolve); const resolvers = getLViewLeaveAnimations(lView).get(tNode.index)?.resolvers; diff --git a/packages/core/src/render3/instructions/aria_property.ts b/packages/core/src/render3/instructions/aria_property.ts index 68d2dadb2e6f..37d3ee81378c 100644 --- a/packages/core/src/render3/instructions/aria_property.ts +++ b/packages/core/src/render3/instructions/aria_property.ts @@ -6,6 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ import {bindingUpdated} from '../bindings'; +import {setElementAttribute} from '../dom_node_manipulation'; import {TNodeType} from '../interfaces/node'; import {RElement} from '../interfaces/renderer_dom'; import {isComponentHost} from '../interfaces/type_checks'; @@ -16,7 +17,6 @@ import {getNativeByTNode} from '../util/view_utils'; import { markDirtyIfOnPush, setAllInputsForProperty, - setElementAttribute, setNgReflectProperties, storePropertyBindingMetadata, } from './shared'; diff --git a/packages/core/src/render3/instructions/arrow_function.ts b/packages/core/src/render3/instructions/arrow_function.ts index 98d90e74a3c4..db7ef0f83cd4 100644 --- a/packages/core/src/render3/instructions/arrow_function.ts +++ b/packages/core/src/render3/instructions/arrow_function.ts @@ -24,7 +24,7 @@ export function ɵɵarrowFunction( slotOffset: number, factory: (context: T, view: LView) => (...args: unknown[]) => unknown, context: T, -) { +): any { const bindingIndex = getBindingRoot() + slotOffset; const lView = getLView(); return lView[bindingIndex] === NO_CHANGE diff --git a/packages/core/src/render3/instructions/boundary.ts b/packages/core/src/render3/instructions/boundary.ts new file mode 100644 index 000000000000..ee142c6c49bf --- /dev/null +++ b/packages/core/src/render3/instructions/boundary.ts @@ -0,0 +1,215 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import {setActiveConsumer} from '../../../primitives/signals'; +import {ErrorDetails, ErrorHandler, encapsulateBoundaryError} from '../../error_handler'; +import {findAndReconcileMatchingDehydratedViews} from '../../hydration/views'; +import {Type, Writable} from '../../interface/type'; +import {performanceMarkFeature} from '../../util/performance'; +import {bindingUpdated} from '../bindings'; +import { + CONTEXT, + DECLARATION_COMPONENT_VIEW, + HEADER_OFFSET, + INJECTOR, + LView, + ON_ERROR, + TVIEW, +} from '../interfaces/view'; +import {getLView, nextBindingIndex} from '../state'; +import {NO_CHANGE} from '../tokens'; +import {markViewForRefresh} from '../util/view_utils'; +import {addLViewToLContainer, removeLViewFromLContainer} from '../view/container'; +import {createAndRenderEmbeddedLView, shouldAddViewToDom} from '../view_manipulation'; +import {getExistingTNode, getLContainer} from './control_flow'; + +/** + * Error thrown when an error falls through an @boundary without matching any @error block. + * + * @publicApi 22.2 + */ +export class BoundaryError extends Error { + constructor(message: string, options?: {cause?: unknown}) { + super(message, options); + this.name = 'BoundaryError'; + } +} + +/** + * State object representing an @boundary block, allocated in the LView data array. + */ +export class LBoundary { + error: any = null; + + constructor(private hostLView: LView) {} + + reset() { + this.error = null; + markViewForRefresh(this.hostLView); + } +} + +/** + * Creates an LBoundary state object in the current LView. + */ +export function ɵɵboundaryCreate(index: number) { + performanceMarkFeature('NgBoundary'); + const lView = getLView(); + lView[HEADER_OFFSET + index] = new LBoundary(lView); +} + +/** + * Retrieves the LBoundary state object from the current LView. + */ +export function ɵɵgetBoundary(index: number): LBoundary { + const lView = getLView(); + return lView[HEADER_OFFSET + index] as LBoundary; +} + +/** + * The boundary update instruction performs conditional view switching and attaches + * an ON_ERROR interceptor if it is rendering the primary block. + * + * TODO: This instruction shares a lot of view switching logic with `ɵɵconditional`. + * We should investigate extracting the common container management and view reconciliation + * logic into a shared utility function to reduce duplication. + */ +export function ɵɵboundaryUpdate( + slotIndex: number, + matchingTemplateIndex: number, + primaryTemplateIndex: number, +) { + const hostLView = getLView(); + const bindingIndex = nextBindingIndex(); + const prevMatchingTemplateIndex: number = + hostLView[bindingIndex] !== NO_CHANGE ? hostLView[bindingIndex] : -1; + const prevContainer = + prevMatchingTemplateIndex !== -1 + ? getLContainer(hostLView, HEADER_OFFSET + prevMatchingTemplateIndex) + : undefined; + const viewInContainerIdx = 0; + + if (bindingUpdated(hostLView, bindingIndex, matchingTemplateIndex)) { + const prevConsumer = setActiveConsumer(null); + try { + if (prevContainer !== undefined) { + removeLViewFromLContainer(prevContainer, viewInContainerIdx); + } + + if (matchingTemplateIndex !== -1) { + const nextLContainerIndex = HEADER_OFFSET + matchingTemplateIndex; + const nextContainer = getLContainer(hostLView, nextLContainerIndex); + const templateTNode = getExistingTNode(hostLView[TVIEW], nextLContainerIndex); + + const dehydratedView = findAndReconcileMatchingDehydratedViews( + nextContainer, + templateTNode, + hostLView, + ); + + let embeddedLView: LView | undefined; + try { + const boundary = hostLView[HEADER_OFFSET + slotIndex] as LBoundary; + const context = + matchingTemplateIndex === primaryTemplateIndex + ? undefined + : {$error: boundary.error, $reset: createBoundaryResetFn(boundary)}; + embeddedLView = createAndRenderEmbeddedLView(hostLView, templateTNode, context, { + dehydratedView, + }); + + if (matchingTemplateIndex === primaryTemplateIndex) { + embeddedLView[ON_ERROR] = (error: Error, details: ErrorDetails) => { + const boundary = hostLView[HEADER_OFFSET + slotIndex] as LBoundary; + boundary.error = error; + + const errorHandler = hostLView[INJECTOR]?.get(ErrorHandler, null); + if (errorHandler) { + const boundaryComponentView = hostLView[DECLARATION_COMPONENT_VIEW][CONTEXT] as any; + const boundaryType: Type = boundaryComponentView.constructor; + (details as Writable).boundary = { + type: boundaryType, + reset: createBoundaryResetFn(boundary), + }; + + if (errorHandler.onViewError) { + errorHandler.onViewError(error, details); + } else { + errorHandler.handleError(error); + } + } + + // Immediately destroy the primary view + removeLViewFromLContainer(nextContainer, viewInContainerIdx); + + // Trigger a targeted change detection pass on the host to run the @error block + markViewForRefresh(hostLView); + }; + } + } catch (e) { + if (matchingTemplateIndex === primaryTemplateIndex) { + const boundary = hostLView[HEADER_OFFSET + slotIndex] as LBoundary; + boundary.error = e; + + const errorHandler = hostLView[INJECTOR]?.get(ErrorHandler, null); + if (errorHandler) { + const boundaryError = encapsulateBoundaryError(e); + const declarationInstance = hostLView[DECLARATION_COMPONENT_VIEW][CONTEXT]; + const declarationType = (declarationInstance as any).constructor; + const details: ErrorDetails = { + declarationInstance, + declarationType, + boundary: { + type: declarationType, + reset: createBoundaryResetFn(boundary), + }, + }; + if (errorHandler.onViewError) { + errorHandler.onViewError(boundaryError, details); + } else { + errorHandler.handleError(boundaryError); + } + } + + markViewForRefresh(hostLView); + + // If the view threw during creation, we do not add it to the DOM. + // We swallow the error so that the host can finish its current change detection cycle + // and later re-evaluate the boundary switch statement to render the @error block. + return; + } + // If we caught an error inside an @error block, rethrow it to let it bubble naturally. + throw e; + } + + addLViewToLContainer( + nextContainer, + embeddedLView, + viewInContainerIdx, + shouldAddViewToDom(templateTNode, dehydratedView), + ); + } else { + const boundary = hostLView[HEADER_OFFSET + slotIndex] as LBoundary; + throw new BoundaryError('Unhandled error in @boundary fell through.', { + cause: boundary.error, + }); + } + } finally { + setActiveConsumer(prevConsumer); + } + } +} + +/** + * Creates a reset callback for an `LBoundary` outside `ɵɵboundaryUpdate` so that + * `$reset` and `details.boundary.reset` do not share a closure context with + * `nextContainer` or `embeddedLView`. + */ +function createBoundaryResetFn(boundary: LBoundary): () => void { + return () => boundary.reset(); +} diff --git a/packages/core/src/render3/instructions/change_detection.ts b/packages/core/src/render3/instructions/change_detection.ts index 649d91c8302d..fe9a545591cc 100644 --- a/packages/core/src/render3/instructions/change_detection.ts +++ b/packages/core/src/render3/instructions/change_detection.ts @@ -16,24 +16,38 @@ import { setActiveConsumer, } from '../../../primitives/signals'; +import {ProfilerEvent} from '../../../primitives/devtools'; +import {encapsulateBoundaryError, ErrorDetails} from '../../error_handler'; import {RuntimeError, RuntimeErrorCode} from '../../errors'; +import {Type} from '../../interface/type'; import {assertDefined, assertEqual} from '../../util/assert'; import {addAfterRenderSequencesForView} from '../after_render/view'; import {executeCheckHooks, executeInitAndCheckHooks, incrementInitPhaseFlags} from '../hooks'; -import {CONTAINER_HEADER_OFFSET, LContainerFlags, MOVED_VIEWS} from '../interfaces/container'; +import { + CONTAINER_HEADER_OFFSET, + LContainer, + LContainerFlags, + MOVED_VIEWS, +} from '../interfaces/container'; import {ComponentTemplate, HostBindingsFunction, RenderFlags} from '../interfaces/definition'; +import {isDestroyed, isLContainer} from '../interfaces/type_checks'; import { CONTEXT, + DECLARATION_COMPONENT_VIEW, EFFECTS_TO_SCHEDULE, ENVIRONMENT, FLAGS, InitPhaseState, LView, LViewFlags, + ON_ERROR, + PARENT, REACTIVE_TEMPLATE_CONSUMER, TVIEW, TView, } from '../interfaces/view'; +import {profiler} from '../profiler'; +import {executeViewQueryFn, refreshContentQueries} from '../queries/query_execution'; import { getOrBorrowReactiveLViewConsumer, getOrCreateTemporaryConsumer, @@ -41,6 +55,7 @@ import { ReactiveLViewConsumer, viewShouldHaveReactiveConsumer, } from '../reactive_lview_consumer'; +import {runEffectsInView} from '../reactivity/view_effect_runner'; import { CheckNoChangesMode, enterView, @@ -65,11 +80,6 @@ import { viewAttachedToChangeDetector, } from '../util/view_utils'; -import {isDestroyed} from '../interfaces/type_checks'; -import {profiler} from '../profiler'; -import {ProfilerEvent} from '../../../primitives/devtools'; -import {executeViewQueryFn, refreshContentQueries} from '../queries/query_execution'; -import {runEffectsInView} from '../reactivity/view_effect_runner'; import {executeTemplate} from './shared'; /** @@ -353,14 +363,7 @@ export function refreshView( lView[FLAGS] &= ~(LViewFlags.Dirty | LViewFlags.FirstLViewPass); } } catch (e) { - if (!isInCheckNoChangesPass) { - // If refreshing a view causes an error, we need to remark the ancestors as needing traversal - // because the error might have caused a situation where views below the current location are - // dirty but will be unreachable because the "has dirty children" flag in the ancestors has been - // cleared during change detection and we failed to run to completion. - markAncestorsForTraversal(lView); - } - throw e; + handleViewError(lView, e, isInCheckNoChangesPass); } finally { if (currentConsumer !== null) { consumerAfterComputation(currentConsumer, prevConsumer); @@ -372,6 +375,61 @@ export function refreshView( } } +function handleViewError(lView: LView, e: unknown, isInCheckNoChangesPass: boolean | null): void { + let handled = false; + let errorToHandle = e; + let currentLView: LView | LContainer | null = lView; + const prevConsumer = setActiveConsumer(null); + try { + while (currentLView !== null) { + if (isLContainer(currentLView)) { + currentLView = currentLView[PARENT]; + continue; + } + const onError = currentLView[ON_ERROR]; + if (onError) { + // We found an error boundary / explicit error handler in the LView chain. + try { + const declarationInstance = lView[DECLARATION_COMPONENT_VIEW][CONTEXT] as any; + const declarationType: Type = declarationInstance?.constructor; + + const details: ErrorDetails = { + declarationInstance, + declarationType, + caughtBy: onError, + }; + const prevConsumer = setActiveConsumer(null); + try { + onError(encapsulateBoundaryError(errorToHandle), details); + } finally { + setActiveConsumer(prevConsumer); + } + handled = true; + break; + } catch (boundaryError) { + // If the error handler itself throws, capture the new error and + // continue propagating it up the tree to the next error boundary. + errorToHandle = boundaryError; + } + } + currentLView = currentLView[PARENT]; + } + } finally { + setActiveConsumer(prevConsumer); + } + + if (!handled) { + if (!isInCheckNoChangesPass) { + // If refreshing a view causes an error, we need to remark the ancestors as needing traversal + // because the error might have caused a situation where views below the current location are + // dirty but will be unreachable because the "has dirty children" flag in the ancestors has been + // cleared during change detection and we failed to run to completion. + markAncestorsForTraversal(lView); + } + throw errorToHandle; + } +} + /** * Goes over embedded views (ones created through ViewContainerRef APIs) and refreshes * them by executing an associated template function. @@ -500,7 +558,11 @@ function detectChangesInView(lView: LView, mode: ChangeDetectionMode) { const prevConsumer = setActiveConsumer(null); try { if (!isInCheckNoChangesPass) { - runEffectsInView(lView); + try { + runEffectsInView(lView); + } catch (e) { + handleViewError(lView, e, isInCheckNoChangesPass); + } } detectChangesInEmbeddedViews(lView, ChangeDetectionMode.Targeted); const components = tView.components; diff --git a/packages/core/src/render3/instructions/control.ts b/packages/core/src/render3/instructions/control.ts index 24e7584802ef..f58975986fd5 100644 --- a/packages/core/src/render3/instructions/control.ts +++ b/packages/core/src/render3/instructions/control.ts @@ -5,13 +5,16 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ +import {SIGNAL} from '../../../primitives/signals'; +import {REQUIRED_UNSET_VALUE, type InputSignalNode} from '../../authoring/input/input_signal_node'; import {performanceMarkFeature} from '../../util/performance'; import {assertFirstCreatePass} from '../assert'; import type {ControlDirectiveHost} from '../interfaces/control'; import type {DirectiveDef} from '../interfaces/definition'; +import {InputFlags} from '../interfaces/input_flags'; import {type TNode, TNodeFlags} from '../interfaces/node'; import {isComponentHost} from '../interfaces/type_checks'; -import {type LView, RENDERER, type TView} from '../interfaces/view'; +import type {LView, TView} from '../interfaces/view'; import { getCurrentTNode, getLView, @@ -22,7 +25,7 @@ import { import {getNativeByTNode} from '../util/view_utils'; import {debugStringifyTypeForError} from '../util/stringify_utils'; import {listenToDirectiveOutput} from '../view/directive_outputs'; -import {listenToDomEvent, wrapListener} from '../view/listeners'; +import {wrapListener} from '../view/listeners'; import {setDirectiveInput} from './shared'; import {writeToDirectiveInput} from './write_to_directive_input'; @@ -142,20 +145,11 @@ class ControlDirectiveHostImpl implements ControlDirectiveHost { ); } - listenToDom(eventName: string, listener: (event: Event) => void): void { - listenToDomEvent( - this.tNode, - this.tView, - this.lView as LView<{} | null>, - undefined, - this.lView[RENDERER], - eventName, - listener, - wrapListener(this.tNode, this.lView, listener), - ); - } - - setInputOnDirectives(inputName: string, value: unknown): boolean { + setInputOnDirectives( + inputName: string, + value: unknown, + writePredicate?: (currentValue: unknown, directive: unknown) => boolean, + ): boolean { const directiveIndices = this.tNode.inputs?.[inputName]; const hostDirectiveInputs = this.tNode.hostDirectiveInputs?.[inputName]; if (!directiveIndices && !hostDirectiveInputs) { @@ -169,10 +163,16 @@ class ControlDirectiveHostImpl implements ControlDirectiveHost { if (index === this.tNode.controlDirectiveIndex) { continue; } - const directiveDef = this.tView.data[index] as DirectiveDef; const directive = this.lView[index]; - writeToDirectiveInput(directiveDef, directive, inputName, value); - wasSet = true; + const directiveDef = this.tView.data[index] as DirectiveDef; + const matchesPredicate = + !writePredicate || + writePredicate(readInputFromDirective(directive, directiveDef, inputName), directive); + + if (matchesPredicate) { + writeToDirectiveInput(directiveDef, directive, inputName, value); + wasSet = true; + } } } @@ -183,11 +183,17 @@ class ControlDirectiveHostImpl implements ControlDirectiveHost { if (index === this.tNode.controlDirectiveIndex) { continue; } + const directive = this.lView[index]; const internalName = hostDirectiveInputs[i + 1] as string; const directiveDef = this.tView.data[index] as DirectiveDef; - const directive = this.lView[index]; - writeToDirectiveInput(directiveDef, directive, internalName, value); - wasSet = true; + const matchesPredicate = + !writePredicate || + writePredicate(readInputFromDirective(directive, directiveDef, inputName), directive); + + if (matchesPredicate) { + writeToDirectiveInput(directiveDef, directive, internalName, value); + wasSet = true; + } } } @@ -267,6 +273,26 @@ function getHostDirectives(directiveType: any): readonly any[] | null { return null; } +function readInputFromDirective( + instance: unknown, + directiveDef: DirectiveDef, + inputName: string, +): unknown { + if (!directiveDef.inputs || !Object.hasOwn(directiveDef.inputs, inputName)) { + return undefined; + } + + const [privateName, flags] = directiveDef.inputs[inputName]; + + if ((flags & InputFlags.SignalBased) !== 0) { + const field = (instance as any)[privateName]; + const node = field[SIGNAL] as InputSignalNode | undefined; + return node!.value === REQUIRED_UNSET_VALUE ? undefined : node!.value; + } + + return (instance as any)[privateName]; +} + function initializeControlFirstCreatePass(tView: TView, tNode: TNode, lView: LView): void { ngDevMode && assertFirstCreatePass(tView); diff --git a/packages/core/src/render3/instructions/control_flow.ts b/packages/core/src/render3/instructions/control_flow.ts index 77339586aa11..c684b4cbaee8 100644 --- a/packages/core/src/render3/instructions/control_flow.ts +++ b/packages/core/src/render3/instructions/control_flow.ts @@ -23,13 +23,10 @@ import {CONTAINER_HEADER_OFFSET, LContainer} from '../interfaces/container'; import {ComponentTemplate} from '../interfaces/definition'; import {LocalRefExtractor, TAttributes, TNode, TNodeFlags} from '../interfaces/node'; import { - ANIMATIONS, CONTEXT, DECLARATION_COMPONENT_VIEW, HEADER_OFFSET, HYDRATION, - ID, - INJECTOR, LView, TVIEW, TView, @@ -41,8 +38,8 @@ import {NO_CHANGE} from '../tokens'; import {getConstant, getTNode} from '../util/view_utils'; import {createAndRenderEmbeddedLView, shouldAddViewToDom} from '../view_manipulation'; -import {AnimationLViewData} from '../../animation/interfaces'; import {removeDehydratedViews} from '../../hydration/cleanup'; +import {clearViewDetachAnimations, initViewDetachAnimations} from '../node_animations'; import { addLViewToLContainer, detachView, @@ -50,8 +47,6 @@ import { removeLViewFromLContainer, } from '../view/container'; import {declareNoDirectiveHostTemplate} from './template'; -import {removeFromAnimationQueue} from '../../animation/queue'; -import {allLeavingAnimations} from '../../animation/longest_animation'; /** * Creates an LContainer for an ng-template representing a root node @@ -130,6 +125,32 @@ export function ɵɵconditionalBranchCreate( localRefExtractor?: LocalRefExtractor, ): typeof ɵɵconditionalBranchCreate { performanceMarkFeature('NgControlFlow'); + createControlFlowBranch( + index, + templateFn, + decls, + vars, + tagName, + attrsIndex, + localRefsIndex, + localRefExtractor, + ); + return ɵɵconditionalBranchCreate; +} + +/** + * Shared internal function to create a control flow branch (e.g. for @case, @else, @error). + */ +export function createControlFlowBranch( + index: number, + templateFn: ComponentTemplate | null, + decls: number, + vars: number, + tagName?: string | null, + attrsIndex?: number | null, + localRefsIndex?: number | null, + localRefExtractor?: LocalRefExtractor, +) { const lView = getLView(); const tView = getTView(); const attrs = getConstant(tView.consts, attrsIndex); @@ -147,7 +168,6 @@ export function ɵɵconditionalBranchCreate( localRefsIndex, localRefExtractor, ); - return ɵɵconditionalBranchCreate; } /** @@ -568,7 +588,7 @@ export function ɵɵrepeater(collection: Iterable | undefined | null): } } -function getLContainer(lView: LView, index: number): LContainer { +export function getLContainer(lView: LView, index: number): LContainer { const lContainer = lView[index]; ngDevMode && assertLContainer(lContainer); @@ -580,19 +600,8 @@ function clearDetachAnimationList(lContainer: LContainer, index: number): void { const indexInContainer = CONTAINER_HEADER_OFFSET + index; const viewToDetach = lContainer[indexInContainer] as LView; - const animations = viewToDetach - ? (viewToDetach[ANIMATIONS] as AnimationLViewData | undefined) - : undefined; - if ( - viewToDetach && - animations && - animations.detachedLeaveAnimationFns && - animations.detachedLeaveAnimationFns.length > 0 - ) { - const injector = viewToDetach[INJECTOR]; - removeFromAnimationQueue(injector, animations); - allLeavingAnimations.delete(viewToDetach[ID]); - animations.detachedLeaveAnimationFns = undefined; + if (viewToDetach) { + clearViewDetachAnimations(viewToDetach); } } @@ -602,12 +611,9 @@ function maybeInitDetachAnimationList(lContainer: LContainer, index: number): vo if (lContainer.length <= CONTAINER_HEADER_OFFSET) return; const indexInContainer = CONTAINER_HEADER_OFFSET + index; - const viewToDetach = lContainer[indexInContainer]; - const animations = viewToDetach - ? (viewToDetach[ANIMATIONS] as AnimationLViewData | undefined) - : undefined; - if (animations && animations.leave && animations.leave.size > 0) { - animations.detachedLeaveAnimationFns = []; + const viewToDetach = lContainer[indexInContainer] as LView; + if (viewToDetach) { + initViewDetachAnimations(viewToDetach); } } @@ -625,7 +631,7 @@ function getExistingLViewFromLContainer(lContainer: LContainer, index: number return existingLView!; } -function getExistingTNode(tView: TView, index: number): TNode { +export function getExistingTNode(tView: TView, index: number): TNode { const tNode = getTNode(tView, index); ngDevMode && assertTNode(tNode); diff --git a/packages/core/src/render3/instructions/element.ts b/packages/core/src/render3/instructions/element.ts index 78ac6fb430f8..57607614e0f5 100644 --- a/packages/core/src/render3/instructions/element.ts +++ b/packages/core/src/render3/instructions/element.ts @@ -13,6 +13,7 @@ import { validateMatchingNode, validateNodeExists, } from '../../hydration/error_handling'; +import {getNextSibling} from '../../util/dom'; import {locateNextRNode} from '../../hydration/node_lookup_utils'; import { hasSkipHydrationAttrOnRElement, @@ -34,8 +35,10 @@ import {hasClassInput, hasStyleInput, TElementNode, TNode, TNodeType} from '../i import {RElement} from '../interfaces/renderer_dom'; import {isComponentHost, isDirectiveHost} from '../interfaces/type_checks'; import { + DECLARATION_COMPONENT_VIEW, ENVIRONMENT, HEADER_OFFSET, + HOST, HYDRATION, LView, RENDERER, @@ -357,8 +360,9 @@ function locateOrCreateElementNodeImpl( // `
    ` is represented in the DOM as `
    ...`, // so while processing a `
    ` instruction, point to the next sibling as a // start of a segment. - ngDevMode && validateNodeExists(native.nextSibling, lView, tNode); - setSegmentHead(hydrationInfo, index, native.nextSibling); + const segmentHead = getNextSibling(native as unknown as Node); + ngDevMode && validateNodeExists(segmentHead, lView, tNode); + setSegmentHead(hydrationInfo, index, segmentHead); } if (hydrationInfo) { @@ -368,9 +372,16 @@ function locateOrCreateElementNodeImpl( if (native == null) { throw new RuntimeError( RuntimeErrorCode.HYDRATION_MISSING_NODE, - ngDevMode - ? `During hydration Angular expected a "<${name}>" element at this location (tNode #${tNode.index}), but no matching DOM node was found. This usually means the client-rendered DOM no longer matches the server-rendered HTML.` - : `<${name}>`, + // Wrapped in an IIFE so the `host` lookup below is dev-mode only too, not just the + // message strings, and gets tree-shaken from production builds along with them. + ngDevMode && + (() => { + // Embedded views don't have their own host, so use the declaring component's host. + const host = lView[HOST] ?? lView[DECLARATION_COMPONENT_VIEW]?.[HOST]; + return host + ? `During hydration Angular expected a "<${name}>" element inside <${host.tagName.toLowerCase()}>, but no matching DOM node was found. This usually means the client-rendered DOM no longer matches the server-rendered HTML.` + : `During hydration Angular expected a "<${name}>" element at this location, but no matching DOM node was found. This usually means the client-rendered DOM no longer matches the server-rendered HTML.`; + })(), ); } diff --git a/packages/core/src/render3/instructions/element_container.ts b/packages/core/src/render3/instructions/element_container.ts index 16b41307bb66..f09a6613ed56 100644 --- a/packages/core/src/render3/instructions/element_container.ts +++ b/packages/core/src/render3/instructions/element_container.ts @@ -5,6 +5,7 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ +import {RuntimeError, RuntimeErrorCode} from '../../errors'; import {validateMatchingNode, validateNodeExists} from '../../hydration/error_handling'; import {locateNextRNode, siblingAfter} from '../../hydration/node_lookup_utils'; import { @@ -265,6 +266,16 @@ function locateOrCreateElementContainerNode( markRNodeAsClaimedByHydration(comment); } + // `validateMatchingNode` above only runs in dev mode. Without this check, + // production throws a raw TypeError when the caller uses the missing comment. + if (comment == null) { + throw new RuntimeError( + RuntimeErrorCode.HYDRATION_MISSING_NODE, + ngDevMode && + 'During hydration Angular expected a comment node at this location, but no matching DOM node was found. This usually means the client-rendered DOM no longer matches the server-rendered HTML.', + ); + } + return comment; } diff --git a/packages/core/src/render3/instructions/invalid.ts b/packages/core/src/render3/instructions/invalid.ts new file mode 100644 index 000000000000..20fd193ffa6e --- /dev/null +++ b/packages/core/src/render3/instructions/invalid.ts @@ -0,0 +1,18 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +/** + * Instruction emitted when we detect an invalid expression somewhere in the template, but + * we don't want to trigger a type error for the generated code. + * + * @codeGenApi + */ +export function ɵɵinvalid(): any { + // Note: we need to return `any` explicitly so the return value can be passed in anywhere. + return undefined; +} diff --git a/packages/core/src/render3/instructions/shared.ts b/packages/core/src/render3/instructions/shared.ts index f9ffc6eda8fa..9c56384ccf53 100644 --- a/packages/core/src/render3/instructions/shared.ts +++ b/packages/core/src/render3/instructions/shared.ts @@ -12,6 +12,7 @@ import {hasSkipHydrationAttrOnRElement} from '../../hydration/skip_hydration'; import {PRESERVE_HOST_CONTENT, PRESERVE_HOST_CONTENT_DEFAULT} from '../../hydration/tokens'; import {processTextNodeMarkersBeforeHydration} from '../../hydration/utils'; import {ViewEncapsulation} from '../../metadata/view'; +import {unwrapSafeValue} from '../../sanitization/bypass'; import {validateAgainstEventProperties} from '../../sanitization/sanitization'; import {ProfilerEvent} from '../../../primitives/devtools'; @@ -72,11 +73,14 @@ import { } from '../state'; import {NO_CHANGE} from '../tokens'; import {INTERPOLATION_DELIMITER} from '../util/misc_utils'; -import {renderStringify} from '../util/stringify_utils'; import {getComponentLViewByIndex, getNativeByTNode, unwrapLView} from '../util/view_utils'; import {isDetachedByI18n} from '../../i18n/utils'; -import {clearElementContents, setupStaticAttributes} from '../dom_node_manipulation'; +import { + clearElementContents, + setElementAttribute, + setupStaticAttributes, +} from '../dom_node_manipulation'; import {appendChild} from '../node_manipulation'; import {createComponentLView} from '../view/construction'; import {selectIndexInternal} from './advance'; @@ -305,6 +309,15 @@ export function setDomProperty( // It is assumed that the sanitizer is only added when the compiler determines that the // property is risky, so sanitization can be done without further checks. value = sanitizer != null ? (sanitizer(value, tNode.value || '', propName) as any) : value; + + // The `src` property previously used a sanitizer which mapped `null`/`undefined` to `''`. + // Now that `img` and `video` `src` are no longer sanitized, we still need to map `null` and + // `undefined` to `''` to avoid stringifying them to `'null'` or `'undefined'` and causing + // broken network requests. + + // TODO(v23): Remove this workaround once we can introduce a breaking change + value = unwrapImgVideoSrcValue(propName, element as RElement, value); + renderer.setProperty(element as RElement, propName, value); } else if (tNode.type & TNodeType.AnyContainer) { // If the node is a container and the property didn't @@ -315,6 +328,33 @@ export function setDomProperty( } } +/** + * This function allows us to workaround a breaking change introduced by #71095 + * src attributes/bindings used to be sanitized which was responsible for: + * - converting undefined/null to '' + * - supporting bypassed values (via bypassSecurityTrustResourceUrl) + * + * This workaround is intended to be dropped in v23 when the breaking change window opens. + */ +function unwrapImgVideoSrcValue( + propName: string, + element: RElement, + value: unknown, + isAttribute = false, +): any { + if ( + propName === 'src' && + ((element as RElement).tagName === 'IMG' || (element as RElement).tagName === 'VIDEO') + ) { + if (value == null) { + return isAttribute ? value : ''; + } + + return unwrapSafeValue(value); + } + return value; +} + /** If node is an OnPush component, marks its LView dirty. */ export function markDirtyIfOnPush(lView: LView, viewIndex: number): void { ngDevMode && assertLView(lView); @@ -515,32 +555,11 @@ export function elementAttributeInternal( } const element = getNativeByTNode(tNode, lView) as RElement; + // TODO(v23): Remove this workaround once we can introduce a breaking change + value = unwrapImgVideoSrcValue(name, element, value, true); setElementAttribute(lView[RENDERER], element, namespace, tNode.value, name, value, sanitizer); } -export function setElementAttribute( - renderer: Renderer, - element: RElement, - namespace: string | null | undefined, - tagName: string | null, - name: string, - value: any, - sanitizer: SanitizerFn | null | undefined, -) { - if (value == null) { - if (sanitizer != null) { - // Execute sanitizer to enforce security controls (e.g., neutralizing iframe) - sanitizer(value, tagName || '', name); - } - renderer.removeAttribute(element, name, namespace); - } else { - const strValue = - sanitizer == null ? renderStringify(value) : sanitizer(value, tagName || '', name); - - renderer.setAttribute(element, name, strValue as string, namespace); - } -} - /** * Sets initial input properties on directive instances from attribute data * diff --git a/packages/core/src/render3/instructions/template.ts b/packages/core/src/render3/instructions/template.ts index b1fbe8f60105..295e93814840 100644 --- a/packages/core/src/render3/instructions/template.ts +++ b/packages/core/src/render3/instructions/template.ts @@ -5,6 +5,7 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ +import {RuntimeError, RuntimeErrorCode} from '../../errors'; import {validateMatchingNode, validateNodeExists} from '../../hydration/error_handling'; import {TEMPLATES} from '../../hydration/interfaces'; import {locateNextRNode, siblingAfter} from '../../hydration/node_lookup_utils'; @@ -403,6 +404,16 @@ function locateOrCreateContainerAnchorImpl( markRNodeAsClaimedByHydration(comment); } + // `validateMatchingNode` above only runs in dev mode. Without this check, + // production throws a raw TypeError when the caller uses the missing comment. + if (comment == null) { + throw new RuntimeError( + RuntimeErrorCode.HYDRATION_MISSING_NODE, + ngDevMode && + 'During hydration Angular expected a comment node at this location, but no matching DOM node was found. This usually means the client-rendered DOM no longer matches the server-rendered HTML.', + ); + } + return comment; } diff --git a/packages/core/src/render3/instructions/text.ts b/packages/core/src/render3/instructions/text.ts index 7721eecb6816..dbee18be49d9 100644 --- a/packages/core/src/render3/instructions/text.ts +++ b/packages/core/src/render3/instructions/text.ts @@ -5,6 +5,7 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ +import {RuntimeError, RuntimeErrorCode} from '../../errors'; import {validateMatchingNode} from '../../hydration/error_handling'; import {locateNextRNode} from '../../hydration/node_lookup_utils'; import {canHydrateNode, markRNodeAsClaimedByHydration} from '../../hydration/utils'; @@ -83,10 +84,20 @@ function locateOrCreateTextNodeImpl( // Hydration mode, looking up an existing element in DOM. const hydrationInfo = lView[HYDRATION]!; - const textNative = locateNextRNode(hydrationInfo, tView, lView, tNode) as RText; + const textNative = locateNextRNode(hydrationInfo, tView, lView, tNode); ngDevMode && validateMatchingNode(textNative, Node.TEXT_NODE, null, lView, tNode); - ngDevMode && markRNodeAsClaimedByHydration(textNative); + ngDevMode && markRNodeAsClaimedByHydration(textNative!); + + // `validateMatchingNode` above only runs in dev mode. Without this check, + // production throws a raw TypeError when the caller uses the missing text. + if (textNative == null) { + throw new RuntimeError( + RuntimeErrorCode.HYDRATION_MISSING_TEXT, + ngDevMode && + 'During hydration Angular expected a text node at this location, but no matching DOM node was found. This usually means the client-rendered DOM no longer matches the server-rendered HTML.', + ); + } return textNative; } diff --git a/packages/core/src/render3/interfaces/control.ts b/packages/core/src/render3/interfaces/control.ts index adf1daf4e5a5..69a4867d07a1 100644 --- a/packages/core/src/render3/interfaces/control.ts +++ b/packages/core/src/render3/interfaces/control.ts @@ -77,11 +77,15 @@ export interface ControlDirectiveHost<_TPassthroughInput extends string | undefi /** * Updates a property binding on all directives on this node, aside from the control directive * itself. + * + * @param inputName Name of the input to update. + * @param value New value to write to the input. + * @param writePredicate Optional predicate function that receives the current value of the + * input and the directive instance to decide if the value should be written. */ - setInputOnDirectives(inputName: string, value: unknown): boolean; - - /** - * Listens to a DOM event on the host element. - */ - listenToDom(eventName: string, listener: (event: Event) => void): void; + setInputOnDirectives( + inputName: string, + value: unknown, + writePredicate?: (currentValue: unknown, directive: unknown) => boolean, + ): boolean; } diff --git a/packages/core/src/render3/interfaces/definition.ts b/packages/core/src/render3/interfaces/definition.ts index d2bc1e7729b2..471bfa80abed 100644 --- a/packages/core/src/render3/interfaces/definition.ts +++ b/packages/core/src/render3/interfaces/definition.ts @@ -221,11 +221,6 @@ export interface DirectiveDef { */ readonly standalone: boolean; - /** - * Whether this directive (or component) uses the signals authoring experience. - */ - readonly signals: boolean; - /** * Factory function used to create a new directive instance. Will be null initially. * Populated when the factory is first requested by directive instantiation logic. @@ -364,9 +359,6 @@ export interface ComponentDef extends DirectiveDef { /** Whether or not this component's ChangeDetectionStrategy is OnPush */ readonly onPush: boolean; - /** Whether or not this component is signal-based. */ - readonly signals: boolean; - /** * Registry of directives and components that may be found in this view. * diff --git a/packages/core/src/render3/interfaces/i18n.ts b/packages/core/src/render3/interfaces/i18n.ts index 7588c968cde5..8db63acd9452 100644 --- a/packages/core/src/render3/interfaces/i18n.ts +++ b/packages/core/src/render3/interfaces/i18n.ts @@ -65,6 +65,16 @@ export const enum IcuCreateOpCode { // 11111110000000000 // 65432109876543210 + /** + * Maximum value for the reference node index (16 bits). + */ + MAX_REF = 0b1111111111111111, + + /** + * Maximum value for the parent node index (15 bits). + */ + MAX_PARENT = 0b111111111111111, + /** * Instruction to append the current node to `PARENT`. */ @@ -123,8 +133,7 @@ export const enum IcuCreateOpCode { * ``` */ export interface IcuCreateOpCodes - extends Array, - I18nDebug { + extends Array, I18nDebug { __brand__: 'I18nCreateOpCodes'; } diff --git a/packages/core/src/render3/interfaces/public_definitions.ts b/packages/core/src/render3/interfaces/public_definitions.ts index 5745bae02f1a..9902a4dc687d 100644 --- a/packages/core/src/render3/interfaces/public_definitions.ts +++ b/packages/core/src/render3/interfaces/public_definitions.ts @@ -21,7 +21,7 @@ export type ɵɵDirectiveDeclaration< ExportAs extends string[], // `string` keys are for backwards compatibility with pre-16 versions. InputMap extends { - [key: string]: string | {alias: string | null; required: boolean; isSignal?: boolean}; + [key: string]: string | {'alias': string | null; 'required': boolean; 'isSignal'?: boolean}; }, OutputMap extends {[key: string]: string}, QueryFields extends string[], @@ -32,7 +32,6 @@ export type ɵɵDirectiveDeclaration< // are not standalone. IsStandalone extends boolean = false, HostDirectives = never, - IsSignal extends boolean = false, > = unknown; /** @@ -44,7 +43,7 @@ export type ɵɵComponentDeclaration< ExportAs extends string[], // `string` keys are for backwards compatibility with pre-16 versions. InputMap extends { - [key: string]: string | {alias: string | null; required: boolean; isSignal?: boolean}; + [key: string]: string | {'alias': string | null; 'required': boolean; 'isSignal'?: boolean}; }, OutputMap extends {[key: string]: string}, QueryFields extends string[], @@ -53,7 +52,6 @@ export type ɵɵComponentDeclaration< // are not standalone. IsStandalone extends boolean = false, HostDirectives = never, - IsSignal extends boolean = false, > = unknown; /** diff --git a/packages/core/src/render3/interfaces/renderer_dom.ts b/packages/core/src/render3/interfaces/renderer_dom.ts index 7b79c3d74077..94ee0e07a30b 100644 --- a/packages/core/src/render3/interfaces/renderer_dom.ts +++ b/packages/core/src/render3/interfaces/renderer_dom.ts @@ -107,8 +107,3 @@ export interface RText extends RNode { export interface RComment extends RNode { textContent: string | null; } - -export interface RTemplate extends RElement { - tagName: 'TEMPLATE'; - content: RNode; -} diff --git a/packages/core/src/render3/interfaces/styling.ts b/packages/core/src/render3/interfaces/styling.ts index c4ee91ec12d0..6c18ecff85e5 100644 --- a/packages/core/src/render3/interfaces/styling.ts +++ b/packages/core/src/render3/interfaces/styling.ts @@ -209,9 +209,3 @@ export function setTStylingRangeNextDuplicate(tStylingRange: TStylingRange): TSt ngDevMode && assertNumber(tStylingRange, 'expected number'); return (tStylingRange | StylingRange.NEXT_DUPLICATE) as TStylingRange; } - -export function getTStylingRangeTail(tStylingRange: TStylingRange): number { - ngDevMode && assertNumber(tStylingRange, 'expected number'); - const next = getTStylingRangeNext(tStylingRange); - return next === 0 ? getTStylingRangePrev(tStylingRange) : next; -} diff --git a/packages/core/src/render3/interfaces/view.ts b/packages/core/src/render3/interfaces/view.ts index e367206094e5..3f4e84e17d15 100644 --- a/packages/core/src/render3/interfaces/view.ts +++ b/packages/core/src/render3/interfaces/view.ts @@ -12,6 +12,7 @@ import type {ChangeDetectionScheduler} from '../../change_detection/scheduling/z import {TDeferBlockDetails} from '../../defer/interfaces'; import type {Injector} from '../../di/injector'; import {ProviderToken} from '../../di/provider_token'; +import type {ErrorDetails} from '../../error_handler'; import {DehydratedView} from '../../hydration/interfaces'; import {SchemaMetadata} from '../../metadata/schema'; import {Sanitizer} from '../../sanitization/sanitizer'; @@ -72,6 +73,7 @@ export const EFFECTS = 23; export const REACTIVE_TEMPLATE_CONSUMER = 24; export const AFTER_RENDER_SEQUENCES_TO_ADD = 25; export const ANIMATIONS = 26; +export const ON_ERROR = 27; /** * Size of LView's header. Necessary to adjust for it when setting slots. @@ -80,7 +82,7 @@ export const ANIMATIONS = 26; * instruction index into `LView` index. All other indexes should be in the `LView` index space and * there should be no need to refer to `HEADER_OFFSET` anywhere else. */ -export const HEADER_OFFSET = 27; +export const HEADER_OFFSET = 28; // This interface replaces the real LView interface if it is an arg or a // return value of a public instruction. This ensures we don't need to expose @@ -373,6 +375,12 @@ export interface LView extends Array { // Enter animations that apply to nodes in this view [ANIMATIONS]: AnimationLViewData | null; + + /** + * Function to be called when an error occurs during change detection or lifecycle hooks + * in this view or any of its descendants. The error is always encapsulated in an `Error` instance. + */ + [ON_ERROR]: ((error: Error, details: ErrorDetails) => void) | null; } /** @@ -396,6 +404,9 @@ export interface LViewEnvironment { * (always disabled in prod mode). */ ngReflect: boolean; + + /** Locale that should be used in i18n instructions. */ + locale: string; } /** Flags associated with an LView (saved in LView[FLAGS]) */ @@ -452,20 +463,17 @@ export const enum LViewFlags { /** Indicates that the view **or any of its ancestors** have an embedded view injector. */ HasEmbeddedViewInjector = 1 << 11, - /** Indicates that the view was created with `signals: true`. */ - SignalView = 1 << 12, - /** * Indicates that this LView has a view underneath it that needs to be refreshed during change * detection. This flag indicates that even if this view is not dirty itself, we still need to * traverse its children during change detection. */ - HasChildViewsToRefresh = 1 << 13, + HasChildViewsToRefresh = 1 << 12, /** * This is the count of the bits the 1 was shifted above (base 10) */ - IndexWithinInitPhaseShift = 14, + IndexWithinInitPhaseShift = 13, /** * Index of the current init phase on last 21 bits diff --git a/packages/core/src/render3/jit/directive.ts b/packages/core/src/render3/jit/directive.ts index dadc5978232a..cac1b121944e 100644 --- a/packages/core/src/render3/jit/directive.ts +++ b/packages/core/src/render3/jit/directive.ts @@ -244,8 +244,6 @@ function getStandaloneDefFunctions( directiveDefs: () => DirectiveDefList; pipeDefs: () => PipeDefList; } { - let cachedDirectiveDefs: DirectiveDefList | null = null; - let cachedPipeDefs: PipeDefList | null = null; const directiveDefs = () => { if (ngDevMode) { for (const rawDep of imports) { @@ -403,7 +401,6 @@ export function directiveMetadata(type: Type, metadata: Directive): R3Direc providers: metadata.providers || null, viewQueries: extractQueriesMetadata(type, propMetadata, isViewQuery), isStandalone: metadata.standalone === undefined ? true : !!metadata.standalone, - isSignal: !!metadata.signals, hostDirectives: metadata.hostDirectives?.map((directive) => typeof directive === 'function' ? {directive} : directive, @@ -423,8 +420,8 @@ function addDirectiveDefToUndecoratedParents(type: Type) { // Since inheritance works if the class was annotated already, we only need to add // the def if there are no annotations and the def hasn't been created already. if ( - !getDirectiveDef(parent) && - !getComponentDef(parent) && + !Object.hasOwn(parent, NG_DIR_DEF) && + !Object.hasOwn(parent, NG_COMP_DEF) && shouldAddAbstractDirective(parent) ) { compileDirective(parent, null); diff --git a/packages/core/src/render3/jit/environment.ts b/packages/core/src/render3/jit/environment.ts index 4441f25823cd..1cc9a9326b0d 100644 --- a/packages/core/src/render3/jit/environment.ts +++ b/packages/core/src/render3/jit/environment.ts @@ -105,6 +105,7 @@ export const angularCoreEnv: {[name: string]: unknown} = (() => ({ 'ɵɵcontentQuery': r3.ɵɵcontentQuery, 'ɵɵcontentQuerySignal': r3.ɵɵcontentQuerySignal, 'ɵɵreference': r3.ɵɵreference, + 'ɵɵinvalid': r3.ɵɵinvalid, 'ɵɵclassMap': r3.ɵɵclassMap, 'ɵɵstyleMap': r3.ɵɵstyleMap, 'ɵɵstyleProp': r3.ɵɵstyleProp, @@ -114,6 +115,9 @@ export const angularCoreEnv: {[name: string]: unknown} = (() => ({ 'ɵɵconditional': r3.ɵɵconditional, 'ɵɵconditionalCreate': r3.ɵɵconditionalCreate, 'ɵɵconditionalBranchCreate': r3.ɵɵconditionalBranchCreate, + 'ɵɵboundaryCreate': r3.ɵɵboundaryCreate, + 'ɵɵboundaryUpdate': r3.ɵɵboundaryUpdate, + 'ɵɵgetBoundary': r3.ɵɵgetBoundary, 'ɵɵdefer': r3.ɵɵdefer, 'ɵɵdeferWhen': r3.ɵɵdeferWhen, 'ɵɵdeferOnIdle': r3.ɵɵdeferOnIdle, diff --git a/packages/core/src/render3/jit/module.ts b/packages/core/src/render3/jit/module.ts index 6347110d2009..fbcfe652b462 100644 --- a/packages/core/src/render3/jit/module.ts +++ b/packages/core/src/render3/jit/module.ts @@ -306,17 +306,32 @@ function verifySemanticsOfNgModuleDef( } } + /** + * Checks that a directive declared in the module actually has a selector. + * + * This does the following: + * 1. Reads the directive definition off the type. This also finds a definition that the type + * inherited from a base class. + * 2. Skips the check if the type is really a component or a pipe. Components don't need a + * selector, and a pipe can inherit a directive definition from an abstract base class (for + * example a base class that only adds a lifecycle hook) - that inherited definition belongs + * to the base class, not to the pipe. + * 3. Otherwise, if the directive has a definition but no selectors, adds an error telling the + * user to add one. + */ function verifyDirectivesHaveSelector(type: Type): void { type = resolveForwardRef(type); const def = getDirectiveDef(type); - if (!getComponentDef(type) && def && def.selectors.length == 0) { + if (!getComponentDef(type) && !getPipeDef(type) && def && def.selectors.length == 0) { errors.push(`Directive ${stringifyForError(type)} has no selector, please add it!`); } } function verifyNotStandalone(type: Type, moduleType: NgModuleType): void { type = resolveForwardRef(type); - const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef(type); + // Check the pipe def first: a pipe that extends an abstract directive base class also has + // an (inherited) directive def, and we want the pipe's own `standalone` flag here. + const def = getPipeDef(type) || getComponentDef(type) || getDirectiveDef(type); if (def?.standalone) { const location = `"${stringifyForError(moduleType)}" NgModule`; errors.push(generateStandaloneInDeclarationsError(type, location)); @@ -594,91 +609,6 @@ export function transitiveScopesFor(type: Type): NgModuleTransitiveScopes throw new Error(`${type.name} does not have a module def (ɵmod property)`); } -/** - * Compute the pair of transitive scopes (compilation scope and exported scope) for a given module. - * - * This operation is memoized and the result is cached on the module's definition. This function can - * be called on modules with components that have not fully compiled yet, but the result should not - * be used until they have. - * - * @param moduleType module that transitive scope should be calculated for. - */ -export function transitiveScopesForNgModule(moduleType: Type): NgModuleTransitiveScopes { - const def = getNgModuleDefOrThrow(moduleType); - - if (def.transitiveCompileScopes !== null) { - return def.transitiveCompileScopes; - } - - const scopes: NgModuleTransitiveScopes = { - schemas: def.schemas || null, - compilation: { - directives: new Set(), - pipes: new Set(), - }, - exported: { - directives: new Set(), - pipes: new Set(), - }, - }; - - maybeUnwrapFn(def.imports).forEach((imported: Type) => { - // When this module imports another, the imported module's exported directives and pipes are - // added to the compilation scope of this module. - const importedScope = transitiveScopesFor(imported); - importedScope.exported.directives.forEach((entry) => scopes.compilation.directives.add(entry)); - importedScope.exported.pipes.forEach((entry) => scopes.compilation.pipes.add(entry)); - }); - - maybeUnwrapFn(def.declarations).forEach((declared) => { - const declaredWithDefs = declared as Type & { - ɵpipe?: any; - }; - - if (getPipeDef(declaredWithDefs)) { - scopes.compilation.pipes.add(declared); - } else { - // Either declared has a ɵcmp or ɵdir, or it's a component which hasn't - // had its template compiled yet. In either case, it gets added to the compilation's - // directives. - scopes.compilation.directives.add(declared); - } - }); - - maybeUnwrapFn(def.exports).forEach((exported: Type) => { - const exportedType = exported as Type & { - // Components, Directives, NgModules, and Pipes can all be exported. - ɵcmp?: any; - ɵdir?: any; - ɵmod?: NgModuleDef; - ɵpipe?: any; - }; - - // Either the type is a module, a pipe, or a component/directive (which may not have a - // ɵcmp as it might be compiled asynchronously). - if (isNgModule(exportedType)) { - // When this module exports another, the exported module's exported directives and pipes are - // added to both the compilation and exported scopes of this module. - const exportedScope = transitiveScopesFor(exportedType); - exportedScope.exported.directives.forEach((entry) => { - scopes.compilation.directives.add(entry); - scopes.exported.directives.add(entry); - }); - exportedScope.exported.pipes.forEach((entry) => { - scopes.compilation.pipes.add(entry); - scopes.exported.pipes.add(entry); - }); - } else if (getPipeDef(exportedType)) { - scopes.exported.pipes.add(exportedType); - } else { - scopes.exported.directives.add(exportedType); - } - }); - - def.transitiveCompileScopes = scopes; - return scopes; -} - function expandModuleWithProviders(value: Type | ModuleWithProviders<{}>): Type { if (isModuleWithProviders(value)) { return value.ngModule; diff --git a/packages/core/src/render3/metadata.ts b/packages/core/src/render3/metadata.ts index 84766c60b969..ff7d43ed723b 100644 --- a/packages/core/src/render3/metadata.ts +++ b/packages/core/src/render3/metadata.ts @@ -40,15 +40,6 @@ export function getAsyncClassMetadataFn( return componentClass[ASYNC_COMPONENT_METADATA_FN] ?? null; } -/** - * Checks if a given component has async metadata. - * Independent of whether the metadata is already loaded or not. - */ -export function hasAsyncClassMetadata(type: Type): boolean { - const componentClass = type as any; // cast to `any`, so that we can monkey-patch it - return !!componentClass[ASYNC_COMPONENT_METADATA_FN]; -} - /** * Handles the process of applying metadata info to a component class in case * component template has defer blocks (thus some dependencies became deferrable). diff --git a/packages/core/src/render3/node_animations.ts b/packages/core/src/render3/node_animations.ts index 8187ab7c4a95..ac8b853b8f0d 100644 --- a/packages/core/src/render3/node_animations.ts +++ b/packages/core/src/render3/node_animations.ts @@ -16,19 +16,111 @@ import { queueEnterAnimations, addToAnimationQueue, removeAnimationsFromQueue, + removeFromAnimationQueue, + AnimationQueue, + ANIMATION_QUEUE, } from '../animation/queue'; -import {Injector, INJECTOR} from '../di'; +import {Injector} from '../di'; import {CONTAINER_HEADER_OFFSET} from './interfaces/container'; import {TNode, TNodeType} from './interfaces/node'; import {RElement} from './interfaces/renderer_dom'; import {isLContainer} from './interfaces/type_checks'; -import {ANIMATIONS, ID, LView, TVIEW, TViewType} from './interfaces/view'; +import { + ANIMATIONS, + ID, + INJECTOR as LVIEW_INJECTOR, + LView, + TVIEW, + TViewType, +} from './interfaces/view'; + +/** + * The entry points of the animation runtime, as called from `node_manipulation.ts` and the + * control flow instructions. They are no-ops until an `animate.enter` or `animate.leave` + * instruction runs, see `enableAnimationRuntimeSupport`. An application that never uses those + * bindings has no animation data on its views, so the no-ops behave the same and the bundler + * can drop the runtime below. + */ +interface NodeAnimationRuntime { + maybeQueueEnterAnimation: typeof maybeQueueEnterAnimationImpl; + runLeaveAnimationsWithCallback: typeof runLeaveAnimationsWithCallbackImpl; +} + +/** The part that carries leave animations across a detach and a re-attach in `@for`. */ +interface ViewDetachAnimationRuntime { + initViewDetachAnimations: typeof initViewDetachAnimationsImpl; + clearViewDetachAnimations: typeof clearViewDetachAnimationsImpl; +} + +let nodeAnimationRuntime: NodeAnimationRuntime | null = null; +let viewDetachAnimationRuntime: ViewDetachAnimationRuntime | null = null; export function maybeQueueEnterAnimation( parentLView: LView | undefined, parent: RElement | null, tNode: TNode, injector: Injector, +): void { + nodeAnimationRuntime?.maybeQueueEnterAnimation(parentLView, parent, tNode, injector); +} + +export function runLeaveAnimationsWithCallback( + lView: LView | undefined, + tNode: TNode, + injector: Injector, + callback: Function, +): void { + if (nodeAnimationRuntime === null) { + callback(false); + } else { + nodeAnimationRuntime.runLeaveAnimationsWithCallback(lView, tNode, injector, callback); + } +} + +export function initViewDetachAnimations(view: LView): void { + viewDetachAnimationRuntime?.initViewDetachAnimations(view); +} + +export function clearViewDetachAnimations(view: LView): void { + viewDetachAnimationRuntime?.clearViewDetachAnimations(view); +} + +/** + * Switches the animation runtime on. The `animate.enter` and `animate.leave` instructions call + * it before they record the first animation on a view. + */ +export function enableAnimationRuntimeSupport(): void { + nodeAnimationRuntime ??= { + maybeQueueEnterAnimation: maybeQueueEnterAnimationImpl, + runLeaveAnimationsWithCallback: runLeaveAnimationsWithCallbackImpl, + }; +} + +/** + * Switches the detach tracking on. Only the `animate.leave` instructions call it, an enter + * animation has nothing to carry across a detach. + */ +export function enableViewDetachAnimationsSupport(): void { + viewDetachAnimationRuntime ??= { + initViewDetachAnimations: initViewDetachAnimationsImpl, + clearViewDetachAnimations: clearViewDetachAnimationsImpl, + }; +} + +/** + * Resets the module-level switches, for tests that check what an application without animate + * bindings gets. + */ +export function resetAnimationRuntimeSupportForTests(): void { + nodeAnimationRuntime = null; + viewDetachAnimationRuntime = null; +} + +function maybeQueueEnterAnimationImpl( + parentLView: LView | undefined, + parent: RElement | null, + tNode: TNode, + injector: Injector, ): void { const enterAnimations = parentLView?.[ANIMATIONS]?.enter; if (parent !== null && enterAnimations && enterAnimations.has(tNode.index)) { @@ -36,39 +128,36 @@ export function maybeQueueEnterAnimation( } } -export function runLeaveAnimationsWithCallback( +function runLeaveAnimationsWithCallbackImpl( lView: LView | undefined, tNode: TNode, injector: Injector, callback: Function, ) { + let animationQueue: AnimationQueue; + // It's possible that the AppRef has been destroyed, which would also destroy // the injector tree. If this happens, we will get an error when we try to // get the injector, so we catch it here and avoid the error and return // safely. try { - injector.get(INJECTOR); + animationQueue = injector.get(ANIMATION_QUEUE); } catch { return callback(false); } - const animations = lView?.[ANIMATIONS]; + const animations = lView ? (lView[ANIMATIONS] ??= {}) : undefined; // regarding the TNode index to see if it is the same element. if (animations?.enter?.has(tNode.index)) { - removeAnimationsFromQueue(injector, animations.enter.get(tNode.index)!.animateFns); + removeAnimationsFromQueue(animationQueue, animations.enter.get(tNode.index)!.animateFns); } // get all nodes in the current view that are descendants of tNode and have leave animations const nodesWithExitAnimations = aggregateDescendantAnimations(lView, tNode, animations); if (nodesWithExitAnimations.size === 0) { - let hasNestedAnimations = false; - if (lView) { - const nestedPromises: Promise[] = []; - collectNestedViewAnimations(lView, tNode, nestedPromises); - hasNestedAnimations = nestedPromises.length > 0; - } + const hasNestedAnimations = lView ? hasNestedViewAnimations(lView, tNode) : false; if (!hasNestedAnimations) { return callback(false); @@ -78,16 +167,10 @@ export function runLeaveAnimationsWithCallback( if (lView) allLeavingAnimations.add(lView[ID]); addToAnimationQueue( + animationQueue, injector, - () => - executeLeaveAnimations( - lView, - tNode, - animations || undefined, - nodesWithExitAnimations, - callback, - ), - animations || undefined, + () => executeLeaveAnimations(lView, tNode, animations, nodesWithExitAnimations, callback), + animations, ); } @@ -153,17 +236,19 @@ function executeLeaveAnimations( // to be safe here. const runningAnimations: Promise[] = []; - if (animations && animations.leave) { - for (const [index] of nodesWithExitAnimations) { - if (!animations.leave.has(index)) continue; + if (animations) { + if (animations.leave) { + for (const [index] of nodesWithExitAnimations) { + if (!animations.leave.has(index)) continue; - const currentAnimationData = animations.leave.get(index)!; - for (const animationFn of currentAnimationData.animateFns) { - const {promise} = animationFn() as ReturnType; - runningAnimations.push(promise); + const currentAnimationData = animations.leave.get(index)!; + for (const animationFn of currentAnimationData.animateFns) { + const {promise} = animationFn() as ReturnType; + runningAnimations.push(promise); + } } - animations.detachedLeaveAnimationFns = undefined; } + animations.detachedLeaveAnimationFns = undefined; } // Also add nested view animations @@ -192,6 +277,50 @@ function executeLeaveAnimations( } } +/** + * Checks whether nested views (containers only, NOT child components) have any leave animations, + * without invoking the animation functions. + */ +function hasNestedViewAnimations(lView: LView, tNode: TNode): boolean { + if (tNode.type & TNodeType.AnyContainer) { + const lContainer = lView[tNode.index]; + if (isLContainer(lContainer)) { + for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) { + const subView = lContainer[i] as LView; + if (subView[TVIEW].type === TViewType.Embedded) { + if (hasViewLeaveAnimations(subView)) { + return true; + } + } + } + } + } + + let child = tNode.child; + while (child) { + if (hasNestedViewAnimations(lView, child)) { + return true; + } + child = child.next; + } + return false; +} + +function hasViewLeaveAnimations(view: LView): boolean { + const animations = view[ANIMATIONS]; + if (animations?.leave && animations.leave.size > 0) { + return true; + } + let child = view[TVIEW].firstChild; + while (child) { + if (hasNestedViewAnimations(view, child)) { + return true; + } + child = child.next; + } + return false; +} + /** * Collects leave animations from nested views (containers only, NOT child components) * starting from the given TNode's children. @@ -264,3 +393,85 @@ function runAfterLeaveAnimations( callback(true); }); } + +/** + * Recursively initializes the detached leave animations list for a view and all its nested + * embedded views. This allows animations queued during view detachment (e.g. during list + * reordering) to be tracked and cancelled if the view is re-attached before the animation queue runs. + */ +function initViewDetachAnimationsImpl(view: LView): void { + const animations = (view[ANIMATIONS] ??= {}); + animations.detachedLeaveAnimationFns = []; + + let child = view[TVIEW].firstChild; + while (child) { + initNestedViewDetachAnimations(view, child); + child = child.next; + } +} + +function initNestedViewDetachAnimations(lView: LView, tNode: TNode): void { + if (tNode.type & TNodeType.AnyContainer) { + const lContainer = lView[tNode.index]; + if (isLContainer(lContainer)) { + for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) { + const subView = lContainer[i] as LView; + if (subView[TVIEW].type === TViewType.Embedded) { + initViewDetachAnimationsImpl(subView); + } + } + } + } + + let child = tNode.child; + while (child) { + initNestedViewDetachAnimations(lView, child); + child = child.next; + } +} + +/** + * Recursively removes any queued detach leave animations for a view and all its nested embedded + * views when the view is re-attached during list reconciliation. + */ +function clearViewDetachAnimationsImpl(view: LView): void { + const animations = view[ANIMATIONS]; + if ( + animations && + animations.detachedLeaveAnimationFns && + animations.detachedLeaveAnimationFns.length > 0 + ) { + const injector = view[LVIEW_INJECTOR]!; + removeFromAnimationQueue(injector, animations); + allLeavingAnimations.delete(view[ID]); + animations.detachedLeaveAnimationFns = undefined; + } else if (animations) { + animations.detachedLeaveAnimationFns = undefined; + } + + let child = view[TVIEW].firstChild; + while (child) { + clearNestedViewDetachAnimations(view, child); + child = child.next; + } +} + +function clearNestedViewDetachAnimations(lView: LView, tNode: TNode): void { + if (tNode.type & TNodeType.AnyContainer) { + const lContainer = lView[tNode.index]; + if (isLContainer(lContainer)) { + for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) { + const subView = lContainer[i] as LView; + if (subView[TVIEW].type === TViewType.Embedded) { + clearViewDetachAnimationsImpl(subView); + } + } + } + } + + let child = tNode.child; + while (child) { + clearNestedViewDetachAnimations(lView, child); + child = child.next; + } +} diff --git a/packages/core/src/render3/node_manipulation.ts b/packages/core/src/render3/node_manipulation.ts index 658c57ca0dcd..e55a880a496d 100644 --- a/packages/core/src/render3/node_manipulation.ts +++ b/packages/core/src/render3/node_manipulation.ts @@ -83,7 +83,6 @@ import { TView, TViewType, INJECTOR, - ID, } from './interfaces/view'; import {assertTNodeType} from './node_assert'; import {profiler} from './profiler'; @@ -150,9 +149,11 @@ function applyToElementOrContainer( nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true); } } else if (action === WalkTNodeTreeAction.Insert && parent !== null) { - maybeQueueEnterAnimation(parentLView, parent, tNode, injector); nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true); cancelLeavingNodes(tNode, rNode as HTMLElement, parentLView); + if (!reusedNodes.has(rNode as HTMLElement)) { + maybeQueueEnterAnimation(parentLView, parent, tNode, injector); + } } else if (action === WalkTNodeTreeAction.Detach) { if (parentLView?.[ANIMATIONS]?.leave?.has(tNode.index)) { trackLeavingNodes(tNode, rNode as HTMLElement, parentLView); diff --git a/packages/core/src/render3/queries/query.ts b/packages/core/src/render3/queries/query.ts index 3060c4f20168..109d2f35cc51 100644 --- a/packages/core/src/render3/queries/query.ts +++ b/packages/core/src/render3/queries/query.ts @@ -9,6 +9,7 @@ // We are temporarily importing the existing viewEngine_from core so we can be sure we are // correctly implementing its interfaces for backwards compatibility. +import {Injector} from '../../di/injector'; import {ProviderToken} from '../../di/provider_token'; import {createElementRef, ElementRef as ViewEngine_ElementRef} from '../../linker/element_ref'; import {QueryList} from '../../linker/query_list'; @@ -18,7 +19,7 @@ import {assertDefined, assertIndexInRange, assertNumber, throwError} from '../.. import {stringify} from '../../util/stringify'; import {assertFirstCreatePass, assertLContainer} from '../assert'; -import {getNodeInjectable, locateDirectiveOrProvider} from '../di'; +import {getNodeInjectable, locateDirectiveOrProvider, NodeInjector} from '../di'; import {CONTAINER_HEADER_OFFSET, LContainer, MOVED_VIEWS} from '../interfaces/container'; import { TContainerNode, @@ -287,6 +288,7 @@ class TQuery_ implements TQuery { if ( read === ViewEngine_ElementRef || read === ViewContainerRef || + read === Injector || (read === ViewEngine_TemplateRef && tNode.type & TNodeType.Container) ) { this.addMatch(tNode.index, -2); @@ -370,10 +372,12 @@ function createSpecialToken(lView: LView, tNode: TNode, read: any): any { tNode as TElementNode | TContainerNode | TElementContainerNode, lView, ); + } else if (read === Injector) { + return new NodeInjector(tNode as TElementNode | TContainerNode | TElementContainerNode, lView); } else { ngDevMode && throwError( - `Special token to read should be one of ElementRef, TemplateRef or ViewContainerRef but got ${stringify( + `Special token to read should be one of ElementRef, TemplateRef, ViewContainerRef or Injector but got ${stringify( read, )}.`, ); diff --git a/packages/core/src/render3/reactivity/after_render_effect.ts b/packages/core/src/render3/reactivity/after_render_effect.ts index 3230e056a29e..157a973e4151 100644 --- a/packages/core/src/render3/reactivity/after_render_effect.ts +++ b/packages/core/src/render3/reactivity/after_render_effect.ts @@ -46,6 +46,18 @@ import { const NOT_SET = /* @__PURE__ */ Symbol('NOT_SET'); const EMPTY_CLEANUP_SET = /* @__PURE__ */ new Set<() => void>(); +/** + * Options passed to `afterRenderEffect`. + * + * @publicApi + */ +export interface AfterRenderEffectOptions extends AfterRenderOptions { + /** + * A debug name for the effect. Used in Angular DevTools to identify the effect. + */ + debugName?: string; +} + /** Callback type for an `afterRenderEffect` phase effect */ type AfterRenderPhaseEffectHook = ( // Either a cleanup function or a pipelined value and a cleanup function @@ -190,6 +202,7 @@ export class AfterRenderEffectSequence extends AfterRenderSequence { readonly scheduler: ChangeDetectionScheduler, injector: Injector, snapshot: TracingSnapshot | null = null, + debugName?: string, ) { // Note that we also initialize the underlying `AfterRenderSequence` hooks to `undefined` and // populate them as we create reactive nodes below. @@ -228,7 +241,7 @@ export class AfterRenderEffectSequence extends AfterRenderSequence { this.hooks[phase] = (value) => node.phaseFn(value); if (ngDevMode) { - setupDebugInfo(node, injector); + setupDebugInfo(node, injector, debugName); } } } @@ -304,7 +317,7 @@ export type ɵFirstAvailableSignal = T extends [infer H, .. */ export function afterRenderEffect( callback: (onCleanup: EffectCleanupRegisterFn) => void, - options?: AfterRenderOptions, + options?: AfterRenderEffectOptions, ): AfterRenderRef; /** * Register effects that, when triggered, are invoked when the application finishes rendering, @@ -373,7 +386,7 @@ export function afterRenderEffect( mixedReadWrite?: (...args: [...ɵFirstAvailableSignal<[W, E]>, EffectCleanupRegisterFn]) => M; read?: (...args: [...ɵFirstAvailableSignal<[M, W, E]>, EffectCleanupRegisterFn]) => void; }, - options?: AfterRenderOptions, + options?: AfterRenderEffectOptions, ): AfterRenderRef; /** @@ -390,7 +403,7 @@ export function afterRenderEffect( ) => M; read?: (...args: [...ɵFirstAvailableSignal<[M, W, E]>, EffectCleanupRegisterFn]) => void; }, - options?: AfterRenderOptions, + options?: AfterRenderEffectOptions, ): AfterRenderRef { ngDevMode && assertNotInReactiveContext( @@ -427,13 +440,18 @@ export function afterRenderEffect( scheduler, injector, tracing?.snapshot(null), + ngDevMode ? options?.debugName : undefined, ); manager.impl.register(sequence); return sequence; } -function setupDebugInfo(node: AfterRenderPhaseEffectNode, injector: Injector): void { - node.debugName = `afterRenderEffect - ${phaseDebugName(node.phase)} phase`; +function setupDebugInfo( + node: AfterRenderPhaseEffectNode, + injector: Injector, + debugName: string | undefined, +): void { + node.debugName = `${debugName || 'afterRenderEffect'} - ${phaseDebugName(node.phase)} phase`; const prevInjectorProfilerContext = setInjectorProfilerContext({injector, token: null}); try { emitAfterRenderEffectPhaseCreatedEvent(node); diff --git a/packages/core/src/render3/reactivity/effect.ts b/packages/core/src/render3/reactivity/effect.ts index 079564cf1efe..db6b628afd9e 100644 --- a/packages/core/src/render3/reactivity/effect.ts +++ b/packages/core/src/render3/reactivity/effect.ts @@ -47,7 +47,7 @@ export interface EffectRef { } export class EffectRefImpl implements EffectRef { - [SIGNAL]: EffectNode; + declare [SIGNAL]: EffectNode; constructor(node: EffectNode) { this[SIGNAL] = node; @@ -130,7 +130,7 @@ export type EffectCleanupRegisterFn = (cleanupFn: EffectCleanupFn) => void; * * `effect()` must be run in injection context, unless the `injector` option is manually specified. * - * @see [Effects](guide/signals/effect#effects) + * @see [Effects](guide/signals/effect) * * @publicApi 20.0 */ diff --git a/packages/core/src/render3/reactivity/linked_signal.ts b/packages/core/src/render3/reactivity/linked_signal.ts index 619fc5993c23..b305afb76975 100644 --- a/packages/core/src/render3/reactivity/linked_signal.ts +++ b/packages/core/src/render3/reactivity/linked_signal.ts @@ -74,7 +74,11 @@ export function linkedSignal( identityFn, options?.equal, ) as LinkedSignalGetter & WritableSignal; - return upgradeLinkedSignalGetter(getter, options?.debugName, options?.set); + return upgradeLinkedSignalGetter( + getter, + typeof ngDevMode !== 'undefined' && ngDevMode ? options?.debugName : undefined, + options?.set, + ); } else { const getter = createLinkedSignal( optionsOrComputation.source, @@ -83,7 +87,7 @@ export function linkedSignal( ); return upgradeLinkedSignalGetter( getter, - optionsOrComputation.debugName, + typeof ngDevMode !== 'undefined' && ngDevMode ? optionsOrComputation.debugName : undefined, optionsOrComputation.set, ); } diff --git a/packages/core/src/render3/util/discovery_utils.ts b/packages/core/src/render3/util/discovery_utils.ts index ac03e0ede911..37d630042cbe 100644 --- a/packages/core/src/render3/util/discovery_utils.ts +++ b/packages/core/src/render3/util/discovery_utils.ts @@ -304,6 +304,9 @@ export type DirectiveDebugMetadata = export function getDirectiveMetadata( directiveOrComponentInstance: any, ): AngularComponentDebugMetadata | AngularDirectiveDebugMetadata | null { + if (!directiveOrComponentInstance) { + return null; + } const {constructor} = directiveOrComponentInstance; if (!constructor) { throw new Error('Unable to find the instance constructor'); diff --git a/packages/core/src/render3/util/tags.ts b/packages/core/src/render3/util/tags.ts index b9c57f5d0b23..9fa0da38d7f9 100644 --- a/packages/core/src/render3/util/tags.ts +++ b/packages/core/src/render3/util/tags.ts @@ -20,7 +20,7 @@ export function splitNsName(elementName: string, fatal: boolean = true): [string const colonIndex = elementName.indexOf(':', 1); - if (colonIndex === -1) { + if (colonIndex === -1 || colonIndex === 1) { if (fatal) { throw new Error(`Unsupported format "${elementName}" expecting ":namespace:name"`); } else { diff --git a/packages/core/src/render3/util/transfer_state_utils.ts b/packages/core/src/render3/util/transfer_state_utils.ts index 2c75c1b5e9e8..cff5a4f7c1cc 100644 --- a/packages/core/src/render3/util/transfer_state_utils.ts +++ b/packages/core/src/render3/util/transfer_state_utils.ts @@ -9,7 +9,7 @@ import {Injector} from '../../di'; import {isInternalHydrationTransferStateKey} from '../../hydration/utils'; import {APP_ID} from '../../application/application_tokens'; -import {retrieveTransferredState} from '../../transfer_state'; +import {createDictionary, retrieveTransferredState} from '../../transfer_state'; import {DOCUMENT} from '../../document'; /** @@ -27,8 +27,9 @@ export function getTransferState(injector: Injector): Record { const transferState = retrieveTransferredState(doc, appId); - // Strip internal keys - const filteredEntries: Record = {}; + // Strip internal keys. Keys are taken verbatim from the serialized state, so they can name + // `Object.prototype` properties like `__proto__`; a dictionary keeps them as ordinary entries. + const filteredEntries = createDictionary(); for (const [key, value] of Object.entries(transferState)) { if (!isInternalHydrationTransferStateKey(key)) { filteredEntries[key] = value; diff --git a/packages/core/src/render3/view/construction.ts b/packages/core/src/render3/view/construction.ts index 1b0c48e0c8a9..4edd928b52c3 100644 --- a/packages/core/src/render3/view/construction.ts +++ b/packages/core/src/render3/view/construction.ts @@ -262,9 +262,7 @@ export function createComponentLView( */ export function getInitialLViewFlagsFromDef(def: ComponentDef): LViewFlags { let flags = LViewFlags.CheckAlways; - if (def.signals) { - flags = LViewFlags.SignalView; - } else if (def.onPush) { + if (def.onPush) { flags = LViewFlags.Dirty; } return flags; diff --git a/packages/core/src/render3/view/directives.ts b/packages/core/src/render3/view/directives.ts index 1a0bf040c5ca..24377da945ee 100644 --- a/packages/core/src/render3/view/directives.ts +++ b/packages/core/src/render3/view/directives.ts @@ -300,12 +300,12 @@ function setupSelectorMatchedInputsOrOutputs( let bindings: NodeInputBindings | NodeOutputBindings; if (mode === BindingType.Inputs) { bindings = tNode.inputs ??= {}; + setShadowStylingInputFlags(tNode, publicName); } else { bindings = tNode.outputs ??= {}; } bindings[publicName] ??= []; bindings[publicName].push(directiveIndex); - setShadowStylingInputFlags(tNode, publicName); } } } @@ -331,12 +331,12 @@ function setupHostDirectiveInputsOrOutputs( let bindings: HostDirectiveInputs | HostDirectiveOutputs; if (mode === BindingType.Inputs) { bindings = tNode.hostDirectiveInputs ??= {}; + setShadowStylingInputFlags(tNode, publicName); } else { bindings = tNode.hostDirectiveOutputs ??= {}; } bindings[publicName] ??= []; bindings[publicName].push(directiveIndex, initialName); - setShadowStylingInputFlags(tNode, publicName); } } } diff --git a/packages/core/src/render3/view_manipulation.ts b/packages/core/src/render3/view_manipulation.ts index fb27ccb7bd08..953dc8e3b800 100644 --- a/packages/core/src/render3/view_manipulation.ts +++ b/packages/core/src/render3/view_manipulation.ts @@ -16,7 +16,7 @@ import {assertDefined} from '../util/assert'; import {assertLContainer, assertTNodeForLView} from './assert'; import {renderView} from './instructions/render'; import {TNode} from './interfaces/node'; -import {DECLARATION_LCONTAINER, FLAGS, LView, LViewFlags, QUERIES} from './interfaces/view'; +import {DECLARATION_LCONTAINER, LView, LViewFlags, QUERIES} from './interfaces/view'; import {createLView} from './view/construction'; export function createAndRenderEmbeddedLView( @@ -35,14 +35,11 @@ export function createAndRenderEmbeddedLView( ngDevMode && assertDefined(embeddedTView, 'TView must be defined for a template node.'); ngDevMode && assertTNodeForLView(templateTNode, declarationLView); - // Embedded views follow the change detection strategy of the view they're declared in. - const isSignalView = declarationLView[FLAGS] & LViewFlags.SignalView; - const viewFlags = isSignalView ? LViewFlags.SignalView : LViewFlags.CheckAlways; const embeddedLView = createLView( declarationLView, embeddedTView, context, - viewFlags, + LViewFlags.CheckAlways, null, templateTNode, null, diff --git a/packages/core/src/resource/api.ts b/packages/core/src/resource/api.ts index c2390edf6ebb..7b264da9eb43 100644 --- a/packages/core/src/resource/api.ts +++ b/packages/core/src/resource/api.ts @@ -33,10 +33,10 @@ export class ResourceParamsStatus extends Error { } /** Status code that transitions the resource to `idle` status. */ - static readonly IDLE = new ResourceParamsStatus('IDLE'); + static readonly IDLE = /* @__PURE__ */ new ResourceParamsStatus('IDLE'); /** Status code that transitions the resource to `loading` status. */ - static readonly LOADING = new ResourceParamsStatus('LOADING'); + static readonly LOADING = /* @__PURE__ */ new ResourceParamsStatus('LOADING'); } /** @@ -68,7 +68,8 @@ export interface ResourceParamsContext { * dependencies. `value()` will continue to return the previously fetched value during the reloading * operation. * - * `error` - Loading failed with an error. `value()` will be `undefined`. + * `error` - Loading failed with an error. Reading `value()` will throw; use `hasValue()` or + * `error()` to check first. * * `resolved` - Loading has completed and the resource has the value returned from the loader. * @@ -282,8 +283,7 @@ export interface StreamingResourceOptions extends BaseResourceOptions = ( - | PromiseResourceOptions - | StreamingResourceOptions + PromiseResourceOptions | StreamingResourceOptions ) & { /** * A debug name for the reactive node. Used in Angular DevTools to identify the node. @@ -331,5 +331,4 @@ export interface DebouncedOptions { * @experimental 22.0 */ export type DebounceTimer = - | number - | ((value: T, lastValue: ResourceSnapshot) => Promise | void); + number | ((value: T, lastValue: ResourceSnapshot) => Promise | void); diff --git a/packages/core/src/resource/debounce.ts b/packages/core/src/resource/debounce.ts index dbddd9828555..b4ed18ec044a 100644 --- a/packages/core/src/resource/debounce.ts +++ b/packages/core/src/resource/debounce.ts @@ -10,7 +10,6 @@ import {assertInInjectionContext, inject, Injector} from '../di'; import {DestroyRef} from '../linker'; import {effect} from '../render3/reactivity/effect'; import {linkedSignal} from '../render3/reactivity/linked_signal'; -import {signal} from '../render3/reactivity/signal'; import {untracked} from '../render3/reactivity/untracked'; import {Resource, ResourceSnapshot, type DebounceTimer, type DebouncedOptions} from './api'; import {resourceFromSnapshots} from './from_snapshots'; @@ -48,8 +47,17 @@ export function debounced( let active: Promise | void | undefined; let pendingValue: T | undefined; + let activeTimer: ReturnType | undefined; + + const cancelTimer = () => { + if (activeTimer !== undefined) { + clearTimeout(activeTimer); + activeTimer = undefined; + } + }; injector.get(DestroyRef).onDestroy(() => { + cancelTimer(); active = undefined; }); @@ -93,6 +101,7 @@ export function debounced( } catch (err) { rethrowFatalErrors(err); state.set({status: 'error', error: err as Error}); + cancelTimer(); active = pendingValue = undefined; return; } finally { @@ -109,9 +118,18 @@ export function debounced( if (equal(value, currentState.value!)) return; } + // The value has changed, so any pending timer from a previous wait is now obsolete. + cancelTimer(); + const waitFn = typeof wait === 'number' - ? () => new Promise((resolve) => setTimeout(resolve, wait)) + ? () => + new Promise((resolve) => { + activeTimer = setTimeout(() => { + activeTimer = undefined; + resolve(); + }, wait); + }) : wait; const result = waitFn(value, currentState); diff --git a/packages/core/src/resource/resource.ts b/packages/core/src/resource/resource.ts index 68f3caaf376a..5427cbe90235 100644 --- a/packages/core/src/resource/resource.ts +++ b/packages/core/src/resource/resource.ts @@ -12,6 +12,7 @@ import {effect, EffectRef} from '../render3/reactivity/effect'; import {signal, signalAsReadonlyFn, WritableSignal} from '../render3/reactivity/signal'; import {untracked} from '../render3/reactivity/untracked'; import { + PromiseResourceOptions, Resource, ResourceDependencyError, ResourceOptions, @@ -29,6 +30,7 @@ import { import {assertInInjectionContext} from '../di/contextual'; import {Injector} from '../di/injector'; import {inject} from '../di/injector_compatibility'; +import {isErrorLike} from '../error_handler'; import {RuntimeError, RuntimeErrorCode} from '../errors'; import {CACHE_ACTIVE} from '../hydration/cache'; import {DestroyRef} from '../linker/destroy_ref'; @@ -73,14 +75,17 @@ export function resource(options: ResourceOptions): ResourceRef & {request: ResourceOptions['params']} ).request; const params = options.params ?? oldNameForParams ?? (() => null!); + const isStreaming = isStreamingResourceOptions(options); return new ResourceImpl( params, - getLoader(options), + isStreaming ? options.stream : createLoader(options), options.defaultValue, options.equal ? wrapEqualityFn(options.equal) : undefined, options.debugName, options.injector ?? inject(Injector), options.id as StateKey, + undefined, + isStreaming, ); } @@ -209,6 +214,7 @@ export class ResourceImpl extends BaseWritableResource implements Resou injector: Injector, private transferCacheKey: StateKey | undefined, getInitialStream?: (request: R) => Signal> | undefined, + private readonly isStreaming = false, ) { if (isInParamsFunction()) { throw invalidResourceCreationInParams(); @@ -245,11 +251,25 @@ export class ResourceImpl extends BaseWritableResource implements Resou this.transferState = injector.get(TransferState, undefined, {optional: true}) ?? undefined; + const paramsSignal = isSignal(request) + ? request + : computed( + () => { + try { + setInParamsFunction(true); + return request(paramsContext); + } finally { + setInParamsFunction(false); + } + }, + ngDevMode ? createDebugNameObject(debugName, 'params') : undefined, + ); + this.extRequest = linkedSignal( () => { try { setInParamsFunction(true); - return {request: request(paramsContext), reload: 0}; + return {request: paramsSignal(), reload: 0}; } catch (error) { rethrowFatalErrors(error); if (error === ResourceParamsStatus.IDLE) { @@ -257,7 +277,7 @@ export class ResourceImpl extends BaseWritableResource implements Resou } else if (error === ResourceParamsStatus.LOADING) { return {status: 'loading', reload: 0}; } - return {error: error as Error, reload: 0}; + return {error: encapsulateResourceError(error), reload: 0}; } finally { setInParamsFunction(false); } @@ -278,7 +298,7 @@ export class ResourceImpl extends BaseWritableResource implements Resou if (error) { status = 'resolved'; stream = signal( - {error: encapsulateResourceError(error)}, + {error}, ngDevMode ? createDebugNameObject(this.debugName, 'stream') : undefined, ); } else if (!status) { @@ -286,7 +306,6 @@ export class ResourceImpl extends BaseWritableResource implements Resou const transferState = this.transferState; const cacheKey = this.transferCacheKey; if (cacheState.isActive && cacheKey && transferState && request !== undefined) { - const key = this.transferCacheKey; if (transferState.hasKey(cacheKey)) { stream = signal( {value: transferState.get(cacheKey, defaultValue)}, @@ -415,6 +434,10 @@ export class ResourceImpl extends BaseWritableResource implements Resou // we do not want the effect to depend on the state of the resource, only on the request. const {status: currentStatus, previousStatus} = untracked(this.state); + // A changed request invalidates the previous load even when the new params are unavailable + // or errored. Cancel it before returning so its pending task cannot keep the app unstable. + this.abortInProgressLoad(); + if (extRequest.request === undefined) { // Nothing to load (and we should already be in a non-loading state). return; @@ -423,9 +446,6 @@ export class ResourceImpl extends BaseWritableResource implements Resou return; } - // Cancel any previous loading attempts. - this.abortInProgressLoad(); - // Capturing _this_ load's pending task in a local variable is important here. We may attempt to // resolve it twice: // @@ -512,11 +532,17 @@ export class ResourceImpl extends BaseWritableResource implements Resou // Resolve the pending task now that the resource has a value. resolvePendingTask?.(); resolvePendingTask = undefined; + + // For non-streaming resources, once the load is complete (settled), + // there is no longer an in-progress operation to abort. + if (!this.isStreaming && this.pendingController?.signal === abortSignal) { + this.pendingController = undefined; + } } } private abortInProgressLoad(): void { - untracked(() => this.pendingController?.abort()); + untracked(() => this.pendingController?.abort(getAbortReason())); this.pendingController = undefined; // Once the load is aborted, we no longer want to block stability on its resolution. @@ -525,6 +551,16 @@ export class ResourceImpl extends BaseWritableResource implements Resou } } +let abortReason: DOMException | undefined; + +/** + * Returns a shared `AbortError` reason, since `abort()` without a reason creates a new one (with a + * stack trace) on every call, causing performance degradation on deep component trees. + */ +function getAbortReason(): DOMException { + return (abortReason ??= new DOMException('The operation was aborted.', 'AbortError')); +} + function saveToTransferState( result: ResourceStreamItem | undefined, transferCacheKey: StateKey | undefined, @@ -542,11 +578,9 @@ function wrapEqualityFn(equal: ValueEqualityFn): ValueEqualityFn (a === undefined || b === undefined ? a === b : equal(a, b)); } -function getLoader(options: ResourceOptions): ResourceStreamingLoader { - if (isStreamingResourceOptions(options)) { - return options.stream; - } - +function createLoader( + options: PromiseResourceOptions & {debugName?: string}, +): ResourceStreamingLoader { return async (params) => { try { return signal( @@ -606,15 +640,6 @@ export function encapsulateResourceError(error: unknown): Error { return new ResourceWrappedError(error); } -export function isErrorLike(error: unknown): error is Error { - return ( - error instanceof Error || - (typeof error === 'object' && - typeof (error as Error).name === 'string' && - typeof (error as Error).message === 'string') - ); -} - export class ResourceValueError extends Error { constructor(error: Error) { super( diff --git a/packages/core/src/sanitization/bypass.ts b/packages/core/src/sanitization/bypass.ts index 0926d9e9c7f2..914aac804ac7 100644 --- a/packages/core/src/sanitization/bypass.ts +++ b/packages/core/src/sanitization/bypass.ts @@ -66,7 +66,7 @@ abstract class SafeValueImpl implements SafeValue { toString() { return ( `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}` + - ` (see ${XSS_SECURITY_URL})` + (ngDevMode ? ` (see ${XSS_SECURITY_URL})` : '') ); } } diff --git a/packages/core/src/sanitization/dom_security_schema.ts b/packages/core/src/sanitization/dom_security_schema.ts index fbd3c81f1368..665714db8ca5 100644 --- a/packages/core/src/sanitization/dom_security_schema.ts +++ b/packages/core/src/sanitization/dom_security_schema.ts @@ -86,10 +86,6 @@ export function SECURITY_SCHEMA(): SecuritySchema { ['area', ['href']], ['a', ['href', 'xlink:href']], ['form', ['action']], - - // The below two items are safe and should be removed but they require a G3 clean-up as a small number of tests fail. - ['img', ['src']], - ['video', ['src']], ]); registerContext(SecurityContext.URL, MATH_ML_NAMESPACE, [ @@ -188,7 +184,8 @@ export function checkSecurityContext( namespace?: string | null, ): SecurityContext { const securitySchema = SECURITY_SCHEMA(); - const attrSchema = securitySchema[propName.toLowerCase()]; + const normalizedPropName = propName.replace(/^:+/, '').toLowerCase(); + const attrSchema = securitySchema[normalizedPropName]; if (!attrSchema) { return SecurityContext.NONE; } @@ -210,5 +207,14 @@ export function checkSecurityContext( } } + // An SVG animation element declared outside of an `` has no explicit namespace at compile + // time, but can still animate once it is projected into an SVG subtree. + if (context === undefined && (!namespace || namespace === NO_NAMESPACE)) { + const svgSchema = attrSchema[SVG_NAMESPACE]; + if (svgSchema) { + context = svgSchema[tagLower]; + } + } + return context ?? SecurityContext.NONE; } diff --git a/packages/core/src/sanitization/html_sanitizer.ts b/packages/core/src/sanitization/html_sanitizer.ts index a0813e23a611..23843dd0cde7 100644 --- a/packages/core/src/sanitization/html_sanitizer.ts +++ b/packages/core/src/sanitization/html_sanitizer.ts @@ -7,6 +7,7 @@ */ import {XSS_SECURITY_URL} from '../error_details_base_url'; +import {getFirstChild, getNextSibling, getNodeName} from '../util/dom'; import {TrustedHTML} from '../util/security/trusted_type_defs'; import {trustedHTMLFromString} from '../util/security/trusted_types'; @@ -217,58 +218,6 @@ class SanitizingHtmlSerializer { } } -/** - * Verifies whether a given child node is a descendant of a given parent node. - * It may not be the case when properties like `.firstChild` are clobbered and - * accessing `.firstChild` results in an unexpected node returned. - */ -function isClobberedElement(parentNode: Node, childNode: Node): boolean { - return ( - (parentNode.compareDocumentPosition(childNode) & Node.DOCUMENT_POSITION_CONTAINED_BY) !== - Node.DOCUMENT_POSITION_CONTAINED_BY - ); -} - -/** - * Retrieves next sibling node and makes sure that there is no - * clobbering of the `nextSibling` property happening. - */ -function getNextSibling(node: Node): Node | null { - const nextSibling = node.nextSibling; - // Make sure there is no `nextSibling` clobbering: navigating to - // the next sibling and going back to the previous one should result - // in the original node. - if (nextSibling && node !== nextSibling.previousSibling) { - throw clobberedElementError(nextSibling); - } - return nextSibling; -} - -/** - * Retrieves first child node and makes sure that there is no - * clobbering of the `firstChild` property happening. - */ -function getFirstChild(node: Node): Node | null { - const firstChild = node.firstChild; - if (firstChild && isClobberedElement(node, firstChild)) { - throw clobberedElementError(firstChild); - } - return firstChild; -} - -/** Gets a reasonable nodeName, even for clobbered nodes. */ -export function getNodeName(node: Node): string { - const nodeName = node.nodeName; - // If the property is clobbered, assume it is an `HTMLFormElement`. - return typeof nodeName === 'string' ? nodeName : 'FORM'; -} - -function clobberedElementError(node: Node) { - return new Error( - `Failed to sanitize html because the element is clobbered: ${(node as Element).outerHTML}`, - ); -} - // Regular Expressions for parsing tags and attributes const SURROGATE_PAIR_REGEXP = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; // ! to ~ is the ASCII range. @@ -322,6 +271,9 @@ export function _sanitizeHtml(defaultDoc: any, unsafeHtmlInput: string): Trusted unsafeHtml = parsedHtml; parsedHtml = inertBodyElement!.innerHTML; + // Discard the serialized tree before the next parse allocates another one. + clearInertBodyElement(inertBodyElement!); + inertBodyElement = null; inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml); } while (unsafeHtml !== parsedHtml); @@ -337,14 +289,18 @@ export function _sanitizeHtml(defaultDoc: any, unsafeHtmlInput: string): Trusted } finally { // In case anything goes wrong, clear out inertElement to reset the entire DOM structure. if (inertBodyElement) { - const parent = getTemplateContent(inertBodyElement) || inertBodyElement; - while (parent.firstChild) { - parent.firstChild.remove(); - } + clearInertBodyElement(inertBodyElement); } } } +function clearInertBodyElement(inertBodyElement: HTMLElement): void { + const parent = getTemplateContent(inertBodyElement) || inertBodyElement; + while (parent.firstChild) { + parent.firstChild.remove(); + } +} + export function getTemplateContent(el: Node): Node | null { return 'content' in (el as any) /** Microsoft/TypeScript#21517 */ && isTemplateElement(el) ? el.content diff --git a/packages/core/src/sanitization/inert_body.ts b/packages/core/src/sanitization/inert_body.ts index 2cf8cdebf054..27b27f72ecbc 100644 --- a/packages/core/src/sanitization/inert_body.ts +++ b/packages/core/src/sanitization/inert_body.ts @@ -66,8 +66,8 @@ class DOMParserHelper implements InertBodyHelper { class InertDocumentHelper implements InertBodyHelper { private inertDocument: Document; - constructor(private defaultDoc: Document) { - this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert'); + constructor(defaultDoc: Document) { + this.inertDocument = defaultDoc.implementation.createHTMLDocument('sanitization-inert'); } getInertBodyElement(html: string): HTMLElement | null { diff --git a/packages/core/src/sanitization/sanitization.ts b/packages/core/src/sanitization/sanitization.ts index 4c4fee794ea2..7edd36ed24f9 100644 --- a/packages/core/src/sanitization/sanitization.ts +++ b/packages/core/src/sanitization/sanitization.ts @@ -124,10 +124,12 @@ export function ɵɵsanitizeUrl(unsafeUrl: any): string { * A `url` sanitizer which only lets trusted `url`s through. * * This passes only `url`s marked trusted by calling {@link bypassSanitizationTrustResourceUrl}. + * `null` and `undefined` are not considered unsafe and are mapped to an empty string, so that a + * resource URL binding can be cleared without having to provide a trusted placeholder value. * * @param unsafeResourceUrl untrusted `url`, typically from the user. - * @returns `url` string which is safe to bind to the `src` properties such as ``, because - * only trusted `url`s have been allowed to pass. + * @returns `url` string which is safe to bind to the `src` properties such as ``, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -179,14 +173,11 @@ describe('iframe processing', () => { `making sure it's case-insensitive, with \`${srcAttr}\`)`, () => { @Component({ - selector: 'my-comp', template: ` `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -199,13 +190,10 @@ describe('iframe processing', () => { `using a property binding (checking \`${securityAttr}\`, with \`${srcAttr}\`)`, () => { @Component({ - selector: 'my-comp', template: ``, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -218,13 +206,10 @@ describe('iframe processing', () => { `using a property interpolation (checking \`${securityAttr}\`, with \`${srcAttr}\`)`, () => { @Component({ - selector: 'my-comp', template: ``, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -238,15 +223,12 @@ describe('iframe processing', () => { `sure it's case-insensitive, with \`${srcAttr}\`)`, () => { @Component({ - selector: 'my-comp', template: ` `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -259,12 +241,9 @@ describe('iframe processing', () => { `using a property binding (checking \`${securityAttr}\` (attr.), with \`${srcAttr}\`)`, () => { @Component({ - selector: 'my-comp', template: ` `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -277,7 +256,6 @@ describe('iframe processing', () => { `using a property binding (checking \`${securityAttr}\` (attr.) with null, with \`${srcAttr}\`)`, () => { @Component({ - selector: 'my-comp', template: ` `, @@ -294,15 +272,12 @@ describe('iframe processing', () => { `sure it's case-insensitive, with \`${srcAttr}\`)`, () => { @Component({ - selector: 'my-comp', template: ` `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -312,14 +287,11 @@ describe('iframe processing', () => { it(`should allow changing \`${srcAttr}\` after initial render with \`${securityAttr}\``, () => { @Component({ - selector: 'my-comp', - template: ` `, - - changeDetection: ChangeDetectionStrategy.Eager, + template: ` `, }) class IframeComp { private sanitizer = inject(DomSanitizer); - src = this.sanitizeFn(TEST_IFRAME_URL); + src = signal(this.sanitizeFn(TEST_IFRAME_URL)); get sanitizeFn() { return srcAttr === 'src' @@ -333,7 +305,7 @@ describe('iframe processing', () => { // Changing `src` or `srcdoc` is allowed. const newUrl = 'https://angular.io/about?group=Angular'; - component.src = component.sanitizeFn(newUrl); + component.src.set(component.sanitizeFn(newUrl)); expect(() => fixture.detectChanges()).not.toThrow(); expect(fixture.nativeElement.querySelector('iframe')[srcAttr]).toEqual(newUrl); }); @@ -342,7 +314,6 @@ describe('iframe processing', () => { it('should error when a translated security-sensitive attribute contains bindings', () => { @Component({ - selector: 'my-comp', template: ` `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp { extraPrivileges = 'allow-scripts allow-same-origin'; @@ -372,10 +341,8 @@ describe('iframe processing', () => { class IframeDir {} @Component({ imports: [IframeDir], - selector: 'my-comp', - template: '', - changeDetection: ChangeDetectionStrategy.Eager, + template: '', }) class IframeComp {} @@ -394,10 +361,8 @@ describe('iframe processing', () => { @Component({ imports: [Dir], - selector: 'my-comp', - template: '', - changeDetection: ChangeDetectionStrategy.Eager, + template: '', }) class NonIframeComp {} @@ -413,10 +378,8 @@ describe('iframe processing', () => { () => { @Component({ imports: [NgIf], - selector: 'my-comp', - template: ``, - changeDetection: ChangeDetectionStrategy.Eager, + template: ``, }) class IframeComp { visible = true; @@ -428,10 +391,7 @@ describe('iframe processing', () => { it('should work when a security-sensitive attribute is set between `src` and `srcdoc`', () => { @Component({ - selector: 'my-comp', template: ``, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -450,10 +410,8 @@ describe('iframe processing', () => { @Component({ imports: [IframeDir], - selector: 'my-comp', - template: '', - changeDetection: ChangeDetectionStrategy.Eager, + template: '', }) class IframeComp {} @@ -475,10 +433,8 @@ describe('iframe processing', () => { @Component({ imports: [IframeDir], - selector: 'my-comp', - template: '', - changeDetection: ChangeDetectionStrategy.Eager, + template: '', }) class IframeComp {} @@ -500,10 +456,8 @@ describe('iframe processing', () => { @Component({ imports: [IframeDir], - selector: 'my-comp', - template: ``, - changeDetection: ChangeDetectionStrategy.Eager, + template: ``, }) class IframeComp {} @@ -526,10 +480,8 @@ describe('iframe processing', () => { @Component({ imports: [IframeDir], - selector: 'my-comp', - template: '', - changeDetection: ChangeDetectionStrategy.Eager, + template: '', }) class IframeComp {} @@ -552,10 +504,8 @@ describe('iframe processing', () => { @Component({ imports: [IframeDir], - selector: 'my-comp', - template: ``, - changeDetection: ChangeDetectionStrategy.Eager, + template: ``, }) class IframeComp {} @@ -565,10 +515,7 @@ describe('iframe processing', () => { it('should work when a security-sensitive attribute is set as a static attribute', () => { @Component({ - selector: 'my-comp', template: ` `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -583,12 +530,9 @@ describe('iframe processing', () => { 'as a property binding and an `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -611,10 +555,8 @@ describe('iframe processing', () => { @Component({ imports: [IframeDir], - selector: 'my-comp', - template: ``, - changeDetection: ChangeDetectionStrategy.Eager, + template: ``, }) class IframeComp {} @@ -644,13 +586,11 @@ describe('iframe processing', () => { @Component({ imports: [DirThatSetsSandbox, DirThatSetsSrc], - selector: 'my-comp', + // Important note: even though the `set-sandbox` goes after the `set-src`, // the directive matching order (thus the order of host attributes) is // based on the imports order, so the `sandbox` gets set first and the `src` second. template: '', - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -681,10 +621,8 @@ describe('iframe processing', () => { @Component({ imports: [DirThatSetsSandbox], - selector: 'my-comp', - template: '', - changeDetection: ChangeDetectionStrategy.Eager, + template: '', }) class IframeComp {} @@ -715,10 +653,8 @@ describe('iframe processing', () => { @Component({ imports: [DirThatSetsSrc], - selector: 'my-comp', - template: '', - changeDetection: ChangeDetectionStrategy.Eager, + template: '', }) class IframeComp {} @@ -731,15 +667,12 @@ describe('iframe processing', () => { 'with security-sensitive attributes set via property bindings', () => { @Component({ - selector: 'my-comp', template: ` `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp { @ViewChild('container', {read: ViewContainerRef}) container!: ViewContainerRef; @@ -768,14 +701,11 @@ describe('iframe processing', () => { 'a property binding on an `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -788,10 +718,7 @@ describe('iframe processing', () => { 'a property binding on an `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -801,10 +728,7 @@ describe('iframe processing', () => { it('should work when a security-sensitive attributes are marked for translation', () => { @Component({ - selector: 'my-comp', template: ` `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class IframeComp {} @@ -819,8 +743,6 @@ describe('SVG animation processing', () => { it('should error when `attributeName` is bound', () => { @Component({ template: '', - - changeDetection: ChangeDetectionStrategy.Eager, }) class TestCmp { attr = 'href'; @@ -845,10 +767,8 @@ describe('SVG animation processing', () => { @Component({ imports: [animateAttrDir], - selector: 'my-comp', - template: '', - changeDetection: ChangeDetectionStrategy.Eager, + template: '', }) class TestCmp {} @@ -865,8 +785,6 @@ describe('innerHTML processing', () => { it('should drop risky attributes from elements created with innerHTML', () => { @Component({ template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, }) class App { html = '
    '; @@ -1280,7 +1198,6 @@ describe('Component host element validation', () => { it('should throw an error when dynamically mounting a component onto a script tag', () => { @Component({ - selector: 'my-sink', template: '', }) class MySink {} @@ -1303,7 +1220,6 @@ describe('Component host element validation', () => { it('should throw an error when dynamically mounting a component onto an SVG script tag', () => { @Component({ - selector: 'my-svg-sink', template: '', }) class MySvgSink {} @@ -1344,11 +1260,10 @@ describe('Component host element validation', () => { }); }); -describe('SVG `, - changeDetection: ChangeDetectionStrategy.Eager, }) class TestCmp {} @@ -1356,13 +1271,52 @@ describe('SVG + safe + + `, + }) + class TestCmp { + evil = 'evil'; + } + + const fixture = TestBed.createComponent(TestCmp); + await fixture.whenStable(); + + expect(fixture.nativeElement.querySelector('script')).toBeFalsy(); + expect(fixture.nativeElement.querySelector('span').textContent).toBe('safe'); + }); + + it('should remove + custom safe + + `, + }) + class TestCmp { + evil = 'evil'; + } + + const fixture = TestBed.createComponent(TestCmp); + await fixture.whenStable(); + + expect(fixture.nativeElement.querySelector('script')).toBeFalsy(); + expect(fixture.nativeElement.querySelector('span').textContent).toBe('custom safe'); + }); }); describe('SVG link sanitization', () => { it('should sanitize dynamic `href` bindings on ', () => { @Component({ template: '', - changeDetection: ChangeDetectionStrategy.Eager, }) class TestCmp { url = 'javascript:alert(1)'; @@ -1378,7 +1332,6 @@ describe('SVG link sanitization', () => { it('should sanitize dynamic `xlink:href` bindings on ', () => { @Component({ template: '', - changeDetection: ChangeDetectionStrategy.Eager, }) class TestCmp { url = 'javascript:alert(1)'; @@ -1399,7 +1352,6 @@ describe('SVG link sanitization', () => { `, - changeDetection: ChangeDetectionStrategy.Eager, }) class TestCmp {} diff --git a/packages/core/test/acceptance/selectorless/BUILD b/packages/core/test/acceptance/selectorless/BUILD deleted file mode 100644 index ea50ab05ecc6..000000000000 --- a/packages/core/test/acceptance/selectorless/BUILD +++ /dev/null @@ -1,38 +0,0 @@ -load("//tools:defaults.bzl", "angular_jasmine_test", "ng_project", "ng_web_test_suite", "ts_config") - -package(default_visibility = ["//visibility:private"]) - -ts_config( - name = "tsconfig", - src = "tsconfig.json", - deps = [ - "//packages/core:tsconfig_test", - ], -) - -ng_project( - name = "selectorless_test_lib", - testonly = True, - srcs = glob(["**/*.ts"]), - tsconfig = ":tsconfig", - visibility = ["//:__pkg__"], - deps = [ - "//packages/core", - "//packages/core/testing", - ], -) - -angular_jasmine_test( - name = "selectorless", - data = [ - ":selectorless_test_lib", - "//:node_modules/source-map", - ], -) - -ng_web_test_suite( - name = "selectorless_web", - deps = [ - ":selectorless_test_lib", - ], -) diff --git a/packages/core/test/acceptance/selectorless/selectorless.spec.ts b/packages/core/test/acceptance/selectorless/selectorless.spec.ts deleted file mode 100644 index 2578c6bc93e9..000000000000 --- a/packages/core/test/acceptance/selectorless/selectorless.spec.ts +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * @license - * Copyright Google LLC All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.dev/license - */ - -import {Component} from '@angular/core'; -import {TestBed} from '@angular/core/testing'; - -describe('selectorless', () => { - // TODO: this is an example to show that AoT and the dependency resolution work. - // It should be deleted once we start writing real tests for the runtime behavior. - it('should compile selectorless component', () => { - @Component({template: 'hello'}) - class Dep {} - - @Component({template: ''}) - class App {} - - expect(() => TestBed.createComponent(App)).not.toThrow(); - }); -}); diff --git a/packages/core/test/acceptance/selectorless/tsconfig.json b/packages/core/test/acceptance/selectorless/tsconfig.json deleted file mode 100644 index 5d380d74e512..000000000000 --- a/packages/core/test/acceptance/selectorless/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../../../tsconfig-test.json", - "compilerOptions": { - "strict": true - }, - "angularCompilerOptions": { - "strictTemplates": true, - "_enableSelectorless": true - } -} diff --git a/packages/core/test/acceptance/signal_debug_spec.ts b/packages/core/test/acceptance/signal_debug_spec.ts index 0cd403b590dc..1164ba03c913 100644 --- a/packages/core/test/acceptance/signal_debug_spec.ts +++ b/packages/core/test/acceptance/signal_debug_spec.ts @@ -8,25 +8,25 @@ import {NodeInjector} from '../../../core/src/render3/di'; import {getDirectives} from '../../../core/src/render3/util/discovery_utils'; +import type {DebugSignalGraphEdge, DebugSignalGraphNode} from '../../primitives/devtools'; import { + ApplicationRef, Component, Directive, - computed, - effect, - inject, Injectable, - signal, Injector, - ApplicationRef, afterRenderEffect, + computed, + effect, + inject, linkedSignal, + signal, } from '../../src/core'; import { getFrameworkDIDebugData, setupFrameworkInjectorProfiler, } from '../../src/render3/debug/framework_injector_profiler'; import {setInjectorProfiler} from '../../src/render3/debug/injector_profiler'; -import type {DebugSignalGraphEdge, DebugSignalGraphNode} from '../../primitives/devtools'; import {getSignalGraph, toggleWatchSignal} from '../../src/render3/util/signal_debug'; import {TestBed} from '../../testing'; @@ -60,7 +60,7 @@ describe('getSignalGraph', () => { } it('should return the signal graph for a component with signals', async () => { - @Component({selector: 'component-with-signals', template: `{{ primitiveSignal() }}`}) + @Component({template: `{{ primitiveSignal() }}`}) class WithSignals { primitiveSignal = signal(123, {debugName: 'primitiveSignal'}); } @@ -88,7 +88,7 @@ describe('getSignalGraph', () => { }); it('should return the signal graph for a component with effects', async () => { - @Component({selector: 'component-with-effect', template: ``}) + @Component({template: ``}) class WithEffect { stateFromEffect = 0; primitiveSignal = signal(123, {debugName: 'primitiveSignal'}); @@ -133,7 +133,7 @@ describe('getSignalGraph', () => { }); it('should return the signal graph for a component with a computed', async () => { - @Component({selector: 'component-with-computed', template: `{{ computedSignal() }}`}) + @Component({template: `{{ computedSignal() }}`}) class WithComputed { primitiveSignal = signal(123, {debugName: 'primitiveSignal'}); primitiveSignal2 = signal(456, {debugName: 'primitiveSignal2'}); @@ -193,7 +193,7 @@ describe('getSignalGraph', () => { }); it('should return the signal graph for a component with unused reactive nodes', async () => { - @Component({selector: 'component-with-unused-signal', template: ``}) + @Component({template: ``}) class WithUnusedReactiveNodes { primitiveSignal = signal(123, {debugName: 'primitiveSignal'}); computedSignal = computed(() => this.primitiveSignal() * this.primitiveSignal(), { @@ -213,7 +213,7 @@ describe('getSignalGraph', () => { }); it('should return the signal graph for a component with no component effect signal dependencies', async () => { - @Component({selector: 'component-with-zero-effect', template: ``}) + @Component({template: ``}) class WithNoEffectSignalDependencies { primitiveSignal = signal(123, {debugName: 'primitiveSignal'}); primitiveSignalEffect = effect(() => {}, {debugName: 'primitiveSignalEffect'}); @@ -231,7 +231,7 @@ describe('getSignalGraph', () => { }); it('should return the signal graph for a component with no signal dependencies in the template or component effects', async () => { - @Component({selector: 'component-with-no-effect-dependencies', template: ``}) + @Component({template: ``}) class WithNoEffectDependencies {} const fixture = TestBed.createComponent(WithNoEffectDependencies); @@ -254,7 +254,7 @@ describe('getSignalGraph', () => { @Component({ providers: [ExternalService], - selector: 'component-with-external-service', + template: `{{ externalService.oneTwoThree() }}`, }) class WithExternalService { @@ -319,7 +319,6 @@ describe('getSignalGraph', () => { } @Component({ - selector: 'component-with-directive', template: `
    `, imports: [MyDirective], }) @@ -385,7 +384,6 @@ describe('getSignalGraph', () => { } @Component({ - selector: 'component-with-multiple-directives', template: `
    `, imports: [MyDirectiveA, MyDirectiveB], }) @@ -468,11 +466,40 @@ describe('getSignalGraph', () => { expect(getFrameworkDIDebugData().resolverToEffects.get(injector)?.length).toBe(0); }); + it('should use the debugName of afterRenderEffect for each phase', async () => { + @Component({template: ''}) + class App { + constructor() { + afterRenderEffect( + { + earlyRead: () => {}, + write: () => {}, + mixedReadWrite: () => {}, + read: () => {}, + }, + {debugName: 'myRenderEffect'}, + ); + } + } + const fixture = TestBed.createComponent(App); + await fixture.whenStable(); + + const {nodes} = getSignalGraph(fixture.componentRef.injector); + const labels = nodes.filter((n) => n.kind === 'afterRenderEffectPhase').map((n) => n.label); + + expect(labels.sort()).toEqual([ + 'myRenderEffect - EarlyRead phase', + 'myRenderEffect - MixedReadWrite phase', + 'myRenderEffect - Read phase', + 'myRenderEffect - Write phase', + ]); + }); + describe('debuggableFn', () => { it('should expose the computation of a computed', async () => { const computation = () => 1; - @Component({selector: 'with-computed', template: `{{ computedSignal() }}`}) + @Component({template: `{{ computedSignal() }}`}) class WithComputed { computedSignal = computed(computation, {debugName: 'computedSignal'}); } @@ -490,7 +517,7 @@ describe('getSignalGraph', () => { it('should expose the computation of a linkedSignal', async () => { const computation = (source: number) => source * 2; - @Component({selector: 'with-linked-signal', template: `{{ linked() }}`}) + @Component({template: `{{ linked() }}`}) class WithLinkedSignal { source = signal(1, {debugName: 'source'}); linked = linkedSignal({ @@ -514,7 +541,7 @@ describe('getSignalGraph', () => { it('should expose the callback of an effect', async () => { const effectFn = () => {}; - @Component({selector: 'with-effect', template: ``}) + @Component({template: ``}) class WithEffect { constructor() { effect(effectFn, {debugName: 'myEffect'}); @@ -534,7 +561,7 @@ describe('getSignalGraph', () => { it('should expose the user callback of an afterRenderEffect phase', async () => { const phaseFn = () => {}; - @Component({selector: 'with-after-render-effect', template: ``}) + @Component({template: ``}) class WithAfterRenderEffect { constructor() { afterRenderEffect(phaseFn); @@ -555,7 +582,7 @@ describe('getSignalGraph', () => { const earlyReadFn = () => {}; const writeFn = () => {}; - @Component({selector: 'with-after-render-effect-object', template: ``}) + @Component({template: ``}) class WithAfterRenderEffectObject { constructor() { afterRenderEffect({earlyRead: earlyReadFn, write: writeFn}); @@ -633,7 +660,7 @@ describe('toggleWatchSignal', () => { }); it('should dispose the watch when toggled off', async () => { - @Component({selector: 'component-with-disposed-watch', template: `{{ mySignal() }}`}) + @Component({template: `{{ mySignal() }}`}) class App { mySignal = signal('initial'); } diff --git a/packages/core/test/acceptance/standalone_injector_spec.ts b/packages/core/test/acceptance/standalone_injector_spec.ts index 8ded10101565..c40a3731d0db 100644 --- a/packages/core/test/acceptance/standalone_injector_spec.ts +++ b/packages/core/test/acceptance/standalone_injector_spec.ts @@ -29,7 +29,6 @@ describe('standalone injector', () => { class ModuleWithAService {} @Component({ - selector: 'standalone', imports: [ModuleWithAService], template: `({{ service.value }})`, }) @@ -38,7 +37,6 @@ describe('standalone injector', () => { } @Component({ - selector: 'app', template: ``, standalone: false, }) @@ -79,7 +77,6 @@ describe('standalone injector', () => { class ModuleWithAService {} @Component({ - selector: 'standalone', imports: [ModuleWithAService], template: `{{ service.value }}`, }) @@ -88,7 +85,7 @@ describe('standalone injector', () => { } @Component({ - standalone: false, + template: '', }) class AppComponent {} diff --git a/packages/core/test/acceptance/standalone_spec.ts b/packages/core/test/acceptance/standalone_spec.ts index 1e7c4eb3a129..1daed13dc17e 100644 --- a/packages/core/test/acceptance/standalone_spec.ts +++ b/packages/core/test/acceptance/standalone_spec.ts @@ -156,7 +156,6 @@ describe('standalone components, directives, and pipes', () => { class LibModule {} @Component({ - selector: 'app-cmpt', template: `{{ 'standalone' | standalonePipe }}`, standalone: false, @@ -254,7 +253,6 @@ describe('standalone components, directives, and pipes', () => { class MyModuleB {} @Component({ - selector: 'duplicate-selector', template: `ComponentA: {{ service ? 'service found' : 'service not found' }}`, imports: [MyModuleA], }) @@ -263,7 +261,6 @@ describe('standalone components, directives, and pipes', () => { } @Component({ - selector: 'duplicate-selector', template: `ComponentB: {{ service ? 'service found' : 'service not found' }}`, imports: [MyModuleB], }) @@ -272,7 +269,6 @@ describe('standalone components, directives, and pipes', () => { } @Component({ - selector: 'app-cmp', template: ` @@ -475,7 +471,6 @@ describe('standalone components, directives, and pipes', () => { @NgModule({exports: [ModuleWithAService]}) class ExportingModule {} @Component({ - selector: 'standalone', imports: [ExportingModule], template: `({{ service.value }})`, }) @@ -500,7 +495,6 @@ describe('standalone components, directives, and pipes', () => { } @Component({ - selector: 'standalone', template: `
    {{ '' | blue }}
    `, imports: [[RedIdDirective, [BluePipe]]], }) @@ -525,7 +519,6 @@ describe('standalone components, directives, and pipes', () => { const DirAndPipe = [RedIdDirective, BluePipe] as const; @Component({ - selector: 'standalone', template: `
    {{ '' | blue }}
    `, imports: [DirAndPipe], }) @@ -557,7 +550,6 @@ describe('standalone components, directives, and pipes', () => { class BlueBModule {} @Component({ - selector: 'standalone', template: `orange`, imports: [RedComponent, RedComponent, BlueAModule, BlueBModule], }) @@ -572,7 +564,6 @@ describe('standalone components, directives, and pipes', () => { it('should error when forwardRef does not resolve to a truthy value', () => { @Component({ - selector: 'test', imports: [forwardRef(() => null)], template: '', }) @@ -693,7 +684,6 @@ describe('standalone components, directives, and pipes', () => { it('should support forwardRef imports', () => { @Component({ - selector: 'test', imports: [forwardRef(() => StandaloneComponent)], template: `()`, }) @@ -850,7 +840,6 @@ describe('standalone components, directives, and pipes', () => { } @Component({ - selector: 'regular', standalone: false, }) class RegularCmp extends StandaloneCmp {} @@ -866,21 +855,21 @@ describe('standalone components, directives, and pipes', () => { describe('isStandalone()', () => { it('should return `true` if component is standalone', () => { - @Component({selector: 'standalone-cmp'}) + @Component({}) class StandaloneCmp {} expect(isStandalone(StandaloneCmp)).toBeTrue(); }); it('should return `true` if component is standalone (with `standalone:true`)', () => { - @Component({selector: 'standalone-cmp'}) + @Component({}) class StandaloneCmp {} expect(isStandalone(StandaloneCmp)).toBeTrue(); }); it('should return `false` if component is not standalone', () => { - @Component({selector: 'standalone-cmp', standalone: false}) + @Component({standalone: false}) class StandaloneCmp {} expect(isStandalone(StandaloneCmp)).toBeFalse(); diff --git a/packages/core/test/acceptance/styling_spec.ts b/packages/core/test/acceptance/styling_spec.ts index 2c2759919453..c5a8981e8abe 100644 --- a/packages/core/test/acceptance/styling_spec.ts +++ b/packages/core/test/acceptance/styling_spec.ts @@ -9,15 +9,17 @@ import {NgClass, NgFor, NgIf, NgStyle} from '@angular/common'; import {By, DomSanitizer, SafeStyle} from '@angular/platform-browser'; import {isBrowser} from '@angular/private/testing'; import { - ChangeDetectionStrategy, Component, ComponentRef, + computed, Directive, ElementRef, + EventEmitter, HostBinding, Input, - provideZoneChangeDetection, + Output, Renderer2, + signal, ViewChild, ViewContainerRef, } from '../../src/core'; @@ -31,11 +33,6 @@ import { } from '../../testing/src/styling'; describe('styling', () => { - beforeEach(() => { - TestBed.configureTestingModule({ - providers: [provideZoneChangeDetection()], - }); - }); describe('apply in prioritization order', () => { it('should perform static bindings', () => { @Component({ @@ -171,7 +168,6 @@ describe('styling', () => { it('should apply style properties that require quote wrapping', () => { @Component({ - selector: 'test-style-quoting', template: `
    @@ -546,7 +542,7 @@ describe('styling', () => { expect(divBinding.getAttribute('shadow-style')).toEqual('width: 1px; height:1px;'); }); - it('should bind [class] as input to directive when both static and falsy dynamic values are present', () => { + it('should bind [class] as input to directive when both static and falsy dynamic values are present', async () => { @Directive({ selector: '[dir-shadows-class-input]', }) @@ -559,34 +555,32 @@ describe('styling', () => { } @Component({ - template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, + template: `
    `, imports: [DirectiveShadowsClassInput], }) class Cmp { - classBinding: any = undefined; + classBinding = signal(undefined); } const fixture = TestBed.createComponent(Cmp); - fixture.detectChanges(); + await fixture.whenStable(); const div = fixture.nativeElement.querySelector('div'); expect(div.className).toEqual('s1'); expect(div.getAttribute('shadow-class')).toEqual('s1'); - fixture.componentInstance.classBinding = null; - fixture.detectChanges(); + fixture.componentInstance.classBinding.set(null); + await fixture.whenStable(); expect(div.className).toEqual('s1'); expect(div.getAttribute('shadow-class')).toEqual('s1'); - fixture.componentInstance.classBinding = false; - fixture.detectChanges(); + fixture.componentInstance.classBinding.set(false); + await fixture.whenStable(); expect(div.className).toEqual('s1'); expect(div.getAttribute('shadow-class')).toEqual('s1'); - fixture.componentInstance.classBinding = {toString: () => 'd1'}; - fixture.detectChanges(); + fixture.componentInstance.classBinding.set({toString: () => 'd1'}); + await fixture.whenStable(); expect(div.className).toEqual('s1'); expect(div.getAttribute('shadow-class')).toEqual('s1 d1'); }); @@ -620,6 +614,126 @@ describe('styling', () => { expect(div.getAttribute('shadow-style')).toEqual('color: red; width: 100px;'); }); + it('should not treat outputs named class or style as shadowing [class] and [style]', async () => { + @Directive({ + selector: '[dir-with-styling-outputs]', + }) + class DirectiveWithStylingOutputs { + @Output('class') classOutput = new EventEmitter(); + @Output('style') styleOutput = new EventEmitter(); + } + + @Component({ + template: ` +
    + `, + imports: [DirectiveWithStylingOutputs], + }) + class Cmp { + classBinding = signal('d1'); + styleBinding = signal('width: 10px;'); + } + + const fixture = TestBed.createComponent(Cmp); + await fixture.whenStable(); + const div = fixture.nativeElement.querySelector('div'); + expectClass(div).toEqual({'s1': true, 'd1': true}); + expectStyle(div).toEqual({'color': 'red', 'width': '10px'}); + + fixture.componentInstance.classBinding.set('d2'); + fixture.componentInstance.styleBinding.set('width: 20px;'); + await fixture.whenStable(); + expectClass(div).toEqual({'s1': true, 'd2': true}); + expectStyle(div).toEqual({'color': 'red', 'width': '20px'}); + }); + + it('should deliver events from an output named class while [class] is bound', async () => { + @Directive({ + selector: '[dir-with-class-output]', + }) + class DirectiveWithClassOutput { + @Output('class') classOutput = new EventEmitter(); + } + + @Component({ + template: ` +
    + `, + imports: [DirectiveWithClassOutput], + }) + class Cmp { + @ViewChild(DirectiveWithClassOutput) dir!: DirectiveWithClassOutput; + classBinding = signal('d1'); + received: string[] = []; + } + + const fixture = TestBed.createComponent(Cmp); + await fixture.whenStable(); + fixture.componentInstance.dir.classOutput.emit('e1'); + + expect(fixture.componentInstance.received).toEqual(['e1']); + expectClass(fixture.nativeElement.querySelector('div')).toEqual({'s1': true, 'd1': true}); + }); + + it('should not treat a host directive output exposed as class as shadowing [class]', async () => { + @Directive() + class HostDir { + @Output() changed = new EventEmitter(); + } + + @Directive({ + selector: '[dir-exposing-class-output]', + hostDirectives: [{directive: HostDir, outputs: ['changed: class']}], + }) + class DirectiveExposingClassOutput {} + + @Component({ + template: `
    `, + imports: [DirectiveExposingClassOutput], + }) + class Cmp { + classBinding = signal('d1'); + } + + const fixture = TestBed.createComponent(Cmp); + await fixture.whenStable(); + expectClass(fixture.nativeElement.querySelector('div')).toEqual({'s1': true, 'd1': true}); + }); + + it('should bind [class] as input to directive that also has an output named class', async () => { + @Directive({ + selector: '[dir-shadows-class-input]', + }) + class DirectiveShadowsClassInput { + @Input('class') klass = ''; + @Output('class') classOutput = new EventEmitter(); + } + + @Component({ + template: `
    `, + imports: [DirectiveShadowsClassInput], + }) + class Cmp { + @ViewChild(DirectiveShadowsClassInput) dir!: DirectiveShadowsClassInput; + } + + const fixture = TestBed.createComponent(Cmp); + await fixture.whenStable(); + expect(fixture.nativeElement.querySelector('div').className).toEqual('s1'); + expect(fixture.componentInstance.dir.klass).toEqual('s1 d1'); + }); + it('should prevent circular ExpressionChangedAfterItHasBeenCheckedError on shadow inputs', () => { @Directive({ selector: '[dir-shadows-class-input]', @@ -648,34 +762,34 @@ describe('styling', () => { }); it('should recover from exceptions', () => { - let myDirHostBinding = false; + const myDirHostBinding = signal(false); @Directive({ selector: '[my-dir]', + host: { + '[class.myDir]': 'myDir()', + }, }) class MyDirective { - @HostBinding('class.myDir') - get myDir(): boolean { - if (myDirHostBinding === false) { + myDir(): boolean { + if (!myDirHostBinding()) { throw new Error('class.myDir'); } - return myDirHostBinding; + return myDirHostBinding(); } } @Component({ template: ` -
    - +
    +
    `, - - changeDetection: ChangeDetectionStrategy.Eager, imports: [MyDirective], }) class Cmp { - id = 'throw_id'; - klass: string | string[] = 'throw_klass'; - foo = `throw_foo`; + id = signal('throw_id'); + klass = signal('throw_klass'); + foo = signal(`throw_foo`); maybeThrow(value: any) { if (typeof value === 'string' && value.indexOf('throw') === 0) { @@ -694,22 +808,22 @@ describe('styling', () => { expect(div.id).toBeFalsy(); expectClass(span).toEqual({}); - cmp.id = 'myId'; + cmp.id.set('myId'); expect(() => fixture.detectChanges()).toThrowError(/throw_klass/); expect(div.id).toEqual('myId'); expectClass(span).toEqual({}); - cmp.klass = ['BAR']; + cmp.klass.set(['BAR']); expect(() => fixture.detectChanges()).toThrowError(/throw_foo/); expect(div.id).toEqual('myId'); expectClass(span).toEqual({BAR: true}); - cmp.foo = 'foo'; + cmp.foo.set('foo'); expect(() => fixture.detectChanges()).toThrowError(/class.myDir/); expect(div.id).toEqual('myId'); expectClass(span).toEqual({BAR: true, foo: true}); - myDirHostBinding = true; + myDirHostBinding.set(true); fixture.detectChanges(); expect(div.id).toEqual('myId'); expectClass(span).toEqual({BAR: true, foo: true, myDir: true}); @@ -870,11 +984,9 @@ describe('styling', () => { expect(fixture.componentInstance.div.nativeElement.style.opacity).toBe('0'); }); - it('should be able to bind a SafeValue to backgroundImage', () => { + it('should be able to bind a SafeValue to backgroundImage', async () => { @Component({ template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { image!: SafeStyle; @@ -884,24 +996,22 @@ describe('styling', () => { const sanitizer: DomSanitizer = TestBed.inject(DomSanitizer); fixture.componentInstance.image = sanitizer.bypassSecurityTrustStyle('url("#test")'); - fixture.detectChanges(); + await fixture.whenStable(); const div = fixture.nativeElement.querySelector('div') as HTMLDivElement; expect(div.style.backgroundImage).toBe('url("#test")'); }); - it('should set !important on a single property', () => { + it('should set !important on a single property', async () => { @Component({ template: '
    ', - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - width!: string; + width = '50px !important'; } const fixture = TestBed.createComponent(Cmp); - fixture.componentInstance.width = '50px !important'; - fixture.detectChanges(); + await fixture.whenStable(); const html = fixture.nativeElement.innerHTML; // We have to check the `style` attribute, because `element.style.prop` doesn't include @@ -909,19 +1019,16 @@ describe('styling', () => { expect(html).toMatch(/style=["|']width:\s*50px\s*!important/); }); - it('should set !important that is not preceded by a space', () => { + it('should set !important that is not preceded by a space', async () => { @Component({ template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - width!: string; + width = '50px!important'; } const fixture = TestBed.createComponent(Cmp); - fixture.componentInstance.width = '50px!important'; - fixture.detectChanges(); + await fixture.whenStable(); const html = fixture.nativeElement.innerHTML; // We have to check the `style` attribute, because `element.style.prop` doesn't include @@ -929,19 +1036,16 @@ describe('styling', () => { expect(html).toMatch(/style=["|']width:\s*50px\s*!important/); }); - it('should set !important on a dash-case property', () => { + it('should set !important on a dash-case property', async () => { @Component({ template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - marginRight!: string; + marginRight = '5px !important'; } const fixture = TestBed.createComponent(Cmp); - fixture.componentInstance.marginRight = '5px !important'; - fixture.detectChanges(); + await fixture.whenStable(); const html = fixture.nativeElement.innerHTML; // We have to check the `style` attribute, because `element.style.prop` doesn't include @@ -949,19 +1053,16 @@ describe('styling', () => { expect(html).toMatch(/style=["|']margin-right:\s*5px\s*!important/); }); - it('should set !important on multiple properties', () => { + it('should set !important on multiple properties', async () => { @Component({ template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - styles!: string; + styles = 'height: 25px !important; width: 50px !important;'; } const fixture = TestBed.createComponent(Cmp); - fixture.componentInstance.styles = 'height: 25px !important; width: 50px !important;'; - fixture.detectChanges(); + await fixture.whenStable(); const html = fixture.nativeElement.innerHTML; // We have to check the `style` attribute, because `element.style.prop` doesn't include @@ -969,19 +1070,16 @@ describe('styling', () => { expect(html).toMatch(/style=["|']height:\s*25px\s*!important;\s*width:\s*50px\s*!important/); }); - it('should set !important if some properties are !important and other are not', () => { + it('should set !important if some properties are !important and other are not', async () => { @Component({ template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - styles!: string; + styles = 'height: 25px; width: 50px !important;'; } const fixture = TestBed.createComponent(Cmp); - fixture.componentInstance.styles = 'height: 25px; width: 50px !important;'; - fixture.detectChanges(); + await fixture.whenStable(); const html = fixture.nativeElement.innerHTML; // We have to check the `style` attribute, because `element.style.prop` doesn't include @@ -1002,29 +1100,28 @@ describe('styling', () => { } @Component({ - selector: 'app-comp', template: ``, + imports: [StyleDir], }) class MyApp {} TestBed.createComponent(MyApp).detectChanges(); }); - it('should be able to bind a SafeValue to clip-path', () => { + it('should be able to bind a SafeValue to clip-path', async () => { @Component({ template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { + constructor(private sanitizer: DomSanitizer) { + this.path = this.sanitizer.bypassSecurityTrustStyle('url("#test")'); + } + path!: SafeStyle; } const fixture = TestBed.createComponent(Cmp); - const sanitizer: DomSanitizer = TestBed.inject(DomSanitizer); - - fixture.componentInstance.path = sanitizer.bypassSecurityTrustStyle('url("#test")'); - fixture.detectChanges(); + await fixture.whenStable(); const html = fixture.nativeElement.innerHTML; @@ -1033,48 +1130,50 @@ describe('styling', () => { expect(html).toMatch(/style=["|']clip-path:\s*url\(.*#test.*\)/); }); - it('should support interpolations inside a class binding', () => { + it('should support interpolations inside a class binding', async () => { @Component({ template: `
    -
    -
    -
    -
    -
    -
    -
    +
    +
    +
    +
    +
    +
    +
    `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - one = '1'; - two = '2'; - three = '3'; - four = '4'; - five = '5'; - six = '6'; - seven = '7'; - eight = '8'; - nine = '9'; + one = signal('1'); + two = signal('2'); + three = signal('3'); + four = signal('4'); + five = signal('5'); + six = signal('6'); + seven = signal('7'); + eight = signal('8'); + nine = signal('9'); } const fixture = TestBed.createComponent(Cmp); const instance = fixture.componentInstance; - fixture.detectChanges(); + await fixture.whenStable(); const divs = fixture.nativeElement.querySelectorAll('div'); @@ -1089,17 +1188,16 @@ describe('styling', () => { expect(divs[8].getAttribute('class')).toBe('a1b'); expect(divs[9].getAttribute('class')).toBe('1'); - instance.one = - instance.two = - instance.three = - instance.four = - instance.five = - instance.six = - instance.seven = - instance.eight = - instance.nine = - ''; - fixture.detectChanges(); + instance.one.set(''); + instance.two.set(''); + instance.three.set(''); + instance.four.set(''); + instance.five.set(''); + instance.six.set(''); + instance.seven.set(''); + instance.eight.set(''); + instance.nine.set(''); + await fixture.whenStable(); expect(divs[0].getAttribute('class')).toBe('abcdefghij'); expect(divs[1].getAttribute('class')).toBe('abcdefghi'); @@ -1113,57 +1211,59 @@ describe('styling', () => { expect(divs[9].getAttribute('class')).toBeFalsy(); }); - it('should support interpolations inside a style binding', () => { + it('should support interpolations inside a style binding', async () => { @Component({ template: `
    -
    -
    -
    -
    -
    +
    +
    +
    +
    +
    `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - self = 'content: "self"'; - one = '1'; - two = '2'; - three = '3'; - four = '4'; - five = '5'; - six = '6'; - seven = '7'; - eight = '8'; - nine = '9'; + self = signal('content: "self"'); + one = signal('1'); + two = signal('2'); + three = signal('3'); + four = signal('4'); + five = signal('5'); + six = signal('6'); + seven = signal('7'); + eight = signal('8'); + nine = signal('9'); } const fixture = TestBed.createComponent(Cmp); const instance = fixture.componentInstance; - fixture.detectChanges(); + await fixture.whenStable(); const divs = fixture.nativeElement.querySelectorAll('div'); @@ -1178,18 +1278,17 @@ describe('styling', () => { expect(divs[8].style.getPropertyValue('content')).toBe('"a1b"'); expect(divs[9].style.getPropertyValue('content')).toBe('"self"'); - instance.one = - instance.two = - instance.three = - instance.four = - instance.five = - instance.six = - instance.seven = - instance.eight = - instance.nine = - instance.self = - ''; - fixture.detectChanges(); + instance.one.set(''); + instance.two.set(''); + instance.three.set(''); + instance.four.set(''); + instance.five.set(''); + instance.six.set(''); + instance.seven.set(''); + instance.eight.set(''); + instance.nine.set(''); + instance.self.set(''); + await fixture.whenStable(); expect(divs[0].style.getPropertyValue('content')).toBe('"abcdefghij"'); expect(divs[1].style.getPropertyValue('content')).toBe('"abcdefghi"'); @@ -1203,19 +1302,17 @@ describe('styling', () => { expect(divs[9].style.getPropertyValue('content')).toBeFalsy(); }); - it('should support interpolations inside a class binding when other classes are present', () => { + it('should support interpolations inside a class binding when other classes are present', async () => { @Component({ - template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, + template: '
    ', }) class Cmp { - one = 'one'; - two = 'two'; + one = signal('one'); + two = signal('two'); } const fixture = TestBed.createComponent(Cmp); - fixture.detectChanges(); + await fixture.whenStable(); const classList = fixture.nativeElement.querySelector('div').classList; expect(classList).toContain('zero'); @@ -1223,8 +1320,9 @@ describe('styling', () => { expect(classList).toContain('two'); expect(classList).toContain('three'); - fixture.componentInstance.one = fixture.componentInstance.two = ''; - fixture.detectChanges(); + fixture.componentInstance.one.set(''); + fixture.componentInstance.two.set(''); + await fixture.whenStable(); expect(classList).toContain('zero'); expect(classList).toContain('i-'); @@ -1233,49 +1331,53 @@ describe('styling', () => { expect(classList).not.toContain('two'); }); - it('should support interpolations inside a style property binding', () => { + it('should support interpolations inside a style property binding', async () => { @Component({ template: `
    +
    -
    -
    -
    -
    -
    -
    -
    +
    +
    +
    +
    +
    +
    `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - singleBinding: string | null = '1337px'; - one = 1; - two = 2; - three = 3; - four = 4; - five = 5; - six = 6; - seven = 7; - eight = 8; - nine = 9; + singleBinding = signal('1337px'); + one = signal(1); + two = signal(2); + three = signal(3); + four = signal(4); + five = signal(5); + six = signal(6); + seven = signal(7); + eight = signal(8); + nine = signal(9); } const fixture = TestBed.createComponent(Cmp); const instance = fixture.componentInstance; - fixture.detectChanges(); + await fixture.whenStable(); const divs: NodeListOf = fixture.nativeElement.querySelectorAll('div'); @@ -1290,18 +1392,17 @@ describe('styling', () => { expect(divs[8].style.fontFamily).toBe('f1'); expect(divs[9].style.width).toBe('1337px'); - instance.singleBinding = null; - instance.one = - instance.two = - instance.three = - instance.four = - instance.five = - instance.six = - instance.seven = - instance.eight = - instance.nine = - 1; - fixture.detectChanges(); + instance.singleBinding.set(null); + instance.one.set(1); + instance.two.set(1); + instance.three.set(1); + instance.four.set(1); + instance.five.set(1); + instance.six.set(1); + instance.seven.set(1); + instance.eight.set(1); + instance.nine.set(1); + await fixture.whenStable(); expect(divs[0].style.fontFamily).toBe('f111111111'); expect(divs[1].style.fontFamily).toBe('f11111111'); @@ -1315,31 +1416,29 @@ describe('styling', () => { expect(divs[9].style.width).toBeFalsy(); }); - it('should support interpolations when a style property has a unit suffix', () => { + it('should support interpolations when a style property has a unit suffix', async () => { @Component({ - template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, + template: '
    ', }) class Cmp { - one = 1; - three = 3; + one = signal(1); + three = signal(3); } const fixture = TestBed.createComponent(Cmp); - fixture.detectChanges(); + await fixture.whenStable(); const div = fixture.nativeElement.querySelector('div'); expect(div.style.width).toBe('1337px'); - fixture.componentInstance.one = 2; - fixture.componentInstance.three = 6; - fixture.detectChanges(); + fixture.componentInstance.one.set(2); + fixture.componentInstance.three.set(6); + await fixture.whenStable(); expect(div.style.width).toBe('2667px'); }); - it('should not write to a `class` input binding in the event that there is no static class value', () => { + it('should not write to a `class` input binding in the event that there is no static class value', async () => { let capturedClassBindingCount = 0; let capturedClassBindingValue: string | null | undefined = undefined; let capturedMyClassBindingCount = 0; @@ -1363,42 +1462,40 @@ describe('styling', () => { } @Component({ - template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, + template: '
    ', imports: [MyClassDir], }) class Cmp { - c: any = null; + c = signal(null); x = 'foo'; } const fixture = TestBed.createComponent(Cmp); - fixture.detectChanges(); + await fixture.whenStable(); expect(capturedClassBindingCount).toEqual(1); expect(capturedClassBindingValue as any).toEqual(null); expect(capturedMyClassBindingCount).toEqual(1); expect(capturedMyClassBindingValue!).toEqual('foo'); - fixture.componentInstance.c = 'dynamic-value'; - fixture.detectChanges(); + fixture.componentInstance.c.set('dynamic-value'); + await fixture.whenStable(); expect(capturedClassBindingCount).toEqual(2); expect(capturedClassBindingValue!).toEqual('dynamic-value'); expect(capturedMyClassBindingCount).toEqual(1); expect(capturedMyClassBindingValue!).toEqual('foo'); - fixture.componentInstance.c = null; - fixture.detectChanges(); + fixture.componentInstance.c.set(null); + await fixture.whenStable(); expect(capturedClassBindingCount).toEqual(3); expect(capturedClassBindingValue as any).toEqual(null); expect(capturedMyClassBindingCount).toEqual(1); expect(capturedMyClassBindingValue!).toEqual('foo'); - fixture.componentInstance.c = ''; - fixture.detectChanges(); + fixture.componentInstance.c.set(''); + await fixture.whenStable(); expect(capturedClassBindingCount).toEqual(4); expect(capturedClassBindingValue as any).toEqual(''); @@ -1406,7 +1503,7 @@ describe('styling', () => { expect(capturedMyClassBindingValue!).toEqual('foo'); }); - it('should write to [class] binding during `update` mode if there is an instantiation-level value', () => { + it('should write to [class] binding during `update` mode if there is an instantiation-level value', async () => { let capturedClassBindingCount = 0; let capturedClassBindingValue: string | null | undefined = undefined; @@ -1422,24 +1519,22 @@ describe('styling', () => { } @Component({ - template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, + template: '
    ', imports: [MyClassDir], }) class Cmp { - c: any = 'bar'; + c = signal('bar'); } const fixture = TestBed.createComponent(Cmp); expect(capturedClassBindingCount).toEqual(0); - fixture.detectChanges(); + await fixture.whenStable(); expect(capturedClassBindingCount).toEqual(1); expect(capturedClassBindingValue as any).toEqual('bar'); - fixture.componentInstance.c = 'dynamic-bar'; - fixture.detectChanges(); + fixture.componentInstance.c.set('dynamic-bar'); + await fixture.whenStable(); expect(capturedClassBindingCount).toEqual(2); expect(capturedClassBindingValue!).toEqual('dynamic-bar'); @@ -1525,7 +1620,7 @@ describe('styling', () => { expect(fixture.debugElement.nativeElement.firstChild.innerHTML).toBe('static my-className'); }); - it('should write to a `class` input binding if there is a static class value and there is a binding value', () => { + it('should write to a `class` input binding if there is a static class value and there is a binding value', async () => { let capturedClassBindingCount = 0; let capturedClassBindingValue: string | null = null; let capturedMyClassBindingCount = 0; @@ -1549,17 +1644,16 @@ describe('styling', () => { } @Component({ - template: '
    ', + template: '
    ', imports: [MyClassDir], - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - c: any = null; + c = signal(null); x: any = 'foo'; } const fixture = TestBed.createComponent(Cmp); - fixture.detectChanges(); + await fixture.whenStable(); expect(capturedClassBindingCount).toEqual( 2, @@ -1578,8 +1672,8 @@ describe('styling', () => { expect(capturedMyClassBindingValue!).toEqual('foo'); capturedClassBindingCount = 0; - fixture.componentInstance.c = 'dynamic-val'; - fixture.detectChanges(); + fixture.componentInstance.c.set('dynamic-val'); + await fixture.whenStable(); expect(capturedClassBindingCount).toEqual(1); expect(capturedClassBindingValue!).toEqual('static-val dynamic-val'); @@ -1617,6 +1711,33 @@ describe('styling', () => { expect(element.classList.contains('dir-two')).toBeTruthy(); }); + it('should support class bindings with dots in the class name', () => { + @Directive({ + selector: '[dir]', + host: {'[class.py-2.5]': 'exp'}, + }) + class Dir { + exp = true; + } + + @Component({ + template: `
    `, + imports: [Dir], + }) + class Cmp { + exp = true; + } + + const fixture = TestBed.createComponent(Cmp); + fixture.detectChanges(); + + const element = fixture.nativeElement.querySelector('div'); + expect(element.classList.contains('px-3.5')).toBeTrue(); + expect(element.classList.contains('py-2.5')).toBeTrue(); + expect(element.classList.contains('px-3')).toBeFalse(); + expect(element.classList.contains('py-2')).toBeFalse(); + }); + it('should not write empty style values to the DOM', () => { @Component({ template: ` @@ -1641,7 +1762,7 @@ describe('styling', () => { // so it would overwrite information about other directives nearby. This test checks // that TestDir's injector is not overwritten by NgClass, so TestDir should still // be found by DI when ChildDir is instantiated. - it('should not overwrite other directive info when using NgClass', () => { + it('should not overwrite other directive info when using NgClass', async () => { @Directive({ selector: '[test-dir]', }) @@ -1655,30 +1776,27 @@ describe('styling', () => { } @Component({ - selector: 'app', imports: [NgClass, NgIf, ChildDir, TestDir], template: ` -
    -
    Hello
    +
    +
    Hello
    `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class AppComponent { - classMap = {'with-button': true}; - showing = false; + classMap = signal({'with-button': true}); + showing = signal(false); } const fixture = TestBed.createComponent(AppComponent); - fixture.detectChanges(); + await fixture.whenStable(); const testDirDiv = fixture.debugElement.nativeElement.querySelector('div'); expect(testDirDiv.classList).toContain('with-button'); expect(fixture.debugElement.nativeElement.textContent).not.toContain('Hello'); - fixture.componentInstance.classMap = {'with-button': false}; - fixture.componentInstance.showing = true; - fixture.detectChanges(); + fixture.componentInstance.classMap.set({'with-button': false}); + fixture.componentInstance.showing.set(true); + await fixture.whenStable(); const childDir = fixture.debugElement.query(By.directive(ChildDir)).injector.get(ChildDir); expect(childDir.parent).toBeInstanceOf(TestDir); @@ -1731,31 +1849,29 @@ describe('styling', () => { expect(classList.contains('two')).toBe(true); }); - it('should apply single property styles/classes to the element and default to any static styling values', () => { + it('should apply single property styles/classes to the element and default to any static styling values', async () => { @Component({ template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - w: string | null | undefined = '100px'; - h: string | null | undefined = '100px'; - o: string | null | undefined = '0.5'; - abc = true; - xyz = false; + w = signal('100px'); + h = signal('100px'); + o = signal('0.5'); + abc = signal(true); + xyz = signal(false); } const fixture = TestBed.createComponent(Cmp); - fixture.detectChanges(); + await fixture.whenStable(); const element = fixture.nativeElement.querySelector('div'); expect(element.style.width).toEqual('100px'); @@ -1764,12 +1880,12 @@ describe('styling', () => { expect(element.classList.contains('abc')).toBeTruthy(); expect(element.classList.contains('xyz')).toBeFalsy(); - fixture.componentInstance.w = undefined; - fixture.componentInstance.h = undefined; - fixture.componentInstance.o = undefined; - fixture.componentInstance.abc = false; - fixture.componentInstance.xyz = true; - fixture.detectChanges(); + fixture.componentInstance.w.set(undefined); + fixture.componentInstance.h.set(undefined); + fixture.componentInstance.o.set(undefined); + fixture.componentInstance.abc.set(false); + fixture.componentInstance.xyz.set(true); + await fixture.whenStable(); expect(element.style.width).toEqual('200px'); expect(element.style.height).toEqual('200px'); @@ -1777,21 +1893,22 @@ describe('styling', () => { expect(element.classList.contains('abc')).toBeFalsy(); expect(element.classList.contains('xyz')).toBeTruthy(); - fixture.componentInstance.w = null; - fixture.componentInstance.h = null; - fixture.componentInstance.o = null; - fixture.detectChanges(); + fixture.componentInstance.w.set(null); + fixture.componentInstance.h.set(null); + fixture.componentInstance.o.set(null); + await fixture.whenStable(); expect(element.style.width).toBeFalsy(); expect(element.style.height).toBeFalsy(); expect(element.style.opacity).toBeFalsy(); }); - it('should apply single style/class across the template and directive host bindings', () => { + it('should apply single style/class across the template and directive host bindings', async () => { @Directive({ selector: '[dir-that-sets-width]', }) class DirThatSetsWidthDirective { - @Input('dir-that-sets-width') @HostBinding('style.width') public width: string = ''; + @Input('dir-that-sets-width') @HostBinding('style.width') public width: + string | null | undefined = ''; } @Directive({ @@ -1799,92 +1916,97 @@ describe('styling', () => { host: {'[style.width]': 'width'}, }) class AnotherDirThatSetsWidthDirective { - @Input('another-dir-that-sets-width') public width: string = ''; + @Input('another-dir-that-sets-width') public width: string | null | undefined = ''; } @Component({ template: ` -
    +
    `, - - changeDetection: ChangeDetectionStrategy.Eager, imports: [DirThatSetsWidthDirective, AnotherDirThatSetsWidthDirective], }) class Cmp { - w0: string | null | undefined = null; - w1: string | null | undefined = null; - w2: string | null | undefined = null; + w0 = signal(null); + w1 = signal(null); + w2 = signal(null); } const fixture = TestBed.createComponent(Cmp); - fixture.componentInstance.w0 = '100px'; - fixture.componentInstance.w1 = '200px'; - fixture.componentInstance.w2 = '300px'; - fixture.detectChanges(); + fixture.componentInstance.w0.set('100px'); + fixture.componentInstance.w1.set('200px'); + fixture.componentInstance.w2.set('300px'); + await fixture.whenStable(); const element = fixture.nativeElement.querySelector('div'); expect(element.style.width).toEqual('100px'); - fixture.componentInstance.w0 = undefined; - fixture.detectChanges(); + fixture.componentInstance.w0.set(undefined); + await fixture.whenStable(); expect(element.style.width).toEqual('300px'); - fixture.componentInstance.w2 = undefined; - fixture.detectChanges(); + fixture.componentInstance.w2.set(undefined); + await fixture.whenStable(); expect(element.style.width).toEqual('200px'); - fixture.componentInstance.w1 = undefined; - fixture.detectChanges(); + fixture.componentInstance.w1.set(undefined); + await fixture.whenStable(); expect(element.style.width).toBeFalsy(); - fixture.componentInstance.w2 = '400px'; - fixture.detectChanges(); + fixture.componentInstance.w2.set('400px'); + await fixture.whenStable(); expect(element.style.width).toEqual('400px'); - fixture.componentInstance.w1 = '500px'; - fixture.componentInstance.w0 = '600px'; - fixture.detectChanges(); + fixture.componentInstance.w1.set('500px'); + fixture.componentInstance.w0.set('600px'); + await fixture.whenStable(); expect(element.style.width).toEqual('600px'); }); - it('should only run stylingFlush once when there are no collisions between styling properties', () => { + it('should only run stylingFlush once when there are no collisions between styling properties', async () => { @Directive({ selector: '[dir-with-styling]', + host: {'[style.font-size]': 'fontSize()'}, }) class DirWithStyling { - @HostBinding('style.font-size') public fontSize = '100px'; + public fontSize = signal('100px'); } @Component({ selector: 'comp-with-styling', - changeDetection: ChangeDetectionStrategy.Eager, + template: '', + host: { + '[style.width]': 'width()', + '[style.height]': 'height()', + }, }) class CompWithStyling { - @HostBinding('style.width') public width = '900px'; - - @HostBinding('style.height') public height = '900px'; + public width = signal('900px'); + public height = signal('900px'); } @Component({ template: ` - ... + ... `, imports: [DirWithStyling, CompWithStyling], - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - opacity: string | null = '0.5'; + opacity = signal('0.5'); @ViewChild(CompWithStyling, {static: true}) compWithStyling: CompWithStyling | null = null; @ViewChild(DirWithStyling, {static: true}) dirWithStyling: DirWithStyling | null = null; } const fixture = TestBed.createComponent(Cmp); - fixture.detectChanges(); + await fixture.whenStable(); const component = fixture.componentInstance; const element = fixture.nativeElement.querySelector('comp-with-styling'); @@ -1894,11 +2016,11 @@ describe('styling', () => { expect(element.style.height).toEqual('900px'); expect(element.style.fontSize).toEqual('100px'); - component.opacity = '0.6'; - component.compWithStyling!.height = '100px'; - component.compWithStyling!.width = '100px'; - component.dirWithStyling!.fontSize = '50px'; - fixture.detectChanges(); + component.opacity.set('0.6'); + component.compWithStyling!.height.set('100px'); + component.compWithStyling!.width.set('100px'); + component.dirWithStyling!.fontSize.set('50px'); + await fixture.whenStable(); expect(element.style.opacity).toEqual('0.6'); expect(element.style.width).toEqual('100px'); @@ -1906,7 +2028,7 @@ describe('styling', () => { expect(element.style.fontSize).toEqual('50px'); }); - it('should combine all styling across the template, directive and component host bindings', () => { + it('should combine all styling across the template, directive and component host bindings', async () => { @Directive({ selector: '[dir-with-styling]', }) @@ -1919,9 +2041,8 @@ describe('styling', () => { } @Component({ + template: '', selector: 'comp-with-styling', - - changeDetection: ChangeDetectionStrategy.Eager, }) class CompWithStyling { @HostBinding('style.width') public width = '900px'; @@ -1934,24 +2055,23 @@ describe('styling', () => { @Component({ template: ` ... `, imports: [DirWithStyling, CompWithStyling], - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - opacity: string | null | undefined = '0.5'; - width: string | null | undefined = 'auto'; - tplClass = true; + opacity = signal('0.5'); + width = signal('auto'); + tplClass = signal(true); } const fixture = TestBed.createComponent(Cmp); - fixture.detectChanges(); + await fixture.whenStable(); const element = fixture.nativeElement.querySelector('comp-with-styling'); @@ -1968,10 +2088,10 @@ describe('styling', () => { 'tpl': true, }); - fixture.componentInstance.width = undefined; - fixture.componentInstance.opacity = undefined; - fixture.componentInstance.tplClass = false; - fixture.detectChanges(); + fixture.componentInstance.width.set(undefined); + fixture.componentInstance.opacity.set(undefined); + fixture.componentInstance.tplClass.set(false); + await fixture.whenStable(); expectStyle(element).toEqual({ 'color': 'red', @@ -1984,14 +2104,14 @@ describe('styling', () => { 'comp': true, }); - fixture.componentInstance.width = null; - fixture.componentInstance.opacity = null; - fixture.detectChanges(); + fixture.componentInstance.width.set(null); + fixture.componentInstance.opacity.set(null); + await fixture.whenStable(); expectStyle(element).toEqual({'color': 'red', 'height': '900px', 'font-size': '100px'}); }); - it('should properly apply styling across sub and super class directive host bindings', () => { + it('should properly apply styling across sub and super class directive host bindings', async () => { @Directive({ selector: '[super-class-dir]', }) @@ -2001,23 +2121,22 @@ describe('styling', () => { @Component({ selector: '[sub-class-dir]', - changeDetection: ChangeDetectionStrategy.Eager, + template: '', }) class SubClassDirective extends SuperClassDirective { @HostBinding('style.width') public w2 = '200px'; } @Component({ - template: `
    `, + template: `
    `, imports: [SubClassDirective], - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - w3: string | null | undefined = '300px'; + w3 = signal('300px'); } const fixture = TestBed.createComponent(Cmp); - fixture.detectChanges(); + await fixture.whenStable(); const element = fixture.nativeElement.querySelector('div'); @@ -2025,46 +2144,46 @@ describe('styling', () => { 'width': '300px', }); - fixture.componentInstance.w3 = null; - fixture.detectChanges(); + fixture.componentInstance.w3.set(null); + await fixture.whenStable(); expectStyle(element).toEqual({}); - fixture.componentInstance.w3 = undefined; - fixture.detectChanges(); + fixture.componentInstance.w3.set(undefined); + await fixture.whenStable(); expectStyle(element).toEqual({ 'width': '200px', }); }); - it('should apply map-based style and class entries', () => { + it('should apply map-based style and class entries', async () => { @Component({ - template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, + template: '
    ', }) class Cmp { - public c: {[key: string]: any} | null = null; + public c = signal<{[key: string]: any} | null>(null); updateClasses(classes: string) { - const c = this.c || (this.c = {}); - Object.keys(this.c).forEach((className) => { + const c = {...(this.c() || {})}; + Object.keys(c).forEach((className) => { c[className] = false; }); classes.split(/\s+/).forEach((className) => { c[className] = true; }); + this.c.set(c); } - public s: {[key: string]: any} | null = null; + public s = signal<{[key: string]: any} | null>(null); updateStyles(prop: string, value: string | number | null) { - const s = this.s || (this.s = {}); + const s = {...(this.s() || {})}; Object.assign(s, {[prop]: value}); + this.s.set(s); } reset() { - this.s = null; - this.c = null; + this.s.set(null); + this.c.set(null); } } @@ -2073,7 +2192,7 @@ describe('styling', () => { comp.updateStyles('width', '100px'); comp.updateStyles('height', '200px'); comp.updateClasses('abc'); - fixture.detectChanges(); + await fixture.whenStable(); const element = fixture.nativeElement.querySelector('div'); expectStyle(element).toEqual({width: '100px', height: '200px'}); @@ -2083,45 +2202,45 @@ describe('styling', () => { comp.updateStyles('width', '500px'); comp.updateStyles('height', null); comp.updateClasses('def'); - fixture.detectChanges(); + await fixture.whenStable(); expectStyle(element).toEqual({width: '500px'}); expectClass(element).toEqual({def: true}); }); - it('should resolve styling collisions across templates, directives and components for prop and map-based entries', () => { + it('should resolve styling collisions across templates, directives and components for prop and map-based entries', async () => { @Directive({ selector: '[dir-that-sets-styling]', + host: {'[style]': 'map()'}, }) class DirThatSetsStyling { - @HostBinding('style') public map: any = {color: 'red', width: '777px'}; + public map = signal({color: 'red', width: '777px'}); } @Component({ template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, imports: [DirThatSetsStyling], }) class Cmp { - map: any = {width: '111px', opacity: '0.5'}; - width: string | null | undefined = '555px'; + map = signal({width: '111px', opacity: '0.5'}); + width = signal('555px'); + xyz = false; @ViewChild('dir', {read: DirThatSetsStyling, static: true}) dir!: DirThatSetsStyling; } const fixture = TestBed.createComponent(Cmp); const comp = fixture.componentInstance; - fixture.detectChanges(); + await fixture.whenStable(); const element = fixture.nativeElement.querySelector('div'); expectStyle(element).toEqual({ @@ -2131,8 +2250,8 @@ describe('styling', () => { 'opacity': '0.5', }); - comp.width = undefined; - fixture.detectChanges(); + comp.width.set(undefined); + await fixture.whenStable(); expectStyle(element).toEqual({ 'width': '111px', @@ -2141,8 +2260,8 @@ describe('styling', () => { 'opacity': '0.5', }); - comp.map = null; - fixture.detectChanges(); + comp.map.set(null); + await fixture.whenStable(); expectStyle(element).toEqual({ 'width': '200px', @@ -2150,8 +2269,8 @@ describe('styling', () => { 'font-size': '99px', }); - comp.dir.map = null; - fixture.detectChanges(); + comp.dir.map.set(null); + await fixture.whenStable(); expectStyle(element).toEqual({ 'width': '200px', @@ -2159,34 +2278,34 @@ describe('styling', () => { }); }); - it('should only apply each styling property once per CD across templates, components, directives', () => { + it('should only apply each styling property once per CD across templates, components, directives', async () => { @Directive({ selector: '[dir-that-sets-styling]', - host: {'style': 'width:0px; height:0px'}, + host: { + 'style': 'width:0px; height:0px', + '[style]': 'map()', + }, }) class DirThatSetsStyling { - @HostBinding('style') public map: any = {width: '999px', height: '999px'}; + public map = signal({width: '999px', height: '999px'}); } @Component({ template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, imports: [DirThatSetsStyling], }) class Cmp { - width: string | null | undefined = '111px'; - height: string | null | undefined = '111px'; - - map: any = {width: '555px', height: '555px'}; + width = signal('111px'); + height = signal('111px'); + map = signal({width: '555px', height: '555px'}); @ViewChild('dir', {read: DirThatSetsStyling, static: true}) dir!: DirThatSetsStyling; } @@ -2194,66 +2313,66 @@ describe('styling', () => { const fixture = TestBed.createComponent(Cmp); const comp = fixture.componentInstance; - fixture.detectChanges(); + await fixture.whenStable(); const element = fixture.nativeElement.querySelector('div'); assertStyle(element, 'width', '111px'); assertStyle(element, 'height', '111px'); - comp.width = '222px'; - fixture.detectChanges(); + comp.width.set('222px'); + await fixture.whenStable(); assertStyle(element, 'width', '222px'); assertStyle(element, 'height', '111px'); - comp.height = '222px'; - fixture.detectChanges(); + comp.height.set('222px'); + await fixture.whenStable(); assertStyle(element, 'width', '222px'); assertStyle(element, 'height', '222px'); - comp.width = undefined; - fixture.detectChanges(); + comp.width.set(undefined); + await fixture.whenStable(); assertStyle(element, 'width', '555px'); assertStyle(element, 'height', '222px'); - comp.width = '123px'; - comp.height = '123px'; - fixture.detectChanges(); + comp.width.set('123px'); + comp.height.set('123px'); + await fixture.whenStable(); assertStyle(element, 'width', '123px'); assertStyle(element, 'height', '123px'); - comp.map = {}; - fixture.detectChanges(); + comp.map.set({}); + await fixture.whenStable(); // No change, hence no write assertStyle(element, 'width', '123px'); assertStyle(element, 'height', '123px'); - comp.width = undefined; - fixture.detectChanges(); + comp.width.set(undefined); + await fixture.whenStable(); assertStyle(element, 'width', '999px'); assertStyle(element, 'height', '123px'); - comp.dir.map = null; - fixture.detectChanges(); + comp.dir.map.set(null); + await fixture.whenStable(); // the width is only applied once assertStyle(element, 'width', '0px'); assertStyle(element, 'height', '123px'); - comp.dir.map = {width: '1000px', height: '1100px', color: 'red'}; - fixture.detectChanges(); + comp.dir.map.set({width: '1000px', height: '1100px', color: 'red'}); + await fixture.whenStable(); assertStyle(element, 'width', '1000px'); assertStyle(element, 'height', '123px'); assertStyle(element, 'color', 'red'); - comp.height = undefined; - fixture.detectChanges(); + comp.height.set(undefined); + await fixture.whenStable(); // height gets applied twice and all other // values get applied @@ -2261,16 +2380,16 @@ describe('styling', () => { assertStyle(element, 'height', '1100px'); assertStyle(element, 'color', 'red'); - comp.map = {color: 'blue', width: '2000px', opacity: '0.5'}; - fixture.detectChanges(); + comp.map.set({color: 'blue', width: '2000px', opacity: '0.5'}); + await fixture.whenStable(); assertStyle(element, 'width', '2000px'); assertStyle(element, 'height', '1100px'); assertStyle(element, 'color', 'blue'); assertStyle(element, 'opacity', '0.5'); - comp.map = {color: 'blue', width: '2000px'}; - fixture.detectChanges(); + comp.map.set({color: 'blue', width: '2000px'}); + await fixture.whenStable(); // all four are applied because the map was altered assertStyle(element, 'width', '2000px'); @@ -2279,99 +2398,93 @@ describe('styling', () => { assertStyle(element, 'opacity', ''); }); - it('should not sanitize style values before writing them', () => { + it('should not sanitize style values before writing them', async () => { @Component({ - template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, + template: `
    `, }) class Cmp { - widthExp = ''; - bgImageExp = ''; + widthExp = signal(''); + bgImageExp = signal(''); } const fixture = TestBed.createComponent(Cmp); const comp = fixture.componentInstance; - fixture.detectChanges(); + await fixture.whenStable(); const div = fixture.nativeElement.querySelector('div'); - comp.bgImageExp = 'url("javascript:img")'; - fixture.detectChanges(); + comp.bgImageExp.set('url("javascript:img")'); + await fixture.whenStable(); expect(getSortedStyle(div)).toContain('javascript:img'); // Prove that bindings work. - comp.widthExp = '789px'; - comp.bgImageExp = bypassSanitizationTrustStyle(comp.bgImageExp) as string; - fixture.detectChanges(); + comp.widthExp.set('789px'); + comp.bgImageExp.set(bypassSanitizationTrustStyle(comp.bgImageExp()) as string); + await fixture.whenStable(); expect(div.style.getPropertyValue('background-image')).toEqual('url("javascript:img")'); expect(div.style.getPropertyValue('width')).toEqual('789px'); }); - it('should not sanitize style values before writing them with styleMap', () => { + it('should not sanitize style values before writing them with styleMap', async () => { @Component({ - template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, + template: `
    `, }) class Cmp { - widthExp = ''; - styleMapExp: {[key: string]: any} = {}; + widthExp = signal(''); + styleMapExp = signal<{[key: string]: any}>({}); } const fixture = TestBed.createComponent(Cmp); const comp = fixture.componentInstance; - fixture.detectChanges(); + await fixture.whenStable(); const div = fixture.nativeElement.querySelector('div'); - comp.styleMapExp['background-image'] = 'url("javascript:img")'; - fixture.detectChanges(); - expect(getSortedStyle(div)).not.toContain('javascript'); + comp.styleMapExp.set({'background-image': 'url("javascript:img")'}); + await fixture.whenStable(); + expect(getSortedStyle(div)).toContain('javascript:img'); // Prove that bindings work. - comp.widthExp = '789px'; - comp.styleMapExp = { - 'background-image': bypassSanitizationTrustStyle(comp.styleMapExp['background-image']), - }; - fixture.detectChanges(); + comp.widthExp.set('789px'); + comp.styleMapExp.set({ + 'background-image': bypassSanitizationTrustStyle(comp.styleMapExp()['background-image']), + }); + await fixture.whenStable(); expect(div.style.getPropertyValue('background-image')).toEqual('url("javascript:img")'); expect(div.style.getPropertyValue('width')).toEqual('789px'); }); - it('should apply a unit to a style before writing it', () => { + it('should apply a unit to a style before writing it', async () => { @Component({ - template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, + template: `
    `, }) class Cmp { - widthExp: string | number | null = ''; - heightExp: string | number | null = ''; + widthExp = signal(''); + heightExp = signal(''); } const fixture = TestBed.createComponent(Cmp); const comp = fixture.componentInstance; - fixture.detectChanges(); + await fixture.whenStable(); const div = fixture.nativeElement.querySelector('div'); - comp.widthExp = '200'; - comp.heightExp = 10; - fixture.detectChanges(); + comp.widthExp.set('200'); + comp.heightExp.set(10); + await fixture.whenStable(); expect(getSortedStyle(div)).toEqual('height: 10em; width: 200px;'); - comp.widthExp = 0; - comp.heightExp = null; - fixture.detectChanges(); + comp.widthExp.set(0); + comp.heightExp.set(null); + await fixture.whenStable(); expect(getSortedStyle(div)).toEqual('width: 0px;'); }); - it('should handle values wrapped into SafeValue', () => { + it('should handle values wrapped into SafeValue', async () => { @Component({ template: ` @@ -2383,36 +2496,34 @@ describe('styling', () => { `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class MyComp { constructor(private sanitizer: DomSanitizer) {} - public width: string = 'calc(20%)'; - public height: string = '10px'; - public background: string = '1.png'; - public color: string = 'red'; + public width = signal('calc(20%)'); + public height = signal('10px'); + public background = signal('1.png'); + public color = signal('red'); private getSafeStyle(value: string) { return this.sanitizer.bypassSecurityTrustStyle(value); } getBackgroundSafe() { - return this.getSafeStyle(`url("/${this.background}")`); + return this.getSafeStyle(`url("/${this.background()}")`); } getWidthSafe() { - return this.getSafeStyle(this.width); + return this.getSafeStyle(this.width()); } getHeightSafe() { - return this.getSafeStyle(this.height); + return this.getSafeStyle(this.height()); } getColorUnsafe() { - return this.color; + return this.color(); } } const fixture = TestBed.createComponent(MyComp); - fixture.detectChanges(); + await fixture.whenStable(); const comp = fixture.componentInstance; const div = fixture.nativeElement.querySelector('div'); @@ -2424,12 +2535,12 @@ describe('styling', () => { expect(p.style.height).toBe('10px'); expect(span.style.color).toBe('red'); - comp.background = '2.png'; - comp.width = '5px'; - comp.height = '100%'; - comp.color = 'green'; + comp.background.set('2.png'); + comp.width.set('5px'); + comp.height.set('100%'); + comp.color.set('green'); - fixture.detectChanges(); + await fixture.whenStable(); expect(div.style.background).toContain('url("/2.png")'); expect(p.style.width).toBe('5px'); @@ -2474,23 +2585,22 @@ describe('styling', () => { }); }); - it('should evaluate initial style/class values on a list of elements that changes', () => { + it('should evaluate initial style/class values on a list of elements that changes', async () => { @Component({ template: ` -
    +
    {{ item }}
    `, imports: [NgFor], - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - items = [1, 2, 3]; + items = signal([1, 2, 3]); } const fixture = TestBed.createComponent(Cmp); const comp = fixture.componentInstance; - fixture.detectChanges(); + await fixture.whenStable(); function getItemElements(): HTMLElement[] { return [].slice.call(fixture.nativeElement.querySelectorAll('div')); @@ -2514,8 +2624,8 @@ describe('styling', () => { 'item-3', ]); - comp.items = [2, 4, 6, 8]; - fixture.detectChanges(); + comp.items.set([2, 4, 6, 8]); + await fixture.whenStable(); expect(getItemElements().length).toEqual(4); expect(getItemClasses()).toEqual([ @@ -2651,7 +2761,7 @@ describe('styling', () => { expect(divC.style.color).toEqual('red'); }); - it('should evaluate styling across the template and directives within embedded views', () => { + it('should evaluate styling across the template and directives within embedded views', async () => { @Directive({ selector: '[some-dir-with-styling]', }) @@ -2677,21 +2787,17 @@ describe('styling', () => {

    `, - - changeDetection: ChangeDetectionStrategy.Eager, imports: [NgFor, SomeDirWithStyling], }) class Cmp { - items: any[] = []; + items = [1, 2, 3, 4]; c = 'red'; w = 100; h = 100; } const fixture = TestBed.createComponent(Cmp); - const comp = fixture.componentInstance; - comp.items = [1, 2, 3, 4]; - fixture.detectChanges(); + await fixture.whenStable(); const items = fixture.nativeElement.querySelectorAll('.item'); expect(items.length).toEqual(4); @@ -2707,7 +2813,7 @@ describe('styling', () => { expect(p.style['height']).toEqual('100px'); }); - it("should flush bindings even if any styling hasn't changed in a previous directive", () => { + it("should flush bindings even if any styling hasn't changed in a previous directive", async () => { @Directive({ selector: '[one]', }) @@ -2718,16 +2824,18 @@ describe('styling', () => { @Directive({ selector: '[two]', + host: { + '[style.height]': 'h()', + '[style.color]': 'c()', + }, }) class DirTwo { - @HostBinding('style.height') h = '200px'; - @HostBinding('style.color') c = 'red'; + h = signal('200px'); + c = signal('red'); } @Component({ template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, imports: [DirOne, DirTwo], }) class Cmp { @@ -2737,7 +2845,7 @@ describe('styling', () => { const fixture = TestBed.createComponent(Cmp); const comp = fixture.componentInstance; - fixture.detectChanges(); + await fixture.whenStable(); const div = fixture.nativeElement.querySelector('div'); expect(div.style.opacity).toEqual('0.5'); @@ -2745,42 +2853,40 @@ describe('styling', () => { expect(div.style.width).toEqual('100px'); expect(div.style.height).toEqual('200px'); - comp.two.h = '300px'; - fixture.detectChanges(); + comp.two.h.set('300px'); + await fixture.whenStable(); expect(div.style.opacity).toEqual('0.5'); expect(div.style.color).toEqual('red'); expect(div.style.width).toEqual('100px'); expect(div.style.height).toEqual('300px'); }); - it('should work with NO_CHANGE values if they are applied to bindings ', () => { + it('should work with NO_CHANGE values if they are applied to bindings ', async () => { @Component({ - template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, + template: `
    `, }) class Cmp { - w: any = null; - h: any = null; - o: any = null; + w = signal(null); + h = signal(null); + o = signal(null); } const fixture = TestBed.createComponent(Cmp); const comp = fixture.componentInstance; - comp.w = '100px'; - comp.h = '200px'; - comp.o = '0.5'; - fixture.detectChanges(); + comp.w.set('100px'); + comp.h.set('200px'); + comp.o.set('0.5'); + await fixture.whenStable(); const div = fixture.nativeElement.querySelector('div'); expect(div.style.width).toEqual('100px'); expect(div.style.height).toEqual('200px'); expect(div.style.opacity).toEqual('0.5'); - comp.w = '500px'; - comp.o = '1'; - fixture.detectChanges(); + comp.w.set('500px'); + comp.o.set('1'); + await fixture.whenStable(); expect(div.style.width).toEqual('500px'); expect(div.style.height).toEqual('200px'); @@ -2806,29 +2912,28 @@ describe('styling', () => { expect(div.classList.contains('bar')).toBeTruthy(); }); - it('should allow to reset style property value defined using ngStyle', () => { + it('should allow to reset style property value defined using ngStyle', async () => { @Component({ - template: `
    `, + template: `
    `, imports: [NgStyle], - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - s: any = {opacity: '1'}; + s = signal({opacity: '1'}); clearStyle(): void { - this.s = null; + this.s.set(null); } } const fixture = TestBed.createComponent(Cmp); const comp = fixture.componentInstance; - fixture.detectChanges(); + await fixture.whenStable(); const div = fixture.nativeElement.querySelector('div'); expect(div.style.opacity).toEqual('1'); comp.clearStyle(); - fixture.detectChanges(); + await fixture.whenStable(); expect(div.style.opacity).toEqual(''); }); @@ -2836,14 +2941,14 @@ describe('styling', () => { it('should allow detectChanges to be run in a property change that causes additional styling to be rendered', () => { @Component({ selector: 'child', - template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, + template: `
    `, + host: { + '[class.ready-host]': 'readyHost()', + }, }) class ChildCmp { - readyTpl = false; - - @HostBinding('class.ready-host') readyHost = false; + readyTpl = signal(false); + readyHost = signal(false); } @Component({ @@ -2854,11 +2959,6 @@ describe('styling', () => {

    {{ prop }}

    `, - host: { - '[style.color]': 'color', - }, - - changeDetection: ChangeDetectionStrategy.Eager, }) class ParentCmp { private _prop = ''; @@ -2871,8 +2971,8 @@ describe('styling', () => { set prop(value: string) { this._prop = value; if (this.child && value === 'go') { - this.child.instance.readyHost = true; - this.child.instance.readyTpl = true; + this.child.instance.readyHost.set(true); + this.child.instance.readyTpl.set(true); this.child.changeDetectorRef.detectChanges(); } } @@ -2887,12 +2987,11 @@ describe('styling', () => { } @Component({ - template: ``, + template: ``, imports: [ParentCmp], - changeDetection: ChangeDetectionStrategy.Eager, }) class App { - prop = 'a'; + prop = signal('a'); } const fixture = TestBed.createComponent(App); @@ -2904,7 +3003,7 @@ describe('styling', () => { expect(readyHost).toBeFalsy(); expect(readyChild).toBeFalsy(); - fixture.componentInstance.prop = 'go'; + fixture.componentInstance.prop.set('go'); fixture.detectChanges(false); readyHost = fixture.nativeElement.querySelector('.ready-host'); @@ -2916,13 +3015,14 @@ describe('styling', () => { it('should allow detectChanges to be run in a hook that causes additional styling to be rendered', () => { @Component({ selector: 'child', - template: `
    `, - changeDetection: ChangeDetectionStrategy.Eager, + template: `
    `, + host: { + '[class.ready-host]': 'readyHost()', + }, }) class ChildCmp { - readyTpl = false; - - @HostBinding('class.ready-host') readyHost = false; + readyTpl = signal(false); + readyHost = signal(false); } @Component({ @@ -2930,13 +3030,11 @@ describe('styling', () => { template: `
    -

    {{ prop }}

    `, - changeDetection: ChangeDetectionStrategy.Eager, }) class ParentCmp { - updateChild = false; + @Input() updateChild = false; @ViewChild('template', {read: ViewContainerRef}) vcr: ViewContainerRef = null!; @@ -2944,8 +3042,8 @@ describe('styling', () => { ngDoCheck() { if (this.updateChild) { - this.child.instance.readyHost = true; - this.child.instance.readyTpl = true; + this.child.instance.readyHost.set(true); + this.child.instance.readyTpl.set(true); this.child.changeDetectorRef.detectChanges(); } } @@ -2956,12 +3054,11 @@ describe('styling', () => { } @Component({ - template: ``, + template: ``, imports: [ParentCmp], - changeDetection: ChangeDetectionStrategy.Eager, }) class App { - @ViewChild('parent', {static: true}) public parent: ParentCmp | null = null; + updateChild = signal(false); } const fixture = TestBed.createComponent(App); @@ -2972,8 +3069,7 @@ describe('styling', () => { expect(readyHost).toBeFalsy(); expect(readyChild).toBeFalsy(); - const parent = fixture.componentInstance.parent!; - parent.updateChild = true; + fixture.componentInstance.updateChild.set(true); fixture.detectChanges(false); readyHost = fixture.nativeElement.querySelector('.ready-host'); @@ -2982,7 +3078,7 @@ describe('styling', () => { expect(readyChild).toBeTruthy(); }); - it('should allow various duplicate properties to be defined in various styling maps within the template and directive styling bindings', () => { + it('should allow various duplicate properties to be defined in various styling maps within the template and directive styling bindings', async () => { @Directive({ selector: '[dir-with-styling]', }) @@ -2992,28 +3088,27 @@ describe('styling', () => { @Component({ template: ` -
    +
    `, imports: [DirectiveExpectingStyling], - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { h = '100px'; w = '100px'; - s1: any = {border: '10px solid black', width: '200px'}; - s2: any = {border: '10px solid red', width: '300px'}; + s1: any = signal({border: '10px solid black', width: '200px'}); + s2 = {border: '10px solid red', width: '300px'}; } const fixture = TestBed.createComponent(Cmp); - fixture.detectChanges(); + await fixture.whenStable(); const element = fixture.nativeElement.querySelector('div'); expect(element.style.border).toEqual('10px solid black'); expect(element.style.width).toEqual('100px'); expect(element.style.height).toEqual('100px'); - fixture.componentInstance.s1 = null; - fixture.detectChanges(); + fixture.componentInstance.s1.set(null); + await fixture.whenStable(); expect(element.style.border).toEqual('10px solid red'); expect(element.style.width).toEqual('100px'); @@ -3021,7 +3116,7 @@ describe('styling', () => { }); it('should retrieve styles set via Renderer2', () => { - let dirInstance: any; + let dirInstance!: Dir; @Directive({ selector: '[dir]', }) @@ -3102,8 +3197,6 @@ describe('styling', () => {
    `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class AppComponent { isDisabled = false; @@ -3133,8 +3226,6 @@ describe('styling', () => { @Component({ template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, imports: [StylesDirective], }) class AppComponent { @@ -3146,56 +3237,6 @@ describe('styling', () => { const div = fixture.nativeElement.querySelector('div'); expect(div.classList.contains('disabled')).toBe(false); - - // The issue we're testing for happens after the second change detection. - fixture.detectChanges(); - expect(div.classList.contains('disabled')).toBe(false); - }); - - it('should throw an error if a prop-based style/class binding value is changed during checkNoChanges', () => { - @Component({ - template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, - }) - class Cmp { - color = 'red'; - fooClass = true; - - ngAfterViewInit() { - this.color = 'blue'; - this.fooClass = false; - } - } - - const fixture = TestBed.createComponent(Cmp); - - expect(() => { - fixture.detectChanges(); - }).toThrowError(/ExpressionChangedAfterItHasBeenCheckedError/); - }); - - it('should throw an error if a map-based style/class binding value is changed during checkNoChanges', () => { - @Component({ - template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, - }) - class Cmp { - style: any = 'width: 100px'; - klass: any = 'foo'; - - ngAfterViewInit() { - this.style = 'height: 200px'; - this.klass = 'bar'; - } - } - - const fixture = TestBed.createComponent(Cmp); - - expect(() => { - fixture.detectChanges(); - }).toThrowError(/ExpressionChangedAfterItHasBeenCheckedError/); }); it('should properly merge class interpolation with class-based directives', () => { @@ -3263,19 +3304,17 @@ describe('styling', () => { expect(second).not.toContain('padding'); }); - it('should allow to reset style property value defined using [style.prop.px] binding', () => { + it('should allow to reset style property value defined using [style.prop.px] binding', async () => { @Component({ - template: '
    ', - - changeDetection: ChangeDetectionStrategy.Eager, + template: '
    ', }) class MyComp { - left = ''; + left = signal(''); } const fixture = TestBed.createComponent(MyComp); - fixture.detectChanges(); + await fixture.whenStable(); - const checks = [ + const checks: [string | null | undefined, string][] = [ ['15', '15px'], [undefined, ''], [null, ''], @@ -3283,38 +3322,36 @@ describe('styling', () => { ['0', '0px'], ]; const div = fixture.nativeElement.querySelector('div'); - checks.forEach((check: any[]) => { + for (const check of checks) { const [fieldValue, expectedValue] = check; - fixture.componentInstance.left = fieldValue; - fixture.detectChanges(); + fixture.componentInstance.left.set(fieldValue); + await fixture.whenStable(); expect(div.style.left).toBe(expectedValue); - }); + } }); - it('should retain classes added externally', () => { + it('should retain classes added externally', async () => { @Component({ - template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, + template: `
    `, }) class MyComp { - exp = ''; + exp = signal(''); } const fixture = TestBed.createComponent(MyComp); - fixture.detectChanges(); + await fixture.whenStable(); const div = fixture.nativeElement.querySelector('div')!; div.className += ' abc'; expect(splitSortJoin(div.className)).toEqual('abc'); - fixture.componentInstance.exp = '1 2 3'; - fixture.detectChanges(); + fixture.componentInstance.exp.set('1 2 3'); + await fixture.whenStable(); expect(splitSortJoin(div.className)).toEqual('1 2 3 abc'); - fixture.componentInstance.exp = '4 5 6 7'; - fixture.detectChanges(); + fixture.componentInstance.exp.set('4 5 6 7'); + await fixture.whenStable(); expect(splitSortJoin(div.className)).toEqual('4 5 6 7 abc'); @@ -3400,29 +3437,31 @@ describe('styling', () => { expect(div.getAttribute('data-foo')).toEqual('my-foo'); }); - it('should allow host styling on the root element with external styling', () => { + it('should allow host styling on the root element with external styling', async () => { @Component({ template: '...', - changeDetection: ChangeDetectionStrategy.Eager, + host: { + '[class]': 'classes()', + }, }) class MyComp { - @HostBinding('class') public classes = ''; + public classes = signal(''); } const fixture = TestBed.createComponent(MyComp); - fixture.detectChanges(); + await fixture.whenStable(); const root = fixture.nativeElement as HTMLElement; expect(root.className).toEqual(''); - fixture.componentInstance.classes = '1 2 3'; - fixture.detectChanges(); + fixture.componentInstance.classes.set('1 2 3'); + await fixture.whenStable(); expect(root.className.split(/\s+/).sort().join(' ')).toEqual('1 2 3'); root.classList.add('0'); expect(root.className.split(/\s+/).sort().join(' ')).toEqual('0 1 2 3'); - fixture.componentInstance.classes = '1 2 3 4'; - fixture.detectChanges(); + fixture.componentInstance.classes.set('1 2 3 4'); + await fixture.whenStable(); expect(root.className.split(/\s+/).sort().join(' ')).toEqual('0 1 2 3 4'); }); @@ -3440,74 +3479,77 @@ describe('styling', () => { expect(classList.contains('barFoo')).toBeTruthy(); }); - it('should convert camelCased style property names to snake-case', () => { + it('should convert camelCased style property names to snake-case', async () => { @Component({ - template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, + template: `
    `, }) class MyComp { - myStyles = {}; + myStyles = signal>({}); } const fixture = TestBed.createComponent(MyComp); - fixture.detectChanges(); + await fixture.whenStable(); const div = fixture.nativeElement.querySelector('div') as HTMLDivElement; - fixture.componentInstance.myStyles = {fontSize: '200px'}; - fixture.detectChanges(); + fixture.componentInstance.myStyles.set({fontSize: '200px'}); + await fixture.whenStable(); expect(div.style.getPropertyValue('font-size')).toEqual('200px'); }); it('should recover from an error thrown in styling bindings', () => { - let raiseWidthError = false; + const raiseWidthError = signal(false); @Component({ - template: `
    `, - - changeDetection: ChangeDetectionStrategy.Eager, + template: `
    `, }) class MyComp { - get myWidth() { - if (raiseWidthError) { + myWidth = computed(() => { + if (raiseWidthError()) { throw new Error('...'); } return '100px'; - } + }); } const fixture = TestBed.createComponent(MyComp); - raiseWidthError = true; + raiseWidthError.set(true); expect(() => fixture.detectChanges()).toThrow(); - raiseWidthError = false; + raiseWidthError.set(false); fixture.detectChanges(); const div = fixture.nativeElement.querySelector('div') as HTMLDivElement; expect(div.style.getPropertyValue('width')).toEqual('100px'); expect(div.style.getPropertyValue('height')).toEqual('200px'); }); - it('should prioritize host bindings for templates first, then directives and finally components', () => { + it('should prioritize host bindings for templates first, then directives and finally components', async () => { @Component({ selector: 'my-comp-with-styling', template: '', - changeDetection: ChangeDetectionStrategy.Eager, + host: { + '[style]': 'myStyles()', + '[style.height]': 'myHeight()', + }, }) class MyCompWithStyling { - @HostBinding('style') myStyles: any = {width: '300px'}; + myStyles = signal({width: '300px'}); - @HostBinding('style.height') myHeight: any = '305px'; + myHeight = signal('305px'); } @Directive({ selector: '[my-dir-with-styling]', + host: { + '[style]': 'myStyles()', + '[style.height]': 'myHeight()', + }, }) class MyDirWithStyling { - @HostBinding('style') myStyles: any = {width: '200px'}; + myStyles = signal({width: '200px'}); - @HostBinding('style.height') myHeight: any = '205px'; + myHeight = signal('205px'); } @Component({ @@ -3515,17 +3557,16 @@ describe('styling', () => { `, imports: [MyCompWithStyling, MyDirWithStyling], - changeDetection: ChangeDetectionStrategy.Eager, }) class MyComp { - myStyles: {width?: string} = {width: '100px'}; - myHeight: string | null | undefined = '100px'; + myStyles = signal<{width?: string}>({width: '100px'}); + myHeight = signal('100px'); @ViewChild(MyDirWithStyling) dir!: MyDirWithStyling; @ViewChild(MyCompWithStyling) comp!: MyCompWithStyling; @@ -3535,25 +3576,25 @@ describe('styling', () => { const comp = fixture.componentInstance; const elm = fixture.nativeElement.querySelector('my-comp-with-styling')!; - fixture.detectChanges(); + await fixture.whenStable(); expect(elm.style.width).toEqual('100px'); expect(elm.style.height).toEqual('100px'); - comp.myStyles = {}; - comp.myHeight = undefined; - fixture.detectChanges(); + comp.myStyles.set({}); + comp.myHeight.set(undefined); + await fixture.whenStable(); expect(elm.style.width).toEqual('2px'); expect(elm.style.height).toEqual('1px'); - comp.comp.myStyles = {}; - comp.comp.myHeight = undefined; - fixture.detectChanges(); + comp.comp.myStyles.set({}); + comp.comp.myHeight.set(undefined); + await fixture.whenStable(); expect(elm.style.width).toEqual('2px'); expect(elm.style.height).toEqual('1px'); - comp.dir.myStyles = {}; - comp.dir.myHeight = undefined; - fixture.detectChanges(); + comp.dir.myStyles.set({}); + comp.dir.myHeight.set(undefined); + await fixture.whenStable(); expect(elm.style.width).toEqual('2px'); expect(elm.style.height).toEqual('1px'); }); @@ -3585,32 +3626,38 @@ describe('styling', () => { expect(elm.style.color).toEqual('red'); }); - it('should combine host class.foo bindings from multiple directives', () => { + it('should combine host class.foo bindings from multiple directives', async () => { @Directive({ selector: '[dir-that-sets-one-two]', exportAs: 'one', + host: { + '[class.one]': 'one()', + '[class.two]': 'two()', + }, }) class DirThatSetsOneTwo { - @HostBinding('class.one') one = false; - @HostBinding('class.two') two = false; + one = signal(false); + two = signal(false); } @Directive({ selector: '[dir-that-sets-three-four]', exportAs: 'two', + host: { + '[class.three]': 'three()', + '[class.four]': 'four()', + }, }) class DirThatSetsThreeFour { - @HostBinding('class.three') three = false; - @HostBinding('class.four') four = false; + three = signal(false); + four = signal(false); } @Component({ template: `
    -
    +
    `, - - changeDetection: ChangeDetectionStrategy.Eager, imports: [DirThatSetsThreeFour, DirThatSetsOneTwo], }) class MyComp { @@ -3626,11 +3673,11 @@ describe('styling', () => { @ViewChild('div2', {static: true, read: DirThatSetsThreeFour}) public dirTwoB: DirThatSetsThreeFour | null = null; - zero = false; + zero = signal(false); } const fixture = TestBed.createComponent(MyComp); - fixture.detectChanges(); + await fixture.whenStable(); const divs = fixture.nativeElement.querySelectorAll('div') as HTMLDivElement[]; @@ -3642,9 +3689,11 @@ describe('styling', () => { expect(div2.className).toBe(''); const comp = fixture.componentInstance; - comp.dirOneA!.one = comp.dirOneB!.one = true; - comp.dirOneA!.two = comp.dirOneB!.two = true; - fixture.detectChanges(); + comp.dirOneA!.one.set(true); + comp.dirOneB!.one.set(true); + comp.dirOneA!.two.set(true); + comp.dirOneB!.two.set(true); + await fixture.whenStable(); expect(div1.classList.contains('one')).toBeTruthy(); expect(div1.classList.contains('two')).toBeTruthy(); @@ -3656,9 +3705,11 @@ describe('styling', () => { expect(div2.classList.contains('four')).toBeFalsy(); expect(div2.classList.contains('zero')).toBeFalsy(); - comp.dirTwoA!.three = comp.dirTwoB!.three = true; - comp.dirTwoA!.four = comp.dirTwoB!.four = true; - fixture.detectChanges(); + comp.dirTwoA!.three.set(true); + comp.dirTwoB!.three.set(true); + comp.dirTwoA!.four.set(true); + comp.dirTwoB!.four.set(true); + await fixture.whenStable(); expect(div1.classList.contains('one')).toBeTruthy(); expect(div1.classList.contains('two')).toBeTruthy(); @@ -3670,8 +3721,8 @@ describe('styling', () => { expect(div2.classList.contains('four')).toBeTruthy(); expect(div2.classList.contains('zero')).toBeFalsy(); - comp.zero = true; - fixture.detectChanges(); + comp.zero.set(true); + await fixture.whenStable(); expect(div1.classList.contains('one')).toBeTruthy(); expect(div1.classList.contains('two')).toBeTruthy(); @@ -3830,58 +3881,55 @@ describe('styling', () => { expect(getComputedStyle(span).getPropertyValue('font-size')).toBe('10px'); }); - it('should class bindings to classes with special characters in a template', () => { + it('should class bindings to classes with special characters in a template', async () => { const className = `data-active:text-green-300/80`; @Component({ - template: `
    `, - changeDetection: ChangeDetectionStrategy.Eager, + template: `
    `, }) class Cmp { - value = false; + value = signal(false); } const fixture = TestBed.createComponent(Cmp); - fixture.detectChanges(); + await fixture.whenStable(); const div = fixture.nativeElement.querySelector('div'); expect(div.classList).not.toContain(className); - fixture.componentInstance.value = true; - fixture.detectChanges(); + fixture.componentInstance.value.set(true); + await fixture.whenStable(); expect(div.classList).toContain(className); - fixture.componentInstance.value = false; - fixture.detectChanges(); + fixture.componentInstance.value.set(false); + await fixture.whenStable(); expect(div.classList).not.toContain(className); }); - it('should support class bindings to classes with special characters in a host binding', () => { + it('should support class bindings to classes with special characters in a host binding', async () => { const className = `data-active:text-green-300/80`; @Component({ template: ``, host: { - [`[class.${className}]`]: 'value', + [`[class.${className}]`]: 'value()', }, - - changeDetection: ChangeDetectionStrategy.Eager, }) class Cmp { - value = false; + value = signal(false); } const fixture = TestBed.createComponent(Cmp); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.nativeElement.classList).not.toContain(className); - fixture.componentInstance.value = true; - fixture.detectChanges(); + fixture.componentInstance.value.set(true); + await fixture.whenStable(); expect(fixture.nativeElement.classList).toContain(className); - fixture.componentInstance.value = false; - fixture.detectChanges(); + fixture.componentInstance.value.set(false); + await fixture.whenStable(); expect(fixture.nativeElement.classList).not.toContain(className); }); diff --git a/packages/core/test/acceptance/template_ref_spec.ts b/packages/core/test/acceptance/template_ref_spec.ts index 08cfdaf9f976..221d4b1886dc 100644 --- a/packages/core/test/acceptance/template_ref_spec.ts +++ b/packages/core/test/acceptance/template_ref_spec.ts @@ -8,7 +8,6 @@ import {NgIf, NgTemplateOutlet} from '@angular/common'; import { - ChangeDetectionStrategy, Component, Injector, provideNgReflectAttributes, @@ -269,8 +268,6 @@ describe('TemplateRef', () => { {{ name }} `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class App { @ViewChild('templateRef') templateRef!: TemplateRef; @@ -288,7 +285,7 @@ describe('TemplateRef', () => { expect(fixture.nativeElement.textContent).toBe('Frodo'); context.name = 'Bilbo'; - fixture.changeDetectorRef.markForCheck(); + viewRef.markForCheck(); fixture.detectChanges(); expect(fixture.nativeElement.textContent).toBe('Bilbo'); @@ -304,7 +301,7 @@ describe('TemplateRef', () => { expect(fixture.nativeElement.textContent).toBe('Frodo'); viewRef.context = {name: 'Bilbo'}; - fixture.changeDetectorRef.markForCheck(); + viewRef.markForCheck(); fixture.detectChanges(); expect(fixture.nativeElement.textContent).toBe('Bilbo'); @@ -341,7 +338,7 @@ describe('TemplateRef', () => { expect(events).toEqual(['Frodo']); viewRef.context = {name: 'Bilbo'}; - fixture.changeDetectorRef.markForCheck(); + viewRef.markForCheck(); fixture.detectChanges(); button.click(); expect(events).toEqual(['Frodo', 'Bilbo']); @@ -358,7 +355,7 @@ describe('TemplateRef', () => { spyOn(console, 'warn'); viewRef.context = {name: 'Bilbo'}; - fixture.changeDetectorRef.markForCheck(); + viewRef.markForCheck(); fixture.detectChanges(); expect(console.warn).toHaveBeenCalledTimes(1); diff --git a/packages/core/test/acceptance/view_container_ref_spec.ts b/packages/core/test/acceptance/view_container_ref_spec.ts index 4e20e3c2295e..d5cf45b81fe1 100644 --- a/packages/core/test/acceptance/view_container_ref_spec.ts +++ b/packages/core/test/acceptance/view_container_ref_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule, DOCUMENT} from '@angular/common'; +import {CommonModule, DOCUMENT, NgTemplateOutlet} from '@angular/common'; import {computeMsgId} from '@angular/compiler'; import {clearTranslations, loadTranslations} from '@angular/localize'; import {By, DomSanitizer} from '@angular/platform-browser'; @@ -25,6 +25,7 @@ import { EmbeddedViewRef, EnvironmentInjector, ErrorHandler, + forwardRef, InjectionToken, Injector, Input, @@ -71,20 +72,6 @@ describe('ViewContainerRef', () => { return element.textContent!.trim().replace(/\r?\n/g, ' ').replace(/ +/g, ' '); } - beforeEach(() => { - TestBed.configureTestingModule({ - declarations: [ - StructDir, - ViewContainerRefComp, - ViewContainerRefApp, - DestroyCasesComp, - ConstructorDir, - ConstructorApp, - ConstructorAppWithQueries, - ], - }); - }); - afterEach(() => clearTranslations()); describe('create', () => { @@ -105,19 +92,15 @@ describe('ViewContainerRef', () => { it('should construct proper TNode / DOM tree when embedded views are created in a directive constructor', () => { @Component({ - selector: 'view-insertion-test-cmpt', template: `
    before|middle|after
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [forwardRef(() => ConstructorDir)], }) class ViewInsertionTestCmpt {} - TestBed.configureTestingModule({declarations: [ViewInsertionTestCmpt, ConstructorDir]}); - const fixture = TestBed.createComponent(ViewInsertionTestCmpt); expect(fixture.nativeElement).toHaveText(' before|middle|after '); }); @@ -125,23 +108,18 @@ describe('ViewContainerRef', () => { it('should use comment node of host ng-container as insertion marker', () => { @Component({ template: 'hello', - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class HelloComp {} @Component({ template: ` `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [forwardRef(() => VCRefDirective)], }) class TestComp { @ViewChild(VCRefDirective, {static: true}) vcRefDir!: VCRefDirective; } - TestBed.configureTestingModule({declarations: [TestComp, VCRefDirective, HelloComp]}); const fixture = TestBed.createComponent(TestComp); const {vcref, elementRef} = fixture.componentInstance.vcRefDir; fixture.detectChanges(); @@ -175,17 +153,11 @@ describe('ViewContainerRef', () => { @Component({ selector: '[hello]', template: 'Hello', - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class HelloComp {} @Component({ template: ` `, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class TestComp { @ViewChild('container', {read: ViewContainerRef}) vcRef!: ViewContainerRef; @@ -195,7 +167,6 @@ describe('ViewContainerRef', () => { } } - TestBed.configureTestingModule({declarations: [TestComp, HelloComp]}); const fixture = TestBed.createComponent(TestComp); fixture.detectChanges(); expect(fixture.debugElement.nativeElement.innerHTML).not.toContain('Hello'); @@ -208,22 +179,14 @@ describe('ViewContainerRef', () => { it('should view queries in dynamically created components', () => { @Component({ - selector: 'dynamic-cmpt-with-view-queries', template: `
    `, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class DynamicCompWithViewQueries { @ViewChildren('foo') fooList!: QueryList; } @Component({ - selector: 'test-cmp', template: ``, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class TestCmp { constructor(readonly vcRf: ViewContainerRef) {} @@ -243,18 +206,12 @@ describe('ViewContainerRef', () => { @Component({ selector: svgSelector, template: '', - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class SvgComp {} @Component({ selector: mathMLSelector, template: '', - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class MathMLComp {} @@ -263,9 +220,6 @@ describe('ViewContainerRef', () => { `, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class TestComp { @ViewChild('svg', {read: ViewContainerRef}) svgVCRef!: ViewContainerRef; @@ -286,7 +240,6 @@ describe('ViewContainerRef', () => { } TestBed.configureTestingModule({ - declarations: [TestComp, SvgComp, MathMLComp], providers: [{provide: DOCUMENT, useFactory: _document, deps: []}], }); const fixture = TestBed.createComponent(TestComp); @@ -313,15 +266,11 @@ describe('ViewContainerRef', () => { @Component({ selector: 'g[dynamic-group]', template: 'SVG content', - - changeDetection: ChangeDetectionStrategy.Eager, }) class SvgGroupComp {} @Component({ template: '', - - changeDetection: ChangeDetectionStrategy.Eager, }) class TestComp { @ViewChild('container', {read: ViewContainerRef}) container!: ViewContainerRef; @@ -342,8 +291,6 @@ describe('ViewContainerRef', () => { @Component({ selector: 'div[dynamic-html]', template: 'HTML content', - - changeDetection: ChangeDetectionStrategy.Eager, }) class HtmlComp {} @@ -355,8 +302,6 @@ describe('ViewContainerRef', () => { `, - - changeDetection: ChangeDetectionStrategy.Eager, }) class TestComp { @ViewChild('container', {read: ViewContainerRef}) container!: ViewContainerRef; @@ -379,9 +324,6 @@ describe('ViewContainerRef', () => { @Component({ selector: '[attr-a=a].class-a:not(.class-b):not([attr-b=b]).class-c[attr-c]', template: 'Hello', - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class HelloComp {} @@ -392,9 +334,6 @@ describe('ViewContainerRef', () => {
    `, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class TestComp { @ViewChild('container', {read: ViewContainerRef}) vcRef!: ViewContainerRef; @@ -416,7 +355,6 @@ describe('ViewContainerRef', () => { } } - TestBed.configureTestingModule({declarations: [TestComp, HelloComp]}); const fixture = TestBed.createComponent(TestComp); fixture.detectChanges(); const firstRef = fixture.componentInstance.createComponentViaVCRef(); @@ -509,14 +447,10 @@ describe('ViewContainerRef', () => { it('should insert a view already inserted into another container', () => { @Component({ - selector: 'test-cmpt', template: ` content before||middle||after `, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class TestComponent { @ViewChild('t', {static: true}) t!: TemplateRef<{}>; @@ -524,7 +458,6 @@ describe('ViewContainerRef', () => { @ViewChild('c2', {static: true, read: ViewContainerRef}) c2!: ViewContainerRef; } - TestBed.configureTestingModule({declarations: [TestComponent]}); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); const cmpt = fixture.componentInstance; @@ -548,9 +481,6 @@ describe('ViewContainerRef', () => { it('should add embedded views at the right position in the DOM tree (ng-template next to other ng-template)', () => { @Component({ template: `before|AB|after`, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class TestCmp { @ViewChild('a', {static: true}) ta!: TemplateRef<{}>; @@ -593,7 +523,6 @@ describe('ViewContainerRef', () => { }); it('should move embedded views and associated DOM nodes without recreating them', () => { - TestBed.configureTestingModule({declarations: [EmbeddedViewInsertionComp, VCRefDirective]}); const fixture = TestBed.createComponent(EmbeddedViewInsertionComp); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -797,7 +726,6 @@ describe('ViewContainerRef', () => { describe('length', () => { it('should return the number of embedded views', () => { - TestBed.configureTestingModule({declarations: [EmbeddedViewInsertionComp, VCRefDirective]}); const fixture = TestBed.createComponent(EmbeddedViewInsertionComp); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -823,10 +751,6 @@ describe('ViewContainerRef', () => { }); describe('get and indexOf', () => { - beforeEach(() => { - TestBed.configureTestingModule({declarations: [EmbeddedViewInsertionComp, VCRefDirective]}); - }); - it('should retrieve a ViewRef from its index, and vice versa', () => { const fixture = TestBed.createComponent(EmbeddedViewInsertionComp); const vcRefDir = fixture.debugElement @@ -893,15 +817,13 @@ describe('ViewContainerRef', () => { {{ name }}
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [forwardRef(() => VCRefDirective)], }) class TestComponent { @ViewChild(VCRefDirective, {static: true}) vcRefDir!: VCRefDirective; } - TestBed.configureTestingModule({declarations: [VCRefDirective, TestComponent]}); const fixture = TestBed.createComponent(TestComponent); const {vcRefDir} = fixture.componentInstance; fixture.detectChanges(); @@ -925,15 +847,13 @@ describe('ViewContainerRef', () => {
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [forwardRef(() => VCRefDirective)], }) class TestComponent { @ViewChild(VCRefDirective, {static: true}) vcRefDir!: VCRefDirective; } - TestBed.configureTestingModule({declarations: [VCRefDirective, TestComponent]}); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); const vcref = fixture.componentInstance.vcRefDir.vcref; @@ -946,9 +866,6 @@ describe('ViewContainerRef', () => { @Component({ selector: 'header-cmp', template: ``, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class HeaderCmp {} @@ -957,15 +874,13 @@ describe('ViewContainerRef', () => {
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [HeaderCmp, forwardRef(() => VCRefDirective)], }) class TestComponent { @ViewChild(VCRefDirective, {static: true}) vcRefDir!: VCRefDirective; } - TestBed.configureTestingModule({declarations: [HeaderCmp, VCRefDirective, TestComponent]}); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); const vcref = fixture.componentInstance.vcRefDir.vcref; @@ -978,10 +893,6 @@ describe('ViewContainerRef', () => { }); describe('detach', () => { - beforeEach(() => { - TestBed.configureTestingModule({declarations: [EmbeddedViewInsertionComp, VCRefDirective]}); - }); - it('should detach the right embedded view when an index is specified', () => { const fixture = TestBed.createComponent(EmbeddedViewInsertionComp); const vcRefDir = fixture.debugElement @@ -1033,20 +944,10 @@ describe('ViewContainerRef', () => { }); it('should not throw when destroying a detached component view', () => { - @Component({ - selector: 'dynamic-cmp', - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, - }) + @Component({}) class DynamicCmp {} - @Component({ - selector: 'test-cmp', - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, - }) + @Component({}) class TestCmp { constructor(public vcRef: ViewContainerRef) {} } @@ -1068,8 +969,6 @@ describe('ViewContainerRef', () => { describe('remove', () => { beforeEach(() => { - TestBed.configureTestingModule({declarations: [EmbeddedViewInsertionComp, VCRefDirective]}); - const _origRendererFactory = TestBed.inject(RendererFactory2); const _origCreateRenderer = _origRendererFactory.createRenderer; @@ -1161,9 +1060,8 @@ describe('ViewContainerRef', () => { I am child template `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [CommonModule, forwardRef(() => TemplateDirective)], }) class AppComponent { visible = true; @@ -1181,7 +1079,6 @@ describe('ViewContainerRef', () => { @Directive({ selector: '[template]', - standalone: false, }) class TemplateDirective implements OnInit, OnDestroy { @Input() template!: TemplateRef; @@ -1199,11 +1096,6 @@ describe('ViewContainerRef', () => { } } - TestBed.configureTestingModule({ - imports: [CommonModule], - declarations: [AppComponent, TemplateDirective], - }); - const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); fixture.componentRef.instance.visible = false; @@ -1220,14 +1112,11 @@ describe('ViewContainerRef', () => {
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [forwardRef(() => VCRefDirective)], }) class TestComponent {} - TestBed.configureTestingModule({declarations: [TestComponent, VCRefDirective]}); - const fixture = TestBed.createComponent(TestComponent); const vcRef = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -1265,9 +1154,6 @@ describe('ViewContainerRef', () => { @Component({ selector: 'header-cmp', template: ``, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class HeaderComponent {} @@ -1277,15 +1163,11 @@ describe('ViewContainerRef', () => {
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [HeaderComponent, forwardRef(() => VCRefDirective)], }) class TestComponent {} - TestBed.configureTestingModule({ - declarations: [TestComponent, HeaderComponent, VCRefDirective], - }); const fixture = TestBed.createComponent(TestComponent); const vcRef = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -1326,13 +1208,11 @@ describe('ViewContainerRef', () => {
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [forwardRef(() => VCRefDirective)], }) class TestComponent {} - TestBed.configureTestingModule({declarations: [TestComponent, VCRefDirective]}); const fixture = TestBed.createComponent(TestComponent); const vcRefs = fixture.debugElement .queryAll(By.directive(VCRefDirective)) @@ -1357,15 +1237,13 @@ describe('ViewContainerRef', () => { {{ name }}
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [forwardRef(() => VCRefDirective)], }) class TestComponent { @ViewChild(VCRefDirective, {static: true}) vcRef!: VCRefDirective; } - TestBed.configureTestingModule({declarations: [TestComponent, VCRefDirective]}); const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); const {vcRef} = fixture.componentInstance; @@ -1392,9 +1270,6 @@ describe('ViewContainerRef', () => { @Component({ selector: 'child', template: `{{ name }}`, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class Child { @Input() name: string | undefined; @@ -1402,7 +1277,6 @@ describe('ViewContainerRef', () => { @Pipe({ name: 'starPipe', - standalone: false, }) class StarPipe implements PipeTransform { transform(value: any) { @@ -1418,15 +1292,11 @@ describe('ViewContainerRef', () => { `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [Child, StarPipe, forwardRef(() => VCRefDirective)], }) class SomeComponent {} - TestBed.configureTestingModule({ - declarations: [Child, StarPipe, SomeComponent, VCRefDirective], - }); const fixture = TestBed.createComponent(SomeComponent); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -1457,8 +1327,8 @@ describe('ViewContainerRef', () => { @Component({ selector: 'embedded-cmp', template: `foo`, - standalone: false, + imports: [forwardRef(() => VCRefDirective)], changeDetection: ChangeDetectionStrategy.Eager, }) class EmbeddedComponent implements DoCheck, OnInit { @@ -1471,9 +1341,6 @@ describe('ViewContainerRef', () => { } } - TestBed.configureTestingModule({ - declarations: [EmbeddedViewInsertionComp, VCRefDirective, EmbeddedComponent], - }); const fixture = TestBed.createComponent(EmbeddedViewInsertionComp); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -1508,7 +1375,6 @@ describe('ViewContainerRef', () => { selector: 'embedded-cmp', template: `foo`, standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class EmbeddedComponent implements DoCheck, OnInit { @@ -1524,7 +1390,7 @@ describe('ViewContainerRef', () => { } TestBed.configureTestingModule({ - declarations: [EmbeddedViewInsertionComp, VCRefDirective, EmbeddedComponent], + declarations: [EmbeddedComponent], }); @NgModule({ @@ -1585,9 +1451,6 @@ describe('ViewContainerRef', () => { }); it('should support projectable nodes', () => { - TestBed.configureTestingModule({ - declarations: [EmbeddedViewInsertionComp, VCRefDirective, EmbeddedComponentWithNgContent], - }); const fixture = TestBed.createComponent(EmbeddedViewInsertionComp); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -1619,20 +1482,14 @@ describe('ViewContainerRef', () => { template: ``, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ + forwardRef(() => EmbeddedComponentWithNgContent), + forwardRef(() => VCRefDirective), + ], }) class Reprojector {} - TestBed.configureTestingModule({ - declarations: [ - EmbeddedViewInsertionComp, - VCRefDirective, - Reprojector, - EmbeddedComponentWithNgContent, - ], - }); const fixture = TestBed.createComponent(EmbeddedViewInsertionComp); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -1656,9 +1513,6 @@ describe('ViewContainerRef', () => { }); it('should support many projectable nodes with many slots', () => { - TestBed.configureTestingModule({ - declarations: [EmbeddedViewInsertionComp, VCRefDirective, EmbeddedComponentWithNgContent], - }); const fixture = TestBed.createComponent(EmbeddedViewInsertionComp); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -1684,13 +1538,9 @@ describe('ViewContainerRef', () => { it('should not throw when calling destroy() multiple times for a ComponentRef', () => { @Component({ template: '', - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class App {} - TestBed.configureTestingModule({declarations: [App]}); const fixture = TestBed.createComponent(App); fixture.detectChanges(); @@ -1705,24 +1555,16 @@ describe('ViewContainerRef', () => { `, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class TestComp { constructor(public viewContainerRef: ViewContainerRef) {} } @Component({ - selector: 'dynamic-comp', template: '', - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class DynamicComponent {} - TestBed.configureTestingModule({declarations: [DynamicComponent]}); const fixture = TestBed.createComponent(TestComp); // Note: it's important that we **don't** call `fixture.detectChanges` between here and @@ -1738,10 +1580,7 @@ describe('ViewContainerRef', () => { it('should return ComponentRef with ChangeDetectorRef attached to root view', () => { @Component({ - selector: 'dynamic-cmp', template: ``, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class DynamicCmp { @@ -1754,8 +1593,6 @@ describe('ViewContainerRef', () => { @Component({ template: ``, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class TestCmp { @@ -1789,16 +1626,13 @@ describe('ViewContainerRef', () => { const TOKEN_B = new InjectionToken('B'); @Component({ - selector: 'child-a', template: `[Child Component A]`, standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class ChildA {} @Component({ - selector: 'child-b', template: ` [Child Component B] @@ -1806,7 +1640,6 @@ describe('ViewContainerRef', () => { {{ tokenB }} `, standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class ChildB { @@ -1823,11 +1656,9 @@ describe('ViewContainerRef', () => { } @Component({ - selector: 'app', template: '', providers: [{provide: TOKEN_B, useValue: '[TokenB - Value]'}], standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class App { @@ -1928,13 +1759,13 @@ describe('ViewContainerRef', () => { @Component({ selector: 'host-component', template: '', - standalone: false, + host: { 'class': 'host', 'attr-three': 'host', }, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [forwardRef(() => VCRefDirective)], }) class HostComponent { constructor() { @@ -1943,9 +1774,7 @@ describe('ViewContainerRef', () => { } TestBed.resetTestingModule(); - TestBed.configureTestingModule({ - declarations: [EmbeddedViewInsertionComp, VCRefDirective, HostComponent], - }); + const fixture = TestBed.createComponent(EmbeddedViewInsertionComp); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -1981,8 +1810,8 @@ describe('ViewContainerRef', () => { @Component({ template: 'Value: {{hostInput}}', - standalone: false, + imports: [forwardRef(() => VCRefDirective)], changeDetection: ChangeDetectionStrategy.Eager, }) class HostComponent { @@ -1991,7 +1820,6 @@ describe('ViewContainerRef', () => { TestBed.resetTestingModule(); TestBed.configureTestingModule({ - declarations: [EmbeddedViewInsertionComp, VCRefDirective, HostComponent], providers: [provideZoneChangeDetection()], }); const hostValue = signal('initial'); @@ -2072,7 +1900,6 @@ describe('ViewContainerRef', () => { describe('insertion points and declaration points', () => { @Directive({ selector: '[tplDir]', - standalone: false, }) class InsertionDir { @Input() @@ -2088,8 +1915,8 @@ describe('ViewContainerRef', () => { @Component({ selector: 'child', template: `
    {{ name }}
    `, - standalone: false, + imports: [InsertionDir], changeDetection: ChangeDetectionStrategy.Eager, }) class Child { @@ -2105,15 +1932,14 @@ describe('ViewContainerRef', () => { `, - standalone: false, + imports: [Child], changeDetection: ChangeDetectionStrategy.Eager, }) class Parent { name = 'Parent'; } - TestBed.configureTestingModule({declarations: [Child, Parent, InsertionDir]}); const fixture = TestBed.createComponent(Parent); const child = fixture.debugElement.query(By.directive(Child)).componentInstance; fixture.detectChanges(); @@ -2135,8 +1961,8 @@ describe('ViewContainerRef', () => { @Component({ selector: 'loop-comp', template: ` `, - standalone: false, + imports: [CommonModule], changeDetection: ChangeDetectionStrategy.Eager, }) class LoopComp { @@ -2157,8 +1983,8 @@ describe('ViewContainerRef', () => { `, - standalone: false, + imports: [LoopComp], changeDetection: ChangeDetectionStrategy.Eager, }) class Parent { @@ -2169,7 +1995,6 @@ describe('ViewContainerRef', () => { ]; } - TestBed.configureTestingModule({declarations: [LoopComp, Parent], imports: [CommonModule]}); const fixture = TestBed.createComponent(Parent); fixture.detectChanges(); @@ -2199,15 +2024,14 @@ describe('ViewContainerRef', () => { it('should insert elements in the proper order when template root is an ng-container', () => { @Component({ template: ` |{{ item }}| `, - standalone: false, + imports: [CommonModule], changeDetection: ChangeDetectionStrategy.Eager, }) class App { items = ['one', 'two', 'three']; } - TestBed.configureTestingModule({imports: [CommonModule], declarations: [App]}); const fixture = TestBed.createComponent(App); fixture.detectChanges(); @@ -2241,15 +2065,14 @@ describe('ViewContainerRef', () => { |{{ item }}| `, - standalone: false, + imports: [CommonModule], changeDetection: ChangeDetectionStrategy.Eager, }) class App { items = ['one', 'two', 'three']; } - TestBed.configureTestingModule({imports: [CommonModule], declarations: [App]}); const fixture = TestBed.createComponent(App); fixture.detectChanges(); @@ -2283,15 +2106,14 @@ describe('ViewContainerRef', () => { >|{{ item }}| `, - standalone: false, + imports: [CommonModule], changeDetection: ChangeDetectionStrategy.Eager, }) class App { items = ['one', 'two', 'three']; } - TestBed.configureTestingModule({imports: [CommonModule], declarations: [App]}); const fixture = TestBed.createComponent(App); fixture.detectChanges(); @@ -2327,8 +2149,8 @@ describe('ViewContainerRef', () => { > `, - standalone: false, + imports: [CommonModule], changeDetection: ChangeDetectionStrategy.Eager, }) class App { @@ -2336,9 +2158,7 @@ describe('ViewContainerRef', () => { } TestBed.configureTestingModule({ - imports: [CommonModule], providers: [provideZoneChangeDetection()], - declarations: [App], }); const fixture = TestBed.createComponent(App); fixture.detectChanges(); @@ -2370,15 +2190,14 @@ describe('ViewContainerRef', () => { other {|{{ item }}|} } `, - standalone: false, + imports: [CommonModule], changeDetection: ChangeDetectionStrategy.Eager, }) class App { items = ['one', 'two', 'three']; } - TestBed.configureTestingModule({imports: [CommonModule], declarations: [App]}); const fixture = TestBed.createComponent(App); fixture.detectChanges(); @@ -2413,8 +2232,6 @@ describe('ViewContainerRef', () => { @Component({ selector: 'hooks', template: `{{ name }}`, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class ComponentWithHooks { @@ -2462,17 +2279,14 @@ describe('ViewContainerRef', () => { `, - standalone: false, + imports: [ComponentWithHooks, forwardRef(() => VCRefDirective)], changeDetection: ChangeDetectionStrategy.Eager, }) class SomeComponent {} log.length = 0; - TestBed.configureTestingModule({ - declarations: [SomeComponent, ComponentWithHooks, VCRefDirective], - }); const fixture = TestBed.createComponent(SomeComponent); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -2602,17 +2416,14 @@ describe('ViewContainerRef', () => { `, - standalone: false, + imports: [ComponentWithHooks, forwardRef(() => VCRefDirective)], changeDetection: ChangeDetectionStrategy.Eager, }) class SomeComponent {} log.length = 0; - TestBed.configureTestingModule({ - declarations: [SomeComponent, VCRefDirective, ComponentWithHooks], - }); const fixture = TestBed.createComponent(SomeComponent); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -2744,8 +2555,6 @@ describe('ViewContainerRef', () => { selector: 'host-bindings', host: {'id': 'attribute', '[title]': 'title'}, template: ``, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class HostBindingCmpt { @@ -2754,17 +2563,14 @@ describe('ViewContainerRef', () => { @Component({ template: ``, - standalone: false, + imports: [forwardRef(() => VCRefDirective)], changeDetection: ChangeDetectionStrategy.Eager, }) class TestComponent { @ViewChild(VCRefDirective, {static: true}) vcRefDir!: VCRefDirective; } - TestBed.configureTestingModule({ - declarations: [TestComponent, VCRefDirective, HostBindingCmpt], - }); const fixture = TestBed.createComponent(TestComponent); const {vcRefDir} = fixture.componentInstance; @@ -2798,14 +2604,10 @@ describe('ViewContainerRef', () => { @Component({ selector: 'child', template: '
    ', - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class Child {} @Component({ - selector: 'parent', template: ` {{ name }} @@ -2813,15 +2615,13 @@ describe('ViewContainerRef', () => {
    blah
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [Child, forwardRef(() => VCRefDirective)], }) class Parent { name: string = 'bar'; } - TestBed.configureTestingModule({declarations: [Child, Parent, VCRefDirective]}); const fixture = TestBed.createComponent(Parent); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -2843,16 +2643,14 @@ describe('ViewContainerRef', () => { @Component({ selector: 'child-with-view', template: `Before (inside)--After (inside)`, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [CommonModule], }) class ChildWithView { show: boolean = true; } @Component({ - selector: 'parent', template: ` {{ name }} @@ -2861,15 +2659,13 @@ describe('ViewContainerRef', () => {
    blah
    After projected `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ChildWithView, forwardRef(() => VCRefDirective)], }) class Parent { name: string = 'bar'; } - TestBed.configureTestingModule({declarations: [ChildWithView, Parent, VCRefDirective]}); const fixture = TestBed.createComponent(Parent); fixture.detectChanges(); const vcRefDir = fixture.debugElement @@ -2892,8 +2688,8 @@ describe('ViewContainerRef', () => { @Component({ selector: 'root-comp', template: ``, - standalone: false, + imports: [CommonModule], changeDetection: ChangeDetectionStrategy.Eager, }) class RootComp { @@ -2901,20 +2697,18 @@ describe('ViewContainerRef', () => { } @Component({ - selector: 'my-app', template: `
    `, - standalone: false, + imports: [RootComp], changeDetection: ChangeDetectionStrategy.Eager, }) class MyApp { show = true; } - TestBed.configureTestingModule({declarations: [MyApp, RootComp]}); const fixture = TestBed.createComponent(MyApp); fixture.detectChanges(); expect(fixture.nativeElement.querySelectorAll('div').length).toBe(1); @@ -2929,8 +2723,6 @@ describe('ViewContainerRef', () => { selector: 'child-with-selector', template: `

    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class ChildWithSelector {} @@ -2946,15 +2738,13 @@ describe('ViewContainerRef', () => {
    blah
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ChildWithSelector, forwardRef(() => VCRefDirective)], }) class Parent { name: string = 'bar'; } - TestBed.configureTestingModule({declarations: [Parent, ChildWithSelector, VCRefDirective]}); const fixture = TestBed.createComponent(Parent); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -2977,14 +2767,10 @@ describe('ViewContainerRef', () => { @Component({ selector: 'content-comp', template: '', - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class ContentComp {} @Component({ - selector: 'my-comp', template: `
    @@ -2992,9 +2778,8 @@ describe('ViewContainerRef', () => { My Content `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ContentComp], }) class MyComp { @ViewChild('source', {static: true}) source!: TemplateRef<{}>; @@ -3006,7 +2791,6 @@ describe('ViewContainerRef', () => { } } - TestBed.configureTestingModule({declarations: [MyComp, ContentComp]}); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); expect(fixture.debugElement.nativeElement.innerHTML).toContain('My Content'); @@ -3023,15 +2807,13 @@ describe('ViewContainerRef', () => {
    blah
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ChildWithSelector, forwardRef(() => VCRefDirective)], }) class Parent { name: string = 'bar'; } - TestBed.configureTestingModule({declarations: [Parent, ChildWithSelector, VCRefDirective]}); const fixture = TestBed.createComponent(Parent); const vcRefDir = fixture.debugElement .query(By.directive(VCRefDirective)) @@ -3088,8 +2870,6 @@ describe('ViewContainerRef', () => { @Component({ selector: 'dynamic-cmpt-with-bindings', template: `check count: {{ checkCount }}`, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class DynamicCompWithBindings implements DoCheck { @@ -3102,8 +2882,6 @@ describe('ViewContainerRef', () => { @Component({ template: ``, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class TestComp { @@ -3111,7 +2889,6 @@ describe('ViewContainerRef', () => { } TestBed.configureTestingModule({ - declarations: [TestComp, DynamicCompWithBindings], providers: [TEST_COMPONENT_RENDERER], }); const fixture = TestBed.createComponent(TestComp); @@ -3139,9 +2916,6 @@ describe('ViewContainerRef', () => { it('should create deep DOM tree immediately for dynamically created components', () => { @Component({ template: ``, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class TestComp { constructor(public vcRef: ViewContainerRef) {} @@ -3150,9 +2924,6 @@ describe('ViewContainerRef', () => { @Component({ selector: 'child', template: `
    {{ name }}
    `, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class Child { name = 'text'; @@ -3161,14 +2932,12 @@ describe('ViewContainerRef', () => { @Component({ selector: 'dynamic-cmpt-with-children', template: ``, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [Child], }) class DynamicCompWithChildren {} TestBed.configureTestingModule({ - declarations: [TestComp, DynamicCompWithChildren, Child], providers: [TEST_COMPONENT_RENDERER], }); @@ -3203,15 +2972,13 @@ describe('ViewContainerRef', () => { {{ name }}

    `, - standalone: false, - + imports: [forwardRef(() => VCRefDirective)], changeDetection: ChangeDetectionStrategy.Eager, }) class EmbeddedViewInsertionComp {} @Directive({ selector: '[vcref]', - standalone: false, }) class VCRefDirective { @Input() tplRef: TemplateRef | undefined; @@ -3238,9 +3005,6 @@ class VCRefDirective { template: `
    `, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class EmbeddedComponentWithNgContent {} @@ -3251,9 +3015,6 @@ class EmbeddedComponentWithNgContent {} 1 2 `, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, }) class ViewContainerRefComp { @ViewChildren(TemplateRef) templates!: QueryList>; @@ -3264,9 +3025,8 @@ class ViewContainerRefComp { @Component({ selector: 'view-container-ref-app', template: ` `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ViewContainerRefComp], }) class ViewContainerRefApp { @ViewChild(ViewContainerRefComp) vcrComp!: ViewContainerRefComp; @@ -3274,7 +3034,6 @@ class ViewContainerRefApp { @Directive({ selector: '[structDir]', - standalone: false, }) export class StructDir { constructor( @@ -3294,9 +3053,7 @@ export class StructDir { @Component({ selector: 'destroy-cases', template: ``, - standalone: false, - - changeDetection: ChangeDetectionStrategy.Eager, + imports: [NgTemplateOutlet, StructDir], }) class DestroyCasesComp { @ViewChildren(StructDir) structDirs!: QueryList; @@ -3304,7 +3061,6 @@ class DestroyCasesComp { @Directive({ selector: '[constructorDir]', - standalone: false, }) class ConstructorDir { constructor(vcref: ViewContainerRef, tplRef: TemplateRef) { @@ -3319,9 +3075,8 @@ class ConstructorDir {
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ConstructorDir], }) class ConstructorApp { @ViewChild('foo', {static: true}) foo!: ElementRef; @@ -3334,9 +3089,8 @@ class ConstructorApp {
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ConstructorDir], }) class ConstructorAppWithQueries { @ViewChild('foo', {static: true}) foo!: TemplateRef; diff --git a/packages/core/test/acceptance/view_insertion_spec.ts b/packages/core/test/acceptance/view_insertion_spec.ts index 620319da5a5e..b4e7da6b20d6 100644 --- a/packages/core/test/acceptance/view_insertion_spec.ts +++ b/packages/core/test/acceptance/view_insertion_spec.ts @@ -9,7 +9,6 @@ import {NgFor, NgIf, NgTemplateOutlet} from '@angular/common'; import {By} from '@angular/platform-browser'; import { - ChangeDetectionStrategy, ChangeDetectorRef, Component, Directive, @@ -18,6 +17,7 @@ import { Injector, Input, provideZoneChangeDetection, + signal, TemplateRef, ViewChild, ViewContainerRef, @@ -394,21 +394,19 @@ describe('view insertion', () => { it('should insert before a ng-container with a ViewContainerRef on it', () => { @Component({ - selector: 'app-root', template: `
    start|
    - +
    |end
    test `, - changeDetection: ChangeDetectionStrategy.Eager, imports: [NgTemplateOutlet], }) class AppComponent { - insertTpl = false; + insertTpl = signal(false); } const fixture = TestBed.createComponent(AppComponent); @@ -416,7 +414,7 @@ describe('view insertion', () => { expect(fixture.nativeElement.textContent).toBe('start|test|end'); - fixture.componentInstance.insertTpl = true; + fixture.componentInstance.insertTpl.set(true); fixture.detectChanges(); expect(fixture.nativeElement.textContent).toBe('start|testtest|end'); }); @@ -502,14 +500,12 @@ describe('view insertion', () => { } @Component({ - selector: 'dynamic-cmpt', template: '|before', }) class DynamicComponent {} it('should insert in front a dynamic component view', () => { @Component({ - selector: 'test-cmpt', template: ` insert
    @@ -551,13 +547,11 @@ describe('view insertion', () => { // https://github.com/angular/angular/issues/31971 it('should insert component views into ViewContainerRef injected by querying ', () => { @Component({ - selector: 'dynamic-cmpt', template: 'dynamic', }) class DynamicComponent {} @Component({ - selector: 'app-root', template: `
    start|
    @@ -586,7 +580,6 @@ describe('view insertion', () => { // https://github.com/angular/angular/issues/33679 it('should insert embedded views into ViewContainerRef injected by querying ', () => { @Component({ - selector: 'app-root', template: `
    container start|
    @@ -617,31 +610,29 @@ describe('view insertion', () => { it('should properly insert before views in a ViewContainerRef injected on ng-container', () => { @Component({ - selector: 'app-root', template: ` {{ parameter }} `, - changeDetection: ChangeDetectionStrategy.Eager, imports: [NgFor, NgTemplateOutlet], }) class AppComponent { - items = [1]; + items = signal([1]); } const fixture = TestBed.createComponent(AppComponent); fixture.detectChanges(); expect(fixture.nativeElement.textContent.trim()).toContain('1'); - fixture.componentInstance.items = [2, 1]; + fixture.componentInstance.items.set([2, 1]); fixture.detectChanges(); expect(fixture.nativeElement.textContent.trim()).toContain('2 1'); @@ -841,13 +832,12 @@ describe('view insertion', () => { } @Component({ - template: `
    {{ value }}
    `, + template: `
    {{ value() }}
    `, - changeDetection: ChangeDetectionStrategy.Eager, imports: [FailInConstructorOnce], }) class TestCmpt { - value = 0; + value = signal(0); } expect(() => { @@ -858,11 +848,11 @@ describe('view insertion', () => { fixture.detectChanges(); expect(fixture.nativeElement.textContent).toContain('0'); - fixture.componentInstance.value = 1; + fixture.componentInstance.value.set(1); fixture.detectChanges(); expect(fixture.nativeElement.textContent).toContain('1'); - fixture.componentInstance.value = 2; + fixture.componentInstance.value.set(2); fixture.detectChanges(); expect(fixture.nativeElement.textContent).toContain('2'); }); diff --git a/packages/core/test/animation_utils/BUILD.bazel b/packages/core/test/animation_utils/BUILD.bazel deleted file mode 100644 index 6415cc1a32d9..000000000000 --- a/packages/core/test/animation_utils/BUILD.bazel +++ /dev/null @@ -1,14 +0,0 @@ -load("//tools:defaults.bzl", "ts_project") - -package(default_visibility = ["//visibility:public"]) - -ts_project( - name = "animation_utils", - testonly = True, - srcs = [ - "tick_animation_frames.ts", - ], - deps = [ - "//packages/core/testing", - ], -) diff --git a/packages/core/test/animation_utils/tick_animation_frames.ts b/packages/core/test/animation_utils/tick_animation_frames.ts deleted file mode 100644 index f50c55888fc3..000000000000 --- a/packages/core/test/animation_utils/tick_animation_frames.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @license - * Copyright Google LLC All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.dev/license - */ - -import {tick} from '@angular/core/testing'; - -/** Ticks the specified amount of `requestAnimationFrame`-s. */ -export function tickAnimationFrames(amount: number) { - tick(16.6 * amount); // Angular turns rAF calls into 16.6ms timeouts in tests. -} diff --git a/packages/core/test/application_module_spec.ts b/packages/core/test/application_module_spec.ts index 055afa776658..fe876a78812e 100644 --- a/packages/core/test/application_module_spec.ts +++ b/packages/core/test/application_module_spec.ts @@ -8,79 +8,16 @@ import {DEFAULT_CURRENCY_CODE, LOCALE_ID} from '../src/core'; -import {DEFAULT_LOCALE_ID} from '../src/i18n/localization'; -import {getLocaleId, setLocaleId} from '../src/render3'; -import {global} from '../src/util/global'; -import {inject, TestBed} from '../testing'; +import {TestBed} from '../testing'; describe('Application module', () => { - beforeEach(() => { - setLocaleId(DEFAULT_LOCALE_ID); - }); - - it('should set the default locale to "en-US"', inject([LOCALE_ID], (defaultLocale: string) => { + it('should set the default locale to "en-US"', () => { + const defaultLocale = TestBed.inject(LOCALE_ID); expect(defaultLocale).toEqual('en-US'); - })); - - it('should set the default currency code to "USD"', inject( - [DEFAULT_CURRENCY_CODE], - (defaultCurrencyCode: string) => { - expect(defaultCurrencyCode).toEqual('USD'); - }, - )); - - it('should set the ivy locale with the configured LOCALE_ID', () => { - TestBed.configureTestingModule({providers: [{provide: LOCALE_ID, useValue: 'fr'}]}); - const before = getLocaleId(); - const locale = TestBed.inject(LOCALE_ID); - const after = getLocaleId(); - expect(before).toEqual('en-us'); - expect(locale).toEqual('fr'); - expect(after).toEqual('fr'); }); - describe('$localize.locale', () => { - beforeEach(() => initLocale('de')); - afterEach(() => restoreLocale()); - - it('should set the ivy locale to `$localize.locale` value if it is defined', () => { - // Injecting `LOCALE_ID` should also initialize the ivy locale - const locale = TestBed.inject(LOCALE_ID); - expect(locale).toEqual('de'); - expect(getLocaleId()).toEqual('de'); - }); - - it('should set the ivy locale to an application provided LOCALE_ID even if `$localize.locale` is defined', () => { - TestBed.configureTestingModule({providers: [{provide: LOCALE_ID, useValue: 'fr'}]}); - const locale = TestBed.inject(LOCALE_ID); - expect(locale).toEqual('fr'); - expect(getLocaleId()).toEqual('fr'); - }); + it('should set the default currency code to "USD"', () => { + const defaultCurrencyCode = TestBed.inject(DEFAULT_CURRENCY_CODE); + expect(defaultCurrencyCode).toEqual('USD'); }); }); - -let hasGlobalLocalize: boolean; -let hasGlobalLocale: boolean; -let originalLocale: string; - -function initLocale(locale: string) { - hasGlobalLocalize = Object.getOwnPropertyNames(global).includes('$localize'); - if (!hasGlobalLocalize) { - global.$localize = {}; - } - hasGlobalLocale = Object.getOwnPropertyNames(global.$localize).includes('locale'); - originalLocale = global.$localize.locale; - global.$localize.locale = locale; -} - -function restoreLocale() { - if (hasGlobalLocale) { - global.$localize.locale = originalLocale; - } else { - delete global.$localize.locale; - } - - if (!hasGlobalLocalize) { - delete global.$localize; - } -} diff --git a/packages/core/test/application_ref_integration_spec.ts b/packages/core/test/application_ref_integration_spec.ts index a63b8f91f361..b9c226955035 100644 --- a/packages/core/test/application_ref_integration_spec.ts +++ b/packages/core/test/application_ref_integration_spec.ts @@ -11,6 +11,7 @@ import {BrowserModule} from '@angular/platform-browser'; import {withBody} from '@angular/private/testing'; import { ApplicationRef, + ChangeDetectionStrategy, Component, DoCheck, NgModule, @@ -22,7 +23,6 @@ import { } from '../src/core'; import {getTestBed} from '../testing'; -import {ChangeDetectionStrategy} from '@angular/compiler'; import {NgModuleFactory} from '../src/render3/ng_module_ref'; describe('ApplicationRef bootstrap', () => { diff --git a/packages/core/test/application_ref_spec.ts b/packages/core/test/application_ref_spec.ts index dc5a2b7822be..0634f06fa43a 100644 --- a/packages/core/test/application_ref_spec.ts +++ b/packages/core/test/application_ref_spec.ts @@ -40,13 +40,13 @@ import { import {ERROR_DETAILS_PAGE_BASE_URL} from '../src/error_details_base_url'; import {ErrorHandler} from '../src/error_handler'; import {ComponentRef} from '../src/linker/component_factory'; -import {createEnvironmentInjector, getLocaleId} from '../src/render3'; +import {createEnvironmentInjector} from '../src/render3'; import {take} from 'rxjs/operators'; import {compileNgModuleFactory} from '../src/application/application_ngmodule_factory_compiler'; import {ApplicationRef} from '../src/application/application_ref'; import {NoopNgZone} from '../src/zone/ng_zone'; -import {ComponentFixtureNoNgZone, inject, TestBed, waitForAsync, withModule} from '../testing'; +import {ComponentFixtureNoNgZone, TestBed, withModule} from '../testing'; let serverPlatformModule: Promise> | null = null; if (isNode) { @@ -128,7 +128,6 @@ describe('bootstrap', () => { it('should throw when reentering tick', () => { @Component({ template: '{{reenter()}}', - standalone: false, }) class ReenteringComponent { reenterCount = 1; @@ -147,9 +146,7 @@ describe('bootstrap', () => { } } - const fixture = TestBed.configureTestingModule({ - declarations: [ReenteringComponent], - }).createComponent(ReenteringComponent); + const fixture = TestBed.createComponent(ReenteringComponent); const appRef = TestBed.inject(ApplicationRef); appRef.attachView(fixture.componentRef.hostView); appRef.tick(); @@ -175,14 +172,12 @@ describe('bootstrap', () => { }); }); - it('should be called when a component is bootstrapped', inject( - [ApplicationRef], - (ref: ApplicationRef) => { - createRootEl(); - const compRef = ref.bootstrap(SomeComponent); - expect(capturedCompRefs).toEqual([compRef]); - }, - )); + it('should be called when a component is bootstrapped', () => { + createRootEl(); + const ref = TestBed.inject(ApplicationRef); + const compRef = ref.bootstrap(SomeComponent); + expect(capturedCompRefs).toEqual([compRef]); + }); }); describe('bootstrap', () => { @@ -194,19 +189,21 @@ describe('bootstrap', () => { {provide: APP_INITIALIZER, useValue: () => new Promise(() => {}), multi: true}, ], }, - inject([ApplicationRef], (ref: ApplicationRef) => { + () => { + const ref = TestBed.inject(ApplicationRef); createRootEl(); expect(() => ref.bootstrap(SomeComponent)).toThrowError( 'NG0405: Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.', ); - }), + }, ), ); - it('runs in `NgZone`', inject([ApplicationRef], async (ref: ApplicationRef) => { + it('runs in `NgZone`', async () => { + const ref = TestBed.inject(ApplicationRef); @Component({ selector: 'zone-comp', - template: `
    {{ name }}
    `, + template: ``, }) class ZoneComp { readonly inNgZone = NgZone.isInAngularZone(); @@ -215,43 +212,41 @@ describe('bootstrap', () => { createRootEl('zone-comp'); const comp = ref.bootstrap(ZoneComp); expect(comp.instance.inNgZone).toBeTrue(); - })); - - it('supports passing bootstrap options object', inject( - [ApplicationRef], - (ref: ApplicationRef) => { - @Directive({ - host: {'[attr.data-dir]': 'value'}, - }) - class HostDir { - @Input() - value = 'unset'; - } + }); - @Component({ - selector: 'bootstrap-app', - template: `{{ name }}`, - }) - class StandaloneBootComp { - @Input() - name = 'default'; - } + it('supports passing bootstrap options object', () => { + const ref = TestBed.inject(ApplicationRef); + @Directive({ + host: {'[attr.data-dir]': 'value'}, + }) + class HostDir { + @Input() + value = 'unset'; + } - createRootEl('custom-selector'); - const comp = ref.bootstrap(StandaloneBootComp, { - hostElement: 'custom-selector', - directives: [{type: HostDir, bindings: [inputBinding('value', () => 'bound')]}], - bindings: [inputBinding('name', () => 'hello from binding')], - }); + @Component({ + template: `{{ name }}`, + }) + class StandaloneBootComp { + @Input() + name = 'default'; + } - expect(comp.location.nativeElement.getAttribute('data-dir')).toBe('bound'); - expect(comp.location.nativeElement.textContent.trim()).toBe('hello from binding'); - }, - )); + createRootEl('custom-selector'); + const comp = ref.bootstrap(StandaloneBootComp, { + hostElement: 'custom-selector', + directives: [{type: HostDir, bindings: [inputBinding('value', () => 'bound')]}], + bindings: [inputBinding('name', () => 'hello from binding')], + }); + + expect(comp.location.nativeElement.getAttribute('data-dir')).toBe('bound'); + expect(comp.location.nativeElement.textContent.trim()).toBe('hello from binding'); + }); }); describe('bootstrapImpl', () => { - it('should use a provided injector', inject([ApplicationRef], (ref: ApplicationRef) => { + it('should use a provided injector', () => { + const ref = TestBed.inject(ApplicationRef); class MyService {} const myService = new MyService(); @@ -275,13 +270,13 @@ describe('bootstrap', () => { injector, ); expect(compRef.instance.myService).toBe(myService); - })); + }); }); }); describe('destroy', () => { const providers = [ - {provide: DOCUMENT, useFactory: () => document, deps: []}, + {provide: DOCUMENT, useFactory: () => document}, // Use the `DomRendererFactory2` as a renderer factory instead of the // `AnimationRendererFactory` one, which is configured as a part of the `ServerModule`, see // platform module setup above. This simplifies the tests (so they are sync vs async when @@ -303,169 +298,137 @@ describe('bootstrap', () => { return injector.get(ApplicationRef); } - it( - 'should cleanup the DOM', - withModule( - {providers}, - waitForAsync( - inject( - [EnvironmentInjector, DOCUMENT], - (parentInjector: EnvironmentInjector, doc: Document) => { - createRootEl(); - - const appRef = createApplicationRef(parentInjector); - appRef.bootstrap(SomeComponent); - - // The component template content (`hello`) is present in the document body. - expect(doc.body.textContent!.indexOf('hello') > -1).toBeTrue(); - - appRef.destroy(); - - // The component template content (`hello`) is *not* present in the document - // body, i.e. the DOM has been cleaned up. - expect(doc.body.textContent!.indexOf('hello') === -1).toBeTrue(); - }, - ), - ), - ), - ); + it('should cleanup the DOM', async () => { + const parentInjector = TestBed.inject(EnvironmentInjector); + const doc = TestBed.inject(DOCUMENT); + createRootEl(); + + const appRef = createApplicationRef(parentInjector); + appRef.bootstrap(SomeComponent); + + // The component template content (`hello`) is present in the document body. + expect(doc.body.textContent!.indexOf('hello') > -1).toBeTrue(); + + appRef.destroy(); + await appRef.whenStable(); + // The component template content (`hello`) is *not* present in the document + // body, i.e. the DOM has been cleaned up. + expect(doc.body.textContent!.indexOf('hello') === -1).toBeTrue(); + }); it( 'should throw when trying to call `destroy` method on already destroyed ApplicationRef', - withModule( - {providers}, - waitForAsync( - inject([EnvironmentInjector], (parentInjector: EnvironmentInjector) => { - createRootEl(); - const appRef = createApplicationRef(parentInjector); - appRef.bootstrap(SomeComponent); - appRef.destroy(); - - expect(() => appRef.destroy()).toThrowError( - 'NG0406: This instance of the `ApplicationRef` has already been destroyed.', - ); - }), - ), - ), + withModule({providers}, () => { + const parentInjector = TestBed.inject(EnvironmentInjector); + createRootEl(); + const appRef = createApplicationRef(parentInjector); + appRef.bootstrap(SomeComponent); + appRef.destroy(); + + expect(() => appRef.destroy()).toThrowError( + 'NG0406: This instance of the `ApplicationRef` has already been destroyed.', + ); + }), ); it( 'should invoke all registered `onDestroy` callbacks (internal API)', - withModule( - {providers}, - waitForAsync( - inject([EnvironmentInjector], (parentInjector: EnvironmentInjector) => { - const onDestroyA = jasmine.createSpy('onDestroyA'); - const onDestroyB = jasmine.createSpy('onDestroyB'); - createRootEl(); - - const appRef = createApplicationRef(parentInjector) as unknown as ApplicationRef & { - onDestroy: Function; - }; - appRef.bootstrap(SomeComponent); - appRef.onDestroy(onDestroyA); - appRef.onDestroy(onDestroyB); - appRef.destroy(); - - expect(onDestroyA).toHaveBeenCalledTimes(1); - expect(onDestroyB).toHaveBeenCalledTimes(1); - }), - ), - ), + withModule({providers}, () => { + const parentInjector = TestBed.inject(EnvironmentInjector); + const onDestroyA = jasmine.createSpy('onDestroyA'); + const onDestroyB = jasmine.createSpy('onDestroyB'); + createRootEl(); + + const appRef = createApplicationRef(parentInjector) as unknown as ApplicationRef & { + onDestroy: Function; + }; + appRef.bootstrap(SomeComponent); + appRef.onDestroy(onDestroyA); + appRef.onDestroy(onDestroyB); + appRef.destroy(); + + expect(onDestroyA).toHaveBeenCalledTimes(1); + expect(onDestroyB).toHaveBeenCalledTimes(1); + }), ); it( 'should allow to unsubscribe a registered `onDestroy` callback (internal API)', - withModule( - {providers}, - waitForAsync( - inject([EnvironmentInjector], (parentInjector: EnvironmentInjector) => { - createRootEl(); + withModule({providers}, () => { + const parentInjector = TestBed.inject(EnvironmentInjector); + createRootEl(); - const appRef = createApplicationRef(parentInjector) as unknown as ApplicationRef & { - onDestroy: Function; - }; - appRef.bootstrap(SomeComponent); + const appRef = createApplicationRef(parentInjector) as unknown as ApplicationRef & { + onDestroy: Function; + }; + appRef.bootstrap(SomeComponent); - const onDestroyA = jasmine.createSpy('onDestroyA'); - const onDestroyB = jasmine.createSpy('onDestroyB'); - const unsubscribeOnDestroyA = appRef.onDestroy(onDestroyA); - const unsubscribeOnDestroyB = appRef.onDestroy(onDestroyB); + const onDestroyA = jasmine.createSpy('onDestroyA'); + const onDestroyB = jasmine.createSpy('onDestroyB'); + const unsubscribeOnDestroyA = appRef.onDestroy(onDestroyA); + const unsubscribeOnDestroyB = appRef.onDestroy(onDestroyB); - // Unsubscribe registered listeners. - unsubscribeOnDestroyA(); - unsubscribeOnDestroyB(); + // Unsubscribe registered listeners. + unsubscribeOnDestroyA(); + unsubscribeOnDestroyB(); - appRef.destroy(); + appRef.destroy(); - expect(onDestroyA).not.toHaveBeenCalled(); - expect(onDestroyB).not.toHaveBeenCalled(); - }), - ), - ), + expect(onDestroyA).not.toHaveBeenCalled(); + expect(onDestroyB).not.toHaveBeenCalled(); + }), ); it( 'should correctly update the `destroyed` flag', - withModule( - {providers}, - waitForAsync( - inject([EnvironmentInjector], (parentInjector: EnvironmentInjector) => { - createRootEl(); + withModule({providers}, () => { + const parentInjector = TestBed.inject(EnvironmentInjector); + createRootEl(); - const appRef = createApplicationRef(parentInjector); - appRef.bootstrap(SomeComponent); + const appRef = createApplicationRef(parentInjector); + appRef.bootstrap(SomeComponent); - expect(appRef.destroyed).toBeFalse(); + expect(appRef.destroyed).toBeFalse(); - appRef.destroy(); + appRef.destroy(); - expect(appRef.destroyed).toBeTrue(); - }), - ), - ), + expect(appRef.destroyed).toBeTrue(); + }), ); - it( - 'should also destroy underlying injector', - withModule( - {providers}, - waitForAsync( - inject([EnvironmentInjector], (parentInjector: EnvironmentInjector) => { - // This is a temporary type to represent an instance of an R3Injector, which - // can be destroyed. - // The type will be replaced with a different one once destroyable injector - // type is available. - type DestroyableInjector = EnvironmentInjector & {destroyed?: boolean}; + it('should also destroy underlying injector', () => { + const parentInjector = TestBed.inject(EnvironmentInjector); + // This is a temporary type to represent an instance of an R3Injector, which + // can be destroyed. + // The type will be replaced with a different one once destroyable injector + // type is available. + type DestroyableInjector = EnvironmentInjector & {destroyed?: boolean}; - createRootEl(); + createRootEl(); - const injector = createApplicationRefInjector(parentInjector) as DestroyableInjector; + const injector = createApplicationRefInjector(parentInjector) as DestroyableInjector; - const appRef = injector.get(ApplicationRef); - appRef.bootstrap(SomeComponent); + const appRef = injector.get(ApplicationRef); + appRef.bootstrap(SomeComponent); - expect(appRef.destroyed).toBeFalse(); - expect(injector.destroyed).toBeFalse(); + expect(appRef.destroyed).toBeFalse(); + expect(injector.destroyed).toBeFalse(); - appRef.destroy(); + appRef.destroy(); - expect(appRef.destroyed).toBeTrue(); - expect(injector.destroyed).toBeTrue(); - }), - ), - ), - ); + expect(appRef.destroyed).toBeTrue(); + expect(injector.destroyed).toBeTrue(); + }); }); describe('bootstrapModule', () => { let defaultPlatform: PlatformRef; - beforeEach(inject([PlatformRef], (_platform: PlatformRef) => { + beforeEach(() => { createRootEl(); - defaultPlatform = _platform; - })); + defaultPlatform = TestBed.inject(PlatformRef); + }); - it('should wait for asynchronous app initializers', waitForAsync(async () => { + it('should wait for asynchronous app initializers', async () => { let resolve: (result: any) => void; const promise: Promise = new Promise((res) => { resolve = res; @@ -476,17 +439,17 @@ describe('bootstrap', () => { initializerDone = true; }, 1); - defaultPlatform + await defaultPlatform .bootstrapModule( await createModule([{provide: APP_INITIALIZER, useValue: () => promise, multi: true}]), ) .then((_) => { expect(initializerDone).toBe(true); }); - })); + }); - it('should rethrow sync errors even if the exceptionHandler is not rethrowing', waitForAsync(async () => { - defaultPlatform + it('should rethrow sync errors even if the exceptionHandler is not rethrowing', async () => { + await defaultPlatform .bootstrapModule( await createModule([ { @@ -507,10 +470,10 @@ describe('bootstrap', () => { expect(mockConsole.res[0].join('#')).toEqual('ERROR#Test'); }, ); - })); + }); - it('should rethrow promise errors even if the exceptionHandler is not rethrowing', waitForAsync(async () => { - defaultPlatform + it('should rethrow promise errors even if the exceptionHandler is not rethrowing', async () => { + await defaultPlatform .bootstrapModule( await createModule([ {provide: APP_INITIALIZER, useValue: () => Promise.reject('Test'), multi: true}, @@ -523,42 +486,42 @@ describe('bootstrap', () => { expect(mockConsole.res[0].join('#')).toEqual('ERROR#Test'); }, ); - })); + }); - it('should throw useful error when ApplicationRef is not configured', waitForAsync(() => { + it('should throw useful error when ApplicationRef is not configured', async () => { @NgModule() class EmptyModule {} - return defaultPlatform.bootstrapModule(EmptyModule).then( + await defaultPlatform.bootstrapModule(EmptyModule).then( () => fail('expecting error'), (error) => { expect(error.message).toMatch(/NG0402/); }, ); - })); + }); - it('should call the `ngDoBootstrap` method with `ApplicationRef` on the main module', waitForAsync(async () => { + it('should call the `ngDoBootstrap` method with `ApplicationRef` on the main module', async () => { const ngDoBootstrap = jasmine.createSpy('ngDoBootstrap'); - defaultPlatform + await defaultPlatform .bootstrapModule(await createModule({ngDoBootstrap: ngDoBootstrap})) .then((moduleRef) => { const appRef = moduleRef.injector.get(ApplicationRef); expect(ngDoBootstrap).toHaveBeenCalledWith(appRef); }); - })); + }); - it('should auto bootstrap components listed in @NgModule.bootstrap', waitForAsync(async () => { + it('should auto bootstrap components listed in @NgModule.bootstrap', async () => { defaultPlatform .bootstrapModule(await createModule({bootstrap: [SomeComponent]})) .then((moduleRef) => { const appRef: ApplicationRef = moduleRef.injector.get(ApplicationRef); expect(appRef.componentTypes).toEqual([SomeComponent]); }); - })); + }); - it('should error if neither `ngDoBootstrap` nor @NgModule.bootstrap was specified', waitForAsync(async () => { - defaultPlatform.bootstrapModule(await createModule({ngDoBootstrap: false})).then( - () => expect(false).toBe(true), + it('should error if neither `ngDoBootstrap` nor @NgModule.bootstrap was specified', async () => { + await defaultPlatform.bootstrapModule(await createModule({ngDoBootstrap: false})).then( + () => fail('expecting error'), (e) => { const expectedErrMsg = `NG0403: The module MyModule was bootstrapped, ` + @@ -569,26 +532,25 @@ describe('bootstrap', () => { expect(mockConsole.res[0].join('#')).toEqual('ERROR#Error: ' + expectedErrMsg); }, ); - })); + }); - it('should add bootstrapped module into platform modules list', waitForAsync(async () => { - defaultPlatform + it('should add bootstrapped module into platform modules list', async () => { + await defaultPlatform .bootstrapModule(await createModule({bootstrap: [SomeComponent]})) .then((module) => expect((defaultPlatform)._modules).toContain(module)); - })); + }); - it('should bootstrap with NoopNgZone', waitForAsync(async () => { - defaultPlatform + it('should bootstrap with NoopNgZone', async () => { + await defaultPlatform .bootstrapModule(await createModule({bootstrap: [SomeComponent]}), {ngZone: 'noop'}) .then((module) => { const ngZone = module.injector.get(NgZone); expect(ngZone instanceof NoopNgZone).toBe(true); }); - })); + }); it('should resolve component resources when creating module factory', async () => { @Component({ - selector: 'with-templates-app', templateUrl: '/test-template.html', standalone: false, }) @@ -605,23 +567,6 @@ describe('bootstrap', () => { expect(loadResourceSpy).toHaveBeenCalledWith('/test-template.html'); }); - it('should define `LOCALE_ID`', async () => { - @Component({ - selector: 'i18n-app', - templateUrl: '', - standalone: false, - }) - class I18nComponent {} - - const testModule = await createModule({ - component: I18nComponent, - providers: [{provide: LOCALE_ID, useValue: 'ro'}], - }); - await defaultPlatform.bootstrapModule(testModule); - - expect(getLocaleId()).toEqual('ro'); - }); - it('should wait for APP_INITIALIZER to set providers for `LOCALE_ID`', async () => { let locale: string = ''; @@ -638,11 +583,11 @@ describe('bootstrap', () => { describe('bootstrapModuleFactory', () => { let defaultPlatform: PlatformRef; - beforeEach(inject([PlatformRef], (_platform: PlatformRef) => { + beforeEach(() => { + defaultPlatform = TestBed.inject(PlatformRef); createRootEl(); - defaultPlatform = _platform; - })); - it('should wait for asynchronous app initializers', waitForAsync(async () => { + }); + it('should wait for asynchronous app initializers', async () => { let resolve: (result: any) => void; const promise: Promise = new Promise((res) => { resolve = res; @@ -661,9 +606,9 @@ describe('bootstrap', () => { defaultPlatform.bootstrapModuleFactory(moduleFactory).then((_) => { expect(initializerDone).toBe(true); }); - })); + }); - it('should rethrow sync errors even if the exceptionHandler is not rethrowing', waitForAsync(async () => { + it('should rethrow sync errors even if the exceptionHandler is not rethrowing', async () => { const moduleType = await createModule([ { provide: APP_INITIALIZER, @@ -678,9 +623,9 @@ describe('bootstrap', () => { // Error rethrown will be seen by the exception handler since it's after // construction. expect(mockConsole.res[0].join('#')).toEqual('ERROR#Test'); - })); + }); - it('should rethrow promise errors even if the exceptionHandler is not rethrowing', waitForAsync(async () => { + it('should rethrow promise errors even if the exceptionHandler is not rethrowing', async () => { const moduleType = await createModule([ {provide: APP_INITIALIZER, useValue: () => Promise.reject('Test'), multi: true}, ]); @@ -692,13 +637,12 @@ describe('bootstrap', () => { expect(mockConsole.res[0].join('#')).toEqual('ERROR#Test'); }, ); - })); + }); }); describe('attachView / detachView', () => { @Component({ template: '{{name}}', - standalone: false, }) class MyComp { name = 'Initial'; @@ -706,7 +650,6 @@ describe('bootstrap', () => { @Component({ template: '', - standalone: false, }) class ContainerComp { @ViewChild('vc', {read: ViewContainerRef}) vc!: ViewContainerRef; @@ -714,7 +657,6 @@ describe('bootstrap', () => { @Component({ template: 'Dynamic content', - standalone: false, }) class EmbeddedViewComp { @ViewChild(TemplateRef, {static: true}) tplRef!: TemplateRef; @@ -722,7 +664,6 @@ describe('bootstrap', () => { beforeEach(() => { TestBed.configureTestingModule({ - declarations: [MyComp, ContainerComp, EmbeddedViewComp], providers: [ {provide: ComponentFixtureNoNgZone, useValue: true}, provideZoneChangeDetection(), @@ -763,7 +704,6 @@ describe('bootstrap', () => { @Component({ template: '', host: {'[class]': 'clazz'}, - changeDetection: ChangeDetectionStrategy.OnPush, }) class HostBindingComp { clazz = 'initial'; @@ -829,20 +769,16 @@ describe('bootstrap', () => { }); describe('AppRef', () => { - describe('stability', () => { + describe('zone-based stability', () => { @Component({ - selector: 'sync-comp', template: `{{ text }}`, - standalone: false, }) class SyncComp { text: string = '1'; } @Component({ - selector: 'click-comp', template: `{{ text }}`, - standalone: false, }) class ClickComp { text: string = '1'; @@ -853,9 +789,7 @@ describe('AppRef', () => { } @Component({ - selector: 'micro-task-comp', template: `{{ text }}`, - standalone: false, changeDetection: ChangeDetectionStrategy.Eager, }) class MicroTaskComp { @@ -869,9 +803,7 @@ describe('AppRef', () => { } @Component({ - selector: 'macro-task-comp', template: `{{ text }}`, - standalone: false, changeDetection: ChangeDetectionStrategy.Eager, }) class MacroTaskComp { @@ -885,9 +817,7 @@ describe('AppRef', () => { } @Component({ - selector: 'micro-macro-task-comp', template: `{{ text }}`, - standalone: false, changeDetection: ChangeDetectionStrategy.Eager, }) class MicroMacroTaskComp { @@ -904,9 +834,7 @@ describe('AppRef', () => { } @Component({ - selector: 'macro-micro-task-comp', template: `{{ text }}`, - standalone: false, changeDetection: ChangeDetectionStrategy.Eager, }) class MacroMicroTaskComp { @@ -928,22 +856,10 @@ describe('AppRef', () => { stableCalled = false; TestBed.configureTestingModule({ providers: [provideZoneChangeDetection()], - declarations: [ - SyncComp, - MicroTaskComp, - MacroTaskComp, - MicroMacroTaskComp, - MacroMicroTaskComp, - ClickComp, - ], }); }); - afterEach(() => { - expect(stableCalled).toBe(true, 'isStable did not emit true on stable'); - }); - - function expectStableTexts(component: Type, expected: string[]) { + async function expectStableTexts(component: Type, expected: string[]) { const fixture = TestBed.createComponent(component); const appRef: ApplicationRef = TestBed.inject(ApplicationRef); const zone: NgZone = TestBed.inject(NgZone); @@ -951,37 +867,39 @@ describe('AppRef', () => { zone.run(() => appRef.tick()); let i = 0; + const {promise, resolve} = Promise.withResolvers(); const sub = appRef.isStable.subscribe({ next: (stable: boolean) => { if (stable) { expect(i).toBeLessThan(expected.length); expect(fixture.nativeElement).toHaveText(expected[i++]); - stableCalled = true; + resolve(); } }, }); fixture.debugElement.injector.get(DestroyRef).onDestroy(() => sub.unsubscribe()); + await promise; } - it('isStable should fire on synchronous component loading', waitForAsync(() => { - expectStableTexts(SyncComp, ['1']); - })); + it('isStable should fire on synchronous component loading', async () => { + await expectStableTexts(SyncComp, ['1']); + }); - it('isStable should fire after a microtask on init is completed', waitForAsync(() => { - expectStableTexts(MicroTaskComp, ['11']); - })); + it('isStable should fire after a microtask on init is completed', async () => { + await expectStableTexts(MicroTaskComp, ['11']); + }); - it('isStable should fire after a macrotask on init is completed', waitForAsync(() => { - expectStableTexts(MacroTaskComp, ['11']); - })); + it('isStable should fire after a macrotask on init is completed', async () => { + await expectStableTexts(MacroTaskComp, ['11']); + }); - it('isStable should fire only after chain of micro and macrotasks on init are completed', waitForAsync(() => { - expectStableTexts(MicroMacroTaskComp, ['111']); - })); + it('isStable should fire only after chain of micro and macrotasks on init are completed', async () => { + await expectStableTexts(MicroMacroTaskComp, ['111']); + }); - it('isStable should fire only after chain of macro and microtasks on init are completed', waitForAsync(() => { - expectStableTexts(MacroMicroTaskComp, ['111']); - })); + it('isStable should fire only after chain of macro and microtasks on init are completed', async () => { + await expectStableTexts(MacroMicroTaskComp, ['111']); + }); it('isStable can be subscribed to many times', async () => { const appRef: ApplicationRef = TestBed.inject(ApplicationRef); @@ -1019,19 +937,19 @@ describe('AppRef', () => { }); } - it('should be fired after app becomes unstable', waitForAsync(() => { + it('should be fired after app becomes unstable', async () => { const fixture = TestBed.createComponent(ClickComp); const appRef: ApplicationRef = TestBed.inject(ApplicationRef); const zone: NgZone = TestBed.inject(NgZone); appRef.attachView(fixture.componentRef.hostView); zone.run(() => appRef.tick()); - fixture.whenStable().then(() => { + await fixture.whenStable().then(() => { expectUnstable(appRef); const element = fixture.debugElement.children[0]; dispatchEvent(element.nativeElement, 'click'); }); - })); + }); }); }); }); @@ -1039,7 +957,7 @@ describe('AppRef', () => { describe('injector', () => { it('should expose an EnvironmentInjector', () => { @Component({ - standalone: false, + template: '', }) class TestCmp { constructor(readonly envInjector: EnvironmentInjector) {} diff --git a/packages/core/test/authoring/input_signal_spec.ts b/packages/core/test/authoring/input_signal_spec.ts index 801d80c750b2..41b965354dec 100644 --- a/packages/core/test/authoring/input_signal_spec.ts +++ b/packages/core/test/authoring/input_signal_spec.ts @@ -6,15 +6,14 @@ * found in the LICENSE file at https://angular.dev/license */ -import {Component, computed, effect, input} from '../../src/core'; import {SIGNAL} from '../../primitives/signals'; +import {Component, computed, effect, input} from '../../src/core'; import {TestBed} from '../../testing'; describe('input signal', () => { it('should properly notify live consumers (effect)', () => { @Component({ template: '', - standalone: false, }) class TestCmp { input = input(0); diff --git a/packages/core/test/bundling/animations-standalone/bundle.golden_symbols.json b/packages/core/test/bundling/animations-standalone/bundle.golden_symbols.json index e676e2c62d4b..ac160e8239aa 100644 --- a/packages/core/test/bundling/animations-standalone/bundle.golden_symbols.json +++ b/packages/core/test/bundling/animations-standalone/bundle.golden_symbols.json @@ -5,7 +5,6 @@ "ANIMATIONS", "ANIMATION_MODULE_TYPE", "ANIMATION_PREFIX", - "ANIMATION_QUEUE", "ANY_STATE", "APPLICATION_IS_STABLE_TIMEOUT", "APP_BOOTSTRAP_LISTENER", @@ -102,13 +101,13 @@ "ENVIRONMENT", "ENVIRONMENT_INITIALIZER", "EVENT_MANAGER_PLUGINS", - "EffectRefImpl", "EffectScheduler", "ElementInstructionMap", "ElementRef", "EmulatedEncapsulationDomRenderer2", "EnvironmentInjector", "EnvironmentNgModuleRefAdapter", + "ErrorBoundaryWrappedError", "ErrorHandler", "EventEmitter", "EventEmitter_", @@ -136,7 +135,6 @@ "LEAVE_TOKEN", "LEAVE_TOKEN_REGEX", "LOCALE_ID", - "LOCALE_ID", "MATH_ML_NAMESPACE", "MAXIMUM_REFRESH_RERUNS", "MAXIMUM_REFRESH_RERUNS", @@ -185,6 +183,7 @@ "ONE_FRAME_IN_MILLISECONDS", "ONE_SECOND", "ON_DESTROY_HOOKS", + "ON_ERROR", "ObjectUnsubscribedError", "Observable", "OperatorSubscriber", @@ -231,6 +230,7 @@ "SUBSTITUTION_EXPR_START", "SVG_NAMESPACE", "SafeSubscriber", + "SafeValueImpl", "Sanitizer", "ShadowDomRenderer", "SharedStylesHost", @@ -316,14 +316,11 @@ "addAfterRenderSequencesForView", "addClass", "addServerStyles", - "addToAnimationQueue", "addToEndOfViewTree", - "aggregateDescendantAnimations", "allLeavingAnimations", "allocExpando", "allocLFrame", "allowPreviousPlayerStylesMerge", - "angularZoneInstanceIdProperty", "animate", "animationFailed", "appendChild", @@ -368,10 +365,8 @@ "cleanUpView", "cloakAndComputeStyles", "cloakElement", - "collectAllViewLeaveAnimations", "collectNativeNodes", "collectNativeNodesInLContainer", - "collectNestedViewAnimations", "computeStaticStyling", "computeStyle", "concatStringsWithSpace", @@ -451,6 +446,7 @@ "domOnlyFirstCreatePass", "elementLikeEndShared", "elementLikeStartShared", + "encapsulateBoundaryError", "enterDI", "enterView", "epoch", @@ -463,7 +459,6 @@ "executeCheckHooks", "executeContentQueries", "executeInitAndCheckHooks", - "executeLeaveAnimations", "executeOnDestroys", "executeTemplate", "executeViewQueryFn", @@ -529,6 +524,7 @@ "getNodeInjectable", "getNullInjector", "getOrBorrowReactiveLViewConsumer", + "getOrCreateBaseRenderer", "getOrCreateComponentTView", "getOrCreateInjectable", "getOrCreateNodeInjectorForNode", @@ -557,6 +553,7 @@ "getUniqueLViewId", "handleStoppedNotification", "handleUnhandledError", + "handleViewError", "hasApplyArgsData", "hasClassInput", "hasDeps", @@ -626,6 +623,7 @@ "isDirectiveHost", "isElementNode", "isEnvironmentProviders", + "isErrorLike", "isExistingProvider", "isFactoryProvider", "isForwardRef", @@ -706,8 +704,8 @@ "nextBindingIndex", "nextNgElementId", "nextNotification", - "ngZoneInstanceId", "noSideEffects", + "nodeAnimationRuntime", "noop", "noop2", "normalizeAnimationEntry", @@ -753,7 +751,6 @@ "providerToFactory", "providerToRecord", "publishSignalConfiguration", - "queueEnterAnimations", "refreshContentQueries", "refreshView", "registerFailed", @@ -763,7 +760,6 @@ "registerPreOrderHooks", "relativePath", "remove", - "removeAnimationsFromQueue", "removeClass", "removeElements", "removeFromArray", @@ -786,7 +782,6 @@ "retrieveHydrationInfo", "reusedNodes", "roundOffset", - "runAfterLeaveAnimations", "runEffectsInView", "runInInjectionContext", "runLeaveAnimationsWithCallback", @@ -814,7 +809,6 @@ "setInjectImplementation", "setInputsFromAttrs", "setIsRefreshingViews", - "setLocaleId", "setPropertyAndInputs", "setRootDomAdapter", "setSelectedIndex", @@ -853,7 +847,9 @@ "unregisterLView", "unregisteredTrigger", "unsupportedTriggerEvent", + "unwrapImgVideoSrcValue", "unwrapRNode", + "unwrapSafeValue", "updateAncestorTraversalFlagsOnAttach", "updateMicroTaskStatus", "validateStyleParams", diff --git a/packages/core/test/bundling/create_component/bundle.golden_symbols.json b/packages/core/test/bundling/create_component/bundle.golden_symbols.json index 6fa3a7cdde31..e0ff6b189f4c 100644 --- a/packages/core/test/bundling/create_component/bundle.golden_symbols.json +++ b/packages/core/test/bundling/create_component/bundle.golden_symbols.json @@ -3,7 +3,6 @@ "main": [ "AFTER_RENDER_SEQUENCES_TO_ADD", "ANIMATIONS", - "ANIMATION_QUEUE", "APPLICATION_IS_STABLE_TIMEOUT", "APP_BOOTSTRAP_LISTENER", "APP_ID", @@ -67,12 +66,12 @@ "ENVIRONMENT", "ENVIRONMENT_INITIALIZER", "EVENT_MANAGER_PLUGINS", - "EffectRefImpl", "EffectScheduler", "ElementRef", "EmulatedEncapsulationDomRenderer2", "EnvironmentInjector", "EnvironmentNgModuleRefAdapter", + "ErrorBoundaryWrappedError", "ErrorHandler", "EventEmitter", "EventEmitter_", @@ -100,7 +99,6 @@ "InputFlags", "KeyEventsPlugin", "LOCALE_ID", - "LOCALE_ID", "MATH_ML_NAMESPACE", "MAXIMUM_REFRESH_RERUNS", "MAXIMUM_REFRESH_RERUNS", @@ -139,6 +137,7 @@ "NoopNgZone", "NullInjector", "ON_DESTROY_HOOKS", + "ON_ERROR", "ObjectUnsubscribedError", "Observable", "OperatorSubscriber", @@ -237,21 +236,17 @@ "_platformInjector", "_processI18nInsertBefore", "_retrieveHydrationInfoImpl", - "_stashEventListenerImpl", "_wasLastNodeCreated", "activeConsumer", "addAfterRenderSequencesForView", "addLViewToLContainer", "addServerStyles", - "addToAnimationQueue", "addToArray", "addToEndOfViewTree", "addViewToDOM", - "aggregateDescendantAnimations", "allLeavingAnimations", "allocExpando", "allocLFrame", - "angularZoneInstanceIdProperty", "appendChild", "applyContainer", "applyForeignNodes", @@ -284,10 +279,8 @@ "captureError", "checkStable", "cleanUpView", - "collectAllViewLeaveAnimations", "collectNativeNodes", "collectNativeNodesInLContainer", - "collectNestedViewAnimations", "computeStaticStyling", "concatStringsWithSpace", "config", @@ -359,6 +352,7 @@ "directiveHostEndFirstCreatePass", "directiveHostFirstCreatePass", "documentSupported", + "encapsulateBoundaryError", "enterDI", "enterView", "epoch", @@ -370,7 +364,6 @@ "executeCheckHooks", "executeContentQueries", "executeInitAndCheckHooks", - "executeLeaveAnimations", "executeListenerWithErrorHandling", "executeOnDestroys", "executeTemplate", @@ -379,7 +372,6 @@ "extractDefListOrFactory", "extractDirectiveDef", "finalizeConsumerAfterComputation", - "findExistingListener", "findMatchingDehydratedView", "forEachSingleProvider", "forkInnerZoneWithAngularBehavior", @@ -464,6 +456,7 @@ "handleStoppedNotification", "handleUncaughtError", "handleUnhandledError", + "handleViewError", "handledEventElements", "hasApplyArgsData", "hasDeps", @@ -512,7 +505,6 @@ "invokeDirectivesHostBindings", "invokeHostBindingsInCreationMode", "isAngularZoneProperty", - "isAnimationEventType", "isAnimationProp", "isApplicationBootstrapConfig", "isComponentDef", @@ -521,8 +513,8 @@ "isCurrentTNodeParent", "isDestroyed", "isDetachedByI18n", - "isDirectiveHost", "isEnvironmentProviders", + "isErrorLike", "isExistingProvider", "isFactoryProvider", "isForwardRef", @@ -555,7 +547,6 @@ "leavingNodes", "linkTNodeInTView", "listenToDirectiveOutput", - "listenToDomEvent", "listenToOutput", "locateDirectiveOrProvider", "locateHostElement", @@ -584,8 +575,8 @@ "nextBindingIndex", "nextNgElementId", "nextNotification", - "ngZoneInstanceId", "noSideEffects", + "nodeAnimationRuntime", "noop", "noop2", "normalizeBootstrapOptions", @@ -618,7 +609,7 @@ "providerToFactory", "providerToRecord", "publishSignalConfiguration", - "queueEnterAnimations", + "readInputFromDirective", "refreshContentQueries", "refreshView", "registerHostBindingOpCodes", @@ -627,7 +618,6 @@ "registerPreOrderHooks", "relativePath", "remove", - "removeAnimationsFromQueue", "removeElements", "removeFromArray", "removeLViewOnDestroy", @@ -644,7 +634,6 @@ "resolveForwardRef", "retrieveHydrationInfo", "reusedNodes", - "runAfterLeaveAnimations", "runEffectsInView", "runInInjectionContext", "runLeaveAnimationsWithCallback", @@ -668,7 +657,6 @@ "setInjectImplementation", "setInputsFromAttrs", "setIsRefreshingViews", - "setLocaleId", "setRootDomAdapter", "setSelectedIndex", "setShadowStylingInputFlags", @@ -687,7 +675,6 @@ "shouldSearchParent", "signalSetFn", "signalValueChanged", - "stashEventListenerImpl", "storeLViewOnDestroy", "storeListenerCleanup", "stringifyCSSSelector", diff --git a/packages/core/test/bundling/defer/bundle.golden_symbols.json b/packages/core/test/bundling/defer/bundle.golden_symbols.json index 10972b74c699..f9174f60fee5 100644 --- a/packages/core/test/bundling/defer/bundle.golden_symbols.json +++ b/packages/core/test/bundling/defer/bundle.golden_symbols.json @@ -59,7 +59,6 @@ "lazy": [ "AFTER_RENDER_SEQUENCES_TO_ADD", "ANIMATIONS", - "ANIMATION_QUEUE", "APPLICATION_IS_STABLE_TIMEOUT", "APP_BOOTSTRAP_LISTENER", "APP_ID", @@ -122,11 +121,11 @@ "ENABLE_ROOT_COMPONENT_BOOTSTRAP", "ENVIRONMENT", "ENVIRONMENT_INITIALIZER", - "EffectRefImpl", "EffectScheduler", "ElementRef", "EnvironmentInjector", "EnvironmentNgModuleRefAdapter", + "ErrorBoundaryWrappedError", "ErrorHandler", "EventEmitter", "EventEmitter_", @@ -147,7 +146,6 @@ "InputFlags", "LOADING_AFTER_SLOT", "LOCALE_ID", - "LOCALE_ID", "MATH_ML_NAMESPACE", "MAXIMUM_REFRESH_RERUNS", "MAXIMUM_REFRESH_RERUNS", @@ -185,6 +183,7 @@ "NullInjector", "ON_COMPLETE_FNS", "ON_DESTROY_HOOKS", + "ON_ERROR", "ObjectUnsubscribedError", "Observable", "OperatorSubscriber", @@ -287,15 +286,12 @@ "addAfterRenderSequencesForView", "addDepsToRegistry", "addLViewToLContainer", - "addToAnimationQueue", "addToArray", "addToEndOfViewTree", "addViewToDOM", - "aggregateDescendantAnimations", "allLeavingAnimations", "allocExpando", "allocLFrame", - "angularZoneInstanceIdProperty", "appendChild", "applyContainer", "applyDeferBlockState", @@ -329,10 +325,8 @@ "checkStable", "classIndexOf", "cleanUpView", - "collectAllViewLeaveAnimations", "collectNativeNodes", "collectNativeNodesInLContainer", - "collectNestedViewAnimations", "computeStaticStyling", "concatStringsWithSpace", "config", @@ -402,6 +396,7 @@ "domOnlyFirstCreatePass", "elementLikeEndShared", "elementLikeStartShared", + "encapsulateBoundaryError", "enterDI", "enterView", "epoch", @@ -412,7 +407,6 @@ "executeCheckHooks", "executeContentQueries", "executeInitAndCheckHooks", - "executeLeaveAnimations", "executeOnDestroys", "executeTemplate", "executeViewQueryFn", @@ -510,6 +504,7 @@ "handleStoppedNotification", "handleUncaughtError", "handleUnhandledError", + "handleViewError", "hasApplyArgsData", "hasClassInput", "hasDeps", @@ -561,6 +556,7 @@ "isDetachedByI18n", "isDirectiveHost", "isEnvironmentProviders", + "isErrorLike", "isExistingProvider", "isFactoryProvider", "isForwardRef", @@ -626,8 +622,8 @@ "nextBindingIndex", "nextNgElementId", "nextNotification", - "ngZoneInstanceId", "noSideEffects", + "nodeAnimationRuntime", "noop", "noop2", "normalizeBootstrapOptions", @@ -655,7 +651,6 @@ "providerToFactory", "providerToRecord", "publishSignalConfiguration", - "queueEnterAnimations", "refreshContentQueries", "refreshView", "registerHostBindingOpCodes", @@ -663,7 +658,6 @@ "registerPostOrderHooks", "registerPreOrderHooks", "remove", - "removeAnimationsFromQueue", "removeFromArray", "removeLViewFromLContainer", "removeLViewOnDestroy", @@ -682,7 +676,6 @@ "resolveForwardRef", "retrieveHydrationInfo", "reusedNodes", - "runAfterLeaveAnimations", "runEffectsInView", "runInInjectionContext", "runLeaveAnimationsWithCallback", @@ -709,7 +702,6 @@ "setInputsFromAttrs", "setIsRefreshingViews", "setLDeferBlockDetails", - "setLocaleId", "setSelectedIndex", "setShadowStylingInputFlags", "setTDeferBlockDetails", diff --git a/packages/core/test/bundling/forms_reactive/bundle.golden_symbols.json b/packages/core/test/bundling/forms_reactive/bundle.golden_symbols.json index f4128fd8914a..6649958e4d93 100644 --- a/packages/core/test/bundling/forms_reactive/bundle.golden_symbols.json +++ b/packages/core/test/bundling/forms_reactive/bundle.golden_symbols.json @@ -1,9 +1,9 @@ { "chunks": { "main": [ + "ABSTRACT_CONTROL", "AFTER_RENDER_SEQUENCES_TO_ADD", "ANIMATIONS", - "ANIMATION_QUEUE", "APPLICATION_IS_STABLE_TIMEOUT", "APP_BOOTSTRAP_LISTENER", "APP_ID", @@ -38,7 +38,6 @@ "CHILD_TAIL", "CIRCULAR", "CLEANUP", - "COMPILER_OPTIONS", "COMPLETE_NOTIFICATION", "COMPONENT_REGEX", "COMPONENT_VARIABLE", @@ -104,6 +103,7 @@ "EmulatedEncapsulationDomRenderer2", "EnvironmentInjector", "EnvironmentNgModuleRefAdapter", + "ErrorBoundaryWrappedError", "ErrorHandler", "EventEmitter", "EventEmitter_", @@ -141,7 +141,6 @@ "IterableDiffers", "KeyEventsPlugin", "LOCALE_ID", - "LOCALE_ID", "MATH_ML_NAMESPACE", "MAXIMUM_REFRESH_RERUNS", "MAXIMUM_REFRESH_RERUNS", @@ -195,6 +194,7 @@ "NoopNgZone", "NullInjector", "ON_DESTROY_HOOKS", + "ON_ERROR", "ObjectUnsubscribedError", "Observable", "OperatorSubscriber", @@ -220,6 +220,7 @@ "REMOVE_STYLES_ON_COMPONENT_DESTROY", "REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT", "RENDERER", + "REQUIRED_UNSET_VALUE", "REQUIRED_VALIDATOR", "ROOT_EFFECT_NODE", "ReactiveFormsComponent", @@ -230,7 +231,6 @@ "RendererFactory2", "RendererStyleFlags2", "RequiredValidator", - "ResourceParamsStatus", "RetrievingInjector", "RootComponent", "RuntimeError", @@ -281,7 +281,6 @@ "ViewContext", "ViewEncapsulation", "ViewRef", - "XSS_SECURITY_URL", "ZONELESS_ENABLED", "ZoneAwareEffectScheduler", "\\u0275FORM_CONTROL_INTEGRATION", @@ -345,7 +344,6 @@ "_isAndroid", "_isRefreshingViews", "_keyMap", - "_lastDefined", "_locateOrCreateAnchorNode", "_locateOrCreateContainerAnchor", "_locateOrCreateElementNode", @@ -363,16 +361,13 @@ "addAfterRenderSequencesForView", "addLViewToLContainer", "addServerStyles", - "addToAnimationQueue", "addToArray", "addToEndOfViewTree", "addValidators", "addViewToDOM", - "aggregateDescendantAnimations", "allLeavingAnimations", "allocExpando", "allocLFrame", - "angularZoneInstanceIdProperty", "appendChild", "applyContainer", "applyForeignNodes", @@ -421,16 +416,12 @@ "cleanUpView", "coerceToAsyncValidator", "coerceToValidator", - "collectAllViewLeaveAnimations", "collectNativeNodes", "collectNativeNodesInLContainer", - "collectNestedViewAnimations", "collectResidual", "collectStylingFromDirectives", "collectStylingFromTAttrs", "compileNgModuleFactory", - "componentDefPendingResolution", - "componentResourceResolutionQueue", "compose", "composeAsync", "composeAsyncValidators", @@ -528,6 +519,7 @@ "elementLikeEndShared", "elementLikeStartShared", "emailValidator", + "encapsulateBoundaryError", "enterDI", "enterView", "epoch", @@ -539,7 +531,6 @@ "executeCheckHooks", "executeContentQueries", "executeInitAndCheckHooks", - "executeLeaveAnimations", "executeListenerWithErrorHandling", "executeOnDestroys", "executeSchedule", @@ -579,7 +570,6 @@ "getBindingsEnabled", "getClosestRElement", "getClosureSafeProperty", - "getCompilerFacade", "getComponentDef", "getComponentId", "getComponentLViewByIndex", @@ -669,6 +659,7 @@ "handleStoppedNotification", "handleUncaughtError", "handleUnhandledError", + "handleViewError", "handledEventElements", "hasApplyArgsData", "hasClassInput", @@ -740,7 +731,6 @@ "isClassProvider", "isComponentDef", "isComponentHost", - "isComponentResourceResolutionQueueEmpty", "isContentQueryHost", "isCssClassMatching", "isCurrentTNodeParent", @@ -749,6 +739,7 @@ "isDirectiveHost", "isEmptyInputValue", "isEnvironmentProviders", + "isErrorLike", "isExistingProvider", "isFactoryProvider", "isFormControl", @@ -796,7 +787,6 @@ "isValueProvider", "iterateListLike", "iterator", - "jitOptions", "keyValueArrayGet", "keyValueArrayIndexOf", "keyValueArraySet", @@ -864,8 +854,8 @@ "nextNgElementId", "nextNotification", "ngOnChangesSetInput", - "ngZoneInstanceId", "noSideEffects", + "nodeAnimationRuntime", "noop", "noop2", "normalizeBootstrapOptions", @@ -913,7 +903,7 @@ "providerToRecord", "providersResolver", "publishSignalConfiguration", - "queueEnterAnimations", + "readInputFromDirective", "readableStreamLikeToAsyncGenerator", "refreshContentQueries", "refreshView", @@ -926,7 +916,6 @@ "relativePath", "rememberChangeHistoryAndInvokeOnChangesHook", "remove", - "removeAnimationsFromQueue", "removeElements", "removeFromArray", "removeLViewOnDestroy", @@ -944,13 +933,11 @@ "requiresRefreshOrTraversal", "resetConsumerBeforeComputation", "resetPreOrderHookFlags", - "resolveComponentResources", "resolveDirectives", "resolveForwardRef", "resolveProvider", "retrieveHydrationInfo", "reusedNodes", - "runAfterLeaveAnimations", "runEffect", "runEffectsInView", "runInInjectionContext", @@ -990,8 +977,6 @@ "setInjectImplementation", "setInputsFromAttrs", "setIsRefreshingViews", - "setJitOptions", - "setLocaleId", "setModuleBootstrapImpl", "setNativeDomProperty", "setPropertyAndInputs", @@ -1057,8 +1042,8 @@ "unregisterLView", "untracked", "untracked2", + "unwrapImgVideoSrcValue", "unwrapRNode", - "unwrapResponse", "unwrapSafeValue", "updateAncestorTraversalFlagsOnAttach", "updateControl", diff --git a/packages/core/test/bundling/forms_signals/BUILD.bazel b/packages/core/test/bundling/forms_signals/BUILD.bazel new file mode 100644 index 000000000000..bb6fce80af08 --- /dev/null +++ b/packages/core/test/bundling/forms_signals/BUILD.bazel @@ -0,0 +1,29 @@ +load("@rules_angular//src/optimization:index.bzl", "optimize_angular_app") +load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test") + +package(default_visibility = ["//visibility:public"]) + +optimize_angular_app( + name = "bundles", + srcs = [ + "main.ts", + ], + env = { + "NG_BUILD_MANGLE": "0", + }, + deps = [ + "//:node_modules/rxjs", + "//:node_modules/tslib", + "//packages/core/test/bundling:node_modules/@angular/build", + "//packages/core/test/bundling:node_modules/@angular/common", + "//packages/core/test/bundling:node_modules/@angular/core", + "//packages/core/test/bundling:node_modules/@angular/forms", + "//packages/core/test/bundling:node_modules/@angular/platform-browser", + ], +) + +js_expected_symbol_test( + name = "symbol_test", + bundles_dir = ":bundles", + golden = ":bundle.golden_symbols.json", +) diff --git a/packages/core/test/bundling/forms_signals/bundle.golden_symbols.json b/packages/core/test/bundling/forms_signals/bundle.golden_symbols.json new file mode 100644 index 000000000000..6205f5f0cd5a --- /dev/null +++ b/packages/core/test/bundling/forms_signals/bundle.golden_symbols.json @@ -0,0 +1,1083 @@ +{ + "chunks": { + "main": [ + "ABSTRACT_CONTROL", + "AFTER_RENDER_PHASES", + "AFTER_RENDER_PHASE_EFFECT_NODE", + "AFTER_RENDER_SEQUENCES_TO_ADD", + "ANIMATIONS", + "APPLICATION_IS_STABLE_TIMEOUT", + "APP_BOOTSTRAP_LISTENER", + "APP_ID", + "APP_ID_ATTRIBUTE_NAME", + "APP_INITIALIZER", + "AbstractControlDirective", + "AbstractLogic", + "AbstractLogicNodeBuilder", + "AbstractValidatorDirective", + "AfterRenderEffectSequence", + "AfterRenderImpl", + "AfterRenderManager", + "AfterRenderSequence", + "AnimationInputValidityMonitor", + "AnonymousSubject", + "ApplicationInitStatus", + "ApplicationRef", + "ArrayMergeIgnoreLogic", + "ArrayMergeLogic", + "BASE_EFFECT_NODE", + "BINDING", + "BLOOM_BUCKET_BITS", + "BLOOM_MASK", + "BLOOM_SIZE", + "BROWSER_MODULE_PROVIDERS", + "BaseControlValueAccessor", + "BaseNgValidationError", + "BasicFieldAdapter", + "BehaviorSubject", + "BooleanOrLogic", + "BrowserDomAdapter", + "BuiltInControlValueAccessor", + "CHILD_HEAD", + "CHILD_TAIL", + "CIRCULAR", + "CLEANUP", + "COMPLETE_NOTIFICATION", + "COMPONENT_REGEX", + "COMPONENT_VARIABLE", + "COMPOSITION_BUFFER_MODE", + "COMPUTED_NODE", + "COMPUTING", + "CONTAINER_HEADER_OFFSET", + "CONTENT_ATTR", + "CONTEXT", + "CONTROL_BINDING_NAMES", + "CONTROL_BINDING_TO_FIELD_STATE_KEY", + "CSP_NONCE", + "CSS_VAR_NAMESPACE", + "ChainedInjector", + "ChangeDetectionScheduler", + "ChangeDetectionSchedulerImpl", + "ChangeDetectionStrategy", + "ChangeDetectorRef", + "ChildFieldNodeStructure", + "CompatValidationError", + "ComponentFactory", + "ComponentRef", + "ComponentRef2", + "CompositeLogicNode", + "ConsumerObserver", + "ControlDirectiveHostImpl", + "ControlEvent", + "DEBOUNCER", + "DEBUG_TASK_TRACKER", + "DECLARATION_COMPONENT_VIEW", + "DECLARATION_LCONTAINER", + "DECLARATION_VIEW", + "DEFAULT_APP_ID", + "DEFAULT_LOCALE_ID", + "DEFAULT_VALUE_ACCESSOR", + "DEFER_BLOCK_ID", + "DEHYDRATED_VIEWS", + "DI_DECORATOR_FLAG", + "DOCUMENT", + "DOCUMENT2", + "DYNAMIC", + "DefaultDomRenderer2", + "DefaultValueAccessor", + "DestroyRef", + "DomAdapter", + "DomEventsPlugin", + "DomRendererFactory2", + "EFFECTS", + "EFFECTS_TO_SCHEDULE", + "EFFECT_NODE", + "EMAIL_REGEXP", + "EMBEDDED_VIEW_INJECTOR", + "EMPTY", + "EMPTY_ARRAY", + "EMPTY_CLEANUP_SET", + "EMPTY_OBJ", + "EMPTY_OBSERVER", + "EMPTY_PAYLOAD", + "EMPTY_SUBSCRIPTION", + "ENABLE_ROOT_COMPONENT_BOOTSTRAP", + "ENVIRONMENT", + "ENVIRONMENT_INITIALIZER", + "ERRORED", + "EVENT_MANAGER_PLUGINS", + "EffectRefImpl", + "EffectScheduler", + "ElementRef", + "EmulatedEncapsulationDomRenderer2", + "EnvironmentInjector", + "EnvironmentNgModuleRefAdapter", + "ErrorBoundaryWrappedError", + "ErrorHandler", + "EventEmitter", + "EventEmitter_", + "EventManager", + "EventManagerPlugin", + "FALSE", + "FALSE_SIGNAL", + "FIELD_PATH_PROXY_HANDLER", + "FIELD_PROXY_HANDLER", + "FIELD_STATE_KEY_TO_CONTROL_BINDING", + "FIELD_TREE", + "FLAGS", + "FORM_FIELD", + "FieldMetadataState", + "FieldNode", + "FieldNodeContext", + "FieldNodeState", + "FieldNodeStructure", + "FieldPathNode", + "FieldSubmitState", + "FieldValidationState", + "FormField", + "FormFieldManager", + "FormResetEvent", + "HEADER_OFFSET", + "HOST", + "HOST_ATTR", + "HYDRATION", + "ID", + "IGNORED", + "INJECTOR", + "INJECTOR", + "INJECTOR_DEF_TYPES", + "INJECTOR_SCOPE", + "INPUT_SIGNAL_NODE", + "INTERNAL_APPLICATION_ERROR_HANDLER", + "INTERNAL_BROWSER_PLATFORM_PROVIDERS", + "IS_ASYNC_VALIDATION_RESOURCE", + "InjectionToken", + "Injector", + "InputFlags", + "InputValidityMonitor", + "InteropNgControl", + "KeyEventsPlugin", + "LINKED_SIGNAL_NODE", + "LOCALE_ID", + "LeafLogicNode", + "LiveCollection", + "LiveCollectionLContainerImpl", + "LogicContainer", + "LogicNodeBuilder", + "MATH_ML_NAMESPACE", + "MAX", + "MAXIMUM_REFRESH_RERUNS", + "MAXIMUM_REFRESH_RERUNS", + "MAX_LENGTH", + "MIN", + "MIN_LENGTH", + "MODIFIER_KEYS", + "MODIFIER_KEY_GETTERS", + "MONKEY_PATCH_KEY_NAME", + "MOVED_VIEWS", + "MetadataKey", + "MetadataMergeLogic", + "MetadataReducer", + "NAMESPACE_URIS", + "NATIVE", + "NEXT", + "NG_COMP_DEF", + "NG_DIR_DEF", + "NG_ELEMENT_ID", + "NG_ENV_ID", + "NG_FACTORY_DEF", + "NG_INJ_DEF", + "NG_PIPE_DEF", + "NG_PROV_DEF", + "NG_RUNTIME_ERROR_CODE", + "NG_RUNTIME_ERROR_MESSAGE", + "NG_TEMPLATE_SELECTOR", + "NG_TOKEN_PATH", + "NG_VALIDATORS", + "NG_VALUE_ACCESSOR", + "NOT_FOUND", + "NOT_FOUND2", + "NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR", + "NOT_SET", + "NOT_YET", + "NO_CHANGE", + "NO_PARENT_INJECTOR", + "NULL_INJECTOR", + "NUM_ROOT_NODES", + "NativeInputParseError", + "NgControl", + "NgModuleRef", + "NgOnChangesFeatureImpl", + "NgZone", + "NodeInjector", + "NodeInjectorDestroyRef", + "NodeInjectorFactory", + "NonMergeableLogicNodeBuilder", + "NoneEncapsulationDomRenderer", + "NoopNgZone", + "NullInjector", + "ON_DESTROY_HOOKS", + "ON_ERROR", + "ORPHAN_TOKEN", + "ObjectUnsubscribedError", + "Observable", + "OperatorSubscriber", + "PARENT", + "PATH", + "PATTERN", + "PLATFORM_BROWSER_ID", + "PLATFORM_DESTROY_LISTENERS", + "PLATFORM_ID", + "PLATFORM_INITIALIZER", + "PREORDER_HOOK_FLAGS", + "PRESERVE_HOST_CONTENT", + "PRESERVE_HOST_CONTENT_DEFAULT", + "PendingTasksInternal", + "ProfilerEvent", + "QUERIES", + "R3Injector", + "REACTIVE_LVIEW_CONSUMER_NODE", + "REACTIVE_NODE", + "REACTIVE_TEMPLATE_CONSUMER", + "REGISTER_WEBMCP_FORM", + "REMOVE_STYLES_ON_COMPONENT_DESTROY", + "REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT", + "RENDERER", + "REQUIRED", + "REQUIRED_UNSET_VALUE", + "REQUIRED_VALIDATOR", + "ROOT_EFFECT_NODE", + "ROOT_KEY_IN_PARENT", + "ROOT_PATH_KEYS", + "ReactiveValidationError", + "Renderer2", + "RendererFactory2", + "RendererStyleFlags2", + "RepeaterContext", + "RepeaterMetadata", + "RequiredValidationError", + "RequiredValidator", + "RetrievingInjector", + "RootComponent", + "RootFieldNodeStructure", + "RuntimeError", + "SCHEDULE_IN_ROOT_ZONE", + "SCHEDULE_IN_ROOT_ZONE_DEFAULT", + "SHARED_STYLES_HOST", + "SIGNAL", + "SIGNAL_FORMS_CONFIG", + "SIGNAL_NODE", + "SIMPLE_CHANGES_STORE", + "STABILITY_WARNING_THRESHOLD", + "SVG_NAMESPACE", + "SafeSubscriber", + "SafeValueImpl", + "Sanitizer", + "SchemaImpl", + "ShadowDomRenderer", + "SharedStylesHost", + "SignalFormsComponent", + "SignalFormsComponent_For_13_Template", + "SimpleChange", + "StandaloneService", + "Subject", + "Subscriber", + "Subscription", + "TEMPORARY_CONSUMER_NODE", + "TESTABILITY", + "THROW_IF_NOT_FOUND", + "TRACKED_LVIEWS", + "TVIEW", + "TYPE", + "T_HOST", + "TracingAction", + "TracingService", + "UNSET", + "USE_VALUE", + "UniqueValueMultiKeyMap", + "UnsubscriptionError", + "VIEW_EFFECT_NODE", + "VIEW_REFS", + "Validators", + "ViewContext", + "ViewEncapsulation", + "ViewRef", + "ZONELESS_ENABLED", + "ZoneAwareEffectScheduler", + "\\u0275FORM_CONTROL_INTEGRATION", + "\\u0275NgFieldDirective", + "\\u0275\\u0275ControlFeature", + "\\u0275\\u0275InheritDefinitionFeature", + "\\u0275\\u0275NgOnChangesFeature", + "\\u0275\\u0275ProvidersFeature", + "\\u0275\\u0275advance", + "\\u0275\\u0275attribute", + "\\u0275\\u0275control", + "\\u0275\\u0275controlCreate", + "\\u0275\\u0275defineComponent", + "\\u0275\\u0275defineDirective", + "\\u0275\\u0275defineInjectable", + "\\u0275\\u0275defineService", + "\\u0275\\u0275directiveInject", + "\\u0275\\u0275element", + "\\u0275\\u0275elementEnd", + "\\u0275\\u0275elementStart", + "\\u0275\\u0275getInheritedFactory", + "\\u0275\\u0275inject", + "\\u0275\\u0275listener", + "\\u0275\\u0275property", + "\\u0275\\u0275repeater", + "\\u0275\\u0275repeaterCreate", + "\\u0275\\u0275repeaterTrackByIdentity", + "\\u0275\\u0275text", + "_DOM", + "_THROW_IF_NOT_FOUND", + "__asyncGenerator", + "__asyncValues", + "__await", + "__awaiter", + "__defNormalProp", + "__defProp", + "__defProps", + "__forward_ref__", + "__getOwnPropDescs", + "__getOwnPropSymbols", + "__hasOwnProp", + "__propIsEnum", + "__spreadProps", + "__spreadValues", + "__values", + "_applyRootElementTransformImpl", + "_bind", + "_callAndReportToErrorHandler", + "_currentInjector", + "_document", + "_findAndReconcileMatchingDehydratedViewsImpl", + "_findMatchingDehydratedViewImpl", + "_getInsertInFrontOfRNodeWithI18n", + "_icuContainerIterate", + "_injectImplementation", + "_isAndroid", + "_isRefreshingViews", + "_keyMap", + "_locateOrCreateContainerAnchor", + "_locateOrCreateElementNode", + "_locateOrCreateTextNode", + "_ngOnChangesFeatureImpl", + "_platformInjector", + "_populateDehydratedViewsInLContainer", + "_processI18nInsertBefore", + "_retrieveHydrationInfoImpl", + "_stashEventListenerImpl", + "_wasLastNodeCreated", + "activeConsumer", + "addAfterRenderSequencesForView", + "addDefaultField", + "addLViewToLContainer", + "addServerStyles", + "addToArray", + "addToEndOfViewTree", + "addViewToDOM", + "afterRenderEffect", + "allLeavingAnimations", + "allocExpando", + "allocLFrame", + "appendChild", + "applyContainer", + "applyForeignNodes", + "applyNodes", + "applyProjectionRecursive", + "applyRootElementTransform", + "applyToElementOrContainer", + "applyValueToInputField", + "applyView", + "areAnimationSupported", + "argsArgArrayOrObject", + "arrRemove", + "assertNotDestroyed", + "assertNotScriptHostElement", + "assertPathIsCurrent", + "assertTypeDefined", + "attachPatchData", + "attachPreviouslyDetached", + "baseElement", + "bind", + "bindLevel", + "bindingUpdated", + "bindingUpdated2", + "bloomAdd", + "bloomHasToken", + "bloomHashBitOrFactory", + "booleanAttribute", + "bootstrap", + "bootstrapApplication", + "borrowReactiveLViewConsumer", + "boundPathDepth", + "cacheMatchingLocalNames", + "calculateValidationSelfStatus", + "callHook", + "callHookInternal", + "callHooks", + "callOrApply", + "cancelLeavingNodes", + "captureError", + "checkStable", + "classIndexOf", + "cleanUpView", + "clearDetachAnimationList", + "clearViewDetachAnimations", + "clobberedElementError", + "collectNativeNodes", + "collectNativeNodesInLContainer", + "compareErrorPosition", + "compiledSchemas", + "compose", + "composeAsync", + "composeAsyncValidators", + "composeValidators", + "computeStaticStyling", + "computed", + "concatStringsWithSpace", + "config", + "configureViewWithDirective", + "consumerAfterComputation", + "consumerBeforeComputation", + "consumerDestroy", + "consumerIsLive", + "consumerMarkDirty", + "consumerPollProducersForChange", + "context", + "controlCreateInternal", + "controlUpdateInternal", + "convertToBitFlags", + "convertToInjectOptions", + "couldBeInjectableType", + "createAndRenderEmbeddedLView", + "createBindings", + "createComponentLView", + "createComputed", + "createContainerAnchorImpl", + "createDirectivesInstances", + "createEffectFn", + "createElementNode", + "createElementRef", + "createEnvironmentInjector", + "createErrorClass", + "createHostElement", + "createInjector", + "createInjectorWithoutInjectorInstances", + "createInputSignal", + "createInvalidObservableTypeError", + "createLContainer", + "createLFrame", + "createLView", + "createLimitSelectionKey", + "createLinkElement", + "createLinkedSignal", + "createLogic", + "createMetadataKey", + "createNodeInjector", + "createNotification", + "createObject", + "createOperatorSubscriber", + "createOrAttach", + "createOrReusePlatformInjector", + "createParser", + "createPlatformInjector", + "createProvidersConfig", + "createRootEffect", + "createRootLViewEnvironment", + "createRootTView", + "createRootViewInjector", + "createRuntimeError", + "createSignal", + "createStyleElement", + "createTNode", + "createTNodeAtIndex", + "createTView", + "createTextNode", + "createViewBlueprint", + "createViewEffect", + "createViewRef", + "currentCompilingNode", + "customControlCreate", + "cvaControlCreate", + "cyclicDependencyError", + "declareNoDirectiveHostTemplate", + "decreaseElementDepthCount", + "deepForEach", + "deepForEachProvider", + "deepSignal", + "defaultEquals", + "defaultErrorHandler", + "defaultThrowError", + "delayChangeDetectionForEvents", + "destroyLView", + "destroyViewTree", + "detachExistingView", + "detachMovedView", + "detachView", + "detachViewFromDOM", + "detectChangesInChildComponents", + "detectChangesInComponent", + "detectChangesInEmbeddedViews", + "detectChangesInView", + "detectChangesInViewIfAttached", + "detectChangesInViewWhileDirty", + "detectChangesInternal", + "diPublicInInjector", + "directiveHostEndFirstCreatePass", + "directiveHostFirstCreatePass", + "disabled", + "documentSupported", + "effect", + "elementAcceptsMinMax", + "elementAttributeInternal", + "elementLikeEndShared", + "elementLikeStartShared", + "emailValidator", + "encapsulateBoundaryError", + "enterDI", + "enterView", + "epoch", + "errorContext", + "errorHandler", + "errorHandlerEnvironmentInitializer", + "errorNotification", + "execFinalizer", + "executeCheckHooks", + "executeContentQueries", + "executeInitAndCheckHooks", + "executeListenerWithErrorHandling", + "executeOnDestroys", + "executeSchedule", + "executeTemplate", + "executeValidators", + "executeViewQueryFn", + "extractAttrsAndClassesFromSelector", + "extractDefListOrFactory", + "extractDirectiveDef", + "fillProperties", + "finalizeConsumerAfterComputation", + "findAndReconcileMatchingDehydratedViews", + "findAttrIndexInNode", + "findDirectiveDefMatches", + "findExistingListener", + "findMatchingDehydratedView", + "firstInDom", + "forEachSingleProvider", + "forkInnerZoneWithAngularBehavior", + "forkJoin", + "form", + "formatDateForInput", + "formatDateForMinMax", + "formatRuntimeError", + "formatRuntimeErrorCode", + "forwardRef", + "freeConsumers", + "from", + "fromArrayLike", + "fromAsyncIterable", + "fromInteropObservable", + "fromIterable", + "fromPromise", + "fromReadableStreamLike", + "getActiveConsumer", + "getAllChildBuilders", + "getBaseElementHref", + "getBeforeNodeForView", + "getBindingsEnabled", + "getBoundPathDepth", + "getClosestRElement", + "getClosureSafeProperty", + "getComponentDef", + "getComponentId", + "getComponentLViewByIndex", + "getComponentName", + "getConstant", + "getControlAsyncValidators", + "getControlValidators", + "getCurrentDirectiveIndex", + "getCurrentInjector", + "getCurrentParentTNode", + "getCurrentTNode", + "getCurrentTNodePlaceholderOk", + "getDOM", + "getDeclarationTNode", + "getDeclarationView", + "getDirectiveDef", + "getDocument", + "getElementDepthCount", + "getExistingLViewFromLContainer", + "getExistingTNode", + "getFactoryDef", + "getFactoryOf", + "getFirstBoundElement", + "getFirstLContainer", + "getFirstNativeNode", + "getGlobalLocale", + "getHostDirectives", + "getInheritedInjectableDef", + "getInitialLViewFlagsFromDef", + "getInjectFlag", + "getInjectImplementation", + "getInjectableDef", + "getInjectorDef", + "getInjectorIndex", + "getInsertInFrontOfRNode", + "getInsertInFrontOfRNodeWithNoI18n", + "getLContainer", + "getLView", + "getLViewFromLContainer", + "getLViewParent", + "getNameOnlyMarkerIndex", + "getNamespace", + "getNativeByTNode", + "getNativeControlValue", + "getNearestLContainer", + "getNextLContainer", + "getNextSibling", + "getNgDirectiveDef", + "getNgOnChangesFeatureImpl", + "getNodeInjectable", + "getNullInjector", + "getOption", + "getOrBorrowReactiveLViewConsumer", + "getOrCreateComponentTView", + "getOrCreateInjectable", + "getOrCreateLViewCleanup", + "getOrCreateNodeInjectorForNode", + "getOrCreateTNode", + "getOrCreateTViewCleanup", + "getOrCreateTemporaryConsumer", + "getOwnDefinition", + "getParentInjectorIndex", + "getParentInjectorLocation", + "getParentInjectorView", + "getParentInjectorViewOffset", + "getParentRElement", + "getPipeDef", + "getProjectionNodes", + "getPromiseCtor", + "getRootTViewTemplate", + "getRuntimeErrorCode", + "getSelectedIndex", + "getSelectedTNode", + "getSimpleChangesStore", + "getStyleHost", + "getSuperType", + "getSymbolIterator", + "getTNode", + "getTNodeFromLView", + "getTView", + "getUndecoratedInjectableFactory", + "getUniqueLViewId", + "handleStoppedNotification", + "handleUncaughtError", + "handleUnhandledError", + "handleViewError", + "handledEventElements", + "hasApplyArgsData", + "hasClassInput", + "hasDeps", + "hasInSkipHydrationBlockFlag", + "hasInput", + "hasLift", + "hasModelInput", + "hasOnDestroy", + "hasOutput", + "hasParentInjector", + "hasStyleInput", + "hasTagAndTypeMatch", + "icuContainerIterate", + "identity", + "identityFn", + "importProvidersFrom", + "inNotificationPhase", + "inParamsFunction", + "includeViewProviders", + "increaseElementDepthCount", + "incrementInitPhaseFlags", + "indexOf", + "inferTagNameFromDefinition", + "inheritContentQueries", + "inheritHostBindings", + "inheritViewQuery", + "initDomAdapter", + "initFeatures", + "initLiveItemsInTheFuture", + "initTNodeFlags", + "initViewDetachAnimations", + "initializeControlFirstCreatePass", + "initializeCustomControlStatus", + "initializeDirectives", + "initializeElement", + "initializeInputAndOutputAliases", + "inject2", + "injectArgs", + "injectChangeDetectorRef", + "injectDestroyRef", + "injectElementRef", + "injectInjectorOnly", + "injectRenderer2", + "injectRootLimpMode", + "injectViewContext", + "injectableDefOrInjectorDefFactory", + "innerFrom", + "input", + "inputFunction", + "inputRequiredFunction", + "inputRequiresValidityTracking", + "insertBloom", + "insertView", + "instantiateAllDirectives", + "instructionState", + "internalCreateApplication", + "internalImportProvidersFrom", + "invokeDirectivesHostBindings", + "invokeHostBindingsInCreationMode", + "isAbstractControl", + "isAngularZoneProperty", + "isAnimationEventType", + "isAnimationProp", + "isApplicationBootstrapConfig", + "isArray3", + "isArrayLike", + "isAsyncIterable", + "isBuiltInAccessor", + "isClassProvider", + "isComponentDef", + "isComponentHost", + "isContentQueryHost", + "isCssClassMatching", + "isCurrentTNodeParent", + "isDefinedPredicate", + "isDestroyed", + "isDetachedByI18n", + "isDirectiveHost", + "isEmpty", + "isEmptyInputValue", + "isEnvironmentProviders", + "isErrorLike", + "isExistingProvider", + "isFactoryProvider", + "isForwardRef", + "isFunction", + "isInI18nBlock", + "isInInjectionContext", + "isInParamsFunction", + "isInSkipHydrationBlock", + "isInlineTemplate", + "isInput", + "isInputBinding", + "isInteropObservable", + "isIterable", + "isLContainer", + "isLView", + "isNameOnlyAttributeMarker", + "isNativeFormElement", + "isNodeMatchingSelector", + "isNodeMatchingSelectorList", + "isNotFound", + "isObject", + "isObserver", + "isPOJO", + "isPositive", + "isPresent", + "isPromise", + "isPromise2", + "isReadableStreamLike", + "isRefreshingViews", + "isRelevantSelectMutation", + "isRootView", + "isSchedulerTick", + "isSchemaOrSchemaFn", + "isSkipHydrationRootTNode", + "isSubscribable", + "isSubscriber", + "isSubscription", + "isTemplateNode", + "isTextualFormElement", + "isTypeProvider", + "isValidatorFn", + "isValidatorObject", + "isValueProvider", + "iterator", + "last", + "lastNodeWasCreated", + "lastSelectedElementIdx", + "leaveDI", + "leaveSkipHydrationBlock", + "leaveView", + "leaveViewLight", + "leavingNodes", + "lengthOrSize", + "linkTNodeInTView", + "linkedSignal", + "linkedSignalSetFn", + "linkedSignalUpdateFn", + "listenToDirectiveOutput", + "listenToDomEvent", + "listenToOutput", + "listenerInternal", + "locateDirectiveOrProvider", + "locateHostElement", + "lookupTokenUsingEmbeddedInjector", + "lookupTokenUsingModuleInjector", + "lookupTokenUsingNodeInjector", + "makeEnvironmentProviders", + "makeRecord", + "map", + "mapOneOrManyArgs", + "mapPropName", + "markAncestorsForTraversal", + "markAsComponentHost", + "markDirtyIfOnPush", + "markEventHandledForElement", + "markTransplantedViewsForRefresh", + "markViewDirty", + "markViewForRefresh", + "markedFeatures", + "matchTemplateAttribute", + "maxLengthValidator", + "maxValidator", + "maybeInitDetachAnimationList", + "maybeQueueEnterAnimation", + "maybeRemoveStaleArrayFields", + "maybeRemoveStaleObjectFields", + "maybeReturnReactiveLViewConsumer", + "maybeUnwrapEmpty", + "maybeWrapInNotSelector", + "mergeErrors", + "mergeHostAttribute", + "mergeHostAttrs", + "mergeHostAttrsAcrossInheritance", + "mergeInputsWithTransforms", + "mergeValidators", + "metadata", + "minLengthValidator", + "minValidator", + "moduleBootstrapImpl", + "multiFactory", + "multiFactoryAdd", + "multiProvidersFactoryResolver", + "multiResolve", + "multiViewProvidersFactoryResolver", + "nativeAppendChild", + "nativeAppendOrInsertBefore", + "nativeControlCreate", + "nativeInsertBefore", + "nativeRemoveNode", + "nextBindingIndex", + "nextFormId", + "nextNgElementId", + "nextNotification", + "ngOnChangesSetInput", + "noSideEffects", + "nodeAnimationRuntime", + "noop", + "noop2", + "normalizeBootstrapOptions", + "normalizeErrors", + "normalizeErrors2", + "normalizeFormArgs", + "normalizeValidators", + "notFoundValueOrThrow", + "nullValidator", + "observable", + "observeOn", + "observeSelectMutations", + "onEnter", + "onLeave", + "operate", + "override", + "parseAndConvertInputsForDefinition", + "parseAndConvertOutputsForDefinition", + "parseCookieValue", + "patternValidator", + "performanceMarkFeature", + "pipeFromArray", + "popResultSelector", + "populateDehydratedViewsInLContainer", + "postProducerCreatedFn", + "postSignalSetFn", + "process", + "processCleanups", + "processHostBindingOpCodes", + "processInjectorTypesWithProviders", + "producerAccessed", + "producerAddLiveConsumer", + "producerIncrementEpoch", + "producerMarkClean", + "producerNotifyConsumers", + "producerRemoveLiveConsumerLink", + "producerUpdateValueVersion", + "producerUpdatesAllowed", + "profiler", + "profilerCallbacks", + "projectNodes", + "provideZonelessChangeDetection", + "provideZonelessChangeDetectionInternal", + "providerToFactory", + "providerToRecord", + "providersResolver", + "publishSignalConfiguration", + "reactiveErrorsToSignalErrors", + "readFieldStateBindingValue", + "readInputFromDirective", + "readableStreamLikeToAsyncGenerator", + "reconcile", + "refreshContentQueries", + "refreshView", + "registerDestroyHooksIfSupported", + "registerHostBindingOpCodes", + "registerLView", + "registerOnValidatorChange", + "registerPostOrderHooks", + "registerPreOrderHooks", + "relativePath", + "rememberChangeHistoryAndInvokeOnChangesHook", + "remove", + "removeDehydratedView", + "removeDehydratedViews", + "removeElements", + "removeFromArray", + "removeLViewFromLContainer", + "removeLViewOnDestroy", + "removeViewFromDOM", + "renderChildComponents", + "renderComponent", + "renderStringify", + "renderView", + "reportUnhandledError", + "required", + "requiredError", + "requiredTrueValidator", + "requiredValidator", + "requiresRefreshOrTraversal", + "resetConsumerBeforeComputation", + "resetPreOrderHookFlags", + "resolveDirectives", + "resolveForwardRef", + "resolveProvider", + "retrieveHydrationInfo", + "reusedNodes", + "runEffect", + "runEffectsInView", + "runInInjectionContext", + "runLeaveAnimationsWithCallback", + "runPlatformInitializers", + "runPostProducerCreatedFn", + "saveNameToExportMap", + "saveResolvedLocalsInData", + "scheduleArray", + "scheduleAsyncIterable", + "scheduleCallbackWithMicrotask", + "scheduleCallbackWithRafRace", + "scheduleIterable", + "scheduleObservable", + "schedulePromise", + "scheduleReadableStreamLike", + "scheduled", + "searchTokensOnInjector", + "selectIndexInternal", + "selectValueAccessor", + "setActiveConsumer", + "setAllInputsForProperty", + "setBindingIndex", + "setBindingRootForHostBindings", + "setBoundPathDepthForResolution", + "setCurrentDirectiveIndex", + "setCurrentInjector", + "setCurrentQueryIndex", + "setCurrentTNode", + "setCurrentTNodeAsNotParent", + "setDirectiveInput", + "setDirectiveInputsWhichShadowsStyling", + "setDocument", + "setDomProperty", + "setElementAttribute", + "setInParamsFunction", + "setIncludeViewProviders", + "setInjectImplementation", + "setInputsFromAttrs", + "setIsRefreshingViews", + "setNativeControlValue", + "setNativeDomProperty", + "setNativeNumberControlValue", + "setPropertyAndInputs", + "setRootDomAdapter", + "setSelectedIndex", + "setShadowStylingInputFlags", + "setSimpleChangesStore", + "setThrowInvalidWriteToSignalError", + "setUpAttributes", + "setUpValidators", + "setupHostDirectiveInputsOrOutputs", + "setupInitialInputs", + "setupSelectorMatchedInputsOrOutputs", + "setupStaticAttributes", + "shadowRootSupported", + "shallowArrayEquals", + "shimContentAttribute", + "shimHostAttribute", + "shimStylesContent", + "shortCircuitFalse", + "shortCircuitTrue", + "shouldAddViewToDom", + "shouldBeIgnoredByZone", + "shouldSearchParent", + "signal", + "signalAsReadonlyFn", + "signalErrorsToValidationErrors", + "signalGetFn", + "signalSetFn", + "signalUpdateFn", + "signalValueChanged", + "stashEventListenerImpl", + "storeLViewOnDestroy", + "storeListenerCleanup", + "stringifyCSSSelector", + "stringifyCSSSelectorList", + "subscribeOn", + "syncViewWithBlueprint", + "templateCreate", + "throwInvalidWriteToSignalError", + "throwInvalidWriteToSignalErrorFn", + "throwProviderNotFoundError", + "timeoutProvider", + "toInputRefArray", + "toObservable", + "toOutputRefArray", + "trackLeavingNodes", + "trackMovedView", + "uniqueIdCounter", + "unregisterLView", + "untracked", + "untracked2", + "unwrapImgVideoSrcValue", + "unwrapRNode", + "unwrapSafeValue", + "updateAncestorTraversalFlagsOnAttach", + "updateMicroTaskStatus", + "upgradeLinkedSignalGetter", + "validate", + "valueForWrite", + "valuesMatching", + "viewAttachedToChangeDetector", + "viewDetachAnimationRuntime", + "viewShouldHaveReactiveConsumer", + "walkProviderTree", + "wasLastNodeCreated", + "wrapListener", + "wrapWithPredicates", + "writeDirectClass", + "writeDirectStyle", + "writeToDirectiveInput", + "{getPrototypeOf,prototype:objectProto,keys:getKeys}", + "{isArray:isArray2}", + "{isArray}" + ], + "lazy": [] + } +} \ No newline at end of file diff --git a/packages/core/test/bundling/forms_signals/main.ts b/packages/core/test/bundling/forms_signals/main.ts new file mode 100644 index 000000000000..34f7f36a5e46 --- /dev/null +++ b/packages/core/test/bundling/forms_signals/main.ts @@ -0,0 +1,68 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import {Component, provideZonelessChangeDetection, signal} from '@angular/core'; +import {disabled, form, FormField, required} from '@angular/forms/signals'; +import {bootstrapApplication} from '@angular/platform-browser'; + +@Component({ + selector: 'app-signal-forms', + imports: [FormField], + template: ` +
    + First Name: + +
    +
    + Last Name: + +
    +
    + Subscribe: + +
    +
    + Disabled: + +
    + @for (address of profileForm.addresses; track address) { +
    City:
    + } + + `, +}) +class SignalFormsComponent { + readonly model = signal({ + firstName: '', + lastName: '', + subscribed: false, + disabledInput: '', + addresses: [{city: ''}], + }); + + readonly profileForm = form(this.model, (p) => { + required(p.firstName); + disabled(p.disabledInput); + }); + + addCity(): void { + this.model.update((m) => ({ + ...m, + addresses: [...m.addresses, {city: ''}], + })); + } +} + +@Component({ + selector: 'app-root', + imports: [SignalFormsComponent], + template: ``, +}) +class RootComponent {} + +bootstrapApplication(RootComponent, {providers: [provideZonelessChangeDetection()]}); diff --git a/packages/core/test/bundling/forms_template_driven/bundle.golden_symbols.json b/packages/core/test/bundling/forms_template_driven/bundle.golden_symbols.json index a2ea5f254151..c7ddcbb74e6a 100644 --- a/packages/core/test/bundling/forms_template_driven/bundle.golden_symbols.json +++ b/packages/core/test/bundling/forms_template_driven/bundle.golden_symbols.json @@ -1,9 +1,9 @@ { "chunks": { "main": [ + "ABSTRACT_CONTROL", "AFTER_RENDER_SEQUENCES_TO_ADD", "ANIMATIONS", - "ANIMATION_QUEUE", "APPLICATION_IS_STABLE_TIMEOUT", "APP_BOOTSTRAP_LISTENER", "APP_ID", @@ -37,7 +37,6 @@ "CHILD_TAIL", "CIRCULAR", "CLEANUP", - "COMPILER_OPTIONS", "COMPLETE_NOTIFICATION", "COMPONENT_REGEX", "COMPONENT_VARIABLE", @@ -103,6 +102,7 @@ "EmulatedEncapsulationDomRenderer2", "EnvironmentInjector", "EnvironmentNgModuleRefAdapter", + "ErrorBoundaryWrappedError", "ErrorHandler", "EventEmitter", "EventEmitter_", @@ -134,7 +134,6 @@ "IterableDiffers", "KeyEventsPlugin", "LOCALE_ID", - "LOCALE_ID", "MATH_ML_NAMESPACE", "MAXIMUM_REFRESH_RERUNS", "MAXIMUM_REFRESH_RERUNS", @@ -190,6 +189,7 @@ "NoopNgZone", "NullInjector", "ON_DESTROY_HOOKS", + "ON_ERROR", "ObjectUnsubscribedError", "Observable", "OperatorSubscriber", @@ -215,6 +215,7 @@ "REMOVE_STYLES_ON_COMPONENT_DESTROY", "REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT", "RENDERER", + "REQUIRED_UNSET_VALUE", "REQUIRED_VALIDATOR", "ROOT_EFFECT_NODE", "ReactiveValidationError", @@ -222,7 +223,6 @@ "RendererFactory2", "RendererStyleFlags2", "RequiredValidator", - "ResourceParamsStatus", "RetrievingInjector", "RootComponent", "RuntimeError", @@ -275,7 +275,6 @@ "ViewContext", "ViewEncapsulation", "ViewRef", - "XSS_SECURITY_URL", "ZONELESS_ENABLED", "ZoneAwareEffectScheduler", "\\u0275FORM_CONTROL_INTEGRATION", @@ -346,7 +345,6 @@ "_isAndroid", "_isRefreshingViews", "_keyMap", - "_lastDefined", "_locateOrCreateAnchorNode", "_locateOrCreateContainerAnchor", "_locateOrCreateElementNode", @@ -364,16 +362,13 @@ "addAfterRenderSequencesForView", "addLViewToLContainer", "addServerStyles", - "addToAnimationQueue", "addToArray", "addToEndOfViewTree", "addValidators", "addViewToDOM", - "aggregateDescendantAnimations", "allLeavingAnimations", "allocExpando", "allocLFrame", - "angularZoneInstanceIdProperty", "appendChild", "applyContainer", "applyForeignNodes", @@ -419,16 +414,12 @@ "cleanUpView", "coerceToAsyncValidator", "coerceToValidator", - "collectAllViewLeaveAnimations", "collectNativeNodes", "collectNativeNodesInLContainer", - "collectNestedViewAnimations", "collectResidual", "collectStylingFromDirectives", "collectStylingFromTAttrs", "compileNgModuleFactory", - "componentDefPendingResolution", - "componentResourceResolutionQueue", "compose", "composeAsync", "composeAsyncValidators", @@ -525,6 +516,7 @@ "elementLikeEndShared", "elementLikeStartShared", "emailValidator", + "encapsulateBoundaryError", "enterDI", "enterView", "epoch", @@ -536,7 +528,6 @@ "executeCheckHooks", "executeContentQueries", "executeInitAndCheckHooks", - "executeLeaveAnimations", "executeListenerWithErrorHandling", "executeOnDestroys", "executeSchedule", @@ -575,7 +566,6 @@ "getBindingsEnabled", "getClosestRElement", "getClosureSafeProperty", - "getCompilerFacade", "getComponentDef", "getComponentId", "getComponentLViewByIndex", @@ -665,6 +655,7 @@ "handleStoppedNotification", "handleUncaughtError", "handleUnhandledError", + "handleViewError", "handledEventElements", "hasApplyArgsData", "hasClassInput", @@ -734,7 +725,6 @@ "isClassProvider", "isComponentDef", "isComponentHost", - "isComponentResourceResolutionQueueEmpty", "isContentQueryHost", "isCssClassMatching", "isCurrentTNodeParent", @@ -743,6 +733,7 @@ "isDirectiveHost", "isEmptyInputValue", "isEnvironmentProviders", + "isErrorLike", "isExistingProvider", "isFactoryProvider", "isFormControlState", @@ -791,7 +782,6 @@ "isWritableSignal", "iterateListLike", "iterator", - "jitOptions", "keyValueArrayGet", "keyValueArrayIndexOf", "keyValueArraySet", @@ -861,8 +851,8 @@ "nextNgElementId", "nextNotification", "ngOnChangesSetInput", - "ngZoneInstanceId", "noSideEffects", + "nodeAnimationRuntime", "noop", "noop2", "normalizeBootstrapOptions", @@ -910,7 +900,7 @@ "providerToRecord", "providersResolver", "publishSignalConfiguration", - "queueEnterAnimations", + "readInputFromDirective", "readableStreamLikeToAsyncGenerator", "refreshContentQueries", "refreshView", @@ -923,7 +913,6 @@ "relativePath", "rememberChangeHistoryAndInvokeOnChangesHook", "remove", - "removeAnimationsFromQueue", "removeElements", "removeFromArray", "removeLViewOnDestroy", @@ -940,7 +929,6 @@ "requiresRefreshOrTraversal", "resetConsumerBeforeComputation", "resetPreOrderHookFlags", - "resolveComponentResources", "resolveDirectives", "resolveForwardRef", "resolveProvider", @@ -948,7 +936,6 @@ "resolvedPromise", "retrieveHydrationInfo", "reusedNodes", - "runAfterLeaveAnimations", "runEffect", "runEffectsInView", "runInInjectionContext", @@ -988,8 +975,6 @@ "setInjectImplementation", "setInputsFromAttrs", "setIsRefreshingViews", - "setJitOptions", - "setLocaleId", "setModuleBootstrapImpl", "setNativeDomProperty", "setPropertyAndInputs", @@ -1055,8 +1040,8 @@ "unregisterLView", "untracked", "untracked2", + "unwrapImgVideoSrcValue", "unwrapRNode", - "unwrapResponse", "unwrapSafeValue", "updateAncestorTraversalFlagsOnAttach", "updateControl", diff --git a/packages/core/test/bundling/http/BUILD.bazel b/packages/core/test/bundling/http/BUILD.bazel new file mode 100644 index 000000000000..b705cbc1c8b5 --- /dev/null +++ b/packages/core/test/bundling/http/BUILD.bazel @@ -0,0 +1,26 @@ +load("@rules_angular//src/optimization:index.bzl", "optimize_angular_app") +load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test") + +package(default_visibility = ["//visibility:public"]) + +optimize_angular_app( + name = "bundles", + srcs = ["main.ts"], + env = { + "NG_BUILD_MANGLE": "0", + }, + deps = [ + "//:node_modules/rxjs", + "//:node_modules/tslib", + "//packages/core/test/bundling:node_modules/@angular/build", + "//packages/core/test/bundling:node_modules/@angular/common", + "//packages/core/test/bundling:node_modules/@angular/core", + "//packages/core/test/bundling:node_modules/@angular/platform-browser", + ], +) + +js_expected_symbol_test( + name = "symbol_test", + bundles_dir = ":bundles", + golden = ":bundle.golden_symbols.json", +) diff --git a/packages/core/test/bundling/http/bundle.golden_symbols.json b/packages/core/test/bundling/http/bundle.golden_symbols.json new file mode 100644 index 000000000000..dc0ac9952a75 --- /dev/null +++ b/packages/core/test/bundling/http/bundle.golden_symbols.json @@ -0,0 +1,824 @@ +{ + "chunks": { + "main": [ + "ACCEPT_HEADER", + "ACCEPT_HEADER_VALUE", + "AFTER_RENDER_SEQUENCES_TO_ADD", + "ANIMATIONS", + "APPLICATION_IS_STABLE_TIMEOUT", + "APP_BOOTSTRAP_LISTENER", + "APP_ID", + "APP_ID_ATTRIBUTE_NAME", + "APP_INITIALIZER", + "AfterRenderManager", + "AnonymousSubject", + "ApplicationInitStatus", + "ApplicationRef", + "BASE_EFFECT_NODE", + "BINDING", + "BLOOM_BUCKET_BITS", + "BLOOM_MASK", + "BLOOM_SIZE", + "BROWSER_MODULE_PROVIDERS", + "BaseWritableResource", + "BehaviorSubject", + "BrowserDomAdapter", + "BrowserPlatformLocation", + "CACHE_ACTIVE", + "CACHE_OPTIONS", + "CHARSET_REGEX", + "CHILD_HEAD", + "CHILD_TAIL", + "CIRCULAR", + "CLEANUP", + "COMPLETE_NOTIFICATION", + "COMPONENT_REGEX", + "COMPONENT_VARIABLE", + "COMPUTED_NODE", + "COMPUTING", + "CONTAINER_HEADER_OFFSET", + "CONTENT_ATTR", + "CONTENT_TYPE_HEADER", + "CONTEXT", + "CSP_NONCE", + "CSS_VAR_NAMESPACE", + "ChainedInjector", + "ChangeDetectionScheduler", + "ChangeDetectionSchedulerImpl", + "ChangeDetectionStrategy", + "ComponentFactory", + "ComponentRef", + "ComponentRef2", + "ConsumerObserver", + "DEBUG_TASK_TRACKER", + "DECLARATION_COMPONENT_VIEW", + "DECLARATION_LCONTAINER", + "DECLARATION_VIEW", + "DEFAULT_APP_ID", + "DEFAULT_LOCALE_ID", + "DEFAULT_SSR_MAX_RESPONSE_BODY_SIZE", + "DI_DECORATOR_FLAG", + "DOCUMENT", + "DOCUMENT2", + "DefaultDomRenderer2", + "DestroyRef", + "DomAdapter", + "DomEventsPlugin", + "DomRendererFactory2", + "EFFECTS", + "EFFECTS_TO_SCHEDULE", + "EFFECT_NODE", + "EMBEDDED_VIEW_INJECTOR", + "EMPTY_ARRAY", + "EMPTY_OBJ", + "EMPTY_OBSERVER", + "EMPTY_PAYLOAD", + "EMPTY_SUBSCRIPTION", + "ENABLE_ROOT_COMPONENT_BOOTSTRAP", + "ENVIRONMENT", + "ENVIRONMENT_INITIALIZER", + "ERRORED", + "EVENT_MANAGER_PLUGINS", + "EffectRefImpl", + "EffectScheduler", + "ElementRef", + "EmulatedEncapsulationDomRenderer2", + "EnvironmentInjector", + "EnvironmentNgModuleRefAdapter", + "ErrorBoundaryWrappedError", + "ErrorHandler", + "EventEmitter", + "EventEmitter_", + "EventManager", + "EventManagerPlugin", + "FLAGS", + "FetchBackend", + "FetchFactory", + "HEADER_OFFSET", + "HOST", + "HOST_ATTR", + "HTTP_FETCH_MAX_RESPONSE_SIZE", + "HTTP_INTERCEPTOR_FNS", + "HTTP_ROOT_INTERCEPTOR_FNS", + "HTTP_STATUS_CODE_OK", + "HTTP_TRANSFER_CACHE_ORIGIN_MAP", + "HYDRATION", + "HttpBackend", + "HttpClient", + "HttpContext", + "HttpErrorResponse", + "HttpEventType", + "HttpExample", + "HttpFeatureKind", + "HttpHandler", + "HttpHeaderResponse", + "HttpHeaders", + "HttpInterceptorHandler", + "HttpParams", + "HttpRequest", + "HttpResourceImpl", + "HttpResponse", + "HttpResponseBase", + "HttpUrlEncodingCodec", + "HttpXsrfCookieExtractor", + "HttpXsrfTokenExtractor", + "ID", + "INJECTOR", + "INJECTOR", + "INJECTOR_DEF_TYPES", + "INJECTOR_SCOPE", + "INTERNAL_APPLICATION_ERROR_HANDLER", + "INTERNAL_BROWSER_PLATFORM_PROVIDERS", + "InjectionToken", + "Injector", + "InputFlags", + "JSON_CONTENT_TYPE", + "KeyEventsPlugin", + "LINKED_SIGNAL_NODE", + "LOCALE_ID", + "MATH_ML_NAMESPACE", + "MAXIMUM_REFRESH_RERUNS", + "MAXIMUM_REFRESH_RERUNS", + "MODIFIER_KEYS", + "MODIFIER_KEY_GETTERS", + "MONKEY_PATCH_KEY_NAME", + "MOVED_VIEWS", + "NAMESPACE_URIS", + "NATIVE", + "NEXT", + "NG_COMP_DEF", + "NG_DIR_DEF", + "NG_ELEMENT_ID", + "NG_ENV_ID", + "NG_FACTORY_DEF", + "NG_INJ_DEF", + "NG_PIPE_DEF", + "NG_PROV_DEF", + "NG_RUNTIME_ERROR_CODE", + "NG_RUNTIME_ERROR_MESSAGE", + "NG_TEMPLATE_SELECTOR", + "NG_TOKEN_PATH", + "NOT_FOUND", + "NOT_FOUND2", + "NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR", + "NOT_YET", + "NO_CHANGE", + "NO_PARENT_INJECTOR", + "NULL_INJECTOR", + "NgModuleRef", + "NgZone", + "NodeInjector", + "NodeInjectorDestroyRef", + "NodeInjectorFactory", + "NoneEncapsulationDomRenderer", + "NoopNgZone", + "NullInjector", + "ON_DESTROY_HOOKS", + "ON_ERROR", + "ObjectUnsubscribedError", + "Observable", + "OperatorSubscriber", + "PARENT", + "PLATFORM_BROWSER_ID", + "PLATFORM_DESTROY_LISTENERS", + "PLATFORM_ID", + "PLATFORM_INITIALIZER", + "PREORDER_HOOK_FLAGS", + "PRESERVE_HOST_CONTENT", + "PRESERVE_HOST_CONTENT_DEFAULT", + "PendingTasks", + "PendingTasksInternal", + "PlatformLocation", + "ProfilerEvent", + "QUERIES", + "R3Injector", + "REACTIVE_LVIEW_CONSUMER_NODE", + "REACTIVE_NODE", + "REACTIVE_TEMPLATE_CONSUMER", + "REMOVE_STYLES_ON_COMPONENT_DESTROY", + "REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT", + "RENDERER", + "REQUESTS_CONTRIBUTE_TO_STABILITY", + "ROOT_EFFECT_NODE", + "RendererFactory2", + "RendererStyleFlags2", + "ResourceDependencyError", + "ResourceImpl", + "ResourceParamsStatus", + "ResourceValueError", + "ResourceWrappedError", + "RetrievingInjector", + "RuntimeError", + "SCHEDULE_IN_ROOT_ZONE", + "SCHEDULE_IN_ROOT_ZONE_DEFAULT", + "SHARED_STYLES_HOST", + "SIGNAL", + "SIGNAL_NODE", + "STABILITY_WARNING_THRESHOLD", + "STANDARD_ENCODING_REGEX", + "SVG_NAMESPACE", + "SafeSubscriber", + "Sanitizer", + "ShadowDomRenderer", + "SharedStylesHost", + "StandaloneService", + "Subject", + "Subscriber", + "Subscription", + "TEMPORARY_CONSUMER_NODE", + "TESTABILITY", + "TEXT_CONTENT_TYPE", + "THROW_IF_NOT_FOUND", + "TRACKED_LVIEWS", + "TVIEW", + "TYPE", + "T_HOST", + "TracingAction", + "TracingService", + "TransferState", + "UNSET", + "USE_VALUE", + "UnsubscriptionError", + "VIEW_EFFECT_NODE", + "VIEW_REFS", + "ViewContext", + "ViewEncapsulation", + "ViewRef", + "XSRF_COOKIE_NAME", + "XSRF_DEFAULT_COOKIE_NAME", + "XSRF_DEFAULT_HEADER_NAME", + "XSRF_ENABLED", + "XSRF_HEADER_NAME", + "XSSI_PREFIX", + "ZONELESS_ENABLED", + "ZoneAwareEffectScheduler", + "\\u0275\\u0275defineComponent", + "\\u0275\\u0275defineInjectable", + "\\u0275\\u0275defineService", + "\\u0275\\u0275directiveInject", + "\\u0275\\u0275inject", + "\\u0275\\u0275text", + "\\u0275\\u0275textInterpolate2", + "_DOM", + "_THROW_IF_NOT_FOUND", + "__asyncGenerator", + "__asyncValues", + "__await", + "__awaiter", + "__defNormalProp", + "__defProp", + "__defProps", + "__forward_ref__", + "__getOwnPropDescs", + "__getOwnPropSymbols", + "__hasOwnProp", + "__propIsEnum", + "__spreadProps", + "__spreadValues", + "__values", + "_applyRootElementTransformImpl", + "_bind", + "_callAndReportToErrorHandler", + "_currentInjector", + "_document", + "_getInsertInFrontOfRNodeWithI18n", + "_icuContainerIterate", + "_injectImplementation", + "_isRefreshingViews", + "_keyMap", + "_locateOrCreateTextNode", + "_ngOnChangesFeatureImpl", + "_platformInjector", + "_processI18nInsertBefore", + "_retrieveHydrationInfoImpl", + "_wasLastNodeCreated", + "abortReason", + "activeConsumer", + "addAfterRenderSequencesForView", + "addBody", + "addServerStyles", + "addToEndOfViewTree", + "allLeavingAnimations", + "allocExpando", + "allocLFrame", + "appendChild", + "applyContainer", + "applyForeignNodes", + "applyNodes", + "applyProjectionRecursive", + "applyRootElementTransform", + "applyToElementOrContainer", + "applyValueToInputField", + "applyView", + "areAnimationSupported", + "arrRemove", + "assertNotDestroyed", + "assertNotScriptHostElement", + "assertTypeDefined", + "attachPatchData", + "baseElement", + "bind", + "bindingUpdated", + "bindingUpdated2", + "bloomAdd", + "bloomHasToken", + "bloomHashBitOrFactory", + "bootstrap", + "bootstrapApplication", + "borrowReactiveLViewConsumer", + "cacheMatchingLocalNames", + "callHook", + "callHookInternal", + "callHooks", + "cancelLeavingNodes", + "captureError", + "chain", + "chainedInterceptorFn", + "checkStable", + "cleanUpView", + "collectNativeNodes", + "collectNativeNodesInLContainer", + "computeStaticStyling", + "computed", + "concatMap", + "concatStringsWithSpace", + "config", + "configureViewWithDirective", + "consumerAfterComputation", + "consumerBeforeComputation", + "consumerDestroy", + "consumerIsLive", + "consumerMarkDirty", + "consumerPollProducersForChange", + "context", + "convertToBitFlags", + "convertToInjectOptions", + "couldBeInjectableType", + "createComponentLView", + "createComputed", + "createDictionary", + "createDirectivesInstances", + "createEffectFn", + "createElementNode", + "createElementRef", + "createEnvironmentInjector", + "createErrorClass", + "createHostElement", + "createInjector", + "createInjectorWithoutInjectorInstances", + "createInvalidObservableTypeError", + "createLFrame", + "createLView", + "createLinkElement", + "createLinkedSignal", + "createNodeInjector", + "createNotification", + "createOperatorSubscriber", + "createOrReusePlatformInjector", + "createPlatformInjector", + "createProvidersConfig", + "createRootEffect", + "createRootLViewEnvironment", + "createRootTView", + "createRootViewInjector", + "createRuntimeError", + "createSignal", + "createStyleElement", + "createTNode", + "createTNodeAtIndex", + "createTView", + "createTextNode", + "createViewBlueprint", + "createViewEffect", + "cyclicDependencyError", + "deepForEach", + "deepForEachProvider", + "defaultEquals", + "defaultErrorHandler", + "defaultThrowError", + "delayChangeDetectionForEvents", + "destroyLView", + "destroyViewTree", + "detachMovedView", + "detachView", + "detachViewFromDOM", + "detectChangesInChildComponents", + "detectChangesInComponent", + "detectChangesInEmbeddedViews", + "detectChangesInView", + "detectChangesInViewIfAttached", + "detectChangesInViewWhileDirty", + "detectChangesInternal", + "diPublicInInjector", + "directiveHostEndFirstCreatePass", + "directiveHostFirstCreatePass", + "documentSupported", + "effect", + "encapsulateBoundaryError", + "encapsulateResourceError", + "enterDI", + "enterView", + "epoch", + "errorContext", + "errorHandler", + "errorHandlerEnvironmentInitializer", + "errorNotification", + "execFinalizer", + "executeCheckHooks", + "executeContentQueries", + "executeInitAndCheckHooks", + "executeOnDestroys", + "executeSchedule", + "executeTemplate", + "executeViewQueryFn", + "extractAttrsAndClassesFromSelector", + "extractDefListOrFactory", + "extractDirectiveDef", + "filter", + "finalize", + "finalizeConsumerAfterComputation", + "forEachSingleProvider", + "forkInnerZoneWithAngularBehavior", + "formatRuntimeError", + "formatRuntimeErrorCode", + "forwardRef", + "freeConsumers", + "from", + "fromArrayLike", + "fromAsyncIterable", + "fromInteropObservable", + "fromIterable", + "fromPromise", + "fromReadableStreamLike", + "getAbortReason", + "getActiveConsumer", + "getBaseElementHref", + "getBindingIndex", + "getClosestRElement", + "getClosureSafeProperty", + "getComponentDef", + "getComponentId", + "getComponentLViewByIndex", + "getComponentName", + "getConstant", + "getCurrentDirectiveIndex", + "getCurrentInjector", + "getCurrentParentTNode", + "getCurrentTNode", + "getCurrentTNodePlaceholderOk", + "getDOM", + "getDeclarationTNode", + "getDeclarationView", + "getDirectiveDef", + "getDocument", + "getFactoryDef", + "getFirstLContainer", + "getGlobalLocale", + "getInheritedInjectableDef", + "getInitialLViewFlagsFromDef", + "getInjectFlag", + "getInjectImplementation", + "getInjectableDef", + "getInjectorDef", + "getInjectorIndex", + "getInsertInFrontOfRNode", + "getInsertInFrontOfRNodeWithNoI18n", + "getLView", + "getLViewParent", + "getNamespace", + "getNativeByIndex", + "getNativeByTNode", + "getNearestLContainer", + "getNextLContainer", + "getNgDirectiveDef", + "getNgOnChangesFeatureImpl", + "getNodeInjectable", + "getNullInjector", + "getOrBorrowReactiveLViewConsumer", + "getOrCreateComponentTView", + "getOrCreateInjectable", + "getOrCreateNodeInjectorForNode", + "getOrCreateTNode", + "getOrCreateTemporaryConsumer", + "getOwnDefinition", + "getParentInjectorIndex", + "getParentInjectorLocation", + "getParentInjectorView", + "getParentInjectorViewOffset", + "getParentRElement", + "getPipeDef", + "getProjectionNodes", + "getPromiseCtor", + "getRootTViewTemplate", + "getRuntimeErrorCode", + "getSelectedIndex", + "getStyleHost", + "getSymbolIterator", + "getTNode", + "getTNodeFromLView", + "getTView", + "getTextDecoder", + "getUndecoratedInjectableFactory", + "getUniqueLViewId", + "handleStoppedNotification", + "handleUnhandledError", + "handleViewError", + "hasApplyArgsData", + "hasDeps", + "hasInSkipHydrationBlockFlag", + "hasLift", + "hasOnDestroy", + "hasParentInjector", + "httpResource", + "icuContainerIterate", + "identity", + "identityFn", + "importProvidersFrom", + "inNotificationPhase", + "inParamsFunction", + "includeViewProviders", + "incrementBindingIndex", + "incrementInitPhaseFlags", + "inferTagNameFromDefinition", + "initDomAdapter", + "initFeatures", + "initTNodeFlags", + "initializeDirectives", + "initializeInputAndOutputAliases", + "inject2", + "injectArgs", + "injectDestroyRef", + "injectElementRef", + "injectInjectorOnly", + "injectRootLimpMode", + "injectViewContext", + "injectableDefOrInjectorDefFactory", + "innerFrom", + "insertBloom", + "instantiateAllDirectives", + "instructionState", + "interceptorChainEndFn", + "internalCreateApplication", + "internalImportProvidersFrom", + "interpolation2", + "invalidResourceCreationInParams", + "invokeDirectivesHostBindings", + "invokeHostBindingsInCreationMode", + "isAngularZoneProperty", + "isAnimationProp", + "isApplicationBootstrapConfig", + "isArrayBuffer", + "isArrayLike", + "isAsyncIterable", + "isBlob", + "isComponentDef", + "isComponentHost", + "isContentQueryHost", + "isCurrentTNodeParent", + "isDestroyed", + "isDetachedByI18n", + "isEnvironmentProviders", + "isErrorLike", + "isExistingProvider", + "isFactoryProvider", + "isFormData", + "isForwardRef", + "isFunction", + "isInI18nBlock", + "isInInjectionContext", + "isInParamsFunction", + "isInSkipHydrationBlock", + "isInlineTemplate", + "isInputBinding", + "isInteropObservable", + "isIterable", + "isLContainer", + "isLView", + "isNotFound", + "isObserver", + "isPositive", + "isPromise", + "isPromise2", + "isReadableStreamLike", + "isRefreshingViews", + "isResolved", + "isRootView", + "isScheduler", + "isSchedulerTick", + "isSignal", + "isSubscribable", + "isSubscriber", + "isSubscription", + "isTemplateNode", + "isTypeProvider", + "isUrlSearchParams", + "isValueProvider", + "iterator", + "last", + "lastNodeWasCreated", + "lastSelectedElementIdx", + "leaveDI", + "leaveView", + "leaveViewLight", + "leavingNodes", + "linkTNodeInTView", + "linkedSignal", + "linkedSignalSetFn", + "linkedSignalUpdateFn", + "locateDirectiveOrProvider", + "locateHostElement", + "loggingInterceptor", + "lookupTokenUsingEmbeddedInjector", + "lookupTokenUsingModuleInjector", + "lookupTokenUsingNodeInjector", + "makeEnvironmentProviders", + "makeHttpFeature", + "makeHttpResourceFn", + "makeRecord", + "map", + "markAncestorsForTraversal", + "markAsComponentHost", + "markTransplantedViewsForRefresh", + "markViewDirty", + "markViewForRefresh", + "markedFeatures", + "maybeQueueEnterAnimation", + "maybeReturnReactiveLViewConsumer", + "maybeWrapInNotSelector", + "mergeHostAttribute", + "mergeHostAttrs", + "mergeInternals", + "mergeMap", + "mightHaveBody", + "moduleBootstrapImpl", + "nativeAppendChild", + "nativeAppendOrInsertBefore", + "nativeInsertBefore", + "nativeRemoveNode", + "nextNgElementId", + "nextNotification", + "noSideEffects", + "nodeAnimationRuntime", + "noop", + "noop2", + "noop3", + "normalizeBootstrapOptions", + "normalizeRequest", + "notFoundValueOrThrow", + "observable", + "observeOn", + "of", + "onEnter", + "onLeave", + "operate", + "paramParser", + "paramsContext", + "parseAndConvertInputsForDefinition", + "parseAndConvertOutputsForDefinition", + "parseCookieValue", + "performanceMarkFeature", + "pipeFromArray", + "popScheduler", + "postProducerCreatedFn", + "postSignalSetFn", + "process", + "processCleanups", + "processHostBindingOpCodes", + "processInjectorTypesWithProviders", + "producerAccessed", + "producerAddLiveConsumer", + "producerIncrementEpoch", + "producerMarkClean", + "producerNotifyConsumers", + "producerRemoveLiveConsumerLink", + "producerUpdateValueVersion", + "producerUpdatesAllowed", + "profiler", + "profilerCallbacks", + "projectNodes", + "projectStatusOfState", + "provideHttpClient", + "provideZonelessChangeDetectionInternal", + "providerToFactory", + "providerToRecord", + "publishSignalConfiguration", + "readableStreamLikeToAsyncGenerator", + "refreshContentQueries", + "refreshView", + "registerHostBindingOpCodes", + "registerLView", + "registerPostOrderHooks", + "registerPreOrderHooks", + "relativePath", + "remove", + "removeElements", + "removeFromArray", + "removeLViewOnDestroy", + "removeViewFromDOM", + "renderChildComponents", + "renderComponent", + "renderStringify", + "renderView", + "reportUnhandledError", + "requiresRefreshOrTraversal", + "resetConsumerBeforeComputation", + "resetPreOrderHookFlags", + "resolveDirectives", + "resolveForwardRef", + "rethrowFatalErrors", + "retrieveHydrationInfo", + "retrieveTransferredState", + "reusedNodes", + "runEffect", + "runEffectsInView", + "runInInjectionContext", + "runLeaveAnimationsWithCallback", + "runPlatformInitializers", + "runPostProducerCreatedFn", + "saveNameToExportMap", + "scheduleArray", + "scheduleAsyncIterable", + "scheduleCallbackWithMicrotask", + "scheduleCallbackWithRafRace", + "scheduleIterable", + "scheduleObservable", + "schedulePromise", + "scheduleReadableStreamLike", + "scheduled", + "searchTokensOnInjector", + "selectIndexInternal", + "setActiveConsumer", + "setAllInputsForProperty", + "setBindingIndex", + "setBindingRootForHostBindings", + "setCurrentDirectiveIndex", + "setCurrentInjector", + "setCurrentQueryIndex", + "setCurrentTNode", + "setDocument", + "setInParamsFunction", + "setIncludeViewProviders", + "setInjectImplementation", + "setInputsFromAttrs", + "setIsRefreshingViews", + "setRootDomAdapter", + "setSelectedIndex", + "setShadowStylingInputFlags", + "setThrowInvalidWriteToSignalError", + "setUpAttributes", + "setupHostDirectiveInputsOrOutputs", + "setupInitialInputs", + "setupSelectorMatchedInputsOrOutputs", + "setupStaticAttributes", + "shadowRootSupported", + "shimContentAttribute", + "shimHostAttribute", + "shimStylesContent", + "shouldBeIgnoredByZone", + "shouldSearchParent", + "signal", + "signalAsReadonlyFn", + "signalGetFn", + "signalSetFn", + "signalUpdateFn", + "signalValueChanged", + "silenceSuperfluousUnhandledPromiseRejection", + "standardEncoding", + "storeLViewOnDestroy", + "stringifyCSSSelector", + "stringifyCSSSelectorList", + "subscribeOn", + "syncViewWithBlueprint", + "textBindingInternal", + "throwBodyTooLargeError", + "throwInvalidWriteToSignalError", + "throwInvalidWriteToSignalErrorFn", + "throwProviderNotFoundError", + "timeoutProvider", + "toInputRefArray", + "toOutputRefArray", + "trackLeavingNodes", + "trackMovedView", + "uniqueIdCounter", + "unregisterLView", + "untracked", + "untracked2", + "unwrapRNode", + "updateAncestorTraversalFlagsOnAttach", + "updateMicroTaskStatus", + "updateTextNode", + "upgradeLinkedSignalGetter", + "valueToString", + "viewAttachedToChangeDetector", + "viewShouldHaveReactiveConsumer", + "walkProviderTree", + "wasLastNodeCreated", + "withInterceptors", + "writeDirectClass", + "writeDirectStyle", + "writeToDirectiveInput", + "xsrfInterceptorFn" + ], + "lazy": [] + } +} \ No newline at end of file diff --git a/packages/core/test/bundling/http/main.ts b/packages/core/test/bundling/http/main.ts new file mode 100644 index 000000000000..885b1e5834b7 --- /dev/null +++ b/packages/core/test/bundling/http/main.ts @@ -0,0 +1,41 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import { + HttpClient, + HttpInterceptorFn, + httpResource, + provideHttpClient, + withInterceptors, +} from '@angular/common/http'; +import {Component, inject, signal} from '@angular/core'; +import {bootstrapApplication} from '@angular/platform-browser'; + +const loggingInterceptor: HttpInterceptorFn = (req, next) => { + console.info(req.url); + return next(req); +}; + +@Component({ + selector: 'app-root', + template: '{{data.value()}} {{status()}}', +}) +class HttpExample { + readonly data = httpResource(() => '/api/data'); + readonly status = signal(''); + + constructor() { + inject(HttpClient) + .get('/api/status', {responseType: 'text'}) + .subscribe((status) => this.status.set(status)); + } +} + +bootstrapApplication(HttpExample, { + providers: [provideHttpClient(withInterceptors([loggingInterceptor]))], +}); diff --git a/packages/core/test/bundling/hydration/BUILD.bazel b/packages/core/test/bundling/hydration/BUILD.bazel index 167eaff998ae..8d073144a013 100644 --- a/packages/core/test/bundling/hydration/BUILD.bazel +++ b/packages/core/test/bundling/hydration/BUILD.bazel @@ -7,6 +7,7 @@ package(default_visibility = ["//visibility:public"]) optimize_angular_app( name = "bundles", srcs = [ + "defer.component.ts", "main.ts", ], env = { diff --git a/packages/core/test/bundling/hydration/bundle.golden_symbols.json b/packages/core/test/bundling/hydration/bundle.golden_symbols.json index a9b610cb0919..1219e7f09166 100644 --- a/packages/core/test/bundling/hydration/bundle.golden_symbols.json +++ b/packages/core/test/bundling/hydration/bundle.golden_symbols.json @@ -2,15 +2,100 @@ "chunks": { "main": [ "ACCEPT_HEADER_VALUE", + "ALLOWED_METHODS", + "APP_ID_ATTRIBUTE_NAME", + "BODY", + "BROWSER_MODULE_PROVIDERS", + "BrowserDomAdapter", + "CACHE_OPTIONS", + "COMPONENT_REGEX", + "COMPONENT_VARIABLE", + "CONTENT_ATTR", + "CSS_VAR_NAMESPACE", + "DEFAULT_SSR_MAX_RESPONSE_BODY_SIZE", + "DefaultDomRenderer2", + "DomAdapter", + "DomEventsPlugin", + "DomRendererFactory2", + "EVENT_MANAGER_PLUGINS", + "EmulatedEncapsulationDomRenderer2", + "EventManager", + "EventManagerPlugin", + "HEADERS", + "HOST_ATTR", + "HTTP_ROOT_INTERCEPTOR_FNS", + "HTTP_TRANSFER_CACHE_ORIGIN_MAP", + "HelloWorld", + "HelloWorld_DeferPlaceholder_3_Template", + "HelloWorld_Defer_2_Template", + "HelloWorld_Defer_4_DepsFn", + "HttpEventType", + "HttpHeaders", + "HttpResponse", + "HttpResponseBase", + "HydrationFeatureKind", + "INTERNAL_BROWSER_PLATFORM_PROVIDERS", + "JSON_CONTENT_TYPE", + "KeyEventsPlugin", + "MODIFIER_KEYS", + "MODIFIER_KEY_GETTERS", + "NAMESPACE_URIS", + "NoneEncapsulationDomRenderer", + "PLATFORM_BROWSER_ID", + "REMOVE_STYLES_ON_COMPONENT_DESTROY", + "REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT", + "REQ_URL", + "RESPONSE_TYPE", + "SHA256_ROUND_CONSTANTS", + "STATUS", + "STATUS_TEXT", + "ShadowDomRenderer", + "SharedStylesHost", + "TEXT_CONTENT_TYPE", + "UNCACHEABLE_CACHE_CONTROL_DIRECTIVES", + "_DOM", + "_document", + "_keyMap", + "addServerStyles", + "baseElement", + "bootstrapApplication", + "canUseOrCacheRequest", + "createLinkElement", + "createProvidersConfig", + "createStyleElement", + "errorHandler", + "fromBase64", + "generateHash", + "getBaseElementHref", + "getDOM", + "hasAuthHeaders", + "hasOutgoingCredentials", + "hasUncacheableCacheControl", + "initDomAdapter", + "isNonCacheableRequest", + "isTemplateNode", + "makeCacheKey", + "parseCookieValue", + "provideClientHydration", + "relativePath", + "removeElements", + "retrieveStateFromCache", + "setRootDomAdapter", + "shimContentAttribute", + "shimHostAttribute", + "shimStylesContent", + "sortAndConcatParams", + "textEncoder", + "transferCacheInterceptorFn", + "withHttpTransferCache" + ], + "lazy": [ "AFTER_RENDER_PHASES", "AFTER_RENDER_SEQUENCES_TO_ADD", - "ALLOWED_METHODS", "ANIMATIONS", - "ANIMATION_QUEUE", "APPLICATION_IS_STABLE_TIMEOUT", "APP_BOOTSTRAP_LISTENER", "APP_ID", - "APP_ID_ATTRIBUTE_NAME", "APP_INITIALIZER", "ActionResolver", "AfterRenderImpl", @@ -24,13 +109,9 @@ "BLOOM_BUCKET_BITS", "BLOOM_MASK", "BLOOM_SIZE", - "BODY", - "BROWSER_MODULE_PROVIDERS", "BUBBLE_EVENT_TYPES", "BehaviorSubject", - "BrowserDomAdapter", "CACHE_ACTIVE", - "CACHE_OPTIONS", "CAPTURE_EVENT_TYPES", "CHILD_HEAD", "CHILD_TAIL", @@ -40,15 +121,11 @@ "COMMENT_DELIMITER_ESCAPED", "COMMENT_DISALLOWED", "COMPLETE_NOTIFICATION", - "COMPONENT_REGEX", - "COMPONENT_VARIABLE", "COMPOSED_PATH_ERROR_MESSAGE", "CONTAINERS", "CONTAINER_HEADER_OFFSET", - "CONTENT_ATTR", "CONTEXT", "CSP_NONCE", - "CSS_VAR_NAMESPACE", "CachedInjectorService", "ChainedInjector", "ChangeDetectionScheduler", @@ -66,12 +143,12 @@ "DEFAULT_APP_ID", "DEFAULT_EVENT_TYPE", "DEFAULT_LOCALE_ID", - "DEFAULT_SSR_MAX_RESPONSE_BODY_SIZE", "DEFER_BLOCK_CONFIG", "DEFER_BLOCK_ID", "DEFER_BLOCK_SSR_ID_ATTRIBUTE", "DEFER_BLOCK_STATE", "DEFER_BLOCK_STATE", + "DEFER_HYDRATE_TRIGGERS", "DEFER_PARENT_BLOCK_ID", "DEHYDRATED_BLOCK_REGISTRY", "DEHYDRATED_VIEWS", @@ -79,15 +156,15 @@ "DI_DECORATOR_FLAG", "DOCUMENT", "DOCUMENT2", - "DefaultDomRenderer2", "DeferBlockBehavior", + "DeferBlockInternalState", "DeferBlockState", + "DeferComponent", "DeferDependenciesLoadingState", + "DeferEventEntry", + "DehydratedBlockRegistry", "DestroyRef", "Dispatcher", - "DomAdapter", - "DomEventsPlugin", - "DomRendererFactory2", "EAGER_CONTENT_LISTENERS_KEY", "EFFECTS", "EFFECTS_TO_SCHEDULE", @@ -102,15 +179,13 @@ "ENABLE_ROOT_COMPONENT_BOOTSTRAP", "ENVIRONMENT", "ENVIRONMENT_INITIALIZER", - "EVENT_MANAGER_PLUGINS", "EVENT_REPLAY_ENABLED_DEFAULT", "EVENT_REPLAY_QUEUE", - "EffectRefImpl", "EffectScheduler", "ElementRef", - "EmulatedEncapsulationDomRenderer2", "EnvironmentInjector", "EnvironmentNgModuleRefAdapter", + "ErrorBoundaryWrappedError", "ErrorHandler", "EventContract", "EventContractContainer", @@ -118,58 +193,41 @@ "EventEmitter", "EventEmitter_", "EventInfoWrapper", - "EventManager", - "EventManagerPlugin", "EventPhase", "EventType", "FLAGS", - "HEADERS", "HEADER_OFFSET", "HOST", - "HOST_ATTR", - "HTTP_ROOT_INTERCEPTOR_FNS", - "HTTP_TRANSFER_CACHE_ORIGIN_MAP", "HYDRATE_TRIGGER_CLEANUP_FNS", "HYDRATION", - "HelloWorld", - "HttpEventType", - "HttpHeaders", - "HttpResponse", - "HttpResponseBase", - "HydrationFeatureKind", "ID", + "IDLE_SERVICE", "INCREMENTAL_HYDRATION_BOOTSTRAP", "INJECTOR", "INJECTOR", "INJECTOR_DEF_TYPES", "INJECTOR_SCOPE", "INTERNAL_APPLICATION_ERROR_HANDLER", - "INTERNAL_BROWSER_PLATFORM_PROVIDERS", "IS_EVENT_REPLAY_ENABLED", "IS_HYDRATION_DOM_REUSE_ENABLED", "IS_INCREMENTAL_HYDRATION_ENABLED", + "IdleScheduler", "InjectionToken", "Injector", "InputFlags", "JSACTION_BLOCK_ELEMENT_MAP", "JSACTION_EVENT_CONTRACT", - "JSON_CONTENT_TYPE", - "KeyEventsPlugin", "LOADING_AFTER_SLOT", "LOCALE_ID", - "LOCALE_ID", "MATH_ML_NAMESPACE", "MAXIMUM_REFRESH_RERUNS", "MAXIMUM_REFRESH_RERUNS", "MINIMUM_SLOT", - "MODIFIER_KEYS", - "MODIFIER_KEY_GETTERS", "MONKEY_PATCH_KEY_NAME", "MOUSE_SPECIAL_EVENT_TYPES", "MOUSE_SPECIAL_SUPPORT", "MOVED_VIEWS", "MULTIPLIER", - "NAMESPACE_URIS", "NATIVE", "NEXT", "NEXT_DEFER_BLOCK_STATE", @@ -204,16 +262,15 @@ "NodeInjector", "NodeInjectorDestroyRef", "NodeInjectorFactory", - "NoneEncapsulationDomRenderer", "NoopNgZone", "NullInjector", "ON_COMPLETE_FNS", "ON_DESTROY_HOOKS", + "ON_ERROR", "ObjectUnsubscribedError", "Observable", "OperatorSubscriber", "PARENT", - "PLATFORM_BROWSER_ID", "PLATFORM_DESTROY_LISTENERS", "PLATFORM_ID", "PLATFORM_INITIALIZER", @@ -236,34 +293,27 @@ "REFERENCE_NODE_HOST", "REF_EXTRACTOR_REGEXP", "REGEXP_SEMICOLON", - "REMOVE_STYLES_ON_COMPONENT_DESTROY", - "REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT", "RENDERER", - "REQ_URL", - "RESPONSE_TYPE", "RendererFactory2", "RendererStyleFlags2", - "ResourceParamsStatus", + "RequestIdleCallbackService", "Restriction", "RetrievingInjector", "RuntimeError", "SCHEDULE_IN_ROOT_ZONE", "SCHEDULE_IN_ROOT_ZONE_DEFAULT", - "SHA256_ROUND_CONSTANTS", "SHARED_STYLES_HOST", "SIGNAL", + "SIGNAL_NODE", "SKIP_HYDRATION_ATTR_NAME", "SKIP_HYDRATION_ATTR_NAME_LOWER_CASE", "SSR_BLOCK_STATE", "SSR_CONTENT_INTEGRITY_MARKER", + "SSR_UNIQUE_ID", "STABILITY_WARNING_THRESHOLD", - "STATUS", - "STATUS_TEXT", "SVG_NAMESPACE", "SafeSubscriber", "Sanitizer", - "ShadowDomRenderer", - "SharedStylesHost", "StandaloneService", "Subject", "Subscriber", @@ -272,7 +322,6 @@ "TEMPLATE_ID", "TEMPORARY_CONSUMER_NODE", "TESTABILITY", - "TEXT_CONTENT_TYPE", "THROW_IF_NOT_FOUND", "TRACKED_LVIEWS", "TRANSFER_STATE_DEFER_BLOCKS_INFO", @@ -281,10 +330,10 @@ "TVIEW", "TYPE", "T_HOST", + "TimerScheduler", "TracingAction", "TracingService", "TransferState", - "UNCACHEABLE_CACHE_CONTROL_DIRECTIVES", "USE_VALUE", "UnsubscriptionError", "VIEW_REFS", @@ -293,14 +342,26 @@ "ViewRef", "ZONELESS_ENABLED", "ZoneAwareEffectScheduler", + "\\u0275\\u0275advance", + "\\u0275\\u0275defer", + "\\u0275\\u0275deferHydrateOnInteraction", + "\\u0275\\u0275deferOnIdle", "\\u0275\\u0275defineComponent", "\\u0275\\u0275defineInjectable", "\\u0275\\u0275defineService", "\\u0275\\u0275directiveInject", + "\\u0275\\u0275domElementEnd", + "\\u0275\\u0275domElementStart", + "\\u0275\\u0275domListener", + "\\u0275\\u0275domTemplate", + "\\u0275\\u0275element", + "\\u0275\\u0275elementEnd", + "\\u0275\\u0275elementStart", + "\\u0275\\u0275enableIncrementalHydrationRuntime", "\\u0275\\u0275inject", "\\u0275\\u0275resolveBody", "\\u0275\\u0275text", - "_DOM", + "\\u0275\\u0275textInterpolate1", "_THROW_IF_NOT_FOUND", "__asyncGenerator", "__asyncValues", @@ -320,9 +381,9 @@ "_applyRootElementTransformImpl", "_bind", "_callAndReportToErrorHandler", + "_cancelIdleCallback", "_currentInjector", "_dehydratedBlockRegistryFactory", - "_document", "_findAndReconcileMatchingDehydratedViewsImpl", "_findMatchingDehydratedViewImpl", "_getInsertInFrontOfRNodeWithI18n", @@ -330,7 +391,6 @@ "_injectImplementation", "_isI18nHydrationSupportEnabled", "_isRefreshingViews", - "_keyMap", "_locateOrCreateAnchorNode", "_locateOrCreateContainerAnchor", "_locateOrCreateElementContainerNode", @@ -340,28 +400,28 @@ "_platformInjector", "_populateDehydratedViewsInLContainer", "_processI18nInsertBefore", + "_requestIdleCallback", + "_retrieveDeferBlockDataImpl", "_retrieveHydrationInfoImpl", "_runIncrementalHydrationBootstrap", "_stashEventListenerImpl", "_wasLastNodeCreated", + "acceptNode", "activeConsumer", "addAfterRenderSequencesForView", "addDepsToRegistry", "addEventListener", "addLViewToLContainer", - "addServerStyles", - "addToAnimationQueue", "addToArray", "addToEndOfViewTree", "addViewToDOM", "afterEveryRenderImpl", "afterNextRender", - "aggregateDescendantAnimations", "allLeavingAnimations", "allocExpando", "allocLFrame", - "angularZoneInstanceIdProperty", "appendChild", + "appendDeferBlocksToJSActionMap", "applyContainer", "applyDeferBlockState", "applyDeferBlockStateWithSchedulingImpl", @@ -376,17 +436,18 @@ "appsWithEventReplay", "areAnimationSupported", "arrRemove", + "arrayInsert2", + "arraySplice", "assertNotDestroyed", "assertNotScriptHostElement", "assertTypeDefined", "attachPatchData", - "baseElement", "bind", + "bindingUpdated", "bloomAdd", "bloomHasToken", "bloomHashBitOrFactory", "bootstrap", - "bootstrapApplication", "borrowReactiveLViewConsumer", "cacheMatchingLocalNames", "calcSerializedContainerSize", @@ -394,10 +455,10 @@ "callHookInternal", "callHooks", "canHydrateNode", - "canUseOrCacheRequest", "cancelLeavingNodes", "captureError", "checkStable", + "classIndexOf", "cleanUpView", "cleanupDehydratedIcuData", "cleanupDehydratedViews", @@ -410,11 +471,10 @@ "cleanupRemainingHydrationQueue", "clearAppScopedEarlyEventContract", "clearElementContents", + "clobberedElementError", "cloneEventInfo", - "collectAllViewLeaveAnimations", "collectNativeNodes", "collectNativeNodesInLContainer", - "collectNestedViewAnimations", "computeStaticStyling", "concatStringsWithSpace", "config", @@ -423,6 +483,7 @@ "consumerBeforeComputation", "consumerDestroy", "consumerIsLive", + "consumerMarkDirty", "consumerPollProducersForChange", "context", "convertToBitFlags", @@ -430,6 +491,7 @@ "couldBeInjectableType", "createAnchorNode", "createAndRenderEmbeddedLView", + "createBlockSummary", "createCommentNode", "createComponentLView", "createContainerAnchorImpl", @@ -445,32 +507,35 @@ "createHostElement", "createInjector", "createInjectorWithoutInjectorInstances", + "createIntersectionObserver", "createInvalidObservableTypeError", + "createLContainer", "createLFrame", "createLView", - "createLinkElement", "createMouseSpecialEvent", "createNodeInjector", "createNotification", "createOperatorSubscriber", "createOrReusePlatformInjector", "createPlatformInjector", - "createProvidersConfig", "createReplayQueuedBlockEventsFn", "createRootLViewEnvironment", "createRootTView", "createRootViewInjector", "createRuntimeError", - "createStyleElement", + "createSignal", "createTNode", "createTNodeAtIndex", "createTView", "createTextNode", "createViewBlueprint", "cyclicDependencyError", + "declareNoDirectiveHostTemplate", "decompressNodeLocation", + "decreaseElementDepthCount", "deepForEach", "deepForEachProvider", + "defaultEquals", "defaultErrorHandler", "defaultThrowError", "deferBlockHasErrored", @@ -491,6 +556,9 @@ "directiveHostEndFirstCreatePass", "directiveHostFirstCreatePass", "documentSupported", + "domOnlyFirstCreatePass", + "elementLikeEndShared", + "elementLikeStartShared", "enableApplyRootElementTransformImpl", "enableFindMatchingDehydratedViewImpl", "enableHydrationRuntimeSupport", @@ -499,14 +567,15 @@ "enableLocateOrCreateElementContainerNodeImpl", "enableLocateOrCreateElementNodeImpl", "enableLocateOrCreateTextNodeImpl", + "enableRetrieveDeferBlockDataImpl", "enableRetrieveHydrationInfoImpl", "enableStashEventListenerImpl", + "encapsulateBoundaryError", "enterDI", "enterSkipHydrationBlock", "enterView", "epoch", "errorContext", - "errorHandler", "errorHandlerEnvironmentInitializer", "errorNotification", "escapeCommentText", @@ -514,7 +583,7 @@ "executeCheckHooks", "executeContentQueries", "executeInitAndCheckHooks", - "executeLeaveAnimations", + "executeListenerWithErrorHandling", "executeOnDestroys", "executeSchedule", "executeTemplate", @@ -524,6 +593,9 @@ "extractDirectiveDef", "finalizeConsumerAfterComputation", "findAndReconcileMatchingDehydratedViewsImpl", + "findAttrIndexInNode", + "findDirectiveDefMatches", + "findExistingListener", "findMatchingDehydratedView", "findMatchingDehydratedViewForDeferBlock", "findMatchingDehydratedViewImpl", @@ -536,19 +608,19 @@ "from", "fromArrayLike", "fromAsyncIterable", - "fromBase64", "fromInteropObservable", "fromIterable", "fromPromise", "fromReadableStreamLike", - "generateHash", + "gatherDeferBlocksByJSActionAttribute", + "gatherDeferBlocksCommentNodes", "get", "getAction", "getActionElement", "getActiveConsumer", "getAppScopedQueuedEventInfos", - "getBaseElementHref", "getBeforeNodeForView", + "getBindingsEnabled", "getBrowserEventType", "getCleanupFnKeyByType", "getClosestRElement", @@ -564,19 +636,24 @@ "getCurrentParentTNode", "getCurrentTNode", "getCurrentTNodePlaceholderOk", - "getDOM", "getDeclarationTNode", "getDeclarationView", "getDeferBlockDataIndex", "getDirectiveDef", "getDocument", + "getElementDepthCount", "getEvent", "getEventType", "getFactoryDef", + "getFirstChild", "getFirstLContainer", "getFirstNativeNode", "getGlobalLocale", "getHooks", + "getHydrateTimerTrigger", + "getHydrateTriggers", + "getHydrateViewportTrigger", + "getIdleRequestKey", "getInheritedInjectableDef", "getInitialLViewFlagsFromDef", "getInjectFlag", @@ -586,6 +663,7 @@ "getInjectorIndex", "getInsertInFrontOfRNode", "getInsertInFrontOfRNodeWithNoI18n", + "getIntersectionObserverKey", "getIsReplay", "getLDeferBlockDetails", "getLNodeForHydration", @@ -593,10 +671,13 @@ "getLViewParent", "getLoadingBlockAfter", "getMinimumDurationForState", + "getNameOnlyMarkerIndex", "getNamespace", + "getNativeByIndex", "getNativeByTNode", "getNearestLContainer", "getNextLContainer", + "getNextSibling", "getNgContainerSize", "getNgDirectiveDef", "getNgOnChangesFeatureImpl", @@ -607,8 +688,10 @@ "getOrCreateComponentTView", "getOrCreateEnvironmentInjector", "getOrCreateInjectable", + "getOrCreateLViewCleanup", "getOrCreateNodeInjectorForNode", "getOrCreateTNode", + "getOrCreateTViewCleanup", "getOrCreateTemporaryConsumer", "getOwnDefinition", "getParentBlockHydrationQueue", @@ -644,32 +727,38 @@ "handleStoppedNotification", "handleUncaughtError", "handleUnhandledError", + "handleViewError", "handledEventElements", "hasApplyArgsData", - "hasAuthHeaders", + "hasClassInput", "hasDeps", + "hasHydrateTrigger", + "hasHydrateTriggers", "hasInSkipHydrationBlockFlag", "hasLift", "hasMatchingDehydratedView", "hasOnDestroy", - "hasOutgoingCredentials", "hasParentInjector", "hasSkipHydrationAttrOnRElement", "hasSkipHydrationAttrOnTNode", - "hasUncacheableCacheControl", + "hasStyleInput", + "hasTagAndTypeMatch", + "hoverEventNames", "hydrateAndInvokeBlockListeners", "icuContainerIterate", "identity", "importProvidersFrom", + "inNotificationPhase", "includeViewProviders", + "increaseElementDepthCount", "incrementInitPhaseFlags", "inferTagNameFromDefinition", "initDisconnectedNodes", - "initDomAdapter", "initEventReplay", "initFeatures", "initTNodeFlags", "initializeDirectives", + "initializeElement", "initializeInputAndOutputAliases", "inject2", "injectArgs", @@ -685,8 +774,11 @@ "insertView", "instantiateAllDirectives", "instructionState", + "interactionEventNames", "internalCreateApplication", "internalImportProvidersFrom", + "interpolation1", + "intersectionObservers", "invokeAllTriggerCleanupFns", "invokeDirectivesHostBindings", "invokeHostBindingsInCreationMode", @@ -694,6 +786,7 @@ "invokeRegisteredReplayListeners", "invokeTriggerCleanupFns", "isAngularZoneProperty", + "isAnimationEventType", "isAnimationProp", "isApplicationBootstrapConfig", "isArrayLike", @@ -702,11 +795,14 @@ "isComponentDef", "isComponentHost", "isContentQueryHost", + "isCssClassMatching", "isCurrentTNodeParent", "isDestroyed", "isDetachedByI18n", + "isDirectiveHost", "isDisconnectedNode", "isEnvironmentProviders", + "isErrorLike", "isExistingProvider", "isFactoryProvider", "isFirstElementInNgContainer", @@ -718,6 +814,7 @@ "isInSkipHydrationBlock", "isInSkipHydrationBlock2", "isIncrementalHydrationEnabled", + "isIncrementalHydrationRuntimeActive", "isInlineTemplate", "isInputBinding", "isInteropObservable", @@ -728,7 +825,9 @@ "isMiddleClick", "isModifiedClickEvent", "isMouseSpecialEvent", - "isNonCacheableRequest", + "isNameOnlyAttributeMarker", + "isNodeMatchingSelector", + "isNodeMatchingSelectorList", "isNotFound", "isObserver", "isPositive", @@ -739,12 +838,13 @@ "isRootView", "isScheduler", "isSchedulerTick", + "isSkipHydrationRootTNode", "isSsrContentsIntegrity", "isStashEventListenerImplEnabled", "isSubscribable", "isSubscriber", "isSubscription", - "isTemplateNode", + "isTimerTrigger", "isTypeProvider", "isValidStateChange", "isValueProvider", @@ -753,10 +853,12 @@ "lastNodeWasCreated", "lastSelectedElementIdx", "leaveDI", + "leaveSkipHydrationBlock", "leaveView", "leaveViewLight", "leavingNodes", "linkTNodeInTView", + "listenToDomEvent", "locateDehydratedViewsInContainer", "locateDirectiveOrProvider", "locateHostElement", @@ -771,16 +873,17 @@ "lookupTokenUsingEmbeddedInjector", "lookupTokenUsingModuleInjector", "lookupTokenUsingNodeInjector", - "makeCacheKey", "makeEnvironmentProviders", "makeRecord", "map", "markAncestorsForTraversal", "markAsComponentHost", + "markEventHandledForElement", "markTransplantedViewsForRefresh", "markViewDirty", "markViewForRefresh", "markedFeatures", + "matchTemplateAttribute", "maybeQueueEnterAnimation", "maybeReturnReactiveLViewConsumer", "maybeWrapInNotSelector", @@ -792,11 +895,12 @@ "nativeInsertBefore", "nativeRemoveNode", "navigateToNode", + "nextBindingIndex", "nextNgElementId", "nextNotification", "nextRender", - "ngZoneInstanceId", "noSideEffects", + "nodeAnimationRuntime", "noop", "noop2", "normalizeBootstrapOptions", @@ -806,41 +910,53 @@ "of", "onDeferBlockCompletion", "onEnter", + "onIdle", + "onIdleWrapper", "onLeave", + "onTimer", + "onViewport", + "onViewportWrapper", "operate", "parseAndConvertInputsForDefinition", "parseAndConvertOutputsForDefinition", "parseCache", - "parseCookieValue", "patchEventInstance", "performanceMarkFeature", "pipeFromArray", "popScheduler", + "populateDehydratedViewsInLContainer", "populateDehydratedViewsInLContainerImpl", "populateHydratingStateForQueue", + "postProducerCreatedFn", + "postSignalSetFn", "prepareEventForBubbling", "prepareEventForDispatch", "prepareEventForReplay", "preventDefault", "process", + "processAndInitTriggers", + "processBlockData", "processCleanups", "processHostBindingOpCodes", "processInjectorTypesWithProviders", "processTextNodeMarkersBeforeHydration", + "producerAccessed", + "producerAddLiveConsumer", + "producerIncrementEpoch", "producerMarkClean", + "producerNotifyConsumers", "producerRemoveLiveConsumerLink", "producerUpdateValueVersion", + "producerUpdatesAllowed", "profiler", "profilerCallbacks", "projectNodes", "promiseWithResolvers", "propagationStopped", - "provideClientHydration", "provideZonelessChangeDetectionInternal", "providerToFactory", "providerToRecord", "publishSignalConfiguration", - "queueEnterAnimations", "readableStreamLikeToAsyncGenerator", "refreshContentQueries", "refreshView", @@ -849,26 +965,26 @@ "registerLView", "registerPostOrderHooks", "registerPreOrderHooks", - "relativePath", "remove", "removeAllEventListeners", - "removeAnimationsFromQueue", "removeDehydratedView", "removeDehydratedViewList", "removeDehydratedViews", - "removeElements", "removeEventListener", "removeEventListeners", "removeFromArray", "removeLViewFromLContainer", "removeLViewOnDestroy", "removeListeners", + "removeListenersFromBlocks", "removeStaleDehydratedBranch", "removeViewFromDOM", "renderChildComponents", "renderComponent", "renderDeferBlockState", "renderDeferStateAfterResourceLoading", + "renderPlaceholder", + "renderStringify", "renderView", "reportUnhandledError", "requiresRefreshOrTraversal", @@ -876,26 +992,30 @@ "resetPreOrderHookFlags", "resolveDirectives", "resolveForwardRef", + "retrieveDeferBlockData", + "retrieveDeferBlockDataImpl", "retrieveHydrationInfo", "retrieveHydrationInfoImpl", - "retrieveStateFromCache", "retrieveTransferredState", "reusedNodes", - "runAfterLeaveAnimations", "runEffectsInView", "runInInjectionContext", "runIncrementalHydrationBootstrap", "runLeaveAnimationsWithCallback", "runPlatformInitializers", + "runPostProducerCreatedFn", "saveNameToExportMap", + "saveResolvedLocalsInData", "scheduleArray", "scheduleAsyncIterable", "scheduleCallbackWithMicrotask", "scheduleCallbackWithRafRace", + "scheduleDelayedTrigger", "scheduleIterable", "scheduleObservable", "schedulePromise", "scheduleReadableStreamLike", + "scheduleTimerTrigger", "scheduled", "searchTokensOnInjector", "selectIndexInternal", @@ -910,27 +1030,33 @@ "setCurrentInjector", "setCurrentQueryIndex", "setCurrentTNode", + "setCurrentTNodeAsNotParent", + "setDirectiveInputsWhichShadowsStyling", "setDocument", "setEvent", "setEventType", + "setIdleTriggers", + "setImmediateTriggers", "setIncludeViewProviders", "setInjectImplementation", "setInputsFromAttrs", "setIsI18nHydrationSupportEnabled", "setIsRefreshingViews", "setIsReplay", - "setLocaleId", + "setLDeferBlockDetails", "setParsed", "setResolved", - "setRootDomAdapter", "setSegmentHead", "setSelectedIndex", "setShadowStylingInputFlags", "setStashFn", + "setTDeferBlockDetails", "setTargetElement", "setThrowInvalidWriteToSignalError", + "setTimerTriggers", "setTimestamp", "setUpAttributes", + "setViewportTriggers", "setupHostDirectiveInputsOrOutputs", "setupInitialInputs", "setupSelectorMatchedInputsOrOutputs", @@ -938,25 +1064,34 @@ "shadowRootSupported", "sharedMapFunction", "sharedStashFunction", - "shimContentAttribute", - "shimHostAttribute", - "shimStylesContent", "shouldAddViewToDom", + "shouldAttachRegularTrigger", + "shouldAttachTrigger", "shouldBeIgnoredByZone", "shouldEnableEventReplay", "shouldPreventDefaultBeforeDispatching", "shouldSearchParent", "shouldTriggerDeferBlock", "siblingAfter", + "signal", + "signalAsReadonlyFn", + "signalGetFn", + "signalSetFn", + "signalUpdateFn", + "signalValueChanged", "skipTextNodes", - "sortAndConcatParams", + "stashEventListenerImpl", "stashEventListeners", "storeLViewOnDestroy", + "storeListenerCleanup", + "storeTriggerCleanupFn", "stringifyCSSSelector", "stringifyCSSSelectorList", "subscribeOn", "syncViewWithBlueprint", - "textEncoder", + "templateCreate", + "textBindingInternal", + "throwInvalidWriteToSignalError", "throwInvalidWriteToSignalErrorFn", "throwProviderNotFoundError", "timeoutProvider", @@ -964,7 +1099,6 @@ "toOutputRefArray", "trackLeavingNodes", "trackMovedView", - "transferCacheInterceptorFn", "triggerDeferBlock", "triggerHydrationForBlockQueue", "triggerHydrationFromBlockName", @@ -976,20 +1110,21 @@ "unwrapRNode", "updateAncestorTraversalFlagsOnAttach", "updateMicroTaskStatus", + "updateTextNode", "verifySsrContentsIntegrity", "viewAttachedToChangeDetector", "viewShouldHaveReactiveConsumer", + "viewportTriggers", "walkProviderTree", "wasLastNodeCreated", "whenStableWithTimeout", "withDomHydration", "withEventReplay", - "withHttpTransferCache", "withIncrementalHydration", + "wrapListener", "writeDirectClass", "writeDirectStyle", "writeToDirectiveInput" - ], - "lazy": [] + ] } } \ No newline at end of file diff --git a/packages/core/test/bundling/hydration/defer.component.ts b/packages/core/test/bundling/hydration/defer.component.ts new file mode 100644 index 000000000000..943e485ce42d --- /dev/null +++ b/packages/core/test/bundling/hydration/defer.component.ts @@ -0,0 +1,17 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import {Component, signal} from '@angular/core'; + +@Component({ + selector: 'defer-cmp', + template: ``, +}) +export class DeferComponent { + protected readonly count = signal(0); +} diff --git a/packages/core/test/bundling/hydration/main.ts b/packages/core/test/bundling/hydration/main.ts index dd7f5b3c8d1c..c57e5c95eb9c 100644 --- a/packages/core/test/bundling/hydration/main.ts +++ b/packages/core/test/bundling/hydration/main.ts @@ -9,9 +9,20 @@ import {Component} from '@angular/core'; import {bootstrapApplication, provideClientHydration} from '@angular/platform-browser'; +import {DeferComponent} from './defer.component'; + @Component({ selector: 'hello-world', - template: 'Hello World!', + imports: [DeferComponent], + template: ` +

    Hello World!

    + + @defer (hydrate on interaction) { + + } @placeholder { +

    Placeholder

    + } + `, }) class HelloWorld {} diff --git a/packages/core/test/bundling/i18n/BUILD.bazel b/packages/core/test/bundling/i18n/BUILD.bazel new file mode 100644 index 000000000000..b44a51e73669 --- /dev/null +++ b/packages/core/test/bundling/i18n/BUILD.bazel @@ -0,0 +1,28 @@ +load("@rules_angular//src/optimization:index.bzl", "optimize_angular_app") +load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test") + +package(default_visibility = ["//visibility:public"]) + +optimize_angular_app( + name = "bundles", + srcs = [ + "main.ts", + ], + env = { + "NG_BUILD_MANGLE": "0", + }, + deps = [ + "//:node_modules/rxjs", + "//:node_modules/tslib", + "//packages/core/test/bundling:node_modules/@angular/build", + "//packages/core/test/bundling:node_modules/@angular/common", + "//packages/core/test/bundling:node_modules/@angular/core", + "//packages/core/test/bundling:node_modules/@angular/platform-browser", + ], +) + +js_expected_symbol_test( + name = "symbol_test", + bundles_dir = ":bundles", + golden = ":bundle.golden_symbols.json", +) diff --git a/packages/core/test/bundling/i18n/bundle.golden_symbols.json b/packages/core/test/bundling/i18n/bundle.golden_symbols.json new file mode 100644 index 000000000000..fb162d2f2b48 --- /dev/null +++ b/packages/core/test/bundling/i18n/bundle.golden_symbols.json @@ -0,0 +1,831 @@ +{ + "chunks": { + "main": [ + "AFTER_RENDER_SEQUENCES_TO_ADD", + "ANIMATIONS", + "APPLICATION_IS_STABLE_TIMEOUT", + "APP_BOOTSTRAP_LISTENER", + "APP_ID", + "APP_ID_ATTRIBUTE_NAME", + "APP_INITIALIZER", + "ARIA_ATTRS", + "AfterRenderManager", + "AnonymousSubject", + "AppComponent", + "ApplicationInitStatus", + "ApplicationRef", + "BINDING", + "BINDING_REGEXP", + "BLOCK_ELEMENTS", + "BLOOM_BUCKET_BITS", + "BLOOM_MASK", + "BLOOM_SIZE", + "BROWSER_MODULE_PROVIDERS", + "BehaviorSubject", + "BrowserDomAdapter", + "CHILD_HEAD", + "CHILD_TAIL", + "CIRCULAR", + "CLEANUP", + "COMMENT_DELIMITER", + "COMMENT_DELIMITER_ESCAPED", + "COMMENT_DISALLOWED", + "COMPLETE_NOTIFICATION", + "COMPONENT_REGEX", + "COMPONENT_VARIABLE", + "CONTAINER_HEADER_OFFSET", + "CONTENT_ATTR", + "CONTEXT", + "CSP_NONCE", + "CSS_VAR_NAMESPACE", + "CURRENT_CASE_LVIEW_INDEX", + "ChainedInjector", + "ChangeDetectionScheduler", + "ChangeDetectionSchedulerImpl", + "ChangeDetectionStrategy", + "ComponentFactory", + "ComponentRef", + "ComponentRef2", + "ConsumerObserver", + "DEBUG_TASK_TRACKER", + "DECLARATION_COMPONENT_VIEW", + "DECLARATION_LCONTAINER", + "DECLARATION_VIEW", + "DEFAULT_APP_ID", + "DEFAULT_LOCALE_ID", + "DI_DECORATOR_FLAG", + "DOCUMENT", + "DOCUMENT2", + "DOMParserHelper", + "DefaultDomRenderer2", + "DestroyRef", + "DomAdapter", + "DomEventsPlugin", + "DomRendererFactory2", + "EFFECTS", + "EFFECTS_TO_SCHEDULE", + "ELEMENT_MARKER", + "EMBEDDED_VIEW_INJECTOR", + "EMPTY_ARRAY", + "EMPTY_OBJ", + "EMPTY_OBSERVER", + "EMPTY_PAYLOAD", + "EMPTY_SUBSCRIPTION", + "ENABLE_ROOT_COMPONENT_BOOTSTRAP", + "ENVIRONMENT", + "ENVIRONMENT_INITIALIZER", + "EVENT_MANAGER_PLUGINS", + "EffectScheduler", + "ElementRef", + "EmulatedEncapsulationDomRenderer2", + "EnvironmentInjector", + "EnvironmentNgModuleRefAdapter", + "ErrorBoundaryWrappedError", + "ErrorHandler", + "EventEmitter", + "EventEmitter_", + "EventManager", + "EventManagerPlugin", + "FLAGS", + "HEADER_OFFSET", + "HOST", + "HOST_ATTR", + "HTML_ATTRS", + "HYDRATION", + "I18nCreateOpCode", + "ICU_BLOCK_REGEXP", + "ICU_MARKER", + "ID", + "INJECTOR", + "INJECTOR", + "INJECTOR_DEF_TYPES", + "INJECTOR_SCOPE", + "INLINE_ELEMENTS", + "INTERNAL_APPLICATION_ERROR_HANDLER", + "INTERNAL_BROWSER_PLATFORM_PROVIDERS", + "InertDocumentHelper", + "InjectionToken", + "Injector", + "InputFlags", + "KeyEventsPlugin", + "LOCALE_DATA", + "LOCALE_ID", + "LocaleDataIndex", + "MARKER", + "MATCH_ALL_ELEMENTS", + "MATH_ML_NAMESPACE", + "MAXIMUM_REFRESH_RERUNS", + "MAXIMUM_REFRESH_RERUNS", + "MODIFIER_KEYS", + "MODIFIER_KEY_GETTERS", + "MONKEY_PATCH_KEY_NAME", + "MOVED_VIEWS", + "NAMESPACE_URIS", + "NAMESPACE_URIS2", + "NATIVE", + "NESTED_ICU", + "NEXT", + "NGSP_UNICODE_REGEXP", + "NG_COMP_DEF", + "NG_DIR_DEF", + "NG_ELEMENT_ID", + "NG_ENV_ID", + "NG_FACTORY_DEF", + "NG_INJ_DEF", + "NG_PIPE_DEF", + "NG_PROV_DEF", + "NG_RUNTIME_ERROR_CODE", + "NG_RUNTIME_ERROR_MESSAGE", + "NG_TEMPLATE_SELECTOR", + "NG_TOKEN_PATH", + "NON_ALPHANUMERIC_REGEXP", + "NOT_FOUND", + "NOT_FOUND2", + "NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR", + "NOT_YET", + "NO_CHANGE", + "NO_NAMESPACE", + "NO_PARENT_INJECTOR", + "NULL_INJECTOR", + "NgModuleRef", + "NgZone", + "NodeInjector", + "NodeInjectorDestroyRef", + "NodeInjectorFactory", + "NoneEncapsulationDomRenderer", + "NoopNgZone", + "NullInjector", + "ON_DESTROY_HOOKS", + "ON_ERROR", + "OPTIONAL_END_TAG_BLOCK_ELEMENTS", + "OPTIONAL_END_TAG_ELEMENTS", + "OPTIONAL_END_TAG_INLINE_ELEMENTS", + "ObjectUnsubscribedError", + "Observable", + "OperatorSubscriber", + "PARENT", + "PH_REGEXP", + "PLATFORM_BROWSER_ID", + "PLATFORM_DESTROY_LISTENERS", + "PLATFORM_ID", + "PLATFORM_INITIALIZER", + "PP_CLOSE_TEMPLATE_REGEXP", + "PP_ICUS_REGEXP", + "PP_ICU_PLACEHOLDERS_REGEXP", + "PP_ICU_VARS_REGEXP", + "PP_MULTI_VALUE_PLACEHOLDERS_REGEXP", + "PP_PLACEHOLDERS_REGEXP", + "PP_TEMPLATE_ID_REGEXP", + "PREORDER_HOOK_FLAGS", + "PRESERVE_HOST_CONTENT", + "PRESERVE_HOST_CONTENT_DEFAULT", + "PendingTasksInternal", + "ProfilerEvent", + "QUERIES", + "R3Injector", + "REACTIVE_LVIEW_CONSUMER_NODE", + "REACTIVE_NODE", + "REACTIVE_TEMPLATE_CONSUMER", + "REMOVE_STYLES_ON_COMPONENT_DESTROY", + "REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT", + "RENDERER", + "ROOT_TEMPLATE_ID", + "RendererFactory2", + "RendererStyleFlags2", + "RetrievingInjector", + "RuntimeError", + "SAFE_URL_PATTERN", + "SCHEDULE_IN_ROOT_ZONE", + "SCHEDULE_IN_ROOT_ZONE_DEFAULT", + "SECURITY_SCHEMA", + "SECURITY_SENSITIVE_ATTRIBUTE_NAMES", + "SHARED_STYLES_HOST", + "SIGNAL", + "SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS", + "STABILITY_WARNING_THRESHOLD", + "SUBTEMPLATE_REGEXP", + "SURROGATE_PAIR_REGEXP", + "SVG_ANIMATION_SENSITIVE_STATIC_VALUES", + "SVG_NAMESPACE", + "SafeSubscriber", + "SafeValueImpl", + "Sanitizer", + "SanitizingHtmlSerializer", + "SecurityContext", + "ShadowDomRenderer", + "SharedStylesHost", + "StandaloneService", + "Subject", + "Subscriber", + "Subscription", + "TEMPORARY_CONSUMER_NODE", + "TESTABILITY", + "THROW_IF_NOT_FOUND", + "TRACKED_LVIEWS", + "TVIEW", + "TYPE", + "T_HOST", + "TracingAction", + "TracingService", + "URI_ATTRS", + "USE_VALUE", + "UnsubscriptionError", + "VALID_ATTRS", + "VALID_ELEMENTS", + "VIEW_REFS", + "VOID_ELEMENTS", + "ViewEncapsulation", + "ViewRef", + "XSS_SECURITY_URL", + "ZONELESS_ENABLED", + "ZoneAwareEffectScheduler", + "\\u0275\\u0275advance", + "\\u0275\\u0275defineComponent", + "\\u0275\\u0275defineInjectable", + "\\u0275\\u0275defineService", + "\\u0275\\u0275directiveInject", + "\\u0275\\u0275domElement", + "\\u0275\\u0275domElementEnd", + "\\u0275\\u0275domElementStart", + "\\u0275\\u0275i18n", + "\\u0275\\u0275i18nApply", + "\\u0275\\u0275i18nEnd", + "\\u0275\\u0275i18nExp", + "\\u0275\\u0275i18nPostprocess", + "\\u0275\\u0275i18nStart", + "\\u0275\\u0275inject", + "\\u0275\\u0275sanitizeHtml", + "\\u0275\\u0275sanitizeResourceUrl", + "\\u0275\\u0275sanitizeScript", + "\\u0275\\u0275sanitizeStyle", + "\\u0275\\u0275sanitizeUrl", + "\\u0275\\u0275validateAttribute", + "_DOM", + "_SECURITY_SCHEMA", + "_THROW_IF_NOT_FOUND", + "__defNormalProp", + "__defProp", + "__defProps", + "__forward_ref__", + "__getOwnPropDescs", + "__getOwnPropSymbols", + "__hasOwnProp", + "__propIsEnum", + "__spreadProps", + "__spreadValues", + "_applyRootElementTransformImpl", + "_bind", + "_callAndReportToErrorHandler", + "_claimDehydratedIcuCaseImpl", + "_currentInjector", + "_document", + "_getInsertInFrontOfRNodeWithI18n", + "_global", + "_icuContainerIterate", + "_injectImplementation", + "_isRefreshingViews", + "_keyMap", + "_locateOrCreateElementNode", + "_locateOrCreateNode", + "_ngOnChangesFeatureImpl", + "_platformInjector", + "_prepareI18nBlockForHydrationImpl", + "_processI18nInsertBefore", + "_retrieveHydrationInfoImpl", + "_sanitizeHtml", + "_sanitizeUrl", + "_wasLastNodeCreated", + "activeConsumer", + "addAfterRenderSequencesForView", + "addCreateAttribute", + "addCreateNodeAndAppend", + "addRemoveNestedIcu", + "addRemoveNode", + "addServerStyles", + "addTNodeAndUpdateInsertBeforeIndex", + "addToEndOfViewTree", + "addUpdateIcuSwitch", + "addUpdateIcuUpdate", + "allLeavingAnimations", + "allocExpando", + "allocLFrame", + "allowSanitizationBypassAndThrow", + "appendChild", + "applyContainer", + "applyCreateOpCodes", + "applyForeignNodes", + "applyI18n", + "applyIcuSwitchCase", + "applyIcuSwitchCaseRemove", + "applyIcuUpdateCase", + "applyMutableOpCodes", + "applyNodes", + "applyProjectionRecursive", + "applyRootElementTransform", + "applyToElementOrContainer", + "applyUpdateOpCodes", + "applyValueToInputField", + "applyView", + "areAnimationSupported", + "arrRemove", + "assertNotDestroyed", + "assertNotScriptHostElement", + "assertTypeDefined", + "attachPatchData", + "baseElement", + "bind", + "bindingUpdated", + "bloomAdd", + "bloomHasToken", + "bloomHashBitOrFactory", + "bootstrap", + "bootstrapApplication", + "borrowReactiveLViewConsumer", + "cacheMatchingLocalNames", + "callHook", + "callHookInternal", + "callHooks", + "cancelLeavingNodes", + "captureError", + "changeMask", + "changeMaskCounter", + "checkSecurityContext", + "checkStable", + "claimDehydratedIcuCase", + "cleanUpView", + "clearInertBodyElement", + "clobberedElementError", + "collectNativeNodes", + "collectNativeNodesInLContainer", + "computeStaticStyling", + "concatStringsWithSpace", + "config", + "configureViewWithDirective", + "consumerAfterComputation", + "consumerBeforeComputation", + "consumerDestroy", + "consumerIsLive", + "consumerPollProducersForChange", + "context", + "convertToBitFlags", + "convertToInjectOptions", + "couldBeInjectableType", + "createCommentNode", + "createComponentLView", + "createDirectivesInstances", + "createElementNode", + "createElementRef", + "createEnvironmentInjector", + "createErrorClass", + "createHostElement", + "createInjector", + "createInjectorWithoutInjectorInstances", + "createLFrame", + "createLView", + "createLinkElement", + "createNodeInjector", + "createNodeWithoutHydration", + "createNotification", + "createNullObj", + "createOperatorSubscriber", + "createOrReusePlatformInjector", + "createPlatformInjector", + "createProvidersConfig", + "createRootLViewEnvironment", + "createRootTView", + "createRootViewInjector", + "createRuntimeError", + "createStyleElement", + "createTNode", + "createTNodeAndAddOpCode", + "createTNodeAtIndex", + "createTNodePlaceholder", + "createTView", + "createTextNode", + "createViewBlueprint", + "cyclicDependencyError", + "decreaseElementDepthCount", + "deepForEach", + "deepForEachProvider", + "defaultErrorHandler", + "defaultThrowError", + "delayChangeDetectionForEvents", + "destroyLView", + "destroyViewTree", + "detachMovedView", + "detachView", + "detachViewFromDOM", + "detectChangesInChildComponents", + "detectChangesInComponent", + "detectChangesInEmbeddedViews", + "detectChangesInView", + "detectChangesInViewIfAttached", + "detectChangesInViewWhileDirty", + "detectChangesInternal", + "diPublicInInjector", + "directiveHostEndFirstCreatePass", + "directiveHostFirstCreatePass", + "documentSupported", + "domOnlyFirstCreatePass", + "elementLikeEndShared", + "elementLikeStartShared", + "encapsulateBoundaryError", + "encodeEntities", + "enforceIframeSecurity", + "ensureIcuContainerVisitorLoaded", + "enterDI", + "enterIcu", + "enterView", + "epoch", + "errorContext", + "errorHandler", + "errorHandlerEnvironmentInitializer", + "errorNotification", + "escapeCommentText", + "execFinalizer", + "executeCheckHooks", + "executeContentQueries", + "executeInitAndCheckHooks", + "executeOnDestroys", + "executeTemplate", + "executeViewQueryFn", + "extractAttrsAndClassesFromSelector", + "extractDefListOrFactory", + "extractDirectiveDef", + "finalizeConsumerAfterComputation", + "findLocaleData", + "forEachSingleProvider", + "forkInnerZoneWithAngularBehavior", + "formatRuntimeError", + "formatRuntimeErrorCode", + "forwardRef", + "freeConsumers", + "generateBindingUpdateOpCodes", + "getActiveConsumer", + "getBaseElementHref", + "getBindingIndex", + "getCaseIndex", + "getClosestRElement", + "getClosureSafeProperty", + "getComponentDef", + "getComponentId", + "getComponentLViewByIndex", + "getComponentName", + "getConstant", + "getCurrentDirectiveIndex", + "getCurrentICUCaseIndex", + "getCurrentInjector", + "getCurrentParentTNode", + "getCurrentTNode", + "getCurrentTNodePlaceholderOk", + "getDOM", + "getDeclarationTNode", + "getDeclarationView", + "getDirectiveDef", + "getDocument", + "getElementDepthCount", + "getFactoryDef", + "getFirstChild", + "getFirstLContainer", + "getGlobalLocale", + "getInertBodyHelper", + "getInheritedInjectableDef", + "getInitialLViewFlagsFromDef", + "getInjectFlag", + "getInjectImplementation", + "getInjectableDef", + "getInjectorDef", + "getInjectorIndex", + "getInsertBeforeIndex", + "getInsertInFrontOfRNode", + "getInsertInFrontOfRNodeWithI18n", + "getInsertInFrontOfRNodeWithNoI18n", + "getLView", + "getLViewParent", + "getLocaleData", + "getLocalePluralCase", + "getNamespace", + "getNativeByIndex", + "getNativeByTNode", + "getNearestLContainer", + "getNextLContainer", + "getNextSibling", + "getNgDirectiveDef", + "getNgOnChangesFeatureImpl", + "getNodeInjectable", + "getNodeName", + "getNullInjector", + "getOrBorrowReactiveLViewConsumer", + "getOrCreateComponentTView", + "getOrCreateInjectable", + "getOrCreateNodeInjectorForNode", + "getOrCreateTNode", + "getOrCreateTemporaryConsumer", + "getOwnDefinition", + "getParentFromIcuCreateOpCode", + "getParentInjectorIndex", + "getParentInjectorLocation", + "getParentInjectorView", + "getParentInjectorViewOffset", + "getParentRElement", + "getPipeDef", + "getPluralCase", + "getPolicy", + "getPolicy", + "getProjectionNodes", + "getPromiseCtor", + "getRefFromIcuCreateOpCode", + "getRootTViewTemplate", + "getRuntimeErrorCode", + "getSanitizationBypassType", + "getSanitizer", + "getSecurityContext", + "getSecuritySensitiveSVGAnimationAttributeName", + "getSelectedIndex", + "getSelectedTNode", + "getStyleHost", + "getTIcu", + "getTNode", + "getTNodeFromLView", + "getTView", + "getTemplateContent", + "getTranslationForTemplate", + "getUndecoratedInjectableFactory", + "getUniqueLViewId", + "handleStoppedNotification", + "handleUnhandledError", + "handleViewError", + "hasApplyArgsData", + "hasDeps", + "hasInSkipHydrationBlockFlag", + "hasLift", + "hasOnDestroy", + "hasParentInjector", + "i18nParseTextIntoPartsAndICU", + "i18nPostprocess", + "i18nResolveSanitizer", + "i18nStartFirstCreatePass", + "i18nStartFirstCreatePassProcessTextNode", + "icuContainerIterate", + "icuContainerIteratorNext", + "icuCreateOpCode", + "icuStart", + "identity", + "importProvidersFrom", + "includeViewProviders", + "increaseElementDepthCount", + "incrementInitPhaseFlags", + "inertBodyHelper", + "inferTagNameFromDefinition", + "initDomAdapter", + "initFeatures", + "initTNodeFlags", + "initializeDirectives", + "initializeInputAndOutputAliases", + "inject2", + "injectArgs", + "injectDestroyRef", + "injectElementRef", + "injectInjectorOnly", + "injectRootLimpMode", + "injectableDefOrInjectorDefFactory", + "insertBloom", + "instantiateAllDirectives", + "instructionState", + "internalCreateApplication", + "internalImportProvidersFrom", + "invokeDirectivesHostBindings", + "invokeHostBindingsInCreationMode", + "isAngularZoneProperty", + "isAnimationProp", + "isApplicationBootstrapConfig", + "isComponentDef", + "isComponentHost", + "isContentQueryHost", + "isCurrentTNodeParent", + "isDOMParserAvailable", + "isDestroyed", + "isDetachedByI18n", + "isDirectiveHost", + "isEnvironmentProviders", + "isErrorLike", + "isExistingProvider", + "isFactoryProvider", + "isForwardRef", + "isFunction", + "isI18nText", + "isInI18nBlock", + "isInInjectionContext", + "isInSkipHydrationBlock", + "isInlineTemplate", + "isInputBinding", + "isLContainer", + "isLView", + "isNewTNodeCreatedBefore", + "isNotFound", + "isObserver", + "isPositive", + "isPromise", + "isRefreshingViews", + "isRootTemplateMessage", + "isRootView", + "isSchedulerTick", + "isSkipHydrationRootTNode", + "isSubscribable", + "isSubscriber", + "isSubscription", + "isTemplateElement", + "isTemplateNode", + "isTypeProvider", + "isValueProvider", + "lastNodeWasCreated", + "lastSelectedElementIdx", + "leaveDI", + "leaveSkipHydrationBlock", + "leaveView", + "leaveViewLight", + "leavingNodes", + "linkTNodeInTView", + "loadIcuContainerVisitor", + "localeEn", + "locateDirectiveOrProvider", + "locateHostElement", + "lookupTokenUsingEmbeddedInjector", + "lookupTokenUsingModuleInjector", + "lookupTokenUsingNodeInjector", + "makeRecord", + "map", + "mapPropName", + "markAncestorsForTraversal", + "markAsComponentHost", + "markDirtyIfOnPush", + "markTransplantedViewsForRefresh", + "markViewDirty", + "markViewForRefresh", + "markedFeatures", + "maybeQueueEnterAnimation", + "maybeReturnReactiveLViewConsumer", + "maybeWrapInNotSelector", + "merge", + "mergeHostAttribute", + "mergeHostAttrs", + "moduleBootstrapImpl", + "nativeAppendChild", + "nativeAppendOrInsertBefore", + "nativeInsertBefore", + "nativeRemoveNode", + "nextBindingIndex", + "nextNgElementId", + "nextNotification", + "noSideEffects", + "nodeAnimationRuntime", + "noop", + "noop2", + "normalizeBootstrapOptions", + "normalizeLocale", + "notFoundValueOrThrow", + "observable", + "onEnter", + "onLeave", + "operate", + "parseAndConvertInputsForDefinition", + "parseAndConvertOutputsForDefinition", + "parseCookieValue", + "parseICUBlock", + "parseIcuCase", + "performanceMarkFeature", + "pipeFromArray", + "plural", + "pluralMapping", + "policy", + "policy", + "prepareI18nBlockForHydration", + "processCleanups", + "processHostBindingOpCodes", + "processI18nInsertBefore", + "processInjectorTypesWithProviders", + "producerMarkClean", + "producerRemoveLiveConsumerLink", + "producerUpdateValueVersion", + "profiler", + "profilerCallbacks", + "projectNodes", + "provideZonelessChangeDetectionInternal", + "providerToFactory", + "providerToRecord", + "publishSignalConfiguration", + "refreshContentQueries", + "refreshView", + "registerContext", + "registerHostBindingOpCodes", + "registerLView", + "registerPostOrderHooks", + "registerPreOrderHooks", + "relativePath", + "remove", + "removeElements", + "removeFromArray", + "removeInnerTemplateTranslation", + "removeLViewOnDestroy", + "removeViewFromDOM", + "renderChildComponents", + "renderComponent", + "renderStringify", + "renderView", + "replaceNgsp", + "reportUnhandledError", + "requiresRefreshOrTraversal", + "resetConsumerBeforeComputation", + "resetPreOrderHookFlags", + "resolveDirectives", + "resolveElement", + "resolveForwardRef", + "retrieveHydrationInfo", + "reusedNodes", + "runEffectsInView", + "runInInjectionContext", + "runLeaveAnimationsWithCallback", + "runPlatformInitializers", + "saveNameToExportMap", + "saveResolvedLocalsInData", + "scheduleCallbackWithMicrotask", + "scheduleCallbackWithRafRace", + "searchTokensOnInjector", + "selectIndexInternal", + "setActiveConsumer", + "setAllInputsForProperty", + "setBindingIndex", + "setBindingRootForHostBindings", + "setCurrentDirectiveIndex", + "setCurrentInjector", + "setCurrentQueryIndex", + "setCurrentTNode", + "setCurrentTNodeAsNotParent", + "setDocument", + "setDomProperty", + "setElementAttribute", + "setI18nHandling", + "setInI18nBlock", + "setIncludeViewProviders", + "setInjectImplementation", + "setInputsFromAttrs", + "setInsertBeforeIndex", + "setIsRefreshingViews", + "setMaskBit", + "setPropertyAndInputs", + "setRootDomAdapter", + "setSelectedIndex", + "setShadowStylingInputFlags", + "setTIcu", + "setTNodeInsertBeforeIndex", + "setThrowInvalidWriteToSignalError", + "setUpAttributes", + "setupHostDirectiveInputsOrOutputs", + "setupInitialInputs", + "setupSelectorMatchedInputsOrOutputs", + "setupStaticAttributes", + "shadowRootSupported", + "shimContentAttribute", + "shimHostAttribute", + "shimStylesContent", + "shouldBeIgnoredByZone", + "shouldSearchParent", + "splitNsName", + "storeLViewOnDestroy", + "stringifyCSSSelector", + "stringifyCSSSelectorList", + "syncViewWithBlueprint", + "tagSet", + "throwInvalidWriteToSignalErrorFn", + "throwProviderNotFoundError", + "timeoutProvider", + "toInputRefArray", + "toMaskBit", + "toOutputRefArray", + "trackLeavingNodes", + "trackMovedView", + "trustedHTMLFromString", + "trustedHTMLFromStringBypass", + "trustedScriptFromStringBypass", + "trustedScriptURLFromStringBypass", + "u", + "uniqueIdCounter", + "unregisterLView", + "unwrapImgVideoSrcValue", + "unwrapRNode", + "unwrapSafeValue", + "updateAncestorTraversalFlagsOnAttach", + "updateMicroTaskStatus", + "updateTextNode", + "viewAttachedToChangeDetector", + "viewShouldHaveReactiveConsumer", + "walkIcuTree", + "walkProviderTree", + "wasLastNodeCreated", + "writeDirectClass", + "writeDirectStyle", + "writeToDirectiveInput" + ], + "lazy": [] + } +} \ No newline at end of file diff --git a/packages/core/test/bundling/i18n/main.ts b/packages/core/test/bundling/i18n/main.ts new file mode 100644 index 000000000000..592bf036b37f --- /dev/null +++ b/packages/core/test/bundling/i18n/main.ts @@ -0,0 +1,29 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import {Component} from '@angular/core'; +import {bootstrapApplication} from '@angular/platform-browser'; + +@Component({ + selector: 'app-root', + template: ` +

    + Hello {{ name }}! +

    +

    + {count, plural, =0 {No notifications} =1 {One notification} other {Many notifications}} +

    + `, +}) +class AppComponent { + name = 'Angular'; + count = 2; +} + +bootstrapApplication(AppComponent); diff --git a/packages/core/test/bundling/package.json b/packages/core/test/bundling/package.json index edfc21f664e8..decf2ad23dde 100644 --- a/packages/core/test/bundling/package.json +++ b/packages/core/test/bundling/package.json @@ -1,7 +1,7 @@ { "dependencies": { "@angular/animations": "workspace:*", - "@angular/build": "22.2.0-next.5", + "@angular/build": "22.3.0-rc.0", "@angular/common": "workspace:*", "@angular/compiler-cli": "workspace:*", "@angular/compiler": "workspace:*", diff --git a/packages/core/test/bundling/router/bundle.golden_symbols.json b/packages/core/test/bundling/router/bundle.golden_symbols.json index b852f434f576..308b5abf4cf4 100644 --- a/packages/core/test/bundling/router/bundle.golden_symbols.json +++ b/packages/core/test/bundling/router/bundle.golden_symbols.json @@ -3,7 +3,6 @@ "main": [ "AFTER_RENDER_SEQUENCES_TO_ADD", "ANIMATIONS", - "ANIMATION_QUEUE", "APPLICATION_IS_STABLE_TIMEOUT", "APP_BASE_HREF", "APP_BOOTSTRAP_LISTENER", @@ -75,6 +74,7 @@ "DI_DECORATOR_FLAG", "DOCUMENT", "DOCUMENT2", + "DUMMY_BASE_URL", "DefaultDomRenderer2", "DefaultRouteReuseStrategy", "DefaultTitleStrategy", @@ -98,13 +98,13 @@ "ENVIRONMENT_INITIALIZER", "ERRORED", "EVENT_MANAGER_PLUGINS", - "EffectRefImpl", "EffectScheduler", "ElementRef", "EmptyError", "EmulatedEncapsulationDomRenderer2", "EnvironmentInjector", "EnvironmentNgModuleRefAdapter", + "ErrorBoundaryWrappedError", "ErrorHandler", "EventEmitter", "EventEmitter_", @@ -139,7 +139,6 @@ "KeyEventsPlugin", "LINKED_SIGNAL_NODE", "LOCALE_ID", - "LOCALE_ID", "LQueries_", "LQuery_", "ListComponent", @@ -206,6 +205,7 @@ "NoopNgZone", "NullInjector", "ON_DESTROY_HOOKS", + "ON_ERROR", "ObjectUnsubscribedError", "Observable", "OperatorSubscriber", @@ -240,6 +240,7 @@ "RENDERER", "REQUIRED_UNSET_VALUE", "ROUTER_CONFIGURATION", + "ROUTER_ERROR_BOUNDARY_HANDLER", "ROUTER_OUTLET_DATA", "ROUTER_PRELOADER", "ROUTER_RESOURCES_FEATURE", @@ -256,7 +257,6 @@ "RendererStyleFlags2", "ResolveEnd", "ResolveStart", - "ResourceParamsStatus", "RetrievingInjector", "RootComponent", "RouteConfigLoadEnd", @@ -282,6 +282,7 @@ "SIGNAL", "SIGNAL_NODE", "SIMPLE_CHANGES_STORE", + "SLOW_ELEMENTS_SENTINEL", "STABILITY_WARNING_THRESHOLD", "SVG_NAMESPACE", "SafeSubscriber", @@ -403,18 +404,15 @@ "addEmptyPathsToChildrenIfNeeded", "addLViewToLContainer", "addServerStyles", - "addToAnimationQueue", "addToArray", "addToEndOfViewTree", "addViewToDOM", "advanceActivatedRoute", "afterNextNavigation", - "aggregateDescendantAnimations", "allLeavingAnimations", "allocExpando", "allocLFrame", "allowSanitizationBypassAndThrow", - "angularZoneInstanceIdProperty", "appendChild", "applyContainer", "applyForeignNodes", @@ -443,6 +441,7 @@ "bootstrapApplication", "borrowReactiveLViewConsumer", "cacheMatchingLocalNames", + "callGuard", "callHook", "callHookInternal", "callHooks", @@ -452,14 +451,14 @@ "captureError", "catchError", "checkGuards", + "checkOutletNameUniqueness", "checkSecurityContext", "checkStable", "classIndexOf", "cleanUpView", - "collectAllViewLeaveAnimations", + "collectComponentLoaders", "collectNativeNodes", "collectNativeNodesInLContainer", - "collectNestedViewAnimations", "collectQueryResults", "combineLatest", "combineLatestInit", @@ -589,6 +588,7 @@ "elementLikeEndShared", "elementLikeStartShared", "emptyPathMatch", + "encapsulateBoundaryError", "encodeUriFragment", "encodeUriQuery", "encodeUriSegment", @@ -606,12 +606,12 @@ "errorHandler", "errorHandlerEnvironmentInitializer", "errorNotification", + "escapeOutletDelimiter", "exactMatchOptions", "execFinalizer", "executeCheckHooks", "executeContentQueries", "executeInitAndCheckHooks", - "executeLeaveAnimations", "executeListenerWithErrorHandling", "executeOnDestroys", "executeSchedule", @@ -755,6 +755,7 @@ "handleStoppedNotification", "handleUncaughtError", "handleUnhandledError", + "handleViewError", "handledEventElements", "hasApplyArgsData", "hasClassInput", @@ -835,6 +836,7 @@ "isDirectiveHost", "isEmptyError", "isEnvironmentProviders", + "isErrorLike", "isExistingProvider", "isFactoryProvider", "isForwardRef", @@ -862,6 +864,7 @@ "isPositive", "isPromise", "isPromise2", + "isProtocolRelative", "isPublicRouterEvent", "isReadableStreamLike", "isRedirect", @@ -899,6 +902,7 @@ "listenToOutput", "listenerInternal", "loadChildren", + "loadComponents", "loadQueryInternal", "locateDirectiveOrProvider", "locateHostElement", @@ -952,10 +956,10 @@ "nextNgElementId", "nextNotification", "ngOnChangesSetInput", - "ngZoneInstanceId", "noLeftoversInUrl", "noMatch", "noSideEffects", + "nodeAnimationRuntime", "nodeChildrenAsMap", "noop", "noop2", @@ -1006,7 +1010,6 @@ "providerToFactory", "providerToRecord", "publishSignalConfiguration", - "queueEnterAnimations", "readableStreamLikeToAsyncGenerator", "recognize", "recognize", @@ -1022,7 +1025,6 @@ "relativePath", "rememberChangeHistoryAndInvokeOnChangesHook", "remove", - "removeAnimationsFromQueue", "removeElements", "removeFromArray", "removeLViewOnDestroy", @@ -1046,7 +1048,6 @@ "reusedNodes", "rollbackState", "rootRoute", - "runAfterLeaveAnimations", "runCanActivate", "runCanActivateChecks", "runCanActivateChild", @@ -1096,7 +1097,6 @@ "setInjectImplementation", "setInputsFromAttrs", "setIsRefreshingViews", - "setLocaleId", "setRootDomAdapter", "setRouterState", "setSelectedIndex", @@ -1104,6 +1104,7 @@ "setSimpleChangesStore", "setThrowInvalidWriteToSignalError", "setUpAttributes", + "setUrlDerivedKey", "setupHostDirectiveInputsOrOutputs", "setupInitialInputs", "setupSelectorMatchedInputsOrOutputs", @@ -1170,6 +1171,7 @@ "untracked", "untracked2", "unwrapElementRef", + "unwrapImgVideoSrcValue", "unwrapRNode", "unwrapSafeValue", "updateAncestorTraversalFlagsOnAttach", diff --git a/packages/core/test/bundling/standalone_bootstrap/bundle.golden_symbols.json b/packages/core/test/bundling/standalone_bootstrap/bundle.golden_symbols.json index 5455e4f8ae0b..43b59972d16d 100644 --- a/packages/core/test/bundling/standalone_bootstrap/bundle.golden_symbols.json +++ b/packages/core/test/bundling/standalone_bootstrap/bundle.golden_symbols.json @@ -3,7 +3,6 @@ "main": [ "AFTER_RENDER_SEQUENCES_TO_ADD", "ANIMATIONS", - "ANIMATION_QUEUE", "APPLICATION_IS_STABLE_TIMEOUT", "APP_BOOTSTRAP_LISTENER", "APP_ID", @@ -66,12 +65,12 @@ "ENVIRONMENT", "ENVIRONMENT_INITIALIZER", "EVENT_MANAGER_PLUGINS", - "EffectRefImpl", "EffectScheduler", "ElementRef", "EmulatedEncapsulationDomRenderer2", "EnvironmentInjector", "EnvironmentNgModuleRefAdapter", + "ErrorBoundaryWrappedError", "ErrorHandler", "EventEmitter", "EventEmitter_", @@ -95,7 +94,6 @@ "InputFlags", "KeyEventsPlugin", "LOCALE_ID", - "LOCALE_ID", "MATH_ML_NAMESPACE", "MAXIMUM_REFRESH_RERUNS", "MAXIMUM_REFRESH_RERUNS", @@ -134,6 +132,7 @@ "NoopNgZone", "NullInjector", "ON_DESTROY_HOOKS", + "ON_ERROR", "ObjectUnsubscribedError", "Observable", "OperatorSubscriber", @@ -226,13 +225,10 @@ "activeConsumer", "addAfterRenderSequencesForView", "addServerStyles", - "addToAnimationQueue", "addToEndOfViewTree", - "aggregateDescendantAnimations", "allLeavingAnimations", "allocExpando", "allocLFrame", - "angularZoneInstanceIdProperty", "appendChild", "applyContainer", "applyForeignNodes", @@ -264,10 +260,8 @@ "captureError", "checkStable", "cleanUpView", - "collectAllViewLeaveAnimations", "collectNativeNodes", "collectNativeNodesInLContainer", - "collectNestedViewAnimations", "computeStaticStyling", "concatStringsWithSpace", "config", @@ -331,6 +325,7 @@ "directiveHostEndFirstCreatePass", "directiveHostFirstCreatePass", "documentSupported", + "encapsulateBoundaryError", "enterDI", "enterView", "epoch", @@ -342,7 +337,6 @@ "executeCheckHooks", "executeContentQueries", "executeInitAndCheckHooks", - "executeLeaveAnimations", "executeOnDestroys", "executeTemplate", "executeViewQueryFn", @@ -423,6 +417,7 @@ "getUniqueLViewId", "handleStoppedNotification", "handleUnhandledError", + "handleViewError", "hasApplyArgsData", "hasDeps", "hasInSkipHydrationBlockFlag", @@ -464,6 +459,7 @@ "isDestroyed", "isDetachedByI18n", "isEnvironmentProviders", + "isErrorLike", "isExistingProvider", "isFactoryProvider", "isForwardRef", @@ -521,8 +517,8 @@ "nativeRemoveNode", "nextNgElementId", "nextNotification", - "ngZoneInstanceId", "noSideEffects", + "nodeAnimationRuntime", "noop", "noop2", "normalizeBootstrapOptions", @@ -550,7 +546,6 @@ "providerToFactory", "providerToRecord", "publishSignalConfiguration", - "queueEnterAnimations", "refreshContentQueries", "refreshView", "registerHostBindingOpCodes", @@ -559,7 +554,6 @@ "registerPreOrderHooks", "relativePath", "remove", - "removeAnimationsFromQueue", "removeElements", "removeFromArray", "removeLViewOnDestroy", @@ -575,7 +569,6 @@ "resolveForwardRef", "retrieveHydrationInfo", "reusedNodes", - "runAfterLeaveAnimations", "runEffectsInView", "runInInjectionContext", "runLeaveAnimationsWithCallback", @@ -598,7 +591,6 @@ "setInjectImplementation", "setInputsFromAttrs", "setIsRefreshingViews", - "setLocaleId", "setRootDomAdapter", "setSelectedIndex", "setShadowStylingInputFlags", diff --git a/packages/core/test/change_detection_scheduler_spec.ts b/packages/core/test/change_detection_scheduler_spec.ts index 0fd45bb21899..7aea9bb36694 100644 --- a/packages/core/test/change_detection_scheduler_spec.ts +++ b/packages/core/test/change_detection_scheduler_spec.ts @@ -20,6 +20,7 @@ import { ComponentRef, createComponent, destroyPlatform, + effect, ElementRef, EnvironmentInjector, ErrorHandler, @@ -46,7 +47,6 @@ import { tick, } from '../testing'; -import {ChangeDetectionStrategy} from '@angular/compiler'; import {provideNoopAnimations} from '@angular/platform-browser/animations'; import {isBrowser, isNode, withBody} from '@angular/private/testing'; import {ChangeDetectionSchedulerImpl} from '../src/change_detection/scheduling/zoneless_scheduling_impl'; @@ -54,6 +54,8 @@ import {RuntimeError, RuntimeErrorCode} from '../src/errors'; import {scheduleCallbackWithRafRace} from '../src/util/callback_scheduler'; import {global} from '../src/util/global'; +const {withProxyZone} = (Zone as any)[Zone.__symbol__('fakeAsyncTest')]; + function isStable(injector = TestBed.inject(EnvironmentInjector)): boolean { return toSignal(injector.get(ApplicationRef).isStable, {requireSync: true, injector})(); } @@ -556,7 +558,6 @@ describe('Angular with zoneless enabled', () => { it('change detects embedded view when attached to a host on ApplicationRef and declaration is marked for check', async () => { @Component({ template: '
    {{thing}}
    ', - changeDetection: ChangeDetectionStrategy.Eager, }) class DynamicCmp { @ViewChild('template') templateRef!: TemplateRef<{}>; @@ -564,7 +565,6 @@ describe('Angular with zoneless enabled', () => { } @Component({ template: '', - changeDetection: ChangeDetectionStrategy.Eager, }) class Host { readonly vcr = inject(ViewContainerRef); @@ -581,7 +581,7 @@ describe('Angular with zoneless enabled', () => { expect(embeddedViewRef.rootNodes[0].innerHTML).toContain('initial'); fixture.componentInstance.thing = 'new'; - fixture.changeDetectorRef.markForCheck(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); await fixture.whenStable(); expect(embeddedViewRef.rootNodes[0].innerHTML).toContain('new'); }); @@ -589,7 +589,6 @@ describe('Angular with zoneless enabled', () => { it('change detects embedded view when attached directly to ApplicationRef and declaration is marked for check', async () => { @Component({ template: '
    {{thing}}
    ', - changeDetection: ChangeDetectionStrategy.Eager, }) class DynamicCmp { @ViewChild('template') templateRef!: TemplateRef<{}>; @@ -605,7 +604,7 @@ describe('Angular with zoneless enabled', () => { expect(embeddedViewRef.rootNodes[0].innerHTML).toContain('initial'); fixture.componentInstance.thing = 'new'; - fixture.changeDetectorRef.markForCheck(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); await fixture.whenStable(); expect(embeddedViewRef.rootNodes[0].innerHTML).toContain('new'); }); @@ -712,46 +711,56 @@ describe('Angular with zoneless enabled', () => { (Zone.root as any)._zoneDelegate.handleError = previousHandle; }); - it('runs inside fakeAsync zone', fakeAsync(() => { - let didRun = false; - @Component({template: ''}) - class App { - ngOnInit() { - didRun = true; - } - } - - TestBed.createComponent(App); - expect(didRun).toBe(false); - tick(); - expect(didRun).toBe(true); + it( + 'runs inside fakeAsync zone', + withProxyZone( + fakeAsync(() => { + let didRun = false; + @Component({template: ''}) + class App { + ngOnInit() { + didRun = true; + } + } - didRun = false; - TestBed.createComponent(App); - expect(didRun).toBe(false); - flush(); - expect(didRun).toBe(true); - })); + TestBed.createComponent(App); + expect(didRun).toBe(false); + tick(); + expect(didRun).toBe(true); - it('can run inside fakeAsync zone', fakeAsync(() => { - let didRun = false; - @Component({template: ''}) - class App { - ngDoCheck() { - didRun = true; - } - } + didRun = false; + TestBed.createComponent(App); + expect(didRun).toBe(false); + flush(); + expect(didRun).toBe(true); + }), + ), + ); + + it( + 'can run inside fakeAsync zone', + withProxyZone( + fakeAsync(() => { + let didRun = false; + @Component({template: ''}) + class App { + ngDoCheck() { + didRun = true; + } + } - // create component runs inside the zone and triggers CD as a result - const fixture = TestBed.createComponent(App); - didRun = false; + // create component runs inside the zone and triggers CD as a result + const fixture = TestBed.createComponent(App); + didRun = false; - // schedules change detection - fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); - expect(didRun).toBe(false); - tick(); - expect(didRun).toBe(true); - })); + // schedules change detection + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + expect(didRun).toBe(false); + tick(); + expect(didRun).toBe(true); + }), + ), + ); }); describe('Angular with scheduler and ZoneJS', () => { @@ -962,26 +971,140 @@ describe('Angular with scheduler and ZoneJS', () => { expect(ticks).toBe(1); }); - it('can run inside fakeAsync zone', fakeAsync(() => { - TestBed.configureTestingModule({ - providers: [provideZoneChangeDetection({scheduleInRootZone: false} as any)], + it( + 'can run inside fakeAsync zone', + withProxyZone( + fakeAsync(() => { + TestBed.configureTestingModule({ + providers: [provideZoneChangeDetection({scheduleInRootZone: false} as any)], + }); + let didRun = false; + @Component({template: ''}) + class App { + ngDoCheck() { + didRun = true; + } + } + + // create component runs inside the zone and triggers CD as a result + const fixture = TestBed.createComponent(App); + didRun = false; + + // schedules change detection + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + expect(didRun).toBe(false); + tick(); + expect(didRun).toBe(true); + }), + ), + ); + + describe('explicit ApplicationRef.tick from outside the Angular zone', () => { + function collectErrors(): unknown[] { + const errors: unknown[] = []; + TestBed.configureTestingModule({ + rethrowApplicationErrors: false, + providers: [ + provideZoneChangeDetection(), + {provide: PLATFORM_ID, useValue: PLATFORM_BROWSER_ID}, + { + provide: ErrorHandler, + useValue: { + handleError: (e: unknown) => { + errors.push(e); + }, + }, + }, + ], + }); + return errors; + } + + it('does not report a recursive tick when a view effect is flushed', async () => { + const errors = collectErrors(); + + @Component({template: '{{display()}}'}) + class App { + readonly source = signal('initial'); + readonly display = signal('initial'); + + constructor() { + effect(() => { + this.display.set(this.source()); + }); + } + } + + const fixture = TestBed.createComponent(App); + const appRef = TestBed.inject(ApplicationRef); + await fixture.whenStable(); + expect(fixture.nativeElement.textContent).toContain('initial'); + + fixture.componentInstance.source.set('updated'); + TestBed.inject(NgZone).runOutsideAngular(() => appRef.tick()); + + expect(errors).toEqual([]); + expect(fixture.nativeElement.textContent).toContain('updated'); }); - let didRun = false; - @Component({template: ''}) - class App { - ngDoCheck() { - didRun = true; + + it('does not report a recursive tick when a root effect is flushed', async () => { + const errors = collectErrors(); + + @Component({template: '{{display()}}'}) + class App { + readonly display = signal('initial'); } - } - // create component runs inside the zone and triggers CD as a result - const fixture = TestBed.createComponent(App); - didRun = false; + const fixture = TestBed.createComponent(App); + const appRef = TestBed.inject(ApplicationRef); + const ngZone = TestBed.inject(NgZone); + const source = signal('initial'); + + // Root effects capture the zone they are created in, just like the effects that components + // and services of a zone-based application create. + ngZone.run(() => { + TestBed.runInInjectionContext(() => { + effect(() => { + fixture.componentInstance.display.set(source()); + }); + }); + }); + await fixture.whenStable(); + expect(fixture.nativeElement.textContent).toContain('initial'); - // schedules change detection - fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); - expect(didRun).toBe(false); - tick(); - expect(didRun).toBe(true); - })); + source.set('updated'); + ngZone.runOutsideAngular(() => appRef.tick()); + + expect(errors).toEqual([]); + expect(fixture.nativeElement.textContent).toContain('updated'); + }); + + it('still throws when tick is called during change detection', async () => { + collectErrors(); + + @Component({template: '{{reenter()}}'}) + class App { + private readonly appRef = inject(ApplicationRef); + reenterCount = 1; + reenterError: unknown; + + reenter() { + if (this.reenterCount--) { + try { + this.appRef.tick(); + } catch (e) { + this.reenterError = e; + } + } + } + } + + const fixture = TestBed.createComponent(App); + await fixture.whenStable(); + + expect((fixture.componentInstance.reenterError as Error).message).toBe( + 'NG0101: ApplicationRef.tick is called recursively', + ); + }); + }); }); diff --git a/packages/core/test/component_fixture_spec.ts b/packages/core/test/component_fixture_spec.ts index 514bdae53912..40097a72f5c1 100644 --- a/packages/core/test/component_fixture_spec.ts +++ b/packages/core/test/component_fixture_spec.ts @@ -6,11 +6,12 @@ * found in the LICENSE file at https://angular.dev/license */ -import {ChangeDetectionStrategy} from '@angular/compiler'; +import {NgIf} from '@angular/common'; import {dispatchEvent, isNode} from '@angular/private/testing'; import {expect} from '@angular/private/testing/matchers'; import { ApplicationRef, + ChangeDetectionStrategy, Component, createComponent, EnvironmentInjector, @@ -28,14 +29,13 @@ import { fakeAsync, TestBed, tick, - waitForAsync, withModule, } from '../testing'; +const {withProxyZone} = (Zone as any)[Zone.__symbol__('fakeAsyncTest')]; + @Component({ - selector: 'simple-comp', template: `Original {{ simpleBinding }}`, - standalone: false, }) @Injectable() class SimpleComp { @@ -46,32 +46,26 @@ class SimpleComp { } @Component({ - selector: 'deferred-comp', template: `
    Deferred Component
    `, }) class DeferredComp {} @Component({ - selector: 'second-deferred-comp', template: `
    More Deferred Component
    `, }) class SecondDeferredComp {} @Component({ - selector: 'my-if-comp', - template: `MyIf(More)`, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + template: `MyIf(More)`, + imports: [NgIf], }) @Injectable() class MyIfComp { - showMore: boolean = false; + showMore = signal(false); } @Component({ - selector: 'autodetect-comp', template: `{{ text }}`, - standalone: false, }) class AutoDetectComp { text: string = '1'; @@ -82,9 +76,7 @@ class AutoDetectComp { } @Component({ - selector: 'async-comp', template: `{{ text }}`, - standalone: false, }) class AsyncComp { text: string = '1'; @@ -99,7 +91,6 @@ class AsyncComp { @Component({ selector: 'async-child-comp', template: '{{localText}}', - standalone: false, changeDetection: ChangeDetectionStrategy.Eager, }) class AsyncChildComp { @@ -114,9 +105,8 @@ class AsyncChildComp { } @Component({ - selector: 'async-change-comp', template: ``, - standalone: false, + imports: [AsyncChildComp], changeDetection: ChangeDetectionStrategy.Eager, }) class AsyncChangeComp { @@ -128,9 +118,7 @@ class AsyncChangeComp { } @Component({ - selector: 'async-timeout-comp', template: `{{ text }}`, - standalone: false, changeDetection: ChangeDetectionStrategy.Eager, }) class AsyncTimeoutComp { @@ -144,9 +132,7 @@ class AsyncTimeoutComp { } @Component({ - selector: 'nested-async-timeout-comp', template: `{{ text }}`, - standalone: false, changeDetection: ChangeDetectionStrategy.Eager, }) class NestedAsyncTimeoutComp { @@ -170,21 +156,11 @@ describe('ComponentFixture', () => { globalThis['ngServerMode'] = undefined; }); - beforeEach(waitForAsync(() => { + beforeEach(() => { TestBed.configureTestingModule({ providers: [provideZoneChangeDetection()], - declarations: [ - AutoDetectComp, - AsyncComp, - AsyncTimeoutComp, - NestedAsyncTimeoutComp, - AsyncChangeComp, - MyIfComp, - SimpleComp, - AsyncChildComp, - ], }); - })); + }); it('should auto detect changes if autoDetectChanges is called', () => { const componentFixture = TestBed.createComponent(AutoDetectComp); @@ -211,7 +187,7 @@ describe('ComponentFixture', () => { }), ); - it('should signal through whenStable when the fixture is stable (autoDetectChanges)', waitForAsync(() => { + it('should signal through whenStable when the fixture is stable (autoDetectChanges)', async () => { const componentFixture = TestBed.createComponent(AsyncComp); componentFixture.autoDetectChanges(); expect(componentFixture.nativeElement).toHaveText('1'); @@ -223,13 +199,11 @@ describe('ComponentFixture', () => { // Component is updated asynchronously. Wait for the fixture to become stable // before checking for new value. expect(componentFixture.isStable()).toBe(false); - componentFixture.whenStable().then((waited) => { - expect(waited).toBe(true); - expect(componentFixture.nativeElement).toHaveText('11'); - }); - })); + await componentFixture.whenStable(); + expect(componentFixture.nativeElement).toHaveText('11'); + }); - it('should signal through isStable when the fixture is stable (no autoDetectChanges)', waitForAsync(() => { + it('should signal through isStable when the fixture is stable (no autoDetectChanges)', async () => { const componentFixture = TestBed.createComponent(AsyncComp); componentFixture.detectChanges(); @@ -241,16 +215,14 @@ describe('ComponentFixture', () => { // Component is updated asynchronously. Wait for the fixture to become stable // before checking. - componentFixture.whenStable().then((waited) => { - expect(waited).toBe(true); - componentFixture.detectChanges(); - expect(componentFixture.nativeElement).toHaveText('11'); - }); - })); + await componentFixture.whenStable(); + componentFixture.detectChanges(); + expect(componentFixture.nativeElement).toHaveText('11'); + }); it( 'should wait for macroTask(setTimeout) while checking for whenStable ' + '(autoDetectChanges)', - waitForAsync(() => { + async () => { const componentFixture = TestBed.createComponent(AsyncTimeoutComp); componentFixture.autoDetectChanges(); expect(componentFixture.nativeElement).toHaveText('1'); @@ -262,17 +234,15 @@ describe('ComponentFixture', () => { // Component is updated asynchronously. Wait for the fixture to become // stable before checking for new value. expect(componentFixture.isStable()).toBe(false); - componentFixture.whenStable().then((waited) => { - expect(waited).toBe(true); - expect(componentFixture.nativeElement).toHaveText('11'); - }); - }), + await componentFixture.whenStable(); + expect(componentFixture.nativeElement).toHaveText('11'); + }, ); it( 'should wait for macroTask(setTimeout) while checking for whenStable ' + '(no autoDetectChanges)', - waitForAsync(() => { + async () => { const componentFixture = TestBed.createComponent(AsyncTimeoutComp); componentFixture.detectChanges(); expect(componentFixture.nativeElement).toHaveText('1'); @@ -284,18 +254,16 @@ describe('ComponentFixture', () => { // Component is updated asynchronously. Wait for the fixture to become // stable before checking for new value. expect(componentFixture.isStable()).toBe(false); - componentFixture.whenStable().then((waited) => { - expect(waited).toBe(true); - componentFixture.detectChanges(); - expect(componentFixture.nativeElement).toHaveText('11'); - }); - }), + await componentFixture.whenStable(); + componentFixture.detectChanges(); + expect(componentFixture.nativeElement).toHaveText('11'); + }, ); it( 'should wait for nested macroTasks(setTimeout) while checking for whenStable ' + '(autoDetectChanges)', - waitForAsync(() => { + async () => { const componentFixture = TestBed.createComponent(NestedAsyncTimeoutComp); componentFixture.autoDetectChanges(); @@ -308,17 +276,15 @@ describe('ComponentFixture', () => { // Component is updated asynchronously. Wait for the fixture to become // stable before checking for new value. expect(componentFixture.isStable()).toBe(false); - componentFixture.whenStable().then((waited) => { - expect(waited).toBe(true); - expect(componentFixture.nativeElement).toHaveText('11'); - }); - }), + await componentFixture.whenStable(); + expect(componentFixture.nativeElement).toHaveText('11'); + }, ); it( 'should wait for nested macroTasks(setTimeout) while checking for whenStable ' + '(no autoDetectChanges)', - waitForAsync(() => { + async () => { const componentFixture = TestBed.createComponent(NestedAsyncTimeoutComp); componentFixture.detectChanges(); expect(componentFixture.nativeElement).toHaveText('1'); @@ -330,51 +296,45 @@ describe('ComponentFixture', () => { // Component is updated asynchronously. Wait for the fixture to become // stable before checking for new value. expect(componentFixture.isStable()).toBe(false); - componentFixture.whenStable().then((waited) => { - expect(waited).toBe(true); - componentFixture.detectChanges(); - expect(componentFixture.nativeElement).toHaveText('11'); - }); - }), + const stable = await componentFixture.whenStable(); + componentFixture.detectChanges(); + expect(componentFixture.nativeElement).toHaveText('11'); + }, ); - it('should stabilize after async task in change detection (autoDetectChanges)', waitForAsync(() => { + it('should stabilize after async task in change detection (autoDetectChanges)', async () => { const componentFixture = TestBed.createComponent(AsyncChangeComp); componentFixture.autoDetectChanges(); - componentFixture.whenStable().then((_) => { - expect(componentFixture.nativeElement).toHaveText('1'); + await componentFixture.whenStable(); + expect(componentFixture.nativeElement).toHaveText('1'); - const element = componentFixture.debugElement.children[0]; - dispatchEvent(element.nativeElement, 'click'); + const element = componentFixture.debugElement.children[0]; + dispatchEvent(element.nativeElement, 'click'); - componentFixture.whenStable().then((_) => { - expect(componentFixture.nativeElement).toHaveText('11'); - }); - }); - })); + await componentFixture.whenStable(); + expect(componentFixture.nativeElement).toHaveText('11'); + }); - it('should stabilize after async task in change detection(no autoDetectChanges)', waitForAsync(() => { + it('should stabilize after async task in change detection(no autoDetectChanges)', async () => { const componentFixture = TestBed.createComponent(AsyncChangeComp); componentFixture.detectChanges(); - componentFixture.whenStable().then((_) => { - // Run detectChanges again so that stabilized value is reflected in the - // DOM. - componentFixture.detectChanges(); - expect(componentFixture.nativeElement).toHaveText('1'); + await componentFixture.whenStable(); + // Run detectChanges again so that stabilized value is reflected in the + // DOM. + componentFixture.detectChanges(); + expect(componentFixture.nativeElement).toHaveText('1'); - const element = componentFixture.debugElement.children[0]; - dispatchEvent(element.nativeElement, 'click'); - componentFixture.detectChanges(); + const element = componentFixture.debugElement.children[0]; + dispatchEvent(element.nativeElement, 'click'); + componentFixture.detectChanges(); - componentFixture.whenStable().then((_) => { - // Run detectChanges again so that stabilized value is reflected in - // the DOM. - componentFixture.detectChanges(); - expect(componentFixture.nativeElement).toHaveText('11'); - }); - }); - })); + await componentFixture.whenStable(); + // Run detectChanges again so that stabilized value is reflected in + // the DOM. + componentFixture.detectChanges(); + expect(componentFixture.nativeElement).toHaveText('11'); + }); it('throws errors that happen during detectChanges', () => { @Component({ @@ -390,36 +350,41 @@ describe('ComponentFixture', () => { expect(() => fixture.detectChanges()).toThrow(); }); - it('should not duplicate errors when used with fake async', fakeAsync(() => { - @Component({ - template: '', - }) - class Throwing { - doThrow() { - throw new Error('thrown'); - } - } - TestBed.configureTestingModule({ - providers: [ - { - provide: ErrorHandler, - useClass: class { - handleError(e: unknown) { - throw e; - } - }, - }, - ], - }); - const fix = TestBed.createComponent(Throwing); - try { - fix.nativeElement.querySelector('button').click(); - tick(); - fail('should have thrown'); - } catch (e) { - expect((e as Error).message).toMatch('thrown'); - } - })); + it( + 'should not duplicate errors when used with fake async', + withProxyZone( + fakeAsync(() => { + @Component({ + template: '', + }) + class Throwing { + doThrow() { + throw new Error('thrown'); + } + } + TestBed.configureTestingModule({ + providers: [ + { + provide: ErrorHandler, + useClass: class { + handleError(e: unknown) { + throw e; + } + }, + }, + ], + }); + const fix = TestBed.createComponent(Throwing); + try { + fix.nativeElement.querySelector('button').click(); + tick(); + fail('should have thrown'); + } catch (e) { + expect((e as Error).message).toMatch('thrown'); + } + }), + ), + ); describe('errors during ApplicationRef.tick', () => { @Component({ @@ -461,7 +426,6 @@ describe('ComponentFixture', () => { describe('defer', () => { it('should return all defer blocks in the component', async () => { @Component({ - selector: 'defer-comp', imports: [DeferredComp, SecondDeferredComp], template: `
    @defer (on immediate) { @@ -494,24 +458,24 @@ describe('ComponentFixture', () => { }).toThrowError(/Cannot call autoDetectChanges when ComponentFixtureNoNgZone is set/); }); - it('should instantiate a component with valid DOM', waitForAsync(() => { + it('should instantiate a component with valid DOM', async () => { const componentFixture = TestBed.createComponent(SimpleComp); expect(componentFixture.ngZone).toBeNull(); componentFixture.detectChanges(); expect(componentFixture.nativeElement).toHaveText('Original Simple'); - })); + }); - it('should allow changing members of the component', waitForAsync(() => { + it('should allow changing members of the component', () => { const componentFixture = TestBed.createComponent(MyIfComp); componentFixture.detectChanges(); expect(componentFixture.nativeElement).toHaveText('MyIf()'); - componentFixture.componentInstance.showMore = true; + componentFixture.componentInstance.showMore.set(true); componentFixture.detectChanges(); expect(componentFixture.nativeElement).toHaveText('MyIf(More)'); - })); + }); it('throws errors that happen during detectChanges', () => { @Component({ @@ -532,7 +496,6 @@ describe('ComponentFixture', () => { let throwError = false; @Component({ template: '', - standalone: false, changeDetection: ChangeDetectionStrategy.Eager, }) class TestComponent { @@ -556,7 +519,6 @@ describe('ComponentFixture', () => { let throwError = false; @Component({ template: '{{thing}}', - standalone: false, changeDetection: ChangeDetectionStrategy.Eager, }) class TestComponent { diff --git a/packages/core/test/debug/BUILD.bazel b/packages/core/test/debug/BUILD.bazel new file mode 100644 index 000000000000..bc28989500d9 --- /dev/null +++ b/packages/core/test/debug/BUILD.bazel @@ -0,0 +1,33 @@ +load("//tools:defaults.bzl", "ts_project", "zoneless_jasmine_test", "zoneless_web_test_suite") + +package(default_visibility = ["//visibility:private"]) + +ts_project( + name = "debug_lib", + testonly = True, + srcs = glob( + ["**/*.ts"], + ), + deps = [ + "//packages/common", + "//packages/core", + "//packages/core/primitives/devtools", + "//packages/core/testing", + "//packages/platform-browser", + "//packages/private/testing", + ], +) + +zoneless_jasmine_test( + name = "debug", + data = [ + ":debug_lib", + ], +) + +zoneless_web_test_suite( + name = "debug_web", + deps = [ + ":debug_lib", + ], +) diff --git a/packages/core/test/debug/ai/signal_graph_spec.ts b/packages/core/test/debug/ai/signal_graph_spec.ts index 4b01de3017a2..0d5e572e598c 100644 --- a/packages/core/test/debug/ai/signal_graph_spec.ts +++ b/packages/core/test/debug/ai/signal_graph_spec.ts @@ -18,9 +18,7 @@ describe('signalGraphTool', () => { it('should discover signal graph from targeted element', async () => { @Component({ - selector: 'signal-graph-test-root', template: '
    Signals test: {{ double() }}
    ', - standalone: true, }) class SignalGraphTestComponent { private readonly count = signal(1, {debugName: 'count'}); diff --git a/packages/core/test/debug/debug_node_spec.ts b/packages/core/test/debug/debug_node_spec.ts index f449387eac4e..84099872bd6f 100644 --- a/packages/core/test/debug/debug_node_spec.ts +++ b/packages/core/test/debug/debug_node_spec.ts @@ -6,8 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule, ɵgetDOM as getDOM, NgIfContext} from '@angular/common'; -import {ChangeDetectionStrategy} from '@angular/compiler'; +import {CommonModule, ɵgetDOM as getDOM, NgIf, NgIfContext} from '@angular/common'; import {By} from '@angular/platform-browser'; import {createMouseEvent, hasClass} from '@angular/private/testing'; import {expect} from '@angular/private/testing/matchers'; @@ -19,22 +18,21 @@ import { ElementRef, EmbeddedViewRef, EventEmitter, - HostBinding, - Injectable, + forwardRef, Input, NgZone, - NO_ERRORS_SCHEMA, OnInit, Output, - provideZoneChangeDetection, Renderer2, + Service, + signal, TemplateRef, ViewChild, ViewContainerRef, } from '../../src/core'; -import {ComponentFixture, TestBed, waitForAsync} from '../../testing'; +import {ComponentFixture, TestBed} from '../../testing'; -@Injectable() +@Service() class Logger { logs: string[]; @@ -50,7 +48,6 @@ class Logger { @Directive({ selector: '[message]', inputs: ['message'], - standalone: false, }) class MessageDir { logger: Logger; @@ -67,7 +64,6 @@ class MessageDir { @Directive({ selector: '[with-title]', inputs: ['title'], - standalone: false, }) class WithTitleDir { title = ''; @@ -79,7 +75,8 @@ class WithTitleDir { Child
    `, - standalone: false, + + imports: [MessageDir], }) class ChildComp { childBinding: string; @@ -97,7 +94,8 @@ class ChildComp { `, - standalone: false, + + imports: [MessageDir, ChildComp], }) class ParentComp { parentBinding: string; @@ -109,7 +107,6 @@ class ParentComp { @Directive({ selector: 'custom-emitter', outputs: ['myevent'], - standalone: false, }) class CustomEmitter { myevent: EventEmitter; @@ -123,7 +120,8 @@ class CustomEmitter { selector: 'events-comp', template: ` `, - standalone: false, + + imports: [CustomEmitter], }) class EventsComp { clicked: boolean; @@ -146,12 +144,11 @@ class EventsComp { @Component({ selector: 'cond-content-comp', viewProviders: [Logger], - template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + template: `
    `, + imports: [NgIf, MessageDir], }) class ConditionalContentComp { - myBool: boolean = false; + myBool = signal(false); } @Component({ @@ -161,8 +158,7 @@ class ConditionalContentComp { `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ConditionalContentComp], }) class ConditionalParentComp { parentBinding: string; @@ -178,7 +174,8 @@ class ConditionalParentComp {
    `, - standalone: false, + + imports: [CommonModule, MessageDir], }) class UsingFor { stuff: string[]; @@ -190,14 +187,14 @@ class UsingFor { @Directive({ selector: '[mydir]', exportAs: 'mydir', - standalone: false, }) class MyDir {} @Component({ selector: 'locals-comp', template: `
    `, - standalone: false, + + imports: [MyDir], }) class LocalsComp {} @@ -209,7 +206,6 @@ class LocalsComp {} '[class.absent-class]': 'false', '[class.present-class]': 'true', }, - standalone: false, }) class BankAccount { @Input() bank: string | undefined; @@ -220,7 +216,6 @@ class BankAccount { @Component({ template: `
    Some content
    `, - standalone: false, }) class SimpleContentComp { @ViewChild('content') content!: ElementRef; @@ -238,7 +233,8 @@ class SimpleContentComp { [class.open]="!isClosed" > `, - standalone: false, + + imports: [CommonModule, MyDir, BankAccount], }) class TestApp { width = 200; @@ -250,14 +246,14 @@ class TestApp { @Component({ selector: 'test-cmpt', template: ``, - standalone: false, + + imports: [CommonModule, ChildComp, ParentComp, MyDir], }) class TestCmpt {} @Component({ selector: 'test-cmpt-renderer', template: ``, - standalone: false, }) class TestCmptWithRenderer { constructor(public renderer: Renderer2) {} @@ -266,16 +262,17 @@ class TestCmptWithRenderer { @Component({ selector: 'host-class-binding', template: '', - standalone: false, + host: { + '[class]': 'hostClasses()', + }, }) class HostClassBindingCmp { - @HostBinding('class') hostClasses = 'class-one class-two'; + hostClasses = signal('class-one class-two'); } @Component({ selector: 'test-cmpt-vcref', template: `
    `, - standalone: false, }) class TestCmptWithViewContainerRef { constructor(private vcref: ViewContainerRef) {} @@ -285,7 +282,6 @@ class TestCmptWithViewContainerRef { template: ` `, - standalone: false, }) class TestCmptWithPropBindings { disabled = true; @@ -308,51 +304,23 @@ class TestCmptWithPropBindings { title="a{{ 1 }}b{{ 2 }}c{{ 3 }}d{{ 4 }}e{{ 5 }}f{{ 6 }}g{{ 7 }}h{{ 8 }}i{{ 9 }}j" > `, - standalone: false, + + imports: [WithTitleDir], }) class TestCmptWithPropInterpolation {} describe('debug element', () => { let fixture: ComponentFixture; - beforeEach(waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [ - ChildComp, - ConditionalContentComp, - ConditionalParentComp, - CustomEmitter, - EventsComp, - LocalsComp, - MessageDir, - MyDir, - ParentComp, - TestApp, - UsingFor, - BankAccount, - TestCmpt, - HostClassBindingCmp, - TestCmptWithViewContainerRef, - SimpleContentComp, - TestCmptWithPropBindings, - TestCmptWithPropInterpolation, - TestCmptWithRenderer, - WithTitleDir, - ], - providers: [Logger, provideZoneChangeDetection()], - schemas: [NO_ERRORS_SCHEMA], - }); - })); - - it('should list all child nodes', () => { + it('should list all child nodes', async () => { fixture = TestBed.createComponent(ParentComp); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.debugElement.childNodes.length).toEqual(3); }); - it('should list all component child elements', () => { + it('should list all component child elements', async () => { fixture = TestBed.createComponent(ParentComp); - fixture.detectChanges(); + await fixture.whenStable(); const childEls = fixture.debugElement.children; // The root component has 3 elements in its view. @@ -377,9 +345,9 @@ describe('debug element', () => { expect(hasClass(childNested[0].nativeElement, 'childnested')).toBe(true); }); - it('should list conditional component child elements', () => { + it('should list conditional component child elements', async () => { fixture = TestBed.createComponent(ConditionalParentComp); - fixture.detectChanges(); + await fixture.whenStable(); const childEls = fixture.debugElement.children; @@ -392,8 +360,8 @@ describe('debug element', () => { expect(conditionalContentComp.children.length).toEqual(0); - conditionalContentComp.componentInstance.myBool = true; - fixture.detectChanges(); + conditionalContentComp.componentInstance.myBool.set(true); + await fixture.whenStable(); expect(conditionalContentComp.children.length).toEqual(1); }); @@ -494,28 +462,26 @@ describe('debug element', () => { it('should query projected child elements by directive', () => { @Directive({ selector: 'example-directive-a', - standalone: false, }) class ExampleDirectiveA {} @Component({ selector: 'wrapper-component', template: ` `, - standalone: false, + + imports: [ExampleDirectiveA], }) class WrapperComponent {} - TestBed.configureTestingModule({ - declarations: [WrapperComponent, ExampleDirectiveA], - }); - - TestBed.overrideTemplate( - TestApp, - ` + TestBed.overrideComponent(TestApp, { + set: { + template: `
    `, - ); + imports: [CommonModule, MyDir, BankAccount, WrapperComponent, ExampleDirectiveA], + }, + }); const fixture = TestBed.createComponent(TestApp); fixture.detectChanges(); @@ -527,14 +493,12 @@ describe('debug element', () => { it('should query re-projected child elements by directive', () => { @Directive({ selector: 'example-directive-a', - standalone: false, }) class ExampleDirectiveA {} @Component({ selector: 'proxy-component', template: ` `, - standalone: false, }) class ProxyComponent {} @@ -546,21 +510,20 @@ describe('debug element', () => { `, - standalone: false, + + imports: [ProxyComponent, ExampleDirectiveA], }) class WrapperComponent {} - TestBed.configureTestingModule({ - declarations: [ProxyComponent, WrapperComponent, ExampleDirectiveA], - }); - - TestBed.overrideTemplate( - TestApp, - ` + TestBed.overrideComponent(TestApp, { + set: { + template: `
    `, - ); + imports: [CommonModule, MyDir, BankAccount, WrapperComponent, ExampleDirectiveA], + }, + }); const fixture = TestBed.createComponent(TestApp); fixture.detectChanges(); @@ -572,17 +535,17 @@ describe('debug element', () => { it('should query directives on containers before directives in a view', () => { @Directive({ selector: '[text]', - standalone: false, }) class TextDirective { @Input() text: string | undefined; } - TestBed.configureTestingModule({declarations: [TextDirective]}); - TestBed.overrideTemplate( - TestApp, - `
    `, - ); + TestBed.overrideComponent(TestApp, { + set: { + template: `
    `, + imports: [CommonModule, MyDir, BankAccount, TextDirective], + }, + }); const fixture = TestBed.createComponent(TestApp); fixture.detectChanges(); @@ -596,7 +559,6 @@ describe('debug element', () => { it('should query directives on views moved in the DOM', () => { @Directive({ selector: '[text]', - standalone: false, }) class TextDirective { @Input() text: string | undefined; @@ -604,7 +566,6 @@ describe('debug element', () => { @Directive({ selector: '[moveView]', - standalone: false, }) class ViewManipulatingDirective { constructor( @@ -624,11 +585,12 @@ describe('debug element', () => { } } - TestBed.configureTestingModule({declarations: [TextDirective, ViewManipulatingDirective]}); - TestBed.overrideTemplate( - TestApp, - `
    `, - ); + TestBed.overrideComponent(TestApp, { + set: { + template: `
    `, + imports: [CommonModule, MyDir, BankAccount, TextDirective, ViewManipulatingDirective], + }, + }); const fixture = TestBed.createComponent(TestApp); fixture.detectChanges(); @@ -661,10 +623,9 @@ describe('debug element', () => { it('DebugElement.query should work with dynamically created elements', () => { @Directive({ selector: '[dir]', - standalone: false, }) class MyDir { - @Input('dir') dir: number | undefined; + @Input('dir') dir: string | undefined; constructor(renderer: Renderer2, element: ElementRef) { const div = renderer.createElement('div'); @@ -674,13 +635,11 @@ describe('debug element', () => { } @Component({ - selector: 'app-test', template: '
    ', - standalone: false, + imports: [MyDir], }) class MyComponent {} - TestBed.configureTestingModule({declarations: [MyComponent, MyDir]}); const fixture = TestBed.createComponent(MyComponent); fixture.detectChanges(); @@ -705,13 +664,12 @@ describe('debug element', () => { describe('DebugElement.query with dynamically created descendant elements', () => { let fixture: ComponentFixture<{}>; - beforeEach(() => { + beforeEach(async () => { @Directive({ selector: '[dir]', - standalone: false, }) class MyDir { - @Input('dir') dir: number | undefined; + @Input('dir') dir: string | undefined; constructor(renderer: Renderer2, element: ElementRef) { const outerDiv = renderer.createElement('div'); @@ -728,15 +686,12 @@ describe('debug element', () => { } @Component({ - selector: 'app-test', template: '
    ', - standalone: false, + imports: [MyDir], }) class MyComponent {} - - TestBed.configureTestingModule({declarations: [MyComponent, MyDir]}); fixture = TestBed.createComponent(MyComponent); - fixture.detectChanges(); + await fixture.whenStable(); }); it('should find the dynamic elements from fixture root', () => { @@ -753,7 +708,6 @@ describe('debug element', () => { describe("DebugElement.query doesn't fail on elements outside Angular context", () => { @Component({ template: '
    ', - standalone: false, }) class NativeEl { constructor(private elementRef: ElementRef) {} @@ -767,9 +721,7 @@ describe('debug element', () => { let el: DebugElement; beforeEach(() => { - const fixture = TestBed.configureTestingModule({declarations: [NativeEl]}).createComponent( - NativeEl, - ); + const fixture = TestBed.createComponent(NativeEl); fixture.detectChanges(); el = fixture.debugElement; }); @@ -828,10 +780,9 @@ describe('debug element', () => { it('DebugElement.queryAll should pick up both elements inserted via the view and through Renderer2', () => { @Directive({ selector: '[dir]', - standalone: false, }) class MyDir { - @Input('dir') dir: number | undefined; + @Input('dir') dir: string | undefined; constructor(renderer: Renderer2, element: ElementRef) { const div = renderer.createElement('div'); @@ -843,11 +794,10 @@ describe('debug element', () => { @Component({ selector: 'app-test', template: '
    ', - standalone: false, + imports: [MyDir], }) class MyComponent {} - TestBed.configureTestingModule({declarations: [MyComponent, MyDir]}); const fixture = TestBed.createComponent(MyComponent); fixture.detectChanges(); @@ -905,21 +855,21 @@ describe('debug element', () => { }); describe('properties', () => { - it('should include classes in properties.className', () => { + it('should include classes in properties.className', async () => { fixture = TestBed.createComponent(HostClassBindingCmp); - fixture.detectChanges(); + await fixture.whenStable(); const debugElement = fixture.debugElement; expect(debugElement.properties['className']).toBe('class-one class-two'); - fixture.componentInstance.hostClasses = 'class-three'; - fixture.detectChanges(); + fixture.componentInstance.hostClasses.set('class-three'); + await fixture.whenStable(); expect(debugElement.properties['className']).toBe('class-three'); - fixture.componentInstance.hostClasses = ''; - fixture.detectChanges(); + fixture.componentInstance.hostClasses.set(''); + await fixture.whenStable(); expect(debugElement.properties['className']).toBeFalsy(); }); @@ -1005,7 +955,6 @@ describe('debug element', () => { it('should trigger events registered via Renderer2', () => { @Component({ template: '', - standalone: false, }) class TestComponent implements OnInit { count = 0; @@ -1031,7 +980,6 @@ describe('debug element', () => { } } - TestBed.configureTestingModule({declarations: [TestComponent]}); const fixture = TestBed.createComponent(TestComponent); // Ivy depends on `eventListeners` to pick up events that haven't been registered through @@ -1051,7 +999,6 @@ describe('debug element', () => { @Component({ template: '', - standalone: false, }) class TestComponent { handleClick(_event: any) { @@ -1062,7 +1009,6 @@ describe('debug element', () => { } } - TestBed.configureTestingModule({declarations: [TestComponent]}); const fixture = TestBed.createComponent(TestComponent); const button = fixture.debugElement.query(By.css('button')); @@ -1130,12 +1076,17 @@ describe('debug element', () => { @Component({ selector: 'example-component', template: '', - standalone: false, + + imports: [CommonModule], }) class ExampleComponent {} - TestBed.configureTestingModule({imports: [CommonModule], declarations: [ExampleComponent]}); - TestBed.overrideTemplate(TestApp, ''); + TestBed.overrideComponent(TestApp, { + set: { + template: '', + imports: [CommonModule, MyDir, BankAccount, ExampleComponent], + }, + }); const fixture = TestBed.createComponent(TestApp); fixture.detectChanges(); @@ -1156,7 +1107,6 @@ describe('debug element', () => { }); it('should return the containing component if there is no structural directive or component on the node', () => { - TestBed.configureTestingModule({declarations: [MyDir]}); TestBed.overrideTemplate(TestApp, ''); const fixture = TestBed.createComponent(TestApp); @@ -1220,7 +1170,6 @@ describe('debug element', () => { it('should not query the descendants of a sibling node', () => { @Component({ - selector: 'my-comp', template: `

    @@ -1243,11 +1192,9 @@ describe('debug element', () => {

    `, - standalone: false, }) class MyComp {} - TestBed.configureTestingModule({declarations: [MyComp]}); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -1266,18 +1213,17 @@ describe('debug element', () => { @Component({ selector: 'my-icon', template: '', - standalone: false, }) class Icon { @Input() svgIcon: any = ''; } @Component({ template: ``, - standalone: false, + + imports: [Icon], }) class App {} - TestBed.configureTestingModule({declarations: [App, Icon]}); const fixture = TestBed.createComponent(App); fixture.detectChanges(); const element = fixture.debugElement.children[0]; @@ -1292,11 +1238,9 @@ describe('debug element', () => { it('should include namespaced attributes in DebugNode.attributes', () => { @Component({ template: `
    `, - standalone: false, }) class Comp {} - TestBed.configureTestingModule({declarations: [Comp]}); const fixture = TestBed.createComponent(Comp); fixture.detectChanges(); @@ -1306,13 +1250,11 @@ describe('debug element', () => { it('should include attributes added via Renderer2 in DebugNode.attributes', () => { @Component({ template: '
    ', - standalone: false, }) class Comp { constructor(public renderer: Renderer2) {} } - TestBed.configureTestingModule({declarations: [Comp]}); const fixture = TestBed.createComponent(Comp); const div = fixture.debugElement.query(By.css('div')); @@ -1326,7 +1268,6 @@ describe('debug element', () => { @Component({ selector: 'cancel-button', template: '', - standalone: false, }) class CancelButton { @Output() cancel = new EventEmitter(); @@ -1334,7 +1275,8 @@ describe('debug element', () => { @Component({ template: '', - standalone: false, + + imports: [CommonModule, CancelButton], }) class App { visible = true; @@ -1343,7 +1285,6 @@ describe('debug element', () => { } } - TestBed.configureTestingModule({declarations: [App, CancelButton]}); const fixture = TestBed.createComponent(App); fixture.detectChanges(); @@ -1363,13 +1304,10 @@ describe('debug element', () => { it('should not error when accessing node name', () => { @Component({ template: '', - standalone: false, }) class EmptyComponent {} - const fixture = TestBed.configureTestingModule({ - declarations: [EmptyComponent], - }).createComponent(EmptyComponent); + const fixture = TestBed.createComponent(EmptyComponent); let node = fixture.debugElement; let superParentName = ''; // Traverse upwards, all the way to #document, which is not a @@ -1385,20 +1323,18 @@ describe('debug element', () => { @Component({ template: `
    `, - standalone: false, + + imports: [forwardRef(() => MyComponent)], }) class Wrapper {} @Component({ selector: 'myComponent', template: '', - standalone: false, }) class MyComponent {} - const fixture = TestBed.configureTestingModule({ - declarations: [Wrapper, MyComponent], - }).createComponent(Wrapper); + const fixture = TestBed.createComponent(Wrapper); expect(fixture.debugElement.query((e) => e.name === 'myComponent')).toBeTruthy(); expect(fixture.debugElement.query((e) => e.name === 'div')).toBeTruthy(); }); @@ -1411,7 +1347,6 @@ describe('debug element', () => { } @Component({ template: '', - standalone: false, }) class MyComp { constructor( @@ -1424,9 +1359,7 @@ describe('debug element', () => { }); } } - const fixture = TestBed.configureTestingModule({declarations: [MyComp]}).createComponent( - MyComp, - ); + const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); fixture.debugElement.triggerEventHandler('mouseenter', eventToTrigger); expect(listenerCalled).toBe(false); diff --git a/packages/core/test/debug/di_graph_spec.ts b/packages/core/test/debug/di_graph_spec.ts index 273724590ac2..8e92318e5202 100644 --- a/packages/core/test/debug/di_graph_spec.ts +++ b/packages/core/test/debug/di_graph_spec.ts @@ -580,13 +580,11 @@ describe('diGraphTool', () => { withBody('', async () => { @Directive({ selector: '[dir-a]', - standalone: true, }) class DirA {} @Directive({ selector: '[dir-b]', - standalone: true, }) class DirB {} @@ -594,7 +592,6 @@ describe('diGraphTool', () => { selector: 'test-comp-1', template: '
    ', imports: [DirA, DirB], - standalone: true, }) class TestComponent1 {} @@ -615,13 +612,11 @@ describe('diGraphTool', () => { withBody('', async () => { @Directive({ selector: '[dir-a]', - standalone: true, }) class DirA {} @Directive({ selector: '[dir-b]', - standalone: true, }) class DirB {} @@ -629,7 +624,6 @@ describe('diGraphTool', () => { selector: 'test-comp-2', template: ' @if (true) {
    }', imports: [DirA, DirB], - standalone: true, }) class TestComponent2 {} diff --git a/packages/core/test/debug/stability_debug_spec.ts b/packages/core/test/debug/stability_debug_spec.ts index 5d50d8859a38..b0b50dc45edb 100644 --- a/packages/core/test/debug/stability_debug_spec.ts +++ b/packages/core/test/debug/stability_debug_spec.ts @@ -6,9 +6,9 @@ * found in the LICENSE file at https://angular.dev/license */ -import {ApplicationInitStatus, PendingTasks, provideZoneChangeDetection} from '../../src/core'; +import {ApplicationInitStatus, ApplicationRef, PendingTasks} from '../../src/core'; import {provideStabilityDebugging} from '../../src/application/stability_debug_impl'; -import {TestBed, fakeAsync, tick} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; describe('provideStabilityDebugging', () => { let consoleWarnSpy: jasmine.Spy; @@ -17,21 +17,26 @@ describe('provideStabilityDebugging', () => { let consoleGroupEndSpy: jasmine.Spy; beforeEach(() => { + jasmine.clock().install(); spyOn(global, 'Error').and.returnValue({stack: 'fake stack trace', name: 'Error', message: ''}); consoleWarnSpy = spyOn(console, 'warn'); consoleDebugSpy = spyOn(console, 'debug'); consoleInfoSpy = spyOn(console, 'info'); consoleGroupEndSpy = spyOn(console, 'groupEnd'); TestBed.configureTestingModule({ - providers: [provideStabilityDebugging(), provideZoneChangeDetection()], + providers: [provideStabilityDebugging()], }); }); + afterEach(() => { + jasmine.clock().uninstall(); + }); + function runInitializers() { (TestBed.inject(ApplicationInitStatus) as any).runInitializers(); } - it('should log pending tasks if application does not stabilize', fakeAsync(() => { + it('should log pending tasks if application does not stabilize', () => { const pendingTasks = TestBed.inject(PendingTasks); // Prevent stability @@ -39,15 +44,15 @@ describe('provideStabilityDebugging', () => { runInitializers(); - tick(10_000); + jasmine.clock().tick(10_000); expect(consoleDebugSpy.calls.first().args[0]).toMatch(/Application did not stabilize/); expect(consoleDebugSpy.calls.all()[1].args[0]).toMatch(/fake stack trace/); removeTask(); - })); + }); - it('should not log if application stabilizes within 9 seconds', fakeAsync(() => { + it('should not log if application stabilizes within 9 seconds', async () => { const pendingTasks = TestBed.inject(PendingTasks); // Prevent stability @@ -55,10 +60,13 @@ describe('provideStabilityDebugging', () => { runInitializers(); - tick(5000); + jasmine.clock().tick(5000); removeTask(); // Stabilize - tick(4000); // Reach 9000 total + jasmine.clock().tick(0); + await TestBed.inject(ApplicationRef).whenStable(); + await Promise.resolve(); + jasmine.clock().tick(4000); // Reach 9000 total expect(consoleDebugSpy).not.toHaveBeenCalled(); - })); + }); }); diff --git a/packages/core/test/directive_lifecycle_integration_spec.ts b/packages/core/test/directive_lifecycle_integration_spec.ts index daf745a61272..8a230609a377 100644 --- a/packages/core/test/directive_lifecycle_integration_spec.ts +++ b/packages/core/test/directive_lifecycle_integration_spec.ts @@ -6,39 +6,26 @@ * found in the LICENSE file at https://angular.dev/license */ -import {ChangeDetectionStrategy} from '@angular/compiler'; import { AfterContentChecked, AfterContentInit, AfterViewChecked, AfterViewInit, + ChangeDetectionStrategy, Component, Directive, DoCheck, OnChanges, OnInit, - provideZoneChangeDetection, } from '../src/core'; -import {inject, TestBed} from '../testing'; +import {TestBed} from '../testing'; import {Log} from '../testing/src/testing_internal'; describe('directive lifecycle integration spec', () => { - let log: Log; - - beforeEach(() => { - TestBed.configureTestingModule({ - declarations: [LifecycleCmp, LifecycleDir, MyComp5], - providers: [provideZoneChangeDetection(), Log], - }).overrideComponent(MyComp5, {set: {template: '
    '}}); - }); - - beforeEach(inject([Log], (_log: any) => { - log = _log; - })); - - it('should invoke lifecycle methods ngOnChanges > ngOnInit > ngDoCheck > ngAfterContentChecked', () => { + it('should invoke lifecycle methods ngOnChanges > ngOnInit > ngDoCheck > ngAfterContentChecked', async () => { + const log = TestBed.inject(Log); const fixture = TestBed.createComponent(MyComp5); - fixture.detectChanges(); + await fixture.whenStable(); expect(log.result()).toEqual( 'ngOnChanges; ngOnInit; ngDoCheck; ngAfterContentInit; ngAfterContentChecked; child_ngDoCheck; ' + @@ -46,7 +33,8 @@ describe('directive lifecycle integration spec', () => { ); log.clear(); - fixture.detectChanges(); + fixture.changeDetectorRef.markForCheck(); + await fixture.whenStable(); expect(log.result()).toEqual( 'ngDoCheck; ngAfterContentChecked; child_ngDoCheck; ngAfterViewChecked', @@ -56,7 +44,6 @@ describe('directive lifecycle integration spec', () => { @Directive({ selector: '[lifecycle-dir]', - standalone: false, }) class LifecycleDir implements DoCheck { constructor(private _log: Log) {} @@ -69,7 +56,7 @@ class LifecycleDir implements DoCheck { selector: '[lifecycle]', inputs: ['field'], template: `
    `, - standalone: false, + imports: [LifecycleDir], changeDetection: ChangeDetectionStrategy.Eager, }) class LifecycleCmp @@ -115,8 +102,8 @@ class LifecycleCmp } @Component({ - selector: 'my-comp', - standalone: false, + imports: [LifecycleCmp], + template: '
    ', changeDetection: ChangeDetectionStrategy.Eager, }) class MyComp5 {} diff --git a/packages/core/test/fake_async_spec.ts b/packages/core/test/fake_async_spec.ts index 55aae31ca9c1..b1d926e89687 100644 --- a/packages/core/test/fake_async_spec.ts +++ b/packages/core/test/fake_async_spec.ts @@ -11,360 +11,490 @@ import {Log} from '../testing/src/testing_internal'; import {EventManager} from '@angular/platform-browser'; const resolvedPromise = Promise.resolve(null); -const ProxyZoneSpec: {assertPresent: () => void} = (Zone as any)['ProxyZoneSpec']; +const ProxyZoneSpec: {new (): ZoneSpec; assertPresent: () => void} = (Zone as any)['ProxyZoneSpec']; +const proxyZone = Zone.root.fork(new ProxyZoneSpec()); +const withProxyZone = (fn: T): T => { + return function (this: unknown, ...args: unknown[]) { + return proxyZone.run(fn, this, args); + } as unknown as T; +}; describe('fake async', () => { - it('should run synchronous code', () => { - let ran = false; - fakeAsync(() => { - ran = true; - })(); - - expect(ran).toEqual(true); - }); - - it('should pass arguments to the wrapped function', () => { - fakeAsync((foo: string, bar: string) => { - expect(foo).toEqual('foo'); - expect(bar).toEqual('bar'); - })('foo', 'bar'); - }); - - it('should work with inject()', fakeAsync( - inject([EventManager], (eventManager: EventManager) => { - expect(eventManager).toBeInstanceOf(EventManager); - }), - )); - - it('should throw on nested calls', () => { - expect(() => { + it( + 'should run synchronous code', + withProxyZone(() => { + let ran = false; fakeAsync(() => { - fakeAsync((): null => null)(); + ran = true; })(); - }).toThrowError('fakeAsync() calls can not be nested'); - }); - - it('should flush microtasks before returning', () => { - let thenRan = false; - - fakeAsync(() => { - resolvedPromise.then((_) => { - thenRan = true; - }); - })(); - - expect(thenRan).toEqual(true); - }); - it('should propagate the return value', () => { - expect(fakeAsync(() => 'foo')()).toEqual('foo'); - }); + expect(ran).toEqual(true); + }), + ); + + it( + 'should pass arguments to the wrapped function', + withProxyZone(() => { + fakeAsync((foo: string, bar: string) => { + expect(foo).toEqual('foo'); + expect(bar).toEqual('bar'); + })('foo', 'bar'); + }), + ); + + it( + 'should work with inject()', + withProxyZone( + fakeAsync( + inject([EventManager], (eventManager: EventManager) => { + expect(eventManager).toBeInstanceOf(EventManager); + }), + ), + ), + ); + + it( + 'should throw on nested calls', + withProxyZone(() => { + expect(() => { + fakeAsync(() => { + fakeAsync((): null => null)(); + })(); + }).toThrowError('fakeAsync() calls can not be nested'); + }), + ); - describe('Promise', () => { - it('should run asynchronous code', fakeAsync(() => { + it( + 'should flush microtasks before returning', + withProxyZone(() => { let thenRan = false; - resolvedPromise.then((_) => { - thenRan = true; - }); - expect(thenRan).toEqual(false); + fakeAsync(() => { + resolvedPromise.then((_) => { + thenRan = true; + }); + })(); - flushMicrotasks(); expect(thenRan).toEqual(true); - })); - - it('should run chained thens', fakeAsync(() => { - const log = new Log(); - - resolvedPromise.then((_) => log.add(1)).then((_) => log.add(2)); - - expect(log.result()).toEqual(''); - - flushMicrotasks(); - expect(log.result()).toEqual('1; 2'); - })); - - it('should run Promise created in Promise', fakeAsync(() => { - const log = new Log(); - - resolvedPromise.then((_) => { - log.add(1); - resolvedPromise.then((_) => log.add(2)); - }); - - expect(log.result()).toEqual(''); + }), + ); - flushMicrotasks(); - expect(log.result()).toEqual('1; 2'); - })); + it( + 'should propagate the return value', + withProxyZone(() => { + expect(fakeAsync(() => 'foo')()).toEqual('foo'); + }), + ); - it('should complain if the test throws an exception during async calls', () => { - expect(() => { + describe('Promise', () => { + it( + 'should run asynchronous code', + withProxyZone( fakeAsync(() => { + let thenRan = false; resolvedPromise.then((_) => { - throw new Error('async'); + thenRan = true; }); - flushMicrotasks(); - })(); - }).toThrow(); - }); - - it('should complain if a test throws an exception', () => { - expect(() => { - fakeAsync(() => { - throw new Error('sync'); - })(); - }).toThrowError('sync'); - }); - }); - - describe('timers', () => { - it('should run queued zero duration timer on zero tick', fakeAsync(() => { - let ran = false; - setTimeout(() => { - ran = true; - }, 0); - - expect(ran).toEqual(false); - - tick(); - expect(ran).toEqual(true); - })); - - it('should run queued timer after sufficient clock ticks', fakeAsync(() => { - let ran = false; - setTimeout(() => { - ran = true; - }, 10); - - tick(6); - expect(ran).toEqual(false); - - tick(6); - expect(ran).toEqual(true); - })); - - it('should run new macro tasks created by timer callback', fakeAsync(() => { - function nestedTimer(callback: () => any): void { - setTimeout(() => setTimeout(() => callback())); - } - const callback = jasmine.createSpy('callback'); - nestedTimer(callback); - expect(callback).not.toHaveBeenCalled(); - tick(0); - expect(callback).toHaveBeenCalled(); - })); - - it('should not queue nested timer on tick with processNewMacroTasksSynchronously=false', fakeAsync(() => { - function nestedTimer(callback: () => any): void { - setTimeout(() => setTimeout(() => callback())); - } - const callback = jasmine.createSpy('callback'); - nestedTimer(callback); - expect(callback).not.toHaveBeenCalled(); - tick(0, {processNewMacroTasksSynchronously: false}); - expect(callback).not.toHaveBeenCalled(); - flush(); - expect(callback).toHaveBeenCalled(); - })); - - it('should run queued timer only once', fakeAsync(() => { - let cycles = 0; - setTimeout(() => { - cycles++; - }, 10); - - tick(10); - expect(cycles).toEqual(1); - - tick(10); - expect(cycles).toEqual(1); - - tick(10); - expect(cycles).toEqual(1); - })); - - it('should not run cancelled timer', fakeAsync(() => { - let ran = false; - const id = setTimeout(() => { - ran = true; - }, 10); - clearTimeout(id); - - tick(10); - expect(ran).toEqual(false); - })); - - it('should throw an error on dangling timers', () => { - expect(() => { - fakeAsync( - () => { - setTimeout(() => {}, 10); - }, - {flush: false}, - )(); - }).toThrowError('1 timer(s) still in the queue.'); - }); - - it('should throw an error on dangling periodic timers', () => { - expect(() => { - fakeAsync( - () => { - setInterval(() => {}, 10); - }, - {flush: false}, - )(); - }).toThrowError('1 periodic timer(s) still in the queue.'); - }); - - it('should run periodic timers', fakeAsync(() => { - let cycles = 0; - const id = setInterval(() => { - cycles++; - }, 10); - tick(10); - expect(cycles).toEqual(1); + expect(thenRan).toEqual(false); - tick(10); - expect(cycles).toEqual(2); - - tick(10); - expect(cycles).toEqual(3); - clearInterval(id); - })); - - it('should not run cancelled periodic timer', fakeAsync(() => { - let ran = false; - const id = setInterval(() => { - ran = true; - }, 10); - clearInterval(id); - - tick(10); - expect(ran).toEqual(false); - })); - - it('should be able to cancel periodic timers from a callback', fakeAsync(() => { - let cycles = 0; - const id = setInterval(() => { - cycles++; - clearInterval(id); - }, 10); - - tick(10); - expect(cycles).toEqual(1); - - tick(10); - expect(cycles).toEqual(1); - })); - - it('should clear periodic timers', fakeAsync(() => { - let cycles = 0; - setInterval(() => { - cycles++; - }, 10); - - tick(10); - expect(cycles).toEqual(1); - - discardPeriodicTasks(); - - // Tick once to clear out the timer which already started. - tick(10); - expect(cycles).toEqual(2); - - tick(10); - // Nothing should change - expect(cycles).toEqual(2); - })); - - it('should process microtasks before timers', fakeAsync(() => { - const log = new Log(); - - resolvedPromise.then((_) => log.add('microtask')); - - setTimeout(() => log.add('timer'), 9); - - const id = setInterval(() => log.add('periodic timer'), 10); - - expect(log.result()).toEqual(''); - - tick(10); - expect(log.result()).toEqual('microtask; timer; periodic timer'); - clearInterval(id); - })); - - it('should process micro-tasks created in timers before next timers', fakeAsync(() => { - const log = new Log(); - - resolvedPromise.then((_) => log.add('microtask')); + flushMicrotasks(); + expect(thenRan).toEqual(true); + }), + ), + ); + + it( + 'should run chained thens', + withProxyZone( + fakeAsync(() => { + const log = new Log(); - setTimeout(() => { - log.add('timer'); - resolvedPromise.then((_) => log.add('t microtask')); - }, 9); + resolvedPromise.then((_) => log.add(1)).then((_) => log.add(2)); - const id = setInterval(() => { - log.add('periodic timer'); - resolvedPromise.then((_) => log.add('pt microtask')); - }, 10); + expect(log.result()).toEqual(''); - tick(10); - expect(log.result()).toEqual('microtask; timer; t microtask; periodic timer; pt microtask'); + flushMicrotasks(); + expect(log.result()).toEqual('1; 2'); + }), + ), + ); + + it( + 'should run Promise created in Promise', + withProxyZone( + fakeAsync(() => { + const log = new Log(); - tick(10); - expect(log.result()).toEqual( - 'microtask; timer; t microtask; periodic timer; pt microtask; periodic timer; pt microtask', - ); - clearInterval(id); - })); + resolvedPromise.then((_) => { + log.add(1); + resolvedPromise.then((_) => log.add(2)); + }); - it('should flush tasks', fakeAsync(() => { - let ran = false; - setTimeout(() => { - ran = true; - }, 10); + expect(log.result()).toEqual(''); - flush(); - expect(ran).toEqual(true); - })); + flushMicrotasks(); + expect(log.result()).toEqual('1; 2'); + }), + ), + ); + + it( + 'should complain if the test throws an exception during async calls', + withProxyZone(() => { + expect(() => { + fakeAsync(() => { + resolvedPromise.then((_) => { + throw new Error('async'); + }); + flushMicrotasks(); + })(); + }).toThrow(); + }), + ); + + it( + 'should complain if a test throws an exception', + withProxyZone(() => { + expect(() => { + fakeAsync(() => { + throw new Error('sync'); + })(); + }).toThrowError('sync'); + }), + ); + }); - it('should flush multiple tasks', fakeAsync(() => { - let ran = false; - let ran2 = false; - setTimeout(() => { - ran = true; - }, 10); - setTimeout(() => { - ran2 = true; - }, 30); + describe('timers', () => { + it( + 'should run queued zero duration timer on zero tick', + withProxyZone( + fakeAsync(() => { + let ran = false; + setTimeout(() => { + ran = true; + }, 0); + + expect(ran).toEqual(false); + + tick(); + expect(ran).toEqual(true); + }), + ), + ); + + it( + 'should run queued timer after sufficient clock ticks', + withProxyZone( + fakeAsync(() => { + let ran = false; + setTimeout(() => { + ran = true; + }, 10); + + tick(6); + expect(ran).toEqual(false); + + tick(6); + expect(ran).toEqual(true); + }), + ), + ); + + it( + 'should run new macro tasks created by timer callback', + withProxyZone( + fakeAsync(() => { + function nestedTimer(callback: () => any): void { + setTimeout(() => setTimeout(() => callback())); + } + const callback = jasmine.createSpy('callback'); + nestedTimer(callback); + expect(callback).not.toHaveBeenCalled(); + tick(0); + expect(callback).toHaveBeenCalled(); + }), + ), + ); + + it( + 'should not queue nested timer on tick with processNewMacroTasksSynchronously=false', + withProxyZone( + fakeAsync(() => { + function nestedTimer(callback: () => any): void { + setTimeout(() => setTimeout(() => callback())); + } + const callback = jasmine.createSpy('callback'); + nestedTimer(callback); + expect(callback).not.toHaveBeenCalled(); + tick(0, {processNewMacroTasksSynchronously: false}); + expect(callback).not.toHaveBeenCalled(); + flush(); + expect(callback).toHaveBeenCalled(); + }), + ), + ); + + it( + 'should run queued timer only once', + withProxyZone( + fakeAsync(() => { + let cycles = 0; + setTimeout(() => { + cycles++; + }, 10); + + tick(10); + expect(cycles).toEqual(1); + + tick(10); + expect(cycles).toEqual(1); + + tick(10); + expect(cycles).toEqual(1); + }), + ), + ); + + it( + 'should not run cancelled timer', + withProxyZone( + fakeAsync(() => { + let ran = false; + const id = setTimeout(() => { + ran = true; + }, 10); + clearTimeout(id); + + tick(10); + expect(ran).toEqual(false); + }), + ), + ); + + it( + 'should throw an error on dangling timers', + withProxyZone(() => { + expect(() => { + fakeAsync( + () => { + setTimeout(() => {}, 10); + }, + {flush: false}, + )(); + }).toThrowError('1 timer(s) still in the queue.'); + }), + ); + + it( + 'should throw an error on dangling periodic timers', + withProxyZone(() => { + expect(() => { + fakeAsync( + () => { + setInterval(() => {}, 10); + }, + {flush: false}, + )(); + }).toThrowError('1 periodic timer(s) still in the queue.'); + }), + ); + + it( + 'should run periodic timers', + withProxyZone( + fakeAsync(() => { + let cycles = 0; + const id = setInterval(() => { + cycles++; + }, 10); + + tick(10); + expect(cycles).toEqual(1); + + tick(10); + expect(cycles).toEqual(2); + + tick(10); + expect(cycles).toEqual(3); + clearInterval(id); + }), + ), + ); + + it( + 'should not run cancelled periodic timer', + withProxyZone( + fakeAsync(() => { + let ran = false; + const id = setInterval(() => { + ran = true; + }, 10); + clearInterval(id); + + tick(10); + expect(ran).toEqual(false); + }), + ), + ); + + it( + 'should be able to cancel periodic timers from a callback', + withProxyZone( + fakeAsync(() => { + let cycles = 0; + const id = setInterval(() => { + cycles++; + clearInterval(id); + }, 10); + + tick(10); + expect(cycles).toEqual(1); + + tick(10); + expect(cycles).toEqual(1); + }), + ), + ); + + it( + 'should clear periodic timers', + withProxyZone( + fakeAsync(() => { + let cycles = 0; + setInterval(() => { + cycles++; + }, 10); + + tick(10); + expect(cycles).toEqual(1); + + discardPeriodicTasks(); + + // Tick once to clear out the timer which already started. + tick(10); + expect(cycles).toEqual(2); + + tick(10); + // Nothing should change + expect(cycles).toEqual(2); + }), + ), + ); + + it( + 'should process microtasks before timers', + withProxyZone( + fakeAsync(() => { + const log = new Log(); - let elapsed = flush(); + resolvedPromise.then((_) => log.add('microtask')); - expect(ran).toEqual(true); - expect(ran2).toEqual(true); - expect(elapsed).toEqual(30); - })); + setTimeout(() => log.add('timer'), 9); - it('should move periodic tasks', fakeAsync(() => { - let ran = false; - let count = 0; - setInterval(() => { - count++; - }, 10); - setTimeout(() => { - ran = true; - }, 35); + const id = setInterval(() => log.add('periodic timer'), 10); - let elapsed = flush(); + expect(log.result()).toEqual(''); - expect(count).toEqual(3); - expect(ran).toEqual(true); - expect(elapsed).toEqual(35); + tick(10); + expect(log.result()).toEqual('microtask; timer; periodic timer'); + clearInterval(id); + }), + ), + ); - discardPeriodicTasks(); - })); + it( + 'should process micro-tasks created in timers before next timers', + withProxyZone( + fakeAsync(() => { + const log = new Log(); + + resolvedPromise.then((_) => log.add('microtask')); + + setTimeout(() => { + log.add('timer'); + resolvedPromise.then((_) => log.add('t microtask')); + }, 9); + + const id = setInterval(() => { + log.add('periodic timer'); + resolvedPromise.then((_) => log.add('pt microtask')); + }, 10); + + tick(10); + expect(log.result()).toEqual( + 'microtask; timer; t microtask; periodic timer; pt microtask', + ); + + tick(10); + expect(log.result()).toEqual( + 'microtask; timer; t microtask; periodic timer; pt microtask; periodic timer; pt microtask', + ); + clearInterval(id); + }), + ), + ); + + it( + 'should flush tasks', + withProxyZone( + fakeAsync(() => { + let ran = false; + setTimeout(() => { + ran = true; + }, 10); + + flush(); + expect(ran).toEqual(true); + }), + ), + ); + + it( + 'should flush multiple tasks', + withProxyZone( + fakeAsync(() => { + let ran = false; + let ran2 = false; + setTimeout(() => { + ran = true; + }, 10); + setTimeout(() => { + ran2 = true; + }, 30); + + let elapsed = flush(); + + expect(ran).toEqual(true); + expect(ran2).toEqual(true); + expect(elapsed).toEqual(30); + }), + ), + ); + + it( + 'should move periodic tasks', + withProxyZone( + fakeAsync(() => { + let ran = false; + let count = 0; + setInterval(() => { + count++; + }, 10); + setTimeout(() => { + ran = true; + }, 35); + + let elapsed = flush(); + + expect(count).toEqual(3); + expect(ran).toEqual(true); + expect(elapsed).toEqual(35); + + discardPeriodicTasks(); + }), + ), + ); }); describe('outside of the fakeAsync zone', () => { @@ -396,38 +526,54 @@ describe('fake async', () => { describe('only one `fakeAsync` zone per test', () => { let zoneInBeforeEach: Zone; let zoneInTest1: Zone; - beforeEach(fakeAsync(() => { - zoneInBeforeEach = Zone.current; - })); - - it('should use the same zone as in beforeEach', fakeAsync(() => { - zoneInTest1 = Zone.current; - expect(zoneInTest1).toBe(zoneInBeforeEach); - })); + beforeEach( + withProxyZone( + fakeAsync(() => { + zoneInBeforeEach = Zone.current; + }), + ), + ); + + it( + 'should use the same zone as in beforeEach', + withProxyZone( + fakeAsync(() => { + zoneInTest1 = Zone.current; + expect(zoneInTest1).toBe(zoneInBeforeEach); + }), + ), + ); }); }); describe('ProxyZone', () => { - beforeEach(() => { - ProxyZoneSpec.assertPresent(); - }); - - afterEach(() => { - ProxyZoneSpec.assertPresent(); - }); + beforeEach( + withProxyZone(() => { + ProxyZoneSpec.assertPresent(); + }), + ); - it('should allow fakeAsync zone to retroactively set a zoneSpec outside of fakeAsync', () => { - ProxyZoneSpec.assertPresent(); - let state: string = 'not run'; - const testZone = Zone.current.fork({name: 'test-zone'}); - fakeAsync(() => { - testZone.run(() => { - Promise.resolve('works').then((v) => (state = v)); - expect(state).toEqual('not run'); - flushMicrotasks(); - expect(state).toEqual('works'); - }); - })(); - expect(state).toEqual('works'); - }); + afterEach( + withProxyZone(() => { + ProxyZoneSpec.assertPresent(); + }), + ); + + it( + 'should allow fakeAsync zone to retroactively set a zoneSpec outside of fakeAsync', + withProxyZone(() => { + ProxyZoneSpec.assertPresent(); + let state: string = 'not run'; + const testZone = Zone.current.fork({name: 'test-zone'}); + fakeAsync(() => { + testZone.run(() => { + Promise.resolve('works').then((v) => (state = v)); + expect(state).toEqual('not run'); + flushMicrotasks(); + expect(state).toEqual('works'); + }); + })(); + expect(state).toEqual('works'); + }), + ); }); diff --git a/packages/core/test/forward_ref_integration_spec.ts b/packages/core/test/forward_ref_integration_spec.ts index 11eca536bcd2..a6ef68d1aae3 100644 --- a/packages/core/test/forward_ref_integration_spec.ts +++ b/packages/core/test/forward_ref_integration_spec.ts @@ -6,7 +6,8 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule} from '@angular/common'; +import {NgForOf} from '@angular/common'; +import {expect} from '@angular/private/testing/matchers'; import { asNativeElements, Component, @@ -15,11 +16,9 @@ import { forwardRef, Inject, NgModule, - NO_ERRORS_SCHEMA, QueryList, } from '../src/core'; import {TestBed} from '../testing'; -import {expect} from '@angular/private/testing/matchers'; class Frame { name: string = 'frame'; @@ -35,7 +34,7 @@ describe('forwardRef integration', function () { }); it('should instantiate components which are declared using forwardRef', () => { - const a = TestBed.configureTestingModule({schemas: [NO_ERRORS_SCHEMA]}).createComponent(App); + const a = TestBed.createComponent(App); a.detectChanges(); expect(asNativeElements(a.debugElement.children)).toHaveText('frame(lock)'); expect(TestBed.inject(ModuleFrame)).toBeDefined(); @@ -43,7 +42,7 @@ describe('forwardRef integration', function () { }); @NgModule({ - imports: [CommonModule], + imports: [NgForOf], providers: [forwardRef(() => ModuleFrame)], declarations: [forwardRef(() => Door), forwardRef(() => Lock)], exports: [forwardRef(() => Door), forwardRef(() => Lock)], @@ -51,7 +50,6 @@ describe('forwardRef integration', function () { class Module {} @Component({ - selector: 'app', viewProviders: [forwardRef(() => Frame)], template: ``, standalone: false, diff --git a/packages/core/test/legacy_animation/legacy_animation_integration_spec.ts b/packages/core/test/legacy_animation/legacy_animation_integration_spec.ts index 6e34131f5479..9fa75d5242e2 100644 --- a/packages/core/test/legacy_animation/legacy_animation_integration_spec.ts +++ b/packages/core/test/legacy_animation/legacy_animation_integration_spec.ts @@ -45,7 +45,7 @@ import { ViewChild, ViewContainerRef, } from '../../src/core'; -import {fakeAsync, flushMicrotasks, TestBed} from '../../testing'; +import {TestBed} from '../../testing'; const DEFAULT_NAMESPACE_ID = 'id'; const DEFAULT_COMPONENT_ID = '1'; @@ -121,7 +121,7 @@ const DEFAULT_COMPONENT_ID = '1'; } describe('fakeAsync testing', () => { - it('should only require one flushMicrotasks call to kick off animation callbacks', fakeAsync(() => { + it('should only require one flushMicrotasks call to kick off animation callbacks', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'cmp', @@ -154,7 +154,7 @@ const DEFAULT_COMPONENT_ID = '1'; fixture.detectChanges(); expect(cmp.status).toEqual(''); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.status).toEqual('start'); let player = MockAnimationDriver.log.pop()!; @@ -169,11 +169,11 @@ const DEFAULT_COMPONENT_ID = '1'; player = MockAnimationDriver.log.pop()!; player.finish(); expect(cmp.status).toEqual(''); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.status).toEqual('done'); - })); + }); - it('should always run .start callbacks before .done callbacks even for noop animations', fakeAsync(() => { + it('should always run .start callbacks before .done callbacks even for noop animations', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'cmp', @@ -202,11 +202,11 @@ const DEFAULT_COMPONENT_ID = '1'; fixture.detectChanges(); expect(cmp.log).toEqual([]); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['start', 'done']); - })); + }); - it('should emit the correct totalTime value for a noop-animation', fakeAsync(() => { + it('should emit the correct totalTime value for a noop-animation', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'cmp', @@ -241,17 +241,17 @@ const DEFAULT_COMPONENT_ID = '1'; fixture.detectChanges(); expect(cmp.log).toEqual([]); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log.length).toEqual(2); const [start, end] = cmp.log; expect(start.totalTime).toEqual(1000); expect(end.totalTime).toEqual(1000); - })); + }); }); describe('component fixture integration', () => { describe('whenRenderingDone', () => { - it('should wait until the animations are finished until continuing', fakeAsync(() => { + it('should wait until the animations are finished until continuing', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'cmp', @@ -284,11 +284,11 @@ const DEFAULT_COMPONENT_ID = '1'; players[0].finish(); expect(isDone).toBe(false); - flushMicrotasks(); + await Promise.resolve(); expect(isDone).toBe(true); - })); + }); - it('should wait for a noop animation to finish before continuing', fakeAsync(() => { + it('should wait for a noop animation to finish before continuing', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'cmp', @@ -320,11 +320,11 @@ const DEFAULT_COMPONENT_ID = '1'; engine.flush(); expect(isDone).toBe(false); - flushMicrotasks(); + await Promise.resolve(); expect(isDone).toBe(true); - })); + }); - it('should wait for active animations to finish even if they have already started', fakeAsync(() => { + it('should wait for active animations to finish even if they have already started', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'cmp', @@ -351,13 +351,13 @@ const DEFAULT_COMPONENT_ID = '1'; let isDone = false; fixture.whenRenderingDone().then(() => (isDone = true)); - flushMicrotasks(); + await Promise.resolve(); expect(isDone).toBe(false); players[0].finish(); - flushMicrotasks(); + await Promise.resolve(); expect(isDone).toBe(true); - })); + }); }); }); @@ -576,7 +576,7 @@ const DEFAULT_COMPONENT_ID = '1'; expect(player.duration).toEqual(1234); }); - it('should always cancel the previous transition if a follow-up transition is not matched', fakeAsync(() => { + it('should always cancel the previous transition if a follow-up transition is not matched', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'if-cmp', @@ -623,7 +623,7 @@ const DEFAULT_COMPONENT_ID = '1'; expect(getLog().length).toEqual(0); expect(engine.players.length).toEqual(0); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.startEvent.toState).toEqual('a'); expect(cmp.startEvent.totalTime).toEqual(0); expect(cmp.startEvent.toState).toEqual('a'); @@ -638,7 +638,7 @@ const DEFAULT_COMPONENT_ID = '1'; expect(players.length).toEqual(1); expect(engine.players.length).toEqual(1); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.startEvent.toState).toEqual('b'); expect(cmp.startEvent.totalTime).toEqual(500); expect(cmp.startEvent.toState).toEqual('b'); @@ -655,16 +655,16 @@ const DEFAULT_COMPONENT_ID = '1'; expect(engine.players.length).toEqual(0); expect(getLog().length).toEqual(0); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.startEvent.toState).toEqual('c'); expect(cmp.startEvent.totalTime).toEqual(0); expect(cmp.startEvent.toState).toEqual('c'); expect(cmp.startEvent.totalTime).toEqual(0); expect(completed).toBe(true); - })); + }); - it('should always fire inner callbacks even if no animation is fired when a view is inserted', fakeAsync(() => { + it('should always fire inner callbacks even if no animation is fired when a view is inserted', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'if-cmp', @@ -694,16 +694,16 @@ const DEFAULT_COMPONENT_ID = '1'; const fixture = TestBed.createComponent(Cmp); const cmp = fixture.componentInstance; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual([]); cmp.exp = true; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['myAnimation-start', 'myAnimation-done']); - })); + }); it('should only turn a view removal as into `void` state transition', () => { @Component({ @@ -1017,7 +1017,7 @@ const DEFAULT_COMPONENT_ID = '1'; }); describe('host bindings', () => { - it('should trigger a state change animation from state => state on the component host element', fakeAsync(() => { + it('should trigger a state change animation from state => state on the component host element', () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'my-cmp', @@ -1062,9 +1062,9 @@ const DEFAULT_COMPONENT_ID = '1'; ['opacity', '1'], ]), ]); - })); + }); - it('should trigger a leave animation when the inner has ViewContainerRef injected', fakeAsync(() => { + it('should trigger a leave animation when the inner has ViewContainerRef injected', () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'parent-cmp', @@ -1121,9 +1121,9 @@ const DEFAULT_COMPONENT_ID = '1'; player.finish(); expect(fixture.debugElement.nativeElement.children.length).toBe(0); - })); + }); - it('should trigger a leave animation when the inner components host binding updates', fakeAsync(() => { + it('should trigger a leave animation when the inner components host binding updates', () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'parent-cmp', @@ -1179,9 +1179,9 @@ const DEFAULT_COMPONENT_ID = '1'; player.finish(); expect(fixture.debugElement.nativeElement.children.length).toBe(0); - })); + }); - it('should wait for child animations before removing parent', fakeAsync(() => { + it('should wait for child animations before removing parent', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, template: '', @@ -1237,12 +1237,12 @@ const DEFAULT_COMPONENT_ID = '1'; ]); player.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(fixture.nativeElement.children.length).toBe(0); - })); + }); // animationRenderer => nonAnimationRenderer - it('should trigger a leave animation when the outer components element binding updates on the host component element', fakeAsync(() => { + it('should trigger a leave animation when the outer components element binding updates on the host component element', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'parent-cmp', @@ -1295,11 +1295,11 @@ const DEFAULT_COMPONENT_ID = '1'; ]); player.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(fixture.debugElement.nativeElement.children.length).toBe(0); - })); + }); - it('should trigger a leave animation when both the inner and outer components trigger on the same element', fakeAsync(() => { + it('should trigger a leave animation when both the inner and outer components trigger on the same element', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'parent-cmp', @@ -1377,11 +1377,11 @@ const DEFAULT_COMPONENT_ID = '1'; p1.finish(); p2.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(fixture.debugElement.nativeElement.children.length).toBe(0); - })); + }); - it('should not throw when the host element is removed and no animation triggers', fakeAsync(() => { + it('should not throw when the host element is removed and no animation triggers', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'parent-cmp', @@ -1417,15 +1417,15 @@ const DEFAULT_COMPONENT_ID = '1'; cmp.exp = false; fixture.detectChanges(); engine.flush(); - flushMicrotasks(); + await Promise.resolve(); expect(getLog().length).toEqual(0); expect(fixture.debugElement.nativeElement.children.length).toBe(0); - flushMicrotasks(); + await Promise.resolve(); expect(fixture.debugElement.nativeElement.children.length).toBe(0); - })); + }); - it('should properly evaluate pre/auto-style values when components are inserted/removed which contain host animations', fakeAsync(() => { + it('should properly evaluate pre/auto-style values when components are inserted/removed which contain host animations', () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'parent-cmp', @@ -1465,7 +1465,7 @@ const DEFAULT_COMPONENT_ID = '1'; const item = items[i]; expect(item.style['display']).toBeFalsy(); } - })); + }); }); it('should cancel and merge in mid-animation styles into the follow-up animation, but only for animation keyframes that start right away', () => { @@ -1930,7 +1930,7 @@ const DEFAULT_COMPONENT_ID = '1'; } }); - it('should keep/restore the trigger value when there are move operations (with *ngFor + trackBy)', fakeAsync(() => { + it('should keep/restore the trigger value when there are move operations (with *ngFor + trackBy)', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'ani-cmp', @@ -1977,15 +1977,15 @@ const DEFAULT_COMPONENT_ID = '1'; const cmp = fixture.componentInstance; fixture.detectChanges(); - const completeAnimations = () => { + const completeAnimations = async () => { fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); engine.players.forEach((player) => player.finish()); }; cmp.log = []; [0, 1, 2].forEach(() => cmp.addItem()); - completeAnimations(); + await completeAnimations(); expect(cmp.log).toEqual([ '[item0] void => null', '[item1] void => null', @@ -1993,17 +1993,17 @@ const DEFAULT_COMPONENT_ID = '1'; ]); cmp.reverseItems(); - completeAnimations(); + await completeAnimations(); cmp.log = []; [0, 1, 2].forEach(() => cmp.removeItem()); - completeAnimations(); + await completeAnimations(); expect(cmp.log).toEqual([ '[item2] null => void', '[item1] null => void', '[item0] null => void', ]); - })); + }); it('should animate removals of nodes to the `void` state for each animation trigger, but treat all auto styles as pre styles', () => { @Component({ @@ -2467,7 +2467,7 @@ const DEFAULT_COMPONENT_ID = '1'; expect(players.length).toEqual(0); }); - it("should update the final state styles when params update even if the expression hasn't changed", fakeAsync(() => { + it("should update the final state styles when params update even if the expression hasn't changed", async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'ani-cmp', @@ -2498,7 +2498,7 @@ const DEFAULT_COMPONENT_ID = '1'; const element = player.element; player.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(hasStyle(element, 'color', 'red')).toBeTruthy(); cmp.exp = '1'; @@ -2506,7 +2506,7 @@ const DEFAULT_COMPONENT_ID = '1'; fixture.detectChanges(); resetLog(); - flushMicrotasks(); + await Promise.resolve(); expect(hasStyle(element, 'color', 'blue')).toBeTruthy(); cmp.exp = '1'; @@ -2514,9 +2514,9 @@ const DEFAULT_COMPONENT_ID = '1'; fixture.detectChanges(); resetLog(); - flushMicrotasks(); + await Promise.resolve(); expect(hasStyle(element, 'color', 'black')).toBeTruthy(); - })); + }); it('should substitute in values if the provided state match is an object with values', () => { @Component({ @@ -2565,7 +2565,7 @@ const DEFAULT_COMPONENT_ID = '1'; ]); }); - it('should retain substituted styles on the element once the animation is complete if referenced in the final state', fakeAsync(() => { + it('should retain substituted styles on the element once the animation is complete if referenced in the final state', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'ani-cmp', @@ -2632,14 +2632,14 @@ const DEFAULT_COMPONENT_ID = '1'; const element = p1.element; p1.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(hasStyle(element, 'color', 'blue')).toBeTruthy(); expect(hasStyle(element, 'fontSize', '50px')).toBeTruthy(); expect(hasStyle(element, 'width', '888px')).toBeTruthy(); - })); + }); - it('should only evaluate final state param substitutions from the expression and state values and not from the transition options ', fakeAsync(() => { + it('should only evaluate final state param substitutions from the expression and state values and not from the transition options ', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'ani-cmp', @@ -2705,11 +2705,11 @@ const DEFAULT_COMPONENT_ID = '1'; const element = p1.element; p1.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(hasStyle(element, 'width', '100px')).toBeTruthy(); expect(hasStyle(element, 'height', '100px')).toBeTruthy(); - })); + }); it('should apply default params when resolved animation value is null or undefined', () => { @Component({ @@ -2988,7 +2988,7 @@ const DEFAULT_COMPONENT_ID = '1'; }); describe('animation listeners', () => { - it('should trigger a `start` state change listener for when the animation changes state from void => state', fakeAsync(() => { + it('should trigger a `start` state change listener for when the animation changes state from void => state', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'if-cmp', @@ -3021,16 +3021,16 @@ const DEFAULT_COMPONENT_ID = '1'; const cmp = fixture.componentInstance; cmp.exp = 'true'; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.event?.triggerName).toEqual('myAnimation'); expect(cmp.event?.phaseName).toEqual('start'); expect(cmp.event?.totalTime).toEqual(500); expect(cmp.event?.fromState).toEqual('void'); expect(cmp.event?.toState).toEqual('true'); - })); + }); - it('should trigger a `done` state change listener for when the animation changes state from a => b', fakeAsync(() => { + it('should trigger a `done` state change listener for when the animation changes state from a => b', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'if-cmp', @@ -3074,16 +3074,16 @@ const DEFAULT_COMPONENT_ID = '1'; const player = engine.players.pop()!; player.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.event?.triggerName).toEqual('myAnimation123'); expect(cmp.event?.phaseName).toEqual('done'); expect(cmp.event?.totalTime).toEqual(999); expect(cmp.event?.fromState).toEqual('void'); expect(cmp.event?.toState).toEqual('b'); - })); + }); - it('should handle callbacks for multiple triggers running simultaneously', fakeAsync(() => { + it('should handle callbacks for multiple triggers running simultaneously', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'if-cmp', @@ -3142,12 +3142,12 @@ const DEFAULT_COMPONENT_ID = '1'; expect(cmp.event1).toBeFalsy(); expect(cmp.event2).toBeFalsy(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.event1?.triggerName).toBeTruthy('ani1'); expect(cmp.event2?.triggerName).toBeTruthy('ani2'); - })); + }); - it('should handle callbacks for multiple triggers running simultaneously on the same element', fakeAsync(() => { + it('should handle callbacks for multiple triggers running simultaneously on the same element', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'if-cmp', @@ -3210,12 +3210,12 @@ const DEFAULT_COMPONENT_ID = '1'; expect(cmp.event1).toBeFalsy(); expect(cmp.event2).toBeFalsy(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.event1?.triggerName).toBeTruthy('ani1'); expect(cmp.event2?.triggerName).toBeTruthy('ani2'); - })); + }); - it('should handle a leave animation for multiple triggers even if not all triggers have their own leave transition specified', fakeAsync(() => { + it('should handle a leave animation for multiple triggers even if not all triggers have their own leave transition specified', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'if-cmp', @@ -3244,7 +3244,7 @@ const DEFAULT_COMPONENT_ID = '1'; expect(players.length).toEqual(1); let [p1] = players; p1.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(elm.innerText.trim()).toEqual('123'); resetLog(); @@ -3255,11 +3255,11 @@ const DEFAULT_COMPONENT_ID = '1'; expect(players.length).toEqual(1); [p1] = players; p1.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(elm.innerText.trim()).toEqual(''); - })); + }); - it('should trigger a state change listener for when the animation changes state from void => state on the host element', fakeAsync(() => { + it('should trigger a state change listener for when the animation changes state from void => state on the host element', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'my-cmp', @@ -3292,16 +3292,16 @@ const DEFAULT_COMPONENT_ID = '1'; const cmp = fixture.componentInstance; cmp.exp = 'TRUE'; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.event?.triggerName).toEqual('myAnimation2'); expect(cmp.event?.phaseName).toEqual('start'); expect(cmp.event?.totalTime).toEqual(1000); expect(cmp.event?.fromState).toEqual('void'); expect(cmp.event?.toState).toEqual('TRUE'); - })); + }); - it('should always fire callbacks even when a transition is not detected', fakeAsync(() => { + it('should always fire callbacks even when a transition is not detected', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'my-cmp', @@ -3331,18 +3331,18 @@ const DEFAULT_COMPONENT_ID = '1'; cmp.exp = 'a'; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['start => a', 'done => a']); cmp.log = []; cmp.exp = 'b'; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['start => b', 'done => b']); - })); + }); - it('should fire callback events for leave animations even if there is no leave transition', fakeAsync(() => { + it('should fire callback events for leave animations even if there is no leave transition', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'my-cmp', @@ -3376,19 +3376,19 @@ const DEFAULT_COMPONENT_ID = '1'; cmp.exp = true; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['start => _default_', 'done => _default_']); cmp.log = []; cmp.exp = false; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['start => void', 'done => void']); - })); + }); - it('should fire callbacks on a sub animation once it starts and finishes', fakeAsync(() => { + it('should fire callbacks on a sub animation once it starts and finishes', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'my-cmp', @@ -3444,7 +3444,7 @@ const DEFAULT_COMPONENT_ID = '1'; cmp.exp2 = 'go'; fixture.detectChanges(); engine.flush(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['parent-start', 'child-start']); cmp.log = []; @@ -3461,19 +3461,19 @@ const DEFAULT_COMPONENT_ID = '1'; const [_scp, pp1, pcp, pp2] = players; pp1.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual([]); pcp.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual([]); pp2.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['parent-done', 'child-done']); - })); + }); - it('should fire callbacks and collect the correct the totalTime and element details for any queried sub animations', fakeAsync(() => { + it('should fire callbacks and collect the correct the totalTime and element details for any queried sub animations', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'my-cmp', @@ -3525,7 +3525,7 @@ const DEFAULT_COMPONENT_ID = '1'; cmp.exp = 'go'; fixture.detectChanges(); engine.flush(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['c-0-start', 'c-1-start', 'c-2-start', 'c-3-start']); cmp.log = []; @@ -3562,14 +3562,14 @@ const DEFAULT_COMPONENT_ID = '1'; pc2p1.finish(); pc3p1.finish(); pc4p1.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual([]); pc1p2.finish(); pc2p2.finish(); pc3p2.finish(); pc4p2.finish(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['all-done', 'c-0-done', 'c-1-done', 'c-2-done', 'c-3-done']); @@ -3583,7 +3583,7 @@ const DEFAULT_COMPONENT_ID = '1'; expect(cmp.events['c-2'].element.innerText.trim()).toEqual('2'); expect(cmp.events['c-3'].totalTime).toEqual(1500); expect(cmp.events['c-3'].element.innerText.trim()).toEqual('3'); - })); + }); }); describe('animation control flags', () => { @@ -3826,7 +3826,7 @@ const DEFAULT_COMPONENT_ID = '1'; expect(parent.childElementCount).toEqual(0); }); - it('should properly resolve animation event listeners when disabled', fakeAsync(() => { + it('should properly resolve animation event listeners when disabled', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'if-cmp', @@ -3868,7 +3868,7 @@ const DEFAULT_COMPONENT_ID = '1'; cmp.exp = '1'; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.startEvent?.totalTime).toEqual(9876); expect(cmp.startEvent?.disabled).toBeTruthy(); expect(cmp.doneEvent?.totalTime).toEqual(9876); @@ -3877,11 +3877,11 @@ const DEFAULT_COMPONENT_ID = '1'; cmp.exp = '2'; cmp.disableExp = false; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.startEvent?.totalTime).toEqual(9876); expect(cmp.startEvent?.disabled).toBeFalsy(); // the done event isn't fired because it's an actual animation - })); + }); it('should work when there are no animations on the component handling the disable/enable flag', () => { @Component({ @@ -3970,7 +3970,7 @@ const DEFAULT_COMPONENT_ID = '1'; expect(getLog().length).toEqual(0); }); - it('should respect parent/sub animations when the respective area in the DOM is disabled', fakeAsync(() => { + it('should respect parent/sub animations when the respective area in the DOM is disabled', async () => { @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'parent-cmp', @@ -4018,19 +4018,19 @@ const DEFAULT_COMPONENT_ID = '1'; cmp.disableExp = true; cmp.items = [0, 1, 2, 3, 4]; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); cmp.exp = 'empty'; cmp.items = []; cmp.doneLog = []; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); const elms = cmp.container.nativeElement.querySelectorAll('.item'); expect(elms.length).toEqual(0); expect(cmp.doneLog.length).toEqual(6); - })); + }); }); }); diff --git a/packages/core/test/legacy_animation/legacy_animation_query_integration_spec.ts b/packages/core/test/legacy_animation/legacy_animation_query_integration_spec.ts index a03eecb2958d..f392e6885b32 100644 --- a/packages/core/test/legacy_animation/legacy_animation_query_integration_spec.ts +++ b/packages/core/test/legacy_animation/legacy_animation_query_integration_spec.ts @@ -39,7 +39,7 @@ import { provideZoneChangeDetection, ViewChild, } from '../../src/core'; -import {fakeAsync, flushMicrotasks, TestBed} from '../../testing'; +import {TestBed} from '../../testing'; import {HostListener} from '../../src/metadata/directives'; @@ -1278,7 +1278,7 @@ import {HostListener} from '../../src/metadata/directives'; expect(ancestorElm.contains(parentElm)).toBe(false); }); - it('should only retain a to-be-removed node if the inner queried items are apart of an animation issued by an ancestor', fakeAsync(() => { + it('should only retain a to-be-removed node if the inner queried items are apart of an animation issued by an ancestor', async () => { @Component({ selector: 'ani-cmp', template: ` @@ -1340,7 +1340,7 @@ import {HostListener} from '../../src/metadata/directives'; let childPlayerComplete = false; childPlayer.onDone(() => (childPlayerComplete = true)); resetLog(); - flushMicrotasks(); + await Promise.resolve(); expect(childPlayerComplete).toBe(false); @@ -1353,7 +1353,7 @@ import {HostListener} from '../../src/metadata/directives'; expect(twoPlayers.length).toEqual(1); // the header element expect(ancestorElm.contains(parentElm)).toBe(false); expect(childPlayerComplete).toBe(true); - })); + }); it('should finish queried players in an animation when the next animation takes over', () => { @Component({ @@ -2349,7 +2349,7 @@ import {HostListener} from '../../src/metadata/directives'; expect(p1cp.element.classList.contains('child')).toBeTruthy(); }); - it('should emulate a leave animation on the nearest sub host elements when a parent is removed', fakeAsync(() => { + it('should emulate a leave animation on the nearest sub host elements when a parent is removed', async () => { @Component({ selector: 'ani-cmp', template: ` @@ -2409,13 +2409,13 @@ import {HostListener} from '../../src/metadata/directives'; cmp.exp = false; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.childEvent.toState).toEqual('void'); expect(cmp.childEvent.totalTime).toEqual(1000); expect(childCmp.childEvent.toState).toEqual('void'); expect(childCmp.childEvent.totalTime).toEqual(1000); - })); + }); it("should emulate a leave animation on a sub component's inner elements when a parent leave animation occurs with animateChild", () => { @Component({ @@ -2563,7 +2563,7 @@ import {HostListener} from '../../src/metadata/directives'; ]); }); - it('should not cause a removal of inner @trigger DOM nodes when a parent animation occurs', fakeAsync(() => { + it('should not cause a removal of inner @trigger DOM nodes when a parent animation occurs', async () => { @Component({ selector: 'ani-cmp', template: ` @@ -2597,18 +2597,18 @@ import {HostListener} from '../../src/metadata/directives'; cmp.exp = true; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); cmp.exp = false; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); const players = getLog(); expect(players.length).toEqual(1); const element = players[0].element; expect(element.innerText.trim()).toMatch(/this\s+child/gm); - })); + }); it('should only mark outermost *directive nodes :enter and :leave when inserts and removals occur', () => { @Component({ @@ -2787,7 +2787,7 @@ import {HostListener} from '../../src/metadata/directives'; expect(p3.element.classList.contains('page2')).toBe(true); }); - it('should emulate leave animation callbacks for all sub elements that have leave triggers within the component', fakeAsync(() => { + it('should emulate leave animation callbacks for all sub elements that have leave triggers within the component', async () => { @Component({ selector: 'ani-cmp', animations: [ @@ -2845,12 +2845,12 @@ import {HostListener} from '../../src/metadata/directives'; cmp.exp = true; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); cmp.log = []; cmp.exp = false; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual([ 'c1-start', 'c1-done', @@ -2861,7 +2861,7 @@ import {HostListener} from '../../src/metadata/directives'; 'c3-done', 'p-done', ]); - })); + }); it('should build, but not run sub triggers when a parent animation is scheduled', () => { @Component({ @@ -2917,7 +2917,7 @@ import {HostListener} from '../../src/metadata/directives'; expect((engine.players[0] as TransitionAnimationPlayer).getRealPlayer()).toBe(players[1]); }); - it('should fire and synchronize the start/done callbacks on sub triggers even if they are not allowed to animate within the animation', fakeAsync(() => { + it('should fire and synchronize the start/done callbacks on sub triggers even if they are not allowed to animate within the animation', async () => { @Component({ selector: 'parent-cmp', animations: [ @@ -2981,7 +2981,7 @@ import {HostListener} from '../../src/metadata/directives'; const engine = TestBed.inject(ɵAnimationEngine); const fixture = TestBed.createComponent(ParentCmp); fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); const cmp = fixture.componentInstance; const child = cmp.childCmp; @@ -2994,7 +2994,7 @@ import {HostListener} from '../../src/metadata/directives'; cmp.exp = 'go'; cmp.childCmp.exp = 'go'; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['parent-start']); expect(child.log).toEqual(['child-start']); @@ -3010,13 +3010,13 @@ import {HostListener} from '../../src/metadata/directives'; child.log = []; cmp.remove = true; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['parent-start', 'parent-done']); expect(child.log).toEqual(['child-start', 'child-done']); - })); + }); - it('should fire and synchronize the start/done callbacks on multiple blocked sub triggers', fakeAsync(() => { + it('should fire and synchronize the start/done callbacks on multiple blocked sub triggers', async () => { @Component({ selector: 'cmp', animations: [ @@ -3079,7 +3079,7 @@ import {HostListener} from '../../src/metadata/directives'; const engine = TestBed.inject(ɵAnimationEngine); const fixture = TestBed.createComponent(Cmp); fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); const cmp = fixture.componentInstance; cmp.log = []; @@ -3088,7 +3088,7 @@ import {HostListener} from '../../src/metadata/directives'; cmp.child1Exp = 'go'; cmp.child2Exp = 'go'; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['parent1-start', 'parent2-start', 'child1-start', 'child2-start']); @@ -3097,8 +3097,8 @@ import {HostListener} from '../../src/metadata/directives'; cmp.child1Exp = 'go-again'; cmp.child2Exp = 'go-again'; fixture.detectChanges(); - flushMicrotasks(); - })); + await Promise.resolve(); + }); it('should stretch the starting keyframe of a child animation queries are issued by the parent', () => { @Component({ @@ -3402,7 +3402,7 @@ import {HostListener} from '../../src/metadata/directives'; expect(pcp.element.classList.contains('item')).toBeTruthy(); }); - it('should correctly remove a leaving element queried/animated by a parent queried via animateChild', fakeAsync(() => { + it('should correctly remove a leaving element queried/animated by a parent queried via animateChild', async () => { @Component({ selector: 'cmp', template: ` @@ -3442,13 +3442,13 @@ import {HostListener} from '../../src/metadata/directives'; cmp.childPresent = false; fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); engine.players.forEach((player) => player.finish()); children = fixture.debugElement.nativeElement.querySelectorAll('.child'); expect(children.length).toEqual(0); - })); + }); it('should correctly animate state styles of the root element applied via animate inside a group (independently of the order)', () => { @Component({ diff --git a/packages/core/test/legacy_animation/legacy_animation_router_integration_spec.ts b/packages/core/test/legacy_animation/legacy_animation_router_integration_spec.ts index 31cd43a9931f..7d39e3052f4a 100644 --- a/packages/core/test/legacy_animation/legacy_animation_router_integration_spec.ts +++ b/packages/core/test/legacy_animation/legacy_animation_router_integration_spec.ts @@ -23,7 +23,7 @@ import { } from '@angular/animations/browser'; import {MockAnimationDriver, MockAnimationPlayer} from '@angular/animations/browser/testing'; import {Component, HostBinding} from '../../src/core'; -import {fakeAsync, flushMicrotasks, TestBed, tick} from '../../testing'; +import {TestBed} from '../../testing'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {ActivatedRoute, Router, RouterModule, RouterOutlet} from '@angular/router'; import {isNode} from '@angular/private/testing'; @@ -49,7 +49,7 @@ import {isNode} from '@angular/private/testing'; }); }); - it('should query the old and new routes via :leave and :enter', fakeAsync(() => { + it('should query the old and new routes via :leave and :enter', async () => { @Component({ animations: [ trigger('routerAnimations', [ @@ -118,17 +118,15 @@ import {isNode} from '@angular/private/testing'; const fixture = TestBed.createComponent(ContainerCmp); const cmp = fixture.componentInstance; cmp.router.initialNavigation(); - tick(); + await fixture.whenStable(); fixture.detectChanges(); engine.flush(); - cmp.router.navigateByUrl('/page1'); - tick(); + await cmp.router.navigateByUrl('/page1'); fixture.detectChanges(); engine.flush(); - cmp.router.navigateByUrl('/page2'); - tick(); + await cmp.router.navigateByUrl('/page2'); fixture.detectChanges(); engine.flush(); @@ -168,9 +166,9 @@ import {isNode} from '@angular/private/testing'; ['opacity', '1'], ]), ]); - })); + }); - it('should allow inner enter animations to be emulated within a routed item', fakeAsync(() => { + it('should allow inner enter animations to be emulated within a routed item', async () => { @Component({ animations: [ trigger('routerAnimations', [ @@ -242,17 +240,15 @@ import {isNode} from '@angular/private/testing'; const fixture = TestBed.createComponent(ContainerCmp); const cmp = fixture.componentInstance; cmp.router.initialNavigation(); - tick(); + await fixture.whenStable(); fixture.detectChanges(); engine.flush(); - cmp.router.navigateByUrl('/page1'); - tick(); + await cmp.router.navigateByUrl('/page1'); fixture.detectChanges(); engine.flush(); - cmp.router.navigateByUrl('/page2'); - tick(); + await cmp.router.navigateByUrl('/page2'); fixture.detectChanges(); engine.flush(); @@ -290,9 +286,9 @@ import {isNode} from '@angular/private/testing'; ['opacity', '1'], ]), ]); - })); + }); - it('should allow inner leave animations to be emulated within a routed item', fakeAsync(() => { + it('should allow inner leave animations to be emulated within a routed item', async () => { @Component({ animations: [ trigger('routerAnimations', [ @@ -364,17 +360,15 @@ import {isNode} from '@angular/private/testing'; const fixture = TestBed.createComponent(ContainerCmp); const cmp = fixture.componentInstance; cmp.router.initialNavigation(); - tick(); + await fixture.whenStable(); fixture.detectChanges(); engine.flush(); - cmp.router.navigateByUrl('/page1'); - tick(); + await cmp.router.navigateByUrl('/page1'); fixture.detectChanges(); engine.flush(); - cmp.router.navigateByUrl('/page2'); - tick(); + await cmp.router.navigateByUrl('/page2'); fixture.detectChanges(); engine.flush(); @@ -412,9 +406,9 @@ import {isNode} from '@angular/private/testing'; ['opacity', '0'], ]), ]); - })); + }); - it('should properly collect :enter / :leave router nodes even when another non-router *template component is within the trigger boundaries', fakeAsync(() => { + it('should properly collect :enter / :leave router nodes even when another non-router *template component is within the trigger boundaries', async () => { @Component({ selector: 'ani-cmp', animations: [ @@ -478,18 +472,16 @@ import {isNode} from '@angular/private/testing'; const fixture = TestBed.createComponent(ContainerCmp); const cmp = fixture.componentInstance; cmp.router.initialNavigation(); - tick(); + await fixture.whenStable(); fixture.detectChanges(); engine.flush(); - cmp.router.navigateByUrl('/page1'); - tick(); + await cmp.router.navigateByUrl('/page1'); cmp.loading = true; fixture.detectChanges(); engine.flush(); - cmp.router.navigateByUrl('/page2'); - tick(); + await cmp.router.navigateByUrl('/page2'); cmp.loading = false; fixture.detectChanges(); engine.flush(); @@ -506,9 +498,9 @@ import {isNode} from '@angular/private/testing'; const [ip1, ip2] = innerPlayers as any; expect(ip1.element.innerText).toEqual('page1'); expect(ip2.element.innerText).toEqual('page2'); - })); + }); - it('should allow a recursive set of :leave animations to occur for nested routes', fakeAsync(() => { + it('should allow a recursive set of :leave animations to occur for nested routes', async () => { @Component({ selector: 'ani-cmp', template: '', @@ -519,11 +511,11 @@ import {isNode} from '@angular/private/testing'; log: string[] = []; enter() { - this._router.navigateByUrl('/(recur:recur/nested)'); + return this._router.navigateByUrl('/(recur:recur/nested)'); } leave() { - this._router.navigateByUrl('/'); + return this._router.navigateByUrl('/'); } } @@ -575,15 +567,13 @@ import {isNode} from '@angular/private/testing'; const fixture = TestBed.createComponent(ContainerCmp); const cmp = fixture.componentInstance; - cmp.enter(); - tick(); + await cmp.enter(); fixture.detectChanges(); - flushMicrotasks(); + await Promise.resolve(); expect(cmp.log).toEqual(['DEPTH 0', 'DEPTH 1']); - cmp.leave(); - tick(); + await cmp.leave(); fixture.detectChanges(); const players = getLog(); @@ -592,7 +582,7 @@ import {isNode} from '@angular/private/testing'; const [p1, p2] = players; expect(p1.element.getAttribute('data-depth')).toEqual('0'); expect(p2.element.getAttribute('data-depth')).toEqual('1'); - })); + }); }); }); diff --git a/packages/core/test/linker/change_detection_integration_spec.ts b/packages/core/test/linker/change_detection_integration_spec.ts index b3da22ad5b9d..1fc0c02b837e 100644 --- a/packages/core/test/linker/change_detection_integration_spec.ts +++ b/packages/core/test/linker/change_detection_integration_spec.ts @@ -6,6 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ +import {CommonModule} from '@angular/common'; import {ResourceLoader} from '@angular/compiler'; import {By} from '@angular/platform-browser'; import {isTextNode} from '@angular/private/testing'; @@ -23,6 +24,7 @@ import { Directive, DoCheck, EventEmitter, + forwardRef, HostBinding, Injectable, Input, @@ -43,7 +45,7 @@ import { ViewChild, ViewContainerRef, } from '../../src/core'; -import {ComponentFixture, fakeAsync, TestBed} from '../../testing'; +import {ComponentFixture, TestBed} from '../../testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {MockResourceLoader} from './resource_loader_mock'; @@ -58,13 +60,24 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ function createCompFixture(template: string): ComponentFixture; function createCompFixture(template: string, compType: Type): ComponentFixture; + function createCompFixture( + template: string, + compType: Type, + components: any[], + ): ComponentFixture; function createCompFixture( template: string, compType: Type = TestComponent, + components: any[] = [], ): ComponentFixture { TestBed.overrideComponent(compType, { - set: new Component({template, changeDetection: ChangeDetectionStrategy.Eager}), + set: new Component({template}), }); + if (components.length > 0) { + TestBed.overrideComponent(compType, { + add: {imports: components}, + }); + } initHelpers(); @@ -115,247 +128,223 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ TestBed.configureCompiler({providers: TEST_COMPILER_PROVIDERS}); TestBed.configureTestingModule({ imports: [NoopAnimationsModule], - declarations: [ - TestData, - TestDirective, - TestComponent, - AnotherComponent, - TestLocals, - CompWithRef, - WrapCompWithRef, - EmitterDirective, - PushComp, - OnDestroyDirective, - OrderCheckDirective2, - OrderCheckDirective0, - OrderCheckDirective1, - Gh9882, - Uninitialized, - Person, - PersonHolder, - PersonHolderHolder, - CountingPipe, - CountingImpurePipe, - MultiArgPipe, - PipeWithOnDestroy, - IdentityPipe, - ], + providers: [RenderLog, DirectiveLog, provideZoneChangeDetection()], }); }); describe('expressions', () => { - it('should support literals', fakeAsync(() => { + it('should support literals', () => { expect(_bindAndCheckSimpleValue(10)).toEqual(['id=10']); - })); + }); - it('should strip quotes from literals', fakeAsync(() => { + it('should strip quotes from literals', () => { expect(_bindAndCheckSimpleValue('"str"')).toEqual(['id=str']); - })); + }); - it('should support newlines in literals', fakeAsync(() => { + it('should support newlines in literals', () => { expect(_bindAndCheckSimpleValue('"a\n\nb"')).toEqual(['id=a\n\nb']); - })); + }); - it('should support + operations', fakeAsync(() => { + it('should support + operations', () => { expect(_bindAndCheckSimpleValue('10 + 2')).toEqual(['id=12']); - })); + }); - it('should support - operations', fakeAsync(() => { + it('should support - operations', () => { expect(_bindAndCheckSimpleValue('10 - 2')).toEqual(['id=8']); - })); + }); - it('should support * operations', fakeAsync(() => { + it('should support * operations', () => { expect(_bindAndCheckSimpleValue('10 * 2')).toEqual(['id=20']); - })); + }); - it('should support / operations', fakeAsync(() => { + it('should support / operations', () => { expect(_bindAndCheckSimpleValue('10 / 2')).toEqual([`id=5`]); - })); + }); - it('should support % operations', fakeAsync(() => { + it('should support % operations', () => { expect(_bindAndCheckSimpleValue('11 % 2')).toEqual(['id=1']); - })); + }); - it('should support == operations on identical', fakeAsync(() => { + it('should support == operations on identical', () => { expect(_bindAndCheckSimpleValue('1 == 1')).toEqual(['id=true']); - })); + }); - it('should support != operations', fakeAsync(() => { + it('should support != operations', () => { expect(_bindAndCheckSimpleValue('1 != 1')).toEqual(['id=false']); - })); + }); - it('should support == operations on coerceible', fakeAsync(() => { + it('should support == operations on coerceible', () => { expect(_bindAndCheckSimpleValue('1 == true')).toEqual([`id=true`]); - })); + }); - it('should support === operations on identical', fakeAsync(() => { + it('should support === operations on identical', () => { expect(_bindAndCheckSimpleValue('1 === 1')).toEqual(['id=true']); - })); + }); - it('should support !== operations', fakeAsync(() => { + it('should support !== operations', () => { expect(_bindAndCheckSimpleValue('1 !== 1')).toEqual(['id=false']); - })); + }); - it('should support === operations on coerceible', fakeAsync(() => { + it('should support === operations on coerceible', () => { expect(_bindAndCheckSimpleValue('1 === true')).toEqual(['id=false']); - })); + }); - it('should support true < operations', fakeAsync(() => { + it('should support true < operations', () => { expect(_bindAndCheckSimpleValue('1 < 2')).toEqual(['id=true']); - })); + }); - it('should support false < operations', fakeAsync(() => { + it('should support false < operations', () => { expect(_bindAndCheckSimpleValue('2 < 1')).toEqual(['id=false']); - })); + }); - it('should support false > operations', fakeAsync(() => { + it('should support false > operations', () => { expect(_bindAndCheckSimpleValue('1 > 2')).toEqual(['id=false']); - })); + }); - it('should support true > operations', fakeAsync(() => { + it('should support true > operations', () => { expect(_bindAndCheckSimpleValue('2 > 1')).toEqual(['id=true']); - })); + }); - it('should support true <= operations', fakeAsync(() => { + it('should support true <= operations', () => { expect(_bindAndCheckSimpleValue('1 <= 2')).toEqual(['id=true']); - })); + }); - it('should support equal <= operations', fakeAsync(() => { + it('should support equal <= operations', () => { expect(_bindAndCheckSimpleValue('2 <= 2')).toEqual(['id=true']); - })); + }); - it('should support false <= operations', fakeAsync(() => { + it('should support false <= operations', () => { expect(_bindAndCheckSimpleValue('2 <= 1')).toEqual(['id=false']); - })); + }); - it('should support true >= operations', fakeAsync(() => { + it('should support true >= operations', () => { expect(_bindAndCheckSimpleValue('2 >= 1')).toEqual(['id=true']); - })); + }); - it('should support equal >= operations', fakeAsync(() => { + it('should support equal >= operations', () => { expect(_bindAndCheckSimpleValue('2 >= 2')).toEqual(['id=true']); - })); + }); - it('should support false >= operations', fakeAsync(() => { + it('should support false >= operations', () => { expect(_bindAndCheckSimpleValue('1 >= 2')).toEqual(['id=false']); - })); + }); - it('should support true && operations', fakeAsync(() => { + it('should support true && operations', () => { expect(_bindAndCheckSimpleValue('true && true')).toEqual(['id=true']); - })); + }); - it('should support false && operations', fakeAsync(() => { + it('should support false && operations', () => { expect(_bindAndCheckSimpleValue('true && false')).toEqual(['id=false']); - })); + }); - it('should support true || operations', fakeAsync(() => { + it('should support true || operations', () => { expect(_bindAndCheckSimpleValue('true || false')).toEqual(['id=true']); - })); + }); - it('should support false || operations', fakeAsync(() => { + it('should support false || operations', () => { expect(_bindAndCheckSimpleValue('false || false')).toEqual(['id=false']); - })); + }); - it('should support negate', fakeAsync(() => { + it('should support negate', () => { expect(_bindAndCheckSimpleValue('!true')).toEqual(['id=false']); - })); + }); - it('should support double negate', fakeAsync(() => { + it('should support double negate', () => { expect(_bindAndCheckSimpleValue('!!true')).toEqual(['id=true']); - })); + }); - it('should support true conditionals', fakeAsync(() => { + it('should support true conditionals', () => { expect(_bindAndCheckSimpleValue('1 < 2 ? 1 : 2')).toEqual(['id=1']); - })); + }); - it('should support false conditionals', fakeAsync(() => { + it('should support false conditionals', () => { expect(_bindAndCheckSimpleValue('1 > 2 ? 1 : 2')).toEqual(['id=2']); - })); + }); - it('should support keyed access to a list item', fakeAsync(() => { + it('should support keyed access to a list item', () => { expect(_bindAndCheckSimpleValue('["foo", "bar"][0]')).toEqual(['id=foo']); - })); + }); - it('should support keyed access to a map item', fakeAsync(() => { + it('should support keyed access to a map item', () => { expect(_bindAndCheckSimpleValue('{"foo": "bar"}["foo"]')).toEqual(['id=bar']); - })); + }); - it('should report all changes on the first run including uninitialized values', fakeAsync(() => { + it('should report all changes on the first run including uninitialized values', () => { expect(_bindAndCheckSimpleValue('value', Uninitialized)).toEqual(['id=null']); - })); + }); - it('should report all changes on the first run including null values', fakeAsync(() => { + it('should report all changes on the first run including null values', () => { const ctx = _bindSimpleValue('a', TestData); ctx.componentInstance.a = null; ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=null']); - })); + }); - it('should support simple chained property access', fakeAsync(() => { + it('should support simple chained property access', () => { const ctx = _bindSimpleValue('address.city', Person); ctx.componentInstance.name = 'Victor'; ctx.componentInstance.address = new Address('Grenoble'); ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=Grenoble']); - })); + }); describe('safe navigation operator', () => { - it('should support reading properties of nulls', fakeAsync(() => { + it('should support reading properties of nulls', () => { const ctx = _bindSimpleValue('address?.city', Person); ctx.componentInstance.address = null!; ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=undefined']); - })); + }); - it('should support calling methods on nulls', fakeAsync(() => { + it('should support calling methods on nulls', () => { const ctx = _bindSimpleValue('address?.toString()', Person); ctx.componentInstance.address = null!; ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=undefined']); - })); + }); - it('should support reading properties on non nulls', fakeAsync(() => { + it('should support reading properties on non nulls', () => { const ctx = _bindSimpleValue('address?.city', Person); ctx.componentInstance.address = new Address('MTV'); ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=MTV']); - })); + }); - it('should support calling methods on non nulls', fakeAsync(() => { + it('should support calling methods on non nulls', () => { const ctx = _bindSimpleValue('address?.toString()', Person); ctx.componentInstance.address = new Address('MTV'); ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=MTV']); - })); + }); - it('should support short-circuting safe navigation', fakeAsync(() => { + it('should support short-circuting safe navigation', () => { const ctx = _bindSimpleValue('value?.address.city', PersonHolder); ctx.componentInstance.value = null!; ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=undefined']); - })); + }); - it('should support nested short-circuting safe navigation', fakeAsync(() => { + it('should support nested short-circuting safe navigation', () => { const ctx = _bindSimpleValue('value.value?.address.city', PersonHolderHolder); ctx.componentInstance.value = new PersonHolder(); ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=undefined']); - })); + }); - it('should support chained short-circuting safe navigation', fakeAsync(() => { + it('should support chained short-circuting safe navigation', () => { const ctx = _bindSimpleValue('value?.value?.address.city', PersonHolderHolder); ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=undefined']); - })); + }); - it('should support short-circuting array index operations', fakeAsync(() => { + it('should support short-circuting array index operations', () => { const ctx = _bindSimpleValue('value?.phones[0]', PersonHolder); ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=undefined']); - })); + }); - it('should still throw if right-side would throw', fakeAsync(() => { + it('should still throw if right-side would throw', () => { expect(() => { const ctx = _bindSimpleValue('value?.address.city', PersonHolder); const person = new Person(); @@ -363,30 +352,30 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.componentInstance.value = person; ctx.detectChanges(false); }).toThrow(); - })); + }); }); - it('should support method calls', fakeAsync(() => { + it('should support method calls', () => { const ctx = _bindSimpleValue('sayHi("Jim")', Person); ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=Hi, Jim']); - })); + }); - it('should support function calls', fakeAsync(() => { + it('should support function calls', () => { const ctx = _bindSimpleValue('a()(99)', TestData); ctx.componentInstance.a = () => (a: any) => a; ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=99']); - })); + }); - it('should support chained method calls', fakeAsync(() => { + it('should support chained method calls', () => { const ctx = _bindSimpleValue('address.toString()', Person); ctx.componentInstance.address = new Address('MTV'); ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=MTV']); - })); + }); - it('should support NaN', fakeAsync(() => { + it('should support NaN', () => { const ctx = _bindSimpleValue('age', Person); ctx.componentInstance.age = NaN; ctx.detectChanges(false); @@ -396,9 +385,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(false); expect(renderLog.log).toEqual([]); - })); + }); - it('should do simple watching', fakeAsync(() => { + it('should do simple watching', () => { const ctx = _bindSimpleValue('name', Person); ctx.componentInstance.name = 'misko'; @@ -413,28 +402,28 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.componentInstance.name = 'Misko'; ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=Misko']); - })); + }); - it('should support literal array made of literals', fakeAsync(() => { + it('should support literal array made of literals', () => { const ctx = _bindSimpleValue('[1, 2]'); ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual([[1, 2]]); - })); + }); - it('should support empty literal array', fakeAsync(() => { + it('should support empty literal array', () => { const ctx = _bindSimpleValue('[]'); ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual([[]]); - })); + }); - it('should support literal array made of expressions', fakeAsync(() => { + it('should support literal array made of expressions', () => { const ctx = _bindSimpleValue('[1, a]', TestData); ctx.componentInstance.a = 2; ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual([[1, 2]]); - })); + }); - it('should not recreate literal arrays unless their content changed', fakeAsync(() => { + it('should not recreate literal arrays unless their content changed', () => { const ctx = _bindSimpleValue('[1, a]', TestData); ctx.componentInstance.a = 2; ctx.detectChanges(false); @@ -446,28 +435,28 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ [1, 2], [1, 3], ]); - })); + }); - it('should support literal maps made of literals', fakeAsync(() => { + it('should support literal maps made of literals', () => { const ctx = _bindSimpleValue('{z: 1}'); ctx.detectChanges(false); expect(renderLog.loggedValues[0]['z']).toEqual(1); - })); + }); - it('should support empty literal map', fakeAsync(() => { + it('should support empty literal map', () => { const ctx = _bindSimpleValue('{}'); ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual([{}]); - })); + }); - it('should support literal maps made of expressions', fakeAsync(() => { + it('should support literal maps made of expressions', () => { const ctx = _bindSimpleValue('{z: a}'); ctx.componentInstance.a = 1; ctx.detectChanges(false); expect(renderLog.loggedValues[0]['z']).toEqual(1); - })); + }); - it('should not recreate literal maps unless their content changed', fakeAsync(() => { + it('should not recreate literal maps unless their content changed', () => { const ctx = _bindSimpleValue('{z: a}'); ctx.componentInstance.a = 1; ctx.detectChanges(false); @@ -478,76 +467,76 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ expect(renderLog.loggedValues.length).toBe(2); expect(renderLog.loggedValues[0]['z']).toEqual(1); expect(renderLog.loggedValues[1]['z']).toEqual(2); - })); + }); - it('should ignore empty bindings', fakeAsync(() => { + it('should ignore empty bindings', () => { const ctx = _bindSimpleProp('[id]', TestData); ctx.componentInstance.a = 'value'; ctx.detectChanges(false); expect(renderLog.log).toEqual([]); - })); + }); - it('should support interpolation', fakeAsync(() => { + it('should support interpolation', () => { const ctx = _bindSimpleProp('id="B{{a}}A"', TestData); ctx.componentInstance.a = 'value'; ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=BvalueA']); - })); + }); - it('should output empty strings for null values in interpolation', fakeAsync(() => { + it('should output empty strings for null values in interpolation', () => { const ctx = _bindSimpleProp('id="B{{a}}A"', TestData); ctx.componentInstance.a = null; ctx.detectChanges(false); expect(renderLog.log).toEqual(['id=BA']); - })); + }); - it('should escape values in literals that indicate interpolation', fakeAsync(() => { + it('should escape values in literals that indicate interpolation', () => { expect(_bindAndCheckSimpleValue('"$"')).toEqual(['id=$']); - })); + }); - it('should read locals', fakeAsync(() => { + it('should read locals', () => { const ctx = createCompFixture( '{{local}}', ); ctx.detectChanges(false); expect(renderLog.log).toEqual(['{{someLocalValue}}']); - })); + }); describe('pipes', () => { - it('should use the return value of the pipe', fakeAsync(() => { + it('should use the return value of the pipe', () => { const ctx = _bindSimpleValue('name | countingPipe', Person); ctx.componentInstance.name = 'bob'; ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual(['bob state:0']); - })); + }); - it('should support arguments in pipes', fakeAsync(() => { + it('should support arguments in pipes', () => { const ctx = _bindSimpleValue('name | multiArgPipe:"one":address.city', Person); ctx.componentInstance.name = 'value'; ctx.componentInstance.address = new Address('two'); ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual(['value one two default']); - })); + }); - it('should associate pipes right-to-left', fakeAsync(() => { + it('should associate pipes right-to-left', () => { const ctx = _bindSimpleValue('name | multiArgPipe:"a":"b" | multiArgPipe:0:1', Person); ctx.componentInstance.name = 'value'; ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual(['value a b default 0 1 default']); - })); + }); - it('should support calling pure pipes with different number of arguments', fakeAsync(() => { + it('should support calling pure pipes with different number of arguments', () => { const ctx = _bindSimpleValue('name | multiArgPipe:"a":"b" | multiArgPipe:0:1:2', Person); ctx.componentInstance.name = 'value'; ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual(['value a b default 0 1 2']); - })); + }); - it('should do nothing when no change', fakeAsync(() => { + it('should do nothing when no change', () => { const ctx = _bindSimpleValue('"Megatron" | identityPipe', Person); ctx.detectChanges(false); @@ -558,9 +547,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(false); expect(renderLog.log).toEqual([]); - })); + }); - it('should call pure pipes only if the arguments change', fakeAsync(() => { + it('should call pure pipes only if the arguments change', () => { const ctx = _bindSimpleValue('name | countingPipe', Person); // change from undefined -> null ctx.componentInstance.name = null!; @@ -582,9 +571,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ expect(renderLog.loggedValues).toEqual(['null state:0', 'bob state:1', 'bart state:2']); ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual(['null state:0', 'bob state:1', 'bart state:2']); - })); + }); - it('should call pure pipes that are used multiple times only when the arguments change', fakeAsync(() => { + it('should call pure pipes that are used multiple times only when the arguments change', () => { const ctx = createCompFixture( `
    ` + '
    ', @@ -616,20 +605,20 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'mtv state:0', '11 state:1', ]); - })); + }); - it('should call impure pipes on each change detection run', fakeAsync(() => { + it('should call impure pipes on each change detection run', () => { const ctx = _bindSimpleValue('name | countingImpurePipe', Person); ctx.componentInstance.name = 'bob'; ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual(['bob state:0']); ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual(['bob state:0', 'bob state:1']); - })); + }); }); describe('event expressions', () => { - it('should support field assignments', fakeAsync(() => { + it('should support field assignments', () => { const ctx = _bindSimpleProp('(event)="b=a=$event"'); const childEl = ctx.debugElement.children[0]; const evt = 'EVENT'; @@ -637,34 +626,34 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ expect(ctx.componentInstance.a).toEqual(evt); expect(ctx.componentInstance.b).toEqual(evt); - })); + }); - it('should support keyed assignments', fakeAsync(() => { + it('should support keyed assignments', () => { const ctx = _bindSimpleProp('(event)="a[0]=$event"'); const childEl = ctx.debugElement.children[0]; ctx.componentInstance.a = ['OLD']; const evt = 'EVENT'; childEl.triggerEventHandler('event', evt); expect(ctx.componentInstance.a).toEqual([evt]); - })); + }); - it('should support chains', fakeAsync(() => { + it('should support chains', () => { const ctx = _bindSimpleProp('(event)="a=a+1; a=a+1;"'); const childEl = ctx.debugElement.children[0]; ctx.componentInstance.a = 0; childEl.triggerEventHandler('event', 'EVENT'); expect(ctx.componentInstance.a).toEqual(2); - })); + }); - it('should support empty literals', fakeAsync(() => { + it('should support empty literals', () => { const ctx = _bindSimpleProp('(event)="a=[{},[]]"'); const childEl = ctx.debugElement.children[0]; childEl.triggerEventHandler('event', 'EVENT'); expect(ctx.componentInstance.a).toEqual([{}, []]); - })); + }); - xit('should throw when trying to assign to a local', fakeAsync(() => { + xit('should throw when trying to assign to a local', () => { expect(() => { _bindSimpleProp('(event)="$event=1"'); }).toThrowError( @@ -672,20 +661,20 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'Cannot assign value (.*) to template variable (.*). Template variables are read-only.', ), ); - })); + }); - it('should support short-circuiting', fakeAsync(() => { + it('should support short-circuiting', () => { const ctx = _bindSimpleProp('(event)="true ? a = a + 1 : a = a + 1"'); const childEl = ctx.debugElement.children[0]; ctx.componentInstance.a = 0; childEl.triggerEventHandler('event', 'EVENT'); expect(ctx.componentInstance.a).toEqual(1); - })); + }); }); }); describe('RendererFactory', () => { - it('should call the begin and end methods on the renderer factory when change detection is called', fakeAsync(() => { + it('should call the begin and end methods on the renderer factory when change detection is called', () => { const ctx = createCompFixture('
    '); const rf = TestBed.inject(RendererFactory2); // TODO: @JiaLiPassion, need to wait @types/jasmine to fix the @@ -699,31 +688,31 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(false); expect(rf.begin).toHaveBeenCalled(); expect(rf.end).toHaveBeenCalled(); - })); + }); }); describe('change notification', () => { describe('updating directives', () => { - it('should happen without invoking the renderer', fakeAsync(() => { + it('should happen without invoking the renderer', () => { const ctx = createCompFixture('
    '); ctx.detectChanges(false); expect(renderLog.log).toEqual([]); expect(queryDirs(ctx.debugElement, TestDirective)[0].a).toEqual(42); - })); + }); }); describe('reading directives', () => { - it('should read directive properties', fakeAsync(() => { + it('should read directive properties', () => { const ctx = createCompFixture( '
    ', ); ctx.detectChanges(false); expect(renderLog.loggedValues).toEqual([42]); - })); + }); }); describe('ngOnChanges', () => { - it('should notify the directive when a group of records changes', fakeAsync(() => { + it('should notify the directive when a group of records changes', () => { const ctx = createCompFixture( '
    ', ); @@ -739,7 +728,7 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'a': new SimpleChange(undefined, 4, true), 'name': new SimpleChange(undefined, 'bName', true), }); - })); + }); }); }); @@ -759,7 +748,7 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ } describe('ngOnInit', () => { - it('should be called after ngOnChanges', fakeAsync(() => { + it('should be called after ngOnChanges', () => { const ctx = createCompFixture('
    '); expect(directiveLog.filter(['ngOnInit', 'ngOnChanges'])).toEqual([]); @@ -774,9 +763,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(false); expect(directiveLog.filter(['ngOnInit'])).toEqual([]); - })); + }); - it('should only be called only once', fakeAsync(() => { + it('should only be called only once', () => { const ctx = createCompFixture('
    '); ctx.detectChanges(false); @@ -795,9 +784,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(false); expect(directiveLog.filter(['ngOnInit'])).toEqual([]); - })); + }); - it('should not call ngOnInit again if it throws', fakeAsync(() => { + it('should not call ngOnInit again if it throws', () => { const ctx = createCompFixture('
    '); let errored = false; @@ -821,11 +810,11 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ throw new Error('Second detectChanges() should not have called ngOnInit.'); } expect(directiveLog.filter(['ngOnInit'])).toEqual([]); - })); + }); }); describe('ngDoCheck', () => { - it('should be called after ngOnInit', fakeAsync(() => { + it('should be called after ngOnInit', () => { const ctx = createCompFixture('
    '); ctx.detectChanges(false); @@ -833,9 +822,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'dir.ngOnInit', 'dir.ngDoCheck', ]); - })); + }); - it('should be called on every detectChanges run, except for checkNoChanges', fakeAsync(() => { + it('should be called on every detectChanges run, except for checkNoChanges', () => { const ctx = createCompFixture('
    '); ctx.detectChanges(false); @@ -854,11 +843,11 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(false); expect(directiveLog.filter(['ngDoCheck'])).toEqual(['dir.ngDoCheck']); - })); + }); }); describe('ngAfterContentInit', () => { - it('should be called after processing the content children but before the view children', fakeAsync(() => { + it('should be called after processing the content children but before the view children', () => { const ctx = createCompWithContentAndViewChild(); ctx.detectChanges(false); @@ -870,9 +859,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'viewChild.ngDoCheck', 'viewChild.ngAfterContentInit', ]); - })); + }); - it('should only be called only once', fakeAsync(() => { + it('should only be called only once', () => { const ctx = createCompFixture('
    '); ctx.detectChanges(false); @@ -891,9 +880,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(false); expect(directiveLog.filter(['ngAfterContentInit'])).toEqual([]); - })); + }); - it('should not call ngAfterContentInit again if it throws', fakeAsync(() => { + it('should not call ngAfterContentInit again if it throws', () => { const ctx = createCompFixture( '
    ', ); @@ -918,11 +907,11 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ throw new Error('Second detectChanges() should not have run detection.'); } expect(directiveLog.filter(['ngAfterContentInit'])).toEqual([]); - })); + }); }); describe('ngAfterContentChecked', () => { - it('should be called after the content children but before the view children', fakeAsync(() => { + it('should be called after the content children but before the view children', () => { const ctx = createCompWithContentAndViewChild(); ctx.detectChanges(false); @@ -935,9 +924,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'viewChild.ngDoCheck', 'viewChild.ngAfterContentChecked', ]); - })); + }); - it('should be called on every detectChanges run, except for checkNoChanges', fakeAsync(() => { + it('should be called on every detectChanges run, except for checkNoChanges', () => { const ctx = createCompFixture('
    '); ctx.detectChanges(false); @@ -960,9 +949,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ expect(directiveLog.filter(['ngAfterContentChecked'])).toEqual([ 'dir.ngAfterContentChecked', ]); - })); + }); - it('should be called in reverse order so the child is always notified before the parent', fakeAsync(() => { + it('should be called in reverse order so the child is always notified before the parent', () => { const ctx = createCompFixture( '
    ', ); @@ -974,11 +963,11 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'parent.ngAfterContentChecked', 'sibling.ngAfterContentChecked', ]); - })); + }); }); describe('ngAfterViewInit', () => { - it('should be called after processing the view children', fakeAsync(() => { + it('should be called after processing the view children', () => { const ctx = createCompWithContentAndViewChild(); ctx.detectChanges(false); @@ -991,9 +980,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'viewChild.ngAfterViewInit', 'parent.ngAfterViewInit', ]); - })); + }); - it('should only be called only once', fakeAsync(() => { + it('should only be called only once', () => { const ctx = createCompFixture('
    '); ctx.detectChanges(false); @@ -1012,9 +1001,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(false); expect(directiveLog.filter(['ngAfterViewInit'])).toEqual([]); - })); + }); - it('should not call ngAfterViewInit again if it throws', fakeAsync(() => { + it('should not call ngAfterViewInit again if it throws', () => { const ctx = createCompFixture( '
    ', ); @@ -1039,11 +1028,11 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ throw new Error('Second detectChanges() should not have run detection.'); } expect(directiveLog.filter(['ngAfterViewInit'])).toEqual([]); - })); + }); }); describe('ngAfterViewChecked', () => { - it('should be called after processing the view children', fakeAsync(() => { + it('should be called after processing the view children', () => { const ctx = createCompWithContentAndViewChild(); ctx.detectChanges(false); @@ -1056,9 +1045,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'viewChild.ngAfterViewChecked', 'parent.ngAfterViewChecked', ]); - })); + }); - it('should be called on every detectChanges run, except for checkNoChanges', fakeAsync(() => { + it('should be called on every detectChanges run, except for checkNoChanges', () => { const ctx = createCompFixture('
    '); ctx.detectChanges(false); @@ -1077,9 +1066,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(false); expect(directiveLog.filter(['ngAfterViewChecked'])).toEqual(['dir.ngAfterViewChecked']); - })); + }); - it('should be called in reverse order so the child is always notified before the parent', fakeAsync(() => { + it('should be called in reverse order so the child is always notified before the parent', () => { const ctx = createCompFixture( '
    ', ); @@ -1091,20 +1080,20 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'parent.ngAfterViewChecked', 'sibling.ngAfterViewChecked', ]); - })); + }); }); describe('ngOnDestroy', () => { - it('should be called on view destruction', fakeAsync(() => { + it('should be called on view destruction', () => { const ctx = createCompFixture('
    '); ctx.detectChanges(false); ctx.destroy(); expect(directiveLog.filter(['ngOnDestroy'])).toEqual(['dir.ngOnDestroy']); - })); + }); - it('should be called after processing the content and view children', fakeAsync(() => { + it('should be called after processing the content and view children', () => { TestBed.overrideComponent(AnotherComponent, { set: new Component({ selector: 'other-cmp', @@ -1127,9 +1116,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'viewChild.ngOnDestroy', 'parent.ngOnDestroy', ]); - })); + }); - it('should be called in reverse order so the child is always notified before the parent', fakeAsync(() => { + it('should be called in reverse order so the child is always notified before the parent', () => { const ctx = createCompFixture( '
    ', ); @@ -1142,27 +1131,27 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'parent.ngOnDestroy', 'sibling.ngOnDestroy', ]); - })); + }); - it('should deliver synchronous events to parent', fakeAsync(() => { + it('should deliver synchronous events to parent', () => { const ctx = createCompFixture('
    '); ctx.detectChanges(false); ctx.destroy(); expect(ctx.componentInstance.a).toEqual('destroyed'); - })); + }); - it('should call ngOnDestroy on pipes', fakeAsync(() => { + it('should call ngOnDestroy on pipes', () => { const ctx = createCompFixture('{{true | pipeWithOnDestroy }}'); ctx.detectChanges(false); ctx.destroy(); expect(directiveLog.filter(['ngOnDestroy'])).toEqual(['pipeWithOnDestroy.ngOnDestroy']); - })); + }); - it('should call ngOnDestroy on an injectable class', fakeAsync(() => { + it('should call ngOnDestroy on an injectable class', () => { TestBed.overrideDirective(TestDirective, {set: {providers: [InjectableWithLifecycle]}}); const ctx = createCompFixture('
    ', TestComponent); @@ -1177,39 +1166,37 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ 'dir.ngOnDestroy', 'injectable.ngOnDestroy', ]); - })); + }); }); }); describe('enforce no new changes', () => { - it('should throw when a record gets changed after it has been checked', fakeAsync(() => { + it('should throw when a record gets changed after it has been checked', () => { @Directive({ selector: '[changed]', - standalone: false, }) class ChangingDirective { @Input() changed: any; } - TestBed.configureTestingModule({declarations: [ChangingDirective]}); + TestBed.overrideComponent(TestData, {add: {imports: [ChangingDirective]}}); const ctx = createCompFixture('
    ', TestData); ctx.componentInstance.b = 1; const errMsgRegExp = /Previous value: 'undefined'\. Current value: '1'/g; expect(() => ctx.checkNoChanges()).toThrowError(errMsgRegExp); - })); + }); - it('should throw when a record gets changed after the first change detection pass', fakeAsync(() => { + it('should throw when a record gets changed after the first change detection pass', () => { @Directive({ selector: '[changed]', - standalone: false, }) class ChangingDirective { @Input() changed: any; } - TestBed.configureTestingModule({declarations: [ChangingDirective]}); + TestBed.overrideComponent(TestData, {add: {imports: [ChangingDirective]}}); const ctx = createCompFixture('
    ', TestData); @@ -1219,7 +1206,7 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.componentInstance.b = 2; const errMsgRegExp = /Previous value: '1'\. Current value: '2'/g; expect(() => ctx.checkNoChanges()).toThrowError(errMsgRegExp); - })); + }); it('should allow view to be created in a cd hook', () => { const ctx = createCompFixture('
    {{ a }}
    ', TestData); @@ -1228,24 +1215,24 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ expect(ctx.nativeElement.innerText).toEqual('1'); }); - it('should not throw when two arrays are structurally the same', fakeAsync(() => { + it('should not throw when two arrays are structurally the same', () => { const ctx = _bindSimpleValue('a', TestData); ctx.componentInstance.a = ['value']; ctx.detectChanges(false); ctx.componentInstance.a = ['value']; expect(() => ctx.checkNoChanges()).not.toThrow(); - })); + }); - it('should not break the next run', fakeAsync(() => { + it('should not break the next run', () => { const ctx = _bindSimpleValue('a', TestData); ctx.componentInstance.a = 'value'; expect(() => ctx.checkNoChanges()).toThrow(); ctx.detectChanges(); expect(renderLog.loggedValues).toEqual(['value']); - })); + }); - it('should not break the next run (view engine and ivy)', fakeAsync(() => { + it('should not break the next run (view engine and ivy)', () => { const ctx = _bindSimpleValue('a', TestData); ctx.detectChanges(); @@ -1256,11 +1243,11 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(); expect(renderLog.loggedValues).toEqual(['value']); - })); + }); }); describe('mode', () => { - it('Detached', fakeAsync(() => { + it('Detached', () => { const ctx = createCompFixture(''); const cmp: CompWithRef = queryDirs(ctx.debugElement, CompWithRef)[0]; cmp.value = 'hello'; @@ -1269,9 +1256,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(); expect(renderLog.log).toEqual([]); - })); + }); - it('Detached should disable OnPush', fakeAsync(() => { + it('Detached should disable OnPush', () => { const ctx = createCompFixture(''); ctx.componentInstance.value = 0; ctx.detectChanges(); @@ -1284,9 +1271,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(); expect(renderLog.log).toEqual([]); - })); + }); - it('Detached view can be checked locally', fakeAsync(() => { + it('Detached view can be checked locally', () => { const ctx = createCompFixture(''); const cmp: CompWithRef = queryDirs(ctx.debugElement, CompWithRef)[0]; cmp.value = 'hello'; @@ -1300,9 +1287,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ cmp.changeDetectorRef.detectChanges(); expect(renderLog.log).toEqual(['{{hello}}']); - })); + }); - it('Reattaches', fakeAsync(() => { + it('Reattaches', () => { const ctx = createCompFixture(''); const cmp: CompWithRef = queryDirs(ctx.debugElement, CompWithRef)[0]; @@ -1318,9 +1305,9 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(); expect(renderLog.log).toEqual(['{{hello}}']); - })); + }); - it('Reattaches in the original cd mode', fakeAsync(() => { + it('Reattaches in the original cd mode', () => { const ctx = createCompFixture(''); const cmp: PushComp = queryDirs(ctx.debugElement, PushComp)[0]; cmp.changeDetectorRef.detach(); @@ -1335,7 +1322,7 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ ctx.detectChanges(); expect(cmp.renderCount).toBe(count); - })); + }); }); describe('nested view recursion', () => { @@ -1343,13 +1330,12 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ @Component({ selector: 'nested', template: '{{name}}', - standalone: false, }) class Nested { name = 'Tom'; } - TestBed.configureTestingModule({declarations: [Nested]}); + TestBed.overrideComponent(TestComponent, {add: {imports: [Nested]}}); const ctx = createCompFixture(''); ctx.detectChanges(); @@ -1359,7 +1345,6 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ it('should recurse into nested view containers even if there are no bindings in the component view', () => { @Component({ template: '{{name}}', - standalone: false, }) class Comp { name = 'Tom'; @@ -1367,7 +1352,6 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ @ViewChild(TemplateRef, {static: true}) template!: TemplateRef; } - TestBed.configureTestingModule({declarations: [Comp]}); initHelpers(); const ctx = TestBed.createComponent(Comp); @@ -1384,19 +1368,18 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ @Directive({ selector: '[i]', - standalone: false, }) class DummyDirective { @Input() i: any; } @Component({ - selector: 'main-cmp', template: ``, - standalone: false, + + imports: [DummyDirective, forwardRef(() => OuterComp)], changeDetection: ChangeDetectionStrategy.Eager, }) class MainComp { @@ -1412,7 +1395,8 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ >`, - standalone: false, + + imports: [DummyDirective, forwardRef(() => InnerComp)], changeDetection: ChangeDetectionStrategy.Eager, }) class OuterComp { @@ -1430,7 +1414,8 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ [ngTemplateOutlet]="outerTpl" >`, - standalone: false, + + imports: [CommonModule, DummyDirective], changeDetection: ChangeDetectionStrategy.Eager, }) class InnerComp { @@ -1450,9 +1435,7 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ beforeEach(() => { log = []; - ctx = TestBed.configureTestingModule({ - declarations: [MainComp, OuterComp, InnerComp, DummyDirective], - }).createComponent(MainComp); + ctx = TestBed.createComponent(MainComp); mainComp = ctx.componentInstance; outerComp = ctx.debugElement.query(By.directive(OuterComp)).injector.get(OuterComp); innerComp = ctx.debugElement.query(By.directive(InnerComp)).injector.get(InnerComp); @@ -1522,7 +1505,8 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ it('should coordinate class attribute and class host binding', () => { @Component({ template: `
    `, - standalone: false, + + imports: [forwardRef(() => SomeDir)], }) class Comp { initClasses = 'init'; @@ -1530,15 +1514,12 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ @Directive({ selector: '[someDir]', - standalone: false, }) class SomeDir { @HostBinding('class.foo') fooClass = true; } - const ctx = TestBed.configureTestingModule({declarations: [Comp, SomeDir]}).createComponent( - Comp, - ); + const ctx = TestBed.createComponent(Comp); ctx.detectChanges(); @@ -1601,7 +1582,6 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ @Component({ selector: 'my-child', template: '', - standalone: false, }) class MyChild { private thrown = LifetimeMethods.None; @@ -1650,7 +1630,8 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ @Component({ selector: 'my-component', template: ``, - standalone: false, + + imports: [MyChild], }) class MyComponent { constructor(private changeDetectionRef: ChangeDetectorRef) {} @@ -1677,9 +1658,7 @@ const TEST_COMPILER_PROVIDERS: Provider[] = [ } } - TestBed.configureTestingModule({declarations: [MyChild, MyComponent]}); - - return createCompFixture(``); + return createCompFixture(``, TestComponent, [MyComponent]); } function ensureOneInit(options: Options) { @@ -1800,7 +1779,6 @@ class DirectiveLog { @Pipe({ name: 'countingPipe', - standalone: false, }) class CountingPipe implements PipeTransform { state: number = 0; @@ -1812,7 +1790,6 @@ class CountingPipe implements PipeTransform { @Pipe({ name: 'countingImpurePipe', pure: false, - standalone: false, }) class CountingImpurePipe implements PipeTransform { state: number = 0; @@ -1823,7 +1800,6 @@ class CountingImpurePipe implements PipeTransform { @Pipe({ name: 'pipeWithOnDestroy', - standalone: false, }) class PipeWithOnDestroy implements PipeTransform, OnDestroy { constructor(private directiveLog: DirectiveLog) {} @@ -1839,7 +1815,6 @@ class PipeWithOnDestroy implements PipeTransform, OnDestroy { @Pipe({ name: 'identityPipe', - standalone: false, }) class IdentityPipe implements PipeTransform { transform(value: any) { @@ -1849,7 +1824,6 @@ class IdentityPipe implements PipeTransform { @Pipe({ name: 'multiArgPipe', - standalone: false, }) class MultiArgPipe implements PipeTransform { transform(value: any, arg1: any, arg2: any, arg3 = 'default') { @@ -1858,9 +1832,23 @@ class MultiArgPipe implements PipeTransform { } @Component({ - selector: 'test-cmp', template: 'empty', - standalone: false, + + imports: [ + CommonModule, + CountingPipe, + CountingImpurePipe, + PipeWithOnDestroy, + IdentityPipe, + MultiArgPipe, + forwardRef(() => AnotherComponent), + forwardRef(() => CompWithRef), + forwardRef(() => WrapCompWithRef), + forwardRef(() => PushComp), + forwardRef(() => TestDirective), + forwardRef(() => OnDestroyDirective), + forwardRef(() => TestLocals), + ], }) class TestComponent { value: any; @@ -1871,7 +1859,8 @@ class TestComponent { @Component({ selector: 'other-cmp', template: 'empty', - standalone: false, + + imports: [forwardRef(() => TestDirective)], }) class AnotherComponent {} @@ -1879,7 +1868,8 @@ class AnotherComponent {} selector: 'comp-with-ref', template: '
    {{value}}', host: {'event': 'noop()'}, - standalone: false, + + imports: [forwardRef(() => EmitterDirective)], }) class CompWithRef { @Input() public value: any; @@ -1892,7 +1882,8 @@ class CompWithRef { @Component({ selector: 'wrap-comp-with-ref', template: '', - standalone: false, + + imports: [CompWithRef], }) class WrapCompWithRef { constructor(public changeDetectorRef: ChangeDetectorRef) {} @@ -1902,8 +1893,8 @@ class WrapCompWithRef { selector: 'push-cmp', template: '
    {{value}}{{renderIncrement}}', host: {'(event)': 'noop()'}, - changeDetection: ChangeDetectionStrategy.OnPush, - standalone: false, + + imports: [forwardRef(() => EmitterDirective)], }) class PushComp { @Input() public value: any; @@ -1921,7 +1912,6 @@ class PushComp { @Directive({ selector: '[emitterDirective]', - standalone: false, }) class EmitterDirective { @Output('event') emitter = new EventEmitter(); @@ -1929,7 +1919,6 @@ class EmitterDirective { @Directive({ selector: '[gh9882]', - standalone: false, }) class Gh9882 implements AfterContentInit { constructor( @@ -1945,7 +1934,6 @@ class Gh9882 implements AfterContentInit { @Directive({ selector: '[testDirective]', exportAs: 'testDirective', - standalone: false, }) class TestDirective implements @@ -2041,7 +2029,6 @@ class InjectableWithLifecycle { @Directive({ selector: '[onDestroyDirective]', - standalone: false, }) class OnDestroyDirective implements OnDestroy { @Output('destroy') emitter = new EventEmitter(false); @@ -2053,7 +2040,6 @@ class OnDestroyDirective implements OnDestroy { @Directive({ selector: '[orderCheck0]', - standalone: false, }) class OrderCheckDirective0 { private _name: string | undefined; @@ -2069,7 +2055,6 @@ class OrderCheckDirective0 { @Directive({ selector: '[orderCheck1]', - standalone: false, }) class OrderCheckDirective1 { private _name: string | undefined; @@ -2088,7 +2073,6 @@ class OrderCheckDirective1 { @Directive({ selector: '[orderCheck2]', - standalone: false, }) class OrderCheckDirective2 { private _name: string | undefined; @@ -2111,7 +2095,6 @@ class TestLocalsContext { @Directive({ selector: '[testLocals]', - standalone: false, }) class TestLocals { constructor(templateRef: TemplateRef, vcRef: ViewContainerRef) { @@ -2120,9 +2103,9 @@ class TestLocals { } @Component({ - selector: 'root', template: 'empty', - standalone: false, + + imports: [CommonModule, CountingPipe, CountingImpurePipe, IdentityPipe, MultiArgPipe], }) class Person { age: number | undefined; @@ -2183,18 +2166,16 @@ class Address { } @Component({ - selector: 'root', template: 'empty', - standalone: false, }) class Uninitialized { value: any = null; } @Component({ - selector: 'root', template: 'empty', - standalone: false, + + imports: [Gh9882], }) class TestData { a: any; @@ -2206,15 +2187,11 @@ class Holder { } @Component({ - selector: 'root', template: 'empty', - standalone: false, }) class PersonHolder extends Holder {} @Component({ - selector: 'root', template: 'empty', - standalone: false, }) class PersonHolderHolder extends Holder> {} diff --git a/packages/core/test/linker/inheritance_integration_spec.ts b/packages/core/test/linker/inheritance_integration_spec.ts index 65371d0cc504..10469de517cc 100644 --- a/packages/core/test/linker/inheritance_integration_spec.ts +++ b/packages/core/test/linker/inheritance_integration_spec.ts @@ -11,13 +11,11 @@ import {TestBed} from '../../testing'; @Directive({ selector: '[directiveA]', - standalone: false, }) class DirectiveA {} @Directive({ selector: '[directiveB]', - standalone: false, }) class DirectiveB { @HostBinding('title') title = 'DirectiveB Title'; @@ -26,14 +24,12 @@ class DirectiveB { @Component({ selector: 'component-a', template: 'ComponentA Template', - standalone: false, }) class ComponentA {} @Component({ selector: 'component-extends-directive', template: 'ComponentExtendsDirective Template', - standalone: false, }) class ComponentExtendsDirective extends DirectiveA {} @@ -41,7 +37,6 @@ class ComponentWithNoAnnotation extends ComponentA {} @Directive({ selector: '[directiveExtendsComponent]', - standalone: false, }) class DirectiveExtendsComponent extends ComponentA { @HostBinding('title') title = 'DirectiveExtendsComponent Title'; @@ -50,44 +45,42 @@ class DirectiveExtendsComponent extends ComponentA { class DirectiveWithNoAnnotation extends DirectiveB {} @Component({ - selector: 'my-app', template: '...', - standalone: false, }) class App {} describe('Inheritance logic', () => { it('should handle Components that extend Directives', () => { - TestBed.configureTestingModule({declarations: [ComponentExtendsDirective, App]}); const template = ''; - TestBed.overrideComponent(App, {set: {template}}); + TestBed.overrideComponent(App, { + set: {template, imports: [ComponentExtendsDirective]}, + }); const fixture = TestBed.createComponent(App); fixture.detectChanges(); expect(fixture.nativeElement.firstChild.innerHTML).toBe('ComponentExtendsDirective Template'); }); it('should handle classes with no annotations that extend Components', () => { - TestBed.configureTestingModule({declarations: [ComponentWithNoAnnotation, App]}); const template = ''; - TestBed.overrideComponent(App, {set: {template}}); + TestBed.overrideComponent(App, { + set: {template, imports: [ComponentWithNoAnnotation]}, + }); const fixture = TestBed.createComponent(App); fixture.detectChanges(); expect(fixture.nativeElement.firstChild.innerHTML).toBe('ComponentA Template'); }); it('should handle classes with no annotations that extend Directives', () => { - TestBed.configureTestingModule({declarations: [DirectiveWithNoAnnotation, App]}); const template = '
    '; - TestBed.overrideComponent(App, {set: {template}}); + TestBed.overrideComponent(App, {set: {template, imports: [DirectiveWithNoAnnotation]}}); const fixture = TestBed.createComponent(App); fixture.detectChanges(); expect(fixture.nativeElement.firstChild.title).toBe('DirectiveB Title'); }); it('should throw in case a Directive tries to extend a Component', () => { - TestBed.configureTestingModule({declarations: [DirectiveExtendsComponent, App]}); const template = '
    Some content
    '; - TestBed.overrideComponent(App, {set: {template}}); + TestBed.overrideComponent(App, {set: {template, imports: [DirectiveExtendsComponent]}}); expect(() => TestBed.createComponent(App)).toThrowError( 'NG0903: Directives cannot inherit Components. Directive DirectiveExtendsComponent is attempting to extend component ComponentA', ); diff --git a/packages/core/test/linker/integration_spec.ts b/packages/core/test/linker/integration_spec.ts index e187256c7e9f..e0dbdd111402 100644 --- a/packages/core/test/linker/integration_spec.ts +++ b/packages/core/test/linker/integration_spec.ts @@ -9,11 +9,7 @@ import {CommonModule, DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; import {createMouseEvent, dispatchEvent, el, isCommentNode} from '@angular/private/testing'; import {expect} from '@angular/private/testing/matchers'; -import { - ChangeDetectionStrategy, - ChangeDetectorRef, - PipeTransform, -} from '../../src/change_detection/change_detection'; +import {ChangeDetectorRef, PipeTransform} from '../../src/change_detection/change_detection'; import { Attribute, Compiler, @@ -24,6 +20,7 @@ import { Directive, EnvironmentInjector, EventEmitter, + forwardRef, Host, HostBinding, HostListener, @@ -34,7 +31,6 @@ import { Input, NgModule, NgModuleRef, - NO_ERRORS_SCHEMA, OnDestroy, Output, Pipe, @@ -51,7 +47,7 @@ import {QueryList} from '../../src/linker/query_list'; import {TemplateRef} from '../../src/linker/template_ref'; import {ViewContainerRef} from '../../src/linker/view_container_ref'; import {EmbeddedViewRef} from '../../src/linker/view_ref'; -import {fakeAsync, getTestBed, TestBed, tick, waitForAsync} from '../../testing'; +import {getTestBed, TestBed} from '../../testing'; import {stringify} from '../../src/util/stringify'; @@ -60,7 +56,6 @@ const ANCHOR_ELEMENT = new InjectionToken('AnchorElement'); describe('integration tests', function () { describe('react to record changes', function () { it('should consume text node changes', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = '
    {{ctxProp()}}
    '; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); @@ -71,7 +66,6 @@ describe('integration tests', function () { }); it('should update text node with a blank string when interpolation evaluates to null', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = '
    {{null}}{{ctxProp()}}
    '; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); @@ -83,15 +77,12 @@ describe('integration tests', function () { it('should allow both null and undefined in expressions', () => { const template = '
    {{null == undefined}}|{{null === undefined}}
    '; - const fixture = TestBed.configureTestingModule({declarations: [MyComp]}) - .overrideComponent(MyComp, {set: {template}}) - .createComponent(MyComp); + const fixture = TestBed.overrideComponent(MyComp, {set: {template}}).createComponent(MyComp); fixture.detectChanges(); expect(fixture.nativeElement).toHaveText('true|false'); }); it('should support an arbitrary number of interpolations in an element', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = `
    before{{'0'}}a{{'1'}}b{{'2'}}c{{'3'}}d{{'4'}}e{{'5'}}f{{'6'}}g{{'7'}}h{{'8'}}i{{'9'}}j{{'10'}}after
    `; const fixture = TestBed.overrideComponent(MyComp, {set: {template}}).createComponent(MyComp); @@ -100,7 +91,6 @@ describe('integration tests', function () { }); it('should use a blank string when interpolation evaluates to null or undefined with an arbitrary number of interpolations', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = `
    0{{null}}a{{undefined}}b{{null}}c{{undefined}}d{{null}}e{{undefined}}f{{null}}g{{undefined}}h{{null}}i{{undefined}}j{{null}}1
    `; const fixture = TestBed.overrideComponent(MyComp, {set: {template}}).createComponent(MyComp); @@ -109,7 +99,6 @@ describe('integration tests', function () { }); it('should consume element binding changes', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = '
    '; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); @@ -121,7 +110,6 @@ describe('integration tests', function () { }); it('should consume binding to aria-* attributes', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = '
    '; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); @@ -140,7 +128,6 @@ describe('integration tests', function () { }); it('should remove an attribute when attribute expression evaluates to null', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = '
    '; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); @@ -155,7 +142,6 @@ describe('integration tests', function () { }); it('should remove style when when style expression evaluates to null', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = '
    '; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); @@ -170,7 +156,6 @@ describe('integration tests', function () { }); it('should consume binding to property names where attr name and property name do not match', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = '
    '; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); @@ -184,7 +169,6 @@ describe('integration tests', function () { }); it('should consume binding to camel-cased properties', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = ''; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); @@ -198,7 +182,6 @@ describe('integration tests', function () { }); it('should consume binding to innerHtml', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = '
    '; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); @@ -218,9 +201,7 @@ describe('integration tests', function () { it('should consume binding to htmlFor using for alias', () => { const template = ''; - const fixture = TestBed.configureTestingModule({declarations: [MyComp]}) - .overrideComponent(MyComp, {set: {template}}) - .createComponent(MyComp); + const fixture = TestBed.overrideComponent(MyComp, {set: {template}}).createComponent(MyComp); const nativeEl = fixture.debugElement.children[0].nativeElement; fixture.debugElement.componentInstance.ctxProp.set('foo'); @@ -230,7 +211,6 @@ describe('integration tests', function () { }); it('should consume directive watch expression change.', () => { - TestBed.configureTestingModule({declarations: [MyComp, MyDir]}); const template = '' + '
    ' + @@ -238,7 +218,12 @@ describe('integration tests', function () { '
    ' + '
    ' + '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => MyDir)], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.componentInstance.ctxProp.set('Hello World!'); @@ -256,9 +241,18 @@ describe('integration tests', function () { describe('pipes', () => { it('should support pipes in bindings', () => { - TestBed.configureTestingModule({declarations: [MyComp, MyDir, DoublePipe]}); const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => MyDir), + forwardRef(() => DoublePipe), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.componentInstance.ctxProp.set('a'); @@ -270,9 +264,13 @@ describe('integration tests', function () { }); it('should support nested components.', () => { - TestBed.configureTestingModule({declarations: [MyComp, ChildComp]}); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => ChildComp)], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -282,9 +280,18 @@ describe('integration tests', function () { // GH issue 328 - https://github.com/angular/angular/issues/328 it('should support different directive types on a single node', () => { - TestBed.configureTestingModule({declarations: [MyComp, ChildComp, MyDir]}); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => ChildComp), + forwardRef(() => MyDir), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.componentInstance.ctxProp.set('Hello World!'); @@ -297,26 +304,41 @@ describe('integration tests', function () { }); it('should support directives where a binding attribute is not given', () => { - TestBed.configureTestingModule({declarations: [MyComp, MyDir]}); const template = '

    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => MyDir)], + }, + }); const fixture = TestBed.createComponent(MyComp); }); it('should execute a given directive once, even if specified multiple times', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, DuplicateDir, DuplicateDir, [DuplicateDir, [DuplicateDir]]], - }); const template = '

    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DuplicateDir), + [DuplicateDir, [DuplicateDir]], + ], + }, + }); const fixture = TestBed.createComponent(MyComp); expect(fixture.nativeElement).toHaveText('noduplicate'); }); it('should support directives where a selector matches property binding', () => { - TestBed.configureTestingModule({declarations: [MyComp, IdDir]}); const template = '

    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => IdDir)], + }, + }); const fixture = TestBed.createComponent(MyComp); const tc = fixture.debugElement.children[0]; @@ -332,9 +354,13 @@ describe('integration tests', function () { }); it('should support directives where a selector matches event binding', () => { - TestBed.configureTestingModule({declarations: [MyComp, EventDir]}); const template = '

    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => EventDir)], + }, + }); const fixture = TestBed.createComponent(MyComp); const tc = fixture.debugElement.children[0]; @@ -345,7 +371,6 @@ describe('integration tests', function () { @Component({ selector: 'my-uninitialized-output', template: '

    It works!

    ', - standalone: false, }) class UninitializedOutputComp { @Output() customEvent!: EventEmitter; @@ -353,26 +378,48 @@ describe('integration tests', function () { const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), UninitializedOutputComp], + }, + }); - TestBed.configureTestingModule({declarations: [MyComp, UninitializedOutputComp]}); expect(() => TestBed.createComponent(MyComp)).toThrowError( "@Output customEvent not initialized in 'UninitializedOutputComp'.", ); }); it('should read directives metadata from their binding token', () => { - TestBed.configureTestingModule({declarations: [MyComp, PrivateImpl, NeedsPublicApi]}); const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => PrivateImpl), + forwardRef(() => NeedsPublicApi), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); }); it('should not share empty context for template directives - issue #10045', () => { - TestBed.configureTestingModule({declarations: [MyComp, PollutedContext, NoContext]}); const template = '{{foo}}{{foo}}'; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => PollutedContext), + forwardRef(() => NoContext), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -380,10 +427,18 @@ describe('integration tests', function () { }); it('should not detach views in ViewContainers when the parent view is destroyed.', () => { - TestBed.configureTestingModule({declarations: [MyComp, SomeViewport]}); const template = '
    {{greeting}}
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => SomeViewport), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.componentInstance.ctxBoolProp.set(true); @@ -404,9 +459,9 @@ describe('integration tests', function () { }); it('should use a comment while stamping out `` elements.', () => { - const fixture = TestBed.configureTestingModule({declarations: [MyComp]}) - .overrideComponent(MyComp, {set: {template: ''}}) - .createComponent(MyComp); + const fixture = TestBed.overrideComponent(MyComp, { + set: {template: ''}, + }).createComponent(MyComp); const childNodesOfWrapper = fixture.nativeElement.childNodes; expect(childNodesOfWrapper.length).toBe(1); @@ -414,21 +469,21 @@ describe('integration tests', function () { }); it('should allow to transplant TemplateRefs into other ViewContainers', () => { - TestBed.configureTestingModule({ - declarations: [ - MyComp, - SomeDirective, - CompWithHost, - ToolbarComponent, - ToolbarViewContainer, - ToolbarPart, - ], - imports: [CommonModule], - schemas: [NO_ERRORS_SCHEMA], - }); const template = '{{ctxProp()}},{{toolbarProp}},'; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => SomeDirective), + forwardRef(() => CompWithHost), + forwardRef(() => ToolbarComponent), + forwardRef(() => ToolbarPart), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.componentInstance.ctxProp.set('From myComp'); @@ -441,9 +496,13 @@ describe('integration tests', function () { describe('reference bindings', () => { it('should assign a component to a ref-', () => { - TestBed.configureTestingModule({declarations: [MyComp, ChildComp]}); const template = '

    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => ChildComp)], + }, + }); const fixture = TestBed.createComponent(MyComp); expect(fixture.debugElement.children[0].children[0].references!['alice']).toBeInstanceOf( @@ -452,9 +511,13 @@ describe('integration tests', function () { }); it('should assign a directive to a ref-', () => { - TestBed.configureTestingModule({declarations: [MyComp, ExportDir]}); const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => ExportDir)], + }, + }); const fixture = TestBed.createComponent(MyComp); expect(fixture.debugElement.children[0].children[0].references!['localdir']).toBeInstanceOf( @@ -463,12 +526,17 @@ describe('integration tests', function () { }); it('should assign a directive to a ref when it has multiple exportAs names', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveWithMultipleExportAsNames], - }); - const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveWithMultipleExportAsNames), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); expect(fixture.debugElement.children[0].references!['x']).toBeInstanceOf( @@ -480,10 +548,14 @@ describe('integration tests', function () { }); it('should make the assigned component accessible in property bindings, even if they were declared before the component', () => { - TestBed.configureTestingModule({declarations: [MyComp, ChildComp]}); const template = '{{alice.ctxProp()}}|{{alice.ctxProp()}}|'; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => ChildComp)], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -492,9 +564,13 @@ describe('integration tests', function () { }); it('should assign two component instances each with a ref-', () => { - TestBed.configureTestingModule({declarations: [MyComp, ChildComp]}); const template = '

    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => ChildComp)], + }, + }); const fixture = TestBed.createComponent(MyComp); const pEl = fixture.debugElement.children[0]; @@ -507,16 +583,19 @@ describe('integration tests', function () { }); it('should assign the component instance to a ref- with shorthand syntax', () => { - TestBed.configureTestingModule({declarations: [MyComp, ChildComp]}); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => ChildComp)], + }, + }); const fixture = TestBed.createComponent(MyComp); expect(fixture.debugElement.children[0].references!['alice']).toBeInstanceOf(ChildComp); }); it('should assign the element instance to a user-defined variable', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = '
    Hello
    '; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); @@ -527,18 +606,22 @@ describe('integration tests', function () { }); it('should assign the TemplateRef to a user-defined variable', () => { - const fixture = TestBed.configureTestingModule({declarations: [MyComp]}) - .overrideComponent(MyComp, {set: {template: ''}}) - .createComponent(MyComp); + const fixture = TestBed.overrideComponent(MyComp, { + set: {template: ''}, + }).createComponent(MyComp); const value = fixture.debugElement.childNodes[0].references!['alice']; expect(value.createEmbeddedView).toBeTruthy(); }); it('should preserve case', () => { - TestBed.configureTestingModule({declarations: [MyComp, ChildComp]}); const template = '

    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => ChildComp)], + }, + }); const fixture = TestBed.createComponent(MyComp); expect( @@ -549,9 +632,13 @@ describe('integration tests', function () { describe('OnPush components', () => { it('should use ChangeDetectorRef to manually request a check', () => { - TestBed.configureTestingModule({declarations: [MyComp, [[PushCmpWithRef]]]}); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), [[PushCmpWithRef]]], + }, + }); const fixture = TestBed.createComponent(MyComp); const cmp = fixture.debugElement.children[0].references!['cmp']; @@ -569,12 +656,13 @@ describe('integration tests', function () { }); it('should be checked when its bindings got updated', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, PushCmp, EventCmp], - imports: [CommonModule], - }); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => PushCmp)], + }, + }); const fixture = TestBed.createComponent(MyComp); const cmp = fixture.debugElement.children[0].references!['cmp']; @@ -589,13 +677,17 @@ describe('integration tests', function () { }); if (getDOM().supportsDOMEvents) { - it('should allow to destroy a component from within a host event handler', fakeAsync(() => { - TestBed.configureTestingModule({declarations: [MyComp, [[PushCmpWithHostEvent]]]}); + it('should allow to destroy a component from within a host event handler', async () => { const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), [[PushCmpWithHostEvent]]], + }, + }); const fixture = TestBed.createComponent(MyComp); - tick(); + await fixture.whenStable(); fixture.detectChanges(); const cmpEl = fixture.debugElement.children[0]; @@ -603,16 +695,17 @@ describe('integration tests', function () { cmp.ctxCallback = (_: any) => fixture.destroy(); expect(() => cmpEl.triggerEventHandler('click', {})).not.toThrow(); - })); + }); } it('should be checked when an event is fired', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, PushCmp, EventCmp], - imports: [CommonModule], - }); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => PushCmp)], + }, + }); const fixture = TestBed.createComponent(MyComp); const cmpEl = fixture.debugElement.children[0]; @@ -647,9 +740,13 @@ describe('integration tests', function () { }); it('should not affect updating properties on the component', () => { - TestBed.configureTestingModule({declarations: [MyComp, [[PushCmpWithRef]]]}); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), [[PushCmpWithRef]]], + }, + }); const fixture = TestBed.createComponent(MyComp); const cmp = fixture.debugElement.children[0].references!['cmp']; @@ -663,16 +760,21 @@ describe('integration tests', function () { expect(cmp.prop).toEqual('two'); }); - it('should be checked when an async pipe requests a check', fakeAsync(() => { - TestBed.configureTestingModule({ - declarations: [MyComp, PushCmpWithAsyncPipe], - imports: [CommonModule], - }); + it('should be checked when an async pipe requests a check', async () => { const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => PushCmpWithAsyncPipe), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); - tick(); + await fixture.whenStable(); const cmp: PushCmpWithAsyncPipe = fixture.debugElement.children[0].references!['cmp']; fixture.detectChanges(); @@ -683,25 +785,31 @@ describe('integration tests', function () { expect(cmp.numberOfChecks).toEqual(1); cmp.resolve(2); - tick(); + await fixture.whenStable(); fixture.detectChanges(); expect(cmp.numberOfChecks).toEqual(2); - })); + }); }); it('should create a component that injects an @Host', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, SomeDirective, CompWithHost], - schemas: [NO_ERRORS_SCHEMA], - }); const template = `

    `; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => SomeDirective), + forwardRef(() => CompWithHost), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); const childComponent = @@ -710,17 +818,23 @@ describe('integration tests', function () { }); it('should create a component that injects an @Host through viewcontainer directive', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, SomeDirective, CompWithHost], - schemas: [NO_ERRORS_SCHEMA], - }); const template = `

    `; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => SomeDirective), + forwardRef(() => CompWithHost), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -731,12 +845,19 @@ describe('integration tests', function () { expect(childComponent.myHost).toBeInstanceOf(SomeDirective); }); - it('should support events via EventEmitter on regular elements', waitForAsync(() => { - TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveEmittingEvent, DirectiveListeningEvent], - }); + it('should support events via EventEmitter on regular elements', async () => { const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveEmittingEvent), + forwardRef(() => DirectiveListeningEvent), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); const tc = fixture.debugElement.children[0]; @@ -746,6 +867,7 @@ describe('integration tests', function () { expect(listener.msg).toEqual(''); let eventCount = 0; + const {promise, resolve} = Promise.withResolvers(); emitter.event.subscribe({ next: () => { eventCount++; @@ -756,22 +878,26 @@ describe('integration tests', function () { } else { expect(listener.msg).toEqual('fired !'); } + resolve(); }, }); emitter.fireEvent('fired !'); - })); + await promise; + }); - it('should support events via EventEmitter on template elements', waitForAsync(() => { - const fixture = TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveEmittingEvent, DirectiveListeningEvent], - }) - .overrideComponent(MyComp, { - set: { - template: '', - }, - }) - .createComponent(MyComp); + it('should support events via EventEmitter on template elements', async () => { + const fixture = TestBed.overrideComponent(MyComp, { + set: { + template: '', + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveEmittingEvent), + forwardRef(() => DirectiveListeningEvent), + ], + }, + }).createComponent(MyComp); const tc = fixture.debugElement.childNodes.find( (debugElement) => debugElement.nativeNode.nodeType === Node.COMMENT_NODE, )!; @@ -783,20 +909,31 @@ describe('integration tests', function () { myComp.ctxProp.set(''); expect(listener.msg).toEqual(''); + const {promise, resolve} = Promise.withResolvers(); emitter.event.subscribe({ next: () => { expect(listener.msg).toEqual('fired !'); expect(myComp.ctxProp()).toEqual('fired !'); + resolve(); }, }); emitter.fireEvent('fired !'); - })); + await promise; + }); - it('should support [()] syntax', waitForAsync(() => { - TestBed.configureTestingModule({declarations: [MyComp, DirectiveWithTwoWayBinding]}); + it('should support [()] syntax', async () => { const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveWithTwoWayBinding), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); const tc = fixture.debugElement.children[0]; const dir = tc.injector.get(DirectiveWithTwoWayBinding); @@ -806,19 +943,30 @@ describe('integration tests', function () { expect(dir.control).toEqual('one'); + const {promise, resolve} = Promise.withResolvers(); dir.controlChange.subscribe({ next: () => { expect(fixture.componentInstance.ctxProp()).toEqual('two'); + resolve(); }, }); dir.triggerChange('two'); - })); + await promise; + }); it('should support render events', () => { - TestBed.configureTestingModule({declarations: [MyComp, DirectiveListeningDomEvent]}); const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveListeningDomEvent), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); const tc = fixture.debugElement.children[0]; @@ -840,9 +988,17 @@ describe('integration tests', function () { }); it('should support render global events', () => { - TestBed.configureTestingModule({declarations: [MyComp, DirectiveListeningDomEvent]}); const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveListeningDomEvent), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); const doc = TestBed.inject(DOCUMENT); @@ -865,11 +1021,9 @@ describe('integration tests', function () { @Component({ host: {'role': 'button'}, template: '', - standalone: false, }) class ComponentUpdatingHostAttributes {} - TestBed.configureTestingModule({declarations: [ComponentUpdatingHostAttributes]}); const fixture = TestBed.createComponent(ComponentUpdatingHostAttributes); fixture.detectChanges(); @@ -878,9 +1032,17 @@ describe('integration tests', function () { }); it('should support updating host element via hostAttributes on host elements', () => { - TestBed.configureTestingModule({declarations: [MyComp, DirectiveUpdatingHostAttributes]}); const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveUpdatingHostAttributes), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -889,9 +1051,17 @@ describe('integration tests', function () { }); it('should support updating host element via hostProperties', () => { - TestBed.configureTestingModule({declarations: [MyComp, DirectiveUpdatingHostProperties]}); const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveUpdatingHostProperties), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); const tc = fixture.debugElement.children[0]; @@ -908,20 +1078,18 @@ describe('integration tests', function () { @Directive({ selector: '[host-properties]', host: {'[id]': 'id', '[title]': 'unknownProp'}, - standalone: false, }) class DirectiveWithHostProps { id = 'one'; unknownProp = 'unknownProp'; } - const fixture = TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveWithHostProps], - }) - .overrideComponent(MyComp, { - set: {template: `
    `}, - }) - .createComponent(MyComp); + const fixture = TestBed.overrideComponent(MyComp, { + set: { + template: `
    `, + imports: [CommonModule, forwardRef(() => DynamicViewport), DirectiveWithHostProps], + }, + }).createComponent(MyComp); fixture.detectChanges(); const tc = fixture.debugElement.children[0]; @@ -933,13 +1101,16 @@ describe('integration tests', function () { @Directive({ selector: '[host-properties]', host: {'[id]': 'id | uppercase'}, - standalone: false, }) class DirectiveWithHostProps {} - TestBed.configureTestingModule({declarations: [MyComp, DirectiveWithHostProps]}); const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), DirectiveWithHostProps], + }, + }); expect(() => TestBed.createComponent(MyComp)).toThrowError( /Host binding expression cannot contain pipes/, ); @@ -949,7 +1120,6 @@ describe('integration tests', function () { @Directive({ selector: '[host-listener]', host: {'(click)': 'doIt(id, unknownProp)'}, - standalone: false, }) class DirectiveWithHostListener { id = 'one'; @@ -960,13 +1130,12 @@ describe('integration tests', function () { } } - const fixture = TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveWithHostListener], - }) - .overrideComponent(MyComp, { - set: {template: `
    `}, - }) - .createComponent(MyComp); + const fixture = TestBed.overrideComponent(MyComp, { + set: { + template: `
    `, + imports: [CommonModule, forwardRef(() => DynamicViewport), DirectiveWithHostListener], + }, + }).createComponent(MyComp); fixture.detectChanges(); const tc = fixture.debugElement.children[0]; tc.triggerEventHandler('click', {}); @@ -978,13 +1147,16 @@ describe('integration tests', function () { @Directive({ selector: '[host-listener]', host: {'(click)': 'doIt() | somePipe'}, - standalone: false, }) class DirectiveWithHostListener {} - TestBed.configureTestingModule({declarations: [MyComp, DirectiveWithHostListener]}); const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), DirectiveWithHostListener], + }, + }); expect(() => TestBed.createComponent(MyComp)).toThrowError( /Cannot have a pipe in an action expression/, ); @@ -992,16 +1164,19 @@ describe('integration tests', function () { if (getDOM().supportsDOMEvents) { it('should support preventing default on render events', () => { - TestBed.configureTestingModule({ - declarations: [ - MyComp, - DirectiveListeningDomEventPrevent, - DirectiveListeningDomEventNoPrevent, - ], - }); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveListeningDomEventPrevent), + forwardRef(() => DirectiveListeningDomEventNoPrevent), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); const dispatchedEvent = createMouseEvent('click'); @@ -1016,11 +1191,18 @@ describe('integration tests', function () { } it('should support render global events from multiple directives', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveListeningDomEvent, DirectiveListeningDomEventOther], - }); const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveListeningDomEvent), + forwardRef(() => DirectiveListeningDomEventOther), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); const doc = TestBed.inject(DOCUMENT); @@ -1053,19 +1235,14 @@ describe('integration tests', function () { describe('ViewContainerRef', () => { beforeEach(() => { - TestBed.configureTestingModule({ - declarations: [MyComp, DynamicViewport, ChildCompUsingService], - }); TestBed.overrideComponent(MyComp, { add: {template: '
    '}, }); }); describe('.createComponent', () => { - it('should allow to create a component at any bound location', waitForAsync(() => { - const fixture = TestBed.configureTestingModule({ - schemas: [NO_ERRORS_SCHEMA], - }).createComponent(MyComp); + it('should allow to create a component at any bound location', () => { + const fixture = TestBed.createComponent(MyComp); const tc = fixture.debugElement.children[0].children[0]; const dynamicVp: DynamicViewport = tc.injector.get(DynamicViewport); dynamicVp.create(); @@ -1073,12 +1250,10 @@ describe('integration tests', function () { expect(fixture.debugElement.children[0].children[1].nativeElement).toHaveText( 'dynamic greet', ); - })); + }); - it('should allow to create multiple components at a location', waitForAsync(() => { - const fixture = TestBed.configureTestingModule({ - schemas: [NO_ERRORS_SCHEMA], - }).createComponent(MyComp); + it('should allow to create multiple components at a location', () => { + const fixture = TestBed.createComponent(MyComp); const tc = fixture.debugElement.children[0].children[0]; const dynamicVp: DynamicViewport = tc.injector.get(DynamicViewport); dynamicVp.create(); @@ -1090,7 +1265,7 @@ describe('integration tests', function () { expect(fixture.debugElement.children[0].children[2].nativeElement).toHaveText( 'dynamic greet', ); - })); + }); it('should create a component with the passed NgModuleRef', () => { @Component({ @@ -1137,10 +1312,8 @@ describe('integration tests', function () { }); describe('.insert', () => { - it('should throw with destroyed views', waitForAsync(() => { - const fixture = TestBed.configureTestingModule({ - schemas: [NO_ERRORS_SCHEMA], - }).createComponent(MyComp); + it('should throw with destroyed views', () => { + const fixture = TestBed.createComponent(MyComp); const tc = fixture.debugElement.children[0].children[0]; const dynamicVp: DynamicViewport = tc.injector.get(DynamicViewport); const ref = dynamicVp.create(); @@ -1150,14 +1323,12 @@ describe('integration tests', function () { expect(() => { dynamicVp.insert(ref.hostView); }).toThrowError(/Cannot insert a destroyed View in a ViewContainer!/); - })); + }); }); describe('.move', () => { - it('should throw with destroyed views', waitForAsync(() => { - const fixture = TestBed.configureTestingModule({ - schemas: [NO_ERRORS_SCHEMA], - }).createComponent(MyComp); + it('should throw with destroyed views', () => { + const fixture = TestBed.createComponent(MyComp); const tc = fixture.debugElement.children[0].children[0]; const dynamicVp: DynamicViewport = tc.injector.get(DynamicViewport); const ref = dynamicVp.create(); @@ -1167,14 +1338,22 @@ describe('integration tests', function () { expect(() => { dynamicVp.move(ref.hostView, 1); }).toThrowError(/Cannot move a destroyed View in a ViewContainer!/); - })); + }); }); }); it('should support static attributes', () => { - TestBed.configureTestingModule({declarations: [MyComp, NeedsAttribute]}); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => NeedsAttribute), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); const tc = fixture.debugElement.children[0]; @@ -1187,17 +1366,22 @@ describe('integration tests', function () { describe('dependency injection', () => { it('should support bindings', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveProvidingInjectable, DirectiveConsumingInjectable], - schemas: [NO_ERRORS_SCHEMA], - }); const template = ` `; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveProvidingInjectable), + forwardRef(() => DirectiveConsumingInjectable), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); const comp = fixture.debugElement.children[0].children[0].references['consuming']; @@ -1205,15 +1389,13 @@ describe('integration tests', function () { }); it('should support viewProviders', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveProvidingInjectableInView, DirectiveConsumingInjectable], - schemas: [NO_ERRORS_SCHEMA], - }); const template = ` `; - TestBed.overrideComponent(DirectiveProvidingInjectableInView, {set: {template}}); + TestBed.overrideComponent(DirectiveProvidingInjectableInView, { + set: {template, imports: [forwardRef(() => DirectiveConsumingInjectable)]}, + }); const fixture = TestBed.createComponent(DirectiveProvidingInjectableInView); const comp = fixture.debugElement.children[0].references['consuming']; @@ -1221,27 +1403,29 @@ describe('integration tests', function () { }); it('should support unbounded lookup', () => { - TestBed.configureTestingModule({ - declarations: [ - MyComp, - DirectiveProvidingInjectable, - DirectiveContainingDirectiveConsumingAnInjectable, - DirectiveConsumingInjectableUnbounded, - ], - schemas: [NO_ERRORS_SCHEMA], - }); const template = ` `; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveProvidingInjectable), + forwardRef(() => DirectiveContainingDirectiveConsumingAnInjectable), + ], + }, + }); TestBed.overrideComponent(DirectiveContainingDirectiveConsumingAnInjectable, { set: { template: ` `, + imports: [forwardRef(() => DirectiveConsumingInjectableUnbounded)], }, }); const fixture = TestBed.createComponent(MyComp); @@ -1251,15 +1435,6 @@ describe('integration tests', function () { }); it('should support the event-bus scenario', () => { - TestBed.configureTestingModule({ - declarations: [ - MyComp, - GrandParentProvidingEventBus, - ParentProvidingEventBus, - ChildConsumingEventBus, - ], - schemas: [NO_ERRORS_SCHEMA], - }); const template = ` @@ -1268,7 +1443,18 @@ describe('integration tests', function () { `; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => GrandParentProvidingEventBus), + forwardRef(() => ParentProvidingEventBus), + forwardRef(() => ChildConsumingEventBus), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); const gpComp = fixture.debugElement.children[0]; @@ -1286,17 +1472,23 @@ describe('integration tests', function () { }); it('should instantiate bindings lazily', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveConsumingInjectable, ComponentProvidingLoggingInjectable], - schemas: [NO_ERRORS_SCHEMA], - }); const template = ` `; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveConsumingInjectable), + forwardRef(() => ComponentProvidingLoggingInjectable), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); const providing = fixture.debugElement.children[0].references['providing']; @@ -1311,7 +1503,6 @@ describe('integration tests', function () { describe('corner cases', () => { it('should remove script tags from templates', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = `
    beforeinsideafter
    `; @@ -1334,7 +1525,7 @@ describe('integration tests', function () { }) class SomeComponent {} - TestBed.configureTestingModule({declarations: [MyComp, SomeDirective, SomeComponent]}); + TestBed.configureTestingModule({declarations: [SomeDirective, SomeComponent]}); expect(() => TestBed.createComponent(MyComp)).toThrowError( `Directive ${stringify(SomeDirective)} has no selector, please add it!`, ); @@ -1379,7 +1570,7 @@ describe('integration tests', function () { class SomeComponent3 extends TestDirWithInputs {} TestBed.configureTestingModule({ - declarations: [MyComp, SomeComponent, SomeComponent2, SomeComponent3], + declarations: [SomeComponent, SomeComponent2, SomeComponent3], }); expect(() => TestBed.createComponent(MyComp)).not.toThrowError(); }); @@ -1398,7 +1589,7 @@ describe('integration tests', function () { }) class SomeComponent {} - TestBed.configureTestingModule({declarations: [MyComp, SomeDirective, SomeComponent]}); + TestBed.configureTestingModule({declarations: [SomeDirective, SomeComponent]}); expect(() => TestBed.createComponent(MyComp)).toThrowError( `Directive ${stringify(SomeDirective)} has no selector, please add it!`, ); @@ -1423,7 +1614,7 @@ describe('integration tests', function () { describe('error handling', () => { it('should report a meaningful error when a directive is missing annotation', () => { - TestBed.configureTestingModule({declarations: [MyComp, SomeDirectiveMissingAnnotation]}); + TestBed.configureTestingModule({declarations: [SomeDirectiveMissingAnnotation]}); expect(() => TestBed.createComponent(MyComp)).toThrowError( `Unexpected value '${stringify( @@ -1433,7 +1624,6 @@ describe('integration tests', function () { }); it('should report a meaningful error when a component is missing view annotation', () => { - TestBed.configureTestingModule({declarations: [MyComp, ComponentWithoutView]}); try { TestBed.createComponent(ComponentWithoutView); } catch (e) { @@ -1445,9 +1635,17 @@ describe('integration tests', function () { }); it('should support imperative views', () => { - TestBed.configureTestingModule({declarations: [MyComp, SimpleImperativeViewComponent]}); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => SimpleImperativeViewComponent), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); expect(fixture.nativeElement).toHaveText('hello imp view'); @@ -1455,11 +1653,19 @@ describe('integration tests', function () { it('should support moving embedded views around', () => { TestBed.configureTestingModule({ - declarations: [MyComp, SomeImperativeViewport], providers: [{provide: ANCHOR_ELEMENT, useValue: el('
    ')}], }); const template = '
    hello
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => SomeImperativeViewport), + ], + }, + }); const anchorElement = getTestBed().inject(ANCHOR_ELEMENT); const fixture = TestBed.createComponent(MyComp); @@ -1478,9 +1684,7 @@ describe('integration tests', function () { describe('moving embedded views of projectable nodes in a dynamic component', () => { @Component({ - selector: 'menu-item', template: '', - standalone: false, }) class DynamicMenuItem { @ViewChild('templateRef', {static: true}) templateRef!: TemplateRef; @@ -1488,19 +1692,13 @@ describe('integration tests', function () { } @Component({ - selector: 'test', template: ``, - standalone: false, }) class TestCmp { @ViewChild('menuItemsContainer', {static: true, read: ViewContainerRef}) menuItemsContainer!: ViewContainerRef; } - beforeEach(() => { - TestBed.configureTestingModule({declarations: [TestCmp, DynamicMenuItem]}); - }); - const createElWithContent = (content: string, tagName = 'span') => { const element = document.createElement(tagName); element.textContent = content; @@ -1578,8 +1776,6 @@ describe('integration tests', function () { `{{itemContent}}`, ); - TestBed.configureTestingModule({declarations: [TestCmp, DynamicMenuItem]}); - const fixture = TestBed.createComponent(TestCmp); const menuItemsContainer = fixture.componentInstance.menuItemsContainer; @@ -1649,7 +1845,6 @@ describe('integration tests', function () { describe('Property bindings', () => { it('should throw on bindings to unknown properties', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = '
    '; TestBed.overrideComponent(MyComp, {set: {template}}); @@ -1662,7 +1857,6 @@ describe('integration tests', function () { }); it('should throw on bindings to unknown properties (micro-syntax)', () => { - TestBed.configureTestingModule({imports: [CommonModule], declarations: [MyComp]}); const template = '
    {{item}}
    '; TestBed.overrideComponent(MyComp, {set: {template}}); const spy = spyOn(console, 'error'); @@ -1674,16 +1868,28 @@ describe('integration tests', function () { }); it('should not throw for property binding to a non-existing property when there is a matching directive property', () => { - TestBed.configureTestingModule({declarations: [MyComp, MyDir]}); const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => MyDir)], + }, + }); expect(() => TestBed.createComponent(MyComp)).not.toThrow(); }); it('should not be created when there is a directive with the same property', () => { - TestBed.configureTestingModule({declarations: [MyComp, DirectiveWithTitle]}); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveWithTitle), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.componentInstance.ctxProp.set('TITLE'); @@ -1694,9 +1900,17 @@ describe('integration tests', function () { }); it('should work when a directive uses hostProperty to update the DOM element', () => { - TestBed.configureTestingModule({declarations: [MyComp, DirectiveWithTitleAndHostProperty]}); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveWithTitleAndHostProperty), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.componentInstance.ctxProp.set('TITLE'); @@ -1710,11 +1924,11 @@ describe('integration tests', function () { describe('logging property updates', () => { describe('by default, when provideNgReflectAttributes() is not provided', () => { it('should not reflect properties', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, MyDir], - }); TestBed.overrideComponent(MyComp, { - set: {template: `
    `}, + set: { + template: `
    `, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => MyDir)], + }, }); const fixture = TestBed.createComponent(MyComp); @@ -1726,13 +1940,9 @@ describe('integration tests', function () { }); it('should not reflect property values on template comments', () => { - const fixture = TestBed.configureTestingModule({ - declarations: [MyComp], - }) - .overrideComponent(MyComp, { - set: {template: ``}, - }) - .createComponent(MyComp); + const fixture = TestBed.overrideComponent(MyComp, { + set: {template: ``}, + }).createComponent(MyComp); fixture.componentInstance.ctxBoolProp.set(true); fixture.detectChanges(); @@ -1744,11 +1954,13 @@ describe('integration tests', function () { it('should reflect property values as attributes', () => { TestBed.configureTestingModule({ - declarations: [MyComp, MyDir], providers: [provideNgReflectAttributes()], }); TestBed.overrideComponent(MyComp, { - set: {template: `
    `}, + set: { + template: `
    `, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => MyDir)], + }, }); const fixture = TestBed.createComponent(MyComp); @@ -1761,11 +1973,13 @@ describe('integration tests', function () { it('should reflect property values on unbound inputs', () => { TestBed.configureTestingModule({ - declarations: [MyComp, MyDir], providers: [provideNgReflectAttributes()], }); TestBed.overrideComponent(MyComp, { - set: {template: `
    `}, + set: { + template: `
    `, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => MyDir)], + }, }); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -1777,7 +1991,6 @@ describe('integration tests', function () { it(`should work with prop names containing '$'`, () => { TestBed.configureTestingModule({ - declarations: [ParentCmp, SomeCmpWithInput], providers: [provideNgReflectAttributes()], }); const fixture = TestBed.createComponent(ParentCmp); @@ -1789,7 +2002,6 @@ describe('integration tests', function () { it('should reflect property values on template comments', () => { const fixture = TestBed.configureTestingModule({ - declarations: [MyComp], providers: [provideNgReflectAttributes()], }) .overrideComponent(MyComp, { @@ -1806,7 +2018,6 @@ describe('integration tests', function () { it('should reflect property values on ng-containers', () => { const fixture = TestBed.configureTestingModule({ - declarations: [MyComp], providers: [provideNgReflectAttributes()], }) .overrideComponent(MyComp, { @@ -1823,11 +2034,18 @@ describe('integration tests', function () { it('should reflect property values of multiple directive bound to the same input name', () => { TestBed.configureTestingModule({ - declarations: [MyComp, MyDir, MyDir2], providers: [provideNgReflectAttributes()], }); TestBed.overrideComponent(MyComp, { - set: {template: `
    `}, + set: { + template: `
    `, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => MyDir), + forwardRef(() => MyDir2), + ], + }, }); const fixture = TestBed.createComponent(MyComp); @@ -1841,11 +2059,15 @@ describe('integration tests', function () { it('should indicate when toString() throws', () => { TestBed.configureTestingModule({ - declarations: [MyComp, MyDir], providers: [provideNgReflectAttributes()], }); const template = '
    '; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => MyDir)], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -1854,11 +2076,13 @@ describe('integration tests', function () { it('should not reflect undefined values', () => { TestBed.configureTestingModule({ - declarations: [MyComp, MyDir, MyDir2], providers: [provideNgReflectAttributes()], }); TestBed.overrideComponent(MyComp, { - set: {template: `
    `}, + set: { + template: `
    `, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => MyDir)], + }, }); const fixture = TestBed.createComponent(MyComp); @@ -1875,11 +2099,13 @@ describe('integration tests', function () { it('should not reflect null values', () => { TestBed.configureTestingModule({ - declarations: [MyComp, MyDir, MyDir2], providers: [provideNgReflectAttributes()], }); TestBed.overrideComponent(MyComp, { - set: {template: `
    `}, + set: { + template: `
    `, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => MyDir)], + }, }); const fixture = TestBed.createComponent(MyComp); @@ -1896,11 +2122,13 @@ describe('integration tests', function () { it('should reflect empty strings', () => { TestBed.configureTestingModule({ - declarations: [MyComp, MyDir, MyDir2], providers: [provideNgReflectAttributes()], }); TestBed.overrideComponent(MyComp, { - set: {template: `
    `}, + set: { + template: `
    `, + imports: [CommonModule, forwardRef(() => DynamicViewport), forwardRef(() => MyDir)], + }, }); const fixture = TestBed.createComponent(MyComp); @@ -1912,7 +2140,6 @@ describe('integration tests', function () { it('should not reflect in comment nodes when the value changes to undefined', () => { const fixture = TestBed.configureTestingModule({ - declarations: [MyComp], providers: [provideNgReflectAttributes()], }) .overrideComponent(MyComp, { @@ -1937,7 +2164,6 @@ describe('integration tests', function () { it('should reflect in comment nodes when the value changes to null', () => { const fixture = TestBed.configureTestingModule({ - declarations: [MyComp], providers: [provideNgReflectAttributes()], }) .overrideComponent(MyComp, { @@ -1963,12 +2189,17 @@ describe('integration tests', function () { describe('property decorators', () => { it('should support property decorators', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveWithPropDecorators], - schemas: [NO_ERRORS_SCHEMA], - }); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveWithPropDecorators), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -1977,12 +2208,17 @@ describe('integration tests', function () { }); it('should support host binding decorators', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveWithPropDecorators], - schemas: [NO_ERRORS_SCHEMA], - }); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveWithPropDecorators), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -1995,32 +2231,42 @@ describe('integration tests', function () { }); if (getDOM().supportsDOMEvents) { - it('should support event decorators', fakeAsync(() => { - TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveWithPropDecorators], - schemas: [NO_ERRORS_SCHEMA], - }); + it('should support event decorators', async () => { const template = ``; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveWithPropDecorators), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); - tick(); + await fixture.whenStable(); const emitter = fixture.debugElement.children[0].injector.get(DirectiveWithPropDecorators); emitter.fireEvent('fired !'); - tick(); + await fixture.whenStable(); expect(fixture.componentInstance.ctxProp()).toEqual('called'); - })); + }); it('should support host listener decorators', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, DirectiveWithPropDecorators], - schemas: [NO_ERRORS_SCHEMA], - }); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => DirectiveWithPropDecorators), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -2033,13 +2279,17 @@ describe('integration tests', function () { } it('should support defining views in the component decorator', () => { - TestBed.configureTestingModule({ - declarations: [MyComp, ComponentWithTemplate], - imports: [CommonModule], - schemas: [NO_ERRORS_SCHEMA], - }); const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: { + template, + imports: [ + CommonModule, + forwardRef(() => DynamicViewport), + forwardRef(() => ComponentWithTemplate), + ], + }, + }); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -2049,56 +2299,50 @@ describe('integration tests', function () { }); describe('whitespaces in templates', () => { - it('should not remove whitespaces by default', waitForAsync(() => { + it('should not remove whitespaces by default', () => { @Component({ - selector: 'comp', template: 'foo bar', - standalone: false, }) class MyCmp {} - const f = TestBed.configureTestingModule({declarations: [MyCmp]}).createComponent(MyCmp); + const f = TestBed.createComponent(MyCmp); f.detectChanges(); expect(f.nativeElement.childNodes.length).toBe(2); - })); + }); - it('should not remove whitespaces when explicitly requested not to do so', waitForAsync(() => { + it('should not remove whitespaces when explicitly requested not to do so', () => { @Component({ - selector: 'comp', template: 'foo bar', preserveWhitespaces: true, - standalone: false, }) class MyCmp {} - const f = TestBed.configureTestingModule({declarations: [MyCmp]}).createComponent(MyCmp); + const f = TestBed.createComponent(MyCmp); f.detectChanges(); expect(f.nativeElement.childNodes.length).toBe(3); - })); + }); - it('should remove whitespaces when explicitly requested to do so', waitForAsync(() => { + it('should remove whitespaces when explicitly requested to do so', () => { @Component({ - selector: 'comp', template: 'foo bar', preserveWhitespaces: false, - standalone: false, }) class MyCmp {} - const f = TestBed.configureTestingModule({declarations: [MyCmp]}).createComponent(MyCmp); + const f = TestBed.createComponent(MyCmp); f.detectChanges(); expect(f.nativeElement.childNodes.length).toBe(2); - })); + }); }); describe('orphan components', () => { it('should display correct error message for orphan component if forbidOrphanRendering option is set', () => { @Component({ - template: '...', standalone: false, + template: '...', }) class MainComp {} ɵsetClassDebugInfo(MainComp, { @@ -2108,7 +2352,6 @@ describe('integration tests', function () { forbidOrphanRendering: true, }); - TestBed.configureTestingModule({declarations: [MainComp]}); expect(() => TestBed.createComponent(MainComp)).toThrowError( /^NG0981: Orphan component found\! Trying to render the component MainComp \(at test\.ts:11\) without first loading the NgModule that declares it/, ); @@ -2116,8 +2359,8 @@ describe('integration tests', function () { it('should not throw error for orphan component if forbidOrphanRendering option is not set', () => { @Component({ - template: '...', standalone: false, + template: '...', }) class MainComp {} ɵsetClassDebugInfo(MainComp, { @@ -2126,7 +2369,6 @@ describe('integration tests', function () { lineNumber: 11, }); - TestBed.configureTestingModule({declarations: [MainComp]}); expect(() => TestBed.createComponent(MainComp)).not.toThrow(); }); }); @@ -2134,7 +2376,6 @@ describe('integration tests', function () { if (getDOM().supportsDOMEvents) { describe('svg', () => { it('should support svg elements', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = ''; TestBed.overrideComponent(MyComp, {set: {template}}); const fixture = TestBed.createComponent(MyComp); @@ -2151,7 +2392,6 @@ describe('integration tests', function () { }); it('should support foreignObjects with document fragments', () => { - TestBed.configureTestingModule({declarations: [MyComp]}); const template = '

    Test

    '; TestBed.overrideComponent(MyComp, {set: {template}}); @@ -2169,7 +2409,6 @@ describe('integration tests', function () { describe('attributes', () => { it('should support attributes with namespace', () => { - TestBed.configureTestingModule({declarations: [MyComp, SomeCmp]}); const template = ''; TestBed.overrideComponent(SomeCmp, {set: {template}}); const fixture = TestBed.createComponent(SomeCmp); @@ -2179,7 +2418,6 @@ describe('integration tests', function () { }); it('should support binding to attributes with namespace', () => { - TestBed.configureTestingModule({declarations: [MyComp, SomeCmp]}); const template = ''; TestBed.overrideComponent(SomeCmp, {set: {template}}); const fixture = TestBed.createComponent(SomeCmp); @@ -2206,7 +2444,6 @@ describe('integration tests', function () { @Component({ selector: 'cmp-with-default-interpolation', template: `{{ text }}`, - standalone: false, }) class ComponentWithDefaultInterpolation { text = 'Default Interpolation'; @@ -2223,7 +2460,6 @@ class MyService { @Component({ selector: 'simple-imp-cmp', template: '', - standalone: false, }) class SimpleImperativeViewComponent { done: any; @@ -2236,7 +2472,6 @@ class SimpleImperativeViewComponent { @Directive({ selector: 'dynamic-vp', - standalone: false, }) class DynamicViewport { private injector: Injector; @@ -2270,7 +2505,6 @@ class DynamicViewport { selector: '[my-dir]', inputs: ['dirProp: elprop'], exportAs: 'mydir', - standalone: false, }) class MyDir { dirProp: string; @@ -2283,7 +2517,6 @@ class MyDir { selector: '[my-dir2]', inputs: ['dirProp2: elprop'], exportAs: 'mydir2', - standalone: false, }) class MyDir2 { dirProp2: string; @@ -2295,7 +2528,6 @@ class MyDir2 { @Directive({ selector: '[title]', inputs: ['title'], - standalone: false, }) class DirectiveWithTitle { title: string | undefined; @@ -2305,7 +2537,6 @@ class DirectiveWithTitle { selector: '[title]', inputs: ['title'], host: {'[title]': 'title'}, - standalone: false, }) class DirectiveWithTitleAndHostProperty { title: string | undefined; @@ -2314,7 +2545,6 @@ class DirectiveWithTitleAndHostProperty { @Component({ selector: 'event-cmp', template: '
    ', - standalone: false, }) class EventCmp { noop() {} @@ -2324,10 +2554,10 @@ class EventCmp { selector: 'push-cmp', inputs: ['prop'], host: {'(click)': 'true'}, - changeDetection: ChangeDetectionStrategy.OnPush, template: '{{field}}
    ', - standalone: false, + + imports: [CommonModule, EventCmp], }) class PushCmp { numberOfChecks: number; @@ -2348,9 +2578,7 @@ class PushCmp { @Component({ selector: 'push-cmp-with-ref', inputs: ['prop'], - changeDetection: ChangeDetectionStrategy.OnPush, template: '{{field}}', - standalone: false, }) class PushCmpWithRef { numberOfChecks: number; @@ -2375,9 +2603,7 @@ class PushCmpWithRef { @Component({ selector: 'push-cmp-with-host-event', host: {'(click)': 'ctxCallback($event)'}, - changeDetection: ChangeDetectionStrategy.OnPush, template: '', - standalone: false, }) class PushCmpWithHostEvent { ctxCallback: Function = (_: any) => {}; @@ -2385,9 +2611,9 @@ class PushCmpWithHostEvent { @Component({ selector: 'push-cmp-with-async', - changeDetection: ChangeDetectionStrategy.OnPush, template: '{{field | async}}', - standalone: false, + + imports: [CommonModule], }) class PushCmpWithAsyncPipe { numberOfChecks: number = 0; @@ -2409,8 +2635,8 @@ class PushCmpWithAsyncPipe { @Component({ selector: 'my-comp', template: '', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + + imports: [CommonModule, DynamicViewport], }) class MyComp { readonly ctxProp = signal(undefined); @@ -2440,7 +2666,6 @@ class MyComp { inputs: ['dirProp'], viewProviders: [MyService], template: '{{ctxProp()}}', - standalone: false, }) class ChildComp { ctxProp = signal(undefined); @@ -2454,7 +2679,6 @@ class ChildComp { @Component({ selector: 'child-cmp-no-template', template: '', - standalone: false, }) class ChildCompNoTemplate { ctxProp: string = 'hello'; @@ -2463,7 +2687,6 @@ class ChildCompNoTemplate { @Component({ selector: 'child-cmp-svc', template: '{{ctxProp()}}', - standalone: false, }) class ChildCompUsingService { ctxProp = signal(undefined); @@ -2474,7 +2697,6 @@ class ChildCompUsingService { @Directive({ selector: 'some-directive', - standalone: false, }) class SomeDirective {} @@ -2483,7 +2705,6 @@ class SomeDirectiveMissingAnnotation {} @Component({ selector: 'cmp-with-host', template: '

    Component with an injected host

    ', - standalone: false, }) class CompWithHost { myHost: SomeDirective; @@ -2495,7 +2716,6 @@ class CompWithHost { @Component({ selector: '[child-cmp2]', viewProviders: [MyService], - standalone: false, }) class ChildComp2 { ctxProp: string; @@ -2512,7 +2732,6 @@ class SomeViewportContext { @Directive({ selector: '[some-viewport]', - standalone: false, }) class SomeViewport { constructor( @@ -2526,7 +2745,6 @@ class SomeViewport { @Directive({ selector: '[pollutedContext]', - standalone: false, }) class PollutedContext { constructor( @@ -2540,7 +2758,6 @@ class PollutedContext { @Directive({ selector: '[noContext]', - standalone: false, }) class NoContext { constructor( @@ -2553,7 +2770,6 @@ class NoContext { @Pipe({ name: 'double', - standalone: false, }) class DoublePipe implements PipeTransform, OnDestroy { ngOnDestroy() {} @@ -2565,7 +2781,6 @@ class DoublePipe implements PipeTransform, OnDestroy { @Directive({ selector: '[emitter]', outputs: ['event'], - standalone: false, }) class DirectiveEmittingEvent { msg: string; @@ -2584,14 +2799,12 @@ class DirectiveEmittingEvent { @Directive({ selector: '[update-host-attributes]', host: {'role': 'button'}, - standalone: false, }) class DirectiveUpdatingHostAttributes {} @Directive({ selector: '[update-host-properties]', host: {'[id]': 'id'}, - standalone: false, }) class DirectiveUpdatingHostProperties { id: string; @@ -2604,7 +2817,6 @@ class DirectiveUpdatingHostProperties { @Directive({ selector: '[listener]', host: {'(event)': 'onEvent($event)'}, - standalone: false, }) class DirectiveListeningEvent { msg: string; @@ -2626,7 +2838,6 @@ class DirectiveListeningEvent { '(document:domEvent)': 'onDocumentEvent($event.type)', '(body:domEvent)': 'onBodyEvent($event.type)', }, - standalone: false, }) class DirectiveListeningDomEvent { eventTypes: string[] = []; @@ -2648,7 +2859,6 @@ let globalCounter = 0; @Directive({ selector: '[listenerother]', host: {'(window:domEvent)': 'onEvent($event.type)'}, - standalone: false, }) class DirectiveListeningDomEventOther { eventType: string; @@ -2664,7 +2874,6 @@ class DirectiveListeningDomEventOther { @Directive({ selector: '[listenerprevent]', host: {'(click)': 'onEvent($event)'}, - standalone: false, }) class DirectiveListeningDomEventPrevent { onEvent(event: any) { @@ -2675,7 +2884,6 @@ class DirectiveListeningDomEventPrevent { @Directive({ selector: '[listenernoprevent]', host: {'(click)': 'onEvent($event)'}, - standalone: false, }) class DirectiveListeningDomEventNoPrevent { onEvent(event: any) { @@ -2686,7 +2894,6 @@ class DirectiveListeningDomEventNoPrevent { @Directive({ selector: '[id]', inputs: ['id'], - standalone: false, }) class IdDir { id: string | undefined; @@ -2694,7 +2901,6 @@ class IdDir { @Directive({ selector: '[customEvent]', - standalone: false, }) class EventDir { @Output() customEvent = new EventEmitter(); @@ -2703,7 +2909,6 @@ class EventDir { @Directive({ selector: '[static]', - standalone: false, }) class NeedsAttribute { typeAttribute: string; @@ -2726,13 +2931,11 @@ class PublicApi {} @Directive({ selector: '[public-api]', providers: [{provide: PublicApi, useExisting: PrivateImpl, deps: []}], - standalone: false, }) class PrivateImpl extends PublicApi {} @Directive({ selector: '[needs-public-api]', - standalone: false, }) class NeedsPublicApi { constructor(@Host() api: PublicApi) { @@ -2746,7 +2949,6 @@ class ToolbarContext { @Directive({ selector: '[toolbarpart]', - standalone: false, }) class ToolbarPart { templateRef: TemplateRef; @@ -2758,7 +2960,6 @@ class ToolbarPart { @Directive({ selector: '[toolbarVc]', inputs: ['toolbarVc'], - standalone: false, }) class ToolbarViewContainer { constructor(public vc: ViewContainerRef) {} @@ -2771,7 +2972,8 @@ class ToolbarViewContainer { @Component({ selector: 'toolbar', template: 'TOOLBAR(
    )', - standalone: false, + + imports: [CommonModule, ToolbarViewContainer], }) class ToolbarComponent { @ContentChildren(ToolbarPart) query!: QueryList; @@ -2784,7 +2986,6 @@ class ToolbarComponent { selector: '[two-way]', inputs: ['control'], outputs: ['controlChange'], - standalone: false, }) class DirectiveWithTwoWayBinding { controlChange = new EventEmitter(); @@ -2809,7 +3010,6 @@ function createInjectableWithLogging(inj: Injector) { {provide: InjectableService, useFactory: createInjectableWithLogging, deps: [Injector]}, ], template: '', - standalone: false, }) class ComponentProvidingLoggingInjectable { created: boolean = false; @@ -2818,7 +3018,6 @@ class ComponentProvidingLoggingInjectable { @Directive({ selector: 'directive-providing-injectable', providers: [[InjectableService]], - standalone: false, }) class DirectiveProvidingInjectable {} @@ -2826,7 +3025,6 @@ class DirectiveProvidingInjectable {} selector: 'directive-providing-injectable', viewProviders: [[InjectableService]], template: '', - standalone: false, }) class DirectiveProvidingInjectableInView {} @@ -2835,14 +3033,12 @@ class DirectiveProvidingInjectableInView {} providers: [{provide: InjectableService, useValue: 'host'}], viewProviders: [{provide: InjectableService, useValue: 'view'}], template: '', - standalone: false, }) class DirectiveProvidingInjectableInHostAndView {} @Component({ selector: 'directive-consuming-injectable', template: '', - standalone: false, }) class DirectiveConsumingInjectable { injectable: any; @@ -2854,7 +3050,6 @@ class DirectiveConsumingInjectable { @Component({ selector: 'directive-containing-directive-consuming-an-injectable', - standalone: false, }) class DirectiveContainingDirectiveConsumingAnInjectable { directive: any; @@ -2863,7 +3058,6 @@ class DirectiveContainingDirectiveConsumingAnInjectable { @Component({ selector: 'directive-consuming-injectable-unbounded', template: '', - standalone: false, }) class DirectiveConsumingInjectableUnbounded { injectable: any; @@ -2890,7 +3084,6 @@ class EventBus { @Directive({ selector: 'grand-parent-providing-event-bus', providers: [{provide: EventBus, useValue: new EventBus(null!, 'grandparent')}], - standalone: false, }) class GrandParentProvidingEventBus { bus: EventBus; @@ -2908,8 +3101,8 @@ function createParentBus(peb: EventBus) { selector: 'parent-providing-event-bus', providers: [{provide: EventBus, useFactory: createParentBus, deps: [[EventBus, new SkipSelf()]]}], template: ``, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + + imports: [forwardRef(() => ChildConsumingEventBus)], }) class ParentProvidingEventBus { bus: EventBus; @@ -2923,7 +3116,6 @@ class ParentProvidingEventBus { @Directive({ selector: 'child-consuming-event-bus', - standalone: false, }) class ChildConsumingEventBus { bus: EventBus; @@ -2936,7 +3128,6 @@ class ChildConsumingEventBus { @Directive({ selector: '[someImpvp]', inputs: ['someImpvp'], - standalone: false, }) class SomeImperativeViewport { view: EmbeddedViewRef | null; @@ -2969,26 +3160,22 @@ class SomeImperativeViewport { @Directive({ selector: '[export-dir]', exportAs: 'dir', - standalone: false, }) class ExportDir {} @Directive({ selector: '[multiple-export-as]', exportAs: 'dirX, dirY', - standalone: false, }) export class DirectiveWithMultipleExportAsNames {} @Component({ selector: 'comp', - standalone: false, }) class ComponentWithoutView {} @Directive({ selector: '[no-duplicate]', - standalone: false, }) class DuplicateDir { constructor(elRef: ElementRef) { @@ -2998,7 +3185,6 @@ class DuplicateDir { @Directive({ selector: '[no-duplicate]', - standalone: false, }) class OtherDuplicateDir { constructor(elRef: ElementRef) { @@ -3008,7 +3194,6 @@ class OtherDuplicateDir { @Directive({ selector: 'directive-throwing-error', - standalone: false, }) class DirectiveThrowingAnError { constructor() { @@ -3020,8 +3205,8 @@ class DirectiveThrowingAnError { selector: 'component-with-template', template: `No View Decorator:
    {{ item }}
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + + imports: [CommonModule], }) class ComponentWithTemplate { items = [1, 2, 3]; @@ -3029,7 +3214,6 @@ class ComponentWithTemplate { @Directive({ selector: 'with-prop-decorators', - standalone: false, }) class DirectiveWithPropDecorators { target: any; @@ -3050,8 +3234,6 @@ class DirectiveWithPropDecorators { @Component({ selector: 'some-cmp', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class SomeCmp { value: any; @@ -3060,8 +3242,8 @@ class SomeCmp { @Component({ selector: 'parent-cmp', template: ``, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + + imports: [forwardRef(() => SomeCmpWithInput)], }) export class ParentCmp { name: string = 'hello'; @@ -3070,8 +3252,6 @@ export class ParentCmp { @Component({ selector: 'cmp', template: '', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class SomeCmpWithInput { @Input() test$: any; diff --git a/packages/core/test/linker/ng_container_integration_spec.ts b/packages/core/test/linker/ng_container_integration_spec.ts index 249a4cd08440..83fe0d84e233 100644 --- a/packages/core/test/linker/ng_container_integration_spec.ts +++ b/packages/core/test/linker/ng_container_integration_spec.ts @@ -9,26 +9,11 @@ // below. This would normally be done inside the application `polyfills.ts` file. import '@angular/localize/init'; -import { - AfterContentInit, - AfterViewInit, - Component, - ContentChildren, - Directive, - Input, - QueryList, - ViewChildren, -} from '../../src/core'; -import {TestBed} from '../../testing'; import {expect} from '@angular/private/testing/matchers'; +import {AfterViewInit, Component, Directive, Input, QueryList, ViewChildren} from '../../src/core'; +import {TestBed} from '../../testing'; describe('', function () { - beforeEach(() => { - TestBed.configureTestingModule({ - declarations: [MyComp, NeedsContentChildren, NeedsViewChildren, TextDirective, Simple], - }); - }); - it('should support the "i18n" attribute', () => { const template = 'foo'; TestBed.overrideComponent(MyComp, {set: {template}}); @@ -42,7 +27,7 @@ describe('', function () { it('should work with static content projection', () => { const template = `

    1

    2

    `; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, {set: {template, imports: [Simple]}}); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -53,7 +38,7 @@ describe('', function () { it('should support injecting the container from children', () => { const template = `

    `; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, {set: {template, imports: [TextDirective]}}); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -65,7 +50,9 @@ describe('', function () { it('should contain all child directives in a (view dom)', () => { const template = ''; - TestBed.overrideComponent(MyComp, {set: {template}}); + TestBed.overrideComponent(MyComp, { + set: {template, imports: [NeedsViewChildren, TextDirective]}, + }); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -79,30 +66,15 @@ describe('', function () { @Directive({ selector: '[text]', - standalone: false, }) class TextDirective { @Input() public text: string | null = null; } -@Component({ - selector: 'needs-content-children', - template: '', - standalone: false, -}) -class NeedsContentChildren implements AfterContentInit { - @ContentChildren(TextDirective) textDirChildren!: QueryList; - numberOfChildrenAfterContentInit: number | undefined; - - ngAfterContentInit() { - this.numberOfChildrenAfterContentInit = this.textDirChildren.length; - } -} - @Component({ selector: 'needs-view-children', template: '
    ', - standalone: false, + imports: [TextDirective], }) class NeedsViewChildren implements AfterViewInit { @ViewChildren(TextDirective) textDirChildren!: QueryList; @@ -116,14 +88,11 @@ class NeedsViewChildren implements AfterViewInit { @Component({ selector: 'simple', template: 'SIMPLE()', - standalone: false, }) class Simple {} @Component({ - selector: 'my-comp', template: '', - standalone: false, }) class MyComp { ctxBoolProp: boolean = false; diff --git a/packages/core/test/linker/ng_module_integration_spec.ts b/packages/core/test/linker/ng_module_integration_spec.ts index 1d62366ced5e..1ec7048ab1c3 100644 --- a/packages/core/test/linker/ng_module_integration_spec.ts +++ b/packages/core/test/linker/ng_module_integration_spec.ts @@ -31,7 +31,7 @@ import { import {ɵɵdefineInjectable} from '../../src/di/interface/defs'; import {NgModuleType} from '../../src/render3'; import {getNgModuleDef} from '../../src/render3/def_getters'; -import {ComponentFixture, inject, TestBed} from '../../testing'; +import {ComponentFixture, TestBed} from '../../testing'; import {ERROR_DETAILS_PAGE_BASE_URL} from '../../src/error_details_base_url'; import {InternalNgModuleRef, NgModuleFactory} from '../../src/linker/ng_module_factory'; @@ -113,10 +113,10 @@ describe('NgModule', () => { let compiler: Compiler; let injector: Injector; - beforeEach(inject([Compiler, Injector], (_compiler: Compiler, _injector: Injector) => { - compiler = _compiler; - injector = _injector; - })); + beforeEach(() => { + compiler = TestBed.inject(Compiler); + injector = TestBed.inject(Injector); + }); function createModuleFactory(moduleType: Type): NgModuleFactory { return compiler.compileModuleSync(moduleType); @@ -385,7 +385,6 @@ describe('NgModule', () => { it('should be supported in nested components', () => { @Component({ - selector: 'parent', template: '', standalone: false, }) diff --git a/packages/core/test/linker/projection_integration_spec.ts b/packages/core/test/linker/projection_integration_spec.ts index 054e4cbef0ae..8d46551be419 100644 --- a/packages/core/test/linker/projection_integration_spec.ts +++ b/packages/core/test/linker/projection_integration_spec.ts @@ -6,12 +6,11 @@ * found in the LICENSE file at https://angular.dev/license */ -import {ɵgetDOM as getDOM} from '@angular/common'; +import {ɵgetDOM as getDOM, CommonModule} from '@angular/common'; import {By} from '@angular/platform-browser'; import {isNode} from '@angular/private/testing'; import {expect} from '@angular/private/testing/matchers'; import { - ChangeDetectionStrategy, Component, ComponentRef, createComponent, @@ -22,15 +21,17 @@ import { Input, OnInit, reflectComponentType, + signal, TemplateRef, ViewChild, ViewContainerRef, ViewEncapsulation, + forwardRef, } from '../../src/core'; import {ComponentFixture, TestBed} from '../../testing'; describe('projection', () => { - beforeEach(() => TestBed.configureTestingModule({declarations: [MainComp, OtherComp, Simple]})); + beforeEach(() => TestBed.configureTestingModule({})); it('should support simple components', () => { const template = '
    A
    '; @@ -87,21 +88,29 @@ describe('projection', () => { }); it('should not show the light dom even if there is no content tag', () => { - TestBed.configureTestingModule({declarations: [Empty]}); - TestBed.overrideComponent(MainComp, {set: {template: 'A'}}); + TestBed.overrideComponent(MainComp, { + set: { + template: 'A', + imports: [forwardRef(() => OtherComp), forwardRef(() => Simple), forwardRef(() => Empty)], + }, + }); const main = TestBed.createComponent(MainComp); expect(main.nativeElement).toHaveText(''); }); it('should project a single class-based tag', () => { - TestBed.configureTestingModule({declarations: [SingleContentTagComponent]}); TestBed.overrideComponent(MainComp, { set: { template: '' + '
    I AM PROJECTED
    ' + '
    ', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => SingleContentTagComponent), + ], }, }); const main = TestBed.createComponent(MainComp); @@ -110,7 +119,6 @@ describe('projection', () => { }); it('should support multiple content tags', () => { - TestBed.configureTestingModule({declarations: [MultipleContentTagsComponent]}); TestBed.overrideComponent(MainComp, { set: { template: @@ -119,6 +127,11 @@ describe('projection', () => { '
    C
    ' + '
    A
    ' + '', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => MultipleContentTagsComponent), + ], }, }); const main = TestBed.createComponent(MainComp); @@ -130,11 +143,9 @@ describe('projection', () => { @Component({ selector: 'multiple-content-tags', template: '(, )', - standalone: false, }) class MultipleContentTagsComponent {} - TestBed.configureTestingModule({declarations: [MultipleContentTagsComponent]}); const injector: Injector = TestBed.inject(Injector); expect(reflectComponentType(MultipleContentTagsComponent)?.ngContentSelectors).toEqual([ @@ -152,7 +163,6 @@ describe('projection', () => { }); it('should redistribute only direct children', () => { - TestBed.configureTestingModule({declarations: [MultipleContentTagsComponent]}); TestBed.overrideComponent(MainComp, { set: { template: @@ -160,6 +170,11 @@ describe('projection', () => { '
    B
    A
    ' + '
    C
    ' + '', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => MultipleContentTagsComponent), + ], }, }); const main = TestBed.createComponent(MainComp); @@ -168,9 +183,6 @@ describe('projection', () => { }); it('should redistribute direct child viewcontainers when the light dom changes', () => { - TestBed.configureTestingModule({ - declarations: [MultipleContentTagsComponent, ManualViewportDirective], - }); TestBed.overrideComponent(MainComp, { set: { template: @@ -178,6 +190,12 @@ describe('projection', () => { '
    A1
    ' + '
    B
    ' + '', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => MultipleContentTagsComponent), + forwardRef(() => ManualViewportDirective), + ], }, }); const main = TestBed.createComponent(MainComp); @@ -198,7 +216,6 @@ describe('projection', () => { }); it('should support nested components', () => { - TestBed.configureTestingModule({declarations: [OuterWithIndirectNestedComponent]}); TestBed.overrideComponent(MainComp, { set: { template: @@ -206,6 +223,11 @@ describe('projection', () => { '
    A
    ' + '
    B
    ' + '', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => OuterWithIndirectNestedComponent), + ], }, }); const main = TestBed.createComponent(MainComp); @@ -214,9 +236,6 @@ describe('projection', () => { }); it('should support nesting with content being direct child of a nested component', () => { - TestBed.configureTestingModule({ - declarations: [InnerComponent, InnerInnerComponent, OuterComponent, ManualViewportDirective], - }); TestBed.overrideComponent(MainComp, { set: { template: @@ -225,6 +244,12 @@ describe('projection', () => { '
    B
    ' + '
    C
    ' + '', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => OuterComponent), + forwardRef(() => ManualViewportDirective), + ], }, }); const main = TestBed.createComponent(MainComp); @@ -240,9 +265,6 @@ describe('projection', () => { }); it('should redistribute when the shadow dom changes', () => { - TestBed.configureTestingModule({ - declarations: [ConditionalContentComponent, ManualViewportDirective], - }); TestBed.overrideComponent(MainComp, { set: { template: @@ -251,6 +273,11 @@ describe('projection', () => { '
    B
    ' + '
    C
    ' + '', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => ConditionalContentComponent), + ], }, }); const main = TestBed.createComponent(MainComp); @@ -270,48 +297,44 @@ describe('projection', () => { expect(main.nativeElement).toHaveText('(, BC)'); }); - it('should redistribute non-continuous blocks of nodes when the shadow dom changes', () => { + it('should redistribute non-continuous blocks of nodes when the shadow dom changes', async () => { @Component({ selector: 'child', template: `()`, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + + imports: [CommonModule], }) class Child { @Input() showing!: boolean; } @Component({ - selector: 'app', - template: ` + template: `
    A
    B
    A
    B
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + + imports: [Child], }) class App { - showing = false; + showing = signal(false); } - TestBed.configureTestingModule({declarations: [App, Child]}); const fixture = TestBed.createComponent(App); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.nativeElement).toHaveText('BB()'); - fixture.componentInstance.showing = true; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.componentInstance.showing.set(true); + await fixture.whenStable(); expect(fixture.nativeElement).toHaveText('BB(AA)'); - fixture.componentInstance.showing = false; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.componentInstance.showing.set(false); + await fixture.whenStable(); expect(fixture.nativeElement).toHaveText('BB()'); }); @@ -346,7 +369,6 @@ describe('projection', () => { @Directive({ selector: '[manual]', - standalone: false, }) class ManualViewportDirective { constructor(public templateRef: TemplateRef) { @@ -354,9 +376,6 @@ describe('projection', () => { } } - TestBed.configureTestingModule({ - declarations: [Empty, ProjectDirective, ManualViewportDirective], - }); TestBed.overrideComponent(MainComp, { set: { template: @@ -364,6 +383,13 @@ describe('projection', () => { '
    A
    ' + '' + 'START(
    )END', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => Empty), + forwardRef(() => ProjectDirective), + ManualViewportDirective, + ], }, }); const main = TestBed.createComponent(MainComp); @@ -379,14 +405,17 @@ describe('projection', () => { }); it('should support moving projected light dom around', () => { - TestBed.configureTestingModule({ - declarations: [Empty, ProjectDirective, ManualViewportDirective], - }); TestBed.overrideComponent(MainComp, { set: { template: '
    A
    ' + 'START(
    )END', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => ProjectDirective), + forwardRef(() => ManualViewportDirective), + ], }, }); const main = TestBed.createComponent(MainComp); @@ -404,9 +433,6 @@ describe('projection', () => { }); it('should support moving ng-content around', () => { - TestBed.configureTestingModule({ - declarations: [ConditionalContentComponent, ProjectDirective, ManualViewportDirective], - }); TestBed.overrideComponent(MainComp, { set: { template: @@ -415,6 +441,12 @@ describe('projection', () => { '
    B
    ' + '' + 'START(
    )END', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => ConditionalContentComponent), + forwardRef(() => ProjectDirective), + ], }, }); const main = TestBed.createComponent(MainComp); @@ -440,8 +472,12 @@ describe('projection', () => { // is still important as we are merging proto views independent of // the presence of ng-content elements! it('should still allow to implement a recursive trees', () => { - TestBed.configureTestingModule({declarations: [Tree, ManualViewportDirective]}); - TestBed.overrideComponent(MainComp, {set: {template: ''}}); + TestBed.overrideComponent(MainComp, { + set: { + template: '', + imports: [forwardRef(() => OtherComp), forwardRef(() => Simple), forwardRef(() => Tree)], + }, + }); const main = TestBed.createComponent(MainComp); main.detectChanges(); @@ -458,10 +494,17 @@ describe('projection', () => { // is still important as we are merging proto views independent of // the presence of ng-content elements! it('should still allow to implement a recursive trees via multiple components', () => { - TestBed.configureTestingModule({declarations: [Tree, Tree2, ManualViewportDirective]}); - TestBed.overrideComponent(MainComp, {set: {template: ''}}); + TestBed.overrideComponent(MainComp, { + set: { + template: '', + imports: [forwardRef(() => OtherComp), forwardRef(() => Simple), forwardRef(() => Tree)], + }, + }); TestBed.overrideComponent(Tree, { - set: {template: 'TREE({{depth}}:)'}, + set: { + template: 'TREE({{depth}}:)', + imports: [forwardRef(() => ManualViewportDirective), forwardRef(() => Tree2)], + }, }); const main = TestBed.createComponent(MainComp); @@ -488,12 +531,17 @@ describe('projection', () => { if (!isNode) { it('should support shadow dom content projection and isolate styles per component', () => { - TestBed.configureTestingModule({declarations: [SimpleShadowDom1, SimpleShadowDom2]}); TestBed.overrideComponent(MainComp, { set: { template: '
    A
    ' + '
    B
    ', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => SimpleShadowDom1), + forwardRef(() => SimpleShadowDom2), + ], }, }); const main = TestBed.createComponent(MainComp); @@ -507,7 +555,6 @@ describe('projection', () => { if (getDOM().supportsDOMEvents) { it('should support non emulated styles', () => { - TestBed.configureTestingModule({declarations: [OtherComp]}); TestBed.overrideComponent(MainComp, { set: { template: '
    ', @@ -527,7 +574,6 @@ describe('projection', () => { }); it('should support emulated style encapsulation', () => { - TestBed.configureTestingModule({declarations: [OtherComp]}); TestBed.overrideComponent(MainComp, { set: { template: '
    ', @@ -547,11 +593,15 @@ describe('projection', () => { } it('should support nested conditionals that contain ng-contents', () => { - TestBed.configureTestingModule({ - declarations: [ConditionalTextComponent, ManualViewportDirective], - }); TestBed.overrideComponent(MainComp, { - set: {template: `a`}, + set: { + template: `a`, + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => ConditionalTextComponent), + ], + }, }); const main = TestBed.createComponent(MainComp); @@ -567,8 +617,17 @@ describe('projection', () => { }); it('should allow to switch the order of nested components via ng-content', () => { - TestBed.configureTestingModule({declarations: [CmpA, CmpB, CmpD, CmpC]}); - TestBed.overrideComponent(MainComp, {set: {template: ``}}); + TestBed.overrideComponent(MainComp, { + set: { + template: ``, + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => CmpA), + forwardRef(() => CmpB), + ], + }, + }); const main = TestBed.createComponent(MainComp); main.detectChanges(); @@ -578,8 +637,17 @@ describe('projection', () => { }); it('should create nested components in the right order', () => { - TestBed.configureTestingModule({declarations: [CmpA1, CmpA2, CmpB11, CmpB12, CmpB21, CmpB22]}); - TestBed.overrideComponent(MainComp, {set: {template: ``}}); + TestBed.overrideComponent(MainComp, { + set: { + template: ``, + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => CmpA1), + forwardRef(() => CmpA2), + ], + }, + }); const main = TestBed.createComponent(MainComp); main.detectChanges(); @@ -593,15 +661,20 @@ describe('projection', () => { @Component({ selector: 'content-in-template', template: `()`, - standalone: false, + + imports: [forwardRef(() => ManualViewportDirective)], }) class ContentInATemplateComponent {} - TestBed.configureTestingModule({ - declarations: [ContentInATemplateComponent, ManualViewportDirective], - }); TestBed.overrideComponent(MainComp, { - set: {template: `
    A
    `}, + set: { + template: `
    A
    `, + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + ContentInATemplateComponent, + ], + }, }); const main = TestBed.createComponent(MainComp); @@ -620,16 +693,19 @@ describe('projection', () => { template: `()`, - standalone: false, + + imports: [forwardRef(() => ManualViewportDirective)], }) class ContentInMainAndTemplateComponent {} - TestBed.configureTestingModule({ - declarations: [ContentInMainAndTemplateComponent, ManualViewportDirective], - }); TestBed.overrideComponent(MainComp, { set: { template: `
    A
    B
    `, + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + ContentInMainAndTemplateComponent, + ], }, }); @@ -644,9 +720,6 @@ describe('projection', () => { }); it('should project view containers', () => { - TestBed.configureTestingModule({ - declarations: [SingleContentTagComponent, ManualViewportDirective], - }); TestBed.overrideComponent(MainComp, { set: { template: @@ -655,6 +728,12 @@ describe('projection', () => { 'B' + '
    C
    ' + '', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => SingleContentTagComponent), + forwardRef(() => ManualViewportDirective), + ], }, }); @@ -671,9 +750,6 @@ describe('projection', () => { }); it('should project filled view containers into a view container', () => { - TestBed.configureTestingModule({ - declarations: [ConditionalContentComponent, ManualViewportDirective], - }); TestBed.overrideComponent(MainComp, { set: { template: @@ -683,6 +759,12 @@ describe('projection', () => { '
    C
    ' + '
    D
    ' + '', + imports: [ + forwardRef(() => OtherComp), + forwardRef(() => Simple), + forwardRef(() => ConditionalContentComponent), + forwardRef(() => ManualViewportDirective), + ], }, }); const main = TestBed.createComponent(MainComp); @@ -717,18 +799,14 @@ describe('projection', () => { describe('projectable nodes', () => { @Component({ - selector: 'test', template: '', - standalone: false, }) class TestComponent { constructor(public vcr: ViewContainerRef) {} } @Component({ - selector: 'with-content', template: '', - standalone: false, }) class WithContentCmpt { @ViewChild('ref', {static: true}) directiveRef: any; @@ -737,13 +815,11 @@ describe('projection', () => { @Component({ selector: 're-project', template: '', - standalone: false, }) class ReProjectCmpt {} @Directive({ selector: '[insert]', - standalone: false, }) class InsertTplRef implements OnInit { constructor( @@ -759,7 +835,6 @@ describe('projection', () => { @Directive({ selector: '[delayedInsert]', exportAs: 'delayedInsert', - standalone: false, }) class DelayedInsertTplRef { constructor( @@ -779,17 +854,12 @@ describe('projection', () => { function createCmptInstance( tpl: string, projectableNodes: any[][], + components: any[] = [], ): ComponentRef { - TestBed.configureTestingModule({ - declarations: [ - WithContentCmpt, - InsertTplRef, - DelayedInsertTplRef, - ReProjectCmpt, - TestComponent, - ], - }); TestBed.overrideTemplate(WithContentCmpt, tpl); + if (components.length > 0) { + TestBed.overrideComponent(WithContentCmpt, {add: {imports: components}}); + } fixture = TestBed.createComponent(TestComponent); const vcr = fixture.componentInstance.vcr; @@ -841,6 +911,7 @@ describe('projection', () => { const cmptRef = createCmptInstance( 'A()C', [[document.createTextNode('B')]], + [InsertTplRef], ); expect(cmptRef.location.nativeElement).toHaveText('A(B)C'); }); @@ -849,6 +920,7 @@ describe('projection', () => { const cmptRef = createCmptInstance( 'A([])C', [[document.createTextNode('B')]], + [DelayedInsertTplRef], ); expect(cmptRef.location.nativeElement).toHaveText('A()C'); @@ -876,7 +948,8 @@ describe('projection', () => { @Component({ selector: 'main', template: '', - standalone: false, + + imports: [forwardRef(() => OtherComp), forwardRef(() => Simple)], }) class MainComp { text: string = ''; @@ -885,7 +958,6 @@ class MainComp { @Component({ selector: 'other', template: '', - standalone: false, }) class OtherComp { text: string = ''; @@ -895,7 +967,6 @@ class OtherComp { selector: 'simple', inputs: ['stringProp'], template: 'SIMPLE()', - standalone: false, }) class Simple { stringProp: string = ''; @@ -906,7 +977,6 @@ class Simple { template: 'SIMPLE1()', encapsulation: ViewEncapsulation.ShadowDom, styles: ['div {color: red}'], - standalone: false, }) class SimpleShadowDom1 {} @@ -915,34 +985,29 @@ class SimpleShadowDom1 {} template: 'SIMPLE2()', encapsulation: ViewEncapsulation.ShadowDom, styles: ['div {color: blue}'], - standalone: false, }) class SimpleShadowDom2 {} @Component({ selector: 'empty', template: '', - standalone: false, }) class Empty {} @Component({ selector: 'multiple-content-tags', template: '(, )', - standalone: false, }) class MultipleContentTagsComponent {} @Component({ selector: 'single-content-tag', template: '', - standalone: false, }) class SingleContentTagComponent {} @Directive({ selector: '[manual]', - standalone: false, }) class ManualViewportDirective { constructor( @@ -959,7 +1024,6 @@ class ManualViewportDirective { @Directive({ selector: '[project]', - standalone: false, }) class ProjectDirective { constructor(public vc: ViewContainerRef) {} @@ -974,7 +1038,8 @@ class ProjectDirective { @Component({ selector: 'outer-with-indirect-nested', template: 'OUTER(
    )', - standalone: false, + + imports: [Simple], }) class OuterWithIndirectNestedComponent {} @@ -982,7 +1047,8 @@ class OuterWithIndirectNestedComponent {} selector: 'outer', template: 'OUTER()', - standalone: false, + + imports: [forwardRef(() => InnerComponent)], }) class OuterComponent {} @@ -990,14 +1056,14 @@ class OuterComponent {} selector: 'inner', template: 'INNER()', - standalone: false, + + imports: [forwardRef(() => InnerInnerComponent)], }) class InnerComponent {} @Component({ selector: 'innerinner', template: 'INNERINNER(,)', - standalone: false, }) class InnerInnerComponent {} @@ -1005,7 +1071,8 @@ class InnerInnerComponent {} selector: 'conditional-content', template: '
    (
    , )
    ', - standalone: false, + + imports: [ManualViewportDirective], }) class ConditionalContentComponent {} @@ -1013,14 +1080,16 @@ class ConditionalContentComponent {} selector: 'conditional-text', template: 'MAIN(FIRST(SECOND()))', - standalone: false, + + imports: [ManualViewportDirective], }) class ConditionalTextComponent {} @Component({ selector: 'tab', template: '
    TAB()
    ', - standalone: false, + + imports: [ManualViewportDirective], }) class Tab {} @@ -1028,7 +1097,8 @@ class Tab {} selector: 'tree2', inputs: ['depth'], template: 'TREE2({{depth}}:)', - standalone: false, + + imports: [ManualViewportDirective, forwardRef(() => Tree)], }) class Tree2 { depth = 0; @@ -1038,7 +1108,8 @@ class Tree2 { selector: 'tree', inputs: ['depth'], template: 'TREE({{depth}}:)', - standalone: false, + + imports: [ManualViewportDirective], }) class Tree { depth = 0; @@ -1047,7 +1118,6 @@ class Tree { @Component({ selector: 'cmp-d', template: `{{ tagName }}`, - standalone: false, }) class CmpD { tagName: string; @@ -1059,7 +1129,6 @@ class CmpD { @Component({ selector: 'cmp-c', template: `{{ tagName }}`, - standalone: false, }) class CmpC { tagName: string; @@ -1071,55 +1140,55 @@ class CmpC { @Component({ selector: 'cmp-b', template: ``, - standalone: false, + + imports: [CmpD], }) class CmpB {} @Component({ selector: 'cmp-a', template: ``, - standalone: false, + + imports: [CmpC], }) class CmpA {} @Component({ selector: 'cmp-b11', template: `{{ 'b11' }}`, - standalone: false, }) class CmpB11 {} @Component({ selector: 'cmp-b12', template: `{{ 'b12' }}`, - standalone: false, }) class CmpB12 {} @Component({ selector: 'cmp-b21', template: `{{ 'b21' }}`, - standalone: false, }) class CmpB21 {} @Component({ selector: 'cmp-b22', template: `{{ 'b22' }}`, - standalone: false, }) class CmpB22 {} @Component({ selector: 'cmp-a1', template: `{{ 'a1' }}`, - standalone: false, + + imports: [CmpB11, CmpB12], }) class CmpA1 {} @Component({ selector: 'cmp-a2', template: `{{ 'a2' }}`, - standalone: false, + + imports: [CmpB21, CmpB22], }) class CmpA2 {} diff --git a/packages/core/test/linker/query_integration_spec.ts b/packages/core/test/linker/query_integration_spec.ts index e44fe2ad655c..f59175880327 100644 --- a/packages/core/test/linker/query_integration_spec.ts +++ b/packages/core/test/linker/query_integration_spec.ts @@ -6,6 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ +import {CommonModule} from '@angular/common'; import {expect} from '@angular/private/testing/matchers'; import {Subject} from 'rxjs'; import { @@ -20,6 +21,7 @@ import { ContentChildren, Directive, ElementRef, + forwardRef, provideZoneChangeDetection, QueryList, TemplateRef, @@ -28,7 +30,7 @@ import { ViewChildren, ViewContainerRef, } from '../../src/core'; -import {ComponentFixture, TestBed, waitForAsync} from '../../testing'; +import {ComponentFixture, TestBed} from '../../testing'; import {stringify} from '../../src/util/stringify'; @@ -36,40 +38,6 @@ describe('Query API', () => { beforeEach(() => TestBed.configureTestingModule({ providers: [provideZoneChangeDetection()], - declarations: [ - MyComp0, - NeedsQuery, - NeedsQueryDesc, - NeedsQueryByLabel, - NeedsQueryByTwoLabels, - NeedsQueryAndProject, - NeedsViewQuery, - NeedsViewQueryIf, - NeedsViewQueryNestedIf, - NeedsViewQueryOrder, - NeedsViewQueryByLabel, - NeedsViewQueryOrderWithParent, - NeedsContentChildren, - NeedsViewChildren, - NeedsViewChild, - NeedsStaticContentAndViewChild, - NeedsContentChild, - DirectiveNeedsContentChild, - NeedsTpl, - NeedsNamedTpl, - TextDirective, - InertDirective, - NeedsFourQueries, - NeedsContentChildrenWithRead, - NeedsContentChildWithRead, - NeedsViewChildrenWithRead, - NeedsViewChildWithRead, - NeedsContentChildrenShallow, - NeedsContentChildTemplateRef, - NeedsContentChildTemplateRefApp, - NeedsViewContainerWithRead, - ManualProjecting, - ], }), ); @@ -277,9 +245,10 @@ describe('Query API', () => { }); it('should throw with descriptive error when query selectors are not present', () => { - TestBed.configureTestingModule({declarations: [MyCompBroken0, HasNullQueryCondition]}); const template = ''; - TestBed.overrideComponent(MyCompBroken0, {set: {template}}); + TestBed.overrideComponent(MyCompBroken0, { + set: {template, imports: [forwardRef(() => HasNullQueryCondition)]}, + }); expect(() => TestBed.createComponent(MyCompBroken0)).toThrowError( `Can't construct a query for the property "errorTrigger" of "${stringify( HasNullQueryCondition, @@ -431,7 +400,7 @@ describe('Query API', () => { }); describe('changes', () => { - it('should notify query on change', waitForAsync(() => { + it('should notify query on change', async () => { const template = '' + '
    ' + @@ -441,16 +410,19 @@ describe('Query API', () => { const q = view.debugElement.children[0].references!['q']; + const {promise, resolve} = Promise.withResolvers(); q.query.changes.subscribe({ next: () => { expect(q.query.first.text).toEqual('1'); expect(q.query.last.text).toEqual('2'); + resolve(); }, }); view.componentInstance.shouldShow = true; - view.detectChanges(); - })); + await view.detectChanges(); + await promise; + }); it('should correctly clean-up when destroyed together with the directives it is querying', () => { const template = '
    '; @@ -737,17 +709,17 @@ describe('Query API', () => { @Component({ selector: 'auto-projecting', template: '
    ', - standalone: false, + + imports: [CommonModule], }) class AutoProjecting { @ContentChild(TemplateRef) content!: TemplateRef; @ContentChildren(TextDirective) query!: QueryList; } - TestBed.configureTestingModule({declarations: [AutoProjecting]}); const template = '
    '; - const view = createTestCmpAndDetectChanges(MyComp0, template); + const view = createTestCmpAndDetectChanges(MyComp0, template, [AutoProjecting]); const q = view.debugElement.children[0].references!['q']; expect(q.query.length).toBe(1); @@ -759,7 +731,6 @@ describe('Query API', () => { selector: '[text]', inputs: ['text'], exportAs: 'textDir', - standalone: false, }) class TextDirective { text: string | undefined; @@ -768,7 +739,6 @@ class TextDirective { @Component({ selector: 'needs-content-children', template: '', - standalone: false, }) class NeedsContentChildren implements AfterContentInit { @ContentChildren(TextDirective) textDirChildren!: QueryList; @@ -782,7 +752,8 @@ class NeedsContentChildren implements AfterContentInit { @Component({ selector: 'needs-view-children', template: '
    ', - standalone: false, + + imports: [TextDirective], }) class NeedsViewChildren implements AfterViewInit { @ViewChildren(TextDirective) textDirChildren!: QueryList; @@ -796,7 +767,6 @@ class NeedsViewChildren implements AfterViewInit { @Component({ selector: 'needs-content-child', template: '', - standalone: false, }) class NeedsContentChild implements AfterContentInit, AfterContentChecked { private _child: TextDirective | undefined; @@ -823,7 +793,6 @@ class NeedsContentChild implements AfterContentInit, AfterContentChecked { @Directive({ selector: '[directive-needs-content-child]', - standalone: false, }) class DirectiveNeedsContentChild { @ContentChild(TextDirective) child!: TextDirective; @@ -832,7 +801,8 @@ class DirectiveNeedsContentChild { @Component({ selector: 'needs-view-child', template: `
    `, - standalone: false, + + imports: [CommonModule, TextDirective], changeDetection: ChangeDetectionStrategy.Eager, }) class NeedsViewChild implements AfterViewInit, AfterViewChecked { @@ -861,21 +831,32 @@ class NeedsViewChild implements AfterViewInit, AfterViewChecked { } } -function createTestCmp(type: Type, template: string): ComponentFixture { - const view = TestBed.overrideComponent(type, {set: {template}}).createComponent(type); - return view; +function createTestCmp( + type: Type, + template: string, + components: any[] = [], +): ComponentFixture { + TestBed.overrideComponent(type, {set: {template}}); + if (components.length > 0) { + TestBed.overrideComponent(type, {add: {imports: components}}); + } + return TestBed.createComponent(type); } -function createTestCmpAndDetectChanges(type: Type, template: string): ComponentFixture { - const view = createTestCmp(type, template); +function createTestCmpAndDetectChanges( + type: Type, + template: string, + components: any[] = [], +): ComponentFixture { + const view = createTestCmp(type, template, components); view.detectChanges(); return view; } @Component({ - selector: 'needs-static-content-view-child', template: `
    `, - standalone: false, + + imports: [TextDirective], }) class NeedsStaticContentAndViewChild { @ContentChild(TextDirective, {static: true}) contentChild!: TextDirective; @@ -884,14 +865,14 @@ class NeedsStaticContentAndViewChild { @Directive({ selector: '[dir]', - standalone: false, }) class InertDirective {} @Component({ selector: 'needs-query', template: '
    {{dir.text}}|', - standalone: false, + + imports: [CommonModule, TextDirective, InertDirective], changeDetection: ChangeDetectionStrategy.Eager, }) class NeedsQuery { @@ -901,7 +882,6 @@ class NeedsQuery { @Component({ selector: 'needs-four-queries', template: '', - standalone: false, }) class NeedsFourQueries { @ContentChild(TextDirective) query1!: TextDirective; @@ -913,7 +893,8 @@ class NeedsFourQueries { @Component({ selector: 'needs-query-desc', template: '
    {{dir.text}}|
    ', - standalone: false, + + imports: [CommonModule, InertDirective], }) class NeedsQueryDesc { @ContentChildren(TextDirective, {descendants: true}) query!: QueryList; @@ -922,7 +903,6 @@ class NeedsQueryDesc { @Component({ selector: 'needs-query-by-ref-binding', template: '', - standalone: false, }) class NeedsQueryByLabel { @ContentChildren('textLabel', {descendants: true}) query!: QueryList; @@ -931,7 +911,6 @@ class NeedsQueryByLabel { @Component({ selector: 'needs-view-query-by-ref-binding', template: '
    text
    ', - standalone: false, }) class NeedsViewQueryByLabel { @ViewChildren('textLabel') query!: QueryList; @@ -940,7 +919,6 @@ class NeedsViewQueryByLabel { @Component({ selector: 'needs-query-by-ref-bindings', template: '', - standalone: false, }) class NeedsQueryByTwoLabels { @ContentChildren('textLabel1,textLabel2', {descendants: true}) query!: QueryList; @@ -949,7 +927,8 @@ class NeedsQueryByTwoLabels { @Component({ selector: 'needs-query-and-project', template: '
    {{dir.text}}|
    ', - standalone: false, + + imports: [CommonModule, InertDirective], }) class NeedsQueryAndProject { @ContentChildren(TextDirective) query!: QueryList; @@ -958,8 +937,8 @@ class NeedsQueryAndProject { @Component({ selector: 'needs-view-query', template: '
    ', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + + imports: [TextDirective], }) class NeedsViewQuery { @ViewChildren(TextDirective) query!: QueryList; @@ -968,7 +947,8 @@ class NeedsViewQuery { @Component({ selector: 'needs-view-query-if', template: '
    ', - standalone: false, + + imports: [CommonModule, TextDirective], changeDetection: ChangeDetectionStrategy.Eager, }) class NeedsViewQueryIf { @@ -979,8 +959,8 @@ class NeedsViewQueryIf { @Component({ selector: 'needs-view-query-nested-if', template: '
    ', - changeDetection: ChangeDetectionStrategy.Eager, - standalone: false, + + imports: [CommonModule, TextDirective, InertDirective], }) class NeedsViewQueryNestedIf { show: boolean = true; @@ -993,7 +973,8 @@ class NeedsViewQueryNestedIf { '
    ' + '
    ' + '
    ', - standalone: false, + + imports: [CommonModule, TextDirective], changeDetection: ChangeDetectionStrategy.Eager, }) class NeedsViewQueryOrder { @@ -1007,7 +988,8 @@ class NeedsViewQueryOrder { '
    ' + '
    ' + '
    ', - standalone: false, + + imports: [CommonModule, TextDirective, InertDirective], changeDetection: ChangeDetectionStrategy.Eager, }) class NeedsViewQueryOrderWithParent { @@ -1018,7 +1000,6 @@ class NeedsViewQueryOrderWithParent { @Component({ selector: 'needs-tpl', template: '
    shadow
    ', - standalone: false, }) class NeedsTpl { @ViewChildren(TemplateRef) viewQuery!: QueryList>; @@ -1029,8 +1010,6 @@ class NeedsTpl { @Component({ selector: 'needs-named-tpl', template: '
    shadow
    ', - changeDetection: ChangeDetectionStrategy.Eager, - standalone: false, }) class NeedsNamedTpl { @ViewChild('tpl', {static: true}) viewTpl!: TemplateRef; @@ -1039,10 +1018,7 @@ class NeedsNamedTpl { } @Component({ - selector: 'needs-content-children-read', template: '', - changeDetection: ChangeDetectionStrategy.Eager, - standalone: false, }) class NeedsContentChildrenWithRead { @ContentChildren('q', {read: TextDirective}) textDirChildren!: QueryList; @@ -1052,8 +1028,6 @@ class NeedsContentChildrenWithRead { @Component({ selector: 'needs-content-child-read', template: '', - changeDetection: ChangeDetectionStrategy.Eager, - standalone: false, }) class NeedsContentChildWithRead { @ContentChild('q', {read: TextDirective}) textDirChild!: TextDirective; @@ -1063,8 +1037,6 @@ class NeedsContentChildWithRead { @Component({ selector: 'needs-content-children-shallow', template: '', - changeDetection: ChangeDetectionStrategy.Eager, - standalone: false, }) class NeedsContentChildrenShallow { @ContentChildren('q', {descendants: false}) children!: QueryList; @@ -1073,8 +1045,8 @@ class NeedsContentChildrenShallow { @Component({ selector: 'needs-content-child-template-ref', template: '
    ', - changeDetection: ChangeDetectionStrategy.Eager, - standalone: false, + + imports: [CommonModule], }) class NeedsContentChildTemplateRef { @ContentChild(TemplateRef, {static: true}) templateRef!: TemplateRef; @@ -1086,16 +1058,16 @@ class NeedsContentChildTemplateRef { '' + 'OUTERINNER' + '', - changeDetection: ChangeDetectionStrategy.Eager, - standalone: false, + + imports: [NeedsContentChildTemplateRef], }) class NeedsContentChildTemplateRefApp {} @Component({ selector: 'needs-view-children-read', template: '
    ', - changeDetection: ChangeDetectionStrategy.Eager, - standalone: false, + + imports: [TextDirective], }) class NeedsViewChildrenWithRead { @ViewChildren('q,w', {read: TextDirective}) textDirChildren!: QueryList; @@ -1105,8 +1077,8 @@ class NeedsViewChildrenWithRead { @Component({ selector: 'needs-view-child-read', template: '
    ', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + + imports: [TextDirective], }) class NeedsViewChildWithRead { @ViewChild('q', {read: TextDirective}) textDirChild!: TextDirective; @@ -1116,8 +1088,6 @@ class NeedsViewChildWithRead { @Component({ selector: 'needs-viewcontainer-read', template: '
    ', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NeedsViewContainerWithRead { @ViewChild('q', {read: ViewContainerRef}) vc!: ViewContainerRef; @@ -1132,18 +1102,46 @@ class NeedsViewContainerWithRead { @Component({ selector: 'has-null-query-condition', template: '
    ', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class HasNullQueryCondition { @ContentChildren(null!) errorTrigger: any; } @Component({ - selector: 'my-comp', template: '', - standalone: false, changeDetection: ChangeDetectionStrategy.Eager, + + imports: [ + CommonModule, + TextDirective, + NeedsContentChildren, + NeedsViewChildren, + NeedsContentChild, + DirectiveNeedsContentChild, + NeedsViewChild, + InertDirective, + NeedsQuery, + NeedsFourQueries, + NeedsQueryDesc, + NeedsQueryByLabel, + NeedsViewQueryByLabel, + NeedsQueryByTwoLabels, + NeedsQueryAndProject, + NeedsViewQuery, + NeedsViewQueryIf, + NeedsViewQueryNestedIf, + NeedsViewQueryOrder, + NeedsViewQueryOrderWithParent, + NeedsTpl, + NeedsNamedTpl, + NeedsContentChildWithRead, + NeedsContentChildrenShallow, + NeedsContentChildTemplateRefApp, + NeedsViewChildrenWithRead, + NeedsViewChildWithRead, + NeedsViewContainerWithRead, + forwardRef(() => ManualProjecting), + ], }) class MyComp0 { shouldShow: boolean = false; @@ -1151,17 +1149,13 @@ class MyComp0 { } @Component({ - selector: 'my-comp', template: '', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class MyCompBroken0 {} @Component({ selector: 'manual-projecting', template: '
    ', - standalone: false, }) class ManualProjecting { @ContentChild(TemplateRef, {static: true}) template!: TemplateRef; diff --git a/packages/core/test/linker/query_list_spec.ts b/packages/core/test/linker/query_list_spec.ts index ef046cd2ecfa..f16e4c33b77f 100644 --- a/packages/core/test/linker/query_list_spec.ts +++ b/packages/core/test/linker/query_list_spec.ts @@ -9,7 +9,6 @@ import {ɵgetDOM as getDOM} from '@angular/common'; import {QueryList} from '../../src/linker/query_list'; import {iterateListLike} from '../../src/util/iterable'; -import {fakeAsync, tick} from '../../testing'; describe('QueryList', () => { let queryList: QueryList; @@ -160,7 +159,7 @@ describe('QueryList', () => { if (getDOM().supportsDOMEvents) { describe('simple observable interface', () => { - it('should fire callbacks on change', fakeAsync(() => { + it('should fire callbacks on change', () => { let fires = 0; queryList.changes.subscribe({ next: (_) => { @@ -169,17 +168,15 @@ describe('QueryList', () => { }); queryList.notifyOnChanges(); - tick(); expect(fires).toEqual(1); queryList.notifyOnChanges(); - tick(); expect(fires).toEqual(2); - })); + }); - it('should provides query list as an argument', fakeAsync(() => { + it('should provides query list as an argument', () => { let recorded!: QueryList; queryList.changes.subscribe({ next: (v: QueryList) => { @@ -189,10 +186,9 @@ describe('QueryList', () => { queryList.reset(['one']); queryList.notifyOnChanges(); - tick(); expect(recorded).toBe(queryList); - })); + }); }); } }); diff --git a/packages/core/test/linker/regression_integration_spec.ts b/packages/core/test/linker/regression_integration_spec.ts index 41b6bae0256b..ab88c750eb2f 100644 --- a/packages/core/test/linker/regression_integration_spec.ts +++ b/packages/core/test/linker/regression_integration_spec.ts @@ -6,7 +6,9 @@ * found in the LICENSE file at https://angular.dev/license */ -import {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; +import {CommonModule, DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; +import {BrowserModule, By, platformBrowser} from '@angular/platform-browser'; +import {expect} from '@angular/private/testing/matchers'; import { ApplicationRef, Component, @@ -18,6 +20,7 @@ import { EnvironmentInjector, ErrorHandler, EventEmitter, + forwardRef, HostListener, InjectionToken, Injector, @@ -28,28 +31,26 @@ import { Pipe, PipeTransform, Provider, + provideZoneChangeDetection, QueryList, Renderer2, SimpleChanges, TemplateRef, ViewChildren, ViewContainerRef, - provideZoneChangeDetection, } from '../../src/core'; -import {fakeAsync, inject, TestBed, tick} from '../../testing'; -import {BrowserModule, By, platformBrowser} from '@angular/platform-browser'; -import {expect} from '@angular/private/testing/matchers'; +import {TestBed} from '../../testing'; describe('regressions', () => { - beforeEach(() => { - TestBed.configureTestingModule({declarations: [MyComp1, PlatformPipe]}); - }); - describe('platform pipes', () => { it('should overwrite them by custom pipes', () => { - TestBed.configureTestingModule({declarations: [CustomPipe]}); const template = '{{true | somePipe}}'; - TestBed.overrideComponent(MyComp1, {set: {template}}); + TestBed.overrideComponent(MyComp1, { + set: { + template, + imports: [CommonModule, forwardRef(() => PlatformPipe), forwardRef(() => CustomPipe)], + }, + }); const fixture = TestBed.createComponent(MyComp1); fixture.detectChanges(); @@ -77,9 +78,13 @@ describe('regressions', () => { }); it('should only evaluate stateful pipes once - #10639', () => { - TestBed.configureTestingModule({declarations: [CountingPipe]}); const template = '{{(null|countingPipe)?.value}}'; - TestBed.overrideComponent(MyComp1, {set: {template}}); + TestBed.overrideComponent(MyComp1, { + set: { + template, + imports: [CommonModule, forwardRef(() => PlatformPipe), forwardRef(() => CountingPipe)], + }, + }); const fixture = TestBed.createComponent(MyComp1); CountingPipe.reset(); @@ -88,10 +93,11 @@ describe('regressions', () => { expect(CountingPipe.calls).toBe(1); }); - it('should only update the bound property when using asyncPipe - #15205', fakeAsync(() => { + it('should only update the bound property when using asyncPipe - #15205', async () => { @Component({ template: '
    ', - standalone: false, + + imports: [CommonModule, forwardRef(() => MyDir)], }) class MyComp { p = Promise.resolve(1); @@ -99,7 +105,6 @@ describe('regressions', () => { @Directive({ selector: '[myDir]', - standalone: false, }) class MyDir { setterCalls: {[key: string]: any} = {}; @@ -119,7 +124,6 @@ describe('regressions', () => { } } - TestBed.configureTestingModule({declarations: [MyDir, MyComp]}); const fixture = TestBed.createComponent(MyComp); const dir = fixture.debugElement.query(By.directive(MyDir)).injector.get(MyDir) as MyDir; @@ -130,15 +134,14 @@ describe('regressions', () => { dir.setterCalls = {}; dir.changes = {}; - tick(); + await fixture.whenStable(); fixture.detectChanges(); expect(dir.setterCalls).toEqual({'a': 1}); expect(Object.keys(dir.changes)).toEqual(['a']); - })); + }); it('should only evaluate methods once - #10639', () => { - TestBed.configureTestingModule({declarations: [MyCountingComp]}); const template = '{{method()?.value}}'; TestBed.overrideComponent(MyCountingComp, {set: {template}}); const fixture = TestBed.createComponent(MyCountingComp); @@ -151,9 +154,7 @@ describe('regressions', () => { it('should evaluate a conditional in a statement binding', () => { @Component({ - selector: 'some-comp', template: '

    ', - standalone: false, }) class SomeComponent { nullValue: SomeReferencedClass | undefined; @@ -164,9 +165,7 @@ describe('regressions', () => { } expect(() => { - const fixture = TestBed.configureTestingModule({ - declarations: [SomeComponent], - }).createComponent(SomeComponent); + const fixture = TestBed.createComponent(SomeComponent); fixture.detectChanges(/* checkNoChanges */ false); }).not.toThrow(); @@ -236,9 +235,13 @@ describe('regressions', () => { }); it('should support ngClass before a component and content projection inside of an ngIf', () => { - TestBed.configureTestingModule({declarations: [CmpWithNgContent]}); const template = `ABC`; - TestBed.overrideComponent(MyComp1, {set: {template}}); + TestBed.overrideComponent(MyComp1, { + set: { + template, + imports: [CommonModule, forwardRef(() => PlatformPipe), forwardRef(() => CmpWithNgContent)], + }, + }); const fixture = TestBed.createComponent(MyComp1); fixture.detectChanges(); @@ -246,7 +249,6 @@ describe('regressions', () => { }); it('should handle mutual recursion entered from multiple sides - #7084', () => { - TestBed.configureTestingModule({declarations: [FakeRecursiveComp, LeftComp, RightComp]}); const fixture = TestBed.createComponent(FakeRecursiveComp); fixture.detectChanges(); @@ -254,11 +256,11 @@ describe('regressions', () => { }); it('should generate the correct output when constructors have the same name', () => { - function ComponentFactory(selector: string, template: string) { + function ComponentFactory(selector: string, template: string, imports: any[] = []) { @Component({ selector, template, - standalone: false, + imports, }) class MyComponent {} return MyComponent; @@ -268,11 +270,8 @@ describe('regressions', () => { const MainComponent = ComponentFactory( 'my-app', 'I was saved by from .', + [HeroComponent, VillainComponent], ); - - TestBed.configureTestingModule({ - declarations: [HeroComponent, VillainComponent, MainComponent], - }); const fixture = TestBed.createComponent(MainComponent); expect(fixture.nativeElement).toHaveText('I was saved by my hero from a villain.'); }); @@ -280,13 +279,11 @@ describe('regressions', () => { it('should allow to use the renderer outside of views', () => { @Component({ template: '', - standalone: false, }) class MyComp { constructor(public renderer: Renderer2) {} } - TestBed.configureTestingModule({declarations: [MyComp]}); const ctx = TestBed.createComponent(MyComp); const txtNode = ctx.componentInstance.renderer.createText('test'); @@ -296,21 +293,19 @@ describe('regressions', () => { it('should not recreate TemplateRef references during dirty checking', () => { @Component({ template: '
    ', - standalone: false, + + imports: [forwardRef(() => MyDir)], }) class MyComp {} @Directive({ selector: '[someDir]', - standalone: false, }) class MyDir { @Input('someDir') template: TemplateRef | undefined; } - const ctx = TestBed.configureTestingModule({declarations: [MyComp, MyDir]}).createComponent( - MyComp, - ); + const ctx = TestBed.createComponent(MyComp); const dir = ctx.debugElement.query(By.directive(MyDir)).injector.get(MyDir); expect(dir.template).toBeUndefined(); @@ -326,7 +321,8 @@ describe('regressions', () => { it('should not recreate ViewContainerRefs in queries', () => { @Component({ template: '
    ', - standalone: false, + + imports: [CommonModule], }) class MyComp { @ViewChildren('vc', {read: ViewContainerRef}) viewContainers!: QueryList; @@ -334,7 +330,7 @@ describe('regressions', () => { show = true; } - const ctx = TestBed.configureTestingModule({declarations: [MyComp]}).createComponent(MyComp); + const ctx = TestBed.createComponent(MyComp); ctx.componentInstance.show = true; ctx.changeDetectorRef.markForCheck(); @@ -360,13 +356,10 @@ describe('regressions', () => { it('should allow empty components', () => { @Component({ template: '', - standalone: false, }) class MyComp {} - const fixture = TestBed.configureTestingModule({declarations: [MyComp]}).createComponent( - MyComp, - ); + const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); expect(fixture.debugElement.childNodes.length).toBe(0); @@ -376,28 +369,26 @@ describe('regressions', () => { it('should throw if @ContentChild and @Input are on the same property', () => { @Directive({ selector: 'test', - standalone: false, }) class Test { @Input() @ContentChild(TemplateRef, {static: true}) tpl: TemplateRef | undefined; } @Component({ - selector: 'my-app', template: ``, - standalone: false, + + imports: [Test], }) class App {} expect(() => { - TestBed.configureTestingModule({declarations: [App, Test]}).createComponent(App); + TestBed.createComponent(App); }).toThrowError(/Cannot combine @Input decorators with query decorators/); }); it('should not add ng-version for dynamically created components', () => { @Component({ template: '', - standalone: false, }) class App {} @@ -423,7 +414,8 @@ describe('regressions using bootstrap', () => { let logger: MockConsole; let errorHandler: ErrorHandler; - beforeEach(inject([DOCUMENT], (doc: any) => { + beforeEach(() => { + const doc = TestBed.inject(DOCUMENT); destroyPlatform(); const el = getDOM().createElement(COMP_SELECTOR, doc); doc.body.appendChild(el); @@ -431,7 +423,7 @@ describe('regressions using bootstrap', () => { logger = new MockConsole(); errorHandler = new ErrorHandler(); (errorHandler as any)._console = logger as any; - })); + }); afterEach(() => { destroyPlatform(); @@ -540,9 +532,9 @@ describe('regressions using bootstrap', () => { }); @Component({ - selector: 'my-comp', template: '', - standalone: false, + + imports: [CommonModule, forwardRef(() => PlatformPipe)], }) class MyComp1 { constructor(public injector: Injector) {} @@ -551,7 +543,6 @@ class MyComp1 { @Pipe({ name: 'somePipe', pure: true, - standalone: false, }) class PlatformPipe implements PipeTransform { transform(value: any): any { @@ -562,7 +553,6 @@ class PlatformPipe implements PipeTransform { @Pipe({ name: 'somePipe', pure: true, - standalone: false, }) class CustomPipe implements PipeTransform { transform(value: any): any { @@ -573,14 +563,11 @@ class CustomPipe implements PipeTransform { @Component({ selector: 'cmp-content', template: ``, - standalone: false, }) class CmpWithNgContent {} @Component({ - selector: 'counting-cmp', template: '', - standalone: false, }) class MyCountingComp { method(): {value: string} | undefined { @@ -596,7 +583,6 @@ class MyCountingComp { @Pipe({ name: 'countingPipe', - standalone: false, }) class CountingPipe implements PipeTransform { transform(value: any): any { @@ -612,20 +598,23 @@ class CountingPipe implements PipeTransform { @Component({ selector: 'left', template: `L`, - standalone: false, + + imports: [CommonModule, forwardRef(() => RightComp)], }) class LeftComp {} @Component({ selector: 'right', template: `R`, - standalone: false, + + imports: [CommonModule, LeftComp], }) class RightComp {} @Component({ selector: 'fakeRecursiveComp', template: `[]`, - standalone: false, + + imports: [CommonModule, LeftComp, RightComp], }) export class FakeRecursiveComp {} diff --git a/packages/core/test/linker/security_integration_spec.ts b/packages/core/test/linker/security_integration_spec.ts index 6ed339d2a865..1e15b1af73f4 100644 --- a/packages/core/test/linker/security_integration_spec.ts +++ b/packages/core/test/linker/security_integration_spec.ts @@ -6,24 +6,14 @@ * found in the LICENSE file at https://angular.dev/license */ -import {DomSanitizer} from '@angular/platform-browser'; -import {clearTranslations, loadTranslations} from '@angular/localize'; import {computeMsgId} from '@angular/compiler'; -import { - ChangeDetectionStrategy, - Component, - Directive, - HostBinding, - Input, - NO_ERRORS_SCHEMA, -} from '../../src/core'; +import {clearTranslations, loadTranslations} from '@angular/localize'; +import {DomSanitizer} from '@angular/platform-browser'; +import {Component, Directive, HostBinding, Input, NO_ERRORS_SCHEMA} from '../../src/core'; import {ComponentFixture, getTestBed, TestBed} from '../../testing'; @Component({ - selector: 'my-comp', template: '', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class SecuredComponent { ctxProp: any = 'some value'; @@ -31,7 +21,6 @@ class SecuredComponent { @Directive({ selector: '[onPrefixedProp]', - standalone: false, }) class OnPrefixDir { @Input() onPrefixedProp: any; @@ -42,10 +31,6 @@ describe('security integration tests', function () { beforeEach(() => { // Disable logging for these tests. spyOn(console, 'log').and.callFake(() => {}); - - TestBed.configureTestingModule({ - declarations: [SecuredComponent, OnPrefixDir], - }); }); describe('events', () => { @@ -55,10 +40,99 @@ describe('security integration tests', function () { const template = `
    `; TestBed.overrideComponent(SecuredComponent, {set: {template}}); + expect(() => { + TestBed.createComponent(SecuredComponent); + }).toThrowError(); + }); + + it('should disallow binding to attr.:onclick', () => { + const template = `
    `; + TestBed.overrideComponent(SecuredComponent, {set: {template}}); + + expect(() => { + TestBed.createComponent(SecuredComponent); + }).toThrowError( + /Invalid attribute name ':onclick'\. Attribute names cannot start with a colon\./, + ); + }); + + it('should disallow binding to attributes starting with a colon like attr.:href', () => { + const template = `Link Title`; + TestBed.overrideComponent(SecuredComponent, {set: {template}}); + + expect(() => { + TestBed.createComponent(SecuredComponent); + }).toThrowError( + /Invalid attribute name ':href'\. Attribute names cannot start with a colon\./, + ); + }); + + it('should disallow template attributes starting with a colon like :onclick, :[onclick], or :href', () => { + for (const [template, attrName] of [ + [`
    `, ':onclick'], + [`
    `, ':[onclick]'], + [`Link`, ':href'], + [`
    `, ':xlink:href'], + ]) { + TestBed.resetTestingModule(); + TestBed.overrideComponent(SecuredComponent, {set: {template}}); + + expect(() => { + TestBed.createComponent(SecuredComponent); + }).toThrowError( + new RegExp( + `Invalid attribute name '${attrName.replace(/[[\]]/g, '\\$&')}'\\. Attribute names cannot start with a colon\\.`, + ), + ); + } + }); + + it('should allow interpolated namespaced attributes like xlink:href', () => { + const template = `Link`; + TestBed.overrideComponent(SecuredComponent, {set: {template}}); + const fixture = TestBed.createComponent(SecuredComponent); + fixture.componentInstance.ctxProp = 'https://angular.dev'; + fixture.detectChanges(); + const a = fixture.debugElement.children[0].children[0].nativeElement; + expect( + a.getAttributeNS('http://www.w3.org/1999/xlink', 'href') || a.getAttribute('xlink:href'), + ).toBe('https://angular.dev'); + }); + + it('should allow host class and style bindings with colon variants like hover:online', () => { + @Directive({ + selector: '[dirClassStyle]', + standalone: false, + }) + class LocalHostClassStyleDirective { + @HostBinding('class.hover:online') @Input() isOnline = true; + @HostBinding('style.color:only') @Input() color = 'blue'; + } + + @Component({ + template: ``, + standalone: false, + }) + class LocalHostClassStyleComponent {} + + TestBed.configureTestingModule({ + declarations: [LocalHostClassStyleComponent, LocalHostClassStyleDirective], + }); + + expect(() => { + const fixture = TestBed.createComponent(LocalHostClassStyleComponent); + fixture.detectChanges(); + }).not.toThrow(); + }); + + it('should disallow binding to namespaced event attributes like attr.svg:onclick', () => { + const template = ``; + TestBed.overrideComponent(SecuredComponent, {set: {template}}); + expect(() => { TestBed.createComponent(SecuredComponent); }).toThrowError( - /Binding to event attribute 'onclick' is disallowed for security reasons, please use \(click\)=.../, + /Binding to event attribute 'svg:onclick' is disallowed for security reasons, please use \(click\)=.../, ); }); @@ -80,7 +154,9 @@ describe('security integration tests', function () { it('should disallow binding to on* unless it is consumed by a directive', () => { const template = `
    `; - TestBed.overrideComponent(SecuredComponent, {set: {template}}).configureTestingModule({ + TestBed.overrideComponent(SecuredComponent, { + set: {template, imports: [OnPrefixDir]}, + }).configureTestingModule({ schemas: [NO_ERRORS_SCHEMA], }); @@ -99,6 +175,7 @@ describe('security integration tests', function () { for (const ngDevModeValue of [true, false]) { it(`should disallow binding to attr.on* in host bindings with ngDevMode=${ngDevModeValue}`, () => { + // TODO: There is probably a bug here, this test fails if we migrate it to standalone components. Check why. const originalNgDevMode = (globalThis as any).ngDevMode; (globalThis as any).ngDevMode = ngDevModeValue; @@ -111,7 +188,6 @@ describe('security integration tests', function () { } @Component({ - selector: 'local-comp', template: ``, standalone: false, }) @@ -133,6 +209,146 @@ describe('security integration tests', function () { (globalThis as any).ngDevMode = originalNgDevMode; } }); + + it(`should disallow binding to attr.:onclick in host bindings with ngDevMode=${ngDevModeValue}`, () => { + const originalNgDevMode = (globalThis as any).ngDevMode; + (globalThis as any).ngDevMode = ngDevModeValue; + + @Directive({ + selector: '[dirOnclickColon]', + standalone: false, + }) + class LocalHostColonOnclickDirective { + @HostBinding('attr.:onclick') @Input() dirOnclickColon: string | undefined; + } + + @Component({ + template: ``, + standalone: false, + }) + class LocalSecuredColonComponent { + ctxProp: any = 'some value'; + } + + try { + TestBed.configureTestingModule({ + declarations: [LocalSecuredColonComponent, LocalHostColonOnclickDirective], + }); + + expect(() => { + TestBed.createComponent(LocalSecuredColonComponent); + }).toThrowError( + /Invalid attribute name ':onclick'\. Attribute names cannot start with a colon\./, + ); + } finally { + (globalThis as any).ngDevMode = originalNgDevMode; + } + }); + + it(`should disallow binding to attr.svg:onclick in host bindings with ngDevMode=${ngDevModeValue}`, () => { + const originalNgDevMode = (globalThis as any).ngDevMode; + (globalThis as any).ngDevMode = ngDevModeValue; + + @Directive({ + selector: '[dirSvgOnclick]', + standalone: false, + }) + class LocalHostSvgOnclickDirective { + @HostBinding('attr.svg:onclick') @Input() dirSvgOnclick: string | undefined; + } + + @Component({ + template: ``, + standalone: false, + }) + class LocalSecuredSvgComponent { + ctxProp: any = 'some value'; + } + + try { + TestBed.configureTestingModule({ + declarations: [LocalSecuredSvgComponent, LocalHostSvgOnclickDirective], + }); + + expect(() => { + TestBed.createComponent(LocalSecuredSvgComponent); + }).toThrowError( + /Binding to event attribute 'svg:onclick' is disallowed for security reasons, please use \(click\)=.../, + ); + } finally { + (globalThis as any).ngDevMode = originalNgDevMode; + } + }); + + it(`should disallow binding to attr.:href in host bindings with ngDevMode=${ngDevModeValue}`, () => { + const originalNgDevMode = (globalThis as any).ngDevMode; + (globalThis as any).ngDevMode = ngDevModeValue; + + @Directive({ + selector: '[dirHrefColon]', + standalone: false, + }) + class LocalHostHrefColonDirective { + @HostBinding('attr.:href') @Input() dirHrefColon: string | undefined; + } + + @Component({ + template: ``, + standalone: false, + }) + class LocalSecuredHrefComponent { + ctxProp: any = 'some value'; + } + + try { + TestBed.configureTestingModule({ + declarations: [LocalSecuredHrefComponent, LocalHostHrefColonDirective], + }); + + expect(() => { + TestBed.createComponent(LocalSecuredHrefComponent); + }).toThrowError( + /Invalid attribute name ':href'\. Attribute names cannot start with a colon\./, + ); + } finally { + (globalThis as any).ngDevMode = originalNgDevMode; + } + }); + + it(`should disallow binding to attr.::onclick and attr.::href in host bindings with ngDevMode=${ngDevModeValue}`, () => { + const originalNgDevMode = (globalThis as any).ngDevMode; + (globalThis as any).ngDevMode = ngDevModeValue; + + @Directive({ + selector: '[dirDoubleColon]', + standalone: false, + }) + class LocalHostDoubleColonDirective { + @HostBinding('attr.::onclick') @Input() dirDoubleColon: string | undefined; + } + + @Component({ + template: ``, + standalone: false, + }) + class LocalSecuredDoubleColonComponent { + ctxProp: any = 'some value'; + } + + try { + TestBed.configureTestingModule({ + declarations: [LocalSecuredDoubleColonComponent, LocalHostDoubleColonDirective], + }); + + expect(() => { + TestBed.createComponent(LocalSecuredDoubleColonComponent); + }).toThrowError( + /Invalid attribute name '::onclick'\. Attribute names cannot start with a colon\./, + ); + } finally { + (globalThis as any).ngDevMode = originalNgDevMode; + } + }); } }); @@ -201,6 +417,48 @@ describe('security integration tests', function () { checkEscapeOfHrefProperty(fixture); }); + function checkNullishResourceUrl( + fixture: ComponentFixture, + expectedNullishSrc: string | null, + ) { + const e = fixture.debugElement.children[0].nativeElement; + const ci = fixture.componentInstance; + + ci.ctxProp = undefined; + fixture.changeDetectorRef.markForCheck(); + expect(() => fixture.detectChanges()).not.toThrow(); + expect(e.getAttribute('src')).toEqual(expectedNullishSrc); + + ci.ctxProp = null; + fixture.changeDetectorRef.markForCheck(); + expect(() => fixture.detectChanges()).not.toThrow(); + expect(e.getAttribute('src')).toEqual(expectedNullishSrc); + + ci.ctxProp = 'https://example.com/embed'; + fixture.changeDetectorRef.markForCheck(); + expect(() => fixture.detectChanges()).toThrowError( + /NG0904: unsafe value used in a resource URL context/, + ); + } + + it('should allow binding null and undefined to resource URL properties', () => { + const template = ``; + TestBed.overrideComponent(SecuredComponent, {set: {template}}); + const fixture = TestBed.createComponent(SecuredComponent); + + // The property is set to an empty string, which the browser treats as `about:blank`. + checkNullishResourceUrl(fixture, ''); + }); + + it('should allow binding null and undefined to resource URL attributes', () => { + const template = ``; + TestBed.overrideComponent(SecuredComponent, {set: {template}}); + const fixture = TestBed.createComponent(SecuredComponent); + + // Nullish attribute values remove the attribute without going through the sanitizer. + checkNullishResourceUrl(fixture, null); + }); + it('should escape unsafe attributes', () => { const template = `Link Title`; TestBed.overrideComponent(SecuredComponent, {set: {template}}); @@ -228,15 +486,13 @@ describe('security integration tests', function () { it('should escape unsafe properties if they are used in host bindings', () => { @Directive({ selector: '[dirHref]', - standalone: false, }) class HrefDirective { @HostBinding('href') @Input() dirHref: string | undefined; } const template = `Link Title`; - TestBed.configureTestingModule({declarations: [HrefDirective]}); - TestBed.overrideComponent(SecuredComponent, {set: {template}}); + TestBed.overrideComponent(SecuredComponent, {set: {template, imports: [HrefDirective]}}); const fixture = TestBed.createComponent(SecuredComponent); checkEscapeOfHrefProperty(fixture); @@ -245,15 +501,13 @@ describe('security integration tests', function () { it('should escape unsafe attributes if they are used in host bindings', () => { @Directive({ selector: '[dirHref]', - standalone: false, }) class HrefDirective { @HostBinding('attr.href') @Input() dirHref: string | undefined; } const template = `Link Title`; - TestBed.configureTestingModule({declarations: [HrefDirective]}); - TestBed.overrideComponent(SecuredComponent, {set: {template}}); + TestBed.overrideComponent(SecuredComponent, {set: {template, imports: [HrefDirective]}}); const fixture = TestBed.createComponent(SecuredComponent); checkEscapeOfHrefProperty(fixture); diff --git a/packages/core/test/linker/source_map_integration_node_only_spec.ts b/packages/core/test/linker/source_map_integration_node_only_spec.ts index da97992ae7a8..a682d8eccd6a 100644 --- a/packages/core/test/linker/source_map_integration_node_only_spec.ts +++ b/packages/core/test/linker/source_map_integration_node_only_spec.ts @@ -7,14 +7,14 @@ */ import { - ResourceLoader, - SourceMap, - JitEvaluator, CompilerFacadeImpl, escapeRegExp, + JitEvaluator, + ResourceLoader, + SourceMap, } from '@angular/compiler'; -import {Attribute, Component, Directive, ErrorHandler} from '../../src/core'; import {CompilerFacade, ExportedCompilerFacade} from '../../src/compiler/compiler_facade'; +import {Attribute, Component, Directive, ErrorHandler, forwardRef} from '../../src/core'; import {resolveComponentResources} from '../../src/metadata/resource_loading'; import {TestBed} from '../../testing'; @@ -102,13 +102,12 @@ describe('jit source mapping', () => { @Component({ ...templateDecorator(template), - standalone: false, + imports: [forwardRef(() => SomeDir)], }) class MyComp {} @Directive({ selector: '[someDir]', - standalone: false, }) class SomeDir { constructor() { @@ -116,7 +115,6 @@ describe('jit source mapping', () => { } } - TestBed.configureTestingModule({declarations: [SomeDir]}); let error: any; try { await resolveCompileAndCreateComponent(MyComp, template); @@ -136,13 +134,13 @@ describe('jit source mapping', () => { @Component({ ...templateDecorator(template), - standalone: false, + + imports: [forwardRef(() => SomeDir)], }) class MyComp {} @Directive({ selector: '[someDir]', - standalone: false, }) class SomeDir { constructor(@Attribute('someDir') someDir: string) { @@ -152,7 +150,6 @@ describe('jit source mapping', () => { } } - TestBed.configureTestingModule({declarations: [SomeDir]}); let error: any; try { await resolveCompileAndCreateComponent(MyComp, template); diff --git a/packages/core/test/linker/view_injector_integration_spec.ts b/packages/core/test/linker/view_injector_integration_spec.ts index 28f725241939..3e2e15e345b7 100644 --- a/packages/core/test/linker/view_injector_integration_spec.ts +++ b/packages/core/test/linker/view_injector_integration_spec.ts @@ -6,6 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ +import {CommonModule, NgIf} from '@angular/common'; import {expect} from '@angular/private/testing/matchers'; import { Attribute, @@ -19,6 +20,7 @@ import { ElementRef, EmbeddedViewRef, EnvironmentInjector, + forwardRef, Host, Inject, InjectionToken, @@ -35,11 +37,10 @@ import { ViewContainerRef, } from '../../src/core'; import {ERROR_DETAILS_PAGE_BASE_URL} from '../../src/error_details_base_url'; -import {ComponentFixture, fakeAsync, TestBed} from '../../testing'; +import {ComponentFixture, TestBed} from '../../testing'; @Directive({ selector: '[simpleDirective]', - standalone: false, }) class SimpleDirective { @Input('simpleDirective') value: any = null; @@ -48,19 +49,24 @@ class SimpleDirective { @Component({ selector: '[simpleComponent]', template: '', - standalone: false, + + imports: [ + CommonModule, + forwardRef(() => NeedsComponentFromHost), + forwardRef(() => NeedsDirectiveFromHost), + forwardRef(() => NeedsService), + forwardRef(() => NeedsServiceFromHost), + ], }) class SimpleComponent {} @Directive({ selector: '[someOtherDirective]', - standalone: false, }) class SomeOtherDirective {} @Directive({ selector: '[cycleDirective]', - standalone: false, }) class CycleDirective { constructor(self: CycleDirective) {} @@ -68,7 +74,6 @@ class CycleDirective { @Directive({ selector: '[needsDirectiveFromSelf]', - standalone: false, }) class NeedsDirectiveFromSelf { dependency: SimpleDirective; @@ -79,7 +84,6 @@ class NeedsDirectiveFromSelf { @Directive({ selector: '[optionallyNeedsDirective]', - standalone: false, }) class OptionallyNeedsDirective { dependency: SimpleDirective; @@ -90,7 +94,6 @@ class OptionallyNeedsDirective { @Directive({ selector: '[needsComponentFromHost]', - standalone: false, }) class NeedsComponentFromHost { dependency: SimpleComponent; @@ -101,7 +104,6 @@ class NeedsComponentFromHost { @Directive({ selector: '[needsDirectiveFromHost]', - standalone: false, }) class NeedsDirectiveFromHost { dependency: SimpleDirective; @@ -112,7 +114,6 @@ class NeedsDirectiveFromHost { @Directive({ selector: '[needsDirective]', - standalone: false, }) class NeedsDirective { dependency: SimpleDirective; @@ -123,7 +124,6 @@ class NeedsDirective { @Directive({ selector: '[needsService]', - standalone: false, }) class NeedsService { service: any; @@ -134,7 +134,6 @@ class NeedsService { @Directive({ selector: '[needsAppService]', - standalone: false, }) class NeedsAppService { service: any; @@ -144,9 +143,7 @@ class NeedsAppService { } @Component({ - selector: '[needsHostAppService]', template: '', - standalone: false, }) class NeedsHostAppService { service: any; @@ -158,7 +155,6 @@ class NeedsHostAppService { @Component({ selector: '[needsServiceComponent]', template: '', - standalone: false, }) class NeedsServiceComponent { service: any; @@ -169,7 +165,6 @@ class NeedsServiceComponent { @Directive({ selector: '[needsServiceFromHost]', - standalone: false, }) class NeedsServiceFromHost { service: any; @@ -180,7 +175,6 @@ class NeedsServiceFromHost { @Directive({ selector: '[needsAttribute]', - standalone: false, }) class NeedsAttribute { typeAttribute: any; @@ -199,7 +193,6 @@ class NeedsAttribute { @Directive({ selector: '[needsAttributeNoType]', - standalone: false, }) class NeedsAttributeNoType { constructor(@Attribute('foo') public fooAttribute: any) {} @@ -207,7 +200,6 @@ class NeedsAttributeNoType { @Directive({ selector: '[needsElementRef]', - standalone: false, }) class NeedsElementRef { constructor(public elementRef: ElementRef) {} @@ -215,7 +207,6 @@ class NeedsElementRef { @Directive({ selector: '[needsViewContainerRef]', - standalone: false, }) class NeedsViewContainerRef { constructor(public viewContainer: ViewContainerRef) {} @@ -223,7 +214,6 @@ class NeedsViewContainerRef { @Directive({ selector: '[needsTemplateRef]', - standalone: false, }) class NeedsTemplateRef { constructor(public templateRef: TemplateRef) {} @@ -231,7 +221,6 @@ class NeedsTemplateRef { @Directive({ selector: '[optionallyNeedsTemplateRef]', - standalone: false, }) class OptionallyNeedsTemplateRef { constructor(@Optional() public templateRef: TemplateRef) {} @@ -239,7 +228,6 @@ class OptionallyNeedsTemplateRef { @Directive({ selector: '[directiveNeedsChangeDetectorRef]', - standalone: false, }) class DirectiveNeedsChangeDetectorRef { constructor(public changeDetectorRef: ChangeDetectorRef) {} @@ -248,8 +236,8 @@ class DirectiveNeedsChangeDetectorRef { @Component({ selector: '[componentNeedsChangeDetectorRef]', template: '{{counter}}', + // Until #69898 lands we need to explicit OnPush changeDetection: ChangeDetectionStrategy.OnPush, - standalone: false, }) class PushComponentNeedsChangeDetectorRef { counter: number = 0; @@ -259,7 +247,6 @@ class PushComponentNeedsChangeDetectorRef { @Pipe({ name: 'purePipe', pure: true, - standalone: false, }) class PurePipe implements PipeTransform { constructor() {} @@ -271,7 +258,6 @@ class PurePipe implements PipeTransform { @Pipe({ name: 'impurePipe', pure: false, - standalone: false, }) class ImpurePipe implements PipeTransform { constructor() {} @@ -282,7 +268,6 @@ class ImpurePipe implements PipeTransform { @Pipe({ name: 'pipeNeedsChangeDetectorRef', - standalone: false, }) class PipeNeedsChangeDetectorRef { constructor(public changeDetectorRef: ChangeDetectorRef) {} @@ -293,7 +278,6 @@ class PipeNeedsChangeDetectorRef { @Pipe({ name: 'pipeNeedsService', - standalone: false, }) export class PipeNeedsService implements PipeTransform { service: any; @@ -307,7 +291,6 @@ export class PipeNeedsService implements PipeTransform { @Pipe({ name: 'duplicatePipe', - standalone: false, }) export class DuplicatePipe1 implements PipeTransform { transform(value: any): any { @@ -317,7 +300,6 @@ export class DuplicatePipe1 implements PipeTransform { @Pipe({ name: 'duplicatePipe', - standalone: false, }) export class DuplicatePipe2 implements PipeTransform { transform(value: any): any { @@ -326,9 +308,32 @@ export class DuplicatePipe2 implements PipeTransform { } @Component({ - selector: 'root', template: '', - standalone: false, + + imports: [ + CommonModule, + SimpleDirective, + SimpleComponent, + SomeOtherDirective, + CycleDirective, + NeedsDirectiveFromSelf, + OptionallyNeedsDirective, + NeedsDirective, + NeedsService, + NeedsAppService, + NeedsServiceComponent, + NeedsAttribute, + NeedsAttributeNoType, + NeedsElementRef, + NeedsViewContainerRef, + NeedsTemplateRef, + OptionallyNeedsTemplateRef, + DirectiveNeedsChangeDetectorRef, + PushComponentNeedsChangeDetectorRef, + PipeNeedsChangeDetectorRef, + PipeNeedsService, + ImpurePipe, + ], }) class TestComp {} @@ -358,7 +363,6 @@ describe('View injector', () => { beforeEach(() => { TestBed.configureTestingModule({ - declarations: [TestComp], providers: [ {provide: TOKEN, useValue: 'appService'}, {provide: 'appService', useFactory: (v: string) => v, deps: [TOKEN]}, @@ -368,13 +372,11 @@ describe('View injector', () => { describe('injection', () => { it('should instantiate directives that have no dependencies', () => { - TestBed.configureTestingModule({declarations: [SimpleDirective]}); const el = createComponent('
    '); expect(el.children[0].injector.get(SimpleDirective)).toBeInstanceOf(SimpleDirective); }); it('should instantiate directives that depend on another directive', () => { - TestBed.configureTestingModule({declarations: [SimpleDirective, NeedsDirective]}); const el = createComponent('
    '); const d = el.children[0].injector.get(NeedsDirective); @@ -405,7 +407,6 @@ describe('View injector', () => { }); it('should instantiate providers that have dependencies with SkipSelf', () => { - TestBed.configureTestingModule({declarations: [SimpleDirective, SomeOtherDirective]}); TestBed.overrideDirective(SimpleDirective, { add: {providers: [{provide: 'injectable1', useValue: 'injectable1'}]}, }); @@ -428,7 +429,6 @@ describe('View injector', () => { }); it('should instantiate providers that have dependencies', () => { - TestBed.configureTestingModule({declarations: [SimpleDirective]}); const providers = [ {provide: 'injectable1', useValue: 'injectable1'}, { @@ -443,7 +443,6 @@ describe('View injector', () => { }); it('should instantiate viewProviders that have dependencies', () => { - TestBed.configureTestingModule({declarations: [SimpleComponent]}); const viewProviders = [ {provide: 'injectable1', useValue: 'injectable1'}, { @@ -458,7 +457,6 @@ describe('View injector', () => { }); it('should instantiate components that depend on viewProviders providers', () => { - TestBed.configureTestingModule({declarations: [NeedsServiceComponent]}); TestBed.overrideComponent(NeedsServiceComponent, { set: {providers: [{provide: 'service', useValue: 'service'}]}, }); @@ -467,7 +465,6 @@ describe('View injector', () => { }); it('should instantiate multi providers', () => { - TestBed.configureTestingModule({declarations: [SimpleDirective]}); const providers = [ {provide: 'injectable1', useValue: 'injectable11', multi: true}, {provide: 'injectable1', useValue: 'injectable12', multi: true}, @@ -478,8 +475,6 @@ describe('View injector', () => { }); it('should instantiate providers lazily', () => { - TestBed.configureTestingModule({declarations: [SimpleDirective]}); - let created = false; TestBed.overrideDirective(SimpleDirective, { set: {providers: [{provide: 'service', useFactory: () => (created = true)}]}, @@ -523,16 +518,13 @@ describe('View injector', () => { deps: [Injector], }, ], - standalone: false, }) class MyComp { // Component is eager, which makes all of its deps eager constructor(@Inject('eager') eager: any) {} } - const ctx = TestBed.configureTestingModule({declarations: [MyComp]}).createComponent( - MyComp, - ); + const ctx = TestBed.createComponent(MyComp); expect(ctx.debugElement.injector.get('eager')).toBe('eagerValue: lazyValue'); }); @@ -547,16 +539,13 @@ describe('View injector', () => { }, {provide: 'lazy', useFactory: () => 'lazyValue'}, ], - standalone: false, }) class MyComp { // Component is eager, which makes all of its deps eager constructor(@Inject('eager') eager: any) {} } - const ctx = TestBed.configureTestingModule({declarations: [MyComp]}).createComponent( - MyComp, - ); + const ctx = TestBed.createComponent(MyComp); expect(ctx.debugElement.injector.get('eager')).toBe('eagerValue: lazyValue'); }); }); @@ -573,16 +562,13 @@ describe('View injector', () => { deps: [Injector], }, ], - standalone: false, }) class MyComp { // Component is eager, which makes all of its deps eager constructor(@Inject('eager1') eager1: any, @Inject('eager2') eager2: any) {} } - const ctx = TestBed.configureTestingModule({declarations: [MyComp]}).createComponent( - MyComp, - ); + const ctx = TestBed.createComponent(MyComp); expect(ctx.debugElement.injector.get('eager2')).toBe('v2: v1'); }); @@ -597,16 +583,13 @@ describe('View injector', () => { }, {provide: 'eager2', useFactory: () => 'v2'}, ], - standalone: false, }) class MyComp { // Component is eager, which makes all of its deps eager constructor(@Inject('eager1') eager1: any, @Inject('eager2') eager2: any) {} } - const ctx = TestBed.configureTestingModule({declarations: [MyComp]}).createComponent( - MyComp, - ); + const ctx = TestBed.createComponent(MyComp); expect(ctx.debugElement.injector.get('eager1')).toBe('v1: v2'); }); }); @@ -615,7 +598,6 @@ describe('View injector', () => { @Component({ providers: [{provide: 'a', useFactory: () => 'aValue'}], template: '', - standalone: false, }) class SomeComponent { public a: string; @@ -624,9 +606,7 @@ describe('View injector', () => { } } - const comp = TestBed.configureTestingModule({declarations: [SomeComponent]}).createComponent( - SomeComponent, - ); + const comp = TestBed.createComponent(SomeComponent); expect(comp.componentInstance.a).toBe('aValue'); }); @@ -646,12 +626,9 @@ describe('View injector', () => { @Component({ providers: [SomeInjectable], template: '', - standalone: false, }) class SomeComp {} - TestBed.configureTestingModule({declarations: [SomeComp]}); - let compRef = TestBed.createComponent(SomeComp).componentRef; expect(created).toBe(false); expect(destroyed).toBe(false); @@ -670,7 +647,7 @@ describe('View injector', () => { it('should instantiate view providers lazily', () => { let created = false; - TestBed.configureTestingModule({declarations: [SimpleComponent]}); + TestBed.overrideComponent(SimpleComponent, { set: {viewProviders: [{provide: 'service', useFactory: () => (created = true)}]}, }); @@ -684,7 +661,6 @@ describe('View injector', () => { }); it('should not instantiate other directives that depend on viewProviders providers (same element)', () => { - TestBed.configureTestingModule({declarations: [SimpleComponent, NeedsService]}); TestBed.overrideComponent(SimpleComponent, { set: {viewProviders: [{provide: 'service', useValue: 'service'}]}, }); @@ -694,7 +670,6 @@ describe('View injector', () => { }); it('should not instantiate other directives that depend on viewProviders providers (child element)', () => { - TestBed.configureTestingModule({declarations: [SimpleComponent, NeedsService]}); TestBed.overrideComponent(SimpleComponent, { set: {viewProviders: [{provide: 'service', useValue: 'service'}]}, }); @@ -704,7 +679,6 @@ describe('View injector', () => { }); it('should instantiate directives that depend on providers of other directives', () => { - TestBed.configureTestingModule({declarations: [SimpleDirective, NeedsService]}); TestBed.overrideDirective(SimpleDirective, { set: {providers: [{provide: 'service', useValue: 'parentService'}]}, }); @@ -716,7 +690,6 @@ describe('View injector', () => { }); it('should instantiate directives that depend on providers in a parent view', () => { - TestBed.configureTestingModule({declarations: [SimpleDirective, NeedsService]}); TestBed.overrideDirective(SimpleDirective, { set: {providers: [{provide: 'service', useValue: 'parentService'}]}, }); @@ -729,7 +702,6 @@ describe('View injector', () => { }); it('should instantiate directives that depend on providers of a component', () => { - TestBed.configureTestingModule({declarations: [SimpleComponent, NeedsService]}); TestBed.overrideComponent(SimpleComponent, { set: {providers: [{provide: 'service', useValue: 'hostService'}]}, }); @@ -739,7 +711,6 @@ describe('View injector', () => { }); it('should instantiate directives that depend on view providers of a component', () => { - TestBed.configureTestingModule({declarations: [SimpleComponent, NeedsService]}); TestBed.overrideComponent(SimpleComponent, { set: {providers: [{provide: 'service', useValue: 'hostService'}]}, }); @@ -749,7 +720,6 @@ describe('View injector', () => { }); it('should instantiate directives in a root embedded view that depend on view providers of a component', () => { - TestBed.configureTestingModule({declarations: [SimpleComponent, NeedsService]}); TestBed.overrideComponent(SimpleComponent, { set: {providers: [{provide: 'service', useValue: 'hostService'}]}, }); @@ -761,13 +731,11 @@ describe('View injector', () => { }); it('should instantiate directives that depend on instances in the app injector', () => { - TestBed.configureTestingModule({declarations: [NeedsAppService]}); const el = createComponent('
    '); expect(el.children[0].injector.get(NeedsAppService).service).toEqual('appService'); }); it('should not instantiate a directive with cyclic dependencies', () => { - TestBed.configureTestingModule({declarations: [CycleDirective]}); expect(() => createComponent('
    ')).toThrowError( `NG0200: Circular dependency detected for \`CycleDirective\`. Path: CycleDirective -> CycleDirective. Find more at ${ERROR_DETAILS_PAGE_BASE_URL}/NG0200`, ); @@ -777,7 +745,6 @@ describe('View injector', () => { 'should not instantiate a directive in a view that has a host dependency on providers' + ' of the component', () => { - TestBed.configureTestingModule({declarations: [SimpleComponent, NeedsServiceFromHost]}); TestBed.overrideComponent(SimpleComponent, { set: {providers: [{provide: 'service', useValue: 'hostService'}]}, }); @@ -795,9 +762,6 @@ describe('View injector', () => { 'should not instantiate a directive in a view that has a host dependency on providers' + ' of a decorator directive', () => { - TestBed.configureTestingModule({ - declarations: [SimpleComponent, SomeOtherDirective, NeedsServiceFromHost], - }); TestBed.overrideComponent(SimpleComponent, { set: {providers: [{provide: 'service', useValue: 'hostService'}]}, }); @@ -814,7 +778,6 @@ describe('View injector', () => { ); it('should not instantiate a directive in a view that has a self dependency on a parent directive', () => { - TestBed.configureTestingModule({declarations: [SimpleDirective, NeedsDirectiveFromSelf]}); expect(() => createComponent('
    '), ).toThrowError( @@ -822,32 +785,27 @@ describe('View injector', () => { ); }); - it('should instantiate directives that depend on other directives', fakeAsync(() => { - TestBed.configureTestingModule({declarations: [SimpleDirective, NeedsDirective]}); + it('should instantiate directives that depend on other directives', () => { const el = createComponent('
    '); const d = el.children[0].children[0].injector.get(NeedsDirective); expect(d).toBeInstanceOf(NeedsDirective); expect(d.dependency).toBeInstanceOf(SimpleDirective); - })); - - it('should throw when a dependency cannot be resolved', fakeAsync(() => { - TestBed.configureTestingModule({declarations: [NeedsService]}); + }); + it('should throw when a dependency cannot be resolved', () => { expect(() => createComponent('
    ')).toThrowError( /NG0201: No provider found for `service`\./, ); - })); + }); it('should inject null when an optional dependency cannot be resolved', () => { - TestBed.configureTestingModule({declarations: [OptionallyNeedsDirective]}); const el = createComponent('
    '); const d = el.children[0].injector.get(OptionallyNeedsDirective); expect(d.dependency).toBeNull(); }); it('should instantiate directives that depends on the host component', () => { - TestBed.configureTestingModule({declarations: [SimpleComponent, NeedsComponentFromHost]}); TestBed.overrideComponent(SimpleComponent, { set: {template: '
    '}, }); @@ -857,9 +815,6 @@ describe('View injector', () => { }); it('should not instantiate directives that depend on other directives on the host element', () => { - TestBed.configureTestingModule({ - declarations: [SimpleComponent, SimpleDirective, NeedsDirectiveFromHost], - }); TestBed.overrideComponent(SimpleComponent, { set: {template: '
    '}, }); @@ -871,14 +826,12 @@ describe('View injector', () => { it('should allow to use the NgModule injector from a root ViewContainerRef.parentInjector', () => { @Component({ template: '', - standalone: false, }) class MyComp { constructor(public vc: ViewContainerRef) {} } const compFixture = TestBed.configureTestingModule({ - declarations: [MyComp], providers: [{provide: 'someToken', useValue: 'someValue'}], }).createComponent(MyComp); @@ -888,7 +841,6 @@ describe('View injector', () => { describe('static attributes', () => { it('should be injectable', () => { - TestBed.configureTestingModule({declarations: [NeedsAttribute]}); const el = createComponent('
    '); const needsAttribute = el.children[0].injector.get(NeedsAttribute); @@ -898,7 +850,6 @@ describe('View injector', () => { }); it('should be injectable without type annotation', () => { - TestBed.configureTestingModule({declarations: [NeedsAttributeNoType]}); const el = createComponent('
    '); const needsAttribute = el.children[0].injector.get(NeedsAttributeNoType); @@ -908,7 +859,6 @@ describe('View injector', () => { describe('refs', () => { it('should inject ElementRef', () => { - TestBed.configureTestingModule({declarations: [NeedsElementRef]}); const el = createComponent('
    '); expect(el.children[0].injector.get(NeedsElementRef).elementRef.nativeElement).toBe( el.children[0].nativeElement, @@ -916,7 +866,6 @@ describe('View injector', () => { }); it("should inject ChangeDetectorRef of the component's view into the component", () => { - TestBed.configureTestingModule({declarations: [PushComponentNeedsChangeDetectorRef]}); const cf = createComponentFixture('
    '); cf.detectChanges(); const compEl = cf.debugElement.children[0]; @@ -930,13 +879,11 @@ describe('View injector', () => { }); it('should inject ChangeDetectorRef of the containing component into directives', () => { - TestBed.configureTestingModule({ - declarations: [PushComponentNeedsChangeDetectorRef, DirectiveNeedsChangeDetectorRef], - }); TestBed.overrideComponent(PushComponentNeedsChangeDetectorRef, { set: { template: '{{counter}}
    ', + imports: [DirectiveNeedsChangeDetectorRef, NgIf], }, }); const cf = createComponentFixture('
    '); @@ -973,9 +920,6 @@ describe('View injector', () => { }); it('should inject ChangeDetectorRef of a same element component into a directive', () => { - TestBed.configureTestingModule({ - declarations: [PushComponentNeedsChangeDetectorRef, DirectiveNeedsChangeDetectorRef], - }); const cf = createComponentFixture( '
    ', ); @@ -992,9 +936,7 @@ describe('View injector', () => { }); it(`should not inject ChangeDetectorRef of a parent element's component into a directive`, () => { - TestBed.configureTestingModule({ - declarations: [PushComponentNeedsChangeDetectorRef, DirectiveNeedsChangeDetectorRef], - }).overrideComponent(PushComponentNeedsChangeDetectorRef, { + TestBed.overrideComponent(PushComponentNeedsChangeDetectorRef, { set: {template: '{{counter}}'}, }); const cf = createComponentFixture( @@ -1014,7 +956,6 @@ describe('View injector', () => { }); it('should inject ViewContainerRef (injector)', () => { - TestBed.configureTestingModule({declarations: [NeedsViewContainerRef]}); const el = createComponent('
    '); expect( el.children[0].injector.get(NeedsViewContainerRef).viewContainer.element.nativeElement, @@ -1024,13 +965,11 @@ describe('View injector', () => { it('should inject ViewContainerRef (constructor DI)', () => { @Component({ template: '', - standalone: false, }) class TestComp { constructor(public vcr: ViewContainerRef) {} } - TestBed.configureTestingModule({declarations: [TestComp]}); const environmentInjector = createEnvironmentInjector( [{provide: 'someToken', useValue: 'someNewValue'}], TestBed.inject(EnvironmentInjector), @@ -1041,7 +980,6 @@ describe('View injector', () => { }); it('should inject TemplateRef', () => { - TestBed.configureTestingModule({declarations: [NeedsViewContainerRef, NeedsTemplateRef]}); const el = createComponent( '', ); @@ -1051,14 +989,12 @@ describe('View injector', () => { }); it('should throw if there is no TemplateRef', () => { - TestBed.configureTestingModule({declarations: [NeedsTemplateRef]}); expect(() => createComponent('
    ')).toThrowError( /No provider for TemplateRef/, ); }); it('should inject null if there is no TemplateRef when the dependency is optional', () => { - TestBed.configureTestingModule({declarations: [OptionallyNeedsTemplateRef]}); const el = createComponent('
    '); const instance = el.children[0].injector.get(OptionallyNeedsTemplateRef); expect(instance.templateRef).toBeNull(); @@ -1067,8 +1003,6 @@ describe('View injector', () => { describe('pipes', () => { it('should instantiate pipes that have dependencies', () => { - TestBed.configureTestingModule({declarations: [SimpleDirective, PipeNeedsService]}); - const el = createComponent('
    ', [ {provide: 'service', useValue: 'pipeService'}, ]); @@ -1076,21 +1010,12 @@ describe('View injector', () => { }); it('should overwrite pipes with later entry in the pipes array', () => { - TestBed.configureTestingModule({ - declarations: [SimpleDirective, DuplicatePipe1, DuplicatePipe2], - }); + TestBed.overrideComponent(TestComp, {add: {imports: [DuplicatePipe1, DuplicatePipe2]}}); const el = createComponent('
    '); expect(el.children[0].injector.get(SimpleDirective).value).toBeInstanceOf(DuplicatePipe2); }); it('should inject ChangeDetectorRef into pipes', () => { - TestBed.configureTestingModule({ - declarations: [ - SimpleDirective, - PipeNeedsChangeDetectorRef, - DirectiveNeedsChangeDetectorRef, - ], - }); const el = createComponent( '
    ', ); @@ -1099,7 +1024,6 @@ describe('View injector', () => { }); it('should not cache impure pipes', () => { - TestBed.configureTestingModule({declarations: [SimpleDirective, ImpurePipe]}); const el = createComponent( '
    ' + '
    ', @@ -1120,16 +1044,13 @@ describe('View injector', () => { describe('view destruction', () => { @Component({ - selector: 'some-component', template: '', - standalone: false, }) class SomeComponent {} @Component({ selector: 'listener-and-on-destroy', template: '', - standalone: false, }) class ComponentThatLoadsAnotherComponentThenMovesIt { constructor(private viewContainerRef: ViewContainerRef) {} @@ -1152,9 +1073,6 @@ describe('View injector', () => { } it('should not error when destroying a component that has been moved in the DOM', () => { - TestBed.configureTestingModule({ - declarations: [ComponentThatLoadsAnotherComponentThenMovesIt, SomeComponent], - }); const fixture = createComponentFixture(``); fixture.detectChanges(); diff --git a/packages/core/test/metadata/di_spec.ts b/packages/core/test/metadata/di_spec.ts index 510121382e3b..285c8a901bdf 100644 --- a/packages/core/test/metadata/di_spec.ts +++ b/packages/core/test/metadata/di_spec.ts @@ -21,14 +21,16 @@ import {TestBed} from '../../testing'; describe('ViewChild', () => { beforeEach(() => { TestBed.configureTestingModule({ - declarations: [ViewChildTypeSelectorComponent, ViewChildStringSelectorComponent, Simple], schemas: [NO_ERRORS_SCHEMA], }); }); it('should support type selector', () => { TestBed.overrideComponent(ViewChildTypeSelectorComponent, { - set: {template: ``}, + set: { + template: ``, + imports: [Simple], + }, }); const view = TestBed.createComponent(ViewChildTypeSelectorComponent); @@ -39,7 +41,7 @@ describe('ViewChild', () => { it('should support string selector', () => { TestBed.overrideComponent(ViewChildStringSelectorComponent, { - set: {template: ``}, + set: {template: ``, imports: [Simple]}, }); const view = TestBed.createComponent(ViewChildStringSelectorComponent); @@ -51,18 +53,13 @@ describe('ViewChild', () => { describe('ViewChildren', () => { beforeEach(() => { TestBed.configureTestingModule({ - declarations: [ - ViewChildrenTypeSelectorComponent, - ViewChildrenStringSelectorComponent, - Simple, - ], schemas: [NO_ERRORS_SCHEMA], }); }); it('should support type selector', () => { TestBed.overrideComponent(ViewChildrenTypeSelectorComponent, { - set: {template: ``}, + set: {template: ``, imports: [Simple]}, }); const view = TestBed.createComponent(ViewChildrenTypeSelectorComponent); @@ -73,11 +70,9 @@ describe('ViewChildren', () => { it('should support string selector', () => { TestBed.overrideComponent(ViewChildrenStringSelectorComponent, { - set: {template: ``}, + set: {template: ``, imports: [Simple]}, }); - const view = TestBed.configureTestingModule({schemas: [NO_ERRORS_SCHEMA]}).createComponent( - ViewChildrenStringSelectorComponent, - ); + const view = TestBed.createComponent(ViewChildrenStringSelectorComponent); view.detectChanges(); expect(view.componentInstance.children).toBeDefined(); expect(view.componentInstance.children.length).toBe(2); @@ -86,43 +81,34 @@ describe('ViewChildren', () => { @Directive({ selector: 'simple', - standalone: false, }) class Simple { @Input() marker: string | undefined; } @Component({ - selector: 'view-child-type-selector', template: '', - standalone: false, }) class ViewChildTypeSelectorComponent { @ViewChild(Simple) child!: Simple; } @Component({ - selector: 'view-child-string-selector', template: '', - standalone: false, }) class ViewChildStringSelectorComponent { @ViewChild('child') child!: ElementRef; } @Component({ - selector: 'view-children-type-selector', template: '', - standalone: false, }) class ViewChildrenTypeSelectorComponent { @ViewChildren(Simple) children!: QueryList; } @Component({ - selector: 'view-child-string-selector', template: '', - standalone: false, }) class ViewChildrenStringSelectorComponent { // Allow comma separated selector (with spaces). diff --git a/packages/core/test/render3/deps_tracker_spec.ts b/packages/core/test/render3/deps_tracker_spec.ts index 6e618d261c25..bdff2d88027e 100644 --- a/packages/core/test/render3/deps_tracker_spec.ts +++ b/packages/core/test/render3/deps_tracker_spec.ts @@ -790,6 +790,22 @@ describe('runtime dependency tracker', () => { expect(ans.compilation.isPoisoned).toBeTrue(); }); + it('should not swallow errors thrown when reading an imported definition', () => { + class BrokenDirective { + static get ɵdir(): never { + throw new Error('Compilation failed'); + } + } + + class MainComponent {} + + expect(() => { + depsTracker.getStandaloneComponentScope(MainComponent as ComponentType, [ + BrokenDirective, + ]); + }).toThrowError('Compilation failed'); + }); + it('should include the imported module and its exported scope in the compilation scope', () => { @Directive({ standalone: false, diff --git a/packages/core/test/render3/di_spec.ts b/packages/core/test/render3/di_spec.ts index 1b395d55cc2f..7e8848d267f9 100644 --- a/packages/core/test/render3/di_spec.ts +++ b/packages/core/test/render3/di_spec.ts @@ -156,6 +156,7 @@ describe('di', () => { changeDetectionScheduler: null, ngReflect: false, tracingService: null, + locale: 'en-us', }, {} as any, null, diff --git a/packages/core/test/render3/error_boundary_spec.ts b/packages/core/test/render3/error_boundary_spec.ts new file mode 100644 index 000000000000..d430d02e46b8 --- /dev/null +++ b/packages/core/test/render3/error_boundary_spec.ts @@ -0,0 +1,1284 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import { + Component, + ElementRef, + EnvironmentInjector, + ErrorHandler, + Input, + TemplateRef, + ViewChild, + ViewContainerRef, + effect, + signal, + viewChild, +} from '@angular/core'; +import {DeferBlockBehavior, DeferBlockState, TestBed} from '@angular/core/testing'; +import {ErrorBoundaryWrappedError, ErrorDetails} from '../../src/error_handler'; + +describe('Error Boundary Runtime Interception', () => { + it('should intercept errors using createComponent onError', async () => { + let interceptedError: any; + + @Component({ + template: '{{ throwError() }}', + }) + class ThrowingComponent { + throwError() { + throw new Error('Component Error'); + } + } + + @Component({ + template: '', + }) + class Host { + @ViewChild('vc', {read: ViewContainerRef, static: true}) vc!: ViewContainerRef; + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + const envInjector = TestBed.inject(EnvironmentInjector); + + fixture.componentInstance.vc.createComponent(ThrowingComponent, { + environmentInjector: envInjector, + onError: (e: any) => { + interceptedError = e; + }, + }); + + // `createComponent` doesn't run CD by default, we need to call `detectChanges` on the Host. + expect(() => fixture.detectChanges()).not.toThrow(); + + expect(interceptedError).toBeInstanceOf(Error); + expect(interceptedError!.message).toBe('Component Error'); + }); + + it('should intercept errors using createEmbeddedView onError', async () => { + let interceptedError: Error | null = null; + + @Component({ + template: ` + {{ throwError() }} + + `, + }) + class Host { + @ViewChild('tpl', {static: true}) tpl!: TemplateRef; + @ViewChild('vc', {read: ViewContainerRef, static: true}) vc!: ViewContainerRef; + + throwError() { + throw new Error('Template Error'); + } + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + fixture.componentInstance.vc.createEmbeddedView( + fixture.componentInstance.tpl, + {}, + { + onError: (e: Error) => { + interceptedError = e; + }, + }, + ); + + expect(() => fixture.detectChanges()).not.toThrow(); + expect(interceptedError).toBeDefined(); + expect(interceptedError).toBeInstanceOf(Error); + expect(interceptedError!.message).toBe('Template Error'); + }); + + it('should intercept errors thrown during component creation (e.g. ngOnInit)', async () => { + let interceptedError: Error | null = null; + + @Component({ + template: '...', + }) + class ThrowingInitComponent { + ngOnInit() { + throw new Error('Init Error'); + } + } + + @Component({ + template: '', + }) + class Host { + @ViewChild('vc', {read: ViewContainerRef, static: true}) vc!: ViewContainerRef; + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + const envInjector = TestBed.inject(EnvironmentInjector); + + fixture.componentInstance.vc.createComponent(ThrowingInitComponent, { + environmentInjector: envInjector, + onError: (e: Error) => { + interceptedError = e; + }, + }); + + expect(() => fixture.detectChanges()).not.toThrow(); + + expect(interceptedError).toBeDefined(); + expect(interceptedError).toBeInstanceOf(Error); + expect(interceptedError!.message).toBe('Init Error'); + }); + + it('should NOT intercept errors thrown during component constructor via createComponent', async () => { + let interceptedError: Error | null = null; + + @Component({ + template: '...', + }) + class ThrowingConstructorComponent { + constructor() { + throw new Error('Constructor Error'); + } + } + + @Component({ + template: '', + }) + class Host { + @ViewChild('vc', {read: ViewContainerRef, static: true}) vc!: ViewContainerRef; + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + const envInjector = TestBed.inject(EnvironmentInjector); + + expect(() => { + fixture.componentInstance.vc.createComponent(ThrowingConstructorComponent, { + environmentInjector: envInjector, + onError: (e: Error) => { + interceptedError = e; + }, + }); + }).toThrowError('Constructor Error'); + + expect(interceptedError).toBeNull(); + }); + + it('should propagate errors thrown by an onError handler up the tree', async () => { + let topError: Error | null = null; + + @Component({ + template: '', + }) + class MiddleComponent { + @ViewChild('vc', {read: ViewContainerRef, static: true}) vc!: ViewContainerRef; + } + + @Component({ + template: '...', + }) + class ThrowChild { + ngOnInit() { + throw new Error('Initial Error'); + } + } + + @Component({ + template: '', + }) + class Host { + @ViewChild('vc', {read: ViewContainerRef, static: true}) vc!: ViewContainerRef; + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + const middleRef = fixture.componentInstance.vc.createComponent(MiddleComponent, { + onError: (e: Error) => { + topError = e; + }, + }); + await fixture.whenStable(); + + middleRef.instance.vc.createComponent(ThrowChild, { + onError: (e: Error) => { + throw new Error('Secondary Error'); + }, + }); + + expect(() => fixture.detectChanges()).not.toThrow(); + + expect(topError).toBeDefined(); + expect(topError).toBeInstanceOf(Error); + expect(topError!.message).toBe('Secondary Error'); + }); + + it('should wrap non-Error exceptions in ErrorBoundaryWrappedError when used programmatically via createComponent', async () => { + let capturedError: Error | null = null; + + @Component({ + template: '{{ throwError() }}', + }) + class ThrowingStringComponent { + throwError() { + throw 'This is a string error'; + } + } + + @Component({ + template: '', + }) + class Host { + @ViewChild('vc', {read: ViewContainerRef, static: true}) vc!: ViewContainerRef; + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + fixture.componentInstance.vc.createComponent(ThrowingStringComponent, { + onError: (e: Error) => { + capturedError = e; + }, + }); + + expect(() => fixture.detectChanges()).not.toThrow(); + + expect(capturedError).toBeInstanceOf(ErrorBoundaryWrappedError); + expect(capturedError!.message).toContain( + "Error boundary caught an error that's not an Error instance: This is a string error", + ); + }); + + it('should populate ErrorDetails correctly when caught by programmatic onError', async () => { + let capturedDetails: any; + + @Component({ + template: '{{ throwError() }}', + }) + class ThrowingComponent { + throwError() { + throw new Error('Test Error'); + } + } + + @Component({ + template: '', + }) + class Host { + @ViewChild('vc', {read: ViewContainerRef, static: true}) vc!: ViewContainerRef; + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + const onErrorHandler = (e: Error, details: any) => { + capturedDetails = details; + }; + + fixture.componentInstance.vc.createComponent(ThrowingComponent, { + onError: onErrorHandler, + }); + + expect(() => fixture.detectChanges()).not.toThrow(); + + expect(capturedDetails).toBeDefined(); + expect(capturedDetails.declarationInstance).toBeInstanceOf(ThrowingComponent); + expect(capturedDetails.declarationType).toBe(ThrowingComponent); + expect(capturedDetails.caughtBy).toBe(onErrorHandler); + expect(capturedDetails.boundary).toBeUndefined(); + }); + + it('should catch errors from lazily loaded components', async () => { + @Component({ + selector: 'child-cmp-defer', + template: '
    Child
    ', + }) + class ChildCmpDefer { + ngOnInit() { + throw new Error('Child Error'); + } + } + + @Component({ + template: ` + @defer (when isVisible) { + @boundary { + + } @error (let err) { +
    Fallback: {{ err.message }}
    + } + } @loading { +
    Loading...
    + } + `, + imports: [ChildCmpDefer], + }) + class AppDeferTest { + isVisible = signal(false); + } + + TestBed.configureTestingModule({deferBlockBehavior: DeferBlockBehavior.Manual}); + const fixture = TestBed.createComponent(AppDeferTest); + await fixture.whenStable(); + + fixture.componentInstance.isVisible.set(true); + await fixture.whenStable(); + + const deferBlocks = await fixture.getDeferBlocks(); + await deferBlocks[0].render(DeferBlockState.Complete); + + expect(fixture.nativeElement.textContent).toContain('Fallback: Child Error'); + }); + + it('does not support catching errors from projected content', () => { + @Component({ + selector: 'throws-error', + template: '
    Throws
    ', + }) + class ThrowsError { + ngOnInit() { + throw new Error('Projected Error'); + } + } + + @Component({ + selector: 'wrapper', + template: ` + @boundary { + + } @error { +
    Fallback
    + } + `, + }) + class Wrapper {} + + @Component({ + selector: 'app', + template: ` + + + + `, + imports: [Wrapper, ThrowsError], + }) + class App {} + + const fixture = TestBed.createComponent(App); + expect(() => fixture.detectChanges()).toThrow(); + }); + + it('should catch errors from projected content when the boundary wraps the receiving component', async () => { + @Component({ + selector: 'throws-error', + template: '
    Throws
    ', + }) + class ThrowsError { + ngOnInit() { + throw new Error('Projected Error'); + } + } + + @Component({ + selector: 'wrapper', + template: '', + }) + class Wrapper {} + + @Component({ + template: ` + @boundary { + + + + } @error { +

    Fallback: {{ $error.message }}

    + } + `, + imports: [Wrapper, ThrowsError], + }) + class App {} + + const fixture = TestBed.createComponent(App); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Fallback: Projected Error'); + expect(fixture.nativeElement.querySelectorAll('wrapper').length).toBe(0); + }); + + it('should support nested boundaries and fallback cascading', async () => { + @Component({ + selector: 'nested-throwing-cmp', + template: '{{ throwError() }}', + }) + class NestedThrowingComponent { + throwError() { + throw new Error('Test Error'); + } + } + + @Component({ + template: ` + @boundary { + @boundary { + @if (show()) { + + } + } @error { + Inner Fallback + {{ maybeThrow() }} + } + } @error { + Outer Fallback + } + `, + imports: [NestedThrowingComponent], + }) + class Host { + show = signal(false); + shouldInnerThrow = signal(false); + maybeThrow() { + if (this.shouldInnerThrow()) { + throw new Error('Inner Fallback Error'); + } + return ''; + } + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + // Trigger the inner component to throw + fixture.componentInstance.show.set(true); + await fixture.whenStable(); + + // Inner boundary catches it + expect(fixture.nativeElement.textContent).toContain('Inner Fallback'); + expect(fixture.nativeElement.textContent).not.toContain('Outer Fallback'); + + // Now cause the inner boundary's error block to throw + fixture.componentInstance.shouldInnerThrow.set(true); + // Triggering CD will evaluate maybeThrow() in the inner error block and throw + await fixture.whenStable(); + // Outer boundary should catch the error from the inner boundary's error block + expect(fixture.nativeElement.textContent).toContain('Outer Fallback'); + expect(fixture.nativeElement.textContent).not.toContain('Inner Fallback'); + }); + + it('should catch errors from dynamically inserted components (ViewContainerRef)', async () => { + @Component({ + template: '{{ throwError() }}', + }) + class DynamicThrowComponent { + throwError() { + throw new Error('Dynamic Error'); + } + } + + @Component({ + template: ` + @boundary { + + } @error { + Fallback + } + `, + imports: [DynamicThrowComponent], + }) + class VcrHost { + @ViewChild('vcr', {read: ViewContainerRef}) vcr!: ViewContainerRef; + } + + const fixture = TestBed.createComponent(VcrHost); + await fixture.whenStable(); + + // Inject the dynamic component which will throw during its update phase + fixture.componentInstance.vcr.createComponent(DynamicThrowComponent); + // Since vcr.createComponent synchronously renders the new component, if it throws during + // initialization or initial template evaluation, it should be caught. + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Fallback'); + }); + + it('should catch errors thrown during @for loop evaluation', async () => { + @Component({ + template: ` + @boundary { +
      + @for (item of items(); track trackFn(item)) { +
    • {{ item }}
    • + } +
    + } @error { + Fallback + } + `, + }) + class ForHost { + items = signal([1]); + + trackFn(item: number) { + if (item === 2) { + throw new Error('Track Error'); + } + return item; + } + } + + const fixture = TestBed.createComponent(ForHost); + await fixture.whenStable(); + + // initially passes + expect(fixture.nativeElement.textContent).toContain('1'); + + // trigger the error in the track function + fixture.componentInstance.items.set([1, 2, 3]); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Fallback'); + }); +}); + +describe('@boundary runtime instructions (JIT)', () => { + @Component({ + selector: 'throwing-ctor', + template: '', + }) + class ThrowingCtor { + constructor() { + throw new Error('Ctor Error'); + } + } + + @Component({ + selector: 'throwing-hook', + template: '', + }) + class ThrowingHook { + @Input() shouldThrow = false; + ngOnChanges() { + if (this.shouldThrow) { + throw new Error('Hook Error'); + } + } + } + + it('should intercept errors thrown during component constructor', async () => { + @Component({ + template: ` + @boundary { + + Main Content + } @error (let err) { + Error: {{ err.message }} + } + `, + imports: [ThrowingCtor], + }) + class Host {} + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Error: Ctor Error'); + expect(fixture.nativeElement.textContent).not.toContain('Main Content'); + }); + + it('should intercept errors during the update phase (lifecycle hook)', async () => { + @Component({ + template: ` + @boundary { + + Main Content + } @error (let err) { + Error: {{ err.message }} + } + `, + imports: [ThrowingHook], + }) + class Host { + triggerError = signal(false); + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Main Content'); + + fixture.componentInstance.triggerError.set(true); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Error: Hook Error'); + }); + + it('should intercept errors during the update phase (template binding)', async () => { + @Component({ + template: ` + @boundary { + {{ throwInBinding() }} + Main Content + } @error (let err) { + Error: {{ err.message }} + } + `, + }) + class Host { + doThrow = signal(false); + throwInBinding() { + if (this.doThrow()) { + throw new Error('Binding Error'); + } + return ''; + } + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + expect(fixture.nativeElement.textContent).toContain('Main Content'); + + fixture.componentInstance.doThrow.set(true); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Error: Binding Error'); + }); + + it('should intercept errors from child view created during update', async () => { + @Component({ + template: ` + @boundary { + @if (showChild()) { + + } + Main Content + } @error (let err) { + Error: {{ err.message }} + } + `, + imports: [ThrowingCtor], + }) + class Host { + showChild = signal(false); + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Main Content'); + + fixture.componentInstance.showChild.set(true); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Error: Ctor Error'); + }); + + it('should not intercept errors originating from the error block', async () => { + let topError!: Error; + const CustomErrorHandler = { + handleError(error: Error) { + topError = error; + }, + }; + + @Component({ + template: ` + @boundary { + {{ throwInBinding() }} + } @error (let err) { + {{ throwInErrorBlock() }} + } + `, + }) + class Host { + doThrow = signal(false); + throwInBinding() { + if (this.doThrow()) { + throw new Error('Primary Error'); + } + return ''; + } + throwInErrorBlock() { + throw new Error('Secondary Error'); + } + } + + TestBed.configureTestingModule({ + providers: [{provide: ErrorHandler, useValue: CustomErrorHandler}], + rethrowApplicationErrors: false, + }); + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + fixture.componentInstance.doThrow.set(true); + await fixture.whenStable(); + + expect(topError).toBeDefined(); + expect(topError.message).toBe('Secondary Error'); + }); + + it('should support reset() mechanics in @error block', async () => { + let resetFn: (() => void) | undefined; + + @Component({ + template: ` + @boundary { + @if (doThrow()) { + {{ throwError() }} + } @else { + Main Content + } + } @error (let err, r = $reset) { + Error Content + {{ captureReset(r) }} + } + `, + }) + class TestComponent { + doThrow = signal(true); + + throwError() { + throw new Error('Original Error'); + } + + captureReset(r: () => void) { + resetFn = r; + return ''; + } + } + + const fixture = TestBed.createComponent(TestComponent); + await fixture.whenStable(); + + // Initially it should be in error state + expect(fixture.nativeElement.textContent).toContain('Error Content'); + expect(resetFn).toBeDefined(); + + // Now we "fix" the state that caused the error + fixture.componentInstance.doThrow.set(false); + + // And call reset (which is tearable) + resetFn!(); + + // Wait for change detection triggered by markViewForRefresh + await fixture.whenStable(); + + // Now it should be in primary state + expect(fixture.nativeElement.textContent).toContain('Main Content'); + }); + + it('should support full aliasing in @error block via compiler', async () => { + @Component({ + template: ` + @boundary { + @if (doThrow()) { + {{ throwError() }} + } @else { + Main Content + } + } @error (let err, r = $reset) { + Error: {{ err.message }} + + } + `, + }) + class Host { + doThrow = signal(true); + throwError() { + throw new Error('Binding Error'); + } + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Error: Binding Error'); + + // Fix state + fixture.componentInstance.doThrow.set(false); + + // Click reset button + const button = fixture.nativeElement.querySelector('button'); + button.click(); + + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Main Content'); + }); + + it('should support calling referencing $reset', async () => { + @Component({ + template: ` + @boundary { + {{ throwError() }} + } @error (let err) { + Error: {{ err.message }} + + } + `, + }) + class Host { + doThrow = signal(true); + throwError() { + if (this.doThrow()) { + throw new Error('Binding Error'); + } + return 'Main Content'; + } + } + + TestBed.configureTestingModule({rethrowApplicationErrors: false}); + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Error: Binding Error'); + + // Fix state + fixture.componentInstance.doThrow.set(false); + + // Click reset button + const button = fixture.nativeElement.querySelector('button'); + button.click(); + + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Main Content'); + }); + + it('should support referencing $error directly', async () => { + @Component({ + template: ` + @boundary { + @if (doThrow()) { + {{ throwError() }} + } @else { + Main Content + } + } @error { + Error: {{ $error.message }} + } + `, + }) + class Host { + doThrow = signal(true); + throwError() { + throw new Error('Binding Error'); + } + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Error: Binding Error'); + }); + + it('should support tearing $reset and calling it asynchronously', async () => { + @Component({ + template: ` + @boundary { + @if (doThrow()) { + {{ throwError() }} + } @else { + Main Content + } + } @error (let err, r = $reset) { + Error: {{ err.message }} + + } + `, + }) + class Host { + doThrow = signal(true); + throwError() { + throw new Error('Binding Error'); + } + handleReset(resetFn: Function) { + setTimeout(() => resetFn(), 0); + } + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Error: Binding Error'); + + // Fix state + fixture.componentInstance.doThrow.set(false); + + // Click reset button + const button = fixture.nativeElement.querySelector('button'); + button.click(); + + // Wait for setTimeout + await new Promise((resolve) => setTimeout(resolve, 10)); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Main Content'); + }); + + it('should support multiple @error blocks with when conditions', async () => { + class ChartError extends Error { + constructor(message: string) { + super(message); + this.name = 'ChartError'; + } + } + + @Component({ + template: ` + @boundary { + @if (doThrow()) { + {{ throwError() }} + } @else { + Main Content + } + } @error (let err; r = $reset; when isChartError(err)) { + Chart Error: {{ err.message }} + + } @error (let error; r = $reset) { + Generic Error: {{ error.message }} + + } + `, + }) + class Host { + doThrow = signal(true); + errorToThrow: Error = new ChartError('Chart Failed'); + + throwError() { + throw this.errorToThrow; + } + + isChartError(e: any) { + return e instanceof ChartError; + } + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Chart Error: Chart Failed'); + + // Click reset button to clear error and reset state to allow throwing again + const button = fixture.nativeElement.querySelector('#reset-chart'); + button.click(); + + fixture.componentInstance.doThrow.set(false); + await fixture.whenStable(); + expect(fixture.nativeElement.textContent).toContain('Main Content'); + + // Change error type and throw again + fixture.componentInstance.errorToThrow = new Error('Generic Failed'); + fixture.componentInstance.doThrow.set(true); + + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Generic Error: Generic Failed'); + }); + + it('should fall through and rethrow if no @error block matches', async () => { + class ChartError extends Error { + constructor(message: string) { + super(message); + this.name = 'ChartError'; + } + } + + @Component({ + template: ` + @boundary { + @if (doThrow()) { + {{ throwError() }} + } + } @error (let err; when isChartError(err)) { + Chart Error: {{ err.message }} + } + `, + }) + class Host { + doThrow = signal(true); + errorToThrow: Error = new Error('Generic Failed'); + + throwError() { + throw this.errorToThrow; + } + + isChartError(e: Error) { + return e instanceof ChartError; + } + } + + const fixture = TestBed.createComponent(Host); + expect(() => fixture.detectChanges()).toThrowError(/Unhandled error in @boundary fell through/); + }); + + it('should intercept errors thrown inside an effect', async () => { + @Component({ + selector: 'throwing-effect', + template: '', + }) + class ThrowingEffect { + constructor() { + effect(() => { + throw new Error('Effect Error'); + }); + } + } + + @Component({ + template: ` + @boundary { + + Main Content + } @error (let err) { + Error: {{ err.message }} + } + `, + imports: [ThrowingEffect], + }) + class Host {} + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Error: Effect Error'); + }); + + it('should intercept errors thrown inside an effect on a subsequent targeted update when no template is dirty', async () => { + const shouldThrow = signal(false); + + @Component({ + selector: 'throwing-effect', + template: '', + }) + class ThrowingEffect { + constructor() { + effect(() => { + if (shouldThrow()) { + throw new Error('Targeted Effect Error'); + } + }); + } + } + + @Component({ + template: ` + @boundary { + + Main Content + } @error (let err) { + Error: {{ err.message }} + } + `, + imports: [ThrowingEffect], + }) + class Host {} + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + expect(fixture.nativeElement.textContent).toContain('Main Content'); + + shouldThrow.set(true); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Error: Targeted Effect Error'); + expect(fixture.nativeElement.textContent).not.toContain('Main Content'); + }); + + it('should invoke onError outside of a reactive context', async () => { + let interceptedError: Error | undefined; + + @Component({ + template: '{{ throwError() }}', + }) + class ThrowingComponent { + throwError() { + throw new Error('Template Error'); + } + } + + @Component({ + template: '', + }) + class Host { + @ViewChild('vc', {read: ViewContainerRef, static: true}) vc!: ViewContainerRef; + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + const ref = fixture.componentInstance.vc.createComponent(ThrowingComponent, { + onError: (e: Error) => { + interceptedError = e; + // Creating an effect inside onError should not throw NG0602. + const effectRef = effect(() => {}, {injector: fixture.componentRef.injector}); + effectRef.destroy(); + }, + }); + expect(ref).toBeDefined(); + + await fixture.whenStable(); + expect(interceptedError?.message).toBe('Template Error'); + }); + + it('should continue traversing healthy dirty children when a view effect error is caught by onError', async () => { + const shouldThrow = signal(false); + const childText = signal('initial'); + let interceptedError: Error | undefined; + + @Component({ + selector: 'healthy-child', + template: '{{ text() }}', + }) + class HealthyChild { + text = childText; + } + + @Component({ + imports: [HealthyChild], + template: '', + }) + class ParentWithEffect { + constructor() { + effect(() => { + if (shouldThrow()) { + throw new Error('Parent Effect Error'); + } + }); + } + } + + @Component({ + template: '', + }) + class Host { + @ViewChild('vc', {read: ViewContainerRef, static: true}) vc!: ViewContainerRef; + } + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + fixture.componentInstance.vc.createComponent(ParentWithEffect, { + onError: (e: Error) => { + interceptedError = e; + }, + }); + await fixture.whenStable(); + expect(fixture.nativeElement.textContent).toBe('initial'); + + shouldThrow.set(true); + childText.set('updated'); + await fixture.whenStable(); + + expect(interceptedError?.message).toBe('Parent Effect Error'); + expect(fixture.nativeElement.textContent).toBe('updated'); + }); + + it('should populate ErrorDetails correctly when caught by @boundary and handled by ErrorHandler.onViewError', async () => { + let capturedDetails!: ErrorDetails; + let capturedError: Error; + + const CustomErrorHandler = { + handleError: () => {}, + onViewError: (e: Error, details: ErrorDetails) => { + capturedError = e; + capturedDetails = details; + }, + }; + + @Component({ + selector: 'throwing-cmp', + template: '{{ throwError() }}', + }) + class Throwing { + throwError() { + throw new Error('Test Error'); + } + } + + @Component({ + template: ` + @boundary { + + } @error { +

    Fallback

    + } + `, + imports: [Throwing], + }) + class Host {} + + TestBed.configureTestingModule({ + providers: [{provide: ErrorHandler, useValue: CustomErrorHandler}], + }); + + const fixture = TestBed.createComponent(Host); + await fixture.whenStable(); + + expect(capturedDetails).toBeDefined(); + expect(capturedDetails.declarationInstance).toBeInstanceOf(Throwing); + expect(capturedDetails.declarationType).toBe(Throwing); + expect(capturedDetails.boundary).toBeDefined(); + expect(capturedDetails.boundary!.type).toBe(Host); + expect(typeof capturedDetails.boundary!.reset).toBe('function'); + }); + + it('should allow signal writes in ErrorHandler and view queries when a view inside @boundary throws', async () => { + const errors = signal([]); + + class SignalWritingErrorHandler implements ErrorHandler { + handleError(error: unknown) { + errors.update((list) => [...list, error]); + } + } + + @Component({ + selector: 'app-throws', + template: '{{ boom() }}', + }) + class Throws { + boom(): string { + throw new Error('original'); + } + } + + @Component({ + template: ` + @boundary { + @if (true) { + + } + } @error { +

    {{ $error.message }}

    + } +
    + `, + imports: [Throws], + }) + class App { + anchor = viewChild('anchor'); + } + + TestBed.configureTestingModule({ + providers: [{provide: ErrorHandler, useClass: SignalWritingErrorHandler}], + }); + + const fixture = TestBed.createComponent(App); + await fixture.whenStable(); + + // The error should have been caught and the @error block should be rendered. + expect(fixture.nativeElement.textContent).toContain('original'); + // The signal writing ErrorHandler should have successfully written to the signal + expect(errors().length).toBe(1); + expect((errors()[0] as Error).message).toBe('original'); + }); +}); diff --git a/packages/core/test/render3/i18n/i18n_parse_spec.ts b/packages/core/test/render3/i18n/i18n_parse_spec.ts index 53fb556113e2..6366e226306a 100644 --- a/packages/core/test/render3/i18n/i18n_parse_spec.ts +++ b/packages/core/test/render3/i18n/i18n_parse_spec.ts @@ -10,7 +10,12 @@ import {ɵɵi18nApply, ɵɵi18nExp} from '../../../src/core'; import {applyCreateOpCodes} from '../../../src/render3/i18n/i18n_apply'; import {i18nStartFirstCreatePass} from '../../../src/render3/i18n/i18n_parse'; import {getTIcu} from '../../../src/render3/i18n/i18n_util'; -import {I18nUpdateOpCodes, IcuType, TI18n} from '../../../src/render3/interfaces/i18n'; +import { + I18nUpdateOpCodes, + IcuCreateOpCode, + IcuType, + TI18n, +} from '../../../src/render3/interfaces/i18n'; import {HEADER_OFFSET, HOST} from '../../../src/render3/interfaces/view'; import {matchTI18n, matchTIcu} from '../matchers'; @@ -341,6 +346,28 @@ describe('i18n_parse', () => { expect(fixture.host.innerHTML).toEqual(`
    `); }); }); + + it('should throw if an ICU expression exceeds the maximum reference node index', () => { + fixture = new ViewFixture({ + decls: IcuCreateOpCode.MAX_REF - HEADER_OFFSET - 2, + vars: 1, + }); + + expect(() => { + toT18n(`{\uFFFD0\uFFFD, select, other {

    }}`); + }).toThrowError(/ICU node index out of range/); + }); + + it('should throw if an ICU expression exceeds the maximum parent node index', () => { + fixture = new ViewFixture({ + decls: IcuCreateOpCode.MAX_PARENT - HEADER_OFFSET - 2, + vars: 1, + }); + + expect(() => { + toT18n(`{\uFFFD0\uFFFD, select, other {
    }}`); + }).toThrowError(/ICU node index out of range/); + }); }); function toT18n(text: string) { diff --git a/packages/core/test/render3/instructions/shared_spec.ts b/packages/core/test/render3/instructions/shared_spec.ts index cfcbd5b92d7a..1a09525e0977 100644 --- a/packages/core/test/render3/instructions/shared_spec.ts +++ b/packages/core/test/render3/instructions/shared_spec.ts @@ -71,6 +71,7 @@ export function enterViewWithOneDiv() { changeDetectionScheduler: null, ngReflect: false, tracingService: null, + locale: 'en-us', }, renderer, null, diff --git a/packages/core/test/render3/integration_spec.ts b/packages/core/test/render3/integration_spec.ts index 2423d675470f..807710596c94 100644 --- a/packages/core/test/render3/integration_spec.ts +++ b/packages/core/test/render3/integration_spec.ts @@ -10,9 +10,14 @@ import {CommonModule} from '@angular/common'; import { ChangeDetectionStrategy, Component, + createComponent, Directive, + EnvironmentInjector, HostBinding, + inject, provideZoneChangeDetection, + signal, + ViewContainerRef, } from '../../src/core'; import {TestBed} from '../../testing'; @@ -51,7 +56,6 @@ describe('element discovery', () => { class ChildComp {} @Component({ - selector: 'parent-comp', imports: [ChildComp], template: `
    @@ -112,7 +116,6 @@ describe('element discovery', () => { it('should return a context object from a given dom node', () => { @Component({ - selector: 'structured-comp', template: `
    @@ -140,7 +143,6 @@ describe('element discovery', () => { it('should cache the element context on a element was preemptively monkey-patched', () => { @Component({ - selector: 'structured-comp', template: `
    `, }) class StructuredComp {} @@ -162,7 +164,6 @@ describe('element discovery', () => { it("should cache the element context on an intermediate element that isn't preemptively monkey-patched", () => { @Component({ - selector: 'structured-comp', template: `

    @@ -187,7 +188,6 @@ describe('element discovery', () => { it('should be able to pull in element context data even if the element is decorated using styling', () => { @Component({ - selector: 'structured-comp', template: `
    `, }) class StructuredComp {} @@ -238,7 +238,6 @@ describe('element discovery', () => { class ProjectorComp {} @Component({ - selector: 'parent-comp', imports: [ProjectorComp], template: `
    @@ -301,7 +300,6 @@ describe('element discovery', () => { it('should return `null` when an element context is retrieved that is a DOM node that was not created by Angular', () => { @Component({ - selector: 'structured-comp', template: `
    `, }) class StructuredComp {} @@ -319,7 +317,6 @@ describe('element discovery', () => { it('should by default monkey-patch the bootstrap component with context details', () => { @Component({ - selector: 'structured-comp', template: ``, }) class StructuredComp {} @@ -379,7 +376,6 @@ describe('element discovery', () => { } @Component({ - selector: 'structured-comp', imports: [MyDir1, MyDir2, MyDir3], template: `
    @@ -464,7 +460,6 @@ describe('element discovery', () => { } @Component({ - selector: 'parent-comp', imports: [ChildComp, MyDir1, MyDir2], template: ` `, }) @@ -526,7 +521,6 @@ describe('element discovery', () => { class ChildComp {} @Component({ - selector: 'parent-comp', imports: [ChildComp], template: `
    @@ -562,15 +556,13 @@ describe('element discovery', () => { describe('sanitization', () => { it('should sanitize data using the provided sanitization interface', () => { @Component({ - selector: 'sanitize-this', - template: ` `, - changeDetection: ChangeDetectionStrategy.Eager, + template: ` `, }) class SanitizationComp { - href = ''; + href = signal(''); updateLink(href: any) { - this.href = href; + this.href.set(href); } } @@ -615,7 +607,6 @@ describe('sanitization', () => { } @Component({ - selector: 'sanitize-this', imports: [UnsafeUrlHostBindingDir], template: ` text `, changeDetection: ChangeDetectionStrategy.Eager, @@ -648,7 +639,6 @@ describe('sanitization', () => { it('should throw when binding to animate element with attributeName="href"', () => { @Component({ - selector: 'test-comp', template: ``, }) class TestComp {} @@ -673,7 +663,6 @@ describe('sanitization', () => { for (const attr of ['attributeName', 'attributename', 'attributenAme']) { it(`should throw when binding to set element with ${attr}="href"`, () => { @Component({ - selector: 'test-comp', template: ``, }) class TestComp {} @@ -688,9 +677,161 @@ describe('sanitization', () => { }); } - it('should not throw when binding to animate element when attributeName is not href', () => { + // One carrier per attribute: directive metadata has to be statically analyzable, so the bound + // attribute name cannot be interpolated into `host`. + const UNSAFE_VALUE = 'javascript:alert(1)'; + + @Directive({selector: '[bind-to]', host: {'[attr.to]': 'value'}}) + class BindTo { + value = UNSAFE_VALUE; + } + + @Directive({selector: '[bind-from]', host: {'[attr.from]': 'value'}}) + class BindFrom { + value = UNSAFE_VALUE; + } + + @Directive({selector: '[bind-values]', host: {'[attr.values]': 'value'}}) + class BindValues { + value = UNSAFE_VALUE; + } + + @Directive({selector: '[bind-attribute-name]', host: {'[attr.attributeName]': 'value'}}) + class BindAttributeName { + value = UNSAFE_VALUE; + } + + const attrCarriers = { + 'to': BindTo, + 'from': BindFrom, + 'values': BindValues, + 'attributeName': BindAttributeName, + }; + + // Binds one attribute on a host element created in the HTML namespace. Going through a concrete + // `hostElement` keeps the tag name out of the template, which lets the cases below be table + // driven. Returns the change detection call so the caller can assert on it. + function bindAttributeOutsideSvg( + tagName: string, + attrName: keyof typeof attrCarriers, + staticAttributeName: string, + ): () => void { + @Component({ + template: '', + }) + class DynamicHost {} + + const hostElement = document.createElement(tagName); + hostElement.setAttribute('attributeName', staticAttributeName); + + const componentRef = createComponent(DynamicHost, { + hostElement, + environmentInjector: TestBed.inject(EnvironmentInjector), + directives: [attrCarriers[attrName]], + }); + + return () => { + try { + componentRef.changeDetectorRef.detectChanges(); + } finally { + componentRef.destroy(); + } + }; + } + + // An animation element declared outside of an `` is created in the HTML namespace, but still + // animates once it ends up inside an `` subtree - for example when it is projected into one + // and the server-rendered markup is re-parsed by the browser. + const svgAnimationAttrs: Record = { + 'set': ['to', 'attributeName'], + 'animate': ['to', 'from', 'values', 'attributeName'], + 'animateMotion': ['attributeName'], + 'animateTransform': ['attributeName'], + }; + + for (const [tagName, attrNames] of Object.entries(svgAnimationAttrs)) { + for (const attrName of attrNames) { + it(`should throw when binding to \`${attrName}\` on a <${tagName}> outside of an svg element`, () => { + const detectChanges = bindAttributeOutsideSvg(tagName, attrName, 'href'); + + // The tag name is reported as the security check lower-cased it. + expect(detectChanges).toThrowError( + new RegExp( + `Angular has detected that the \`${attrName}\` was applied as a binding ` + + `to the <${tagName.toLowerCase()}> element`, + ), + ); + }); + } + } + + it('should throw when binding to a set element projected into an svg element', () => { + @Component({ + selector: 'svg-wrapper', + template: ` + + + + + + + + `, + }) + class SvgWrapper {} + + @Component({ + selector: 'test-comp', + imports: [SvgWrapper], + template: ` + + + + `, + }) + class TestComp {} + + const fixture = TestBed.createComponent(TestComp); + expect(() => fixture.detectChanges()).toThrowError( + /Angular has detected that the `to` was applied/, + ); + }); + + it('should throw when binding to a dynamically created set component host', () => { + @Component({ + selector: 'set[drilldown]', + template: '', + host: { + 'attributeName': 'href', + '[attr.to]': 'target', + }, + }) + class DynamicSetComp { + target = 'javascript:alert(1)'; + } + @Component({ selector: 'test-comp', + template: '', + }) + class TestComp { + readonly viewContainerRef = inject(ViewContainerRef); + } + + const fixture = TestBed.createComponent(TestComp); + fixture.componentInstance.viewContainerRef.createComponent(DynamicSetComp); + + expect(() => fixture.detectChanges()).toThrowError( + /Angular has detected that the `to` was applied/, + ); + }); + + it('should not throw when binding to a set element outside of an svg element when attributeName is not href', () => { + expect(bindAttributeOutsideSvg('set', 'to', 'display')).not.toThrow(); + }); + + it('should not throw when binding to animate element when attributeName is not href', () => { + @Component({ template: ``, }) class TestComp {} @@ -714,7 +855,6 @@ describe('sanitization', () => { @Component({ imports: [UnsafeUrlHostBindingDir], template: ` `, - changeDetection: ChangeDetectionStrategy.Eager, }) class SimpleComp {} @@ -736,7 +876,6 @@ describe('sanitization', () => { @Component({ imports: [UnsafeUrlHostBindingDir], template: ` `, - changeDetection: ChangeDetectionStrategy.Eager, }) class SimpleComp {} diff --git a/packages/core/test/render3/ivy/jit_spec.ts b/packages/core/test/render3/ivy/jit_spec.ts index b40f3aad1d07..8cef69cfe4d1 100644 --- a/packages/core/test/render3/ivy/jit_spec.ts +++ b/packages/core/test/render3/ivy/jit_spec.ts @@ -46,7 +46,7 @@ describe('render3 jit', () => { it('compiles a component', () => { @Component({ template: 'test', - selector: 'test-cmp', + standalone: false, }) class SomeCmp {} @@ -398,7 +398,6 @@ describe('render3 jit', () => { it('should add @Input properties to a component', () => { @Component({ - selector: 'input-comp', template: 'test', standalone: false, }) @@ -479,7 +478,6 @@ describe('render3 jit', () => { it('should compile ViewChild query on a component', () => { @Component({ - selector: 'test', template: '', standalone: false, }) @@ -492,7 +490,6 @@ describe('render3 jit', () => { it('should compile ViewChildren query on a component', () => { @Component({ - selector: 'test', template: '', standalone: false, }) @@ -564,7 +561,6 @@ describe('render3 jit', () => { it('should error when foreignImports is specified on a component in JIT mode', () => { expect(() => { @Component({ - selector: 'test-cmp', template: 'test', // @ts-ignore foreignImports: [fooImport(FooComponent)], @@ -579,7 +575,6 @@ describe('render3 jit', () => { it('should error when a foreign component is imported via imports array in JIT mode', () => { @Component({ - selector: 'test-cmp', template: 'test', imports: [fooImport(FooComponent) as any], }) diff --git a/packages/core/test/render3/jit/declare_component_spec.ts b/packages/core/test/render3/jit/declare_component_spec.ts index e4825f0d5b6b..dc99794d872d 100644 --- a/packages/core/test/render3/jit/declare_component_spec.ts +++ b/packages/core/test/render3/jit/declare_component_spec.ts @@ -8,6 +8,7 @@ import {core} from '@angular/compiler'; import { + AbstractType, ChangeDetectionStrategy, Component, Directive, @@ -15,7 +16,6 @@ import { forwardRef, Pipe, Type, - AbstractType, ViewEncapsulation, ɵɵngDeclareComponent, } from '../../../src/core'; diff --git a/packages/core/test/render3/node_animations_spec.ts b/packages/core/test/render3/node_animations_spec.ts new file mode 100644 index 000000000000..3f2cdeeab9c1 --- /dev/null +++ b/packages/core/test/render3/node_animations_spec.ts @@ -0,0 +1,130 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import {AnimationLViewData} from '../../src/animation/interfaces'; +import {allLeavingAnimations} from '../../src/animation/longest_animation'; +import {ANIMATION_QUEUE, AnimationQueue} from '../../src/animation/queue'; +import {Injector} from '../../src/di/injector'; +import {TNode, TNodeType} from '../../src/render3/interfaces/node'; +import {RElement} from '../../src/render3/interfaces/renderer_dom'; +import {ANIMATIONS, ID, LView, TVIEW} from '../../src/render3/interfaces/view'; +import { + clearViewDetachAnimations, + enableAnimationRuntimeSupport, + enableViewDetachAnimationsSupport, + initViewDetachAnimations, + maybeQueueEnterAnimation, + resetAnimationRuntimeSupportForTests, + runLeaveAnimationsWithCallback, +} from '../../src/render3/node_animations'; + +describe('node animations runtime switch', () => { + const tNode = { + index: 22, + type: TNodeType.Element, + parent: null, + child: null, + next: null, + } as unknown as TNode; + const parent = {} as RElement; + let queue: AnimationQueue; + let injector: Injector; + + // A view with no child nodes whose node 22 carries the given animation data, the way the + // animate instructions record it. + function viewWith(animations: AnimationLViewData): LView { + const lView: unknown[] = []; + lView[TVIEW] = {firstChild: null}; + lView[ID] = 4242; + lView[ANIMATIONS] = animations; + return lView as unknown as LView; + } + + beforeEach(() => { + resetAnimationRuntimeSupportForTests(); + queue = {queue: new Set(), isScheduled: false, scheduler: null, injector: null!}; + injector = Injector.create({providers: [{provide: ANIMATION_QUEUE, useValue: queue}]}); + }); + + afterEach(() => { + resetAnimationRuntimeSupportForTests(); + allLeavingAnimations.delete(4242); + }); + + describe('before an animate instruction ran', () => { + it('should remove a node right away, without touching the animation queue', () => { + const animateFn = jasmine.createSpy('animateFn'); + const lView = viewWith({leave: new Map([[tNode.index, {animateFns: [animateFn]}]])}); + const callback = jasmine.createSpy('callback'); + + runLeaveAnimationsWithCallback(lView, tNode, injector, callback); + + expect(callback).toHaveBeenCalledOnceWith(false); + expect(animateFn).not.toHaveBeenCalled(); + expect(queue.queue.size).toBe(0); + }); + + it('should not queue enter animations', () => { + const animateFn = jasmine.createSpy('animateFn'); + const lView = viewWith({enter: new Map([[tNode.index, {animateFns: [animateFn]}]])}); + + maybeQueueEnterAnimation(lView, parent, tNode, injector); + + expect(queue.queue.size).toBe(0); + }); + + it('should not track leave animations across a detach', () => { + const lView = viewWith({}); + + initViewDetachAnimations(lView); + expect(lView[ANIMATIONS]!.detachedLeaveAnimationFns).toBeUndefined(); + + clearViewDetachAnimations(lView); + expect(lView[ANIMATIONS]!.detachedLeaveAnimationFns).toBeUndefined(); + }); + }); + + describe('once an animate instruction enabled the runtime', () => { + it('should queue the leave animation and wait before removing the node', () => { + enableAnimationRuntimeSupport(); + const animateFn = jasmine.createSpy('animateFn'); + const lView = viewWith({leave: new Map([[tNode.index, {animateFns: [animateFn]}]])}); + const callback = jasmine.createSpy('callback'); + + runLeaveAnimationsWithCallback(lView, tNode, injector, callback); + + expect(callback).not.toHaveBeenCalled(); + expect(queue.queue.size).toBe(1); + }); + + it('should queue enter animations', () => { + enableAnimationRuntimeSupport(); + const animateFn = jasmine.createSpy('animateFn'); + const lView = viewWith({enter: new Map([[tNode.index, {animateFns: [animateFn]}]])}); + + maybeQueueEnterAnimation(lView, parent, tNode, injector); + + expect(queue.queue.has(animateFn)).toBe(true); + }); + + it('should track leave animations across a detach only when leave is enabled', () => { + enableAnimationRuntimeSupport(); + const lView = viewWith({}); + + initViewDetachAnimations(lView); + expect(lView[ANIMATIONS]!.detachedLeaveAnimationFns).toBeUndefined(); + + enableViewDetachAnimationsSupport(); + initViewDetachAnimations(lView); + expect(lView[ANIMATIONS]!.detachedLeaveAnimationFns).toEqual([]); + + clearViewDetachAnimations(lView); + expect(lView[ANIMATIONS]!.detachedLeaveAnimationFns).toBeUndefined(); + }); + }); +}); diff --git a/packages/core/test/render3/query_spec.ts b/packages/core/test/render3/query_spec.ts index e1fc7a90176a..725cedce42ba 100644 --- a/packages/core/test/render3/query_spec.ts +++ b/packages/core/test/render3/query_spec.ts @@ -44,7 +44,6 @@ describe('query', () => { // https://stackblitz.com/edit/ng-viewengine-viewchild-providers?file=src%2Fapp%2Fapp.component.ts it('should query for providers that are present on a directive', () => { @Component({ - selector: 'app', template: '
    ', imports: [MyDirective], }) @@ -64,7 +63,6 @@ describe('query', () => { it('should resolve a provider if given as read token', () => { @Component({ - selector: 'app', template: '
    ', imports: [MyDirective], }) @@ -93,7 +91,6 @@ describe('query', () => { } @Component({ - selector: 'app', template: `
    diff --git a/packages/core/test/render3/reactivity_spec.ts b/packages/core/test/render3/reactivity_spec.ts index e6196903371c..7d52e7c3cfee 100644 --- a/packages/core/test/render3/reactivity_spec.ts +++ b/packages/core/test/render3/reactivity_spec.ts @@ -17,7 +17,6 @@ import {toObservable} from '../../rxjs-interop'; import { AfterViewInit, ApplicationRef, - ChangeDetectionStrategy, ChangeDetectorRef, Component, computed, @@ -166,7 +165,6 @@ describe('reactivity', () => { let cleanupCount = 0; @Component({ - selector: 'test-cmp', template: '', }) class Cmp { @@ -244,7 +242,6 @@ describe('reactivity', () => { let didRun = false; @Component({ - selector: 'test-cmp', template: '', }) class Cmp implements AfterViewInit { @@ -349,7 +346,6 @@ describe('reactivity', () => { const source = signal(''); @Component({ - changeDetection: ChangeDetectionStrategy.OnPush, template: '{{ data }}', }) class TestCmp { @@ -392,7 +388,6 @@ describe('reactivity', () => { } @Component({ - changeDetection: ChangeDetectionStrategy.OnPush, providers: [Service], template: '{{ service.data }}', }) @@ -439,7 +434,6 @@ describe('reactivity', () => { @Component({ imports: [Dir], template: `{{ data }}`, - changeDetection: ChangeDetectionStrategy.OnPush, }) class TestCmp {} @@ -661,7 +655,6 @@ describe('reactivity', () => { } @Component({ - selector: 'test-cmp', imports: [WithInput], template: `|`, }) @@ -686,7 +679,6 @@ describe('reactivity', () => { } @Component({ - selector: 'test-cmp', imports: [WithConstructor], template: ``, }) @@ -712,7 +704,6 @@ describe('reactivity', () => { } @Component({ - selector: 'test-cmp', imports: [WithInputSetter], template: ` | @@ -740,7 +731,6 @@ describe('reactivity', () => { } @Component({ - selector: 'test-cmp', imports: [WithQuery], template: `
    `, }) @@ -755,7 +745,6 @@ describe('reactivity', () => { const state = signal('initial'); @Component({ - selector: 'with-query-setter', template: '
    ', }) class WithQuerySetter { @@ -770,7 +759,6 @@ describe('reactivity', () => { } @Component({ - selector: 'test-cmp', template: ``, }) class Cmp { @@ -802,7 +790,6 @@ describe('reactivity', () => { it('should allow toObservable subscription in template (with async pipe)', () => { @Component({ - selector: 'test-cmp', imports: [AsyncPipe], template: '{{counter$ | async}}', }) @@ -819,7 +806,6 @@ describe('reactivity', () => { it('should assign a debugName to the underlying node for an effect', async () => { @Component({ - selector: 'test-cmp', template: '', }) class Cmp { @@ -835,7 +821,6 @@ describe('reactivity', () => { it('should disallow writing to signals within computed', () => { @Component({ - selector: 'with-input', template: '{{comp()}}', }) class WriteComputed { @@ -853,7 +838,6 @@ describe('reactivity', () => { it('should disallow writing to signals within a template', () => { @Component({ - selector: 'with-input', template: '{{func()}}', }) class WriteComputed { @@ -868,11 +852,63 @@ describe('reactivity', () => { expect(() => fixture.detectChanges()).toThrowError(/NG0600.*template/); }); + it('should name the component and the signal when writing within a template', async () => { + @Component({ + selector: 'write-in-template', + template: '@if (true) {{{write()}}}', + }) + class WriteInTemplate { + sig = signal(0, {debugName: 'count'}); + write() { + this.sig.set(1); + } + } + + const fixture = TestBed.createComponent(WriteInTemplate); + + await expectAsync(fixture.whenStable()).toBeRejectedWithError( + /^NG0600: Writing to signals is not allowed while Angular renders the template \(eg\. interpolations\)\. Template location: 'WriteInTemplate' component\. Signal: 'count'\. Find more at/, + ); + }); + + it('should name the signal when writing within computed', async () => { + @Component({ + selector: 'write-in-computed', + template: '{{comp()}}', + }) + class WriteInComputed { + sig = signal(0, {debugName: 'count'}); + comp = computed(() => this.sig.set(1)); + } + + const fixture = TestBed.createComponent(WriteInComputed); + + await expectAsync(fixture.whenStable()).toBeRejectedWithError( + /^NG0600: Writing to signals is not allowed in a `computed`\. Signal: 'count'\. Find more at/, + ); + }); + + it('should keep the message short when the signal has no debugName', async () => { + @Component({ + selector: 'write-in-computed', + template: '{{comp()}}', + }) + class WriteInComputed { + sig = signal(0); + comp = computed(() => this.sig.set(1)); + } + + const fixture = TestBed.createComponent(WriteInComputed); + + await expectAsync(fixture.whenStable()).toBeRejectedWithError( + /^NG0600: Writing to signals is not allowed in a `computed`\. Find more at/, + ); + }); + describe('effects created in components should first run after ngOnInit', () => { it('when created during bootstrapping', () => { let log: string[] = []; @Component({ - selector: 'test-cmp', template: '', }) class TestCmp { @@ -896,7 +932,6 @@ describe('reactivity', () => { @Component({ selector: 'test-cmp', template: '', - changeDetection: ChangeDetectionStrategy.Eager, }) class TestCmp { ngOnInitRan = false; @@ -910,17 +945,15 @@ describe('reactivity', () => { } @Component({ - selector: 'driver-cmp', imports: [TestCmp], template: ` - @if (cond) { + @if (cond()) { } `, - changeDetection: ChangeDetectionStrategy.Eager, }) class DriverCmp { - cond = false; + cond = signal(false); } const fixture = TestBed.createComponent(DriverCmp); @@ -928,8 +961,7 @@ describe('reactivity', () => { expect(log).toEqual([]); // Toggle the @if, which should create and run the effect. - fixture.componentInstance.cond = true; - fixture.changeDetectorRef.markForCheck(); + fixture.componentInstance.cond.set(true); fixture.detectChanges(); expect(log).toEqual(['init', 'effect']); }); @@ -937,7 +969,6 @@ describe('reactivity', () => { it('when created dynamically', () => { let log: string[] = []; @Component({ - selector: 'test-cmp', template: '', }) class TestCmp { @@ -952,7 +983,6 @@ describe('reactivity', () => { } @Component({ - selector: 'driver-cmp', template: '', }) class DriverCmp { @@ -984,7 +1014,6 @@ describe('reactivity', () => { } @Component({ - selector: 'test-cmp', template: '', providers: [EffectService], }) @@ -1004,7 +1033,6 @@ describe('reactivity', () => { it('if multiple effects are created', () => { let log: string[] = []; @Component({ - selector: 'test-cmp', template: '', }) class TestCmp { @@ -1031,7 +1059,6 @@ describe('reactivity', () => { describe('should disallow creating an effect context', () => { it('inside template effect', () => { @Component({ - standalone: false, template: '{{someFn()}}', }) class Cmp { @@ -1056,7 +1083,6 @@ describe('reactivity', () => { it('inside an effect', () => { @Component({ - standalone: false, template: '', }) class Cmp { @@ -1097,7 +1123,6 @@ describe('reactivity', () => { const source = signal('initial'); @Component({ - selector: 'test-cmp', template: `{{ dynamic() }}{{ source() }}`, }) class TestCmp { diff --git a/packages/core/test/render3/util/view_traversal_utils_spec.ts b/packages/core/test/render3/util/view_traversal_utils_spec.ts index 51c8bcffe932..a8bb440443e4 100644 --- a/packages/core/test/render3/util/view_traversal_utils_spec.ts +++ b/packages/core/test/render3/util/view_traversal_utils_spec.ts @@ -21,7 +21,6 @@ describe('view_traversal_utils', () => { class ChildComponent {} @Component({ - selector: 'test-comp', template: '
    ', imports: [ChildComponent], }) @@ -47,7 +46,6 @@ describe('view_traversal_utils', () => { class ChildComponent {} @Component({ - selector: 'test-comp', template: '
    @if (show) {}
    ', imports: [ChildComponent], }) @@ -79,7 +77,6 @@ describe('view_traversal_utils', () => { class ProjectorComponent {} @Component({ - selector: 'test-comp', template: '', imports: [ProjectorComponent, ProjectedComponent], }) diff --git a/packages/core/test/render3/view_fixture.ts b/packages/core/test/render3/view_fixture.ts index 281ae848cba2..64c563bd03fd 100644 --- a/packages/core/test/render3/view_fixture.ts +++ b/packages/core/test/render3/view_fixture.ts @@ -118,6 +118,7 @@ export class ViewFixture { changeDetectionScheduler: {notify: noop, runningTick: false}, ngReflect: false, tracingService: null, + locale: 'en-us', }, hostRenderer, null, diff --git a/packages/core/test/resource/BUILD.bazel b/packages/core/test/resource/BUILD.bazel index 69dda747125c..2ef375225dfe 100644 --- a/packages/core/test/resource/BUILD.bazel +++ b/packages/core/test/resource/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "angular_jasmine_test", "ng_project", "ng_web_test_suite") +load("//tools:defaults.bzl", "ng_project", "ng_web_test_suite", "zoneless_jasmine_test") package(default_visibility = ["//visibility:private"]) @@ -16,7 +16,7 @@ ng_project( ], ) -angular_jasmine_test( +zoneless_jasmine_test( name = "resource", data = [ ":resource_lib", diff --git a/packages/core/test/resource/params_status_spec.ts b/packages/core/test/resource/params_status_spec.ts index 28f37b117aad..abcdba195b30 100644 --- a/packages/core/test/resource/params_status_spec.ts +++ b/packages/core/test/resource/params_status_spec.ts @@ -6,6 +6,8 @@ * found in the LICENSE file at https://angular.dev/license */ +import {timeout} from '@angular/private/testing'; + import {ApplicationRef, Injector, resource, ResourceParamsStatus, signal} from '../../src/core'; import {TestBed} from '../../testing'; @@ -19,6 +21,42 @@ function throwStatusAndErrors(source: () => T | ResourceParamsStatus | Error) } describe('resource with ResourceParamsStatus', () => { + for (const [paramsStatus, expectedStatus] of [ + [ResourceParamsStatus.IDLE, 'idle'], + [ResourceParamsStatus.LOADING, 'loading'], + [new Error('params error'), 'error'], + ] as const) { + it(`should cancel a pending load and release stability when params throws ${expectedStatus}`, async () => { + const params = signal('first'); + const abortSignals: AbortSignal[] = []; + const res = resource({ + params: throwStatusAndErrors(params), + loader: ({params, abortSignal}) => { + abortSignals.push(abortSignal); + // The first load deliberately remains pending even after it is aborted. + return params === 'first' ? new Promise(() => {}) : Promise.resolve(params); + }, + injector: TestBed.inject(Injector), + }); + const appRef = TestBed.inject(ApplicationRef); + + await timeout(); + expect(abortSignals[0]?.aborted).toBeFalse(); + + params.set(paramsStatus); + await appRef.whenStable(); + + expect(res.status()).toBe(expectedStatus); + expect(abortSignals.map((signal) => signal.aborted)).toEqual([true]); + + params.set('second'); + await appRef.whenStable(); + + expect(res.snapshot()).toEqual({status: 'resolved', value: 'second'}); + expect(abortSignals.map((signal) => signal.aborted)).toEqual([true, false]); + }); + } + it('should transition to idle when params throws ResourceParamsStatus.IDLE', async () => { const s = signal('foo'); const res = await act(() => @@ -117,6 +155,88 @@ describe('resource with ResourceParamsStatus', () => { expect(res.value()).toBe('foo'); expect(loadCount).toBe(1); }); + + it('should propagate a different error thrown from params', async () => { + const s = signal('foo'); + const res = await act(() => + resource({ + params: throwStatusAndErrors(s), + loader: async ({params}) => params as string, + injector: TestBed.inject(Injector), + }), + ); + + await act(() => s.set(new Error('first'))); + expect(res.status()).toBe('error'); + expect(res.error()).toEqual(new Error('first')); + + await act(() => s.set(new Error('second'))); + expect(res.status()).toBe('error'); + expect(res.error()).toEqual(new Error('second')); + }); + + it('should keep the status when an unrelated signal re-runs params that throws the same status', async () => { + const unrelated = signal(0); + const s = signal(ResourceParamsStatus.LOADING); + let paramsCount = 0; + let loadCount = 0; + const res = await act(() => + resource({ + params: () => { + paramsCount++; + unrelated(); + return throwStatusAndErrors(s)(); + }, + loader: async ({params}) => { + loadCount++; + return params; + }, + injector: TestBed.inject(Injector), + }), + ); + + expect(res.status()).toBe('loading'); + expect(paramsCount).toBe(1); + + await act(() => unrelated.set(1)); + + expect(paramsCount).toBe(2); + expect(res.status()).toBe('loading'); + expect(loadCount).toBe(0); + + await act(() => s.set('foo')); + expect(res.status()).toBe('resolved'); + expect(loadCount).toBe(1); + }); + + it('should distinguish between returning undefined and throwing undefined in params', async () => { + const throwIt = signal(false); + let loads = 0; + + const res = await act(() => + resource({ + params: () => { + if (throwIt()) { + throw undefined; + } + return undefined; + }, + loader: async () => { + loads++; + return 'loaded'; + }, + injector: TestBed.inject(Injector), + }), + ); + + expect(res.status()).toBe('idle'); + expect(loads).toBe(0); + + await act(() => throwIt.set(true)); + + expect(res.status()).toBe('error'); + expect(loads).toBe(0); + }); }); async function act(fn: () => T): Promise { diff --git a/packages/core/test/resource/resource_spec.ts b/packages/core/test/resource/resource_spec.ts index 5d878802f707..99690e9bcada 100644 --- a/packages/core/test/resource/resource_spec.ts +++ b/packages/core/test/resource/resource_spec.ts @@ -6,6 +6,8 @@ * found in the LICENSE file at https://angular.dev/license */ +import {timeout} from '@angular/private/testing'; + import { ApplicationRef, ɵCACHE_ACTIVE as CACHE_ACTIVE, @@ -462,6 +464,72 @@ describe('resource', () => { expect(aborted).toEqual([{counter: 0}]); }); + it('should cancel a pending load and release stability when params becomes undefined', async () => { + const params = signal(1); + let abortSignal: AbortSignal | undefined; + const res = resource({ + params, + loader: (options) => { + abortSignal = options.abortSignal; + // Aborting a loader does not require its promise to settle. + return new Promise(() => {}); + }, + injector: TestBed.inject(Injector), + }); + const appRef = TestBed.inject(ApplicationRef); + + await timeout(); + expect(abortSignal?.aborted).toBeFalse(); + + params.set(undefined); + await appRef.whenStable(); + + expect(abortSignal?.aborted).toBeTrue(); + expect(res.snapshot()).toEqual({status: 'idle', value: undefined}); + }); + + for (const settlement of ['resolve', 'reject'] as const) { + it(`should discard a cancelled load's late ${settlement} without releasing a newer load's pending task`, async () => { + const params = signal(1); + const first = promiseWithResolvers(); + const second = promiseWithResolvers(); + const abortSignals: AbortSignal[] = []; + const res = resource({ + params, + loader: ({params, abortSignal}) => { + abortSignals.push(abortSignal); + return params === 1 ? first.promise : second.promise; + }, + injector: TestBed.inject(Injector), + }); + const appRef = TestBed.inject(ApplicationRef); + + await timeout(); + params.set(undefined); + await appRef.whenStable(); + + params.set(2); + await timeout(); + + let stable = false; + const whenStable = appRef.whenStable().then(() => (stable = true)); + if (settlement === 'resolve') { + first.resolve(1); + } else { + first.reject(new Error('cancelled load')); + } + await timeout(); + + expect(res.snapshot()).toEqual({status: 'loading', value: undefined}); + expect(abortSignals.map((signal) => signal.aborted)).toEqual([true, false]); + expect(stable).toBeFalse(); + + second.resolve(2); + await whenStable; + expect(res.snapshot()).toEqual({status: 'resolved', value: 2}); + }); + } + it('should cancel pending requests when the resource is destroyed via injector', async () => { const counter = signal(0); const backend = new MockEchoBackend<{counter: number}>(); @@ -527,6 +595,79 @@ describe('resource', () => { expect(aborted).toEqual([{counter: 0}]); }); + it('should reuse the same abort reason when aborting in-progress resource loads', async () => { + const signals: AbortSignal[] = []; + const injector = createEnvironmentInjector([], TestBed.inject(EnvironmentInjector)); + const resources = [0, 1].map((id) => + resource({ + params: () => id, + loader: ({abortSignal}) => { + signals.push(abortSignal); + return new Promise(() => {}); // never resolves + }, + injector, + }), + ); + + TestBed.tick(); + await Promise.resolve(); + + resources.forEach((res) => res.destroy()); + + expect(signals.length).toBe(2); + expect(signals[0].aborted).toBeTrue(); + expect(signals[0].reason).toEqual(jasmine.any(DOMException)); + expect(signals[0].reason.name).toBe('AbortError'); + expect(signals[1].reason).toBe(signals[0].reason); + }); + + it('should not abort completed non-streaming resources on destroy', async () => { + let capturedSignal: AbortSignal | undefined; + const res = resource({ + loader: async ({abortSignal}) => { + capturedSignal = abortSignal; + return 'loaded'; + }, + injector: TestBed.inject(Injector), + }); + + TestBed.tick(); + await flushMicrotasks(); + + expect(res.status()).toBe('resolved'); + expect(res.value()).toBe('loaded'); + expect(capturedSignal!.aborted).toBeFalse(); + + res.destroy(); + + // The load was already completed, so destroying the resource should not trigger abort + expect(capturedSignal!.aborted).toBeFalse(); + }); + + it('should abort streaming resources on destroy using the shared abort reason', async () => { + let capturedSignal: AbortSignal | undefined; + const streamSignal = signal({value: 42}); + const res = resource({ + stream: ({abortSignal}) => { + capturedSignal = abortSignal; + return streamSignal; + }, + injector: TestBed.inject(Injector), + }); + + TestBed.tick(); + await flushMicrotasks(); + + expect(res.status()).toBe('resolved'); + expect(capturedSignal!.aborted).toBeFalse(); + + res.destroy(); + + expect(capturedSignal!.aborted).toBeTrue(); + expect(capturedSignal!.reason).toEqual(jasmine.any(DOMException)); + expect(capturedSignal!.reason.name).toBe('AbortError'); + }); + it('should not respond to reactive state changes in a loader', async () => { const unrelated = signal('a'); const backend = new MockResponseCountingBackend(); @@ -824,7 +965,6 @@ describe('resource', () => { it('should allow stream from input()', async () => { @Component({ - selector: 'test', template: `{{ res.value() }}`, }) class TestComponent { @@ -1032,6 +1172,46 @@ describe('resource', () => { expect(echoResource.error()).toEqual(undefined); }); + it('should not reload when a signal read in params changes but params returns the same value', async () => { + const routeParams = signal<{id: string; tab: string}>({id: '1', tab: 'overview'}); + let loadCount = 0; + + const userResource = resource({ + params: () => routeParams().id, + loader: async ({params: id}) => { + loadCount++; + return `user-${id}-${loadCount}`; + }, + injector: TestBed.inject(Injector), + }); + + await flushMicrotasks(); + expect(loadCount).toBe(1); + expect(userResource.value()).toBe('user-1-1'); + + // Updating `routeParams` with a new object that has the same `id` should not re-run the loader + routeParams.set({id: '1', tab: 'orders'}); + await flushMicrotasks(); + expect(loadCount).toBe(1); + expect(userResource.value()).toBe('user-1-1'); + + // Even after a manual reload(), a subsequent signal update with the same `id` should not trigger another reload + userResource.reload(); + await flushMicrotasks(); + expect(loadCount).toBe(2); + expect(userResource.value()).toBe('user-1-2'); + + routeParams.set({id: '1', tab: 'settings'}); + await flushMicrotasks(); + expect(loadCount).toBe(2); + expect(userResource.value()).toBe('user-1-2'); + + routeParams.set({id: '2', tab: 'settings'}); + await flushMicrotasks(); + expect(loadCount).toBe(3); + expect(userResource.value()).toBe('user-2-3'); + }); + describe('types', () => { it('should narrow hasValue() when the value can be undefined', () => { const result: ResourceRef = resource({ diff --git a/packages/core/test/sanitization/html_sanitizer_spec.ts b/packages/core/test/sanitization/html_sanitizer_spec.ts index 4a729b4cc548..c4ff32e3d265 100644 --- a/packages/core/test/sanitization/html_sanitizer_spec.ts +++ b/packages/core/test/sanitization/html_sanitizer_spec.ts @@ -237,6 +237,8 @@ describe('HTML sanitizer', () => { sanitizeHtml(defaultDoc, 'A'); const firstChild = () => sanitizeHtml(defaultDoc, 'B
    '); + const nestedFirstChild = () => + sanitizeHtml(defaultDoc, '
    C
    '); // Note: we have a different behavior here in a real browser and when running in Node, // when Domino is used to emulate DOM: @@ -254,13 +256,15 @@ describe('HTML sanitizer', () => { // depending on a platform. if (isBrowser) { // Running in a real browser - const errorMsg = 'Failed to sanitize html because the element is clobbered: '; + const errorMsg = 'Action failed because the element is clobbered: '; expect(nextSibling).toThrowError(`${errorMsg}`); expect(firstChild).toThrowError(`${errorMsg}`); + expect(nestedFirstChild).toThrowError(`${errorMsg}`); } else { // Running in Node, using Domino DOM emulation expect(nextSibling()).toBe('A'); expect(firstChild()).toBe('B'); + expect(nestedFirstChild()).toBe('C'); } }); @@ -296,6 +300,49 @@ describe('HTML sanitizer', () => { ); }); + it('should clear each inert tree before parsing the next one', () => { + // Create the cached inert helper first, so that only the parses below are recorded. + sanitizeHtml(defaultDoc, ''); + const inertRoots: Node[] = []; + // For each parse, how many of the earlier inert trees still have content. + const populatedAtParse: number[] = []; + const countPopulated = () => inertRoots.filter((root) => root.firstChild).length; + + if (isDOMParserAvailable()) { + const parseFromString = DOMParser.prototype.parseFromString; + spyOn(DOMParser.prototype, 'parseFromString').and.callFake(function ( + this: DOMParser, + html: string, + type: DOMParserSupportedType, + ) { + populatedAtParse.push(countPopulated()); + const doc = parseFromString.call(this, html, type); + inertRoots.push(doc.body); + return doc; + }); + } else { + // Domino's parser also calls `createElement` for its own root, so only record templates. + const createElement = Document.prototype.createElement; + spyOn(Document.prototype, 'createElement').and.callFake(function ( + this: Document, + tagName: string, + options?: ElementCreationOptions, + ): any { + const element = createElement.call(this, tagName, options); + if (tagName === 'template') { + populatedAtParse.push(countPopulated()); + inertRoots.push((element as HTMLTemplateElement).content); + } + return element; + }); + } + + // The input is parsed three times, because its serialization differs from it. + expect(sanitizeHtml(defaultDoc, '

    a

    b')).toBe('

    a

    b

    '); + expect(populatedAtParse).toEqual([0, 0, 0]); + expect(countPopulated()).toBe(0); + }); + if (isDOMParserAvailable()) { it('should work even if DOMParser returns a null body', () => { // Simulate `DOMParser.parseFromString()` returning a null body. diff --git a/packages/core/test/sanitization/sanitization_spec.ts b/packages/core/test/sanitization/sanitization_spec.ts index c8d794fe4d87..0a5880256a81 100644 --- a/packages/core/test/sanitization/sanitization_spec.ts +++ b/packages/core/test/sanitization/sanitization_spec.ts @@ -91,6 +91,11 @@ describe('sanitization', () => { ).toEqual('javascript:true'); }); + it('should map null and undefined resourceUrls to an empty string', () => { + expect(ɵɵsanitizeResourceUrl(null).toString()).toEqual(''); + expect(ɵɵsanitizeResourceUrl(undefined).toString()).toEqual(''); + }); + it('should sanitize style', () => { expect(ɵɵsanitizeStyle('red')).toEqual('red'); expect(ɵɵsanitizeStyle(new Wrap('red'))).toEqual('red'); diff --git a/packages/core/test/signals/BUILD.bazel b/packages/core/test/signals/BUILD.bazel index d3602b0b55d1..cca993968c74 100644 --- a/packages/core/test/signals/BUILD.bazel +++ b/packages/core/test/signals/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "jasmine_test", "ng_web_test_suite", "ts_project") +load("//tools:defaults.bzl", "ng_web_test_suite", "ts_project", "zoneless_jasmine_test") package(default_visibility = ["//visibility:private"]) @@ -16,7 +16,7 @@ ts_project( ], ) -jasmine_test( +zoneless_jasmine_test( name = "signals", data = [ ":signals_lib", diff --git a/packages/core/test/signals/computed_spec.ts b/packages/core/test/signals/computed_spec.ts index aa9d235de9ea..713b1783c7a0 100644 --- a/packages/core/test/signals/computed_spec.ts +++ b/packages/core/test/signals/computed_spec.ts @@ -327,6 +327,7 @@ describe('computed', () => { shouldThrow = false; source.set(2); expect(derived()).toBe(2); + expect((derived as any)[SIGNAL].error).toBeNull(); }); }); diff --git a/packages/core/test/signals/linked_signal_spec.ts b/packages/core/test/signals/linked_signal_spec.ts index 03f6f72447d7..cf8bb261eb10 100644 --- a/packages/core/test/signals/linked_signal_spec.ts +++ b/packages/core/test/signals/linked_signal_spec.ts @@ -7,7 +7,8 @@ */ import {isSignal, linkedSignal, signal, computed} from '../../src/core'; -import {defaultEquals, setPostProducerCreatedFn} from '../../primitives/signals'; +import {defaultEquals, setPostProducerCreatedFn, SIGNAL} from '../../primitives/signals'; +import {global} from '../../src/util/global'; import {flushEffects, testingEffect} from './effect_util'; describe('linkedSignal', () => { @@ -58,6 +59,51 @@ describe('linkedSignal', () => { expect(choice.toString()).toBe('[LinkedSignal (TestChoice): apple]'); }); + it('should support debugName in shorthand options', () => { + const choice = linkedSignal(() => 'apple', {debugName: 'TestChoice'}); + + expect(choice.toString()).toBe('[LinkedSignal (TestChoice): apple]'); + }); + + describe('in production mode', () => { + let previousNgDevMode: typeof ngDevMode; + + beforeEach(() => { + previousNgDevMode = global['ngDevMode']; + global['ngDevMode'] = false; + }); + + afterEach(() => { + global['ngDevMode'] = previousNgDevMode; + }); + + it('should not read debugName from the options object', () => { + const debugName = jasmine.createSpy('debugName').and.returnValue('TestChoice'); + const choice = linkedSignal({ + source: () => 'apple', + computation: (value) => value, + get debugName() { + return debugName(); + }, + }); + + expect(choice()).toBe('apple'); + expect(debugName).not.toHaveBeenCalled(); + }); + + it('should not read debugName from shorthand options', () => { + const debugName = jasmine.createSpy('debugName').and.returnValue('TestChoice'); + const choice = linkedSignal(() => 'apple', { + get debugName() { + return debugName(); + }, + }); + + expect(choice()).toBe('apple'); + expect(debugName).not.toHaveBeenCalled(); + }); + }); + it('should update when the source changes', () => { const options = signal(['apple', 'banana', 'fig']); const choice = linkedSignal({ @@ -520,4 +566,21 @@ describe('linkedSignal', () => { } }); }); + + it('should clear stored error on node after recovering from an error', () => { + const shouldThrow = signal(true); + const state = linkedSignal(() => { + if (shouldThrow()) { + throw new Error('computation failed'); + } + return 'ok'; + }); + + expect(() => state()).toThrowError('computation failed'); + expect((state as any)[SIGNAL].error).toEqual(jasmine.any(Error)); + + shouldThrow.set(false); + expect(state()).toBe('ok'); + expect((state as any)[SIGNAL].error).toBeNull(); + }); }); diff --git a/packages/core/test/test_bed_effect_spec.ts b/packages/core/test/test_bed_effect_spec.ts index d28a4ec87f4b..5766e790bba8 100644 --- a/packages/core/test/test_bed_effect_spec.ts +++ b/packages/core/test/test_bed_effect_spec.ts @@ -25,7 +25,6 @@ describe('effects in TestBed', () => { it('created in the constructor should run with detectChanges()', () => { const log: string[] = []; @Component({ - selector: 'test-cmp', template: '', }) class Cmp { @@ -60,7 +59,6 @@ describe('effects in TestBed', () => { it('created in ngOnInit should run with detectChanges()', () => { const log: string[] = []; @Component({ - selector: 'test-cmp', template: '', }) class Cmp { @@ -103,7 +101,6 @@ describe('effects in TestBed', () => { const val = signal('initial'); let observed = ''; @Component({ - selector: 'test-cmp', template: '', }) class Cmp { diff --git a/packages/core/test/test_bed_spec.ts b/packages/core/test/test_bed_spec.ts index 5796f0d929af..f5f69aee6393 100644 --- a/packages/core/test/test_bed_spec.ts +++ b/packages/core/test/test_bed_spec.ts @@ -206,7 +206,6 @@ describe('TestBed (isolated)', () => { TestBedImpl.INSTANCE.globalCompilationChecked = false; @Component({ - selector: 'root', template: '
    ', standalone: false, }) @@ -260,7 +259,6 @@ describe('TestBed with Standalone types', () => { class MockDep {} @Component({ - selector: 'app-root', imports: [MainDep], template: '', }) @@ -460,7 +458,12 @@ describe('TestBed with Standalone types', () => { @Component({ template: '
    {{ name | pipe }}
    ', - imports: [MyStandalonePipeA, MyStandaloneDirectiveA], + imports: [ + MyStandalonePipeA, + MyStandaloneDirectiveA, + MyStandaloneDirectiveB, + MyStandalonePipeB, + ], }) class MyStandaloneComp { name = 'MyStandaloneComp'; @@ -539,8 +542,7 @@ describe('TestBed with Standalone types', () => { class TestNgModule {} @Component({ - selector: 'test-component', - imports: [TestNgModule], + imports: [TestNgModule, TestPipe], template: `{{ 'original value' | testPipe }}`, }) class TestComponent {} @@ -583,7 +585,6 @@ describe('TestBed with Standalone types', () => { class TestModule {} @Component({ - selector: 'app-root', template: ``, imports: [TestModule], }) @@ -657,13 +658,11 @@ describe('TestBed', () => { it('should not allow overrides of the `standalone` field', () => { @Component({ - selector: 'standalone-comp', template: '...', }) class StandaloneComponent {} @Component({ - selector: 'non-standalone-comp', template: '...', standalone: false, }) @@ -963,7 +962,6 @@ describe('TestBed', () => { class TestModule {} @Component({ - selector: 'app-root', template: ``, standalone: false, }) @@ -1053,7 +1051,6 @@ describe('TestBed', () => { // AppModule content: @Component({ - selector: 'app', template: ` @@ -1433,16 +1430,13 @@ describe('TestBed', () => { class MyProvider {} @Component({ - selector: 'my-comp', template: ``, - standalone: false, }) class MyComp { constructor(@Inject(MY_TOKEN) public myProviders: MyProvider[]) {} } TestBed.configureTestingModule({ - declarations: [MyComp], providers: [{provide: MY_TOKEN, useValue: {value: 'old provider'}, multi: true}], }); @@ -1463,9 +1457,7 @@ describe('TestBed', () => { it('should not trigger change detection for ComponentA while calling TestBed.createComponent for ComponentB', () => { const log: string[] = []; @Component({ - selector: 'comp-a', template: '...', - standalone: false, }) class CompA { @Input() inputA: string = ''; @@ -1475,9 +1467,7 @@ describe('TestBed', () => { } @Component({ - selector: 'comp-b', template: '...', - standalone: false, }) class CompB { @Input() inputB: string = ''; @@ -1486,8 +1476,6 @@ describe('TestBed', () => { } } - TestBed.configureTestingModule({declarations: [CompA, CompB]}); - log.length = 0; const appA = TestBed.createComponent(CompA); appA.componentInstance.inputA = 'a'; @@ -1534,9 +1522,7 @@ describe('TestBed', () => { it('should throw errors in CD', () => { @Component({ - selector: 'my-comp', template: '', - standalone: false, }) class MyComp { name!: {hello: string}; @@ -1547,8 +1533,6 @@ describe('TestBed', () => { } } - TestBed.configureTestingModule({declarations: [MyComp]}); - expect(() => { const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -1560,9 +1544,7 @@ describe('TestBed', () => { // change to completely fix (since simple re-throwing breaks handlers in ngrx, etc). xit('should throw errors in listeners', () => { @Component({ - selector: 'my-comp', template: '', - standalone: false, }) class MyComp { name!: {hello: string}; @@ -1573,7 +1555,6 @@ describe('TestBed', () => { } } - TestBed.configureTestingModule({declarations: [MyComp]}); const fixture = TestBed.createComponent(MyComp); fixture.detectChanges(); @@ -1619,7 +1600,7 @@ describe('TestBed', () => { @Component({ template: '', - selector: 'fixture', + standalone: false, }) class Fixture {} @@ -2105,7 +2086,6 @@ describe('TestBed', () => { @Directive({ selector: '[dir]', providers: [{provide: A, useValue: 'A'}], - standalone: false, }) class SomeDir { constructor( @@ -2156,7 +2136,7 @@ describe('TestBed', () => { @Component({ template: '', - selector: 'fixture', + standalone: false, }) class TestFixture {} @@ -2203,7 +2183,6 @@ describe('TestBed', () => { } @Component({ - selector: 'comp', template: 'someText', standalone: false, }) @@ -2317,7 +2296,6 @@ describe('TestBed', () => { class ChildCmp {} @Component({ - selector: 'root', template: '', standalone: false, }) @@ -2733,7 +2711,6 @@ describe('TestBed module teardown', () => { it('should re-throw errors that were thrown during fixture cleanup', () => { @Component({ template: '', - standalone: false, }) class ThrowsOnDestroy { ngOnDestroy() { @@ -2742,14 +2719,13 @@ describe('TestBed module teardown', () => { } TestBed.configureTestingModule({ - declarations: [ThrowsOnDestroy], teardown: {destroyAfterEach: true}, }); TestBed.createComponent(ThrowsOnDestroy); const spy = spyOn(console, 'error'); expect(() => TestBed.resetTestingModule()).toThrowError( - '1 component threw errors during cleanup', + '1 fixture threw errors during cleanup', ); expect(spy).toHaveBeenCalledTimes(1); }); @@ -2757,7 +2733,6 @@ describe('TestBed module teardown', () => { it('should not interrupt fixture destruction if an error is thrown', () => { @Component({ template: '', - standalone: false, }) class ThrowsOnDestroy { ngOnDestroy() { @@ -2766,7 +2741,6 @@ describe('TestBed module teardown', () => { } TestBed.configureTestingModule({ - declarations: [ThrowsOnDestroy], teardown: {destroyAfterEach: true}, }); @@ -2776,7 +2750,7 @@ describe('TestBed module teardown', () => { const spy = spyOn(console, 'error'); expect(() => TestBed.resetTestingModule()).toThrowError( - '3 components threw errors during cleanup', + '3 fixtures threw errors during cleanup', ); expect(spy).toHaveBeenCalledTimes(3); }); @@ -2791,7 +2765,6 @@ describe('TestBed module teardown', () => { @Component({ template: '', - standalone: false, }) class App { constructor(_service: ThrowsOnDestroy) {} @@ -2799,7 +2772,7 @@ describe('TestBed module teardown', () => { TestBed.configureTestingModule({ providers: [ThrowsOnDestroy], - declarations: [App], + teardown: {destroyAfterEach: true}, }); TestBed.createComponent(App); @@ -2817,7 +2790,6 @@ describe('TestBed module teardown', () => { @Component({ template: '', - standalone: false, }) class App { constructor(_service: ThrowsOnDestroy) {} @@ -2825,7 +2797,7 @@ describe('TestBed module teardown', () => { TestBed.configureTestingModule({ providers: [ThrowsOnDestroy], - declarations: [App], + teardown: {destroyAfterEach: true, rethrowErrors: false}, }); TestBed.createComponent(App); @@ -2845,7 +2817,6 @@ describe('TestBed module teardown', () => { } `, ], - standalone: false, }) class StyledComp1 {} @@ -2858,12 +2829,10 @@ describe('TestBed module teardown', () => { } `, ], - standalone: false, }) class StyledComp2 {} TestBed.configureTestingModule({ - declarations: [StyledComp1, StyledComp2], teardown: {destroyAfterEach: true}, }); diff --git a/packages/core/test/testability/testability_spec.ts b/packages/core/test/testability/testability_spec.ts index 547f7ef134fe..a2e0d2c1bc16 100644 --- a/packages/core/test/testability/testability_spec.ts +++ b/packages/core/test/testability/testability_spec.ts @@ -6,6 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ +import {timeout} from '@angular/private/testing'; import {EventEmitter} from '../../src/core'; import {Injectable} from '../../src/di'; import {PendingTasks} from '../../src/pending_tasks'; @@ -19,7 +20,7 @@ import { setTestabilityGetter, } from '../../src/testability/testability'; import {NgZone} from '../../src/zone/ng_zone'; -import {fakeAsync, tick, waitForAsync, TestBed} from '../../testing'; +import {TestBed} from '../../testing'; // Schedules a microtasks (using queueMicrotask) function microTask(fn: Function): void { @@ -70,7 +71,7 @@ describe('TestabilityRegistry', () => { let registry: TestabilityRegistry; let ngZone: MockNgZone; - beforeEach(waitForAsync(() => { + beforeEach(() => { ngZone = new MockNgZone(); registry = new TestabilityRegistry(); TestBed.configureTestingModule({ @@ -81,7 +82,7 @@ describe('TestabilityRegistry', () => { }); testability1 = TestBed.inject(Testability); testability2 = TestBed.inject(Testability); - })); + }); afterEach(() => { // Instantiating the Testability (via `new Testability` above) has a side // effect of defining the testability getter globally to a specified value. @@ -127,7 +128,7 @@ describe('Testability with PendingTasks', () => { let pendingTasks: PendingTasks; let ngZone: MockNgZone; - beforeEach(waitForAsync(() => { + beforeEach(async () => { ngZone = new MockNgZone(); TestBed.configureTestingModule({ providers: [ @@ -142,61 +143,61 @@ describe('Testability with PendingTasks', () => { execute = jasmine.createSpy('execute'); execute2 = jasmine.createSpy('execute2'); updateCallback = jasmine.createSpy('updateCallback'); - })); + await Promise.resolve(); + }); describe('NgZone callback logic', () => { describe('whenStable with timeout', () => { - it('should fire if Angular is already stable', waitForAsync(() => { + it('should fire if Angular is already stable', async () => { testability.whenStable(execute, 200); - microTask(() => { - expect(execute).toHaveBeenCalled(); - }); - })); + await new Promise((resolve) => microTask(resolve)); + expect(execute).toHaveBeenCalled(); + }); - it('should fire when macroTasks are cancelled', fakeAsync(() => { - const id = ngZone.run(() => setTimeout(() => {}, 1000)); - testability.whenStable(execute, 500); + it('should fire when macroTasks are cancelled', async () => { + const id = ngZone.run(() => setTimeout(() => {}, 100)); + testability.whenStable(execute, 50); - tick(200); + await timeout(20); ngZone.run(() => clearTimeout(id)); - // fakeAsync doesn't trigger NgZones whenStable + // cancelling a macrotask doesn't trigger NgZone's onStable pendingTasks.add()(); - tick(1); + await timeout(1); expect(execute).toHaveBeenCalled(); - })); + }); - it('calls the done callback when angular is stable', fakeAsync(() => { + it('calls the done callback when angular is stable', async () => { let timeout1Done = false; - ngZone.run(() => setTimeout(() => (timeout1Done = true), 500)); - testability.whenStable(execute, 1000); + ngZone.run(() => setTimeout(() => (timeout1Done = true), 25)); + testability.whenStable(execute, 50); - tick(600); + await timeout(30); pendingTasks.add()(); - tick(); + await timeout(); expect(timeout1Done).toEqual(true); expect(execute).toHaveBeenCalled(); // Should cancel the done timeout. - tick(500); + await timeout(25); pendingTasks.add()(); - tick(); + await timeout(); expect(execute.calls.count()).toEqual(1); - })); + }); - it('calls update when macro tasks change', fakeAsync(() => { + it('calls update when macro tasks change', async () => { let timeout1Done = false; let timeout2Done = false; - ngZone.run(() => setTimeout(() => (timeout1Done = true), 500)); - tick(); - testability.whenStable(execute, 1000, updateCallback); + ngZone.run(() => setTimeout(() => (timeout1Done = true), 25)); + await timeout(); + testability.whenStable(execute, 50, updateCallback); - tick(100); - ngZone.run(() => setTimeout(() => (timeout2Done = true), 300)); + await timeout(5); + ngZone.run(() => setTimeout(() => (timeout2Done = true), 15)); expect(updateCallback.calls.count()).toEqual(1); - tick(600); + await timeout(30); expect(timeout1Done).toEqual(true); expect(timeout2Done).toEqual(true); @@ -204,40 +205,41 @@ describe('Testability with PendingTasks', () => { expect(execute).toHaveBeenCalled(); const update1 = updateCallback.calls.all()[0].args[0] as PendingMacrotask[]; - expect(update1[0].data!.delay).toEqual(500); + expect(update1[0].data!.delay).toEqual(25); const update2 = updateCallback.calls.all()[1].args[0] as PendingMacrotask[]; - expect(update2[0].data!.delay).toEqual(500); - expect(update2[1].data!.delay).toEqual(300); - })); + expect(update2[0].data!.delay).toEqual(25); + expect(update2[1].data!.delay).toEqual(15); + }); - it('cancels the done callback if the update callback returns true', fakeAsync(() => { + it('cancels the done callback if the update callback returns true', async () => { let timeoutDone = false; const task = pendingTasks.add(); execute2.and.returnValue(true); - testability.whenStable(execute, 1000, execute2); + testability.whenStable(execute, 50, execute2); - tick(100); - ngZone.run(() => setTimeout(() => (timeoutDone = true), 500)); + await timeout(5); + ngZone.run(() => setTimeout(() => (timeoutDone = true), 25)); task(); + await timeout(); expect(execute2).toHaveBeenCalled(); - tick(500); + await timeout(25); pendingTasks.add()(); - tick(); + await timeout(); expect(execute).not.toHaveBeenCalled(); - })); + }); }); - it('should fire whenstable callback if event is already finished', fakeAsync(() => { + it('should fire whenstable callback if event is already finished', async () => { const task = pendingTasks.add(); task(); testability.whenStable(execute); - tick(); + await timeout(); expect(execute).toHaveBeenCalled(); - })); + }); it('should not fire whenstable callbacks synchronously if event is already finished', () => { const task = pendingTasks.add(); @@ -247,17 +249,17 @@ describe('Testability with PendingTasks', () => { expect(execute).not.toHaveBeenCalled(); }); - it('should fire whenstable callback when event finishes', fakeAsync(() => { + it('should fire whenstable callback when event finishes', async () => { const task = pendingTasks.add(); testability.whenStable(execute); - tick(); + await timeout(); expect(execute).not.toHaveBeenCalled(); task(); - tick(); + await timeout(); expect(execute).toHaveBeenCalled(); - })); + }); it('should not fire whenstable callbacks synchronously when event finishes', () => { const task = pendingTasks.add(); @@ -267,46 +269,46 @@ describe('Testability with PendingTasks', () => { expect(execute).not.toHaveBeenCalled(); }); - it('should fire whenstable callback with didWork if event is already finished', fakeAsync(() => { + it('should fire whenstable callback with didWork if event is already finished', async () => { const task = pendingTasks.add(); task(); testability.whenStable(execute); - tick(); + await timeout(); expect(execute).toHaveBeenCalled(); testability.whenStable(execute2); - tick(); + await timeout(); expect(execute2).toHaveBeenCalled(); - })); + }); - it('should fire whenstable callback with didwork when event finishes', fakeAsync(() => { + it('should fire whenstable callback with didwork when event finishes', async () => { const task = pendingTasks.add(); testability.whenStable(execute); - tick(); + await timeout(); task(); - tick(); + await timeout(); expect(execute).toHaveBeenCalled(); testability.whenStable(execute2); - tick(); + await timeout(); expect(execute2).toHaveBeenCalled(); - })); + }); }); - it('should consider pending tasks when enabled', fakeAsync(() => { + it('should consider pending tasks when enabled', async () => { const task = pendingTasks.add(); testability.whenStable(execute); - tick(); + await timeout(); expect(execute).not.toHaveBeenCalled(); task(); - tick(); + await timeout(); expect(execute).toHaveBeenCalled(); - })); + }); }); describe('Testability with PendingTasks disabled', () => { @@ -315,7 +317,7 @@ describe('Testability with PendingTasks disabled', () => { let pendingTasks: PendingTasks; let ngZone: MockNgZone; - beforeEach(waitForAsync(() => { + beforeEach(async () => { ngZone = new MockNgZone(); TestBed.configureTestingModule({ providers: [ @@ -328,14 +330,15 @@ describe('Testability with PendingTasks disabled', () => { pendingTasks = TestBed.inject(PendingTasks); testability = TestBed.inject(Testability); execute = jasmine.createSpy('execute'); - })); + await Promise.resolve(); + }); - it('should ignore pending tasks when Zone is present by default', fakeAsync(() => { + it('should ignore pending tasks when Zone is present by default', async () => { const task = pendingTasks.add(); testability.whenStable(execute); - tick(); + await timeout(); expect(execute).toHaveBeenCalled(); task(); - })); + }); }); diff --git a/packages/core/test/transfer_state_spec.ts b/packages/core/test/transfer_state_spec.ts index e5c78d8fe797..984d4c09e057 100644 --- a/packages/core/test/transfer_state_spec.ts +++ b/packages/core/test/transfer_state_spec.ts @@ -6,11 +6,12 @@ * found in the LICENSE file at https://angular.dev/license */ -import {APP_ID as APP_ID_TOKEN, PLATFORM_ID} from '../src/core'; +import {APP_ID as APP_ID_TOKEN, Injector, PLATFORM_ID} from '../src/core'; import {TestBed} from '../testing'; import {DOCUMENT} from '../src/document'; import {makeStateKey, TransferState} from '../src/transfer_state'; +import {getTransferState} from '../src/render3/util/transfer_state_utils'; function removeScriptTag(doc: Document, id: string) { let node = doc.getElementById(id); @@ -235,4 +236,14 @@ describe('TransferState', () => { }); expect(transferState.get(makeStateKey('constructor'), null)).toBe('state'); }); + + it('exposes keys that name object prototype properties through getTransferState', () => { + addScriptTag(doc, APP_ID, '{"__proto__":{"cached":true},"constructor":"state"}'); + const state = getTransferState(TestBed.inject(Injector)); + + expect(Object.keys(state)).toEqual(['__proto__', 'constructor']); + expect(state['__proto__']).toEqual({cached: true}); + expect(state['constructor']).toBe('state'); + expect(Object.getPrototypeOf(state)).toBeNull(); + }); }); diff --git a/packages/core/test/util/dom_spec.ts b/packages/core/test/util/dom_spec.ts index 532600e73383..c9beffe18c93 100644 --- a/packages/core/test/util/dom_spec.ts +++ b/packages/core/test/util/dom_spec.ts @@ -45,5 +45,23 @@ describe('comment node text escaping', () => { expect(escapeCommentText('.->')).toEqual('.->'); expect(escapeCommentText(' { + // The `--` belongs to both the ``/`-->` marker. + expect(escapeCommentText('')).toEqual('\u200b<\u200b!---\u200b>\u200b'); + expect(escapeCommentText(' `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class AppComponent {} const fixture = initTest(AppComponent, MyCustomComponentDirective); const validateFnSpy = spyOn(MaxValidator.prototype, 'validate'); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const mv = fixture.debugElement.query(By.directive(MaxValidator)); expect(mv).toBeNull(); @@ -2148,9 +2029,8 @@ describe('template-driven forms integration tests', () => { it('should not include the min and max validators for inputs with type range', async () => { @Component({ + imports: [FormsModule, CommonModule], template: '', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class AppComponent {} @@ -2158,8 +2038,7 @@ describe('template-driven forms integration tests', () => { const maxValidateFnSpy = spyOn(MaxValidator.prototype, 'validate'); const minValidateFnSpy = spyOn(MinValidator.prototype, 'validate'); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const maxValidator = fixture.debugElement.query(By.directive(MaxValidator)); expect(maxValidator).toBeNull(); @@ -2174,20 +2053,18 @@ describe('template-driven forms integration tests', () => { describe('enabling validators conditionally', () => { it('should not include the minLength and maxLength validators for null', async () => { @Component({ + imports: [FormsModule, CommonModule], template: - '
    ', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + '
    ', }) class MinLengthMaxLengthComponent { - minlen: number | null = null; - maxlen: number | null = null; + minlen = signal(null); + maxlen = signal(null); control!: FormControl; } const fixture = initTest(MinLengthMaxLengthComponent); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('input')).nativeElement; const form = fixture.debugElement.children[0].injector.get(NgForm); @@ -2205,20 +2082,19 @@ describe('template-driven forms integration tests', () => { failedValidator?: string; } - const setInputValue = (value: number) => { + const setInputValue = async (value: number) => { input.value = value; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); }; const verifyValidatorAttrValues = (values: {minlength: any; maxlength: any}) => { expect(input.getAttribute('minlength')).toBe(values.minlength); expect(input.getAttribute('maxlength')).toBe(values.maxlength); }; - const setValidatorValues = (values: minmax) => { - fixture.componentInstance.minlen = values.minlength; - fixture.componentInstance.maxlen = values.maxlength; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + const setValidatorValues = async (values: minmax) => { + fixture.componentInstance.minlen.set(values.minlength); + fixture.componentInstance.maxlen.set(values.maxlength); + await fixture.whenStable(); }; const verifyFormState = (state: state) => { expect(form.valid).toBe(state.isValid); @@ -2235,49 +2111,47 @@ describe('template-driven forms integration tests', () => { // 2. Verify that setting validator inputs (to a value different from `null`) activate // validators. - setInputValue(12345); - setValidatorValues({minlength: 2, maxlength: 4}); + await setInputValue(12345); + await setValidatorValues({minlength: 2, maxlength: 4}); verifyValidatorAttrValues({minlength: '2', maxlength: '4'}); verifyFormState({isValid: false, failedValidator: 'maxlength'}); // 3. Changing value to the valid range should make the form valid. - setInputValue(123); + await setInputValue(123); verifyFormState({isValid: true}); // 4. Changing value to trigger `minlength` validator. - setInputValue(1); + await setInputValue(1); verifyFormState({isValid: false, failedValidator: 'minlength'}); // 5. Changing validator inputs to verify that attribute values are updated (and the // form is now valid). - setInputValue(1); - setValidatorValues({minlength: 1, maxlength: 5}); + await setInputValue(1); + await setValidatorValues({minlength: 1, maxlength: 5}); verifyValidatorAttrValues({minlength: '1', maxlength: '5'}); verifyFormState({isValid: true}); // 6. Reset validator inputs back to `null` should deactivate validators. - setInputValue(123); - setValidatorValues({minlength: null, maxlength: null}); + await setInputValue(123); + await setValidatorValues({minlength: null, maxlength: null}); verifyValidatorAttrValues({minlength: null, maxlength: null}); verifyFormState({isValid: true}); }); it('should not include the min and max validators for null', async () => { @Component({ + imports: [FormsModule, CommonModule], template: - '
    ', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + '
    ', }) class MinLengthMaxLengthComponent { - minlen: number | null = null; - maxlen: number | null = null; + minlen = signal(null); + maxlen = signal(null); control!: FormControl; } const fixture = initTest(MinLengthMaxLengthComponent); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('input')).nativeElement; const form = fixture.debugElement.children[0].injector.get(NgForm); @@ -2295,20 +2169,19 @@ describe('template-driven forms integration tests', () => { failedValidator?: string; } - const setInputValue = (value: number) => { + const setInputValue = async (value: number) => { input.value = value; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); }; const verifyValidatorAttrValues = (values: {min: any; max: any}) => { expect(input.getAttribute('min')).toBe(values.min); expect(input.getAttribute('max')).toBe(values.max); }; - const setValidatorValues = (values: minmax) => { - fixture.componentInstance.minlen = values.min; - fixture.componentInstance.maxlen = values.max; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + const setValidatorValues = async (values: minmax) => { + fixture.componentInstance.minlen.set(values.min); + fixture.componentInstance.maxlen.set(values.max); + await fixture.whenStable(); }; const verifyFormState = (state: state) => { expect(form.valid).toBe(state.isValid); @@ -2325,29 +2198,29 @@ describe('template-driven forms integration tests', () => { // 2. Verify that setting validator inputs (to a value different from `null`) activate // validators. - setInputValue(12345); - setValidatorValues({min: 2, max: 4}); + await setInputValue(12345); + await setValidatorValues({min: 2, max: 4}); verifyValidatorAttrValues({min: '2', max: '4'}); verifyFormState({isValid: false, failedValidator: 'max'}); // 3. Changing value to the valid range should make the form valid. - setInputValue(3); + await setInputValue(3); verifyFormState({isValid: true}); // 4. Changing value to trigger `minlength` validator. - setInputValue(1); + await setInputValue(1); verifyFormState({isValid: false, failedValidator: 'min'}); // 5. Changing validator inputs to verify that attribute values are updated (and the // form is now valid). - setInputValue(1); - setValidatorValues({min: 1, max: 5}); + await setInputValue(1); + await setValidatorValues({min: 1, max: 5}); verifyValidatorAttrValues({min: '1', max: '5'}); verifyFormState({isValid: true}); // 6. Reset validator inputs back to `null` should deactivate validators. - setInputValue(123); - setValidatorValues({min: null, max: null}); + await setInputValue(123); + await setValidatorValues({min: null, max: null}); verifyValidatorAttrValues({min: null, max: null}); verifyFormState({isValid: true}); }); @@ -2360,33 +2233,32 @@ describe('template-driven forms integration tests', () => { fixture.componentInstance.min = inputType === 'string' ? '5' : 5; fixture.componentInstance.max = inputType === 'string' ? '10' : 10; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('input')).nativeElement; const form = fixture.debugElement.children[0].injector.get(NgForm); input.value = ''; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(true); expect(form.controls['min_max'].errors).toBeNull(); input.value = 11; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(false); expect(form.controls['min_max'].errors).toEqual({max: {max: 10, actual: 11}}); input.value = 4; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(false); expect(form.controls['min_max'].errors).toEqual({min: {min: 5, actual: 4}}); input.value = 9; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(true); expect(form.controls['min_max'].errors).toBeNull(); }); @@ -2395,33 +2267,32 @@ describe('template-driven forms integration tests', () => { const fixture = initTest(NgModelMinMaxValidator); fixture.componentInstance.min = 5; fixture.componentInstance.max = 10; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('input')).nativeElement; const form = fixture.debugElement.children[0].injector.get(NgForm); input.value = ''; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(true); expect(form.controls['min_max'].errors).toBeNull(); input.value = 11; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(false); expect(form.controls['min_max'].errors).toEqual({max: {max: 10, actual: 11}}); input.value = 4; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(false); expect(form.controls['min_max'].errors).toEqual({min: {min: 5, actual: 4}}); input.value = 9; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(true); expect(form.controls['min_max'].errors).toBeNull(); }); @@ -2430,33 +2301,32 @@ describe('template-driven forms integration tests', () => { const fixture = initTest(NgModelMinMaxValidator); fixture.componentInstance.min = 5; fixture.componentInstance.max = 10; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('input')).nativeElement; const form = fixture.debugElement.children[0].injector.get(NgForm); input.value = ''; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(true); expect(form.controls['min_max'].errors).toBeNull(); input.value = '11'; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(false); expect(form.controls['min_max'].errors).toEqual({max: {max: 10, actual: 11}}); input.value = '4'; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(false); expect(form.controls['min_max'].errors).toEqual({min: {min: 5, actual: 4}}); input.value = '9'; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(true); expect(form.controls['min_max'].errors).toBeNull(); }); @@ -2465,46 +2335,45 @@ describe('template-driven forms integration tests', () => { const fixture = initTest(NgModelMinMaxValidator); fixture.componentInstance.min = 5; fixture.componentInstance.max = 10; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('input')).nativeElement; const form = fixture.debugElement.children[0].injector.get(NgForm); input.value = 10; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(true); expect(form.controls['min_max'].errors).toBeNull(); input.value = 12; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(false); expect(form.controls['min_max'].errors).toEqual({max: {max: 10, actual: 12}}); fixture.componentInstance.max = 12; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); expect(form.valid).toEqual(true); expect(form.controls['min_max'].errors).toBeNull(); input.value = 5; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(true); expect(form.controls['min_max'].errors).toBeNull(); input.value = 0; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(false); expect(form.controls['min_max'].errors).toEqual({min: {min: 5, actual: 0}}); fixture.componentInstance.min = 0; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); expect(form.valid).toEqual(true); expect(form.controls['min_max'].errors).toBeNull(); }); @@ -2513,8 +2382,7 @@ describe('template-driven forms integration tests', () => { const fixture = initTest(NgModelMinMaxValidator); fixture.componentInstance.min = 5; fixture.componentInstance.max = 10; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('input')).nativeElement; const form = fixture.debugElement.children[0].injector.get(NgForm); @@ -2524,7 +2392,7 @@ describe('template-driven forms integration tests', () => { input.value = ''; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toEqual(true); expect(form.controls['min_max'].errors).toBeNull(); @@ -2536,33 +2404,32 @@ describe('template-driven forms integration tests', () => { const fixture = initTest(NgModelMinMaxValidator); fixture.componentInstance.min = -20; fixture.componentInstance.max = -10; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('input')).nativeElement; const form = fixture.debugElement.children[0].injector.get(NgForm); input.value = '-30'; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toBeFalse(); expect(form.controls['min_max'].errors).toEqual({min: {min: -20, actual: -30}}); input.value = -15; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toBeTruthy(); expect(form.controls['min_max'].errors).toBeNull(); input.value = -5; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toBeFalse(); expect(form.controls['min_max'].errors).toEqual({max: {max: -10, actual: -5}}); input.value = 0; dispatchEvent(input, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.valid).toBeFalse(); expect(form.controls['min_max'].errors).toEqual({max: {max: -10, actual: 0}}); }); @@ -2576,7 +2443,6 @@ describe('template-driven forms integration tests', () => { providers: [ {provide: NG_VALIDATORS, useExisting: forwardRef(() => NoOpValidator), multi: true}, ], - standalone: false, }) class NoOpValidator implements Validator { @Input() validatorInput = ''; @@ -2599,7 +2465,6 @@ describe('template-driven forms integration tests', () => { multi: true, }, ], - standalone: false, }) class NoOpAsyncValidator implements AsyncValidator { @Input() validatorInput = ''; @@ -2614,7 +2479,7 @@ describe('template-driven forms integration tests', () => { } @Component({ - selector: 'ng-model-noop-validation', + imports: [FormsModule, CommonModule, NoOpValidator, NoOpAsyncValidator], template: `
    {
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelNoOpValidation { validatorInput = 'foo'; @@ -2636,15 +2499,14 @@ describe('template-driven forms integration tests', () => { } const fixture = initTest(NgModelNoOpValidation, NoOpValidator, NoOpAsyncValidator); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); expect(registerOnValidatorChangeFired).toBe(1); expect(registerOnAsyncValidatorChangeFired).toBe(1); fixture.componentInstance.validatorInput = 'bar'; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); // Changing validator inputs should not cause `registerOnValidatorChange` to be invoked, // since it's invoked just once during the setup phase. @@ -2659,15 +2521,14 @@ describe('template-driven forms integration tests', () => { const inputEl = fixture.debugElement.query(By.css('input')); const inputNativeEl = inputEl.nativeElement; fixture.componentInstance.name = 'oldValue'; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); expect(inputNativeEl.value).toEqual('oldValue'); inputEl.triggerEventHandler('compositionstart'); inputNativeEl.value = 'updatedValue'; dispatchEvent(inputNativeEl, 'input'); - await timeout(); + await fixture.whenStable(); const isAndroid = /android (\d+)/.test(getDOM().getUserAgent().toLowerCase()); if (isAndroid) { @@ -2679,8 +2540,7 @@ describe('template-driven forms integration tests', () => { inputEl.triggerEventHandler('compositionend', {target: {value: 'updatedValue'}}); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); expect(fixture.componentInstance.name).toEqual('updatedValue'); } @@ -2694,23 +2554,21 @@ describe('template-driven forms integration tests', () => { const inputEl = fixture.debugElement.query(By.css('input')); const inputNativeEl = inputEl.nativeElement; fixture.componentInstance.name = 'oldValue'; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); expect(inputNativeEl.value).toEqual('oldValue'); inputEl.triggerEventHandler('compositionstart'); inputNativeEl.value = 'updatedValue'; dispatchEvent(inputNativeEl, 'input'); - await timeout(); + await fixture.whenStable(); // ngModel should not update when compositionstart expect(fixture.componentInstance.name).toEqual('oldValue'); inputEl.triggerEventHandler('compositionend', {target: {value: 'updatedValue'}}); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); // ngModel should update when compositionend expect(fixture.componentInstance.name).toEqual('updatedValue'); @@ -2725,15 +2583,14 @@ describe('template-driven forms integration tests', () => { const inputEl = fixture.debugElement.query(By.css('input')); const inputNativeEl = inputEl.nativeElement; fixture.componentInstance.name = 'oldValue'; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); expect(inputNativeEl.value).toEqual('oldValue'); inputEl.triggerEventHandler('compositionstart'); inputNativeEl.value = 'updatedValue'; dispatchEvent(inputNativeEl, 'input'); - await timeout(); + await fixture.whenStable(); // ngModel should update normally expect(fixture.componentInstance.name).toEqual('updatedValue'); @@ -2744,65 +2601,59 @@ describe('template-driven forms integration tests', () => { it('should update the view when the model is set back to what used to be in the view', async () => { const fixture = initTest(StandaloneNgModel); fixture.componentInstance.name = ''; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('input')).nativeElement; input.value = 'aa'; input.selectionStart = 1; dispatchEvent(input, 'input'); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); expect(fixture.componentInstance.name).toEqual('aa'); // Programmatically update the input value to be "bb". fixture.componentInstance.name = 'bb'; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); expect(input.value).toEqual('bb'); // Programatically set it back to "aa". fixture.componentInstance.name = 'aa'; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); expect(input.value).toEqual('aa'); }); it('should not crash when validity is checked from a binding', async () => { const fixture = initTest(NgModelValidBinding); - await timeout(); - expect(() => fixture.detectChanges()).not.toThrowError(); + await expectAsync(fixture.whenStable()).toBeResolved(); }); describe('cross-component boundary warning', () => { - it('should warn when ngModel in a child component cannot reach parent NgForm via @Host()', () => { + it('should warn when ngModel in a child component cannot reach parent NgForm via @Host()', async () => { const warnSpy = spyOn(console, 'warn'); const fixture = initTest(NgModelCrossComponentParent, NgModelCrossComponentChild); - fixture.detectChanges(); + await fixture.whenStable(); expect(warnSpy).toHaveBeenCalledWith(jasmine.stringContaining('NgForm')); expect(warnSpy).toHaveBeenCalledWith(jasmine.stringContaining('viewProviders')); }); - it('should warn with FormGroupDirective name when ngModel cannot reach parent FormGroupDirective via @Host()', () => { + it('should warn with FormGroupDirective name when ngModel cannot reach parent FormGroupDirective via @Host()', async () => { const warnSpy = spyOn(console, 'warn'); TestBed.configureTestingModule({ - declarations: [NgModelCrossComponentFormGroupParent, NgModelCrossComponentFormGroupChild], imports: [FormsModule, ReactiveFormsModule, CommonModule], }); const fixture = TestBed.createComponent(NgModelCrossComponentFormGroupParent); - fixture.detectChanges(); + await fixture.whenStable(); expect(warnSpy).toHaveBeenCalledWith(jasmine.stringContaining('FormGroupDirective')); expect(warnSpy).toHaveBeenCalledWith(jasmine.stringContaining('viewProviders')); }); - it('should warn with NgModelGroup name when ngModel cannot reach parent NgModelGroup via @Host()', () => { + it('should warn with NgModelGroup name when ngModel cannot reach parent NgModelGroup via @Host()', async () => { const warnSpy = spyOn(console, 'warn'); const fixture = initTest(NgModelCrossComponentGroupParent, NgModelCrossComponentGroupChild); - fixture.detectChanges(); + await fixture.whenStable(); expect(warnSpy).toHaveBeenCalledWith(jasmine.stringContaining('NgModelGroup')); expect(warnSpy).not.toHaveBeenCalledWith( jasmine.stringContaining('useExisting: ControlContainer'), @@ -2812,51 +2663,44 @@ describe('template-driven forms integration tests', () => { it('should not warn when ngModel is in the same component as NgForm', async () => { const warnSpy = spyOn(console, 'warn'); const fixture = initTest(NgModelForm); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); expect(warnSpy).not.toHaveBeenCalledWith(jasmine.stringContaining('viewProviders')); }); - it('should not warn when child component uses viewProviders to bridge ControlContainer', () => { + it('should not warn when child component uses viewProviders to bridge ControlContainer', async () => { const warnSpy = spyOn(console, 'warn'); const fixture = initTest( NgModelCrossComponentParentWithViewProviders, NgModelCrossComponentChildWithViewProviders, ); - fixture.detectChanges(); + await fixture.whenStable(); expect(warnSpy).not.toHaveBeenCalledWith(jasmine.stringContaining('viewProviders')); }); it('should not warn when ngModel is standalone with no parent form', async () => { const warnSpy = spyOn(console, 'warn'); const fixture = initTest(StandaloneNgModel); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); expect(warnSpy).not.toHaveBeenCalledWith(jasmine.stringContaining('viewProviders')); }); - it('should not warn when ngModel in a child component uses [ngModelOptions]="{standalone: true}"', () => { + it('should not warn when ngModel in a child component uses [ngModelOptions]="{standalone: true}"', async () => { const warnSpy = spyOn(console, 'warn'); TestBed.configureTestingModule({ - declarations: [ - NgModelCrossComponentParentStandaloneOpt, - NgModelCrossComponentChildStandaloneOpt, - ], imports: [FormsModule], }); const fixture = TestBed.createComponent(NgModelCrossComponentParentStandaloneOpt); - fixture.detectChanges(); + await fixture.whenStable(); expect(warnSpy).not.toHaveBeenCalledWith(jasmine.stringContaining('viewProviders')); }); - it('should not warn when ngModel inside a ControlValueAccessor uses [ngModelOptions]="{standalone: true}"', () => { + it('should not warn when ngModel inside a ControlValueAccessor uses [ngModelOptions]="{standalone: true}"', async () => { const warnSpy = spyOn(console, 'warn'); TestBed.configureTestingModule({ - declarations: [NgModelCvaHostParent, NgModelCvaWithInternalNgModel], imports: [FormsModule], }); const fixture = TestBed.createComponent(NgModelCvaHostParent); - fixture.detectChanges(); + await fixture.whenStable(); expect(warnSpy).not.toHaveBeenCalledWith(jasmine.stringContaining('viewProviders')); }); }); @@ -2864,24 +2708,20 @@ describe('template-driven forms integration tests', () => { }); @Component({ - selector: 'standalone-ng-model', + imports: [FormsModule, CommonModule], template: ` `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class StandaloneNgModel { name!: string; } @Component({ - selector: 'ng-model-form', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelForm { name!: string | null; @@ -2892,15 +2732,13 @@ class NgModelForm { } @Component({ - selector: 'ng-model-native-validate-form', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelNativeValidateForm {} @Component({ - selector: 'ng-model-group-form', + imports: [FormsModule, CommonModule], template: `
    @@ -2910,8 +2748,6 @@ class NgModelNativeValidateForm {} `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelGroupForm { first!: string; @@ -2922,7 +2758,7 @@ class NgModelGroupForm { } @Component({ - selector: 'ng-model-valid-binding', + imports: [FormsModule, CommonModule], template: `
    @@ -2931,15 +2767,13 @@ class NgModelGroupForm {
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelValidBinding { first!: string; } @Component({ - selector: 'ng-model-ngif-form', + imports: [FormsModule, CommonModule], template: `
    @@ -2948,8 +2782,6 @@ class NgModelValidBinding { `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelNgIfForm { first!: string; @@ -2959,7 +2791,7 @@ class NgModelNgIfForm { } @Component({ - selector: 'ng-model-nested', + imports: [FormsModule, CommonModule], template: `
    @@ -2970,8 +2802,6 @@ class NgModelNgIfForm {
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelNestedForm { first!: string; @@ -2979,39 +2809,33 @@ class NgModelNestedForm { } @Component({ - selector: 'ng-no-form', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgNoFormComp {} @Component({ - selector: 'invalid-ng-model-noname', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class InvalidNgModelNoName {} @Component({ - selector: 'ng-model-options-standalone', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelOptionsStandalone { one!: string; @@ -3021,7 +2845,7 @@ class NgModelOptionsStandalone { } @Component({ - selector: 'ng-model-validation-bindings', + imports: [FormsModule, CommonModule], template: `
    @@ -3030,8 +2854,6 @@ class NgModelOptionsStandalone {
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelValidationBindings { required!: boolean; @@ -3041,7 +2863,7 @@ class NgModelValidationBindings { } @Component({ - selector: 'ng-model-multiple-validators', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelMultipleValidators { required!: boolean; @@ -3063,12 +2883,10 @@ class NgModelMultipleValidators { } @Component({ - selector: 'ng-model-checkbox-validator', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelCheckboxRequiredValidator { accepted: boolean = false; @@ -3076,10 +2894,8 @@ class NgModelCheckboxRequiredValidator { } @Component({ - selector: 'ng-model-email', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelEmailValidator { validatorEnabled: boolean = false; @@ -3090,31 +2906,27 @@ class NgModelEmailValidator { providers: [ {provide: NG_ASYNC_VALIDATORS, useExisting: forwardRef(() => NgAsyncValidator), multi: true}, ], - standalone: false, }) class NgAsyncValidator implements AsyncValidator { validate(c: AbstractControl) { - return Promise.resolve(null); + // Delay validation so the scheduled renders can observe the pending state. + return timeout(100).then(() => null); } } @Component({ - selector: 'ng-model-async-validation', + imports: [FormsModule, NgAsyncValidator], template: ``, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelAsyncValidation {} @Component({ - selector: 'ng-model-changes-form', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelChangesForm { name!: string; @@ -3127,42 +2939,34 @@ class NgModelChangesForm { } @Component({ - selector: 'ng-model-change-state', + imports: [FormsModule, CommonModule], template: ` `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelChangeState { onNgModelChange = () => {}; } @Component({ - selector: 'ng-model-max', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelMaxValidator { max!: number; } @Component({ - selector: 'ng-model-min', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelMinValidator { min!: number; } @Component({ - selector: 'ng-model-min-max', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelMinMaxValidator { min!: number | string; @@ -3171,7 +2975,6 @@ class NgModelMinMaxValidator { @Directive({ selector: '[myDir]', - standalone: false, }) class CustomDirective { @Input() min!: number; @@ -3179,15 +2982,13 @@ class CustomDirective { } @Component({ - selector: 'ng-model-no-min-max', + imports: [FormsModule, CommonModule], template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NgModelNoMinMaxValidator { min!: number; @@ -3196,7 +2997,7 @@ class NgModelNoMinMaxValidator { } @Component({ - selector: 'ng-model-nested', + imports: [FormsModule, CommonModule], template: `
    @@ -3204,26 +3005,24 @@ class NgModelNoMinMaxValidator {
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, }) class NativeDialogForm { @ViewChild('form') form!: ElementRef; } @Component({ + imports: [FormsModule, CommonModule], selector: 'ng-model-cross-component-child', template: ``, - standalone: false, }) class NgModelCrossComponentChild { value = ''; } @Component({ + imports: [FormsModule, CommonModule], selector: 'ng-model-cross-component-child-vp', template: ``, - standalone: false, viewProviders: [{provide: ControlContainer, useExisting: NgForm}], }) class NgModelCrossComponentChildWithViewProviders { @@ -3231,66 +3030,63 @@ class NgModelCrossComponentChildWithViewProviders { } @Component({ - selector: 'ng-model-cross-component-parent', + imports: [FormsModule, NgModelCrossComponentChild], template: `
    `, - standalone: false, }) class NgModelCrossComponentParent { value = ''; } @Component({ - selector: 'ng-model-cross-component-parent-vp', + imports: [FormsModule, NgModelCrossComponentChildWithViewProviders], template: `
    `, - standalone: false, }) class NgModelCrossComponentParentWithViewProviders { value = ''; } @Component({ + imports: [FormsModule, CommonModule], selector: 'ng-model-cross-component-form-group-child', template: ``, - standalone: false, }) class NgModelCrossComponentFormGroupChild { value = ''; } @Component({ - selector: 'ng-model-cross-component-form-group-parent', + imports: [FormsModule, ReactiveFormsModule, NgModelCrossComponentFormGroupChild], template: `
    `, - standalone: false, }) class NgModelCrossComponentFormGroupParent { form = new FormGroup({}); } @Component({ + imports: [FormsModule, CommonModule], selector: 'ng-model-cross-component-group-child', template: ``, - standalone: false, }) class NgModelCrossComponentGroupChild { value = ''; } @Component({ - selector: 'ng-model-cross-component-group-parent', + imports: [FormsModule, NgModelCrossComponentGroupChild], template: `
    @@ -3298,32 +3094,30 @@ class NgModelCrossComponentGroupChild {
    `, - standalone: false, }) class NgModelCrossComponentGroupParent {} @Component({ + imports: [FormsModule, CommonModule], selector: 'ng-model-cross-component-child-standalone-opt', template: ``, - standalone: false, }) class NgModelCrossComponentChildStandaloneOpt {} @Component({ - selector: 'ng-model-cross-component-parent-standalone-opt', + imports: [FormsModule, NgModelCrossComponentChildStandaloneOpt], template: `
    `, - standalone: false, }) class NgModelCrossComponentParentStandaloneOpt {} @Component({ + imports: [FormsModule, CommonModule], selector: 'ng-model-cva-with-internal-ng-model', template: ``, - standalone: false, providers: [ {provide: NG_VALUE_ACCESSOR, useExisting: NgModelCvaWithInternalNgModel, multi: true}, ], @@ -3338,12 +3132,11 @@ class NgModelCvaWithInternalNgModel implements ControlValueAccessor { } @Component({ - selector: 'ng-model-cva-host-parent', + imports: [FormsModule, NgModelCvaWithInternalNgModel], template: `
    `, - standalone: false, }) class NgModelCvaHostParent {} diff --git a/packages/forms/test/value_accessor_integration_spec.ts b/packages/forms/test/value_accessor_integration_spec.ts index ab6dde7b7bd1..c283acd03636 100644 --- a/packages/forms/test/value_accessor_integration_spec.ts +++ b/packages/forms/test/value_accessor_integration_spec.ts @@ -11,17 +11,16 @@ import { ɵAnimationRendererFactory as AnimationRendererFactory, } from '@angular/animations/browser'; import { - ChangeDetectionStrategy, ChangeDetectorRef, Component, Directive, EventEmitter, + inject, Input, NgZone, Output, RendererFactory2, signal, - Type, ViewChild, } from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; @@ -46,22 +45,14 @@ import { describe('value accessors', () => { useAutoTick(); - function initTest(component: Type, ...directives: Type[]): ComponentFixture { - TestBed.configureTestingModule({ - declarations: [component, ...directives], - imports: [FormsModule, ReactiveFormsModule], - }); - return TestBed.createComponent(component); - } - - it('should support without type', () => { + it('should support without type', async () => { TestBed.overrideComponent(FormControlComp, { set: {template: ``}, }); - const fixture = initTest(FormControlComp); + const fixture = TestBed.createComponent(FormControlComp); const control = new FormControl('old'); fixture.componentInstance.control = control; - fixture.detectChanges(); + await fixture.whenStable(); // model -> view const input = fixture.debugElement.query(By.css('input')); @@ -74,11 +65,11 @@ describe('value accessors', () => { expect(control.value).toEqual('new'); }); - it('should support ', () => { - const fixture = initTest(FormGroupComp); + it('should support ', async () => { + const fixture = TestBed.createComponent(FormGroupComp); const form = new FormGroup({'login': new FormControl('old')}); fixture.componentInstance.form = form; - fixture.detectChanges(); + await fixture.whenStable(); // model -> view const input = fixture.debugElement.query(By.css('input')); @@ -91,11 +82,11 @@ describe('value accessors', () => { expect(form.value).toEqual({'login': 'new'}); }); - it('should ignore the change event for ', () => { - const fixture = initTest(FormGroupComp); + it('should ignore the change event for ', async () => { + const fixture = TestBed.createComponent(FormGroupComp); const form = new FormGroup({'login': new FormControl('oldValue')}); fixture.componentInstance.form = form; - fixture.detectChanges(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('input')); form.valueChanges.subscribe({ @@ -108,14 +99,14 @@ describe('value accessors', () => { dispatchEvent(input.nativeElement, 'change'); }); - it('should support `}, }); - const fixture = initTest(FormControlComp); + const fixture = TestBed.createComponent(FormControlComp); const control = new FormControl('old'); fixture.componentInstance.control = control; - fixture.detectChanges(); + await fixture.whenStable(); // model -> view const textarea = fixture.debugElement.query(By.css('textarea')); @@ -128,14 +119,14 @@ describe('value accessors', () => { expect(control.value).toEqual('new'); }); - it('should support ', () => { + it('should support ', async () => { TestBed.overrideComponent(FormControlComp, { set: {template: ``}, }); - const fixture = initTest(FormControlComp); + const fixture = TestBed.createComponent(FormControlComp); const control = new FormControl(true); fixture.componentInstance.control = control; - fixture.detectChanges(); + await fixture.whenStable(); // model -> view const input = fixture.debugElement.query(By.css('input')); @@ -149,11 +140,11 @@ describe('value accessors', () => { }); describe('should support ', () => { - it('with basic use case', () => { - const fixture = initTest(FormControlNumberInput); + it('with basic use case', async () => { + const fixture = TestBed.createComponent(FormControlNumberInput); const control = new FormControl(10); fixture.componentInstance.control = control; - fixture.detectChanges(); + await fixture.whenStable(); // model -> view const input = fixture.debugElement.query(By.css('input')); @@ -166,11 +157,11 @@ describe('value accessors', () => { expect(control.value).toEqual(20); }); - it('when value is cleared in the UI', () => { - const fixture = initTest(FormControlNumberInput); + it('when value is cleared in the UI', async () => { + const fixture = TestBed.createComponent(FormControlNumberInput); const control = new FormControl(10, Validators.required); fixture.componentInstance.control = control; - fixture.detectChanges(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('input')); input.nativeElement.value = ''; @@ -186,11 +177,11 @@ describe('value accessors', () => { expect(control.value).toEqual(0); }); - it('should ignore the change event', () => { - const fixture = initTest(FormControlNumberInput); + it('should ignore the change event', async () => { + const fixture = TestBed.createComponent(FormControlNumberInput); const control = new FormControl(); fixture.componentInstance.control = control; - fixture.detectChanges(); + await fixture.whenStable(); control.valueChanges.subscribe({ next: (value) => { @@ -203,11 +194,11 @@ describe('value accessors', () => { dispatchEvent(input.nativeElement, 'change'); }); - it('when value is cleared programmatically', () => { - const fixture = initTest(FormControlNumberInput); + it('when value is cleared programmatically', async () => { + const fixture = TestBed.createComponent(FormControlNumberInput); const control = new FormControl(10); fixture.componentInstance.control = control; - fixture.detectChanges(); + await fixture.whenStable(); control.setValue(null); @@ -218,10 +209,10 @@ describe('value accessors', () => { describe('select controls', () => { describe('in reactive forms', () => { - it(`should support primitive values`, () => { + it(`should support primitive values`, async () => { if (isNode) return; - const fixture = initTest(FormControlNameSelect); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlNameSelect); + await fixture.whenStable(); // model -> view const select = fixture.debugElement.query(By.css('select')); @@ -231,17 +222,17 @@ describe('value accessors', () => { select.nativeElement.value = 'NY'; dispatchEvent(select.nativeElement, 'change'); - fixture.detectChanges(); + await fixture.whenStable(); // view -> model expect(sfOption.nativeElement.selected).toBe(false); expect(fixture.componentInstance.form.value).toEqual({'city': 'NY'}); }); - it(`should support objects`, () => { + it(`should support objects`, async () => { if (isNode) return; - const fixture = initTest(FormControlSelectNgValue); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlSelectNgValue); + await fixture.whenStable(); // model -> view const select = fixture.debugElement.query(By.css('select')); @@ -250,18 +241,18 @@ describe('value accessors', () => { expect(sfOption.nativeElement.selected).toBe(true); }); - it('should throw an error if compareWith is not a function', () => { - const fixture = initTest(FormControlSelectWithCompareFn); + it('should throw an error if compareWith is not a function', async () => { + const fixture = TestBed.createComponent(FormControlSelectWithCompareFn); fixture.componentInstance.compareFn = null!; - expect(() => fixture.detectChanges()).toThrowError( + await expectAsync(fixture.whenStable()).toBeRejectedWithError( /compareWith must be a function, but received null/, ); }); - it('should compare options using provided compareWith function', () => { + it('should compare options using provided compareWith function', async () => { if (isNode) return; - const fixture = initTest(FormControlSelectWithCompareFn); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlSelectWithCompareFn); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const sfOption = fixture.debugElement.query(By.css('option')); @@ -269,17 +260,17 @@ describe('value accessors', () => { expect(sfOption.nativeElement.selected).toBe(true); }); - it('should support re-assigning the options array with compareWith', () => { + it('should support re-assigning the options array with compareWith', async () => { if (isNode) return; - const fixture = initTest(FormControlSelectWithCompareFn); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlSelectWithCompareFn); + await fixture.whenStable(); // Option IDs start out as 0 and 1, so setting the select value to "1: Object" // will select the second option (NY). const select = fixture.debugElement.query(By.css('select')); select.nativeElement.value = '1: Object'; dispatchEvent(select.nativeElement, 'change'); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.componentInstance.form.value).toEqual({city: {id: 2, name: 'NY'}}); @@ -287,11 +278,11 @@ describe('value accessors', () => { {id: 1, name: 'SF'}, {id: 2, name: 'NY'}, ]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); // Now that the options array has been re-assigned, new option instances will - // be created by ngFor. These instances will have different option IDs, subsequent + // be created by @for. These instances will have different option IDs, subsequent // to the first: 2 and 3. For the second option to stay selected, the select // value will need to have the ID of the current second option: 3. const nyOption = fixture.debugElement.queryAll(By.css('option'))[1]; @@ -303,12 +294,11 @@ describe('value accessors', () => { describe('in template-driven forms', () => { it('with option values that are objects', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectForm); + const fixture = TestBed.createComponent(NgModelSelectForm); const comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}, {'name': 'Buffalo'}]; comp.selectedCity = comp.cities[1]; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const nycOption = fixture.debugElement.queryAll(By.css('option'))[1]; @@ -319,8 +309,7 @@ describe('value accessors', () => { select.nativeElement.value = '2: Object'; dispatchEvent(select.nativeElement, 'change'); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); // view -> model expect(comp.selectedCity['name']).toEqual('Buffalo'); @@ -328,19 +317,17 @@ describe('value accessors', () => { it('when new options are added', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectForm); + const fixture = TestBed.createComponent(NgModelSelectForm); const comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}]; comp.selectedCity = comp.cities[1]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); comp.cities.push({'name': 'Buffalo'}); comp.selectedCity = comp.cities[2]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const buffalo = fixture.debugElement.queryAll(By.css('option'))[2]; @@ -349,38 +336,35 @@ describe('value accessors', () => { }); it('when options are removed', async () => { - const fixture = initTest(NgModelSelectForm); + const fixture = TestBed.createComponent(NgModelSelectForm); const comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}]; comp.selectedCity = comp.cities[1]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); expect(select.nativeElement.value).toEqual('1: Object'); comp.cities.pop(); - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); expect(select.nativeElement.value).not.toEqual('1: Object'); }); it('when option values have same content, but different identities', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectForm); + const fixture = TestBed.createComponent(NgModelSelectForm); const comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}, {'name': 'NYC'}]; comp.selectedCity = comp.cities[0]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); comp.selectedCity = comp.cities[2]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const secondNYC = fixture.debugElement.queryAll(By.css('option'))[2]; @@ -389,7 +373,7 @@ describe('value accessors', () => { }); it('should work with null option', async () => { - const fixture = initTest(NgModelSelectWithNullForm); + const fixture = TestBed.createComponent(NgModelSelectWithNullForm); const comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}]; comp.selectedCity = null; @@ -400,36 +384,33 @@ describe('value accessors', () => { select.nativeElement.value = '2: Object'; dispatchEvent(select.nativeElement, 'change'); await fixture.whenStable(); - await timeout(); expect(comp.selectedCity!['name']).toEqual('NYC'); select.nativeElement.value = '0: null'; dispatchEvent(select.nativeElement, 'change'); await fixture.whenStable(); - await timeout(); expect(comp.selectedCity).toEqual(null); }); - it('should throw an error when compareWith is not a function', () => { - const fixture = initTest(NgModelSelectWithCustomCompareFnForm); + it('should throw an error when compareWith is not a function', async () => { + const fixture = TestBed.createComponent(NgModelSelectWithCustomCompareFnForm); const comp = fixture.componentInstance; comp.compareFn = null!; - expect(() => fixture.detectChanges()).toThrowError( + await expectAsync(fixture.whenStable()).toBeRejectedWithError( /compareWith must be a function, but received null/, ); }); it('should compare options using provided compareWith function', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectWithCustomCompareFnForm); + const fixture = TestBed.createComponent(NgModelSelectWithCustomCompareFnForm); const comp = fixture.componentInstance; comp.selectedCity = {id: 1, name: 'SF'}; comp.cities = [ {id: 1, name: 'SF'}, {id: 2, name: 'LA'}, ]; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const sfOption = fixture.debugElement.query(By.css('option')); @@ -439,22 +420,21 @@ describe('value accessors', () => { it('should support re-assigning the options array with compareWith', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectWithCustomCompareFnForm); + const fixture = TestBed.createComponent(NgModelSelectWithCustomCompareFnForm); fixture.componentInstance.selectedCity = {id: 1, name: 'SF'}; fixture.componentInstance.cities = [ {id: 1, name: 'SF'}, {id: 2, name: 'NY'}, ]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); // Option IDs start out as 0 and 1, so setting the select value to "1: Object" // will select the second option (NY). const select = fixture.debugElement.query(By.css('select')); select.nativeElement.value = '1: Object'; dispatchEvent(select.nativeElement, 'change'); - fixture.detectChanges(); + await fixture.whenStable(); const model = fixture.debugElement.children[0].injector.get(NgModel); expect(model.value).toEqual({id: 2, name: 'NY'}); @@ -463,12 +443,11 @@ describe('value accessors', () => { {id: 1, name: 'SF'}, {id: 2, name: 'NY'}, ]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); // Now that the options array has been re-assigned, new option instances will - // be created by ngFor. These instances will have different option IDs, subsequent + // be created by @for. These instances will have different option IDs, subsequent // to the first: 2 and 3. For the second option to stay selected, the select // value will need to have the ID of the current second option: 3. const nyOption = fixture.debugElement.queryAll(By.css('option'))[1]; @@ -480,10 +459,23 @@ describe('value accessors', () => { describe('select multiple controls', () => { describe('in reactive forms', () => { - it('should support primitive values', () => { + it('should synchronously apply model writes and clear the selection', async () => { + const fixture = TestBed.createComponent(FormControlSelectMultiple); + await fixture.whenStable(); + const options = fixture.debugElement.queryAll(By.css('option')); + const control = fixture.componentInstance.form.controls.city; + + control.setValue(['SF', 'NY']); + expect(options.map((option) => option.nativeElement.selected)).toEqual([true, true]); + + control.setValue([]); + expect(options.map((option) => option.nativeElement.selected)).toEqual([false, false]); + }); + + it('should support primitive values', async () => { if (isNode) return; - const fixture = initTest(FormControlSelectMultiple); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlSelectMultiple); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const sfOption = fixture.debugElement.query(By.css('option')); @@ -491,10 +483,10 @@ describe('value accessors', () => { expect(sfOption.nativeElement.selected).toBe(true); }); - it('should support objects', () => { + it('should support objects', async () => { if (isNode) return; - const fixture = initTest(FormControlSelectMultipleNgValue); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlSelectMultipleNgValue); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const sfOption = fixture.debugElement.query(By.css('option')); @@ -502,19 +494,18 @@ describe('value accessors', () => { expect(sfOption.nativeElement.selected).toBe(true); }); - it('should throw an error when compareWith is not a function', () => { - const fixture = initTest(FormControlSelectMultipleWithCompareFn); + it('should throw an error when compareWith is not a function', async () => { + const fixture = TestBed.createComponent(FormControlSelectMultipleWithCompareFn); fixture.componentInstance.compareFn = null!; - expect(() => fixture.detectChanges()).toThrowError( + await expectAsync(fixture.whenStable()).toBeRejectedWithError( /compareWith must be a function, but received null/, ); }); it('should compare options using provided compareWith function', async () => { if (isNode) return; - const fixture = initTest(FormControlSelectMultipleWithCompareFn); - fixture.detectChanges(); - await timeout(); + const fixture = TestBed.createComponent(FormControlSelectMultipleWithCompareFn); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const sfOption = fixture.debugElement.query(By.css('option')); @@ -528,27 +519,22 @@ describe('value accessors', () => { let comp: NgModelSelectMultipleForm; beforeEach(() => { - fixture = initTest(NgModelSelectMultipleForm); + fixture = TestBed.createComponent(NgModelSelectMultipleForm); comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}, {'name': 'Buffalo'}]; }); - const detectChangesAndTick = async (): Promise => { - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); - }; - const setSelectedCities = async (selectedCities: any): Promise => { comp.selectedCities = selectedCities; - await detectChangesAndTick(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); }; - const selectOptionViaUI = (valueString: string): void => { + const selectOptionViaUI = async (valueString: string): Promise => { const select = fixture.debugElement.query(By.css('select')); select.nativeElement.value = valueString; dispatchEvent(select.nativeElement, 'change'); - detectChangesAndTick(); + await fixture.whenStable(); }; const assertOptionElementSelectedState = (selectedStates: boolean[]): void => { @@ -570,7 +556,7 @@ describe('value accessors', () => { ).and.callThrough(); await setSelectedCities([]); - selectOptionViaUI('1: Object'); + await selectOptionViaUI('1: Object'); assertOptionElementSelectedState([false, true, false]); expect(spy).toHaveBeenCalled(); }); @@ -579,11 +565,12 @@ describe('value accessors', () => { if (isNode) return; await setSelectedCities([]); - selectOptionViaUI('1: Object'); + await selectOptionViaUI('1: Object'); assertOptionElementSelectedState([false, true, false]); comp.cities.push({'name': 'Chicago'}); - await detectChangesAndTick(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); assertOptionElementSelectedState([false, true, false, false]); }); @@ -592,36 +579,36 @@ describe('value accessors', () => { if (isNode) return; await setSelectedCities([]); - selectOptionViaUI('1: Object'); + await selectOptionViaUI('1: Object'); assertOptionElementSelectedState([false, true, false]); comp.cities.pop(); - await detectChangesAndTick(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); assertOptionElementSelectedState([false, true]); }); }); - it('should throw an error when compareWith is not a function', () => { - const fixture = initTest(NgModelSelectMultipleWithCustomCompareFnForm); + it('should throw an error when compareWith is not a function', async () => { + const fixture = TestBed.createComponent(NgModelSelectMultipleWithCustomCompareFnForm); const comp = fixture.componentInstance; comp.compareFn = null!; - expect(() => fixture.detectChanges()).toThrowError( + await expectAsync(fixture.whenStable()).toBeRejectedWithError( /compareWith must be a function, but received null/, ); }); it('should compare options using provided compareWith function', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectMultipleWithCustomCompareFnForm); + const fixture = TestBed.createComponent(NgModelSelectMultipleWithCustomCompareFnForm); const comp = fixture.componentInstance; comp.cities = [ {id: 1, name: 'SF'}, {id: 2, name: 'LA'}, ]; comp.selectedCities = [comp.cities[0]]; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const sfOption = fixture.debugElement.query(By.css('option')); @@ -632,14 +619,14 @@ describe('value accessors', () => { describe('should support ', () => { describe('in reactive forms', () => { - it('should support basic functionality', () => { - const fixture = initTest(FormControlRadioButtons); + it('should support basic functionality', async () => { + const fixture = TestBed.createComponent(FormControlRadioButtons); const form = new FormGroup({ 'food': new FormControl('fish'), 'drink': new FormControl('sprite'), }); fixture.componentInstance.form = form; - fixture.detectChanges(); + await fixture.whenStable(); // model -> view const inputs = fixture.debugElement.queryAll(By.css('input')); @@ -647,14 +634,14 @@ describe('value accessors', () => { expect(inputs[1].nativeElement.checked).toEqual(true); dispatchEvent(inputs[0].nativeElement, 'change'); - fixture.detectChanges(); + await fixture.whenStable(); // view -> model expect(form.get('food')!.value).toEqual('chicken'); expect(inputs[1].nativeElement.checked).toEqual(false); form.get('food')!.setValue('fish'); - fixture.detectChanges(); + await fixture.whenStable(); // programmatic change -> view expect(inputs[0].nativeElement.checked).toEqual(false); @@ -662,7 +649,7 @@ describe('value accessors', () => { }); it('should update the checked state when a reused radio changes value', async () => { - const fixture = initTest(DynamicRadioForm); + const fixture = TestBed.createComponent(DynamicRadioForm); await fixture.whenStable(); expect(getRadioCheckedStates(fixture)).toEqual([false, true]); @@ -677,63 +664,63 @@ describe('value accessors', () => { expect(getRadioCheckedStates(fixture)).toEqual([false, true]); }); - it('should support an initial undefined value', () => { - const fixture = initTest(FormControlRadioButtons); + it('should support an initial undefined value', async () => { + const fixture = TestBed.createComponent(FormControlRadioButtons); const form = new FormGroup({'food': new FormControl(), 'drink': new FormControl()}); fixture.componentInstance.form = form; - fixture.detectChanges(); + await fixture.whenStable(); const inputs = fixture.debugElement.queryAll(By.css('input')); expect(inputs[0].nativeElement.checked).toEqual(false); expect(inputs[1].nativeElement.checked).toEqual(false); }); - it('should reset properly', () => { - const fixture = initTest(FormControlRadioButtons); + it('should reset properly', async () => { + const fixture = TestBed.createComponent(FormControlRadioButtons); const form = new FormGroup({ 'food': new FormControl('fish'), 'drink': new FormControl('sprite'), }); fixture.componentInstance.form = form; - fixture.detectChanges(); + await fixture.whenStable(); form.reset(); - fixture.detectChanges(); + await fixture.whenStable(); const inputs = fixture.debugElement.queryAll(By.css('input')); expect(inputs[0].nativeElement.checked).toEqual(false); expect(inputs[1].nativeElement.checked).toEqual(false); }); - it('should properly set value to null and undefined', () => { - const fixture = initTest(FormControlRadioButtons); + it('should properly set value to null and undefined', async () => { + const fixture = TestBed.createComponent(FormControlRadioButtons); const form: FormGroup = new FormGroup({ 'food': new FormControl('chicken'), 'drink': new FormControl('sprite'), }); fixture.componentInstance.form = form; - fixture.detectChanges(); + await fixture.whenStable(); form.get('food')!.setValue(null); - fixture.detectChanges(); + await fixture.whenStable(); const inputs = fixture.debugElement.queryAll(By.css('input')); expect(inputs[0].nativeElement.checked).toEqual(false); form.get('food')!.setValue('chicken'); - fixture.detectChanges(); + await fixture.whenStable(); form.get('food')!.setValue(undefined); - fixture.detectChanges(); + await fixture.whenStable(); expect(inputs[0].nativeElement.checked).toEqual(false); }); - it('should use formControlName to group radio buttons when name is absent', () => { - const fixture = initTest(FormControlRadioButtons); + it('should use formControlName to group radio buttons when name is absent', async () => { + const fixture = TestBed.createComponent(FormControlRadioButtons); const foodCtrl = new FormControl('fish'); const drinkCtrl = new FormControl('sprite'); fixture.componentInstance.form = new FormGroup({'food': foodCtrl, 'drink': drinkCtrl}); - fixture.detectChanges(); + await fixture.whenStable(); const inputs = fixture.debugElement.queryAll(By.css('input')); expect(inputs[0].nativeElement.checked).toEqual(false); @@ -743,7 +730,7 @@ describe('value accessors', () => { dispatchEvent(inputs[0].nativeElement, 'change'); inputs[0].nativeElement.checked = true; - fixture.detectChanges(); + await fixture.whenStable(); const value = fixture.componentInstance.form.value; expect(value.food).toEqual('chicken'); @@ -752,7 +739,7 @@ describe('value accessors', () => { expect(inputs[3].nativeElement.checked).toEqual(true); drinkCtrl.setValue('cola'); - fixture.detectChanges(); + await fixture.whenStable(); expect(inputs[0].nativeElement.checked).toEqual(true); expect(inputs[1].nativeElement.checked).toEqual(false); @@ -760,8 +747,8 @@ describe('value accessors', () => { expect(inputs[3].nativeElement.checked).toEqual(false); }); - it('should support removing controls from ', () => { - const fixture = initTest(FormControlRadioButtons); + it('should support removing controls from ', async () => { + const fixture = TestBed.createComponent(FormControlRadioButtons); const showRadio = new FormControl('yes'); const form: FormGroup = new FormGroup({ 'food': new FormControl('fish'), @@ -774,16 +761,16 @@ describe('value accessors', () => { ? form.addControl('food', new FormControl('fish')) : form.removeControl('food'); }); - fixture.detectChanges(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('[value="no"]')); dispatchEvent(input.nativeElement, 'change'); - fixture.detectChanges(); + await fixture.whenStable(); expect(form.value).toEqual({drink: 'sprite'}); }); - it('should differentiate controls on different levels with the same name', () => { + it('should differentiate controls on different levels with the same name', async () => { TestBed.overrideComponent(FormControlRadioButtons, { set: { template: ` @@ -798,13 +785,13 @@ describe('value accessors', () => { `, }, }); - const fixture = initTest(FormControlRadioButtons); + const fixture = TestBed.createComponent(FormControlRadioButtons); const form = new FormGroup({ food: new FormControl('fish'), nested: new FormGroup({food: new FormControl('fish')}), }); fixture.componentInstance.form = form; - fixture.detectChanges(); + await fixture.whenStable(); // model -> view const inputs = fixture.debugElement.queryAll(By.css('input')); @@ -814,7 +801,7 @@ describe('value accessors', () => { expect(inputs[3].nativeElement.checked).toEqual(true); dispatchEvent(inputs[0].nativeElement, 'change'); - fixture.detectChanges(); + await fixture.whenStable(); // view -> model expect(form.get('food')!.value).toEqual('chicken'); @@ -825,11 +812,11 @@ describe('value accessors', () => { expect(inputs[3].nativeElement.checked).toEqual(true); }); - it('should disable all radio buttons when disable() is called', () => { - const fixture = initTest(FormControlRadioButtons); + it('should disable all radio buttons when disable() is called', async () => { + const fixture = TestBed.createComponent(FormControlRadioButtons); const form = new FormGroup({food: new FormControl('fish'), drink: new FormControl('cola')}); fixture.componentInstance.form = form; - fixture.detectChanges(); + await fixture.whenStable(); const inputs = fixture.debugElement.queryAll(By.css('input')); expect(inputs[0].nativeElement.disabled).toEqual(false); @@ -856,14 +843,14 @@ describe('value accessors', () => { expect(inputs[3].nativeElement.disabled).toEqual(false); }); - it('should disable all radio buttons when initially disabled', () => { - const fixture = initTest(FormControlRadioButtons); + it('should disable all radio buttons when initially disabled', async () => { + const fixture = TestBed.createComponent(FormControlRadioButtons); const form = new FormGroup({ food: new FormControl({value: 'fish', disabled: true}), drink: new FormControl('cola'), }); fixture.componentInstance.form = form; - fixture.detectChanges(); + await fixture.whenStable(); const inputs = fixture.debugElement.queryAll(By.css('input')); expect(inputs[0].nativeElement.disabled).toEqual(true); @@ -872,21 +859,22 @@ describe('value accessors', () => { expect(inputs[3].nativeElement.disabled).toEqual(false); }); - it('should work with reusing controls', () => { - const fixture = initTest(FormControlRadioButtons); + it('should work with reusing controls', async () => { + const fixture = TestBed.createComponent(FormControlRadioButtons); const food = new FormControl('chicken'); fixture.componentInstance.form = new FormGroup({ 'food': food, 'drink': new FormControl(''), }); - fixture.detectChanges(); + await fixture.whenStable(); const newForm = new FormGroup({'food': food, 'drink': new FormControl('')}); fixture.componentInstance.form = newForm; - fixture.detectChanges(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); newForm.setValue({food: 'fish', drink: ''}); - fixture.detectChanges(); + await fixture.whenStable(); const inputs = fixture.debugElement.queryAll(By.css('input')); expect(inputs[0].nativeElement.checked).toBe(false); expect(inputs[1].nativeElement.checked).toBe(true); @@ -895,10 +883,9 @@ describe('value accessors', () => { describe('in template-driven forms', () => { it('should support basic functionality', async () => { - const fixture = initTest(NgModelRadioForm); + const fixture = TestBed.createComponent(NgModelRadioForm); fixture.componentInstance.food = 'fish'; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); // model -> view const inputs = fixture.debugElement.queryAll(By.css('input')); @@ -906,7 +893,7 @@ describe('value accessors', () => { expect(inputs[1].nativeElement.checked).toEqual(true); dispatchEvent(inputs[0].nativeElement, 'change'); - await timeout(); + await fixture.whenStable(); // view -> model expect(fixture.componentInstance.food).toEqual('chicken'); @@ -914,11 +901,10 @@ describe('value accessors', () => { }); it('should support multiple named groups', async () => { - const fixture = initTest(NgModelRadioForm); + const fixture = TestBed.createComponent(NgModelRadioForm); fixture.componentInstance.food = 'fish'; fixture.componentInstance.drink = 'sprite'; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const inputs = fixture.debugElement.queryAll(By.css('input')); expect(inputs[0].nativeElement.checked).toEqual(false); @@ -927,7 +913,7 @@ describe('value accessors', () => { expect(inputs[3].nativeElement.checked).toEqual(true); dispatchEvent(inputs[0].nativeElement, 'change'); - await timeout(); + await fixture.whenStable(); expect(fixture.componentInstance.food).toEqual('chicken'); expect(fixture.componentInstance.drink).toEqual('sprite'); @@ -937,9 +923,8 @@ describe('value accessors', () => { }); it('should support initial undefined value', async () => { - const fixture = initTest(NgModelRadioForm); - fixture.detectChanges(); - await timeout(); + const fixture = TestBed.createComponent(NgModelRadioForm); + await fixture.whenStable(); const inputs = fixture.debugElement.queryAll(By.css('input')); expect(inputs[0].nativeElement.checked).toEqual(false); @@ -949,15 +934,13 @@ describe('value accessors', () => { }); it('should support resetting properly', async () => { - const fixture = initTest(NgModelRadioForm); + const fixture = TestBed.createComponent(NgModelRadioForm); fixture.componentInstance.food = 'chicken'; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const form = fixture.debugElement.query(By.css('form')); dispatchEvent(form.nativeElement, 'reset'); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const inputs = fixture.debugElement.queryAll(By.css('input')); expect(inputs[0].nativeElement.checked).toEqual(false); @@ -965,43 +948,38 @@ describe('value accessors', () => { }); it('should support setting value to null and undefined', async () => { - const fixture = initTest(NgModelRadioForm); + const fixture = TestBed.createComponent(NgModelRadioForm); fixture.componentInstance.food = 'chicken'; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); fixture.componentInstance.food = null!; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); const inputs = fixture.debugElement.queryAll(By.css('input')); expect(inputs[0].nativeElement.checked).toEqual(false); expect(inputs[1].nativeElement.checked).toEqual(false); fixture.componentInstance.food = 'chicken'; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); fixture.componentInstance.food = undefined!; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); expect(inputs[0].nativeElement.checked).toEqual(false); expect(inputs[1].nativeElement.checked).toEqual(false); }); it('should disable radio controls properly with programmatic call', async () => { - const fixture = initTest(NgModelRadioForm); + const fixture = TestBed.createComponent(NgModelRadioForm); fixture.componentInstance.food = 'fish'; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const form = fixture.debugElement.children[0].injector.get(NgForm); form.control.get('food')!.disable(); - await timeout(); + await fixture.whenStable(); const inputs = fixture.debugElement.queryAll(By.css('input')); expect(inputs[0].nativeElement.disabled).toBe(true); @@ -1010,7 +988,7 @@ describe('value accessors', () => { expect(inputs[3].nativeElement.disabled).toBe(false); form.control.disable(); - await timeout(); + await fixture.whenStable(); expect(inputs[0].nativeElement.disabled).toBe(true); expect(inputs[1].nativeElement.disabled).toBe(true); @@ -1018,7 +996,7 @@ describe('value accessors', () => { expect(inputs[3].nativeElement.disabled).toBe(true); form.control.enable(); - await timeout(); + await fixture.whenStable(); expect(inputs[0].nativeElement.disabled).toBe(false); expect(inputs[1].nativeElement.disabled).toBe(false); @@ -1030,11 +1008,11 @@ describe('value accessors', () => { describe('should support ', () => { describe('in reactive forms', () => { - it('with basic use case', () => { - const fixture = initTest(FormControlRangeInput); + it('with basic use case', async () => { + const fixture = TestBed.createComponent(FormControlRangeInput); const control = new FormControl(10); fixture.componentInstance.control = control; - fixture.detectChanges(); + await fixture.whenStable(); // model -> view const input = fixture.debugElement.query(By.css('input')); @@ -1047,11 +1025,11 @@ describe('value accessors', () => { expect(control.value).toEqual(20); }); - it('when value is cleared in the UI', () => { - const fixture = initTest(FormControlNumberInput); + it('when value is cleared in the UI', async () => { + const fixture = TestBed.createComponent(FormControlNumberInput); const control = new FormControl(10, Validators.required); fixture.componentInstance.control = control; - fixture.detectChanges(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('input')); input.nativeElement.value = ''; @@ -1067,11 +1045,11 @@ describe('value accessors', () => { expect(control.value).toEqual(0); }); - it('when value is cleared programmatically', () => { - const fixture = initTest(FormControlNumberInput); + it('when value is cleared programmatically', async () => { + const fixture = TestBed.createComponent(FormControlNumberInput); const control = new FormControl(10); fixture.componentInstance.control = control; - fixture.detectChanges(); + await fixture.whenStable(); control.setValue(null); @@ -1082,10 +1060,10 @@ describe('value accessors', () => { describe('select controls', () => { describe('in reactive forms', () => { - it(`should support primitive values`, () => { + it(`should support primitive values`, async () => { if (isNode) return; - const fixture = initTest(FormControlNameSelect); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlNameSelect); + await fixture.whenStable(); // model -> view const select = fixture.debugElement.query(By.css('select')); @@ -1095,17 +1073,17 @@ describe('value accessors', () => { select.nativeElement.value = 'NY'; dispatchEvent(select.nativeElement, 'change'); - fixture.detectChanges(); + await fixture.whenStable(); // view -> model expect(sfOption.nativeElement.selected).toBe(false); expect(fixture.componentInstance.form.value).toEqual({'city': 'NY'}); }); - it(`should support objects`, () => { + it(`should support objects`, async () => { if (isNode) return; - const fixture = initTest(FormControlSelectNgValue); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlSelectNgValue); + await fixture.whenStable(); // model -> view const select = fixture.debugElement.query(By.css('select')); @@ -1114,18 +1092,18 @@ describe('value accessors', () => { expect(sfOption.nativeElement.selected).toBe(true); }); - it('should throw an error if compareWith is not a function', () => { - const fixture = initTest(FormControlSelectWithCompareFn); + it('should throw an error if compareWith is not a function', async () => { + const fixture = TestBed.createComponent(FormControlSelectWithCompareFn); fixture.componentInstance.compareFn = null!; - expect(() => fixture.detectChanges()).toThrowError( + await expectAsync(fixture.whenStable()).toBeRejectedWithError( /compareWith must be a function, but received null/, ); }); - it('should compare options using provided compareWith function', () => { + it('should compare options using provided compareWith function', async () => { if (isNode) return; - const fixture = initTest(FormControlSelectWithCompareFn); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlSelectWithCompareFn); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const sfOption = fixture.debugElement.query(By.css('option')); @@ -1133,10 +1111,10 @@ describe('value accessors', () => { expect(sfOption.nativeElement.selected).toBe(true); }); - it('should support re-assigning the options array with compareWith', () => { + it('should support re-assigning the options array with compareWith', async () => { if (isNode) return; - const fixture = initTest(FormControlSelectWithCompareFn); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlSelectWithCompareFn); + await fixture.whenStable(); // Option IDs start out as 0 and 1, so setting the select value to "1: Object" // will select the second option (NY). @@ -1145,7 +1123,7 @@ describe('value accessors', () => { select.nativeElement.value = '1: Object'; dispatchEvent(select.nativeElement, 'change'); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.componentInstance.form.value).toEqual({city: {id: 2, name: 'NY'}}); @@ -1153,11 +1131,11 @@ describe('value accessors', () => { {id: 1, name: 'SF'}, {id: 2, name: 'NY'}, ]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); // Now that the options array has been re-assigned, new option instances will - // be created by ngFor. These instances will have different option IDs, subsequent + // be created by @for. These instances will have different option IDs, subsequent // to the first: 2 and 3. For the second option to stay selected, the select // value will need to have the ID of the current second option: 3. const nyOption = fixture.debugElement.queryAll(By.css('option'))[1]; @@ -1165,10 +1143,10 @@ describe('value accessors', () => { expect(nyOption.nativeElement.selected).toBe(true); }); - it('should support re-assigning the options array with compareWith and trackBy', () => { + it('should support re-assigning the options array with compareWith and trackBy', async () => { if (isNode) return; - const fixture = initTest(FormControlSelectWithCompareTrackByFn); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlSelectWithCompareTrackByFn); + await fixture.whenStable(); // Option IDs start out as 0 and 1, so setting the select value to "1: Object" // will select the second option (NY). @@ -1177,7 +1155,7 @@ describe('value accessors', () => { select.nativeElement.value = '1: Object'; dispatchEvent(select.nativeElement, 'change'); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.componentInstance.form.value).toEqual({city: {id: 2, name: 'NY'}}); @@ -1185,8 +1163,8 @@ describe('value accessors', () => { {id: 3, name: 'LA'}, {id: 4, name: 'BXL'}, ]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); // using trackBy, instances can be re-used, the option IDs stays the same but their // (ng)value can change @@ -1202,10 +1180,10 @@ describe('value accessors', () => { expect(fixture.componentInstance.form.value).toEqual({city: {id: 2, name: 'NY'}}); }); - it('should keep current value when selected option is removed/replaced', () => { + it('should keep current value when selected option is removed/replaced', async () => { if (isNode) return; - const fixture = initTest(FormControlSelectWithCompareFn); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlSelectWithCompareFn); + await fixture.whenStable(); // Option IDs start out as 0 and 1, so setting the select value to "1: Object" // will select the second option (NY). @@ -1214,7 +1192,7 @@ describe('value accessors', () => { select.nativeElement.value = '1: Object'; dispatchEvent(select.nativeElement, 'change'); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.componentInstance.form.value).toEqual({city: {id: 2, name: 'NY'}}); @@ -1222,11 +1200,11 @@ describe('value accessors', () => { {id: 1, name: 'SF'}, {id: 3, name: 'LA'}, ]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); // Now that the options array has been re-assigned, new option instances will - // be created by ngFor. These instances will have different option IDs, subsequent + // be created by @for. These instances will have different option IDs, subsequent // to the first: 2 and 3. // removing the currently selected option should not unset the formValue const laOption = fixture.debugElement.queryAll(By.css('option'))[1]; @@ -1244,24 +1222,24 @@ describe('value accessors', () => { ); }); - it('should call compareWith once for each added option until a match is found', () => { + it('should call compareWith once for each added option until a match is found', async () => { // see issue #41330 if (isNode) return; - const fixture = initTest(FormControlSelectWithComparePerfFn); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlSelectWithComparePerfFn); + await fixture.whenStable(); // compareWith should only be called once since first city is selected expect(fixture.componentInstance.compareFnCalls).toEqual(1); }); - it('should not call compareWith for removed options', () => { + it('should not call compareWith for removed options', async () => { if (isNode) return; - const fixture = initTest(FormControlSelectWithComparePerfFn); - fixture.detectChanges(); + const fixture = TestBed.createComponent(FormControlSelectWithComparePerfFn); + await fixture.whenStable(); fixture.componentInstance.compareFnCalls = 0; fixture.componentInstance.cities.splice(2, 2); - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); // compareWith should only be called once since first city is still selected expect(fixture.componentInstance.compareFnCalls).toBe(1); @@ -1271,12 +1249,11 @@ describe('value accessors', () => { describe('in template-driven forms', () => { it('with option values that are objects', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectForm); + const fixture = TestBed.createComponent(NgModelSelectForm); const comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}, {'name': 'Buffalo'}]; comp.selectedCity = comp.cities[1]; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const nycOption = fixture.debugElement.queryAll(By.css('option'))[1]; @@ -1287,8 +1264,7 @@ describe('value accessors', () => { select.nativeElement.value = '2: Object'; dispatchEvent(select.nativeElement, 'change'); - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); // view -> model expect(comp.selectedCity['name']).toEqual('Buffalo'); @@ -1296,19 +1272,17 @@ describe('value accessors', () => { it('when new options are added', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectForm); + const fixture = TestBed.createComponent(NgModelSelectForm); const comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}]; comp.selectedCity = comp.cities[1]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); comp.cities.push({'name': 'Buffalo'}); comp.selectedCity = comp.cities[2]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const buffalo = fixture.debugElement.queryAll(By.css('option'))[2]; @@ -1319,15 +1293,13 @@ describe('value accessors', () => { it('should not select options added after the select renders', async () => { // see issue #14505 if (isNode) return; - const fixture = initTest(NgModelSelectForm); + const fixture = TestBed.createComponent(NgModelSelectForm); const comp = fixture.componentInstance; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); comp.cities.push({name: 'Minneapolis'}); - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); expect(select.nativeElement.selectedIndex).toEqual(-1); @@ -1337,11 +1309,10 @@ describe('value accessors', () => { it('when there is a placeholder option', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectWithPlaceholderForm); + const fixture = TestBed.createComponent(NgModelSelectWithPlaceholderForm); const comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}]; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const placeholder = fixture.debugElement.queryAll(By.css('option'))[0]; expect(placeholder.nativeElement.selected).toBe(true); @@ -1349,21 +1320,19 @@ describe('value accessors', () => { it('when options are removed', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectForm); + const fixture = TestBed.createComponent(NgModelSelectForm); const comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}]; comp.selectedCity = comp.cities[1]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); expect(select.nativeElement.value).toEqual('1: Object'); comp.cities.pop(); - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); // no option should be selected, since ngModel doesn't match anything in cities array expect(select.nativeElement.value).not.toEqual('1: Object'); @@ -1382,22 +1351,20 @@ describe('value accessors', () => { deps: [DomRendererFactory2, AnimationEngine, NgZone], }, ], - imports: [BrowserAnimationsModule, FormsModule], - declarations: [NgModelSelectForm], + imports: [BrowserAnimationsModule], }); const fixture = TestBed.createComponent(NgModelSelectForm); const comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}]; comp.selectedCity = comp.cities[1]; - fixture.autoDetectChanges(); await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); expect(select.nativeElement.value).toEqual('1: Object'); comp.cities.pop(); - fixture.changeDetectorRef.markForCheck(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); await fixture.whenStable(); // no option should be selected, since ngModel doesn't match anything in cities array @@ -1407,17 +1374,16 @@ describe('value accessors', () => { it('when option values have same content, but different identities', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectForm); + const fixture = TestBed.createComponent(NgModelSelectForm); const comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}, {'name': 'NYC'}]; comp.selectedCity = comp.cities[0]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); comp.selectedCity = comp.cities[2]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const secondNYC = fixture.debugElement.queryAll(By.css('option'))[2]; @@ -1426,50 +1392,47 @@ describe('value accessors', () => { }); it('should work with null option', async () => { - const fixture = initTest(NgModelSelectWithNullForm); + const fixture = TestBed.createComponent(NgModelSelectWithNullForm); const comp = fixture.componentInstance; comp.cities = [{'name': 'SF'}, {'name': 'NYC'}]; comp.selectedCity = null; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); select.nativeElement.value = '2: Object'; dispatchEvent(select.nativeElement, 'change'); - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); expect(comp.selectedCity!['name']).toEqual('NYC'); select.nativeElement.value = '0: null'; dispatchEvent(select.nativeElement, 'change'); - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); expect(comp.selectedCity).toEqual(null); }); - it('should throw an error when compareWith is not a function', () => { - const fixture = initTest(NgModelSelectWithCustomCompareFnForm); + it('should throw an error when compareWith is not a function', async () => { + const fixture = TestBed.createComponent(NgModelSelectWithCustomCompareFnForm); const comp = fixture.componentInstance; comp.compareFn = null!; - expect(() => fixture.detectChanges()).toThrowError( + await expectAsync(fixture.whenStable()).toBeRejectedWithError( /compareWith must be a function, but received null/, ); }); it('should compare options using provided compareWith function', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectWithCustomCompareFnForm); + const fixture = TestBed.createComponent(NgModelSelectWithCustomCompareFnForm); const comp = fixture.componentInstance; comp.selectedCity = {id: 1, name: 'SF'}; comp.cities = [ {id: 1, name: 'SF'}, {id: 2, name: 'LA'}, ]; - fixture.detectChanges(); - await timeout(); + await fixture.whenStable(); const select = fixture.debugElement.query(By.css('select')); const sfOption = fixture.debugElement.query(By.css('option')); @@ -1479,22 +1442,21 @@ describe('value accessors', () => { it('should support re-assigning the options array with compareWith', async () => { if (isNode) return; - const fixture = initTest(NgModelSelectWithCustomCompareFnForm); + const fixture = TestBed.createComponent(NgModelSelectWithCustomCompareFnForm); fixture.componentInstance.selectedCity = {id: 1, name: 'SF'}; fixture.componentInstance.cities = [ {id: 1, name: 'SF'}, {id: 2, name: 'NY'}, ]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); // Option IDs start out as 0 and 1, so setting the select value to "1: Object" // will select the second option (NY). const select = fixture.debugElement.query(By.css('select')); select.nativeElement.value = '1: Object'; dispatchEvent(select.nativeElement, 'change'); - fixture.detectChanges(); + await fixture.whenStable(); const model = fixture.debugElement.children[0].injector.get(NgModel); expect(model.value).toEqual({id: 2, name: 'NY'}); @@ -1503,12 +1465,11 @@ describe('value accessors', () => { {id: 1, name: 'SF'}, {id: 2, name: 'NY'}, ]; - fixture.changeDetectorRef.markForCheck(); - fixture.detectChanges(); - await timeout(); + fixture.debugElement.injector.get(ChangeDetectorRef).markForCheck(); + await fixture.whenStable(); // Now that the options array has been re-assigned, new option instances will - // be created by ngFor. These instances will have different option IDs, subsequent + // be created by @for. These instances will have different option IDs, subsequent // to the first: 2 and 3. For the second option to stay selected, the select // value will need to have the ID of the current second option: 3. const nyOption = fixture.debugElement.queryAll(By.css('option'))[1]; @@ -1521,11 +1482,11 @@ describe('value accessors', () => { describe('custom value accessors', () => { describe('in reactive forms', () => { - it('should support basic functionality', () => { - const fixture = initTest(WrappedValueForm, WrappedValue); + it('should support basic functionality', async () => { + const fixture = TestBed.createComponent(WrappedValueForm); const form = new FormGroup({'login': new FormControl('aa')}); fixture.componentInstance.form = form; - fixture.detectChanges(); + await fixture.whenStable(); // model -> view const input = fixture.debugElement.query(By.css('input')); @@ -1543,10 +1504,10 @@ describe('value accessors', () => { expect(form.get('login')!.errors).toEqual(null); }); - it("should support non builtin input elements that fire a change event without a 'target' property", () => { - const fixture = initTest(MyInputForm, MyInput); + it("should support non builtin input elements that fire a change event without a 'target' property", async () => { + const fixture = TestBed.createComponent(MyInputForm); fixture.componentInstance.form = new FormGroup({'login': new FormControl('aa')}); - fixture.detectChanges(); + await fixture.whenStable(); const input = fixture.debugElement.query(By.css('my-input')); expect(input.componentInstance.value).toEqual('!aa!'); @@ -1558,23 +1519,23 @@ describe('value accessors', () => { input.componentInstance.dispatchChangeEvent(); }); - it('should support custom accessors without setDisabledState - formControlName', () => { - const fixture = initTest(WrappedValueForm, WrappedValue); + it('should support custom accessors without setDisabledState - formControlName', async () => { + const fixture = TestBed.createComponent(WrappedValueForm); fixture.componentInstance.form = new FormGroup({ 'login': new FormControl({value: 'aa', disabled: true}), }); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.componentInstance.form.status).toEqual('DISABLED'); expect(fixture.componentInstance.form.get('login')!.status).toEqual('DISABLED'); }); - it('should support custom accessors without setDisabledState - formControlDirective', () => { + it('should support custom accessors without setDisabledState - formControlDirective', async () => { TestBed.overrideComponent(FormControlComp, { set: {template: ``}, }); - const fixture = initTest(FormControlComp); + const fixture = TestBed.createComponent(FormControlComp); fixture.componentInstance.control = new FormControl({value: 'aa', disabled: true}); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.componentInstance.control.status).toEqual('DISABLED'); }); @@ -1582,14 +1543,14 @@ describe('value accessors', () => { let fixture: ComponentFixture; beforeEach(() => { - fixture = initTest(CvaWithDisabledStateForm, CvaWithDisabledState); + fixture = TestBed.createComponent(CvaWithDisabledStateForm); }); - it('sets the disabled state when the control is initially disabled', () => { + it('sets the disabled state when the control is initially disabled', async () => { fixture.componentInstance.form = new FormGroup({ 'login': new FormControl({value: 'aa', disabled: true}), }); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.componentInstance.form.status).toEqual('DISABLED'); expect(fixture.componentInstance.form.get('login')!.status).toEqual('DISABLED'); @@ -1599,11 +1560,11 @@ describe('value accessors', () => { ).toContain('DISABLED'); }); - it('sets the enabled state when the control is initially enabled', () => { + it('sets the enabled state when the control is initially enabled', async () => { fixture.componentInstance.form = new FormGroup({ 'login': new FormControl({value: 'aa', disabled: false}), }); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.componentInstance.form.status).toEqual('VALID'); expect(fixture.componentInstance.form.get('login')!.status).toEqual('VALID'); @@ -1614,10 +1575,10 @@ describe('value accessors', () => { }); }); - it('should populate control in ngOnInit when injecting NgControl', () => { - const fixture = initTest(MyInputForm, MyInput); + it('should populate control in ngOnInit when injecting NgControl', async () => { + const fixture = TestBed.createComponent(MyInputForm); fixture.componentInstance.form = new FormGroup({'login': new FormControl('aa')}); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.componentInstance.myInput!.control).toBeDefined(); expect(fixture.componentInstance.myInput!.control).toEqual( @@ -1628,11 +1589,8 @@ describe('value accessors', () => { describe('in template-driven forms', () => { it('should support standard writing to view and model', async () => { - const fixture = initTest(NgModelCustomWrapper, NgModelCustomComp); + const fixture = TestBed.createComponent(NgModelCustomWrapper); fixture.componentInstance.name = 'Nancy'; - fixture.detectChanges(); - await fixture.whenStable(); - fixture.detectChanges(); await fixture.whenStable(); // model -> view @@ -1641,7 +1599,7 @@ describe('value accessors', () => { customInput.nativeElement.value = 'Carson'; dispatchEvent(customInput.nativeElement, 'input'); - fixture.detectChanges(); + await fixture.whenStable(); // view -> model expect(fixture.componentInstance.name).toEqual('Carson'); @@ -1650,30 +1608,10 @@ describe('value accessors', () => { describe('`ngModel` value accessor inside an OnPush component', () => { it('should run change detection and update the value', async () => { - @Component({ - selector: 'parent', - template: '', - changeDetection: ChangeDetectionStrategy.OnPush, - standalone: false, - }) - class Parent { - value!: string; - - constructor(private ref: ChangeDetectorRef) {} - - setTimeoutAndChangeValue(): void { - setTimeout(() => { - this.value = 'Carson'; - this.ref.detectChanges(); - }, 50); - } - } - @Component({ selector: 'child', template: 'Value: {{ value }}', providers: [{provide: NG_VALUE_ACCESSOR, useExisting: Child, multi: true}], - standalone: false, }) class Child implements ControlValueAccessor { value!: string; @@ -1687,12 +1625,25 @@ describe('value accessors', () => { registerOnTouched(): void {} } - const fixture = initTest(Parent, Child); - fixture.componentInstance.value = 'Nancy'; - fixture.detectChanges(); + @Component({ + template: '', + imports: [FormsModule, Child], + }) + class Parent { + value!: string; - await fixture.whenStable(); - fixture.detectChanges(); + private ref = inject(ChangeDetectorRef); + + setTimeoutAndChangeValue(): void { + setTimeout(() => { + this.value = 'Carson'; + this.ref.markForCheck(); + }, 50); + } + } + + const fixture = TestBed.createComponent(Parent); + fixture.componentInstance.value = 'Nancy'; await fixture.whenStable(); const child = fixture.debugElement.query(By.css('child')); @@ -1704,7 +1655,6 @@ describe('value accessors', () => { await timeout(50); - fixture.detectChanges(); await fixture.whenStable(); expect(child.nativeElement.innerHTML).toEqual('Value: Carson'); @@ -1714,28 +1664,28 @@ describe('value accessors', () => { }); describe('value accessors in reactive forms with custom options', () => { - function initTest(component: Type, ...directives: Type[]): ComponentFixture { + useAutoTick(); + + beforeEach(() => { TestBed.configureTestingModule({ - declarations: [component, ...directives], imports: [ ReactiveFormsModule.withConfig({callSetDisabledState: 'whenDisabledForLegacyCode'}), ], }); - return TestBed.createComponent(component); - } + }); describe('should support custom accessors with setDisabledState', () => { let fixture: ComponentFixture; beforeEach(() => { - fixture = initTest(CvaWithDisabledStateForm, CvaWithDisabledState); + fixture = TestBed.createComponent(CvaWithDisabledStateForm); }); - it('does not set the enabled state when the control is initially enabled', () => { + it('does not set the enabled state when the control is initially enabled', async () => { fixture.componentInstance.form = new FormGroup({ 'login': new FormControl({value: 'aa', disabled: false}), }); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.componentInstance.form.status).toEqual('VALID'); expect(fixture.componentInstance.form.get('login')!.status).toEqual('VALID'); @@ -1747,20 +1697,18 @@ describe('value accessors in reactive forms with custom options', () => { }); @Component({ - selector: 'form-control-comp', template: ``, - standalone: false, + imports: [ReactiveFormsModule], }) export class FormControlComp { control!: FormControl; } @Component({ - selector: 'form-group-comp', template: `
    `, - standalone: false, + imports: [ReactiveFormsModule], }) export class FormGroupComp { control!: FormControl; @@ -1770,22 +1718,22 @@ export class FormGroupComp { } @Component({ - selector: 'form-control-number-input', template: ``, - standalone: false, + imports: [ReactiveFormsModule], }) class FormControlNumberInput { control!: FormControl; } @Component({ - selector: 'form-control-name-select', template: `
    `, - standalone: false, + imports: [ReactiveFormsModule], }) class FormControlNameSelect { cities = ['SF', 'NY']; @@ -1793,13 +1741,14 @@ class FormControlNameSelect { } @Component({ - selector: 'form-control-select-ngValue', template: `
    `, - standalone: false, + imports: [ReactiveFormsModule], }) class FormControlSelectNgValue { cities = [ @@ -1810,14 +1759,14 @@ class FormControlSelectNgValue { } @Component({ - selector: 'form-control-select-compare-with', template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ReactiveFormsModule], }) class FormControlSelectWithCompareFn { compareFn: (o1: any, o2: any) => boolean = (o1: any, o2: any) => @@ -1830,14 +1779,14 @@ class FormControlSelectWithCompareFn { } @Component({ - selector: 'form-control-select-compare-with-perf', template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ReactiveFormsModule], }) class FormControlSelectWithComparePerfFn { compareFnCalls = 0; @@ -1858,19 +1807,18 @@ class FormControlSelectWithComparePerfFn { } @Component({ - selector: 'form-control-select-compare-with-track-by', template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ReactiveFormsModule], }) class FormControlSelectWithCompareTrackByFn { compareFn: (o1: any, o2: any) => boolean = (o1: any, o2: any) => o1 && o2 ? o1.id === o2.id : o1 === o2; - trackByFn: (index: number, item: any) => any = (index: number, item: any): any => index; cities = [ {id: 1, name: 'SF'}, {id: 2, name: 'NY'}, @@ -1879,14 +1827,14 @@ class FormControlSelectWithCompareTrackByFn { } @Component({ - selector: 'form-control-select-multiple', template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ReactiveFormsModule], }) class FormControlSelectMultiple { cities = ['SF', 'NY']; @@ -1894,14 +1842,14 @@ class FormControlSelectMultiple { } @Component({ - selector: 'form-control-select-multiple', template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ReactiveFormsModule], }) class FormControlSelectMultipleNgValue { cities = [ @@ -1912,14 +1860,14 @@ class FormControlSelectMultipleNgValue { } @Component({ - selector: 'form-control-select-multiple-compare-with', template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ReactiveFormsModule], }) class FormControlSelectMultipleWithCompareFn { compareFn: (o1: any, o2: any) => boolean = (o1: any, o2: any) => @@ -1932,14 +1880,14 @@ class FormControlSelectMultipleWithCompareFn { } @Component({ - selector: 'ng-model-select-form', template: ` `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [FormsModule], }) class NgModelSelectForm { selectedCity: {[k: string]: string} = {}; @@ -1947,31 +1895,32 @@ class NgModelSelectForm { } @Component({ - selector: 'ng-model-select-placeholder-form', template: `
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [FormsModule], }) class NgModelSelectWithPlaceholderForm { cities: any[] = []; } @Component({ - selector: 'ng-model-select-null-form', template: ` `, - standalone: false, + imports: [FormsModule], }) class NgModelSelectWithNullForm { selectedCity: {[k: string]: string} | null = {}; @@ -1979,14 +1928,14 @@ class NgModelSelectWithNullForm { } @Component({ - selector: 'ng-model-select-compare-with', template: ` `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [FormsModule], }) class NgModelSelectWithCustomCompareFnForm { compareFn: (o1: any, o2: any) => boolean = (o1: any, o2: any) => @@ -1996,13 +1945,14 @@ class NgModelSelectWithCustomCompareFnForm { } @Component({ - selector: 'ng-model-select-multiple-compare-with', template: ` `, - standalone: false, + imports: [FormsModule], }) class NgModelSelectMultipleWithCustomCompareFnForm { compareFn: (o1: any, o2: any) => boolean = (o1: any, o2: any) => @@ -2012,14 +1962,14 @@ class NgModelSelectMultipleWithCustomCompareFnForm { } @Component({ - selector: 'ng-model-select-multiple-form', template: ` `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [FormsModule], }) class NgModelSelectMultipleForm { selectedCities!: any[]; @@ -2027,37 +1977,33 @@ class NgModelSelectMultipleForm { } @Component({ - selector: 'form-control-range-input', template: ``, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ReactiveFormsModule], }) class FormControlRangeInput { control!: FormControl; } @Component({ - selector: 'ng-model-range-form', template: '', - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [FormsModule], }) class NgModelRangeForm { val: any; } @Component({ - selector: 'form-control-radio-buttons', - template: `
    - - - - -
    + template: ` @if (showRadio.value === 'yes') { +
    + + + + +
    + } `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ReactiveFormsModule], }) export class FormControlRadioButtons { form!: FormGroup; @@ -2070,7 +2016,6 @@ interface RadioOption { } @Component({ - selector: 'dynamic-radio-form', template: `
    @for (option of options(); track option.id) { @@ -2078,8 +2023,7 @@ interface RadioOption { }
    `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [ReactiveFormsModule], }) class DynamicRadioForm { readonly form = new FormGroup({ @@ -2100,7 +2044,6 @@ function getRadioCheckedStates(fixture: ComponentFixture): boo } @Component({ - selector: 'ng-model-radio-form', template: `
    @@ -2110,8 +2053,7 @@ function getRadioCheckedStates(fixture: ComponentFixture): boo `, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [FormsModule], }) class NgModelRadioForm { food!: string; @@ -2125,7 +2067,6 @@ class NgModelRadioForm { {provide: NG_VALUE_ACCESSOR, multi: true, useExisting: WrappedValue}, {provide: NG_VALIDATORS, multi: true, useExisting: WrappedValue}, ], - standalone: false, }) class WrappedValue implements ControlValueAccessor { value: any; @@ -2152,11 +2093,13 @@ class WrappedValue implements ControlValueAccessor { @Component({ selector: 'cva-with-disabled-state', template: ` -
    CALLED WITH {{ disabled ? 'DISABLED' : 'ENABLED' }}
    -
    UNSET
    + @if (disabled !== undefined) { +
    CALLED WITH {{ disabled ? 'DISABLED' : 'ENABLED' }}
    + } @else { +
    UNSET
    + } `, providers: [{provide: NG_VALUE_ACCESSOR, multi: true, useExisting: CvaWithDisabledState}], - standalone: false, }) class CvaWithDisabledState implements ControlValueAccessor { disabled?: boolean; @@ -2173,11 +2116,10 @@ class CvaWithDisabledState implements ControlValueAccessor { } @Component({ - selector: 'wrapped-value-form', template: `
    `, - standalone: false, + imports: [ReactiveFormsModule, CvaWithDisabledState], }) class CvaWithDisabledStateForm { form!: FormGroup; @@ -2186,7 +2128,6 @@ class CvaWithDisabledStateForm { @Component({ selector: 'my-input', template: '', - standalone: false, }) export class MyInput implements ControlValueAccessor { @Output('input') onInput = new EventEmitter(); @@ -2194,8 +2135,10 @@ export class MyInput implements ControlValueAccessor { control: AbstractControl | null = null; - constructor(public controlDir: NgControl) { - controlDir.valueAccessor = this; + controlDir = inject(NgControl); + + constructor() { + this.controlDir.valueAccessor = this; } ngOnInit() { @@ -2218,11 +2161,10 @@ export class MyInput implements ControlValueAccessor { } @Component({ - selector: 'my-input-form', template: `
    `, - standalone: false, + imports: [ReactiveFormsModule, MyInput], }) export class MyInputForm { form!: FormGroup; @@ -2230,11 +2172,10 @@ export class MyInputForm { } @Component({ - selector: 'wrapped-value-form', template: `
    `, - standalone: false, + imports: [ReactiveFormsModule, WrappedValue], }) class WrappedValueForm { form!: FormGroup; @@ -2251,7 +2192,7 @@ class WrappedValueForm { /> `, providers: [{provide: NG_VALUE_ACCESSOR, multi: true, useExisting: NgModelCustomComp}], - standalone: false, + imports: [FormsModule], }) export class NgModelCustomComp implements ControlValueAccessor { model!: string; @@ -2274,7 +2215,6 @@ export class NgModelCustomComp implements ControlValueAccessor { } @Component({ - selector: 'ng-model-custom-wrapper', template: `
    `, - standalone: false, + imports: [FormsModule, NgModelCustomComp], }) export class NgModelCustomWrapper { name!: string; diff --git a/packages/language-service/api.ts b/packages/language-service/api.ts index a5f670816461..41d674a0b5de 100644 --- a/packages/language-service/api.ts +++ b/packages/language-service/api.ts @@ -42,11 +42,6 @@ export interface PluginConfig { */ enableLetSyntax?: false; - /** - * Whether selectorless is enabled. - */ - enableSelectorless?: true; - /** * A list of diagnostic codes that should be supressed in the language service. */ @@ -427,6 +422,18 @@ export interface NgLanguageService extends ts.LanguageService { getTcb(fileName: string, position: number): GetTcbResponse | undefined; + /** + * Gets the smart selection range (nested ranges used by the editor's + * "Expand/Shrink Selection" feature) at a position inside an Angular + * template, or `undefined` when the position is not in a template. + * + * Unlike `getSmartSelectionRange` (inherited from `ts.LanguageService`), + * this never falls back to TypeScript's own smart selection: the editor is + * expected to query every registered selection range provider and merge the + * resulting containment trees. + */ + getTemplateSelectionRange(fileName: string, position: number): ts.SelectionRange | undefined; + /** * Gets linked editing ranges for synchronized editing of HTML tag pairs. * diff --git a/packages/language-service/src/completions.ts b/packages/language-service/src/completions.ts index ca85b0f06cbf..97f72d6fdfae 100644 --- a/packages/language-service/src/completions.ts +++ b/packages/language-service/src/completions.ts @@ -233,7 +233,15 @@ export class CompletionBuilder { options: ts.GetCompletionsAtPositionOptions | undefined, ): ts.WithMetadata | undefined { const blocksWithParens = ['if', 'else if', 'for', 'switch', 'case', 'defer']; - const blocksWithoutParens = ['else', 'empty', 'placeholder', 'error', 'loading', 'default']; + const blocksWithoutParens = [ + 'else', + 'empty', + 'placeholder', + 'error', + 'loading', + 'default', + 'boundary', + ]; // Determine whether to provide a snippet, which includes parens and curly braces. // If the block has any expressions or a body, don't provide a snippet as the completion. diff --git a/packages/language-service/src/definitions.ts b/packages/language-service/src/definitions.ts index e8993b4b052a..0d8e3ada835b 100644 --- a/packages/language-service/src/definitions.ts +++ b/packages/language-service/src/definitions.ts @@ -23,8 +23,6 @@ import { isExternalResource, NgCompiler, Resource, - SelectorlessComponentSymbol, - SelectorlessDirectiveSymbol, Symbol, SymbolKind, TcbLocation, @@ -122,8 +120,6 @@ export class DefinitionBuilder { case SymbolKind.Element: case SymbolKind.Template: case SymbolKind.DomBinding: - case SymbolKind.SelectorlessComponent: - case SymbolKind.SelectorlessDirective: // Though it is generally more appropriate for the above symbol definitions to be // associated with "type definitions" since the location in the template is the // actual definition location, the better user experience would be to allow @@ -239,8 +235,6 @@ export class DefinitionBuilder { case SymbolKind.DomBinding: case SymbolKind.Element: case SymbolKind.Template: - case SymbolKind.SelectorlessComponent: - case SymbolKind.SelectorlessDirective: definitions.push(...this.getTypeDefinitionsForTemplateInstance(symbol, node)); break; case SymbolKind.Output: @@ -289,13 +283,7 @@ export class DefinitionBuilder { } private getTypeDefinitionsForTemplateInstance( - symbol: - | TemplateSymbol - | ElementSymbol - | DomBindingSymbol - | DirectiveSymbol - | SelectorlessComponentSymbol - | SelectorlessDirectiveSymbol, + symbol: TemplateSymbol | ElementSymbol | DomBindingSymbol | DirectiveSymbol, node: AST | TmplAstNode, ): ts.DefinitionInfo[] { switch (symbol.kind) { @@ -322,8 +310,6 @@ export class DefinitionBuilder { ); return this.getTypeDefinitionsForSymbols(...dirs); } - case SymbolKind.SelectorlessComponent: - case SymbolKind.SelectorlessDirective: case SymbolKind.Directive: return this.getTypeDefinitionsForSymbols(symbol); } diff --git a/packages/language-service/src/document_symbols.ts b/packages/language-service/src/document_symbols.ts index 4ffa36e35c23..146b136b4126 100644 --- a/packages/language-service/src/document_symbols.ts +++ b/packages/language-service/src/document_symbols.ts @@ -11,7 +11,8 @@ import { ASTWithSource, TmplAstBoundAttribute, TmplAstBoundDeferredTrigger, - TmplAstComponent, + TmplAstBoundaryBlock, + TmplAstBoundaryErrorBlock, TmplAstContent, TmplAstDeferredBlock, TmplAstDeferredBlockError, @@ -524,48 +525,78 @@ class TemplateSymbolVisitor extends TmplAstRecursiveVisitor { tmplAstVisitAll(this, block.children); this.popChildren(); } + override visitBoundaryBlock(block: TmplAstBoundaryBlock): void { + const symbol: TemplateDocumentSymbol = { + text: '@boundary', + kind: ts.ScriptElementKind.functionElement, + lspKind: AngularSymbolKind.Event, // @boundary → Event ⚡ + spans: [toTextSpan(block.mainBlockSpan)], + nameSpan: toTextSpan(block.startSourceSpan), + }; + this.addSymbol(symbol); + this.pushChildren(symbol); + tmplAstVisitAll(this, block.children); + tmplAstVisitAll(this, block.errorBlocks); + this.popChildren(); + } + + override visitBoundaryErrorBlock(block: TmplAstBoundaryErrorBlock): void { + const triggers: string[] = []; + if (block.expression) { + const exprText = getExpressionText(block.expression); + triggers.push(`when ${exprText}`); + } + const name = triggers.length > 0 ? `@error (${triggers.join('; ')})` : '@error'; - // Elements and components - override visitElement(element: TmplAstElement): void { const symbol: TemplateDocumentSymbol = { - text: `<${element.name}>`, - kind: ts.ScriptElementKind.memberVariableElement, - // Use Object for elements 🟡 - lspKind: AngularSymbolKind.Object, - spans: [toTextSpan(element.sourceSpan)], - nameSpan: toTextSpan(element.startSourceSpan), + text: name, + kind: ts.ScriptElementKind.functionElement, + lspKind: AngularSymbolKind.Event, // @error → Event ⚡ + spans: [toTextSpan(block.sourceSpan)], + nameSpan: toTextSpan(block.startSourceSpan), }; this.addSymbol(symbol); this.pushChildren(symbol); - // Add references as children - for (const ref of element.references) { - ref.visit(this); + for (const contextVar of block.contextVariables) { + this.processedVariables.add(contextVar); + // Show if explicitly aliased (name differs from value) OR if showImplicitForVariables is enabled + const isExplicitlyAliased = contextVar.name !== contextVar.value; + if (isExplicitlyAliased || this.options.showImplicitForVariables) { + const contextSymbol: TemplateDocumentSymbol = { + text: `let ${contextVar.name}`, + kind: ts.ScriptElementKind.localVariableElement, + spans: [toTextSpan(contextVar.keySpan)], + nameSpan: toTextSpan(contextVar.keySpan), + }; + this.addSymbol(contextSymbol); + } } - // Visit child elements - tmplAstVisitAll(this, element.children); + tmplAstVisitAll(this, block.children); this.popChildren(); } - override visitComponent(component: TmplAstComponent): void { + // Elements and components + override visitElement(element: TmplAstElement): void { const symbol: TemplateDocumentSymbol = { - text: `<${component.tagName || component.componentName}>`, - kind: ts.ScriptElementKind.classElement, - lspKind: AngularSymbolKind.Class, - spans: [toTextSpan(component.sourceSpan)], - nameSpan: toTextSpan(component.startSourceSpan), + text: `<${element.name}>`, + kind: ts.ScriptElementKind.memberVariableElement, + // Use Object for elements 🟡 + lspKind: AngularSymbolKind.Object, + spans: [toTextSpan(element.sourceSpan)], + nameSpan: toTextSpan(element.startSourceSpan), }; this.addSymbol(symbol); this.pushChildren(symbol); // Add references as children - for (const ref of component.references) { + for (const ref of element.references) { ref.visit(this); } // Visit child elements - tmplAstVisitAll(this, component.children); + tmplAstVisitAll(this, element.children); this.popChildren(); } diff --git a/packages/language-service/src/language_service.ts b/packages/language-service/src/language_service.ts index 4b483e2d6892..1aed20cf37db 100644 --- a/packages/language-service/src/language_service.ts +++ b/packages/language-service/src/language_service.ts @@ -58,6 +58,7 @@ import {ReferencesBuilder, RenameBuilder} from './references_and_rename'; import {createLocationKey} from './references_and_rename_utils'; import {getClassificationsForTemplate, TokenEncodingConsts} from './semantic_tokens'; import {getSignatureHelp} from './signature_help'; +import {getTemplateSelectionRange} from './smart_selection'; import { getTargetAtPosition, getTcbNodesOfTemplateAtPosition, @@ -584,6 +585,21 @@ export class LanguageService { }); } + /** + * Gets the smart selection range (nested ranges used by the editor's + * "Expand/Shrink Selection" feature) at a position inside an Angular + * template. The ranges follow the template AST, so expressions, control flow + * blocks (`@if`, `@for`, ...) and their bodies become selection steps. + * Returns `undefined` outside templates; merging with the surrounding + * TypeScript structure is left to the editor, which combines the ranges of + * every registered selection range provider. + */ + getTemplateSelectionRange(fileName: string, position: number): ts.SelectionRange | undefined { + return this.withCompilerAndPerfTracing(PerfPhase.LsSmartSelection, (compiler) => { + return getTemplateSelectionRange(compiler, fileName, position); + }); + } + getOutliningSpans(fileName: string): ts.OutliningSpan[] { return this.withCompilerAndPerfTracing(PerfPhase.OutliningSpans, (compiler) => { return getOutliningSpans(compiler, fileName); @@ -979,9 +995,6 @@ function parseNgCompilerOptions( if (config['forceStrictTemplates'] === true) { options.strictTemplates = true; } - if (config['enableSelectorless'] === true) { - options['_enableSelectorless'] = true; - } options['_angularCoreVersion'] = config['angularCoreVersion']; diff --git a/packages/language-service/src/linked_editing_range.ts b/packages/language-service/src/linked_editing_range.ts index e9cf2f1e83f5..e278abdf4d8e 100644 --- a/packages/language-service/src/linked_editing_range.ts +++ b/packages/language-service/src/linked_editing_range.ts @@ -46,15 +46,9 @@ export function getLinkedEditingRangeAtPosition( // For closing tag: context may be ElementInBodyContext but we check explicitly let element: TmplAstElement | null = null; - if ( - target.context.kind === TargetNodeKind.ElementInTagContext || - target.context.kind === TargetNodeKind.ComponentInTagContext - ) { + if (target.context.kind === TargetNodeKind.ElementInTagContext) { element = target.context.node as TmplAstElement; - } else if ( - target.context.kind === TargetNodeKind.ElementInBodyContext || - target.context.kind === TargetNodeKind.ComponentInBodyContext - ) { + } else if (target.context.kind === TargetNodeKind.ElementInBodyContext) { // When in body context, check if we're actually on the closing tag const potentialElement = target.context.node as TmplAstElement; if (isOnClosingTagName(potentialElement, position)) { diff --git a/packages/language-service/src/outlining_spans.ts b/packages/language-service/src/outlining_spans.ts index b478567a8283..4d1a47f522fa 100644 --- a/packages/language-service/src/outlining_spans.ts +++ b/packages/language-service/src/outlining_spans.ts @@ -16,6 +16,7 @@ import { TmplAstNode, TmplAstRecursiveVisitor, TmplAstSwitchBlockCase, + TmplAstBoundaryBlock, tmplAstVisitAll, } from '@angular/compiler'; import {isExternalResource, isNamedClassDeclaration, NgCompiler} from '@angular/compiler-cli'; @@ -68,7 +69,11 @@ class BlockVisitor extends TmplAstRecursiveVisitor { // The source span of for loops and deferred blocks contain all parts (ForLoopBlockEmpty, // DeferredBlockLoading, etc.). The folding range should only include the main block span for // these. - if (block instanceof TmplAstForLoopBlock || block instanceof TmplAstDeferredBlock) { + if ( + block instanceof TmplAstForLoopBlock || + block instanceof TmplAstDeferredBlock || + block instanceof TmplAstBoundaryBlock + ) { mainBlockSpan = block.mainBlockSpan; } return { diff --git a/packages/language-service/src/quick_info.ts b/packages/language-service/src/quick_info.ts index 0a11338b9724..f595d578dc9e 100644 --- a/packages/language-service/src/quick_info.ts +++ b/packages/language-service/src/quick_info.ts @@ -23,8 +23,6 @@ import { OutputBindingSymbol, PipeSymbol, ReferenceSymbol, - SelectorlessComponentSymbol, - SelectorlessDirectiveSymbol, Symbol, SymbolKind, TcbLocation, @@ -122,9 +120,6 @@ export class QuickInfoBuilder { return this.getQuickInfoForDomBinding(symbol); case SymbolKind.Pipe: return this.getQuickInfoForPipeSymbol(symbol); - case SymbolKind.SelectorlessComponent: - case SymbolKind.SelectorlessDirective: - return this.getQuickInfoForSelectorlessSymbol(symbol); case SymbolKind.Expression: return this.getQuickInfoAtTcbLocation(symbol.tcbLocation); case SymbolKind.Directive: @@ -273,28 +268,6 @@ export class QuickInfoBuilder { ); } - private getQuickInfoForSelectorlessSymbol( - symbol: SelectorlessComponentSymbol | SelectorlessDirectiveSymbol, - ): ts.QuickInfo { - const kind = - symbol.kind === SymbolKind.SelectorlessComponent - ? DisplayInfoKind.COMPONENT - : DisplayInfoKind.DIRECTIVE; - const info = this.getQuickInfoFromTypeDefAtLocation(symbol.tcbLocation); - - return createQuickInfo( - this.typeChecker.typeToString( - this.compiler.getTemplateTypeChecker().getTypeOfSymbol(symbol)!, - ), - kind, - getTextSpanOfNode(this.node), - undefined, - undefined, - info?.documentation, - info?.tags, - ); - } - private getQuickInfoFromTypeDefAtLocation(tcbLocation: TcbLocation): ts.QuickInfo | undefined { const typeDefs = this.tsLS.getTypeDefinitionAtPosition( tcbLocation.tcbPath, diff --git a/packages/language-service/src/references_and_rename.ts b/packages/language-service/src/references_and_rename.ts index c58c12c01e20..ac845490f14f 100644 --- a/packages/language-service/src/references_and_rename.ts +++ b/packages/language-service/src/references_and_rename.ts @@ -5,10 +5,9 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ -import {AST, TmplAstComponent, TmplAstNode} from '@angular/compiler'; +import {AST, TmplAstNode} from '@angular/compiler'; import { absoluteFrom, - DirectiveMeta, MetaKind, NgCompiler, PerfPhase, @@ -25,7 +24,6 @@ import { getParentClassMeta, getRenameTextAndSpanAtPosition, getTargetDetailsAtTemplatePosition, - SelectorlessCollector, TemplateLocationDetails, } from './references_and_rename_utils'; import {collectMemberMethods, findTightestNode} from './utils/ts_utils'; @@ -103,7 +101,6 @@ enum RequestKind { DirectFromTypeScript, PipeName, Selector, - SelectorlessIdentifier, } /** The context needed to perform a rename of a pipe name. */ @@ -135,17 +132,6 @@ interface SelectorRenameContext { renamePosition: FilePosition; } -/** The context needed to perform a rename of a selectorless component/directive. */ -interface SelectorlessIdentifierRenameContext { - type: RequestKind.SelectorlessIdentifier; - - /** Identifier of the class defining the class. */ - identifier: ts.Identifier; - - /** Location used for querying the TypeScript language service. */ - renamePosition: FilePosition; -} - interface DirectFromTypescriptRenameContext { type: RequestKind.DirectFromTypeScript; @@ -168,21 +154,14 @@ interface DirectFromTemplateRenameContext { type IndirectRenameContext = PipeRenameContext | SelectorRenameContext; type RenameRequest = - | IndirectRenameContext - | DirectFromTemplateRenameContext - | DirectFromTypescriptRenameContext - | SelectorlessIdentifierRenameContext; + IndirectRenameContext | DirectFromTemplateRenameContext | DirectFromTypescriptRenameContext; function isDirectRenameContext( context: RenameRequest, -): context is - | DirectFromTemplateRenameContext - | DirectFromTypescriptRenameContext - | SelectorlessIdentifierRenameContext { +): context is DirectFromTemplateRenameContext | DirectFromTypescriptRenameContext { return ( context.type === RequestKind.DirectFromTemplate || - context.type === RequestKind.DirectFromTypeScript || - context.type === RequestKind.SelectorlessIdentifier + context.type === RequestKind.DirectFromTypeScript ); } @@ -224,16 +203,6 @@ export class RenameBuilder { start: renameRequest.pipeNameExpr.getStart() + 1, }, }; - } else if (renameRequest.type === RequestKind.SelectorlessIdentifier) { - return { - canRename: true, - displayName: renameRequest.identifier.text, - fullDisplayName: renameRequest.identifier.text, - triggerSpan: { - length: renameRequest.identifier.text.length, - start: renameRequest.identifier.getStart(), - }, - }; } else { // TODO(atscott): Add support for other special indirect renames from typescript files. return this.tsLS.getRenameInfo(filePath, position); @@ -333,26 +302,18 @@ export class RenameBuilder { for (const location of locations) { if (this.ttc.isTrackedTypeCheckFile(absoluteFrom(location.fileName))) { - if (renameRequest.type === RequestKind.SelectorlessIdentifier) { - const selectorlessEntries = this.getSelectorlessRenameLocations(renameRequest); - if (selectorlessEntries === null) { - return null; - } - entries.push(...selectorlessEntries); - } else { - const entry = convertToTemplateDocumentSpan( - location, - this.ttc, - this.compiler.getCurrentProgram(), - expectedRenameText, - ); - // There is no template node whose text matches the original rename request. Bail on - // renaming completely rather than providing incomplete results. - if (entry === null) { - return null; - } - entries.push(entry); + const entry = convertToTemplateDocumentSpan( + location, + this.ttc, + this.compiler.getCurrentProgram(), + expectedRenameText, + ); + // There is no template node whose text matches the original rename request. Bail on + // renaming completely rather than providing incomplete results. + if (entry === null) { + return null; } + entries.push(entry); } else { if (!isDirectRenameContext(renameRequest)) { // Discard any non-template results for non-direct renames. We should only rename @@ -405,19 +366,6 @@ export class RenameBuilder { return null; } renameRequests.push(renameRequest); - } else if ( - targetDetails.symbol.kind === SymbolKind.SelectorlessComponent || - targetDetails.symbol.kind === SymbolKind.SelectorlessDirective - ) { - const tsSymbol = this.ttc.getTsSymbolOfSymbol(targetDetails.symbol); - const meta = - tsSymbol === null || tsSymbol.valueDeclaration === undefined - ? null - : this.compiler.getMeta(tsSymbol.valueDeclaration); - if (meta === null || meta.kind !== MetaKind.Directive) { - return null; - } - renameRequests.push(this.buildSelectorlessRenameRequest(meta)); } else { const renameRequest: RenameRequest = { type: RequestKind.DirectFromTemplate, @@ -446,10 +394,6 @@ export class RenameBuilder { return this.buildPipeRenameRequest(meta); } - if (meta?.kind === MetaKind.Directive && meta.ref.node.name === requestNode) { - return this.buildSelectorlessRenameRequest(meta); - } - return {type: RequestKind.DirectFromTypeScript, requestNode}; } @@ -478,102 +422,6 @@ export class RenameBuilder { }, }; } - - private buildSelectorlessRenameRequest(meta: DirectiveMeta): SelectorlessIdentifierRenameContext { - const identifier = meta.ref.node.name; - - return { - type: RequestKind.SelectorlessIdentifier, - identifier, - renamePosition: { - fileName: identifier.getSourceFile().fileName, - position: identifier.getStart(), - }, - }; - } - - /** Gets the rename locations for a selectorless request. */ - private getSelectorlessRenameLocations( - request: SelectorlessIdentifierRenameContext, - ): ts.RenameLocation[] | null { - // Find all the references to the class. - const refs = this.tsLS.getReferencesAtPosition( - request.renamePosition.fileName, - request.renamePosition.position, - ); - - if (refs === undefined) { - return null; - } - - const entries: ts.RenameLocation[] = []; - let hasSelectorlessReferences = false; - - for (const ref of refs) { - // Preserve the TS-based references. - if (!this.ttc.isTrackedTypeCheckFile(absoluteFrom(ref.fileName))) { - entries.push(ref); - continue; - } - - // Resolve the TCB references to their real locations. - const entry = convertToTemplateDocumentSpan(ref, this.ttc, this.compiler.getCurrentProgram()); - const typeCheckInfo = - entry === null - ? undefined - : getTypeCheckInfoAtPosition(entry.fileName, entry.textSpan.start, this.compiler); - - if (entry === null || typeCheckInfo === undefined) { - continue; - } - - const nodes = SelectorlessCollector.getSelectorlessNodes(typeCheckInfo.nodes); - - // Go through all the selectorless template nodes and look for matches. - for (const node of nodes) { - const startSpan = node.startSourceSpan; - const isComponent = node instanceof TmplAstComponent; - const name = isComponent ? node.componentName : node.name; - - if ( - // The span of the template node should match the span of the reference. - startSpan.start.offset !== entry.textSpan.start || - startSpan.end.offset !== entry.textSpan.start + entry.textSpan.length || - // Skip aliased directives. - name !== request.identifier.text - ) { - continue; - } - - hasSelectorlessReferences = true; - - entries.push({ - fileName: entry.fileName, - textSpan: { - // +1 to skip over the `<` for components and `@` for directives. - start: entry.textSpan.start + 1, - length: name.length, - }, - }); - - // Components also need to rename the closing tag. - if (isComponent && !node.isSelfClosing && node.endSourceSpan !== null) { - entries.push({ - fileName: entry.fileName, - textSpan: { - // +2 to skip over the ` a.length - b.length); + let result: ts.SelectionRange | undefined = undefined; + let innermost: ts.SelectionRange | undefined = undefined; + for (const textSpan of spans) { + if (result !== undefined) { + const prev = result.textSpan; + const isSameSpan = textSpan.start === prev.start && textSpan.length === prev.length; + const containsPrev = + textSpan.start <= prev.start && + textSpan.start + textSpan.length >= prev.start + prev.length; + if (isSameSpan || !containsPrev) { + continue; + } + } + const range: ts.SelectionRange = {textSpan}; + if (result === undefined) { + innermost = range; + } else { + result.parent = range; + } + result = range; + } + return innermost; +} + +/** + * Collects the source spans of all template nodes that contain a position, + * including the "content" spans between the delimiters of blocks and elements + * and the spans of the expression AST nodes inside bindings. + */ +class SelectionSpanVisitor extends TmplAstRecursiveVisitor { + readonly spans: ts.TextSpan[] = []; + + private constructor(private readonly position: number) { + super(); + } + + static getSpansContainingPosition(templateNodes: TmplAstNode[], position: number): ts.TextSpan[] { + const visitor = new SelectionSpanVisitor(position); + tmplAstVisitAll(visitor, templateNodes); + return visitor.spans; + } + + private addSpan(start: number, end: number): void { + if (start <= this.position && this.position <= end && end > start) { + this.spans.push({start, length: end - start}); + } + } + + visit(node: TmplAstNode): void { + const {sourceSpan} = node; + if (this.position < sourceSpan.start.offset || this.position > sourceSpan.end.offset) { + // The node does not contain the position; neither can its children. + return; + } + this.addSpan(sourceSpan.start.offset, sourceSpan.end.offset); + + // `TmplAstIfBlock` also extends `TmplAstBlockNode`, but it does not have a + // single brace-delimited body: its span stretches from `@if (...) {` to + // the closing `}` of the last `@else` branch, so a content span would + // cross branch boundaries. Only the individual `TmplAstIfBlockBranch` + // nodes contribute content spans. + if (node instanceof TmplAstBlockNode && !(node instanceof TmplAstIfBlock)) { + // The source span of for loops, deferred and boundary blocks includes + // their secondary blocks (@empty, @placeholder, ...). The extra + // selection steps should be scoped to the main block. + let endSpan = node.endSourceSpan; + if ( + node instanceof TmplAstForLoopBlock || + node instanceof TmplAstDeferredBlock || + node instanceof TmplAstBoundaryBlock + ) { + this.addSpan(node.mainBlockSpan.start.offset, node.mainBlockSpan.end.offset); + endSpan = node.mainBlockSpan; + } + // The content between the braces of the block, e.g. the body of `@if`. + if (endSpan !== null) { + const contentEnd = + endSpan === node.endSourceSpan ? endSpan.start.offset : endSpan.end.offset - 1; + this.addSpan(node.startSourceSpan.end.offset, contentEnd); + } + } else if (node instanceof TmplAstElement || node instanceof TmplAstTemplate) { + // The content between the opening and closing tags. + if (node.endSourceSpan !== null && node.endSourceSpan !== node.startSourceSpan) { + this.addSpan(node.startSourceSpan.end.offset, node.endSourceSpan.start.offset); + } + } + + this.visitExpression(node); + node.visit(this); + } + + /** + * Adds the spans of the expression AST nodes attached to a template node so + * that the selection can expand within e.g. `{{ user.address.city }}` or + * `(click)="save(item)"` one step at a time. + */ + private visitExpression(node: TmplAstNode): void { + let expression: AST | null = null; + if (node instanceof TmplAstBoundText) { + expression = node.value; + } else if (node instanceof TmplAstBoundAttribute) { + expression = node.value; + } else if (node instanceof TmplAstBoundEvent) { + expression = node.handler; + } else if (node instanceof TmplAstIfBlockBranch) { + expression = node.expression; + } else if (node instanceof TmplAstForLoopBlock) { + expression = node.expression; + } else if (node instanceof TmplAstSwitchBlock) { + expression = node.expression; + } else if (node instanceof TmplAstSwitchBlockCase) { + expression = node.expression; + } else if (node instanceof TmplAstLetDeclaration) { + expression = node.value; + } + if (expression !== null) { + new ExpressionSpanVisitor(this.position, this.spans).visit(expression); + } + } +} + +/** + * Collects the source spans of all expression AST nodes that contain a + * position. + */ +class ExpressionSpanVisitor extends RecursiveAstVisitor { + constructor( + private readonly position: number, + private readonly spans: ts.TextSpan[], + ) { + super(); + } + + override visit(ast: AST): void { + if (ast instanceof ASTWithSource) { + this.visit(ast.ast); + return; + } + if (ast instanceof ImplicitReceiver || ast instanceof ThisReceiver) { + return; + } + const {start, end} = ast.sourceSpan; + if (start <= this.position && this.position <= end && end > start) { + this.spans.push({start, length: end - start}); + } + ast.visit(this); + } +} diff --git a/packages/language-service/src/template_target.ts b/packages/language-service/src/template_target.ts index 3609a23e0def..0555f9535856 100644 --- a/packages/language-service/src/template_target.ts +++ b/packages/language-service/src/template_target.ts @@ -18,11 +18,12 @@ import { RecursiveAstVisitor, SafeCall, ThisReceiver, + TmplAstBoundaryBlock, + TmplAstBoundaryErrorBlock, TmplAstBoundAttribute, TmplAstBoundDeferredTrigger, TmplAstBoundEvent, TmplAstBoundText, - TmplAstComponent, TmplAstContent, TmplAstContentBlock, TmplAstDeferredBlock, @@ -30,7 +31,6 @@ import { TmplAstDeferredBlockLoading, TmplAstDeferredBlockPlaceholder, TmplAstDeferredTrigger, - TmplAstDirective, TmplAstElement, TmplAstForLoopBlock, TmplAstForLoopBlockEmpty, @@ -54,7 +54,6 @@ import { tmplAstVisitAll, TmplAstVisitor, } from '@angular/compiler'; -import {NgCompiler} from '@angular/compiler-cli'; import {findFirstMatchingNode} from '@angular/compiler-cli/private/hybrid_analysis'; import tss from 'typescript'; @@ -63,7 +62,6 @@ import { isTemplateNodeWithKeyAndValue, isWithin, isWithinKeyValue, - TypeCheckInfo, } from './utils'; /** @@ -110,11 +108,7 @@ export type SingleNodeTarget = | ElementInBodyContext | ElementInTagContext | AttributeInKeyContext - | AttributeInValueContext - | ComponentInBodyContext - | ComponentInTagContext - | DirectiveInNameContext - | DirectiveInBodyContext; + | AttributeInValueContext; /** * Contexts which logically target multiple nodes in the template AST, which cannot be @@ -136,10 +130,6 @@ export enum TargetNodeKind { AttributeInKeyContext, AttributeInValueContext, TwoWayBindingContext, - ComponentInTagContext, - ComponentInBodyContext, - DirectiveInNameContext, - DirectiveInBodyContext, } /** @@ -190,42 +180,6 @@ export interface ElementInBodyContext { node: TmplAstElement | TmplAstTemplate; } -/** - * A `TmplAstComponent` element node that's targeted, where the given position is within the tag, - * e.g. `MyComp` in ``. - */ -export interface ComponentInTagContext { - kind: TargetNodeKind.ComponentInTagContext; - node: TmplAstComponent; -} - -/** - * A `TmplAstComponent` element node that's targeted, where the given position is within the body, - * e.g. `foo="bar"/>` in ``. - */ -export interface ComponentInBodyContext { - kind: TargetNodeKind.ComponentInBodyContext; - node: TmplAstComponent; -} - -/** - * A `TmplAstDirective` element node that's targeted, where the given position is within the - * directive's name (e.g. `MyDir` in `@MyDir`). - */ -export interface DirectiveInNameContext { - kind: TargetNodeKind.DirectiveInNameContext; - node: TmplAstDirective; -} - -/** - * A `TmplAstDirective` element node that's targeted, where the given position is within the body, - * e.g. `(foo="bar")` in `@MyDir(foo="bar")`. - */ -export interface DirectiveInBodyContext { - kind: TargetNodeKind.DirectiveInBodyContext; - node: TmplAstDirective; -} - export interface AttributeInKeyContext { kind: TargetNodeKind.AttributeInKeyContext; node: TmplAstTextAttribute | TmplAstBoundAttribute | TmplAstBoundEvent; @@ -322,26 +276,6 @@ export function getTargetAtPosition( : TargetNodeKind.ElementInTagContext, node: candidate, }; - } else if (candidate instanceof TmplAstComponent) { - nodeInContext = { - kind: isWithinTagBody(position, candidate) - ? TargetNodeKind.ComponentInBodyContext - : TargetNodeKind.ComponentInTagContext, - node: candidate, - }; - } else if (candidate instanceof TmplAstDirective) { - const startSpan = candidate.startSourceSpan; - - // The start span includes the opening paren, if there is one which we have to account for. - const endOffset = startSpan.end.offset - (startSpan.toString().endsWith('(') ? 1 : 0); - - nodeInContext = { - kind: - position >= startSpan.start.offset && position <= endOffset - ? TargetNodeKind.DirectiveInNameContext - : TargetNodeKind.DirectiveInBodyContext, - node: candidate, - }; } else if ( (candidate instanceof TmplAstBoundAttribute || candidate instanceof TmplAstBoundEvent || @@ -534,23 +468,9 @@ class TemplateTargetVisitor implements TmplAstVisitor { this.visitDirectiveHost(template); } - visitComponent(component: TmplAstComponent) { - this.visitDirectiveHost(component); - } - - visitDirective(directive: TmplAstDirective) { - this.visitDirectiveHost(directive); - } - - private visitDirectiveHost( - node: TmplAstTemplate | TmplAstElement | TmplAstComponent | TmplAstDirective, - ) { + private visitDirectiveHost(node: TmplAstTemplate | TmplAstElement) { const isTemplate = node instanceof TmplAstTemplate; - const isDirective = node instanceof TmplAstDirective; this.visitAll(node.attributes); - if (!isDirective) { - this.visitAll(node.directives); - } this.visitAll(node.inputs); // We allow the path to contain both the `TmplAstBoundAttribute` and `TmplAstBoundEvent` for // two-way bindings but do not want the path to contain both the `TmplAstBoundAttribute` with @@ -579,9 +499,7 @@ class TemplateTargetVisitor implements TmplAstVisitor { return; } - if (!isDirective) { - this.visitAll(node.children); - } + this.visitAll(node.children); } visitContent(content: TmplAstContent) { @@ -703,6 +621,17 @@ class TemplateTargetVisitor implements TmplAstVisitor { this.visitAll(block.children); } + visitBoundaryBlock(block: TmplAstBoundaryBlock) { + this.visitAll(block.children); + this.visitAll(block.errorBlocks); + } + + visitBoundaryErrorBlock(block: TmplAstBoundaryErrorBlock) { + this.visitAll(block.contextVariables); + block.expression && this.visitBinding(block.expression); + this.visitAll(block.children); + } + visitUnknownBlock(block: TmplAstUnknownBlock) {} visitLetDeclaration(decl: TmplAstLetDeclaration) { @@ -789,10 +718,9 @@ function isWithinNode(position: number, node: TmplAstNode): boolean { } /** Checks whether a position is within the body or the start syntax of a node. */ -function isWithinTagBody(position: number, node: TmplAstElement | TmplAstComponent): boolean { +function isWithinTagBody(position: number, node: TmplAstElement): boolean { // Calculate the end of the element tag name. Any position beyond this is in the body. - const name = node instanceof TmplAstComponent ? node.fullName : node.name; const tagEndPos = - node.sourceSpan.start.offset + 1 /* '<' is the opening character */ + name.length; + node.sourceSpan.start.offset + 1 /* '<' is the opening character */ + node.name.length; return position > tagEndPos; } diff --git a/packages/language-service/src/ts_plugin.ts b/packages/language-service/src/ts_plugin.ts index 4cbcbb49ad54..df79a0e8e880 100644 --- a/packages/language-service/src/ts_plugin.ts +++ b/packages/language-service/src/ts_plugin.ts @@ -224,6 +224,23 @@ export function create(info: ts.server.PluginCreateInfo): NgLanguageService { return withFallback(fileName, (ls) => ls.getOutliningSpans(fileName)) ?? []; } + function getSmartSelectionRange(fileName: string, position: number): ts.SelectionRange { + // `ts.LanguageService` requires a selection range for every position, so + // consumers that talk to tsserver directly get the TypeScript ranges + // outside of templates. + return ( + ngLS.getTemplateSelectionRange(fileName, position) ?? + tsLS.getSmartSelectionRange(fileName, position) + ); + } + + function getTemplateSelectionRange( + fileName: string, + position: number, + ): ts.SelectionRange | undefined { + return ngLS.getTemplateSelectionRange(fileName, position); + } + function getTcb(fileName: string, position: number): GetTcbResponse | undefined { return ngLS.getTcb(fileName, position); } @@ -393,6 +410,8 @@ export function create(info: ts.server.PluginCreateInfo): NgLanguageService { getComponentLocationsForTemplate, getSignatureHelpItems, getOutliningSpans, + getSmartSelectionRange, + getTemplateSelectionRange, getTemplateLocationForComponent, getTemplateDocumentSymbols, hasCodeFixesForErrorCode: ngLS.hasCodeFixesForErrorCode.bind(ngLS), diff --git a/packages/language-service/test/definitions_spec.ts b/packages/language-service/test/definitions_spec.ts index f3ee409b2999..a054d36d4628 100644 --- a/packages/language-service/test/definitions_spec.ts +++ b/packages/language-service/test/definitions_spec.ts @@ -482,7 +482,7 @@ describe('definitions', () => { const {definitions} = getDefinitionsAndAssertBoundSpan(env, template); expect(definitions[0].name).toEqual('val'); expect(definitions[0].kind).toBe(ts.ScriptElementKind.parameterElement); - expect(definitions[0].textSpan).toBe('val + 1'); + expect(definitions[0].textSpan).toBe('val'); assertFileNames(Array.from(definitions), ['app.html']); }); @@ -514,246 +514,6 @@ describe('definitions', () => { assertFileNames(Array.from(definitions), ['app.html']); }); - it('gets definition for selectorless component', () => { - const files = { - 'app.html': '', - 'dep.ts': ` - import {Component} from '@angular/core'; - - @Component({template: ''}) - export class Dep {} - `, - 'app.ts': ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({ - templateUrl: '/app.html', - }) - export class AppCmp {} - `, - }; - const env = LanguageServiceTestEnv.setup(); - - const project = createProjectWithStandaloneDeclarations(env, 'test', files, { - _enableSelectorless: true, - }); - const template = project.openFile('app.html'); - template.contents = ''; - project.expectNoSourceDiagnostics(); - - template.moveCursorToText(''); - const {definitions} = getDefinitionsAndAssertBoundSpan(env, template); - expect(definitions[0].name).toEqual('Dep'); - expect(definitions[0].kind).toBe(ts.ScriptElementKind.classElement); - expect(definitions[0].textSpan).toBe('Dep'); - assertFileNames(Array.from(definitions), ['dep.ts']); - }); - - it('gets definition for selectorless directive', () => { - const files = { - 'app.html': '', - 'dep.ts': ` - import {Directive} from '@angular/core'; - - @Directive() - export class Dep {} - `, - 'app.ts': ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({ - templateUrl: '/app.html', - }) - export class AppCmp {} - `, - }; - const env = LanguageServiceTestEnv.setup(); - - const project = createProjectWithStandaloneDeclarations(env, 'test', files, { - _enableSelectorless: true, - }); - const template = project.openFile('app.html'); - template.contents = '
    '; - project.expectNoSourceDiagnostics(); - - template.moveCursorToText('@De¦p'); - const {definitions} = getDefinitionsAndAssertBoundSpan(env, template); - expect(definitions[0].name).toEqual('Dep'); - expect(definitions[0].kind).toBe(ts.ScriptElementKind.classElement); - expect(definitions[0].textSpan).toBe('Dep'); - assertFileNames(Array.from(definitions), ['dep.ts']); - }); - - it('gets definition of selectorless component input', () => { - const files = { - 'app.html': '', - 'dep.ts': ` - import {Component, Input} from '@angular/core'; - - @Component({template: ''}) - export class Dep { - @Input() someInput: any; - } - `, - 'app.ts': ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({ - templateUrl: '/app.html', - }) - export class AppCmp {} - `, - }; - const env = LanguageServiceTestEnv.setup(); - - const project = createProjectWithStandaloneDeclarations(env, 'test', files, { - _enableSelectorless: true, - }); - const template = project.openFile('app.html'); - template.contents = ''; - project.expectNoSourceDiagnostics(); - - template.moveCursorToText('[some¦Input]'); - const {textSpan, definitions} = getDefinitionsAndAssertBoundSpan(env, template); - - expect(template.contents.slice(textSpan.start, textSpan.start + textSpan.length)).toEqual( - 'someInput', - ); - expect(definitions.length).toBe(1); - expect(definitions[0].textSpan).toContain('someInput'); - assertFileNames(definitions, ['dep.ts']); - }); - - it('gets definition of selectorless directive input', () => { - const files = { - 'app.html': '', - 'dep.ts': ` - import {Directive, Input} from '@angular/core'; - - @Directive() - export class Dep { - @Input() someInput: any; - } - `, - 'app.ts': ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({ - templateUrl: '/app.html', - }) - export class AppCmp {} - `, - }; - const env = LanguageServiceTestEnv.setup(); - - const project = createProjectWithStandaloneDeclarations(env, 'test', files, { - _enableSelectorless: true, - }); - const template = project.openFile('app.html'); - template.contents = '
    '; - project.expectNoSourceDiagnostics(); - - template.moveCursorToText('[some¦Input]'); - const {textSpan, definitions} = getDefinitionsAndAssertBoundSpan(env, template); - - expect(template.contents.slice(textSpan.start, textSpan.start + textSpan.length)).toEqual( - 'someInput', - ); - expect(definitions.length).toBe(1); - expect(definitions[0].textSpan).toContain('someInput'); - assertFileNames(definitions, ['dep.ts']); - }); - - it('gets definition of selectorless component output', () => { - const files = { - 'app.html': '', - 'dep.ts': ` - import {Component, Output, EventEmitter} from '@angular/core'; - - @Component({template: ''}) - export class Dep { - @Output() someEvent = new EventEmitter(); - } - `, - 'app.ts': ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({ - templateUrl: '/app.html', - }) - export class AppCmp { - handler() {} - } - `, - }; - const env = LanguageServiceTestEnv.setup(); - - const project = createProjectWithStandaloneDeclarations(env, 'test', files, { - _enableSelectorless: true, - }); - const template = project.openFile('app.html'); - template.contents = ''; - project.expectNoSourceDiagnostics(); - - template.moveCursorToText('(some¦Event)'); - const {textSpan, definitions} = getDefinitionsAndAssertBoundSpan(env, template); - - expect(template.contents.slice(textSpan.start, textSpan.start + textSpan.length)).toEqual( - 'someEvent', - ); - expect(definitions.length).toBe(1); - expect(definitions[0].textSpan).toContain('someEvent'); - assertFileNames(definitions, ['dep.ts']); - }); - - it('gets definition of selectorless directive output', () => { - const files = { - 'app.html': '', - 'dep.ts': ` - import {Directive, Output, EventEmitter} from '@angular/core'; - - @Directive() - export class Dep { - @Output() someEvent = new EventEmitter(); - } - `, - 'app.ts': ` - import {Component} from '@angular/core'; - import {Dep} from './dep'; - - @Component({ - templateUrl: '/app.html', - }) - export class AppCmp { - handler() {} - } - `, - }; - const env = LanguageServiceTestEnv.setup(); - - const project = createProjectWithStandaloneDeclarations(env, 'test', files, { - _enableSelectorless: true, - }); - const template = project.openFile('app.html'); - template.contents = '
    '; - project.expectNoSourceDiagnostics(); - - template.moveCursorToText('(some¦Event)'); - const {textSpan, definitions} = getDefinitionsAndAssertBoundSpan(env, template); - - expect(template.contents.slice(textSpan.start, textSpan.start + textSpan.length)).toEqual( - 'someEvent', - ); - expect(definitions.length).toBe(1); - expect(definitions[0].textSpan).toContain('someEvent'); - assertFileNames(definitions, ['dep.ts']); - }); - it('gets definition for a method in a void expression', () => { const files = { 'app.html': '', diff --git a/packages/language-service/test/diagnostic_spec.ts b/packages/language-service/test/diagnostic_spec.ts index f375e2a5022f..833176122093 100644 --- a/packages/language-service/test/diagnostic_spec.ts +++ b/packages/language-service/test/diagnostic_spec.ts @@ -586,6 +586,67 @@ describe('getSemanticDiagnostics', () => { 'HostBindDirective', ); }); + + it('should type check templates using a non-exported directive from the same file', () => { + const files = { + 'app.ts': ` + import {Component, Directive, input, signal} from '@angular/core'; + + @Directive({selector: 'img[appHelper]'}) + class HelperDirective { + readonly appHelper = input.required(); + } + + @Component({ + selector: 'app-some', + imports: [HelperDirective], + templateUrl: './app.html', + }) + export class SomeComponent { + protected readonly open = signal(true); + protected readonly items = signal([{id: 1, src: '/photo.jpg'}]); + } + `, + 'app.html': ` + @if (open()) { + @for (item of items(); track item.id) { + + } + } + `, + }; + + const project = env.addProject('test', files, {strictTemplates: true}); + expect(project.getDiagnosticsForFile('app.html')).toEqual([]); + expect(project.getDiagnosticsForFile('app.ts')).toEqual([]); + }); + + it('should report template errors involving a non-exported directive from the same file', () => { + const files = { + 'app.ts': ` + import {Component, Directive, input} from '@angular/core'; + + @Directive({selector: '[appHelper]'}) + class HelperDirective { + readonly appHelper = input.required(); + } + + @Component({ + imports: [HelperDirective], + templateUrl: './app.html', + }) + export class SomeComponent {} + `, + 'app.html': `
    `, + }; + + const project = env.addProject('test', files, {strictTemplates: true}); + const diags = project.getDiagnosticsForFile('app.html'); + expect(diags.length).toBe(1); + expect(ts.flattenDiagnosticMessageText(diags[0].messageText, '')).toContain( + `Type 'number' is not assignable to type 'string'`, + ); + }); }); describe('getSuggestedDiagnostics', () => { diff --git a/packages/language-service/test/get_outlining_spans_spec.ts b/packages/language-service/test/get_outlining_spans_spec.ts index 360d172667da..62b636d1acda 100644 --- a/packages/language-service/test/get_outlining_spans_spec.ts +++ b/packages/language-service/test/get_outlining_spans_spec.ts @@ -203,6 +203,35 @@ describe('get outlining spans', () => { expect(getTrimmedSpanText(result[0].textSpan, files['app.ts'])).toEqual('{{item}}'); expect(getTrimmedSpanText(result[1].textSpan, files['app.ts'])).toEqual('empty list'); }); + + it('should have outlining spans for boundary and error blocks', () => { + const files = { + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + template: \` + @boundary { + boundary body + } @error (let err) { + error body + } + \`, + standalone: false, + }) + export class AppCmp { + }`, + }; + const env = LanguageServiceTestEnv.setup(); + const project = createModuleAndProjectWithDeclarations(env, 'test', files); + project.expectNoSourceDiagnostics(); + + const appFile = project.openFile('app.ts'); + const result = appFile.getOutliningSpans(); + expect(result.length).toEqual(2); + expect(getTrimmedSpanText(result[0].textSpan, files['app.ts'])).toEqual('boundary body'); + expect(getTrimmedSpanText(result[1].textSpan, files['app.ts'])).toEqual('error body'); + }); }); function getTrimmedSpanText(span: ts.TextSpan, contents: string) { diff --git a/packages/language-service/test/legacy/language_service_spec.ts b/packages/language-service/test/legacy/language_service_spec.ts index cdc50c3e2c26..323674c51e60 100644 --- a/packages/language-service/test/legacy/language_service_spec.ts +++ b/packages/language-service/test/legacy/language_service_spec.ts @@ -35,7 +35,6 @@ describe('language service adapter', () => { it('should initialize with angularCompilerOptions from tsconfig.json', () => { expect(ngLS.getCompilerOptions()).toEqual( jasmine.objectContaining({ - strictTemplates: true, strictInjectionParameters: true, }), ); @@ -44,7 +43,6 @@ describe('language service adapter', () => { it('should reparse angularCompilerOptions on tsconfig.json change', () => { expect(ngLS.getCompilerOptions()).toEqual( jasmine.objectContaining({ - strictTemplates: true, strictInjectionParameters: true, }), ); diff --git a/packages/language-service/test/legacy/project/app/#inner/component.ts b/packages/language-service/test/legacy/project/app/#inner/component.ts index c7f8d8d9c7d8..dc91e8bdcaa7 100644 --- a/packages/language-service/test/legacy/project/app/#inner/component.ts +++ b/packages/language-service/test/legacy/project/app/#inner/component.ts @@ -11,6 +11,5 @@ import {Component} from '@angular/core'; @Component({ selector: 'inner', templateUrl: './inner.html', - standalone: false, }) export class InnerComponent {} diff --git a/packages/language-service/test/legacy/project/tsconfig.json b/packages/language-service/test/legacy/project/tsconfig.json index 849426098221..b37289b0158f 100644 --- a/packages/language-service/test/legacy/project/tsconfig.json +++ b/packages/language-service/test/legacy/project/tsconfig.json @@ -3,7 +3,6 @@ "compilerOptions": { "stableTypeOrdering": true, "lib": ["es2015", "dom"], - "strict": true, "experimentalDecorators": true, "moduleResolution": "node", "target": "es2015", @@ -13,7 +12,6 @@ } }, "angularCompilerOptions": { - "strictTemplates": true, "strictInjectionParameters": true } } diff --git a/packages/language-service/test/legacy/template_target_spec.ts b/packages/language-service/test/legacy/template_target_spec.ts index 3090355c0f53..0745c98b0594 100644 --- a/packages/language-service/test/legacy/template_target_spec.ts +++ b/packages/language-service/test/legacy/template_target_spec.ts @@ -12,13 +12,11 @@ import { TmplAstBoundAttribute as BoundAttribute, TmplAstBoundEvent as BoundEvent, Call, - TmplAstComponent as Component, Conditional, TmplAstContent as Content, TmplAstDeferredBlockError as DeferredBlockError, TmplAstDeferredBlockLoading as DeferredBlockLoading, TmplAstDeferredBlockPlaceholder as DeferredBlockPlaceholder, - TmplAstDirective as Directive, TmplAstElement as Element, EmptyExpr, TmplAstForLoopBlock as ForLoopBlock, @@ -61,7 +59,7 @@ interface ParseResult { position: number; } -function parse(template: string, enableSelectorless = false): ParseResult { +function parse(template: string): ParseResult { const position = template.indexOf('¦'); if (position < 0) { throw new Error(`Template "${template}" does not contain the cursor`); @@ -78,7 +76,6 @@ function parse(template: string, enableSelectorless = false): ParseResult { leadingTriviaChars: [], preserveWhitespaces: true, alwaysAttemptHtmlToR3AstConversion: true, - enableSelectorless, }), position, }; @@ -932,46 +929,6 @@ describe('findNodeAtPosition for microsyntax expression', () => { expect(context.kind).toBe(TargetNodeKind.ElementInBodyContext); expect((context as SingleNodeTarget).node).toBeInstanceOf(Element); }); - - it('should locate a component in its tag context', () => { - const {errors, nodes, position} = parse(``, true); - expect(errors).toBe(null); - const {context} = getTargetAtPosition(nodes, position)!; - expect(context.kind).toBe(TargetNodeKind.ComponentInTagContext); - expect((context as SingleNodeTarget).node).toBeInstanceOf(Component); - }); - - it('should locate a component in its body context', () => { - const {errors, nodes, position} = parse(``, true); - expect(errors).toBe(null); - const {context} = getTargetAtPosition(nodes, position)!; - expect(context.kind).toBe(TargetNodeKind.ComponentInBodyContext); - expect((context as SingleNodeTarget).node).toBeInstanceOf(Component); - }); - - it('should locate a directive in its name context', () => { - const {errors, nodes, position} = parse(`
    `, true); - expect(errors).toBe(null); - const {context} = getTargetAtPosition(nodes, position)!; - expect(context.kind).toBe(TargetNodeKind.DirectiveInNameContext); - expect((context as SingleNodeTarget).node).toBeInstanceOf(Directive); - }); - - it('should locate a directive in its body context when there are bindings', () => { - const {errors, nodes, position} = parse(`
    `, true); - expect(errors).toBe(null); - const {context} = getTargetAtPosition(nodes, position)!; - expect(context.kind).toBe(TargetNodeKind.DirectiveInBodyContext); - expect((context as SingleNodeTarget).node).toBeInstanceOf(Directive); - }); - - it('should locate a directive in its body context when there are no bindings', () => { - const {errors, nodes, position} = parse(`
    `, true); - expect(errors).toBe(null); - const {context} = getTargetAtPosition(nodes, position)!; - expect(context.kind).toBe(TargetNodeKind.DirectiveInBodyContext); - expect((context as SingleNodeTarget).node).toBeInstanceOf(Directive); - }); }); describe('unclosed elements', () => { diff --git a/packages/language-service/test/quick_info_spec.ts b/packages/language-service/test/quick_info_spec.ts index cbb8243d7265..cfad769b57c4 100644 --- a/packages/language-service/test/quick_info_spec.ts +++ b/packages/language-service/test/quick_info_spec.ts @@ -450,6 +450,14 @@ describe('quick info', () => { }); }); + it('should work in class bindings with dots in the class name', () => { + expectQuickInfo({ + templateOverride: `
    `, + expectedSpanText: 'title', + expectedDisplayString: '(property) AppCmp.title: string', + }); + }); + it('should work for accessed function calls', () => { expectQuickInfo({ templateOverride: `
    `, @@ -657,6 +665,58 @@ describe('quick info', () => { expectedDisplayString: '(property) AppCmp.anyValue: any', }); }); + + it('should work for postfix update expression targets', () => { + expectQuickInfo({ + templateOverride: `
    `, + expectedSpanText: 'id', + expectedDisplayString: '(property) Hero.id: number', + }); + expectQuickInfo({ + templateOverride: `
    `, + expectedSpanText: 'id', + expectedDisplayString: '(property) Hero.id: number', + }); + }); + + it('should work for prefix update expression targets', () => { + expectQuickInfo({ + templateOverride: `
    `, + expectedSpanText: 'id', + expectedDisplayString: '(property) Hero.id: number', + }); + expectQuickInfo({ + templateOverride: `
    `, + expectedSpanText: 'id', + expectedDisplayString: '(property) Hero.id: number', + }); + }); + + it('should work for update expression targets wrapped in parentheses or non-null assertions', () => { + expectQuickInfo({ + templateOverride: `
    `, + expectedSpanText: 'id', + expectedDisplayString: '(property) Hero.id: number', + }); + expectQuickInfo({ + templateOverride: `
    `, + expectedSpanText: 'id', + expectedDisplayString: '(property) Hero.id: number', + }); + expectQuickInfo({ + templateOverride: `
    `, + expectedSpanText: 'id', + expectedDisplayString: '(property) Hero.id: number', + }); + }); + + it('should work for the operand of an update expression inside a larger expression', () => { + expectQuickInfo({ + templateOverride: `
    `, + expectedSpanText: 'name', + expectedDisplayString: '(property) Hero.name: string', + }); + }); }); describe('blocks', () => { @@ -848,6 +908,22 @@ describe('quick info', () => { }); }); + it('boundary error block context variables', () => { + expectQuickInfo({ + templateOverride: `@boundary { } @error (let er¦r) { }`, + expectedSpanText: 'err', + expectedDisplayString: '(variable) err: Error', + }); + }); + + it('boundary error block retry context variable', () => { + expectQuickInfo({ + templateOverride: `@boundary { } @error (let err, rt¦ry = $reset) { }`, + expectedSpanText: 'rtry', + expectedDisplayString: '(variable) rtry: () => void', + }); + }); + it('if block alias variable narrowed', () => { expectQuickInfo({ templateOverride: `@if (signalValue; as al¦iasName) {}`, @@ -982,6 +1058,28 @@ describe('quick info', () => { }); }); + it('should handle host class binding with dots in the class name', () => { + const source = ` + import {Component} from '@angular/core'; + + @Component({ + template: '', + selector: 'app-cmp', + host: {'[class.py-2.5]': 'isActive'} + }) + export class AppCmp { + isActive = true; + } + `; + + expectHostBindingsQuickInfo({ + source, + moveTo: `'[class.py-2.5]': 'isAc¦tive'`, + expectedSpanText: 'isActive', + expectedDisplayString: '(property) AppCmp.isActive: boolean', + }); + }); + it('should handle host listener', () => { const source = ` import {Component} from '@angular/core'; @@ -1167,102 +1265,9 @@ describe('quick info', () => { }); }); - describe('selectorless', () => { + describe('inline type check blocks', () => { beforeEach(() => { env = LanguageServiceTestEnv.setup(); - project = env.addProject( - 'test', - { - 'app.ts': ` - import {Component, Directive, EventEmitter, Input, Output} from '@angular/core'; - - @Component({template: ''}) - export class TestComponent { - @Input() name!: string; - @Output() testEvent = new EventEmitter(); - } - - @Directive() - export class TestDirective { - @Input() value!: number; - @Output() dirEvent = new EventEmitter(); - } - - @Component({templateUrl: './app.html'}) - export class AppCmp { - stringValue = 'hello'; - numberValue = 123; - handleEvent() {} - } - `, - 'app.html': 'Will be overridden', - }, - {_enableSelectorless: true}, - ); - }); - - it('should work for selectorless components', () => { - expectQuickInfo({ - templateOverride: '', - expectedSpanText: '', - expectedDisplayString: '(component) TestComponent', - }); - }); - - it('should work for selectorless directives', () => { - expectQuickInfo({ - templateOverride: '
    ', - expectedSpanText: '@TestDirective', - expectedDisplayString: '(directive) TestDirective', - }); - }); - - it('should work for selectorless component input', () => { - expectQuickInfo({ - templateOverride: '', - expectedSpanText: 'name', - expectedDisplayString: '(property) TestComponent.name: string', - }); - }); - - it('should work for selectorless component output', () => { - expectQuickInfo({ - templateOverride: '', - expectedSpanText: 'testEvent', - expectedDisplayString: '(event) TestComponent.testEvent: EventEmitter', - }); - }); - - it('should work for selectorless directive input', () => { - expectQuickInfo({ - templateOverride: '
    ', - expectedSpanText: 'value', - expectedDisplayString: '(property) TestDirective.value: number', - }); - }); - - it('should work for selectorless directive output', () => { - expectQuickInfo({ - templateOverride: '
    ', - expectedSpanText: 'dirEvent', - expectedDisplayString: '(event) TestDirective.dirEvent: EventEmitter', - }); - }); - - it('should work for selectorless component references', () => { - expectQuickInfo({ - templateOverride: '', - expectedSpanText: 'ref', - expectedDisplayString: '(reference) ref: TestComponent', - }); - }); - - it('should work for selectorless directive references', () => { - expectQuickInfo({ - templateOverride: '
    ', - expectedSpanText: 'ref', - expectedDisplayString: '(reference) ref: TestDirective', - }); }); it('should get quick info for a component with non-exported generic bound requiring external copy', () => { @@ -1322,6 +1327,46 @@ describe('quick info', () => { }); }); + it('should get quick info in a component using a non-exported directive from the same file', () => { + project = env.addProject( + 'test', + { + 'app.ts': ` + import {Component, Directive, input, signal} from '@angular/core'; + + @Directive({selector: 'img[appHelper]'}) + class HelperDirective { + readonly appHelper = input.required(); + } + + @Component({ + selector: 'app-some', + imports: [HelperDirective], + templateUrl: './app.html', + }) + export class SomeComponent { + protected readonly open = signal(true); + protected readonly items = signal([{id: 1, src: '/photo.jpg'}]); + } + `, + 'app.html': ``, + }, + {strictTemplates: true}, + ); + + expectQuickInfo({ + templateOverride: ` + @if (open()) { + @for (item of items(); track item.id) { + + } + } + `, + expectedSpanText: 'src', + expectedDisplayString: '(property) src: string', + }); + }); + it('should get quick info for a standalone component defined in a closure', () => { project = env.addProject('test', { 'app.ts': ` diff --git a/packages/language-service/test/references_and_rename_spec.ts b/packages/language-service/test/references_and_rename_spec.ts index 763a3f1d3dcd..b79df35331ca 100644 --- a/packages/language-service/test/references_and_rename_spec.ts +++ b/packages/language-service/test/references_and_rename_spec.ts @@ -1683,6 +1683,82 @@ describe('find references and rename locations', () => { assertTextSpans(refs, ['signalModel']); }); + describe('readonly inputs', () => { + // Note: this is a factory because `createModuleAndProjectWithDeclarations` adds the + // generated module to the passed-in files. + const getFiles = () => ({ + 'dir.ts': ` + import {Directive, Input, input} from '@angular/core'; + + @Directive({ + selector: '[readonly-dir]', + standalone: false, + }) + export class ReadonlyDir { + readonly signalInput = input(); + @Input() readonly decoratorInput: string|undefined; + }`, + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + template: '
    ', + standalone: false, + }) + export class AppCmp { + title = 'title'; + }`, + }); + + beforeEach(() => { + env = LanguageServiceTestEnv.setup(); + }); + + it('should get references to readonly signal input from the template', () => { + const project = createModuleAndProjectWithDeclarations(env, 'test', getFiles()); + const file = project.openFile('app.ts'); + file.moveCursorToText('[signal¦Input]="title"'); + + const refs = getReferencesAtPosition(file)!; + expect(refs.length).toBe(2); + assertFileNames(refs, ['dir.ts', 'app.ts']); + assertTextSpans(refs, ['signalInput']); + }); + + it('should get references to readonly signal input from the class member', () => { + const project = createModuleAndProjectWithDeclarations(env, 'test', getFiles()); + const file = project.openFile('dir.ts'); + file.moveCursorToText('readonly signal¦Input = input'); + + const refs = getReferencesAtPosition(file)!; + expect(refs.length).toBe(2); + assertFileNames(refs, ['dir.ts', 'app.ts']); + assertTextSpans(refs, ['signalInput']); + }); + + it('should get references to readonly decorator input from the template', () => { + const project = createModuleAndProjectWithDeclarations(env, 'test', getFiles()); + const file = project.openFile('app.ts'); + file.moveCursorToText('[decorator¦Input]="title"'); + + const refs = getReferencesAtPosition(file)!; + expect(refs.length).toBe(2); + assertFileNames(refs, ['dir.ts', 'app.ts']); + assertTextSpans(refs, ['decoratorInput']); + }); + + it('should get references to readonly decorator input from the class member', () => { + const project = createModuleAndProjectWithDeclarations(env, 'test', getFiles()); + const file = project.openFile('dir.ts'); + file.moveCursorToText('readonly decorator¦Input'); + + const refs = getReferencesAtPosition(file)!; + expect(refs.length).toBe(2); + assertFileNames(refs, ['dir.ts', 'app.ts']); + assertTextSpans(refs, ['decoratorInput']); + }); + }); + describe('directives', () => { describe('when cursor is on the directive class', () => { let file: OpenBuffer; @@ -2102,445 +2178,67 @@ describe('find references and rename locations', () => { }); }); - describe('selectorless components', () => { - let project: Project; - - beforeEach(() => { + describe('when cursor is on the target of an update expression', () => { + function setup(template: string, cursor: string): OpenBuffer { env = LanguageServiceTestEnv.setup(); - project = env.addProject( - 'test', - { - 'app.ts': ` - import {Component} from '@angular/core'; - import {TestComponent} from './test-component'; - - @Component({templateUrl: './app.html'}) - export class AppCmp { - stringValue = 'hello'; - handleEvent() {} - } - `, - 'test-component.ts': ` - import {Component, EventEmitter, Input, Output} from '@angular/core'; - - @Component({template: ''}) - export class TestComponent { - @Input() name!: string; - @Output() testEvent = new EventEmitter(); - } - `, - 'app.html': 'Will be overridden', - }, - {_enableSelectorless: true}, - ); - }); - - describe('references', () => { - it('should find references to selectorless component from source file', () => { - const file = project.openFile('test-component.ts'); - const template = project.openFile('app.html'); - template.contents = ''; - file.moveCursorToText('export class TestComp¦onent {'); - const refs = getReferencesAtPosition(file)!; - expect(refs.length).toBe(3); - assertTextSpans(refs, ['TestComponent', '']); - assertFileNames(refs, ['test-component.ts', 'app.html', 'app.ts']); - }); - - it('should find references to selectorless component from template', () => { - const template = project.openFile('app.html'); - template.contents = ''; - template.moveCursorToText(''); - const refs = getReferencesAtPosition(template)!; - expect(refs.length).toBe(3); - assertTextSpans(refs, ['TestComponent', '']); - assertFileNames(refs, ['test-component.ts', 'app.html', 'app.ts']); - }); - - it('should find references to selectorless component inputs from source file', () => { - const file = project.openFile('test-component.ts'); - const template = project.openFile('app.html'); - template.contents = ''; - file.moveCursorToText('@Input() na¦me!: string;'); - const refs = getReferencesAtPosition(file)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['name']); - assertFileNames(refs, ['test-component.ts', 'app.html']); - }); - - it('should find references to selectorless component inputs from template', () => { - const template = project.openFile('app.html'); - template.contents = ''; - template.moveCursorToText('[na¦me]'); - const refs = getReferencesAtPosition(template)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['name']); - assertFileNames(refs, ['test-component.ts', 'app.html']); - }); - - it('should find references to selectorless component outputs from source file', () => { - const file = project.openFile('test-component.ts'); - const template = project.openFile('app.html'); - template.contents = ''; - file.moveCursorToText('@Output() test¦Event = new EventEmitter();'); - const refs = getReferencesAtPosition(file)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['testEvent']); - assertFileNames(refs, ['test-component.ts', 'app.html']); - }); - - it('should find references to selectorless component outputs from template', () => { - const template = project.openFile('app.html'); - template.contents = ''; - template.moveCursorToText('(tes¦tEvent)'); - const refs = getReferencesAtPosition(template)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['testEvent']); - assertFileNames(refs, ['test-component.ts', 'app.html']); - }); - }); - - describe('rename locations', () => { - it('should find rename locations of selectorless component from template', () => { - const template = project.openFile('app.html'); - template.contents = ''; - template.moveCursorToText(''); - const renameLocations = getRenameLocationsAtPosition(template)!; - - // There are 3 locations that need to be renamed: - // - Source file where the component is defined. - // - Self-closing tag in the template. - // - Import in the app component. - expect(renameLocations.length).toBe(3); - assertTextSpans(renameLocations, ['TestComponent']); - assertFileNames(renameLocations, ['test-component.ts', 'app.html', 'app.ts']); - }); - - it('should find rename locations for complex selectorless component', () => { - const template = project.openFile('app.html'); - template.contents = 'Hello'; - template.moveCursorToText(' { - const file = project.openFile('test-component.ts'); - const template = project.openFile('app.html'); - template.contents = ''; - file.moveCursorToText('@Input() na¦me!: string;'); - const refs = getRenameLocationsAtPosition(file)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['name']); - assertFileNames(refs, ['test-component.ts', 'app.html']); - }); - - it('should find rename locations to selectorless component inputs from template', () => { - const template = project.openFile('app.html'); - template.contents = ''; - template.moveCursorToText('[na¦me]'); - const refs = getRenameLocationsAtPosition(template)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['name']); - assertFileNames(refs, ['test-component.ts', 'app.html']); - }); - - it('should find rename locations to selectorless component outputs from source file', () => { - const file = project.openFile('test-component.ts'); - const template = project.openFile('app.html'); - template.contents = ''; - file.moveCursorToText('@Output() test¦Event = new EventEmitter();'); - const refs = getRenameLocationsAtPosition(file)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['testEvent']); - assertFileNames(refs, ['test-component.ts', 'app.html']); - }); - - it('should find rename locations to selectorless component outputs from template', () => { - const template = project.openFile('app.html'); - template.contents = ''; - template.moveCursorToText('(tes¦tEvent)'); - const refs = getRenameLocationsAtPosition(template)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['testEvent']); - assertFileNames(refs, ['test-component.ts', 'app.html']); - }); - - it('should handle rename request for selectorless component from source file', () => { - const file = project.openFile('test-component.ts'); - const template = project.openFile('app.html'); - template.contents = - ' {{123 + 456}}
    Hello
    '; - file.moveCursorToText('export class TestCom¦ponent {'); - const renameLocations = getRenameLocationsAtPosition(file)!; + const project = createModuleAndProjectWithDeclarations(env, 'test', { + 'app.ts': ` + import {Component} from '@angular/core'; - // There are 5 locations that need to be renamed: - // - Source file where the component is defined. - // - Self-closing tag in the template. - // - Opening tag in the template. - // - Closing tag in the template. - // - Import in the app component. - expect(renameLocations.length).toBe(5); - assertTextSpans(renameLocations, ['TestComponent']); - assertFileNames(renameLocations, ['test-component.ts', 'app.html', 'app.ts']); + @Component({templateUrl: './app.html', standalone: false}) + export class AppCmp { + counter = 0; + }`, + 'app.html': template, }); - }); - }); - - describe('selectorless directives', () => { - let project: Project; - - beforeEach(() => { - env = LanguageServiceTestEnv.setup(); - project = env.addProject( - 'test', - { - 'app.ts': ` - import {Component} from '@angular/core'; - import {TestDirective} from './test-directive'; + const file = project.openFile('app.html'); + file.moveCursorToText(cursor); + return file; + } - @Component({templateUrl: './app.html'}) - export class AppCmp { - numberValue!: number; - handleEvent() {} - } - `, - 'test-directive.ts': ` - import {Directive, EventEmitter, Input, Output} from '@angular/core'; + it('gets member reference for a postfix update', () => { + const file = setup(`
    `, 'coun¦ter++'); + const refs = getReferencesAtPosition(file)!; + expect(refs.length).toBe(2); - @Directive() - export class TestDirective { - @Input() value!: number; - @Output() testEvent = new EventEmitter(); - } - `, - 'app.html': 'Will be overridden', - }, - {_enableSelectorless: true}, - ); + assertFileNames(refs, ['app.ts', 'app.html']); + assertTextSpans(refs, ['counter']); }); - describe('references', () => { - it('should find references to selectorless directive from source file', () => { - const file = project.openFile('test-directive.ts'); - const template = project.openFile('app.html'); - template.contents = '
    '; - file.moveCursorToText('export class TestDir¦ective {'); - const refs = getReferencesAtPosition(file)!; - expect(refs.length).toBe(3); - assertTextSpans(refs, ['TestDirective', '@TestDirective']); - assertFileNames(refs, ['test-directive.ts', 'app.html', 'app.ts']); - }); - - it('should find references to selectorless directive from template', () => { - const template = project.openFile('app.html'); - template.contents = '
    '; - template.moveCursorToText('
    '); - const refs = getReferencesAtPosition(template)!; - expect(refs.length).toBe(3); - assertTextSpans(refs, ['TestDirective', '@TestDirective']); - assertFileNames(refs, ['test-directive.ts', 'app.html', 'app.ts']); - }); - - it('should find references to selectorless directive inputs from source file', () => { - const file = project.openFile('test-directive.ts'); - const template = project.openFile('app.html'); - template.contents = '
    '; - file.moveCursorToText('@Input() val¦ue!: number;'); - const refs = getReferencesAtPosition(file)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['value']); - assertFileNames(refs, ['test-directive.ts', 'app.html']); - }); - - it('should find references to selectorless directive inputs from template', () => { - const template = project.openFile('app.html'); - template.contents = '
    '; - template.moveCursorToText('[val¦ue]'); - const refs = getReferencesAtPosition(template)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['value']); - assertFileNames(refs, ['test-directive.ts', 'app.html']); - }); - - it('should find references to selectorless directive outputs from source file', () => { - const file = project.openFile('test-directive.ts'); - const template = project.openFile('app.html'); - template.contents = '
    '; - file.moveCursorToText('@Output() test¦Event = new EventEmitter();'); - const refs = getReferencesAtPosition(file)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['testEvent']); - assertFileNames(refs, ['test-directive.ts', 'app.html']); - }); + it('gets rename location for a postfix update', () => { + const file = setup(`
    `, 'coun¦ter++'); + const renameLocations = getRenameLocationsAtPosition(file)!; + expect(renameLocations.length).toBe(2); - it('should find references to selectorless directive outputs from template', () => { - const template = project.openFile('app.html'); - template.contents = '
    '; - template.moveCursorToText('(tes¦tEvent)'); - const refs = getReferencesAtPosition(template)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['testEvent']); - assertFileNames(refs, ['test-directive.ts', 'app.html']); - }); + assertFileNames(renameLocations, ['app.ts', 'app.html']); + assertTextSpans(renameLocations, ['counter']); }); - describe('rename locations', () => { - it('should find rename locations of selectorless directive from template', () => { - const template = project.openFile('app.html'); - template.contents = '
    '; - template.moveCursorToText('@TestDir¦ective'); - const renameLocations = getRenameLocationsAtPosition(template)!; - - // There are 3 locations that need to be renamed: - // - Source file where the directive is defined. - // - Reference on the `div` node. - // - Import in the app component. - expect(renameLocations.length).toBe(3); - assertTextSpans(renameLocations, ['TestDirective']); - assertFileNames(renameLocations, ['test-directive.ts', 'app.html', 'app.ts']); - }); - - it('should find rename locations for selectorless directive with bindings', () => { - const template = project.openFile('app.html'); - template.contents = '
    Hello
    '; - template.moveCursorToText('@TestDir¦ective('); - const renameLocations = getRenameLocationsAtPosition(template)!; - - // There are 3 locations that need to be renamed: - // - Source file where the directive is defined. - // - Reference on the `div` node. - // - Import in the app component. - expect(renameLocations.length).toBe(3); - assertTextSpans(renameLocations, ['TestDirective']); - assertFileNames(renameLocations, ['test-directive.ts', 'app.html', 'app.ts']); - }); - - it('should find rename locations to selectorless directive inputs from source file', () => { - const file = project.openFile('test-directive.ts'); - const template = project.openFile('app.html'); - template.contents = '
    '; - file.moveCursorToText('@Input() val¦ue!: number;'); - const refs = getRenameLocationsAtPosition(file)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['value']); - assertFileNames(refs, ['test-directive.ts', 'app.html']); - }); - - it('should find rename locations to selectorless directive inputs from template', () => { - const template = project.openFile('app.html'); - template.contents = '
    '; - template.moveCursorToText('[val¦ue]'); - const refs = getRenameLocationsAtPosition(template)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['value']); - assertFileNames(refs, ['test-directive.ts', 'app.html']); - }); - - it('should find rename locations to selectorless directive outputs from source file', () => { - const file = project.openFile('test-directive.ts'); - const template = project.openFile('app.html'); - template.contents = '
    '; - file.moveCursorToText('@Output() test¦Event = new EventEmitter();'); - const refs = getRenameLocationsAtPosition(file)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['testEvent']); - assertFileNames(refs, ['test-directive.ts', 'app.html']); - }); - - it('should find rename locations to selectorless directive outputs from template', () => { - const template = project.openFile('app.html'); - template.contents = '
    '; - template.moveCursorToText('(tes¦tEvent)'); - const refs = getRenameLocationsAtPosition(template)!; - expect(refs.length).toBe(2); - assertTextSpans(refs, ['testEvent']); - assertFileNames(refs, ['test-directive.ts', 'app.html']); - }); - - it('should handle rename request for selectorless component from source file', () => { - const file = project.openFile('test-directive.ts'); - const template = project.openFile('app.html'); - template.contents = - '
    '; - file.moveCursorToText('export class TestDir¦ective {'); - const renameLocations = getRenameLocationsAtPosition(file)!; + it('gets rename location for a prefix update', () => { + const file = setup(`
    `, '--coun¦ter'); + const renameLocations = getRenameLocationsAtPosition(file)!; + expect(renameLocations.length).toBe(2); - // There are 4 locations that need to be renamed: - // - Source file where the directive is defined. - // - Reference on the `div` node. - // - Refernce on the `input` node. - // - Import in the app component. - expect(renameLocations.length).toBe(4); - assertTextSpans(renameLocations, ['TestDirective']); - assertFileNames(renameLocations, ['test-directive.ts', 'app.html', 'app.ts']); - }); + assertFileNames(renameLocations, ['app.ts', 'app.html']); + assertTextSpans(renameLocations, ['counter']); }); - }); - - describe('aliased selectorless', () => { - let project: Project; - - beforeEach(() => { - env = LanguageServiceTestEnv.setup(); - project = env.addProject( - 'test', - { - 'app.ts': ` - import {Component} from '@angular/core'; - import {TestComponent as AliasedComponent} from './test-component'; - import {TestDirective as AliasedDirective} from './test-directive'; - - @Component({templateUrl: './app.html'}) - export class AppCmp { - numberValue!: number; - handleEvent() {} - } - `, - 'test-component.ts': ` - import {Component, EventEmitter, Input, Output} from '@angular/core'; - @Component({template: ''}) - export class TestComponent { - @Input() name!: string; - @Output() testEvent = new EventEmitter(); - } - `, - 'test-directive.ts': ` - import {Directive, EventEmitter, Input, Output} from '@angular/core'; + it('gets rename location when the target is parenthesized', () => { + const file = setup(`
    `, '(coun¦ter)++'); + const renameLocations = getRenameLocationsAtPosition(file)!; + expect(renameLocations.length).toBe(2); - @Directive() - export class TestDirective { - @Input() value!: number; - @Output() testEvent = new EventEmitter(); - } - `, - 'app.html': 'Will be overridden', - }, - {_enableSelectorless: true}, - ); + assertFileNames(renameLocations, ['app.ts', 'app.html']); + assertTextSpans(renameLocations, ['counter']); }); - it('should not rename aliased selectorless component references', () => { - const template = project.openFile('app.html'); - template.contents = ''; - template.moveCursorToText(''); - expect(getRenameLocationsAtPosition(template)).toBeUndefined(); - }); + it('gets rename location when the target has a non-null assertion', () => { + const file = setup(`
    `, 'coun¦ter!++'); + const renameLocations = getRenameLocationsAtPosition(file)!; + expect(renameLocations.length).toBe(2); - it('should not rename aliased selectorless directive references', () => { - const template = project.openFile('app.html'); - template.contents = '
    '; - template.moveCursorToText('@AliasedDir¦ective'); - expect(getRenameLocationsAtPosition(template)).toBeUndefined(); + assertFileNames(renameLocations, ['app.ts', 'app.html']); + assertTextSpans(renameLocations, ['counter']); }); }); diff --git a/packages/language-service/test/smart_selection_spec.ts b/packages/language-service/test/smart_selection_spec.ts new file mode 100644 index 000000000000..c98e76312217 --- /dev/null +++ b/packages/language-service/test/smart_selection_spec.ts @@ -0,0 +1,354 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import ts from 'typescript'; + +import {createModuleAndProjectWithDeclarations, LanguageServiceTestEnv} from '../testing'; + +describe('smart selection ranges', () => { + it('should expand through control flow blocks in an external template', () => { + const files = { + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + templateUrl: './app.html', + standalone: false, + }) + export class AppCmp { + show = true; + name = 'name'; + }`, + 'app.html': '
    @if (show) {{{name}}}
    ', + }; + const env = LanguageServiceTestEnv.setup(); + const project = createModuleAndProjectWithDeclarations(env, 'test', files); + project.expectNoSourceDiagnostics(); + + const appFile = project.openFile('app.html'); + appFile.moveCursorToText('{{na¦me}}'); + const chain = selectionChainText(appFile.getTemplateSelectionRange(), files['app.html']); + expect(chain).toEqual([ + 'name', + '{{name}}', + '{{name}}', + '@if (show) {{{name}}}', + '
    @if (show) {{{name}}}
    ', + ]); + }); + + it('should expand nested @if blocks one step at a time', () => { + const template = ['@if (outer) {', ' @if (inner) {', ' text', ' }', '}'].join('\n'); + const files = { + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + templateUrl: './app.html', + standalone: false, + }) + export class AppCmp { + outer = true; + inner = true; + }`, + 'app.html': template, + }; + const env = LanguageServiceTestEnv.setup(); + const project = createModuleAndProjectWithDeclarations(env, 'test', files); + project.expectNoSourceDiagnostics(); + + const appFile = project.openFile('app.html'); + appFile.moveCursorToText('te¦xt'); + const chain = selectionChainText(appFile.getTemplateSelectionRange(), template); + expect(chain).toEqual([ + 'text', + 'text', + '\n text\n ', + '@if (inner) {\n text\n }', + '\n @if (inner) {\n text\n }\n', + '@if (outer) {\n @if (inner) {\n text\n }\n}', + ]); + }); + + it('should not create spans that cross the branches of a multi-branch @if', () => { + const template = '@if (a) {one} @else if (b) {two} @else {three}'; + const files = { + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + templateUrl: './app.html', + standalone: false, + }) + export class AppCmp { + a = true; + b = true; + }`, + 'app.html': template, + }; + const env = LanguageServiceTestEnv.setup(); + const project = createModuleAndProjectWithDeclarations(env, 'test', files); + project.expectNoSourceDiagnostics(); + + const appFile = project.openFile('app.html'); + appFile.moveCursorToText('thr¦ee'); + expect(selectionChainText(appFile.getTemplateSelectionRange(), template)).toEqual([ + 'three', + '@else {three}', + '@if (a) {one} @else if (b) {two} @else {three}', + ]); + + appFile.moveCursorToText('{tw¦o}'); + expect(selectionChainText(appFile.getTemplateSelectionRange(), template)).toEqual([ + 'two', + '@else if (b) {two}', + '@if (a) {one} @else if (b) {two} @else {three}', + ]); + }); + + it('should expand through the expression of an interpolation', () => { + const template = '{{ user.address.city }}'; + const files = { + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + templateUrl: './app.html', + standalone: false, + }) + export class AppCmp { + user = {address: {city: 'Rome'}}; + }`, + 'app.html': template, + }; + const env = LanguageServiceTestEnv.setup(); + const project = createModuleAndProjectWithDeclarations(env, 'test', files); + project.expectNoSourceDiagnostics(); + + const appFile = project.openFile('app.html'); + appFile.moveCursorToText('ci¦ty'); + expect(selectionChainText(appFile.getTemplateSelectionRange(), template)).toEqual([ + 'user.address.city', + '{{ user.address.city }}', + '{{ user.address.city }}', + ]); + + appFile.moveCursorToText('addr¦ess'); + const chain = selectionChainText(appFile.getTemplateSelectionRange(), template); + expect(chain).toContain('user.address'); + expect(chain).toContain('user.address.city'); + }); + + it('should expand through the expressions of property and event bindings', () => { + const template = ''; + const files = { + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + templateUrl: './app.html', + standalone: false, + }) + export class AppCmp { + user = {address: {city: 'Rome'}}; + save(user: object) {} + }`, + 'app.html': template, + }; + const env = LanguageServiceTestEnv.setup(); + const project = createModuleAndProjectWithDeclarations(env, 'test', files); + project.expectNoSourceDiagnostics(); + + const appFile = project.openFile('app.html'); + appFile.moveCursorToText('[id]="user.addr¦ess.city"'); + const propertyChain = selectionChainText(appFile.getTemplateSelectionRange(), template); + expect(propertyChain).toContain('user.address'); + expect(propertyChain).toContain('user.address.city'); + expect(propertyChain).toContain('[id]="user.address.city"'); + + appFile.moveCursorToText('save(us¦er)'); + const eventChain = selectionChainText(appFile.getTemplateSelectionRange(), template); + expect(eventChain).toContain('user'); + expect(eventChain).toContain('save(user)'); + expect(eventChain).toContain('(click)="save(user)"'); + }); + + it('should only include the main block of @for when expanding from its body', () => { + const files = { + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + template: '@for (item of items; track item) {{{item}}} @empty {none}', + standalone: false, + }) + export class AppCmp { + items = ['a']; + }`, + }; + const env = LanguageServiceTestEnv.setup(); + const project = createModuleAndProjectWithDeclarations(env, 'test', files); + project.expectNoSourceDiagnostics(); + + const appFile = project.openFile('app.ts'); + appFile.moveCursorToText('{{ite¦m}}'); + const chain = selectionChainText(appFile.getTemplateSelectionRange(), files['app.ts']); + expect(chain).toContain('@for (item of items; track item) {{{item}}}'); + // The chain stops at the template boundary; the editor merges it with the + // ranges of the TypeScript provider. + expect(chain[chain.length - 1]).toEqual( + '@for (item of items; track item) {{{item}}} @empty {none}', + ); + }); + + it('should expand from the secondary block of @for to the whole block', () => { + const files = { + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + template: '@for (item of items; track item) {{{item}}} @empty {none}', + standalone: false, + }) + export class AppCmp { + items = ['a']; + }`, + }; + const env = LanguageServiceTestEnv.setup(); + const project = createModuleAndProjectWithDeclarations(env, 'test', files); + project.expectNoSourceDiagnostics(); + + const appFile = project.openFile('app.ts'); + appFile.moveCursorToText('no¦ne'); + const chain = selectionChainText(appFile.getTemplateSelectionRange(), files['app.ts']); + expect(chain).toContain('@empty {none}'); + expect(chain).toContain('@for (item of items; track item) {{{item}}} @empty {none}'); + }); + + it('should expand through @switch cases', () => { + const template = ["@switch (status) {@case ('on') {on} @default {off}}"].join('\n'); + const files = { + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + templateUrl: './app.html', + standalone: false, + }) + export class AppCmp { + status = 'on'; + }`, + 'app.html': template, + }; + const env = LanguageServiceTestEnv.setup(); + const project = createModuleAndProjectWithDeclarations(env, 'test', files); + project.expectNoSourceDiagnostics(); + + const appFile = project.openFile('app.html'); + appFile.moveCursorToText('o¦n'); + const chain = selectionChainText(appFile.getTemplateSelectionRange(), template); + expect(chain).toContain("@case ('on') {on}"); + expect(chain).toContain("@switch (status) {@case ('on') {on} @default {off}}"); + }); + + it('should expand through the blocks of @defer', () => { + const template = '@defer {ok} @placeholder {ph} @loading {load} @error {err}'; + const files = { + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + templateUrl: './app.html', + standalone: false, + }) + export class AppCmp {}`, + 'app.html': template, + }; + const env = LanguageServiceTestEnv.setup(); + const project = createModuleAndProjectWithDeclarations(env, 'test', files); + project.expectNoSourceDiagnostics(); + + const appFile = project.openFile('app.html'); + appFile.moveCursorToText('o¦k'); + expect(selectionChainText(appFile.getTemplateSelectionRange(), template)).toEqual([ + 'ok', + 'ok', + '@defer {ok}', + '@defer {ok} @placeholder {ph} @loading {load} @error {err}', + ]); + + appFile.moveCursorToText('p¦h'); + expect(selectionChainText(appFile.getTemplateSelectionRange(), template)).toEqual([ + 'ph', + 'ph', + '@placeholder {ph}', + '@defer {ok} @placeholder {ph} @loading {load} @error {err}', + ]); + }); + + it('should expand through the value of a @let declaration', () => { + const template = '@let city = user.address.city;{{city}}'; + const files = { + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + templateUrl: './app.html', + standalone: false, + }) + export class AppCmp { + user = {address: {city: 'Rome'}}; + }`, + 'app.html': template, + }; + const env = LanguageServiceTestEnv.setup(); + const project = createModuleAndProjectWithDeclarations(env, 'test', files); + project.expectNoSourceDiagnostics(); + + const appFile = project.openFile('app.html'); + appFile.moveCursorToText('address.ci¦ty;'); + const chain = selectionChainText(appFile.getTemplateSelectionRange(), template); + expect(chain).toContain('user.address.city'); + expect(chain).toContain('@let city = user.address.city;'); + }); + + it('should return undefined outside of templates', () => { + const files = { + 'app.ts': ` + import {Component} from '@angular/core'; + + @Component({ + template: '{{greeting}}', + standalone: false, + }) + export class AppCmp { + greeting = 'hello world'; + }`, + }; + const env = LanguageServiceTestEnv.setup(); + const project = createModuleAndProjectWithDeclarations(env, 'test', files); + project.expectNoSourceDiagnostics(); + + const appFile = project.openFile('app.ts'); + appFile.moveCursorToText(`greeting = 'hello wor¦ld';`); + // The editor is expected to fall back to its TypeScript provider. + expect(appFile.getTemplateSelectionRange()).toBeUndefined(); + }); +}); + +function selectionChainText(range: ts.SelectionRange | undefined, contents: string): string[] { + const result: string[] = []; + let current: ts.SelectionRange | undefined = range; + while (current !== undefined) { + result.push( + contents.substring(current.textSpan.start, current.textSpan.start + current.textSpan.length), + ); + current = current.parent; + } + return result; +} diff --git a/packages/language-service/testing/src/buffer.ts b/packages/language-service/testing/src/buffer.ts index 0fb976689be4..467616b4b9f8 100644 --- a/packages/language-service/testing/src/buffer.ts +++ b/packages/language-service/testing/src/buffer.ts @@ -123,6 +123,10 @@ export class OpenBuffer { return this.ngLS.getOutliningSpans(this.scriptInfo.fileName); } + getTemplateSelectionRange() { + return this.ngLS.getTemplateSelectionRange(this.scriptInfo.fileName, this._cursor); + } + getTemplateLocationForComponent() { return this.ngLS.getTemplateLocationForComponent(this.scriptInfo.fileName, this._cursor); } diff --git a/packages/language-service/testing/src/project.ts b/packages/language-service/testing/src/project.ts index 05310763f6ab..39d89c5c8cc1 100644 --- a/packages/language-service/testing/src/project.ts +++ b/packages/language-service/testing/src/project.ts @@ -75,11 +75,7 @@ function writeTsconfig( ); } -export type TestableOptions = TypeCheckingOptions & - InternalOptions & { - // This already exists in `InternalOptions`, but it's `internal` so it's stripped away. - _enableSelectorless?: boolean; - }; +export type TestableOptions = TypeCheckingOptions & InternalOptions; export class Project { private tsProject: ts.server.Project; diff --git a/packages/localize/BUILD.bazel b/packages/localize/BUILD.bazel index 5f9cc1c14777..93fbdbcd6365 100644 --- a/packages/localize/BUILD.bazel +++ b/packages/localize/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "api_golden_test_npm_package", "generate_api_docs", "ng_package", "ts_project") +load("//tools:defaults.bzl", "api_golden_test_npm_package", "ng_package", "ts_project") package(default_visibility = ["//visibility:public"]) @@ -60,13 +60,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "localize_docs", - srcs = [ - ":files_for_docgen", - "//packages/localize/src/utils:files_for_docgen", - ], - entry_point = ":index.ts", - module_name = "@angular/localize", -) diff --git a/packages/localize/package.json b/packages/localize/package.json index 30dd7370babe..c456e4c12e2b 100644 --- a/packages/localize/package.json +++ b/packages/localize/package.json @@ -33,7 +33,7 @@ "./fesm2022/init.mjs" ], "dependencies": { - "@babel/core": "8.0.1", + "@babel/core": "8.1.0", "tinyglobby": "^0.2.12", "yargs": "^18.0.0" }, diff --git a/packages/localize/schematics/ng-add/index_spec.ts b/packages/localize/schematics/ng-add/index_spec.ts index 8f36f9dc01c8..ef0a52debc49 100644 --- a/packages/localize/schematics/ng-add/index_spec.ts +++ b/packages/localize/schematics/ng-add/index_spec.ts @@ -7,7 +7,7 @@ */ import {EmptyTree, Tree} from '@angular-devkit/schematics'; -import {SchematicTestRunner} from '@angular-devkit/schematics/testing/index.js'; +import {SchematicTestRunner} from '@angular-devkit/schematics/testing'; import {resolve} from 'node:path'; import ts from 'typescript'; diff --git a/packages/localize/src/localize/BUILD.bazel b/packages/localize/src/localize/BUILD.bazel index 5918cca75b2e..9bb1d077a4af 100644 --- a/packages/localize/src/localize/BUILD.bazel +++ b/packages/localize/src/localize/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "generate_api_docs", "ts_project") +load("//tools:defaults.bzl", "ts_project") package(default_visibility = ["//visibility:public"]) @@ -22,12 +22,3 @@ filegroup( "src/**/*.ts", ]), ) - -generate_api_docs( - name = "localize_init_docs", - srcs = [ - ":files_for_docgen", - ], - entry_point = ":doc_index.ts", - module_name = "@angular/localize/init", -) diff --git a/packages/localize/src/localize/src/localize.ts b/packages/localize/src/localize/src/localize.ts index 2717551a375d..01dafd2b6de1 100644 --- a/packages/localize/src/localize/src/localize.ts +++ b/packages/localize/src/localize/src/localize.ts @@ -58,6 +58,10 @@ export interface TranslateFn { * $localize `some string to localize` * ``` * + * IMPORTANT: `$localize` does not support ICU expressions. Use an Angular template with an + * `i18n` marker for ICU messages. An ICU expression must also be present in the source + * template; it cannot be introduced only by a translation. + * * **Providing meaning, description and id** * * You can optionally specify one or more of `meaning`, `description` and `id` for a localized diff --git a/packages/localize/src/utils/src/translations.ts b/packages/localize/src/utils/src/translations.ts index d947f61a19b0..7915f9c6b17e 100644 --- a/packages/localize/src/utils/src/translations.ts +++ b/packages/localize/src/utils/src/translations.ts @@ -95,6 +95,7 @@ export function translate( * @param message the message to be parsed. */ export function parseTranslation(messageString: TargetMessage): ParsedTranslation { + messageString = messageString.replace(/\uFFFD/g, ''); const parts = messageString.split(/{\$([^}]*)}/); const messageParts = [parts[0]]; const placeholderNames: string[] = []; @@ -122,6 +123,7 @@ export function makeParsedTranslation( messageParts: string[], placeholderNames: string[] = [], ): ParsedTranslation { + messageParts = messageParts.map((part) => part.replace(/\uFFFD/g, '')); let messageString = messageParts[0]; for (let i = 0; i < placeholderNames.length; i++) { messageString += `{$${placeholderNames[i]}}${messageParts[i + 1]}`; diff --git a/packages/localize/src/utils/test/translations_spec.ts b/packages/localize/src/utils/test/translations_spec.ts index e3ecdbb92c6a..5c46910cd4de 100644 --- a/packages/localize/src/utils/test/translations_spec.ts +++ b/packages/localize/src/utils/test/translations_spec.ts @@ -53,6 +53,14 @@ describe('utils', () => { 'a{$ph1}b{$ph2}c', ); }); + + it('should strip replacement characters from message parts', () => { + const translation = makeParsedTranslation(['a\uFFFD#1', 'b\uFFFD*1:1'], ['ph1']); + expect(translation.messageParts).toEqual( + makeTemplateObject(['a#1', 'b*1:1'], ['a#1', 'b*1:1']), + ); + expect(translation.text).toEqual('a#1{$ph1}b*1:1'); + }); }); describe('parseTranslation', () => { @@ -108,6 +116,13 @@ describe('utils', () => { expect(translation.messageParts.raw).toEqual(['', '', '']); expect(translation.placeholderNames).toEqual(['one', 'two']); }); + + it('should strip replacement characters from message parts', () => { + const translation = parseTranslation('a\uFFFD#1{$one}\uFFFD:marker:b\uFFFD'); + expect(translation.messageParts).toEqual(['a#1', ':marker:b']); + expect(translation.messageParts.raw).toEqual(['a#1', '\\:marker:b']); + expect(translation.text).toEqual('a#1{$one}:marker:b'); + }); }); describe('translate', () => { diff --git a/packages/localize/tools/src/translate/translation_files/base_visitor.ts b/packages/localize/tools/src/translate/translation_files/base_visitor.ts index 2d87dc837384..f696f83ab074 100644 --- a/packages/localize/tools/src/translate/translation_files/base_visitor.ts +++ b/packages/localize/tools/src/translate/translation_files/base_visitor.ts @@ -10,8 +10,6 @@ import { Block, BlockParameter, Comment, - Component, - Directive, Element, Expansion, ExpansionCase, @@ -35,6 +33,4 @@ export class BaseVisitor implements Visitor { visitBlock(_block: Block, _context: any) {} visitBlockParameter(_parameter: BlockParameter, _context: any) {} visitLetDeclaration(_decl: LetDeclaration, _context: any) {} - visitComponent(_component: Component, _context: any) {} - visitDirective(_directive: Directive, _context: any) {} } diff --git a/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts b/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts index 4453a438437a..72601927750f 100644 --- a/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts +++ b/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts @@ -22,9 +22,9 @@ import { withFetch, } from '@angular/common/http'; import {importProvidersFrom, Injectable} from '@angular/core'; -import {TestBed, waitForAsync} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {HttpClientBackendService, HttpClientInMemoryWebApiModule} from 'angular-in-memory-web-api'; -import {Observable, of, zip} from 'rxjs'; +import {firstValueFrom, Observable, of, zip} from 'rxjs'; import {concatMap, map, tap} from 'rxjs/operators'; import {Hero} from './fixtures/hero'; @@ -50,16 +50,12 @@ describe('HttpClient Backend Service', () => { http = TestBed.inject(HttpClient); }); - it('can get heroes', waitForAsync(() => { - http - .get('api/heroes') - .subscribe( - (heroes) => expect(heroes.length).toBeGreaterThan(0, 'should have heroes'), - failRequest, - ); - })); + it('can get heroes', async () => { + const heroes = await firstValueFrom(http.get('api/heroes')); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }); - it('GET should be a "cold" observable', waitForAsync(() => { + it('GET should be a "cold" observable', async () => { const httpBackend = TestBed.inject(HttpBackend); const spy = spyOn(httpBackend, 'collectionHandler').and.callThrough(); const get$ = http.get('api/heroes'); @@ -67,25 +63,29 @@ describe('HttpClient Backend Service', () => { // spy on `collectionHandler` should not be called before subscribe expect(spy).not.toHaveBeenCalled(); - get$.subscribe((heroes) => { - expect(spy).toHaveBeenCalled(); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, failRequest); - })); + const heroes = await firstValueFrom(get$); + expect(spy).toHaveBeenCalled(); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }); - it('GET should wait until after delay to respond', waitForAsync(() => { + it('GET should wait until after delay to respond', async () => { // to make test fail, set `delay=0` above let gotResponse = false; - http.get('api/heroes').subscribe((heroes) => { - gotResponse = true; - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, failRequest); + const p = firstValueFrom( + http.get('api/heroes').pipe( + tap((heroes) => { + gotResponse = true; + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }), + ), + ); expect(gotResponse).toBe(false, 'should delay before response'); - })); + await p; + }); - it('Should only initialize the db once', waitForAsync(() => { + it('Should only initialize the db once', async () => { const httpBackend = TestBed.inject(HttpBackend); const spy = spyOn(httpBackend, 'resetDb').and.callThrough(); @@ -93,127 +93,120 @@ describe('HttpClient Backend Service', () => { // Only the first should initialize by calling `resetDb` // All should wait until the db is "ready" // then they share the same db instance. - http.get('api/heroes').subscribe(); - http.get('api/heroes').subscribe(); - http.get('api/heroes').subscribe(); - http.get('api/heroes').subscribe(); + const p1 = firstValueFrom(http.get('api/heroes')); + const p2 = firstValueFrom(http.get('api/heroes')); + const p3 = firstValueFrom(http.get('api/heroes')); + const p4 = firstValueFrom(http.get('api/heroes')); expect(spy.calls.count()).toBe(1); - })); + await Promise.all([p1, p2, p3, p4]); + }); - it('can get heroes (w/ a different base path)', waitForAsync(() => { - http.get('some-base-path/heroes').subscribe((heroes) => { - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, failRequest); - })); + it('can get heroes (w/ a different base path)', async () => { + const heroes = await firstValueFrom(http.get('some-base-path/heroes')); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }); - it('should 404 when GET unknown collection (after delay)', waitForAsync(() => { + it('should 404 when GET unknown collection (after delay)', async () => { let gotError = false; const url = 'api/unknown-collection'; - http.get(url).subscribe( - () => fail(`should not have found data for '${url}'`), - (err) => { - gotError = true; - expect(err.status).toBe(404, 'should have 404 status'); - }, - ); + const p = new Promise((resolve) => { + http.get(url).subscribe( + () => { + fail(`should not have found data for '${url}'`); + resolve(); + }, + (err) => { + gotError = true; + expect(err.status).toBe(404, 'should have 404 status'); + resolve(); + }, + ); + }); expect(gotError).toBe(false, 'should not get error until after delay'); - })); + await p; + }); - it('should return the hero w/id=1 for GET app/heroes/1', waitForAsync(() => { - http - .get('api/heroes/1') - .subscribe((hero) => expect(hero).toBeDefined('should find hero with id=1'), failRequest); - })); + it('should return the hero w/id=1 for GET app/heroes/1', async () => { + const hero = await firstValueFrom(http.get('api/heroes/1')); + expect(hero).toBeDefined('should find hero with id=1'); + }); // test where id is string that looks like a number - it('should return the stringer w/id="10" for GET app/stringers/10', waitForAsync(() => { - http - .get('api/stringers/10') - .subscribe( - (hero) => expect(hero).toBeDefined('should find string with id="10"'), - failRequest, - ); - })); - - it('should return 1-item array for GET app/heroes/?id=1', waitForAsync(() => { - http - .get('api/heroes/?id=1') - .subscribe( - (heroes) => expect(heroes.length).toBe(1, 'should find one hero w/id=1'), - failRequest, - ); - })); - - it('should return 1-item array for GET app/heroes?id=1', waitForAsync(() => { - http - .get('api/heroes?id=1') - .subscribe( - (heroes) => expect(heroes.length).toBe(1, 'should find one hero w/id=1'), - failRequest, - ); - })); + it('should return the stringer w/id="10" for GET app/stringers/10', async () => { + const hero = await firstValueFrom(http.get('api/stringers/10')); + expect(hero).toBeDefined('should find string with id="10"'); + }); + + it('should return 1-item array for GET app/heroes/?id=1', async () => { + const heroes = await firstValueFrom(http.get('api/heroes/?id=1')); + expect(heroes.length).toBe(1, 'should find one hero w/id=1'); + }); + + it('should return 1-item array for GET app/heroes?id=1', async () => { + const heroes = await firstValueFrom(http.get('api/heroes?id=1')); + expect(heroes.length).toBe(1, 'should find one hero w/id=1'); + }); - it('should return undefined for GET app/heroes?id=not-found-id', waitForAsync(() => { - http - .get('api/heroes?id=123456') - .subscribe((heroes) => expect(heroes.length).toBe(0), failRequest); - })); + it('should return undefined for GET app/heroes?id=not-found-id', async () => { + const heroes = await firstValueFrom(http.get('api/heroes?id=123456')); + expect(heroes.length).toBe(0); + }); - it('should return 404 for GET app/heroes/not-found-id', waitForAsync(() => { + it('should return 404 for GET app/heroes/not-found-id', async () => { const url = 'api/heroes/123456'; - http.get(url).subscribe( - () => fail(`should not have found data for '${url}'`), - (err) => expect(err.status).toBe(404, 'should have 404 status'), - ); - })); + try { + await firstValueFrom(http.get(url)); + fail(`should not have found data for '${url}'`); + } catch (err: any) { + expect(err.status).toBe(404, 'should have 404 status'); + } + }); - it('can generate the id when add a hero with no id', waitForAsync(() => { + it('can generate the id when add a hero with no id', async () => { const hero = new Hero(undefined, 'SuperDooper'); - http.post('api/heroes', hero).subscribe((replyHero) => { - expect(replyHero.id).toBeDefined('added hero should have an id'); - expect(replyHero).not.toBe(hero, 'reply hero should not be the request hero'); - }, failRequest); - })); - - it('can get nobodies (empty collection)', waitForAsync(() => { - http.get('api/nobodies').subscribe((nobodies) => { - expect(nobodies.length).toBe(0, 'should have no nobodies'); - }, failRequest); - })); - - it('can add a nobody with an id to empty nobodies collection', waitForAsync(() => { + const replyHero = await firstValueFrom(http.post('api/heroes', hero)); + expect(replyHero.id).toBeDefined('added hero should have an id'); + expect(replyHero).not.toBe(hero, 'reply hero should not be the request hero'); + }); + + it('can get nobodies (empty collection)', async () => { + const nobodies = await firstValueFrom(http.get('api/nobodies')); + expect(nobodies.length).toBe(0, 'should have no nobodies'); + }); + + it('can add a nobody with an id to empty nobodies collection', async () => { const id = 'g-u-i-d'; - http - .post('api/nobodies', {id, name: 'Noman'}) - .pipe(concatMap(() => http.get<{id: string; name: string}[]>('api/nobodies'))) - .subscribe((nobodies) => { - expect(nobodies.length).toBe(1, 'should a nobody'); - expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); - expect(nobodies[0].id).toBe(id, 'should preserve the submitted, ' + id); - }, failRequest); - })); - - it('should fail when add a nobody without an id to empty nobodies collection', waitForAsync(() => { - http.post('api/nobodies', {name: 'Noman'}).subscribe( - () => fail(`should not have been able to add 'Norman' to 'nobodies'`), - (err) => { - expect(err.status).toBe(422, 'should have 422 status'); - expect(err.body.error).toContain('id type is non-numeric'); - }, + const nobodies = await firstValueFrom( + http + .post('api/nobodies', {id, name: 'Noman'}) + .pipe(concatMap(() => http.get<{id: string; name: string}[]>('api/nobodies'))), ); - })); + expect(nobodies.length).toBe(1, 'should a nobody'); + expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); + expect(nobodies[0].id).toBe(id, 'should preserve the submitted, ' + id); + }); + + it('should fail when add a nobody without an id to empty nobodies collection', async () => { + try { + await firstValueFrom(http.post('api/nobodies', {name: 'Noman'})); + fail(`should not have been able to add 'Norman' to 'nobodies'`); + } catch (err: any) { + expect(err.status).toBe(422, 'should have 422 status'); + expect(err.body.error).toContain('id type is non-numeric'); + } + }); describe('can reset the database', () => { - it('to empty (object db)', waitForAsync(() => resetDatabaseTest('object'))); + it('to empty (object db)', () => resetDatabaseTest('object')); - it('to empty (observable db)', waitForAsync(() => resetDatabaseTest('observable'))); + it('to empty (observable db)', () => resetDatabaseTest('observable')); - it('to empty (promise db)', waitForAsync(() => resetDatabaseTest('promise'))); + it('to empty (promise db)', () => resetDatabaseTest('promise')); - function resetDatabaseTest(returnType: string) { + async function resetDatabaseTest(returnType: string) { // Observable of the number of heroes and nobodies const sizes$ = zip( http.get('api/heroes'), @@ -222,19 +215,17 @@ describe('HttpClient Backend Service', () => { ).pipe(map(([h, n, s]) => ({heroes: h.length, nobodies: n.length, stringers: s.length}))); // Add a nobody so that we have one - http - .post('api/nobodies', {id: 42, name: 'Noman'}) - .pipe( + const sizes = await firstValueFrom( + http.post('api/nobodies', {id: 42, name: 'Noman'}).pipe( // Reset database with "clear" option concatMap(() => http.post('commands/resetDb', {clear: true, returnType})), // get the number of heroes and nobodies concatMap(() => sizes$), - ) - .subscribe((sizes) => { - expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); - expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); - expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); - }, failRequest); + ), + ); + expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); + expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); + expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); } }); }); @@ -253,79 +244,71 @@ describe('HttpClient Backend Service', () => { http = TestBed.inject(HttpClient); }); - it('can get heroes', waitForAsync(() => { - http - .get('api/heroes') - .subscribe( - (heroes) => expect(heroes.length).toBeGreaterThan(0, 'should have heroes'), - failRequest, - ); - })); - - it('can translate `foo/heroes` to `heroes` via `parsedRequestUrl` override', waitForAsync(() => { - http - .get('api/foo/heroes') - .subscribe( - (heroes) => expect(heroes.length).toBeGreaterThan(0, 'should have heroes'), - failRequest, - ); - })); - - it('can get villains', waitForAsync(() => { - http - .get('api/villains') - .subscribe( - (villains) => expect(villains.length).toBeGreaterThan(0, 'should have villains'), - failRequest, - ); - })); + it('can get heroes', async () => { + const heroes = await firstValueFrom(http.get('api/heroes')); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }); + + it('can translate `foo/heroes` to `heroes` via `parsedRequestUrl` override', async () => { + const heroes = await firstValueFrom(http.get('api/foo/heroes')); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }); - it('should 404 when POST to villains', waitForAsync(() => { + it('can get villains', async () => { + const villains = await firstValueFrom(http.get('api/villains')); + expect(villains.length).toBeGreaterThan(0, 'should have villains'); + }); + + it('should 404 when POST to villains', async () => { const url = 'api/villains'; - http.post(url, {id: 42, name: 'Dr. Evil'}).subscribe( - () => fail(`should not have POSTed data for '${url}'`), - (err) => expect(err.status).toBe(404, 'should have 404 status'), - ); - })); + try { + await firstValueFrom(http.post(url, {id: 42, name: 'Dr. Evil'})); + fail(`should not have POSTed data for '${url}'`); + } catch (err: any) { + expect(err.status).toBe(404, 'should have 404 status'); + } + }); - it('should 404 when GET unknown collection', waitForAsync(() => { + it('should 404 when GET unknown collection', async () => { const url = 'api/unknown-collection'; - http.get(url).subscribe( - () => fail(`should not have found data for '${url}'`), - (err) => expect(err.status).toBe(404, 'should have 404 status'), + try { + await firstValueFrom(http.get(url)); + fail(`should not have found data for '${url}'`); + } catch (err: any) { + expect(err.status).toBe(404, 'should have 404 status'); + } + }); + + it('should use genId override to add new hero, "Maxinius"', async () => { + const heroes = await firstValueFrom( + http + .post('api/heroes', {name: 'Maxinius'}) + .pipe(concatMap(() => http.get('api/heroes?name=Maxi'))), + ); + expect(heroes.length).toBe(1, 'should have found "Maxinius"'); + expect(heroes[0].name).toBe('Maxinius'); + expect(heroes[0].id).toBeGreaterThan(1000); + }); + + it('should use genId override guid generator for a new nobody without an id', async () => { + const nobodies = await firstValueFrom( + http + .post('api/nobodies', {name: 'Noman'}) + .pipe(concatMap(() => http.get<{id: string; name: string}[]>('api/nobodies'))), ); - })); - - it('should use genId override to add new hero, "Maxinius"', waitForAsync(() => { - http - .post('api/heroes', {name: 'Maxinius'}) - .pipe(concatMap(() => http.get('api/heroes?name=Maxi'))) - .subscribe((heroes) => { - expect(heroes.length).toBe(1, 'should have found "Maxinius"'); - expect(heroes[0].name).toBe('Maxinius'); - expect(heroes[0].id).toBeGreaterThan(1000); - }, failRequest); - })); - - it('should use genId override guid generator for a new nobody without an id', waitForAsync(() => { - http - .post('api/nobodies', {name: 'Noman'}) - .pipe(concatMap(() => http.get<{id: string; name: string}[]>('api/nobodies'))) - .subscribe((nobodies) => { - expect(nobodies.length).toBe(1, 'should a nobody'); - expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); - expect(typeof nobodies[0].id).toBe('string', 'should create a string (guid) id'); - }, failRequest); - })); + expect(nobodies.length).toBe(1, 'should a nobody'); + expect(nobodies[0].name).toBe('Noman', 'should be "Noman"'); + expect(typeof nobodies[0].id).toBe('string', 'should create a string (guid) id'); + }); describe('can reset the database', () => { - it('to empty (object db)', waitForAsync(() => resetDatabaseTest('object'))); + it('to empty (object db)', () => resetDatabaseTest('object')); - it('to empty (observable db)', waitForAsync(() => resetDatabaseTest('observable'))); + it('to empty (observable db)', () => resetDatabaseTest('observable')); - it('to empty (promise db)', waitForAsync(() => resetDatabaseTest('promise'))); + it('to empty (promise db)', () => resetDatabaseTest('promise')); - function resetDatabaseTest(returnType: string) { + async function resetDatabaseTest(returnType: string) { // Observable of the number of heroes, nobodies and villains const sizes$ = zip( http.get('api/heroes'), @@ -342,20 +325,18 @@ describe('HttpClient Backend Service', () => { ); // Add a nobody so that we have one - http - .post('api/nobodies', {id: 42, name: 'Noman'}) - .pipe( + const sizes = await firstValueFrom( + http.post('api/nobodies', {id: 42, name: 'Noman'}).pipe( // Reset database with "clear" option concatMap(() => http.post('commands/resetDb', {clear: true, returnType})), // count all the collections concatMap(() => sizes$), - ) - .subscribe((sizes) => { - expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); - expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); - expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); - expect(sizes.villains).toBeGreaterThan(0, 'reset should NOT clear villains'); - }, failRequest); + ), + ); + expect(sizes.heroes).toBe(0, 'reset should have cleared the heroes'); + expect(sizes.nobodies).toBe(0, 'reset should have cleared the nobodies'); + expect(sizes.stringers).toBe(0, 'reset should have cleared the stringers'); + expect(sizes.villains).toBeGreaterThan(0, 'reset should NOT clear villains'); } }); }); @@ -378,86 +359,73 @@ describe('HttpClient Backend Service', () => { heroService = TestBed.inject(HeroService); }); - it('can get heroes', waitForAsync(() => { - heroService.getHeroes().subscribe((heroes) => { - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, failRequest); - })); + it('can get heroes', async () => { + const heroes = await firstValueFrom(heroService.getHeroes()); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }); - it('can get hero w/ id=1', waitForAsync(() => { - heroService.getHero(1).subscribe( - (hero) => { - expect(hero.name).toBe('Windstorm'); - }, - () => fail('getHero failed'), - ); - })); + it('can get hero w/ id=1', async () => { + const hero = await firstValueFrom(heroService.getHero(1)); + expect(hero.name).toBe('Windstorm'); + }); - it('should 404 when hero id not found', waitForAsync(() => { + it('should 404 when hero id not found', async () => { const id = 123456; - heroService.getHero(id).subscribe( - () => fail(`should not have found hero for id='${id}'`), - (err) => { - expect(err.status).toBe(404, 'should have 404 status'); - }, - ); - })); + try { + await firstValueFrom(heroService.getHero(id)); + fail(`should not have found hero for id='${id}'`); + } catch (err: any) { + expect(err.status).toBe(404, 'should have 404 status'); + } + }); - it('can add a hero', waitForAsync(() => { - heroService - .addHero('FunkyBob') - .pipe( + it('can add a hero', async () => { + const hero = await firstValueFrom( + heroService.addHero('FunkyBob').pipe( tap((hero) => expect(hero.name).toBe('FunkyBob')), // Get the new hero by its generated id concatMap((hero) => heroService.getHero(hero.id)), - ) - .subscribe( - (hero) => { - expect(hero.name).toBe('FunkyBob'); - }, - () => failRequest('re-fetch of new hero failed'), - ); - }), 10000); - - it('can delete a hero', waitForAsync(() => { + ), + ); + expect(hero.name).toBe('FunkyBob'); + }, 10000); + + it('can delete a hero', async () => { const id = 1; - heroService.deleteHero(id).subscribe((_: {}) => expect(_).toBeDefined(), failRequest); - })); + const res = await firstValueFrom(heroService.deleteHero(id)); + expect(res).toBeDefined(); + }); - it('should allow delete of non-existent hero', waitForAsync(() => { + it('should allow delete of non-existent hero', async () => { const id = 123456; - heroService.deleteHero(id).subscribe((_: {}) => expect(_).toBeDefined(), failRequest); - })); + const res = await firstValueFrom(heroService.deleteHero(id)); + expect(res).toBeDefined(); + }); - it('can search for heroes by name containing "a"', waitForAsync(() => { - heroService.searchHeroes('a').subscribe((heroes: Hero[]) => { - expect(heroes.length).toBe(3, 'should find 3 heroes with letter "a"'); - }, failRequest); - })); + it('can search for heroes by name containing "a"', async () => { + const heroes = await firstValueFrom(heroService.searchHeroes('a')); + expect(heroes.length).toBe(3, 'should find 3 heroes with letter "a"'); + }); - it('can update existing hero', waitForAsync(() => { + it('can update existing hero', async () => { const id = 1; - heroService - .getHero(id) - .pipe( + const hero = await firstValueFrom( + heroService.getHero(id).pipe( concatMap((hero) => { hero.name = 'Thunderstorm'; return heroService.updateHero(hero); }), concatMap(() => heroService.getHero(id)), - ) - .subscribe( - (hero) => expect(hero.name).toBe('Thunderstorm'), - () => fail('re-fetch of updated hero failed'), - ); - }), 10000); - - it('should create new hero when try to update non-existent hero', waitForAsync(() => { + ), + ); + expect(hero.name).toBe('Thunderstorm'); + }, 10000); + + it('should create new hero when try to update non-existent hero', async () => { const falseHero = new Hero(12321, 'DryMan'); - heroService - .updateHero(falseHero) - .subscribe((hero) => expect(hero.name).toBe(falseHero.name), failRequest); - })); + const hero = await firstValueFrom(heroService.updateHero(falseHero)); + expect(hero.name).toBe(falseHero.name); + }); }); }); @@ -508,38 +476,45 @@ describe('HttpClient Backend Service', () => { expect(ti).toBeDefined(); }); - it('should have GET request header from test interceptor', waitForAsync(() => { + it('should have GET request header from test interceptor', async () => { const handle = spyOn(httpBackend, 'handle').and.callThrough(); - http.get('api/heroes').subscribe((heroes) => { - // HttpRequest is first arg of the first call to in-mem backend `handle` - const req: HttpRequest = handle.calls.argsFor(0)[0]; - const reqHeader = req.headers.get('x-test-req'); - expect(reqHeader).toBe('req-test-header'); + const heroes = await firstValueFrom(http.get('api/heroes')); + // HttpRequest is first arg of the first call to in-mem backend `handle` + const req: HttpRequest = handle.calls.argsFor(0)[0]; + const reqHeader = req.headers.get('x-test-req'); + expect(reqHeader).toBe('req-test-header'); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, failRequest); - })); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }); - it('should have GET response header from test interceptor', waitForAsync(() => { + it('should have GET response header from test interceptor', async () => { let gotResponse = false; const req = new HttpRequest('GET', 'api/heroes'); - http.request(req).subscribe( - (event) => { - if (event.type === HttpEventType.Response) { - gotResponse = true; + await new Promise((resolve, reject) => { + http.request(req).subscribe( + (event) => { + if (event.type === HttpEventType.Response) { + gotResponse = true; - const resHeader = event.headers.get('x-test-res'); - expect(resHeader).toBe('res-test-header'); + const resHeader = event.headers.get('x-test-res'); + expect(resHeader).toBe('res-test-header'); - const heroes = event.body as Hero[]; - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - } - }, - failRequest, - () => expect(gotResponse).toBe(true, 'should have seen Response event'), - ); - })); + const heroes = event.body as Hero[]; + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + } + }, + (err) => { + failRequest(err); + reject(err); + }, + () => { + expect(gotResponse).toBe(true, 'should have seen Response event'); + resolve(); + }, + ); + }); + }); }); describe('HttpClient passThru', () => { @@ -568,28 +543,46 @@ describe('HttpClient Backend Service', () => { spyOn(httpBackend, 'handle').and.returnValue(mockPassThroughResponse); }); - it('can get heroes (no passthru)', waitForAsync(() => { - http.get('api/heroes').subscribe((heroes) => { - expect(createPassThruBackend).not.toHaveBeenCalled(); - expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); - }, failRequest); - })); + it('can get heroes (no passthru)', async () => { + await new Promise((resolve) => { + http.get('api/heroes').subscribe({ + next: (heroes) => { + expect(createPassThruBackend).not.toHaveBeenCalled(); + expect(heroes.length).toBeGreaterThan(0, 'should have heroes'); + }, + error: failRequest, + complete: resolve, + }); + }); + }); // `passthru` is NOT a collection in the data store // so requests for it should pass thru to the "real" server - it('can GET passthru', waitForAsync(() => { - http.get('api/passthru').subscribe((passthru) => { - expect(passthru.length).toBeGreaterThan(0, 'should have passthru data'); - }, failRequest); - })); - - it('can ADD to passthru', waitForAsync(() => { - http.post('api/passthru', {name: 'Dude'}).subscribe((passthru) => { - expect(passthru).toBeDefined('should have passthru data'); - expect(passthru.id).toBe(42, 'passthru object should have id 42'); - }, failRequest); - })); + it('can GET passthru', async () => { + await new Promise((resolve) => { + http.get('api/passthru').subscribe({ + next: (passthru) => { + expect(passthru.length).toBeGreaterThan(0, 'should have passthru data'); + }, + error: failRequest, + complete: resolve, + }); + }); + }); + + it('can ADD to passthru', async () => { + await new Promise((resolve) => { + http.post('api/passthru', {name: 'Dude'}).subscribe({ + next: (passthru) => { + expect(passthru).toBeDefined('should have passthru data'); + expect(passthru.id).toBe(42, 'passthru object should have id 42'); + }, + error: failRequest, + complete: resolve, + }); + }); + }); }); describe('HttpClient passThru creation', () => { @@ -624,15 +617,12 @@ describe('HttpClient Backend Service', () => { http = TestBed.inject(HttpClient); }); - it('can get heroes (encapsulated)', waitForAsync(() => { - http - .get<{data: any}>('api/heroes') - .pipe(map((data) => data.data as Hero[])) - .subscribe( - (heroes) => expect(heroes.length).toBeGreaterThan(0, 'should have data.heroes'), - failRequest, - ); - })); + it('can get heroes (encapsulated)', async () => { + const heroes = await firstValueFrom( + http.get<{data: any}>('api/heroes').pipe(map((data) => data.data as Hero[])), + ); + expect(heroes.length).toBeGreaterThan(0, 'should have data.heroes'); + }); }); describe('when using the FetchBackend', () => { diff --git a/packages/platform-browser-dynamic/BUILD.bazel b/packages/platform-browser-dynamic/BUILD.bazel index 2c66e647da85..6ddf9318898b 100644 --- a/packages/platform-browser-dynamic/BUILD.bazel +++ b/packages/platform-browser-dynamic/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "api_golden_test_npm_package", "generate_api_docs", "ng_package", "ng_project") +load("//tools:defaults.bzl", "api_golden_test_npm_package", "ng_package", "ng_project") package(default_visibility = ["//visibility:public"]) @@ -62,13 +62,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "platform-browser_dynamic_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_name = "@angular/platform-browser-dynamic", -) diff --git a/packages/platform-browser-dynamic/test/testing_public_browser_spec.ts b/packages/platform-browser-dynamic/test/testing_public_browser_spec.ts index ba4880364137..ea06258f4863 100644 --- a/packages/platform-browser-dynamic/test/testing_public_browser_spec.ts +++ b/packages/platform-browser-dynamic/test/testing_public_browser_spec.ts @@ -14,7 +14,7 @@ import { NgModule, provideZonelessChangeDetection, } from '@angular/core'; -import {fakeAsync, inject, TestBed, tick, waitForAsync} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {BrowserTestingModule, platformBrowserTesting} from '@angular/platform-browser/testing'; import {isBrowser} from '@angular/private/testing'; @@ -45,22 +45,16 @@ class FancyService { if (isBrowser) { describe('test APIs for the browser', () => { describe('using the async helper', () => { - let actuallyDone: boolean; - - beforeEach(() => { - actuallyDone = false; - }); - - afterEach(() => { + it('should run async tests with ResourceLoaders', async () => { + let actuallyDone = false; + const resourceLoader = new ResourceLoaderImpl(); + await resourceLoader + .get('/packages/platform-browser/test/static_assets/test.html') + .then(() => { + actuallyDone = true; + }); expect(actuallyDone).toEqual(true); }); - - it('should run async tests with ResourceLoaders', waitForAsync(() => { - const resourceLoader = new ResourceLoaderImpl(); - resourceLoader.get('/packages/platform-browser/test/static_assets/test.html').then(() => { - actuallyDone = true; - }); - }), 10000); // Long timeout here because this test makes an actual ResourceLoader. }); describe('using the test injector with the inject helper', () => { @@ -80,23 +74,19 @@ if (isBrowser) { }); }); - it('provides a real ResourceLoader instance', inject( - [ResourceLoader], - (resourceLoader: ResourceLoader) => { - expect(resourceLoader instanceof ResourceLoaderImpl).toBeTruthy(); - }, - )); - - it('should allow the use of fakeAsync', fakeAsync( - inject([FancyService], (service: FancyService) => { - let value: string | undefined; - service.getAsyncValue().then(function (val: string) { - value = val; - }); - tick(); - expect(value).toEqual('async value'); - }), - )); + it('provides a real ResourceLoader instance', () => { + const resourceLoader = TestBed.inject(ResourceLoader); + expect(resourceLoader instanceof ResourceLoaderImpl).toBeTruthy(); + }); + + it('should allow the use of async/await', async () => { + const service = TestBed.inject(FancyService); + let value: string | undefined; + await service.getAsyncValue().then(function (val: string) { + value = val; + }); + expect(value).toEqual('async value'); + }); afterEach(() => { getPlatform()?.destroy(); @@ -145,13 +135,15 @@ if (isBrowser) { it('should fail with an error from a promise', async () => { @Component({ - selector: 'bad-template-comp', templateUrl: 'non-existent.html', standalone: false, }) class BadTemplateUrl {} - TestBed.configureTestingModule({declarations: [BadTemplateUrl]}); + TestBed.configureTestingModule({ + declarations: [BadTemplateUrl], + }); + await expectAsync(TestBed.compileComponents()).toBeRejectedWith( 'Failed to load non-existent.html', ); @@ -180,16 +172,17 @@ if (isBrowser) { } @Component({ - selector: 'external-template-comp', templateUrl: '/base/angular/packages/platform-browser/test/static_assets/test.html', standalone: false, }) class ExternalTemplateComp {} - TestBed.configureTestingModule({declarations: [ExternalTemplateComp]}); TestBed.configureCompiler({ providers: [{provide: ResourceLoader, useClass: MockResourceLoader}], }); + TestBed.configureTestingModule({ + declarations: [ExternalTemplateComp], + }); await TestBed.compileComponents(); const componentFixture = TestBed.createComponent(ExternalTemplateComp); diff --git a/packages/platform-browser-dynamic/testing/BUILD.bazel b/packages/platform-browser-dynamic/testing/BUILD.bazel index 5ca06de37184..f4bffe898532 100644 --- a/packages/platform-browser-dynamic/testing/BUILD.bazel +++ b/packages/platform-browser-dynamic/testing/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "generate_api_docs", "ng_project") +load("//tools:defaults.bzl", "ng_project") package(default_visibility = ["//visibility:public"]) @@ -25,13 +25,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "platform-browser_dynamic_testing_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_name = "@angular/platform-browser-dynamic/testing", -) diff --git a/packages/platform-browser/BUILD.bazel b/packages/platform-browser/BUILD.bazel index a76458acb655..ecb7cc1f2bce 100644 --- a/packages/platform-browser/BUILD.bazel +++ b/packages/platform-browser/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "api_golden_test", "api_golden_test_npm_package", "generate_api_docs", "ng_package", "ng_project", "tsec_test") +load("//tools:defaults.bzl", "api_golden_test", "api_golden_test_npm_package", "ng_package", "ng_project", "tsec_test") package(default_visibility = ["//visibility:public"]) @@ -77,13 +77,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "platform-browser_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_name = "@angular/platform-browser", -) diff --git a/packages/platform-browser/animations/BUILD.bazel b/packages/platform-browser/animations/BUILD.bazel index aa7b4c72e1c5..acb7b3d90af2 100644 --- a/packages/platform-browser/animations/BUILD.bazel +++ b/packages/platform-browser/animations/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "generate_api_docs", "ng_project", "tsec_test") +load("//tools:defaults.bzl", "ng_project", "tsec_test") package(default_visibility = ["//visibility:public"]) @@ -34,13 +34,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "platform-browser_animations_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_name = "@angular/platform-browser/animations", -) diff --git a/packages/platform-browser/animations/async/BUILD.bazel b/packages/platform-browser/animations/async/BUILD.bazel index ec5145566856..6a22695b4469 100644 --- a/packages/platform-browser/animations/async/BUILD.bazel +++ b/packages/platform-browser/animations/async/BUILD.bazel @@ -1,4 +1,3 @@ -load("//adev/shared-docs/pipeline/api-gen:generate_api_docs.bzl", "generate_api_docs") load("//tools:defaults.bzl", "ng_project", "tsec_test") package(default_visibility = ["//visibility:public"]) @@ -35,13 +34,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "platform-browser_animations_async_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_name = "@angular/platform-browser/animations/async", -) diff --git a/packages/platform-browser/animations/async/src/async_animation_renderer.ts b/packages/platform-browser/animations/async/src/async_animation_renderer.ts index 5d39f30fe992..348a772b1b46 100644 --- a/packages/platform-browser/animations/async/src/async_animation_renderer.ts +++ b/packages/platform-browser/animations/async/src/async_animation_renderer.ts @@ -28,7 +28,10 @@ import { ɵRuntimeError as RuntimeError, type ListenerOptions, } from '@angular/core'; -import {ɵRuntimeErrorCode as RuntimeErrorCode} from '../../../index'; +import { + ɵdisableThrowOnSyntheticProps as disableThrowOnSyntheticProps, + ɵRuntimeErrorCode as RuntimeErrorCode, +} from '../../../index'; const ANIMATION_PREFIX = '@'; @@ -125,9 +128,7 @@ export class AsyncAnimationRendererFactory implements OnDestroy, RendererFactory } // We need to prevent the DomRenderer to throw an error because of synthetic properties - if (typeof (renderer as any).throwOnSyntheticProps === 'boolean') { - (renderer as any).throwOnSyntheticProps = false; - } + disableThrowOnSyntheticProps(renderer); // Using a dynamic renderer to switch the renderer implementation once the module is loaded. const dynamicRenderer = new DynamicDelegationRenderer(renderer); diff --git a/packages/platform-browser/animations/async/test/animation_renderer_spec.ts b/packages/platform-browser/animations/async/test/animation_renderer_spec.ts index d4c90874e7c3..0980f1e288d2 100644 --- a/packages/platform-browser/animations/async/test/animation_renderer_spec.ts +++ b/packages/platform-browser/animations/async/test/animation_renderer_spec.ts @@ -19,7 +19,7 @@ import { ɵAnimationRendererFactory as AnimationRendererFactory, ɵBaseAnimationRenderer as BaseAnimationRenderer, } from '@angular/animations/browser'; -import {DOCUMENT} from '@angular/common'; +import {CommonModule, DOCUMENT} from '@angular/common'; import { afterNextRender, ANIMATION_MODULE_TYPE, @@ -33,6 +33,7 @@ import { RendererFactory2, RendererType2, runInInjectionContext, + signal, ViewChild, } from '@angular/core'; import {TestBed} from '@angular/core/testing'; @@ -40,7 +41,6 @@ import {el, isNode} from '@angular/private/testing'; import {InjectableAnimationEngine} from '../../../animations/src/providers'; import {ɵDomRendererFactory2 as DomRendererFactory2} from '../../../index'; -import {ChangeDetectionStrategy} from '@angular/compiler'; import {provideAnimationsAsync} from '../public_api'; import { AsyncAnimationRendererFactory, @@ -50,7 +50,7 @@ import { type AnimationBrowserModule = typeof import('@angular/animations/browser'); -(function () { +(async function () { if (isNode) { it('empty test so jasmine doesnt complain', () => {}); return; @@ -258,9 +258,8 @@ type AnimationBrowserModule = typeof import('@angular/animations/browser'); // these tests are only meant to be run within the DOM if (isNode) return; - it('should flush and fire callbacks when the zone becomes stable', (async) => { + it('should flush and fire callbacks when the zone becomes stable', async () => { @Component({ - selector: 'my-cmp', template: '
    ', animations: [ trigger('myAnimation', [ @@ -270,7 +269,6 @@ type AnimationBrowserModule = typeof import('@angular/animations/browser'); ]), ]), ], - standalone: false, }) class Cmp { exp: any; @@ -280,28 +278,22 @@ type AnimationBrowserModule = typeof import('@angular/animations/browser'); } } - TestBed.configureTestingModule({declarations: [Cmp]}); - const engine = TestBed.inject(AnimationEngine); const fixture = TestBed.createComponent(Cmp); const cmp = fixture.componentInstance; cmp.exp = 'state'; - fixture.detectChanges(); - fixture.whenStable().then(() => { - expect(cmp.event.triggerName).toEqual('myAnimation'); - expect(cmp.event.phaseName).toEqual('start'); - cmp.event = null; - - engine.flush(); - expect(cmp.event).toBeFalsy(); - async(); - }); + await fixture.whenStable(); + expect(cmp.event.triggerName).toEqual('myAnimation'); + expect(cmp.event.phaseName).toEqual('start'); + cmp.event = null; + + engine.flush(); + expect(cmp.event).toBeFalsy(); }); - it('should properly insert/remove nodes through the animation renderer that do not contain animations', (async) => { + it('should properly insert/remove nodes through the animation renderer that do not contain animations', async () => { @Component({ - selector: 'my-cmp', - template: '
    ', + template: '
    ', animations: [ trigger('someAnimation', [ transition('* => *', [ @@ -310,56 +302,45 @@ type AnimationBrowserModule = typeof import('@angular/animations/browser'); ]), ]), ], - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [CommonModule], }) class Cmp { - exp: any; + exp = signal(false); @ViewChild('elm') public element: any; } - TestBed.configureTestingModule({ - declarations: [Cmp], - providers: [provideZoneChangeDetection()], - }); - const fixture = TestBed.createComponent(Cmp); const cmp = fixture.componentInstance; - cmp.exp = true; + cmp.exp.set(true); fixture.detectChanges(); + await fixture.whenStable(); - fixture.whenStable().then(() => { - cmp.exp = false; - const element = cmp.element; - expect(element.nativeElement.parentNode).toBeTruthy(); + cmp.exp.set(false); + const element = cmp.element; + expect(element.nativeElement.parentNode).toBeTruthy(); - fixture.detectChanges(); - fixture.whenStable().then(() => { - expect(element.nativeElement.parentNode).toBeFalsy(); - async(); - }); - }); + fixture.detectChanges(); + await fixture.whenStable(); + expect(element.nativeElement.parentNode).toBeFalsy(); }); - it('should only queue up dom removals if the element itself contains a valid leave animation', () => { + it('should only queue up dom removals if the element itself contains a valid leave animation', async () => { @Component({ - selector: 'my-cmp', template: ` -
    -
    -
    +
    +
    +
    `, animations: [ trigger('animation1', [transition('a => b', [])]), trigger('animation2', [transition(':leave', [])]), ], - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [CommonModule], }) class Cmp { - exp1: any = true; - exp2: any = true; - exp3: any = true; + exp1 = signal(true); + exp2 = signal(true); + exp3 = signal(true); @ViewChild('elm1') public elm1: any; @@ -368,11 +349,6 @@ type AnimationBrowserModule = typeof import('@angular/animations/browser'); @ViewChild('elm3') public elm3: any; } - TestBed.configureTestingModule({ - declarations: [Cmp], - providers: [provideZoneChangeDetection()], - }); - const engine = TestBed.inject(AnimationEngine); const fixture = TestBed.createComponent(Cmp); const cmp = fixture.componentInstance; @@ -387,7 +363,7 @@ type AnimationBrowserModule = typeof import('@angular/animations/browser'); engine.flush(); finishPlayers(engine.players); - cmp.exp1 = false; + cmp.exp1.set(false); fixture.detectChanges(); assertHasParent(elm1, false); assertHasParent(elm2); @@ -395,7 +371,7 @@ type AnimationBrowserModule = typeof import('@angular/animations/browser'); engine.flush(); expect(engine.players.length).toEqual(0); - cmp.exp2 = false; + cmp.exp2.set(false); fixture.detectChanges(); assertHasParent(elm1, false); assertHasParent(elm2, false); @@ -403,7 +379,7 @@ type AnimationBrowserModule = typeof import('@angular/animations/browser'); engine.flush(); expect(engine.players.length).toEqual(0); - cmp.exp3 = false; + cmp.exp3.set(false); fixture.detectChanges(); assertHasParent(elm1, false); assertHasParent(elm2, false); diff --git a/packages/platform-browser/animations/test/animation_renderer_spec.ts b/packages/platform-browser/animations/test/animation_renderer_spec.ts index 8ef5dcc4a72c..335ae6274a9a 100644 --- a/packages/platform-browser/animations/test/animation_renderer_spec.ts +++ b/packages/platform-browser/animations/test/animation_renderer_spec.ts @@ -17,7 +17,7 @@ import { ɵAnimationEngine as AnimationEngine, ɵAnimationRendererFactory as AnimationRendererFactory, } from '@angular/animations/browser'; -import {ChangeDetectionStrategy} from '@angular/compiler'; +import {CommonModule} from '@angular/common'; import { APP_INITIALIZER, Component, @@ -29,6 +29,7 @@ import { provideZoneChangeDetection, RendererFactory2, RendererType2, + signal, ViewChild, } from '@angular/core'; import {TestBed} from '@angular/core/testing'; @@ -41,7 +42,7 @@ import { ɵInjectableAnimationEngine as InjectableAnimationEngine, } from '../index'; -(function () { +(async function () { if (isNode) return; describe('AnimationRenderer', () => { let element: any; @@ -159,9 +160,8 @@ import { // these tests are only meant to be run within the DOM if (isNode) return; - it('should flush and fire callbacks when the zone becomes stable', (async) => { + it('should flush and fire callbacks when the zone becomes stable', async () => { @Component({ - selector: 'my-cmp', template: '
    ', animations: [ trigger('myAnimation', [ @@ -171,7 +171,6 @@ import { ]), ]), ], - standalone: false, }) class Cmp { exp: any; @@ -183,29 +182,24 @@ import { TestBed.configureTestingModule({ providers: [{provide: AnimationEngine, useClass: InjectableAnimationEngine}], - declarations: [Cmp], }); const engine = TestBed.inject(AnimationEngine); const fixture = TestBed.createComponent(Cmp); const cmp = fixture.componentInstance; cmp.exp = 'state'; - fixture.detectChanges(); - fixture.whenStable().then(() => { - expect(cmp.event.triggerName).toEqual('myAnimation'); - expect(cmp.event.phaseName).toEqual('start'); - cmp.event = null; - - engine.flush(); - expect(cmp.event).toBeFalsy(); - async(); - }); + await fixture.whenStable(); + expect(cmp.event.triggerName).toEqual('myAnimation'); + expect(cmp.event.phaseName).toEqual('start'); + cmp.event = null; + + engine.flush(); + expect(cmp.event).toBeFalsy(); }); - it('should properly insert/remove nodes through the animation renderer that do not contain animations', (async) => { + it('should properly insert/remove nodes through the animation renderer that do not contain animations', async () => { @Component({ - selector: 'my-cmp', - template: '
    ', + template: '
    ', animations: [ trigger('someAnimation', [ transition('* => *', [ @@ -214,59 +208,49 @@ import { ]), ]), ], - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [CommonModule], }) class Cmp { - exp: any; + exp = signal(false); @ViewChild('elm') public element: any; } TestBed.configureTestingModule({ - providers: [ - {provide: AnimationEngine, useClass: InjectableAnimationEngine}, - provideZoneChangeDetection(), - ], - declarations: [Cmp], + providers: [{provide: AnimationEngine, useClass: InjectableAnimationEngine}], }); const fixture = TestBed.createComponent(Cmp); const cmp = fixture.componentInstance; - cmp.exp = true; + cmp.exp.set(true); fixture.detectChanges(); + await fixture.whenStable(); - fixture.whenStable().then(() => { - cmp.exp = false; - const element = cmp.element; - expect(element.nativeElement.parentNode).toBeTruthy(); + cmp.exp.set(false); + const element = cmp.element; + expect(element.nativeElement.parentNode).toBeTruthy(); - fixture.detectChanges(); - fixture.whenStable().then(() => { - expect(element.nativeElement.parentNode).toBeFalsy(); - async(); - }); - }); + fixture.detectChanges(); + await fixture.whenStable(); + expect(element.nativeElement.parentNode).toBeFalsy(); }); - it('should only queue up dom removals if the element itself contains a valid leave animation', () => { + it('should only queue up dom removals if the element itself contains a valid leave animation', async () => { @Component({ - selector: 'my-cmp', template: ` -
    -
    -
    +
    +
    +
    `, animations: [ trigger('animation1', [transition('a => b', [])]), trigger('animation2', [transition(':leave', [])]), ], - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + imports: [CommonModule], }) class Cmp { - exp1: any = true; - exp2: any = true; - exp3: any = true; + exp1 = signal(true); + exp2 = signal(true); + exp3 = signal(true); @ViewChild('elm1') public elm1: any; @@ -276,11 +260,7 @@ import { } TestBed.configureTestingModule({ - providers: [ - {provide: AnimationEngine, useClass: InjectableAnimationEngine}, - provideZoneChangeDetection(), - ], - declarations: [Cmp], + providers: [{provide: AnimationEngine, useClass: InjectableAnimationEngine}], }); const engine = TestBed.inject(AnimationEngine); @@ -297,7 +277,7 @@ import { engine.flush(); finishPlayers(engine.players); - cmp.exp1 = false; + cmp.exp1.set(false); fixture.detectChanges(); assertHasParent(elm1, false); assertHasParent(elm2); @@ -305,7 +285,7 @@ import { engine.flush(); expect(engine.players.length).toEqual(0); - cmp.exp2 = false; + cmp.exp2.set(false); fixture.detectChanges(); assertHasParent(elm1, false); assertHasParent(elm2, false); @@ -313,7 +293,7 @@ import { engine.flush(); expect(engine.players.length).toEqual(0); - cmp.exp3 = false; + cmp.exp3.set(false); fixture.detectChanges(); assertHasParent(elm1, false); assertHasParent(elm2, false); @@ -340,10 +320,8 @@ import { it('should provide hooks at the start and end of change detection', () => { @Component({ - selector: 'my-cmp', template: `
    `, animations: [trigger('myAnimation', [])], - standalone: false, }) class Cmp { public exp: any; @@ -351,7 +329,6 @@ import { TestBed.configureTestingModule({ providers: [{provide: AnimationEngine, useClass: InjectableAnimationEngine}], - declarations: [Cmp], }); const renderer = TestBed.inject(RendererFactory2) as ExtendedAnimationRendererFactory; diff --git a/packages/platform-browser/animations/test/noop_animations_module_spec.ts b/packages/platform-browser/animations/test/noop_animations_module_spec.ts index 590aab279fa5..f4ba677da116 100644 --- a/packages/platform-browser/animations/test/noop_animations_module_spec.ts +++ b/packages/platform-browser/animations/test/noop_animations_module_spec.ts @@ -7,10 +7,11 @@ */ import {animate, style, transition, trigger} from '@angular/animations'; import {ɵAnimationEngine} from '@angular/animations/browser'; +import {CommonModule} from '@angular/common'; import {Component} from '@angular/core'; import {TestBed} from '@angular/core/testing'; -import {BrowserAnimationsModule, NoopAnimationsModule, provideNoopAnimations} from '../index'; import {isNode} from '@angular/private/testing'; +import {BrowserAnimationsModule, NoopAnimationsModule, provideNoopAnimations} from '../index'; describe('NoopAnimationsModule', () => { beforeEach(() => { @@ -47,7 +48,6 @@ function noopAnimationTests() { } @Component({ - selector: 'my-cmp', template: '
    ', animations: [ @@ -58,7 +58,6 @@ function noopAnimationTests() { ]), ]), ], - standalone: false, }) class Cmp { exp: any; @@ -72,8 +71,6 @@ function noopAnimationTests() { } } - TestBed.configureTestingModule({declarations: [Cmp]}); - const fixture = TestBed.createComponent(Cmp); const cmp = fixture.componentInstance; cmp.exp = 'state'; @@ -95,7 +92,6 @@ function noopAnimationTests() { } @Component({ - selector: 'my-cmp', template: '
    ', animations: [ @@ -103,7 +99,8 @@ function noopAnimationTests() { transition(':leave', [style({'opacity': '0'}), animate(500, style({'opacity': '1'}))]), ]), ], - standalone: false, + + imports: [CommonModule], }) class Cmp { exp: any; @@ -117,7 +114,6 @@ function noopAnimationTests() { } } - TestBed.configureTestingModule({declarations: [Cmp]}); const engine = TestBed.inject(ɵAnimationEngine); const fixture = TestBed.createComponent(Cmp); const cmp = fixture.componentInstance; diff --git a/packages/platform-browser/src/browser/meta.ts b/packages/platform-browser/src/browser/meta.ts index 00491db411fd..212154f4180b 100644 --- a/packages/platform-browser/src/browser/meta.ts +++ b/packages/platform-browser/src/browser/meta.ts @@ -62,7 +62,6 @@ export type MetaDefinition = { export class Meta { private readonly _doc = inject(DOCUMENT); private readonly _dom = getDOM(); - private _cachedHead: HTMLHeadElement | undefined; /** * Retrieves or creates a specific `` tag element in the current HTML document. diff --git a/packages/platform-browser/src/dom/css_var_namespacer.ts b/packages/platform-browser/src/dom/css_var_namespacer.ts index f6036bc18bde..175e7b4a6288 100644 --- a/packages/platform-browser/src/dom/css_var_namespacer.ts +++ b/packages/platform-browser/src/dom/css_var_namespacer.ts @@ -14,6 +14,7 @@ import {CSS_VAR_NAMESPACE} from './dom_renderer'; * This is useful when reading or setting CSS variables dynamically in JavaScript that * were transformed by the compiler during the build. * + * @see [Using namespaced properties in TypeScript](guide/components/styling#using-namespaced-properties-in-typescript) * @publicApi 22.1 */ @Service() diff --git a/packages/platform-browser/src/dom/dom_renderer.ts b/packages/platform-browser/src/dom/dom_renderer.ts index ac329f8eae0f..df4367f6e26f 100644 --- a/packages/platform-browser/src/dom/dom_renderer.ts +++ b/packages/platform-browser/src/dom/dom_renderer.ts @@ -88,6 +88,7 @@ export const CSS_VAR_NAMESPACE = new InjectionToken( * * @param namespace The prefix string to use as a namespace. If not provided, it defaults * to the `APP_ID`. An underscore is appended unconditionally. + * @see [Namespacing CSS custom properties](guide/components/styling#namespacing-css-custom-properties) * @publicApi */ export function provideCssVarNamespacing(namespace?: string): EnvironmentProviders { @@ -538,7 +539,13 @@ class DefaultDomRenderer2 implements Renderer2 { } } -const AT_CHARCODE = (() => '@'.charCodeAt(0))(); +export function disableThrowOnSyntheticProps(renderer: Renderer2): void { + if (renderer instanceof DefaultDomRenderer2) { + renderer.throwOnSyntheticProps = false; + } +} + +const AT_CHARCODE = /* @__PURE__ */ (() => '@'.charCodeAt(0))(); function checkNoSyntheticProp(name: string, nameKind: string) { if (name.charCodeAt(0) === AT_CHARCODE) { @@ -556,11 +563,11 @@ function isTemplateNode(node: any): node is HTMLTemplateElement { } class ShadowDomRenderer extends DefaultDomRenderer2 { - private shadowRoot: any; + private readonly shadowRoot: ShadowRoot; constructor( eventManager: EventManager, - private hostEl: any, + private readonly hostEl: Element, component: RendererType2, doc: Document, ngZone: NgZone, @@ -570,7 +577,7 @@ class ShadowDomRenderer extends DefaultDomRenderer2 { private sharedStylesHost?: SharedStylesHost, ) { super(eventManager, doc, ngZone, tracingService, cssVarNamespace); - this.shadowRoot = (hostEl as any).attachShadow({mode: 'open'}); + this.shadowRoot = hostEl.attachShadow({mode: 'open'}); // SharedStylesHost is used to add styles to the shadow root by ShadowDom. // This is optional as it is not used by ExperimentalIsolatedShadowDom. diff --git a/packages/platform-browser/src/private_export.ts b/packages/platform-browser/src/private_export.ts index e1b2b58d01d3..d181281d2a82 100644 --- a/packages/platform-browser/src/private_export.ts +++ b/packages/platform-browser/src/private_export.ts @@ -9,7 +9,10 @@ export {ɵgetDOM} from '@angular/common'; export {BrowserDomAdapter as ɵBrowserDomAdapter} from './browser/browser_adapter'; export {BrowserGetTestability as ɵBrowserGetTestability} from './browser/testability'; -export {DomRendererFactory2 as ɵDomRendererFactory2} from './dom/dom_renderer'; +export { + disableThrowOnSyntheticProps as ɵdisableThrowOnSyntheticProps, + DomRendererFactory2 as ɵDomRendererFactory2, +} from './dom/dom_renderer'; export {DomEventsPlugin as ɵDomEventsPlugin} from './dom/events/dom_events'; export {KeyEventsPlugin as ɵKeyEventsPlugin} from './dom/events/key_events'; export {SharedStylesHost as ɵSharedStylesHost} from './dom/shared_styles_host'; diff --git a/packages/platform-browser/test/browser/bootstrap_spec.ts b/packages/platform-browser/test/browser/bootstrap_spec.ts index 155f9fcbe328..cb2808b5f813 100644 --- a/packages/platform-browser/test/browser/bootstrap_spec.ts +++ b/packages/platform-browser/test/browser/bootstrap_spec.ts @@ -47,7 +47,7 @@ import { Type, VERSION, } from '@angular/core'; -import {inject, ɵLog as Log, TestBed} from '@angular/core/testing'; +import {ɵLog as Log, TestBed} from '@angular/core/testing'; import {isNode, withBody} from '@angular/private/testing'; import {expect} from '@angular/private/testing/matchers'; import {provideAnimations, provideNoopAnimations} from '../../animations'; @@ -197,7 +197,8 @@ describe('bootstrap factory method', () => { TestBed.configureTestingModule({providers: [Log]}); }); - beforeEach(inject([DOCUMENT], (doc: any) => { + beforeEach(() => { + const doc = TestBed.inject(DOCUMENT); destroyPlatform(); compilerConsole = new DummyConsole(); testProviders = [{provide: Console, useValue: compilerConsole}]; @@ -214,7 +215,7 @@ describe('bootstrap factory method', () => { doc.body.appendChild(el2); el.appendChild(lightDom); lightDom.textContent = 'loading'; - })); + }); afterEach(destroyPlatform); @@ -242,7 +243,6 @@ describe('bootstrap factory method', () => { @Component({ selector: 'hello-app', template: 'Hello from {{ name }}!', - changeDetection: ChangeDetectionStrategy.Eager, }) class ComponentWithDeps { constructor(@Inject(NAME) public name: string) {} @@ -554,13 +554,14 @@ describe('bootstrap factory method', () => { expect(state).toBeInstanceOf(TransferState); }); - it('should retrieve sanitizer', inject([Injector], (injector: Injector) => { + it('should retrieve sanitizer', () => { + const injector = TestBed.inject(Injector); const sanitizer: Sanitizer | null = injector.get(Sanitizer, null); // We don't want to have sanitizer in DI. We use DI only to overwrite the // sanitizer, but not for default one. The default one is pulled in by the Ivy // instructions as needed. expect(sanitizer).toBe(null); - })); + }); it('should throw if no element is found', (done) => { const logger = new MockConsole(); @@ -744,31 +745,28 @@ describe('bootstrap factory method', () => { }, done.fail); }); - it('should run platform initializers', (done) => { - inject([Log], (log: Log) => { - const p = createPlatformFactory(platformBrowser, 'someName', [ - {provide: PLATFORM_INITIALIZER, useValue: log.fn('platform_init1'), multi: true}, - {provide: PLATFORM_INITIALIZER, useValue: log.fn('platform_init2'), multi: true}, - ])(); + it('should run platform initializers', async () => { + const log = TestBed.inject(Log); + const p = createPlatformFactory(platformBrowser, 'someName', [ + {provide: PLATFORM_INITIALIZER, useValue: log.fn('platform_init1'), multi: true}, + {provide: PLATFORM_INITIALIZER, useValue: log.fn('platform_init2'), multi: true}, + ])(); - @NgModule({ - imports: [BrowserModule], - providers: [ - {provide: APP_INITIALIZER, useValue: log.fn('app_init1'), multi: true}, - {provide: APP_INITIALIZER, useValue: log.fn('app_init2'), multi: true}, - ], - }) - class SomeModule { - ngDoBootstrap() {} - } + @NgModule({ + imports: [BrowserModule], + providers: [ + {provide: APP_INITIALIZER, useValue: log.fn('app_init1'), multi: true}, + {provide: APP_INITIALIZER, useValue: log.fn('app_init2'), multi: true}, + ], + }) + class SomeModule { + ngDoBootstrap() {} + } - expect(log.result()).toEqual('platform_init1; platform_init2'); - log.clear(); - p.bootstrapModule(SomeModule).then(() => { - expect(log.result()).toEqual('app_init1; app_init2'); - done(); - }, done.fail); - })(); + expect(log.result()).toEqual('platform_init1; platform_init2'); + log.clear(); + await p.bootstrapModule(SomeModule); + expect(log.result()).toEqual('app_init1; app_init2'); }); it('should allow provideZoneChangeDetection in bootstrapModule', async () => { @@ -875,38 +873,32 @@ describe('bootstrap factory method', () => { } } - it('should be triggered for all bootstrapped components in case change happens in one of them', (done) => { + it('should be triggered for all bootstrapped components in case change happens in one of them', async () => { @NgModule({ imports: [BrowserModule], declarations: [CompA, CompB], bootstrap: [CompA, CompB], - schemas: [CUSTOM_ELEMENTS_SCHEMA], providers: [provideZoneChangeDetection()], }) class TestModuleA {} - platformBrowser() - .bootstrapModule(TestModuleA) - .then((ref) => { - log.length = 0; - el.querySelectorAll('#button-a')[0].click(); - expect(log).toContain('CompA:onClick'); - expect(log).toContain('CompA:ngDoCheck'); - expect(log).toContain('CompB:ngDoCheck'); - - log.length = 0; - el2.querySelectorAll('#button-b')[0].click(); - expect(log).toContain('CompB:onClick'); - expect(log).toContain('CompA:ngDoCheck'); - expect(log).toContain('CompB:ngDoCheck'); - - done(); - }, done.fail); + await platformBrowser().bootstrapModule(TestModuleA); + log.length = 0; + el.querySelectorAll('#button-a')[0].click(); + expect(log).toContain('CompA:onClick'); + expect(log).toContain('CompA:ngDoCheck'); + expect(log).toContain('CompB:ngDoCheck'); + + log.length = 0; + el2.querySelectorAll('#button-b')[0].click(); + expect(log).toContain('CompB:onClick'); + expect(log).toContain('CompA:ngDoCheck'); + expect(log).toContain('CompB:ngDoCheck'); }); - it('should work in isolation for each component bootstrapped individually', (done) => { + it('should work in isolation for each component bootstrapped individually', async () => { const refPromise1 = bootstrap(CompA); const refPromise2 = bootstrap(CompB); - Promise.all([refPromise1, refPromise2]).then((refs) => { + await Promise.all([refPromise1, refPromise2]).then((refs) => { log.length = 0; el.querySelectorAll('#button-a')[0].click(); expect(log).toContain('CompA:onClick'); @@ -918,9 +910,7 @@ describe('bootstrap factory method', () => { expect(log).toContain('CompB:onClick'); expect(log).toContain('CompB:ngDoCheck'); expect(log).not.toContain('CompA:ngDoCheck'); - - done(); - }, done.fail); + }); }); }); }); diff --git a/packages/platform-browser/test/browser/bootstrap_standalone_spec.ts b/packages/platform-browser/test/browser/bootstrap_standalone_spec.ts index 29fb96a361d3..e9553386c693 100644 --- a/packages/platform-browser/test/browser/bootstrap_standalone_spec.ts +++ b/packages/platform-browser/test/browser/bootstrap_standalone_spec.ts @@ -7,6 +7,7 @@ */ import { + APP_ID, Component, destroyPlatform, ErrorHandler, @@ -15,10 +16,9 @@ import { InjectionToken, NgModule, NgZone, + ɵNoopNgZone as NoopNgZone, PlatformRef, ɵR3Injector as R3Injector, - ɵNoopNgZone as NoopNgZone, - APP_ID, signal, } from '@angular/core'; import {isNode, withBody} from '@angular/private/testing'; diff --git a/packages/platform-browser/test/dom/dom_renderer_spec.ts b/packages/platform-browser/test/dom/dom_renderer_spec.ts index 47945c968566..a367262113bc 100644 --- a/packages/platform-browser/test/dom/dom_renderer_spec.ts +++ b/packages/platform-browser/test/dom/dom_renderer_spec.ts @@ -6,8 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ import {NgIf} from '@angular/common'; -import {ChangeDetectionStrategy} from '@angular/compiler'; -import {Component, Renderer2, ViewEncapsulation} from '@angular/core'; +import {Component, Renderer2, signal, ViewEncapsulation} from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import {isNode} from '@angular/private/testing'; import {expect} from '@angular/private/testing/matchers'; @@ -235,23 +234,19 @@ describe('DefaultDomRendererV2', () => { it('works for components without encapsulation emulated', async () => { const fixture = TestBed.createComponent(SomeAppForCleanUp); const compInstance = fixture.componentInstance; - compInstance.showEmulatedComponents = true; - - fixture.changeDetectorRef.markForCheck(); + compInstance.showEmulatedComponents.set(true); await fixture.whenStable(); // verify style is in DOM expect(await styleCount(fixture, '.emulated')).toBe(1); // Remove a single instance of the component. - compInstance.componentOneInstanceHidden = true; - fixture.changeDetectorRef.markForCheck(); + compInstance.componentOneInstanceHidden.set(true); await fixture.whenStable(); // Verify style is still in DOM expect(await styleCount(fixture, '.emulated')).toBe(1); // Hide all instances of the component - compInstance.componentTwoInstanceHidden = true; - fixture.changeDetectorRef.markForCheck(); + compInstance.componentTwoInstanceHidden.set(true); await fixture.whenStable(); // Verify style is still in DOM @@ -261,23 +256,19 @@ describe('DefaultDomRendererV2', () => { it('works for components without encapsulation none', async () => { const fixture = TestBed.createComponent(SomeAppForCleanUp); const compInstance = fixture.componentInstance; - compInstance.showEmulatedComponents = false; - - fixture.changeDetectorRef.markForCheck(); + compInstance.showEmulatedComponents.set(false); await fixture.whenStable(); // verify style is in DOM expect(await styleCount(fixture, '.none')).toBe(1); // Remove a single instance of the component. - compInstance.componentOneInstanceHidden = true; - fixture.changeDetectorRef.markForCheck(); + compInstance.componentOneInstanceHidden.set(true); await fixture.whenStable(); // Verify style is still in DOM expect(await styleCount(fixture, '.none')).toBe(1); // Hide all instances of the component - compInstance.componentTwoInstanceHidden = true; - fixture.changeDetectorRef.markForCheck(); + compInstance.componentTwoInstanceHidden.set(true); await fixture.whenStable(); // Verify style is still in DOM @@ -289,22 +280,19 @@ describe('DefaultDomRendererV2', () => { it('works for components without encapsulation emulated', async () => { const fixture = TestBed.createComponent(SomeAppForCleanUp); const compInstance = fixture.componentInstance; - compInstance.showEmulatedComponents = true; - fixture.changeDetectorRef.markForCheck(); + compInstance.showEmulatedComponents.set(true); await fixture.whenStable(); // verify style is in DOM expect(await styleCount(fixture, '.emulated')).toBe(1); // Remove a single instance of the component. - compInstance.componentOneInstanceHidden = true; - fixture.changeDetectorRef.markForCheck(); + compInstance.componentOneInstanceHidden.set(true); await fixture.whenStable(); // Verify style is still in DOM expect(await styleCount(fixture, '.emulated')).toBe(1); // Hide all instances of the component - compInstance.componentTwoInstanceHidden = true; - fixture.changeDetectorRef.markForCheck(); + compInstance.componentTwoInstanceHidden.set(true); await fixture.whenStable(); // Verify style is not in DOM @@ -314,23 +302,19 @@ describe('DefaultDomRendererV2', () => { it('works for components without encapsulation none', async () => { const fixture = TestBed.createComponent(SomeAppForCleanUp); const compInstance = fixture.componentInstance; - compInstance.showEmulatedComponents = false; - - fixture.changeDetectorRef.markForCheck(); + compInstance.showEmulatedComponents.set(false); await fixture.whenStable(); // verify style is in DOM expect(await styleCount(fixture, '.none')).toBe(1); // Remove a single instance of the component. - compInstance.componentOneInstanceHidden = true; - fixture.changeDetectorRef.markForCheck(); + compInstance.componentOneInstanceHidden.set(true); await fixture.whenStable(); // Verify style is still in DOM expect(await styleCount(fixture, '.none')).toBe(1); // Hide all instances of the component - compInstance.componentTwoInstanceHidden = true; - fixture.changeDetectorRef.markForCheck(); + compInstance.componentTwoInstanceHidden.set(true); await fixture.whenStable(); // Verify style is not in DOM @@ -374,7 +358,6 @@ describe('DefaultDomRendererV2', () => { describe('with provided namespace', () => { it('should replace `%NS%` in styles for `Emulated` encapsulation', async () => { @Component({ - selector: 'cmp-namespace-emulated', template: '', styles: ` :host { @@ -397,7 +380,6 @@ describe('DefaultDomRendererV2', () => { it('should replace `%NS%` in styles for `None` encapsulation', async () => { @Component({ - selector: 'cmp-namespace-none', template: '', styles: ` :host { @@ -420,7 +402,6 @@ describe('DefaultDomRendererV2', () => { it('should replace `%NS%` in styles for `ShadowDom` encapsulation', async () => { @Component({ - selector: 'cmp-namespace-shadow', template: '', styles: ` :host { @@ -451,7 +432,6 @@ describe('DefaultDomRendererV2', () => { describe('with default (empty) namespace', () => { it('should replace `%NS%` in styles for `Emulated` encapsulation', async () => { @Component({ - selector: 'cmp-namespace-emulated', template: '', styles: ` :host { @@ -474,7 +454,6 @@ describe('DefaultDomRendererV2', () => { it('should replace `%NS%` in styles for `None` encapsulation', async () => { @Component({ - selector: 'cmp-namespace-none', template: '', styles: ` :host { @@ -497,7 +476,6 @@ describe('DefaultDomRendererV2', () => { it('should replace `%NS%` in styles for `ShadowDom` encapsulation', async () => { @Component({ - selector: 'cmp-namespace-shadow', template: '', styles: ` :host { @@ -528,9 +506,7 @@ describe('DefaultDomRendererV2', () => { describe('style property bindings namespacing', () => { it('should namespace style property bindings starting with `--`', async () => { @Component({ - selector: 'cmp-style-prop-namespace', template: `
    `, - standalone: true, }) class CmpStylePropNamespace {} @@ -549,9 +525,7 @@ describe('DefaultDomRendererV2', () => { // TODO: Enforce this in v23. xit('should throw an error if style property binding starts with `--global-` with a single hyphen', () => { @Component({ - selector: 'cmp-style-prop-error', template: `
    `, - standalone: true, }) class CmpStylePropError {} @@ -565,9 +539,7 @@ describe('DefaultDomRendererV2', () => { it('should namespace styles set via Renderer2.setStyle/removeStyle', () => { @Component({ - selector: 'cmp-renderer-set-style', template: '', - standalone: true, }) class CmpRendererSetStyle { constructor(public renderer: Renderer2) {} @@ -762,48 +734,40 @@ class CmpEncapsulationShadow {} class CmpEncapsulationIsolatedShadowWithChildren {} @Component({ - selector: 'some-app', template: ` `, imports: [CmpEncapsulationShadow, CmpEncapsulationEmulated, CmpEncapsulationNone], - changeDetection: ChangeDetectionStrategy.Eager, }) export class SomeApp {} @Component({ - selector: 'shadow-parent-app-with-children', template: ` `, imports: [CmpEncapsulationIsolatedShadowWithChildren], - changeDetection: ChangeDetectionStrategy.Eager, }) export class IsolatedShadowComponentParentApp {} @Component({ - selector: 'test-cmp', template: '', - changeDetection: ChangeDetectionStrategy.Eager, }) class TestCmp { constructor(public renderer: Renderer2) {} } @Component({ - selector: 'some-app', template: ` - - + + - - + + `, imports: [NgIf, CmpEncapsulationEmulated, CmpEncapsulationNone], - changeDetection: ChangeDetectionStrategy.Eager, }) export class SomeAppForCleanUp { - componentOneInstanceHidden = false; - componentTwoInstanceHidden = false; - showEmulatedComponents = true; + componentOneInstanceHidden = signal(false); + componentTwoInstanceHidden = signal(false); + showEmulatedComponents = signal(true); } diff --git a/packages/platform-browser/test/dom/shadow_dom_spec.ts b/packages/platform-browser/test/dom/shadow_dom_spec.ts index 01962d979017..fd1957946c14 100644 --- a/packages/platform-browser/test/dom/shadow_dom_spec.ts +++ b/packages/platform-browser/test/dom/shadow_dom_spec.ts @@ -8,9 +8,9 @@ import {Component, NgModule, ViewEncapsulation} from '@angular/core'; import {TestBed} from '@angular/core/testing'; -import {BrowserModule, createApplication} from '../../index'; -import {expect} from '@angular/private/testing/matchers'; import {isNode} from '@angular/private/testing'; +import {expect} from '@angular/private/testing/matchers'; +import {BrowserModule, createApplication} from '../../index'; describe('ShadowDOM Support', () => { if (isNode) { @@ -235,15 +235,12 @@ describe('ShadowDOM Support', () => { }); @Component({ - selector: 'shadow-comp', template: 'Hello World', encapsulation: ViewEncapsulation.ShadowDom, - standalone: false, }) class ShadowComponent {} @Component({ - selector: 'styled-shadow-comp', template: '
    ', encapsulation: ViewEncapsulation.ShadowDom, styles: [ @@ -256,30 +253,30 @@ class ShadowComponent {} } `, ], - standalone: false, }) class StyledShadowComponent {} @Component({ - selector: 'shadow-slot-comp', template: '', encapsulation: ViewEncapsulation.ShadowDom, - standalone: false, }) class ShadowSlotComponent {} @Component({ - selector: 'shadow-slots-comp', template: '
    ', encapsulation: ViewEncapsulation.ShadowDom, - standalone: false, }) class ShadowSlotsComponent {} @NgModule({ - imports: [BrowserModule], - declarations: [ShadowComponent, ShadowSlotComponent, ShadowSlotsComponent, StyledShadowComponent], + imports: [ + BrowserModule, + ShadowComponent, + ShadowSlotComponent, + ShadowSlotsComponent, + StyledShadowComponent, + ], }) class TestModule { ngDoBootstrap() {} diff --git a/packages/platform-browser/test/hydration_spec.ts b/packages/platform-browser/test/hydration_spec.ts index 22696ba38ede..4af18b6c7208 100644 --- a/packages/platform-browser/test/hydration_spec.ts +++ b/packages/platform-browser/test/hydration_spec.ts @@ -14,6 +14,8 @@ import { Component, Injectable, PLATFORM_ID, + ɵIS_TESTING as IS_TESTING, + ɵresetIncrementalHydrationEnabledWarnedForTests as resetIncrementalHydrationEnabledWarnedForTests, ɵSSR_CONTENT_INTEGRITY_MARKER as SSR_CONTENT_INTEGRITY_MARKER, } from '@angular/core'; import {TestBed} from '@angular/core/testing'; @@ -22,8 +24,8 @@ import {BehaviorSubject} from 'rxjs'; import { provideClientHydration, - withNoHttpTransferCache, withIncrementalHydration, + withNoHttpTransferCache, withNoIncrementalHydration, } from '../public_api'; import {withHttpTransferCacheOptions} from '../src/hydration'; @@ -32,7 +34,6 @@ describe('provideClientHydration', () => { @Component({ selector: 'test-hydrate-app', template: '', - standalone: false, }) class SomeComponent {} @@ -76,7 +77,6 @@ describe('provideClientHydration', () => { TestBed.resetTestingModule(); TestBed.configureTestingModule({ - declarations: [SomeComponent], providers: [ {provide: PLATFORM_ID, useValue: 'server'}, {provide: DOCUMENT, useFactory: () => document}, @@ -108,7 +108,6 @@ describe('provideClientHydration', () => { TestBed.resetTestingModule(); TestBed.configureTestingModule({ - declarations: [SomeComponent], providers: [ {provide: PLATFORM_ID, useValue: 'server'}, {provide: DOCUMENT, useFactory: () => document}, @@ -140,7 +139,6 @@ describe('provideClientHydration', () => { TestBed.resetTestingModule(); TestBed.configureTestingModule({ - declarations: [SomeComponent], providers: [ {provide: PLATFORM_ID, useValue: 'server'}, {provide: DOCUMENT, useFactory: () => document}, @@ -177,4 +175,54 @@ describe('provideClientHydration', () => { }).toThrowError(/Configuration error: found both withIncrementalHydration/); }); }); + + describe('in TestBed', () => { + beforeEach(() => { + globalThis['ngServerMode'] = undefined; + }); + + it('should not log NG0505 warning when provideClientHydration is used in TestBed', () => { + const consoleSpy = spyOn(console, 'warn'); + TestBed.resetTestingModule(); + TestBed.configureTestingModule({ + providers: [provideClientHydration()], + }); + TestBed.createComponent(SomeComponent); + expect(consoleSpy).not.toHaveBeenCalledWith( + jasmine.stringMatching('NG0505: Angular hydration was requested on the client'), + ); + }); + + it('should not log NG0508 warning when defer block with hydrate triggers is used in TestBed without hydration providers', () => { + resetIncrementalHydrationEnabledWarnedForTests(); + @Component({ + template: ` + @defer (hydrate on idle) { +

    Defer hydrated

    + } + `, + }) + class DeferHydrateComponent {} + + const consoleSpy = spyOn(console, 'warn'); + TestBed.resetTestingModule(); + TestBed.configureTestingModule({ + imports: [DeferHydrateComponent], + }); + TestBed.createComponent(DeferHydrateComponent); + expect(consoleSpy).not.toHaveBeenCalledWith(jasmine.stringMatching('NG0508')); + }); + + it('should log NG0505 warning if IS_TESTING is explicitly false and no serialized info is present', () => { + const consoleSpy = spyOn(console, 'warn'); + TestBed.resetTestingModule(); + TestBed.configureTestingModule({ + providers: [provideClientHydration(), {provide: IS_TESTING, useValue: false}], + }); + TestBed.createComponent(SomeComponent); + expect(consoleSpy).toHaveBeenCalledWith( + jasmine.stringMatching('NG0505: Angular hydration was requested on the client'), + ); + }); + }); }); diff --git a/packages/platform-browser/test/testing_public_spec.ts b/packages/platform-browser/test/testing_public_spec.ts index d1fbc2d2635b..e6b4b5b6fc05 100644 --- a/packages/platform-browser/test/testing_public_spec.ts +++ b/packages/platform-browser/test/testing_public_spec.ts @@ -6,9 +6,9 @@ * found in the LICENSE file at https://angular.dev/license */ +import {NgIf} from '@angular/common'; import {ResourceLoader} from '@angular/compiler'; import { - ChangeDetectionStrategy, Compiler, Component, CUSTOM_ELEMENTS_SCHEMA, @@ -21,6 +21,7 @@ import { NgModule, Optional, Pipe, + signal, SkipSelf, TransferState, Type, @@ -42,7 +43,6 @@ import {expect} from '@angular/private/testing/matchers'; @Component({ selector: 'child-comp', template: `Original {{ childBinding }}`, - standalone: false, }) @Injectable() class ChildComp { @@ -55,34 +55,28 @@ class ChildComp { @Component({ selector: 'child-comp', template: `Mock`, - standalone: false, }) @Injectable() class MockChildComp {} @Component({ - selector: 'parent-comp', template: `Parent()`, - standalone: false, + imports: [ChildComp], }) @Injectable() class ParentComp {} @Component({ - selector: 'my-if-comp', - template: `MyIf(More)`, - standalone: false, - changeDetection: ChangeDetectionStrategy.Eager, + template: `MyIf(More)`, + imports: [NgIf], }) @Injectable() class MyIfComp { - showMore: boolean = false; + showMore = signal(false); } @Component({ - selector: 'child-child-comp', template: `ChildChild`, - standalone: false, }) @Injectable() class ChildChildComp {} @@ -102,20 +96,16 @@ class MockFancyService extends FancyService { } @Component({ - selector: 'my-service-comp', providers: [FancyService], template: `injected value: {{ fancyService.value }}`, - standalone: false, }) class TestProvidersComp { constructor(private fancyService: FancyService) {} } @Component({ - selector: 'my-service-comp', viewProviders: [FancyService], template: `injected value: {{ fancyService.value }}`, - standalone: false, }) class TestViewProvidersComp { constructor(private fancyService: FancyService) {} @@ -124,7 +114,6 @@ class TestViewProvidersComp { @Directive({ selector: '[someDir]', host: {'[title]': 'someDir'}, - standalone: false, }) class SomeDirective { @Input() someDir!: string; @@ -132,7 +121,6 @@ class SomeDirective { @Pipe({ name: 'somePipe', - standalone: false, }) class SomePipe { transform(value: string) { @@ -143,7 +131,7 @@ class SomePipe { @Component({ selector: 'comp', template: `
    `, - standalone: false, + imports: [SomeDirective, SomePipe], }) class CompUsingModuleDirectiveAndPipe {} @@ -153,6 +141,16 @@ class SomeLibModule {} const aTok = new InjectionToken('a'); const bTok = new InjectionToken('b'); +const {withProxyZone: _withProxyZone} = (Zone as any)[Zone.__symbol__('fakeAsyncTest')]; +const withProxyZone = (fn: T): T => { + const proxied = _withProxyZone(fn); + return (fn.length + ? function (this: unknown, done: DoneFn) { + return proxied.call(this, done); + } + : proxied) as unknown as T; +}; + describe('public testing API', () => { describe('using the async helper with context passing', () => { type TestContext = {actuallyDone: boolean}; @@ -176,14 +174,24 @@ describe('public testing API', () => { }, 0); }); - it('should run async tests with tasks', waitForAsync(function (this: TestContext) { - setTimeout(() => (this.actuallyDone = true), 0); - })); + it( + 'should run async tests with tasks', + withProxyZone( + waitForAsync(function (this: TestContext) { + setTimeout(() => (this.actuallyDone = true), 0); + }), + ), + ); - it('should run async tests with promises', waitForAsync(function (this: TestContext) { - const p = new Promise((resolve, reject) => setTimeout(resolve, 10)); - p.then(() => (this.actuallyDone = true)); - })); + it( + 'should run async tests with promises', + withProxyZone( + waitForAsync(function (this: TestContext) { + const p = new Promise((resolve, reject) => setTimeout(resolve, 10)); + p.then(() => (this.actuallyDone = true)); + }), + ), + ); }); describe('basic context passing to inject, fakeAsync and withModule helpers', () => { @@ -205,9 +213,14 @@ describe('public testing API', () => { this.contextModified = true; })); - it('should pass context to fakeAsync helper', fakeAsync(function (this: TestContext) { - this.contextModified = true; - })); + it( + 'should pass context to fakeAsync helper', + withProxyZone( + fakeAsync(function (this: TestContext) { + this.contextModified = true; + }), + ), + ); it( 'should pass context to withModule helper - simple', @@ -227,18 +240,28 @@ describe('public testing API', () => { ), ); - it('should preserve context when async and inject helpers are combined', waitForAsync( - inject([], function (this: TestContext) { - setTimeout(() => (this.contextModified = true), 0); - }), - )); + it( + 'should preserve context when async and inject helpers are combined', + withProxyZone( + waitForAsync( + inject([], function (this: TestContext) { + setTimeout(() => (this.contextModified = true), 0); + }), + ), + ), + ); - it('should preserve context when fakeAsync and inject helpers are combined', fakeAsync( - inject([], function (this: TestContext) { - setTimeout(() => (this.contextModified = true), 0); - tick(1); - }), - )); + it( + 'should preserve context when fakeAsync and inject helpers are combined', + withProxyZone( + fakeAsync( + inject([], function (this: TestContext) { + setTimeout(() => (this.contextModified = true), 0); + tick(1); + }), + ), + ), + ); }); describe('using the test injector with the inject helper', () => { @@ -253,21 +276,31 @@ describe('public testing API', () => { expect(service.value).toEqual('real value'); })); - it('should wait until returned promises', waitForAsync( - inject([FancyService], (service: FancyService) => { - service.getAsyncValue().then((value) => expect(value).toEqual('async value')); - service.getTimeoutValue().then((value) => expect(value).toEqual('timeout value')); - }), - )); + it( + 'should wait until returned promises', + withProxyZone( + waitForAsync( + inject([FancyService], (service: FancyService) => { + service.getAsyncValue().then((value) => expect(value).toEqual('async value')); + service.getTimeoutValue().then((value) => expect(value).toEqual('timeout value')); + }), + ), + ), + ); - it('should allow the use of fakeAsync', fakeAsync( - inject([FancyService], (service: FancyService) => { - let value: string = undefined!; - service.getAsyncValue().then((val) => (value = val)); - tick(); - expect(value).toEqual('async value'); - }), - )); + it( + 'should allow the use of fakeAsync', + withProxyZone( + fakeAsync( + inject([FancyService], (service: FancyService) => { + let value: string = undefined!; + service.getAsyncValue().then((val) => (value = val)); + tick(); + expect(value).toEqual('async value'); + }), + ), + ), + ); it('should allow use of "done"', (done) => { inject([FancyService], (service: FancyService) => { @@ -293,11 +326,15 @@ describe('public testing API', () => { }); describe('using async beforeEach', () => { - beforeEach(waitForAsync( - inject([FancyService], (service: FancyService) => { - service.getAsyncValue().then((value) => (service.value = value)); - }), - )); + beforeEach( + withProxyZone( + waitForAsync( + inject([FancyService], (service: FancyService) => { + service.getAsyncValue().then((value) => (service.value = value)); + }), + ), + ), + ); it('should use asynchronously modified value', inject( [FancyService], @@ -312,8 +349,7 @@ describe('public testing API', () => { describe('using the test injector with modules', () => { const moduleConfig = { providers: [FancyService], - imports: [SomeLibModule], - declarations: [SomeDirective, SomePipe, CompUsingModuleDirectiveAndPipe], + imports: [SomeLibModule, SomeDirective, SomePipe, CompUsingModuleDirectiveAndPipe], }; describe('setting up a module', () => { @@ -346,14 +382,12 @@ describe('public testing API', () => { describe('provided schemas', () => { @Component({ template: '', - standalone: false, }) class ComponentUsingInvalidProperty {} beforeEach(() => { TestBed.configureTestingModule({ schemas: [CUSTOM_ELEMENTS_SCHEMA], - declarations: [ComponentUsingInvalidProperty], }); }); @@ -397,15 +431,11 @@ describe('public testing API', () => { beforeEach(() => { @Component({ - selector: 'comp', templateUrl: '/base/angular/packages/platform-browser/test/static_assets/test.html', - standalone: false, }) class CompWithUrlTemplate {} TestComponent = CompWithUrlTemplate; - - TestBed.configureTestingModule({declarations: [CompWithUrlTemplate]}); }); isBrowser && @@ -729,6 +759,8 @@ describe('public testing API', () => { }); it('should support SkipSelf', () => { + // This test cannot be migrated to standalone because + // overrideProviders doesnt work. See #56528 @Directive({ selector: '[myDir]', providers: [ @@ -757,6 +789,8 @@ describe('public testing API', () => { }); it('should support multiple providers in a template', () => { + // This test cannot be migrated to standalone because + // overrideProviders doesnt work. See #56528 @Directive({ selector: '[myDir1]', providers: [{provide: aTok, useValue: 'aValue1'}], @@ -834,7 +868,7 @@ describe('public testing API', () => { }); describe('overrideTemplateUsingTestingModule', () => { - it('should compile the template in the context of the testing module', () => { + it('should compile the template in the context of the testing module', async () => { @Component({ selector: 'comp', template: 'a', @@ -892,68 +926,55 @@ describe('public testing API', () => { describe('setting up the compiler', () => { describe('providers', () => { // TODO(alxhub): disable while we figure out how this should work - xit('should use set up providers', fakeAsync(() => { + xit('should use set up providers', async () => { // Keeping this component inside the test is needed to make sure it's not resolved // prior to this test, thus having ɵcmp and a reference in resource // resolution queue. This is done to check external resoution logic in isolation by // configuring TestBed with the necessary ResourceLoader instance. @Component({ - selector: 'comp', templateUrl: '/base/angular/packages/platform-browser/test/static_assets/test.html', - standalone: false, }) class InternalCompWithUrlTemplate {} const resourceLoaderGet = jasmine .createSpy('resourceLoaderGet') .and.returnValue(Promise.resolve('Hello world!')); - TestBed.configureTestingModule({declarations: [InternalCompWithUrlTemplate]}); + TestBed.configureCompiler({ providers: [{provide: ResourceLoader, useValue: {get: resourceLoaderGet}}], }); - tick(); const compFixture = TestBed.createComponent(InternalCompWithUrlTemplate); + await compFixture.whenStable(); expect(compFixture.nativeElement).toHaveText('Hello world!'); - })); + }); }); }); }); describe('errors', () => { - let originalJasmineIt: (description: string, func: () => void) => jasmine.Spec; - - const patchJasmineIt = () => { - let resolve: (result: any) => void; - let reject: (error: any) => void; - const promise = new Promise((res, rej) => { - resolve = res; - reject = rej; - }); - const jasmineEnv = jasmine.getEnv() as any; - originalJasmineIt = jasmineEnv.it; - jasmineEnv.it = (description: string, fn: (done: DoneFn) => void): any => { - const done = (() => resolve(null)); - done.fail = (err) => reject(err); - fn(done); - return null; - }; + const runAsyncTestFn = (fn: (done: DoneFn) => void) => { + const {promise, resolve, reject} = Promise.withResolvers(); + const done = (() => resolve(null)); + done.fail = (err) => reject(err); + fn(done); return promise; }; - const restoreJasmineIt = () => ((jasmine.getEnv() as any).it = originalJasmineIt); - it('should fail when an asynchronous error is thrown', (done) => { - const itPromise = patchJasmineIt(); const barError = new Error('bar'); - it('throws an async error', waitForAsync( - inject([], () => - setTimeout(() => { - throw barError; - }, 0), + const itPromise = runAsyncTestFn( + withProxyZone( + waitForAsync( + inject([], () => + setTimeout(() => { + throw barError; + }, 0), + ), + ), ), - )); + ); itPromise.then( () => done.fail('Expected test to fail, but it did not'), @@ -962,22 +983,22 @@ describe('public testing API', () => { done(); }, ); - restoreJasmineIt(); }); it('should fail when a returned promise is rejected', (done) => { - const itPromise = patchJasmineIt(); - - it('should fail with an error from a promise', waitForAsync( - inject([], () => { - let reject: (error: any) => void = undefined!; - const promise = new Promise((_, rej) => (reject = rej)); - const p = promise.then(() => expect(1).toEqual(2)); - - reject('baz'); - return p; - }), - )); + const itPromise = runAsyncTestFn( + withProxyZone( + waitForAsync( + inject([], () => { + const {promise, reject} = Promise.withResolvers(); + const p = promise.then(() => expect(1).toEqual(2)); + + reject('baz'); + return p; + }), + ), + ), + ); itPromise.then( () => done.fail('Expected test to fail, but it did not'), @@ -986,7 +1007,6 @@ describe('public testing API', () => { done(); }, ); - restoreJasmineIt(); }); describe('components', () => { @@ -1003,95 +1023,76 @@ describe('public testing API', () => { // TODO(alxhub): disable while we figure out how this should work xit('should report an error for declared components with templateUrl which never call TestBed.compileComponents', () => { @Component({ - selector: 'comp', templateUrl: '/base/angular/packages/platform-browser/test/static_assets/test.html', - standalone: false, }) class InlineCompWithUrlTemplate {} - expect( - withModule({declarations: [InlineCompWithUrlTemplate]}, () => - TestBed.createComponent(InlineCompWithUrlTemplate), - ), - ).toThrowError(`Component 'InlineCompWithUrlTemplate' is not resolved: + expect(withModule({}, () => TestBed.createComponent(InlineCompWithUrlTemplate))) + .toThrowError(`Component 'InlineCompWithUrlTemplate' is not resolved: - templateUrl: /base/angular/packages/platform-browser/test/static_assets/test.html Did you run and wait for 'resolveComponentResources()'?`); }); }); - it('should error on unknown bound properties on custom elements by default', () => { + it('should error on unknown bound properties on custom elements by default', async () => { @Component({ template: '
    ', - standalone: false, }) class ComponentUsingInvalidProperty {} const spy = spyOn(console, 'error'); - withModule({declarations: [ComponentUsingInvalidProperty]}, () => { - const fixture = TestBed.createComponent(ComponentUsingInvalidProperty); - fixture.detectChanges(); - })(); + + const fixture = TestBed.createComponent(ComponentUsingInvalidProperty); + await fixture.whenStable(); expect(spy.calls.mostRecent().args[0]).toMatch(/Can't bind to 'someUnknownProp'/); }); }); describe('creating components', () => { - beforeEach(() => { - TestBed.configureTestingModule({ - declarations: [ - ChildComp, - MyIfComp, - ChildChildComp, - ParentComp, - TestProvidersComp, - TestViewProvidersComp, - ], - }); - }); + beforeEach(() => {}); - it('should instantiate a component with valid DOM', waitForAsync(() => { + it('should instantiate a component with valid DOM', async () => { const fixture = TestBed.createComponent(ChildComp); - fixture.detectChanges(); + await fixture.whenStable(); expect(fixture.nativeElement).toHaveText('Original Child'); - })); + }); - it('should allow changing members of the component', waitForAsync(() => { + it('should allow changing members of the component', async () => { const componentFixture = TestBed.createComponent(MyIfComp); - componentFixture.detectChanges(); + await componentFixture.whenStable(); expect(componentFixture.nativeElement).toHaveText('MyIf()'); - componentFixture.componentInstance.showMore = true; - componentFixture.changeDetectorRef.markForCheck(); - componentFixture.detectChanges(); + componentFixture.componentInstance.showMore.set(true); + await componentFixture.whenStable(); expect(componentFixture.nativeElement).toHaveText('MyIf(More)'); - })); + }); - it('should override a template', waitForAsync(() => { + it('should override a template', async () => { TestBed.overrideComponent(ChildComp, {set: {template: 'Mock'}}); const componentFixture = TestBed.createComponent(ChildComp); - componentFixture.detectChanges(); + await componentFixture.whenStable(); expect(componentFixture.nativeElement).toHaveText('Mock'); - })); + }); - it('should override a provider', waitForAsync(() => { + it('should override a provider', async () => { TestBed.overrideComponent(TestProvidersComp, { set: {providers: [{provide: FancyService, useClass: MockFancyService}]}, }); const componentFixture = TestBed.createComponent(TestProvidersComp); - componentFixture.detectChanges(); + await componentFixture.whenStable(); expect(componentFixture.nativeElement).toHaveText('injected value: mocked out value'); - })); + }); - it('should override a viewProvider', waitForAsync(() => { + it('should override a viewProvider', async () => { TestBed.overrideComponent(TestViewProvidersComp, { set: {viewProviders: [{provide: FancyService, useClass: MockFancyService}]}, }); const componentFixture = TestBed.createComponent(TestViewProvidersComp); - componentFixture.detectChanges(); + await componentFixture.whenStable(); expect(componentFixture.nativeElement).toHaveText('injected value: mocked out value'); - })); + }); describe('getLastFixture', () => { it('should return the last created fixture', () => { @@ -1117,17 +1118,14 @@ Did you run and wait for 'resolveComponentResources()'?`); }); }); describe('using alternate components', () => { - beforeEach(() => { - TestBed.configureTestingModule({ - declarations: [MockChildComp, ParentComp], - }); - }); + beforeEach(() => {}); - it('should override component dependencies', waitForAsync(() => { + it('should override component dependencies', async () => { + TestBed.overrideComponent(ParentComp, {set: {imports: [MockChildComp]}}); const componentFixture = TestBed.createComponent(ParentComp); - componentFixture.detectChanges(); + await componentFixture.whenStable(); expect(componentFixture.nativeElement).toHaveText('Parent(Mock)'); - })); + }); }); describe('calling override methods after TestBed initialization', () => { @@ -1158,7 +1156,6 @@ Did you run and wait for 'resolveComponentResources()'?`); it('should throw if TestBed.overridePipe is called after TestBed initialization', () => { @Pipe({ name: 'myPipe', - standalone: false, }) class MyPipe { transform(value: any) { @@ -1186,9 +1183,7 @@ Did you run and wait for 'resolveComponentResources()'?`); it('should throw if TestBed.overrideTemplateUsingTestingModule is called after TestBed initialization', () => { @Component({ - selector: 'comp', template: 'a', - standalone: false, }) class MyComponent {} diff --git a/packages/platform-browser/testing/BUILD.bazel b/packages/platform-browser/testing/BUILD.bazel index 5bc9c4457c35..fec290e4d33d 100644 --- a/packages/platform-browser/testing/BUILD.bazel +++ b/packages/platform-browser/testing/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "generate_api_docs", "ng_project") +load("//tools:defaults.bzl", "ng_project") package(default_visibility = ["//visibility:public"]) @@ -24,13 +24,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "platform-browser_testing_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_name = "@angular/platform-browser/testing", -) diff --git a/packages/platform-browser/testing/src/browser.ts b/packages/platform-browser/testing/src/browser.ts index b7ef62eb1e34..dea04ff446b9 100644 --- a/packages/platform-browser/testing/src/browser.ts +++ b/packages/platform-browser/testing/src/browser.ts @@ -6,7 +6,14 @@ * found in the LICENSE file at https://angular.dev/license */ import {ɵprovideFakePlatformNavigation} from '@angular/common/testing'; -import {APP_ID, createPlatformFactory, NgModule, StaticProvider, PlatformRef} from '@angular/core'; +import { + APP_ID, + createPlatformFactory, + NgModule, + StaticProvider, + PlatformRef, + ɵIS_TESTING as IS_TESTING, +} from '@angular/core'; import {TestComponentRenderer} from '@angular/core/testing'; // g3-only import {BrowserModule, platformBrowser} from '@angular/platform-browser'; import {BrowserModule, platformBrowser} from '../../index'; // 3p-only @@ -29,6 +36,7 @@ export const platformBrowserTesting: (extraProviders?: StaticProvider[]) => Plat exports: [BrowserModule], providers: [ {provide: APP_ID, useValue: 'a'}, + {provide: IS_TESTING, useValue: true}, ɵprovideFakePlatformNavigation(), {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer}, ], diff --git a/packages/platform-server/BUILD.bazel b/packages/platform-server/BUILD.bazel index e63646889811..5e74c6a07912 100644 --- a/packages/platform-server/BUILD.bazel +++ b/packages/platform-server/BUILD.bazel @@ -1,5 +1,5 @@ load("@npm//:defs.bzl", "npm_link_all_packages") -load("//tools:defaults.bzl", "api_golden_test_npm_package", "generate_api_docs", "ng_package", "ng_project", "tsec_test") +load("//tools:defaults.bzl", "api_golden_test_npm_package", "ng_package", "ng_project", "tsec_test") package(default_visibility = ["//visibility:public"]) @@ -49,7 +49,7 @@ ng_package( ], substitutions = { # Needed for the FESM files. - "\\./(.+)/third_party/domino/bundled-domino": "../third_party/domino/bundled-domino.mjs", + "(? { applyShims(); expect(global).toEqual(jasmine.objectContaining(domino.impl)); }); - - it('should define `KeyboardEvent` on `global`', () => { - expect((global as any).KeyboardEvent).not.toBe((domino.impl as any).Event); - - applyShims(); - expect((global as any).KeyboardEvent).toBe((domino.impl as any).Event); - }); }); diff --git a/packages/platform-server/src/domino_adapter.ts b/packages/platform-server/src/domino_adapter.ts index bf19662f411e..77bc4dac978b 100644 --- a/packages/platform-server/src/domino_adapter.ts +++ b/packages/platform-server/src/domino_adapter.ts @@ -19,7 +19,6 @@ export function setDomTypes() { // Make all Domino types available in the global env. // NB: Any changes here should also be done in `packages/platform-server/init/src/shims.ts`. Object.assign(globalThis, domino.impl); - (globalThis as any)['KeyboardEvent'] = domino.impl.Event; } /** diff --git a/packages/platform-server/src/http.ts b/packages/platform-server/src/http.ts index 6a0e8c06a60a..16e0eb4994ea 100644 --- a/packages/platform-server/src/http.ts +++ b/packages/platform-server/src/http.ts @@ -17,7 +17,7 @@ import {inject, Injectable, Provider, ɵRuntimeError as RuntimeError} from '@ang import {Observable} from 'rxjs'; import {RuntimeErrorCode} from './errors'; -import {resolveUrl} from './url'; +import {HTTP_OR_HTTPS_NO_AUTHORITY_REGEXP, resolveUrl} from './url'; @Injectable() /** @@ -73,9 +73,8 @@ function relativeUrlsTransformerInterceptorFn( request: HttpRequest, next: HttpHandlerFn, ): Observable> { - const trimmedUrl = request.url.trim(); - if (URL_SCHEMA_REGEXP.test(trimmedUrl)) { - // URLs with a schema should be left unchanged. + if (URL_SCHEMA_REGEXP.test(request.url) && !HTTP_OR_HTTPS_NO_AUTHORITY_REGEXP.test(request.url)) { + // URLs with a schema (and an authority for http(s)) should be left unchanged. return next(request); } diff --git a/packages/platform-server/src/url.ts b/packages/platform-server/src/url.ts index d0639980db84..0f3cd3335dfd 100644 --- a/packages/platform-server/src/url.ts +++ b/packages/platform-server/src/url.ts @@ -13,7 +13,14 @@ import {RuntimeErrorCode} from './errors'; /** * Matches http: or https: */ -const HTTP_OR_HTTPS_PROTOCOL_REGEX = /^https?:/i; +const HTTP_OR_HTTPS_PROTOCOL_REGEXP = /^https?:/i; + +/** + * Matches an HTTP or HTTPS URL that does not have an authority (i.e. missing `//` or `\\`). + * In the WHATWG standard, when resolved against a base of the same scheme, these URLs are relative. + * @internal + */ +export const HTTP_OR_HTTPS_NO_AUTHORITY_REGEXP = /^https?:(?![/\\]{2})/i; /** * Options for {@link resolveUrl}. @@ -58,13 +65,20 @@ export function resolveUrl( } // Fast-path: if the URL is a valid, standard absolute URL, parse and return it immediately. + // URLs with no authority (e.g. `http:/path` or `http:path`) must be resolved against the origin when one is provided. let resolved: URL | undefined; - try { - resolved = new URL(urlStr); - } catch {} + if (!originUrl || !HTTP_OR_HTTPS_NO_AUTHORITY_REGEXP.test(urlStr)) { + try { + resolved = new URL(urlStr); + } catch {} + } const {allowProtocolRelative = false, allowOriginChange = true} = options; if (resolved) { + if (isDisallowedProtocolRelative(resolved, allowProtocolRelative)) { + throwProtocolRelativeUrlError(urlStr); + } + if (originUrl && !isSafeOriginChange(resolved, originUrl, urlStr, allowOriginChange)) { throwSuspiciousUrlError(urlStr); } @@ -92,12 +106,7 @@ export function resolveUrl( // and we are configured to allow and preserve standard cross-origin protocol-relative requests. if (urlStr.startsWith('//')) { if (!allowProtocolRelative) { - throw new RuntimeError( - RuntimeErrorCode.PROTOCOL_RELATIVE_URL_NOT_ALLOWED, - typeof ngDevMode === 'undefined' || ngDevMode - ? `Protocol relative URLs are not allowed in this context. URL: ${urlStr}` - : urlStr, - ); + throwProtocolRelativeUrlError(urlStr); } return new URL(urlStr, origin); @@ -105,6 +114,10 @@ export function resolveUrl( resolved = new URL(urlStr, origin); + if (isDisallowedProtocolRelative(resolved, allowProtocolRelative)) { + throwProtocolRelativeUrlError(urlStr); + } + if (!isSafeOriginChange(resolved, originUrl, urlStr, allowOriginChange)) { throwSuspiciousUrlError(urlStr); } @@ -112,6 +125,29 @@ export function resolveUrl( return resolved; } +/** + * Checks if the resolved URL has a disallowed protocol-relative path. + * + * @param resolved The resolved URL. + * @param allowProtocolRelative Whether protocol-relative URLs are allowed. + * @returns True if the URL has a disallowed protocol-relative path, false otherwise. + */ +function isDisallowedProtocolRelative(resolved: URL, allowProtocolRelative: boolean): boolean { + return !allowProtocolRelative && resolved.pathname.startsWith('//'); +} + +/** + * Throws a protocol-relative URL error indicating that protocol-relative URLs are not allowed. + */ +function throwProtocolRelativeUrlError(urlStr: string): never { + throw new RuntimeError( + RuntimeErrorCode.PROTOCOL_RELATIVE_URL_NOT_ALLOWED, + typeof ngDevMode === 'undefined' || ngDevMode + ? `Protocol relative URLs are not allowed in this context. URL: ${urlStr}` + : urlStr, + ); +} + /** * Throws a suspicious URL error indicating a security bypass attempt. */ @@ -147,5 +183,7 @@ function isSafeOriginChange( return false; } - return HTTP_OR_HTTPS_PROTOCOL_REGEX.test(urlStr); + return ( + HTTP_OR_HTTPS_PROTOCOL_REGEXP.test(urlStr) && !HTTP_OR_HTTPS_NO_AUTHORITY_REGEXP.test(urlStr) + ); } diff --git a/packages/platform-server/test/event_replay_spec.ts b/packages/platform-server/test/event_replay_spec.ts index 321ce1d55922..cb55e07bc623 100644 --- a/packages/platform-server/test/event_replay_spec.ts +++ b/packages/platform-server/test/event_replay_spec.ts @@ -97,6 +97,7 @@ describe('event replay', () => { @Component({ selector: 'app', + template: ``, }) class AppComponent { @@ -142,6 +143,7 @@ describe('event replay', () => { @Component({ selector: 'app', + template: ` `, }) class AppComponent { @@ -174,6 +176,7 @@ describe('event replay', () => { @Component({ selector: 'app-2', + template: ` `, }) class AppComponent_2 { @@ -223,6 +226,7 @@ describe('event replay', () => { it('should cleanup `window._ejsas[appId]` once app is destroyed', async () => { @Component({ selector: 'app', + template: ` `, }) class AppComponent { @@ -259,6 +263,154 @@ describe('event replay', () => { expect(window._ejsas![appId]).toBeUndefined(); }); + it('should stop queueing events in the early event contract once the app is stable', async () => { + @Component({ + selector: 'app', + template: ` `, + }) + class AppComponent { + onClick() {} + onFocus() {} + } + + const hydrationFeatures = () => [withEventReplay()]; + const html = await ssr(AppComponent, {hydrationFeatures}); + const ssrContents = getAppContents(html); + const doc = getDocument(); + + prepareEnvironment(doc, ssrContents); + resetTViewsFor(AppComponent); + const earlyJsactionData = window._ejsas!['ng']!; + + const appRef = await hydrate(doc, AppComponent, {hydrationFeatures}); + await appRef.whenStable(); + + const btn = doc.getElementById('btn')!; + btn.click(); + btn.dispatchEvent(new Event('focus')); + + expect(earlyJsactionData.q.length).toBe(0); + }); + + it('should stop queueing events in the early event contract when the app is destroyed before it is stable', async () => { + @Component({ + selector: 'app', + template: ` `, + }) + class AppComponent { + constructor() { + if (isPlatformBrowser(inject(PLATFORM_ID))) { + inject(PendingTasks).add(); + } + } + onClick() {} + onFocus() {} + } + + const hydrationFeatures = () => [withEventReplay()]; + const html = await ssr(AppComponent, {hydrationFeatures}); + const ssrContents = getAppContents(html); + const doc = getDocument(); + + prepareEnvironment(doc, ssrContents); + resetTViewsFor(AppComponent); + const earlyJsactionData = window._ejsas!['ng']!; + + const appRef = await hydrate(doc, AppComponent, {hydrationFeatures}); + globalThis['ngServerMode'] = false; + appRef.destroy(); + globalThis['ngServerMode'] = undefined; + + doc.body.click(); + doc.body.dispatchEvent(new Event('focus')); + + expect(earlyJsactionData.q.length).toBe(0); + }); + + // Two apps with the same APP_ID both see `_ejsas[appId]` as set, so both enable event + // replay. The first one to stabilize reads it and clears it. The second one used to crash + // instead of just skipping replay. + it('should not crash initEventReplay when two apps share the same APP_ID', async () => { + const appId = 'shared-app-id'; + + @Component({ + selector: 'app', + template: ` `, + }) + class AppComponent_1 { + onClick() {} + } + + @Component({ + selector: 'app-2', + template: ` `, + }) + class AppComponent_2 { + onClick() {} + } + + const hydrationFeatures = () => [withEventReplay()]; + const docHtml = ` + + + + ${EVENT_DISPATCH_SCRIPT} + + + + + `; + const html = await ssr(AppComponent_1, { + hydrationFeatures, + doc: docHtml, + envProviders: [{provide: APP_ID, useValue: appId}], + }); + const ssrContents = getAppContents(html); + const doc = getDocument(); + + prepareEnvironment(doc, ssrContents); + resetTViewsFor(AppComponent_1); + + const recorder: string[] = []; + spyOn(console, 'warn').and.callFake((message: string) => { + recorder.push(message); + }); + + const onUnhandledRejection = (reason: unknown) => { + recorder.push(`rejected: ${reason}`); + }; + process.on('unhandledRejection', onUnhandledRejection); + try { + // Start both apps before awaiting either one. If we await the first one alone, it + // already reaches stability and clears `_ejsas[appId]`, so app 2 never sees the bug. + const bootstrap1 = hydrate(doc, AppComponent_1, { + hydrationFeatures, + envProviders: [{provide: APP_ID, useValue: appId}], + }); + const bootstrap2 = bootstrapApplication(AppComponent_2, { + providers: [provideClientHydration(withEventReplay()), {provide: APP_ID, useValue: appId}], + }); + const [appRef1, appRef2] = await Promise.all([bootstrap1, bootstrap2]); + + await appRef1.whenStable(); + await appRef2.whenStable(); + // Let the internal `whenStable().then(...)` callbacks run before we check for a + // rejection. + await Promise.resolve(); + await Promise.resolve(); + } finally { + process.off('unhandledRejection', onUnhandledRejection); + } + + // Recorder without the guard: + // ["rejected: TypeError: Cannot read properties of undefined (reading 'c')"] + expect(recorder).toEqual([ + `NG0511: Event replay was skipped for APP_ID "${appId}". Another application on this ` + + `page already consumed the early event contract for this APP_ID. APP_ID must be ` + + `unique per application when multiple Angular applications share a page.`, + ]); + }); + it('should route to the appropriate component with content projection', async () => { const outerOnClickSpy = jasmine.createSpy(); const innerOnClickSpy = jasmine.createSpy(); @@ -429,6 +581,7 @@ describe('event replay', () => { it('should remove jsaction attributes, but continue listening to events.', async () => { @Component({ selector: 'app', + template: `
    @@ -483,6 +636,7 @@ describe('event replay', () => { @Component({ selector: 'app', + template: ` `, }) class AppComponent { @@ -539,6 +693,7 @@ describe('event replay', () => { const onClickSpy = jasmine.createSpy(); @Component({ selector: 'app', + template: `
    @@ -570,6 +725,7 @@ describe('event replay', () => { it('should not propagate events if stopPropagation is called', async () => { @Component({ selector: 'app', + template: `
    @@ -603,6 +759,7 @@ describe('event replay', () => { let latestCurrentTarget: EventTarget | null = null; @Component({ selector: 'app', + template: `
    @@ -644,6 +801,7 @@ describe('event replay', () => { it('should not be present on a page when hydration is disabled', async () => { @Component({ selector: 'app', + template: '', }) class SimpleComponent { @@ -660,6 +818,7 @@ describe('event replay', () => { it('should not be present on a page if there are no events to replay', async () => { @Component({ selector: 'app', + template: 'Some text', }) class SimpleComponent {} @@ -687,6 +846,7 @@ describe('event replay', () => { it('should not replay mouse events', async () => { @Component({ selector: 'app', + template: '
    ', }) class SimpleComponent { @@ -704,6 +864,7 @@ describe('event replay', () => { it('should not be present on a page where event replay is not enabled', async () => { @Component({ selector: 'app', + template: '', }) class SimpleComponent { @@ -725,6 +886,7 @@ describe('event replay', () => { it('should be retained if there are events to replay', async () => { @Component({ selector: 'app', + template: '', }) class SimpleComponent { @@ -753,6 +915,7 @@ describe('event replay', () => { it('should be empty on init', async () => { @Component({ selector: 'app', + template: '', }) class SimpleComponent { @@ -773,6 +936,7 @@ describe('event replay', () => { it('should be different for different apps', async () => { @Component({ selector: 'app', + template: '', }) class SimpleComponent { diff --git a/packages/platform-server/test/full_app_hydration_spec.ts b/packages/platform-server/test/full_app_hydration_spec.ts index b5ca863cd0f0..7589f5075785 100644 --- a/packages/platform-server/test/full_app_hydration_spec.ts +++ b/packages/platform-server/test/full_app_hydration_spec.ts @@ -26,7 +26,6 @@ import {computeMsgId} from '@angular/compiler'; import { afterEveryRender, ApplicationRef, - ChangeDetectionStrategy, ChangeDetectorRef, ɵCLIENT_RENDER_MODE_FLAG as CLIENT_RENDER_MODE_FLAG, Component, @@ -50,6 +49,7 @@ import { QueryList, signal, TemplateRef, + Type, ViewChild, ViewContainerRef, ViewEncapsulation, @@ -215,6 +215,7 @@ describe('platform-server full application hydration integration', () => { it('should serialize input values correctly for both null and normal non-empty values during SSR', async () => { @Component({ selector: 'app', + template: ` @@ -583,6 +584,7 @@ describe('platform-server full application hydration integration', () => { it('should support element containers with *ngIf', async () => { @Component({ selector: 'cmp', + template: 'Hi!', }) class Cmp {} @@ -956,6 +958,7 @@ describe('platform-server full application hydration integration', () => { it('should support hydration on nodes', async () => { @Component({ selector: 'nested-cmp', + imports: [NgIf], template: `

    Hello World!

    `, }) @@ -991,6 +994,7 @@ describe('platform-server full application hydration integration', () => { it('should support hydration on element nodes', async () => { @Component({ selector: 'nested-cmp', + imports: [NgIf], template: `

    Hello World!

    `, }) @@ -1026,6 +1030,7 @@ describe('platform-server full application hydration integration', () => { it('should support hydration for nested components', async () => { @Component({ selector: 'nested-cmp', + imports: [NgIf], template: `

    Hello World!

    `, }) @@ -1033,6 +1038,7 @@ describe('platform-server full application hydration integration', () => { @Component({ selector: 'other-nested-cmp', + imports: [NgComponentOutlet], template: ` `, }) @@ -1291,15 +1297,17 @@ describe('platform-server full application hydration integration', () => { it('should hydrate dynamically created components using root component as an anchor (with nested components)', async () => { @Component({ - imports: [CommonModule], selector: 'nested-dynamic-a', + + imports: [CommonModule], template: `

    NestedDynamicComponentA

    `, }) class NestedDynamicComponentA {} @Component({ - imports: [CommonModule], selector: 'nested-dynamic-b', + + imports: [CommonModule], template: `

    NestedDynamicComponentB

    `, }) class NestedDynamicComponentB {} @@ -1396,6 +1404,7 @@ describe('platform-server full application hydration integration', () => { async () => { @Component({ selector: 'another-dynamic', + template: `This is a content of another dynamic component.`, }) class AnotherDynamicComponent { @@ -1695,6 +1704,7 @@ describe('platform-server full application hydration integration', () => { it('should append skip hydration flag if component uses i18n blocks and no `withI18nSupport()` call present', async () => { @Component({ selector: 'app', + template: '
    Hi!
    ', }) class SimpleComponent { @@ -1978,7 +1988,7 @@ describe('platform-server full application hydration integration', () => { const content = clientRootNode.querySelector('app-content'); expect(content.innerHTML).toBe( - 'Start Inner Start Hello World! Inner End Middle Span End', + 'Start Inner Start Hello World! Inner End Middle Span End', ); }); @@ -2030,7 +2040,7 @@ describe('platform-server full application hydration integration', () => { const content = clientRootNode.querySelector('app-content-outer'); expect(content.innerHTML).toBe( - 'Start Outer Start Span Hello World! Outer End Middle End', + 'Start Outer Start Span Hello World! Outer End Middle End', ); }); @@ -2154,6 +2164,7 @@ describe('platform-server full application hydration integration', () => { it('should support using translated views as view container anchors', async () => { @Component({ selector: 'dynamic-cmp', + template: `DynamicComponent content`, }) class DynamicComponent {} @@ -2267,7 +2278,7 @@ describe('platform-server full application hydration integration', () => { verifyClientAndSSRContentsMatch(ssrContents, clientRootNode); const div = clientRootNode.querySelector('div'); - expect(div.innerHTML).toMatch(/Some strong<\/strong> content/); + expect(div.innerHTML).toMatch(/Some strong<\/strong> content/); }); it('should support translations that remove elements', async () => { @@ -2432,6 +2443,48 @@ describe('platform-server full application hydration integration', () => { expect(clientRootNode.querySelector('#four').textContent).toBe(' two-two '); }); + it('should hydrate ICUs in components that share serialized hydration data', async () => { + @Component({ + selector: 'simple-component', + template: `
    + {count, plural, =1 {one item} other {{{ count }} items}} +
    `, + }) + class SimpleComponent { + @Input() count!: number; + } + + @Component({ + imports: [SimpleComponent], + selector: 'app', + template: ` + + + `, + }) + class AppComponent {} + + const hydrationFeatures = () => [withI18nSupport()]; + const html = await ssr(AppComponent, {hydrationFeatures}); + const ssrContents = getAppContents(html); + expect(ssrContents).toContain('(appRef); + appRef.tick(); + + const clientRootNode = compRef.location.nativeElement; + verifyAllNodesClaimedForHydration(clientRootNode); + verifyClientAndSSRContentsMatch(ssrContents, clientRootNode); + + expect(clientRootNode.querySelector('#one').textContent).toBe(' 21 items '); + expect(clientRootNode.querySelector('#two').textContent).toBe(' 19 items '); + }); + it('should hydrate containers', async () => { @Component({ selector: 'app', @@ -3515,6 +3568,7 @@ describe('platform-server full application hydration integration', () => { async () => { @Component({ selector: 'dynamic-cmp', + template: `DynamicComponent content`, }) class DynamicComponent {} @@ -5606,6 +5660,7 @@ describe('platform-server full application hydration integration', () => { it('should support projecting contents outside of a current host element', async () => { @Component({ selector: 'dynamic-cmp', + template: `
    `, }) class DynamicComponent { @@ -5787,6 +5842,7 @@ describe('platform-server full application hydration integration', () => { @Component({ selector: 'app', + imports: [NgIf, NgFor], template: `
    @@ -5838,6 +5894,7 @@ describe('platform-server full application hydration integration', () => { @Component({ selector: 'app', + imports: [NgIf, NgFor], template: `
    @@ -5893,6 +5950,7 @@ describe('platform-server full application hydration integration', () => { @Component({ selector: 'app', + template: `
    `, }) class SimpleComponent { @@ -5917,7 +5975,6 @@ describe('platform-server full application hydration integration', () => { Project?: {{ project ? 'yes' : 'no' }} `, - changeDetection: ChangeDetectionStrategy.Eager, }) class ProjectorCmp { @Input() project: boolean = false; @@ -5927,15 +5984,14 @@ describe('platform-server full application hydration integration', () => { imports: [ProjectorCmp], selector: 'app', template: ` - +

    This node is not projected.

    This node is not projected as well.

    `, - changeDetection: ChangeDetectionStrategy.Eager, }) class SimpleComponent { - project = false; + project = signal(false); } const html = await ssr(SimpleComponent); @@ -5957,12 +6013,12 @@ describe('platform-server full application hydration integration', () => { let h2 = clientRootNode.querySelector('h2'); let span = clientRootNode.querySelector('span'); - expect(h1).not.toBeDefined(); - expect(h2).not.toBeDefined(); + expect(h1).toBeNull(); + expect(h2).toBeNull(); expect(span.textContent).toBe('no'); // Flip the flag to enable content projection. - compRef.instance.project = true; + compRef.instance.project.set(true); compRef.changeDetectorRef.detectChanges(); h1 = clientRootNode.querySelector('h1'); @@ -5982,7 +6038,6 @@ describe('platform-server full application hydration integration', () => { Project?: {{ project ? 'yes' : 'no' }} `, - changeDetection: ChangeDetectionStrategy.Eager, }) class ProjectorCmp { @Input() project: boolean = false; @@ -5992,15 +6047,14 @@ describe('platform-server full application hydration integration', () => { imports: [ProjectorCmp], selector: 'app', template: ` - +

    This node is projected.

    This node is projected as well.

    `, - changeDetection: ChangeDetectionStrategy.Eager, }) class SimpleComponent { - project = true; + project = signal(true); } const html = await ssr(SimpleComponent); @@ -6027,15 +6081,15 @@ describe('platform-server full application hydration integration', () => { expect(span.textContent).toBe('yes'); // Flip the flag to disable content projection. - compRef.instance.project = false; + compRef.instance.project.set(false); compRef.changeDetectorRef.detectChanges(); h1 = clientRootNode.querySelector('h1'); h2 = clientRootNode.querySelector('h2'); span = clientRootNode.querySelector('span'); - expect(h1).not.toBeDefined(); - expect(h2).not.toBeDefined(); + expect(h1).toBeNull(); + expect(h2).toBeNull(); expect(span.textContent).toBe('no'); }); @@ -6382,9 +6436,10 @@ describe('platform-server full application hydration integration', () => { } catch (e: unknown) { const error = e as Error; // This is the fixed behavior: a coded NG0502 RuntimeError, not a raw - // TypeError. + // TypeError. The descriptive message (naming the enclosing host element) is + // dev-mode only, so in production the error carries just the error code. expect(error instanceof TypeError).toBe(false); - expect(error.message).toBe('NG0502: '); + expect(error.message).toBe('NG0502'); expect(error.message).not.toContain("reading 'nodeType'"); } finally { (globalThis as any).ngDevMode = previousNgDevMode; @@ -6460,6 +6515,57 @@ describe('platform-server full application hydration integration', () => { }, ); + describe('stripped anchor comment in production mode', () => { + async function getHydrationError(template: string) { + @Component({selector: 'app', template}) + class SimpleComponent {} + + const html = await ssr(SimpleComponent); + const htmlWithoutAnchor = html.replace( + /(]*>)(.*?)(<\/main>)/s, + (_, start, content, end) => start + content.replace(//gs, '') + end, + ); + expect(htmlWithoutAnchor).not.toBe(html); + + resetTViewsFor(SimpleComponent); + + const previousNgDevMode = (globalThis as any).ngDevMode; + (globalThis as any).ngDevMode = false; + try { + return await prepareEnvironmentAndHydrate(doc, htmlWithoutAnchor, SimpleComponent, { + envProviders: [withNoopErrorHandler()], + }).then( + () => null, + (e: Error) => e, + ); + } finally { + (globalThis as any).ngDevMode = previousNgDevMode; + } + } + + it('should throw NG0502 for an @if with a rendered view', async () => { + const error = await getHydrationError('
    @if (true) {text}
    '); + expect(error?.message).toBe('NG0502'); + }); + + it('should throw NG0502 for an @if with no rendered view', async () => { + const error = await getHydrationError('
    @if (false) {text}
    '); + expect(error?.message).toBe('NG0502'); + }); + + it('should throw NG0502 for an with a child', async () => { + const error = await getHydrationError( + '
    text
    ', + ); + expect(error?.message).toBe('NG0502'); + }); + + it('should throw NG0502 for an empty ', async () => { + const error = await getHydrationError('
    '); + expect(error?.message).toBe('NG0502'); + }); + }); + it( 'should throw a coded RuntimeError, not a raw TypeError, when an @if branch is ' + 're-entered after a hydration mismatch corrupted its template on the first pass', @@ -6537,6 +6643,7 @@ describe('platform-server full application hydration integration', () => { it('should if there are any third-party scripts that manipulate the DOM', async () => { @Component({ selector: 'app', + template: `
    Original content
    `, }) class SimpleComponent { @@ -6871,6 +6978,7 @@ describe('platform-server full application hydration integration', () => { @Component({ selector: 'app', + imports: [CommonModule, ProjectorComponent], template: ` @@ -7059,6 +7167,7 @@ describe('platform-server full application hydration integration', () => { @Component({ selector: 'app', + template: `Hi!`, }) class SimpleComponent { @@ -7105,6 +7214,239 @@ describe('platform-server full application hydration integration', () => { }); }); + describe('DOM clobbering', () => { + function emulateFormDomClobbering(form: HTMLFormElement): () => void { + const clobbered = new Set(); + for (const control of Array.from(form.querySelectorAll('[name],[id]'))) { + for (const key of [control.getAttribute('name'), control.getAttribute('id')]) { + if (key && !clobbered.has(key)) { + clobbered.add(key); + Object.defineProperty(form, key, {value: control, configurable: true}); + } + } + } + return () => { + for (const key of clobbered) { + delete (form as unknown as Record)[key]; + } + }; + } + + /** Undoes the currently installed DOM clobbering emulation, if any. */ + let restoreDomClobbering: (() => void) | null = null; + + afterEach(() => { + restoreDomClobbering?.(); + restoreDomClobbering = null; + }); + + function emulateFormDomClobberingOnClient(): void { + if (isPlatformBrowser(inject(PLATFORM_ID))) { + restoreDomClobbering = emulateFormDomClobbering(inject(DOCUMENT).querySelector('form')!); + } + } + + async function hydrateWithFormClobbering( + html: string, + component: Type, + ): Promise { + const appRef = await prepareEnvironmentAndHydrate(doc, html, component); + appRef.tick(); + restoreDomClobbering?.(); + restoreDomClobbering = null; + return appRef; + } + + it('should hydrate correctly when a form control has a non-clobbering name', async () => { + @Component({ + selector: 'app', + template: ` +
    + {{ label() }} + +
    {{ help() }}
    +
    + `, + }) + class SimpleComponent { + label = signal('Label'); + help = signal('Help text'); + key = 'username'; + + constructor() { + emulateFormDomClobberingOnClient(); + } + } + + const html = await ssr(SimpleComponent); + const ssrContents = getAppContents(html); + + expect(ssrContents).toContain(''); + + resetTViewsFor(SimpleComponent); + + const appRef = await hydrateWithFormClobbering(html, SimpleComponent); + const compRef = getComponentRef(appRef); + + const clientRootNode = compRef.location.nativeElement; + verifyAllNodesClaimedForHydration(clientRootNode); + verifyClientAndSSRContentsMatch(ssrContents, clientRootNode); + + compRef.instance.label.set('Updated label'); + compRef.instance.help.set('Updated help'); + appRef.tick(); + + expect(clientRootNode.querySelector('span').textContent).toBe('Updated label'); + expect(clientRootNode.querySelector('div').textContent).toBe('Updated help'); + }); + + async function expectHydrationToFailWithClobbering( + component: Type, + expectedSsrContent: string, + ): Promise { + const html = await ssr(component); + const ssrContents = getAppContents(html); + + expect(ssrContents).toContain(' { + @Component({ + selector: 'app', + template: ` +
    + {{ label }} +
    +
    {{ help }}
    +
    + `, + }) + class SimpleComponent { + label = 'Label'; + help = 'Help text'; + key = 'firstChild'; + + constructor() { + emulateFormDomClobberingOnClient(); + } + } + + const error = await expectHydrationToFailWithClobbering( + SimpleComponent, + '', + ); + expect(error.message).toBe( + 'Action failed because the element is clobbered: ', + ); + }); + + it('should throw when a form control clobbers `form.firstChild` in production mode (ngDevMode off)', async () => { + @Component({ + selector: 'app', + template: ` +
    + {{ label }} +
    +
    {{ help }}
    +
    + `, + }) + class SimpleComponent { + label = 'Label'; + help = 'Help text'; + key = 'firstChild'; + + constructor() { + emulateFormDomClobberingOnClient(); + } + } + + const previousNgDevMode = (globalThis as any).ngDevMode; + (globalThis as any).ngDevMode = false; + try { + const error = await expectHydrationToFailWithClobbering( + SimpleComponent, + '', + ); + expect(error instanceof TypeError).toBe(false); + expect(error.message).toBe( + 'Action failed because the element is clobbered: ', + ); + } finally { + (globalThis as any).ngDevMode = previousNgDevMode; + } + }); + + it('should throw when a form control clobbers `form.nextSibling`', async () => { + @Component({ + selector: 'app', + template: ` +
    + +
    +
    {{ help }}
    + `, + }) + class SimpleComponent { + help = 'Help text'; + key = 'nextSibling'; + + constructor() { + emulateFormDomClobberingOnClient(); + } + } + + const error = await expectHydrationToFailWithClobbering( + SimpleComponent, + '', + ); + expect(error.message).toBe( + 'Action failed because the element is clobbered: ', + ); + }); + + it('should throw when a form control clobbers `form.hasAttribute`', async () => { + @Component({ + selector: 'app', + template: ` +
    + +
    + `, + }) + class SimpleComponent { + key = 'hasAttribute'; + + constructor() { + emulateFormDomClobberingOnClient(); + } + } + + const error = await expectHydrationToFailWithClobbering( + SimpleComponent, + '', + ); + expect(error instanceof TypeError).toBe(false); + expect(error.message).toBe( + 'Action failed because the element is clobbered: ', + ); + }); + }); + describe('@if', () => { it('should work with `if`s that have different value on the client and on the server', async () => { @Component({ @@ -7230,16 +7572,15 @@ describe('platform-server full application hydration integration', () => { @Component({ selector: 'app', template: ` - @if (conditionA) { + @if (conditionA()) { if block } @else { else block } `, - changeDetection: ChangeDetectionStrategy.Eager, }) class SimpleComponent { - conditionA = false; + conditionA = signal(false); } const html = await ssr(SimpleComponent); @@ -7267,7 +7608,7 @@ describe('platform-server full application hydration integration', () => { // Verify that switching `if` condition results // in an update to the DOM which was previously hydrated. - compRef.instance.conditionA = true; + compRef.instance.conditionA.set(true); compRef.changeDetectorRef.detectChanges(); expect(clientRootNode.innerHTML).not.toContain(`else block`); @@ -7699,13 +8040,12 @@ describe('platform-server full application hydration integration', () => { @Component({ selector: 'app', template: ` - @let greeting = name + '!!!'; + @let greeting = name() + '!!!'; Hello, {{ greeting }} `, - changeDetection: ChangeDetectionStrategy.Eager, }) class SimpleComponent { - name = 'Frodo'; + name = signal('Frodo'); } const html = await ssr(SimpleComponent); @@ -7725,7 +8065,7 @@ describe('platform-server full application hydration integration', () => { verifyClientAndSSRContentsMatch(ssrContents, clientRootNode); expect(clientRootNode.textContent).toContain('Hello, Frodo!!!'); - compRef.instance.name = 'Bilbo'; + compRef.instance.name.set('Bilbo'); compRef.changeDetectorRef.detectChanges(); expect(clientRootNode.textContent).toContain('Hello, Bilbo!!!'); }); @@ -7734,15 +8074,14 @@ describe('platform-server full application hydration integration', () => { @Component({ selector: 'app', template: ` - @let plusOne = value + 1; + @let plusOne = value() + 1; @let plusTwo = plusOne + 1; @let result = plusTwo + 1; Result: {{ result }} `, - changeDetection: ChangeDetectionStrategy.Eager, }) class SimpleComponent { - value = 1; + value = signal(1); } const html = await ssr(SimpleComponent); @@ -7762,7 +8101,7 @@ describe('platform-server full application hydration integration', () => { verifyClientAndSSRContentsMatch(ssrContents, clientRootNode); expect(clientRootNode.textContent).toContain('Result: 4'); - compRef.instance.value = 2; + compRef.instance.value.set(2); compRef.changeDetectorRef.detectChanges(); expect(clientRootNode.textContent).toContain('Result: 5'); @@ -7784,13 +8123,12 @@ describe('platform-server full application hydration integration', () => { selector: 'app', imports: [DoublePipe], template: ` - @let result = value | double; + @let result = value() | double; Result: {{ result }} `, - changeDetection: ChangeDetectionStrategy.Eager, }) class SimpleComponent { - value = 1; + value = signal(1); } const html = await ssr(SimpleComponent); @@ -7810,7 +8148,7 @@ describe('platform-server full application hydration integration', () => { verifyClientAndSSRContentsMatch(ssrContents, clientRootNode); expect(clientRootNode.textContent).toContain('Result: 2'); - compRef.instance.value = 2; + compRef.instance.value.set(2); compRef.changeDetectorRef.detectChanges(); expect(clientRootNode.textContent).toContain('Result: 4'); }); @@ -7827,12 +8165,11 @@ describe('platform-server full application hydration integration', () => { @let two = one + 1; } - @let one = value + 1; + @let one = value() + 1; `, - changeDetection: ChangeDetectionStrategy.Eager, }) class SimpleComponent { - value = 0; + value = signal(0); } const html = await ssr(SimpleComponent); @@ -7852,7 +8189,7 @@ describe('platform-server full application hydration integration', () => { verifyClientAndSSRContentsMatch(ssrContents, clientRootNode); expect(clientRootNode.textContent).toContain('The result is 3'); - compRef.instance.value = 2; + compRef.instance.value.set(2); compRef.changeDetectorRef.detectChanges(); expect(clientRootNode.textContent).toContain('The result is 5'); }); @@ -8039,6 +8376,143 @@ describe('platform-server full application hydration integration', () => { }); }); + describe('@boundary', () => { + it('should hydrate successfully when no error occurs', async () => { + const doc = TestBed.inject(DOCUMENT); + @Component({ + selector: 'app', + template: ` + @boundary { + Hello, {{ name() }} + } @error { + Error occurred! + } + `, + }) + class SimpleComponent { + name = signal('Frodo'); + } + + const html = await ssr(SimpleComponent); + const ssrContents = getAppContents(html); + + expect(ssrContents).toContain('(appRef); + appRef.tick(); + + const clientRootNode = compRef.location.nativeElement; + verifyAllNodesClaimedForHydration(clientRootNode); + verifyClientAndSSRContentsMatch(ssrContents, clientRootNode); + expect(clientRootNode.textContent).toContain('Hello, Frodo'); + + compRef.instance.name.set('Bilbo'); + compRef.changeDetectorRef.detectChanges(); + expect(clientRootNode.textContent).toContain('Hello, Bilbo'); + }); + + it('should render fallback during SSR and recover to primary during client hydration if error is resolved', async () => { + const doc = TestBed.inject(DOCUMENT); + @Component({ + selector: 'child', + template: 'Child rendering...', + }) + class ChildComponent { + @Input() fail = false; + ngOnInit() { + if (this.fail) { + throw new Error('Server error'); + } + } + } + + @Component({ + selector: 'app', + imports: [ChildComponent], + template: ` + @boundary { + + } @error { + Error occurred on server! + } + `, + }) + class SimpleComponent { + fail = isPlatformServer(inject(PLATFORM_ID)); + } + + // 1. SSR where an error occurs + const html = await ssr(SimpleComponent); + const ssrContents = getAppContents(html); + + // Ensure server rendered the fallback + expect(ssrContents).toContain('Error occurred on server!'); + expect(ssrContents).not.toContain('Child rendering...'); + + // 2. Hydration where error does NOT occur (fail is false on client) + const appRef = await prepareEnvironmentAndHydrate(doc, html, SimpleComponent); + const compRef = getComponentRef(appRef); + appRef.tick(); + + const clientRootNode = compRef.location.nativeElement; + + // Since the server rendered fallback but client successfully rendered primary, + // it shouldn't crash, and the fallback should be replaced with primary. + expect(clientRootNode.textContent).toContain('Child rendering...'); + expect(clientRootNode.textContent).not.toContain('Error occurred on server!'); + }); + + it('should render fallback during SSR and remain in error state during client hydration if error persists', async () => { + const doc = TestBed.inject(DOCUMENT); + @Component({ + selector: 'child', + template: 'Child rendering...', + }) + class ChildComponent { + @Input() fail = false; + ngOnInit() { + if (this.fail) { + throw new Error('Persistent error'); + } + } + } + + @Component({ + selector: 'app', + imports: [ChildComponent], + template: ` + @boundary { + + } @error { + Error occurred on server and client! + } + `, + }) + class SimpleComponent {} + + // 1. SSR where an error occurs + const html = await ssr(SimpleComponent); + const ssrContents = getAppContents(html); + + expect(ssrContents).toContain('Error occurred on server and client!'); + + // 2. Hydration where error DOES occur again + const appRef = await prepareEnvironmentAndHydrate(doc, html, SimpleComponent); + const compRef = getComponentRef(appRef); + appRef.tick(); + + const clientRootNode = compRef.location.nativeElement; + + // The fallback should still be rendered (either hydrated or re-created) + expect(clientRootNode.textContent).toContain('Error occurred on server and client!'); + }); + }); + describe('Router', () => { it('should wait for lazy routes before triggering post-hydration cleanup', async () => { const ngZone = TestBed.inject(NgZone); diff --git a/packages/platform-server/test/incremental_hydration_spec.ts b/packages/platform-server/test/incremental_hydration_spec.ts index 74a81426c7d6..c0ead5fa2caf 100644 --- a/packages/platform-server/test/incremental_hydration_spec.ts +++ b/packages/platform-server/test/incremental_hydration_spec.ts @@ -12,20 +12,24 @@ import { Component, ɵDEHYDRATED_BLOCK_REGISTRY as DEHYDRATED_BLOCK_REGISTRY, destroyPlatform, + Directive, ɵgetDocument as getDocument, inject, Input, ɵJSACTION_BLOCK_ELEMENT_MAP as JSACTION_BLOCK_ELEMENT_MAP, ɵJSACTION_EVENT_CONTRACT as JSACTION_EVENT_CONTRACT, PendingTasks, + ɵPendingTasksInternal as PendingTasksInternal, PLATFORM_ID, Provider, QueryList, - ɵresetIncrementalHydrationRuntimeForTests as resetIncrementalHydrationRuntimeForTests, ɵresetIncrementalHydrationEnabledWarnedForTests as resetIncrementalHydrationEnabledWarnedForTests, + ɵresetIncrementalHydrationRuntimeForTests as resetIncrementalHydrationRuntimeForTests, signal, ɵTimerScheduler as TimerScheduler, + ViewChild, ViewChildren, + ViewContainerRef, ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR, } from '@angular/core'; @@ -338,6 +342,33 @@ describe('platform-server partial hydration integration', () => { // which contains parent id (which is not needed for top-level blocks). expect(ssrContents).toContain('"__nghDeferData__":{"d0":{"r":1,"s":2}}}'); }); + + it('should serialize blocks whose only hydrate trigger is `hydrate when`', async () => { + @Component({ + selector: 'app', + template: ` + @defer (hydrate when shouldHydrate) { + Hello world! + } @placeholder { + Placeholder + } + `, + }) + class SimpleComponent { + shouldHydrate = false; + } + + const appId = 'custom-app-id'; + const providers = [{provide: APP_ID, useValue: appId}]; + + const html = await ssr(SimpleComponent, { + envProviders: providers, + }); + + const ssrContents = getAppContents(html); + + expect(ssrContents).toContain('"__nghDeferData__":{"d0":{"r":1,"s":2}}}'); + }); }); describe('basic hydration behavior', () => { @@ -671,7 +702,7 @@ describe('platform-server partial hydration integration', () => { appRef.tick(); const innerParagraph = doc.body.querySelector('p')!; - expect(innerParagraph).toBeUndefined(); + expect(innerParagraph).toBeNull(); // An event was replayed after hydration, which resulted in // an `@if` block becoming active and its inner content got @@ -1282,7 +1313,9 @@ describe('platform-server partial hydration integration', () => { selector: 'app', template: `
    - @defer (hydrate on viewport({rootMargin: '123px', threshold: 0.5})) { + @defer ( + hydrate on viewport({rootMargin: '123px', scrollMargin: '456px', threshold: 0.5}) + ) {
    defer block rendered!
    } @placeholder { Outer block placeholder @@ -1300,7 +1333,7 @@ describe('platform-server partial hydration integration', () => { const ssrContents = getAppContents(html); expect(ssrContents).toContain( - '"__nghDeferData__":{"d0":{"r":1,"s":2,"t":[{"trigger":2,"intersectionObserverOptions":{"rootMargin":"123px","threshold":0.5}}]}}', + '"__nghDeferData__":{"d0":{"r":1,"s":2,"t":[{"trigger":2,"intersectionObserverOptions":{"rootMargin":"123px","scrollMargin":"456px","threshold":0.5}}]}}', ); // Internal cleanup before we do server->client transition in this test. @@ -1316,7 +1349,11 @@ describe('platform-server partial hydration integration', () => { await appRef.whenStable(); expect(activeObservers.length).toBe(1); - expect(activeObservers[0].options).toEqual({rootMargin: '123px', threshold: 0.5}); + expect(activeObservers[0].options).toEqual({ + rootMargin: '123px', + scrollMargin: '456px', + threshold: 0.5, + }); }); it('should create an IntersectionObserver for a nested routed viewport block', async () => { @@ -2278,7 +2315,7 @@ describe('platform-server partial hydration integration', () => { class SimpleComponent {} const fixture = TestBed.createComponent(SimpleComponent); - fixture.detectChanges(); + await fixture.whenStable(); // Verify that `hydrate when true` doesn't trigger rendering of the main // content in client-only use-cases (expecting to see placeholder content). @@ -2722,6 +2759,96 @@ describe('platform-server partial hydration integration', () => { expect(registry.cleanup).toHaveBeenCalledTimes(2); }); + it('should not throw and should release pending task if block is cleaned up during hydration', async () => { + @Component({ + selector: 'nested-cmp', + template: 'Nested component', + }) + class NestedCmp {} + + @Component({ + selector: 'app', + imports: [NestedCmp], + template: ` +
    + @defer (on interaction; hydrate on interaction) { +
    + +
    + } @placeholder { + Outer block placeholder + } +
    + `, + }) + class SimpleComponent { + fnA() {} + } + + let allowDepsToLoad = false; + const deferDepsInterceptor = { + intercept() { + return () => [ + new Promise((resolve) => { + const check = () => { + if (allowDepsToLoad) { + resolve(NestedCmp); + } else { + setTimeout(check, 10); + } + }; + check(); + }), + ]; + }, + }; + + const appId = 'custom-app-id'; + const providers = [{provide: APP_ID, useValue: appId}]; + const hydrationFeatures = () => [withIncrementalHydration()]; + + const html = await ssr(SimpleComponent, {envProviders: providers, hydrationFeatures}); + + resetTViewsFor(SimpleComponent, NestedCmp); + + const doc = getDocument(); + const appRef = await prepareEnvironmentAndHydrate(doc, html, SimpleComponent, { + envProviders: [ + ...providers, + {provide: PLATFORM_ID, useValue: 'browser'}, + {provide: ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR, useValue: deferDepsInterceptor}, + ], + hydrationFeatures, + }); + + appRef.tick(); + await appRef.whenStable(); + + const registry = appRef.injector.get(DEHYDRATED_BLOCK_REGISTRY); + const pendingTasks = appRef.injector.get(PendingTasksInternal); + + const mainBlock = doc.getElementById('main')!; + const clickEvent = new CustomEvent('click', {bubbles: true}); + mainBlock.dispatchEvent(clickEvent); + + // Wait a tick so triggerHydrationFromBlockName starts dependency loading + await timeout(20); + expect(pendingTasks.hasPendingTasks).toBeTrue(); + expect(registry.hydrating.has('d0')).toBeTrue(); + + // Simulate the block being cleaned up while hydration is in flight + registry.cleanup(['d0']); + expect(registry.hydrating.has('d0')).toBeFalse(); + + // Allow dependencies to resolve + allowDepsToLoad = true; + await timeout(50); + appRef.tick(); + + await appRef.whenStable(); + expect(pendingTasks.hasPendingTasks).toBeFalse(); + }); + it('should clear registry of multiple blocks if they are hydrated in one go', async () => { @Component({ selector: 'app', @@ -2939,6 +3066,214 @@ describe('platform-server partial hydration integration', () => { expect(contract.instance!.cleanUp).not.toHaveBeenCalled(); expect(registry.cleanup).toHaveBeenCalledTimes(1); }); + + it( + 'should not remove a still-pending dehydrated view (e.g. from a plain ' + + 'ViewContainerRef.createComponent() call guarded by PendingTasks) when an ' + + 'unrelated @defer block on the same page hydrates first', + async () => { + // Represents content created dynamically via `ViewContainerRef.createComponent()` + // -- NOT a `@defer` block -- so its dehydrated view carries no `DEFER_BLOCK_ID`. + @Component({ + selector: 'app', + template: `

    Dynamically created

    `, + }) + class DynamicCmp {} + + @Component({ + selector: 'app', + template: ` + @defer (hydrate on immediate) { +

    defer block

    + } + + `, + }) + class SimpleComponent { + @ViewChild('container', {read: ViewContainerRef, static: true}) + container!: ViewContainerRef; + + private readonly pendingTasks = inject(PendingTasks); + + ngAfterViewInit() { + // Mirrors a real dynamic-component loader: creation is guarded by + // `PendingTasks` (so SSR waits for it), but the creation itself is + // genuinely async (e.g. behind a lazy-loaded chunk) on the client -- + // giving the unrelated @defer block above time to hydrate and run + // its cleanup first. + this.pendingTasks.run(async () => { + await dynamicImportOf(DynamicCmp, 101); + this.container.createComponent(DynamicCmp); + }); + } + } + + const appId = 'custom-app-id'; + const providers = [{provide: APP_ID, useValue: appId}]; + const hydrationFeatures = () => [withIncrementalHydration()]; + + const html = await ssr(SimpleComponent, {envProviders: providers, hydrationFeatures}); + const ssrContents = getAppContents(html); + + expect(ssrContents).toContain('

    Dynamically created

    '); + expect(ssrContents).toContain('

    defer block

    '); + + // Internal cleanup before we do server->client transition in this test. + resetTViewsFor(SimpleComponent, DynamicCmp); + + //////////////////////////////// + const doc = getDocument(); + const appRef = await prepareEnvironmentAndHydrate(doc, html, SimpleComponent, { + envProviders: [...providers, {provide: PLATFORM_ID, useValue: 'browser'}], + hydrationFeatures, + }); + + appRef.tick(); + + // Let the @defer (hydrate on immediate) block finish hydrating -- its + // completion triggers a GLOBAL `cleanupDehydratedViews` sweep over every + // LView on the page -- well before our own PendingTasks-guarded dynamic + // component creation resolves (that's still ~101ms away). + await timeout(20); + + // BUG: `dynamic-content` was never claimed or replaced by anything at + // this point -- our own creation logic hasn't run yet. It should still + // be exactly the server-rendered content sitting untouched in the DOM. + // Before the fix, the @defer block's cleanup sweep incorrectly deletes + // it here because it carries no DEFER_BLOCK_ID, well before the code + // that's actually supposed to claim it ever gets a chance to run. + expect(doc.getElementById('dynamic-content')).not.toBeNull(); + + await allPendingDynamicImports(); + appRef.tick(); + await appRef.whenStable(); + + expect(doc.getElementById('dynamic-content')).not.toBeNull(); + }, + ); + + it( + 'should not remove a dehydrated view that a PendingTasks-guarded ' + + 'createComponent() inside the hydrating @defer block is about to claim', + async () => { + @Component({ + selector: 'app', + template: `

    Late content

    `, + }) + class LateCmp {} + + // Creates `LateCmp` after a slow dynamic import, holding a pending task the whole time. + @Directive({selector: '[lateHost]'}) + class LateHost { + private readonly vcr = inject(ViewContainerRef); + private readonly pendingTasks = inject(PendingTasks); + + ngOnInit() { + this.pendingTasks.run(async () => { + await dynamicImportOf(LateCmp, 101); + this.vcr.createComponent(LateCmp); + }); + } + } + + @Component({ + selector: 'app', + imports: [LateHost], + template: ` +
    + @defer (hydrate on immediate) { + + } +
    + `, + }) + class SimpleComponent {} + + const appId = 'custom-app-id'; + const providers = [{provide: APP_ID, useValue: appId}]; + const hydrationFeatures = () => [withIncrementalHydration()]; + + const html = await ssr(SimpleComponent, {envProviders: providers, hydrationFeatures}); + expect(getAppContents(html)).toContain('

    Late content

    '); + + // Internal cleanup before we do server->client transition in this test. + resetTViewsFor(SimpleComponent, LateCmp); + + //////////////////////////////// + const doc = getDocument(); + const appRef = await prepareEnvironmentAndHydrate(doc, html, SimpleComponent, { + envProviders: [...providers, {provide: PLATFORM_ID, useValue: 'browser'}], + hydrationFeatures, + }); + const serverNode = doc.getElementById('late-content'); + expect(serverNode).not.toBeNull(); + + await appRef.whenStable(); + await allPendingDynamicImports(); + appRef.tick(); + await appRef.whenStable(); + + // The server-rendered node is claimed by `createComponent()`, not deleted and rebuilt. + expect(serverNode!.isConnected).toBeTrue(); + expect(doc.getElementById('late-content')).toBe(serverNode); + }, + ); + + it('should skip the cleanup when the app is destroyed while it waits for stability', async () => { + let hydratedCount = 0; + + @Component({selector: 'block-content', template: `

    defer block

    `}) + class BlockContent { + constructor() { + if (!isPlatformServer(inject(PLATFORM_ID))) { + hydratedCount++; + } + } + } + + @Component({ + selector: 'app', + imports: [BlockContent], + template: ` + @defer (hydrate on immediate) { + + } + `, + }) + class SimpleComponent {} + + const appId = 'custom-app-id'; + const providers = [{provide: APP_ID, useValue: appId}]; + const hydrationFeatures = () => [withIncrementalHydration()]; + + const html = await ssr(SimpleComponent, {envProviders: providers, hydrationFeatures}); + + // Internal cleanup before we do server->client transition in this test. + resetTViewsFor(SimpleComponent, BlockContent); + + //////////////////////////////// + const doc = getDocument(); + const appRef = await prepareEnvironmentAndHydrate(doc, html, SimpleComponent, { + envProviders: [...providers, {provide: PLATFORM_ID, useValue: 'browser'}], + hydrationFeatures, + }); + const registry = appRef.injector.get(DEHYDRATED_BLOCK_REGISTRY); + spyOn(registry, 'cleanup').and.callThrough(); + + // This task is never removed, so the cleanup keeps waiting for stability. + appRef.injector.get(PendingTasks).add(); + appRef.tick(); + await timeout(60); + + // The block is hydrated, but its cleanup is still waiting. + expect(hydratedCount).toBe(1); + expect(registry.cleanup).not.toHaveBeenCalled(); + + appRef.destroy(); + await timeout(60); + + expect(registry.cleanup).not.toHaveBeenCalled(); + }); }); describe('Router', () => { @@ -3153,6 +3488,78 @@ describe('platform-server partial hydration integration', () => { ); expect(appHostNode.outerHTML).toContain(`

    yup

    `); }); + + it( + 'should not remove the server-rendered DOM of a lazy route that is still loading ' + + 'when a @defer block in the app shell hydrates', + async () => { + @Component({ + selector: 'app', + template: `

    Routed page

    `, + }) + class RoutedPage {} + + @Component({ + selector: 'shell-widget', + template: ``, + }) + class ShellWidget { + clicks = signal(0); + } + + const routes: Routes = [{path: '', loadComponent: () => dynamicImportOf(RoutedPage, 100)}]; + + // The `@defer` block sits outside the ``, so it hydrates while the + // navigation is still waiting for the lazy route. + @Component({ + selector: 'app', + imports: [RouterOutlet, ShellWidget], + template: ` +
    + @defer (hydrate on immediate) { + + } +
    +
    + `, + }) + class SimpleComponent {} + + const appId = 'custom-app-id'; + const providers = [ + {provide: APP_ID, useValue: appId}, + {provide: PlatformLocation, useClass: MockPlatformLocation}, + provideRouter(routes), + ] as unknown as Provider[]; + const hydrationFeatures = () => [withIncrementalHydration()]; + + const html = await ssr(SimpleComponent, {envProviders: providers, hydrationFeatures}); + expect(getAppContents(html)).toContain('

    Routed page

    '); + + // Internal cleanup before we do server->client transition in this test. + resetTViewsFor(SimpleComponent, RoutedPage, ShellWidget); + + //////////////////////////////// + const doc = getDocument(); + const appRef = await prepareEnvironmentAndHydrate(doc, html, SimpleComponent, { + envProviders: [...providers], + hydrationFeatures, + }); + const serverNode = doc.getElementById('routed-content'); + expect(serverNode).not.toBeNull(); + + await appRef.whenStable(); + await allPendingDynamicImports(); + appRef.tick(); + await appRef.whenStable(); + + // The router claims the server-rendered node, it is not deleted and rebuilt. + expect(serverNode!.isConnected).toBeTrue(); + expect(doc.getElementById('routed-content')).toBe(serverNode); + }, + ); }); describe('misconfiguration', () => { diff --git a/packages/platform-server/test/integration_spec.ts b/packages/platform-server/test/integration_spec.ts index bd7a7b337367..fac009a0d3e1 100644 --- a/packages/platform-server/test/integration_spec.ts +++ b/packages/platform-server/test/integration_spec.ts @@ -91,8 +91,9 @@ function getStandaloneBootstrapFn( function createMyServerApp(standalone: boolean) { @Component({ - standalone, selector: 'app', + + standalone, template: `Works!`, }) class MyServerApp {} @@ -111,8 +112,8 @@ export class MyServerAppModule {} function createAppWithPendingTask(standalone: boolean) { @Component({ - standalone, selector: 'app', + standalone, template: `Completed: {{ completed() }}`, }) class PendingTasksApp { @@ -349,6 +350,7 @@ function createAsyncServerModule(zoneless: boolean) { function createSVGComponent(standalone: boolean) { @Component({ selector: 'app', + template: '', standalone, }) @@ -369,8 +371,8 @@ class SVGServerModule {} function createMyAnimationApp(standalone: boolean) { @Component({ - standalone, selector: 'app', + standalone, template: `
    {{ text }} @@ -415,8 +417,8 @@ class AnimationServerModule {} function createMyStylesApp(standalone: boolean) { @Component({ - standalone, selector: 'app', + standalone, template: `
    Works!
    `, styles: ['div {color: blue; } :host { color: red; }'], }) @@ -437,8 +439,9 @@ class ExampleStylesModule {} function createMyTransferStateApp(standalone: boolean) { @Component({ - standalone, selector: 'app', + + standalone, template: `
    Works!
    `, }) class MyStylesApp { @@ -514,8 +517,8 @@ class ImageExampleModule {} function createShadowDomEncapsulationApp(standalone: boolean) { @Component({ - standalone, selector: 'app', + standalone, template: 'Shadow DOM works', encapsulation: ViewEncapsulation.ShadowDom, styles: [':host { color: red; }'], @@ -548,8 +551,9 @@ function createFalseAttributesComponents(standalone: boolean) { } @Component({ - standalone, selector: 'app', + + standalone, template: '', imports: standalone ? [MyChildComponent] : [], }) @@ -573,8 +577,9 @@ class FalseAttributesModule {} function createMyInputComponent(standalone: boolean) { @Component({ - standalone, selector: 'app', + + standalone, template: '', }) class MyInputComponent { @@ -596,8 +601,9 @@ class NameModule {} function createHTMLTypesApp(standalone: boolean) { @Component({ - standalone, selector: 'app', + + standalone, template: '
    ', }) class HTMLTypesApp { @@ -621,8 +627,9 @@ class HTMLTypesModule {} function createMyHiddenComponent(standalone: boolean) { @Component({ - standalone, selector: 'app', + + standalone, template: '', }) class MyHiddenComponent { @@ -971,7 +978,11 @@ class HiddenModule {} // to throw. Previously this was silently swallowed, causing the server // to return a 200 OK without the ', }) class SomeComponent {} diff --git a/packages/platform-server/test/url_spec.ts b/packages/platform-server/test/url_spec.ts index cbd9f7e6370d..4254bd17d413 100644 --- a/packages/platform-server/test/url_spec.ts +++ b/packages/platform-server/test/url_spec.ts @@ -69,6 +69,34 @@ describe('resolveUrl', () => { expect(() => resolveUrl(url, 'http://test.com')).toThrowError(/NG05703/); }); + it('should throw on protocol-relative URLs when allowProtocolRelative is false or default', () => { + const urls = [ + '//attacker.example/collect', + '///attacker.example/collect', + '/.//attacker.example/collect', + '/..//attacker.example/collect', + '/.\\/attacker.example/collect', + 'http://test.com/.//attacker.example/collect', + ]; + + for (const url of urls) { + expect(() => resolveUrl(url, 'http://test.com')).toThrowError(/NG05702/); + } + }); + + it('should allow protocol-relative URLs when allowProtocolRelative is true', () => { + const url = resolveUrl('//attacker.example/collect', 'http://test.com', { + allowProtocolRelative: true, + }); + expect(url.href).toBe('http://attacker.example/collect'); + expect(url.origin).toBe('http://attacker.example'); + + const dotUrl = resolveUrl('/.//attacker.example/collect', 'http://test.com', { + allowProtocolRelative: true, + }); + expect(dotUrl.href).toBe('http://test.com//attacker.example/collect'); + }); + it('should not trim unicode whitespace into protocol-relative URLs', () => { const urls = ['\u00A0//attacker.example/collect', '\uFEFF//attacker.example/collect']; @@ -84,6 +112,46 @@ describe('resolveUrl', () => { expect(urlWithoutProtocolRelative.pathname).toContain('//attacker.example/collect'); } }); + + it('should resolve scheme URLs without authority against origin of the same scheme', () => { + const urlA = resolveUrl('http:/attacker.example/steal', 'http://test.com'); + expect(urlA.origin).toBe('http://test.com'); + expect(urlA.pathname).toBe('/attacker.example/steal'); + + const urlB = resolveUrl('http:attacker.example/steal', 'http://test.com'); + expect(urlB.origin).toBe('http://test.com'); + expect(urlB.pathname).toBe('/attacker.example/steal'); + + const urlHttpsA = resolveUrl('https:/attacker.example/steal', 'https://test.com'); + expect(urlHttpsA.origin).toBe('https://test.com'); + expect(urlHttpsA.pathname).toBe('/attacker.example/steal'); + + const urlHttpsB = resolveUrl('https:attacker.example/steal', 'https://test.com'); + expect(urlHttpsB.origin).toBe('https://test.com'); + expect(urlHttpsB.pathname).toBe('/attacker.example/steal'); + + const urlBackslash = resolveUrl('http:\\attacker.example/steal', 'http://test.com'); + expect(urlBackslash.origin).toBe('http://test.com'); + expect(urlBackslash.pathname).toBe('/attacker.example/steal'); + }); + + it('should throw on scheme URLs without authority when origin scheme differs', () => { + expect(() => resolveUrl('http:/attacker.example/steal', 'https://test.com')).toThrowError( + /NG05703/, + ); + expect(() => resolveUrl('http:attacker.example/steal', 'https://test.com')).toThrowError( + /NG05703/, + ); + expect(() => resolveUrl('https:/attacker.example/steal', 'http://test.com')).toThrowError( + /NG05703/, + ); + expect(() => resolveUrl('https:attacker.example/steal', 'http://test.com')).toThrowError( + /NG05703/, + ); + expect(() => resolveUrl('http:\\attacker.example/steal', 'https://test.com')).toThrowError( + /NG05703/, + ); + }); }); describe('without origin', () => { diff --git a/packages/platform-server/test/utils_spec.ts b/packages/platform-server/test/utils_spec.ts index 198eae72e329..a5410b97a9b6 100644 --- a/packages/platform-server/test/utils_spec.ts +++ b/packages/platform-server/test/utils_spec.ts @@ -61,7 +61,11 @@ describe('allowedHosts validation in renderApplication', () => { }); it('should reject URLs with wrong host', async () => { - const relativeUrls = ['http://evil.com/deep/path', 'ht\ttp://evil.com/deep/path']; + const relativeUrls = [ + 'http://evil.com/deep/path', + 'http:/evil.com/deep/path', + 'ht\ttp://evil.com/deep/path', + ]; for (const url of relativeUrls) { await expectAsync( diff --git a/packages/platform-server/testing/BUILD.bazel b/packages/platform-server/testing/BUILD.bazel index 82335a59c527..b29dc17619d8 100644 --- a/packages/platform-server/testing/BUILD.bazel +++ b/packages/platform-server/testing/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "generate_api_docs", "ng_project") +load("//tools:defaults.bzl", "ng_project") package(default_visibility = ["//visibility:public"]) @@ -22,13 +22,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "platform-server_testing_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_name = "@angular/platform-server/testing", -) diff --git a/packages/private/testing/index.ts b/packages/private/testing/index.ts index 737794cd6abe..4b1fe8aea450 100644 --- a/packages/private/testing/index.ts +++ b/packages/private/testing/index.ts @@ -9,3 +9,4 @@ export * from './src/utils'; export * from './src/browser_utils'; export * from './src/globals'; +export * from './src/webmcp_mock'; diff --git a/packages/private/testing/src/browser_utils.ts b/packages/private/testing/src/browser_utils.ts index 69c42ec84cee..0681cf8ea531 100644 --- a/packages/private/testing/src/browser_utils.ts +++ b/packages/private/testing/src/browser_utils.ts @@ -9,6 +9,11 @@ import {ɵgetDOM as getDOM} from '@angular/common'; import {NgZone} from '@angular/core'; +/** Waits for callbacks queued for the next animation frame to run. */ +export function nextAnimationFrame(): Promise { + return new Promise((resolve) => requestAnimationFrame(() => resolve())); +} + export function dispatchEvent(element: any, eventType: any): Event { const evt: Event = getDOM().getDefaultDocument().createEvent('Event'); evt.initEvent(eventType, true, true); diff --git a/packages/private/testing/src/utils.ts b/packages/private/testing/src/utils.ts index 539ad439de59..e1e991c2c12c 100644 --- a/packages/private/testing/src/utils.ts +++ b/packages/private/testing/src/utils.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ import {TestBed} from '../../../core/testing'; -import {ɵresetJitOptions as resetJitOptions} from '@angular/core'; +import {ApplicationRef, ɵresetJitOptions as resetJitOptions} from '@angular/core'; /** * Wraps a function in a new function which sets up document and HTML for running a test. @@ -298,3 +298,44 @@ export async function waitFor( await new Promise((resolve) => void realSetTimeout(resolve, interval)); } } + +/** + * Executes a function and waits for the application to become stable. + * + * Use this when the action triggers asynchronous work + * (e.g. a `resource` loader) that must complete before assertions run. + * + * @example + * ```ts + * const res = await actAsync(() => resource({ loader: fetchUser, injector })); + * expect(res.status()).toBe('resolved'); + * ``` + */ +export async function actAsync(fn: () => T): Promise { + const result = fn(); + await TestBed.inject(ApplicationRef).whenStable(); + return result; +} + +/** + * Executes a function and flushes the Angular scheduler synchronously. + * + * Use this when the action triggers synchronous state + * changes that need to be flushed through the scheduler before assertions run. + * + * @example + * ```ts + * const fixture = act(() => TestBed.createComponent(TestComp)); + * expect(fixture.nativeElement.textContent).toBe('initial'); + * + * act(() => fixture.componentInstance.value.set('updated')); + * expect(fixture.nativeElement.textContent).toBe('updated'); + * ``` + */ +export function act(fn: () => T): T { + try { + return fn(); + } finally { + TestBed.tick(); + } +} diff --git a/packages/private/testing/src/webmcp_mock.ts b/packages/private/testing/src/webmcp_mock.ts new file mode 100644 index 000000000000..5d2534418cc2 --- /dev/null +++ b/packages/private/testing/src/webmcp_mock.ts @@ -0,0 +1,74 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import type {ModelContextTool, ModelContext} from '@angular/core/third_party/webmcp-types'; + +/** + * A `WebMCP.ModelContext` mock with partially implemented API. + */ +export class ModelContextMock implements Pick< + ModelContext, + 'registerTool' | 'getTools' | 'executeTool' +> { + private readonly tools = new Map(); + + async registerTool(tool: ModelContextTool, {signal}: {signal?: AbortSignal} = {}) { + if (this.tools.has(tool.name)) { + throw new DOMException( + `A tool named ${tool.name} is already registered`, + 'InvalidStateError', + ); + } + this.tools.set(tool.name, tool); + signal?.addEventListener('abort', () => this.tools.delete(tool.name)); + } + + async getTools(): ReturnType { + return Array.from(this.tools.values()).map( + ({name, title = '', description, inputSchema, annotations}) => ({ + name, + title, + description, + inputSchema, + annotations, + origin: location.origin, + window, + }), + ); + } + + async executeTool({name}: {name: string}, input: Record = {}): Promise { + const tool = this.tools.get(name)!; + const output = await tool.execute(input, {signal: new AbortController().signal}); + + return JSON.stringify(output); + } +} + +/** + * Installs a WebMCP mock on the document (document.modelContext). + * + * @returns The mock instance. + */ +export function installWebMcpMock(): ModelContextMock { + const mock = new ModelContextMock(); + Object.defineProperty(document, 'modelContext', {value: mock, configurable: true}); + + return mock; +} + +/** + * Uninstalls the current WebMCP mock from the document. + */ +export function uninstallWebMcpMock() { + const doc = document as {modelContext?: unknown}; + + if (doc.modelContext instanceof ModelContextMock) { + delete doc.modelContext; + } +} diff --git a/packages/router/BUILD.bazel b/packages/router/BUILD.bazel index b6886a667ca6..0bb5fc03d74b 100644 --- a/packages/router/BUILD.bazel +++ b/packages/router/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "api_golden_test", "api_golden_test_npm_package", "generate_api_docs", "ng_package", "ng_project", "ts_config") +load("//tools:defaults.bzl", "api_golden_test", "api_golden_test_npm_package", "ng_package", "ng_project", "ts_config") package(default_visibility = ["//visibility:public"]) @@ -82,15 +82,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "router_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - "//packages/common:files_for_docgen", - "//packages/common/http:files_for_docgen", - ], - entry_point = ":index.ts", - module_name = "@angular/router", -) diff --git a/packages/router/docs/error_boundaries.md b/packages/router/docs/error_boundaries.md new file mode 100644 index 000000000000..c0e9021604d4 --- /dev/null +++ b/packages/router/docs/error_boundaries.md @@ -0,0 +1,209 @@ +# Design Doc: Router Error Boundaries & Redirect Handling + +**Author**: Atscott +**Date**: September 2026 +**Status**: In Review + +## 1. Introduction & Motivation + +With the introduction of Angular's template error boundary primitive (`@boundary` / `@error`), components can isolate and gracefully recover from runtime errors occurring in their subtrees without crashing the entire application. + +In single-page applications, routes represent natural boundary demarcations: + +- When a route-level component, resource loader, or template throws an error, the user should see an error state specifically for that route outlet while keeping the rest of the application shell intact. +- When an authentication check, data loader, or guard within a routed component or resource determines that redirection is required, it should be able to trigger a clean navigation (e.g. `throw new RedirectCommand('/login')`) without complex imperative boilerplate. + +This document details the architecture and design decisions for integrating error boundaries into the Angular Router. + +--- + +## 2. Goals and Non-Goals + +### Goals + +- **Opt-in & Tree-shakable**: Provide an opt-in router feature (`withErrorBoundaries`) for configuring global defaults and error hooks. +- **Route-Level Error Boundaries**: Allow individual routes to declare an `errorComponent` to render in place of a failed component. +- **View-Layer Error Scoping**: Isolate and catch view-level errors occurring during routed component creation (constructor, DI) and updates (lifecycle hooks, template bindings, resource loaders, view effects). +- **Route Data & Param Binding with Precedence**: Ensure `errorComponent` receives bound route parameters and data via `withComponentInputBinding()`, while guaranteeing that the caught runtime `Error` always takes precedence over any route params, data, query params, or resolvers named `'error'`. +- **First-Class RedirectCommand Support**: Seamlessly navigate when a `RedirectCommand` is thrown from a routed component or route resource. +- **Fail-Safe Fallbacks**: Catch and bubble any exceptions that occur inside the `errorComponent` itself up to parent template boundaries or the global `ErrorHandler`. +- **Clean Telemetry Extension**: Provide a global `onError` callback in `withErrorBoundaries` for telemetry/monitoring (e.g. Sentry, Datadog) without polluting `Router.events`. + +### Non-Goals + +- Router error boundaries do not replace root `ErrorHandler` for unhandled global exceptions outside of router outlets. +- We do not add new `Router.events` for error boundaries to avoid breaking changes and event stream clutter. +- Error boundaries operate at the view layer (`RouterOutlet`); they do not catch pre-activation navigation pipeline failures (e.g. `canActivate` guards or route `resolve` functions), which continue to be handled via `withNavigationErrorHandler`. +- **Recovery (`retry`) is deferred.** An earlier iteration added `retry?(): void` to `RouterOutletContract` and `RouterOutlet`, reachable from the error component via `inject(RouterOutlet)`. It was removed before shipping (see the TODO in `router_outlet.ts`): + - It re-activated using the existing `ActivatedRoute` and snapshot, so guards, resolvers, `loadComponent`/`loadChildren` and route resources were all skipped. It could only recover from errors thrown by the component instance itself, and it silently bypassed guards. + - It destroyed the component outside of `ChildrenOutletContexts`, potentially leaving stale child outlet contexts, and emitted `deactivateEvents` with the error component instance. + - Re-running the navigation instead is not a drop-in replacement: with the default `RouteReuseStrategy` the route is reused for the same config and params, so the outlet is never re-activated and the error component would stay on screen. + + Adding a recovery API later is not a breaking change, so it is better to ship without one than to commit to these semantics on the public contract. + +--- + +## 3. Architecture & Key Design Decisions + +### 3.1. Route Configuration & Component Inputs + +A route can specify an `errorComponent`: + +```ts +export interface Route { + // ... + errorComponent?: Type; +} +``` + +When an error occurs, the `RouterOutlet` instantiates the `errorComponent` and binds the `error` input. + +#### Canonical Error Component Contract + +1. **Error Data (Input)**: + The caught error is passed directly via component input (`readonly error = input()` or `@Input() error: Error`). + +2. **Routing Context (DI)**: + The `errorComponent` is created in an injector that still resolves the enclosing `RouterOutlet` and the failed route's `ActivatedRoute`, so it can inject them if it needs routing context: + ```ts + @Component({ + template: ` +
    +

    Failed to load: {{ error()?.message }}

    +
    + `, + }) + export class ErrorFallbackComponent { + readonly error = input(); + protected route = inject(ActivatedRoute); + } + ``` + +_Design Note_: We deliberately avoid magical reflection on output properties (e.g. subscribing to `output()` instances behind the scenes) and callback closure inputs (`input<() => void>()`), keeping the API direct, standard, and fully type-safe. + +#### Route Input Binding & Parameter Precedence + +When `withComponentInputBinding()` is configured: + +- `errorComponent` receives route parameters, query parameters, and route data. +- **Precedence Guarantee**: The caught runtime `Error` instance **always overrides** any route data, path params, query params, or resolvers named `'error'`. The `RoutedComponentInputBinder` protects the `'error'` input from being overwritten by route data or reset to `undefined`. + +--- + +### 3.2. Creation Pass vs. Update Pass Error Handling + +Errors can occur at two distinct phases of component lifecycle: + +1. **Creation Pass Errors** (Synchronous): + - Thrown inside component `constructor()`, field `inject()` initializers, or initial template creation (`RenderFlags.Create`). + - In standard `ViewContainerRef.createComponent()`, these errors throw synchronously before the view's `ON_ERROR` handler is attached. + - **Router Behavior**: `RouterOutlet.activateWith()` wraps `location.createComponent()` in a `try...catch`. If creation fails and an `errorComponent` (or default) is configured, the outlet catches the error, mounts the `errorComponent`, and allows the navigation transition to complete successfully (`NavigationEnd`). If no error component is configured, it rethrows, resulting in a standard `NavigationError`. + +2. **Update Pass Errors** (Asynchronous / Change Detection): + - Thrown in `ngOnInit()`, template bindings, signals, resource loader effects (`createResourceOutletBindingEffects`), or event listeners. + - Caught by `_lView[ON_ERROR]` during `refreshView()` change detection. + - **Router Behavior**: Dispatched to `RouterOutlet`'s `onError` callback, which emits `deactivateEvents` for the failed component, destroys it, and mounts the `errorComponent`. + +This ensures consistent behavior: **any failure in the route renders the error component**, regardless of whether it failed during constructor injection or during runtime data fetching. + +--- + +### 3.3. View-Layer Scope vs. Navigation Pipeline + +Router Error Boundaries operate strictly at the **View Layer** (`RouterOutlet` + `ViewContainerRef`): + +- **Inside the Boundary**: Component constructors, dependency injection, lifecycle hooks, template expressions, event handlers, and component `resource()` loaders. +- **Outside the Boundary**: Pre-activation route guards (`canMatch`, `canActivate`, `canActivateChild`) and route data resolvers (`resolve`). These run as part of the Router navigation transition. If a guard or resolver throws, the navigation fails before reaching any outlet, triggering `NavigationError` (handled by `withNavigationErrorHandler`). + +--- + +### 3.4. Fail-Safe Error Component Instantiation + +If the configured `errorComponent` itself fails during construction, injection, or initial rendering: + +- `RouterOutlet` passes `onError: (err) => { throw err; }` to `location.createComponent(errorComponent, ...)`. +- The exception immediately bubbles out of the `RouterOutlet` to an enclosing template error boundary (e.g. `@boundary { } @error (let err) { ... }`) or to the root `ErrorHandler`. +- This prevents recursive error loops and unhandled silent crashes. + +### 3.5. `RedirectCommand` Semantics + +`RedirectCommand` is a dedicated Angular Router primitive whose sole purpose is to instruct the router to navigate. + +#### The Rule: `RedirectCommand` Always Navigates + +When any component, resource, or lifecycle method throws a `RedirectCommand`: + +1. `RouterOutlet` unwraps the error (even if wrapped as an `Error.cause`). +2. The router immediately dispatches navigation: `router.navigateByUrl(redirect.redirectTo, redirect.navigationBehaviorOptions)`. +3. If an `errorComponent` is configured, it mounts and receives the `RedirectCommand` in its `error` input. +4. If no `errorComponent` is configured, the error bubbles up (except for `RedirectCommand`, which stops propagating after dispatching the navigation). + +#### Deduplication Across Boundaries + +If a `RedirectCommand` bubbles through multiple nested outlets or template `@boundary` blocks, it is tagged with an internal symbol (`[REDIRECT_DISPATCHED] = true`). This guarantees that only the first boundary dispatches the navigation, preventing duplicate navigations. + +#### Custom Errors for Custom Behavior + +We intentionally do **not** add boolean flags like `handleRedirectCommands: false` or magical return values in `onError` to suppress redirects: + +- If a developer throws a `RedirectCommand`, they explicitly want the router to navigate. +- If a developer wants custom error handling without automatic navigation (e.g. displaying a modal, prompting for credentials, or conditional routing), they throw standard custom error classes (e.g. `throw new UnauthorizedError()`) and handle them via `withNavigationErrorHandler`, `errorComponent`, or global `onError`. + +### 3.6. Global Configuration via `withErrorBoundaries` + +The feature is enabled and configured via `provideRouter`: + +```ts +export interface ErrorBoundaryOptions { + /** + * Default component to render when an error occurs in a route that does not specify its own `errorComponent`. + */ + defaultErrorComponent?: Type; + + /** + * Optional global callback invoked when any route-level error is caught by the router error boundaries. + */ + onError?: (error: Error, details?: ErrorDetails) => void; +} + +export function withErrorBoundaries(options?: ErrorBoundaryOptions): ErrorBoundariesFeature; +``` + +#### Example Usage + +```ts +bootstrapApplication(AppComponent, { + providers: [ + provideRouter( + routes, + withComponentInputBinding(), + withErrorBoundaries({ + defaultErrorComponent: GlobalRouteErrorComponent, + onError: (error, details) => { + inject(TelemetryService).logException(error, details); + }, + }), + ), + ], +}); +``` + +--- + +## 4. Alternatives Considered + +### 1. New `Router.events` (e.g. `RouteErrorEvent`) + +- **Rejected**: Adding new events to `Router.events` increases bundle size for non-boundary users, adds breaking changes for consumers filtering events exhaustively, and scatters error handling away from component boundaries. Telemetry is better served via `withErrorBoundaries({ onError })`. + +### 2. Output Event Reflection (e.g. `readonly retry = output()`) + +- **Rejected**: Having `RouterOutlet` inspect component output properties dynamically and call `.subscribe()` behind the scenes is roundabout, magical, and violates standard Angular component contracts. This applied to any recovery action the error component might expose; recovery itself is now out of scope (see Non-Goals). + +### 3. Callback Closure Inputs (`input<() => void>()`) + +- **Rejected**: Passing executable callbacks via component inputs results in awkward template syntax (`(click)="retry()()"`) and runs counter to Angular's architecture. If a recovery action is added later, DI injection is the cleaner, more standard pattern. + +### 4. Suppressing `errorComponent` or `onError` during `RedirectCommand` + +- **Rejected**: Hardcoding special-case exceptions (e.g. skipping `onError` or deactivating without mounting `errorComponent`) creates an inconsistent mental model. `onError` should have complete visibility over all errors, and `errorComponent` should consistently render whenever configured. diff --git a/packages/router/docs/injector_cleanup.md b/packages/router/docs/injector_cleanup.md index c93b9d97a486..59739aa6dbc6 100644 --- a/packages/router/docs/injector_cleanup.md +++ b/packages/router/docs/injector_cleanup.md @@ -87,13 +87,39 @@ The current parent-first (pre-order) traversal was chosen for its implementation ### Destruction During Activation Traversal -Another alternative considered was performing the destruction of injectors during the activation traversal itself. For instance, if a route is being deactivated and not stored for reuse, its injector could be destroyed immediately. +Another alternative considered was performing the destruction of injectors during route deactivation in `ActivateRoutes` (similar to how components and `_localInjector` are destroyed). -- **Pros**: This approach would not require any additional traversal logic, as the router is already traversing the route tree during activation. -- **Cons**: - - This approach is not viable because of how the router handles route reuse. A child route can be stored for reuse even if its parent is not. Since the activation traversal is top-down, the router might encounter a parent route that is not being reused and destroy its injector, only to later discover that one of its children _is_ being reused and requires the parent's injector to remain alive. By deferring cleanup until after navigation completes, we can accurately identify all necessary injectors by looking at the final state of both the active route tree and the stored handles. - - We could handle the problem of descendants detaching after the parent injector was destroyed by _not_ querying `shouldDetach` in the first place on any descendants if the a parent injector was destroyed. However, this couples the detach logic with the injector destroy. You now need to be careful about destroying parents if you're going to detach a child. Our current approach handles this for you so the concerns are kept separate and the Router handles the question of what even can be destroyed safely. - - Additionally, there would be no good, safe way to destroy the injector for a previously stored handle that is being disposed of. For example, if a developer decides to drop a stored handle, they would need to manually destroy its injector, which could easily be done at the wrong time or forgotten entirely. +- **Pros**: Would eliminate the need for an additional post-navigation traversal pass. +- **Cons**: This approach is not viable for injectors attached to static `Route` configurations: + 1. **Re-activation of the Same Route Config**: When navigating between parameter changes where the route is not reused (e.g., `/detail/1` to `/detail/2` with `shouldReuseRoute` returning `false`), `/detail/2` binds to `detailRoute._injector` during recognition. If deactivating `/detail/1` destroyed `detailRoute._injector`, it would destroy the injector that `/detail/2` has already captured and is about to activate with. + 2. **Cross-Navigation Detached Handles**: While deactivation within a single transition is bottom-up (children are deactivated before parents), a child route could have been detached and stored in `RouteReuseStrategy` in an earlier navigation. If the parent route is deactivated in a subsequent navigation, destroying the parent's injector would break the DI hierarchy of the stored child handle. A local deactivation pass cannot detect this dependency without inspecting the entire reuse cache. + 3. **Handling Discarded Handles and Preloading**: Injectors created during route preloading, or injectors left behind when a handle is evicted from `RouteReuseStrategy`, never undergo deactivation. A post-navigation sweep is the only mechanism that can reconcile these unreferenced injectors. + +### Fundamental Differences from `ActivatedRoute._localInjector` + +With the introduction of route-level resources, the router created a local `EnvironmentInjector` on `ActivatedRoute` instances (`route._localInjector`). A natural question is why `Route._injector` (and `Route._loadedInjector`) cannot share the exact same destruction timing and lifecycle as `ActivatedRoute._localInjector`: + +- `_localInjector` is destroyed immediately during deactivation in `ActivateRoutes` (`deactivateRouteAndOutlet`). +- `_localInjector` is rolled back on `NavigationCancel` or `NavigationError` in `rollbackState`. +- `_localInjector` is destroyed on handle eviction via `destroyDetachedRouteHandle(handle)`. + +The reasons these two injector types cannot share the same destruction logic are fundamental to where they live and their role in the DI hierarchy: + +1. **Storage Target & Cardinality (Static Definition vs. Activation Instance)**: + - `Route._injector` is attached directly to the **static `Route` definition**. When navigating between parameter changes of the same route config where the route is not reused (e.g., `/detail/1` to `/detail/2` with `shouldReuseRoute` returning `false`), both activations share the same static `Route` definition. During URL recognition, the incoming `/detail/2` snapshot captures the existing `detailRoute._injector`. If deactivation of `/detail/1` destroyed `detailRoute._injector`, it would destroy the injector that `/detail/2` has already captured and is about to activate its component with. + - `_localInjector` is an instance property on `ActivatedRoute`. `/detail/1` and `/detail/2` have completely distinct `ActivatedRoute` instances (`activatedRoute1._localInjector` vs. `activatedRoute2._localInjector`). Destroying instance 1 during deactivation has no impact on instance 2. + +2. **DI Hierarchy Position (Ancestor vs. Leaf)**: + - `Route._injector` is an **ancestor injector** for all child routes and their component hierarchies. If a child route was detached and stored in `RouteReuseStrategy` in an earlier navigation, destroying a deactivated parent's `Route._injector` severs the DI hierarchy for that stored child handle. When the child is later reattached, any dependency lookups ascending to the parent injector will fail. A local deactivation step cannot detect this dependency without inspecting the entire reuse cache. + - `_localInjector` is strictly a **leaf injector** containing only route-level resources for that specific route. Descendant routes do not inherit from a parent route's `_localInjector` (they inherit from `parentSnapshot._environmentInjector`, which points to `Route._injector`). Therefore, destroying a deactivated parent's `_localInjector` never corrupts a child's DI chain. + +3. **Creation Timing & Non-Activation Lifecycles**: + - `Route._injector` is created during URL recognition (`canMatch`) or preloading (`RouterPreloader`), well before activation. A preloaded route may never be activated, so it can never be deactivated; only a post-navigation sweep can reclaim it. + - `_localInjector` is created strictly during preactivation (`setupAndRunResources`) for a specific `ActivatedRoute`, so its lifecycle is 1:1 with that route's activation and deactivation. + +4. **Detached Handle Disposal**: + - `destroyDetachedRouteHandle(handle)` can safely destroy `handle.route.value._localInjector` because that injector belongs exclusively to that handle's `ActivatedRoute` instance. + - It cannot destroy `handle.route.value.routeConfig._injector`, because that static `Route` config might currently be active in another outlet or shared by another cached handle. ### 3.2. Manual DetachedRouteHandle Cleanup diff --git a/packages/router/src/apply_redirects.ts b/packages/router/src/apply_redirects.ts index e63b440570ba..0aa156c8a67f 100644 --- a/packages/router/src/apply_redirects.ts +++ b/packages/router/src/apply_redirects.ts @@ -18,6 +18,7 @@ import {wrapIntoObservable} from './utils/collection'; import {firstValueFrom} from './utils/first_value_from'; export class NoMatch extends Error { + override readonly name: string = 'NoMatch'; public segmentGroup: UrlSegmentGroup | null; constructor(segmentGroup?: UrlSegmentGroup) { @@ -32,6 +33,8 @@ export class NoMatch extends Error { } export class AbsoluteRedirect extends Error { + override readonly name: string = 'AbsoluteRedirect'; + constructor(public urlTree: UrlTree) { super(); diff --git a/packages/router/src/create_url_tree.ts b/packages/router/src/create_url_tree.ts index a7612625abad..8912edb08c4b 100644 --- a/packages/router/src/create_url_tree.ts +++ b/packages/router/src/create_url_tree.ts @@ -189,6 +189,9 @@ function tree( ): UrlTree { const qp: Params = {}; for (const [key, value] of Object.entries(queryParams ?? {})) { + if (value === null || value === undefined) { + continue; + } // This retains old behavior where each item in the array was stringified individually This // helps remove special-case handling for empty and single-item arrays where the default // serializer removes empty arrays when serialized then parsed or converts them to non-arrays diff --git a/packages/router/src/directives/router_link.ts b/packages/router/src/directives/router_link.ts index bbaebce68975..58b94bf16511 100644 --- a/packages/router/src/directives/router_link.ts +++ b/packages/router/src/directives/router_link.ts @@ -34,7 +34,7 @@ import {Subject} from 'rxjs'; import {RuntimeErrorCode} from '../errors'; import {NavigationEnd} from '../events'; -import {QueryParamsHandling} from '../models'; +import {NavigationBehaviorOptions, QueryParamsHandling} from '../models'; import {Router} from '../router'; import {ROUTER_CONFIGURATION} from '../router_config'; import {ActivatedRoute} from '../router_state'; @@ -170,6 +170,16 @@ export class ReactiveRouterState { * }); * ``` * + * ### Controlling scrolling + * + * When scroll restoration is enabled with `withInMemoryScrolling`, every navigation scrolls, even + * one that only changes a query param. Set `scroll` to `'manual'` to opt a link out, for example + * for tabs further down the page: + * + * ```html + * Reviews + * ``` + * * ### RouterLink compatible custom elements * * In order to make a custom element work with routerLink, the corresponding @@ -195,7 +205,20 @@ export class RouterLink implements OnChanges, OnDestroy { if (!this.isAnchorElement) { return this.hrefAttributeValue; } - return this.computeHref(this._urlTree()); + // Track path changes. It's knowing which segments we actually depend on is somewhat difficult + this.reactiveRouterState.path(); + if (this._preserveFragment()) { + this.reactiveRouterState.fragment(); + } + const shouldTrackParams = (handling: QueryParamsHandling | undefined | null) => + handling === 'preserve' || handling === 'merge'; + if ( + shouldTrackParams(this._queryParamsHandling()) || + shouldTrackParams(this.options?.defaultQueryParamsHandling) + ) { + this.reactiveRouterState.queryParams(); + } + return this.computeHref(this.createUrlTree()); }); /** * Represents an `href` attribute value applied to a host element, @@ -362,6 +385,14 @@ export class RouterLink implements OnChanges, OnDestroy { */ browserUrl = input(undefined); + /** + * Passed to {@link Router#navigateByUrl} as part of the + * `NavigationBehaviorOptions`. + * @see {@link NavigationBehaviorOptions#scroll} + * @see {@link Router#navigateByUrl} + */ + readonly scroll = input(undefined); + /** * Whether a host element is an ``/`` tag or a compatible custom * element. @@ -388,15 +419,13 @@ export class RouterLink implements OnChanges, OnDestroy { !!( // Avoid breaking in an SSR context where customElements might not // be defined. + typeof customElements === 'object' && + // observedAttributes is an optional static property/getter on a + // custom element. The spec states that this must be an array of + // strings. ( - typeof customElements === 'object' && - // observedAttributes is an optional static property/getter on a - // custom element. The spec states that this must be an array of - // strings. - ( - customElements.get(tagName) as {observedAttributes?: string[]} | undefined - )?.observedAttributes?.includes?.('href') - ) + customElements.get(tagName) as {observedAttributes?: string[]} | undefined + )?.observedAttributes?.includes?.('href') ); if (typeof ngDevMode !== 'undefined' && ngDevMode) { @@ -483,7 +512,7 @@ export class RouterLink implements OnChanges, OnDestroy { altKey: boolean, metaKey: boolean, ): boolean { - const urlTree = this._urlTree(); + const urlTree = this.urlTree; if (urlTree === null) { return true; @@ -500,6 +529,7 @@ export class RouterLink implements OnChanges, OnDestroy { } const browserUrl = this.browserUrl(); + const scroll = this.scroll(); const extras = { skipLocationChange: this.skipLocationChange, replaceUrl: this.replaceUrl, @@ -508,6 +538,8 @@ export class RouterLink implements OnChanges, OnDestroy { // TODO: Remove conditional spread once all consumers handle `browserUrl`. // Having this property always set broke some tests in G3. ...(browserUrl !== undefined && {browserUrl}), + // Same for `scroll`, so the extras are unchanged when the input isn't used. + ...(scroll !== undefined && {scroll}), }; // navigateByUrl is mocked frequently in tests... Reduce breakages when // adding `catch` @@ -534,45 +566,27 @@ export class RouterLink implements OnChanges, OnDestroy { } } - /** @internal */ - _urlTree = computed( - () => { - // Track path changes. It's knowing which segments we actually depend on is somewhat difficult - this.reactiveRouterState.path(); - if (this._preserveFragment()) { - this.reactiveRouterState.fragment(); - } - const shouldTrackParams = (handling: QueryParamsHandling | undefined | null) => - handling === 'preserve' || handling === 'merge'; - if ( - shouldTrackParams(this._queryParamsHandling()) || - shouldTrackParams(this.options?.defaultQueryParamsHandling) - ) { - this.reactiveRouterState.queryParams(); - } - - const routerLinkInput = this.routerLinkInput(); - if (routerLinkInput === null || !this.router.createUrlTree) { - return null; - } else if (isUrlTree(routerLinkInput)) { - return routerLinkInput; - } - return this.router.createUrlTree(routerLinkInput, { - // If the `relativeTo` input is not defined, we want to use `this.route` - // by default. - // Otherwise, we should use the value provided by the user in the input. - relativeTo: this._relativeTo() !== undefined ? this._relativeTo() : this.route, - queryParams: this._queryParams(), - fragment: this._fragment(), - queryParamsHandling: this._queryParamsHandling(), - preserveFragment: this._preserveFragment(), - }); - }, - {equal: (a, b) => this.computeHref(a) === this.computeHref(b)}, - ); + private createUrlTree(): UrlTree | null { + const routerLinkInput = this.routerLinkInput(); + if (routerLinkInput === null || !this.router.createUrlTree) { + return null; + } else if (isUrlTree(routerLinkInput)) { + return routerLinkInput; + } + return this.router.createUrlTree(routerLinkInput, { + // If the `relativeTo` input is not defined, we want to use `this.route` + // by default. + // Otherwise, we should use the value provided by the user in the input. + relativeTo: this._relativeTo() !== undefined ? this._relativeTo() : this.route, + queryParams: this._queryParams(), + fragment: this._fragment(), + queryParamsHandling: this._queryParamsHandling(), + preserveFragment: this._preserveFragment(), + }); + } get urlTree(): UrlTree | null { - return untracked(this._urlTree); + return untracked(() => this.createUrlTree()); } private computeHref(urlTree: UrlTree | null): string | null { diff --git a/packages/router/src/directives/router_link_active.ts b/packages/router/src/directives/router_link_active.ts index 5c78f276105d..ffa4f090af21 100644 --- a/packages/router/src/directives/router_link_active.ts +++ b/packages/router/src/directives/router_link_active.ts @@ -133,10 +133,7 @@ export class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit * @see {@link isActive} */ @Input() routerLinkActiveOptions: - | {exact: boolean} - | Partial - | null - | undefined = {exact: false}; + {exact: boolean} | Partial | null | undefined = {exact: false}; /** * Aria-current attribute to apply when the router link is active. @@ -207,12 +204,15 @@ export class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit @Input() set routerLinkActive(data: string[] | string | null | undefined) { - if (data == null) { - this.classes = []; - return; + const classes = + data == null ? [] : (Array.isArray(data) ? data : data.split(' ')).filter((c) => !!c); + // `update()` only touches the current classes, so drop the ones that are no longer used. + for (const c of this.classes) { + if (!classes.includes(c)) { + this.renderer.removeClass(this.element.nativeElement, c); + } } - const classes = Array.isArray(data) ? data : data.split(' '); - this.classes = classes.filter((c) => !!c); + this.classes = classes; } /** @docs-private */ diff --git a/packages/router/src/directives/router_outlet.ts b/packages/router/src/directives/router_outlet.ts index 80abe166ee17..390a03e5f357 100644 --- a/packages/router/src/directives/router_outlet.ts +++ b/packages/router/src/directives/router_outlet.ts @@ -10,9 +10,9 @@ import { ChangeDetectorRef, ComponentRef, Directive, - effect, EffectRef, EnvironmentInjector, + ErrorDetails, EventEmitter, inject, Injectable, @@ -27,18 +27,26 @@ import { ɵRuntimeError as RuntimeError, Signal, SimpleChanges, + Type, ViewContainerRef, } from '@angular/core'; import {combineLatest, of, Subscription} from 'rxjs'; import {switchMap} from 'rxjs/operators'; import {RuntimeErrorCode} from '../errors'; -import type {RouterResourcesFeatureImplementation} from '../router_resource_feature'; -import {Data} from '../models'; +import type {Data} from '../models'; +import type {ComponentInputBindingOptions} from '../router_config'; +import {ROUTER_ERROR_BOUNDARY_HANDLER} from '../router_error_boundary_feature'; import {ChildrenOutletContexts} from '../router_outlet_context'; +import type {RouterResourcesFeatureImplementation} from '../router_resource_feature'; import {ActivatedRoute} from '../router_state'; import {PRIMARY_OUTLET} from '../shared'; -import {ComponentInputBindingOptions} from '../router_config'; + +let warnedAboutMissingErrorBoundaries = false; + +export function resetMissingErrorBoundariesWarning(): void { + warnedAboutMissingErrorBoundaries = false; +} /** * An `InjectionToken` provided by the `RouterOutlet` and can be set using the `routerOutletData` @@ -86,6 +94,13 @@ export interface RouterOutletContract { */ isActivated: boolean; + /** + * Whether the given outlet is currently rendering an error component instead of the primary component. + * + * @developerPreview 22.3 + */ + isErrorComponentActive?: boolean; + /** The instance of the activated component or `null` if the outlet is not activated. */ component: Object | null; @@ -164,7 +179,9 @@ export interface RouterOutletContract { * Acts as a placeholder that Angular dynamically fills based on the current router state. * * Each outlet can have a unique name, determined by the optional `name` attribute. - * The name cannot be set or changed dynamically. If not set, default value is "primary". + * You can bind the name to a value. When the value changes, the outlet destroys its current + * component and renders the route for the new name, if one matches. If not set, default value is + * "primary". * * ```html * @@ -219,6 +236,11 @@ export class RouterOutlet implements OnDestroy, OnInit, RouterOutletContract { return this.activated; } private _activatedRoute: ActivatedRoute | null = null; + // TODO: Consider whether the error boundary feature should offer a way to recover from an error + // without a full navigation, and what that should look like. + + /** @internal */ + isErrorComponentActive = false; /** * The name of the outlet * @@ -249,6 +271,7 @@ export class RouterOutlet implements OnDestroy, OnInit, RouterOutletContract { private location = inject(ViewContainerRef); private changeDetector = inject(ChangeDetectorRef); private inputBinder = inject(INPUT_BINDER, {optional: true}); + private errorBoundaryHandler = inject(ROUTER_ERROR_BOUNDARY_HANDLER, {optional: true}); /** @docs-private */ readonly supportsBindingToComponentInputs = true; @@ -352,6 +375,7 @@ export class RouterOutlet implements OnDestroy, OnInit, RouterOutletContract { RuntimeErrorCode.OUTLET_NOT_ACTIVATED, (typeof ngDevMode === 'undefined' || ngDevMode) && 'Outlet is not activated', ); + this.isErrorComponentActive = false; this.location.detach(); const cmp = this.activated; this.activated = null; @@ -366,19 +390,17 @@ export class RouterOutlet implements OnDestroy, OnInit, RouterOutletContract { attach(ref: ComponentRef, activatedRoute: ActivatedRoute): void { this.activated = ref; this._activatedRoute = activatedRoute; + this.isErrorComponentActive = false; this.location.insert(ref.hostView); this.inputBinder?.bindActivatedRouteToOutletComponent(this, this.location.injector); this.attachEvents.emit(ref.instance); } deactivate(): void { - if (this.activated) { - const c = this.component; - this.activated.destroy(); - this.activated = null; - this._activatedRoute = null; - this.deactivateEvents.emit(c); - } + // The outlet is no longer associated with the route at all, unlike `destroyActivatedComponent` + // which only swaps out the component rendered for the current route. + this._activatedRoute = null; + this.destroyActivatedComponent(); } activateWith(activatedRoute: ActivatedRoute, environmentInjector: EnvironmentInjector): void { @@ -390,27 +412,119 @@ export class RouterOutlet implements OnDestroy, OnInit, RouterOutletContract { ); } this._activatedRoute = activatedRoute; - const location = this.location; + this.isErrorComponentActive = false; const snapshot = activatedRoute.snapshot; const component = snapshot.component!; const childContexts = this.parentContexts.getOrCreateContext(this.name).children; - const injector = new OutletInjector( - activatedRoute, - childContexts, - location.injector, - this.routerOutletData, - ); - - this.activated = location.createComponent(component, { - index: location.length, - injector, - environmentInjector: environmentInjector, - }); + + // The error handling implementation only exists when the application opts in to the error + // boundary feature via `withErrorBoundaries`. Without it, errors propagate as usual. + const errorBoundaryHandler = this.errorBoundaryHandler; + if ( + (typeof ngDevMode === 'undefined' || ngDevMode) && + !errorBoundaryHandler && + snapshot.routeConfig?.errorComponent && + !warnedAboutMissingErrorBoundaries + ) { + console.warn( + `The route '${snapshot.routeConfig.path ?? ''}' defines an 'errorComponent', but router ` + + `error boundaries are not enabled. Add 'withErrorBoundaries()' to 'provideRouter' ` + + `for it to take effect.`, + ); + warnedAboutMissingErrorBoundaries = true; + } + const onErrorHandler = errorBoundaryHandler + ? (error: Error, details?: ErrorDetails) => { + errorBoundaryHandler.handleError( + error, + details, + this, + activatedRoute, + environmentInjector, + childContexts, + ); + } + : undefined; + + let componentRef: ComponentRef; + try { + componentRef = this.activateComponent( + component, + activatedRoute, + environmentInjector, + childContexts, + onErrorHandler, + ); + } catch (error: any) { + if (onErrorHandler) { + onErrorHandler(error); + return; + } + throw error; + } + // Calling `markForCheck` to make sure we will run the change detection when the // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component. this.changeDetector.markForCheck(); + this.activateEvents.emit(componentRef.instance); + } + + /** + * Destroys the currently activated component, if any, and emits the deactivate event. + * + * This leaves the outlet's association with the `ActivatedRoute` intact so that a replacement + * component can be rendered for the same route. `deactivate` is implemented in terms of this, + * and the error boundary feature uses it to tear down the component that failed. + * @internal + */ + destroyActivatedComponent(): void { + if (!this.activated) { + return; + } + const c = this.component; + const wasErrorComponentActive = this.isErrorComponentActive; + this.inputBinder?.unsubscribeFromRouteData(this); + this.activated.destroy(); + this.activated = null; + this.isErrorComponentActive = false; + + // The error component is an internal implementation detail and is never emitted + // via `activateEvents` (which only emit the primary component). Therefore, we + // must not emit it via `deactivateEvents` either, to maintain symmetry. + if (!wasErrorComponentActive) { + this.deactivateEvents.emit(c); + } + } + + /** + * Creates `component` for `activatedRoute` and makes it the component rendered by this outlet, + * binding the route data to its inputs. + * + * Shared by the regular activation path and by the error boundary feature, which uses it to + * render the route's `errorComponent` in place of the component that failed. + * @internal + */ + activateComponent( + component: Type, + activatedRoute: ActivatedRoute, + environmentInjector: EnvironmentInjector, + childContexts: ChildrenOutletContexts, + onError?: (error: Error, details?: ErrorDetails) => void, + ): ComponentRef { + const componentRef = this.location.createComponent(component, { + index: this.location.length, + injector: new OutletInjector( + activatedRoute, + childContexts, + this.location.injector, + this.routerOutletData, + ), + environmentInjector, + onError, + }); + this.activated = componentRef; this.inputBinder?.bindActivatedRouteToOutletComponent(this, this.location.injector); - this.activateEvents.emit(this.activated.instance); + return componentRef; } } @@ -455,8 +569,8 @@ export const INPUT_BINDER = new InjectionToken( * retained if the data got removed from the route (i.e. if a query parameter is removed). * The `unmatchedInputBehavior` option can be used to configure this behavior. * - * The `RouterOutlet` should unregister itself when destroyed via `unsubscribeFromRouteData` so that - * the subscriptions are cleaned up. + * The `RouterOutlet` should unregister itself when deactivated or destroyed via + * `unsubscribeFromRouteData` so that the subscriptions are cleaned up. */ @Injectable() export class RoutedComponentInputBinder { @@ -494,7 +608,7 @@ export class RoutedComponentInputBinder { const {handledKeys, createdEffects} = this.feature.createResourceOutletBindingEffects( outlet.activatedComponentRef, activatedRoute, - injector, + outlet.isErrorComponentActive, ); effects.push(...createdEffects); keysBoundToBlockingResources = handledKeys; @@ -517,7 +631,7 @@ export class RoutedComponentInputBinder { ...queryParams, ...params, ...data, - ...(activatedRoute.resources || {}), + ...activatedRoute.resources, }; // Get the first result from the data subscription synchronously so it's available to // the component as soon as possible (and doesn't require a second change detection). @@ -536,14 +650,14 @@ export class RoutedComponentInputBinder { if ( !outlet.isActivated || !outlet.activatedComponentRef || - outlet.activatedRoute !== activatedRoute || - activatedRoute.component === null + outlet.activatedRoute !== activatedRoute ) { this.unsubscribeFromRouteData(outlet); return; } - const currentMirror = reflectComponentType(activatedRoute.component); + const componentType = outlet.activatedComponentRef.componentType; + const currentMirror = reflectComponentType(componentType); if (!currentMirror) { this.unsubscribeFromRouteData(outlet); return; @@ -565,6 +679,11 @@ export class RoutedComponentInputBinder { if (keysBoundToBlockingResources.includes(templateName)) { continue; } + // Skip binding 'error' to error component because we bind it separately + // to the caught error. + if (outlet.isErrorComponentActive && templateName === 'error') { + continue; + } const value = data[templateName]; if (value !== undefined || behavior === 'alwaysUndefined' || seenKeys.has(templateName)) { outlet.activatedComponentRef.setInput(templateName, value); diff --git a/packages/router/src/errors.ts b/packages/router/src/errors.ts index 734d56e1c807..bf7652f0294e 100644 --- a/packages/router/src/errors.ts +++ b/packages/router/src/errors.ts @@ -29,4 +29,6 @@ export const enum RuntimeErrorCode { INFINITE_REDIRECT = 4016, INVALID_ROUTER_LINK_INPUTS = 4017, ERROR_PARSING_URL = 4018, + PROTOCOL_RELATIVE_URL_NOT_ALLOWED = 4019, + CANNOT_READ_RESOURCES_SYNCHRONOUSLY = 4020, } diff --git a/packages/router/src/index.ts b/packages/router/src/index.ts index abfa4b04e49b..3459da2cffb5 100644 --- a/packages/router/src/index.ts +++ b/packages/router/src/index.ts @@ -7,6 +7,7 @@ */ export {createUrlTreeFromSnapshot} from './create_url_tree'; +export {nonBlocking} from './router_resource'; export {RouterLink, RouterLinkWithHref} from './directives/router_link'; export {RouterLinkActive} from './directives/router_link_active'; export {ROUTER_OUTLET_DATA, RouterOutlet, RouterOutletContract} from './directives/router_outlet'; @@ -65,6 +66,8 @@ export { RunGuardsAndResolvers, UrlMatcher, UrlMatchResult, + ResourceContext, + ResourceResult, } from './models'; export {ViewTransitionInfo, ViewTransitionsFeatureOptions} from './utils/view_transition'; @@ -72,6 +75,7 @@ export * from './models_deprecated'; export {Navigation, NavigationExtras, UrlCreationOptions} from './navigation_transition'; export {DefaultTitleStrategy, TitleStrategy} from './page_title_strategy'; export { + AutoCleanupInjectorsFeature, ComponentInputBindingFeature, DebugTracingFeature, DisabledInitialNavigationFeature, @@ -91,6 +95,7 @@ export { withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withExperimentalAutoCleanupInjectors, + withAutoCleanupInjectors, withExperimentalPlatformNavigation, withHashLocation, withInMemoryScrolling, @@ -98,6 +103,11 @@ export { withPreloading, withRouterConfig, withViewTransitions, + withRouterResources, + RouterResourcesFeature, + withErrorBoundaries, + ErrorBoundaryOptions, + ErrorBoundariesFeature, } from './provide_router'; export { diff --git a/packages/router/src/models.ts b/packages/router/src/models.ts index ae67d473673e..cbf5ede2f8d2 100644 --- a/packages/router/src/models.ts +++ b/packages/router/src/models.ts @@ -13,61 +13,71 @@ import { NgModuleFactory, Provider, ProviderToken, + Resource, Signal, Type, - Resource, + WritableResource, } from '@angular/core'; import {Observable} from 'rxjs'; export {DefaultExport} from '@angular/core'; import type {ActivatedRouteSnapshot, RouterStateSnapshot} from './router_state'; -import {ParamMap, Params} from './shared'; +import {Params} from './shared'; import type {UrlSegment, UrlSegmentGroup, UrlTree} from './url_tree'; /** * The expected return type of a `resources` function. - * @experimental + * @developerPreview 22.2 */ -export type ResourceResult = Record>; +export type ResourceResult = Record< + string, + Resource & Pick, 'reload'> +>; // Developer notes: properties are exposed as a plain Record (`Params`) rather than a `ParamMap` // to allow future type-check layers to infer exact keys (e.g., `{ id: string }`). // Same applies to data and queryparams. /** * The contextual information provided to a `resources` function. - * @experimental + * @developerPreview 22.2 */ export interface ResourceContext { /** - * The matrix parameters of the route. + * The path and matrix parameters available to the route. * - * @experimental + * @developerPreview 22.2 */ params: Signal; /** * The query parameters of the route. * - * @experimental + * @developerPreview 22.2 */ queryParams: Signal; /** * The URL fragment. - * @experimental + * @developerPreview 22.2 */ fragment: Signal; + // TODO(v23): Remove data from ResourceContext (or restrict to static data) in 3p. + // 3p-only-start /** * Data provided in the route configuration. * - * @experimental + * @developerPreview 22.2 */ data: Signal>; + // 3p-only-end /** - * The static activated route snapshot for this navigation. - * Useful for reading initial static configuration statically without - * reacting to future parameter changes on reused routes. - * @experimental + * Resources inherited from ancestor routes, keyed by name. + * + * Read this signal inside a reactive context such as a resource's `params` function (for example, + * with `chain(ctx.resources()['user'])`) rather than synchronously in the `resources` function + * body, as ancestor `resources` functions may still be initializing asynchronously. + * + * @developerPreview 22.3 */ - snapshot: ActivatedRouteSnapshot; + resources: Signal; } /** @@ -655,6 +665,16 @@ export interface Route { */ component?: Type; + /** + * The component to instantiate when an error occurs in this route. + * + * Requires the error boundary feature to be enabled with `withErrorBoundaries`. + * + * @see [Error boundaries](guide/routing/error-boundaries) + * @developerPreview 22.3 + */ + errorComponent?: Type; + /** * An object specifying a lazy-loaded component. * @@ -741,6 +761,7 @@ export interface Route { * */ canDeactivate?: Array | DeprecatedGuard>; + // 3p-only-start /** * An array of `CanLoadFn` or DI tokens used to look up `CanLoad()` * handlers, in order to determine if the current user is allowed to @@ -751,6 +772,7 @@ export interface Route { * @deprecated Use `canMatch` instead */ canLoad?: Array; + // 3p-only-end /** * Additional developer-defined data provided to the component via * `ActivatedRoute`. By default, no additional data is passed. @@ -765,8 +787,7 @@ export interface Route { /** * A function that returns a record of resources. * This function is executed during the Main Loading Phase of a navigation. - * @experimental - * @internal + * @developerPreview 22.2 */ resources?: (ctx: ResourceContext) => ResourceResult | Promise; @@ -1677,4 +1698,19 @@ export interface NavigationBehaviorOptions { * @see InMemoryScrollingOptions */ readonly scroll?: 'manual' | 'after-transition'; + + /** + * Configures whether the browser resets focus when the navigation is complete. It only applies + * when the router uses the browser Navigation API (`withExperimentalPlatformNavigation`). + * + * - When 'after-transition' (the default), the browser moves focus to the first element with the + * `autofocus` attribute, or to the ``. + * - When 'manual', the browser doesn't reset focus. For example, a search field that updates a + * query parameter as the user types keeps focus. + * + * @see [NavigateEvent#intercept](https://developer.mozilla.org/docs/Web/API/NavigateEvent/intercept) + * + * @experimental 22.3 + */ + readonly focusReset?: 'manual' | 'after-transition'; } diff --git a/packages/router/src/navigation_transition.ts b/packages/router/src/navigation_transition.ts index bf09b14bb44a..e5c85dba32a4 100644 --- a/packages/router/src/navigation_transition.ts +++ b/packages/router/src/navigation_transition.ts @@ -19,7 +19,7 @@ import { untracked, ɵWritable as Writable, } from '@angular/core'; -import {BehaviorSubject, EMPTY, from, Observable, of, Subject} from 'rxjs'; +import {BehaviorSubject, combineLatest, EMPTY, from, Observable, of, Subject} from 'rxjs'; import {catchError, filter, finalize, map, switchMap, take, takeUntil, tap} from 'rxjs/operators'; import {createRouterState} from './create_router_state'; @@ -61,6 +61,7 @@ import { } from './navigation_canceling_error'; import {ActivateRoutes} from './operators/activate_routes'; import {checkGuards} from './operators/check_guards'; +import {loadComponents} from './operators/load_components'; import {recognize} from './operators/recognize'; import {resolveData} from './operators/resolve_data'; import {ROUTER_RESOURCES_FEATURE} from './router_resource_feature'; @@ -203,7 +204,7 @@ export interface UrlCreationOptions { * * @see {@link Router#navigate} * @see {@link Router#navigateByUrl} - * @see {@link Router#createurltree} + * @see {@link Router#createUrlTree} * @see [Routing and Navigation guide](guide/routing/common-router-tasks) * @see {@link UrlCreationOptions} * @see {@link NavigationBehaviorOptions} @@ -232,7 +233,7 @@ export type RestoredState = { * * *id* : The unique identifier of the current navigation. * * *initialUrl* : The target URL passed into the `Router#navigateByUrl()` call before navigation. * This is the value before the router has parsed or applied redirects to it. - * * *extractedUrl* : The initial target URL after being parsed with `UrlSerializer.extract()`. + * * *extractedUrl* : The initial target URL after being parsed with `UrlHandlingStrategy.extract()`. * * *finalUrl* : The extracted URL after redirects have been applied. * This URL may not be available immediately, therefore this property can be `undefined`. * It is guaranteed to be set after the `RoutesRecognized` event fires. @@ -318,6 +319,7 @@ export interface NavigationTransition { urlAfterRedirects?: UrlTree; rawUrl: UrlTree; extras: NavigationExtras; + hasUAVisualTransition?: boolean; resolve: (value: boolean | PromiseLike) => void; reject: (reason?: any) => void; promise: Promise; @@ -414,6 +416,7 @@ export class NavigationTransitions { | 'currentRawUrl' | 'rawUrl' | 'extras' + | 'hasUAVisualTransition' | 'resolve' | 'reject' | 'promise' @@ -720,31 +723,6 @@ export class NavigationTransitions { ); }), - // --- LOAD COMPONENTS --- - switchTap((t: NavigationTransition) => { - const loadComponents = (route: ActivatedRouteSnapshot): Array> => { - const loaders: Array> = []; - if (route.routeConfig?._loadedComponent) { - route.component = route.routeConfig?._loadedComponent; - } else if (route.routeConfig?.loadComponent) { - const injector = route._environmentInjector; - loaders.push( - this.configLoader - .loadComponent(injector, route.routeConfig) - .then((loadedComponent) => { - route.component = loadedComponent; - }), - ); - } - for (const child of route.children) { - loaders.push(...loadComponents(child)); - } - return loaders; - }; - const loaders = loadComponents(t.targetSnapshot!.root); - return loaders.length === 0 ? of(t) : from(Promise.all(loaders).then(() => t)); - }), - switchMap((t: NavigationTransition) => { const {newlyCreatedRoutes, state} = createRouterState( router.routeReuseStrategy, @@ -766,7 +744,17 @@ export class NavigationTransitions { return of(t); }), - this.routerResourcesFeature?.setupAndRunResources(abortController.signal) ?? ((t) => t), + // --- LOAD COMPONENTS AND RESOURCES --- + switchMap((t: NavigationTransition) => { + const loadComponents$ = of(t).pipe(loadComponents(this.configLoader)); + if (!this.routerResourcesFeature) { + return loadComponents$; + } + const setupResources$ = of(t).pipe( + this.routerResourcesFeature.setupAndRunResources(abortController.signal), + ); + return combineLatest([loadComponents$, setupResources$]).pipe(map(() => t)); + }), switchTap(() => this.afterPreactivation()), switchMap(() => { @@ -775,6 +763,7 @@ export class NavigationTransitions { this.environmentInjector, currentSnapshot.root, targetSnapshot!.root, + overallTransitionState.hasUAVisualTransition, ); // If view transitions are enabled, block the navigation until the view diff --git a/packages/router/src/operators/activate_routes.ts b/packages/router/src/operators/activate_routes.ts index 7f0569d3bfc7..207e0010589f 100644 --- a/packages/router/src/operators/activate_routes.ts +++ b/packages/router/src/operators/activate_routes.ts @@ -9,7 +9,7 @@ import {ActivationEnd, ChildActivationEnd, Event} from '../events'; import type {DetachedRouteHandleInternal, RouteReuseStrategy} from '../route_reuse_strategy'; import type {ChildrenOutletContexts} from '../router_outlet_context'; -import {ActivatedRoute, advanceActivatedRoute, RouterState} from '../router_state'; +import {ActivatedRoute, advanceActivatedRoute, RouterState, setRouterState} from '../router_state'; import {nodeChildrenAsMap, TreeNode} from '../utils/tree'; let warnedAboutUnsupportedInputBinding = false; @@ -23,6 +23,7 @@ export class ActivateRoutes { ) {} activate(parentContexts: ChildrenOutletContexts): void { + setRouterState(this.futureState, this.futureState._root); const futureRoot = this.futureState._root; const currRoot = this.currState ? this.currState._root : null; @@ -86,7 +87,13 @@ export class ActivateRoutes { ): void { // If there is no component, the Route is never attached to an outlet (because there is no // component to attach). - if (route.value.component && this.routeReuseStrategy.shouldDetach(route.value.snapshot)) { + const isErrorComponentActive = parentContexts.getContext(route.value.outlet)?.outlet + ?.isErrorComponentActive; + if ( + !isErrorComponentActive && + route.value.component && + this.routeReuseStrategy.shouldDetach(route.value.snapshot) + ) { this.detachAndStoreRouteSubtree(route, parentContexts); } else { this.deactivateRouteAndOutlet(route, parentContexts); @@ -107,7 +114,11 @@ export class ActivateRoutes { if (context && context.outlet) { const componentRef = context.outlet.detach(); - const contexts = context.children.onOutletDeactivated(); + // Reset child contexts so subsequent activations in this outlet do not mutate the detached + // tree (see #57285). The detached outlets are still alive, so `onOutletDeactivated()` (which + // the destruction path uses to prune) is intentionally not called here. + const contexts = context.children.contexts; + context.resetChildren(); this.routeReuseStrategy.store(route.value.snapshot, {componentRef, route, contexts}); } } @@ -177,6 +188,10 @@ export class ActivateRoutes { if (future.component) { // If we have a normal route, we need to go through an outlet. const context = parentContexts.getOrCreateContext(future.outlet); + if (context.outlet?.isErrorComponentActive) { + context.outlet.deactivate(); + context.outlet.activateWith(future, context.injector); + } this.activateChildRoutes(futureNode, currNode, context.children); } else { // if we have a componentless route, we recurse but keep the same outlet map. diff --git a/packages/router/src/operators/check_guards.ts b/packages/router/src/operators/check_guards.ts index f203099d2e4f..f1f05c8db680 100644 --- a/packages/router/src/operators/check_guards.ts +++ b/packages/router/src/operators/check_guards.ts @@ -217,12 +217,13 @@ function runCanDeactivate( const canDeactivateObservables = canDeactivate.map((c: any) => { const closestInjector = currARS._environmentInjector; const guard = getTokenOrFunctionIdentity(c, closestInjector); - const guardVal = isCanDeactivate(guard) - ? guard.canDeactivate(component, currARS, currRSS, futureRSS) - : runInInjectionContext(closestInjector, () => - (guard as CanDeactivateFn)(component, currARS, currRSS, futureRSS), - ); - return wrapIntoObservable(guardVal).pipe(first()); + return callGuard(() => + isCanDeactivate(guard) + ? guard.canDeactivate(component, currARS, currRSS, futureRSS) + : runInInjectionContext(closestInjector, () => + (guard as CanDeactivateFn)(component, currARS, currRSS, futureRSS), + ), + ).pipe(first()); }); return of(canDeactivateObservables).pipe(prioritizedGuardValue()); } @@ -234,23 +235,37 @@ export function runCanLoadGuards( urlSerializer: UrlSerializer, abortSignal?: AbortSignal, ): Observable { - const canLoad = route.canLoad; + // TODO: Remove `canLoad` check once removed from 3p. + const canLoad = (route as any).canLoad; if (canLoad === undefined || canLoad.length === 0) { return of(true); } const canLoadObservables = canLoad.map((injectionToken: any) => { const guard = getTokenOrFunctionIdentity(injectionToken, injector); - const guardVal = isCanLoad(guard) - ? guard.canLoad(route, segments) - : runInInjectionContext(injector, () => (guard as CanLoadFn)(route, segments)); - const obs$ = wrapIntoObservable(guardVal); + const obs$ = callGuard(() => + isCanLoad(guard) + ? guard.canLoad(route, segments) + : runInInjectionContext(injector, () => (guard as CanLoadFn)(route, segments)), + ); return abortSignal ? obs$.pipe(takeUntilAbort(abortSignal)) : obs$; }); return of(canLoadObservables).pipe(prioritizedGuardValue(), redirectIfUrlTree(urlSerializer)); } +/** + * Calls a guard right away, but delivers a synchronous throw as an observable error so that + * `prioritizedGuardValue` orders it with the other guards' results. + */ +function callGuard(guardFn: () => T | Promise | Observable): Observable { + try { + return wrapIntoObservable(guardFn()); + } catch (e) { + return new Observable((subscriber) => subscriber.error(e)); + } +} + function redirectIfUrlTree(urlSerializer: UrlSerializer): OperatorFunction { return pipe( tap((result: GuardResult) => { @@ -275,12 +290,13 @@ export function runCanMatchGuards( const canMatchObservables = canMatch.map((injectionToken) => { const guard = getTokenOrFunctionIdentity(injectionToken as ProviderToken, injector); - const guardVal = isCanMatch(guard) - ? guard.canMatch(route, segments, currentSnapshot) - : runInInjectionContext(injector, () => - (guard as CanMatchFn)(route, segments, currentSnapshot), - ); - return wrapIntoObservable(guardVal).pipe(takeUntilAbort(abortSignal)); + return callGuard(() => + isCanMatch(guard) + ? guard.canMatch(route, segments, currentSnapshot) + : runInInjectionContext(injector, () => + (guard as CanMatchFn)(route, segments, currentSnapshot), + ), + ).pipe(takeUntilAbort(abortSignal)); }); return of(canMatchObservables).pipe(prioritizedGuardValue(), redirectIfUrlTree(urlSerializer)); diff --git a/packages/router/src/operators/load_components.ts b/packages/router/src/operators/load_components.ts new file mode 100644 index 000000000000..eafd5bca36ce --- /dev/null +++ b/packages/router/src/operators/load_components.ts @@ -0,0 +1,54 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import {from, MonoTypeOperatorFunction, of} from 'rxjs'; +import {switchMap} from 'rxjs/operators'; + +import type {NavigationTransition} from '../navigation_transition'; +import {RouterConfigLoader} from '../router_config_loader'; +import {ActivatedRoute} from '../router_state'; +import {TreeNode} from '../utils/tree'; + +export function loadComponents( + configLoader: RouterConfigLoader, +): MonoTypeOperatorFunction { + return switchMap((t) => { + const loaders = collectComponentLoaders(t.targetRouterState!._root, configLoader); + return loaders.length === 0 ? of(t) : from(Promise.all(loaders).then(() => t)); + }); +} + +/** + * Recursively traverses the router state tree to ensure components are loaded for each route. + * If a route's component has already been loaded, it is assigned synchronously. + * Otherwise, if `loadComponent` is present, an asynchronous loader is scheduled and collected. + */ +function collectComponentLoaders( + node: TreeNode, + configLoader: RouterConfigLoader, +): Array> { + const loaders: Array> = []; + const route = node.value; + const snapshot = route._futureSnapshot; + if (snapshot.routeConfig?._loadedComponent) { + snapshot.component = snapshot.routeConfig._loadedComponent; + route.component = snapshot.routeConfig._loadedComponent; + } else if (snapshot.routeConfig?.loadComponent) { + const injector = snapshot._environmentInjector; + loaders.push( + configLoader.loadComponent(injector, snapshot.routeConfig).then((loadedComponent) => { + snapshot.component = loadedComponent; + route.component = loadedComponent; + }), + ); + } + for (const child of node.children) { + loaders.push(...collectComponentLoaders(child, configLoader)); + } + return loaders; +} diff --git a/packages/router/src/operators/prioritized_guard_value.ts b/packages/router/src/operators/prioritized_guard_value.ts index 01977b5f36ab..6c2623f9dc99 100644 --- a/packages/router/src/operators/prioritized_guard_value.ts +++ b/packages/router/src/operators/prioritized_guard_value.ts @@ -6,8 +6,8 @@ * found in the LICENSE file at https://angular.dev/license */ -import {combineLatest, Observable, OperatorFunction} from 'rxjs'; -import {filter, map, startWith, switchMap, take} from 'rxjs/operators'; +import {combineLatest, Observable, of, OperatorFunction} from 'rxjs'; +import {catchError, filter, map, startWith, switchMap, take} from 'rxjs/operators'; import {GuardResult, RedirectCommand} from '../models'; import {isUrlTree, UrlTree} from '../url_tree'; @@ -18,7 +18,19 @@ declare type INTERIM_VALUES = typeof INITIAL_VALUE | GuardResult; export function prioritizedGuardValue(): OperatorFunction[], GuardResult> { return switchMap((obs) => { return combineLatest( - obs.map((o) => o.pipe(take(1), startWith(INITIAL_VALUE as INTERIM_VALUES))), + obs.map((o) => + o.pipe( + take(1), + // A thrown `RedirectCommand` is a result, so it must respect the guard order too. + catchError((e) => { + if (e instanceof RedirectCommand) { + return of(e); + } + throw e; + }), + startWith(INITIAL_VALUE as INTERIM_VALUES), + ), + ), ).pipe( map((results: INTERIM_VALUES[]) => { for (const result of results) { diff --git a/packages/router/src/operators/setup_and_run_resources.ts b/packages/router/src/operators/setup_and_run_resources.ts index 1d5f5d786735..41c9a50b9968 100644 --- a/packages/router/src/operators/setup_and_run_resources.ts +++ b/packages/router/src/operators/setup_and_run_resources.ts @@ -6,31 +6,84 @@ * found in the LICENSE file at https://angular.dev/license */ import { + computed, createEnvironmentInjector, - runInInjectionContext, - Resource, - effect, DestroyRef, + effect, + EffectRef, + EnvironmentInjector, + ɵisInParamsFunction as isInParamsFunction, + Resource, + ResourceParamsStatus, + runInInjectionContext, + ɵRuntimeError as RuntimeError, + signal, } from '@angular/core'; import {OperatorFunction, pipe} from 'rxjs'; -import {ResourceContext, ResourceResult} from '../models'; +import {RuntimeErrorCode} from '../errors'; +import {ResourceContext, ResourceResult, Route} from '../models'; import {NavigationTransition} from '../navigation_transition'; -import {ActivatedRoute, ActivatedRouteSnapshot, initializeActivatedRoute} from '../router_state'; -import {TreeNode} from '../utils/tree'; import { BLOCKING_SYMBOL, - hasValueOrResolved, InternalRouterResource, routerResource, SOURCE_RESOURCE_SYMBOL, } from '../router_resource'; +import {ActivatedRoute, initializeActivatedRoute} from '../router_state'; +import {TreeNode} from '../utils/tree'; import {switchTap} from './switch_tap'; +/** + * Initializes `_resourceContextSignal` (backing `ctx.resources` for descendants) on a route. + * + * Runs in a synchronous top-down pre-pass before any `resources` functions execute so that + * descendants always have a signal to read even while an ancestor's async `resources` function + * is still pending. + */ +function initializeRouteResources(route: ActivatedRoute, parentRoute: ActivatedRoute | null): void { + if (route._resourceContextSignal !== undefined) { + return; + } + // Note: Inherited resources are bound to the parent `ActivatedRoute` at activation time. + // If a custom `RouteReuseStrategy` detaches a child route while an ancestor route with + // `resources` is deactivated, the ancestor's `_localInjector` (and its resources) will be + // destroyed on deactivation, which is not supported when reattaching the child under a new parent. + const parentContextSignal = parentRoute?._resourceContextSignal; + if (!route.routeConfig?.resources) { + route._resourceContextSignal = parentContextSignal; + return; + } + const ownRawResources = signal(undefined); + route._ownRawResourcesSignal = ownRawResources; + route._resourceContextSignal = computed(() => { + const parentResources = parentContextSignal?.(); + const ownResources = ownRawResources(); + if (ownResources === undefined) { + if (isInParamsFunction()) { + // Throw LOADING while this route's async `resources` setup is still in flight so + // descendant resources reading `ctx.resources()` inside `params` stay in loading state. + throw ResourceParamsStatus.LOADING; + } + + throw new RuntimeError( + RuntimeErrorCode.CANNOT_READ_RESOURCES_SYNCHRONOUSLY, + ngDevMode && + `Router resources should be accessed inside a resource's 'params' ` + + `(e.g. 'resource({ params: ({chain}) => chain(ctx.resources()["name"]) })').`, + ); + } + return { + ...parentResources, + ...ownResources, + }; + }); +} + export function setupAndRunResources( abortSignal: AbortSignal, ): OperatorFunction { return pipe( - switchTap(({newlyCreatedRoutes, targetRouterState}) => { + switchTap(async ({newlyCreatedRoutes, targetRouterState}) => { if (!newlyCreatedRoutes || !targetRouterState || abortSignal.aborted) { return; } @@ -38,37 +91,68 @@ export function setupAndRunResources( const resourceSetupPromises: Array> = []; const blockingResourcePromises: Array> = []; - const traverse = (stateNode: TreeNode) => { + const traverse = ( + stateNode: TreeNode, + parentRoute: ActivatedRoute | null, + ) => { const route = stateNode.value; if (route) { initializeActivatedRoute(route); - processRoute( - route, - newlyCreatedRoutes, - resourceSetupPromises, - abortSignal, - blockingResourcePromises, - ); + if ( + route.routeConfig?.resources !== undefined || + parentRoute?._resourceContextSignal !== undefined + ) { + initializeRouteResources(route, parentRoute); + } + processRoute(route, parentRoute, newlyCreatedRoutes, resourceSetupPromises, abortSignal); } for (const childState of stateNode.children) { - traverse(childState); + traverse(childState, route ?? parentRoute); } }; - traverse(targetRouterState._root); + traverse(targetRouterState._root, null); - return Promise.all(resourceSetupPromises).then(() => Promise.all(blockingResourcePromises)); + await Promise.all(resourceSetupPromises); + finalizeResources(targetRouterState._root, null, blockingResourcePromises, abortSignal); + await Promise.all(blockingResourcePromises); }), ); } +/** + * Populates `route.resources` and `route._futureSnapshot.resources` top-down once all + * `resources` functions have completed, and registers blocking resource promises. + */ +function finalizeResources( + stateNode: TreeNode, + parentRoute: ActivatedRoute | null, + blockingResourcePromises: Array>, + abortSignal: AbortSignal, +): void { + const route = stateNode.value; + if (route && route._resourceContextSignal) { + route.resources ??= { + ...parentRoute?.resources, + ...route._ownResources, + }; + route._futureSnapshot.resources = route.resources; + if (route._ownResources) { + setupBlocking(route, route._ownResources, blockingResourcePromises, abortSignal); + } + } + for (const childState of stateNode.children) { + finalizeResources(childState, route ?? parentRoute, blockingResourcePromises, abortSignal); + } +} + function processRoute( route: ActivatedRoute, + parentRoute: ActivatedRoute | null, newlyCreatedRoutes: Set, resourceSetupPromises: Array>, abortSignal: AbortSignal, - blockingResourcePromises: Array>, ) { const resources = route.routeConfig?.resources; if (!resources) { @@ -77,25 +161,19 @@ function processRoute( if (newlyCreatedRoutes.has(route)) { // This route is new. We need to run its resources function once. - resourceSetupPromises.push( - setupNewRouterResources(route._futureSnapshot, route, abortSignal, blockingResourcePromises), - ); + resourceSetupPromises.push(setupNewRouterResources(route, parentRoute, resources, abortSignal)); } else { - updateExistingResources(route, blockingResourcePromises, abortSignal); + updateExistingResources(route); } } async function setupNewRouterResources( - snapshot: ActivatedRouteSnapshot, route: ActivatedRoute, + parentRoute: ActivatedRoute | null, + resourcesFn: NonNullable, abortSignal: AbortSignal, - blockingResourcePromises: Promise[], ) { - const resourcesFn = snapshot?.routeConfig?.resources; - const parentInjector = snapshot?._environmentInjector; - if (!resourcesFn || !parentInjector) { - return; - } + const parentInjector = route._futureSnapshot._environmentInjector; let childInjector = route._localInjector; if (!childInjector) { @@ -107,68 +185,59 @@ async function setupNewRouterResources( params: route.paramsSignal, queryParams: route.queryParamsSignal, fragment: route.fragmentSignal, - data: route.dataSignal, - snapshot: route._futureSnapshot, + // TODO(v23): Remove data from ResourceContext (or restrict to static data) in 3p. + data: route.dataSignal, // 3p-only + resources: parentRoute?._resourceContextSignal ?? signal({}).asReadonly(), }; const resourceResultRaw = runInInjectionContext(childInjector, () => resourcesFn(context)); - let resourceResult: ResourceResult; - if (resourceResultRaw instanceof Promise) { - resourceResult = await resourceResultRaw; - // Bail out if the router cancelled the navigation (and destroyed our injector!) - // while we were waiting. - if (abortSignal.aborted) return; - } else { - resourceResult = resourceResultRaw as ResourceResult; + const resourceResult = + resourceResultRaw instanceof Promise ? await resourceResultRaw : resourceResultRaw; + if (abortSignal.aborted) return; + if (!resourceResult) { + route._ownRawResourcesSignal?.set({}); + return; } - if (!resourceResult) return; - const wrappedResult: ResourceResult = {}; - for (const [key, res] of Object.entries(resourceResult)) { - if (typeof ngDevMode === 'undefined' || ngDevMode) { + runInInjectionContext(childInjector, () => { + for (const [key, res] of Object.entries(resourceResult)) { if ( - !res || - typeof res !== 'object' || - typeof (res as Partial>).snapshot !== 'function' + (typeof ngDevMode === 'undefined' || ngDevMode) && + (!res || + typeof res !== 'object' || + typeof (res as Partial>).snapshot !== 'function') ) { throw new Error( `Invalid resource returned for key "${key}". Expected a Resource, but got ${res === null ? 'null' : typeof res}.`, ); } + wrappedResult[key] = routerResource(res); } + }); - wrappedResult[key] = runInInjectionContext(childInjector, () => routerResource(res)); - } - - route.resources = route._futureSnapshot.resources = snapshot.resources = wrappedResult; - setupBlocking(route, wrappedResult, blockingResourcePromises, abortSignal); + // `_ownResources` holds the `routerResource()` wrappers (which freeze state during navigation + // for UI consumers on `ActivatedRoute.resources`), while `_ownRawResourcesSignal` exposes the + // raw unfrozen resources to descendants via `ctx.resources()` so chained resources can resolve. + route._ownResources = wrappedResult; + route._ownRawResourcesSignal?.set(resourceResult); } -function updateExistingResources( - route: ActivatedRoute, - blockingResourcePromises: Promise[], - abortSignal: AbortSignal, -) { - // This route is reused. We must eagerly update the resource context signals - // so that resources can react and fetch new data during the pending navigation. - const currentResources = route.snapshot?.resources; - if (!currentResources) { +function updateExistingResources(route: ActivatedRoute) { + // This route is reused. If a resource previously failed and the route is reused identically, + // the parameter signals won't change, meaning the internal effect won't automatically refetch. + // We must manually trigger a reload to ensure the new navigation attempts a retry. + const ownResources = route._ownResources; + if (!ownResources) { return; } - Object.values(currentResources).forEach((r) => { + for (const r of Object.values(ownResources)) { const underlyingRes = (r as InternalRouterResource)[SOURCE_RESOURCE_SYMBOL]; if (underlyingRes.status() === 'error') { - // If a resource previously failed and the route is reused identically, - // the parameter signals won't change, meaning the internal effect won't automatically refetch. - // We must manually trigger a reload to ensure the new navigation attempts a retry. - (underlyingRes as unknown as {reload?: () => boolean}).reload?.(); + (underlyingRes as Partial).reload?.(); } - }); - - route._futureSnapshot.resources = currentResources; - setupBlocking(route, currentResources, blockingResourcePromises, abortSignal); + } } function setupBlocking( @@ -181,52 +250,53 @@ function setupBlocking( const childInjector = route._localInjector; if (!childInjector || !resourceResult) return; - for (const r of Object.values(resourceResult)) { - const res = r as InternalRouterResource; - if (res[BLOCKING_SYMBOL] === false) { - continue; + for (const res of Object.values(resourceResult)) { + const internalRes = res as InternalRouterResource; + if (internalRes[BLOCKING_SYMBOL] !== false) { + blockingResourcePromises.push(waitForResource(internalRes, childInjector, abortSignal)); } - const promise = new Promise((resolve, reject) => { - const underlyingRes = res[SOURCE_RESOURCE_SYMBOL]; - let isDestroyed = false; - let unregisterOnDestroy: (() => void) | undefined; - - const cleanup = () => { - isDestroyed = true; - blockingEffect.destroy(); - unregisterOnDestroy?.(); - abortSignal.removeEventListener('abort', onAbort); - }; + } +} - const onAbort = () => { - cleanup(); - resolve(); - }; +function waitForResource( + resource: InternalRouterResource, + injector: EnvironmentInjector, + abortSignal: AbortSignal, +): Promise { + return new Promise((resolve, reject) => { + const underlyingRes = resource[SOURCE_RESOURCE_SYMBOL]; + let isDestroyed = false; + let blockingEffect: EffectRef | undefined; + let unregisterDestroy: (() => void) | undefined; - abortSignal.addEventListener('abort', onAbort, {once: true}); + const cleanup = () => { + isDestroyed = true; + blockingEffect?.destroy(); + unregisterDestroy?.(); + abortSignal.removeEventListener('abort', onDone); + }; - const blockingEffect = effect( - () => { - if (isDestroyed) { - return; - } - const status = underlyingRes.status(); - if (status === 'error') { - cleanup(); - reject(underlyingRes.error()); - } else if (hasValueOrResolved(underlyingRes)) { - cleanup(); - resolve(); - } - }, - {injector: childInjector, manualCleanup: true}, - ); + const onDone = () => { + cleanup(); + resolve(); + }; - unregisterOnDestroy = childInjector.get(DestroyRef).onDestroy(() => { - cleanup(); - resolve(); - }); - }); - blockingResourcePromises.push(promise); - } + abortSignal.addEventListener('abort', onDone, {once: true}); + unregisterDestroy = injector.get(DestroyRef).onDestroy(onDone); + + blockingEffect = effect( + () => { + if (isDestroyed) return; + const status = underlyingRes.status(); + if (status === 'error') { + cleanup(); + reject(underlyingRes.error()); + } else if (!underlyingRes.isLoading()) { + cleanup(); + resolve(); + } + }, + {injector, manualCleanup: true}, + ); + }); } diff --git a/packages/router/src/page_title_strategy.ts b/packages/router/src/page_title_strategy.ts index 3754ad69c7e2..f2a97e383044 100644 --- a/packages/router/src/page_title_strategy.ts +++ b/packages/router/src/page_title_strategy.ts @@ -72,9 +72,9 @@ export class DefaultTitleStrategy extends TitleStrategy { } /** - * Sets the title of the browser to the given value. + * Sets the title of the browser to the title built from the given router state. * - * @param title The `pageTitle` from the deepest primary route. + * @param snapshot The current router state. The title is taken from the deepest primary route. */ override updateTitle(snapshot: RouterStateSnapshot): void { const title = this.buildTitle(snapshot); diff --git a/packages/router/src/private_export.ts b/packages/router/src/private_export.ts index b506699c3fd1..b508c826258a 100644 --- a/packages/router/src/private_export.ts +++ b/packages/router/src/private_export.ts @@ -11,6 +11,3 @@ export {RestoredState as ɵRestoredState} from './navigation_transition'; export {loadChildren as ɵloadChildren} from './router_config_loader'; export {ROUTER_PROVIDERS as ɵROUTER_PROVIDERS} from './router_module'; export {afterNextNavigation as ɵafterNextNavigation} from './utils/navigations'; -export {withRouterResources as ɵwithRouterResources} from './provide_router'; -export {nonBlocking as ɵnonBlocking} from './router_resource'; -export {ResourceContext as ɵResourceContext, ResourceResult as ɵResourceResult} from './models'; diff --git a/packages/router/src/provide_router.ts b/packages/router/src/provide_router.ts index 424cc528be1d..a82f6a821697 100644 --- a/packages/router/src/provide_router.ts +++ b/packages/router/src/provide_router.ts @@ -19,7 +19,9 @@ import { ApplicationRef, ComponentRef, ENVIRONMENT_INITIALIZER, + EnvironmentInjector, EnvironmentProviders, + ErrorDetails, inject, InjectionToken, Injector, @@ -29,17 +31,16 @@ import { provideAppInitializer, provideEnvironmentInitializer, Provider, - runInInjectionContext, Type, ɵpublishNonCoreGlobalUtil, } from '@angular/core'; import {of, Subject} from 'rxjs'; import {INPUT_BINDER, RoutedComponentInputBinder} from './directives/router_outlet'; -import {createResourceOutletBindingEffects} from './router_resource'; import {Event, NavigationError, stringifyEvent} from './events'; import {RedirectCommand, Routes} from './models'; import {NAVIGATION_ERROR_HANDLER, NavigationTransitions} from './navigation_transition'; +import {setupAndRunResources} from './operators/setup_and_run_resources'; import {ROUTE_INJECTOR_CLEANUP, routeInjectorCleanup} from './route_injector_cleanup'; import {Router} from './router'; import { @@ -49,12 +50,15 @@ import { RouterConfigOptions, } from './router_config'; import {ROUTES} from './router_config_loader'; -import {setupAndRunResources} from './operators/setup_and_run_resources'; +import {ErrorBoundaryHandler} from './router_error_boundary'; +import {ROUTER_ERROR_BOUNDARY_HANDLER} from './router_error_boundary_feature'; import {PreloadingStrategy, RouterPreloader} from './router_preloader'; +import {createResourceOutletBindingEffects} from './router_resource'; import {ROUTER_SCROLLER, RouterScroller} from './router_scroller'; import {getLoadedRoutes, getRouterInstance, navigateByUrl} from './router_devtools'; +import {ROUTER_RESOURCES_FEATURE} from './router_resource_feature'; import {ActivatedRoute} from './router_state'; import {NavigationStateManager} from './statemanager/navigation_state_manager'; import {StateManager} from './statemanager/state_manager'; @@ -65,7 +69,6 @@ import { VIEW_TRANSITION_OPTIONS, ViewTransitionsFeatureOptions, } from './utils/view_transition'; -import {ROUTER_RESOURCES_FEATURE} from './router_resource_feature'; /** * Sets up providers necessary to enable `Router` functionality for the application. @@ -732,15 +735,15 @@ export function withNavigationErrorHandler( } /** - * A type alias for providers returned by `withExperimentalAutoCleanupInjectors` for use with `provideRouter`. + * A type alias for providers returned by `withAutoCleanupInjectors` for use with `provideRouter`. * - * @see {@link withExperimentalAutoCleanupInjectors} + * @see {@link withAutoCleanupInjectors} * @see {@link provideRouter} * - * @experimental 21.1 + * @publicApi 22.2 */ -export type ExperimentalAutoCleanupInjectorsFeature = - RouterFeature; +export type AutoCleanupInjectorsFeature = + RouterFeature; /** * Enables automatic destruction of unused route injectors. @@ -755,14 +758,25 @@ export type ExperimentalAutoCleanupInjectorsFeature = * should also implement `retrieveStoredRouteHandles` to ensure injectors for handles that will be * reattached are not destroyed. * - * @experimental 21.1 + * @publicApi 22.2 */ -export function withExperimentalAutoCleanupInjectors(): ExperimentalAutoCleanupInjectorsFeature { - return routerFeature(RouterFeatureKind.ExperimentalAutoCleanupInjectorsFeature, [ +export function withAutoCleanupInjectors(): AutoCleanupInjectorsFeature { + return routerFeature(RouterFeatureKind.AutoCleanupInjectorsFeature, [ {provide: ROUTE_INJECTOR_CLEANUP, useValue: routeInjectorCleanup}, ]); } +/** + * Enables automatic destruction of unused route injectors. + * + * @deprecated Use `withAutoCleanupInjectors` instead. + * @see {@link withAutoCleanupInjectors} + * @publicApi + */ +export function withExperimentalAutoCleanupInjectors(): AutoCleanupInjectorsFeature { + return withAutoCleanupInjectors(); +} + /** * A type alias for providers returned by `withComponentInputBinding` for use with `provideRouter`. * @@ -780,7 +794,7 @@ export type ComponentInputBindingFeature = * @see {@link withViewTransitions} * @see {@link provideRouter} * - * @publicApi + * @publicApi 22.3 */ export type ViewTransitionsFeature = RouterFeature; @@ -876,7 +890,7 @@ export function withComponentInputBinding( * @see [View Transitions on MDN](https://developer.chrome.com/docs/web-platform/view-transitions/) * @see [View Transitions API on MDN](https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API) * @see [Route transition animations](guide/routing/route-transition-animations) - * @developerPreview 19.0 + * @publicApi 22.3 */ export function withViewTransitions( options?: ViewTransitionsFeatureOptions, @@ -898,9 +912,9 @@ export function withViewTransitions( * @see {@link withRouterResources} * @see {@link provideRouter} * - * @experimental + * @developerPreview 22.2 */ -export type RouterResourcesFeature = RouterFeature; +export type RouterResourcesFeature = RouterFeature; /** * Enables `resources` capabilities for Route definitions. @@ -919,7 +933,7 @@ export type RouterResourcesFeature = RouterFeature; + + /** + * Optional global callback invoked when any route-level error is caught by the router error + * boundaries. + * + * The callback runs in the root injection context, so it can use `inject` to retrieve providers + * available at the root of the application. + */ + onError?: (error: Error, details?: ErrorDetails) => void; +} + +/** + * A type alias for providers returned by `withErrorBoundaries` for use with `provideRouter`. + * + * @see {@link withErrorBoundaries} + * @see {@link provideRouter} + * @see [Global error boundary configuration](guide/routing/error-boundaries#global-error-boundary-configuration) + * + * @developerPreview 22.3 + */ +export type ErrorBoundariesFeature = RouterFeature; + +/** + * Enables error boundary support in the Router. + * + * When enabled, errors thrown within routed components (lifecycle hooks, template bindings, + * resource loaders, and event handlers) are caught by the `RouterOutlet`. If the route or + * feature defines an `errorComponent`, it is rendered in place of the failed component, + * receiving the caught error through an `error` input. + * + * @usageNotes + * + * ```ts + * bootstrapApplication(AppComponent, { + * providers: [ + * provideRouter( + * appRoutes, + * withErrorBoundaries({ + * defaultErrorComponent: GlobalErrorComponent, + * }), + * ), + * ], + * }); + * ``` + * + * @see [Global error boundary configuration](guide/routing/error-boundaries#global-error-boundary-configuration) + * @developerPreview 22.3 + */ +export function withErrorBoundaries(options: ErrorBoundaryOptions = {}): ErrorBoundariesFeature { + const providers = [ + { + provide: ROUTER_ERROR_BOUNDARY_HANDLER, + useFactory: () => + new ErrorBoundaryHandler(inject(Router), inject(EnvironmentInjector), options), + }, + ]; + return routerFeature(RouterFeatureKind.ErrorBoundariesFeature, providers); } /** @@ -954,9 +1038,11 @@ export type RouterFeatures = | NavigationErrorHandlerFeature | ComponentInputBindingFeature | ViewTransitionsFeature - | ExperimentalAutoCleanupInjectorsFeature + | AutoCleanupInjectorsFeature | RouterHashLocationFeature - | ExperimentalPlatformNavigationFeature; + | ExperimentalPlatformNavigationFeature + | RouterResourcesFeature + | ErrorBoundariesFeature; /** * The list of features as an enum to uniquely type each feature. @@ -972,6 +1058,8 @@ export const enum RouterFeatureKind { NavigationErrorHandlerFeature, ComponentInputBindingFeature, ViewTransitionsFeature, - ExperimentalAutoCleanupInjectorsFeature, + AutoCleanupInjectorsFeature, ExperimentalPlatformNavigationFeature, + RouterResourcesFeature, + ErrorBoundariesFeature, } diff --git a/packages/router/src/recognize.ts b/packages/router/src/recognize.ts index 0af4e5d83745..07b099fc249f 100644 --- a/packages/router/src/recognize.ts +++ b/packages/router/src/recognize.ts @@ -22,7 +22,7 @@ import { } from './router_state'; import {Params, PRIMARY_OUTLET} from './shared'; import {UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree} from './url_tree'; -import {getOutlet, sortByMatchingOutlets} from './utils/config'; +import {getOrCreateRouteInjectorIfNeeded, getOutlet, sortByMatchingOutlets} from './utils/config'; import { createPreMatchRouteSnapshot, emptyPathMatch, @@ -72,6 +72,9 @@ export class Recognizer { private absoluteRedirectCount = 0; allowRedirects = true; + /** Shared by every snapshot: query params belong to the URL, not to any one route. */ + private queryParams: Params; + constructor( private injector: EnvironmentInjector, private configLoader: RouterConfigLoader, @@ -83,6 +86,7 @@ export class Recognizer { private readonly abortSignal: AbortSignal, ) { this.applyRedirects = new ApplyRedirects(this.urlSerializer, this.urlTree); + this.queryParams = Object.freeze({...this.urlTree.queryParams}); } private noMatchError(e: NoMatch): RuntimeError { @@ -123,7 +127,7 @@ export class Recognizer { const rootSnapshot = new ActivatedRouteSnapshot( [], Object.freeze({}), - Object.freeze({...this.urlTree.queryParams}), + this.queryParams, this.urlTree.fragment, Object.freeze({}), PRIMARY_OUTLET, @@ -143,7 +147,20 @@ export class Recognizer { return {children, rootSnapshot}; } catch (e: any) { if (e instanceof AbsoluteRedirect) { + // Count at the actual root-restart boundary so redirects returned from functions are + // subject to the same limit as static redirects. + this.absoluteRedirectCount++; + if (this.absoluteRedirectCount > MAX_ALLOWED_REDIRECTS) { + if (ngDevMode) { + throw new RuntimeError( + RuntimeErrorCode.INFINITE_REDIRECT, + `Detected possible infinite redirect when redirecting from '${this.urlTree}' to '${e.urlTree}'.`, + ); + } + this.allowRedirects = false; + } this.urlTree = e.urlTree; + this.queryParams = Object.freeze({...this.urlTree.queryParams}); return this.match(e.urlTree.root); } if (e instanceof NoMatch) { @@ -209,25 +226,24 @@ export class Recognizer { // appear first, followed by routes for other outlets, which might match if they have // an empty path. const sortedConfig = sortByMatchingOutlets(config, childOutlet); - const outletChildren = await this.processSegmentGroup( + const outletChild = await this.processSegment( injector, sortedConfig, child, + child.segments, childOutlet, + true, parentRoute, ); - children.push(...outletChildren); + if (outletChild instanceof TreeNode) { + children.push(outletChild); + } } // Because we may have matched two outlets to the same empty path segment, we can have // multiple activated results for the same outlet. We should merge the children of // these results so the final return value is only one `TreeNode` per outlet. const mergedChildren = mergeEmptyPathMatches(children); - if (typeof ngDevMode === 'undefined' || ngDevMode) { - // This should really never happen - we are only taking the first match for each - // outlet and merge the empty path matches. - checkOutletNameUniqueness(mergedChildren); - } sortActivatedRouteSnapshots(mergedChildren); return mergedChildren; } @@ -290,7 +306,12 @@ export class Recognizer { // This should only match if the url is `/(x:b)`. if ( getOutlet(route) !== outlet && - (outlet === PRIMARY_OUTLET || !emptyPathMatch(rawSegment, segments, route)) + (outlet === PRIMARY_OUTLET || + !emptyPathMatch(rawSegment, segments, route) || + // the route has no children to pierce into. + (!route.children?.length && !route.loadChildren) || + // the URL segment group has no segments or children to pierce with. + (segments.length === 0 && !rawSegment.hasChildren())) ) { throw new NoMatch(rawSegment); } @@ -334,22 +355,6 @@ export class Recognizer { match(segmentGroup, route, segments); if (!matched) throw new NoMatch(segmentGroup); - // TODO(atscott): Move all of this under an if(ngDevMode) as a breaking change and allow stack - // size exceeded in production - if (typeof route.redirectTo === 'string' && route.redirectTo[0] === '/') { - this.absoluteRedirectCount++; - if (this.absoluteRedirectCount > MAX_ALLOWED_REDIRECTS) { - if (ngDevMode) { - throw new RuntimeError( - RuntimeErrorCode.INFINITE_REDIRECT, - `Detected possible infinite redirect when redirecting from '${this.urlTree}' to '${route.redirectTo}'.\n` + - `This is currently a dev mode only error but will become a` + - ` call stack size exceeded error in production in a future major version.`, - ); - } - this.allowRedirects = false; - } - } const currentSnapshot = this.createSnapshot(injector, route, segments, parameters, parentRoute); if (this.abortSignal.aborted) { throw new Error(this.abortSignal.reason); @@ -359,7 +364,9 @@ export class Recognizer { route.redirectTo!, positionalParamSegments, createPreMatchRouteSnapshot(currentSnapshot), - injector, + // TODO(v23): Run redirectTo functions in root environment injector in 3p as well. + // g3-only this.injector, + injector, // 3p-only ); const newSegments = await this.applyRedirects.lineralizeSegments(route, newTree); @@ -384,7 +391,7 @@ export class Recognizer { const snapshot = new ActivatedRouteSnapshot( segments, parameters, - Object.freeze({...this.urlTree.queryParams}), + this.queryParams, this.urlTree.fragment, getData(route), getOutlet(route), @@ -394,8 +401,8 @@ export class Recognizer { injector, ); const inherited = getInherited(snapshot, parentRoute, this.paramsInheritanceStrategy); - snapshot.params = Object.freeze(inherited.params); - snapshot.data = Object.freeze(inherited.data); + snapshot.params = inherited.params; + snapshot.data = inherited.data; return snapshot; } @@ -418,7 +425,9 @@ export class Recognizer { rawSegment, route, segments, - injector, + // TODO(v23): Run canMatch guards in root environment injector in 3p as well. + // g3-only this.injector, + injector, // 3p-only this.urlSerializer, createSnapshot, this.abortSignal, @@ -436,7 +445,7 @@ export class Recognizer { throw new NoMatch(rawSegment); } // If the route has an injector created from providers, we should start using that. - injector = route._injector ?? injector; + injector = getOrCreateRouteInjectorIfNeeded(route, injector); const {routes: childConfig} = await this.getChildConfig(injector, route, segments); const childInjector = route._loadedInjector ?? injector; @@ -449,15 +458,12 @@ export class Recognizer { parentRoute, ); - const {segmentGroup, slicedSegments} = split( - rawSegment, - consumedSegments, - remainingSegments, - childConfig, - outlet, - ); + const matchedOnOutlet = getOutlet(route) === outlet; + const {segmentGroup, slicedSegments} = matchedOnOutlet + ? split(rawSegment, consumedSegments, remainingSegments, childConfig) + : {segmentGroup: rawSegment, slicedSegments: remainingSegments}; - if (slicedSegments.length === 0 && segmentGroup.hasChildren()) { + if (matchedOnOutlet && slicedSegments.length === 0 && segmentGroup.hasChildren()) { const children = await this.processChildren( childInjector, childConfig, @@ -467,11 +473,10 @@ export class Recognizer { return new TreeNode(snapshot, children); } - if (childConfig.length === 0 && slicedSegments.length === 0) { + if (matchedOnOutlet && childConfig.length === 0 && slicedSegments.length === 0) { return new TreeNode(snapshot, []); } - const matchedOnOutlet = getOutlet(route) === outlet; // If we matched a config due to empty path match on a different outlet, we need to // continue passing the current outlet for the segment rather than switch to PRIMARY. // Note that we switch to primary when we have a match because outlet configs look like @@ -489,6 +494,9 @@ export class Recognizer { true, snapshot, ); + if (!matchedOnOutlet && !(child instanceof TreeNode)) { + throw new NoMatch(rawSegment); + } return new TreeNode(snapshot, child instanceof TreeNode ? [child] : []); } private async getChildConfig( @@ -580,11 +588,13 @@ function mergeEmptyPathMatches( const mergedChildren = mergeEmptyPathMatches(mergedNode.children); result.push(new TreeNode(mergedNode.value, mergedChildren)); } - return result.filter((n) => !mergedNodes.has(n)); + const merged = result.filter((n) => !mergedNodes.has(n)); + checkOutletNameUniqueness(merged); + return merged; } function checkOutletNameUniqueness(nodes: TreeNode[]): void { - const names: {[k: string]: ActivatedRouteSnapshot} = {}; + const names: {[k: string]: ActivatedRouteSnapshot} = Object.create(null); nodes.forEach((n) => { const routeWithSameOutletName = names[n.value.outlet]; if (routeWithSameOutletName) { diff --git a/packages/router/src/route_injector_cleanup.ts b/packages/router/src/route_injector_cleanup.ts index 1ef09690ca1b..0ae77eea5d4c 100644 --- a/packages/router/src/route_injector_cleanup.ts +++ b/packages/router/src/route_injector_cleanup.ts @@ -9,11 +9,7 @@ import {InjectionToken} from '@angular/core'; import {Route, Routes} from './models'; -import { - DetachedRouteHandleInternal, - ExperimentalRouteReuseStrategy, - RouteReuseStrategy, -} from './route_reuse_strategy'; +import {DetachedRouteHandleInternal, RouteReuseStrategy} from './route_reuse_strategy'; import {ActivatedRouteSnapshot, RouterState} from './router_state'; /** @@ -37,8 +33,7 @@ export function routeInjectorCleanup( } // For stored routes, collect them and all their parents by iterating pathFromRoot. - const storedHandles = - (routeReuseStrategy as ExperimentalRouteReuseStrategy).retrieveStoredRouteHandles?.() || []; + const storedHandles = routeReuseStrategy.retrieveStoredRouteHandles?.() || []; for (const handle of storedHandles) { const internalHandle = handle as DetachedRouteHandleInternal; if (internalHandle?.route?.value?.snapshot) { @@ -75,7 +70,7 @@ function destroyUnusedInjectors( !!( (route._injector || route._loadedInjector) && !activeRoutes.has(route) && - ((strategy as ExperimentalRouteReuseStrategy).shouldDestroyInjector?.(route) ?? false) + (strategy.shouldDestroyInjector?.(route) ?? false) ); if (route.children) { diff --git a/packages/router/src/route_reuse_strategy.ts b/packages/router/src/route_reuse_strategy.ts index 7e74bf32bdc5..132e1057016a 100644 --- a/packages/router/src/route_reuse_strategy.ts +++ b/packages/router/src/route_reuse_strategy.ts @@ -42,7 +42,7 @@ export type DetachedRouteHandleInternal = { * * @param handle The detached route handle to destroy. * - * @publicApi + * @publicApi 22.2 * @see [Manually destroying detached route handles](guide/routing/customizing-route-behavior#manually-destroying-detached-route-handles) */ export function destroyDetachedRouteHandle(handle: DetachedRouteHandle): void { @@ -58,11 +58,6 @@ export function destroyDetachedRouteHandle(handle: DetachedRouteHandle): void { } } -export interface ExperimentalRouteReuseStrategy { - shouldDestroyInjector?(route: Route): boolean; - retrieveStoredRouteHandles?(): Array; -} - /** * @description * @@ -88,8 +83,35 @@ export abstract class RouteReuseStrategy { /** Retrieves the previously stored route */ abstract retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null; - /** Determines if a route should be reused */ + /** + * Determines if a route should be reused. + * + * Note: Recreating a component by returning `false` does not automatically rerun guards or + * resolvers; rerun behavior for an unchanged route configuration is controlled by + * {@link RunGuardsAndResolvers}. + * + * @see {@link RunGuardsAndResolvers} + */ abstract shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean; + + /** + * Returns a list of all currently stored `DetachedRouteHandle`s. + * + * This method is called by the router after navigations to identify which injectors + * are still needed by detached routes. + * + * @see {@link withAutoCleanupInjectors} + */ + retrieveStoredRouteHandles?(): Array; + + /** + * Determines if the injector for the given route should be destroyed. + * + * If this method returns `true`, the router will destroy the injector for the given route. + * + * @see {@link withAutoCleanupInjectors} + */ + shouldDestroyInjector?(route: Route): boolean; } /** @@ -145,11 +167,10 @@ export abstract class BaseRouteReuseStrategy implements RouteReuseStrategy { /** * Determines if the injector for the given route should be destroyed. * - * This method is called by the router when the `RouteReuseStrategy` is destroyed. + * This method is called by the router after navigations. * If this method returns `true`, the router will destroy the injector for the given route. * - * @see {@link withExperimentalAutoCleanupInjectors} - * @xperimental 21.1 + * @see {@link withAutoCleanupInjectors} */ shouldDestroyInjector(route: Route): boolean { return true; diff --git a/packages/router/src/router.ts b/packages/router/src/router.ts index 295566658909..f015b739752b 100644 --- a/packages/router/src/router.ts +++ b/packages/router/src/router.ts @@ -218,6 +218,7 @@ export class Router { ); const extras = { scroll: currentTransition.extras.scroll, + focusReset: currentTransition.extras.focusReset, browserUrl: currentTransition.extras.browserUrl, info: currentTransition.extras.info, skipLocationChange: currentTransition.extras.skipLocationChange, @@ -233,11 +234,18 @@ export class Router { ...opts, }; - this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras, { - resolve: currentTransition.resolve, - reject: currentTransition.reject, - promise: currentTransition.promise, - }); + this.scheduleNavigation( + mergedTree, + IMPERATIVE_NAVIGATION, + null, + extras, + currentTransition.hasUAVisualTransition, + { + resolve: currentTransition.resolve, + reject: currentTransition.reject, + promise: currentTransition.promise, + }, + ); } } @@ -288,8 +296,8 @@ export class Router { // run into ngZone this.nonRouterCurrentEntryChangeSubscription ??= this.stateManager.registerNonRouterCurrentEntryChangeListener( - (url, state, source, extras) => { - this.navigateToSyncWithBrowser(url, source, state, extras); + (url, state, source, extras, hasUAVisualTransition) => { + this.navigateToSyncWithBrowser(url, source, state, extras, hasUAVisualTransition); }, ); } @@ -306,6 +314,7 @@ export class Router { source: NavigationTrigger, state: RestoredState | null | undefined, extras: NavigationExtras, + hasUAVisualTransition?: boolean, ) { // TODO: restoredState should always include the entire state, regardless // of navigationId. This requires a breaking change to update the type on @@ -338,12 +347,14 @@ export class Router { } const urlTree = this.parseUrl(routerUrl); - this.scheduleNavigation(urlTree, source, restoredState, extras).catch((e) => { - if (this.disposed) { - return; - } - this.injector.get(ɵINTERNAL_APPLICATION_ERROR_HANDLER)(e); - }); + this.scheduleNavigation(urlTree, source, restoredState, extras, hasUAVisualTransition).catch( + (e) => { + if (this.disposed) { + return; + } + this.injector.get(ɵINTERNAL_APPLICATION_ERROR_HANDLER)(e); + }, + ); } /** The current URL. */ @@ -474,9 +485,6 @@ export class Router { default: q = queryParams || null; } - if (q !== null) { - q = this.removeEmptyProps(q); - } let relativeToUrlSegmentGroup: UrlSegmentGroup | undefined; try { @@ -643,20 +651,12 @@ export class Router { return containsTree(this.currentUrlTree, urlTree, options); } - private removeEmptyProps(params: Params): Params { - return Object.entries(params).reduce((result: Params, [key, value]: [string, any]) => { - if (value !== null && value !== undefined) { - result[key] = value; - } - return result; - }, {}); - } - private scheduleNavigation( rawUrl: UrlTree, source: NavigationTrigger, restoredState: RestoredState | null, extras: NavigationExtras, + hasUAVisualTransition?: boolean, priorPromise?: { resolve: (result: boolean | PromiseLike) => void; reject: (reason?: any) => void; @@ -696,6 +696,7 @@ export class Router { currentRawUrl: this.currentUrlTree, rawUrl, extras, + hasUAVisualTransition, resolve: resolve!, reject: reject!, promise, diff --git a/packages/router/src/router_config.ts b/packages/router/src/router_config.ts index a7744cca423e..66d52238a0f6 100644 --- a/packages/router/src/router_config.ts +++ b/packages/router/src/router_config.ts @@ -169,20 +169,20 @@ export interface InMemoryScrollingOptions { * in the following example. * * ```ts - * class AppComponent { - * movieData: any; + * class App { + * movieData = signal(null); + * private router = inject(Router); + * private viewportScroller = inject(ViewportScroller); + * private changeDetectorRef = inject(ChangeDetectorRef); * - * constructor(private router: Router, private viewportScroller: ViewportScroller, - * changeDetectorRef: ChangeDetectorRef) { - * router.events.pipe(filter((event: Event): event is Scroll => event instanceof Scroll) + * constructor() { + * this.router.events.pipe(filter((event: Event): event is Scroll => event instanceof Scroll) * ).subscribe(e => { * fetch('http://example.com/movies.json').then(response => { - * this.movieData = response.json(); - * // update the template with the data before restoring scroll - * changeDetectorRef.detectChanges(); + * this.movieData.set(response.json()); * * if (e.position) { - * viewportScroller.scrollToPosition(e.position); + * this.viewportScroller.scrollToPosition(e.position); * } * }); * }); @@ -270,7 +270,6 @@ export interface ExtraOptions extends InMemoryScrollingOptions, RouterConfigOpti * * @see https://developer.chrome.com/docs/web-platform/view-transitions/ * @see https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API - * @experimental 17.0 */ enableViewTransitions?: boolean; diff --git a/packages/router/src/router_config_loader.ts b/packages/router/src/router_config_loader.ts index 4666a1582b59..85ff740fae3f 100644 --- a/packages/router/src/router_config_loader.ts +++ b/packages/router/src/router_config_loader.ts @@ -46,7 +46,10 @@ export class RouterConfigLoader { onLoadStartListener?: (r: Route) => void; onLoadEndListener?: (r: Route) => void; private readonly compiler = inject(Compiler); + // TODO(v23): Run loadComponent and loadChildren in root environment injector in 3p as well. + // g3-only private readonly environmentInjector = inject(EnvironmentInjector); + // TODO(v23): Remove unused `injector` parameter once `loadComponent` uses `this.environmentInjector` in 3p. async loadComponent(injector: EnvironmentInjector, route: Route): Promise> { if (this.componentLoaders.get(route)) { return this.componentLoaders.get(route)!; @@ -60,7 +63,8 @@ export class RouterConfigLoader { const loader = (async () => { try { const loaded = await wrapIntoPromise( - runInInjectionContext(injector, () => route.loadComponent!()), + // g3-only runInInjectionContext(this.environmentInjector, () => route.loadComponent!()), + runInInjectionContext(injector, () => route.loadComponent!()), // 3p-only ); const component = await maybeResolveResources(maybeUnwrapDefaultExport(loaded)); @@ -96,6 +100,7 @@ export class RouterConfigLoader { this.compiler, parentInjector, this.onLoadEndListener, + // g3-only this.environmentInjector, ); route._loadedRoutes = result.routes; route._loadedInjector = result.injector; @@ -123,9 +128,12 @@ export async function loadChildren( compiler: Compiler, parentInjector: Injector, onLoadEndListener?: (r: Route) => void, + // TODO(v23): Update `@angular/build` route extractor to pass `environmentInjector` and make it required. + // g3-only environmentInjector?: EnvironmentInjector, ): Promise { const loaded = await wrapIntoPromise( - runInInjectionContext(parentInjector, () => route.loadChildren!()), + // g3-only runInInjectionContext(environmentInjector ?? parentInjector, () => route.loadChildren!()), + runInInjectionContext(parentInjector, () => route.loadChildren!()), // 3p-only ); const t = await maybeResolveResources(maybeUnwrapDefaultExport(loaded)); diff --git a/packages/router/src/router_error_boundary.ts b/packages/router/src/router_error_boundary.ts new file mode 100644 index 000000000000..d9e979c50599 --- /dev/null +++ b/packages/router/src/router_error_boundary.ts @@ -0,0 +1,118 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import { + EnvironmentInjector, + ErrorDetails, + runInInjectionContext, + untracked, + Type, +} from '@angular/core'; + +import type {RouterOutlet} from './directives/router_outlet'; +import {RedirectCommand} from './models'; +import type {ErrorBoundaryOptions} from './provide_router'; +import type {Router} from './router'; +import type {RouterErrorBoundaryHandler} from './router_error_boundary_feature'; +import type {ChildrenOutletContexts} from './router_outlet_context'; +import type {ActivatedRoute} from './router_state'; + +const REDIRECT_DISPATCHED: unique symbol = /* @__PURE__ */ Symbol( + typeof ngDevMode === 'undefined' || ngDevMode ? '__redirectDispatched' : '', +); + +function unwrapRedirectCommand(error: unknown): RedirectCommand | null { + if (error instanceof RedirectCommand) { + return error; + } + if (error && typeof error === 'object' && 'cause' in error) { + return unwrapRedirectCommand((error as {cause: unknown}).cause); + } + return null; +} + +/** + * Dispatches a navigation if the given error is (or wraps) a `RedirectCommand`. + * + * @returns Whether the error was a redirect. A redirect is only dispatched once, even if the same + * error is seen by several outlets while bubbling up. + */ +function triggerRedirectIfCommand(error: unknown, router: Router): boolean { + const redirect = unwrapRedirectCommand(error); + if (redirect === null) { + return false; + } + if (!(redirect as any)[REDIRECT_DISPATCHED]) { + (redirect as any)[REDIRECT_DISPATCHED] = true; + router.navigateByUrl(redirect.redirectTo, redirect.navigationBehaviorOptions); + } + return true; +} + +/** + * Implementation of the router error boundary behavior. This is only included in the bundle when + * the application opts in by calling `withErrorBoundaries`. + */ +export class ErrorBoundaryHandler implements RouterErrorBoundaryHandler { + constructor( + private readonly router: Router, + private readonly rootInjector: EnvironmentInjector, + private readonly options: ErrorBoundaryOptions, + ) {} + + handleError( + error: Error, + details: ErrorDetails | undefined, + outlet: RouterOutlet, + activatedRoute: ActivatedRoute, + environmentInjector: EnvironmentInjector, + childContexts: ChildrenOutletContexts, + ): void { + untracked(() => { + const isRedirect = triggerRedirectIfCommand(error, this.router); + + const errorComponent = + activatedRoute.snapshot.routeConfig?.errorComponent ?? this.options.defaultErrorComponent; + if (!errorComponent && !isRedirect) { + throw error; + } + + const globalOnError = this.options.onError; + if (globalOnError) { + // The global handler is configured at the root of the application, so it runs in the root + // injection context. + runInInjectionContext(this.rootInjector, () => globalOnError(error, details)); + } + + if (!errorComponent) { + // The redirect navigation replaces the current view, so there is nothing to render and no + // reason to keep propagating the error. + return; + } + + outlet.destroyActivatedComponent(); + outlet.isErrorComponentActive = true; + const componentRef = outlet.activateComponent( + errorComponent, + activatedRoute, + environmentInjector, + childContexts, + (errorFromErrorComponent: Error) => { + // Errors thrown by the error component itself are not caught again to avoid infinite loops. + throw errorFromErrorComponent; + }, + ); + + try { + componentRef.setInput('error', error); + } catch { + // The error component does not declare an `error` input. + } + }); + } +} diff --git a/packages/router/src/router_error_boundary_feature.ts b/packages/router/src/router_error_boundary_feature.ts new file mode 100644 index 000000000000..0efc04cb28ff --- /dev/null +++ b/packages/router/src/router_error_boundary_feature.ts @@ -0,0 +1,35 @@ +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ + +import {InjectionToken, type EnvironmentInjector, type ErrorDetails} from '@angular/core'; + +import type {RouterOutlet} from './directives/router_outlet'; +import type {ChildrenOutletContexts} from './router_outlet_context'; +import type {ActivatedRoute} from './router_state'; + +/** + * The contract between the `RouterOutlet` and the error boundary feature. + * + * The implementation lives in `./router_error_boundary` and is only provided when the application + * opts in with `withErrorBoundaries`. Everything except this token is therefore tree-shaken away + * for applications that do not use the feature. + */ +export interface RouterErrorBoundaryHandler { + handleError( + error: Error, + details: ErrorDetails | undefined, + outlet: RouterOutlet, + activatedRoute: ActivatedRoute, + environmentInjector: EnvironmentInjector, + childContexts: ChildrenOutletContexts, + ): void; +} + +export const ROUTER_ERROR_BOUNDARY_HANDLER = new InjectionToken( + typeof ngDevMode === 'undefined' || ngDevMode ? 'Router Error Boundary Handler' : '', +); diff --git a/packages/router/src/router_module.ts b/packages/router/src/router_module.ts index 365ef7fbfc89..07183811820c 100644 --- a/packages/router/src/router_module.ts +++ b/packages/router/src/router_module.ts @@ -114,7 +114,7 @@ export class RouterModule { * * ```ts * @NgModule({ - * imports: [RouterModule.forRoot(ROUTES)] + * imports: [RouterModule.forRoot(routes)] * }) * class MyNgModule {} * ``` @@ -170,7 +170,7 @@ export class RouterModule { * * ```ts * @NgModule({ - * imports: [RouterModule.forChild(ROUTES)] + * imports: [RouterModule.forChild(routes)] * }) * class MyNgModule {} * ``` diff --git a/packages/router/src/router_outlet_context.ts b/packages/router/src/router_outlet_context.ts index 64b1ead82935..0eb12f713b68 100644 --- a/packages/router/src/router_outlet_context.ts +++ b/packages/router/src/router_outlet_context.ts @@ -28,6 +28,14 @@ export class OutletContext { constructor(private readonly rootInjector: EnvironmentInjector) { this.children = new ChildrenOutletContexts(this.rootInjector); } + + /** + * Replaces `children` with a fresh instance, keeping the same root injector. + * @internal + */ + resetChildren(): void { + this.children = new ChildrenOutletContexts(this.rootInjector); + } } /** @@ -37,8 +45,11 @@ export class OutletContext { */ @Injectable({providedIn: 'root'}) export class ChildrenOutletContexts { - // contexts for child outlets, by name. - private contexts = new Map(); + /** + * Contexts for child outlets, keyed by outlet name. + * @internal + */ + contexts = new Map(); /** @docs-private */ constructor(private rootInjector: EnvironmentInjector) {} diff --git a/packages/router/src/router_preloader.ts b/packages/router/src/router_preloader.ts index 05cee718796b..2bfec7ae3d5b 100644 --- a/packages/router/src/router_preloader.ts +++ b/packages/router/src/router_preloader.ts @@ -39,7 +39,7 @@ export abstract class PreloadingStrategy { * Provides a preloading strategy that preloads all modules as quickly as possible. * * ```ts - * RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules}) + * RouterModule.forRoot(routes, {preloadingStrategy: PreloadAllModules}) * ``` * * ```ts @@ -151,7 +151,8 @@ export class RouterPreloader implements OnDestroy { // at all. Code splitting and lazy loading is separate from client-side authorization checks // and should not be used as a security measure to prevent loading of code. if ( - (route.loadChildren && !route._loadedRoutes && route.canLoad === undefined) || + // TODO: Remove `canLoad` check once removed from 3p. + (route.loadChildren && !route._loadedRoutes && (route as any).canLoad === undefined) || (route.loadComponent && !route._loadedComponent) ) { res.push(this.preloadConfig(injectorForCurrentRoute, route)); @@ -169,7 +170,8 @@ export class RouterPreloader implements OnDestroy { return of(null); } let loadedChildren$: Observable; - if (route.loadChildren && route.canLoad === undefined) { + // TODO: Remove `canLoad` check once removed from 3p. + if (route.loadChildren && (route as any).canLoad === undefined) { loadedChildren$ = from(this.loader.loadChildren(injector, route)); } else { loadedChildren$ = of(null); diff --git a/packages/router/src/router_resource.ts b/packages/router/src/router_resource.ts index 702350904e0c..6dc1db6cceb6 100644 --- a/packages/router/src/router_resource.ts +++ b/packages/router/src/router_resource.ts @@ -21,6 +21,7 @@ import { computed, assertInInjectionContext, reflectComponentType, + untracked, } from '@angular/core'; import {Router} from './router'; import type {ActivatedRoute} from './router_state'; @@ -33,21 +34,13 @@ import { NavigationCancellationCode, } from './events'; -export const BLOCKING_SYMBOL: unique symbol = Symbol( +export const BLOCKING_SYMBOL: unique symbol = /* @__PURE__ */ Symbol( typeof ngDevMode === 'undefined' || ngDevMode ? '__isBlocking' : '', ); -export const SOURCE_RESOURCE_SYMBOL: unique symbol = Symbol( +export const SOURCE_RESOURCE_SYMBOL: unique symbol = /* @__PURE__ */ Symbol( typeof ngDevMode === 'undefined' || ngDevMode ? '__sourceResource' : '', ); -/** - * Checks if a resource has a value or has transitioned to a resolved/non-loading status. - */ -export function hasValueOrResolved(res: Resource): boolean { - const status = res.status(); - return res.hasValue() || (status !== 'loading' && status !== 'reloading'); -} - /** * @internal */ @@ -60,7 +53,7 @@ export interface InternalRouterResource extends Resource { /** * Marks a resource as non-blocking. The Router will NOT wait for this resource to resolve * before completing the navigation. - * @experimental + * @developerPreview 22.2 */ export function nonBlocking>(res: R): R { (res as unknown as InternalRouterResource)[BLOCKING_SYMBOL] = false; @@ -88,22 +81,18 @@ export function routerResource(source: Resource): Resource & {reload(): res[BLOCKING_SYMBOL] = (source as unknown as InternalRouterResource)[BLOCKING_SYMBOL] !== false; - if (typeof (source as any).reload === 'function') { - res.reload = function (): boolean { - // If the resource is currently frozen (e.g., during an active navigation transition - // or while recovering from a cancelled navigation), we reject manual reload requests. - // Triggering a reload during an active navigation (where the resource may already be - // reactively loading new parameters behind the scenes) would disrupt the router's resource - // tracking for the transition. Similarly, during a rollback recovery, the router is - // already managing the resource reload to restore the previous state. - if (frozenSnapshot() !== null) { - return false; - } - return (source as any).reload(); - }; - } else { - res.reload = () => false; - } + res.reload = function (): boolean { + // If the resource is currently frozen (e.g., during an active navigation transition + // or while recovering from a cancelled navigation), we reject manual reload requests. + // Triggering a reload during an active navigation (where the resource may already be + // reactively loading new parameters behind the scenes) would disrupt the router's resource + // tracking for the transition. Similarly, during a rollback recovery, the router is + // already managing the resource reload to restore the previous state. + if (frozenSnapshot() !== null) { + return false; + } + return (source as any).reload?.() ?? false; + }; return res; } @@ -169,7 +158,7 @@ function createTransactionalSnapshot( effect( () => { - if (isRollbackRecoveryPending() && hasValueOrResolved(source)) { + if (isRollbackRecoveryPending() && !source.isLoading()) { isRollbackRecoveryPending.set(false); frozenSnapshot.set(null); } @@ -197,26 +186,31 @@ function createTransactionalSnapshot( export function createResourceOutletBindingEffects( componentRef: ComponentRef, route: ActivatedRoute, - injector: Injector, + isErrorComponentActive?: boolean, ): {createdEffects: EffectRef[]; handledKeys: string[]} { const createdEffects: EffectRef[] = []; const handledKeys: string[] = []; - const mirror = route.component ? reflectComponentType(route.component) : null; - if (!mirror) { + const mirror = reflectComponentType(componentRef.componentType); + const resources = route.resources; + if (!mirror || !resources) { return {createdEffects, handledKeys}; } for (const {templateName} of mirror.inputs) { - const resource = route.resources?.[templateName]; + if (isErrorComponentActive && templateName === 'error') { + continue; + } + const resource = resources[templateName]; if (!resource || !(resource as InternalRouterResource)[BLOCKING_SYMBOL]) { continue; } + componentRef.setInput(templateName, untracked(resource.value)); const effectRef = effect( () => { componentRef.setInput(templateName, resource.value()); }, - {injector}, + {injector: componentRef.injector}, ); createdEffects.push(effectRef); handledKeys.push(templateName); diff --git a/packages/router/src/router_resource_feature.ts b/packages/router/src/router_resource_feature.ts index e5b090de7bc2..d0f30d7fa7b0 100644 --- a/packages/router/src/router_resource_feature.ts +++ b/packages/router/src/router_resource_feature.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.dev/license */ -import {ComponentRef, EffectRef, InjectionToken, Injector} from '@angular/core'; +import {ComponentRef, EffectRef, InjectionToken} from '@angular/core'; import {OperatorFunction} from 'rxjs'; import type {NavigationTransition} from './navigation_transition'; @@ -19,7 +19,7 @@ export interface RouterResourcesFeatureImplementation { createResourceOutletBindingEffects?: ( componentRef: ComponentRef, route: ActivatedRoute, - injector: Injector, + isErrorComponentActive?: boolean, ) => {createdEffects: EffectRef[]; handledKeys: string[]}; } diff --git a/packages/router/src/router_state.ts b/packages/router/src/router_state.ts index 2605e03b1660..562355e1be61 100644 --- a/packages/router/src/router_state.ts +++ b/packages/router/src/router_state.ts @@ -63,7 +63,6 @@ export class RouterState extends Tree { public snapshot: RouterStateSnapshot, ) { super(root); - setRouterState(this, root); } override toString(): string { @@ -92,7 +91,10 @@ export function createEmptyState( snapshot.root, ); activated.snapshot = snapshot.root; - return new RouterState(new TreeNode(activated, []), snapshot); + const root = new TreeNode(activated, []); + const state = new RouterState(root, snapshot); + setRouterState(state, root); + return state; } export function createEmptyStateSnapshot( @@ -166,18 +168,25 @@ export class ActivatedRoute { // ===== Resource integration ====== // ================================= + /** @internal */ + _ownResources?: ResourceResult; + /** @internal */ + _ownRawResourcesSignal?: WritableSignal; + /** @internal */ + _resourceContextSignal?: Signal; + // Note for framework developers: Unlike `data` and `params`, the `resources` property // is assigned once when the route is first initialized and its reference remains stable // for the entire lifetime of the `ActivatedRoute` instance. Do NOT replace or swap this // reference during pending navigations or route reuse, as doing so breaks reactivity // for components subscribed to the underlying resource signals. /** - * A map of resources for this route. + * A map of resources for this route, including resources inherited from ancestor routes. * - * @experimental - * @internal don't expose while experimental + * @developerPreview 22.2 */ resources?: ResourceResult; + /** @internal */ _localInjector?: EnvironmentInjector; /** @internal */ @@ -326,8 +335,12 @@ export function getInherited( (!parent.component && !parent.routeConfig?.loadComponent)) ) { inherited = { - params: {...parent.params, ...route.params}, - data: {...parent.data, ...route.data}, + // Reuse the parent's frozen params when the route adds none of its own. + params: + Object.keys(route.params).length === 0 + ? parent.params + : Object.freeze({...parent.params, ...route.params}), + data: Object.freeze({...parent.data, ...route.data}), resolve: { // Snapshots are created with data inherited from parent and guards (i.e. canActivate) can // change data because it's not frozen... @@ -346,8 +359,8 @@ export function getInherited( }; } else { inherited = { - params: {...route.params}, - data: {...route.data}, + params: Object.freeze({...route.params}), + data: Object.freeze({...route.data}), resolve: {...route.data, ...(route._resolvedData ?? {})}, }; } @@ -398,10 +411,11 @@ export class ActivatedRouteSnapshot { _queryParamMap?: ParamMap; /** @internal */ readonly _environmentInjector: EnvironmentInjector; + /** - * The result of running the route's resources function. - * @experimental - * @internal + * The result of running the route's resources function, including resources + * inherited from ancestor routes. + * @developerPreview 22.2 */ resources?: ResourceResult; @@ -540,7 +554,7 @@ export class RouterStateSnapshot extends Tree { } } -function setRouterState(state: U, node: TreeNode): void { +export function setRouterState(state: U, node: TreeNode): void { node.value._routerState = state; node.children.forEach((c) => setRouterState(state, c)); } diff --git a/packages/router/src/statemanager/navigation_state_manager.ts b/packages/router/src/statemanager/navigation_state_manager.ts index 990e9d96ff58..dfc7e3d1b72e 100644 --- a/packages/router/src/statemanager/navigation_state_manager.ts +++ b/packages/router/src/statemanager/navigation_state_manager.ts @@ -101,6 +101,7 @@ export class NavigationStateManager extends StateManager { private nonRouterCurrentEntryChangeSubject = new Subject<{ path: string; state: RestoredState | null | undefined; + hasUAVisualTransition?: boolean; }>(); nonRouterEntryChangeListener?: SubscriptionLike; @@ -130,16 +131,18 @@ export class NavigationStateManager extends StateManager { state: RestoredState | null | undefined, trigger: NavigationTrigger, extras: NavigationExtras, + hasUAVisualTransition?: boolean, ) => void, ): SubscriptionLike { this.activeHistoryEntry = this.navigation.currentEntry!; this.nonRouterEntryChangeListener = this.nonRouterCurrentEntryChangeSubject.subscribe( - ({path, state}) => { + ({path, state, hasUAVisualTransition}) => { listener( path, state, 'popstate', !this.precommitHandlerSupported ? {replaceUrl: true} : {}, + hasUAVisualTransition, ); }, ); @@ -208,6 +211,12 @@ export class NavigationStateManager extends StateManager { e.code === NavigationCancellationCode.Redirect && !!this.currentNavigation.commitUrl; if (redirectingBeforeUrlCommit) { + if (this.currentNavigation.navigationEvent?.navigationType === 'traverse') { + // Traversals cannot be redirected via controller.redirect(). + // Commit the traversal first, then allow the redirect navigation + // to perform a new replace navigation to the redirect destination. + this.finishNavigation(); + } return; } void this.cancel(transition, e); @@ -304,7 +313,7 @@ export class NavigationStateManager extends StateManager { * and resolving the post-commit handler promise. Clears the `currentNavigation` state. */ private finishNavigation() { - this.currentNavigation.commitUrl?.(); + this.currentNavigation.commitUrl?.()?.catch(() => {}); this.currentNavigation?.resolveHandler?.(); this.currentNavigation = {}; } @@ -317,8 +326,15 @@ export class NavigationStateManager extends StateManager { this.currentNavigation.rejectNavigateEvent?.(); const clearedState = {}; // Marker to detect if a new navigation started during async ops. this.currentNavigation = clearedState; - // Do not reset state if we're redirecting or navigation is superseded by a new one. + // Do not reset browser history if we're redirecting or navigation is superseded by a new one. if (isRedirectingEvent(cause)) { + if ( + cause instanceof NavigationCancel && + cause.code === NavigationCancellationCode.Redirect && + this.routerState === transition.targetRouterState + ) { + this.resetInternalState(transition.finalUrl, false); + } return; } // Determine if the rollback should be a traversal to a specific previous entry @@ -389,12 +405,18 @@ export class NavigationStateManager extends StateManager { // We also do not convert reload navigation events to SPA navigations. Intercepting // would prevent the generally expected hard refresh. If an application wants special // handling for reloads, they can implement it in their own `navigate` event listener. - if (!event.canIntercept || event.navigationType === 'reload') { + // Downloads are left to the browser as well. Intercepting them would turn them into + // same-document navigations and the file would never be downloaded. + if (!event.canIntercept || event.navigationType === 'reload' || event.downloadRequest != null) { return; } const routerInfo = (event?.info as NavigationInfo | undefined)?.ɵrouterInfo; if (routerInfo && !routerInfo.intercept) { + // The router is restoring the URL after a cancelled or failed navigation. This must not + // start a router navigation, but it still has to be intercepted: otherwise the browser + // loads the URL as a new document and the whole app reloads. + event.intercept({focusReset: 'manual', scroll: 'manual'}); return; } const isTriggeredByRouterTransition = !!routerInfo; @@ -431,7 +453,7 @@ export class NavigationStateManager extends StateManager { const abortHandler = () => { this.currentNavigation.routerTransition?.abort(); }; - event.signal.addEventListener('abort', abortHandler); + event.signal.addEventListener('abort', abortHandler, {once: true}); this.currentNavigation.removeAbortListener = () => event.signal.removeEventListener('abort', abortHandler); @@ -440,6 +462,7 @@ export class NavigationStateManager extends StateManager { : (this.currentNavigation.routerTransition?.extras.scroll ?? 'after-transition'); const interceptOptions: NavigationInterceptOptions = { scroll, + focusReset: this.currentNavigation.routerTransition?.extras.focusReset, }; const { @@ -468,15 +491,12 @@ export class NavigationStateManager extends StateManager { interceptOptions.handler = () => handlerPromise; if (this.deferredCommitSupported(event)) { + const isTraverse = event.navigationType === 'traverse'; const redirect = new Promise< (url: string, options: {state: unknown; history?: 'push' | 'replace'}) => void >((resolve) => { - // The `precommitHandler` option is not in the standard DOM types yet - (interceptOptions as any).precommitHandler = (controller: any) => { - if (this.navigation.transition?.navigationType === 'traverse') { - // TODO(atscott): Figure out correct behavior for redirecting traversals - resolve(() => {}); - } else { + interceptOptions.precommitHandler = (controller: NavigationPrecommitController) => { + if (!isTraverse) { resolve(controller.redirect.bind(controller)); } return precommitHandlerPromise; @@ -489,9 +509,9 @@ export class NavigationStateManager extends StateManager { this.currentNavigation.commitUrl = undefined; // Ensure it's only called once. const transition = this.currentNavigation.routerTransition; - // If not skipping location change, use the `redirect` function (from `precommitHandler`'s - // controller) to perform the URL update with the correct state and history action. - if (transition && !transition.extras.skipLocationChange) { + // If not skipping location change and not a traversal, use the `redirect` function + // (from `precommitHandler`'s controller) to perform the URL update with the correct state and history action. + if (!isTraverse && transition && !transition.extras.skipLocationChange) { const internalPath = this.createBrowserPath(transition); const history = this.location.isCurrentPathEqualTo(internalPath) || !!transition.extras.replaceUrl @@ -508,7 +528,11 @@ export class NavigationStateManager extends StateManager { resolvePrecommitHandler(); // Wait for the Navigation API's own `committed` promise if available (part of transition object) // This ensures we respect the browser's timing for when the commit actually happens. - return await this.navigation.transition?.committed; + try { + return await this.navigation.transition?.committed; + } catch { + return; + } }; } @@ -538,7 +562,11 @@ export class NavigationStateManager extends StateManager { // The url will always start with the appRootUrl because of the boundary check in handleNavigate. const path = event.destination.url.substring(this.appRootUrl.href.length - 1); const state = event.destination.getState() as RestoredState | null | undefined; - this.nonRouterCurrentEntryChangeSubject.next({path, state}); + this.nonRouterCurrentEntryChangeSubject.next({ + path, + state, + hasUAVisualTransition: event.hasUAVisualTransition, + }); } private eventAndRouterDestinationsMatch( diff --git a/packages/router/src/statemanager/state_manager.ts b/packages/router/src/statemanager/state_manager.ts index afecaedae0e0..f3d0075ef089 100644 --- a/packages/router/src/statemanager/state_manager.ts +++ b/packages/router/src/statemanager/state_manager.ts @@ -15,6 +15,7 @@ import { Event, isRedirectingEvent, NavigationCancel, + NavigationCancellationCode, NavigationEnd, NavigationError, NavigationSkipped, @@ -153,6 +154,7 @@ export abstract class StateManager { state: RestoredState | null | undefined, trigger: NavigationTrigger, extras: NavigationExtras, + hasUAVisualTransition?: boolean, ) => void, ): SubscriptionLike; @@ -194,6 +196,7 @@ export class HistoryStateManager extends StateManager { state: RestoredState | null | undefined, trigger: NavigationTrigger, extras: NavigationExtras, + hasUAVisualTransition?: boolean, ) => void, ): SubscriptionLike { return this.location.subscribe((event) => { @@ -201,9 +204,15 @@ export class HistoryStateManager extends StateManager { // The `setTimeout` was added in #12160 and is likely to support Angular/AngularJS // hybrid apps. setTimeout(() => { - listener(event['url']!, event.state as RestoredState | null | undefined, 'popstate', { - replaceUrl: true, - }); + listener( + event['url']!, + event.state as RestoredState | null | undefined, + 'popstate', + { + replaceUrl: true, + }, + event.hasUAVisualTransition, + ); }); } }); @@ -225,8 +234,15 @@ export class HistoryStateManager extends StateManager { if (this.urlUpdateStrategy === 'deferred' && !currentTransition.extras.skipLocationChange) { this.setBrowserUrl(this.createBrowserPath(currentTransition), currentTransition); } - } else if (e instanceof NavigationCancel && !isRedirectingEvent(e)) { - this.restoreHistory(currentTransition); + } else if (e instanceof NavigationCancel) { + if (!isRedirectingEvent(e)) { + this.restoreHistory(currentTransition); + } else if ( + e.code === NavigationCancellationCode.Redirect && + this.routerState === currentTransition.targetRouterState + ) { + this.resetInternalState(currentTransition); + } } else if (e instanceof NavigationError) { this.restoreHistory(currentTransition, true); } else if (e instanceof NavigationEnd) { @@ -264,7 +280,7 @@ export class HistoryStateManager extends StateManager { if (this.canceledNavigationResolution === 'computed') { const currentBrowserPageId = this.browserPageId; const targetPagePosition = this.currentPageId - currentBrowserPageId; - if (targetPagePosition !== 0) { + if (targetPagePosition !== 0 && this.lastSuccessfulId !== -1) { this.location.historyGo(targetPagePosition); } else if (this.getCurrentUrlTree() === navigation.finalUrl && targetPagePosition === 0) { // We got to the activation stage (where currentUrlTree is set to the navigation's diff --git a/packages/router/src/url_handling_strategy.ts b/packages/router/src/url_handling_strategy.ts index a820c0eb2d1a..31d06ec0862b 100644 --- a/packages/router/src/url_handling_strategy.ts +++ b/packages/router/src/url_handling_strategy.ts @@ -15,7 +15,7 @@ import {UrlTree} from './url_tree'; * * Provides a way to migrate AngularJS applications to Angular. * - * @see [URL handling strategy](guide/routing/customizing-route-behavior#built-in-preloading-strategies) + * @see [URL handling strategy](guide/routing/customizing-route-behavior#url-handling-strategy) * * @publicApi */ diff --git a/packages/router/src/url_tree.ts b/packages/router/src/url_tree.ts index 0b9b8ccb8a4d..fd46fca83ad5 100644 --- a/packages/router/src/url_tree.ts +++ b/packages/router/src/url_tree.ts @@ -6,7 +6,13 @@ * found in the LICENSE file at https://angular.dev/license */ -import {computed, ɵRuntimeError as RuntimeError, Service, Signal} from '@angular/core'; +import { + computed, + ɵformatRuntimeError as formatRuntimeError, + ɵRuntimeError as RuntimeError, + Service, + Signal, +} from '@angular/core'; import {RuntimeErrorCode} from './errors'; import type {Router} from './router'; @@ -472,7 +478,18 @@ export class DefaultUrlSerializer implements UrlSerializer { /** Converts a `UrlTree` into a url */ serialize(tree: UrlTree): string { - const segment = `/${serializeSegment(tree.root, true)}`; + let segment = `/${serializeSegment(tree.root, true)}`; + if (isProtocolRelative(segment)) { + if (typeof ngDevMode === 'undefined' || ngDevMode) { + console.warn( + formatRuntimeError( + RuntimeErrorCode.PROTOCOL_RELATIVE_URL_NOT_ALLOWED, + `Cannot serialize a UrlTree that would produce a protocol-relative URL. Falling back to '/' instead.`, + ), + ); + } + segment = '/'; + } const query = serializeQueryParams(tree.queryParams); const fragment = typeof tree.fragment === `string` ? `#${encodeUriFragment(tree.fragment)}` : ''; @@ -481,6 +498,23 @@ export class DefaultUrlSerializer implements UrlSerializer { } } +const DUMMY_BASE_URL = 'http://fake'; + +/** + * Determines whether a serialized path would produce a protocol-relative URL when interpreted + * by a browser or server. Under the WHATWG URL standard, paths starting with `//` or `/\`, or paths + * where leading dot segments collapse to `//` (such as `/.//` or `/..//`), resolve to an external + * origin or a protocol-relative pathname. + */ +function isProtocolRelative(url: string): boolean { + try { + const resolved = new URL(url, DUMMY_BASE_URL); + return resolved.origin !== DUMMY_BASE_URL || resolved.pathname.startsWith('//'); + } catch { + return true; + } +} + const DEFAULT_SERIALIZER = new DefaultUrlSerializer(); export function serializePaths(segment: UrlSegmentGroup): string { @@ -506,23 +540,33 @@ function serializeSegment(segment: UrlSegmentGroup, root: boolean): string { return children.length > 0 ? `${primary}(${children.join('//')})` : primary; } else { + // use no parenthesis if the only child is a primary outlet route + if (Object.keys(segment.children).length === 1 && segment.children[PRIMARY_OUTLET] != null) { + return `${serializePaths(segment)}/${serializeSegment(segment.children[PRIMARY_OUTLET], false)}`; + } + const children = mapChildrenIntoArray(segment, (v: UrlSegmentGroup, k: string) => { if (k === PRIMARY_OUTLET) { - return [serializeSegment(segment.children[PRIMARY_OUTLET], false)]; + return [escapeOutletDelimiter(serializeSegment(segment.children[PRIMARY_OUTLET], false))]; } return [`${k}:${serializeSegment(v, false)}`]; }); - // use no parenthesis if the only child is a primary outlet route - if (Object.keys(segment.children).length === 1 && segment.children[PRIMARY_OUTLET] != null) { - return `${serializePaths(segment)}/${children[0]}`; - } - return `${serializePaths(segment)}/(${children.join('//')})`; } } +/** + * Inside a parenthesized group, the parser distinguishes a named outlet (`name:path`) from the + * unprefixed primary child by looking for a `:` in the first segment token. A primary child whose + * first segment legitimately contains a colon (e.g. a param value `admin:y`) would therefore be + * misparsed as outlet `admin` on round-trip. Percent-encode colons in that leading token only. + */ +function escapeOutletDelimiter(serializedPrimary: string): string { + return serializedPrimary.replace(SEGMENT_RE, (firstSegment) => firstSegment.replace(/:/g, '%3A')); +} + /** * Encodes a URI string with the default encoding. This function will only ever be called from * `encodeUriQuery` or `encodeUriSegment` as it's the base set of encodings to be used. We need @@ -600,6 +644,23 @@ function serializeQueryParams(params: {[key: string]: any}): string { return strParams.length ? `?${strParams.join('&')}` : ''; } +// Above V8's threshold for requiring dictionary elements. +const SLOW_ELEMENTS_SENTINEL = 0x40000000; + +/** + * Avoids oversized V8 backing stores for numeric URL keys. + * Setting then deleting the sentinel keeps indexed properties in dictionary storage. + * Indices below 32 use little space, so leave them alone. + */ +function setUrlDerivedKey(target: {[key: string]: T}, key: string, value: T): void { + // Preserve URL keys that happen to equal the sentinel. + if (Number(key) >= 32 && !Object.hasOwn(target, SLOW_ELEMENTS_SENTINEL)) { + target[SLOW_ELEMENTS_SENTINEL] = value; + delete target[SLOW_ELEMENTS_SENTINEL]; + } + target[key] = value; +} + const SEGMENT_RE = /^[^\/()?;#]+/; function matchSegments(str: string): string { const match = str.match(SEGMENT_RE); @@ -742,7 +803,7 @@ class UrlParser { } } - params[decode(key)] = decode(value); + setUrlDerivedKey(params, decode(key), decode(value)); } // Parse a single query parameter `name[=value]` @@ -811,10 +872,11 @@ class UrlParser { } const children = this.parseChildren(depth + 1); - segments[outletName ?? PRIMARY_OUTLET] = + const child = Object.keys(children).length === 1 && children[PRIMARY_OUTLET] ? children[PRIMARY_OUTLET] : new UrlSegmentGroup([], children); + setUrlDerivedKey(segments, outletName ?? PRIMARY_OUTLET, child); this.consumeOptional('//'); } @@ -872,11 +934,11 @@ export function squashSegmentGroup(segmentGroup: UrlSegmentGroup): UrlSegmentGro childCandidate.hasChildren() ) { for (const [grandChildOutlet, grandChild] of Object.entries(childCandidate.children)) { - newChildren[grandChildOutlet] = grandChild; + setUrlDerivedKey(newChildren, grandChildOutlet, grandChild); } } // don't add empty children else if (childCandidate.segments.length > 0 || childCandidate.hasChildren()) { - newChildren[childOutlet] = childCandidate; + setUrlDerivedKey(newChildren, childOutlet, childCandidate); } } const s = new UrlSegmentGroup(segmentGroup.segments, newChildren); diff --git a/packages/router/src/utils/abort_signal_to_observable.ts b/packages/router/src/utils/abort_signal_to_observable.ts index ded19cedbb0d..b0e0dd06ed77 100644 --- a/packages/router/src/utils/abort_signal_to_observable.ts +++ b/packages/router/src/utils/abort_signal_to_observable.ts @@ -6,19 +6,21 @@ * found in the LICENSE file at https://angular.dev/license */ -import {Observable, of} from 'rxjs'; -import {take, takeUntil} from 'rxjs/operators'; +import {Observable} from 'rxjs'; +import {takeUntil} from 'rxjs/operators'; /** * Converts an AbortSignal to an Observable. * Emits and completes when the signal is aborted. - * If the signal is already aborted, it emits and completes immediately. + * If the signal is already aborted when subscribed, it emits and completes immediately. */ export function abortSignalToObservable(signal: AbortSignal): Observable { - if (signal.aborted) { - return of(undefined).pipe(take(1)); // Emit and complete immediately - } return new Observable((subscriber) => { + if (signal.aborted) { + subscriber.next(); + subscriber.complete(); + return; + } const handler = () => { subscriber.next(); subscriber.complete(); diff --git a/packages/router/src/utils/config_matching.ts b/packages/router/src/utils/config_matching.ts index afd4a4a780e6..b6292d6c2eed 100644 --- a/packages/router/src/utils/config_matching.ts +++ b/packages/router/src/utils/config_matching.ts @@ -68,7 +68,8 @@ export function matchWithChecks( const currentSnapshot = createPreMatchRouteSnapshot(createSnapshot(result)); // Only create the Route's `EnvironmentInjector` if it matches the attempted // navigation - injector = getOrCreateRouteInjectorIfNeeded(route, injector); + // TODO(v23): Run canMatch guards in root environment injector in 3p as well. + injector = getOrCreateRouteInjectorIfNeeded(route, injector); // 3p-only return runCanMatchGuards( injector, route, @@ -126,14 +127,13 @@ export function split( consumedSegments: UrlSegment[], slicedSegments: UrlSegment[], config: Route[], - outlet?: string, ): { segmentGroup: UrlSegmentGroup; slicedSegments: UrlSegment[]; } { if ( slicedSegments.length > 0 && - containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config, outlet) + containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config) ) { const s = new UrlSegmentGroup( consumedSegments, @@ -196,24 +196,10 @@ function containsEmptyPathMatchesWithNamedOutlets( segmentGroup: UrlSegmentGroup, slicedSegments: UrlSegment[], routes: Route[], - outlet?: string, ): boolean { - return routes.some((r) => { - // 1. Can this route match as an empty path? - const matchesEmpty = emptyPathMatch(segmentGroup, slicedSegments, r); - if (!matchesEmpty) return false; - - // 2. Is this a named outlet? (We only pull in empty paths if they are named outlets). - const isNamedOutlet = getOutlet(r) !== PRIMARY_OUTLET; - if (!isNamedOutlet) return false; - - // 3. Are we already processing this outlet? If so, we ignore it as a pull-in - // candidate. For example, if we are evaluating the 'secondary' outlet, we shouldn't - // "pull in" an empty 'secondary' group. We should let standard - // segment matching handle it (which looks at the actual characters in the URL). - const isSelfEvaluating = outlet !== undefined && getOutlet(r) === outlet; - return !isSelfEvaluating; - }); + return routes.some( + (r) => emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet(r) !== PRIMARY_OUTLET, + ); } function containsEmptyPathMatches( @@ -241,5 +227,5 @@ export function noLeftoversInUrl( segments: UrlSegment[], outlet: string, ): boolean { - return segments.length === 0 && !segmentGroup.children[outlet]; + return segments.length === 0 && !segmentGroup.hasChildren(); } diff --git a/packages/router/src/utils/view_transition.ts b/packages/router/src/utils/view_transition.ts index 103778009031..eb20417736c3 100644 --- a/packages/router/src/utils/view_transition.ts +++ b/packages/router/src/utils/view_transition.ts @@ -21,7 +21,7 @@ export const VIEW_TRANSITION_OPTIONS = new InjectionToken< /** * Options to configure the View Transitions integration in the Router. * - * @developerPreview 20.0 + * @publicApi 22.3 * @see withViewTransitions */ export interface ViewTransitionsFeatureOptions { @@ -43,7 +43,7 @@ export interface ViewTransitionsFeatureOptions { * The information passed to the `onViewTransitionCreated` function provided in the * `withViewTransitions` feature options. * - * @developerPreview 20.0 + * @publicApi 22.3 */ export interface ViewTransitionInfo { /** @@ -63,17 +63,27 @@ export interface ViewTransitionInfo { /** * A helper function for using browser view transitions. This function skips the call to - * `startViewTransition` if the browser does not support it. + * `startViewTransition` if the browser does not support it or has already provided a transition. * - * @returns A Promise that resolves when the view transition callback begins. + * @returns A Promise that resolves when the view transition callback begins, or `undefined` when + * the user agent has already provided a transition and the navigation should continue immediately. */ export function createViewTransition( injector: Injector, from: ActivatedRouteSnapshot, to: ActivatedRouteSnapshot, -): Promise { + hasUAVisualTransition?: boolean, +): Promise | undefined { const transitionOptions = injector.get(VIEW_TRANSITION_OPTIONS); const document = injector.get(DOCUMENT); + + if (hasUAVisualTransition) { + transitionOptions.skipNextTransition = false; + // The browser has already started presenting the navigation. Continuing synchronously gives it + // the earliest opportunity to display the post-navigation DOM. + return; + } + if (!document.startViewTransition || transitionOptions.skipNextTransition) { transitionOptions.skipNextTransition = false; // The timing of `startViewTransition` is closer to a macrotask. It won't be called diff --git a/packages/router/test/activated_route_injector.spec.ts b/packages/router/test/activated_route_injector.spec.ts index 7e786d78840d..c200384fbd7e 100644 --- a/packages/router/test/activated_route_injector.spec.ts +++ b/packages/router/test/activated_route_injector.spec.ts @@ -18,23 +18,10 @@ import { Router, destroyDetachedRouteHandle, provideRouter, - ɵwithRouterResources, - ɵResourceContext as ResourceContext, - ɵResourceResult as ResourceResult, + withRouterResources, } from '@angular/router'; import {RouterTestingHarness} from '@angular/router/testing'; -// TODO: Use the public @angular/router API once exposed -type InternalRoute = Route & { - /** - * A function that returns a map of resources. - * This function is executed during the Main Loading Phase of a navigation. - * @experimental - * @internal - */ - resources?: (ctx: ResourceContext) => ResourceResult | Promise; -}; - describe('ActivatedRoute local injector', () => { @Component({ template: 'home', @@ -76,10 +63,10 @@ describe('ActivatedRoute local injector', () => { let router: Router; let strategy: CustomReuseStrategy; - async function setUpRouter(routes: InternalRoute[]): Promise { + async function setUpRouter(routes: Route[]): Promise { TestBed.configureTestingModule({ providers: [ - provideRouter(routes, ɵwithRouterResources()), + provideRouter(routes, withRouterResources()), {provide: RouteReuseStrategy, useClass: CustomReuseStrategy}, ], }); diff --git a/packages/router/test/apply_redirects.spec.ts b/packages/router/test/apply_redirects.spec.ts index 7a197d095a36..fca6e346e3fd 100644 --- a/packages/router/test/apply_redirects.spec.ts +++ b/packages/router/test/apply_redirects.spec.ts @@ -1595,6 +1595,89 @@ describe('redirects', () => { ); }); + it('should limit absolute strings returned by a function', async () => { + const firstRedirectOverLimit = 32; + let redirects = 0; + + await checkRedirect( + [ + { + path: 'loop', + redirectTo: () => { + redirects++; + return redirects <= firstRedirectOverLimit ? '/loop' : '/done'; + }, + }, + {path: 'done', component: ComponentC}, + ], + '/loop', + () => fail('expected recognition to reject'), + 'emptyOnly', + (e) => { + expect((e as Error).message).toMatch(/NG04016: Detected possible infinite redirect/); + }, + ); + + expect(redirects).toBe(firstRedirectOverLimit); + }); + + it('should limit UrlTrees returned by a function', async () => { + const firstRedirectOverLimit = 32; + let redirects = 0; + + await checkRedirect( + [ + { + path: 'loop', + redirectTo: () => { + redirects++; + const target = redirects <= firstRedirectOverLimit ? '/loop' : '/done'; + return createUrlTree(target); + }, + }, + {path: 'done', component: ComponentC}, + ], + '/loop', + () => fail('expected recognition to reject'), + 'emptyOnly', + (e) => { + expect((e as Error).message).toMatch(/NG04016: Detected possible infinite redirect/); + }, + ); + + expect(redirects).toBe(firstRedirectOverLimit); + }); + + it('should stop applying redirects over the limit in production mode', async () => { + const firstRedirectOverLimit = 32; + const previousNgDevMode = (globalThis as any).ngDevMode; + let redirects = 0; + + try { + (globalThis as any).ngDevMode = false; + await checkRedirect( + [ + { + path: 'loop', + redirectTo: () => { + redirects++; + return redirects <= firstRedirectOverLimit ? '/loop' : '/done'; + }, + }, + {path: 'loop', component: ComponentC}, + {path: 'done', component: ComponentC}, + ], + '/loop', + (t: UrlTree) => expectTreeToBe(t, '/loop'), + 'emptyOnly', + ); + + expect(redirects).toBe(firstRedirectOverLimit); + } finally { + (globalThis as any).ngDevMode = previousNgDevMode; + } + }); + it('with a simple function returning a UrlTree', async () => { await checkRedirect( [ diff --git a/packages/router/test/bootstrap.spec.ts b/packages/router/test/bootstrap.spec.ts index c05e85e21240..46d8e457bc6a 100644 --- a/packages/router/test/bootstrap.spec.ts +++ b/packages/router/test/bootstrap.spec.ts @@ -44,7 +44,6 @@ describe('bootstrap', () => { @Component({ template: 'simple', - standalone: false, }) class SimpleCmp {} @@ -69,10 +68,9 @@ describe('bootstrap', () => { @Injectable({providedIn: 'root'}) class TestResolver { resolve() { - let resolve: (value: unknown) => void; - const res = new Promise((r) => (resolve = r)); + const {promise, resolve} = Promise.withResolvers(); setTimeout(() => resolve('test-data'), 0); - return res; + return promise; } } @@ -90,7 +88,7 @@ describe('bootstrap', () => { doc.body.appendChild(el1); doc.body.appendChild(el2); - const {promise, resolveFn} = createPromise(); + const {promise, resolve: resolveFn} = Promise.withResolvers(); navigationEndPromise = promise; log = []; testProviders = [ @@ -265,7 +263,6 @@ describe('bootstrap', () => { @Component({ selector: 'test', template: 'test', - standalone: false, }) class TestCmpEnabled {} @@ -277,7 +274,7 @@ describe('bootstrap', () => { {initialNavigation: 'enabledBlocking'}, ), ], - declarations: [RootCmp, TestCmpEnabled], + declarations: [RootCmp], bootstrap: [RootCmp], providers: [...testProviders, TestResolver], schemas: [CUSTOM_ELEMENTS_SCHEMA], @@ -303,7 +300,6 @@ describe('bootstrap', () => { @Component({ selector: 'test', template: 'test', - standalone: false, }) class TestCmpLegacyEnabled {} @@ -315,7 +311,7 @@ describe('bootstrap', () => { {initialNavigation: 'enabledNonBlocking'}, ), ], - declarations: [RootCmp, TestCmpLegacyEnabled], + declarations: [RootCmp], bootstrap: [RootCmp], providers: [...testProviders, TestResolver], schemas: [CUSTOM_ELEMENTS_SCHEMA], @@ -343,7 +339,6 @@ describe('bootstrap', () => { @Component({ selector: 'test', template: 'test', - standalone: false, }) class TestCmpLegacyEnabled {} @@ -354,7 +349,7 @@ describe('bootstrap', () => { {path: '**', component: TestCmpLegacyEnabled, resolve: {test: TestResolver}}, ]), ], - declarations: [RootCmp, TestCmpLegacyEnabled], + declarations: [RootCmp], bootstrap: [RootCmp], providers: [...testProviders, TestResolver], schemas: [CUSTOM_ELEMENTS_SCHEMA], @@ -382,7 +377,6 @@ describe('bootstrap', () => { @Component({ selector: 'test', template: 'test', - standalone: false, }) class TestCmpDiabled {} @@ -394,7 +388,7 @@ describe('bootstrap', () => { {initialNavigation: 'disabled'}, ), ], - declarations: [RootCmp, TestCmpDiabled], + declarations: [RootCmp], bootstrap: [RootCmp], providers: [...testProviders, TestResolver], schemas: [CUSTOM_ELEMENTS_SCHEMA], @@ -455,7 +449,7 @@ describe('bootstrap', () => { spyOn(router as any, 'resetRootComponentType').and.callThrough(); const appRef: ApplicationRef = res.injector.get(ApplicationRef); - const {promise, resolveFn} = createPromise(); + const {promise, resolve: resolveFn} = Promise.withResolvers(); appRef.components[0].onDestroy(() => { appRef.bootstrap(SecondRootCmp); expect((router as any).resetRootComponentType).toHaveBeenCalled(); @@ -470,7 +464,6 @@ describe('bootstrap', () => { if (!isNode) { it('should restore the scrolling position', async () => { @Component({ - selector: 'component-a', template: `
    @@ -480,7 +473,6 @@ describe('bootstrap', () => {
    `, - standalone: false, }) class TallComponent {} @NgModule({ @@ -502,7 +494,7 @@ describe('bootstrap', () => { }, ), ], - declarations: [TallComponent, RootCmp], + declarations: [RootCmp], bootstrap: [RootCmp], providers: [...testProviders], schemas: [CUSTOM_ELEMENTS_SCHEMA], @@ -592,7 +584,7 @@ describe('bootstrap', () => { {path: 'b', component: SimpleCmp}, ]), ], - declarations: [RootCmp, SimpleCmp], + declarations: [RootCmp], bootstrap: [RootCmp], providers: [...testProviders], }) @@ -629,11 +621,3 @@ function provideNavigationEndAction(fn: Function) { }, }; } - -function createPromise() { - let resolveFn: () => void; - const promise = new Promise((r) => { - resolveFn = r; - }); - return {resolveFn: () => resolveFn(), promise}; -} diff --git a/packages/router/test/computed_state_restoration.spec.ts b/packages/router/test/computed_state_restoration.spec.ts index f451a6237452..153fdfbf8330 100644 --- a/packages/router/test/computed_state_restoration.spec.ts +++ b/packages/router/test/computed_state_restoration.spec.ts @@ -81,7 +81,7 @@ for (const browserAPI of ['navigation', 'history'] as const) { let fixture: ComponentFixture; - async function createNavigationHistory(urlUpdateStrategy: 'eager' | 'deferred' = 'deferred') { + function configureTestingModule(urlUpdateStrategy: 'eager' | 'deferred' = 'deferred') { TestBed.configureTestingModule({ providers: [ provideRouter( @@ -132,6 +132,10 @@ for (const browserAPI of ['navigation', 'history'] as const) { ), ], }); + } + + async function createNavigationHistory(urlUpdateStrategy: 'eager' | 'deferred' = 'deferred') { + configureTestingModule(urlUpdateStrategy); const router = TestBed.inject(Router); const location = TestBed.inject(Location); fixture = await createRoot(router, RootCmp); @@ -516,6 +520,51 @@ for (const browserAPI of ['navigation', 'history'] as const) { expect(location.path()).toEqual('/first'); expectPageIndex(1); }); + + it(`does not traverse history when initial navigation after reload is cancelled with urlUpdateStrategy ${urlUpdateStrategy}`, async () => { + configureTestingModule(urlUpdateStrategy); + const location = TestBed.inject(Location); + const router = TestBed.inject(Router); + + location.go('/first', '', {navigationId: 1, ɵrouterPageId: 1}); + location.go('/second', '', {navigationId: 2, ɵrouterPageId: 2}); + + TestBed.inject(MyCanActivateGuard).allow = false; + await createRoot(router, RootCmp); + await timeout(5); + + expectPageIndex(2); + + // Once the guard allows navigation, back traversal to /first should succeed at index 1. + TestBed.inject(MyCanActivateGuard).allow = true; + location.back(); + await nextNavigation(); + await timeout(5); + expect(location.path()).toEqual('/first'); + expectPageIndex(1); + }); + + it(`does not traverse history when initial navigation after reload errors with urlUpdateStrategy ${urlUpdateStrategy}`, async () => { + configureTestingModule(urlUpdateStrategy); + const location = TestBed.inject(Location); + const router = TestBed.inject(Router); + + location.go('/first', '', {navigationId: 1, ɵrouterPageId: 1}); + location.go('/second', '', {navigationId: 2, ɵrouterPageId: 2}); + + TestBed.inject(ThrowingCanActivateGuard).throw = true; + await createRoot(router, RootCmp); + await timeout(5); + + expectPageIndex(2); + + TestBed.inject(ThrowingCanActivateGuard).throw = false; + location.back(); + await nextNavigation(); + await timeout(5); + expect(location.path()).toEqual('/first'); + expectPageIndex(1); + }); } }); } @@ -528,7 +577,6 @@ async function createRoot(router: Router, type: Type): Promise
    `, imports: [RouterOutlet], }) class RootCmp {} @Component({ - selector: 'throwing-cmp', template: '', }) class ThrowingCmp { diff --git a/packages/router/test/create_url_tree.spec.ts b/packages/router/test/create_url_tree.spec.ts index 8132136d1ed5..bc25583d9607 100644 --- a/packages/router/test/create_url_tree.spec.ts +++ b/packages/router/test/create_url_tree.spec.ts @@ -22,6 +22,15 @@ import {timeout} from '@angular/private/testing'; describe('createUrlTree', () => { const serializer = new DefaultUrlSerializer(); + const protocolRelativeUrlWarning = `NG04019: Cannot serialize a UrlTree that would produce a protocol-relative URL. Falling back to '/' instead.`; + + function expectProtocolRelativeUrlFallback(tree: UrlTree, expected = '/'): void { + const warn = spyOn(console, 'warn'); + + expect(serializer.serialize(tree)).toEqual(expected); + expect(warn).toHaveBeenCalledOnceWith(protocolRelativeUrlWarning); + } + let router: Router; beforeEach(() => { router = TestBed.inject(Router); @@ -134,6 +143,83 @@ describe('createUrlTree', () => { expect(serializer.serialize(t)).toEqual('/%2Fone/two%2Fthree'); }); + describe('leading empty path commands', () => { + it('should fall back for absolute navigations that would serialize as protocol-relative', () => { + const t = router.createUrlTree(['/', '', '', 'attacker.example', 'collect']); + + expectProtocolRelativeUrlFallback(t); + }); + + it('should fall back for an unsafe primary outlet string', async () => { + await router.navigateByUrl('/safe'); + const t = router.createUrlTree([{outlets: {primary: '/attacker.example/collect'}}]); + + expectProtocolRelativeUrlFallback(t); + }); + + it('should fall back for an unsafe primary outlet array', () => { + const t = router.createUrlTree([{outlets: {primary: ['', 'attacker.example', 'collect']}}]); + + expectProtocolRelativeUrlFallback(t); + }); + + it('should fall back for unsafe parent-relative commands', async () => { + router.resetConfig([{path: 'source', component: class {}}]); + await router.navigateByUrl('/source'); + const t = create(router.routerState.root.firstChild!, [ + '../', + '', + 'attacker.example', + 'collect', + ]); + + expectProtocolRelativeUrlFallback(t); + }); + + it('should fall back for an escaped slash after an empty path command', () => { + const t = router.createUrlTree(['/', '', {segmentPath: '/'}]); + + expectProtocolRelativeUrlFallback(t); + }); + + it('should fall back for final empty path commands', () => { + const t = router.createUrlTree(['/', '', '']); + + expectProtocolRelativeUrlFallback(t); + }); + + it('should fall back for dot segments that normalize to protocol-relative', () => { + const t = router.createUrlTree(['/', '.', '', 'attacker.example', 'collect']); + + expectProtocolRelativeUrlFallback(t); + }); + + it('should fall back for parent dot segments that normalize to protocol-relative', () => { + const t = router.createUrlTree(['/', '..', '', 'attacker.example', 'collect']); + + expectProtocolRelativeUrlFallback(t); + }); + + it('should preserve query params and fragment when falling back', () => { + const t = router.createUrlTree(['/', '', '', 'attacker.example', 'collect'], { + queryParams: {foo: 'bar'}, + fragment: 'frag', + }); + + expectProtocolRelativeUrlFallback(t, '/?foo=bar#frag'); + }); + + it('should not normalize a leading empty path command in a secondary outlet', () => { + const t = router.createUrlTree(['/', {outlets: {right: ['', 'child']}}]); + + expect(t.root.children['right'].segments.map((segment) => segment.path)).toEqual([ + '', + 'child', + ]); + expect(serializer.serialize(t)).toEqual('/(right:/child)'); + }); + }); + describe('named outlets', () => { it('should preserve secondary segments', async () => { const p = serializer.parse('/a/11/b(right:c)'); @@ -678,7 +764,6 @@ describe('createUrlTreeFromSnapshot', () => { @Component({ template: 'child works!', - standalone: false, }) class ChildComponent {} @@ -758,11 +843,24 @@ describe('createUrlTreeFromSnapshot', () => { await advance(fixture); expect(router.url).toEqual('/parent/sibling'); }); + + it('should remove query params with null or undefined values', async () => { + const router = TestBed.inject(Router); + router.resetConfig([{path: '**', component: class {}}]); + await router.navigateByUrl('/a?a=1&b=2&c=3'); + + const tree = createUrlTreeFromSnapshot(router.routerState.snapshot.root, [], { + a: null, + b: undefined, + c: '4', + }); + expect(router.serializeUrl(tree)).toEqual('/a?c=4'); + }); }); async function advance(fixture: ComponentFixture) { await timeout(); - fixture.detectChanges(); + await fixture.whenStable(); } describe('createUrlTree with custom serializer', () => { diff --git a/packages/router/test/directives/router_outlet.spec.ts b/packages/router/test/directives/router_outlet.spec.ts index fc73fb640f0c..b568e3339f31 100644 --- a/packages/router/test/directives/router_outlet.spec.ts +++ b/packages/router/test/directives/router_outlet.spec.ts @@ -7,39 +7,41 @@ */ import {CommonModule, NgForOf} from '@angular/common'; -import {Component, inject, Input, Type, NgModule, signal, resource} from '@angular/core'; +import { + Component, + effect, + inject, + input, + Input, + model, + NgModule, + resource, + signal, + Type, +} from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {By} from '@angular/platform-browser'; +import {timeout, useAutoTick} from '@angular/private/testing'; +import {EnvironmentProviders, InjectionToken} from '../../../core/src/di'; import { provideRouter as internalProvideRouter, + nonBlocking, + RedirectCommand, + Route, Router, + ROUTER_OUTLET_DATA, + RouterFeatures, RouterModule, RouterOutlet, withComponentInputBinding, - ROUTER_OUTLET_DATA, - ɵwithRouterResources as withRouterResources, - ɵnonBlocking as nonBlocking, - Route, - RouterFeatures, + withErrorBoundaries, + withRouterResources, } from '../../index'; +import {INPUT_BINDER, resetMissingErrorBoundariesWarning} from '../../src/directives/router_outlet'; import {RouterTestingHarness} from '../../testing'; -import {EnvironmentProviders, InjectionToken} from '../../../core/src/di'; -import {useAutoTick, timeout} from '@angular/private/testing'; -import {ResourceContext, ResourceResult} from '../../src/models'; - -// TODO: Use the public @angular/router API once exposed -type InternalRoute = Route & { - /** - * A function that returns a map of resources. - * This function is executed during the Main Loading Phase of a navigation. - * @experimental - * @internal - */ - resources?: (ctx: ResourceContext) => ResourceResult | Promise; - children?: InternalRoute[]; -}; export function provideRouter( - routes: InternalRoute[], + routes: Route[], ...features: RouterFeatures[] ): EnvironmentProviders { return internalProvideRouter(routes, ...features); @@ -215,7 +217,6 @@ describe('component input binding', () => { it('sets component inputs from matching query params', async () => { @Component({ template: '', - standalone: false, }) class MyComponent { @Input() language?: string; @@ -244,7 +245,6 @@ describe('component input binding', () => { it('omits binding undefined to inputs not available in router data if never available', async () => { @Component({ template: '', - standalone: false, }) class MyComponent { @Input() language: string | undefined = 'default'; @@ -273,7 +273,6 @@ describe('component input binding', () => { it('does not set component inputs from matching query params when queryParam inputs are disabled', async () => { @Component({ template: '', - standalone: false, }) class MyComponent { @Input() language?: string; @@ -296,7 +295,6 @@ describe('component input binding', () => { it('sets component inputs from resolved and static data', async () => { @Component({ template: '', - standalone: false, }) class MyComponent { @Input() resolveA?: string; @@ -328,7 +326,6 @@ describe('component input binding', () => { it('sets component inputs from path params', async () => { @Component({ template: '', - standalone: false, }) class MyComponent { @Input() language?: string; @@ -348,7 +345,6 @@ describe('component input binding', () => { it('when keys conflict, sets inputs based on priority: data > path params > query params', async () => { @Component({ template: '', - standalone: false, }) class MyComponent { @Input() result?: string; @@ -393,7 +389,6 @@ describe('component input binding', () => { it('when keys conflict, sets inputs based on priority: data > path params > query params, with queryParams disabled', async () => { @Component({ template: '', - standalone: false, }) class MyComponent { @Input() result?: string; @@ -439,7 +434,6 @@ describe('component input binding', () => { let resultLog: Array = []; @Component({ template: '', - standalone: false, }) class MyComponent { @Input() @@ -499,7 +493,6 @@ describe('component input binding', () => { it('when keys conflict, sets inputs based on priority: resources > resolvers > data', async () => { @Component({ template: '', - standalone: false, }) class MyComponent { @Input() result?: any; @@ -507,7 +500,6 @@ describe('component input binding', () => { @Component({ template: '', - standalone: false, }) class MyComponentWithoutResource { @Input() result?: any; @@ -515,7 +507,6 @@ describe('component input binding', () => { @Component({ template: '', - standalone: false, }) class MyComponentWithoutResolver { @Input() result?: any; @@ -573,7 +564,6 @@ describe('component input binding', () => { it('binds the actual resource object for non-blocking resources', async () => { @Component({ template: '', - standalone: false, }) class MyComponent { @Input() result?: any; @@ -609,7 +599,6 @@ describe('component input binding', () => { @Component({ template: '', - standalone: false, }) class MyComponent { @Input() result?: string; @@ -617,7 +606,6 @@ describe('component input binding', () => { @Component({ template: '', - standalone: false, }) class OtherComponent {} @@ -665,6 +653,115 @@ describe('component input binding', () => { await harness.fixture.whenStable(); expect(instance.result).toEqual('data: updated'); }); + + it('unsubscribes from route data and cleans up binding effects on outlet deactivation', async () => { + @Component({ + template: '', + standalone: false, + }) + class MyComponent {} + + TestBed.configureTestingModule({ + providers: [ + provideRouter( + [ + {path: 'test', component: MyComponent}, + {path: 'empty', children: []}, + ], + withComponentInputBinding(), + ), + ], + }); + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/test', MyComponent); + + const inputBinder = TestBed.inject(INPUT_BINDER); + const spy = spyOn(inputBinder, 'unsubscribeFromRouteData').and.callThrough(); + + const outlet = harness.fixture.debugElement + .query(By.directive(RouterOutlet)) + .injector.get(RouterOutlet); + await harness.navigateByUrl('/empty'); + await harness.fixture.whenStable(); + + expect(spy).toHaveBeenCalledWith(outlet); + }); + + it('unsubscribes from route data when deactivate() is called directly', async () => { + @Component({ + template: '', + standalone: false, + }) + class MyComponent {} + + TestBed.configureTestingModule({ + providers: [ + provideRouter([{path: 'test', component: MyComponent}], withComponentInputBinding()), + ], + }); + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/test', MyComponent); + + const inputBinder = TestBed.inject(INPUT_BINDER); + const spy = spyOn(inputBinder, 'unsubscribeFromRouteData').and.callThrough(); + + const outlet = harness.fixture.debugElement + .query(By.directive(RouterOutlet)) + .injector.get(RouterOutlet); + outlet.deactivate(); + + expect(spy).toHaveBeenCalledWith(outlet); + }); + + it('sets blocking resource input synchronously so input.required() is available in ngOnInit and constructor effects on first render', async () => { + const log: string[] = []; + + @Component({ + template: '{{ passenger() }}', + }) + class PassengerEdit { + @Input({isSignal: true, required: true} as any) + readonly passenger = model.required(); + @Input({isSignal: true, required: true} as any) + readonly details = input.required(); + + constructor() { + effect(() => { + log.push(`effect:${this.passenger()}:${this.details()}`); + }); + } + + ngOnInit() { + log.push(`init:${this.passenger()}:${this.details()}`); + } + } + + TestBed.configureTestingModule({ + providers: [ + provideRouter( + [ + { + path: 'edit', + component: PassengerEdit, + resources: () => ({ + passenger: resource({loader: async () => 'Alice'}), + details: resource({loader: async () => 'VIP'}), + }), + }, + ], + withComponentInputBinding(), + withRouterResources(), + ), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/edit', PassengerEdit); + await harness.fixture.whenStable(); + + expect(log).toEqual(['init:Alice:VIP', 'effect:Alice:VIP']); + expect(harness.routeNativeElement?.textContent).toBe('Alice'); + }); }); describe('injectors', () => { @@ -696,9 +793,9 @@ describe('injectors', () => { providers: [provideRouter([{path: 'a', component: Child}])], }); const fixture = TestBed.createComponent(App); - fixture.detectChanges(); + await fixture.whenStable(); await TestBed.inject(Router).navigateByUrl('/a'); - fixture.detectChanges(); + await fixture.whenStable(); expect(childTokenValue).toEqual(null); }); @@ -729,12 +826,12 @@ describe('injectors', () => { ], }); const fixture = TestBed.createComponent(App); - fixture.detectChanges(); + await fixture.whenStable(); await TestBed.inject(Router).navigateByUrl('/a'); - fixture.detectChanges(); + await fixture.whenStable(); expect(childTokenValue).toEqual('a value'); await TestBed.inject(Router).navigateByUrl('/b'); - fixture.detectChanges(); + await fixture.whenStable(); expect(childTokenValue).toEqual(null); }); }); @@ -755,7 +852,7 @@ describe('router outlet data', () => { const fixture = TestBed.createComponent(App); await TestBed.inject(Router).navigateByUrl('/'); - fixture.detectChanges(); + await fixture.whenStable(); const routedComponent = fixture.debugElement.query( (v) => v.componentInstance instanceof MyComponent, ).componentInstance as MyComponent; @@ -853,9 +950,1413 @@ describe('router outlet data', () => { }); }); +describe('Error boundaries and errorComponent integration', () => { + useAutoTick(); + + /** + * Error boundaries are an opt-in feature. Most tests in this block only care about the default + * behavior of the feature, so this helper enables it without any options. + */ + function provideRouterWithBoundaries( + routes: Route[], + ...features: RouterFeatures[] + ): EnvironmentProviders { + return internalProvideRouter(routes, withErrorBoundaries(), ...features); + } + + it('renders route errorComponent when component throws in ngOnInit and sets error input', async () => { + @Component({ + template: 'Normal Component Content', + }) + class ThrowingComponent { + ngOnInit() { + throw new Error('Component Rendering Failed'); + } + } + + @Component({ + template: 'Error caught: {{ error?.message }}', + }) + class ErrorFallbackComponent { + @Input() error?: Error; + } + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'test', + component: ThrowingComponent, + errorComponent: ErrorFallbackComponent, + }, + ]), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/test'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerText).toContain( + 'Error caught: Component Rendering Failed', + ); + }); + + it('rejects the navigation when a blocking router resource throws', async () => { + @Component({ + template: 'User: {{ user }}', + }) + class ProfileComponent { + @Input() user?: string; + } + + @Component({ + template: 'Resource Error: {{ error?.message }}', + }) + class ProfileErrorComponent { + @Input() error?: Error; + } + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries( + [ + { + path: 'profile', + component: ProfileComponent, + errorComponent: ProfileErrorComponent, + resources: () => ({ + user: resource({ + loader: async () => { + throw new Error('Network Timeout'); + }, + }), + }), + }, + ], + withComponentInputBinding(), + withRouterResources(), + ), + ], + }); + + const harness = await RouterTestingHarness.create(); + + // Blocking resources are awaited as part of the navigation, so a rejected resource fails the + // navigation. The route is never activated and therefore its `errorComponent` is not used. + await expectAsync(harness.navigateByUrl('/profile')).toBeRejectedWithError('Network Timeout'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerText).not.toContain('Resource Error:'); + }); + + it('catches creation pass (constructor) errors and renders errorComponent', async () => { + @Component({ + template: 'Content', + }) + class ConstructorErrorComponent { + constructor() { + throw new Error('Constructor Creation Failure'); + } + } + + @Component({ + template: 'Caught Constructor Error: {{ error?.message }}', + }) + class ErrorFallbackComponent { + @Input() error?: Error; + } + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'test-constructor-error', + component: ConstructorErrorComponent, + errorComponent: ErrorFallbackComponent, + }, + ]), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/test-constructor-error'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerText).toContain( + 'Caught Constructor Error: Constructor Creation Failure', + ); + }); + + it('catches RedirectCommand thrown in route component and triggers navigation', async () => { + @Component({ + template: 'Redirecting...', + }) + class RedirectSourceComponent { + private router = inject(Router); + ngOnInit() { + throw new RedirectCommand(this.router.parseUrl('/target-destination')); + } + } + + @Component({ + template: 'Target Destination Reached', + }) + class TargetDestinationComponent {} + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'redirect-source', + component: RedirectSourceComponent, + }, + { + path: 'target-destination', + component: TargetDestinationComponent, + }, + ]), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/redirect-source'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerText).toContain('Target Destination Reached'); + }); + + it('catches RedirectCommand thrown in route resource and triggers navigation', async () => { + @Component({ + template: 'Source with resource', + }) + class ResourceRedirectComponent { + @Input() data?: string; + } + + @Component({ + template: 'Login Page Content', + }) + class LoginComponent {} + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries( + [ + { + path: 'auth-required', + component: ResourceRedirectComponent, + resources: () => { + const router = inject(Router); + return { + data: resource({ + loader: async () => { + throw new RedirectCommand(router.parseUrl('/login')); + }, + }), + }; + }, + }, + { + path: 'login', + component: LoginComponent, + }, + ], + withComponentInputBinding(), + withRouterResources(), + ), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/auth-required'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerText).toContain('Login Page Content'); + }); + + it('dispatches RedirectCommand only once when bubbling through multiple boundaries', async () => { + let navigateByUrlCalls = 0; + + @Component({ + template: 'Throwing Child', + }) + class ThrowingChild { + private router = inject(Router); + ngOnInit() { + throw new RedirectCommand(this.router.parseUrl('/destination')); + } + } + + @Component({ + imports: [RouterOutlet], + template: '', + }) + class ParentLayout {} + + @Component({ + template: 'Destination Reached', + }) + class DestinationComponent {} + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'parent', + component: ParentLayout, + children: [ + { + path: 'child', + component: ThrowingChild, + }, + ], + }, + { + path: 'destination', + component: DestinationComponent, + }, + ]), + ], + }); + + const router = TestBed.inject(Router); + const origNavigateByUrl = router.navigateByUrl.bind(router); + spyOn(router, 'navigateByUrl').and.callFake((...args) => { + // The harness performs the initial navigation through `navigateByUrl` as well, so only the + // navigations towards the redirect target are counted here. + if (router.serializeUrl(router.parseUrl(String(args[0]))) === '/destination') { + navigateByUrlCalls++; + } + return origNavigateByUrl(...args); + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/parent/child'); + await harness.fixture.whenStable(); + + expect(navigateByUrlCalls).toBe(1); + expect(harness.routeNativeElement?.innerText).toContain('Destination Reached'); + }); + + it('bubbles error up when route does not define an errorComponent', async () => { + @Component({ + template: 'Throwing Component Content', + }) + class ThrowingComponent { + ngOnInit() { + throw new Error('Uncaught Route Error'); + } + } + + @Component({ + imports: [RouterOutlet], + template: ` + @boundary { + + } @error (let err) { +
    Caught by template boundary: {{ err.message }}
    + } + `, + }) + class RootBoundaryComponent {} + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'unhandled-error', + component: ThrowingComponent, + }, + ]), + ], + }); + + const router = TestBed.inject(Router); + const fixture = await createRoot(router, RootBoundaryComponent); + await router.navigateByUrl('/unhandled-error'); + await advance(fixture); + + expect(fixture.nativeElement.innerHTML).toContain( + 'Caught by template boundary: Uncaught Route Error', + ); + }); + + it('renders defaultErrorComponent configured via withErrorBoundaries when route lacks errorComponent', async () => { + @Component({ + template: 'Content', + }) + class ThrowingComponent { + ngOnInit() { + throw new Error('Unhandled in Route'); + } + } + + @Component({ + template: 'Global Error Fallback: {{ error?.message }}', + }) + class GlobalErrorComponent { + @Input() error?: Error; + } + + TestBed.configureTestingModule({ + providers: [ + provideRouter( + [ + { + path: 'default-fallback', + component: ThrowingComponent, + }, + ], + withErrorBoundaries({ + defaultErrorComponent: GlobalErrorComponent, + }), + ), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/default-fallback'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerText).toContain( + 'Global Error Fallback: Unhandled in Route', + ); + }); + + it('invokes onError hook in withErrorBoundaries in the root injection context', async () => { + let telemetryError: Error | null = null; + let injectedRootValue: string | null = null; + const ROOT_TOKEN = new InjectionToken('ROOT_TOKEN'); + + @Component({ + template: '', + }) + class ThrowingComponent { + ngOnInit() { + throw new Error('Telemetry Error'); + } + } + + @Component({ + template: 'Error View', + }) + class ErrorViewComponent { + @Input() error?: Error; + } + + TestBed.configureTestingModule({ + providers: [ + {provide: ROOT_TOKEN, useValue: 'root'}, + provideRouter( + [ + { + path: 'telemetry', + component: ThrowingComponent, + errorComponent: ErrorViewComponent, + providers: [{provide: ROOT_TOKEN, useValue: 'route'}], + }, + ], + withErrorBoundaries({ + onError: (err) => { + telemetryError = err; + injectedRootValue = inject(ROOT_TOKEN); + }, + }), + ), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/telemetry'); + await harness.fixture.whenStable(); + + expect(telemetryError).not.toBeNull(); + expect((telemetryError as any)?.message).toBe('Telemetry Error'); + expect(injectedRootValue as string | null).toBe('root'); + }); + + it('bubbles error up to template boundary even if onError is provided', async () => { + let telemetryError: Error | null = null; + + @Component({ + template: '', + }) + class ThrowingComponent { + ngOnInit() { + throw new Error('Telemetry Error'); + } + } + + @Component({ + imports: [RouterOutlet], + template: ` + @boundary { + + } @error (let err) { +
    Caught by template boundary: {{ err.message }}
    + } + `, + }) + class RootBoundaryComponent {} + + TestBed.configureTestingModule({ + providers: [ + provideRouter( + [ + { + path: 'telemetry', + component: ThrowingComponent, + // No errorComponent provided + }, + ], + withErrorBoundaries({ + onError: (err) => { + telemetryError = err; + }, + }), + ), + ], + }); + + const router = TestBed.inject(Router); + const fixture = await createRoot(router, RootBoundaryComponent); + await router.navigateByUrl('/telemetry'); + await advance(fixture); + + // Verify the global hook was NOT invoked because the router did not catch the error + expect(telemetryError).toBeNull(); + // Verify it still bubbled up to the template boundary + expect(fixture.nativeElement.innerHTML).toContain( + 'Caught by template boundary: Telemetry Error', + ); + }); + + it('runs canDeactivate guards when the error component is active', async () => { + let guardExecutionCount = 0; + let passedComponent: unknown; + let allowDeactivate = false; + + @Component({ + template: '', + }) + class ThrowingComponent { + ngOnInit() { + throw new Error('Crash in OnInit'); + } + } + + @Component({ + template: 'Error View', + }) + class ErrorViewComponent {} + + @Component({ + template: 'Home View', + }) + class HomeComponent {} + + TestBed.configureTestingModule({ + providers: [ + provideRouter( + [ + { + path: 'home', + component: HomeComponent, + }, + { + path: 'editor', + component: ThrowingComponent, + errorComponent: ErrorViewComponent, + canDeactivate: [ + (comp: unknown) => { + guardExecutionCount++; + passedComponent = comp; + return allowDeactivate; + }, + ], + }, + ], + withErrorBoundaries(), + ), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/editor'); + await harness.fixture.whenStable(); + + // Verify error component is shown + expect(harness.routeNativeElement?.innerHTML).toContain('Error View'); + + const router = TestBed.inject(Router); + + // Attempt to navigate away with guard returning false + const navBlocked = await router.navigateByUrl('/home'); + expect(navBlocked).toBe(false); + expect(guardExecutionCount).toBe(1); + expect(passedComponent instanceof ErrorViewComponent).toBe(true); + expect(harness.routeNativeElement?.innerHTML).toContain('Error View'); + + // Attempt to navigate away with guard returning true + allowDeactivate = true; + const navSuccess = await router.navigateByUrl('/home'); + expect(navSuccess).toBe(true); + expect(guardExecutionCount).toBe(2); + expect(harness.routeNativeElement?.innerHTML).toContain('Home View'); + }); + + it('recovers from the error component when navigating to the same route with different parameters', async () => { + let constructorCount = 0; + let shouldCrash = true; + + @Component({ + template: 'Product', + }) + class ProductDetails { + constructor() { + constructorCount++; + if (shouldCrash) { + throw new Error('Crash on 1'); + } + } + } + + @Component({ + template: 'Error', + }) + class ProductErrorFallback {} + + TestBed.configureTestingModule({ + providers: [ + provideRouter( + [ + { + path: 'product/:id', + component: ProductDetails, + errorComponent: ProductErrorFallback, + }, + ], + withErrorBoundaries(), + withComponentInputBinding(), + ), + ], + }); + + const harness = await RouterTestingHarness.create(); + + // Navigate to product 1, which crashes. + await harness.navigateByUrl('/product/1'); + await harness.fixture.whenStable(); + + // Verify error component is shown + expect(harness.routeNativeElement?.innerHTML).toContain('Error'); + expect(constructorCount).toBe(1); + + // Now navigate to product 2. + shouldCrash = false; + await harness.navigateByUrl('/product/2'); + await harness.fixture.whenStable(); + + // The primary component MUST be rendered for Product 2. + expect(harness.routeNativeElement?.innerHTML).toContain('Product'); + // And the primary component MUST have been instantiated a second time! + expect(constructorCount).toBe(2); + + // If we navigate to yet another product without crashing, the component MUST be reused! + await harness.navigateByUrl('/product/3'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerHTML).toContain('Product'); + // The constructor should NOT have been called again. + expect(constructorCount).toBe(2); + }); + + it('bubbles child component crashes to the parent error boundary', async () => { + let parentErrorShown = false; + + @Component({ + template: 'Parent ', + imports: [RouterOutlet], + }) + class ParentComponent {} + + @Component({ + template: 'Parent Error', + }) + class ParentErrorFallback { + constructor() { + console.trace('ParentErrorFallback instantiated!'); + parentErrorShown = true; + } + } + + @Component({template: 'Child'}) + class ChildComponent { + constructor() { + throw new Error('Child crash'); + } + } + + TestBed.configureTestingModule({ + providers: [ + provideRouter( + [ + { + path: 'parent', + component: ParentComponent, + errorComponent: ParentErrorFallback, + children: [ + { + path: 'child', + component: ChildComponent, + }, + ], + }, + ], + withErrorBoundaries(), + ), + ], + }); + + const harness = await RouterTestingHarness.create(); + + try { + await harness.navigateByUrl('/parent/child'); + } catch (e) {} + + await harness.fixture.whenStable(); + + // If error boundaries are hierarchical, the parent error component should catch the child's crash! + // And it DOES! Thanks to Angular's view-level onError bubbling. + expect(parentErrorShown).toBe(true); + expect(harness.routeNativeElement?.innerHTML).toContain('Parent Error'); + }); + + it('does not emit activateEvents or deactivateEvents for the errorComponent', async () => { + let activateCount = 0; + let activatedInstance: any = null; + let deactivateCount = 0; + let deactivatedInstance: any = null; + + @Component({ + template: 'Product', + }) + class ProductDetails { + constructor() { + throw new Error('Crash'); + } + } + + @Component({ + template: 'Error', + }) + class ProductErrorFallback {} + + @Component({ + template: + '', + imports: [RouterOutlet], + }) + class AppCmp { + onActivate(instance: any) { + activateCount++; + activatedInstance = instance; + } + onDeactivate(instance: any) { + deactivateCount++; + deactivatedInstance = instance; + } + } + + TestBed.configureTestingModule({ + providers: [ + provideRouter( + [ + { + path: 'product/:id', + component: ProductDetails, + errorComponent: ProductErrorFallback, + }, + { + path: 'other', + component: ProductErrorFallback, // Just something else to navigate to + }, + ], + withErrorBoundaries(), + ), + ], + }); + + const fixture = TestBed.createComponent(AppCmp); + const router = TestBed.inject(Router); + fixture.detectChanges(); + + await router.navigateByUrl('/product/1'); + fixture.detectChanges(); + + // Verify error component is shown + expect(fixture.nativeElement.innerHTML).toContain('Error'); + + // activateEvents should NOT emit the error component instance + expect(activateCount).toBe(0); + + // Navigate away to trigger deactivation of the error component + await router.navigateByUrl('/other'); + fixture.detectChanges(); + + // deactivateEvents should NOT emit the error component instance, maintaining symmetry with activateEvents + expect(deactivateCount).toBe(0); + }); + + it('only invokes onError once when an unhandled child error bubbles to parent errorComponent', async () => { + let onErrorCallCount = 0; + + @Component({ + template: 'Child', + }) + class ThrowingChild { + constructor() { + throw new Error('Child Crash'); + } + } + + @Component({ + template: 'Parent Error Fallback', + }) + class ParentErrorFallback {} + + @Component({ + template: '', + imports: [RouterOutlet], + }) + class ParentCmp {} + + TestBed.configureTestingModule({ + providers: [ + provideRouter( + [ + { + path: 'parent', + component: ParentCmp, + errorComponent: ParentErrorFallback, + children: [ + { + path: 'child', + component: ThrowingChild, + }, + ], + }, + ], + withErrorBoundaries({ + onError: () => { + onErrorCallCount++; + }, + }), + ), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/parent/child'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerHTML).toContain('Parent Error Fallback'); + expect(onErrorCallCount).toBe(1); + }); + + it('does not catch errors when the error boundary feature is not enabled', async () => { + @Component({ + template: '', + }) + class ThrowingComponent { + ngOnInit() { + throw new Error('Uncaught Error'); + } + } + + @Component({ + template: 'Error View', + }) + class ErrorViewComponent { + @Input() error?: Error; + } + + TestBed.configureTestingModule({ + providers: [ + provideRouter([ + { + path: 'no-boundary', + component: ThrowingComponent, + errorComponent: ErrorViewComponent, + }, + ]), + ], + }); + + const harness = await RouterTestingHarness.create(); + await expectAsync(harness.navigateByUrl('/no-boundary')).toBeRejectedWithError( + 'Uncaught Error', + ); + }); + + it('catches RedirectCommand thrown in component constructor and triggers navigation', async () => { + @Component({ + template: '', + }) + class ConstructorRedirectComponent { + private router = inject(Router); + constructor() { + throw new RedirectCommand(this.router.parseUrl('/constructor-destination')); + } + } + + @Component({ + template: 'Constructor Destination Reached', + }) + class DestinationComponent {} + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'constructor-redirect', + component: ConstructorRedirectComponent, + }, + { + path: 'constructor-destination', + component: DestinationComponent, + }, + ]), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/constructor-redirect'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerText).toContain('Constructor Destination Reached'); + }); + + it('renders static errorComponent that does not declare an error input', async () => { + @Component({ + template: '', + }) + class ThrowingComponent { + ngOnInit() { + throw new Error('Static Error Test'); + } + } + + @Component({ + template: 'Static Fallback Message (No Inputs)', + }) + class StaticErrorComponent {} + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'static-error', + component: ThrowingComponent, + errorComponent: StaticErrorComponent, + }, + ]), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/static-error'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerText).toContain('Static Fallback Message (No Inputs)'); + }); + + it('bubbles child route error up to parent route errorComponent when child has none', async () => { + @Component({ + template: '', + }) + class ThrowingChildComponent { + ngOnInit() { + throw new Error('Child Failed'); + } + } + + @Component({ + imports: [RouterOutlet], + template: '', + }) + class ParentLayoutComponent {} + + @Component({ + template: 'Parent Caught Error: {{ error?.message }}', + }) + class ParentErrorComponent { + @Input() error?: Error; + } + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'parent', + component: ParentLayoutComponent, + errorComponent: ParentErrorComponent, + children: [ + { + path: 'child', + component: ThrowingChildComponent, + }, + ], + }, + ]), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/parent/child'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerText).toContain('Parent Caught Error: Child Failed'); + }); + + it('unmounts parent component and renders parent errorComponent when child route throws without its own errorComponent', async () => { + @Component({ + imports: [RouterOutlet], + template: '

    Parent Layout

    ', + }) + class ParentLayoutComponent {} + + @Component({ + template: 'Child Content', + }) + class ThrowingChildComponent { + ngOnInit() { + throw new Error('Child Page Failed'); + } + } + + @Component({ + template: '
    Parent Fallback: {{ error?.message }}
    ', + }) + class ParentErrorComponent { + @Input() error?: Error; + } + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'parent', + component: ParentLayoutComponent, + errorComponent: ParentErrorComponent, + children: [ + { + path: 'child', + component: ThrowingChildComponent, + }, + ], + }, + ]), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/parent/child'); + await harness.fixture.whenStable(); + + // The parent route's errorComponent is rendered with the error that bubbled from the child + expect(harness.routeNativeElement?.innerText).toContain('Parent Fallback: Child Page Failed'); + // The entire parent component is destroyed and replaced (the parent layout header is no longer rendered) + expect(harness.routeNativeElement?.innerText).not.toContain('Parent Layout'); + }); + + it('keeps parent layout and child component mounted when error is caught by child template boundary', async () => { + @Component({ + selector: 'crashing-widget', + template: '', + }) + class CrashingWidget { + ngOnInit() { + throw new Error('Nested Widget Crash'); + } + } + + @Component({ + imports: [RouterOutlet], + template: '

    Parent Layout

    ', + }) + class ParentLayoutComponent {} + + @Component({ + imports: [CrashingWidget], + template: ` +

    Child Content

    + @boundary { + + } @error (let err) { +

    Caught locally: {{ err.message }}

    + } + `, + }) + class ChildWithBoundaryComponent {} + + @Component({ + template: 'Parent Fallback: {{ error?.message }}', + }) + class ParentErrorComponent { + @Input() error?: Error; + } + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'parent', + component: ParentLayoutComponent, + errorComponent: ParentErrorComponent, + children: [ + { + path: 'child', + component: ChildWithBoundaryComponent, + }, + ], + }, + ]), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/parent/child'); + await harness.fixture.whenStable(); + + // 1. Child template boundary caught the error locally + expect(harness.routeNativeElement?.innerText).toContain('Caught locally: Nested Widget Crash'); + // 2. Child component remains mounted + expect(harness.routeNativeElement?.innerText).toContain('Child Content'); + // 3. Parent layout remains mounted because error was not bubbled to router + expect(harness.routeNativeElement?.innerText).toContain('Parent Layout'); + // 4. Parent route errorComponent was NOT rendered + expect(harness.routeNativeElement?.innerText).not.toContain('Parent Fallback'); + }); + + it('catches error in parent template boundary when parent wraps router-outlet inside @if and @boundary', async () => { + @Component({ + template: '', + }) + class ThrowingChildComponent { + ngOnInit() { + throw new Error('Child Failed'); + } + } + + @Component({ + imports: [RouterOutlet], + template: ` +

    Parent Layout Header

    + @if (true) { + @boundary { + + } @error (let err) { +
    Caught by template boundary: {{ err.message }}
    + } + } + `, + }) + class ParentWithTemplateBoundaryComponent {} + + @Component({ + template: '
    Parent Route Error: {{ error?.message }}
    ', + }) + class ParentRouteErrorComponent { + @Input() error?: Error; + } + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'parent', + component: ParentWithTemplateBoundaryComponent, + errorComponent: ParentRouteErrorComponent, + children: [ + { + path: 'child', + component: ThrowingChildComponent, + }, + ], + }, + ]), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/parent/child'); + await harness.fixture.whenStable(); + + // 1. The template boundary inside Parent caught the error + expect(harness.routeNativeElement?.innerHTML).toContain( + 'Caught by template boundary: Child Failed', + ); + // 2. The parent component remains mounted (layout header is preserved) + expect(harness.routeNativeElement?.innerHTML).toContain('Parent Layout Header'); + // 3. The parent route errorComponent is NOT rendered because the template boundary caught it + expect(harness.routeNativeElement?.innerHTML).not.toContain('Parent Route Error'); + }); + + it('binds route params, data, and blocking resources to errorComponent when withComponentInputBinding is enabled', async () => { + @Component({ + template: '', + }) + class ThrowingProductComponent { + ngOnInit() { + throw new Error('Product not found in DB'); + } + } + + @Component({ + template: 'Error loading product #{{ id }} ({{ category }}): {{ error?.message }}', + }) + class ProductErrorComponent { + @Input() id?: string; + @Input() category?: string; + @Input() error?: Error; + } + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries( + [ + { + path: 'products/:id', + component: ThrowingProductComponent, + errorComponent: ProductErrorComponent, + resources: () => ({ + category: resource({ + loader: async () => 'electronics', + }), + }), + }, + ], + withComponentInputBinding(), + withRouterResources(), + ), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/products/12345'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerText).toContain( + 'Error loading product #12345 (electronics): Product not found in DB', + ); + }); + + it('supports injecting RouterOutlet in an errorComponent', async () => { + let injectedOutlet: RouterOutlet | undefined; + let errorComponentInstance: object | undefined; + + @Component({ + template: 'Success View', + }) + class FlakyComponent { + ngOnInit() { + throw new Error('Initial Failure'); + } + } + + @Component({ + template: 'Failed: {{ error?.message }}', + }) + class ErrorFallbackComponent { + @Input() error?: Error; + readonly outlet = inject(RouterOutlet); + constructor() { + injectedOutlet = this.outlet; + errorComponentInstance = this; + } + } + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'flaky-di', + component: FlakyComponent, + errorComponent: ErrorFallbackComponent, + }, + ]), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/flaky-di'); + await harness.fixture.whenStable(); + + expect(harness.routeNativeElement?.innerText).toContain('Failed: Initial Failure'); + // The outlet is resolved through the element injector at the outlet host, so the error + // component gets the outlet that is rendering it. + expect(injectedOutlet).toBeDefined(); + expect(injectedOutlet!.component).toBe(errorComponentInstance!); + }); + + it('bubbles error up to parent template boundary when errorComponent itself fails', async () => { + @Component({ + template: '', + }) + class PrimaryFailingComponent { + ngOnInit() { + throw new Error('Primary Failed'); + } + } + + @Component({ + template: '', + }) + class BuggyErrorComponent { + constructor() { + throw new Error('ErrorComponent Construction Crash'); + } + } + + @Component({ + imports: [RouterOutlet], + template: ` + @boundary { + + } @error (let err) { +
    Caught Outer: {{ err.message }}
    + } + `, + }) + class RootBoundaryComponent {} + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries([ + { + path: 'nested-error-crash', + component: PrimaryFailingComponent, + errorComponent: BuggyErrorComponent, + }, + ]), + ], + }); + + const router = TestBed.inject(Router); + const fixture = await createRoot(router, RootBoundaryComponent); + await router.navigateByUrl('/nested-error-crash'); + await advance(fixture); + + expect(fixture.nativeElement.innerHTML).toContain( + 'Caught Outer: ErrorComponent Construction Crash', + ); + }); + + it('ensures caught error takes precedence over route params, data, and resolvers named error', async () => { + @Component({ + template: '', + }) + class FailingComponentWithData { + ngOnInit() { + throw new Error('Real Caught Exception'); + } + } + + @Component({ + template: ` + {{ (error && error.message) || error }} + {{ id }} + {{ title }} + `, + }) + class DataCollidingErrorComponent { + @Input() error?: any; + @Input() id?: string; + @Input() title?: string; + } + + TestBed.configureTestingModule({ + providers: [ + provideRouterWithBoundaries( + [ + { + path: 'items/:id/:error', + component: FailingComponentWithData, + errorComponent: DataCollidingErrorComponent, + data: { + error: 'Static Data Error String', + title: 'My Item Title', + }, + resolve: { + error: () => 'Resolver Error String', + }, + }, + ], + withComponentInputBinding(), + ), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/items/999/param-error-value?error=query-error-value'); + await harness.fixture.whenStable(); + + // Verify error input received the actual caught Error object + const errorEl = harness.routeNativeElement?.querySelector('.error-msg'); + expect(errorEl?.textContent).toContain('Real Caught Exception'); + expect(errorEl?.textContent).not.toContain('Static Data Error String'); + expect(errorEl?.textContent).not.toContain('Resolver Error String'); + expect(errorEl?.textContent).not.toContain('param-error-value'); + expect(errorEl?.textContent).not.toContain('query-error-value'); + + // Verify other params and data are still bound properly + const idEl = harness.routeNativeElement?.querySelector('.id-val'); + expect(idEl?.textContent).toContain('999'); + + const titleEl = harness.routeNativeElement?.querySelector('.title-val'); + expect(titleEl?.textContent).toContain('My Item Title'); + }); +}); + +describe('errorComponent without error boundaries', () => { + useAutoTick(); + + beforeEach(() => resetMissingErrorBoundariesWarning()); + + it('warns once in dev mode when a route defines errorComponent without withErrorBoundaries', async () => { + @Component({template: 'Content'}) + class RouteComponent {} + + @Component({template: 'Error'}) + class FallbackComponent {} + + const warn = spyOn(console, 'warn'); + + TestBed.configureTestingModule({ + providers: [ + provideRouter([ + {path: 'one', component: RouteComponent, errorComponent: FallbackComponent}, + {path: 'two', component: RouteComponent, errorComponent: FallbackComponent}, + ]), + ], + }); + + const harness = await RouterTestingHarness.create(); + await harness.navigateByUrl('/one'); + await harness.navigateByUrl('/two'); + + const warnings = warn.calls + .allArgs() + .filter(([message]) => String(message).includes(`'withErrorBoundaries()'`)); + expect(warnings.length).toBe(1); + }); +}); + async function advance(fixture: ComponentFixture, millis = 0): Promise { await timeout(millis); - fixture.detectChanges(); + await fixture.whenStable(); } async function createRoot(router: Router, type: Type): Promise> { diff --git a/packages/router/test/integration/duplicate_in_flight_navigations.spec.ts b/packages/router/test/integration/duplicate_in_flight_navigations.spec.ts index 5ea826c5793d..811a7f895f60 100644 --- a/packages/router/test/integration/duplicate_in_flight_navigations.spec.ts +++ b/packages/router/test/integration/duplicate_in_flight_navigations.spec.ts @@ -26,7 +26,9 @@ import { } from './integration_helpers'; import {timeout} from '@angular/private/testing'; -export function duplicateInFlightNavigationsIntegrationSuite(browserAPI: 'history' | 'navigation') { +export async function duplicateInFlightNavigationsIntegrationSuite( + browserAPI: 'history' | 'navigation', +) { describe('duplicate in-flight navigations', () => { @Injectable() class RedirectingGuard { diff --git a/packages/router/test/integration/eager_url_update_strategy.spec.ts b/packages/router/test/integration/eager_url_update_strategy.spec.ts index 8cf2d58f738f..3917c141741e 100644 --- a/packages/router/test/integration/eager_url_update_strategy.spec.ts +++ b/packages/router/test/integration/eager_url_update_strategy.spec.ts @@ -34,7 +34,7 @@ import { } from './integration_helpers'; import {timeout} from '@angular/private/testing'; -export function eagerUrlUpdateStrategyIntegrationSuite() { +export async function eagerUrlUpdateStrategyIntegrationSuite() { describe('"eager" urlUpdateStrategy', () => { @Injectable() class AuthGuard { diff --git a/packages/router/test/integration/guards.spec.ts b/packages/router/test/integration/guards.spec.ts index c97cfeaa9d05..01d0161b3cc2 100644 --- a/packages/router/test/integration/guards.spec.ts +++ b/packages/router/test/integration/guards.spec.ts @@ -76,7 +76,7 @@ import { } from './integration_helpers'; import {timeout} from '@angular/private/testing'; -export function guardsIntegrationSuite() { +export async function guardsIntegrationSuite() { describe('guards', () => { describe('CanActivate', () => { describe('guard completes before emitting a value', () => { @@ -935,8 +935,7 @@ export function guardsIntegrationSuite() { }); function delayPromise(delay: number): Promise { - let resolve: (val: boolean) => void; - const promise = new Promise((res) => (resolve = res)); + const {promise, resolve} = Promise.withResolvers(); setTimeout(() => resolve(true), delay); return promise; } @@ -1192,15 +1191,14 @@ export function guardsIntegrationSuite() { @Component({ selector: 'outer', template: '', - standalone: true, imports: [RouterOutlet], }) class OuterCmp {} - @Component({selector: 'inner1', template: '', standalone: true}) + @Component({template: ''}) class Inner1Cmp {} - @Component({selector: 'inner2', template: '', standalone: true}) + @Component({template: ''}) class Inner2Cmp {} const router: Router = TestBed.inject(Router); @@ -1290,8 +1288,7 @@ export function guardsIntegrationSuite() { canDeactivate: [ () => { log.push('called'); - let resolve: (result: boolean) => void; - const promise = new Promise((res) => (resolve = res)); + const {promise, resolve} = Promise.withResolvers(); setTimeout(() => resolve(false), 0); return promise; }, @@ -2344,6 +2341,41 @@ export function guardsIntegrationSuite() { await advance(fixture); expect(router.url).toEqual('/a/2'); }); + + it('does not keep earlier guards running when a later guard starts a new navigation', async () => { + const router = TestBed.inject(Router); + const fixture = await createRoot(router, RootCmp); + const recorder: string[] = []; + + router.resetConfig([ + { + path: 'a', + canMatch: [ + () => { + recorder.push('first guard called'); + return new Observable(() => { + recorder.push('first guard subscribed'); + return () => recorder.push('first guard unsubscribed'); + }); + }, + () => { + recorder.push('second guard called'); + inject(Router).navigateByUrl('/b'); + return false; + }, + ], + component: SimpleCmp, + }, + {path: 'b', component: BlankCmp}, + ]); + + router.navigateByUrl('/a'); + await advance(fixture); + + expect(router.url).toEqual('/b'); + // Recorder before the fix: ['first guard called', 'second guard called', 'first guard subscribed']. + expect(recorder).toEqual(['first guard called', 'second guard called']); + }); }); it('should allow guards as functions', async () => { @@ -2577,6 +2609,133 @@ export function guardsIntegrationSuite() { expect(location.path()).toEqual('/b'); }); + it('should give priority to an earlier guard over a later guard that throws', async () => { + const router = TestBed.inject(Router); + const location = TestBed.inject(Location); + const fixture = await createRoot(router, RootCmp); + + let resolveFirstGuard!: (result: RedirectCommand) => void; + router.resetConfig([ + { + path: 'a', + canActivate: [ + () => new Promise((resolve) => (resolveFirstGuard = resolve)), + () => { + throw new RedirectCommand(router.parseUrl('/upgrade')); + }, + ], + component: BlankCmp, + }, + {path: 'login', component: BlankCmp}, + {path: 'upgrade', component: BlankCmp}, + ]); + + router.navigateByUrl('/a'); + await advance(fixture); + resolveFirstGuard(new RedirectCommand(router.parseUrl('/login'))); + await advance(fixture); + + expect(location.path()).toEqual('/login'); + }); + + it('should give priority to an earlier canDeactivate guard over a later guard that throws', async () => { + const router = TestBed.inject(Router); + const location = TestBed.inject(Location); + const fixture = await createRoot(router, RootCmp); + + let resolveFirstGuard!: (result: RedirectCommand) => void; + let firstGuardCalls = 0; + router.resetConfig([ + { + path: 'a', + // Leaving `/a` again for the redirect re-runs these guards, so only the first run blocks or throws. + canDeactivate: [ + () => + firstGuardCalls++ === 0 + ? new Promise((resolve) => (resolveFirstGuard = resolve)) + : true, + (_c: unknown, _route: unknown, _state: unknown, next: RouterStateSnapshot) => { + if (next.url === '/b') { + throw new RedirectCommand(router.parseUrl('/upgrade')); + } + return true; + }, + ], + component: BlankCmp, + }, + {path: 'b', component: BlankCmp}, + {path: 'login', component: BlankCmp}, + {path: 'upgrade', component: BlankCmp}, + ]); + + router.navigateByUrl('/a'); + await advance(fixture); + router.navigateByUrl('/b'); + await advance(fixture); + resolveFirstGuard(new RedirectCommand(router.parseUrl('/login'))); + await advance(fixture); + + expect(location.path()).toEqual('/login'); + }); + + it('should give priority to an earlier canMatch guard over a later guard that throws', async () => { + const router = TestBed.inject(Router); + const location = TestBed.inject(Location); + const fixture = await createRoot(router, RootCmp); + + let resolveFirstGuard!: (result: RedirectCommand) => void; + router.resetConfig([ + { + path: 'a', + canMatch: [ + () => new Promise((resolve) => (resolveFirstGuard = resolve)), + () => { + throw new RedirectCommand(router.parseUrl('/upgrade')); + }, + ], + component: BlankCmp, + }, + {path: 'login', component: BlankCmp}, + {path: 'upgrade', component: BlankCmp}, + ]); + + router.navigateByUrl('/a'); + await advance(fixture); + resolveFirstGuard(new RedirectCommand(router.parseUrl('/login'))); + await advance(fixture); + + expect(location.path()).toEqual('/login'); + }); + + it('should give priority to an earlier canLoad guard over a later guard that throws', async () => { + const router = TestBed.inject(Router); + const location = TestBed.inject(Location); + const fixture = await createRoot(router, RootCmp); + + let resolveFirstGuard!: (result: RedirectCommand) => void; + router.resetConfig([ + { + path: 'a', + canLoad: [ + () => new Promise((resolve) => (resolveFirstGuard = resolve)), + () => { + throw new RedirectCommand(router.parseUrl('/upgrade')); + }, + ], + loadChildren: () => [{path: '', component: BlankCmp}], + }, + {path: 'login', component: BlankCmp}, + {path: 'upgrade', component: BlankCmp}, + ]); + + router.navigateByUrl('/a'); + await advance(fixture); + resolveFirstGuard(new RedirectCommand(router.parseUrl('/login'))); + await advance(fixture); + + expect(location.path()).toEqual('/login'); + }); + it('should redirect when a resolver throws a RedirectCommand', async () => { const router = TestBed.inject(Router); const location = TestBed.inject(Location); diff --git a/packages/router/test/integration/integration.spec.ts b/packages/router/test/integration/integration.spec.ts index 749ef0e77c99..fe8d90b7fb34 100644 --- a/packages/router/test/integration/integration.spec.ts +++ b/packages/router/test/integration/integration.spec.ts @@ -6,15 +6,8 @@ * found in the LICENSE file at https://angular.dev/license */ -import {Location} from '@angular/common'; -import { - ChangeDetectionStrategy, - Component, - NgModule, - ɵConsole as Console, - makeEnvironmentProviders, - signal, -} from '@angular/core'; +import {CommonModule, Location} from '@angular/common'; +import {Component, ɵConsole as Console, makeEnvironmentProviders, signal} from '@angular/core'; import {TestBed} from '@angular/core/testing'; import {expect} from '@angular/private/testing/matchers'; import { @@ -31,15 +24,21 @@ import { ResolveEnd, ResolveStart, Router, - RouterModule, RoutesRecognized, } from '../../index'; +import {useAutoTick} from '@angular/private/testing'; import {provideRouter, withExperimentalPlatformNavigation} from '../../src/provide_router'; +import {RouterTestingHarness} from '../../testing'; +import {duplicateInFlightNavigationsIntegrationSuite} from './duplicate_in_flight_navigations.spec'; +import {eagerUrlUpdateStrategyIntegrationSuite} from './eager_url_update_strategy.spec'; +import {guardsIntegrationSuite} from './guards.spec'; import { + advance, BlankCmp, CollectParamsCmp, ComponentRecordingRoutePathAndUrl, + createRoot, EmptyQueryParamsCmp, expectEvents, onlyNavigationStartAndEnd, @@ -52,28 +51,21 @@ import { RouteCmp, ROUTER_DIRECTIVES, SimpleCmp, + simulateLocationChange, TeamCmp, TestModule, TwoOutletsCmp, UserCmp, - createRoot, - advance, - simulateLocationChange, } from './integration_helpers'; -import {guardsIntegrationSuite} from './guards.spec'; import {lazyLoadingIntegrationSuite} from './lazy_loading.spec'; +import {navigationIntegrationTestSuite} from './navigation.spec'; +import {navigationErrorsIntegrationSuite} from './navigation_errors.spec'; +import {redirectsIntegrationSuite} from './redirects.spec'; import {routeDataIntegrationSuite} from './route_data.spec'; import {routeReuseIntegrationSuite} from './route_reuse_strategy.spec'; -import {routerLinkActiveIntegrationSuite} from './router_link_active.spec'; import {routerEventsIntegrationSuite} from './router_events.spec'; -import {redirectsIntegrationSuite} from './redirects.spec'; +import {routerLinkActiveIntegrationSuite} from './router_link_active.spec'; import {routerLinkIntegrationSpec} from './router_links.spec'; -import {navigationIntegrationTestSuite} from './navigation.spec'; -import {eagerUrlUpdateStrategyIntegrationSuite} from './eager_url_update_strategy.spec'; -import {duplicateInFlightNavigationsIntegrationSuite} from './duplicate_in_flight_navigations.spec'; -import {navigationErrorsIntegrationSuite} from './navigation_errors.spec'; -import {useAutoTick} from '@angular/private/testing'; -import {RouterTestingHarness} from '../../testing'; for (const browserAPI of ['navigation', 'history'] as const) { describe(`${browserAPI}-based routing`, () => { @@ -121,28 +113,16 @@ for (const browserAPI of ['navigation', 'history'] as const) { it('Should work inside ChangeDetectionStrategy.OnPush components', async () => { @Component({ - selector: 'root-cmp', template: ``, - changeDetection: ChangeDetectionStrategy.OnPush, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) class OnPushOutlet {} @Component({ - selector: 'need-cd', template: `{{ 'it works!' }}`, - standalone: false, }) class NeedCdCmp {} - @NgModule({ - declarations: [OnPushOutlet, NeedCdCmp], - imports: [RouterModule.forRoot([])], - }) - class TestModule {} - - TestBed.configureTestingModule({imports: [TestModule]}); - const router: Router = TestBed.inject(Router); const fixture = await createRoot(router, RootCmp); @@ -215,16 +195,14 @@ for (const browserAPI of ['navigation', 'history'] as const) { it('should work when an outlet is added/removed', async () => { @Component({ - selector: 'someRoot', template: `[
    ]`, - standalone: false, + imports: [CommonModule, ROUTER_DIRECTIVES], }) class RootCmpWithLink { cond = signal(true); } - TestBed.configureTestingModule({declarations: [RootCmpWithLink]}); const router: Router = TestBed.inject(Router); @@ -251,7 +229,6 @@ for (const browserAPI of ['navigation', 'history'] as const) { it('should update location when navigating', async () => { @Component({ template: `record`, - standalone: false, }) class RecordLocationCmp { private storedPath: string; @@ -260,11 +237,6 @@ for (const browserAPI of ['navigation', 'history'] as const) { } } - @NgModule({declarations: [RecordLocationCmp]}) - class TestModule {} - - TestBed.configureTestingModule({imports: [TestModule]}); - const router = TestBed.inject(Router); const location = TestBed.inject(Location); const fixture = await createRoot(router, RootCmp); @@ -898,12 +870,11 @@ for (const browserAPI of ['navigation', 'history'] as const) { it('should emit an event when an outlet gets activated', async () => { @Component({ - selector: 'container', template: ``, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) class Container { activations: any[] = []; @@ -918,8 +889,6 @@ for (const browserAPI of ['navigation', 'history'] as const) { } } - TestBed.configureTestingModule({declarations: [Container]}); - const router: Router = TestBed.inject(Router); const fixture = await createRoot(router, Container); diff --git a/packages/router/test/integration/integration_helpers.ts b/packages/router/test/integration/integration_helpers.ts index 7475b9c80c09..ea74b2a55449 100644 --- a/packages/router/test/integration/integration_helpers.ts +++ b/packages/router/test/integration/integration_helpers.ts @@ -56,21 +56,21 @@ export function onlyNavigationStartAndEnd(e: Event): e is NavigationStart | Navi @Component({ selector: 'link-cmp', template: `link`, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class StringLinkCmp {} @Component({ selector: 'link-cmp', template: ``, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class StringLinkButtonCmp {} @Component({ selector: 'link-cmp', template: `link`, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class AbsoluteLinkCmp {} @@ -92,7 +92,7 @@ export class AbsoluteLinkCmp {} > button `, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class DummyLinkCmp { private exact: boolean; @@ -110,63 +110,61 @@ export class DummyLinkCmp { @Component({ selector: 'link-cmp', template: `link`, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class AbsoluteSimpleLinkCmp {} @Component({ selector: 'link-cmp', template: `link`, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class RelativeLinkCmp {} @Component({ selector: 'link-cmp', template: `link`, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class LinkWithQueryParamsAndFragment {} @Component({ selector: 'link-cmp', template: `link`, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class LinkWithState {} @Component({ selector: 'div-link-cmp', template: ``, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class DivLinkWithState {} @Component({ selector: 'link-cmp', template: `link`, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class LinkWithBrowserUrl {} @Component({ selector: 'div-link-cmp', template: ``, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class DivLinkWithBrowserUrl {} @Component({ selector: 'simple-cmp', template: `simple`, - standalone: false, }) export class SimpleCmp {} @Component({ selector: 'collect-params-cmp', template: `collect-params`, - standalone: false, }) export class CollectParamsCmp { private params: Params[] = []; @@ -185,7 +183,6 @@ export class CollectParamsCmp { @Component({ selector: 'blank-cmp', template: ``, - standalone: false, }) export class BlankCmp {} @@ -199,7 +196,7 @@ export class ModuleWithBlankCmpAsRoute {} '[ , right: ]' + '' + '', - standalone: false, + imports: [CommonModule, ROUTER_DIRECTIVES], }) export class TeamCmp { id: Observable; @@ -219,14 +216,14 @@ export class TeamCmp { @Component({ selector: 'two-outlets-cmp', template: `[ , aux: ]`, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class TwoOutletsCmp {} @Component({ selector: 'user-cmp', template: `user {{ name | async }}`, - standalone: false, + imports: [CommonModule], }) export class UserCmp { name: Observable; @@ -245,14 +242,14 @@ export class UserCmp { @Component({ selector: 'wrapper', template: ``, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class WrapperCmp {} @Component({ selector: 'query-cmp', template: `query: {{ name | async }} fragment: {{ fragment | async }}`, - standalone: false, + imports: [CommonModule], }) export class QueryParamsAndFragmentCmp { name: Observable; @@ -277,7 +274,6 @@ export class QueryParamsAndFragmentCmp { @Component({ selector: 'empty-query-cmp', template: ``, - standalone: false, }) export class EmptyQueryParamsCmp { recordedParams: Params[] = []; @@ -290,7 +286,6 @@ export class EmptyQueryParamsCmp { @Component({ selector: 'route-cmp', template: `route`, - standalone: false, }) export class RouteCmp { constructor(public route: ActivatedRoute) {} @@ -300,7 +295,7 @@ export class RouteCmp { selector: 'link-cmp', template: ` `, - standalone: false, + imports: [CommonModule, ROUTER_DIRECTIVES], }) export class RelativeLinkInIfCmp { show = signal(false); @@ -309,7 +304,7 @@ export class RelativeLinkInIfCmp { @Component({ selector: 'child', template: '
    ', - standalone: false, + imports: [CommonModule, ROUTER_DIRECTIVES], }) export class OutletInNgIf { alwaysTrue = true; @@ -321,7 +316,7 @@ export class OutletInNgIf { `, - standalone: false, + imports: [CommonModule, ROUTER_DIRECTIVES], }) export class DummyLinkWithParentCmp { protected exact: boolean; @@ -333,7 +328,6 @@ export class DummyLinkWithParentCmp { @Component({ selector: 'cmp', template: '', - standalone: false, }) export class ComponentRecordingRoutePathAndUrl { public path: ActivatedRoute[]; @@ -348,14 +342,14 @@ export class ComponentRecordingRoutePathAndUrl { @Component({ selector: 'root-cmp', template: ``, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class RootCmp {} @Component({ selector: 'root-cmp-on-init', template: ``, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class RootCmpWithOnInit { constructor(private router: Router) {} @@ -371,21 +365,20 @@ export class RootCmpWithOnInit { name="right" >
    ]`, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class RootCmpWithTwoOutlets {} @Component({ selector: 'root-cmp', template: `main []`, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) export class RootCmpWithNamedOutlet {} @Component({ selector: 'throwing-cmp', template: '', - standalone: false, }) export class ThrowingCmp { constructor() { @@ -395,7 +388,6 @@ export class ThrowingCmp { @Component({ selector: 'conditional-throwing-cmp', template: 'conditional throwing', - standalone: false, }) export class ConditionalThrowingCmp { static throwError = true; @@ -425,14 +417,13 @@ export async function createRoot(router: Router, type: Type): Promise { it('works', async () => { const router = TestBed.inject(Router); diff --git a/packages/router/test/integration/navigation.spec.ts b/packages/router/test/integration/navigation.spec.ts index 791907878dfc..766228436298 100644 --- a/packages/router/test/integration/navigation.spec.ts +++ b/packages/router/test/integration/navigation.spec.ts @@ -7,10 +7,10 @@ */ import {Location, PlatformNavigation} from '@angular/common'; -import {ApplicationRef, Component, inject, NgModule} from '@angular/core'; +import {ApplicationRef, Component, inject} from '@angular/core'; import {TestBed} from '@angular/core/testing'; -import {RouterTestingHarness} from '@angular/router/testing'; import {timeout} from '@angular/private/testing'; +import {RouterTestingHarness} from '@angular/router/testing'; import {BehaviorSubject, filter, firstValueFrom} from 'rxjs'; import { ActivatedRoute, @@ -29,7 +29,6 @@ import { ResolveStart, Router, RouterLink, - RouterModule, Routes, withRouterConfig, } from '../../src'; @@ -40,10 +39,11 @@ import { onlyNavigationStartAndEnd, RelativeLinkCmp, RootCmp, + ROUTER_DIRECTIVES, SimpleCmp, } from './integration_helpers'; -export function navigationIntegrationTestSuite(browserAPI: 'history' | 'navigation') { +export async function navigationIntegrationTestSuite(browserAPI: 'history' | 'navigation') { function setup(routes?: Routes): Router { TestBed.configureTestingModule({ providers: [ @@ -623,7 +623,7 @@ export function navigationIntegrationTestSuite(browserAPI: 'history' | 'navigati describe('route activation', () => { @Component({ template: '', - standalone: false, + imports: [ROUTER_DIRECTIVES], }) class Parent { constructor(route: ActivatedRoute) { @@ -639,7 +639,7 @@ export function navigationIntegrationTestSuite(browserAPI: 'history' | 'navigati `, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) class NamedOutletHost { logDeactivate(route: string) { @@ -649,7 +649,6 @@ export function navigationIntegrationTestSuite(browserAPI: 'history' | 'navigati @Component({ template: 'child1', - standalone: false, }) class Child1 { constructor() { @@ -662,7 +661,6 @@ export function navigationIntegrationTestSuite(browserAPI: 'history' | 'navigati @Component({ template: 'child2', - standalone: false, }) class Child2 { constructor() { @@ -675,7 +673,6 @@ export function navigationIntegrationTestSuite(browserAPI: 'history' | 'navigati @Component({ template: 'child3', - standalone: false, }) class Child3 { constructor() { @@ -686,14 +683,7 @@ export function navigationIntegrationTestSuite(browserAPI: 'history' | 'navigati } } - @NgModule({ - declarations: [Parent, NamedOutletHost, Child1, Child2, Child3], - imports: [RouterModule.forRoot([])], - }) - class TestModule {} - it('should advance the parent route after deactivating its children', async () => { - TestBed.configureTestingModule({imports: [TestModule]}); const router = TestBed.inject(Router); const location = TestBed.inject(Location); const fixture = await createRoot(router, RootCmp); @@ -726,7 +716,6 @@ export function navigationIntegrationTestSuite(browserAPI: 'history' | 'navigati }); it('should deactivate outlet children with componentless parent', async () => { - TestBed.configureTestingModule({imports: [TestModule]}); const router = TestBed.inject(Router); const fixture = await createRoot(router, RootCmp); @@ -794,7 +783,6 @@ export function navigationIntegrationTestSuite(browserAPI: 'history' | 'navigati }); it('should work between aux outlets under two levels of empty path parents', async () => { - TestBed.configureTestingModule({imports: [TestModule]}); const router = TestBed.inject(Router); router.resetConfig([ { diff --git a/packages/router/test/integration/navigation_errors.spec.ts b/packages/router/test/integration/navigation_errors.spec.ts index da3440be84d7..ced9a6d5459a 100644 --- a/packages/router/test/integration/navigation_errors.spec.ts +++ b/packages/router/test/integration/navigation_errors.spec.ts @@ -48,7 +48,7 @@ import { } from './integration_helpers'; import {timeout} from '@angular/private/testing'; -export function navigationErrorsIntegrationSuite(browserAPI: 'history' | 'navigation') { +export async function navigationErrorsIntegrationSuite(browserAPI: 'history' | 'navigation') { it('should handle failed navigations gracefully', async () => { const router = TestBed.inject(Router); const fixture = await createRoot(router, RootCmp); @@ -132,7 +132,6 @@ export function navigationErrorsIntegrationSuite(browserAPI: 'history' | 'naviga {path: 'error', component: BlankCmp}, ], { - resolveNavigationPromiseOnError: true, errorHandler: () => new RedirectCommand(inject(Router).parseUrl('/error')), }, ), @@ -171,7 +170,6 @@ export function navigationErrorsIntegrationSuite(browserAPI: 'history' | 'naviga }, {path: 'error', component: BlankCmp}, ], - withRouterConfig({resolveNavigationPromiseOnError: true}), withNavigationErrorHandler(() => new RedirectCommand(inject(Router).parseUrl('/error'))), ), ], @@ -219,6 +217,34 @@ export function navigationErrorsIntegrationSuite(browserAPI: 'history' | 'naviga const router = TestBed.inject(Router); }); + it('can redirect from error handler when a component throws during activation alongside a secondary outlet', async () => { + let errors = 0; + TestBed.configureTestingModule({ + providers: [ + provideRouter( + [ + {path: 'throwing', component: ThrowingCmp}, + {path: 'user/:name', outlet: 'aux', component: UserCmp}, + {path: 'error', component: SimpleCmp}, + ], + withNavigationErrorHandler(() => { + errors++; + return errors <= 3 ? new RedirectCommand(inject(Router).parseUrl('/error')) : undefined; + }), + ), + ], + }); + const router = TestBed.inject(Router); + const fixture = await createRoot(router, RootCmp); + + await router.navigateByUrl('/throwing(aux:user/victor)'); + await advance(fixture); + + expect(errors).toBe(1); + expect(router.url).toEqual('/error'); + expect(fixture.nativeElement).toHaveText('simple'); + }); + // Errors should behave the same for both deferred and eager URL update strategies (['deferred', 'eager'] as const).forEach((urlUpdateStrategy) => { it(`should dispatch NavigationError after the url has been reset back (${urlUpdateStrategy})`, async () => { diff --git a/packages/router/test/integration/redirects.spec.ts b/packages/router/test/integration/redirects.spec.ts index 9228927b5047..04b76aef5a59 100644 --- a/packages/router/test/integration/redirects.spec.ts +++ b/packages/router/test/integration/redirects.spec.ts @@ -18,7 +18,7 @@ import { } from './integration_helpers'; import {childNodesAsList} from '@angular/private/testing'; -export function redirectsIntegrationSuite(browserAPI: 'history' | 'navigation') { +export async function redirectsIntegrationSuite(browserAPI: 'history' | 'navigation') { describe('redirects', () => { it('should work', async () => { const router = TestBed.inject(Router); diff --git a/packages/router/test/integration/route_data.spec.ts b/packages/router/test/integration/route_data.spec.ts index 91ebb49e9c7d..e111ff9559cb 100644 --- a/packages/router/test/integration/route_data.spec.ts +++ b/packages/router/test/integration/route_data.spec.ts @@ -41,7 +41,7 @@ import { advance, } from './integration_helpers'; -export function routeDataIntegrationSuite() { +export async function routeDataIntegrationSuite() { describe('data', () => { class ResolveSix { resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): number { @@ -50,9 +50,7 @@ export function routeDataIntegrationSuite() { } @Component({ - selector: 'nested-cmp', template: 'nested-cmp', - standalone: false, }) class NestedComponentWithData { data: any = []; @@ -231,7 +229,6 @@ export function routeDataIntegrationSuite() { const fixture = await createRoot(router, RootCmp); @Component({ - selector: 'lazy-cmp', template: 'lazy-loaded-1', standalone: false, }) @@ -277,7 +274,6 @@ export function routeDataIntegrationSuite() { const fixture = await createRoot(router, RootCmp); @Component({ - selector: 'lazy-cmp', template: 'lazy-loaded-1', standalone: false, }) diff --git a/packages/router/test/integration/route_reuse_strategy.spec.ts b/packages/router/test/integration/route_reuse_strategy.spec.ts index b781341ba57b..d1d9b59f4ec4 100644 --- a/packages/router/test/integration/route_reuse_strategy.spec.ts +++ b/packages/router/test/integration/route_reuse_strategy.spec.ts @@ -32,7 +32,7 @@ import { advance, } from './integration_helpers'; -export function routeReuseIntegrationSuite() { +export async function routeReuseIntegrationSuite() { describe('Custom Route Reuse Strategy', () => { class AttachDetachReuseStrategy implements RouteReuseStrategy { stored: {[k: string]: DetachedRouteHandle} = {}; @@ -101,12 +101,11 @@ export function routeReuseIntegrationSuite() { it('should emit an event when an outlet gets attached/detached', async () => { @Component({ - selector: 'container', template: ``, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) class Container { attachedComponents: unknown[] = []; @@ -122,7 +121,6 @@ export function routeReuseIntegrationSuite() { } TestBed.configureTestingModule({ - declarations: [Container], providers: [{provide: RouteReuseStrategy, useClass: AttachDetachReuseStrategy}], }); @@ -231,10 +229,9 @@ export function routeReuseIntegrationSuite() { it('should not mount the component of the previously reused route when the outlet was not instantiated at the time of route activation', async () => { @Component({ - selector: 'root-cmp', template: '
    ', - standalone: false, + imports: [CommonModule, ROUTER_DIRECTIVES], }) class RootCmpWithCondOutlet implements OnDestroy { private subscription: Subscription; @@ -254,32 +251,23 @@ export function routeReuseIntegrationSuite() { } @Component({ - selector: 'tool-1-cmp', template: 'Tool 1 showing', - standalone: false, }) class Tool1Component {} @Component({ - selector: 'tool-2-cmp', template: 'Tool 2 showing', - standalone: false, }) class Tool2Component {} - @NgModule({ - declarations: [RootCmpWithCondOutlet, Tool1Component, Tool2Component], - imports: [CommonModule, ...ROUTER_DIRECTIVES], + TestBed.configureTestingModule({ providers: [ provideRouter([ {path: 'a', outlet: 'toolpanel', component: Tool1Component}, {path: 'b', outlet: 'toolpanel', component: Tool2Component}, ]), ], - }) - class TestModule {} - - TestBed.configureTestingModule({imports: [TestModule]}); + }); const router: Router = TestBed.inject(Router); router.routeReuseStrategy = new AttachDetachReuseStrategy(); @@ -314,17 +302,14 @@ export function routeReuseIntegrationSuite() { it('should not remount a destroyed component', async () => { @Component({ - selector: 'root-cmp', template: '
    ', - standalone: false, + imports: [CommonModule, ROUTER_DIRECTIVES], }) class RootCmpWithCondOutlet { public showRouterOutlet = signal(true); } - @NgModule({ - declarations: [RootCmpWithCondOutlet], - imports: [CommonModule, ...ROUTER_DIRECTIVES], + TestBed.configureTestingModule({ providers: [ {provide: RouteReuseStrategy, useClass: AttachDetachReuseStrategy}, provideRouter([ @@ -332,9 +317,7 @@ export function routeReuseIntegrationSuite() { {path: 'b', component: BlankCmp}, ]), ], - }) - class TestModule {} - TestBed.configureTestingModule({imports: [TestModule]}); + }); const router: Router = TestBed.inject(Router); const fixture = await createRoot(router, RootCmpWithCondOutlet); @@ -369,16 +352,14 @@ export function routeReuseIntegrationSuite() { const CREATED_COMPS = new InjectionToken('CREATED_COMPS'); @Component({ - selector: 'root', template: ``, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) class Root {} @Component({ - selector: 'parent', template: ``, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) class Parent { constructor(@Inject(CREATED_COMPS) createdComps: string[]) { @@ -387,9 +368,7 @@ export function routeReuseIntegrationSuite() { } @Component({ - selector: 'child', template: `child`, - standalone: false, }) class Child { constructor(@Inject(CREATED_COMPS) createdComps: string[]) { @@ -397,9 +376,7 @@ export function routeReuseIntegrationSuite() { } } - @NgModule({ - declarations: [Root, Parent, Child], - imports: [CommonModule, ...ROUTER_DIRECTIVES], + TestBed.configureTestingModule({ providers: [ {provide: RouteReuseStrategy, useClass: AttachDetachReuseStrategy}, {provide: CREATED_COMPS, useValue: []}, @@ -408,9 +385,7 @@ export function routeReuseIntegrationSuite() { {path: 'c', component: SimpleCmp}, ]), ], - }) - class TestModule {} - TestBed.configureTestingModule({imports: [TestModule]}); + }); const router = TestBed.inject(Router); const fixture = await createRoot(router, Root); @@ -433,25 +408,222 @@ export function routeReuseIntegrationSuite() { expect(createdComps).toEqual(['parent', 'child', 'child']); }); + it('should render child routes on reused list when outer shell is destroyed and recreated', async () => { + // https://github.com/angular/angular/issues/57285 + + @Component({template: '', imports: [ROUTER_DIRECTIVES]}) + class Root {} + + @Component({ + template: '', + imports: [ROUTER_DIRECTIVES], + }) + class EventsShellCmp {} + + @Component({ + template: '', + imports: [ROUTER_DIRECTIVES], + }) + class EventListCmp {} + + @Component({ + template: '', + imports: [ROUTER_DIRECTIVES], + }) + class EventDetailCmp {} + + @Component({template: 'edit'}) + class EventEditCmp {} + + @Component({template: 'chats'}) + class ChatsCmp {} + + class ReusableStrategy implements RouteReuseStrategy { + private handles = new Map(); + + shouldDetach(route: ActivatedRouteSnapshot): boolean { + return !!route.routeConfig?.data?.['reusable']; + } + store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle | null): void { + if (route.routeConfig && handle) { + this.handles.set(route.routeConfig, handle); + } else if (route.routeConfig) { + this.handles.delete(route.routeConfig); + } + } + shouldAttach(route: ActivatedRouteSnapshot): boolean { + return !!(route.routeConfig && this.handles.has(route.routeConfig)); + } + retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null { + return (route.routeConfig && this.handles.get(route.routeConfig)) ?? null; + } + shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean { + return future.routeConfig === curr.routeConfig; + } + } + + TestBed.configureTestingModule({ + providers: [ + {provide: RouteReuseStrategy, useClass: ReusableStrategy}, + provideRouter([ + { + path: 'events', + component: EventsShellCmp, + children: [ + { + path: '', + data: {reusable: true}, + component: EventListCmp, + children: [ + { + path: ':id', + data: {reusable: true}, + component: EventDetailCmp, + children: [{path: 'edit', component: EventEditCmp}], + }, + ], + }, + ], + }, + {path: 'chats', component: ChatsCmp}, + ]), + ], + }); + const router = TestBed.inject(Router); + const fixture = await createRoot(router, Root); + + router.navigateByUrl('/chats'); + await advance(fixture); + + router.navigateByUrl('/events'); + await advance(fixture); + expect(fixture.debugElement.query(By.directive(EventListCmp))).toBeTruthy(); + + router.navigateByUrl('/chats'); + await advance(fixture); + + // Shell is recreated and the stored list is re-attached into it. + router.navigateByUrl('/events'); + await advance(fixture); + expect(fixture.debugElement.query(By.directive(EventListCmp))).toBeTruthy(); + + router.navigateByUrl('/events/1/edit'); + await advance(fixture); + expect(fixture.debugElement.query(By.directive(EventEditCmp))).toBeTruthy(); + }); + + it('should render child routes of a reused tab after a sibling tab was shown in the same outlet', async () => { + // https://github.com/angular/angular/issues/57285 (sibling outlet case) + + @Component({template: '', imports: [ROUTER_DIRECTIVES]}) + class Root {} + + @Component({ + template: '', + imports: [ROUTER_DIRECTIVES], + }) + class TabsShellCmp {} + + @Component({ + template: '', + imports: [ROUTER_DIRECTIVES], + }) + class Tab1Cmp {} + + @Component({template: 'tab1-inner'}) + class Tab1InnerCmp {} + + @Component({ + template: '', + imports: [ROUTER_DIRECTIVES], + }) + class Tab2Cmp {} + + @Component({template: 'tab2-inner'}) + class Tab2InnerCmp {} + + class ReusableStrategy implements RouteReuseStrategy { + private handles = new Map(); + + shouldDetach(route: ActivatedRouteSnapshot): boolean { + return !!route.routeConfig?.data?.['reusable']; + } + store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle | null): void { + if (route.routeConfig && handle) { + this.handles.set(route.routeConfig, handle); + } else if (route.routeConfig) { + this.handles.delete(route.routeConfig); + } + } + shouldAttach(route: ActivatedRouteSnapshot): boolean { + return !!(route.routeConfig && this.handles.has(route.routeConfig)); + } + retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null { + return (route.routeConfig && this.handles.get(route.routeConfig)) ?? null; + } + shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean { + return future.routeConfig === curr.routeConfig; + } + } + + TestBed.configureTestingModule({ + providers: [ + {provide: RouteReuseStrategy, useClass: ReusableStrategy}, + provideRouter([ + { + path: 'tabs', + component: TabsShellCmp, + children: [ + { + path: 'tab1', + data: {reusable: true}, + component: Tab1Cmp, + children: [{path: 'inner', component: Tab1InnerCmp}], + }, + { + path: 'tab2', + component: Tab2Cmp, + children: [{path: 'inner', component: Tab2InnerCmp}], + }, + ], + }, + ]), + ], + }); + + const router = TestBed.inject(Router); + const fixture = await createRoot(router, Root); + + router.navigateByUrl('/tabs/tab1/inner'); + await advance(fixture); + expect(fixture.debugElement.query(By.directive(Tab1InnerCmp))).toBeTruthy(); + + router.navigateByUrl('/tabs/tab2/inner'); + await advance(fixture); + expect(fixture.debugElement.query(By.directive(Tab2InnerCmp))).toBeTruthy(); + expect(fixture.debugElement.query(By.directive(Tab1InnerCmp))).toBeNull(); + + router.navigateByUrl('/tabs/tab1/inner'); + await advance(fixture); + expect(router.url).toEqual('/tabs/tab1/inner'); + expect(fixture.debugElement.query(By.directive(Tab1InnerCmp))).toBeTruthy(); + }); + it('should not try to detach the outlet of a route that does not get to attach a component', async () => { @Component({ - selector: 'root', template: ``, - standalone: false, + imports: [ROUTER_DIRECTIVES], }) class Root {} @Component({ - selector: 'component-a', template: 'Component A', standalone: false, }) class ComponentA {} @Component({ - selector: 'component-b', template: 'Component B', - standalone: false, }) class ComponentB {} @@ -461,9 +633,7 @@ export function routeReuseIntegrationSuite() { }) class LoadedModule {} - @NgModule({ - declarations: [Root, ComponentB], - imports: [ROUTER_DIRECTIVES], + TestBed.configureTestingModule({ providers: [ {provide: RouteReuseStrategy, useClass: AttachDetachReuseStrategy}, provideRouter([ @@ -471,10 +641,7 @@ export function routeReuseIntegrationSuite() { {path: 'b', component: ComponentB}, ]), ], - }) - class TestModule {} - - TestBed.configureTestingModule({imports: [TestModule]}); + }); const router = TestBed.inject(Router); const strategy = TestBed.inject(RouteReuseStrategy); diff --git a/packages/router/test/integration/router_events.spec.ts b/packages/router/test/integration/router_events.spec.ts index 3a1ae6c07ea6..9dc4d0dacfa7 100644 --- a/packages/router/test/integration/router_events.spec.ts +++ b/packages/router/test/integration/router_events.spec.ts @@ -26,7 +26,7 @@ import { } from '../../src'; import {createRoot, RootCmp, BlankCmp, UserCmp, advance, expectEvents} from './integration_helpers'; -export function routerEventsIntegrationSuite() { +export async function routerEventsIntegrationSuite() { describe('route events', () => { it('should fire matching (Child)ActivationStart/End events', async () => { const router: Router = TestBed.inject(Router); diff --git a/packages/router/test/integration/router_link_active.spec.ts b/packages/router/test/integration/router_link_active.spec.ts index 78e25ac26152..b185a2550569 100644 --- a/packages/router/test/integration/router_link_active.spec.ts +++ b/packages/router/test/integration/router_link_active.spec.ts @@ -5,24 +5,24 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ +import {Location, NgIf} from '@angular/common'; import {Component, NgZone} from '@angular/core'; -import {Location} from '@angular/common'; import {TestBed} from '@angular/core/testing'; -import {Router, provideRouter} from '../../src'; import {By} from '@angular/platform-browser'; +import {Router, RouterLink, RouterLinkActive, RouterOutlet, provideRouter} from '../../src'; import { - RootCmp, BlankCmp, - TeamCmp, DummyLinkCmp, - SimpleCmp, DummyLinkWithParentCmp, ROUTER_DIRECTIVES, - createRoot, + RootCmp, + SimpleCmp, + TeamCmp, advance, + createRoot, } from './integration_helpers'; -export function routerLinkActiveIntegrationSuite() { +export async function routerLinkActiveIntegrationSuite() { describe('routerLinkActive', () => { it('should set the class when the link is active (a tag)', async () => { const router: Router = TestBed.inject(Router); @@ -67,11 +67,10 @@ export function routerLinkActiveIntegrationSuite() { @Component({ template: '', - standalone: false, + imports: [RouterOutlet, RouterLink, RouterLinkActive], }) class RootCmpWithLink {} - TestBed.configureTestingModule({declarations: [RootCmpWithLink]}); const router: Router = TestBed.inject(Router); const f = TestBed.createComponent(RootCmpWithLink); @@ -165,11 +164,10 @@ export function routerLinkActiveIntegrationSuite() { `, - standalone: false, + imports: [...ROUTER_DIRECTIVES, NgIf], }) class ComponentWithRouterLink {} - TestBed.configureTestingModule({declarations: [ComponentWithRouterLink]}); const router: Router = TestBed.inject(Router); router.resetConfig([ @@ -198,8 +196,8 @@ export function routerLinkActiveIntegrationSuite() { it('should not trigger change detection when active state has not changed', async () => { @Component({ + imports: [...ROUTER_DIRECTIVES], template: ``, - standalone: false, }) class LinkComponent { link = 'notactive'; @@ -207,14 +205,11 @@ export function routerLinkActiveIntegrationSuite() { @Component({ template: '', - standalone: false, }) class SimpleComponent {} TestBed.configureTestingModule({ - imports: [...ROUTER_DIRECTIVES], providers: [provideRouter([{path: '', component: SimpleComponent}])], - declarations: [LinkComponent, SimpleComponent], }); const fixture = await createRoot(TestBed.inject(Router), LinkComponent); diff --git a/packages/router/test/integration/router_links.spec.ts b/packages/router/test/integration/router_links.spec.ts index 132bc4cba667..815212e701a4 100644 --- a/packages/router/test/integration/router_links.spec.ts +++ b/packages/router/test/integration/router_links.spec.ts @@ -5,32 +5,32 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ -import {Component} from '@angular/core'; import {Location} from '@angular/common'; -import {TestBed, ComponentFixture} from '@angular/core/testing'; +import {Component} from '@angular/core'; +import {ComponentFixture, TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; -import {Router} from '../../src'; import {expect} from '@angular/private/testing/matchers'; +import {Router, RouterLink, RouterOutlet} from '../../src'; import { - RootCmp, - BlankCmp, - TeamCmp, - StringLinkCmp, - SimpleCmp, - StringLinkButtonCmp, AbsoluteLinkCmp, - RelativeLinkCmp, - RelativeLinkInIfCmp, - LinkWithQueryParamsAndFragment, - LinkWithState, - DivLinkWithState, - createRoot, advance, + BlankCmp, + createRoot, DivLinkWithBrowserUrl, + DivLinkWithState, LinkWithBrowserUrl, + LinkWithQueryParamsAndFragment, + LinkWithState, + RelativeLinkCmp, + RelativeLinkInIfCmp, + RootCmp, + SimpleCmp, + StringLinkButtonCmp, + StringLinkCmp, + TeamCmp, } from './integration_helpers'; -export function routerLinkIntegrationSpec() { +export async function routerLinkIntegrationSpec() { describe('router links', () => { it('should support skipping location update for anchor router links', async () => { const router: Router = TestBed.inject(Router); @@ -94,13 +94,11 @@ export function routerLinkIntegrationSpec() { it('should not preserve query params and fragment by default', async () => { @Component({ - selector: 'someRoot', template: `Link`, - standalone: false, + imports: [RouterLink, RouterOutlet], }) class RootCmpWithLink {} - TestBed.configureTestingModule({declarations: [RootCmpWithLink]}); const router: Router = TestBed.inject(Router); const fixture = await createRoot(router, RootCmpWithLink); @@ -116,17 +114,15 @@ export function routerLinkIntegrationSpec() { it('should not throw when commands is null or undefined', async () => { @Component({ - selector: 'someCmp', template: ` Link Link `, - standalone: false, + imports: [RouterLink, RouterOutlet], }) class CmpWithLink {} - TestBed.configureTestingModule({declarations: [CmpWithLink]}); const router: Router = TestBed.inject(Router); let fixture: ComponentFixture = await createRoot(router, CmpWithLink); @@ -141,14 +137,11 @@ export function routerLinkIntegrationSpec() { it('should not throw when some command is null', async () => { @Component({ - selector: 'someCmp', template: `Link`, - standalone: false, + imports: [RouterLink, RouterOutlet], }) class CmpWithLink {} - - TestBed.configureTestingModule({declarations: [CmpWithLink]}); const router: Router = TestBed.inject(Router); expect(async () => await createRoot(router, CmpWithLink)).not.toThrow(); @@ -156,14 +149,12 @@ export function routerLinkIntegrationSpec() { it('should not throw when some command is undefined', async () => { @Component({ - selector: 'someCmp', template: `Link`, - standalone: false, + imports: [RouterLink, RouterOutlet], }) class CmpWithLink {} - TestBed.configureTestingModule({declarations: [CmpWithLink]}); const router: Router = TestBed.inject(Router); expect(async () => await createRoot(router, CmpWithLink)).not.toThrow(); @@ -171,13 +162,12 @@ export function routerLinkIntegrationSpec() { it('should update hrefs when query params or fragment change', async () => { @Component({ - selector: 'someRoot', template: `Link`, - standalone: false, + imports: [RouterLink, RouterOutlet], }) class RootCmpWithLink {} - TestBed.configureTestingModule({declarations: [RootCmpWithLink]}); + const router: Router = TestBed.inject(Router); const fixture = await createRoot(router, RootCmpWithLink); @@ -200,13 +190,12 @@ export function routerLinkIntegrationSpec() { it('should correctly use the preserve strategy', async () => { @Component({ - selector: 'someRoot', template: `Link`, - standalone: false, + imports: [RouterLink, RouterOutlet], }) class RootCmpWithLink {} - TestBed.configureTestingModule({declarations: [RootCmpWithLink]}); + const router: Router = TestBed.inject(Router); const fixture = await createRoot(router, RootCmpWithLink); @@ -221,7 +210,6 @@ export function routerLinkIntegrationSpec() { it('should correctly use the merge strategy', async () => { @Component({ - selector: 'someRoot', template: `Link`, - standalone: false, + imports: [RouterLink, RouterOutlet], }) class RootCmpWithLink {} - TestBed.configureTestingModule({declarations: [RootCmpWithLink]}); + const router: Router = TestBed.inject(Router); const fixture = await createRoot(router, RootCmpWithLink); @@ -468,13 +456,11 @@ export function routerLinkIntegrationSpec() { it('should set href on area elements', async () => { @Component({ - selector: 'someRoot', template: ``, - standalone: false, + imports: [RouterLink, RouterOutlet], }) class RootCmpWithArea {} - TestBed.configureTestingModule({declarations: [RootCmpWithArea]}); const router: Router = TestBed.inject(Router); const fixture = await createRoot(router, RootCmpWithArea); diff --git a/packages/router/test/operators/resolve_data.spec.ts b/packages/router/test/operators/resolve_data.spec.ts index 44e63b965329..63566c899463 100644 --- a/packages/router/test/operators/resolve_data.spec.ts +++ b/packages/router/test/operators/resolve_data.spec.ts @@ -125,7 +125,6 @@ describe('resolveData operator', () => { it('should have correct data when parent resolver runs but data is not inherited', async () => { @Component({ template: '', - standalone: false, }) class Empty {} @@ -160,7 +159,6 @@ describe('resolveData operator', () => { it('should have static title when there is a resolver', async () => { @Component({ template: '', - standalone: false, }) class Empty {} @@ -225,7 +223,6 @@ describe('resolveData operator', () => { it('should inherit resolved data from parent of parent route', async () => { @Component({ template: '', - standalone: false, }) class Empty {} diff --git a/packages/router/test/page_title_strategy_spec.ts b/packages/router/test/page_title_strategy_spec.ts index cba3e357124e..5f475452162e 100644 --- a/packages/router/test/page_title_strategy_spec.ts +++ b/packages/router/test/page_title_strategy_spec.ts @@ -17,6 +17,7 @@ import { ResolveFn, Router, RouterModule, + RouterOutlet, RouterStateSnapshot, TitleStrategy, withRouterConfig, @@ -186,7 +187,6 @@ describe('title strategy', () => { @Component({ template: '', - standalone: false, }) export class BlankCmp {} @@ -195,12 +195,11 @@ export class BlankCmp {} `, - standalone: false, + imports: [RouterOutlet], }) export class RootCmp {} @NgModule({ - declarations: [BlankCmp], imports: [RouterModule.forRoot([])], }) export class TestModule {} diff --git a/packages/router/test/recognize.spec.ts b/packages/router/test/recognize.spec.ts index 95ec237f40e8..235510049eb6 100644 --- a/packages/router/test/recognize.spec.ts +++ b/packages/router/test/recognize.spec.ts @@ -579,6 +579,175 @@ describe('recognize', () => { ).recognize(); await expectAsync(recognizePromise).toBeRejected(); }); + + it('does not evaluate sibling routes under unconfigured zero-segment outlets', async () => { + let canMatchCalls = 0; + const config = [ + { + path: 'a', + children: [ + { + path: '', + outlet: 'detail', + children: [ + { + path: ':id', + component: ComponentA, + canMatch: [ + () => { + canMatchCalls++; + return true; + }, + ], + }, + ], + }, + ], + }, + ]; + await expectAsync( + recognize(config, 'a/(detail:1//x0:/(detail:2)//x1:/(detail:3)//x2:/(detail:4))'), + ).toBeRejectedWithError(/Cannot match any routes/); + expect(canMatchCalls).toBe(1); + + canMatchCalls = 0; + await expectAsync( + recognize(config, 'a/(detail:1///(detail:2///(detail:3)))'), + ).toBeRejectedWithError(/Cannot match any routes/); + expect(canMatchCalls).toBe(0); + }); + + it('does not match empty-path primary routes against unconfigured outlets', async () => { + let canMatchCalls = 0; + const s1 = await recognize( + [ + { + path: 'a', + children: [ + { + path: '', + component: ComponentA, + canMatch: [ + () => { + canMatchCalls++; + return true; + }, + ], + }, + ], + }, + ], + 'a/(x0:/()//x1:/()//x2:/())', + ); + expect(canMatchCalls).toBe(1); + expect(s1.root.firstChild!.children.length).toBe(1); + + canMatchCalls = 0; + const s2 = await recognize( + [ + { + path: 'shop', + children: [ + { + path: '', + canMatch: [ + () => { + canMatchCalls++; + return true; + }, + ], + children: [{path: '', component: ComponentA}], + }, + ], + }, + ], + 'shop/(a:/()//b:/()//c:/())', + ); + expect(canMatchCalls).toBe(1); + expect(s2.root.firstChild!.children.length).toBe(1); + }); + + it('allows navigation when an empty-path named outlet child fails canMatch', async () => { + const config = [ + { + path: 'dashboard', + component: ComponentA, + children: [ + {path: 'home', component: ComponentC}, + { + path: '', + outlet: 'aux', + component: ComponentB, + canMatch: [() => false], + }, + ], + }, + ]; + + const s1 = await recognize(config, 'dashboard'); + checkActivatedRoute(s1.root.firstChild!, 'dashboard', {}, ComponentA); + expect(s1.root.firstChild!.children.length).toBe(0); + + const s2 = await recognize(config, 'dashboard/home'); + checkActivatedRoute(s2.root.firstChild!, 'dashboard', {}, ComponentA); + expect(s2.root.firstChild!.children.length).toBe(1); + checkActivatedRoute(s2.root.firstChild!.firstChild!, 'home', {}, ComponentC); + + const s3 = await recognize( + [ + {path: '', outlet: 'aux', canMatch: [() => false], component: ComponentA}, + {path: '', children: [{path: '', outlet: 'aux', component: ComponentB}]}, + ], + '', + ); + expect(s3.root.children.length).toBe(1); + expect(s3.root.firstChild!.children.length).toBe(1); + checkActivatedRoute(s3.root.firstChild!.firstChild!, '', {}, ComponentB, 'aux'); + }); + + it('allows matching only the first level of a named outlet config with children', async () => { + const s = await recognize( + [ + { + path: 'dashboard', + component: ComponentA, + children: [ + { + path: 'abc', + outlet: 'detail', + component: ComponentB, + children: [{path: 'sub', component: ComponentC}], + }, + ], + }, + ], + 'dashboard/(detail:abc)', + ); + checkActivatedRoute(s.root.firstChild!, 'dashboard', {}, ComponentA); + expect(s.root.firstChild!.children.length).toBe(1); + checkActivatedRoute(s.root.firstChild!.firstChild!, 'abc', {}, ComponentB, 'detail'); + expect(s.root.firstChild!.firstChild!.children.length).toBe(0); + }); + + it('should match an empty-path named outlet with multiple children', async () => { + const s = await recognize( + [ + { + path: '', + outlet: 'aux', + component: ComponentA, + children: [ + {path: 'b', component: ComponentB}, + {path: 'c', outlet: 'c', component: ComponentC}, + ], + }, + ], + '(aux:/(b//c:c))', + ); + checkActivatedRoute(s.root.children[0], '', {}, ComponentA, 'aux'); + checkActivatedRoute(s.root.children[0].children[0], 'b', {}, ComponentB); + checkActivatedRoute(s.root.children[0].children[1], 'c', {}, ComponentC, 'c'); + }); }); describe('nested empty paths with outlets (issue 67708)', () => { @@ -644,6 +813,171 @@ describe('recognize', () => { checkActivatedRoute(secondaryRoute!, '', {}, ComponentD, 'secondary'); checkActivatedRoute(secondaryRoute!.firstChild!, 'component-copy', {}, ComponentA); }); + + it('should match named outlet child when another named outlet empty path sibling exists', async () => { + const config = [ + { + path: '', + component: ComponentA, + children: [ + { + path: '', + component: ComponentB, + children: [{path: 'component', component: ComponentC}], + }, + { + path: '', + outlet: 'secondary', + component: ComponentD, + children: [{path: 'component-copy', component: ComponentA}], + }, + { + path: '', + outlet: 'tertiary', + component: ComponentE, + }, + ], + }, + ]; + + const s = await recognize(config, '(secondary:component-copy)'); + checkActivatedRoute(s.root.firstChild!, '', {}, ComponentA); + const c = s.root.firstChild!.children; + const primaryRoute = c.find((r: any) => r.outlet === PRIMARY_OUTLET); + expect(primaryRoute).toBeDefined(); + checkActivatedRoute(primaryRoute!, '', {}, ComponentB, PRIMARY_OUTLET); + + const secondaryRoute = c.find((r: any) => r.outlet === 'secondary'); + expect(secondaryRoute).toBeDefined(); + checkActivatedRoute(secondaryRoute!, '', {}, ComponentD, 'secondary'); + checkActivatedRoute(secondaryRoute!.firstChild!, 'component-copy', {}, ComponentA); + + const tertiaryRoute = c.find((r: any) => r.outlet === 'tertiary'); + expect(tertiaryRoute).toBeDefined(); + checkActivatedRoute(tertiaryRoute!, '', {}, ComponentE, 'tertiary'); + }); + + it('should match non-empty named outlet child alongside an empty-path named outlet sibling', async () => { + const config = [ + { + path: '', + component: ComponentB, + children: [ + { + path: 'main', + component: ComponentA, + }, + { + path: 'foo', + outlet: 'secondary', + component: ComponentC, + }, + { + path: '', + outlet: 'tertiary', + component: ComponentD, + }, + ], + }, + ]; + + const s1 = await recognize(config, '(secondary:foo)'); + checkActivatedRoute(s1.root.firstChild!, '', {}, ComponentB); + expect(s1.root.firstChild!.children.length).toBe(2); + checkActivatedRoute( + s1.root.firstChild!.children.find((r) => r.outlet === 'secondary')!, + 'foo', + {}, + ComponentC, + 'secondary', + ); + checkActivatedRoute( + s1.root.firstChild!.children.find((r) => r.outlet === 'tertiary')!, + '', + {}, + ComponentD, + 'tertiary', + ); + + const s2 = await recognize(config, '(main//secondary:foo)'); + checkActivatedRoute(s2.root.firstChild!, '', {}, ComponentB); + expect(s2.root.firstChild!.children.length).toBe(3); + checkActivatedRoute( + s2.root.firstChild!.children.find((r) => r.outlet === PRIMARY_OUTLET)!, + 'main', + {}, + ComponentA, + ); + checkActivatedRoute( + s2.root.firstChild!.children.find((r) => r.outlet === 'secondary')!, + 'foo', + {}, + ComponentC, + 'secondary', + ); + checkActivatedRoute( + s2.root.firstChild!.children.find((r) => r.outlet === 'tertiary')!, + '', + {}, + ComponentD, + 'tertiary', + ); + }); + + it('should match named outlet across multiple nested empty-path routes when empty-path named outlet siblings exist', async () => { + const config = [ + { + path: '', + component: ComponentA, + children: [ + { + path: '', + outlet: 'side1', + component: ComponentB, + }, + { + path: '', + component: ComponentC, + children: [ + { + path: 'b', + outlet: 'b', + component: ComponentD, + }, + { + path: '', + outlet: 'side2', + component: ComponentE, + }, + ], + }, + ], + }, + ]; + + const s = await recognize(config, '(b:b)'); + checkActivatedRoute(s.root.firstChild!, '', {}, ComponentA); + expect(s.root.firstChild!.children.length).toBe(2); + const level2 = s.root.firstChild!.children.find((r) => r.outlet === PRIMARY_OUTLET)!; + const side1 = s.root.firstChild!.children.find((r) => r.outlet === 'side1')!; + checkActivatedRoute(side1, '', {}, ComponentB, 'side1'); + checkActivatedRoute(level2, '', {}, ComponentC, PRIMARY_OUTLET); + expect(level2.children.length).toBe(2); + checkActivatedRoute( + level2.children.find((r) => r.outlet === 'b')!, + 'b', + {}, + ComponentD, + 'b', + ); + checkActivatedRoute( + level2.children.find((r) => r.outlet === 'side2')!, + '', + {}, + ComponentE, + 'side2', + ); + }); }); }); @@ -1144,8 +1478,95 @@ describe('recognize', () => { await expectAsync(recognizer('foo/bar')).toBeRejected(); }); }); + + describe('snapshot creation', () => { + it('shares one queryParams object across every snapshot', async () => { + const s = await recognize( + [{path: 'a', children: [{path: '', children: [{path: '', component: ComponentA}]}]}], + 'a?p=1&q=2', + ); + const snapshots = collectSnapshots(s.root); + expect(snapshots.length).toBeGreaterThan(1); + for (const snapshot of snapshots) { + expect(snapshot.queryParams).toBe(s.root.queryParams); + } + expect(s.root.queryParams).toEqual({p: '1', q: '2'}); + expect(Object.isFrozen(s.root.queryParams)).toBeTrue(); + }); + + it('shares the parent params with a route that adds none of its own', async () => { + const s = await recognize( + [ + { + path: 'a', + children: [ + {path: '', component: ComponentA}, + {path: '', outlet: 'modal', component: ComponentB}, + ], + }, + ], + 'a;x=1/(modal:/())', + ); + const a = s.root.firstChild!; + expect(a.params).toEqual({x: '1'}); + expect(a.children.length).toBe(2); + for (const child of a.children) { + expect(child.params).toBe(a.params); + expect(Object.isFrozen(child.params)).toBeTrue(); + } + }); + }); + + describe('outlet name uniqueness', () => { + // The two empty-path matches merge into one node, so the duplicate `detail` outlet is among its children. + it('rejects duplicates that appear only after empty path matches are merged', async () => { + await expectAsync( + recognize( + [ + { + path: 'a', + children: [ + {path: '', children: [{path: ':id', outlet: 'detail', component: ComponentA}]}, + ], + }, + ], + 'a/(detail:1///(detail:2))', + ), + ).toBeRejectedWithError(/Two segments cannot have the same outlet name: '2' and '1'/); + }); + + it('does not treat an outlet named after an Object member as a duplicate', async () => { + const s = await recognize( + [ + { + path: 'a', + children: [ + {path: 'b', outlet: 'constructor', component: ComponentB}, + {path: 'c', component: ComponentC}, + ], + }, + ], + 'a/(c//constructor:b)', + ); + const children = s.root.firstChild!.children; + expect(children.length).toBe(2); + checkActivatedRoute(children[0], 'c', {}, ComponentC); + checkActivatedRoute(children[1], 'b', {}, ComponentB, 'constructor'); + }); + }); }); +function collectSnapshots( + snapshot: ActivatedRouteSnapshot, + into: ActivatedRouteSnapshot[] = [], +): ActivatedRouteSnapshot[] { + into.push(snapshot); + for (const child of snapshot.children) { + collectSnapshots(child, into); + } + return into; +} + async function recognize( config: Routes, url: string, diff --git a/packages/router/test/regression_integration.spec.ts b/packages/router/test/regression_integration.spec.ts index fdec5145f4b8..c1776ead2b2d 100644 --- a/packages/router/test/regression_integration.spec.ts +++ b/packages/router/test/regression_integration.spec.ts @@ -6,36 +6,45 @@ * found in the LICENSE file at https://angular.dev/license */ -import {CommonModule, HashLocationStrategy, Location, LocationStrategy} from '@angular/common'; +import { + CommonModule, + HashLocationStrategy, + Location, + LocationStrategy, + NgIf, +} from '@angular/common'; import {provideLocationMocks, SpyLocation} from '@angular/common/testing'; import { - ChangeDetectionStrategy, ChangeDetectorRef, Component, + inject, Injectable, - NgModule, + signal, TemplateRef, Type, ViewChild, ViewContainerRef, - inject, - signal, } from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {of} from 'rxjs'; +import {filter, mapTo, switchMap, take} from 'rxjs/operators'; import { + ActivatedRoute, ChildrenOutletContexts, DefaultUrlSerializer, NavigationCancel, NavigationError, Router, + RouterLink, + RouterLinkActive, RouterModule, RouterOutlet, UrlSerializer, UrlTree, } from '../index'; -import {of} from 'rxjs'; -import {switchMap, filter, mapTo, take} from 'rxjs/operators'; +import {bootstrapApplication} from '@angular/platform-browser'; +import {isBrowser, timeout, withBody} from '@angular/private/testing'; import { provideRouter, withDisabledInitialNavigation, @@ -43,8 +52,6 @@ import { withViewTransitions, } from '../src/provide_router'; import {afterNextNavigation} from '../src/utils/navigations'; -import {isBrowser, withBody, timeout} from '@angular/private/testing'; -import {bootstrapApplication} from '@angular/platform-browser'; describe('Integration', () => { describe('routerLinkActive', () => { @@ -58,7 +65,7 @@ describe('Integration', () => { {{ secondLink }}
    `, - standalone: false, + imports: [RouterLink, RouterLinkActive], }) class LinkComponent { firstLink = 'link-a'; @@ -75,7 +82,6 @@ describe('Integration', () => { @Component({ template: 'simple', - standalone: false, }) class SimpleCmp {} @@ -86,7 +92,6 @@ describe('Integration', () => { {path: 'link-b', component: SimpleCmp}, ]), ], - declarations: [LinkComponent, SimpleCmp], }); const router: Router = TestBed.inject(Router); @@ -100,7 +105,7 @@ describe('Integration', () => { expect(secondLink.nativeElement.classList).not.toContain('active'); fixture.componentInstance.changeLinks(); - fixture.detectChanges(); + await fixture.whenStable(); await advance(fixture); expect(firstLink.nativeElement.classList).not.toContain('active'); @@ -109,14 +114,11 @@ describe('Integration', () => { it('should not cause infinite loops in the change detection - #15825', async () => { @Component({ - selector: 'simple', template: 'simple', - standalone: false, }) class SimpleCmp {} @Component({ - selector: 'some-root', template: `
    @@ -124,19 +126,13 @@ describe('Integration', () => { `, - standalone: false, + imports: [CommonModule, RouterModule], }) class MyCmp { show: boolean = false; } - @NgModule({ - imports: [CommonModule, RouterModule.forRoot([])], - declarations: [MyCmp, SimpleCmp], - }) - class MyModule {} - - TestBed.configureTestingModule({imports: [MyModule]}); + TestBed.configureTestingModule({imports: [RouterModule.forRoot([])]}); const router: Router = TestBed.inject(Router); const fixture = await createRoot(router, MyCmp); @@ -163,7 +159,7 @@ describe('Integration', () => {
    `, - standalone: false, + imports: [RouterLinkActive, RouterLink], }) class ComponentWithRouterLink { @ViewChild(TemplateRef, {static: true}) templateRef?: TemplateRef; @@ -183,13 +179,11 @@ describe('Integration', () => { @Component({ template: 'simple', - standalone: false, }) class SimpleCmp {} TestBed.configureTestingModule({ imports: [RouterModule.forRoot([{path: 'simple', component: SimpleCmp}])], - declarations: [ComponentWithRouterLink, SimpleCmp], }); const router: Router = TestBed.inject(Router); @@ -198,7 +192,7 @@ describe('Integration', () => { await advance(fixture); fixture.componentInstance.addLink(); - fixture.detectChanges(); + await fixture.whenStable(); fixture.componentInstance.removeLink(); await advance(fixture); @@ -214,20 +208,17 @@ describe('Integration', () => { isActive: {{ rla.isActive }}
    `, - changeDetection: ChangeDetectionStrategy.OnPush, - standalone: false, + imports: [RouterLink, RouterLinkActive], }) class OnPushComponent {} @Component({ template: 'simple', - standalone: false, }) class SimpleCmp {} TestBed.configureTestingModule({ imports: [RouterModule.forRoot([{path: 'simple', component: SimpleCmp}])], - declarations: [OnPushComponent, SimpleCmp], }); const router = TestBed.inject(Router); @@ -242,13 +233,12 @@ describe('Integration', () => { it('should not reactivate a deactivated outlet when destroyed and recreated - #41379', async () => { @Component({ template: 'simple', - standalone: false, }) class SimpleComponent {} @Component({ template: ` `, - standalone: false, + imports: [NgIf, RouterOutlet], }) class AppComponent { outletVisible = true; @@ -256,7 +246,6 @@ describe('Integration', () => { TestBed.configureTestingModule({ imports: [RouterModule.forRoot([{path: ':id', component: SimpleComponent, outlet: 'aux'}])], - declarations: [SimpleComponent, AppComponent], }); const router = TestBed.inject(Router); @@ -285,20 +274,17 @@ describe('Integration', () => { describe('useHash', () => { it('should restore hash to match current route - #28561', async () => { @Component({ - selector: 'root-cmp', template: ``, - standalone: false, + imports: [RouterOutlet], }) class RootCmp {} @Component({ template: 'simple', - standalone: false, }) class SimpleCmp {} @Component({ template: 'one', - standalone: false, }) class OneCmp {} @@ -309,7 +295,6 @@ describe('Integration', () => { {path: 'one', component: OneCmp, canActivate: [() => inject(Router).parseUrl('/')]}, ]), ], - declarations: [SimpleCmp, RootCmp, OneCmp], providers: [provideLocationMocks()], }); @@ -344,24 +329,20 @@ describe('Integration', () => { } } @Component({ - selector: 'root-cmp', template: ``, - standalone: false, + imports: [RouterOutlet], }) class RootCmp {} @Component({ template: 'simple', - standalone: false, }) class SimpleCmp {} @Component({ template: 'one', - standalone: false, }) class OneCmp {} TestBed.configureTestingModule({ - declarations: [SimpleCmp, RootCmp, OneCmp], imports: [RouterOutlet], providers: [ DelayedResolve, @@ -411,7 +392,7 @@ describe('Integration', () => { `, - standalone: false, + imports: [CommonModule, RouterOutlet], }) class TestCmp { outlet1 = signal(true); @@ -420,18 +401,16 @@ describe('Integration', () => { @Component({ template: '', - standalone: false, }) class EmptyCmp {} TestBed.configureTestingModule({ imports: [CommonModule, RouterModule.forRoot([{path: '**', component: EmptyCmp}])], - declarations: [TestCmp, EmptyCmp], }); const fixture = TestBed.createComponent(TestCmp); const contexts = TestBed.inject(ChildrenOutletContexts); await TestBed.inject(Router).navigateByUrl('/'); - fixture.detectChanges(); + await fixture.whenStable(); expect(contexts.getContext('primary')).toBeDefined(); expect(contexts.getContext('primary')?.outlet).not.toBeNull(); @@ -441,11 +420,11 @@ describe('Integration', () => { // https://github.com/angular/angular/issues/36711, // https://github.com/angular/angular/issues/32453 fixture.componentInstance.outlet2.set(true); - fixture.detectChanges(); + await fixture.whenStable(); expect(contexts.getContext('primary')?.outlet).not.toBeNull(); fixture.componentInstance.outlet1.set(false); - fixture.detectChanges(); + await fixture.whenStable(); // Destroying the first one show not clear the outlet context because the second one takes over // as the registered outlet. expect(contexts.getContext('primary')?.outlet).not.toBeNull(); @@ -517,6 +496,79 @@ describe('Integration', () => { expect(cancellations.length).toEqual(2); }); + it('should not confuse outlets across navigation and URL re-parse when primary segment contains a colon', async () => { + @Component({ + template: ``, + imports: [RouterOutlet], + }) + class RootCmp {} + + @Component({ + template: ` +
    +
    +
    + `, + imports: [RouterOutlet], + }) + class ParentCmp {} + + @Component({template: `Primary({{ route.snapshot.paramMap.get('id') }})`}) + class PrimaryCmp { + readonly route = inject(ActivatedRoute); + } + + @Component({template: `Admin({{ route.snapshot.paramMap.get('p') }})`}) + class AdminCmp { + readonly route = inject(ActivatedRoute); + } + + @Component({template: `Aux({{ route.snapshot.paramMap.get('a') }})`}) + class AuxCmp { + readonly route = inject(ActivatedRoute); + } + + TestBed.configureTestingModule({ + providers: [ + provideLocationMocks(), + provideRouter([ + { + path: 'x', + component: ParentCmp, + children: [ + {path: ':id', component: PrimaryCmp}, + {path: ':p', component: AdminCmp, outlet: 'admin'}, + {path: ':a', component: AuxCmp, outlet: 'aux'}, + ], + }, + ]), + ], + }); + + const router = TestBed.inject(Router); + const location = TestBed.inject(Location); + const fixture = TestBed.createComponent(RootCmp); + + await router.navigate(['/x', {outlets: {primary: ['admin:y'], aux: ['z']}}]); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Primary(admin:y)'); + expect(fixture.nativeElement.textContent).not.toContain('Admin('); + expect(fixture.nativeElement.textContent).toContain('Aux(z)'); + + const browserUrl = location.path(); + expect(browserUrl).toBe('/x/(admin%3Ay//aux:z)'); + + await router.navigateByUrl('/x/(aux:init)'); + await fixture.whenStable(); + await router.navigateByUrl(browserUrl); + await fixture.whenStable(); + + expect(fixture.nativeElement.textContent).toContain('Primary(admin:y)'); + expect(fixture.nativeElement.textContent).not.toContain('Admin('); + expect(fixture.nativeElement.textContent).toContain('Aux(z)'); + }); + if (isBrowser) { it( 'should allow navigating during template execution', @@ -563,7 +615,7 @@ describe('Integration', () => { async function advance(fixture: ComponentFixture): Promise { await timeout(); - fixture.detectChanges(); + await fixture.whenStable(); } function createRoot(router: Router, type: Type): ComponentFixture { diff --git a/packages/router/test/route_injector_cleanup.spec.ts b/packages/router/test/route_injector_cleanup.spec.ts index 7ee1b372ce4b..740361741b99 100644 --- a/packages/router/test/route_injector_cleanup.spec.ts +++ b/packages/router/test/route_injector_cleanup.spec.ts @@ -18,7 +18,7 @@ import { Router, RouterOutlet, provideRouter, - withExperimentalAutoCleanupInjectors, + withAutoCleanupInjectors, RouterModule, destroyDetachedRouteHandle, } from '@angular/router'; @@ -26,21 +26,20 @@ import { describe('Route Injector Destruction', () => { @Component({ template: '', - standalone: true, imports: [RouterOutlet], }) class AppComponent {} - @Component({template: 'home', standalone: true}) + @Component({template: 'home'}) class HomeComponent {} - @Component({template: 'away', standalone: true}) + @Component({template: 'away'}) class AwayComponent {} - @Component({template: 'child', standalone: true}) + @Component({template: 'child'}) class ChildComponent {} - @Component({template: 'lazy', standalone: true}) + @Component({template: 'lazy'}) class LazyComponent {} @NgModule({ @@ -48,7 +47,7 @@ describe('Route Injector Destruction', () => { }) class LazyModule {} - @Component({template: 'check', standalone: true}) + @Component({template: 'check'}) class DestroyCheckComponent { destroyRefCalled = false; destroyRef = inject(DestroyRef); @@ -133,7 +132,7 @@ describe('Route Injector Destruction', () => { loadChildren: () => Promise.resolve(LazyModule), }, ], - withExperimentalAutoCleanupInjectors(), + withAutoCleanupInjectors(), ), {provide: RouteReuseStrategy, useClass: CustomReuseStrategy}, ], @@ -310,14 +309,14 @@ describe('Route Injector Destruction', () => { await router.navigateByUrl('/check'); const fixture = TestBed.createComponent(AppComponent); - fixture.detectChanges(); + await fixture.whenStable(); const component = fixture.debugElement.query( By.directive(DestroyCheckComponent), ).componentInstance; // 1. Navigate away to detach 'check' route await router.navigateByUrl('/away'); - fixture.detectChanges(); + await fixture.whenStable(); // 2. Verify 'check' route is detached and stored expect(strategy.storedHandles.get(checkRoute)).toBeDefined(); diff --git a/packages/router/test/router_link_active.spec.ts b/packages/router/test/router_link_active.spec.ts index 1ee603699229..f66b81625121 100644 --- a/packages/router/test/router_link_active.spec.ts +++ b/packages/router/test/router_link_active.spec.ts @@ -5,7 +5,7 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ -import {Component} from '@angular/core'; +import {Component, signal} from '@angular/core'; import {TestBed} from '@angular/core/testing'; import {Router, RouterLink, RouterLinkActive, provideRouter} from '../index'; @@ -40,6 +40,48 @@ describe('RouterLinkActive', () => { expect(Array.from(fixture.nativeElement.querySelector('a').classList)).toEqual([]); }); + it('removes the active class when routerLinkActive changes to null', async () => { + @Component({ + imports: [RouterLinkActive, RouterLink], + template: '', + }) + class MyCmp { + activeClass = signal('active'); + } + + TestBed.configureTestingModule({providers: [provideRouter([{path: '**', children: []}])]}); + const fixture = TestBed.createComponent(MyCmp); + fixture.autoDetectChanges(); + await TestBed.inject(Router).navigateByUrl('/abc'); + await fixture.whenStable(); + const link = fixture.nativeElement.querySelector('a'); + expect(Array.from(link.classList)).toEqual(['active']); + + fixture.componentInstance.activeClass.set(null); + await fixture.whenStable(); + expect(Array.from(link.classList)).toEqual([]); + }); + + it('replaces the active classes when routerLinkActive changes', async () => { + @Component({ + imports: [RouterLinkActive, RouterLink], + template: '', + }) + class MyCmp { + activeClass = signal('active'); + } + + TestBed.configureTestingModule({providers: [provideRouter([{path: '**', children: []}])]}); + const fixture = TestBed.createComponent(MyCmp); + fixture.autoDetectChanges(); + await TestBed.inject(Router).navigateByUrl('/abc'); + await fixture.whenStable(); + + fixture.componentInstance.activeClass.set('selected'); + await fixture.whenStable(); + expect(Array.from(fixture.nativeElement.querySelector('a').classList)).toEqual(['selected']); + }); + it('accepts undefined for routerLinkActive and applies no classes', async () => { @Component({ imports: [RouterLinkActive, RouterLink], diff --git a/packages/router/test/router_link_spec.ts b/packages/router/test/router_link_spec.ts index c675a03a561e..44b8ed5289be 100644 --- a/packages/router/test/router_link_spec.ts +++ b/packages/router/test/router_link_spec.ts @@ -6,24 +6,35 @@ * found in the LICENSE file at https://angular.dev/license */ +import {PlatformNavigation, ViewportScroller} from '@angular/common'; import {Component, inject, signal} from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; -import {Router, RouterLink, RouterModule, provideRouter} from '../index'; +import {firstValueFrom} from 'rxjs'; +import {filter} from 'rxjs/operators'; +import { + Router, + RouterLink, + RouterModule, + Scroll, + provideRouter, + withExperimentalPlatformNavigation, + withInMemoryScrolling, +} from '../index'; +import {ROUTER_SCROLLER} from '../src/router_scroller'; import {RouterTestingHarness} from '../testing'; +import {useAutoTick} from '@angular/private/testing'; describe('RouterLink', () => { it('does not modify tabindex if already set on non-anchor element', async () => { @Component({ template: `
    `, - standalone: false, }) class LinkComponent { link: string | null | undefined = '/'; } TestBed.configureTestingModule({ imports: [RouterModule.forRoot([])], - declarations: [LinkComponent], }); const fixture = TestBed.createComponent(LinkComponent); await fixture.whenStable(); @@ -45,7 +56,7 @@ describe('RouterLink', () => { [replaceUrl]="replaceUrl()" >
    `, - standalone: false, + imports: [RouterLink], }) class LinkComponent { link = signal('/'); @@ -60,7 +71,6 @@ describe('RouterLink', () => { beforeEach(async () => { TestBed.configureTestingModule({ imports: [RouterModule.forRoot([])], - declarations: [LinkComponent], }); fixture = TestBed.createComponent(LinkComponent); await fixture.whenStable(); @@ -127,7 +137,7 @@ describe('RouterLink', () => { [replaceUrl]="replaceUrl()" > `, - standalone: false, + imports: [RouterLink], }) class LinkComponent { link = signal('/'); @@ -141,7 +151,6 @@ describe('RouterLink', () => { beforeEach(async () => { TestBed.configureTestingModule({ imports: [RouterModule.forRoot([])], - declarations: [LinkComponent], }); fixture = TestBed.createComponent(LinkComponent); await fixture.whenStable(); @@ -190,13 +199,12 @@ describe('RouterLink', () => { it('should handle routerLink in svg templates', async () => { @Component({ template: ``, - standalone: false, + imports: [RouterLink], }) class LinkComponent {} TestBed.configureTestingModule({ imports: [RouterModule.forRoot([])], - declarations: [LinkComponent], }); const fixture = TestBed.createComponent(LinkComponent); await fixture.whenStable(); @@ -246,7 +254,7 @@ describe('RouterLink', () => { @Component({ template: ` `, - standalone: false, + imports: [RouterLink], }) class LinkComponent { link = signal('/'); @@ -257,7 +265,6 @@ describe('RouterLink', () => { beforeEach(async () => { TestBed.configureTestingModule({ imports: [RouterModule.forRoot([])], - declarations: [LinkComponent], }); fixture = TestBed.createComponent(LinkComponent); await fixture.whenStable(); @@ -329,4 +336,149 @@ describe('RouterLink', () => { await harness.navigateByUrl('/different'); expect(anchor.getAttribute('href')).toBe('/different/child'); }); + + it('falls back to the root for a link that would generate a protocol-relative href', async () => { + @Component({ + template: `commands`, + imports: [RouterLink], + }) + class WithLink { + readonly commands = ['/', '', 'attacker.example', 'collect']; + } + + TestBed.configureTestingModule({ + providers: [provideRouter([{path: '', component: WithLink}])], + }); + const warn = spyOn(console, 'warn'); + const fixture = TestBed.createComponent(WithLink); + + await fixture.whenStable(); + + expect(fixture.nativeElement.querySelector('a').getAttribute('href')).toBe('/'); + expect(warn).toHaveBeenCalledWith( + `NG04019: Cannot serialize a UrlTree that would produce a protocol-relative URL. Falling back to '/' instead.`, + ); + }); + + it('preserves query params and fragment when falling back for a protocol-relative link', async () => { + @Component({ + template: `commands`, + imports: [RouterLink], + }) + class WithLink { + readonly commands = ['/', '', 'attacker.example', 'collect']; + } + + TestBed.configureTestingModule({ + providers: [provideRouter([{path: '', component: WithLink}])], + }); + const warn = spyOn(console, 'warn'); + const fixture = TestBed.createComponent(WithLink); + + await fixture.whenStable(); + + expect(fixture.nativeElement.querySelector('a').getAttribute('href')).toBe('/?ref=123#section'); + expect(warn).toHaveBeenCalledWith( + `NG04019: Cannot serialize a UrlTree that would produce a protocol-relative URL. Falling back to '/' instead.`, + ); + }); + + describe('scroll', () => { + useAutoTick(); + + @Component({ + template: ` + manual + default + `, + imports: [RouterLink], + }) + class LinksWithScroll {} + + function click(fixture: ComponentFixture, id: string) { + fixture.nativeElement.querySelector(`#${id}`).click(); + } + + it('passes the scroll option to the navigation', async () => { + TestBed.configureTestingModule({providers: [provideRouter([{path: '**', children: []}])]}); + const router = TestBed.inject(Router); + const fixture = TestBed.createComponent(LinksWithScroll); + await fixture.whenStable(); + + click(fixture, 'manual'); + await fixture.whenStable(); + + expect(router.lastSuccessfulNavigation()?.extras.scroll).toBe('manual'); + }); + + it('does not add the scroll option when the input is not set', async () => { + TestBed.configureTestingModule({providers: [provideRouter([{path: '**', children: []}])]}); + const router = TestBed.inject(Router); + const navigateSpy = spyOn(router, 'navigateByUrl').and.callThrough(); + const fixture = TestBed.createComponent(LinksWithScroll); + await fixture.whenStable(); + + click(fixture, 'default'); + await fixture.whenStable(); + + expect(navigateSpy).toHaveBeenCalledTimes(1); + expect('scroll' in navigateSpy.calls.mostRecent().args[1]!).toBe(false); + }); + + it('skips scroll restoration for links with scroll="manual"', async () => { + TestBed.configureTestingModule({ + providers: [ + provideRouter( + [{path: '**', children: []}], + withInMemoryScrolling({scrollPositionRestoration: 'top'}), + ), + ], + }); + const router = TestBed.inject(Router); + const scrollToSpy = spyOn(TestBed.inject(ViewportScroller), 'scrollToPosition'); + TestBed.inject(ROUTER_SCROLLER).init(); + const fixture = TestBed.createComponent(LinksWithScroll); + await fixture.whenStable(); + const nextScroll = () => + firstValueFrom(router.events.pipe(filter((e): e is Scroll => e instanceof Scroll))); + + let scroll = nextScroll(); + click(fixture, 'manual'); + expect((await scroll).scrollBehavior).toBe('manual'); + expect(scrollToSpy).not.toHaveBeenCalled(); + + scroll = nextScroll(); + click(fixture, 'default'); + await scroll; + expect(scrollToSpy).toHaveBeenCalledWith([0, 0]); + }); + + it('passes the scroll option to NavigateEvent#intercept with platform navigation', async () => { + TestBed.configureTestingModule({ + providers: [ + provideRouter([{path: '**', children: []}], withExperimentalPlatformNavigation()), + ], + }); + const interceptedScroll: Array = []; + // Added before the router's own listener so `intercept` is wrapped when the router calls it. + TestBed.inject(PlatformNavigation).addEventListener('navigate', (e: any) => { + const intercept = e.intercept; + e.intercept = function (options: {scroll?: string}) { + interceptedScroll.push(options.scroll); + intercept.call(this, options); + }; + }); + const fixture = TestBed.createComponent(LinksWithScroll); + await fixture.whenStable(); + + click(fixture, 'manual'); + await fixture.whenStable(); + click(fixture, 'default'); + await fixture.whenStable(); + + expect(interceptedScroll).toEqual(['manual', 'after-transition']); + }); + }); }); diff --git a/packages/router/test/router_navigation_extras.spec.ts b/packages/router/test/router_navigation_extras.spec.ts index 8cee65d3c6a5..1b07c7acff33 100644 --- a/packages/router/test/router_navigation_extras.spec.ts +++ b/packages/router/test/router_navigation_extras.spec.ts @@ -99,5 +99,5 @@ describe('`navigationExtras handling with redirects`', () => { }); }); -@Component({selector: 'simple-cmp', template: `simple`}) +@Component({template: `simple`}) class SimpleCmp {} diff --git a/packages/router/test/router_preloader.spec.ts b/packages/router/test/router_preloader.spec.ts index 41122f3fcaf4..8d3de209fc94 100644 --- a/packages/router/test/router_preloader.spec.ts +++ b/packages/router/test/router_preloader.spec.ts @@ -48,7 +48,6 @@ describe('RouterPreloader', () => { useAutoTick(); @Component({ template: '', - standalone: false, }) class LazyLoadedCmp {} @@ -75,7 +74,6 @@ describe('RouterPreloader', () => { describe('configurations with canLoad guard', () => { @NgModule({ - declarations: [LazyLoadedCmp], providers: [ { provide: ROUTES, @@ -138,7 +136,6 @@ describe('RouterPreloader', () => { const testModule = TestBed.inject(NgModuleRef) as any; const events: Array = []; @NgModule({ - declarations: [LazyLoadedCmp], imports: [RouterModule.forChild([{path: 'LoadedModule2', component: LazyLoadedCmp}])], }) class LoadedModule2 {} @@ -311,9 +308,7 @@ describe('RouterPreloader', () => { return new DelayedPreLoad(); }; - @NgModule({ - declarations: [LazyLoadedCmp], - }) + @NgModule({}) class SharedModule {} @NgModule({ @@ -610,7 +605,6 @@ describe('RouterPreloader', () => { describe('should ignore errors', () => { @NgModule({ - declarations: [LazyLoadedCmp], imports: [RouterModule.forChild([{path: 'LoadedModule1', component: LazyLoadedCmp}])], }) class LoadedModule {} @@ -647,7 +641,6 @@ describe('RouterPreloader', () => { describe('should copy loaded configs', () => { const configs = [{path: 'LoadedModule1', component: LazyLoadedCmp}]; @NgModule({ - declarations: [LazyLoadedCmp], providers: [{provide: ROUTES, multi: true, useValue: configs}], }) class LoadedModule {} @@ -681,7 +674,6 @@ describe('RouterPreloader', () => { describe("should work with lazy loaded modules that don't provide RouterModule.forChild()", () => { @NgModule({ - declarations: [LazyLoadedCmp], providers: [ { provide: ROUTES, diff --git a/packages/router/test/router_resource_behavior_spec.ts b/packages/router/test/router_resource_behavior_spec.ts index 71fc938fe6b4..9fba5da8bd47 100644 --- a/packages/router/test/router_resource_behavior_spec.ts +++ b/packages/router/test/router_resource_behavior_spec.ts @@ -15,7 +15,6 @@ import { signal, WritableSignal, resource, - ɵpromiseWithResolvers, } from '@angular/core'; import {TestBed} from '@angular/core/testing'; import {provideRouter, Router, UrlTree} from '@angular/router'; @@ -94,9 +93,9 @@ describe('routerResource behavior tests', () => { resolveImmediately = false; return Promise.resolve('initial'); } - return new Promise((resolve) => { - resolveLoader = resolve; - }); + const {promise, resolve} = Promise.withResolvers(); + resolveLoader = resolve; + return promise; }, }); } @@ -131,7 +130,9 @@ describe('routerResource behavior tests', () => { await timeout(); // Setup pending navigation to /route2 - guardPromise2 = new Promise((resolve) => (resolveGuard2 = resolve)); + ({promise: guardPromise2, resolve: resolveGuard2} = Promise.withResolvers< + boolean | UrlTree + >()); const navPromise = harness.navigateByUrl('/route2'); await timeout(); @@ -158,7 +159,9 @@ describe('routerResource behavior tests', () => { const wrapped = createWrappedResource(); await timeout(); - guardPromise2 = new Promise((resolve) => (resolveGuard2 = resolve)); + ({promise: guardPromise2, resolve: resolveGuard2} = Promise.withResolvers< + boolean | UrlTree + >()); const navPromise = harness.navigateByUrl('/route2'); await timeout(); @@ -203,9 +206,13 @@ describe('routerResource behavior tests', () => { await timeout(); // Block route3 with a pending guard so we can pause and inspect the redirect transition - guardPromise3 = new Promise((resolve) => (resolveGuard3 = resolve)); + ({promise: guardPromise3, resolve: resolveGuard3} = Promise.withResolvers< + boolean | UrlTree + >()); - guardPromise2 = new Promise((resolve) => (resolveGuard2 = resolve)); + ({promise: guardPromise2, resolve: resolveGuard2} = Promise.withResolvers< + boolean | UrlTree + >()); const navPromise = harness.navigateByUrl('/route2'); await timeout(); @@ -233,7 +240,9 @@ describe('routerResource behavior tests', () => { const wrapped = createWrappedResource(); await timeout(); - guardPromise2 = new Promise((resolve) => (resolveGuard2 = resolve)); + ({promise: guardPromise2, resolve: resolveGuard2} = Promise.withResolvers< + boolean | UrlTree + >()); const navPromise = harness.navigateByUrl('/route2'); await timeout(); @@ -266,12 +275,16 @@ describe('routerResource behavior tests', () => { await timeout(); // Start Nav 1 (to /route2) - guardPromise2 = new Promise((resolve) => (resolveGuard2 = resolve)); + ({promise: guardPromise2, resolve: resolveGuard2} = Promise.withResolvers< + boolean | UrlTree + >()); const nav1Promise = harness.navigateByUrl('/route2'); await timeout(); // Start Nav 2 (to /route3), which cancels Nav 1 - guardPromise3 = new Promise((resolve) => (resolveGuard3 = resolve)); + ({promise: guardPromise3, resolve: resolveGuard3} = Promise.withResolvers< + boolean | UrlTree + >()); const nav2Promise = harness.navigateByUrl('/route3'); await timeout(); @@ -301,7 +314,9 @@ describe('routerResource behavior tests', () => { await timeout(); // Start Nav 1 - guardPromise2 = new Promise((resolve) => (resolveGuard2 = resolve)); + ({promise: guardPromise2, resolve: resolveGuard2} = Promise.withResolvers< + boolean | UrlTree + >()); const nav1Promise = harness.navigateByUrl('/route2'); await timeout(); @@ -313,7 +328,9 @@ describe('routerResource behavior tests', () => { await timeout(); // While recovery is pending, a new navigation (Nav 2) starts (to /route3) - guardPromise3 = new Promise((resolve) => (resolveGuard3 = resolve)); + ({promise: guardPromise3, resolve: resolveGuard3} = Promise.withResolvers< + boolean | UrlTree + >()); const nav2Promise = harness.navigateByUrl('/route3'); await timeout(); @@ -352,7 +369,9 @@ describe('routerResource behavior tests', () => { const wrapped = createWrappedResource(); await timeout(); - guardPromise2 = new Promise((resolve) => (resolveGuard2 = resolve)); + ({promise: guardPromise2, resolve: resolveGuard2} = Promise.withResolvers< + boolean | UrlTree + >()); const navPromise = harness.navigateByUrl('/route2'); await timeout(); @@ -376,7 +395,9 @@ describe('routerResource behavior tests', () => { expect(wrapped.value()).toBe('initial'); // 1. Start navigation to route2 (blocked by guard) - guardPromise2 = new Promise((resolve) => (resolveGuard2 = resolve)); + ({promise: guardPromise2, resolve: resolveGuard2} = Promise.withResolvers< + boolean | UrlTree + >()); const navPromise = harness.navigateByUrl('/route2'); await timeout(); // Let router start and freeze the resource @@ -437,7 +458,9 @@ describe('routerResource behavior tests', () => { expect(wrapped.value()).toBe('initial-2'); // 2. Start navigation (should freeze at the last streamed value) - guardPromise2 = new Promise((resolve) => (resolveGuard2 = resolve)); + ({promise: guardPromise2, resolve: resolveGuard2} = Promise.withResolvers< + boolean | UrlTree + >()); const navPromise = harness.navigateByUrl('/route2'); await timeout(); @@ -466,24 +489,30 @@ describe('routerResource behavior tests', () => { expect(wrapped.value()).toBe('updated-2'); }); - it('should complete rollback recovery when a resource has a value even while remaining in loading state', async () => { + it('should maintain frozen state during rollback recovery until loading completes', async () => { const valueSignal = signal('initial'); + const statusSignal = signal('resolved'); + const isLoadingSignal = signal(false); const hasValueSignal = signal(true); const customResource: Resource = { value: valueSignal as Signal, - status: signal('loading').asReadonly(), - isLoading: signal(true).asReadonly(), + status: statusSignal.asReadonly(), + isLoading: isLoadingSignal.asReadonly(), hasValue: (() => hasValueSignal()) as any, error: signal(undefined).asReadonly(), - snapshot: computed(() => ({ - status: 'loading' as const, - value: valueSignal()!, - })), + snapshot: computed( + () => + ({ + status: statusSignal(), + value: valueSignal()!, + }) as any, + ), }; const wrapped = TestBed.runInInjectionContext(() => routerResource(customResource)); expect(wrapped.value()).toBe('initial'); + expect(wrapped.isLoading()).toBe(false); // Start navigation to route2 with a failing guard to trigger rollback guardPromise2 = Promise.reject(new Error('Navigation failed')); @@ -492,21 +521,33 @@ describe('routerResource behavior tests', () => { } catch {} // Reset value and set hasValue to false to simulate recovery fetch starting + statusSignal.set('loading'); + isLoadingSignal.set(true); valueSignal.set(undefined); hasValueSignal.set(false); await timeout(); // Wrapped snapshot should be frozen at 'initial' during recovery loading expect(wrapped.value()).toBe('initial'); + expect(wrapped.isLoading()).toBe(false); // Resource receives value while isLoading() remains true and status is 'loading' valueSignal.set('recovered-stream-1'); hasValueSignal.set(true); + await timeout(); + + // Rollback recovery remains frozen because isLoading is still true + expect(wrapped.value()).toBe('initial'); + expect(wrapped.isLoading()).toBe(false); + + // Loading completes + statusSignal.set('resolved'); + isLoadingSignal.set(false); await harness.fixture.whenStable(); - // Rollback recovery unfreezes because hasValue is true despite isLoading being true + // Rollback recovery unfreezes because loading is complete expect(wrapped.value()).toBe('recovered-stream-1'); - expect(wrapped.isLoading()).toBe(true); + expect(wrapped.isLoading()).toBe(false); }); }); }); diff --git a/packages/router/test/router_resource_spec.ts b/packages/router/test/router_resource_spec.ts index 3d0e7e3c6d18..8471774234fa 100644 --- a/packages/router/test/router_resource_spec.ts +++ b/packages/router/test/router_resource_spec.ts @@ -9,70 +9,69 @@ import { Component, computed, - EnvironmentProviders, + DestroyRef, + inject, + Injector, + Input, + ɵpromiseWithResolvers as promiseWithResolvers, resource, Resource, + ResourceSnapshot, ResourceStatus, - Signal, + runInInjectionContext, signal, - ɵpromiseWithResolvers as promiseWithResolvers, + WritableResource, } from '@angular/core'; +import {rxResource} from '@angular/core/rxjs-interop'; import {TestBed} from '@angular/core/testing'; import { - provideRouter as internalProvideRouter, - Router, + ActivatedRoute, + ActivatedRouteSnapshot, + DetachedRouteHandle, NavigationError, - withNavigationErrorHandler, + nonBlocking, + provideRouter, RedirectCommand, - ɵwithRouterResources as withRouterResources, - ɵnonBlocking as nonBlocking, - ActivatedRoute, + ResourceResult, Route, - ɵResourceContext as ResourceContext, - ɵResourceResult as ResourceResult, + Router, RouterFeatures, + RouterOutlet, + RouteReuseStrategy, + withComponentInputBinding, + withNavigationErrorHandler, + withRouterConfig, + withRouterResources, } from '@angular/router'; -import {RouterTestingHarness} from '../testing'; -import {timeout, useAutoTick} from '../../private/testing/src/utils'; -import {rxResource} from '@angular/core/rxjs-interop'; import {of} from 'rxjs'; import {delay} from 'rxjs/operators'; +import {timeout, useAutoTick} from '../../private/testing/src/utils'; +import {RouterTestingHarness} from '../testing'; -// TODO: Use the public @angular/router API once exposed -type InternalRoute = Route & { - /** - * A function that returns a map of resources. - * This function is executed during the Main Loading Phase of a navigation. - * @experimental - * @internal - */ - resources?: (ctx: ResourceContext) => ResourceResult | Promise; - children?: InternalRoute[]; -}; - -export function provideRouter( - routes: InternalRoute[], - ...features: RouterFeatures[] -): EnvironmentProviders { - return internalProvideRouter(routes, withRouterResources(), ...features); -} - -async function setupRouter(routes: InternalRoute[], ...features: RouterFeatures[]) { +async function setupRouter(routes: Route[], ...features: RouterFeatures[]) { TestBed.configureTestingModule({ - providers: [provideRouter(routes, ...features)], + providers: [provideRouter(routes, ...features, withRouterResources())], }); const harness = await RouterTestingHarness.create(); const router = TestBed.inject(Router); return {harness, router}; } -type ActivatedRouteInternal = ActivatedRoute & { - resources?: {[key: string]: Resource}; -}; - @Component({template: ''}) class TargetCmp {} +@Component({ + template: '', + imports: [RouterOutlet], +}) +class ShellCmp {} + +@Component({template: ''}) +class InputBindingCmp { + @Input() user: any; + @Input() extra: any; +} + describe('Router resources integration', () => { useAutoTick(); @@ -94,13 +93,12 @@ describe('Router resources integration', () => { await harness.fixture.whenStable(); expect(loaderSpy).toHaveBeenCalled(); - const resourceRef = (router.routerState.root.firstChild as ActivatedRouteInternal) - ?.resources?.['data'] as any; - expect(resourceRef.value()).toBe('loaded'); + const resourceRef = router.routerState.root.firstChild?.resources?.['data']; + expect(resourceRef?.value()).toBe('loaded'); }); it('should support async resource functions returning a Promise', async () => { - const loaderDeferred = promiseWithResolvers(); + const loaderDeferred = Promise.withResolvers(); const {harness, router} = await setupRouter([ { @@ -122,17 +120,17 @@ describe('Router resources integration', () => { expect(router.url).toBe('/test'); - const route = router.routerState.root.firstChild as ActivatedRouteInternal; - const resourceRef = route?.resources?.['data'] as any; + const route = router.routerState.root.firstChild; + const resourceRef = route?.resources?.['data']; expect(resourceRef).toBeDefined(); - expect(resourceRef.isLoading()).toBe(true); - expect(resourceRef.value()).toBeUndefined(); + expect(resourceRef?.isLoading()).toBe(true); + expect(resourceRef?.value()).toBeUndefined(); loaderDeferred.resolve('async loaded'); await harness.fixture.whenStable(); - expect(resourceRef.isLoading()).toBe(false); - expect(resourceRef.value()).toBe('async loaded'); + expect(resourceRef?.isLoading()).toBe(false); + expect(resourceRef?.value()).toBe('async loaded'); }); it('should support async resource functions returning a Promise (blocking)', async () => { @@ -149,16 +147,15 @@ describe('Router resources integration', () => { ]); await harness.navigateByUrl('/test'); - await harness.fixture.whenStable(); - const route = router.routerState.root.firstChild as ActivatedRouteInternal; - const resourceRef = route?.resources?.['data'] as any; + const route = router.routerState.root.firstChild; + const resourceRef = route?.resources?.['data']; expect(resourceRef).toBeDefined(); - expect(resourceRef.value()).toBe('async loaded'); + expect(resourceRef?.value()).toBe('async loaded'); }); it('should await blocking resource resolution even when resources function is async', async () => { - const loaderDeferred = promiseWithResolvers(); + const loaderDeferred = Promise.withResolvers(); const {harness, router} = await setupRouter([ { @@ -184,16 +181,15 @@ describe('Router resources integration', () => { // 2. Now resolve the blocking resource loader loaderDeferred.resolve('resolved data'); await navPromise; - await harness.fixture.whenStable(); expect(router.url).toBe('/test'); - const route = router.routerState.root.firstChild as ActivatedRouteInternal; - const resourceRef = route?.resources?.['data'] as any; - expect(resourceRef.value()).toBe('resolved data'); + const route = router.routerState.root.firstChild; + const resourceRef = route?.resources?.['data']; + expect(resourceRef?.value()).toBe('resolved data'); }); it('should cleanly ignore resolution of async resource function if navigation was cancelled', async () => { - const firstResources = promiseWithResolvers(); + const firstResources = Promise.withResolvers(); const {harness, router} = await setupRouter([ { @@ -219,7 +215,6 @@ describe('Router resources integration', () => { // Supersede with navigation to /second await harness.navigateByUrl('/second'); - await harness.fixture.whenStable(); expect(router.url).toBe('/second'); @@ -232,7 +227,7 @@ describe('Router resources integration', () => { }); it('should cleanly ignore resolution of async resource function if navigation was cancelled (blocking)', async () => { - const firstResources = promiseWithResolvers(); + const firstResources = Promise.withResolvers(); const {harness, router} = await setupRouter([ { @@ -258,7 +253,6 @@ describe('Router resources integration', () => { // Supersede with navigation to /second await harness.navigateByUrl('/second'); - await harness.fixture.whenStable(); expect(router.url).toBe('/second'); @@ -334,18 +328,13 @@ describe('Router resources integration', () => { ]); await harness.navigateByUrl('/parent/componentless/child'); - await harness.fixture.whenStable(); await timeout(20); const parentRoute = router.routerState.root.firstChild!; const componentlessRoute = parentRoute.firstChild!; - expect( - ((parentRoute as ActivatedRouteInternal).resources?.['parentData'] as any).value(), - ).toBe('parent'); - expect( - ((componentlessRoute as ActivatedRouteInternal).resources?.['compData'] as any).value(), - ).toBe('comp'); + expect(parentRoute.resources?.['parentData']?.value()).toBe('parent'); + expect(componentlessRoute.resources?.['compData']?.value()).toBe('comp'); }); it('should throw an error in dev mode if resource function does not return a Resource', async () => { @@ -354,7 +343,8 @@ describe('Router resources integration', () => { path: 'test', component: TargetCmp, resources: () => ({ - data: {foo: 'bar'} as any, + data: {foo: 'bar'} as unknown as Resource & + Pick, 'reload'>, }), }, ]); @@ -368,7 +358,7 @@ describe('Router resources integration', () => { describe('Blocking vs Non-blocking Resources', () => { it('should resolve resources before component initialization if blocking', async () => { let resolverSpy = jasmine.createSpy('resolver'); - const deferred = promiseWithResolvers(); + const deferred = Promise.withResolvers(); const {harness, router} = await setupRouter([ { @@ -461,27 +451,99 @@ describe('Router resources integration', () => { // 1. Initial navigation succeeds await harness.navigateByUrl('/test/1'); - await harness.fixture.whenStable(); expect(router.url).toBe('/test/1'); - const resourceRef = (router.routerState.root.firstChild as ActivatedRouteInternal) - ?.resources?.['data'] as any; - expect(resourceRef.value()).toBe('1'); + const resourceRef = router.routerState.root.firstChild?.resources?.['data']; + expect(resourceRef?.value()).toBe('1'); // 2. Resource encounters an error while on the route shouldError = true; - resourceRef.reload(); + resourceRef?.reload(); await harness.fixture.whenStable(); - expect(resourceRef.status()).toBe('error'); + expect(resourceRef?.status()).toBe('error'); // 3. Retry the identical route with same parameters using onSameUrlNavigation: 'reload' shouldError = false; await router.navigateByUrl('/test/1', {onSameUrlNavigation: 'reload'}); - await harness.fixture.whenStable(); expect(router.url).toBe('/test/1'); // Succeeded! - expect(resourceRef.status()).toBe('resolved'); - expect(resourceRef.value()).toBe('1'); + expect(resourceRef?.status()).toBe('resolved'); + expect(resourceRef?.value()).toBe('1'); + }); + + it('should block navigation when reloading an existing resource that already has a value', async () => { + let loaderPromise = Promise.withResolvers(); + + const {harness, router} = await setupRouter([ + { + path: 'test/:id', + component: TargetCmp, + resources: (ctx) => ({ + data: resource({ + params: () => ctx.params()['id'], + loader: async () => loaderPromise.promise, + }), + }), + }, + ]); + + // 1. Initial load + loaderPromise.resolve('val-1'); + await harness.navigateByUrl('/test/1'); + expect(router.url).toBe('/test/1'); + + const resourceRef = router.routerState.root.firstChild?.resources?.['data'] as any; + expect(resourceRef.value()).toBe('val-1'); + + // 2. Navigate to /test/2: resets loaderPromise + loaderPromise = Promise.withResolvers(); + const nav = harness.navigateByUrl('/test/2'); + await timeout(); + + // Navigation is blocked on loading even though resource previously had a value + expect(router.url).toBe('/test/1'); + + loaderPromise.resolve('val-2'); + await nav; + + expect(router.url).toBe('/test/2'); + expect(resourceRef.value()).toBe('val-2'); + }); + + it('should block navigation when a resource has a defaultValue until loading is complete', async () => { + const loaderDeferred = Promise.withResolvers(); + + const {harness, router} = await setupRouter( + [ + { + path: 'test', + component: InputBindingCmp, + resources: () => ({ + user: resource({ + defaultValue: 'default-user', + loader: async () => loaderDeferred.promise, + }), + }), + }, + ], + withComponentInputBinding(), + ); + + const nav = harness.navigateByUrl('/test', InputBindingCmp); + await timeout(); + + // Navigation is blocked on loading even though the resource has a defaultValue + expect(router.url).not.toBe('/test'); + + loaderDeferred.resolve('loaded-user'); + const cmp = await nav; + + expect(router.url).toBe('/test'); + expect(cmp.user).toBe('loaded-user'); + + const resourceRef = router.routerState.root.firstChild?.resources?.['user']; + expect(resourceRef?.value()).toBe('loaded-user'); + expect(resourceRef?.isLoading()).toBe(false); }); it('should complete navigation and expose error for non-blocking resources', async () => { @@ -506,10 +568,9 @@ describe('Router resources integration', () => { await harness.fixture.whenStable(); expect(router.url).toBe('/test'); - const resourceRef = (router.routerState.root.firstChild as ActivatedRouteInternal) - ?.resources?.['data'] as any; - expect(resourceRef.error()?.message).toBe('Non-blocking error'); - expect(resourceRef.isLoading()).toBe(false); + const resourceRef = router.routerState.root.firstChild?.resources?.['data']; + expect(resourceRef?.error()?.message).toBe('Non-blocking error'); + expect(resourceRef?.isLoading()).toBe(false); }); it('should complete navigation when a resource is idle and not loading', async () => { @@ -528,13 +589,11 @@ describe('Router resources integration', () => { // Navigate without query params -> params() is undefined -> resource is idle await harness.navigateByUrl('/search'); - await harness.fixture.whenStable(); expect(router.url).toBe('/search'); - const resourceRef = (router.routerState.root.firstChild as ActivatedRouteInternal) - ?.resources?.['data'] as any; - expect(resourceRef.status()).toBe('idle'); - expect(resourceRef.value()).toBeUndefined(); + const resourceRef = router.routerState.root.firstChild?.resources?.['data']; + expect(resourceRef?.status()).toBe('idle'); + expect(resourceRef?.value()).toBeUndefined(); }); }); @@ -557,12 +616,10 @@ describe('Router resources integration', () => { ]); await harness.navigateByUrl('/test'); - await harness.fixture.whenStable(); - const resourceRef = (router.routerState.root.firstChild as ActivatedRouteInternal) - ?.resources?.['data'] as any; + const resourceRef = router.routerState.root.firstChild?.resources?.['data'] as any; await timeout(20); - expect(resourceRef.value()).toEqual({name: 'user 123'}); + expect(resourceRef?.value()).toEqual({name: 'user 123'}); }); it('should rollback parameter state on failed navigation', async () => { @@ -591,22 +648,75 @@ describe('Router resources integration', () => { await harness.navigateByUrl('/test/1'); await harness.fixture.whenStable(); - const resourceRef = (router.routerState.root.firstChild as ActivatedRouteInternal) - ?.resources?.['data'] as any; - expect(resourceRef.value()).toBe('1'); + const resourceRef = router.routerState.root.firstChild?.resources?.['data']; + expect(resourceRef?.value()).toBe('1'); // Fail next navigation canActivate = false; await harness.navigateByUrl('/test/2'); - await harness.fixture.whenStable(); // The navigation is cancelled so the resource should retain the old value without loading flicker. - expect(resourceRef.value()).toBe('1'); + expect(resourceRef?.value()).toBe('1'); + expect(resourceRef?.isLoading()).toBe(false); + }); + + it('should maintain frozen state on rollback when navigation fails until rollback reload completes', async () => { + let loaderDeferred = Promise.withResolvers(); + + const {harness, router} = await setupRouter([ + { + path: 'test/:id', + component: TargetCmp, + resources: (ctx) => ({ + data: resource({ + defaultValue: 'default-value', + params: () => ctx.params(), + loader: async ({params}) => { + if (params['id'] === '2') { + throw new Error('Failed navigation'); + } + return loaderDeferred.promise; + }, + }), + }), + }, + ]); + + // Initial navigation to /test/1 + const nav1 = harness.navigateByUrl('/test/1'); + await timeout(); + loaderDeferred.resolve('loaded-1'); + await nav1; + await harness.fixture.whenStable(); + + const resourceRef = router.routerState.root.firstChild?.resources?.['data'] as any; + expect(resourceRef.value()).toBe('loaded-1'); expect(resourceRef.isLoading()).toBe(false); + + // Prepare a new deferred for the reload of id '1' when /test/2 fails and rolls back to /test/1 + loaderDeferred = Promise.withResolvers(); + + const nav2 = harness.navigateByUrl('/test/2').catch(() => {}); + await nav2; + await timeout(); + + // The rollback reload for /test/1 is pending (loaderDeferred is not resolved yet). + // The resource should remain frozen: value is 'loaded-1', isLoading is false, status is 'resolved' + expect(resourceRef.isLoading()).toBe(false); + expect(resourceRef.value()).toBe('loaded-1'); + expect(resourceRef.status()).toBe('resolved'); + + // Now resolve the rollback reload + loaderDeferred.resolve('reloaded-1'); + await harness.fixture.whenStable(); + + // After settling, resource is unfrozen and has the new value + expect(resourceRef.isLoading()).toBe(false); + expect(resourceRef.value()).toBe('reloaded-1'); }); it('should abort previous request via AbortSignal when a new navigation comes in', async () => { - const deferred = promiseWithResolvers<{name: string}>(); + const deferred = Promise.withResolvers<{name: string}>(); let aborted = false; const {harness, router} = await setupRouter([ @@ -635,19 +745,18 @@ describe('Router resources integration', () => { await harness.fixture.whenStable(); expect(aborted).toBe(true); - const userResource = (router.routerState.root.firstChild as ActivatedRouteInternal) - ?.resources?.['user'] as any; + const userResource = router.routerState.root.firstChild?.resources?.['user']; expect(userResource?.value()).toEqual({name: 'user 2'}); // Resolving the old promise should have no effect deferred.resolve({name: 'user 1'}); await timeout(10); - expect(userResource.value()).toEqual({name: 'user 2'}); + expect(userResource?.value()).toEqual({name: 'user 2'}); }); it('should correctly propagate parameter state when a pending navigation supersedes identically reused routes', async () => { const p2 = new Promise(() => {}); // never resolves - const p3 = promiseWithResolvers(); + const p3 = Promise.withResolvers(); let loadedParams: any[] = []; @@ -683,15 +792,13 @@ describe('Router resources integration', () => { p3.resolve('loaded-3'); await nav3; - await harness.fixture.whenStable(); - const resourceRef = (router.routerState.root.firstChild as ActivatedRouteInternal) - ?.resources?.['data'] as any; - expect(resourceRef.value()).toBe('loaded-3'); + const resourceRef = router.routerState.root.firstChild?.resources?.['data']; + expect(resourceRef?.value()).toBe('loaded-3'); }); it('should mask loading states during multi-step Guard UrlTree redirects', async () => { - let loader = promiseWithResolvers(); + let loader = Promise.withResolvers(); const {harness, router} = await setupRouter([ { @@ -714,29 +821,26 @@ describe('Router resources integration', () => { // Settle initial state loader.resolve('1'); await harness.navigateByUrl('/target/1'); - await harness.fixture.whenStable(); - const resourceRef = (router.routerState.root.firstChild as ActivatedRouteInternal) - ?.resources?.['data'] as any; - expect(resourceRef.value()).toBe('1'); - expect(resourceRef.isLoading()).toBe(false); + const resourceRef = router.routerState.root.firstChild?.resources?.['data']; + expect(resourceRef?.value()).toBe('1'); + expect(resourceRef?.isLoading()).toBe(false); - loader = promiseWithResolvers(); + loader = Promise.withResolvers(); // Initiate a navigation to a link that Redirects using a UrlTree Guard. const nav2 = harness.navigateByUrl('/bad-link'); await timeout(50); // UI is still masked looking like '1' - expect(resourceRef.isLoading()).toBe(false); - expect(resourceRef.value()).toBe('1'); + expect(resourceRef?.isLoading()).toBe(false); + expect(resourceRef?.value()).toBe('1'); loader.resolve('3'); await nav2; - await harness.fixture.whenStable(); - expect(resourceRef.isLoading()).toBe(false); - expect(resourceRef.value()).toBe('3'); + expect(resourceRef?.isLoading()).toBe(false); + expect(resourceRef?.value()).toBe('3'); }); it('should be able to redirect from a blocking resource using a NavigationErrorHandler', async () => { @@ -818,32 +922,40 @@ describe('Router resources integration', () => { const nav = harness.navigateByUrl('/rx/123'); await timeout(5); - const resourceRef = (router.routerState.root.firstChild as ActivatedRouteInternal) - ?.resources?.['data'] as any; - expect(resourceRef.isLoading()).toBe(true); - expect(resourceRef.value()).toBeUndefined(); + // Pending route has not activated yet, so router.routerState.root.firstChild must remain null. + expect(router.routerState.root.firstChild).toBeNull(); + const targetState = (router.currentNavigation() as any)?.targetRouterState; + const pendingRoute = targetState?.firstChild(targetState.root); + const resourceRef = pendingRoute?.resources?.['data']; + expect(resourceRef?.isLoading()).toBe(true); + expect(resourceRef?.value()).toBeUndefined(); await nav; - await harness.fixture.whenStable(); - expect(resourceRef.isLoading()).toBe(false); - expect(resourceRef.value()).toBe('rx loaded 123'); + expect(router.routerState.root.firstChild).toBe(pendingRoute); + expect(resourceRef?.isLoading()).toBe(false); + expect(resourceRef?.value()).toBe('rx loaded 123'); }); - it('should unblock navigation when a resource emits a value even while remaining in loading state', async () => { + it('should remain blocked when a resource emits a value while remaining in loading state until loading completes', async () => { const valueSignal = signal(undefined); + const statusSignal = signal('loading'); + const isLoadingSignal = signal(true); const hasValueSignal = signal(false); - const customResource: Resource = { - value: valueSignal as Signal, - status: signal('loading').asReadonly(), - isLoading: signal(true).asReadonly(), - hasValue: (() => hasValueSignal()) as any, + const customResource: Resource & {reload(): boolean} = { + value: valueSignal.asReadonly(), + status: statusSignal.asReadonly(), + isLoading: isLoadingSignal.asReadonly(), + hasValue(): this is Resource { + return hasValueSignal(); + }, error: signal(undefined).asReadonly(), - snapshot: computed(() => ({ - status: 'loading' as const, - value: valueSignal()!, + snapshot: computed>(() => ({ + status: statusSignal() as 'loading' | 'resolved', + value: valueSignal(), })), + reload: () => false, }; const {harness, router} = await setupRouter([ @@ -856,27 +968,1166 @@ describe('Router resources integration', () => { }, ]); - harness.navigateByUrl('/stream'); + const nav = harness.navigateByUrl('/stream'); await timeout(); - // Navigation should be pending because customResource has no value yet + // Navigation should be pending because customResource is in loading state expect(router.url).not.toBe('/stream'); // Custom resource emits a value while retaining isLoading() === true and status 'loading' valueSignal.set('streamed-1'); hasValueSignal.set(true); - await harness.fixture.whenStable(); + await timeout(); + + // Navigation should still be blocked because loading state is true + expect(router.url).not.toBe('/stream'); + + // Resource finishes loading + statusSignal.set('resolved'); + isLoadingSignal.set(false); + await nav; expect(router.url).toBe('/stream'); - const resourceRef = (router.routerState.root.firstChild as ActivatedRouteInternal) - ?.resources?.['data'] as any; - expect(resourceRef.value()).toBe('streamed-1'); - expect(resourceRef.isLoading()).toBe(true); + const resourceRef = router.routerState.root.firstChild?.resources?.['data']; + expect(resourceRef?.value()).toBe('streamed-1'); + expect(resourceRef?.isLoading()).toBe(false); + }); - // Verify subsequent value update while still in loading state - valueSignal.set('streamed-2'); - await harness.fixture.whenStable(); - expect(resourceRef.value()).toBe('streamed-2'); + describe('dependent resources', () => { + it('should support resources depending on each other on the same route', async () => { + const {promise: userPromise, resolve: resolveUser} = Promise.withResolvers<{ + id: string; + teamId: string; + }>(); + + const {harness, router} = await setupRouter([ + { + path: 'user-team', + component: TargetCmp, + resources: () => { + const user = resource({ + loader: () => userPromise, + }); + const team = resource({ + params: ({chain}) => chain(user)?.teamId, + loader: async ({params: teamId}) => ({id: teamId, name: 'Angular Team'}), + }); + return {user, team}; + }, + }, + ]); + + const nav = harness.navigateByUrl('/user-team'); + await timeout(); + + // Navigation is blocked because user is loading and team depends on user + expect(router.url).not.toBe('/user-team'); + + // Resolve user + resolveUser({id: 'u1', teamId: 't42'}); + await nav; + + expect(router.url).toBe('/user-team'); + const resources = router.routerState.root.firstChild?.resources; + expect(resources?.['user']?.value()).toEqual({id: 'u1', teamId: 't42'}); + expect(resources?.['team']?.value()).toEqual({id: 't42', name: 'Angular Team'}); + }); + + it('should support child route resource depending on shared signal updated by parent resource', async () => { + const {promise: parentPromise, resolve: resolveParent} = Promise.withResolvers(); + const {promise: childPromise, resolve: resolveChild} = Promise.withResolvers(); + + const sharedUserSignal = signal(undefined); + + const {harness, router} = await setupRouter([ + { + path: 'user/:id', + component: TargetCmp, + resources: () => ({ + user: resource({ + loader: async () => { + const user = await parentPromise; + sharedUserSignal.set(user); + return user; + }, + }), + }), + children: [ + { + path: 'details', + component: TargetCmp, + resources: () => ({ + details: resource({ + params: () => sharedUserSignal()?.role, + loader: async ({params: role}) => { + if (!role) { + return new Promise(() => {}); + } + return childPromise; + }, + }), + }), + }, + ], + }, + ]); + + const nav = harness.navigateByUrl('/user/1/details'); + await timeout(); + + // Navigation is blocked + expect(router.url).not.toBe('/user/1/details'); + + // Resolve parent + resolveParent({id: '1', role: 'admin'}); + await timeout(); + + // Still blocked on child + expect(router.url).not.toBe('/user/1/details'); + + // Resolve child + resolveChild({role: 'admin', permissions: ['read', 'write']}); + await nav; + + expect(router.url).toBe('/user/1/details'); + const parentRoute = router.routerState.root.firstChild!; + const childRoute = parentRoute.firstChild!; + expect(parentRoute.resources!['user'].value()).toEqual({id: '1', role: 'admin'}); + expect(childRoute.resources!['details'].value()).toEqual({ + role: 'admin', + permissions: ['read', 'write'], + }); + }); + + it('should handle parallel dependent resources where parent setup takes longer than child', async () => { + const parentSetupDeferred = promiseWithResolvers(); + const parentLoaderDeferred = promiseWithResolvers<{id: string; role: string}>(); + const childLoaderDeferred = promiseWithResolvers(); + + const {harness, router} = await setupRouter([ + { + path: 'user', + resources: async () => { + const injector = inject(Injector); + // Parent setup is async and delayed + await parentSetupDeferred.promise; + return runInInjectionContext(injector, () => ({ + user: resource({ + loader: () => parentLoaderDeferred.promise, + }), + })); + }, + children: [ + { + path: 'roles', + component: TargetCmp, + resources: (ctx) => ({ + roles: resource({ + params: ({chain}) => (chain(ctx.resources()['user']) as any).role, + loader: async () => { + return childLoaderDeferred.promise; + }, + }), + }), + }, + ], + }, + ]); + + const nav = harness.navigateByUrl('/user/roles'); + await timeout(10); + + // Navigation is blocked: parent setup hasn't finished yet + expect(router.url).not.toBe('/user/roles'); + + // 1. Resolve parent setup function + parentSetupDeferred.resolve(); + await timeout(10); + + // Navigation is still blocked: parent loader is running + expect(router.url).not.toBe('/user/roles'); + + // 2. Resolve parent loader + parentLoaderDeferred.resolve({id: '123', role: 'admin'}); + await timeout(10); + + // Navigation is still blocked: child loader received role='admin' and is now running + expect(router.url).not.toBe('/user/roles'); + + // 3. Resolve child loader + childLoaderDeferred.resolve(['read', 'write', 'admin']); + await nav; + + expect(router.url).toBe('/user/roles'); + const parentRoute = router.routerState.root.firstChild!; + const childRoute = parentRoute.firstChild!; + + expect(parentRoute.resources!['user'].value()).toEqual({id: '123', role: 'admin'}); + expect(childRoute.resources!['user'].value()).toEqual({id: '123', role: 'admin'}); + expect(childRoute.resources!['roles'].value()).toEqual(['read', 'write', 'admin']); + }); + + it('should reload dependent child resources and mask UI state when parent route parameters change', async () => { + let parentDeferred = promiseWithResolvers<{id: string; role: string}>(); + let childDeferred = promiseWithResolvers(); + + const {harness, router} = await setupRouter([ + { + path: 'user/:id', + resources: (ctx) => ({ + user: resource({ + params: () => ctx.params()['id'], + loader: () => parentDeferred.promise, + }), + }), + children: [ + { + path: 'details', + component: TargetCmp, + resources: (ctx) => ({ + details: resource({ + params: ({chain}) => (chain(ctx.resources()['user']) as any).role, + loader: () => childDeferred.promise, + }), + }), + }, + ], + }, + ]); + + // 1. Initial navigation to /user/1/details + parentDeferred.resolve({id: '1', role: 'viewer'}); + childDeferred.resolve('viewer-details'); + await harness.navigateByUrl('/user/1/details'); + + const childRoute = router.routerState.root.firstChild!.firstChild!; + expect(childRoute.resources!['user'].value()).toEqual({id: '1', role: 'viewer'}); + expect(childRoute.resources!['details'].value()).toBe('viewer-details'); + + // 2. Navigate to /user/2/details (reusing both parent and child routes) + parentDeferred = promiseWithResolvers<{id: string; role: string}>(); + childDeferred = promiseWithResolvers(); + const nav2 = harness.navigateByUrl('/user/2/details'); + await timeout(10); + + // Navigation is blocked and UI resources remain frozen at /user/1/details values + expect(router.url).toBe('/user/1/details'); + expect(childRoute.resources!['user'].value()).toEqual({id: '1', role: 'viewer'}); + expect(childRoute.resources!['details'].value()).toBe('viewer-details'); + + // 3. Resolve parent resource for id='2'; navigation must remain blocked until dependent child resource resolves + parentDeferred.resolve({id: '2', role: 'admin'}); + await timeout(10); + + expect(router.url).toBe('/user/1/details'); + expect(childRoute.resources!['user'].value()).toEqual({id: '1', role: 'viewer'}); + expect(childRoute.resources!['details'].value()).toBe('viewer-details'); + + // 4. Resolve dependent child resource for role='admin' + childDeferred.resolve('admin-details'); + await nav2; + + expect(router.url).toBe('/user/2/details'); + expect(childRoute.resources!['user'].value()).toEqual({id: '2', role: 'admin'}); + expect(childRoute.resources!['details'].value()).toBe('admin-details'); + }); + + it('should not block a child resource created before await in an async child setup from reading an already-resolved parent resource', async () => { + const childSetupDeferred = promiseWithResolvers(); + let childLoaderStartedWithRole: string | undefined; + + const {harness, router} = await setupRouter([ + { + path: 'user', + resources: () => ({ + user: resource({ + loader: async () => ({id: '1', role: 'editor'}), + }), + }), + children: [ + { + path: 'details', + component: TargetCmp, + resources: async (ctx) => { + const details = resource({ + params: ({chain}) => (chain(ctx.resources()['user']) as any).role, + loader: async ({params: role}) => { + childLoaderStartedWithRole = role; + return `details-for-${role}`; + }, + }); + // Child setup remains suspended after creating `details` + await childSetupDeferred.promise; + return {details}; + }, + }, + ], + }, + ]); + + const nav = harness.navigateByUrl('/user/details'); + await timeout(10); + + expect(childLoaderStartedWithRole).toBe('editor'); + expect(router.url).not.toBe('/user/details'); + + childSetupDeferred.resolve(); + await nav; + + expect(router.url).toBe('/user/details'); + const childRoute = router.routerState.root.firstChild!.firstChild!; + expect(childRoute.resources!['details'].value()).toBe('details-for-editor'); + }); + + it('should propagate loading state through an intermediate computed() when grandparent setup is async across a middle route without resources', async () => { + const grandparentSetupDeferred = promiseWithResolvers(); + const grandparentLoaderDeferred = promiseWithResolvers<{orgId: string}>(); + + const {harness, router} = await setupRouter([ + { + path: 'org', + resources: async () => { + const injector = inject(Injector); + await grandparentSetupDeferred.promise; + return runInInjectionContext(injector, () => ({ + org: resource({ + loader: () => grandparentLoaderDeferred.promise, + }), + })); + }, + children: [ + { + // Middle route without its own resources + path: 'team', + children: [ + { + path: 'members', + component: TargetCmp, + resources: (ctx) => { + // Intermediate computed derived from ctx.resources() + const orgResource = computed(() => ctx.resources()['org']); + return { + members: resource({ + params: ({chain}) => (chain(orgResource()) as any).orgId, + loader: async ({params: orgId}) => [`member-of-${orgId}`], + }), + }; + }, + }, + ], + }, + ], + }, + ]); + + const nav = harness.navigateByUrl('/org/team/members'); + await timeout(10); + + expect(router.url).not.toBe('/org/team/members'); + + grandparentSetupDeferred.resolve(); + await timeout(10); + expect(router.url).not.toBe('/org/team/members'); + + grandparentLoaderDeferred.resolve({orgId: 'ng-org'}); + await nav; + + expect(router.url).toBe('/org/team/members'); + const grandchildRoute = router.routerState.root.firstChild!.firstChild!.firstChild!; + expect(grandchildRoute.resources!['org'].value()).toEqual({orgId: 'ng-org'}); + expect(grandchildRoute.resources!['members'].value()).toEqual(['member-of-ng-org']); + }); + }); + + describe('Resource inheritance', () => { + it('should inherit resources from parent routes to child routes', async () => { + const {harness, router} = await setupRouter([ + { + path: 'parent', + resources: () => ({ + parentData: resource({loader: async () => 'parent-value'}), + }), + children: [ + { + path: 'child', + component: TargetCmp, + resources: () => ({ + childData: resource({loader: async () => 'child-value'}), + }), + }, + ], + }, + ]); + + await harness.navigateByUrl('/parent/child'); + + const parentRoute = router.routerState.root.firstChild!; + const childRoute = parentRoute.firstChild!; + + expect(parentRoute.resources!['parentData'].value()).toBe('parent-value'); + expect(parentRoute.resources!['childData']).toBeUndefined(); + + expect(childRoute.resources!['parentData'].value()).toBe('parent-value'); + expect(childRoute.resources!['childData'].value()).toBe('child-value'); + expect(childRoute.snapshot.resources!['parentData'].value()).toBe('parent-value'); + expect(childRoute.snapshot.resources!['childData'].value()).toBe('child-value'); + }); + + it('should inherit resources to child routes without own resources config', async () => { + const {harness, router} = await setupRouter([ + { + path: 'parent', + resources: () => ({ + parentData: resource({loader: async () => 'parent-value'}), + }), + children: [ + { + path: 'child', + component: TargetCmp, + }, + ], + }, + ]); + + await harness.navigateByUrl('/parent/child'); + + const parentRoute = router.routerState.root.firstChild!; + const childRoute = parentRoute.firstChild!; + + expect(childRoute.resources!['parentData'].value()).toBe('parent-value'); + expect(childRoute.snapshot.resources!['parentData'].value()).toBe('parent-value'); + }); + + it('should allow child resources to override inherited parent resources with the same key', async () => { + const {harness, router} = await setupRouter([ + { + path: 'parent', + resources: () => ({ + shared: resource({loader: async () => 'parent-shared'}), + onlyParent: resource({loader: async () => 'parent-only'}), + }), + children: [ + { + path: 'child', + resources: () => ({ + shared: resource({loader: async () => 'child-shared'}), + }), + children: [ + { + path: 'grandchild', + component: TargetCmp, + resources: (ctx) => ({ + summary: resource({ + params: ({chain}) => + `${chain(ctx.resources()['shared'])}:${chain(ctx.resources()['onlyParent'])}`, + loader: async ({params}) => params, + }), + }), + }, + ], + }, + ], + }, + ]); + + await harness.navigateByUrl('/parent/child/grandchild'); + + const parentRoute = router.routerState.root.firstChild!; + const childRoute = parentRoute.firstChild!; + const grandchildRoute = childRoute.firstChild!; + + expect(parentRoute.resources!['shared'].value()).toBe('parent-shared'); + expect(childRoute.resources!['shared'].value()).toBe('child-shared'); + expect(grandchildRoute.resources!['shared'].value()).toBe('child-shared'); + expect(grandchildRoute.resources!['onlyParent'].value()).toBe('parent-only'); + expect(grandchildRoute.resources!['summary'].value()).toBe('child-shared:parent-only'); + }); + + it('should always inherit resources from parent routes regardless of paramsInheritanceStrategy emptyOnly', async () => { + const {harness, router} = await setupRouter( + [ + { + path: 'parent', + component: TargetCmp, + resources: () => ({ + data: resource({loader: async () => 'parent-data'}), + }), + children: [ + { + path: 'non-empty-child', + component: TargetCmp, + }, + { + path: '', + component: TargetCmp, + }, + ], + }, + { + path: 'componentless', + resources: () => ({ + data: resource({loader: async () => 'comp-data'}), + }), + children: [ + { + path: 'sub', + component: TargetCmp, + }, + ], + }, + ], + withRouterConfig({paramsInheritanceStrategy: 'emptyOnly'}), + ); + + // 1. Non-empty path child of a component route STILL inherits resources + await harness.navigateByUrl('/parent/non-empty-child'); + const parentRoute = router.routerState.root.firstChild!; + const nonEmptyChild = parentRoute.firstChild!; + expect(nonEmptyChild.resources!['data'].value()).toBe('parent-data'); + + // 2. Empty path child inherits resources + await harness.navigateByUrl('/parent'); + const emptyChild = parentRoute.firstChild!; + expect(emptyChild.resources!['data'].value()).toBe('parent-data'); + + // 3. Child of componentless route inherits resources + await harness.navigateByUrl('/componentless/sub'); + const compRoute = router.routerState.root.firstChild!; + const subRoute = compRoute.firstChild!; + expect(subRoute.resources!['data'].value()).toBe('comp-data'); + }); + + it('should leave resources undefined on routes that do not configure or inherit resources', async () => { + const {harness, router} = await setupRouter([ + { + path: 'no-resources', + component: TargetCmp, + }, + ]); + + await harness.navigateByUrl('/no-resources'); + + const route = router.routerState.root.firstChild!; + expect(route.resources).toBeUndefined(); + expect(route.snapshot.resources).toBeUndefined(); + }); + + it('should bind inherited blocking and non-blocking resources to component inputs', async () => { + const {harness} = await setupRouter( + [ + { + path: 'parent', + resources: () => ({ + user: resource({loader: async () => ({name: 'Alice'})}), + extra: nonBlocking(resource({loader: async () => 'extra-info'})), + }), + children: [ + { + path: 'child', + component: InputBindingCmp, + }, + ], + }, + ], + withComponentInputBinding(), + ); + + const cmpInstance = await harness.navigateByUrl('/parent/child', InputBindingCmp); + + // Blocking resource binds unwrapped value directly + expect(cmpInstance.user).toEqual({name: 'Alice'}); + // Non-blocking resource binds Resource instance + expect(cmpInstance.extra.value()).toBe('extra-info'); + }); + }); + + describe('Inherited resource edge cases', () => { + it('should fail the navigation when a blocking descendant chains off a non-blocking ancestor resource that errors', async () => { + const {harness, router} = await setupRouter([ + { + path: 'user', + resources: () => ({ + user: nonBlocking( + resource({ + loader: async () => { + throw new Error('user fetch failed'); + }, + }), + ), + }), + children: [ + { + path: 'orders', + component: TargetCmp, + resources: (ctx) => ({ + orders: resource({ + params: ({chain}) => (chain(ctx.resources()['user']) as {id: string}).id, + loader: async () => ['order-1'], + }), + }), + }, + ], + }, + ]); + + await expectAsync(harness.navigateByUrl('/user/orders')).toBeRejected(); + expect(router.url).not.toBe('/user/orders'); + }); + + it('should still block navigation on a blocking descendant chained off a non-blocking ancestor', async () => { + const ancestorLoader = promiseWithResolvers<{role: string}>(); + + const {harness, router} = await setupRouter([ + { + path: 'user', + resources: () => ({ + user: nonBlocking(resource({loader: () => ancestorLoader.promise})), + }), + children: [ + { + path: 'perms', + component: TargetCmp, + resources: (ctx) => ({ + perms: resource({ + params: ({chain}) => (chain(ctx.resources()['user']) as {role: string}).role, + loader: async ({params}) => `perms-for-${params}`, + }), + }), + }, + ], + }, + ]); + + const nav = harness.navigateByUrl('/user/perms'); + await timeout(10); + + expect(router.url).not.toBe('/user/perms'); + + ancestorLoader.resolve({role: 'admin'}); + await nav; + + expect(router.url).toBe('/user/perms'); + const childRoute = router.routerState.root.firstChild!.firstChild!; + expect(childRoute.resources!['perms'].value()).toBe('perms-for-admin'); + }); + + it('should fail the navigation when ctx.resources() is read outside a params function while an ancestor is still resolving', async () => { + const {harness, router} = await setupRouter([ + { + path: 'user', + resources: async () => { + const injector = inject(Injector); + await Promise.resolve(); + return runInInjectionContext(injector, () => ({ + user: resource({loader: async () => ({id: '1'})}), + })); + }, + children: [ + { + path: 'orders', + component: TargetCmp, + resources: (ctx) => { + const user = ctx.resources()['user']; + return { + orders: resource({ + params: () => user.value(), + loader: async () => ['order-1'], + }), + }; + }, + }, + ], + }, + ]); + + await expectAsync(harness.navigateByUrl('/user/orders')).toBeRejected(); + expect(router.url).not.toBe('/user/orders'); + }); + + it('should inherit parent resources into every named outlet sibling', async () => { + const {harness, router} = await setupRouter([ + { + path: 'parent', + resources: () => ({ + shared: resource({loader: async () => 'shared-value'}), + }), + children: [ + {path: 'primary', component: TargetCmp}, + {path: 'aux', outlet: 'side', component: TargetCmp}, + ], + }, + ]); + + await harness.navigateByUrl('/parent/(primary//side:aux)'); + + const parentRoute = router.routerState.root.firstChild!; + expect(parentRoute.children.length).toBe(2); + for (const child of parentRoute.children) { + expect(child.resources!['shared'].value()).toBe('shared-value'); + } + }); + + it('should provide an empty object from ctx.resources() when no ancestor configures resources', async () => { + let observedResources: ResourceResult | undefined; + + const {harness, router} = await setupRouter([ + { + path: 'top', + component: TargetCmp, + resources: (ctx) => ({ + data: resource({ + params: () => { + observedResources = ctx.resources(); + return 'ok'; + }, + loader: async ({params}) => params, + }), + }), + }, + ]); + + await harness.navigateByUrl('/top'); + + expect(observedResources).toEqual({}); + expect(router.routerState.root.firstChild!.resources!['data'].value()).toBe('ok'); + }); + + it('should chain off an already-resolved parent resource when navigating to a newly activated sibling child route', async () => { + let parentLoadCount = 0; + + const {harness, router} = await setupRouter([ + { + path: 'user/:id', + resources: (ctx) => { + const id = computed(() => ctx.params()['id']); + return { + user: resource({ + params: id, + loader: async ({params: id}) => { + parentLoadCount++; + return {id, role: 'maintainer'}; + }, + }), + }; + }, + children: [ + { + path: 'overview', + component: TargetCmp, + }, + { + path: 'orders', + component: TargetCmp, + resources: (ctx) => ({ + orders: resource({ + params: ({chain}) => (chain(ctx.resources()['user']) as {role: string}).role, + loader: async ({params: role}) => [`orders-for-${role}`], + }), + }), + }, + ], + }, + ]); + + await harness.navigateByUrl('/user/1/overview'); + const parentRoute = router.routerState.root.firstChild!; + expect(parentLoadCount).toBe(1); + expect(parentRoute.firstChild!.resources!['user'].value()).toEqual({ + id: '1', + role: 'maintainer', + }); + + await harness.navigateByUrl('/user/1/orders'); + expect(router.routerState.root.firstChild).toBe(parentRoute); + expect(parentLoadCount).toBe(1); + + const ordersRoute = parentRoute.firstChild!; + expect(ordersRoute.resources!['user'].value()).toEqual({id: '1', role: 'maintainer'}); + expect(ordersRoute.resources!['orders'].value()).toEqual(['orders-for-maintainer']); + }); + + it('should maintain stable ActivatedRoute.resources reference across route reuse while updating underlying signals', async () => { + let userDeferred = promiseWithResolvers<{id: string; role: string}>(); + + const {harness, router} = await setupRouter([ + { + path: 'user/:id', + component: TargetCmp, + resources: (ctx) => ({ + user: resource({ + params: () => ctx.params()['id'], + loader: () => userDeferred.promise, + }), + }), + children: [ + { + path: 'details', + component: TargetCmp, + resources: (ctx) => ({ + details: resource({ + params: ({chain}) => (chain(ctx.resources()['user']) as any).role, + loader: async ({params: role}) => `${role}-details`, + }), + }), + }, + ], + }, + ]); + + // 1. Initial navigation to /user/1/details + userDeferred.resolve({id: '1', role: 'admin'}); + await harness.navigateByUrl('/user/1/details'); + + const parentRoute = router.routerState.root.firstChild!; + const childRoute = parentRoute.firstChild!; + + const initialParentResources = parentRoute.resources; + const initialChildResources = childRoute.resources; + const initialUserResource = childRoute.resources!['user']; + const initialDetailsResource = childRoute.resources!['details']; + + expect(initialUserResource.value()).toEqual({id: '1', role: 'admin'}); + expect(initialDetailsResource.value()).toBe('admin-details'); + + // 2. Re-navigate to /user/2/details (reusing both parent and child routes) + userDeferred = promiseWithResolvers<{id: string; role: string}>(); + const nav = harness.navigateByUrl('/user/2/details'); + userDeferred.resolve({id: '2', role: 'viewer'}); + await nav; + + expect(router.url).toBe('/user/2/details'); + + // Verify that ActivatedRoute.resources dictionary reference is strictly preserved + expect(parentRoute.resources).toBe(initialParentResources); + expect(childRoute.resources).toBe(initialChildResources); + + // Verify that the Resource instances inside the dictionary are identical references + expect(childRoute.resources!['user']).toBe(initialUserResource); + expect(childRoute.resources!['details']).toBe(initialDetailsResource); + + // Verify that the underlying resource signals updated reactively in-place + expect(childRoute.resources!['user'].value()).toEqual({id: '2', role: 'viewer'}); + expect(childRoute.resources!['details'].value()).toBe('viewer-details'); + + // Verify that any component or consumer that captured the dictionary initially sees the updates + expect(initialChildResources!['user'].value()).toEqual({id: '2', role: 'viewer'}); + expect(initialChildResources!['details'].value()).toBe('viewer-details'); + }); + + it('should maintain reactivity in reused components that capture ActivatedRoute.resources at initialization', async () => { + let fetchCount = 0; + + @Component({ + template: ` + {{ resources?.['user']?.value() }} + {{ userResource?.value() }} + {{ userName() }} + `, + }) + class ReusedProfileCmp { + readonly route = inject(ActivatedRoute); + + // Component captures dictionary reference at construction time + readonly resources = this.route.resources; + + // Component captures specific Resource instance reference at construction time + readonly userResource = this.route.resources?.['user']; + + // Component defines a computed reading through this.route.resources. + // Because ActivatedRoute.resources is a plain property (not a Signal), accessing + // route.resources does not register a reactive dependency; the computed only tracks + // the underlying Resource's signals. If the dictionary or Resource reference were swapped, + // the computed would not update. + readonly userName = computed(() => this.route.resources?.['user']?.value()); + } + + const {harness} = await setupRouter([ + { + path: 'user/:id', + component: ReusedProfileCmp, + resources: (ctx) => ({ + user: resource({ + params: () => ctx.params()['id'], + loader: async ({params: id}) => { + fetchCount++; + return `User #${id}`; + }, + }), + }), + }, + ]); + + // 1. Initial navigation to /user/1 + const cmp1 = await harness.navigateByUrl('/user/1', ReusedProfileCmp); + await harness.fixture.whenStable(); + + expect(fetchCount).toBe(1); + expect(cmp1.userResource?.value()).toBe('User #1'); + expect(cmp1.resources?.['user']?.value()).toBe('User #1'); + expect(cmp1.userName()).toBe('User #1'); + + const el = harness.fixture.nativeElement; + expect(el.querySelector('#captured-dict').textContent).toBe('User #1'); + expect(el.querySelector('#captured-res').textContent).toBe('User #1'); + expect(el.querySelector('#computed-val').textContent).toBe('User #1'); + + // 2. Navigate to /user/2 (reusing the route and the component instance) + const cmp2 = await harness.navigateByUrl('/user/2', ReusedProfileCmp); + expect(cmp2).toBe(cmp1); + await harness.fixture.whenStable(); + + expect(fetchCount).toBe(2); + + // Verify that the component's captured dictionary reference is strictly identical + // to the active route's resources property (no re-assignment or orphaned reference) + expect(cmp1.resources).toBe(cmp1.route.resources); + expect(cmp1.userResource).toBe(cmp1.route.resources?.['user']); + + // Verify that the captured references and computed successfully reflected the update + expect(cmp1.userResource?.value()).toBe('User #2'); + expect(cmp1.resources?.['user']?.value()).toBe('User #2'); + expect(cmp1.userName()).toBe('User #2'); + + // Verify the rendered DOM output updated via change detection + expect(el.querySelector('#captured-dict').textContent).toBe('User #2'); + expect(el.querySelector('#captured-res').textContent).toBe('User #2'); + expect(el.querySelector('#computed-val').textContent).toBe('User #2'); + }); + }); + + describe('Resource reloading', () => { + it('should expose reload() on ActivatedRoute.resources without requiring a cast', async () => { + let fetchCount = 0; + @Component({ + template: '

    {{ userResource?.value() }}

    ', + }) + class UserProfileCmp { + userResource = inject(ActivatedRoute).resources?.['user']; + + refreshUser(): boolean | undefined { + return this.userResource?.reload(); + } + } + + const {harness} = await setupRouter([ + { + path: 'user', + component: UserProfileCmp, + resources: () => ({ + user: resource({ + loader: async () => `User #${++fetchCount}`, + }), + }), + }, + ]); + + const instance = await harness.navigateByUrl('/user', UserProfileCmp); + + expect(fetchCount).toBe(1); + expect(instance.userResource?.value()).toBe('User #1'); + + const reloaded = instance.refreshUser(); + expect(reloaded).toBe(true); + await timeout(); + + expect(fetchCount).toBe(2); + expect(instance.userResource?.value()).toBe('User #2'); + }); + + it('should return false from reload() when the underlying resource does not support reload', async () => { + const customResource: Resource = { + value: signal('static').asReadonly(), + status: signal('resolved').asReadonly(), + isLoading: signal(false).asReadonly(), + hasValue(): this is Resource { + return true; + }, + error: signal(undefined).asReadonly(), + snapshot: signal>({ + status: 'resolved', + value: 'static', + }), + }; + + const {harness, router} = await setupRouter([ + { + path: 'custom', + component: TargetCmp, + resources: () => + ({ + custom: customResource, + }) as unknown as ResourceResult, + }, + ]); + + await harness.navigateByUrl('/custom'); + + const route = router.routerState.root.firstChild!; + expect(route.resources?.['custom']?.reload()).toBe(false); + expect(route.resources?.['custom']?.value()).toBe('static'); + }); + }); + + describe('Parallel loadComponent and resources', () => { + it('should start resources in parallel with loadComponent without waiting for component to load', async () => { + const componentDeferred = Promise.withResolvers(); + const resourceDeferred = Promise.withResolvers(); + const events: string[] = []; + + @Component({template: 'lazy loaded'}) + class LazyTargetCmp {} + + const {harness, router} = await setupRouter([ + { + path: 'lazy', + loadComponent: () => { + events.push('loadComponent:start'); + return componentDeferred.promise.then((cmp) => { + events.push('loadComponent:end'); + return cmp; + }); + }, + resources: () => ({ + data: resource({ + loader: () => { + events.push('resources:start'); + return resourceDeferred.promise.then((val) => { + events.push('resources:end'); + return val; + }); + }, + }), + }), + }, + ]); + + const navPromise = harness.navigateByUrl('/lazy'); + await timeout(); + harness.fixture.detectChanges(); + + // Both loadComponent and resources should have started before either finishes + expect(events).toEqual(['loadComponent:start', 'resources:start']); + expect(router.url).not.toBe('/lazy'); + + // Resolve resource first — navigation should still wait for loadComponent + resourceDeferred.resolve('resource data'); + await timeout(); + expect(events).toContain('resources:end'); + expect(router.url).not.toBe('/lazy'); + + // Now resolve loadComponent — navigation should complete + componentDeferred.resolve(LazyTargetCmp); + await navPromise; + + expect(router.url).toBe('/lazy'); + expect(harness.routeNativeElement?.textContent).toBe('lazy loaded'); + const route = router.routerState.root.firstChild!; + expect(route.component).toBe(LazyTargetCmp); + expect(route.resources?.['data'].value()).toBe('resource data'); + }); + + it('should wait for blocking resources when loadComponent finishes first', async () => { + const componentDeferred = Promise.withResolvers(); + const resourceDeferred = Promise.withResolvers(); + + @Component({template: 'lazy loaded'}) + class LazyTargetCmp {} + + const {harness, router} = await setupRouter([ + { + path: 'lazy', + loadComponent: () => componentDeferred.promise, + resources: () => ({ + data: resource({ + loader: () => resourceDeferred.promise, + }), + }), + }, + ]); + + const navPromise = harness.navigateByUrl('/lazy'); + await timeout(); + + // Resolve loadComponent first — navigation should still wait for blocking resource + componentDeferred.resolve(LazyTargetCmp); + await timeout(); + expect(router.url).not.toBe('/lazy'); + + // Now resolve resource — navigation should complete + resourceDeferred.resolve('resource data'); + await navPromise; + + expect(router.url).toBe('/lazy'); + expect(harness.routeNativeElement?.textContent).toBe('lazy loaded'); + expect(router.routerState.root.firstChild?.resources?.['data'].value()).toBe( + 'resource data', + ); + }); + + it('should bind blocking resource inputs when loadComponent and resources run in parallel', async () => { + const componentDeferred = Promise.withResolvers(); + const resourceDeferred = Promise.withResolvers(); + + const {harness} = await setupRouter( + [ + { + path: 'lazy-input', + loadComponent: () => componentDeferred.promise, + resources: () => ({ + user: resource({ + loader: () => resourceDeferred.promise, + }), + }), + }, + ], + withComponentInputBinding(), + ); + + const navPromise = harness.navigateByUrl('/lazy-input'); + await timeout(); + + resourceDeferred.resolve('Alice'); + componentDeferred.resolve(InputBindingCmp); + const instance = await navPromise; + + expect((instance as InputBindingCmp).user).toBe('Alice'); + }); + + it('should clean up resource injector if loadComponent rejects while resources are pending', async () => { + const componentDeferred = Promise.withResolvers(); + const resourceDeferred = Promise.withResolvers(); + let injectorDestroyed = false; + + const {harness} = await setupRouter( + [ + { + path: 'lazy-fail', + loadComponent: () => componentDeferred.promise, + resources: () => { + inject(DestroyRef).onDestroy(() => { + injectorDestroyed = true; + }); + return { + data: resource({ + loader: () => resourceDeferred.promise, + }), + }; + }, + }, + ], + withNavigationErrorHandler(() => {}), + ); + + const navPromise = harness.navigateByUrl('/lazy-fail'); + await timeout(); + + expect(injectorDestroyed).toBe(false); + + componentDeferred.reject(new Error('Chunk load failed')); + await expectAsync(navPromise).toBeRejectedWithError('Chunk load failed'); + + expect(injectorDestroyed).toBe(true); + }); }); }); }); diff --git a/packages/router/test/router_state.spec.ts b/packages/router/test/router_state.spec.ts index 6954ada79250..844d3b203aff 100644 --- a/packages/router/test/router_state.spec.ts +++ b/packages/router/test/router_state.spec.ts @@ -15,6 +15,7 @@ import { equalParamsAndUrlSegments, RouterState, RouterStateSnapshot, + setRouterState, } from '../src/router_state'; import {Params, RouteTitleKey} from '../src/shared'; import {UrlSegment} from '../src/url_tree'; @@ -79,6 +80,7 @@ describe('RouterState & Snapshot', () => { const root = new TreeNode(a, [new TreeNode(b, []), new TreeNode(c, [])]); state = new (RouterState as any)(root, null); + setRouterState(state, root as any); }); it('should return first child', () => { diff --git a/packages/router/test/standalone.spec.ts b/packages/router/test/standalone.spec.ts index dd9e3a2f8377..6f8190a21797 100644 --- a/packages/router/test/standalone.spec.ts +++ b/packages/router/test/standalone.spec.ts @@ -114,7 +114,6 @@ describe('standalone in Router API', () => { @Component({ template: `{{ service.value }}`, - standalone: false, }) class MyComponent { constructor(readonly service: Service) {} @@ -124,7 +123,6 @@ describe('standalone in Router API', () => { imports: [ RouterModule.forRoot([{path: 'home', providers: [Service], component: MyComponent}]), ], - declarations: [MyComponent], }); const root = TestBed.createComponent(RootCmp); @@ -146,7 +144,6 @@ describe('standalone in Router API', () => { @Component({ template: `{{ service.value }}`, - standalone: false, }) class MyComponent { constructor(readonly service: Service) {} @@ -158,7 +155,6 @@ describe('standalone in Router API', () => { {path: 'home', loadChildren: () => LazyModule, component: MyComponent}, ]), ], - declarations: [MyComponent], }); const fixture = TestBed.createComponent(RootCmp); @@ -175,14 +171,12 @@ describe('standalone in Router API', () => { @Component({ template: `{{ service.value }}`, - standalone: false, }) class MyComponent { constructor(readonly service: Service) {} } @NgModule({ providers: [Service], - declarations: [MyComponent], imports: [RouterModule.forChild([{path: '', component: MyComponent}])], }) class LazyModule {} @@ -225,14 +219,13 @@ describe('standalone in Router API', () => { @Component({ template: `parent`, - standalone: false, + imports: [RouterModule], }) class ParentCmp { constructor(readonly service: ServiceBase) {} } @Component({ template: `child`, - standalone: false, }) class ChildCmp { constructor(readonly service: ServiceBase) {} @@ -240,14 +233,12 @@ describe('standalone in Router API', () => { @Component({ template: `child2`, - standalone: false, }) class ChildCmp2 { constructor(readonly service: ServiceBase) {} } @NgModule({ providers: [{provide: ServiceBase, useClass: Service2}], - declarations: [ChildCmp, ChildCmp2], imports: [ RouterModule.forChild([ { @@ -281,7 +272,6 @@ describe('standalone in Router API', () => { }, ]), ], - declarations: [ParentCmp], }); const root = TestBed.createComponent(RootCmp); @@ -548,5 +538,5 @@ describe('standalone in Router API', () => { async function advanceAsync(fixture: ComponentFixture) { await timeout(); - fixture.detectChanges(); + await fixture.whenStable(); } diff --git a/packages/router/test/trailing_slash_integration.spec.ts b/packages/router/test/trailing_slash_integration.spec.ts index dd2e3fb76c42..f8c2af5bdbb2 100644 --- a/packages/router/test/trailing_slash_integration.spec.ts +++ b/packages/router/test/trailing_slash_integration.spec.ts @@ -19,13 +19,11 @@ import {RouterTestingHarness} from '@angular/router/testing'; @Component({ template: 'home', - standalone: true, }) class HomeCmp {} @Component({ template: 'child', - standalone: true, }) class ChildCmp {} @@ -87,7 +85,6 @@ describe('Trailing Slash Integration', () => { @Component({ template: 'link', imports: [RouterLink], - standalone: true, }) class LinkCmp {} diff --git a/packages/router/test/url_serializer.spec.ts b/packages/router/test/url_serializer.spec.ts index 70329510ab0b..e255fa13231c 100644 --- a/packages/router/test/url_serializer.spec.ts +++ b/packages/router/test/url_serializer.spec.ts @@ -13,11 +13,13 @@ import { encodeUriQuery, encodeUriSegment, serializePath, + UrlSegment, UrlSegmentGroup, } from '../src/url_tree'; describe('url serializer', () => { const url = new DefaultUrlSerializer(); + const protocolRelativeUrlWarning = `NG04019: Cannot serialize a UrlTree that would produce a protocol-relative URL. Falling back to '/' instead.`; it('should parse the root url', () => { const tree = url.parse('/'); @@ -447,6 +449,71 @@ describe('url serializer', () => { }); }); + describe('leading empty path segments', () => { + it('should fall back for a parsed primary outlet that would serialize as protocol-relative', () => { + const warn = spyOn(console, 'warn'); + const tree = url.parse('/(primary://attacker.example/collect)?token=RESET_TOKEN'); + + expect(url.serialize(tree)).toBe('/?token=RESET_TOKEN'); + expect(warn).toHaveBeenCalledOnceWith(protocolRelativeUrlWarning); + }); + + it('should fall back for multiple leading empty primary segments', () => { + const warn = spyOn(console, 'warn'); + const tree = url.parse('/attacker.example/collect'); + tree.root.children[PRIMARY_OUTLET].segments.unshift( + new UrlSegment('', {}), + new UrlSegment('', {}), + ); + + expect(url.serialize(tree)).toBe('/'); + expect(warn).toHaveBeenCalledOnceWith(protocolRelativeUrlWarning); + }); + + it('should fall back for unsafe trees with secondary outlets, query params, and fragments', () => { + const warn = spyOn(console, 'warn'); + const tree = url.parse( + '/attacker.example/collect(popup:compose)?token=RESET_TOKEN#OAUTH_TOKEN', + ); + tree.root.children[PRIMARY_OUTLET].segments.unshift(new UrlSegment('', {})); + + expect(url.serialize(tree)).toBe('/?token=RESET_TOKEN#OAUTH_TOKEN'); + expect(warn).toHaveBeenCalledOnceWith(protocolRelativeUrlWarning); + }); + + it('should fall back for a parsed path with dot and leading empty segment that would normalize to protocol-relative', () => { + const warn = spyOn(console, 'warn'); + const tree = url.parse('/.;/(//evil.test)'); + + expect(url.serialize(tree)).toBe('/'); + expect(warn).toHaveBeenCalledOnceWith(protocolRelativeUrlWarning); + }); + + it('should fall back for dot segments collapsing to protocol-relative path', () => { + const warn = spyOn(console, 'warn'); + const tree = url.parse('/attacker.example/collect'); + tree.root.children[PRIMARY_OUTLET].segments.unshift( + new UrlSegment('.', {}), + new UrlSegment('', {}), + ); + + expect(url.serialize(tree)).toBe('/'); + expect(warn).toHaveBeenCalledOnceWith(protocolRelativeUrlWarning); + }); + + it('should fall back for double dot segments collapsing to protocol-relative path', () => { + const warn = spyOn(console, 'warn'); + const tree = url.parse('/attacker.example/collect'); + tree.root.children[PRIMARY_OUTLET].segments.unshift( + new UrlSegment('..', {}), + new UrlSegment('', {}), + ); + + expect(url.serialize(tree)).toBe('/'); + expect(warn).toHaveBeenCalledOnceWith(protocolRelativeUrlWarning); + }); + }); + describe('error handling', () => { it('should throw when invalid characters inside children', () => { expect(() => url.parse('/one/(left#one)')).toThrowError(); @@ -472,6 +539,94 @@ describe('url serializer', () => { expect(() => url.parse(`/${urlStr}`)).not.toThrow(); }); }); + + describe('numeric parameter and outlet names', () => { + it('should round-trip numeric names without adding the internal sentinel', () => { + const tree = url.parse('/one;7=a;32=b;032=c;1e3=d(32:two)'); + + expect(tree.root.children[PRIMARY_OUTLET].segments[0].parameters).toEqual({ + '7': 'a', + '32': 'b', + '032': 'c', + '1e3': 'd', + }); + expectSegment(tree.root.children['32'], 'two'); + expect(url.serialize(tree)).toEqual('/one;7=a;32=b;032=c;1e3=d(32:two)'); + }); + + it('should preserve names that match the internal sentinel', () => { + // 1073741824 is the helper's sentinel. + const tree = url.parse('/one;1073741824=keep;32=other(1073741824:two//32:three)'); + + expect(tree.root.children[PRIMARY_OUTLET].segments[0].parameters).toEqual({ + '1073741824': 'keep', + '32': 'other', + }); + expectSegment(tree.root.children['1073741824'], 'two'); + expectSegment(tree.root.children['32'], 'three'); + expect(url.serialize(tree)).toEqual( + '/one;32=other;1073741824=keep(32:three//1073741824:two)', + ); + }); + }); + + describe('colon in non-root primary segment with sibling named outlet', () => { + it('should preserve encoded colon on round-trip when a primary child segment has a sibling named outlet', () => { + // 1. Parse URL with percent-encoded colon (%3A) in the primary segment of a parenthesized group + const initialTree = url.parse('/x/(admin%3Ay//aux:z)'); + const parentGroup = initialTree.root.children[PRIMARY_OUTLET]; + + expect(parentGroup.segments.map((s) => s.path)).toEqual(['x']); + expect(parentGroup.children[PRIMARY_OUTLET]).toBeDefined(); + expect(parentGroup.children[PRIMARY_OUTLET].segments.map((s) => s.path)).toEqual(['admin:y']); + expect(parentGroup.children['admin']).toBeUndefined(); + expect(parentGroup.children['aux'].segments.map((s) => s.path)).toEqual(['z']); + + // 2. Serialize back to a URL string: the first segment of the unprefixed primary child + // inside parentheses keeps its colon percent-encoded so it is not confused with an outlet prefix + const serialized = url.serialize(initialTree); + expect(serialized).toBe('/x/(admin%3Ay//aux:z)'); + + // 3. Re-parse the serialized URL + const reparsedTree = url.parse(serialized); + const reparsedParentGroup = reparsedTree.root.children[PRIMARY_OUTLET]; + + expect(reparsedParentGroup.children[PRIMARY_OUTLET]).toBeDefined(); + expect(reparsedParentGroup.children[PRIMARY_OUTLET].segments.map((s) => s.path)).toEqual([ + 'admin:y', + ]); + expect(reparsedParentGroup.children['admin']).toBeUndefined(); + expect(reparsedParentGroup.children['aux'].segments.map((s) => s.path)).toEqual(['z']); + }); + + it('should not encode colons in unambiguous path segments, matrix params, or named outlets', () => { + const simpleTree = url.parse('/users/id:123/time:12:30'); + expect(url.serialize(simpleTree)).toBe('/users/id:123/time:12:30'); + + const matrixTree = url.parse('/search;filter:key=type:book'); + expect(url.serialize(matrixTree)).toBe('/search;filter:key=type:book'); + expect(matrixTree.root.children[PRIMARY_OUTLET].segments[0].parameters).toEqual({ + 'filter:key': 'type:book', + }); + + const rootWithAuxTree = url.parse('/admin:y(aux:z:1)'); + expect(url.serialize(rootWithAuxTree)).toBe('/admin:y(aux:z:1)'); + expect(rootWithAuxTree.root.children[PRIMARY_OUTLET].segments.map((s) => s.path)).toEqual([ + 'admin:y', + ]); + expect(rootWithAuxTree.root.children['aux'].segments.map((s) => s.path)).toEqual(['z:1']); + + const scopedTree = url.parse('/x:0/(first/admin:y;k=v:2//aux:z:3)'); + expect(url.serialize(scopedTree)).toBe('/x:0/(first/admin:y;k=v:2//aux:z:3)'); + const scopedParent = scopedTree.root.children[PRIMARY_OUTLET]; + expect(scopedParent.children[PRIMARY_OUTLET].segments.map((s) => s.path)).toEqual([ + 'first', + 'admin:y', + ]); + expect(scopedParent.children[PRIMARY_OUTLET].segments[1].parameters).toEqual({k: 'v:2'}); + expect(scopedParent.children['aux'].segments.map((s) => s.path)).toEqual(['z:3']); + }); + }); }); function expectSegment( diff --git a/packages/router/test/view_transitions.spec.ts b/packages/router/test/view_transitions.spec.ts index 61203788230b..11c9e59b007f 100644 --- a/packages/router/test/view_transitions.spec.ts +++ b/packages/router/test/view_transitions.spec.ts @@ -9,7 +9,7 @@ import {DOCUMENT} from '@angular/common'; import {Component, destroyPlatform} from '@angular/core'; import {bootstrapApplication} from '@angular/platform-browser'; -import {withBody, isNode} from '@angular/private/testing'; +import {isNode, withBody} from '@angular/private/testing'; import { Event, NavigationEnd, @@ -59,7 +59,6 @@ describe('view transitions', () => { it('should have the correct event order when using view transitions', async () => { @Component({ - selector: 'component-b', template: `b`, }) class ComponentB {} diff --git a/packages/router/test/with_platform_navigation.spec.ts b/packages/router/test/with_platform_navigation.spec.ts index 087e34837865..57ff6ee72795 100644 --- a/packages/router/test/with_platform_navigation.spec.ts +++ b/packages/router/test/with_platform_navigation.spec.ts @@ -12,6 +12,7 @@ import { provideRouter, Event, Router, + RouterOutlet, UrlSerializer, DefaultUrlSerializer, UrlTree, @@ -32,7 +33,7 @@ import { provideLocationMocks, MOCK_PLATFORM_LOCATION_CONFIG, } from '@angular/common/testing'; -import {inject} from '@angular/core'; +import {Component, DestroyRef, inject, Provider} from '@angular/core'; /// @@ -154,7 +155,9 @@ describe('withPlatformNavigation feature', () => { {once: true}, ); - navigation.navigate('/blocked'); + const navRes = navigation.navigate('/blocked'); + navRes.committed.catch(() => {}); + navRes.finished.catch(() => {}); await timeout(); expect(navigation.transition).not.toBeNull(); expect(router.currentNavigation()).not.toBeNull(); @@ -198,6 +201,40 @@ describe('withPlatformNavigation feature', () => { await navPromise; expect(navigateEvents.length).toBe(1); }); + + it('handles redirects during traversal navigations by committing and replacing', async () => { + router.resetConfig([ + {path: 'first', children: []}, + {path: 'second', children: []}, + {path: 'redirected', children: []}, + {path: '**', children: []}, + ]); + + await router.navigateByUrl('/first'); + await timeout(); + await router.navigateByUrl('/second'); + await timeout(); + + expect(navigation.entries().length).toBe(3); + expect(navigation.currentEntry!.url).toContain('/second'); + + router.resetConfig([ + {path: 'first', canActivate: [() => inject(Router).parseUrl('/redirected')], children: []}, + {path: 'second', children: []}, + {path: 'redirected', children: []}, + {path: '**', children: []}, + ]); + + const backRes = navigation.back(); + backRes.committed.catch(() => {}); + backRes.finished.catch(() => {}); + await timeout(); + await navigation.transition?.finished; + + expect(router.url).toBe('/redirected'); + expect(navigation.currentEntry!.url).toContain('/redirected'); + expect(navigation.currentEntry!.index).toBe(1); + }); }); describe('eager url update', () => { @@ -448,5 +485,162 @@ if (typeof window !== 'undefined' && 'navigation' in window && !isFirefox()) { await timeout(3); expect(routerEvents).toEqual([]); }); + + /** + * Cancels the next `navigate` event so the browser doesn't download the file. + * The listener is added after the router's own listener, so the router has already handled + * the event when it runs. + */ + function preventNextNavigation() { + TestBed.inject(PlatformNavigation).addEventListener( + 'navigate', + (e: NavigateEvent) => e.preventDefault(), + {once: true}, + ); + } + + it( + 'should not convert downloads to SPA navigations', + withBody('download', async () => { + preventNextNavigation(); + const routerEvents: Event[] = []; + router.events.subscribe((e) => routerEvents.push(e)); + document.querySelector('a')!.click(); + await timeout(); + expect(routerEvents).toEqual([]); + }), + ); + + /** + * Cancels the navigations that nothing intercepted and that would load a new document, so the + * test page stays where it is. Returns the URLs of those navigations. + */ + function preventCrossDocumentNavigations(): string[] { + const urls: string[] = []; + const intercept = spyOn(NavigateEvent.prototype, 'intercept').and.callThrough(); + const controller = new AbortController(); + TestBed.inject(PlatformNavigation).addEventListener( + 'navigate', + (e: NavigateEvent) => { + const intercepted = intercept.calls.all().some((call) => call.object === e); + if (!intercepted && !e.destination.sameDocument) { + urls.push(e.destination.url); + e.preventDefault(); + } + }, + {signal: controller.signal}, + ); + TestBed.inject(DestroyRef).onDestroy(() => controller.abort()); + return urls; + } + + it('should restore the URL without reloading the page when activation fails', async () => { + @Component({template: '', imports: [RouterOutlet]}) + class RootCmp {} + + @Component({template: ''}) + class ThrowingCmp { + constructor() { + throw new Error('error during activation'); + } + } + + router.resetConfig([ + {path: 'throwing', component: ThrowingCmp}, + {path: '**', children: []}, + ]); + const fixture = TestBed.createComponent(RootCmp); + await fixture.whenStable(); + const urlBefore = window.location.href; + const crossDocumentNavigations = preventCrossDocumentNavigations(); + + // The URL is committed right before activation, so the router has to restore it. + await expectAsync(router.navigateByUrl('/throwing')).toBeRejected(); + await timeout(); + + expect(crossDocumentNavigations).toEqual([]); + expect(window.location.href).toBe(urlBefore); + }); + }); + + describe('focusReset with real platform navigation', () => { + const navigation = window.navigation as Navigation; + + async function setup(providers: Provider[] = []) { + TestBed.configureTestingModule({ + providers: [ + provideRouter( + [ + { + path: 'guarded', + canActivate: [() => inject(Router).parseUrl('/search?q=redirected')], + children: [], + }, + {path: '**', children: []}, + ], + withExperimentalPlatformNavigation(), + ), + {provide: PlatformLocation, useClass: BrowserPlatformLocation}, + {provide: PlatformNavigation, useFactory: () => navigation}, + ...providers, + ], + }); + const router = TestBed.inject(Router); + router.initialNavigation(); + await timeout(); + return router; + } + + it( + 'resets focus by default', + withBody('', async () => { + const router = await setup(); + const input = document.querySelector('input')!; + input.focus(); + expect(document.activeElement).toBe(input); + + // Each test uses its own URL: these tests share the page URL, and navigating to the + // current URL again would be skipped by the router. + await router.navigate(['/search'], {queryParams: {q: 'default'}}); + // The browser resets focus when it finishes the navigate event, after the next render. + await navigation.transition?.finished; + + expect(router.url).toBe('/search?q=default'); + expect(document.activeElement).toBe(document.body); + }), + ); + + it( + "keeps focus with focusReset: 'manual'", + withBody('', async () => { + const router = await setup(); + const input = document.querySelector('input')!; + input.focus(); + expect(document.activeElement).toBe(input); + + await router.navigate(['/search'], {queryParams: {q: 'manual'}, focusReset: 'manual'}); + await navigation.transition?.finished; + + expect(router.url).toBe('/search?q=manual'); + expect(document.activeElement).toBe(input); + }), + ); + + it( + "keeps focusReset: 'manual' when a guard redirects", + withBody('', async () => { + // Without precommitHandler, the browser navigation is created for the redirect. + const router = await setup([{provide: PRECOMMIT_HANDLER_SUPPORTED, useValue: false}]); + const input = document.querySelector('input')!; + input.focus(); + expect(document.activeElement).toBe(input); + + await router.navigateByUrl('/guarded', {focusReset: 'manual'}); + await navigation.transition?.finished; + + expect(router.url).toBe('/search?q=redirected'); + expect(document.activeElement).toBe(input); + }), + ); }); } diff --git a/packages/router/testing/BUILD.bazel b/packages/router/testing/BUILD.bazel index 30b4b599366a..9db019b13824 100644 --- a/packages/router/testing/BUILD.bazel +++ b/packages/router/testing/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "generate_api_docs", "ng_project") +load("//tools:defaults.bzl", "ng_project") package(default_visibility = ["//visibility:public"]) @@ -24,13 +24,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "router_testing_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_name = "@angular/router/testing", -) diff --git a/packages/router/testing/src/router_testing_harness.ts b/packages/router/testing/src/router_testing_harness.ts index 7f578f6ba7ab..567b1833fbda 100644 --- a/packages/router/testing/src/router_testing_harness.ts +++ b/packages/router/testing/src/router_testing_harness.ts @@ -17,7 +17,12 @@ import { signal, } from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; -import {Router, RouterOutlet, ɵafterNextNavigation as afterNextNavigation} from '../../index'; +import { + NavigationExtras, + Router, + RouterOutlet, + ɵafterNextNavigation as afterNextNavigation, +} from '../../index'; @Service() export class RootFixtureService { @@ -144,18 +149,94 @@ export class RouterTestingHarness { */ async navigateByUrl(url: string, requiredRoutedComponentType: Type): Promise; async navigateByUrl(url: string, requiredRoutedComponentType?: Type): Promise { + return this.runNavigation((router) => router.navigateByUrl(url), requiredRoutedComponentType); + } + + /** + * Triggers a `Router` navigation using commands and waits for it to complete. + * + * @param commands The commands passed to `Router.navigate`. + * @param extras Navigation extras, such as `queryParams` and `fragment`. + * @returns The activated component instance of the `RouterOutlet` after navigation completes + * (`null` if the outlet does not get activated). + */ + async navigate(commands: readonly any[], extras?: NavigationExtras): Promise; + /** + * Triggers a `Router` navigation using commands and waits for it to complete. + * + * @param commands The commands passed to `Router.navigate`. + * @param requiredRoutedComponentType After navigation completes, the required type for the + * activated component of the `RouterOutlet`. If the outlet is not activated or a different + * component is activated, this function will throw an error. + * @returns The activated component instance of the `RouterOutlet` after navigation completes. + */ + async navigate(commands: readonly any[], requiredRoutedComponentType: Type): Promise; + /** + * Triggers a `Router` navigation using commands and waits for it to complete. + * + * @param commands The commands passed to `Router.navigate`. + * @param extras Navigation extras, such as `queryParams` and `fragment`. + * @param requiredRoutedComponentType After navigation completes, the required type for the + * activated component of the `RouterOutlet`. If the outlet is not activated or a different + * component is activated, this function will throw an error. + * @returns The activated component instance of the `RouterOutlet` after navigation completes. + */ + async navigate( + commands: readonly any[], + extras: NavigationExtras, + requiredRoutedComponentType: Type, + ): Promise; + async navigate( + commands: readonly any[], + extrasOrComponent?: NavigationExtras | Type, + requiredRoutedComponentType?: Type, + ): Promise { + let extras: NavigationExtras | undefined; + let componentType: Type | undefined; + if (typeof extrasOrComponent === 'function') { + if (requiredRoutedComponentType !== undefined) { + throw new Error('Navigation extras must be provided before the required component type.'); + } + componentType = extrasOrComponent; + } else { + extras = extrasOrComponent; + componentType = requiredRoutedComponentType; + } + return this.runNavigation((router) => router.navigate(commands, extras), componentType); + } + + /** + * Shared implementation of `navigateByUrl` and `navigate`. + * + * Starts a navigation, waits for it (including any redirects) to complete, runs change + * detection, and returns the component currently rendered in the root `RouterOutlet`. + * + * If a guard cancels the navigation, the outlet keeps its current component, so that component is + * returned (or checked against `requiredRoutedComponentType`) rather than `null`. This lets tests + * verify that the user stayed on the current page. `navigate` and `navigateByUrl` behave the same. + * + * @param startNavigation Callback that triggers the navigation on the given `Router` (e.g., `router.navigateByUrl('/path')` or `router.navigate(['/path'])`). + * @param requiredRoutedComponentType If provided, the activated component must be an instance + * of this type, otherwise an error is thrown. + * @returns The component instance rendered in the outlet, or `null` if the outlet has nothing + * rendered. + */ + private async runNavigation( + startNavigation: (router: Router) => Promise, + requiredRoutedComponentType?: Type, + ): Promise { const router = TestBed.inject(Router); let resolveFn!: () => void; const redirectTrackingPromise = new Promise((resolve) => { resolveFn = resolve; }); - afterNextNavigation(TestBed.inject(Router), resolveFn); - await router.navigateByUrl(url); + afterNextNavigation(router, resolveFn); + await startNavigation(router); await redirectTrackingPromise; this.fixture.detectChanges(); const outlet = (this.fixture.componentInstance as RootCmp).outlet; - // The outlet might not be activated if the user is testing a navigation for a guard that - // rejects + // The outlet is only empty if nothing was ever rendered (e.g. a failed initial navigation). + // When a guard cancels a later navigation, the previously rendered component stays in place. if (outlet && outlet.isActivated && outlet.activatedRoute.component) { const activatedComponent = outlet.component; if ( diff --git a/packages/router/testing/test/router_testing_harness.spec.ts b/packages/router/testing/test/router_testing_harness.spec.ts index 05a2f3b3cc72..d080e6ef6af3 100644 --- a/packages/router/testing/test/router_testing_harness.spec.ts +++ b/packages/router/testing/test/router_testing_harness.spec.ts @@ -36,6 +36,64 @@ describe('navigateForTest', () => { expect(harness.routeNativeElement?.innerHTML).toContain('hello world'); }); + it('navigates with commands only', async () => { + @Component({template: 'hello'}) + class TestCmp {} + + TestBed.configureTestingModule({providers: [provideRouter([{path: 'a', component: TestCmp}])]}); + const harness = await RouterTestingHarness.create(); + const activatedComponent = await harness.navigate(['/a']); + + expect(activatedComponent).toBeInstanceOf(TestCmp); + expect(TestBed.inject(Router).url).toBe('/a'); + }); + + it('navigates with commands and a component type', async () => { + @Component({template: 'hello'}) + class TestCmp {} + + TestBed.configureTestingModule({providers: [provideRouter([{path: 'a', component: TestCmp}])]}); + const harness = await RouterTestingHarness.create(); + const activatedComponent: TestCmp = await harness.navigate(['/a'], TestCmp); + + expect(activatedComponent).toBeInstanceOf(TestCmp); + expect(TestBed.inject(Router).url).toBe('/a'); + }); + + it('navigates with commands and extras', async () => { + @Component({template: 'hello'}) + class TestCmp {} + + TestBed.configureTestingModule({providers: [provideRouter([{path: 'a', component: TestCmp}])]}); + const harness = await RouterTestingHarness.create(); + const activatedComponent = await harness.navigate(['/a'], { + queryParams: {q: '1'}, + fragment: 'frag', + }); + + expect(activatedComponent).toBeInstanceOf(TestCmp); + expect(TestBed.inject(Router).url).toBe('/a?q=1#frag'); + }); + + it('navigates with commands, query params and fragment', async () => { + @Component({template: 'hello'}) + class TestCmp {} + + TestBed.configureTestingModule({providers: [provideRouter([{path: 'a', component: TestCmp}])]}); + const harness = await RouterTestingHarness.create(); + const activatedComponent = await harness.navigate( + ['/a'], + { + queryParams: {q: '1'}, + fragment: 'frag', + }, + TestCmp, + ); + + expect(activatedComponent).toBeInstanceOf(TestCmp); + expect(TestBed.inject(Router).url).toBe('/a?q=1#frag'); + }); + it('executes guards on the path', async () => { let guardCalled = false; TestBed.configureTestingModule({ diff --git a/packages/router/upgrade/BUILD.bazel b/packages/router/upgrade/BUILD.bazel index 32e41a1d8444..aea627d999da 100644 --- a/packages/router/upgrade/BUILD.bazel +++ b/packages/router/upgrade/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "generate_api_docs", "ng_project") +load("//tools:defaults.bzl", "ng_project") package(default_visibility = ["//visibility:public"]) @@ -27,13 +27,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "router_upgrade_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_name = "@angular/router/upgrade", -) diff --git a/packages/router/upgrade/test/upgrade.spec.ts b/packages/router/upgrade/test/upgrade.spec.ts index ed018634fc5a..cf62843e1581 100644 --- a/packages/router/upgrade/test/upgrade.spec.ts +++ b/packages/router/upgrade/test/upgrade.spec.ts @@ -8,7 +8,7 @@ import {Location} from '@angular/common'; import {$locationShim, UrlCodec} from '@angular/common/upgrade'; -import {fakeAsync, flush, TestBed} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {Router, RouterModule} from '../../index'; import {setUpLocationSync} from '../../upgrade'; import {UpgradeModule} from '@angular/upgrade/static'; @@ -169,7 +169,7 @@ describe('setUpLocationSync', () => { } }); - it('should not duplicate navigations triggered by Angular router', fakeAsync(() => { + it('should not duplicate navigations triggered by Angular router', async () => { spyOn(TestBed.inject(UrlCodec), 'parse').and.returnValue({ pathname: '', href: '', @@ -186,20 +186,19 @@ describe('setUpLocationSync', () => { // Inject location shim so its urlChangeListener subscribes TestBed.inject($locationShim); - router.navigateByUrl('/1'); location.normalize.and.returnValue('/1'); - flush(); + await router.navigateByUrl('/1'); expect(router.navigateByUrl).toHaveBeenCalledTimes(1); expect($rootScope.$broadcast.calls.argsFor(0)[0]).toEqual('$locationChangeStart'); expect($rootScope.$broadcast.calls.argsFor(1)[0]).toEqual('$locationChangeSuccess'); $rootScope.$broadcast.calls.reset(); router.navigateByUrl.calls.reset(); - location.go('/2'); location.normalize.and.returnValue('/2'); - flush(); + location.go('/2'); expect($rootScope.$broadcast.calls.argsFor(0)[0]).toEqual('$locationChangeStart'); expect($rootScope.$broadcast.calls.argsFor(1)[0]).toEqual('$locationChangeSuccess'); expect(router.navigateByUrl).toHaveBeenCalledTimes(1); - })); + await router.navigateByUrl.calls.mostRecent().returnValue; + }); }); diff --git a/packages/service-worker/BUILD.bazel b/packages/service-worker/BUILD.bazel index 24185cf64894..fde65123292b 100644 --- a/packages/service-worker/BUILD.bazel +++ b/packages/service-worker/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "api_golden_test", "api_golden_test_npm_package", "generate_api_docs", "ng_package", "ng_project", "ts_config") +load("//tools:defaults.bzl", "api_golden_test", "api_golden_test_npm_package", "ng_package", "ng_project", "ts_config") package(default_visibility = ["//visibility:public"]) @@ -92,13 +92,3 @@ api_golden_test( entry_point = "src/errors.d.ts", golden = "goldens/public-api/service-worker/errors.api.md", ) - -generate_api_docs( - name = "service-worker_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_name = "@angular/service-worker", -) diff --git a/packages/service-worker/PACKAGE.md b/packages/service-worker/PACKAGE.md index 0aa3231a4413..b0583a902362 100644 --- a/packages/service-worker/PACKAGE.md +++ b/packages/service-worker/PACKAGE.md @@ -1,4 +1,4 @@ -IMPORTANT: The Angular Service Worker is a basic caching utility for simple offline support with a limited featureset. We will not be accepting any new features other than security fixes. For more advanced caching and offline capabilities, we recommend exploring native browser APIs directly. +IMPORTANT: The Angular Service Worker is a basic caching utility for simple offline support with a limited featureset. We will not be accepting any new features or bug fixes other than security fixes. For more advanced caching and offline capabilities, we recommend exploring native browser APIs directly. Implements a service worker for Angular apps. Adding a service worker to an Angular app is one of the steps for turning it into a Progressive Web App (also known as a PWA). diff --git a/packages/service-worker/README.md b/packages/service-worker/README.md new file mode 100644 index 000000000000..0e086bc4fdd4 --- /dev/null +++ b/packages/service-worker/README.md @@ -0,0 +1,6 @@ +# @angular/service-worker + +IMPORTANT: The Angular Service Worker is a basic caching utility for simple offline support with a limited featureset. We will not be accepting any new features or bug fixes other than security fixes. For more advanced caching and offline capabilities, we recommend exploring native browser APIs directly. + +Implements a service worker for Angular apps. +For more information, see the [`@angular/service-worker` API documentation](https://angular.dev/api/service-worker). diff --git a/packages/service-worker/config/schema.json b/packages/service-worker/config/schema.json index d9c620825595..9d2cb61f71c0 100644 --- a/packages/service-worker/config/schema.json +++ b/packages/service-worker/config/schema.json @@ -24,18 +24,12 @@ "description": "It identifies this particular group of assets between versions of the configuration." }, "installMode": { - "enum": [ - "prefetch", - "lazy" - ], + "enum": ["prefetch", "lazy"], "default": "prefetch", "description": "Determines how the resources are initially cached. 'prefetch' tells the Angular service worker to fetch every single listed resource while it's caching the current version of the app. This is bandwidth-intensive but ensures resources are available whenever they're requested, even if the browser is currently offline. 'lazy' does not cache any of the resources up front. Instead, the Angular service worker only caches resources for which it receives requests. This is an on-demand caching mode. Resources that are never requested will not be cached. This is useful for things like images at different resolutions, so the service worker only caches the correct assets for the particular screen and orientation." }, "updateMode": { - "enum": [ - "prefetch", - "lazy" - ], + "enum": ["prefetch", "lazy"], "description": "For resources already in the cache, determines the caching behavior when a new version of the app is discovered. Any resources in the group that have changed since the previous version are updated in accordance with 'updateMode'. 'prefetch' tells the service worker to download and cache the changed resources immediately. 'lazy' tells the service worker to not cache those resources. Instead, it treats them as unrequested and waits until they're requested again before updating them. An 'updateMode' of lazy is only valid if the 'installMode' is also lazy. Defaults to the value `installMode` is set to." }, "resources": { @@ -61,10 +55,10 @@ }, "additionalProperties": false }, - "cacheQueryOptions" : { + "cacheQueryOptions": { "type": "object", "description": "Provide options that are passed to Cache#match.", - "properties" : { + "properties": { "ignoreSearch": { "type": "boolean", "description": "Whether to ignore the query string in the URL." @@ -73,10 +67,7 @@ "additionalProperties": false } }, - "required": [ - "name", - "resources" - ], + "required": ["name", "resources"], "additionalProperties": false } }, @@ -124,10 +115,7 @@ "description": "This duration string specifies the time ahead of the expiration of a cached resource when the Angular service worker should proactively attempt to refresh the resource from the network. The `refreshAhead` duration is an optional configuration that determines how much time before the expiration of a cached response the service worker should initiate a request to refresh the resource from the network." }, "strategy": { - "enum": [ - "freshness", - "performance" - ], + "enum": ["freshness", "performance"], "default": "performance", "description": "The Angular service worker can use either of two caching strategies for data resources. 'performance', the default, optimizes for responses that are as fast as possible. If a resource exists in the cache, the cached version is used. This allows for some staleness, depending on the 'maxAge', in exchange for better performance. This is suitable for resources that don't change often; for example, user avatar images. 'freshness' optimizes for currency of data, preferentially fetching requested data from the network. Only if the network times out, according to 'timeout', does the request fall back to the cache. This is useful for resources that change frequently; for example, account balances." }, @@ -136,16 +124,13 @@ "description": "Whether to cache opaque responses or not. The default value is 'false' for groups with the 'performance' strategy and 'true' for groups with the 'freshness' strategy. Opaque responses are special in that it is not possible for the service worker to distinguish successful responses from errors. Therefore, be careful with caching opaque responses, especially when combined with a strategy/configuration that could result in a response being retained in the cache for a long time." } }, - "required": [ - "maxSize", - "maxAge" - ], + "required": ["maxSize", "maxAge"], "additionalProperties": false }, - "cacheQueryOptions" : { + "cacheQueryOptions": { "type": "object", "description": "Provide options that are passed to Cache#match.", - "properties" : { + "properties": { "ignoreSearch": { "type": "boolean", "description": "Whether to ignore the query string in the URL." @@ -154,11 +139,7 @@ "additionalProperties": false } }, - "required": [ - "name", - "urls", - "cacheConfig" - ], + "required": ["name", "urls", "cacheConfig"], "additionalProperties": false } }, @@ -171,20 +152,15 @@ "uniqueItems": true }, "navigationRequestStrategy": { - "enum": [ - "freshness", - "performance" - ], + "enum": ["freshness", "performance"], "default": "performance", "description": "The Angular service worker can use two request strategies for navigation requests. 'performance', the default, skips navigation requests. The other strategy, 'freshness', forces all navigation requests through the network." }, "applicationMaxAge": { "type": "string", - "description": "Indicates how long the entire application is allowed to remain in the cache before being considered invalid and bypassed. 'maxAge' is a duration string, using the following unit suffixes: d= days, h= hours, m= minutes, s= seconds, u= milliseconds. For example, the string '3d12h' will cache content for up to three and a half days." + "description": "Indicates how long, counted from the time the application was built, the entire application is allowed to be served from the cache before being considered invalid and bypassed. If omitted, there is no maximum age. 'applicationMaxAge' is a duration string, using the following unit suffixes: d= days, h= hours, m= minutes, s= seconds, u= milliseconds. For example, the string '3d12h' will serve cached content for up to three and a half days after the build." } }, - "required": [ - "index" - ], + "required": ["index"], "additionalProperties": false } diff --git a/packages/service-worker/src/provider.ts b/packages/service-worker/src/provider.ts index e9d0dd3f1a8a..288b106adb90 100644 --- a/packages/service-worker/src/provider.ts +++ b/packages/service-worker/src/provider.ts @@ -143,8 +143,7 @@ export function ngswCommChannelFactory(): NgswCommChannel { * You can use this token to define a provider that generates the registration options at runtime, * for example via a function call: * - * {@example service-worker/registration-options/module.ts region="registration-options" - * header="app.module.ts"} + * {@example service-worker/registration-options/module.ts region="registration-options"} * * @see [Service worker configuration](ecosystem/service-workers/getting-started#service-worker-configuration) * @@ -199,8 +198,8 @@ export abstract class SwRegistrationOptions { * micro-/macro-tasks) but no later than `` milliseconds. If the app hasn't * stabilized after `` milliseconds (for example, due to a recurrent asynchronous * task), the ServiceWorker will be registered anyway. - * If `` is omitted, the ServiceWorker will only be registered once the app - * stabilizes. + * `` is required. Without it, the ServiceWorker is registered immediately + * instead of waiting for the application to stabilize. * - `registerImmediately`: Register immediately. * - `registerWithDelay:`: Register with a delay of `` milliseconds. For * example, use `registerWithDelay:5000` to register the ServiceWorker after 5 seconds. If diff --git a/packages/service-worker/src/push.ts b/packages/service-worker/src/push.ts index 98d8118efbbe..e13e1e805a0b 100644 --- a/packages/service-worker/src/push.ts +++ b/packages/service-worker/src/push.ts @@ -24,16 +24,14 @@ import {ERR_SW_NOT_SUPPORTED, NgswCommChannel, PushEvent} from './low_level'; * You can inject a `SwPush` instance into any component or service * as a dependency. * - * + * {@example service-worker/push/service_worker_component.ts region='inject-sw-push'} * * To subscribe, call `SwPush.requestSubscription()`, which asks the user for permission. * The call returns a `Promise` with a new * [`PushSubscription`](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription) * instance. * - * + * {@example service-worker/push/service_worker_component.ts region='subscribe-to-push'} * * A request is rejected if the user denies permission, or if the browser * blocks or does not support the Push API or ServiceWorkers. @@ -78,8 +76,7 @@ import {ERR_SW_NOT_SUPPORTED, NgswCommChannel, PushEvent} from './low_level'; * An application can subscribe to `SwPush.notificationClicks` observable to be notified when a user * clicks on a notification. For example: * - * + * {@example service-worker/push/service_worker_component.ts region='subscribe-to-notification-clicks'} * * You can read more on handling notification clicks in the [Service worker notifications * guide](ecosystem/service-workers/push-notifications). diff --git a/packages/service-worker/test/BUILD.bazel b/packages/service-worker/test/BUILD.bazel index ea5f4a78c568..cb90f3740268 100644 --- a/packages/service-worker/test/BUILD.bazel +++ b/packages/service-worker/test/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "ng_web_test_suite", "ts_project", "zoneless_jasmine_test") +load("//tools:defaults.bzl", "ts_project", "zoneless_jasmine_test", "zoneless_web_test_suite") ts_project( name = "test_lib", @@ -25,7 +25,7 @@ zoneless_jasmine_test( ], ) -ng_web_test_suite( +zoneless_web_test_suite( name = "test_web", deps = [ ":test_lib", diff --git a/packages/service-worker/test/comm_spec.ts b/packages/service-worker/test/comm_spec.ts index 51d36f435698..6eb10053fad5 100644 --- a/packages/service-worker/test/comm_spec.ts +++ b/packages/service-worker/test/comm_spec.ts @@ -375,10 +375,12 @@ describe('ServiceWorker library', () => { let subscriptionSpy: jasmine.Spy; beforeEach(() => { - nextSubEmitPromise = new Promise((resolve) => (nextSubEmitResolve = resolve)); + ({promise: nextSubEmitPromise, resolve: nextSubEmitResolve} = + Promise.withResolvers()); subscriptionSpy = jasmine.createSpy('subscriptionSpy').and.callFake(() => { nextSubEmitResolve(); - nextSubEmitPromise = new Promise((resolve) => (nextSubEmitResolve = resolve)); + ({promise: nextSubEmitPromise, resolve: nextSubEmitResolve} = + Promise.withResolvers()); }); push.subscription.subscribe(subscriptionSpy); diff --git a/packages/service-worker/test/provider_spec.ts b/packages/service-worker/test/provider_spec.ts index fdb85c738dd9..dba974ab9d5c 100644 --- a/packages/service-worker/test/provider_spec.ts +++ b/packages/service-worker/test/provider_spec.ts @@ -7,7 +7,7 @@ */ import {ApplicationRef, PLATFORM_ID} from '@angular/core'; -import {fakeAsync, flushMicrotasks, TestBed, tick} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {Subject} from 'rxjs'; import {filter, take} from 'rxjs/operators'; @@ -19,8 +19,9 @@ const provideServiceWorkerApi = 'provideServiceWorker'; const serviceWorkerModuleApi = 'ServiceWorkerModule'; async function waitForReadyToRegister() { - // `readyToRegister` is a microtask, so we wait for it to execute by - // scheduling another microtask before running expectations. + // `readyToRegister` is a microtask (often via `Promise.race`), so we wait for it to execute by + // scheduling microtasks before running expectations. + await Promise.resolve(); await Promise.resolve(); } @@ -230,10 +231,17 @@ async function waitForReadyToRegister() { }); describe('registrationStrategy', () => { + beforeEach(() => jasmine.clock().install()); + afterEach(() => jasmine.clock().uninstall()); + const configTestBedWithMockedStability = ( strategy?: SwRegistrationOptions['registrationStrategy'], ) => { const isStableSub = new Subject(); + const whenStable = () => + new Promise((resolve) => + isStableSub.pipe(filter(Boolean), take(1)).subscribe(() => resolve()), + ); if (apiFnName === provideServiceWorkerApi) { TestBed.configureTestingModule({ @@ -243,7 +251,7 @@ async function waitForReadyToRegister() { provide: ApplicationRef, useValue: { isStable: isStableSub.asObservable(), - whenStable: () => isStableSub.pipe(filter(Boolean), take(1)), + whenStable, afterTick: new Subject(), onDestroy: () => {}, }, @@ -263,7 +271,7 @@ async function waitForReadyToRegister() { provide: ApplicationRef, useValue: { isStable: isStableSub.asObservable(), - whenStable: () => isStableSub.pipe(filter(Boolean), take(1)), + whenStable, afterTick: new Subject(), onDestroy: () => {}, }, @@ -283,117 +291,128 @@ async function waitForReadyToRegister() { return isStableSub; }; - it('defaults to registering the SW when the app stabilizes (under 30s)', fakeAsync(() => { + it('defaults to registering the SW when the app stabilizes (under 30s)', async () => { const isStableSub = configTestBedWithMockedStability(); isStableSub.next(false); + jasmine.clock().tick(20000); + await waitForReadyToRegister(); expect(swRegisterSpy).not.toHaveBeenCalled(); - // tick(20000); - // Calling `tick(20000)` drains the microtask queue, - // which leads to `register` being called. isStableSub.next(true); + await waitForReadyToRegister(); - tick(); expect(swRegisterSpy).toHaveBeenCalledWith('sw.js', { scope: undefined, updateViaCache: undefined, type: undefined, }); - })); + }); - it('defaults to registering the SW after 30s if the app does not stabilize sooner', fakeAsync(() => { + it('defaults to registering the SW after 30s if the app does not stabilize sooner', async () => { configTestBedWithMockedStability(); + jasmine.clock().tick(29999); + await waitForReadyToRegister(); expect(swRegisterSpy).not.toHaveBeenCalled(); - tick(30000); + + jasmine.clock().tick(1); + await waitForReadyToRegister(); expect(swRegisterSpy).toHaveBeenCalledWith('sw.js', { scope: undefined, updateViaCache: undefined, type: undefined, }); - })); + }); - it('registers the SW when the app stabilizes with `registerWhenStable:`', fakeAsync(() => { + it('registers the SW when the app stabilizes with `registerWhenStable:`', async () => { const isStableSub = configTestBedWithMockedStability('registerWhenStable:1000'); isStableSub.next(false); isStableSub.next(false); + await waitForReadyToRegister(); expect(swRegisterSpy).not.toHaveBeenCalled(); isStableSub.next(true); + await waitForReadyToRegister(); - tick(); expect(swRegisterSpy).toHaveBeenCalledWith('sw.js', { scope: undefined, updateViaCache: undefined, type: undefined, }); - })); + }); - it('registers the SW after `timeout` if the app does not stabilize with `registerWhenStable:`', fakeAsync(() => { + it('registers the SW after `timeout` if the app does not stabilize with `registerWhenStable:`', async () => { configTestBedWithMockedStability('registerWhenStable:1000'); + jasmine.clock().tick(999); + await waitForReadyToRegister(); expect(swRegisterSpy).not.toHaveBeenCalled(); - tick(1000); + + jasmine.clock().tick(1); + await waitForReadyToRegister(); expect(swRegisterSpy).toHaveBeenCalledWith('sw.js', { scope: undefined, updateViaCache: undefined, type: undefined, }); - })); + }); - it('registers the SW asap (asynchronously) before the app stabilizes with `registerWhenStable:0`', fakeAsync(() => { + it('registers the SW asap (asynchronously) before the app stabilizes with `registerWhenStable:0`', async () => { configTestBedWithMockedStability('registerWhenStable:0'); // Create a microtask. - Promise.resolve(); + await waitForReadyToRegister(); expect(swRegisterSpy).not.toHaveBeenCalled(); - tick(0); + jasmine.clock().tick(0); + await waitForReadyToRegister(); expect(swRegisterSpy).toHaveBeenCalledWith('sw.js', { scope: undefined, updateViaCache: undefined, type: undefined, }); - })); + }); - it('registers the SW only when the app stabilizes with `registerWhenStable:`', fakeAsync(() => { + it('registers the SW only when the app stabilizes with `registerWhenStable:`', async () => { const isStableSub = configTestBedWithMockedStability('registerWhenStable:'); isStableSub.next(false); isStableSub.next(false); + await waitForReadyToRegister(); expect(swRegisterSpy).not.toHaveBeenCalled(); isStableSub.next(true); + await waitForReadyToRegister(); - tick(); expect(swRegisterSpy).toHaveBeenCalledWith('sw.js', { scope: undefined, updateViaCache: undefined, type: undefined, }); - })); + }); - it('registers the SW only when the app stabilizes with `registerWhenStable`', fakeAsync(() => { + it('registers the SW only when the app stabilizes with `registerWhenStable`', async () => { const isStableSub = configTestBedWithMockedStability('registerWhenStable'); isStableSub.next(false); isStableSub.next(false); + await waitForReadyToRegister(); expect(swRegisterSpy).not.toHaveBeenCalled(); isStableSub.next(true); + await waitForReadyToRegister(); - tick(); expect(swRegisterSpy).toHaveBeenCalledWith('sw.js', { scope: undefined, updateViaCache: undefined, type: undefined, }); - })); + }); it('registers the SW immediatelly (synchronously) with `registerImmediately`', async () => { configTestBedWithMockedStability('registerImmediately'); @@ -405,72 +424,70 @@ async function waitForReadyToRegister() { }); }); - it('registers the SW after the specified delay with `registerWithDelay:`', fakeAsync(() => { + it('registers the SW after the specified delay with `registerWithDelay:`', async () => { configTestBedWithMockedStability('registerWithDelay:100000'); - // tick(99999); - // Calling `tick(99999)` drains the microtask queue, - // which leads to `register` being called. + jasmine.clock().tick(99999); + await waitForReadyToRegister(); expect(swRegisterSpy).not.toHaveBeenCalled(); - tick(100000); + jasmine.clock().tick(1); + await waitForReadyToRegister(); expect(swRegisterSpy).toHaveBeenCalledWith('sw.js', { scope: undefined, updateViaCache: undefined, type: undefined, }); - })); + }); - it('registers the SW asap (asynchronously) with `registerWithDelay:`', fakeAsync(() => { + it('registers the SW asap (asynchronously) with `registerWithDelay:`', async () => { configTestBedWithMockedStability('registerWithDelay:'); - // Create a microtask. - Promise.resolve(); - - flushMicrotasks(); + // Wait for microtasks. + await waitForReadyToRegister(); expect(swRegisterSpy).not.toHaveBeenCalled(); - tick(0); + jasmine.clock().tick(0); + await waitForReadyToRegister(); expect(swRegisterSpy).toHaveBeenCalledWith('sw.js', { scope: undefined, updateViaCache: undefined, type: undefined, }); - })); + }); - it('registers the SW asap (asynchronously) with `registerWithDelay`', fakeAsync(() => { + it('registers the SW asap (asynchronously) with `registerWithDelay`', async () => { configTestBedWithMockedStability('registerWithDelay'); - // Create a microtask. - Promise.resolve(); - - flushMicrotasks(); + // Wait for microtasks. + await waitForReadyToRegister(); expect(swRegisterSpy).not.toHaveBeenCalled(); - tick(0); + jasmine.clock().tick(0); + await waitForReadyToRegister(); expect(swRegisterSpy).toHaveBeenCalledWith('sw.js', { scope: undefined, updateViaCache: undefined, type: undefined, }); - })); + }); - it('registers the SW on first emitted value with observable factory function', fakeAsync(() => { + it('registers the SW on first emitted value with observable factory function', async () => { const registerSub = new Subject(); const isStableSub = configTestBedWithMockedStability(() => registerSub.asObservable()); isStableSub.next(true); - tick(); + await waitForReadyToRegister(); expect(swRegisterSpy).not.toHaveBeenCalled(); registerSub.next(); - tick(); + await waitForReadyToRegister(); expect(swRegisterSpy).toHaveBeenCalledWith('sw.js', { scope: undefined, updateViaCache: undefined, type: undefined, }); - })); + }); it('throws an error with unknown strategy', () => { expect(() => configTestBedWithMockedStability('registerYesterday')).toThrowError( diff --git a/packages/service-worker/worker/testing/mock.ts b/packages/service-worker/worker/testing/mock.ts index f16d0ec2913c..8e7826e95636 100644 --- a/packages/service-worker/worker/testing/mock.ts +++ b/packages/service-worker/worker/testing/mock.ts @@ -141,16 +141,14 @@ export class MockServerState { private resources: Map, private errors: Set, ) { - this.nextRequest = new Promise((resolve) => { - this.resolveNextRequest = resolve; - }); + ({promise: this.nextRequest, resolve: this.resolveNextRequest} = + Promise.withResolvers()); } async fetch(req: Request): Promise { this.resolveNextRequest?.(req); - this.nextRequest = new Promise((resolve) => { - this.resolveNextRequest = resolve; - }); + ({promise: this.nextRequest, resolve: this.resolveNextRequest} = + Promise.withResolvers()); await this.gate; @@ -178,9 +176,7 @@ export class MockServerState { } pause(): void { - this.gate = new Promise((resolve) => { - this.resolve = resolve; - }); + ({promise: this.gate, resolve: this.resolve} = Promise.withResolvers()); } unpause(): void { @@ -236,9 +232,8 @@ export class MockServerState { reset(): void { this.clearRequests(); - this.nextRequest = new Promise((resolve) => { - this.resolveNextRequest = resolve; - }); + ({promise: this.nextRequest, resolve: this.resolveNextRequest} = + Promise.withResolvers()); this.gate = Promise.resolve(); this.resolve = null; this.online = true; diff --git a/packages/ssr/docs/BUILD.bazel b/packages/ssr/docs/BUILD.bazel index f372ea6e5b85..64034b9ba242 100644 --- a/packages/ssr/docs/BUILD.bazel +++ b/packages/ssr/docs/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "generate_api_docs", "ts_project") +load("//tools:defaults.bzl", "ts_project") package(default_visibility = ["//visibility:public"]) @@ -12,29 +12,3 @@ ts_project( "//:node_modules/@angular/ssr", ], ) - -### @angular/ssr package located in the Angular/CLI repository -generate_api_docs( - name = "ssr_docs", - srcs = [ - ":ssr_docs_lib", - ":ssr_docs_lib_types", - "//:node_modules/@angular/ssr", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":_index.d.ts", - module_name = "@angular/ssr", -) - -generate_api_docs( - name = "ssr_node_docs", - srcs = [ - ":ssr_docs_lib", - ":ssr_docs_lib_types", - "//:node_modules/@angular/ssr", - "//:node_modules/@types/node", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":_node.d.ts", - module_name = "@angular/ssr/node", -) diff --git a/packages/tsconfig-build.json b/packages/tsconfig-build.json index 2325a6ec1451..3c2eb1d0eba7 100644 --- a/packages/tsconfig-build.json +++ b/packages/tsconfig-build.json @@ -9,18 +9,15 @@ "stripInternal": true, "noImplicitAny": true, "noImplicitOverride": true, - "strictNullChecks": true, "stableTypeOrdering": true, "noImplicitReturns": true, "noPropertyAccessFromIndexSignature": true, "esModuleInterop": true, - "strict": true, - "strictPropertyInitialization": true, "noFallthroughCasesInSwitch": true, "moduleResolution": "bundler", "module": "esnext", "target": "es2022", - "lib": ["es2020", "es2022", "dom", "dom.iterable"], + "lib": ["es2022", "es2024.promise", "dom", "dom.iterable"], "skipLibCheck": true, // don't auto-discover @types/node, it results in a /// 1; + // A copy of the contents of each element, taken before anything on the element is linked. + const templates = new WeakMap(); + return { restrict: 'E', terminal: true, @@ -131,8 +134,21 @@ export function downgradeComponent(info: { // configuration properties can be made available. See: // See G3: javascript/angular2/angular1_router_lib.js // https://github.com/angular/angular.js/blob/47bf11ee94664367a26ed8c91b9b586d3dd420f5/src/ng/compile.js#L1670-L1691. - controller: function () {}, + controller: [ + '$element', + function (element: IAugmentedJQuery) { + // Controllers are instantiated before anything on the element is linked, so the contents + // are still the template. A fragment keeps the copies as siblings, as multi-element + // directives (e.g. `ng-repeat-start`) need. + const fragment = document.createDocumentFragment(); + element[0].childNodes.forEach((node) => fragment.appendChild(node.cloneNode(true))); + templates.set(element[0], Array.from(fragment.childNodes)); + }, + ], link: (scope: IScope, element: IAugmentedJQuery, attrs: IAttributes, required: any[]) => { + const template = templates.get(element[0]) ?? []; + templates.delete(element[0]); + // We might have to compile the contents asynchronously, because this might have been // triggered by `UpgradeNg1ComponentAdapterBuilder`, before the Angular templates have // been compiled. @@ -210,7 +226,7 @@ export function downgradeComponent(info: { unsafelyOverwriteSignalInputs, ); - const projectableNodes = facade.compileContents(); + const projectableNodes = facade.compileContents(template); const componentRef = facade.createComponentAndSetup( projectableNodes, isNgUpgradeLite, diff --git a/packages/upgrade/src/common/src/downgrade_component_adapter.ts b/packages/upgrade/src/common/src/downgrade_component_adapter.ts index fb4bdfbd3277..5d02f300a483 100644 --- a/packages/upgrade/src/common/src/downgrade_component_adapter.ts +++ b/packages/upgrade/src/common/src/downgrade_component_adapter.ts @@ -65,9 +65,20 @@ export class DowngradeComponentAdapter { this.componentScope = scope.$new(); } - compileContents(): Node[][] { + compileContents(template: Node[]): Node[][] { + if (!template.length) { + // There is no template to compile, so whatever is in the element was put there by AngularJS + // (e.g. through `ng-transclude`): project it as it is. + const projectableNodes = this.groupProjectableNodes(this.element.contents!()); + projectableNodes.forEach((nodes) => + nodes.forEach((node) => this.element[0].removeChild(node)), + ); + this.element.empty!(); + return projectableNodes; + } + const compiledProjectableNodes: Node[][] = []; - const projectableNodes: Node[][] = this.groupProjectableNodes(); + const projectableNodes: Node[][] = this.groupProjectableNodes(template); const linkFns = projectableNodes.map((nodes) => this.$compile(nodes)); this.element.empty!(); @@ -347,9 +358,9 @@ export class DowngradeComponentAdapter { } } - private groupProjectableNodes() { + private groupProjectableNodes(nodes: Node[]) { let ngContentSelectors = reflectComponentType(this.component)?.ngContentSelectors ?? []; - return groupNodesBySelector(ngContentSelectors, this.element.contents!()); + return groupNodesBySelector(ngContentSelectors, nodes); } } diff --git a/packages/upgrade/src/common/test/downgrade_component_adapter_spec.ts b/packages/upgrade/src/common/test/downgrade_component_adapter_spec.ts index ac8bc5842aac..fd23f825a06d 100644 --- a/packages/upgrade/src/common/test/downgrade_component_adapter_spec.ts +++ b/packages/upgrade/src/common/test/downgrade_component_adapter_spec.ts @@ -147,7 +147,6 @@ withEachNg1Version(() => { scope = new mockScope(); @Component({ - selector: 'comp', template: '', standalone: false, }) diff --git a/packages/upgrade/static/BUILD.bazel b/packages/upgrade/static/BUILD.bazel index 1a92c670e93f..9fcda5ac96be 100644 --- a/packages/upgrade/static/BUILD.bazel +++ b/packages/upgrade/static/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "generate_api_docs", "ng_project") +load("//tools:defaults.bzl", "ng_project") package(default_visibility = ["//visibility:public"]) @@ -26,15 +26,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "upgrade_static_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - "//packages/upgrade:files_for_docgen", - "//packages/upgrade/src/common:files_for_docgen", - ], - entry_point = ":index.ts", - module_name = "@angular/upgrade/static", -) diff --git a/packages/upgrade/static/PACKAGE.md b/packages/upgrade/static/PACKAGE.md index 9dbd7bccecec..f5454830a6e3 100644 --- a/packages/upgrade/static/PACKAGE.md +++ b/packages/upgrade/static/PACKAGE.md @@ -1,2 +1,4 @@ +IMPORTANT: The `@angular/upgrade` package is in maintenance mode. We will not be accepting any new features or bug fixes other than security fixes. + Supports the upgrade path from AngularJS to Angular, allowing components and services from both systems to be used in the same application. diff --git a/packages/upgrade/static/src/downgrade_module.ts b/packages/upgrade/static/src/downgrade_module.ts index fb2db39d291b..9ced5b26130d 100644 --- a/packages/upgrade/static/src/downgrade_module.ts +++ b/packages/upgrade/static/src/downgrade_module.ts @@ -125,11 +125,11 @@ let moduleUid = 0; * `StaticProvider`s, when creating the `PlatformRef` (e.g. via `platformBrowser` or * `platformBrowserDynamic`). * - * - When using {@link PlatformRef#bootstrapmodule `bootstrapModule()`} or - * {@link PlatformRef#bootstrapmodulefactory `bootstrapModuleFactory()`} to bootstrap the + * - When using {@link PlatformRef#bootstrapModule `bootstrapModule()`} or + * {@link PlatformRef#bootstrapModuleFactory `bootstrapModuleFactory()`} to bootstrap the * downgraded modules, each one is considered a "root" module. As a consequence, a new instance * will be created for every injectable provided in `"root"` (via - * {@link /api/core/Injectable#providedIn providedIn} + * {@link /api/core/Injectable providedIn} * If this is not your intention, you can have a shared module (that will act as act as the "root" * module) and create all downgraded modules using that module's injector: * @@ -241,11 +241,11 @@ export function downgradeModule( * `StaticProvider`s, when creating the `PlatformRef` (e.g. via `platformBrowser` or * `platformBrowserDynamic`). * - * - When using {@link PlatformRef#bootstrapmodule `bootstrapModule()`} or - * {@link PlatformRef#bootstrapmodulefactory `bootstrapModuleFactory()`} to bootstrap the + * - When using {@link PlatformRef#bootstrapModule `bootstrapModule()`} or + * {@link PlatformRef#bootstrapModuleFactory `bootstrapModuleFactory()`} to bootstrap the * downgraded modules, each one is considered a "root" module. As a consequence, a new instance * will be created for every injectable provided in `"root"` (via - * {@link /api/core/Injectable#providedIn providedIn} + * {@link /api/core/Injectable providedIn} * If this is not your intention, you can have a shared module (that will act as act as the "root" * module) and create all downgraded modules using that module's injector: * @@ -358,11 +358,11 @@ export function downgradeModule(moduleOrBootstrapFn: NgModuleFactory): str * `StaticProvider`s, when creating the `PlatformRef` (e.g. via `platformBrowser` or * `platformBrowserDynamic`). * - * - When using {@link PlatformRef#bootstrapmodule `bootstrapModule()`} or - * {@link PlatformRef#bootstrapmodulefactory `bootstrapModuleFactory()`} to bootstrap the + * - When using {@link PlatformRef#bootstrapModule `bootstrapModule()`} or + * {@link PlatformRef#bootstrapModuleFactory `bootstrapModuleFactory()`} to bootstrap the * downgraded modules, each one is considered a "root" module. As a consequence, a new instance * will be created for every injectable provided in `"root"` (via - * {@link /api/core/Injectable#providedIn providedIn} + * {@link /api/core/Injectable providedIn} * If this is not your intention, you can have a shared module (that will act as act as the "root" * module) and create all downgraded modules using that module's injector: * @@ -372,9 +372,7 @@ export function downgradeModule(moduleOrBootstrapFn: NgModuleFactory): str */ export function downgradeModule( moduleOrBootstrapFn: - | Type - | NgModuleFactory - | ((extraProviders: StaticProvider[]) => Promise>), + Type | NgModuleFactory | ((extraProviders: StaticProvider[]) => Promise>), ): string { const lazyModuleName = `${ɵconstants.UPGRADE_MODULE_NAME}.lazy${++moduleUid}`; const lazyModuleRefKey = `${ɵconstants.LAZY_MODULE_REF}${lazyModuleName}`; diff --git a/packages/upgrade/static/src/upgrade_module.ts b/packages/upgrade/static/src/upgrade_module.ts index 8124fd640055..084e97aad03b 100644 --- a/packages/upgrade/static/src/upgrade_module.ts +++ b/packages/upgrade/static/src/upgrade_module.ts @@ -42,7 +42,7 @@ import {NgAdapterInjector} from './util'; * that it can be used in an AngularJS template. See `downgradeComponent`. * 3. Creation of an Angular root injector provider that wraps and exposes an AngularJS * service so that it can be injected into an Angular context. See - * {@link UpgradeModule#upgrading-an-angular-1-service Upgrading an AngularJS service} below. + * {@link UpgradeModule#upgrading-an-angularjs-service Upgrading an AngularJS service} below. * 4. Creation of an AngularJS service that wraps and exposes an Angular injectable * so that it can be injected into an AngularJS context. See `downgradeInjectable`. * 5. Bootstrapping of a hybrid Angular application which contains both of the frameworks diff --git a/packages/upgrade/static/test/integration/change_detection_spec.ts b/packages/upgrade/static/test/integration/change_detection_spec.ts index d969c02fb3c4..c0d12d74087d 100644 --- a/packages/upgrade/static/test/integration/change_detection_spec.ts +++ b/packages/upgrade/static/test/integration/change_detection_spec.ts @@ -19,9 +19,9 @@ import { provideZoneChangeDetection, SimpleChanges, } from '@angular/core'; -import {waitForAsync} from '@angular/core/testing'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {timeout} from '@angular/private/testing'; import {downgradeComponent, UpgradeComponent, UpgradeModule} from '../../../static'; import * as angular from '../../../src/common/src/angular1'; @@ -34,7 +34,7 @@ withEachNg1Version(() => { beforeEach(() => destroyPlatform()); afterEach(() => destroyPlatform()); - it('should not break if a $digest is already in progress', waitForAsync(() => { + it('should not break if a $digest is already in progress', async () => { const element = html(''); @Component({ @@ -58,45 +58,41 @@ withEachNg1Version(() => { .module_('ng1', []) .directive('myApp', downgradeComponent({component: AppComponent})); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - const $rootScope = upgrade.$injector.get('$rootScope') as angular.IRootScopeService; - const ngZone: NgZone = upgrade.ngZone; - - // Wrap in a setTimeout to ensure all bootstrap operations have completed. - setTimeout( - // Run inside the Angular zone, so that operations such as emitting - // `onMicrotaskEmpty` do not trigger entering/existing the zone (and thus another - // `$digest`). This also closer simulates what would happen in a real app. - () => - ngZone.run(() => { - const digestSpy = spyOn($rootScope, '$digest').and.callThrough(); - - // Step 1: Ensure `$digest` is run on `onMicrotaskEmpty`. - ngZone.onMicrotaskEmpty.emit(null); - expect(digestSpy).toHaveBeenCalledTimes(1); - - digestSpy.calls.reset(); - - // Step 2: Cause the issue. - $rootScope.$apply(() => ngZone.onMicrotaskEmpty.emit(null)); - - // With the fix, `$digest` will only be run once (for `$apply()`). - // Without the fix, `$digest()` would have been run an extra time - // (`onMicrotaskEmpty`). - expect(digestSpy).toHaveBeenCalledTimes(1); - - digestSpy.calls.reset(); - - // Step 3: Ensure that `$digest()` is still executed on `onMicrotaskEmpty`. - ngZone.onMicrotaskEmpty.emit(null); - expect(digestSpy).toHaveBeenCalledTimes(1); - }), - 0, - ); + const upgrade = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const $rootScope = upgrade.$injector.get('$rootScope') as angular.IRootScopeService; + const ngZone: NgZone = upgrade.ngZone; + + // Wrap in a setTimeout to ensure all bootstrap operations have completed. + await timeout(); + // Run inside the Angular zone, so that operations such as emitting + // `onMicrotaskEmpty` do not trigger entering/existing the zone (and thus another + // `$digest`). This also closer simulates what would happen in a real app. + ngZone.run(() => { + const digestSpy = spyOn($rootScope, '$digest').and.callThrough(); + + // Step 1: Ensure `$digest` is run on `onMicrotaskEmpty`. + ngZone.onMicrotaskEmpty.emit(null); + expect(digestSpy).toHaveBeenCalledTimes(1); + + digestSpy.calls.reset(); + + // Step 2: Cause the issue. + $rootScope.$apply(() => ngZone.onMicrotaskEmpty.emit(null)); + + // With the fix, `$digest` will only be run once (for `$apply()`). + // Without the fix, `$digest()` would have been run an extra time + // (`onMicrotaskEmpty`). + expect(digestSpy).toHaveBeenCalledTimes(1); + + digestSpy.calls.reset(); + + // Step 3: Ensure that `$digest()` is still executed on `onMicrotaskEmpty`. + ngZone.onMicrotaskEmpty.emit(null); + expect(digestSpy).toHaveBeenCalledTimes(1); }); - })); + }); - it('should interleave scope and component expressions', waitForAsync(() => { + it('should interleave scope and component expressions', async () => { const log: string[] = []; const l = (value: string) => { log.push(value); @@ -152,15 +148,14 @@ withEachNg1Version(() => { }); const element = html("
    {{reset(); l('1A');}}{{l('1B')}}{{l('1C')}}
    "); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(document.body.textContent).toEqual('1A;2A;ng1a;2B;ng1b;2C;1C;'); - expect(log).toEqual(['1A', '1C', '2A', '2B', '2C', 'ng1a', 'ng1b']); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(document.body.textContent).toEqual('1A;2A;ng1a;2B;ng1b;2C;1C;'); + expect(log).toEqual(['1A', '1C', '2A', '2B', '2C', 'ng1a', 'ng1b']); + }); - it('should propagate changes to a downgraded component inside the ngZone', waitForAsync(() => { + it('should propagate changes to a downgraded component inside the ngZone', async () => { const element = html(''); - let appComponent: AppComponent; + let appComponent!: AppComponent; @Component({ selector: 'my-app', @@ -215,10 +210,10 @@ withEachNg1Version(() => { .module_('ng1', []) .directive('myApp', downgradeComponent({component: AppComponent})); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - appComponent.value = 5; - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + appComponent.value = 5; + await timeout(); + }); // This test demonstrates https://github.com/angular/angular/issues/6385 // which was invalidly fixed by https://github.com/angular/angular/pull/6386 diff --git a/packages/upgrade/static/test/integration/content_projection_spec.ts b/packages/upgrade/static/test/integration/content_projection_spec.ts index ba1afa2da2e1..3927f11b4412 100644 --- a/packages/upgrade/static/test/integration/content_projection_spec.ts +++ b/packages/upgrade/static/test/integration/content_projection_spec.ts @@ -15,7 +15,6 @@ import { Input, NgModule, } from '@angular/core'; -import {waitForAsync} from '@angular/core/testing'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import {downgradeComponent, UpgradeComponent, UpgradeModule} from '../../../static'; @@ -34,7 +33,7 @@ withEachNg1Version(() => { beforeEach(() => destroyPlatform()); afterEach(() => destroyPlatform()); - it('should instantiate ng2 in ng1 template and project content', waitForAsync(() => { + it('should instantiate ng2 in ng1 template and project content', async () => { // the ng2 component that will be used in ng1 (downgraded) @Component({ selector: 'ng2', @@ -67,12 +66,82 @@ withEachNg1Version(() => { const element = html("
    {{ 'ng1[' }}~{{ ngContent }}~{{ ']' }}
    "); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(document.body.textContent).toEqual('ng1[NG2(~ng1-content~)]'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(document.body.textContent).toEqual('ng1[NG2(~ng1-content~)]'); + }); - it('should correctly project structural directives', waitForAsync(() => { + it('should not compile content that `ng-transclude` added to the host element', async () => { + @Component({template: ''}) + class Ng2Component {} + + @NgModule({imports: [BrowserModule, UpgradeModule]}) + class Ng2Module { + ngDoBootstrap() {} + } + + const evaluated = jasmine.createSpy('evaluated'); + const ng1Module = angular + .module_('ng1', []) + .component('ng1', {transclude: true, template: ''}) + .directive('ng2', downgradeComponent({component: Ng2Component})) + .run([ + '$rootScope', + ($rootScope: angular.IRootScopeService) => { + $rootScope['evaluated'] = evaluated; + $rootScope['user'] = { + name: 'Alice', + avatarUrl: '/avatars/alice.png?{{ $root.evaluated() }}', + }; + }, + ]); + + const element = html( + '
    {{ user.name }}
    ', + ); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + + expect(evaluated).not.toHaveBeenCalled(); + expect(multiTrim(element.textContent)).toBe('Alice'); + }); + + it('should not compile content that a directive on the host element wrote while it was linked', async () => { + @Component({template: ''}) + class Ng2Component {} + + @NgModule({imports: [BrowserModule, UpgradeModule]}) + class Ng2Module { + ngDoBootstrap() {} + } + + const evaluated = jasmine.createSpy('evaluated'); + const ng1Module = angular + .module_('ng1', []) + .directive('ng1Label', () => ({ + link: { + pre: ( + scope: angular.IScope, + element: angular.IAugmentedJQuery, + attrs: angular.IAttributes, + ) => (element[0].textContent = attrs['ng1Label']), + }, + })) + .directive('ng2', downgradeComponent({component: Ng2Component})) + .run([ + '$rootScope', + ($rootScope: angular.IRootScopeService) => { + $rootScope['evaluated'] = evaluated; + $rootScope['value'] = '{{ $root.evaluated() }}'; + }, + ]); + + const element = html('
    label
    '); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + + expect(evaluated).not.toHaveBeenCalled(); + expect(multiTrim(element.textContent)).toBe('label'); + }); + + it('should correctly project structural directives', async () => { @Component({ selector: 'ng2', template: 'ng2-{{ itemId }}()', @@ -107,12 +176,32 @@ withEachNg1Version(() => { `); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(multiTrim(document.body.textContent)).toBe('ng2-a( 123 )ng2-b( 456 )ng2-c( 789 )'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(document.body.textContent)).toBe('ng2-a( 123 )ng2-b( 456 )ng2-c( 789 )'); + }); + + it('should project content that uses multi-element directives', async () => { + @Component({template: '[]'}) + class Ng2Component {} + + @NgModule({imports: [BrowserModule, UpgradeModule]}) + class Ng2Module { + ngDoBootstrap() {} + } + + const ng1Module = angular + .module_('ng1', []) + .directive('ng2', downgradeComponent({component: Ng2Component})); + + const element = html( + '{{ i }};', + ); + + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('[1;2;]'); + }); - it('should instantiate ng1 in ng2 template and project content', waitForAsync(() => { + it('should instantiate ng1 in ng2 template and project content', async () => { @Component({ selector: 'ng2', template: `{{ 'ng2(' }}{{ transclude }} { const element = html("
    {{ 'ng1(' }}{{ ')' }}
    "); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(document.body.textContent).toEqual('ng1(ng2(ng1(ng2-transclude)))'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(document.body.textContent).toEqual('ng1(ng2(ng1(ng2-transclude)))'); + }); - it('should support multi-slot projection', waitForAsync(() => { + it('should support multi-slot projection', async () => { @Component({ selector: 'ng2', template: @@ -188,9 +276,8 @@ withEachNg1Version(() => { '
    1a
    1b
    ', ); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(document.body.textContent).toEqual('2a(1a)2b(1b)'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(document.body.textContent).toEqual('2a(1a)2b(1b)'); + }); }); }); diff --git a/packages/upgrade/static/test/integration/downgrade_component_spec.ts b/packages/upgrade/static/test/integration/downgrade_component_spec.ts index 24b1ab21bb8f..88571c2edb92 100644 --- a/packages/upgrade/static/test/integration/downgrade_component_spec.ts +++ b/packages/upgrade/static/test/integration/downgrade_component_spec.ts @@ -26,9 +26,9 @@ import { Output, SimpleChanges, } from '@angular/core'; -import {fakeAsync, tick, waitForAsync} from '@angular/core/testing'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {timeout} from '@angular/private/testing'; import {downgradeComponent, UpgradeComponent, UpgradeModule} from '../../../static'; import * as angular from '../../../src/common/src/angular1'; @@ -46,7 +46,7 @@ withEachNg1Version(() => { beforeEach(() => destroyPlatform()); afterEach(() => destroyPlatform()); - it('should bind properties, events', waitForAsync(() => { + it('should bind properties, events', async () => { const ng1Module = angular.module_('ng1', []).run(($rootScope: angular.IScope) => { $rootScope['name'] = 'world'; $rootScope['dataA'] = 'A'; @@ -158,25 +158,24 @@ withEachNg1Version(() => { | modelA: {{modelA}}; modelB: {{modelB}}; eventA: {{eventA}}; eventB: {{eventB}};
    `); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(multiTrim(document.body.textContent)).toEqual( - 'ignore: -; ' + - 'literal: Text; interpolate: Hello world; ' + - 'oneWayA: A; oneWayB: B; twoWayA: newA; twoWayB: newB; (2) | ' + - 'modelA: newA; modelB: newB; eventA: aFired; eventB: bFired;', - ); - - $apply(upgrade, 'name = "everyone"'); - expect(multiTrim(document.body.textContent)).toEqual( - 'ignore: -; ' + - 'literal: Text; interpolate: Hello everyone; ' + - 'oneWayA: A; oneWayB: B; twoWayA: newA; twoWayB: newB; (3) | ' + - 'modelA: newA; modelB: newB; eventA: aFired; eventB: bFired;', - ); - }); - })); + const upgrade = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(document.body.textContent)).toEqual( + 'ignore: -; ' + + 'literal: Text; interpolate: Hello world; ' + + 'oneWayA: A; oneWayB: B; twoWayA: newA; twoWayB: newB; (2) | ' + + 'modelA: newA; modelB: newB; eventA: aFired; eventB: bFired;', + ); - it('should bind properties to signal inputs', waitForAsync(() => { + $apply(upgrade, 'name = "everyone"'); + expect(multiTrim(document.body.textContent)).toEqual( + 'ignore: -; ' + + 'literal: Text; interpolate: Hello everyone; ' + + 'oneWayA: A; oneWayB: B; twoWayA: newA; twoWayB: newB; (3) | ' + + 'modelA: newA; modelB: newB; eventA: aFired; eventB: bFired;', + ); + }); + + it('should bind properties to signal inputs', async () => { const ng1Module = angular.module_('ng1', []).run(($rootScope: angular.IScope) => { $rootScope['name'] = 'world'; }); @@ -213,15 +212,14 @@ withEachNg1Version(() => {
    `); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(multiTrim(document.body.textContent)).toEqual('Message: Hello world'); + const upgrade = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(document.body.textContent)).toEqual('Message: Hello world'); - $apply(upgrade, 'name = "everyone"'); - expect(multiTrim(document.body.textContent)).toEqual('Message: Hello everyone'); - }); - })); + $apply(upgrade, 'name = "everyone"'); + expect(multiTrim(document.body.textContent)).toEqual('Message: Hello everyone'); + }); - it('should propagate AngularJS→Angular changes through model() signals', waitForAsync(() => { + it('should propagate AngularJS→Angular changes through model() signals', async () => { const ng1Module = angular.module_('ng1', []).run(($rootScope: angular.IScope) => { $rootScope['value'] = 'initial'; }); @@ -253,20 +251,19 @@ withEachNg1Version(() => { | value: {{value}}
    `); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(multiTrim(document.body.textContent)).toEqual('Value: initial | value: initial'); + const upgrade = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(document.body.textContent)).toEqual('Value: initial | value: initial'); - $apply(upgrade, 'value = "updated"'); - expect(multiTrim(document.body.textContent)).toEqual('Value: updated | value: updated'); - }); - })); + $apply(upgrade, 'value = "updated"'); + expect(multiTrim(document.body.textContent)).toEqual('Value: updated | value: updated'); + }); - it('should propagate Angular→AngularJS changes through model() signals', waitForAsync(() => { + it('should propagate Angular→AngularJS changes through model() signals', async () => { const ng1Module = angular.module_('ng1', []).run(($rootScope: angular.IScope) => { $rootScope['value'] = 'initial'; }); - let componentInstance: Ng2Component; + let componentInstance!: Ng2Component; @Component({ selector: 'ng2', @@ -298,17 +295,16 @@ withEachNg1Version(() => { | value: {{value}}
    `); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(multiTrim(document.body.textContent)).toEqual('Value: initial | value: initial'); + const upgrade = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(document.body.textContent)).toEqual('Value: initial | value: initial'); - $apply(upgrade, () => componentInstance.value.set('from-angular')); - expect(multiTrim(document.body.textContent)).toEqual( - 'Value: from-angular | value: from-angular', - ); - }); - })); + $apply(upgrade, () => componentInstance.value.set('from-angular')); + expect(multiTrim(document.body.textContent)).toEqual( + 'Value: from-angular | value: from-angular', + ); + }); - it('should bind properties to onpush components', waitForAsync(() => { + it('should bind properties to onpush components', async () => { const ng1Module = angular.module_('ng1', []).run(($rootScope: angular.IScope) => { $rootScope['dataB'] = 'B'; }); @@ -342,14 +338,13 @@ withEachNg1Version(() => {
    `); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(multiTrim(document.body.textContent)).toEqual('oneWayB: B'); - $apply(upgrade, 'dataB= "everyone"'); - expect(multiTrim(document.body.textContent)).toEqual('oneWayB: everyone'); - }); - })); + const upgrade = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(document.body.textContent)).toEqual('oneWayB: B'); + $apply(upgrade, 'dataB= "everyone"'); + expect(multiTrim(document.body.textContent)).toEqual('oneWayB: everyone'); + }); - it('should support two-way binding and event listener', waitForAsync(() => { + it('should support two-way binding and event listener', async () => { const listenerSpy = jasmine.createSpy('$rootScope.listener'); const ng1Module = angular.module_('ng1', []).run(($rootScope: angular.IScope) => { $rootScope['value'] = 'world'; @@ -396,14 +391,13 @@ withEachNg1Version(() => {
    `); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(multiTrim(element.textContent)).toEqual('model: newC; | value: newC'); - expect(listenerSpy).toHaveBeenCalledWith('newC'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toEqual('model: newC; | value: newC'); + expect(listenerSpy).toHaveBeenCalledWith('newC'); + }); - it('should run change-detection on every digest (by default)', waitForAsync(() => { - let ng2Component: Ng2Component; + it('should run change-detection on every digest (by default)', async () => { + let ng2Component!: Ng2Component; @Component({ selector: 'ng2', @@ -431,49 +425,51 @@ withEachNg1Version(() => { const ng1Module = angular .module_('ng1', []) .directive('ng2', downgradeComponent({component: Ng2Component})) - .run(($rootScope: angular.IRootScopeService) => { - $rootScope['value1'] = 0; - $rootScope['value2'] = 0; - }); + .run([ + $ROOT_SCOPE, + ($rootScope: angular.IRootScopeService) => { + $rootScope['value1'] = 0; + $rootScope['value2'] = 0; + }, + ]); const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - const $rootScope = upgrade.$injector.get('$rootScope') as angular.IRootScopeService; + const upgrade = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const $rootScope = upgrade.$injector.get('$rootScope') as angular.IRootScopeService; - expect(element.textContent).toBe('0 | 0'); + expect(element.textContent).toBe('0 | 0'); - // Digest should invoke CD - $rootScope.$digest(); - $rootScope.$digest(); - expect(element.textContent).toBe('0 | 0'); + // Digest should invoke CD + $rootScope.$digest(); + $rootScope.$digest(); + expect(element.textContent).toBe('0 | 0'); - // Internal changes should be detected on digest - ng2Component.value1 = 1; - ng2Component.value2 = 2; - $rootScope.$digest(); - expect(element.textContent).toBe('1 | 2'); + // Internal changes should be detected on digest + ng2Component.value1 = 1; + ng2Component.value2 = 2; + $rootScope.$digest(); + expect(element.textContent).toBe('1 | 2'); - // Digest should propagate change in prop-bound input - $rootScope.$apply('value1 = 3'); - expect(element.textContent).toBe('3 | 2'); + // Digest should propagate change in prop-bound input + $rootScope.$apply('value1 = 3'); + expect(element.textContent).toBe('3 | 2'); - // Digest should propagate change in attr-bound input - ng2Component.value1 = 4; - $rootScope.$apply('value2 = 5'); - expect(element.textContent).toBe('4 | 5'); + // Digest should propagate change in attr-bound input + ng2Component.value1 = 4; + $rootScope.$apply('value2 = 5'); + expect(element.textContent).toBe('4 | 5'); - // Digest should propagate changes that happened before the digest - $rootScope['value1'] = 6; - expect(element.textContent).toBe('4 | 5'); + // Digest should propagate changes that happened before the digest + $rootScope['value1'] = 6; + expect(element.textContent).toBe('4 | 5'); - $rootScope.$digest(); - expect(element.textContent).toBe('6 | 5'); - }); - })); + $rootScope.$digest(); + expect(element.textContent).toBe('6 | 5'); + }); - it('should not run change-detection on every digest when opted out', waitForAsync(() => { - let ng2Component: Ng2Component; + it('should not run change-detection on every digest when opted out', async () => { + let ng2Component!: Ng2Component; @Component({ selector: 'ng2', @@ -501,46 +497,48 @@ withEachNg1Version(() => { const ng1Module = angular .module_('ng1', []) .directive('ng2', downgradeComponent({component: Ng2Component, propagateDigest: false})) - .run(($rootScope: angular.IRootScopeService) => { - $rootScope['value1'] = 0; - $rootScope['value2'] = 0; - }); + .run([ + $ROOT_SCOPE, + ($rootScope: angular.IRootScopeService) => { + $rootScope['value1'] = 0; + $rootScope['value2'] = 0; + }, + ]); const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - const $rootScope = upgrade.$injector.get('$rootScope') as angular.IRootScopeService; + const upgrade = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const $rootScope = upgrade.$injector.get('$rootScope') as angular.IRootScopeService; - expect(element.textContent).toBe('0 | 0'); + expect(element.textContent).toBe('0 | 0'); - // Digest should not invoke CD - $rootScope.$digest(); - $rootScope.$digest(); - expect(element.textContent).toBe('0 | 0'); + // Digest should not invoke CD + $rootScope.$digest(); + $rootScope.$digest(); + expect(element.textContent).toBe('0 | 0'); - // Digest should not invoke CD, even if component values have changed (internally) - ng2Component.value1 = 1; - ng2Component.value2 = 2; - $rootScope.$digest(); - expect(element.textContent).toBe('0 | 0'); + // Digest should not invoke CD, even if component values have changed (internally) + ng2Component.value1 = 1; + ng2Component.value2 = 2; + $rootScope.$digest(); + expect(element.textContent).toBe('0 | 0'); - // Digest should invoke CD, if prop-bound input has changed - $rootScope.$apply('value1 = 3'); - expect(element.textContent).toBe('3 | 2'); + // Digest should invoke CD, if prop-bound input has changed + $rootScope.$apply('value1 = 3'); + expect(element.textContent).toBe('3 | 2'); - // Digest should invoke CD, if attr-bound input has changed - ng2Component.value1 = 4; - $rootScope.$apply('value2 = 5'); - expect(element.textContent).toBe('4 | 5'); + // Digest should invoke CD, if attr-bound input has changed + ng2Component.value1 = 4; + $rootScope.$apply('value2 = 5'); + expect(element.textContent).toBe('4 | 5'); - // Digest should invoke CD, if input has changed before the digest - $rootScope['value1'] = 6; - $rootScope.$digest(); - expect(element.textContent).toBe('6 | 5'); - }); - })); + // Digest should invoke CD, if input has changed before the digest + $rootScope['value1'] = 6; + $rootScope.$digest(); + expect(element.textContent).toBe('6 | 5'); + }); - it('should still run normal Angular change-detection regardless of `propagateDigest`', fakeAsync(() => { + it('should still run normal Angular change-detection regardless of `propagateDigest`', async () => { @Component({ selector: 'ng2', template: '{{ value }}', @@ -550,7 +548,7 @@ withEachNg1Version(() => { class Ng2Component { value = 'foo'; constructor() { - setTimeout(() => (this.value = 'bar'), 1000); + setTimeout(() => (this.value = 'bar')); } } @@ -569,15 +567,14 @@ withEachNg1Version(() => { const element = html(' | '); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(element.textContent).toBe('foo | foo'); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(element.textContent).toBe('foo | foo'); - tick(1000); - expect(element.textContent).toBe('bar | bar'); - }); - })); + await timeout(); + expect(element.textContent).toBe('bar | bar'); + }); - it('should initialize inputs in time for `ngOnChanges`', waitForAsync(() => { + it('should initialize inputs in time for `ngOnChanges`', async () => { @Component({ selector: 'ng2', template: ` ngOnChangesCount: {{ ngOnChangesCount }} | firstChangesCount: @@ -623,24 +620,26 @@ withEachNg1Version(() => { `); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - const nodes = element.querySelectorAll('ng2'); - const expectedTextWith = (value: string) => - `ngOnChangesCount: 1 | firstChangesCount: 1 | initialValue: ${value}`; - - expect(multiTrim(nodes[0].textContent)).toBe(expectedTextWith('foo')); - expect(multiTrim(nodes[1].textContent)).toBe(expectedTextWith('bar')); - expect(multiTrim(nodes[2].textContent)).toBe(expectedTextWith('baz')); - expect(multiTrim(nodes[3].textContent)).toBe(expectedTextWith('qux')); - }); - })); - - it('should bind to ng-model', waitForAsync(() => { - const ng1Module = angular.module_('ng1', []).run(($rootScope: angular.IScope) => { - $rootScope['modelA'] = 'A'; - }); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const nodes = element.querySelectorAll('ng2'); + const expectedTextWith = (value: string) => + `ngOnChangesCount: 1 | firstChangesCount: 1 | initialValue: ${value}`; + + expect(multiTrim(nodes[0].textContent)).toBe(expectedTextWith('foo')); + expect(multiTrim(nodes[1].textContent)).toBe(expectedTextWith('bar')); + expect(multiTrim(nodes[2].textContent)).toBe(expectedTextWith('baz')); + expect(multiTrim(nodes[3].textContent)).toBe(expectedTextWith('qux')); + }); + + it('should bind to ng-model', async () => { + const ng1Module = angular.module_('ng1', []).run([ + $ROOT_SCOPE, + ($rootScope: angular.IScope) => { + $rootScope['modelA'] = 'A'; + }, + ]); - let ng2Instance: Ng2; + let ng2Instance!: Ng2; @Component({ selector: 'ng2', template: '{{_value}}', @@ -681,33 +680,30 @@ withEachNg1Version(() => { ngDoBootstrap() {} } - platformBrowserDynamic() - .bootstrapModule(Ng2Module) - .then((ref) => { - const adapter = ref.injector.get(UpgradeModule) as UpgradeModule; - adapter.bootstrap(element, [ng1Module.name]); - const $rootScope = adapter.$injector.get('$rootScope'); + const ref = await platformBrowserDynamic().bootstrapModule(Ng2Module); + const adapter = ref.injector.get(UpgradeModule) as UpgradeModule; + adapter.bootstrap(element, [ng1Module.name]); + const $rootScope = adapter.$injector.get('$rootScope'); - expect(multiTrim(document.body.textContent)).toEqual('A | A'); + expect(multiTrim(document.body.textContent)).toEqual('A | A'); - $rootScope.modelA = 'B'; - $rootScope.$apply(); - expect(multiTrim(document.body.textContent)).toEqual('B | B'); + $rootScope.modelA = 'B'; + $rootScope.$apply(); + expect(multiTrim(document.body.textContent)).toEqual('B | B'); - ng2Instance.doChange('C'); - expect($rootScope.modelA).toBe('C'); - expect(multiTrim(document.body.textContent)).toEqual('C | C'); + ng2Instance.doChange('C'); + expect($rootScope.modelA).toBe('C'); + expect(multiTrim(document.body.textContent)).toEqual('C | C'); - const downgradedElement = document.body.querySelector('ng2'); - expect(downgradedElement.classList.contains('ng-touched')).toBe(false); + const downgradedElement = document.body.querySelector('ng2'); + expect(downgradedElement.classList.contains('ng-touched')).toBe(false); - ng2Instance.doTouch(); - $rootScope.$apply(); - expect(downgradedElement.classList.contains('ng-touched')).toBe(true); - }); - })); + ng2Instance.doTouch(); + $rootScope.$apply(); + expect(downgradedElement.classList.contains('ng-touched')).toBe(true); + }); - it('should properly run cleanup when ng1 directive is destroyed', waitForAsync(() => { + it('should properly run cleanup when ng1 directive is destroyed', async () => { let destroyed = false; @Component({ selector: 'ng2', @@ -733,46 +729,41 @@ withEachNg1Version(() => { }) .directive('ng2', downgradeComponent({component: Ng2Component})); const element = html(''); - platformBrowserDynamic() - .bootstrapModule(Ng2Module) - .then((ref) => { - const adapter = ref.injector.get(UpgradeModule) as UpgradeModule; - adapter.bootstrap(element, [ng1Module.name]); - - const ng2Element = angular.element(element.querySelector('ng2') as Element); - const ng2Descendants = Array.from(element.querySelectorAll('ng2 li')).map( - angular.element, - ); - let ng2ElementDestroyed = false; - let ng2DescendantsDestroyed = [false, false]; - - ng2Element.data!('test', 42); - ng2Descendants.forEach((elem, i) => elem.data!('test', i)); - ng2Element.on!('$destroy', () => (ng2ElementDestroyed = true)); - ng2Descendants.forEach((elem, i) => - elem.on!('$destroy', () => (ng2DescendantsDestroyed[i] = true)), - ); - - expect(element.textContent).toBe('test1test2'); - expect(destroyed).toBe(false); - expect(ng2Element.data!('test')).toBe(42); - ng2Descendants.forEach((elem, i) => expect(elem.data!('test')).toBe(i)); - expect(ng2ElementDestroyed).toBe(false); - expect(ng2DescendantsDestroyed).toEqual([false, false]); - - const $rootScope = adapter.$injector.get('$rootScope'); - $rootScope.$apply('destroyIt = true'); - - expect(element.textContent).toBe(''); - expect(destroyed).toBe(true); - expect(ng2Element.data!('test')).toBeUndefined(); - ng2Descendants.forEach((elem) => expect(elem.data!('test')).toBeUndefined()); - expect(ng2ElementDestroyed).toBe(true); - expect(ng2DescendantsDestroyed).toEqual([true, true]); - }); - })); - - it('should properly run cleanup with multiple levels of nesting', waitForAsync(() => { + const ref = await platformBrowserDynamic().bootstrapModule(Ng2Module); + const adapter = ref.injector.get(UpgradeModule) as UpgradeModule; + adapter.bootstrap(element, [ng1Module.name]); + + const ng2Element = angular.element(element.querySelector('ng2') as Element); + const ng2Descendants = Array.from(element.querySelectorAll('ng2 li')).map(angular.element); + let ng2ElementDestroyed = false; + let ng2DescendantsDestroyed = [false, false]; + + ng2Element.data!('test', 42); + ng2Descendants.forEach((elem, i) => elem.data!('test', i)); + ng2Element.on!('$destroy', () => (ng2ElementDestroyed = true)); + ng2Descendants.forEach((elem, i) => + elem.on!('$destroy', () => (ng2DescendantsDestroyed[i] = true)), + ); + + expect(element.textContent).toBe('test1test2'); + expect(destroyed).toBe(false); + expect(ng2Element.data!('test')).toBe(42); + ng2Descendants.forEach((elem, i) => expect(elem.data!('test')).toBe(i)); + expect(ng2ElementDestroyed).toBe(false); + expect(ng2DescendantsDestroyed).toEqual([false, false]); + + const $rootScope = adapter.$injector.get('$rootScope'); + $rootScope.$apply('destroyIt = true'); + + expect(element.textContent).toBe(''); + expect(destroyed).toBe(true); + expect(ng2Element.data!('test')).toBeUndefined(); + ng2Descendants.forEach((elem) => expect(elem.data!('test')).toBeUndefined()); + expect(ng2ElementDestroyed).toBe(true); + expect(ng2DescendantsDestroyed).toEqual([true, true]); + }); + + it('should properly run cleanup with multiple levels of nesting', async () => { let destroyed = false; @Component({ @@ -823,18 +814,17 @@ withEachNg1Version(() => { const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(element.textContent).toBe('test'); - expect(destroyed).toBe(false); + const upgrade = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(element.textContent).toBe('test'); + expect(destroyed).toBe(false); - $apply(upgrade, 'destroyIt = true'); + $apply(upgrade, 'destroyIt = true'); - expect(element.textContent).toBe(''); - expect(destroyed).toBe(true); - }); - })); + expect(element.textContent).toBe(''); + expect(destroyed).toBe(true); + }); - it('should destroy the AngularJS app when `PlatformRef` is destroyed', waitForAsync(() => { + it('should destroy the AngularJS app when `PlatformRef` is destroyed', async () => { @Component({ selector: 'ng2', template: 'NG2', @@ -859,46 +849,45 @@ withEachNg1Version(() => { const element = html('
    '); const platformRef = platformBrowserDynamic(); - platformRef.bootstrapModule(Ng2Module).then((ref) => { - const upgrade = ref.injector.get(UpgradeModule); - upgrade.bootstrap(element, [ng1Module.name]); + const ref = await platformRef.bootstrapModule(Ng2Module); + const upgrade = ref.injector.get(UpgradeModule); + upgrade.bootstrap(element, [ng1Module.name]); - const $rootScope: angular.IRootScopeService = upgrade.$injector.get($ROOT_SCOPE); - const rootScopeDestroySpy = spyOn($rootScope, '$destroy'); + const $rootScope: angular.IRootScopeService = upgrade.$injector.get($ROOT_SCOPE); + const rootScopeDestroySpy = spyOn($rootScope, '$destroy'); - const appElem = angular.element(element); - const ng1Elem = angular.element(element.querySelector('ng1') as Element); - const ng2Elem = angular.element(element.querySelector('ng2') as Element); - const ng2ChildElem = angular.element(element.querySelector('ng2 span') as Element); + const appElem = angular.element(element); + const ng1Elem = angular.element(element.querySelector('ng1') as Element); + const ng2Elem = angular.element(element.querySelector('ng2') as Element); + const ng2ChildElem = angular.element(element.querySelector('ng2 span') as Element); - // Attach data to all elements. - appElem.data!('testData', 1); - ng1Elem.data!('testData', 2); - ng2Elem.data!('testData', 3); - ng2ChildElem.data!('testData', 4); + // Attach data to all elements. + appElem.data!('testData', 1); + ng1Elem.data!('testData', 2); + ng2Elem.data!('testData', 3); + ng2ChildElem.data!('testData', 4); - // Verify data can be retrieved. - expect(appElem.data!('testData')).toBe(1); - expect(ng1Elem.data!('testData')).toBe(2); - expect(ng2Elem.data!('testData')).toBe(3); - expect(ng2ChildElem.data!('testData')).toBe(4); + // Verify data can be retrieved. + expect(appElem.data!('testData')).toBe(1); + expect(ng1Elem.data!('testData')).toBe(2); + expect(ng2Elem.data!('testData')).toBe(3); + expect(ng2ChildElem.data!('testData')).toBe(4); - expect(rootScopeDestroySpy).not.toHaveBeenCalled(); + expect(rootScopeDestroySpy).not.toHaveBeenCalled(); - // Destroy `PlatformRef`. - platformRef.destroy(); + // Destroy `PlatformRef`. + platformRef.destroy(); - // Verify `$rootScope` has been destroyed and data has been cleaned up. - expect(rootScopeDestroySpy).toHaveBeenCalled(); + // Verify `$rootScope` has been destroyed and data has been cleaned up. + expect(rootScopeDestroySpy).toHaveBeenCalled(); - expect(appElem.data!('testData')).toBeUndefined(); - expect(ng1Elem.data!('testData')).toBeUndefined(); - expect(ng2Elem.data!('testData')).toBeUndefined(); - expect(ng2ChildElem.data!('testData')).toBeUndefined(); - }); - })); + expect(appElem.data!('testData')).toBeUndefined(); + expect(ng1Elem.data!('testData')).toBeUndefined(); + expect(ng2Elem.data!('testData')).toBeUndefined(); + expect(ng2ChildElem.data!('testData')).toBeUndefined(); + }); - it('should work when compiled outside the dom (by fallback to the root ng2.injector)', waitForAsync(() => { + it('should work when compiled outside the dom (by fallback to the root ng2.injector)', async () => { @Component({ selector: 'ng2', template: 'test', @@ -936,15 +925,14 @@ withEachNg1Version(() => { .directive('ng2', downgradeComponent({component: Ng2Component})); const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - // the fact that the body contains the correct text means that the - // downgraded component was able to access the moduleInjector - // (since there is no other injector in this system) - expect(multiTrim(document.body.textContent)).toEqual('test'); - }); - })); - - it('should allow attribute selectors for downgraded components', waitForAsync(() => { + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + // the fact that the body contains the correct text means that the + // downgraded component was able to access the moduleInjector + // (since there is no other injector in this system) + expect(multiTrim(document.body.textContent)).toEqual('test'); + }); + + it('should allow attribute selectors for downgraded components', async () => { @Component({ selector: '[itWorks]', template: 'It works', @@ -964,12 +952,11 @@ withEachNg1Version(() => { const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(multiTrim(document.body.textContent)).toBe('It works'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(document.body.textContent)).toBe('It works'); + }); - it('should allow attribute selectors for components in ng2', waitForAsync(() => { + it('should allow attribute selectors for components in ng2', async () => { @Component({ selector: '[itWorks]', template: 'It works', @@ -1000,12 +987,11 @@ withEachNg1Version(() => { const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(multiTrim(document.body.textContent)).toBe('It works!'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(document.body.textContent)).toBe('It works!'); + }); - it('should respect hierarchical dependency injection for ng2', waitForAsync(() => { + it('should respect hierarchical dependency injection for ng2', async () => { @Component({ selector: 'parent', template: 'parent()', @@ -1038,12 +1024,11 @@ withEachNg1Version(() => { const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(multiTrim(document.body.textContent)).toBe('parent(child)'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(document.body.textContent)).toBe('parent(child)'); + }); - it('should be compiled synchronously, if possible', waitForAsync(() => { + it('should be compiled synchronously, if possible', async () => { @Component({ selector: 'ng2A', template: '', @@ -1074,13 +1059,12 @@ withEachNg1Version(() => { const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(element.textContent).toBe('Ng2 template'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(element.textContent).toBe('Ng2 template'); + }); - it('should work with ng2 lazy loaded components', waitForAsync(() => { - let componentInjector: Injector; + it('should work with ng2 lazy loaded components', async () => { + let componentInjector!: Injector; @Component({ selector: 'ng2', @@ -1122,22 +1106,21 @@ withEachNg1Version(() => { const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - const modInjector = upgrade.injector; - // Emulate the router lazy loading a module and creating a component - const compiler = modInjector.get(Compiler); - const modFactory = compiler.compileModuleSync(LazyLoadedModule); - const childMod = modFactory.create(modInjector); - const lazyCmp = createComponent(LazyLoadedComponent, { - environmentInjector: childMod.injector, - elementInjector: componentInjector, - }); - - expect(lazyCmp.instance.module.injector === childMod.injector).toBe(true); + const upgrade = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const modInjector = upgrade.injector; + // Emulate the router lazy loading a module and creating a component + const compiler = modInjector.get(Compiler); + const modFactory = compiler.compileModuleSync(LazyLoadedModule); + const childMod = modFactory.create(modInjector); + const lazyCmp = createComponent(LazyLoadedComponent, { + environmentInjector: childMod.injector, + elementInjector: componentInjector, }); - })); - it('should throw if `downgradedModule` is specified', waitForAsync(() => { + expect(lazyCmp.instance.module.injector === childMod.injector).toBe(true); + }); + + it('should throw if `downgradedModule` is specified', async () => { @Component({ selector: 'ng2', template: '', @@ -1160,7 +1143,7 @@ withEachNg1Version(() => { const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then( + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then( () => { throw new Error('Expected bootstraping to fail.'); }, @@ -1172,14 +1155,14 @@ withEachNg1Version(() => { "downgrading more than one Angular module (via 'downgradeModule()').", ), ); - })); + }); }); describe('standalone', () => { beforeEach(() => destroyPlatform()); afterEach(() => destroyPlatform()); - it('should downgrade a standalone component using NgModule APIs', waitForAsync(() => { + it('should downgrade a standalone component using NgModule APIs', async () => { @Component({ selector: 'ng2', template: 'Hi from Angular!', @@ -1199,9 +1182,8 @@ withEachNg1Version(() => { } const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(element.textContent).toBe('Hi from Angular!'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(element.textContent).toBe('Hi from Angular!'); + }); }); }); diff --git a/packages/upgrade/static/test/integration/downgrade_module_spec.ts b/packages/upgrade/static/test/integration/downgrade_module_spec.ts index d02f5872222f..f02445fdad8b 100644 --- a/packages/upgrade/static/test/integration/downgrade_module_spec.ts +++ b/packages/upgrade/static/test/integration/downgrade_module_spec.ts @@ -34,9 +34,9 @@ import { Type, ViewRef, } from '@angular/core'; -import {fakeAsync, tick, waitForAsync} from '@angular/core/testing'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {timeout} from '@angular/private/testing'; import {downgradeComponent, downgradeModule, UpgradeComponent} from '../../../static'; import * as angular from '../../../src/common/src/angular1'; @@ -60,7 +60,7 @@ withEachNg1Version(() => { beforeEach(() => destroyPlatform()); afterEach(() => destroyPlatform()); - it('should support multiple downgraded modules', waitForAsync(() => { + it('should support multiple downgraded modules', async () => { @Component({ selector: 'ng2A', template: 'a', @@ -124,10 +124,11 @@ withEachNg1Version(() => { angular.bootstrap(element, [ng1Module.name]); // Wait for the module to be bootstrapped. - setTimeout(() => expect(element.textContent).toBe('a | b')); - })); + await timeout(); + expect(element.textContent).toBe('a | b'); + }); - it('should support downgrading modules by providing NgModule class to `downgradeModule` call', waitForAsync(() => { + it('should support downgrading modules by providing NgModule class to `downgradeModule` call', async () => { @Component({ selector: 'ng2A', template: 'a', @@ -183,10 +184,11 @@ withEachNg1Version(() => { angular.bootstrap(element, [ng1Module.name]); // Wait for the module to be bootstrapped. - setTimeout(() => expect(element.textContent).toBe('a | b')); - })); + await timeout(); + expect(element.textContent).toBe('a | b'); + }); - it('should support nesting components from different downgraded modules', waitForAsync(() => { + it('should support nesting components from different downgraded modules', async () => { @Directive({ selector: 'ng1A', standalone: false, @@ -264,20 +266,19 @@ withEachNg1Version(() => { const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; // Wait for module A to be bootstrapped. - setTimeout(() => { - // Wait for the upgraded component's `ngOnInit()`. - setTimeout(() => { - expect(element.textContent).toBe('ng2A(ng1A())'); + await timeout(); + // Wait for the upgraded component's `ngOnInit()`. + await timeout(); + expect(element.textContent).toBe('ng2A(ng1A())'); - $rootScope.$apply('showB = true'); + $rootScope.$apply('showB = true'); - // Wait for module B to be bootstrapped. - setTimeout(() => expect(element.textContent).toBe('ng2A(ng1A(ng2B))')); - }); - }); - })); + // Wait for module B to be bootstrapped. + await timeout(); + expect(element.textContent).toBe('ng2A(ng1A(ng2B))'); + }); - it('should support nesting components from different downgraded modules (via projection)', waitForAsync(() => { + it('should support nesting components from different downgraded modules (via projection)', async () => { @Component({ selector: 'ng2A', template: 'ng2A()', @@ -344,17 +345,17 @@ withEachNg1Version(() => { const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; // Wait for module A to be bootstrapped. - setTimeout(() => { - expect(element.textContent).toBe('ng2A()'); + await timeout(); + expect(element.textContent).toBe('ng2A()'); - $rootScope.$apply('showB = true'); + $rootScope.$apply('showB = true'); - // Wait for module B to be bootstrapped. - setTimeout(() => expect(element.textContent).toBe('ng2A(ng2B)')); - }); - })); + // Wait for module B to be bootstrapped. + await timeout(); + expect(element.textContent).toBe('ng2A(ng2B)'); + }); - it('should support manually setting up a root module for all downgraded modules', fakeAsync(() => { + it('should support manually setting up a root module for all downgraded modules', async () => { @Injectable({providedIn: 'root'}) class CounterService { private static counter = 0; @@ -447,23 +448,26 @@ withEachNg1Version(() => { const $injector = angular.bootstrap(element, [ng1Module.name]); const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; - tick(); // Wait for module A to be bootstrapped. + await timeout(); // Wait for module A to be bootstrapped. + await timeout(); // Wait for `$evalAsync()` to run change detection. expect(multiTrim(element.textContent)).toBe('ng2A(Counter:1 | )'); // Nested component B should use the same `CounterService` instance. $rootScope.$apply('showB1 = true'); - tick(); // Wait for module B to be bootstrapped. + await timeout(); // Wait for module B to be bootstrapped. + await timeout(); // Wait for `$evalAsync()` to run change detection. expect(multiTrim(element.children[0].textContent)).toBe('ng2A(Counter:1 | Counter:1)'); // Top-level component B should use the same `CounterService` instance. $rootScope.$apply('showB2 = true'); - tick(); + await timeout(); + await timeout(); expect(multiTrim(element.children[1].textContent)).toBe('Counter:1'); - })); + }); - it('should correctly traverse the injector tree of downgraded components', waitForAsync(() => { + it('should correctly traverse the injector tree of downgraded components', async () => { @Component({ selector: 'ng2A', template: 'ng2A()', @@ -532,24 +536,23 @@ withEachNg1Version(() => { const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; // Wait for the module to be bootstrapped. - setTimeout(() => { - expect(multiTrim(element.textContent)).toBe('ng2A()'); + await timeout(); + expect(multiTrim(element.textContent)).toBe('ng2A()'); - // Nested component B. - $rootScope.$apply('showB1 = true'); - expect(multiTrim(element.children[0].textContent)).toBe( - 'ng2A( FOO:CompB-foo BAR:CompA-bar BAZ:Mod-baz QUX:Plat-qux )', - ); + // Nested component B. + $rootScope.$apply('showB1 = true'); + expect(multiTrim(element.children[0].textContent)).toBe( + 'ng2A( FOO:CompB-foo BAR:CompA-bar BAZ:Mod-baz QUX:Plat-qux )', + ); - // Standalone component B. - $rootScope.$apply('showB2 = true'); - expect(multiTrim(element.children[1].textContent)).toBe( - 'FOO:CompB-foo BAR:Mod-bar BAZ:Mod-baz QUX:Plat-qux', - ); - }); - })); + // Standalone component B. + $rootScope.$apply('showB2 = true'); + expect(multiTrim(element.children[1].textContent)).toBe( + 'FOO:CompB-foo BAR:Mod-bar BAZ:Mod-baz QUX:Plat-qux', + ); + }); - it('should correctly traverse the injector tree of downgraded components (from different modules)', waitForAsync(() => { + it('should correctly traverse the injector tree of downgraded components (from different modules)', async () => { @Component({ selector: 'ng2A', template: 'ng2A()', @@ -652,31 +655,29 @@ withEachNg1Version(() => { const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; // Wait for module A to be bootstrapped. - setTimeout(() => { - expect(multiTrim(element.textContent)).toBe('ng2A()'); - - // Nested component B. - $rootScope.$apply('showB1 = true'); - - // Wait for module B to be bootstrapped. - setTimeout(() => { - // It is debatable, whether the order of traversal should be: - // CompB > CompA > ModB > ModA > Plat (similar to how lazy-loaded components - // work) - expect(multiTrim(element.children[0].textContent)).toBe( - 'ng2A( FOO:CompB-foo BAR:CompA-bar BAZ:ModB-baz QUX:Plat-qux QUUX:Plat-quux )', - ); + await timeout(); + expect(multiTrim(element.textContent)).toBe('ng2A()'); - // Standalone component B. - $rootScope.$apply('showB2 = true'); - expect(multiTrim(element.children[1].textContent)).toBe( - 'FOO:CompB-foo BAR:ModB-bar BAZ:ModB-baz QUX:Plat-qux QUUX:Plat-quux', - ); - }); - }); - })); + // Nested component B. + $rootScope.$apply('showB1 = true'); - it('should support downgrading a component and propagate inputs', waitForAsync(() => { + // Wait for module B to be bootstrapped. + await timeout(); + // It is debatable, whether the order of traversal should be: + // CompB > CompA > ModB > ModA > Plat (similar to how lazy-loaded components + // work) + expect(multiTrim(element.children[0].textContent)).toBe( + 'ng2A( FOO:CompB-foo BAR:CompA-bar BAZ:ModB-baz QUX:Plat-qux QUUX:Plat-quux )', + ); + + // Standalone component B. + $rootScope.$apply('showB2 = true'); + expect(multiTrim(element.children[1].textContent)).toBe( + 'FOO:CompB-foo BAR:ModB-bar BAZ:ModB-baz QUX:Plat-qux QUUX:Plat-quux', + ); + }); + + it('should support downgrading a component and propagate inputs', async () => { @Component({ selector: 'ng2A', template: 'a({{ value }}) | ', @@ -732,15 +733,54 @@ withEachNg1Version(() => { expect(() => $injector.get(INJECTOR_KEY)).toThrowError(); // Wait for the module to be bootstrapped. - setTimeout(() => { - expect(() => $injector.get(INJECTOR_KEY)).not.toThrow(); + await timeout(); + expect(() => $injector.get(INJECTOR_KEY)).not.toThrow(); + + // Wait for `$evalAsync()` to propagate inputs. + await timeout(); + expect(element.textContent).toBe('a(1) | b(1)'); + }); - // Wait for `$evalAsync()` to propagate inputs. - setTimeout(() => expect(element.textContent).toBe('a(1) | b(1)')); + it('should compile and link projected content when the component is created asynchronously', async () => { + @Component({template: '[]'}) + class Ng2Component {} + + @NgModule({imports: [BrowserModule]}) + class Ng2Module { + ngDoBootstrap() {} + } + + const ng1Module = angular + .module_('ng1', [downgradeModule(Ng2Module)]) + .directive('ng2', downgradeComponent({component: Ng2Component, propagateDigest})) + .run([ + '$rootScope', + ($rootScope: angular.IRootScopeService) => { + $rootScope['items'] = ['a', 'b']; + $rootScope['show'] = true; + }, + ]); + + const element = html(` +
    + {{ item }};! +
    + `); + const $injector = angular.bootstrap(element, [ng1Module.name]); + const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; + + await ($injector.get(LAZY_MODULE_REF) as LazyModuleRef).promise; + $rootScope.$digest(); + expect(multiTrim(element.textContent)).toBe('[a;b;!]'); + + $rootScope.$apply(() => { + $rootScope['items'] = ['c']; + $rootScope['show'] = false; }); - })); + expect(multiTrim(element.textContent)).toBe('[c;]'); + }); - it('should support using an upgraded service', waitForAsync(() => { + it('should support using an upgraded service', async () => { @Injectable() class Ng2Service { constructor(@Inject('ng1Value') private ng1Value: string) {} @@ -797,15 +837,15 @@ withEachNg1Version(() => { expect(() => $injector.get(INJECTOR_KEY)).toThrowError(); // Wait for the module to be bootstrapped. - setTimeout(() => { - expect(() => $injector.get(INJECTOR_KEY)).not.toThrow(); + await timeout(); + expect(() => $injector.get(INJECTOR_KEY)).not.toThrow(); - // Wait for `$evalAsync()` to propagate inputs. - setTimeout(() => expect(element.textContent).toBe('foo-bar')); - }); - })); + // Wait for `$evalAsync()` to propagate inputs. + await timeout(); + expect(element.textContent).toBe('foo-bar'); + }); - it('should create components inside the Angular zone', waitForAsync(() => { + it('should create components inside the Angular zone', async () => { @Component({ selector: 'ng2', template: 'In the zone: {{ inTheZone }}', @@ -839,13 +879,13 @@ withEachNg1Version(() => { angular.bootstrap(element, [ng1Module.name]); // Wait for the module to be bootstrapped. - setTimeout(() => { - // Wait for `$evalAsync()` to propagate inputs. - setTimeout(() => expect(element.textContent).toBe('In the zone: true')); - }); - })); + await timeout(); + // Wait for `$evalAsync()` to propagate inputs. + await timeout(); + expect(element.textContent).toBe('In the zone: true'); + }); - it('should destroy components inside the Angular zone', waitForAsync(() => { + it('should destroy components inside the Angular zone', async () => { let destroyedInTheZone = false; @Component({ @@ -881,14 +921,13 @@ withEachNg1Version(() => { const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; // Wait for the module to be bootstrapped. - setTimeout(() => { - $rootScope.$apply('hideNg2 = true'); - expect(destroyedInTheZone).toBe(true); - }); - })); + await timeout(); + $rootScope.$apply('hideNg2 = true'); + expect(destroyedInTheZone).toBe(true); + }); - it('should propagate input changes inside the Angular zone', waitForAsync(() => { - let ng2Component: Ng2Component; + it('should propagate input changes inside the Angular zone', async () => { + let ng2Component!: Ng2Component; @Component({ selector: 'ng2', @@ -933,30 +972,28 @@ withEachNg1Version(() => { const $injector = angular.bootstrap(element, [ng1Module.name]); const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; - setTimeout(() => { - // Wait for the module to be bootstrapped. - setTimeout(() => { - // Wait for `$evalAsync()` to propagate inputs. - const expectToBeInNgZone = () => expect(NgZone.isInAngularZone()).toBe(true); - const changesSpy = spyOn(ng2Component, 'ngOnChanges').and.callFake(expectToBeInNgZone); - - expect(ng2Component.attrInput).toBe('bar'); - expect(ng2Component.propInput).toBe('bar'); - - $rootScope.$apply('attrVal = "baz"'); - expect(ng2Component.attrInput).toBe('baz'); - expect(ng2Component.propInput).toBe('bar'); - expect(changesSpy).toHaveBeenCalledTimes(1); - - $rootScope.$apply('propVal = "qux"'); - expect(ng2Component.attrInput).toBe('baz'); - expect(ng2Component.propInput).toBe('qux'); - expect(changesSpy).toHaveBeenCalledTimes(2); - }); - }); - })); + // Wait for the module to be bootstrapped. + await timeout(); + // Wait for `$evalAsync()` to propagate inputs. + await timeout(); + const expectToBeInNgZone = () => expect(NgZone.isInAngularZone()).toBe(true); + const changesSpy = spyOn(ng2Component, 'ngOnChanges').and.callFake(expectToBeInNgZone); + + expect(ng2Component.attrInput).toBe('bar'); + expect(ng2Component.propInput).toBe('bar'); + + $rootScope.$apply('attrVal = "baz"'); + expect(ng2Component.attrInput).toBe('baz'); + expect(ng2Component.propInput).toBe('bar'); + expect(changesSpy).toHaveBeenCalledTimes(1); + + $rootScope.$apply('propVal = "qux"'); + expect(ng2Component.attrInput).toBe('baz'); + expect(ng2Component.propInput).toBe('qux'); + expect(changesSpy).toHaveBeenCalledTimes(2); + }); - it('should create and destroy nested, asynchronously instantiated components inside the Angular zone', waitForAsync(() => { + it('should create and destroy nested, asynchronously instantiated components inside the Angular zone', async () => { let createdInTheZone = false; let destroyedInTheZone = false; @@ -1005,22 +1042,21 @@ withEachNg1Version(() => { const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; // Wait for the module to be bootstrapped. - setTimeout(() => { - // Create nested component asynchronously. - expect(createdInTheZone).toBe(false); + await timeout(); + // Create nested component asynchronously. + expect(createdInTheZone).toBe(false); - $rootScope.$apply('showNg2 = true'); - expect(createdInTheZone).toBe(true); + $rootScope.$apply('showNg2 = true'); + expect(createdInTheZone).toBe(true); - // Destroy nested component asynchronously. - expect(destroyedInTheZone).toBe(false); + // Destroy nested component asynchronously. + expect(destroyedInTheZone).toBe(false); - $rootScope.$apply('showNg2 = false'); - expect(destroyedInTheZone).toBe(true); - }); - })); + $rootScope.$apply('showNg2 = false'); + expect(destroyedInTheZone).toBe(true); + }); - it('should wire up the component for change detection', waitForAsync(() => { + it('should wire up the component for change detection', async () => { @Component({ selector: 'ng2', template: '{{ count }}', @@ -1053,23 +1089,21 @@ withEachNg1Version(() => { const element = html(''); angular.bootstrap(element, [ng1Module.name]); - setTimeout(() => { - // Wait for the module to be bootstrapped. - setTimeout(() => { - // Wait for `$evalAsync()` to propagate inputs. - const button = element.querySelector('button')!; - expect(element.textContent).toBe('0'); + // Wait for the module to be bootstrapped. + await timeout(); + // Wait for `$evalAsync()` to propagate inputs. + await timeout(); + const button = element.querySelector('button')!; + expect(element.textContent).toBe('0'); - button.click(); - expect(element.textContent).toBe('1'); + button.click(); + expect(element.textContent).toBe('1'); - button.click(); - expect(element.textContent).toBe('2'); - }); - }); - })); + button.click(); + expect(element.textContent).toBe('2'); + }); - it('should wire up nested, asynchronously instantiated components for change detection', waitForAsync(() => { + it('should wire up nested, asynchronously instantiated components for change detection', async () => { @Component({ selector: 'test', template: '{{ count }}', @@ -1113,24 +1147,23 @@ withEachNg1Version(() => { const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; // Wait for the module to be bootstrapped. - setTimeout(() => { - // Create nested component asynchronously. - $rootScope.$apply('showNg2 = true'); - const button = element.querySelector('button')!; + await timeout(); + // Create nested component asynchronously. + $rootScope.$apply('showNg2 = true'); + const button = element.querySelector('button')!; - expect(element.textContent).toBe('0'); + expect(element.textContent).toBe('0'); - button.click(); - expect(element.textContent).toBe('1'); + button.click(); + expect(element.textContent).toBe('1'); - button.click(); - expect(element.textContent).toBe('2'); - }); - })); + button.click(); + expect(element.textContent).toBe('2'); + }); - it('should run the lifecycle hooks in the correct order', waitForAsync(() => { + it('should run the lifecycle hooks in the correct order', async () => { const logs: string[] = []; - let rootScope: angular.IRootScopeService; + let rootScope!: angular.IRootScopeService; @Component({ selector: 'ng2', @@ -1209,112 +1242,106 @@ withEachNg1Version(() => { const element = html('
    Content
    '); angular.bootstrap(element, [ng1Module.name]); - setTimeout(() => { - // Wait for the module to be bootstrapped. - setTimeout(() => { - // Wait for `$evalAsync()` to propagate inputs. - const button = element.querySelector('button')!; - - // Once initialized. - expect(multiTrim(element.textContent)).toBe('bar Content'); - expect(logs).toEqual([ - // `ngOnChanges()` call triggered directly through the `inputChanges` - // $watcher. - 'OnChanges(bar)', - // Initial CD triggered directly through the `detectChanges()` or - // `inputChanges` - // $watcher (for `propagateDigest` true/false respectively). - 'OnInit(bar)', - 'DoCheck(bar)', - 'AfterContentInit(bar)', - 'AfterContentChecked(bar)', - 'AfterViewInit(bar)', - 'AfterViewChecked(bar)', - ...(propagateDigest - ? [ - // CD triggered directly through the `detectChanges()` $watcher (2nd - // $digest). - 'DoCheck(bar)', - 'AfterContentChecked(bar)', - 'AfterViewChecked(bar)', - ] - : []), - // CD triggered due to entering/leaving the NgZone (in `downgradeFn()`). - 'DoCheck(bar)', - 'AfterContentChecked(bar)', - 'AfterViewChecked(bar)', - ]); - logs.length = 0; - - // Change inputs and run `$digest`. - rootScope.$apply('value = "baz"'); - expect(multiTrim(element.textContent)).toBe('baz Content'); - expect(logs).toEqual([ - // `ngOnChanges()` call triggered directly through the `inputChanges` - // $watcher. - 'OnChanges(baz)', - // `propagateDigest: true` (3 CD runs): - // - CD triggered due to entering/leaving the NgZone (in `inputChanges` - // $watcher). - // - CD triggered directly through the `detectChanges()` $watcher. - // - CD triggered due to entering/leaving the NgZone (in `detectChanges` - // $watcher). - // `propagateDigest: false` (2 CD runs): - // - CD triggered directly through the `inputChanges` $watcher. - // - CD triggered due to entering/leaving the NgZone (in `inputChanges` - // $watcher). - 'DoCheck(baz)', - 'AfterContentChecked(baz)', - 'AfterViewChecked(baz)', - 'DoCheck(baz)', - 'AfterContentChecked(baz)', - 'AfterViewChecked(baz)', - ...(propagateDigest - ? ['DoCheck(baz)', 'AfterContentChecked(baz)', 'AfterViewChecked(baz)'] - : []), - ]); - logs.length = 0; - - // Run `$digest` (without changing inputs). - rootScope.$digest(); - expect(multiTrim(element.textContent)).toBe('baz Content'); - expect(logs).toEqual( - propagateDigest - ? [ - // CD triggered directly through the `detectChanges()` $watcher. - 'DoCheck(baz)', - 'AfterContentChecked(baz)', - 'AfterViewChecked(baz)', - // CD triggered due to entering/leaving the NgZone (in the above - // $watcher). - 'DoCheck(baz)', - 'AfterContentChecked(baz)', - 'AfterViewChecked(baz)', - ] - : [], - ); - logs.length = 0; - - // Trigger change detection (without changing inputs). - button.click(); - expect(multiTrim(element.textContent)).toBe('qux Content'); - expect(logs).toEqual([ - 'DoCheck(qux)', - 'AfterContentChecked(qux)', - 'AfterViewChecked(qux)', - ]); - logs.length = 0; - - // Destroy the component. - rootScope.$apply('hideNg2 = true'); - expect(logs).toEqual(['OnDestroy(qux)']); - logs.length = 0; - }); - }); - })); + // Wait for the module to be bootstrapped. + await timeout(); + // Wait for `$evalAsync()` to propagate inputs. + await timeout(); + const button = element.querySelector('button')!; + + // Once initialized. + expect(multiTrim(element.textContent)).toBe('bar Content'); + expect(logs).toEqual([ + // `ngOnChanges()` call triggered directly through the `inputChanges` + // $watcher. + 'OnChanges(bar)', + // Initial CD triggered directly through the `detectChanges()` or + // `inputChanges` + // $watcher (for `propagateDigest` true/false respectively). + 'OnInit(bar)', + 'DoCheck(bar)', + 'AfterContentInit(bar)', + 'AfterContentChecked(bar)', + 'AfterViewInit(bar)', + 'AfterViewChecked(bar)', + ...(propagateDigest + ? [ + // CD triggered directly through the `detectChanges()` $watcher (2nd + // $digest). + 'DoCheck(bar)', + 'AfterContentChecked(bar)', + 'AfterViewChecked(bar)', + ] + : []), + // CD triggered due to entering/leaving the NgZone (in `downgradeFn()`). + 'DoCheck(bar)', + 'AfterContentChecked(bar)', + 'AfterViewChecked(bar)', + ]); + logs.length = 0; + + // Change inputs and run `$digest`. + rootScope.$apply('value = "baz"'); + expect(multiTrim(element.textContent)).toBe('baz Content'); + expect(logs).toEqual([ + // `ngOnChanges()` call triggered directly through the `inputChanges` + // $watcher. + 'OnChanges(baz)', + // `propagateDigest: true` (3 CD runs): + // - CD triggered due to entering/leaving the NgZone (in `inputChanges` + // $watcher). + // - CD triggered directly through the `detectChanges()` $watcher. + // - CD triggered due to entering/leaving the NgZone (in `detectChanges` + // $watcher). + // `propagateDigest: false` (2 CD runs): + // - CD triggered directly through the `inputChanges` $watcher. + // - CD triggered due to entering/leaving the NgZone (in `inputChanges` + // $watcher). + 'DoCheck(baz)', + 'AfterContentChecked(baz)', + 'AfterViewChecked(baz)', + 'DoCheck(baz)', + 'AfterContentChecked(baz)', + 'AfterViewChecked(baz)', + ...(propagateDigest + ? ['DoCheck(baz)', 'AfterContentChecked(baz)', 'AfterViewChecked(baz)'] + : []), + ]); + logs.length = 0; + + // Run `$digest` (without changing inputs). + rootScope.$digest(); + expect(multiTrim(element.textContent)).toBe('baz Content'); + expect(logs).toEqual( + propagateDigest + ? [ + // CD triggered directly through the `detectChanges()` $watcher. + 'DoCheck(baz)', + 'AfterContentChecked(baz)', + 'AfterViewChecked(baz)', + // CD triggered due to entering/leaving the NgZone (in the above + // $watcher). + 'DoCheck(baz)', + 'AfterContentChecked(baz)', + 'AfterViewChecked(baz)', + ] + : [], + ); + logs.length = 0; + + // Trigger change detection (without changing inputs). + button.click(); + expect(multiTrim(element.textContent)).toBe('qux Content'); + expect(logs).toEqual(['DoCheck(qux)', 'AfterContentChecked(qux)', 'AfterViewChecked(qux)']); + logs.length = 0; + + // Destroy the component. + rootScope.$apply('hideNg2 = true'); + expect(logs).toEqual(['OnDestroy(qux)']); + logs.length = 0; + }); - it('should detach hostViews from the ApplicationRef once destroyed', waitForAsync(() => { - let ng2Component: Ng2Component; + it('should detach hostViews from the ApplicationRef once destroyed', async () => { + let ng2Component!: Ng2Component; @Component({ selector: 'ng2', @@ -1350,25 +1377,22 @@ withEachNg1Version(() => { const $injector = angular.bootstrap(element, [ng1Module.name]); const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; - setTimeout(() => { - // Wait for the module to be bootstrapped. - setTimeout(() => { - // Wait for the hostView to be attached (during the `$digest`). - const hostView: ViewRef = ( - ng2Component.appRef.attachView as jasmine.Spy - ).calls.mostRecent().args[0]; + // Wait for the module to be bootstrapped. + await timeout(); + // Wait for the hostView to be attached (during the `$digest`). + await timeout(); + const hostView: ViewRef = (ng2Component.appRef.attachView as jasmine.Spy).calls.mostRecent() + .args[0]; - expect(hostView.destroyed).toBe(false); + expect(hostView.destroyed).toBe(false); - $rootScope.$apply('hideNg2 = true'); + $rootScope.$apply('hideNg2 = true'); - expect(hostView.destroyed).toBe(true); - expect(ng2Component.appRef.detachView).toHaveBeenCalledWith(hostView); - }); - }); - })); + expect(hostView.destroyed).toBe(true); + expect(ng2Component.appRef.detachView).toHaveBeenCalledWith(hostView); + }); - it('should properly run cleanup when a downgraded component is destroyed', waitForAsync(() => { + it('should properly run cleanup when a downgraded component is destroyed', async () => { let destroyed = false; @Component({ @@ -1403,41 +1427,38 @@ withEachNg1Version(() => { const $injector = angular.bootstrap(element, [ng1Module.name]); const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; - setTimeout(() => { - // Wait for the module to be bootstrapped. - const ng2Element = angular.element(element.querySelector('ng2') as Element); - const ng2Descendants = Array.from(element.querySelectorAll('ng2 li')).map( - angular.element, - ); - let ng2ElementDestroyed = false; - let ng2DescendantsDestroyed = [false, false]; - - ng2Element.data!('test', 42); - ng2Descendants.forEach((elem, i) => elem.data!('test', i)); - ng2Element.on!('$destroy', () => (ng2ElementDestroyed = true)); - ng2Descendants.forEach((elem, i) => - elem.on!('$destroy', () => (ng2DescendantsDestroyed[i] = true)), - ); + // Wait for the module to be bootstrapped. + await timeout(); + const ng2Element = angular.element(element.querySelector('ng2') as Element); + const ng2Descendants = Array.from(element.querySelectorAll('ng2 li')).map(angular.element); + let ng2ElementDestroyed = false; + let ng2DescendantsDestroyed = [false, false]; + + ng2Element.data!('test', 42); + ng2Descendants.forEach((elem, i) => elem.data!('test', i)); + ng2Element.on!('$destroy', () => (ng2ElementDestroyed = true)); + ng2Descendants.forEach((elem, i) => + elem.on!('$destroy', () => (ng2DescendantsDestroyed[i] = true)), + ); + + expect(element.textContent).toBe('test1test2'); + expect(destroyed).toBe(false); + expect(ng2Element.data!('test')).toBe(42); + ng2Descendants.forEach((elem, i) => expect(elem.data!('test')).toBe(i)); + expect(ng2ElementDestroyed).toBe(false); + expect(ng2DescendantsDestroyed).toEqual([false, false]); + + $rootScope.$apply('hideNg2 = true'); - expect(element.textContent).toBe('test1test2'); - expect(destroyed).toBe(false); - expect(ng2Element.data!('test')).toBe(42); - ng2Descendants.forEach((elem, i) => expect(elem.data!('test')).toBe(i)); - expect(ng2ElementDestroyed).toBe(false); - expect(ng2DescendantsDestroyed).toEqual([false, false]); - - $rootScope.$apply('hideNg2 = true'); - - expect(element.textContent).toBe(''); - expect(destroyed).toBe(true); - expect(ng2Element.data!('test')).toBeUndefined(); - ng2Descendants.forEach((elem) => expect(elem.data!('test')).toBeUndefined()); - expect(ng2ElementDestroyed).toBe(true); - expect(ng2DescendantsDestroyed).toEqual([true, true]); - }); - })); + expect(element.textContent).toBe(''); + expect(destroyed).toBe(true); + expect(ng2Element.data!('test')).toBeUndefined(); + ng2Descendants.forEach((elem) => expect(elem.data!('test')).toBeUndefined()); + expect(ng2ElementDestroyed).toBe(true); + expect(ng2DescendantsDestroyed).toEqual([true, true]); + }); - it('should only retrieve the Angular zone once (and cache it for later use)', fakeAsync(() => { + it('should only retrieve the Angular zone once (and cache it for later use)', async () => { let count = 0; let getNgZoneCount = 0; @@ -1483,8 +1504,9 @@ withEachNg1Version(() => { const $rootScope = $injector.get($ROOT_SCOPE) as angular.IRootScopeService; $rootScope.$apply('showNg2 = true'); - tick(0); // Wait for the module to be bootstrapped and `$evalAsync()` to - // propagate inputs. + // Wait for the module to be bootstrapped and `$evalAsync()` to propagate inputs. + await timeout(); + await timeout(); const injector = ($injector.get(LAZY_MODULE_REF) as LazyModuleRef).injector!; const injectorGet = injector.get; @@ -1499,14 +1521,14 @@ withEachNg1Version(() => { expect(element.textContent).toBe(''); $rootScope.$apply('showNg2 = true'); - tick(0); // Wait for `$evalAsync()` to propagate inputs. + await timeout(); // Wait for `$evalAsync()` to propagate inputs. expect(element.textContent).toBe('Count: 2 | In the zone: true'); $rootScope.$destroy(); - })); + }); - it("should give access to both injectors in the Angular module's constructor", waitForAsync(() => { - let $injectorFromNg2: angular.IInjectorService | null = null; + it("should give access to both injectors in the Angular module's constructor", async () => { + let $injectorFromNg2 = null as angular.IInjectorService | null; @Component({ selector: 'ng2', @@ -1540,10 +1562,11 @@ withEachNg1Version(() => { const $injectorFromNg1 = angular.bootstrap(element, [ng1Module.name]); // Wait for the module to be bootstrapped. - setTimeout(() => expect($injectorFromNg2).toBe($injectorFromNg1)); - })); + await timeout(); + expect($injectorFromNg2).toBe($injectorFromNg1); + }); - it('should destroy the AngularJS app when `PlatformRef` is destroyed', waitForAsync(() => { + it('should destroy the AngularJS app when `PlatformRef` is destroyed', async () => { @Component({ selector: 'ng2', template: 'NG2', @@ -1572,42 +1595,41 @@ withEachNg1Version(() => { const element = html('
    '); const $injector = angular.bootstrap(element, [ng1Module.name]); - setTimeout(() => { - // Wait for the module to be bootstrapped. - const $rootScope: angular.IRootScopeService = $injector.get($ROOT_SCOPE); - const rootScopeDestroySpy = spyOn($rootScope, '$destroy'); - - const appElem = angular.element(element); - const ng1Elem = angular.element(element.querySelector('ng1') as Element); - const ng2Elem = angular.element(element.querySelector('ng2') as Element); - const ng2ChildElem = angular.element(element.querySelector('ng2 span') as Element); - - // Attach data to all elements. - appElem.data!('testData', 1); - ng1Elem.data!('testData', 2); - ng2Elem.data!('testData', 3); - ng2ChildElem.data!('testData', 4); - - // Verify data can be retrieved. - expect(appElem.data!('testData')).toBe(1); - expect(ng1Elem.data!('testData')).toBe(2); - expect(ng2Elem.data!('testData')).toBe(3); - expect(ng2ChildElem.data!('testData')).toBe(4); - - expect(rootScopeDestroySpy).not.toHaveBeenCalled(); - - // Destroy `PlatformRef`. - getPlatform()?.destroy(); - - // Verify `$rootScope` has been destroyed and data has been cleaned up. - expect(rootScopeDestroySpy).toHaveBeenCalled(); - - expect(appElem.data!('testData')).toBeUndefined(); - expect(ng1Elem.data!('testData')).toBeUndefined(); - expect(ng2Elem.data!('testData')).toBeUndefined(); - expect(ng2ChildElem.data!('testData')).toBeUndefined(); - }); - })); + // Wait for the module to be bootstrapped. + await timeout(); + const $rootScope: angular.IRootScopeService = $injector.get($ROOT_SCOPE); + const rootScopeDestroySpy = spyOn($rootScope, '$destroy'); + + const appElem = angular.element(element); + const ng1Elem = angular.element(element.querySelector('ng1') as Element); + const ng2Elem = angular.element(element.querySelector('ng2') as Element); + const ng2ChildElem = angular.element(element.querySelector('ng2 span') as Element); + + // Attach data to all elements. + appElem.data!('testData', 1); + ng1Elem.data!('testData', 2); + ng2Elem.data!('testData', 3); + ng2ChildElem.data!('testData', 4); + + // Verify data can be retrieved. + expect(appElem.data!('testData')).toBe(1); + expect(ng1Elem.data!('testData')).toBe(2); + expect(ng2Elem.data!('testData')).toBe(3); + expect(ng2ChildElem.data!('testData')).toBe(4); + + expect(rootScopeDestroySpy).not.toHaveBeenCalled(); + + // Destroy `PlatformRef`. + getPlatform()?.destroy(); + + // Verify `$rootScope` has been destroyed and data has been cleaned up. + expect(rootScopeDestroySpy).toHaveBeenCalled(); + + expect(appElem.data!('testData')).toBeUndefined(); + expect(ng1Elem.data!('testData')).toBeUndefined(); + expect(ng2Elem.data!('testData')).toBeUndefined(); + expect(ng2ChildElem.data!('testData')).toBeUndefined(); + }); describe('(common error)', () => { let Ng2CompA: Type; @@ -1668,7 +1690,7 @@ withEachNg1Version(() => { // Explicitly clean up after each test to prevent that. afterEach(() => setTempInjectorRef(null!)); - it('should throw if no downgraded module is included', waitForAsync(() => { + it('should throw if no downgraded module is included', async () => { const ng1Module = angular .module_('ng1', []) .value($EXCEPTION_HANDLER, errorSpy) @@ -1710,9 +1732,10 @@ withEachNg1Version(() => { ), '', ); - })); + await timeout(); + }); - it('should throw if the corresponding downgraded module is not included', waitForAsync(() => { + it('should throw if the corresponding downgraded module is not included', async () => { const ng1Module = angular .module_('ng1', [downModA]) .value($EXCEPTION_HANDLER, errorSpy) @@ -1746,9 +1769,10 @@ withEachNg1Version(() => { ), '', ); - })); + await timeout(); + }); - it('should throw if `downgradedModule` is not specified and there are multiple downgraded modules', waitForAsync(() => { + it('should throw if `downgradedModule` is not specified and there are multiple downgraded modules', async () => { const ng1Module = angular .module_('ng1', [downModA, downModB]) .value($EXCEPTION_HANDLER, errorSpy) @@ -1782,7 +1806,8 @@ withEachNg1Version(() => { ), '', ); - })); + await timeout(); + }); }); }); }); diff --git a/packages/upgrade/static/test/integration/examples_spec.ts b/packages/upgrade/static/test/integration/examples_spec.ts index 3078348fdf7e..b8d4391d64f4 100644 --- a/packages/upgrade/static/test/integration/examples_spec.ts +++ b/packages/upgrade/static/test/integration/examples_spec.ts @@ -15,7 +15,6 @@ import { Input, NgModule, } from '@angular/core'; -import {waitForAsync} from '@angular/core/testing'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; import {downgradeComponent, UpgradeComponent, UpgradeModule} from '../../../static'; @@ -37,7 +36,7 @@ withEachNg1Version(() => { it('should have AngularJS loaded', () => expect(angular.getAngularJSGlobal().version.major).toBe(1)); - it('should verify UpgradeAdapter example', waitForAsync(() => { + it('should verify UpgradeAdapter example', async () => { // This is wrapping (upgrading) an AngularJS component to be used in an Angular // component @Directive({ @@ -94,9 +93,8 @@ withEachNg1Version(() => { const element = html('project'); // Let's use a helper function to make this simpler - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(multiTrim(element.textContent)).toBe('ng2[ng1[Hello World!](transclude)](project)'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('ng2[ng1[Hello World!](transclude)](project)'); + }); }); }); diff --git a/packages/upgrade/static/test/integration/injection_spec.ts b/packages/upgrade/static/test/integration/injection_spec.ts index 8f91bdd447a5..b390e8349ef4 100644 --- a/packages/upgrade/static/test/integration/injection_spec.ts +++ b/packages/upgrade/static/test/integration/injection_spec.ts @@ -7,7 +7,6 @@ */ import {destroyPlatform, InjectionToken, Injector, NgModule} from '@angular/core'; -import {waitForAsync} from '@angular/core/testing'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; @@ -28,7 +27,7 @@ withEachNg1Version(() => { beforeEach(() => destroyPlatform()); afterEach(() => destroyPlatform()); - it('should downgrade ng2 service to ng1', waitForAsync(() => { + it('should downgrade ng2 service to ng1', async () => { // Tokens used in ng2 to identify services const Ng2Service = new InjectionToken('ng2-service'); @@ -46,13 +45,17 @@ withEachNg1Version(() => { .module_('ng1Module', []) .factory('ng2Service', downgradeInjectable(Ng2Service)); - bootstrap(platformBrowserDynamic(), Ng2Module, html('
    '), ng1Module).then((upgrade) => { - const ng1Injector = upgrade.$injector; - expect(ng1Injector.get('ng2Service')).toBe('ng2 service value'); - }); - })); - - it('should upgrade ng1 service to ng2', waitForAsync(() => { + const upgrade = await bootstrap( + platformBrowserDynamic(), + Ng2Module, + html('
    '), + ng1Module, + ); + const ng1Injector = upgrade.$injector; + expect(ng1Injector.get('ng2Service')).toBe('ng2 service value'); + }); + + it('should upgrade ng1 service to ng2', async () => { // Tokens used in ng2 to identify services const Ng1Service = new InjectionToken('ng1-service'); @@ -75,13 +78,17 @@ withEachNg1Version(() => { // create the ng1 module that will import an ng2 service const ng1Module = angular.module_('ng1Module', []).value('ng1Service', 'ng1 service value'); - bootstrap(platformBrowserDynamic(), Ng2Module, html('
    '), ng1Module).then((upgrade) => { - const ng2Injector = upgrade.injector; - expect(ng2Injector.get(Ng1Service)).toBe('ng1 service value'); - }); - })); - - it('should initialize the upgraded injector before application run blocks are executed', waitForAsync(() => { + const upgrade = await bootstrap( + platformBrowserDynamic(), + Ng2Module, + html('
    '), + ng1Module, + ); + const ng2Injector = upgrade.injector; + expect(ng2Injector.get(Ng1Service)).toBe('ng1 service value'); + }); + + it('should initialize the upgraded injector before application run blocks are executed', async () => { let runBlockTriggered = false; const ng1Module = angular.module_('ng1Module', []).run([ @@ -97,12 +104,11 @@ withEachNg1Version(() => { ngDoBootstrap() {} } - bootstrap(platformBrowserDynamic(), Ng2Module, html('
    '), ng1Module).then(() => { - expect(runBlockTriggered).toBeTruthy(); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, html('
    '), ng1Module); + expect(runBlockTriggered).toBeTruthy(); + }); - it('should allow resetting angular at runtime', waitForAsync(() => { + it('should allow resetting angular at runtime', async () => { let wrappedBootstrapCalled = false; const n: any = getAngularJSGlobal(); @@ -126,9 +132,9 @@ withEachNg1Version(() => { const ng1Module = angular.module_('ng1Module', []); - bootstrap(platformBrowserDynamic(), Ng2Module, html('
    '), ng1Module) - .then((upgrade) => expect(wrappedBootstrapCalled).toBe(true)) - .then(() => setAngularJSGlobal(n)); // Reset the AngularJS global. - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, html('
    '), ng1Module); + expect(wrappedBootstrapCalled).toBe(true); + setAngularJSGlobal(n); // Reset the AngularJS global. + }); }); }); diff --git a/packages/upgrade/static/test/integration/testability_spec.ts b/packages/upgrade/static/test/integration/testability_spec.ts index fb8d566927b7..596e13f80615 100644 --- a/packages/upgrade/static/test/integration/testability_spec.ts +++ b/packages/upgrade/static/test/integration/testability_spec.ts @@ -13,9 +13,9 @@ import { NgZone, provideZoneChangeDetection, } from '@angular/core'; -import {fakeAsync, flush, tick} from '@angular/core/testing'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {timeout} from '@angular/private/testing'; import {UpgradeModule} from '../../../static'; import * as angular from '../../../src/common/src/angular1'; @@ -33,7 +33,7 @@ withEachNg1Version(() => { ngDoBootstrap() {} } - it('should handle deferred bootstrap', fakeAsync(() => { + it('should handle deferred bootstrap', async () => { let applicationRunning = false; let stayedInTheZone: boolean = undefined!; const ng1Module = angular.module_('ng1', []).run(() => { @@ -44,19 +44,19 @@ withEachNg1Version(() => { const element = html('
    '); window.name = 'NG_DEFER_BOOTSTRAP!' + window.name; - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); setTimeout(() => { (window).angular.resumeBootstrap(); - }, 100); + }, 10); expect(applicationRunning).toEqual(false); - tick(100); + await timeout(10); expect(applicationRunning).toEqual(true); expect(stayedInTheZone).toEqual(true); - })); + }); - it('should propagate return value of resumeBootstrap', fakeAsync(() => { + it('should propagate return value of resumeBootstrap', async () => { const ng1Module = angular.module_('ng1', []); let a1Injector: angular.IInjectorService | undefined; ng1Module.run([ @@ -68,85 +68,81 @@ withEachNg1Version(() => { const element = html('
    '); window.name = 'NG_DEFER_BOOTSTRAP!' + window.name; - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); - - tick(100); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); const value = (window).angular.resumeBootstrap(); expect(value).toBe(a1Injector); - flush(); - })); + await timeout(); + }); - it('should wait for ng2 testability', fakeAsync(() => { + it('should wait for ng2 testability', async () => { const ng1Module = angular.module_('ng1', []); const element = html('
    '); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - const zone = upgrade.injector.get(NgZone); - let ng2Stable = false; - let ng1Stable = false; - - zone.run(() => { - setTimeout(() => { - ng2Stable = true; - }, 100); - }); - - angular.getTestability(element).whenStable(() => { - ng1Stable = true; - }); - - expect(ng1Stable).toEqual(false); - expect(ng2Stable).toEqual(false); - tick(100); - expect(ng1Stable).toEqual(true); - expect(ng2Stable).toEqual(true); + const upgrade = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const zone = upgrade.injector.get(NgZone); + let ng2Stable = false; + let ng1Stable = false; + + zone.run(() => { + setTimeout(() => { + ng2Stable = true; + }, 10); }); - })); - it('should not wait for $interval', fakeAsync(() => { + angular.getTestability(element).whenStable(() => { + ng1Stable = true; + }); + + expect(ng1Stable).toEqual(false); + expect(ng2Stable).toEqual(false); + await timeout(10); + expect(ng1Stable).toEqual(true); + expect(ng2Stable).toEqual(true); + }); + + it('should not wait for $interval', async () => { const ng1Module = angular.module_('ng1', []); const element = html('
    '); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - const ng2Testability: Testability = upgrade.injector.get(Testability); - const $interval: angular.IIntervalService = upgrade.$injector.get('$interval'); - - let ng2Stable = false; - let intervalDone = false; - - const id = $interval( - (arg: string) => { - // should only be called once - expect(intervalDone).toEqual(false); - - intervalDone = true; - expect(NgZone.isInAngularZone()).toEqual(true); - expect(arg).toEqual('passed argument'); - }, - 200, - 0, - true, - 'passed argument', - ); - - ng2Testability.whenStable(() => { - ng2Stable = true; - }); + const upgrade = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const ng2Testability: Testability = upgrade.injector.get(Testability); + const $interval: angular.IIntervalService = upgrade.$injector.get('$interval'); - tick(100); + let ng2Stable = false; + let intervalDone = false; - expect(intervalDone).toEqual(false); - expect(ng2Stable).toEqual(true); + const id = $interval( + (arg: string) => { + // should only be called once + expect(intervalDone).toEqual(false); - tick(200); - expect(intervalDone).toEqual(true); - expect($interval.cancel(id)).toEqual(true); - - // Interval should not fire after cancel - tick(200); + intervalDone = true; + expect(NgZone.isInAngularZone()).toEqual(true); + expect(arg).toEqual('passed argument'); + }, + 20, + 0, + true, + 'passed argument', + ); + + ng2Testability.whenStable(() => { + ng2Stable = true; }); - })); + + await timeout(10); + + expect(intervalDone).toEqual(false); + expect(ng2Stable).toEqual(true); + + await timeout(20); + expect(intervalDone).toEqual(true); + expect($interval.cancel(id)).toEqual(true); + + // Interval should not fire after cancel + await timeout(20); + }); }); }); diff --git a/packages/upgrade/static/test/integration/upgrade_component_spec.ts b/packages/upgrade/static/test/integration/upgrade_component_spec.ts index 7ac136812c2f..7dd654fef872 100644 --- a/packages/upgrade/static/test/integration/upgrade_component_spec.ts +++ b/packages/upgrade/static/test/integration/upgrade_component_spec.ts @@ -21,9 +21,9 @@ import { Output, SimpleChanges, } from '@angular/core'; -import {fakeAsync, tick, waitForAsync} from '@angular/core/testing'; import {BrowserModule} from '@angular/platform-browser'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; +import {timeout} from '@angular/private/testing'; import * as angular from '../../../src/common/src/angular1'; import {$EXCEPTION_HANDLER, $SCOPE} from '../../../src/common/src/constants'; @@ -42,7 +42,7 @@ withEachNg1Version(() => { afterEach(() => destroyPlatform()); describe('template/templateUrl', () => { - it('should support `template` (string)', waitForAsync(() => { + it('should support `template` (string)', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = {template: 'Hello, Angular!'}; @@ -83,12 +83,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => { - expect(multiTrim(element.textContent)).toBe('Hello, Angular!'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('Hello, Angular!'); + }); - it('should support `template` (function)', waitForAsync(() => { + it('should support `template` (function)', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = {template: () => 'Hello, Angular!'}; @@ -130,12 +129,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('Hello, Angular!'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('Hello, Angular!'); + }); - it('should pass $element to `template` function and not $attrs', waitForAsync(() => { + it('should pass $element to `template` function and not $attrs', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = { template: ($attrs: angular.IAttributes, $element: angular.IAugmentedJQuery) => { @@ -184,12 +182,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('Hello, Angular!'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('Hello, Angular!'); + }); - it('should support `templateUrl` (string) fetched from `$templateCache`', waitForAsync(() => { + it('should support `templateUrl` (string) fetched from `$templateCache`', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = {templateUrl: 'ng1.component.html'}; @@ -234,12 +231,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('Hello, Angular!'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('Hello, Angular!'); + }); - it('should support `templateUrl` (function) fetched from `$templateCache`', waitForAsync(() => { + it('should support `templateUrl` (function) fetched from `$templateCache`', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = {templateUrl: () => 'ng1.component.html'}; @@ -284,12 +280,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('Hello, Angular!'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('Hello, Angular!'); + }); - it('should pass $element to `templateUrl` function and not $attrs', waitForAsync(() => { + it('should pass $element to `templateUrl` function and not $attrs', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = { templateUrl: ($attrs: angular.IAttributes, $element: angular.IAugmentedJQuery) => { @@ -341,13 +336,12 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('Hello, Angular!'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('Hello, Angular!'); + }); // NOT SUPPORTED YET - xit('should support `templateUrl` (string) fetched from the server', fakeAsync(() => { + xit('should support `templateUrl` (string) fetched from the server', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = {templateUrl: 'ng1.component.html'}; @@ -377,7 +371,7 @@ withEachNg1Version(() => { .component('ng1', ng1Component) .directive('ng2', downgradeComponent({component: Ng2Component})) .value('$httpBackend', (method: string, url: string, post: any, callback: Function) => - setTimeout(() => callback(200, `${method}:${url}`.toLowerCase()), 1000), + setTimeout(() => callback(200, `${method}:${url}`.toLowerCase()), 20), ); // Define `Ng2Module` @@ -392,17 +386,16 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - tick(500); - expect(multiTrim(element.textContent)).toBe(''); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + await timeout(5); + expect(multiTrim(element.textContent)).toBe(''); - tick(500); - expect(multiTrim(element.textContent)).toBe('get:ng1.component.html'); - }); - })); + await timeout(20); + expect(multiTrim(element.textContent)).toBe('get:ng1.component.html'); + }); // NOT SUPPORTED YET - xit('should support `templateUrl` (function) fetched from the server', fakeAsync(() => { + xit('should support `templateUrl` (function) fetched from the server', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = {templateUrl: () => 'ng1.component.html'}; @@ -432,7 +425,7 @@ withEachNg1Version(() => { .component('ng1', ng1Component) .directive('ng2', downgradeComponent({component: Ng2Component})) .value('$httpBackend', (method: string, url: string, post: any, callback: Function) => - setTimeout(() => callback(200, `${method}:${url}`.toLowerCase()), 1000), + setTimeout(() => callback(200, `${method}:${url}`.toLowerCase()), 20), ); // Define `Ng2Module` @@ -447,16 +440,15 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - tick(500); - expect(multiTrim(element.textContent)).toBe(''); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + await timeout(5); + expect(multiTrim(element.textContent)).toBe(''); - tick(500); - expect(multiTrim(element.textContent)).toBe('get:ng1.component.html'); - }); - })); + await timeout(20); + expect(multiTrim(element.textContent)).toBe('get:ng1.component.html'); + }); - it('should support empty templates', waitForAsync(() => { + it('should support empty templates', async () => { // Define `ng1Component`s const ng1ComponentA: angular.IComponent = {template: ''}; const ng1ComponentB: angular.IComponent = {template: () => ''}; @@ -546,14 +538,13 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe(''); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe(''); + }); }); describe('bindings', () => { - it('should support `@` bindings', fakeAsync(() => { + it('should support `@` bindings', async () => { let ng2ComponentInstance: Ng2Component; // Define `ng1Component` @@ -613,28 +604,27 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - const ng1 = element.querySelector('ng1')!; - const ng1Controller = angular.element(ng1).controller?.('ng1'); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const ng1 = element.querySelector('ng1')!; + const ng1Controller = angular.element(ng1).controller?.('ng1'); - expect(multiTrim(element.textContent)).toBe('Inside: foo, bar | Outside: foo, bar'); + expect(multiTrim(element.textContent)).toBe('Inside: foo, bar | Outside: foo, bar'); - ng1Controller.inputA = 'baz'; - ng1Controller.inputB = 'qux'; - tick(); + ng1Controller.inputA = 'baz'; + ng1Controller.inputB = 'qux'; + await timeout(); - expect(multiTrim(element.textContent)).toBe('Inside: baz, qux | Outside: foo, bar'); + expect(multiTrim(element.textContent)).toBe('Inside: baz, qux | Outside: foo, bar'); - ng2ComponentInstance.dataA = 'foo2'; - ng2ComponentInstance.dataB = 'bar2'; - $digest(adapter); - tick(); + ng2ComponentInstance!.dataA = 'foo2'; + ng2ComponentInstance!.dataB = 'bar2'; + $digest(adapter); + await timeout(); - expect(multiTrim(element.textContent)).toBe('Inside: foo2, bar2 | Outside: foo2, bar2'); - }); - })); + expect(multiTrim(element.textContent)).toBe('Inside: foo2, bar2 | Outside: foo2, bar2'); + }); - it('should support `<` bindings', fakeAsync(() => { + it('should support `<` bindings', async () => { let ng2ComponentInstance: Ng2Component; // Define `ng1Component` @@ -694,28 +684,27 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - const ng1 = element.querySelector('ng1')!; - const ng1Controller = angular.element(ng1).controller?.('ng1'); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const ng1 = element.querySelector('ng1')!; + const ng1Controller = angular.element(ng1).controller?.('ng1'); - expect(multiTrim(element.textContent)).toBe('Inside: foo, bar | Outside: foo, bar'); + expect(multiTrim(element.textContent)).toBe('Inside: foo, bar | Outside: foo, bar'); - ng1Controller.inputA = {value: 'baz'}; - ng1Controller.inputB = {value: 'qux'}; - tick(); + ng1Controller.inputA = {value: 'baz'}; + ng1Controller.inputB = {value: 'qux'}; + await timeout(); - expect(multiTrim(element.textContent)).toBe('Inside: baz, qux | Outside: foo, bar'); + expect(multiTrim(element.textContent)).toBe('Inside: baz, qux | Outside: foo, bar'); - ng2ComponentInstance.dataA = {value: 'foo2'}; - ng2ComponentInstance.dataB = {value: 'bar2'}; - $digest(adapter); - tick(); + ng2ComponentInstance!.dataA = {value: 'foo2'}; + ng2ComponentInstance!.dataB = {value: 'bar2'}; + $digest(adapter); + await timeout(); - expect(multiTrim(element.textContent)).toBe('Inside: foo2, bar2 | Outside: foo2, bar2'); - }); - })); + expect(multiTrim(element.textContent)).toBe('Inside: foo2, bar2 | Outside: foo2, bar2'); + }); - it('should support `=` bindings', fakeAsync(() => { + it('should support `=` bindings', async () => { let ng2ComponentInstance: Ng2Component; // Define `ng1Component` @@ -777,28 +766,27 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - const ng1 = element.querySelector('ng1')!; - const ng1Controller = angular.element(ng1).controller?.('ng1'); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const ng1 = element.querySelector('ng1')!; + const ng1Controller = angular.element(ng1).controller?.('ng1'); - expect(multiTrim(element.textContent)).toBe('Inside: foo, bar | Outside: foo, bar'); + expect(multiTrim(element.textContent)).toBe('Inside: foo, bar | Outside: foo, bar'); - ng1Controller.inputA = {value: 'baz'}; - ng1Controller.inputB = {value: 'qux'}; - tick(); + ng1Controller.inputA = {value: 'baz'}; + ng1Controller.inputB = {value: 'qux'}; + await timeout(); - expect(multiTrim(element.textContent)).toBe('Inside: baz, qux | Outside: baz, qux'); + expect(multiTrim(element.textContent)).toBe('Inside: baz, qux | Outside: baz, qux'); - ng2ComponentInstance.dataA = {value: 'foo2'}; - ng2ComponentInstance.dataB = {value: 'bar2'}; - $digest(adapter); - tick(); + ng2ComponentInstance!.dataA = {value: 'foo2'}; + ng2ComponentInstance!.dataB = {value: 'bar2'}; + $digest(adapter); + await timeout(); - expect(multiTrim(element.textContent)).toBe('Inside: foo2, bar2 | Outside: foo2, bar2'); - }); - })); + expect(multiTrim(element.textContent)).toBe('Inside: foo2, bar2 | Outside: foo2, bar2'); + }); - it('should support `&` bindings', fakeAsync(() => { + it('should support `&` bindings', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = { template: 'Inside: -', @@ -852,21 +840,20 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - const ng1 = element.querySelector('ng1')!; - const ng1Controller = angular.element(ng1).controller?.('ng1'); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const ng1 = element.querySelector('ng1')!; + const ng1Controller = angular.element(ng1).controller?.('ng1'); - expect(multiTrim(element.textContent)).toBe('Inside: - | Outside: foo, bar'); + expect(multiTrim(element.textContent)).toBe('Inside: - | Outside: foo, bar'); - ng1Controller.outputA('baz'); - ng1Controller.outputB('qux'); - tick(); + ng1Controller.outputA('baz'); + ng1Controller.outputB('qux'); + await timeout(); - expect(multiTrim(element.textContent)).toBe('Inside: - | Outside: baz, qux'); - }); - })); + expect(multiTrim(element.textContent)).toBe('Inside: - | Outside: baz, qux'); + }); - it('should bind properties, events', fakeAsync(() => { + it('should bind properties, events', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = { template: ` @@ -954,25 +941,24 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe( - 'Hello Savkin, Victor, SF; A: VICTOR; B: SAVKIN; C: sf | ' + - 'Hello TEST; A: First; B: Last; C: City | ' + - 'WORKS - SAVKIN, Victor, SF', - ); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe( + 'Hello Savkin, Victor, SF; A: VICTOR; B: SAVKIN; C: sf | ' + + 'Hello TEST; A: First; B: Last; C: City | ' + + 'WORKS - SAVKIN, Victor, SF', + ); - // Detect changes - tick(); + // Detect changes + await timeout(); - expect(multiTrim(element.textContent)).toBe( - 'Hello SAVKIN, Victor, SF; A: VICTOR; B: SAVKIN; C: sf | ' + - 'Hello TEST; A: First; B: Last; C: City | ' + - 'WORKS - SAVKIN, Victor, SF', - ); - }); - })); + expect(multiTrim(element.textContent)).toBe( + 'Hello SAVKIN, Victor, SF; A: VICTOR; B: SAVKIN; C: sf | ' + + 'Hello TEST; A: First; B: Last; C: City | ' + + 'WORKS - SAVKIN, Victor, SF', + ); + }); - it('should bind optional properties', fakeAsync(() => { + it('should bind optional properties', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = { template: 'Inside: {{ $ctrl.inputA.value }}, {{ $ctrl.inputB }}', @@ -1036,39 +1022,38 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - const ng1s = element.querySelectorAll('ng1')!; - const ng1Controller0 = angular.element(ng1s[0]).controller?.('ng1'); - const ng1Controller1 = angular.element(ng1s[1]).controller?.('ng1'); - const ng1Controller2 = angular.element(ng1s[2]).controller?.('ng1'); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const ng1s = element.querySelectorAll('ng1')!; + const ng1Controller0 = angular.element(ng1s[0]).controller?.('ng1'); + const ng1Controller1 = angular.element(ng1s[1]).controller?.('ng1'); + const ng1Controller2 = angular.element(ng1s[2]).controller?.('ng1'); - expect(multiTrim(element.textContent)).toBe( - 'Inside: foo, bar | Inside: , Bar | Inside: , | Inside: , | Outside: foo, bar', - ); + expect(multiTrim(element.textContent)).toBe( + 'Inside: foo, bar | Inside: , Bar | Inside: , | Inside: , | Outside: foo, bar', + ); - ng1Controller0.inputA.value = 'baz'; - ng1Controller0.inputB = 'qux'; - tick(); + ng1Controller0.inputA.value = 'baz'; + ng1Controller0.inputB = 'qux'; + await timeout(); - expect(multiTrim(element.textContent)).toBe( - 'Inside: baz, qux | Inside: , Bar | Inside: , | Inside: , | Outside: baz, qux', - ); + expect(multiTrim(element.textContent)).toBe( + 'Inside: baz, qux | Inside: , Bar | Inside: , | Inside: , | Outside: baz, qux', + ); - ng1Controller1.outputA({value: 'foo again'}); - ng1Controller2.outputB('bar again'); - $digest(adapter); - tick(); + ng1Controller1.outputA({value: 'foo again'}); + ng1Controller2.outputB('bar again'); + $digest(adapter); + await timeout(); - expect(ng1Controller0.inputA).toEqual({value: 'foo again'}); - expect(ng1Controller0.inputB).toEqual('bar again'); - expect(multiTrim(element.textContent)).toBe( - 'Inside: foo again, bar again | Inside: , Bar | Inside: , | Inside: , | ' + - 'Outside: foo again, bar again', - ); - }); - })); + expect(ng1Controller0.inputA).toEqual({value: 'foo again'}); + expect(ng1Controller0.inputB).toEqual('bar again'); + expect(multiTrim(element.textContent)).toBe( + 'Inside: foo again, bar again | Inside: , Bar | Inside: , | Inside: , | ' + + 'Outside: foo again, bar again', + ); + }); - it('should bind properties, events to scope when bindToController is not used', fakeAsync(() => { + it('should bind properties, events to scope when bindToController is not used', async () => { // Define `ng1Directive` const ng1Directive: angular.IDirective = { template: '{{ someText }} - Data: {{ inputA }} - Length: {{ inputA.length }}', @@ -1127,35 +1112,34 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - const ng1 = element.querySelector('[ng1]')!; - const ng1Controller = angular.element(ng1).controller?.('ng1'); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const ng1 = element.querySelector('[ng1]')!; + const ng1Controller = angular.element(ng1).controller?.('ng1'); - expect(multiTrim(element.textContent)).toBe( - 'ng1 - Data: [1,2,3] - Length: 3 | ng2 - Data: 1,2,3 - Length: 3', - ); + expect(multiTrim(element.textContent)).toBe( + 'ng1 - Data: [1,2,3] - Length: 3 | ng2 - Data: 1,2,3 - Length: 3', + ); - ng1Controller.$scope.inputA = [4, 5]; - tick(); + ng1Controller.$scope.inputA = [4, 5]; + await timeout(); - expect(multiTrim(element.textContent)).toBe( - 'ng1 - Data: [4,5] - Length: 2 | ng2 - Data: 4,5 - Length: 2', - ); + expect(multiTrim(element.textContent)).toBe( + 'ng1 - Data: [4,5] - Length: 2 | ng2 - Data: 4,5 - Length: 2', + ); - ng1Controller.$scope.outputA(6); - $digest(adapter); - tick(); + ng1Controller.$scope.outputA(6); + $digest(adapter); + await timeout(); - expect(ng1Controller.$scope.inputA).toEqual([4, 5, 6]); - expect(multiTrim(element.textContent)).toBe( - 'ng1 - Data: [4,5,6] - Length: 3 | ng2 - Data: 4,5,6 - Length: 3', - ); - }); - })); + expect(ng1Controller.$scope.inputA).toEqual([4, 5, 6]); + expect(multiTrim(element.textContent)).toBe( + 'ng1 - Data: [4,5,6] - Length: 3 | ng2 - Data: 4,5,6 - Length: 3', + ); + }); }); describe('compiling', () => { - it('should compile the ng1 template in the correct DOM context', waitForAsync(() => { + it('should compile the ng1 template in the correct DOM context', async () => { let grandParentNodeName: string; // Define `ng1Component` @@ -1206,14 +1190,13 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(grandParentNodeName).toBe('NG2-X'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(grandParentNodeName!).toBe('NG2-X'); + }); }); describe('linking', () => { - it('should run the pre-linking after instantiating the controller', waitForAsync(() => { + it('should run the pre-linking after instantiating the controller', async () => { const log: string[] = []; // Define `ng1Directive` @@ -1265,12 +1248,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(log).toEqual(['ng1-ctrl', 'ng1-pre']); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(log).toEqual(['ng1-ctrl', 'ng1-pre']); + }); - it('should run the pre-linking function before linking', waitForAsync(() => { + it('should run the pre-linking function before linking', async () => { const log: string[] = []; // Define `ng1Directive` @@ -1320,12 +1302,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(log).toEqual(['ng1A-pre', 'ng1B-post']); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(log).toEqual(['ng1A-pre', 'ng1B-post']); + }); - it('should run the post-linking function after linking (link: object)', waitForAsync(() => { + it('should run the post-linking function after linking (link: object)', async () => { const log: string[] = []; // Define `ng1Directive` @@ -1375,12 +1356,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(log).toEqual(['ng1B-post', 'ng1A-post']); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(log).toEqual(['ng1B-post', 'ng1A-post']); + }); - it('should run the post-linking function after linking (link: function)', waitForAsync(() => { + it('should run the post-linking function after linking (link: function)', async () => { const log: string[] = []; // Define `ng1Directive` @@ -1430,12 +1410,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(log).toEqual(['ng1B-post', 'ng1A-post']); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(log).toEqual(['ng1B-post', 'ng1A-post']); + }); - it('should run the post-linking function before `$postLink`', waitForAsync(() => { + it('should run the post-linking function before `$postLink`', async () => { const log: string[] = []; // Define `ng1Directive` @@ -1487,14 +1466,13 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(log).toEqual(['ng1-post', 'ng1-$post']); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(log).toEqual(['ng1-post', 'ng1-$post']); + }); }); describe('controller', () => { - it('should support `controllerAs`', waitForAsync(() => { + it('should support `controllerAs`', async () => { // Define `ng1Directive` const ng1Directive: angular.IDirective = { template: '{{ vm.scope }}; {{ vm.isClass }}; {{ vm.hasElement }}; {{ vm.isPublished() }}', @@ -1563,12 +1541,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('scope; isClass; NG1; published'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('scope; isClass; NG1; published'); + }); - it('should support `bindToController` (boolean)', waitForAsync(() => { + it('should support `bindToController` (boolean)', async () => { // Define `ng1Directive` const ng1DirectiveA: angular.IDirective = { template: 'Scope: {{ title }}; Controller: {{ $ctrl.title }}', @@ -1643,14 +1620,13 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe( - 'Scope: WORKS; Controller: | Scope: ; Controller: WORKS', - ); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe( + 'Scope: WORKS; Controller: | Scope: ; Controller: WORKS', + ); + }); - it('should support `bindToController` (object)', waitForAsync(() => { + it('should support `bindToController` (object)', async () => { // Define `ng1Directive` const ng1Directive: angular.IDirective = { template: '{{ $ctrl.title }}', @@ -1703,12 +1679,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('WORKS'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('WORKS'); + }); - it('should support `controller` as string', waitForAsync(() => { + it('should support `controller` as string', async () => { // Define `ng1Directive` const ng1Directive: angular.IDirective = { template: '{{ $ctrl.title }} {{ $ctrl.text }}', @@ -1763,12 +1738,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('WORKS GREAT'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('WORKS GREAT'); + }); - it('should insert the compiled content before instantiating the controller', waitForAsync(() => { + it('should insert the compiled content before instantiating the controller', async () => { let compiledContent: string; let getCurrentContent: () => string; @@ -1823,17 +1797,16 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(compiledContent)).toBe('Hello, {{ $ctrl.name }}!'); - expect(multiTrim(getCurrentContent())).toBe('Hello, world!'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(compiledContent!)).toBe('Hello, {{ $ctrl.name }}!'); + expect(multiTrim(getCurrentContent!())).toBe('Hello, world!'); + }); }); describe('require', () => { // NOT YET SUPPORTED xdescribe('in pre-/post-link', () => { - it('should resolve to its own controller if falsy', waitForAsync(() => { + it('should resolve to its own controller if falsy', async () => { // Define `ng1Directive` const ng1Directive: angular.IDirective = { template: 'Pre: {{ pre }} | Post: {{ post }}', @@ -1888,16 +1861,15 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(document.body.textContent)).toBe('Pre: foo | Post: foo'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(document.body.textContent)).toBe('Pre: foo | Post: foo'); + }); // TODO: Add more tests }); describe('in controller', () => { - it('should be available to children', waitForAsync(() => { + it('should be available to children', async () => { // Define `ng1Component` const ng1ComponentA: angular.IComponent = { template: '', @@ -1950,12 +1922,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('Required: ng1A'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('Required: ng1A'); + }); - it('should throw if required controller cannot be found', waitForAsync(() => { + it('should throw if required controller cannot be found', async () => { // Define `ng1Component` const ng1ComponentA: angular.IComponent = {require: {foo: 'iDoNotExist'}}; const ng1ComponentB: angular.IComponent = {require: {foo: '^iDoNotExist'}}; @@ -2050,26 +2021,23 @@ withEachNg1Version(() => { const elementB = html(``); const elementC = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, elementA, ng1Module).then(() => { - expect(mockExceptionHandler).toHaveBeenCalledWith( - new Error("Unable to find required 'iDoNotExist' in upgraded directive 'ng1A'."), - ); - }); + await bootstrap(platformBrowserDynamic(), Ng2Module, elementA, ng1Module); + expect(mockExceptionHandler).toHaveBeenCalledWith( + new Error("Unable to find required 'iDoNotExist' in upgraded directive 'ng1A'."), + ); - bootstrap(platformBrowserDynamic(), Ng2Module, elementB, ng1Module).then(() => { - expect(mockExceptionHandler).toHaveBeenCalledWith( - new Error("Unable to find required '^iDoNotExist' in upgraded directive 'ng1B'."), - ); - }); + await bootstrap(platformBrowserDynamic(), Ng2Module, elementB, ng1Module); + expect(mockExceptionHandler).toHaveBeenCalledWith( + new Error("Unable to find required '^iDoNotExist' in upgraded directive 'ng1B'."), + ); - bootstrap(platformBrowserDynamic(), Ng2Module, elementC, ng1Module).then(() => { - expect(mockExceptionHandler).toHaveBeenCalledWith( - new Error("Unable to find required '^^iDoNotExist' in upgraded directive 'ng1C'."), - ); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, elementC, ng1Module); + expect(mockExceptionHandler).toHaveBeenCalledWith( + new Error("Unable to find required '^^iDoNotExist' in upgraded directive 'ng1C'."), + ); + }); - it('should not throw if missing required controller is optional', waitForAsync(() => { + it('should not throw if missing required controller is optional', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = { require: { @@ -2119,12 +2087,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(mockExceptionHandler).not.toHaveBeenCalled(); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(mockExceptionHandler).not.toHaveBeenCalled(); + }); - it('should assign resolved values to the controller instance (if `require` is not object)', waitForAsync(() => { + it('should assign resolved values to the controller instance (if `require` is not object)', async () => { // Define `ng1Component` const ng1ComponentA: angular.IComponent = { template: 'ng1A(
    )', @@ -2205,12 +2172,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('ng1A(ng2(ng1B() | ng1C()))'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('ng1A(ng2(ng1B() | ng1C()))'); + }); - it('should assign resolved values to the controller instance (if `require` is object)', waitForAsync(() => { + it('should assign resolved values to the controller instance (if `require` is object)', async () => { // Define `ng1Component` const ng1ComponentA: angular.IComponent = { template: 'ng1A(
    )', @@ -2280,14 +2246,13 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe( - 'ng1A(ng2(ng1B( ng1A: | ^ng1A: A | ^^ng1A: A | ng1B: B | ^ng1B: B | ^^ng1B: )))', - ); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe( + 'ng1A(ng2(ng1B( ng1A: | ^ng1A: A | ^^ng1A: A | ng1B: B | ^ng1B: B | ^^ng1B: )))', + ); + }); - it('should assign to controller before calling `$onInit()`', waitForAsync(() => { + it('should assign to controller before calling `$onInit()`', async () => { // Define `ng1Component` const ng1ComponentA: angular.IComponent = { template: '', @@ -2346,12 +2311,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('$onInit: ng1A'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('$onInit: ng1A'); + }); - it('should use the key as name if the required controller name is omitted', waitForAsync(() => { + it('should use the key as name if the required controller name is omitted', async () => { // Define `ng1Component` const ng1ComponentA: angular.IComponent = { template: '', @@ -2420,15 +2384,14 @@ withEachNg1Version(() => { // Bootstrap const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('ng1A: A | ng1B: B | ng1C: C'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('ng1A: A | ng1B: B | ng1C: C'); + }); }); }); describe('transclusion', () => { - it('should support single-slot transclusion', waitForAsync(() => { + it('should support single-slot transclusion', async () => { let ng2ComponentAInstance: Ng2ComponentA; let ng2ComponentBInstance: Ng2ComponentB; @@ -2495,23 +2458,22 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - expect(multiTrim(element.textContent)).toBe('ng2A(ng1(foo | ))'); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('ng2A(ng1(foo | ))'); - ng2ComponentAInstance.value = 'baz'; - ng2ComponentAInstance.showB = true; - $digest(adapter); + ng2ComponentAInstance!.value = 'baz'; + ng2ComponentAInstance!.showB = true; + $digest(adapter); - expect(multiTrim(element.textContent)).toBe('ng2A(ng1(baz | ng2B(bar)))'); + expect(multiTrim(element.textContent)).toBe('ng2A(ng1(baz | ng2B(bar)))'); - ng2ComponentBInstance.value = 'qux'; - $digest(adapter); + ng2ComponentBInstance!.value = 'qux'; + $digest(adapter); - expect(multiTrim(element.textContent)).toBe('ng2A(ng1(baz | ng2B(qux)))'); - }); - })); + expect(multiTrim(element.textContent)).toBe('ng2A(ng1(baz | ng2B(qux)))'); + }); - it('should support single-slot transclusion with fallback content', waitForAsync(() => { + it('should support single-slot transclusion with fallback content', async () => { let ng1ControllerInstances: any[] = []; let ng2ComponentInstance: Ng2Component; @@ -2570,18 +2532,17 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - expect(multiTrim(element.textContent)).toBe('ng2(ng1(from-ng2) | ng1(from-ng1))'); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('ng2(ng1(from-ng2) | ng1(from-ng1))'); - ng1ControllerInstances.forEach((ctrl) => (ctrl.value = 'ng1-foo')); - ng2ComponentInstance.value = 'ng2-bar'; - $digest(adapter); + ng1ControllerInstances.forEach((ctrl) => (ctrl.value = 'ng1-foo')); + ng2ComponentInstance!.value = 'ng2-bar'; + $digest(adapter); - expect(multiTrim(element.textContent)).toBe('ng2(ng1(ng2-bar) | ng1(ng1-foo))'); - }); - })); + expect(multiTrim(element.textContent)).toBe('ng2(ng1(ng2-bar) | ng1(ng1-foo))'); + }); - it('should support multi-slot transclusion', waitForAsync(() => { + it('should support multi-slot transclusion', async () => { let ng2ComponentInstance: Ng2Component; // Define `ng1Component` @@ -2643,18 +2604,17 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - expect(multiTrim(element.textContent, true)).toBe('ng2(ng1(x(foo1foo2)|y(bar1bar2)))'); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent, true)).toBe('ng2(ng1(x(foo1foo2)|y(bar1bar2)))'); - ng2ComponentInstance.x = 'baz'; - ng2ComponentInstance.y = 'qux'; - $digest(adapter); + ng2ComponentInstance!.x = 'baz'; + ng2ComponentInstance!.y = 'qux'; + $digest(adapter); - expect(multiTrim(element.textContent, true)).toBe('ng2(ng1(x(baz1baz2)|y(qux1qux2)))'); - }); - })); + expect(multiTrim(element.textContent, true)).toBe('ng2(ng1(x(baz1baz2)|y(qux1qux2)))'); + }); - it('should support default slot (with fallback content)', waitForAsync(() => { + it('should support default slot (with fallback content)', async () => { let ng1ControllerInstances: any[] = []; let ng2ComponentInstance: Ng2Component; @@ -2729,23 +2689,22 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - expect(multiTrim(element.textContent, true)).toBe( - 'ng2(ng1(default((foo)foo-bar(bar)))|ng1(default(fallback-ng1)))', - ); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent, true)).toBe( + 'ng2(ng1(default((foo)foo-bar(bar)))|ng1(default(fallback-ng1)))', + ); - ng1ControllerInstances.forEach((ctrl) => (ctrl.value = 'ng1-plus')); - ng2ComponentInstance.x = 'baz'; - ng2ComponentInstance.y = 'qux'; - $digest(adapter); + ng1ControllerInstances.forEach((ctrl) => (ctrl.value = 'ng1-plus')); + ng2ComponentInstance!.x = 'baz'; + ng2ComponentInstance!.y = 'qux'; + $digest(adapter); - expect(multiTrim(element.textContent, true)).toBe( - 'ng2(ng1(default((baz)baz-qux(qux)))|ng1(default(fallback-ng1-plus)))', - ); - }); - })); + expect(multiTrim(element.textContent, true)).toBe( + 'ng2(ng1(default((baz)baz-qux(qux)))|ng1(default(fallback-ng1-plus)))', + ); + }); - it('should support optional transclusion slots (with fallback content)', waitForAsync(() => { + it('should support optional transclusion slots (with fallback content)', async () => { let ng1ControllerInstances: any[] = []; let ng2ComponentInstance: Ng2Component; @@ -2819,26 +2778,25 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - expect(multiTrim(element.textContent, true)).toBe( - 'ng2(ng1(x(ng2X)|y(ng1Y))|ng1(x(ng1X)|y(ng2Y)))', - ); - - ng1ControllerInstances.forEach((ctrl) => { - ctrl.x = 'ng1X-foo'; - ctrl.y = 'ng1Y-bar'; - }); - ng2ComponentInstance.x = 'ng2X-baz'; - ng2ComponentInstance.y = 'ng2Y-qux'; - $digest(adapter); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent, true)).toBe( + 'ng2(ng1(x(ng2X)|y(ng1Y))|ng1(x(ng1X)|y(ng2Y)))', + ); - expect(multiTrim(element.textContent, true)).toBe( - 'ng2(ng1(x(ng2X-baz)|y(ng1Y-bar))|ng1(x(ng1X-foo)|y(ng2Y-qux)))', - ); + ng1ControllerInstances.forEach((ctrl) => { + ctrl.x = 'ng1X-foo'; + ctrl.y = 'ng1Y-bar'; }); - })); + ng2ComponentInstance!.x = 'ng2X-baz'; + ng2ComponentInstance!.y = 'ng2Y-qux'; + $digest(adapter); - it('should throw if a non-optional slot is not filled', waitForAsync(() => { + expect(multiTrim(element.textContent, true)).toBe( + 'ng2(ng1(x(ng2X-baz)|y(ng1Y-bar))|ng1(x(ng1X-foo)|y(ng2Y-qux)))', + ); + }); + + it('should throw if a non-optional slot is not filled', async () => { let errorMessage: string; // Define `ng1Component` @@ -2886,12 +2844,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - expect(errorMessage).toContain("Required transclusion slot 'slotY' on directive: ng1"); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(errorMessage!).toContain("Required transclusion slot 'slotY' on directive: ng1"); + }); - it('should support structural directives in transcluded content', waitForAsync(() => { + it('should support structural directives in transcluded content', async () => { let ng2ComponentInstance: Ng2Component; // Define `ng1Component` @@ -2958,26 +2915,25 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - expect(multiTrim(element.textContent, true)).toBe('ng2(ng1(x(foo1)|default(bar2)))'); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent, true)).toBe('ng2(ng1(x(foo1)|default(bar2)))'); - ng2ComponentInstance.x = 'baz'; - ng2ComponentInstance.y = 'qux'; - ng2ComponentInstance.show = false; - $digest(adapter); + ng2ComponentInstance!.x = 'baz'; + ng2ComponentInstance!.y = 'qux'; + ng2ComponentInstance!.show = false; + $digest(adapter); - expect(multiTrim(element.textContent, true)).toBe('ng2(ng1(x(baz2)|default(qux1)))'); + expect(multiTrim(element.textContent, true)).toBe('ng2(ng1(x(baz2)|default(qux1)))'); - ng2ComponentInstance.show = true; - $digest(adapter); + ng2ComponentInstance!.show = true; + $digest(adapter); - expect(multiTrim(element.textContent, true)).toBe('ng2(ng1(x(baz1)|default(qux2)))'); - }); - })); + expect(multiTrim(element.textContent, true)).toBe('ng2(ng1(x(baz1)|default(qux2)))'); + }); }); describe('lifecycle hooks', () => { - it('should call `$onChanges()` on binding destination (prototype)', fakeAsync(() => { + it('should call `$onChanges()` on binding destination (prototype)', async () => { const scopeOnChanges = jasmine.createSpy('scopeOnChanges'); const controllerOnChangesA = jasmine.createSpy('controllerOnChangesA'); const controllerOnChangesB = jasmine.createSpy('controllerOnChangesB'); @@ -3070,74 +3026,73 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - // Initial change - expect(scopeOnChanges.calls.count()).toBe(1); - expect(controllerOnChangesA).not.toHaveBeenCalled(); - expect(controllerOnChangesB.calls.count()).toBe(1); - - expect(scopeOnChanges.calls.argsFor(0)[0]).toEqual({inputA: jasmine.any(Object)}); - expect(scopeOnChanges.calls.argsFor(0)[0].inputA.currentValue).toEqual({foo: 'bar'}); - expect(scopeOnChanges.calls.argsFor(0)[0].inputA.isFirstChange()).toBe(true); - expect(controllerOnChangesB.calls.argsFor(0)[0].inputB.currentValue).toEqual({ - foo: 'bar', - }); - expect(controllerOnChangesB.calls.argsFor(0)[0].inputB.isFirstChange()).toBe(true); - - // Change: Re-assign `data` - ng2ComponentInstance.data = {foo: 'baz'}; - $digest(adapter); - tick(); - - expect(scopeOnChanges.calls.count()).toBe(2); - expect(controllerOnChangesA).not.toHaveBeenCalled(); - expect(controllerOnChangesB.calls.count()).toBe(2); - - expect(scopeOnChanges.calls.argsFor(1)[0]).toEqual({inputA: jasmine.any(Object)}); - expect(scopeOnChanges.calls.argsFor(1)[0].inputA.previousValue).toEqual({foo: 'bar'}); - expect(scopeOnChanges.calls.argsFor(1)[0].inputA.currentValue).toEqual({foo: 'baz'}); - expect(scopeOnChanges.calls.argsFor(1)[0].inputA.isFirstChange()).toBe(false); - expect(controllerOnChangesB.calls.argsFor(1)[0].inputB.previousValue).toEqual({ - foo: 'bar', - }); - expect(controllerOnChangesB.calls.argsFor(1)[0].inputB.currentValue).toEqual({ - foo: 'baz', - }); - expect(controllerOnChangesB.calls.argsFor(1)[0].inputB.isFirstChange()).toBe(false); - - // No change: Update internal property - ng2ComponentInstance.data.foo = 'qux'; - $digest(adapter); - tick(); - - expect(scopeOnChanges.calls.count()).toBe(2); - expect(controllerOnChangesA).not.toHaveBeenCalled(); - expect(controllerOnChangesB.calls.count()).toBe(2); - - // Change: Re-assign `data` (even if it looks the same) - ng2ComponentInstance.data = {foo: 'qux'}; - $digest(adapter); - tick(); - - expect(scopeOnChanges.calls.count()).toBe(3); - expect(controllerOnChangesA).not.toHaveBeenCalled(); - expect(controllerOnChangesB.calls.count()).toBe(3); - - expect(scopeOnChanges.calls.argsFor(2)[0]).toEqual({inputA: jasmine.any(Object)}); - expect(scopeOnChanges.calls.argsFor(2)[0].inputA.previousValue).toEqual({foo: 'qux'}); - expect(scopeOnChanges.calls.argsFor(2)[0].inputA.currentValue).toEqual({foo: 'qux'}); - expect(scopeOnChanges.calls.argsFor(2)[0].inputA.isFirstChange()).toBe(false); - expect(controllerOnChangesB.calls.argsFor(2)[0].inputB.previousValue).toEqual({ - foo: 'qux', - }); - expect(controllerOnChangesB.calls.argsFor(2)[0].inputB.currentValue).toEqual({ - foo: 'qux', - }); - expect(controllerOnChangesB.calls.argsFor(2)[0].inputB.isFirstChange()).toBe(false); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + // Initial change + expect(scopeOnChanges.calls.count()).toBe(1); + expect(controllerOnChangesA).not.toHaveBeenCalled(); + expect(controllerOnChangesB.calls.count()).toBe(1); + + expect(scopeOnChanges.calls.argsFor(0)[0]).toEqual({inputA: jasmine.any(Object)}); + expect(scopeOnChanges.calls.argsFor(0)[0].inputA.currentValue).toEqual({foo: 'bar'}); + expect(scopeOnChanges.calls.argsFor(0)[0].inputA.isFirstChange()).toBe(true); + expect(controllerOnChangesB.calls.argsFor(0)[0].inputB.currentValue).toEqual({ + foo: 'bar', }); - })); + expect(controllerOnChangesB.calls.argsFor(0)[0].inputB.isFirstChange()).toBe(true); - it('should call `$onChanges()` on binding destination (instance)', fakeAsync(() => { + // Change: Re-assign `data` + ng2ComponentInstance!.data = {foo: 'baz'}; + $digest(adapter); + await timeout(); + + expect(scopeOnChanges.calls.count()).toBe(2); + expect(controllerOnChangesA).not.toHaveBeenCalled(); + expect(controllerOnChangesB.calls.count()).toBe(2); + + expect(scopeOnChanges.calls.argsFor(1)[0]).toEqual({inputA: jasmine.any(Object)}); + expect(scopeOnChanges.calls.argsFor(1)[0].inputA.previousValue).toEqual({foo: 'bar'}); + expect(scopeOnChanges.calls.argsFor(1)[0].inputA.currentValue).toEqual({foo: 'baz'}); + expect(scopeOnChanges.calls.argsFor(1)[0].inputA.isFirstChange()).toBe(false); + expect(controllerOnChangesB.calls.argsFor(1)[0].inputB.previousValue).toEqual({ + foo: 'bar', + }); + expect(controllerOnChangesB.calls.argsFor(1)[0].inputB.currentValue).toEqual({ + foo: 'baz', + }); + expect(controllerOnChangesB.calls.argsFor(1)[0].inputB.isFirstChange()).toBe(false); + + // No change: Update internal property + ng2ComponentInstance!.data.foo = 'qux'; + $digest(adapter); + await timeout(); + + expect(scopeOnChanges.calls.count()).toBe(2); + expect(controllerOnChangesA).not.toHaveBeenCalled(); + expect(controllerOnChangesB.calls.count()).toBe(2); + + // Change: Re-assign `data` (even if it looks the same) + ng2ComponentInstance!.data = {foo: 'qux'}; + $digest(adapter); + await timeout(); + + expect(scopeOnChanges.calls.count()).toBe(3); + expect(controllerOnChangesA).not.toHaveBeenCalled(); + expect(controllerOnChangesB.calls.count()).toBe(3); + + expect(scopeOnChanges.calls.argsFor(2)[0]).toEqual({inputA: jasmine.any(Object)}); + expect(scopeOnChanges.calls.argsFor(2)[0].inputA.previousValue).toEqual({foo: 'qux'}); + expect(scopeOnChanges.calls.argsFor(2)[0].inputA.currentValue).toEqual({foo: 'qux'}); + expect(scopeOnChanges.calls.argsFor(2)[0].inputA.isFirstChange()).toBe(false); + expect(controllerOnChangesB.calls.argsFor(2)[0].inputB.previousValue).toEqual({ + foo: 'qux', + }); + expect(controllerOnChangesB.calls.argsFor(2)[0].inputB.currentValue).toEqual({ + foo: 'qux', + }); + expect(controllerOnChangesB.calls.argsFor(2)[0].inputB.isFirstChange()).toBe(false); + }); + + it('should call `$onChanges()` on binding destination (instance)', async () => { const scopeOnChangesA = jasmine.createSpy('scopeOnChangesA'); const scopeOnChangesB = jasmine.createSpy('scopeOnChangesB'); const controllerOnChangesA = jasmine.createSpy('controllerOnChangesA'); @@ -3230,75 +3185,74 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - // Initial change - expect(scopeOnChangesA.calls.count()).toBe(1); - expect(scopeOnChangesB).not.toHaveBeenCalled(); - expect(controllerOnChangesA).not.toHaveBeenCalled(); - expect(controllerOnChangesB.calls.count()).toBe(1); - - expect(scopeOnChangesA.calls.argsFor(0)[0].inputA.currentValue).toEqual({foo: 'bar'}); - expect(scopeOnChangesA.calls.argsFor(0)[0].inputA.isFirstChange()).toBe(true); - expect(controllerOnChangesB.calls.argsFor(0)[0].inputB.currentValue).toEqual({ - foo: 'bar', - }); - expect(controllerOnChangesB.calls.argsFor(0)[0].inputB.isFirstChange()).toBe(true); - - // Change: Re-assign `data` - ng2ComponentInstance.data = {foo: 'baz'}; - $digest(adapter); - tick(); - - expect(scopeOnChangesA.calls.count()).toBe(2); - expect(scopeOnChangesB).not.toHaveBeenCalled(); - expect(controllerOnChangesA).not.toHaveBeenCalled(); - expect(controllerOnChangesB.calls.count()).toBe(2); - - expect(scopeOnChangesA.calls.argsFor(1)[0].inputA.previousValue).toEqual({foo: 'bar'}); - expect(scopeOnChangesA.calls.argsFor(1)[0].inputA.currentValue).toEqual({foo: 'baz'}); - expect(scopeOnChangesA.calls.argsFor(1)[0].inputA.isFirstChange()).toBe(false); - expect(controllerOnChangesB.calls.argsFor(1)[0].inputB.previousValue).toEqual({ - foo: 'bar', - }); - expect(controllerOnChangesB.calls.argsFor(1)[0].inputB.currentValue).toEqual({ - foo: 'baz', - }); - expect(controllerOnChangesB.calls.argsFor(1)[0].inputB.isFirstChange()).toBe(false); - - // No change: Update internal property - ng2ComponentInstance.data.foo = 'qux'; - $digest(adapter); - tick(); - - expect(scopeOnChangesA.calls.count()).toBe(2); - expect(scopeOnChangesB).not.toHaveBeenCalled(); - expect(controllerOnChangesA).not.toHaveBeenCalled(); - expect(controllerOnChangesB.calls.count()).toBe(2); - - // Change: Re-assign `data` (even if it looks the same) - ng2ComponentInstance.data = {foo: 'qux'}; - $digest(adapter); - tick(); - - expect(scopeOnChangesA.calls.count()).toBe(3); - expect(scopeOnChangesB).not.toHaveBeenCalled(); - expect(controllerOnChangesA).not.toHaveBeenCalled(); - expect(controllerOnChangesB.calls.count()).toBe(3); - - expect(scopeOnChangesA.calls.argsFor(2)[0].inputA.previousValue).toEqual({foo: 'qux'}); - expect(scopeOnChangesA.calls.argsFor(2)[0].inputA.currentValue).toEqual({foo: 'qux'}); - expect(scopeOnChangesA.calls.argsFor(2)[0].inputA.isFirstChange()).toBe(false); - expect(controllerOnChangesB.calls.argsFor(2)[0].inputB.previousValue).toEqual({ - foo: 'qux', - }); - expect(controllerOnChangesB.calls.argsFor(2)[0].inputB.currentValue).toEqual({ - foo: 'qux', - }); - expect(controllerOnChangesB.calls.argsFor(2)[0].inputB.isFirstChange()).toBe(false); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + // Initial change + expect(scopeOnChangesA.calls.count()).toBe(1); + expect(scopeOnChangesB).not.toHaveBeenCalled(); + expect(controllerOnChangesA).not.toHaveBeenCalled(); + expect(controllerOnChangesB.calls.count()).toBe(1); + + expect(scopeOnChangesA.calls.argsFor(0)[0].inputA.currentValue).toEqual({foo: 'bar'}); + expect(scopeOnChangesA.calls.argsFor(0)[0].inputA.isFirstChange()).toBe(true); + expect(controllerOnChangesB.calls.argsFor(0)[0].inputB.currentValue).toEqual({ + foo: 'bar', + }); + expect(controllerOnChangesB.calls.argsFor(0)[0].inputB.isFirstChange()).toBe(true); + + // Change: Re-assign `data` + ng2ComponentInstance!.data = {foo: 'baz'}; + $digest(adapter); + await timeout(); + + expect(scopeOnChangesA.calls.count()).toBe(2); + expect(scopeOnChangesB).not.toHaveBeenCalled(); + expect(controllerOnChangesA).not.toHaveBeenCalled(); + expect(controllerOnChangesB.calls.count()).toBe(2); + + expect(scopeOnChangesA.calls.argsFor(1)[0].inputA.previousValue).toEqual({foo: 'bar'}); + expect(scopeOnChangesA.calls.argsFor(1)[0].inputA.currentValue).toEqual({foo: 'baz'}); + expect(scopeOnChangesA.calls.argsFor(1)[0].inputA.isFirstChange()).toBe(false); + expect(controllerOnChangesB.calls.argsFor(1)[0].inputB.previousValue).toEqual({ + foo: 'bar', + }); + expect(controllerOnChangesB.calls.argsFor(1)[0].inputB.currentValue).toEqual({ + foo: 'baz', }); - })); + expect(controllerOnChangesB.calls.argsFor(1)[0].inputB.isFirstChange()).toBe(false); + + // No change: Update internal property + ng2ComponentInstance!.data.foo = 'qux'; + $digest(adapter); + await timeout(); - it('should call `$onInit()` on controller', waitForAsync(() => { + expect(scopeOnChangesA.calls.count()).toBe(2); + expect(scopeOnChangesB).not.toHaveBeenCalled(); + expect(controllerOnChangesA).not.toHaveBeenCalled(); + expect(controllerOnChangesB.calls.count()).toBe(2); + + // Change: Re-assign `data` (even if it looks the same) + ng2ComponentInstance!.data = {foo: 'qux'}; + $digest(adapter); + await timeout(); + + expect(scopeOnChangesA.calls.count()).toBe(3); + expect(scopeOnChangesB).not.toHaveBeenCalled(); + expect(controllerOnChangesA).not.toHaveBeenCalled(); + expect(controllerOnChangesB.calls.count()).toBe(3); + + expect(scopeOnChangesA.calls.argsFor(2)[0].inputA.previousValue).toEqual({foo: 'qux'}); + expect(scopeOnChangesA.calls.argsFor(2)[0].inputA.currentValue).toEqual({foo: 'qux'}); + expect(scopeOnChangesA.calls.argsFor(2)[0].inputA.isFirstChange()).toBe(false); + expect(controllerOnChangesB.calls.argsFor(2)[0].inputB.previousValue).toEqual({ + foo: 'qux', + }); + expect(controllerOnChangesB.calls.argsFor(2)[0].inputB.currentValue).toEqual({ + foo: 'qux', + }); + expect(controllerOnChangesB.calls.argsFor(2)[0].inputB.isFirstChange()).toBe(false); + }); + + it('should call `$onInit()` on controller', async () => { // Define `ng1Directive` const ng1DirectiveA: angular.IDirective = { template: 'Called: {{ called }}', @@ -3374,12 +3328,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('Called: yes | Called: yes'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('Called: yes | Called: yes'); + }); - it('should not call `$onInit()` on scope', waitForAsync(() => { + it('should not call `$onInit()` on scope', async () => { // Define `ng1Directive` const ng1DirectiveA: angular.IDirective = { template: 'Called: {{ called }}', @@ -3454,12 +3407,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('Called: no | Called: no'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('Called: no | Called: no'); + }); - it('should call `$postLink()` on controller', waitForAsync(() => { + it('should call `$postLink()` on controller', async () => { // Define `ng1Directive` const ng1DirectiveA: angular.IDirective = { template: 'Called: {{ called }}', @@ -3535,12 +3487,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('Called: yes | Called: yes'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('Called: yes | Called: yes'); + }); - it('should not call `$postLink()` on scope', waitForAsync(() => { + it('should not call `$postLink()` on scope', async () => { // Define `ng1Directive` const ng1DirectiveA: angular.IDirective = { template: 'Called: {{ called }}', @@ -3615,12 +3566,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe('Called: no | Called: no'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('Called: no | Called: no'); + }); - it('should call `$doCheck()` on controller', waitForAsync(() => { + it('should call `$doCheck()` on controller', async () => { const controllerDoCheckA = jasmine.createSpy('controllerDoCheckA'); const controllerDoCheckB = jasmine.createSpy('controllerDoCheckB'); @@ -3694,30 +3644,29 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - // Get to a stable `$digest` state. - $digest(adapter); - - // Initial change. - // (Do not use a specific number due to differences between AngularJS 1.5/1.6.) - expect(controllerDoCheckA.calls.count()).toBeGreaterThan(0); - expect(controllerDoCheckB.calls.count()).toBeGreaterThan(0); - controllerDoCheckA.calls.reset(); - controllerDoCheckB.calls.reset(); - - // Run a `$digest` - $digest(adapter); - expect(controllerDoCheckA.calls.count()).toBe(1); - expect(controllerDoCheckB.calls.count()).toBe(1); - - // Run another `$digest` - $digest(adapter); - expect(controllerDoCheckA.calls.count()).toBe(2); - expect(controllerDoCheckB.calls.count()).toBe(2); - }); - })); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + // Get to a stable `$digest` state. + $digest(adapter); + + // Initial change. + // (Do not use a specific number due to differences between AngularJS 1.5/1.6.) + expect(controllerDoCheckA.calls.count()).toBeGreaterThan(0); + expect(controllerDoCheckB.calls.count()).toBeGreaterThan(0); + controllerDoCheckA.calls.reset(); + controllerDoCheckB.calls.reset(); + + // Run a `$digest` + $digest(adapter); + expect(controllerDoCheckA.calls.count()).toBe(1); + expect(controllerDoCheckB.calls.count()).toBe(1); + + // Run another `$digest` + $digest(adapter); + expect(controllerDoCheckA.calls.count()).toBe(2); + expect(controllerDoCheckB.calls.count()).toBe(2); + }); - it('should not call `$doCheck()` on scope', waitForAsync(() => { + it('should not call `$doCheck()` on scope', async () => { const scopeDoCheck = jasmine.createSpy('scopeDoCheck'); // Define `ng1Directive` @@ -3790,21 +3739,20 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - // Initial change - expect(scopeDoCheck).not.toHaveBeenCalled(); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + // Initial change + expect(scopeDoCheck).not.toHaveBeenCalled(); - // Run a `$digest` - $digest(adapter); - expect(scopeDoCheck).not.toHaveBeenCalled(); + // Run a `$digest` + $digest(adapter); + expect(scopeDoCheck).not.toHaveBeenCalled(); - // Run another `$digest` - $digest(adapter); - expect(scopeDoCheck).not.toHaveBeenCalled(); - }); - })); + // Run another `$digest` + $digest(adapter); + expect(scopeDoCheck).not.toHaveBeenCalled(); + }); - it('should call `$onDestroy()` on controller', waitForAsync(() => { + it('should call `$onDestroy()` on controller', async () => { const controllerOnDestroyA = jasmine.createSpy('controllerOnDestroyA'); const controllerOnDestroyB = jasmine.createSpy('controllerOnDestroyB'); @@ -3884,36 +3832,35 @@ withEachNg1Version(() => { // Bootstrap const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - const $rootScope = adapter.$injector.get('$rootScope') as angular.IRootScopeService; + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const $rootScope = adapter.$injector.get('$rootScope') as angular.IRootScopeService; - expect(multiTrim(document.body.textContent)).toBe('ng1A | ng1B'); - expect(controllerOnDestroyA).not.toHaveBeenCalled(); - expect(controllerOnDestroyB).not.toHaveBeenCalled(); + expect(multiTrim(document.body.textContent)).toBe('ng1A | ng1B'); + expect(controllerOnDestroyA).not.toHaveBeenCalled(); + expect(controllerOnDestroyB).not.toHaveBeenCalled(); - $rootScope.$apply('destroyFromNg1 = true'); + $rootScope.$apply('destroyFromNg1 = true'); - expect(multiTrim(document.body.textContent)).toBe(''); - expect(controllerOnDestroyA).toHaveBeenCalled(); - expect(controllerOnDestroyB).toHaveBeenCalled(); + expect(multiTrim(document.body.textContent)).toBe(''); + expect(controllerOnDestroyA).toHaveBeenCalled(); + expect(controllerOnDestroyB).toHaveBeenCalled(); - controllerOnDestroyA.calls.reset(); - controllerOnDestroyB.calls.reset(); - $rootScope.$apply('destroyFromNg1 = false'); + controllerOnDestroyA.calls.reset(); + controllerOnDestroyB.calls.reset(); + $rootScope.$apply('destroyFromNg1 = false'); - expect(multiTrim(document.body.textContent)).toBe('ng1A | ng1B'); - expect(controllerOnDestroyA).not.toHaveBeenCalled(); - expect(controllerOnDestroyB).not.toHaveBeenCalled(); + expect(multiTrim(document.body.textContent)).toBe('ng1A | ng1B'); + expect(controllerOnDestroyA).not.toHaveBeenCalled(); + expect(controllerOnDestroyB).not.toHaveBeenCalled(); - $rootScope.$apply('destroyFromNg2 = true'); + $rootScope.$apply('destroyFromNg2 = true'); - expect(multiTrim(document.body.textContent)).toBe(''); - expect(controllerOnDestroyA).toHaveBeenCalled(); - expect(controllerOnDestroyB).toHaveBeenCalled(); - }); - })); + expect(multiTrim(document.body.textContent)).toBe(''); + expect(controllerOnDestroyA).toHaveBeenCalled(); + expect(controllerOnDestroyB).toHaveBeenCalled(); + }); - it('should not call `$onDestroy()` on scope', waitForAsync(() => { + it('should not call `$onDestroy()` on scope', async () => { const scopeOnDestroy = jasmine.createSpy('scopeOnDestroy'); // Define `ng1Directive` @@ -3994,30 +3941,29 @@ withEachNg1Version(() => { // Bootstrap const element = html(''); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - const $rootScope = adapter.$injector.get('$rootScope') as angular.IRootScopeService; + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const $rootScope = adapter.$injector.get('$rootScope') as angular.IRootScopeService; - expect(multiTrim(document.body.textContent)).toBe('ng1A | ng1B'); - expect(scopeOnDestroy).not.toHaveBeenCalled(); + expect(multiTrim(document.body.textContent)).toBe('ng1A | ng1B'); + expect(scopeOnDestroy).not.toHaveBeenCalled(); - $rootScope.$apply('destroyFromNg1 = true'); + $rootScope.$apply('destroyFromNg1 = true'); - expect(multiTrim(document.body.textContent)).toBe(''); - expect(scopeOnDestroy).not.toHaveBeenCalled(); + expect(multiTrim(document.body.textContent)).toBe(''); + expect(scopeOnDestroy).not.toHaveBeenCalled(); - $rootScope.$apply('destroyFromNg1 = false'); + $rootScope.$apply('destroyFromNg1 = false'); - expect(multiTrim(document.body.textContent)).toBe('ng1A | ng1B'); - expect(scopeOnDestroy).not.toHaveBeenCalled(); + expect(multiTrim(document.body.textContent)).toBe('ng1A | ng1B'); + expect(scopeOnDestroy).not.toHaveBeenCalled(); - $rootScope.$apply('destroyFromNg2 = true'); + $rootScope.$apply('destroyFromNg2 = true'); - expect(multiTrim(document.body.textContent)).toBe(''); - expect(scopeOnDestroy).not.toHaveBeenCalled(); - }); - })); + expect(multiTrim(document.body.textContent)).toBe(''); + expect(scopeOnDestroy).not.toHaveBeenCalled(); + }); - it('should be called in order `$onChanges()` > `$onInit()` > `$doCheck()` > `$postLink()`', waitForAsync(() => { + it('should be called in order `$onChanges()` > `$onInit()` > `$doCheck()` > `$postLink()`', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = { // `$doCheck()` will keep getting called as long as the interpolated value keeps @@ -4085,16 +4031,13 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe( - '$onChanges > $onInit > $doCheck > $postLink', - ); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe('$onChanges > $onInit > $doCheck > $postLink'); + }); }); describe('destroying the upgraded component', () => { - it('should destroy `$componentScope`', waitForAsync(() => { + it('should destroy `$componentScope`', async () => { const scopeDestroyListener = jasmine.createSpy('scopeDestroyListener'); let ng2ComponentAInstance: Ng2ComponentA; @@ -4159,17 +4102,16 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - expect(scopeDestroyListener).not.toHaveBeenCalled(); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(scopeDestroyListener).not.toHaveBeenCalled(); - ng2ComponentAInstance.destroyIt = true; - $digest(adapter); + ng2ComponentAInstance!.destroyIt = true; + $digest(adapter); - expect(scopeDestroyListener).toHaveBeenCalledTimes(1); - }); - })); + expect(scopeDestroyListener).toHaveBeenCalledTimes(1); + }); - it('should emit `$destroy` on `$element` and descendants', waitForAsync(() => { + it('should emit `$destroy` on `$element` and descendants', async () => { const elementDestroyListener = jasmine.createSpy('elementDestroyListener'); const descendantDestroyListener = jasmine.createSpy('descendantDestroyListener'); let ng2ComponentAInstance: Ng2ComponentA; @@ -4237,19 +4179,18 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - expect(elementDestroyListener).not.toHaveBeenCalled(); - expect(descendantDestroyListener).not.toHaveBeenCalled(); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(elementDestroyListener).not.toHaveBeenCalled(); + expect(descendantDestroyListener).not.toHaveBeenCalled(); - ng2ComponentAInstance.destroyIt = true; - $digest(adapter); + ng2ComponentAInstance!.destroyIt = true; + $digest(adapter); - expect(elementDestroyListener).toHaveBeenCalledTimes(1); - expect(descendantDestroyListener).toHaveBeenCalledTimes(1); - }); - })); + expect(elementDestroyListener).toHaveBeenCalledTimes(1); + expect(descendantDestroyListener).toHaveBeenCalledTimes(1); + }); - it('should clear data on `$element` and descendants`', waitForAsync(() => { + it('should clear data on `$element` and descendants`', async () => { let ng1ComponentElement: angular.IAugmentedJQuery; let ng2ComponentAInstance: Ng2ComponentA; @@ -4318,19 +4259,18 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - expect(ng1ComponentElement.data!('test')).toBe(1); - expect(ng1ComponentElement.contents!().data!('test')).toBe(2); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(ng1ComponentElement!.data!('test')).toBe(1); + expect(ng1ComponentElement!.contents!().data!('test')).toBe(2); - ng2ComponentAInstance.destroyIt = true; - $digest(adapter); + ng2ComponentAInstance!.destroyIt = true; + $digest(adapter); - expect(ng1ComponentElement.data!('test')).toBeUndefined(); - expect(ng1ComponentElement.contents!().data!('test')).toBeUndefined(); - }); - })); + expect(ng1ComponentElement!.data!('test')).toBeUndefined(); + expect(ng1ComponentElement!.contents!().data!('test')).toBeUndefined(); + }); - it('should clear dom listeners on `$element` and descendants`', waitForAsync(() => { + it('should clear dom listeners on `$element` and descendants`', async () => { const elementClickListener = jasmine.createSpy('elementClickListener'); const descendantClickListener = jasmine.createSpy('descendantClickListener'); let ng1DescendantElement: angular.IAugmentedJQuery; @@ -4401,21 +4341,20 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - (ng1DescendantElement[0] as HTMLElement).click(); - expect(elementClickListener).toHaveBeenCalledTimes(1); - expect(descendantClickListener).toHaveBeenCalledTimes(1); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + (ng1DescendantElement![0] as HTMLElement).click(); + expect(elementClickListener).toHaveBeenCalledTimes(1); + expect(descendantClickListener).toHaveBeenCalledTimes(1); - ng2ComponentAInstance.destroyIt = true; - $digest(adapter); + ng2ComponentAInstance!.destroyIt = true; + $digest(adapter); - (ng1DescendantElement[0] as HTMLElement).click(); - expect(elementClickListener).toHaveBeenCalledTimes(1); - expect(descendantClickListener).toHaveBeenCalledTimes(1); - }); - })); + (ng1DescendantElement![0] as HTMLElement).click(); + expect(elementClickListener).toHaveBeenCalledTimes(1); + expect(descendantClickListener).toHaveBeenCalledTimes(1); + }); - it('should clean up `$doCheck()` watchers from the parent scope', waitForAsync(() => { + it('should clean up `$doCheck()` watchers from the parent scope', async () => { let ng2Component: Ng2Component; // Define `ng1Component` @@ -4469,32 +4408,30 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - const getWatcherCount: () => number = () => - (ng2Component.$scope as any).$$watchers.length; - const baseWatcherCount = getWatcherCount(); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + const getWatcherCount: () => number = () => (ng2Component!.$scope as any).$$watchers.length; + const baseWatcherCount = getWatcherCount(); - expect(multiTrim(document.body.textContent)).toBe(''); + expect(multiTrim(document.body.textContent)).toBe(''); - ng2Component.doShow = true; - $digest(adapter); - expect(multiTrim(document.body.textContent)).toBe('ng1'); - expect(getWatcherCount()).toBe(baseWatcherCount + 1); + ng2Component!.doShow = true; + $digest(adapter); + expect(multiTrim(document.body.textContent)).toBe('ng1'); + expect(getWatcherCount()).toBe(baseWatcherCount + 1); - ng2Component.doShow = false; - $digest(adapter); - expect(multiTrim(document.body.textContent)).toBe(''); - expect(getWatcherCount()).toBe(baseWatcherCount); + ng2Component!.doShow = false; + $digest(adapter); + expect(multiTrim(document.body.textContent)).toBe(''); + expect(getWatcherCount()).toBe(baseWatcherCount); - ng2Component.doShow = true; - $digest(adapter); - expect(multiTrim(document.body.textContent)).toBe('ng1'); - expect(getWatcherCount()).toBe(baseWatcherCount + 1); - }); - })); + ng2Component!.doShow = true; + $digest(adapter); + expect(multiTrim(document.body.textContent)).toBe('ng1'); + expect(getWatcherCount()).toBe(baseWatcherCount + 1); + }); }); - it('should support ng2 > ng1 > ng2 (no inputs/outputs)', waitForAsync(() => { + it('should support ng2 > ng1 > ng2 (no inputs/outputs)', async () => { // Define `ng1Component` const ng1Component: angular.IComponent = {template: 'ng1X()'}; @@ -4546,12 +4483,11 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(document.body.textContent)).toBe('ng2A(ng1X(ng2B))'); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(document.body.textContent)).toBe('ng2A(ng1X(ng2B))'); + }); - it('should support ng2 > ng1 > ng2 (with inputs/outputs)', fakeAsync(() => { + it('should support ng2 > ng1 > ng2 (with inputs/outputs)', async () => { let ng2ComponentAInstance: Ng2ComponentA; let ng2ComponentBInstance: Ng2ComponentB; let ng1ControllerXInstance: Ng1ControllerX; @@ -4666,103 +4602,102 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((adapter) => { - // Initial value propagation. - // (ng2A > ng1X > ng2B) - expect(multiTrim(document.body.textContent)).toBe( - 'ng2A(foo, bar, baz) | ng1X(foo, bar, baz) | ng2B(foo, baz)', - ); - - // Update `ng2BInputA`/`ng2BInputC`. - // (Should not propagate upwards.) - ng2ComponentBInstance.ng2BInputA = 'foo2'; - ng2ComponentBInstance.ng2BInputC = 'baz2'; - $digest(adapter); - tick(); - - expect(multiTrim(document.body.textContent)).toBe( - 'ng2A(foo, bar, baz) | ng1X(foo, bar, baz) | ng2B(foo2, baz2)', - ); - - // Emit from `ng2BOutputC`. - // (Should propagate all the way up to `ng1ADataC` and back all the way down to - // `ng2BInputC`.) - ng2ComponentBInstance.ng2BOutputC.emit('baz3'); - $digest(adapter); - tick(); - - expect(multiTrim(document.body.textContent)).toBe( - 'ng2A(foo, bar, baz3) | ng1X(foo, bar, baz3) | ng2B(foo2, baz3)', - ); - - // Update `ng1XInputA`/`ng1XInputB`. - // (Should not propagate upwards, only downwards.) - ng1ControllerXInstance.ng1XInputA = 'foo4'; - ng1ControllerXInstance.ng1XInputB = {value: 'bar4'}; - $digest(adapter); - tick(); - - expect(multiTrim(document.body.textContent)).toBe( - 'ng2A(foo, bar, baz3) | ng1X(foo4, bar4, baz3) | ng2B(foo4, baz3)', - ); - - // Update `ng1XInputC`. - // (Should propagate upwards and downwards.) - ng1ControllerXInstance.ng1XInputC = {value: 'baz5'}; - $digest(adapter); - tick(); - - expect(multiTrim(document.body.textContent)).toBe( - 'ng2A(foo, bar, baz5) | ng1X(foo4, bar4, baz5) | ng2B(foo4, baz5)', - ); - - // Update a property on `ng1XInputC`. - // (Should propagate upwards and downwards.) - ng1ControllerXInstance.ng1XInputC.value = 'baz6'; - $digest(adapter); - tick(); - - expect(multiTrim(document.body.textContent)).toBe( - 'ng2A(foo, bar, baz6) | ng1X(foo4, bar4, baz6) | ng2B(foo4, baz6)', - ); - - // Emit from `ng1XOutputA`. - // (Should propagate upwards to `ng1ADataA` and back all the way down to - // `ng2BInputA`.) - (ng1ControllerXInstance as any).ng1XOutputA({value: 'foo7'}); - $digest(adapter); - tick(); - - expect(multiTrim(document.body.textContent)).toBe( - 'ng2A(foo7, bar, baz6) | ng1X(foo7, bar4, baz6) | ng2B(foo7, baz6)', - ); - - // Emit from `ng1XOutputB`. - // (Should propagate upwards to `ng1ADataB`, but not downwards, - // since `ng1XInputB` has been re-assigned (i.e. `ng2ADataB !== ng1XInputB`).) - (ng1ControllerXInstance as any).ng1XOutputB('bar8'); - $digest(adapter); - tick(); - - expect(multiTrim(document.body.textContent)).toBe( - 'ng2A(foo7, bar8, baz6) | ng1X(foo7, bar4, baz6) | ng2B(foo7, baz6)', - ); - - // Update `ng2ADataA`/`ng2ADataB`/`ng2ADataC`. - // (Should propagate everywhere.) - ng2ComponentAInstance.ng2ADataA = {value: 'foo9'}; - ng2ComponentAInstance.ng2ADataB = {value: 'bar9'}; - ng2ComponentAInstance.ng2ADataC = {value: 'baz9'}; - $digest(adapter); - tick(); - - expect(multiTrim(document.body.textContent)).toBe( - 'ng2A(foo9, bar9, baz9) | ng1X(foo9, bar9, baz9) | ng2B(foo9, baz9)', - ); - }); - })); + const adapter = await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + // Initial value propagation. + // (ng2A > ng1X > ng2B) + expect(multiTrim(document.body.textContent)).toBe( + 'ng2A(foo, bar, baz) | ng1X(foo, bar, baz) | ng2B(foo, baz)', + ); + + // Update `ng2BInputA`/`ng2BInputC`. + // (Should not propagate upwards.) + ng2ComponentBInstance!.ng2BInputA = 'foo2'; + ng2ComponentBInstance!.ng2BInputC = 'baz2'; + $digest(adapter); + await timeout(); + + expect(multiTrim(document.body.textContent)).toBe( + 'ng2A(foo, bar, baz) | ng1X(foo, bar, baz) | ng2B(foo2, baz2)', + ); + + // Emit from `ng2BOutputC`. + // (Should propagate all the way up to `ng1ADataC` and back all the way down to + // `ng2BInputC`.) + ng2ComponentBInstance!.ng2BOutputC.emit('baz3'); + $digest(adapter); + await timeout(); + + expect(multiTrim(document.body.textContent)).toBe( + 'ng2A(foo, bar, baz3) | ng1X(foo, bar, baz3) | ng2B(foo2, baz3)', + ); + + // Update `ng1XInputA`/`ng1XInputB`. + // (Should not propagate upwards, only downwards.) + ng1ControllerXInstance!.ng1XInputA = 'foo4'; + ng1ControllerXInstance!.ng1XInputB = {value: 'bar4'}; + $digest(adapter); + await timeout(); + + expect(multiTrim(document.body.textContent)).toBe( + 'ng2A(foo, bar, baz3) | ng1X(foo4, bar4, baz3) | ng2B(foo4, baz3)', + ); + + // Update `ng1XInputC`. + // (Should propagate upwards and downwards.) + ng1ControllerXInstance!.ng1XInputC = {value: 'baz5'}; + $digest(adapter); + await timeout(); + + expect(multiTrim(document.body.textContent)).toBe( + 'ng2A(foo, bar, baz5) | ng1X(foo4, bar4, baz5) | ng2B(foo4, baz5)', + ); + + // Update a property on `ng1XInputC`. + // (Should propagate upwards and downwards.) + ng1ControllerXInstance!.ng1XInputC.value = 'baz6'; + $digest(adapter); + await timeout(); + + expect(multiTrim(document.body.textContent)).toBe( + 'ng2A(foo, bar, baz6) | ng1X(foo4, bar4, baz6) | ng2B(foo4, baz6)', + ); + + // Emit from `ng1XOutputA`. + // (Should propagate upwards to `ng1ADataA` and back all the way down to + // `ng2BInputA`.) + (ng1ControllerXInstance! as any).ng1XOutputA({value: 'foo7'}); + $digest(adapter); + await timeout(); + + expect(multiTrim(document.body.textContent)).toBe( + 'ng2A(foo7, bar, baz6) | ng1X(foo7, bar4, baz6) | ng2B(foo7, baz6)', + ); + + // Emit from `ng1XOutputB`. + // (Should propagate upwards to `ng1ADataB`, but not downwards, + // since `ng1XInputB` has been re-assigned (i.e. `ng2ADataB !== ng1XInputB`).) + (ng1ControllerXInstance! as any).ng1XOutputB('bar8'); + $digest(adapter); + await timeout(); + + expect(multiTrim(document.body.textContent)).toBe( + 'ng2A(foo7, bar8, baz6) | ng1X(foo7, bar4, baz6) | ng2B(foo7, baz6)', + ); + + // Update `ng2ADataA`/`ng2ADataB`/`ng2ADataC`. + // (Should propagate everywhere.) + ng2ComponentAInstance!.ng2ADataA = {value: 'foo9'}; + ng2ComponentAInstance!.ng2ADataB = {value: 'bar9'}; + ng2ComponentAInstance!.ng2ADataC = {value: 'baz9'}; + $digest(adapter); + await timeout(); + + expect(multiTrim(document.body.textContent)).toBe( + 'ng2A(foo9, bar9, baz9) | ng1X(foo9, bar9, baz9) | ng2B(foo9, baz9)', + ); + }); - it('should support ng2 > ng1 > ng2 > ng1 (with `require`)', waitForAsync(() => { + it('should support ng2 > ng1 > ng2 > ng1 (with `require`)', async () => { // Define `ng1Component` const ng1ComponentA: angular.IComponent = { template: 'ng1A()', @@ -4839,15 +4774,14 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(document.body.textContent)).toBe( - 'ng2A(ng1A(ng2B(ng1B(^^ng1A: ng1A | ?^^ng1B: | ^ng1B: ng1B))))', - ); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(document.body.textContent)).toBe( + 'ng2A(ng1A(ng2B(ng1B(^^ng1A: ng1A | ?^^ng1B: | ^ng1B: ng1B))))', + ); + }); describe('standalone', () => { - it('should upgrade to a standalone component in NgModule-bootstrapped application', waitForAsync(() => { + it('should upgrade to a standalone component in NgModule-bootstrapped application', async () => { const ng1Component: angular.IComponent = {template: `I'm from AngularJS!`}; // Define `Ng1ComponentFacade` (standalone) @@ -4885,10 +4819,9 @@ withEachNg1Version(() => { // Bootstrap const element = html(``); - bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then(() => { - expect(multiTrim(element.textContent)).toBe(`I'm from AngularJS!`); - }); - })); + await bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module); + expect(multiTrim(element.textContent)).toBe(`I'm from AngularJS!`); + }); }); }); }); diff --git a/packages/upgrade/static/testing/BUILD.bazel b/packages/upgrade/static/testing/BUILD.bazel index 08e9986766ae..bb1d0b6f395b 100644 --- a/packages/upgrade/static/testing/BUILD.bazel +++ b/packages/upgrade/static/testing/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "generate_api_docs", "ng_project") +load("//tools:defaults.bzl", "ng_project") package(default_visibility = ["//visibility:public"]) @@ -26,13 +26,3 @@ filegroup( "src/**/*.ts", ]) + ["PACKAGE.md"], ) - -generate_api_docs( - name = "upgrade_static_testing_docs", - srcs = [ - ":files_for_docgen", - "//packages:common_files_and_deps_for_docs", - ], - entry_point = ":index.ts", - module_name = "@angular/upgrade/static/testing", -) diff --git a/packages/upgrade/static/testing/PACKAGE.md b/packages/upgrade/static/testing/PACKAGE.md index f34d15a58207..9264cbefeedc 100644 --- a/packages/upgrade/static/testing/PACKAGE.md +++ b/packages/upgrade/static/testing/PACKAGE.md @@ -1 +1,3 @@ +IMPORTANT: The `@angular/upgrade` package is in maintenance mode. We will not be accepting any new features or bug fixes other than security fixes. + Supplies testing functions for the AngularJS-to-Angular upgrade path. diff --git a/packages/zone.js/CHANGELOG.md b/packages/zone.js/CHANGELOG.md index c14980b88ba4..5610e067a430 100644 --- a/packages/zone.js/CHANGELOG.md +++ b/packages/zone.js/CHANGELOG.md @@ -1,3 +1,15 @@ +## 0.16.3 (2026-09-02) + +* docs(zone.js): point the Bluebird link at the project repo ([731c838](https://github.com/angular/angular/commit/731c838)) +* fix(zone.js): preserve accessor and non-enumerable event listener options ([4c4a705](https://github.com/angular/angular/commit/4c4a705)), closes [#54142](https://github.com/angular/angular/issues/54142) [#54142](https://github.com/angular/angular/issues/54142) [#70431](https://github.com/angular/angular/issues/70431) +* ci: add Alan as a zone.js reviewer ([5553699](https://github.com/angular/angular/commit/5553699)) +* fix(zone.js): guard against null handle when detecting refreshable timers ([36c2197](https://github.com/angular/angular/commit/36c2197)), closes [#70044](https://github.com/angular/angular/issues/70044) +* fix(zone.js): vitest patching of describe/it curried calls ([e23541b](https://github.com/angular/angular/commit/e23541b)), closes [#69748](https://github.com/angular/angular/issues/69748) +* fix(zone.js): harden zoneSymbolEventNames and patches against __proto__ key ([2d33fd5](https://github.com/angular/angular/commit/2d33fd5)) +* fix(zone.js): harden zoneSymbolEventNames against __proto__ key (defense-in-depth) ([fd7c2da](https://github.com/angular/angular/commit/fd7c2da)) +* fix(zone.js): avoid type error on custom object rejection with rejection property ([fa75800](https://github.com/angular/angular/commit/fa75800)) +* fix(zone.js): validate __Zone_symbol_prefix to prevent DOM clobbering attacks ([e50f504](https://github.com/angular/angular/commit/e50f504)) + ## 0.16.2 (2026-05-06) * feat(zone.js): support vitest patching in zone.js/testing (#68395) ([62c6e3b](https://github.com/angular/angular/commit/62c6e3b)), closes [#68395](https://github.com/angular/angular/issues/68395) [#68395](https://github.com/angular/angular/issues/68395) diff --git a/packages/zone.js/DEVELOPER.md b/packages/zone.js/DEVELOPER.md index 8917a0cfc3ed..b1027b8dcc86 100644 --- a/packages/zone.js/DEVELOPER.md +++ b/packages/zone.js/DEVELOPER.md @@ -34,8 +34,7 @@ Run all checks (lint/format/browser test/test-node): Please make sure you pass all following checks before commit -- pnpm gulp lint (tslint) -- pnpm gulp format (prettier) +- pnpm lint (tslint and format) - pnpm promisetest (promise a+ test) - pnpm bazel test //packages/zone.js/... (all tests) @@ -53,14 +52,7 @@ pnpm webdriver-test ## Releasing -Releasing `zone.js` is a two step process. - -1. Create a PR which updates the changelog, and get it merged using normal merge process. -2. Once the PR is merged check out the merge SHA of the PR and release `zone.js` from that SHA and tag it. - -### Automated Release - -You can use the automated release script which handles both steps (run from the root of the repo): +Releasing `zone.js` is handled via the release script (run from the root of the repo): ```bash pnpm zonejs:release @@ -68,55 +60,7 @@ pnpm zonejs:release Follow the interactive prompts to either create a PR or cut a release. ---- +Releasing is a two step process: -### Manual Release (Legacy) - -#### 1. Creating a PR for release - -``` -rm -rf node_modules && pnpm install -export PREVIOUS_ZONE_TAG=`git tag -l 'zone.js-0.15.*' | tail -n1` -export VERSION=`(cd packages/zone.js; npm version patch --no-git-tag-version)` -export VERSION=${VERSION#v} -export TAG="zone.js-${VERSION}" -echo "Releasing zone.js version ${TAG}. Last release was ${PREVIOUS_ZONE_TAG}." -pnpm gulp changelog:zonejs -``` - -Inspect the `packages/zone.js/CHANGELOG.md` for any issues and than commit it with this command. - -Create a dry run build to make sure everything is ready. - -``` -pnpm bazel build //packages/zone.js:npm_package --workspace_status_command="echo STABLE_PROJECT_VERSION $VERSION" -``` - -If everything looks good, commit the changes and push them to your origin to create a PR. - -``` -git checkout -b "release_${TAG}" -git add packages/zone.js/CHANGELOG.md packages/zone.js/package.json -git commit -m "release: cut the ${TAG} release" -git push origin "release_${TAG}" -``` - -#### 2. Cutting a release - -Check out the SHA on main which has the changelog commit of the zone.js - -``` -git fetch upstream -git checkout upstream/main -rm -rf node_modules && pnpm install -export VERSION=`(node -e "console.log(require('./packages/zone.js/package.json').version)")` -export TAG="zone.js-${VERSION}" -export SHA=`git log upstream/main --oneline -n 1000 | grep "release: cut the ${TAG} release" | cut -f 1 -d " "` -echo "Releasing '$VERSION' which will be tagged as '$TAG' from SHA '$SHA'." -git checkout ${SHA} -npm login --registry https://wombat-dressing-room.appspot.com -pnpm bazel build //packages/zone.js:npm_package --config=release --workspace_status_command="echo STABLE_PROJECT_VERSION $VERSION" -npm publish dist/bin/packages/zone.js/npm_package --access public --tag latest -git tag ${TAG} ${SHA} -git push upstream ${TAG} -``` +1. **Create a PR for release**: updates the version in `packages/zone.js/package.json`, generates the `packages/zone.js/CHANGELOG.md` with all changes since the last zone.js release, runs a dry-run build, creates and pushes the release branch, and provides a PR link. +2. **Cut a release (publish)**: once the PR is merged, check out the merged release commit, build the package with release config, publish to npm, and tag and push the `zone.js-` release tag. diff --git a/packages/zone.js/NON-STANDARD-APIS.md b/packages/zone.js/NON-STANDARD-APIS.md index e74aae602477..6a0411f2abf8 100644 --- a/packages/zone.js/NON-STANDARD-APIS.md +++ b/packages/zone.js/NON-STANDARD-APIS.md @@ -27,7 +27,7 @@ Usage: ## Currently Supported Non-Standard Common APIs -- [Bluebird](http://bluebirdjs.com/docs/getting-started.html) Promise +- [Bluebird](https://github.com/petkaantonov/bluebird) Promise Browser Usage: diff --git a/packages/zone.js/lib/common/events.ts b/packages/zone.js/lib/common/events.ts index b7ea63dd8cc8..802e60766304 100644 --- a/packages/zone.js/lib/common/events.ts +++ b/packages/zone.js/lib/common/events.ts @@ -89,9 +89,14 @@ const OPTIMIZED_ZONE_EVENT_TASK_DATA: EventTaskData = { export const zoneSymbolEventNames: any = Object.create(null); export const globalSources: any = {}; -const EVENT_NAME_SYMBOL_REGX = new RegExp('^' + ZONE_SYMBOL_PREFIX + '(\\w+)(true|false)$'); +const EVENT_NAME_SYMBOL_REGX = new RegExp('^' + ZONE_SYMBOL_PREFIX + '([\\s\\S]+)(true|false)$'); const IMMEDIATE_PROPAGATION_SYMBOL = zoneSymbol('propagationStopped'); +// Recognised members of the `AddEventListenerOptions` WebIDL dictionary, used +// by `copyEventListenerOptions` to recover accessors and non-enumerable +// properties that a caller-supplied options object may expose. +const KNOWN_EVENT_LISTENER_OPTIONS = ['capture', 'once', 'passive', 'signal']; + function prepareEventNames(eventName: string, eventNameToString?: (eventName: string) => string) { const falseEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + FALSE_STR; const trueEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + TRUE_STR; @@ -381,7 +386,8 @@ export function patchEventTarget( return {passive: true}; } if (typeof options === 'object' && options.passive !== false) { - return {...options, passive: true}; + options.passive = true; + return options; } return options; } @@ -492,27 +498,22 @@ export function patchEventTarget( const passiveEvents: string[] = _global[zoneSymbol('PASSIVE_EVENTS')]; function copyEventListenerOptions(options: any) { - if (typeof options === 'object' && options !== null) { - // We need to destructure the target `options` object since it may - // be frozen or sealed (possibly provided implicitly by a third-party - // library), or its properties may be readonly. - const newOptions: any = {...options}; - // The `signal` option was recently introduced, which caused regressions in - // third-party scenarios where `AbortController` was directly provided to - // `addEventListener` as options. For instance, in cases like - // `document.addEventListener('keydown', callback, abortControllerInstance)`, - // which is valid because `AbortController` includes a `signal` getter, spreading - // `{...options}` wouldn't copy the `signal`. Additionally, using `Object.create` - // isn't feasible since `AbortController` is a built-in object type, and attempting - // to create a new object directly with it as the prototype might result in - // unexpected behavior. - if (options.signal) { - newOptions.signal = options.signal; + if (typeof options !== 'object' || options === null) { + return options; + } + // Spread copies own enumerable properties, invoking any getters exactly once. + const newOptions: any = {...options}; + // Anything the spread could not see (inherited accessors such as + // `AbortController.prototype.signal`, or non-enumerable properties defined + // via `Object.defineProperty`) is read directly from the source, exactly once. Reading + // from `options` rather than `newOptions` also gives prototype getters the + // correct receiver. + for (const key of KNOWN_EVENT_LISTENER_OPTIONS) { + if (!Object.hasOwn(newOptions, key) && key in options) { + newOptions[key] = options[key]; } - return newOptions; } - - return options; + return newOptions; } const makeAddListener = function ( @@ -556,7 +557,7 @@ export function patchEventTarget( } const passive = !!passiveEvents && passiveEvents.indexOf(eventName) !== -1; - const options = copyEventListenerOptions(buildEventListenerOptions(arguments[2], passive)); + const options = buildEventListenerOptions(copyEventListenerOptions(arguments[2]), passive); const signal: AbortSignal | undefined = options?.signal; if (signal?.aborted) { // the signal is an aborted one, just return without attaching the event listener. diff --git a/packages/zone.js/package.json b/packages/zone.js/package.json index d0e2b248f74a..0f882f9a2de3 100644 --- a/packages/zone.js/package.json +++ b/packages/zone.js/package.json @@ -1,6 +1,6 @@ { "name": "zone.js", - "version": "0.16.2", + "version": "0.16.3", "description": "Zones for JavaScript", "main": "./bundles/zone.umd.js", "module": "./fesm2015/zone.js", @@ -8,19 +8,19 @@ "fesm2015": "./fesm2015/zone.js", "typings": "./zone.d.ts", "devDependencies": { - "@csstools/css-calc": "3.3.0", - "@csstools/css-color-parser": "4.2.1", + "@csstools/css-calc": "3.4.3", + "@csstools/css-color-parser": "4.2.7", "@externs/nodejs": "1.5.0", "@types/jasmine": "6.0.0", "@types/node": "^24.3.0", "@types/systemjs": "6.15.4", "bluebird": "3.7.2", - "domino": "https://github.com/angular/domino.git#04f987dc08ff3736b427f50941adf1722458528f", + "domino": "https://github.com/angular/domino.git#51fa184b59769e2d150c92ce09c46e3dbeb401c1", "esbuild-plugin-umd-wrapper": "3.0.0", - "jest-environment-jsdom": "30.4.1", - "jest-environment-node": "30.4.1", - "jest": "30.4.2", - "mocha": "11.8.0", + "jest-environment-jsdom": "30.5.2", + "jest-environment-node": "30.5.2", + "jest": "30.5.2", + "mocha": "12.0.3", "mock-require": "3.0.3", "jasmine": "6.3.0", "source-map-support": "0.5.21", @@ -29,7 +29,7 @@ "rxjs": "7.8.2", "systemjs": "6.15.1", "tslib": "^2.3.0", - "vitest": "^4.0.0" + "vitest": "^5.0.0" }, "scripts": { "electrontest": "cd test/extra && node electron.js", diff --git a/packages/zone.js/test/browser/browser.spec.ts b/packages/zone.js/test/browser/browser.spec.ts index 218536716ea4..17c1317885d9 100644 --- a/packages/zone.js/test/browser/browser.spec.ts +++ b/packages/zone.js/test/browser/browser.spec.ts @@ -592,6 +592,7 @@ describe('Zone Browser', function () { htmlElementTagNames.forEach((tagName) => { checkIsOnPropertiesPatched(document.createElement(tagName), eventNames, [ 'onorientationchange', + 'onpaint', ]); }); }); @@ -2184,6 +2185,73 @@ describe('Zone Browser', function () { expect(logs).toEqual(['click2']); }); + // Options exposed as accessors or non-enumerable properties must still + // reach the native call. https://github.com/angular/angular/issues/54142 + describe('event listener options built with accessors', function () { + it('should invoke a non-enumerable `passive` getter (MDN feature-detect pattern)', function () { + let getCount = 0; + const opts = Object.defineProperty({}, 'passive', { + get: () => { + getCount++; + return false; + }, + }); + const listener = () => {}; + button.addEventListener('click', listener, opts as any); + expect(getCount).toBe(1); + button.removeEventListener('click', listener, opts as any); + }); + + it('should honour `capture: true` supplied as an accessor', function () { + const opts = Object.defineProperty({}, 'capture', {get: () => true}); + const inner = document.createElement('span'); + button.appendChild(inner); + let phase = -1; + const listener = (e: Event) => { + phase = e.eventPhase; + }; + button.addEventListener('click', listener, opts as any); + inner.dispatchEvent(clickEvent); + expect(phase).toBe(Event.CAPTURING_PHASE); + + button.removeEventListener('click', listener, opts as any); + phase = -1; + inner.dispatchEvent(clickEvent); + expect(phase).toBe(-1); + button.removeChild(inner); + }); + + it('should honour `once: true` supplied as an accessor', function () { + const opts = Object.defineProperty({}, 'once', {get: () => true}); + let callCount = 0; + button.addEventListener('click', () => callCount++, opts as any); + button.dispatchEvent(clickEvent); + button.dispatchEvent(clickEvent); + expect(callCount).toBe(1); + }); + + // `AbortController.prototype.signal` is a prototype accessor, so an + // own-properties-only copy would drop it. + it('should honour `signal` on an AbortController passed as options', function () { + const ac = new AbortController(); + const logs: string[] = []; + button.addEventListener('click', () => logs.push('click'), ac); + button.dispatchEvent(clickEvent); + ac.abort(); + button.dispatchEvent(clickEvent); + expect(logs).toEqual(['click']); + expect(button.eventListeners!('click').length).toBe(0); + }); + + // https://github.com/angular/angular/pull/55796 + it('should accept a frozen options object', function () { + const opts = Object.freeze({capture: true, once: true}); + const listener = () => {}; + expect(() => button.addEventListener('click', listener, opts as any)).not.toThrow(); + button.removeEventListener('click', listener, opts as any); + }); + }); + // https://github.com/angular/angular/issues/56148 it('should store the remove abort listener on the task itself and not the task data', function () { const logs: string[] = []; diff --git a/packages/zone.js/test/node/events.spec.ts b/packages/zone.js/test/node/events.spec.ts index 23a1b89bf700..755592bd8fa9 100644 --- a/packages/zone.js/test/node/events.spec.ts +++ b/packages/zone.js/test/node/events.spec.ts @@ -146,6 +146,26 @@ describe('nodejs EventEmitter', () => { expect(emitter.listeners('test1').length).toEqual(0); }); }); + it('should remove all listeners for non-word event names without a type parameter', () => { + zoneA.run(() => { + const eventNames = [ + 'tenant:notification', + 'tenant.notification', + 'tenant-notification', + 'tenant\u2603notification', + ]; + for (const eventName of eventNames) { + emitter.on(eventName, shouldNotRun); + } + + emitter.removeAllListeners(); + + for (const eventName of eventNames) { + expect(emitter.listeners(eventName).length).toEqual(0); + emitter.emit(eventName); + } + }); + }); it('should remove once listener after emit', () => { zoneA.run(() => { emitter.once('test', expectZoneA); diff --git a/packages/zone.js/test/typings/package.json b/packages/zone.js/test/typings/package.json index 57a60be12eb9..bcf7a901a1b4 100644 --- a/packages/zone.js/test/typings/package.json +++ b/packages/zone.js/test/typings/package.json @@ -9,7 +9,7 @@ "author": "", "license": "MIT", "dependencies": { - "domino": "https://github.com/angular/domino.git#04f987dc08ff3736b427f50941adf1722458528f", + "domino": "https://github.com/angular/domino.git#51fa184b59769e2d150c92ce09c46e3dbeb401c1", "zone.js": "workspace:*" }, "devDependencies": { diff --git a/packages/zone.js/test/typings/tsconfig.json b/packages/zone.js/test/typings/tsconfig.json index e9454947485a..fde7e532bc85 100644 --- a/packages/zone.js/test/typings/tsconfig.json +++ b/packages/zone.js/test/typings/tsconfig.json @@ -13,7 +13,6 @@ "moduleResolution": "Node16", "noEmitOnError": false, "stripInternal": false, - "strict": true, "lib": ["es5", "dom", "es2015.collection", "es2015.iterable", "es2015.promise", "es2022.object"] }, "files": ["./type.test.ts", "./node_modules/zone.js/zone.ts"] diff --git a/packages/zone.js/tools/release.mts b/packages/zone.js/tools/release.mts index 9644161dc00e..0dde08a7e5a0 100644 --- a/packages/zone.js/tools/release.mts +++ b/packages/zone.js/tools/release.mts @@ -85,7 +85,6 @@ async function createPrWorkflow(): Promise { await updatingPackageJsonVersion(newVersion); // Generate changelog - // pnpm gulp changelog:zonejs console.log(chalk.blue('Generating changelog...')); await execAndStream('pnpm', ['gulp', 'changelog:zonejs'], { env: { @@ -124,11 +123,14 @@ async function createPrWorkflow(): Promise { console.log(chalk.blue(`Pushing to ${forkRemote}...`)); await exec(`git push ${forkRemote} "${releaseBranch}"`); - console.log( - chalk.yellow( - `Please create a pull request by visiting: https://github.com/angular/angular/pull/new/${releaseBranch}`, - ), - ); + const {stdout: remoteUrl} = await exec(`git remote get-url ${forkRemote}`); + const {owner, repo} = getRepoDetails(remoteUrl); + const prUrl = + owner === 'angular' + ? `https://github.com/angular/angular/compare/main...${releaseBranch}` + : `https://github.com/angular/angular/compare/main...${owner}:${repo}:${releaseBranch}`; + + console.log(chalk.yellow(`Please create a pull request by visiting: ${prUrl}`)); const continueToPublish = await select({ message: 'Do you want to continue to the publish step once the PR is merged?', @@ -177,7 +179,7 @@ async function cutReleaseWorkflow(): Promise { console.log(chalk.blue(`Looking for release commit for ${tagName}...`)); const commitMessagePattern = `release: cut the ${tagName} release`; const {stdout: sha} = await exec( - `git log FETCH_HEAD --oneline -n 1000 | grep "${commitMessagePattern}" | cut -f 1 -d " "`, + `git log FETCH_HEAD --grep="^${commitMessagePattern}" --format=format:%H -n 1`, ); const trimmedSha = sha.trim(); @@ -230,7 +232,7 @@ async function cutReleaseWorkflow(): Promise { async function cleanAndInstall() { console.log(chalk.blue('Cleaning and installing dependencies...')); await exec('git clean -dxf'); - await execAndStream('pnpm', ['install', , '--frozen-lockfile']); + await execAndStream('pnpm', ['install', '--frozen-lockfile']); } async function checkCleanWorkingDirectory(): Promise { @@ -374,7 +376,7 @@ async function getForkRemoteName(): Promise { } function getRepoDetails(remoteUrl: string): {owner: string; repo: string} { - const match = remoteUrl.trim().match(/github\.com[/:]([\w-]+)\/([\w-]+)/); + const match = remoteUrl.trim().match(/github\.com[/:]([\w-]+)\/([\w-]+?)(?:\.git)?$/); return { owner: match ? match[1] : 'angular', repo: match ? match[2] : 'angular', diff --git a/packages/zone.js/tsconfig.json b/packages/zone.js/tsconfig.json index 2873d926e6b0..ab88ce566a2b 100644 --- a/packages/zone.js/tsconfig.json +++ b/packages/zone.js/tsconfig.json @@ -10,7 +10,6 @@ "declaration": true, "noEmitOnError": false, "stripInternal": true, - "strict": true, "sourceMap": true, "noImplicitOverride": true, "lib": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6b2d3e12e97b..5ea2737a5bba 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,3 +1,186 @@ +--- +lockfileVersion: '9.0' + +importers: + + .: + configDependencies: {} + packageManagerDependencies: + '@pnpm/exe': + specifier: 12.18.0 + version: 12.18.0 + pnpm: + specifier: 12.18.0 + version: 12.18.0 + +packages: + + '@pnpm/exe.android-arm64@12.18.0': + resolution: {integrity: sha512-fOF6IwgvnUKEmVedGqiAsNPfN2Ry8GvaqzSQOiF3RJFbpBfPKO/6YT54s1GjToyYinRxw9preHHPe4y2N3SzhA==} + cpu: [arm64] + os: [android] + + '@pnpm/exe.android-x64@12.18.0': + resolution: {integrity: sha512-6OiolnaCsB3/GcJ9XNrenbUH3zFHRJ+5QynrMUUEyThbgnnCzWxa199hpQlOmxN4rAXuYQ0IYgWFNUZxyzg31Q==} + cpu: [x64] + os: [android] + + '@pnpm/exe.darwin-arm64@12.18.0': + resolution: {integrity: sha512-zkq+4YzVIX39ETYLyC3W7LY7MpHEU/J3nRhHl4i2yPld2Cf2+rEKRh3ejJ4AmaQ77HHJLCktY4Z3jq0fpcxFXg==} + cpu: [arm64] + os: [darwin] + + '@pnpm/exe.darwin-x64@12.18.0': + resolution: {integrity: sha512-qMsL9qx92unOTa6hgkfiTJv8ceZaTx0IQg7InhYDVX2ZrTECujaVEEVypnJK5m3eGUsP1KD7Y4qIgleCwfRsYw==} + cpu: [x64] + os: [darwin] + + '@pnpm/exe.freebsd-x64@12.18.0': + resolution: {integrity: sha512-/9vy/4ms52cU4MjZ5NhHd6N2d9L9W0kARf5/ff2tweAHu0VeUzs/0qp/7ZHFuddm2Wa/m0AKQoPum9AVUCqKsw==} + cpu: [x64] + os: [freebsd] + + '@pnpm/exe.linux-arm64-musl@12.18.0': + resolution: {integrity: sha512-Vp+TIMPPyackVCXkOdEKH/RmAn/r07EcIyrgZYQK7VrkksqZOie0GnWIx+85mPqeFEYCRtXIZAFJ9L4ceTndDg==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-arm64@12.18.0': + resolution: {integrity: sha512-2dpyVBCHT+FfpuQh9i+7MXAqNWYLCvD5vYr5p6Eimxoga8USLnjbUgyj72AOrO0hjc5ri3TEFP3jiyBHjkSZpQ==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-ppc64@12.18.0': + resolution: {integrity: sha512-BBOOOfNJ2QwIIya3eKqOjiN4WNTszfRz7HCvw9XggcT7+ftMjNP8XJ/GfW+ltCBeUFR9d8WBVsr2m/NLjX2CZQ==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-riscv64@12.18.0': + resolution: {integrity: sha512-7kMN77xSOYJX8GPSH5RbNAc5oM61LMmcSUukDDUwllnZPXm8GRPskCNsTWy8SCw01Kr1FB+5SwGNMiTdiziLNQ==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-s390x@12.18.0': + resolution: {integrity: sha512-htuSCpEcmDzhKoJqXbPkvfr176dBHU0QIF5mWcRiqxRXAB/1JoYiMYotfjWpk+ztgpB9qlx4XnWlLFAf7gzc6g==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-x64-musl@12.18.0': + resolution: {integrity: sha512-Uj+vzfIQ62kDP10x36yHZIXVs5ohdNtiPYwn5FhCLlNScHPo0OAI+ShGDtLofiBXKE7umu71Jmjm7N8a8zVcDw==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-x64@12.18.0': + resolution: {integrity: sha512-OJ+X2wcraldCwj75pCIerWARQSRpdfj0eBTs/2ODyhfeW46ylOnjTIE/GKra6Mn6E72/gBmXS8igrUioa+F9fQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.win32-arm64@12.18.0': + resolution: {integrity: sha512-wEY6jiACGcbhhi5yD59doHqNTndS7AaujaPmtWAu1DKkHru2hy5fJ9yUGecW72Ypaw2/I3BEprfMOopap2NQtw==} + cpu: [arm64] + os: [win32] + + '@pnpm/exe.win32-x64@12.18.0': + resolution: {integrity: sha512-5FJkghO7RLRkQpWxeVEygW9XsmnNuxzPfXbgwFWCHsFyFhpDn/vOdL88ToQEM0Kt5igdW5s6U0/IDH8Dvkt3pg==} + cpu: [x64] + os: [win32] + + '@pnpm/exe@12.18.0': + resolution: {integrity: sha512-3t/p83vw9SXsJML6suMBThCtwCl4lUGp/ILcxECU1In+G+NmFwMV9D+2TcvU7kX8tbrHRoYhs3eOPepEVdD7tQ==} + engines: {node: '>=18'} + hasBin: true + + pnpm@12.18.0: + resolution: {integrity: sha512-nXiC1dyCFH7PxOBiqjSDTgrQKWcQoYN6ERWuASEn02txCeMhrBWYod0KZVl2gbHpmRfhLtDXSerpEYeUM2O+sw==} + engines: {node: '>=18'} + hasBin: true + +snapshots: + + '@pnpm/exe.android-arm64@12.18.0': + optional: true + + '@pnpm/exe.android-x64@12.18.0': + optional: true + + '@pnpm/exe.darwin-arm64@12.18.0': + optional: true + + '@pnpm/exe.darwin-x64@12.18.0': + optional: true + + '@pnpm/exe.freebsd-x64@12.18.0': + optional: true + + '@pnpm/exe.linux-arm64-musl@12.18.0': + optional: true + + '@pnpm/exe.linux-arm64@12.18.0': + optional: true + + '@pnpm/exe.linux-ppc64@12.18.0': + optional: true + + '@pnpm/exe.linux-riscv64@12.18.0': + optional: true + + '@pnpm/exe.linux-s390x@12.18.0': + optional: true + + '@pnpm/exe.linux-x64-musl@12.18.0': + optional: true + + '@pnpm/exe.linux-x64@12.18.0': + optional: true + + '@pnpm/exe.win32-arm64@12.18.0': + optional: true + + '@pnpm/exe.win32-x64@12.18.0': + optional: true + + '@pnpm/exe@12.18.0': + optionalDependencies: + '@pnpm/exe.android-arm64': 12.18.0 + '@pnpm/exe.android-x64': 12.18.0 + '@pnpm/exe.darwin-arm64': 12.18.0 + '@pnpm/exe.darwin-x64': 12.18.0 + '@pnpm/exe.freebsd-x64': 12.18.0 + '@pnpm/exe.linux-arm64': 12.18.0 + '@pnpm/exe.linux-arm64-musl': 12.18.0 + '@pnpm/exe.linux-ppc64': 12.18.0 + '@pnpm/exe.linux-riscv64': 12.18.0 + '@pnpm/exe.linux-s390x': 12.18.0 + '@pnpm/exe.linux-x64': 12.18.0 + '@pnpm/exe.linux-x64-musl': 12.18.0 + '@pnpm/exe.win32-arm64': 12.18.0 + '@pnpm/exe.win32-x64': 12.18.0 + + pnpm@12.18.0: + optionalDependencies: + '@pnpm/exe.android-arm64': 12.18.0 + '@pnpm/exe.android-x64': 12.18.0 + '@pnpm/exe.darwin-arm64': 12.18.0 + '@pnpm/exe.darwin-x64': 12.18.0 + '@pnpm/exe.freebsd-x64': 12.18.0 + '@pnpm/exe.linux-arm64': 12.18.0 + '@pnpm/exe.linux-arm64-musl': 12.18.0 + '@pnpm/exe.linux-ppc64': 12.18.0 + '@pnpm/exe.linux-riscv64': 12.18.0 + '@pnpm/exe.linux-s390x': 12.18.0 + '@pnpm/exe.linux-x64': 12.18.0 + '@pnpm/exe.linux-x64-musl': 12.18.0 + '@pnpm/exe.win32-arm64': 12.18.0 + '@pnpm/exe.win32-x64': 12.18.0 + +--- lockfileVersion: '9.0' settings: @@ -6,36 +189,36 @@ settings: packageExtensionsChecksum: sha256-3L73Fw32UVtE6x5BJxJPBtQtH/mgsr31grNpdhHP1IY= -pnpmfileChecksum: sha256-TYPFsbGgXlr65uhno3A1oHE+n2qqt8R+w/szQ+Wq97s= +pnpmfileChecksum: sha256-QunhHrx56db5oYtx13Qk+ZRpgE0xSUv0SrI3XoRbbdo= importers: .: dependencies: '@angular-devkit/core': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(chokidar@5.0.0) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(chokidar@6.0.0) '@angular-devkit/schematics': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(chokidar@5.0.0) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(chokidar@6.0.0) '@angular/animations': specifier: workspace:* version: link:packages/animations '@angular/aria': - specifier: 22.2.0-next.3 - version: 22.2.0-next.3(@angular/cdk@22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/core@packages+core) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@angular/cdk@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/core@packages+core) '@angular/benchpress': - specifier: 'workspace: *' + specifier: workspace:* version: link:packages/benchpress '@angular/build': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(d042945b298c3146aa53f7230502473a) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@angular/compiler-cli@packages+compiler-cli)(@angular/compiler@packages+compiler)(@angular/core@packages+core)(@angular/localize@packages+localize)(@angular/platform-browser@packages+platform-browser)(@angular/platform-server@packages+platform-server)(@angular/service-worker@packages+service-worker)(@angular/ssr@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router))(@types/node@20.19.43)(istanbul-lib-instrument@6.0.3(supports-color@11.0.0))(jiti@1.21.7)(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6))(postcss@8.5.32)(rollup@4.68.2)(supports-color@11.0.0)(tailwindcss@3.4.19(tsx@4.23.15)(yaml@2.9.1))(tslib@2.9.1)(tsx@4.23.15)(typescript@6.0.3)(yaml@2.9.1) '@angular/cdk': - specifier: 22.2.0-next.3 - version: 22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) '@angular/cli': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(@types/node@20.19.43)(chokidar@5.0.0) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@types/node@20.19.43)(chokidar@6.0.0) '@angular/common': specifier: workspace:* version: link:packages/common @@ -55,14 +238,14 @@ importers: specifier: workspace:* version: link:packages/forms '@angular/language-service': - specifier: 'workspace: *' + specifier: workspace:* version: link:packages/language-service '@angular/localize': - specifier: 'workspace: *' + specifier: workspace:* version: link:packages/localize '@angular/material': - specifier: 22.2.0-next.3 - version: 22.2.0-next.3(@angular/cdk@22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@angular/cdk@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) '@angular/platform-browser': specifier: workspace:* version: link:packages/platform-browser @@ -79,41 +262,41 @@ importers: specifier: workspace:* version: link:packages/service-worker '@angular/ssr': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router) '@angular/upgrade': - specifier: 'workspace: *' + specifier: workspace:* version: link:packages/upgrade '@babel/cli': - specifier: 8.0.4 - version: 8.0.4(@babel/core@8.0.1) + specifier: 8.1.0 + version: 8.1.0(@babel/core@8.1.0) '@babel/core': - specifier: 8.0.1 - version: 8.0.1 + specifier: 8.1.0 + version: 8.1.0 '@babel/generator': - specifier: 8.0.0 - version: 8.0.0 + specifier: 8.1.0 + version: 8.1.0 '@rollup/plugin-commonjs': specifier: ^29.0.0 - version: 29.0.3(rollup@4.63.0) + version: 29.0.3(rollup@4.68.2) '@rollup/plugin-node-resolve': specifier: ^16.0.0 - version: 16.0.3(rollup@4.63.0) + version: 16.0.3(rollup@4.68.2) '@schematics/angular': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(chokidar@5.0.0) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(chokidar@6.0.0) '@types/angular': specifier: ^1.6.47 version: 1.8.9 '@types/chrome': - specifier: ^0.2.0 - version: 0.2.6 + specifier: ^0.3.0 + version: 0.3.7 '@types/dom-navigation': specifier: ^1.0.5 version: 1.0.7 '@types/jasmine': - specifier: ^6.0.0 - version: 6.0.0 + specifier: ^7.0.0 + version: 7.0.0 '@types/jasminewd2': specifier: ^2.0.8 version: 2.0.13 @@ -155,13 +338,13 @@ importers: version: angular-mocks@1.8.3 chalk: specifier: ^6.0.0 - version: 6.0.0 + version: 6.0.1 diff: specifier: ^9.0.0 version: 9.0.0 domino: - specifier: https://github.com/angular/domino.git#04f987dc08ff3736b427f50941adf1722458528f - version: '@angular/domino@https://codeload.github.com/angular/domino/tar.gz/04f987dc08ff3736b427f50941adf1722458528f' + specifier: https://github.com/angular/domino.git#51fa184b59769e2d150c92ce09c46e3dbeb401c1 + version: '@angular/domino@https://codeload.github.com/angular/domino/tar.gz/51fa184b59769e2d150c92ce09c46e3dbeb401c1' esbuild: specifier: 0.28.2 version: 0.28.2 @@ -169,17 +352,17 @@ importers: specifier: ^14.0.0 version: 14.1.1(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0) jasmine: - specifier: 6.3.0 - version: 6.3.0 + specifier: 7.0.0 + version: 7.0.0 jasmine-core: - specifier: 6.3.0 - version: 6.3.0 + specifier: 7.0.2 + version: 7.0.2 jasmine-reporters: specifier: ^2.5.2 version: 2.5.2 karma: specifier: ~6.4.0 - version: 6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) + version: 6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) karma-chrome-launcher: specifier: ^3.1.0 version: 3.2.0 @@ -188,13 +371,13 @@ importers: version: 2.1.3 karma-jasmine: specifier: ^5.0.0 - version: 5.1.0(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)) + version: 5.1.0(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)) karma-sourcemap-loader: specifier: ^0.4.0 version: 0.4.0 magic-string: specifier: ^1.0.0 - version: 1.0.0 + version: 1.4.5 protractor: specifier: ^7.0.0 version: 7.0.0(supports-color@11.0.0) @@ -202,11 +385,11 @@ importers: specifier: ^0.2.0 version: 0.2.2 rollup: - specifier: 4.63.0 - version: 4.63.0 + specifier: 4.68.2 + version: 4.68.2 rollup-plugin-dts: specifier: ^6.1.1 - version: 6.5.1(rollup@4.63.0)(typescript@6.0.3) + version: 6.5.1(rollup@4.68.2)(typescript@6.0.3) rxjs: specifier: ^7.0.0 version: 7.8.2 @@ -224,7 +407,7 @@ importers: version: 0.2.17 tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 tslint: specifier: 6.1.3 version: 6.1.3(typescript@6.0.3) @@ -233,13 +416,13 @@ importers: version: 6.0.3 ws: specifier: ^8.15.0 - version: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6) + version: 8.22.2(bufferutil@4.2.0)(utf-8-validate@6.0.6) yargs: specifier: ^18.0.0 - version: 18.1.0 + version: 18.2.0 zone.js: - specifier: 0.16.2 - version: 0.16.2 + specifier: 0.16.3 + version: 0.16.3 devDependencies: '@actions/core': specifier: ^3.0.0 @@ -248,8 +431,8 @@ importers: specifier: ^9.0.0 version: 9.1.1 '@angular/ng-dev': - specifier: https://github.com/angular/dev-infra-private-ng-dev-builds.git#beec8fe17573a33c9934487ce99ce9cce3e3f6bf - version: https://codeload.github.com/angular/dev-infra-private-ng-dev-builds/tar.gz/beec8fe17573a33c9934487ce99ce9cce3e3f6bf(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(supports-color@11.0.0)) + specifier: https://github.com/angular/dev-infra-private-ng-dev-builds.git#2e989b1cfb3a6fd8dc8d14c513f10f3084e6b970 + version: https://codeload.github.com/angular/dev-infra-private-ng-dev-builds/tar.gz/2e989b1cfb3a6fd8dc8d14c513f10f3084e6b970(@angular/core@packages+core)(@angular/router@packages+router)(@modelcontextprotocol/sdk@1.32.2(supports-color@11.0.0)) '@bazel/bazelisk': specifier: ^1.7.5 version: 1.28.1 @@ -261,10 +444,10 @@ importers: version: 0.28.0 '@inquirer/prompts': specifier: ^8.0.0 - version: 8.5.2(@types/node@20.19.43) + version: 8.7.5(@types/node@20.19.43) '@types/adm-zip': - specifier: ^0.5.0 - version: 0.5.8 + specifier: ^0.6.0 + version: 0.6.0 '@types/cldr': specifier: ^7.1.4 version: 7.1.4 @@ -273,10 +456,10 @@ importers: version: 0.4.29 adm-zip: specifier: ^0.6.0 - version: 0.6.0 + version: 0.6.1 cldr: - specifier: 8.0.0 - version: 8.0.0 + specifier: 9.0.0 + version: 9.0.0 cldrjs: specifier: 0.5.5 version: 0.5.5 @@ -284,14 +467,14 @@ importers: specifier: ^8.0.0 version: 8.1.3 cypress: - specifier: 15.21.1 - version: 15.21.1(bufferutil@4.1.0) + specifier: 16.3.0 + version: 16.3.0(bufferutil@4.2.0) firebase-tools: specifier: ^15.0.0 - version: 15.27.0(@cfworker/json-schema@4.1.1)(@types/node@20.19.43)(bufferutil@4.1.0)(encoding@0.1.13)(supports-color@11.0.0)(utf-8-validate@6.0.6) + version: 15.35.0(@types/node@20.19.43)(bare-buffer@3.7.1)(bufferutil@4.2.0)(encoding@0.1.14)(supports-color@11.0.0) get-tsconfig: specifier: ^4.10.1 - version: 4.14.2 + version: 4.14.3 gulp: specifier: ^5.0.0 version: 5.0.1 @@ -306,16 +489,16 @@ importers: version: 2.2.1(supports-color@11.0.0) karma-jasmine-html-reporter: specifier: ^2.2.0 - version: 2.2.0(jasmine-core@6.3.0)(karma-jasmine@5.1.0(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)))(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)) + version: 2.3.0(jasmine-core@7.0.2)(karma-jasmine@5.1.0(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)))(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)) prettier: specifier: ^3.8.0 - version: 3.9.6 + version: 3.9.10 rollup-plugin-sourcemaps2: specifier: ^0.5.1 - version: 0.5.8(@types/node@20.19.43)(rollup@4.63.0) + version: 0.5.10(@types/node@20.19.43)(rollup@4.68.2) semver: specifier: ^7.3.5 - version: 7.8.5 + version: 7.8.6 ts-node: specifier: ^10.9.1 version: 10.9.2(@types/node@20.19.43)(typescript@6.0.3) @@ -329,32 +512,32 @@ importers: adev: dependencies: '@algolia/client-common': - specifier: 5.57.0 - version: 5.57.0 + specifier: 5.64.0 + version: 5.64.0 '@algolia/client-search': - specifier: 5.57.0 - version: 5.57.0 + specifier: 5.64.0 + version: 5.64.0 '@algolia/requester-browser-xhr': - specifier: 5.57.0 - version: 5.57.0 + specifier: 5.64.0 + version: 5.64.0 '@algolia/requester-node-http': - specifier: 5.57.0 - version: 5.57.0 + specifier: 5.64.0 + version: 5.64.0 '@angular/animations': specifier: workspace:* version: link:../packages/animations '@angular/aria': - specifier: 22.2.0-next.3 - version: 22.2.0-next.3(@angular/cdk@22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/core@packages+core) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@angular/cdk@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/core@packages+core) '@angular/build': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(7387dddf71e4685389a4d00910fd9b91) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(da72a7edc1d3af608ef0b3c918d57711) '@angular/cdk': - specifier: 22.2.0-next.3 - version: 22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) '@angular/cli': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(@types/node@24.13.3)(chokidar@5.0.0) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@types/node@24.19.2)(chokidar@6.0.0) '@angular/common': specifier: workspace:* version: link:../packages/common @@ -374,8 +557,8 @@ importers: specifier: workspace:* version: link:../packages/forms '@angular/material': - specifier: 22.2.0-next.3 - version: 22.2.0-next.3(@angular/cdk@22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@angular/cdk@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) '@angular/platform-browser': specifier: workspace:* version: link:../packages/platform-browser @@ -386,14 +569,14 @@ importers: specifier: workspace:* version: link:../packages/router '@angular/ssr': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router) '@codemirror/autocomplete': - specifier: 6.20.3 - version: 6.20.3 + specifier: 6.20.4 + version: 6.20.4 '@codemirror/commands': - specifier: 6.11.0 - version: 6.11.0 + specifier: 6.11.1 + version: 6.11.1 '@codemirror/lang-angular': specifier: 0.1.4 version: 0.1.4 @@ -410,38 +593,41 @@ importers: specifier: 6.0.2 version: 6.0.2 '@codemirror/language': - specifier: 6.12.4 - version: 6.12.4 + specifier: 6.13.1 + version: 6.13.1 '@codemirror/lint': specifier: 6.9.7 version: 6.9.7 '@codemirror/search': - specifier: 6.7.1 - version: 6.7.1 + specifier: 6.7.2 + version: 6.7.2 '@codemirror/state': - specifier: 6.7.1 - version: 6.7.1 + specifier: 6.7.6 + version: 6.7.6 + '@codemirror/streamparser': + specifier: 6.0.0 + version: 6.0.0 '@codemirror/view': - specifier: 6.43.9 - version: 6.43.9 + specifier: 6.43.15 + version: 6.43.15 '@lezer/common': - specifier: 1.5.2 - version: 1.5.2 + specifier: 1.5.5 + version: 1.5.5 '@lezer/css': - specifier: 1.3.6 - version: 1.3.6 + specifier: 1.3.9 + version: 1.3.9 '@lezer/highlight': - specifier: 1.2.3 - version: 1.2.3 + specifier: 1.2.5 + version: 1.2.5 '@lezer/html': specifier: 1.3.13 version: 1.3.13 '@lezer/javascript': - specifier: 1.5.4 - version: 1.5.4 + specifier: 1.5.6 + version: 1.5.6 '@lezer/lr': - specifier: 1.4.10 - version: 1.4.10 + specifier: 1.4.12 + version: 1.4.12 '@lezer/sass': specifier: 1.1.0 version: 1.1.0 @@ -450,28 +636,28 @@ importers: version: 1.0.4 '@shikijs/core': specifier: ^4.0.0 - version: 4.4.3 + version: 4.6.0 '@shikijs/engine-javascript': specifier: ^4.0.0 - version: 4.4.3 + version: 4.6.0 '@shikijs/engine-oniguruma': specifier: ^4.0.0 - version: 4.4.3 + version: 4.6.0 '@shikijs/langs': specifier: ^4.0.0 - version: 4.4.3 + version: 4.6.0 '@shikijs/primitive': specifier: ^4.0.0 - version: 4.4.3 + version: 4.6.0 '@shikijs/themes': specifier: ^4.0.0 - version: 4.4.3 + version: 4.6.0 '@shikijs/types': specifier: ^4.0.0 - version: 4.4.3 + version: 4.6.0 '@shikijs/vscode-textmate': specifier: ^10.0.2 - version: 10.0.2 + version: 10.1.0 '@stackblitz/sdk': specifier: 1.11.1 version: 1.11.1 @@ -479,17 +665,17 @@ importers: specifier: 1.0.7 version: 1.0.7 '@types/jasmine': - specifier: 6.0.0 - version: 6.0.0 + specifier: 7.0.0 + version: 7.0.0 '@types/jsdom': specifier: 30.0.0 version: 30.0.0 '@types/node': - specifier: 24.13.3 - version: 24.13.3 + specifier: 24.19.2 + version: 24.19.2 '@typescript/vfs': - specifier: 1.6.4 - version: 1.6.4(supports-color@11.0.0)(typescript@6.0.3) + specifier: 1.6.6 + version: 1.6.6(supports-color@11.0.0)(typescript@6.0.3) '@webcontainer/api': specifier: 1.6.4 version: 1.6.4 @@ -500,11 +686,14 @@ importers: specifier: 6.0.0 version: 6.0.0 algoliasearch: - specifier: 5.57.0 - version: 5.57.0 + specifier: 5.64.0 + version: 5.64.0 angular-split: specifier: 20.0.0 version: 20.0.0(@angular/common@packages+common)(@angular/core@packages+core)(rxjs@7.8.2) + beasties: + specifier: 0.5.5 + version: 0.5.5 ccount: specifier: ^2.0.1 version: 2.0.1 @@ -524,14 +713,14 @@ importers: specifier: 9.0.0 version: 9.0.0 emoji-regex: - specifier: 10.6.0 - version: 10.6.0 + specifier: 11.0.0 + version: 11.0.0 fflate: specifier: 0.8.3 version: 0.8.3 hast-util-to-html: specifier: ^9.0.5 - version: 9.0.5 + version: 9.0.6 hast-util-whitespace: specifier: ^3.0.0 version: 3.0.0 @@ -539,11 +728,11 @@ importers: specifier: ^3.0.0 version: 3.0.0 jasmine-core: - specifier: 6.3.0 - version: 6.3.0 + specifier: 7.0.2 + version: 7.0.2 jsdom: - specifier: 30.0.1 - version: 30.0.1 + specifier: 31.0.0 + version: 31.0.0 karma-chrome-launcher: specifier: 3.2.0 version: 3.2.0 @@ -552,31 +741,31 @@ importers: version: 2.2.1(supports-color@11.0.0) karma-jasmine: specifier: 5.1.0 - version: 5.1.0(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)) + version: 5.1.0(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)) karma-jasmine-html-reporter: specifier: 2.3.0 - version: 2.3.0(jasmine-core@6.3.0)(karma-jasmine@5.1.0(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)))(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)) + version: 2.3.0(jasmine-core@7.0.2)(karma-jasmine@5.1.0(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)))(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)) marked: - specifier: 18.0.11 - version: 18.0.11 + specifier: 18.2.0 + version: 18.2.0 mermaid: - specifier: 11.17.2 - version: 11.17.2 + specifier: 12.3.0 + version: 12.3.0 ngx-progressbar: specifier: 14.0.0 - version: 14.0.0(@angular/cdk@22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/common@packages+common)(@angular/core@packages+core)(rxjs@7.8.2) + version: 14.0.0(@angular/cdk@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/common@packages+common)(@angular/core@packages+core)(rxjs@7.8.2) playwright-core: - specifier: 1.62.1 - version: 1.62.1 + specifier: 1.65.0 + version: 1.65.0 preact: - specifier: 10.29.8 - version: 10.29.8(preact-render-to-string@6.7.0) + specifier: 11.2.0 + version: 11.2.0(preact-render-to-string@6.8.2) preact-render-to-string: - specifier: 6.7.0 - version: 6.7.0(preact@10.29.8) + specifier: 6.8.2 + version: 6.8.2(preact@11.2.0) prettier: - specifier: 3.9.6 - version: 3.9.6 + specifier: 3.10.0 + version: 3.10.0 property-information: specifier: ^7.1.0 version: 7.2.0 @@ -584,8 +773,8 @@ importers: specifier: 7.8.2 version: 7.8.2 shiki: - specifier: 4.4.3 - version: 4.4.3 + specifier: 4.6.0 + version: 4.6.0 space-separated-tokens: specifier: ^2.0.2 version: 2.0.2 @@ -593,14 +782,14 @@ importers: specifier: ^4.0.4 version: 4.0.4 style-mod: - specifier: 4.1.3 - version: 4.1.3 + specifier: 4.1.4 + version: 4.1.4 tinyglobby: specifier: 0.2.17 version: 0.2.17 tslib: - specifier: 2.8.1 - version: 2.8.1 + specifier: 2.9.1 + version: 2.9.1 typescript: specifier: 6.0.3 version: 6.0.3 @@ -612,34 +801,34 @@ importers: version: 2.0.4 devDependencies: autoprefixer: - specifier: 10.5.4 - version: 10.5.4(postcss@8.5.26) + specifier: 10.6.2 + version: 10.6.2(postcss@8.5.32) karma: specifier: ~6.4.4 - version: 6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) + version: 6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) postcss: - specifier: 8.5.26 - version: 8.5.26 + specifier: 8.5.32 + version: 8.5.32 tailwindcss: specifier: 3.4.19 - version: 3.4.19(tsx@4.23.12)(yaml@2.9.0) + version: 3.4.19(tsx@4.23.15)(yaml@2.9.1) adev/shared-docs: dependencies: '@angular/common': - specifier: 'workspace: *' + specifier: workspace:* version: link:../../packages/common '@angular/core': - specifier: 'workspace: *' + specifier: workspace:* version: link:../../packages/core '@angular/forms': - specifier: 'workspace: *' + specifier: workspace:* version: link:../../packages/forms '@angular/platform-browser': - specifier: 'workspace: *' + specifier: workspace:* version: link:../../packages/platform-browser '@angular/router': - specifier: 'workspace: *' + specifier: workspace:* version: link:../../packages/router '@webcontainer/api': specifier: ^1.1.8 @@ -648,26 +837,26 @@ importers: specifier: ~9.0.0 version: 9.0.0 emoji-regex: - specifier: ~10.6.0 - version: 10.6.0 + specifier: ~11.0.0 + version: 11.0.0 fflate: specifier: ^0.8.2 version: 0.8.3 jsdom: - specifier: ~30.0.0 - version: 30.0.1 + specifier: ~31.0.0 + version: 31.0.0 marked: - specifier: ~18.0.0 - version: 18.0.9 + specifier: ~18.2.0 + version: 18.2.0 mermaid: - specifier: ^11.0.0 - version: 11.16.1 + specifier: ^12.0.0 + version: 12.3.0 rxjs: specifier: ^7.8.1 version: 7.8.2 shiki: specifier: ^4.0.0 - version: 4.4.3 + version: 4.6.0 tinyglobby: specifier: ^0.2.12 version: 0.2.17 @@ -708,39 +897,42 @@ importers: specifier: workspace:* version: link:../packages/router '@angular/ssr': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router) + beasties: + specifier: 0.5.5 + version: 0.5.5 rxjs: specifier: ~7.8.0 version: 7.8.2 tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 devDependencies: '@angular/build': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(d042945b298c3146aa53f7230502473a) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(da72a7edc1d3af608ef0b3c918d57711) '@angular/cli': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(@types/node@20.19.43)(chokidar@5.0.0) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@types/node@24.19.2)(chokidar@6.0.0) '@angular/compiler-cli': specifier: workspace:* version: link:../packages/compiler-cli jsdom: - specifier: ^30.0.0 - version: 30.0.1 + specifier: ^31.0.0 + version: 31.0.0 typescript: specifier: ~6.0.2 version: 6.0.3 vitest: - specifier: ^4.0.0 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(jsdom@30.0.1)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0) + specifier: ^5.0.0 + version: 5.1.0(@opentelemetry/api@1.10.0)(@types/node@24.19.2)(jsdom@31.0.0)(vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1)) devtools: dependencies: d3: specifier: ^7.0.0 - version: 7.9.0 + version: 7.9.2 dagre-d3-es: specifier: ^7.0.14 version: 7.0.14 @@ -762,7 +954,7 @@ importers: version: 7.4.3 '@types/firefox-webext-browser': specifier: ^143.0.0 - version: 143.0.0 + version: 143.0.1 integration: dependencies: @@ -770,7 +962,7 @@ importers: specifier: workspace:* version: link:../packages/animations '@angular/benchpress': - specifier: 'workspace: *' + specifier: workspace:* version: link:../packages/benchpress '@angular/common': specifier: workspace:* @@ -791,7 +983,7 @@ importers: specifier: workspace:* version: link:../packages/forms '@angular/localize': - specifier: 'workspace: *' + specifier: workspace:* version: link:../packages/localize '@angular/platform-browser': specifier: workspace:* @@ -806,7 +998,7 @@ importers: specifier: workspace:* version: link:../packages/router '@angular/upgrade': - specifier: 'workspace: *' + specifier: workspace:* version: link:../packages/upgrade modules: @@ -818,8 +1010,8 @@ importers: specifier: workspace:* version: link:../packages/benchpress '@angular/build': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(7387dddf71e4685389a4d00910fd9b91) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(da72a7edc1d3af608ef0b3c918d57711) '@angular/common': specifier: workspace:* version: link:../packages/common @@ -851,14 +1043,14 @@ importers: specifier: workspace:* version: link:../packages/upgrade '@types/jasmine': - specifier: 6.0.0 - version: 6.0.0 + specifier: 7.0.0 + version: 7.0.0 '@types/jasminewd2': specifier: 2.0.13 version: 2.0.13 '@types/node': - specifier: 24.13.3 - version: 24.13.3 + specifier: 24.19.2 + version: 24.19.2 '@types/selenium-webdriver': specifier: 3.0.7 version: 3.0.7 @@ -881,68 +1073,143 @@ importers: specifier: 0.8.0 version: 0.8.0 tslib: - specifier: 2.8.1 - version: 2.8.1 + specifier: 2.9.1 + version: 2.9.1 yargs: - specifier: 18.1.0 - version: 18.1.0 + specifier: 18.2.0 + version: 18.2.0 zone.js: - specifier: 0.16.2 - version: 0.16.2 + specifier: 0.16.3 + version: 0.16.3 + + ngp-vscode-ng-language-service: + dependencies: + '@typescript/native-preview': + specifier: 7.0.0-dev.20260707.2 + version: 7.0.0-dev.20260707.2 + vscode-jsonrpc: + specifier: ^9.0.1 + version: 9.0.3 + vscode-languageclient: + specifier: ^10.1.0 + version: 10.1.2 + vscode-languageserver: + specifier: ^10.1.0 + version: 10.1.2 + vscode-languageserver-textdocument: + specifier: ^1.0.12 + version: 1.0.16 + vscode-uri: + specifier: ^3.1.0 + version: 3.2.0 + devDependencies: + '@types/jasmine': + specifier: ^7.0.0 + version: 7.0.0 + '@types/node': + specifier: ^20.14.8 + version: 20.19.43 + '@types/vscode': + specifier: ^1.125.0 + version: 1.145.0 + '@vscode/test-electron': + specifier: ^3.1.0 + version: 3.1.0(supports-color@11.0.0) + esbuild: + specifier: ^0.28.0 + version: 0.28.2 + jasmine: + specifier: ^7.0.0 + version: 7.0.0 + typescript: + specifier: 5.9.3 + version: 5.9.3 + + ngp-vscode-ng-language-service/client: + dependencies: + vscode-languageclient: + specifier: ^10.1.0 + version: 10.1.2 + devDependencies: + '@types/vscode': + specifier: ^1.125.0 + version: 1.145.0 + typescript: + specifier: 5.9.3 + version: 5.9.3 + + ngp-vscode-ng-language-service/server: + dependencies: + '@typescript/native-preview': + specifier: 7.0.0-dev.20260707.2 + version: 7.0.0-dev.20260707.2 + vscode-languageserver: + specifier: ^10.1.0 + version: 10.1.2 + vscode-languageserver-textdocument: + specifier: ^1.0.12 + version: 1.0.16 + vscode-uri: + specifier: ^3.1.0 + version: 3.2.0 + devDependencies: + typescript: + specifier: 6.0.3 + version: 6.0.3 packages/animations: dependencies: '@angular/core': - specifier: 'workspace: *' + specifier: workspace:* version: link:../core tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 packages/benchpress: dependencies: '@angular/core': specifier: ^22.2.0-next - version: 22.2.0-next.2(@angular/compiler@packages+compiler) + version: 22.2.5(@angular/compiler@packages+compiler) reflect-metadata: specifier: ^0.2.0 version: 0.2.2 tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 packages/common: dependencies: '@angular/core': - specifier: 'workspace: *' + specifier: workspace:* version: link:../core rxjs: specifier: ^6.5.3 || ^7.4.0 version: 7.8.2 tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 packages/compiler: dependencies: tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 packages/compiler-cli: dependencies: '@angular/compiler': - specifier: 'workspace: *' + specifier: workspace:* version: link:../compiler '@babel/core': - specifier: 8.0.1 - version: 8.0.1 + specifier: 8.1.0 + version: 8.1.0 '@jridgewell/sourcemap-codec': - specifier: ^1.4.14 - version: 1.5.5 + specifier: ^1.6.0 + version: 1.6.0 chokidar: - specifier: ^5.0.0 - version: 5.0.0 + specifier: ^6.0.0 + version: 6.0.0 convert-source-map: specifier: ^1.5.1 version: 1.9.0 @@ -951,16 +1218,16 @@ importers: version: 0.2.2 semver: specifier: ^7.0.0 - version: 7.8.5 + version: 7.8.6 tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 typescript: specifier: 6.0.3 version: 6.0.3 yargs: specifier: ^18.0.0 - version: 18.1.0 + version: 18.2.0 devDependencies: '@types/convert-source-map': specifier: ^2.0.0 @@ -975,27 +1242,46 @@ importers: specifier: workspace:* version: link:../../.. + packages/compiler-cli/preprocessor/language-service: + dependencies: + '@typescript/native-preview': + specifier: 7.0.0-dev.20260707.2 + version: 7.0.0-dev.20260707.2 + vscode-jsonrpc: + specifier: ^9.0.1 + version: 9.0.3 + vscode-languageserver: + specifier: ^10.1.0 + version: 10.1.2 + vscode-languageserver-textdocument: + specifier: ^1.0.12 + version: 1.0.16 + vscode-uri: + specifier: ^3.1.0 + version: 3.2.0 + devDependencies: + typescript: + specifier: 6.0.3 + version: 6.0.3 + packages/core: dependencies: '@angular/compiler': - specifier: 'workspace: *' + specifier: workspace:* version: link:../compiler rxjs: specifier: ^6.5.3 || ^7.4.0 version: 7.8.2 tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 zone.js: specifier: ~0.15.0 || ~0.16.0 - version: 0.16.2 + version: 0.16.3 devDependencies: - '@mcp-b/webmcp-polyfill': - specifier: ^4.0.0 - version: 4.0.0 - '@mcp-b/webmcp-types': - specifier: ^4.0.0 - version: 4.0.0 + webmcp-types: + specifier: 0.1.10 + version: 0.1.10 packages/core/test/bundling: dependencies: @@ -1003,8 +1289,8 @@ importers: specifier: workspace:* version: link:../../../animations '@angular/build': - specifier: 22.2.0-next.5 - version: 22.2.0-next.5(d042945b298c3146aa53f7230502473a) + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@angular/compiler-cli@packages+compiler-cli)(@angular/compiler@packages+compiler)(@angular/core@packages+core)(@angular/localize@packages+localize)(@angular/platform-browser@packages+platform-browser)(@angular/platform-server@packages+platform-server)(@angular/service-worker@packages+service-worker)(@angular/ssr@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router))(@types/node@20.19.43)(istanbul-lib-instrument@6.0.3(supports-color@11.0.0))(jiti@1.21.7)(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6))(postcss@8.5.32)(rollup@4.68.2)(supports-color@11.0.0)(tailwindcss@3.4.19(tsx@4.23.15)(yaml@2.9.1))(tslib@2.9.1)(tsx@4.23.15)(typescript@6.0.3)(yaml@2.9.1) '@angular/common': specifier: workspace:* version: link:../../../common @@ -1030,25 +1316,25 @@ importers: packages/elements: dependencies: '@angular/core': - specifier: 'workspace: *' + specifier: workspace:* version: link:../core rxjs: specifier: ^6.5.3 || ^7.4.0 version: 7.8.2 tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 packages/forms: dependencies: '@angular/common': - specifier: 'workspace: *' + specifier: workspace:* version: link:../common '@angular/core': - specifier: 'workspace: *' + specifier: workspace:* version: link:../core '@angular/platform-browser': - specifier: 'workspace: *' + specifier: workspace:* version: link:../platform-browser '@standard-schema/spec': specifier: ^1.0.0 @@ -1058,91 +1344,84 @@ importers: version: 7.8.2 tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 zod: specifier: ^4.0.10 - version: 4.4.3 - devDependencies: - '@mcp-b/webmcp-polyfill': - specifier: ^4.0.0 - version: 4.0.0 - '@mcp-b/webmcp-types': - specifier: ^4.0.0 - version: 4.0.0 + version: 4.6.7 packages/language-service: {} packages/localize: dependencies: '@angular/compiler': - specifier: 'workspace: *' + specifier: workspace:* version: link:../compiler '@angular/compiler-cli': - specifier: 'workspace: *' + specifier: workspace:* version: link:../compiler-cli '@babel/core': - specifier: 8.0.1 - version: 8.0.1 + specifier: 8.1.0 + version: 8.1.0 tinyglobby: specifier: ^0.2.12 version: 0.2.17 yargs: specifier: ^18.0.0 - version: 18.1.0 + version: 18.2.0 packages/platform-browser: dependencies: '@angular/animations': - specifier: 'workspace: *' + specifier: workspace:* version: link:../animations '@angular/common': - specifier: 'workspace: *' + specifier: workspace:* version: link:../common '@angular/core': - specifier: 'workspace: *' + specifier: workspace:* version: link:../core tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 packages/platform-browser-dynamic: dependencies: '@angular/common': - specifier: 'workspace: *' + specifier: workspace:* version: link:../common '@angular/compiler': - specifier: 'workspace: *' + specifier: workspace:* version: link:../compiler '@angular/core': - specifier: 'workspace: *' + specifier: workspace:* version: link:../core '@angular/platform-browser': - specifier: 'workspace: *' + specifier: workspace:* version: link:../platform-browser tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 packages/platform-server: dependencies: '@angular/common': - specifier: 'workspace: *' + specifier: workspace:* version: link:../common '@angular/compiler': - specifier: 'workspace: *' + specifier: workspace:* version: link:../compiler '@angular/core': - specifier: 'workspace: *' + specifier: workspace:* version: link:../core '@angular/platform-browser': - specifier: 'workspace: *' + specifier: workspace:* version: link:../platform-browser rxjs: specifier: ^6.5.3 || ^7.4.0 version: 7.8.2 tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 xhr2: specifier: ^0.2.0 version: 0.2.1 @@ -1150,20 +1429,20 @@ importers: packages/router: dependencies: '@angular/common': - specifier: 'workspace: *' + specifier: workspace:* version: link:../common '@angular/core': - specifier: 'workspace: *' + specifier: workspace:* version: link:../core '@angular/platform-browser': - specifier: 'workspace: *' + specifier: workspace:* version: link:../platform-browser rxjs: specifier: ^6.5.3 || ^7.4.0 version: 7.8.2 tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 devDependencies: '@types/dom-navigation': specifier: ^1.0.5 @@ -1172,41 +1451,41 @@ importers: packages/service-worker: dependencies: '@angular/core': - specifier: 'workspace: *' + specifier: workspace:* version: link:../core rxjs: specifier: ^6.5.3 || ^7.4.0 version: 7.8.2 tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 packages/upgrade: dependencies: '@angular/compiler': - specifier: 'workspace: *' + specifier: workspace:* version: link:../compiler '@angular/core': - specifier: 'workspace: *' + specifier: workspace:* version: link:../core '@angular/platform-browser': - specifier: 'workspace: *' + specifier: workspace:* version: link:../platform-browser '@angular/platform-browser-dynamic': - specifier: 'workspace: *' + specifier: workspace:* version: link:../platform-browser-dynamic tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 packages/zone.js: devDependencies: '@csstools/css-calc': - specifier: 3.3.0 - version: 3.3.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0) + specifier: 3.4.3 + version: 3.4.3 '@csstools/css-color-parser': - specifier: 4.2.1 - version: 4.2.1(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0) + specifier: 4.2.7 + version: 4.2.7 '@externs/nodejs': specifier: 1.5.0 version: 1.5.0 @@ -1215,7 +1494,7 @@ importers: version: 6.0.0 '@types/node': specifier: ^24.3.0 - version: 24.13.3 + version: 24.19.2 '@types/systemjs': specifier: 6.15.4 version: 6.15.4 @@ -1223,8 +1502,8 @@ importers: specifier: 3.7.2 version: 3.7.2 domino: - specifier: https://github.com/angular/domino.git#04f987dc08ff3736b427f50941adf1722458528f - version: '@angular/domino@https://codeload.github.com/angular/domino/tar.gz/04f987dc08ff3736b427f50941adf1722458528f' + specifier: https://github.com/angular/domino.git#51fa184b59769e2d150c92ce09c46e3dbeb401c1 + version: '@angular/domino@https://codeload.github.com/angular/domino/tar.gz/51fa184b59769e2d150c92ce09c46e3dbeb401c1' esbuild-plugin-umd-wrapper: specifier: 3.0.0 version: 3.0.0 @@ -1238,17 +1517,17 @@ importers: specifier: 2.5.2 version: 2.5.2 jest: - specifier: 30.4.2 - version: 30.4.2(@types/node@24.13.3)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.13.3)(typescript@6.0.3)) + specifier: 30.5.2 + version: 30.5.2(@types/node@24.19.2)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.19.2)(typescript@6.0.3)) jest-environment-jsdom: - specifier: 30.4.1 - version: 30.4.1(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) + specifier: 30.5.2 + version: 30.5.2(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) jest-environment-node: - specifier: 30.4.1 - version: 30.4.1 + specifier: 30.5.2 + version: 30.5.2 mocha: - specifier: 11.8.0 - version: 11.8.0 + specifier: 12.0.3 + version: 12.0.3 mock-require: specifier: 3.0.3 version: 3.0.3 @@ -1263,16 +1542,16 @@ importers: version: 6.15.1 tslib: specifier: ^2.3.0 - version: 2.8.1 + version: 2.9.1 vitest: - specifier: ^4.0.0 - version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(esbuild@0.28.2)(jiti@1.21.7)(jsdom@30.0.1)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0) + specifier: ^5.0.0 + version: 5.1.0(@opentelemetry/api@1.10.0)(@types/node@24.19.2)(jsdom@31.0.0)(vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1)) packages/zone.js/test/typings: dependencies: domino: - specifier: https://github.com/angular/domino.git#04f987dc08ff3736b427f50941adf1722458528f - version: '@angular/domino@https://codeload.github.com/angular/domino/tar.gz/04f987dc08ff3736b427f50941adf1722458528f' + specifier: https://github.com/angular/domino.git#51fa184b59769e2d150c92ce09c46e3dbeb401c1 + version: '@angular/domino@https://codeload.github.com/angular/domino/tar.gz/51fa184b59769e2d150c92ce09c46e3dbeb401c1' zone.js: specifier: workspace:* version: link:../.. @@ -1297,29 +1576,29 @@ importers: version: 6.0.3 devDependencies: '@types/jasmine': - specifier: ~6.0.0 - version: 6.0.0 + specifier: ~7.0.0 + version: 7.0.0 '@types/jasmine-reporters': specifier: ~2.5.3 version: 2.5.3 '@types/node': specifier: ^24.5.2 - version: 24.13.3 + version: 24.19.2 '@types/vscode': specifier: ^1.74.3 - version: 1.125.0 + version: 1.145.0 '@vscode/test-electron': specifier: ~3.1.0 version: 3.1.0(supports-color@11.0.0) '@vscode/vsce': - specifier: ~3.9.0 - version: 3.9.2(supports-color@11.0.0) + specifier: ~4.1.0 + version: 4.1.0(supports-color@11.0.0) jasmine: - specifier: 6.3.0 - version: 6.3.0 + specifier: 7.0.0 + version: 7.0.0 jasmine-core: - specifier: 6.3.0 - version: 6.3.0 + specifier: 7.0.2 + version: 7.0.2 jasmine-reporters: specifier: ~2.5.2 version: 2.5.2 @@ -1339,8 +1618,8 @@ importers: specifier: 3.17.5 version: 3.17.5 vscode-languageserver-textdocument: - specifier: 1.0.14 - version: 1.0.14 + specifier: 1.0.16 + version: 1.0.16 vscode-tmgrammar-test: specifier: 0.1.3 version: 0.1.3 @@ -1356,22 +1635,28 @@ importers: '@angular/common': specifier: workspace:* version: link:../../../packages/common - '@angular/compiler': - specifier: workspace:* - version: link:../../../packages/compiler - '@angular/compiler-cli': - specifier: workspace:* - version: link:../../../packages/compiler-cli '@angular/core': specifier: workspace:* version: link:../../../packages/core rxjs: specifier: 7.8.2 version: 7.8.2 + tslib: + specifier: 2.9.1 + version: 2.9.1 devDependencies: - ng-packagr: - specifier: 22.2.0-next.4 - version: 22.2.0-next.4(@angular/compiler-cli@packages+compiler-cli)(supports-color@11.0.0)(tailwindcss@3.4.19(tsx@4.23.12)(yaml@2.9.0))(tslib@2.8.1)(typescript@6.0.3) + '@angular/build': + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@angular/compiler-cli@packages+compiler-cli)(@angular/compiler@packages+compiler)(@angular/core@packages+core)(@angular/localize@packages+localize)(@angular/platform-browser@packages+platform-browser)(@angular/platform-server@packages+platform-server)(@angular/service-worker@packages+service-worker)(@angular/ssr@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router))(@types/node@20.19.43)(istanbul-lib-instrument@6.0.3(supports-color@11.0.0))(jiti@1.21.7)(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6))(postcss@8.5.32)(rollup@4.68.2)(supports-color@11.0.0)(tailwindcss@3.4.19(tsx@4.23.15)(yaml@2.9.1))(tslib@2.9.1)(tsx@4.23.15)(typescript@6.0.3)(yaml@2.9.1) + '@angular/cli': + specifier: 22.3.0-rc.0 + version: 22.3.0-rc.0(@types/node@20.19.43)(chokidar@6.0.0) + '@angular/compiler': + specifier: workspace:* + version: link:../../../packages/compiler + '@angular/compiler-cli': + specifier: workspace:* + version: link:../../../packages/compiler-cli typescript: specifier: 6.0.3 version: 6.0.3 @@ -1387,7 +1672,7 @@ importers: devDependencies: '@types/node': specifier: ^24.5.2 - version: 24.13.3 + version: 24.19.2 vscode-css-languageservice: specifier: 6.3.10 version: 6.3.10 @@ -1398,8 +1683,8 @@ importers: specifier: 9.0.1 version: 9.0.1 vscode-languageserver-textdocument: - specifier: 1.0.14 - version: 1.0.14 + specifier: 1.0.16 + version: 1.0.16 vscode-uri: specifier: 3.2.0 version: 3.2.0 @@ -1424,116 +1709,116 @@ packages: '@actions/io@3.0.2': resolution: {integrity: sha512-nRBchcMM+QK1pdjO7/idu86rbJI5YHUKCvKs0KxnSYbVe3F51UfGxuZX4Qy/fWlp6l7gWFwIkrOzN+oUK03kfw==} - '@algolia/abtesting@1.23.0': - resolution: {integrity: sha512-j45MBISstltys9QyQ4xf6quRiN1g7vMuwQL9VM4dx8YuRZvCQ173b9royZAx6iAbRX3IB1VnG1z//NuwyQ8jpQ==} + '@algolia/abtesting@1.30.0': + resolution: {integrity: sha512-F8StfpD4keeV3Ks4D1pUcH20V7EJ1Rl4lA2dMgEbA9VgaYuotgf2DEdtC5by37TW9YA5HLRfg7EzR9vTxIP1bA==} engines: {node: '>= 14.0.0'} - '@algolia/client-abtesting@5.57.0': - resolution: {integrity: sha512-JVFFujiZUCguk5tz3LZr4fTQxqpIrj4/Jw3SI7kMljSqtfLxYn/s/TWH0J2s4iNfsDpxPhgFGMotCpmDI4kZ8w==} + '@algolia/client-abtesting@5.64.0': + resolution: {integrity: sha512-ZJXAl21SgzpTkG0FeQMmHwdIRbYigqmYGlcur4SLac0NEhOcc1zMH8MSOkPv/SWE+WoHzn3WyL6sKp4WItgiQQ==} engines: {node: '>= 14.0.0'} - '@algolia/client-analytics@5.57.0': - resolution: {integrity: sha512-6KqECK4ED3JJQEoDrQWnGPQzElA828xAD4qK5ceawNNyP/LcSvzAoLHjFkoTPksZ/kxj6VUtCRH+IHZesLltng==} + '@algolia/client-analytics@5.64.0': + resolution: {integrity: sha512-NFqDJFP0MYUJtzwotGTIN4CwvPV5Pv/g9ruSXfjIqgIlHuQo4yAf6E2TVPpnNkcZYM4cupHHcxIt7/3UK9abVQ==} engines: {node: '>= 14.0.0'} - '@algolia/client-common@5.57.0': - resolution: {integrity: sha512-uqpGF3oXYsoCbQq5d7BzNrNTfIfuvJyGP1CKvSW27T9boUg7KOwyxsAw1AX0a3jSW2HrYEJ/NN+Z4MiGivbpeQ==} + '@algolia/client-common@5.64.0': + resolution: {integrity: sha512-h6jaIxLC5EbrI5LGI3AU8+2BwUolSvV/AXX9qk4gl1G0ZHNoAe0PEPAdmYvFdzHhgUmgOF7jVdOq39Y5wcyJOA==} engines: {node: '>= 14.0.0'} - '@algolia/client-insights@5.57.0': - resolution: {integrity: sha512-u5NboJVJXDEFplvNnqqX4CxkXPYysjJRj47hOSh9329H8kG5gFLKJBIiS5utMQ+GZm8xQl3Te7NInDk6elEADQ==} + '@algolia/client-insights@5.64.0': + resolution: {integrity: sha512-lzzCCTxMWfYT4y0LUMmSsycPMmA15jnUxisc64R2ikQ3ksNgLqYWWM32yaoFPzjpr/TuLjHbpmi/ksajxBFwfA==} engines: {node: '>= 14.0.0'} - '@algolia/client-personalization@5.57.0': - resolution: {integrity: sha512-uzc0b2LmHAK9/QID4xeo35OG84AkZl4YewkCqawqAOGLjT2eZpM/OZx45ESygMHG30Ws+ZTSdluPtMJcUnrbWQ==} + '@algolia/client-personalization@5.64.0': + resolution: {integrity: sha512-B2o0sJVS0BFyOtx5cHIbg6vsU7LgTdubEOyH8jal8NEPo3IWJOSyI5ekUreJOICxpzs08eY98M4D4j2W+3oO9A==} engines: {node: '>= 14.0.0'} - '@algolia/client-query-suggestions@5.57.0': - resolution: {integrity: sha512-dIAhnM6ue/ssa5PjgNfu4g8A4yTojl9ZOUzZU3wIaIKRerL2R/3Emuf9n/D6ICXXP167KC6XCeC7nliSw7cuSw==} + '@algolia/client-query-suggestions@5.64.0': + resolution: {integrity: sha512-zEfHCOpI11ze0lsm3ZOitC1Nv7FpzkjdYaP8rTYHINOq4MID5jhf3FPbDdTKi6PKhJsclltzJj3yeIcR/Kxx2Q==} engines: {node: '>= 14.0.0'} - '@algolia/client-search@5.57.0': - resolution: {integrity: sha512-2TTPTTKSJmCptvhCm4Xf3bBYMqZni+Pgc2hVdqc4l9wsBpSJNVTVIKpnd10OubUgkGcmppVDj1XQqYaf6EnPSQ==} + '@algolia/client-search@5.64.0': + resolution: {integrity: sha512-o+hiUkoRIxVbA/BDBL9ybZDZ9oiFuA4O6j/kUMYkW/q6CECFzQPX9GiAVDCsRN/YHMnMnUHS2C1YBTYgZmBp3Q==} engines: {node: '>= 14.0.0'} - '@algolia/ingestion@1.57.0': - resolution: {integrity: sha512-W4JseHKt+pzOxlFV+T3MWEG0h4Z2Se5zjoXUD0ewlw8aOWMG/yjRdopUdLQsXULepB/My2tDuZjkwk2sMfsUrQ==} + '@algolia/ingestion@1.64.0': + resolution: {integrity: sha512-ImYMHua4OneBCEUj5edE/NTlSZX/h8Oh2rDd8syzo90baAK/llxdX21/MLbadv/IEGhJjgQ5kQVhEHveWBAUIw==} engines: {node: '>= 14.0.0'} - '@algolia/monitoring@1.57.0': - resolution: {integrity: sha512-BrxJVE0/eLinEPICCD7BKN/2xnt0nkjge70u8zzE2ISP3fuB3tjLgcwpanUycvlHBFLI4gK0l5ol54p6IYuR/Q==} + '@algolia/monitoring@1.64.0': + resolution: {integrity: sha512-dDC55daKvyavHN3ZFJiEBVBHzUP3klAU9fsoKXeepxEUV04CZsPgNxHxbXWU8/OzuYA522yYRtUo5cpLgZHDAw==} engines: {node: '>= 14.0.0'} - '@algolia/recommend@5.57.0': - resolution: {integrity: sha512-Gc29jkeiLKlVfHvyrIgyUHHE+aYTdXEeLfK42rjr5/1TTVsYwUJz0XkvoIBIqfMjcDg6gXeHb1jTUZ0H+SYIlQ==} + '@algolia/recommend@5.64.0': + resolution: {integrity: sha512-v9nuLKufudPiEHkuwmJdK/FxrX5mHGfFboUG/VUlYcDVYy2uyHsmPnf3a9KX8S5xPLwMRCnS1qEfyIf8PSHVTA==} engines: {node: '>= 14.0.0'} - '@algolia/requester-browser-xhr@5.57.0': - resolution: {integrity: sha512-PIPnPN7MP3fp2VAi01BVXhCWmD366ZB2Hkq5TlYKtThd4KxUtMmaaNDpFgVCTXtSIqWVZLJntOHRvxg/sIPd8Q==} + '@algolia/requester-browser-xhr@5.64.0': + resolution: {integrity: sha512-jZA5fzF0UYrDQZ4W58DFrc+dBLkXL0d+jkFXrxwO+o1JoOtaxYYYtDxlYyWtrYl8R0FzDlVW4CgLRiqhsKsdHw==} engines: {node: '>= 14.0.0'} - '@algolia/requester-fetch@5.57.0': - resolution: {integrity: sha512-AX3RlOudXMdTwtwUqdAf5hAVLvXfOZZH1FZh6ALDdrhVLT0TtAIe48N6nYcWcTnwoTxK/wDIQqZ19IMjK8zJAA==} + '@algolia/requester-fetch@5.64.0': + resolution: {integrity: sha512-pnNZ+qWhRnJy4IhLjZe0ENEXYiwP93d939/qbNdl4X8Zo38Y2FEP3BYtwpF7BB9k0SKyUVuS0NkNS+/vcyRZ8A==} engines: {node: '>= 14.0.0'} - '@algolia/requester-node-http@5.57.0': - resolution: {integrity: sha512-cWZc1dKb7wy9/wPpwMtL1y89gK2G7y2A47Coa7zwf1ydtIeJm4+S+XxoQ2b/ZRiQnrC1YHavLjYUPDCdnT7Khg==} + '@algolia/requester-node-http@5.64.0': + resolution: {integrity: sha512-pUOulw3Np129Sc/PqAPVw9gyO5hpEM9AdlAdG/YNhO69plNS3RK3YLuTv9rBHQmxO8DMmEze6qTppKJ1ihEQoQ==} engines: {node: '>= 14.0.0'} - '@alloc/quick-lru@5.2.0': - resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==} + '@alloc/quick-lru@5.3.0': + resolution: {integrity: sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==} engines: {node: '>=10'} '@ampproject/remapping@2.3.0': resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} - '@angular-devkit/architect@0.2202.0-next.5': - resolution: {integrity: sha512-EA+GuJc5/HGoFw6ayk3oy6878bbrP+BbPxE2ntgWDicR2mWzPV3mTefSyTn6Cu19KrqucuZW+EKwegP3jT/Z9w==} + '@angular-devkit/architect@0.2203.0-rc.0': + resolution: {integrity: sha512-YgKVqPH55gFJlIzCnndgQC0rPeaJlld0J38RH95BEASD9C76/cunll/4sox1h3BTSCpRVUT7vj9hUUIYmz45BA==} engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} hasBin: true - '@angular-devkit/core@22.2.0-next.5': - resolution: {integrity: sha512-rMpgAGphu8LfEEja9crKHJKmYpwOOeOPe+b+eHTNm0HuguM7cHlFQ2XP8sY2E1NzOSU2la5c6J8Ruk3Kem7eMw==} + '@angular-devkit/core@22.3.0-rc.0': + resolution: {integrity: sha512-8awN+xQd+LYAZbmJjkoiYy+AApdmVHc6fiO9R8tMBOStZIiezW6UGlGKG6RdWAGOjJOJKXzgLoKiAcKAkovmQg==} engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} peerDependencies: - chokidar: ^5.0.0 + chokidar: ^6.0.0 peerDependenciesMeta: chokidar: optional: true - '@angular-devkit/schematics@22.2.0-next.5': - resolution: {integrity: sha512-erZsMA+7ESmCXanY9RElRyuaEiiDpMWhbkjFBgCMBiHip4J8jRL0Bcv047kl1DcA7S0O35eiDWmVLO95x02UlQ==} + '@angular-devkit/schematics@22.3.0-rc.0': + resolution: {integrity: sha512-FlMllgYt3ekbdbWWY+bxNXA6FNi0p8q8eC1iI60EASLduGC6daGWNEIe6FfP3P4NuuaDgHKUvigrPAdnlMtNWg==} engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} - '@angular/aria@22.2.0-next.3': - resolution: {integrity: sha512-qad+4z9kK4nVnsVc8Uh79tR3iZyv6MZQUlLuvjOokXGl1a8w1yFmT8oDnMS8NMxjPjVZTQ7EWc/zMfU8MnpH3g==} + '@angular/aria@22.3.0-rc.0': + resolution: {integrity: sha512-LNB0HGODYbZHkcytD0fg3Tu1LMsecGyehzSRJGVK7VmRQkXrNjI0jmpH7UbRcD1kHtV+3Fi9QFUc7Bx7h4lXHA==} peerDependencies: - '@angular/cdk': 22.2.0-next.3 + '@angular/cdk': 22.3.0-rc.0 '@angular/core': ^22.0.0-0 || ^22.1.0-0 || ^22.2.0-0 || ^22.3.0-0 || ^23.0.0-0 - '@angular/build@22.2.0-next.5': - resolution: {integrity: sha512-qVi/YCVJFbpqR+9g8AAq/2+JfweoOyVoAhoyRsYNprDLNyOEfOL14kvJ2ImxkUQgYZ/0tQj5P9L4lXOnbbHXsA==} + '@angular/build@22.3.0-rc.0': + resolution: {integrity: sha512-UfxxW0htHkIH4QoTo6UHztp5+L1yQz13p6a/4rZyrCpwTBti7UzJgyAWBOzczH0utWVnj9lZ6ZXclOmYahDhqQ==} engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} peerDependencies: - '@angular/compiler': ^22.0.0 || ^22.2.0-next.0 - '@angular/compiler-cli': ^22.0.0 || ^22.2.0-next.0 - '@angular/core': ^22.0.0 || ^22.2.0-next.0 - '@angular/localize': ^22.0.0 || ^22.2.0-next.0 - '@angular/platform-browser': ^22.0.0 || ^22.2.0-next.0 - '@angular/platform-server': ^22.0.0 || ^22.2.0-next.0 - '@angular/service-worker': ^22.0.0 || ^22.2.0-next.0 - '@angular/ssr': ^22.2.0-next.5 + '@angular/compiler': ^22.0.0 || ^22.3.0-next.0 + '@angular/compiler-cli': ^22.0.0 || ^22.3.0-next.0 + '@angular/core': ^22.0.0 || ^22.3.0-next.0 + '@angular/localize': ^22.0.0 || ^22.3.0-next.0 + '@angular/platform-browser': ^22.0.0 || ^22.3.0-next.0 + '@angular/platform-server': ^22.0.0 || ^22.3.0-next.0 + '@angular/service-worker': ^22.0.0 || ^22.3.0-next.0 + '@angular/ssr': ^22.3.0-rc.0 istanbul-lib-instrument: ^6.0.0 karma: ^6.4.0 less: ^4.2.0 - ng-packagr: ^22.0.0 || ^22.2.0-next.0 + ng-packagr: ^22.0.0 || ^22.3.0-next.0 postcss: ^8.4.0 rollup: ^4.0.0 tailwindcss: ^2.0.0 || ^3.0.0 || ^4.0.0 tslib: ^2.3.0 typescript: '>=6.0 <6.1' - vitest: ^4.0.8 + vitest: ^4.0.8 || ^5.0.0 peerDependenciesMeta: '@angular/core': optional: true @@ -1564,84 +1849,72 @@ packages: vitest: optional: true - '@angular/cdk@22.2.0-next.3': - resolution: {integrity: sha512-rdba75nOYip4YLBjeocti4YMFQvvso87FEstH0qegQRuhaRo0KvTc+midQX2G73DFnhkyCR0H48TwqCSzl59Bw==} + '@angular/cdk@22.3.0-rc.0': + resolution: {integrity: sha512-PSV0lq8tRzyiziCI2jegzOnaRTe4WcQIu18CpZ9R23U8Rsw1q7/JXXd1rFHc9db8386fuZSC2hYA0v4Vv+2Trw==} peerDependencies: '@angular/common': ^22.0.0-0 || ^22.1.0-0 || ^22.2.0-0 || ^22.3.0-0 || ^23.0.0-0 '@angular/core': ^22.0.0-0 || ^22.1.0-0 || ^22.2.0-0 || ^22.3.0-0 || ^23.0.0-0 + '@angular/forms': ^22.0.0-0 || ^22.1.0-0 || ^22.2.0-0 || ^22.3.0-0 || ^23.0.0-0 '@angular/platform-browser': ^22.0.0-0 || ^22.1.0-0 || ^22.2.0-0 || ^22.3.0-0 || ^23.0.0-0 rxjs: ^6.5.3 || ^7.4.0 - '@angular/cli@22.2.0-next.5': - resolution: {integrity: sha512-oH+tg5/k9xf3Rn4AF8xUhCikke5qy9HVShW/ofMSH2UhamG9gk7Pd4nVxIlX8aTFZiYXVmjFY1sUZwBGWSxqFw==} + '@angular/cli@22.3.0-rc.0': + resolution: {integrity: sha512-96TxzYYkQjQW9VaXgZD+jmLt0vH6/qfLgVbjK6lE9CFxpyG3aDiBM9K/bFD5CcK84xoH8Ry4r/SnoBzreeVAFw==} engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} hasBin: true - '@angular/core@22.2.0-next.2': - resolution: {integrity: sha512-2vMX+uqYtwDwXGgKCUkm+6nBfKlLtTjTm3ojWuf2PJx0jKD5BFOW+RruzCN7bDy7a1Q2vt3lp6gcsdYGSJbHDg==} + '@angular/core@22.2.5': + resolution: {integrity: sha512-IW0zRxqii+otvrAlDRLhUF+cxSQvJsKy30Yiv2Fz2LXCI9da4bEnHhssNRrLYDz7Otkr4XKdHEXav/kFO5Hj3g==} engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0} peerDependencies: - '@angular/compiler': 22.2.0-next.2 + '@angular/compiler': 22.2.5 + rxjs: ^6.5.3 || ^7.4.0 + zone.js: ~0.15.0 || ~0.16.0 peerDependenciesMeta: '@angular/compiler': optional: true + zone.js: + optional: true - '@angular/domino@https://codeload.github.com/angular/domino/tar.gz/04f987dc08ff3736b427f50941adf1722458528f': - resolution: {gitHosted: true, integrity: sha512-t0fCdFUxcp1VKRkIY/pcoCYoSMEdNBGP59lVlX2+m+BKe1/eSeAn3CAvopVSCKxjanqxpa17WKTNVq9ijmxsvA==, tarball: https://codeload.github.com/angular/domino/tar.gz/04f987dc08ff3736b427f50941adf1722458528f} - version: 2.1.6 + '@angular/domino@https://codeload.github.com/angular/domino/tar.gz/51fa184b59769e2d150c92ce09c46e3dbeb401c1': + resolution: {gitHosted: true, integrity: sha512-Rk+NawnQeTOC5cZDBC95GCHzxHI314I8kOxdEy95F5ikeSwneF+kXLIRrOIv866cStoHl0WtdLjSIY+9phJhig==, tarball: https://codeload.github.com/angular/domino/tar.gz/51fa184b59769e2d150c92ce09c46e3dbeb401c1} + version: 2.1.6+git - '@angular/material@22.2.0-next.3': - resolution: {integrity: sha512-IO0O1nbCH7tz2qViPkDcPG2UHEXuO8Wighfw/FCkMHSXJrcVaFFML55ZNNKMNjJBIZ88M3v5fjibu/3yX7jE2A==} + '@angular/material@22.3.0-rc.0': + resolution: {integrity: sha512-teApmkZfm/DMBeWniBa7PUV+9SeQKRqzCANaaXHzk8rKMTDUURfcUkOsej7DuipXLxjbqlD+EiuuWw5gh605oA==} peerDependencies: - '@angular/cdk': 22.2.0-next.3 + '@angular/cdk': 22.3.0-rc.0 '@angular/common': ^22.0.0-0 || ^22.1.0-0 || ^22.2.0-0 || ^22.3.0-0 || ^23.0.0-0 '@angular/core': ^22.0.0-0 || ^22.1.0-0 || ^22.2.0-0 || ^22.3.0-0 || ^23.0.0-0 '@angular/forms': ^22.0.0-0 || ^22.1.0-0 || ^22.2.0-0 || ^22.3.0-0 || ^23.0.0-0 '@angular/platform-browser': ^22.0.0-0 || ^22.1.0-0 || ^22.2.0-0 || ^22.3.0-0 || ^23.0.0-0 rxjs: ^6.5.3 || ^7.4.0 - '@angular/ng-dev@https://codeload.github.com/angular/dev-infra-private-ng-dev-builds/tar.gz/beec8fe17573a33c9934487ce99ce9cce3e3f6bf': - resolution: {gitHosted: true, integrity: sha512-ELGv/rsp5iaQw1+viAhn5IlLrodz7g7rPm6Ea06sEsBpQ2kSamcpZnXWf+j4SPzGvK+td+DtFCrgbkX+ihFiZQ==, tarball: https://codeload.github.com/angular/dev-infra-private-ng-dev-builds/tar.gz/beec8fe17573a33c9934487ce99ce9cce3e3f6bf} - version: 0.0.0-8fb164f40c9776c41771785c6d9facbd9ea63b73 + '@angular/ng-dev@https://codeload.github.com/angular/dev-infra-private-ng-dev-builds/tar.gz/2e989b1cfb3a6fd8dc8d14c513f10f3084e6b970': + resolution: {gitHosted: true, integrity: sha512-OJ5Fn4DtpWk5wZ8WByrsy2KA8UbIwBf77fqoxPvNoFjLSYeLFvTNAHjBkLbCAPImW0wFT3/huXZtZSSBjh36kw==, tarball: https://codeload.github.com/angular/dev-infra-private-ng-dev-builds/tar.gz/2e989b1cfb3a6fd8dc8d14c513f10f3084e6b970} + version: 0.0.0-2bc6a148e1adcc70e9ce68d0eb26d052a4890b42 hasBin: true - '@angular/ssr@22.2.0-next.5': - resolution: {integrity: sha512-b4x3ye6/Q29TLopjCJa6lcHBlysgfZ4dwrMvAj8HelMfZZwnhZtj48lacOHEKkFx3tfpjJxeRbrSztbWOLVZaw==} + '@angular/ssr@22.3.0-rc.0': + resolution: {integrity: sha512-MjARCISkGXzGxQHIx0hDQbSJcNgV7NtSjyJNkBMwIiTlkR+Bmf3L+Nixi7vg0Q9n3QDsPeXyTWpOz4rqhWK6IQ==} peerDependencies: - '@angular/common': ^22.0.0 || ^22.2.0-next.0 - '@angular/core': ^22.0.0 || ^22.2.0-next.0 - '@angular/platform-server': ^22.0.0 || ^22.2.0-next.0 - '@angular/router': ^22.0.0 || ^22.2.0-next.0 + '@angular/common': ^22.0.0 || ^22.3.0-next.0 + '@angular/core': ^22.0.0 || ^22.3.0-next.0 + '@angular/platform-server': ^22.0.0 || ^22.3.0-next.0 + '@angular/router': ^22.0.0 || ^22.3.0-next.0 peerDependenciesMeta: '@angular/platform-server': optional: true - '@antfu/install-pkg@1.1.0': - resolution: {integrity: sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==} + '@antfu/install-pkg@2.1.0': + resolution: {integrity: sha512-sdg9NxU3zR4Mnawfbc/x6GB5Wf17WYud5qOuEuxXjaKpYpMkISSJEjItGebXJ2bQ4DIcly4NYH23mtkGJjvKUw==} '@apidevtools/json-schema-ref-parser@9.1.2': resolution: {integrity: sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==} - '@apphosting/common@0.0.8': - resolution: {integrity: sha512-RJu5gXs2HYV7+anxpVPpp04oXeuHbV3qn402AdXVlnuYM/uWo7aceqmngpfp6Bi376UzRqGjfpdwFHxuwsEGXQ==} - '@asamuzakjp/css-color@3.2.0': resolution: {integrity: sha512-K1A6z8tS3XsmCMM86xoWdn7Fkdn9m6RSVtocUrJYIwZnFVkng/PvkEoWtOWmP+Scc6saYWHWZYbndEEXxl24jw==} - '@asamuzakjp/css-color@6.0.7': - resolution: {integrity: sha512-vC/bk1Lz7Tn/EfU9/apOTBk80/8dyGyWMowPoV1tJ52muDGsDqt2HPT2klrFUiY60MQmQv9q8yIht15JnBgDGw==} - engines: {node: ^22.13.0 || >=24.0.0} - - '@asamuzakjp/dom-selector@8.3.2': - resolution: {integrity: sha512-93Z1N+BQNXysodoicpOIyNh2drHfz/CTf9nnT0FEx72GJcIiwgydD7tGAr78j41LsYn3hlRn+LdGPuBLn1Bl8Q==} - engines: {node: ^22.13.0 || >=24.0.0} - - '@azu/format-text@1.0.2': - resolution: {integrity: sha512-Swi4N7Edy1Eqq82GxgEECXSSLyn6GOb5htRFPzBDdUkECGXtlf12ynO5oJSpWKPwCaUssOu7NfhDcCWpIC6Ywg==} - - '@azu/style-format@1.0.1': - resolution: {integrity: sha512-AHcTojlNBdD/3/KxIKlg8sxIWHfOtQszLvOpagLTO+bjC3u7SAszu1lf//u7JJC50aUSH+BVWDD/KvaA6Gfn5g==} - '@azure/abort-controller@2.2.0': resolution: {integrity: sha512-fNAjWnA/nZ2jz31kxR/AqRaUT8ewHBw/WuBIosK0moMy1C9e5ValbDfFdIxJzVOOYaYkV/b2F1S4H/aHiqfVQg==} engines: {node: '>=22.0.0'} @@ -1650,12 +1923,16 @@ packages: resolution: {integrity: sha512-IUZydyTUkDnYdstOW9pFOOUQlBjAepK5teihDE3x6yxsPJs/hsAaaYpeGxdxrgtOiJbBKSjKW7MDk7AEhb4LRg==} engines: {node: '>=22.0.0'} - '@azure/core-client@1.11.0': - resolution: {integrity: sha512-JjQWO6akOck45PH/XBrxzsQGAiKrfFl4m5iggJ0ItMIz5omRufOXWpqCPpdjKN3vKDzlSUvFjaMb7Zwf0gvAdA==} + '@azure/core-client@1.11.2': + resolution: {integrity: sha512-ajuIU1aMoTs/ERYrKnIqQrV5Vz3RL8mwDC5RdedIXUvR7pi6cWzeYmt0LfNz6+W91CuCO4WJG0zA6+PhU1X+hw==} + engines: {node: '>=22.0.0'} + + '@azure/core-process@1.0.0': + resolution: {integrity: sha512-/shnJ+ooO8WPxDhPEeI/2oRQuubn16gZ6CvlbpWbEswZfzwI9tI/sMAHmF3x1LuQ9yZYXfLW3TjzGMLEC5blKg==} engines: {node: '>=22.0.0'} - '@azure/core-rest-pipeline@1.25.0': - resolution: {integrity: sha512-bMs8ekJLjX8wPV+9IPBges1SLPyuDtE9g5gLDWOpxzKcoOFQnpLGkbcT1tdw3FaAmDS1gnPmMmJ6y/T5B96kIA==} + '@azure/core-rest-pipeline@1.25.1': + resolution: {integrity: sha512-fTIA3CAm/cdODqiXkO6jYOIkU2Ylld7vq65KGc70gTwl12sLQsC8v7I5t6tp2N2CfUONzZBXyeFw7KEu6Ks2zg==} engines: {node: '>=22.0.0'} '@azure/core-tracing@1.4.0': @@ -1666,28 +1943,28 @@ packages: resolution: {integrity: sha512-9n2pWK61veAuN0V20t9lOuoV4CFMdyAZ1ygZzvBGk/pBBJRib/PjL9PLXa/aI2CcPpyHfqVsxxqLCYl6uZlfDw==} engines: {node: '>=22.0.0'} - '@azure/identity@4.13.1': - resolution: {integrity: sha512-5C/2WD5Vb1lHnZS16dNQRPMjN6oV/Upba+C9nBIs15PmOi6A3ZGs4Lr2u60zw4S04gi+u3cEXiqTVP7M4Pz3kw==} - engines: {node: '>=20.0.0'} + '@azure/identity@4.14.1': + resolution: {integrity: sha512-HHuuFrmN1uuF9D5A6aAo5eHzNFNX4Q+P4SksZqDKse5YaJFFy/zDLG3wXHEV2FVGgetZ3QM8jGURNBtnQYf1NQ==} + engines: {node: '>=22.0.0'} '@azure/logger@1.4.0': resolution: {integrity: sha512-rbAE25KUfjU/s3XHUdJgceoCP5dEOpMx85J04kF+QMdta73XkuG9JGHHinch+XIoKpBdqljin+KqURpJriSzLA==} engines: {node: '>=22.0.0'} - '@azure/msal-browser@5.18.0': - resolution: {integrity: sha512-SPTeHYZghdEdRddJzNjhH+CI5MSQtquNYwGJnYXfOHIBRXCmrWimBS85OhwXpXFIlrCtNTbBPm5mPAWRNEoktA==} + '@azure/msal-browser@5.29.0': + resolution: {integrity: sha512-Ko/Ovw6h+Gu33mp8f0FUyddr/KDWzbGzcgR8HKZaT4wgTYljLPKJP1rcDu0RHj7pkd4CR2hCHK51XFzgvq/Q5Q==} engines: {node: '>=0.8.0'} - '@azure/msal-common@16.12.0': - resolution: {integrity: sha512-hgLgfRdbG2AmhXPygebf1KYJEvse86+ZZLWufdiTKaGRYEUqOzHdlf6AS1IiuUCHWbynkgbHc451jSNkbfhWlg==} + '@azure/msal-common@16.16.1': + resolution: {integrity: sha512-dSKdL9h/iercb4GumsKFh+wVvLe1ohuDPiviklgnQVHnY2FYNUlbQJ3E1Qd37vkof9CfraK9BQpCW1hoOg0znQ==} engines: {node: '>=0.8.0'} - '@azure/msal-node@5.5.0': - resolution: {integrity: sha512-A/2WIsuH0vsC6JVkkafjS4kHpi2LDR4AzDT0kJ+oIRtXYeYtvGQ2pwN2X88thQPhSek+82ela3MprsKXWQRrhQ==} + '@azure/msal-node@7.2.1': + resolution: {integrity: sha512-6mntsfCNq7H1eAPSZik74jT3C5at4nRqiVk7OC+D5Hy3Pe3s76uwE4+J0xvDvlVPmoX2kasf3mSwUmzeq9rW/A==} engines: {node: '>=20'} - '@babel/cli@8.0.4': - resolution: {integrity: sha512-mgg9G7dJw7xzx/0Sn8eWQkDpEcQrlDdEV4Y4Ii+8Oay88+lK45vNuSavRUj4g+e5Yfw4tkH4U3ObBFOMJhy4oQ==} + '@babel/cli@8.1.0': + resolution: {integrity: sha512-C4fCHysy+LdXz6nsk59mAKoYBrYTxkbJb6sCEqyx1E8C5+77dEc4I4FjmIO6crtWvHxvn+sL5VD/tIjtQMYceQ==} engines: {node: ^22.18.0 || >=24.11.0} hasBin: true peerDependencies: @@ -1697,56 +1974,56 @@ packages: resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} engines: {node: '>=6.9.0'} - '@babel/code-frame@8.0.0': - resolution: {integrity: sha512-dYYg153EyN2Ekbqw2zAsbd6/JR+9N2SEoC7YV2GyyqMM7x9bLDTjBD6XBhSMLH0wtIVyJj03jWNriQhaN+eoCw==} + '@babel/code-frame@8.0.6': + resolution: {integrity: sha512-uMHhvmDmwFiLuiozaoRYTZHqMFuu3fem/X9JY78lohAuLoh8LSGGC8JqUzo2cVuBsBxkjMZNk56CE7ock8Xxkw==} engines: {node: ^22.18.0 || >=24.11.0} '@babel/compat-data@7.29.7': resolution: {integrity: sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==} engines: {node: '>=6.9.0'} - '@babel/compat-data@8.0.0': - resolution: {integrity: sha512-DOjnob/cXOUgDOozCDeq/aK2p5y8dUIVdf6tNhEV1HQRd6I8aQ4f4fbtHRVEvb6lP3BGomrKHiS8ICAASSVQSw==} + '@babel/compat-data@8.0.5': + resolution: {integrity: sha512-YLsYoQMvL8l8WrGpN3Zj7O1wK5LEBN+cQtux7BcuHyxIXve724XG+zuJ1n3U1cUweRtTzQOA4IHbuQw3N34SZw==} engines: {node: ^22.18.0 || >=24.11.0} - '@babel/core@7.29.7': - resolution: {integrity: sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==} + '@babel/core@7.29.13': + resolution: {integrity: sha512-j1nvOQCZYSgp7HLmisnCXFTpVvFODiijQ9QHkORfGKWH6YDtskTEeCJS7eV545GZ9UBzrq0e2xsOd5QQ5PjIqw==} engines: {node: '>=6.9.0'} - '@babel/core@8.0.1': - resolution: {integrity: sha512-5FgxM4dLQpMJHSiVATk8foW263dVHQHBVpXYiimNECVWG01f4nFyEbQixeT6Mwvg7TayREJ2gpKl3o2RoMdnqw==} + '@babel/core@8.1.0': + resolution: {integrity: sha512-3jqm7xh3kJCmIeOK8sk6/EvOWdSzvOqvjt0tJEDOHHmzWjcQSvIh2/tq1I9RA741tl0QZdMzPJWCulWE+Dy5ww==} engines: {node: ^22.18.0 || >=24.11.0} - '@babel/generator@7.29.8': - resolution: {integrity: sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==} + '@babel/generator@7.29.13': + resolution: {integrity: sha512-T5FRo+RzVHvGjWOuF1Ljc44b+NXAOazodHkGUHp4I3zCkQ4/sNVJm56h1S278LMR0bY5xBhztGziSbli8zObIw==} engines: {node: '>=6.9.0'} - '@babel/generator@8.0.0': - resolution: {integrity: sha512-NT9NrVwJsbSV6Y2FSstWa71EETOnzrjkL5/wX3D2mYHtKM+qvqB1DvR4D0Setb/gDBsHzRICifwEWMO8CnTF6g==} + '@babel/generator@8.1.0': + resolution: {integrity: sha512-7fiBJ61wDV3AHbg7n/EfLBv3RU+lsdRP8QNJnydkKWA7e48FnnvKQWbVHsJQCBE7JHTj4xlzZL9fvQYsBUip2A==} engines: {node: ^22.18.0 || >=24.11.0} - '@babel/helper-compilation-targets@7.29.7': - resolution: {integrity: sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==} + '@babel/helper-compilation-targets@7.29.13': + resolution: {integrity: sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w==} engines: {node: '>=6.9.0'} - '@babel/helper-compilation-targets@8.0.0': - resolution: {integrity: sha512-JwculLABZvyPvyLBpwU/E/IbH2uM3mnxNtIJpxnIfb24y1PrdVxK5Dqjle4DpgqpGRnwgC7G8IkzPdSXZrO1Ew==} + '@babel/helper-compilation-targets@8.0.7': + resolution: {integrity: sha512-ilAZCdOOlOVA7dQbaFNw2f/59p6GW33NxTopc3DvEE3efp3ZXTrGX/yZScaKw8/vd9bq31Ag0EcXiLw32bAgJg==} engines: {node: ^22.18.0 || >=24.11.0} '@babel/helper-globals@7.29.7': resolution: {integrity: sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==} engines: {node: '>=6.9.0'} - '@babel/helper-globals@8.0.0': - resolution: {integrity: sha512-lLozHOM6sWWlxNo8CYqHy4MBZeTvHXNgVPBfPOGsjPKUzHC2Az9QwB6gxdQmpwHl6GlQtbGgS+lj5887guDiLw==} + '@babel/helper-globals@8.0.6': + resolution: {integrity: sha512-OdnA/N52LhzFpeUuVz5YGuSWjc7TPHiFmVYZbPlSgExocO2GwbxVpSni9MVs5wwW+wZ4kPuwBEBN9pIPDYz1mA==} engines: {node: ^22.18.0 || >=24.11.0} '@babel/helper-module-imports@7.29.7': resolution: {integrity: sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==} engines: {node: '>=6.9.0'} - '@babel/helper-module-transforms@7.29.7': - resolution: {integrity: sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==} + '@babel/helper-module-transforms@7.29.13': + resolution: {integrity: sha512-/U96wOz+SCoZ7Da/8kjDGltcNY280JPQcRNPK0Hk3PTbdpaiBDQImtC6JsbVwb1HGMr3usZQU2WsWVjhYNmRzw==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 @@ -1755,20 +2032,20 @@ packages: resolution: {integrity: sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==} engines: {node: '>=6.9.0'} - '@babel/helper-string-parser@7.29.7': - resolution: {integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==} + '@babel/helper-string-parser@7.29.13': + resolution: {integrity: sha512-fWegr+WsEsiMVW4KUNdIIzzMTZSzNiqhy0//6+2MRi2d5NFNsL/AYwBQW8eBnRbTBVRnDVzjaJEUqKaCWjMMdQ==} engines: {node: '>=6.9.0'} - '@babel/helper-string-parser@8.0.0': - resolution: {integrity: sha512-6mJgmFFFIIO82vvoLt9XtRC7/TkzXfts1t/SpRX4IHSzMgqoPYCWesVu1udUPUWioAE/2fcG6WuI8zrkE1gwrg==} + '@babel/helper-string-parser@8.0.8': + resolution: {integrity: sha512-fVM+gSuKbdv9cpmyRNh5EvsDHUZCdxQH3FdnFKSkNYHpbsn95bbrxm+ES3MVeQjcqwi2O5ur/DjLfmTQaO60ng==} engines: {node: ^22.18.0 || >=24.11.0} '@babel/helper-validator-identifier@7.29.7': resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==} engines: {node: '>=6.9.0'} - '@babel/helper-validator-identifier@8.0.4': - resolution: {integrity: sha512-4wFaiLd0bVo4cIoTXI3zKI038NIWE/cr3jvBjejOVYVxV/m8Ltav1USiGzG1fmS5J2RhgEOgXNNK46cRPnRsrg==} + '@babel/helper-validator-identifier@8.0.6': + resolution: {integrity: sha512-HYx0YmuchRxRSpnjvcNffnPS8DCauKNmnumIuHG3jnQAVewRA7kfJGwF13ayEpSZs7s4R/oBH4eppuXcAQd5JQ==} engines: {node: ^22.18.0 || >=24.11.0} '@babel/helper-validator-option@7.29.7': @@ -1779,21 +2056,21 @@ packages: resolution: {integrity: sha512-U4Dybxh4WESWHt5XhBeExi4DrY0/DNK1aHpQbsrQXCUbFHuMweT0TpLEWKvaraV2Y6fS+ZXunsZ8zIuZIgvF2Q==} engines: {node: ^22.18.0 || >=24.11.0} - '@babel/helpers@7.29.7': - resolution: {integrity: sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==} + '@babel/helpers@7.29.13': + resolution: {integrity: sha512-laoRpD/kO/iA4CDlgJbixHekg7oPvWALK0PQyK3Ob2I2njZRvVAD77RfWCIImtqWCq6KijoBoZK7bp/HlTWASQ==} engines: {node: '>=6.9.0'} - '@babel/helpers@8.0.0': - resolution: {integrity: sha512-wfbi91pM3py96oIiJEz7qIpyXDytgr9zQC1HEWwlGNVRAEmItuU/0a41ZUKu1sJGyhhOIpc4t5vk4PYzt8wpsg==} + '@babel/helpers@8.1.0': + resolution: {integrity: sha512-949bjw10dhaRdtQeCpfVShFA4jIcto97BkqmWnRjpzyQuHVZ7EDriaoCn/4D8h1NqSKlmI20xPU0vHf3jQbQRg==} engines: {node: ^22.18.0 || >=24.11.0} - '@babel/parser@7.29.8': - resolution: {integrity: sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==} + '@babel/parser@7.29.13': + resolution: {integrity: sha512-fJM50YYjlTiBhgdkGmC1tBpv+FMAyo4annf2X6Aks+0yRlaiVkYW/3f07xAfVVkYIoZ9fFZp+mEThUFnuybhkQ==} engines: {node: '>=6.0.0'} hasBin: true - '@babel/parser@8.0.4': - resolution: {integrity: sha512-srpptsAkEbbNIC/q8nT7o+m6CQe8CJUTV/t7MYc9NnWlgYVtHOb7JH6SorxMhN0kuRJjVqXbKClG6xSbPtzz+g==} + '@babel/parser@8.1.0': + resolution: {integrity: sha512-fpqZYAC+Tthr19JbEKxXhCGutvfm/+roMe+ULrgUKI+GVyzkQiTMTSheORcWIAzW8T3Oo3W5UavWSvAWmsp7fA==} engines: {node: ^22.18.0 || >=24.11.0} hasBin: true @@ -1896,20 +2173,20 @@ packages: resolution: {integrity: sha512-eAD0QW/AlbamBbw0FeGiwasbCVPq5ncW0HNVyLP3B9czqLyh4gvw+5JTSNt6le9+ziAU7mqDZsKTHf3jTb4chQ==} engines: {node: ^22.18.0 || >=24.11.0} - '@babel/traverse@7.29.8': - resolution: {integrity: sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==} + '@babel/traverse@7.29.13': + resolution: {integrity: sha512-0ve0xMlFA73dgY1oyJRY6RoW+/bncdcOQqg6jjYcVfXBK90OdLXjm9R6lmRetdZVrPjXkKIoMVBqYFPjcAlZ4Q==} engines: {node: '>=6.9.0'} - '@babel/traverse@8.0.4': - resolution: {integrity: sha512-bZnmqzGG8UZneG1lLxBoWIH0G6Gr1D846Yu4/3XnY6FhCndMR49u26nTY08u/dAxWmLWF9vGQOuC+84FfIUoeg==} + '@babel/traverse@8.1.0': + resolution: {integrity: sha512-oQ0QI6MR4cm6bOR/Ua5HLPxvO7vborT7Le5HNt9GmZUKpNsaPl2yj4gsQ440lXaZjc4vmUbSeVgEcK4cHuCL2A==} engines: {node: ^22.18.0 || >=24.11.0} - '@babel/types@7.29.8': - resolution: {integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==} + '@babel/types@7.29.11': + resolution: {integrity: sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==} engines: {node: '>=6.9.0'} - '@babel/types@8.0.4': - resolution: {integrity: sha512-eY+Yn3dCqTGmyiq2QRU66lA5FL8lqqqvecHt0fF3uHONIa7ToYsaCiWV8lOKqAs0Rb2SjixiKFROngnulPtt2g==} + '@babel/types@8.1.0': + resolution: {integrity: sha512-8V8aSTDx012YPmDQF30vrokyxVFdRAU2YBS2VzrnfLAGkP8floVnjckwgFcD0Jrvf6GWMSRdCrYVsk3tyMwZRg==} engines: {node: ^22.18.0 || >=24.11.0} '@bazel/bazelisk@1.28.1': @@ -1930,21 +2207,29 @@ packages: '@braintree/sanitize-url@7.1.2': resolution: {integrity: sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==} - '@bramus/specificity@2.4.2': - resolution: {integrity: sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==} - hasBin: true + '@bufbuild/protobuf@2.17.0': + resolution: {integrity: sha512-hcPkSz6D7MiTU/5VBBhK+kxaYDoOdQ6yJRFJ3kS8Nydp+VZXfg1vrpABKPNod8bXMufsVCmiUJVIKFzCzta4uw==} + + '@chevrotain/cst-dts-gen@13.2.0': + resolution: {integrity: sha512-bA9dvWlhAUcHkNwU+8w9yiUxJPlj/Lm3VqS7MD+NbIR/7LmpNLuK/AWNFdCo/T3SK5ND0/UHf3IJvl/Jn/i6yg==} - '@cfworker/json-schema@4.1.1': - resolution: {integrity: sha512-gAmrUZSGtKc3AiBL71iNWxDsyUC5uMaKKGdvzYsBoTW/xi42JQHl7eKV2OYzCUqvc+D2RCcf7EXY2iCyFIk6og==} + '@chevrotain/gast@13.2.0': + resolution: {integrity: sha512-bCARdAsG+eEbOveSXcOAC7pVxA04I1ionzeMOwIYf5NX7SaS7zgn4Dgug2BSqoL+iyKeMNSorQjsFSHJHsCNwg==} - '@chevrotain/types@11.1.2': - resolution: {integrity: sha512-U+HFai5+zmJCkK86QsaJtoITlboZHBqrVketcO2ROv865xfCMSFpELQoz1GkX5GzME8pTa+3kbKrZHQtI0gdbw==} + '@chevrotain/regexp-to-ast@13.2.0': + resolution: {integrity: sha512-kxpUkLtiaK09ph+dib+Yvm+3sWSnuwlo25gqfKRgTPNmF6H7uW4gVkMjaRdtnN783S9sM6vUNWh9CsxYX4QwKw==} - '@codemirror/autocomplete@6.20.3': - resolution: {integrity: sha512-tlosUqb+3BbxCxZdu4tKeRghPFC+QM7q4X5YhKV2eCmPG+1r2F3f4AaSz5sCrFqUtX4Jh20VFTKecl16MgiV9g==} + '@chevrotain/types@13.2.0': + resolution: {integrity: sha512-7qrYHRlKfWf2AvBfJi5eVOrKAkbxvMFsy/iIHTGIiApNcEecCaVIdR+mIQhyCBsTDJxBz4JWXHMo6krbhR9hVg==} - '@codemirror/commands@6.11.0': - resolution: {integrity: sha512-/K4Rl5BN0OtTiPWmJCdqODu38XnDMsDxKY5rgrPnCkutPTJf2wVbkoixLfealF5Kwse/s8P8M5jAiURiwSwnFA==} + '@chevrotain/utils@13.2.0': + resolution: {integrity: sha512-SzKYY68rseOrb9KILVzPsl6SjkQtdWw01SRGB5aCVI5kFcHltQsOYV3JB0Ffst72DgkvHCyDQ0NLwxtmCCf97Q==} + + '@codemirror/autocomplete@6.20.4': + resolution: {integrity: sha512-yF8RhOf2SXlg00+qtupzLhrglcas61boqaONiNcbPIebHCpJocpqTBA6dyrtUrQO47hqyTdeob/3XnYilT7TaQ==} + + '@codemirror/commands@6.11.1': + resolution: {integrity: sha512-O/4hG3SC1YwcmQ0d2UVNDs+AsaNWd1iHVxbTeEBuqH+6bExAiPK3iS/BvpY6rZGURALv4ZD3sIgcCmRvw3ehBg==} '@codemirror/lang-angular@0.1.4': resolution: {integrity: sha512-oap+gsltb/fzdlTQWD6BFF4bSLKcDnlxDsLdePiJpCVNKWXSTAbiiQeYI3UmES+BLAdkmIC1WjyztC1pi/bX4g==} @@ -1961,23 +2246,23 @@ packages: '@codemirror/lang-sass@6.0.2': resolution: {integrity: sha512-l/bdzIABvnTo1nzdY6U+kPAC51czYQcOErfzQ9zSm9D8GmNPD0WTW8st/CJwBTPLO8jlrbyvlSEcN20dc4iL0Q==} - '@codemirror/language@6.12.4': - resolution: {integrity: sha512-1q4PaT+o6PbgpkJt4Q8Fv5XJxTy4FUZ4MWETtyiDw3J0Pyr9E2vqcKL+k9wcvjNTIsauxvE7OfmWj3FRPHQ76A==} + '@codemirror/language@6.13.1': + resolution: {integrity: sha512-zfvU2r3TyylQLMj/te+5CnQ0rSqZi8B1oTCBbQkagcLW4Xc6imab6qN+pEJhsuNOLaJqiRyBXp9UhWA1DhVvDw==} '@codemirror/lint@6.9.7': resolution: {integrity: sha512-28/+iWLYxKxsvGYhSYL7zaCZqLz5+FFFDq9tVsvGv9kv8RY4fFAchJ5WX9M3YrrRlTIsECjsXPqeNgnSmNP2dg==} - '@codemirror/search@6.7.1': - resolution: {integrity: sha512-uMe5UO6PamJtSHrXhhHOzSX3ReWtiJrva6GnPMwSOrZtiExb5X5eExhr2OUZQVvdxPsKpY3Ro2mFbQadpPWmHA==} + '@codemirror/search@6.7.2': + resolution: {integrity: sha512-gUYkYhT2+n/+VGZ+8EzE5WFkYZUZYm1VOKDudIsNqh42uRVQJ0a6Yss9sdKT3MeOYfuL1N6AZA57oza0Oyr0LA==} - '@codemirror/state@6.7.1': - resolution: {integrity: sha512-9QzNDgE4EYDnAHfrTlR2lwiPciiOymLtwKK+8yHQzCc7GXhAP9xdEbEJFy2IWB1j9UGUl9BsgMmTo/ImA02T7A==} + '@codemirror/state@6.7.6': + resolution: {integrity: sha512-kAz+AncRtKuIknedxT1bq4XwXv4UowhbkHU1myPrtVb/jZtImWuV5BXzv5vK6i3kYACsdiZiQKFQQ5Mq7elW8w==} - '@codemirror/view@6.43.8': - resolution: {integrity: sha512-qtItTDssZ/5GFfi94hrILu9j/VUeFPDPkhovEfmWFj2ipTxnzPB8DdHgfbb8HYTzLTYhrndKmyQxXUz/PDLenw==} + '@codemirror/streamparser@6.0.0': + resolution: {integrity: sha512-JTFPF6xrfjt0mnfGPgzcLiMwYmvIyNaoizp8BYzv8FE8KrT6GBGDZ190rtt+O7Wke3gG/MFHyiY9YGNeimof4w==} - '@codemirror/view@6.43.9': - resolution: {integrity: sha512-sTuUzTpPMFebRhg6dawChoKKgndIwfjmJgKVxBefPElcU2NwQ6AFroupk0SFqEerQyZOGRfDNnSN8Dw/lMAsXw==} + '@codemirror/view@6.43.15': + resolution: {integrity: sha512-HHsfpqFeHyXLs983pSRe38Xajs0vFWZQ2BuX0m7Ki8w3jZ5iD8cuR3lBz2/5/X53Dhf32SBHKh6rtSTB6tKeGw==} '@colors/colors@1.5.0': resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} @@ -1987,6 +2272,10 @@ packages: resolution: {integrity: sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==} engines: {node: '>=0.1.90'} + '@colors/colors@1.6.1': + resolution: {integrity: sha512-dTmUJzXSuayBK+hZydEaXd2mhx61qWQwkwaBBY6LyEOVx/L9aQU5ac8eFNEsd9nrD1+zb9zvDCphLSe8g1F4Qw==} + engines: {node: '>=0.1.90'} + '@conventional-changelog/git-client@2.7.0': resolution: {integrity: sha512-j7A8/LBEQ+3rugMzPXoKYzyUPpw/0CBQCyvtTR7Lmu4olG4yRC/Tfkq79Mr3yuPs0SUitlO2HwGP3gitMJnRFw==} engines: {node: '>=18'} @@ -1999,20 +2288,20 @@ packages: conventional-commits-parser: optional: true - '@conventional-changelog/git-client@3.1.2': - resolution: {integrity: sha512-jZqwnJwf7nboIlAcw/mkOjVa6DexCcUOgT2oOQgkoi3z9vR8tGFkcMy2BFcYwjhL9sYcDDXkRQDayiDieCoW7A==} + '@conventional-changelog/git-client@3.2.0': + resolution: {integrity: sha512-sD/E0vzpkoDz/dqM1Hhv0ihC4KBw6RXjefeO8SG1XrX+wGkMxe1pKeedkKDPCtr2JjuhbuS9aJNgOvnT8hbeBw==} engines: {node: '>=22'} peerDependencies: conventional-commits-filter: ^6.0.1 - conventional-commits-parser: ^7.1.2 + conventional-commits-parser: ^7.1.3 peerDependenciesMeta: conventional-commits-filter: optional: true conventional-commits-parser: optional: true - '@conventional-changelog/template@1.3.0': - resolution: {integrity: sha512-GsCw/qu92GI0EX6s7fxUi/SG1lmFjG9XZivxxEDZXqztuQKCn5o5wKdz4v005zci0Md7EZzgAwmQLoIEDZoaow==} + '@conventional-changelog/template@1.4.1': + resolution: {integrity: sha512-mHyyEL0eIEqJ6+aF24+AdZRo4bu4W5GdUiCiCx5X7kfDY51ye8GQJ264uOINObrRSKxtSRCOWPpl9hbOy4UzxQ==} engines: {node: '>=22'} '@cspotcode/source-map-support@0.8.1': @@ -2023,8 +2312,8 @@ packages: resolution: {integrity: sha512-S11EXWJyy0Mz5SYvRmY8nJYTFFd1LCNV+7cXyAgQtOOuzb4EsgfqDufL+9esx72/eLhsRdGZwaldu/h+E4t4BA==} engines: {node: '>=18'} - '@csstools/color-helpers@6.1.1': - resolution: {integrity: sha512-gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w==} + '@csstools/color-helpers@6.1.2': + resolution: {integrity: sha512-grhRy3OKmniaAEKXMjua5z/EODX0MSqBGjunw8+j/3HQjOnahs2AGhvEOIYVUWcU6ScApbhLhVrQTX8XqrMrow==} engines: {node: '>=20.19.0'} '@csstools/css-calc@2.1.4': @@ -2034,12 +2323,12 @@ packages: '@csstools/css-parser-algorithms': ^3.0.5 '@csstools/css-tokenizer': ^3.0.4 - '@csstools/css-calc@3.3.0': - resolution: {integrity: sha512-c5ihYsPkdG6JCkU2zTMm4+k6r7RXuGxtWYhu5DHMIiF1FHzrfmHL5so11AoFpUv/tu61xfcmT4AmKoFfMPoqdQ==} + '@csstools/css-calc@3.4.3': + resolution: {integrity: sha512-iex20d8CHVkyvg6B7UKV7uHnI2Bqo9g+EFfT9E0y+GvTvhZ/DwONJ+9aKb1dlqm0ZiGsL5RXjp0fCoJYnkeDjA==} engines: {node: '>=20.19.0'} peerDependencies: - '@csstools/css-parser-algorithms': ^4.0.0 - '@csstools/css-tokenizer': ^4.0.0 + '@csstools/css-parser-algorithms': ^4.0.2 + '@csstools/css-tokenizer': ^4.0.2 '@csstools/css-color-parser@3.1.0': resolution: {integrity: sha512-nbtKwh3a6xNVIp/VRuXV64yTKnb1IjTAEEh3irzS+HkKjAOYLTGNb9pmVNntZ8iVBHcWDA2Dof0QtPgFI1BaTA==} @@ -2048,12 +2337,12 @@ packages: '@csstools/css-parser-algorithms': ^3.0.5 '@csstools/css-tokenizer': ^3.0.4 - '@csstools/css-color-parser@4.2.1': - resolution: {integrity: sha512-YpAJZhaHplYQkG8ib+/Fx5Y0eF2lVWi3tIvMJA6i39TLyUNp2439cifzW8VMjhlqrBjHzK5hVGugRRm2zTKI/A==} + '@csstools/css-color-parser@4.2.7': + resolution: {integrity: sha512-zgm9yjQz5iJB4VL8RyVwd71TWB8Q89FSxt/NzXoWqPSkEBOVtn9L6vAPtSc9hpKfB0Awo/AL2VKFHjYetBLFHQ==} engines: {node: '>=20.19.0'} peerDependencies: - '@csstools/css-parser-algorithms': ^4.0.0 - '@csstools/css-tokenizer': ^4.0.0 + '@csstools/css-parser-algorithms': ^4.0.2 + '@csstools/css-tokenizer': ^4.0.2 '@csstools/css-parser-algorithms@3.0.5': resolution: {integrity: sha512-DaDeUkXZKjdGhgYaHNJTV9pV7Y9B3b644jCLs9Upc3VeNGg6LWARAT6O+Q+/COo+2gg/bM5rhpMAtf70WqfBdQ==} @@ -2061,28 +2350,10 @@ packages: peerDependencies: '@csstools/css-tokenizer': ^3.0.4 - '@csstools/css-parser-algorithms@4.0.0': - resolution: {integrity: sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==} - engines: {node: '>=20.19.0'} - peerDependencies: - '@csstools/css-tokenizer': ^4.0.0 - - '@csstools/css-syntax-patches-for-csstree@1.1.8': - resolution: {integrity: sha512-CpMLjAvwQg3BL5S0IeqsZNMH7EQrEWi0kLKOC13ZBF0ZwERiLWlibNPJr8G1kdU3Ms/r2KiNrF81pUh2HwAHdg==} - peerDependencies: - css-tree: ^3.2.1 - peerDependenciesMeta: - css-tree: - optional: true - '@csstools/css-tokenizer@3.0.4': resolution: {integrity: sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==} engines: {node: '>=18'} - '@csstools/css-tokenizer@4.0.0': - resolution: {integrity: sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==} - engines: {node: '>=20.19.0'} - '@cypress/request@4.0.1': resolution: {integrity: sha512-y20e+e6dFYkOUUJLVUZTsJRuTiXZaUQ32WD+R/ux/HBybbTx4ge7cNINcua0pU8+SNkKuRbOF12mBmzuzM8n5w==} engines: {node: '>= 14.17.0'} @@ -2090,8 +2361,8 @@ packages: '@cypress/xvfb@1.2.4': resolution: {integrity: sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==} - '@dabh/diagnostics@2.0.8': - resolution: {integrity: sha512-R4MSXTVnuMzGD7bzHdW2ZhhdPC/igELENcq5IjEverBvq5hn1SXCWcsi6eSsdWP0/Ur+SItRRjAktmdoX/8R/Q==} + '@dabh/diagnostics@2.0.9': + resolution: {integrity: sha512-R6siwR65Hm+3yfgP7o8DKhNvputQAwfoz9zTc3kyDudnomj2/BcLmD+uGQQPICjuFUp8ounPBU+jmKsocwVVAg==} '@electric-sql/pglite-tools@0.2.21': resolution: {integrity: sha512-kv8Z7UmmBVECHud63VblgQLp4A+qSklNP7H22VQqFQGrWFTodc73bubcjgmBqThFsIIiEeAEQQYwWGaK2lSDtA==} @@ -2104,14 +2375,20 @@ packages: '@electric-sql/pglite@0.3.16': resolution: {integrity: sha512-mZkZfOd9OqTMHsK+1cje8OSzfAQcpD7JmILXTl5ahdempjUDdmg4euf1biDex5/LfQIDJ3gvCu6qDgdnDxfJmA==} - '@emnapi/core@1.10.0': - resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==} + '@emnapi/core@2.0.0-alpha.6': + resolution: {integrity: sha512-MNVvMV7WtEJMgqaWJMvCyupK7Oi8sZctUIgPRZTsiS3cVvefk8DXPflOU3MSBddtj/rrYHygpYgpHDgwXnI3+w==} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-alpha.6': + resolution: {integrity: sha512-5ZR49ZsZ3cLvu5lkrVj6CMpHRgZjYz7XSlqK23GYYpyEqp749RVuIH0bEUKaGNghMh2pXRhIC3cnVrH28Y1j1Q==} - '@emnapi/runtime@1.10.0': - resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==} + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} - '@emnapi/wasi-threads@1.2.1': - resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==} + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} '@esbuild/aix-ppc64@0.28.2': resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} @@ -2269,8 +2546,8 @@ packages: cpu: [x64] os: [win32] - '@exodus/bytes@1.15.1': - resolution: {integrity: sha512-S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==} + '@exodus/bytes@1.16.0': + resolution: {integrity: sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA==} engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} peerDependencies: '@noble/hashes': ^1.8.0 || ^2.0.0 @@ -2281,76 +2558,76 @@ packages: '@externs/nodejs@1.5.0': resolution: {integrity: sha512-2J+FRDjGfKKldTQ5YqLmhQ04/sA9swTQ6OTtPzo4xhg41u1+eiufciXiqW6u3UXEcmm413a27NakgnLbzfp0wQ==} - '@firebase/ai@2.14.0': - resolution: {integrity: sha512-TYEQqCQUTyVHuG/HVi9vau6F9kvEaS49o/hmdn/yUuN6ZXQkwIml2nNJTIBfjNl/r9LOxwUNILgcOY16nxObug==} - engines: {node: '>=20.0.0'} + '@firebase/ai@3.0.0': + resolution: {integrity: sha512-66jJAi6JUmyXna89xaDONmfvupO1wNc3f2BegPwUImagbbpKdVeycE3kMqbU4jiDLL14N5PHzadovvxpaqD2hw==} + engines: {node: '>=24.12.0'} peerDependencies: '@firebase/app': 0.x '@firebase/app-types': 0.x - '@firebase/analytics-compat@0.2.29': - resolution: {integrity: sha512-allztvCvCUlItZzD97TiRAtGoFJzR1FQFmLxbaLc6PvgscqD9cl5NdKPTtka6keShVYXvCZJpzWcRoH4TME8rw==} + '@firebase/analytics-compat@0.2.31': + resolution: {integrity: sha512-msTlG9REujk5rjtOHNLngiuPmvaWGQte8ugL4/F6ZCMb+92Ue7SgjSEpNxINkM8ZtTrbGS83j5SZkt0r+M1Tjw==} peerDependencies: '@firebase/app': 0.x '@firebase/app-compat': 0.x - '@firebase/analytics-types@0.8.4': - resolution: {integrity: sha512-zQ+XTgkwH6CY/eUSHJRP7e4LxM30RCxlCmob5sy2axs25GE3Ny0XdgpDscMTHHQIGqWkxPXad4w2Mw9sCgT8zQ==} + '@firebase/analytics-types@0.8.5': + resolution: {integrity: sha512-kdnooE7Bis2jEnsqcerRwn/UQpH5D3uvHpku7OdUM9TJN3omlu6iYtbyAQ6XkAJRgJtO0aNf9OOkW8J6D59oCA==} - '@firebase/analytics@0.10.23': - resolution: {integrity: sha512-34ALWXzWA6PTRUA5hipZmsm1RKzeecw5J1+qTCXsiMzwLqONC+GuTIQSdmm91MmTAEA+wG1Q5t0IFahcYQOqAA==} + '@firebase/analytics@0.10.25': + resolution: {integrity: sha512-oDagV3PHeNXBdxemksZCdj+GmUT19eCnTOcLdQePIIovFXlm3zWy3Gjeaokt9Nqx24kc4ljK8lU0XGcGmmKZ1A==} peerDependencies: '@firebase/app': 0.x - '@firebase/app-check-compat@0.4.6': - resolution: {integrity: sha512-2pzNEZEkX84jSqy6TH6FI1HSLA1lc7kakRUybBbKjg9YhIttPlW/XX3N9CDtChji2PTTPWVPZiWhB10exHfA+A==} + '@firebase/app-check-compat@0.4.7': + resolution: {integrity: sha512-fBb/xSMyIKv1nDmccfzz3IAGBzx/cQOxmZai66rJzifb1hMMkztf824Xx7LhpTUe7HNUbXwY90IvJ66fi8q6yg==} engines: {node: '>=20.0.0'} peerDependencies: '@firebase/app': 0.x '@firebase/app-compat': 0.x - '@firebase/app-check-interop-types@0.3.4': - resolution: {integrity: sha512-zz3i6e13B8BfWiLy8MABtTh8aGIACgKbf9UVnyHcWs+yQzJXgQcl8A46b0zfaiJHdQ+niF0ouAfcpuf+3LMPQg==} + '@firebase/app-check-interop-types@0.3.5': + resolution: {integrity: sha512-qId34pVZ2CXTmtu4ofW5leiI93DvnOvIcr/5GT7MZPw5WXAi6nZoU+g9cNRgl7K90UJSbK0cXxten4meYMPyZg==} - '@firebase/app-check-types@0.5.4': - resolution: {integrity: sha512-xV7JsIyzVr15aA7f3Pi0rB9gdBuVubs89FGA8VkRYA4g0l78poADgdfrScgf7NndSg9mm7cR7PJyY0+t22KaGw==} + '@firebase/app-check-types@0.5.5': + resolution: {integrity: sha512-+DF4gzFrlwGFyky38o4T/YN/r51l70yCtJ2HTkwmRj8FCMwPjm4hLH4fQbj6BUvzkiFqliBkitFsRpf1/YZkWA==} - '@firebase/app-check@0.13.0': - resolution: {integrity: sha512-AbMttBKazQvGVXBZhQdVAdPzRhwHyJAY3Ghu5y2C7IZKIDIppzNYz0shTZ1mP4FBJa+28BuC4t+5h1Q6pT3Asg==} + '@firebase/app-check@0.13.1': + resolution: {integrity: sha512-l8y3dmnhodXks/APAwx4tWqRl3tk8b9874KF1FJyKg1DIU+kMD0l52iz7S9/MW+eK8k6cjJg0G0iJ5KQAsQpow==} engines: {node: '>=20.0.0'} peerDependencies: '@firebase/app': 0.x - '@firebase/app-compat@0.5.16': - resolution: {integrity: sha512-shQq37O8qELDzvsVwYPlDXwD1zlcrZ0m2bpBF5ov2HSbY8x+AHsnL5TtJ2e1JAfkQN05qHao1AfabS69PN6GiA==} - engines: {node: '>=20.0.0'} + '@firebase/app-compat@0.5.21': + resolution: {integrity: sha512-TM5ROeRhbOXj+n1umENLZkjxm5f3myWonM+O7Na4VvCfFKWTH0cmNxjfMjrNoMkvoit4XtewMt4M7jaCAy4enQ==} + engines: {node: '>=24.12.0'} - '@firebase/app-types@0.9.5': - resolution: {integrity: sha512-YevqTjvo7Iujsa9Dwowmd6dSoElhzmD63ZSrq6bzjvQ6POjYgNjOFHLmNIgJs48eNO093NCERibuFnxbfOvU7A==} + '@firebase/app-types@0.9.6': + resolution: {integrity: sha512-yPLahy7Esfu2w/yme3msVK4xTkDXQqq6szfQn8yVOQpCKiT5GVFjqNpLbuz6NkX0WuTwUidkmPewW3r4xkvpeg==} - '@firebase/app@0.16.0': - resolution: {integrity: sha512-G+ZGEyVP8YTb3ay6A+XpcYgFH3sTESHcnHU/EyTktodqhz2BHkLq+QEP7IVwjiMX0cxYwpVKip0/wC0KZcn9vQ==} - engines: {node: '>=20.0.0'} + '@firebase/app@0.16.5': + resolution: {integrity: sha512-hVFsDVHCD86RjS+e2IDujnB5oZ57DVKcvhZLs7GVBnFk3SuGA4XkGUma85bFyQkxJ1XZI60Zfj+JRkIkos7omg==} + engines: {node: '>=24.12.0'} - '@firebase/auth-compat@0.6.9': - resolution: {integrity: sha512-/hHeTBmQ61+N5J1RECls+WfskZTY78JXr7aO5EMOfUpqJvDqvoS+568k0rp6Ss/4UWwBjadILs+H+SGy1zCS3A==} - engines: {node: '>=20.0.0'} + '@firebase/auth-compat@0.6.14': + resolution: {integrity: sha512-sc6HHIbAt8Ah///K5ufZEpEBBPvstXnqde1VQUME7o6Nh+OKYYniuCxqEvPwtLiwuyyQ8rC4fljymedwvTDtGw==} + engines: {node: '>=24.12.0'} peerDependencies: '@firebase/app': 0.x '@firebase/app-compat': 0.x - '@firebase/auth-interop-types@0.2.5': - resolution: {integrity: sha512-1Li/YuBDBAXcKv7BzY4U28gontUmAaw53sYiqbaVOMCFb2lFKK/c3CGMUWqtwe7+TXrl3poWnTCL5umYBg85Eg==} + '@firebase/auth-interop-types@0.2.6': + resolution: {integrity: sha512-FgwZqDrBqgK0BHI70QTv1v/5wmuDF9f8fsJFvKSxoRlK2PPfSQtZAk2jhXu4pe9BZzFi/e4UYusU/bEQHdf6Qg==} - '@firebase/auth-types@0.13.1': - resolution: {integrity: sha512-0c1Mnid0uMDfGJHeUS4zfvBa4/CedJXotGy/n/NZJnBjwiJawt0ZYU+wH2VAVLiRCEfG2ncCkAX3yd1/2nrB7g==} + '@firebase/auth-types@0.13.2': + resolution: {integrity: sha512-OU+miuoSxIWYN7GT291d2ylVJBL3k/OePo7/JDSoQtkFQoEiGBc4AHuMjj/seqFIsHrqnjrAfRCk4pfufoJolQ==} peerDependencies: '@firebase/app-types': 0.x '@firebase/util': 1.x - '@firebase/auth@1.13.4': - resolution: {integrity: sha512-s+NS1aV0DDyyfoIMeSz53HXnVTv7ufJjJfrP63XyaWHweJ5vOoxKWrTm5tO7S7PDqvyOa/Wi3oP0dgAo6JTMMA==} - engines: {node: '>=20.0.0'} + '@firebase/auth@1.13.9': + resolution: {integrity: sha512-skKWiI33P138PTCl6NDvLecoy/ho6C31/2t/MdKMaWLLN1/ZFT5FaWgQUtif4HWIonk/JMQp8jYmlmUugFvETA==} + engines: {node: '>=24.12.0'} peerDependencies: '@firebase/app': 0.x '@react-native-async-storage/async-storage': ^2.2.0 || ^3.0.0 @@ -2358,17 +2635,43 @@ packages: '@react-native-async-storage/async-storage': optional: true - '@firebase/component@0.7.4': - resolution: {integrity: sha512-tLpOaaCol9ugUIYp2R3CbWPPA8Ajg/papX/XHEy8U52b/QXH3BbX8tTJX9aShDCjp+9sMAxMLD94i7lresdugQ==} + '@firebase/component@0.7.5': + resolution: {integrity: sha512-vuFDcL91Q+2ZuBJkyOh86T4q0B4ffNTDjc/A38tybO56odQABxRTFLTIowCWqAKeIcgo37GowWMVgFF73gD8Qw==} engines: {node: '>=20.0.0'} - '@firebase/data-connect@0.7.3': - resolution: {integrity: sha512-nHBFk3Ntl+NZCRIUG2d5j7I69P0otjyQ/duhVKLbw4+5cNke/F6RK1pdE5Jnf831/QOTs2Bd00LlxlZ+jNsb9w==} + '@firebase/crashlytics@0.1.0': + resolution: {integrity: sha512-OiFx/LeHbocsQ5+6yMru0l6uMup6jmoeVDQCPYlXZ/u+xDGbO5dY/yh983CmscTPTvUGiON5ytvxHpH7vL8KqA==} + hasBin: true peerDependencies: + '@angular/core': '>= 14.0.0' + '@angular/router': '>= 14.0.0' '@firebase/app': 0.x + '@firebase/app-types': 0.x + '@types/react': '>= 16.8.0' + next: '>= 13.0.0' + react: '>= 16.8.0' + react-router-dom: '>= 6.0.0' + peerDependenciesMeta: + '@angular/core': + optional: true + '@angular/router': + optional: true + '@types/react': + optional: true + next: + optional: true + react: + optional: true + react-router-dom: + optional: true - '@firebase/database-compat@2.1.6': - resolution: {integrity: sha512-mu7S/75UIajB1A5M9Vfojk69LttW55uABp9nHEtWrV/mIaSEwvoaIe9GySsEzS2EKFK5/3f5okcAuUbihhYeJg==} + '@firebase/data-connect@0.7.4': + resolution: {integrity: sha512-su1aGWlzhxb+xtggCUSsufJn1FDa06SBDK71y+fpQ+g2zMhMExik6FUv/odkKzOF/xfWVjabCbWBcjJY3MceDA==} + peerDependencies: + '@firebase/app': 0.x + + '@firebase/database-compat@2.1.7': + resolution: {integrity: sha512-lBq9sJm8MnJINKJnkAKSOj2MbC66xGoSVCcGkPtstl+lkoKEBtD46qHLbuDgW/WbLPoKVm17RIN8BxHj+Z2F2w==} engines: {node: '>=20.0.0'} peerDependencies: '@firebase/app': 0.x @@ -2379,138 +2682,138 @@ packages: '@firebase/app-compat': optional: true - '@firebase/database-types@1.0.21': - resolution: {integrity: sha512-SX1jUqhttKgg/m9dYRTvqU9QvucBooziWfA986r4cpsbi4zlsvewe424j3Vpduwd6DG1MSAMfBVT2VqA61FnkA==} + '@firebase/database-types@1.0.22': + resolution: {integrity: sha512-YAZNXsjY9EQQ+pKw/3ax8n5FgolHC7Qew7EY5RceYdl0R2ZP+kCv1O0DkKlcceue8uQCOreHCNN7PWVFpY1Nug==} - '@firebase/database@1.1.4': - resolution: {integrity: sha512-D+j4+8uhGtNd1tVD+X+c8JrC4ppStGJKyujSQt2NPwdN26QcCk0BeIxue+UqspHkHiFHyQOimwlzjLewGq6S+A==} + '@firebase/database@1.1.5': + resolution: {integrity: sha512-/JGpvszLoNXNgzilRXocigGfFF4hbcPA9wN1i1kjJx6oKkXgkHteZYl3lQs1lJX3ETDf6bv7zI15lPMVUp4sAQ==} engines: {node: '>=20.0.0'} - '@firebase/firestore-compat@0.4.12': - resolution: {integrity: sha512-k2uX81Ao/S0jnFcWGPOQpKK1cPlJHvD9WIqh/RE1XBDP2yg5zhE4rHhSg1rtB11k39q3nKon9XLNDDrPjGclag==} - engines: {node: '>=20.0.0'} + '@firebase/firestore-compat@0.4.17': + resolution: {integrity: sha512-3DfKwSg4e/mhoMaS965GjEG0+CvEbKZD3UW9wKufIW2LmWglEhXaKyrlSJQJLqEnLBd0+6eNXeeuCF5GKq1kAQ==} + engines: {node: '>=24.12.0'} peerDependencies: '@firebase/app': 0.x '@firebase/app-compat': 0.x - '@firebase/firestore-types@3.0.4': - resolution: {integrity: sha512-jGn+JSS4X9zZsrfu7Yw66v5YRdOLD1oyQh4USR0xWl4CUqV/DA6bNIXRPpxH/cUl3iVTNiP6MN7g+EL42A4qfA==} + '@firebase/firestore-types@3.0.5': + resolution: {integrity: sha512-dbdMAQkMd5dwWc48eupz/Y6/E9ruat3+gY5lhVKscvvT/HnDBEEMzJW38zdKhgdnglZHGk2vUsJMOHAphMHGMA==} peerDependencies: '@firebase/app-types': 0.x '@firebase/util': 1.x - '@firebase/firestore@4.17.0': - resolution: {integrity: sha512-P9tof6pyO1bnLlMWbux+5O7WFJqlb7OTPMKxxOiXKYiQl7mxykAvxr1BFCgWeEXUU7DZxQncyJ040B0IhFVZCg==} - engines: {node: '>=20.0.0'} + '@firebase/firestore@4.19.1': + resolution: {integrity: sha512-W14adbYBDKvvLNnVIeUjjANvvDNOJiPIc1xq5GfRDBO0y/3At3cJ3CLqY71YMVF88y2eZIrOvlz8qrQUX5y1aA==} + engines: {node: '>=24.12.0'} peerDependencies: '@firebase/app': 0.x - '@firebase/functions-compat@0.4.6': - resolution: {integrity: sha512-dj9sOet+FIU91jeU4A3vGJoXHty7NqkSfjRLCwLgJXPDk1m72KFuxD3nlFgw/yXx/Fr7UjqzbxZ0LrIOdpx7+w==} + '@firebase/functions-compat@0.5.0': + resolution: {integrity: sha512-T3BDIToESZUHt7438wyKYMkRjKg3m1xAIux5fVpNvTRQlDOFLukWniQWBDhJ2znpU9kxMTR6+e31TVo8P15PZw==} engines: {node: '>=20.0.0'} peerDependencies: '@firebase/app': 0.x '@firebase/app-compat': 0.x - '@firebase/functions-types@0.6.4': - resolution: {integrity: sha512-zV6kgqtduR4rUAdC/ilS7kmb93XD7bEZoJDlVBZqlOw2uGGGCNBQBuleww2rr0Ulr3L9o2TDjumEt68/l1f9DQ==} + '@firebase/functions-types@0.6.5': + resolution: {integrity: sha512-Zc0pURjthHXzSj54ZivCkzKDSV1r/wIpnmHdhq82q2yFFPVoncG/ZJjnVMiANvQfeww/QnElhzODpfwUucVwdA==} - '@firebase/functions@0.13.6': - resolution: {integrity: sha512-9obLnzeQUivK5lmtGFOU2ucQ38BjTp+jpPtbfFp/mDsdVCvEpRqdWNvMMQ6aQwR4vcVc/utsvngm5BRkXbc7ZA==} + '@firebase/functions@0.14.0': + resolution: {integrity: sha512-DhuYFr0eMhp+s/PNEk6SiMsYkc00+XVOUeKbrl8MOzQNZI3SKQpqoDR1d+keNDAutwmHRWTUAdXBoVPD+xxVUw==} engines: {node: '>=20.0.0'} peerDependencies: '@firebase/app': 0.x - '@firebase/installations-compat@0.2.23': - resolution: {integrity: sha512-isaXmjb9roM83eVeXAe+ZRNKYNsSo2s0aNM+cy04AAGEyVL/d8Aa11GwEXovRFeYjl9+1yRAOxRDTOukZRwTxA==} + '@firebase/installations-compat@0.2.24': + resolution: {integrity: sha512-8M5nlcWwYt881x83COP2odq5vgf+NgwJh+RMd4LRSv8JI1pxwDfgrDJOERrjTgfC9J5Z0vnQX4b1pdN914e0Zw==} peerDependencies: '@firebase/app': 0.x '@firebase/app-compat': 0.x - '@firebase/installations-types@0.5.4': - resolution: {integrity: sha512-U2eFapdHwjb43Vx9o+Pmj4dFfvcHEK1IirEFLqMtWrTHvmdrS3gBpBD1kmJk/9HjsOtoHZxJ2Paoe79e+L1ZPg==} + '@firebase/installations-types@0.5.5': + resolution: {integrity: sha512-e9UYcju3puDl1vdrcKIi5dExzHLameOT/Tc61Q48PYwxtsM1NzZh/ikGbdBQTsbRgg0EMZqdPr0/m5ODUBobrg==} peerDependencies: '@firebase/app-types': 0.x - '@firebase/installations@0.6.23': - resolution: {integrity: sha512-MBkbcQfd+3qHjW+slsH4s7jH5qTdGlYpwqmxEZ7QcIpgDxu1SKyU0f+mCZhCt1BCacLNiOWF5L0R06N0LtlfMg==} + '@firebase/installations@0.6.24': + resolution: {integrity: sha512-Ui52ey8wHoWqkBbXRKJEKYWylI0JZogZmoLS+o8Anh1bxWtK27ZYjLla1UJAAdC5DCKLJ2qAp0VpJOjg8VOX1g==} peerDependencies: '@firebase/app': 0.x - '@firebase/logger@0.5.1': - resolution: {integrity: sha512-vZKLsqE1ABOy8OjQiE7cUTFn4gvaqlk88yp8N94Pk/sDpq61YqZGqmVFZTvOyflTwuYFcWirBdYGoJgbDaXKYQ==} + '@firebase/logger@0.5.2': + resolution: {integrity: sha512-J2VO4NFTc0xQFrxV1B/lm5balicm9cwuX2acR9Yn41fN8KgUeQFo+VJV222IqW2FPSXKDu9uo5WdQFWf9TPbYg==} engines: {node: '>=20.0.0'} - '@firebase/messaging-compat@0.2.28': - resolution: {integrity: sha512-/AmMqHRnSQhPsdeED3ocs+s30/tpFvZDiiwIYY2uXFRvLujo1fnbPOeCFoe4Y+dRy1LCSjpvJf+dy5ZTsxi1yg==} + '@firebase/messaging-compat@0.2.30': + resolution: {integrity: sha512-m1DPT2ET5x0qYqXLoHwKMAyf1mgZZOhuoE6H6/H4OPsp8zSxMIDEFPaW7MaffPJsCA5J7kHzo+BHVNXK4ZoV+w==} peerDependencies: '@firebase/app': 0.x '@firebase/app-compat': 0.x - '@firebase/messaging-interop-types@0.2.5': - resolution: {integrity: sha512-tUEKnaAP2Y/MNIqgnriPpV6e5l13Vs/+p2yrd6NGlncPJT9O3a8muYZtdnWe+IJ4fgKLHJVC79n/asxk/N5Msw==} + '@firebase/messaging-interop-types@0.2.6': + resolution: {integrity: sha512-MVzvkKe2V4H2dHu5oOxRfeKQcfTwWmCgnzsC4V1q3ixun5iiL8riCZ2qI35rDhCL4glPGiu0jHxDbpVNuTKfow==} - '@firebase/messaging@0.13.1': - resolution: {integrity: sha512-kL8fdjbNBI7hprlXJrUjktDWosrpT4JtfwXtVVevImPF/rBRAsC+LS/jIs+kgQVuotnvMhaBCgAFipBoY9YU9g==} + '@firebase/messaging@0.13.3': + resolution: {integrity: sha512-nRXPAp+z0kA3KziJtRY9kktHECvRwaaONzHvislFgllhCwJMscW7icWNQA5IjyP8Uc2+GS/4px8Uz6rx6ftTag==} peerDependencies: '@firebase/app': 0.x - '@firebase/performance-compat@0.2.26': - resolution: {integrity: sha512-jgoocXLN6ao26xWQ8pzosmzQ33uLzGBJQPNK0NTbVy1XvIHr5pfgBf9hWLOxsWe+R7sJq5bjD+8ybXprmt61mA==} + '@firebase/performance-compat@0.2.27': + resolution: {integrity: sha512-O/ozTf/EbChN94Pk7bd1eUC0PAC36726AwsaiJyC0bZzSBWfLGSWASGPH5pebUWXQPJtGxIJYRkkbX5l0Qa+Hw==} peerDependencies: '@firebase/app': 0.x '@firebase/app-compat': 0.x - '@firebase/performance-types@0.2.4': - resolution: {integrity: sha512-kJSEk7b0uhpcPRyL4SQ/GPujLqk52XNKcXlnsKDbWGAb9vugcLvOU3u6zfEdwd+d8hWJb5S5ZizV1JFFI0nkKg==} + '@firebase/performance-types@0.2.5': + resolution: {integrity: sha512-PRzOgB+/M+6AKlEkY8a9xy5Ff5SfZPIh4iShXhn2WAcL/euSbK7bdLqWysHduunNJhGFsXa22Ag3ixqL6rQtYg==} - '@firebase/performance@0.7.13': - resolution: {integrity: sha512-1u6fuXP9cj0s+lkTFAspr/ttfPebPbEdpx+5Wdr4mPZbp8qH2KCMxOddEAR1ZMRa5GI0E7hDYSnolEmbqOFOAg==} + '@firebase/performance@0.7.14': + resolution: {integrity: sha512-9PH1XEZVHErxGdbXluvGz4Uyjw4W955H8v7Mv9rHIybRrg5F2Ac2tvf5+mSf5EtnxWNmxrD2WLnvMFaZP4sMrQ==} peerDependencies: '@firebase/app': 0.x - '@firebase/remote-config-compat@0.2.28': - resolution: {integrity: sha512-kEO9Gn6fbmVj7eNUtZ6d59mLgUDUD0qo7aCicGOWNfuRWTaUv3CF9DMYychO61zaEQ3cfA+CEny4V1E8A1gRGA==} + '@firebase/remote-config-compat@0.2.30': + resolution: {integrity: sha512-Q4sQKhQ8TPEMOcCUvUBfGeAP1DfcG7FGBfA9yFUn/XRr4vSToY0DTmK28Nh7lgLQYzs6D5Ng6knSoXH+aGn1Tg==} peerDependencies: '@firebase/app': 0.x '@firebase/app-compat': 0.x - '@firebase/remote-config-types@0.5.1': - resolution: {integrity: sha512-cX/1LT6KQwkXzck2eSzeKnuvXZCyr8qaPpDcikoJs7jmI+oBOXixpDLeDtWj1U6GNMkIoXrEDNoyT2Ypcyp5/A==} + '@firebase/remote-config-types@0.5.2': + resolution: {integrity: sha512-i8k1omVfoAnaT1ZPv2FFjxMZrATYsO/GnFgHEj5+7fAJLzi8wLnGGv1WK06oEAD6ltrWXSO1HzeNyajn/NjMWw==} - '@firebase/remote-config@0.9.1': - resolution: {integrity: sha512-nzQUSJnk1zAZEl2Q5O3I7Z61cYLK5JI4H6wyyOiHkVZ+bmgy1YXNNMptNbVjixMQ/eCzgA6nZRaC+1eBcJGUFA==} + '@firebase/remote-config@0.9.3': + resolution: {integrity: sha512-9DbuFNAFeUbVJQZmwLZfdoLRNFWV43V4UqaRpDkaSIdTmVWhzctPeISGkWe4sKTsqpoyldRumquS0gqWZg05fQ==} peerDependencies: '@firebase/app': 0.x - '@firebase/storage-compat@0.4.4': - resolution: {integrity: sha512-qSRgCB9f2R/nCp8t/8OC101cIFBFeUazlRInOMdzbnLzvrQBzEfx19SrR4pvdj/0+M+P/y8AK/a2s+3EB+B1Pw==} - engines: {node: '>=20.0.0'} + '@firebase/storage-compat@0.4.6': + resolution: {integrity: sha512-te0IsqX1bM+OZCJF7jNSKXcMqCA2yYmpshRHjX4axy0lI/P9ZP9GLjEZMVL8wrjUWF4e3cZxMZTbck3Zd5E1hA==} + engines: {node: '>=24.12.0'} peerDependencies: '@firebase/app': 0.x '@firebase/app-compat': 0.x - '@firebase/storage-types@0.8.4': - resolution: {integrity: sha512-BT7cwxJOx8SWwlQfrlC+bD/Sk3Cw+1odCi8UZNFNWTVZoPsBnA5W+mqtZzVnvsdJpXCFGSGQ7R7vOR6dtM/BRA==} + '@firebase/storage-types@0.8.5': + resolution: {integrity: sha512-GEDs5P+rNUfNcS+wxIdOLAHficife2YXtvTJnyi3ssrX11AAtBg+nDUdbYh8vuBzWehVQZPmztGUUnud4L+4yg==} peerDependencies: '@firebase/app-types': 0.x '@firebase/util': 1.x - '@firebase/storage@0.14.4': - resolution: {integrity: sha512-jfzEWZb3Fpsq3FwAB2ifoc8mcSh935qXdDou3TpyjDWa45hhNcZUv8/w28/10njByhfK7snbakKN30nwnzQ3/w==} - engines: {node: '>=20.0.0'} + '@firebase/storage@0.14.6': + resolution: {integrity: sha512-9WjohxpjbfcySjCp8kIbd1ZhtmCQFQLqPtDQ+wmZ5PVXimTDjDsSx/RZjwwK89MjCTXB9fCdmvZkJxplZn4W1A==} + engines: {node: '>=24.12.0'} peerDependencies: '@firebase/app': 0.x - '@firebase/util@1.15.2': - resolution: {integrity: sha512-974pWIZVLDMc5GW5YAsj8y0XxULxIy/sPUy7tsxmWbF93KRIyh9xpuHlh0zDL+shUcf5nHDjFOg9YLiQ763eiA==} + '@firebase/util@1.15.3': + resolution: {integrity: sha512-c/z/gaIlaaLZEuGbE6sLUuJ61tskg1JghvhcNQzW948ASBinbVBBRnZTC4b4yt4LaEtJQkYlyzqLHcutFwEIvA==} engines: {node: '>=20.0.0'} - '@firebase/webchannel-wrapper@1.0.6': - resolution: {integrity: sha512-Vr/Mqu79dMwGRAyGbJ4uN4+BtXB3/mRTdzetD1daWNeG8QaWuzhhbG77GltO5c0yYmYls8i250iX73624GJd7Q==} + '@firebase/webchannel-wrapper@1.0.7': + resolution: {integrity: sha512-phBFwieDLvkZGYN9CE9ZFNEIoBVksprzsnCzQejCmCHtgwCXReeuRpoEGN9C4EbhONztv8NRV1tau6Rb9pONwQ==} - '@google-cloud/cloud-sql-connector@1.11.3': - resolution: {integrity: sha512-dPnHkcabbH5LAksAQl99SJpC0HuG3YZwjcdcOxdz2QW58vOnGdfQ96d/Hpzl22h3eA03rKG0kMpEplC40xWtTQ==} + '@google-cloud/cloud-sql-connector@1.12.1': + resolution: {integrity: sha512-Vilc4J0L+rU+4yjxZpBFn8+bvPoibfcnP4cAAFUsON/GiT0p9qwqLKh7J2q4DaG8WnAgesfn/F2Hb+CkEZn3VA==} engines: {node: '>=22'} '@google-cloud/common@6.1.0': @@ -2549,21 +2852,25 @@ packages: resolution: {integrity: sha512-IJn+8A3QZJfe7FUtWqHVNo3xJs7KFpurCWGWCiCz3oEh+BkRymKZ1QxfAbU2yGMDzTytLGQ2IV6T2r3cuo75/w==} engines: {node: '>=18'} - '@google/genai@2.17.1': - resolution: {integrity: sha512-CdZ3M/titoH81hXXkvOikrOW26bC9IXh9iYT7u+r+5p7wi1LnMEnB0AbJfDeWAkjuneP4oJ299BtCt6twmORWg==} - engines: {node: '>=20.0.0'} + '@google-cloud/sql@0.25.0': + resolution: {integrity: sha512-OKAA98q2M25rQcqcFvbQniix4zTFcbeSyauj+PcPd+6ngn7eXvAUqpuCRVxbIGmA8r5OtE6Ru/oCJ1xwcUR2vA==} + engines: {node: '>=18'} + + '@google/genai@3.1.0': + resolution: {integrity: sha512-fKLeRkpULBDox+b5wmm4UN6PsUw1v5kP+8vJF1aq/wSpiI2sV4AuDtL0uZqu91AH4lc25fZ8sDa6cyCQOFyaXg==} + engines: {node: '>=22.0.0'} peerDependencies: '@modelcontextprotocol/sdk': ^1.25.2 peerDependenciesMeta: '@modelcontextprotocol/sdk': optional: true - '@googleapis/sqladmin@37.0.0': - resolution: {integrity: sha512-LBxSb3V+avoqsTHY/KsSR4/3FGnRfUw8yhGjx6ihTE5w7Y6l1EZkcx62aCCfCNkaigCQDvgiJG2Pq2jxN1sfag==} + '@googleapis/sqladmin@38.1.1': + resolution: {integrity: sha512-piWbtan+dw/cYzGopUsFH131mVx23osOeBAFSM78fgTzgRJjehgA5QnGGZiGYn+zgSNqdnf+7/ZzdHN1XkUAEg==} engines: {node: '>=12.0.0'} - '@grpc/grpc-js@1.14.4': - resolution: {integrity: sha512-k9Dj3DV/itK9D06Y8f190Qgop7/Ui+D0njFV3LHMPwPT75DpXLQohE9Wmz0QElrJnzsjB7KPWiKJbOl7IPDArQ==} + '@grpc/grpc-js@1.14.7': + resolution: {integrity: sha512-W4W/fcBMGRVtG6dW2c7cw2mnpS3hvbBd+oQXjh2iYFTZDk1JJmcNqkM5KSaPubQpamlUUurrlb7G1s9NJeERmQ==} engines: {node: '>=12.10.0'} '@grpc/grpc-js@1.9.16': @@ -2588,14 +2895,14 @@ packages: resolution: {integrity: sha512-kjotm7XJrJ6v+7knhPaRgaT6q8F8K2jiafwYdNHLzmV0uGLuZY43FK6smNSHUPrhq5kX2slCUy+RGG/xGqmIKA==} engines: {node: '>=10.13.0'} - '@harperfast/extended-iterable@1.0.3': - resolution: {integrity: sha512-sSAYhQca3rDWtQUHSAPeO7axFIUJOI6hn1gjRC5APVE1a90tuyT8f5WIgRsFhhWA7htNkju2veB9eWL6YHi/Lw==} + '@harperfast/extended-iterable@1.0.5': + resolution: {integrity: sha512-4ScXlphaKEa49RpHmqwATq9QI9aUTdWVYDlJkzxhsD7ShJP+pHCYLznMO9n/wREY8jPjRZ59wLJY6HM5yB5Gkw==} - '@hono/node-server@2.1.1': - resolution: {integrity: sha512-ELuehkj5VCBdgEw9zs+ivkKwyzzUCSQuE96YmiPvn1ECBoZCczbFXJLeEGMTYjphP6gydh4pHMqEYPVMYUVgQg==} + '@hono/node-server@2.1.6': + resolution: {integrity: sha512-p/KH9MnfNcsm3sR6x4lNgm5j+QN4Et8srKredl9DZfXiyZ1UQ3aQ2YVpFLbqktYN5JI+DB+VZFKM2PqE5hLKjQ==} engines: {node: '>=20'} peerDependencies: - hono: ^4 + hono: ^4 || ^5.0.0-0 '@hutson/parse-repository-url@5.0.0': resolution: {integrity: sha512-e5+YUKENATs1JgYHMzTr2MW/NDcXGfYFAuOQU8gJgF/kEh4EqKgfGrfLI67bMD4tbhZVlkigz/9YYwWcbOFthg==} @@ -2604,17 +2911,21 @@ packages: '@iconify/types@2.0.0': resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} - '@iconify/utils@3.1.4': - resolution: {integrity: sha512-b1S7B1k9ohZ+iNTi2ATxbRYG9fTrJmUT0rc46bvVnNxqNRGW7dyo/vRREwyniI5IRN2RSJHDcm+s3BjWrSAjHw==} + '@iconify/utils@3.1.7': + resolution: {integrity: sha512-JZHlwdID+dy+lTgbYC8NEC4zeugqeYsc6jewvzb4c58kHauJn+X7rNwQjxz5p2qSjqaEeQoLkCIQ9v/H4PK0/w==} '@inquirer/ansi@1.0.2': resolution: {integrity: sha512-S8qNSZiYzFd0wAcyG5AXCvUHC5Sr7xpZ9wZ2py9XR88jUz8wooStVx5M6dRzczbBWjic9NP7+rY0Xi7qqK/aMQ==} engines: {node: '>=18'} - '@inquirer/ansi@2.0.7': - resolution: {integrity: sha512-3eTuUO1vH2cZm2ZKHeQxnOqlTi9EfZDGgIe3BL3I4u+rJHocr9Fz86M4fjYABPvFnQG/gGK551HqDiIcETwU6Q==} + '@inquirer/ansi@2.0.10': + resolution: {integrity: sha512-dwrc+1aqVZpHNkNDswXGtn1typ+Pxpo5FHZRyBw1le7onEJUkPUkYOY1FIFC1LvFMYUqqLuWBwElhAmencL7MQ==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + '@inquirer/checkbox@4.3.2': resolution: {integrity: sha512-VXukHf0RR1doGe6Sm4F0Em7SWYLTHSsbGfJdS9Ja2bX5/D5uwVOEjr07cncLROdBvmnvCATYEWlHqYmXv2IlQA==} engines: {node: '>=18'} @@ -2624,8 +2935,8 @@ packages: '@types/node': optional: true - '@inquirer/checkbox@5.2.1': - resolution: {integrity: sha512-b6xmA/VlTe0ZgDQHDui+Nav470u7u49nRd8/iuhOcQPO9Ch7lGuogydhi2VOmNlZ+zXcM8IcPuNSwQcdJaF/kw==} + '@inquirer/checkbox@5.2.8': + resolution: {integrity: sha512-NY/S1EalQhlonqhwwsarrcnkH7s9ByQuvjWYdk1jB2Gb9EPQJjKkhCTWjM3yQ0UpHaLm1XbIL89b+32G8rhO5w==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2633,9 +2944,9 @@ packages: '@types/node': optional: true - '@inquirer/checkbox@5.2.2': - resolution: {integrity: sha512-Y5/bAScMy5Y+9isCx0SKbyJebMCaXXX5em0kxkj115eZNscgV9srOHrgyfS0e5xAVymIfOh9piYBKDILktsMMg==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2651,8 +2962,8 @@ packages: '@types/node': optional: true - '@inquirer/confirm@6.1.1': - resolution: {integrity: sha512-eb8DBZcz/2qHWQda4rk2JiQk5h9QV/cVHi1yjt0f69WFZMRFn0sJTye3EAP8icut8UDMjQPsaH5KbcOogefrFQ==} + '@inquirer/confirm@6.3.5': + resolution: {integrity: sha512-BJ59BOyURiZiAxdr9AuRu38/k+rV+DcTIM2fUF/c/BXrab6H8zMZTTOl3LgkSJH96Xob2vOJxDiBkHiz32Xx2w==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2660,9 +2971,9 @@ packages: '@types/node': optional: true - '@inquirer/confirm@6.2.0': - resolution: {integrity: sha512-SKXarWrYhtpqOEctf9XGCGy29QjsvJAM0Aq9ZR9z4Ns94OmpqudOly+aSEfNqUf9SwsQaUgY9+Z8hyzG0xX8fw==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2678,8 +2989,8 @@ packages: '@types/node': optional: true - '@inquirer/core@11.2.1': - resolution: {integrity: sha512-Qd6GJT1yVyrZZCfN8W2qKF5ApmqryXRhRKCuip8h01x2w/esJQ2XIYc6f9abMIHgKQdBfFTSOdbHRLAhuM09UA==} + '@inquirer/core@12.0.6': + resolution: {integrity: sha512-5yxn2LsJ8Tu4ei2a+yNkmFRhM/cb+JMEsEs/AW6CCOnBnpMy4IjYiPMFyHtYq8weOmlTyqqCx40y0DsD7OsEPw==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2687,9 +2998,9 @@ packages: '@types/node': optional: true - '@inquirer/core@12.0.0': - resolution: {integrity: sha512-+nnvFEXIB08CZNVXpvW3B+zHW96QXvGUjNKJ8NJIPqAZi5Kd4WhYt2S3C234ReepG1qw2HOlEUbjYVHBowXObA==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2705,8 +3016,8 @@ packages: '@types/node': optional: true - '@inquirer/editor@5.2.2': - resolution: {integrity: sha512-ZRVd/oD+sYsUd5zVm0NflqEzlqfYCyHNsqkHl2oWXEUHs12tCbcSFi+wVFEvD8+LGRaMUsVrE7qeo6lSG/S1Vg==} + '@inquirer/editor@5.3.6': + resolution: {integrity: sha512-Z5SOeRC5VNkINfKN4rY8BSaYKb3GYi8iSEqZZRqogsE2GhBBToQ0Xw25SbI+4bcatLzU009mZ5d9EuJNiJuUCg==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2714,9 +3025,9 @@ packages: '@types/node': optional: true - '@inquirer/editor@5.3.0': - resolution: {integrity: sha512-nnsP/IdJ8s83q7ZuObmgn12QM+uLCkab9E0Oordojbn62WUg1c+v9Ou/F/057pgh0ppX0W+Hj5bO/Dp5hsxQtA==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2732,8 +3043,8 @@ packages: '@types/node': optional: true - '@inquirer/expand@5.1.1': - resolution: {integrity: sha512-YmQpenjbFSHAK3sOd44puHh3V1KXXr+JiNpUztoSQ4drLh2rTVzTap/YtlAVu/5xavifIlBfNEzJ/neZJ1a/1g==} + '@inquirer/expand@5.1.8': + resolution: {integrity: sha512-dMEnTkpLqzM/sbILwL7QJgx9iX5hoEM8+bh6shgwd9mYJamdOnth7y2mMaFd08Glj9AXEFKllWcGYyBqnJsHrA==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2741,9 +3052,9 @@ packages: '@types/node': optional: true - '@inquirer/expand@5.1.2': - resolution: {integrity: sha512-OWIH1IyyWqEKIyqC9Xy+Bnga7NkGMovFdo4atYZMUOTRqf6rO2WCv9E/1MyzvOErDBCxs+9UFliRUDc50xs/jw==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2759,8 +3070,8 @@ packages: '@types/node': optional: true - '@inquirer/external-editor@3.0.3': - resolution: {integrity: sha512-6thf5I8q7lZwzGLAxPaaGEREEkZ3nyePPDQ1oyobblxmEE8mqTLguScP7pDjUTAibiyb4hfXl+qjUEJ+di/aNA==} + '@inquirer/external-editor@3.0.7': + resolution: {integrity: sha512-enNqTJpojgISCG+a5acjnfJ02hcRTFUBVm8uXiCY40PRPZtSzFnNLskOTU+kDUUEODYma90syxuea1rRtUFh0Q==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2768,9 +3079,9 @@ packages: '@types/node': optional: true - '@inquirer/external-editor@3.0.4': - resolution: {integrity: sha512-tZbbaK2ovq6vlrRBNQvjrypmrED/p5x2ncIHQ79cD55tei3dD96v5glMMA+6tiq7K104i/25DVYKWVPJuV6ptA==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2781,13 +3092,13 @@ packages: resolution: {integrity: sha512-t2IEY+unGHOzAaVM5Xx6DEWKeXlDDcNPeDyUpsRc6CUhBfU3VQOEl+Vssh7VNp1dR8MdUJBWhuObjXCsVpjN5g==} engines: {node: '>=18'} - '@inquirer/figures@2.0.7': - resolution: {integrity: sha512-aJ8TBPOGB6f/2qziPfElISTCEd5XOYTFckA2SGjhNmiKzfK/u4ot3v0DUzGVdUnKjN10EqnnEPck36BkyfLnJw==} + '@inquirer/figures@2.0.10': + resolution: {integrity: sha512-51elrUJV3jZpvD0ygz8+U10Kc6+Lzqln+/tYmnbhy6jo5oXpE6hMCcv+OTBC0enwJXsb3JIuT3VtEinRNCSK2A==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} - '@inquirer/figures@2.0.8': - resolution: {integrity: sha512-tApbon79GM9ry56ja/Ud3SY2CL4TQsao9fIwDQbgTeNY55025GdMzQ2+UdegV/lx51VNGUB59M0v0nMpybYY4Q==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} '@inquirer/input@4.3.1': resolution: {integrity: sha512-kN0pAM4yPrLjJ1XJBjDxyfDduXOuQHrBB8aLDMueuwUGn+vNpF7Gq7TvyVxx8u4SHlFFj4trmj+a2cbpG4Jn1g==} @@ -2798,8 +3109,8 @@ packages: '@types/node': optional: true - '@inquirer/input@5.1.2': - resolution: {integrity: sha512-9K/DDBSQpOyZSkt6sOVP9Vo0TR7atX2kuILsUu0x3wVcVbe97lJwIJKMLdMw25tDYuXl/qp6erT0Xs1rfmcfZg==} + '@inquirer/input@5.1.9': + resolution: {integrity: sha512-2Vd5T7lTxfgJMpAd3aOu6bQpbUnCU7tBgvTQIZkP/7juJzmRmTM2t5XfOCuirFduWLTSJI/WZp32Cq1E01TVeg==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2807,9 +3118,9 @@ packages: '@types/node': optional: true - '@inquirer/input@5.1.3': - resolution: {integrity: sha512-F/BZHtyEzP+HO+IGVd4AjBRgvX/ywm42bx8S0+dENk2YclzE9tJ3X/15THwtT6ehApmKvdYDMsVTuyyDod0gOQ==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2825,8 +3136,8 @@ packages: '@types/node': optional: true - '@inquirer/number@4.1.1': - resolution: {integrity: sha512-XF4IXAbPnGPgw0wsbC/i2tPcyfdZgDpUlhsqU0SfT4IRIGWha6Xm9VRgN5yYxJq+jnyXlfXI/nQ3ulfk0iEICA==} + '@inquirer/number@4.2.6': + resolution: {integrity: sha512-22LnGGCDm1M/pKXxxF8n6ppr/1IztdsxqeqeBRUMTTNnJTkjIBiAkewiDM4u/gjtazj/FvZS+nk9AbO/vEcBFQ==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2834,9 +3145,9 @@ packages: '@types/node': optional: true - '@inquirer/number@4.2.0': - resolution: {integrity: sha512-ew+fSDijsQ/WhD4TV3XLb+if400cDuzTzHfGR8sTNBXkK9CYDWoGE8fhaO8GbT312pNv1AJEOsDxy/z/HVettA==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2852,8 +3163,8 @@ packages: '@types/node': optional: true - '@inquirer/password@5.1.1': - resolution: {integrity: sha512-3XBfF7DAsp5qeDsvN5Rd1HmbNokVvEQoUM0QLrRcybC9nX96w3Pbmu7qUsb3IT3J3jBvs2+mTXaKHOUsgHMLzg==} + '@inquirer/password@5.2.5': + resolution: {integrity: sha512-0v0wLQA4uhWbybmdH6oPl7ooxCiymNylkvi2gCSc+mA5ZQB6QoJLVhoHq12T82lhozpp9fpMJnJkC1nJrU/A+A==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2861,9 +3172,9 @@ packages: '@types/node': optional: true - '@inquirer/password@5.1.2': - resolution: {integrity: sha512-nSdufycW8xynEVssFkNQEYIzTySilog0UlfOVRwh3pXzPSk4frXUT2jZWjHnKae6RU9PaoF9wfy1pGwewQuqGw==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2879,8 +3190,8 @@ packages: '@types/node': optional: true - '@inquirer/prompts@8.5.2': - resolution: {integrity: sha512-IYR/3C/paEVVQYQvdDlFZVjRCJVYHHON0XXMH91KO9GSxs0TdKYWlUdvfQl2EfAHDxUaN3IBffkE/BDTh5nJ6g==} + '@inquirer/prompts@8.7.5': + resolution: {integrity: sha512-l/IWwC+QhOyXgxkZloOh+n5quGzc1m5ZawyzBmoizCZaxbJeLRdS3pStoqg/JVInJRXaG5aHMhjK6H6oYiBC9A==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2888,9 +3199,9 @@ packages: '@types/node': optional: true - '@inquirer/prompts@8.6.0': - resolution: {integrity: sha512-WgBVDRy3IQ4v9XMCpQ1YDGpso2PcMUxYJzZdH4Nt4t0eoXhEPmOCh5iZbXbR4GTbdUB9VPWBbJB12rkjbaGDCw==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/prompts@8.8.0': + resolution: {integrity: sha512-yYVT2Eo3mafb9tnU2Mr3+wh5wLCWyspExqVoPSMCIfBIn3ZUTE4IDfbCMbMgXaOH0tH+JZEhOtfczQhDzOjIGg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2906,8 +3217,8 @@ packages: '@types/node': optional: true - '@inquirer/rawlist@5.3.1': - resolution: {integrity: sha512-QqdTqQddL3qPX/PPrjobpsO25NZ4dWXgTLenrR445L2ptLEYE6Z+PD5c5CNDJNx4ugRgELAIpSIJxZaO2jJ2Og==} + '@inquirer/rawlist@5.3.8': + resolution: {integrity: sha512-h+6Y4pPvYvuRbksn1kIBdD9tCYD+E468W5sIcVfLmoLP5IasnY0r33N+r+46ej/P8b2PCREjyKR+MnnfPGdTzg==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2915,9 +3226,9 @@ packages: '@types/node': optional: true - '@inquirer/rawlist@5.3.2': - resolution: {integrity: sha512-oPSKrYK1X1bMkjXDzIKHUkJp195LFSfgbnVtXnjSKGFjrCbS6I+wyvfAZTwKE9BSt3HwWgfD7JfsXALBgCogzQ==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2933,8 +3244,8 @@ packages: '@types/node': optional: true - '@inquirer/search@4.2.1': - resolution: {integrity: sha512-xJj8QWKRSrfKoBIITLZK61dD3zwo0Rz11fgDImku30/Oe81zMdIdGgrLY2h6RkJ+KZ/GhNYIRMKnH/62qBTA5g==} + '@inquirer/search@4.3.6': + resolution: {integrity: sha512-JZj9ttkIvuaFQIc2oxsyqC1ad05WL02ku6W/INVKTCzNaVq1KkhP3AfTRC0m7OWlKZyw+EWwPBFZfYiG9jF6Yw==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2942,9 +3253,9 @@ packages: '@types/node': optional: true - '@inquirer/search@4.3.0': - resolution: {integrity: sha512-HFxXE5w727ctSUcAwrDquftJGjMgu36OeV5SHEXMlr2j/ahzmRX9xSEeVolV8tzYnTf45cg6vGkdMMRdm3RPhQ==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2960,8 +3271,8 @@ packages: '@types/node': optional: true - '@inquirer/select@5.2.1': - resolution: {integrity: sha512-FlDndEUww8m7BfukO2nJa25vhD+H5jxxCv4oGioKqzyWz3nPHhhw4LKdYRSlXuAx7DsdWia7iyaBPKKS95Evfw==} + '@inquirer/select@5.2.8': + resolution: {integrity: sha512-BklkkAAOpjdCfuQw5fVGcDuhKxA7T1iBpn6b2JUvDDdkIsO3Ftlg+WnWUCVpkUBFagL2o036OFW+xL4lC9wIPw==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2969,9 +3280,9 @@ packages: '@types/node': optional: true - '@inquirer/select@5.2.2': - resolution: {integrity: sha512-RkI8dRHWt+bh04oLixvF1kFzKC7e5rqJoHKkzcqSHATebBXFC6GmrT8ddbVkgSzLV0HnHs2cPFuBINr8otij8Q==} - engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: '@types/node': '>=18' peerDependenciesMeta: @@ -2987,8 +3298,8 @@ packages: '@types/node': optional: true - '@inquirer/type@4.0.7': - resolution: {integrity: sha512-t28inv14nMQ1PhKpsJPY+kEs/c00qzeCOS2gTNRyTjG5d6qsVA2fItxW4hkvGZ5lvanGLdtCzVIx5dwdRpN1+g==} + '@inquirer/type@4.2.1': + resolution: {integrity: sha512-lDkPsnv5M5CcYB2T1qTc3dobNTPkVr4DU3Ic2Q6SW8/qVRHgvzdRdmVZ6YqG9Ag1aJTeMsLU0s0WPRh3CZWDQQ==} engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} peerDependencies: '@types/node': '>=18' @@ -2996,6 +3307,15 @@ packages: '@types/node': optional: true + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} engines: {node: '>=12'} @@ -3008,6 +3328,9 @@ packages: resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} engines: {node: '>=18.0.0'} + '@isaacs/nonrecursive-glob-match@1.1.0': + resolution: {integrity: sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==} + '@istanbuljs/load-nyc-config@1.1.0': resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} engines: {node: '>=8'} @@ -3019,12 +3342,12 @@ packages: '@jasminejs/reporters@1.1.0': resolution: {integrity: sha512-JIrlfaf9c6m0+GtBAgZdcFB6RIRbFBbXxZDZ0WOewq4cLIEcVKEe0RgI1FA77M39FNzeSMTAm+LK/kcQVIkfGQ==} - '@jest/console@30.4.1': - resolution: {integrity: sha512-v3bhyxUh9Hgmo5p6hAOXe14/R3ZxZDOsvHleh4B07z3m/x4/ngPUXEm9XwK4sF4u+f+P2ORb0Ge+MgpaqRMVDA==} + '@jest/console@30.5.2': + resolution: {integrity: sha512-e8sQC4pCMHPBrPX7Hk8TJr+DM5dkUnImSTNag8SEWFAFAF6xIz4AJvCKapnrdHnZxep4bxw4PhG+ZbimYBMyKw==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/core@30.4.2': - resolution: {integrity: sha512-TZJA6cPJUFxoWhxaLo8t0VX/MZX2wPWr0uIDvLSHIvN4gu9h02vSzqI2kBADG1ExqQlC+cY09xKMSreivvrChQ==} + '@jest/core@30.5.2': + resolution: {integrity: sha512-/jqvFWoJF7LV1a6AUpYMbMm+2yIYsHJfR474H0SCzr9k8tnO/jl9wRg6zSG6lxgf6EozNlCG4amFzWsbZSvvZA==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 @@ -3032,50 +3355,51 @@ packages: node-notifier: optional: true - '@jest/diff-sequences@30.4.0': - resolution: {integrity: sha512-zOpzlfUs45l6u7jm39qr87JCHUDsaeCtvL+kQe/Vn9jSnRB4/5IPXISm0h9I1vZW/o00Kn4UTJ2MOlhnUGwv3g==} + '@jest/diff-sequences@30.5.0': + resolution: {integrity: sha512-OsqBjHXCn8cadasoAZBP6nWYvMsRhpMzGXTpxJ5aO04NlbdhIz+FVe3q49l0AwVhsz/cEmIpBes6gAFl1/dWQg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/environment-jsdom-abstract@30.4.1': - resolution: {integrity: sha512-dSlKrqug3siYNHVnjwIldShY12wAH3spwRltO/+8VOjg0X+xEq7vOs3DbBs4LRKsu7OH+NUb9kuZUNBF9Ho3TA==} + '@jest/environment-jsdom-abstract@30.5.2': + resolution: {integrity: sha512-8/P+8hKv7L4mhFoB6gpYLj/fuzXk8PWrde7TDHh8tJz5pE1ktlMbg0y6hDY/V8MfAnispFlPl/vPifowLy3JGQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} peerDependencies: + '@types/jsdom': '*' canvas: ^3.0.0 jsdom: '*' peerDependenciesMeta: canvas: optional: true - '@jest/environment@30.4.1': - resolution: {integrity: sha512-AK9yNRqgKxiabqMoe4oW+3/TSSeV8vkdC7BGaxZdU0AFXfOpofTLqdru2GXKZghP3sdgwE9XXpnVwfZ8JnFV4w==} + '@jest/environment@30.5.2': + resolution: {integrity: sha512-nwFPOUMbmsjNNRCpnJpB9HbSZu4C07wDDds++5j+j1MezzPLxMPDdbdUVjr2o4RULDOValnDd70taPFI1EtxAg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/expect-utils@30.4.1': - resolution: {integrity: sha512-ZBn5CglH8fBsQsvs4VWNzD4aWfUYks+IdOOQU3MEK71ol/BcVm+P+rtb1KpiFBpSWSCE27uOahyyf1vfqOVbcQ==} + '@jest/expect-utils@30.5.2': + resolution: {integrity: sha512-d/HOLSrJUlBIl6n3LzOa7cjW3xdePm5H5gQw2lixZ/0h157l9sw3mLblzFqnPcTbhDzhRQdBOX3A3KcG73nm5Q==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/expect@30.4.1': - resolution: {integrity: sha512-ginrj6TMgh2GshLUGCjO94Ptx9HhdZA/I6A9iUfyeLKFtdAjnKzHDgzgP9HYQgbxM1lbXScQ2eUBz2lGeVDPWA==} + '@jest/expect@30.5.2': + resolution: {integrity: sha512-2E+1Pg6jJxbRjLNLpciC71iri/3qsKJL222/aXJEFwC0VdUSvfS+JZQQLEVjUYYc8t8pQu2MGE3cF2+bNTYRsg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/fake-timers@30.4.1': - resolution: {integrity: sha512-iW5umdmfPeWzehrVhugFQZqCchSCud5S1l2YT0O9ZhjRR0ExclANDZkiSBwzqtnlOn0J1JXvO+HZ6rkuyOVOgQ==} + '@jest/fake-timers@30.5.2': + resolution: {integrity: sha512-GKk0h0tKT5SpDPxDhPg3r9mm5s8/YCBzVNMOGdRiQXwUiMsjU10mVPlMaQstH6/cu50vOb8N9oQUMETHuwwxKw==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/get-type@30.1.0': - resolution: {integrity: sha512-eMbZE2hUnx1WV0pmURZY9XoXPkUYjpc55mb0CrhtdWLtzMQPFvu/rZkTLZFTsdaVQa+Tr4eWAteqcUzoawq/uA==} + '@jest/get-type@30.5.0': + resolution: {integrity: sha512-9/2VUPitAjmBzbvDvqrxmvB7BzWsBW0WmkkojX1ODuxX1NLGxx9gfaZpHB0z8DtJ9uhGNmZG/VXBhf8uO0OV8Q==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/globals@30.4.1': - resolution: {integrity: sha512-ZbuY4cmXC8DkxYjfvT2DbcHWL2T6vmsMhXCDcmTB2T0y0gaezBI77ufq5ZAIdcRkYZ7NEQEDg1xFeKbxUJ5v5Q==} + '@jest/globals@30.5.2': + resolution: {integrity: sha512-62zfS+dL+M5aTNHXCNLyqD+j4oqxTIzDYrZbpqMP8Yn+gvlAGyzC6BSPNb1ZmFOakV1RtFYX/O3FCQXSWmQdgg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/pattern@30.4.0': - resolution: {integrity: sha512-RAWn3+f9u8BsHijKJ71uHcFp6vmyEt6VvoWXkl6hKF3qVIuWNmudVjg12DlBPGup/frIl5UcUlH5HfEuvHpEXg==} + '@jest/pattern@30.5.0': + resolution: {integrity: sha512-HdNQYSdRTEBNrginaqzQtTjG0HRMfrra/z6Ok7uL3S87vSlarIVohEsJsSj5edu3MiHoHjAkvPROz5ZjoKai+w==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/reporters@30.4.1': - resolution: {integrity: sha512-/SnkPCzEQpUaBH81kjdEdDdo2WZl5hxw+BmLDGWjRkm8o7XlhjwsU36cqwe5PGBE5WYpBvDzRSdXx9rbGuJtNA==} + '@jest/reporters@30.5.2': + resolution: {integrity: sha512-ev6E9iG73twQcfAfoTnviuYkr3yOrYbzAtMFCimv2fxHXPIp9PBt2u1wNMt0aYWgl8FPwIcS8oqRJg6alnht4Q==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} peerDependencies: node-notifier: ^8.0.1 || ^9.0.0 || ^10.0.0 @@ -3083,37 +3407,40 @@ packages: node-notifier: optional: true - '@jest/schemas@30.4.1': - resolution: {integrity: sha512-i6b4qw5qnP8c5FEeBJg/uZQ4ddrkN6Ca8qISJh0pr7a5hfn3h3v5x60BEbOC7OYAGZNMs1LfFLwnW2CuK8F57Q==} + '@jest/schemas@30.5.0': + resolution: {integrity: sha512-/hunigyNpc4RCjC0VaW3f5RCUZVM2+WQ65qP7z083Gmvac7or2LI50XVNOtE4YPgBpV0yxYiAgorAPGniCoJmg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/snapshot-utils@30.4.1': - resolution: {integrity: sha512-ObY4ljvQ95mt6iwKtVLetR/4yXiAgl3H4nJxhztr0MTjrN97TwDYrnCp/kF60Ec9HdhkWTHSu+Hg05aXfngpOA==} + '@jest/snapshot-utils@30.5.1': + resolution: {integrity: sha512-V3wnxNtiVmw5PPVg433Cn3VdXnsOeu/ofLw3KC04Bn2y1wIlU5kozXQn48rhrgj/02LrCVtntTEF1yBha0XSUw==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/source-map@30.0.1': - resolution: {integrity: sha512-MIRWMUUR3sdbP36oyNyhbThLHyJ2eEDClPCiHVbrYAe5g3CHRArIVpBw7cdSB5fr+ofSfIb2Tnsw8iEHL0PYQg==} + '@jest/source-map@30.5.2': + resolution: {integrity: sha512-c5CehvkbfHX6yyNg7bMn2ylqlp9AHXuZ/3hPH/Lh5bxD/vefd/lV9HBjMqXef9yQNqkdwyZvkLSVSwB38hy8Qw==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/test-result@30.4.1': - resolution: {integrity: sha512-/ZG7pgEiOmmWkN9TplKbOu4id2N5lh7FHwRwlkgBVAzGdRH+OkkQ8wX/kIxg4zmd3ZQvAL1RwL2yWsvNYYECTw==} + '@jest/test-result@30.5.2': + resolution: {integrity: sha512-eO6YU5rsLfs60ne694e0IAmRgeBnoA8mu0nlxXDbl/1j5km0o2vO9/VbbUIKIH+WRKKEI+ELgwraRGn2Lhep8g==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/test-sequencer@30.4.1': - resolution: {integrity: sha512-PeYE+4td5rKjoRPxztObrXU+H8hsjZfxKMXOcmrr34JerSyB/ROOxbbicz8B7A5j9R9VayDnVPvBmedqCsFCdw==} + '@jest/test-sequencer@30.5.2': + resolution: {integrity: sha512-bmij8jZyYAC47ExT2GeP7PcrlwSNS+Bp3KeRuBH88gpcxqDv6fljN8PemS4J/lLZ79xb6mpaennQTTq0zUAVVg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/transform@30.4.1': - resolution: {integrity: sha512-Wz0LyktlTvRefoymh+n64hQ84KNXsRGcwdoZ8CSa0Ea+fgYcHZlnk+hDP7v2MS7il2bQ5uTEIxf4/NNfhMN4KQ==} + '@jest/transform@30.5.2': + resolution: {integrity: sha512-LBGwmaE886C41jDZ65eqR1YbXM7642MK3ZhTowZd5+xDlrDLuf4ePuDdDmVSvcr8NTVJ3MqxLkMbUCzuigUaoQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - '@jest/types@30.4.1': - resolution: {integrity: sha512-f1x/vJXIfjOlEmejYpbkbgw1gOqpPECwMvMEtBqe47j7H2Hg8h8w3o3ikhSXq3MI15kg+oQ0exWO0uCtTNJLoQ==} + '@jest/types@30.5.1': + resolution: {integrity: sha512-LvVYn83nnXPl+Rg98nvcFgjx6nRMTArhSn6RAX/w3ELn54S8A42TYZvsCMdGUqTM8S0wyXbtlQdU6Hi6dykj9g==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + '@jridgewell/gen-mapping@0.4.0-beta.0': + resolution: {integrity: sha512-JdGNkbE4GlNPYQhM0L95fBQr7ctLZJ276QXQLTad4t1oSdnnCI3fDq9DW3BqYAWv8Wc3+HS+4Gsii1oPMCfz1w==} + '@jridgewell/remapping@2.3.5': resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} @@ -3121,8 +3448,8 @@ packages: resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} - '@jridgewell/sourcemap-codec@1.5.5': - resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} @@ -3136,143 +3463,209 @@ packages: '@jsdevtools/ono@7.1.3': resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==} - '@lezer/common@1.5.2': - resolution: {integrity: sha512-sxQE460fPZyU3sdc8lafxiPwJHBzZRy/udNFynGQky1SePYBdhkBl1kOagA9uT3pxR8K09bOrmTUqA9wb/PjSQ==} + '@lezer/common@1.5.5': + resolution: {integrity: sha512-Pw7PVCndruF1pb3ebCxpSVpkMHSDjwRCLcTRw+RizUKco5QbWylwq2g4lnG/RYN7yTTQDXE9F77MwtkAyphrjg==} - '@lezer/css@1.3.6': - resolution: {integrity: sha512-YJE78Wcg+zX8f10hiHWQ4Az48Qr/c13eId0VtRQYLBpxHDmDeSrXIlkbl+fJGW42rWC/uoUco9mhBZeVWP/A1g==} + '@lezer/css@1.3.9': + resolution: {integrity: sha512-ZmzgvTOBdJWGIsY/ItAfN7UW8DV802oZG+jeG6E508SwEzz5YhuAajptpWPICvIyqYAD2+VjMdOS40GgGkyEOQ==} - '@lezer/highlight@1.2.3': - resolution: {integrity: sha512-qXdH7UqTvGfdVBINrgKhDsVTJTxactNNxLk7+UMwZhU13lMHaOBlJe9Vqp907ya56Y3+ed2tlqzys7jDkTmW0g==} + '@lezer/highlight@1.2.5': + resolution: {integrity: sha512-O1GMVKgtf5YspFaRzpmqkVgMtIk2HG9uMAbH6wdAIdNh3TVzCsch/+cRi+6l2//UGDKe6NB9BW3cvuR5ezMQ0w==} '@lezer/html@1.3.13': resolution: {integrity: sha512-oI7n6NJml729m7pjm9lvLvmXbdoMoi2f+1pwSDJkl9d68zGr7a9Btz8NdHTGQZtW2DA25ybeuv/SyDb9D5tseg==} - '@lezer/javascript@1.5.4': - resolution: {integrity: sha512-vvYx3MhWqeZtGPwDStM2dwgljd5smolYD2lR2UyFcHfxbBQebqx8yjmFmxtJ/E6nN6u1D9srOiVWm3Rb4tmcUA==} + '@lezer/javascript@1.5.6': + resolution: {integrity: sha512-sEvOqpl4vJQca0NugSQK02vQPbc5KrvoojnYGoqqFgFO0MtcYhwGiHKVEB+LuXYJnfyXo4QPA8ztbrEa4Fw5NA==} - '@lezer/lr@1.4.10': - resolution: {integrity: sha512-rnCpTIBafOx4mRp43xOxDJbFipJm/c0cia/V5TiGlhmMa+wsSdoGmUN3w5Bqrks/09Q/D4tNAmWaT8p6NRi77A==} + '@lezer/lr@1.4.12': + resolution: {integrity: sha512-On9HU4oMMiHPMkQDgoTnGahjgG5n/MkN38CgG77sMraKLL+3JBbeQNi1FcCXV9QRqwF9/BUXP3caHyJC1fBOTQ==} '@lezer/sass@1.1.0': resolution: {integrity: sha512-3mMGdCTUZ/84ArHOuXWQr37pnf7f+Nw9ycPUeKX+wu19b7pSMcZGLbaXwvD2APMBDOGxPmpK/O6S1v1EvLoqgQ==} - '@listr2/prompt-adapter-inquirer@4.2.5': - resolution: {integrity: sha512-pYGy9dTdTwXdasPgyohkr0HoQ4FrkAzFnsUZl/gcnadDArbpZ8e+fgr+F9WBdNEl2y00mb9bCM4WgmoBkZJ27A==} + '@listr2/prompt-adapter-inquirer@4.3.4': + resolution: {integrity: sha512-YUVWxHCRhhWkViokqbhCZDNrQ8aZ9q5Rh7XfZXWJGb60AtNvE17zceQl3f8MnGZyLonQdxo4vyWlQn/LVZuNRg==} engines: {node: '>=22.13.0'} peerDependencies: '@inquirer/prompts': '>= 3 < 9' - listr2: 11.0.0 + listr2: ^11.0.0 - '@lmdb/lmdb-darwin-arm64@3.5.6': - resolution: {integrity: sha512-mY5FG4TjPAkY4P0w+OhHaUka5mDh2TX2WKYIwuKzJ1zeW3VvRgxdam/lGJTquI+bthTx5CSHDW+BAQCnNAzkEA==} + '@lmdb/lmdb-darwin-arm64@3.5.9': + resolution: {integrity: sha512-7HlQ5rJEQca3zSyng5H80Fo97GngLUvJ2yyMbK+qpJAeTxA2jNSiu6D3jx9z5i2OwXDAEteGp0nk/nPqxd0W+g==} cpu: [arm64] os: [darwin] - '@lmdb/lmdb-darwin-x64@3.5.6': - resolution: {integrity: sha512-foa+pwitysO8k+xhs7psBFfTKnVgR69NlZRRTHaFVDqphh7AdGpLeyRzKw/ofatr/sN6TiHRRW6mmop0ZrrppQ==} + '@lmdb/lmdb-darwin-x64@3.5.9': + resolution: {integrity: sha512-gJdFwr0R3N3uvaIFo+o3MeUT6XaSYu25DNdlzNfDLUhVfAAER6Fjp0XH7ZfZL0J3pxoPSDjrmcieKMxm4Sj4Sg==} cpu: [x64] os: [darwin] - '@lmdb/lmdb-linux-arm64@3.5.6': - resolution: {integrity: sha512-HmiyFFdJa38s1heCMSooSPaBSFTHJ3C+ERPp28xAPlDX1YiALJVOgbry065nXd8Y7KISWjnw05zpG1RX8IfftA==} + '@lmdb/lmdb-linux-arm64@3.5.9': + resolution: {integrity: sha512-VShMWLawShzTBjXfOI6aE5LcTadIU6rUONPTSdJxTHIKqLJJEPGzafHylblWruaLvd/M34mHDaRUtdy7yqW7Uw==} cpu: [arm64] os: [linux] - '@lmdb/lmdb-linux-arm@3.5.6': - resolution: {integrity: sha512-QR4YRyR5h5Z8eGXrNQjiyo2NNDfqi3tCc9dQG5Is1blCt+qWw1ZoBWhlWAr5d+jshkifMIJjVHzHGKbkKzF8Tw==} + '@lmdb/lmdb-linux-arm@3.5.9': + resolution: {integrity: sha512-hlA0lA3kzUTwdPuIXz93c/dlt5VI7/XhWnTQ8gMfiFv7s2c0HJijaokqdiwwpptrKDEG71muxdAoOHb9Kww7Rg==} cpu: [arm] os: [linux] - '@lmdb/lmdb-linux-x64@3.5.6': - resolution: {integrity: sha512-ADzCuCF2cTNiX9kDScqcz1fjnAkxPpQNneV3KFTdV3wWtVlI2sTGzySoMTgDpinkMMFj1NTJlxA6XR8fwc4hlA==} + '@lmdb/lmdb-linux-x64@3.5.9': + resolution: {integrity: sha512-joXo6JZ4LK1+DDDG9QCybBbTVzgNMAqzCcYFr5Jvkj4K8KeGQ9C1DZTyDzm6xAIT+WE+ww+uf3aEgAi9zGkCcw==} cpu: [x64] os: [linux] - '@lmdb/lmdb-win32-arm64@3.5.6': - resolution: {integrity: sha512-J7A9aEQsQiv0TYtBGL7NDIPp2lOS8nnl+zm4sWZm1xlsTTaQ4PgD096Adzdrk27rw3UxCkDXdCUa4ax41oztBQ==} + '@lmdb/lmdb-win32-arm64@3.5.9': + resolution: {integrity: sha512-XjHtT/OLrBhJa7lySlLRSV0hvWnsZn/Y2kCLqN2u/Ho7uLuUQWOWsKrOomHHRV/jJwKHEqPiAur8zBLvcko4Aw==} cpu: [arm64] os: [win32] - '@lmdb/lmdb-win32-x64@3.5.6': - resolution: {integrity: sha512-1g7G0knRX2iV/voDu54yxrGqw5Dk0w2oIYb7dgJq8IkOi+m7wbD8Q3QpPFjh0C01G58S88dqGn03len6UPCXsg==} + '@lmdb/lmdb-win32-x64@3.5.9': + resolution: {integrity: sha512-UP0dMDLQ9z8V7VcasGsd9zvHdwwsYT2tQ7u37h5sGzoyLB+S3UHPEzj9lssH7JqF/U8kB3IwJGkYwLTOkoEzNw==} cpu: [x64] os: [win32] '@marijn/find-cluster-break@1.0.4': resolution: {integrity: sha512-Wy0V7+SGUjnF9/TkiM1hKVDPj7jKXduPNboMVtHTA8dySMURWqfg/JZ9E2Sq8JgSJmkl7k7Qe9FLeMSrSraWmQ==} - '@mcp-b/webmcp-polyfill@4.0.0': - resolution: {integrity: sha512-7M6WS3IcxaIEhidbS9N7wrrGjtJf474Vi4Fn1hGkFkmYFT5EoFw/kS/4CSdUR/KmlInO1kyluHRY6t3avMQfFw==} - engines: {node: '>=18'} - - '@mcp-b/webmcp-types@4.0.0': - resolution: {integrity: sha512-CUBBmiut1UBsiD3FAF6xrLKeKAuJkzd6/BlL1C/uo8sVpwY42NW4mls9rLcTxmLF/8Cj5/ZOwJiLzXl/T3GIQg==} - - '@mermaid-js/parser@1.2.0': - resolution: {integrity: sha512-oYPyv8A4As1yH5Bx+04iQEQxXuIQDe0GKCNSRgao6z8AM9jixXIfP0vsppRLvGf+nKIOb9/LdpWA4YuJiVvESA==} - - '@mermaid-js/parser@1.2.1': - resolution: {integrity: sha512-n12NohV3mrUyUL2o93IgG/ifeW9FTyeJn3zDxkhwa8MJ9Fxg3HQMlA3RiGmD/3UnJvheztkjjQAjA2T4LmUcpw==} + '@mermaid-js/parser@2.0.1': + resolution: {integrity: sha512-j37dj/h6p6pots1L7pLPPNuABEEu9WP4OYg9pW1g+nYG331j0+3canE9OagtYdytYvdSAMG+2fKU5cxep6LgjA==} + engines: {node: '>=22.12.0'} - '@modelcontextprotocol/core@2.0.0': - resolution: {integrity: sha512-pJCEwGG7Lfr/+PQp9ZTwKXNeO5wzbfKL7H3MYpCorM4oFBoQrdjnBgEoqG+RjhsvS1FKrDbKux+M1HhlnGWqcA==} + '@modelcontextprotocol/core@2.4.0': + resolution: {integrity: sha512-z8QBKqdfXLPzkLQuG4xp8hrVEMm1PZ1IgxMN2sMbJiFiAKOWXnAzogXn2W4aqIBlP1ea6U5yiqVquvUNM1Cj6Q==} engines: {node: '>=20'} - '@modelcontextprotocol/sdk@1.30.0': - resolution: {integrity: sha512-xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA==} + '@modelcontextprotocol/sdk@1.32.2': + resolution: {integrity: sha512-SWsVtH/0vULSQStoZ6xxH2K09Li8fXYTMC64ZeogCdpZ3XSi1eCPOByV1OpuJxuI3OcmHhosDWYyii07tpPsLw==} engines: {node: '>=18'} peerDependencies: '@cfworker/json-schema': ^4.1.1 + zod: ^3.25 || ^4.0 peerDependenciesMeta: '@cfworker/json-schema': optional: true - '@modelcontextprotocol/server@2.0.0': - resolution: {integrity: sha512-YhHWdHfpFMQfd0prsEnxKeS3Qz3ytIGmsS0sth4KDjnacIT7hxk6hXHkJ9KysxlkvTM+WZAtQbbcUhdoP4Hvtw==} + '@modelcontextprotocol/server@2.4.0': + resolution: {integrity: sha512-rgR9yxSaAJ+bcsi/XroT/S2AfPiIWloXAnrdfYSCms9ivVju0ishu/wW0J21Ho6+ZOR1r7RyeRbjiRuF87ix5Q==} engines: {node: '>=20'} - '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.4': - resolution: {integrity: sha512-LCkGo6JDfaBhgST7UpPWgNgLINpcpabaHfyz5OBx75nUYxBsaEPxjnyNjWpeb/xBup/682QnBfRBy2/LvPutZQ==} + '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.7': + resolution: {integrity: sha512-2zPHLn+MuGJ6GP/5jDrwa9Jy0CI+D3Ibpvopf5SFfmc1G9gdofR4uB7YrJAAp4vodn/7iDOciyv8bgkRPLw7cA==} cpu: [arm64] os: [darwin] - '@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.4': - resolution: {integrity: sha512-zExlW9zUJKZH/tOtVMttwjKa4Xm/3KcNjnE3dPN92uCktwavMxpgCA3MoJK/DOnTWsQgo224OaST27/mPNAf+w==} + '@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.7': + resolution: {integrity: sha512-of1miwFfEdgs5nythewsEoocfpbjzUf8PC996YDe3kAyv0ZJiMJs5NXlYhE6IdjxfNEPqUXj/BYBnpD8kRdfeQ==} cpu: [x64] os: [darwin] - '@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.4': - resolution: {integrity: sha512-dgX0P/9wGPJeHFBG+ZmhgE6bmtMt7NP5CRBGyyktpopdk/mW4POnrpQsSLtKI1dwpc+pPLuXHDh6vvskyQE/sw==} + '@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.7': + resolution: {integrity: sha512-jcRydYARTW0gX5idJhxV7m3KkRUD7KtZLYFF1ZY18HrPqpGY0TCqPUTJCwka2kVfVOwfKs3ZmlPSmQb4S6xj7w==} cpu: [arm64] os: [linux] - '@msgpackr-extract/msgpackr-extract-linux-arm@3.0.4': - resolution: {integrity: sha512-Tg3yX65f5GbtXLkrYEHE5oibZG9epyYWas7FogTTEJeDEF9JlXJzKgXaNhT3UXlTOeA+AfZpYZYZ0uPj7Cfquw==} + '@msgpackr-extract/msgpackr-extract-linux-arm@3.0.7': + resolution: {integrity: sha512-aDPbiEkFHs3H68705JKxJ15IT41wFdvDhba1pL8ygfdoshboL5dsXtiu76/CqhLWYneE+9hwBE+0abqNOiQ4Bw==} cpu: [arm] os: [linux] - '@msgpackr-extract/msgpackr-extract-linux-x64@3.0.4': - resolution: {integrity: sha512-8TNXMEjJc3QEy7R/x1INhgiU+XakDAFUzBhaz7+Rbrs8NH5UQeHQxxmzsSBJGyV6I1jW79undiQm8tOI+D+8FQ==} + '@msgpackr-extract/msgpackr-extract-linux-x64@3.0.7': + resolution: {integrity: sha512-A9xOmARctmUvHrBj5GGzGAigsZFnqE4kld5oprX3PyPbkVALV4jwBc17gPZrhSOvnXQc81hE9K7S2hDUCgialA==} cpu: [x64] os: [linux] - '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.4': - resolution: {integrity: sha512-CmCXPQrkbwExx3j946/PtHWHbYJiCRBRDl4BlkRQcJB/YOwQxJRTpoo7aTsortjgoJ1x7opzTSxn7C+ASSLVjQ==} + '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.7': + resolution: {integrity: sha512-PRBiOqK4mcR0rvm6nybO7pSOYRR2Zza0+43UK2IvbVGelzMqZViiZJmOWGuWOX678QKESO6YrHx36z43nSS6iQ==} cpu: [x64] os: [win32] - '@mswjs/interceptors@0.41.9': - resolution: {integrity: sha512-VVPPgHyQ6ShqnrmDWuxjmUIsO9gWyOZFmuOfLd9LfBGQJwZfy0gvv9pbHSJuoFNIYC7ZDX9aoFwowjcdSC4E8w==} - engines: {node: '>=18'} + '@mswjs/interceptors@0.45.11': + resolution: {integrity: sha512-+ISPERIRIHhSVnFQRGCP9jDJXxn0/z2+pWWbXUym6JUfpUCRW2Pvro4P9RBKGYUKTKAULszKurKMTQIsaJUIgQ==} + engines: {node: '>=22'} + + '@napi-rs/keyring-darwin-arm64@1.3.0': + resolution: {integrity: sha512-pl76hJvdYUBn6I24bXiOBMA9nbDapo3I5B+f3OorjDU4dUMSypXeKbOVehJe8fhgTiH24flMyTS3aAIy43xegQ==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + + '@napi-rs/keyring-darwin-x64@1.3.0': + resolution: {integrity: sha512-YcJtEV5LA3cvA4z3BurgxH5IhTsW1JfIvcAAcqcecwk06Si9F9NqkxbZVIfDwQ8oRHgaBmT3zZJnLAotCrVahw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + + '@napi-rs/keyring-freebsd-x64@1.3.0': + resolution: {integrity: sha512-vlLf31TGhfRAaxLDBhg8b89ss0HHD/lyNmL5F3UjSaz5CUXElsJmKYq9fqA/B+cZKUEUcLHHGhF0I/CqcFdaVw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [freebsd] + + '@napi-rs/keyring-linux-arm-gnueabihf@1.3.0': + resolution: {integrity: sha512-KiWdMMu/Inz/bHHIAGrnF7r54FZDYXuHO6UFF/rhIrshUsxbMG1Rl9lEymNtqqsVo927G0VYcb02FzWQ3iBQRQ==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + + '@napi-rs/keyring-linux-arm64-gnu@1.3.0': + resolution: {integrity: sha512-eyKGpY40lm9Jvs1aD294XRH4y7+TlJM0YVAryZeXA6TX0mb4gMkxVXwSQv7MCwgah7raeUd0dKUb4BPAYIgcMg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@napi-rs/keyring-linux-arm64-musl@1.3.0': + resolution: {integrity: sha512-iIK6JWHXAJqDrEyLY3TmswwloVyt2vj+04TZnew+uSJ9gnDO8EwRbp3/iw3LpWaXiDO7VomGO6y8I0Id8uBZSw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@napi-rs/keyring-linux-riscv64-gnu@1.3.0': + resolution: {integrity: sha512-/PGqrwn6EwgtK6vccASSXJRfOSP4vN1F4ASsIQ+7MdrK6hNvAJ1FZPrIuD5gGGdxezo3F++To2Wq7DbuGIeuNQ==} + engines: {node: '>= 10'} + cpu: [riscv64] + os: [linux] + libc: [glibc] - '@napi-rs/lzma-linux-x64-gnu@1.5.1': - resolution: {integrity: sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==} - engines: {node: ^22.20 || ^24.12 || >=25} + '@napi-rs/keyring-linux-x64-gnu@1.3.0': + resolution: {integrity: sha512-2PDK1WKWTu9lBGq9VvNEkSlQD3O7YwVpmnyN2M3cy4v7NJ/8gDMd9GXv3G+FVXN13uhp4gnnPBS+ScefmEeD2A==} + engines: {node: '>= 10'} cpu: [x64] os: [linux] libc: [glibc] + '@napi-rs/keyring-linux-x64-musl@1.3.0': + resolution: {integrity: sha512-oJ2HkX8YUo46QBkn0pG+HuIKQNqr523q6vBobCn+P95s4C4K6/kLBqHY/1bg5J4ap31DzsznhnFKcfBNBsjCnw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@napi-rs/keyring-win32-arm64-msvc@1.3.0': + resolution: {integrity: sha512-tOd3c/uAaeoE4ycVlmAdSvygz0Zt3zdca6Y7gokBeIbaRDWpjDIUOpU3MvML59XAaqyuKGsVVu0F/DZb1lHPmw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + + '@napi-rs/keyring-win32-ia32-msvc@1.3.0': + resolution: {integrity: sha512-sPSqeAFZMGqP1R++M2JTza7GQJJ/TpCo6JU6Vcd4jnebvOaEDs9b7eipakU1PJdSvhpC2yXMCNRk9gXfrhuwHQ==} + engines: {node: '>= 10'} + cpu: [ia32] + os: [win32] + + '@napi-rs/keyring-win32-x64-msvc@1.3.0': + resolution: {integrity: sha512-4DnCWXwDc0HRKwyRlG5y0VhKZW2tNRQfKKfyj6IX/KWfDNyq9hn4n+GL1auyDcOO/v8PwnhmYo2+rOOqCkvvOg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + + '@napi-rs/keyring@1.3.0': + resolution: {integrity: sha512-WrOw/bcXm0f9qHkumlT1QlArXSTWqaY9sunsDpOk+yCCorCKMxvWT/a3xko4EYHVdeZoh00yI2TydXn6eyICDA==} + engines: {node: '>= 10'} + '@napi-rs/nice-android-arm-eabi@1.1.1': resolution: {integrity: sha512-kjirL3N6TnRPv5iuHw36wnucNqXAO46dzK9oPb0wj076R5Xm8PfUVA9nAFB5ZNMmfJQJVKACAPd/Z2KYMppthw==} engines: {node: '>= 10'} @@ -3386,12 +3779,19 @@ packages: resolution: {integrity: sha512-xJIPs+bYuc9ASBl+cvGsKbGrJmS6fAKaSZCnT0lhahT5rhA2VVy9/EcIgd2JhtEuFOJNx7UHNn/qiTPTY4nrQw==} engines: {node: '>= 10'} - '@napi-rs/wasm-runtime@1.2.3': - resolution: {integrity: sha512-UMduMbqO5s5zF2NkNacMT/yK5Y5QiKvWr2+50bzIIxFDwVJ2h49b+oyjaCGPhJxd2/gC2x39EHv/gHVuu36x2Q==} + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@napi-rs/wasm-runtime@1.2.7': + resolution: {integrity: sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ==} engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} peerDependencies: - '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4 - '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4 + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3 '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} @@ -3405,47 +3805,47 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@octokit/auth-app@8.3.0': - resolution: {integrity: sha512-/UaKmJCsOc5XBZwhnFiGNdLH/FkDF8lYtBn1QlKxtX7IpgaRB/XOXjixFtERAknyUZHxp3oDuoiG0En4VptJSg==} + '@octokit/auth-app@8.3.1': + resolution: {integrity: sha512-XHWxZsF4mvGTQCv7AOxgby9t9OjVO19FBuKq+QmyBxFrf+B2hR/P5j/MTF8g95bITf8cRtR17KIXThpFNqiKbg==} engines: {node: '>= 20'} - '@octokit/auth-oauth-app@9.0.4': - resolution: {integrity: sha512-Pe3du5LrC6dlv10b0RbarBlJtIT1Urq8BFoQklK8WmBw8YKnGgrANn7cQmHiA1v8AVihgi7YutV8MncP57I4og==} + '@octokit/auth-oauth-app@9.0.5': + resolution: {integrity: sha512-Hn2yAlIDjFLGjAz7t+CRu7e9VYoFW1W3LLyOLyahFoJGlCf4PtDkHKtRET8w/2CJpsrC0FxIF5g5Xtx9E4O78w==} engines: {node: '>= 20'} - '@octokit/auth-oauth-device@8.0.4': - resolution: {integrity: sha512-M/+34rmkxMvUnnTo/uqNeVRCXJoJ+5N34eNTbL1KMtIyJpedCTsu/iFL1cWdL+w5hQMlYt6xzXoyux2gn0OVnw==} + '@octokit/auth-oauth-device@8.0.5': + resolution: {integrity: sha512-kdJtjRhykMLJrMdcoC56XUBDfoUAuWEFKpkDxwYim+bNwYw1MreLolk+PLnwEYT8djm589YepeMuJ8+ECAIzVQ==} engines: {node: '>= 20'} - '@octokit/auth-oauth-user@6.0.3': - resolution: {integrity: sha512-t4OKUhrI5britmpRiSzPAz1TJPyUN/Hw1HEE3Hz/uElxcmnf/YCRSKtFRNc5gy4yJFTlXgk34H1lvxiotQJQvQ==} + '@octokit/auth-oauth-user@6.0.4': + resolution: {integrity: sha512-eya2pMJ9pCBq1jrm1Rf6J3NI+NemEpzDMLo9J/GpRoK0KgdxIVXWX4LESIfwJ+GYeoq6QFIlUJNi1lVp5FBgmw==} engines: {node: '>= 20'} '@octokit/auth-token@6.0.0': resolution: {integrity: sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==} engines: {node: '>= 20'} - '@octokit/core@7.0.7': - resolution: {integrity: sha512-DcB0M3KFgr9ECI328lhBMVsyFT2DnmNucSBTqEN3exyNKUzkkpUSCHmTRcunF41Eou2TIQKW4seewri8ON9bSA==} + '@octokit/core@7.0.8': + resolution: {integrity: sha512-L7y8eYc+AwxGr2PWI4WFt1VG4TiJ66c26BD16mXpYIlXxG0SMigM1+m4aTSlYyBr5BlQsGAlz8uDCoZN4SEMcg==} engines: {node: '>= 20'} - '@octokit/endpoint@11.0.4': - resolution: {integrity: sha512-f1cOWoHPmxryJFknxbtDdjODWfV8A9tc8Aae6ermXPNgHFZ/x91AtHIz4gicEjL8hkJiip+u21QHJORfBv/qiA==} + '@octokit/endpoint@11.0.5': + resolution: {integrity: sha512-iXa654H3yFafF/ieHkukfbgWo2rmXD2ceD0ZOtrPhw1bc3FDch1d9N/TNs0FQ1/cIbwb7kspUX8jzIs8nzb9DQ==} engines: {node: '>= 20'} '@octokit/graphql-schema@15.26.1': resolution: {integrity: sha512-RFDC2MpRBd4AxSRvUeBIVeBU7ojN/SxDfALUd7iVYOSeEK3gZaqR2MGOysj4Zh2xj2RY5fQAUT+Oqq7hWTraMA==} - '@octokit/graphql@9.0.4': - resolution: {integrity: sha512-5s15CCiY8XXQ+FG+b1YQcl6Z2FA++nwAz/tg2VUrTmnMncP+2nnGUEYANImdnxsA2Fnq+Mbl7hDjUTw7cFAwcg==} + '@octokit/graphql@9.0.5': + resolution: {integrity: sha512-bt/hm03LeU6Vy7FwTrkkC9p3XGT/lBwClglMqxBSe5/q0E5CdJTXeAqEI0vlw89/LF/G6tryTIH8HirZ3prMVg==} engines: {node: '>= 20'} '@octokit/oauth-authorization-url@8.0.0': resolution: {integrity: sha512-7QoLPRh/ssEA/HuHBHdVdSgF8xNLz/Bc5m9fZkArJE5bb6NmVkDm3anKxXPmN1zh6b5WKZPRr3697xKT/yM3qQ==} engines: {node: '>= 20'} - '@octokit/oauth-methods@6.0.4': - resolution: {integrity: sha512-96RsnxS7Hk/BQhUA1Qo2pmcYP6LWQRWMdo7bVbNE7ZCkFLhSUYBXVUj9tVnvhl4jzbwHYt/dcIG+ioY427b2sg==} + '@octokit/oauth-methods@6.0.5': + resolution: {integrity: sha512-/mAz7taDZD7DcV4zcG6TDw3Kr6TOldmYBRpvA62C3WIxRMmcgX8XxsTvVQomqKE7VEk/BgYhUao1aR2tYGyIKg==} engines: {node: '>= 20'} '@octokit/openapi-types@27.0.0': @@ -3454,18 +3854,15 @@ packages: '@octokit/openapi-types@28.0.0': resolution: {integrity: sha512-0rFyLuyHvIj6uuZWuDslxkowFYdPXoNIkeAv4b27dzm2Tf4vGWXnPsMcxs7d65kLdMERgP3wc1AEPlqMz8e1cQ==} + '@octokit/openapi-types@29.0.1': + resolution: {integrity: sha512-9qWOMFNxxLokERcms42rU0PTLqQmVs7g5E41TI4mCOxmpFayD1rfC7XxOL55cG9MBZLFlC31BrR37myMKardwg==} + '@octokit/plugin-paginate-rest@14.0.0': resolution: {integrity: sha512-fNVRE7ufJiAA3XUrha2omTA39M6IXIc6GIZLvlbsm8QOQCYvpq/LkMNGyFlB1d8hTDzsAXa3OKtybdMAYsV/fw==} engines: {node: '>= 20'} peerDependencies: '@octokit/core': '>=6' - '@octokit/plugin-paginate-rest@15.0.0': - resolution: {integrity: sha512-lw9A9YL5s4VPj+VEx8uMxaxQm2YTgrPDkrLEuZuu18R8TK3oPcXF4K6t52nx6xn1RcogZC9i188sAr/4XYJaQQ==} - engines: {node: '>= 20'} - peerDependencies: - '@octokit/core': '>=6' - '@octokit/plugin-request-log@6.0.0': resolution: {integrity: sha512-UkOzeEN3W91/eBq9sPZNQ7sUBvYCqYbrrD8gTbBuGtHEuycE4/awMXcYvx6sVYo7LypPhmQwwpUe4Yyu4QZN5Q==} engines: {node: '>= 20'} @@ -3484,12 +3881,12 @@ packages: peerDependencies: '@octokit/core': '>=6' - '@octokit/request-error@7.1.1': - resolution: {integrity: sha512-+eaY7G2VVpSf2pc5Gn1+mph837V/d/TYTJAgWL9Tb0ogGYcpN3IlAVFgjL+Vv93F/sevrxkvsYCedtpLdcFLzA==} + '@octokit/request-error@7.1.2': + resolution: {integrity: sha512-XZRuT3xZ84D3gYErI1DZvhJ33dCWVV6uzBtWkaBB4TvA/L6eOeTZodxLFVB44bBEEo3vEx7y00UfX1tBLrtLRg==} engines: {node: '>= 20'} - '@octokit/request@10.0.13': - resolution: {integrity: sha512-v2269YxL9Yf+x3d+gRI63FP0vFQEiWgLyBzxe/Y+0yFDg2B/Tzf5dhh9VNfccVAQnfcfwQWyk/y6Bn7rUXXs7A==} + '@octokit/request@10.0.16': + resolution: {integrity: sha512-A0zWGjHzISIb+9ccG8s0dq7LKO5zVpJLRICjgUb+sJxEWqn8RUHB1rD3AE51+PECvXHIxqZ1VVvs4fHTSD9nUQ==} engines: {node: '>= 20'} '@octokit/rest@22.0.1': @@ -3502,21 +3899,31 @@ packages: '@octokit/types@17.0.0': resolution: {integrity: sha512-ByP1v7YL5SMveFPP7+sj0/ZuWCOOg/Chs4NafOMpq6WNIM/hdGY0S7C0TCGDBWu1aGmOxmUIhMx3cO+IdwYZ1Q==} - '@open-draft/deferred-promise@2.2.0': - resolution: {integrity: sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==} + '@octokit/types@18.0.0': + resolution: {integrity: sha512-l6bAF43PNxkJp6g+W4PjoUSSkxHomXw2nOum5CTftJz1NlV3vu93NImgOYtLf6CbBUb5j+fiuzW0PPQ5JTSvZA==} + + '@open-draft/until@3.0.1': + resolution: {integrity: sha512-s7/9ELP4aP9YZtW7RJaa0Xf3RISaRH9+EFN18FtykJYRHGNrl8f9ymvoNXzjhrjmftFvkQudtuDU9RYhk0xs3A==} - '@open-draft/logger@0.3.0': - resolution: {integrity: sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==} + '@opentelemetry/api-logs@0.220.0': + resolution: {integrity: sha512-CmVa4ImJ+ynfrPMNaAXHET6Bhb44SwzmfyVJFq9ni2jgXJR/l7C6gfVFddNmHP+ZOkP9cf4f9DBe68qVLTHc9w==} + engines: {node: '>=8.0.0'} - '@open-draft/until@2.1.0': - resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==} + '@opentelemetry/api@1.10.0': + resolution: {integrity: sha512-lMkyes8iHrG+mk6WH7X70MdCLI2RS0FwNBY1PyQ8UemaijE2m5mv5A0Niy3HtbYTFrgkUEQjFMXmSAk2hQDuPQ==} + engines: {node: '>=8.0.0'} '@opentelemetry/api@1.9.1': resolution: {integrity: sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q==} engines: {node: '>=8.0.0'} - '@opentelemetry/context-async-hooks@2.10.0': - resolution: {integrity: sha512-bvyMcgLEkozzSzpEEEo1OMoeQ97bxj6Qs2uN3mPrSdDvObMI1myffD/BPqcLlzZO9//d1SqQA/WPw7Cz2AiqhA==} + '@opentelemetry/browser-instrumentation@0.6.0': + resolution: {integrity: sha512-ZYi3WaiCix1D8K6SY5y+i9zvo0lWsnd/tKKnk5PaqWLLxUhVl0gud8G79RJZ3NApDZvQ57PAvNC7povMHIj7jw==} + peerDependencies: + '@opentelemetry/api': ^1.9.1 + + '@opentelemetry/context-async-hooks@2.12.0': + resolution: {integrity: sha512-iK/1nD7mmZVkuYjVjkdFBiCvzntJdFny1S3CYbUYyOq7V5enL6XX+gJ7eh965L1LnS11VA8mQ7Ej/ck04SB0MQ==} engines: {node: ^18.19.0 || >=20.6.0} peerDependencies: '@opentelemetry/api': '>=1.0.0 <1.10.0' @@ -3533,6 +3940,130 @@ packages: peerDependencies: '@opentelemetry/api': '>=1.0.0 <1.10.0' + '@opentelemetry/core@2.12.0': + resolution: {integrity: sha512-1HsSAuvT4/my0QrXWsyXFdWjKaPeCHsismKZgEEIb8NK13LP6DrMRlsUbvD/0F9mDWK3xDom9AMv3IscxgOnOQ==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.10.0' + + '@opentelemetry/core@2.9.0': + resolution: {integrity: sha512-m2nckMT80NnmjTYSPjJQObBJ+8dgkoajEOUbznL8AHZ3T3yHRk2P7gI1PhEBc1+lOnrYE9UWrWHqJDsmqjmNbw==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.10.0' + + '@opentelemetry/exporter-logs-otlp-http@0.220.0': + resolution: {integrity: sha512-8186thl+pTw64iz/qEEen5oJZoZ/gO73XruChdaGlYdWOdBIQ42r+vHLf6a7vIDqTD4b8ZOoMlyxptanECaI9A==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + + '@opentelemetry/exporter-trace-otlp-proto@0.220.0': + resolution: {integrity: sha512-voTAD8XgJxlK7zLkXh8EzMB09zrQr3tyY/BsnDTlDiQU/UdK58MZ63A3mUjdEDrxMjCVmBHU3WQJhRmQe+Dvzg==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + + '@opentelemetry/instrumentation-document-load@0.65.0': + resolution: {integrity: sha512-xAhNXUIywjqmaSkpimsuUpRr0QYebMyTn0IJS9wFWYVLyH+2Q5IYWYys4IrT60foeyf2gyFmRBQyHupblNdaMA==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + + '@opentelemetry/instrumentation-fetch@0.220.0': + resolution: {integrity: sha512-9LW+zgvKK6kqojB0GVqbOCRGBUWiatHPmRTusjSVdwYCImIgJRrJTKu6WhjHdejJSjRS/mGsw/w4ETZBqav3kQ==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + + '@opentelemetry/instrumentation-xml-http-request@0.220.0': + resolution: {integrity: sha512-9FTY+kT3z5D8f7dC+Tubd4oJTu6tOGlQmws5J8e7DLMeIUwpWmLquRFV2BuUShiAPxTMGqqsZnuT3CVVbTu0JA==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + + '@opentelemetry/instrumentation@0.220.0': + resolution: {integrity: sha512-xQx3E2WxP1mDvKzxLxX+CTCtNLa560YJZ3087qYHerl2YmiKpv7AH+dAy7vmx+eVrZ5BwhfWUAVoKOoxCNHcpw==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + + '@opentelemetry/otlp-exporter-base@0.220.0': + resolution: {integrity: sha512-CXYo8UD5Mn9YbgebO2EL4wejtA+gxLmLiu6HCk2KH2BR7XhFN6/6p1UlCb23DYCjeYkndevLHuejCCN1yx4+OQ==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + + '@opentelemetry/otlp-transformer@0.220.0': + resolution: {integrity: sha512-lXGrv7KXZ0gNH9SVNUaa6vv6phVYGvJxfXAlMbzbakiXru75f5MZl8Z7oqiMMQD77riVHJCFlQvbZs/VVN2/4A==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': ^1.3.0 + + '@opentelemetry/resources@2.10.0': + resolution: {integrity: sha512-q6MMm2zhggzsHVNbabYwut+a6nbuQQe3URUoxaojM/8K1IBfwwPzvxIjNi2/lI1TFe+fMHMW9MWhrtDLEXEnkA==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.10.0' + + '@opentelemetry/resources@2.9.0': + resolution: {integrity: sha512-jyA5MBLQ+Dkl3+JsZkUoUvL7yHvU64kLsvpXKarWm6347Sl1t1bXFTFykUePNpT5WH5pm9a2Qtt03iIYQhZ1Fg==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.10.0' + + '@opentelemetry/sdk-logs@0.220.0': + resolution: {integrity: sha512-WywcTkQtv2iNmt+6y5Kcd4rzvx9bLVsBa2Nwcmg01IUaBTkTow3W4d9KE5vNBpEDtb9tp21WcRBY/lANRrApYA==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.4.0 <1.10.0' + + '@opentelemetry/sdk-metrics@2.9.0': + resolution: {integrity: sha512-Xx8RGS4H5XEBl01WuCreMIpiah9cCXMbSkeuIePPdD2cUpq/vUzYmj8E/MK1OsbOc93FuAD4jfn2WOacKwLn7Q==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.9.0 <1.10.0' + + '@opentelemetry/sdk-trace-base@2.10.0': + resolution: {integrity: sha512-GuYQQT7QD2EeO8lcZLRQzcbOyhqAzL+6WWTKTU9mSUBYBazkEDl+VrQcXQhbB08OWM9anD1aHleVadzulpOaUQ==} + engines: {node: ^18.19.0 || >=20.6.0} + deprecated: Use @opentelemetry/sdk-trace package + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.10.0' + + '@opentelemetry/sdk-trace-base@2.9.0': + resolution: {integrity: sha512-cp9zmTl62R8PJrpvFcmc8N2JQU/xfa0S+61q511Nji+QxCfZ8Ifvg7H27G8cANe4crg4RTrWsVvanHiXjSp6ag==} + engines: {node: ^18.19.0 || >=20.6.0} + deprecated: Use @opentelemetry/sdk-trace package + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.10.0' + + '@opentelemetry/sdk-trace-web@2.10.0': + resolution: {integrity: sha512-6WqXdWSlBH0GNjDhv1gg6SLVtMtIBVhLaWqd1hiKSXS8meXXP13sVPQoYFHz1uVo0feUTUCdP9vMS54KflisAw==} + engines: {node: ^18.19.0 || >=20.6.0} + deprecated: Use @opentelemetry/sdk-trace package + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.10.0' + + '@opentelemetry/sdk-trace-web@2.9.0': + resolution: {integrity: sha512-LS4XlzOK3e6YYdt84m15AmRR04121rKipmifi4XFZToH1h75f7F2bzHLbB1NMgIEYJ0jSKYm4VsK5mws/5kfTQ==} + engines: {node: ^18.19.0 || >=20.6.0} + deprecated: Use @opentelemetry/sdk-trace package + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.10.0' + + '@opentelemetry/sdk-trace@2.10.0': + resolution: {integrity: sha512-MfQGq3GRmTh5fM/y+OjaO0vj6+luCB1XO2gfXCalKCfgKw0eHL++sm75DNweC6ohlp+aFvACqeE0fYayqdRaoQ==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.10.0' + + '@opentelemetry/sdk-trace@2.9.0': + resolution: {integrity: sha512-sGA19HvtrrSKYsseHphluH6j3p6Xa3fqc7c7y8f/7mYWejc1lyDFcpSdD1kYa50HCLUeEo4zA5bW0pniaPszuw==} + engines: {node: ^18.19.0 || >=20.6.0} + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.10.0' + '@opentelemetry/semantic-conventions@1.28.0': resolution: {integrity: sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA==} engines: {node: '>=14'} @@ -3545,133 +4076,144 @@ packages: resolution: {integrity: sha512-eSYWTm620tTk45EKSedaUL8MFYI8hW164hIXsgIHyxu3VobUB3fFCu5t0hQby6OoWRPsG1KkKUG2M5UadiLiVg==} engines: {node: '>=14'} - '@oxc-parser/binding-android-arm-eabi@0.146.0': - resolution: {integrity: sha512-jBCZIsff/9J/zdK1KSKZREScXOtRE4wYO+MUjrE+5NHGdsslrP4biJA9QJyKwErwS8lkwxH6Z537HaL4CQr0ow==} + '@opentelemetry/semantic-conventions@1.45.0': + resolution: {integrity: sha512-aOP45mbcOKbQVvFWfQmgoOPT8R2iwbbbgl83k4CujGV9BrJhFr3qG55MFpwFs4YLabpuW3HhzUY9eQxPlDqaZw==} + engines: {node: '>=14'} + + '@oxc-parser/binding-android-arm-eabi@0.158.0': + resolution: {integrity: sha512-eZ4sHtg/u9mzPaRPWXZ7MmJ3tSFYPDCoDrnAJEXBOIQfdAy0TnzlaJx7nq0HZwE8DkYLQg6GqGZlcjaJrnijKg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [android] - '@oxc-parser/binding-android-arm64@0.146.0': - resolution: {integrity: sha512-BVwj6sVmgD9j5F+R5B+13pYQKOCmew+3myS19wcG5e+AeZu5ybBLEfcaKueC8MhvjtwL2Suh2tQE/Ywop2Z8rA==} + '@oxc-parser/binding-android-arm64@0.158.0': + resolution: {integrity: sha512-Jqfn2GRXFkEukYBke/d1Hc9a3gB/qA3YRZ1u0D6HecjoOc3d9QvB7YFWyaLDWc139pfH+fIMIeOQ2SNOe1mnvQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@oxc-parser/binding-darwin-arm64@0.146.0': - resolution: {integrity: sha512-jQGIM4zEEvvuypbBcoeoWuigRfP6R8Ow/9gfDzVoYkv5mFyVPbIePNQnV752jUynfty0nDxarIpML+7Q/MyMPg==} + '@oxc-parser/binding-darwin-arm64@0.158.0': + resolution: {integrity: sha512-C3/Sl4HE0DE5r64UWBljMTua5aFh14/Urc6o45gK7J8HWjEttJJP26M0bK2eSWcas2zpJZrJlcvwyIxR7YqSZA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@oxc-parser/binding-darwin-x64@0.146.0': - resolution: {integrity: sha512-quDy3cvW1712l6W+qe1/xWRym6STOuGJmFzRIg5StXVJglsbqrCpHfw9PyqPs0hQeOAjAEO1USrjPaIvHiRKQw==} + '@oxc-parser/binding-darwin-x64@0.158.0': + resolution: {integrity: sha512-IlU6PMqlk2pbqiidJ1dU5moOeVtzQf4x1n8fXixupLUixA6Sdd3a5WHclvGEZhJom4SjSan0EIpPQkXl9TnjeA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@oxc-parser/binding-freebsd-x64@0.146.0': - resolution: {integrity: sha512-wx/p/9phlX4VbYk671G4WewST3pysXNQfZRx4gx69QIz0/uW2O3MCnnEQh4il6l2lYr0EDAq3kFYovIw68CXHw==} + '@oxc-parser/binding-freebsd-x64@0.158.0': + resolution: {integrity: sha512-0uQD/66qKMzcz99yudx7yPWdPziXXl4S4bMxyOwXFPQ6F53Vr2DYM8Tfl9gd/32R2FXlAIqK9g8aNfwJEa0/Kg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@oxc-parser/binding-linux-arm-gnueabihf@0.146.0': - resolution: {integrity: sha512-W9nzfbWH8Z6cIaBj6Rh/eVgymFkZ2MaOV0rQruKTLYKLAZADo9JlOmBml6Dq2QbChtmuc3DKDL42KDHaQFX8yQ==} + '@oxc-parser/binding-linux-arm-gnueabihf@0.158.0': + resolution: {integrity: sha512-B5ZAgT/cwKVtGa14Z3PEgim8hBTAK//uX/QpwdO2ZKGMqLFDq8myV3jDU1FAGJ0aPZ24SC8X362kKrpFOYmbHg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxc-parser/binding-linux-arm-musleabihf@0.146.0': - resolution: {integrity: sha512-S5X1mEvTLBTl+xt7bRlr1n6qI+OTy1EaRkYyd4EQgEZqV7i53fQa1I72OqR0IwSQKVwh6TZPkzDcsN7fS9MynQ==} + '@oxc-parser/binding-linux-arm-musleabihf@0.158.0': + resolution: {integrity: sha512-ZLuYVsBUejzfdFmOlY9yW+g/iCInw+pirfTu+eMk27wFcpyCG6yfTmS/qzzvKARI/VmoUdaXmEcDNUm9hdq5Cg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxc-parser/binding-linux-arm64-gnu@0.146.0': - resolution: {integrity: sha512-Br9UB4nnecVfj/Vp+JiJnJo2wIJtwaOm+uN7MwWKF5cx10P816urucmksG/iG2OeL7hfZ4h5fCmePrLU6TocfQ==} + '@oxc-parser/binding-linux-arm64-gnu@0.158.0': + resolution: {integrity: sha512-QHKIX2SW3pnUFfhAKU8P9t36QlkGGfxgodwoKkp+pQNZmA/PF3DbkA8OgUHoeCIE0aFL1t9Sse+2wr6+zohdRA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@oxc-parser/binding-linux-arm64-musl@0.146.0': - resolution: {integrity: sha512-5AP+od9VGhRyCwswTfuD0jSDfIcWptEBC+K0LWmXsUJ9BPVF3KbhsjeoV+9tijX6g5is0w4H8DUV7NkOJoOVVA==} + '@oxc-parser/binding-linux-arm64-musl@0.158.0': + resolution: {integrity: sha512-Z57mkQZMjUHh0KxxjmZLNUpqJUT5lPYYpihAOudh4PnQC79Kq7Ujy8KJsmsbla3rU0xV4aCpUKDCfVx0wnYn+Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@oxc-parser/binding-linux-ppc64-gnu@0.146.0': - resolution: {integrity: sha512-Qz3jc1qgvU9B9vQu3jAJcxKlGX7zYRtKs8LPYtQi8cmirhtYcX6XvXseESaDFbi1L+SorXhjRQ/2npEX85kKBw==} + '@oxc-parser/binding-linux-ppc64-gnu@0.158.0': + resolution: {integrity: sha512-jl6537qMp3Tb2D0J1oYzU/xzvYOM7ZDBf4Dhg8WvgkV+wgept/r2rX30PdWTE5gNo6QdHkOTz7le+9yldU1VwQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@oxc-parser/binding-linux-riscv64-gnu@0.146.0': - resolution: {integrity: sha512-Mfmg18lOZ1IWJJJuHi1ZsMLunqNVeLEh3Byuw+Aa8dYo7qOrZOMZQz1gFgAeNga5/Z5jjRuIKuIdo9aO7HYMdg==} + '@oxc-parser/binding-linux-riscv64-gnu@0.158.0': + resolution: {integrity: sha512-BFwDkCZ2K6VuSfBlKLItXkTYMN/8SAcFpZgBohU6qjlq4HrRKBqOXW/J0ViwZ4BHZuNFxgrhUXcM3hcalZnQaA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [glibc] - '@oxc-parser/binding-linux-riscv64-musl@0.146.0': - resolution: {integrity: sha512-6OdXwYnzbwYcnUH8f0LYauLNitjIcgDR/CDA/wcZ2whwJwVflGtCLF3+3HOXgs/SESnpQCWXr7Q/z9muLJ5bmQ==} + '@oxc-parser/binding-linux-riscv64-musl@0.158.0': + resolution: {integrity: sha512-3YcZPBhpDhD9BUWQct+70To5wJhY36pvn+gA04ArMCdREd76EIXB14IgYsDsRqIgOXSXT1okMpHA6UEamM/QQg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [musl] - '@oxc-parser/binding-linux-s390x-gnu@0.146.0': - resolution: {integrity: sha512-BilV4Ei84A0m6r1v+LmgVrfUMbAz33IXRooVw/BQNDExUvGGNLrk6NWeot+ve99bRidTZdwWuzBHgxWCnSSa9Q==} + '@oxc-parser/binding-linux-s390x-gnu@0.158.0': + resolution: {integrity: sha512-C+HBtM/aauGsp1sRuKHnB6yqrFCfGzGgS/3b/Alwz+bGIgOCm6DiNnFEnA14MOQ1YA63ikjpmTN7LPb505pkCQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@oxc-parser/binding-linux-x64-gnu@0.146.0': - resolution: {integrity: sha512-RaMfGIpWOa87u3aD87drbPgisy7Nv6gIdjRFw6msIDKO+3FmcOTw+vpp4hVANhUIzpQta2EAsmYQRrqeprZTmQ==} + '@oxc-parser/binding-linux-x64-gnu@0.158.0': + resolution: {integrity: sha512-COR5cFRE6DqmxZGE9QCJG1X7uUYxNdSYkMR7J9igRLnZqZ8ki6kJIa5S4czYHeIjdNyYn4vo1CsK3rQsK5sjrA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@oxc-parser/binding-linux-x64-musl@0.146.0': - resolution: {integrity: sha512-0bzF60jfQRsJ9TJOIHK+wSUirenJAyWCdP9z3P6LMS0znD4Gf7WYOiv7niONVOpRnlGjzMPd4kqgOJfCDLQAQg==} + '@oxc-parser/binding-linux-x64-musl@0.158.0': + resolution: {integrity: sha512-lF8YZdySxTjYnHfitZpbFWpyyxDchZj+TIyvDnzH3AGZlUvyrsu7BeORPdf05cLFwiyb+RPqAae4EJ7uu5xAhg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@oxc-parser/binding-openharmony-arm64@0.146.0': - resolution: {integrity: sha512-O1gxUFt5FUgyFVUQK2BhZNwv7jLsqLR8uBANOhpYE5D5q+eCvcry7RvQT3DgKpWP1XRYB5UsbQGHHcwchEKb+w==} + '@oxc-parser/binding-openharmony-arm64@0.158.0': + resolution: {integrity: sha512-m2HMKQgNNatcwOeCDCewrW5gvmHE61WFKl2J4KHiCGNpJb6ZI8n3T/JzwxFkt8kY3E27fJwvHM6t3WIEgtPiAA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@oxc-parser/binding-win32-arm64-msvc@0.146.0': - resolution: {integrity: sha512-i46zYS0TTCt+oaXaDx4mKxuXo+h8OBWI12XFatRm5I9/l2WKhp4TQ6VAjw0r1NMRiQQZ9dwQlRyQNhyTkOaINg==} + '@oxc-parser/binding-wasm32-wasi@0.158.0': + resolution: {integrity: sha512-58x6gAmFCVeGWxx57ZKE+dimNvOXUPo785MV5ka5Rkug67DKx2rnrF2oGB+8aFIa8Qw6EcfUrj+Wbtq9hTASXQ==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + + '@oxc-parser/binding-win32-arm64-msvc@0.158.0': + resolution: {integrity: sha512-Kksc5jIB7cE9vgoePyIQ8sRkXA4kAfO5oDEI6X+JJMGGTRnvtGafQniLXAHur9XU+5hUgMOGoZcyA8L+JvBu6g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@oxc-parser/binding-win32-ia32-msvc@0.146.0': - resolution: {integrity: sha512-v1bb+ma2oKXwh4NHAg2NQwe9ORXFBDSCEkuO1qC4Rzm8EXcQdNhiJHpTNfulZ2P+1QpYUB6QYupW4mgMVom/tA==} + '@oxc-parser/binding-win32-ia32-msvc@0.158.0': + resolution: {integrity: sha512-HhxU9z7t6gqSh7UslTwD/wha5U2uD44Ss7GKtrBSJfG061iDrJ1Qk63N0Dzh3clax9pjJgYFnMpQRt72Q1bP8w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ia32] os: [win32] - '@oxc-parser/binding-win32-x64-msvc@0.146.0': - resolution: {integrity: sha512-uT8N1/qdNSGonvW1O2kZYNczqb/VYfnj5dpUy1FmedOPodj3MNFNWhAJkMZlI5u8xuTRtrpTccnr0U5HAMVRjQ==} + '@oxc-parser/binding-win32-x64-msvc@0.158.0': + resolution: {integrity: sha512-/SLN0ot62iL6XhmsWyLdU+37vjVCgDP96sOqeCPIFov63odr4DPv9vgq+lIkZMBMOxpWsSMcwDfpERsRAyCl8A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] - '@oxc-project/types@0.144.0': - resolution: {integrity: sha512-nuhZIOLuI6TFQ32I/WnUx+SCPY7SdSKwgnFHydAuoS1+Z4BRcaP+RRJmGzl9lw+0OFF7UmaESf7KQRXaNLHypg==} + '@oxc-project/types@0.156.0': + resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==} - '@oxc-project/types@0.146.0': - resolution: {integrity: sha512-XC0QsnnhVe7sLIWmYmdPw7x5P0h4W8vUU3Nv1ySgWXtvCz8NizoAEpGXA0sOYoJQV2Rl13LgURAHQ5cI5ILCSA==} + '@oxc-project/types@0.157.0': + resolution: {integrity: sha512-95iTox1qdt6WGWce3xwNOVayByOfLaYAq+qGPpub6NWbBh9sv0GG3+zyfh9ZBCO/jVu5A0EWI+qQI7g6fevjxg==} + + '@oxc-project/types@0.158.0': + resolution: {integrity: sha512-xZ66qA4WmLbTLlxH3mqMd8f9UKbaOzOT0ATwFf4DH/14pMgpUrtqtjyYzOQmgfl2a0iRAAMbQ9G1th/67jRzGw==} '@parcel/watcher-android-arm64@2.6.0': resolution: {integrity: sha512-trgpLSCKRC/huFjXX/Smh+0sWe4+YtKfktIToiMl59ghz7z+qkH6kMvNnUbLyRs9N11t8l4svSCs1+5B3rOAhA==} @@ -3767,22 +4309,6 @@ packages: resolution: {integrity: sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==} engines: {node: '>=12.22.0'} - '@pnpm/crypto.hash@1000.2.2': - resolution: {integrity: sha512-W8pLZvXWLlGG5p0Z2nCvtBhlM6uuTcbAbsS15wlGS31jBBJKJW2udLoFeM7qfWPo7E2PqRPGxca7APpVYAjJhw==} - engines: {node: '>=18.12'} - - '@pnpm/crypto.polyfill@1000.1.0': - resolution: {integrity: sha512-tNe7a6U4rCpxLMBaR0SIYTdjxGdL0Vwb3G1zY8++sPtHSvy7qd54u8CIB0Z+Y6t5tc9pNYMYCMwhE/wdSY7ltg==} - engines: {node: '>=18.12'} - - '@pnpm/dependency-path@1001.1.10': - resolution: {integrity: sha512-PNImtV2SmNTDpLi4HdN86tJPmsOeIxm4VhmxgBVsMrJPEBfkNEWFcflR3wU6XVn/26g9qWdvlNHaawtCjeB93Q==} - engines: {node: '>=18.12'} - - '@pnpm/graceful-fs@1000.1.0': - resolution: {integrity: sha512-EsMX4slK0qJN2AR0/AYohY5m0HQNYGMNe+jhN74O994zp22/WbX+PbkIKyw3UQn39yQm2+z6SgwklDxbeapsmQ==} - engines: {node: '>=18.12'} - '@pnpm/network.ca-file@1.0.2': resolution: {integrity: sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==} engines: {node: '>=12.22.0'} @@ -3791,10 +4317,6 @@ packages: resolution: {integrity: sha512-//0sR/cow/s4ICQaYoAobOl4aU8cjU6x/V24V7XkKotb9+O+3zySIYp146vpaobYHnxa4pZX8NkV54Z5AwbDKA==} engines: {node: '>=12'} - '@pnpm/types@1001.3.0': - resolution: {integrity: sha512-NLTXheat/u7OEGg5M5vF6Z85zx8uKUZE0+whtX/sbFV2XL48RdnOWGPTKYuVVkv8M+launaLUTgGEXNs/ess2w==} - engines: {node: '>=18.12'} - '@protobufjs/aspromise@1.1.2': resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} @@ -3822,188 +4344,204 @@ packages: '@protobufjs/utf8@1.1.2': resolution: {integrity: sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==} - '@rolldown/binding-android-arm-eabi@1.2.5': - resolution: {integrity: sha512-DLe/i+l8ynIBY7XEQ191TeZvCoowIGa18R+dIV30GW7DiOtp74i/xX8hs8GUjW5ARV7VZuie3d6AumSmCwbeRA==} + '@rolldown/binding-android-arm-eabi@1.2.19': + resolution: {integrity: sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm-eabi@1.3.1': + resolution: {integrity: sha512-yeCTS2g0J/CXg0QirfJdet9BW/vhx3UM7Nv8Cz0Cglh82e/7F+8ss2kYWx5xt+wbsFK0LV4485+PZxW0bs5udQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [android] - '@rolldown/binding-android-arm64@1.2.4': - resolution: {integrity: sha512-jHC2cnyKz5xU2fhECtFl8OZ83cYNt13GZQD+0uMJ/X3o+ijmd56okHhTUwxVSHPx1IRVIJEZ1/1pPzeLCU6XKA==} + '@rolldown/binding-android-arm64@1.2.19': + resolution: {integrity: sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@rolldown/binding-android-arm64@1.2.5': - resolution: {integrity: sha512-zXcwKlQApYAOELHd8PwKDFkagYF9Wy4e0RJ+0qnzl9Pjnpj75TEG8ufv40p2J7kCEfwZAsNiuzRIyNNMWT38ig==} + '@rolldown/binding-android-arm64@1.3.1': + resolution: {integrity: sha512-8RCJ1AODBZ7luSDvVSabNtDkxrRL1U4+kr9UG7X2GMrdPRD4gN07o8X61LouA8JSy8vXkgd8BIEpxXsP3WokgA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@rolldown/binding-darwin-arm64@1.2.4': - resolution: {integrity: sha512-Dc5mPD8F5F/FS8i01syd7FTF6yB2fVthH/TRkjwJkzUK6EpoxHtqvZQP5Zwq80/5z19TWYHIg1KOHboCgVx/aQ==} + '@rolldown/binding-darwin-arm64@1.2.19': + resolution: {integrity: sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@rolldown/binding-darwin-arm64@1.2.5': - resolution: {integrity: sha512-dK4QakI42nzWgJT5sm4y4y/O//D4OxM75/cH28RLV+nzIN9AY+YsbuUVrUTjlLjXR6vpyxFbSsbmNuJ6BP9sww==} + '@rolldown/binding-darwin-arm64@1.3.1': + resolution: {integrity: sha512-/oKBcpu993n68qe/Jn6mdc+CwtZLCFY34aCoG9PuWvBEMmGunyGAmrxhI5R78jasyJXXT9BX2pCzwQMT6Zdj8Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@rolldown/binding-darwin-x64@1.2.4': - resolution: {integrity: sha512-fpDm4oBo6SqLvWUYCmFhdde3U9KH2fRNNMeAnAPAIwxRL345xutL0EtEUcuoxsoazdJGv/MuDBQHlCDrtbvqOg==} + '@rolldown/binding-darwin-x64@1.2.19': + resolution: {integrity: sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@rolldown/binding-darwin-x64@1.2.5': - resolution: {integrity: sha512-fqSALaUu1Wjd1nK2uW2kJDWdLCc8lx1IcY+MTY26Aurfdx19anlzhqXOgCFbBFQnlFDTn4TC1/7Nz4Bl2mLP3A==} + '@rolldown/binding-darwin-x64@1.3.1': + resolution: {integrity: sha512-vCmEnX+/BEVN+ar/jes4t+04RjQNrBoAd7PyQN7Wyklo+W1H1juKhcmlwjGaHQbZLdsYglZ8pBRwlQc+u5XLWA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@rolldown/binding-freebsd-x64@1.2.4': - resolution: {integrity: sha512-rSJoreDE/HoIzoaib6MTp5jQtCTdMHKIvItAKT/ImS6Y6Ww76oUaeMyp4Vc/fAgd/ehji068IxetHXAnqUwN9A==} + '@rolldown/binding-freebsd-x64@1.2.19': + resolution: {integrity: sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@rolldown/binding-freebsd-x64@1.2.5': - resolution: {integrity: sha512-/vCnNxlkxs9tKxNDcyWUePpJ/PgTzxIaVhoM5SmG8UV+GR/IcPam4VYxi7GIMo7PSDuNqlJqvprqii9NqqVCMw==} + '@rolldown/binding-freebsd-x64@1.3.1': + resolution: {integrity: sha512-/76gLsW8sjHDcLFvqsXKWOKCtfzyUUuEmKP2jz6twjGVaVAkULflI7ny+NDE955RX0xYR4qLzvk+g8IgnYHsNQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@rolldown/binding-linux-arm-gnueabihf@1.2.4': - resolution: {integrity: sha512-/jm8OGHgn7oGaJu3i/qZI9spUGcJ+y/lk43ttQ/iO1tOd9NissG6o97bighBCiL+BKRngmcDuR6ikfwYdJmVuQ==} + '@rolldown/binding-linux-arm-gnueabihf@1.2.19': + resolution: {integrity: sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@rolldown/binding-linux-arm-gnueabihf@1.2.5': - resolution: {integrity: sha512-abk0NLA519LxRCszmbE0jYKuQ9YPocOXTiOXOo6Yr+YAT95VH+PtqYAjOJvGKt3viEd/x4qzabAlwd5bHOOARg==} + '@rolldown/binding-linux-arm-gnueabihf@1.3.1': + resolution: {integrity: sha512-oci8r+L/3490VrKGcbJcqweykeFdV4DPn3FUxitWmzZQeGmsZCZ0oeCTU1XK3nV3UeqCVNAZy4lXsYE3RyCPHg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@rolldown/binding-linux-arm64-gnu@1.2.4': - resolution: {integrity: sha512-tIP06BeD9EqvECBrPZ+sqdPlYrT+aYaAiu1wYziVx5elRK/ftm33JxVDy2bXGbr6J0CrtirCkR87/X5a2euEng==} + '@rolldown/binding-linux-arm64-gnu@1.2.19': + resolution: {integrity: sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-arm64-gnu@1.2.5': - resolution: {integrity: sha512-Y7eALiJ8lr0M2HH103Js+g7V34wf6snlpZLAsHI90uLhr3PVlNsbFVAXJC9d/V6BnPyKtpSwI+NcB/RLxsQxuA==} + '@rolldown/binding-linux-arm64-gnu@1.3.1': + resolution: {integrity: sha512-tcMHkX6NWVRE6Aqr3zXjpAvP9DIMxcifdaCvaTEVpdqRZn1EAeP3PcUtABxmJHU60PJB+dH3uMR/vsHsoAxdYA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-arm64-musl@1.2.4': - resolution: {integrity: sha512-Ql1Q0EQqVThvn9VAVlwNzsUvbSFtCMGjLpRRi4pk5i7NZZ4n5ISiLMjHYtus4VQ2PvkSw24zyaCVsiS+sXPj1w==} + '@rolldown/binding-linux-arm64-musl@1.2.19': + resolution: {integrity: sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@rolldown/binding-linux-arm64-musl@1.2.5': - resolution: {integrity: sha512-xMvZgnbZg4YVnR/AX2b3oOPDTFYJvUVaJg5FedA/LuvexAtXibZQej4cnTkw3rjsJ/ggUROB64TdtETiim+FYA==} + '@rolldown/binding-linux-arm64-musl@1.3.1': + resolution: {integrity: sha512-rH04pFXdQfVI71O4U/yrcQlEmQAhUzuG9kNGhNdxGSAxtxB45lQ7XpuXmIV53eQTEjfWyl9NmAV9MOE/fux2AQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@rolldown/binding-linux-ppc64-gnu@1.2.4': - resolution: {integrity: sha512-GjbjXD4XXfN19D0LZNbmiCBUoDiRACsYHr0yaIbbn8aFsXjHZifcYqu/W5Er5X2X990WjHXFrxarn5chzItorQ==} + '@rolldown/binding-linux-ppc64-gnu@1.2.19': + resolution: {integrity: sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-ppc64-gnu@1.2.5': - resolution: {integrity: sha512-GRjeqTUDHTo5GwntsLaAMcBahG3nlpjftXWZLN73HiYQlhwEowvarFgQnRnQZtIp4keXX7quXFbG38uPZBa2EA==} + '@rolldown/binding-linux-ppc64-gnu@1.3.1': + resolution: {integrity: sha512-yXmS9FIJXFEIj58cey6eNtspMmi8/yeKDrqsKZ6taHnM+DB2HX5eGjdNV3V8anfThOch+zKL0TaBZIg/TeH6Vw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-s390x-gnu@1.2.4': - resolution: {integrity: sha512-p5WR0NOwaRmJ/B1b6IjEFLLivwEsf3PrdBIhRbhTCQisbo2SvHHpG4ELB/+FgQNnB88LTOF86upmJmbvZdQ2lw==} + '@rolldown/binding-linux-s390x-gnu@1.2.19': + resolution: {integrity: sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@rolldown/binding-linux-s390x-gnu@1.2.5': - resolution: {integrity: sha512-vLNTR45F2Uwc8AufkNXPmB4VliaXs+FvcheEogIzOXzO4l+LzieXF5A/TWxLy5HtqpsRCHUfd0lPVrrdgXdLHQ==} + '@rolldown/binding-linux-s390x-gnu@1.3.1': + resolution: {integrity: sha512-JSATRKvP4es7A0hGhuj4EQtZIdlACqWDxeIg59vPAvo9APsyiFmWqdFdPjeihRQx1gmuLw8mD6r+bUEIzitP3g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-gnu@1.2.4': - resolution: {integrity: sha512-4/GyVjmhR+Tc6HLJvwc1sOhPqAZtySiSMesOZyX6JQ5XBxoTDEMKQzvo07NIK6nTon/SivlZqvhzvuVBNQhObQ==} + '@rolldown/binding-linux-x64-gnu@1.2.19': + resolution: {integrity: sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-gnu@1.2.5': - resolution: {integrity: sha512-Mgj59/HTuYeK9Gz2MA+mBWKnHsAgkBSec15ZMb1st3oIfFbX7gCjOae7GydHhzcyQi9Z/7M1QuN9bR3oFqF0jQ==} + '@rolldown/binding-linux-x64-gnu@1.3.1': + resolution: {integrity: sha512-9+XaosVKfDsDIWUOoZwL1bdHD+52sZFbtbft67oGcgt5qDUq+0HJGGxZA2iD/YA0w7mPB2JrThjP0C/4bg/2+A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-musl@1.2.4': - resolution: {integrity: sha512-l9eeLsCNvPpmSXUej0etw/J1eqV0Jj1D5G/xG6YTijmE6dkv6E2QezgWbTfQk63v952DPqrjOCoiqxq7Bw0YUQ==} + '@rolldown/binding-linux-x64-musl@1.2.19': + resolution: {integrity: sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@rolldown/binding-linux-x64-musl@1.2.5': - resolution: {integrity: sha512-mY8AP0/ichsbhAxGnLa3d3+MwV0EfgrPND2bplI3Ym8T6R2pJ0N87bvrKVwNXmdy3jnr6eQBecdqx/HMknBmpA==} + '@rolldown/binding-linux-x64-musl@1.3.1': + resolution: {integrity: sha512-zmTIXU38DaLB10om1EkwdbwBBTqiVB2IDmPXpiucbFwg9qtfQyxZktMIbrJkO/NFbqP5xiGsTaqSmhrdhpSt5Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@rolldown/binding-openharmony-arm64@1.2.4': - resolution: {integrity: sha512-e0F355MSTMm3+UOqtV3L24gFUp2N5m1f8L/7d56deik6va+AXdrt9F8LbzGpeWGWRbZEDq4m8NVnJDeBtf9DZg==} + '@rolldown/binding-openharmony-arm64@1.2.19': + resolution: {integrity: sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@rolldown/binding-openharmony-arm64@1.2.5': - resolution: {integrity: sha512-8SLssA2oweAxyRgDp789ACfRb/3P+zNRJpzZxSizxF9m8NUDQ4+3xjo8ttjhVGGw6Qxb70oZiEtIjaKikCO7Yw==} + '@rolldown/binding-openharmony-arm64@1.3.1': + resolution: {integrity: sha512-hTJfT0txdxpVKSZAmrUsCSPZD7Ewh3PCtSWpLOJYkR7nYzJRTGzlyPsxMMk4yvry7RxCGvB3keEDUfxQM0/O1g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@rolldown/binding-win32-arm64-msvc@1.2.4': - resolution: {integrity: sha512-AWLi0uBRYh6QlE7OKhiz+phZC0qwtij2QZmhmOdsLdFn64m7oMpooE9ICE3lhm9xMb4SpDo2WbHcxX1iFLFtqw==} + '@rolldown/binding-wasm32-wasi@1.2.19': + resolution: {integrity: sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-wasm32-wasi@1.3.1': + resolution: {integrity: sha512-uTcfNRCMeAQLqGi8a/+TApIkSeqrj1qx3t2sxAWvlN65sCLyg8z68zsCQLyYKEAQPPaHrEWqiceMah8Zd9U01A==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.2.19': + resolution: {integrity: sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@rolldown/binding-win32-arm64-msvc@1.2.5': - resolution: {integrity: sha512-vGbruD5zquhoc8D9SViXgN2FBJtNdTyQ4DtG+SWiEGlJiAzoKcZ2xp+xuXCffhubVdt0NJlTZqkeRuERy7g8Cw==} + '@rolldown/binding-win32-arm64-msvc@1.3.1': + resolution: {integrity: sha512-vWby/lJJgE16EBaO96mg30Rj1JMT5vI/tV/bOBL5atHTO58T8Rfude/aqUyG+iALSn3NMcO2TI9fFAtPUA4/Iw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@rolldown/binding-win32-x64-msvc@1.2.4': - resolution: {integrity: sha512-UwSDJOg3dqCAejWdxclJjCsh3Qq4vLYMDxmyHqo1btz3stK2VqgwNd3mm5tuIwzSlGIQ/1H9Hr+Zn09mrezNqQ==} + '@rolldown/binding-win32-x64-msvc@1.2.19': + resolution: {integrity: sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] - '@rolldown/binding-win32-x64-msvc@1.2.5': - resolution: {integrity: sha512-e/SXpgISz+IoqVcSSI0rx/d/he8zqLex+/rCWpnHpmVfmPIUjag9H6P7zotf0gJHwPUhQxZ/mF8tr6acebT9yw==} + '@rolldown/binding-win32-x64-msvc@1.3.1': + resolution: {integrity: sha512-9mPxCYnOQ/Cu+YW/P18Ldxu9rmLFhRIxr8kSHjYwolgpUlzfAHoe+ykHP1WupPRR11+R9erOdxG7LIE8gd9YpA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] @@ -4038,177 +4576,169 @@ packages: rollup: optional: true - '@rollup/rollup-android-arm-eabi@4.63.0': - resolution: {integrity: sha512-70TeIFezKKy65LgAVyQh+w94/gjWhvPWaLaGGeMEgVrPkQhuj/M5bAYYZzIFUj9Y69oHyTm5Um/R6gcLh4A8JA==} + '@rollup/pluginutils@5.5.1': + resolution: {integrity: sha512-P9ZvnfouRu4MSC+ilERaw6FmZs8zqKhpHxEs4aGDGWQAMzQGXnhvCSvoNwokfNvdt7t3Y5Y4p6gStQgezeIqug==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + + '@rollup/rollup-android-arm-eabi@4.68.2': + resolution: {integrity: sha512-ItKrNMkEL3hy85kLBXwB0+M6CWWVI8vr7RV+Eb7oDlQIMXLaiEhGfdaj5jAUadYn2v3nwzAhIRl/nLyjAqV9vQ==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.63.0': - resolution: {integrity: sha512-YC86tYIHK6M1IV+wbzO+Bxk8RCBr6ZyWYgWxUCzaZD8mc8rrFoIJDNzDrkHBYRc/wKdrsIXmm6/F7NzrAO+OrA==} + '@rollup/rollup-android-arm64@4.68.2': + resolution: {integrity: sha512-dCkT8BMPLo6X6GCFVtuzrnr981PpJSeK4ZO/d/mZdJ/ao61Qa1Usd/OHIQ69MQgw4qQclR/X6uRRUONiWwD8cw==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.63.0': - resolution: {integrity: sha512-oI+ECtUcli0y0fi4xpW82GdPIXdTkI8G8DSjG2LRuw09fPAGykaWYH/hXxiKuTxiAjiPSTIIuYUqof5Z2hShWw==} + '@rollup/rollup-android-x64@4.68.2': + resolution: {integrity: sha512-p2jkKiscqQOGmyL6qu+KvJctvBc3SQTd+Xi2lQYn5QvFLEWz+QI8Z9iI+xcIjez6vKRsSnWP56Y3Ep7g3Stiug==} + cpu: [x64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.68.2': + resolution: {integrity: sha512-aVIfOteo5zoX8aL742H/S3QsyN6aokNYjdzrLnQBKxgRVoh4cibTErpi61RzSmrv2hBzDB1i751hwwdc8QK0vQ==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.63.0': - resolution: {integrity: sha512-NwV+1s7TiKrMe4owHyKB/dTLD7ZJD0YEBEhIz+hvav1Cu1GReJjF+rsdNwjzENQeIAbE/CoNiaAc5Vz2h5DPAA==} + '@rollup/rollup-darwin-x64@4.68.2': + resolution: {integrity: sha512-+Wuf4TFTHiE/WnjKgH1SkNf/9D5ddoed1UR0p3jxjNAGemdeeQRL+r1bJ1LlZyha0VKDBYLB2U/a9a9KlSw4Kw==} cpu: [x64] os: [darwin] - '@rollup/rollup-freebsd-arm64@4.63.0': - resolution: {integrity: sha512-tWtHBTu5gOPK4u4Urtk4qAHW3zZ9rQAmbssO8gp7ELvGTGI3aCiq6NqyTQ0PCIg7KbHJF2UkGDDs77YZGxfjCA==} + '@rollup/rollup-freebsd-arm64@4.68.2': + resolution: {integrity: sha512-feKK2dc13j/6D9mAp7XKhBM/VUqn0N/xRgP6rT7/mdRVVJUaeZ4lsJ9hN90aTi0k3OD+mkjlcN01vQ96Ac9VzQ==} cpu: [arm64] os: [freebsd] - '@rollup/rollup-freebsd-x64@4.63.0': - resolution: {integrity: sha512-2qPoJiwTvtHQ27NnYvTnsgk8laXWYuVmNESG8WFZBcEPKLfZ3I27qBJarjVRQtwGeYyRfq5ZowHXih9lm2BItw==} + '@rollup/rollup-freebsd-x64@4.68.2': + resolution: {integrity: sha512-s1oGXPGX1PNqdi9TLWD+RwtPEYf/BOTbCcq4anJBqNbzyjucti86ldYH37eKvsyTP7Bl5/Hf8XmbIxCz/iafTA==} cpu: [x64] os: [freebsd] - '@rollup/rollup-linux-arm-gnueabihf@4.63.0': - resolution: {integrity: sha512-FQwsTRvLNuHoTdICABJQfbPUSEueISGmnpT06tXTMpfprf5NiKLSXKA0A+w45wJnCmZAnzgqBwbt6ARFuyOi5w==} + '@rollup/rollup-linux-arm-gnueabihf@4.68.2': + resolution: {integrity: sha512-ksR3ZmzHrm6HOUP8UlDBy5hNTcG9cEIa3EyGnxn5BjorLRjBh4ucxhwjwwVEm0dqcIN4Egc/XjDUiPQwN1ic9A==} cpu: [arm] os: [linux] libc: [glibc] - '@rollup/rollup-linux-arm-musleabihf@4.63.0': - resolution: {integrity: sha512-BBVTXziw8mY1a4ZbWME9tZyfzqXCDPqaC7Z3heQ29p5dkvXzwL0NwelO8zLa8c3RBKvl3YTuSnBgsBhYBtwjIw==} + '@rollup/rollup-linux-arm-musleabihf@4.68.2': + resolution: {integrity: sha512-STZVVBM35wULVsQah0xKfCBQMPpHliOfjnRaUNT35jrbpfapUrD8ix6Yhl7tLHW0xQSWotXSSghjUi/DclwRSw==} cpu: [arm] os: [linux] libc: [musl] - '@rollup/rollup-linux-arm64-gnu@4.63.0': - resolution: {integrity: sha512-w2Iyy9+RqKwx3d9qWMKsJg0FfRBsY0/pXNv0mCQ3ueRvJI6+QAScfD4nrMlzFLs2HNVW6Ew+mtZfDl9b7Ew5/Q==} + '@rollup/rollup-linux-arm64-gnu@4.68.2': + resolution: {integrity: sha512-Fm/GPC2R0zlJYQIp9aY9L1lO2z+P+UrcvXG6fhubfo/BbMOLZlLXshnbECOTqr3pxfZFb6nNn0QgDETDtrX7TQ==} cpu: [arm64] os: [linux] libc: [glibc] - '@rollup/rollup-linux-arm64-musl@4.63.0': - resolution: {integrity: sha512-YK++KtrFRHYE0P6/RtYEAy9t8F37znP+K03RrIuLPYOL6SVlObRumf/0OE4V/h63xL9DwkWbNssZfmA9hawuDA==} + '@rollup/rollup-linux-arm64-musl@4.68.2': + resolution: {integrity: sha512-VoqlckWcwNF3WqsUkLZg91zYFgBvrC37Lc5e8AU+BKdCUFDMPoN0Rsin/LvF+rBVF527gWo5KT0oHkaAZaL1GA==} cpu: [arm64] os: [linux] libc: [musl] - '@rollup/rollup-linux-loong64-gnu@4.63.0': - resolution: {integrity: sha512-aBfOG6fP7YkkPmTqPwufRJeFyz7WPpECv9XNbnsk9+vg7rxdih0lbtEel7jcRng4LZrrmU3FfitCFyEj4BWDWg==} + '@rollup/rollup-linux-loong64-gnu@4.68.2': + resolution: {integrity: sha512-Zr8X/SUf7Jjwxt99BqPDF/Wq+sz4oUBIP6HBaFQWwb8wO1nV6LBIpD6jB9cMybLho93Z+B8rrN0uXEL6oNOUJQ==} cpu: [loong64] os: [linux] libc: [glibc] - '@rollup/rollup-linux-loong64-musl@4.63.0': - resolution: {integrity: sha512-LGaHEOeHNAag9VuS1Crs5DFg4RrU9MPi2nVnNJk9DTePx/B6RRYKVmrIXt2h7YOJlwjaFJ6lwtFDliZxScTLrQ==} + '@rollup/rollup-linux-loong64-musl@4.68.2': + resolution: {integrity: sha512-2EhrYEJNXIyhSZESwm/kCke1tiH7QAPOU3v3MsLM9J+Nfn2QCDe/pGROUAvYFK0BL2MEbzNgfrqrbnE5CFXkLw==} cpu: [loong64] os: [linux] libc: [musl] - '@rollup/rollup-linux-ppc64-gnu@4.63.0': - resolution: {integrity: sha512-jClvk+J0FC3b7Udvegiw5/4hErbHtmsNsQgENnKXDWtNCJXsJYZH5WURvu7imDOO38xYml24eeh5x3A04ppwCw==} + '@rollup/rollup-linux-ppc64-gnu@4.68.2': + resolution: {integrity: sha512-IC0dYuEQknw0m2FYBNBKlbrgBJBH5OMRiaRfCc4CFSpYnmDnqTpNSv+TgX+loezGTdRjBNZuYZi3t+Oc5NxNYg==} cpu: [ppc64] os: [linux] libc: [glibc] - '@rollup/rollup-linux-ppc64-musl@4.63.0': - resolution: {integrity: sha512-0OJlaGK+8+B777Ql5okIpD7ua5Ro9+VB9Ve0OKa28OQJZ1RbuUBVNHK/e3pr4BROqsyPl1JrPO1ZxJseCNffcA==} + '@rollup/rollup-linux-ppc64-musl@4.68.2': + resolution: {integrity: sha512-Zlzm6fGuDvtAqMEl071/g17vxq6u2Y2v/rON/gDY4NvzWLJ41BGAlwhF3QuAzwq05zIPo4LYzdqwhx3oisYCUw==} cpu: [ppc64] os: [linux] libc: [musl] - '@rollup/rollup-linux-riscv64-gnu@4.63.0': - resolution: {integrity: sha512-Ygsx+HoNH7afwi1bTIXbnTvVnsO+zurPLSYxybV1hHFVU72OWOCl6v05ql/z0hkpAPx+DK7Kn9Bi7MayCcjLTA==} + '@rollup/rollup-linux-riscv64-gnu@4.68.2': + resolution: {integrity: sha512-KhEpYRtHZ3Kj4shavjXeH+K1bQlA6UbP6MJ45rMPF/11JlZb1SRNLeuWCdigUEoMMaFO4+LwwcS+ew1SoLJu/g==} cpu: [riscv64] os: [linux] libc: [glibc] - '@rollup/rollup-linux-riscv64-musl@4.63.0': - resolution: {integrity: sha512-pDQxtMGb+OvG3fLwR2OkZlSd47hW+kWg4BYMG/++sR6RqorQccwPTDsxda5hPwiIeIErAnCF9ma3SAU06bdQtQ==} + '@rollup/rollup-linux-riscv64-musl@4.68.2': + resolution: {integrity: sha512-LPn9qvPsM/Ofd6Ekq3im6nB8Tk1ruJhTd3x/2bJkTR8m/XTsfxA+EU0RJ23WJqgJg123kitHAqbEK7B4cL1uPg==} cpu: [riscv64] os: [linux] libc: [musl] - '@rollup/rollup-linux-s390x-gnu@4.63.0': - resolution: {integrity: sha512-0BnUG9mS8I4SSHr3XsxVhuCMEiu+rX61xxZF5vujso4LaiAGFZFxvDjg6Xn6tLPNTUAfuCvQYas4LMQMVsKRSQ==} + '@rollup/rollup-linux-s390x-gnu@4.68.2': + resolution: {integrity: sha512-Q1+E+pzSP+FiXuIZtxKR+pK7l2KQ9gsM+VaFPv1LR277kp7l61crG46WGLKLLay3Js5cvyU9Keqdzxa1EcFO+g==} cpu: [s390x] os: [linux] libc: [glibc] - '@rollup/rollup-linux-x64-gnu@4.63.0': - resolution: {integrity: sha512-Adu/VttB1dpPNW+FEacrZ+xVm9tFty84+RrFzsqlFaPxoJB+9XXyDGtp5dCOoBwGBIEVH0To7lExFXEx0BIF4A==} + '@rollup/rollup-linux-x64-gnu@4.68.2': + resolution: {integrity: sha512-3Btp4Lca/WzsmbaKu9Lh9d/XwyRDIegd/5khRBusHGw/Ll6SoF5Shn63OrjPdkLcpNi2PGDApXzNmxriRxGYjA==} cpu: [x64] os: [linux] libc: [glibc] - '@rollup/rollup-linux-x64-musl@4.63.0': - resolution: {integrity: sha512-NQ3bDvjUbFKmP23671xUlXtKmqVsUBd6M4PQCvbmNtOy06hnQIdKHy8oG/6S3R/S6He1JgPk6A5VT+prAJMYEw==} + '@rollup/rollup-linux-x64-musl@4.68.2': + resolution: {integrity: sha512-5SKVaUiVs18+DGBnpg0mORGxgq/0udczngGxV/vf2nvK1djqpOKIxY/+8rBWxAbWGRE4RnnwxWabDwJN3pCwIQ==} cpu: [x64] os: [linux] libc: [musl] - '@rollup/rollup-openbsd-x64@4.63.0': - resolution: {integrity: sha512-u2eDAl4+0aFvA13GxlGBtTI3SS3sdgwgtV0HyjZ0QaQVCgNE+jqNGey+GtxWiq+wxr/UycAx/OnfJzApCFamvA==} + '@rollup/rollup-openbsd-x64@4.68.2': + resolution: {integrity: sha512-KBpm48/lESsHgWd+dRlcy18APBYhXU4Jb6VlJoqbpWNwfpztFXwP22qVv9aHd3k1quSrmLeJwYLc7rpQ+BFZrw==} cpu: [x64] os: [openbsd] - '@rollup/rollup-openharmony-arm64@4.63.0': - resolution: {integrity: sha512-XvRb5vfW3wAZQ+ZUG21AnHHDKtNcw99eigzEhjr//NZ3u7SoBaPP0seSc7FgP7p1epAEdAoZckMW9WY/+4w70w==} + '@rollup/rollup-openharmony-arm64@4.68.2': + resolution: {integrity: sha512-o0D0bfRW8QGA1Ph6OzqVHMq5LRu1xkr1iM7qQIXUSFuR60ddXeDhN9UR4bUBPLYsrT46sZwwgQa51TWtBV3r5g==} cpu: [arm64] os: [openharmony] - '@rollup/rollup-win32-arm64-msvc@4.63.0': - resolution: {integrity: sha512-iZPmniy4kNBf5yo2RezbkYNNK5HPbXE9+g+twnbqSng7dtLEJy1SKoxiE/ni4FDacjyuZpEeb9U054N4EoKHYw==} + '@rollup/rollup-win32-arm64-msvc@4.68.2': + resolution: {integrity: sha512-r17kcu5kmd6WQwokYmfBnfwM/icureCWCPjpJVALcrSv5Lfy6Ggk9azxXor6hILhCHbc/4IfEiv+L5RXaOHinA==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.63.0': - resolution: {integrity: sha512-mFBBd+LF37fnE8JnYUOH+imj0aPFPK30vpar4ehJkgnLj9sZn8ZxiRENmLtgIwxK7TC8klF6N57fxdNBwQoqOA==} + '@rollup/rollup-win32-ia32-msvc@4.68.2': + resolution: {integrity: sha512-yUtOqq7ZrQoZ3WiHSR6QGTdOl4YgMHqXIYSBYU6siIcC0YF0pEwx7aGsPTm2mRwrmW6SMJkxzEdFm6wqXpmbNw==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-gnu@4.63.0': - resolution: {integrity: sha512-ujeqEY3B+zbGn3Z4Q03cUBG/LGWnBJncVT36WER31LcOsQk9+1dmINKKtvmmfChUvRbK1G0R8OhMWFgHgaZtAw==} + '@rollup/rollup-win32-x64-gnu@4.68.2': + resolution: {integrity: sha512-5IYoWxQGo5WECbJbImIf2w33uCHJNLv4o/FQtSyeYDed7AC6zx84NsEcGYccoI2geDEYkrxUXcsYK/6EhwVSIg==} cpu: [x64] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.63.0': - resolution: {integrity: sha512-hncn90N4sOky0L2LKE5oESKLbxCPeVo4eLA2LSMoDzM+879ml4WSr+Rr4DWknNIVVvS1Hirkc9hx02W6YxS8rQ==} + '@rollup/rollup-win32-x64-msvc@4.68.2': + resolution: {integrity: sha512-ee+c14ggUiM7lg4PtCjSBYU9O9dHp4FFespRnd5yj7SilUBJCL3x3aHlB+sIqbGjcPo3pEyODASnfKJuZ26YBw==} cpu: [x64] os: [win32] - '@schematics/angular@22.2.0-next.5': - resolution: {integrity: sha512-d6+gwr0GIu9uuDv3HlNlD7bEnaRAnS9AE6bW7nmfYIVDbpVskOC56kHhtzmrDBCMlzSt/03bDGWVYSq0g0daig==} + '@schematics/angular@22.3.0-rc.0': + resolution: {integrity: sha512-hVKxzAGq5+daEHgdPUrGcQlc9ltDWE9UUS/dIXBq6ceaB/Bh8IcAmIWYcKbpr5eIY5qhDBerKavIobQZf0efRg==} engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} - '@secretlint/config-creator@10.2.2': - resolution: {integrity: sha512-BynOBe7Hn3LJjb3CqCHZjeNB09s/vgf0baBaHVw67w7gHF0d25c3ZsZ5+vv8TgwSchRdUCRrbbcq5i2B1fJ2QQ==} - engines: {node: '>=20.0.0'} - - '@secretlint/config-loader@10.2.2': - resolution: {integrity: sha512-ndjjQNgLg4DIcMJp4iaRD6xb9ijWQZVbd9694Ol2IszBIbGPPkwZHzJYKICbTBmh6AH/pLr0CiCaWdGJU7RbpQ==} - engines: {node: '>=20.0.0'} - '@secretlint/core@10.2.2': resolution: {integrity: sha512-6rdwBwLP9+TO3rRjMVW1tX+lQeo5gBbxl1I5F8nh8bgGtKwdlCMhMKsBWzWg1ostxx/tIG7OjZI0/BxsP8bUgw==} engines: {node: '>=20.0.0'} - '@secretlint/formatter@10.2.2': - resolution: {integrity: sha512-10f/eKV+8YdGKNQmoDUD1QnYL7TzhI2kzyx95vsJKbEa8akzLAR5ZrWIZ3LbcMmBLzxlSQMMccRmi05yDQ5YDA==} - engines: {node: '>=20.0.0'} - - '@secretlint/node@10.2.2': - resolution: {integrity: sha512-eZGJQgcg/3WRBwX1bRnss7RmHHK/YlP/l7zOQsrjexYt6l+JJa5YhUmHbuGXS94yW0++3YkEJp0kQGYhiw1DMQ==} - engines: {node: '>=20.0.0'} - '@secretlint/profiler@10.2.2': resolution: {integrity: sha512-qm9rWfkh/o8OvzMIfY8a5bCmgIniSpltbVlUVl983zDG1bUuQNd1/5lUEeWx5o/WJ99bXxS7yNI4/KIXfHexig==} - '@secretlint/resolver@10.2.2': - resolution: {integrity: sha512-3md0cp12e+Ae5V+crPQYGd6aaO7ahw95s28OlULGyclyyUtf861UoRGS2prnUrKh7MZb23kdDOyGCYb9br5e4w==} - - '@secretlint/secretlint-formatter-sarif@10.2.2': - resolution: {integrity: sha512-ojiF9TGRKJJw308DnYBucHxkpNovDNu1XvPh7IfUp0A12gzTtxuWDqdpuVezL7/IP8Ua7mp5/VkDMN9OLp1doQ==} - '@secretlint/secretlint-rule-no-dotenv@10.2.2': resolution: {integrity: sha512-KJRbIShA9DVc5Va3yArtJ6QDzGjg3PRa1uYp9As4RsyKtKSSZjI64jVca57FZ8gbuk4em0/0Jq+uy6485wxIdg==} engines: {node: '>=20.0.0'} @@ -4225,36 +4755,36 @@ packages: resolution: {integrity: sha512-Nqc90v4lWCXyakD6xNyNACBJNJ0tNCwj2WNk/7ivyacYHxiITVgmLUFXTBOeCdy79iz6HtN9Y31uw/jbLrdOAg==} engines: {node: '>=20.0.0'} - '@shikijs/core@4.4.3': - resolution: {integrity: sha512-QCR4q2ZO/ILJEuwiBMel4wdcTDb1JGwfjKTxPDF6x8ixOaluPrVqIn06C99AcRPhmYlBR56d/Fb+GN58GzExpg==} + '@shikijs/core@4.6.0': + resolution: {integrity: sha512-bfd4OKgvoyXYiYmMRuleA656P4V7M/Du9lcTl38Ngm6KszMj7bq4J1IGZwSYR4c95Tv5UQALtYNWUwaI9UT3xw==} engines: {node: '>=20'} - '@shikijs/engine-javascript@4.4.3': - resolution: {integrity: sha512-FbOjFJp9VLdo1Wevs10BBtVxiTWwNLqZh5Gkhjgda/ioL15YOgeSl9n+6XMa3qRlPQzfhFNe641SrynFHYG0nQ==} + '@shikijs/engine-javascript@4.6.0': + resolution: {integrity: sha512-K0oqxFoL+kEMdz89mHLFO15Tsbv3kFZ6WR1cXZKMvLSc+oqaM00A6pyga1qSeXB22dP0tTiSApRcGBaKWsEccg==} engines: {node: '>=20'} - '@shikijs/engine-oniguruma@4.4.3': - resolution: {integrity: sha512-EcOQkxdxGQrc1Row/cC2c96/v1dbZqGnEVu1qTuT/MJmp6+cXCvQussowVmCv5Tqr3KuY3c7IbM6HTW3LJ1k9w==} + '@shikijs/engine-oniguruma@4.6.0': + resolution: {integrity: sha512-aggd6Q7SuJOXNnsUbfG2XesxBJKBMAw/PDTUo9PyRjMaaJJ2dNrI+q0C+25ARXAK9yLHAlwxc9oRT2u68YKZ7w==} engines: {node: '>=20'} - '@shikijs/langs@4.4.3': - resolution: {integrity: sha512-ePic0yfAJGOF83D5wBHK/00EjK65oahBYxFk5epgq33WRv7X9UuxLEV8PtR0szC0z8dl7INIpIodB99JRFlR+A==} + '@shikijs/langs@4.6.0': + resolution: {integrity: sha512-1yMEX3oCVV54LUq/ovfpRkDQoYDkcvjSWFFa/YLUDMiSoRzMi2uxLJYbv41ahT8Lu9lFMaa7hecd3Q39trqUyg==} engines: {node: '>=20'} - '@shikijs/primitive@4.4.3': - resolution: {integrity: sha512-m0wBeLDQDeIxRdUmrCPdQqfuUamDwRL5isCfYbguKD6NiaKpVbsv+3J81DyIKgNW5h4WAIIr8T4EkgQrBBxvaQ==} + '@shikijs/primitive@4.6.0': + resolution: {integrity: sha512-c54+TQEo9ToqgfL/AU8FpjnV09+GA9Oa7M5ROkkXteZfp5XzpAJGXjjvZQFQioJOwm/w/6Z3lIzQstAkl8coag==} engines: {node: '>=20'} - '@shikijs/themes@4.4.3': - resolution: {integrity: sha512-w8UHjeUnIR965KMWJHUPXOc2mNJUnK3vpVLYLvw5IYU2mnTTJ89E24OrJDBNiJDQ0qzb0tc4l7mrIXx5cFeIyw==} + '@shikijs/themes@4.6.0': + resolution: {integrity: sha512-qHAVAs80RiGD+IRuH9G+JPDOEc9A/kHsng4EzCUCwB9bLzW6Z0y9WETh2YyCcADJBmfrIaJ1Jp7KBNP6FHkgtQ==} engines: {node: '>=20'} - '@shikijs/types@4.4.3': - resolution: {integrity: sha512-UEJxmRR++MAGR6hugn0vgVS2W/6lWAts84FFSrnlH9sP0LNol7E5+NQ792pH8liWUhyMyjhTgSUH3k7iD7tc5g==} + '@shikijs/types@4.6.0': + resolution: {integrity: sha512-+ENG1adsKt/X7cRYw1Nl7BEpBmPOjmQ7bR/eGmHuMlT8gtOFf3KEi5l31DJYyAWhW6Y6bjP1plU7FmaxWGENFw==} engines: {node: '>=20'} - '@shikijs/vscode-textmate@10.0.2': - resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==} + '@shikijs/vscode-textmate@10.1.0': + resolution: {integrity: sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==} '@simple-libs/child-process-utils@1.0.2': resolution: {integrity: sha512-/4R8QKnd/8agJynkNdJmNw2MBxuFTRcNFnE5Sg/G+jkSsV8/UBgULMzhizWWW42p8L5H7flImV2ATi79Ove2Tw==} @@ -4287,10 +4817,6 @@ packages: resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} engines: {node: '>=10'} - '@sindresorhus/merge-streams@2.3.0': - resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==} - engines: {node: '>=18'} - '@sinonjs/commons@3.0.1': resolution: {integrity: sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==} @@ -4309,25 +4835,6 @@ packages: '@standard-schema/spec@1.1.0': resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} - '@textlint/ast-node-types@15.8.0': - resolution: {integrity: sha512-5CiH9COYmovWmExQgs7763DzX6Gy9zjkjJ7JxCC95wyTcjwQn/8poNF6fv3qzRlmx8CRRde8DHr9FcgAAiPzgw==} - - '@textlint/linter-formatter@15.8.0': - resolution: {integrity: sha512-+oU3A235NATv6Lzi4xa4kJ65PuNJlIxesaO4AvDhDWA9FWm7y4XKWaoQCW1esgaQQ6dwnUiFKArQ8TcJ86mC4w==} - engines: {node: '>=20.18.0'} - - '@textlint/module-interop@15.8.0': - resolution: {integrity: sha512-rt+OR1WYGoLOY8HkA/aBPrqufF6yUUEsKEAh7XohTsT3lp9IyZFT6zOIbjul9P4FAzsmSPkcrYjVx3Bz/IUfkg==} - - '@textlint/resolver@15.8.0': - resolution: {integrity: sha512-E88tzfX3K8Jykk+38aJ9cy8RquD8ABVOPTO2rFEESq0wcg8x6/ypdAS8ZgR7OKiGqlRF0hkO/m5PbQwVfKM3VA==} - - '@textlint/types@15.8.0': - resolution: {integrity: sha512-Anhc6y5736YIsvqae0U6k0YmB2M/QVHkEeOv2aydAn/WIkdI69dCOiDbe3/+RagS3qstFTSFWJzNRA2lUjv19w==} - - '@tootallnate/quickjs-emscripten@0.23.0': - resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} - '@tsconfig/node10@1.0.13': resolution: {integrity: sha512-gcLdvR9HO1ZJBypsOGqaP6TFEzb6vIta0KSTLt9NAQ6pXQO3cRgSVyCN6pzYqI9DlJgY71XKO0dpDhCf08b3pg==} @@ -4340,11 +4847,12 @@ packages: '@tsconfig/node16@1.0.4': resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - '@tybys/wasm-util@0.10.3': - resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==} + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} - '@types/adm-zip@0.5.8': - resolution: {integrity: sha512-RVVH7QvZYbN+ihqZ4kX/dMiowf6o+Jk1fNwiSdx0NahBJLU787zkULhGhJM8mf/obmLGmgdMM0bXsQTmyfbR7Q==} + '@types/adm-zip@0.6.0': + resolution: {integrity: sha512-4BJwT30zsKqyYk+PgJS+LQzVrLh0bHragg9etHGg679uuBbNDbSaLsJy+DaJQZM8AvESHB+t3ruVzbrn6BUsMQ==} + deprecated: This is a stub types definition. adm-zip provides its own type definitions, so you do not need this installed. '@types/angular@1.8.9': resolution: {integrity: sha512-Z0HukqZkx0fotsV3QO00yqU9NzcQI+tMcrum+8MvfB4ePqCawZctF/gz6QiuII+T1ax+LitNoPx/eICTgnF4sg==} @@ -4367,8 +4875,8 @@ packages: '@types/chai@5.2.3': resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} - '@types/chrome@0.2.6': - resolution: {integrity: sha512-8OgXtL+OcR2IpY2ul5itg0R3xmdceAM4ldcHxh4BFL20p5z7fjhpyP5KuXAp1LIxA7oQgyViKTS9d+W8Sn8jdQ==} + '@types/chrome@0.3.7': + resolution: {integrity: sha512-jWZgbHqWbTL1a5+PoyN0OJutNyejWgyZ5MdcvKo6iJE1TNRtXR3FxsC4WzNl52yZWPidfWC8NV/VUNZf+OFKcA==} '@types/cldr@7.1.4': resolution: {integrity: sha512-p4J5+33G/iniIYGkt8ry/rCoBtJWSC2xFpW9LCygtkBNznKb870KFT/LCEU2Jd9h/6g1PteglodpWBjWdCKlpA==} @@ -4454,11 +4962,11 @@ packages: '@types/d3-scale@4.0.9': resolution: {integrity: sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==} - '@types/d3-selection@3.0.11': - resolution: {integrity: sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==} + '@types/d3-selection@3.0.12': + resolution: {integrity: sha512-Qe/KWYhEiIIxGs7HrAAjMfShxKldx19SJtr5zu53f3afPsdZNz7HHtdTLXo/kqeiWNXVycI24kSnfzBYkTzpgw==} - '@types/d3-shape@3.1.8': - resolution: {integrity: sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==} + '@types/d3-shape@3.2.0': + resolution: {integrity: sha512-kVd74ta9eof3eJOvbNd1vGKS/XERRyQbT26Og63hIsvDO84cjD5gEOhsXf26w3FSoNlPVz84DOFcKv/oou+fMw==} '@types/d3-time-format@4.0.3': resolution: {integrity: sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==} @@ -4472,12 +4980,15 @@ packages: '@types/d3-transition@3.0.9': resolution: {integrity: sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==} - '@types/d3-zoom@3.0.8': - resolution: {integrity: sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==} + '@types/d3-zoom@3.0.9': + resolution: {integrity: sha512-0sE1406XBYJGiqD3AusTl9ZqC//2mIXix51tbom25gDCA8ri4xnSZg28CaSE8Srl6FClqABUKfsn0qghgdepMA==} '@types/d3@7.4.3': resolution: {integrity: sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==} + '@types/debug@4.1.13': + resolution: {integrity: sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==} + '@types/deep-eql@4.0.2': resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} @@ -4490,20 +5001,14 @@ packages: '@types/ejs@3.1.5': resolution: {integrity: sha512-nv+GSx77ZtXiJzwKdsASqi+YQ5Z7vwHsTP0JY2SiQgjGckkBRKZnk8nIM+7oUZ1VCtuTz0+By4qVR7fqzp/Dfg==} - '@types/estree@1.0.9': - resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + '@types/estree@1.0.10': + resolution: {integrity: sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==} '@types/events@3.0.3': resolution: {integrity: sha512-trOc4AAUThEz9hapPtSd7wf5tiQKvTtu5b371UxXdTuqzIh0ArcRspRP0i0Viu+LXstIQ1z96t1nsPxT9ol01g==} - '@types/filesystem@0.0.36': - resolution: {integrity: sha512-vPDXOZuannb9FZdxgHnqSwAG/jvdGM8Wq+6N4D/d80z+D4HWH+bItqsZaVRQykAn6WEVeEkLm2oQigyHtgb0RA==} - - '@types/filewriter@0.0.33': - resolution: {integrity: sha512-xFU8ZXTw4gd358lb2jw25nxY9QAgqn2+bKKjKOYfNCzN4DKCFetK7sPtrlpg66Ywe3vWY9FNxprZawAh9wfJ3g==} - - '@types/firefox-webext-browser@143.0.0': - resolution: {integrity: sha512-865dYKMOP0CllFyHmgXV4IQgVL51OSQQCwSoihQ17EwugePKFSAZRc0EI+y7Ly4q7j5KyURlA7LgRpFieO4JOw==} + '@types/firefox-webext-browser@143.0.1': + resolution: {integrity: sha512-vDoqYr4fe1dqZXmgkzpxki47AhxfwvXD2juY2pADCKykIh10u8Yq2oe3lKZ88s33pxqj7SYULEq6kFW3c6UJzw==} '@types/folder-hash@4.0.4': resolution: {integrity: sha512-c+PwHm51Dw3fXM8SDK+93PO3oXdk4XNouCCvV67lj4aijRkZz5g67myk+9wqWWnyv3go6q96hT6ywcd3XtoZiQ==} @@ -4535,6 +5040,9 @@ packages: '@types/jasmine@6.0.0': resolution: {integrity: sha512-18lgGsLmEh3VJk9eZ5wAjTISxdqzl6YOwu8UdMpolajN57QOCNbl+AbHUd+Yu9ItrsFdB+c8LSZSGNg8nHaguw==} + '@types/jasmine@7.0.0': + resolution: {integrity: sha512-6yNx9BsBSKiXO2yqLXs/GZDuD58Gkn6Ty26254FFOuw6B4XU5Xq8mAR0xFy8zHgAhqQd++y41fSJ8BdwrWXhqQ==} + '@types/jasminewd2@2.0.13': resolution: {integrity: sha512-aJ3wj8tXMpBrzQ5ghIaqMisD8C3FIrcO6sDKHqFbuqAsI7yOxj0fA7MrRCPLZHIVUjERIwsMmGn/vB0UQ9u0Hg==} @@ -4553,11 +5061,14 @@ packages: '@types/mdast@4.0.4': resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} + '@types/ms@2.1.0': + resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} + '@types/node@20.19.43': resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} - '@types/node@24.13.3': - resolution: {integrity: sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==} + '@types/node@24.19.2': + resolution: {integrity: sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==} '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -4574,9 +5085,6 @@ packages: '@types/retry@0.12.0': resolution: {integrity: sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==} - '@types/sarif@2.1.7': - resolution: {integrity: sha512-kRz0VEkJqWLf1LLVN4pT1cg1Z9wAuvI6L97V3m2f5B76Tg8d413ddvLBPTEHAZJlnn4XSvu0FkZtViCQGVyrXQ==} - '@types/selenium-webdriver@3.0.7': resolution: {integrity: sha512-tHdDdGUBKTbiLLwf5mF78EP35F31UZekG+GRNowl8G5rMQoupAT4qWn/7AaGOvmaqvROdqC3Io/hP1ZyO58QkA==} @@ -4613,153 +5121,195 @@ packages: '@types/unist@3.0.3': resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} - '@types/vscode@1.125.0': - resolution: {integrity: sha512-0icm/ZQAaism87P0ekHqi4/Ju9du+Tm0RUW+y7vqRsxY2cY0FNRX1nAnaW7nT6npPt2tfHiheZ55Zm9UhqonFA==} + '@types/vscode@1.145.0': + resolution: {integrity: sha512-mADZK4SF/j1n0+Qk4bH8NT1qTQGYDAsbhb5hStbzuB3hKP3mRH7xja5yUaIm7ExCh65Ff+C9XGwxcBvSlTCvkQ==} '@types/which@3.0.4': resolution: {integrity: sha512-liyfuo/106JdlgSchJzXEQCVArk0CvevqPote8F8HgWgJ3dRCcTHgJIsLDuee0kxk/mhbInzIZk3QWSZJ8R+2w==} - '@types/ws@8.18.1': - resolution: {integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==} + '@types/ws@8.18.2': + resolution: {integrity: sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==} '@types/yargs-parser@21.0.3': resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} - '@types/yargs@17.0.35': - resolution: {integrity: sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==} + '@types/yargs@17.0.35': + resolution: {integrity: sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==} + + '@types/yarnpkg__lockfile@1.1.9': + resolution: {integrity: sha512-GD4Fk15UoP5NLCNor51YdfL9MSdldKCqOC9EssrRw3HVfar9wUZ5y8Lfnp+qVD6hIinLr8ygklDYnmlnlQo12Q==} + + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260707.2': + resolution: {integrity: sha512-wny2pgKjGbiZtnOIHVa3tXC1UfDqxNEFzyPGmiqybedG8hipG2Nfp0l5UxbaKCjkLacUpH/W5bP2hBOMVhCOzg==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [darwin] + + '@typescript/native-preview-darwin-x64@7.0.0-dev.20260707.2': + resolution: {integrity: sha512-Afc7M5zOwo+GpfcYwz5Z8HMB2tPVsui7nNIqEuuFB73MPdVqNn/Wmpe4tP4MRri0AtJnJknoHBaTJ/VDAp/Jhw==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [darwin] + + '@typescript/native-preview-linux-arm64@7.0.0-dev.20260707.2': + resolution: {integrity: sha512-iITBa2WjjTI5N9t5l7Z4KoOSI+2zBlhbvFzsD/f8qX8QoKjz/Y4DPyBDgezYi8nkqjjksbgSOJ3/ykzhwrB9cg==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [linux] + + '@typescript/native-preview-linux-arm@7.0.0-dev.20260707.2': + resolution: {integrity: sha512-hJm/UOqZTr9FHmR7uNm8VGX4oKtfWk0Jem0zPeJFNC8ckGUfSBueyiEYMZB+XmRc1aG4x1E46y3CplP4CLHvGQ==} + engines: {node: '>=16.20.0'} + cpu: [arm] + os: [linux] + + '@typescript/native-preview-linux-x64@7.0.0-dev.20260707.2': + resolution: {integrity: sha512-du0dzi6y97Po5vDNdPJTyyijHCpaS22JLRnKZEJXBDaO9gCIymOv/5QQokFRuOlQm0bWl3i9PF4OVdGP6uAOQA==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [linux] + + '@typescript/native-preview-win32-arm64@7.0.0-dev.20260707.2': + resolution: {integrity: sha512-SsAwfhyHJ1akgBc+99z4+hwdbHsdWaKB8EwCNIMA6JfSLMeUjffrYvxu+vfMyxVtOVOz7RrRXRoiDiu4a2sCtg==} + engines: {node: '>=16.20.0'} + cpu: [arm64] + os: [win32] + + '@typescript/native-preview-win32-x64@7.0.0-dev.20260707.2': + resolution: {integrity: sha512-DL4u27stv0fo71sVhOzHSwE+YMZsbBijVI+kg5dLDLilSH79WFTJ8RSQ46vJrCMt+Gjlv/JOZP1PuLJDfioYeQ==} + engines: {node: '>=16.20.0'} + cpu: [x64] + os: [win32] - '@types/yarnpkg__lockfile@1.1.9': - resolution: {integrity: sha512-GD4Fk15UoP5NLCNor51YdfL9MSdldKCqOC9EssrRw3HVfar9wUZ5y8Lfnp+qVD6hIinLr8ygklDYnmlnlQo12Q==} + '@typescript/native-preview@7.0.0-dev.20260707.2': + resolution: {integrity: sha512-oUGp+Rep/hqMhPunyinsALUwSlzHINSxitifPiSaeqoKOKD2OlR9NE3TaPqwsl4NlGslsOSUXI1JotWQzpYCPg==} + engines: {node: '>=16.20.0'} + hasBin: true - '@typescript/vfs@1.6.4': - resolution: {integrity: sha512-PJFXFS4ZJKiJ9Qiuix6Dz/OwEIqHD7Dme1UwZhTK11vR+5dqW2ACbdndWQexBzCx+CPuMe5WBYQWCsFyGlQLlQ==} + '@typescript/vfs@1.6.6': + resolution: {integrity: sha512-gXw0+tpchiQUjTcbnNIPnyLFIhbwJ7M1VaxLQ1vXhjQxtTBK3sdDLY1ih0jxCu1I5K3V0dDxq8CkVZtIMspC3A==} peerDependencies: typescript: '*' - '@typespec/ts-http-runtime@0.3.8': - resolution: {integrity: sha512-bLMpVcWZNzq6lYOybwFwOAR1IXKcHnhUNqYeHjl1bET/qE3jFPFH+p8Wrh3rU4xwdnifPxmKNESBYnvnmc75aA==} + '@typespec/ts-http-runtime@0.3.10': + resolution: {integrity: sha512-vddvvtZ7sejSlCv+OIkn2ztjB1O31Fc2JsxI/YK725r3elXXlF/J3o3lbXJFRhoeWRWK1tjdZ+GTi6Fdtrp+EA==} engines: {node: '>=22.0.0'} - '@ungap/structured-clone@1.3.3': - resolution: {integrity: sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg==} + '@ungap/structured-clone@1.4.0': + resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==} - '@unrs/resolver-binding-android-arm-eabi@1.12.2': - resolution: {integrity: sha512-g5T90pqg1bo/7mytQx6F4iBNC0Wsh9cu+z9veDbFjc7HjpesJFWD7QMS0NGStXM075+7dJPPVvBbpZlnrdpi/w==} + '@unrs/resolver-binding-android-arm-eabi@1.13.0': + resolution: {integrity: sha512-60E5mvmIiW+i1E/HYeSX4iE4A8s9NJSGYPu7UM0DJght1c2tTkWwuyDyAwzsEXhKM/XbbndfnTiXdfrf27d2hw==} cpu: [arm] os: [android] - '@unrs/resolver-binding-android-arm64@1.12.2': - resolution: {integrity: sha512-YGCRZv/9GLhwmz6mYDeTsm/92BAyR28l6c2ReweVW5pWgfsitWLY8upvfRlGdoyD8HjeTHSYJWyZGD4KJA/nFQ==} + '@unrs/resolver-binding-android-arm64@1.13.0': + resolution: {integrity: sha512-qlh/JR3Tuy1cJ7xtf5pR4ykvLiK6os7X7EL2+zXZbrVc/s+yB8DoFdQrCAW9/a2TOxPVbR7QVNpkPWh7UWIsEQ==} cpu: [arm64] os: [android] - '@unrs/resolver-binding-darwin-arm64@1.12.2': - resolution: {integrity: sha512-u9DiNT1auQMO20A9SyTuG3wUgQWB9Z7KjAg0uFuCDR1FsAY8A0CG2S6JpHS1xwm/w1G08bjXZDcyOCjv1WAm2w==} + '@unrs/resolver-binding-darwin-arm64@1.13.0': + resolution: {integrity: sha512-yynnnnJXUC99WeD1GfvuXPKsKNfvgzGYC2eRayFnUfsHVROjqrbFOkFQLZiSx1H8+PLy5BzU8vqyPyLqbRfeBQ==} cpu: [arm64] os: [darwin] - '@unrs/resolver-binding-darwin-x64@1.12.2': - resolution: {integrity: sha512-f7rPLi/T1HVKZu/u6t87lroib16n8vrSzcyxI7lg4BGO9UF26KhQL44sd9eOUgrTYhvRXtWOIZT5PejdPyJfUA==} + '@unrs/resolver-binding-darwin-x64@1.13.0': + resolution: {integrity: sha512-t8PXE0Ip9tmGyhRlfVsnEbzGM5iSvJIeNIXciUACjzpg0mmPs13fGv2x7W8sBa0S8zbIiohxKXS9fL/LXW/ERQ==} cpu: [x64] os: [darwin] - '@unrs/resolver-binding-freebsd-x64@1.12.2': - resolution: {integrity: sha512-BpcOjWCJub6nRZUS2zA20pmLvjtqAtGejETaIyRLiZiQf++cbrjltLA5NN/xaXfqeOBOSlMFbemIl5/S5tljmg==} + '@unrs/resolver-binding-freebsd-x64@1.13.0': + resolution: {integrity: sha512-qdtl9GDWDoDx6rhzF4RU5SJutV3lcLOiTiyqD6nBxYfEO6lAgLNukfrA+HJ2u2OiyWvV8JW5iEWD3LoONw7lYA==} cpu: [x64] os: [freebsd] - '@unrs/resolver-binding-linux-arm-gnueabihf@1.12.2': - resolution: {integrity: sha512-vZTDvdSISZjJx66OzJqtsOhzifbqRjbmI1Mnu49fQDwog5GtDI4QidRiEAYbZCRj9C8YZEW+3ZjqsyS9GR4k2A==} + '@unrs/resolver-binding-linux-arm-gnueabihf@1.13.0': + resolution: {integrity: sha512-VrMUVwdrScTarsh4B6aUhTtziUavSlglo4Hi8XZ6CpAe4+j3nquY+XoP+tYkiSBDsXZ8386ne4pv4YYYBNi02w==} cpu: [arm] os: [linux] - '@unrs/resolver-binding-linux-arm-musleabihf@1.12.2': - resolution: {integrity: sha512-BiPI+IrIlwcW4nLLMM21+B1dFPzd55yAVgVGrdgDjNef+ch03GdxrcyaIz8X9SsQirh/kCQ7mviyWlMxdh2D7g==} + '@unrs/resolver-binding-linux-arm-musleabihf@1.13.0': + resolution: {integrity: sha512-zSbTVwaxiTC+zYJ9xVNTC6c+BYO/kOV/odcTI3bHuFFXa+XmjLoUkb/8UxsZeU5YF4K000m17wrXoTblNWuzOg==} cpu: [arm] os: [linux] - '@unrs/resolver-binding-linux-arm64-gnu@1.12.2': - resolution: {integrity: sha512-zJc0H99FEPoFfSrNpa91HYfxzfAJCr502oxNK1cfdC9hlaFI43RT+JFCann9JUgZmLzzntChHyn13Sgn9ljHNg==} + '@unrs/resolver-binding-linux-arm64-gnu@1.13.0': + resolution: {integrity: sha512-Z/Rax87moZHsuvJ8awdfP+zrMlsCt3d7mggUPIiPe32KpeagimyzJWnZSMQoV67an9uVQghyh92Pc0VprITnYA==} cpu: [arm64] os: [linux] libc: [glibc] - '@unrs/resolver-binding-linux-arm64-musl@1.12.2': - resolution: {integrity: sha512-KQ3Lki6l+Pz1k/eBipN41ES+YUK30beLGb9YqcB1O542cyLCNE6GaxrfcY3T6EezmGGk84wb5XyO9loTM9tkcA==} + '@unrs/resolver-binding-linux-arm64-musl@1.13.0': + resolution: {integrity: sha512-oUzXz8hNvFLNEAag8lBKJe1euiV2dmGHAR+eQ5fNpsZO0F1K7IMRb4J6pqYsd7uLMRQNPiu5A1WKUJHbFLWbbw==} cpu: [arm64] os: [linux] libc: [musl] - '@unrs/resolver-binding-linux-loong64-gnu@1.12.2': - resolution: {integrity: sha512-3SJGEh1DborhG6pyxvhPzCT4bbSIVihsvgJc13P1bHG7KLdNDaF9T3gsTwFc7Jw/5Y5/iWOjkEx7Zy0NvCGX3Q==} + '@unrs/resolver-binding-linux-loong64-gnu@1.13.0': + resolution: {integrity: sha512-BxhGYvZBg0YrvNOeSEGR3eNklwXYy0mUJk7oeGJvZoQMKM68zYvbbf52+fQI3Le4X0fW276FTKIoTwjpMob80A==} cpu: [loong64] os: [linux] libc: [glibc] - '@unrs/resolver-binding-linux-loong64-musl@1.12.2': - resolution: {integrity: sha512-jiuG/Obbel7uw1PwHNFfrkiKhLAF6mnyZ6aWlOAVN9WqKm8v0OFGnciJIHu8+CMvXLQ8AD51LPzAoUfT21D5Ew==} + '@unrs/resolver-binding-linux-loong64-musl@1.13.0': + resolution: {integrity: sha512-nZcIuup9Ar3gAlqoZfX/KW6x83TMI11tLpCjldZG5M1KeY8qNUPNJJ71+sPvG8HMBpoh+ix1pAm5gkMFvcSAcQ==} cpu: [loong64] os: [linux] libc: [musl] - '@unrs/resolver-binding-linux-ppc64-gnu@1.12.2': - resolution: {integrity: sha512-q7xRvVpmcfeL+LlZg8Pbbo6QaTZwDU5BaGZbwfhkEsXJn3Was8xYfE0RBH266xZt0rM6B7i8xAYIvjthuUIWHg==} + '@unrs/resolver-binding-linux-ppc64-gnu@1.13.0': + resolution: {integrity: sha512-AG6AgdDrkRNjAPwD/cftFJGgZUWCiJX+E8vpYCDEnwFHLTHZ7ppBiU6/vyPPwrfjcPUPQCDbbxE/eZUXsx49jQ==} cpu: [ppc64] os: [linux] libc: [glibc] - '@unrs/resolver-binding-linux-riscv64-gnu@1.12.2': - resolution: {integrity: sha512-0CVdx6lcnT3Q9inOH8tsMIOJ6ImndllMjqJHg8RLVdB7Vq4SfkEXl9mCSsVNuNA4MCYycRicCUxPCabVHJRr6A==} + '@unrs/resolver-binding-linux-riscv64-gnu@1.13.0': + resolution: {integrity: sha512-6vOqYGcAmzpRWpUURWutzvpf1qJ6eOu5cfYObdtPJnzZ0+Kw4cw+ZkZJqIYEh8fPuTBwSYDL/FwlUhma1G/JVQ==} cpu: [riscv64] os: [linux] libc: [glibc] - '@unrs/resolver-binding-linux-riscv64-musl@1.12.2': - resolution: {integrity: sha512-iOwlRo9vnp6R6ohHQS11n0NnfdXx/omhkocmIfaPRpQhKZ+3BDMkkdRVh53qjkFkpPddf+FETA28NwGN7l5l+w==} + '@unrs/resolver-binding-linux-riscv64-musl@1.13.0': + resolution: {integrity: sha512-4HeIn0S2KVUowK0A+EweXrDvZ8CKHEfTtif0kx9vt3ORNsqcXNFFIFnHE0tizma3/Gt5OGrU2ovYNuj+D/bN4g==} cpu: [riscv64] os: [linux] libc: [musl] - '@unrs/resolver-binding-linux-s390x-gnu@1.12.2': - resolution: {integrity: sha512-HYJtLfXq94q8iZNFT1lknx258wlkkWhZeUXJRqzKBBUJ00CvZ+N33zgbCqimLjsyw5Va6uUxhVa12mI+kaveEw==} + '@unrs/resolver-binding-linux-s390x-gnu@1.13.0': + resolution: {integrity: sha512-JfkvqY7NZbxyhexLE+g6Z8Hsx4utHOGaVazAVghPiBn8Upw2iERZPpKYnW1FBVU4WStv/BiIsoK/Muke0E7asA==} cpu: [s390x] os: [linux] libc: [glibc] - '@unrs/resolver-binding-linux-x64-gnu@1.12.2': - resolution: {integrity: sha512-mPsUhunKKDih5O96Y6enDQyHc1SqBPlY1E/SfMWDM3EdJ95Z9CArPeCVwCCqbP45ljvivdEk8Fxn+SIb1rDAJQ==} + '@unrs/resolver-binding-linux-x64-gnu@1.13.0': + resolution: {integrity: sha512-iwjLeVdZo/8v5OKAeRIC+4VQV045t1EPZr5B/AVLgUQ04IdtNthWzg6not2cNjZgH2gHpSf4fOXMmN83aLO1FA==} cpu: [x64] os: [linux] libc: [glibc] - '@unrs/resolver-binding-linux-x64-musl@1.12.2': - resolution: {integrity: sha512-azrt6+5ydLd8Vt210AAFis/lZevSfPw93EJRIJG+xPu4WCJ8K0kppCTpMyLPcKT7H15M4Jnt2tMp5bOvCkRC6A==} + '@unrs/resolver-binding-linux-x64-musl@1.13.0': + resolution: {integrity: sha512-TOh1fqOjyq1OPoht3BDLd7Y+HeMJRwd5g2VNmCQclknEbjp4py5GFRmT4L/rOybF5Af8q0LT9zHs2WGkwlqtrw==} cpu: [x64] os: [linux] libc: [musl] - '@unrs/resolver-binding-openharmony-arm64@1.12.2': - resolution: {integrity: sha512-YZ9hP4O0X9PQb8eO980qmLNGH4zT3I9+SZTdt0Pr0YyuGQhYKoOZkV02VzrzyOZJ5xIJ3UFIenKkUkGg8GjgWQ==} + '@unrs/resolver-binding-openharmony-arm64@1.13.0': + resolution: {integrity: sha512-3T2MNtF2dd1yjaXCVqrsi+/3VZeksEzU1hygPzqqkBLVVjn+2iJzXEkxxCKIVFrWnpmEbazeHJp/ruYD0RUVWA==} cpu: [arm64] os: [openharmony] - '@unrs/resolver-binding-wasm32-wasi@1.12.2': - resolution: {integrity: sha512-tYFDIkMxSflfEc/h92ZWNsZlHSwgimbNHSO3PL2JWQHfCuC2q316jMyYU9TIWZsFK2bQwyK5VAdYgn8ygPj69A==} - engines: {node: '>=14.0.0'} - cpu: [wasm32] - - '@unrs/resolver-binding-win32-arm64-msvc@1.12.2': - resolution: {integrity: sha512-qzNyg3xL0VPQmCaUh+N5jSitce6k+uCBfMDesWRnlULOZaqUkaJ0ybdT+UqlAWJoQjuqfIU/0Ptx9bteN4D82g==} + '@unrs/resolver-binding-win32-arm64-msvc@1.13.0': + resolution: {integrity: sha512-hKWfSLiN3L4cIxg0jrpyP/66AXLTcyD37jmSn//rGdOUYGlizYxTEFdJ+GZbp2NnaML3YS/A73nCysze8FaJdg==} cpu: [arm64] os: [win32] - '@unrs/resolver-binding-win32-ia32-msvc@1.12.2': - resolution: {integrity: sha512-WD9sY00OfpHVGfsnHZoA8jVT+esS/Bg8z8jzxp5BnDCjjwsuKsPQrzswwpFy4J1AUJbXPRfkpcX0mXrzeXW79g==} + '@unrs/resolver-binding-win32-ia32-msvc@1.13.0': + resolution: {integrity: sha512-N4gDKkDoiyIQEcn3vTqe2ksRxUAtBvQ8c5TiT+WonSa6FHgCAY5+RggnZ134hXJoRj57JEjv4/m+i/pAKHWrTQ==} cpu: [ia32] os: [win32] - '@unrs/resolver-binding-win32-x64-msvc@1.12.2': - resolution: {integrity: sha512-nAB74NfSNKknqQ1RrYj6uz8FcXEomu/MATJZxh/x+BArzN2U3JbOYC0APYzUIGhVY3m5hRxA8VPNdPBoG8txlA==} + '@unrs/resolver-binding-win32-x64-msvc@1.13.0': + resolution: {integrity: sha512-DpLMlAqlrk4zBVK3DiDjwKD0oq7pZNy+8BiIBRuByqb6dm5jsdoLMhIiyh/xR7+WejaW/1Ui+XgbgMNa4+zWJg==} cpu: [x64] os: [win32] @@ -4772,13 +5322,10 @@ packages: peerDependencies: vite: ^6.0.0 || ^7.0.0 || ^8.0.0 - '@vitest/expect@4.1.10': - resolution: {integrity: sha512-YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==} - - '@vitest/mocker@4.1.10': - resolution: {integrity: sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==} + '@vitest/mocker@5.1.0': + resolution: {integrity: sha512-5umB9/jlWcqVS6fsrFmv5Gdnpu6wAUio/lEOwAmvB7v+lFo/IW2B9FhAD0p19GCULTgMzLCdUmuCDCnAzWgppQ==} peerDependencies: - msw: ^2.4.9 + msw: ^2.4.9 || ^3.0.0 vite: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: msw: @@ -4786,20 +5333,8 @@ packages: vite: optional: true - '@vitest/pretty-format@4.1.10': - resolution: {integrity: sha512-W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==} - - '@vitest/runner@4.1.10': - resolution: {integrity: sha512-IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==} - - '@vitest/snapshot@4.1.10': - resolution: {integrity: sha512-xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==} - - '@vitest/spy@4.1.10': - resolution: {integrity: sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==} - - '@vitest/utils@4.1.10': - resolution: {integrity: sha512-fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==} + '@vitest/spy@5.1.0': + resolution: {integrity: sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==} '@vscode/l10n@0.0.18': resolution: {integrity: sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==} @@ -4853,21 +5388,20 @@ packages: cpu: [x64] os: [win32] - '@vscode/vsce-sign@2.0.9': - resolution: {integrity: sha512-8IvaRvtFyzUnGGl3f5+1Cnor3LqaUWvhaUjAYO8Y39OUYlOf3cRd+dowuQYLpZcP3uwSG+mURwjEBOSq4SOJ0g==} + '@vscode/vsce-sign@2.1.0': + resolution: {integrity: sha512-9AQrqazrBgTgRSuwleLVXUrIUphY02/SFCh2TKYoLV/xifJAdblhdmEmw5gUrYSPQ3sRwNs9iyCMD14sATEE6g==} - '@vscode/vsce@3.9.2': - resolution: {integrity: sha512-XSxMosEEDO6vLxELAHVkwmhC0qe0ijZni2jB9Rcs8kQsW4lhTDQ/wMzmwFs/buotAWSnpmUp/dRWD2ufG3UYKA==} - engines: {node: '>= 20'} + '@vscode/vsce@4.1.0': + resolution: {integrity: sha512-iWNykEfLWTAU7FC2iBiE0vJvnJDpGm3GlL89dsBtRs62F+8tkPtq80Imi0QSFHjNBWu4QIdYII+3F9v/ZQRExw==} + engines: {node: '>= 22'} hasBin: true '@webcontainer/api@1.6.4': resolution: {integrity: sha512-r9sHCXg1FcC1AMgppGwAc0vYWaQhqvg282cnsuPbJEzYnWifAdCVvg+8ngJUEHyHcomhJJp+/zuytite4ITHLw==} - '@xmldom/xmldom@0.8.14': - resolution: {integrity: sha512-T4EDRUBVZYRldYApjEJiU0e1stYWaRAX7CuSnKzrpwdZKo53zGV8/pqfzV6FfwNl9YThD2OumQYvqtvjvgG7aQ==} + '@xmldom/xmldom@0.8.15': + resolution: {integrity: sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==} engines: {node: '>=10.0.0'} - deprecated: this version has critical issues, please update to the latest version '@xterm/addon-fit@0.11.0': resolution: {integrity: sha512-jYcgT6xtVYhnhgxh3QgYDnnNMYTcf8ElbxxFzX0IZo+vabQqSPAjC3c1wJrKB5E19VwQei89QCiZZP86DCPF7g==} @@ -4878,141 +5412,36 @@ packages: '@yarnpkg/lockfile@1.1.0': resolution: {integrity: sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==} - '@yuku-codegen/binding-android-arm64@0.8.7': - resolution: {integrity: sha512-C/0zV5IhgVdYhGJTwrY0v8dknxlhiKwtVJkMUaexu9/QvRmzlV4vfU3hZlUSgqc2BxQHntL1mCVbDq8j0FRFDw==} - cpu: [arm64] - os: [android] - - '@yuku-codegen/binding-darwin-arm64@0.8.7': - resolution: {integrity: sha512-/u+REDMI4a0/lsJXTM4c53/w31OGZLOReZIyg62uhgLs0kc8NHsj/nOcxTdlQjq5gi0zhdkccD9LaLTXcdzPvw==} - cpu: [arm64] - os: [darwin] - - '@yuku-codegen/binding-darwin-x64@0.8.7': - resolution: {integrity: sha512-sMMzFOwCo4WXR+/6zIBThOocSC50iIIZZdfiIDbaLvj0Ax/rWt/iavyfEAqajyvzydLyCqR/ZItdLWSRlu1umw==} - cpu: [x64] - os: [darwin] - - '@yuku-codegen/binding-freebsd-x64@0.8.7': - resolution: {integrity: sha512-MpdpKXix9P+Y1rKgjvcNeNtGjXeL1CmttNhYINrWls8kRpm4xM/oBGTmn6w7to8lAlwj5jm8q03dQPl5mRv4Qw==} - cpu: [x64] - os: [freebsd] - - '@yuku-codegen/binding-linux-arm-gnu@0.8.7': - resolution: {integrity: sha512-rr1srFLlPAmC1vtxfc9C1YLDe3iH09YjfSeeIidBqKhzx1MATjOAq4mjlRUOnhr/L27MotWIYOFKwVsd5JZFOg==} - cpu: [arm] - os: [linux] - libc: [glibc] - - '@yuku-codegen/binding-linux-arm-musl@0.8.7': - resolution: {integrity: sha512-eAufXh8qBRpiSO6ueaMDL+yyoXIGLhpUce72YbcACtZU2qhExwBIJyEtQf5kH2Ki0X2aqkSjSfog4OPtKXan3Q==} - cpu: [arm] - os: [linux] - libc: [musl] - - '@yuku-codegen/binding-linux-arm64-gnu@0.8.7': - resolution: {integrity: sha512-gw4w6wPoHObBrdIC4duVWLmJOvpdE25j5D7yrM5mACNlK4klRz/lv8hK+ssQk9EJHBgZjSaqZIJVFgqNYbfv7A==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@yuku-codegen/binding-linux-arm64-musl@0.8.7': - resolution: {integrity: sha512-L68N6Y4XkqcIaKo3Ra88JEvBEH4AHff44A4INcrxeVWZ8CZtu2tCpfVxe3hR8qQQMcvBSQlDn24KpkCKEhVvfA==} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@yuku-codegen/binding-linux-x64-gnu@0.8.7': - resolution: {integrity: sha512-dzyAbltJmf3Cqlb8HcFuYIf5Yn0fl1vTr3XJ9HiVNNvOlhqPSArOqtw9vI1p6/VTXTjrMLXlU+s+/kNHiIy/Cw==} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@yuku-codegen/binding-linux-x64-musl@0.8.7': - resolution: {integrity: sha512-Otw4MH3404q0Bbvl+YTdW9aoUV5vXmUw8260bWvt1XlaoIX/ceSgI4ygheRDMfBPoHt6FDayQaO9OLVUZAgkFA==} - cpu: [x64] - os: [linux] - libc: [musl] - - '@yuku-codegen/binding-win32-arm64@0.8.7': - resolution: {integrity: sha512-qo/jyrzryiBuKEsFiuWaBCBe3tRMynQ0qFWFgOEjcCMQeZfBm+wKiVEUEFXXLc7bh8YezguAWp0Mtnhq4ARNyA==} - cpu: [arm64] - os: [win32] - - '@yuku-codegen/binding-win32-x64@0.8.7': - resolution: {integrity: sha512-D5lDsVDx6m00E6bWySlWdH72Ca4TPSaphDqB6QjU6MpuNLIJqoGoatYyq2rOmBE8Zv/kunot/o58KGL03P3eiA==} - cpu: [x64] - os: [win32] - - '@yuku-parser/binding-android-arm64@0.8.7': - resolution: {integrity: sha512-eGKYiUDX7Y0V7tDTmg+JTVnXnjMqfXXsorZ+EDf5kxwchQ3Or1HS14MzI2fw+jFhHR85fCWt+mtX33Yao73hIQ==} - cpu: [arm64] - os: [android] - - '@yuku-parser/binding-darwin-arm64@0.8.7': - resolution: {integrity: sha512-Re0RHelKLnjEURulY2/KxW+Ngb8zuNA4BRZuMwgGQNzVumT6u4U2N2hc01oeYVNVof0i7GrXE4UCNBgbpRRnjQ==} + '@yuku-toolchain/darwin-arm64@0.27.0': + resolution: {integrity: sha512-A3v83rNyHWlnJeeMBsWggZ+RZDP2BEMHIiMk+j23LqtVch24MXwg8veflkQgZ2GtCtZOxcG+NkztnsSUS4rWEQ==} cpu: [arm64] os: [darwin] - '@yuku-parser/binding-darwin-x64@0.8.7': - resolution: {integrity: sha512-Hn8DROtQkjlA1ACbPgj4a7eP9IuVOI504oiTwpkWPbpaDWD9KdmnVYCqW+1LfenNK/g7O9NhWGpXEdaCNX7lIA==} + '@yuku-toolchain/darwin-x64@0.27.0': + resolution: {integrity: sha512-u+fcqQw0uRj5irtO5f0xu5nGazYRxfBVBNIuhiONWX6Mh2izRONSNXhCwFDaYRqHunublzw2l2aQMB0n5n1t0Q==} cpu: [x64] os: [darwin] - '@yuku-parser/binding-freebsd-x64@0.8.7': - resolution: {integrity: sha512-bAP2OV8wRuzplX/jYxv9+vvqQT8JxyNphI8fLfXGL054Xs+4/J5u33cIm3y4rxY8rdoLmmdiJs2Tq7r7lrDRfA==} - cpu: [x64] - os: [freebsd] - - '@yuku-parser/binding-linux-arm-gnu@0.8.7': - resolution: {integrity: sha512-kTYwJQQgmZeAWdDIWabiReIZMpmfLueIj1tCmjStUtFGhR1Z0qwxonKVfUC4N7h/VhGGzLZ//7O1kgt1QKqgCg==} - cpu: [arm] - os: [linux] - libc: [glibc] - - '@yuku-parser/binding-linux-arm-musl@0.8.7': - resolution: {integrity: sha512-uL4jE8HPT2BLlxAXyD10LqgPuXa9eDa0BKpCdSANmzIJghq/2eZo3/gQNtaxPZMupWoxjYzSad9IXrwu7aYPXQ==} - cpu: [arm] - os: [linux] - libc: [musl] - - '@yuku-parser/binding-linux-arm64-gnu@0.8.7': - resolution: {integrity: sha512-3gVN4pWSKZmXiNX7cU164dR9MPvesCHnlH6nPfpK+yQsCuYphjKKplcb4SnZBrhiqmXbgb2HR0c2TS0IZUPhgA==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@yuku-parser/binding-linux-arm64-musl@0.8.7': - resolution: {integrity: sha512-S0mwfEjoLpxzXeZw802Wa4RaELsQiPtWqG6INcy8j4GtvNFtl4LCX3eGO1XLn9pyLAISLzTRyU3zUCBUPin8lg==} + '@yuku-toolchain/linux-arm64@0.27.0': + resolution: {integrity: sha512-IPB+9LSC/sf8Sa8DtqapUgU4uTL/U94Vr5mgUsfRx59u8/4BT38cze+e5b96AlQynsdtuF4tgC0FW0TmJ2B75g==} cpu: [arm64] os: [linux] - libc: [musl] - - '@yuku-parser/binding-linux-x64-gnu@0.8.7': - resolution: {integrity: sha512-lnbWdPmerE5D1uH1G4IEZKnPzCrWCStRGrtgpSIe1RibAo5bZIjDbbbPYXmMHCEh4F+x/JaJpElh26a3r+BPbg==} - cpu: [x64] - os: [linux] - libc: [glibc] - '@yuku-parser/binding-linux-x64-musl@0.8.7': - resolution: {integrity: sha512-769uwndMvMzUvATWbAcEvyLHKA+DzhHSCl/obBUrRdYfRo26yxui6S8y3z7uJ+Naup7UKrDxrpK7OnQkxkl9KQ==} + '@yuku-toolchain/linux-x64@0.27.0': + resolution: {integrity: sha512-fe1kN04JPBODrkRZOuI06jIqKyzcyn0ykx+tpiERDwqAh9ALWOtkgfhFjVaOQSu+guhakzY/89xjQdmfY7EJ7w==} cpu: [x64] os: [linux] - libc: [musl] - '@yuku-parser/binding-win32-arm64@0.8.7': - resolution: {integrity: sha512-mEB/9PlaAkisJ6KWGz0zvywXoU6+80dTlR2LwS7s/jcXXoU6fm2+sitBZXtqu3+Q4DcDgPxM45uWMCzPs0TSRw==} + '@yuku-toolchain/win32-arm64@0.27.0': + resolution: {integrity: sha512-NZmiFTF7ee45Fhnsa0BGMCpElJGg8iGYt4N3UoKj/n1vNmACcgY6NI4najNr9Jc1ulIVVvtPbo934RMlZQakrA==} cpu: [arm64] os: [win32] - '@yuku-parser/binding-win32-x64@0.8.7': - resolution: {integrity: sha512-8vNB2DP0ou61nGb8tc/qfi41gfyDXz1MHr2zqL3nR+cJ6CEbiuWV/l/a/vv151gCgiZLLAyGkQGENpozdg716w==} + '@yuku-toolchain/win32-x64@0.27.0': + resolution: {integrity: sha512-7LSviI8HtHga0g7G2oT7C/SP2IoLmrg8LYPeWZkp4ljFtaWKJoTRF0Iv0cVt0dR4rehoN/+TjN4r8SoArCKvlg==} cpu: [x64] os: [win32] - '@yuku-toolchain/types@0.8.7': - resolution: {integrity: sha512-2Z53dNxAJL6UvFoIrDZvYf3zlO8s4VJK4O2hhaB4mXVwwpX/7ajtss3cmfqKvamlNLWyt9FSWs4eoYdlbxpnHA==} - abbrev@5.0.0: resolution: {integrity: sha512-/XrFJgzQQQHpti1raDJC6m4ws6aNktmjBlhk8Fdlk7LwCEuDoieEJJY9OFHjfiFJFFRM2tK+Ky/IsfbbmlMu1w==} engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} @@ -5033,8 +5462,8 @@ packages: resolution: {integrity: sha512-HEHNfbars9v4pgpW6SO1KSPkfoS0xVOM/9UzkJltjlsHZmJasxg8aXkuZa7SMf8vKGIBhpUsPluQSqhJFCqebw==} engines: {node: '>=0.4.0'} - acorn@8.18.0: - resolution: {integrity: sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==} + acorn@8.19.0: + resolution: {integrity: sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==} engines: {node: '>=0.4.0'} hasBin: true @@ -5045,8 +5474,8 @@ packages: resolution: {integrity: sha512-ufJnssQGbxzLNS1Ho9bCtX4rQKCCvoVuDLHoJyc3F9dOGDB4BkWs2Ci0kv53lqocAEQ/Cbi+I2XCsNYGqVYqng==} engines: {node: '>=12.0'} - adm-zip@0.6.0: - resolution: {integrity: sha512-XleryMhbuksdKtofnWZ9Sk+4CUTbms4Mb/EU32SZwToAyZ5RgVos/ki8n+yr0LWHOGKuakbXTuuYNHLQjhddgg==} + adm-zip@0.6.1: + resolution: {integrity: sha512-Xwrja8nx9e5o2N1my4DsKCeKpdrnACyr1wtbPxBDgGzKzKyE9kRtBFA8mWldI+RVlD7CBZNWY/wQ2+ydwOR6kQ==} engines: {node: '>=14.0'} agent-base@4.3.0: @@ -5071,6 +5500,11 @@ packages: ajv-formats@3.0.1: resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true ajv@6.15.0: resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} @@ -5078,8 +5512,8 @@ packages: ajv@8.20.0: resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} - algoliasearch@5.57.0: - resolution: {integrity: sha512-HpND7MBGctOAkd1GoQoDZCGoCpqNTS5NG1LuhElFet3RdLJkwnyTYZXZhXwtpAQPrI36fqQ3eT6KQrdKDTKu3A==} + algoliasearch@5.64.0: + resolution: {integrity: sha512-18v+iAJErDZZKuOXLd9RHcd2m0THXpqtH5pSvOYCMCpDcXkdoVc+yj6H6dGTYOLJyB02lvEJNzYCSWeq0BPrTg==} engines: {node: '>= 14.0.0'} angular-mocks@1.5.11: @@ -5140,8 +5574,8 @@ packages: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} - ansi-regex@6.3.0: - resolution: {integrity: sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==} + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} engines: {node: '>=12'} ansi-styles@2.2.1: @@ -5164,6 +5598,10 @@ packages: resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==} engines: {node: '>=12'} + ansi-styles@7.0.0: + resolution: {integrity: sha512-kKvt3m4uwzqL0wlkPd09CmljPJGOZZ4D0fP65sqFSvPkMRKhNi+74MgIJ5QxE6SxqB4t4KyUFGg8+n5zjo6hew==} + engines: {node: '>=22'} + ansi-wrap@0.1.0: resolution: {integrity: sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==} engines: {node: '>=0.10.0'} @@ -5198,8 +5636,11 @@ packages: argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} - argue-cli@3.1.0: - resolution: {integrity: sha512-DhBpBfXL4SS2uC0N922MMajKR3CdrTG0u2or1PNYgXMsrSzViJrbtvT0nCLlLGUI0plam/ZZCs7aAauHtW9thw==} + argparse@3.0.4: + resolution: {integrity: sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA==} + + argue-cli@3.2.0: + resolution: {integrity: sha512-VipTB0gXgGIFO2Rg9yEVN5wLt2AurJcZqDbgmYSwPwsykhLrQhs240/bfceev4w68lI8JshoOJIk9uW7tFzROw==} engines: {node: '>=22'} array-buffer-byte-length@1.0.2: @@ -5262,14 +5703,6 @@ packages: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} - ast-types@0.13.4: - resolution: {integrity: sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==} - engines: {node: '>=4'} - - astral-regex@2.0.0: - resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==} - engines: {node: '>=8'} - async-done@2.0.0: resolution: {integrity: sha512-j0s3bzYq9yKIVLKGE/tWlCpa3PfFLcrDZLTSVdnnCTGagXuXBJO4SsY9Xdk/fQBirCkH4evW5xOeJXqlAQFdsw==} engines: {node: '>= 10.13.0'} @@ -5298,8 +5731,8 @@ packages: resolution: {integrity: sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==} engines: {node: '>= 4.0.0'} - autoprefixer@10.5.4: - resolution: {integrity: sha512-MaU0U/za7N3r6brxD4YB/l4NSrFzLPlANv6wEuQVaIPlD3L4W9rFcQPbL/EilY9BHhHvhfcz3gInDLrEtWT4EA==} + autoprefixer@10.6.2: + resolution: {integrity: sha512-VOw9/yGTGwPPgzFcODtcv6zhEPIeIWkRSe10L2ri2f5vZ7ID7lCt6jZzRF5/ubgOZ+szYydmEF5AYsA5jxX1tA==} engines: {node: ^10 || ^12 || >=14} hasBin: true peerDependencies: @@ -5318,26 +5751,26 @@ packages: azure-devops-node-api@12.5.0: resolution: {integrity: sha512-R5eFskGvOm3U/GzeAuxRkUsAl0hrAwGgWn6zAd2KrZmrEhWZVqLew4OOupbQlXUuojUzpGtq62SmdhJ06N88og==} - b4a@1.8.1: - resolution: {integrity: sha512-aiqre1Nr0B/6DgE2N5vwTc+2/oQZ4Wh1t4NznYY4E00y8LCt6NqdRv81so00oo27D8MVKTpUa/MwUUtBLXCoDw==} + b4a@1.9.0: + resolution: {integrity: sha512-dpfcF9fDNR6++cthXR67iyhgqWy9CBouAvIWhIntzBG6cvK/cnIPiZQjBwi/ZqjjBEDGfoNDtmB0kTjroOJ3pQ==} peerDependencies: react-native-b4a: '*' peerDependenciesMeta: react-native-b4a: optional: true - babel-jest@30.4.1: - resolution: {integrity: sha512-fATAbM8piYxkiXQp3RBXmZHxZVNJZAVXXfyeyCN2Tida3+qJ8ea9UxhiJ2y4fLO90ZImKt6k9FlcH2+rLkJGhw==} + babel-jest@30.5.2: + resolution: {integrity: sha512-ES8WeJ2fNWPEDunyAtUfJ12nHyaWUloCHdkfK2oW5uSoQSUmjNKdWiGaXJITJwvFEWoD/evHEg/QoCXAvLaQqQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} peerDependencies: '@babel/core': ^7.11.0 || ^8.0.0-0 - babel-plugin-istanbul@7.0.1: - resolution: {integrity: sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==} - engines: {node: '>=12'} + babel-plugin-istanbul@8.0.0: + resolution: {integrity: sha512-18wCskrN3DgbuBmp1gr7LBGT8xdz5xhQQqFvFhVxbkl8VBCrMKQ2YtqBWtUal1Zrc1HTuX0011+Brjw78TCFkg==} + engines: {node: '>=18'} - babel-plugin-jest-hoist@30.4.0: - resolution: {integrity: sha512-9EdtWM/sSfXLOGLwSn+GS6pIXyBnL07/8gyJlwFXjWy4DxMOyItqyUT29d4lQiS380EZwYlX7/At4PgBS+m2aA==} + babel-plugin-jest-hoist@30.5.0: + resolution: {integrity: sha512-gtGo1B+u14jrZQv6TdSWIWkTqclboo7Qn+dFAGUOIuXLFuJKAdg3U5MIWzZnW4vfUb4dX9skmAMiby86e/SF4A==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} babel-preset-current-node-syntax@1.2.0: @@ -5345,11 +5778,11 @@ packages: peerDependencies: '@babel/core': ^7.0.0 || ^8.0.0-0 - babel-preset-jest@30.4.0: - resolution: {integrity: sha512-lBY4jxsNmCnSiu7kquw8ZC9F4+XLMOKypT3RnNHPvU2Kpd4W0xaPuLr5ZkRyOsvLYAY4yaW1ZwTW4xB7NIiZzg==} + babel-preset-jest@30.5.0: + resolution: {integrity: sha512-ZGPn5ClP4lBDpuOK8W1yQIOy359HmbnZv3suucAlIe+SEE9yDsxV4S2PjSbH2Vc97U+WmzYD7vw3kr8NsQ/i6w==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} peerDependencies: - '@babel/core': ^7.11.0 || ^8.0.0-beta.1 + '@babel/core': ^7.11.0 || ^8.0.0-beta.1 || ^8.0.0 bach@2.0.1: resolution: {integrity: sha512-A7bvGMGiTOxGMpNupYl9HQTf0FFDNF4VCmks4PJpFyN1AX2pdKuxuwdvUz2Hu388wcgp+OvGFNsumBfFNkR7eg==} @@ -5362,16 +5795,20 @@ packages: resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} engines: {node: 18 || 20 || >=22} - bare-events@2.9.1: - resolution: {integrity: sha512-Z0oHEHAFDZkffN8Qc39zNZjQlMDkPJRyyyZieU1VH7u8c5S+qHZ2S8ixdKIAxEjfHO7FJxXmJWgteOghVanIsg==} + bare-buffer@3.7.1: + resolution: {integrity: sha512-cIjZnSO+y89ykVX9x96OVnA6tGORBn7vGJ/e3PCbBHMEyfMNG/ixzOS0lLa6saMlWcs69bSKjxFyDwjK152OMg==} + engines: {bare: '>=1.20.0'} + + bare-events@2.9.2: + resolution: {integrity: sha512-AIPKioV7/Y/8KfZ3AAhjPJxLLbY49S64Ym5DakZlUg75qQiTgUq9hEJoEwa4eUezPUlXRy/i5NpsKvo9jgKmoA==} peerDependencies: bare-abort-controller: '*' peerDependenciesMeta: bare-abort-controller: optional: true - bare-fs@4.8.0: - resolution: {integrity: sha512-fM+MhCvdQhZ7NV6S95a07gPSqjIYKn6mFaXfx266wN3ajZGl/+1AzH+ubkXQ0fFZvOe2nk9VHkzdYkQE5zMV3Q==} + bare-fs@4.8.4: + resolution: {integrity: sha512-MPC2eyrpbk3A873sK4y6rk+Iv4o2enxTjHZ8zH3HO0mjrpm5XjnguY2XmfidIsDV6vnjpbMBKUAJpV0ISD2SsQ==} engines: {bare: '>=1.28.0'} peerDependencies: bare-buffer: '*' @@ -5379,11 +5816,11 @@ packages: bare-buffer: optional: true - bare-path@3.1.1: - resolution: {integrity: sha512-JprUlveX3QjApC1cTpsUOiscADftCGVWkzitbHsRqv84hzYwYHw2mbluddsq5TvI8mH/8Ov1f4BiMAdcB0oYnQ==} + bare-path@3.1.2: + resolution: {integrity: sha512-ZyKbsuuqK6Ag0K8pX6V5Txq6XeJRvY+wXucnFGRjiyVYP9YWDpIQugk/b+enRYrEYBJaqLzghRQpXPMR7341Nw==} - bare-stream@2.13.3: - resolution: {integrity: sha512-Kc+brLqvEqGkjyfiwJmImAOqLZL7OsoLKuavx+hJjgVV3nLTOjloJyPMFxjUPerGGHrNH0fLU06jjykMLWrERQ==} + bare-stream@2.13.4: + resolution: {integrity: sha512-PcrQ8lVLbiJscNm1Kez+Yp4Gy4AHGcN1lzwjvf5NybWen7VvEgUfyfnXYJ2zNqWnzOfCb1Abq6lH8ti0syQszA==} peerDependencies: bare-abort-controller: '*' bare-buffer: '*' @@ -5396,18 +5833,14 @@ packages: bare-events: optional: true - bare-url@2.5.2: - resolution: {integrity: sha512-L13PCJzKG8RGvx8V1/DdMi12ERhC3tprr7/8a94BxpmnRsFqxh5XZNdhtMxu5HPkRshYOOWRGY8lDP7ZhpG9Cg==} + bare-url@2.5.6: + resolution: {integrity: sha512-iqkXHkW65De+BT14nHLiBFbNuJ/DdMrZaVNJ1IXPctpK6b1olUJ5Qmy8QBvwROajTiGztso2n82kFEvCsNG7Rg==} base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - base64id@2.0.0: - resolution: {integrity: sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==} - engines: {node: ^4.5.0 || >= 5.9} - - baseline-browser-mapping@2.11.14: - resolution: {integrity: sha512-JyJ954WzuIR8/FFzX0o5krdSTrBAkcCSRfWSleRsIHSWV+cZe2FI1PKggVkFke1hBldRs+LRxUczzE9iPmgZww==} + baseline-browser-mapping@2.11.35: + resolution: {integrity: sha512-GNk8KX52CHqeNKGk8+7tZnQab/2k1t/BgrUHPKNdijzpEhF1saPQZHVKb6m5loSAxB39gyrTYw34Qf9CQ3u1qQ==} engines: {node: '>=6.0.0'} hasBin: true @@ -5418,23 +5851,22 @@ packages: resolution: {integrity: sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==} engines: {node: '>= 0.8'} - basic-ftp@5.3.1: - resolution: {integrity: sha512-bopVNp6ugyA150DDuZfPFdt1KZ5a94ZDiwX4hMgZDzF+GttD80lEy8kj98kbyhLXnPvhtIo93mdnLIjpCAeeOw==} - engines: {node: '>=10.0.0'} + bcp-47-match@2.0.3: + resolution: {integrity: sha512-JtTezzbAibu8G0R9op9zb3vcWZd9JF6M0xOYGPn0fNCd7wOpRB1mU2mH9T8gaBGbAAyIIVgB2G7xG0GP98zMAQ==} + + bcp-47@2.1.2: + resolution: {integrity: sha512-wsv86UuNFuPnVieKLyECTT+CP1WSAHeoIg5P3xu2kA9Z+7fVPoKt7dxzSeEhtJel0AI+NW3fIW3KtTKQKUCngg==} bcrypt-pbkdf@1.0.2: resolution: {integrity: sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==} - beasties@0.4.3: - resolution: {integrity: sha512-fIIeLOcbAB/K1kb1HBVJoiq1alHL4RCYBSo5e7HzrNkkgMggXR1Vqt/Z9JWnkfe/qdCo66Ux3QRwZioAIBdWRA==} - engines: {node: '>=18.0.0'} + beasties@0.5.5: + resolution: {integrity: sha512-4mUqdlIqPmHlX5qwkGmunWnhi406XcT5AfmwltoiDCToyGP2pSxS9ClfURL14IRwPYHq/JAIrtjNptbpSvUTPA==} + engines: {node: '>=20.19.0'} before-after-hook@4.0.0: resolution: {integrity: sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==} - bidi-js@1.0.3: - resolution: {integrity: sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==} - big.js@7.0.1: resolution: {integrity: sha512-iFgV784tD8kq4ccF1xtNMZnXeZzVuXWWM+ERFzKQjv+A5G9HC8CY3DuV45vgzFFcW+u2tIvmF95+AzWgs6BjCg==} @@ -5466,16 +5898,17 @@ packages: bluebird@3.7.2: resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==} - body-parser@1.20.6: - resolution: {integrity: sha512-p5tAzS57i5MV9fZFDj9LeIiTZEufbSe2eDozP+ElheSUq1m74CRq1jI4mYNDdVs9vQztXFLuk/Gd6BWTdwRJ5g==} + body-parser@1.20.9: + resolution: {integrity: sha512-FISIQxV5u91Y9gvuFq3q/tA/qTqLJn3AhRcEvyozyhJTh5OBFFtv827AdHU7Rbyct4r+Ba1/99oFa1Y3yuFsdw==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} - body-parser@2.3.0: - resolution: {integrity: sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==} + body-parser@2.4.0: + resolution: {integrity: sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==} engines: {node: '>=18'} - boolbase@1.0.0: - resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} + boolbase@2.0.0: + resolution: {integrity: sha512-DkVaaQHymRhpYEYo9x1oo7Q7B0Y6KJUsjm3c9eTyFDby4MHLBTwZ6ZDWBel5zrYxj1WsZgC5oLpiz+93MluXeA==} + engines: {node: '>=20.19.0'} bottleneck@2.19.5: resolution: {integrity: sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==} @@ -5487,14 +5920,14 @@ packages: resolution: {integrity: sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==} engines: {node: '>=10'} - brace-expansion@1.1.18: - resolution: {integrity: sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==} + brace-expansion@1.1.21: + resolution: {integrity: sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==} - brace-expansion@2.1.4: - resolution: {integrity: sha512-hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==} + brace-expansion@2.1.7: + resolution: {integrity: sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==} - brace-expansion@5.0.9: - resolution: {integrity: sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==} + brace-expansion@5.0.12: + resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==} engines: {node: 20 || >=22} braces@3.0.3: @@ -5504,16 +5937,16 @@ packages: browser-stdout@1.3.1: resolution: {integrity: sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==} - browserslist@4.28.8: - resolution: {integrity: sha512-V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==} + browserslist@4.29.5: + resolution: {integrity: sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true browserstack@1.6.1: resolution: {integrity: sha512-GxtFjpIaKdbAyzHfFDKixKO8IBT7wR3NjbzrGc78nNs/Ciys9wU3/nBtsqsWv5nDSrdI5tz0peKuzCPuNXNUiw==} - bser@2.1.1: - resolution: {integrity: sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==} + bser@2.1.2: + resolution: {integrity: sha512-V2o8YS2EhrKMO9AumnkK0ynynfFlsajpYupwq7S46H5mhcanwxDkNTw3K67wPIcKTH1ffkA4vhMOtAc7gRmPZw==} buffer-crc32@0.2.13: resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==} @@ -5534,16 +5967,16 @@ packages: buffer@6.0.3: resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} - bufferutil@4.1.0: - resolution: {integrity: sha512-ZMANVnAixE6AWWnPzlW2KpUrxhm9woycYvPOo67jWHyFowASTEd9s+QN1EIMsSDtwhIxN4sWE1jotpuDUIgyIw==} + bufferutil@4.2.0: + resolution: {integrity: sha512-gyy58jET9kst2IGyBKb96a4Y2bPGTHXGyCd0/1eqIV3hr1Sz3VxtA8n7bXh8fLIuE2K6Z0Upax5a5Msx+HU1IQ==} engines: {node: '>=6.14.2'} builtin-modules@1.1.1: resolution: {integrity: sha512-wxXCdllwGhI2kCC0MnvTGYTMvnVZTvqgypkiTI8Pa5tcz2i6VqsqwYGgqwXji+4RgCzms6EajE4IxiUH6HH8nQ==} engines: {node: '>=0.10.0'} - bundle-name@4.1.0: - resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} + bundle-name@4.1.1: + resolution: {integrity: sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==} engines: {node: '>=18'} bytes@3.1.2: @@ -5585,8 +6018,8 @@ packages: resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} engines: {node: '>=10'} - caniuse-lite@1.0.30001809: - resolution: {integrity: sha512-xxWVywk6a6Arlk+hymeycyn/VgqEfLDxupvhH/xiY5SJ/18kmi9o6MiO320DCUzypORHLtvh0I4i04tUhCNHNQ==} + caniuse-lite@1.0.30001823: + resolution: {integrity: sha512-TQ5s/djDjNk1axreUW+4rULH+BmdCMLiJkhaXnO5wqivG7tITkSUj4ItIdzqdZHKaXcHAV8dhH3JxOM7/7bwqw==} caseless@0.12.0: resolution: {integrity: sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==} @@ -5594,8 +6027,8 @@ packages: ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} - chai@6.2.2: - resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} + chai@6.3.0: + resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} engines: {node: '>=18'} chainsaw@0.0.9: @@ -5617,8 +6050,8 @@ packages: resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} - chalk@6.0.0: - resolution: {integrity: sha512-2uNTXIuTTxk7ciZgAU1BQcgnchcG0xXnrs6jzkQfj9SsRa9M2s5zE8WT96hS6KmG4MzWHSrvH43DF1m4XRkrFg==} + chalk@6.0.1: + resolution: {integrity: sha512-/Ce6KNm3vIbWdMlNna6RVIZ/ICQxnJxCicet5LBKK9ZffBkqzDw0xh9EiKSljdRtiIQ1S1z4YgcscUUGzNCWrA==} engines: {node: '>=22'} char-regex@1.0.2: @@ -5637,12 +6070,9 @@ packages: checkpoint-stream@0.1.2: resolution: {integrity: sha512-eYXIcydL3mPjjEVLxHdi1ISgTwmxGJZ8vyJ3lYVvFTDRyTOZMTbKZdRJqiA7Gi1rPcwOyyzcrZmGLL8ff7e69w==} - cheerio-select@2.1.0: - resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==} - - cheerio@1.2.0: - resolution: {integrity: sha512-WDrybc/gKFpTYQutKIK6UvfcuxijIZfMfXaYm8NMsPQxSYvf+13fXUJ4rztGGbJcBQ/GF55gvrZ0Bc0bj/mqvg==} - engines: {node: '>=20.18.1'} + chevrotain@13.2.0: + resolution: {integrity: sha512-GTouk5YzgBxlTPCaDn5q0q2EJKkrYmnPF+HmF8v0Qo4r3iyPG7HJivkN1wthCXZcm3sIcZFpGTRovLPNdJNRCA==} + engines: {node: '>=22.0.0'} chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} @@ -5656,8 +6086,9 @@ packages: resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} engines: {node: '>= 20.19.0'} - chownr@1.1.4: - resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} + chokidar@6.0.0: + resolution: {integrity: sha512-Ec2Z7wpcKBiMpR7DxteoqS/sq5G5d2A4fpxzPv6+fD7xNNdrTghn7L11YwV5EN1B3i72Erc3XVT5FkWIDx90+A==} + engines: {node: '>= 22.22'} chownr@3.0.0: resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} @@ -5674,15 +6105,15 @@ packages: resolution: {integrity: sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==} engines: {node: '>=8'} - cjs-module-lexer@2.2.1: - resolution: {integrity: sha512-Ca8swihM+/4yKecYHY52kgJd300hi2lADU/a1RxNTRe+RJ9jvqQlESpbz9DnG9mowez8qwXHB8qYdIUw9e+F5Q==} + cjs-module-lexer@2.3.0: + resolution: {integrity: sha512-lmNyBzi6iYiqyrExTctfmjd8tInx+dHu9PBomTfH5RXS53c27JMFJgzNv5TyAnm3PgGf+MLy0+Ws41/HlVxdKQ==} cjson@0.3.3: resolution: {integrity: sha512-yKNcXi/Mvi5kb1uK0sahubYiyfUO2EUgOp4NcY9+8NX5Xmc+4yeNogZuLFkpLBBj7/QI9MjRUIuXrV9XOw5kVg==} engines: {node: '>= 0.3.0'} - cldr@8.0.0: - resolution: {integrity: sha512-wRq8XBgmVemoq5jJeSWw8Sq1TdsVx02ZZWvfOAio3OEPjkstGprBHTMC3DxI1tmdd7CjS826lIOsdfgJHMu2lg==} + cldr@9.0.0: + resolution: {integrity: sha512-osC0C6AjmO1usqJ/o83ID3b8rMuEQJhaI0JQDQKw1jpwH+OQbnqQqQxstr8GSY7djbTSXbYXeTBcP0q4EopRmw==} cldrjs@0.5.5: resolution: {integrity: sha512-KDwzwbmLIPfCgd8JERVDpQKrUUM1U4KpFJJg2IROv89rF172lLufoJnqJ/Wea6fXL5bO6WjuLMzY8V52UWPvkA==} @@ -5728,8 +6159,8 @@ packages: resolution: {integrity: sha512-xRwvIOMGrfOAnM1JYtqQImuaNtDEv9v6oIYAs4LIHwTiKee8uwvIi363igssOC0O5U04i4AlENs79LQLu9tEMw==} engines: {node: '>=20'} - cli-truncate@6.1.1: - resolution: {integrity: sha512-06p9vyLahLa4zkGcgsGxU6iEkSOiuI4fhCH6Emhe2lPAcoUv73n72DnODsnHA+5wwXGnV0n9M9/qOQJSjYhFhw==} + cli-truncate@6.2.0: + resolution: {integrity: sha512-5uyZew3nYoDgyltqSI8OER6DuyecorYOSVDAXl9wQ9Y8Re/HaQ/5qP0HmTUOUQqmvtpB+mlsf1gG/FUS3U1gLQ==} engines: {node: '>=22'} cli-width@4.1.0: @@ -5805,6 +6236,9 @@ packages: colorette@2.0.20: resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==} + colorjs.io@0.7.1: + resolution: {integrity: sha512-LY7OHnJZxHwT5UlzNa9bbhHHDbzB6yE5+3MIPwJEQKRvSCt/T4G7epsj+9j2BExUIIfXFIJGsIXUKdfrK9Q5tA==} + colors@1.4.0: resolution: {integrity: sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==} engines: {node: '>=0.1.90'} @@ -5828,8 +6262,8 @@ packages: resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==} engines: {node: '>=20'} - commander@15.0.0: - resolution: {integrity: sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==} + commander@15.1.0: + resolution: {integrity: sha512-cgnQ88TRrWcC7pVq46RzJVRMktu3W2RcbnoidnfBsl1bmDCBwJS/udcIZpKoCrbAYYaCqsz1yZCVIgbIaU3ddQ==} engines: {node: '>=22.12.0'} commander@2.11.0: @@ -5854,17 +6288,10 @@ packages: resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==} engines: {node: '>= 10'} - commander@8.3.0: - resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==} - engines: {node: '>= 12'} - commander@9.5.0: resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} engines: {node: ^12.20.0 || >=14} - common-path-prefix@3.0.0: - resolution: {integrity: sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==} - common-tags@1.8.2: resolution: {integrity: sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==} engines: {node: '>=4.0.0'} @@ -5883,8 +6310,8 @@ packages: resolution: {integrity: sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==} engines: {node: '>= 0.6'} - compression@1.8.1: - resolution: {integrity: sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w==} + compression@1.8.2: + resolution: {integrity: sha512-o8vI5RE5A6EVVOd9o41jKp41aJom+QTEO/Bx8MYNjexMo/Bv2WOjUfZr+aL0WnYSgymUy6zeguqLTsIhV0gMvQ==} engines: {node: '>= 0.8.0'} concat-map@0.0.1: @@ -5892,7 +6319,6 @@ packages: concat-stream@2.0.0: resolution: {integrity: sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==} - engines: {'0': node >= 6.0} config-chain@1.1.13: resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==} @@ -5909,8 +6335,8 @@ packages: resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==} engines: {node: '>= 0.6'} - content-disposition@1.1.0: - resolution: {integrity: sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==} + content-disposition@2.0.1: + resolution: {integrity: sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==} engines: {node: '>=18'} content-type@1.0.5: @@ -5921,6 +6347,10 @@ packages: resolution: {integrity: sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==} engines: {node: '>=18'} + content-type@3.1.1: + resolution: {integrity: sha512-GW4qUsfFo59d0HbUibDlWv5wPz+vAAcaTWbKIuKCf0JkC7wWkSyf8f13IpXn5JkeMlB2P8iTSSIjwXljorg2vA==} + engines: {node: '>=22'} + conventional-changelog-angular@8.3.1: resolution: {integrity: sha512-6gfI3otXK5Ph5DfCOI1dblr+kN3FAm5a97hYoQkqNZxOaYa5WKfXH+AnpsmS+iUH2mgVC2Cg2Qw9m5OKcmNrIg==} engines: {node: '>=18'} @@ -5982,8 +6412,8 @@ packages: engines: {node: '>=18'} hasBin: true - conventional-changelog-writer@9.2.1: - resolution: {integrity: sha512-StlYSmW3wLedRaqohJMpP3YuWiAqtgD0/cpsai9frdDkXv7rxj0hRbpJrubPYvJxJsjplONsOobEQnPuS9UgCg==} + conventional-changelog-writer@9.3.0: + resolution: {integrity: sha512-lxiECDlvy880e7JIYAtAhxg0wD/CGCVbZCdeua5aOlQVFTEd39zAeOzwK22i/FO4xnEOURK1gbUTETNEYW7zxQ==} engines: {node: '>=22'} hasBin: true @@ -6009,8 +6439,8 @@ packages: engines: {node: '>=18'} hasBin: true - conventional-commits-parser@7.1.2: - resolution: {integrity: sha512-O+x4N2yH+ijvqWlIyTHsXTAP+algNWgGbjY2duCe8w2vUMvUB95cLRslCPfTMQyLAKlet3bhZTdu6ozn4M+QJQ==} + conventional-commits-parser@7.1.4: + resolution: {integrity: sha512-TW3PZHi6hwF4cyu7KKc4kNqD1cgg8AkkK5ge9+zsEfpjaSXOeeIQyNWBr7kx5hR2wFuKVmr0be37RzcpmACQIA==} engines: {node: '>=22'} hasBin: true @@ -6031,10 +6461,6 @@ packages: resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} engines: {node: '>= 0.6'} - copy-anything@3.0.5: - resolution: {integrity: sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w==} - engines: {node: '>=12.13'} - copy-props@4.0.0: resolution: {integrity: sha512-bVWtw1wQLzzKiYROtvNlbJgxgBYt2bMJpkCbKmXM3xyijvcjjWXEk5nyrrT3bgJ7ODb19ZohE2T0Y3FgNPyoTw==} engines: {node: '>= 10.13.0'} @@ -6087,42 +6513,27 @@ packages: resolution: {integrity: sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==} engines: {node: '>=8'} - css-select@5.2.2: - resolution: {integrity: sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==} - - css-select@6.0.0: - resolution: {integrity: sha512-rZZVSLle8v0+EY8QAkDWrKhpgt6SA5OtHsgBnsj6ZaLb5dmDVOWUDtQitd9ydxxvEjhewNudS6eTVU7uOyzvXw==} - - css-tree@3.2.1: - resolution: {integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==} - engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0} - - css-what@6.2.2: - resolution: {integrity: sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==} - engines: {node: '>= 6'} - - css-what@7.0.0: - resolution: {integrity: sha512-wD5oz5xibMOPHzy13CyGmogB3phdvcDaB5t0W/Nr5Z2O/agcB8YwOz6e2Lsp10pNDzBoDO9nVa3RGs/2BttpHQ==} - engines: {node: '>= 6'} + css-select@7.0.0: + resolution: {integrity: sha512-snmjEVXy+1LnwXdxhYvTMj1d9tOh4HxkA1YmoayVBeeyR2C14Pum7fcxJIm4SswYspVy866eYNwlH6xC3/VH5g==} + engines: {node: '>=20.19.0'} - cssesc@3.0.0: - resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==} - engines: {node: '>=4'} - hasBin: true + css-what@8.0.0: + resolution: {integrity: sha512-DH0Bqq3DNp5tdOReuNyAA+Ev4Y2GS5FMbZpeTLP6C4CDi0h5nL0BmUPChXw3o/qbHLDWHl49sbNqQVY7bMSDdw==} + engines: {node: '>=20.19.0'} cssstyle@4.6.0: resolution: {integrity: sha512-2z+rWdzbbSZv6/rhtvzvqeZQHrBaqgogqt85sqFNbabZOuFbCVFb8kPeEtZjiKkbrm395irpNKiYeFeLiQnFPg==} engines: {node: '>=18'} - csv-parse@5.6.0: - resolution: {integrity: sha512-l3nz3euub2QMg5ouu5U09Ew9Wf6/wQ8I++ch1loQ0ljmzhmfZYrH9fflS22i/PQEvsPvxCwxgz5q7UB8K1JO4Q==} + csv-parse@7.0.3: + resolution: {integrity: sha512-YFd3QM/yo17vH91L1IOZuvl09zM0zEEtdfTcOCKWcMdM++MNaQSyp09slXyFCLaPXvHstQFx/xC8myiFHSMUvw==} custom-event@1.0.1: resolution: {integrity: sha512-GAj5FOq0Hd+RsCGVJxZuKaIDXDf3h6GQoNEjFgbLLI/trgtavwUbSnZ5pVfg27DVCaWjIohryS0JFwIJyT2cMg==} - cypress@15.21.1: - resolution: {integrity: sha512-ogHpHMj0XNlZA5MGzjg8SWHf0eMw9lTwVQRKjpcT1GzNTxNUjwnHA8YCG6nOJ8ThU+XZaUxJgpMYZnJ//8aDaw==} - engines: {node: ^20.1.0 || ^22.0.0 || >=24.0.0} + cypress@16.3.0: + resolution: {integrity: sha512-h5qq6G9wgNEMWEUFejeBwj7fzwJljrO54n3wAa7yW2Q/8ORnkq4tQBqUhY4g9UM5uOazKmr4ay8YcKi+SJJ1ng==} + engines: {node: ^22.0.0 || ^24.0.0 || >=26.0.0} hasBin: true cytoscape-cose-bilkent@4.1.0: @@ -6135,147 +6546,147 @@ packages: peerDependencies: cytoscape: ^3.2.0 - cytoscape@3.34.1: - resolution: {integrity: sha512-Lr0RvH9H75y9ar8h9Toy6u4lxRSCcxUq+hHcQ26sVWo6BnaQp1gwEZOYqwuYTZhyW7npyKnNLP8oJ2p1/3OZ7g==} + cytoscape@3.34.4: + resolution: {integrity: sha512-msY99tMY8iWTg+sIPGfSqDcPNOt4xcj+v/K/7qUFaCUxxlqnMkUYLBjRUzn9W5CU/R2hrmtJa5+UtovrEM2ctg==} engines: {node: '>=0.10'} d3-array@2.12.1: resolution: {integrity: sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==} - d3-array@3.2.4: - resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==} + d3-array@3.2.5: + resolution: {integrity: sha512-Th8qGXoBalmWsstpkuhmBuTsBQIFqYOJtjlBvNVvBfJ8E3uYusBUwUR8HU20U0qKKQkgCvKyR1YjiozWadk5QA==} engines: {node: '>=12'} - d3-axis@3.0.0: - resolution: {integrity: sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==} + d3-axis@3.0.1: + resolution: {integrity: sha512-E5QCXfaf/uJZEHHiqoWRq+bQEm2PzoVFv2rDC7CZ3wwI0MjfMW3w83J3ubobG4IJj3lShAI5eiPJhOu/8wHofA==} engines: {node: '>=12'} - d3-brush@3.0.0: - resolution: {integrity: sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==} + d3-brush@3.0.1: + resolution: {integrity: sha512-L5Glqa/Gb7LU3ndIOMtA5mDzlJ0aXKp5ELP2X09ctWF23jO7+faIUVDbmaIi+D6k3EemXFWn1F3lkfguExoVhA==} engines: {node: '>=12'} - d3-chord@3.0.1: - resolution: {integrity: sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==} + d3-chord@3.0.2: + resolution: {integrity: sha512-cGmADo5M2PTi3ewJZ2lcE32eURd4JmHtQ5JwRIUcas5L1SXqufG9yPyjWp8fW0gRi7aZi9bgbZPFZO1eyZ+1CQ==} engines: {node: '>=12'} - d3-color@3.1.0: - resolution: {integrity: sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==} + d3-color@3.1.1: + resolution: {integrity: sha512-lfab8x0Bj0UO7SNsY8dZSbNIA6ipbkE3X0NG9nqjCu6CfCHZseuDnOSJY7hidKrjpP++i1M2qT+FlAdPKYRilA==} engines: {node: '>=12'} - d3-contour@4.0.2: - resolution: {integrity: sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==} + d3-contour@4.0.3: + resolution: {integrity: sha512-5DYURc8KwXPOhSUBblU0P9rVcArsSPxPOxsfO0Eud0s28oU0sB2e80aRHRL9AZW3usT8ikFKyIHpHHLNWLdRVA==} engines: {node: '>=12'} - d3-delaunay@6.0.4: - resolution: {integrity: sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==} + d3-delaunay@6.0.6: + resolution: {integrity: sha512-DMQIEvSJhZCB6pwedcXaAlQ+MeKU5LlM2XakKtc73b/VM+RBiI1SRXycOEOKg2jsKj4zZ9F0KGYG6nCGwwWu/g==} engines: {node: '>=12'} - d3-dispatch@3.0.1: - resolution: {integrity: sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==} + d3-dispatch@3.0.2: + resolution: {integrity: sha512-sAzH4Y4nsLo8eSqw5jKiZt+LU2wZmL/qS+OkxQGjhwazB/D7TY34R/QK1eshfGr7cZEKymKZ/Haem7m+lu98Sg==} engines: {node: '>=12'} - d3-drag@3.0.0: - resolution: {integrity: sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==} + d3-drag@3.0.1: + resolution: {integrity: sha512-OWeoayCq8J69hUIjvL+Mb6Q6Oaj/fyHV5XaXByEUAG+JUjIfTGDnk3qGpcXrD3VmQ3BSV96fcbM6fqq7C0tbPA==} engines: {node: '>=12'} - d3-dsv@3.0.1: - resolution: {integrity: sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==} + d3-dsv@3.0.2: + resolution: {integrity: sha512-FUnXhX7I4/AXyRCZzwfZTDGSq8PGZ4oR0tiCBqNGOZMsDrQ+6sIWNQnBzcCGhzJKZ6uCvCezTwflUqI209RRiQ==} engines: {node: '>=12'} hasBin: true - d3-ease@3.0.1: - resolution: {integrity: sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==} + d3-ease@3.0.2: + resolution: {integrity: sha512-B5znKqRmKROAN4oHWQ50W/qisVjA9GXh2WMsVKdFVp4DxWmcrOsweqgUOUVsv5th96kwaZlokU6SlV4J3gak1w==} engines: {node: '>=12'} - d3-fetch@3.0.1: - resolution: {integrity: sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==} + d3-fetch@3.0.2: + resolution: {integrity: sha512-1wGF62bgjMRbF6mqbD+6rRWBL2hwWVYQjFO2UP3Wm1nIAvJZKaQxXM5caVY7athoCa8wIq9lCf7g44lPWFk50g==} engines: {node: '>=12'} - d3-force@3.0.0: - resolution: {integrity: sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==} + d3-force@3.0.1: + resolution: {integrity: sha512-kAaaHLFebBYwgi5cYBXAI8vKrQFMCD2MEswj2QuPKKbdU1wYLc8WXtS7O8F/b6POCIe3gJjY6hkDstHi1yMETQ==} engines: {node: '>=12'} - d3-format@3.1.2: - resolution: {integrity: sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==} + d3-format@3.1.3: + resolution: {integrity: sha512-+F+/49swqmGuQJmSKnVMIDH/QkEFV5li9QRj0xm/KhyAUBv099O5PrvpQFxBp24PYph17Mnvt9mjKQV0ii0nMA==} engines: {node: '>=12'} - d3-geo@3.1.1: - resolution: {integrity: sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==} + d3-geo@3.1.2: + resolution: {integrity: sha512-5R8ZgDQorIxmauv7R6gpE/ndz+Z0qAZssigq0aXFdvPHdY41RqtW02jrRUQAL724NdPABYXo1+gQEGBBr7uKNg==} engines: {node: '>=12'} - d3-hierarchy@3.1.2: - resolution: {integrity: sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==} + d3-hierarchy@3.1.3: + resolution: {integrity: sha512-GRajN5ZcnEwYFWqqdzhG1qJ3+fDg6WWzk47TJg7ePY7yvYAgRfD2r1mUx+wviBOWuCwamCUzjwMSdato43jbGA==} engines: {node: '>=12'} - d3-interpolate@3.0.1: - resolution: {integrity: sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==} + d3-interpolate@3.0.2: + resolution: {integrity: sha512-IRzGU62DtxhvsnSTWMQIdnoZ6gA+BCWwBon1EJI6SjoN595799b6z/QRBzXfFhE8iupUPp3042yBNo0STPqnzQ==} engines: {node: '>=12'} d3-path@1.0.9: resolution: {integrity: sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==} - d3-path@3.1.0: - resolution: {integrity: sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==} + d3-path@3.1.1: + resolution: {integrity: sha512-jsbgV8zIT38ReB9O7X7gcLndTQRONSqNNd+oGIaTBdUug4r5jFmp0N6RY9R5GWbdUDucn0qoTGyfjapT4tDhcg==} engines: {node: '>=12'} - d3-polygon@3.0.1: - resolution: {integrity: sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==} + d3-polygon@3.0.2: + resolution: {integrity: sha512-WAUvPudGU1Dn4mDPfb6+JnnbeVEV53hG/BoT+bxts6AkZsOpTEiV1jHYX+2vtwCICNFG9Wxv8QS+eW1zE/Dwfg==} engines: {node: '>=12'} - d3-quadtree@3.0.1: - resolution: {integrity: sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==} + d3-quadtree@3.0.2: + resolution: {integrity: sha512-9Lu9mqJKRbIk0d6mKDjpvPURaPdwHVK5CYbcdd0/4vBgz4ldz/7TIOse3kNERsByGNfld58KEco507AztJWyTQ==} engines: {node: '>=12'} - d3-random@3.0.1: - resolution: {integrity: sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==} + d3-random@3.0.2: + resolution: {integrity: sha512-PxJi9LNV+7mulaYO77nd+oGurXGL1fhedXjHnB3pWLUcqDnQtF4VASoqnQGHgoXLByVdv5QJ/2kfwkGn5HTS8g==} engines: {node: '>=12'} d3-sankey@0.12.3: resolution: {integrity: sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ==} - d3-scale-chromatic@3.1.0: - resolution: {integrity: sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==} + d3-scale-chromatic@3.1.1: + resolution: {integrity: sha512-lA5gfN2yMvmChubmptnDiBfeGpHD7Yb1EbvCz0TZE0WHXhyR6W2allPuhKtzV5ILQRqeOdefF0qYtERReLUBDg==} engines: {node: '>=12'} - d3-scale@4.0.2: - resolution: {integrity: sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==} + d3-scale@4.0.3: + resolution: {integrity: sha512-66cWobCNzcMvlfoaDHCxuIv9TBUWG1BLOWdv9kHHFuCr1JdqAWPvTmsaEYDD5NRMyWZ5+7u0GqiCDfMXMqh3hg==} engines: {node: '>=12'} - d3-selection@3.0.0: - resolution: {integrity: sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==} + d3-selection@3.0.1: + resolution: {integrity: sha512-ODSf35vqCrlCfp7hrm0eZjvOosSXSYLjqvIlhMBV9q9VOx7EBJG6pc+uXBswEZNJgCGJ+qnKYcWutbZDIxe/Xg==} engines: {node: '>=12'} d3-shape@1.3.7: resolution: {integrity: sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==} - d3-shape@3.2.0: - resolution: {integrity: sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==} + d3-shape@3.2.1: + resolution: {integrity: sha512-dm2o+lbKdzg9tY7GEag/dB9hcbodLfwkE/DkvqbELJXaMz0yKzWWhZqhbI7CKubukA7HnRyz0avdtvi7EPxPvw==} engines: {node: '>=12'} - d3-time-format@4.1.0: - resolution: {integrity: sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==} + d3-time-format@4.1.1: + resolution: {integrity: sha512-22XaqjyCjpqgda20erhsOjGmC3vvYwTNYniKAd45W5UWLDF43moeOuV9qYpRqobIlsnK0UhnKZjUUJm3VgORUA==} engines: {node: '>=12'} - d3-time@3.1.0: - resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==} + d3-time@3.1.1: + resolution: {integrity: sha512-Ze7rjrhMzdeulh0/hjcfFj7XLAHOfowtEMfsoG6DU866HPynQNW7Wfen6hzXcqKTv8XzxvF6Hzr5XD6bMHr2ug==} engines: {node: '>=12'} - d3-timer@3.0.1: - resolution: {integrity: sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==} + d3-timer@3.0.2: + resolution: {integrity: sha512-1Il1aliroVSErrv5aulRBxAY+7+DnaoLIWGd1C6SsBTWDeobWiP/V69vwb8vT6abR1kKwaNe1196pmaQ1fK90A==} engines: {node: '>=12'} - d3-transition@3.0.1: - resolution: {integrity: sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==} + d3-transition@3.0.2: + resolution: {integrity: sha512-RcjCsdFgyFoDB+QXLC5m60ZkTN0k9zH+ovoLlTdJnDS1AbfbcuowiM4pCKSTOclNibS4f4J4cbv2m7O7y8NTOQ==} engines: {node: '>=12'} peerDependencies: d3-selection: 2 - 3 - d3-zoom@3.0.0: - resolution: {integrity: sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==} + d3-zoom@3.0.1: + resolution: {integrity: sha512-kfjD3BDQu/FOatpZ6JdMSyIoDwTxIpI29ySTI2J5ZlDaH1WbuJGQJ2Q9oJkWTEZEW98j6idezoomSD3Cn2zwiw==} engines: {node: '>=12'} - d3@7.9.0: - resolution: {integrity: sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA==} + d3@7.9.2: + resolution: {integrity: sha512-ZKb/mONPVKzaO5UlcWcwN8bS4ezvQaYu+bsou+XgNABdGC800kwH651ADTbbTxMPHW13UlvbQafdmJQDk1w7Mg==} engines: {node: '>=12'} dagre-d3-es@7.0.14: @@ -6289,17 +6700,13 @@ packages: resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} engines: {node: '>= 12'} - data-uri-to-buffer@6.0.2: - resolution: {integrity: sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==} - engines: {node: '>= 14'} - data-urls@5.0.0: resolution: {integrity: sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==} engines: {node: '>=18'} - data-urls@7.0.0: - resolution: {integrity: sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==} - engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} + data-urls@8.0.0: + resolution: {integrity: sha512-JQUCCK+/CAGbGGx618PlFZMXH81Jtj7t73CHv9dd/zVWvxgGT2zLFRjnKb+Ng46GIwcy+f7f88qd4duqllK+WQ==} + engines: {node: ^22.14.0 || >=24.0.0} data-view-buffer@1.0.2: resolution: {integrity: sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==} @@ -6317,8 +6724,8 @@ packages: resolution: {integrity: sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==} engines: {node: '>=4.0'} - dayjs@1.11.22: - resolution: {integrity: sha512-1YRnxzt/AabP3GHxnaB9/b+ZScCKu5TeF+co+BWG+lnWVIwEcTFc1FVE0WLNmNO3sA6GGXL40i5qkHfbLzpwrg==} + dayjs@1.11.23: + resolution: {integrity: sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==} debug@2.6.9: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} @@ -6345,15 +6752,6 @@ packages: supports-color: optional: true - debug@4.4.0: - resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - debug@4.4.3: resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} engines: {node: '>=6.0'} @@ -6367,17 +6765,9 @@ packages: resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} engines: {node: '>=0.10.0'} - decamelize@4.0.0: - resolution: {integrity: sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==} - engines: {node: '>=10'} - decimal.js@10.6.0: resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==} - decompress-response@6.0.0: - resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==} - engines: {node: '>=10'} - dedent@1.7.2: resolution: {integrity: sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==} peerDependencies: @@ -6423,10 +6813,6 @@ packages: resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} engines: {node: '>= 0.4'} - degenerator@5.0.1: - resolution: {integrity: sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==} - engines: {node: '>= 14'} - del@2.2.2: resolution: {integrity: sha512-Z4fzpbIRjOu7lO5jCETSWoqUDVe0IPOlfugBsF6suen2LKDlVb4QZpKEM9P+buNJ4KI1eN7I083w/pbKUpsrWQ==} engines: {node: '>=0.10.0'} @@ -6442,10 +6828,6 @@ packages: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} - dependency-graph@1.0.0: - resolution: {integrity: sha512-cW3gggJ28HZ/LExwxP2B++aiKxhJXMSIt9K48FOXQkm+vuG5gyatXnLsONRJdzO/7VfjDIiaOOa/bs4l464Lwg==} - engines: {node: '>=4'} - dequal@2.0.3: resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} engines: {node: '>=6'} @@ -6479,10 +6861,6 @@ packages: resolution: {integrity: sha512-X07nttJQkwkfKfvTPG/KSnE2OMdcUCao6+eXF3wmnIQRn2aPAHH3VxDbDOdegkd6JbPsXqShpvEOHfAT+nCNwQ==} engines: {node: '>=0.3.1'} - diff@7.0.0: - resolution: {integrity: sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==} - engines: {node: '>=0.3.1'} - diff@9.0.0: resolution: {integrity: sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw==} engines: {node: '>=0.3.1'} @@ -6496,21 +6874,24 @@ packages: dom-serialize@2.2.1: resolution: {integrity: sha512-Yra4DbvoW7/Z6LBN560ZwXMjoNOSAN2wRsKFGc4iBeso+mpIA6qj1vfdf9HpMaKAqG6wXTy+1SYEzmNpKXOSsQ==} - dom-serializer@2.0.0: - resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==} + dom-serializer@3.1.1: + resolution: {integrity: sha512-4MEa38/QexBob6gFNwu+EGdWvhJ1OKuNwdYY3Y3NyeWDQfnGeDYQUDfIRzWu5B5gsv03so2Uxd28YC6zrsx3Lw==} + engines: {node: '>=20.19.0'} - domelementtype@2.3.0: - resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} + domelementtype@3.0.0: + resolution: {integrity: sha512-umCQid3jKbDmVjx8jGaW7uUykm4DEUeyV21hPxNMo2nV955DhUThwqyOIDtreepP31hl84X7G5U9ZfsWvIB3Pg==} + engines: {node: '>=20.19.0'} - domhandler@5.0.3: - resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} - engines: {node: '>= 4'} + domhandler@6.0.1: + resolution: {integrity: sha512-gYzvtM72ZtxQO0T048kd6HWSbbGCNOUwcnfQ01cqIJ4X2IYKFFHZ5mKvrQETcFXxsRObZulDaKmy//R7TPtsBg==} + engines: {node: '>=20.19.0'} - dompurify@3.4.13: - resolution: {integrity: sha512-2vmYIoqjze2d+kakP8S/nS5shfsl587kzwEjcGlTdiksUVgFHnFCsLYDVj/JNqJVOQZGSYBTmuycv0PodwmnMQ==} + dompurify@3.4.17: + resolution: {integrity: sha512-B/pSlYVHQ58kqISD/yDjuJ1yfzI34m1gF4lAod2bwSRhiN4K5Cl3H8Af7hqB2PmTL911tdEudnnXn5FnhRoz0w==} - domutils@3.2.2: - resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==} + domutils@4.0.2: + resolution: {integrity: sha512-qI4JLRKnSzqFqr7hAlS5xQDusBCjKSEG4t4+7aNrIQMHBcsC2TGEhuyABJdYkgSewL57PNLYEiibY2iPKhKpaA==} + engines: {node: '>=20.19.0'} dot-prop@5.3.0: resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} @@ -6555,13 +6936,16 @@ packages: ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} - ejs@6.0.1: - resolution: {integrity: sha512-UaaM14yby8U3k02ihS1Bmj5Kz2d7CCQM1scxpgs4Mhkq8F1wR2gl3+Ts4h5Ne4Mnt7M9m4Dw7jsuMr3+xO4vZA==} + ejs@7.0.2: + resolution: {integrity: sha512-LcDSEP6Oclb9sTiSyG0MpG0RuKvLDRxCOOt+2sIk+kdk1rMkFU8SRnT0qaNt5zvU0LOV1YXXOvIoZL/sKwabvw==} engines: {node: '>=0.12.18'} hasBin: true - electron-to-chromium@1.5.408: - resolution: {integrity: sha512-SLoprcYpJ/OH2v2ps0+N5biv9H4/KBT3+YmmDew64TwK5y9j2wv7pMOFY7IorVkyMtEyLSCRlXKLsNlakeAlPw==} + electron-to-chromium@1.5.478: + resolution: {integrity: sha512-pftG+ma5Lm8O6/p45bhYT6StBN5ziQymaRzmCZwFl8DwWHKPPD93FdOmP1aqftcepolQYvrcyTLa17kE8Yf+jg==} + + elkjs@0.12.1: + resolution: {integrity: sha512-IhMYKHE4S2vtx0QrhBP3lYOIKDeIiJXBrdq9MGYkuB8ZHqhrBnHNfSUndjXFewrX1CPK8chwq+2NA0K0hliYuw==} emittery@0.13.1: resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==} @@ -6570,6 +6954,9 @@ packages: emoji-regex@10.6.0: resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==} + emoji-regex@11.0.0: + resolution: {integrity: sha512-2qQtc7syPcJmvF7BfKxBvwgvhzDth6u3q23+Jr4JOQUcmMGgmj7B4/ePZ2DmOhrrb77S8kMNHq2kilVASysfqA==} + emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -6579,8 +6966,8 @@ packages: emojilib@2.4.0: resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} - empathic@2.0.1: - resolution: {integrity: sha512-YGRs8knHhKHVShLkFET/rWAU8kmHbOV5LwN938RHI0pljAJ1Gf6SzXsSmRaEzcXTtOOmVqJ5+WtQPL5uigY50Q==} + empathic@2.1.0: + resolution: {integrity: sha512-AnfC1ATldl49/cvZdLPDjBfrRNwbDO05aibiOtzQu3qtlbJtomNLhF30HEtn/7iBz50dlMECqATo3fG0LrdEgw==} engines: {node: '>=14'} enabled@2.0.0: @@ -6590,15 +6977,13 @@ packages: resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} engines: {node: '>= 0.8'} - encodeurl@2.0.0: - resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} + encodeurl@2.0.1: + resolution: {integrity: sha512-Ev/hIyePLZtpL98x562lvPtenrUfGr0lfaf44HFZ+hDEwso7ccV9QAZrEVLg0hxNAzygaAFxy2dYaAKKM0G06A==} engines: {node: '>= 0.8'} - encoding-sniffer@0.2.1: - resolution: {integrity: sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==} - - encoding@0.1.13: - resolution: {integrity: sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==} + encoding@0.1.14: + resolution: {integrity: sha512-pqH+jIxIhwX5U4w+Tnu3jjowTo5QTACbqef2C5Cw2RhApr7COQqgnai53u8VbtqjWRcSoAcTf7uZ62dO5kC8Iw==} + engines: {node: '>=20.0.0'} end-of-stream@1.4.5: resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} @@ -6607,28 +6992,24 @@ packages: resolution: {integrity: sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q==} engines: {node: '>=10.0.0'} - engine.io@6.6.9: - resolution: {integrity: sha512-clKkw4C7nJ22mGgoVcCg6V/W/TxdNyIOTr89k2ONZu81qqkddPFDF0LXcbAwhzPD8DjkiRCjzuiO6Y+fkpD4vg==} + engine.io@6.6.11: + resolution: {integrity: sha512-z34mGpLoY/82ZbkX1LqGMIaf3wjVMPL6gVC681QDqnmzJ26synI8qAE32P+a7UazmpJZ8UGrFIeAavgRfXzYrg==} engines: {node: '>=10.2.0'} ent@2.2.2: resolution: {integrity: sha512-kKvD1tO6BM+oK9HzCPpUdRb4vKFQY/FPTFmurMvh6LlN68VMrdj77w8yp51/kDbpkFOS9J8w5W6zIzgM2H8/hw==} engines: {node: '>= 0.4'} - entities@4.5.0: - resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} - engines: {node: '>=0.12'} - entities@6.0.1: resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==} engines: {node: '>=0.12'} - entities@7.0.1: - resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==} - engines: {node: '>=0.12'} + entities@8.1.0: + resolution: {integrity: sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==} + engines: {node: '>=20.19.0'} - entities@8.0.0: - resolution: {integrity: sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==} + entities@9.0.0: + resolution: {integrity: sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==} engines: {node: '>=20.19.0'} env-paths@2.2.1: @@ -6639,10 +7020,6 @@ packages: resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==} engines: {node: '>=18'} - errno@0.1.8: - resolution: {integrity: sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==} - hasBin: true - error-ex@1.3.4: resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==} @@ -6665,6 +7042,9 @@ packages: es-module-lexer@2.3.2: resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==} + es-module-lexer@3.0.4: + resolution: {integrity: sha512-BldNY5mwkVu+cQ5Ymn3e6hB9Sx8XHx4ZevWbiUyZbfKxJxYO27Hf0wfzkxIaD5CAJMaGl3YspKELj0ff/7nCMA==} + es-object-atoms@1.1.2: resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==} engines: {node: '>= 0.4'} @@ -6677,8 +7057,8 @@ packages: resolution: {integrity: sha512-yPDz7wqpg1/mmHLmS3tcfTfbw5f1eryXvyghYBffGdERwe+mV7ZcWzTR8LR17Kvqt3qfPurjlonmnq3MKXIOXw==} engines: {node: '>= 0.4'} - es-toolkit@1.51.0: - resolution: {integrity: sha512-zC2lQGkM7QX+Gm6iM3+WIdZJzthsEd14LvRNJneSO2hzyz/zNBENR8+YXWo1cKxgPBtV6ksPYHELbcwBRzmdCw==} + es-toolkit@1.53.2: + resolution: {integrity: sha512-iUqZ+NlwH4jUgRmXZUxFBsV/9762TQEa1O4IXLFBmDEjVHScBytKuseX23I0+v9ShZ5MYxEx6WKNzm6IPnex8g==} es6-promise@4.2.8: resolution: {integrity: sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==} @@ -6713,10 +7093,6 @@ packages: resolution: {integrity: sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==} engines: {node: '>=8'} - escape-string-regexp@4.0.0: - resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} - engines: {node: '>=10'} - escodegen@2.1.0: resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} engines: {node: '>=6.0'} @@ -6807,10 +7183,6 @@ packages: resolution: {integrity: sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==} engines: {node: '>= 0.8.0'} - expand-template@2.0.3: - resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==} - engines: {node: '>=6'} - expand-tilde@2.0.2: resolution: {integrity: sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==} engines: {node: '>=0.10.0'} @@ -6819,25 +7191,25 @@ packages: resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} engines: {node: '>=12.0.0'} - expect@30.4.1: - resolution: {integrity: sha512-PMARsyh/JtqC20HoGqlFcIlQAyqUtW4PlI1rup1uhYJtKuwAjbvWi3GQMAn+STdHum/dk8xrKfUM1+5SAwpolA==} + expect@30.5.2: + resolution: {integrity: sha512-0LNuMvs8/5mRYhnCR4k+lGV7fqPMs6Bnksda4S3zsCUmdxBpAn4zU4NNzXdq1pMKe/H4W5t/zVIDSJ/H3e0vDA==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} exponential-backoff@3.1.3: resolution: {integrity: sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==} - express-rate-limit@8.6.2: - resolution: {integrity: sha512-YH4ru+eOJxQABscKFfRCy9R7x9QFGdezclVMwwgFFndzS2Xnm0uo6B0ABZsLhcpeptGv2qvuJVWlQr9gQZoC3A==} + express-rate-limit@8.7.3: + resolution: {integrity: sha512-zPLqDI2f0gV2WmGnacLf9XSSqn4VldRyP5LCzOwx0BKH40mO6+2PCFkoSsRO2jePx87/Kf6NUF6P2QOTKXHbQA==} engines: {node: '>= 16'} peerDependencies: express: '>= 4.11' - express@4.22.2: - resolution: {integrity: sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==} + express@4.22.3: + resolution: {integrity: sha512-Bdcs4+3qlpVlx2NRn6fgX2Ue2/gGRaPeawebgclM0ERSCqDpA+owF1fdPwjJUTAJWMTuAaxjDf+hzb0/4eKvvw==} engines: {node: '>= 0.10.0'} - express@5.2.1: - resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==} + express@5.3.0: + resolution: {integrity: sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==} engines: {node: '>= 18'} extend@3.0.2: @@ -6845,7 +7217,6 @@ packages: extsprintf@1.3.0: resolution: {integrity: sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==} - engines: {'0': node >=0.6.0} fancy-log@2.0.0: resolution: {integrity: sha512-9CzxZbACXMUXW13tS0tI8XsGGmxWzO2DmYrGuBJOJ8k8q2K7hwfJA5qHjuPPe8wtsco33YR9wc+Rlr5wYFvhSA==} @@ -6873,28 +7244,25 @@ packages: fast-string-width@3.0.2: resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} - fast-uri@3.1.5: - resolution: {integrity: sha512-gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==} + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} fast-wrap-ansi@0.2.2: resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} - fastdom@1.0.12: - resolution: {integrity: sha512-LB+xjSTEbjHE1cWsxu+tN2Xqr1kpi+V9aADI7sVM5ZMaXyYGPHULQMzpJMYqOTULK/73pUkWVzzObFRBkPr+hg==} - fastest-levenshtein@1.0.16: resolution: {integrity: sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==} engines: {node: '>= 4.9.1'} - fastq@1.20.1: - resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==} + fastq@1.20.3: + resolution: {integrity: sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==} faye-websocket@0.11.4: resolution: {integrity: sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==} engines: {node: '>=0.8.0'} - fb-watchman@2.0.2: - resolution: {integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==} + fb-watchman@2.0.4: + resolution: {integrity: sha512-tGQtaoYisPDriJBN0mT5yZSyNETnJGA1gTYxaVRAE5KUO3LI9kPUc9WIu8JXcxaIci+faIKlzXqXyPgrmubtBQ==} fd-package-json@2.0.0: resolution: {integrity: sha512-jKmm9YtsNXN789RS/0mSzOC1NUq9mkVd65vbSSVsKdjGvYXBuE4oWe2QOEoFeRmJg+lPuZxpmrfFclNhoRMneQ==} @@ -6934,10 +7302,6 @@ packages: resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==} engines: {node: '>= 18.0.0'} - find-cache-directory@6.0.0: - resolution: {integrity: sha512-CvFd5ivA6HcSHbD+59P7CyzINHXzwhuQK8RY7CxJZtgDSAtRlHiCaQpZQ2lMR/WRyUIEmzUvL6G2AGurMfegZA==} - engines: {node: '>=20'} - find-up-simple@1.0.1: resolution: {integrity: sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ==} engines: {node: '>=18'} @@ -6946,10 +7310,6 @@ packages: resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} engines: {node: '>=8'} - find-up@5.0.0: - resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} - engines: {node: '>=10'} - findup-sync@5.0.0: resolution: {integrity: sha512-MzwXju70AuyflbgeOhzvQWAvvQdo1XL0A9bVvlXsYcFEBM87WR4OakL4OfZq+QRmr+duJubio+UtNQCPsVESzQ==} engines: {node: '>= 10.13.0'} @@ -6958,35 +7318,35 @@ packages: resolution: {integrity: sha512-OFRzsL6ZMHz5s0JrsEr+TpdGNCtrVtnuG3x1yzGNiQHT0yaDnXAj8V/lWcpJVrnoDpcwXcASxAZYbuXda2Y82A==} engines: {node: '>= 10.13.0'} - firebase-tools@15.27.0: - resolution: {integrity: sha512-gQMMPkv20hAuCUy596Z/GPA0YiwJEr6xEwvJnc+BeZnMlJVYZcl4OL8vvPNqDDcQmrXlNRNAP/qpyVc+5jkxTw==} + firebase-tools@15.35.0: + resolution: {integrity: sha512-grcjoqNsJoWTTu+YEuM8BScOM7c5lM1XCFenmz0RhNEyJVoj8dTslPy7sx5Hct69+9OAKJb70qZ3JTHZFw+3zQ==} engines: {node: '>=20.0.0 || >=22.0.0 || >=24.0.0'} hasBin: true - firebase@12.17.1: - resolution: {integrity: sha512-dhp41ye9jMQvhx5FwjMkf/hjDHJApl7gXmvzOZGvP0M7c/GZGUnQ4qvsvlOBkF0Pa7wAwHMdcpL0ON2pXCQ4Sw==} + firebase@13.2.0: + resolution: {integrity: sha512-29ye5F+viPTv48mcljy84ZnwnrYmTTIULrWf3P113SfeTB/USIUZTs8gREreN5PmndQdKs3D06KQUPJIrFeTGw==} flagged-respawn@2.0.0: resolution: {integrity: sha512-Gq/a6YCi8zexmGHMuJwahTGzXlAZAOsbCVKduWXC6TlLCjjFRlExMJc4GC2NYPYZ0r/brw9P7CpRgQmlPVeOoA==} engines: {node: '>= 10.13.0'} - flat@5.0.2: - resolution: {integrity: sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==} - hasBin: true - flatted@3.4.4: resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} + flru@1.0.2: + resolution: {integrity: sha512-kWyh8ADvHBFz6ua5xYOPnUroZTT/bwWfrCeL0Wj1dzG4/YOmOcfJ99W8dOVyyynJN35rZ9aCOtHChqQovV7yog==} + engines: {node: '>=6'} + fn.name@1.1.0: resolution: {integrity: sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==} - folder-hash@4.1.3: - resolution: {integrity: sha512-94fj+fXj1XHT8zGumUy/VlyFARc/yrslKJ2+vjrP/U6ftTdL7u68+gQhvSBjz9wrwTuty6BpZ7JsbEK5OU9RNw==} + folder-hash@4.1.4: + resolution: {integrity: sha512-BhHpJCYoTej4YH0C3HY4X49C2uOcWntjSD24T1GBYlfWcW/7mkHZov9HbvzCHQO+ZLbJ3VRE+cL1uEiaQvacLw==} engines: {node: '>=10.10.0'} hasBin: true - follow-redirects@1.16.0: - resolution: {integrity: sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==} + follow-redirects@1.16.3: + resolution: {integrity: sha512-toOSoqN6d51Wjf1aOFJYcoVv1aND9rj/CwjLU0Vz40oDuSpWDayCeKe4JpL5NL0WdFvoOOCI3BRo69HahjbR1A==} engines: {node: '>=4.0'} peerDependencies: debug: '*' @@ -7040,17 +7400,10 @@ packages: resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} engines: {node: '>= 0.8'} - fs-constants@1.0.0: - resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} - fs-extra@10.1.0: resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==} engines: {node: '>=12'} - fs-extra@11.4.0: - resolution: {integrity: sha512-EQsFzMUJkCKGr1ePqlYADkIUmHW1s3ZXr5Yqy6wbGrfUCphpl2maM/kyOIRA2HpP3AaFQTZXD4ldjek+nccddA==} - engines: {node: '>=14.14'} - fs-extra@8.1.0: resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==} engines: {node: '>=6 <7 || >=8'} @@ -7097,6 +7450,10 @@ packages: resolution: {integrity: sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ==} engines: {node: '>=18'} + gaxios@8.3.2: + resolution: {integrity: sha512-7VsaTExxjbDv2ZK1YuC4jbgfN33NI/6/7zdYWUHB6mcg51v4tCBZe+xzjqPzOpVzI+C5k1Kk9OQ80WVrXAHOqw==} + engines: {node: '>=22'} + gcp-metadata@6.1.1: resolution: {integrity: sha512-a4tiq7E0/5fTjxPAaH4jpjkSv/uCaU2p5KC6HVGrvl0cDjA8iBZv4vv1gyzlmK0ZUKqwpOyQMKzZQe3lTit77A==} engines: {node: '>=14'} @@ -7109,6 +7466,10 @@ packages: resolution: {integrity: sha512-iJ9KMsiu+xKtNRX0PmGLSaIU3bUBAyzWTyqKemKPzNPsmmsBCQYmlNg+brEbES7IHSXtdVwzBPzx1vz3FAaipw==} engines: {node: '>=18'} + gcp-metadata@9.2.3: + resolution: {integrity: sha512-d2OI/dJJ3IIaeOz3c9jvr5j5G5beI5fQzbgilNiWhDKGwvJN9o10Qub70NkbF6PNJSUoNKZ77JKYGz0Fs4+9Lg==} + engines: {node: '>=22'} + generator-function@2.0.1: resolution: {integrity: sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==} engines: {node: '>= 0.4'} @@ -7124,8 +7485,8 @@ packages: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} - get-east-asian-width@1.6.0: - resolution: {integrity: sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==} + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} engines: {node: '>=18'} get-intrinsic@1.3.0: @@ -7152,17 +7513,13 @@ packages: resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==} engines: {node: '>= 0.4'} - get-tsconfig@4.14.2: - resolution: {integrity: sha512-XpwZALwwl/BaKTAyC6+c5T8y6kCg2jk+XGqOVrKIQmW49pNypYLMRjCUXqa28tQgJlhS2RlzP7sc+Rx7W6qsfw==} + get-tsconfig@4.14.3: + resolution: {integrity: sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==} - get-tsconfig@5.0.0-beta.5: - resolution: {integrity: sha512-/6gFNr0N04nob252sTQxyFLi3eKFRqIg1I87YcqAMT1i6SQrSF6KujUEQrtrjMV0H/eejTCltLdDSTEMzHbnsQ==} + get-tsconfig@5.0.0-beta.6: + resolution: {integrity: sha512-X6fBC0pmImC70gvX2zm56go9hx0MyoGVdG0tUCkg/D+Xnh5TJsOZ7iDbOdI3PvmtrDxnu1YdDufpK2QJX1Meqw==} engines: {node: '>=20.20.0'} - get-uri@6.0.5: - resolution: {integrity: sha512-b1O07XYq8eRuVzBNgJLstU6FYc1tS6wnMtF1I1D9lE8LxZSOGZ7LhxN54yPP6mGw5f2CkXY2BQUL9Fx41qvcIg==} - engines: {node: '>= 14'} - getpass@0.1.7: resolution: {integrity: sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==} @@ -7178,9 +7535,6 @@ packages: deprecated: Deprecated and no longer maintained. Use @conventional-changelog/git-client instead. hasBin: true - github-from-package@0.0.0: - resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} - glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} @@ -7195,8 +7549,8 @@ packages: glob-slasher@1.0.1: resolution: {integrity: sha512-5MUzqFiycIKLMD1B0dYOE4hGgLLUZUNGGYO4BExdwT32wUwW3DBOE7lMQars7vB1q43Fb3Tyt+HmgLKsJhDYdg==} - glob-stream@8.0.3: - resolution: {integrity: sha512-fqZVj22LtFJkHODT+M4N1RJQ3TjnnQhfE9GwZI8qXscYarnhpip70poMldRnP8ipQ/w0B621kOhfc53/J9bd/A==} + glob-stream@8.0.4: + resolution: {integrity: sha512-7uzFVQ1ZUBr0nYexxubOvocZXQ4HcHv6WO3TOiYUPaCda7BASuKgOw/NB4Pc9gHM3tK0Jrekq7el8pKhb8kx5w==} engines: {node: '>=10.13.0'} glob-watcher@6.0.0: @@ -7214,8 +7568,12 @@ packages: deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true - glob@13.0.6: - resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==} + glob@13.0.7: + resolution: {integrity: sha512-wfsFgXQ8A3SEI9XGf7Nl3Y9l7ffSrGh7SUCT7vU/2CzYPep9kjxAn1S40F9OPKxAMGCVl7HtNlJhrCJUeUq83g==} + engines: {node: 18 || 20 || >=22} + + glob@14.0.4: + resolution: {integrity: sha512-mMiwNKoJZ4HAIRVJxotO6LsNRReA30gQwP9E2/p94tfLv+jygCNpKDjhhSL6OLY6LE371EZm5EAf7RpYuUqlsw==} engines: {node: 18 || 20 || >=22} glob@7.2.3: @@ -7238,10 +7596,6 @@ packages: resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==} engines: {node: '>= 0.4'} - globby@14.1.0: - resolution: {integrity: sha512-0Ia46fDOaT7k4og1PDW4YbodWWr3scS2vAr2lTbsplOt2WkKp0vQbkI9wKis/T5LV/dqPjO3bpS/z6GTJB82LA==} - engines: {node: '>=18'} - globby@5.0.0: resolution: {integrity: sha512-HJRTIH2EeH44ka+LWig+EqT2ONSYpVlNfx6pyd592/VF1TbfljJ7elwie7oSwcViLGqOdWocSdu2txwBF9bjmQ==} engines: {node: '>=0.10.0'} @@ -7258,6 +7612,10 @@ packages: resolution: {integrity: sha512-i1ydyHrqcIxXkWh/uBmVkzCvIuq5yiK2ATndIe5XxKholrG/MTYP9xGYka4sQhrbIAgGjL2B6NOE7rFaiF3fXw==} engines: {node: '>=18'} + google-auth-library@11.3.3: + resolution: {integrity: sha512-VxjQ5+zHeR4RcRi001qnT/6KRKy2CIjQ5I7/wFErvRqr0+setlRqjDOAzvjzWEzyvsWswZE6WMQJtS8OpeTqAQ==} + engines: {node: '>=22'} + google-auth-library@9.15.1: resolution: {integrity: sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng==} engines: {node: '>=14'} @@ -7278,9 +7636,13 @@ packages: resolution: {integrity: sha512-WE9av4wKDZgRjBwgVUabocx8T6/7o3Ca1Fat46FXDhXVAFibzNadedcOXrdgd1Kzmk8tsk/9ZH89Wyf/SqeZ3A==} engines: {node: '>=18'} - googleapis-common@8.0.3: - resolution: {integrity: sha512-7g1yzQKx0mmNTjiK0H9dJ8eqKqDBveES9vLHeg5neb3BMQy/d1oQefIMhIpOVT8a+f+LOcixMEdRbFIW/cQUJw==} - engines: {node: '>=18'} + google-logging-utils@2.1.1: + resolution: {integrity: sha512-jYZOPMaRGS3Hldyudft6bdibW9ZWUKBkMdB2TeSETkV1c2T9TR4zxEWZETHv9xJ8KHr2hgkNLaSa8kcEcwlpeQ==} + engines: {node: '>=22'} + + googleapis-common@9.3.1: + resolution: {integrity: sha512-wtv/e7JYgmtpIPcSez2EFD/Wx49DPsRX2rj15D7hTwc7tDsP82dcwoX/I4+zE38mu6S9PcghizzzADLf+ZMunA==} + engines: {node: '>=22'} gopd@1.2.0: resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} @@ -7298,13 +7660,15 @@ packages: peerDependencies: graphql: ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 - graphql@16.14.2: - resolution: {integrity: sha512-Chq1s4CY7jmh8gO2qvLIJyfCDIN+EHLFW/9iShnp1z8FjBQMoodWP1kDC36VAMXXIvAjj4ARa7ntfAV2BrjsbA==} + graphql@16.15.0: + resolution: {integrity: sha512-32kz9FecohDiC/tgcViwnRXM7HFBVTPiW7pHO+DikKOI5KjhU/jNULOReXsrFqt2WAYbE9xFXsTffJw6iTO8qw==} engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} grpc-gcp@1.1.1: resolution: {integrity: sha512-I3GNn9ONy5Vrm6XdjgOu7296DnN9vudnjv7dXKW2jAogfS20YMYZAzfZNkJUMgdpQTtLJ9t+DQCzYgGBpdYuwA==} engines: {node: '>=12'} + peerDependencies: + protobufjs: '*' gtoken@7.1.0: resolution: {integrity: sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==} @@ -7336,8 +7700,8 @@ packages: hachure-fill@0.5.2: resolution: {integrity: sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==} - handlebars@4.7.9: - resolution: {integrity: sha512-4E71E0rpOaQuJR2A3xDZ+GM1HyWYv1clR58tC8emQNeQe3RH7MAzSbat+V0wG78LQBo6m6bzSG/L4pBuCsgnUQ==} + handlebars@4.7.10: + resolution: {integrity: sha512-P5VJMVM7qgBn6vjXMw8WG9uVI+ncf2pi72j4de4yz5ZULLj2RGqLYaKOYGsgyrViQ0tePOVlN1tDCCXXtFqXKg==} engines: {node: '>=0.4.7'} hasBin: true @@ -7396,8 +7760,8 @@ packages: resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} engines: {node: '>= 0.4'} - hast-util-to-html@9.0.5: - resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==} + hast-util-to-html@9.0.6: + resolution: {integrity: sha512-1SZUxCN3TtJAE7e2BQN2MBHsoZ1gnmi9GoCP5Di59CSWptIezSAW09yDZyVbanb78V9eCwrKqdQsjtfVTxYHWA==} hast-util-whitespace@3.0.0: resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} @@ -7417,8 +7781,8 @@ packages: resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} engines: {node: '>=0.10.0'} - hono@4.13.2: - resolution: {integrity: sha512-JydRilDRkYBQMt9qR9U92mXxmbGqsqSn/IKOrh4e7/gEbn+0zSr8igTu0obwJoNGN4sez28DIql7FBHWydoJpA==} + hono@4.13.17: + resolution: {integrity: sha512-vZIcbkvjOR5hHRWERbGkr8fGfF0GGM1ooYkuH448iO3b2AdVEr3AXZSw4Z3Kn+1L5z0CVoVeyV29VGYmFh05kQ==} engines: {node: '>=16.9.0'} hosted-git-info@10.1.1: @@ -7441,9 +7805,9 @@ packages: resolution: {integrity: sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==} engines: {node: '>=18'} - html-encoding-sniffer@6.0.0: - resolution: {integrity: sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==} - engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} + html-encoding-sniffer@7.0.0: + resolution: {integrity: sha512-UikN5yr7xsCDAq87Or5or0PAlD3HJJOKVzM05az588WnpDJ4Ux7a2A53Qi6gofGg2/EtvF/H4hCi/TXfCW4Y6w==} + engines: {node: ^22.13.0 || >=24.0.0} html-entities@2.6.0: resolution: {integrity: sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ==} @@ -7454,8 +7818,9 @@ packages: html-void-elements@3.0.0: resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==} - htmlparser2@10.1.0: - resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==} + htmlparser2@12.0.0: + resolution: {integrity: sha512-Tz7u1i95/g2x2jz81+x0FBVhBhY5aRTvD3tXXdFaljuNdzDLJ8UGNRrTcj2cgQvAg3iW/h77Fz15nLW0L0CrZw==} + engines: {node: '>=20.19.0'} http-errors@2.0.1: resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==} @@ -7468,6 +7833,10 @@ packages: resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} engines: {node: '>= 14'} + http-proxy-agent@9.1.0: + resolution: {integrity: sha512-2NxoveTT58mjYT4n3RPTEfCZGLMbidoO8XEieXfpSYxu+PQJ1qpx4ypwH6N+uF9twBPIvRRgvkvW5HUTYWENig==} + engines: {node: '>= 20'} + http-proxy@1.18.1: resolution: {integrity: sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==} engines: {node: '>=8.0.0'} @@ -7528,8 +7897,8 @@ packages: ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} - ignore@7.0.6: - resolution: {integrity: sha512-BAg6QkE8W+TuQLrrw0Ugr7HegXduRuuj8/ti2kSOc+jz1dmx8/WNcjr6XGnq5YpDWxFwwaavqD0+jIUOKelTsw==} + ignore@7.0.14: + resolution: {integrity: sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==} engines: {node: '>= 4'} immediate@3.0.6: @@ -7538,6 +7907,10 @@ packages: immutable@5.1.9: resolution: {integrity: sha512-m8nVez3rwrgmWxtLMt1ZYXB2Lv7OKYn/disyxAlSDYAlKSlFoPPfIAmAM/M5xqL4m4C/wAPw7S2/CNaUii1Hxg==} + import-in-the-middle@3.6.0: + resolution: {integrity: sha512-xRU7hI24S2FhucXtuZXn8EpcOjfVP6iiEQyR0USayPeaOroEmSsNlqnl95866iRdRtkHrd6Q/Z4D14R60au0+A==} + engines: {node: '>=18'} + import-lazy@2.1.0: resolution: {integrity: sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==} engines: {node: '>=4'} @@ -7572,11 +7945,8 @@ packages: resolution: {integrity: sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==} engines: {node: '>=10'} - injection-js@2.6.1: - resolution: {integrity: sha512-dbR5bdhi7TWDoCye9cByZqeg/gAfamm8Vu3G1KZOTYkOif8WkuM8CD0oeDPtZYMzT5YH76JAFB7bkmyY9OJi2A==} - - install-artifact-from-github@1.7.0: - resolution: {integrity: sha512-qAb91yAKVF9rFY4rVP21ZtYUyCScxAFt9udwzVWNLBE1pQcdQeB2gd1HlNPcQNYCzCDvJ/QJQPuWQ6aTmSlU8g==} + install-artifact-from-github@1.8.1: + resolution: {integrity: sha512-lV8dRlR/3i6Tk4X9agaqhMRY6ScVU3YOuKse0VRnP9+rUWfImeCjo1TeAefXEauNVF3a8QgOb6jW3CZJetVopw==} engines: {node: '>=18'} hasBin: true @@ -7595,8 +7965,8 @@ packages: resolution: {integrity: sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==} engines: {node: '>=10.13.0'} - ip-address@10.5.0: - resolution: {integrity: sha512-R5SnVLJmgYYvf2F2ZgwSBnelz5G4q5AxIC277GDfUaNbrZKNANcBC7RHqYYePlszf4kBolVkJauG0ZjHHFh55g==} + ip-address@10.7.6: + resolution: {integrity: sha512-00LYkM6byILa9eQIx6qoaXCM40xTLd56AZ4vyaPW3YTyb49VZYPo5xsiAq4tuQ54GH4R7gVdYScJ1B7B77PuTg==} engines: {node: '>= 12'} ip-regex@2.1.0: @@ -7611,6 +7981,12 @@ packages: resolution: {integrity: sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==} engines: {node: '>=0.10.0'} + is-alphabetical@2.0.1: + resolution: {integrity: sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==} + + is-alphanumerical@2.0.1: + resolution: {integrity: sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==} + is-array-buffer@3.0.5: resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==} engines: {node: '>= 0.4'} @@ -7642,8 +8018,8 @@ packages: resolution: {integrity: sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==} hasBin: true - is-core-module@2.16.2: - resolution: {integrity: sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==} + is-core-module@2.18.0: + resolution: {integrity: sha512-qyax9fgaKOEC4qK8WZn7Q4IcoZC9RC1O1fFxRcRTq/oMMkWT/uXpqpXa12kzWR409zAt1drYN9N9BO26UmBCmw==} engines: {node: '>= 0.4'} is-data-view@1.0.2: @@ -7654,6 +8030,9 @@ packages: resolution: {integrity: sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==} engines: {node: '>= 0.4'} + is-decimal@2.0.1: + resolution: {integrity: sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==} + is-docker@2.2.1: resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==} engines: {node: '>=8'} @@ -7696,6 +8075,10 @@ packages: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} + is-in-ssh@1.0.0: + resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==} + engines: {node: '>=20'} + is-inside-container@1.0.0: resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} engines: {node: '>=14.16'} @@ -7763,12 +8146,12 @@ packages: resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} engines: {node: '>=8'} - is-plain-obj@2.1.0: - resolution: {integrity: sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==} - engines: {node: '>=8'} + is-path-inside@4.0.0: + resolution: {integrity: sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA==} + engines: {node: '>=12'} - is-plain-object@5.0.0: - resolution: {integrity: sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==} + is-plain-object@5.1.0: + resolution: {integrity: sha512-bUi/yjmtKYcRVUtWRGr0UA6xEFh2I6zWUwMrUXB3s7bmYCaZ8a+0ZsTRkrawh/mzlSD1Y0Ph8bp/U+TvBpWDNw==} engines: {node: '>=0.10.0'} is-potential-custom-element-name@1.0.1: @@ -7853,10 +8236,6 @@ packages: resolution: {integrity: sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==} engines: {node: '>= 0.4'} - is-what@4.1.16: - resolution: {integrity: sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==} - engines: {node: '>=12.13'} - is-windows@1.0.2: resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==} engines: {node: '>=0.10.0'} @@ -7962,6 +8341,9 @@ packages: jasmine-core@6.3.0: resolution: {integrity: sha512-eMm5qBovNjNoGOcgE/W207+wrcK5zrQv0Rg/rWGboUJUmZp0dFCpHTyjpuDAfCwRCqg7f9U2q2jtv/aUuzdCQg==} + jasmine-core@7.0.2: + resolution: {integrity: sha512-YMVijt84KPQQFm1db1AQAxTXfq0k3wU06OkepLViljURFqiRQ7EYYX2eUAshhUv9fA9t1E2N65GrdqvupA9VPQ==} + jasmine-reporters@2.5.2: resolution: {integrity: sha512-qdewRUuFOSiWhiyWZX8Yx3YNQ9JG51ntBEO4ekLQRpktxFTwUHy24a86zD/Oi2BRTKksEdfWQZcQFqzjqIkPig==} @@ -7973,20 +8355,24 @@ packages: resolution: {integrity: sha512-u6L7yYtrtS1JALlp7f4k7Wz7o7ZKXauSKKkXc0L3qUkKrdaxYvNiMHhHp5gtTuVZZXVihXRxS7bWwDBX1wJ7EQ==} hasBin: true + jasmine@7.0.0: + resolution: {integrity: sha512-rnjiyg1LAhFZMoyU8ei/Wqyvti5oCzFhW7ZtkD6o+CSx3LpU9aYurPrh5BKyX3coGvmdEVYPC2HYh1rrBvZoWg==} + hasBin: true + jasminewd2@2.2.0: resolution: {integrity: sha512-Rn0nZe4rfDhzA63Al3ZGh0E+JTmM6ESZYXJGKuqKGZObsAB9fwXPD03GjtIEvJBDOhN94T5MzbwZSqzFHSQPzg==} engines: {node: '>= 6.9.x'} - jest-changed-files@30.4.1: - resolution: {integrity: sha512-IuctmYrxi21iOSOaIXpJWalHyPAsVv0GeBHKDn8C1CA4W5htHn7INL+wdnL4Bo0+olEndvAFkmb++tIQJG+vvg==} + jest-changed-files@30.5.1: + resolution: {integrity: sha512-0+bvMM/ENhDI29Z8q1r4HxiDIi4G5tnBmSw4esfPQoj9q8Nik7KIyuxHkTVnnniJQf05SxpGaKDQ+4h28ynGPg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-circus@30.4.2: - resolution: {integrity: sha512-rvHH7VlY6LgbJXJTQ87GW62g1FntOtbhh0zT+v04kC+pgL6aBKyYINXxWukCpj3dcIBMw5/XUbtDS9dU9JTXeQ==} + jest-circus@30.5.2: + resolution: {integrity: sha512-vffFgjs5JSJ9q4ds1vNW3klKYPJfYfIY61LT/zaZgvTeASJOWZUt8LBfHgIcV4rwxlPBLl/ePBGccHEclS4PlQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-cli@30.4.2: - resolution: {integrity: sha512-jfA2ocvVHMXS2QijrJ0d31ektP+d/W0T5RpcTX2Pq+3sVqHlsXVCM2+FmwpL+bdY8OfHpIg9xMxLF17Zg0U49Q==} + jest-cli@30.5.2: + resolution: {integrity: sha512-YYYxUUVjFgPvgEleKNKMaYGIFgR3l3832Cl0kRL/oCiDZ03v7wImUtquHl2OOBCCNgprjZgBN5bczS/JklPBDg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} hasBin: true peerDependencies: @@ -7995,8 +8381,8 @@ packages: node-notifier: optional: true - jest-config@30.4.2: - resolution: {integrity: sha512-rNHAShJQqQwFNoL0hbf3BphSBOWnpOUAKvidLS/AjNVLPfoj5mSf4jQMfW3cYOs6hXeZC7nF7mDHaBnbxELOzg==} + jest-config@30.5.2: + resolution: {integrity: sha512-U6221OZekabePvGcGPf4raIBKMvYQWFHvhobDJRojOYaFMj2HaGytAdknjDhYc6JTz2fdHW9+6k0wWUDaNeOFQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} peerDependencies: '@types/node': '*' @@ -8010,20 +8396,20 @@ packages: ts-node: optional: true - jest-diff@30.4.1: - resolution: {integrity: sha512-CRpFK0RtLriVDGcPPAnR6HMVI8bSR2jnUIgralhauzYQZIb4RH9AtEInTuQr65LmmGggGcRT6HIASxwqsVsmlA==} + jest-diff@30.5.2: + resolution: {integrity: sha512-rBtHnI6BWTiWj3lM7fOLVfChx7R9B0u9VV3PRHawKs79x6ZjW1QoSrKenaigNGWlvhtoi2BqvDbABDie+Os3xQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-docblock@30.4.0: - resolution: {integrity: sha512-ZPMabUZCx5MpbZ2eBYSvZ0J8fvo3dR9oM+eeUpb3aKNQFuS2tu3Duw1TNlMoP8k3WQgKGJuhcMFvwcVuq6T7oA==} + jest-docblock@30.5.0: + resolution: {integrity: sha512-NwDqcxtoZi33RhuW+zJS/RVA3rmheQ8BnwpYZuc/Eruaz6seQb7+aoCeDZu/3X7W2XmD8DbSo9Pn72DbKsBFYw==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-each@30.4.1: - resolution: {integrity: sha512-/8MJbH6fuj48TstjrMf+u/pd06Qezz5xOXvZA6442heNOWr8bdeoGZX2d9fCn028CoMgYmroH9//zky5GfyYmA==} + jest-each@30.5.2: + resolution: {integrity: sha512-GRrW+7fmmgmkvyfEBqc1QFdWnF1Ex5yG6Y6AWL4TTxnkWlKIT98dsKh3P3UuWm6v4XsQwVE6DEzXIPMzWJ3ZbA==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-environment-jsdom@30.4.1: - resolution: {integrity: sha512-o3nfaN4zej7qgk2X0j8Jhq/S9nAVKs2xK3QeQxeHVvpkEPxaA1yxDGydR+iVI7zPy7Cp62Aq2h3Ja46QvfWHGA==} + jest-environment-jsdom@30.5.2: + resolution: {integrity: sha512-6NOZjEP+WNi4WXjbxb/1ROnfaMxn6Dhqu6uSC22o0H28z+uppejs/jZ9KCVoLepqqoCjcNZujtzQqC9jSV15jg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} peerDependencies: canvas: ^3.0.0 @@ -8031,81 +8417,72 @@ packages: canvas: optional: true - jest-environment-node@30.4.1: - resolution: {integrity: sha512-4FZYVOk85hz2AyT6BbarKy9u37g6DbrDyCdFhsnDdXqyrueYQvB+0zO4f/kqLCRD0BsPRXPMNJeQwihKZV8naw==} + jest-environment-node@30.5.2: + resolution: {integrity: sha512-Ciz4KgTGIbojxSKpuFImgWJj5EyqfE8xMq9NxWmOXnQywHHS03H9Mv+vaCB29J5pr3JBrY27WbRV18rBdjh8Dg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-haste-map@30.4.1: - resolution: {integrity: sha512-rFrcONd8jeFsyw+Z9CrScJgglRf2+NFmNam8dKu7n+SoHqNYT47mn0DdEcVUZJpvh7Iz6/si7f7yUH7GJHVgnw==} + jest-haste-map@30.5.1: + resolution: {integrity: sha512-VIFgt67jW480YDxKfEv9IYQKrFpYt7bOCMn3VsnjK7AK9qo7p6acpnA1DHwsVOULE3dTaYew/6JaTD/d0VDHoQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-leak-detector@30.4.1: - resolution: {integrity: sha512-IpmyiioeHxiWDhesHnUFmOxcTzwCwKpgACgWajtAP+nYQXiY7DakTxB6Bx9JFiRMljr0AX1PvnQdaU1KFoz6NQ==} + jest-leak-detector@30.5.1: + resolution: {integrity: sha512-gt4GT2aWgEoCNTcBe4rqS74xTIUJxi+UD9SNSu9aOk5LmTEd6fS5KSTmAKAfitCCktQHNN+upUuL6EkBfFbMDQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-matcher-utils@30.4.1: - resolution: {integrity: sha512-zvYfX5CaeEkFrrLS9suWe9rvJrm9J1Iv3ua8kIBv9GEPzcnsfBf0bob37la7s67fs0nlBC3EuvkOLnXQKxtx4A==} + jest-matcher-utils@30.5.2: + resolution: {integrity: sha512-lFkB365PTIHOhPzwrb9T6gvlDnPpOZ7/c3ewOKKB7bzztqjVrtlyRL2MkyfJXpyY2u2SKw001JKrTx14fBUFcQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-message-util@30.4.1: - resolution: {integrity: sha512-kwCKIvq0MCW1HzLoGola9Te6JUdzgV0loyKJ3Qghrkz9i5/RRIHsL95BMQc2HBBhlBKC4j22K9p11TGHH8RBpQ==} + jest-message-util@30.5.1: + resolution: {integrity: sha512-UdQlLdd9wL/Ys7xRErckqwD6wPlSZYueosSWuHc1r2ztGLwlgPvtSJq2+BPEgaEY13WLvfFbmhTj8pba0Sd1jg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-mock@30.4.1: - resolution: {integrity: sha512-/i8SVb8/NSB7RfNi8gfqu8gxLV23KaL5EpAttyb9iz8qWRIqXRLflycz/32wXsYkOnaUlx8NAKnJYtpsmXUmfw==} + jest-mock@30.5.2: + resolution: {integrity: sha512-KTHb37Fhj8xY8qPFvTFaFJHcdsumQp+ExsUlgoX232Agmc706gagBs53+CYvulV7MVQo9AgXOUxsqzzVBoJlrA==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-pnp-resolver@1.2.3: - resolution: {integrity: sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==} - engines: {node: '>=6'} - peerDependencies: - jest-resolve: '*' - peerDependenciesMeta: - jest-resolve: - optional: true - - jest-regex-util@30.4.0: - resolution: {integrity: sha512-mWlvLviKIgIQ8VCuM1xRdD0TWp3zlzionlmDBjuXVBs+VkmXq6FgW9T4Emr7oGz/Rk6feDCGyiugolcQEyp3mg==} + jest-regex-util@30.5.0: + resolution: {integrity: sha512-Mg0WK7A6xRHLSA1udJ8y9f3lM0uUhFTBnLKzwPmqB9AylvpleJ6BLemR8K9dK27DY+cesDryoA7yLZCAHsPG1A==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-resolve-dependencies@30.4.2: - resolution: {integrity: sha512-gDiVh1I+GxYzz9oXlyw+1wv6VOYX1WYxMOfjsA3iGKePV2oxmbHhwxfkALxNxYy1ciw6APWwkW2zZONwP97aEQ==} + jest-resolve-dependencies@30.5.2: + resolution: {integrity: sha512-GMI0DP5enX9Z2qW2zFy1bOkrCfWAOPRJQ7qHt0pdfrxBPsgWxglMPrRSK2TX/wRWYxcPRSLFg3Z88qPOzHx7FQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-resolve@30.4.1: - resolution: {integrity: sha512-Zry8Yq/yJcNAZ7dJ5F2heic8AheXvbFZ7XI5V+h28nrYZ7Qoyy4dItq8OodjnYD270mvX+ZudmrNV9cysqhW5Q==} + jest-resolve@30.5.1: + resolution: {integrity: sha512-wprhLejRtwN6h8ZgaqC0eYjGJ1uMdGPT/+b3eFncbG4NWuuP9QL+vWwRinu9waw7hkOLcpMJGVJAMgBwsPssMQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-runner@30.4.2: - resolution: {integrity: sha512-2dw0PslVYXxffXGpLo+Ejad+KcI1Qkjn7f4X4619gf21oCUmL+SPfjqIa/losUem3yEOvfNZe/F1HWUcNpODcg==} + jest-runner@30.5.2: + resolution: {integrity: sha512-/B6px7hiiNhVSRwuv9AGn0nawYvwsHeQZ3ItTd5Gp2diFd0EOKaWVeWqcbw3L88vx1GfpCKjQkxWItZCTl11Rw==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-runtime@30.4.2: - resolution: {integrity: sha512-3/5e8iPz2k/VLqlr8DgTftYyLUv8Su3FkCAO2/Od81UsUTpSxOrS6O5x5KkoQwyUjmpYyDJKeyAvg2T2nvpNkQ==} + jest-runtime@30.5.2: + resolution: {integrity: sha512-0paUAHBlheai10A3XSy9Xh+YBG0IROy+/qzcDPzQ/nbbXrznQzeWy5qniICWK6d3W3scaRQCVAbXdcK0ibBq4w==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-snapshot@30.4.1: - resolution: {integrity: sha512-tEOkkfOMppUyeiHwjZswOQ3lcnoTnws/q5FnGIaeIh/jmoU0ZlgMYRR8sTlTj+nNGCoJ0RDq6SfxGxCsyMTPmw==} + jest-snapshot@30.5.2: + resolution: {integrity: sha512-jKIdes25AnAH73dOCi2qE6J6vHJ6L2vyBS11M89kT50DVJcLTf2AOjvcc+2vVaN8lUbY5v2R83aqXo3Ro9fqYA==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-util@30.4.1: - resolution: {integrity: sha512-vjQb1sACEiv13DKJMDToJpzVW0joCsIQrmbg0fi7CyOOt+g9jTuQl2A216pWRBYhOVt53XbL/2LbMKg1BECWOw==} + jest-util@30.5.1: + resolution: {integrity: sha512-yKuxmNy2rSbTXw+3SIPanJo+nV4/BS1p26v44IYBFMsswSQySfMMcPHErnOncda7i9HEz0q605rIhSTBVgrZTg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-validate@30.4.1: - resolution: {integrity: sha512-PDWi4SOwLnwqNDfHZjOcsEFyZ4fc/2W2gVL3DEoyqnB6jCQMLRtfBong8s6omIw3lI0HWOus12xfnFmQtjW3fw==} + jest-validate@30.5.1: + resolution: {integrity: sha512-i/buJ56wTpxihE93hQYNMfdOThS87+HGvLZzZJmU4xggPcdTYQq051iwALLCHp3q+SkCGH+EFejQZz5EbBSkkg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-watcher@30.4.1: - resolution: {integrity: sha512-/l9UonmvCwjHH7d2h3iAwIloLc1H0S8mJZ/LNK3i86hqwPAz8otUJjP9MfYtz9Tt77Su5FD2xGjZn8d31IZHlw==} + jest-watcher@30.5.2: + resolution: {integrity: sha512-rqRgg4R11GA9m1UsEZwQeixHsgZReCn6TOHAHtIH33yXrIvoX0OGPA20Yzzjkz7X40fZvcRSxEpQppYPcWzmcQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest-worker@30.4.1: - resolution: {integrity: sha512-SHynN/q/QD++iNyvMdy+WMmbCGk8jIsNcRxycXbWubSOhvo6T+j2afcfUSl+3hYsiBebOTo0cT7c2H7CXugu1g==} + jest-worker@30.5.1: + resolution: {integrity: sha512-Cbxh5v7AoLuFRmFJSM4/aHdQ68rjXvUWr716EE0Dh3I7T+T/3FgFKhOERGXHcU2Meftq9+9zxPM3TSNyI9D+HA==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - jest@30.4.2: - resolution: {integrity: sha512-Yi1jqNC/Oq0N4hBgNH/YvBpP1P57QqundgytzYqy3yqAa7NZPNjSoi4SGbRAXDMdBzNE6xBCi5U7RgfrvMEUVQ==} + jest@30.5.2: + resolution: {integrity: sha512-3gnpdBIza8ijCl3iMV9ChE3hSt1+46865qqod863gQtJr1DixOkAU5DoGbi3u+XlRcw++BhZQMu/y4xBdHBvSQ==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} hasBin: true peerDependencies: @@ -8124,8 +8501,8 @@ packages: join-path@1.1.1: resolution: {integrity: sha512-jnt9OC34sLXMLJ6YfPQ2ZEKrR9mB5ZbSnQb4LPaOx1c5rTzxpR33L18jjp0r75mGGTJmsil3qwN1B5IBeTnSSA==} - jose@6.2.9: - resolution: {integrity: sha512-XrchZOFZUl/T3vTwRe8XK+cJrGtMF4th1ARnDfwbBXFKThGhlsxEE4Zu03AD/bjJSt/9jT/mxrOCkJWOg77aPA==} + jose@6.2.16: + resolution: {integrity: sha512-4LSJpbuBuPdGrONCdZUy0xnxtLf8eEz+EY0SMXdHQEBU7bgUHDVblU/JAjryv3wID9/LK7/YuwFwq+AQNfMscQ==} js-tokens@10.0.0: resolution: {integrity: sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==} @@ -8133,12 +8510,16 @@ packages: js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - js-yaml@3.15.1: - resolution: {integrity: sha512-S99WuO3HlhO3XN41EtYUNl9zzXjoJx7QvmipxsJVxtCBT0YHEFy+iOJhjSvrmV12nYhWpZaM8lPHkJm0yUMbag==} + js-yaml@3.15.2: + resolution: {integrity: sha512-6EuL879VkRA+1Cz578mKMiKvjPNEuk6+r1JaFzoSWejZmtf7xWbIyw1e3KkxlkzTIt9Taw6JBhEppG7utc1P+w==} + hasBin: true + + js-yaml@4.3.2: + resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==} hasBin: true - js-yaml@4.3.1: - resolution: {integrity: sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==} + js-yaml@5.5.0: + resolution: {integrity: sha512-paNr4LFIFPjeeSmwNYdrb8FafLLG/Cr2Af3GjbsHJ5CxIjH4r0c2emlmRdAtpPAieP1gRVzk6buBbVP5gBMGAg==} hasBin: true jsbn@0.1.1: @@ -8153,13 +8534,13 @@ packages: canvas: optional: true - jsdom@30.0.1: - resolution: {integrity: sha512-52v7mUVUfNQVYYqE1lcdaymWL0njO7lTLUog6ZvW2U5KsbiLk/GnZlVJ+qx0xfNJZ6Gn+KSpPNE52vurbxZwrA==} + jsdom@31.0.0: + resolution: {integrity: sha512-xAkhD9z1eyFC5+QUi9K24CaZJgdCQ2GOGLW1GdVDoQvkp/AxEH9TQ0pAplPOlIiV92hfcgnFOADZypbjgbBT6Q==} engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} peerDependencies: - canvas: ^3.2.3 + '@napi-rs/canvas': ^1.0.13 peerDependenciesMeta: - canvas: + '@napi-rs/canvas': optional: true jsesc@3.1.0: @@ -8222,10 +8603,9 @@ packages: jsprim@2.0.2: resolution: {integrity: sha512-gqXddjPqQ6G40VdnI6T6yObEC+pDNvyP95wdQhkWkg7crHH3km5qP1FsOXEkzEQwnz6gz5qGTn1c2Y52wP3OyQ==} - engines: {'0': node >=0.6.0} - jszip@3.10.1: - resolution: {integrity: sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==} + jszip@3.10.2: + resolution: {integrity: sha512-3l+rb15IOWtUhU0H5MFqES/T6Kh7abYwjosBey/vD6hDt8zoEffkSC5Ws5SGtgVw3gBx2NEbhTeSW1+kWkpyTQ==} jwa@2.0.1: resolution: {integrity: sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==} @@ -8243,13 +8623,6 @@ packages: karma-firefox-launcher@2.1.3: resolution: {integrity: sha512-LMM2bseebLbYjODBOVt7TCPP9OI2vZIXCavIXhkO9m+10Uj5l7u/SKoeRmYx8FYHTVGZSpk6peX+3BMHC1WwNw==} - karma-jasmine-html-reporter@2.2.0: - resolution: {integrity: sha512-J0laEC43Oy2RdR5V5R3bqmdo7yRIYySq6XHKbA+e5iSAgLjhR1oICLGeSREPlJXpeyNcdJf3J17YcdhD0mRssQ==} - peerDependencies: - jasmine-core: ^4.0.0 || ^5.0.0 || ^6.0.0 - karma: ^6.0.0 - karma-jasmine: ^5.0.0 - karma-jasmine-html-reporter@2.3.0: resolution: {integrity: sha512-iFDjVpcWHnupRoJfnjuAeNF68sAGk+7RfceCzm33HHYNV6OgBa6EC1nPgJUFM+tVDHLlQ5NhgcTKz7AbdrV3AQ==} peerDependencies: @@ -8271,13 +8644,10 @@ packages: engines: {node: '>= 10'} hasBin: true - katex@0.16.47: - resolution: {integrity: sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==} + katex@0.18.10: + resolution: {integrity: sha512-/B6p9eY9DX7aHBfpkHdpirDTZ5QH9xTwL9y837PWuzuv41O5jFdqNQwVQEQsimY0/iVNkwBY4+4hMfhQ7d4Dbw==} hasBin: true - keytar@7.9.0: - resolution: {integrity: sha512-VPD8mtVtm5JNtA2AErl6Chp06JBfy7diFQ7TQQhdpWOl6MrCRB+eRbvAZUsbGQS9kiMq0coJsy0W0vHpDCkWsQ==} - khroma@2.1.0: resolution: {integrity: sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==} @@ -8302,11 +8672,6 @@ packages: resolution: {integrity: sha512-DpMa59o5uGUWWjruMp71e6knmwKU3jRBBn1kjuLWN9EeIOxNeSAwvHf03WIl8g/ZMR2oSQC9ej3yeLBwdDc/pg==} engines: {node: '>=10.13.0'} - less@4.9.0: - resolution: {integrity: sha512-umRhrCH7fCi8Uj2RcwKjJdvUORTjeWqkdKx0LbcZvjIwsAVsnIAGcxHaqowPeBFBjQuWOeC/bve0AlpFzF/+SQ==} - engines: {node: '>=18'} - hasBin: true - leven@3.1.0: resolution: {integrity: sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==} engines: {node: '>=6'} @@ -8398,36 +8763,29 @@ packages: resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} engines: {node: '>= 12.0.0'} - lilconfig@3.1.3: - resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} + lilconfig@3.1.4: + resolution: {integrity: sha512-zJZyBmQhArDRefuWTypZxwDpFDIYmrj8ypSBvwGD5P13Y95s6DjzKgu4DVdGbeQa5PDEsAOCAPNk4X+QOR006w==} engines: {node: '>=14'} lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} - linkify-it@5.0.2: - resolution: {integrity: sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==} - - listr2@11.0.0: - resolution: {integrity: sha512-8K88S0aSrcSXdJfiZtEy5BQMnR+TyjrCGLcgAvQs6ta0NEnIm0RJ72/Pv67Jvg07cfBhDbuN74V81lSSVYEFEw==} + listr2@11.4.1: + resolution: {integrity: sha512-Mc8GEdPxl6b7bxFNwUJPOuGlrLSbnudPqF6F2EkgNr9dZQWezIrCfwywoGhy4eIdQvfJgbT7/rITN9S7uX89gQ==} engines: {node: '>=22.13.0'} listr2@9.0.5: resolution: {integrity: sha512-ME4Fb83LgEgwNw96RKNvKV4VTLuXfoKudAmm2lP8Kk87KaMK0/Xrx/aAkMWmT8mDb+3MlFDspfbCs7adjRxA2g==} engines: {node: '>=20.0.0'} - lmdb@3.5.6: - resolution: {integrity: sha512-j3uE8ReKNyUWDjhfEFSJqE/1DLtfTR5Z8yFzVHvBjAk37wNg7HdScjcv8ttPHRvrdgPQMPWxFFI0SsdBzI5lBw==} + lmdb@3.5.9: + resolution: {integrity: sha512-4vgmIHlEPN3a764suer0WhAVq/OhoetrVHXdA/Ed1iWa1NMtUcf8ITDp1D23VOlhHvKFADA4BuC+P3MHdp8QGQ==} hasBin: true locate-path@5.0.0: resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} engines: {node: '>=8'} - locate-path@6.0.0: - resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} - engines: {node: '>=10'} - lodash-es@4.18.1: resolution: {integrity: sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==} @@ -8458,18 +8816,12 @@ packages: lodash.isstring@4.0.1: resolution: {integrity: sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==} - lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - lodash.once@4.1.1: resolution: {integrity: sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==} lodash.snakecase@4.1.1: resolution: {integrity: sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==} - lodash.truncate@4.4.2: - resolution: {integrity: sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==} - lodash@4.18.1: resolution: {integrity: sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==} @@ -8507,8 +8859,8 @@ packages: lru-cache@10.4.3: resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} - lru-cache@11.5.2: - resolution: {integrity: sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==} + lru-cache@11.5.3: + resolution: {integrity: sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==} engines: {node: 20 || >=22} lru-cache@2.5.0: @@ -8521,10 +8873,6 @@ packages: resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} engines: {node: '>=10'} - lru-cache@7.18.3: - resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} - engines: {node: '>=12'} - lsofi@2.0.0: resolution: {integrity: sha512-XTFlOBHeuXnUGuUQI0kBb4O4oQW7qCV7MRGQja1xNpxgrI/jptlly+/5126RiRold1zgyxY520qOZUZ31V0I2A==} engines: {node: '>=20.0.0'} @@ -8532,11 +8880,8 @@ packages: magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} - magic-string@1.0.0: - resolution: {integrity: sha512-CGvjzMN08iv6w1mm4/x3Gh1hLb4VnyRUA15FFpl6CsCIGGoe36k7kY5KNz9QDbSBN5I/fWHM6ZlIkUTa5xdUEA==} - - magic-string@1.2.2: - resolution: {integrity: sha512-veT/+7iXrXzT39XnEN4lOxtNl72dMgJ8Lp+5Bd6YcMSWpb0n0MjBM8Uuooi6jgJr8dhUW2swQgBmoZVMni5SVg==} + magic-string@1.4.5: + resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==} make-dir@3.1.0: resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} @@ -8546,29 +8891,18 @@ packages: resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} engines: {node: '>=10'} - make-dir@5.1.0: - resolution: {integrity: sha512-IfpFq6UM39dUNiphpA6uDezNx/AvWyhwfICWPR3t1VspkgkMZrL+Rk1RbN1bx+aeNYwOrqGJgEgV3yotk+ZUVw==} - engines: {node: '>=18'} - make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} - makeerror@1.0.12: - resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==} - map-cache@0.2.2: resolution: {integrity: sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==} engines: {node: '>=0.10.0'} - markdown-it@14.3.0: - resolution: {integrity: sha512-RCEsPjR+sr0x+AuYp601tKTkgFG4YEPLCzHST3cQ/fhlJkqAkz1L2/Qbp1j9qw5SBwQHFBoW8+hoN5xssOF0Tw==} - hasBin: true - - marked-terminal@7.3.0: - resolution: {integrity: sha512-t4rBvPsHc57uE/2nJOLmMbZCQ4tgAccAED3ngXQqW6g+TxA488JzJ+FK3lQkzBQOI1mRV/r/Kq+1ZlJ4D0owQw==} + marked-terminal@7.3.1: + resolution: {integrity: sha512-B1eKs5mRiacjHHMlex1zn0zkVomz2/KWjD/dyA8WRQTXk2d15OzVjiK/iuPfvDFB27Gvr8p/u6MYgU0NY/O45w==} engines: {node: '>=16.0.0'} peerDependencies: - marked: '>=1 <16' + marked: '>=1 <19' marked@13.0.3: resolution: {integrity: sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==} @@ -8580,13 +8914,8 @@ packages: engines: {node: '>= 20'} hasBin: true - marked@18.0.11: - resolution: {integrity: sha512-HnslJfsZkRPBDJRHvVtAaWlZHEpSu7u8LgQuJCELjRKuWR+hpq4A7sLq3p8HaI9ypVoXDXxV34CsQJEe1+J5Aw==} - engines: {node: '>= 20'} - hasBin: true - - marked@18.0.9: - resolution: {integrity: sha512-/Sa4qiiHZxf0/FQdBBowr9q4r10krCwMvpK48FUBdXdUXScDxiQGR9zCPrFgRVR5LU3iySOiIjy09ZQvADir1w==} + marked@18.2.0: + resolution: {integrity: sha512-KaeL+tAbtvI930q7HE2PN5lYXYdT8EiSmxHlN6F3rsfb57wd5mp5W5TLazpdj4inTQBJdgjYwbs40W/0VUGU+Q==} engines: {node: '>= 20'} hasBin: true @@ -8597,12 +8926,6 @@ packages: mdast-util-to-hast@13.2.1: resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==} - mdn-data@2.27.1: - resolution: {integrity: sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==} - - mdurl@2.1.0: - resolution: {integrity: sha512-1+HBaOx0zi/dQWht8rNv9MYf9qqpqL/kxI0hXImU6Y547zM6Sni8BQibt7ifgMcYtQg41ao3Ivd6cnSM86inpg==} - media-typer@0.3.0: resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} engines: {node: '>= 0.6'} @@ -8632,11 +8955,9 @@ packages: resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} engines: {node: '>= 8'} - mermaid@11.16.1: - resolution: {integrity: sha512-TQsq6u22fAn3rek5VOubrhKPo1g5hwC3FXUN9hiyupTckcYiGuuKGkNQrKYwGJkXUxZdojwRG46gsSCFZMDp4g==} - - mermaid@11.17.2: - resolution: {integrity: sha512-V6K3C8EBdEsPFZXSKMJe6ppQOENxuHARr9GvHX4hh47lAbhMRD9qf4oEK7LoaRQxULMa80/qt5gHO73aCleBBg==} + mermaid@12.3.0: + resolution: {integrity: sha512-4113TdXeLAsMruJ79OpFL5O8+LTFXhQqZ260rF3tgUmiNAtRm4Uume04I+65PRN6yZ69J4f8rVYWW8zRk65UYw==} + engines: {node: '>=22.12.0'} methods@1.1.2: resolution: {integrity: sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==} @@ -8654,8 +8975,8 @@ packages: micromark-util-symbol@2.0.1: resolution: {integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==} - micromark-util-types@2.0.2: - resolution: {integrity: sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==} + micromark-util-types@2.0.3: + resolution: {integrity: sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==} micromatch@4.0.8: resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} @@ -8695,14 +9016,18 @@ packages: resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} engines: {node: '>=18'} - mimic-response@3.1.0: - resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==} - engines: {node: '>=10'} - minimatch@10.2.6: resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} engines: {node: 18 || 20 || >=22} + minimatch@11.0.5: + resolution: {integrity: sha512-snPlVppFcYWfLLFQGhDxUyBcHNtMlWmn3jtj7pEaO+DP8pqL0IvAzXhMYmn1z9ASNtgmwLBdFxSf4tMUB0OTKA==} + engines: {node: 20 || >=22} + + minimatch@11.0.7: + resolution: {integrity: sha512-Tnk+M9mPjqKDZlUd77eMSjPjhnlBIa1mABOwetMryIshUwi1YmOBdGFfQnHgn4Z8A66eLT8ENzJrxwYmKfqrZg==} + engines: {node: 20 || >=22} + minimatch@3.1.5: resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} @@ -8733,9 +9058,6 @@ packages: resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==} engines: {node: '>= 18'} - mkdirp-classic@0.5.3: - resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} - mkdirp@0.5.6: resolution: {integrity: sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==} hasBin: true @@ -8745,20 +9067,23 @@ packages: engines: {node: '>=10'} hasBin: true - mocha@11.8.0: - resolution: {integrity: sha512-VyCeUdGN3A9lmCTTgG4yuvY9ixxaDk+xt2R/7/+1AP6EqNG+G9OKkzBwhVtVYoNX8YsxNSgAl8mOv3IAeOpFbw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + mocha@12.0.3: + resolution: {integrity: sha512-beammieDdiWdkjANWeWPpkxUROYGi5FN88fPOkLiticz7HTg3Y+Pho3EYE6SUdcuWnZ3h2WD8EXCA55JF4o6wg==} + engines: {node: ^20.19.0 || >=22.12.0} hasBin: true mock-require@3.0.3: resolution: {integrity: sha512-lLzfLHcyc10MKQnNUCv7dMcoY/2Qxd6wJfbqCcVk3LDb8An4hF6ohk5AztrvgKhJCqj36uyzi/p5se+tvyD+Wg==} engines: {node: '>=4.3.0'} + module-details-from-path@1.0.4: + resolution: {integrity: sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==} + moo@0.5.3: resolution: {integrity: sha512-m2fmM2dDm7GZQsY7KK2cme8agi+AAljILjQnof7p1ZMDe6dQ4bdnSMx0cPppudoeNv5hEFQirN6u+O4fDE0IWA==} - morgan@1.11.0: - resolution: {integrity: sha512-zSkVu3t18r39pw4ixfBKvfZi3y2UOqr7d4WYwcj3m8nXpEQK4rPO6GLzs/CExoRgmX3y9EjmmcXqv6jq0SK46g==} + morgan@1.12.1: + resolution: {integrity: sha512-tljKC0ex20AjO58Ob/eZ53JloycbVswbVNCHx6V6VLGzqt/w8dIynVGL0G8qVjNKwiA7sYSogCrN6QtJ82IV+g==} engines: {node: '>= 0.8.0'} mrmime@2.0.1: @@ -8774,8 +9099,8 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - msgpackr-extract@3.0.4: - resolution: {integrity: sha512-4kmO/MdyUIkLIvTPr8VHLil4AtoKIoniWPIEk5+CDy0xnWC84azhSFmuJ7PxZdsYtiP5kEeQsORAVIeMgxT+Hw==} + msgpackr-extract@3.0.7: + resolution: {integrity: sha512-/dOQboWnkR1cjm88XyH/cGSivECGgyQu3814+bNUAq5wACQC8Ya/CViB9WApvWJ5Hya/JJQQmUeBFOZj8MLjGA==} hasBin: true msgpackr@1.12.1: @@ -8800,22 +9125,23 @@ packages: resolution: {integrity: sha512-dkEJPVvun4FryqBmZ5KhDo0K9iDXAwn08tMLDinNdRBNPcYEDiWYysLcc6k3mjTMlbP9KyylvRpd4wFtwrT9rw==} engines: {node: ^20.17.0 || >=22.9.0} + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + mz@2.7.0: resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} - nan@2.28.0: - resolution: {integrity: sha512-fTsDz99OTq2sVePhGdp4qQhggZFtKr64ZNVyVajRKtMOkJxYekplBh577PiJB12v/D3s2E5cGtOI45LWp6rnLQ==} + nan@2.30.0: + resolution: {integrity: sha512-P5mokDkSvCGBz6mZDD/2l+w9QoICRXdCyZ9ONGmTePr40oihJg3Kpn0YU3twKd6PJnwSlLBWNQeOT6yWEV2c4A==} - nanoid@3.3.18: - resolution: {integrity: sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==} + nanoid@3.3.20: + resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true - napi-build-utils@2.0.0: - resolution: {integrity: sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==} - - napi-postinstall@0.3.4: - resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==} + napi-postinstall@0.3.8: + resolution: {integrity: sha512-dHbDC5V1g/EI8OLEtL4Iuwbu0fgzmyykxenn2KnlsX9XdhTXL3gWnfbbP+ab+oUcgV6CFpb8QGyQt/ZXA0UXig==} engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} hasBin: true @@ -8826,16 +9152,6 @@ packages: resolution: {integrity: sha512-+Mc8UaAebFzgV+KpI5n7DasuuQCHA89dmwm7JXw3TV43ukfNQ9DnBH3Mdb2g/I4Fdxc26pwimBWvjIw0UAILSQ==} hasBin: true - needle@2.9.1: - resolution: {integrity: sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==} - engines: {node: '>= 4.4.x'} - hasBin: true - - needle@3.5.0: - resolution: {integrity: sha512-jaQyPKKk2YokHrEg+vFDYxXIHTCBgiZwSHOoVx/8V3GIBS8/VN6NdVRmg8q1ERtPkMvmOvebsgga4sAj5hls/w==} - engines: {node: '>= 4.4.x'} - hasBin: true - negotiator@0.6.3: resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} engines: {node: '>= 0.6'} @@ -8844,30 +9160,13 @@ packages: resolution: {integrity: sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==} engines: {node: '>= 0.6'} - negotiator@1.0.0: - resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} - engines: {node: '>= 0.6'} + negotiator@1.1.0: + resolution: {integrity: sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==} + engines: {node: '>=18'} neo-async@2.6.2: resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} - netmask@2.1.1: - resolution: {integrity: sha512-eonl3sLUha+S1GzTPxychyhnUzKyeQkZ7jLjKrBagJgPla13F+uQ71HgpFefyHgqrjEbCPkDArxYsjY8/+gLKA==} - engines: {node: '>= 0.4.0'} - - ng-packagr@22.2.0-next.4: - resolution: {integrity: sha512-wV+9/vPHP4ZmNraPgo5hH6qilZny6YgEwUt7j6N/3MGAxjQQRmc+FRp7ilQhioQht9jsddOLgSZqj9DYaYzigg==} - engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0} - hasBin: true - peerDependencies: - '@angular/compiler-cli': ^22.2.0-next - tailwindcss: ^2.0.0 || ^3.0.0 || ^4.0.0 - tslib: ^2.3.0 - typescript: '>=6.0 <6.1' - peerDependenciesMeta: - tailwindcss: - optional: true - ngx-flamegraph@0.2.0: resolution: {integrity: sha512-qupUnKsftllyS1MMnI3rsegmW8XFs6bLYz7dRU84x0+FAykikR9c3ZAcjwYYbghv2PAIv4Ltw7kB9mwkbWbs/w==} peerDependencies: @@ -8882,16 +9181,9 @@ packages: '@angular/core': '>=17.3.0' rxjs: '>=7.0.0' - nock@14.0.17: - resolution: {integrity: sha512-EjRr1weMa4ALQX35AgZTEnP+weJJjlW1KGDiNM2IQC2069YDHas4f4B4UUYR+TTLyKWxJvOz2wObDKQs/LNreA==} - engines: {node: '>=18.20.0 <20 || >=20.12.1'} - - node-abi@3.94.0: - resolution: {integrity: sha512-W5ZNO5KRPB5TkYmGVD9F6YqhsglXJzE6etpbmT+f6EQElhiX/UTG551cnsRGvLG3fyZEg9HwaDmNmj5nwJ4z9g==} - engines: {node: '>=10'} - - node-addon-api@4.3.0: - resolution: {integrity: sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==} + nock@15.0.6: + resolution: {integrity: sha512-eyOJ1wemcgJZ+PQC3lecfF3gQc2SAmGlQ4mHGfFXcOa/+7v0qjnX+ft/NV2F+4vCwzkXZqik3gS6ZIjh+QcigQ==} + engines: {node: '>=22.20.0'} node-addon-api@6.1.0: resolution: {integrity: sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==} @@ -8929,22 +9221,18 @@ packages: resolution: {integrity: sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==} hasBin: true - node-gyp@13.0.1: - resolution: {integrity: sha512-piOr0S10qy5THB+q5BdqkoOx65XL/tjTMUAit3vciPNp+snTOBnGunWH1Rz7XZUxf2T9uFrfT/Ty4+aC3yPeyg==} + node-gyp@13.1.0: + resolution: {integrity: sha512-FpNzOLFACKG0oRBYbZ5WOeWD1EqRTIWX90MaRIWTO18lVYPx8fqIjrdS3pihjnCkSmgop6zVGkSqg1vXZLksuw==} engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} hasBin: true node-int64@0.4.0: resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} - node-releases@2.0.53: - resolution: {integrity: sha512-D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ==} + node-releases@2.0.63: + resolution: {integrity: sha512-6li2QanLsAXpIH2R6j77MzRyvOyrvdTqlKtO4CgBdHGNvN99ZZfyxszHc5o5+IZBWD5u6Hzwg83JoGXmqZNG9Q==} engines: {node: '>=18'} - node-sarif-builder@3.4.0: - resolution: {integrity: sha512-tGnJW6OKRii9u/b2WiUViTJS+h7Apxx17qsMUjsUeNDiMMX5ZFf8F8Fcz7PAQ6omvOxHZtvDTmOYKJQwmfpjeg==} - engines: {node: '>=20'} - nopt@10.0.1: resolution: {integrity: sha512-df3sBr/6ax9hSGuC3CspvLlbnX8cP5L5nZwXF8cGN8l0zSWR6BvzmQ6jPUKjvo6+/xdpkNvEcucBNUdBeeV13g==} engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} @@ -8974,11 +9262,12 @@ packages: resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==} engines: {node: '>=8'} - nth-check@2.1.1: - resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} + nth-check@3.0.1: + resolution: {integrity: sha512-GX0gsdbGVCgnRgbeGaubfjpBXyYRWOOCVeYh08bSQvDZqxz5ndXs1OTfAt/h36G1xvI94YIspsI0sVFqAV9+RQ==} + engines: {node: '>=20.19.0'} - nwsapi@2.2.24: - resolution: {integrity: sha512-7YRhZ3jS45LwmSCT4b2sVFHt/WuovaktDU07QrtOBY2PXskss5a9jfmR9jptyumwXST+rFjrmppMY1KT/yn35A==} + nwsapi@2.2.28: + resolution: {integrity: sha512-IlVB7OS7qrOsVYlpnFIkETjMwT9jwvmocJmmM+GZU/PAB3uGi9Ezd7vcWhWBUnSc0ya4ppmQITOyP1ez9gg8cg==} oauth-sign@0.9.0: resolution: {integrity: sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==} @@ -9011,16 +9300,16 @@ packages: resolution: {integrity: sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==} engines: {node: '>=0.10.0'} - obug@2.1.4: - resolution: {integrity: sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==} + obug@3.0.0: + resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==} engines: {node: '>=12.20.0'} on-finished@2.3.0: resolution: {integrity: sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==} engines: {node: '>= 0.8'} - on-finished@2.4.1: - resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} + on-finished@2.4.2: + resolution: {integrity: sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==} engines: {node: '>= 0.8'} on-headers@1.1.0: @@ -9047,9 +9336,9 @@ packages: oniguruma-to-es@4.3.6: resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==} - open@10.2.0: - resolution: {integrity: sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==} - engines: {node: '>=18'} + open@11.0.4: + resolution: {integrity: sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==} + engines: {node: '>=20'} open@6.4.0: resolution: {integrity: sha512-IFenVPgF70fSm1keSd2iDBIDIBZkroLeuffXq+wKTzTJlBpesFWojV9lb8mzOfaAzM1sr7HQHuO0vtV0zYekGg==} @@ -9062,6 +9351,10 @@ packages: resolution: {integrity: sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==} hasBin: true + ora@10.0.0: + resolution: {integrity: sha512-jlxvSlLi1aKgPUnRf8NMjwyor1CM4K+faxuycHYTvygjjtkM596tQBXGEp/PQAVqzftrCBMRJlw6+RAJS5nOtQ==} + engines: {node: '>=22'} + ora@5.4.1: resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==} engines: {node: '>=10'} @@ -9070,12 +9363,8 @@ packages: resolution: {integrity: sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==} engines: {node: '>=18'} - ora@9.4.1: - resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} - engines: {node: '>=20'} - - ordered-binary@1.6.1: - resolution: {integrity: sha512-QkCdPooczexPLiXIrbVOPYkR3VO3T6v2OyKRkR1Xbhpy7/LAVXwahnRCgRp78Oe/Ehf0C/HATAxfSr6eA1oX+w==} + ordered-binary@1.6.3: + resolution: {integrity: sha512-Bc8LnA2x4ZHRQ9LjCm/NOdD3+CTQPhGNu8m7/6+ERtiB6Bb/fn7nCySwcmAC+5WCqwelpSAQgo1VX9BGpsC0tQ==} os-tmpdir@1.0.2: resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==} @@ -9091,8 +9380,8 @@ packages: resolution: {integrity: sha512-19YVAg7T+WTrxggPukVq7DjTv6+PJ867TmhCvBsYwmbFCsZd344rq2Ld1p0wo8f8Qrrhgp82c6FJRqdXWtSEhg==} engines: {node: '>= 0.4'} - oxc-parser@0.146.0: - resolution: {integrity: sha512-hrt0Ou2mCL8dLuvfvKWFjRlWaJKt0Xs7CfacAgb9mha0gKW1lSisUzNRyALgItMPIfThxkl8jH2ONP6ZbQXpaA==} + oxc-parser@0.158.0: + resolution: {integrity: sha512-BKmaZZXp667kLC8Od/ivIkbw6yaxTSqw8ViI1Tvl21E6r+6NLdwDmo43LpL2Ebt/PDMu1d4tcdBucMSor+cL1g==} engines: {node: ^20.19.0 || >=22.12.0} p-defer@3.0.0: @@ -9115,14 +9404,6 @@ packages: resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} engines: {node: '>=8'} - p-locate@5.0.0: - resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} - engines: {node: '>=10'} - - p-map@7.0.6: - resolution: {integrity: sha512-I4Prw6ivkd6p8PiYR1tXASOAOBzIJwu0TB7fqaX0c/8c3QAehNYmX57EijyGGGBt3c/BIowGwV03RVBtXvHEVg==} - engines: {node: '>=18'} - p-queue@6.6.2: resolution: {integrity: sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==} engines: {node: '>=8'} @@ -9131,8 +9412,8 @@ packages: resolution: {integrity: sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==} engines: {node: '>=8'} - p-throttle@8.1.0: - resolution: {integrity: sha512-c1wmXavsHZIC4g1OLhOsafK6jZSAeMo0Ap3yivj59PUcCkpacy5YgWdgIp/dB4vp1JZrfBSsPCR0YuADB+ENLQ==} + p-throttle@8.1.1: + resolution: {integrity: sha512-xxWFBUyvbrQ10XC3VAr0SoXoOCKXqCX/yvbFIkBE98upphHFwjIKR6AId13ZH3jngFfF6yK43QTOtrngYAmFMA==} engines: {node: '>=20'} p-timeout@3.2.0: @@ -9143,19 +9424,11 @@ packages: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} - pac-proxy-agent@7.2.0: - resolution: {integrity: sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==} - engines: {node: '>= 14'} - - pac-resolver@7.0.1: - resolution: {integrity: sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==} - engines: {node: '>= 14'} - package-json-from-dist@1.0.1: resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} - package-manager-detector@1.8.0: - resolution: {integrity: sha512-yQA4H19AmPEoMUeavPMDIe1higySl/gH/yaQrkT/s07Qp+7pp2hYz30N3z2l5BkjVkF9Ow6o0wjJamm2y7Sn0A==} + package-manager-detector@1.9.0: + resolution: {integrity: sha512-zAMfbta9nPA8AKkA4WdmNAT8R8s6Dk0/xwPsqNnRidMFcLo1YkLuPDTgs2f64XdzS8vbLNnoJ+uUIkgbz7oRHA==} pako@1.0.11: resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} @@ -9172,31 +9445,21 @@ packages: resolution: {integrity: sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==} engines: {node: '>=18'} - parse-node-version@1.0.1: - resolution: {integrity: sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==} - engines: {node: '>= 0.10'} - parse-passwd@1.0.0: resolution: {integrity: sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==} engines: {node: '>=0.10.0'} - parse-semver@1.1.1: - resolution: {integrity: sha512-Eg1OuNntBMH0ojvEKSrvDSnwLmvVuUOSdylH/pSCPNMIspLlweJyIWXCE+k/5hm3cj/EBUYwmWkjhBALNP4LXQ==} - - parse5-html-rewriting-stream@8.0.1: - resolution: {integrity: sha512-NaRku2aMpUN1Sh1Gyk1KWUh2A7EJx2c6qYzvwsPtqhoHoaURshdrceYK3LunVCm3WHhm6FS7Vcczbvdh3/UIVw==} + parse5-html-rewriting-stream@8.1.1: + resolution: {integrity: sha512-Vkd95znJKyvcUB8I9/XlUVgLsC18RQyZERtIaaLu8Dy1/FJejDBOgRBqHN3/H/loUFwkEG6gam0eqnpNsLjcfQ==} parse5-htmlparser2-tree-adapter@6.0.1: resolution: {integrity: sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==} - parse5-htmlparser2-tree-adapter@7.1.0: - resolution: {integrity: sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==} - - parse5-parser-stream@7.1.2: - resolution: {integrity: sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==} + parse5-parser-stream@8.1.1: + resolution: {integrity: sha512-hMcVbbUJcQmP8rURWUdYrT1flRiBiBVjq/RYGguJpDUgIXSqdYKlE0CxthmdMWoSlBAuL5bUBa73g0pttSy7Hw==} - parse5-sax-parser@8.0.0: - resolution: {integrity: sha512-/dQ8UzHZwnrzs3EvDj6IkKrD/jIZyTlB+8XrHJvcjNgRdmWruNdN9i9RK/JtxakmlUdPwKubKPTCqvbTgzGhrw==} + parse5-sax-parser@8.0.1: + resolution: {integrity: sha512-6eHc4FeWwv8uBX1yMZ8Vl5zcT61k8EpK/rgRwNl/BLY4pOkUqXI1RIwGSIvxyBXzl5TGj4TvIQBJGwTU4P+ddg==} parse5@5.1.1: resolution: {integrity: sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==} @@ -9207,8 +9470,8 @@ packages: parse5@7.3.0: resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} - parse5@8.0.1: - resolution: {integrity: sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==} + parse5@8.1.1: + resolution: {integrity: sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==} parseurl@1.3.3: resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} @@ -9254,6 +9517,10 @@ packages: resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} engines: {node: 18 || 20 || >=22} + path-scurry@3.0.0: + resolution: {integrity: sha512-1pTbQqH1wIwMi/eleQ5leFTTCkzFsPcgXNjwOA8YGGW/W4/kHT3dssE7Z6NH+zuqNLOzOB0uaD61yl7cAcVhgg==} + engines: {node: 18 || 20 || >=22} + path-to-regexp@0.1.13: resolution: {integrity: sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==} @@ -9263,13 +9530,6 @@ packages: path-to-regexp@8.4.2: resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==} - path-type@6.0.0: - resolution: {integrity: sha512-Vj7sf++t5pBD637NSfkxpHSMfWaeig5+DKWLhcqIYx6mWQz5hdJTGDVMQiJcw1ZYkhs7AazKDGpRVji1LJCZUQ==} - engines: {node: '>=18'} - - pathe@2.0.3: - resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} - pegjs@0.10.0: resolution: {integrity: sha512-qI5+oFNEGi3L5HAxDwN2LA4Gg7irF70Zs25edhjld9QemOgp0CbvMtbFcMvFtEo1OityPrcCzkQFB8JP/hxgow==} engines: {node: '>=0.10'} @@ -9281,11 +9541,11 @@ packages: performance-now@2.1.0: resolution: {integrity: sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==} - pg-cloudflare@1.4.0: - resolution: {integrity: sha512-Vo7z/6rrQYxpNRylp4Tlob2elzbh+N/MOQbxFVWCxS7oEx6jF53GTJFxK2WWpKuBRkmiin4Mt+xofFDjx09R0A==} + pg-cloudflare@1.4.1: + resolution: {integrity: sha512-6PQbsFWZcp9EmJEwy5cGQ2La+AMWpP46lgbb8X+U/XsHIUweYDNCpeuKck5RxL2MdVFi7krbbEi5nX4Zh7JhrQ==} - pg-connection-string@2.14.0: - resolution: {integrity: sha512-XwWDGcLRGCXAR8F/AM5bG7Q+A3Wm2s6QeEjlOKZLlH3UYcguiqCWKyWXVag5TLTIjR7oOJUY8kcADaZgWPyLeg==} + pg-connection-string@2.14.1: + resolution: {integrity: sha512-qR3kGNPBLpCNtz0evbKA0Y/MRFXwSSdT+pTJvYp/bXTcReZbvX1kzF0IyTc1QnxqF7AZbOeBhNL8R5mYQZV/MA==} pg-gateway@0.3.0-beta.4: resolution: {integrity: sha512-CTjsM7Z+0Nx2/dyZ6r8zRsc3f9FScoD5UAOlfUx1Fdv/JOIWvRbF7gou6l6vP+uypXQVoYPgw8xZDXgMGvBa4Q==} @@ -9299,15 +9559,15 @@ packages: peerDependencies: pg: '>=8.0' - pg-protocol@1.16.0: - resolution: {integrity: sha512-sILXutLVjCLjcDuOmvhX5e2Z4cS5qG/6Bu3VkpFwdf/633ElGLpEh9bgmuI5I4sqKqkifQiGyiCcx1HdtrK7tg==} + pg-protocol@1.16.1: + resolution: {integrity: sha512-p9VOFMiHB/ZbJATetbg+99PxssTVSQRnyuPSQ67mN1+1KBOjZaZ83ZQzltnxPhJwSsC3nwVjJ10DVJlerbFzLg==} pg-types@2.2.0: resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==} engines: {node: '>=4'} - pg@8.23.0: - resolution: {integrity: sha512-Ip2EQCngowJLGOfCwkFhPXU7/ljlhn6Rxlmy4XYfL2Y+vyRM59+8uR2xqRWKdYmbXmxCFOAmKxBuSUCdF34qLg==} + pg@8.23.1: + resolution: {integrity: sha512-aL96AHANtWjPLDOLqnhx+ngp9+UK7ETEU8VJrDCGvsSSi/mGLcWYsS6Herg7lmaBJe4uwrfqsa7gTEFaSizDoQ==} engines: {node: '>= 16.0.0'} peerDependencies: pg-native: '>=3.0.1' @@ -9325,8 +9585,8 @@ packages: resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==} engines: {node: '>=8.6'} - picomatch@4.0.5: - resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} engines: {node: '>=12'} pify@2.3.0: @@ -9345,8 +9605,8 @@ packages: resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==} engines: {node: '>= 6'} - piscina@5.3.1: - resolution: {integrity: sha512-LYbVUyHb5CzavqNgs64Uv+gHkrCdEt73kfPazdsJnndDSJiaEDIzMUIAHbtV3plzaoBUphZfXZCQKF01LHMgXw==} + piscina@5.3.2: + resolution: {integrity: sha512-vv7l/mM7B9WgrhDaudIqv1x6v4LOBRYYmpWGdWushhpbCmVHp11sUB2v4hj1CAeTGXVxuZFz6xOU1RalAiPKfQ==} engines: {node: '>=20.x'} pkce-challenge@5.0.1: @@ -9357,12 +9617,8 @@ packages: resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==} engines: {node: '>=8'} - pkg-dir@8.0.0: - resolution: {integrity: sha512-4peoBq4Wks0riS0z8741NVv+/8IiTvqnZAr8QGgtdifrtpdXbNw/FxRS1l6NFqm4EMzuS0EDqNNx4XGaz8cuyQ==} - engines: {node: '>=18'} - - playwright-core@1.62.1: - resolution: {integrity: sha512-wPYSwEBJY9GHraISXqyqtx0na0LpO3XEX7jNDhntbex7tzUS7kLnZsOlFruFJB4Hi/rhDMjXGqHewDZ68nYZVw==} + playwright-core@1.65.0: + resolution: {integrity: sha512-vNSKgH6YqtN7cdT/L334zo0a+YwkrpicyrHJlWWPIm/Q+Nn2SWInil01oT0mbu96U4GgoRtCYQD9CzJQgju+lA==} engines: {node: '>=20'} hasBin: true @@ -9370,13 +9626,6 @@ packages: resolution: {integrity: sha512-zMakqvIDyY40xHOvzXka0kUvf40nYIuwRE8dWhti2WtjQZ31xAgBZBhxsK7vK3QbRXS1Xms/LO7B5cuAsfB2Gg==} engines: {node: '>=10.13.0'} - pluralize@2.0.0: - resolution: {integrity: sha512-TqNZzQCD4S42De9IfnnBvILN7HAW7riLqsCyp8lgjXeysyPlX5HhqKAcJHHHb9XskE4/a+7VGC9zzx8Ls0jOAw==} - - pluralize@8.0.0: - resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} - engines: {node: '>=4'} - points-on-curve@0.2.0: resolution: {integrity: sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A==} @@ -9430,21 +9679,21 @@ packages: peerDependencies: postcss: ^8.2.14 - postcss-safe-parser@7.0.1: - resolution: {integrity: sha512-0AioNCJZ2DPYz5ABT6bddIqlhgwhpHZ/l65YAYo0BCIn0xiDpsnTHz0gnoTGk0OXZW0JRs+cDwL8u/teRdz+8A==} + postcss-safe-parser@7.1.0: + resolution: {integrity: sha512-1WzZxRLaAFwEh6Do+zyGpjWV3nGJNxxhuh7Ubu/q1ICImMgZJnLwhoaEpRbG4pJppp2Y1ncL9ffA2f+LhrefQg==} engines: {node: '>=18.0'} peerDependencies: postcss: ^8.4.31 - postcss-selector-parser@6.1.4: - resolution: {integrity: sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==} + postcss-selector-parser@6.1.6: + resolution: {integrity: sha512-BK87/Qgti3DIcgS2PaCVoteFIkjIFvCJBizZDIVSjdlFNg4Jv+SRqbN2JONb/qQUH4ZFqfXYF+izg15W2HVRvA==} engines: {node: '>=4'} postcss-value-parser@4.2.0: resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} - postcss@8.5.26: - resolution: {integrity: sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==} + postcss@8.5.32: + resolution: {integrity: sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==} engines: {node: ^10 || ^12 || >=14} postgres-array@2.0.0: @@ -9463,27 +9712,30 @@ packages: resolution: {integrity: sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==} engines: {node: '>=0.10.0'} - preact-render-to-string@6.7.0: - resolution: {integrity: sha512-Z4WR8fmLMRpdYqJ9i7vrlXSsSrxVJydwrkEXHapexfARbWfGb7vGcnvNQnIzN0cXciMVOlz/XLoiMCi9gUsy9Q==} + powershell-utils@0.2.1: + resolution: {integrity: sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==} + engines: {node: '>=20'} + + preact-render-to-string@6.8.2: + resolution: {integrity: sha512-Hdx7cKD3AMYgt795TdddBpUbuGEFoL/VeA6s7VrBt9Gjt0r6rCy5wMp5xkDjQ9cbKj62frHsEx1x8yV6EjoOpg==} peerDependencies: preact: '>=10 || >= 11.0.0-0' - preact@10.29.8: - resolution: {integrity: sha512-ej2aVZ+vZ8WO7tvlQWRM9N63A0KzF9q4mWJfDUHgYaIofWY9hu74QdnQrjoPMmZi2/nZ5gN0bJCQF49xQqx09Q==} + preact@11.2.0: + resolution: {integrity: sha512-/HfHI/7N84e6GrWBJ3J280z3mLaRJiDcSvj/A+y/4AbLnND/1UlGHe1sR6oYuTGwId0nP7dqDU9OnLxMPZ7xBg==} peerDependencies: - preact-render-to-string: '>=5' + preact-render-to-string: '>=6.7.0' peerDependenciesMeta: preact-render-to-string: optional: true - prebuild-install@7.1.3: - resolution: {integrity: sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==} - engines: {node: '>=10'} - deprecated: No longer maintained. Please contact the author of the relevant native addon; alternatives are available. + prettier@3.10.0: + resolution: {integrity: sha512-mBi4765LgjO1PFjlEs7pUeK0nb1bw71c+N4/ItfeUWNdY5cV2pRKaFpbbFRYmDJMO+5ZwzGxHRqHxFZna7iv5w==} + engines: {node: '>=14'} hasBin: true - prettier@3.9.6: - resolution: {integrity: sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==} + prettier@3.9.10: + resolution: {integrity: sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==} engines: {node: '>=14'} hasBin: true @@ -9491,13 +9743,10 @@ packages: resolution: {integrity: sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==} engines: {node: '>=6'} - pretty-format@30.4.1: - resolution: {integrity: sha512-K6KiKMHTL4jjX4u3Kir2EW07nRfcqVTXIImx50wbjHQTcZPgg+gjVeNTIT3l3L1Rd4UefxfogquC9J37SoFyyw==} + pretty-format@30.5.1: + resolution: {integrity: sha512-byhRAPguVKMQIj4kjJwJ5lAskVhfuiSdiYl/aLTWpgkGEmic2jYhJh1yE9ih8Ox44Xg9ccCT11/S6QrzSJuNrg==} engines: {node: ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0} - probe-image-size@7.4.0: - resolution: {integrity: sha512-cdEprVtZxV+awMde9X+4jILBFYh4CARxVrQaMl4wY4YcPWbul9jntXrIW95NInBDyJwcVUP3U0T6yukN8rMBaQ==} - proc-log@7.0.0: resolution: {integrity: sha512-FYgfaA69XZ93zaXLoMNQ+ViDXGGBgR8aLh03txzcFhV+9xOXx7+8DLCULrKKpR9+GsH9ZfHm82aSUPpozX0Ztg==} engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} @@ -9516,9 +9765,8 @@ packages: promise-breaker@6.0.0: resolution: {integrity: sha512-BthzO9yTPswGf7etOBiHCVuugs2N01/Q/94dIPls48z2zCmrnDptUUZzfIb+41xq0MnYZ/BzmOd6ikDR4ibNZA==} - propagate@2.0.1: - resolution: {integrity: sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==} - engines: {node: '>= 8'} + proper-lockfile@4.1.2: + resolution: {integrity: sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==} property-information@7.2.0: resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==} @@ -9530,8 +9778,8 @@ packages: resolution: {integrity: sha512-E1sbAYg3aEbXrq0n1ojJkRHQJGE1kaE/O6GLA94y8rnJBfgvOPTOd1b9hOceQK1FFZI9qMh1vBERCyO2ifubcw==} engines: {node: '>=18'} - protobufjs@7.6.5: - resolution: {integrity: sha512-/FPD0nUc9jH6rfFjji9IBqOz4pcSE3CsT1m7Ep6Mdb0LxSUMj8hgl6GomOvZzpNpAqqGaXA0P3VSrZLFzIhQrw==} + protobufjs@7.6.6: + resolution: {integrity: sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==} engines: {node: '>=12.0.0'} protractor@7.0.0: @@ -9540,8 +9788,8 @@ packages: deprecated: We have news to share - Protractor is deprecated and will reach end-of-life by Summer 2023. To learn more and find out about other options please refer to this post on the Angular blog. Thank you for using and contributing to Protractor. https://goo.gle/state-of-e2e-in-angular hasBin: true - proxy-addr@2.0.7: - resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} + proxy-addr@2.0.8: + resolution: {integrity: sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==} engines: {node: '>= 0.10'} proxy-agent-negotiate@1.1.0: @@ -9553,19 +9801,9 @@ packages: kerberos: optional: true - proxy-agent@6.5.0: - resolution: {integrity: sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==} - engines: {node: '>= 14'} - proxy-from-env@1.0.0: resolution: {integrity: sha512-F2JHgJQ1iqwnHDcQjVBsq3n/uoaFL+iPW/eAeL7kVxy/2RrWaN4WroKjjvbsoRtv0ftelNyC01bjRhn/bhcf4A==} - proxy-from-env@1.1.0: - resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} - - prr@1.0.1: - resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==} - psl@1.15.0: resolution: {integrity: sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==} @@ -9578,10 +9816,6 @@ packages: pumpify@1.5.1: resolution: {integrity: sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==} - punycode.js@2.3.1: - resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==} - engines: {node: '>=6'} - punycode@1.4.1: resolution: {integrity: sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==} @@ -9608,8 +9842,12 @@ packages: resolution: {integrity: sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==} engines: {node: '>=0.9'} - qs@6.15.3: - resolution: {integrity: sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==} + qs@6.16.2: + resolution: {integrity: sha512-VYdnB5S7/0IeXzBacUtwNAaM6d7Y/PgYnNC7bJCI6meqA/OgnsQbZMtVW8Dt2D1PHgbHGtYmhSoEIgvt7xZ2ZA==} + engines: {node: '>=0.6'} + + qs@6.17.1: + resolution: {integrity: sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==} engines: {node: '>=0.6'} qs@6.5.5: @@ -9626,9 +9864,6 @@ packages: resolution: {integrity: sha512-80WNmd9DA0tmZrw9qQa62GPPWfuXJknrmVmLcxvq4uZBdYqb1wYoKTmnlGUchvVWe0XiLupYkBoXVOxz3C8DYQ==} engines: {node: '>=0.12'} - randombytes@2.1.0: - resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} - range-parser@1.2.1: resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==} engines: {node: '>= 0.6'} @@ -9645,29 +9880,26 @@ packages: resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} engines: {node: '>= 0.10'} - rc-config-loader@4.1.4: - resolution: {integrity: sha512-3GiwEzklkbXTDp52UR5nT8iXgYAx1V9ZG/kDZT7p60u2GCv2XTwQq4NzinMoMpNtXhmt3WkhYXcj6HH8HdwCEQ==} - rc@1.2.8: resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} hasBin: true - re2@1.26.1: - resolution: {integrity: sha512-oi79a4h6EO3PAwNsDMWgeCcsRGQEUa52DIgOiFTZGDEZocEXG9h+oXy0qZqndo47huUeJuVWSoOJIEhOupqOcg==} + re2@1.27.1: + resolution: {integrity: sha512-J0RHubiwH/isNWD2Z+TX+hpVZCkaS/X30KPtYwckK5sjEaW8BRhnd15EPIjBB5GxD174iEVtJmmCoqfErH1qDQ==} engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} - re2js@2.8.6: - resolution: {integrity: sha512-xLgQil4kIUCrAzVk9fRSkxkFNwmygLFjVxXrLc65aE1F0+Zsb8rxumFBy4XKyvgMCTL6kilDq3EZ0piE2dP/Dg==} - engines: {node: '>=18.0.0'} + re2js@2.9.1: + resolution: {integrity: sha512-JIT3bEEUZTOR2YS1walNEIfH4cF/cQeZcBUFq7ldqO6lR6g0X5CBq/S8rsa9omzZcsNf8qc36jCkWpKKtncrZg==} + engines: {node: '>=20.0.0'} react-is@18.3.1: resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} - react-is@19.2.8: - resolution: {integrity: sha512-s5un28nYxKJw5gvUHyW5PCC28CvBqLu9r3cWgzHT4Vo/5fqqkFcdRYsGcKf50WMPpjjFZS5d76fn3YCo2njKwQ==} + react-is@19.3.1: + resolution: {integrity: sha512-RRieF6IyxQBkcK6pP8xOHprLTPW6QjRkbGdImtqNme+/hYVwCZkLQLdlZGOhUqXwkS9IEynaGvPJtv6XB/cz0Q==} - read-cache@1.0.0: - resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==} + read-cache@1.0.2: + resolution: {integrity: sha512-/peqiBB/n07gQGLsWaHho3WfvUyRscw0gYTsEFMhrIe/nWLkYaf5SbKYjGYqtRV3aPwykJgF2VEMo1ac4bnsGA==} read-package-up@11.0.0: resolution: {integrity: sha512-MbgfoNPANMdb4oRBNg5eqLbB2t2r+o5Ua1pNt8BqGp4I0FJZhuVSOj3PaBPni4azWuSzEdNn2evevzVmEk1ohQ==} @@ -9688,8 +9920,8 @@ packages: resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} engines: {node: '>= 6'} - readable-stream@4.7.0: - resolution: {integrity: sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==} + readable-stream@4.8.0: + resolution: {integrity: sha512-2jhTTU3Eilp/2DMT71gbcoqC35eQHasMJH0RHkYxwlxIv3+FR6Y5xAFZIwEGLxKkjZYEFlsiMNIdwUqjK2lLHQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} readdir-glob@1.1.3: @@ -9766,6 +9998,10 @@ packages: resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} engines: {node: '>=0.10.0'} + require-in-the-middle@8.0.1: + resolution: {integrity: sha512-QT7FVMXfWOYFbeRBF6nu+I6tr2Tf3u0q8RIEjNob/heKY/nh7drD/k7eeMFmSQgnTtCzLDcCu/XEnpW2wk4xCQ==} + engines: {node: '>=9.3.0 || >=8.10.0 <9.0.0'} + require-main-filename@2.0.0: resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} @@ -9791,8 +10027,8 @@ packages: resolve-pkg-maps@1.0.0: resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} - resolve@1.22.12: - resolution: {integrity: sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==} + resolve@1.22.14: + resolution: {integrity: sha512-1ZjYvR9sbkiwC5+9QHetqW5HmA2pHRMaoupD01t2HlYnV/vydC2zPwLixhsMieSWVZt0JJRg5LVIk0Ow1D/TrA==} engines: {node: '>= 0.4'} hasBin: true @@ -9812,10 +10048,17 @@ packages: resolution: {integrity: sha512-pI6/7eabUYkZxamkOq0g0uMxKLLGnjzhefY+vL8bVXag5rto4OU2YBTPytWLuHH7aEKD6fn7kJycQfid0Mwnkw==} engines: {node: '>=18'} + retry@0.12.0: + resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==} + engines: {node: '>= 4'} + retry@0.13.1: resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==} engines: {node: '>= 4'} + rettime@0.11.12: + resolution: {integrity: sha512-5ExtR1ppiDBQkVoPw5NAqdbfH4Iq2VOmQKHMtUoaFxA9bo2krzFYBtyq6K40xxbYp+2w/YOr6D+1ToF6tTN53A==} + reusify@1.1.0: resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} @@ -9840,32 +10083,35 @@ packages: robust-predicates@3.0.3: resolution: {integrity: sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==} - rolldown-plugin-dts@0.28.2: - resolution: {integrity: sha512-U0Ng45ZaESZ7rJtQtgCWkJYCpMgH42yIj3xv9HGAsh/dJ8XBhjI4lcqh4NOWx8+CAxoY2HWg8VYINML2yE9A5A==} + rolldown-plugin-dts@0.30.1: + resolution: {integrity: sha512-tCDbuPygVmJMeq+Jk5BM3DUFx/6HO3HhJxI2yfc6ngtDGH71D5Qb7wv0V1sx4PPlqOErUrzAHXo8wQcLInreRQ==} engines: {node: ^22.18.0 || ^24.11.0 || >=26.0.0} peerDependencies: - '@typescript/native-preview': '*' '@volar/typescript': ~2.4.0 + '@vue/language-core': ~3.2.0 || ~3.3.0 rolldown: ^1.2.0 - typescript: ^5.0.0 || ^6.0.0 || ~7.0.0 + tsrs: '*' + typescript: ^5.0.0 || ^6.0.0 || ~7.0.0 || ~7.1.0-0 vue-tsc: ~3.2.0 || ~3.3.0 peerDependenciesMeta: - '@typescript/native-preview': - optional: true '@volar/typescript': optional: true + '@vue/language-core': + optional: true + tsrs: + optional: true typescript: optional: true vue-tsc: optional: true - rolldown@1.2.4: - resolution: {integrity: sha512-rSr7irW0K7QRWzjdJXqZowkcRdDtjRduh43rBltnVKd0VFq839l1lJoDvGJb6gl7+4rTTCrPWu+YfujUL8Ug7w==} + rolldown@1.2.19: + resolution: {integrity: sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true - rolldown@1.2.5: - resolution: {integrity: sha512-VD2IE5PUG4Oj8zz2VGykiYd5wbnjdIiSsNQb8Qu5B+noEp+A78mu2iVvpp27g8es14Tk9rofNs5Tku9iQCS4fA==} + rolldown@1.3.1: + resolution: {integrity: sha512-RAIazzQpeoYB0r8jWuNDX+fT1NJ+9Cqdt0pSi9jc9zwX21k2x2IUPuYJmZxDB2k8ZisNv4gNIPj+HwRCTJG4uw==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true @@ -9880,8 +10126,8 @@ packages: '@typescript/typescript6': optional: true - rollup-plugin-sourcemaps2@0.5.8: - resolution: {integrity: sha512-c5BfiVbKAmaz+RoEhFF44Tg/X2QoLxEB8F7wS/eNWDJF/NKxi0SF7srN3Dg0RUnIcYLyCOwscket5Mr3BImMbg==} + rollup-plugin-sourcemaps2@0.5.10: + resolution: {integrity: sha512-e8/om9nmkaBNcCNqN3SPhyVQOmDiDJRgNeukDi8pFNjJR6XYn+iE0IkigaUQZ/bN4rVgjbKvH7DvD1IKq0e39g==} engines: {node: '>=22.13.0'} peerDependencies: '@types/node': '>=18.0.0' @@ -9890,8 +10136,8 @@ packages: '@types/node': optional: true - rollup@4.63.0: - resolution: {integrity: sha512-T5vnZ2y4QqC3/4P+w2+JO+Q/OVdnPsv4XcSYJYMEn0R9/jjl5AgLwO9LAZMzP2lN71O6pypn91rB7lDstUkfrQ==} + rollup@4.68.2: + resolution: {integrity: sha512-xzt45rKOxzEuqjTdkGTIEaePcq9xRELlFI1uoazlKap8T6bENJkONSCfhK51P6XFTixa4rosPcDHihSdduXndQ==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -9943,8 +10189,125 @@ packages: safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} - sass@1.103.1: - resolution: {integrity: sha512-9icZURbP51S6S0QGoyaeqk9uB06GNWxsFYWfH5RgpFgqK5FA8tJcM3AdVxrZEVJ7dz+L87nG95gBKf4VuaMHGw==} + sass-embedded-all-unknown@1.108.2: + resolution: {integrity: sha512-VlIJTjCc82VhLKV7EAPJ4fdJn/EM0q0djOzYBjmsuK1i95b1oVKS6NPa4qQMjeKq3LPTsNyH6eYHZTHKCMhIzw==} + cpu: ['!arm', '!arm64', '!riscv64', '!x64'] + + sass-embedded-android-arm64@1.108.2: + resolution: {integrity: sha512-9OWtObry0k/4u+ervuEcgcMM1YVZCqZbcPxGkXuuDjykbWyyvcaVZ1F+8Fup7wod6BVGqbiQfgdfsXd4zsbcPg==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [android] + + sass-embedded-android-arm@1.108.2: + resolution: {integrity: sha512-18L7VPiIqT/nUOy9bo+dhURVGrRE1c3qClueOEQu4AlkuCs8atnSErkA4icMo4pklzY2XQ3NCRhKfaCe66Lbuw==} + engines: {node: '>=14.0.0'} + cpu: [arm] + os: [android] + + sass-embedded-android-riscv64@1.108.2: + resolution: {integrity: sha512-K5Hgenk+cfq+eZ5rqfpf6DyqkpZjawmAEpPBBcZFNFpsEdfu2F1L2ld0cFYGmifz7V54Kh9Q9MIhG/5ma3EAAg==} + engines: {node: '>=14.0.0'} + cpu: [riscv64] + os: [android] + + sass-embedded-android-x64@1.108.2: + resolution: {integrity: sha512-HalOpck3jfo6+PNjDGeohrfswMStSPdvcsHFdWkF8wib5aTwrpirFTY3ZdtGBXLlg5fccN6c3kQGUwMlOZRobw==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [android] + + sass-embedded-darwin-arm64@1.108.2: + resolution: {integrity: sha512-wca4RdevELodsjjk+4K1lqhzVfnBf0nCvvtw7YEpbXxGgkMJhHDbh/mf8Gyy3zCKISls9MKm7dPU23G8GGnmeQ==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [darwin] + + sass-embedded-darwin-x64@1.108.2: + resolution: {integrity: sha512-MJnsh5mVPA2Hy7XKaryfAwUCoDy4MuCkcDbe0Jj4j7F7iaVAhX2dPAyvBvMGBIhhMEeFfYlkxYX/Lhbl+7x8SQ==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [darwin] + + sass-embedded-linux-arm64@1.108.2: + resolution: {integrity: sha512-DQGGHEe+P1cv3ydBC0Gyh8I42X7xRIOBF+/1o5DyEuexMLHEEF7ZI9rmu8xJfBJv6lW0r8Gsrjke09c63dAOaQ==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [linux] + libc: glibc + + sass-embedded-linux-arm@1.108.2: + resolution: {integrity: sha512-OdsYCHqp5oh3vLqJCov4xXKeEUWS0+8ff+HIofWgTQYEC9Z3+3SYMRiNiGO37Qxt+QNsKXSvo+hsIqVMrfHHfw==} + engines: {node: '>=14.0.0'} + cpu: [arm] + os: [linux] + libc: glibc + + sass-embedded-linux-musl-arm64@1.108.2: + resolution: {integrity: sha512-pYa1W4FYqMPsTMNi4/T76AEcqXpgUntzHpaJUsK+TaxQ+Y9+oaOxPL5mVz+Rg+RBj1UOHJRJ4GO86hVrF8dUqg==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [linux] + libc: musl + + sass-embedded-linux-musl-arm@1.108.2: + resolution: {integrity: sha512-TEjaziqiHj08QHZztOD26HQAkdC5mQLvFj+GMv8sUCxgEPAusDR/bx6KieWfNqAhajXte9aczwdjYVsURMp7KA==} + engines: {node: '>=14.0.0'} + cpu: [arm] + os: [linux] + libc: musl + + sass-embedded-linux-musl-riscv64@1.108.2: + resolution: {integrity: sha512-g+6V6IIYK3dRF7fYQBppNRCtnZl22JncUhmYLL8eTqTIiBpjhIFXavguVX6Z0JW0ZMvlqL3K2TmDMh3sVXpeDA==} + engines: {node: '>=14.0.0'} + cpu: [riscv64] + os: [linux] + libc: musl + + sass-embedded-linux-musl-x64@1.108.2: + resolution: {integrity: sha512-X2XN+HepJ3+GGDrvBc13Qn0DqQh8rs7C6N6qA/IrUvNcWvhCTdB2G3pBYsSds61LiQM26S+pAwFirX4SbwIMRw==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [linux] + libc: musl + + sass-embedded-linux-riscv64@1.108.2: + resolution: {integrity: sha512-GL5t80FVizbU1QgJI3eh8125ZtR8i//csqDqncrIwzDBioJwxIYNNhLdKHpp5DjCdD9qst04p4KG1aVM+XPw/Q==} + engines: {node: '>=14.0.0'} + cpu: [riscv64] + os: [linux] + libc: glibc + + sass-embedded-linux-x64@1.108.2: + resolution: {integrity: sha512-9SNMGIYzfdMAflPlNLQro9gIWbrbrSibwffatFaEmjMPBHqy2gNwg7VuzDRHBygbSqsrsqfhokYGchCyzCZI9Q==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [linux] + libc: glibc + + sass-embedded-unknown-all@1.108.2: + resolution: {integrity: sha512-FYjLjAyr5BxEI2oAB+nT4OkrQZmEcQz8sVRQbxFUtw30MbEZN8WjEEbjqxQjSw4IaYhA8PuUAjvZoTyvcoRYdA==} + os: ['!android', '!darwin', '!linux', '!win32'] + + sass-embedded-win32-arm64@1.108.2: + resolution: {integrity: sha512-7TGjLKlKjAwWIZhM+VrXzc1jj/Z/88bLqf3/jJSkzM2vbsj6kDp7F0DmIs9wJ0KBLAMnu5ZOCFDG61oJfJuT8Q==} + engines: {node: '>=14.0.0'} + cpu: [arm64] + os: [win32] + + sass-embedded-win32-x64@1.108.2: + resolution: {integrity: sha512-zgy9m/e47V0Ib2fDmpAqDO6seFqeVa+cgYitdsMEp704x8e+diybz2fg7rsdGXqa/XlGR2dzT7vtcFSbZkF44w==} + engines: {node: '>=14.0.0'} + cpu: [x64] + os: [win32] + + sass-embedded@1.108.2: + resolution: {integrity: sha512-+T+jag2BFS2RKipKF80uCAuNztA8VC7T9PU716xMe9Ob1Su4uDZf9vj0JBeSxcQo1vy6EMdiwZFXTRmvuAhl0g==} + engines: {node: '>=20.19.0'} + hasBin: true + + sass@1.108.2: + resolution: {integrity: sha512-kugK8djotnG9HQRPTOf36asKYlxg8rWWsNLYHOgWDIVOiZQqlRfKBgF4XXM6kfw146kIDMvm57B4GIkvDSyTzA==} engines: {node: '>=20.19.0'} hasBin: true @@ -9959,11 +10322,6 @@ packages: resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} engines: {node: '>=v12.22.7'} - secretlint@10.2.2: - resolution: {integrity: sha512-xVpkeHV/aoWe4vP4TansF622nBEImzCY73y/0042DuJ29iKIaqgoJ8fGxre3rVSHHbxar4FdJobmTnLp9AU0eg==} - engines: {node: '>=20.0.0'} - hasBin: true - secure-compare@3.0.1: resolution: {integrity: sha512-AckIIV90rPDcBcglUwXPF3kg0P0qmPsPXAj6BBEENQE1p5yA1xfmDJzfi1Tappj37Pv2mVbKpL3Z1T+Nn7k1Qw==} @@ -9983,16 +10341,16 @@ packages: resolution: {integrity: sha512-lH3f6kMbwyANB7HuOWRMlLCa2itaCrZJ+SAqqkSZrZKO/cAsk2EOyaKHUtNkVLFyFW9pct22SFesFp3Z7zpA0g==} engines: {node: '>= 10.13.0'} - semver@5.7.2: - resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} + semver@5.7.3: + resolution: {integrity: sha512-kM18BPOqTi0+TB68703/GJRpAML5Me+IDQsR1J26YB3EFKKNEyHIVZuWDX7+WKQB3tHwDwgk24BfhdpWUbytvQ==} hasBin: true - semver@6.3.1: - resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + semver@6.3.2: + resolution: {integrity: sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==} hasBin: true - semver@7.8.5: - resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==} + semver@7.8.6: + resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==} engines: {node: '>=10'} hasBin: true @@ -10007,8 +10365,9 @@ packages: seq@0.3.5: resolution: {integrity: sha512-sisY2Ln1fj43KBkRtXkesnRHYNdswIkIibvNe/0UKm2GZxjMbqmccpiatoKr/k2qX5VKiLU8xm+tz/74LAho4g==} - serialize-javascript@6.0.2: - resolution: {integrity: sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==} + serialize-javascript@7.1.4: + resolution: {integrity: sha512-FqlEuoTq/zRmA4Lg6aOqyH3lCHbUtCB0bmHCeFniX2GBdDqMJM3FwdvEhlE5Pim1dlt2FfBdVPmUNNiGhhKqpw==} + engines: {node: '>=20.0.0'} serve-static@1.16.3: resolution: {integrity: sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==} @@ -10047,8 +10406,8 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - shiki@4.4.3: - resolution: {integrity: sha512-Mb/GvXPHBAXdgGIcnfU5L3ldpn1XcxrGkPHwqgRx17/I2XRfqlFKk2vGkHWINn1kdXvzJZeuO3is6I9KLPFm0g==} + shiki@4.6.0: + resolution: {integrity: sha512-imjLsVHgPuWhvpU3P+zOekvMYqnel7QmKsFC4Sn0fCuAvaaalBsxwKEsrU8Ko5BdFnZA6Go/8a0RzahS634UgA==} engines: {node: '>=20'} side-channel-list@1.0.1: @@ -10067,9 +10426,6 @@ packages: resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==} engines: {node: '>= 0.4'} - siginfo@2.0.0: - resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} - signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} @@ -10077,12 +10433,6 @@ packages: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} - simple-concat@1.0.1: - resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==} - - simple-get@4.0.1: - resolution: {integrity: sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==} - skin-tone@2.0.0: resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} engines: {node: '>=8'} @@ -10099,9 +10449,9 @@ packages: resolution: {integrity: sha512-Z1x4JjJxsru75Tqn8F4tnOFeEu3HjtITTsumYUiuz54sGKdISgLCek9AUlXlVVrkhltRFhNUsJDJE76SFHTDIQ==} engines: {node: '>=0.8.0'} - slice-ansi@4.0.0: - resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==} - engines: {node: '>=10'} + slice-ansi@10.0.1: + resolution: {integrity: sha512-CJKEH3zwVX4bOnE+bFbmh+JK/YMT9VAazqBsVBTesnYKXlNtz6oVmrhNp1jHrxHzscuUkWiKZpzNzFraZcrorg==} + engines: {node: '>=22'} slice-ansi@7.1.2: resolution: {integrity: sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==} @@ -10111,14 +10461,10 @@ packages: resolution: {integrity: sha512-stxByr12oeeOyY2BlviTNQlYV5xOj47GirPr4yA1hE9JCtxfQN0+tVbkxwCtYDQWhEKWFHsEK48ORg5jrouCAg==} engines: {node: '>=20'} - slice-ansi@9.0.0: - resolution: {integrity: sha512-SO/3iYL5S3W57LLEniscOGPZgOqZUPCx6d3dB+52B80yJ0XstzsC/eV8gnA4tM3MHDrKz+OCFSLNjswdSC+/bA==} + slice-ansi@9.0.1: + resolution: {integrity: sha512-aBY19bn/XA+hKOKX0qL7Z0UfdBsbQvc9hn993U8ALUjzxCvDcuZqLoRXjGJrUARWAlwMnsRVD9sw2AFNOYvalA==} engines: {node: '>=22'} - smart-buffer@4.2.0: - resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} - engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} - socket.io-adapter@2.5.8: resolution: {integrity: sha512-6Oy52pbg+kvdCVvjcN+FnY7BvxZ7cIHNScbvztT/It5d0vbwoJoVZmF2gjJmnV0/4WlXRfG15zc45ySk9Ah8bw==} @@ -10126,28 +10472,17 @@ packages: resolution: {integrity: sha512-IH/iSeO9T6gz1KkFleGDWkG9N3dl4jXVYUtMhIqH10Md0ttMer8nUNWiP1DKuNrybD2xBrixLJdCC9J6ECoYkg==} engines: {node: '>=10.0.0'} - socket.io@4.8.3: - resolution: {integrity: sha512-2Dd78bqzzjE6KPkD5fHZmDAKRNe3J15q+YHDrIsy9WEkqttc7GY+kT9OBLSMaPbQaEd0x1BjcmtMtXkfpc+T5A==} + socket.io@4.8.4: + resolution: {integrity: sha512-9ZV9zg8vN8hO3Y25DhR7nUkJ1VDnBhq5O/JrXhFT9s6+F0gqytSASTHVfCFc2mJXaTfARroErplXlzFWwETZqQ==} engines: {node: '>=10.2.0'} - socks-proxy-agent@8.0.5: - resolution: {integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==} - engines: {node: '>= 14'} - - socks@2.8.9: - resolution: {integrity: sha512-LJhUYUvItdQ0LkJTmPeaEObWXAqFyfmP85x0tch/ez9cahmhlBBLbIqDFnvBnUJGagb0JbIQrkBs1wJ+yRYpEw==} - engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} - - source-map-js@1.2.1: - resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + source-map-js@1.2.2: + resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} engines: {node: '>=0.10.0'} source-map-support@0.4.18: resolution: {integrity: sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==} - source-map-support@0.5.13: - resolution: {integrity: sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==} - source-map-support@0.5.21: resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} @@ -10179,8 +10514,8 @@ packages: spdx-expression-parse@3.0.1: resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} - spdx-license-ids@3.0.23: - resolution: {integrity: sha512-CWLcCCH7VLu13TgOH+r8p1O/Znwhqv/dbb6lqWy67G+pT1kHmeD/+V36AVb/vq8QMIQwVShJ6Ssl5FPh0fuSdw==} + spdx-license-ids@3.0.24: + resolution: {integrity: sha512-cLS9TtWkIQFyLkJ3/5aFQAOHOSKTlOs/7WDut/XPSdjom1fJhUdkepeJAKXa9Y05+FabHd0sti+Et559vDtkpQ==} split-array-stream@1.0.3: resolution: {integrity: sha512-yGY35QmZFzZkWZ0eHE06RPBi63umym8m+pdtuC/dlO1ADhdKSfCj0uNn87BYCXBBDFxyTq4oTw0BgLYT0K5z/A==} @@ -10195,8 +10530,8 @@ packages: sprintf-js@1.0.3: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} - sql-formatter@15.8.2: - resolution: {integrity: sha512-kTYRg5FIcvsDtYUG2Qn9pYT6xKwiLJN5TTIvc5Mur6hIg4pSfdpHu8Yyu5bqESLHnVM3mXzD446cb2+uEaKZXg==} + sql-formatter@15.9.0: + resolution: {integrity: sha512-3A/N+v+mA5/PDU+FlO4uTFE0L/Mmg63c/Ny161Qv2b1Mxp9IX8War+LLmq17LA/Kgu4KXAR7iutK2JaHWJMMtw==} hasBin: true sshpk@1.18.0: @@ -10204,10 +10539,6 @@ packages: engines: {node: '>=0.10.0'} hasBin: true - ssri@10.0.5: - resolution: {integrity: sha512-bSf16tAFkGeRlUNDjXu8FzaMQt6g2HZJrun7mtMbIPOddxt3GLMSz5VWUWcqTJUPfLEaDIepGxv+bYQW49596A==} - engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} - stack-trace@0.0.10: resolution: {integrity: sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==} @@ -10215,9 +10546,6 @@ packages: resolution: {integrity: sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==} engines: {node: '>=10'} - stackback@0.0.2: - resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - statuses@1.5.0: resolution: {integrity: sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==} engines: {node: '>= 0.6'} @@ -10226,8 +10554,8 @@ packages: resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} engines: {node: '>= 0.8'} - std-env@4.2.0: - resolution: {integrity: sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==} + std-env@4.3.0: + resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==} stdin-discarder@0.2.2: resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==} @@ -10241,8 +10569,8 @@ packages: resolution: {integrity: sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==} engines: {node: '>= 0.4'} - stream-chain@2.2.5: - resolution: {integrity: sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA==} + stream-chain@4.4.1: + resolution: {integrity: sha512-4MWXw+Si0RW3HAYQN3MdxpgTJA6Te9StiLtdkZO248DLPsRipqBbuiQSkyYLpCDEuvqGfqb2B5dEGxiEfHYkNQ==} stream-composer@1.0.2: resolution: {integrity: sha512-bnBselmwfX5K10AH6L4c8+S5lgZMWI7ZYrz2rvYjCPB2DIMC4Ig8OpxGpNJSxRZ58oti7y1IcNvjBAz9vW5m4w==} @@ -10253,11 +10581,8 @@ packages: stream-exhaust@1.0.2: resolution: {integrity: sha512-b/qaq/GlBK5xaq1yrK9/zFcyRSTNxmcZwFLGSTG0mXgZl/4Z6GgiyYOXOvY7N3eEvFRAG1bkDRz5EPGSvPYQlw==} - stream-json@1.9.1: - resolution: {integrity: sha512-uWkjJ+2Nt/LO9Z/JyKZbMusL8Dkh97uUBTv3AJQ74y07lVahLY4eEFsPsE97pxYBwr8nnjMAIch5eqI0gPShyw==} - - stream-parser@0.3.1: - resolution: {integrity: sha512-bJ/HgKq41nlKvlhccD5kaCr/P+Hu0wPNKPJOH7en+YrJu/9EgqUF+88w5Jb6KNcjOFMhfX4B2asfeAtIGuHObQ==} + stream-json@3.8.0: + resolution: {integrity: sha512-xD0bPEoPgaaEpEu2HSq1spYAs5LSJrLAlo44SHycE+aI8W0IrU2cklY7fiQKhRTVbuvxNUij06vIiz1NBT+AZA==} stream-shift@1.0.3: resolution: {integrity: sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==} @@ -10266,14 +10591,8 @@ packages: resolution: {integrity: sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw==} engines: {node: '>=8.0'} - streamx@2.28.0: - resolution: {integrity: sha512-1Yowhzjf0ivGMrTIkY9hav5TxobO9qIVqUE41fiCGMGgc3CLlf4MY+9AHmZqBWgDTue0fY9zWjYFVyf6Diuobw==} - - strict-event-emitter@0.5.1: - resolution: {integrity: sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==} - - strictdom@1.0.1: - resolution: {integrity: sha512-cEmp9QeXXRmjj/rVp9oyiqcvyocWab/HaoN4+bwFeZ7QzykJD6L3yD4v12K1x0tHpqRqVpJevN3gW7kyM39Bqg==} + streamx@2.28.1: + resolution: {integrity: sha512-zEzXb0s5Cds7tqMH6rhZ05lcJydCWiQPEwiNngVqzsxCc962vLY4Uw+mW7od8kDH258k2Uz/JrOkdIAAhSh9VA==} string-length@4.0.2: resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} @@ -10291,8 +10610,8 @@ packages: resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} engines: {node: '>=18'} - string-width@8.2.2: - resolution: {integrity: sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg==} + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} engines: {node: '>=20'} string.prototype.trim@1.2.11: @@ -10344,14 +10663,18 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} + strip-json-comments@5.0.3: + resolution: {integrity: sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==} + engines: {node: '>=14.16'} + structured-source@4.0.0: resolution: {integrity: sha512-qGzRFNJDjFieQkl/sVOI2dUjHKRyL9dAJi2gCPGJLbJHBIkyOHxjuocpIEfbLioX+qSJpvbYdT49/YCdMznKxA==} stubs@3.0.0: resolution: {integrity: sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw==} - style-mod@4.1.3: - resolution: {integrity: sha512-i/n8VsZydrugj3Iuzll8+x/00GH2vnYsk1eomD8QiRrSAeW6ItbCQDtfXCeJHd0iwiNagqjQkvpvREEPtW3IoQ==} + style-mod@4.1.4: + resolution: {integrity: sha512-XXWIQt633/EpAFx8aZDOTjBzrCaGmhvEQlQo6MVPfa2OzO2cWo+4hV9h+6UkHYlXGfy+ODXKUdP7Pthmcu5ATw==} stylis@4.4.0: resolution: {integrity: sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==} @@ -10400,12 +10723,20 @@ packages: symbol-tree@3.2.4: resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} + sync-child-process@1.1.1: + resolution: {integrity: sha512-54zMOnH5qgjdKW8SGpCx3daSP+v+TtTfOxgPdhUE3P0hytMMpknZfP67S4JeRcx5IQRWJERz6890yO4dkTywww==} + engines: {node: '>=16.0.0'} + + sync-message-port@1.2.0: + resolution: {integrity: sha512-gAQ9qrUN/UCypHtGFbbe7Rc/f9bzO88IwrG8TDo/aMKAApKyD6E3W4Cm0EfhfBb6Z6SKt59tTCTfD+n1xmAvMg==} + engines: {node: '>=16.0.0'} + synckit@0.11.13: resolution: {integrity: sha512-eNRKgb3z66Yp3D2CixVujOUvXLFUTij/zVnV8KRyvFdQwpz7I5DS8UfRkTeLzb64u+dkzDSdelE24izu+zSSUg==} engines: {node: ^14.18.0 || >=16.0.0} - systeminformation@5.33.1: - resolution: {integrity: sha512-DEN6ICHk3Tk0Uf/hrAHh7xlt7iL5CJFBtPZinA0H62DrGG/KPKqq/Nzj6lCXPS4Ay/sf/14zNnk9LpqKzBIc+w==} + systeminformation@5.33.19: + resolution: {integrity: sha512-Zm7wGeCG7PqfvzegMJIzrxICopWqYCeLATVmvxOOci1isLcNVKgY4Fr0hhYQzvc7cgtK3377jQVChTFAnznOiA==} engines: {node: '>=10.0.0'} os: [darwin, linux, win32, freebsd, openbsd, netbsd, sunos, android] hasBin: true @@ -10413,24 +10744,13 @@ packages: systemjs@6.15.1: resolution: {integrity: sha512-Nk8c4lXvMB98MtbmjX7JwJRgJOL8fluecYCfCeYBznwmpOs8Bf15hLM6z4z71EDAhQVrQrI+wt1aLWSXZq+hXA==} - table@6.9.0: - resolution: {integrity: sha512-9kY+CygyYM6j02t5YFHbNz2FN5QmYGv9zAjVp4lCDjlCw7amdckXlEt/bjMhUIfj4ThGRE4gCUH5+yGnNuPo5A==} - engines: {node: '>=10.0.0'} - tailwindcss@3.4.19: resolution: {integrity: sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==} engines: {node: '>=14.0.0'} hasBin: true - tar-fs@2.1.5: - resolution: {integrity: sha512-OboTd8mmMhZDNPV+UjQcK9yKAatXu2aJ+r1w4im1Otd4M4fl2hwvdoXUxIYHFTHWK/3y3FarBP70v3vwmGlOxw==} - - tar-stream@2.2.0: - resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} - engines: {node: '>=6'} - - tar-stream@3.2.0: - resolution: {integrity: sha512-ojzvCvVaNp6aOTFmG7jaRD0meowIAuPc3cMMhSgKiVWws1GyHbGd/xvnyuRKcKlMpt3qvxx6r0hreCNITP9hIg==} + tar-stream@3.2.2: + resolution: {integrity: sha512-+8NeqHRjQWH9nYlwo2gamAMImZCVzI4UoEgDpWorBt9OEfppiZn+uSkskzQKPWIZyji/C8fpWO7u69G0DX0tbg==} tar@7.5.22: resolution: {integrity: sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==} @@ -10446,23 +10766,16 @@ packages: teex@1.0.1: resolution: {integrity: sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==} - terminal-link@4.0.0: - resolution: {integrity: sha512-lk+vH+MccxNqgVqSnkMVKx4VLJfnLjDBGzH16JVZjKE2DoxP57s6/vt6JmXV5I3jBcfGrxNrYtC+mPtU7WJztA==} + test-exclude@7.0.2: + resolution: {integrity: sha512-u9E6A+ZDYdp7a4WnarkXPZOx8Ilz46+kby6p1yZ8zsGTz9gYa6FIS7lj2oezzNKmtdyyJNNmmXDppga5GB7kSw==} engines: {node: '>=18'} - test-exclude@6.0.0: - resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} - engines: {node: '>=8'} - text-decoder@1.2.7: resolution: {integrity: sha512-vlLytXkeP4xvEq2otHeJfSQIRyWxo/oZGEbXrtEEF9Hnmrdly59sUbzZ/QgyWuLYHctCHxFF4tRQZNQ9k60ExQ==} text-hex@1.0.0: resolution: {integrity: sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==} - text-table@0.2.0: - resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} - textextensions@6.11.0: resolution: {integrity: sha512-tXJwSr9355kFJI3lbCkPpUH5cP8/M0GGy2xLO34aZCjMXBaK3SoPnZwr/oWmo1FdCnELcs4npdCIOFtq9W3ruQ==} engines: {node: '>=4'} @@ -10483,33 +10796,30 @@ packages: through2@4.0.2: resolution: {integrity: sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==} - tinybench@2.9.0: - resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + tinybench@6.2.3: + resolution: {integrity: sha512-Al01C2JIBnO2CXCAPbpAl6sUiOZHeThGtHYNTa51JRw9PyWOCdr+9Ong05R4qg/Sk3+H645E8ov1h2c58ityNw==} + engines: {node: '>=20.0.0'} - tinyexec@1.3.0: - resolution: {integrity: sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==} + tinyexec@1.3.1: + resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==} engines: {node: '>=18'} tinyglobby@0.2.17: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} - tinyrainbow@3.1.1: - resolution: {integrity: sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==} - engines: {node: '>=14.0.0'} - tldts-core@6.1.86: resolution: {integrity: sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==} - tldts-core@7.4.10: - resolution: {integrity: sha512-KnQjp53ZekKgm/r3l+u8kJGGzYgrWdP8+Mql7a4vijh2WE0IrZWspQj/TpTxDho/YxO+AnOZnIjQcCD+q6iJsw==} + tldts-core@7.4.20: + resolution: {integrity: sha512-C630TWXZCZmLq0F2bW4QqwnaaxCQ/svpAqvJwnC4JvgEM5ohhBnGsEzTLSOXcN+xjz+kEaHS5uoWIw2klnqd0A==} tldts@6.1.86: resolution: {integrity: sha512-WMi/OQ2axVTf/ykqCQgXiIct+mSQDFdH2fkwhPwgEwvJ1kSzZRiinb0zF2Xb8u4+OqPChmyI6MEu4EezNJz+FQ==} hasBin: true - tldts@7.4.10: - resolution: {integrity: sha512-GgouD1B+sWwvkaEq8vXC15DjQitxbvs12oIXELpconwm+Tg3zfcEv4jgzq3vtKverDXsg3VI8aRgNL2Nra0Iog==} + tldts@7.4.19: + resolution: {integrity: sha512-48dH6aSpQnpbzDUc4vIQZ1VjB8tkK+e8c1yx05/SZK+rkssgjEOlxDd/yU8/a4vGYQ9vRgJr9dwMq9TJ0b3X2Q==} hasBin: true tmp@0.0.30: @@ -10520,9 +10830,6 @@ packages: resolution: {integrity: sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==} engines: {node: '>=14.14'} - tmpl@1.0.5: - resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==} - to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -10554,8 +10861,8 @@ packages: resolution: {integrity: sha512-FVDYdxtnj0G6Qm/DhNPSb8Ju59ULcup3tuJxkFb5K8Bv2pUXILbf0xZWU8PX8Ov19OXljbUyveOFwRMwkXzO+A==} engines: {node: '>=16'} - tough-cookie@6.0.2: - resolution: {integrity: sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==} + tough-cookie@6.1.0: + resolution: {integrity: sha512-FTxc8u8Kl2tz0Lat1u8ksvcy8bwHRyEMawwTWybo51JqaC6O7SvfuhAKg+Ld6VqyIe2QRJBzY9HA7y2WyFRT2w==} engines: {node: '>=16'} toxic@1.0.1: @@ -10568,15 +10875,16 @@ packages: resolution: {integrity: sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==} engines: {node: '>=18'} - tr46@6.0.0: - resolution: {integrity: sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==} - engines: {node: '>=20'} + tr46@7.0.0: + resolution: {integrity: sha512-BcDSDW+SIGWVOns1Zm6Yg91q9AEj7eaID0QDY9oIqJD1A8dscNwMcl9Sms2DeuWCNov1X0/oXanHGYQBSLwZsg==} + engines: {node: ^22.14.0 || >=24.0.0} - traverse@0.3.9: - resolution: {integrity: sha512-iawgk0hLP3SxGKDfnDJf8wTz4p2qImnyihM5Hh/sGvQ3K37dPi/w8sRhdNIxYA1TwFwc5mDhIJq+O0RsvXBKdQ==} + traverse@0.3.10: + resolution: {integrity: sha512-pd6fq5qmiFuPA3TpdqBCqJXlOrSdCSt0l9IZDg83Vbf4x3m/X18prEwMMVM5LXp9vGL9NxjeiDGBrTasqyngXQ==} + engines: {node: '>= 0.4'} - traverse@0.6.11: - resolution: {integrity: sha512-vxXDZg8/+p3gblxB6BhhG5yWVn1kGRlaL8O78UDXc3wRnPizB5g83dcvWV1jpDMIPnjZjOFuxlMmE82XJ4407w==} + traverse@0.6.14: + resolution: {integrity: sha512-CYRAVGfnSSe+4Wlof62oUH6y9fGwo0NNS84hMq76MTZtwXQU7Oqna9SgWfrCGj5JPUtHQudnIEt1BP7PInPkPQ==} engines: {node: '>= 0.4'} tree-kill@1.2.2: @@ -10622,8 +10930,8 @@ packages: tslib@1.14.1: resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==} - tslib@2.8.1: - resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} tslint-no-toplevel-property-access@0.0.2: resolution: {integrity: sha512-Oc+UUurlGLBkgeUSGxMoTpRUpaXsjqzQCEAYrYQyuU8330fi5FKlye5n53y87EJ24AlfdoxMPV7DJfFOADapfg==} @@ -10648,8 +10956,8 @@ packages: peerDependencies: typescript: '>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 3.0.0-dev || >= 3.1.0-dev' - tsx@4.23.12: - resolution: {integrity: sha512-FDf4L4sYzKtzWYhU/Xm0AQFdTjdIxNo9ElTf2mxXM6k8YMHXzYUe4yODVaXP4V9uMFbVg8c0qyBccK2OOxb45Q==} + tsx@4.23.15: + resolution: {integrity: sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw==} engines: {node: '>=18.0.0'} hasBin: true @@ -10699,8 +11007,8 @@ packages: resolution: {integrity: sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==} engines: {node: '>= 0.4'} - typed-array-byte-offset@1.0.4: - resolution: {integrity: sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==} + typed-array-byte-offset@1.0.5: + resolution: {integrity: sha512-0FHJvLPqZ7KJzp17O13jfsAjsqazgrxBu2zEK95PmUz8lv2+GjRuxUInCr2Rk9Dms3ihN21zJ929ZO43yJ95QQ==} engines: {node: '>= 0.4'} typed-array-length@1.0.8: @@ -10716,13 +11024,18 @@ packages: typedarray-to-buffer@3.1.5: resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} - typedarray.prototype.slice@1.0.5: - resolution: {integrity: sha512-q7QNVDGTdl702bVFiI5eY4l/HkgCM6at9KhcFbgUAzezHFbOVy4+0O/lCjsABEQwbZPravVfBIiBVGo89yzHFg==} + typedarray.prototype.slice@1.0.6: + resolution: {integrity: sha512-r+7YvGfM5TkTiDQ5EqWi/Z4L4KP3jUI+YCmTtWg1tmTHUw6xladLJqzR2heMaHBIM0TTFLZmn/EkIaEHYs/bIA==} engines: {node: '>= 0.4'} typedarray@0.0.6: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} + hasBin: true + typescript@6.0.3: resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} engines: {node: '>=14.17'} @@ -10732,9 +11045,6 @@ packages: resolution: {integrity: sha512-O3oYyCMPYgNNHuO7Jjk3uacJWZF8loBgwrfd/5LE/HyZ3lUIOdniQ7DNXJcIgZbwioZxk0fLfI4EVnetdiX5jg==} hasBin: true - uc.micro@2.1.0: - resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==} - uglify-js@3.19.3: resolution: {integrity: sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==} engines: {node: '>=0.8.0'} @@ -10762,22 +11072,18 @@ packages: undici-types@6.21.0: resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} - undici-types@7.18.2: - resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} + undici-types@7.24.6: + resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==} - undici-types@8.10.0: - resolution: {integrity: sha512-ibvdovq3nCFs8Msrd95BW+zUOq+aOVbT+wpHUoPWhztbHEoPc6oof51iFDB6Es8lTKvNvVW9jNSAB8dwrKTMGg==} + undici-types@8.12.4: + resolution: {integrity: sha512-GNCQH3MbVGB8OAVAoTiLH8pu4wx5Ni3DWKpnBzGj3WDsi8EwmK0aOVBooNEt+g5YL1eHPxcS9XUTouwFU6j1kQ==} - undici@6.28.0: - resolution: {integrity: sha512-LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA==} + undici@6.29.1: + resolution: {integrity: sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==} engines: {node: '>=18.17'} - undici@7.29.0: - resolution: {integrity: sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==} - engines: {node: '>=20.18.1'} - - undici@8.10.0: - resolution: {integrity: sha512-HvltHd7avK13QIw/oLe4qoOLyoVSoafqJ2jYOrtMRBkbYT31eiBQ8O0ehRKZiEZCMEyLFQNIADpgCWC5fALvYQ==} + undici@8.12.4: + resolution: {integrity: sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==} engines: {node: '>=22.19.0'} unicode-emoji-modifier-base@1.0.0: @@ -10791,10 +11097,6 @@ packages: resolution: {integrity: sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==} engines: {node: '>=18'} - unicorn-magic@0.3.0: - resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==} - engines: {node: '>=18'} - union@0.5.0: resolution: {integrity: sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA==} engines: {node: '>= 0.8.0'} @@ -10812,15 +11114,11 @@ packages: unist-util-stringify-position@4.0.0: resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} - unist-util-visit-parents@6.0.2: - resolution: {integrity: sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==} - - unist-util-visit@5.1.0: - resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==} + unist-util-visit-parents@6.1.0: + resolution: {integrity: sha512-vKXxz6O38sKDj1mtx/k2cWvkkFBuYGx6uGrlzBkVeWCRF/F8sdI0j3Wbkz/5rVNRRuVc8UrgRdbCxNhmYXgP3w==} - universal-analytics@0.5.4: - resolution: {integrity: sha512-db38BYsx+oZEx0bc+PeGmIwG+YiYH5Xluhxf9EBnL39U4+DAXJtXQHLJ+zzTH36lx/N54/WKQQYnh0kQWJ74yg==} - engines: {node: '>=22.0.0'} + unist-util-visit@5.2.0: + resolution: {integrity: sha512-fpsYs/VVoZxfGY9/j3FQpZmN8wdLJaV1Pt38AaJNZu9uKIHcFU3halCdBveEq1HGKO1OEfJY65w1zvoFV1b3qQ==} universal-github-app-jwt@2.2.2: resolution: {integrity: sha512-dcmbeSrOdTnsjGjUfAlqNDJrhxXizjAz94ija9Qw8YkZ1uu0d+GoZzyH+Jb9tIIqvGsadUfwg+22k5aDqqwzbw==} @@ -10840,15 +11138,15 @@ packages: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} - unrs-resolver@1.12.2: - resolution: {integrity: sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==} + unrs-resolver@1.13.0: + resolution: {integrity: sha512-mcPQo9Vm6kXd84d/WqMiYBi2CcA57QHBX/ev5PoUEb8b2oQzUvJ6xYsfseQblnCncgnVmCZGWiFwK7KkS5JZJA==} untildify@4.0.0: resolution: {integrity: sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==} engines: {node: '>=8'} - update-browserslist-db@1.3.1: - resolution: {integrity: sha512-ZZ61DsRsOnakl74HAmp3oSN4aXUmEWXf+i/yv0h7tIBfICc3VdrFErQKUUKPgu3AMsTUMbcongALEN4l6GSUrQ==} + update-browserslist-db@1.3.4: + resolution: {integrity: sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==} hasBin: true peerDependencies: browserslist: '>= 4.21.0' @@ -10880,10 +11178,6 @@ packages: resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} - uuid@14.0.1: - resolution: {integrity: sha512-6ZxzVpzDXDa3bJWaHilVayA+BH/1zmxCJoVgvmqJnid/gPoKHxUrS/aC/T6LGQtNHT+XHG9fXPJB4d+IrU30Ew==} - hasBin: true - uuid@3.4.0: resolution: {integrity: sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==} deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). @@ -10919,20 +11213,26 @@ packages: resolution: {integrity: sha512-aeVK81SIuT6aMJfNo9Vte8Dw0/FZINGBV8BfCraGtqVxIeLAEhJyoWs8SmvRVmXfGss2PmmOwZCuBPbZR+IYWg==} engines: {node: '>= 10.13.0'} + varint@6.0.0: + resolution: {integrity: sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg==} + vary@1.1.2: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} + verkit@0.5.0: + resolution: {integrity: sha512-u4J1hr6Y+C/hit34GwL3eIcUf3wngT8TlYUjK7tk0jxydKLAq3sYvifjdTDA6U3KCKRcQCQDGf/srjxfZF3l7g==} + engines: {node: '>=18.12.0'} + verror@1.10.0: resolution: {integrity: sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==} - engines: {'0': node >=0.6.0} version-range@4.15.0: resolution: {integrity: sha512-Ck0EJbAGxHwprkzFO966t4/5QkRuzh+/I1RxhLgUKKwEn+Cd8NwM60mE3AqBZg5gYODoXW0EFsQvbZjRlvdqbg==} engines: {node: '>=4'} - vfile-message@4.0.3: - resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==} + vfile-message@4.0.4: + resolution: {integrity: sha512-66ycRswIkNmHH9PHku7ADtv5RVwgIrOcuv3J8Svz6h4qgGRrKVa+9/neuKyJZUXyOpYwLTvS+whZ4R2urHHgQg==} vfile@6.0.3: resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} @@ -10953,13 +11253,13 @@ packages: resolution: {integrity: sha512-0QwqXteBNXgnLCdWdvPQBX6FXRHtIH3VhJPTd5Lwn28tJXc34YqSCWUmkOvtJHBmB3gGoPtrOKk3Ts8/kEZ9aA==} engines: {node: '>=10.13.0'} - vite@8.2.2: - resolution: {integrity: sha512-cFKLV/PRgAUlIRm5WjMjJ86jrftzpqcgH+Us+DS8mI3CDNiH30Whrz8uHL3+MOLPAgqbMBAqWdAHAphOAM+z/Q==} + vite@8.3.8: + resolution: {integrity: sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: '@types/node': ^20.19.0 || >=22.12.0 - '@vitejs/devtools': ^0.4.0 || ^0.5.0 + '@vitejs/devtools': ^0.7.1 || ^0.8.0 esbuild: ^0.27.0 || ^0.28.0 jiti: '>=1.21.0' less: ^4.0.0 @@ -10996,22 +11296,23 @@ packages: yaml: optional: true - vitest@4.1.10: - resolution: {integrity: sha512-R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==} - engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} + vitest@5.1.0: + resolution: {integrity: sha512-MzmNFnrwa8v8lF1bLxw3UJ4EREwVOVb75VqJZmUDRjJ6EluK/x9th7qTbaeDk41WxE1GxWqmTXcdsfobfH5sOA==} + engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@opentelemetry/api': ^1.9.0 - '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 - '@vitest/browser-playwright': 4.1.10 - '@vitest/browser-preview': 4.1.10 - '@vitest/browser-webdriverio': 4.1.10 - '@vitest/coverage-istanbul': 4.1.10 - '@vitest/coverage-v8': 4.1.10 - '@vitest/ui': 4.1.10 + '@types/node': ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 5.1.0 + '@vitest/browser-preview': 5.1.0 + '@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0 + '@vitest/coverage-istanbul': 5.1.0 + '@vitest/coverage-v8': 5.1.0 + '@vitest/ui': 5.1.0 happy-dom: '*' jsdom: '*' + vite: ^6.4.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: '@edge-runtime/vm': optional: true @@ -11050,6 +11351,14 @@ packages: resolution: {integrity: sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==} engines: {node: '>=14.0.0'} + vscode-jsonrpc@9.0.3: + resolution: {integrity: sha512-qETYf9PCl1lVfwR+oBmMfc4vP2nqLNA35ABxorw3j06+xlKRgDVxbLgKm4Y/xPL0YWdeDjLoI4ImICIT3nB0zQ==} + engines: {node: '>=14.0.0'} + + vscode-languageclient@10.1.2: + resolution: {integrity: sha512-cOv5SMvtAhfVeo5m2r9L2rVHAD0J5CFOsmvH1WgNmPaI61VYjJNc3XUDLOKeFSDtWoAXIEoK6KetuBEL/3hErg==} + engines: {vscode: ^1.91.0} + vscode-languageclient@9.0.1: resolution: {integrity: sha512-JZiimVdvimEuHh5olxhxkht09m3JzUGwggb5eRUkzzJhZ2KjCN0nh55VfiED9oez9DyF8/fz1g1iBV3h+0Z2EA==} engines: {vscode: ^1.82.0} @@ -11057,14 +11366,27 @@ packages: vscode-languageserver-protocol@3.17.5: resolution: {integrity: sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==} - vscode-languageserver-textdocument@1.0.14: - resolution: {integrity: sha512-EQyqJMi552E4ZTf46izQ4Fj6XquqxCySR3J5ZSD1SisMf6RfpeOWHxGBE8Gr6V0/3GHIGdAzDn8F8+1nTGCnoQ==} + vscode-languageserver-protocol@3.18.4: + resolution: {integrity: sha512-CCXbyr99dafRJzJH/0Ryk7ly5T8XPmSR0//OuF2w4m+9JiOin7zcAT5iET8GRE7Z9taFBejb3GbM0a0mbjdbrg==} + + vscode-languageserver-textdocument@1.0.15: + resolution: {integrity: sha512-Gsfr9S8LU3S6885cS+NaleasJ0n3V5y/SOTqHCifQiXWFw3G9w9/YItDfwHrlCz+dSZWWZ8ilYVMcJe7Sz7Sxw==} + + vscode-languageserver-textdocument@1.0.16: + resolution: {integrity: sha512-qeNEuOi9a3qkqRf7Gfez2WL2VwlBTLCNekHBGO9kxPVUp9XuY15yfTJ9jwvOwKI0I2MhUUfZq95NSp+LK1CLQg==} vscode-languageserver-types@3.17.5: resolution: {integrity: sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==} - vscode-languageserver-types@3.18.0: - resolution: {integrity: sha512-8TsGPNMIMiiBdkORgRSvLjuiEIiAFtO+KssmYWxQ+uSVvlf7RjK8YKCOjPzZ+YA04jXEV7+7LvkSmHkhpNS99g==} + vscode-languageserver-types@3.18.4: + resolution: {integrity: sha512-nQsacoiijvl0fRf2q28uFDrAVwRhdCa3QveiF7/CX0r18mLR5FU/1WskSsCKOjmEbtteKUnY8x8Yzxop+k0zwg==} + + vscode-languageserver-types@3.18.5: + resolution: {integrity: sha512-kPd6+JQNz3HMJvjKlqUxERSlZHAntl/aGpsk7ImwIh0ewDKDcjgAEyVSYciPiOJD3ftbK9IrfiqUeTZLSbCizw==} + + vscode-languageserver@10.1.2: + resolution: {integrity: sha512-pXPWde3RytdeBVEs6PulOOT5OpeXC5GkWRpcT11f5rNn41jviQsAYPyAqJ/0oVGETQLKPJtYbHNiMPlfLb0NTQ==} + hasBin: true vscode-languageserver@9.0.1: resolution: {integrity: sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==} @@ -11090,18 +11412,19 @@ packages: resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==} engines: {node: '>=18'} + w3c-xmlserializer@6.0.0: + resolution: {integrity: sha512-4Nsy8K5Tr6SPDH9jhKJOHf7ChDrc1zufZTVSF7x72hwuEXBqxqk9G6cK+K2NRUtB3iELRJqjXb4JPDMBjMTl2Q==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + walk-up-path@4.0.0: resolution: {integrity: sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==} engines: {node: 20 || >=22} - walker@1.0.8: - resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==} - wcwidth@1.0.1: resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} - weak-lru-cache@1.2.2: - resolution: {integrity: sha512-DEAoo25RfSYMuTGc9vPJzZcZullwIqRDSI9LOy+fkCJPi6hykCnfKaXTuPBDuXAUcqHXyOgFtHNp/kB2FjYHbw==} + weak-lru-cache@1.2.3: + resolution: {integrity: sha512-pF0uTATIDYJFeEX4GDD5zjOe2jU9EJbBRcpcGPonUcao7eSp2hl6VA0b2Ims9jisMX33x6zgnozvaBCEsXNGPw==} web-streams-polyfill@3.3.3: resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==} @@ -11110,6 +11433,9 @@ packages: web-vitals@4.2.4: resolution: {integrity: sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw==} + web-vitals@5.3.0: + resolution: {integrity: sha512-q6LWsLatGYZp5VGBIOvbTj6JBV2nOmC8KvWztXBmwJcfFAzhwKwbOxhUH306XY3CcaZDUlSmSuNPBsCn0bFu+g==} + webdriver-js-extender@2.1.0: resolution: {integrity: sha512-lcUKrjbBfCK6MNsh7xaY2UAUmZwe+/ib03AjVOpFobX4O7+83BUveSrLfU0Qsyb1DaKJdQRbuU+kM9aZ6QUhiQ==} engines: {node: '>=6.9.x'} @@ -11130,6 +11456,9 @@ packages: resolution: {integrity: sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==} engines: {node: '>=20'} + webmcp-types@0.1.10: + resolution: {integrity: sha512-U4GQ1RpJ0tqCUt2ALMV9Pnhi+hsy8L31f/Q1v4mLVhW64r5sYhh+2+SjP/Lq4/9jP33vZgNkuRZARJl65A/ZIg==} + websocket-driver@0.7.5: resolution: {integrity: sha512-ZL2+3c7kMBdIRCMz6l8jQMHyGVxj+UL+xVk74Ombiciboca8rHa15L86B19E5oh1pL9Ii/uj54gtsIrZGMo6zA==} engines: {node: '>=0.8.0'} @@ -11167,12 +11496,8 @@ packages: resolution: {integrity: sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==} engines: {node: '>=18'} - whatwg-url@16.0.1: - resolution: {integrity: sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==} - engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0} - - whatwg-url@17.1.0: - resolution: {integrity: sha512-3GeworPmc2ZfEEHP7lEbUfBX/L75wdEsi0rLNhXcXxnoN5jyq0SL5gCy06SGW2cyTIZdTvWIDQNQoza++vKeaw==} + whatwg-url@17.3.0: + resolution: {integrity: sha512-KwOAJrpf+GTgBvcBQJcP38sMF0DsQKdwtG+TxM2pW44P6E5k0hDbWrDmyuJDIF0Uef0aQq0ZoJs+5oI+k8ddhg==} engines: {node: ^22.14.0 || >=24.0.0} whatwg-url@5.0.0: @@ -11193,8 +11518,8 @@ packages: which-module@2.0.1: resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} - which-typed-array@1.1.22: - resolution: {integrity: sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw==} + which-typed-array@1.1.24: + resolution: {integrity: sha512-wk4Mf4pR5mRP7eYuuTBCIQ9d0ud2Fv2jRLQpfgnRjbOxAFHmjKFValgTpitVKzJJS8ajnYQV2Du1SZ8j6b/EUQ==} engines: {node: '>= 0.4'} which@1.3.1: @@ -11216,9 +11541,9 @@ packages: engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} hasBin: true - why-is-node-running@2.3.0: - resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} - engines: {node: '>=8'} + why-is-node-running@3.2.1: + resolution: {integrity: sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==} + engines: {node: '>=20.11'} hasBin: true widest-line@3.1.0: @@ -11236,11 +11561,11 @@ packages: wordwrap@1.0.0: resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} - workerpool@9.3.4: - resolution: {integrity: sha512-TmPRQYYSAnnDiEB0P/Ytip7bFGvqnSU6I2BcuSw7Hx+JSg/DsUi5ebYfc8GYaSdpuvOcEs6dXxPurOYpe9QFwg==} + workerpool@10.0.3: + resolution: {integrity: sha512-6z2Iis68Wqth93/G/wJP9u+R3O+d2XTlgWChGCwuT1qLbBsOYueGRZuJ++v3mtDP5KjYdy+WzvWC+VWETSVXJA==} - wrap-ansi@10.0.0: - resolution: {integrity: sha512-SGcvg80f0wUy2/fXES19feHMz8E0JoXv2uNgHOu4Dgi2OrCy1lqwFYEJz1BLbDI0exjPMe/ZdzZ/YpGECBG/aQ==} + wrap-ansi@10.0.2: + resolution: {integrity: sha512-6OLRNZqRntVGBm26ghZ5eZhCuWWyOkRCSn8XsOIuq5stpCE/tjLbdozd93naILZig0lmD8ANfRwnhn0DLeXGlg==} engines: {node: '>=20'} wrap-ansi@6.2.0: @@ -11293,9 +11618,21 @@ packages: utf-8-validate: optional: true - wsl-utils@0.1.0: - resolution: {integrity: sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==} - engines: {node: '>=18'} + ws@8.22.2: + resolution: {integrity: sha512-/rEZ2ejown2N5gxVTHUu9bVVC7ttu0/Tgzf5hbTOixR3Fs7mbbXgn2DbdbcKgJOmpQMtrIUWivtYuVMnp/W/yA==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + + wsl-utils@1.0.1: + resolution: {integrity: sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==} + engines: {node: '>=20'} xdg-basedir@4.0.0: resolution: {integrity: sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==} @@ -11324,8 +11661,8 @@ packages: xmlchars@2.2.0: resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} - xpath@0.0.34: - resolution: {integrity: sha512-FxF6+rkr1rNSQrhUNYrAFJpRXNzlDoMxeXN5qI84939ylEv3qqPFKa85Oxr6tDaJKqwW6KKyo2v26TSv3k6LeA==} + xpath@0.0.36: + resolution: {integrity: sha512-HuqAnJx5YJoDeLub7hhcNoiRvnqqrgoSsI4kLrOtv6XkaUI0zY9ylL4+ULozB35JT1SVMfdexsMqRbTp7bkFGQ==} engines: {node: '>=0.6.0'} xtend@4.0.2: @@ -11355,8 +11692,8 @@ packages: resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} engines: {node: '>=18'} - yaml@2.9.0: - resolution: {integrity: sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==} + yaml@2.9.1: + resolution: {integrity: sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==} engines: {node: '>= 14.6'} hasBin: true @@ -11376,10 +11713,6 @@ packages: resolution: {integrity: sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==} engines: {node: ^20.19.0 || ^22.12.0 || >=23} - yargs-unparser@2.0.0: - resolution: {integrity: sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==} - engines: {node: '>=10'} - yargs@15.4.1: resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==} engines: {node: '>=8'} @@ -11392,8 +11725,8 @@ packages: resolution: {integrity: sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==} engines: {node: '>=12'} - yargs@18.1.0: - resolution: {integrity: sha512-2rAgRKu54VsHkqI0/tYkmluGXHD4KW7yZoycuqDQ15QOTnc2VVfy0nN/1eMhnQLO00A+dwtK20xuCnc1YGeUyg==} + yargs@18.2.0: + resolution: {integrity: sha512-9OpKOLeaoNFecEp7P6iYbzze/5CqWoH7N3SMs/6y1XF4nMvFMspEGZzJ6uFi9MmQwXhyzqYoSEKO3tvA3Z/o2w==} engines: {node: ^20.19.0 || ^22.12.0 || >=23} yauzl@3.4.0: @@ -11419,14 +11752,14 @@ packages: resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} engines: {node: '>=18'} - yuku-ast@0.8.7: - resolution: {integrity: sha512-h6+4bDfyootiMB9vckk5uKo5r5j0GHrkr17FQTDNfEsFT3DWlN9uu1HJwQwc64pgmLCI945fWM3lbTIqxjT3GQ==} - - yuku-codegen@0.8.7: - resolution: {integrity: sha512-adwDZSh8oVDzhE6Du9PwVWxcOxeV0e2EVhUuMKWfhSY4wkrDq9eqixlxFF3l/XGUV1E7UFzhpz9393MUumkyNw==} - - yuku-parser@0.8.7: - resolution: {integrity: sha512-vRD9nwt4L3aYpxNqeSC4WqLv58xrXef0Ong1Mc45CTXTIpvLafx7JO05sczmQZwdLEZvywrLOGdNC5+Rp5N1BQ==} + yuku@0.27.0: + resolution: {integrity: sha512-YmSD4xYlESRi8egxzC4guegQdMhAcz1G9NUsMNrTABAIV9dQxoBzDC7ZyAG/dSG18o1Oxt4xDok2irvPy9FSJQ==} + engines: {node: '>=16.4.0'} + peerDependencies: + '@yuku-toolchain/wasm': 0.27.0 + peerDependenciesMeta: + '@yuku-toolchain/wasm': + optional: true zip-stream@6.0.1: resolution: {integrity: sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==} @@ -11437,11 +11770,11 @@ packages: peerDependencies: zod: ^3.25.28 || ^4 - zod@4.4.3: - resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==} + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} - zone.js@0.16.2: - resolution: {integrity: sha512-Eky7p2Z1Ig3NnbfodSPoARCjKBSTFMnE/ACsP1L/XJEfY4SdOFce19BsUCWVwL6K5ABZFy5J3bjcMWffX+YM3Q==} + zone.js@0.16.3: + resolution: {integrity: sha512-ihXL9+vhYyEhXz4TDNpHeAOZN9FVrbog0Il64OIEI28UP/n5AaI6gsccRuOHBfx+206agzyoK527bYIO0Foy6A==} zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} @@ -11460,181 +11793,183 @@ snapshots: '@actions/github@9.1.1': dependencies: '@actions/http-client': 3.0.2 - '@octokit/core': 7.0.7 - '@octokit/plugin-paginate-rest': 14.0.0(@octokit/core@7.0.7) - '@octokit/plugin-rest-endpoint-methods': 17.0.0(@octokit/core@7.0.7) - '@octokit/request': 10.0.13 - '@octokit/request-error': 7.1.1 - undici: 6.28.0 + '@octokit/core': 7.0.8 + '@octokit/plugin-paginate-rest': 14.0.0(@octokit/core@7.0.8) + '@octokit/plugin-rest-endpoint-methods': 17.0.0(@octokit/core@7.0.8) + '@octokit/request': 10.0.16 + '@octokit/request-error': 7.1.2 + undici: 6.29.1 '@actions/http-client@3.0.2': dependencies: tunnel: 0.0.6 - undici: 6.28.0 + undici: 6.29.1 '@actions/http-client@4.0.1': dependencies: tunnel: 0.0.6 - undici: 6.28.0 + undici: 6.29.1 '@actions/io@3.0.2': {} - '@algolia/abtesting@1.23.0': + '@algolia/abtesting@1.30.0': dependencies: - '@algolia/client-common': 5.57.0 - '@algolia/requester-browser-xhr': 5.57.0 - '@algolia/requester-fetch': 5.57.0 - '@algolia/requester-node-http': 5.57.0 + '@algolia/client-common': 5.64.0 + '@algolia/requester-browser-xhr': 5.64.0 + '@algolia/requester-fetch': 5.64.0 + '@algolia/requester-node-http': 5.64.0 - '@algolia/client-abtesting@5.57.0': + '@algolia/client-abtesting@5.64.0': dependencies: - '@algolia/client-common': 5.57.0 - '@algolia/requester-browser-xhr': 5.57.0 - '@algolia/requester-fetch': 5.57.0 - '@algolia/requester-node-http': 5.57.0 + '@algolia/client-common': 5.64.0 + '@algolia/requester-browser-xhr': 5.64.0 + '@algolia/requester-fetch': 5.64.0 + '@algolia/requester-node-http': 5.64.0 - '@algolia/client-analytics@5.57.0': + '@algolia/client-analytics@5.64.0': dependencies: - '@algolia/client-common': 5.57.0 - '@algolia/requester-browser-xhr': 5.57.0 - '@algolia/requester-fetch': 5.57.0 - '@algolia/requester-node-http': 5.57.0 + '@algolia/client-common': 5.64.0 + '@algolia/requester-browser-xhr': 5.64.0 + '@algolia/requester-fetch': 5.64.0 + '@algolia/requester-node-http': 5.64.0 - '@algolia/client-common@5.57.0': {} + '@algolia/client-common@5.64.0': {} - '@algolia/client-insights@5.57.0': + '@algolia/client-insights@5.64.0': dependencies: - '@algolia/client-common': 5.57.0 - '@algolia/requester-browser-xhr': 5.57.0 - '@algolia/requester-fetch': 5.57.0 - '@algolia/requester-node-http': 5.57.0 + '@algolia/client-common': 5.64.0 + '@algolia/requester-browser-xhr': 5.64.0 + '@algolia/requester-fetch': 5.64.0 + '@algolia/requester-node-http': 5.64.0 - '@algolia/client-personalization@5.57.0': + '@algolia/client-personalization@5.64.0': dependencies: - '@algolia/client-common': 5.57.0 - '@algolia/requester-browser-xhr': 5.57.0 - '@algolia/requester-fetch': 5.57.0 - '@algolia/requester-node-http': 5.57.0 + '@algolia/client-common': 5.64.0 + '@algolia/requester-browser-xhr': 5.64.0 + '@algolia/requester-fetch': 5.64.0 + '@algolia/requester-node-http': 5.64.0 - '@algolia/client-query-suggestions@5.57.0': + '@algolia/client-query-suggestions@5.64.0': dependencies: - '@algolia/client-common': 5.57.0 - '@algolia/requester-browser-xhr': 5.57.0 - '@algolia/requester-fetch': 5.57.0 - '@algolia/requester-node-http': 5.57.0 + '@algolia/client-common': 5.64.0 + '@algolia/requester-browser-xhr': 5.64.0 + '@algolia/requester-fetch': 5.64.0 + '@algolia/requester-node-http': 5.64.0 - '@algolia/client-search@5.57.0': + '@algolia/client-search@5.64.0': dependencies: - '@algolia/client-common': 5.57.0 - '@algolia/requester-browser-xhr': 5.57.0 - '@algolia/requester-fetch': 5.57.0 - '@algolia/requester-node-http': 5.57.0 + '@algolia/client-common': 5.64.0 + '@algolia/requester-browser-xhr': 5.64.0 + '@algolia/requester-fetch': 5.64.0 + '@algolia/requester-node-http': 5.64.0 - '@algolia/ingestion@1.57.0': + '@algolia/ingestion@1.64.0': dependencies: - '@algolia/client-common': 5.57.0 - '@algolia/requester-browser-xhr': 5.57.0 - '@algolia/requester-fetch': 5.57.0 - '@algolia/requester-node-http': 5.57.0 + '@algolia/client-common': 5.64.0 + '@algolia/requester-browser-xhr': 5.64.0 + '@algolia/requester-fetch': 5.64.0 + '@algolia/requester-node-http': 5.64.0 - '@algolia/monitoring@1.57.0': + '@algolia/monitoring@1.64.0': dependencies: - '@algolia/client-common': 5.57.0 - '@algolia/requester-browser-xhr': 5.57.0 - '@algolia/requester-fetch': 5.57.0 - '@algolia/requester-node-http': 5.57.0 + '@algolia/client-common': 5.64.0 + '@algolia/requester-browser-xhr': 5.64.0 + '@algolia/requester-fetch': 5.64.0 + '@algolia/requester-node-http': 5.64.0 - '@algolia/recommend@5.57.0': + '@algolia/recommend@5.64.0': dependencies: - '@algolia/client-common': 5.57.0 - '@algolia/requester-browser-xhr': 5.57.0 - '@algolia/requester-fetch': 5.57.0 - '@algolia/requester-node-http': 5.57.0 + '@algolia/client-common': 5.64.0 + '@algolia/requester-browser-xhr': 5.64.0 + '@algolia/requester-fetch': 5.64.0 + '@algolia/requester-node-http': 5.64.0 - '@algolia/requester-browser-xhr@5.57.0': + '@algolia/requester-browser-xhr@5.64.0': dependencies: - '@algolia/client-common': 5.57.0 + '@algolia/client-common': 5.64.0 - '@algolia/requester-fetch@5.57.0': + '@algolia/requester-fetch@5.64.0': dependencies: - '@algolia/client-common': 5.57.0 + '@algolia/client-common': 5.64.0 - '@algolia/requester-node-http@5.57.0': + '@algolia/requester-node-http@5.64.0': dependencies: - '@algolia/client-common': 5.57.0 + '@algolia/client-common': 5.64.0 - '@alloc/quick-lru@5.2.0': {} + '@alloc/quick-lru@5.3.0': {} '@ampproject/remapping@2.3.0': dependencies: '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31 - '@angular-devkit/architect@0.2202.0-next.5(chokidar@5.0.0)': + '@angular-devkit/architect@0.2203.0-rc.0(chokidar@6.0.0)': dependencies: - '@angular-devkit/core': 22.2.0-next.5(chokidar@5.0.0) + '@angular-devkit/core': 22.3.0-rc.0(chokidar@6.0.0) rxjs: 7.8.2 transitivePeerDependencies: - chokidar - '@angular-devkit/core@22.2.0-next.5(chokidar@5.0.0)': + '@angular-devkit/core@22.3.0-rc.0(chokidar@6.0.0)': dependencies: ajv: 8.20.0 ajv-formats: 3.0.1 jsonc-parser: 3.3.1 - picomatch: 4.0.5 + picomatch: 4.0.7 rxjs: 7.8.2 source-map: 0.8.0 optionalDependencies: - chokidar: 5.0.0 + chokidar: 6.0.0 - '@angular-devkit/schematics@22.2.0-next.5(chokidar@5.0.0)': + '@angular-devkit/schematics@22.3.0-rc.0(chokidar@6.0.0)': dependencies: - '@angular-devkit/core': 22.2.0-next.5(chokidar@5.0.0) + '@angular-devkit/core': 22.3.0-rc.0(chokidar@6.0.0) jsonc-parser: 3.3.1 - magic-string: 1.2.2 - ora: 9.4.1 + magic-string: 1.4.5 + ora: 10.0.0 rxjs: 7.8.2 transitivePeerDependencies: - chokidar - '@angular/aria@22.2.0-next.3(@angular/cdk@22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/core@packages+core)': + '@angular/aria@22.3.0-rc.0(@angular/cdk@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/core@packages+core)': dependencies: - '@angular/cdk': 22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) + '@angular/cdk': 22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) '@angular/core': link:packages/core - tslib: 2.8.1 + tslib: 2.9.1 - '@angular/build@22.2.0-next.5(7387dddf71e4685389a4d00910fd9b91)': + '@angular/build@22.3.0-rc.0(@angular/compiler-cli@packages+compiler-cli)(@angular/compiler@packages+compiler)(@angular/core@packages+core)(@angular/localize@packages+localize)(@angular/platform-browser@packages+platform-browser)(@angular/platform-server@packages+platform-server)(@angular/service-worker@packages+service-worker)(@angular/ssr@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router))(@types/node@20.19.43)(istanbul-lib-instrument@6.0.3(supports-color@11.0.0))(jiti@1.21.7)(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6))(postcss@8.5.32)(rollup@4.68.2)(supports-color@11.0.0)(tailwindcss@3.4.19(tsx@4.23.15)(yaml@2.9.1))(tslib@2.9.1)(tsx@4.23.15)(typescript@6.0.3)(yaml@2.9.1)': dependencies: '@ampproject/remapping': 2.3.0 - '@angular-devkit/architect': 0.2202.0-next.5(chokidar@5.0.0) + '@angular-devkit/architect': 0.2203.0-rc.0(chokidar@6.0.0) '@angular/compiler': link:packages/compiler '@angular/compiler-cli': link:packages/compiler-cli - '@babel/core': 8.0.1 - '@inquirer/confirm': 6.2.0(@types/node@24.13.3) + '@babel/core': 8.1.0 + '@inquirer/confirm': 6.4.0(@types/node@20.19.43) '@parcel/watcher': 2.6.0 - '@vitejs/plugin-basic-ssl': 2.3.0(vite@8.2.2(@types/node@24.13.3)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0)) - beasties: 0.4.3 - browserslist: 4.28.8 - chokidar: 5.0.0 + '@vitejs/plugin-basic-ssl': 2.3.0(vite@8.3.8(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1)) + beasties: 0.5.5 + browserslist: 4.29.5 + chokidar: 6.0.0 esbuild: 0.28.2 https-proxy-agent: 9.1.0(supports-color@11.0.0) jsonc-parser: 3.3.1 - listr2: 11.0.0 - magic-string: 1.2.2 + listr2: 11.4.1 + magic-string: 1.4.5 mrmime: 2.0.1 - oxc-parser: 0.146.0 - parse5-html-rewriting-stream: 8.0.1 - picomatch: 4.0.5 - piscina: 5.3.1 - rolldown: 1.2.5 - sass: 1.103.1 - semver: 7.8.5 + oxc-parser: 0.158.0 + parse5-html-rewriting-stream: 8.1.1 + picomatch: 4.0.7 + piscina: 5.3.2 + rolldown: 1.3.1 + rolldown-plugin-dts: 0.30.1(rolldown@1.3.1)(typescript@6.0.3) + sass: 1.108.2 + sass-embedded: 1.108.2 + semver: 7.8.6 source-map-support: 0.5.21 tinyglobby: 0.2.17 - tslib: 2.8.1 + tslib: 2.9.1 typescript: 6.0.3 - vite: 8.2.2(@types/node@24.13.3)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0) + vite: 8.3.8(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1) xxhash-wasm: 1.1.0 optionalDependencies: '@angular/core': link:packages/core @@ -11642,60 +11977,65 @@ snapshots: '@angular/platform-browser': link:packages/platform-browser '@angular/platform-server': link:packages/platform-server '@angular/service-worker': link:packages/service-worker - '@angular/ssr': 22.2.0-next.5(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router) + '@angular/ssr': 22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router) + '@oxc-parser/binding-wasm32-wasi': 0.158.0 istanbul-lib-instrument: 6.0.3(supports-color@11.0.0) - karma: 6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) - less: 4.9.0(supports-color@11.0.0) - lmdb: 3.5.6 - ng-packagr: 22.2.0-next.4(@angular/compiler-cli@packages+compiler-cli)(supports-color@11.0.0)(tailwindcss@3.4.19(tsx@4.23.12)(yaml@2.9.0))(tslib@2.8.1)(typescript@6.0.3) - postcss: 8.5.26 - rollup: 4.63.0 - tailwindcss: 3.4.19(tsx@4.23.12)(yaml@2.9.0) - vitest: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(esbuild@0.28.2)(jiti@1.21.7)(jsdom@30.0.1)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0) + karma: 6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) + lmdb: 3.5.9 + postcss: 8.5.32 + rollup: 4.68.2 + tailwindcss: 3.4.19(tsx@4.23.15)(yaml@2.9.1) transitivePeerDependencies: - '@types/node' - '@vitejs/devtools' + - '@volar/typescript' + - '@vue/language-core' + - '@yuku-toolchain/wasm' - jiti - kerberos - - sass-embedded + - oxc-resolver - stylus - sugarss - supports-color - terser + - tsrs - tsx + - vue-tsc - yaml - '@angular/build@22.2.0-next.5(d042945b298c3146aa53f7230502473a)': + '@angular/build@22.3.0-rc.0(da72a7edc1d3af608ef0b3c918d57711)': dependencies: '@ampproject/remapping': 2.3.0 - '@angular-devkit/architect': 0.2202.0-next.5(chokidar@5.0.0) + '@angular-devkit/architect': 0.2203.0-rc.0(chokidar@6.0.0) '@angular/compiler': link:packages/compiler '@angular/compiler-cli': link:packages/compiler-cli - '@babel/core': 8.0.1 - '@inquirer/confirm': 6.2.0(@types/node@20.19.43) + '@babel/core': 8.1.0 + '@inquirer/confirm': 6.4.0(@types/node@24.19.2) '@parcel/watcher': 2.6.0 - '@vitejs/plugin-basic-ssl': 2.3.0(vite@8.2.2(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0)) - beasties: 0.4.3 - browserslist: 4.28.8 - chokidar: 5.0.0 + '@vitejs/plugin-basic-ssl': 2.3.0(vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1)) + beasties: 0.5.5 + browserslist: 4.29.5 + chokidar: 6.0.0 esbuild: 0.28.2 https-proxy-agent: 9.1.0(supports-color@11.0.0) jsonc-parser: 3.3.1 - listr2: 11.0.0 - magic-string: 1.2.2 + listr2: 11.4.1 + magic-string: 1.4.5 mrmime: 2.0.1 - oxc-parser: 0.146.0 - parse5-html-rewriting-stream: 8.0.1 - picomatch: 4.0.5 - piscina: 5.3.1 - rolldown: 1.2.5 - sass: 1.103.1 - semver: 7.8.5 + oxc-parser: 0.158.0 + parse5-html-rewriting-stream: 8.1.1 + picomatch: 4.0.7 + piscina: 5.3.2 + rolldown: 1.3.1 + rolldown-plugin-dts: 0.30.1(rolldown@1.3.1)(typescript@6.0.3) + sass: 1.108.2 + sass-embedded: 1.108.2 + semver: 7.8.6 source-map-support: 0.5.21 tinyglobby: 0.2.17 - tslib: 2.8.1 + tslib: 2.9.1 typescript: 6.0.3 - vite: 8.2.2(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0) + vite: 8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1) xxhash-wasm: 1.1.0 optionalDependencies: '@angular/core': link:packages/core @@ -11703,180 +12043,187 @@ snapshots: '@angular/platform-browser': link:packages/platform-browser '@angular/platform-server': link:packages/platform-server '@angular/service-worker': link:packages/service-worker - '@angular/ssr': 22.2.0-next.5(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router) + '@angular/ssr': 22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router) + '@oxc-parser/binding-wasm32-wasi': 0.158.0 istanbul-lib-instrument: 6.0.3(supports-color@11.0.0) - karma: 6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) - less: 4.9.0(supports-color@11.0.0) - lmdb: 3.5.6 - ng-packagr: 22.2.0-next.4(@angular/compiler-cli@packages+compiler-cli)(supports-color@11.0.0)(tailwindcss@3.4.19(tsx@4.23.12)(yaml@2.9.0))(tslib@2.8.1)(typescript@6.0.3) - postcss: 8.5.26 - rollup: 4.63.0 - tailwindcss: 3.4.19(tsx@4.23.12)(yaml@2.9.0) - vitest: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(jsdom@30.0.1)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0) + karma: 6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) + lmdb: 3.5.9 + postcss: 8.5.32 + rollup: 4.68.2 + tailwindcss: 3.4.19(tsx@4.23.15)(yaml@2.9.1) + vitest: 5.1.0(@opentelemetry/api@1.10.0)(@types/node@24.19.2)(jsdom@31.0.0)(vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1)) transitivePeerDependencies: - '@types/node' - '@vitejs/devtools' + - '@volar/typescript' + - '@vue/language-core' + - '@yuku-toolchain/wasm' - jiti - kerberos - - sass-embedded + - oxc-resolver - stylus - sugarss - supports-color - terser + - tsrs - tsx + - vue-tsc - yaml - '@angular/cdk@22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2)': + '@angular/cdk@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2)': dependencies: '@angular/common': link:packages/common '@angular/core': link:packages/core + '@angular/forms': link:packages/forms '@angular/platform-browser': link:packages/platform-browser - parse5: 8.0.1 + parse5: 8.1.1 rxjs: 7.8.2 - tslib: 2.8.1 + tslib: 2.9.1 - '@angular/cli@22.2.0-next.5(@types/node@20.19.43)(chokidar@5.0.0)': + '@angular/cli@22.3.0-rc.0(@types/node@20.19.43)(chokidar@6.0.0)': dependencies: - '@angular-devkit/architect': 0.2202.0-next.5(chokidar@5.0.0) - '@angular-devkit/core': 22.2.0-next.5(chokidar@5.0.0) - '@angular-devkit/schematics': 22.2.0-next.5(chokidar@5.0.0) - '@inquirer/prompts': 8.6.0(@types/node@20.19.43) - '@listr2/prompt-adapter-inquirer': 4.2.5(@inquirer/prompts@8.6.0(@types/node@20.19.43))(@types/node@20.19.43)(listr2@11.0.0) - '@modelcontextprotocol/server': 2.0.0 - '@schematics/angular': 22.2.0-next.5(chokidar@5.0.0) + '@angular-devkit/architect': 0.2203.0-rc.0(chokidar@6.0.0) + '@angular-devkit/core': 22.3.0-rc.0(chokidar@6.0.0) + '@angular-devkit/schematics': 22.3.0-rc.0(chokidar@6.0.0) + '@inquirer/prompts': 8.8.0(@types/node@20.19.43) + '@listr2/prompt-adapter-inquirer': 4.3.4(@inquirer/prompts@8.8.0(@types/node@20.19.43))(@types/node@20.19.43)(listr2@11.4.1) + '@modelcontextprotocol/server': 2.4.0 + '@schematics/angular': 22.3.0-rc.0(chokidar@6.0.0) jsonc-parser: 3.3.1 - listr2: 11.0.0 + listr2: 11.4.1 npm-package-arg: 14.0.0 - parse5-html-rewriting-stream: 8.0.1 - semver: 7.8.5 - yargs: 18.1.0 - zod: 4.4.3 + parse5-html-rewriting-stream: 8.1.1 + semver: 7.8.6 + yargs: 18.2.0 + zod: 4.6.7 transitivePeerDependencies: - '@types/node' - chokidar - '@angular/cli@22.2.0-next.5(@types/node@24.13.3)(chokidar@5.0.0)': + '@angular/cli@22.3.0-rc.0(@types/node@24.19.2)(chokidar@6.0.0)': dependencies: - '@angular-devkit/architect': 0.2202.0-next.5(chokidar@5.0.0) - '@angular-devkit/core': 22.2.0-next.5(chokidar@5.0.0) - '@angular-devkit/schematics': 22.2.0-next.5(chokidar@5.0.0) - '@inquirer/prompts': 8.6.0(@types/node@24.13.3) - '@listr2/prompt-adapter-inquirer': 4.2.5(@inquirer/prompts@8.6.0(@types/node@24.13.3))(@types/node@24.13.3)(listr2@11.0.0) - '@modelcontextprotocol/server': 2.0.0 - '@schematics/angular': 22.2.0-next.5(chokidar@5.0.0) + '@angular-devkit/architect': 0.2203.0-rc.0(chokidar@6.0.0) + '@angular-devkit/core': 22.3.0-rc.0(chokidar@6.0.0) + '@angular-devkit/schematics': 22.3.0-rc.0(chokidar@6.0.0) + '@inquirer/prompts': 8.8.0(@types/node@24.19.2) + '@listr2/prompt-adapter-inquirer': 4.3.4(@inquirer/prompts@8.8.0(@types/node@24.19.2))(@types/node@24.19.2)(listr2@11.4.1) + '@modelcontextprotocol/server': 2.4.0 + '@schematics/angular': 22.3.0-rc.0(chokidar@6.0.0) jsonc-parser: 3.3.1 - listr2: 11.0.0 + listr2: 11.4.1 npm-package-arg: 14.0.0 - parse5-html-rewriting-stream: 8.0.1 - semver: 7.8.5 - yargs: 18.1.0 - zod: 4.4.3 + parse5-html-rewriting-stream: 8.1.1 + semver: 7.8.6 + yargs: 18.2.0 + zod: 4.6.7 transitivePeerDependencies: - '@types/node' - chokidar - '@angular/core@22.2.0-next.2(@angular/compiler@packages+compiler)': + '@angular/core@22.2.5(@angular/compiler@packages+compiler)': dependencies: rxjs: 7.8.2 - tslib: 2.8.1 - zone.js: 0.16.2 + tslib: 2.9.1 + zone.js: 0.16.3 optionalDependencies: '@angular/compiler': link:packages/compiler - '@angular/domino@https://codeload.github.com/angular/domino/tar.gz/04f987dc08ff3736b427f50941adf1722458528f': {} + '@angular/domino@https://codeload.github.com/angular/domino/tar.gz/51fa184b59769e2d150c92ce09c46e3dbeb401c1': {} - '@angular/material@22.2.0-next.3(@angular/cdk@22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2)': + '@angular/material@22.3.0-rc.0(@angular/cdk@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2)': dependencies: - '@angular/cdk': 22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) + '@angular/cdk': 22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) '@angular/common': link:packages/common '@angular/core': link:packages/core '@angular/forms': link:packages/forms '@angular/platform-browser': link:packages/platform-browser rxjs: 7.8.2 - tslib: 2.8.1 + tslib: 2.9.1 - '@angular/ng-dev@https://codeload.github.com/angular/dev-infra-private-ng-dev-builds/tar.gz/beec8fe17573a33c9934487ce99ce9cce3e3f6bf(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(supports-color@11.0.0))': + '@angular/ng-dev@https://codeload.github.com/angular/dev-infra-private-ng-dev-builds/tar.gz/2e989b1cfb3a6fd8dc8d14c513f10f3084e6b970(@angular/core@packages+core)(@angular/router@packages+router)(@modelcontextprotocol/sdk@1.32.2(supports-color@11.0.0))': dependencies: '@actions/core': 3.0.1 - '@conventional-changelog/git-client': 3.1.2(conventional-commits-filter@6.0.1)(conventional-commits-parser@7.1.2) + '@conventional-changelog/git-client': 3.2.0(conventional-commits-filter@6.0.1)(conventional-commits-parser@7.1.4) '@google-cloud/spanner': 8.0.0(supports-color@11.0.0) - '@google/genai': 2.17.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(supports-color@11.0.0))(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) - '@inquirer/prompts': 8.5.2(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) - '@octokit/auth-app': 8.3.0 - '@octokit/core': 7.0.7 - '@octokit/graphql': 9.0.4 + '@google/genai': 3.1.0(@modelcontextprotocol/sdk@1.32.2(supports-color@11.0.0))(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) + '@inquirer/prompts': 8.8.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) + '@octokit/auth-app': 8.3.1 + '@octokit/core': 7.0.8 + '@octokit/graphql': 9.0.5 '@octokit/graphql-schema': 15.26.1 - '@octokit/openapi-types': 28.0.0 - '@octokit/plugin-paginate-rest': 15.0.0(@octokit/core@7.0.7) - '@octokit/plugin-rest-endpoint-methods': 18.0.0(@octokit/core@7.0.7) - '@octokit/request-error': 7.1.1 + '@octokit/plugin-rest-endpoint-methods': 18.0.0(@octokit/core@7.0.8) + '@octokit/request-error': 7.1.2 '@octokit/rest': 22.0.1 - '@octokit/types': 17.0.0 - '@pnpm/dependency-path': 1001.1.10 + '@octokit/types': 18.0.0 '@types/cli-progress': 3.11.6 '@types/ejs': 3.1.5 '@types/events': 3.0.3 '@types/folder-hash': 4.0.4 '@types/jasmine': 6.0.0 - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@types/semver': 7.8.0 '@types/which': 3.0.4 '@types/yargs': 17.0.35 '@types/yarnpkg__lockfile': 1.1.9 '@yarnpkg/lockfile': 1.1.0 - bufferutil: 4.1.0 + bufferutil: 4.2.0 cli-progress: 3.12.0 conventional-commits-filter: 6.0.1 - conventional-commits-parser: 7.1.2 - ejs: 6.0.1 - encoding: 0.1.13 + conventional-commits-parser: 7.1.4 + ejs: 7.0.2 + encoding: 0.1.14 fast-glob: 3.3.3 - firebase: 12.17.1 - folder-hash: 4.1.3(supports-color@11.0.0) + firebase: 13.2.0(@angular/core@packages+core)(@angular/router@packages+router)(supports-color@11.0.0) + folder-hash: 4.1.4(supports-color@11.0.0) jasmine: 6.3.0 jasmine-core: 6.3.0 jasmine-reporters: 2.5.2 jsonc-parser: 3.3.1 - minimatch: 10.2.6 + minimatch: 11.0.7 multimatch: 8.0.0 - nock: 14.0.17 - semver: 7.8.5 + nock: 15.0.6(supports-color@11.0.0) + semver: 7.8.6 supports-color: 11.0.0 - tsx: 4.23.12 + tsx: 4.23.15 typed-graphqlify: 3.1.6 typescript: 6.0.3 utf-8-validate: 6.0.6 which: 7.0.0 - yaml: 2.9.0 - yargs: 18.1.0 - zod: 4.4.3 + yaml: 2.9.1 + yargs: 18.2.0 + zod: 4.6.7 transitivePeerDependencies: + - '@angular/core' + - '@angular/router' - '@modelcontextprotocol/sdk' - '@react-native-async-storage/async-storage' + - '@types/react' + - next + - react + - react-router-dom - '@angular/ssr@22.2.0-next.5(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router)': + '@angular/ssr@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-server@packages+platform-server)(@angular/router@packages+router)': dependencies: '@angular/common': link:packages/common '@angular/core': link:packages/core '@angular/router': link:packages/router - tslib: 2.8.1 + beasties: 0.5.5 + tslib: 2.9.1 optionalDependencies: '@angular/platform-server': link:packages/platform-server - '@antfu/install-pkg@1.1.0': + '@antfu/install-pkg@2.1.0': dependencies: - package-manager-detector: 1.8.0 - tinyexec: 1.3.0 + package-manager-detector: 1.9.0 + tinyexec: 1.3.1 '@apidevtools/json-schema-ref-parser@9.1.2': dependencies: '@jsdevtools/ono': 7.1.3 '@types/json-schema': 7.0.15 call-me-maybe: 1.0.2 - js-yaml: 4.3.1 - - '@apphosting/common@0.0.8': {} + js-yaml: 4.3.2 '@asamuzakjp/css-color@3.2.0': dependencies: @@ -11886,117 +12233,105 @@ snapshots: '@csstools/css-tokenizer': 3.0.4 lru-cache: 10.4.3 - '@asamuzakjp/css-color@6.0.7': - dependencies: - '@csstools/css-calc': 3.3.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0) - '@csstools/css-color-parser': 4.2.1(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0) - '@csstools/css-parser-algorithms': 4.0.0(@csstools/css-tokenizer@4.0.0) - '@csstools/css-tokenizer': 4.0.0 - lru-cache: 11.5.2 - - '@asamuzakjp/dom-selector@8.3.2': - dependencies: - bidi-js: 1.0.3 - css-tree: 3.2.1 - is-potential-custom-element-name: 1.0.1 - lru-cache: 11.5.2 - - '@azu/format-text@1.0.2': {} - - '@azu/style-format@1.0.1': - dependencies: - '@azu/format-text': 1.0.2 - '@azure/abort-controller@2.2.0': dependencies: - tslib: 2.8.1 + tslib: 2.9.1 '@azure/core-auth@1.11.0(supports-color@11.0.0)': dependencies: '@azure/abort-controller': 2.2.0 '@azure/core-util': 1.14.0(supports-color@11.0.0) - tslib: 2.8.1 + tslib: 2.9.1 transitivePeerDependencies: + - kerberos - supports-color - '@azure/core-client@1.11.0(supports-color@11.0.0)': + '@azure/core-client@1.11.2(supports-color@11.0.0)': dependencies: '@azure/abort-controller': 2.2.0 '@azure/core-auth': 1.11.0(supports-color@11.0.0) - '@azure/core-rest-pipeline': 1.25.0(supports-color@11.0.0) + '@azure/core-rest-pipeline': 1.25.1(supports-color@11.0.0) '@azure/core-tracing': 1.4.0 '@azure/core-util': 1.14.0(supports-color@11.0.0) '@azure/logger': 1.4.0(supports-color@11.0.0) - tslib: 2.8.1 + tslib: 2.9.1 transitivePeerDependencies: + - kerberos - supports-color - '@azure/core-rest-pipeline@1.25.0(supports-color@11.0.0)': + '@azure/core-process@1.0.0': {} + + '@azure/core-rest-pipeline@1.25.1(supports-color@11.0.0)': dependencies: '@azure/abort-controller': 2.2.0 '@azure/core-auth': 1.11.0(supports-color@11.0.0) '@azure/core-tracing': 1.4.0 '@azure/core-util': 1.14.0(supports-color@11.0.0) '@azure/logger': 1.4.0(supports-color@11.0.0) - '@typespec/ts-http-runtime': 0.3.8(supports-color@11.0.0) - tslib: 2.8.1 + '@typespec/ts-http-runtime': 0.3.10(supports-color@11.0.0) + tslib: 2.9.1 transitivePeerDependencies: + - kerberos - supports-color '@azure/core-tracing@1.4.0': dependencies: - tslib: 2.8.1 + tslib: 2.9.1 '@azure/core-util@1.14.0(supports-color@11.0.0)': dependencies: '@azure/abort-controller': 2.2.0 - '@typespec/ts-http-runtime': 0.3.8(supports-color@11.0.0) - tslib: 2.8.1 + '@typespec/ts-http-runtime': 0.3.10(supports-color@11.0.0) + tslib: 2.9.1 transitivePeerDependencies: + - kerberos - supports-color - '@azure/identity@4.13.1(supports-color@11.0.0)': + '@azure/identity@4.14.1(supports-color@11.0.0)': dependencies: '@azure/abort-controller': 2.2.0 '@azure/core-auth': 1.11.0(supports-color@11.0.0) - '@azure/core-client': 1.11.0(supports-color@11.0.0) - '@azure/core-rest-pipeline': 1.25.0(supports-color@11.0.0) + '@azure/core-client': 1.11.2(supports-color@11.0.0) + '@azure/core-process': 1.0.0 + '@azure/core-rest-pipeline': 1.25.1(supports-color@11.0.0) '@azure/core-tracing': 1.4.0 '@azure/core-util': 1.14.0(supports-color@11.0.0) '@azure/logger': 1.4.0(supports-color@11.0.0) - '@azure/msal-browser': 5.18.0 - '@azure/msal-node': 5.5.0 - open: 10.2.0 - tslib: 2.8.1 + '@azure/msal-browser': 5.29.0 + '@azure/msal-node': 7.2.1 + open: 11.0.4 + tslib: 2.9.1 transitivePeerDependencies: + - kerberos - supports-color '@azure/logger@1.4.0(supports-color@11.0.0)': dependencies: - '@typespec/ts-http-runtime': 0.3.8(supports-color@11.0.0) - tslib: 2.8.1 + '@typespec/ts-http-runtime': 0.3.10(supports-color@11.0.0) + tslib: 2.9.1 transitivePeerDependencies: + - kerberos - supports-color - '@azure/msal-browser@5.18.0': + '@azure/msal-browser@5.29.0': dependencies: - '@azure/msal-common': 16.12.0 + '@azure/msal-common': 16.16.1 - '@azure/msal-common@16.12.0': {} + '@azure/msal-common@16.16.1': {} - '@azure/msal-node@5.5.0': + '@azure/msal-node@7.2.1': dependencies: - '@azure/msal-common': 16.12.0 + '@azure/msal-common': 16.16.1 jsonwebtoken: 9.0.3 - '@babel/cli@8.0.4(@babel/core@8.0.1)': + '@babel/cli@8.1.0(@babel/core@8.1.0)': dependencies: - '@babel/core': 8.0.1 + '@babel/core': 8.1.0 '@jridgewell/trace-mapping': 0.3.31 chokidar: 5.0.0 commander: 14.0.3 convert-source-map: 2.0.0 - glob: 13.0.6 + glob: 14.0.4 slash: 5.1.0 '@babel/code-frame@7.29.7': @@ -12005,267 +12340,267 @@ snapshots: js-tokens: 4.0.0 picocolors: 1.1.1 - '@babel/code-frame@8.0.0': + '@babel/code-frame@8.0.6': dependencies: - '@babel/helper-validator-identifier': 8.0.4 + '@babel/helper-validator-identifier': 8.0.6 js-tokens: 10.0.0 '@babel/compat-data@7.29.7': {} - '@babel/compat-data@8.0.0': {} + '@babel/compat-data@8.0.5': {} - '@babel/core@7.29.7(supports-color@11.0.0)': + '@babel/core@7.29.13(supports-color@11.0.0)': dependencies: '@babel/code-frame': 7.29.7 - '@babel/generator': 7.29.8 - '@babel/helper-compilation-targets': 7.29.7 - '@babel/helper-module-transforms': 7.29.7(@babel/core@7.29.7(supports-color@11.0.0))(supports-color@11.0.0) - '@babel/helpers': 7.29.7 - '@babel/parser': 7.29.8 + '@babel/generator': 7.29.13 + '@babel/helper-compilation-targets': 7.29.13 + '@babel/helper-module-transforms': 7.29.13(@babel/core@7.29.13(supports-color@11.0.0))(supports-color@11.0.0) + '@babel/helpers': 7.29.13 + '@babel/parser': 7.29.13 '@babel/template': 7.29.7 - '@babel/traverse': 7.29.8(supports-color@11.0.0) - '@babel/types': 7.29.8 + '@babel/traverse': 7.29.13(supports-color@11.0.0) + '@babel/types': 7.29.11 '@jridgewell/remapping': 2.3.5 convert-source-map: 2.0.0 debug: 4.4.3(supports-color@11.0.0) gensync: 1.0.0-beta.2 json5: 2.2.3 - semver: 6.3.1 + semver: 6.3.2 transitivePeerDependencies: - supports-color - '@babel/core@8.0.1': + '@babel/core@8.1.0': dependencies: - '@babel/code-frame': 8.0.0 - '@babel/generator': 8.0.0 - '@babel/helper-compilation-targets': 8.0.0 - '@babel/helpers': 8.0.0 - '@babel/parser': 8.0.4 + '@babel/code-frame': 8.0.6 + '@babel/generator': 8.1.0 + '@babel/helper-compilation-targets': 8.0.7 + '@babel/helpers': 8.1.0 + '@babel/parser': 8.1.0 '@babel/template': 8.0.0 - '@babel/traverse': 8.0.4 - '@babel/types': 8.0.4 + '@babel/traverse': 8.1.0 + '@babel/types': 8.1.0 '@types/gensync': 1.0.5 convert-source-map: 2.0.0 - empathic: 2.0.1 + empathic: 2.1.0 gensync: 1.0.0-beta.2 import-meta-resolve: 4.2.0 json5: 2.2.3 - obug: 2.1.4 - semver: 7.8.5 + obug: 3.0.0 + verkit: 0.5.0 - '@babel/generator@7.29.8': + '@babel/generator@7.29.13': dependencies: - '@babel/parser': 7.29.8 - '@babel/types': 7.29.8 + '@babel/parser': 7.29.13 + '@babel/types': 7.29.11 '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31 jsesc: 3.1.0 - '@babel/generator@8.0.0': + '@babel/generator@8.1.0': dependencies: - '@babel/parser': 8.0.4 - '@babel/types': 8.0.4 - '@jridgewell/gen-mapping': 0.3.13 + '@babel/parser': 8.1.0 + '@babel/types': 8.1.0 + '@jridgewell/gen-mapping': 0.4.0-beta.0 '@jridgewell/trace-mapping': 0.3.31 '@types/jsesc': 2.5.1 jsesc: 3.1.0 - '@babel/helper-compilation-targets@7.29.7': + '@babel/helper-compilation-targets@7.29.13': dependencies: '@babel/compat-data': 7.29.7 '@babel/helper-validator-option': 7.29.7 - browserslist: 4.28.8 + browserslist: 4.29.5 lru-cache: 5.1.1 - semver: 6.3.1 + semver: 6.3.2 - '@babel/helper-compilation-targets@8.0.0': + '@babel/helper-compilation-targets@8.0.7': dependencies: - '@babel/compat-data': 8.0.0 + '@babel/compat-data': 8.0.5 '@babel/helper-validator-option': 8.0.0 - browserslist: 4.28.8 - lru-cache: 11.5.2 - semver: 7.8.5 + browserslist: 4.29.5 + flru: 1.0.2 + verkit: 0.5.0 '@babel/helper-globals@7.29.7': {} - '@babel/helper-globals@8.0.0': {} + '@babel/helper-globals@8.0.6': {} '@babel/helper-module-imports@7.29.7(supports-color@11.0.0)': dependencies: - '@babel/traverse': 7.29.8(supports-color@11.0.0) - '@babel/types': 7.29.8 + '@babel/traverse': 7.29.13(supports-color@11.0.0) + '@babel/types': 7.29.11 transitivePeerDependencies: - supports-color - '@babel/helper-module-transforms@7.29.7(@babel/core@7.29.7(supports-color@11.0.0))(supports-color@11.0.0)': + '@babel/helper-module-transforms@7.29.13(@babel/core@7.29.13(supports-color@11.0.0))(supports-color@11.0.0)': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-module-imports': 7.29.7(supports-color@11.0.0) '@babel/helper-validator-identifier': 7.29.7 - '@babel/traverse': 7.29.8(supports-color@11.0.0) + '@babel/traverse': 7.29.13(supports-color@11.0.0) transitivePeerDependencies: - supports-color '@babel/helper-plugin-utils@7.29.7': {} - '@babel/helper-string-parser@7.29.7': {} + '@babel/helper-string-parser@7.29.13': {} - '@babel/helper-string-parser@8.0.0': {} + '@babel/helper-string-parser@8.0.8': {} '@babel/helper-validator-identifier@7.29.7': {} - '@babel/helper-validator-identifier@8.0.4': {} + '@babel/helper-validator-identifier@8.0.6': {} '@babel/helper-validator-option@7.29.7': {} '@babel/helper-validator-option@8.0.0': {} - '@babel/helpers@7.29.7': + '@babel/helpers@7.29.13': dependencies: '@babel/template': 7.29.7 - '@babel/types': 7.29.8 + '@babel/types': 7.29.11 - '@babel/helpers@8.0.0': + '@babel/helpers@8.1.0': dependencies: '@babel/template': 8.0.0 - '@babel/types': 8.0.4 + '@babel/types': 8.1.0 - '@babel/parser@7.29.8': + '@babel/parser@7.29.13': dependencies: - '@babel/types': 7.29.8 + '@babel/types': 7.29.11 - '@babel/parser@8.0.4': + '@babel/parser@8.1.0': dependencies: - '@babel/types': 8.0.4 + '@babel/types': 8.1.0 - '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-import-attributes@7.29.7(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-import-attributes@7.29.7(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-jsx@7.29.7(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-jsx@7.29.7(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 - '@babel/plugin-syntax-typescript@7.29.7(@babel/core@7.29.7(supports-color@11.0.0))': + '@babel/plugin-syntax-typescript@7.29.7(@babel/core@7.29.13(supports-color@11.0.0))': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) '@babel/helper-plugin-utils': 7.29.7 '@babel/template@7.29.7': dependencies: '@babel/code-frame': 7.29.7 - '@babel/parser': 7.29.8 - '@babel/types': 7.29.8 + '@babel/parser': 7.29.13 + '@babel/types': 7.29.11 '@babel/template@8.0.0': dependencies: - '@babel/code-frame': 8.0.0 - '@babel/parser': 8.0.4 - '@babel/types': 8.0.4 + '@babel/code-frame': 8.0.6 + '@babel/parser': 8.1.0 + '@babel/types': 8.1.0 - '@babel/traverse@7.29.8(supports-color@11.0.0)': + '@babel/traverse@7.29.13(supports-color@11.0.0)': dependencies: '@babel/code-frame': 7.29.7 - '@babel/generator': 7.29.8 + '@babel/generator': 7.29.13 '@babel/helper-globals': 7.29.7 - '@babel/parser': 7.29.8 + '@babel/parser': 7.29.13 '@babel/template': 7.29.7 - '@babel/types': 7.29.8 + '@babel/types': 7.29.11 debug: 4.4.3(supports-color@11.0.0) transitivePeerDependencies: - supports-color - '@babel/traverse@8.0.4': + '@babel/traverse@8.1.0': dependencies: - '@babel/code-frame': 8.0.0 - '@babel/generator': 8.0.0 - '@babel/helper-globals': 8.0.0 - '@babel/parser': 8.0.4 + '@babel/code-frame': 8.0.6 + '@babel/generator': 8.1.0 + '@babel/helper-globals': 8.0.6 + '@babel/parser': 8.1.0 '@babel/template': 8.0.0 - '@babel/types': 8.0.4 - obug: 2.1.4 + '@babel/types': 8.1.0 + obug: 3.0.0 - '@babel/types@7.29.8': + '@babel/types@7.29.11': dependencies: - '@babel/helper-string-parser': 7.29.7 + '@babel/helper-string-parser': 7.29.13 '@babel/helper-validator-identifier': 7.29.7 - '@babel/types@8.0.4': + '@babel/types@8.1.0': dependencies: - '@babel/helper-string-parser': 8.0.0 - '@babel/helper-validator-identifier': 8.0.4 + '@babel/helper-string-parser': 8.0.8 + '@babel/helper-validator-identifier': 8.0.6 '@bazel/bazelisk@1.28.1': {} @@ -12277,137 +12612,144 @@ snapshots: '@braintree/sanitize-url@7.1.2': {} - '@bramus/specificity@2.4.2': + '@bufbuild/protobuf@2.17.0': {} + + '@chevrotain/cst-dts-gen@13.2.0': + dependencies: + '@chevrotain/gast': 13.2.0 + '@chevrotain/types': 13.2.0 + + '@chevrotain/gast@13.2.0': dependencies: - css-tree: 3.2.1 + '@chevrotain/types': 13.2.0 + + '@chevrotain/regexp-to-ast@13.2.0': {} - '@cfworker/json-schema@4.1.1': {} + '@chevrotain/types@13.2.0': {} - '@chevrotain/types@11.1.2': {} + '@chevrotain/utils@13.2.0': {} - '@codemirror/autocomplete@6.20.3': + '@codemirror/autocomplete@6.20.4': dependencies: - '@codemirror/language': 6.12.4 - '@codemirror/state': 6.7.1 - '@codemirror/view': 6.43.9 - '@lezer/common': 1.5.2 + '@codemirror/language': 6.13.1 + '@codemirror/state': 6.7.6 + '@codemirror/view': 6.43.15 + '@lezer/common': 1.5.5 - '@codemirror/commands@6.11.0': + '@codemirror/commands@6.11.1': dependencies: - '@codemirror/language': 6.12.4 - '@codemirror/state': 6.7.1 - '@codemirror/view': 6.43.8 - '@lezer/common': 1.5.2 + '@codemirror/language': 6.13.1 + '@codemirror/state': 6.7.6 + '@codemirror/view': 6.43.15 + '@lezer/common': 1.5.5 '@codemirror/lang-angular@0.1.4': dependencies: '@codemirror/lang-html': 6.4.12 '@codemirror/lang-javascript': 6.2.5 - '@codemirror/language': 6.12.4 - '@lezer/common': 1.5.2 - '@lezer/highlight': 1.2.3 - '@lezer/lr': 1.4.10 + '@codemirror/language': 6.13.1 + '@lezer/common': 1.5.5 + '@lezer/highlight': 1.2.5 + '@lezer/lr': 1.4.12 '@codemirror/lang-css@6.3.1': dependencies: - '@codemirror/autocomplete': 6.20.3 - '@codemirror/language': 6.12.4 - '@codemirror/state': 6.7.1 - '@lezer/common': 1.5.2 - '@lezer/css': 1.3.6 + '@codemirror/autocomplete': 6.20.4 + '@codemirror/language': 6.13.1 + '@codemirror/state': 6.7.6 + '@lezer/common': 1.5.5 + '@lezer/css': 1.3.9 '@codemirror/lang-html@6.4.12': dependencies: - '@codemirror/autocomplete': 6.20.3 + '@codemirror/autocomplete': 6.20.4 '@codemirror/lang-css': 6.3.1 '@codemirror/lang-javascript': 6.2.5 - '@codemirror/language': 6.12.4 - '@codemirror/state': 6.7.1 - '@codemirror/view': 6.43.9 - '@lezer/common': 1.5.2 - '@lezer/css': 1.3.6 + '@codemirror/language': 6.13.1 + '@codemirror/state': 6.7.6 + '@codemirror/view': 6.43.15 + '@lezer/common': 1.5.5 + '@lezer/css': 1.3.9 '@lezer/html': 1.3.13 '@codemirror/lang-javascript@6.2.5': dependencies: - '@codemirror/autocomplete': 6.20.3 - '@codemirror/language': 6.12.4 + '@codemirror/autocomplete': 6.20.4 + '@codemirror/language': 6.13.1 '@codemirror/lint': 6.9.7 - '@codemirror/state': 6.7.1 - '@codemirror/view': 6.43.9 - '@lezer/common': 1.5.2 - '@lezer/javascript': 1.5.4 + '@codemirror/state': 6.7.6 + '@codemirror/view': 6.43.15 + '@lezer/common': 1.5.5 + '@lezer/javascript': 1.5.6 '@codemirror/lang-sass@6.0.2': dependencies: '@codemirror/lang-css': 6.3.1 - '@codemirror/language': 6.12.4 - '@codemirror/state': 6.7.1 - '@lezer/common': 1.5.2 + '@codemirror/language': 6.13.1 + '@codemirror/state': 6.7.6 + '@lezer/common': 1.5.5 '@lezer/sass': 1.1.0 - '@codemirror/language@6.12.4': + '@codemirror/language@6.13.1': dependencies: - '@codemirror/state': 6.7.1 - '@codemirror/view': 6.43.9 - '@lezer/common': 1.5.2 - '@lezer/highlight': 1.2.3 - '@lezer/lr': 1.4.10 - style-mod: 4.1.3 + '@codemirror/state': 6.7.6 + '@codemirror/streamparser': 6.0.0 + '@codemirror/view': 6.43.15 + '@lezer/common': 1.5.5 + '@lezer/highlight': 1.2.5 + '@lezer/lr': 1.4.12 + style-mod: 4.1.4 '@codemirror/lint@6.9.7': dependencies: - '@codemirror/state': 6.7.1 - '@codemirror/view': 6.43.9 + '@codemirror/state': 6.7.6 + '@codemirror/view': 6.43.15 crelt: 1.0.7 - '@codemirror/search@6.7.1': + '@codemirror/search@6.7.2': dependencies: - '@codemirror/state': 6.7.1 - '@codemirror/view': 6.43.9 + '@codemirror/state': 6.7.6 + '@codemirror/view': 6.43.15 crelt: 1.0.7 - '@codemirror/state@6.7.1': + '@codemirror/state@6.7.6': dependencies: '@marijn/find-cluster-break': 1.0.4 - '@codemirror/view@6.43.8': - dependencies: - '@codemirror/state': 6.7.1 - crelt: 1.0.7 - style-mod: 4.1.3 - w3c-keyname: 2.2.8 + '@codemirror/streamparser@6.0.0': {} - '@codemirror/view@6.43.9': + '@codemirror/view@6.43.15': dependencies: - '@codemirror/state': 6.7.1 + '@codemirror/state': 6.7.6 crelt: 1.0.7 - style-mod: 4.1.3 + style-mod: 4.1.4 w3c-keyname: 2.2.8 '@colors/colors@1.5.0': {} '@colors/colors@1.6.0': {} + '@colors/colors@1.6.1': {} + '@conventional-changelog/git-client@2.7.0(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.4.0)': dependencies: '@simple-libs/child-process-utils': 1.0.2 '@simple-libs/stream-utils': 1.2.0 - semver: 7.8.5 + semver: 7.8.6 optionalDependencies: conventional-commits-filter: 5.0.0 conventional-commits-parser: 6.4.0 - '@conventional-changelog/git-client@3.1.2(conventional-commits-filter@6.0.1)(conventional-commits-parser@7.1.2)': + '@conventional-changelog/git-client@3.2.0(conventional-commits-filter@6.0.1)(conventional-commits-parser@7.1.4)': dependencies: '@simple-libs/child-process-utils': 2.0.0 '@simple-libs/stream-utils': 2.0.0 - semver: 7.8.5 + verkit: 0.5.0 optionalDependencies: conventional-commits-filter: 6.0.1 - conventional-commits-parser: 7.1.2 + conventional-commits-parser: 7.1.4 - '@conventional-changelog/template@1.3.0': {} + '@conventional-changelog/template@1.4.1': {} '@cspotcode/source-map-support@0.8.1': dependencies: @@ -12415,17 +12757,14 @@ snapshots: '@csstools/color-helpers@5.1.0': {} - '@csstools/color-helpers@6.1.1': {} + '@csstools/color-helpers@6.1.2': {} '@csstools/css-calc@2.1.4(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)': dependencies: '@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4) '@csstools/css-tokenizer': 3.0.4 - '@csstools/css-calc@3.3.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0)': - dependencies: - '@csstools/css-parser-algorithms': 4.0.0(@csstools/css-tokenizer@4.0.0) - '@csstools/css-tokenizer': 4.0.0 + '@csstools/css-calc@3.4.3': {} '@csstools/css-color-parser@3.1.0(@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4))(@csstools/css-tokenizer@3.0.4)': dependencies: @@ -12434,29 +12773,17 @@ snapshots: '@csstools/css-parser-algorithms': 3.0.5(@csstools/css-tokenizer@3.0.4) '@csstools/css-tokenizer': 3.0.4 - '@csstools/css-color-parser@4.2.1(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0)': + '@csstools/css-color-parser@4.2.7': dependencies: - '@csstools/color-helpers': 6.1.1 - '@csstools/css-calc': 3.3.0(@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0))(@csstools/css-tokenizer@4.0.0) - '@csstools/css-parser-algorithms': 4.0.0(@csstools/css-tokenizer@4.0.0) - '@csstools/css-tokenizer': 4.0.0 + '@csstools/color-helpers': 6.1.2 + '@csstools/css-calc': 3.4.3 '@csstools/css-parser-algorithms@3.0.5(@csstools/css-tokenizer@3.0.4)': dependencies: '@csstools/css-tokenizer': 3.0.4 - '@csstools/css-parser-algorithms@4.0.0(@csstools/css-tokenizer@4.0.0)': - dependencies: - '@csstools/css-tokenizer': 4.0.0 - - '@csstools/css-syntax-patches-for-csstree@1.1.8(css-tree@3.2.1)': - optionalDependencies: - css-tree: 3.2.1 - '@csstools/css-tokenizer@3.0.4': {} - '@csstools/css-tokenizer@4.0.0': {} - '@cypress/request@4.0.1': dependencies: aws-sign2: 0.7.0 @@ -12472,7 +12799,7 @@ snapshots: json-stringify-safe: 5.0.1 mime-types: 2.1.35 performance-now: 2.1.0 - qs: 6.15.3 + qs: 6.17.1 safe-buffer: 5.2.1 tough-cookie: 5.1.2 tunnel-agent: 0.6.0 @@ -12484,7 +12811,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@dabh/diagnostics@2.0.8': + '@dabh/diagnostics@2.0.9': dependencies: '@so-ric/colorspace': 1.1.6 enabled: 2.0.0 @@ -12498,20 +12825,31 @@ snapshots: '@electric-sql/pglite@0.3.16': {} - '@emnapi/core@1.10.0': + '@emnapi/core@2.0.0-alpha.6': dependencies: - '@emnapi/wasi-threads': 1.2.1 - tslib: 2.8.1 + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 optional: true - '@emnapi/runtime@1.10.0': + '@emnapi/core@2.0.0-beta.2': dependencies: - tslib: 2.8.1 + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 optional: true - '@emnapi/wasi-threads@1.2.1': + '@emnapi/runtime@2.0.0-alpha.6': dependencies: - tslib: 2.8.1 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 optional: true '@esbuild/aix-ppc64@0.28.2': @@ -12592,334 +12930,367 @@ snapshots: '@esbuild/win32-x64@0.28.2': optional: true - '@exodus/bytes@1.15.1': {} + '@exodus/bytes@1.16.0': {} '@externs/nodejs@1.5.0': {} - '@firebase/ai@2.14.0(@firebase/app-types@0.9.5)(@firebase/app@0.16.0)': + '@firebase/ai@3.0.0(@firebase/app-types@0.9.6)(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/app-check-interop-types': 0.3.4 - '@firebase/app-types': 0.9.5 - '@firebase/component': 0.7.4 - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/app-check-interop-types': 0.3.5 + '@firebase/app-types': 0.9.6 + '@firebase/component': 0.7.5 + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 + tslib: 2.9.1 - '@firebase/analytics-compat@0.2.29(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0)': + '@firebase/analytics-compat@0.2.31(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5)': dependencies: - '@firebase/analytics': 0.10.23(@firebase/app@0.16.0) - '@firebase/analytics-types': 0.8.4 - '@firebase/app': 0.16.0 - '@firebase/app-compat': 0.5.16 - '@firebase/component': 0.7.4 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/analytics': 0.10.25(@firebase/app@0.16.5) + '@firebase/analytics-types': 0.8.5 + '@firebase/app': 0.16.5 + '@firebase/app-compat': 0.5.21 + '@firebase/component': 0.7.5 + '@firebase/util': 1.15.3 + tslib: 2.9.1 - '@firebase/analytics-types@0.8.4': {} + '@firebase/analytics-types@0.8.5': {} - '@firebase/analytics@0.10.23(@firebase/app@0.16.0)': + '@firebase/analytics@0.10.25(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/component': 0.7.4 - '@firebase/installations': 0.6.23(@firebase/app@0.16.0) - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/component': 0.7.5 + '@firebase/installations': 0.6.24(@firebase/app@0.16.5) + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 + tslib: 2.9.1 - '@firebase/app-check-compat@0.4.6(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0)': + '@firebase/app-check-compat@0.4.7(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/app-check': 0.13.0(@firebase/app@0.16.0) - '@firebase/app-check-types': 0.5.4 - '@firebase/app-compat': 0.5.16 - '@firebase/component': 0.7.4 - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/app-check': 0.13.1(@firebase/app@0.16.5) + '@firebase/app-check-types': 0.5.5 + '@firebase/app-compat': 0.5.21 + '@firebase/component': 0.7.5 + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 + tslib: 2.9.1 - '@firebase/app-check-interop-types@0.3.4': {} + '@firebase/app-check-interop-types@0.3.5': {} - '@firebase/app-check-types@0.5.4': {} + '@firebase/app-check-types@0.5.5': {} - '@firebase/app-check@0.13.0(@firebase/app@0.16.0)': + '@firebase/app-check@0.13.1(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/component': 0.7.4 - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/component': 0.7.5 + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 + tslib: 2.9.1 - '@firebase/app-compat@0.5.16': + '@firebase/app-compat@0.5.21': dependencies: - '@firebase/app': 0.16.0 - '@firebase/component': 0.7.4 - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/component': 0.7.5 + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 + tslib: 2.9.1 - '@firebase/app-types@0.9.5': + '@firebase/app-types@0.9.6': dependencies: - '@firebase/logger': 0.5.1 + '@firebase/logger': 0.5.2 - '@firebase/app@0.16.0': + '@firebase/app@0.16.5': dependencies: - '@firebase/component': 0.7.4 - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 + '@firebase/component': 0.7.5 + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 idb: 7.1.1 - tslib: 2.8.1 + tslib: 2.9.1 - '@firebase/auth-compat@0.6.9(@firebase/app-compat@0.5.16)(@firebase/app-types@0.9.5)(@firebase/app@0.16.0)': + '@firebase/auth-compat@0.6.14(@firebase/app-compat@0.5.21)(@firebase/app-types@0.9.6)(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/app-compat': 0.5.16 - '@firebase/auth': 1.13.4(@firebase/app@0.16.0) - '@firebase/auth-types': 0.13.1(@firebase/app-types@0.9.5)(@firebase/util@1.15.2) - '@firebase/component': 0.7.4 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/app-compat': 0.5.21 + '@firebase/auth': 1.13.9(@firebase/app@0.16.5) + '@firebase/auth-types': 0.13.2(@firebase/app-types@0.9.6)(@firebase/util@1.15.3) + '@firebase/component': 0.7.5 + '@firebase/util': 1.15.3 + tslib: 2.9.1 transitivePeerDependencies: - '@firebase/app-types' - '@react-native-async-storage/async-storage' - '@firebase/auth-interop-types@0.2.5': {} + '@firebase/auth-interop-types@0.2.6': {} + + '@firebase/auth-types@0.13.2(@firebase/app-types@0.9.6)(@firebase/util@1.15.3)': + dependencies: + '@firebase/app-types': 0.9.6 + '@firebase/util': 1.15.3 - '@firebase/auth-types@0.13.1(@firebase/app-types@0.9.5)(@firebase/util@1.15.2)': + '@firebase/auth@1.13.9(@firebase/app@0.16.5)': dependencies: - '@firebase/app-types': 0.9.5 - '@firebase/util': 1.15.2 + '@firebase/app': 0.16.5 + '@firebase/component': 0.7.5 + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 + tslib: 2.9.1 - '@firebase/auth@1.13.4(@firebase/app@0.16.0)': + '@firebase/component@0.7.5': dependencies: - '@firebase/app': 0.16.0 - '@firebase/component': 0.7.4 - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/util': 1.15.3 + tslib: 2.9.1 - '@firebase/component@0.7.4': + '@firebase/crashlytics@0.1.0(@angular/core@packages+core)(@angular/router@packages+router)(@firebase/app-types@0.9.6)(@firebase/app@0.16.5)(supports-color@11.0.0)': dependencies: - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/app-types': 0.9.6 + '@firebase/component': 0.7.5 + '@firebase/installations': 0.6.24(@firebase/app@0.16.5) + '@firebase/util': 1.15.3 + '@opentelemetry/api': 1.9.1 + '@opentelemetry/api-logs': 0.220.0 + '@opentelemetry/browser-instrumentation': 0.6.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0) + '@opentelemetry/core': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/exporter-logs-otlp-http': 0.220.0(@opentelemetry/api@1.9.1) + '@opentelemetry/exporter-trace-otlp-proto': 0.220.0(@opentelemetry/api@1.9.1) + '@opentelemetry/instrumentation': 0.220.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0) + '@opentelemetry/instrumentation-document-load': 0.65.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0) + '@opentelemetry/instrumentation-fetch': 0.220.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0) + '@opentelemetry/instrumentation-xml-http-request': 0.220.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0) + '@opentelemetry/otlp-exporter-base': 0.220.0(@opentelemetry/api@1.9.1) + '@opentelemetry/otlp-transformer': 0.220.0(@opentelemetry/api@1.9.1) + '@opentelemetry/resources': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/sdk-logs': 0.220.0(@opentelemetry/api@1.9.1) + '@opentelemetry/sdk-trace-base': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/sdk-trace-web': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/semantic-conventions': 1.43.0 + tslib: 2.9.1 + optionalDependencies: + '@angular/core': link:packages/core + '@angular/router': link:packages/router + transitivePeerDependencies: + - supports-color - '@firebase/data-connect@0.7.3(@firebase/app@0.16.0)': + '@firebase/data-connect@0.7.4(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/auth-interop-types': 0.2.5 - '@firebase/component': 0.7.4 - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/auth-interop-types': 0.2.6 + '@firebase/component': 0.7.5 + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 + tslib: 2.9.1 - '@firebase/database-compat@2.1.6(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0)': + '@firebase/database-compat@2.1.7(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5)': dependencies: - '@firebase/component': 0.7.4 - '@firebase/database': 1.1.4 - '@firebase/database-types': 1.0.21 - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/component': 0.7.5 + '@firebase/database': 1.1.5 + '@firebase/database-types': 1.0.22 + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 + tslib: 2.9.1 optionalDependencies: - '@firebase/app': 0.16.0 - '@firebase/app-compat': 0.5.16 + '@firebase/app': 0.16.5 + '@firebase/app-compat': 0.5.21 - '@firebase/database-types@1.0.21': + '@firebase/database-types@1.0.22': dependencies: - '@firebase/app-types': 0.9.5 - '@firebase/util': 1.15.2 + '@firebase/app-types': 0.9.6 + '@firebase/util': 1.15.3 - '@firebase/database@1.1.4': + '@firebase/database@1.1.5': dependencies: - '@firebase/app-check-interop-types': 0.3.4 - '@firebase/auth-interop-types': 0.2.5 - '@firebase/component': 0.7.4 - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 + '@firebase/app-check-interop-types': 0.3.5 + '@firebase/auth-interop-types': 0.2.6 + '@firebase/component': 0.7.5 + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 faye-websocket: 0.11.4 - tslib: 2.8.1 + tslib: 2.9.1 - '@firebase/firestore-compat@0.4.12(@firebase/app-compat@0.5.16)(@firebase/app-types@0.9.5)(@firebase/app@0.16.0)': + '@firebase/firestore-compat@0.4.17(@firebase/app-compat@0.5.21)(@firebase/app-types@0.9.6)(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/app-compat': 0.5.16 - '@firebase/component': 0.7.4 - '@firebase/firestore': 4.17.0(@firebase/app@0.16.0) - '@firebase/firestore-types': 3.0.4(@firebase/app-types@0.9.5)(@firebase/util@1.15.2) - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/app-compat': 0.5.21 + '@firebase/component': 0.7.5 + '@firebase/firestore': 4.19.1(@firebase/app@0.16.5) + '@firebase/firestore-types': 3.0.5(@firebase/app-types@0.9.6)(@firebase/util@1.15.3) + '@firebase/util': 1.15.3 + tslib: 2.9.1 transitivePeerDependencies: - '@firebase/app-types' - '@firebase/firestore-types@3.0.4(@firebase/app-types@0.9.5)(@firebase/util@1.15.2)': + '@firebase/firestore-types@3.0.5(@firebase/app-types@0.9.6)(@firebase/util@1.15.3)': dependencies: - '@firebase/app-types': 0.9.5 - '@firebase/util': 1.15.2 + '@firebase/app-types': 0.9.6 + '@firebase/util': 1.15.3 - '@firebase/firestore@4.17.0(@firebase/app@0.16.0)': + '@firebase/firestore@4.19.1(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/component': 0.7.4 - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 - '@firebase/webchannel-wrapper': 1.0.6 + '@firebase/app': 0.16.5 + '@firebase/component': 0.7.5 + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 + '@firebase/webchannel-wrapper': 1.0.7 '@grpc/grpc-js': 1.9.16 '@grpc/proto-loader': 0.7.15 - re2js: 2.8.6 - tslib: 2.8.1 - - '@firebase/functions-compat@0.4.6(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0)': - dependencies: - '@firebase/app': 0.16.0 - '@firebase/app-compat': 0.5.16 - '@firebase/component': 0.7.4 - '@firebase/functions': 0.13.6(@firebase/app@0.16.0) - '@firebase/functions-types': 0.6.4 - '@firebase/util': 1.15.2 - tslib: 2.8.1 - - '@firebase/functions-types@0.6.4': {} - - '@firebase/functions@0.13.6(@firebase/app@0.16.0)': - dependencies: - '@firebase/app': 0.16.0 - '@firebase/app-check-interop-types': 0.3.4 - '@firebase/auth-interop-types': 0.2.5 - '@firebase/component': 0.7.4 - '@firebase/messaging-interop-types': 0.2.5 - '@firebase/util': 1.15.2 - tslib: 2.8.1 - - '@firebase/installations-compat@0.2.23(@firebase/app-compat@0.5.16)(@firebase/app-types@0.9.5)(@firebase/app@0.16.0)': - dependencies: - '@firebase/app': 0.16.0 - '@firebase/app-compat': 0.5.16 - '@firebase/component': 0.7.4 - '@firebase/installations': 0.6.23(@firebase/app@0.16.0) - '@firebase/installations-types': 0.5.4(@firebase/app-types@0.9.5) - '@firebase/util': 1.15.2 - tslib: 2.8.1 + re2js: 2.9.1 + tslib: 2.9.1 + + '@firebase/functions-compat@0.5.0(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5)': + dependencies: + '@firebase/app': 0.16.5 + '@firebase/app-compat': 0.5.21 + '@firebase/component': 0.7.5 + '@firebase/functions': 0.14.0(@firebase/app@0.16.5) + '@firebase/functions-types': 0.6.5 + '@firebase/util': 1.15.3 + tslib: 2.9.1 + + '@firebase/functions-types@0.6.5': {} + + '@firebase/functions@0.14.0(@firebase/app@0.16.5)': + dependencies: + '@firebase/app': 0.16.5 + '@firebase/app-check-interop-types': 0.3.5 + '@firebase/auth-interop-types': 0.2.6 + '@firebase/component': 0.7.5 + '@firebase/messaging-interop-types': 0.2.6 + '@firebase/util': 1.15.3 + tslib: 2.9.1 + + '@firebase/installations-compat@0.2.24(@firebase/app-compat@0.5.21)(@firebase/app-types@0.9.6)(@firebase/app@0.16.5)': + dependencies: + '@firebase/app': 0.16.5 + '@firebase/app-compat': 0.5.21 + '@firebase/component': 0.7.5 + '@firebase/installations': 0.6.24(@firebase/app@0.16.5) + '@firebase/installations-types': 0.5.5(@firebase/app-types@0.9.6) + '@firebase/util': 1.15.3 + tslib: 2.9.1 transitivePeerDependencies: - '@firebase/app-types' - '@firebase/installations-types@0.5.4(@firebase/app-types@0.9.5)': + '@firebase/installations-types@0.5.5(@firebase/app-types@0.9.6)': dependencies: - '@firebase/app-types': 0.9.5 + '@firebase/app-types': 0.9.6 - '@firebase/installations@0.6.23(@firebase/app@0.16.0)': + '@firebase/installations@0.6.24(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/component': 0.7.4 - '@firebase/util': 1.15.2 + '@firebase/app': 0.16.5 + '@firebase/component': 0.7.5 + '@firebase/util': 1.15.3 idb: 7.1.1 - tslib: 2.8.1 + tslib: 2.9.1 - '@firebase/logger@0.5.1': + '@firebase/logger@0.5.2': dependencies: - tslib: 2.8.1 + tslib: 2.9.1 - '@firebase/messaging-compat@0.2.28(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0)': + '@firebase/messaging-compat@0.2.30(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/app-compat': 0.5.16 - '@firebase/component': 0.7.4 - '@firebase/messaging': 0.13.1(@firebase/app@0.16.0) - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/app-compat': 0.5.21 + '@firebase/component': 0.7.5 + '@firebase/messaging': 0.13.3(@firebase/app@0.16.5) + '@firebase/util': 1.15.3 + tslib: 2.9.1 - '@firebase/messaging-interop-types@0.2.5': {} + '@firebase/messaging-interop-types@0.2.6': {} - '@firebase/messaging@0.13.1(@firebase/app@0.16.0)': + '@firebase/messaging@0.13.3(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/component': 0.7.4 - '@firebase/installations': 0.6.23(@firebase/app@0.16.0) - '@firebase/messaging-interop-types': 0.2.5 - '@firebase/util': 1.15.2 + '@firebase/app': 0.16.5 + '@firebase/component': 0.7.5 + '@firebase/installations': 0.6.24(@firebase/app@0.16.5) + '@firebase/messaging-interop-types': 0.2.6 + '@firebase/util': 1.15.3 idb: 7.1.1 - tslib: 2.8.1 + tslib: 2.9.1 - '@firebase/performance-compat@0.2.26(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0)': + '@firebase/performance-compat@0.2.27(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/app-compat': 0.5.16 - '@firebase/component': 0.7.4 - '@firebase/logger': 0.5.1 - '@firebase/performance': 0.7.13(@firebase/app@0.16.0) - '@firebase/performance-types': 0.2.4 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/app-compat': 0.5.21 + '@firebase/component': 0.7.5 + '@firebase/logger': 0.5.2 + '@firebase/performance': 0.7.14(@firebase/app@0.16.5) + '@firebase/performance-types': 0.2.5 + '@firebase/util': 1.15.3 + tslib: 2.9.1 - '@firebase/performance-types@0.2.4': {} + '@firebase/performance-types@0.2.5': {} - '@firebase/performance@0.7.13(@firebase/app@0.16.0)': + '@firebase/performance@0.7.14(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/component': 0.7.4 - '@firebase/installations': 0.6.23(@firebase/app@0.16.0) - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/component': 0.7.5 + '@firebase/installations': 0.6.24(@firebase/app@0.16.5) + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 + tslib: 2.9.1 web-vitals: 4.2.4 - '@firebase/remote-config-compat@0.2.28(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0)': - dependencies: - '@firebase/app': 0.16.0 - '@firebase/app-compat': 0.5.16 - '@firebase/component': 0.7.4 - '@firebase/logger': 0.5.1 - '@firebase/remote-config': 0.9.1(@firebase/app@0.16.0) - '@firebase/remote-config-types': 0.5.1 - '@firebase/util': 1.15.2 - tslib: 2.8.1 - - '@firebase/remote-config-types@0.5.1': {} - - '@firebase/remote-config@0.9.1(@firebase/app@0.16.0)': - dependencies: - '@firebase/app': 0.16.0 - '@firebase/component': 0.7.4 - '@firebase/installations': 0.6.23(@firebase/app@0.16.0) - '@firebase/logger': 0.5.1 - '@firebase/util': 1.15.2 - tslib: 2.8.1 - - '@firebase/storage-compat@0.4.4(@firebase/app-compat@0.5.16)(@firebase/app-types@0.9.5)(@firebase/app@0.16.0)': - dependencies: - '@firebase/app': 0.16.0 - '@firebase/app-compat': 0.5.16 - '@firebase/component': 0.7.4 - '@firebase/storage': 0.14.4(@firebase/app@0.16.0) - '@firebase/storage-types': 0.8.4(@firebase/app-types@0.9.5)(@firebase/util@1.15.2) - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/remote-config-compat@0.2.30(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5)': + dependencies: + '@firebase/app': 0.16.5 + '@firebase/app-compat': 0.5.21 + '@firebase/component': 0.7.5 + '@firebase/logger': 0.5.2 + '@firebase/remote-config': 0.9.3(@firebase/app@0.16.5) + '@firebase/remote-config-types': 0.5.2 + '@firebase/util': 1.15.3 + tslib: 2.9.1 + + '@firebase/remote-config-types@0.5.2': {} + + '@firebase/remote-config@0.9.3(@firebase/app@0.16.5)': + dependencies: + '@firebase/app': 0.16.5 + '@firebase/component': 0.7.5 + '@firebase/installations': 0.6.24(@firebase/app@0.16.5) + '@firebase/logger': 0.5.2 + '@firebase/util': 1.15.3 + tslib: 2.9.1 + + '@firebase/storage-compat@0.4.6(@firebase/app-compat@0.5.21)(@firebase/app-types@0.9.6)(@firebase/app@0.16.5)': + dependencies: + '@firebase/app': 0.16.5 + '@firebase/app-compat': 0.5.21 + '@firebase/component': 0.7.5 + '@firebase/storage': 0.14.6(@firebase/app@0.16.5) + '@firebase/storage-types': 0.8.5(@firebase/app-types@0.9.6)(@firebase/util@1.15.3) + '@firebase/util': 1.15.3 + tslib: 2.9.1 transitivePeerDependencies: - '@firebase/app-types' - '@firebase/storage-types@0.8.4(@firebase/app-types@0.9.5)(@firebase/util@1.15.2)': + '@firebase/storage-types@0.8.5(@firebase/app-types@0.9.6)(@firebase/util@1.15.3)': dependencies: - '@firebase/app-types': 0.9.5 - '@firebase/util': 1.15.2 + '@firebase/app-types': 0.9.6 + '@firebase/util': 1.15.3 - '@firebase/storage@0.14.4(@firebase/app@0.16.0)': + '@firebase/storage@0.14.6(@firebase/app@0.16.5)': dependencies: - '@firebase/app': 0.16.0 - '@firebase/component': 0.7.4 - '@firebase/util': 1.15.2 - tslib: 2.8.1 + '@firebase/app': 0.16.5 + '@firebase/component': 0.7.5 + '@firebase/util': 1.15.3 + tslib: 2.9.1 - '@firebase/util@1.15.2': + '@firebase/util@1.15.3': dependencies: - tslib: 2.8.1 + tslib: 2.9.1 - '@firebase/webchannel-wrapper@1.0.6': {} + '@firebase/webchannel-wrapper@1.0.7': {} - '@google-cloud/cloud-sql-connector@1.11.3(supports-color@11.0.0)': + '@google-cloud/cloud-sql-connector@1.12.1(supports-color@11.0.0)': dependencies: - '@googleapis/sqladmin': 37.0.0(supports-color@11.0.0) - gaxios: 7.3.1(supports-color@11.0.0) - google-auth-library: 10.9.1(supports-color@11.0.0) - p-throttle: 8.1.0 + '@google-cloud/sql': 0.25.0(supports-color@11.0.0) + '@googleapis/sqladmin': 38.1.1(supports-color@11.0.0) + '@grpc/grpc-js': 1.14.7 + gaxios: 8.3.2(supports-color@11.0.0) + google-auth-library: 11.3.3(supports-color@11.0.0) + p-throttle: 8.1.1 transitivePeerDependencies: - supports-color @@ -12980,10 +13351,10 @@ snapshots: '@google-cloud/projectify': 5.2.0 '@google-cloud/promisify': 5.1.0 '@grpc/proto-loader': 0.7.15 - '@opentelemetry/api': 1.9.1 - '@opentelemetry/context-async-hooks': 2.10.0(@opentelemetry/api@1.9.1) - '@opentelemetry/core': 2.10.0(@opentelemetry/api@1.9.1) - '@opentelemetry/semantic-conventions': 1.43.0 + '@opentelemetry/api': 1.10.0 + '@opentelemetry/context-async-hooks': 2.12.0(@opentelemetry/api@1.10.0) + '@opentelemetry/core': 2.12.0(@opentelemetry/api@1.10.0) + '@opentelemetry/semantic-conventions': 1.45.0 '@types/big.js': 6.2.2 '@types/stack-trace': 0.0.33 big.js: 7.0.1 @@ -12998,7 +13369,7 @@ snapshots: lodash.snakecase: 4.1.1 merge-stream: 2.0.0 p-queue: 6.6.2 - protobufjs: 7.6.5 + protobufjs: 7.6.6 retry-request: 8.0.4(supports-color@11.0.0) split-array-stream: 2.0.0 stack-trace: 0.0.10 @@ -13008,26 +13379,32 @@ snapshots: transitivePeerDependencies: - supports-color - '@google/genai@2.17.1(@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(supports-color@11.0.0))(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6)': + '@google-cloud/sql@0.25.0(supports-color@11.0.0)': + dependencies: + google-gax: 5.0.8(supports-color@11.0.0) + transitivePeerDependencies: + - supports-color + + '@google/genai@3.1.0(@modelcontextprotocol/sdk@1.32.2(supports-color@11.0.0))(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6)': dependencies: google-auth-library: 10.9.1(supports-color@11.0.0) p-retry: 4.6.2 - protobufjs: 7.6.5 - ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6) + protobufjs: 7.6.6 + ws: 8.22.2(bufferutil@4.2.0)(utf-8-validate@6.0.6) optionalDependencies: - '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@11.0.0) + '@modelcontextprotocol/sdk': 1.32.2(supports-color@11.0.0) transitivePeerDependencies: - bufferutil - supports-color - utf-8-validate - '@googleapis/sqladmin@37.0.0(supports-color@11.0.0)': + '@googleapis/sqladmin@38.1.1(supports-color@11.0.0)': dependencies: - googleapis-common: 8.0.3(supports-color@11.0.0) + googleapis-common: 9.3.1(supports-color@11.0.0) transitivePeerDependencies: - supports-color - '@grpc/grpc-js@1.14.4': + '@grpc/grpc-js@1.14.7': dependencies: '@grpc/proto-loader': 0.8.1 '@js-sdsl/ordered-map': 4.4.2 @@ -13035,20 +13412,20 @@ snapshots: '@grpc/grpc-js@1.9.16': dependencies: '@grpc/proto-loader': 0.7.15 - '@types/node': 24.13.3 + '@types/node': 20.19.43 '@grpc/proto-loader@0.7.15': dependencies: lodash.camelcase: 4.3.0 long: 5.3.2 - protobufjs: 7.6.5 + protobufjs: 7.6.6 yargs: 17.7.3 '@grpc/proto-loader@0.8.1': dependencies: lodash.camelcase: 4.3.0 long: 5.3.2 - protobufjs: 7.6.5 + protobufjs: 7.6.6 yargs: 17.7.3 '@gulpjs/messages@1.1.0': {} @@ -13057,26 +13434,28 @@ snapshots: dependencies: is-negated-glob: 1.0.0 - '@harperfast/extended-iterable@1.0.3': + '@harperfast/extended-iterable@1.0.5': optional: true - '@hono/node-server@2.1.1(hono@4.13.2)': + '@hono/node-server@2.1.6(hono@4.13.17)': dependencies: - hono: 4.13.2 + hono: 4.13.17 '@hutson/parse-repository-url@5.0.0': {} '@iconify/types@2.0.0': {} - '@iconify/utils@3.1.4': + '@iconify/utils@3.1.7': dependencies: - '@antfu/install-pkg': 1.1.0 + '@antfu/install-pkg': 2.1.0 '@iconify/types': 2.0.0 import-meta-resolve: 4.2.0 '@inquirer/ansi@1.0.2': {} - '@inquirer/ansi@2.0.7': {} + '@inquirer/ansi@2.0.10': {} + + '@inquirer/ansi@2.1.0': {} '@inquirer/checkbox@4.3.2(@types/node@20.19.43)': dependencies: @@ -13088,41 +13467,32 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/checkbox@5.2.1(@types/node@20.19.43)': + '@inquirer/checkbox@5.2.8(@types/node@20.19.43)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/core': 11.2.1(@types/node@20.19.43) - '@inquirer/figures': 2.0.7 - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/ansi': 2.0.10 + '@inquirer/core': 12.0.6(@types/node@20.19.43) + '@inquirer/figures': 2.0.10 + '@inquirer/type': 4.2.1(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/checkbox@5.2.1(@types/node@24.13.3)': + '@inquirer/checkbox@5.3.0(@types/node@20.19.43)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/core': 11.2.1(@types/node@24.13.3) - '@inquirer/figures': 2.0.7 - '@inquirer/type': 4.0.7(@types/node@24.13.3) - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/checkbox@5.2.2(@types/node@20.19.43)': - dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/core': 12.0.0(@types/node@20.19.43) - '@inquirer/figures': 2.0.8 - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0(@types/node@20.19.43) + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/checkbox@5.2.2(@types/node@24.13.3)': + '@inquirer/checkbox@5.3.0(@types/node@24.19.2)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/core': 12.0.0(@types/node@24.13.3) - '@inquirer/figures': 2.0.8 - '@inquirer/type': 4.0.7(@types/node@24.13.3) + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@24.19.2) optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/confirm@5.1.21(@types/node@20.19.43)': dependencies: @@ -13131,33 +13501,26 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/confirm@6.1.1(@types/node@20.19.43)': + '@inquirer/confirm@6.3.5(@types/node@20.19.43)': dependencies: - '@inquirer/core': 11.2.1(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.0.6(@types/node@20.19.43) + '@inquirer/type': 4.2.1(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/confirm@6.1.1(@types/node@24.13.3)': - dependencies: - '@inquirer/core': 11.2.1(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/confirm@6.2.0(@types/node@20.19.43)': + '@inquirer/confirm@6.4.0(@types/node@20.19.43)': dependencies: - '@inquirer/core': 12.0.0(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.1.0(@types/node@20.19.43) + '@inquirer/type': 4.3.0(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/confirm@6.2.0(@types/node@24.13.3)': + '@inquirer/confirm@6.4.0(@types/node@24.19.2)': dependencies: - '@inquirer/core': 12.0.0(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/core@10.3.2(@types/node@20.19.43)': dependencies: @@ -13172,11 +13535,11 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/core@11.2.1(@types/node@20.19.43)': + '@inquirer/core@12.0.6(@types/node@20.19.43)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/figures': 2.0.7 - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/ansi': 2.0.10 + '@inquirer/figures': 2.0.10 + '@inquirer/type': 4.2.1(@types/node@20.19.43) cli-width: 4.1.0 fast-wrap-ansi: 0.2.2 mute-stream: 3.0.0 @@ -13184,41 +13547,29 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/core@11.2.1(@types/node@24.13.3)': - dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/figures': 2.0.7 - '@inquirer/type': 4.0.7(@types/node@24.13.3) - cli-width: 4.1.0 - fast-wrap-ansi: 0.2.2 - mute-stream: 3.0.0 - signal-exit: 4.1.0 - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/core@12.0.0(@types/node@20.19.43)': + '@inquirer/core@12.1.0(@types/node@20.19.43)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/figures': 2.0.8 - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@20.19.43) cli-width: 4.1.0 fast-wrap-ansi: 0.2.2 - mute-stream: 3.0.0 + mute-stream: 4.0.0 signal-exit: 4.1.0 optionalDependencies: '@types/node': 20.19.43 - '@inquirer/core@12.0.0(@types/node@24.13.3)': + '@inquirer/core@12.1.0(@types/node@24.19.2)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/figures': 2.0.8 - '@inquirer/type': 4.0.7(@types/node@24.13.3) + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@24.19.2) cli-width: 4.1.0 fast-wrap-ansi: 0.2.2 - mute-stream: 3.0.0 + mute-stream: 4.0.0 signal-exit: 4.1.0 optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/editor@4.2.23(@types/node@20.19.43)': dependencies: @@ -13228,37 +13579,29 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/editor@5.2.2(@types/node@20.19.43)': + '@inquirer/editor@5.3.6(@types/node@20.19.43)': dependencies: - '@inquirer/core': 11.2.1(@types/node@20.19.43) - '@inquirer/external-editor': 3.0.3(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.0.6(@types/node@20.19.43) + '@inquirer/external-editor': 3.0.7(@types/node@20.19.43) + '@inquirer/type': 4.2.1(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/editor@5.2.2(@types/node@24.13.3)': - dependencies: - '@inquirer/core': 11.2.1(@types/node@24.13.3) - '@inquirer/external-editor': 3.0.3(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/editor@5.3.0(@types/node@20.19.43)': + '@inquirer/editor@5.4.0(@types/node@20.19.43)': dependencies: - '@inquirer/core': 12.0.0(@types/node@20.19.43) - '@inquirer/external-editor': 3.0.4(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.1.0(@types/node@20.19.43) + '@inquirer/external-editor': 3.1.0(@types/node@20.19.43) + '@inquirer/type': 4.3.0(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/editor@5.3.0(@types/node@24.13.3)': + '@inquirer/editor@5.4.0(@types/node@24.19.2)': dependencies: - '@inquirer/core': 12.0.0(@types/node@24.13.3) - '@inquirer/external-editor': 3.0.4(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/external-editor': 3.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/expand@4.0.23(@types/node@20.19.43)': dependencies: @@ -13268,33 +13611,26 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/expand@5.1.1(@types/node@20.19.43)': + '@inquirer/expand@5.1.8(@types/node@20.19.43)': dependencies: - '@inquirer/core': 11.2.1(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.0.6(@types/node@20.19.43) + '@inquirer/type': 4.2.1(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/expand@5.1.1(@types/node@24.13.3)': - dependencies: - '@inquirer/core': 11.2.1(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/expand@5.1.2(@types/node@20.19.43)': + '@inquirer/expand@5.2.0(@types/node@20.19.43)': dependencies: - '@inquirer/core': 12.0.0(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.1.0(@types/node@20.19.43) + '@inquirer/type': 4.3.0(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/expand@5.1.2(@types/node@24.13.3)': + '@inquirer/expand@5.2.0(@types/node@24.19.2)': dependencies: - '@inquirer/core': 12.0.0(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/external-editor@1.0.3(@types/node@20.19.43)': dependencies: @@ -13303,39 +13639,32 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/external-editor@3.0.3(@types/node@20.19.43)': + '@inquirer/external-editor@3.0.7(@types/node@20.19.43)': dependencies: chardet: 2.2.0 iconv-lite: 0.7.3 optionalDependencies: '@types/node': 20.19.43 - '@inquirer/external-editor@3.0.3(@types/node@24.13.3)': - dependencies: - chardet: 2.2.0 - iconv-lite: 0.7.3 - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/external-editor@3.0.4(@types/node@20.19.43)': + '@inquirer/external-editor@3.1.0(@types/node@20.19.43)': dependencies: chardet: 2.2.0 iconv-lite: 0.7.3 optionalDependencies: '@types/node': 20.19.43 - '@inquirer/external-editor@3.0.4(@types/node@24.13.3)': + '@inquirer/external-editor@3.1.0(@types/node@24.19.2)': dependencies: chardet: 2.2.0 iconv-lite: 0.7.3 optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/figures@1.0.15': {} - '@inquirer/figures@2.0.7': {} + '@inquirer/figures@2.0.10': {} - '@inquirer/figures@2.0.8': {} + '@inquirer/figures@2.1.0': {} '@inquirer/input@4.3.1(@types/node@20.19.43)': dependencies: @@ -13344,33 +13673,26 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/input@5.1.2(@types/node@20.19.43)': + '@inquirer/input@5.1.9(@types/node@20.19.43)': dependencies: - '@inquirer/core': 11.2.1(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.0.6(@types/node@20.19.43) + '@inquirer/type': 4.2.1(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/input@5.1.2(@types/node@24.13.3)': - dependencies: - '@inquirer/core': 11.2.1(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/input@5.1.3(@types/node@20.19.43)': + '@inquirer/input@5.2.0(@types/node@20.19.43)': dependencies: - '@inquirer/core': 12.0.0(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.1.0(@types/node@20.19.43) + '@inquirer/type': 4.3.0(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/input@5.1.3(@types/node@24.13.3)': + '@inquirer/input@5.2.0(@types/node@24.19.2)': dependencies: - '@inquirer/core': 12.0.0(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/number@3.0.23(@types/node@20.19.43)': dependencies: @@ -13379,33 +13701,26 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/number@4.1.1(@types/node@20.19.43)': + '@inquirer/number@4.2.6(@types/node@20.19.43)': dependencies: - '@inquirer/core': 11.2.1(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.0.6(@types/node@20.19.43) + '@inquirer/type': 4.2.1(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/number@4.1.1(@types/node@24.13.3)': - dependencies: - '@inquirer/core': 11.2.1(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/number@4.2.0(@types/node@20.19.43)': + '@inquirer/number@4.3.0(@types/node@20.19.43)': dependencies: - '@inquirer/core': 12.0.0(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.1.0(@types/node@20.19.43) + '@inquirer/type': 4.3.0(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/number@4.2.0(@types/node@24.13.3)': + '@inquirer/number@4.3.0(@types/node@24.19.2)': dependencies: - '@inquirer/core': 12.0.0(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/password@4.0.23(@types/node@20.19.43)': dependencies: @@ -13415,37 +13730,29 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/password@5.1.1(@types/node@20.19.43)': + '@inquirer/password@5.2.5(@types/node@20.19.43)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/core': 11.2.1(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/ansi': 2.0.10 + '@inquirer/core': 12.0.6(@types/node@20.19.43) + '@inquirer/type': 4.2.1(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/password@5.1.1(@types/node@24.13.3)': + '@inquirer/password@5.3.0(@types/node@20.19.43)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/core': 11.2.1(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/password@5.1.2(@types/node@20.19.43)': - dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/core': 12.0.0(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0(@types/node@20.19.43) + '@inquirer/type': 4.3.0(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/password@5.1.2(@types/node@24.13.3)': + '@inquirer/password@5.3.0(@types/node@24.19.2)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/core': 12.0.0(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/prompts@7.10.1(@types/node@20.19.43)': dependencies: @@ -13462,65 +13769,50 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/prompts@8.5.2(@types/node@20.19.43)': - dependencies: - '@inquirer/checkbox': 5.2.1(@types/node@20.19.43) - '@inquirer/confirm': 6.1.1(@types/node@20.19.43) - '@inquirer/editor': 5.2.2(@types/node@20.19.43) - '@inquirer/expand': 5.1.1(@types/node@20.19.43) - '@inquirer/input': 5.1.2(@types/node@20.19.43) - '@inquirer/number': 4.1.1(@types/node@20.19.43) - '@inquirer/password': 5.1.1(@types/node@20.19.43) - '@inquirer/rawlist': 5.3.1(@types/node@20.19.43) - '@inquirer/search': 4.2.1(@types/node@20.19.43) - '@inquirer/select': 5.2.1(@types/node@20.19.43) + '@inquirer/prompts@8.7.5(@types/node@20.19.43)': + dependencies: + '@inquirer/checkbox': 5.2.8(@types/node@20.19.43) + '@inquirer/confirm': 6.3.5(@types/node@20.19.43) + '@inquirer/editor': 5.3.6(@types/node@20.19.43) + '@inquirer/expand': 5.1.8(@types/node@20.19.43) + '@inquirer/input': 5.1.9(@types/node@20.19.43) + '@inquirer/number': 4.2.6(@types/node@20.19.43) + '@inquirer/password': 5.2.5(@types/node@20.19.43) + '@inquirer/rawlist': 5.3.8(@types/node@20.19.43) + '@inquirer/search': 4.3.6(@types/node@20.19.43) + '@inquirer/select': 5.2.8(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/prompts@8.5.2(@types/node@24.13.3)': - dependencies: - '@inquirer/checkbox': 5.2.1(@types/node@24.13.3) - '@inquirer/confirm': 6.1.1(@types/node@24.13.3) - '@inquirer/editor': 5.2.2(@types/node@24.13.3) - '@inquirer/expand': 5.1.1(@types/node@24.13.3) - '@inquirer/input': 5.1.2(@types/node@24.13.3) - '@inquirer/number': 4.1.1(@types/node@24.13.3) - '@inquirer/password': 5.1.1(@types/node@24.13.3) - '@inquirer/rawlist': 5.3.1(@types/node@24.13.3) - '@inquirer/search': 4.2.1(@types/node@24.13.3) - '@inquirer/select': 5.2.1(@types/node@24.13.3) - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/prompts@8.6.0(@types/node@20.19.43)': - dependencies: - '@inquirer/checkbox': 5.2.2(@types/node@20.19.43) - '@inquirer/confirm': 6.2.0(@types/node@20.19.43) - '@inquirer/editor': 5.3.0(@types/node@20.19.43) - '@inquirer/expand': 5.1.2(@types/node@20.19.43) - '@inquirer/input': 5.1.3(@types/node@20.19.43) - '@inquirer/number': 4.2.0(@types/node@20.19.43) - '@inquirer/password': 5.1.2(@types/node@20.19.43) - '@inquirer/rawlist': 5.3.2(@types/node@20.19.43) - '@inquirer/search': 4.3.0(@types/node@20.19.43) - '@inquirer/select': 5.2.2(@types/node@20.19.43) + '@inquirer/prompts@8.8.0(@types/node@20.19.43)': + dependencies: + '@inquirer/checkbox': 5.3.0(@types/node@20.19.43) + '@inquirer/confirm': 6.4.0(@types/node@20.19.43) + '@inquirer/editor': 5.4.0(@types/node@20.19.43) + '@inquirer/expand': 5.2.0(@types/node@20.19.43) + '@inquirer/input': 5.2.0(@types/node@20.19.43) + '@inquirer/number': 4.3.0(@types/node@20.19.43) + '@inquirer/password': 5.3.0(@types/node@20.19.43) + '@inquirer/rawlist': 5.4.0(@types/node@20.19.43) + '@inquirer/search': 4.4.0(@types/node@20.19.43) + '@inquirer/select': 5.3.0(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/prompts@8.6.0(@types/node@24.13.3)': - dependencies: - '@inquirer/checkbox': 5.2.2(@types/node@24.13.3) - '@inquirer/confirm': 6.2.0(@types/node@24.13.3) - '@inquirer/editor': 5.3.0(@types/node@24.13.3) - '@inquirer/expand': 5.1.2(@types/node@24.13.3) - '@inquirer/input': 5.1.3(@types/node@24.13.3) - '@inquirer/number': 4.2.0(@types/node@24.13.3) - '@inquirer/password': 5.1.2(@types/node@24.13.3) - '@inquirer/rawlist': 5.3.2(@types/node@24.13.3) - '@inquirer/search': 4.3.0(@types/node@24.13.3) - '@inquirer/select': 5.2.2(@types/node@24.13.3) + '@inquirer/prompts@8.8.0(@types/node@24.19.2)': + dependencies: + '@inquirer/checkbox': 5.3.0(@types/node@24.19.2) + '@inquirer/confirm': 6.4.0(@types/node@24.19.2) + '@inquirer/editor': 5.4.0(@types/node@24.19.2) + '@inquirer/expand': 5.2.0(@types/node@24.19.2) + '@inquirer/input': 5.2.0(@types/node@24.19.2) + '@inquirer/number': 4.3.0(@types/node@24.19.2) + '@inquirer/password': 5.3.0(@types/node@24.19.2) + '@inquirer/rawlist': 5.4.0(@types/node@24.19.2) + '@inquirer/search': 4.4.0(@types/node@24.19.2) + '@inquirer/select': 5.3.0(@types/node@24.19.2) optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/rawlist@4.1.11(@types/node@20.19.43)': dependencies: @@ -13530,33 +13822,26 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/rawlist@5.3.1(@types/node@20.19.43)': + '@inquirer/rawlist@5.3.8(@types/node@20.19.43)': dependencies: - '@inquirer/core': 11.2.1(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.0.6(@types/node@20.19.43) + '@inquirer/type': 4.2.1(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/rawlist@5.3.1(@types/node@24.13.3)': + '@inquirer/rawlist@5.4.0(@types/node@20.19.43)': dependencies: - '@inquirer/core': 11.2.1(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/rawlist@5.3.2(@types/node@20.19.43)': - dependencies: - '@inquirer/core': 12.0.0(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.1.0(@types/node@20.19.43) + '@inquirer/type': 4.3.0(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/rawlist@5.3.2(@types/node@24.13.3)': + '@inquirer/rawlist@5.4.0(@types/node@24.19.2)': dependencies: - '@inquirer/core': 12.0.0(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/search@3.2.2(@types/node@20.19.43)': dependencies: @@ -13567,37 +13852,29 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/search@4.2.1(@types/node@20.19.43)': + '@inquirer/search@4.3.6(@types/node@20.19.43)': dependencies: - '@inquirer/core': 11.2.1(@types/node@20.19.43) - '@inquirer/figures': 2.0.7 - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.0.6(@types/node@20.19.43) + '@inquirer/figures': 2.0.10 + '@inquirer/type': 4.2.1(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/search@4.2.1(@types/node@24.13.3)': - dependencies: - '@inquirer/core': 11.2.1(@types/node@24.13.3) - '@inquirer/figures': 2.0.7 - '@inquirer/type': 4.0.7(@types/node@24.13.3) - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/search@4.3.0(@types/node@20.19.43)': + '@inquirer/search@4.4.0(@types/node@20.19.43)': dependencies: - '@inquirer/core': 12.0.0(@types/node@20.19.43) - '@inquirer/figures': 2.0.8 - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/core': 12.1.0(@types/node@20.19.43) + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/search@4.3.0(@types/node@24.13.3)': + '@inquirer/search@4.4.0(@types/node@24.19.2)': dependencies: - '@inquirer/core': 12.0.0(@types/node@24.13.3) - '@inquirer/figures': 2.0.8 - '@inquirer/type': 4.0.7(@types/node@24.13.3) + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@24.19.2) optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/select@4.4.2(@types/node@20.19.43)': dependencies: @@ -13609,53 +13886,52 @@ snapshots: optionalDependencies: '@types/node': 20.19.43 - '@inquirer/select@5.2.1(@types/node@20.19.43)': + '@inquirer/select@5.2.8(@types/node@20.19.43)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/core': 11.2.1(@types/node@20.19.43) - '@inquirer/figures': 2.0.7 - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/ansi': 2.0.10 + '@inquirer/core': 12.0.6(@types/node@20.19.43) + '@inquirer/figures': 2.0.10 + '@inquirer/type': 4.2.1(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/select@5.2.1(@types/node@24.13.3)': - dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/core': 11.2.1(@types/node@24.13.3) - '@inquirer/figures': 2.0.7 - '@inquirer/type': 4.0.7(@types/node@24.13.3) - optionalDependencies: - '@types/node': 24.13.3 - - '@inquirer/select@5.2.2(@types/node@20.19.43)': + '@inquirer/select@5.3.0(@types/node@20.19.43)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/core': 12.0.0(@types/node@20.19.43) - '@inquirer/figures': 2.0.8 - '@inquirer/type': 4.0.7(@types/node@20.19.43) + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0(@types/node@20.19.43) + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@20.19.43) optionalDependencies: '@types/node': 20.19.43 - '@inquirer/select@5.2.2(@types/node@24.13.3)': + '@inquirer/select@5.3.0(@types/node@24.19.2)': dependencies: - '@inquirer/ansi': 2.0.7 - '@inquirer/core': 12.0.0(@types/node@24.13.3) - '@inquirer/figures': 2.0.8 - '@inquirer/type': 4.0.7(@types/node@24.13.3) + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@24.19.2) optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@inquirer/type@3.0.10(@types/node@20.19.43)': optionalDependencies: '@types/node': 20.19.43 - '@inquirer/type@4.0.7(@types/node@20.19.43)': + '@inquirer/type@4.2.1(@types/node@20.19.43)': + optionalDependencies: + '@types/node': 20.19.43 + + '@inquirer/type@4.2.1(@types/node@24.19.2)': + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/type@4.3.0(@types/node@20.19.43)': optionalDependencies: '@types/node': 20.19.43 - '@inquirer/type@4.0.7(@types/node@24.13.3)': + '@inquirer/type@4.3.0(@types/node@24.19.2)': optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@isaacs/cliui@8.0.2': dependencies: @@ -13672,56 +13948,58 @@ snapshots: dependencies: minipass: 7.1.3 + '@isaacs/nonrecursive-glob-match@1.1.0': {} + '@istanbuljs/load-nyc-config@1.1.0': dependencies: camelcase: 5.3.1 find-up: 4.1.0 get-package-type: 0.1.0 - js-yaml: 3.15.1 + js-yaml: 3.15.2 resolve-from: 5.0.0 '@istanbuljs/schema@0.1.6': {} '@jasminejs/reporters@1.1.0': {} - '@jest/console@30.4.1': + '@jest/console@30.5.2': dependencies: - '@jest/types': 30.4.1 - '@types/node': 24.13.3 + '@jest/types': 30.5.1 + '@types/node': 24.19.2 chalk: 4.1.2 - jest-message-util: 30.4.1 - jest-util: 30.4.1 + jest-message-util: 30.5.1 + jest-util: 30.5.1 slash: 3.0.0 - '@jest/core@30.4.2(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.13.3)(typescript@6.0.3))': + '@jest/core@30.5.2(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.19.2)(typescript@6.0.3))': dependencies: - '@jest/console': 30.4.1 - '@jest/pattern': 30.4.0 - '@jest/reporters': 30.4.1(supports-color@11.0.0) - '@jest/test-result': 30.4.1 - '@jest/transform': 30.4.1(supports-color@11.0.0) - '@jest/types': 30.4.1 - '@types/node': 24.13.3 + '@jest/console': 30.5.2 + '@jest/pattern': 30.5.0 + '@jest/reporters': 30.5.2(supports-color@11.0.0) + '@jest/test-result': 30.5.2 + '@jest/transform': 30.5.2(supports-color@11.0.0) + '@jest/types': 30.5.1 + '@types/node': 24.19.2 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 4.4.0 exit-x: 0.2.2 fast-json-stable-stringify: 2.1.0 graceful-fs: 4.2.11 - jest-changed-files: 30.4.1 - jest-config: 30.4.2(@types/node@24.13.3)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.13.3)(typescript@6.0.3)) - jest-haste-map: 30.4.1 - jest-message-util: 30.4.1 - jest-regex-util: 30.4.0 - jest-resolve: 30.4.1 - jest-resolve-dependencies: 30.4.2(supports-color@11.0.0) - jest-runner: 30.4.2(supports-color@11.0.0) - jest-runtime: 30.4.2(supports-color@11.0.0) - jest-snapshot: 30.4.1(supports-color@11.0.0) - jest-util: 30.4.1 - jest-validate: 30.4.1 - jest-watcher: 30.4.1 - pretty-format: 30.4.1 + jest-changed-files: 30.5.1 + jest-config: 30.5.2(@types/node@24.19.2)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.19.2)(typescript@6.0.3)) + jest-haste-map: 30.5.1 + jest-message-util: 30.5.1 + jest-regex-util: 30.5.0 + jest-resolve: 30.5.1 + jest-resolve-dependencies: 30.5.2(supports-color@11.0.0) + jest-runner: 30.5.2(supports-color@11.0.0) + jest-runtime: 30.5.2(supports-color@11.0.0) + jest-snapshot: 30.5.2(supports-color@11.0.0) + jest-util: 30.5.1 + jest-validate: 30.5.1 + jest-watcher: 30.5.2 + pretty-format: 30.5.1 slash: 3.0.0 transitivePeerDependencies: - babel-plugin-macros @@ -13729,153 +14007,159 @@ snapshots: - supports-color - ts-node - '@jest/diff-sequences@30.4.0': {} + '@jest/diff-sequences@30.5.0': {} - '@jest/environment-jsdom-abstract@30.4.1(jsdom@26.1.0(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6))': + '@jest/environment-jsdom-abstract@30.5.2(@types/jsdom@21.1.7)(jsdom@26.1.0(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6))': dependencies: - '@jest/environment': 30.4.1 - '@jest/fake-timers': 30.4.1 - '@jest/types': 30.4.1 + '@jest/environment': 30.5.2 + '@jest/fake-timers': 30.5.2 + '@jest/types': 30.5.1 '@types/jsdom': 21.1.7 - '@types/node': 24.13.3 - jest-mock: 30.4.1 - jest-util: 30.4.1 - jsdom: 26.1.0(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) + '@types/node': 24.19.2 + jest-mock: 30.5.2 + jest-util: 30.5.1 + jsdom: 26.1.0(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) - '@jest/environment@30.4.1': + '@jest/environment@30.5.2': dependencies: - '@jest/fake-timers': 30.4.1 - '@jest/types': 30.4.1 - '@types/node': 24.13.3 - jest-mock: 30.4.1 + '@jest/fake-timers': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.19.2 + jest-mock: 30.5.2 - '@jest/expect-utils@30.4.1': + '@jest/expect-utils@30.5.2': dependencies: - '@jest/get-type': 30.1.0 + '@jest/get-type': 30.5.0 - '@jest/expect@30.4.1(supports-color@11.0.0)': + '@jest/expect@30.5.2(supports-color@11.0.0)': dependencies: - expect: 30.4.1 - jest-snapshot: 30.4.1(supports-color@11.0.0) + expect: 30.5.2 + jest-snapshot: 30.5.2(supports-color@11.0.0) transitivePeerDependencies: - supports-color - '@jest/fake-timers@30.4.1': + '@jest/fake-timers@30.5.2': dependencies: - '@jest/types': 30.4.1 + '@jest/types': 30.5.1 '@sinonjs/fake-timers': 15.4.0 - '@types/node': 24.13.3 - jest-message-util: 30.4.1 - jest-mock: 30.4.1 - jest-util: 30.4.1 + '@types/node': 24.19.2 + jest-message-util: 30.5.1 + jest-mock: 30.5.2 + jest-util: 30.5.1 - '@jest/get-type@30.1.0': {} + '@jest/get-type@30.5.0': {} - '@jest/globals@30.4.1(supports-color@11.0.0)': + '@jest/globals@30.5.2(supports-color@11.0.0)': dependencies: - '@jest/environment': 30.4.1 - '@jest/expect': 30.4.1(supports-color@11.0.0) - '@jest/types': 30.4.1 - jest-mock: 30.4.1 + '@jest/environment': 30.5.2 + '@jest/expect': 30.5.2(supports-color@11.0.0) + '@jest/types': 30.5.1 + jest-mock: 30.5.2 transitivePeerDependencies: - supports-color - '@jest/pattern@30.4.0': + '@jest/pattern@30.5.0': dependencies: - '@types/node': 24.13.3 - jest-regex-util: 30.4.0 + '@types/node': 24.19.2 + jest-regex-util: 30.5.0 - '@jest/reporters@30.4.1(supports-color@11.0.0)': + '@jest/reporters@30.5.2(supports-color@11.0.0)': dependencies: '@bcoe/v8-coverage': 0.2.3 - '@jest/console': 30.4.1 - '@jest/test-result': 30.4.1 - '@jest/transform': 30.4.1(supports-color@11.0.0) - '@jest/types': 30.4.1 + '@jest/console': 30.5.2 + '@jest/test-result': 30.5.2 + '@jest/transform': 30.5.2(supports-color@11.0.0) + '@jest/types': 30.5.1 '@jridgewell/trace-mapping': 0.3.31 - '@types/node': 24.13.3 + '@types/node': 24.19.2 chalk: 4.1.2 collect-v8-coverage: 1.0.3 exit-x: 0.2.2 - glob: 10.5.0 + glob: 13.0.7 graceful-fs: 4.2.11 istanbul-lib-coverage: 3.2.2 istanbul-lib-instrument: 6.0.3(supports-color@11.0.0) istanbul-lib-report: 3.0.1 istanbul-lib-source-maps: 5.0.6(supports-color@11.0.0) istanbul-reports: 3.2.0 - jest-message-util: 30.4.1 - jest-util: 30.4.1 - jest-worker: 30.4.1 + jest-message-util: 30.5.1 + jest-util: 30.5.1 + jest-worker: 30.5.1 slash: 3.0.0 string-length: 4.0.2 v8-to-istanbul: 9.3.0 transitivePeerDependencies: - supports-color - '@jest/schemas@30.4.1': + '@jest/schemas@30.5.0': dependencies: '@sinclair/typebox': 0.34.52 - '@jest/snapshot-utils@30.4.1': + '@jest/snapshot-utils@30.5.1': dependencies: - '@jest/types': 30.4.1 + '@jest/types': 30.5.1 chalk: 4.1.2 graceful-fs: 4.2.11 natural-compare: 1.4.0 - '@jest/source-map@30.0.1': + '@jest/source-map@30.5.2': dependencies: '@jridgewell/trace-mapping': 0.3.31 callsites: 3.1.0 + convert-source-map: 2.0.0 graceful-fs: 4.2.11 - '@jest/test-result@30.4.1': + '@jest/test-result@30.5.2': dependencies: - '@jest/console': 30.4.1 - '@jest/types': 30.4.1 + '@jest/console': 30.5.2 + '@jest/types': 30.5.1 '@types/istanbul-lib-coverage': 2.0.6 collect-v8-coverage: 1.0.3 - '@jest/test-sequencer@30.4.1': + '@jest/test-sequencer@30.5.2': dependencies: - '@jest/test-result': 30.4.1 + '@jest/test-result': 30.5.2 graceful-fs: 4.2.11 - jest-haste-map: 30.4.1 + jest-haste-map: 30.5.1 slash: 3.0.0 - '@jest/transform@30.4.1(supports-color@11.0.0)': + '@jest/transform@30.5.2(supports-color@11.0.0)': dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) - '@jest/types': 30.4.1 + '@babel/core': 7.29.13(supports-color@11.0.0) + '@jest/types': 30.5.1 '@jridgewell/trace-mapping': 0.3.31 - babel-plugin-istanbul: 7.0.1(supports-color@11.0.0) + babel-plugin-istanbul: 8.0.0(supports-color@11.0.0) chalk: 4.1.2 convert-source-map: 2.0.0 fast-json-stable-stringify: 2.1.0 graceful-fs: 4.2.11 - jest-haste-map: 30.4.1 - jest-regex-util: 30.4.0 - jest-util: 30.4.1 + jest-haste-map: 30.5.1 + jest-regex-util: 30.5.0 + jest-util: 30.5.1 pirates: 4.0.7 slash: 3.0.0 write-file-atomic: 5.0.1 transitivePeerDependencies: - supports-color - '@jest/types@30.4.1': + '@jest/types@30.5.1': dependencies: - '@jest/pattern': 30.4.0 - '@jest/schemas': 30.4.1 + '@jest/pattern': 30.5.0 + '@jest/schemas': 30.5.0 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@types/yargs': 17.0.35 chalk: 4.1.2 '@jridgewell/gen-mapping@0.3.13': dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.6.0 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/gen-mapping@0.4.0-beta.0': + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 '@jridgewell/trace-mapping': 0.3.31 '@jridgewell/remapping@2.3.5': @@ -13885,118 +14169,106 @@ snapshots: '@jridgewell/resolve-uri@3.1.2': {} - '@jridgewell/sourcemap-codec@1.5.5': {} + '@jridgewell/sourcemap-codec@1.6.0': {} '@jridgewell/trace-mapping@0.3.31': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.6.0 '@jridgewell/trace-mapping@0.3.9': dependencies: '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.6.0 '@js-sdsl/ordered-map@4.4.2': {} '@jsdevtools/ono@7.1.3': {} - '@lezer/common@1.5.2': {} + '@lezer/common@1.5.5': {} - '@lezer/css@1.3.6': + '@lezer/css@1.3.9': dependencies: - '@lezer/common': 1.5.2 - '@lezer/highlight': 1.2.3 - '@lezer/lr': 1.4.10 + '@lezer/common': 1.5.5 + '@lezer/highlight': 1.2.5 + '@lezer/lr': 1.4.12 - '@lezer/highlight@1.2.3': + '@lezer/highlight@1.2.5': dependencies: - '@lezer/common': 1.5.2 + '@lezer/common': 1.5.5 '@lezer/html@1.3.13': dependencies: - '@lezer/common': 1.5.2 - '@lezer/highlight': 1.2.3 - '@lezer/lr': 1.4.10 + '@lezer/common': 1.5.5 + '@lezer/highlight': 1.2.5 + '@lezer/lr': 1.4.12 - '@lezer/javascript@1.5.4': + '@lezer/javascript@1.5.6': dependencies: - '@lezer/common': 1.5.2 - '@lezer/highlight': 1.2.3 - '@lezer/lr': 1.4.10 + '@lezer/common': 1.5.5 + '@lezer/highlight': 1.2.5 + '@lezer/lr': 1.4.12 - '@lezer/lr@1.4.10': + '@lezer/lr@1.4.12': dependencies: - '@lezer/common': 1.5.2 + '@lezer/common': 1.5.5 '@lezer/sass@1.1.0': dependencies: - '@lezer/common': 1.5.2 - '@lezer/highlight': 1.2.3 - '@lezer/lr': 1.4.10 + '@lezer/common': 1.5.5 + '@lezer/highlight': 1.2.5 + '@lezer/lr': 1.4.12 - '@listr2/prompt-adapter-inquirer@4.2.5(@inquirer/prompts@8.6.0(@types/node@20.19.43))(@types/node@20.19.43)(listr2@11.0.0)': + '@listr2/prompt-adapter-inquirer@4.3.4(@inquirer/prompts@8.8.0(@types/node@20.19.43))(@types/node@20.19.43)(listr2@11.4.1)': dependencies: - '@inquirer/prompts': 8.6.0(@types/node@20.19.43) - '@inquirer/type': 4.0.7(@types/node@20.19.43) - listr2: 11.0.0 + '@inquirer/prompts': 8.8.0(@types/node@20.19.43) + '@inquirer/type': 4.2.1(@types/node@20.19.43) + listr2: 11.4.1 transitivePeerDependencies: - '@types/node' - '@listr2/prompt-adapter-inquirer@4.2.5(@inquirer/prompts@8.6.0(@types/node@24.13.3))(@types/node@24.13.3)(listr2@11.0.0)': + '@listr2/prompt-adapter-inquirer@4.3.4(@inquirer/prompts@8.8.0(@types/node@24.19.2))(@types/node@24.19.2)(listr2@11.4.1)': dependencies: - '@inquirer/prompts': 8.6.0(@types/node@24.13.3) - '@inquirer/type': 4.0.7(@types/node@24.13.3) - listr2: 11.0.0 + '@inquirer/prompts': 8.8.0(@types/node@24.19.2) + '@inquirer/type': 4.2.1(@types/node@24.19.2) + listr2: 11.4.1 transitivePeerDependencies: - '@types/node' - '@lmdb/lmdb-darwin-arm64@3.5.6': + '@lmdb/lmdb-darwin-arm64@3.5.9': optional: true - '@lmdb/lmdb-darwin-x64@3.5.6': + '@lmdb/lmdb-darwin-x64@3.5.9': optional: true - '@lmdb/lmdb-linux-arm64@3.5.6': + '@lmdb/lmdb-linux-arm64@3.5.9': optional: true - '@lmdb/lmdb-linux-arm@3.5.6': + '@lmdb/lmdb-linux-arm@3.5.9': optional: true - '@lmdb/lmdb-linux-x64@3.5.6': + '@lmdb/lmdb-linux-x64@3.5.9': optional: true - '@lmdb/lmdb-win32-arm64@3.5.6': + '@lmdb/lmdb-win32-arm64@3.5.9': optional: true - '@lmdb/lmdb-win32-x64@3.5.6': + '@lmdb/lmdb-win32-x64@3.5.9': optional: true '@marijn/find-cluster-break@1.0.4': {} - '@mcp-b/webmcp-polyfill@4.0.0': - dependencies: - '@cfworker/json-schema': 4.1.1 - '@mcp-b/webmcp-types': 4.0.0 - '@standard-schema/spec': 1.1.0 - - '@mcp-b/webmcp-types@4.0.0': {} - - '@mermaid-js/parser@1.2.0': - dependencies: - '@chevrotain/types': 11.1.2 - - '@mermaid-js/parser@1.2.1': + '@mermaid-js/parser@2.0.1': dependencies: - '@chevrotain/types': 11.1.2 + '@chevrotain/types': 13.2.0 - '@modelcontextprotocol/core@2.0.0': + '@modelcontextprotocol/core@2.4.0': dependencies: - zod: 4.4.3 + zod: 4.6.7 - '@modelcontextprotocol/sdk@1.30.0(@cfworker/json-schema@4.1.1)(supports-color@11.0.0)': + '@modelcontextprotocol/sdk@1.32.2(supports-color@11.0.0)': dependencies: - '@hono/node-server': 2.1.1(hono@4.13.2) + '@hono/node-server': 2.1.6(hono@4.13.17) ajv: 8.20.0 ajv-formats: 3.0.1 content-type: 1.0.5 @@ -14004,55 +14276,103 @@ snapshots: cross-spawn: 7.0.6 eventsource: 3.0.7 eventsource-parser: 3.1.1 - express: 5.2.1(supports-color@11.0.0) - express-rate-limit: 8.6.2(express@5.2.1(supports-color@11.0.0))(supports-color@11.0.0) - hono: 4.13.2 - jose: 6.2.9 + express: 5.3.0(supports-color@11.0.0) + express-rate-limit: 8.7.3(express@5.3.0(supports-color@11.0.0))(supports-color@11.0.0) + hono: 4.13.17 + jose: 6.2.16 json-schema-typed: 8.0.2 pkce-challenge: 5.0.1 raw-body: 3.0.2 - zod: 4.4.3 - zod-to-json-schema: 3.25.2(zod@4.4.3) - optionalDependencies: - '@cfworker/json-schema': 4.1.1 + zod: 4.6.7 + zod-to-json-schema: 3.25.2(zod@4.6.7) transitivePeerDependencies: - supports-color - '@modelcontextprotocol/server@2.0.0': + '@modelcontextprotocol/server@2.4.0': dependencies: - '@modelcontextprotocol/core': 2.0.0 - zod: 4.4.3 + '@modelcontextprotocol/core': 2.4.0 + zod: 4.6.7 - '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.4': + '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.7': optional: true - '@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.4': + '@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.7': optional: true - '@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.4': + '@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.7': optional: true - '@msgpackr-extract/msgpackr-extract-linux-arm@3.0.4': + '@msgpackr-extract/msgpackr-extract-linux-arm@3.0.7': optional: true - '@msgpackr-extract/msgpackr-extract-linux-x64@3.0.4': + '@msgpackr-extract/msgpackr-extract-linux-x64@3.0.7': optional: true - '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.4': + '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.7': optional: true - '@mswjs/interceptors@0.41.9': + '@mswjs/interceptors@0.45.11(supports-color@11.0.0)': dependencies: - '@open-draft/deferred-promise': 2.2.0 - '@open-draft/logger': 0.3.0 - '@open-draft/until': 2.1.0 + '@open-draft/until': 3.0.1 + '@types/debug': 4.1.13 + debug: 4.4.3(supports-color@11.0.0) is-node-process: 1.2.0 outvariant: 1.4.3 - strict-event-emitter: 0.5.1 + rettime: 0.11.12 + transitivePeerDependencies: + - supports-color + + '@napi-rs/keyring-darwin-arm64@1.3.0': + optional: true + + '@napi-rs/keyring-darwin-x64@1.3.0': + optional: true + + '@napi-rs/keyring-freebsd-x64@1.3.0': + optional: true + + '@napi-rs/keyring-linux-arm-gnueabihf@1.3.0': + optional: true + + '@napi-rs/keyring-linux-arm64-gnu@1.3.0': + optional: true + + '@napi-rs/keyring-linux-arm64-musl@1.3.0': + optional: true + + '@napi-rs/keyring-linux-riscv64-gnu@1.3.0': + optional: true + + '@napi-rs/keyring-linux-x64-gnu@1.3.0': + optional: true + + '@napi-rs/keyring-linux-x64-musl@1.3.0': + optional: true + + '@napi-rs/keyring-win32-arm64-msvc@1.3.0': + optional: true + + '@napi-rs/keyring-win32-ia32-msvc@1.3.0': + optional: true - '@napi-rs/lzma-linux-x64-gnu@1.5.1': + '@napi-rs/keyring-win32-x64-msvc@1.3.0': optional: true + '@napi-rs/keyring@1.3.0': + optionalDependencies: + '@napi-rs/keyring-darwin-arm64': 1.3.0 + '@napi-rs/keyring-darwin-x64': 1.3.0 + '@napi-rs/keyring-freebsd-x64': 1.3.0 + '@napi-rs/keyring-linux-arm-gnueabihf': 1.3.0 + '@napi-rs/keyring-linux-arm64-gnu': 1.3.0 + '@napi-rs/keyring-linux-arm64-musl': 1.3.0 + '@napi-rs/keyring-linux-riscv64-gnu': 1.3.0 + '@napi-rs/keyring-linux-x64-gnu': 1.3.0 + '@napi-rs/keyring-linux-x64-musl': 1.3.0 + '@napi-rs/keyring-win32-arm64-msvc': 1.3.0 + '@napi-rs/keyring-win32-ia32-msvc': 1.3.0 + '@napi-rs/keyring-win32-x64-msvc': 1.3.0 + '@napi-rs/nice-android-arm-eabi@1.1.1': optional: true @@ -14125,11 +14445,18 @@ snapshots: '@napi-rs/nice-win32-x64-msvc': 1.1.1 optional: true - '@napi-rs/wasm-runtime@1.2.3(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0)': + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.4 + optional: true + + '@napi-rs/wasm-runtime@1.2.7(@emnapi/core@2.0.0-alpha.6)(@emnapi/runtime@2.0.0-alpha.6)': dependencies: - '@emnapi/core': 1.10.0 - '@emnapi/runtime': 1.10.0 - '@tybys/wasm-util': 0.10.3 + '@emnapi/core': 2.0.0-alpha.6 + '@emnapi/runtime': 2.0.0-alpha.6 + '@tybys/wasm-util': 0.10.4 optional: true '@nodelib/fs.scandir@2.1.5': @@ -14142,126 +14469,123 @@ snapshots: '@nodelib/fs.walk@1.2.8': dependencies: '@nodelib/fs.scandir': 2.1.5 - fastq: 1.20.1 + fastq: 1.20.3 - '@octokit/auth-app@8.3.0': + '@octokit/auth-app@8.3.1': dependencies: - '@octokit/auth-oauth-app': 9.0.4 - '@octokit/auth-oauth-user': 6.0.3 - '@octokit/request': 10.0.13 - '@octokit/request-error': 7.1.1 - '@octokit/types': 17.0.0 + '@octokit/auth-oauth-app': 9.0.5 + '@octokit/auth-oauth-user': 6.0.4 + '@octokit/request': 10.0.16 + '@octokit/request-error': 7.1.2 + '@octokit/types': 18.0.0 toad-cache: 3.7.4 universal-github-app-jwt: 2.2.2 universal-user-agent: 7.0.3 - '@octokit/auth-oauth-app@9.0.4': + '@octokit/auth-oauth-app@9.0.5': dependencies: - '@octokit/auth-oauth-device': 8.0.4 - '@octokit/auth-oauth-user': 6.0.3 - '@octokit/request': 10.0.13 - '@octokit/types': 17.0.0 + '@octokit/auth-oauth-device': 8.0.5 + '@octokit/auth-oauth-user': 6.0.4 + '@octokit/request': 10.0.16 + '@octokit/types': 18.0.0 universal-user-agent: 7.0.3 - '@octokit/auth-oauth-device@8.0.4': + '@octokit/auth-oauth-device@8.0.5': dependencies: - '@octokit/oauth-methods': 6.0.4 - '@octokit/request': 10.0.13 - '@octokit/types': 17.0.0 + '@octokit/oauth-methods': 6.0.5 + '@octokit/request': 10.0.16 + '@octokit/types': 18.0.0 universal-user-agent: 7.0.3 - '@octokit/auth-oauth-user@6.0.3': + '@octokit/auth-oauth-user@6.0.4': dependencies: - '@octokit/auth-oauth-device': 8.0.4 - '@octokit/oauth-methods': 6.0.4 - '@octokit/request': 10.0.13 - '@octokit/types': 17.0.0 + '@octokit/auth-oauth-device': 8.0.5 + '@octokit/oauth-methods': 6.0.5 + '@octokit/request': 10.0.16 + '@octokit/types': 18.0.0 universal-user-agent: 7.0.3 '@octokit/auth-token@6.0.0': {} - '@octokit/core@7.0.7': + '@octokit/core@7.0.8': dependencies: '@octokit/auth-token': 6.0.0 - '@octokit/graphql': 9.0.4 - '@octokit/request': 10.0.13 - '@octokit/request-error': 7.1.1 - '@octokit/types': 17.0.0 + '@octokit/graphql': 9.0.5 + '@octokit/request': 10.0.16 + '@octokit/request-error': 7.1.2 + '@octokit/types': 18.0.0 before-after-hook: 4.0.0 universal-user-agent: 7.0.3 - '@octokit/endpoint@11.0.4': + '@octokit/endpoint@11.0.5': dependencies: - '@octokit/types': 17.0.0 + '@octokit/types': 18.0.0 universal-user-agent: 7.0.3 '@octokit/graphql-schema@15.26.1': dependencies: - graphql: 16.14.2 - graphql-tag: 2.12.7(graphql@16.14.2) + graphql: 16.15.0 + graphql-tag: 2.12.7(graphql@16.15.0) - '@octokit/graphql@9.0.4': + '@octokit/graphql@9.0.5': dependencies: - '@octokit/request': 10.0.13 - '@octokit/types': 17.0.0 + '@octokit/request': 10.0.16 + '@octokit/types': 18.0.0 universal-user-agent: 7.0.3 '@octokit/oauth-authorization-url@8.0.0': {} - '@octokit/oauth-methods@6.0.4': + '@octokit/oauth-methods@6.0.5': dependencies: '@octokit/oauth-authorization-url': 8.0.0 - '@octokit/request': 10.0.13 - '@octokit/request-error': 7.1.1 - '@octokit/types': 17.0.0 + '@octokit/request': 10.0.16 + '@octokit/request-error': 7.1.2 + '@octokit/types': 18.0.0 '@octokit/openapi-types@27.0.0': {} '@octokit/openapi-types@28.0.0': {} - '@octokit/plugin-paginate-rest@14.0.0(@octokit/core@7.0.7)': - dependencies: - '@octokit/core': 7.0.7 - '@octokit/types': 16.0.0 + '@octokit/openapi-types@29.0.1': {} - '@octokit/plugin-paginate-rest@15.0.0(@octokit/core@7.0.7)': + '@octokit/plugin-paginate-rest@14.0.0(@octokit/core@7.0.8)': dependencies: - '@octokit/core': 7.0.7 - '@octokit/types': 17.0.0 + '@octokit/core': 7.0.8 + '@octokit/types': 16.0.0 - '@octokit/plugin-request-log@6.0.0(@octokit/core@7.0.7)': + '@octokit/plugin-request-log@6.0.0(@octokit/core@7.0.8)': dependencies: - '@octokit/core': 7.0.7 + '@octokit/core': 7.0.8 - '@octokit/plugin-rest-endpoint-methods@17.0.0(@octokit/core@7.0.7)': + '@octokit/plugin-rest-endpoint-methods@17.0.0(@octokit/core@7.0.8)': dependencies: - '@octokit/core': 7.0.7 + '@octokit/core': 7.0.8 '@octokit/types': 16.0.0 - '@octokit/plugin-rest-endpoint-methods@18.0.0(@octokit/core@7.0.7)': + '@octokit/plugin-rest-endpoint-methods@18.0.0(@octokit/core@7.0.8)': dependencies: - '@octokit/core': 7.0.7 + '@octokit/core': 7.0.8 '@octokit/types': 17.0.0 - '@octokit/request-error@7.1.1': + '@octokit/request-error@7.1.2': dependencies: - '@octokit/types': 17.0.0 + '@octokit/types': 18.0.0 - '@octokit/request@10.0.13': + '@octokit/request@10.0.16': dependencies: - '@octokit/endpoint': 11.0.4 - '@octokit/request-error': 7.1.1 - '@octokit/types': 17.0.0 - content-type: 2.1.0 + '@octokit/endpoint': 11.0.5 + '@octokit/request-error': 7.1.2 + '@octokit/types': 18.0.0 + content-type: 3.1.1 json-with-bigint: 3.5.12 universal-user-agent: 7.0.3 '@octokit/rest@22.0.1': dependencies: - '@octokit/core': 7.0.7 - '@octokit/plugin-paginate-rest': 14.0.0(@octokit/core@7.0.7) - '@octokit/plugin-request-log': 6.0.0(@octokit/core@7.0.7) - '@octokit/plugin-rest-endpoint-methods': 17.0.0(@octokit/core@7.0.7) + '@octokit/core': 7.0.8 + '@octokit/plugin-paginate-rest': 14.0.0(@octokit/core@7.0.8) + '@octokit/plugin-request-log': 6.0.0(@octokit/core@7.0.8) + '@octokit/plugin-rest-endpoint-methods': 17.0.0(@octokit/core@7.0.8) '@octokit/types@16.0.0': dependencies: @@ -14271,29 +14595,194 @@ snapshots: dependencies: '@octokit/openapi-types': 28.0.0 - '@open-draft/deferred-promise@2.2.0': {} + '@octokit/types@18.0.0': + dependencies: + '@octokit/openapi-types': 29.0.1 + + '@open-draft/until@3.0.1': {} - '@open-draft/logger@0.3.0': + '@opentelemetry/api-logs@0.220.0': dependencies: - is-node-process: 1.2.0 - outvariant: 1.4.3 + '@opentelemetry/api': 1.9.1 + + '@opentelemetry/api@1.10.0': {} + + '@opentelemetry/api@1.9.1': {} + + '@opentelemetry/browser-instrumentation@0.6.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/api-logs': 0.220.0 + '@opentelemetry/core': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/instrumentation': 0.220.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0) + '@opentelemetry/semantic-conventions': 1.43.0 + web-vitals: 5.3.0 + transitivePeerDependencies: + - supports-color + + '@opentelemetry/context-async-hooks@2.12.0(@opentelemetry/api@1.10.0)': + dependencies: + '@opentelemetry/api': 1.10.0 + + '@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/semantic-conventions': 1.28.0 + + '@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/semantic-conventions': 1.43.0 + + '@opentelemetry/core@2.12.0(@opentelemetry/api@1.10.0)': + dependencies: + '@opentelemetry/api': 1.10.0 + '@opentelemetry/semantic-conventions': 1.45.0 + + '@opentelemetry/core@2.9.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/semantic-conventions': 1.43.0 + + '@opentelemetry/exporter-logs-otlp-http@0.220.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/api-logs': 0.220.0 + '@opentelemetry/core': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/otlp-exporter-base': 0.220.0(@opentelemetry/api@1.9.1) + '@opentelemetry/otlp-transformer': 0.220.0(@opentelemetry/api@1.9.1) + '@opentelemetry/sdk-logs': 0.220.0(@opentelemetry/api@1.9.1) + + '@opentelemetry/exporter-trace-otlp-proto@0.220.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/otlp-exporter-base': 0.220.0(@opentelemetry/api@1.9.1) + '@opentelemetry/otlp-transformer': 0.220.0(@opentelemetry/api@1.9.1) + '@opentelemetry/resources': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/sdk-trace': 2.9.0(@opentelemetry/api@1.9.1) + + '@opentelemetry/instrumentation-document-load@0.65.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/instrumentation': 0.220.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0) + '@opentelemetry/sdk-trace-web': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/semantic-conventions': 1.43.0 + transitivePeerDependencies: + - supports-color + + '@opentelemetry/instrumentation-fetch@0.220.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/instrumentation': 0.220.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0) + '@opentelemetry/sdk-trace-web': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/semantic-conventions': 1.43.0 + transitivePeerDependencies: + - supports-color + + '@opentelemetry/instrumentation-xml-http-request@0.220.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/instrumentation': 0.220.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0) + '@opentelemetry/sdk-trace-web': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/semantic-conventions': 1.43.0 + transitivePeerDependencies: + - supports-color + + '@opentelemetry/instrumentation@0.220.0(@opentelemetry/api@1.9.1)(supports-color@11.0.0)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/api-logs': 0.220.0 + import-in-the-middle: 3.6.0 + require-in-the-middle: 8.0.1(supports-color@11.0.0) + transitivePeerDependencies: + - supports-color + + '@opentelemetry/otlp-exporter-base@0.220.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/otlp-transformer': 0.220.0(@opentelemetry/api@1.9.1) + + '@opentelemetry/otlp-transformer@0.220.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/api-logs': 0.220.0 + '@opentelemetry/core': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/resources': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/sdk-logs': 0.220.0(@opentelemetry/api@1.9.1) + '@opentelemetry/sdk-metrics': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/sdk-trace': 2.9.0(@opentelemetry/api@1.9.1) + + '@opentelemetry/resources@2.10.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/semantic-conventions': 1.43.0 + + '@opentelemetry/resources@2.9.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/semantic-conventions': 1.43.0 + + '@opentelemetry/sdk-logs@0.220.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/api-logs': 0.220.0 + '@opentelemetry/core': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/resources': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/semantic-conventions': 1.43.0 + + '@opentelemetry/sdk-metrics@2.9.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/resources': 2.9.0(@opentelemetry/api@1.9.1) + + '@opentelemetry/sdk-trace-base@2.10.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/resources': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/sdk-trace': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/semantic-conventions': 1.43.0 - '@open-draft/until@2.1.0': {} + '@opentelemetry/sdk-trace-base@2.9.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/resources': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/sdk-trace': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/semantic-conventions': 1.43.0 - '@opentelemetry/api@1.9.1': {} + '@opentelemetry/sdk-trace-web@2.10.0(@opentelemetry/api@1.9.1)': + dependencies: + '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/sdk-trace-base': 2.10.0(@opentelemetry/api@1.9.1) - '@opentelemetry/context-async-hooks@2.10.0(@opentelemetry/api@1.9.1)': + '@opentelemetry/sdk-trace-web@2.9.0(@opentelemetry/api@1.9.1)': dependencies: '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/sdk-trace-base': 2.9.0(@opentelemetry/api@1.9.1) - '@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.1)': + '@opentelemetry/sdk-trace@2.10.0(@opentelemetry/api@1.9.1)': dependencies: '@opentelemetry/api': 1.9.1 - '@opentelemetry/semantic-conventions': 1.28.0 + '@opentelemetry/core': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/resources': 2.10.0(@opentelemetry/api@1.9.1) + '@opentelemetry/semantic-conventions': 1.43.0 - '@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1)': + '@opentelemetry/sdk-trace@2.9.0(@opentelemetry/api@1.9.1)': dependencies: '@opentelemetry/api': 1.9.1 + '@opentelemetry/core': 2.9.0(@opentelemetry/api@1.9.1) + '@opentelemetry/resources': 2.9.0(@opentelemetry/api@1.9.1) '@opentelemetry/semantic-conventions': 1.43.0 '@opentelemetry/semantic-conventions@1.28.0': {} @@ -14302,66 +14791,77 @@ snapshots: '@opentelemetry/semantic-conventions@1.43.0': {} - '@oxc-parser/binding-android-arm-eabi@0.146.0': + '@opentelemetry/semantic-conventions@1.45.0': {} + + '@oxc-parser/binding-android-arm-eabi@0.158.0': + optional: true + + '@oxc-parser/binding-android-arm64@0.158.0': optional: true - '@oxc-parser/binding-android-arm64@0.146.0': + '@oxc-parser/binding-darwin-arm64@0.158.0': optional: true - '@oxc-parser/binding-darwin-arm64@0.146.0': + '@oxc-parser/binding-darwin-x64@0.158.0': optional: true - '@oxc-parser/binding-darwin-x64@0.146.0': + '@oxc-parser/binding-freebsd-x64@0.158.0': optional: true - '@oxc-parser/binding-freebsd-x64@0.146.0': + '@oxc-parser/binding-linux-arm-gnueabihf@0.158.0': optional: true - '@oxc-parser/binding-linux-arm-gnueabihf@0.146.0': + '@oxc-parser/binding-linux-arm-musleabihf@0.158.0': optional: true - '@oxc-parser/binding-linux-arm-musleabihf@0.146.0': + '@oxc-parser/binding-linux-arm64-gnu@0.158.0': optional: true - '@oxc-parser/binding-linux-arm64-gnu@0.146.0': + '@oxc-parser/binding-linux-arm64-musl@0.158.0': optional: true - '@oxc-parser/binding-linux-arm64-musl@0.146.0': + '@oxc-parser/binding-linux-ppc64-gnu@0.158.0': optional: true - '@oxc-parser/binding-linux-ppc64-gnu@0.146.0': + '@oxc-parser/binding-linux-riscv64-gnu@0.158.0': optional: true - '@oxc-parser/binding-linux-riscv64-gnu@0.146.0': + '@oxc-parser/binding-linux-riscv64-musl@0.158.0': optional: true - '@oxc-parser/binding-linux-riscv64-musl@0.146.0': + '@oxc-parser/binding-linux-s390x-gnu@0.158.0': optional: true - '@oxc-parser/binding-linux-s390x-gnu@0.146.0': + '@oxc-parser/binding-linux-x64-gnu@0.158.0': optional: true - '@oxc-parser/binding-linux-x64-gnu@0.146.0': + '@oxc-parser/binding-linux-x64-musl@0.158.0': optional: true - '@oxc-parser/binding-linux-x64-musl@0.146.0': + '@oxc-parser/binding-openharmony-arm64@0.158.0': optional: true - '@oxc-parser/binding-openharmony-arm64@0.146.0': + '@oxc-parser/binding-wasm32-wasi@0.158.0': + dependencies: + '@emnapi/core': 2.0.0-alpha.6 + '@emnapi/runtime': 2.0.0-alpha.6 + '@napi-rs/wasm-runtime': 1.2.7(@emnapi/core@2.0.0-alpha.6)(@emnapi/runtime@2.0.0-alpha.6) optional: true - '@oxc-parser/binding-win32-arm64-msvc@0.146.0': + '@oxc-parser/binding-win32-arm64-msvc@0.158.0': optional: true - '@oxc-parser/binding-win32-ia32-msvc@0.146.0': + '@oxc-parser/binding-win32-ia32-msvc@0.158.0': optional: true - '@oxc-parser/binding-win32-x64-msvc@0.146.0': + '@oxc-parser/binding-win32-x64-msvc@0.158.0': optional: true - '@oxc-project/types@0.144.0': {} + '@oxc-project/types@0.156.0': {} + + '@oxc-project/types@0.157.0': {} - '@oxc-project/types@0.146.0': {} + '@oxc-project/types@0.158.0': {} '@parcel/watcher-android-arm64@2.6.0': optional: true @@ -14404,7 +14904,7 @@ snapshots: detect-libc: 2.1.2 is-glob: 4.0.3 node-addon-api: 7.1.1 - picomatch: 4.0.5 + picomatch: 4.0.7 optionalDependencies: '@parcel/watcher-android-arm64': 2.6.0 '@parcel/watcher-darwin-arm64': 2.6.0 @@ -14426,24 +14926,6 @@ snapshots: '@pnpm/config.env-replace@1.1.0': {} - '@pnpm/crypto.hash@1000.2.2': - dependencies: - '@pnpm/crypto.polyfill': 1000.1.0 - '@pnpm/graceful-fs': 1000.1.0 - ssri: 10.0.5 - - '@pnpm/crypto.polyfill@1000.1.0': {} - - '@pnpm/dependency-path@1001.1.10': - dependencies: - '@pnpm/crypto.hash': 1000.2.2 - '@pnpm/types': 1001.3.0 - semver: 7.8.5 - - '@pnpm/graceful-fs@1000.1.0': - dependencies: - graceful-fs: 4.2.11 - '@pnpm/network.ca-file@1.0.2': dependencies: graceful-fs: 4.2.10 @@ -14454,8 +14936,6 @@ snapshots: '@pnpm/network.ca-file': 1.0.2 config-chain: 1.1.13 - '@pnpm/types@1001.3.0': {} - '@protobufjs/aspromise@1.1.2': {} '@protobufjs/base64@1.1.2': {} @@ -14476,224 +14956,238 @@ snapshots: '@protobufjs/utf8@1.1.2': {} - '@rolldown/binding-android-arm-eabi@1.2.5': + '@rolldown/binding-android-arm-eabi@1.2.19': + optional: true + + '@rolldown/binding-android-arm-eabi@1.3.1': + optional: true + + '@rolldown/binding-android-arm64@1.2.19': + optional: true + + '@rolldown/binding-android-arm64@1.3.1': optional: true - '@rolldown/binding-android-arm64@1.2.4': + '@rolldown/binding-darwin-arm64@1.2.19': optional: true - '@rolldown/binding-android-arm64@1.2.5': + '@rolldown/binding-darwin-arm64@1.3.1': optional: true - '@rolldown/binding-darwin-arm64@1.2.4': + '@rolldown/binding-darwin-x64@1.2.19': optional: true - '@rolldown/binding-darwin-arm64@1.2.5': + '@rolldown/binding-darwin-x64@1.3.1': optional: true - '@rolldown/binding-darwin-x64@1.2.4': + '@rolldown/binding-freebsd-x64@1.2.19': optional: true - '@rolldown/binding-darwin-x64@1.2.5': + '@rolldown/binding-freebsd-x64@1.3.1': optional: true - '@rolldown/binding-freebsd-x64@1.2.4': + '@rolldown/binding-linux-arm-gnueabihf@1.2.19': optional: true - '@rolldown/binding-freebsd-x64@1.2.5': + '@rolldown/binding-linux-arm-gnueabihf@1.3.1': optional: true - '@rolldown/binding-linux-arm-gnueabihf@1.2.4': + '@rolldown/binding-linux-arm64-gnu@1.2.19': optional: true - '@rolldown/binding-linux-arm-gnueabihf@1.2.5': + '@rolldown/binding-linux-arm64-gnu@1.3.1': optional: true - '@rolldown/binding-linux-arm64-gnu@1.2.4': + '@rolldown/binding-linux-arm64-musl@1.2.19': optional: true - '@rolldown/binding-linux-arm64-gnu@1.2.5': + '@rolldown/binding-linux-arm64-musl@1.3.1': optional: true - '@rolldown/binding-linux-arm64-musl@1.2.4': + '@rolldown/binding-linux-ppc64-gnu@1.2.19': optional: true - '@rolldown/binding-linux-arm64-musl@1.2.5': + '@rolldown/binding-linux-ppc64-gnu@1.3.1': optional: true - '@rolldown/binding-linux-ppc64-gnu@1.2.4': + '@rolldown/binding-linux-s390x-gnu@1.2.19': optional: true - '@rolldown/binding-linux-ppc64-gnu@1.2.5': + '@rolldown/binding-linux-s390x-gnu@1.3.1': optional: true - '@rolldown/binding-linux-s390x-gnu@1.2.4': + '@rolldown/binding-linux-x64-gnu@1.2.19': optional: true - '@rolldown/binding-linux-s390x-gnu@1.2.5': + '@rolldown/binding-linux-x64-gnu@1.3.1': optional: true - '@rolldown/binding-linux-x64-gnu@1.2.4': + '@rolldown/binding-linux-x64-musl@1.2.19': optional: true - '@rolldown/binding-linux-x64-gnu@1.2.5': + '@rolldown/binding-linux-x64-musl@1.3.1': optional: true - '@rolldown/binding-linux-x64-musl@1.2.4': + '@rolldown/binding-openharmony-arm64@1.2.19': optional: true - '@rolldown/binding-linux-x64-musl@1.2.5': + '@rolldown/binding-openharmony-arm64@1.3.1': optional: true - '@rolldown/binding-openharmony-arm64@1.2.4': + '@rolldown/binding-wasm32-wasi@1.2.19': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) optional: true - '@rolldown/binding-openharmony-arm64@1.2.5': + '@rolldown/binding-wasm32-wasi@1.3.1': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) optional: true - '@rolldown/binding-win32-arm64-msvc@1.2.4': + '@rolldown/binding-win32-arm64-msvc@1.2.19': optional: true - '@rolldown/binding-win32-arm64-msvc@1.2.5': + '@rolldown/binding-win32-arm64-msvc@1.3.1': optional: true - '@rolldown/binding-win32-x64-msvc@1.2.4': + '@rolldown/binding-win32-x64-msvc@1.2.19': optional: true - '@rolldown/binding-win32-x64-msvc@1.2.5': + '@rolldown/binding-win32-x64-msvc@1.3.1': optional: true '@rolldown/pluginutils@1.0.1': {} - '@rollup/plugin-commonjs@29.0.3(rollup@4.63.0)': + '@rollup/plugin-commonjs@29.0.3(rollup@4.68.2)': dependencies: - '@rollup/pluginutils': 5.4.0(rollup@4.63.0) + '@rollup/pluginutils': 5.5.1(rollup@4.68.2) commondir: 1.0.1 estree-walker: 2.0.2 - fdir: 6.5.0(picomatch@4.0.5) + fdir: 6.5.0(picomatch@4.0.7) is-reference: 1.2.1 magic-string: 0.30.21 - picomatch: 4.0.5 + picomatch: 4.0.7 optionalDependencies: - rollup: 4.63.0 + rollup: 4.68.2 - '@rollup/plugin-node-resolve@16.0.3(rollup@4.63.0)': + '@rollup/plugin-node-resolve@16.0.3(rollup@4.68.2)': dependencies: - '@rollup/pluginutils': 5.4.0(rollup@4.63.0) + '@rollup/pluginutils': 5.5.1(rollup@4.68.2) '@types/resolve': 1.20.2 deepmerge: 4.3.1 is-module: 1.0.0 - resolve: 1.22.12 + resolve: 1.22.14 + optionalDependencies: + rollup: 4.68.2 + + '@rollup/pluginutils@5.4.0(rollup@4.68.2)': + dependencies: + '@types/estree': 1.0.10 + estree-walker: 2.0.2 + picomatch: 4.0.7 optionalDependencies: - rollup: 4.63.0 + rollup: 4.68.2 - '@rollup/pluginutils@5.4.0(rollup@4.63.0)': + '@rollup/pluginutils@5.5.1(rollup@4.68.2)': dependencies: - '@types/estree': 1.0.9 + '@types/estree': 1.0.10 estree-walker: 2.0.2 - picomatch: 4.0.5 + picomatch: 4.0.7 optionalDependencies: - rollup: 4.63.0 + rollup: 4.68.2 + + '@rollup/rollup-android-arm-eabi@4.68.2': + optional: true - '@rollup/rollup-android-arm-eabi@4.63.0': + '@rollup/rollup-android-arm64@4.68.2': optional: true - '@rollup/rollup-android-arm64@4.63.0': + '@rollup/rollup-android-x64@4.68.2': optional: true - '@rollup/rollup-darwin-arm64@4.63.0': + '@rollup/rollup-darwin-arm64@4.68.2': optional: true - '@rollup/rollup-darwin-x64@4.63.0': + '@rollup/rollup-darwin-x64@4.68.2': optional: true - '@rollup/rollup-freebsd-arm64@4.63.0': + '@rollup/rollup-freebsd-arm64@4.68.2': optional: true - '@rollup/rollup-freebsd-x64@4.63.0': + '@rollup/rollup-freebsd-x64@4.68.2': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.63.0': + '@rollup/rollup-linux-arm-gnueabihf@4.68.2': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.63.0': + '@rollup/rollup-linux-arm-musleabihf@4.68.2': optional: true - '@rollup/rollup-linux-arm64-gnu@4.63.0': + '@rollup/rollup-linux-arm64-gnu@4.68.2': optional: true - '@rollup/rollup-linux-arm64-musl@4.63.0': + '@rollup/rollup-linux-arm64-musl@4.68.2': optional: true - '@rollup/rollup-linux-loong64-gnu@4.63.0': + '@rollup/rollup-linux-loong64-gnu@4.68.2': optional: true - '@rollup/rollup-linux-loong64-musl@4.63.0': + '@rollup/rollup-linux-loong64-musl@4.68.2': optional: true - '@rollup/rollup-linux-ppc64-gnu@4.63.0': + '@rollup/rollup-linux-ppc64-gnu@4.68.2': optional: true - '@rollup/rollup-linux-ppc64-musl@4.63.0': + '@rollup/rollup-linux-ppc64-musl@4.68.2': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.63.0': + '@rollup/rollup-linux-riscv64-gnu@4.68.2': optional: true - '@rollup/rollup-linux-riscv64-musl@4.63.0': + '@rollup/rollup-linux-riscv64-musl@4.68.2': optional: true - '@rollup/rollup-linux-s390x-gnu@4.63.0': + '@rollup/rollup-linux-s390x-gnu@4.68.2': optional: true - '@rollup/rollup-linux-x64-gnu@4.63.0': + '@rollup/rollup-linux-x64-gnu@4.68.2': optional: true - '@rollup/rollup-linux-x64-musl@4.63.0': + '@rollup/rollup-linux-x64-musl@4.68.2': optional: true - '@rollup/rollup-openbsd-x64@4.63.0': + '@rollup/rollup-openbsd-x64@4.68.2': optional: true - '@rollup/rollup-openharmony-arm64@4.63.0': + '@rollup/rollup-openharmony-arm64@4.68.2': optional: true - '@rollup/rollup-win32-arm64-msvc@4.63.0': + '@rollup/rollup-win32-arm64-msvc@4.68.2': optional: true - '@rollup/rollup-win32-ia32-msvc@4.63.0': + '@rollup/rollup-win32-ia32-msvc@4.68.2': optional: true - '@rollup/rollup-win32-x64-gnu@4.63.0': + '@rollup/rollup-win32-x64-gnu@4.68.2': optional: true - '@rollup/rollup-win32-x64-msvc@4.63.0': + '@rollup/rollup-win32-x64-msvc@4.68.2': optional: true - '@schematics/angular@22.2.0-next.5(chokidar@5.0.0)': + '@schematics/angular@22.3.0-rc.0(chokidar@6.0.0)': dependencies: - '@angular-devkit/core': 22.2.0-next.5(chokidar@5.0.0) - '@angular-devkit/schematics': 22.2.0-next.5(chokidar@5.0.0) + '@angular-devkit/core': 22.3.0-rc.0(chokidar@6.0.0) + '@angular-devkit/schematics': 22.3.0-rc.0(chokidar@6.0.0) jsonc-parser: 3.3.1 + oxc-parser: 0.158.0 typescript: 6.0.3 transitivePeerDependencies: - chokidar - '@secretlint/config-creator@10.2.2': - dependencies: - '@secretlint/types': 10.2.2 - - '@secretlint/config-loader@10.2.2(supports-color@11.0.0)': - dependencies: - '@secretlint/profiler': 10.2.2 - '@secretlint/resolver': 10.2.2 - '@secretlint/types': 10.2.2 - ajv: 8.20.0 - debug: 4.4.3(supports-color@11.0.0) - rc-config-loader: 4.1.4(supports-color@11.0.0) - transitivePeerDependencies: - - supports-color - '@secretlint/core@10.2.2(supports-color@11.0.0)': dependencies: '@secretlint/profiler': 10.2.2 @@ -14703,43 +15197,8 @@ snapshots: transitivePeerDependencies: - supports-color - '@secretlint/formatter@10.2.2(supports-color@11.0.0)': - dependencies: - '@secretlint/resolver': 10.2.2 - '@secretlint/types': 10.2.2 - '@textlint/linter-formatter': 15.8.0(supports-color@11.0.0) - '@textlint/module-interop': 15.8.0 - '@textlint/types': 15.8.0 - chalk: 5.6.2 - debug: 4.4.3(supports-color@11.0.0) - pluralize: 8.0.0 - strip-ansi: 7.2.0 - table: 6.9.0 - terminal-link: 4.0.0 - transitivePeerDependencies: - - supports-color - - '@secretlint/node@10.2.2(supports-color@11.0.0)': - dependencies: - '@secretlint/config-loader': 10.2.2(supports-color@11.0.0) - '@secretlint/core': 10.2.2(supports-color@11.0.0) - '@secretlint/formatter': 10.2.2(supports-color@11.0.0) - '@secretlint/profiler': 10.2.2 - '@secretlint/source-creator': 10.2.2 - '@secretlint/types': 10.2.2 - debug: 4.4.3(supports-color@11.0.0) - p-map: 7.0.6 - transitivePeerDependencies: - - supports-color - '@secretlint/profiler@10.2.2': {} - '@secretlint/resolver@10.2.2': {} - - '@secretlint/secretlint-formatter-sarif@10.2.2': - dependencies: - node-sarif-builder: 3.4.0 - '@secretlint/secretlint-rule-no-dotenv@10.2.2': dependencies: '@secretlint/types': 10.2.2 @@ -14753,45 +15212,45 @@ snapshots: '@secretlint/types@10.2.2': {} - '@shikijs/core@4.4.3': + '@shikijs/core@4.6.0': dependencies: - '@shikijs/primitive': 4.4.3 - '@shikijs/types': 4.4.3 - '@shikijs/vscode-textmate': 10.0.2 + '@shikijs/primitive': 4.6.0 + '@shikijs/types': 4.6.0 + '@shikijs/vscode-textmate': 10.1.0 '@types/hast': 3.0.5 - hast-util-to-html: 9.0.5 + hast-util-to-html: 9.0.6 - '@shikijs/engine-javascript@4.4.3': + '@shikijs/engine-javascript@4.6.0': dependencies: - '@shikijs/types': 4.4.3 - '@shikijs/vscode-textmate': 10.0.2 + '@shikijs/types': 4.6.0 + '@shikijs/vscode-textmate': 10.1.0 oniguruma-to-es: 4.3.6 - '@shikijs/engine-oniguruma@4.4.3': + '@shikijs/engine-oniguruma@4.6.0': dependencies: - '@shikijs/types': 4.4.3 - '@shikijs/vscode-textmate': 10.0.2 + '@shikijs/types': 4.6.0 + '@shikijs/vscode-textmate': 10.1.0 - '@shikijs/langs@4.4.3': + '@shikijs/langs@4.6.0': dependencies: - '@shikijs/types': 4.4.3 + '@shikijs/types': 4.6.0 - '@shikijs/primitive@4.4.3': + '@shikijs/primitive@4.6.0': dependencies: - '@shikijs/types': 4.4.3 - '@shikijs/vscode-textmate': 10.0.2 + '@shikijs/types': 4.6.0 + '@shikijs/vscode-textmate': 10.1.0 '@types/hast': 3.0.5 - '@shikijs/themes@4.4.3': + '@shikijs/themes@4.6.0': dependencies: - '@shikijs/types': 4.4.3 + '@shikijs/types': 4.6.0 - '@shikijs/types@4.4.3': + '@shikijs/types@4.6.0': dependencies: - '@shikijs/vscode-textmate': 10.0.2 + '@shikijs/vscode-textmate': 10.1.0 '@types/hast': 3.0.5 - '@shikijs/vscode-textmate@10.0.2': {} + '@shikijs/vscode-textmate@10.1.0': {} '@simple-libs/child-process-utils@1.0.2': dependencies: @@ -14806,7 +15265,7 @@ snapshots: '@simple-libs/normalize-package-data@1.0.0': dependencies: '@simple-libs/hosted-git-info': 2.0.0 - semver: 7.8.5 + semver: 7.8.6 '@simple-libs/stream-utils@1.2.0': {} @@ -14816,8 +15275,6 @@ snapshots: '@sindresorhus/is@4.6.0': {} - '@sindresorhus/merge-streams@2.3.0': {} - '@sinonjs/commons@3.0.1': dependencies: type-detect: 4.0.8 @@ -14837,36 +15294,6 @@ snapshots: '@standard-schema/spec@1.1.0': {} - '@textlint/ast-node-types@15.8.0': {} - - '@textlint/linter-formatter@15.8.0(supports-color@11.0.0)': - dependencies: - '@azu/format-text': 1.0.2 - '@azu/style-format': 1.0.1 - '@textlint/module-interop': 15.8.0 - '@textlint/resolver': 15.8.0 - '@textlint/types': 15.8.0 - debug: 4.4.3(supports-color@11.0.0) - js-yaml: 4.3.1 - lodash: 4.18.1 - pluralize: 2.0.0 - string-width: 4.2.3 - strip-ansi: 6.0.1 - table: 6.9.0 - text-table: 0.2.0 - transitivePeerDependencies: - - supports-color - - '@textlint/module-interop@15.8.0': {} - - '@textlint/resolver@15.8.0': {} - - '@textlint/types@15.8.0': - dependencies: - '@textlint/ast-node-types': 15.8.0 - - '@tootallnate/quickjs-emscripten@0.23.0': {} - '@tsconfig/node10@1.0.13': {} '@tsconfig/node12@1.0.11': {} @@ -14875,37 +15302,37 @@ snapshots: '@tsconfig/node16@1.0.4': {} - '@tybys/wasm-util@0.10.3': + '@tybys/wasm-util@0.10.4': dependencies: - tslib: 2.8.1 + tslib: 2.9.1 optional: true - '@types/adm-zip@0.5.8': + '@types/adm-zip@0.6.0': dependencies: - '@types/node': 24.13.3 + adm-zip: 0.6.1 '@types/angular@1.8.9': {} '@types/babel__core@7.20.5': dependencies: - '@babel/parser': 7.29.8 - '@babel/types': 7.29.8 + '@babel/parser': 7.29.13 + '@babel/types': 7.29.11 '@types/babel__generator': 7.27.0 '@types/babel__template': 7.4.4 '@types/babel__traverse': 7.28.0 '@types/babel__generator@7.27.0': dependencies: - '@babel/types': 7.29.8 + '@babel/types': 7.29.11 '@types/babel__template@7.4.4': dependencies: - '@babel/parser': 7.29.8 - '@babel/types': 7.29.8 + '@babel/parser': 7.29.13 + '@babel/types': 7.29.11 '@types/babel__traverse@7.28.0': dependencies: - '@babel/types': 7.29.8 + '@babel/types': 7.29.11 '@types/big.js@6.2.2': {} @@ -14914,9 +15341,8 @@ snapshots: '@types/deep-eql': 4.0.2 assertion-error: 2.0.1 - '@types/chrome@0.2.6': + '@types/chrome@0.3.7': dependencies: - '@types/filesystem': 0.0.36 '@types/har-format': 1.2.16 '@types/cldr@7.1.4': {} @@ -14925,23 +15351,23 @@ snapshots: '@types/cli-progress@3.11.6': dependencies: - '@types/node': 24.13.3 + '@types/node': 20.19.43 '@types/convert-source-map@2.0.3': {} '@types/cors@2.8.19': dependencies: - '@types/node': 24.13.3 + '@types/node': 20.19.43 '@types/d3-array@3.2.2': {} '@types/d3-axis@3.0.6': dependencies: - '@types/d3-selection': 3.0.11 + '@types/d3-selection': 3.0.12 '@types/d3-brush@3.0.6': dependencies: - '@types/d3-selection': 3.0.11 + '@types/d3-selection': 3.0.12 '@types/d3-chord@3.0.6': {} @@ -14958,7 +15384,7 @@ snapshots: '@types/d3-drag@3.0.7': dependencies: - '@types/d3-selection': 3.0.11 + '@types/d3-selection': 3.0.12 '@types/d3-dsv@3.0.7': {} @@ -14996,9 +15422,9 @@ snapshots: dependencies: '@types/d3-time': 3.0.4 - '@types/d3-selection@3.0.11': {} + '@types/d3-selection@3.0.12': {} - '@types/d3-shape@3.1.8': + '@types/d3-shape@3.2.0': dependencies: '@types/d3-path': 3.1.1 @@ -15010,12 +15436,12 @@ snapshots: '@types/d3-transition@3.0.9': dependencies: - '@types/d3-selection': 3.0.11 + '@types/d3-selection': 3.0.12 - '@types/d3-zoom@3.0.8': + '@types/d3-zoom@3.0.9': dependencies: '@types/d3-interpolate': 3.0.4 - '@types/d3-selection': 3.0.11 + '@types/d3-selection': 3.0.12 '@types/d3@7.4.3': dependencies: @@ -15042,13 +15468,17 @@ snapshots: '@types/d3-random': 3.0.4 '@types/d3-scale': 4.0.9 '@types/d3-scale-chromatic': 3.1.0 - '@types/d3-selection': 3.0.11 - '@types/d3-shape': 3.1.8 + '@types/d3-selection': 3.0.12 + '@types/d3-shape': 3.2.0 '@types/d3-time': 3.0.4 '@types/d3-time-format': 4.0.3 '@types/d3-timer': 3.0.2 '@types/d3-transition': 3.0.9 - '@types/d3-zoom': 3.0.8 + '@types/d3-zoom': 3.0.9 + + '@types/debug@4.1.13': + dependencies: + '@types/ms': 2.1.0 '@types/deep-eql@4.0.2': {} @@ -15056,21 +15486,15 @@ snapshots: '@types/duplexify@3.6.5': dependencies: - '@types/node': 24.13.3 + '@types/node': 20.19.43 '@types/ejs@3.1.5': {} - '@types/estree@1.0.9': {} + '@types/estree@1.0.10': {} '@types/events@3.0.3': {} - '@types/filesystem@0.0.36': - dependencies: - '@types/filewriter': 0.0.33 - - '@types/filewriter@0.0.33': {} - - '@types/firefox-webext-browser@143.0.0': {} + '@types/firefox-webext-browser@143.0.1': {} '@types/folder-hash@4.0.4': {} @@ -15096,26 +15520,28 @@ snapshots: '@types/jasmine-reporters@2.5.3': dependencies: - '@types/jasmine': 6.0.0 + '@types/jasmine': 7.0.0 '@types/jasmine@6.0.0': {} + '@types/jasmine@7.0.0': {} + '@types/jasminewd2@2.0.13': dependencies: - '@types/jasmine': 6.0.0 + '@types/jasmine': 7.0.0 '@types/jsdom@21.1.7': dependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@types/tough-cookie': 4.0.5 parse5: 7.3.0 '@types/jsdom@30.0.0': dependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 '@types/tough-cookie': 4.0.5 - parse5: 8.0.1 - undici-types: 8.10.0 + parse5: 8.1.1 + undici-types: 8.12.4 '@types/jsesc@2.5.1': {} @@ -15125,20 +15551,22 @@ snapshots: dependencies: '@types/unist': 3.0.3 + '@types/ms@2.1.0': {} + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 - '@types/node@24.13.3': + '@types/node@24.19.2': dependencies: - undici-types: 7.18.2 + undici-types: 7.24.6 '@types/normalize-package-data@2.4.4': {} '@types/pumpify@1.4.5': dependencies: '@types/duplexify': 3.6.5 - '@types/node': 24.13.3 + '@types/node': 20.19.43 '@types/q@0.0.32': {} @@ -15146,8 +15574,6 @@ snapshots: '@types/retry@0.12.0': {} - '@types/sarif@2.1.7': {} - '@types/selenium-webdriver@3.0.7': {} '@types/semver@7.8.0': {} @@ -15173,13 +15599,13 @@ snapshots: '@types/unist@3.0.3': {} - '@types/vscode@1.125.0': {} + '@types/vscode@1.145.0': {} '@types/which@3.0.4': {} - '@types/ws@8.18.1': + '@types/ws@8.18.2': dependencies: - '@types/node': 24.13.3 + '@types/node': 20.19.43 '@types/yargs-parser@21.0.3': {} @@ -15189,154 +15615,141 @@ snapshots: '@types/yarnpkg__lockfile@1.1.9': {} - '@typescript/vfs@1.6.4(supports-color@11.0.0)(typescript@6.0.3)': + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20260707.2': + optional: true + + '@typescript/native-preview-darwin-x64@7.0.0-dev.20260707.2': + optional: true + + '@typescript/native-preview-linux-arm64@7.0.0-dev.20260707.2': + optional: true + + '@typescript/native-preview-linux-arm@7.0.0-dev.20260707.2': + optional: true + + '@typescript/native-preview-linux-x64@7.0.0-dev.20260707.2': + optional: true + + '@typescript/native-preview-win32-arm64@7.0.0-dev.20260707.2': + optional: true + + '@typescript/native-preview-win32-x64@7.0.0-dev.20260707.2': + optional: true + + '@typescript/native-preview@7.0.0-dev.20260707.2': + optionalDependencies: + '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260707.2 + '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260707.2 + '@typescript/native-preview-linux-arm': 7.0.0-dev.20260707.2 + '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260707.2 + '@typescript/native-preview-linux-x64': 7.0.0-dev.20260707.2 + '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260707.2 + '@typescript/native-preview-win32-x64': 7.0.0-dev.20260707.2 + + '@typescript/vfs@1.6.6(supports-color@11.0.0)(typescript@6.0.3)': dependencies: debug: 4.4.3(supports-color@11.0.0) typescript: 6.0.3 transitivePeerDependencies: - supports-color - '@typespec/ts-http-runtime@0.3.8(supports-color@11.0.0)': + '@typespec/ts-http-runtime@0.3.10(supports-color@11.0.0)': dependencies: - http-proxy-agent: 7.0.2(supports-color@11.0.0) - https-proxy-agent: 7.0.6(supports-color@11.0.0) - tslib: 2.8.1 + http-proxy-agent: 9.1.0(supports-color@11.0.0) + https-proxy-agent: 9.1.0(supports-color@11.0.0) + tslib: 2.9.1 transitivePeerDependencies: + - kerberos - supports-color - '@ungap/structured-clone@1.3.3': {} - - '@unrs/resolver-binding-android-arm-eabi@1.12.2': - optional: true + '@ungap/structured-clone@1.4.0': {} - '@unrs/resolver-binding-android-arm64@1.12.2': + '@unrs/resolver-binding-android-arm-eabi@1.13.0': optional: true - '@unrs/resolver-binding-darwin-arm64@1.12.2': + '@unrs/resolver-binding-android-arm64@1.13.0': optional: true - '@unrs/resolver-binding-darwin-x64@1.12.2': + '@unrs/resolver-binding-darwin-arm64@1.13.0': optional: true - '@unrs/resolver-binding-freebsd-x64@1.12.2': + '@unrs/resolver-binding-darwin-x64@1.13.0': optional: true - '@unrs/resolver-binding-linux-arm-gnueabihf@1.12.2': + '@unrs/resolver-binding-freebsd-x64@1.13.0': optional: true - '@unrs/resolver-binding-linux-arm-musleabihf@1.12.2': + '@unrs/resolver-binding-linux-arm-gnueabihf@1.13.0': optional: true - '@unrs/resolver-binding-linux-arm64-gnu@1.12.2': + '@unrs/resolver-binding-linux-arm-musleabihf@1.13.0': optional: true - '@unrs/resolver-binding-linux-arm64-musl@1.12.2': + '@unrs/resolver-binding-linux-arm64-gnu@1.13.0': optional: true - '@unrs/resolver-binding-linux-loong64-gnu@1.12.2': + '@unrs/resolver-binding-linux-arm64-musl@1.13.0': optional: true - '@unrs/resolver-binding-linux-loong64-musl@1.12.2': + '@unrs/resolver-binding-linux-loong64-gnu@1.13.0': optional: true - '@unrs/resolver-binding-linux-ppc64-gnu@1.12.2': + '@unrs/resolver-binding-linux-loong64-musl@1.13.0': optional: true - '@unrs/resolver-binding-linux-riscv64-gnu@1.12.2': + '@unrs/resolver-binding-linux-ppc64-gnu@1.13.0': optional: true - '@unrs/resolver-binding-linux-riscv64-musl@1.12.2': + '@unrs/resolver-binding-linux-riscv64-gnu@1.13.0': optional: true - '@unrs/resolver-binding-linux-s390x-gnu@1.12.2': + '@unrs/resolver-binding-linux-riscv64-musl@1.13.0': optional: true - '@unrs/resolver-binding-linux-x64-gnu@1.12.2': + '@unrs/resolver-binding-linux-s390x-gnu@1.13.0': optional: true - '@unrs/resolver-binding-linux-x64-musl@1.12.2': + '@unrs/resolver-binding-linux-x64-gnu@1.13.0': optional: true - '@unrs/resolver-binding-openharmony-arm64@1.12.2': + '@unrs/resolver-binding-linux-x64-musl@1.13.0': optional: true - '@unrs/resolver-binding-wasm32-wasi@1.12.2': - dependencies: - '@emnapi/core': 1.10.0 - '@emnapi/runtime': 1.10.0 - '@napi-rs/wasm-runtime': 1.2.3(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0) + '@unrs/resolver-binding-openharmony-arm64@1.13.0': optional: true - '@unrs/resolver-binding-win32-arm64-msvc@1.12.2': + '@unrs/resolver-binding-win32-arm64-msvc@1.13.0': optional: true - '@unrs/resolver-binding-win32-ia32-msvc@1.12.2': + '@unrs/resolver-binding-win32-ia32-msvc@1.13.0': optional: true - '@unrs/resolver-binding-win32-x64-msvc@1.12.2': + '@unrs/resolver-binding-win32-x64-msvc@1.13.0': optional: true '@upsetjs/venn.js@2.0.0': optionalDependencies: - d3-selection: 3.0.0 - d3-transition: 3.0.1(d3-selection@3.0.0) - - '@vitejs/plugin-basic-ssl@2.3.0(vite@8.2.2(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0))': - dependencies: - vite: 8.2.2(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0) - - '@vitejs/plugin-basic-ssl@2.3.0(vite@8.2.2(@types/node@24.13.3)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0))': - dependencies: - vite: 8.2.2(@types/node@24.13.3)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0) + d3-selection: 3.0.1 + d3-transition: 3.0.2(d3-selection@3.0.1) - '@vitest/expect@4.1.10': + '@vitejs/plugin-basic-ssl@2.3.0(vite@8.3.8(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1))': dependencies: - '@standard-schema/spec': 1.1.0 - '@types/chai': 5.2.3 - '@vitest/spy': 4.1.10 - '@vitest/utils': 4.1.10 - chai: 6.2.2 - tinyrainbow: 3.1.1 + vite: 8.3.8(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1) - '@vitest/mocker@4.1.10(vite@8.2.2(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0))': + '@vitejs/plugin-basic-ssl@2.3.0(vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1))': dependencies: - '@vitest/spy': 4.1.10 - estree-walker: 3.0.3 - magic-string: 0.30.21 - optionalDependencies: - vite: 8.2.2(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0) + vite: 8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1) - '@vitest/mocker@4.1.10(vite@8.2.2(@types/node@24.13.3)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0))': + '@vitest/mocker@5.1.0(vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1))': dependencies: - '@vitest/spy': 4.1.10 + '@jridgewell/trace-mapping': 0.3.31 + '@vitest/spy': 5.1.0 estree-walker: 3.0.3 - magic-string: 0.30.21 + magic-string: 1.4.5 optionalDependencies: - vite: 8.2.2(@types/node@24.13.3)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0) - - '@vitest/pretty-format@4.1.10': - dependencies: - tinyrainbow: 3.1.1 - - '@vitest/runner@4.1.10': - dependencies: - '@vitest/utils': 4.1.10 - pathe: 2.0.3 - - '@vitest/snapshot@4.1.10': - dependencies: - '@vitest/pretty-format': 4.1.10 - '@vitest/utils': 4.1.10 - magic-string: 0.30.21 - pathe: 2.0.3 + vite: 8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1) - '@vitest/spy@4.1.10': {} - - '@vitest/utils@4.1.10': - dependencies: - '@vitest/pretty-format': 4.1.10 - convert-source-map: 2.0.0 - tinyrainbow: 3.1.1 + '@vitest/spy@5.1.0': {} '@vscode/l10n@0.0.18': {} @@ -15344,9 +15757,9 @@ snapshots: dependencies: http-proxy-agent: 7.0.2(supports-color@11.0.0) https-proxy-agent: 7.0.6(supports-color@11.0.0) - jszip: 3.10.1 + jszip: 3.10.2 ora: 8.2.0 - semver: 7.8.5 + semver: 7.8.6 transitivePeerDependencies: - supports-color @@ -15377,7 +15790,7 @@ snapshots: '@vscode/vsce-sign-win32-x64@2.0.6': optional: true - '@vscode/vsce-sign@2.0.9': + '@vscode/vsce-sign@2.1.0': optionalDependencies: '@vscode/vsce-sign-alpine-arm64': 2.0.6 '@vscode/vsce-sign-alpine-x64': 2.0.6 @@ -15389,45 +15802,41 @@ snapshots: '@vscode/vsce-sign-win32-arm64': 2.0.6 '@vscode/vsce-sign-win32-x64': 2.0.6 - '@vscode/vsce@3.9.2(supports-color@11.0.0)': + '@vscode/vsce@4.1.0(supports-color@11.0.0)': dependencies: - '@azure/identity': 4.13.1(supports-color@11.0.0) - '@secretlint/node': 10.2.2(supports-color@11.0.0) - '@secretlint/secretlint-formatter-sarif': 10.2.2 + '@azure/identity': 4.14.1(supports-color@11.0.0) + '@napi-rs/keyring': 1.3.0 + '@secretlint/core': 10.2.2(supports-color@11.0.0) '@secretlint/secretlint-rule-no-dotenv': 10.2.2 '@secretlint/secretlint-rule-preset-recommend': 10.2.2 - '@vscode/vsce-sign': 2.0.9 + '@secretlint/source-creator': 10.2.2 + '@secretlint/types': 10.2.2 + '@vscode/vsce-sign': 2.1.0 azure-devops-node-api: 12.5.0 - chalk: 4.1.2 - cheerio: 1.2.0 cockatiel: 3.2.1 commander: 12.1.0 - form-data: 4.0.6 - glob: 13.0.6 hosted-git-info: 4.1.0 jsonc-parser: 3.3.1 - leven: 3.1.0 - markdown-it: 14.3.0 + marked: 18.2.0 mime: 1.6.0 minimatch: 10.2.6 - parse-semver: 1.1.1 + parse5: 8.1.1 + proper-lockfile: 4.1.2 read: 1.0.7 - secretlint: 10.2.2(supports-color@11.0.0) - semver: 7.8.5 - tmp: 0.2.7 + semver: 7.8.6 + tinyglobby: 0.2.17 typed-rest-client: 1.8.11 url-join: 4.0.1 xml2js: 0.5.0 yauzl: 3.4.0 yazl: 2.5.1 - optionalDependencies: - keytar: 7.9.0 transitivePeerDependencies: + - kerberos - supports-color '@webcontainer/api@1.6.4': {} - '@xmldom/xmldom@0.8.14': {} + '@xmldom/xmldom@0.8.15': {} '@xterm/addon-fit@0.11.0': {} @@ -15435,80 +15844,24 @@ snapshots: '@yarnpkg/lockfile@1.1.0': {} - '@yuku-codegen/binding-android-arm64@0.8.7': - optional: true - - '@yuku-codegen/binding-darwin-arm64@0.8.7': - optional: true - - '@yuku-codegen/binding-darwin-x64@0.8.7': - optional: true - - '@yuku-codegen/binding-freebsd-x64@0.8.7': - optional: true - - '@yuku-codegen/binding-linux-arm-gnu@0.8.7': - optional: true - - '@yuku-codegen/binding-linux-arm-musl@0.8.7': - optional: true - - '@yuku-codegen/binding-linux-arm64-gnu@0.8.7': - optional: true - - '@yuku-codegen/binding-linux-arm64-musl@0.8.7': - optional: true - - '@yuku-codegen/binding-linux-x64-gnu@0.8.7': - optional: true - - '@yuku-codegen/binding-linux-x64-musl@0.8.7': - optional: true - - '@yuku-codegen/binding-win32-arm64@0.8.7': - optional: true - - '@yuku-codegen/binding-win32-x64@0.8.7': - optional: true - - '@yuku-parser/binding-android-arm64@0.8.7': - optional: true - - '@yuku-parser/binding-darwin-arm64@0.8.7': - optional: true - - '@yuku-parser/binding-darwin-x64@0.8.7': - optional: true - - '@yuku-parser/binding-freebsd-x64@0.8.7': - optional: true - - '@yuku-parser/binding-linux-arm-gnu@0.8.7': - optional: true - - '@yuku-parser/binding-linux-arm-musl@0.8.7': - optional: true - - '@yuku-parser/binding-linux-arm64-gnu@0.8.7': + '@yuku-toolchain/darwin-arm64@0.27.0': optional: true - '@yuku-parser/binding-linux-arm64-musl@0.8.7': + '@yuku-toolchain/darwin-x64@0.27.0': optional: true - '@yuku-parser/binding-linux-x64-gnu@0.8.7': + '@yuku-toolchain/linux-arm64@0.27.0': optional: true - '@yuku-parser/binding-linux-x64-musl@0.8.7': + '@yuku-toolchain/linux-x64@0.27.0': optional: true - '@yuku-parser/binding-win32-arm64@0.8.7': + '@yuku-toolchain/win32-arm64@0.27.0': optional: true - '@yuku-parser/binding-win32-x64@0.8.7': + '@yuku-toolchain/win32-x64@0.27.0': optional: true - '@yuku-toolchain/types@0.8.7': {} - abbrev@5.0.0: optional: true @@ -15524,19 +15877,19 @@ snapshots: accepts@2.0.0: dependencies: mime-types: 3.0.2 - negotiator: 1.0.0 + negotiator: 1.1.0 acorn-walk@8.3.5: dependencies: - acorn: 8.18.0 + acorn: 8.19.0 - acorn@8.18.0: {} + acorn@8.19.0: {} add-stream@1.0.0: {} adm-zip@0.5.18: {} - adm-zip@0.6.0: {} + adm-zip@0.6.1: {} agent-base@4.3.0: dependencies: @@ -15564,26 +15917,26 @@ snapshots: ajv@8.20.0: dependencies: fast-deep-equal: 3.1.3 - fast-uri: 3.1.5 + fast-uri: 3.1.9 json-schema-traverse: 1.0.0 require-from-string: 2.0.2 - algoliasearch@5.57.0: - dependencies: - '@algolia/abtesting': 1.23.0 - '@algolia/client-abtesting': 5.57.0 - '@algolia/client-analytics': 5.57.0 - '@algolia/client-common': 5.57.0 - '@algolia/client-insights': 5.57.0 - '@algolia/client-personalization': 5.57.0 - '@algolia/client-query-suggestions': 5.57.0 - '@algolia/client-search': 5.57.0 - '@algolia/ingestion': 1.57.0 - '@algolia/monitoring': 1.57.0 - '@algolia/recommend': 5.57.0 - '@algolia/requester-browser-xhr': 5.57.0 - '@algolia/requester-fetch': 5.57.0 - '@algolia/requester-node-http': 5.57.0 + algoliasearch@5.64.0: + dependencies: + '@algolia/abtesting': 1.30.0 + '@algolia/client-abtesting': 5.64.0 + '@algolia/client-analytics': 5.64.0 + '@algolia/client-common': 5.64.0 + '@algolia/client-insights': 5.64.0 + '@algolia/client-personalization': 5.64.0 + '@algolia/client-query-suggestions': 5.64.0 + '@algolia/client-search': 5.64.0 + '@algolia/ingestion': 1.64.0 + '@algolia/monitoring': 1.64.0 + '@algolia/recommend': 5.64.0 + '@algolia/requester-browser-xhr': 5.64.0 + '@algolia/requester-fetch': 5.64.0 + '@algolia/requester-node-http': 5.64.0 angular-mocks@1.5.11: {} @@ -15598,7 +15951,7 @@ snapshots: '@angular/common': link:packages/common '@angular/core': link:packages/core rxjs: 7.8.2 - tslib: 2.8.1 + tslib: 2.9.1 angular@1.5.11: {} @@ -15628,7 +15981,7 @@ snapshots: ansi-regex@5.0.1: {} - ansi-regex@6.3.0: {} + ansi-regex@6.6.0: {} ansi-styles@2.2.1: {} @@ -15644,6 +15997,8 @@ snapshots: ansi-styles@6.2.3: {} + ansi-styles@7.0.0: {} + ansi-wrap@0.1.0: {} any-promise@1.3.0: {} @@ -15663,16 +16018,16 @@ snapshots: lazystream: 1.0.1 lodash: 4.18.1 normalize-path: 3.0.0 - readable-stream: 4.7.0 + readable-stream: 4.8.0 - archiver@7.0.1: + archiver@7.0.1(bare-buffer@3.7.1): dependencies: archiver-utils: 5.0.2 async: 3.2.6 buffer-crc32: 1.0.0 - readable-stream: 4.7.0 + readable-stream: 4.8.0 readdir-glob: 1.1.3 - tar-stream: 3.2.0 + tar-stream: 3.2.2(bare-buffer@3.7.1) zip-stream: 6.0.1 transitivePeerDependencies: - bare-abort-controller @@ -15689,7 +16044,9 @@ snapshots: argparse@2.0.1: {} - argue-cli@3.1.0: {} + argparse@3.0.4: {} + + argue-cli@3.2.0: {} array-buffer-byte-length@1.0.2: dependencies: @@ -15738,12 +16095,6 @@ snapshots: assertion-error@2.0.1: {} - ast-types@0.13.4: - dependencies: - tslib: 2.8.1 - - astral-regex@2.0.0: {} - async-done@2.0.0: dependencies: end-of-stream: 1.4.5 @@ -15768,13 +16119,13 @@ snapshots: at-least-node@1.0.0: {} - autoprefixer@10.5.4(postcss@8.5.26): + autoprefixer@10.6.2(postcss@8.5.32): dependencies: - browserslist: 4.28.8 - caniuse-lite: 1.0.30001809 + browserslist: 4.29.5 + caniuse-lite: 1.0.30001823 fraction.js: 5.3.4 picocolors: 1.1.1 - postcss: 8.5.26 + postcss: 8.5.32 postcss-value-parser: 4.2.0 available-typed-arrays@1.0.7: @@ -15790,59 +16141,59 @@ snapshots: tunnel: 0.0.6 typed-rest-client: 1.8.11 - b4a@1.8.1: {} + b4a@1.9.0: {} - babel-jest@30.4.1(@babel/core@7.29.7(supports-color@11.0.0))(supports-color@11.0.0): + babel-jest@30.5.2(@babel/core@7.29.13(supports-color@11.0.0))(supports-color@11.0.0): dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) - '@jest/transform': 30.4.1(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) + '@jest/transform': 30.5.2(supports-color@11.0.0) '@types/babel__core': 7.20.5 - babel-plugin-istanbul: 7.0.1(supports-color@11.0.0) - babel-preset-jest: 30.4.0(@babel/core@7.29.7(supports-color@11.0.0)) + babel-plugin-istanbul: 8.0.0(supports-color@11.0.0) + babel-preset-jest: 30.5.0(@babel/core@7.29.13(supports-color@11.0.0)) chalk: 4.1.2 graceful-fs: 4.2.11 slash: 3.0.0 transitivePeerDependencies: - supports-color - babel-plugin-istanbul@7.0.1(supports-color@11.0.0): + babel-plugin-istanbul@8.0.0(supports-color@11.0.0): dependencies: '@babel/helper-plugin-utils': 7.29.7 '@istanbuljs/load-nyc-config': 1.1.0 '@istanbuljs/schema': 0.1.6 istanbul-lib-instrument: 6.0.3(supports-color@11.0.0) - test-exclude: 6.0.0 + test-exclude: 7.0.2 transitivePeerDependencies: - supports-color - babel-plugin-jest-hoist@30.4.0: + babel-plugin-jest-hoist@30.5.0: dependencies: '@types/babel__core': 7.20.5 - babel-preset-current-node-syntax@1.2.0(@babel/core@7.29.7(supports-color@11.0.0)): - dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) - '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-import-attributes': 7.29.7(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.29.7(supports-color@11.0.0)) - - babel-preset-jest@30.4.0(@babel/core@7.29.7(supports-color@11.0.0)): - dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) - babel-plugin-jest-hoist: 30.4.0 - babel-preset-current-node-syntax: 1.2.0(@babel/core@7.29.7(supports-color@11.0.0)) + babel-preset-current-node-syntax@1.2.0(@babel/core@7.29.13(supports-color@11.0.0)): + dependencies: + '@babel/core': 7.29.13(supports-color@11.0.0) + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-import-attributes': 7.29.7(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.29.13(supports-color@11.0.0)) + + babel-preset-jest@30.5.0(@babel/core@7.29.13(supports-color@11.0.0)): + dependencies: + '@babel/core': 7.29.13(supports-color@11.0.0) + babel-plugin-jest-hoist: 30.5.0 + babel-preset-current-node-syntax: 1.2.0(@babel/core@7.29.13(supports-color@11.0.0)) bach@2.0.1: dependencies: @@ -15854,40 +16205,44 @@ snapshots: balanced-match@4.0.4: {} - bare-events@2.9.1: {} + bare-buffer@3.7.1: {} - bare-fs@4.8.0: + bare-events@2.9.2: {} + + bare-fs@4.8.4(bare-buffer@3.7.1): dependencies: - bare-events: 2.9.1 - bare-path: 3.1.1 - bare-stream: 2.13.3(bare-events@2.9.1) - bare-url: 2.5.2 + bare-events: 2.9.2 + bare-path: 3.1.2 + bare-stream: 2.13.4(bare-buffer@3.7.1)(bare-events@2.9.2) + bare-url: 2.5.6 fast-fifo: 1.3.2 + optionalDependencies: + bare-buffer: 3.7.1 transitivePeerDependencies: - bare-abort-controller - react-native-b4a - bare-path@3.1.1: {} + bare-path@3.1.2: {} - bare-stream@2.13.3(bare-events@2.9.1): + bare-stream@2.13.4(bare-buffer@3.7.1)(bare-events@2.9.2): dependencies: - b4a: 1.8.1 - streamx: 2.28.0 + b4a: 1.9.0 + streamx: 2.28.1 teex: 1.0.1 optionalDependencies: - bare-events: 2.9.1 + bare-buffer: 3.7.1 + bare-events: 2.9.2 transitivePeerDependencies: - react-native-b4a - bare-url@2.5.2: + bare-url@2.5.6: dependencies: - bare-path: 3.1.1 + bare-buffer: 3.7.1 + bare-path: 3.1.2 base64-js@1.5.1: {} - base64id@2.0.0: {} - - baseline-browser-mapping@2.11.14: {} + baseline-browser-mapping@2.11.35: {} basic-auth-connect@1.1.0: dependencies: @@ -15897,30 +16252,32 @@ snapshots: dependencies: safe-buffer: 5.1.2 - basic-ftp@5.3.1: {} + bcp-47-match@2.0.3: {} + + bcp-47@2.1.2: + dependencies: + is-alphabetical: 2.0.1 + is-alphanumerical: 2.0.1 + is-decimal: 2.0.1 bcrypt-pbkdf@1.0.2: dependencies: tweetnacl: 0.14.5 - beasties@0.4.3: + beasties@0.5.5: dependencies: - css-select: 6.0.0 - css-what: 7.0.0 - dom-serializer: 2.0.0 - domhandler: 5.0.3 - htmlparser2: 10.1.0 + css-select: 7.0.0 + css-what: 8.0.0 + dom-serializer: 3.1.1 + domhandler: 6.0.1 + htmlparser2: 12.0.0 picocolors: 1.1.1 - postcss: 8.5.26 + postcss: 8.5.32 postcss-media-query-parser: 0.2.3 - postcss-safe-parser: 7.0.1(postcss@8.5.26) + postcss-safe-parser: 7.1.0(postcss@8.5.32) before-after-hook@4.0.0: {} - bidi-js@1.0.3: - dependencies: - require-from-string: 2.0.2 - big.js@7.0.1: {} bignumber.js@9.3.1: {} @@ -15951,7 +16308,7 @@ snapshots: bluebird@3.7.2: {} - body-parser@1.20.6(supports-color@11.0.0): + body-parser@1.20.9(supports-color@11.0.0): dependencies: bytes: 3.1.2 content-type: 1.0.5 @@ -15960,29 +16317,29 @@ snapshots: destroy: 1.2.0 http-errors: 2.0.1 iconv-lite: 0.4.24 - on-finished: 2.4.1 - qs: 6.15.3 + on-finished: 2.4.2 + qs: 6.16.2 raw-body: 2.5.3 type-is: 1.6.18 unpipe: 1.0.0 transitivePeerDependencies: - supports-color - body-parser@2.3.0(supports-color@11.0.0): + body-parser@2.4.0(supports-color@11.0.0): dependencies: bytes: 3.1.2 content-type: 2.1.0 debug: 4.4.3(supports-color@11.0.0) http-errors: 2.0.1 iconv-lite: 0.7.3 - on-finished: 2.4.1 - qs: 6.15.3 + on-finished: 2.4.2 + qs: 6.17.1 raw-body: 3.0.2 type-is: 2.1.0 transitivePeerDependencies: - supports-color - boolbase@1.0.0: {} + boolbase@2.0.0: {} bottleneck@2.19.5: {} @@ -15999,16 +16356,16 @@ snapshots: widest-line: 3.1.0 wrap-ansi: 7.0.0 - brace-expansion@1.1.18: + brace-expansion@1.1.21: dependencies: balanced-match: 1.0.2 concat-map: 0.0.1 - brace-expansion@2.1.4: + brace-expansion@2.1.7: dependencies: balanced-match: 1.0.2 - brace-expansion@5.0.9: + brace-expansion@5.0.12: dependencies: balanced-match: 4.0.4 @@ -16018,13 +16375,13 @@ snapshots: browser-stdout@1.3.1: {} - browserslist@4.28.8: + browserslist@4.29.5: dependencies: - baseline-browser-mapping: 2.11.14 - caniuse-lite: 1.0.30001809 - electron-to-chromium: 1.5.408 - node-releases: 2.0.53 - update-browserslist-db: 1.3.1(browserslist@4.28.8) + baseline-browser-mapping: 2.11.35 + caniuse-lite: 1.0.30001823 + electron-to-chromium: 1.5.478 + node-releases: 2.0.63 + update-browserslist-db: 1.3.4(browserslist@4.29.5) browserstack@1.6.1(supports-color@11.0.0): dependencies: @@ -16032,7 +16389,7 @@ snapshots: transitivePeerDependencies: - supports-color - bser@2.1.1: + bser@2.1.2: dependencies: node-int64: 0.4.0 @@ -16054,13 +16411,13 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 - bufferutil@4.1.0: + bufferutil@4.2.0: dependencies: node-gyp-build: 4.8.4 builtin-modules@1.1.1: {} - bundle-name@4.1.0: + bundle-name@4.1.1: dependencies: run-applescript: 7.1.0 @@ -16095,17 +16452,17 @@ snapshots: camelcase@6.3.0: {} - caniuse-lite@1.0.30001809: {} + caniuse-lite@1.0.30001823: {} caseless@0.12.0: {} ccount@2.0.1: {} - chai@6.2.2: {} + chai@6.3.0: {} chainsaw@0.0.9: dependencies: - traverse: 0.3.9 + traverse: 0.3.10 chalk@1.1.3: dependencies: @@ -16128,7 +16485,7 @@ snapshots: chalk@5.6.2: {} - chalk@6.0.0: {} + chalk@6.0.1: {} char-regex@1.0.2: {} @@ -16146,28 +16503,13 @@ snapshots: split-array-stream: 1.0.3 through2: 2.0.5 - cheerio-select@2.1.0: - dependencies: - boolbase: 1.0.0 - css-select: 5.2.2 - css-what: 6.2.2 - domelementtype: 2.3.0 - domhandler: 5.0.3 - domutils: 3.2.2 - - cheerio@1.2.0: + chevrotain@13.2.0: dependencies: - cheerio-select: 2.1.0 - dom-serializer: 2.0.0 - domhandler: 5.0.3 - domutils: 3.2.2 - encoding-sniffer: 0.2.1 - htmlparser2: 10.1.0 - parse5: 7.3.0 - parse5-htmlparser2-tree-adapter: 7.1.0 - parse5-parser-stream: 7.1.2 - undici: 7.29.0 - whatwg-mimetype: 4.0.0 + '@chevrotain/cst-dts-gen': 13.2.0 + '@chevrotain/gast': 13.2.0 + '@chevrotain/regexp-to-ast': 13.2.0 + '@chevrotain/types': 13.2.0 + '@chevrotain/utils': 13.2.0 chokidar@3.6.0: dependencies: @@ -16189,15 +16531,16 @@ snapshots: dependencies: readdirp: 5.1.1 - chownr@1.1.4: - optional: true + chokidar@6.0.0: + dependencies: + readdirp: 5.1.1 chownr@3.0.0: {} - chrome-remote-interface@0.33.3(bufferutil@4.1.0): + chrome-remote-interface@0.33.3(bufferutil@4.2.0): dependencies: commander: 2.11.0 - ws: 7.5.13(bufferutil@4.1.0) + ws: 7.5.13(bufferutil@4.2.0) transitivePeerDependencies: - bufferutil - utf-8-validate @@ -16206,15 +16549,15 @@ snapshots: ci-info@4.4.0: {} - cjs-module-lexer@2.2.1: {} + cjs-module-lexer@2.3.0: {} cjson@0.3.3: dependencies: json-parse-helpfulerror: 1.0.3 - cldr@8.0.0: + cldr@9.0.0: dependencies: - '@xmldom/xmldom': 0.8.14 + '@xmldom/xmldom': 0.8.15 escodegen: 2.1.0 esprima: 4.0.1 memoizeasync: 1.1.0 @@ -16222,7 +16565,7 @@ snapshots: pegjs: 0.10.0 seq: 0.3.5 unicoderegexp: 0.4.1 - xpath: 0.0.34 + xpath: 0.0.36 cldrjs@0.5.5: {} @@ -16268,12 +16611,12 @@ snapshots: cli-truncate@5.2.0: dependencies: slice-ansi: 8.0.0 - string-width: 8.2.2 + string-width: 8.3.0 - cli-truncate@6.1.1: + cli-truncate@6.2.0: dependencies: - slice-ansi: 9.0.0 - string-width: 8.2.2 + slice-ansi: 10.0.1 + string-width: 8.3.0 cli-width@4.1.0: {} @@ -16342,6 +16685,8 @@ snapshots: colorette@2.0.20: {} + colorjs.io@0.7.1: {} + colors@1.4.0: optional: true @@ -16357,7 +16702,7 @@ snapshots: commander@14.0.3: {} - commander@15.0.0: {} + commander@15.1.0: {} commander@2.11.0: {} @@ -16371,12 +16716,8 @@ snapshots: commander@7.2.0: {} - commander@8.3.0: {} - commander@9.5.0: {} - common-path-prefix@3.0.0: {} - common-tags@1.8.2: {} commondir@1.0.1: {} @@ -16392,17 +16733,18 @@ snapshots: crc32-stream: 6.0.0 is-stream: 2.0.1 normalize-path: 3.0.0 - readable-stream: 4.7.0 + readable-stream: 4.8.0 compressible@2.0.18: dependencies: mime-db: 1.54.0 - compression@1.8.1(supports-color@11.0.0): + compression@1.8.2(supports-color@11.0.0): dependencies: bytes: 3.1.2 compressible: 2.0.18 debug: 2.6.9(supports-color@11.0.0) + destroy: 1.2.0 negotiator: 0.6.4 on-headers: 1.1.0 safe-buffer: 5.2.1 @@ -16446,12 +16788,14 @@ snapshots: dependencies: safe-buffer: 5.2.1 - content-disposition@1.1.0: {} + content-disposition@2.0.1: {} content-type@1.0.5: {} content-type@2.1.0: {} + content-type@3.1.1: {} + conventional-changelog-angular@8.3.1: dependencies: compare-func: 2.0.0 @@ -16499,17 +16843,17 @@ snapshots: dependencies: '@simple-libs/stream-utils': 1.2.0 conventional-commits-filter: 5.0.0 - handlebars: 4.7.9 + handlebars: 4.7.10 meow: 13.2.0 - semver: 7.8.5 + semver: 7.8.6 - conventional-changelog-writer@9.2.1: + conventional-changelog-writer@9.3.0: dependencies: - '@conventional-changelog/template': 1.3.0 + '@conventional-changelog/template': 1.4.1 '@simple-libs/stream-utils': 2.0.0 - argue-cli: 3.1.0 + argue-cli: 3.2.0 conventional-commits-filter: 6.0.1 - semver: 7.8.5 + verkit: 0.5.0 conventional-changelog@6.0.0(conventional-commits-filter@5.0.0): dependencies: @@ -16529,14 +16873,14 @@ snapshots: conventional-changelog@8.1.3: dependencies: - '@conventional-changelog/git-client': 3.1.2(conventional-commits-filter@6.0.1)(conventional-commits-parser@7.1.2) + '@conventional-changelog/git-client': 3.2.0(conventional-commits-filter@6.0.1)(conventional-commits-parser@7.1.4) '@simple-libs/hosted-git-info': 2.0.0 '@simple-libs/normalize-package-data': 1.0.0 - argue-cli: 3.1.0 + argue-cli: 3.2.0 conventional-changelog-preset-loader: 6.0.1 - conventional-changelog-writer: 9.2.1 + conventional-changelog-writer: 9.3.0 conventional-commits-filter: 6.0.1 - conventional-commits-parser: 7.1.2 + conventional-commits-parser: 7.1.4 fd-package-json: 2.0.0 conventional-commits-filter@5.0.0: {} @@ -16548,10 +16892,10 @@ snapshots: '@simple-libs/stream-utils': 1.2.0 meow: 13.2.0 - conventional-commits-parser@7.1.2: + conventional-commits-parser@7.1.4: dependencies: '@simple-libs/stream-utils': 2.0.0 - argue-cli: 3.1.0 + argue-cli: 3.2.0 convert-source-map@1.9.0: {} @@ -16563,14 +16907,10 @@ snapshots: cookie@0.7.2: {} - copy-anything@3.0.5: - dependencies: - is-what: 4.1.16 - copy-props@4.0.0: dependencies: each-props: 3.0.0 - is-plain-object: 5.0.0 + is-plain-object: 5.1.0 core-util-is@1.0.2: {} @@ -16596,7 +16936,7 @@ snapshots: crc32-stream@6.0.0: dependencies: crc-32: 1.2.2 - readable-stream: 4.7.0 + readable-stream: 4.8.0 create-require@1.1.1: {} @@ -16614,43 +16954,26 @@ snapshots: crypto-random-string@2.0.0: {} - css-select@5.2.2: - dependencies: - boolbase: 1.0.0 - css-what: 6.2.2 - domhandler: 5.0.3 - domutils: 3.2.2 - nth-check: 2.1.1 - - css-select@6.0.0: - dependencies: - boolbase: 1.0.0 - css-what: 7.0.0 - domhandler: 5.0.3 - domutils: 3.2.2 - nth-check: 2.1.1 - - css-tree@3.2.1: + css-select@7.0.0: dependencies: - mdn-data: 2.27.1 - source-map-js: 1.2.1 + boolbase: 2.0.0 + css-what: 8.0.0 + domhandler: 6.0.1 + domutils: 4.0.2 + nth-check: 3.0.1 - css-what@6.2.2: {} - - css-what@7.0.0: {} - - cssesc@3.0.0: {} + css-what@8.0.0: {} cssstyle@4.6.0: dependencies: '@asamuzakjp/css-color': 3.2.0 rrweb-cssom: 0.8.0 - csv-parse@5.6.0: {} + csv-parse@7.0.3: {} custom-event@1.0.1: {} - cypress@15.21.1(bufferutil@4.1.0): + cypress@16.3.0(bufferutil@4.2.0): dependencies: '@cypress/request': 4.0.1 '@cypress/xvfb': 1.2.4(supports-color@8.1.1) @@ -16663,12 +16986,12 @@ snapshots: buffer: 5.7.1 cachedir: 2.4.0 chalk: 4.1.2 - chrome-remote-interface: 0.33.3(bufferutil@4.1.0) + chrome-remote-interface: 0.33.3(bufferutil@4.2.0) ci-info: 4.4.0 cli-table3: 0.6.1 commander: 6.2.1 common-tags: 1.8.2 - dayjs: 1.11.22 + dayjs: 1.11.23 debug: 4.4.3(supports-color@8.1.1) eventemitter2: 6.4.7 execa: 4.1.0 @@ -16686,7 +17009,7 @@ snapshots: proxy-from-env: 1.0.0 request-progress: 3.0.0 supports-color: 8.1.1 - systeminformation: 5.33.1 + systeminformation: 5.33.19 tmp: 0.2.7 tree-kill: 1.2.2 untildify: 4.0.0 @@ -16695,188 +17018,189 @@ snapshots: - bufferutil - utf-8-validate - cytoscape-cose-bilkent@4.1.0(cytoscape@3.34.1): + cytoscape-cose-bilkent@4.1.0(cytoscape@3.34.4): dependencies: cose-base: 1.0.3 - cytoscape: 3.34.1 + cytoscape: 3.34.4 - cytoscape-fcose@2.2.0(cytoscape@3.34.1): + cytoscape-fcose@2.2.0(cytoscape@3.34.4): dependencies: cose-base: 2.2.0 - cytoscape: 3.34.1 + cytoscape: 3.34.4 - cytoscape@3.34.1: {} + cytoscape@3.34.4: {} d3-array@2.12.1: dependencies: internmap: 1.0.1 - d3-array@3.2.4: + d3-array@3.2.5: dependencies: internmap: 2.0.3 - d3-axis@3.0.0: {} + d3-axis@3.0.1: {} - d3-brush@3.0.0: + d3-brush@3.0.1: dependencies: - d3-dispatch: 3.0.1 - d3-drag: 3.0.0 - d3-interpolate: 3.0.1 - d3-selection: 3.0.0 - d3-transition: 3.0.1(d3-selection@3.0.0) + d3-dispatch: 3.0.2 + d3-drag: 3.0.1 + d3-interpolate: 3.0.2 + d3-selection: 3.0.1 + d3-transition: 3.0.2(d3-selection@3.0.1) - d3-chord@3.0.1: + d3-chord@3.0.2: dependencies: - d3-path: 3.1.0 + d3-path: 3.1.1 - d3-color@3.1.0: {} + d3-color@3.1.1: {} - d3-contour@4.0.2: + d3-contour@4.0.3: dependencies: - d3-array: 3.2.4 + d3-array: 3.2.5 - d3-delaunay@6.0.4: + d3-delaunay@6.0.6: dependencies: delaunator: 5.1.0 - d3-dispatch@3.0.1: {} + d3-dispatch@3.0.2: {} - d3-drag@3.0.0: + d3-drag@3.0.1: dependencies: - d3-dispatch: 3.0.1 - d3-selection: 3.0.0 + d3-dispatch: 3.0.2 + d3-selection: 3.0.1 - d3-dsv@3.0.1: + d3-dsv@3.0.2: dependencies: commander: 7.2.0 iconv-lite: 0.6.3 rw: 1.3.3 - d3-ease@3.0.1: {} + d3-ease@3.0.2: {} - d3-fetch@3.0.1: + d3-fetch@3.0.2: dependencies: - d3-dsv: 3.0.1 + d3-dsv: 3.0.2 - d3-force@3.0.0: + d3-force@3.0.1: dependencies: - d3-dispatch: 3.0.1 - d3-quadtree: 3.0.1 - d3-timer: 3.0.1 + d3-dispatch: 3.0.2 + d3-quadtree: 3.0.2 + d3-timer: 3.0.2 - d3-format@3.1.2: {} + d3-format@3.1.3: {} - d3-geo@3.1.1: + d3-geo@3.1.2: dependencies: - d3-array: 3.2.4 + d3-array: 3.2.5 - d3-hierarchy@3.1.2: {} + d3-hierarchy@3.1.3: {} - d3-interpolate@3.0.1: + d3-interpolate@3.0.2: dependencies: - d3-color: 3.1.0 + d3-color: 3.1.1 d3-path@1.0.9: {} - d3-path@3.1.0: {} + d3-path@3.1.1: {} - d3-polygon@3.0.1: {} + d3-polygon@3.0.2: {} - d3-quadtree@3.0.1: {} + d3-quadtree@3.0.2: {} - d3-random@3.0.1: {} + d3-random@3.0.2: {} d3-sankey@0.12.3: dependencies: d3-array: 2.12.1 d3-shape: 1.3.7 - d3-scale-chromatic@3.1.0: + d3-scale-chromatic@3.1.1: dependencies: - d3-color: 3.1.0 - d3-interpolate: 3.0.1 + d3-color: 3.1.1 + d3-interpolate: 3.0.2 + d3-scale: 4.0.3 - d3-scale@4.0.2: + d3-scale@4.0.3: dependencies: - d3-array: 3.2.4 - d3-format: 3.1.2 - d3-interpolate: 3.0.1 - d3-time: 3.1.0 - d3-time-format: 4.1.0 + d3-array: 3.2.5 + d3-format: 3.1.3 + d3-interpolate: 3.0.2 + d3-time: 3.1.1 + d3-time-format: 4.1.1 - d3-selection@3.0.0: {} + d3-selection@3.0.1: {} d3-shape@1.3.7: dependencies: d3-path: 1.0.9 - d3-shape@3.2.0: - dependencies: - d3-path: 3.1.0 - - d3-time-format@4.1.0: - dependencies: - d3-time: 3.1.0 - - d3-time@3.1.0: - dependencies: - d3-array: 3.2.4 - - d3-timer@3.0.1: {} - - d3-transition@3.0.1(d3-selection@3.0.0): - dependencies: - d3-color: 3.1.0 - d3-dispatch: 3.0.1 - d3-ease: 3.0.1 - d3-interpolate: 3.0.1 - d3-selection: 3.0.0 - d3-timer: 3.0.1 - - d3-zoom@3.0.0: - dependencies: - d3-dispatch: 3.0.1 - d3-drag: 3.0.0 - d3-interpolate: 3.0.1 - d3-selection: 3.0.0 - d3-transition: 3.0.1(d3-selection@3.0.0) - - d3@7.9.0: - dependencies: - d3-array: 3.2.4 - d3-axis: 3.0.0 - d3-brush: 3.0.0 - d3-chord: 3.0.1 - d3-color: 3.1.0 - d3-contour: 4.0.2 - d3-delaunay: 6.0.4 - d3-dispatch: 3.0.1 - d3-drag: 3.0.0 - d3-dsv: 3.0.1 - d3-ease: 3.0.1 - d3-fetch: 3.0.1 - d3-force: 3.0.0 - d3-format: 3.1.2 - d3-geo: 3.1.1 - d3-hierarchy: 3.1.2 - d3-interpolate: 3.0.1 - d3-path: 3.1.0 - d3-polygon: 3.0.1 - d3-quadtree: 3.0.1 - d3-random: 3.0.1 - d3-scale: 4.0.2 - d3-scale-chromatic: 3.1.0 - d3-selection: 3.0.0 - d3-shape: 3.2.0 - d3-time: 3.1.0 - d3-time-format: 4.1.0 - d3-timer: 3.0.1 - d3-transition: 3.0.1(d3-selection@3.0.0) - d3-zoom: 3.0.0 + d3-shape@3.2.1: + dependencies: + d3-path: 3.1.1 + + d3-time-format@4.1.1: + dependencies: + d3-time: 3.1.1 + + d3-time@3.1.1: + dependencies: + d3-array: 3.2.5 + + d3-timer@3.0.2: {} + + d3-transition@3.0.2(d3-selection@3.0.1): + dependencies: + d3-color: 3.1.1 + d3-dispatch: 3.0.2 + d3-ease: 3.0.2 + d3-interpolate: 3.0.2 + d3-selection: 3.0.1 + d3-timer: 3.0.2 + + d3-zoom@3.0.1: + dependencies: + d3-dispatch: 3.0.2 + d3-drag: 3.0.1 + d3-interpolate: 3.0.2 + d3-selection: 3.0.1 + d3-transition: 3.0.2(d3-selection@3.0.1) + + d3@7.9.2: + dependencies: + d3-array: 3.2.5 + d3-axis: 3.0.1 + d3-brush: 3.0.1 + d3-chord: 3.0.2 + d3-color: 3.1.1 + d3-contour: 4.0.3 + d3-delaunay: 6.0.6 + d3-dispatch: 3.0.2 + d3-drag: 3.0.1 + d3-dsv: 3.0.2 + d3-ease: 3.0.2 + d3-fetch: 3.0.2 + d3-force: 3.0.1 + d3-format: 3.1.3 + d3-geo: 3.1.2 + d3-hierarchy: 3.1.3 + d3-interpolate: 3.0.2 + d3-path: 3.1.1 + d3-polygon: 3.0.2 + d3-quadtree: 3.0.2 + d3-random: 3.0.2 + d3-scale: 4.0.3 + d3-scale-chromatic: 3.1.1 + d3-selection: 3.0.1 + d3-shape: 3.2.1 + d3-time: 3.1.1 + d3-time-format: 4.1.1 + d3-timer: 3.0.2 + d3-transition: 3.0.2(d3-selection@3.0.1) + d3-zoom: 3.0.1 dagre-d3-es@7.0.14: dependencies: - d3: 7.9.0 + d3: 7.9.2 lodash-es: 4.18.1 dashdash@1.14.1: @@ -16885,17 +17209,15 @@ snapshots: data-uri-to-buffer@4.0.1: {} - data-uri-to-buffer@6.0.2: {} - data-urls@5.0.0: dependencies: whatwg-mimetype: 4.0.0 whatwg-url: 14.2.0 - data-urls@7.0.0: + data-urls@8.0.0: dependencies: whatwg-mimetype: 5.0.0 - whatwg-url: 16.0.1 + whatwg-url: 17.3.0 transitivePeerDependencies: - '@noble/hashes' @@ -16919,7 +17241,7 @@ snapshots: date-format@4.0.14: {} - dayjs@1.11.22: {} + dayjs@1.11.23: {} debug@2.6.9(supports-color@11.0.0): dependencies: @@ -16945,12 +17267,6 @@ snapshots: optionalDependencies: supports-color: 11.0.0 - debug@4.4.0(supports-color@11.0.0): - dependencies: - ms: 2.1.3 - optionalDependencies: - supports-color: 11.0.0 - debug@4.4.3(supports-color@11.0.0): dependencies: ms: 2.1.3 @@ -16965,15 +17281,8 @@ snapshots: decamelize@1.2.0: {} - decamelize@4.0.0: {} - decimal.js@10.6.0: {} - decompress-response@6.0.0: - dependencies: - mimic-response: 3.1.0 - optional: true - dedent@1.7.2: {} deep-extend@0.6.0: {} @@ -16988,7 +17297,7 @@ snapshots: default-browser@5.5.1: dependencies: - bundle-name: 4.1.0 + bundle-name: 4.1.1 default-browser-id: 5.0.1 defaults@1.0.4: @@ -17009,12 +17318,6 @@ snapshots: has-property-descriptors: 1.0.2 object-keys: 1.1.1 - degenerator@5.0.1: - dependencies: - ast-types: 0.13.4 - escodegen: 2.1.0 - esprima: 4.0.1 - del@2.2.2: dependencies: globby: 5.0.0 @@ -17033,8 +17336,6 @@ snapshots: depd@2.0.0: {} - dependency-graph@1.0.0: {} - dequal@2.0.3: {} destroy@1.2.0: {} @@ -17055,8 +17356,6 @@ snapshots: diff@4.0.4: {} - diff@7.0.0: {} - diff@9.0.0: {} discontinuous-range@1.0.0: {} @@ -17070,27 +17369,27 @@ snapshots: extend: 3.0.2 void-elements: 2.0.1 - dom-serializer@2.0.0: + dom-serializer@3.1.1: dependencies: - domelementtype: 2.3.0 - domhandler: 5.0.3 - entities: 4.5.0 + domelementtype: 3.0.0 + domhandler: 6.0.1 + entities: 8.1.0 - domelementtype@2.3.0: {} + domelementtype@3.0.0: {} - domhandler@5.0.3: + domhandler@6.0.1: dependencies: - domelementtype: 2.3.0 + domelementtype: 3.0.0 - dompurify@3.4.13: + dompurify@3.4.17: optionalDependencies: '@types/trusted-types': 2.0.7 - domutils@3.2.2: + domutils@4.0.2: dependencies: - dom-serializer: 2.0.0 - domelementtype: 2.3.0 - domhandler: 5.0.3 + dom-serializer: 3.1.1 + domelementtype: 3.0.0 + domhandler: 6.0.1 dot-prop@5.3.0: dependencies: @@ -17120,7 +17419,7 @@ snapshots: each-props@3.0.0: dependencies: - is-plain-object: 5.0.0 + is-plain-object: 5.1.0 object.defaults: 1.1.0 eastasianwidth@0.2.0: {} @@ -17140,36 +17439,35 @@ snapshots: ee-first@1.1.1: {} - ejs@6.0.1: {} + ejs@7.0.2: {} - electron-to-chromium@1.5.408: {} + electron-to-chromium@1.5.478: {} + + elkjs@0.12.1: {} emittery@0.13.1: {} emoji-regex@10.6.0: {} + emoji-regex@11.0.0: {} + emoji-regex@8.0.0: {} emoji-regex@9.2.2: {} emojilib@2.4.0: {} - empathic@2.0.1: {} + empathic@2.1.0: {} enabled@2.0.0: {} encodeurl@1.0.2: {} - encodeurl@2.0.0: {} - - encoding-sniffer@0.2.1: - dependencies: - iconv-lite: 0.6.3 - whatwg-encoding: 3.1.1 + encodeurl@2.0.1: {} - encoding@0.1.13: + encoding@0.1.14: dependencies: - iconv-lite: 0.6.3 + iconv-lite: 0.7.3 end-of-stream@1.4.5: dependencies: @@ -17177,18 +17475,17 @@ snapshots: engine.io-parser@5.2.3: {} - engine.io@6.6.9(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6): + engine.io@6.6.11(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6): dependencies: '@types/cors': 2.8.19 - '@types/node': 24.13.3 - '@types/ws': 8.18.1 + '@types/node': 20.19.43 + '@types/ws': 8.18.2 accepts: 1.3.8 - base64id: 2.0.0 cookie: 0.7.2 cors: 2.8.6 debug: 4.4.3(supports-color@11.0.0) engine.io-parser: 5.2.3 - ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6) + ws: 8.21.3(bufferutil@4.2.0)(utf-8-validate@6.0.6) transitivePeerDependencies: - bufferutil - supports-color @@ -17201,24 +17498,17 @@ snapshots: punycode: 1.4.1 safe-regex-test: 1.1.0 - entities@4.5.0: {} - entities@6.0.1: {} - entities@7.0.1: {} + entities@8.1.0: {} - entities@8.0.0: {} + entities@9.0.0: {} env-paths@2.2.1: optional: true environment@1.1.0: {} - errno@0.1.8: - dependencies: - prr: 1.0.1 - optional: true - error-ex@1.3.4: dependencies: is-arrayish: 0.2.1 @@ -17282,10 +17572,10 @@ snapshots: string.prototype.trimstart: 1.0.8 typed-array-buffer: 1.0.3 typed-array-byte-length: 1.0.3 - typed-array-byte-offset: 1.0.4 + typed-array-byte-offset: 1.0.5 typed-array-length: 1.0.8 unbox-primitive: 1.1.0 - which-typed-array: 1.1.22 + which-typed-array: 1.1.24 es-define-property@1.0.1: {} @@ -17293,6 +17583,8 @@ snapshots: es-module-lexer@2.3.2: {} + es-module-lexer@3.0.4: {} + es-object-atoms@1.1.2: dependencies: es-errors: 1.3.0 @@ -17313,7 +17605,7 @@ snapshots: is-date-object: 1.1.0 is-symbol: 1.1.1 - es-toolkit@1.51.0: {} + es-toolkit@1.53.2: {} es6-promise@4.2.8: {} @@ -17362,8 +17654,6 @@ snapshots: escape-string-regexp@2.0.0: {} - escape-string-regexp@4.0.0: {} - escodegen@2.1.0: dependencies: esprima: 4.0.1 @@ -17380,7 +17670,7 @@ snapshots: estree-walker@3.0.3: dependencies: - '@types/estree': 1.0.9 + '@types/estree': 1.0.10 esutils@2.0.3: {} @@ -17400,7 +17690,7 @@ snapshots: events-universal@1.0.1: dependencies: - bare-events: 2.9.1 + bare-events: 2.9.2 transitivePeerDependencies: - bare-abort-controller @@ -17451,7 +17741,7 @@ snapshots: '@apidevtools/json-schema-ref-parser': 9.1.2 ajv: 8.20.0 ajv-formats: 2.1.1(ajv@8.20.0) - body-parser: 1.20.6(supports-color@11.0.0) + body-parser: 1.20.9(supports-color@11.0.0) content-type: 1.0.5 deep-freeze: 0.0.1 events-listener: 1.1.0 @@ -17461,9 +17751,9 @@ snapshots: lodash: 4.18.1 openapi3-ts: 3.2.0 promise-breaker: 6.0.0 - qs: 6.15.3 + qs: 6.17.1 raw-body: 2.5.3 - semver: 7.8.5 + semver: 7.8.6 transitivePeerDependencies: - supports-color @@ -17471,47 +17761,44 @@ snapshots: exit@0.1.2: {} - expand-template@2.0.3: - optional: true - expand-tilde@2.0.2: dependencies: homedir-polyfill: 1.0.3 expect-type@1.4.0: {} - expect@30.4.1: + expect@30.5.2: dependencies: - '@jest/expect-utils': 30.4.1 - '@jest/get-type': 30.1.0 - jest-matcher-utils: 30.4.1 - jest-message-util: 30.4.1 - jest-mock: 30.4.1 - jest-util: 30.4.1 + '@jest/expect-utils': 30.5.2 + '@jest/get-type': 30.5.0 + jest-matcher-utils: 30.5.2 + jest-message-util: 30.5.1 + jest-mock: 30.5.2 + jest-util: 30.5.1 exponential-backoff@3.1.3: optional: true - express-rate-limit@8.6.2(express@5.2.1(supports-color@11.0.0))(supports-color@11.0.0): + express-rate-limit@8.7.3(express@5.3.0(supports-color@11.0.0))(supports-color@11.0.0): dependencies: debug: 4.4.3(supports-color@11.0.0) - express: 5.2.1(supports-color@11.0.0) - ip-address: 10.5.0 + express: 5.3.0(supports-color@11.0.0) + ip-address: 10.7.6 transitivePeerDependencies: - supports-color - express@4.22.2(supports-color@11.0.0): + express@4.22.3(supports-color@11.0.0): dependencies: accepts: 1.3.8 array-flatten: 1.1.1 - body-parser: 1.20.6(supports-color@11.0.0) + body-parser: 1.20.9(supports-color@11.0.0) content-disposition: 0.5.4 content-type: 1.0.5 cookie: 0.7.2 cookie-signature: 1.0.7 debug: 2.6.9(supports-color@11.0.0) depd: 2.0.0 - encodeurl: 2.0.0 + encodeurl: 2.0.1 escape-html: 1.0.3 etag: 1.8.1 finalhandler: 1.3.2(supports-color@11.0.0) @@ -17519,11 +17806,11 @@ snapshots: http-errors: 2.0.1 merge-descriptors: 1.0.3 methods: 1.1.2 - on-finished: 2.4.1 + on-finished: 2.4.2 parseurl: 1.3.3 path-to-regexp: 0.1.13 - proxy-addr: 2.0.7 - qs: 6.15.3 + proxy-addr: 2.0.8 + qs: 6.16.2 range-parser: 1.2.1 safe-buffer: 5.2.1 send: 0.19.2(supports-color@11.0.0) @@ -17536,17 +17823,17 @@ snapshots: transitivePeerDependencies: - supports-color - express@5.2.1(supports-color@11.0.0): + express@5.3.0(supports-color@11.0.0): dependencies: accepts: 2.0.0 - body-parser: 2.3.0(supports-color@11.0.0) - content-disposition: 1.1.0 - content-type: 1.0.5 + body-parser: 2.4.0(supports-color@11.0.0) + content-disposition: 2.0.1 + content-type: 2.1.0 cookie: 0.7.2 cookie-signature: 1.2.2 debug: 4.4.3(supports-color@11.0.0) depd: 2.0.0 - encodeurl: 2.0.0 + encodeurl: 2.0.1 escape-html: 1.0.3 etag: 1.8.1 finalhandler: 2.1.1(supports-color@11.0.0) @@ -17554,11 +17841,11 @@ snapshots: http-errors: 2.0.1 merge-descriptors: 2.0.0 mime-types: 3.0.2 - on-finished: 2.4.1 + on-finished: 2.4.2 once: 1.4.0 parseurl: 1.3.3 - proxy-addr: 2.0.7 - qs: 6.15.3 + proxy-addr: 2.0.8 + qs: 6.17.1 range-parser: 1.3.0 router: 2.2.0(supports-color@11.0.0) send: 1.2.1(supports-color@11.0.0) @@ -17601,19 +17888,15 @@ snapshots: dependencies: fast-string-truncated-width: 3.0.3 - fast-uri@3.1.5: {} + fast-uri@3.1.9: {} fast-wrap-ansi@0.2.2: dependencies: fast-string-width: 3.0.2 - fastdom@1.0.12: - dependencies: - strictdom: 1.0.1 - fastest-levenshtein@1.0.16: {} - fastq@1.20.1: + fastq@1.20.3: dependencies: reusify: 1.1.0 @@ -17621,17 +17904,17 @@ snapshots: dependencies: websocket-driver: 0.7.5 - fb-watchman@2.0.2: + fb-watchman@2.0.4: dependencies: - bser: 2.1.1 + bser: 2.1.2 fd-package-json@2.0.0: dependencies: walk-up-path: 4.0.0 - fdir@6.5.0(picomatch@4.0.5): + fdir@6.5.0(picomatch@4.0.7): optionalDependencies: - picomatch: 4.0.5 + picomatch: 4.0.7 fecha@4.2.3: {} @@ -17661,9 +17944,9 @@ snapshots: finalhandler@1.3.2(supports-color@11.0.0): dependencies: debug: 2.6.9(supports-color@11.0.0) - encodeurl: 2.0.0 + encodeurl: 2.0.1 escape-html: 1.0.3 - on-finished: 2.4.1 + on-finished: 2.4.2 parseurl: 1.3.3 statuses: 2.0.2 unpipe: 1.0.0 @@ -17673,19 +17956,14 @@ snapshots: finalhandler@2.1.1(supports-color@11.0.0): dependencies: debug: 4.4.3(supports-color@11.0.0) - encodeurl: 2.0.0 + encodeurl: 2.0.1 escape-html: 1.0.3 - on-finished: 2.4.1 + on-finished: 2.4.2 parseurl: 1.3.3 statuses: 2.0.2 transitivePeerDependencies: - supports-color - find-cache-directory@6.0.0: - dependencies: - common-path-prefix: 3.0.0 - pkg-dir: 8.0.0 - find-up-simple@1.0.1: {} find-up@4.1.0: @@ -17693,11 +17971,6 @@ snapshots: locate-path: 5.0.0 path-exists: 4.0.0 - find-up@5.0.0: - dependencies: - locate-path: 6.0.0 - path-exists: 4.0.0 - findup-sync@5.0.0: dependencies: detect-file: 1.0.0 @@ -17708,27 +17981,26 @@ snapshots: fined@2.0.0: dependencies: expand-tilde: 2.0.2 - is-plain-object: 5.0.0 + is-plain-object: 5.1.0 object.defaults: 1.1.0 object.pick: 1.3.0 parse-filepath: 1.0.2 - firebase-tools@15.27.0(@cfworker/json-schema@4.1.1)(@types/node@20.19.43)(bufferutil@4.1.0)(encoding@0.1.13)(supports-color@11.0.0)(utf-8-validate@6.0.6): + firebase-tools@15.35.0(@types/node@20.19.43)(bare-buffer@3.7.1)(bufferutil@4.2.0)(encoding@0.1.14)(supports-color@11.0.0): dependencies: - '@apphosting/common': 0.0.8 '@electric-sql/pglite': 0.3.16 '@electric-sql/pglite-tools': 0.2.21(@electric-sql/pglite@0.3.16) - '@google-cloud/cloud-sql-connector': 1.11.3(supports-color@11.0.0) + '@google-cloud/cloud-sql-connector': 1.12.1(supports-color@11.0.0) '@google-cloud/pubsub': 5.3.1(supports-color@11.0.0) '@inquirer/prompts': 7.10.1(@types/node@20.19.43) - '@modelcontextprotocol/sdk': 1.30.0(@cfworker/json-schema@4.1.1)(supports-color@11.0.0) + '@modelcontextprotocol/sdk': 1.32.2(supports-color@11.0.0) abort-controller: 3.0.0 ajv: 8.20.0 ajv-formats: 3.0.1 - archiver: 7.0.1 + archiver: 7.0.1(bare-buffer@3.7.1) async-lock: 1.4.1 - body-parser: 1.20.6(supports-color@11.0.0) - chokidar: 3.6.0 + body-parser: 1.20.9(supports-color@11.0.0) + chokidar: 4.0.3 cjson: 0.3.3 cli-table3: 0.6.5 colorette: 2.0.20 @@ -17737,54 +18009,51 @@ snapshots: cors: 2.8.6 cross-env: 7.0.3 cross-spawn: 7.0.6 - csv-parse: 5.6.0 + csv-parse: 7.0.3 exegesis: 4.3.0(supports-color@11.0.0) exegesis-express: 4.0.0(supports-color@11.0.0) - express: 4.22.2(supports-color@11.0.0) + express: 4.22.3(supports-color@11.0.0) form-data: 4.0.6 fs-extra: 10.1.0 fuzzy: 0.1.3 - gaxios: 6.7.1(encoding@0.1.13)(supports-color@11.0.0) + gaxios: 6.7.1(encoding@0.1.14)(supports-color@11.0.0) glob: 10.5.0 - google-auth-library: 9.15.1(encoding@0.1.13)(supports-color@11.0.0) - ignore: 7.0.6 - js-yaml: 4.3.1 + google-auth-library: 9.15.1(encoding@0.1.14)(supports-color@11.0.0) + ignore: 7.0.14 + js-yaml: 4.3.2 jsonwebtoken: 9.0.3 libsodium-wrappers: 0.7.16 lodash: 4.18.1 lsofi: 2.0.0 marked: 13.0.3 - marked-terminal: 7.3.0(marked@13.0.3) - mime: 2.6.0 + marked-terminal: 7.3.1(marked@13.0.3) minimatch: 3.1.5 - morgan: 1.11.0(supports-color@11.0.0) - node-fetch: 2.7.0(encoding@0.1.13) + morgan: 1.12.1(supports-color@11.0.0) + node-fetch: 2.7.0(encoding@0.1.14) open: 6.4.0 ora: 5.4.1 - pg: 8.23.0 + pg: 8.23.1 pg-gateway: 0.3.0-beta.4 pglite-2: '@electric-sql/pglite@0.2.17' portfinder: 1.0.38(supports-color@11.0.0) progress: 2.0.3 - proxy-agent: 6.5.0(supports-color@11.0.0) retry: 0.13.1 - semver: 7.8.5 - sql-formatter: 15.8.2 - stream-chain: 2.2.5 - stream-json: 1.9.1 - superstatic: 10.0.0(encoding@0.1.13)(supports-color@11.0.0) + semver: 7.8.6 + sql-formatter: 15.9.0 + stream-chain: 4.4.1 + stream-json: 3.8.0 + superstatic: 10.0.0(encoding@0.1.14)(supports-color@11.0.0) tar: 7.5.22 tcp-port-used: 1.0.3(supports-color@11.0.0) tmp: 0.2.7 triple-beam: 1.4.1 - undici: 6.28.0 - universal-analytics: 0.5.4(supports-color@11.0.0) - update-notifier-cjs: 5.1.7(encoding@0.1.13) + undici: 6.29.1 + update-notifier-cjs: 5.1.7(encoding@0.1.14) winston: 3.19.0 winston-transport: 4.9.0 - ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6) - yaml: 2.9.0 - zod: 4.4.3 + ws: 8.22.2(bufferutil@4.2.0)(utf-8-validate@6.0.6) + yaml: 2.9.1 + zod: 4.6.7 transitivePeerDependencies: - '@cfworker/json-schema' - '@types/node' @@ -17797,55 +18066,63 @@ snapshots: - supports-color - utf-8-validate - firebase@12.17.1: - dependencies: - '@firebase/ai': 2.14.0(@firebase/app-types@0.9.5)(@firebase/app@0.16.0) - '@firebase/analytics': 0.10.23(@firebase/app@0.16.0) - '@firebase/analytics-compat': 0.2.29(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0) - '@firebase/app': 0.16.0 - '@firebase/app-check': 0.13.0(@firebase/app@0.16.0) - '@firebase/app-check-compat': 0.4.6(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0) - '@firebase/app-compat': 0.5.16 - '@firebase/app-types': 0.9.5 - '@firebase/auth': 1.13.4(@firebase/app@0.16.0) - '@firebase/auth-compat': 0.6.9(@firebase/app-compat@0.5.16)(@firebase/app-types@0.9.5)(@firebase/app@0.16.0) - '@firebase/data-connect': 0.7.3(@firebase/app@0.16.0) - '@firebase/database': 1.1.4 - '@firebase/database-compat': 2.1.6(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0) - '@firebase/firestore': 4.17.0(@firebase/app@0.16.0) - '@firebase/firestore-compat': 0.4.12(@firebase/app-compat@0.5.16)(@firebase/app-types@0.9.5)(@firebase/app@0.16.0) - '@firebase/functions': 0.13.6(@firebase/app@0.16.0) - '@firebase/functions-compat': 0.4.6(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0) - '@firebase/installations': 0.6.23(@firebase/app@0.16.0) - '@firebase/installations-compat': 0.2.23(@firebase/app-compat@0.5.16)(@firebase/app-types@0.9.5)(@firebase/app@0.16.0) - '@firebase/messaging': 0.13.1(@firebase/app@0.16.0) - '@firebase/messaging-compat': 0.2.28(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0) - '@firebase/performance': 0.7.13(@firebase/app@0.16.0) - '@firebase/performance-compat': 0.2.26(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0) - '@firebase/remote-config': 0.9.1(@firebase/app@0.16.0) - '@firebase/remote-config-compat': 0.2.28(@firebase/app-compat@0.5.16)(@firebase/app@0.16.0) - '@firebase/storage': 0.14.4(@firebase/app@0.16.0) - '@firebase/storage-compat': 0.4.4(@firebase/app-compat@0.5.16)(@firebase/app-types@0.9.5)(@firebase/app@0.16.0) - '@firebase/util': 1.15.2 + firebase@13.2.0(@angular/core@packages+core)(@angular/router@packages+router)(supports-color@11.0.0): + dependencies: + '@firebase/ai': 3.0.0(@firebase/app-types@0.9.6)(@firebase/app@0.16.5) + '@firebase/analytics': 0.10.25(@firebase/app@0.16.5) + '@firebase/analytics-compat': 0.2.31(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5) + '@firebase/app': 0.16.5 + '@firebase/app-check': 0.13.1(@firebase/app@0.16.5) + '@firebase/app-check-compat': 0.4.7(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5) + '@firebase/app-compat': 0.5.21 + '@firebase/app-types': 0.9.6 + '@firebase/auth': 1.13.9(@firebase/app@0.16.5) + '@firebase/auth-compat': 0.6.14(@firebase/app-compat@0.5.21)(@firebase/app-types@0.9.6)(@firebase/app@0.16.5) + '@firebase/crashlytics': 0.1.0(@angular/core@packages+core)(@angular/router@packages+router)(@firebase/app-types@0.9.6)(@firebase/app@0.16.5)(supports-color@11.0.0) + '@firebase/data-connect': 0.7.4(@firebase/app@0.16.5) + '@firebase/database': 1.1.5 + '@firebase/database-compat': 2.1.7(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5) + '@firebase/firestore': 4.19.1(@firebase/app@0.16.5) + '@firebase/firestore-compat': 0.4.17(@firebase/app-compat@0.5.21)(@firebase/app-types@0.9.6)(@firebase/app@0.16.5) + '@firebase/functions': 0.14.0(@firebase/app@0.16.5) + '@firebase/functions-compat': 0.5.0(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5) + '@firebase/installations': 0.6.24(@firebase/app@0.16.5) + '@firebase/installations-compat': 0.2.24(@firebase/app-compat@0.5.21)(@firebase/app-types@0.9.6)(@firebase/app@0.16.5) + '@firebase/messaging': 0.13.3(@firebase/app@0.16.5) + '@firebase/messaging-compat': 0.2.30(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5) + '@firebase/performance': 0.7.14(@firebase/app@0.16.5) + '@firebase/performance-compat': 0.2.27(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5) + '@firebase/remote-config': 0.9.3(@firebase/app@0.16.5) + '@firebase/remote-config-compat': 0.2.30(@firebase/app-compat@0.5.21)(@firebase/app@0.16.5) + '@firebase/storage': 0.14.6(@firebase/app@0.16.5) + '@firebase/storage-compat': 0.4.6(@firebase/app-compat@0.5.21)(@firebase/app-types@0.9.6)(@firebase/app@0.16.5) + '@firebase/util': 1.15.3 transitivePeerDependencies: + - '@angular/core' + - '@angular/router' - '@react-native-async-storage/async-storage' + - '@types/react' + - next + - react + - react-router-dom + - supports-color flagged-respawn@2.0.0: {} - flat@5.0.2: {} - flatted@3.4.4: {} + flru@1.0.2: {} + fn.name@1.1.0: {} - folder-hash@4.1.3(supports-color@11.0.0): + folder-hash@4.1.4(supports-color@11.0.0): dependencies: - debug: 4.4.0(supports-color@11.0.0) + debug: 4.4.3(supports-color@11.0.0) minimatch: 7.4.9 transitivePeerDependencies: - supports-color - follow-redirects@1.16.0(debug@4.4.3(supports-color@11.0.0)): + follow-redirects@1.16.3(debug@4.4.3(supports-color@11.0.0)): optionalDependencies: debug: 4.4.3(supports-color@11.0.0) @@ -17892,21 +18169,12 @@ snapshots: fresh@2.0.0: {} - fs-constants@1.0.0: - optional: true - fs-extra@10.1.0: dependencies: graceful-fs: 4.2.11 jsonfile: 6.2.1 universalify: 2.0.1 - fs-extra@11.4.0: - dependencies: - graceful-fs: 4.2.11 - jsonfile: 6.2.1 - universalify: 2.0.1 - fs-extra@8.1.0: dependencies: graceful-fs: 4.2.11 @@ -17923,7 +18191,7 @@ snapshots: fs-mkdirp-stream@2.0.1: dependencies: graceful-fs: 4.2.11 - streamx: 2.28.0 + streamx: 2.28.1 transitivePeerDependencies: - bare-abort-controller - react-native-b4a @@ -17951,12 +18219,12 @@ snapshots: fuzzy@0.1.3: {} - gaxios@6.7.1(encoding@0.1.13)(supports-color@11.0.0): + gaxios@6.7.1(encoding@0.1.14)(supports-color@11.0.0): dependencies: extend: 3.0.2 https-proxy-agent: 7.0.6(supports-color@11.0.0) is-stream: 2.0.1 - node-fetch: 2.7.0(encoding@0.1.13) + node-fetch: 2.7.0(encoding@0.1.14) uuid: 9.0.1 transitivePeerDependencies: - encoding @@ -17979,9 +18247,17 @@ snapshots: transitivePeerDependencies: - supports-color - gcp-metadata@6.1.1(encoding@0.1.13)(supports-color@11.0.0): + gaxios@8.3.2(supports-color@11.0.0): + dependencies: + extend: 3.0.2 + https-proxy-agent: 7.0.6(supports-color@11.0.0) + node-fetch: 3.3.2 + transitivePeerDependencies: + - supports-color + + gcp-metadata@6.1.1(encoding@0.1.14)(supports-color@11.0.0): dependencies: - gaxios: 6.7.1(encoding@0.1.13)(supports-color@11.0.0) + gaxios: 6.7.1(encoding@0.1.14)(supports-color@11.0.0) google-logging-utils: 0.0.2 json-bigint: 1.0.0 transitivePeerDependencies: @@ -18004,6 +18280,14 @@ snapshots: transitivePeerDependencies: - supports-color + gcp-metadata@9.2.3(supports-color@11.0.0): + dependencies: + gaxios: 8.3.2(supports-color@11.0.0) + google-logging-utils: 2.1.1 + json-bigint: 1.0.0 + transitivePeerDependencies: + - supports-color + generator-function@2.0.1: {} gensync@1.0.0-beta.2: {} @@ -18012,7 +18296,7 @@ snapshots: get-caller-file@2.0.5: {} - get-east-asian-width@1.6.0: {} + get-east-asian-width@1.7.0: {} get-intrinsic@1.3.0: dependencies: @@ -18046,22 +18330,14 @@ snapshots: es-errors: 1.3.0 get-intrinsic: 1.3.0 - get-tsconfig@4.14.2: + get-tsconfig@4.14.3: dependencies: resolve-pkg-maps: 1.0.0 - get-tsconfig@5.0.0-beta.5: + get-tsconfig@5.0.0-beta.6: dependencies: resolve-pkg-maps: 1.0.0 - get-uri@6.0.5(supports-color@11.0.0): - dependencies: - basic-ftp: 5.3.1 - data-uri-to-buffer: 6.0.2 - debug: 4.4.3(supports-color@11.0.0) - transitivePeerDependencies: - - supports-color - getpass@0.1.7: dependencies: assert-plus: 1.0.0 @@ -18082,9 +18358,6 @@ snapshots: - conventional-commits-filter - conventional-commits-parser - github-from-package@0.0.0: - optional: true - glob-parent@5.1.2: dependencies: is-glob: 4.0.3 @@ -18101,16 +18374,16 @@ snapshots: lodash.isobject: 2.4.1 toxic: 1.0.1 - glob-stream@8.0.3: + glob-stream@8.0.4: dependencies: '@gulpjs/to-absolute-glob': 4.0.0 anymatch: 3.1.3 - fastq: 1.20.1 + fastq: 1.20.3 glob-parent: 6.0.2 is-glob: 4.0.3 is-negated-glob: 1.0.0 normalize-path: 3.0.0 - streamx: 2.28.0 + streamx: 2.28.1 transitivePeerDependencies: - bare-abort-controller - react-native-b4a @@ -18138,12 +18411,18 @@ snapshots: package-json-from-dist: 1.0.1 path-scurry: 2.0.2 - glob@13.0.6: + glob@13.0.7: dependencies: minimatch: 10.2.6 minipass: 7.1.3 path-scurry: 2.0.2 + glob@14.0.4: + dependencies: + minimatch: 11.0.5 + minipass: 7.1.3 + path-scurry: 3.0.0 + glob@7.2.3: dependencies: fs.realpath: 1.0.0 @@ -18176,15 +18455,6 @@ snapshots: define-properties: 1.2.1 gopd: 1.2.0 - globby@14.1.0: - dependencies: - '@sindresorhus/merge-streams': 2.3.0 - fast-glob: 3.3.3 - ignore: 7.0.6 - path-type: 6.0.0 - slash: 5.1.0 - unicorn-magic: 0.3.0 - globby@5.0.0: dependencies: array-union: 1.0.2 @@ -18204,7 +18474,7 @@ snapshots: ecdsa-sig-formatter: 1.0.11 gaxios: 7.3.1(supports-color@11.0.0) gcp-metadata: 8.1.4(supports-color@11.0.0) - google-logging-utils: 1.2.0 + google-logging-utils: 1.1.3 gtoken: 8.0.0(supports-color@11.0.0) jws: 4.0.1 transitivePeerDependencies: @@ -18221,13 +18491,24 @@ snapshots: transitivePeerDependencies: - supports-color - google-auth-library@9.15.1(encoding@0.1.13)(supports-color@11.0.0): + google-auth-library@11.3.3(supports-color@11.0.0): + dependencies: + base64-js: 1.5.1 + ecdsa-sig-formatter: 1.0.11 + gaxios: 8.3.2(supports-color@11.0.0) + gcp-metadata: 9.2.3(supports-color@11.0.0) + google-logging-utils: 2.1.1 + jws: 4.0.1 + transitivePeerDependencies: + - supports-color + + google-auth-library@9.15.1(encoding@0.1.14)(supports-color@11.0.0): dependencies: base64-js: 1.5.1 ecdsa-sig-formatter: 1.0.11 - gaxios: 6.7.1(encoding@0.1.13)(supports-color@11.0.0) - gcp-metadata: 6.1.1(encoding@0.1.13)(supports-color@11.0.0) - gtoken: 7.1.0(encoding@0.1.13)(supports-color@11.0.0) + gaxios: 6.7.1(encoding@0.1.14)(supports-color@11.0.0) + gcp-metadata: 6.1.1(encoding@0.1.14)(supports-color@11.0.0) + gtoken: 7.1.0(encoding@0.1.14)(supports-color@11.0.0) jws: 4.0.1 transitivePeerDependencies: - encoding @@ -18235,7 +18516,7 @@ snapshots: google-gax@5.0.8(supports-color@11.0.0): dependencies: - '@grpc/grpc-js': 1.14.4 + '@grpc/grpc-js': 1.14.7 '@grpc/proto-loader': 0.8.1 duplexify: 4.1.3 google-auth-library: 10.5.0(supports-color@11.0.0) @@ -18243,7 +18524,7 @@ snapshots: node-fetch: 3.3.2 object-hash: 3.0.0 proto3-json-serializer: 3.0.4 - protobufjs: 7.6.5 + protobufjs: 7.6.6 retry-request: 8.0.4(supports-color@11.0.0) rimraf: 5.0.10 transitivePeerDependencies: @@ -18255,13 +18536,15 @@ snapshots: google-logging-utils@1.2.0: {} - googleapis-common@8.0.3(supports-color@11.0.0): + google-logging-utils@2.1.1: {} + + googleapis-common@9.3.1(supports-color@11.0.0): dependencies: extend: 3.0.2 - gaxios: 7.1.3(supports-color@11.0.0) - google-auth-library: 10.5.0(supports-color@11.0.0) - google-logging-utils: 1.1.3 - qs: 6.15.3 + gaxios: 8.3.2(supports-color@11.0.0) + google-auth-library: 11.3.3(supports-color@11.0.0) + google-logging-utils: 2.1.1 + qs: 6.17.1 url-template: 2.0.8 transitivePeerDependencies: - supports-color @@ -18272,21 +18555,21 @@ snapshots: graceful-fs@4.2.11: {} - graphql-tag@2.12.7(graphql@16.14.2): + graphql-tag@2.12.7(graphql@16.15.0): dependencies: - graphql: 16.14.2 - tslib: 2.8.1 + graphql: 16.15.0 + tslib: 2.9.1 - graphql@16.14.2: {} + graphql@16.15.0: {} grpc-gcp@1.1.1: dependencies: - '@grpc/grpc-js': 1.14.4 - protobufjs: 7.6.5 + '@grpc/grpc-js': 1.14.7 + protobufjs: 7.6.6 - gtoken@7.1.0(encoding@0.1.13)(supports-color@11.0.0): + gtoken@7.1.0(encoding@0.1.14)(supports-color@11.0.0): dependencies: - gaxios: 6.7.1(encoding@0.1.13)(supports-color@11.0.0) + gaxios: 6.7.1(encoding@0.1.14)(supports-color@11.0.0) jws: 4.0.1 transitivePeerDependencies: - encoding @@ -18340,7 +18623,7 @@ snapshots: hachure-fill@0.5.2: {} - handlebars@4.7.9: + handlebars@4.7.10: dependencies: minimist: 1.2.8 neo-async: 2.6.2 @@ -18389,13 +18672,13 @@ snapshots: hashish@0.0.4: dependencies: - traverse: 0.6.11 + traverse: 0.6.14 hasown@2.0.4: dependencies: function-bind: 1.1.2 - hast-util-to-html@9.0.5: + hast-util-to-html@9.0.6: dependencies: '@types/hast': 3.0.5 '@types/unist': 3.0.3 @@ -18423,11 +18706,11 @@ snapshots: dependencies: parse-passwd: 1.0.0 - hono@4.13.2: {} + hono@4.13.17: {} hosted-git-info@10.1.1: dependencies: - lru-cache: 11.5.2 + lru-cache: 11.5.3 hosted-git-info@4.1.0: dependencies: @@ -18445,9 +18728,9 @@ snapshots: dependencies: whatwg-encoding: 3.1.1 - html-encoding-sniffer@6.0.0: + html-encoding-sniffer@7.0.0: dependencies: - '@exodus/bytes': 1.15.1 + '@exodus/bytes': 1.16.0 transitivePeerDependencies: - '@noble/hashes' @@ -18457,12 +18740,12 @@ snapshots: html-void-elements@3.0.0: {} - htmlparser2@10.1.0: + htmlparser2@12.0.0: dependencies: - domelementtype: 2.3.0 - domhandler: 5.0.3 - domutils: 3.2.2 - entities: 7.0.1 + domelementtype: 3.0.0 + domhandler: 6.0.1 + domutils: 4.0.2 + entities: 8.1.0 http-errors@2.0.1: dependencies: @@ -18481,10 +18764,19 @@ snapshots: transitivePeerDependencies: - supports-color + http-proxy-agent@9.1.0(supports-color@11.0.0): + dependencies: + agent-base: 9.0.0 + debug: 4.4.3(supports-color@11.0.0) + proxy-agent-negotiate: 1.1.0 + transitivePeerDependencies: + - kerberos + - supports-color + http-proxy@1.18.1(debug@4.4.3(supports-color@11.0.0)): dependencies: eventemitter3: 4.0.7 - follow-redirects: 1.16.0(debug@4.4.3(supports-color@11.0.0)) + follow-redirects: 1.16.3(debug@4.4.3(supports-color@11.0.0)) requires-port: 1.0.0 transitivePeerDependencies: - debug @@ -18565,12 +18857,18 @@ snapshots: ieee754@1.2.1: {} - ignore@7.0.6: {} + ignore@7.0.14: {} immediate@3.0.6: {} immutable@5.1.9: {} + import-in-the-middle@3.6.0: + dependencies: + cjs-module-lexer: 2.3.0 + es-module-lexer: 3.0.4 + module-details-from-path: 1.0.4 + import-lazy@2.1.0: {} import-local@3.2.0: @@ -18595,11 +18893,7 @@ snapshots: ini@2.0.0: {} - injection-js@2.6.1: - dependencies: - tslib: 2.8.1 - - install-artifact-from-github@1.7.0: + install-artifact-from-github@1.8.1: optional: true internal-slot@1.1.0: @@ -18614,7 +18908,7 @@ snapshots: interpret@3.1.1: {} - ip-address@10.5.0: {} + ip-address@10.7.6: {} ip-regex@2.1.0: {} @@ -18625,6 +18919,13 @@ snapshots: is-relative: 1.0.0 is-windows: 1.0.2 + is-alphabetical@2.0.1: {} + + is-alphanumerical@2.0.1: + dependencies: + is-alphabetical: 2.0.1 + is-decimal: 2.0.1 + is-array-buffer@3.0.5: dependencies: call-bind: 1.0.9 @@ -18660,7 +18961,7 @@ snapshots: dependencies: ci-info: 2.0.0 - is-core-module@2.16.2: + is-core-module@2.18.0: dependencies: hasown: 2.0.4 @@ -18675,6 +18976,8 @@ snapshots: call-bound: 1.0.4 has-tostringtag: 1.0.2 + is-decimal@2.0.1: {} + is-docker@2.2.1: {} is-docker@3.0.0: {} @@ -18693,7 +18996,7 @@ snapshots: is-fullwidth-code-point@5.1.0: dependencies: - get-east-asian-width: 1.6.0 + get-east-asian-width: 1.7.0 is-generator-fn@2.1.0: {} @@ -18709,6 +19012,8 @@ snapshots: dependencies: is-extglob: 2.1.1 + is-in-ssh@1.0.0: {} + is-inside-container@1.0.0: dependencies: is-docker: 3.0.0 @@ -18755,9 +19060,9 @@ snapshots: is-path-inside@3.0.3: {} - is-plain-obj@2.1.0: {} + is-path-inside@4.0.0: {} - is-plain-object@5.0.0: {} + is-plain-object@5.1.0: {} is-potential-custom-element-name@1.0.1: {} @@ -18765,7 +19070,7 @@ snapshots: is-reference@1.2.1: dependencies: - '@types/estree': 1.0.9 + '@types/estree': 1.0.10 is-regex@1.2.1: dependencies: @@ -18801,7 +19106,7 @@ snapshots: is-typed-array@1.1.15: dependencies: - which-typed-array: 1.1.22 + which-typed-array: 1.1.24 is-typedarray@1.0.0: {} @@ -18830,8 +19135,6 @@ snapshots: call-bound: 1.0.4 get-intrinsic: 1.3.0 - is-what@4.1.16: {} - is-windows@1.0.2: {} is-wsl@1.1.0: {} @@ -18868,9 +19171,9 @@ snapshots: isobject@3.0.1: {} - isomorphic-fetch@3.0.0(encoding@0.1.13): + isomorphic-fetch@3.0.0(encoding@0.1.14): dependencies: - node-fetch: 2.7.0(encoding@0.1.13) + node-fetch: 2.7.0(encoding@0.1.14) whatwg-fetch: 3.6.20 transitivePeerDependencies: - encoding @@ -18881,21 +19184,21 @@ snapshots: istanbul-lib-instrument@5.2.1(supports-color@11.0.0): dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) - '@babel/parser': 7.29.8 + '@babel/core': 7.29.13(supports-color@11.0.0) + '@babel/parser': 7.29.13 '@istanbuljs/schema': 0.1.6 istanbul-lib-coverage: 3.2.2 - semver: 6.3.1 + semver: 6.3.2 transitivePeerDependencies: - supports-color istanbul-lib-instrument@6.0.3(supports-color@11.0.0): dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) - '@babel/parser': 7.29.8 + '@babel/core': 7.29.13(supports-color@11.0.0) + '@babel/parser': 7.29.13 '@istanbuljs/schema': 0.1.6 istanbul-lib-coverage: 3.2.2 - semver: 7.8.5 + semver: 7.8.6 transitivePeerDependencies: - supports-color @@ -18948,9 +19251,11 @@ snapshots: jasmine-core@6.3.0: {} + jasmine-core@7.0.2: {} + jasmine-reporters@2.5.2: dependencies: - '@xmldom/xmldom': 0.8.14 + '@xmldom/xmldom': 0.8.15 mkdirp: 1.0.4 jasmine@2.8.0: @@ -18962,36 +19267,42 @@ snapshots: jasmine@6.3.0: dependencies: '@jasminejs/reporters': 1.1.0 - glob: 13.0.6 + glob: 13.0.7 jasmine-core: 6.3.0 + jasmine@7.0.0: + dependencies: + '@jasminejs/reporters': 1.1.0 + glob: 13.0.7 + jasmine-core: 7.0.2 + jasminewd2@2.2.0: {} - jest-changed-files@30.4.1: + jest-changed-files@30.5.1: dependencies: execa: 5.1.1 - jest-util: 30.4.1 + jest-util: 30.5.1 p-limit: 3.1.0 - jest-circus@30.4.2(supports-color@11.0.0): + jest-circus@30.5.2(supports-color@11.0.0): dependencies: - '@jest/environment': 30.4.1 - '@jest/expect': 30.4.1(supports-color@11.0.0) - '@jest/test-result': 30.4.1 - '@jest/types': 30.4.1 - '@types/node': 24.13.3 + '@jest/environment': 30.5.2 + '@jest/expect': 30.5.2(supports-color@11.0.0) + '@jest/test-result': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.19.2 chalk: 4.1.2 co: 4.6.0 dedent: 1.7.2 is-generator-fn: 2.1.0 - jest-each: 30.4.1 - jest-matcher-utils: 30.4.1 - jest-message-util: 30.4.1 - jest-runtime: 30.4.2(supports-color@11.0.0) - jest-snapshot: 30.4.1(supports-color@11.0.0) - jest-util: 30.4.1 + jest-each: 30.5.2 + jest-matcher-utils: 30.5.2 + jest-message-util: 30.5.1 + jest-runtime: 30.5.2(supports-color@11.0.0) + jest-snapshot: 30.5.2(supports-color@11.0.0) + jest-util: 30.5.1 p-limit: 3.1.0 - pretty-format: 30.4.1 + pretty-format: 30.5.1 pure-rand: 7.0.1 slash: 3.0.0 stack-utils: 2.0.6 @@ -18999,17 +19310,17 @@ snapshots: - babel-plugin-macros - supports-color - jest-cli@30.4.2(@types/node@24.13.3)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.13.3)(typescript@6.0.3)): + jest-cli@30.5.2(@types/node@24.19.2)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.19.2)(typescript@6.0.3)): dependencies: - '@jest/core': 30.4.2(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.13.3)(typescript@6.0.3)) - '@jest/test-result': 30.4.1 - '@jest/types': 30.4.1 + '@jest/core': 30.5.2(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.19.2)(typescript@6.0.3)) + '@jest/test-result': 30.5.2 + '@jest/types': 30.5.1 chalk: 4.1.2 exit-x: 0.2.2 import-local: 3.2.0 - jest-config: 30.4.2(@types/node@24.13.3)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.13.3)(typescript@6.0.3)) - jest-util: 30.4.1 - jest-validate: 30.4.1 + jest-config: 30.5.2(@types/node@24.19.2)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.19.2)(typescript@6.0.3)) + jest-util: 30.5.1 + jest-validate: 30.5.1 yargs: 17.7.3 transitivePeerDependencies: - '@types/node' @@ -19018,270 +19329,268 @@ snapshots: - supports-color - ts-node - jest-config@30.4.2(@types/node@24.13.3)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.13.3)(typescript@6.0.3)): + jest-config@30.5.2(@types/node@24.19.2)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.19.2)(typescript@6.0.3)): dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) - '@jest/get-type': 30.1.0 - '@jest/pattern': 30.4.0 - '@jest/test-sequencer': 30.4.1 - '@jest/types': 30.4.1 - babel-jest: 30.4.1(@babel/core@7.29.7(supports-color@11.0.0))(supports-color@11.0.0) + '@babel/core': 7.29.13(supports-color@11.0.0) + '@jest/get-type': 30.5.0 + '@jest/pattern': 30.5.0 + '@jest/test-sequencer': 30.5.2 + '@jest/types': 30.5.1 + babel-jest: 30.5.2(@babel/core@7.29.13(supports-color@11.0.0))(supports-color@11.0.0) chalk: 4.1.2 ci-info: 4.4.0 deepmerge: 4.3.1 - glob: 10.5.0 + glob: 13.0.7 graceful-fs: 4.2.11 - jest-circus: 30.4.2(supports-color@11.0.0) - jest-docblock: 30.4.0 - jest-environment-node: 30.4.1 - jest-regex-util: 30.4.0 - jest-resolve: 30.4.1 - jest-runner: 30.4.2(supports-color@11.0.0) - jest-util: 30.4.1 - jest-validate: 30.4.1 + jest-circus: 30.5.2(supports-color@11.0.0) + jest-docblock: 30.5.0 + jest-environment-node: 30.5.2 + jest-regex-util: 30.5.0 + jest-resolve: 30.5.1 + jest-runner: 30.5.2(supports-color@11.0.0) + jest-util: 30.5.1 + jest-validate: 30.5.1 parse-json: 5.2.0 - pretty-format: 30.4.1 + pretty-format: 30.5.1 slash: 3.0.0 strip-json-comments: 3.1.1 optionalDependencies: - '@types/node': 24.13.3 - ts-node: 10.9.2(@types/node@24.13.3)(typescript@6.0.3) + '@types/node': 24.19.2 + ts-node: 10.9.2(@types/node@24.19.2)(typescript@6.0.3) transitivePeerDependencies: - babel-plugin-macros - supports-color - jest-diff@30.4.1: + jest-diff@30.5.2: dependencies: - '@jest/diff-sequences': 30.4.0 - '@jest/get-type': 30.1.0 + '@jest/diff-sequences': 30.5.0 + '@jest/get-type': 30.5.0 chalk: 4.1.2 - pretty-format: 30.4.1 + pretty-format: 30.5.1 - jest-docblock@30.4.0: + jest-docblock@30.5.0: dependencies: detect-newline: 3.1.0 - jest-each@30.4.1: + jest-each@30.5.2: dependencies: - '@jest/get-type': 30.1.0 - '@jest/types': 30.4.1 + '@jest/get-type': 30.5.0 + '@jest/types': 30.5.1 chalk: 4.1.2 - jest-util: 30.4.1 - pretty-format: 30.4.1 + jest-regex-util: 30.5.0 + jest-util: 30.5.1 + pretty-format: 30.5.1 - jest-environment-jsdom@30.4.1(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6): + jest-environment-jsdom@30.5.2(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6): dependencies: - '@jest/environment': 30.4.1 - '@jest/environment-jsdom-abstract': 30.4.1(jsdom@26.1.0(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6)) - jsdom: 26.1.0(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) + '@jest/environment': 30.5.2 + '@jest/environment-jsdom-abstract': 30.5.2(@types/jsdom@21.1.7)(jsdom@26.1.0(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6)) + '@types/jsdom': 21.1.7 + jsdom: 26.1.0(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) transitivePeerDependencies: - bufferutil - supports-color - utf-8-validate - jest-environment-node@30.4.1: + jest-environment-node@30.5.2: dependencies: - '@jest/environment': 30.4.1 - '@jest/fake-timers': 30.4.1 - '@jest/types': 30.4.1 - '@types/node': 24.13.3 - jest-mock: 30.4.1 - jest-util: 30.4.1 - jest-validate: 30.4.1 + '@jest/environment': 30.5.2 + '@jest/fake-timers': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.19.2 + jest-mock: 30.5.2 + jest-util: 30.5.1 + jest-validate: 30.5.1 - jest-haste-map@30.4.1: + jest-haste-map@30.5.1: dependencies: - '@jest/types': 30.4.1 - '@types/node': 24.13.3 + '@jest/types': 30.5.1 + '@parcel/watcher': 2.6.0 + '@types/node': 24.19.2 anymatch: 3.1.3 - fb-watchman: 2.0.2 + fb-watchman: 2.0.4 + fdir: 6.5.0(picomatch@4.0.7) graceful-fs: 4.2.11 - jest-regex-util: 30.4.0 - jest-util: 30.4.1 - jest-worker: 30.4.1 - picomatch: 4.0.5 - walker: 1.0.8 - optionalDependencies: - fsevents: 2.3.3 + jest-regex-util: 30.5.0 + jest-util: 30.5.1 + jest-worker: 30.5.1 + picomatch: 4.0.7 - jest-leak-detector@30.4.1: + jest-leak-detector@30.5.1: dependencies: - '@jest/get-type': 30.1.0 - pretty-format: 30.4.1 + '@jest/get-type': 30.5.0 + pretty-format: 30.5.1 - jest-matcher-utils@30.4.1: + jest-matcher-utils@30.5.2: dependencies: - '@jest/get-type': 30.1.0 + '@jest/get-type': 30.5.0 chalk: 4.1.2 - jest-diff: 30.4.1 - pretty-format: 30.4.1 + jest-diff: 30.5.2 + pretty-format: 30.5.1 - jest-message-util@30.4.1: + jest-message-util@30.5.1: dependencies: '@babel/code-frame': 7.29.7 - '@jest/types': 30.4.1 + '@jest/types': 30.5.1 '@types/stack-utils': 2.0.3 chalk: 4.1.2 graceful-fs: 4.2.11 - jest-util: 30.4.1 - picomatch: 4.0.5 - pretty-format: 30.4.1 + jest-util: 30.5.1 + picomatch: 4.0.7 + pretty-format: 30.5.1 slash: 3.0.0 stack-utils: 2.0.6 - jest-mock@30.4.1: + jest-mock@30.5.2: dependencies: - '@jest/types': 30.4.1 - '@types/node': 24.13.3 - jest-util: 30.4.1 + '@jest/expect-utils': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.19.2 + jest-util: 30.5.1 - jest-pnp-resolver@1.2.3(jest-resolve@30.4.1): - optionalDependencies: - jest-resolve: 30.4.1 - - jest-regex-util@30.4.0: {} + jest-regex-util@30.5.0: {} - jest-resolve-dependencies@30.4.2(supports-color@11.0.0): + jest-resolve-dependencies@30.5.2(supports-color@11.0.0): dependencies: - jest-regex-util: 30.4.0 - jest-snapshot: 30.4.1(supports-color@11.0.0) + jest-regex-util: 30.5.0 + jest-snapshot: 30.5.2(supports-color@11.0.0) transitivePeerDependencies: - supports-color - jest-resolve@30.4.1: + jest-resolve@30.5.1: dependencies: chalk: 4.1.2 graceful-fs: 4.2.11 - jest-haste-map: 30.4.1 - jest-pnp-resolver: 1.2.3(jest-resolve@30.4.1) - jest-util: 30.4.1 - jest-validate: 30.4.1 + jest-haste-map: 30.5.1 + jest-util: 30.5.1 + jest-validate: 30.5.1 slash: 3.0.0 - unrs-resolver: 1.12.2 + unrs-resolver: 1.13.0 - jest-runner@30.4.2(supports-color@11.0.0): + jest-runner@30.5.2(supports-color@11.0.0): dependencies: - '@jest/console': 30.4.1 - '@jest/environment': 30.4.1 - '@jest/test-result': 30.4.1 - '@jest/transform': 30.4.1(supports-color@11.0.0) - '@jest/types': 30.4.1 - '@types/node': 24.13.3 + '@jest/console': 30.5.2 + '@jest/environment': 30.5.2 + '@jest/source-map': 30.5.2 + '@jest/test-result': 30.5.2 + '@jest/transform': 30.5.2(supports-color@11.0.0) + '@jest/types': 30.5.1 + '@types/node': 24.19.2 chalk: 4.1.2 emittery: 0.13.1 exit-x: 0.2.2 graceful-fs: 4.2.11 - jest-docblock: 30.4.0 - jest-environment-node: 30.4.1 - jest-haste-map: 30.4.1 - jest-leak-detector: 30.4.1 - jest-message-util: 30.4.1 - jest-resolve: 30.4.1 - jest-runtime: 30.4.2(supports-color@11.0.0) - jest-util: 30.4.1 - jest-watcher: 30.4.1 - jest-worker: 30.4.1 + jest-docblock: 30.5.0 + jest-environment-node: 30.5.2 + jest-haste-map: 30.5.1 + jest-leak-detector: 30.5.1 + jest-message-util: 30.5.1 + jest-resolve: 30.5.1 + jest-runtime: 30.5.2(supports-color@11.0.0) + jest-util: 30.5.1 + jest-watcher: 30.5.2 + jest-worker: 30.5.1 p-limit: 3.1.0 - source-map-support: 0.5.13 transitivePeerDependencies: - supports-color - jest-runtime@30.4.2(supports-color@11.0.0): + jest-runtime@30.5.2(supports-color@11.0.0): dependencies: - '@jest/environment': 30.4.1 - '@jest/fake-timers': 30.4.1 - '@jest/globals': 30.4.1(supports-color@11.0.0) - '@jest/source-map': 30.0.1 - '@jest/test-result': 30.4.1 - '@jest/transform': 30.4.1(supports-color@11.0.0) - '@jest/types': 30.4.1 - '@types/node': 24.13.3 + '@jest/environment': 30.5.2 + '@jest/fake-timers': 30.5.2 + '@jest/globals': 30.5.2(supports-color@11.0.0) + '@jest/source-map': 30.5.2 + '@jest/test-result': 30.5.2 + '@jest/transform': 30.5.2(supports-color@11.0.0) + '@jest/types': 30.5.1 + '@types/node': 24.19.2 chalk: 4.1.2 - cjs-module-lexer: 2.2.1 + cjs-module-lexer: 2.3.0 collect-v8-coverage: 1.0.3 - glob: 10.5.0 + es-module-lexer: 2.3.2 + glob: 13.0.7 graceful-fs: 4.2.11 - jest-haste-map: 30.4.1 - jest-message-util: 30.4.1 - jest-mock: 30.4.1 - jest-regex-util: 30.4.0 - jest-resolve: 30.4.1 - jest-snapshot: 30.4.1(supports-color@11.0.0) - jest-util: 30.4.1 + jest-haste-map: 30.5.1 + jest-message-util: 30.5.1 + jest-mock: 30.5.2 + jest-regex-util: 30.5.0 + jest-resolve: 30.5.1 + jest-snapshot: 30.5.2(supports-color@11.0.0) + jest-util: 30.5.1 slash: 3.0.0 strip-bom: 4.0.0 transitivePeerDependencies: - supports-color - jest-snapshot@30.4.1(supports-color@11.0.0): - dependencies: - '@babel/core': 7.29.7(supports-color@11.0.0) - '@babel/generator': 7.29.8 - '@babel/plugin-syntax-jsx': 7.29.7(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/plugin-syntax-typescript': 7.29.7(@babel/core@7.29.7(supports-color@11.0.0)) - '@babel/types': 7.29.8 - '@jest/expect-utils': 30.4.1 - '@jest/get-type': 30.1.0 - '@jest/snapshot-utils': 30.4.1 - '@jest/transform': 30.4.1(supports-color@11.0.0) - '@jest/types': 30.4.1 - babel-preset-current-node-syntax: 1.2.0(@babel/core@7.29.7(supports-color@11.0.0)) + jest-snapshot@30.5.2(supports-color@11.0.0): + dependencies: + '@babel/core': 7.29.13(supports-color@11.0.0) + '@babel/generator': 7.29.13 + '@babel/plugin-syntax-jsx': 7.29.7(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/plugin-syntax-typescript': 7.29.7(@babel/core@7.29.13(supports-color@11.0.0)) + '@babel/types': 7.29.11 + '@jest/expect-utils': 30.5.2 + '@jest/get-type': 30.5.0 + '@jest/snapshot-utils': 30.5.1 + '@jest/transform': 30.5.2(supports-color@11.0.0) + '@jest/types': 30.5.1 + babel-preset-current-node-syntax: 1.2.0(@babel/core@7.29.13(supports-color@11.0.0)) chalk: 4.1.2 - expect: 30.4.1 + expect: 30.5.2 graceful-fs: 4.2.11 - jest-diff: 30.4.1 - jest-matcher-utils: 30.4.1 - jest-message-util: 30.4.1 - jest-util: 30.4.1 - pretty-format: 30.4.1 - semver: 7.8.5 + jest-diff: 30.5.2 + jest-matcher-utils: 30.5.2 + jest-message-util: 30.5.1 + jest-util: 30.5.1 + pretty-format: 30.5.1 + semver: 7.8.6 synckit: 0.11.13 transitivePeerDependencies: - supports-color - jest-util@30.4.1: + jest-util@30.5.1: dependencies: - '@jest/types': 30.4.1 - '@types/node': 24.13.3 + '@jest/types': 30.5.1 + '@types/node': 24.19.2 chalk: 4.1.2 ci-info: 4.4.0 graceful-fs: 4.2.11 - picomatch: 4.0.5 + picomatch: 4.0.7 - jest-validate@30.4.1: + jest-validate@30.5.1: dependencies: - '@jest/get-type': 30.1.0 - '@jest/types': 30.4.1 + '@jest/get-type': 30.5.0 + '@jest/types': 30.5.1 camelcase: 6.3.0 chalk: 4.1.2 leven: 3.1.0 - pretty-format: 30.4.1 + pretty-format: 30.5.1 - jest-watcher@30.4.1: + jest-watcher@30.5.2: dependencies: - '@jest/test-result': 30.4.1 - '@jest/types': 30.4.1 - '@types/node': 24.13.3 + '@jest/test-result': 30.5.2 + '@jest/types': 30.5.1 + '@types/node': 24.19.2 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 - jest-util: 30.4.1 + jest-util: 30.5.1 string-length: 4.0.2 - jest-worker@30.4.1: + jest-worker@30.5.1: dependencies: - '@types/node': 24.13.3 - '@ungap/structured-clone': 1.3.3 - jest-util: 30.4.1 + '@types/node': 24.19.2 + '@ungap/structured-clone': 1.4.0 + jest-util: 30.5.1 merge-stream: 2.0.0 supports-color: 8.1.1 - jest@30.4.2(@types/node@24.13.3)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.13.3)(typescript@6.0.3)): + jest@30.5.2(@types/node@24.19.2)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.19.2)(typescript@6.0.3)): dependencies: - '@jest/core': 30.4.2(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.13.3)(typescript@6.0.3)) - '@jest/types': 30.4.1 + '@jest/core': 30.5.2(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.19.2)(typescript@6.0.3)) + '@jest/types': 30.5.1 import-local: 3.2.0 - jest-cli: 30.4.2(@types/node@24.13.3)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.13.3)(typescript@6.0.3)) + jest-cli: 30.5.2(@types/node@24.19.2)(supports-color@11.0.0)(ts-node@10.9.2(@types/node@24.19.2)(typescript@6.0.3)) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -19299,24 +19608,28 @@ snapshots: url-join: 0.0.1 valid-url: 1.0.9 - jose@6.2.9: {} + jose@6.2.16: {} js-tokens@10.0.0: {} js-tokens@4.0.0: {} - js-yaml@3.15.1: + js-yaml@3.15.2: dependencies: argparse: 1.0.10 esprima: 4.0.1 - js-yaml@4.3.1: + js-yaml@4.3.2: dependencies: argparse: 2.0.1 + js-yaml@5.5.0: + dependencies: + argparse: 3.0.4 + jsbn@0.1.1: {} - jsdom@26.1.0(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6): + jsdom@26.1.0(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6): dependencies: cssstyle: 4.6.0 data-urls: 5.0.0 @@ -19325,7 +19638,7 @@ snapshots: http-proxy-agent: 7.0.2(supports-color@11.0.0) https-proxy-agent: 7.0.6(supports-color@11.0.0) is-potential-custom-element-name: 1.0.1 - nwsapi: 2.2.24 + nwsapi: 2.2.28 parse5: 7.3.0 rrweb-cssom: 0.8.0 saxes: 6.0.0 @@ -19336,35 +19649,32 @@ snapshots: whatwg-encoding: 3.1.1 whatwg-mimetype: 4.0.0 whatwg-url: 14.2.0 - ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6) + ws: 8.22.2(bufferutil@4.2.0)(utf-8-validate@6.0.6) xml-name-validator: 5.0.0 transitivePeerDependencies: - bufferutil - supports-color - utf-8-validate - jsdom@30.0.1: + jsdom@31.0.0: dependencies: - '@asamuzakjp/css-color': 6.0.7 - '@asamuzakjp/dom-selector': 8.3.2 - '@bramus/specificity': 2.4.2 - '@csstools/css-syntax-patches-for-csstree': 1.1.8(css-tree@3.2.1) - '@exodus/bytes': 1.15.1 - css-tree: 3.2.1 - data-urls: 7.0.0 + '@exodus/bytes': 1.16.0 + bcp-47: 2.1.2 + bcp-47-match: 2.0.3 + data-urls: 8.0.0 decimal.js: 10.6.0 - html-encoding-sniffer: 6.0.0 + html-encoding-sniffer: 7.0.0 is-potential-custom-element-name: 1.0.1 - lru-cache: 11.5.2 - parse5: 8.0.1 + lru-cache: 11.5.3 + parse5: 8.1.1 + parse5-parser-stream: 8.1.1 saxes: 6.0.0 - symbol-tree: 3.2.4 - tough-cookie: 6.0.2 - undici: 8.10.0 - w3c-xmlserializer: 5.0.0 + tough-cookie: 6.1.0 + undici: 8.12.4 + w3c-xmlserializer: 6.0.0 webidl-conversions: 8.0.1 whatwg-mimetype: 5.0.0 - whatwg-url: 17.1.0 + whatwg-url: 17.3.0 xml-name-validator: 5.0.0 transitivePeerDependencies: - '@noble/hashes' @@ -19420,7 +19730,7 @@ snapshots: lodash.isstring: 4.0.1 lodash.once: 4.1.1 ms: 2.1.3 - semver: 7.8.5 + semver: 7.8.6 jsprim@1.4.2: dependencies: @@ -19436,7 +19746,7 @@ snapshots: json-schema: 0.4.0 verror: 1.10.0 - jszip@3.10.1: + jszip@3.10.2: dependencies: lie: 3.3.0 pako: 1.0.11 @@ -19474,31 +19784,25 @@ snapshots: is-wsl: 2.2.0 which: 3.0.1 - karma-jasmine-html-reporter@2.2.0(jasmine-core@6.3.0)(karma-jasmine@5.1.0(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)))(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)): + karma-jasmine-html-reporter@2.3.0(jasmine-core@7.0.2)(karma-jasmine@5.1.0(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)))(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)): dependencies: - jasmine-core: 6.3.0 - karma: 6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) - karma-jasmine: 5.1.0(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)) - - karma-jasmine-html-reporter@2.3.0(jasmine-core@6.3.0)(karma-jasmine@5.1.0(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)))(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)): - dependencies: - jasmine-core: 6.3.0 - karma: 6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) - karma-jasmine: 5.1.0(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)) + jasmine-core: 7.0.2 + karma: 6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) + karma-jasmine: 5.1.0(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)) - karma-jasmine@5.1.0(karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)): + karma-jasmine@5.1.0(karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6)): dependencies: jasmine-core: 4.6.1 - karma: 6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) + karma: 6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6) karma-sourcemap-loader@0.4.0: dependencies: graceful-fs: 4.2.11 - karma@6.4.4(bufferutil@4.1.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6): + karma@6.4.4(bufferutil@4.2.0)(debug@4.4.3(supports-color@11.0.0))(supports-color@11.0.0)(utf-8-validate@6.0.6): dependencies: '@colors/colors': 1.5.0 - body-parser: 1.20.6(supports-color@11.0.0) + body-parser: 1.20.9(supports-color@11.0.0) braces: 3.0.3 chokidar: 3.6.0 connect: 3.7.0(supports-color@11.0.0) @@ -19516,7 +19820,7 @@ snapshots: qjobs: 1.2.0 range-parser: 1.3.0 rimraf: 3.0.2 - socket.io: 4.8.3(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) + socket.io: 4.8.4(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) source-map: 0.6.1 tmp: 0.2.7 ua-parser-js: 0.7.41 @@ -19527,15 +19831,9 @@ snapshots: - supports-color - utf-8-validate - katex@0.16.47: + katex@0.18.10: dependencies: - commander: 8.3.0 - - keytar@7.9.0: - dependencies: - node-addon-api: 4.3.0 - prebuild-install: 7.1.3 - optional: true + commander: 15.1.0 khroma@2.1.0: {} @@ -19553,21 +19851,6 @@ snapshots: lead@4.0.0: {} - less@4.9.0(supports-color@11.0.0): - dependencies: - copy-anything: 3.0.5 - parse-node-version: 1.0.1 - optionalDependencies: - errno: 0.1.8 - graceful-fs: 4.2.11 - make-dir: 5.1.0 - mime: 1.6.0 - needle: 3.5.0 - probe-image-size: 7.4.0(supports-color@11.0.0) - source-map: 0.6.1 - transitivePeerDependencies: - - supports-color - leven@3.1.0: {} libsodium-wrappers@0.7.16: @@ -19586,9 +19869,9 @@ snapshots: findup-sync: 5.0.0 fined: 2.0.0 flagged-respawn: 2.0.0 - is-plain-object: 5.0.0 + is-plain-object: 5.1.0 rechoir: 0.8.0 - resolve: 1.22.12 + resolve: 1.22.14 lightningcss-android-arm64@1.33.0: optional: true @@ -19639,19 +19922,15 @@ snapshots: lightningcss-win32-arm64-msvc: 1.33.0 lightningcss-win32-x64-msvc: 1.33.0 - lilconfig@3.1.3: {} + lilconfig@3.1.4: {} lines-and-columns@1.2.4: {} - linkify-it@5.0.2: - dependencies: - uc.micro: 2.1.0 - - listr2@11.0.0: + listr2@11.4.1: dependencies: - cli-truncate: 6.1.1 + cli-truncate: 6.2.0 log-update: 8.0.0 - wrap-ansi: 10.0.0 + wrap-ansi: 10.0.2 listr2@9.0.5: dependencies: @@ -19662,32 +19941,28 @@ snapshots: rfdc: 1.4.1 wrap-ansi: 9.0.2 - lmdb@3.5.6: + lmdb@3.5.9: dependencies: - '@harperfast/extended-iterable': 1.0.3 + '@harperfast/extended-iterable': 1.0.5 msgpackr: 1.12.1 node-addon-api: 6.1.0 node-gyp-build-optional-packages: 5.2.2 - ordered-binary: 1.6.1 - weak-lru-cache: 1.2.2 + ordered-binary: 1.6.3 + weak-lru-cache: 1.2.3 optionalDependencies: - '@lmdb/lmdb-darwin-arm64': 3.5.6 - '@lmdb/lmdb-darwin-x64': 3.5.6 - '@lmdb/lmdb-linux-arm': 3.5.6 - '@lmdb/lmdb-linux-arm64': 3.5.6 - '@lmdb/lmdb-linux-x64': 3.5.6 - '@lmdb/lmdb-win32-arm64': 3.5.6 - '@lmdb/lmdb-win32-x64': 3.5.6 + '@lmdb/lmdb-darwin-arm64': 3.5.9 + '@lmdb/lmdb-darwin-x64': 3.5.9 + '@lmdb/lmdb-linux-arm': 3.5.9 + '@lmdb/lmdb-linux-arm64': 3.5.9 + '@lmdb/lmdb-linux-x64': 3.5.9 + '@lmdb/lmdb-win32-arm64': 3.5.9 + '@lmdb/lmdb-win32-x64': 3.5.9 optional: true locate-path@5.0.0: dependencies: p-locate: 4.1.0 - locate-path@6.0.0: - dependencies: - p-locate: 5.0.0 - lodash-es@4.18.1: {} lodash._objecttypes@2.4.1: {} @@ -19710,15 +19985,10 @@ snapshots: lodash.isstring@4.0.1: {} - lodash.merge@4.6.2: - optional: true - lodash.once@4.1.1: {} lodash.snakecase@4.1.1: {} - lodash.truncate@4.4.2: {} - lodash@4.18.1: {} log-symbols@4.1.0: @@ -19748,10 +20018,10 @@ snapshots: dependencies: ansi-escapes: 7.3.0 cli-cursor: 5.0.0 - slice-ansi: 9.0.0 - string-width: 8.2.2 + slice-ansi: 9.0.1 + string-width: 8.3.0 strip-ansi: 7.2.0 - wrap-ansi: 10.0.0 + wrap-ansi: 10.0.2 log4js@6.9.1(supports-color@11.0.0): dependencies: @@ -19776,7 +20046,7 @@ snapshots: lru-cache@10.4.3: {} - lru-cache@11.5.2: {} + lru-cache@11.5.3: {} lru-cache@2.5.0: {} @@ -19788,54 +20058,32 @@ snapshots: dependencies: yallist: 4.0.0 - lru-cache@7.18.3: {} - lsofi@2.0.0: {} magic-string@0.30.21: dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 - - magic-string@1.0.0: - dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.6.0 - magic-string@1.2.2: + magic-string@1.4.5: dependencies: - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.6.0 make-dir@3.1.0: dependencies: - semver: 6.3.1 + semver: 6.3.2 make-dir@4.0.0: dependencies: - semver: 7.8.5 - - make-dir@5.1.0: - optional: true + semver: 7.8.6 make-error@1.3.6: {} - makeerror@1.0.12: - dependencies: - tmpl: 1.0.5 - map-cache@0.2.2: {} - markdown-it@14.3.0: - dependencies: - argparse: 2.0.1 - entities: 4.5.0 - linkify-it: 5.0.2 - mdurl: 2.1.0 - punycode.js: 2.3.1 - uc.micro: 2.1.0 - - marked-terminal@7.3.0(marked@13.0.3): + marked-terminal@7.3.1(marked@13.0.3): dependencies: ansi-escapes: 7.3.0 - ansi-regex: 6.3.0 + ansi-regex: 6.6.0 chalk: 5.6.2 cli-highlight: 2.1.11 cli-table3: 0.6.5 @@ -19847,9 +20095,7 @@ snapshots: marked@16.4.2: {} - marked@18.0.11: {} - - marked@18.0.9: {} + marked@18.2.0: {} math-intrinsics@1.1.0: {} @@ -19857,18 +20103,14 @@ snapshots: dependencies: '@types/hast': 3.0.5 '@types/mdast': 4.0.4 - '@ungap/structured-clone': 1.3.3 + '@ungap/structured-clone': 1.4.0 devlop: 1.1.0 micromark-util-sanitize-uri: 2.0.1 trim-lines: 3.0.1 unist-util-position: 5.0.0 - unist-util-visit: 5.1.0 + unist-util-visit: 5.2.0 vfile: 6.0.3 - mdn-data@2.27.1: {} - - mdurl@2.1.0: {} - media-typer@0.3.0: {} media-typer@1.1.1: {} @@ -19888,61 +20130,37 @@ snapshots: merge2@1.4.1: {} - mermaid@11.16.1: - dependencies: - '@braintree/sanitize-url': 7.1.2 - '@iconify/utils': 3.1.4 - '@mermaid-js/parser': 1.2.0 - '@types/d3': 7.4.3 - '@upsetjs/venn.js': 2.0.0 - cytoscape: 3.34.1 - cytoscape-cose-bilkent: 4.1.0(cytoscape@3.34.1) - cytoscape-fcose: 2.2.0(cytoscape@3.34.1) - d3: 7.9.0 - d3-sankey: 0.12.3 - dagre-d3-es: 7.0.14 - dayjs: 1.11.22 - dompurify: 3.4.13 - es-toolkit: 1.51.0 - katex: 0.16.47 - khroma: 2.1.0 - marked: 16.4.2 - roughjs: 4.6.6 - stylis: 4.4.0 - ts-dedent: 2.3.0 - uuid: 14.0.1 - - mermaid@11.17.2: + mermaid@12.3.0: dependencies: '@braintree/sanitize-url': 7.1.2 - '@iconify/utils': 3.1.4 - '@mermaid-js/parser': 1.2.1 + '@iconify/utils': 3.1.7 + '@mermaid-js/parser': 2.0.1 '@types/d3': 7.4.3 '@upsetjs/venn.js': 2.0.0 - cytoscape: 3.34.1 - cytoscape-cose-bilkent: 4.1.0(cytoscape@3.34.1) - cytoscape-fcose: 2.2.0(cytoscape@3.34.1) - d3: 7.9.0 + chevrotain: 13.2.0 + cytoscape: 3.34.4 + cytoscape-cose-bilkent: 4.1.0(cytoscape@3.34.4) + cytoscape-fcose: 2.2.0(cytoscape@3.34.4) + d3: 7.9.2 d3-sankey: 0.12.3 dagre-d3-es: 7.0.14 - dayjs: 1.11.22 - dompurify: 3.4.13 - es-toolkit: 1.51.0 - fastdom: 1.0.12 - katex: 0.16.47 + dayjs: 1.11.23 + dompurify: 3.4.17 + elkjs: 0.12.1 + es-toolkit: 1.53.2 + katex: 0.18.10 khroma: 2.1.0 marked: 16.4.2 roughjs: 4.6.6 stylis: 4.4.0 ts-dedent: 2.3.0 - uuid: 14.0.1 methods@1.1.2: {} micromark-util-character@2.1.1: dependencies: micromark-util-symbol: 2.0.1 - micromark-util-types: 2.0.2 + micromark-util-types: 2.0.3 micromark-util-encode@2.0.1: {} @@ -19954,7 +20172,7 @@ snapshots: micromark-util-symbol@2.0.1: {} - micromark-util-types@2.0.2: {} + micromark-util-types@2.0.3: {} micromatch@4.0.8: dependencies: @@ -19981,32 +20199,39 @@ snapshots: mimic-function@5.0.1: {} - mimic-response@3.1.0: - optional: true - minimatch@10.2.6: dependencies: - brace-expansion: 5.0.9 + brace-expansion: 5.0.12 + + minimatch@11.0.5: + dependencies: + '@isaacs/nonrecursive-glob-match': 1.1.0 + brace-expansion: 5.0.12 + + minimatch@11.0.7: + dependencies: + '@isaacs/nonrecursive-glob-match': 1.1.0 + brace-expansion: 5.0.12 minimatch@3.1.5: dependencies: - brace-expansion: 1.1.18 + brace-expansion: 1.1.21 minimatch@5.1.9: dependencies: - brace-expansion: 2.1.4 + brace-expansion: 2.1.7 minimatch@6.2.3: dependencies: - brace-expansion: 2.1.4 + brace-expansion: 2.1.7 minimatch@7.4.9: dependencies: - brace-expansion: 2.1.4 + brace-expansion: 2.1.7 minimatch@9.0.9: dependencies: - brace-expansion: 2.1.4 + brace-expansion: 2.1.7 minimist@1.2.8: {} @@ -20016,52 +20241,46 @@ snapshots: dependencies: minipass: 7.1.3 - mkdirp-classic@0.5.3: - optional: true - mkdirp@0.5.6: dependencies: minimist: 1.2.8 mkdirp@1.0.4: {} - mocha@11.8.0: + mocha@12.0.3: dependencies: browser-stdout: 1.3.1 - chokidar: 4.0.3 + chokidar: 5.0.0 debug: 4.4.3(supports-color@8.1.1) - diff: 7.0.0 - escape-string-regexp: 4.0.0 - find-up: 5.0.0 - glob: 10.5.0 - he: 1.2.0 - is-path-inside: 3.0.3 - js-yaml: 4.3.1 - log-symbols: 4.1.0 - minimatch: 9.0.9 + diff: 9.0.0 + find-up-simple: 1.0.1 + glob: 13.0.7 + is-path-inside: 4.0.0 + is-unicode-supported: 0.1.0 + js-yaml: 5.5.0 + minimatch: 10.2.6 ms: 2.1.3 picocolors: 1.1.1 - serialize-javascript: 6.0.2 - strip-json-comments: 3.1.1 + serialize-javascript: 7.1.4 + strip-json-comments: 5.0.3 supports-color: 8.1.1 - workerpool: 9.3.4 - yargs: 17.7.3 - yargs-parser: 21.1.1 - yargs-unparser: 2.0.0 + workerpool: 10.0.3 mock-require@3.0.3: dependencies: get-caller-file: 1.0.3 normalize-path: 2.1.1 + module-details-from-path@1.0.4: {} + moo@0.5.3: {} - morgan@1.11.0(supports-color@11.0.0): + morgan@1.12.1(supports-color@11.0.0): dependencies: basic-auth: 2.0.1 debug: 2.6.9(supports-color@11.0.0) depd: 2.0.0 - on-finished: 2.4.1 + on-finished: 2.4.2 on-headers: 1.1.0 transitivePeerDependencies: - supports-color @@ -20074,21 +20293,21 @@ snapshots: ms@2.1.3: {} - msgpackr-extract@3.0.4: + msgpackr-extract@3.0.7: dependencies: node-gyp-build-optional-packages: 5.2.2 optionalDependencies: - '@msgpackr-extract/msgpackr-extract-darwin-arm64': 3.0.4 - '@msgpackr-extract/msgpackr-extract-darwin-x64': 3.0.4 - '@msgpackr-extract/msgpackr-extract-linux-arm': 3.0.4 - '@msgpackr-extract/msgpackr-extract-linux-arm64': 3.0.4 - '@msgpackr-extract/msgpackr-extract-linux-x64': 3.0.4 - '@msgpackr-extract/msgpackr-extract-win32-x64': 3.0.4 + '@msgpackr-extract/msgpackr-extract-darwin-arm64': 3.0.7 + '@msgpackr-extract/msgpackr-extract-darwin-x64': 3.0.7 + '@msgpackr-extract/msgpackr-extract-linux-arm': 3.0.7 + '@msgpackr-extract/msgpackr-extract-linux-arm64': 3.0.7 + '@msgpackr-extract/msgpackr-extract-linux-x64': 3.0.7 + '@msgpackr-extract/msgpackr-extract-win32-x64': 3.0.7 optional: true msgpackr@1.12.1: optionalDependencies: - msgpackr-extract: 3.0.4 + msgpackr-extract: 3.0.7 optional: true multimatch@8.0.0: @@ -20105,21 +20324,20 @@ snapshots: mute-stream@3.0.0: {} + mute-stream@4.0.0: {} + mz@2.7.0: dependencies: any-promise: 1.3.0 object-assign: 4.1.1 thenify-all: 1.6.0 - nan@2.28.0: + nan@2.30.0: optional: true - nanoid@3.3.18: {} - - napi-build-utils@2.0.0: - optional: true + nanoid@3.3.20: {} - napi-postinstall@0.3.4: {} + napi-postinstall@0.3.8: {} natural-compare@1.4.0: {} @@ -20130,91 +20348,35 @@ snapshots: railroad-diagrams: 1.0.0 randexp: 0.4.6 - needle@2.9.1(supports-color@11.0.0): - dependencies: - debug: 3.2.7(supports-color@11.0.0) - iconv-lite: 0.4.24 - sax: 1.6.1 - transitivePeerDependencies: - - supports-color - optional: true - - needle@3.5.0: - dependencies: - iconv-lite: 0.6.3 - sax: 1.6.1 - optional: true - negotiator@0.6.3: {} negotiator@0.6.4: {} - negotiator@1.0.0: {} + negotiator@1.1.0: + dependencies: + content-type: 2.1.0 neo-async@2.6.2: {} - netmask@2.1.1: {} - - ng-packagr@22.2.0-next.4(@angular/compiler-cli@packages+compiler-cli)(supports-color@11.0.0)(tailwindcss@3.4.19(tsx@4.23.12)(yaml@2.9.0))(tslib@2.8.1)(typescript@6.0.3): - dependencies: - '@ampproject/remapping': 2.3.0 - '@angular/compiler-cli': link:packages/compiler-cli - ajv: 8.20.0 - browserslist: 4.28.8 - chokidar: 5.0.0 - commander: 15.0.0 - dependency-graph: 1.0.0 - esbuild: 0.28.2 - find-cache-directory: 6.0.0 - injection-js: 2.6.1 - jsonc-parser: 3.3.1 - less: 4.9.0(supports-color@11.0.0) - ora: 9.4.1 - piscina: 5.3.1 - postcss: 8.5.26 - rolldown: 1.2.5 - rolldown-plugin-dts: 0.28.2(rolldown@1.2.5)(typescript@6.0.3) - rxjs: 7.8.2 - sass: 1.103.1 - tinyglobby: 0.2.17 - tslib: 2.8.1 - typescript: 6.0.3 - optionalDependencies: - tailwindcss: 3.4.19(tsx@4.23.12)(yaml@2.9.0) - transitivePeerDependencies: - - '@typescript/native-preview' - - '@volar/typescript' - - oxc-resolver - - supports-color - - vue-tsc - ngx-flamegraph@0.2.0(@angular/common@packages+common)(@angular/core@packages+core): dependencies: '@angular/common': link:packages/common '@angular/core': link:packages/core - tslib: 2.8.1 + tslib: 2.9.1 - ngx-progressbar@14.0.0(@angular/cdk@22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/common@packages+common)(@angular/core@packages+core)(rxjs@7.8.2): + ngx-progressbar@14.0.0(@angular/cdk@22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2))(@angular/common@packages+common)(@angular/core@packages+core)(rxjs@7.8.2): dependencies: - '@angular/cdk': 22.2.0-next.3(@angular/common@packages+common)(@angular/core@packages+core)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) + '@angular/cdk': 22.3.0-rc.0(@angular/common@packages+common)(@angular/core@packages+core)(@angular/forms@packages+forms)(@angular/platform-browser@packages+platform-browser)(rxjs@7.8.2) '@angular/common': link:packages/common '@angular/core': link:packages/core rxjs: 7.8.2 - tslib: 2.8.1 - - nock@14.0.17: - dependencies: - '@mswjs/interceptors': 0.41.9 - json-stringify-safe: 5.0.1 - propagate: 2.0.1 + tslib: 2.9.1 - node-abi@3.94.0: + nock@15.0.6(supports-color@11.0.0): dependencies: - semver: 7.8.5 - optional: true - - node-addon-api@4.3.0: - optional: true + '@mswjs/interceptors': 0.45.11(supports-color@11.0.0) + transitivePeerDependencies: + - supports-color node-addon-api@6.1.0: optional: true @@ -20230,11 +20392,11 @@ snapshots: emojilib: 2.4.0 skin-tone: 2.0.0 - node-fetch@2.7.0(encoding@0.1.13): + node-fetch@2.7.0(encoding@0.1.14): dependencies: whatwg-url: 5.0.0 optionalDependencies: - encoding: 0.1.13 + encoding: 0.1.14 node-fetch@3.3.2: dependencies: @@ -20249,28 +20411,23 @@ snapshots: node-gyp-build@4.8.4: {} - node-gyp@13.0.1: + node-gyp@13.1.0: dependencies: env-paths: 2.2.1 exponential-backoff: 3.1.3 graceful-fs: 4.2.11 nopt: 10.0.1 proc-log: 7.0.0 - semver: 7.8.5 + semver: 7.8.6 tar: 7.5.22 tinyglobby: 0.2.17 - undici: 8.10.0 + undici: 8.12.4 which: 7.0.0 optional: true node-int64@0.4.0: {} - node-releases@2.0.53: {} - - node-sarif-builder@3.4.0: - dependencies: - '@types/sarif': 2.1.7 - fs-extra: 11.4.0 + node-releases@2.0.63: {} nopt@10.0.1: dependencies: @@ -20280,7 +20437,7 @@ snapshots: normalize-package-data@6.0.2: dependencies: hosted-git-info: 7.0.2 - semver: 7.8.5 + semver: 7.8.6 validate-npm-package-license: 3.0.4 normalize-path@2.1.1: @@ -20297,18 +20454,18 @@ snapshots: dependencies: hosted-git-info: 10.1.1 proc-log: 7.0.0 - semver: 7.8.5 + semver: 7.8.6 validate-npm-package-name: 8.0.0 npm-run-path@4.0.1: dependencies: path-key: 3.1.1 - nth-check@2.1.1: + nth-check@3.0.1: dependencies: - boolbase: 1.0.0 + boolbase: 2.0.0 - nwsapi@2.2.24: {} + nwsapi@2.2.28: {} oauth-sign@0.9.0: {} @@ -20340,13 +20497,13 @@ snapshots: dependencies: isobject: 3.0.1 - obug@2.1.4: {} + obug@3.0.0: {} on-finished@2.3.0: dependencies: ee-first: 1.1.1 - on-finished@2.4.1: + on-finished@2.4.2: dependencies: ee-first: 1.1.1 @@ -20376,12 +20533,14 @@ snapshots: regex: 6.1.0 regex-recursion: 6.0.2 - open@10.2.0: + open@11.0.4: dependencies: default-browser: 5.5.1 define-lazy-prop: 3.0.0 + is-in-ssh: 1.0.0 is-inside-container: 1.0.0 - wsl-utils: 0.1.0 + powershell-utils: 0.2.1 + wsl-utils: 1.0.1 open@6.4.0: dependencies: @@ -20389,10 +20548,21 @@ snapshots: openapi3-ts@3.2.0: dependencies: - yaml: 2.9.0 + yaml: 2.9.1 opener@1.5.2: {} + ora@10.0.0: + dependencies: + chalk: 6.0.1 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + ora@5.4.1: dependencies: bl: 4.1.0 @@ -20417,18 +20587,7 @@ snapshots: string-width: 7.2.0 strip-ansi: 7.2.0 - ora@9.4.1: - dependencies: - chalk: 5.6.2 - cli-cursor: 5.0.0 - cli-spinners: 3.4.0 - is-interactive: 2.0.0 - is-unicode-supported: 2.1.0 - log-symbols: 7.0.1 - stdin-discarder: 0.3.2 - string-width: 8.2.2 - - ordered-binary@1.6.1: + ordered-binary@1.6.3: optional: true os-tmpdir@1.0.2: {} @@ -20444,29 +20603,29 @@ snapshots: object-keys: 1.1.1 safe-push-apply: 1.0.0 - oxc-parser@0.146.0: + oxc-parser@0.158.0: dependencies: - '@oxc-project/types': 0.146.0 + '@oxc-project/types': 0.158.0 optionalDependencies: - '@oxc-parser/binding-android-arm-eabi': 0.146.0 - '@oxc-parser/binding-android-arm64': 0.146.0 - '@oxc-parser/binding-darwin-arm64': 0.146.0 - '@oxc-parser/binding-darwin-x64': 0.146.0 - '@oxc-parser/binding-freebsd-x64': 0.146.0 - '@oxc-parser/binding-linux-arm-gnueabihf': 0.146.0 - '@oxc-parser/binding-linux-arm-musleabihf': 0.146.0 - '@oxc-parser/binding-linux-arm64-gnu': 0.146.0 - '@oxc-parser/binding-linux-arm64-musl': 0.146.0 - '@oxc-parser/binding-linux-ppc64-gnu': 0.146.0 - '@oxc-parser/binding-linux-riscv64-gnu': 0.146.0 - '@oxc-parser/binding-linux-riscv64-musl': 0.146.0 - '@oxc-parser/binding-linux-s390x-gnu': 0.146.0 - '@oxc-parser/binding-linux-x64-gnu': 0.146.0 - '@oxc-parser/binding-linux-x64-musl': 0.146.0 - '@oxc-parser/binding-openharmony-arm64': 0.146.0 - '@oxc-parser/binding-win32-arm64-msvc': 0.146.0 - '@oxc-parser/binding-win32-ia32-msvc': 0.146.0 - '@oxc-parser/binding-win32-x64-msvc': 0.146.0 + '@oxc-parser/binding-android-arm-eabi': 0.158.0 + '@oxc-parser/binding-android-arm64': 0.158.0 + '@oxc-parser/binding-darwin-arm64': 0.158.0 + '@oxc-parser/binding-darwin-x64': 0.158.0 + '@oxc-parser/binding-freebsd-x64': 0.158.0 + '@oxc-parser/binding-linux-arm-gnueabihf': 0.158.0 + '@oxc-parser/binding-linux-arm-musleabihf': 0.158.0 + '@oxc-parser/binding-linux-arm64-gnu': 0.158.0 + '@oxc-parser/binding-linux-arm64-musl': 0.158.0 + '@oxc-parser/binding-linux-ppc64-gnu': 0.158.0 + '@oxc-parser/binding-linux-riscv64-gnu': 0.158.0 + '@oxc-parser/binding-linux-riscv64-musl': 0.158.0 + '@oxc-parser/binding-linux-s390x-gnu': 0.158.0 + '@oxc-parser/binding-linux-x64-gnu': 0.158.0 + '@oxc-parser/binding-linux-x64-musl': 0.158.0 + '@oxc-parser/binding-openharmony-arm64': 0.158.0 + '@oxc-parser/binding-win32-arm64-msvc': 0.158.0 + '@oxc-parser/binding-win32-ia32-msvc': 0.158.0 + '@oxc-parser/binding-win32-x64-msvc': 0.158.0 p-defer@3.0.0: {} @@ -20484,12 +20643,6 @@ snapshots: dependencies: p-limit: 2.3.0 - p-locate@5.0.0: - dependencies: - p-limit: 3.1.0 - - p-map@7.0.6: {} - p-queue@6.6.2: dependencies: eventemitter3: 4.0.7 @@ -20500,7 +20653,7 @@ snapshots: '@types/retry': 0.12.0 retry: 0.13.1 - p-throttle@8.1.0: {} + p-throttle@8.1.1: {} p-timeout@3.2.0: dependencies: @@ -20508,27 +20661,9 @@ snapshots: p-try@2.2.0: {} - pac-proxy-agent@7.2.0(supports-color@11.0.0): - dependencies: - '@tootallnate/quickjs-emscripten': 0.23.0 - agent-base: 7.1.4 - debug: 4.4.3(supports-color@11.0.0) - get-uri: 6.0.5(supports-color@11.0.0) - http-proxy-agent: 7.0.2(supports-color@11.0.0) - https-proxy-agent: 7.0.6(supports-color@11.0.0) - pac-resolver: 7.0.1 - socks-proxy-agent: 8.0.5(supports-color@11.0.0) - transitivePeerDependencies: - - supports-color - - pac-resolver@7.0.1: - dependencies: - degenerator: 5.0.1 - netmask: 2.1.1 - package-json-from-dist@1.0.1: {} - package-manager-detector@1.8.0: {} + package-manager-detector@1.9.0: {} pako@1.0.11: {} @@ -20551,36 +20686,25 @@ snapshots: index-to-position: 1.2.0 type-fest: 4.41.0 - parse-node-version@1.0.1: {} - parse-passwd@1.0.0: {} - parse-semver@1.1.1: - dependencies: - semver: 5.7.2 - - parse5-html-rewriting-stream@8.0.1: + parse5-html-rewriting-stream@8.1.1: dependencies: - entities: 8.0.0 - parse5: 8.0.1 - parse5-sax-parser: 8.0.0 + entities: 9.0.0 + parse5: 8.1.1 + parse5-sax-parser: 8.0.1 parse5-htmlparser2-tree-adapter@6.0.1: dependencies: parse5: 6.0.1 - parse5-htmlparser2-tree-adapter@7.1.0: - dependencies: - domhandler: 5.0.3 - parse5: 7.3.0 - - parse5-parser-stream@7.1.2: + parse5-parser-stream@8.1.1: dependencies: - parse5: 7.3.0 + parse5: 8.1.1 - parse5-sax-parser@8.0.0: + parse5-sax-parser@8.0.1: dependencies: - parse5: 8.0.1 + parse5: 8.1.1 parse5@5.1.1: {} @@ -20590,9 +20714,9 @@ snapshots: dependencies: entities: 6.0.1 - parse5@8.0.1: + parse5@8.1.1: dependencies: - entities: 8.0.0 + entities: 9.0.0 parseurl@1.3.3: {} @@ -20623,7 +20747,12 @@ snapshots: path-scurry@2.0.2: dependencies: - lru-cache: 11.5.2 + lru-cache: 11.5.3 + minipass: 7.1.3 + + path-scurry@3.0.0: + dependencies: + lru-cache: 11.5.3 minipass: 7.1.3 path-to-regexp@0.1.13: {} @@ -20634,30 +20763,26 @@ snapshots: path-to-regexp@8.4.2: {} - path-type@6.0.0: {} - - pathe@2.0.3: {} - pegjs@0.10.0: {} pend@1.2.0: {} performance-now@2.1.0: {} - pg-cloudflare@1.4.0: + pg-cloudflare@1.4.1: optional: true - pg-connection-string@2.14.0: {} + pg-connection-string@2.14.1: {} pg-gateway@0.3.0-beta.4: {} pg-int8@1.0.1: {} - pg-pool@3.14.0(pg@8.23.0): + pg-pool@3.14.0(pg@8.23.1): dependencies: - pg: 8.23.0 + pg: 8.23.1 - pg-protocol@1.16.0: {} + pg-protocol@1.16.1: {} pg-types@2.2.0: dependencies: @@ -20667,15 +20792,15 @@ snapshots: postgres-date: 1.0.7 postgres-interval: 1.2.0 - pg@8.23.0: + pg@8.23.1: dependencies: - pg-connection-string: 2.14.0 - pg-pool: 3.14.0(pg@8.23.0) - pg-protocol: 1.16.0 + pg-connection-string: 2.14.1 + pg-pool: 3.14.0(pg@8.23.1) + pg-protocol: 1.16.1 pg-types: 2.2.0 pgpass: 1.0.5 optionalDependencies: - pg-cloudflare: 1.4.0 + pg-cloudflare: 1.4.1 pgpass@1.0.5: dependencies: @@ -20685,7 +20810,7 @@ snapshots: picomatch@2.3.2: {} - picomatch@4.0.5: {} + picomatch@4.0.7: {} pify@2.3.0: {} @@ -20697,7 +20822,7 @@ snapshots: pirates@4.0.7: {} - piscina@5.3.1: + piscina@5.3.2: optionalDependencies: '@napi-rs/nice': 1.1.1 @@ -20707,20 +20832,12 @@ snapshots: dependencies: find-up: 4.1.0 - pkg-dir@8.0.0: - dependencies: - find-up-simple: 1.0.1 - - playwright-core@1.62.1: {} + playwright-core@1.65.0: {} plugin-error@2.0.1: dependencies: ansi-colors: 1.1.0 - pluralize@2.0.0: {} - - pluralize@8.0.0: {} - points-on-curve@0.2.0: {} points-on-path@0.2.1: @@ -20737,50 +20854,49 @@ snapshots: possible-typed-array-names@1.1.0: {} - postcss-import@15.1.0(postcss@8.5.26): + postcss-import@15.1.0(postcss@8.5.32): dependencies: - postcss: 8.5.26 + postcss: 8.5.32 postcss-value-parser: 4.2.0 - read-cache: 1.0.0 - resolve: 1.22.12 + read-cache: 1.0.2 + resolve: 1.22.14 - postcss-js@4.1.0(postcss@8.5.26): + postcss-js@4.1.0(postcss@8.5.32): dependencies: camelcase-css: 2.0.1 - postcss: 8.5.26 + postcss: 8.5.32 - postcss-load-config@6.0.1(jiti@1.21.7)(postcss@8.5.26)(tsx@4.23.12)(yaml@2.9.0): + postcss-load-config@6.0.1(jiti@1.21.7)(postcss@8.5.32)(tsx@4.23.15)(yaml@2.9.1): dependencies: - lilconfig: 3.1.3 + lilconfig: 3.1.4 optionalDependencies: jiti: 1.21.7 - postcss: 8.5.26 - tsx: 4.23.12 - yaml: 2.9.0 + postcss: 8.5.32 + tsx: 4.23.15 + yaml: 2.9.1 postcss-media-query-parser@0.2.3: {} - postcss-nested@6.2.0(postcss@8.5.26): + postcss-nested@6.2.0(postcss@8.5.32): dependencies: - postcss: 8.5.26 - postcss-selector-parser: 6.1.4 + postcss: 8.5.32 + postcss-selector-parser: 6.1.6 - postcss-safe-parser@7.0.1(postcss@8.5.26): + postcss-safe-parser@7.1.0(postcss@8.5.32): dependencies: - postcss: 8.5.26 + postcss: 8.5.32 - postcss-selector-parser@6.1.4: + postcss-selector-parser@6.1.6: dependencies: - cssesc: 3.0.0 util-deprecate: 1.0.2 postcss-value-parser@4.2.0: {} - postcss@8.5.26: + postcss@8.5.32: dependencies: - nanoid: 3.3.18 + nanoid: 3.3.20 picocolors: 1.1.1 - source-map-js: 1.2.1 + source-map-js: 1.2.2 postgres-array@2.0.0: {} @@ -20792,49 +20908,28 @@ snapshots: dependencies: xtend: 4.0.2 - preact-render-to-string@6.7.0(preact@10.29.8): + powershell-utils@0.2.1: {} + + preact-render-to-string@6.8.2(preact@11.2.0): dependencies: - preact: 10.29.8(preact-render-to-string@6.7.0) + preact: 11.2.0(preact-render-to-string@6.8.2) - preact@10.29.8(preact-render-to-string@6.7.0): + preact@11.2.0(preact-render-to-string@6.8.2): optionalDependencies: - preact-render-to-string: 6.7.0(preact@10.29.8) + preact-render-to-string: 6.8.2(preact@11.2.0) - prebuild-install@7.1.3: - dependencies: - detect-libc: 2.1.2 - expand-template: 2.0.3 - github-from-package: 0.0.0 - minimist: 1.2.8 - mkdirp-classic: 0.5.3 - napi-build-utils: 2.0.0 - node-abi: 3.94.0 - pump: 3.0.4 - rc: 1.2.8 - simple-get: 4.0.1 - tar-fs: 2.1.5 - tunnel-agent: 0.6.0 - optional: true + prettier@3.10.0: {} - prettier@3.9.6: {} + prettier@3.9.10: {} pretty-bytes@5.6.0: {} - pretty-format@30.4.1: + pretty-format@30.5.1: dependencies: - '@jest/schemas': 30.4.1 + '@jest/react-is-18': react-is@18.3.1 + '@jest/react-is-19': react-is@19.3.1 + '@jest/schemas': 30.5.0 ansi-styles: 5.2.0 - react-is-18: react-is@18.3.1 - react-is-19: react-is@19.2.8 - - probe-image-size@7.4.0(supports-color@11.0.0): - dependencies: - lodash.merge: 4.6.2 - needle: 2.9.1(supports-color@11.0.0) - stream-parser: 0.3.1(supports-color@11.0.0) - transitivePeerDependencies: - - supports-color - optional: true proc-log@7.0.0: {} @@ -20846,7 +20941,11 @@ snapshots: promise-breaker@6.0.0: {} - propagate@2.0.1: {} + proper-lockfile@4.1.2: + dependencies: + graceful-fs: 4.2.11 + retry: 0.12.0 + signal-exit: 3.0.7 property-information@7.2.0: {} @@ -20854,9 +20953,9 @@ snapshots: proto3-json-serializer@3.0.4: dependencies: - protobufjs: 7.6.5 + protobufjs: 7.6.6 - protobufjs@7.6.5: + protobufjs@7.6.6: dependencies: '@protobufjs/aspromise': 1.1.2 '@protobufjs/base64': 1.1.2 @@ -20867,7 +20966,7 @@ snapshots: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.2 - '@types/node': 24.13.3 + '@types/node': 20.19.43 long: 5.3.2 protractor@7.0.0(supports-color@11.0.0): @@ -20890,33 +20989,15 @@ snapshots: transitivePeerDependencies: - supports-color - proxy-addr@2.0.7: + proxy-addr@2.0.8: dependencies: forwarded: 0.2.0 ipaddr.js: 1.9.1 proxy-agent-negotiate@1.1.0: {} - proxy-agent@6.5.0(supports-color@11.0.0): - dependencies: - agent-base: 7.1.4 - debug: 4.4.3(supports-color@11.0.0) - http-proxy-agent: 7.0.2(supports-color@11.0.0) - https-proxy-agent: 7.0.6(supports-color@11.0.0) - lru-cache: 7.18.3 - pac-proxy-agent: 7.2.0(supports-color@11.0.0) - proxy-from-env: 1.1.0 - socks-proxy-agent: 8.0.5(supports-color@11.0.0) - transitivePeerDependencies: - - supports-color - proxy-from-env@1.0.0: {} - proxy-from-env@1.1.0: {} - - prr@1.0.1: - optional: true - psl@1.15.0: dependencies: punycode: 2.3.1 @@ -20937,8 +21018,6 @@ snapshots: inherits: 2.0.4 pump: 2.0.1 - punycode.js@2.3.1: {} - punycode@1.4.1: {} punycode@2.3.1: {} @@ -20953,7 +21032,12 @@ snapshots: qjobs@1.2.0: {} - qs@6.15.3: + qs@6.16.2: + dependencies: + es-define-property: 1.0.1 + side-channel: 1.1.1 + + qs@6.17.1: dependencies: es-define-property: 1.0.1 side-channel: 1.1.1 @@ -20969,10 +21053,6 @@ snapshots: discontinuous-range: 1.0.0 ret: 0.1.15 - randombytes@2.1.0: - dependencies: - safe-buffer: 5.2.1 - range-parser@1.2.1: {} range-parser@1.3.0: {} @@ -20991,15 +21071,6 @@ snapshots: iconv-lite: 0.7.3 unpipe: 1.0.0 - rc-config-loader@4.1.4(supports-color@11.0.0): - dependencies: - debug: 4.4.3(supports-color@11.0.0) - js-yaml: 4.3.1 - json5: 2.2.3 - require-from-string: 2.0.2 - transitivePeerDependencies: - - supports-color - rc@1.2.8: dependencies: deep-extend: 0.6.0 @@ -21007,22 +21078,20 @@ snapshots: minimist: 1.2.8 strip-json-comments: 2.0.1 - re2@1.26.1: + re2@1.27.1: dependencies: - install-artifact-from-github: 1.7.0 - nan: 2.28.0 - node-gyp: 13.0.1 + install-artifact-from-github: 1.8.1 + nan: 2.30.0 + node-gyp: 13.1.0 optional: true - re2js@2.8.6: {} + re2js@2.9.1: {} react-is@18.3.1: {} - react-is@19.2.8: {} + react-is@19.3.1: {} - read-cache@1.0.0: - dependencies: - pify: 2.3.0 + read-cache@1.0.2: {} read-package-up@11.0.0: dependencies: @@ -21058,7 +21127,7 @@ snapshots: string_decoder: 1.3.0 util-deprecate: 1.0.2 - readable-stream@4.7.0: + readable-stream@4.8.0: dependencies: abort-controller: 3.0.0 buffer: 6.0.3 @@ -21080,7 +21149,7 @@ snapshots: rechoir@0.8.0: dependencies: - resolve: 1.22.12 + resolve: 1.22.14 reflect-metadata@0.2.2: {} @@ -21159,6 +21228,13 @@ snapshots: require-from-string@2.0.2: {} + require-in-the-middle@8.0.1(supports-color@11.0.0): + dependencies: + debug: 4.4.3(supports-color@11.0.0) + module-details-from-path: 1.0.4 + transitivePeerDependencies: + - supports-color + require-main-filename@2.0.0: {} requires-port@1.0.0: {} @@ -21180,10 +21256,10 @@ snapshots: resolve-pkg-maps@1.0.0: {} - resolve@1.22.12: + resolve@1.22.14: dependencies: es-errors: 1.3.0 - is-core-module: 2.16.2 + is-core-module: 2.18.0 path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 @@ -21206,8 +21282,12 @@ snapshots: transitivePeerDependencies: - supports-color + retry@0.12.0: {} + retry@0.13.1: {} + rettime@0.11.12: {} + reusify@1.1.0: {} rfdc@1.4.1: {} @@ -21226,109 +21306,111 @@ snapshots: robust-predicates@3.0.3: {} - rolldown-plugin-dts@0.28.2(rolldown@1.2.5)(typescript@6.0.3): + rolldown-plugin-dts@0.30.1(rolldown@1.3.1)(typescript@6.0.3): dependencies: dts-resolver: 3.0.0 - get-tsconfig: 5.0.0-beta.5 - obug: 2.1.4 - rolldown: 1.2.5 - yuku-ast: 0.8.7 - yuku-codegen: 0.8.7 - yuku-parser: 0.8.7 + get-tsconfig: 5.0.0-beta.6 + obug: 3.0.0 + rolldown: 1.3.1 + yuku: 0.27.0 optionalDependencies: typescript: 6.0.3 transitivePeerDependencies: + - '@yuku-toolchain/wasm' - oxc-resolver - rolldown@1.2.4: + rolldown@1.2.19: dependencies: - '@oxc-project/types': 0.144.0 + '@oxc-project/types': 0.156.0 '@rolldown/pluginutils': 1.0.1 optionalDependencies: - '@rolldown/binding-android-arm64': 1.2.4 - '@rolldown/binding-darwin-arm64': 1.2.4 - '@rolldown/binding-darwin-x64': 1.2.4 - '@rolldown/binding-freebsd-x64': 1.2.4 - '@rolldown/binding-linux-arm-gnueabihf': 1.2.4 - '@rolldown/binding-linux-arm64-gnu': 1.2.4 - '@rolldown/binding-linux-arm64-musl': 1.2.4 - '@rolldown/binding-linux-ppc64-gnu': 1.2.4 - '@rolldown/binding-linux-s390x-gnu': 1.2.4 - '@rolldown/binding-linux-x64-gnu': 1.2.4 - '@rolldown/binding-linux-x64-musl': 1.2.4 - '@rolldown/binding-openharmony-arm64': 1.2.4 - '@rolldown/binding-win32-arm64-msvc': 1.2.4 - '@rolldown/binding-win32-x64-msvc': 1.2.4 - - rolldown@1.2.5: - dependencies: - '@oxc-project/types': 0.146.0 + '@rolldown/binding-android-arm-eabi': 1.2.19 + '@rolldown/binding-android-arm64': 1.2.19 + '@rolldown/binding-darwin-arm64': 1.2.19 + '@rolldown/binding-darwin-x64': 1.2.19 + '@rolldown/binding-freebsd-x64': 1.2.19 + '@rolldown/binding-linux-arm-gnueabihf': 1.2.19 + '@rolldown/binding-linux-arm64-gnu': 1.2.19 + '@rolldown/binding-linux-arm64-musl': 1.2.19 + '@rolldown/binding-linux-ppc64-gnu': 1.2.19 + '@rolldown/binding-linux-s390x-gnu': 1.2.19 + '@rolldown/binding-linux-x64-gnu': 1.2.19 + '@rolldown/binding-linux-x64-musl': 1.2.19 + '@rolldown/binding-openharmony-arm64': 1.2.19 + '@rolldown/binding-wasm32-wasi': 1.2.19 + '@rolldown/binding-win32-arm64-msvc': 1.2.19 + '@rolldown/binding-win32-x64-msvc': 1.2.19 + + rolldown@1.3.1: + dependencies: + '@oxc-project/types': 0.157.0 '@rolldown/pluginutils': 1.0.1 optionalDependencies: - '@rolldown/binding-android-arm-eabi': 1.2.5 - '@rolldown/binding-android-arm64': 1.2.5 - '@rolldown/binding-darwin-arm64': 1.2.5 - '@rolldown/binding-darwin-x64': 1.2.5 - '@rolldown/binding-freebsd-x64': 1.2.5 - '@rolldown/binding-linux-arm-gnueabihf': 1.2.5 - '@rolldown/binding-linux-arm64-gnu': 1.2.5 - '@rolldown/binding-linux-arm64-musl': 1.2.5 - '@rolldown/binding-linux-ppc64-gnu': 1.2.5 - '@rolldown/binding-linux-s390x-gnu': 1.2.5 - '@rolldown/binding-linux-x64-gnu': 1.2.5 - '@rolldown/binding-linux-x64-musl': 1.2.5 - '@rolldown/binding-openharmony-arm64': 1.2.5 - '@rolldown/binding-win32-arm64-msvc': 1.2.5 - '@rolldown/binding-win32-x64-msvc': 1.2.5 - - rollup-plugin-dts@6.5.1(rollup@4.63.0)(typescript@6.0.3): + '@rolldown/binding-android-arm-eabi': 1.3.1 + '@rolldown/binding-android-arm64': 1.3.1 + '@rolldown/binding-darwin-arm64': 1.3.1 + '@rolldown/binding-darwin-x64': 1.3.1 + '@rolldown/binding-freebsd-x64': 1.3.1 + '@rolldown/binding-linux-arm-gnueabihf': 1.3.1 + '@rolldown/binding-linux-arm64-gnu': 1.3.1 + '@rolldown/binding-linux-arm64-musl': 1.3.1 + '@rolldown/binding-linux-ppc64-gnu': 1.3.1 + '@rolldown/binding-linux-s390x-gnu': 1.3.1 + '@rolldown/binding-linux-x64-gnu': 1.3.1 + '@rolldown/binding-linux-x64-musl': 1.3.1 + '@rolldown/binding-openharmony-arm64': 1.3.1 + '@rolldown/binding-wasm32-wasi': 1.3.1 + '@rolldown/binding-win32-arm64-msvc': 1.3.1 + '@rolldown/binding-win32-x64-msvc': 1.3.1 + + rollup-plugin-dts@6.5.1(rollup@4.68.2)(typescript@6.0.3): dependencies: '@jridgewell/remapping': 2.3.5 - '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/sourcemap-codec': 1.6.0 convert-source-map: 2.0.0 magic-string: 0.30.21 - rollup: 4.63.0 + rollup: 4.68.2 typescript: 6.0.3 optionalDependencies: - '@babel/code-frame': 8.0.0 + '@babel/code-frame': 8.0.6 - rollup-plugin-sourcemaps2@0.5.8(@types/node@20.19.43)(rollup@4.63.0): + rollup-plugin-sourcemaps2@0.5.10(@types/node@20.19.43)(rollup@4.68.2): dependencies: - '@rollup/pluginutils': 5.4.0(rollup@4.63.0) - rollup: 4.63.0 + '@rollup/pluginutils': 5.4.0(rollup@4.68.2) + rollup: 4.68.2 optionalDependencies: '@types/node': 20.19.43 - rollup@4.63.0: + rollup@4.68.2: dependencies: - '@types/estree': 1.0.9 + '@types/estree': 1.0.10 optionalDependencies: - '@napi-rs/lzma-linux-x64-gnu': 1.5.1 - '@rollup/rollup-android-arm-eabi': 4.63.0 - '@rollup/rollup-android-arm64': 4.63.0 - '@rollup/rollup-darwin-arm64': 4.63.0 - '@rollup/rollup-darwin-x64': 4.63.0 - '@rollup/rollup-freebsd-arm64': 4.63.0 - '@rollup/rollup-freebsd-x64': 4.63.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.63.0 - '@rollup/rollup-linux-arm-musleabihf': 4.63.0 - '@rollup/rollup-linux-arm64-gnu': 4.63.0 - '@rollup/rollup-linux-arm64-musl': 4.63.0 - '@rollup/rollup-linux-loong64-gnu': 4.63.0 - '@rollup/rollup-linux-loong64-musl': 4.63.0 - '@rollup/rollup-linux-ppc64-gnu': 4.63.0 - '@rollup/rollup-linux-ppc64-musl': 4.63.0 - '@rollup/rollup-linux-riscv64-gnu': 4.63.0 - '@rollup/rollup-linux-riscv64-musl': 4.63.0 - '@rollup/rollup-linux-s390x-gnu': 4.63.0 - '@rollup/rollup-linux-x64-gnu': 4.63.0 - '@rollup/rollup-linux-x64-musl': 4.63.0 - '@rollup/rollup-openbsd-x64': 4.63.0 - '@rollup/rollup-openharmony-arm64': 4.63.0 - '@rollup/rollup-win32-arm64-msvc': 4.63.0 - '@rollup/rollup-win32-ia32-msvc': 4.63.0 - '@rollup/rollup-win32-x64-gnu': 4.63.0 - '@rollup/rollup-win32-x64-msvc': 4.63.0 + '@rollup/rollup-android-arm-eabi': 4.68.2 + '@rollup/rollup-android-arm64': 4.68.2 + '@rollup/rollup-android-x64': 4.68.2 + '@rollup/rollup-darwin-arm64': 4.68.2 + '@rollup/rollup-darwin-x64': 4.68.2 + '@rollup/rollup-freebsd-arm64': 4.68.2 + '@rollup/rollup-freebsd-x64': 4.68.2 + '@rollup/rollup-linux-arm-gnueabihf': 4.68.2 + '@rollup/rollup-linux-arm-musleabihf': 4.68.2 + '@rollup/rollup-linux-arm64-gnu': 4.68.2 + '@rollup/rollup-linux-arm64-musl': 4.68.2 + '@rollup/rollup-linux-loong64-gnu': 4.68.2 + '@rollup/rollup-linux-loong64-musl': 4.68.2 + '@rollup/rollup-linux-ppc64-gnu': 4.68.2 + '@rollup/rollup-linux-ppc64-musl': 4.68.2 + '@rollup/rollup-linux-riscv64-gnu': 4.68.2 + '@rollup/rollup-linux-riscv64-musl': 4.68.2 + '@rollup/rollup-linux-s390x-gnu': 4.68.2 + '@rollup/rollup-linux-x64-gnu': 4.68.2 + '@rollup/rollup-linux-x64-musl': 4.68.2 + '@rollup/rollup-openbsd-x64': 4.68.2 + '@rollup/rollup-openharmony-arm64': 4.68.2 + '@rollup/rollup-win32-arm64-msvc': 4.68.2 + '@rollup/rollup-win32-ia32-msvc': 4.68.2 + '@rollup/rollup-win32-x64-gnu': 4.68.2 + '@rollup/rollup-win32-x64-msvc': 4.68.2 fsevents: 2.3.3 roughjs@4.6.6: @@ -21360,7 +21442,7 @@ snapshots: rxjs@7.8.2: dependencies: - tslib: 2.8.1 + tslib: 2.9.1 safe-array-concat@1.1.4: dependencies: @@ -21389,11 +21471,98 @@ snapshots: safer-buffer@2.1.2: {} - sass@1.103.1: + sass-embedded-all-unknown@1.108.2: + dependencies: + sass: 1.108.2 + optional: true + + sass-embedded-android-arm64@1.108.2: + optional: true + + sass-embedded-android-arm@1.108.2: + optional: true + + sass-embedded-android-riscv64@1.108.2: + optional: true + + sass-embedded-android-x64@1.108.2: + optional: true + + sass-embedded-darwin-arm64@1.108.2: + optional: true + + sass-embedded-darwin-x64@1.108.2: + optional: true + + sass-embedded-linux-arm64@1.108.2: + optional: true + + sass-embedded-linux-arm@1.108.2: + optional: true + + sass-embedded-linux-musl-arm64@1.108.2: + optional: true + + sass-embedded-linux-musl-arm@1.108.2: + optional: true + + sass-embedded-linux-musl-riscv64@1.108.2: + optional: true + + sass-embedded-linux-musl-x64@1.108.2: + optional: true + + sass-embedded-linux-riscv64@1.108.2: + optional: true + + sass-embedded-linux-x64@1.108.2: + optional: true + + sass-embedded-unknown-all@1.108.2: + dependencies: + sass: 1.108.2 + optional: true + + sass-embedded-win32-arm64@1.108.2: + optional: true + + sass-embedded-win32-x64@1.108.2: + optional: true + + sass-embedded@1.108.2: + dependencies: + '@bufbuild/protobuf': 2.17.0 + colorjs.io: 0.7.1 + immutable: 5.1.9 + rxjs: 7.8.2 + supports-color: 8.1.1 + sync-child-process: 1.1.1 + varint: 6.0.0 + optionalDependencies: + sass-embedded-all-unknown: 1.108.2 + sass-embedded-android-arm: 1.108.2 + sass-embedded-android-arm64: 1.108.2 + sass-embedded-android-riscv64: 1.108.2 + sass-embedded-android-x64: 1.108.2 + sass-embedded-darwin-arm64: 1.108.2 + sass-embedded-darwin-x64: 1.108.2 + sass-embedded-linux-arm: 1.108.2 + sass-embedded-linux-arm64: 1.108.2 + sass-embedded-linux-musl-arm: 1.108.2 + sass-embedded-linux-musl-arm64: 1.108.2 + sass-embedded-linux-musl-riscv64: 1.108.2 + sass-embedded-linux-musl-x64: 1.108.2 + sass-embedded-linux-riscv64: 1.108.2 + sass-embedded-linux-x64: 1.108.2 + sass-embedded-unknown-all: 1.108.2 + sass-embedded-win32-arm64: 1.108.2 + sass-embedded-win32-x64: 1.108.2 + + sass@1.108.2: dependencies: chokidar: 5.0.0 immutable: 5.1.9 - source-map-js: 1.2.1 + source-map-js: 1.2.2 optionalDependencies: '@parcel/watcher': 2.6.0 @@ -21409,61 +21578,49 @@ snapshots: dependencies: xmlchars: 2.2.0 - secretlint@10.2.2(supports-color@11.0.0): - dependencies: - '@secretlint/config-creator': 10.2.2 - '@secretlint/formatter': 10.2.2(supports-color@11.0.0) - '@secretlint/node': 10.2.2(supports-color@11.0.0) - '@secretlint/profiler': 10.2.2 - debug: 4.4.3(supports-color@11.0.0) - globby: 14.1.0 - read-pkg: 9.0.1 - transitivePeerDependencies: - - supports-color - secure-compare@3.0.1: {} selenium-webdriver@3.5.0: dependencies: - jszip: 3.10.1 + jszip: 3.10.2 rimraf: 2.7.1 tmp: 0.0.30 xml2js: 0.4.23 selenium-webdriver@3.6.0: dependencies: - jszip: 3.10.1 + jszip: 3.10.2 rimraf: 2.7.1 tmp: 0.0.30 xml2js: 0.4.23 semver-diff@3.1.1: dependencies: - semver: 6.3.1 + semver: 6.3.2 semver-greatest-satisfied-range@2.0.0: dependencies: sver: 1.8.4 - semver@5.7.2: {} + semver@5.7.3: {} - semver@6.3.1: {} + semver@6.3.2: {} - semver@7.8.5: {} + semver@7.8.6: {} send@0.19.2(supports-color@11.0.0): dependencies: debug: 2.6.9(supports-color@11.0.0) depd: 2.0.0 destroy: 1.2.0 - encodeurl: 2.0.0 + encodeurl: 2.0.1 escape-html: 1.0.3 etag: 1.8.1 fresh: 0.5.2 http-errors: 2.0.1 mime: 1.6.0 ms: 2.1.3 - on-finished: 2.4.1 + on-finished: 2.4.2 range-parser: 1.2.1 statuses: 2.0.2 transitivePeerDependencies: @@ -21472,14 +21629,14 @@ snapshots: send@1.2.1(supports-color@11.0.0): dependencies: debug: 4.4.3(supports-color@11.0.0) - encodeurl: 2.0.0 + encodeurl: 2.0.1 escape-html: 1.0.3 etag: 1.8.1 fresh: 2.0.0 http-errors: 2.0.1 mime-types: 3.0.2 ms: 2.1.3 - on-finished: 2.4.1 + on-finished: 2.4.2 range-parser: 1.3.0 statuses: 2.0.2 transitivePeerDependencies: @@ -21490,13 +21647,11 @@ snapshots: chainsaw: 0.0.9 hashish: 0.0.4 - serialize-javascript@6.0.2: - dependencies: - randombytes: 2.1.0 + serialize-javascript@7.1.4: {} serve-static@1.16.3(supports-color@11.0.0): dependencies: - encodeurl: 2.0.0 + encodeurl: 2.0.1 escape-html: 1.0.3 parseurl: 1.3.3 send: 0.19.2(supports-color@11.0.0) @@ -21505,7 +21660,7 @@ snapshots: serve-static@2.2.1(supports-color@11.0.0): dependencies: - encodeurl: 2.0.0 + encodeurl: 2.0.1 escape-html: 1.0.3 parseurl: 1.3.3 send: 1.2.1(supports-color@11.0.0) @@ -21546,15 +21701,15 @@ snapshots: shebang-regex@3.0.0: {} - shiki@4.4.3: + shiki@4.6.0: dependencies: - '@shikijs/core': 4.4.3 - '@shikijs/engine-javascript': 4.4.3 - '@shikijs/engine-oniguruma': 4.4.3 - '@shikijs/langs': 4.4.3 - '@shikijs/themes': 4.4.3 - '@shikijs/types': 4.4.3 - '@shikijs/vscode-textmate': 10.0.2 + '@shikijs/core': 4.6.0 + '@shikijs/engine-javascript': 4.6.0 + '@shikijs/engine-oniguruma': 4.6.0 + '@shikijs/langs': 4.6.0 + '@shikijs/themes': 4.6.0 + '@shikijs/types': 4.6.0 + '@shikijs/vscode-textmate': 10.1.0 '@types/hast': 3.0.5 side-channel-list@1.0.1: @@ -21585,22 +21740,10 @@ snapshots: side-channel-map: 1.0.1 side-channel-weakmap: 1.0.2 - siginfo@2.0.0: {} - signal-exit@3.0.7: {} signal-exit@4.1.0: {} - simple-concat@1.0.1: - optional: true - - simple-get@4.0.1: - dependencies: - decompress-response: 6.0.0 - once: 1.4.0 - simple-concat: 1.0.1 - optional: true - skin-tone@2.0.0: dependencies: unicode-emoji-modifier-base: 1.0.0 @@ -21611,14 +21754,13 @@ snapshots: sleep@6.1.0: dependencies: - nan: 2.28.0 + nan: 2.30.0 optional: true - slice-ansi@4.0.0: + slice-ansi@10.0.1: dependencies: - ansi-styles: 4.3.0 - astral-regex: 2.0.0 - is-fullwidth-code-point: 3.0.0 + ansi-styles: 7.0.0 + string-width: 8.3.0 slice-ansi@7.1.2: dependencies: @@ -21630,17 +21772,15 @@ snapshots: ansi-styles: 6.2.3 is-fullwidth-code-point: 5.1.0 - slice-ansi@9.0.0: + slice-ansi@9.0.1: dependencies: ansi-styles: 6.2.3 is-fullwidth-code-point: 5.1.0 - smart-buffer@4.2.0: {} - - socket.io-adapter@2.5.8(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6): + socket.io-adapter@2.5.8(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6): dependencies: debug: 4.4.3(supports-color@11.0.0) - ws: 8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6) + ws: 8.21.3(bufferutil@4.2.0)(utf-8-validate@6.0.6) transitivePeerDependencies: - bufferutil - supports-color @@ -21653,44 +21793,25 @@ snapshots: transitivePeerDependencies: - supports-color - socket.io@4.8.3(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6): + socket.io@4.8.4(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6): dependencies: accepts: 1.3.8 - base64id: 2.0.0 cors: 2.8.6 debug: 4.4.3(supports-color@11.0.0) - engine.io: 6.6.9(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) - socket.io-adapter: 2.5.8(bufferutil@4.1.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) + engine.io: 6.6.11(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) + socket.io-adapter: 2.5.8(bufferutil@4.2.0)(supports-color@11.0.0)(utf-8-validate@6.0.6) socket.io-parser: 4.2.7(supports-color@11.0.0) transitivePeerDependencies: - bufferutil - supports-color - utf-8-validate - socks-proxy-agent@8.0.5(supports-color@11.0.0): - dependencies: - agent-base: 7.1.4 - debug: 4.4.3(supports-color@11.0.0) - socks: 2.8.9 - transitivePeerDependencies: - - supports-color - - socks@2.8.9: - dependencies: - ip-address: 10.5.0 - smart-buffer: 4.2.0 - - source-map-js@1.2.1: {} + source-map-js@1.2.2: {} source-map-support@0.4.18: dependencies: source-map: 0.5.7 - source-map-support@0.5.13: - dependencies: - buffer-from: 1.1.2 - source-map: 0.6.1 - source-map-support@0.5.21: dependencies: buffer-from: 1.1.2 @@ -21709,16 +21830,16 @@ snapshots: spdx-correct@3.2.0: dependencies: spdx-expression-parse: 3.0.1 - spdx-license-ids: 3.0.23 + spdx-license-ids: 3.0.24 spdx-exceptions@2.5.0: {} spdx-expression-parse@3.0.1: dependencies: spdx-exceptions: 2.5.0 - spdx-license-ids: 3.0.23 + spdx-license-ids: 3.0.24 - spdx-license-ids@3.0.23: {} + spdx-license-ids@3.0.24: {} split-array-stream@1.0.3: dependencies: @@ -21733,7 +21854,7 @@ snapshots: sprintf-js@1.0.3: {} - sql-formatter@15.8.2: + sql-formatter@15.9.0: dependencies: argparse: 2.0.1 nearley: 2.20.1 @@ -21750,23 +21871,17 @@ snapshots: safer-buffer: 2.1.2 tweetnacl: 0.14.5 - ssri@10.0.5: - dependencies: - minipass: 7.1.3 - stack-trace@0.0.10: {} stack-utils@2.0.6: dependencies: escape-string-regexp: 2.0.0 - stackback@0.0.2: {} - statuses@1.5.0: {} statuses@2.0.2: {} - std-env@4.2.0: {} + std-env@4.3.0: {} stdin-discarder@0.2.2: {} @@ -21777,11 +21892,11 @@ snapshots: es-errors: 1.3.0 internal-slot: 1.1.0 - stream-chain@2.2.5: {} + stream-chain@4.4.1: {} stream-composer@1.0.2: dependencies: - streamx: 2.28.0 + streamx: 2.28.1 transitivePeerDependencies: - bare-abort-controller - react-native-b4a @@ -21792,16 +21907,9 @@ snapshots: stream-exhaust@1.0.2: {} - stream-json@1.9.1: + stream-json@3.8.0: dependencies: - stream-chain: 2.2.5 - - stream-parser@0.3.1(supports-color@11.0.0): - dependencies: - debug: 2.6.9(supports-color@11.0.0) - transitivePeerDependencies: - - supports-color - optional: true + stream-chain: 4.4.1 stream-shift@1.0.3: {} @@ -21813,7 +21921,7 @@ snapshots: transitivePeerDependencies: - supports-color - streamx@2.28.0: + streamx@2.28.1: dependencies: events-universal: 1.0.1 fast-fifo: 1.3.2 @@ -21822,10 +21930,6 @@ snapshots: - bare-abort-controller - react-native-b4a - strict-event-emitter@0.5.1: {} - - strictdom@1.0.1: {} - string-length@4.0.2: dependencies: char-regex: 1.0.2 @@ -21846,12 +21950,12 @@ snapshots: string-width@7.2.0: dependencies: emoji-regex: 10.6.0 - get-east-asian-width: 1.6.0 + get-east-asian-width: 1.7.0 strip-ansi: 7.2.0 - string-width@8.2.2: + string-width@8.3.0: dependencies: - get-east-asian-width: 1.6.0 + get-east-asian-width: 1.7.0 strip-ansi: 7.2.0 string.prototype.trim@1.2.11: @@ -21901,7 +22005,7 @@ snapshots: strip-ansi@7.2.0: dependencies: - ansi-regex: 6.3.0 + ansi-regex: 6.6.0 strip-bom@4.0.0: {} @@ -21911,13 +22015,15 @@ snapshots: strip-json-comments@3.1.1: {} + strip-json-comments@5.0.3: {} + structured-source@4.0.0: dependencies: boundary: 2.0.0 stubs@3.0.0: {} - style-mod@4.1.3: {} + style-mod@4.1.4: {} stylis@4.4.0: {} @@ -21931,11 +22037,11 @@ snapshots: tinyglobby: 0.2.17 ts-interface-checker: 0.1.13 - superstatic@10.0.0(encoding@0.1.13)(supports-color@11.0.0): + superstatic@10.0.0(encoding@0.1.14)(supports-color@11.0.0): dependencies: basic-auth-connect: 1.1.0 commander: 10.0.1 - compression: 1.8.1(supports-color@11.0.0) + compression: 1.8.2(supports-color@11.0.0) connect: 3.7.0(supports-color@11.0.0) destroy: 1.2.0 glob-slasher: 1.0.1 @@ -21944,14 +22050,14 @@ snapshots: lodash: 4.18.1 mime-types: 2.1.35 minimatch: 6.2.3 - morgan: 1.11.0(supports-color@11.0.0) - on-finished: 2.4.1 + morgan: 1.12.1(supports-color@11.0.0) + on-finished: 2.4.2 on-headers: 1.1.0 path-to-regexp: 1.9.0 router: 2.2.0(supports-color@11.0.0) - update-notifier-cjs: 5.1.7(encoding@0.1.13) + update-notifier-cjs: 5.1.7(encoding@0.1.14) optionalDependencies: - re2: 1.26.1 + re2: 1.27.1 transitivePeerDependencies: - encoding - supports-color @@ -21981,29 +22087,27 @@ snapshots: sver@1.8.4: optionalDependencies: - semver: 6.3.1 + semver: 6.3.2 symbol-tree@3.2.4: {} + sync-child-process@1.1.1: + dependencies: + sync-message-port: 1.2.0 + + sync-message-port@1.2.0: {} + synckit@0.11.13: dependencies: '@pkgr/core': 0.3.6 - systeminformation@5.33.1: {} + systeminformation@5.33.19: {} systemjs@6.15.1: {} - table@6.9.0: - dependencies: - ajv: 8.20.0 - lodash.truncate: 4.4.2 - slice-ansi: 4.0.0 - string-width: 4.2.3 - strip-ansi: 6.0.1 - - tailwindcss@3.4.19(tsx@4.23.12)(yaml@2.9.0): + tailwindcss@3.4.19(tsx@4.23.15)(yaml@2.9.1): dependencies: - '@alloc/quick-lru': 5.2.0 + '@alloc/quick-lru': 5.3.0 arg: 5.0.2 chokidar: 3.6.0 didyoumean: 1.2.2 @@ -22012,46 +22116,29 @@ snapshots: glob-parent: 6.0.2 is-glob: 4.0.3 jiti: 1.21.7 - lilconfig: 3.1.3 + lilconfig: 3.1.4 micromatch: 4.0.8 normalize-path: 3.0.0 object-hash: 3.0.0 picocolors: 1.1.1 - postcss: 8.5.26 - postcss-import: 15.1.0(postcss@8.5.26) - postcss-js: 4.1.0(postcss@8.5.26) - postcss-load-config: 6.0.1(jiti@1.21.7)(postcss@8.5.26)(tsx@4.23.12)(yaml@2.9.0) - postcss-nested: 6.2.0(postcss@8.5.26) - postcss-selector-parser: 6.1.4 - resolve: 1.22.12 + postcss: 8.5.32 + postcss-import: 15.1.0(postcss@8.5.32) + postcss-js: 4.1.0(postcss@8.5.32) + postcss-load-config: 6.0.1(jiti@1.21.7)(postcss@8.5.32)(tsx@4.23.15)(yaml@2.9.1) + postcss-nested: 6.2.0(postcss@8.5.32) + postcss-selector-parser: 6.1.6 + resolve: 1.22.14 sucrase: 3.35.1 transitivePeerDependencies: - tsx - yaml - tar-fs@2.1.5: - dependencies: - chownr: 1.1.4 - mkdirp-classic: 0.5.3 - pump: 3.0.4 - tar-stream: 2.2.0 - optional: true - - tar-stream@2.2.0: - dependencies: - bl: 4.1.0 - end-of-stream: 1.4.5 - fs-constants: 1.0.0 - inherits: 2.0.4 - readable-stream: 3.6.2 - optional: true - - tar-stream@3.2.0: + tar-stream@3.2.2(bare-buffer@3.7.1): dependencies: - b4a: 1.8.1 - bare-fs: 4.8.0 + b4a: 1.9.0 + bare-fs: 4.8.4(bare-buffer@3.7.1) fast-fifo: 1.3.2 - streamx: 2.28.0 + streamx: 2.28.1 transitivePeerDependencies: - bare-abort-controller - bare-buffer @@ -22083,32 +22170,25 @@ snapshots: teex@1.0.1: dependencies: - streamx: 2.28.0 + streamx: 2.28.1 transitivePeerDependencies: - bare-abort-controller - react-native-b4a - terminal-link@4.0.0: - dependencies: - ansi-escapes: 7.3.0 - supports-hyperlinks: 3.2.0 - - test-exclude@6.0.0: + test-exclude@7.0.2: dependencies: '@istanbuljs/schema': 0.1.6 - glob: 7.2.3 - minimatch: 3.1.5 + glob: 10.5.0 + minimatch: 10.2.6 text-decoder@1.2.7: dependencies: - b4a: 1.8.1 + b4a: 1.9.0 transitivePeerDependencies: - react-native-b4a text-hex@1.0.0: {} - text-table@0.2.0: {} - textextensions@6.11.0: dependencies: editions: 6.22.0 @@ -22132,28 +22212,26 @@ snapshots: dependencies: readable-stream: 3.6.2 - tinybench@2.9.0: {} + tinybench@6.2.3: {} - tinyexec@1.3.0: {} + tinyexec@1.3.1: {} tinyglobby@0.2.17: dependencies: - fdir: 6.5.0(picomatch@4.0.5) - picomatch: 4.0.5 - - tinyrainbow@3.1.1: {} + fdir: 6.5.0(picomatch@4.0.7) + picomatch: 4.0.7 tldts-core@6.1.86: {} - tldts-core@7.4.10: {} + tldts-core@7.4.20: {} tldts@6.1.86: dependencies: tldts-core: 6.1.86 - tldts@7.4.10: + tldts@7.4.19: dependencies: - tldts-core: 7.4.10 + tldts-core: 7.4.20 tmp@0.0.30: dependencies: @@ -22161,15 +22239,13 @@ snapshots: tmp@0.2.7: {} - tmpl@1.0.5: {} - to-regex-range@5.0.1: dependencies: is-number: 7.0.0 to-through@3.0.0: dependencies: - streamx: 2.28.0 + streamx: 2.28.1 transitivePeerDependencies: - bare-abort-controller - react-native-b4a @@ -22191,9 +22267,9 @@ snapshots: dependencies: tldts: 6.1.86 - tough-cookie@6.0.2: + tough-cookie@6.1.0: dependencies: - tldts: 7.4.10 + tldts: 7.4.19 toxic@1.0.1: dependencies: @@ -22205,17 +22281,25 @@ snapshots: dependencies: punycode: 2.3.1 - tr46@6.0.0: + tr46@7.0.0: dependencies: punycode: 2.3.1 - traverse@0.3.9: {} + traverse@0.3.10: + dependencies: + define-data-property: 1.1.4 + es-to-primitive: 1.3.4 + gopd: 1.2.0 + typedarray.prototype.slice: 1.0.6 + which-typed-array: 1.1.24 - traverse@0.6.11: + traverse@0.6.14: dependencies: + define-data-property: 1.1.4 + es-to-primitive: 1.3.4 gopd: 1.2.0 - typedarray.prototype.slice: 1.0.5 - which-typed-array: 1.1.22 + typedarray.prototype.slice: 1.0.6 + which-typed-array: 1.1.24 tree-kill@1.2.2: {} @@ -22235,7 +22319,7 @@ snapshots: '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 '@types/node': 20.19.43 - acorn: 8.18.0 + acorn: 8.19.0 acorn-walk: 8.3.5 arg: 4.1.3 create-require: 1.1.1 @@ -22245,15 +22329,15 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - ts-node@10.9.2(@types/node@24.13.3)(typescript@6.0.3): + ts-node@10.9.2(@types/node@24.19.2)(typescript@6.0.3): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.13 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 24.13.3 - acorn: 8.18.0 + '@types/node': 24.19.2 + acorn: 8.19.0 acorn-walk: 8.3.5 arg: 4.1.3 create-require: 1.1.1 @@ -22273,7 +22357,7 @@ snapshots: tslib@1.14.1: {} - tslib@2.8.1: {} + tslib@2.9.1: {} tslint-no-toplevel-property-access@0.0.2(tslint@6.1.3(typescript@6.0.3))(typescript@6.0.3): dependencies: @@ -22288,11 +22372,11 @@ snapshots: commander: 2.20.3 diff: 4.0.4 glob: 7.2.3 - js-yaml: 3.15.1 + js-yaml: 3.15.2 minimatch: 3.1.5 mkdirp: 0.5.6 - resolve: 1.22.12 - semver: 5.7.2 + resolve: 1.22.14 + semver: 5.7.3 tslib: 1.14.1 tsutils: 2.29.0(typescript@6.0.3) typescript: 6.0.3 @@ -22304,7 +22388,7 @@ snapshots: tslib: 1.14.1 typescript: 6.0.3 - tsx@4.23.12: + tsx@4.23.15: dependencies: esbuild: 0.28.2 optionalDependencies: @@ -22353,13 +22437,12 @@ snapshots: has-proto: 1.2.0 is-typed-array: 1.1.15 - typed-array-byte-offset@1.0.4: + typed-array-byte-offset@1.0.5: dependencies: available-typed-arrays: 1.0.7 call-bind: 1.0.9 for-each: 0.3.5 gopd: 1.2.0 - has-proto: 1.2.0 is-typed-array: 1.1.15 reflect.getprototypeof: 1.0.10 @@ -22376,7 +22459,7 @@ snapshots: typed-rest-client@1.8.11: dependencies: - qs: 6.15.3 + qs: 6.17.1 tunnel: 0.0.6 underscore: 1.13.8 @@ -22384,7 +22467,7 @@ snapshots: dependencies: is-typedarray: 1.0.0 - typedarray.prototype.slice@1.0.5: + typedarray.prototype.slice@1.0.6: dependencies: call-bind: 1.0.9 define-properties: 1.2.1 @@ -22393,16 +22476,16 @@ snapshots: get-proto: 1.0.1 math-intrinsics: 1.1.0 typed-array-buffer: 1.0.3 - typed-array-byte-offset: 1.0.4 + typed-array-byte-offset: 1.0.5 typedarray@0.0.6: {} + typescript@5.9.3: {} + typescript@6.0.3: {} ua-parser-js@0.7.41: {} - uc.micro@2.1.0: {} - uglify-js@3.19.3: optional: true @@ -22428,15 +22511,13 @@ snapshots: undici-types@6.21.0: {} - undici-types@7.18.2: {} + undici-types@7.24.6: {} - undici-types@8.10.0: {} + undici-types@8.12.4: {} - undici@6.28.0: {} + undici@6.29.1: {} - undici@7.29.0: {} - - undici@8.10.0: {} + undici@8.12.4: {} unicode-emoji-modifier-base@1.0.0: {} @@ -22444,11 +22525,9 @@ snapshots: unicorn-magic@0.1.0: {} - unicorn-magic@0.3.0: {} - union@0.5.0: dependencies: - qs: 6.15.3 + qs: 6.17.1 unique-string@2.0.0: dependencies: @@ -22466,23 +22545,16 @@ snapshots: dependencies: '@types/unist': 3.0.3 - unist-util-visit-parents@6.0.2: + unist-util-visit-parents@6.1.0: dependencies: '@types/unist': 3.0.3 unist-util-is: 6.0.1 - unist-util-visit@5.1.0: + unist-util-visit@5.2.0: dependencies: '@types/unist': 3.0.3 unist-util-is: 6.0.1 - unist-util-visit-parents: 6.0.2 - - universal-analytics@0.5.4(supports-color@11.0.0): - dependencies: - debug: 4.4.3(supports-color@11.0.0) - uuid: 14.0.1 - transitivePeerDependencies: - - supports-color + unist-util-visit-parents: 6.1.0 universal-github-app-jwt@2.2.2: {} @@ -22494,42 +22566,41 @@ snapshots: unpipe@1.0.0: {} - unrs-resolver@1.12.2: + unrs-resolver@1.13.0: dependencies: - napi-postinstall: 0.3.4 + napi-postinstall: 0.3.8 optionalDependencies: - '@unrs/resolver-binding-android-arm-eabi': 1.12.2 - '@unrs/resolver-binding-android-arm64': 1.12.2 - '@unrs/resolver-binding-darwin-arm64': 1.12.2 - '@unrs/resolver-binding-darwin-x64': 1.12.2 - '@unrs/resolver-binding-freebsd-x64': 1.12.2 - '@unrs/resolver-binding-linux-arm-gnueabihf': 1.12.2 - '@unrs/resolver-binding-linux-arm-musleabihf': 1.12.2 - '@unrs/resolver-binding-linux-arm64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-arm64-musl': 1.12.2 - '@unrs/resolver-binding-linux-loong64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-loong64-musl': 1.12.2 - '@unrs/resolver-binding-linux-ppc64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-riscv64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-riscv64-musl': 1.12.2 - '@unrs/resolver-binding-linux-s390x-gnu': 1.12.2 - '@unrs/resolver-binding-linux-x64-gnu': 1.12.2 - '@unrs/resolver-binding-linux-x64-musl': 1.12.2 - '@unrs/resolver-binding-openharmony-arm64': 1.12.2 - '@unrs/resolver-binding-wasm32-wasi': 1.12.2 - '@unrs/resolver-binding-win32-arm64-msvc': 1.12.2 - '@unrs/resolver-binding-win32-ia32-msvc': 1.12.2 - '@unrs/resolver-binding-win32-x64-msvc': 1.12.2 + '@unrs/resolver-binding-android-arm-eabi': 1.13.0 + '@unrs/resolver-binding-android-arm64': 1.13.0 + '@unrs/resolver-binding-darwin-arm64': 1.13.0 + '@unrs/resolver-binding-darwin-x64': 1.13.0 + '@unrs/resolver-binding-freebsd-x64': 1.13.0 + '@unrs/resolver-binding-linux-arm-gnueabihf': 1.13.0 + '@unrs/resolver-binding-linux-arm-musleabihf': 1.13.0 + '@unrs/resolver-binding-linux-arm64-gnu': 1.13.0 + '@unrs/resolver-binding-linux-arm64-musl': 1.13.0 + '@unrs/resolver-binding-linux-loong64-gnu': 1.13.0 + '@unrs/resolver-binding-linux-loong64-musl': 1.13.0 + '@unrs/resolver-binding-linux-ppc64-gnu': 1.13.0 + '@unrs/resolver-binding-linux-riscv64-gnu': 1.13.0 + '@unrs/resolver-binding-linux-riscv64-musl': 1.13.0 + '@unrs/resolver-binding-linux-s390x-gnu': 1.13.0 + '@unrs/resolver-binding-linux-x64-gnu': 1.13.0 + '@unrs/resolver-binding-linux-x64-musl': 1.13.0 + '@unrs/resolver-binding-openharmony-arm64': 1.13.0 + '@unrs/resolver-binding-win32-arm64-msvc': 1.13.0 + '@unrs/resolver-binding-win32-ia32-msvc': 1.13.0 + '@unrs/resolver-binding-win32-x64-msvc': 1.13.0 untildify@4.0.0: {} - update-browserslist-db@1.3.1(browserslist@4.28.8): + update-browserslist-db@1.3.4(browserslist@4.29.5): dependencies: - browserslist: 4.28.8 + browserslist: 4.29.5 escalade: 3.2.0 picocolors: 1.1.1 - update-notifier-cjs@5.1.7(encoding@0.1.13): + update-notifier-cjs@5.1.7(encoding@0.1.14): dependencies: boxen: 5.1.2 chalk: 4.1.2 @@ -22540,11 +22611,11 @@ snapshots: is-installed-globally: 0.4.0 is-npm: 5.0.0 is-yarn-global: 0.3.0 - isomorphic-fetch: 3.0.0(encoding@0.1.13) + isomorphic-fetch: 3.0.0(encoding@0.1.14) pupa: 2.1.1 registry-auth-token: 5.1.1 registry-url: 5.1.0 - semver: 7.8.5 + semver: 7.8.6 semver-diff: 3.1.1 xdg-basedir: 4.0.0 transitivePeerDependencies: @@ -22568,8 +22639,6 @@ snapshots: utils-merge@1.0.1: {} - uuid@14.0.1: {} - uuid@3.4.0: {} uuid@9.0.1: {} @@ -22595,8 +22664,12 @@ snapshots: value-or-function@4.0.0: {} + varint@6.0.0: {} + vary@1.1.2: {} + verkit@0.5.0: {} + verror@1.10.0: dependencies: assert-plus: 1.0.0 @@ -22605,7 +22678,7 @@ snapshots: version-range@4.15.0: {} - vfile-message@4.0.3: + vfile-message@4.0.4: dependencies: '@types/unist': 3.0.3 unist-util-stringify-position: 4.0.0 @@ -22613,7 +22686,7 @@ snapshots: vfile@6.0.3: dependencies: '@types/unist': 3.0.3 - vfile-message: 4.0.3 + vfile-message: 4.0.4 vinyl-contents@2.0.0: dependencies: @@ -22626,7 +22699,7 @@ snapshots: vinyl-fs@4.0.2: dependencies: fs-mkdirp-stream: 2.0.1 - glob-stream: 8.0.3 + glob-stream: 8.0.4 graceful-fs: 4.2.11 iconv-lite: 0.6.3 is-valid-glob: 1.0.0 @@ -22634,7 +22707,7 @@ snapshots: normalize-path: 3.0.0 resolve-options: 2.0.0 stream-composer: 1.0.2 - streamx: 2.28.0 + streamx: 2.28.1 to-through: 3.0.0 value-or-function: 4.0.0 vinyl: 3.0.1 @@ -22648,7 +22721,7 @@ snapshots: convert-source-map: 2.0.0 graceful-fs: 4.2.11 now-and-later: 3.0.0 - streamx: 2.28.0 + streamx: 2.28.1 vinyl: 3.0.1 vinyl-contents: 2.0.0 transitivePeerDependencies: @@ -22665,142 +22738,94 @@ snapshots: - bare-abort-controller - react-native-b4a - vite@8.2.2(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0): + vite@8.3.8(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1): dependencies: lightningcss: 1.33.0 - picomatch: 4.0.5 - postcss: 8.5.26 - rolldown: 1.2.4 + picomatch: 4.0.7 + postcss: 8.5.32 + rolldown: 1.2.19 tinyglobby: 0.2.17 optionalDependencies: '@types/node': 20.19.43 esbuild: 0.28.2 fsevents: 2.3.3 jiti: 1.21.7 - less: 4.9.0(supports-color@11.0.0) - sass: 1.103.1 - tsx: 4.23.12 - yaml: 2.9.0 + sass: 1.108.2 + sass-embedded: 1.108.2 + tsx: 4.23.15 + yaml: 2.9.1 - vite@8.2.2(@types/node@24.13.3)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0): + vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1): dependencies: lightningcss: 1.33.0 - picomatch: 4.0.5 - postcss: 8.5.26 - rolldown: 1.2.4 + picomatch: 4.0.7 + postcss: 8.5.32 + rolldown: 1.2.19 tinyglobby: 0.2.17 optionalDependencies: - '@types/node': 24.13.3 + '@types/node': 24.19.2 esbuild: 0.28.2 fsevents: 2.3.3 jiti: 1.21.7 - less: 4.9.0(supports-color@11.0.0) - sass: 1.103.1 - tsx: 4.23.12 - yaml: 2.9.0 - - vitest@4.1.10(@opentelemetry/api@1.9.1)(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(jsdom@30.0.1)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0): - dependencies: - '@vitest/expect': 4.1.10 - '@vitest/mocker': 4.1.10(vite@8.2.2(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0)) - '@vitest/pretty-format': 4.1.10 - '@vitest/runner': 4.1.10 - '@vitest/snapshot': 4.1.10 - '@vitest/spy': 4.1.10 - '@vitest/utils': 4.1.10 - es-module-lexer: 2.3.2 - expect-type: 1.4.0 - magic-string: 0.30.21 - obug: 2.1.4 - pathe: 2.0.3 - picomatch: 4.0.5 - std-env: 4.2.0 - tinybench: 2.9.0 - tinyexec: 1.3.0 - tinyglobby: 0.2.17 - tinyrainbow: 3.1.1 - vite: 8.2.2(@types/node@20.19.43)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0) - why-is-node-running: 2.3.0 - optionalDependencies: - '@opentelemetry/api': 1.9.1 - '@types/node': 20.19.43 - jsdom: 30.0.1 - transitivePeerDependencies: - - '@vitejs/devtools' - - esbuild - - jiti - - less - - msw - - sass - - sass-embedded - - stylus - - sugarss - - terser - - tsx - - yaml + sass: 1.108.2 + sass-embedded: 1.108.2 + tsx: 4.23.15 + yaml: 2.9.1 - vitest@4.1.10(@opentelemetry/api@1.9.1)(@types/node@24.13.3)(esbuild@0.28.2)(jiti@1.21.7)(jsdom@30.0.1)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0): + vitest@5.1.0(@opentelemetry/api@1.10.0)(@types/node@24.19.2)(jsdom@31.0.0)(vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1)): dependencies: - '@vitest/expect': 4.1.10 - '@vitest/mocker': 4.1.10(vite@8.2.2(@types/node@24.13.3)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0)) - '@vitest/pretty-format': 4.1.10 - '@vitest/runner': 4.1.10 - '@vitest/snapshot': 4.1.10 - '@vitest/spy': 4.1.10 - '@vitest/utils': 4.1.10 + '@types/chai': 5.2.3 + '@vitest/mocker': 5.1.0(vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1)) + chai: 6.3.0 es-module-lexer: 2.3.2 expect-type: 1.4.0 - magic-string: 0.30.21 - obug: 2.1.4 - pathe: 2.0.3 - picomatch: 4.0.5 - std-env: 4.2.0 - tinybench: 2.9.0 - tinyexec: 1.3.0 + magic-string: 1.4.5 + obug: 3.0.0 + picomatch: 4.0.7 + std-env: 4.3.0 + tinybench: 6.2.3 + tinyexec: 1.3.1 tinyglobby: 0.2.17 - tinyrainbow: 3.1.1 - vite: 8.2.2(@types/node@24.13.3)(esbuild@0.28.2)(jiti@1.21.7)(less@4.9.0(supports-color@11.0.0))(sass@1.103.1)(tsx@4.23.12)(yaml@2.9.0) - why-is-node-running: 2.3.0 + vite: 8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@1.21.7)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(yaml@2.9.1) + why-is-node-running: 3.2.1 optionalDependencies: - '@opentelemetry/api': 1.9.1 - '@types/node': 24.13.3 - jsdom: 30.0.1 + '@opentelemetry/api': 1.10.0 + '@types/node': 24.19.2 + jsdom: 31.0.0 transitivePeerDependencies: - - '@vitejs/devtools' - - esbuild - - jiti - - less - msw - - sass - - sass-embedded - - stylus - - sugarss - - terser - - tsx - - yaml void-elements@2.0.1: {} vscode-css-languageservice@6.3.10: dependencies: '@vscode/l10n': 0.0.18 - vscode-languageserver-textdocument: 1.0.14 + vscode-languageserver-textdocument: 1.0.16 vscode-languageserver-types: 3.17.5 vscode-uri: 3.2.0 vscode-html-languageservice@5.6.2: dependencies: '@vscode/l10n': 0.0.18 - vscode-languageserver-textdocument: 1.0.14 - vscode-languageserver-types: 3.18.0 + vscode-languageserver-textdocument: 1.0.16 + vscode-languageserver-types: 3.18.5 vscode-uri: 3.2.0 vscode-jsonrpc@8.2.0: {} + vscode-jsonrpc@9.0.3: {} + + vscode-languageclient@10.1.2: + dependencies: + minimatch: 10.2.6 + semver: 7.8.6 + vscode-languageserver-protocol: 3.18.4 + vscode-languageserver-textdocument: 1.0.15 + vscode-languageclient@9.0.1: dependencies: minimatch: 5.1.9 - semver: 7.8.5 + semver: 7.8.6 vscode-languageserver-protocol: 3.17.5 vscode-languageserver-protocol@3.17.5: @@ -22808,11 +22833,24 @@ snapshots: vscode-jsonrpc: 8.2.0 vscode-languageserver-types: 3.17.5 - vscode-languageserver-textdocument@1.0.14: {} + vscode-languageserver-protocol@3.18.4: + dependencies: + vscode-jsonrpc: 9.0.3 + vscode-languageserver-types: 3.18.4 + + vscode-languageserver-textdocument@1.0.15: {} + + vscode-languageserver-textdocument@1.0.16: {} vscode-languageserver-types@3.17.5: {} - vscode-languageserver-types@3.18.0: {} + vscode-languageserver-types@3.18.4: {} + + vscode-languageserver-types@3.18.5: {} + + vscode-languageserver@10.1.2: + dependencies: + vscode-languageserver-protocol: 3.18.4 vscode-languageserver@9.0.1: dependencies: @@ -22840,27 +22878,29 @@ snapshots: dependencies: xml-name-validator: 5.0.0 - walk-up-path@4.0.0: {} - - walker@1.0.8: + w3c-xmlserializer@6.0.0: dependencies: - makeerror: 1.0.12 + xml-name-validator: 5.0.0 + + walk-up-path@4.0.0: {} wcwidth@1.0.1: dependencies: defaults: 1.0.4 - weak-lru-cache@1.2.2: + weak-lru-cache@1.2.3: optional: true web-streams-polyfill@3.3.3: {} web-vitals@4.2.4: {} + web-vitals@5.3.0: {} + webdriver-js-extender@2.1.0: dependencies: '@types/selenium-webdriver': 3.0.7 - selenium-webdriver: 3.6.0 + selenium-webdriver: 3.5.0 webdriver-manager@12.1.9: dependencies: @@ -22873,7 +22913,7 @@ snapshots: q: 1.4.1 request: 2.88.2 rimraf: 2.7.1 - semver: 5.7.2 + semver: 5.7.3 xml2js: 0.4.23 webidl-conversions@3.0.1: {} @@ -22882,6 +22922,8 @@ snapshots: webidl-conversions@8.0.1: {} + webmcp-types@0.1.10: {} + websocket-driver@0.7.5: dependencies: http-parser-js: 0.5.10 @@ -22913,18 +22955,10 @@ snapshots: tr46: 5.1.1 webidl-conversions: 7.0.0 - whatwg-url@16.0.1: - dependencies: - '@exodus/bytes': 1.15.1 - tr46: 6.0.0 - webidl-conversions: 8.0.1 - transitivePeerDependencies: - - '@noble/hashes' - - whatwg-url@17.1.0: + whatwg-url@17.3.0: dependencies: - '@exodus/bytes': 1.15.1 - tr46: 6.0.0 + '@exodus/bytes': 1.16.0 + tr46: 7.0.0 webidl-conversions: 8.0.1 transitivePeerDependencies: - '@noble/hashes' @@ -22956,7 +22990,7 @@ snapshots: isarray: 2.0.5 which-boxed-primitive: 1.1.1 which-collection: 1.0.2 - which-typed-array: 1.1.22 + which-typed-array: 1.1.24 which-collection@1.0.2: dependencies: @@ -22967,7 +23001,7 @@ snapshots: which-module@2.0.1: {} - which-typed-array@1.1.22: + which-typed-array@1.1.24: dependencies: available-typed-arrays: 1.0.7 call-bind: 1.0.9 @@ -22993,10 +23027,7 @@ snapshots: dependencies: isexe: 4.0.0 - why-is-node-running@2.3.0: - dependencies: - siginfo: 2.0.0 - stackback: 0.0.2 + why-is-node-running@3.2.1: {} widest-line@3.1.0: dependencies: @@ -23010,8 +23041,8 @@ snapshots: winston@3.19.0: dependencies: - '@colors/colors': 1.6.0 - '@dabh/diagnostics': 2.0.8 + '@colors/colors': 1.6.1 + '@dabh/diagnostics': 2.0.9 async: 3.2.6 is-stream: 2.0.1 logform: 2.7.0 @@ -23024,13 +23055,12 @@ snapshots: wordwrap@1.0.0: {} - workerpool@9.3.4: {} + workerpool@10.0.3: {} - wrap-ansi@10.0.0: + wrap-ansi@10.0.2: dependencies: ansi-styles: 6.2.3 - string-width: 8.2.2 - strip-ansi: 7.2.0 + string-width: 8.3.0 wrap-ansi@6.2.0: dependencies: @@ -23070,18 +23100,24 @@ snapshots: imurmurhash: 0.1.4 signal-exit: 4.1.0 - ws@7.5.13(bufferutil@4.1.0): + ws@7.5.13(bufferutil@4.2.0): + optionalDependencies: + bufferutil: 4.2.0 + + ws@8.21.3(bufferutil@4.2.0)(utf-8-validate@6.0.6): optionalDependencies: - bufferutil: 4.1.0 + bufferutil: 4.2.0 + utf-8-validate: 6.0.6 - ws@8.21.3(bufferutil@4.1.0)(utf-8-validate@6.0.6): + ws@8.22.2(bufferutil@4.2.0)(utf-8-validate@6.0.6): optionalDependencies: - bufferutil: 4.1.0 + bufferutil: 4.2.0 utf-8-validate: 6.0.6 - wsl-utils@0.1.0: + wsl-utils@1.0.1: dependencies: is-wsl: 3.1.1 + powershell-utils: 0.2.1 xdg-basedir@4.0.0: {} @@ -23103,7 +23139,7 @@ snapshots: xmlchars@2.2.0: {} - xpath@0.0.34: {} + xpath@0.0.36: {} xtend@4.0.2: {} @@ -23123,7 +23159,7 @@ snapshots: yallist@5.0.0: {} - yaml@2.9.0: {} + yaml@2.9.1: {} yargs-parser@18.1.3: dependencies: @@ -23136,13 +23172,6 @@ snapshots: yargs-parser@22.0.0: {} - yargs-unparser@2.0.0: - dependencies: - camelcase: 6.3.0 - decamelize: 4.0.0 - flat: 5.0.2 - is-plain-obj: 2.1.0 - yargs@15.4.1: dependencies: cliui: 6.0.0 @@ -23177,12 +23206,12 @@ snapshots: y18n: 5.0.8 yargs-parser: 21.1.1 - yargs@18.1.0: + yargs@18.2.0: dependencies: cliui: 9.0.1 escalade: 3.2.0 get-caller-file: 2.0.5 - string-width: 8.2.2 + string-width: 8.3.0 y18n: 5.0.8 yargs-parser: 22.0.0 @@ -23202,57 +23231,27 @@ snapshots: yoctocolors@2.2.0: {} - yuku-ast@0.8.7: - dependencies: - '@yuku-toolchain/types': 0.8.7 - - yuku-codegen@0.8.7: - dependencies: - '@yuku-toolchain/types': 0.8.7 - optionalDependencies: - '@yuku-codegen/binding-android-arm64': 0.8.7 - '@yuku-codegen/binding-darwin-arm64': 0.8.7 - '@yuku-codegen/binding-darwin-x64': 0.8.7 - '@yuku-codegen/binding-freebsd-x64': 0.8.7 - '@yuku-codegen/binding-linux-arm-gnu': 0.8.7 - '@yuku-codegen/binding-linux-arm-musl': 0.8.7 - '@yuku-codegen/binding-linux-arm64-gnu': 0.8.7 - '@yuku-codegen/binding-linux-arm64-musl': 0.8.7 - '@yuku-codegen/binding-linux-x64-gnu': 0.8.7 - '@yuku-codegen/binding-linux-x64-musl': 0.8.7 - '@yuku-codegen/binding-win32-arm64': 0.8.7 - '@yuku-codegen/binding-win32-x64': 0.8.7 - - yuku-parser@0.8.7: - dependencies: - '@yuku-toolchain/types': 0.8.7 - yuku-ast: 0.8.7 + yuku@0.27.0: optionalDependencies: - '@yuku-parser/binding-android-arm64': 0.8.7 - '@yuku-parser/binding-darwin-arm64': 0.8.7 - '@yuku-parser/binding-darwin-x64': 0.8.7 - '@yuku-parser/binding-freebsd-x64': 0.8.7 - '@yuku-parser/binding-linux-arm-gnu': 0.8.7 - '@yuku-parser/binding-linux-arm-musl': 0.8.7 - '@yuku-parser/binding-linux-arm64-gnu': 0.8.7 - '@yuku-parser/binding-linux-arm64-musl': 0.8.7 - '@yuku-parser/binding-linux-x64-gnu': 0.8.7 - '@yuku-parser/binding-linux-x64-musl': 0.8.7 - '@yuku-parser/binding-win32-arm64': 0.8.7 - '@yuku-parser/binding-win32-x64': 0.8.7 + '@yuku-toolchain/darwin-arm64': 0.27.0 + '@yuku-toolchain/darwin-x64': 0.27.0 + '@yuku-toolchain/linux-arm64': 0.27.0 + '@yuku-toolchain/linux-x64': 0.27.0 + '@yuku-toolchain/win32-arm64': 0.27.0 + '@yuku-toolchain/win32-x64': 0.27.0 zip-stream@6.0.1: dependencies: archiver-utils: 5.0.2 compress-commons: 6.0.2 - readable-stream: 4.7.0 + readable-stream: 4.8.0 - zod-to-json-schema@3.25.2(zod@4.4.3): + zod-to-json-schema@3.25.2(zod@4.6.7): dependencies: - zod: 4.4.3 + zod: 4.6.7 - zod@4.4.3: {} + zod@4.6.7: {} - zone.js@0.16.2: {} + zone.js@0.16.3: {} zwitch@2.0.4: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 34b585e15cc7..d9eaa206823b 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -31,6 +31,10 @@ packages: - vscode-ng-language-service - vscode-ng-language-service/server - vscode-ng-language-service/integration/project + - packages/compiler-cli/preprocessor/language-service + - ngp-vscode-ng-language-service + - ngp-vscode-ng-language-service/client + - ngp-vscode-ng-language-service/server allowBuilds: '@bazel/concatjs': false @@ -88,8 +92,5 @@ hoist: false # to rely on peer dependency placeholders substituted via Bazel. autoInstallPeers: false -# Avoid prompting for confirmation when pnpm determines node_modules needs to be purged. -confirmModulesPurge: false - # Workaround as the default 'install' causes problems during `pnpm ng-dev pr merge` as the lockfile is updated. verifyDepsBeforeRun: warn diff --git a/renovate.json b/renovate.json index dbb8a238c562..814cad865674 100644 --- a/renovate.json +++ b/renovate.json @@ -1,7 +1,7 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["github>angular/dev-infra//renovate-presets/default.json5"], - "baseBranchPatterns": ["main", "22.1.x"], + "baseBranchPatterns": ["main", "22.3.x"], "ignoreDeps": [ "@types/selenium-webdriver", "angular-1.5", @@ -26,10 +26,11 @@ "enabled": false }, { - "matchManagers": ["bazel", "bazel-module", "bazelisk", "npm"], + "matchManagers": ["bazel", "bazel-module", "bazelisk", "cargo", "npm"], "postUpgradeTasks": { "commands": [ "pnpm install --frozen-lockfile", + "bash -c \"pnpm bazel mod deps --lockfile_mode=update || true\"", "pnpm ng-dev misc sync-module-bazel", "pnpm bazel run //.github/actions/deploy-docs-site:main", "pnpm bazel run //packages/common:base_currencies_file", @@ -49,6 +50,12 @@ "enabled": false, "matchDepNames": ["tailwindcss"], "matchUpdateTypes": ["major"] + }, + { + "matchFileNames": ["packages/zone.js/package.json"], + "matchPackageNames": ["@types/jasmine", "jasmine", "jasmine-core"], + "matchUpdateTypes": ["major"], + "enabled": false } ] } diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index fb0e817869cb..1abe14af3861 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -5,7 +5,6 @@ "lib": ["es2020"], "module": "Node16", "types": ["node"], - "strict": true, "noEmit": true, "skipLibCheck": true, "esModuleInterop": true, diff --git a/skills/dev-skills/README.md b/skills/dev-skills/README.md index 789e6a324fd0..579fbae84210 100644 --- a/skills/dev-skills/README.md +++ b/skills/dev-skills/README.md @@ -4,7 +4,7 @@ The Angular skills are designed to help coding agents create applications aligne ## Available Skills -- **`angular-developer`**: Generates Angular code and provides architectural guidance. Useful for creating components, services, HTTP communication, or obtaining best practices on reactivity (signals, linkedSignal, resource, httpResource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling, testing, or CLI tooling. +- **`angular-developer`**: Generates Angular code and provides architectural guidance. Useful for creating components, services, HTTP communication, or obtaining best practices on reactivity (signals, linkedSignal, resource, httpResource), queries and content projection, forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling, testing, or CLI tooling. - **`angular-new-app`**: Creates a new Angular app using the Angular CLI. Provides important guidelines for effectively setting up and structuring a modern Angular application. ## Using Agent Skills diff --git a/skills/dev-skills/angular-developer/SKILL.md b/skills/dev-skills/angular-developer/SKILL.md index b0bf5689448c..3457b4680a72 100644 --- a/skills/dev-skills/angular-developer/SKILL.md +++ b/skills/dev-skills/angular-developer/SKILL.md @@ -1,6 +1,6 @@ --- name: angular-developer -description: Generates Angular code and provides architectural guidance. Trigger when creating projects, components, services, or HTTP communication, or for best practices on reactivity (signals, linkedSignal, resource, httpResource), forms, dependency injection, routing, SSR, accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, naming conventions, or CLI tooling. +description: Generates Angular code and provides architectural guidance. Trigger when creating projects, components, services, or HTTP communication, or for best practices on reactivity (signals, linkedSignal, resource, httpResource), queries and content projection, forms, dependency injection, routing, server and hybrid rendering (SSR, prerendering, hydration), accessibility (ARIA), animations, styling (component styles, Tailwind CSS), testing, naming conventions, or CLI tooling. license: MIT metadata: author: Copyright 2026 Google LLC @@ -50,6 +50,11 @@ When working with Angular components, consult the following references based on - **Outputs**: Signal-based outputs and custom event best practices. Read [outputs.md](references/outputs.md) - **Host Elements**: Host bindings and attribute injection. Read [host-elements.md](references/host-elements.md) - **Naming Conventions**: Modern Angular v20+ naming style ("Intent over Role") for files, components, services, directives, pipes, and models. Read [naming-conventions.md](references/naming-conventions.md) +- **Queries and Content Projection**: Signal-based view and content queries (viewChild, viewChildren, contentChild, contentChildren) and content projection with `` slots and fallback content. Read [queries-and-projection.md](references/queries-and-projection.md) +- **Deferrable Views**: Lazy loading, code splitting, triggers, prefetching, loading states, SSR, and layout stability with `@defer`. Read [deferrable-views.md](references/deferrable-views.md) +- **Error Boundaries**: Catching render and change detection errors in a template subtree with `@boundary`/`@error`, retrying with `$reset`. Read [error-boundary.md](references/error-boundary.md) + +**Template expressions**: Avoid expensive work in templates (e.g. building arrays or objects, filtering, sorting), since it re-runs on every change detection cycle. Reading signals (`count()`) and cheap calls are fine. Derive other values with `computed()`, a pure pipe, or a child component. See [Avoiding expensive work in templates](references/components.md#avoiding-expensive-work-in-templates). If you require deeper documentation not found in the references above, read the documentation at `https://angular.dev/guide/components`. @@ -112,7 +117,8 @@ When implementing navigation in Angular, consult the following references: - **Control Route Access with Guards**: Implementing `CanActivate`, `CanMatch`, and other guards for security. Read [route-guards.md](references/route-guards.md) - **Data Resolvers**: Pre-fetching data before route activation with `ResolveFn`. Read [data-resolvers.md](references/data-resolvers.md) - **Router Lifecycle and Events**: Chronological order of navigation events and debugging. Read [router-lifecycle.md](references/router-lifecycle.md) -- **Rendering Strategies**: CSR, SSG (Prerendering), and SSR with hydration. Read [rendering-strategies.md](references/rendering-strategies.md) +- **Rendering Strategies**: Choosing between CSR, SSG (prerendering), and SSR. Read [rendering-strategies.md](references/rendering-strategies.md) +- **Server and Hybrid Rendering**: Implementing server routes, prerendering, hydration, server-compatible code, and request data in an SSR-configured app. Read [server-side-rendering.md](references/server-side-rendering.md) - **Route Transition Animations**: Enabling and customizing the View Transitions API. Read [route-animations.md](references/route-animations.md) If you require deeper documentation or more context, visit the [official Angular Routing guide](https://angular.dev/guide/routing). diff --git a/skills/dev-skills/angular-developer/references/angular-aria.md b/skills/dev-skills/angular-developer/references/angular-aria.md index 8fded395f871..6c618a8b335a 100644 --- a/skills/dev-skills/angular-developer/references/angular-aria.md +++ b/skills/dev-skills/angular-developer/references/angular-aria.md @@ -331,9 +331,25 @@ Groups related controls (like text formatting). ```html
    -
    - - +
    + +
    ``` diff --git a/skills/dev-skills/angular-developer/references/cli.md b/skills/dev-skills/angular-developer/references/cli.md index d589fb135cf5..31d0a64a3f5f 100644 --- a/skills/dev-skills/angular-developer/references/cli.md +++ b/skills/dev-skills/angular-developer/references/cli.md @@ -15,7 +15,7 @@ ng add @angular/fire To update the application and its dependencies (which automatically runs code migrations): ```bash -ng update @angular/core@ @angular/cli +ng update @angular/core@ @angular/cli@ ``` ## 2. Generating Code (`ng generate` or `ng g`) diff --git a/skills/dev-skills/angular-developer/references/components.md b/skills/dev-skills/angular-developer/references/components.md index 4b2c031d3a05..d73c52901be6 100644 --- a/skills/dev-skills/angular-developer/references/components.md +++ b/skills/dev-skills/angular-developer/references/components.md @@ -108,6 +108,16 @@ The `@for` block iterates over collections. The `track` expression is **required **Implicit Variables**: `$index`, `$count`, `$first`, `$last`, `$even`, `$odd`. +### Avoiding expensive work in templates + +Template expressions are re-evaluated every time the component's template is checked, so avoid doing expensive work in them (e.g. building or filtering arrays, sorting, heavy formatting). Calling a cheap method is fine; the concern is expensive work repeated on every change detection cycle. A method that returns a new array or object also hands `@for` a new collection on every run. + +Reading a signal (`count()`, `items()`) is fine, and so is a trivial lookup. For anything expensive, derive the value once: + +- **`computed()`** for values derived from signals. +- **A pure pipe** for formatting a value (see [pipes.md](pipes.md)). +- **A child component** when each item needs its own derived state. + ### Switching Content (`@switch`) The `@switch` block renders content based on a value. It uses strict equality (`===`) and has **no fallthrough**. @@ -119,6 +129,21 @@ The `@switch` block renders content based on a value. It uses strict equality (` } } ``` +**Multiple Cases**: Stack consecutive `@case` statements with no content between them to share one +block across several matches. + +```angular-html +@switch (status()) { + @case ('paused') + @case ('cancelled') { + Not running + } + @default { + Running + } +} +``` + **Exhaustive Type Checking**: Use `@default never;` to ensure all cases of a union type are handled. ```html @@ -126,6 +151,24 @@ The `@switch` block renders content based on a value. It uses strict equality (` state like 'standby' is added } ``` +### Arrow Functions in Template Expressions + +Template expressions support arrow functions with an expression body, such as inline array +callbacks: + +```html + +``` + +For derived values such as a filtered list, use a `computed` signal in the component instead. + +Arrow functions must have an expression body, such as `(c) => c + 1`. In event bindings, call the +method directly, `(click)="save()"`, because an arrow function like `(click)="() => save()"` is +never invoked. + +Arrow functions with a block body (`() => { ... }`) are not supported. A pipe cannot be used +inside an arrow function's body, but an arrow function can be passed as an argument to a pipe. + ## Core Concepts - **Host Element**: The DOM element that matches the component's selector. diff --git a/skills/dev-skills/angular-developer/references/data-resolvers.md b/skills/dev-skills/angular-developer/references/data-resolvers.md index d76cc1b604b0..abff11f8fd2c 100644 --- a/skills/dev-skills/angular-developer/references/data-resolvers.md +++ b/skills/dev-skills/angular-developer/references/data-resolvers.md @@ -34,7 +34,7 @@ Add the resolver under the `resolve` key. ```ts private readonly route = inject(ActivatedRoute); -protected readonly data = toSignal(this.route.data); +protected readonly data = toSignal(this.route.data, {requireSync: true}); protected readonly user = computed(() => this.data().user); ``` diff --git a/skills/dev-skills/angular-developer/references/deferrable-views.md b/skills/dev-skills/angular-developer/references/deferrable-views.md new file mode 100644 index 000000000000..67ccb128fa9e --- /dev/null +++ b/skills/dev-skills/angular-developer/references/deferrable-views.md @@ -0,0 +1,72 @@ +# Deferrable Views + +Use a `@defer` block for template content that can be lazy loaded and is not required for the initial render. Angular splits eligible +dependencies into a separate chunk and loads them when the block triggers. + +## Code splitting + +A component, directive, or pipe is deferred only when: + +- It is standalone. +- It is not referenced outside the `@defer` block in the same file, including by a view query. + +Dependencies used by `@placeholder`, `@loading`, and `@error` are eager. Keep those blocks small. +Avoid barrel imports when they cause a deferred dependency to be referenced eagerly. + +## States and triggers + +```html +@defer (on viewport; prefetch on idle) { + +} @placeholder (minimum 200ms) { + +} @loading (after 100ms; minimum 200ms) { +

    Loading reviews...

    +} @error { +

    Reviews could not be loaded.

    +} +``` + +- `@placeholder` renders before the trigger. +- `@loading` renders while the deferred chunk loads. Use `after` and `minimum` to avoid flicker. +- `@error` renders when loading fails. +- `on idle` is the default. Other triggers are `viewport`, `interaction`, `hover`, `immediate`, + and `timer`. +- `when expression` triggers when the expression first becomes truthy. The block does not revert + if it later becomes false. +- `prefetch` downloads the chunk before the main trigger renders it. + +See [defer block triggers](https://angular.dev/guide/templates/defer#controlling-deferred-content-loading-with-triggers) +for trigger details and options. + +For `viewport`, `interaction`, or `hover`, use a single-root placeholder or pass a template +reference to the trigger. + +## SSR and hydration + +By default, SSR and prerendering render the `@placeholder` block, or nothing when it is absent, +without invoking triggers. In the browser, Angular hydrates the placeholder and activates the +regular trigger. + +When incremental hydration is enabled and the server should render the deferred content, add a +hydrate trigger: + +```html +@defer (on viewport; hydrate on interaction) { + +} @placeholder { + +} +``` + +The regular trigger controls later client-side rendering. The hydrate trigger controls when +server-rendered deferred content becomes interactive. + +## Layout stability + +- Do not defer above-the-fold or LCP content. +- Give placeholders the same dimensions or aspect ratio as the final content. +- Keep placeholder, loading, error, and final states geometrically consistent. +- Avoid initial-render triggers such as `immediate`, short `timer` values, or early `viewport` + triggers when replacement would cause layout shift. +- Give nested `@defer` blocks different triggers to avoid cascading requests. diff --git a/skills/dev-skills/angular-developer/references/error-boundary.md b/skills/dev-skills/angular-developer/references/error-boundary.md new file mode 100644 index 000000000000..06254ea41b3c --- /dev/null +++ b/skills/dev-skills/angular-developer/references/error-boundary.md @@ -0,0 +1,63 @@ +# Error Boundaries + +IMPORTANT: `@boundary` requires Angular v22.2 or newer. + +Use a `@boundary` block in the component template to catch errors thrown during the initial render or a later change +detection cycle of its child views, and render a fallback instead of letting the error propagate +and blank the page. + +```html +@boundary { + +} @error { + +} +``` + +## Resetting the boundary + +Call the implicit `$reset` function directly to attempt re-rendering the boundary's original +content: + +```html +@boundary { + +} @error { +

    Loading failed.

    + +} +``` + +## Capturing the error and retrying + +Reach for the implicit `$error`/`$reset()` shown above by default. Only bind named aliases with +`let`/`=` when a `when` condition needs to reference the error, to match specific error types: + +```angular-html +@boundary { + +} @error (let err; reset = $reset; when isNetworkError(err)) { + + +} @error { +

    Something went wrong.

    +} +``` + +- `let err` binds the caught error for use inside the `when` condition. +- `when ` lets multiple `@error` blocks match different error types or shapes, with a + final catch-all `@error` block (no `when`) at the end. +- `reset = $reset` aliases the built-in `$reset` function; calling it re-renders the original + `@boundary` content. + +## Content projection + +Projected content belongs to the template that declares it. To catch its errors, wrap the receiving +component and its projected content in a `@boundary` in the parent template. A `@boundary` around +`` inside the receiving component does not catch them. + +## When to use it + +`@boundary` is template-scoped and declarative, for isolating a specific risky subtree so it +cannot take down the rest of the view. It does not replace `ErrorHandler`, the app-wide imperative +error hook. diff --git a/skills/dev-skills/angular-developer/references/linked-signal.md b/skills/dev-skills/angular-developer/references/linked-signal.md index 98979b70162f..d8b0df78ad5a 100644 --- a/skills/dev-skills/angular-developer/references/linked-signal.md +++ b/skills/dev-skills/angular-developer/references/linked-signal.md @@ -52,6 +52,20 @@ export class ShippingMethodPicker { } ``` +## Customizing the `set` Operation + +By default, calling `.set()` on a `linkedSignal` updates its internal value directly. To write back to the source of truth instead, pass a `set` function in the options. It receives the new value plus a `rawSet` function that applies the default behavior directly (useful to skip the computation when it is expensive and you already know the result). + +```ts +const tempC = signal(0); +// tempF.set() writes back to tempC instead of only updating tempF +const tempF = linkedSignal(() => (tempC() * 9) / 5 + 32, { + set: (valF) => tempC.set(((valF - 32) * 5) / 9), +}); + +tempF.set(212); // tempC() is now 100, tempF() re-derives to 212 +``` + ### When to use `linkedSignal` vs `computed` vs `effect` - Use `computed`: When state is **strictly** derived from other state and should never be manually updated. diff --git a/skills/dev-skills/angular-developer/references/mcp.md b/skills/dev-skills/angular-developer/references/mcp.md index f0649f1d3bc9..189c9bed2135 100644 --- a/skills/dev-skills/angular-developer/references/mcp.md +++ b/skills/dev-skills/angular-developer/references/mcp.md @@ -9,9 +9,9 @@ When the MCP server is enabled, AI agents have access to the following tools: | Name | Description | | :-------------------------- | :-------------------------------------------------------------------------------------------------------- | | `ai_tutor` | Launches an interactive AI-powered Angular tutor. | -| `devserver.start` | Asynchronously starts a dev server (`ng serve`). Returns immediately. | -| `devserver.stop` | Stops the dev server. | -| `devserver.wait_for_build` | Returns the logs of the most recent build in a running dev server. | +| `devserver_start` | Asynchronously starts a dev server (`ng serve`). Returns immediately. | +| `devserver_stop` | Stops the dev server. | +| `devserver_wait_for_build` | Returns the logs of the most recent build in a running dev server. | | `get_best_practices` | Retrieves the Angular Best Practices Guide (crucial for standalone components, typed forms, etc.). | | `list_projects` | Lists all applications and libraries in the workspace by reading `angular.json`. | | `onpush_zoneless_migration` | Analyzes code and provides a plan to migrate it to `OnPush` change detection (prerequisite for zoneless). | diff --git a/skills/dev-skills/angular-developer/references/migrations.md b/skills/dev-skills/angular-developer/references/migrations.md index 9a482f2b816c..6d904626ffb8 100644 --- a/skills/dev-skills/angular-developer/references/migrations.md +++ b/skills/dev-skills/angular-developer/references/migrations.md @@ -25,6 +25,6 @@ Use the following commands to apply specific syntax updates. You can scope these The Standalone migration is an interactive, multi-step refactoring. You **MUST** perform this in three discrete stages, verifying that the application builds and runs correctly after each stage completes: -1. **Phase 1**: Run `ng generate @angular/core:standalone` and select the option to **Convert all components, directives, and pipes to standalone**. +1. **Phase 1**: Run `ng generate @angular/core:standalone` and select the option to **Convert all components, directives and pipes to standalone**. 2. **Phase 2**: Verify the build with `ng build`. Run the command again and select **Remove unnecessary NgModule classes**. -3. **Phase 3**: Verify the build with `ng build`. Run the final pass and select **Bootstrap the project using standalone APIs**. +3. **Phase 3**: Verify the build with `ng build`. Run the final pass and select **Bootstrap the application using standalone APIs**. diff --git a/skills/dev-skills/angular-developer/references/queries-and-projection.md b/skills/dev-skills/angular-developer/references/queries-and-projection.md new file mode 100644 index 000000000000..e2a3461f9184 --- /dev/null +++ b/skills/dev-skills/angular-developer/references/queries-and-projection.md @@ -0,0 +1,238 @@ +# Queries and content projection + +Queries give a component access to elements, directives and components in its template or in its projected content. Content projection lets a parent insert markup into slots of a child component. + +## View queries (`viewChild`, `viewChildren`) + +View queries search the component's **own template**. They return readonly signals. + +### Querying a single element or component (`viewChild`) + +Use `viewChild` to find the first match. You can query by a template reference variable (string), a component or directive class, or an `InjectionToken`. + +```ts +import {Component, ElementRef, viewChild} from '@angular/core'; + +@Component({ + selector: 'app-search-field', + template: ``, +}) +export class SearchField { + readonly inputEl = viewChild>('inputField'); + + focusInput() { + // The value is undefined until the view has been created + this.inputEl()?.nativeElement.focus(); + } +} +``` + +- **Querying by class**: The type is inferred from the class. + ```ts + readonly datePicker = viewChild(DatePicker); // Signal + ``` +- **Querying by string**: TypeScript cannot infer the type of the matched element. Pass a generic (`viewChild>('inputField')`) or let the `read` option set the type (see below). +- **Required queries**: `viewChild.required` returns a signal without `undefined` in its type. Reading it before a result exists throws `NG0951: Child query result is required but no value is available`. This happens when it is read in the constructor, or when the matched element sits inside an `@if` whose condition is false. Only use `.required` for elements that are always rendered. + ```ts + readonly inputEl = viewChild.required>('inputField'); + ``` + +### Reading a different token (`read`) + +Use the `read` option to get something other than the default result from the matched element, such as its `ElementRef`, a directive on it, or the `TemplateRef` of an ``. + +```ts +import {Component, ElementRef, TemplateRef, viewChild} from '@angular/core'; +import {DatePicker} from './date-picker'; + +@Component({ + selector: 'app-empty-state', + imports: [DatePicker], + template: ` + + +

    No results

    +
    + `, +}) +export class EmptyState { + readonly datePickerEl = viewChild(DatePicker, {read: ElementRef}); + // No generic needed: the type comes from `read` + readonly template = viewChild.required('emptyTemplate', {read: TemplateRef}); +} +``` + +### Querying multiple results (`viewChildren`) + +`viewChildren` returns a signal of a readonly array (`Signal`). + +```ts +import {Component, computed, input, viewChildren} from '@angular/core'; +import {Avatar} from './avatar'; +import {User} from './user.model'; + +@Component({ + selector: 'app-user-list', + imports: [Avatar], + template: ` + @for (user of users(); track user.id) { + + } + `, +}) +export class UserList { + readonly users = input.required(); + readonly avatars = viewChildren(Avatar); + readonly avatarCount = computed(() => this.avatars().length); +} +``` + +### When query results update + +Query results update when Angular creates or destroys views, for example when an `@if` condition changes or `@for` items are added or removed. Nodes added outside Angular templates (`Renderer2`, `innerHTML`, third-party libraries) are never matched. + +--- + +## Content queries (`contentChild`, `contentChildren`) + +Content queries search the content that a parent **projects** into the component. Use them when consumers provide the children, as in a tab group. A view query would not find projected children. + +```ts +import {Component, computed, contentChildren} from '@angular/core'; +import {Tab} from './tab'; + +@Component({ + selector: 'app-tab-group', + template: ` +
    + @for (title of tabTitles(); track $index) { + + } +
    + + `, +}) +export class TabGroup { + // Tab declares `readonly title = input.required()` + readonly tabs = contentChildren(Tab); + readonly tabTitles = computed(() => this.tabs().map((tab) => tab.title())); +} +``` + +Usage (the consumer imports both `TabGroup` and `Tab`): + +```html + + ... + ... + +``` + +- **String locators**: The template reference variable must be on the projected content, in the parent's template, not in the component's own template. For example, `contentChild('panelHeader')` in a panel component matches `

    Title

    `. +- **`descendants` option**: `contentChild` searches all projected content by default. `contentChildren` only matches direct children of the component's host element in the projected content. Pass `{descendants: true}` to also match items nested inside other elements. + ```ts + readonly items = contentChildren(MenuItem, {descendants: true}); + ``` +- Content queries support `.required` and the `read` option like view queries. The same `NG0951` caveat applies: projected content inside a parent's `@if` may be absent. + +--- + +## Content projection + +### Single-slot projection + +A self-closing `` projects all children into one location. + +```html + + +``` + +```html +Click Me! +``` + +### Multi-slot projection + +The `select` attribute of `` takes a CSS selector. Prefer attribute selectors (e.g. `[layout-header]`) for slots. An unknown custom element such as `` fails template compilation with a "not a known element" error, unless it is a real component or the parent declares `CUSTOM_ELEMENTS_SCHEMA`. + +```html + +
    + +
    +
    + +
    +
    + +
    +``` + +```html + +

    My Website Header

    +

    Main content goes here.

    +

    Copyright Info

    +
    +``` + +### Fallback content + +Since **Angular 18**, content placed inside `` renders when nothing matches the slot. + +```html + +
    + Default Title +
    +
    + +
    +``` + +### Conditional or repeated content + +Do not put `` inside `@if`, `@for`, `@switch` or ``. The parent always instantiates projected content, even when the slot is not rendered. To render content lazily or several times, have the consumer pass an ``, query it and render it with `NgTemplateOutlet`, which must be added to the component's `imports`. + +```ts +import {Component, contentChild, signal, TemplateRef} from '@angular/core'; +import {NgTemplateOutlet} from '@angular/common'; + +@Component({ + selector: 'app-expandable', + imports: [NgTemplateOutlet], + template: ` + + @if (expanded()) { + + } + `, +}) +export class Expandable { + readonly expanded = signal(false); + readonly content = contentChild.required(TemplateRef); +} +``` + +```html + + +

    Details, only created when expanded.

    +
    +
    +``` + +--- + +## Best Practices + +- **Prefer signal queries**: Use `viewChild`, `viewChildren`, `contentChild` and `contentChildren` instead of the `@ViewChild`, `@ViewChildren`, `@ContentChild` and `@ContentChildren` decorators. Migrate existing code with `ng generate @angular/core:signal-queries-migration` (see [migrations.md](migrations.md)). +- **No `static` option**: Signal queries do not accept `{static: true}`, which only exists on decorator queries. Passing it is a TypeScript compilation error. +- **Call queries as functions**: Queries are signals. Read them with `this.inputEl()`, not `this.inputEl`. +- **String locators match template reference variables only**: `viewChild('myInput')` matches ``, not an element named `myInput` or a `.myInput` class. To match a component or directive, pass its class. +- **Derive state instead of using lifecycle hooks**: Instead of reading queries in `ngAfterViewInit` or `ngAfterContentInit`, derive state from them with `computed()`. To work with the DOM of a queried element (measuring, calling a third-party library), use `afterRenderEffect` rather than `effect`, because `effect` runs before Angular updates the DOM (see [effects.md](effects.md)). +- **Host element**: To set attributes, classes or styles on the component's own host element, use the `host` property in `@Component` instead of injecting `ElementRef` (see [host-elements.md](host-elements.md)). +- **Limit `nativeElement` access**: Keep it for imperative DOM APIs that templates cannot express, such as `focus()`, measurements or third-party libraries. Set attributes, classes, styles and text through template bindings. diff --git a/skills/dev-skills/angular-developer/references/rendering-strategies.md b/skills/dev-skills/angular-developer/references/rendering-strategies.md index 3b42600224c1..9d8efe7649ad 100644 --- a/skills/dev-skills/angular-developer/references/rendering-strategies.md +++ b/skills/dev-skills/angular-developer/references/rendering-strategies.md @@ -24,7 +24,7 @@ Content is rendered on the server for the **initial request**. Subsequent naviga - **Use case**: E-commerce product pages, news sites, personalized dynamic content. - **Pros**: Excellent SEO, fast initial content visibility. -- **Cons**: Requires a server (Node.js), higher server cost/latency. +- **Cons**: Requires a compatible server or serverless runtime, with higher server cost and latency. ## Hydration diff --git a/skills/dev-skills/angular-developer/references/resource.md b/skills/dev-skills/angular-developer/references/resource.md index e8efe8c8a447..05d3788be8b4 100644 --- a/skills/dev-skills/angular-developer/references/resource.md +++ b/skills/dev-skills/angular-developer/references/resource.md @@ -32,6 +32,8 @@ export class UserProfile { protected readonly userName = computed(() => { if (this.userResource.hasValue()) { return this.userResource.value()?.name; + } else if (this.userResource.error()) { + return 'Failed to load'; } else { return 'Loading...'; } @@ -55,12 +57,23 @@ this.userResource.reload(); The `Resource` object provides several signals to read its current state: -- `value()`: The resolved data, or `undefined`. -- `hasValue()`: Type-guard boolean. `true` if a value exists. -- `isLoading()`: Boolean indicating if the loader is currently running. +- `value()`: The resolved data, or `undefined` if there is none yet. **Throws if the resource is in the `'error'` status**, so guard reads with `hasValue()` or check `error()` first. +- `hasValue()`: Type-guard boolean. `true` if a value exists. It is `false` (and does not throw) in the `'error'` status. +- `isLoading()`: Boolean indicating if the loader is currently running (`'loading'` or `'reloading'`). - `error()`: The error thrown by the loader, or `undefined`. - `status()`: A string constant representing the exact state (`'idle'`, `'loading'`, `'resolved'`, `'error'`, `'reloading'`, `'local'`). +| `status()` | `value()` | Meaning | +| ------------- | ---------------------------- | --------------------------------------------------------- | +| `'idle'` | `undefined` | `params` returned `undefined`, so the loader did not run. | +| `'loading'` | `undefined` | The loader is running because `params` changed. | +| `'reloading'` | the previous value | The loader is running because of `.reload()`. | +| `'resolved'` | the loaded value | The loader completed. | +| `'error'` | **throws** | The loader threw or rejected. | +| `'local'` | the value passed to `.set()` | The value was set locally. | + +Do not read `value()` directly in a template or computed signal without a guard, because a failed request would throw there. + ## Local Mutation You can optimistically update the resource's value directly. This changes the status to `'local'`. diff --git a/skills/dev-skills/angular-developer/references/route-guards.md b/skills/dev-skills/angular-developer/references/route-guards.md index 9169d5431fa3..3195102c7d41 100644 --- a/skills/dev-skills/angular-developer/references/route-guards.md +++ b/skills/dev-skills/angular-developer/references/route-guards.md @@ -29,7 +29,7 @@ export const authGuard: CanActivateFn = (route, state) => { ## Applying Guards -Add them to the route configuration as an array. They execute in order. +Add them to the route configuration as an array. Asynchronous guards (returning a `Promise` or `Observable`) in the same array start together and run concurrently; the router does not wait for one to finish before starting the next. Array order only sets priority: if any guard does not return `true`, the result of the first such guard in the array is used. Do not make a guard depend on work done by an earlier guard in the same array (for example, loading the current user); share that work through a service or combine the checks into one guard. ```ts { diff --git a/skills/dev-skills/angular-developer/references/router-testing.md b/skills/dev-skills/angular-developer/references/router-testing.md index 9f6665e760c6..ad5f822a487a 100644 --- a/skills/dev-skills/angular-developer/references/router-testing.md +++ b/skills/dev-skills/angular-developer/references/router-testing.md @@ -82,7 +82,7 @@ it('should get the activated component directly', async () => { ### Best Practices -- **Navigate with the Harness:** Always use `harness.navigateByUrl()` to simulate navigation. This method returns a promise that resolves with the instance of the activated component. +- **Navigate with the Harness:** Use `harness.navigateByUrl()` or `harness.navigate()` to simulate navigation. Both methods return a promise that resolves with the activated component instance, or `null` if no outlet is activated. - **Access the Router State:** Inject `Router` from `TestBed` to inspect the live router state. - **Get Activated Components:** Use the component returned by `navigateByUrl(url, ComponentType)`. After application-driven navigation, read `harness.routeDebugElement?.componentInstance`. - **Wait for Stability:** After performing an action that causes navigation, always `await harness.fixture.whenStable()` to ensure the routing is complete before making assertions. diff --git a/skills/dev-skills/angular-developer/references/server-side-rendering.md b/skills/dev-skills/angular-developer/references/server-side-rendering.md new file mode 100644 index 000000000000..4a9fe953731b --- /dev/null +++ b/skills/dev-skills/angular-developer/references/server-side-rendering.md @@ -0,0 +1,101 @@ +# Server and Hybrid Rendering + +Angular applications can combine server-side rendering (SSR), build-time prerendering, also known as static site generation (SSG), and client-side rendering (CSR) on a per-route basis. Use server routes to control how each route renders and keep application code compatible with server rendering and hydration. + +## Server routes + +Choose CSR (`RenderMode.Client`), SSG (`RenderMode.Prerender`), or SSR (`RenderMode.Server`) for each route with `ServerRoute`: + +```ts +import {inject} from '@angular/core'; +import {PrerenderFallback, RenderMode, ServerRoute} from '@angular/ssr'; + +export const serverRoutes: ServerRoute[] = [ + { + path: 'account', + renderMode: RenderMode.Client, + }, + { + path: 'products/:id', + renderMode: RenderMode.Prerender, + fallback: PrerenderFallback.Server, + async getPrerenderParams() { + const catalog = inject(ProductCatalog); + const ids = await catalog.getProductIds(); + + return ids.map((id) => ({id: String(id)})); + }, + }, + { + path: '**', + renderMode: RenderMode.Server, + }, +]; +``` + +Keep the existing `provideServerRendering(withRoutes(serverRoutes))` wiring in the server application configuration. + +Follow these rules: + +- Put specific paths before the `**` fallback. +- Keep client router paths and server route paths aligned. +- Use `RenderMode.Prerender` only when the required data is available at build time. +- Call `inject()` before the first `await` in `getPrerenderParams`. +- Return string values with keys that exactly match each route parameter. +- Choose `PrerenderFallback.Server`, `Client`, or `None` for paths not generated at build time. The default is `Server`. +- Set static `headers` on server routes. Set `status` on CSR or SSR routes; SSG routes do not accept a status. + +## Hydration + +Keep `provideClientHydration()` in configuration shared by the browser and server bootstraps. + +For Angular 22 and newer, `provideClientHydration()` enables incremental hydration and event replay by default. Do not add the deprecated `withIncrementalHydration()`. Use `withNoIncrementalHydration()` only for a deliberate opt-out. + +Add a hydrate trigger to an `@defer` block when its server-rendered content should remain dehydrated until needed: + +```html +@defer (on viewport; hydrate on interaction) { + +} @placeholder { +
    +} +``` + +The hydrate trigger controls the initial server-rendered page; the regular `on viewport` trigger controls later client-side renders. + +Keep the server and browser DOM identical: + +- Do not conditionally render different templates with `isPlatformBrowser`. +- Avoid direct DOM insertion, removal, or movement. +- Keep HTML valid. Leave `preserveWhitespaces` at its default `false`; if set, keep browser and server configurations consistent. +- Use `ngSkipHydration` on a component host only as a temporary last resort because Angular rerenders the entire component subtree. + +## Server-compatible code + +Do not access browser-only APIs, such as DOM, storage, or layout APIs, while rendering on the +server. + +Prefer: + +- `afterNextRender`, `afterEveryRender`, or `afterRenderEffect` for browser-only work. +- The `DOCUMENT` injection token instead of the global `document`. +- Separate browser and server providers behind one application-owned token. +- Angular rendering APIs instead of manual DOM manipulation. + +Do not store request-specific values in module-level variables or top-level `useValue` providers because those values can persist across requests. Create request-specific values with a factory. + +## Request data and transfer cache + +Use the request tokens from `@angular/core`: + +- `REQUEST` for the Web API `Request`. +- `RESPONSE_INIT` for dynamic response status and headers. +- `REQUEST_CONTEXT` for adapter-provided context. + +Treat these tokens as nullable. They are `null` during CSR, SSG, builds, and route extraction. + +In current Angular versions, keep the HTTP transfer-cache defaults. Exclude user-specific requests with `withHttpTransferCacheOptions({filter})` or `transferCache: false`. Do not opt authenticated, credentialed, private, non-cacheable, or `Set-Cookie` responses into the cache without reviewing the data-leak risk. Verify the defaults before relying on them in older Angular versions. + +Use `PendingTasks` or `pendingUntilEvent()` when custom asynchronous work must finish before Angular serializes the response. + +Keep an explicit production `allowedHosts` list. Do not use a wildcard or enable `trustProxyHeaders` unless a trusted proxy validates and replaces forwarded headers. diff --git a/skills/dev-skills/angular-developer/references/signal-forms.md b/skills/dev-skills/angular-developer/references/signal-forms.md index 1858b87bdccb..ac71f1b3330e 100644 --- a/skills/dev-skills/angular-developer/references/signal-forms.md +++ b/skills/dev-skills/angular-developer/references/signal-forms.md @@ -89,8 +89,6 @@ userForm = form(this.userModel, (schemaPath) => { return valueOf(schemaPath.age) > 10; }, }); - // when is only available for required - // Do NOT do this: pattern(p.name, /xxx/, {when /* ERROR */) // Email email(schemaPath.email, {message: 'Invalid email'}); @@ -103,8 +101,12 @@ userForm = form(this.userModel, (schemaPath) => { minLength(schemaPath.password, 8); maxLength(schemaPath.description, 500); - // Pattern (Regex) - pattern(schemaPath.zipCode, /^\d{5}$/); + // Pattern (Regex), applied only when the condition holds + pattern(schemaPath.zipCode, /^\d{5}$/, { + when({valueOf}) { + return valueOf(schemaPath.country) === 'US'; + }, + }); }); ``` @@ -222,6 +224,7 @@ const value = this.userForm().value(); const isValid = this.userForm().valid(); const isInvalid = this.userForm().invalid(); const errors = this.userForm().errors(); // Array of errors +const error = this.userForm().getError('...'); // Single error, by error `kind` const isPending = this.userForm().pending(); // Async validation pending // Interaction State (Signals) @@ -289,6 +292,8 @@ interface ValidationError { } ``` +`field().getError('...')` returns a single ValidationError by its `kind`. + Do _NOT_ return null from validators. When there are no errors, return undefined @@ -434,10 +439,7 @@ validateAsync(s.username, { // WRONG - missing onError (it's required!) validateAsync(s.username, { params: ({value}) => value(), - factory: (username) => - resource({ - /* ... */ - }), + factory: (username) => resource({/* ... */}), onSuccess: (result) => (result ? {kind: 'error'} : undefined), // ERROR: 'onError' is missing but required! }); @@ -479,39 +481,31 @@ userForm = form(this.userModel, (s) => { ### Conditional Validation ```ts -form( - data, - (path) => { - applyWhen( - name, - ({value}) => value() !== 'admin', - (namePath) => { - validate(namePath.last /* ... */); - disable(namePath.last /* ... */); - }, - ); - }, - {injector: TestBed.inject(Injector)}, -); +form(this.model, (path) => { + applyWhen( + path.name, + ({value}) => value().first !== 'admin', + (namePath) => { + required(namePath.last); + disabled(namePath.last, {when: ({valueOf}) => valueOf(path.locked)}); + }, + ); +}); ``` `applyWhen` passes the path mapped to the first argument. If you need parent field, just pass it to `applyWhen`: ```ts -form( - data, - (path) => { - applyWhen( - cat, - ({value}) => value().name !== 'admin', - (catPath) => { - require(cat.catPath /* ... */); - }, - ); - }, - {injector: TestBed.inject(Injector)}, -); +form(this.model, (path) => { + applyWhen( + path.cat, + ({value}) => value().name !== 'admin', + (catPath) => { + required(catPath.age); + }, + ); +}); ``` ## Common Pitfalls (DO NOT DO THESE) @@ -527,11 +521,10 @@ form( | **Calling Paths** | `applyWhen(p.foo, () => p.foo() === 'x')` | `applyWhen(p.foo, ({ valueOf }) => valueOf(p.foo) === 'x')` | | **applyWhen args** | `applyWhen(condition, () => {...})` | `applyWhen(path, condition, schemaFn)` - needs 3 args | | **Array length** | `form.items().length` | `form.items.length` (structural) | -| **Multi-select array** | `` | `` | Use `readonly()` rule in schema | | **min/max attributes** | `` | Use `min()` and `max()` rules in schema | | **value binding** | `` | Do NOT use `[value]` with `[formField]` (static `value` on radio/checkbox is OK) | -| **when option** | `pattern(p.x, /.../, {when: ...})` | `when` only works with `required()` | | **Submit callback** | `submit(form, () => { ... })` | `submit(form, async () => { ... })` | | **Async params** | `params: s.field` | `params: ({ value }) => value()` | | **Async onError** | Omitting `onError` | `onError` is REQUIRED in `validateAsync` | @@ -541,7 +534,7 @@ form( | **FormState import** | `import { FormState }` | `FormState` does not exist, use `FieldState` | | **Null in model** | `signal({ name: null })` | `signal({ name: '' })` or `signal({ age: 0 })` | | **Validate syntax** | `validate(s.field, { value } => ...)` | `validate(s.field, ({ value }) => ...)` | -| **Checkbox Array** | `[formField]="form.tags"` (string[]) | Checkboxes ONLY bind to `boolean` | +| **Checkbox Array** | `[formField]="form.tags"` (string[]) | Checkboxes ONLY bind to `boolean`: one boolean field per option | ## Big Form Example @@ -580,7 +573,7 @@ export class App { }, package: { tier: 'economy', - extras: [] as string[], + extras: {wifi: false, gym: false}, }, companions: [] as Array<{name: string; relation: string}>, }); @@ -726,11 +719,15 @@ export class App { @if (!bookingForm.package.extras().hidden()) {

    Extras

    - - + + +
    } @@ -788,7 +785,7 @@ this.model.update((m) => ({...m, address: {...m.address, street: 'Main St'}})); ### `Type 'string[]' is not assignable to type 'string'` -**Problem**: Binding `[formField]` to an array field with a single-value ``. The native `` is not supported by `[formField]`. ```html @@ -796,10 +793,12 @@ this.model.update((m) => ({...m, address: {...m.address, street: 'Main St'}})); ... - + + + ``` ### `NG8022: Setting the 'readonly/min/max/value' attribute is not allowed` @@ -824,28 +823,10 @@ min(s.age, 18); max(s.age, 99); // Then just: - - - - + protected readonly model = signal({ hasWifi: false, hasGym: false }); -``` - -### `'when' does not exist in type` for pattern/email/min/max - -**Problem**: Using `when` option with validators other than `required`. - -```ts -// WRONG - when only works with required -pattern(s.ssn, /^\d{3}-\d{2}-\d{4}$/, {when: isJoint}); - -// RIGHT - use applyWhen for conditional non-required validators -applyWhen(s.ssn, isJoint, (ssnPath) => { - pattern(ssnPath, /^\d{3}-\d{2}-\d{4}$/); -}); + ``` ### `Expected 3 arguments, but got 2` for applyWhen diff --git a/skills/dev-skills/angular-developer/references/testing-fundamentals.md b/skills/dev-skills/angular-developer/references/testing-fundamentals.md index 2bd2e0f1c6bc..5fa7bce97d28 100644 --- a/skills/dev-skills/angular-developer/references/testing-fundamentals.md +++ b/skills/dev-skills/angular-developer/references/testing-fundamentals.md @@ -7,6 +7,7 @@ This guide covers the fundamental principles and practices for writing unit test This project follows a modern, zoneless testing approach. State changes schedule updates asynchronously, and tests must account for this. **Do NOT** use `fixture.detectChanges()` to manually trigger updates. +**Do NOT** use `fixture.changeDetectorRef.markForCheck()` either: it marks only the host view and does not refresh the template of `OnPush` components (the default). Update state through signals, inputs, or DOM events instead. **ALWAYS** use the "Act, Wait, Assert" pattern: 1. **Act:** Update state or perform an action (e.g., set a component input, click a button). diff --git a/tools/bazel/patches/BUILD.bazel b/tools/bazel/patches/BUILD.bazel new file mode 100644 index 000000000000..316d68bcd313 --- /dev/null +++ b/tools/bazel/patches/BUILD.bazel @@ -0,0 +1 @@ +exports_files(["aspect_rules_jasmine.patch"]) diff --git a/tools/bazel/patches/aspect_rules_jasmine.patch b/tools/bazel/patches/aspect_rules_jasmine.patch new file mode 100644 index 000000000000..f96938fe55ef --- /dev/null +++ b/tools/bazel/patches/aspect_rules_jasmine.patch @@ -0,0 +1,35 @@ +--- a/jasmine/private/runner.cjs 2026-10-21 19:46:04.302749144 +0000 ++++ b/jasmine/private/runner.cjs 2026-10-21 19:46:04.302749144 +0000 +@@ -27,6 +27,24 @@ + const fd = fs.openSync(shardStatusFile, "w"); + fs.closeSync(fd); + ++ if (major >= 7) { ++ const Jasmine = require("jasmine"); ++ const originalLoadSpecs = Jasmine.prototype.loadSpecs; ++ Jasmine.prototype.loadSpecs = async function () { ++ await originalLoadSpecs.apply(this, arguments); ++ const customSpecFilter = this.env.configuration().specFilter; ++ this.env.configure({ ++ specFilter: (spec) => { ++ // See: https://github.com/jasmine/jasmine/blob/d0a9931ae6bfa63c73952a07b1cff05b2a8b38e8/src/core/SuiteBuilder.js#L201 ++ const index = Number(spec.id.replace("spec", "")); ++ if (index % shardCount !== shardIndex) { ++ return false; ++ } ++ return customSpecFilter ? customSpecFilter(spec) : true; ++ }, ++ }); ++ }; ++ } else { + // Safely override boot to intercept addReporter on the environment instance. + // This is to exclude the skipped specs due to sharding from the test results. + // Maintain the same behaviour between different versions of jasmine-core. +@@ -105,6 +123,7 @@ + } + }; + }; ++ } + } + + const jasmine_path = require.resolve("jasmine"); diff --git a/tools/defaults.bzl b/tools/defaults.bzl index f78ee5c07199..ebaec9ac4739 100644 --- a/tools/defaults.bzl +++ b/tools/defaults.bzl @@ -9,7 +9,6 @@ load("@rules_angular//src/ng_examples_db:index.bzl", _ng_examples_db = "ng_examp load("@rules_angular//src/ng_project:index.bzl", _ng_project = "ng_project") load("@rules_angular//src/ts_project:index.bzl", _ts_project = "ts_project") load("@rules_sass//src:index.bzl", _npm_sass_library = "npm_sass_library", _sass_binary = "sass_binary", _sass_library = "sass_library") -load("//adev/shared-docs/pipeline/api-gen:generate_api_docs.bzl", _generate_api_docs = "generate_api_docs") load("//tools/bazel:esbuild.bzl", _esbuild = "esbuild", _esbuild_checked_in = "esbuild_checked_in") load("//tools/bazel:jasmine_test.bzl", _angular_jasmine_test = "angular_jasmine_test", _jasmine_test = "jasmine_test", _zone_compatible_jasmine_test = "zone_compatible_jasmine_test", _zoneless_jasmine_test = "zoneless_jasmine_test") load("//tools/bazel:js_defs.bzl", _js_binary = "js_binary", _js_run_binary = "js_run_binary", _js_test = "js_test") @@ -142,24 +141,3 @@ def ng_project( tsconfig = tsconfig, deps = deps, ) - -def generate_api_docs(**kwargs): - _generate_api_docs( - # We need to specify import mappings for Angular packages that import other Angular - # packages. - import_map = { - # We only need to specify top-level entry-points, and only those that - # are imported from other packages. - "//packages/animations:index.ts": "@angular/animations", - "//packages/common:index.ts": "@angular/common", - "//packages/core:index.ts": "@angular/core", - "//packages/forms:index.ts": "@angular/forms", - "//packages/localize:index.ts": "@angular/localize", - "//packages/platform-browser-dynamic:index.ts": "@angular/platform-browser-dynamic", - "//packages/platform-browser:index.ts": "@angular/platform-browser", - "//packages/platform-server:index.ts": "@angular/platform-server", - "//packages/router:index.ts": "@angular/router", - "//packages/upgrade:index.ts": "@angular/upgrade", - }, - **kwargs - ) diff --git a/tools/gulp-tasks/changelog-zonejs.js b/tools/gulp-tasks/changelog-zonejs.js index 2c8853e0865c..2c7020a61813 100644 --- a/tools/gulp-tasks/changelog-zonejs.js +++ b/tools/gulp-tasks/changelog-zonejs.js @@ -19,15 +19,20 @@ module.exports = (gulp) => () => { conventionalChangelog( { preset: 'angular', + tagPrefix: 'zone.js-', }, {linkCompare: true, previousTag: ptag, currentTag: tag, version: version}, { - // Ignore commits that have a different scope than `zone.js`. - extendedRegexp: true, - grep: '^((feat|fix|perf)\\(zone\\.js\\)|revert:.*\\(zone\\.js\\))', from: ptag, to: 'HEAD', }, + undefined, + { + transform: (commit) => { + if (commit.scope !== 'zone.js') return undefined; + return commit; + }, + }, ), ) .pipe(gulp.dest('./packages/zone.js/')); diff --git a/tools/manual_api_docs/blocks/BUILD.bazel b/tools/manual_api_docs/blocks/BUILD.bazel index e18cd058c2a5..b2efd9dd2066 100644 --- a/tools/manual_api_docs/blocks/BUILD.bazel +++ b/tools/manual_api_docs/blocks/BUILD.bazel @@ -1,5 +1,4 @@ load("//tools/manual_api_docs:generate_block_api_json.bzl", "generate_block_api_json") -load("//adev/shared-docs/pipeline/api-gen/rendering:render_api_to_html.bzl", "render_api_to_html") package(default_visibility = ["//visibility:public"]) @@ -7,10 +6,3 @@ generate_block_api_json( name = "blocks", srcs = glob(["*.md"]), ) - -render_api_to_html( - name = "blocks_docs", - srcs = [ - ":blocks", - ], -) diff --git a/tools/manual_api_docs/blocks/boundary.md b/tools/manual_api_docs/blocks/boundary.md new file mode 100644 index 000000000000..a41315092c36 --- /dev/null +++ b/tools/manual_api_docs/blocks/boundary.md @@ -0,0 +1,34 @@ +IMPORTANT: The `@boundary` block is in [developer preview](reference/releases#developer-preview). It's ready for you to try, but it may change before it is stable. + +The `@boundary` block is a control flow mechanism that lets you intercept and handle rendering errors in templates. + +## Syntax + +```angular-html +@boundary { + +} @error { + +} +``` + +## Description + +The `@boundary` block encapsulates its content and catches any errors that occur during the initial render or subsequent change detection cycles of its child views. If an error is caught, the framework stops rendering the main view and instead renders the fallback UI provided in the `@error` block. + +IMPORTANT: Wrapping `` in a `@boundary` does not catch errors from projected content. See [Content projection with error boundaries](guide/templates/error-boundaries#content-projection). + +You can capture the error object by declaring a variable in the `@error` block, for example `@error (let err)`. + +You can use multiple `@error` blocks with `when` clauses to conditionally render different fallbacks based on the error type, with a final fallback `@error` block at the end. You can also access a `$reset` function to attempt re-rendering the boundary content. + +```angular-html +@boundary { + +} @error (let err; retry = $reset; when isNetworkError(err)) { + + +} @error { + +} +``` diff --git a/tools/manual_api_docs/elements/BUILD.bazel b/tools/manual_api_docs/elements/BUILD.bazel index 3d351927070d..627c3a776556 100644 --- a/tools/manual_api_docs/elements/BUILD.bazel +++ b/tools/manual_api_docs/elements/BUILD.bazel @@ -1,5 +1,4 @@ load("//tools/manual_api_docs:generate_element_api_json.bzl", "generate_element_api_json") -load("//adev/shared-docs/pipeline/api-gen/rendering:render_api_to_html.bzl", "render_api_to_html") package(default_visibility = ["//visibility:public"]) @@ -7,10 +6,3 @@ generate_element_api_json( name = "elements", srcs = glob(["*.md"]), ) - -render_api_to_html( - name = "elements_docs", - srcs = [ - ":elements", - ], -) diff --git a/tools/manual_api_docs/elements/ng-template.md b/tools/manual_api_docs/elements/ng-template.md index 00f70f9368c8..2ecca662a008 100644 --- a/tools/manual_api_docs/elements/ng-template.md +++ b/tools/manual_api_docs/elements/ng-template.md @@ -43,7 +43,7 @@ method `createEmbeddedView()`. ### Template Variables `` elements can be referenced in templates -using [standard template variables](guide/templates/variables#template-reference-variables#how-angular-assigns-values-to-template-variables). +using [standard template variables](guide/templates/variables#assigning-values-to-template-reference-variables). _This is how `` elements are used as `ngIf` else clauses._ diff --git a/tools/symbol-extractor/symbol_extractor_spec/tsconfig.json b/tools/symbol-extractor/symbol_extractor_spec/tsconfig.json index c12cbba737a9..f784437349db 100644 --- a/tools/symbol-extractor/symbol_extractor_spec/tsconfig.json +++ b/tools/symbol-extractor/symbol_extractor_spec/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "strict": true, "module": "ESNext", "target": "ES2022", "sourceMap": true, diff --git a/tools/testing/zone_base_setup.mts b/tools/testing/zone_base_setup.mts index 13c0ca194aaf..168687b377b3 100644 --- a/tools/testing/zone_base_setup.mts +++ b/tools/testing/zone_base_setup.mts @@ -14,4 +14,3 @@ import 'zone.js/plugins/proxy'; import 'zone.js/plugins/sync-test'; import 'zone.js/plugins/async-test'; import 'zone.js/plugins/fake-async-test'; -import 'zone.js/plugins/jasmine-patch'; diff --git a/tools/tsconfig.json b/tools/tsconfig.json index c317a66e241f..df1625aef348 100644 --- a/tools/tsconfig.json +++ b/tools/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "strict": true, "skipLibCheck": true, "declaration": true, "esModuleInterop": true, diff --git a/vscode-ng-language-service/CHANGELOG.md b/vscode-ng-language-service/CHANGELOG.md index b51eb31fff92..dcc349bc473d 100644 --- a/vscode-ng-language-service/CHANGELOG.md +++ b/vscode-ng-language-service/CHANGELOG.md @@ -1,3 +1,22 @@ +## 22.2.0 (2026-09-25) + +- fix(vscode-extension): Support inlay hint in inline templates ([c11920da48](https://github.com/angular/angular/commit/c11920da485169419c372b9d38d4bd6f874959c1)) +- fix(vscode-extension): provide folding ranges for templates with interpolated strings ([5c927fba0d](https://github.com/angular/angular/commit/5c927fba0d36c3953e27a60d2a7f161a956f1add)) +- fix(vscode-extension): handle template literals when detecting supported decorator fields ([f2cf65a898](https://github.com/angular/angular/commit/f2cf65a8988598e3ab76045055bcaaa840e29117)) +- feat(language-service): add support for @boundary blocks (#70463) ([f4a5650ed9](https://github.com/angular/angular/commit/f4a5650ed9c71a8ee1dbd3003e13900464827757)) + + + +## 22.1.1 (2026-09-10) + +- fix(vscode-extension): prevent JSDoc link provider injection ([731b959a81](https://github.com/angular/angular/commit/731b959a810a3cef8436ebea483397f9dcdaea78)) +- fix(vscode-extension): handle escaped delimiters in inline template and styles highlighting ([120aac9108](https://github.com/angular/angular/commit/120aac91089f8f2665013e8f3ecd9b31ce6d1828)) +- fix(language-service): honor quote style preference when generating imports ([93d7f718d2](https://github.com/angular/angular/commit/93d7f718d2e057e37deda42d197e46672fe7f7f5)) +- fix(language-server): recover project for external templates in solution-style workspaces ([14fbe04612](https://github.com/angular/angular/commit/14fbe04612d29460c5d01d6c65cde579f0a42e95)) +- fix(vscode-extension): prevent command URI injection in TSDK approval ([8adaa09f95](https://github.com/angular/angular/commit/8adaa09f959c2e758de5811e7b9f6abd99be8b7d)) + + + ## 22.1.0 (2026-08-12) - fix(language-service): account for strictTemplates being enabled by default ([a99fb915c0](https://github.com/angular/angular/commit/a99fb915c09b352ac67f24e71af84cda30bcbf3e)) diff --git a/vscode-ng-language-service/client/src/client.ts b/vscode-ng-language-service/client/src/client.ts index 2616f170c644..d42cbf282469 100644 --- a/vscode-ng-language-service/client/src/client.ts +++ b/vscode-ng-language-service/client/src/client.ts @@ -26,12 +26,8 @@ import { } from '../../common/requests'; import {NodeModule, resolve, Version} from '../../common/resolver'; -import { - isInsideStringLiteral, - isNotTypescriptOrSupportedDecoratorField, - isNotTypescriptOrSupportedDecoratorRange, -} from './embedded_support'; import {OpenJsDocLinkCommandId} from '../../common/initialize'; +import {isInsideStringLiteral, isNotTypescriptOrSupportedDecoratorField} from './embedded_support'; interface GetTcbResponse { uri: vscode.Uri; @@ -290,14 +286,17 @@ export class AngularLanguageClient implements vscode.Disposable { return null; } - // For TypeScript files, only request Angular inlay hints when the - // visible range intersects supported decorator fields (e.g. inline - // template/style metadata). This matches the guarding strategy used - // by other Angular LSP features and avoids work on unsupported TS regions. - if (!isNotTypescriptOrSupportedDecoratorRange(document, range)) { + if ( + document.languageId === 'typescript' && + !document.getText().includes('@angular/core') + ) { return null; } + // For TypeScript files, we always request Angular inlay hints. + // The server is responsible for filtering hints that do not intersect + // with the requested span and unsupported TS regions. + return next(document, range, token); }, }, diff --git a/vscode-ng-language-service/client/src/commands.ts b/vscode-ng-language-service/client/src/commands.ts index aa3f71c27cfd..d56cbfad5555 100644 --- a/vscode-ng-language-service/client/src/commands.ts +++ b/vscode-ng-language-service/client/src/commands.ts @@ -182,17 +182,20 @@ function goToTemplateForComponent(ngClient: AngularLanguageClient): Command { /** * Proxy command for opening links in jsdoc comments. * - * This is needed to avoid incorrectly rewriting uris. + * This is needed to avoid VS Code incorrectly rewriting file names. */ function openJsDocLinkCommand(): Command { return { id: OpenJsDocLinkCommandId, isTextEditorCommand: false, async execute(args) { - if (!args?.file) { + if (typeof args?.file !== 'string' || args.file.length === 0) { return; } - const uri = vscode.Uri.parse(args.file); + // Command URI arguments are untrusted. This value is a filesystem path, so use `Uri.file` + // to prevent URI schemes from selecting another VS Code resource provider. + // https://code.visualstudio.com/api/references/vscode-api#Uri.file + const uri = vscode.Uri.file(args.file); const document = await vscode.workspace.openTextDocument(uri); return await vscode.window.showTextDocument(document, { selection: new vscode.Range( diff --git a/vscode-ng-language-service/client/src/embedded_support.ts b/vscode-ng-language-service/client/src/embedded_support.ts index aacf868b4f7c..eae3b7fb3d71 100644 --- a/vscode-ng-language-service/client/src/embedded_support.ts +++ b/vscode-ng-language-service/client/src/embedded_support.ts @@ -11,11 +11,14 @@ import * as vscode from 'vscode'; const ANGULAR_PROPERTY_ASSIGNMENTS = new Set([ 'template', 'templateUrl', + 'styles', 'styleUrls', 'styleUrl', 'host', ]); +const ANGULAR_HOST_BINDING_DECORATORS = new Set(['HostBinding', 'HostListener']); + /** * Determines if the position is inside a decorator * property that supports language service features. @@ -27,10 +30,11 @@ export function isNotTypescriptOrSupportedDecoratorField( if (document.languageId !== 'typescript') { return true; } - return isPropertyAssignmentToStringOrStringInArray( + return isInsideAngularStringLiteral( document.getText(), document.offsetAt(position), ANGULAR_PROPERTY_ASSIGNMENTS, + ANGULAR_HOST_BINDING_DECORATORS, ); } @@ -65,27 +69,21 @@ export function isInsideStringLiteral( return true; } const offset = document.offsetAt(position); - const scanner = ts.createScanner(ts.ScriptTarget.ESNext, true /* skipTrivia */); - scanner.setText(document.getText()); + const {scanner, scan} = createTemplateAwareScanner(document.getText()); - let token: ts.SyntaxKind = scanner.scan(); + let token: ts.SyntaxKind = scan(); while (token !== ts.SyntaxKind.EndOfFileToken && scanner.getStartPos() < offset) { - const isStringToken = - token === ts.SyntaxKind.StringLiteral || - token === ts.SyntaxKind.NoSubstitutionTemplateLiteral; - const isCursorInToken = - scanner.getStartPos() <= offset && - scanner.getStartPos() + scanner.getTokenText().length >= offset; - if (isCursorInToken && isStringToken) { + if (isStringToken(token) && isCursorInToken(scanner, offset)) { return true; } - token = scanner.scan(); + token = scan(); } return false; } /** - * Basic scanner to determine if we're inside a string of a property with one of the given names. + * Basic scanner to determine if we're inside a string of a property with one of the given names, + * or inside a string argument of a decorator with one of the given names. * * This scanner is not currently robust or perfect but provides us with an accurate answer _most_ of * the time. @@ -95,24 +93,32 @@ export function isInsideStringLiteral( * `@Component` or `{styleUrls: [someFunction('stringL¦iteral')]}`, the @angular/language-service * will always give us the correct answer. This helper gives us a quick win for optimizing the * number of requests we send to the server. - * - * TODO(atscott): tagged templates don't work: #1872 / - * https://github.com/Microsoft/TypeScript/issues/20055 */ -function isPropertyAssignmentToStringOrStringInArray( +function isInsideAngularStringLiteral( documentText: string, offset: number, propertyAssignmentNames: Set, + decoratorNames: Set, ): boolean { - const scanner = ts.createScanner(ts.ScriptTarget.ESNext, true /* skipTrivia */); - scanner.setText(documentText); + const {scanner, scan} = createTemplateAwareScanner(documentText); - let token: ts.SyntaxKind = scanner.scan(); + let token: ts.SyntaxKind = scan(); let lastToken: ts.SyntaxKind | undefined; let lastTokenText: string | undefined; + let secondLastToken: ts.SyntaxKind | undefined; let unclosedBraces = 0; let unclosedBrackets = 0; + let unclosedParens = 0; let propertyAssignmentContext = false; + // Nesting depth at which the current property assignment context was entered. The context ends + // at the first terminator found at that same depth, i.e. the one that ends the assignment's + // initializer rather than one nested inside of it. + let contextBraces = 0; + let contextBrackets = 0; + let decoratorContext = false; + // Parenthesis depth at which the current decorator context was entered. The context ends at the + // closing parenthesis of the decorator call. + let contextParens = 0; while (token !== ts.SyntaxKind.EndOfFileToken && scanner.getStartPos() < offset) { if ( lastToken === ts.SyntaxKind.Identifier && @@ -121,36 +127,64 @@ function isPropertyAssignmentToStringOrStringInArray( propertyAssignmentNames.has(lastTokenText) ) { propertyAssignmentContext = true; - token = scanner.scan(); + contextBraces = unclosedBraces; + contextBrackets = unclosedBrackets; + token = scan(); continue; } - if (unclosedBraces === 0 && unclosedBrackets === 0 && isPropertyAssignmentTerminator(token)) { + if ( + propertyAssignmentContext && + unclosedBraces === contextBraces && + unclosedBrackets === contextBrackets && + isPropertyAssignmentTerminator(token) + ) { propertyAssignmentContext = false; } + if ( + secondLastToken === ts.SyntaxKind.AtToken && + lastToken === ts.SyntaxKind.Identifier && + lastTokenText !== undefined && + token === ts.SyntaxKind.OpenParenToken && + decoratorNames.has(lastTokenText) + ) { + decoratorContext = true; + contextParens = unclosedParens; + } + if ( + decoratorContext && + token === ts.SyntaxKind.CloseParenToken && + unclosedParens === contextParens + 1 + ) { + decoratorContext = false; + } + if (token === ts.SyntaxKind.OpenBracketToken) { unclosedBrackets++; } else if (token === ts.SyntaxKind.OpenBraceToken) { unclosedBraces++; + } else if (token === ts.SyntaxKind.OpenParenToken) { + unclosedParens++; } else if (token === ts.SyntaxKind.CloseBracketToken) { unclosedBrackets--; } else if (token === ts.SyntaxKind.CloseBraceToken) { unclosedBraces--; + } else if (token === ts.SyntaxKind.CloseParenToken) { + unclosedParens--; } - const isStringToken = - token === ts.SyntaxKind.StringLiteral || - token === ts.SyntaxKind.NoSubstitutionTemplateLiteral; - const isCursorInToken = - scanner.getStartPos() <= offset && - scanner.getStartPos() + scanner.getTokenText().length >= offset; - if (propertyAssignmentContext && isCursorInToken && isStringToken) { + if ( + (propertyAssignmentContext || decoratorContext) && + isStringToken(token) && + isCursorInToken(scanner, offset) + ) { return true; } lastTokenText = scanner.getTokenText(); + secondLastToken = lastToken; lastToken = token; - token = scanner.scan(); + token = scan(); } return false; @@ -164,3 +198,62 @@ function isPropertyAssignmentTerminator(token: ts.SyntaxKind) { token === ts.SyntaxKind.CloseBraceToken ); } + +function isStringToken(token: ts.SyntaxKind): boolean { + return ( + token === ts.SyntaxKind.StringLiteral || token === ts.SyntaxKind.NoSubstitutionTemplateLiteral + ); +} + +function isCursorInToken(scanner: ts.Scanner, offset: number): boolean { + return ( + scanner.getStartPos() <= offset && + scanner.getStartPos() + scanner.getTokenText().length >= offset + ); +} + +/** + * Creates a `ts.Scanner` for the given text along with a `scan` function that, unlike + * `ts.Scanner#scan`, handles template literals with substitutions correctly. + * + * The scanner has no notion of template substitutions on its own: it reports the `}` closing a + * `${...}` substitution as a plain `CloseBraceToken` and then treats the remainder of the template + * literal as the beginning of a new one, mis-scanning everything that follows it (see #65494). Just + * like the TypeScript parser, the returned `scan` function re-scans such braces as template + * continuations (`TemplateMiddle`/`TemplateTail`) instead. + */ +function createTemplateAwareScanner(text: string): { + scanner: ts.Scanner; + scan: () => ts.SyntaxKind; +} { + const scanner = ts.createScanner(ts.ScriptTarget.ESNext, true /* skipTrivia */); + scanner.setText(text); + + // Brace depth at which each currently open template substitution started, innermost last. + const substitutionDepths: number[] = []; + let braceDepth = 0; + + const scan = (): ts.SyntaxKind => { + let token = scanner.scan(); + if (token === ts.SyntaxKind.OpenBraceToken) { + braceDepth++; + } else if (token === ts.SyntaxKind.CloseBraceToken) { + if ( + substitutionDepths.length > 0 && + braceDepth === substitutionDepths[substitutionDepths.length - 1] + ) { + // This brace closes a template substitution rather than a block or object literal. + substitutionDepths.pop(); + token = scanner.reScanTemplateToken(false /* isTaggedTemplate */); + } else { + braceDepth--; + } + } + if (token === ts.SyntaxKind.TemplateHead || token === ts.SyntaxKind.TemplateMiddle) { + substitutionDepths.push(braceDepth); + } + return token; + }; + + return {scanner, scan}; +} diff --git a/vscode-ng-language-service/client/src/tests/embedded_support_spec.ts b/vscode-ng-language-service/client/src/tests/embedded_support_spec.ts index d24da813aef5..9586977daca7 100644 --- a/vscode-ng-language-service/client/src/tests/embedded_support_spec.ts +++ b/vscode-ng-language-service/client/src/tests/embedded_support_spec.ts @@ -9,6 +9,7 @@ import type * as vscode from 'vscode'; import {DocumentUri, TextDocument} from 'vscode-languageserver-textdocument'; import { + isInsideStringLiteral, isNotTypescriptOrSupportedDecoratorField, isNotTypescriptOrSupportedDecoratorRange, } from '../embedded_support'; @@ -90,6 +91,144 @@ describe('embedded language support', () => { false, ); }); + + it('inside styles declared before template', () => { + test( + `const foo = {styles: ['h1 { col¦or: red; }'], template: '
    '}`, + isNotTypescriptOrSupportedDecoratorField, + true, + ); + }); + + it('inside a string of another property after template', () => { + test( + `const foo = {template: '
    ', selector: 'app¦-root'}`, + isNotTypescriptOrSupportedDecoratorField, + false, + ); + }); + + it('inside a string in the class body after a template in the decorator', () => { + test( + `@Component({template: '
    '}) + export class AppComponent { + private property = 'd¦oe'; + }`, + isNotTypescriptOrSupportedDecoratorField, + false, + ); + }); + + it('inside a string of a nested host property', () => { + test( + `const foo = {host: {'[class.foo]': 'is¦Foo'}, selector: 'app-root'}`, + isNotTypescriptOrSupportedDecoratorField, + true, + ); + }); + + it('inside a @HostListener decorator string', () => { + test( + `@Component({template: '
    '}) + export class AppComponent { + @HostListener('cl¦ick', ['$event']) onClick(event: Event) {} + }`, + isNotTypescriptOrSupportedDecoratorField, + true, + ); + }); + + it('inside a @HostBinding decorator string of a directive without template', () => { + test( + `@Directive({selector: '[foo]'}) + export class FooDirective { + @HostBinding('class.f¦oo') isFoo = true; + }`, + isNotTypescriptOrSupportedDecoratorField, + true, + ); + }); + + it('inside a string after a @HostListener decorator', () => { + test( + `@Component({template: '
    '}) + export class AppComponent { + @HostListener('click', ['$event']) onClick(event: Event) { + console.log('cli¦cked'); + } + }`, + isNotTypescriptOrSupportedDecoratorField, + false, + ); + }); + + it('inside a string argument of a plain function call named like a decorator', () => { + test(`HostListener('cl¦ick');`, isNotTypescriptOrSupportedDecoratorField, false); + }); + + it('after a template literal with substitutions', () => { + test( + `@Component({template: \`\`}) + export class AppComponent { + private property = 'doe'; + private method(): void { + console.log(\`\${this.property}\`); + this.¦ + } + }`, + isNotTypescriptOrSupportedDecoratorField, + false, + ); + }); + + it('after a template literal with nested braces in a substitution', () => { + test( + `@Component({template: \`\`}) + export class AppComponent { + private method(): void { + console.log(\`\${{a: 1}.a} and \${[1, 2].map((x) => { return x; })}\`); + this.¦ + } + }`, + isNotTypescriptOrSupportedDecoratorField, + false, + ); + }); + + it('inside a template literal template with substitutions', () => { + test( + `const foo = {template: \`
    \${value}\`}`, + isNotTypescriptOrSupportedDecoratorField, + false, + ); + }); + + it('inside a template literal template after a template literal with substitutions', () => { + test( + `const prefix = \`\${getPrefix()}-\`; + const foo = {template: \`
    ¦
    \`}`, + isNotTypescriptOrSupportedDecoratorField, + true, + ); + }); + }); + + describe('isInsideStringLiteral', () => { + it('inside a string literal', () => { + test(`const foo = 'ba¦r';`, isInsideStringLiteral, true); + }); + + it('outside of a string literal', () => { + test(`const foo = 'bar'; const baz = 1¦;`, isInsideStringLiteral, false); + }); + + it('after a template literal with substitutions', () => { + test(`const foo = \`\${bar}\`; const baz = 1¦;`, isInsideStringLiteral, false); + }); + + it('inside a string literal after a template literal with substitutions', () => { + test(`const foo = \`\${bar}\`; const baz = 'qu¦x';`, isInsideStringLiteral, true); + }); }); describe('isNotTypescriptOrSupportedDecoratorRange', () => { diff --git a/vscode-ng-language-service/integration/e2e/helper.ts b/vscode-ng-language-service/integration/e2e/helper.ts index 883cd8f380d4..9242e4e073c1 100644 --- a/vscode-ng-language-service/integration/e2e/helper.ts +++ b/vscode-ng-language-service/integration/e2e/helper.ts @@ -1,13 +1,20 @@ import {setTimeout} from 'node:timers/promises'; import * as vscode from 'vscode'; -import {APP_COMPONENT, FOO_TEMPLATE} from '../test_constants'; +import { + APP_COMPONENT, + FOO_TEMPLATE, + INLAY_HINTS_COMPONENT, + INLAY_HINTS_EXTERNAL_TEMPLATE, +} from '../test_constants'; export const COMPLETION_COMMAND = 'vscode.executeCompletionItemProvider'; export const HOVER_COMMAND = 'vscode.executeHoverProvider'; export const DEFINITION_COMMAND = 'vscode.executeDefinitionProvider'; export const APP_COMPONENT_URI = vscode.Uri.file(APP_COMPONENT); export const FOO_TEMPLATE_URI = vscode.Uri.file(FOO_TEMPLATE); +export const INLAY_HINTS_COMPONENT_URI = vscode.Uri.file(INLAY_HINTS_COMPONENT); +export const INLAY_HINTS_EXTERNAL_TEMPLATE_URI = vscode.Uri.file(INLAY_HINTS_EXTERNAL_TEMPLATE); export async function activate(uri: vscode.Uri): Promise { await vscode.window.showTextDocument(uri); diff --git a/vscode-ng-language-service/integration/e2e/inlay_hints_spec.ts b/vscode-ng-language-service/integration/e2e/inlay_hints_spec.ts new file mode 100644 index 000000000000..87611b6d3e93 --- /dev/null +++ b/vscode-ng-language-service/integration/e2e/inlay_hints_spec.ts @@ -0,0 +1,93 @@ +import * as vscode from 'vscode'; +import {activate, INLAY_HINTS_COMPONENT_URI, INLAY_HINTS_EXTERNAL_TEMPLATE_URI} from './helper'; + +const INLAY_HINT_COMMAND = 'vscode.executeInlayHintProvider'; + +describe('Angular LS inlay hints', () => { + let previousForLoopVariableTypes: boolean | undefined; + let previousEditorInlayHintsEnabled: string | boolean | undefined; + + beforeAll(async () => { + const angularConfig = vscode.workspace.getConfiguration('angular'); + previousForLoopVariableTypes = angularConfig.get( + 'inlayHints.variableTypes.forLoopVariableTypes', + ); + await angularConfig.update( + 'inlayHints.variableTypes.forLoopVariableTypes', + true, + vscode.ConfigurationTarget.Workspace, + ); + + const editorConfig = vscode.workspace.getConfiguration('editor'); + previousEditorInlayHintsEnabled = editorConfig.get('inlayHints.enabled'); + await editorConfig.update('inlayHints.enabled', 'on', vscode.ConfigurationTarget.Workspace); + }); + + afterAll(async () => { + const angularConfig = vscode.workspace.getConfiguration('angular'); + await angularConfig.update( + 'inlayHints.variableTypes.forLoopVariableTypes', + previousForLoopVariableTypes, + vscode.ConfigurationTarget.Workspace, + ); + + const editorConfig = vscode.workspace.getConfiguration('editor'); + await editorConfig.update( + 'inlayHints.enabled', + previousEditorInlayHintsEnabled, + vscode.ConfigurationTarget.Workspace, + ); + }); + + it('should return an Angular-specific inlay hint for inline template', async () => { + await activate(INLAY_HINTS_COMPONENT_URI); + + const inlineDocument = await vscode.workspace.openTextDocument(INLAY_HINTS_COMPONENT_URI); + const inlineRange = new vscode.Range( + new vscode.Position(0, 0), + inlineDocument.lineAt(inlineDocument.lineCount - 1).range.end, + ); + const hints = await vscode.commands.executeCommand( + INLAY_HINT_COMMAND, + INLAY_HINTS_COMPONENT_URI, + inlineRange, + ); + + expect(hints).toBeDefined(); + expect(hints!.length).toBeGreaterThan(0); + + const hasNumberHint = hints!.some((hint) => { + const label = + typeof hint.label === 'string' ? hint.label : hint.label.map((l) => l.value).join(''); + return label.includes(': number'); + }); + expect(hasNumberHint).toBeTrue(); + }); + + it('should return an Angular-specific inlay hint for external template', async () => { + await activate(INLAY_HINTS_EXTERNAL_TEMPLATE_URI); + + const externalDocument = await vscode.workspace.openTextDocument( + INLAY_HINTS_EXTERNAL_TEMPLATE_URI, + ); + const externalRange = new vscode.Range( + new vscode.Position(0, 0), + externalDocument.lineAt(externalDocument.lineCount - 1).range.end, + ); + const hints = await vscode.commands.executeCommand( + INLAY_HINT_COMMAND, + INLAY_HINTS_EXTERNAL_TEMPLATE_URI, + externalRange, + ); + + expect(hints).toBeDefined(); + expect(hints!.length).toBeGreaterThan(0); + + const hasNumberHint = hints!.some((hint) => { + const label = + typeof hint.label === 'string' ? hint.label : hint.label.map((l) => l.value).join(''); + return label.includes(': number'); + }); + expect(hasNumberHint).toBeTrue(); + }); +}); diff --git a/vscode-ng-language-service/integration/lsp/BUILD.bazel b/vscode-ng-language-service/integration/lsp/BUILD.bazel index fa9be6322a59..5a8491ec24ba 100644 --- a/vscode-ng-language-service/integration/lsp/BUILD.bazel +++ b/vscode-ng-language-service/integration/lsp/BUILD.bazel @@ -27,5 +27,5 @@ jasmine_test( ":test_lib", ], flaky = True, - shard_count = 2, + shard_count = 10, ) diff --git a/vscode-ng-language-service/integration/lsp/ivy_spec.ts b/vscode-ng-language-service/integration/lsp/ivy_spec.ts index 70f0bc5ecffa..f8bf93b594d0 100644 --- a/vscode-ng-language-service/integration/lsp/ivy_spec.ts +++ b/vscode-ng-language-service/integration/lsp/ivy_spec.ts @@ -23,7 +23,6 @@ import { } from '../../common/requests'; import { APP_COMPONENT, - APP_COMPONENT_MODULE, APP_COMPONENT_MODULE_URI, APP_COMPONENT_URI, BAR_COMPONENT, @@ -251,6 +250,39 @@ export class AppComponent { expect(response).toContain({startLine: 7, endLine: 8}); }); + it('provides folding ranges for inline templates with interpolated strings', async () => { + openTextDocument( + client, + APP_COMPONENT, + ` +import {Component, EventEmitter, Input, Output} from '@angular/core'; + +const suffix = '!'; + +@Component({ + selector: 'my-app', + template: \` +
    + + Hello \${suffix} + +
    \`, +}) +export class AppComponent { + name = 'Angular'; +}`, + ); + const response = (await client.sendRequest(lsp.FoldingRangeRequest.type, { + textDocument: { + uri: APP_COMPONENT_URI, + }, + })) as lsp.FoldingRange[]; + expect(Array.isArray(response)).toBe(true); + expect(response.length).toEqual(2); + expect(response).toContain({startLine: 8, endLine: 11}); + expect(response).toContain({startLine: 9, endLine: 10}); + }); + it('provides folding ranges for control flow', async () => { openTextDocument( client, @@ -318,6 +350,78 @@ export class AppComponent { expect(response).toContain({startLine: 32, endLine: 33}); // empty }); + it('provides selection ranges that follow control flow blocks', async () => { + openTextDocument( + client, + APP_COMPONENT, + ` +import {Component} from '@angular/core'; + +@Component({ + selector: 'my-app', + template: \`
    @if (name) {{{name}}}
    \`, +}) +export class AppComponent { + name = 'Angular'; +}`, + ); + const response = (await client.sendRequest(lsp.SelectionRangeRequest.type, { + textDocument: { + uri: APP_COMPONENT_URI, + }, + // Inside `name` of the `{{name}}` interpolation. + positions: [{line: 5, character: 40}], + })) as lsp.SelectionRange[]; + expect(Array.isArray(response)).toBe(true); + expect(response.length).toEqual(1); + const chain: lsp.Range[] = []; + let current: lsp.SelectionRange | undefined = response[0]; + while (current !== undefined) { + chain.push(current.range); + current = current.parent; + } + expect(chain).toEqual([ + // name + {start: {line: 5, character: 38}, end: {line: 5, character: 42}}, + // {{name}} + {start: {line: 5, character: 36}, end: {line: 5, character: 44}}, + // {{name}} + {start: {line: 5, character: 30}, end: {line: 5, character: 51}}, + // @if (name) {{{name}}} + {start: {line: 5, character: 18}, end: {line: 5, character: 52}}, + //
    @if (name) {{{name}}}
    + {start: {line: 5, character: 13}, end: {line: 5, character: 58}}, + ]); + // The chain stops at the template boundary: the editor merges it with the + // ranges of its own TypeScript provider. + }); + + it('returns null for selection ranges outside of templates', async () => { + openTextDocument( + client, + APP_COMPONENT, + ` +import {Component} from '@angular/core'; + +@Component({ + selector: 'my-app', + template: \`
    {{name}}
    \`, +}) +export class AppComponent { + name = 'Angular'; +}`, + ); + const response = await client.sendRequest(lsp.SelectionRangeRequest.type, { + textDocument: { + uri: APP_COMPONENT_URI, + }, + // Inside `name = 'Angular'` in the class body. + positions: [{line: 8, character: 4}], + }); + // The editor falls back to its built-in TypeScript provider. + expect(response).toBeNull(); + }); + it('provides document symbols for TypeScript files (default: filtered to components)', async () => { openTextDocument( client, diff --git a/vscode-ng-language-service/integration/project/BUILD.bazel b/vscode-ng-language-service/integration/project/BUILD.bazel index eb0162f82b8c..e74303ee6d8a 100644 --- a/vscode-ng-language-service/integration/project/BUILD.bazel +++ b/vscode-ng-language-service/integration/project/BUILD.bazel @@ -1,35 +1,21 @@ -load("@bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin") load("@npm//:defs.bzl", "npm_link_all_packages") -load("@npm//vscode-ng-language-service/integration/project:ng-packagr/package_json.bzl", ng_packagr_bin = "bin") +load("@rules_angular//src/architect:ng_config.bzl", "ng_config") -npm_link_all_packages(name = "node_modules") +package(default_visibility = ["//vscode-ng-language-service/integration:__subpackages__"]) -copy_to_bin( - name = "project_srcs", - srcs = glob(["**"]), -) +npm_link_all_packages(name = "node_modules") -ng_packagr_bin.ng_packagr( - name = "dist", - srcs = [ - ":node_modules", - ":project_srcs", - ], - args = [ - "-p", - "libs/post/ng-package.json", - "-c", - "libs/post/tsconfig.json", - ], - chdir = package_name(), - out_dirs = ["dist"], +ng_config( + name = "ng_config", ) filegroup( name = "project", srcs = [ - ":dist", - ":project_srcs", + ":ng_config", + "//vscode-ng-language-service/integration/project/app:srcs", + "//vscode-ng-language-service/integration/project/libs/post", + "//vscode-ng-language-service/integration/project/libs/post:srcs", ], visibility = ["//vscode-ng-language-service/integration:__subpackages__"], ) diff --git a/vscode-ng-language-service/integration/project/angular.json b/vscode-ng-language-service/integration/project/angular.json new file mode 100644 index 000000000000..d955b8b27d79 --- /dev/null +++ b/vscode-ng-language-service/integration/project/angular.json @@ -0,0 +1,27 @@ +{ + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", + "version": 1, + "cli": { + "analytics": false, + "cache": { + "enabled": false + } + }, + "projects": { + "post": { + "projectType": "library", + "root": "libs/post", + "sourceRoot": "libs/post/src", + "prefix": "lib", + "architect": { + "build": { + "builder": "@angular/build:library", + "options": { + "tsConfig": "libs/post/tsconfig.lib.json", + "declarationMap": true + } + } + } + } + } +} diff --git a/vscode-ng-language-service/integration/project/app/BUILD.bazel b/vscode-ng-language-service/integration/project/app/BUILD.bazel new file mode 100644 index 000000000000..49bcba81c765 --- /dev/null +++ b/vscode-ng-language-service/integration/project/app/BUILD.bazel @@ -0,0 +1,11 @@ +load("@bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin") + +package(default_visibility = ["//vscode-ng-language-service/integration:__subpackages__"]) + +copy_to_bin( + name = "srcs", + srcs = glob( + ["**"], + exclude = ["BUILD.bazel"], + ), +) diff --git a/vscode-ng-language-service/integration/project/app/inlay_hints.component.ts b/vscode-ng-language-service/integration/project/app/inlay_hints.component.ts new file mode 100644 index 000000000000..5700c29a1391 --- /dev/null +++ b/vscode-ng-language-service/integration/project/app/inlay_hints.component.ts @@ -0,0 +1,9 @@ +import {Component} from '@angular/core'; + +@Component({ + selector: 'inlay-hints', + template: `@for (item of [1, 2, 3]; track item) { + {{ item }} + }`, +}) +export class InlayHintsComponent {} diff --git a/vscode-ng-language-service/integration/project/app/inlay_hints_external.component.html b/vscode-ng-language-service/integration/project/app/inlay_hints_external.component.html new file mode 100644 index 000000000000..bef0f22339d2 --- /dev/null +++ b/vscode-ng-language-service/integration/project/app/inlay_hints_external.component.html @@ -0,0 +1,3 @@ +@for (item of [1, 2, 3]; track item) { + {{ item }} +} diff --git a/vscode-ng-language-service/integration/project/app/inlay_hints_external.component.ts b/vscode-ng-language-service/integration/project/app/inlay_hints_external.component.ts new file mode 100644 index 000000000000..0d3fa3fb74c9 --- /dev/null +++ b/vscode-ng-language-service/integration/project/app/inlay_hints_external.component.ts @@ -0,0 +1,7 @@ +import {Component} from '@angular/core'; + +@Component({ + selector: 'inlay-hints-external', + templateUrl: './inlay_hints_external.component.html', +}) +export class InlayHintsExternalComponent {} diff --git a/vscode-ng-language-service/integration/project/libs/post/BUILD.bazel b/vscode-ng-language-service/integration/project/libs/post/BUILD.bazel new file mode 100644 index 000000000000..6d15f5bdf957 --- /dev/null +++ b/vscode-ng-language-service/integration/project/libs/post/BUILD.bazel @@ -0,0 +1,20 @@ +load("@bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin") +load("@rules_angular//src/architect:ng_library.bzl", "ng_library") + +package(default_visibility = ["//vscode-ng-language-service/integration:__subpackages__"]) + +ng_library( + name = "post", + ng_config = "//vscode-ng-language-service/integration/project:ng_config", + node_modules = "//vscode-ng-language-service/integration/project:node_modules", +) + +copy_to_bin( + name = "srcs", + srcs = glob( + ["**"], + exclude = [ + "BUILD.bazel", + ], + ), +) diff --git a/vscode-ng-language-service/integration/project/libs/post/ng-package.json b/vscode-ng-language-service/integration/project/libs/post/ng-package.json deleted file mode 100644 index 86c8cce00b19..000000000000 --- a/vscode-ng-language-service/integration/project/libs/post/ng-package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/post", - "lib": { - "entryFile": "src/index.ts" - } -} \ No newline at end of file diff --git a/vscode-ng-language-service/integration/project/libs/post/package.json b/vscode-ng-language-service/integration/project/libs/post/package.json index 793a2d9b1460..51e0f34b7e96 100644 --- a/vscode-ng-language-service/integration/project/libs/post/package.json +++ b/vscode-ng-language-service/integration/project/libs/post/package.json @@ -1,6 +1,11 @@ { "name": "post", "version": "0.0.1", + "exports": { + ".": { + "default": "./src/index.ts" + } + }, "peerDependencies": { "@angular/core": "^22.2.0-next" }, diff --git a/vscode-ng-language-service/integration/project/libs/post/tsconfig.json b/vscode-ng-language-service/integration/project/libs/post/tsconfig.json deleted file mode 100644 index 6399a9ed1636..000000000000 --- a/vscode-ng-language-service/integration/project/libs/post/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "files": [], - "include": [ - "**/*.ts" - ], - "compilerOptions": { - "outDir": "../../tsc-dist/post", - "rootDir": ".", - "declaration": true, - "declarationMap": true, - "inlineSources": true, - "sourceMap": true, - "types": [] - }, -} \ No newline at end of file diff --git a/vscode-ng-language-service/integration/project/libs/post/tsconfig.lib.json b/vscode-ng-language-service/integration/project/libs/post/tsconfig.lib.json new file mode 100644 index 000000000000..bd5bc16a15b7 --- /dev/null +++ b/vscode-ng-language-service/integration/project/libs/post/tsconfig.lib.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.json", + "files": [], + "include": ["**/*.ts"], + "compilerOptions": { + "declaration": true, + "inlineSources": true, + "sourceMap": true, + "types": [] + } +} diff --git a/vscode-ng-language-service/integration/project/package.json b/vscode-ng-language-service/integration/project/package.json index 1ddfeaf34424..8061cea3df77 100644 --- a/vscode-ng-language-service/integration/project/package.json +++ b/vscode-ng-language-service/integration/project/package.json @@ -3,16 +3,15 @@ "private": true, "dependencies": { "@angular/common": "workspace:*", - "@angular/compiler": "workspace:*", - "@angular/compiler-cli": "workspace:*", "@angular/core": "workspace:*", - "rxjs": "7.8.2" + "rxjs": "7.8.2", + "tslib": "2.9.1" }, "devDependencies": { - "ng-packagr": "22.2.0-next.4", + "@angular/cli": "22.3.0-rc.0", + "@angular/build": "22.3.0-rc.0", + "@angular/compiler": "workspace:*", + "@angular/compiler-cli": "workspace:*", "typescript": "6.0.3" - }, - "scripts": { - "build": "ng-packagr -p libs/post/ng-package.json -c libs/post/tsconfig.json" } } diff --git a/vscode-ng-language-service/integration/project/tsconfig.json b/vscode-ng-language-service/integration/project/tsconfig.json index 6c611a1ce8d3..7cddc8659247 100644 --- a/vscode-ng-language-service/integration/project/tsconfig.json +++ b/vscode-ng-language-service/integration/project/tsconfig.json @@ -3,7 +3,6 @@ "moduleResolution": "bundler", "experimentalDecorators": true, "target": "es2015", - "strict": true, "typeRoots": ["node_modules/@types"], "paths": { "post": ["./dist/post"] diff --git a/vscode-ng-language-service/integration/test_constants.ts b/vscode-ng-language-service/integration/test_constants.ts index 38174ff69e73..2e0c5786b02e 100644 --- a/vscode-ng-language-service/integration/test_constants.ts +++ b/vscode-ng-language-service/integration/test_constants.ts @@ -30,4 +30,12 @@ export const FOO_TEMPLATE = join(PROJECT_PATH, 'app', 'foo.component.html'); export const FOO_TEMPLATE_URI = pathToFileURL(FOO_TEMPLATE).href; export const FOO_COMPONENT = join(PROJECT_PATH, 'app', 'foo.component.ts'); export const FOO_COMPONENT_URI = pathToFileURL(FOO_COMPONENT).href; +export const INLAY_HINTS_COMPONENT = join(PROJECT_PATH, 'app', 'inlay_hints.component.ts'); +export const INLAY_HINTS_COMPONENT_URI = pathToFileURL(INLAY_HINTS_COMPONENT).href; +export const INLAY_HINTS_EXTERNAL_TEMPLATE = join( + PROJECT_PATH, + 'app', + 'inlay_hints_external.component.html', +); +export const INLAY_HINTS_EXTERNAL_TEMPLATE_URI = pathToFileURL(INLAY_HINTS_EXTERNAL_TEMPLATE).href; export const TSCONFIG = join(PROJECT_PATH, 'tsconfig.json'); diff --git a/vscode-ng-language-service/package.json b/vscode-ng-language-service/package.json index 935bac59d029..cfd4b76ee6fe 100644 --- a/vscode-ng-language-service/package.json +++ b/vscode-ng-language-service/package.json @@ -411,21 +411,21 @@ "typescript": "6.0.3" }, "devDependencies": { - "@types/jasmine": "~6.0.0", + "@types/jasmine": "~7.0.0", "@types/jasmine-reporters": "~2.5.3", "@types/node": "^24.5.2", "@types/vscode": "^1.74.3", "@vscode/test-electron": "~3.1.0", - "@vscode/vsce": "~3.9.0", - "jasmine": "6.3.0", - "jasmine-core": "6.3.0", + "@vscode/vsce": "~4.1.0", + "jasmine": "7.0.0", + "jasmine-core": "7.0.2", "jasmine-reporters": "~2.5.2", "source-map-support": "^0.5.21", "vscode-jsonrpc": "8.2.0", "vscode-languageclient": "9.0.1", "vscode-languageserver": "9.0.1", "vscode-languageserver-protocol": "3.17.5", - "vscode-languageserver-textdocument": "1.0.14", + "vscode-languageserver-textdocument": "1.0.16", "vscode-tmgrammar-test": "0.1.3", "vscode-uri": "3.2.0", "xvfb": "^0.4.0" diff --git a/vscode-ng-language-service/schemas/tsconfig-ng.schema.json b/vscode-ng-language-service/schemas/tsconfig-ng.schema.json index 53c604c6671d..58fb3335c3f3 100644 --- a/vscode-ng-language-service/schemas/tsconfig-ng.schema.json +++ b/vscode-ng-language-service/schemas/tsconfig-ng.schema.json @@ -12,11 +12,6 @@ "angularCompilerOptions": { "type": "object", "properties": { - "allowEmptyCodegenFiles": { - "type": "boolean", - "description": "Generate all possible generated files. This option is not used anymore.", - "deprecated": true - }, "annotateForClosureCompiler": { "type": "boolean", "description": "Insert JSDoc type annotations needed by Closure Compiler." @@ -158,7 +153,7 @@ }, "i18nUseExternalIds": { "type": "boolean", - "description": "Whether translation variable name should contain external message id." + "description": "Whether a translation variable name should contain an external message id." }, "onlyExplicitDeferDependencyImports": { "type": "boolean", @@ -205,6 +200,10 @@ "type": "boolean", "description": "Whether object or array literals defined in templates use their inferred type, or are interpreted as 'any'." }, + "strictNgTemplateTypes": { + "type": "boolean", + "description": "Whether to check input bindings on ng-template elements" + }, "strictNullInputTypes": { "type": "boolean", "description": "Whether to use strict null types for input bindings for directives." @@ -225,6 +224,16 @@ "type": "boolean", "description": "If 'true', implies all template strictness flags." }, + "strictUnclaimedEventNames": { + "type": "boolean", + "default": false, + "description": "Whether to report event bindings whose name matches neither an output of a directive applied to the element nor a known native DOM event, which usually indicates a misspelled output name. Not implied by 'strictTemplates'." + }, + "strictUnknownElements": { + "type": "boolean", + "default": false, + "description": "Whether to validate unknown element tags even when matched by attribute directives." + }, "typeCheckHostBindings": { "type": "boolean", "description": "Whether type checking of host bindings is enabled." diff --git a/vscode-ng-language-service/server/package.json b/vscode-ng-language-service/server/package.json index acc72d2fcdae..7daa8459d5a3 100644 --- a/vscode-ng-language-service/server/package.json +++ b/vscode-ng-language-service/server/package.json @@ -25,7 +25,7 @@ "vscode-html-languageservice": "5.6.2", "vscode-css-languageservice": "6.3.10", "vscode-languageserver": "9.0.1", - "vscode-languageserver-textdocument": "1.0.14", + "vscode-languageserver-textdocument": "1.0.16", "vscode-uri": "3.2.0" } } diff --git a/vscode-ng-language-service/server/src/embedded_support.ts b/vscode-ng-language-service/server/src/embedded_support.ts index 1e14bec83b8f..d5a1e8145de1 100644 --- a/vscode-ng-language-service/server/src/embedded_support.ts +++ b/vscode-ng-language-service/server/src/embedded_support.ts @@ -38,6 +38,21 @@ export function getHTMLVirtualContent(sf: ts.SourceFile): string { content.slice(0, region.getStart(sf) + 1) + documentText.slice(region.getStart(sf) + 1, region.getEnd() - 1) + content.slice(region.getEnd() - 1); + + // Template literals may contain `${...}` substitutions, which are not part of the template + // text. Blank them out (preserving line breaks) so the HTML language service only sees the + // static parts of the template. + if (ts.isTemplateExpression(region)) { + let substitutionStart = region.head.end - 2; // position of the `${` + for (const span of region.templateSpans) { + const substitutionEnd = span.literal.getStart(sf) + 1; // position after the `}` + content = + content.slice(0, substitutionStart) + + documentText.slice(substitutionStart, substitutionEnd).replace(/[^\n]/g, ' ') + + content.slice(substitutionEnd); + substitutionStart = span.literal.end - 2; + } + } } return content; } @@ -95,7 +110,12 @@ function isAssignmentToPropertyWithName(node: ts.Node, propertyName: 'styles' | } function isInlineTemplateNode(node: ts.Node) { - return ts.isStringLiteralLike(node) ? isAssignmentToPropertyWithName(node, 'template') : false; + // Unlike styles, templates are also matched when written as a template literal with + // `${...}` substitutions. The substitutions themselves are blanked out when the virtual + // document is constructed. + return ts.isStringLiteralLike(node) || ts.isTemplateExpression(node) + ? isAssignmentToPropertyWithName(node, 'template') + : false; } /** diff --git a/vscode-ng-language-service/server/src/handlers/initialization.ts b/vscode-ng-language-service/server/src/handlers/initialization.ts index 035b789137fa..797bff609f74 100644 --- a/vscode-ng-language-service/server/src/handlers/initialization.ts +++ b/vscode-ng-language-service/server/src/handlers/initialization.ts @@ -20,6 +20,7 @@ export function onInitialize(session: Session, params: lsp.InitializeParams): ls capabilities: { foldingRangeProvider: true, documentSymbolProvider: true, + selectionRangeProvider: true, codeLensProvider: {resolveProvider: true}, textDocumentSync: lsp.TextDocumentSyncKind.Incremental, completionProvider: { diff --git a/vscode-ng-language-service/server/src/handlers/selection_range.ts b/vscode-ng-language-service/server/src/handlers/selection_range.ts new file mode 100644 index 000000000000..fae193bd19b0 --- /dev/null +++ b/vscode-ng-language-service/server/src/handlers/selection_range.ts @@ -0,0 +1,56 @@ +/*! + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.dev/license + */ +import * as lsp from 'vscode-languageserver'; +import * as ts from 'typescript/lib/tsserverlibrary'; + +import {Session} from '../session'; +import {lspPositionToTsPosition, tsTextSpanToLspRange} from '../utils'; + +/** + * Handles textDocument/selectionRange requests (the editor's "Expand/Shrink + * Selection" feature). The Angular language service produces ranges that + * follow the template AST, so expressions and control flow blocks (`@if`, + * `@for`, `@switch`, ...) and their bodies become selection steps. + * + * When a position is not inside an Angular template, `null` is returned so + * that the editor falls back to its built-in HTML/TypeScript providers + * instead of receiving an empty selection. + */ +export function onSelectionRanges( + session: Session, + params: lsp.SelectionRangeParams, +): lsp.SelectionRange[] | null { + const lsInfo = session.getLSAndScriptInfo(params.textDocument); + if (lsInfo === null) { + return null; + } + const {scriptInfo, languageService} = lsInfo; + const results: lsp.SelectionRange[] = []; + for (const position of params.positions) { + const offset = lspPositionToTsPosition(scriptInfo, position); + const selectionRange = languageService.getTemplateSelectionRange(scriptInfo.fileName, offset); + if (selectionRange === undefined) { + return null; + } + results.push(tsSelectionRangeToLsp(selectionRange, scriptInfo)); + } + return results.length > 0 ? results : null; +} + +function tsSelectionRangeToLsp( + selectionRange: ts.SelectionRange, + scriptInfo: ts.server.ScriptInfo, +): lsp.SelectionRange { + return { + range: tsTextSpanToLspRange(scriptInfo, selectionRange.textSpan), + parent: + selectionRange.parent !== undefined + ? tsSelectionRangeToLsp(selectionRange.parent, scriptInfo) + : undefined, + }; +} diff --git a/vscode-ng-language-service/server/src/session.ts b/vscode-ng-language-service/server/src/session.ts index 394998c4e623..169ad20ee01b 100644 --- a/vscode-ng-language-service/server/src/session.ts +++ b/vscode-ng-language-service/server/src/session.ts @@ -46,6 +46,7 @@ import {getComponentsWithTemplateFile, onCodeLens, onCodeLensResolve} from './ha import {onCompletion, onCompletionResolve} from './handlers/completions'; import {onDefinition, onTypeDefinition, onReferences} from './handlers/definitions'; import {onFoldingRanges} from './handlers/folding'; +import {onSelectionRanges} from './handlers/selection_range'; import {onHover} from './handlers/hover'; import {onInitialize} from './handlers/initialization'; import {onLinkedEditingRange} from './handlers/linked_editing_range'; @@ -258,6 +259,7 @@ export class Session { conn.onPrepareRename((p) => onPrepareRename(this, p)); conn.onHover((p) => onHover(this, p)); conn.onFoldingRanges((p) => onFoldingRanges(this, p)); + conn.onSelectionRanges((p) => onSelectionRanges(this, p)); conn.languages.onLinkedEditingRange((p) => onLinkedEditingRange(this, p)); conn.onDocumentSymbol(async (p) => await onDocumentSymbol(this, p)); conn.onCompletion((p) => onCompletion(this, p)); diff --git a/vscode-ng-language-service/server/src/tests/embedded_support_spec.ts b/vscode-ng-language-service/server/src/tests/embedded_support_spec.ts index 5888251463d2..ae1901596ded 100644 --- a/vscode-ng-language-service/server/src/tests/embedded_support_spec.ts +++ b/vscode-ng-language-service/server/src/tests/embedded_support_spec.ts @@ -39,6 +39,27 @@ describe('server embedded support', () => { ); }); + it('handles template literals with substitutions', () => { + assertEmbeddedHTMLContent( + '@Component({template: `

    ${abc}

    `}) export class MyCmp', + '

    ', + ); + }); + + it('handles template literals with multiple substitutions', () => { + assertEmbeddedHTMLContent( + '@Component({template: `

    ${a}b${c}

    `})', + '

    b

    ', + ); + }); + + it('preserves line breaks inside template literal substitutions', () => { + assertEmbeddedHTMLContent( + '@Component({template: `

    ${a +\nb}

    `})', + '

    \n

    ', + ); + }); + it('works as expected for CRLF', () => { assertEmbeddedHTMLContent( `@Component({template: 'abc123'})\r\nexport class MyComponent {}`, diff --git a/vscode-ng-language-service/syntaxes/inline-styles.json b/vscode-ng-language-service/syntaxes/inline-styles.json index 01c1a89ed118..a82bc2a383e8 100644 --- a/vscode-ng-language-service/syntaxes/inline-styles.json +++ b/vscode-ng-language-service/syntaxes/inline-styles.json @@ -75,7 +75,7 @@ ] }, "style": { - "begin": "\\s*([`|'|\"])", + "begin": "\\s*([`'\"])", "beginCaptures": { "1": { "name": "string" @@ -89,6 +89,10 @@ }, "contentName": "source.css.scss", "patterns": [ + { + "match": "\\\\[\\s\\S]", + "name": "constant.character.escape.ts" + }, { "include": "source.css.scss" } diff --git a/vscode-ng-language-service/syntaxes/inline-template.json b/vscode-ng-language-service/syntaxes/inline-template.json index 74a82d736ad3..6757e55e600d 100644 --- a/vscode-ng-language-service/syntaxes/inline-template.json +++ b/vscode-ng-language-service/syntaxes/inline-template.json @@ -50,7 +50,7 @@ ] }, "ngTemplate": { - "begin": "\\G\\s*([`|'|\"])", + "begin": "\\G\\s*([`'\"])", "beginCaptures": { "1": { "name": "string" @@ -64,6 +64,10 @@ }, "contentName": "text.html.derivative", "patterns": [ + { + "match": "\\\\[\\s\\S]", + "name": "constant.character.escape.ts" + }, { "include": "text.html.derivative" }, diff --git a/vscode-ng-language-service/syntaxes/src/inline-styles.ts b/vscode-ng-language-service/syntaxes/src/inline-styles.ts index 9e0bbd09917b..8acee371120d 100644 --- a/vscode-ng-language-service/syntaxes/src/inline-styles.ts +++ b/vscode-ng-language-service/syntaxes/src/inline-styles.ts @@ -44,13 +44,18 @@ export const InlineStyles: GrammarDefinition = { }, style: { - begin: /\s*([`|'|"])/, + begin: /\s*([`'"])/, beginCaptures: {1: {name: 'string'}}, // @ts-ignore end: /\1/, endCaptures: {0: {name: 'string'}}, contentName: 'source.css.scss', - patterns: [{include: 'source.css.scss'}], + patterns: [ + // Consume escape sequences first so that an escaped delimiter (e.g. \`) + // does not terminate the style string prematurely. + {match: /\\[\s\S]/, name: 'constant.character.escape.ts'}, + {include: 'source.css.scss'}, + ], }, }, }; diff --git a/vscode-ng-language-service/syntaxes/src/inline-template.ts b/vscode-ng-language-service/syntaxes/src/inline-template.ts index 915d53413b1a..176dba43a8b0 100644 --- a/vscode-ng-language-service/syntaxes/src/inline-template.ts +++ b/vscode-ng-language-service/syntaxes/src/inline-template.ts @@ -32,13 +32,19 @@ export const InlineTemplate: GrammarDefinition = { }, ngTemplate: { - begin: /\G\s*([`|'|"])/, + begin: /\G\s*([`'"])/, beginCaptures: {1: {name: 'string'}}, // @ts-ignore end: /\1/, endCaptures: {0: {name: 'string'}}, contentName: 'text.html.derivative', - patterns: [{include: 'text.html.derivative'}, {include: 'template.ng'}], + patterns: [ + // Consume escape sequences first so that an escaped delimiter (e.g. \`) + // does not terminate the template string prematurely. + {match: /\\[\s\S]/, name: 'constant.character.escape.ts'}, + {include: 'text.html.derivative'}, + {include: 'template.ng'}, + ], }, }, }; diff --git a/vscode-ng-language-service/syntaxes/src/template-blocks.ts b/vscode-ng-language-service/syntaxes/src/template-blocks.ts index a8b5f74cc2f8..d090b3319d61 100644 --- a/vscode-ng-language-service/syntaxes/src/template-blocks.ts +++ b/vscode-ng-language-service/syntaxes/src/template-blocks.ts @@ -19,7 +19,8 @@ export const TemplateBlocks: GrammarDefinition = { }, block: { - begin: /(@)(if|else if|else|defer|placeholder|loading|error|switch|for|empty)(?:\s*)/, + begin: + /(@)(if|else if|else|defer|placeholder|loading|error|switch|for|empty|boundary)(?:\s*)/, beginCaptures: { 1: { patterns: [{include: '#transition'}], diff --git a/vscode-ng-language-service/syntaxes/src/template-tag.ts b/vscode-ng-language-service/syntaxes/src/template-tag.ts index 26d26ca863ad..dacc4ed35d9e 100644 --- a/vscode-ng-language-service/syntaxes/src/template-tag.ts +++ b/vscode-ng-language-service/syntaxes/src/template-tag.ts @@ -25,7 +25,7 @@ export const TemplateTag: GrammarDefinition = { name: 'template.tag.leading-space', }, propertyBinding: { - begin: /(\[\s*@?(?:[-_a-zA-Z0-9.$]+|\[[^\[\]]*]|\([^()]*\))*%?\s*])(=)(["'])/, + begin: /(\[\s*@?(?:[-_a-zA-Z0-9.$:!\/@]|\[[^\[\]]*]|\([^()]*\))*%?\s*])(=)(["'])/, beginCaptures: { 1: { name: 'entity.other.attribute-name.html entity.other.ng-binding-name.property.html', @@ -108,7 +108,7 @@ export const TemplateTag: GrammarDefinition = { patterns: [ { match: - /([\[\(]{1,2}|\*)(?:\s*)(@?(?:[-_a-zA-Z0-9.$]+|\[[^\[\]]*]|\([^()]*\))*%?)(?:\s*)([\]\)]{1,2})?/, + /([\[\(]{1,2}|\*)(?:\s*)(@?(?:[-_a-zA-Z0-9.$:!\/@]|\[[^\[\]]*]|\([^()]*\))*%?)(?:\s*)([\]\)]{1,2})?/, captures: { 1: {name: 'punctuation.definition.ng-binding-name.begin.html'}, 2: { diff --git a/vscode-ng-language-service/syntaxes/template-blocks.json b/vscode-ng-language-service/syntaxes/template-blocks.json index 55b5bb8888c5..05e094a13b13 100644 --- a/vscode-ng-language-service/syntaxes/template-blocks.json +++ b/vscode-ng-language-service/syntaxes/template-blocks.json @@ -12,7 +12,7 @@ "name": "keyword.control.block.transition.ng" }, "block": { - "begin": "(@)(if|else if|else|defer|placeholder|loading|error|switch|for|empty)(?:\\s*)", + "begin": "(@)(if|else if|else|defer|placeholder|loading|error|switch|for|empty|boundary)(?:\\s*)", "beginCaptures": { "1": { "patterns": [ diff --git a/vscode-ng-language-service/syntaxes/template-tag.json b/vscode-ng-language-service/syntaxes/template-tag.json index 856db48ae709..45a2385bf0d0 100644 --- a/vscode-ng-language-service/syntaxes/template-tag.json +++ b/vscode-ng-language-service/syntaxes/template-tag.json @@ -27,7 +27,7 @@ "name": "template.tag.leading-space" }, "propertyBinding": { - "begin": "(\\[\\s*@?(?:[-_a-zA-Z0-9.$]+|\\[[^\\[\\]]*]|\\([^()]*\\))*%?\\s*])(=)([\"'])", + "begin": "(\\[\\s*@?(?:[-_a-zA-Z0-9.$:!\\/@]|\\[[^\\[\\]]*]|\\([^()]*\\))*%?\\s*])(=)([\"'])", "beginCaptures": { "1": { "name": "entity.other.attribute-name.html entity.other.ng-binding-name.property.html", @@ -157,7 +157,7 @@ "bindingKey": { "patterns": [ { - "match": "([\\[\\(]{1,2}|\\*)(?:\\s*)(@?(?:[-_a-zA-Z0-9.$]+|\\[[^\\[\\]]*]|\\([^()]*\\))*%?)(?:\\s*)([\\]\\)]{1,2})?", + "match": "([\\[\\(]{1,2}|\\*)(?:\\s*)(@?(?:[-_a-zA-Z0-9.$:!\\/@]|\\[[^\\[\\]]*]|\\([^()]*\\))*%?)(?:\\s*)([\\]\\)]{1,2})?", "captures": { "1": { "name": "punctuation.definition.ng-binding-name.begin.html" diff --git a/vscode-ng-language-service/syntaxes/test/data/inline-styles.ts b/vscode-ng-language-service/syntaxes/test/data/inline-styles.ts index 54faa890bbda..9ef5b2907fbc 100644 --- a/vscode-ng-language-service/syntaxes/test/data/inline-styles.ts +++ b/vscode-ng-language-service/syntaxes/test/data/inline-styles.ts @@ -22,5 +22,9 @@ styles: `.example { width: 100px; }` , styles: ".example { width: 100px; }" , styles: '.example { width: 100px; }' , + +//// Escaped delimiter tests + styles: [ `.example::before { content: '\`'; }` ], + styles: [ '.example::before { content: "\'"; }' ], }) export class TMComponent{} diff --git a/vscode-ng-language-service/syntaxes/test/data/inline-styles.ts.snap b/vscode-ng-language-service/syntaxes/test/data/inline-styles.ts.snap index 3e1a8bf47b07..e6a574ab0431 100644 --- a/vscode-ng-language-service/syntaxes/test/data/inline-styles.ts.snap +++ b/vscode-ng-language-service/syntaxes/test/data/inline-styles.ts.snap @@ -150,6 +150,39 @@ # ^ inline-styles.ng string # ^ inline-styles.ng # ^^ inline-styles.ng +> +>//// Escaped delimiter tests +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline-styles.ng +> styles: [ `.example::before { content: '\`'; }` ], +#^^ inline-styles.ng +# ^^^^^^ inline-styles.ng meta.object-literal.key.ts +# ^ inline-styles.ng meta.object-literal.key.ts punctuation.separator.key-value.ts +# ^ inline-styles.ng +# ^ inline-styles.ng meta.array.literal.ts meta.brace.square.ts +# ^ inline-styles.ng +# ^ inline-styles.ng string +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline-styles.ng source.css.scss +# ^^ inline-styles.ng source.css.scss constant.character.escape.ts +# ^^^^ inline-styles.ng source.css.scss +# ^ inline-styles.ng string +# ^ inline-styles.ng +# ^ inline-styles.ng meta.array.literal.ts meta.brace.square.ts +# ^^ inline-styles.ng +> styles: [ '.example::before { content: "\'"; }' ], +#^^ inline-styles.ng +# ^^^^^^ inline-styles.ng meta.object-literal.key.ts +# ^ inline-styles.ng meta.object-literal.key.ts punctuation.separator.key-value.ts +# ^ inline-styles.ng +# ^ inline-styles.ng meta.array.literal.ts meta.brace.square.ts +# ^ inline-styles.ng +# ^ inline-styles.ng string +# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline-styles.ng source.css.scss +# ^^ inline-styles.ng source.css.scss constant.character.escape.ts +# ^^^^ inline-styles.ng source.css.scss +# ^ inline-styles.ng string +# ^ inline-styles.ng +# ^ inline-styles.ng meta.array.literal.ts meta.brace.square.ts +# ^^ inline-styles.ng >}) #^^^ inline-styles.ng >export class TMComponent{} diff --git a/vscode-ng-language-service/syntaxes/test/data/inline-template.ts b/vscode-ng-language-service/syntaxes/test/data/inline-template.ts index c900bf2458cb..75c92574f786 100644 --- a/vscode-ng-language-service/syntaxes/test/data/inline-template.ts +++ b/vscode-ng-language-service/syntaxes/test/data/inline-template.ts @@ -30,3 +30,17 @@ export class TMComponent{} template: '{{property}}', }) export class TMComponent{} + +/* Escaped delimiter tests */ +@Component({ + //// Escaped backtick test + template: ``, + + //// Escaped quote tests + template: '
    Hello
    ', + template: "
    Hello
    ", + + //// Escaped backslash before the closing delimiter + template: `
    backslash \\
    `, +}) +export class TMComponent{} diff --git a/vscode-ng-language-service/syntaxes/test/data/inline-template.ts.snap b/vscode-ng-language-service/syntaxes/test/data/inline-template.ts.snap index 131c015cc219..e766e9d6b8ce 100644 --- a/vscode-ng-language-service/syntaxes/test/data/inline-template.ts.snap +++ b/vscode-ng-language-service/syntaxes/test/data/inline-template.ts.snap @@ -117,4 +117,69 @@ #^^^ inline-template.ng >export class TMComponent{} #^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline-template.ng +> +>/* Escaped delimiter tests */ +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline-template.ng +>@Component({ +#^^^^^^^^^^^^^ inline-template.ng +> //// Escaped backtick test +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline-template.ng +> template: ``, +#^^ inline-template.ng +# ^^^^^^^^ inline-template.ng meta.object-literal.key.ts +# ^ inline-template.ng meta.object-literal.key.ts punctuation.separator.key-value.ts +# ^ inline-template.ng +# ^ inline-template.ng string +# ^^^^^^^^^^^^^^^ inline-template.ng text.html.derivative +# ^^ inline-template.ng text.html.derivative constant.character.escape.ts +# ^^^^ inline-template.ng text.html.derivative +# ^^ inline-template.ng text.html.derivative constant.character.escape.ts +# ^^^^^^^^^^^^^^^^ inline-template.ng text.html.derivative +# ^ inline-template.ng string +# ^^ inline-template.ng +> +> //// Escaped quote tests +#^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline-template.ng +> template: '
    Hello
    ', +#^^ inline-template.ng +# ^^^^^^^^ inline-template.ng meta.object-literal.key.ts +# ^ inline-template.ng meta.object-literal.key.ts punctuation.separator.key-value.ts +# ^ inline-template.ng +# ^ inline-template.ng string +# ^^^^^^^^^^^^^^ inline-template.ng text.html.derivative +# ^^ inline-template.ng text.html.derivative constant.character.escape.ts +# ^^^^^^^^^^^^^^ inline-template.ng text.html.derivative +# ^ inline-template.ng string +# ^^ inline-template.ng +> template: "
    Hello
    ", +#^^ inline-template.ng +# ^^^^^^^^ inline-template.ng meta.object-literal.key.ts +# ^ inline-template.ng meta.object-literal.key.ts punctuation.separator.key-value.ts +# ^ inline-template.ng +# ^ inline-template.ng string +# ^^^^^^^^^^^ inline-template.ng text.html.derivative +# ^^ inline-template.ng text.html.derivative constant.character.escape.ts +# ^^^^^^ inline-template.ng text.html.derivative +# ^^ inline-template.ng text.html.derivative constant.character.escape.ts +# ^^^^^^^^^^^^ inline-template.ng text.html.derivative +# ^ inline-template.ng string +# ^^ inline-template.ng +> +> //// Escaped backslash before the closing delimiter +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline-template.ng +> template: `
    backslash \\
    `, +#^^ inline-template.ng +# ^^^^^^^^ inline-template.ng meta.object-literal.key.ts +# ^ inline-template.ng meta.object-literal.key.ts punctuation.separator.key-value.ts +# ^ inline-template.ng +# ^ inline-template.ng string +# ^^^^^^^^^^^^^^^ inline-template.ng text.html.derivative +# ^^ inline-template.ng text.html.derivative constant.character.escape.ts +# ^^^^^^ inline-template.ng text.html.derivative +# ^ inline-template.ng string +# ^^ inline-template.ng +>}) +#^^^ inline-template.ng +>export class TMComponent{} +#^^^^^^^^^^^^^^^^^^^^^^^^^^^ inline-template.ng > \ No newline at end of file diff --git a/vscode-ng-language-service/syntaxes/test/data/template-blocks.html b/vscode-ng-language-service/syntaxes/test/data/template-blocks.html index 628a4b0eb26a..182d76673b28 100644 --- a/vscode-ng-language-service/syntaxes/test/data/template-blocks.html +++ b/vscode-ng-language-service/syntaxes/test/data/template-blocks.html @@ -6,6 +6,10 @@ } +@boundary { + +} + @switch (a) { @case(0) @case (1) { {{getCase1()}} diff --git a/vscode-ng-language-service/syntaxes/test/data/template-blocks.html.snap b/vscode-ng-language-service/syntaxes/test/data/template-blocks.html.snap index 0de100e6d501..2c5a5ccd4721 100644 --- a/vscode-ng-language-service/syntaxes/test/data/template-blocks.html.snap +++ b/vscode-ng-language-service/syntaxes/test/data/template-blocks.html.snap @@ -27,6 +27,16 @@ >} #^ template.blocks.ng control.block.ng punctuation.definition.block.ts > +>@boundary { +#^ template.blocks.ng control.block.ng keyword.control.block.transition.ng +# ^^^^^^^^ template.blocks.ng control.block.ng keyword.control.block.kind.ng +# ^ template.blocks.ng control.block.ng +# ^ template.blocks.ng control.block.ng punctuation.definition.block.ts +> +#^^^^^^^^^^^^ template.blocks.ng control.block.ng control.block.body.ng +>} +#^ template.blocks.ng control.block.ng punctuation.definition.block.ts +> >@switch (a) { #^ template.blocks.ng control.block.ng keyword.control.block.transition.ng # ^^^^^^ template.blocks.ng control.block.ng keyword.control.block.kind.ng diff --git a/vscode-ng-language-service/syntaxes/test/data/template-tag.html b/vscode-ng-language-service/syntaxes/test/data/template-tag.html index 655e926c6a4d..86f1524d14f4 100644 --- a/vscode-ng-language-service/syntaxes/test/data/template-tag.html +++ b/vscode-ng-language-service/syntaxes/test/data/template-tag.html @@ -14,6 +14,13 @@
    +
    +
    +
    +
    +
    +
    + diff --git a/vscode-ng-language-service/syntaxes/test/data/template-tag.html.snap b/vscode-ng-language-service/syntaxes/test/data/template-tag.html.snap index b763a16e8a71..382ada649a46 100644 --- a/vscode-ng-language-service/syntaxes/test/data/template-tag.html.snap +++ b/vscode-ng-language-service/syntaxes/test/data/template-tag.html.snap @@ -139,6 +139,92 @@ # ^^^ template.tag.ng meta.ng-binding.property.html expression.ng variable.other.readwrite.ts # ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.end.html # ^^^^^^^^ template.tag.ng +>
    +#^^^^^ template.tag.ng +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.begin.html +# ^^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.hover:flex.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.hover:flex.html punctuation.accessor.html +# ^^^^^^^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.hover:flex.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.end.html +# ^ template.tag.ng meta.ng-binding.property.html punctuation.separator.key-value.html +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.begin.html +# ^^^ template.tag.ng meta.ng-binding.property.html expression.ng variable.other.readwrite.ts +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.end.html +# ^^^^^^^^ template.tag.ng +>
    +#^^^^^ template.tag.ng +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.begin.html +# ^^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.!p-4.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.!p-4.html punctuation.accessor.html +# ^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.!p-4.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.end.html +# ^ template.tag.ng meta.ng-binding.property.html punctuation.separator.key-value.html +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.begin.html +# ^^^ template.tag.ng meta.ng-binding.property.html expression.ng variable.other.readwrite.ts +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.end.html +# ^^^^^^^^ template.tag.ng +>
    +#^^^^^ template.tag.ng +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.begin.html +# ^^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.bg-primary/30.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.bg-primary/30.html punctuation.accessor.html +# ^^^^^^^^^^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.bg-primary/30.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.end.html +# ^ template.tag.ng meta.ng-binding.property.html punctuation.separator.key-value.html +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.begin.html +# ^^^ template.tag.ng meta.ng-binding.property.html expression.ng variable.other.readwrite.ts +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.end.html +# ^^^^^^^^ template.tag.ng +>
    +#^^^^^ template.tag.ng +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.begin.html +# ^^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.@md:flex.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.@md:flex.html punctuation.accessor.html +# ^^^^^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.@md:flex.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.end.html +# ^ template.tag.ng meta.ng-binding.property.html punctuation.separator.key-value.html +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.begin.html +# ^^^ template.tag.ng meta.ng-binding.property.html expression.ng variable.other.readwrite.ts +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.end.html +# ^^^^^^^^ template.tag.ng +>
    +#^^^^^ template.tag.ng +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.begin.html +# ^^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.px-3.5.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.px-3.5.html punctuation.accessor.html +# ^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.px-3.5.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.px-3.5.html punctuation.accessor.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.px-3.5.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.end.html +# ^ template.tag.ng meta.ng-binding.property.html punctuation.separator.key-value.html +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.begin.html +# ^^^ template.tag.ng meta.ng-binding.property.html expression.ng variable.other.readwrite.ts +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.end.html +# ^^^^^^^^ template.tag.ng +>
    +#^^^^^ template.tag.ng +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.begin.html +# ^^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.sm:hover:!bg-red-500/75.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.sm:hover:!bg-red-500/75.html punctuation.accessor.html +# ^^^^^^^^^^^^^^^^^^^^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.class.sm:hover:!bg-red-500/75.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.end.html +# ^ template.tag.ng meta.ng-binding.property.html punctuation.separator.key-value.html +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.begin.html +# ^^^ template.tag.ng meta.ng-binding.property.html expression.ng variable.other.readwrite.ts +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.end.html +# ^^^^^^^^ template.tag.ng +> +#^^^^^ template.tag.ng +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.begin.html +# ^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.attr.xlink:href.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.attr.xlink:href.html punctuation.accessor.html +# ^^^^^^^^^^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html entity.other.ng-binding-name.attr.xlink:href.html +# ^ template.tag.ng meta.ng-binding.property.html entity.other.attribute-name.html entity.other.ng-binding-name.property.html punctuation.definition.ng-binding-name.end.html +# ^ template.tag.ng meta.ng-binding.property.html punctuation.separator.key-value.html +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.begin.html +# ^^^ template.tag.ng meta.ng-binding.property.html expression.ng variable.other.readwrite.ts +# ^ template.tag.ng meta.ng-binding.property.html string.quoted.html punctuation.definition.string.end.html +# ^^^^ template.tag.ng > > #^^^^^^^^^^^^^^^^^^^^^^^^^^^^ template.tag.ng diff --git a/vscode-ng-language-service/tools/release.mts b/vscode-ng-language-service/tools/release.mts index 30ffe5de7667..08996747d8ce 100644 --- a/vscode-ng-language-service/tools/release.mts +++ b/vscode-ng-language-service/tools/release.mts @@ -386,7 +386,9 @@ async function buildExtension(): Promise { console.log(chalk.blue('Building VSCode extension...')); await execAndStream('pnpm', ['bazel', 'clean']); await execAndStream('pnpm', [ - 'pnpm --filter=ng-template run package', + '--filter=ng-template', + 'run', + 'package', ...additionBazelReleaseArgs, ]); diff --git a/vscode-ng-language-service/tools/tsconfig.json b/vscode-ng-language-service/tools/tsconfig.json index 9b2421b70537..744838ed95a6 100644 --- a/vscode-ng-language-service/tools/tsconfig.json +++ b/vscode-ng-language-service/tools/tsconfig.json @@ -4,7 +4,6 @@ "module": "node16", "moduleResolution": "node16", "types": ["node"], - "strict": true, "esModuleInterop": true, "skipLibCheck": true } diff --git a/vscode-ng-language-service/tsconfig.json b/vscode-ng-language-service/tsconfig.json index 97f8c5038c46..5562c88f0656 100644 --- a/vscode-ng-language-service/tsconfig.json +++ b/vscode-ng-language-service/tsconfig.json @@ -6,7 +6,6 @@ "moduleResolution": "node", "types": ["node"], "sourceMap": true, - "strict": true, "esModuleInterop": true, "declaration": true, "skipLibCheck": true