_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
angular/packages/core/test/bundling/animations-standalone/BUILD.bazel_0_1393
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module", "ts_library") load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test") load("@npm//http-server:index.bzl", "http_server") package(default_visibility = ["//visibility:public"]) ng_module( name = "animations_standalone", s...
{ "end_byte": 1393, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/bundling/animations-standalone/BUILD.bazel" }
angular/packages/core/test/bundling/animations-standalone/index.ts_0_1123
/** * @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 {animate, style, transition, trigger} from '@angular/animations'; import {Component, NgModule, ɵNgModuleFactor...
{ "end_byte": 1123, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/bundling/animations-standalone/index.ts" }
angular/packages/core/test/bundling/animations/index.html_0_1220
<!DOCTYPE html> <html> <head> <title>Angular Animations Example</title> </head> <body> <!-- The Angular application will be bootstrapped into this element. --> <app-root></app-root> <!-- Script tag which bootstraps the application. Use `?debug` in URL to select the debug version of the ...
{ "end_byte": 1220, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/bundling/animations/index.html" }
angular/packages/core/test/bundling/animations/treeshaking_spec.ts_0_1058
/** * @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 '@angular/compiler'; import {runfiles} from '@bazel/runfiles'; import * as fs from 'fs'; import * as path fr...
{ "end_byte": 1058, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/bundling/animations/treeshaking_spec.ts" }
angular/packages/core/test/bundling/animations/BUILD.bazel_0_1404
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module", "ts_library") load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test") load("@npm//http-server:index.bzl", "http_server") package(default_visibility = ["//visibility:public"]) ng_module( name = "animations", srcs = ["ind...
{ "end_byte": 1404, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/bundling/animations/BUILD.bazel" }
angular/packages/core/test/bundling/animations/index.ts_0_1285
/** * @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 {animate, style, transition, trigger} from '@angular/animations'; import {Component, NgModule, ɵNgModuleFactor...
{ "end_byte": 1285, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/bundling/animations/index.ts" }
angular/packages/core/test/bundling/router/index.html_0_1317
<!DOCTYPE html> <html> <head> <title>Angular Routing Example</title> </head> <body> <!-- The Angular application will be bootstrapped into this element. --> <app-root></app-root> <script src="/angular/packages/zone.js/bundles/zone.umd.js"></script> <!-- Script tag which bootstraps the...
{ "end_byte": 1317, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/bundling/router/index.html" }
angular/packages/core/test/bundling/router/treeshaking_spec.ts_0_1054
/** * @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 '@angular/compiler'; import {runfiles} from '@bazel/runfiles'; import * as fs from 'fs'; import * as path fr...
{ "end_byte": 1054, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/bundling/router/treeshaking_spec.ts" }
angular/packages/core/test/bundling/router/BUILD.bazel_0_1472
load("//tools:defaults.bzl", "app_bundle", "http_server", "jasmine_node_test", "ng_module", "ts_library") load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test") package(default_visibility = ["//visibility:public"]) ng_module( name = "router", srcs = [ "index.ts", ], deps = [ ...
{ "end_byte": 1472, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/bundling/router/BUILD.bazel" }
angular/packages/core/test/bundling/router/index.ts_0_1867
/** * @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 {APP_BASE_HREF} from '@angular/common'; import {Component, OnInit} from '@angular/core'; import {bootstrapApp...
{ "end_byte": 1867, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/bundling/router/index.ts" }
angular/packages/core/test/resource/resource_spec.ts_0_1666
/** * @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 { createEnvironmentInjector, EnvironmentInjector, Injector, resource, ResourceStatus, signal, } f...
{ "end_byte": 1666, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/resource/resource_spec.ts" }
angular/packages/core/test/resource/resource_spec.ts_1668_10415
describe('resource', () => { it('should expose data and status based on reactive request', async () => { const counter = signal(0); const backend = new MockEchoBackend(); const echoResource = resource({ request: () => ({counter: counter()}), loader: (params) => backend.fetch(params.request), ...
{ "end_byte": 10415, "start_byte": 1668, "url": "https://github.com/angular/angular/blob/main/packages/core/test/resource/resource_spec.ts" }
angular/packages/core/test/resource/resource_spec.ts_10419_12303
it('should allow re-fetching data', async () => { const backend = new MockResponseCountingBackend(); const res = resource<string, number>({ request: () => 0, loader: (params) => backend.fetch(params.request), injector: TestBed.inject(Injector), }); TestBed.flushEffects(); await ba...
{ "end_byte": 12303, "start_byte": 10419, "url": "https://github.com/angular/angular/blob/main/packages/core/test/resource/resource_spec.ts" }
angular/packages/core/test/resource/BUILD.bazel_0_561
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ng_module") package(default_visibility = ["//visibility:private"]) ng_module( name = "resource_lib", testonly = True, srcs = glob( ["**/*.ts"], ), deps = [ "//packages/core", "//packages/core/testing...
{ "end_byte": 561, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/resource/BUILD.bazel" }
angular/packages/core/test/i18n/locale_data_api_spec.ts_0_3862
/** * @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 { findLocaleData, getLocaleCurrencyCode, LocaleDataIndex, registerLocaleData, unregisterAllLocaleDat...
{ "end_byte": 3862, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/i18n/locale_data_api_spec.ts" }
angular/packages/core/test/sanitization/html_sanitizer_spec.ts_0_485
/** * @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 {_sanitizeHtml} from '../../src/sanitization/html_sanitizer'; import {isDOMParserAvailable} from '../../src/s...
{ "end_byte": 485, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/sanitization/html_sanitizer_spec.ts" }
angular/packages/core/test/sanitization/html_sanitizer_spec.ts_487_7606
describe('HTML sanitizer', () => { let defaultDoc: any; let originalLog: (msg: any) => any = null!; let logMsgs: string[]; beforeEach(() => { defaultDoc = document; logMsgs = []; originalLog = console.warn; // Monkey patch DOM.log. console.warn = (msg: any) => logMsgs.push(msg); }); afterE...
{ "end_byte": 7606, "start_byte": 487, "url": "https://github.com/angular/angular/blob/main/packages/core/test/sanitization/html_sanitizer_spec.ts" }
angular/packages/core/test/sanitization/html_sanitizer_spec.ts_7610_12328
('should not enter an infinite loop on clobbered elements', () => { // Some browsers are vulnerable to clobbered elements and will throw an expected exception // IE and EDGE does not seems to be affected by those cases // Anyway what we want to test is that browsers do not enter an infinite loop which would...
{ "end_byte": 12328, "start_byte": 7610, "url": "https://github.com/angular/angular/blob/main/packages/core/test/sanitization/html_sanitizer_spec.ts" }
angular/packages/core/test/sanitization/sanitization_spec.ts_0_7674
/** * @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 {SECURITY_SCHEMA} from '@angular/compiler/src/schema/dom_security_schema'; import {ENVIRONMENT, LView} from '...
{ "end_byte": 7674, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/sanitization/sanitization_spec.ts" }
angular/packages/core/test/sanitization/url_sanitizer_spec.ts_0_2308
/** * @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 {_sanitizeUrl} from '../../src/sanitization/url_sanitizer'; describe('URL sanitizer', () => { let logMsgs:...
{ "end_byte": 2308, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/sanitization/url_sanitizer_spec.ts" }
angular/packages/core/test/metadata/resource_loading_spec.ts_0_8316
/** * @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 '../../src/core'; import { clearResolutionOfComponentResourcesQueue, isComponentResource...
{ "end_byte": 8316, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/metadata/resource_loading_spec.ts" }
angular/packages/core/test/metadata/di_spec.ts_0_3518
/** * @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, Directive, ElementRef, Input, NO_ERRORS_SCHEMA, QueryList, ViewChild, ViewChildr...
{ "end_byte": 3518, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/metadata/di_spec.ts" }
angular/packages/core/test/compiler/compiler_facade_spec.ts_0_2839
/** * @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 {getCompilerFacade, JitCompilerUsage} from '../../src/compiler/compiler_facade'; import {CompilerFacade, Expo...
{ "end_byte": 2839, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/compiler/compiler_facade_spec.ts" }
angular/packages/core/test/compiler/BUILD.bazel_0_577
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library") package(default_visibility = ["//visibility:private"]) ts_library( name = "compiler_lib", testonly = True, srcs = glob( ["**/*.ts"], ), deps = [ "//packages/core/src/compiler", "//packag...
{ "end_byte": 577, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/compiler/BUILD.bazel" }
angular/packages/core/test/debug/debug_node_spec.ts_0_6796
/** * @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 {CommonModule, NgIfContext, ɵgetDOM as getDOM} from '@angular/common'; import { Component, DebugElement, ...
{ "end_byte": 6796, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/debug/debug_node_spec.ts" }
angular/packages/core/test/debug/debug_node_spec.ts_6798_15756
escribe('debug element', () => { let fixture: ComponentFixture<any>; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ declarations: [ ChildComp, ConditionalContentComp, ConditionalParentComp, CustomEmitter, EventsComp, LocalsComp, Me...
{ "end_byte": 15756, "start_byte": 6798, "url": "https://github.com/angular/angular/blob/main/packages/core/test/debug/debug_node_spec.ts" }
angular/packages/core/test/debug/debug_node_spec.ts_15760_24724
t('should query directives on views moved in the DOM', () => { @Directive({ selector: '[text]', standalone: false, }) class TextDirective { @Input() text: string | undefined; } @Directive({ selector: '[moveView]', standalone: false, }) class ViewManipulatingDir...
{ "end_byte": 24724, "start_byte": 15760, "url": "https://github.com/angular/angular/blob/main/packages/core/test/debug/debug_node_spec.ts" }
angular/packages/core/test/debug/debug_node_spec.ts_24728_32648
t('should list locals', () => { fixture = TestBed.createComponent(LocalsComp); fixture.detectChanges(); expect(fixture.debugElement.children[0].references['alice']).toBeInstanceOf(MyDir); }); it('should allow injecting from the element injector', () => { fixture = TestBed.createComponent(ParentCom...
{ "end_byte": 32648, "start_byte": 24728, "url": "https://github.com/angular/angular/blob/main/packages/core/test/debug/debug_node_spec.ts" }
angular/packages/core/test/debug/debug_node_spec.ts_32652_41632
escribe('componentInstance on DebugNode', () => { it('should return component associated with a node if a node is a component host', () => { TestBed.overrideTemplate(TestCmpt, `<parent-comp></parent-comp>`); fixture = TestBed.createComponent(TestCmpt); const debugEl = fixture.debugElement.childre...
{ "end_byte": 41632, "start_byte": 32652, "url": "https://github.com/angular/angular/blob/main/packages/core/test/debug/debug_node_spec.ts" }
angular/packages/core/test/debug/debug_node_spec.ts_41636_44756
t('should clear event listeners when node is destroyed', () => { let calls = 0; @Component({ selector: 'cancel-button', template: '', standalone: false, }) class CancelButton { @Output() cancel = new EventEmitter<void>(); } @Component({ template: '<cancel-button *n...
{ "end_byte": 44756, "start_byte": 41636, "url": "https://github.com/angular/angular/blob/main/packages/core/test/debug/debug_node_spec.ts" }
angular/packages/core/test/reflection/es2015_inheritance_fixture.ts_0_595
/** * @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 */ // AMD module name is required so that this file can be loaded in the Karma tests. /// <amd-module name="angular/pac...
{ "end_byte": 595, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/test/reflection/es2015_inheritance_fixture.ts" }
angular/packages/core/reference-manifests/README.md_0_137
# Manual API manifests This directory contains handwritten JSON entries that are aggregated into Angular's API documentation manifest.
{ "end_byte": 137, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/reference-manifests/README.md" }
angular/packages/core/reference-manifests/BUILD.bazel_0_118
filegroup( name = "reference-manifests", srcs = glob(["*.json"]), visibility = ["//visibility:public"], )
{ "end_byte": 118, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/reference-manifests/BUILD.bazel" }
angular/packages/core/primitives/signals/README.md_0_7977
# Angular Signals Implementation This directory contains the code which powers Angular's reactive primitive, an implementation of the "signal" concept. A signal is a value which is "reactive", meaning it can notify interested consumers when it changes. There are many different implementations of this concept, with dif...
{ "end_byte": 7977, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/README.md" }
angular/packages/core/primitives/signals/README.md_7977_14890
Glitch Free" property Consider the following setup: ```typescript const counter = signal(0); const evenOrOdd = computed(() => counter() % 2 === 0 ? 'even' : 'odd'); effect(() => console.log(counter() + ' is ' + evenOrOdd())); counter.set(1); ``` When the effect is first created, it will print "0 is even", as expect...
{ "end_byte": 14890, "start_byte": 7977, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/README.md" }
angular/packages/core/primitives/signals/BUILD.bazel_0_608
load("//tools:defaults.bzl", "ts_library", "tsec_test") package(default_visibility = [ "//packages:__pkg__", "//packages/core:__subpackages__", "//packages/rxjs-interop/test:__subpackages__", "//tools/public_api_guard:__pkg__", ]) ts_library( name = "signals", srcs = glob( [ ...
{ "end_byte": 608, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/BUILD.bazel" }
angular/packages/core/primitives/signals/index.ts_0_1154
/** * @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 */ export {ComputedNode, createComputed} from './src/computed'; export {ValueEqualityFn, defaultEquals} from './src/equ...
{ "end_byte": 1154, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/index.ts" }
angular/packages/core/primitives/signals/src/watch.ts_0_3915
/** * @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 { consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumer...
{ "end_byte": 3915, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/src/watch.ts" }
angular/packages/core/primitives/signals/src/errors.ts_0_535
/** * @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 */ function defaultThrowError(): never { throw new Error(); } let throwInvalidWriteToSignalErrorFn = defaultThrowErr...
{ "end_byte": 535, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/src/errors.ts" }
angular/packages/core/primitives/signals/src/equality.ts_0_524
/** * @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 */ /** * A comparison function which can determine if two values are equal. */ export type ValueEqualityFn<T> = (a: T...
{ "end_byte": 524, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/src/equality.ts" }
angular/packages/core/primitives/signals/src/weak_ref.ts_0_295
/** * @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 */ export function setAlternateWeakRefImpl(impl: unknown) { // TODO: remove this function }
{ "end_byte": 295, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/src/weak_ref.ts" }
angular/packages/core/primitives/signals/src/graph.ts_0_8652
/** * @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 */ // Required as the signals library is in a separate package, so we need to explicitly ensure the // global `ngDevMod...
{ "end_byte": 8652, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/src/graph.ts" }
angular/packages/core/primitives/signals/src/graph.ts_8654_17189
/** * Ensure this producer's `version` is up-to-date. */ export function producerUpdateValueVersion(node: ReactiveNode): void { if (consumerIsLive(node) && !node.dirty) { // A live consumer will be marked dirty by producers, so a clean state means that its version // is guaranteed to be up-to-date. retu...
{ "end_byte": 17189, "start_byte": 8654, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/src/graph.ts" }
angular/packages/core/primitives/signals/src/graph.ts_17191_17302
function isConsumerNode(node: ReactiveNode): node is ConsumerNode { return node.producerNode !== undefined; }
{ "end_byte": 17302, "start_byte": 17191, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/src/graph.ts" }
angular/packages/core/primitives/signals/src/signal.ts_0_3084
/** * @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 {defaultEquals, ValueEqualityFn} from './equality'; import {throwInvalidWriteToSignalError} from './errors'; ...
{ "end_byte": 3084, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/src/signal.ts" }
angular/packages/core/primitives/signals/src/computed.ts_0_4305
/** * @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 {defaultEquals, ValueEqualityFn} from './equality'; import { consumerAfterComputation, consumerBeforeComp...
{ "end_byte": 4305, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/signals/src/computed.ts" }
angular/packages/core/primitives/event-dispatch/contract_binary.ts_0_366
/** * @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 {bootstrapAppScopedEarlyEventContract} from './src/bootstrap_app_scoped'; (window as any)['__jsaction_bootst...
{ "end_byte": 366, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/contract_binary.ts" }
angular/packages/core/primitives/event-dispatch/README.md_0_5479
# JSAction > [!CAUTION] This document serves as a technical documentation of an internal > library used within Angular. This is **not** a public API that Angular > provides, avoid using it directly in Angular applications. JSAction is a tiny, low-level event delegation library that decouples the registration of event...
{ "end_byte": 5479, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/README.md" }
angular/packages/core/primitives/event-dispatch/README.md_5479_10852
## Setup ### 1. Create the `EventContract` First, we need to set up the `EventContract`, which installs the global handlers for JSAction. The contract can be configured as follows: ```javascript import {EventContract} from '@angular/core/primitives/event-dispatch/src/eventcontract'; import {EventContractContainer} f...
{ "end_byte": 10852, "start_byte": 5479, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/README.md" }
angular/packages/core/primitives/event-dispatch/BUILD.bazel_0_977
load("//tools:defaults.bzl", "esbuild", "ts_library", "tsec_test") package(default_visibility = ["//visibility:public"]) ts_library( name = "event-dispatch", srcs = glob( [ "**/*.ts", ], ), module_name = "@angular/core/primitives/event-dispatch", deps = [ "//pac...
{ "end_byte": 977, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/BUILD.bazel" }
angular/packages/core/primitives/event-dispatch/index.ts_0_934
/** * @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 */ export {Attribute} from './src/attribute'; export {getDefaulted as getActionCache} from './src/cache'; export type {...
{ "end_byte": 934, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/index.ts" }
angular/packages/core/primitives/event-dispatch/test/eventcontract_test.ts_0_4458
/** * @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 { EarlyEventContract, EarlyJsactionData, EarlyJsactionDataContainer, } from '../src/earlyeventcontract'...
{ "end_byte": 4458, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/eventcontract_test.ts" }
angular/packages/core/primitives/event-dispatch/test/eventcontract_test.ts_4460_13645
describe('EventContract', () => { beforeEach(() => { safeElement.setInnerHtml(document.body, testonlyHtml(domContent)); EventContract.MOUSE_SPECIAL_SUPPORT = false; // Normalize timestamp. spyOn(Date, 'now').and.returnValue(0); }); it('adds event listener after adding container', () => { con...
{ "end_byte": 13645, "start_byte": 4460, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/eventcontract_test.ts" }
angular/packages/core/primitives/event-dispatch/test/eventcontract_test.ts_13649_22245
it('exposes event handlers with `handler()`', () => { const container = getRequiredElementById('click-container'); const targetElement = getRequiredElementById('click-target-element'); const dispatcher = createDispatcherSpy(); const eventContract = createEventContract({ eventContractContainerMana...
{ "end_byte": 22245, "start_byte": 13649, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/eventcontract_test.ts" }
angular/packages/core/primitives/event-dispatch/test/eventcontract_test.ts_22249_31124
describe('early events', () => { it('early events are dispatched', () => { const container = getRequiredElementById('click-container'); const targetElement = getRequiredElementById('click-target-element'); const removeEventListenerSpy = spyOn( window.document.documentElement, 'rem...
{ "end_byte": 31124, "start_byte": 22249, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/eventcontract_test.ts" }
angular/packages/core/primitives/event-dispatch/test/html.ts_0_391
/** * @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 */ export const safeElement = { async setInnerHtml(element: Element, content: string) { element.innerHTML = conte...
{ "end_byte": 391, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/html.ts" }
angular/packages/core/primitives/event-dispatch/test/event_test.ts_0_2010
/** * @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 jsactionEvent from '../src/event'; import {EventType} from '../src/event_type'; import {KeyCode} from '....
{ "end_byte": 2010, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/event_test.ts" }
angular/packages/core/primitives/event-dispatch/test/event_test.ts_2012_11008
describe('event test.ts', () => { let divInternal: Element; beforeEach(() => { divInternal = document.createElement('div'); }); it('add event listener click w3 c', () => { const addEventListenerSpy = spyOn(divInternal, 'addEventListener').and.callThrough(); const handler = () => {}; const even...
{ "end_byte": 11008, "start_byte": 2012, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/event_test.ts" }
angular/packages/core/primitives/event-dispatch/test/event_test.ts_11012_19673
it('is action key event enter', () => { expect(baseIsActionKeyEvent(KeyCode.ENTER)).toBe(true); expect(baseIsActionKeyEvent('Enter')).toBe(true); }); it('is action key event space', () => { expect(baseIsActionKeyEvent(KeyCode.SPACE)).toBe(true); expect(baseIsActionKeyEvent('Enter')).toBe(true); }...
{ "end_byte": 19673, "start_byte": 11012, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/event_test.ts" }
angular/packages/core/primitives/event-dispatch/test/event_test.ts_19677_28012
it('is mouse special event not pointerenter', () => { const root = document.createElement('div'); const child = document.createElement('div'); root.appendChild(child); const event = { relatedTarget: child, type: EventType.POINTEROVER, target: root, } as unknown as Event; expe...
{ "end_byte": 28012, "start_byte": 19677, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/event_test.ts" }
angular/packages/core/primitives/event-dispatch/test/event_test.ts_28016_32605
it('recreate touch event as click, behavior', () => { const originalEvent = document.createEvent('UIEvent') as TouchEvent; originalEvent.initEvent('touchend', false, false); // touches is readonly. // tslint:disable-next-line:no-any (originalEvent as any).touches = [ {clientX: 1, clientY: 2, s...
{ "end_byte": 32605, "start_byte": 28016, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/event_test.ts" }
angular/packages/core/primitives/event-dispatch/test/BUILD.bazel_0_437
load("//tools:defaults.bzl", "ts_library") load("//devtools/tools:defaults.bzl", "karma_web_test_suite") ts_library( name = "browser_test_lib", testonly = True, srcs = glob( [ "**/*.ts", ], ), deps = [ "//packages/core/primitives/event-dispatch", "//packa...
{ "end_byte": 437, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/BUILD.bazel" }
angular/packages/core/primitives/event-dispatch/test/event_dispatcher_test.ts_0_9810
/** * @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 {EventDispatcher, EventPhase} from '../src/event_dispatcher'; import {createEventInfo, EventInfoWrapper} from...
{ "end_byte": 9810, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/event_dispatcher_test.ts" }
angular/packages/core/primitives/event-dispatch/test/dispatcher_test.ts_0_7065
/** * @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 cache from '../src/cache'; import {ActionInfo, createEventInfo, EventInfoWrapper} from '../src/event_inf...
{ "end_byte": 7065, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/dispatcher_test.ts" }
angular/packages/core/primitives/event-dispatch/test/dispatcher_test.ts_7067_8632
function createTestEventInfoWrapper({ eventType = 'click', event = createClickEvent(), targetElement = document.createElement('div'), container = document.createElement('div'), timestamp = 0, action = createTestActionInfo(), isReplay = undefined, }: { eventType?: string; event?: Event; targetElement...
{ "end_byte": 8632, "start_byte": 7067, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/dispatcher_test.ts" }
angular/packages/core/primitives/event-dispatch/test/dispatcher_test.ts_8634_18277
describe('Dispatcher', () => { beforeEach(() => { safeElement.setInnerHtml(document.body, testonlyHtml(domContent)); // Normalize timestamp. spyOn(Date, 'now').and.returnValue(0); }); it('dispatches event', () => { const container = getRequiredElementById('click-container'); const actionElem...
{ "end_byte": 18277, "start_byte": 8634, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/dispatcher_test.ts" }
angular/packages/core/primitives/event-dispatch/test/dispatcher_test.ts_18281_27333
it('handles jsaction attributes without action names, first action', () => { const container = getRequiredElementById('no-action-name-container'); const actionElement = getRequiredElementById('no-action-name-action-element'); const targetElement = getRequiredElementById('no-action-name-target-element'); ...
{ "end_byte": 27333, "start_byte": 18281, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/dispatcher_test.ts" }
angular/packages/core/primitives/event-dispatch/test/dispatcher_test.ts_27337_34242
describe('a11y click', () => { it('dispatches keydown as click event', () => { const container = getRequiredElementById('a11y-click-container'); const actionElement = getRequiredElementById('a11y-click-action-element'); const targetElement = getRequiredElementById('a11y-click-target-element'); ...
{ "end_byte": 34242, "start_byte": 27337, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/dispatcher_test.ts" }
angular/packages/core/primitives/event-dispatch/test/dispatcher_test.ts_34246_44288
describe('non-bubbling mouse events', () => { beforeEach(() => { EventContract.MOUSE_SPECIAL_SUPPORT = true; }); afterEach(() => { EventContract.MOUSE_SPECIAL_SUPPORT = false; }); it('dispatches matching mouseover as mouseenter event', () => { const container = getRequiredElementB...
{ "end_byte": 44288, "start_byte": 34246, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/dispatcher_test.ts" }
angular/packages/core/primitives/event-dispatch/test/dispatcher_test.ts_44294_45713
it('does not dispatch non-matching pointerout event as pointerleave', () => { const container = getRequiredElementById('pointerleave-container'); const actionElement = getRequiredElementById('pointerleave-action-element'); const targetElement = getRequiredElementById('pointerleave-target-element'); ...
{ "end_byte": 45713, "start_byte": 44294, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/test/dispatcher_test.ts" }
angular/packages/core/primitives/event-dispatch/src/event_info.ts_0_8798
/** * @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 */ /** * Records information about the action that should handle a given `Event`. */ export interface ActionInfo { ...
{ "end_byte": 8798, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event_info.ts" }
angular/packages/core/primitives/event-dispatch/src/bootstrap_global.ts_0_1611
/** * @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 {Restriction} from './restriction'; import { addEvents, createEarlyJsactionData, getQueuedEventInfos, ...
{ "end_byte": 1611, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/bootstrap_global.ts" }
angular/packages/core/primitives/event-dispatch/src/a11y_click.ts_0_2158
/** * @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 eventLib from './event'; import * as eventInfoLib from './event_info'; import {EventType} from './event_...
{ "end_byte": 2158, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/a11y_click.ts" }
angular/packages/core/primitives/event-dispatch/src/restriction.ts_0_344
/** * @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 */ /** * @fileoverview An enum to control who can call certain jsaction APIs. */ export enum Restriction { I_AM_TH...
{ "end_byte": 344, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/restriction.ts" }
angular/packages/core/primitives/event-dispatch/src/eventcontract.ts_0_3365
/** * @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 */ /** * @fileoverview Implements the local event handling contract. This * allows DOM objects in a container that en...
{ "end_byte": 3365, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/eventcontract.ts" }
angular/packages/core/primitives/event-dispatch/src/eventcontract.ts_3366_10660
export class EventContract implements UnrenamedEventContract { static MOUSE_SPECIAL_SUPPORT = MOUSE_SPECIAL_SUPPORT; private containerManager: EventContractContainerManager | null; /** * The DOM events which this contract covers. Used to prevent double * registration of event types. The value of the map i...
{ "end_byte": 10660, "start_byte": 3366, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/eventcontract.ts" }
angular/packages/core/primitives/event-dispatch/src/action_resolver.ts_0_915
/** * @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 {Attribute} from './attribute'; import {Char} from './char'; import {EventType} from './event_type'; import {...
{ "end_byte": 915, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/action_resolver.ts" }
angular/packages/core/primitives/event-dispatch/src/action_resolver.ts_916_9355
export class ActionResolver { private a11yClickSupport: boolean = false; private clickModSupport: boolean = true; private readonly syntheticMouseEventSupport: boolean; private updateEventInfoForA11yClick?: (eventInfo: eventInfoLib.EventInfo) => void = undefined; private preventDefaultForA11yClick?: (eventIn...
{ "end_byte": 9355, "start_byte": 916, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/action_resolver.ts" }
angular/packages/core/primitives/event-dispatch/src/action_resolver.ts_9359_11355
/** * Parses and caches an element's jsaction element into a map. * * This is primarily for internal use. * * @param actionElement The DOM node to retrieve the jsaction map from. * @return Map from event to qualified name of the jsaction bound to it. */ private parseActions(actionElement: Element...
{ "end_byte": 11355, "start_byte": 9359, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/action_resolver.ts" }
angular/packages/core/primitives/event-dispatch/src/event_contract_container.ts_0_2770
/** * @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 eventLib from './event'; import {EventHandlerInfo} from './event_handler'; /** * An `EventContractCont...
{ "end_byte": 2770, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event_contract_container.ts" }
angular/packages/core/primitives/event-dispatch/src/event_contract_multi_container.ts_0_6767
/** * @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 {EventContractContainer, EventContractContainerManager} from './event_contract_container'; /** * An `EventC...
{ "end_byte": 6767, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event_contract_multi_container.ts" }
angular/packages/core/primitives/event-dispatch/src/earlyeventcontract.ts_0_3926
/** * @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 {createEventInfoFromParameters, EventInfo} from './event_info'; export declare interface EarlyJsactionDataCo...
{ "end_byte": 3926, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/earlyeventcontract.ts" }
angular/packages/core/primitives/event-dispatch/src/cache.ts_0_1974
/** * @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 {Property} from './property'; /** * Map from jsaction annotation to a parsed map from event name to action ...
{ "end_byte": 1974, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/cache.ts" }
angular/packages/core/primitives/event-dispatch/src/key_code.ts_0_578
/** * @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 */ /** * If on a Macintosh with an extended keyboard, the Enter key located in the * numeric pad has a different ASCI...
{ "end_byte": 578, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/key_code.ts" }
angular/packages/core/primitives/event-dispatch/src/event_dispatcher.ts_0_7293
/** * @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 {ActionResolver} from './action_resolver'; import {Dispatcher} from './dispatcher'; import {EventInfo, EventI...
{ "end_byte": 7293, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event_dispatcher.ts" }
angular/packages/core/primitives/event-dispatch/src/char.ts_0_528
/** * @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 */ export const Char = { /** * The separator between the namespace and the action name in the * jsaction attrib...
{ "end_byte": 528, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/char.ts" }
angular/packages/core/primitives/event-dispatch/src/bootstrap_app_scoped.ts_0_2257
/** * @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 {Restriction} from './restriction'; import { EarlyJsactionDataContainer, addEvents, createEarlyJsaction...
{ "end_byte": 2257, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/bootstrap_app_scoped.ts" }
angular/packages/core/primitives/event-dispatch/src/event_type.ts_0_678
/** * @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 */ /* * Names of events that are special to jsaction. These are not all * event types that are legal to use in either...
{ "end_byte": 678, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event_type.ts" }
angular/packages/core/primitives/event-dispatch/src/event_type.ts_679_8146
export const EventType = { /** * Mouse middle click, introduced in Chrome 55 and not yet supported on * other browsers. */ AUXCLICK: 'auxclick', /** * The change event fired by browsers when the `value` attribute of input, * select, and textarea elements are changed. */ CHANGE: 'change', /...
{ "end_byte": 8146, "start_byte": 679, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event_type.ts" }
angular/packages/core/primitives/event-dispatch/src/event_type.ts_8147_9841
export const BUBBLE_EVENT_TYPES = [ EventType.CLICK, EventType.DBLCLICK, EventType.FOCUSIN, EventType.FOCUSOUT, EventType.KEYDOWN, EventType.KEYUP, EventType.KEYPRESS, EventType.MOUSEOVER, EventType.MOUSEOUT, EventType.SUBMIT, EventType.TOUCHSTART, EventType.TOUCHEND, EventType.TOUCHMOVE, 't...
{ "end_byte": 9841, "start_byte": 8147, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event_type.ts" }
angular/packages/core/primitives/event-dispatch/src/property.ts_0_1212
/** * @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 */ /** All properties that are used by jsaction. */ export const Property = { /** * The parsed value of the jsacti...
{ "end_byte": 1212, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/property.ts" }
angular/packages/core/primitives/event-dispatch/src/event_handler.ts_0_456
/** * @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 */ /** * * Information about a registered event handler, which can be used to * deregister the event handler. */ ex...
{ "end_byte": 456, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event_handler.ts" }
angular/packages/core/primitives/event-dispatch/src/attribute.ts_0_847
/** * @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 */ export const Attribute = { /** * The jsaction attribute defines a mapping of a DOM event to a * generic even...
{ "end_byte": 847, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/attribute.ts" }
angular/packages/core/primitives/event-dispatch/src/event_contract_defines.ts_0_379
/** * @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 */ /** * @define Support for the non-bubbling mouseenter and mouseleave events. This * flag can be overridden in a b...
{ "end_byte": 379, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event_contract_defines.ts" }
angular/packages/core/primitives/event-dispatch/src/event.ts_0_8113
/** * @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 {EventHandlerInfo} from './event_handler'; import {isCaptureEventType, EventType} from './event_type'; import...
{ "end_byte": 8113, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event.ts" }
angular/packages/core/primitives/event-dispatch/src/event.ts_8115_14494
/** * Determines and returns whether the given event has a target that already * has event handlers attached because it is a native HTML control. Used to * determine if preventDefault should be called when isActionKeyEvent is true. * @param e The event. * @return If preventDefault should be called. */ export func...
{ "end_byte": 14494, "start_byte": 8115, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event.ts" }
angular/packages/core/primitives/event-dispatch/src/event.ts_14495_22475
export function createMouseSpecialEvent(e: Event, target: Element): Event { // We have to create a copy of the event object because we need to mutate // its fields. We do this for the special mouse events because the event // target needs to be retargeted to the action element rather than the real // element (s...
{ "end_byte": 22475, "start_byte": 14495, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event.ts" }
angular/packages/core/primitives/event-dispatch/src/event.ts_22477_23336
/** TagNames and Input types for which to not process enter/space as click. */ const TEXT_CONTROLS: {[key: string]: boolean} = { 'COLOR': true, 'DATE': true, 'DATETIME': true, 'DATETIME-LOCAL': true, 'EMAIL': true, 'MONTH': true, 'NUMBER': true, 'PASSWORD': true, 'RANGE': true, 'SEARCH': true, 'TE...
{ "end_byte": 23336, "start_byte": 22477, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/event.ts" }
angular/packages/core/primitives/event-dispatch/src/dispatcher.ts_0_5675
/** * @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 {EventInfo, EventInfoWrapper} from './event_info'; import {EventType} from './event_type'; import {Restrictio...
{ "end_byte": 5675, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/primitives/event-dispatch/src/dispatcher.ts" }
angular/packages/core/testing/PACKAGE.md_0_63
Provides infrastructure for testing Angular core functionality.
{ "end_byte": 63, "start_byte": 0, "url": "https://github.com/angular/angular/blob/main/packages/core/testing/PACKAGE.md" }