_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
angular/adev/shared-docs/providers/example-viewer-content-loader.ts_0_446 | /*!
* @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} from '@angular/core';
import {ExampleViewerContentLoader} from '../interfaces/index';
expor... | {
"end_byte": 446,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/providers/example-viewer-content-loader.ts"
} |
angular/adev/shared-docs/providers/docs-content-loader.ts_0_627 | /*!
* @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, inject} from '@angular/core';
import {ResolveFn} from '@angular/router';
import {DocContent,... | {
"end_byte": 627,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/providers/docs-content-loader.ts"
} |
angular/adev/shared-docs/providers/BUILD.bazel_0_613 | load("//tools:defaults.bzl", "ng_module", "ts_library")
package(default_visibility = ["//visibility:private"])
ts_library(
name = "providers",
srcs = [
"index.ts",
],
visibility = ["//adev/shared-docs:__subpackages__"],
deps = [
":lib",
],
)
ng_module(
name = "lib",
sr... | {
"end_byte": 613,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/providers/BUILD.bazel"
} |
angular/adev/shared-docs/providers/window.ts_0_759 | /*!
* @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} from '@angular/core';
// Providing window using injection token could increase testability ... | {
"end_byte": 759,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/providers/window.ts"
} |
angular/adev/shared-docs/providers/index.ts_0_462 | /*!
* @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 * from './docs-content-loader';
export * from './environment';
export * from './example-viewer-content-loader... | {
"end_byte": 462,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/providers/index.ts"
} |
angular/adev/shared-docs/utils/analytics.utils.ts_0_1053 | /*!
* @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
*/
declare global {
interface Window {
gtag: (...args: any[]) => void;
}
}
export const setCookieConsent = (st... | {
"end_byte": 1053,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/utils/analytics.utils.ts"
} |
angular/adev/shared-docs/utils/filesystem.utils.ts_0_1492 | /*!
* @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 {normalizePath} from './navigation.utils';
import {FileAndContent} from '../interfaces';
interface DirEnt<T>... | {
"end_byte": 1492,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/utils/filesystem.utils.ts"
} |
angular/adev/shared-docs/utils/animations.utils.ts_0_353 | /*!
* @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 shouldReduceMotion = () =>
typeof window !== 'undefined' &&
window.matchMedia(`(prefers-reduced-mot... | {
"end_byte": 353,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/utils/animations.utils.ts"
} |
angular/adev/shared-docs/utils/BUILD.bazel_0_696 | load("//tools:defaults.bzl", "ts_library")
package(default_visibility = ["//visibility:private"])
ts_library(
name = "utils",
srcs = [
"index.ts",
],
visibility = ["//adev/shared-docs:__subpackages__"],
deps = [
":lib",
],
)
ts_library(
name = "lib",
srcs = glob(
... | {
"end_byte": 696,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/utils/BUILD.bazel"
} |
angular/adev/shared-docs/utils/index.ts_0_437 | /*!
* @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 * from './analytics.utils';
export * from './animations.utils';
export * from './device.utils';
export * from... | {
"end_byte": 437,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/utils/index.ts"
} |
angular/adev/shared-docs/utils/url.utils.ts_0_343 | /*!
* @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 removeTrailingSlash = (url: string): string => {
if (url.endsWith('/')) {
return url.slice(0, -1)... | {
"end_byte": 343,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/utils/url.utils.ts"
} |
angular/adev/shared-docs/utils/zip.utils.ts_0_814 | /*!
* @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 {FileAndContent} from '../interfaces';
// TODO(josephperrott): Determine how we can load the fflate package ... | {
"end_byte": 814,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/utils/zip.utils.ts"
} |
angular/adev/shared-docs/utils/navigation.utils.ts_0_3764 | /*!
* @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 {inject} from '@angular/core';
import {ActivatedRouteSnapshot, Route, Router} from '@angular/router';
import ... | {
"end_byte": 3764,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/utils/navigation.utils.ts"
} |
angular/adev/shared-docs/utils/device.utils.ts_0_793 | /*!
* @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 isMobile =
typeof window !== 'undefined' && window.navigator.userAgent.toLowerCase().includes('mobi')... | {
"end_byte": 793,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/utils/device.utils.ts"
} |
angular/adev/shared-docs/pipes/relative-link.pipe.spec.ts_0_1139 | /*!
* @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 {RelativeLink} from './relative-link.pipe';
describe('RelativeLink', () => {
let pipe: RelativeLink;
be... | {
"end_byte": 1139,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipes/relative-link.pipe.spec.ts"
} |
angular/adev/shared-docs/pipes/is-active-navigation-item.pipe.spec.ts_0_1733 | /*!
* @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 {NavigationItem} from '../interfaces';
import {IsActiveNavigationItem} from './is-active-navigation-item.pipe... | {
"end_byte": 1733,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipes/is-active-navigation-item.pipe.spec.ts"
} |
angular/adev/shared-docs/pipes/relative-link.pipe.ts_0_857 | /*!
* @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 {Pipe, PipeTransform} from '@angular/core';
import {normalizePath, removeTrailingSlash} from '../utils/index'... | {
"end_byte": 857,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipes/relative-link.pipe.ts"
} |
angular/adev/shared-docs/pipes/BUILD.bazel_0_587 | load("//tools:defaults.bzl", "ng_module", "ts_library")
package(default_visibility = ["//visibility:private"])
ts_library(
name = "pipes",
srcs = [
"index.ts",
],
visibility = ["//adev/shared-docs:__subpackages__"],
deps = [
":lib",
],
)
ng_module(
name = "lib",
srcs =... | {
"end_byte": 587,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipes/BUILD.bazel"
} |
angular/adev/shared-docs/pipes/index.ts_0_88 | export * from './is-active-navigation-item.pipe';
export * from './relative-link.pipe';
| {
"end_byte": 88,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipes/index.ts"
} |
angular/adev/shared-docs/pipes/is-active-navigation-item.pipe.ts_0_894 | /*!
* @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 {Pipe, PipeTransform} from '@angular/core';
import {NavigationItem} from '../interfaces/index';
@Pipe({
na... | {
"end_byte": 894,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/pipes/is-active-navigation-item.pipe.ts"
} |
angular/adev/shared-docs/testing/testing-helper.ts_0_5755 | /*!
* @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 {ChangeDetectorRef} from '@angular/core';
import {
DirEnt,
ErrorListener,
FSWatchCallback,
FSWatchOpt... | {
"end_byte": 5755,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/testing/testing-helper.ts"
} |
angular/adev/shared-docs/testing/BUILD.bazel_0_504 | load("//tools:defaults.bzl", "ts_library")
package(default_visibility = ["//visibility:private"])
ts_library(
name = "testing",
srcs = [
"index.ts",
],
visibility = ["//adev/shared-docs:__subpackages__"],
deps = [
":lib",
],
)
ts_library(
name = "lib",
srcs = glob(
... | {
"end_byte": 504,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/testing/BUILD.bazel"
} |
angular/adev/shared-docs/testing/index.ts_0_238 | /*!
* @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 * from './testing-helper';
| {
"end_byte": 238,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/testing/index.ts"
} |
angular/adev/shared-docs/styles/_z-index.scss_0_139 | :root {
--z-index-mini-menu: 200;
--z-index-nav: 100;
--z-index-cookie-consent: 60;
--z-index-content: 50;
--z-index-icon: 10;
}
| {
"end_byte": 139,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_z-index.scss"
} |
angular/adev/shared-docs/styles/_split.scss_0_557 | $gutter-border: 1px solid var(--senary-contrast) !important;
as-split {
::ng-deep .as-split-gutter {
flex-basis: 5px !important;
background-color: inherit !important;
position: relative;
}
&.as-horizontal.docs-editor {
::ng-deep .as-split-gutter {
border-inline: $gutter-border;
}
}
... | {
"end_byte": 557,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_split.scss"
} |
angular/adev/shared-docs/styles/_colors.scss_0_195 | // Colors
// Using OKLCH color space for better color reproduction on P3 displays,
// as well as better human-readability
// --> https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch | {
"end_byte": 195,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_colors.scss"
} |
angular/adev/shared-docs/styles/_colors.scss_197_5071 | @mixin root-definitions() {
// PRIMITIVES
// Colors
--bright-blue: oklch(51.01% 0.274 263.83); // #0546ff
--indigo-blue: oklch(51.64% 0.229 281.65); // #5c44e4
--electric-violet: oklch(53.18% 0.28 296.97); // #8514f5
--french-violet: oklch(47.66% 0.246 305.88); // #8001c6
--vivid-pink: oklch(69.02% 0.277 ... | {
"end_byte": 5071,
"start_byte": 197,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_colors.scss"
} |
angular/adev/shared-docs/styles/_colors.scss_5074_10536 | --orange-to-pink-vertical-gradient: linear-gradient(
0deg,
var(--vivid-pink) 0%,
var(--light-orange) 100%
);
// Radial Gradients
--page-bg-radial-gradient: radial-gradient(circle, white 0%, white 100%);
--soft-pink-radial-gradient: radial-gradient(
circle at center bottom,
var(--light-pink)... | {
"end_byte": 10536,
"start_byte": 5074,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_colors.scss"
} |
angular/adev/shared-docs/styles/_typography.scss_0_2366 | // Base Typography styles
@mixin typography() {
:root {
--code-font: 'DM Mono', monospace;
--inter-font: 'Inter', var(--fallback-font-stack);
--inter-tight-font: 'Inter Tight', var(--fallback-font-stack);
--icons: 'Material Symbols Outlined';
--selection-background: var(--vivid-pink);
--sele... | {
"end_byte": 2366,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_typography.scss"
} |
angular/adev/shared-docs/styles/_api-item-label.scss_0_2167 | @mixin api-item-label() {
.docs-api-item-label {
--label-theme: var(--symbolic-purple);
display: flex;
justify-content: center;
align-items: center;
font-weight: 500;
color: var(--label-theme);
background: color-mix(in srgb, var(--label-theme) 10%, white);
border-radius: 0.25rem;
... | {
"end_byte": 2167,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_api-item-label.scss"
} |
angular/adev/shared-docs/styles/_scroll-track.scss_0_1631 | @mixin scroll-track {
// used on secondary nav
.docs-scroll-hide {
&::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0);
}
&::-webkit-scrollbar {
width: 0;
}
}
// used for main page scroll
.docs-scroll-track-transparent-large {
&::-webkit-scrollbar-track {
backgroun... | {
"end_byte": 1631,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_scroll-track.scss"
} |
angular/adev/shared-docs/styles/global-styles.scss_0_3528 | // TODO: Continue organizing and refactoring this file
@use '@angular/material' as mat;
// Using disable-next-line to avoid stylelint errors - these imports are necessary
// TODO: Is there another way to prevent these linting errors?
// stylelint-disable-next-line @angular/no-unused-import
@use '_colors';
// stylelint... | {
"end_byte": 3528,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/global-styles.scss"
} |
angular/adev/shared-docs/styles/_button.scss_0_3106 | @mixin button() {
button {
font-family: var(--inter-font);
background: transparent;
-webkit-appearance: none;
border: 0;
font-weight: 600;
// Remove excess padding and border in Firefox 4+
&::-moz-focus-inner {
border: 0;
padding: 0;
}
&:disabled {
cursor: not-a... | {
"end_byte": 3106,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_button.scss"
} |
angular/adev/shared-docs/styles/_kbd.scss_0_902 | @mixin kbd() {
// We only target non-nested kbd elements
kbd:not(:has(kbd)) {
position: relative;
color: var(---tertiary-contrast);
border: 1px solid var(--quinary-contrast);
box-shadow:
0 1px 0 rgba(0, 0, 0, 0.2),
0 0 0 2px var(--octonary-contrast) inset;
// NOTE: This line (in add... | {
"end_byte": 902,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_kbd.scss"
} |
angular/adev/shared-docs/styles/_links.scss_0_233 | @mixin external-link-with-icon() {
&::after {
display: inline-block;
content: '\e89e'; // codepoint for "open_in_new"
font-family: 'Material Symbols Outlined';
margin-left: 0.2rem;
vertical-align: middle;
}
}
| {
"end_byte": 233,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_links.scss"
} |
angular/adev/shared-docs/styles/_faceted-list.scss_0_1506 | @mixin faceted-list() {
.docs-faceted-list {
--faceted-list-border-width: 2px;
list-style: none;
padding: 0;
margin: 0;
border-inline-start: calc(var(--faceted-list-border-width) - 1px) solid var(--senary-contrast);
}
.docs-faceted-list-item {
a,
button:not(.docs-expanded-button) {
... | {
"end_byte": 1506,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_faceted-list.scss"
} |
angular/adev/shared-docs/styles/_resets.scss_0_6976 | @use './media-queries' as mq;
@mixin resets() {
:root {
--fallback-font-stack: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
--page-wi... | {
"end_byte": 6976,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_resets.scss"
} |
angular/adev/shared-docs/styles/_resets.scss_6979_9275 | .docs-example-viewer-actions {
.mat-mdc-tab-labels {
width: 100%;
}
.mat-mdc-tab-header {
--mdc-tab-indicator-active-indicator-color: transparent;
--mat-tab-header-active-focus-indicator-color: transparent;
--mat-tab-header-active-hover-indicator-color: transparent;
--mat-tab-... | {
"end_byte": 9275,
"start_byte": 6979,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_resets.scss"
} |
angular/adev/shared-docs/styles/BUILD.bazel_0_303 | load("@io_bazel_rules_sass//:defs.bzl", "sass_library")
package(default_visibility = ["//visibility:private"])
sass_library(
name = "styles",
srcs = glob(["**/*.scss"]),
visibility = [
"//adev/shared-docs:__pkg__",
"//adev/shared-docs/components:__subpackages__",
],
)
| {
"end_byte": 303,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/BUILD.bazel"
} |
angular/adev/shared-docs/styles/_media-queries.scss_0_954 | $screen-xs: 700px;
$screen-sm: 775px;
$screen-md: 900px;
$screen-lg: 1200px;
$screen-xl: 1800px;
@mixin for-phone-only {
@media (max-width: $screen-xs) {
@content;
}
}
@mixin for-tablet-portrait-up {
@media (min-width: $screen-xs) {
@content;
}
}
@mixin for-tablet {
@media (min-width: $screen-xs) an... | {
"end_byte": 954,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_media-queries.scss"
} |
angular/adev/shared-docs/styles/_anchor.scss_0_373 | @mixin docs-anchor() {
&::after {
content: '\e157'; // codepoint for "link"
font-family: 'Material Symbols Outlined';
opacity: 0;
margin-left: 8px;
vertical-align: middle;
color: var(--quaternary-contrast);
font-size: clamp(18px, 1.25em, 30px);
transition: opacity 0.3s ease;
}
&:... | {
"end_byte": 373,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/_anchor.scss"
} |
angular/adev/shared-docs/styles/docs/_code.scss_0_7068 | // TODO: Working on refactoring all code components & syntax highlighting
/* stylelint-disable */
@mixin docs-code-block {
// code across docs, inline, blocks, shell, example viewer, etc.
code {
font-family: var(--code-font);
border-radius: 0.25rem;
font-weight: 400;
// Create a new stacking conte... | {
"end_byte": 7068,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/docs/_code.scss"
} |
angular/adev/shared-docs/styles/docs/_code.scss_7070_8146 | @mixin docs-syntax-highlighting {
.shiki .line {
min-height: 1.375em;
padding-inline: 1rem;
color: var(--tertiary-contrast);
display: block;
&.hidden {
display: none;
}
span:last-child {
margin-inline-end: 4rem;
}
}
.shiki-ln-group {
display: flex;
flex-direc... | {
"end_byte": 8146,
"start_byte": 7070,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/docs/_code.scss"
} |
angular/adev/shared-docs/styles/docs/_steps.scss_0_2128 | // Doc Steps/Ordered Doc section
// Did somebody order a doc?
@use '../media-queries' as mq;
@mixin docs-steps() {
.docs-steps {
--gutter: 4rem;
padding-inline-start: var(--gutter);
counter-reset: code-steps-list;
list-style-type: none;
li {
position: relative;
}
}
.docs-steps li h3... | {
"end_byte": 2128,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/docs/_steps.scss"
} |
angular/adev/shared-docs/styles/docs/_video.scss_0_191 | @mixin docs-video() {
.docs-video-container {
iframe {
border: 0;
width: 100%;
border-radius: 0.25rem;
overflow: hidden;
aspect-ratio: 16 / 9;
}
}
}
| {
"end_byte": 191,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/docs/_video.scss"
} |
angular/adev/shared-docs/styles/docs/_table.scss_0_853 | // Table
@mixin docs-table {
.docs-table {
overflow-x: auto;
table {
width: 100%;
border-collapse: collapse;
margin-block: 1rem;
font-size: 0.875rem;
line-height: 160%;
letter-spacing: -0.00875rem;
}
th {
text-align: left;
padding-block: 0.4rem;
... | {
"end_byte": 853,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/docs/_table.scss"
} |
angular/adev/shared-docs/styles/docs/_callout.scss_0_1664 | // Callout
@mixin docs-callout() {
.docs-callout {
// Default theme is purple to blue
--callout-theme: var(--purple-to-blue-horizontal-gradient);
border-width: 0;
border-block-start-width: 2px;
border-block-end-width: 1px;
border-style: solid;
margin-block: 1.5rem;
border-image: var(-... | {
"end_byte": 1664,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/docs/_callout.scss"
} |
angular/adev/shared-docs/styles/docs/_decorative-header.scss_0_2025 | @mixin docs-decorative-header() {
.docs-decorative-header-container {
container: header / inline-size;
}
.docs-decorative-header {
border-radius: 0.625rem;
background: var(--septenary-contrast);
max-width: var(--page-width);
overflow: hidden;
display: flex;
position: relative;
tra... | {
"end_byte": 2025,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/docs/_decorative-header.scss"
} |
angular/adev/shared-docs/styles/docs/_pill.scss_0_1840 | // Pill
@mixin docs-pill() {
.docs-pill {
display: flex;
align-items: center;
// Default blue
--pill-accent: var(--bright-blue);
background: color-mix(in srgb, var(--pill-accent) 5%, transparent);
// Darken the text a bit for contrast
color: color-mix(in srgb, var(--pill-accent) 70%, var(... | {
"end_byte": 1840,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/docs/_pill.scss"
} |
angular/adev/shared-docs/styles/docs/_card.scss_0_2126 | // Card Grid
@mixin docs-card() {
.docs-card-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
@container docs-content (max-width: 450px) {
grid-template-columns: 1fr;
}
grid-gap: 1.25rem;
margin-block: 1rem;
}
.docs-card {
display: flex;
flex-direction: column;
... | {
"end_byte": 2126,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/docs/_card.scss"
} |
angular/adev/shared-docs/styles/docs/_icon.scss_0_215 | // Icon styles, primarily for docs
@mixin docs-icon {
.docs-icon {
color: var(--quinary-contrast);
font-size: 1.5rem;
transition: color 0.3s ease;
}
.docs-icon-small {
font-size: 1rem;
}
}
| {
"end_byte": 215,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/docs/_icon.scss"
} |
angular/adev/shared-docs/styles/docs/_alert.scss_0_2685 | // Alert
@mixin docs-alert() {
.docs-alert {
// Default theme is purple to blue
--alert-gradient: var(--purple-to-blue-vertical-gradient);
--alert-accent: var(--bright-blue);
border-width: 0;
border-inline-start-width: 3px;
border-style: solid;
background: color-mix(in srgb, var(--alert-a... | {
"end_byte": 2685,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/docs/_alert.scss"
} |
angular/adev/shared-docs/styles/docs/_mermaid.scss_0_2023 | #mermaid-generated-diagram {
--fontFamily: 'sans-serif';
--primaryColor: '#fff';
--primaryBorderColor: '#000';
--pie1: '#0546ff';
--pie2: '#f637e3';
--pie3: '#f11653';
--pie4: '#8001c6';
--pie5: '#00c572';
--pie6: '#fe3700';
background-color: var(--page-background) !important; // svg background col... | {
"end_byte": 2023,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/styles/docs/_mermaid.scss"
} |
angular/adev/shared-docs/components/BUILD.bazel_0_966 | load("//tools:defaults.bzl", "ts_library")
package(default_visibility = ["//visibility:private"])
ts_library(
name = "components",
srcs = [
"index.ts",
],
visibility = [
"//adev/shared-docs:__pkg__",
],
deps = [
"//adev/shared-docs/components/algolia-icon",
"//a... | {
"end_byte": 966,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/BUILD.bazel"
} |
angular/adev/shared-docs/components/index.ts_0_754 | /*!
* @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 * from './viewers/docs-viewer/docs-viewer.component';
export * from './cookie-popup/cookie-popup.component';
... | {
"end_byte": 754,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/index.ts"
} |
angular/adev/shared-docs/components/navigation-list/navigation-list.component.spec.ts_0_5155 | /*!
* @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 {ComponentFixture, TestBed} from '@angular/core/testing';
import {NavigationList} from './navigation-list.co... | {
"end_byte": 5155,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/navigation-list/navigation-list.component.spec.ts"
} |
angular/adev/shared-docs/components/navigation-list/navigation-list.component.scss_0_2943 | @use '../../styles/media-queries' as mq;
:host {
display: flex;
min-width: var(--secondary-nav-width);
list-style: none;
overflow-y: auto;
overflow-x: hidden;
height: 100vh;
padding: 0;
margin: 0;
padding-block: 1.5rem;
font-size: 0.875rem;
box-sizing: border-box;
&::-webkit-scrollbar-track {
... | {
"end_byte": 2943,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/navigation-list/navigation-list.component.scss"
} |
angular/adev/shared-docs/components/navigation-list/navigation-list.component.html_0_2721 | <ng-template #navigationList let-navigationItems>
<ul
class="docs-navigation-list docs-faceted-list"
[class.docs-navigation-list-dropdown]="isDropdownView"
>
@for (item of navigationItems; track $index) {
<li
class="docs-faceted-list-item"
[class.docs-navigation-link-hidden]="displayItem... | {
"end_byte": 2721,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/navigation-list/navigation-list.component.html"
} |
angular/adev/shared-docs/components/navigation-list/BUILD.bazel_0_1351 | load("//tools:defaults.bzl", "karma_web_test_suite", "ng_module", "ts_library")
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
package(default_visibility = ["//visibility:private"])
ng_module(
name = "navigation-list",
srcs = [
"navigation-list.component.ts",
],
assets = [
":na... | {
"end_byte": 1351,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/navigation-list/BUILD.bazel"
} |
angular/adev/shared-docs/components/navigation-list/navigation-list.component.ts_0_1806 | /*!
* @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 {
ChangeDetectionStrategy,
Component,
EventEmitter,
Input,
Output,
inject,
} from '@angular/core'... | {
"end_byte": 1806,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/navigation-list/navigation-list.component.ts"
} |
angular/adev/shared-docs/components/search-dialog/search-dialog.component.ts_0_5142 | /*!
* @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 {
ChangeDetectionStrategy,
Component,
ElementRef,
Injector,
OnDestroy,
Signal,
afterNextRender,... | {
"end_byte": 5142,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/search-dialog/search-dialog.component.ts"
} |
angular/adev/shared-docs/components/search-dialog/search-dialog.component.html_0_3318 | <dialog #searchDialog>
<div class="docs-search-container" (docsClickOutside)="closeSearchDialog()">
<docs-text-field
[autofocus]="true"
[hideIcon]="true"
[ngModel]="searchQuery()"
(ngModelChange)="updateSearchQuery($event)"
class="docs-search-input"
placeholder="Search docs"
... | {
"end_byte": 3318,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/search-dialog/search-dialog.component.html"
} |
angular/adev/shared-docs/components/search-dialog/search-dialog.component.scss_0_3380 | dialog {
background-color: transparent;
border: none;
padding-block-end: 3rem;
&::backdrop {
backdrop-filter: blur(5px);
}
}
.docs-search-container {
width: 750px;
max-width: 90vw;
background-color: var(--page-background);
border: 1px solid var(--senary-contrast);
border-radius: 0.25rem;
box... | {
"end_byte": 3380,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/search-dialog/search-dialog.component.scss"
} |
angular/adev/shared-docs/components/search-dialog/search-dialog.component.spec.ts_0_4767 | /*!
* @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 {ComponentFixture, TestBed} from '@angular/core/testing';
import {SearchDialog} from './search-dialog.compon... | {
"end_byte": 4767,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/search-dialog/search-dialog.component.spec.ts"
} |
angular/adev/shared-docs/components/search-dialog/BUILD.bazel_0_1543 | load("//tools:defaults.bzl", "karma_web_test_suite", "ng_module", "ts_library")
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
package(default_visibility = ["//visibility:private"])
ng_module(
name = "search-dialog",
srcs = [
"search-dialog.component.ts",
],
assets = [
":search... | {
"end_byte": 1543,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/search-dialog/BUILD.bazel"
} |
angular/adev/shared-docs/components/slide-toggle/slide-toggle.component.ts_0_1898 | /*!
* @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 {ChangeDetectionStrategy, Component, Input, forwardRef, signal} from '@angular/core';
import {CommonModule} f... | {
"end_byte": 1898,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/slide-toggle/slide-toggle.component.ts"
} |
angular/adev/shared-docs/components/slide-toggle/slide-toggle.component.scss_0_1391 | :host,
label {
display: inline-flex;
gap: 0.5em;
align-items: center;
}
.docs-label {
font-size: 0.875rem;
font-style: normal;
font-weight: 500;
line-height: 160%; // 1.4rem
letter-spacing: -0.00875rem;
color: var(--quaternary-contrast);
}
.docs-toggle {
position: relative;
display: inline-block... | {
"end_byte": 1391,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/slide-toggle/slide-toggle.component.scss"
} |
angular/adev/shared-docs/components/slide-toggle/slide-toggle.component.spec.ts_0_1955 | /*!
* @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 {ComponentFixture, TestBed} from '@angular/core/testing';
import {SlideToggle} from './slide-toggle.componen... | {
"end_byte": 1955,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/slide-toggle/slide-toggle.component.spec.ts"
} |
angular/adev/shared-docs/components/slide-toggle/slide-toggle.component.html_0_340 | <label [attr.for]="buttonId">
<span class="docs-label">{{ label }}</span>
<div class="docs-toggle">
<input
type="checkbox"
[id]="buttonId"
role="switch"
(click)="toggle()"
[class.docs-toggle-active]="checked()"
[checked]="checked()"
/>
<span class="docs-slider"></span... | {
"end_byte": 340,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/slide-toggle/slide-toggle.component.html"
} |
angular/adev/shared-docs/components/slide-toggle/BUILD.bazel_0_928 | load("//tools:defaults.bzl", "karma_web_test_suite", "ng_module", "ts_library")
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
package(default_visibility = ["//visibility:private"])
ng_module(
name = "slide-toggle",
srcs = [
"slide-toggle.component.ts",
],
assets = [
":slide-to... | {
"end_byte": 928,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/slide-toggle/BUILD.bazel"
} |
angular/adev/shared-docs/components/algolia-icon/algolia-icon.component.ts_0_482 | /*!
* @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 {ChangeDetectionStrategy, Component} from '@angular/core';
@Component({
selector: 'docs-algolia-icon',
s... | {
"end_byte": 482,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/algolia-icon/algolia-icon.component.ts"
} |
angular/adev/shared-docs/components/algolia-icon/algolia-icon.component.html_0_2611 | <!-- Algolia logo -->
<svg
id="Layer_1"
class="docs-algolia-logo"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 2196.2 500"
>
<defs>
<style>
.cls-1,
.cls-2 {
fill: #003dff;
}
.cls-2 {
fill-rule: evenodd;
}
</style>
</defs>
<path
class="cls-2"
d="M1070.38,275.3V5.91c0-3.63-3.24-... | {
"end_byte": 2611,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/algolia-icon/algolia-icon.component.html"
} |
angular/adev/shared-docs/components/algolia-icon/algolia-icon.component.html_2612_5083 | <path
class="cls-2"
d="M2133.97,104.73h-49.33c-48.36,0-90.91,25.48-115.75,64.1-14.52,22.58-22.99,49.63-22.99,78.73,0,44.89,20.13,84.92,51.59,111.1,2.93,2.6,6.05,4.98,9.31,7.14,12.86,8.49,28.11,13.47,44.52,13.47,1.23,0,2.46-.03,3.68-.09,.36-.02,.71-.05,1.07-.07,.87-.05,1.75-.11,2.62-.2,.34-.03,.68-.08,1.02-.12,.91-.... | {
"end_byte": 5083,
"start_byte": 2612,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/algolia-icon/algolia-icon.component.html"
} |
angular/adev/shared-docs/components/algolia-icon/BUILD.bazel_0_442 | load("//tools:defaults.bzl", "ng_module")
package(default_visibility = ["//visibility:private"])
ng_module(
name = "algolia-icon",
srcs = [
"algolia-icon.component.ts",
],
assets = [
"algolia-icon.component.html",
],
visibility = [
"//adev/shared-docs/components:__pkg__... | {
"end_byte": 442,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/algolia-icon/BUILD.bazel"
} |
angular/adev/shared-docs/components/table-of-contents/table-of-contents.component.spec.ts_0_3751 | /*!
* @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 {ComponentFixture, TestBed} from '@angular/core/testing';
import {TableOfContents} from './table-of-contents.... | {
"end_byte": 3751,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/table-of-contents/table-of-contents.component.spec.ts"
} |
angular/adev/shared-docs/components/table-of-contents/table-of-contents.component.html_0_932 | <aside>
<nav>
<header>
<h2 class="docs-title">On this page</h2>
</header>
<ul class="docs-faceted-list">
<!-- TODO: Hide li elements with class docs-toc-item-h3 for laptop, table and phone screen resolutions -->
@for (item of tableOfContentItems(); track item.id) {
<li
cla... | {
"end_byte": 932,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/table-of-contents/table-of-contents.component.html"
} |
angular/adev/shared-docs/components/table-of-contents/table-of-contents.component.scss_0_1733 | :host {
display: flex;
flex-direction: column;
position: fixed;
right: 16px;
top: 0;
height: fit-content;
width: 14rem;
padding-inline: 1rem;
max-height: 100vh;
overflow-y: scroll;
aside {
margin-bottom: 2rem;
}
& :has(ul li:only-child) {
// Hide the entire TOC is there's only one it... | {
"end_byte": 1733,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/table-of-contents/table-of-contents.component.scss"
} |
angular/adev/shared-docs/components/table-of-contents/BUILD.bazel_0_1328 | load("//tools:defaults.bzl", "karma_web_test_suite", "ng_module", "ts_library")
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
package(default_visibility = ["//visibility:private"])
ng_module(
name = "table-of-contents",
srcs = [
"table-of-contents.component.ts",
],
assets = [
... | {
"end_byte": 1328,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/table-of-contents/BUILD.bazel"
} |
angular/adev/shared-docs/components/table-of-contents/table-of-contents.component.ts_0_1810 | /*!
* @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 {
ChangeDetectionStrategy,
Component,
DestroyRef,
Input,
computed,
inject,
} from '@angular/core'... | {
"end_byte": 1810,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/table-of-contents/table-of-contents.component.ts"
} |
angular/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.ts_0_2790 | /*!
* @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 {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
ElementRef,
WritableSignal,
inject,
si... | {
"end_byte": 2790,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.ts"
} |
angular/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.html_0_675 | <i>
<svg
aria-hidden="true"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
class="docs-copy"
>
<path
d="M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.41... | {
"end_byte": 675,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.html"
} |
angular/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.spec.ts_0_4201 | /*!
* @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 {ComponentFixture, TestBed, fakeAsync, tick} from '@angular/core/testing';
import {
CONFIRMATION_DISPLAY_T... | {
"end_byte": 4201,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/copy-source-code-button/copy-source-code-button.component.spec.ts"
} |
angular/adev/shared-docs/components/copy-source-code-button/BUILD.bazel_0_975 | load("//tools:defaults.bzl", "karma_web_test_suite", "ng_module", "ts_library")
package(default_visibility = ["//visibility:private"])
ng_module(
name = "copy-source-code-button",
srcs = [
"copy-source-code-button.component.ts",
],
assets = [
"copy-source-code-button.component.html",
... | {
"end_byte": 975,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/copy-source-code-button/BUILD.bazel"
} |
angular/adev/shared-docs/components/viewers/BUILD.bazel_0_2189 | load("//tools:defaults.bzl", "karma_web_test_suite", "ng_module", "ts_library")
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
package(default_visibility = ["//visibility:private"])
ng_module(
name = "viewers",
srcs = [
"docs-viewer/docs-viewer.component.ts",
"example-viewer/example-vi... | {
"end_byte": 2189,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/BUILD.bazel"
} |
angular/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.spec.ts_0_4729 | /*!
* @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 {ComponentFixture, TestBed} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
impor... | {
"end_byte": 4729,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.spec.ts"
} |
angular/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.spec.ts_4733_11218 | const exampleDocContentWithExpandedExampleViewerPlaceholders = `<div class="docs-code-multifile" expanded="true" path="hello-world/hello-world-new.ts">
<div class="docs-code" visibleLines="[12, 31]" path="hello-world/hello-world-new.ts">
<pre>
<code><div class="hljs-ln-line"><span class="hljs-comment">/*!</... | {
"end_byte": 11218,
"start_byte": 4733,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.spec.ts"
} |
angular/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.spec.ts_11222_14900 | it('should display example viewer in multi file mode when user clicks expand', async () => {
const fixture = TestBed.createComponent(DocViewer);
fixture.componentRef.setInput(
'docContent',
exampleDocContentWithExpandedExampleViewerPlaceholders,
);
fixture.detectChanges();
await fixture.... | {
"end_byte": 14900,
"start_byte": 11222,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.spec.ts"
} |
angular/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.scss_0_2097 | @use '../../../styles/links' as links;
@use '../../../styles/anchor' as anchor;
:host {
--translate-y: clamp(5px, 0.25em, 7px);
}
.docs-viewer {
display: flex;
flex-direction: column;
padding: var(--layout-padding);
max-width: var(--page-width);
width: 100%;
box-sizing: border-box;
@media only screen... | {
"end_byte": 2097,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.scss"
} |
angular/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts_0_2183 | /*!
* @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, DOCUMENT, isPlatformBrowser, Location} from '@angular/common';
import {
ApplicationRef,
Ch... | {
"end_byte": 2183,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts"
} |
angular/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts_2184_11326 | lass DocViewer implements OnChanges {
@Input() docContent?: string;
@Input() hasToc = false;
@Output() contentLoaded = new EventEmitter<void>();
private readonly destroyRef = inject(DestroyRef);
private readonly document = inject(DOCUMENT);
private readonly elementRef = inject(ElementRef);
private readon... | {
"end_byte": 11326,
"start_byte": 2184,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts"
} |
angular/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts_11330_12844 | rivate setupAnchorListeners(element: HTMLElement): void {
element.querySelectorAll(`a[href]`).forEach((anchor) => {
// Get the target element's ID from the href attribute
const url = new URL((anchor as HTMLAnchorElement).href);
const isExternalLink = url.origin !== this.document.location.origin;
... | {
"end_byte": 12844,
"start_byte": 11330,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts"
} |
angular/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.scss_0_2413 | :host {
.docs-example-viewer-preview {
.docs-dark-mode & {
background: var(--gray-100);
}
@media screen and (prefers-color-scheme: dark) {
background: var(--gray-100);
}
.docs-light-mode & {
background: var(--page-background);
}
}
}
.docs-example-viewer {
border: 1px sol... | {
"end_byte": 2413,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.scss"
} |
angular/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.html_0_3594 | <div class="docs-example-viewer" role="group">
<header class="docs-example-viewer-actions">
@if (view() === CodeExampleViewMode.SNIPPET) {
<span>{{ exampleMetadata()?.title }}</span>
}
@if (view() === CodeExampleViewMode.MULTI_FILE) {
<mat-tab-group
#codeTabs
animationDuration... | {
"end_byte": 3594,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.html"
} |
angular/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.html_3598_6761 | <ng-template #openCodeInExternalProvider>
@if (exampleComponent) {
@if (githubUrl) {
<a
[href]="githubUrl"
target="_blank"
title="Open example on GitHub"
class="docs-example-github-link"
aria-label="Open example on GitHub"
>
<i aria-h... | {
"end_byte": 6761,
"start_byte": 3598,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.html"
} |
angular/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.ts_0_7716 | /*!
* @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 {
ChangeDetectionStrategy,
Component,
DestroyRef,
Input,
Type,
computed,
inject,
ChangeDetect... | {
"end_byte": 7716,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.ts"
} |
angular/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.spec.ts_0_8758 | /*!
* @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 {ComponentFixture, TestBed, waitForAsync} from '@angular/core/testing';
import {ExampleViewer} from './exampl... | {
"end_byte": 8758,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/viewers/example-viewer/example-viewer.component.spec.ts"
} |
angular/adev/shared-docs/components/top-level-banner/top-level-banner.component.spec.ts_0_3501 | import {ComponentFixture, TestBed} from '@angular/core/testing';
import {STORAGE_KEY_PREFIX, TopLevelBannerComponent} from './top-level-banner.component';
import {LOCAL_STORAGE, WINDOW} from '../../providers';
describe('TopLevelBannerComponent', () => {
let component: TopLevelBannerComponent;
let fixture: Compone... | {
"end_byte": 3501,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/top-level-banner/top-level-banner.component.spec.ts"
} |
angular/adev/shared-docs/components/top-level-banner/top-level-banner.component.ts_0_2421 | import {ChangeDetectionStrategy, Component, inject, input, OnInit, signal} from '@angular/core';
import {ExternalLink} from '../../directives';
import {LOCAL_STORAGE} from '../../providers';
import {IconComponent} from '../icon/icon.component';
export const STORAGE_KEY_PREFIX = 'docs-was-closed-top-banner-';
@Compone... | {
"end_byte": 2421,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/top-level-banner/top-level-banner.component.ts"
} |
angular/adev/shared-docs/components/top-level-banner/top-level-banner.component.html_0_667 | @if (!hasClosed()) {
@if (link()) {
<a [href]="link()" class="docs-top-level-banner">
<h1 tabindex="-1" class="docs-top-level-banner-cta background">{{ text() }}</h1>
<h1 tabindex="0" class="docs-top-level-banner-cta shimmer">{{ text() }}</h1>
</a>
} @else {
<div class="docs-top-level-banner... | {
"end_byte": 667,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/top-level-banner/top-level-banner.component.html"
} |
angular/adev/shared-docs/components/top-level-banner/top-level-banner.component.scss_0_2883 | :host {
&:not(:empty) {
z-index: 50;
position: fixed;
height: 2rem;
width: 100vw;
border-bottom: 1px solid var(--septenary-contrast);
text-align: center;
align-content: center;
backdrop-filter: blur(16px);
background-color: color-mix(in srgb, var(--page-background) 70%, transparent... | {
"end_byte": 2883,
"start_byte": 0,
"url": "https://github.com/angular/angular/blob/main/adev/shared-docs/components/top-level-banner/top-level-banner.component.scss"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.