@raqm/ui 0.1.0 → 0.1.2

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 CHANGED
@@ -1,12 +1,29 @@
1
- # Changelog
2
-
3
- All notable changes to `@raqm/ui` are recorded here. The format follows
4
- [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project follows
5
- [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Before `1.0.0`, minor
6
- releases may include breaking changes.
7
-
8
- ## [0.1.0] - 2026-11-04
9
-
10
- ### Added
11
-
12
- - Initial public release of Raqm UI, an Angular UI library with its own design and API.
1
+ # Changelog
2
+
3
+ All notable changes to `@raqm/ui` are recorded here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project follows
5
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Before `1.0.0`, minor
6
+ releases may include breaking changes.
7
+
8
+ ## [0.1.2] - 2026-11-13
9
+
10
+ ### Removed
11
+
12
+ - Drop the unused `tslib` runtime dependency. The build removes it from the package
13
+ manifest unless emitted code starts importing it.
14
+
15
+ ## [0.1.1] - 2026-11-13
16
+
17
+ ### Fixed
18
+
19
+ - Align the default dialog close control with the title and content edge, and move
20
+ Dialog and Alert Dialog to a consistent spacing rhythm (24px surface and footer
21
+ padding for both, 12px title-to-description gap in Dialog) instead of relying on
22
+ user-agent heading margins. The command dialog keeps its close control on the search
23
+ row.
24
+
25
+ ## [0.1.0] - 2026-11-04
26
+
27
+ ### Added
28
+
29
+ - Initial public release of Raqm UI, an Angular UI library with its own design and API.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Raqm UI contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Raqm UI contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -4,7 +4,7 @@ UI components with Raqm's own design and APIs,
4
4
  implemented natively for Angular with the Angular CDK. Standalone components and
5
5
  directives, signal inputs and outputs, light/dark themes and first-class RTL.
6
6
 
7
- - **Status:** `0.1.0` — pre-1.0, the component API may still change in minor releases.
7
+ - **Status:** pre-1.0 — the component API may still change in minor releases.
8
8
  - **Angular:** 22.2 (peer dependency), Angular CDK 22.2, `@angular/forms` for the
9
9
  form controls.
10
10
  - **Styles:** plain CSS custom properties and SCSS. No Tailwind, no React, no runtime
@@ -114,8 +114,9 @@ shown above.
114
114
 
115
115
  ## Component guides
116
116
 
117
- - [Button](https://github.com/KeyLitDev/RaqmUI/blob/main/Raqm-UI-demo/src/app/pages/button/button.md)
118
- - [Button Group](https://github.com/KeyLitDev/RaqmUI/blob/main/Raqm-UI-demo/src/app/pages/button-group/button-group.md)
117
+ Every component page in the docs app pairs a Markdown guide with live examples and
118
+ copy-ready code. Browse all 55 pages under
119
+ [Raqm-UI-demo/src/app/pages](https://github.com/KeyLitDev/RaqmUI/tree/main/Raqm-UI-demo/src/app/pages).
119
120
 
120
121
  ## License
121
122
 
@@ -53,7 +53,7 @@ var RaqmAlertDialogComponent = class RaqmAlertDialogComponent extends RaqmDialog
53
53
  usesInheritance: true,
54
54
  ngImport: i0,
55
55
  template: "<ng-content />\r\n\r\n<!-- The CDK container, not this wrapper, is the role=dialog element. -->\r\n<ng-template #panel>\r\n <div\r\n class=\"raqm-dialog-content\"\r\n [class]=\"policy?.contentClass ?? ''\"\r\n [attr.data-raqm-small]=\"policy?.small?.() ? '' : null\"\r\n [attr.data-raqm-side]=\"policy?.side?.() ?? null\"\r\n [attr.dir]=\"panelDir()\"\r\n [class.raqm-dialog-content--entering]=\"entering()\"\r\n [class.raqm-dialog-content--closing]=\"closing()\"\r\n >\r\n <ng-container [ngTemplateOutlet]=\"contentTemplate()\" />\r\n\r\n <!-- showCloseButton=false hides only this control; Escape and backdrop dismissal still close. -->\r\n @if (closeButtonVisible()) {\r\n <button\r\n raqm-button=\"ghost\"\r\n icon-small\r\n class=\"raqm-dialog-close\"\r\n [attr.aria-label]=\"closeLabelText()\"\r\n (click)=\"onCloseButtonClick()\"\r\n >\r\n <svg\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n aria-hidden=\"true\"\r\n focusable=\"false\"\r\n >\r\n <path d=\"M18 6 6 18\" />\r\n <path d=\"m6 6 12 12\" />\r\n </svg>\r\n </button>\r\n }\r\n </div>\r\n</ng-template>\r\n",
56
- styles: [":host{display:contents}.raqm-dialog-content{position:relative;display:grid;gap:calc(var(--raqm-spacing) * 4);box-sizing:border-box;inline-size:calc(100vw - 2rem);inline-size:calc(100dvw - 2rem);max-inline-size:100%;max-block-size:calc(100vh - 2rem);max-block-size:calc(100dvh - 2rem);overflow:auto;padding:calc(var(--raqm-spacing) * 4);border-radius:var(--raqm-radius-xl);background-color:var(--raqm-popover);color:var(--raqm-popover-foreground);font-size:var(--raqm-font-size-sm);line-height:1.25rem;box-shadow:0 0 0 1px color-mix(in oklch,var(--raqm-foreground) 10%,transparent);outline:none}@media(min-width:40rem){.raqm-dialog-content{inline-size:24rem}}.raqm-dialog-content--entering{animation:raqm-dialog-in var(--raqm-duration-fast) var(--raqm-ease-out)}@keyframes raqm-dialog-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:none}}.raqm-dialog-content--closing{opacity:0;transform:scale(.95);transition:opacity var(--raqm-duration-fast) var(--raqm-ease-out),transform var(--raqm-duration-fast) var(--raqm-ease-out)}@media(prefers-reduced-motion:reduce){.raqm-dialog-content,.raqm-dialog-content--closing{animation:none;transition:none}}.raqm-dialog-close{position:absolute;top:calc(var(--raqm-spacing) * 2);inset-inline-end:calc(var(--raqm-spacing) * 2)}@media(forced-colors:active){.raqm-dialog-close{border-color:ButtonText}.raqm-dialog-content{border:1px solid CanvasText}}\n", ".raqm-alert-dialog-content{inline-size:100vw;inline-size:100dvw;max-inline-size:calc(var(--raqm-spacing) * 80);font-size:var(--raqm-font-size-base);line-height:var(--raqm-line-height-normal)}@media(min-width:40rem){.raqm-alert-dialog-content:not([data-raqm-small]){max-inline-size:calc(var(--raqm-spacing) * 96)}}\n"],
56
+ styles: [":host{display:contents}.raqm-dialog-content{position:relative;display:grid;gap:calc(var(--raqm-spacing) * 6);box-sizing:border-box;inline-size:calc(100vw - 2rem);inline-size:calc(100dvw - 2rem);max-inline-size:100%;max-block-size:calc(100vh - 2rem);max-block-size:calc(100dvh - 2rem);overflow:auto;padding:calc(var(--raqm-spacing) * 6);border-radius:var(--raqm-radius-xl);background-color:var(--raqm-popover);color:var(--raqm-popover-foreground);font-size:var(--raqm-font-size-sm);line-height:1.25rem;box-shadow:0 0 0 1px color-mix(in oklch,var(--raqm-foreground) 10%,transparent);outline:none}@media(min-width:40rem){.raqm-dialog-content{inline-size:24rem}}.raqm-dialog-content--entering{animation:raqm-dialog-in var(--raqm-duration-fast) var(--raqm-ease-out)}@keyframes raqm-dialog-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:none}}.raqm-dialog-content--closing{opacity:0;transform:scale(.95);transition:opacity var(--raqm-duration-fast) var(--raqm-ease-out),transform var(--raqm-duration-fast) var(--raqm-ease-out)}@media(prefers-reduced-motion:reduce){.raqm-dialog-content,.raqm-dialog-content--closing{animation:none;transition:none}}.raqm-dialog-close{position:absolute;inset-block-start:calc(var(--raqm-spacing) * 4.5);inset-inline-end:calc(var(--raqm-spacing) * 4.5)}@media(forced-colors:active){.raqm-dialog-close{border-color:ButtonText}.raqm-dialog-content{border:1px solid CanvasText}}\n", ".raqm-alert-dialog-content{inline-size:100vw;inline-size:100dvw;max-inline-size:calc(var(--raqm-spacing) * 80);font-size:var(--raqm-font-size-base);line-height:var(--raqm-line-height-normal)}@media(min-width:40rem){.raqm-alert-dialog-content:not([data-raqm-small]){max-inline-size:calc(var(--raqm-spacing) * 96)}}\n"],
57
57
  dependencies: [{
58
58
  kind: "directive",
59
59
  type: NgTemplateOutlet,
@@ -109,7 +109,7 @@ i0.ɵɵngDeclareClassMetadata({
109
109
  })
110
110
  }],
111
111
  template: "<ng-content />\r\n\r\n<!-- The CDK container, not this wrapper, is the role=dialog element. -->\r\n<ng-template #panel>\r\n <div\r\n class=\"raqm-dialog-content\"\r\n [class]=\"policy?.contentClass ?? ''\"\r\n [attr.data-raqm-small]=\"policy?.small?.() ? '' : null\"\r\n [attr.data-raqm-side]=\"policy?.side?.() ?? null\"\r\n [attr.dir]=\"panelDir()\"\r\n [class.raqm-dialog-content--entering]=\"entering()\"\r\n [class.raqm-dialog-content--closing]=\"closing()\"\r\n >\r\n <ng-container [ngTemplateOutlet]=\"contentTemplate()\" />\r\n\r\n <!-- showCloseButton=false hides only this control; Escape and backdrop dismissal still close. -->\r\n @if (closeButtonVisible()) {\r\n <button\r\n raqm-button=\"ghost\"\r\n icon-small\r\n class=\"raqm-dialog-close\"\r\n [attr.aria-label]=\"closeLabelText()\"\r\n (click)=\"onCloseButtonClick()\"\r\n >\r\n <svg\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n aria-hidden=\"true\"\r\n focusable=\"false\"\r\n >\r\n <path d=\"M18 6 6 18\" />\r\n <path d=\"m6 6 12 12\" />\r\n </svg>\r\n </button>\r\n }\r\n </div>\r\n</ng-template>\r\n",
112
- styles: [":host{display:contents}.raqm-dialog-content{position:relative;display:grid;gap:calc(var(--raqm-spacing) * 4);box-sizing:border-box;inline-size:calc(100vw - 2rem);inline-size:calc(100dvw - 2rem);max-inline-size:100%;max-block-size:calc(100vh - 2rem);max-block-size:calc(100dvh - 2rem);overflow:auto;padding:calc(var(--raqm-spacing) * 4);border-radius:var(--raqm-radius-xl);background-color:var(--raqm-popover);color:var(--raqm-popover-foreground);font-size:var(--raqm-font-size-sm);line-height:1.25rem;box-shadow:0 0 0 1px color-mix(in oklch,var(--raqm-foreground) 10%,transparent);outline:none}@media(min-width:40rem){.raqm-dialog-content{inline-size:24rem}}.raqm-dialog-content--entering{animation:raqm-dialog-in var(--raqm-duration-fast) var(--raqm-ease-out)}@keyframes raqm-dialog-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:none}}.raqm-dialog-content--closing{opacity:0;transform:scale(.95);transition:opacity var(--raqm-duration-fast) var(--raqm-ease-out),transform var(--raqm-duration-fast) var(--raqm-ease-out)}@media(prefers-reduced-motion:reduce){.raqm-dialog-content,.raqm-dialog-content--closing{animation:none;transition:none}}.raqm-dialog-close{position:absolute;top:calc(var(--raqm-spacing) * 2);inset-inline-end:calc(var(--raqm-spacing) * 2)}@media(forced-colors:active){.raqm-dialog-close{border-color:ButtonText}.raqm-dialog-content{border:1px solid CanvasText}}\n", ".raqm-alert-dialog-content{inline-size:100vw;inline-size:100dvw;max-inline-size:calc(var(--raqm-spacing) * 80);font-size:var(--raqm-font-size-base);line-height:var(--raqm-line-height-normal)}@media(min-width:40rem){.raqm-alert-dialog-content:not([data-raqm-small]){max-inline-size:calc(var(--raqm-spacing) * 96)}}\n"]
112
+ styles: [":host{display:contents}.raqm-dialog-content{position:relative;display:grid;gap:calc(var(--raqm-spacing) * 6);box-sizing:border-box;inline-size:calc(100vw - 2rem);inline-size:calc(100dvw - 2rem);max-inline-size:100%;max-block-size:calc(100vh - 2rem);max-block-size:calc(100dvh - 2rem);overflow:auto;padding:calc(var(--raqm-spacing) * 6);border-radius:var(--raqm-radius-xl);background-color:var(--raqm-popover);color:var(--raqm-popover-foreground);font-size:var(--raqm-font-size-sm);line-height:1.25rem;box-shadow:0 0 0 1px color-mix(in oklch,var(--raqm-foreground) 10%,transparent);outline:none}@media(min-width:40rem){.raqm-dialog-content{inline-size:24rem}}.raqm-dialog-content--entering{animation:raqm-dialog-in var(--raqm-duration-fast) var(--raqm-ease-out)}@keyframes raqm-dialog-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:none}}.raqm-dialog-content--closing{opacity:0;transform:scale(.95);transition:opacity var(--raqm-duration-fast) var(--raqm-ease-out),transform var(--raqm-duration-fast) var(--raqm-ease-out)}@media(prefers-reduced-motion:reduce){.raqm-dialog-content,.raqm-dialog-content--closing{animation:none;transition:none}}.raqm-dialog-close{position:absolute;inset-block-start:calc(var(--raqm-spacing) * 4.5);inset-inline-end:calc(var(--raqm-spacing) * 4.5)}@media(forced-colors:active){.raqm-dialog-close{border-color:ButtonText}.raqm-dialog-content{border:1px solid CanvasText}}\n", ".raqm-alert-dialog-content{inline-size:100vw;inline-size:100dvw;max-inline-size:calc(var(--raqm-spacing) * 80);font-size:var(--raqm-font-size-base);line-height:var(--raqm-line-height-normal)}@media(min-width:40rem){.raqm-alert-dialog-content:not([data-raqm-small]){max-inline-size:calc(var(--raqm-spacing) * 96)}}\n"]
113
113
  }]
114
114
  }],
115
115
  ctorParameters: () => [],
@@ -1 +1 @@
1
- {"version":3,"file":"raqm-ui-alert-dialog.mjs","names":[],"sources":["../../../projects/ui/alert-dialog/alert-dialog.component.ts","../../../projects/ui/dialog/dialog.component.html","../../../projects/ui/alert-dialog/alert-dialog.directive.ts","../../../projects/ui/alert-dialog/public-api.ts"],"sourcesContent":["import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n booleanAttribute,\r\n effect,\r\n input,\r\n signal,\r\n} from '@angular/core';\r\nimport { NgTemplateOutlet } from '@angular/common';\r\nimport { RaqmButton } from '@raqm/ui/button';\r\nimport {\r\n RaqmDialogBaseComponent,\r\n RAQM_DIALOG,\r\n RAQM_DIALOG_POLICY,\r\n RaqmDialogPolicy,\r\n} from '@raqm/ui/dialog';\r\n\r\n/** Modal interruption sharing Dialog's stack, focus trap, scroll lock and teardown. */\r\n@Component({\r\n selector: 'raqm-alert-dialog',\r\n imports: [NgTemplateOutlet, RaqmButton],\r\n templateUrl: '../dialog/dialog.component.html',\r\n styleUrls: ['../dialog/dialog.component.scss', './alert-dialog.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n exportAs: 'raqmAlertDialog',\r\n providers: [\r\n { provide: RAQM_DIALOG, useExisting: RaqmAlertDialogComponent },\r\n {\r\n provide: RAQM_DIALOG_POLICY,\r\n useFactory: (): RaqmDialogPolicy => ({\r\n role: 'alertdialog',\r\n contentClass: 'raqm-alert-dialog-content',\r\n small: signal(false),\r\n touchOpening: signal(false),\r\n dismissOnBackdrop: false,\r\n }),\r\n },\r\n ],\r\n})\r\nexport class RaqmAlertDialogComponent extends RaqmDialogBaseComponent {\r\n /** The compact alert layout; false is the normal layout. */\r\n readonly small = input(false, { transform: booleanAttribute });\r\n\r\n protected readonly closeButtonVisible = signal(false);\r\n protected readonly closeLabelText = signal<string | undefined>(undefined);\r\n\r\n constructor() {\r\n super();\r\n effect(() => this.policy?.small?.set(this.small()));\r\n }\r\n}\r\n","<ng-content />\r\n\r\n<!-- The CDK container, not this wrapper, is the role=dialog element. -->\r\n<ng-template #panel>\r\n <div\r\n class=\"raqm-dialog-content\"\r\n [class]=\"policy?.contentClass ?? ''\"\r\n [attr.data-raqm-small]=\"policy?.small?.() ? '' : null\"\r\n [attr.data-raqm-side]=\"policy?.side?.() ?? null\"\r\n [attr.dir]=\"panelDir()\"\r\n [class.raqm-dialog-content--entering]=\"entering()\"\r\n [class.raqm-dialog-content--closing]=\"closing()\"\r\n >\r\n <ng-container [ngTemplateOutlet]=\"contentTemplate()\" />\r\n\r\n <!-- showCloseButton=false hides only this control; Escape and backdrop dismissal still close. -->\r\n @if (closeButtonVisible()) {\r\n <button\r\n raqm-button=\"ghost\"\r\n icon-small\r\n class=\"raqm-dialog-close\"\r\n [attr.aria-label]=\"closeLabelText()\"\r\n (click)=\"onCloseButtonClick()\"\r\n >\r\n <svg\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n aria-hidden=\"true\"\r\n focusable=\"false\"\r\n >\r\n <path d=\"M18 6 6 18\" />\r\n <path d=\"m6 6 12 12\" />\r\n </svg>\r\n </button>\r\n }\r\n </div>\r\n</ng-template>\r\n","import { Directive, ElementRef, inject } from '@angular/core';\r\nimport { RAQM_DIALOG_POLICY } from '@raqm/ui/dialog';\r\nimport {\r\n RaqmDialogCloseDirective,\r\n RaqmDialogContentDirective,\r\n RaqmDialogDescriptionDirective,\r\n RaqmDialogTitleDirective,\r\n RaqmDialogTriggerDirective,\r\n} from '@raqm/ui/dialog';\r\n\r\n/** Native opener reusing Dialog registration and disclosure ARIA. */\r\n@Directive({\r\n selector: 'button[raqm-alert-dialog-trigger]',\r\n host: {\r\n class: 'raqm-alert-dialog-trigger',\r\n '(pointerdown)': 'setOpeningPointer($event)',\r\n '(keydown)': 'resetOpeningPointer()',\r\n },\r\n})\r\nexport class RaqmAlertDialogTriggerDirective extends RaqmDialogTriggerDirective {\r\n private readonly policy = inject(RAQM_DIALOG_POLICY, { optional: true });\r\n\r\n protected setOpeningPointer(event: PointerEvent): void {\r\n this.policy?.touchOpening.set(event.pointerType === 'touch');\r\n }\r\n\r\n protected resetOpeningPointer(): void {\r\n this.policy?.touchOpening.set(false);\r\n }\r\n}\r\n\r\n/** Portal body template; the root owns the compact-size policy. */\r\n@Directive({\r\n selector: 'ng-template[raqm-alert-dialog-content]',\r\n exportAs: 'raqmAlertDialogContent',\r\n})\r\nexport class RaqmAlertDialogContentDirective extends RaqmDialogContentDirective {}\r\n\r\n/** Passive header; media-aware responsive grid. */\r\n@Directive({\r\n selector: '[raqm-alert-dialog-header]',\r\n host: { class: 'raqm-alert-dialog-header' },\r\n})\r\nexport class RaqmAlertDialogHeaderDirective {}\r\n\r\n/** Passive action footer; controls remain application-authored native buttons. */\r\n@Directive({\r\n selector: '[raqm-alert-dialog-footer]',\r\n host: { class: 'raqm-alert-dialog-footer' },\r\n})\r\nexport class RaqmAlertDialogFooterDirective {}\r\n\r\n/** Optional media slot for an application-owned icon or image. */\r\n@Directive({\r\n selector: '[raqm-alert-dialog-media]',\r\n host: { class: 'raqm-alert-dialog-media' },\r\n})\r\nexport class RaqmAlertDialogMediaDirective {}\r\n\r\n/** Accessible title registered with the real alertdialog container. */\r\n@Directive({\r\n selector: '[raqm-alert-dialog-title]',\r\n hostDirectives: [RaqmDialogTitleDirective],\r\n host: { class: 'raqm-alert-dialog-title' },\r\n})\r\nexport class RaqmAlertDialogTitleDirective {}\r\n\r\n/** Accessible description registered with the real alertdialog container. */\r\n@Directive({\r\n selector: '[raqm-alert-dialog-description]',\r\n hostDirectives: [RaqmDialogDescriptionDirective],\r\n host: { class: 'raqm-alert-dialog-description' },\r\n})\r\nexport class RaqmAlertDialogDescriptionDirective {}\r\n\r\n/** Plain native action: compose raqm-button; activation does not implicitly close. */\r\n@Directive({\r\n selector: 'button[raqm-alert-dialog-action]',\r\n host: { class: 'raqm-alert-dialog-action' },\r\n})\r\nexport class RaqmAlertDialogActionDirective {\r\n constructor() {\r\n const element = inject<ElementRef<HTMLButtonElement>>(ElementRef).nativeElement;\r\n if (!element.hasAttribute('type')) {\r\n element.setAttribute('type', 'button');\r\n }\r\n }\r\n}\r\n\r\n/** Native cancel control using Dialog's single animated user-close path. */\r\n@Directive({\r\n selector: 'button[raqm-alert-dialog-cancel]',\r\n hostDirectives: [RaqmDialogCloseDirective],\r\n host: { class: 'raqm-alert-dialog-cancel' },\r\n})\r\nexport class RaqmAlertDialogCancelDirective {}\r\n","// Public API for `@raqm/ui/alert-dialog`; the root entry point re-exports these symbols.\r\nimport { RaqmAlertDialogComponent } from './alert-dialog.component';\r\nimport {\r\n RaqmAlertDialogActionDirective,\r\n RaqmAlertDialogCancelDirective,\r\n RaqmAlertDialogContentDirective,\r\n RaqmAlertDialogDescriptionDirective,\r\n RaqmAlertDialogFooterDirective,\r\n RaqmAlertDialogHeaderDirective,\r\n RaqmAlertDialogMediaDirective,\r\n RaqmAlertDialogTitleDirective,\r\n RaqmAlertDialogTriggerDirective,\r\n} from './alert-dialog.directive';\r\n\r\nexport {\r\n RaqmAlertDialogComponent,\r\n RaqmAlertDialogTriggerDirective,\r\n RaqmAlertDialogContentDirective,\r\n RaqmAlertDialogHeaderDirective,\r\n RaqmAlertDialogFooterDirective,\r\n RaqmAlertDialogMediaDirective,\r\n RaqmAlertDialogTitleDirective,\r\n RaqmAlertDialogDescriptionDirective,\r\n RaqmAlertDialogActionDirective,\r\n RaqmAlertDialogCancelDirective,\r\n};\r\n\r\nexport const RaqmAlertDialog = [\r\n RaqmAlertDialogComponent,\r\n RaqmAlertDialogTriggerDirective,\r\n RaqmAlertDialogContentDirective,\r\n RaqmAlertDialogHeaderDirective,\r\n RaqmAlertDialogFooterDirective,\r\n RaqmAlertDialogMediaDirective,\r\n RaqmAlertDialogTitleDirective,\r\n RaqmAlertDialogDescriptionDirective,\r\n RaqmAlertDialogActionDirective,\r\n RaqmAlertDialogCancelDirective,\r\n] as const;\r\n"],"mappings":";;;;;;AAuCA,IAAa,2BAAb,MAAa,iCAAiC,wBAAuB;CAE1D,QAAQ,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAExC,qBAAqB,OAAO,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,qBAAA,CAAA,+BAAA,CAAA,CAAA;CAClC,iBAAiB,OAA2B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CAEzE,cAAA;EACE,MAAK;EACL,aAAa,KAAK,QAAQ,OAAO,IAAI,KAAK,MAAK,CAAE,CAAC;CACpD;CAVW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA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;GACT,UAAU;GACV,gBAAgB,CAAC,wBAAwB;GACzC,MAAM,EAAE,OAAO,2BAA0B;EAC1C,CAAA;;;ACnED,MAAa,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACQ"}
1
+ {"version":3,"file":"raqm-ui-alert-dialog.mjs","names":[],"sources":["../../../projects/ui/alert-dialog/alert-dialog.component.ts","../../../projects/ui/dialog/dialog.component.html","../../../projects/ui/alert-dialog/alert-dialog.directive.ts","../../../projects/ui/alert-dialog/public-api.ts"],"sourcesContent":["import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n booleanAttribute,\r\n effect,\r\n input,\r\n signal,\r\n} from '@angular/core';\r\nimport { NgTemplateOutlet } from '@angular/common';\r\nimport { RaqmButton } from '@raqm/ui/button';\r\nimport {\r\n RaqmDialogBaseComponent,\r\n RAQM_DIALOG,\r\n RAQM_DIALOG_POLICY,\r\n RaqmDialogPolicy,\r\n} from '@raqm/ui/dialog';\r\n\r\n/** Modal interruption sharing Dialog's stack, focus trap, scroll lock and teardown. */\r\n@Component({\r\n selector: 'raqm-alert-dialog',\r\n imports: [NgTemplateOutlet, RaqmButton],\r\n templateUrl: '../dialog/dialog.component.html',\r\n styleUrls: ['../dialog/dialog.component.scss', './alert-dialog.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n exportAs: 'raqmAlertDialog',\r\n providers: [\r\n { provide: RAQM_DIALOG, useExisting: RaqmAlertDialogComponent },\r\n {\r\n provide: RAQM_DIALOG_POLICY,\r\n useFactory: (): RaqmDialogPolicy => ({\r\n role: 'alertdialog',\r\n contentClass: 'raqm-alert-dialog-content',\r\n small: signal(false),\r\n touchOpening: signal(false),\r\n dismissOnBackdrop: false,\r\n }),\r\n },\r\n ],\r\n})\r\nexport class RaqmAlertDialogComponent extends RaqmDialogBaseComponent {\r\n /** The compact alert layout; false is the normal layout. */\r\n readonly small = input(false, { transform: booleanAttribute });\r\n\r\n protected readonly closeButtonVisible = signal(false);\r\n protected readonly closeLabelText = signal<string | undefined>(undefined);\r\n\r\n constructor() {\r\n super();\r\n effect(() => this.policy?.small?.set(this.small()));\r\n }\r\n}\r\n","<ng-content />\r\n\r\n<!-- The CDK container, not this wrapper, is the role=dialog element. -->\r\n<ng-template #panel>\r\n <div\r\n class=\"raqm-dialog-content\"\r\n [class]=\"policy?.contentClass ?? ''\"\r\n [attr.data-raqm-small]=\"policy?.small?.() ? '' : null\"\r\n [attr.data-raqm-side]=\"policy?.side?.() ?? null\"\r\n [attr.dir]=\"panelDir()\"\r\n [class.raqm-dialog-content--entering]=\"entering()\"\r\n [class.raqm-dialog-content--closing]=\"closing()\"\r\n >\r\n <ng-container [ngTemplateOutlet]=\"contentTemplate()\" />\r\n\r\n <!-- showCloseButton=false hides only this control; Escape and backdrop dismissal still close. -->\r\n @if (closeButtonVisible()) {\r\n <button\r\n raqm-button=\"ghost\"\r\n icon-small\r\n class=\"raqm-dialog-close\"\r\n [attr.aria-label]=\"closeLabelText()\"\r\n (click)=\"onCloseButtonClick()\"\r\n >\r\n <svg\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n aria-hidden=\"true\"\r\n focusable=\"false\"\r\n >\r\n <path d=\"M18 6 6 18\" />\r\n <path d=\"m6 6 12 12\" />\r\n </svg>\r\n </button>\r\n }\r\n </div>\r\n</ng-template>\r\n","import { Directive, ElementRef, inject } from '@angular/core';\r\nimport { RAQM_DIALOG_POLICY } from '@raqm/ui/dialog';\r\nimport {\r\n RaqmDialogCloseDirective,\r\n RaqmDialogContentDirective,\r\n RaqmDialogDescriptionDirective,\r\n RaqmDialogTitleDirective,\r\n RaqmDialogTriggerDirective,\r\n} from '@raqm/ui/dialog';\r\n\r\n/** Native opener reusing Dialog registration and disclosure ARIA. */\r\n@Directive({\r\n selector: 'button[raqm-alert-dialog-trigger]',\r\n host: {\r\n class: 'raqm-alert-dialog-trigger',\r\n '(pointerdown)': 'setOpeningPointer($event)',\r\n '(keydown)': 'resetOpeningPointer()',\r\n },\r\n})\r\nexport class RaqmAlertDialogTriggerDirective extends RaqmDialogTriggerDirective {\r\n private readonly policy = inject(RAQM_DIALOG_POLICY, { optional: true });\r\n\r\n protected setOpeningPointer(event: PointerEvent): void {\r\n this.policy?.touchOpening.set(event.pointerType === 'touch');\r\n }\r\n\r\n protected resetOpeningPointer(): void {\r\n this.policy?.touchOpening.set(false);\r\n }\r\n}\r\n\r\n/** Portal body template; the root owns the compact-size policy. */\r\n@Directive({\r\n selector: 'ng-template[raqm-alert-dialog-content]',\r\n exportAs: 'raqmAlertDialogContent',\r\n})\r\nexport class RaqmAlertDialogContentDirective extends RaqmDialogContentDirective {}\r\n\r\n/** Passive header; media-aware responsive grid. */\r\n@Directive({\r\n selector: '[raqm-alert-dialog-header]',\r\n host: { class: 'raqm-alert-dialog-header' },\r\n})\r\nexport class RaqmAlertDialogHeaderDirective {}\r\n\r\n/** Passive action footer; controls remain application-authored native buttons. */\r\n@Directive({\r\n selector: '[raqm-alert-dialog-footer]',\r\n host: { class: 'raqm-alert-dialog-footer' },\r\n})\r\nexport class RaqmAlertDialogFooterDirective {}\r\n\r\n/** Optional media slot for an application-owned icon or image. */\r\n@Directive({\r\n selector: '[raqm-alert-dialog-media]',\r\n host: { class: 'raqm-alert-dialog-media' },\r\n})\r\nexport class RaqmAlertDialogMediaDirective {}\r\n\r\n/** Accessible title registered with the real alertdialog container. */\r\n@Directive({\r\n selector: '[raqm-alert-dialog-title]',\r\n hostDirectives: [RaqmDialogTitleDirective],\r\n host: { class: 'raqm-alert-dialog-title' },\r\n})\r\nexport class RaqmAlertDialogTitleDirective {}\r\n\r\n/** Accessible description registered with the real alertdialog container. */\r\n@Directive({\r\n selector: '[raqm-alert-dialog-description]',\r\n hostDirectives: [RaqmDialogDescriptionDirective],\r\n host: { class: 'raqm-alert-dialog-description' },\r\n})\r\nexport class RaqmAlertDialogDescriptionDirective {}\r\n\r\n/** Plain native action: compose raqm-button; activation does not implicitly close. */\r\n@Directive({\r\n selector: 'button[raqm-alert-dialog-action]',\r\n host: { class: 'raqm-alert-dialog-action' },\r\n})\r\nexport class RaqmAlertDialogActionDirective {\r\n constructor() {\r\n const element = inject<ElementRef<HTMLButtonElement>>(ElementRef).nativeElement;\r\n if (!element.hasAttribute('type')) {\r\n element.setAttribute('type', 'button');\r\n }\r\n }\r\n}\r\n\r\n/** Native cancel control using Dialog's single animated user-close path. */\r\n@Directive({\r\n selector: 'button[raqm-alert-dialog-cancel]',\r\n hostDirectives: [RaqmDialogCloseDirective],\r\n host: { class: 'raqm-alert-dialog-cancel' },\r\n})\r\nexport class RaqmAlertDialogCancelDirective {}\r\n","// Public API for `@raqm/ui/alert-dialog`; the root entry point re-exports these symbols.\r\nimport { RaqmAlertDialogComponent } from './alert-dialog.component';\r\nimport {\r\n RaqmAlertDialogActionDirective,\r\n RaqmAlertDialogCancelDirective,\r\n RaqmAlertDialogContentDirective,\r\n RaqmAlertDialogDescriptionDirective,\r\n RaqmAlertDialogFooterDirective,\r\n RaqmAlertDialogHeaderDirective,\r\n RaqmAlertDialogMediaDirective,\r\n RaqmAlertDialogTitleDirective,\r\n RaqmAlertDialogTriggerDirective,\r\n} from './alert-dialog.directive';\r\n\r\nexport {\r\n RaqmAlertDialogComponent,\r\n RaqmAlertDialogTriggerDirective,\r\n RaqmAlertDialogContentDirective,\r\n RaqmAlertDialogHeaderDirective,\r\n RaqmAlertDialogFooterDirective,\r\n RaqmAlertDialogMediaDirective,\r\n RaqmAlertDialogTitleDirective,\r\n RaqmAlertDialogDescriptionDirective,\r\n RaqmAlertDialogActionDirective,\r\n RaqmAlertDialogCancelDirective,\r\n};\r\n\r\nexport const RaqmAlertDialog = [\r\n RaqmAlertDialogComponent,\r\n RaqmAlertDialogTriggerDirective,\r\n RaqmAlertDialogContentDirective,\r\n RaqmAlertDialogHeaderDirective,\r\n RaqmAlertDialogFooterDirective,\r\n RaqmAlertDialogMediaDirective,\r\n RaqmAlertDialogTitleDirective,\r\n RaqmAlertDialogDescriptionDirective,\r\n RaqmAlertDialogActionDirective,\r\n RaqmAlertDialogCancelDirective,\r\n] as const;\r\n"],"mappings":";;;;;;AAuCA,IAAa,2BAAb,MAAa,iCAAiC,wBAAuB;CAE1D,QAAQ,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,QAAA,+BAAA,CAAA;EAAI,WAAW;CAAgB,CAAA;CAExC,qBAAqB,OAAO,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,qBAAA,CAAA,+BAAA,CAAA,CAAA;CAClC,iBAAiB,OAA2B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CAEzE,cAAA;EACE,MAAK;EACL,aAAa,KAAK,QAAQ,OAAO,IAAI,KAAK,MAAK,CAAE,CAAC;CACpD;CAVW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,OAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,WAdxB,CACT;GAAE,SAAS;GAAa,aAAa;EAAwB,GAC7D;GACE,SAAS;GACT,mBAAqC;IACnC,MAAM;IACN,cAAc;IACd,OAAO,OAAO,KAAK;IACnB,cAAc,OAAO,KAAK;IAC1B,mBAAmB;GACpB;EACF,CACF;EAAA,UAAA,CAAA,iBAAA;EAAA,iBAAA;EAAA,UAAA;EAAA,UCrCH;EAyCA,QAAA,CAAA,24CAAA,6TAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,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