@ids-group-ltd/ids-design-system 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +261 -3
- package/agent/INDEX.md +12 -2
- package/agent/feedback/ds-attachment.md +12 -0
- package/agent/feedback/ds-chat-attachment.md +10 -0
- package/agent/feedback/ds-chat-message.md +11 -0
- package/agent/feedback/ds-chat-step.md +10 -0
- package/agent/feedback/ds-chat-steps.md +10 -0
- package/agent/feedback/ds-chat-thread.md +11 -0
- package/agent/feedback/ds-timeline-item.md +3 -1
- package/agent/feedback/ds-timeline.md +9 -0
- package/agent/feedback/ds-toast.md +1 -1
- package/agent/feedback/ds-tree.md +3 -1
- package/agent/forms/ds-chat-input.md +16 -0
- package/agent/forms/ds-inline-edit.md +14 -0
- package/agent/foundations/tokens.md +3 -3
- package/agent/navigation/ds-splitter.md +14 -0
- package/agent/platform/toast-service.md +3 -2
- package/agent/tables/ds-table.md +1 -1
- package/components.md +107 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +7 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +858 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs +107 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs +359 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-splitter.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +74 -17
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +163 -20
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +146 -24
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +54 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +4 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/1.0.2.json +28 -0
- package/migrations/1.0.3.json +15 -0
- package/migrations/1.1.0.json +183 -0
- package/package.json +25 -1
- package/schematics/check-overrides/surface.json +181 -5
- package/styles/_dropdown-overlay.scss +6 -4
- package/styles/_step-marker.scss +51 -0
- package/styles/_tokens.scss +5 -3
- package/themes/README.md +2 -1
- package/themes/_semantic.scss +10 -0
- package/themes/dark/_palette.scss +1 -2
- package/themes/dark/_theme.scss +24 -3
- package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +340 -0
- package/types/ids-group-ltd-ids-design-system-components-inline-edit.d.ts +43 -0
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-splitter.d.ts +83 -0
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +34 -5
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +53 -4
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +51 -7
- package/types/ids-group-ltd-ids-design-system-core.d.ts +104 -0
- package/types/ids-group-ltd-ids-design-system.d.ts +6 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids-group-ltd-ids-design-system-components-menu.mjs","sources":["../../../src/lib/components/menu/menu-aim.ts","../../../src/lib/components/menu/menu-item.component.ts","../../../src/lib/components/menu/menu-item.component.html","../../../src/lib/components/menu/menu.component.ts","../../../src/lib/components/menu/menu.component.html","../../../src/lib/components/menu/menu-divider.component.ts","../../../src/lib/components/menu/ids-group-ltd-ids-design-system-components-menu.ts"],"sourcesContent":["export interface AimPoint {\n x: number;\n y: number;\n}\n\nexport type AimTriangle = readonly [AimPoint, AimPoint, AimPoint];\n\ninterface PanelEdges {\n left: number;\n right: number;\n top: number;\n bottom: number;\n}\n\n// The apex sits behind the exit point, so the exit point itself lies inside the triangle.\nconst APEX_SLACK = 4;\n// A pointer resting this long inside the triangle has stopped heading for the submenu.\nconst REST_MS = 300;\n\n/** The triangle from where the pointer left the item to the submenu's near edge. */\nexport function aimTriangle(exit: AimPoint, panel: PanelEdges): AimTriangle {\n const towardsRight = panel.left >= exit.x;\n const nearX = towardsRight ? panel.left : panel.right;\n const apexX = towardsRight ? exit.x - APEX_SLACK : exit.x + APEX_SLACK;\n\n return [\n { x: apexX, y: exit.y },\n { x: nearX, y: panel.top },\n { x: nearX, y: panel.bottom },\n ];\n}\n\n/** Whether `point` is inside `triangle` or on its edge. */\nexport function isInsideTriangle(\n point: AimPoint,\n triangle: AimTriangle,\n): boolean {\n const [apex, edgeTop, edgeBottom] = triangle;\n const side = (from: AimPoint, to: AimPoint): number =>\n (to.x - from.x) * (point.y - from.y) - (to.y - from.y) * (point.x - from.x);\n const sides = [\n side(apex, edgeTop),\n side(edgeTop, edgeBottom),\n side(edgeBottom, apex),\n ];\n const hasNegative = sides.some((value) => value < 0);\n const hasPositive = sides.some((value) => value > 0);\n\n return !(hasNegative && hasPositive);\n}\n\nexport interface AimHoverTarget {\n activateHover(): void;\n}\n\n/**\n * One per `ds-menu` level. While the pointer travels from an item towards its open submenu,\n * the items it crosses on the way do not take the hover; the submenu closes once the pointer\n * leaves the triangle or rests in it.\n */\nexport class MenuAim {\n private triangle: AimTriangle | null = null;\n private release: (() => void) | null = null;\n private heldHover: AimHoverTarget | null = null;\n private restTimer: ReturnType<typeof setTimeout> | null = null;\n\n private readonly document: Document;\n\n constructor(document: Document) {\n this.document = document;\n }\n\n /** Starts holding the hover for an open submenu; `release` closes it when the aim ends. */\n start(triangle: AimTriangle, release: () => void): void {\n this.stop();\n this.triangle = triangle;\n this.release = release;\n this.document.addEventListener('mousemove', this.onMove);\n this.armRestTimer();\n }\n\n /** The pointer reached the submenu, or its owner went away: stop without releasing. */\n stop(): void {\n this.document.removeEventListener('mousemove', this.onMove);\n this.clearRestTimer();\n this.triangle = null;\n this.release = null;\n }\n\n /** Whether the item may take the hover now; a held item gets it when the aim ends. */\n requestHover(target: AimHoverTarget): boolean {\n if (this.triangle === null) {\n return true;\n }\n this.heldHover = target;\n\n return false;\n }\n\n dropHover(target: AimHoverTarget): void {\n if (this.heldHover === target) {\n this.heldHover = null;\n }\n }\n\n private readonly onMove = (event: MouseEvent): void => {\n if (\n this.triangle &&\n isInsideTriangle({ x: event.clientX, y: event.clientY }, this.triangle)\n ) {\n this.armRestTimer();\n\n return;\n }\n this.end();\n };\n\n private end(): void {\n const release = this.release;\n const held = this.heldHover;\n this.stop();\n this.heldHover = null;\n release?.();\n held?.activateHover();\n }\n\n private armRestTimer(): void {\n this.clearRestTimer();\n this.restTimer = setTimeout(() => this.end(), REST_MS);\n }\n\n private clearRestTimer(): void {\n if (this.restTimer !== null) {\n clearTimeout(this.restTimer);\n this.restTimer = null;\n }\n }\n}\n","import {\n Component,\n ElementRef,\n Injector,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';\nimport {\n closeOnScroll,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { AimHoverTarget, MenuAim, aimTriangle } from './menu-aim';\n\n@Component({\n selector: 'ds-menu-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './menu-item.component.html',\n styleUrl: './menu-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // Presentational: the host sits between the role=\"menu\" <ul> and the role=\"menuitem\" button.\n host: { role: 'none' },\n})\nexport class MenuItemComponent implements OnDestroy, AimHoverTarget {\n // Optional so menu-items work standalone; selecting an item closes the containing overlay.\n private readonly closeRef = inject(DsOverlayCloseRef, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly injector = inject(Injector);\n private readonly hostElement = inject(ElementRef<HTMLElement>);\n private readonly aim =\n inject(MenuAim, { optional: true }) ?? new MenuAim(inject(DOCUMENT));\n private readonly button =\n viewChild.required<ElementRef<HTMLButtonElement>>('button');\n\n /** Leading icon shown before the projected label. */\n readonly icon = input<IconName | null>(null);\n /** Blocks activation and styles the item as inactive. It stays focusable\n * (`aria-disabled`) and in the roving order, so a `[dsTooltip]` can explain why. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Renders the item in an error/destructive style. */\n readonly error = input(false, { transform: booleanAttribute });\n /** Renders the item muted but still actionable. */\n readonly quiet = input(false, { transform: booleanAttribute });\n /** A standing second line under the label naming a limitation the action carries\n * (\"will not be saved\"). Visible without hover or focus, unlike a `[dsTooltip]`.\n *\n * Reaches assistive tech as `aria-describedby`, NOT as part of the item's name:\n * the line is `aria-hidden` and referenced by id, else it would be concatenated\n * into the name. */\n readonly description = input<string>('');\n /** Optional submenu template; renders a nested `ds-menu` on hover / ArrowRight. */\n readonly submenu = input<TemplateRef<unknown> | null>(null);\n /** Fires on click, unless the item is disabled or opens a submenu. */\n readonly pressed = output<MouseEvent>();\n\n protected readonly descriptionId = nextControlId('ds-menu-item-desc');\n\n /** Roving tabindex, owned by ds-menu: one item is tabbable, the rest -1. Defaults true for a standalone item. */\n readonly tabbable = signal(true);\n readonly submenuOpen = signal(false);\n\n private submenuRef: OverlayRef | null = null;\n private openTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** Move keyboard focus to this item's control. */\n focus(): void {\n this.button().nativeElement.focus();\n }\n\n /** Whether `node` lives inside this item's control. */\n contains(node: Node | null): boolean {\n return !!node && this.button().nativeElement.contains(node);\n }\n\n /** Visible label text, used by ds-menu's type-ahead. */\n label(): string {\n return this.button().nativeElement.textContent?.trim() ?? '';\n }\n\n protected hasSubmenu(): boolean {\n return this.submenu() !== null;\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n if (this.hasSubmenu()) {\n this.openSubmenu();\n // detail 0: Enter or Space, which APG has land on the submenu's first item.\n if (event.detail === 0) {\n this.focusSubmenu();\n }\n\n return;\n }\n this.pressed.emit(event);\n this.closeRef?.close();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.disabled() || !this.hasSubmenu()) {\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n event.stopPropagation();\n this.openSubmenu();\n this.focusSubmenu();\n }\n }\n\n protected onMouseEnter(): void {\n if (!this.hasSubmenu() || this.disabled() || !this.aim.requestHover(this)) {\n return;\n }\n this.activateHover();\n }\n\n /** Opens the submenu after the hover delay; called directly or once a sibling's aim ends. */\n activateHover(): void {\n this.clearOpenTimer();\n this.openTimer = setTimeout(() => this.openSubmenu(), 120);\n }\n\n protected onMouseLeave(event: MouseEvent): void {\n if (!this.hasSubmenu()) {\n return;\n }\n this.clearOpenTimer();\n this.aim.dropHover(this);\n const panel = this.submenuRef?.overlayElement;\n if (!panel || panel.contains(event.relatedTarget as Node | null)) {\n return;\n }\n this.aim.start(\n aimTriangle(\n { x: event.clientX, y: event.clientY },\n panel.getBoundingClientRect(),\n ),\n () => this.closeSubmenu(),\n );\n }\n\n openSubmenu(): void {\n if (this.disabled() || this.submenuRef || !this.submenu()) {\n return;\n }\n const trigger = this.hostElement.nativeElement;\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(trigger)\n .withPositions([\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: 2,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -2,\n },\n ]);\n\n this.submenuRef = this.overlay.create({\n positionStrategy,\n hasBackdrop: false,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n });\n prepareOverlayEnter(\n this.submenuRef,\n this.hostElement.nativeElement,\n positionStrategy,\n );\n\n this.submenuRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.closeSubmenu();\n this.focus();\n }\n });\n\n this.submenuRef.outsidePointerEvents().subscribe(() => this.closeSubmenu());\n const stopScrollClose = closeOnScroll(this.submenuRef, () =>\n this.closeSubmenu(),\n );\n this.submenuRef.detachments().subscribe(stopScrollClose);\n\n // A submenu item's select or Tab closes this submenu first, then the overlay holding this item.\n const submenuCloseRef: DsOverlayCloseRef = {\n close: () => {\n this.closeSubmenu();\n this.focus();\n this.closeRef?.close();\n },\n };\n this.submenuRef.attach(\n new TemplatePortal(\n this.submenu()!,\n this.vcr,\n undefined,\n Injector.create({\n providers: [\n { provide: DsOverlayCloseRef, useValue: submenuCloseRef },\n ],\n parent: this.injector,\n }),\n ),\n );\n\n this.submenuRef.overlayElement.addEventListener('mouseenter', () =>\n this.aim.stop(),\n );\n this.submenuRef.overlayElement.addEventListener('mouseleave', (event) => {\n if (\n !this.hostElement.nativeElement.contains(\n event.relatedTarget as Node | null,\n )\n ) {\n this.closeSubmenu();\n }\n });\n\n this.submenuOpen.set(true);\n }\n\n closeSubmenu(): void {\n this.submenuRef?.dispose();\n this.submenuRef = null;\n this.submenuOpen.set(false);\n }\n\n ngOnDestroy(): void {\n if (this.submenuRef) {\n this.aim.stop();\n }\n this.submenuRef?.dispose();\n this.clearOpenTimer();\n this.aim.dropHover(this);\n }\n\n private focusSubmenu(): void {\n this.submenuRef?.overlayElement\n .querySelector<HTMLElement>('[role=\"menuitem\"]')\n ?.focus();\n }\n\n private clearOpenTimer(): void {\n if (this.openTimer !== null) {\n clearTimeout(this.openTimer);\n this.openTimer = null;\n }\n }\n}\n","<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\">\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\">\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\">\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\" />\n }\n</button>\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n contentChildren,\n effect,\n inject,\n signal,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { MenuItemComponent } from './menu-item.component';\nimport { MenuAim } from './menu-aim';\nimport { isTextEntryTarget } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';\n\n@Component({\n selector: 'ds-menu',\n standalone: true,\n templateUrl: './menu.component.html',\n styleUrl: './menu.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n { provide: MenuAim, useFactory: () => new MenuAim(inject(DOCUMENT)) },\n ],\n // data-focus=\"inset\": the panel clips, so an outward ring is lost.\n host: {\n '(keydown)': 'onKeydown($event)',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n 'data-focus': 'inset',\n '[class.has-icons]': 'anyIcon()',\n },\n})\nexport class MenuComponent {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly closeRef = inject(DsOverlayCloseRef, { optional: true });\n private readonly items = contentChildren(MenuItemComponent);\n\n /** One item with an icon makes every item reserve the slot, so the labels share one axis. */\n protected readonly anyIcon = computed(() =>\n this.items().some((item) => item.icon() !== null),\n );\n /** Index of the roving-focus item, the single one reachable via Tab. */\n private readonly activeIndex = signal(0);\n\n constructor() {\n // Disabled items stay in the roving order (APG) so their tooltip is reachable.\n effect(() => {\n const items = this.items();\n if (!items.length) {\n return;\n }\n let index = this.activeIndex();\n if (index >= items.length) {\n index = 0;\n }\n items.forEach((item, i) => item.tabbable.set(i === index));\n });\n }\n\n protected onFocusIn(event: FocusEvent): void {\n const index = this.items().findIndex((item) =>\n item.contains(event.target as Node | null),\n );\n if (index >= 0) {\n this.activeIndex.set(index);\n }\n }\n\n // APG: a menu always opens at its first item, so the roving stop goes back there once focus leaves.\n protected onFocusOut(event: FocusEvent): void {\n if (!this.host.nativeElement.contains(event.relatedTarget as Node | null)) {\n this.activeIndex.set(0);\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const items = this.items();\n // A projected search field owns its typing; type-ahead would eat it.\n if (!items.length || isTextEntryTarget(event)) {\n return;\n }\n const count = items.length;\n const focused = items.findIndex((item) =>\n item.contains(event.target as Node | null),\n );\n // Not prevented: the overlay hands focus back to its trigger, and Tab moves on from there (APG).\n if (event.key === 'Tab' && focused >= 0) {\n this.closeRef?.close();\n\n return;\n }\n const from = focused >= 0 ? focused : this.activeIndex();\n\n if (\n event.key.length === 1 &&\n /\\S/.test(event.key) &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n ) {\n this.typeAhead(event.key, from, items);\n event.preventDefault();\n\n return;\n }\n\n let next: number;\n switch (event.key) {\n case 'ArrowDown':\n next = (from + 1) % count;\n break;\n case 'ArrowUp':\n next = (from - 1 + count) % count;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = count - 1;\n break;\n default:\n return;\n }\n event.preventDefault();\n this.focusItem(next);\n }\n\n private typeAhead(\n char: string,\n from: number,\n items: readonly MenuItemComponent[],\n ): void {\n const needle = char.toLowerCase();\n const count = items.length;\n for (let offset = 1; offset <= count; offset++) {\n const i = (from + offset) % count;\n const item = items[i];\n if (item.label().toLowerCase().startsWith(needle)) {\n this.focusItem(i);\n\n return;\n }\n }\n }\n\n private focusItem(index: number): void {\n this.activeIndex.set(index);\n this.items()[index].focus();\n }\n}\n","<ul\n class=\"menu\"\n role=\"menu\">\n <ng-content></ng-content>\n</ul>\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-menu-divider',\n standalone: true,\n template: '<hr class=\"divider\" aria-hidden=\"true\" />',\n styleUrl: './menu-divider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: { role: 'separator', 'aria-orientation': 'horizontal' },\n})\nexport class MenuDividerComponent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAcA;AACA,MAAM,UAAU,GAAG,CAAC;AACpB;AACA,MAAM,OAAO,GAAG,GAAG;AAEnB;AACM,SAAU,WAAW,CAAC,IAAc,EAAE,KAAiB,EAAA;IAC3D,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC;AACzC,IAAA,MAAM,KAAK,GAAG,YAAY,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK;AACrD,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CAAA,EAAA;;;ACR/D;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ids-group-ltd-ids-design-system-components-menu.mjs","sources":["../../../src/lib/components/menu/menu-aim.ts","../../../src/lib/components/menu/menu-item.component.ts","../../../src/lib/components/menu/menu-item.component.html","../../../src/lib/components/menu/menu.component.ts","../../../src/lib/components/menu/menu.component.html","../../../src/lib/components/menu/menu-divider.component.ts","../../../src/lib/components/menu/ids-group-ltd-ids-design-system-components-menu.ts"],"sourcesContent":["export interface AimPoint {\n x: number;\n y: number;\n}\n\nexport type AimTriangle = readonly [AimPoint, AimPoint, AimPoint];\n\ninterface PanelEdges {\n left: number;\n right: number;\n top: number;\n bottom: number;\n}\n\n// The apex sits behind the exit point, so the exit point itself lies inside the triangle.\nconst APEX_SLACK = 4;\n// A pointer resting this long inside the triangle has stopped heading for the submenu.\nconst REST_MS = 300;\n\n/** The triangle from where the pointer left the item to the submenu's near edge. */\nexport function aimTriangle(exit: AimPoint, panel: PanelEdges): AimTriangle {\n const towardsRight = panel.left >= exit.x;\n const nearX = towardsRight ? panel.left : panel.right;\n const apexX = towardsRight ? exit.x - APEX_SLACK : exit.x + APEX_SLACK;\n\n return [\n { x: apexX, y: exit.y },\n { x: nearX, y: panel.top },\n { x: nearX, y: panel.bottom },\n ];\n}\n\n/** Whether `point` is inside `triangle` or on its edge. */\nexport function isInsideTriangle(\n point: AimPoint,\n triangle: AimTriangle,\n): boolean {\n const [apex, edgeTop, edgeBottom] = triangle;\n const side = (from: AimPoint, to: AimPoint): number =>\n (to.x - from.x) * (point.y - from.y) - (to.y - from.y) * (point.x - from.x);\n const sides = [\n side(apex, edgeTop),\n side(edgeTop, edgeBottom),\n side(edgeBottom, apex),\n ];\n const hasNegative = sides.some((value) => value < 0);\n const hasPositive = sides.some((value) => value > 0);\n\n return !(hasNegative && hasPositive);\n}\n\nexport interface AimHoverTarget {\n activateHover(): void;\n}\n\n/**\n * One per `ds-menu` level. While the pointer travels from an item towards its open submenu,\n * the items it crosses on the way do not take the hover; the submenu closes once the pointer\n * leaves the triangle or rests in it.\n */\nexport class MenuAim {\n private triangle: AimTriangle | null = null;\n private release: (() => void) | null = null;\n private heldHover: AimHoverTarget | null = null;\n private restTimer: ReturnType<typeof setTimeout> | null = null;\n\n private readonly document: Document;\n\n constructor(document: Document) {\n this.document = document;\n }\n\n /** Starts holding the hover for an open submenu; `release` closes it when the aim ends. */\n start(triangle: AimTriangle, release: () => void): void {\n this.stop();\n this.triangle = triangle;\n this.release = release;\n this.document.addEventListener('mousemove', this.onMove);\n this.armRestTimer();\n }\n\n /** The pointer reached the submenu, or its owner went away: stop without releasing. */\n stop(): void {\n this.document.removeEventListener('mousemove', this.onMove);\n this.clearRestTimer();\n this.triangle = null;\n this.release = null;\n }\n\n /** Whether the item may take the hover now; a held item gets it when the aim ends. */\n requestHover(target: AimHoverTarget): boolean {\n if (this.triangle === null) {\n return true;\n }\n this.heldHover = target;\n\n return false;\n }\n\n dropHover(target: AimHoverTarget): void {\n if (this.heldHover === target) {\n this.heldHover = null;\n }\n }\n\n private readonly onMove = (event: MouseEvent): void => {\n if (\n this.triangle &&\n isInsideTriangle({ x: event.clientX, y: event.clientY }, this.triangle)\n ) {\n this.armRestTimer();\n\n return;\n }\n this.end();\n };\n\n private end(): void {\n const release = this.release;\n const held = this.heldHover;\n this.stop();\n this.heldHover = null;\n release?.();\n held?.activateHover();\n }\n\n private armRestTimer(): void {\n this.clearRestTimer();\n this.restTimer = setTimeout(() => this.end(), REST_MS);\n }\n\n private clearRestTimer(): void {\n if (this.restTimer !== null) {\n clearTimeout(this.restTimer);\n this.restTimer = null;\n }\n }\n}\n","import {\n Component,\n ElementRef,\n Injector,\n OnDestroy,\n TemplateRef,\n ViewContainerRef,\n ViewEncapsulation,\n booleanAttribute,\n inject,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { nextControlId } from '@ids-group-ltd/ids-design-system/components';\nimport type { IconName } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';\nimport {\n closeOnScroll,\n prepareOverlayEnter,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { AimHoverTarget, MenuAim, aimTriangle } from './menu-aim';\n\n@Component({\n selector: 'ds-menu-item',\n standalone: true,\n imports: [IconComponent],\n templateUrl: './menu-item.component.html',\n styleUrl: './menu-item.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n // Presentational: the host sits between the role=\"menu\" <ul> and the role=\"menuitem\" button.\n host: { role: 'none' },\n})\nexport class MenuItemComponent implements OnDestroy, AimHoverTarget {\n // Optional so menu-items work standalone; selecting an item closes the containing overlay.\n private readonly closeRef = inject(DsOverlayCloseRef, { optional: true });\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly injector = inject(Injector);\n private readonly hostElement = inject(ElementRef<HTMLElement>);\n private readonly aim =\n inject(MenuAim, { optional: true }) ?? new MenuAim(inject(DOCUMENT));\n private readonly button =\n viewChild.required<ElementRef<HTMLButtonElement>>('button');\n\n /** Leading icon shown before the projected label. */\n readonly icon = input<IconName | null>(null);\n /** Blocks activation and styles the item as inactive. It stays focusable\n * (`aria-disabled`) and in the roving order, so a `[dsTooltip]` can explain why. */\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Renders the item in an error/destructive style. */\n readonly error = input(false, { transform: booleanAttribute });\n /** Renders the item muted but still actionable. */\n readonly quiet = input(false, { transform: booleanAttribute });\n /** A standing second line under the label naming a limitation the action carries\n * (\"will not be saved\"). Visible without hover or focus, unlike a `[dsTooltip]`.\n *\n * Reaches assistive tech as `aria-describedby`, NOT as part of the item's name:\n * the line is `aria-hidden` and referenced by id, else it would be concatenated\n * into the name. */\n readonly description = input<string>('');\n /** Optional submenu template; renders a nested `ds-menu` on hover / ArrowRight. */\n readonly submenu = input<TemplateRef<unknown> | null>(null);\n /** Fires on click, unless the item is disabled or opens a submenu. */\n readonly pressed = output<MouseEvent>();\n\n protected readonly descriptionId = nextControlId('ds-menu-item-desc');\n\n /** Roving tabindex, owned by ds-menu: one item is tabbable, the rest -1. Defaults true for a standalone item. */\n readonly tabbable = signal(true);\n readonly submenuOpen = signal(false);\n\n private submenuRef: OverlayRef | null = null;\n private openTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** Move keyboard focus to this item's control. */\n focus(): void {\n this.button().nativeElement.focus();\n }\n\n /** Whether `node` lives inside this item's control. */\n contains(node: Node | null): boolean {\n return !!node && this.button().nativeElement.contains(node);\n }\n\n /** Visible label text, used by ds-menu's type-ahead. */\n label(): string {\n return this.button().nativeElement.textContent?.trim() ?? '';\n }\n\n protected hasSubmenu(): boolean {\n return this.submenu() !== null;\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n return;\n }\n if (this.hasSubmenu()) {\n this.openSubmenu();\n // detail 0: Enter or Space, which APG has land on the submenu's first item.\n if (event.detail === 0) {\n this.focusSubmenu();\n }\n\n return;\n }\n this.pressed.emit(event);\n this.closeRef?.close();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (this.disabled() || !this.hasSubmenu()) {\n return;\n }\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n event.stopPropagation();\n this.openSubmenu();\n this.focusSubmenu();\n }\n }\n\n protected onMouseEnter(): void {\n if (!this.hasSubmenu() || this.disabled() || !this.aim.requestHover(this)) {\n return;\n }\n this.activateHover();\n }\n\n /** Opens the submenu after the hover delay; called directly or once a sibling's aim ends. */\n activateHover(): void {\n this.clearOpenTimer();\n this.openTimer = setTimeout(() => this.openSubmenu(), 120);\n }\n\n protected onMouseLeave(event: MouseEvent): void {\n if (!this.hasSubmenu()) {\n return;\n }\n this.clearOpenTimer();\n this.aim.dropHover(this);\n const panel = this.submenuRef?.overlayElement;\n if (!panel || panel.contains(event.relatedTarget as Node | null)) {\n return;\n }\n this.aim.start(\n aimTriangle(\n { x: event.clientX, y: event.clientY },\n panel.getBoundingClientRect(),\n ),\n () => this.closeSubmenu(),\n );\n }\n\n openSubmenu(): void {\n if (this.disabled() || this.submenuRef || !this.submenu()) {\n return;\n }\n const trigger = this.hostElement.nativeElement;\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(trigger)\n .withPositions([\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n offsetX: 2,\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n offsetX: -2,\n },\n ]);\n\n this.submenuRef = this.overlay.create({\n positionStrategy,\n hasBackdrop: false,\n panelClass: 'ds-overlay-pane',\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n });\n prepareOverlayEnter(\n this.submenuRef,\n this.hostElement.nativeElement,\n positionStrategy,\n );\n\n this.submenuRef.keydownEvents().subscribe((event) => {\n if (event.key === 'Escape' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.closeSubmenu();\n this.focus();\n }\n });\n\n this.submenuRef.outsidePointerEvents().subscribe(() => this.closeSubmenu());\n const stopScrollClose = closeOnScroll(this.submenuRef, () =>\n this.closeSubmenu(),\n );\n this.submenuRef.detachments().subscribe(stopScrollClose);\n\n // A submenu item's select or Tab closes this submenu first, then the overlay holding this item.\n const submenuCloseRef: DsOverlayCloseRef = {\n close: () => {\n this.closeSubmenu();\n this.focus();\n this.closeRef?.close();\n },\n };\n this.submenuRef.attach(\n new TemplatePortal(\n this.submenu()!,\n this.vcr,\n undefined,\n Injector.create({\n providers: [\n { provide: DsOverlayCloseRef, useValue: submenuCloseRef },\n ],\n parent: this.injector,\n }),\n ),\n );\n\n this.submenuRef.overlayElement.addEventListener('mouseenter', () =>\n this.aim.stop(),\n );\n this.submenuRef.overlayElement.addEventListener('mouseleave', (event) => {\n if (\n !this.hostElement.nativeElement.contains(\n event.relatedTarget as Node | null,\n )\n ) {\n this.closeSubmenu();\n }\n });\n\n this.submenuOpen.set(true);\n }\n\n closeSubmenu(): void {\n this.submenuRef?.dispose();\n this.submenuRef = null;\n this.submenuOpen.set(false);\n }\n\n ngOnDestroy(): void {\n if (this.submenuRef) {\n this.aim.stop();\n }\n this.submenuRef?.dispose();\n this.clearOpenTimer();\n this.aim.dropHover(this);\n }\n\n private focusSubmenu(): void {\n this.submenuRef?.overlayElement\n .querySelector<HTMLElement>('[role=\"menuitem\"]')\n ?.focus();\n }\n\n private clearOpenTimer(): void {\n if (this.openTimer !== null) {\n clearTimeout(this.openTimer);\n this.openTimer = null;\n }\n }\n}\n","<button\n #button\n class=\"menu-item\"\n type=\"button\"\n role=\"menuitem\"\n [attr.tabindex]=\"tabbable() ? 0 : -1\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n [class.disabled]=\"disabled()\"\n [class.error]=\"error()\"\n [class.quiet]=\"quiet()\"\n [class.has-submenu]=\"hasSubmenu()\"\n [attr.aria-haspopup]=\"hasSubmenu() ? 'menu' : null\"\n [attr.aria-expanded]=\"hasSubmenu() ? submenuOpen() : null\"\n [attr.aria-describedby]=\"description() ? descriptionId : null\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave($event)\">\n @if (icon()) {\n <ds-icon\n [name]=\"icon()!\"\n [size]=\"16\">\n </ds-icon>\n } @else {\n <span class=\"menu-item-icon\">\n <ng-content select=\"[icon]\"></ng-content>\n </span>\n }\n\n <span class=\"menu-item-body\">\n <ng-content></ng-content>\n\n @if (description()) {\n <span\n class=\"menu-item-description\"\n aria-hidden=\"true\"\n [id]=\"descriptionId\">\n {{ description() }}\n </span>\n }\n </span>\n\n @if (hasSubmenu()) {\n <ds-icon\n class=\"submenu-chevron\"\n name=\"chevronRight\"\n [size]=\"14\" />\n }\n</button>\n","import {\n Component,\n ElementRef,\n ViewEncapsulation,\n computed,\n contentChildren,\n effect,\n inject,\n signal,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { MenuItemComponent } from './menu-item.component';\nimport { MenuAim } from './menu-aim';\nimport { isTextEntryTarget } from '@ids-group-ltd/ids-design-system/core';\nimport { DsOverlayCloseRef } from '@ids-group-ltd/ids-design-system/overlay';\n\n@Component({\n selector: 'ds-menu',\n standalone: true,\n templateUrl: './menu.component.html',\n styleUrl: './menu.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n providers: [\n { provide: MenuAim, useFactory: () => new MenuAim(inject(DOCUMENT)) },\n ],\n // data-focus=\"inset\": the panel clips, so an outward ring is lost.\n host: {\n '(keydown)': 'onKeydown($event)',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n 'data-focus': 'inset',\n '[class.has-icons]': 'anyIcon()',\n },\n})\nexport class MenuComponent {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly closeRef = inject(DsOverlayCloseRef, { optional: true });\n private readonly items = contentChildren(MenuItemComponent);\n\n /** One item with an icon makes every item reserve the slot, so the labels share one axis. */\n protected readonly anyIcon = computed(() =>\n this.items().some((item) => item.icon() !== null),\n );\n /** Index of the roving-focus item, the single one reachable via Tab. */\n private readonly activeIndex = signal(0);\n\n constructor() {\n // Disabled items stay in the roving order (APG) so their tooltip is reachable.\n effect(() => {\n const items = this.items();\n if (!items.length) {\n return;\n }\n let index = this.activeIndex();\n if (index >= items.length) {\n index = 0;\n }\n items.forEach((item, i) => item.tabbable.set(i === index));\n });\n }\n\n protected onFocusIn(event: FocusEvent): void {\n const index = this.items().findIndex((item) =>\n item.contains(event.target as Node | null),\n );\n if (index >= 0) {\n this.activeIndex.set(index);\n }\n }\n\n // APG: a menu always opens at its first item, so the roving stop goes back there once focus leaves.\n protected onFocusOut(event: FocusEvent): void {\n if (!this.host.nativeElement.contains(event.relatedTarget as Node | null)) {\n this.activeIndex.set(0);\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const items = this.items();\n // A projected search field owns its typing; type-ahead would eat it.\n if (!items.length || isTextEntryTarget(event)) {\n return;\n }\n const count = items.length;\n const focused = items.findIndex((item) =>\n item.contains(event.target as Node | null),\n );\n // Not prevented: the overlay hands focus back to its trigger, and Tab moves on from there (APG).\n if (event.key === 'Tab' && focused >= 0) {\n this.closeRef?.close();\n\n return;\n }\n const from = focused >= 0 ? focused : this.activeIndex();\n\n if (\n event.key.length === 1 &&\n /\\S/.test(event.key) &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n ) {\n this.typeAhead(event.key, from, items);\n event.preventDefault();\n\n return;\n }\n\n let next: number;\n switch (event.key) {\n case 'ArrowDown':\n next = (from + 1) % count;\n break;\n case 'ArrowUp':\n next = (from - 1 + count) % count;\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = count - 1;\n break;\n default:\n return;\n }\n event.preventDefault();\n this.focusItem(next);\n }\n\n private typeAhead(\n char: string,\n from: number,\n items: readonly MenuItemComponent[],\n ): void {\n const needle = char.toLowerCase();\n const count = items.length;\n for (let offset = 1; offset <= count; offset++) {\n const i = (from + offset) % count;\n const item = items[i];\n if (item.label().toLowerCase().startsWith(needle)) {\n this.focusItem(i);\n\n return;\n }\n }\n }\n\n private focusItem(index: number): void {\n this.activeIndex.set(index);\n this.items()[index].focus();\n }\n}\n","<ul\n class=\"menu\"\n role=\"menu\">\n <ng-content></ng-content>\n</ul>\n","import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ds-menu-divider',\n standalone: true,\n template: '<hr class=\"divider\" aria-hidden=\"true\" />',\n styleUrl: './menu-divider.component.scss',\n encapsulation: ViewEncapsulation.Emulated,\n host: { role: 'separator', 'aria-orientation': 'horizontal' },\n})\nexport class MenuDividerComponent {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAcA;AACA,MAAM,UAAU,GAAG,CAAC;AACpB;AACA,MAAM,O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A,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,cACf,IAAI,EAAA,QAAA,EACN,2CAA2C,EAAA,aAAA,EAEtC,iBAAiB,CAAC,QAAQ,EAAA,IAAA,EACnC,EAAE,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAE,YAAY,EAAE,EAAA,MAAA,EAAA,CAAA,27BAAA,CAAA,EAAA;;;ACR/D;;AAEG;;;;"}
|
|
@@ -144,11 +144,11 @@ class ModalCardComponent {
|
|
|
144
144
|
this.closed.emit();
|
|
145
145
|
}
|
|
146
146
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
147
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalCardComponent, isStandalone: true, selector: "ds-modal-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, dialogRole: { classPropertyName: "dialogRole", publicName: "dialogRole", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null" } }, viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "actionsRow", first: true, predicate: ["actions"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div\n #header\n class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.closeDialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
|
|
147
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalCardComponent, isStandalone: true, selector: "ds-modal-card", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, dialogRole: { classPropertyName: "dialogRole", publicName: "dialogRole", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, host: { properties: { "attr.title": "null" } }, viewQueries: [{ propertyName: "header", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "actionsRow", first: true, predicate: ["actions"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div\n #header\n class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.closeDialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--surface-secondary: var(--surface-overlay-secondary);--surface-muted: var(--surface-overlay-muted);--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }] });
|
|
148
148
|
}
|
|
149
149
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalCardComponent, decorators: [{
|
|
150
150
|
type: Component,
|
|
151
|
-
args: [{ selector: 'ds-modal-card', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div\n #header\n class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.closeDialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"] }]
|
|
151
|
+
args: [{ selector: 'ds-modal-card', standalone: true, imports: [IconComponent], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, template: "<div\n aria-modal=\"true\"\n [attr.role]=\"resolvedRole()\"\n [class]=\"classes()\"\n [attr.aria-labelledby]=\"titleId\">\n <div\n #header\n class=\"header\">\n @if (resolvedIcon(); as iconName) {\n <span [class]=\"status() ? 'icon-badge ' + status() : 'icon-badge'\">\n <ds-icon\n [name]=\"iconName\"\n [size]=\"20\" />\n </span>\n }\n\n <div class=\"heading\">\n <div class=\"eyebrow\">\n <ng-content select=\"[eyebrow]\"></ng-content>\n </div>\n\n <div class=\"title-line\">\n <h2\n class=\"title\"\n [id]=\"titleId\">\n {{ title() }}\n </h2>\n\n <ng-content select=\"[title-badge]\"></ng-content>\n </div>\n\n @if (subtitle()) {\n <p class=\"subtitle\">\n {{ subtitle() }}\n </p>\n }\n </div>\n\n @if (showClose()) {\n <button\n class=\"close\"\n type=\"button\"\n [attr.aria-label]=\"intl().dialog.closeDialog\"\n (click)=\"onClose()\">\n <ds-icon\n name=\"x\"\n [size]=\"16\">\n </ds-icon>\n </button>\n }\n </div>\n\n <div class=\"body\">\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n\n <div class=\"impact\">\n <ng-content select=\"[impact]\"></ng-content>\n </div>\n </div>\n\n <div\n #actions\n class=\"actions\">\n <ng-content select=\"[actions]\"></ng-content>\n </div>\n</div>\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--surface-secondary: var(--surface-overlay-secondary);--surface-muted: var(--surface-overlay-muted);--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"] }]
|
|
152
152
|
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], dividers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividers", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], dialogRole: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogRole", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], header: [{ type: i0.ViewChild, args: ['header', { isSignal: true }] }], actionsRow: [{ type: i0.ViewChild, args: ['actions', { isSignal: true }] }] } });
|
|
153
153
|
|
|
154
154
|
class ModalComponent {
|
|
@@ -257,11 +257,11 @@ class ModalComponent {
|
|
|
257
257
|
this.onClose();
|
|
258
258
|
}
|
|
259
259
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
260
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalComponent, isStandalone: true, selector: "ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, persistent: { classPropertyName: "persistent", publicName: "persistent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed", confirmed: "confirmed" }, host: { properties: { "attr.title": "null" } }, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"], dependencies: [{ kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
|
|
260
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: ModalComponent, isStandalone: true, selector: "ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, dividers: { classPropertyName: "dividers", publicName: "dividers", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, persistent: { classPropertyName: "persistent", publicName: "persistent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed", confirmed: "confirmed" }, host: { properties: { "attr.title": "null" } }, hostDirectives: [{ directive: i1.DsStaticPreview, inputs: ["staticPreview", "staticPreview"] }], ngImport: i0, template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--surface-secondary: var(--surface-overlay-secondary);--surface-muted: var(--surface-overlay-muted);--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"], dependencies: [{ kind: "component", type: ModalCardComponent, selector: "ds-modal-card", inputs: ["size", "status", "title", "subtitle", "showClose", "dividers", "icon", "dialogRole"], outputs: ["closed"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }] });
|
|
261
261
|
}
|
|
262
262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: ModalComponent, decorators: [{
|
|
263
263
|
type: Component,
|
|
264
|
-
args: [{ selector: 'ds-modal', standalone: true, imports: [ModalCardComponent, A11yModule], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"] }]
|
|
264
|
+
args: [{ selector: 'ds-modal', standalone: true, imports: [ModalCardComponent, A11yModule], host: { '[attr.title]': 'null' }, encapsulation: ViewEncapsulation.Emulated, hostDirectives: [{ directive: DsStaticPreview, inputs: ['staticPreview'] }], template: "@if (rendered() || preview.staticPreview()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- backdrop; keyboard dismissal is (keydown.escape) below, a backdrop isn't a tabbable control -->\n <div\n [class]=\"preview.staticPreview() ? 'modal-static' : 'modal-backdrop'\"\n [class.closing]=\"closing()\"\n (pointerdown)=\"backdropPress.down($event)\"\n (pointerup)=\"onBackdropRelease($event)\"\n (keydown.escape)=\"onEscape()\"\n (animationend)=\"onLeaveEnd($event)\">\n <ds-modal-card\n [cdkTrapFocus]=\"!preview.staticPreview()\"\n [cdkTrapFocusAutoCapture]=\"!preview.staticPreview()\"\n [size]=\"size()\"\n [status]=\"status()\"\n [title]=\"title()\"\n [subtitle]=\"subtitle()\"\n [dividers]=\"dividersResolved()\"\n (closed)=\"onClose()\">\n <ng-container eyebrow>\n <ng-content select=\"[eyebrow]\"></ng-content>\n </ng-container>\n\n <ng-container title-badge>\n <ng-content select=\"[title-badge]\"></ng-content>\n </ng-container>\n\n <ng-container body>\n <ng-content select=\"[body]\"></ng-content>\n\n <ng-content></ng-content>\n </ng-container>\n\n <ng-container impact>\n <ng-content select=\"[impact]\"></ng-content>\n </ng-container>\n\n <ng-container actions>\n <ng-content select=\"[actions]\"></ng-content>\n </ng-container>\n </ds-modal-card>\n </div>\n}\n", styles: [":where(:host){box-sizing:border-box;interpolate-size:allow-keywords}:where(*){box-sizing:border-box}:where(button,input,select,textarea){font-family:inherit}:where(h1,h2,h3,h4,h5,h6){margin:0}:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:where(:host(:focus-visible),:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}:host{--_modal-bg-color: var(--ds-modal-bg-color, var(--surface-overlay));--surface-secondary: var(--surface-overlay-secondary);--surface-muted: var(--surface-overlay-muted);--_modal-radius: var(--ds-modal-radius, var(--ds-radius-panel));--_modal-shadow: var(--ds-modal-shadow, var(--ds-elevation-modal));--_modal-divider: var(--ds-modal-divider, var(--border-divider));--_modal-title-text-color: var(--ds-modal-title-text-color, var(--text-primary));--_modal-title-text-color-error: var(--ds-modal-title-text-color-error, var(--error-text));--_modal-title-text-color-warning: var(--ds-modal-title-text-color-warning, var(--warning-text));--_modal-title-text-color-success: var(--ds-modal-title-text-color-success, var(--success-text));--_modal-title-text-color-info: var(--ds-modal-title-text-color-info, var(--info-text));--_modal-title-font-weight: var(--ds-modal-title-font-weight, var(--font-weight-bold));--_modal-title-font-size: var(--ds-modal-title-font-size, var(--font-size-h5));--_modal-title-font-family: var(--ds-modal-title-font-family, var(--font-heading));--_modal-subtitle-text-color: var(--ds-modal-subtitle-text-color, var(--text-secondary));--_modal-subtitle-font-size: var(--ds-modal-subtitle-font-size, var(--font-size-s));--_modal-eyebrow-text-color: var(--ds-modal-eyebrow-text-color, var(--text-tertiary));--_modal-eyebrow-font-size: var(--ds-modal-eyebrow-font-size, var(--font-size-xs));--_modal-eyebrow-font-weight: var(--ds-modal-eyebrow-font-weight, var(--font-weight-bold));--_modal-eyebrow-letter-spacing: var(--ds-modal-eyebrow-letter-spacing, var(--letter-spacing-wide));--_modal-eyebrow-text-transform: var(--ds-modal-eyebrow-text-transform, uppercase);--_modal-close-icon-color: var(--ds-modal-close-icon-color, var(--icon-default));--_modal-close-icon-color-hover: var(--ds-modal-close-icon-color-hover, var(--icon-strong));--_modal-icon-badge-bg-color: var(--ds-modal-icon-badge-bg-color, var(--accent-subtitle));--_modal-icon-badge-icon-color: var(--ds-modal-icon-badge-icon-color, var(--accent));--_modal-impact-text-color: var(--ds-modal-impact-text-color, var(--warning-text));--_modal-enter-keyframes: var(--ds-modal-enter-keyframes, ds-fade-in);--_modal-enter-duration: var(--ds-modal-enter-duration, var(--ds-motion-enter-surface-duration));--_modal-enter-easing: var(--ds-modal-enter-easing, var(--ds-motion-enter-surface-easing));--_modal-leave-duration: var(--ds-modal-leave-duration, var(--ds-motion-exit-duration));--_modal-leave-keyframes: var(--ds-modal-leave-keyframes, ds-fade-out);--_modal-leave-easing: var(--ds-modal-leave-easing, var(--ds-motion-exit-easing));--_modal-padding-x: var(--ds-modal-padding-x, var(--space-5));--_modal-header-padding-y: var(--ds-modal-header-padding-y, var(--space-4));--_modal-body-padding-y: var(--ds-modal-body-padding-y, var(--space-5));--_modal-actions-padding-y: var(--ds-modal-actions-padding-y, var(--space-4));--_modal-header-padding-top: var(--ds-modal-header-padding-top, var(--_modal-header-padding-y));--_modal-header-padding-bottom: var(--ds-modal-header-padding-bottom, var(--_modal-header-padding-y));--_modal-body-padding-top: var(--ds-modal-body-padding-top, var(--_modal-body-padding-y));--_modal-body-padding-bottom: var(--ds-modal-body-padding-bottom, var(--_modal-body-padding-y));--_modal-actions-padding-top: var(--ds-modal-actions-padding-top, var(--_modal-actions-padding-y));--_modal-actions-padding-bottom: var(--ds-modal-actions-padding-bottom, var(--_modal-actions-padding-y));--_modal-actions-stacked-direction: var(--ds-modal-actions-stacked-direction, column);--_ds-enter-scale: var(--ds-modal-enter-scale, .97);display:contents}@media(prefers-reduced-motion:reduce){:host{--_modal-enter-duration: 0ms;--_modal-leave-duration: 0ms}}.modal{background-color:var(--_modal-bg-color);border-radius:var(--_modal-radius);box-shadow:var(--_modal-shadow);display:flex;flex-direction:column;max-width:calc(100vw - var(--space-6));max-height:90vh;max-height:90dvh;overflow:hidden;animation-name:var(--_modal-enter-keyframes);animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal.sm{width:var(--modal-w-sm)}.modal.md{width:var(--modal-w-md)}.modal.lg{width:var(--modal-w-lg)}.modal.xl{width:var(--modal-w-xl)}.modal.fullscreen{width:var(--modal-w-fullscreen);height:var(--modal-h-fullscreen)}.modal .header{display:flex;align-items:center;gap:var(--space-3);justify-content:space-between;padding:var(--_modal-header-padding-top) var(--_modal-padding-x) var(--_modal-header-padding-bottom);border-bottom:var(--border-width-default) solid var(--_modal-divider)}.modal .icon-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-pill);background-color:var(--_modal-icon-badge-bg-color);color:var(--_modal-icon-badge-icon-color)}.modal .icon-badge.error{background-color:var(--error-subtitle);color:var(--error)}.modal .icon-badge.warning{background-color:var(--warning-subtitle);color:var(--warning)}.modal .icon-badge.success{background-color:var(--success-subtitle);color:var(--success)}.modal .icon-badge.info{background-color:var(--info-subtitle);color:var(--info)}.modal .heading{flex:1;min-width:0}.modal .eyebrow{font:var(--_modal-eyebrow-font-weight) var(--_modal-eyebrow-font-size)/var(--line-height-flat) var(--font-sans);letter-spacing:var(--_modal-eyebrow-letter-spacing);text-transform:var(--_modal-eyebrow-text-transform);color:var(--_modal-eyebrow-text-color);margin-bottom:var(--space-0-5)}.modal .eyebrow:empty{display:none}.modal .title-line{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;min-width:0}.modal .title{font:var(--_modal-title-font-weight) var(--_modal-title-font-size)/var(--line-height-snug) var(--_modal-title-font-family);margin:0;min-width:0;color:var(--_modal-title-text-color)}.modal .subtitle{font:var(--font-weight-regular) var(--_modal-subtitle-font-size)/var(--line-height-snug) var(--font-sans);color:var(--_modal-subtitle-text-color);margin:var(--space-0-5) 0 0}.modal .close{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-0-5);border:0;background:none;cursor:pointer}.modal .close:active:not(:disabled,[disabled],.is-disabled,.disabled,[aria-disabled=true]){filter:brightness(var(--ds-press-brightness, .9));transform:scale(var(--ds-press-scale, .97))}.modal .close{color:var(--_modal-close-icon-color);width:var(--modal-close-size);height:var(--modal-close-size)}.modal .close:hover{color:var(--_modal-close-icon-color-hover)}.modal .body{padding:var(--_modal-body-padding-top) var(--_modal-padding-x) var(--_modal-body-padding-bottom);overflow-y:auto}.modal .actions{display:flex;gap:var(--space-3);justify-content:flex-end;padding:var(--_modal-actions-padding-top) var(--_modal-padding-x) var(--_modal-actions-padding-bottom);border-top:var(--border-width-default) solid var(--_modal-divider)}.modal .actions:empty{display:none}.modal .actions.stacked{flex-direction:var(--_modal-actions-stacked-direction)}.modal .actions.stacked>::ng-deep *{width:100%}.modal .actions.stacked>::ng-deep div[actions]>*{width:100%}.modal.no-dividers{--_modal-body-padding-y: var(--ds-modal-body-padding-y, 0)}.modal.no-dividers .header{border-bottom-width:0}.modal.no-dividers .actions{border-top-width:0}.modal.error .title{color:var(--_modal-title-text-color-error)}.modal.warning .title{color:var(--_modal-title-text-color-warning)}.modal.success .title{color:var(--_modal-title-text-color-success)}.modal.info .title{color:var(--_modal-title-text-color-info)}.modal .impact{margin-top:var(--space-3)}.modal .impact:empty{display:none}.modal .impact .list{margin:var(--space-1) 0 0;padding-left:var(--space-4);font:var(--font-weight-regular) var(--font-size-xs)/var(--line-height-base) var(--font-sans);color:var(--_modal-impact-text-color)}:where(.actions)>::ng-deep :where(div[actions]){display:contents}.modal-static{display:contents}.modal-backdrop{--_modal-backdrop: var(--ds-modal-backdrop, var(--surface-scrim));position:fixed;inset:0;background:var(--_modal-backdrop);z-index:var(--layer-modal);display:grid;place-items:center;animation-name:ds-fade-in;animation-duration:var(--_modal-enter-duration);animation-timing-function:var(--_modal-enter-easing)}.modal-backdrop.closing{animation-name:var(--_modal-leave-keyframes);animation-duration:var(--_modal-leave-duration);animation-timing-function:var(--_modal-leave-easing);animation-fill-mode:forwards;pointer-events:none}\n"] }]
|
|
265
265
|
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }], confirmed: [{ type: i0.Output, args: ["confirmed"] }], dividers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividers", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], persistent: [{ type: i0.Input, args: [{ isSignal: true, alias: "persistent", required: false }] }] } });
|
|
266
266
|
|
|
267
267
|
/**
|