@raqm/ui 0.0.0-stage → 0.1.1
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 +22 -0
- package/LICENSE +21 -0
- package/NOTICE.md +28 -0
- package/README.md +126 -3
- package/combobox/README.md +17 -0
- package/fesm2022/raqm-ui-accordion.mjs +414 -0
- package/fesm2022/raqm-ui-accordion.mjs.map +1 -0
- package/fesm2022/raqm-ui-alert-dialog.mjs +457 -0
- package/fesm2022/raqm-ui-alert-dialog.mjs.map +1 -0
- package/fesm2022/raqm-ui-alert.mjs +195 -0
- package/fesm2022/raqm-ui-alert.mjs.map +1 -0
- package/fesm2022/raqm-ui-aspect-ratio.mjs +66 -0
- package/fesm2022/raqm-ui-aspect-ratio.mjs.map +1 -0
- package/fesm2022/raqm-ui-attachment.mjs +435 -0
- package/fesm2022/raqm-ui-attachment.mjs.map +1 -0
- package/fesm2022/raqm-ui-avatar.mjs +337 -0
- package/fesm2022/raqm-ui-avatar.mjs.map +1 -0
- package/fesm2022/raqm-ui-badge.mjs +68 -0
- package/fesm2022/raqm-ui-badge.mjs.map +1 -0
- package/fesm2022/raqm-ui-breadcrumb.mjs +309 -0
- package/fesm2022/raqm-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/raqm-ui-button-group.mjs +138 -0
- package/fesm2022/raqm-ui-button-group.mjs.map +1 -0
- package/fesm2022/raqm-ui-button.mjs +295 -0
- package/fesm2022/raqm-ui-button.mjs.map +1 -0
- package/fesm2022/raqm-ui-calendar.mjs +1394 -0
- package/fesm2022/raqm-ui-calendar.mjs.map +1 -0
- package/fesm2022/raqm-ui-card.mjs +331 -0
- package/fesm2022/raqm-ui-card.mjs.map +1 -0
- package/fesm2022/raqm-ui-carousel.mjs +410 -0
- package/fesm2022/raqm-ui-carousel.mjs.map +1 -0
- package/fesm2022/raqm-ui-checkbox.mjs +86 -0
- package/fesm2022/raqm-ui-checkbox.mjs.map +1 -0
- package/fesm2022/raqm-ui-collapsible.mjs +266 -0
- package/fesm2022/raqm-ui-collapsible.mjs.map +1 -0
- package/fesm2022/raqm-ui-combobox.mjs +1584 -0
- package/fesm2022/raqm-ui-combobox.mjs.map +1 -0
- package/fesm2022/raqm-ui-command.mjs +1210 -0
- package/fesm2022/raqm-ui-command.mjs.map +1 -0
- package/fesm2022/raqm-ui-context-menu.mjs +723 -0
- package/fesm2022/raqm-ui-context-menu.mjs.map +1 -0
- package/fesm2022/raqm-ui-dialog.mjs +1214 -0
- package/fesm2022/raqm-ui-dialog.mjs.map +1 -0
- package/fesm2022/raqm-ui-drawer.mjs +687 -0
- package/fesm2022/raqm-ui-drawer.mjs.map +1 -0
- package/fesm2022/raqm-ui-dropdown-menu.mjs +1168 -0
- package/fesm2022/raqm-ui-dropdown-menu.mjs.map +1 -0
- package/fesm2022/raqm-ui-empty.mjs +272 -0
- package/fesm2022/raqm-ui-empty.mjs.map +1 -0
- package/fesm2022/raqm-ui-field.mjs +517 -0
- package/fesm2022/raqm-ui-field.mjs.map +1 -0
- package/fesm2022/raqm-ui-hover-card.mjs +828 -0
- package/fesm2022/raqm-ui-hover-card.mjs.map +1 -0
- package/fesm2022/raqm-ui-input-group.mjs +270 -0
- package/fesm2022/raqm-ui-input-group.mjs.map +1 -0
- package/fesm2022/raqm-ui-input-otp.mjs +788 -0
- package/fesm2022/raqm-ui-input-otp.mjs.map +1 -0
- package/fesm2022/raqm-ui-input.mjs +73 -0
- package/fesm2022/raqm-ui-input.mjs.map +1 -0
- package/fesm2022/raqm-ui-item.mjs +495 -0
- package/fesm2022/raqm-ui-item.mjs.map +1 -0
- package/fesm2022/raqm-ui-kbd.mjs +80 -0
- package/fesm2022/raqm-ui-kbd.mjs.map +1 -0
- package/fesm2022/raqm-ui-label.mjs +44 -0
- package/fesm2022/raqm-ui-label.mjs.map +1 -0
- package/fesm2022/raqm-ui-menubar.mjs +536 -0
- package/fesm2022/raqm-ui-menubar.mjs.map +1 -0
- package/fesm2022/raqm-ui-native-select.mjs +131 -0
- package/fesm2022/raqm-ui-native-select.mjs.map +1 -0
- package/fesm2022/raqm-ui-navigation-menu.mjs +1399 -0
- package/fesm2022/raqm-ui-navigation-menu.mjs.map +1 -0
- package/fesm2022/raqm-ui-overlay-internal.mjs +185 -0
- package/fesm2022/raqm-ui-overlay-internal.mjs.map +1 -0
- package/fesm2022/raqm-ui-pagination.mjs +440 -0
- package/fesm2022/raqm-ui-pagination.mjs.map +1 -0
- package/fesm2022/raqm-ui-popover.mjs +1495 -0
- package/fesm2022/raqm-ui-popover.mjs.map +1 -0
- package/fesm2022/raqm-ui-progress.mjs +369 -0
- package/fesm2022/raqm-ui-progress.mjs.map +1 -0
- package/fesm2022/raqm-ui-questionnaire.mjs +1005 -0
- package/fesm2022/raqm-ui-questionnaire.mjs.map +1 -0
- package/fesm2022/raqm-ui-radio-group.mjs +151 -0
- package/fesm2022/raqm-ui-radio-group.mjs.map +1 -0
- package/fesm2022/raqm-ui-resizable.mjs +439 -0
- package/fesm2022/raqm-ui-resizable.mjs.map +1 -0
- package/fesm2022/raqm-ui-scroll-area.mjs +510 -0
- package/fesm2022/raqm-ui-scroll-area.mjs.map +1 -0
- package/fesm2022/raqm-ui-select.mjs +1073 -0
- package/fesm2022/raqm-ui-select.mjs.map +1 -0
- package/fesm2022/raqm-ui-separator.mjs +103 -0
- package/fesm2022/raqm-ui-separator.mjs.map +1 -0
- package/fesm2022/raqm-ui-sheet.mjs +411 -0
- package/fesm2022/raqm-ui-sheet.mjs.map +1 -0
- package/fesm2022/raqm-ui-sidebar.mjs +1784 -0
- package/fesm2022/raqm-ui-sidebar.mjs.map +1 -0
- package/fesm2022/raqm-ui-skeleton.mjs +50 -0
- package/fesm2022/raqm-ui-skeleton.mjs.map +1 -0
- package/fesm2022/raqm-ui-slider.mjs +609 -0
- package/fesm2022/raqm-ui-slider.mjs.map +1 -0
- package/fesm2022/raqm-ui-spinner.mjs +137 -0
- package/fesm2022/raqm-ui-spinner.mjs.map +1 -0
- package/fesm2022/raqm-ui-switch.mjs +109 -0
- package/fesm2022/raqm-ui-switch.mjs.map +1 -0
- package/fesm2022/raqm-ui-table.mjs +271 -0
- package/fesm2022/raqm-ui-table.mjs.map +1 -0
- package/fesm2022/raqm-ui-tabs.mjs +536 -0
- package/fesm2022/raqm-ui-tabs.mjs.map +1 -0
- package/fesm2022/raqm-ui-textarea.mjs +37 -0
- package/fesm2022/raqm-ui-textarea.mjs.map +1 -0
- package/fesm2022/raqm-ui-toast.mjs +918 -0
- package/fesm2022/raqm-ui-toast.mjs.map +1 -0
- package/fesm2022/raqm-ui-toggle-group.mjs +462 -0
- package/fesm2022/raqm-ui-toggle-group.mjs.map +1 -0
- package/fesm2022/raqm-ui-toggle.mjs +158 -0
- package/fesm2022/raqm-ui-toggle.mjs.map +1 -0
- package/fesm2022/raqm-ui-tooltip.mjs +1226 -0
- package/fesm2022/raqm-ui-tooltip.mjs.map +1 -0
- package/fesm2022/raqm-ui.mjs +50 -0
- package/input-otp/README.md +12 -0
- package/package.json +275 -3
- package/styles/theme.css +4324 -0
- package/types/raqm-ui-accordion.d.ts +124 -0
- package/types/raqm-ui-alert-dialog.d.ts +81 -0
- package/types/raqm-ui-alert.d.ts +29 -0
- package/types/raqm-ui-aspect-ratio.d.ts +13 -0
- package/types/raqm-ui-attachment.d.ts +72 -0
- package/types/raqm-ui-avatar.d.ts +67 -0
- package/types/raqm-ui-badge.d.ts +20 -0
- package/types/raqm-ui-breadcrumb.d.ts +35 -0
- package/types/raqm-ui-button-group.d.ts +27 -0
- package/types/raqm-ui-button.d.ts +80 -0
- package/types/raqm-ui-calendar.d.ts +359 -0
- package/types/raqm-ui-card.d.ts +34 -0
- package/types/raqm-ui-carousel.d.ts +81 -0
- package/types/raqm-ui-checkbox.d.ts +24 -0
- package/types/raqm-ui-collapsible.d.ts +72 -0
- package/types/raqm-ui-combobox.d.ts +405 -0
- package/types/raqm-ui-command.d.ts +256 -0
- package/types/raqm-ui-context-menu.d.ts +196 -0
- package/types/raqm-ui-dialog.d.ts +232 -0
- package/types/raqm-ui-drawer.d.ts +121 -0
- package/types/raqm-ui-dropdown-menu.d.ts +319 -0
- package/types/raqm-ui-empty.d.ts +35 -0
- package/types/raqm-ui-field.d.ts +88 -0
- package/types/raqm-ui-hover-card.d.ts +139 -0
- package/types/raqm-ui-input-group.d.ts +45 -0
- package/types/raqm-ui-input-otp.d.ts +197 -0
- package/types/raqm-ui-input.d.ts +16 -0
- package/types/raqm-ui-item.d.ts +71 -0
- package/types/raqm-ui-kbd.d.ts +12 -0
- package/types/raqm-ui-label.d.ts +6 -0
- package/types/raqm-ui-menubar.d.ts +159 -0
- package/types/raqm-ui-native-select.d.ts +23 -0
- package/types/raqm-ui-navigation-menu.d.ts +230 -0
- package/types/raqm-ui-overlay-internal.d.ts +5 -0
- package/types/raqm-ui-pagination.d.ts +84 -0
- package/types/raqm-ui-popover.d.ts +235 -0
- package/types/raqm-ui-progress.d.ts +79 -0
- package/types/raqm-ui-questionnaire.d.ts +217 -0
- package/types/raqm-ui-radio-group.d.ts +48 -0
- package/types/raqm-ui-resizable.d.ts +98 -0
- package/types/raqm-ui-scroll-area.d.ts +132 -0
- package/types/raqm-ui-select.d.ts +205 -0
- package/types/raqm-ui-separator.d.ts +21 -0
- package/types/raqm-ui-sheet.d.ts +79 -0
- package/types/raqm-ui-sidebar.d.ts +285 -0
- package/types/raqm-ui-skeleton.d.ts +6 -0
- package/types/raqm-ui-slider.d.ts +129 -0
- package/types/raqm-ui-spinner.d.ts +32 -0
- package/types/raqm-ui-switch.d.ts +32 -0
- package/types/raqm-ui-table.d.ts +36 -0
- package/types/raqm-ui-tabs.d.ts +154 -0
- package/types/raqm-ui-textarea.d.ts +6 -0
- package/types/raqm-ui-toast.d.ts +190 -0
- package/types/raqm-ui-toggle-group.d.ts +167 -0
- package/types/raqm-ui-toggle.d.ts +42 -0
- package/types/raqm-ui-tooltip.d.ts +207 -0
- package/types/raqm-ui.d.ts +50 -0
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Directive, booleanAttribute, effect, input, signal } from "@angular/core";
|
|
3
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
4
|
+
import { RaqmButton } from "@raqm/ui/button";
|
|
5
|
+
import * as i1 from "@raqm/ui/dialog";
|
|
6
|
+
import { RAQM_DIALOG, RAQM_DIALOG_POLICY, RaqmDialogBaseComponent, RaqmDialogCloseDirective, RaqmDialogContentDirective, RaqmDialogDescriptionDirective, RaqmDialogTitleDirective, RaqmDialogTriggerDirective } from "@raqm/ui/dialog";
|
|
7
|
+
var RaqmSheetComponent = class RaqmSheetComponent extends RaqmDialogBaseComponent {
|
|
8
|
+
side = input("right", ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
|
|
9
|
+
showCloseButton = input(true, {
|
|
10
|
+
...ngDevMode ? { debugName: "showCloseButton" } : /* istanbul ignore next */ {},
|
|
11
|
+
transform: booleanAttribute
|
|
12
|
+
});
|
|
13
|
+
closeLabel = input(void 0, ...ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []);
|
|
14
|
+
closeButtonVisible = this.showCloseButton;
|
|
15
|
+
closeLabelText = this.closeLabel;
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
effect(() => this.policy?.side?.set(this.side()));
|
|
19
|
+
}
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
21
|
+
minVersion: "12.0.0",
|
|
22
|
+
version: "22.2.2",
|
|
23
|
+
ngImport: i0,
|
|
24
|
+
type: RaqmSheetComponent,
|
|
25
|
+
deps: [],
|
|
26
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
27
|
+
});
|
|
28
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
29
|
+
minVersion: "17.0.0",
|
|
30
|
+
version: "22.2.2",
|
|
31
|
+
type: RaqmSheetComponent,
|
|
32
|
+
isStandalone: true,
|
|
33
|
+
selector: "raqm-sheet",
|
|
34
|
+
inputs: {
|
|
35
|
+
side: {
|
|
36
|
+
classPropertyName: "side",
|
|
37
|
+
publicName: "side",
|
|
38
|
+
isSignal: true,
|
|
39
|
+
isRequired: false,
|
|
40
|
+
transformFunction: null
|
|
41
|
+
},
|
|
42
|
+
showCloseButton: {
|
|
43
|
+
classPropertyName: "showCloseButton",
|
|
44
|
+
publicName: "showCloseButton",
|
|
45
|
+
isSignal: true,
|
|
46
|
+
isRequired: false,
|
|
47
|
+
transformFunction: null
|
|
48
|
+
},
|
|
49
|
+
closeLabel: {
|
|
50
|
+
classPropertyName: "closeLabel",
|
|
51
|
+
publicName: "closeLabel",
|
|
52
|
+
isSignal: true,
|
|
53
|
+
isRequired: false,
|
|
54
|
+
transformFunction: null
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
providers: [{
|
|
58
|
+
provide: RAQM_DIALOG,
|
|
59
|
+
useExisting: RaqmSheetComponent
|
|
60
|
+
}, {
|
|
61
|
+
provide: RAQM_DIALOG_POLICY,
|
|
62
|
+
useFactory: () => ({
|
|
63
|
+
role: "dialog",
|
|
64
|
+
contentClass: "raqm-sheet-content",
|
|
65
|
+
touchOpening: signal(false),
|
|
66
|
+
dismissOnBackdrop: true,
|
|
67
|
+
side: signal("right"),
|
|
68
|
+
paneClass: "raqm-sheet-overlay-pane",
|
|
69
|
+
backdropClass: "raqm-sheet-overlay-backdrop",
|
|
70
|
+
exitAnimationMs: 200
|
|
71
|
+
})
|
|
72
|
+
}],
|
|
73
|
+
exportAs: ["raqmSheet"],
|
|
74
|
+
usesInheritance: true,
|
|
75
|
+
ngImport: i0,
|
|
76
|
+
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",
|
|
77
|
+
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-dialog-content.raqm-sheet-content{position:absolute;display:flex;flex-direction:column;gap:calc(var(--raqm-spacing) * 4);padding:0;border:0 solid var(--raqm-border);border-radius:0;max-inline-size:none;max-block-size:100%;background-clip:padding-box;box-shadow:var(--raqm-shadow-lg);pointer-events:auto;--raqm-sheet-enter-x: 0px;--raqm-sheet-enter-y: 0px}.raqm-dialog-content.raqm-sheet-content[data-raqm-side=right],.raqm-dialog-content.raqm-sheet-content[data-raqm-side=left]{inset-block:0;block-size:100%;inline-size:75%}.raqm-dialog-content.raqm-sheet-content[data-raqm-side=right]{inset-inline-end:0;border-inline-start-width:1px;--raqm-sheet-enter-x: calc(var(--raqm-spacing) * 10)}.raqm-dialog-content.raqm-sheet-content[data-raqm-side=left]{inset-inline-start:0;border-inline-end-width:1px;--raqm-sheet-enter-x: calc(var(--raqm-spacing) * -10)}.raqm-dialog-content.raqm-sheet-content[dir=rtl][data-raqm-side=right]{--raqm-sheet-enter-x: calc(var(--raqm-spacing) * -10)}.raqm-dialog-content.raqm-sheet-content[dir=rtl][data-raqm-side=left]{--raqm-sheet-enter-x: calc(var(--raqm-spacing) * 10)}.raqm-dialog-content.raqm-sheet-content[data-raqm-side=top],.raqm-dialog-content.raqm-sheet-content[data-raqm-side=bottom]{inset-inline:0;inline-size:100%;block-size:auto}.raqm-dialog-content.raqm-sheet-content[data-raqm-side=top]{inset-block-start:0;border-block-end-width:1px;--raqm-sheet-enter-y: calc(var(--raqm-spacing) * -10)}.raqm-dialog-content.raqm-sheet-content[data-raqm-side=bottom]{inset-block-end:0;border-block-start-width:1px;--raqm-sheet-enter-y: calc(var(--raqm-spacing) * 10)}.raqm-dialog-content.raqm-sheet-content.raqm-dialog-content--entering{animation:raqm-sheet-in var(--raqm-duration-slow) var(--raqm-ease-in-out)}.raqm-dialog-content.raqm-sheet-content.raqm-dialog-content--closing{opacity:0;transform:translate(var(--raqm-sheet-enter-x),var(--raqm-sheet-enter-y));transition:opacity var(--raqm-duration-slow) var(--raqm-ease-in-out),transform var(--raqm-duration-slow) var(--raqm-ease-in-out)}.raqm-dialog-content.raqm-sheet-content .raqm-dialog-close{inset-block-start:calc(var(--raqm-spacing) * 3);inset-inline-end:calc(var(--raqm-spacing) * 3)}@media(min-width:40rem){.raqm-sheet-content[data-raqm-side=right],.raqm-sheet-content[data-raqm-side=left]{max-inline-size:calc(var(--raqm-spacing) * 96)}}@keyframes raqm-sheet-in{0%{opacity:0;transform:translate(var(--raqm-sheet-enter-x),var(--raqm-sheet-enter-y))}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.raqm-dialog-content.raqm-sheet-content{animation:none;transition:none}}@media(forced-colors:active){.raqm-dialog-content.raqm-sheet-content{border-color:CanvasText}}\n"],
|
|
78
|
+
dependencies: [{
|
|
79
|
+
kind: "directive",
|
|
80
|
+
type: NgTemplateOutlet,
|
|
81
|
+
selector: "[ngTemplateOutlet]",
|
|
82
|
+
inputs: [
|
|
83
|
+
"ngTemplateOutletContext",
|
|
84
|
+
"ngTemplateOutlet",
|
|
85
|
+
"ngTemplateOutletInjector"
|
|
86
|
+
]
|
|
87
|
+
}, {
|
|
88
|
+
kind: "component",
|
|
89
|
+
type: RaqmButton,
|
|
90
|
+
selector: "button[raqm-button], a[raqm-button]",
|
|
91
|
+
inputs: [
|
|
92
|
+
"raqm-button",
|
|
93
|
+
"extra-small",
|
|
94
|
+
"small",
|
|
95
|
+
"large",
|
|
96
|
+
"icon",
|
|
97
|
+
"icon-extra-small",
|
|
98
|
+
"icon-small",
|
|
99
|
+
"icon-large",
|
|
100
|
+
"disabled",
|
|
101
|
+
"tabindex"
|
|
102
|
+
]
|
|
103
|
+
}],
|
|
104
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
108
|
+
minVersion: "12.0.0",
|
|
109
|
+
version: "22.2.2",
|
|
110
|
+
ngImport: i0,
|
|
111
|
+
type: RaqmSheetComponent,
|
|
112
|
+
decorators: [{
|
|
113
|
+
type: Component,
|
|
114
|
+
args: [{
|
|
115
|
+
selector: "raqm-sheet",
|
|
116
|
+
imports: [NgTemplateOutlet, RaqmButton],
|
|
117
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
118
|
+
exportAs: "raqmSheet",
|
|
119
|
+
providers: [{
|
|
120
|
+
provide: RAQM_DIALOG,
|
|
121
|
+
useExisting: RaqmSheetComponent
|
|
122
|
+
}, {
|
|
123
|
+
provide: RAQM_DIALOG_POLICY,
|
|
124
|
+
useFactory: () => ({
|
|
125
|
+
role: "dialog",
|
|
126
|
+
contentClass: "raqm-sheet-content",
|
|
127
|
+
touchOpening: signal(false),
|
|
128
|
+
dismissOnBackdrop: true,
|
|
129
|
+
side: signal("right"),
|
|
130
|
+
paneClass: "raqm-sheet-overlay-pane",
|
|
131
|
+
backdropClass: "raqm-sheet-overlay-backdrop",
|
|
132
|
+
exitAnimationMs: 200
|
|
133
|
+
})
|
|
134
|
+
}],
|
|
135
|
+
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",
|
|
136
|
+
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-dialog-content.raqm-sheet-content{position:absolute;display:flex;flex-direction:column;gap:calc(var(--raqm-spacing) * 4);padding:0;border:0 solid var(--raqm-border);border-radius:0;max-inline-size:none;max-block-size:100%;background-clip:padding-box;box-shadow:var(--raqm-shadow-lg);pointer-events:auto;--raqm-sheet-enter-x: 0px;--raqm-sheet-enter-y: 0px}.raqm-dialog-content.raqm-sheet-content[data-raqm-side=right],.raqm-dialog-content.raqm-sheet-content[data-raqm-side=left]{inset-block:0;block-size:100%;inline-size:75%}.raqm-dialog-content.raqm-sheet-content[data-raqm-side=right]{inset-inline-end:0;border-inline-start-width:1px;--raqm-sheet-enter-x: calc(var(--raqm-spacing) * 10)}.raqm-dialog-content.raqm-sheet-content[data-raqm-side=left]{inset-inline-start:0;border-inline-end-width:1px;--raqm-sheet-enter-x: calc(var(--raqm-spacing) * -10)}.raqm-dialog-content.raqm-sheet-content[dir=rtl][data-raqm-side=right]{--raqm-sheet-enter-x: calc(var(--raqm-spacing) * -10)}.raqm-dialog-content.raqm-sheet-content[dir=rtl][data-raqm-side=left]{--raqm-sheet-enter-x: calc(var(--raqm-spacing) * 10)}.raqm-dialog-content.raqm-sheet-content[data-raqm-side=top],.raqm-dialog-content.raqm-sheet-content[data-raqm-side=bottom]{inset-inline:0;inline-size:100%;block-size:auto}.raqm-dialog-content.raqm-sheet-content[data-raqm-side=top]{inset-block-start:0;border-block-end-width:1px;--raqm-sheet-enter-y: calc(var(--raqm-spacing) * -10)}.raqm-dialog-content.raqm-sheet-content[data-raqm-side=bottom]{inset-block-end:0;border-block-start-width:1px;--raqm-sheet-enter-y: calc(var(--raqm-spacing) * 10)}.raqm-dialog-content.raqm-sheet-content.raqm-dialog-content--entering{animation:raqm-sheet-in var(--raqm-duration-slow) var(--raqm-ease-in-out)}.raqm-dialog-content.raqm-sheet-content.raqm-dialog-content--closing{opacity:0;transform:translate(var(--raqm-sheet-enter-x),var(--raqm-sheet-enter-y));transition:opacity var(--raqm-duration-slow) var(--raqm-ease-in-out),transform var(--raqm-duration-slow) var(--raqm-ease-in-out)}.raqm-dialog-content.raqm-sheet-content .raqm-dialog-close{inset-block-start:calc(var(--raqm-spacing) * 3);inset-inline-end:calc(var(--raqm-spacing) * 3)}@media(min-width:40rem){.raqm-sheet-content[data-raqm-side=right],.raqm-sheet-content[data-raqm-side=left]{max-inline-size:calc(var(--raqm-spacing) * 96)}}@keyframes raqm-sheet-in{0%{opacity:0;transform:translate(var(--raqm-sheet-enter-x),var(--raqm-sheet-enter-y))}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.raqm-dialog-content.raqm-sheet-content{animation:none;transition:none}}@media(forced-colors:active){.raqm-dialog-content.raqm-sheet-content{border-color:CanvasText}}\n"]
|
|
137
|
+
}]
|
|
138
|
+
}],
|
|
139
|
+
ctorParameters: () => [],
|
|
140
|
+
propDecorators: {
|
|
141
|
+
side: [{
|
|
142
|
+
type: i0.Input,
|
|
143
|
+
args: [{
|
|
144
|
+
isSignal: true,
|
|
145
|
+
alias: "side",
|
|
146
|
+
required: false
|
|
147
|
+
}]
|
|
148
|
+
}],
|
|
149
|
+
showCloseButton: [{
|
|
150
|
+
type: i0.Input,
|
|
151
|
+
args: [{
|
|
152
|
+
isSignal: true,
|
|
153
|
+
alias: "showCloseButton",
|
|
154
|
+
required: false
|
|
155
|
+
}]
|
|
156
|
+
}],
|
|
157
|
+
closeLabel: [{
|
|
158
|
+
type: i0.Input,
|
|
159
|
+
args: [{
|
|
160
|
+
isSignal: true,
|
|
161
|
+
alias: "closeLabel",
|
|
162
|
+
required: false
|
|
163
|
+
}]
|
|
164
|
+
}]
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
var RaqmSheetTriggerDirective = class RaqmSheetTriggerDirective extends RaqmDialogTriggerDirective {
|
|
168
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
169
|
+
minVersion: "12.0.0",
|
|
170
|
+
version: "22.2.2",
|
|
171
|
+
ngImport: i0,
|
|
172
|
+
type: RaqmSheetTriggerDirective,
|
|
173
|
+
deps: null,
|
|
174
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
175
|
+
});
|
|
176
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
177
|
+
minVersion: "14.0.0",
|
|
178
|
+
version: "22.2.2",
|
|
179
|
+
type: RaqmSheetTriggerDirective,
|
|
180
|
+
isStandalone: true,
|
|
181
|
+
selector: "button[raqm-sheet-trigger]",
|
|
182
|
+
host: { classAttribute: "raqm-sheet-trigger" },
|
|
183
|
+
usesInheritance: true,
|
|
184
|
+
ngImport: i0
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
188
|
+
minVersion: "12.0.0",
|
|
189
|
+
version: "22.2.2",
|
|
190
|
+
ngImport: i0,
|
|
191
|
+
type: RaqmSheetTriggerDirective,
|
|
192
|
+
decorators: [{
|
|
193
|
+
type: Directive,
|
|
194
|
+
args: [{
|
|
195
|
+
selector: "button[raqm-sheet-trigger]",
|
|
196
|
+
host: { class: "raqm-sheet-trigger" }
|
|
197
|
+
}]
|
|
198
|
+
}]
|
|
199
|
+
});
|
|
200
|
+
var RaqmSheetCloseDirective = class RaqmSheetCloseDirective {
|
|
201
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
202
|
+
minVersion: "12.0.0",
|
|
203
|
+
version: "22.2.2",
|
|
204
|
+
ngImport: i0,
|
|
205
|
+
type: RaqmSheetCloseDirective,
|
|
206
|
+
deps: [],
|
|
207
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
208
|
+
});
|
|
209
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
210
|
+
minVersion: "14.0.0",
|
|
211
|
+
version: "22.2.2",
|
|
212
|
+
type: RaqmSheetCloseDirective,
|
|
213
|
+
isStandalone: true,
|
|
214
|
+
selector: "button[raqm-sheet-close]",
|
|
215
|
+
host: { classAttribute: "raqm-sheet-close-control" },
|
|
216
|
+
hostDirectives: [{ directive: i1.RaqmDialogCloseDirective }],
|
|
217
|
+
ngImport: i0
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
221
|
+
minVersion: "12.0.0",
|
|
222
|
+
version: "22.2.2",
|
|
223
|
+
ngImport: i0,
|
|
224
|
+
type: RaqmSheetCloseDirective,
|
|
225
|
+
decorators: [{
|
|
226
|
+
type: Directive,
|
|
227
|
+
args: [{
|
|
228
|
+
selector: "button[raqm-sheet-close]",
|
|
229
|
+
hostDirectives: [RaqmDialogCloseDirective],
|
|
230
|
+
host: { class: "raqm-sheet-close-control" }
|
|
231
|
+
}]
|
|
232
|
+
}]
|
|
233
|
+
});
|
|
234
|
+
var RaqmSheetContentDirective = class RaqmSheetContentDirective extends RaqmDialogContentDirective {
|
|
235
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
236
|
+
minVersion: "12.0.0",
|
|
237
|
+
version: "22.2.2",
|
|
238
|
+
ngImport: i0,
|
|
239
|
+
type: RaqmSheetContentDirective,
|
|
240
|
+
deps: null,
|
|
241
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
242
|
+
});
|
|
243
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
244
|
+
minVersion: "14.0.0",
|
|
245
|
+
version: "22.2.2",
|
|
246
|
+
type: RaqmSheetContentDirective,
|
|
247
|
+
isStandalone: true,
|
|
248
|
+
selector: "ng-template[raqm-sheet-content]",
|
|
249
|
+
exportAs: ["raqmSheetContent"],
|
|
250
|
+
usesInheritance: true,
|
|
251
|
+
ngImport: i0
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
255
|
+
minVersion: "12.0.0",
|
|
256
|
+
version: "22.2.2",
|
|
257
|
+
ngImport: i0,
|
|
258
|
+
type: RaqmSheetContentDirective,
|
|
259
|
+
decorators: [{
|
|
260
|
+
type: Directive,
|
|
261
|
+
args: [{
|
|
262
|
+
selector: "ng-template[raqm-sheet-content]",
|
|
263
|
+
exportAs: "raqmSheetContent"
|
|
264
|
+
}]
|
|
265
|
+
}]
|
|
266
|
+
});
|
|
267
|
+
var RaqmSheetHeaderDirective = class RaqmSheetHeaderDirective {
|
|
268
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
269
|
+
minVersion: "12.0.0",
|
|
270
|
+
version: "22.2.2",
|
|
271
|
+
ngImport: i0,
|
|
272
|
+
type: RaqmSheetHeaderDirective,
|
|
273
|
+
deps: [],
|
|
274
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
275
|
+
});
|
|
276
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
277
|
+
minVersion: "14.0.0",
|
|
278
|
+
version: "22.2.2",
|
|
279
|
+
type: RaqmSheetHeaderDirective,
|
|
280
|
+
isStandalone: true,
|
|
281
|
+
selector: "[raqm-sheet-header]",
|
|
282
|
+
host: { classAttribute: "raqm-sheet-header" },
|
|
283
|
+
ngImport: i0
|
|
284
|
+
});
|
|
285
|
+
};
|
|
286
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
287
|
+
minVersion: "12.0.0",
|
|
288
|
+
version: "22.2.2",
|
|
289
|
+
ngImport: i0,
|
|
290
|
+
type: RaqmSheetHeaderDirective,
|
|
291
|
+
decorators: [{
|
|
292
|
+
type: Directive,
|
|
293
|
+
args: [{
|
|
294
|
+
selector: "[raqm-sheet-header]",
|
|
295
|
+
host: { class: "raqm-sheet-header" }
|
|
296
|
+
}]
|
|
297
|
+
}]
|
|
298
|
+
});
|
|
299
|
+
var RaqmSheetFooterDirective = class RaqmSheetFooterDirective {
|
|
300
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
301
|
+
minVersion: "12.0.0",
|
|
302
|
+
version: "22.2.2",
|
|
303
|
+
ngImport: i0,
|
|
304
|
+
type: RaqmSheetFooterDirective,
|
|
305
|
+
deps: [],
|
|
306
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
307
|
+
});
|
|
308
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
309
|
+
minVersion: "14.0.0",
|
|
310
|
+
version: "22.2.2",
|
|
311
|
+
type: RaqmSheetFooterDirective,
|
|
312
|
+
isStandalone: true,
|
|
313
|
+
selector: "[raqm-sheet-footer]",
|
|
314
|
+
host: { classAttribute: "raqm-sheet-footer" },
|
|
315
|
+
ngImport: i0
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
319
|
+
minVersion: "12.0.0",
|
|
320
|
+
version: "22.2.2",
|
|
321
|
+
ngImport: i0,
|
|
322
|
+
type: RaqmSheetFooterDirective,
|
|
323
|
+
decorators: [{
|
|
324
|
+
type: Directive,
|
|
325
|
+
args: [{
|
|
326
|
+
selector: "[raqm-sheet-footer]",
|
|
327
|
+
host: { class: "raqm-sheet-footer" }
|
|
328
|
+
}]
|
|
329
|
+
}]
|
|
330
|
+
});
|
|
331
|
+
var RaqmSheetTitleDirective = class RaqmSheetTitleDirective {
|
|
332
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
333
|
+
minVersion: "12.0.0",
|
|
334
|
+
version: "22.2.2",
|
|
335
|
+
ngImport: i0,
|
|
336
|
+
type: RaqmSheetTitleDirective,
|
|
337
|
+
deps: [],
|
|
338
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
339
|
+
});
|
|
340
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
341
|
+
minVersion: "14.0.0",
|
|
342
|
+
version: "22.2.2",
|
|
343
|
+
type: RaqmSheetTitleDirective,
|
|
344
|
+
isStandalone: true,
|
|
345
|
+
selector: "[raqm-sheet-title]",
|
|
346
|
+
host: { classAttribute: "raqm-sheet-title" },
|
|
347
|
+
hostDirectives: [{ directive: i1.RaqmDialogTitleDirective }],
|
|
348
|
+
ngImport: i0
|
|
349
|
+
});
|
|
350
|
+
};
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
352
|
+
minVersion: "12.0.0",
|
|
353
|
+
version: "22.2.2",
|
|
354
|
+
ngImport: i0,
|
|
355
|
+
type: RaqmSheetTitleDirective,
|
|
356
|
+
decorators: [{
|
|
357
|
+
type: Directive,
|
|
358
|
+
args: [{
|
|
359
|
+
selector: "[raqm-sheet-title]",
|
|
360
|
+
hostDirectives: [RaqmDialogTitleDirective],
|
|
361
|
+
host: { class: "raqm-sheet-title" }
|
|
362
|
+
}]
|
|
363
|
+
}]
|
|
364
|
+
});
|
|
365
|
+
var RaqmSheetDescriptionDirective = class RaqmSheetDescriptionDirective {
|
|
366
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
367
|
+
minVersion: "12.0.0",
|
|
368
|
+
version: "22.2.2",
|
|
369
|
+
ngImport: i0,
|
|
370
|
+
type: RaqmSheetDescriptionDirective,
|
|
371
|
+
deps: [],
|
|
372
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
373
|
+
});
|
|
374
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
375
|
+
minVersion: "14.0.0",
|
|
376
|
+
version: "22.2.2",
|
|
377
|
+
type: RaqmSheetDescriptionDirective,
|
|
378
|
+
isStandalone: true,
|
|
379
|
+
selector: "[raqm-sheet-description]",
|
|
380
|
+
host: { classAttribute: "raqm-sheet-description" },
|
|
381
|
+
hostDirectives: [{ directive: i1.RaqmDialogDescriptionDirective }],
|
|
382
|
+
ngImport: i0
|
|
383
|
+
});
|
|
384
|
+
};
|
|
385
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
386
|
+
minVersion: "12.0.0",
|
|
387
|
+
version: "22.2.2",
|
|
388
|
+
ngImport: i0,
|
|
389
|
+
type: RaqmSheetDescriptionDirective,
|
|
390
|
+
decorators: [{
|
|
391
|
+
type: Directive,
|
|
392
|
+
args: [{
|
|
393
|
+
selector: "[raqm-sheet-description]",
|
|
394
|
+
hostDirectives: [RaqmDialogDescriptionDirective],
|
|
395
|
+
host: { class: "raqm-sheet-description" }
|
|
396
|
+
}]
|
|
397
|
+
}]
|
|
398
|
+
});
|
|
399
|
+
const RaqmSheet = [
|
|
400
|
+
RaqmSheetComponent,
|
|
401
|
+
RaqmSheetTriggerDirective,
|
|
402
|
+
RaqmSheetCloseDirective,
|
|
403
|
+
RaqmSheetContentDirective,
|
|
404
|
+
RaqmSheetHeaderDirective,
|
|
405
|
+
RaqmSheetFooterDirective,
|
|
406
|
+
RaqmSheetTitleDirective,
|
|
407
|
+
RaqmSheetDescriptionDirective
|
|
408
|
+
];
|
|
409
|
+
export { RaqmSheet, RaqmSheetCloseDirective, RaqmSheetComponent, RaqmSheetContentDirective, RaqmSheetDescriptionDirective, RaqmSheetFooterDirective, RaqmSheetHeaderDirective, RaqmSheetTitleDirective, RaqmSheetTriggerDirective };
|
|
410
|
+
|
|
411
|
+
//# sourceMappingURL=raqm-ui-sheet.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raqm-ui-sheet.mjs","names":[],"sources":["../../../projects/ui/sheet/sheet.component.ts","../../../projects/ui/dialog/dialog.component.html","../../../projects/ui/sheet/sheet.directive.ts","../../../projects/ui/sheet/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/** Edge modal sharing Dialog's stack, focus trap, scroll lock and teardown. */\r\n@Component({\r\n selector: 'raqm-sheet',\r\n imports: [NgTemplateOutlet, RaqmButton],\r\n templateUrl: '../dialog/dialog.component.html',\r\n styleUrls: ['../dialog/dialog.component.scss', './sheet.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n exportAs: 'raqmSheet',\r\n providers: [\r\n { provide: RAQM_DIALOG, useExisting: RaqmSheetComponent },\r\n {\r\n provide: RAQM_DIALOG_POLICY,\r\n useFactory: (): RaqmDialogPolicy => ({\r\n role: 'dialog',\r\n contentClass: 'raqm-sheet-content',\r\n touchOpening: signal(false),\r\n dismissOnBackdrop: true,\r\n side: signal('right'),\r\n paneClass: 'raqm-sheet-overlay-pane',\r\n backdropClass: 'raqm-sheet-overlay-backdrop',\r\n exitAnimationMs: 200,\r\n }),\r\n },\r\n ],\r\n})\r\nexport class RaqmSheetComponent extends RaqmDialogBaseComponent {\r\n /** The edge the sheet is attached to; right/left are logical in RTL. */\r\n readonly side = input<'top' | 'right' | 'bottom' | 'left'>('right');\r\n\r\n readonly showCloseButton = input(true, { transform: booleanAttribute });\r\n\r\n readonly closeLabel = input<string | undefined>(undefined);\r\n\r\n protected readonly closeButtonVisible = this.showCloseButton;\r\n protected readonly closeLabelText = this.closeLabel;\r\n\r\n constructor() {\r\n super();\r\n effect(() => this.policy?.side?.set(this.side()));\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 } from '@angular/core';\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; compose raqm-button. */\r\n@Directive({\r\n selector: 'button[raqm-sheet-trigger]',\r\n host: { class: 'raqm-sheet-trigger' },\r\n})\r\nexport class RaqmSheetTriggerDirective extends RaqmDialogTriggerDirective {}\r\n\r\n/** Native close control using Dialog's single animated user-close path. */\r\n@Directive({\r\n selector: 'button[raqm-sheet-close]',\r\n hostDirectives: [RaqmDialogCloseDirective],\r\n host: { class: 'raqm-sheet-close-control' },\r\n})\r\nexport class RaqmSheetCloseDirective {}\r\n\r\n/** Portal body template; the root owns edge placement and the close control. */\r\n@Directive({\r\n selector: 'ng-template[raqm-sheet-content]',\r\n exportAs: 'raqmSheetContent',\r\n})\r\nexport class RaqmSheetContentDirective extends RaqmDialogContentDirective {}\r\n\r\n/** Passive header, stacking the title and description. */\r\n@Directive({\r\n selector: '[raqm-sheet-header]',\r\n host: { class: 'raqm-sheet-header' },\r\n})\r\nexport class RaqmSheetHeaderDirective {}\r\n\r\n/** Passive action footer, pushed to the end of the Sheet surface. */\r\n@Directive({\r\n selector: '[raqm-sheet-footer]',\r\n host: { class: 'raqm-sheet-footer' },\r\n})\r\nexport class RaqmSheetFooterDirective {}\r\n\r\n/** Accessible title registered with the real modal container. */\r\n@Directive({\r\n selector: '[raqm-sheet-title]',\r\n hostDirectives: [RaqmDialogTitleDirective],\r\n host: { class: 'raqm-sheet-title' },\r\n})\r\nexport class RaqmSheetTitleDirective {}\r\n\r\n/** Accessible description registered with the real modal container. */\r\n@Directive({\r\n selector: '[raqm-sheet-description]',\r\n hostDirectives: [RaqmDialogDescriptionDirective],\r\n host: { class: 'raqm-sheet-description' },\r\n})\r\nexport class RaqmSheetDescriptionDirective {}\r\n","// Public API for `@raqm/ui/sheet`; the root entry point re-exports these symbols.\r\nimport { RaqmSheetComponent } from './sheet.component';\r\nimport {\r\n RaqmSheetCloseDirective,\r\n RaqmSheetContentDirective,\r\n RaqmSheetDescriptionDirective,\r\n RaqmSheetFooterDirective,\r\n RaqmSheetHeaderDirective,\r\n RaqmSheetTitleDirective,\r\n RaqmSheetTriggerDirective,\r\n} from './sheet.directive';\r\n\r\nexport {\r\n RaqmSheetComponent,\r\n RaqmSheetTriggerDirective,\r\n RaqmSheetCloseDirective,\r\n RaqmSheetContentDirective,\r\n RaqmSheetHeaderDirective,\r\n RaqmSheetFooterDirective,\r\n RaqmSheetTitleDirective,\r\n RaqmSheetDescriptionDirective,\r\n};\r\n\r\nexport const RaqmSheet = [\r\n RaqmSheetComponent,\r\n RaqmSheetTriggerDirective,\r\n RaqmSheetCloseDirective,\r\n RaqmSheetContentDirective,\r\n RaqmSheetHeaderDirective,\r\n RaqmSheetFooterDirective,\r\n RaqmSheetTitleDirective,\r\n RaqmSheetDescriptionDirective,\r\n] as const;\r\n"],"mappings":";;;;;;AA0CA,IAAa,qBAAb,MAAa,2BAA2B,wBAAuB;CAEpD,OAAO,MAA2C,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAE1D,kBAAkB,MAAM,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,kBAAA,+BAAA,CAAA;EAAI,WA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