@4sh/ui-kit 0.10.0 → 0.11.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/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +52 -6
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +2 -2
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +2 -2
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +2 -2
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/mcp/data/text-search-docs.json +68 -8
- package/mcp/data/ui-config.json +250 -2
- package/mcp/package.json +1 -1
- package/package.json +1 -1
- package/styles/component-vars.scss +16 -1
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +23 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-informative-ui-toast.mjs","sources":["../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.types.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.html","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.service.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast-container.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast-container.html","../../../projects/ui-kit/informative/ui-toast/src/public-api.ts","../../../projects/ui-kit/informative/ui-toast/src/4sh-ui-kit-informative-ui-toast.ts"],"sourcesContent":["import { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\n/** Unique identifier of a toast message (auto-generated when omitted). */\nexport type UiToastId = string | number;\n\n/**\n * Where a {@link UiToastContainer} pins its stack in the viewport.\n */\nexport type UiToastPosition =\n | 'top-left'\n | 'top-center'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'bottom-right'\n | 'center';\n\n/** All positions, in declaration order (handy for stories/docs). */\nexport const UI_TOAST_POSITIONS: readonly UiToastPosition[] = [\n 'top-left',\n 'top-center',\n 'top-right',\n 'bottom-left',\n 'bottom-center',\n 'bottom-right',\n 'center',\n];\n\n/**\n * A single toast message pushed through the {@link UiToastService}.\n *\n * Only `title`/`text` are typically needed; everything else has a sensible\n * default resolved by the container.\n * remapped to this design system's semantic `level` / `subLevel` vocabulary.\n */\nexport interface UiToastMessage {\n /** Unique id. Auto-generated by the service when omitted. */\n id?: UiToastId;\n /** Routes the message to the container(s) sharing the same `key`. */\n key?: string;\n /** Semantic level (drives colours + default icon). */\n level?: UiFeedbackLevel;\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel?: UiSubLevel;\n /** Bold heading line. */\n title?: string;\n /** Supporting body line. */\n text?: string;\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or omit / `true` for the level's default icon.\n */\n icon?: string | boolean;\n /** Show the dismiss button (default `true`). */\n closable?: boolean;\n /** Never auto-dismiss — the user must close it (default `false`). */\n sticky?: boolean;\n /** Auto-dismiss delay in ms. Falls back to the container `life`. */\n life?: number;\n /** Arbitrary payload forwarded to a custom `template` (custom / action toasts). */\n data?: unknown;\n /** Extra class(es) applied to the toast card for one-off styling. */\n styleClass?: string;\n}\n\n/** Context object handed to a container's custom content `template`. */\nexport interface UiToastTemplateContext {\n /** The message being rendered. */\n $implicit: UiToastMessage;\n /** Dismisses this toast (same as clicking the close button). */\n closeFn: () => void;\n}\n\n/** Default leading icon per semantic level (FontAwesome names, from the Figma source). */\nexport const UI_TOAST_DEFAULT_ICONS: Record<UiFeedbackLevel, string> = {\n default: 'info-circle',\n highlight: 'info-circle',\n success: 'check',\n warning: 'warning',\n error: 'times',\n};\n","import { booleanAttribute, Component, computed, input, output } from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\nimport { UI_TOAST_DEFAULT_ICONS } from './ui-toast.types';\n\n/**\n * ui-toast — presentational notification card.\n *\n * Headless & fully token-driven (the `informative` category): surface, content\n * and stroke all come from `--informative-{level}{sub}-*`. It renders the Figma\n * anatomy (leading icon · title/text · dismiss button) and projects `<ng-content>`\n * in the content region for custom bodies or action buttons.\n *\n * Usually rendered for you by {@link UiToastContainer} from a {@link UiToastService}\n * message, but it is a plain standalone card — drop `<ui-toast>` anywhere.\n *\n * @example\n * ```html\n * <ui-toast level=\"success\" title=\"Enregistré\" text=\"Profil mis à jour.\" (closed)=\"…\" />\n * ```\n */\n@Component({\n selector: 'ui-toast',\n imports: [UiIcon],\n templateUrl: './ui-toast.html',\n styleUrl: './ui-toast.scss',\n host: {\n // Hug content by default; the container makes it fill the region in banner mode.\n '[style.display]': \"'inline-flex'\",\n '[style.maxWidth]': \"'100%'\",\n },\n})\nexport class UiToast {\n /** Bold heading line. */\n title = input<string>();\n /** Supporting body line. */\n text = input<string>();\n /** Semantic level — colours + default icon. */\n level = input<UiFeedbackLevel>('default');\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel = input<UiSubLevel>('high');\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or `true` (default) for the level's default icon.\n */\n icon = input<string | boolean>(true);\n /** Show the dismiss button (default `true`). */\n closable = input(true, { transform: booleanAttribute });\n /** FontAwesome name of the dismiss icon. */\n closeIcon = input<string>('times-circle');\n /** Accessible label of the dismiss button. */\n closeAriaLabel = input<string>('Fermer');\n /** Stretch the card to fill its region width (banner-style). */\n expanded = input(false, { transform: booleanAttribute });\n /** Extra class(es) merged onto the card root. */\n styleClass = input<string>();\n\n /** Emitted when the user clicks the dismiss button. */\n closed = output<MouseEvent>();\n\n /** @ignore Resolved leading icon name (null when hidden). */\n protected readonly iconName = computed<string | null>(() => {\n const icon = this.icon();\n if (icon === false) return null;\n if (typeof icon === 'string') return icon;\n return UI_TOAST_DEFAULT_ICONS[this.level()];\n });\n\n /** @ignore ARIA role — assertive alert for error/warning, polite status otherwise\n * (mirrors ui-alert, so a standalone ui-toast self-announces without the container). */\n protected readonly role = computed(() =>\n this.level() === 'error' || this.level() === 'warning' ? 'alert' : 'status',\n );\n\n /** @ignore */\n protected readonly ariaLive = computed(() =>\n this.level() === 'error' || this.level() === 'warning' ? 'assertive' : 'polite',\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-toast', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.expanded()) c.push('_expanded');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n /** @ignore */\n protected onClose(event: MouseEvent): void {\n this.closed.emit(event);\n }\n}\n","<div [class]=\"classes()\" [attr.role]=\"role()\" [attr.aria-live]=\"ariaLive()\" aria-atomic=\"true\">\n @if (iconName(); as name) {\n <span class=\"ui-toast-icon\">\n <ui-icon [name]=\"name\" size=\"md\" />\n </span>\n }\n\n <div class=\"ui-toast-content\">\n @if (title(); as t) {\n <span class=\"ui-toast-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-toast-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-toast-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose($event)\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n</div>\n","import { computed, Injectable, signal } from '@angular/core';\nimport { UiToastId, UiToastMessage } from './ui-toast.types';\n\n/** Process-wide counter guaranteeing unique auto-generated toast ids. */\nlet nextId = 0;\n\n/**\n * ui-toast service — programmatic entry point to push and clear toasts.\n *\n * Signal-based store:\n * `add`/`addAll` append messages, `clear`/`remove` drop them. One or more\n * {@link UiToastContainer} instances read this store reactively and render the\n * slice that matches their `key`. Provided in root, so a single injection is\n * shared across the app.\n *\n * @example\n * ```ts\n * private readonly toast = inject(UiToastService);\n * this.toast.add({ level: 'success', title: 'Enregistré', text: 'Profil mis à jour.' });\n * ```\n */\n@Injectable({ providedIn: 'root' })\nexport class UiToastService {\n /** @ignore Backing store of live messages. */\n private readonly _messages = signal<UiToastMessage[]>([]);\n\n /** Live messages, in insertion order (read-only). */\n readonly messages = this._messages.asReadonly();\n\n /** Total number of live messages across every key. */\n readonly count = computed(() => this._messages().length);\n\n /**\n * Push a single message. Returns its (possibly generated) id so the caller\n * can dismiss it later (e.g. resolving a \"loading\" toast into a result).\n */\n add(message: UiToastMessage): UiToastId {\n const id = message.id ?? `ui-toast-${nextId++}`;\n this._messages.update((list) => [...list, { ...message, id }]);\n return id;\n }\n\n /** Push several messages at once. Returns their ids, in order. */\n addAll(messages: UiToastMessage[]): UiToastId[] {\n return messages.map((message) => this.add(message));\n }\n\n /**\n * Remove messages. With no argument, clears everything; with a `key`, clears\n * only the messages routed to that key.\n */\n clear(key?: string): void {\n if (key == null) {\n this._messages.set([]);\n return;\n }\n this._messages.update((list) => list.filter((m) => m.key !== key));\n }\n\n /** Remove a single message by id (no-op if it is already gone). */\n remove(id: UiToastId): void {\n this._messages.update((list) => list.filter((m) => m.id !== id));\n }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n effect,\n inject,\n input,\n numberAttribute,\n PLATFORM_ID,\n TemplateRef,\n} from '@angular/core';\nimport { UiMotion, UiMotionPreset } from '@4sh/ui-kit/motion';\nimport { UiToast } from './ui-toast';\nimport { UiToastService } from './ui-toast.service';\nimport { UiToastId, UiToastMessage, UiToastPosition } from './ui-toast.types';\n\n/** Enter/leave motion preset that best fits each anchor edge. */\nconst MOTION_BY_POSITION: Record<UiToastPosition, UiMotionPreset> = {\n 'top-left': 'slide-down',\n 'top-center': 'slide-down',\n 'top-right': 'slide-down',\n 'bottom-left': 'slide-up',\n 'bottom-center': 'slide-up',\n 'bottom-right': 'slide-up',\n center: 'zoom',\n};\n\n/** Base stacking level — mirrors `$toast-z-index` in the SCSS. */\nconst TOAST_BASE_Z_INDEX = 1100;\n\n/** Process-wide sequence so `autoZIndex` layers later stacks above earlier ones. */\nlet zIndexSeq = 0;\n\n/**\n * ui-toast-container — the viewport-pinned stack that renders {@link UiToastService}\n * messages as {@link UiToast} cards.\n *\n * Drop one near the app root (e.g. in `app.html`). It reads the service store\n * reactively, shows the slice matching its `key`, animates insert/remove through\n * the shared motion system (`animate.enter` / `animate.leave`), and auto-dismisses\n * non-sticky toasts after `life` ms — pausing the countdown while hovered.\n *\n * Positioning is `fixed` by default (relative to the viewport); set `contained`\n * to switch to `absolute` so the stack stays inside the nearest positioned\n * ancestor (used by the Storybook demos).\n *\n * @example\n * ```html\n * <ui-toast-container position=\"top-right\" [life]=\"4000\" />\n * ```\n */\n@Component({\n selector: 'ui-toast-container',\n imports: [UiToast, UiMotion, NgTemplateOutlet],\n templateUrl: './ui-toast-container.html',\n styleUrl: './ui-toast-container.scss',\n})\nexport class UiToastContainer {\n /** Only render messages whose `key` matches (omit to render key-less messages). */\n key = input<string>();\n /** Where the stack is pinned in the viewport. */\n position = input<UiToastPosition>('top-right');\n /** Default auto-dismiss delay (ms) for non-sticky toasts. Per-message `life` wins. */\n life = input(4000, { transform: numberAttribute });\n /** Render toasts as full-width banners (fill the region width). */\n expanded = input(false, { transform: booleanAttribute });\n /** Motion preset override. Defaults to a per-position choice. */\n motion = input<UiMotionPreset>();\n /** Disable enter/leave animation for this stack. */\n motionDisabled = input(false, { transform: booleanAttribute });\n /** Use `position: absolute` (scoped to a positioned ancestor) instead of `fixed`. */\n contained = input(false, { transform: booleanAttribute });\n /**\n * Custom content template rendered inside each card in place of `title`/`text`.\n * Context: `{ $implicit: message, closeFn }`.\n */\n template = input<TemplateRef<unknown>>();\n /** Extra class(es) merged onto the region root. */\n styleClass = input<string>();\n /** Show only the N most recent toasts; older ones wait their turn (`0` = no limit). */\n stackVisibleLimit = input(0, { transform: numberAttribute });\n /** Gap between stacked cards in px (overrides the `--units-sm` token default). */\n stackGap = input<number>();\n /** Skip a new toast whose content (level + title + text) matches a live one. */\n preventDuplicates = input(false, { transform: booleanAttribute });\n /** Automatically layer this stack above earlier ones (later container wins). */\n autoZIndex = input(true, { transform: booleanAttribute });\n /** Floor z-index for the stack (added to the auto value, or used as-is when `autoZIndex=false`). */\n baseZIndex = input(0, { transform: numberAttribute });\n\n /** @ignore */\n private readonly service = inject(UiToastService);\n /** @ignore Per-instance layering rank for `autoZIndex`. */\n private readonly zSeq = ++zIndexSeq;\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n /** @ignore All live messages routed to this container (drives timers/dedup). */\n private readonly keyed = computed(() =>\n this.service.messages().filter((m) => m.key === this.key()),\n );\n\n /** @ignore Rendered slice — the most recent `stackVisibleLimit` toasts. */\n protected readonly items = computed(() => {\n const all = this.keyed();\n const limit = this.stackVisibleLimit();\n return limit > 0 ? all.slice(-limit) : all;\n });\n\n /** @ignore Effective stacking level. */\n protected readonly zIndex = computed(() => {\n const base = this.baseZIndex();\n if (this.autoZIndex()) return TOAST_BASE_Z_INDEX + base + this.zSeq;\n return base > 0 ? base : TOAST_BASE_Z_INDEX;\n });\n\n /** @ignore Resolved enter/leave preset. */\n protected readonly motionPreset = computed<UiMotionPreset>(\n () => this.motion() ?? MOTION_BY_POSITION[this.position()],\n );\n\n /** @ignore */\n protected readonly regionClass = computed(() => {\n const c = ['ui-toast-region', `_${this.position()}`];\n if (this.contained()) c.push('_contained');\n if (this.expanded()) c.push('_expanded');\n // Anchor at the bottom edge → newest toast nearest the edge (column-reverse in SCSS).\n if (this.position().startsWith('bottom')) c.push('_reverse');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n // --- Life timers (auto-dismiss, hover-pausable) ----------------------\n\n /** @ignore Active timeout handles, keyed by message id. */\n private readonly timers = new Map<UiToastId, ReturnType<typeof setTimeout>>();\n /** @ignore Remaining ms per message (survives hover pause). */\n private readonly remaining = new Map<UiToastId, number>();\n /** @ignore Wall-clock start of the running countdown, per message. */\n private readonly startedAt = new Map<UiToastId, number>();\n\n constructor() {\n // Reconcile dedup + life timers whenever this container's message set changes.\n effect(() => {\n const keyed = this.keyed();\n\n // preventDuplicates: drop later toasts whose content matches an earlier one.\n if (this.preventDuplicates()) {\n const seen = new Set<string>();\n const dupes: UiToastId[] = [];\n for (const m of keyed) {\n const sig = `${m.level ?? 'default'}|${m.title ?? ''}|${m.text ?? ''}`;\n if (seen.has(sig)) dupes.push(m.id!);\n else seen.add(sig);\n }\n if (dupes.length) {\n // Store mutation re-runs this effect on the deduplicated set.\n dupes.forEach((id) => this.service.remove(id));\n return;\n }\n }\n\n const liveIds = new Set(keyed.map((m) => m.id));\n\n // Drop timer bookkeeping for messages that are gone.\n for (const id of [...this.timers.keys()]) {\n if (!liveIds.has(id)) this.forget(id);\n }\n for (const id of [...this.remaining.keys()]) {\n if (!liveIds.has(id)) this.remaining.delete(id);\n }\n\n if (!this.isBrowser) return;\n\n // Arm a countdown for each new, non-sticky message (even ones beyond the\n // visible limit, so a queued toast still expires on schedule).\n for (const message of keyed) {\n const id = message.id!;\n if (message.sticky) continue;\n if (this.timers.has(id) || this.remaining.has(id)) continue;\n const life = message.life ?? this.life();\n if (life > 0) this.arm(id, life);\n }\n });\n\n inject(DestroyRef).onDestroy(() => {\n for (const id of [...this.timers.keys()]) this.forget(id);\n });\n }\n\n /** @ignore Start (or restart) a countdown of `ms` for a message. */\n private arm(id: UiToastId, ms: number): void {\n this.remaining.set(id, ms);\n this.startedAt.set(id, Date.now());\n this.timers.set(\n id,\n setTimeout(() => {\n this.timers.delete(id);\n this.service.remove(id);\n }, ms),\n );\n }\n\n /** @ignore Cancel and drop all timer bookkeeping for a message. */\n private forget(id: UiToastId): void {\n const handle = this.timers.get(id);\n if (handle) clearTimeout(handle);\n this.timers.delete(id);\n this.startedAt.delete(id);\n }\n\n /** @ignore Pause the countdown on hover/focus (banks the remaining time). */\n protected pause(id: UiToastId | undefined): void {\n if (id == null) return;\n const handle = this.timers.get(id);\n if (!handle) return;\n clearTimeout(handle);\n this.timers.delete(id);\n const banked = this.remaining.get(id) ?? 0;\n const elapsed = Date.now() - (this.startedAt.get(id) ?? Date.now());\n this.remaining.set(id, Math.max(banked - elapsed, 0));\n }\n\n /** @ignore Resume a paused countdown when the pointer/focus leaves. */\n protected resume(id: UiToastId | undefined): void {\n if (id == null || !this.isBrowser) return;\n if (this.timers.has(id)) return;\n const left = this.remaining.get(id);\n if (left == null || left <= 0) return;\n this.arm(id, left);\n }\n\n /** @ignore Dismiss a toast (close button or a custom template's `closeFn`). */\n protected dismiss(message: UiToastMessage): void {\n if (message.id != null) this.service.remove(message.id);\n }\n\n /** @ignore Template-context factory: a bound close handler for one message. */\n protected closeFn(message: UiToastMessage): () => void {\n return () => this.dismiss(message);\n }\n}\n","<div [class]=\"regionClass()\" [style.z-index]=\"zIndex()\" [style.gap.px]=\"stackGap() ?? null\">\n @for (item of items(); track item.id) {\n <div\n class=\"ui-toast-region-item\"\n [uiMotion]=\"motionPreset()\"\n [motionDisabled]=\"motionDisabled()\"\n #m=\"uiMotion\"\n [animate.enter]=\"m.enter()\"\n [animate.leave]=\"m.leave()\"\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\n >\n <ui-toast\n [level]=\"item.level ?? 'default'\"\n [subLevel]=\"item.subLevel ?? 'high'\"\n [title]=\"template() ? undefined : item.title\"\n [text]=\"template() ? undefined : item.text\"\n [icon]=\"item.icon ?? true\"\n [closable]=\"item.closable ?? true\"\n [expanded]=\"expanded()\"\n [styleClass]=\"item.styleClass\"\n (closed)=\"dismiss(item)\"\n >\n @if (template(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: item, closeFn: closeFn(item) }\"\n />\n }\n </ui-toast>\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-toast\n */\n\nexport * from './lib/ui-toast-container';\nexport * from './lib/ui-toast.service';\nexport * from './lib/ui-toast';\nexport * from './lib/ui-toast.types';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAiBA;AACO,MAAM,kBAAkB,GAA+B;IAC5D,UAAU;IACV,YAAY;IACZ,WAAW;IACX,aAAa;IACb,eAAe;IACf,cAAc;IACd,QAAQ;;AAgDV;AACO,MAAM,sBAAsB,GAAoC;AACrE,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;;;AC1EhB;;;;;;;;;;;;;;;AAeG;MAYU,OAAO,CAAA;AAXpB,IAAA,WAAA,GAAA;;AAaE,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;QAEtB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;;QAEzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,MAAM;qFAAC;AACpC;;;AAGG;QACH,IAAA,CAAA,IAAI,GAAG,KAAK,CAAmB,IAAI;iFAAC;;QAEpC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEvD,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,cAAc;sFAAC;;QAE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A,OAAA,EAAA,MAAA,EAAA,OAAA,EAAA,UAAA,EAAA,MAAA,EAAA,UAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,UAAA,EAAA,YAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,QAAQ,qQAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIlC,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,WACrB,CAAC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,+pCAAA,EAAA,MAAA,EAAA,CAAA,i0DAAA,CAAA,EAAA;;;AExDhD;;AAEG;;ACFH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-informative-ui-toast.mjs","sources":["../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.types.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.html","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.service.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast-container.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast-container.html","../../../projects/ui-kit/informative/ui-toast/src/public-api.ts","../../../projects/ui-kit/informative/ui-toast/src/4sh-ui-kit-informative-ui-toast.ts"],"sourcesContent":["import { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\n/** Unique identifier of a toast message (auto-generated when omitted). */\nexport type UiToastId = string | number;\n\n/**\n * Where a {@link UiToastContainer} pins its stack in the viewport.\n */\nexport type UiToastPosition =\n | 'top-left'\n | 'top-center'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'bottom-right'\n | 'center';\n\n/** All positions, in declaration order (handy for stories/docs). */\nexport const UI_TOAST_POSITIONS: readonly UiToastPosition[] = [\n 'top-left',\n 'top-center',\n 'top-right',\n 'bottom-left',\n 'bottom-center',\n 'bottom-right',\n 'center',\n];\n\n/**\n * A single toast message pushed through the {@link UiToastService}.\n *\n * Only `title`/`text` are typically needed; everything else has a sensible\n * default resolved by the container.\n * remapped to this design system's semantic `level` / `subLevel` vocabulary.\n */\nexport interface UiToastMessage {\n /** Unique id. Auto-generated by the service when omitted. */\n id?: UiToastId;\n /** Routes the message to the container(s) sharing the same `key`. */\n key?: string;\n /** Semantic level (drives colours + default icon). */\n level?: UiFeedbackLevel;\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel?: UiSubLevel;\n /** Bold heading line. */\n title?: string;\n /** Supporting body line. */\n text?: string;\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or omit / `true` for the level's default icon.\n */\n icon?: string | boolean;\n /** Show the dismiss button (default `true`). */\n closable?: boolean;\n /** Never auto-dismiss — the user must close it (default `false`). */\n sticky?: boolean;\n /** Auto-dismiss delay in ms. Falls back to the container `life`. */\n life?: number;\n /** Arbitrary payload forwarded to a custom `template` (custom / action toasts). */\n data?: unknown;\n /** Extra class(es) applied to the toast card for one-off styling. */\n styleClass?: string;\n}\n\n/** Context object handed to a container's custom content `template`. */\nexport interface UiToastTemplateContext {\n /** The message being rendered. */\n $implicit: UiToastMessage;\n /** Dismisses this toast (same as clicking the close button). */\n closeFn: () => void;\n}\n\n/** Default leading icon per semantic level (FontAwesome names, from the Figma source). */\nexport const UI_TOAST_DEFAULT_ICONS: Record<UiFeedbackLevel, string> = {\n default: 'info-circle',\n highlight: 'info-circle',\n success: 'check',\n warning: 'warning',\n error: 'times',\n};\n","import { booleanAttribute, Component, computed, input, output } from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\nimport { UI_TOAST_DEFAULT_ICONS } from './ui-toast.types';\n\n/**\n * ui-toast — presentational notification card.\n *\n * Headless & fully token-driven (the `informative` category): surface, content\n * and stroke all come from `--informative-{level}{sub}-*`. It renders the Figma\n * anatomy (leading icon · title/text · dismiss button) and projects `<ng-content>`\n * in the content region for custom bodies or action buttons.\n *\n * Usually rendered for you by {@link UiToastContainer} from a {@link UiToastService}\n * message, but it is a plain standalone card — drop `<ui-toast>` anywhere.\n *\n * @example\n * ```html\n * <ui-toast level=\"success\" title=\"Enregistré\" text=\"Profil mis à jour.\" (closed)=\"…\" />\n * ```\n */\n@Component({\n selector: 'ui-toast',\n imports: [UiIcon],\n templateUrl: './ui-toast.html',\n styleUrl: './ui-toast.scss',\n host: {\n // Hug content by default; the container makes it fill the region in banner mode.\n '[style.display]': \"'inline-flex'\",\n '[style.maxWidth]': \"'100%'\",\n },\n})\nexport class UiToast {\n /** Bold heading line. */\n title = input<string>();\n /** Supporting body line. */\n text = input<string>();\n /** Semantic level — colours + default icon. */\n level = input<UiFeedbackLevel>('default');\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel = input<UiSubLevel>('high');\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or `true` (default) for the level's default icon.\n */\n icon = input<string | boolean>(true);\n /** Show the dismiss button (default `true`). */\n closable = input(true, { transform: booleanAttribute });\n /** FontAwesome name of the dismiss icon. */\n closeIcon = input<string>('times-circle');\n /** Accessible label of the dismiss button. */\n closeAriaLabel = input<string>('Fermer');\n /** Stretch the card to fill its region width (banner-style). */\n expanded = input(false, { transform: booleanAttribute });\n /** Extra class(es) merged onto the card root. */\n styleClass = input<string>();\n\n /** Emitted when the user clicks the dismiss button. */\n closed = output<MouseEvent>();\n\n /** @ignore Resolved leading icon name (null when hidden). */\n protected readonly iconName = computed<string | null>(() => {\n const icon = this.icon();\n if (icon === false) return null;\n if (typeof icon === 'string') return icon;\n return UI_TOAST_DEFAULT_ICONS[this.level()];\n });\n\n /** @ignore ARIA role — assertive alert for error/warning, polite status otherwise\n * (mirrors ui-alert, so a standalone ui-toast self-announces without the container). */\n protected readonly role = computed(() =>\n this.level() === 'error' || this.level() === 'warning' ? 'alert' : 'status',\n );\n\n /** @ignore */\n protected readonly ariaLive = computed(() =>\n this.level() === 'error' || this.level() === 'warning' ? 'assertive' : 'polite',\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-toast', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.expanded()) c.push('_expanded');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n /** @ignore */\n protected onClose(event: MouseEvent): void {\n this.closed.emit(event);\n }\n}\n","<div [class]=\"classes()\" [attr.role]=\"role()\" [attr.aria-live]=\"ariaLive()\" aria-atomic=\"true\">\n @if (iconName(); as name) {\n <span class=\"ui-toast-icon\">\n <ui-icon [name]=\"name\" size=\"md\" />\n </span>\n }\n\n <div class=\"ui-toast-content\">\n @if (title(); as t) {\n <span class=\"ui-toast-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-toast-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-toast-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose($event)\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n</div>\n","import { computed, Injectable, signal } from '@angular/core';\nimport { UiToastId, UiToastMessage } from './ui-toast.types';\n\n/** Process-wide counter guaranteeing unique auto-generated toast ids. */\nlet nextId = 0;\n\n/**\n * ui-toast service — programmatic entry point to push and clear toasts.\n *\n * Signal-based store:\n * `add`/`addAll` append messages, `clear`/`remove` drop them. One or more\n * {@link UiToastContainer} instances read this store reactively and render the\n * slice that matches their `key`. Provided in root, so a single injection is\n * shared across the app.\n *\n * @example\n * ```ts\n * private readonly toast = inject(UiToastService);\n * this.toast.add({ level: 'success', title: 'Enregistré', text: 'Profil mis à jour.' });\n * ```\n */\n@Injectable({ providedIn: 'root' })\nexport class UiToastService {\n /** @ignore Backing store of live messages. */\n private readonly _messages = signal<UiToastMessage[]>([]);\n\n /** Live messages, in insertion order (read-only). */\n readonly messages = this._messages.asReadonly();\n\n /** Total number of live messages across every key. */\n readonly count = computed(() => this._messages().length);\n\n /**\n * Push a single message. Returns its (possibly generated) id so the caller\n * can dismiss it later (e.g. resolving a \"loading\" toast into a result).\n */\n add(message: UiToastMessage): UiToastId {\n const id = message.id ?? `ui-toast-${nextId++}`;\n this._messages.update((list) => [...list, { ...message, id }]);\n return id;\n }\n\n /** Push several messages at once. Returns their ids, in order. */\n addAll(messages: UiToastMessage[]): UiToastId[] {\n return messages.map((message) => this.add(message));\n }\n\n /**\n * Remove messages. With no argument, clears everything; with a `key`, clears\n * only the messages routed to that key.\n */\n clear(key?: string): void {\n if (key == null) {\n this._messages.set([]);\n return;\n }\n this._messages.update((list) => list.filter((m) => m.key !== key));\n }\n\n /** Remove a single message by id (no-op if it is already gone). */\n remove(id: UiToastId): void {\n this._messages.update((list) => list.filter((m) => m.id !== id));\n }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n effect,\n inject,\n input,\n numberAttribute,\n PLATFORM_ID,\n TemplateRef,\n} from '@angular/core';\nimport { UiMotion, UiMotionPreset } from '@4sh/ui-kit/motion';\nimport { UiToast } from './ui-toast';\nimport { UiToastService } from './ui-toast.service';\nimport { UiToastId, UiToastMessage, UiToastPosition } from './ui-toast.types';\n\n/** Enter/leave motion preset that best fits each anchor edge. */\nconst MOTION_BY_POSITION: Record<UiToastPosition, UiMotionPreset> = {\n 'top-left': 'slide-down',\n 'top-center': 'slide-down',\n 'top-right': 'slide-down',\n 'bottom-left': 'slide-up',\n 'bottom-center': 'slide-up',\n 'bottom-right': 'slide-up',\n center: 'zoom',\n};\n\n/** Base stacking level — mirrors `$toast-z-index` in the SCSS. */\nconst TOAST_BASE_Z_INDEX = 1100;\n\n/** Process-wide sequence so `autoZIndex` layers later stacks above earlier ones. */\nlet zIndexSeq = 0;\n\n/**\n * ui-toast-container — the viewport-pinned stack that renders {@link UiToastService}\n * messages as {@link UiToast} cards.\n *\n * Drop one near the app root (e.g. in `app.html`). It reads the service store\n * reactively, shows the slice matching its `key`, animates insert/remove through\n * the shared motion system (`animate.enter` / `animate.leave`), and auto-dismisses\n * non-sticky toasts after `life` ms — pausing the countdown while hovered.\n *\n * Positioning is `fixed` by default (relative to the viewport); set `contained`\n * to switch to `absolute` so the stack stays inside the nearest positioned\n * ancestor (used by the Storybook demos).\n *\n * @example\n * ```html\n * <ui-toast-container position=\"top-right\" [life]=\"4000\" />\n * ```\n */\n@Component({\n selector: 'ui-toast-container',\n imports: [UiToast, UiMotion, NgTemplateOutlet],\n templateUrl: './ui-toast-container.html',\n styleUrl: './ui-toast-container.scss',\n})\nexport class UiToastContainer {\n /** Only render messages whose `key` matches (omit to render key-less messages). */\n key = input<string>();\n /** Where the stack is pinned in the viewport. */\n position = input<UiToastPosition>('top-right');\n /** Default auto-dismiss delay (ms) for non-sticky toasts. Per-message `life` wins. */\n life = input(4000, { transform: numberAttribute });\n /** Render toasts as full-width banners (fill the region width). */\n expanded = input(false, { transform: booleanAttribute });\n /** Motion preset override. Defaults to a per-position choice. */\n motion = input<UiMotionPreset>();\n /** Disable enter/leave animation for this stack. */\n motionDisabled = input(false, { transform: booleanAttribute });\n /** Use `position: absolute` (scoped to a positioned ancestor) instead of `fixed`. */\n contained = input(false, { transform: booleanAttribute });\n /**\n * Custom content template rendered inside each card in place of `title`/`text`.\n * Context: `{ $implicit: message, closeFn }`.\n */\n template = input<TemplateRef<unknown>>();\n /** Extra class(es) merged onto the region root. */\n styleClass = input<string>();\n /** Show only the N most recent toasts; older ones wait their turn (`0` = no limit). */\n stackVisibleLimit = input(0, { transform: numberAttribute });\n /** Gap between stacked cards in px (overrides the `--units-sm` token default). */\n stackGap = input<number>();\n /** Skip a new toast whose content (level + title + text) matches a live one. */\n preventDuplicates = input(false, { transform: booleanAttribute });\n /** Automatically layer this stack above earlier ones (later container wins). */\n autoZIndex = input(true, { transform: booleanAttribute });\n /** Floor z-index for the stack (added to the auto value, or used as-is when `autoZIndex=false`). */\n baseZIndex = input(0, { transform: numberAttribute });\n\n /** @ignore */\n private readonly service = inject(UiToastService);\n /** @ignore Per-instance layering rank for `autoZIndex`. */\n private readonly zSeq = ++zIndexSeq;\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n /** @ignore All live messages routed to this container (drives timers/dedup). */\n private readonly keyed = computed(() =>\n this.service.messages().filter((m) => m.key === this.key()),\n );\n\n /** @ignore Rendered slice — the most recent `stackVisibleLimit` toasts. */\n protected readonly items = computed(() => {\n const all = this.keyed();\n const limit = this.stackVisibleLimit();\n return limit > 0 ? all.slice(-limit) : all;\n });\n\n /** @ignore Effective stacking level. */\n protected readonly zIndex = computed(() => {\n const base = this.baseZIndex();\n if (this.autoZIndex()) return TOAST_BASE_Z_INDEX + base + this.zSeq;\n return base > 0 ? base : TOAST_BASE_Z_INDEX;\n });\n\n /** @ignore Resolved enter/leave preset. */\n protected readonly motionPreset = computed<UiMotionPreset>(\n () => this.motion() ?? MOTION_BY_POSITION[this.position()],\n );\n\n /** @ignore */\n protected readonly regionClass = computed(() => {\n const c = ['ui-toast-region', `_${this.position()}`];\n if (this.contained()) c.push('_contained');\n if (this.expanded()) c.push('_expanded');\n // Anchor at the bottom edge → newest toast nearest the edge (column-reverse in SCSS).\n if (this.position().startsWith('bottom')) c.push('_reverse');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n // --- Life timers (auto-dismiss, hover-pausable) ----------------------\n\n /** @ignore Active timeout handles, keyed by message id. */\n private readonly timers = new Map<UiToastId, ReturnType<typeof setTimeout>>();\n /** @ignore Remaining ms per message (survives hover pause). */\n private readonly remaining = new Map<UiToastId, number>();\n /** @ignore Wall-clock start of the running countdown, per message. */\n private readonly startedAt = new Map<UiToastId, number>();\n\n constructor() {\n // Reconcile dedup + life timers whenever this container's message set changes.\n effect(() => {\n const keyed = this.keyed();\n\n // preventDuplicates: drop later toasts whose content matches an earlier one.\n if (this.preventDuplicates()) {\n const seen = new Set<string>();\n const dupes: UiToastId[] = [];\n for (const m of keyed) {\n const sig = `${m.level ?? 'default'}|${m.title ?? ''}|${m.text ?? ''}`;\n if (seen.has(sig)) dupes.push(m.id!);\n else seen.add(sig);\n }\n if (dupes.length) {\n // Store mutation re-runs this effect on the deduplicated set.\n dupes.forEach((id) => this.service.remove(id));\n return;\n }\n }\n\n const liveIds = new Set(keyed.map((m) => m.id));\n\n // Drop timer bookkeeping for messages that are gone.\n for (const id of [...this.timers.keys()]) {\n if (!liveIds.has(id)) this.forget(id);\n }\n for (const id of [...this.remaining.keys()]) {\n if (!liveIds.has(id)) this.remaining.delete(id);\n }\n\n if (!this.isBrowser) return;\n\n // Arm a countdown for each new, non-sticky message (even ones beyond the\n // visible limit, so a queued toast still expires on schedule).\n for (const message of keyed) {\n const id = message.id!;\n if (message.sticky) continue;\n if (this.timers.has(id) || this.remaining.has(id)) continue;\n const life = message.life ?? this.life();\n if (life > 0) this.arm(id, life);\n }\n });\n\n inject(DestroyRef).onDestroy(() => {\n for (const id of [...this.timers.keys()]) this.forget(id);\n });\n }\n\n /** @ignore Start (or restart) a countdown of `ms` for a message. */\n private arm(id: UiToastId, ms: number): void {\n this.remaining.set(id, ms);\n this.startedAt.set(id, Date.now());\n this.timers.set(\n id,\n setTimeout(() => {\n this.timers.delete(id);\n this.service.remove(id);\n }, ms),\n );\n }\n\n /** @ignore Cancel and drop all timer bookkeeping for a message. */\n private forget(id: UiToastId): void {\n const handle = this.timers.get(id);\n if (handle) clearTimeout(handle);\n this.timers.delete(id);\n this.startedAt.delete(id);\n }\n\n /** @ignore Pause the countdown on hover/focus (banks the remaining time). */\n protected pause(id: UiToastId | undefined): void {\n if (id == null) return;\n const handle = this.timers.get(id);\n if (!handle) return;\n clearTimeout(handle);\n this.timers.delete(id);\n const banked = this.remaining.get(id) ?? 0;\n const elapsed = Date.now() - (this.startedAt.get(id) ?? Date.now());\n this.remaining.set(id, Math.max(banked - elapsed, 0));\n }\n\n /** @ignore Resume a paused countdown when the pointer/focus leaves. */\n protected resume(id: UiToastId | undefined): void {\n if (id == null || !this.isBrowser) return;\n if (this.timers.has(id)) return;\n const left = this.remaining.get(id);\n if (left == null || left <= 0) return;\n this.arm(id, left);\n }\n\n /** @ignore Dismiss a toast (close button or a custom template's `closeFn`). */\n protected dismiss(message: UiToastMessage): void {\n if (message.id != null) this.service.remove(message.id);\n }\n\n /** @ignore Template-context factory: a bound close handler for one message. */\n protected closeFn(message: UiToastMessage): () => void {\n return () => this.dismiss(message);\n }\n}\n","<div [class]=\"regionClass()\" [style.z-index]=\"zIndex()\" [style.gap.px]=\"stackGap() ?? null\">\n @for (item of items(); track item.id) {\n <div\n class=\"ui-toast-region-item\"\n [uiMotion]=\"motionPreset()\"\n [motionDisabled]=\"motionDisabled()\"\n #m=\"uiMotion\"\n [animate.enter]=\"m.enter()\"\n [animate.leave]=\"m.leave()\"\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\n >\n <ui-toast\n [level]=\"item.level ?? 'default'\"\n [subLevel]=\"item.subLevel ?? 'high'\"\n [title]=\"template() ? undefined : item.title\"\n [text]=\"template() ? undefined : item.text\"\n [icon]=\"item.icon ?? true\"\n [closable]=\"item.closable ?? true\"\n [expanded]=\"expanded()\"\n [styleClass]=\"item.styleClass\"\n (closed)=\"dismiss(item)\"\n >\n @if (template(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: item, closeFn: closeFn(item) }\"\n />\n }\n </ui-toast>\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-toast\n */\n\nexport * from './lib/ui-toast-container';\nexport * from './lib/ui-toast.service';\nexport * from './lib/ui-toast';\nexport * from './lib/ui-toast.types';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAiBA;AACO,MAAM,kBAAkB,GAA+B;IAC5D,UAAU;IACV,YAAY;IACZ,WAAW;IACX,aAAa;IACb,eAAe;IACf,cAAc;IACd,QAAQ;;AAgDV;AACO,MAAM,sBAAsB,GAAoC;AACrE,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,OAAO;;;AC1EhB;;;;;;;;;;;;;;;AAeG;MAYU,OAAO,CAAA;AAXpB,IAAA,WAAA,GAAA;;AAaE,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;QAEtB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;;QAEzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,MAAM;qFAAC;AACpC;;;AAGG;QACH,IAAA,CAAA,IAAI,GAAG,KAAK,CAAmB,IAAI;iFAAC;;QAEpC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEvD,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,cAAc;sFAAC;;QAEzC,IAAA,CAAA,cAAc,GAAG,KAAK,CAAS,QAAQ;2FAAC;;QAExC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAExD,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAU;;QAG5B,IAAA,CAAA,MAAM,G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,qQAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIlC,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,WACrB,CAAC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,+pCAAA,EAAA,MAAA,EAAA,CAAA,i0DAAA,CAAA,EAAA;;;AExDhD;;AAEG;;ACFH;;AAEG;;"}
|
|
@@ -586,11 +586,11 @@ class UiBottomSheet {
|
|
|
586
586
|
return this.document.defaultView?.innerHeight ?? this.dragStartHeight;
|
|
587
587
|
}
|
|
588
588
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiBottomSheet, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
589
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiBottomSheet, isStandalone: true, selector: "ui-bottom-sheet", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, hasBackdrop: { classPropertyName: "hasBackdrop", publicName: "hasBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnOverlayClick: { classPropertyName: "closeOnOverlayClick", publicName: "closeOnOverlayClick", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: true, isRequired: false, transformFunction: null }, enableDragToClose: { classPropertyName: "enableDragToClose", publicName: "enableDragToClose", isSignal: true, isRequired: false, transformFunction: null }, dragThreshold: { classPropertyName: "dragThreshold", publicName: "dragThreshold", isSignal: true, isRequired: false, transformFunction: null }, enableSnapping: { classPropertyName: "enableSnapping", publicName: "enableSnapping", isSignal: true, isRequired: false, transformFunction: null }, showHandle: { classPropertyName: "showHandle", publicName: "showHandle", isSignal: true, isRequired: false, transformFunction: null }, trapFocus: { classPropertyName: "trapFocus", publicName: "trapFocus", isSignal: true, isRequired: false, transformFunction: null }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, autoFocusElement: { classPropertyName: "autoFocusElement", publicName: "autoFocusElement", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, handleAriaLabel: { classPropertyName: "handleAriaLabel", publicName: "handleAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, safeArea: { classPropertyName: "safeArea", publicName: "safeArea", isSignal: true, isRequired: false, transformFunction: null }, contained: { classPropertyName: "contained", publicName: "contained", isSignal: true, isRequired: false, transformFunction: null }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", opened: "opened", closed: "closed" }, queries: [{ propertyName: "headerSlot", first: true, predicate: UiBottomSheetHeader, descendants: true, isSignal: true }, { propertyName: "contentSlot", first: true, predicate: UiBottomSheetContent, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: UiBottomSheetFooter, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "positionerRef", first: true, predicate: ["positioner"], descendants: true, isSignal: true }, { propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n", styles: [".ui-bottom-sheet-scrim{position:fixed;inset:0;z-index:var(--ui-bottom-sheet-z-index, 1100);background-color:var(--ui-bottom-sheet-mask-background, var(--primitives-black-50));opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-scrim._open{opacity:1}.ui-bottom-sheet-scrim._contained{position:absolute}.ui-bottom-sheet-scrim._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-scrim{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-scrim{transition-duration:.01ms}.ui-bottom-sheet-positioner{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--ui-bottom-sheet-z-index, 1100);display:flex;justify-content:center;transition:transform var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-positioner._contained{position:absolute}.ui-bottom-sheet-positioner._dragging,.ui-bottom-sheet-positioner._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-positioner{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-positioner{transition-duration:.01ms}.ui-bottom-sheet{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:var(--ui-bottom-sheet-max-width, 90rem);max-height:var(--ui-bottom-sheet-max-height, 92dvh);border-radius:var(--ui-bottom-sheet-radius, var(--radius-default)) var(--ui-bottom-sheet-radius, var(--radius-default)) 0 0;background-color:var(--ui-bottom-sheet-surface, var(--global-background-default));box-shadow:var(--ui-bottom-sheet-shadow, var(--shadow-default-lg));color:var(--ui-bottom-sheet-color, var(--global-text-default));font-family:var(--ui-bottom-sheet-font-family, var(--fontfamily-base));overflow:hidden;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:height var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet._half{height:var(--ui-bottom-sheet-half-height, 50dvh)}.ui-bottom-sheet._full{height:var(--ui-bottom-sheet-full-height, 100dvh);max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging{max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging,.ui-bottom-sheet._no-motion{transition:none}.ui-bottom-sheet._contained{max-height:92%}.ui-bottom-sheet._contained._half{height:50%}.ui-bottom-sheet._contained._full{height:100%;max-height:100%}.ui-bottom-sheet._contained._dragging{max-height:100%}.ui-bottom-sheet._safe-area{padding-bottom:var(--ui-bottom-sheet-safe-area-offset, env(safe-area-inset-bottom, 0px))}.ui-bottom-sheet-grab{flex:0 0 auto;display:flex;flex-direction:column;padding:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm)) var(--ui-bottom-sheet-grab-padding-x, var(--units-md))}.ui-bottom-sheet-grab._draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.ui-bottom-sheet-grab._draggable:active{cursor:grabbing}.ui-bottom-sheet-handle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);margin-inline:auto;padding:0;border:none;border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background:none}.ui-bottom-sheet-handle:after{content:\"\";display:block;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background-color:var(--ui-bottom-sheet-handle-color, var(--global-text-default))}.ui-bottom-sheet-handle._operable{width:var(--ui-bottom-sheet-handle-target-width, 4rem);height:var(--ui-bottom-sheet-handle-target-height, 1.5rem)}.ui-bottom-sheet-handle._operable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-handle-focus-ring-color, var(--global-border-focus))}.ui-bottom-sheet-header{flex:0 0 auto;display:flex;align-items:flex-start;gap:var(--ui-bottom-sheet-header-gap, var(--units-sm));padding-top:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm))}.ui-bottom-sheet-grab>.ui-bottom-sheet-header:first-child{padding-top:0}.ui-bottom-sheet-title{flex:1 1 auto;min-width:0;margin:0;font-family:var(--ui-bottom-sheet-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);font-weight:var(--ui-bottom-sheet-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-bottom-sheet-action{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-action-size, 2rem);height:var(--ui-bottom-sheet-action-size, 2rem);padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-bottom-sheet-action:hover{background-color:var(--ui-bottom-sheet-close-surface-hover, var(--global-background-muted-hover));color:var(--ui-bottom-sheet-close-color-hover, var(--global-text-muted-hover))}.ui-bottom-sheet-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-close-focus-ring-color, var(--global-border-focus))}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-action{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-action{transition-duration:.01ms}.ui-bottom-sheet-content{flex:1 1 auto;min-height:0;padding:var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));overflow-y:auto;overscroll-behavior:contain;font-size:var(--size-typography-text-md);line-height:1.5}.ui-bottom-sheet-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-bottom-sheet-footer-gap, var(--units-default));padding:var(--ui-bottom-sheet-footer-padding-top, var(--units-sm)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));border-top:var(--ui-bottom-sheet-footer-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-sheet-footer-stroke, transparent)}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
589
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: UiBottomSheet, isStandalone: true, selector: "ui-bottom-sheet", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, hasBackdrop: { classPropertyName: "hasBackdrop", publicName: "hasBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnOverlayClick: { classPropertyName: "closeOnOverlayClick", publicName: "closeOnOverlayClick", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: true, isRequired: false, transformFunction: null }, enableDragToClose: { classPropertyName: "enableDragToClose", publicName: "enableDragToClose", isSignal: true, isRequired: false, transformFunction: null }, dragThreshold: { classPropertyName: "dragThreshold", publicName: "dragThreshold", isSignal: true, isRequired: false, transformFunction: null }, enableSnapping: { classPropertyName: "enableSnapping", publicName: "enableSnapping", isSignal: true, isRequired: false, transformFunction: null }, showHandle: { classPropertyName: "showHandle", publicName: "showHandle", isSignal: true, isRequired: false, transformFunction: null }, trapFocus: { classPropertyName: "trapFocus", publicName: "trapFocus", isSignal: true, isRequired: false, transformFunction: null }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, autoFocusElement: { classPropertyName: "autoFocusElement", publicName: "autoFocusElement", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, handleAriaLabel: { classPropertyName: "handleAriaLabel", publicName: "handleAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, safeArea: { classPropertyName: "safeArea", publicName: "safeArea", isSignal: true, isRequired: false, transformFunction: null }, contained: { classPropertyName: "contained", publicName: "contained", isSignal: true, isRequired: false, transformFunction: null }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", opened: "opened", closed: "closed" }, queries: [{ propertyName: "headerSlot", first: true, predicate: UiBottomSheetHeader, descendants: true, isSignal: true }, { propertyName: "contentSlot", first: true, predicate: UiBottomSheetContent, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: UiBottomSheetFooter, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "positionerRef", first: true, predicate: ["positioner"], descendants: true, isSignal: true }, { propertyName: "panelRef", first: true, predicate: ["panel"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n", styles: [".ui-bottom-sheet-scrim{position:fixed;inset:0;z-index:var(--ui-bottom-sheet-z-index, 1100);background-color:var(--ui-bottom-sheet-mask-background, var(--primitives-black-50));opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-scrim._open{opacity:1}.ui-bottom-sheet-scrim._contained{position:absolute}.ui-bottom-sheet-scrim._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-scrim{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-scrim{transition-duration:.01ms}.ui-bottom-sheet-positioner{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--ui-bottom-sheet-z-index, 1100);display:flex;justify-content:center;transition:transform var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-positioner._contained{position:absolute}.ui-bottom-sheet-positioner._dragging,.ui-bottom-sheet-positioner._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-positioner{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-positioner{transition-duration:.01ms}.ui-bottom-sheet{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:var(--ui-bottom-sheet-max-width, 90rem);max-height:var(--ui-bottom-sheet-max-height, 92dvh);border-radius:var(--ui-bottom-sheet-radius, var(--radius-default)) var(--ui-bottom-sheet-radius, var(--radius-default)) 0 0;background-color:var(--ui-bottom-sheet-surface, var(--global-background-default));box-shadow:var(--ui-bottom-sheet-shadow, var(--shadow-default-lg));color:var(--ui-bottom-sheet-color, var(--global-text-default));font-family:var(--ui-bottom-sheet-font-family, var(--fontfamily-base));overflow:hidden;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:height var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet._half{height:var(--ui-bottom-sheet-half-height, 50dvh)}.ui-bottom-sheet._full{height:var(--ui-bottom-sheet-full-height, 100dvh);max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging{max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging,.ui-bottom-sheet._no-motion{transition:none}.ui-bottom-sheet._contained{max-height:92%}.ui-bottom-sheet._contained._half{height:50%}.ui-bottom-sheet._contained._full{height:100%;max-height:100%}.ui-bottom-sheet._contained._dragging{max-height:100%}.ui-bottom-sheet._safe-area{padding-bottom:var(--ui-bottom-sheet-safe-area-offset, env(safe-area-inset-bottom, 0px))}.ui-bottom-sheet-grab{flex:0 0 auto;display:flex;flex-direction:column;padding:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm)) var(--ui-bottom-sheet-grab-padding-x, var(--units-md))}.ui-bottom-sheet-grab._draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.ui-bottom-sheet-grab._draggable:active{cursor:grabbing}.ui-bottom-sheet-handle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);margin-inline:auto;padding:0;border:none;border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background:none}.ui-bottom-sheet-handle:after{content:\"\";display:block;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background-color:var(--ui-bottom-sheet-handle-color, var(--global-text-default))}.ui-bottom-sheet-handle._operable{width:var(--ui-bottom-sheet-handle-target-width, 4rem);height:var(--ui-bottom-sheet-handle-target-height, 1.5rem)}.ui-bottom-sheet-handle._operable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-handle-focus-ring-color, var(--global-border-focus))}.ui-bottom-sheet-header{flex:0 0 auto;display:flex;align-items:var(--ui-bottom-sheet-header-align, flex-start);gap:var(--ui-bottom-sheet-header-gap, var(--units-sm));padding-top:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm))}.ui-bottom-sheet-grab>.ui-bottom-sheet-header:first-child{padding-top:0}.ui-bottom-sheet-title{flex:1 1 auto;min-width:0;margin:0;font-family:var(--ui-bottom-sheet-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);font-weight:var(--ui-bottom-sheet-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-bottom-sheet-action{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-bottom-sheet-action-align, auto);justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-action-size, 2rem);height:var(--ui-bottom-sheet-action-size, 2rem);padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-bottom-sheet-action:hover{background-color:var(--ui-bottom-sheet-close-surface-hover, var(--global-background-muted-hover));color:var(--ui-bottom-sheet-close-color-hover, var(--global-text-muted-hover))}.ui-bottom-sheet-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-close-focus-ring-color, var(--global-border-focus))}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-action{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-action{transition-duration:.01ms}.ui-bottom-sheet-content{flex:1 1 auto;min-height:0;padding:var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));overflow-y:auto;overscroll-behavior:contain;font-size:var(--size-typography-text-md);line-height:1.5}.ui-bottom-sheet-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-bottom-sheet-footer-gap, var(--units-default));padding:var(--ui-bottom-sheet-footer-padding-top, var(--units-sm)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));border-top:var(--ui-bottom-sheet-footer-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-sheet-footer-stroke, transparent)}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
|
|
590
590
|
}
|
|
591
591
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: UiBottomSheet, decorators: [{
|
|
592
592
|
type: Component,
|
|
593
|
-
args: [{ selector: 'ui-bottom-sheet', imports: [A11yModule, UiIcon], template: "@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n", styles: [".ui-bottom-sheet-scrim{position:fixed;inset:0;z-index:var(--ui-bottom-sheet-z-index, 1100);background-color:var(--ui-bottom-sheet-mask-background, var(--primitives-black-50));opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-scrim._open{opacity:1}.ui-bottom-sheet-scrim._contained{position:absolute}.ui-bottom-sheet-scrim._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-scrim{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-scrim{transition-duration:.01ms}.ui-bottom-sheet-positioner{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--ui-bottom-sheet-z-index, 1100);display:flex;justify-content:center;transition:transform var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-positioner._contained{position:absolute}.ui-bottom-sheet-positioner._dragging,.ui-bottom-sheet-positioner._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-positioner{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-positioner{transition-duration:.01ms}.ui-bottom-sheet{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:var(--ui-bottom-sheet-max-width, 90rem);max-height:var(--ui-bottom-sheet-max-height, 92dvh);border-radius:var(--ui-bottom-sheet-radius, var(--radius-default)) var(--ui-bottom-sheet-radius, var(--radius-default)) 0 0;background-color:var(--ui-bottom-sheet-surface, var(--global-background-default));box-shadow:var(--ui-bottom-sheet-shadow, var(--shadow-default-lg));color:var(--ui-bottom-sheet-color, var(--global-text-default));font-family:var(--ui-bottom-sheet-font-family, var(--fontfamily-base));overflow:hidden;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:height var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet._half{height:var(--ui-bottom-sheet-half-height, 50dvh)}.ui-bottom-sheet._full{height:var(--ui-bottom-sheet-full-height, 100dvh);max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging{max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging,.ui-bottom-sheet._no-motion{transition:none}.ui-bottom-sheet._contained{max-height:92%}.ui-bottom-sheet._contained._half{height:50%}.ui-bottom-sheet._contained._full{height:100%;max-height:100%}.ui-bottom-sheet._contained._dragging{max-height:100%}.ui-bottom-sheet._safe-area{padding-bottom:var(--ui-bottom-sheet-safe-area-offset, env(safe-area-inset-bottom, 0px))}.ui-bottom-sheet-grab{flex:0 0 auto;display:flex;flex-direction:column;padding:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm)) var(--ui-bottom-sheet-grab-padding-x, var(--units-md))}.ui-bottom-sheet-grab._draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.ui-bottom-sheet-grab._draggable:active{cursor:grabbing}.ui-bottom-sheet-handle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);margin-inline:auto;padding:0;border:none;border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background:none}.ui-bottom-sheet-handle:after{content:\"\";display:block;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background-color:var(--ui-bottom-sheet-handle-color, var(--global-text-default))}.ui-bottom-sheet-handle._operable{width:var(--ui-bottom-sheet-handle-target-width, 4rem);height:var(--ui-bottom-sheet-handle-target-height, 1.5rem)}.ui-bottom-sheet-handle._operable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-handle-focus-ring-color, var(--global-border-focus))}.ui-bottom-sheet-header{flex:0 0 auto;display:flex;align-items:flex-start;gap:var(--ui-bottom-sheet-header-gap, var(--units-sm));padding-top:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm))}.ui-bottom-sheet-grab>.ui-bottom-sheet-header:first-child{padding-top:0}.ui-bottom-sheet-title{flex:1 1 auto;min-width:0;margin:0;font-family:var(--ui-bottom-sheet-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);font-weight:var(--ui-bottom-sheet-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-bottom-sheet-action{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-action-size, 2rem);height:var(--ui-bottom-sheet-action-size, 2rem);padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-bottom-sheet-action:hover{background-color:var(--ui-bottom-sheet-close-surface-hover, var(--global-background-muted-hover));color:var(--ui-bottom-sheet-close-color-hover, var(--global-text-muted-hover))}.ui-bottom-sheet-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-close-focus-ring-color, var(--global-border-focus))}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-action{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-action{transition-duration:.01ms}.ui-bottom-sheet-content{flex:1 1 auto;min-height:0;padding:var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));overflow-y:auto;overscroll-behavior:contain;font-size:var(--size-typography-text-md);line-height:1.5}.ui-bottom-sheet-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-bottom-sheet-footer-gap, var(--units-default));padding:var(--ui-bottom-sheet-footer-padding-top, var(--units-sm)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));border-top:var(--ui-bottom-sheet-footer-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-sheet-footer-stroke, transparent)}\n"] }]
|
|
593
|
+
args: [{ selector: 'ui-bottom-sheet', imports: [A11yModule, UiIcon], template: "@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n", styles: [".ui-bottom-sheet-scrim{position:fixed;inset:0;z-index:var(--ui-bottom-sheet-z-index, 1100);background-color:var(--ui-bottom-sheet-mask-background, var(--primitives-black-50));opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-scrim._open{opacity:1}.ui-bottom-sheet-scrim._contained{position:absolute}.ui-bottom-sheet-scrim._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-scrim{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-scrim{transition-duration:.01ms}.ui-bottom-sheet-positioner{position:fixed;inset-inline:0;inset-block-end:0;z-index:var(--ui-bottom-sheet-z-index, 1100);display:flex;justify-content:center;transition:transform var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet-positioner._contained{position:absolute}.ui-bottom-sheet-positioner._dragging,.ui-bottom-sheet-positioner._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-positioner{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-positioner{transition-duration:.01ms}.ui-bottom-sheet{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:var(--ui-bottom-sheet-max-width, 90rem);max-height:var(--ui-bottom-sheet-max-height, 92dvh);border-radius:var(--ui-bottom-sheet-radius, var(--radius-default)) var(--ui-bottom-sheet-radius, var(--radius-default)) 0 0;background-color:var(--ui-bottom-sheet-surface, var(--global-background-default));box-shadow:var(--ui-bottom-sheet-shadow, var(--shadow-default-lg));color:var(--ui-bottom-sheet-color, var(--global-text-default));font-family:var(--ui-bottom-sheet-font-family, var(--fontfamily-base));overflow:hidden;outline:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:height var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-bottom-sheet._half{height:var(--ui-bottom-sheet-half-height, 50dvh)}.ui-bottom-sheet._full{height:var(--ui-bottom-sheet-full-height, 100dvh);max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging{max-height:var(--ui-bottom-sheet-full-height, 100dvh)}.ui-bottom-sheet._dragging,.ui-bottom-sheet._no-motion{transition:none}.ui-bottom-sheet._contained{max-height:92%}.ui-bottom-sheet._contained._half{height:50%}.ui-bottom-sheet._contained._full{height:100%;max-height:100%}.ui-bottom-sheet._contained._dragging{max-height:100%}.ui-bottom-sheet._safe-area{padding-bottom:var(--ui-bottom-sheet-safe-area-offset, env(safe-area-inset-bottom, 0px))}.ui-bottom-sheet-grab{flex:0 0 auto;display:flex;flex-direction:column;padding:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm)) var(--ui-bottom-sheet-grab-padding-x, var(--units-md))}.ui-bottom-sheet-grab._draggable{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.ui-bottom-sheet-grab._draggable:active{cursor:grabbing}.ui-bottom-sheet-handle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);margin-inline:auto;padding:0;border:none;border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background:none}.ui-bottom-sheet-handle:after{content:\"\";display:block;width:var(--ui-bottom-sheet-handle-width, 3.375rem);height:var(--ui-bottom-sheet-handle-height, .25rem);border-radius:var(--ui-bottom-sheet-handle-radius, var(--radius-full));background-color:var(--ui-bottom-sheet-handle-color, var(--global-text-default))}.ui-bottom-sheet-handle._operable{width:var(--ui-bottom-sheet-handle-target-width, 4rem);height:var(--ui-bottom-sheet-handle-target-height, 1.5rem)}.ui-bottom-sheet-handle._operable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-handle-focus-ring-color, var(--global-border-focus))}.ui-bottom-sheet-header{flex:0 0 auto;display:flex;align-items:var(--ui-bottom-sheet-header-align, flex-start);gap:var(--ui-bottom-sheet-header-gap, var(--units-sm));padding-top:var(--ui-bottom-sheet-grab-padding-y, var(--units-sm))}.ui-bottom-sheet-grab>.ui-bottom-sheet-header:first-child{padding-top:0}.ui-bottom-sheet-title{flex:1 1 auto;min-width:0;margin:0;font-family:var(--ui-bottom-sheet-title-font-family, var(--fontfamily-title));font-size:var(--size-typography-title-sm);font-weight:var(--ui-bottom-sheet-weight, var(--weight-bold));line-height:1.3;overflow-wrap:break-word}.ui-bottom-sheet-action{flex:0 0 auto;display:inline-flex;align-items:center;align-self:var(--ui-bottom-sheet-action-align, auto);justify-content:center;box-sizing:border-box;width:var(--ui-bottom-sheet-action-size, 2rem);height:var(--ui-bottom-sheet-action-size, 2rem);padding:0;border:none;border-radius:var(--radius-xs);background:transparent;color:inherit;line-height:0;cursor:pointer;transition:background-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-bottom-sheet-action:hover{background-color:var(--ui-bottom-sheet-close-surface-hover, var(--global-background-muted-hover));color:var(--ui-bottom-sheet-close-color-hover, var(--global-text-muted-hover))}.ui-bottom-sheet-action:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-bottom-sheet-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-bottom-sheet-close-focus-ring-color, var(--global-border-focus))}@media(prefers-reduced-motion:reduce){.ui-bottom-sheet-action{transition-duration:.01ms}}:root[data-motion=off] .ui-bottom-sheet-action{transition-duration:.01ms}.ui-bottom-sheet-content{flex:1 1 auto;min-height:0;padding:var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));overflow-y:auto;overscroll-behavior:contain;font-size:var(--size-typography-text-md);line-height:1.5}.ui-bottom-sheet-footer{flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-bottom-sheet-footer-gap, var(--units-default));padding:var(--ui-bottom-sheet-footer-padding-top, var(--units-sm)) var(--ui-bottom-sheet-padding, var(--units-default)) var(--ui-bottom-sheet-padding-bottom, var(--units-lg));border-top:var(--ui-bottom-sheet-footer-stroke-width, var(--stroke-sm)) solid var(--ui-bottom-sheet-footer-stroke, transparent)}\n"] }]
|
|
594
594
|
}], ctorParameters: () => [], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], hasBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasBackdrop", required: false }] }], closeOnOverlayClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnOverlayClick", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], blockScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "blockScroll", required: false }] }], enableDragToClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableDragToClose", required: false }] }], dragThreshold: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragThreshold", required: false }] }], enableSnapping: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableSnapping", required: false }] }], showHandle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHandle", required: false }] }], trapFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "trapFocus", required: false }] }], focusOnShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnShow", required: false }] }], autoFocusElement: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFocusElement", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], closeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIcon", required: false }] }], closeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAriaLabel", required: false }] }], handleAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "handleAriaLabel", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], safeArea: [{ type: i0.Input, args: [{ isSignal: true, alias: "safeArea", required: false }] }], contained: [{ type: i0.Input, args: [{ isSignal: true, alias: "contained", required: false }] }], motionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionDisabled", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiBottomSheetHeader), { isSignal: true }] }], contentSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiBottomSheetContent), { isSignal: true }] }], footerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiBottomSheetFooter), { isSignal: true }] }], positionerRef: [{ type: i0.ViewChild, args: ['positioner', { isSignal: true }] }], panelRef: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
|
|
595
595
|
|
|
596
596
|
/*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-layout-ui-bottom-sheet.mjs","sources":["../../../projects/ui-kit/layout/ui-bottom-sheet/src/lib/ui-bottom-sheet.ts","../../../projects/ui-kit/layout/ui-bottom-sheet/src/lib/ui-bottom-sheet.html","../../../projects/ui-kit/layout/ui-bottom-sheet/src/public-api.ts","../../../projects/ui-kit/layout/ui-bottom-sheet/src/4sh-ui-kit-layout-ui-bottom-sheet.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n isDevMode,\n model,\n numberAttribute,\n output,\n PLATFORM_ID,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { lockBodyScroll, unlockBodyScroll } from '@4sh/ui-kit/overlay';\n\n/** Named opening detents. */\nexport type BottomSheetHeightPreset = 'auto' | 'half' | 'full';\n\n/**\n * Opening height: a preset detent, or any CSS length (`'70vh'`, `'400px'`).\n * `Record<never, never>` keeps the presets suggested by the editor while still\n * accepting a free-form string.\n */\nexport type BottomSheetHeight = BottomSheetHeightPreset | (string & Record<never, never>);\n\n/** The preset detents, for the runtime discrimination `height` needs. */\nconst HEIGHT_PRESETS: readonly string[] = ['auto', 'half', 'full'];\n\n/** Base stacking level, mirroring `$sheet-z-index` in the SCSS. */\nconst SHEET_BASE_Z_INDEX = 1100;\n\n/** Fallback settle delay when the transition duration cannot be read (ms). */\nconst SETTLE_FALLBACK_MS = 320;\n/** Margin added to the measured duration before the settle fallback fires (ms). */\nconst SETTLE_MARGIN_MS = 60;\n\n/** Interactive descendants that must keep their own gesture instead of starting a drag. */\nconst INTERACTIVE = 'button, a[href], input, select, textarea, [role=\"button\"], [contenteditable]';\n/** The handle itself is interactive in snapping mode, yet it IS the grab affordance. */\nconst HANDLE_CLASS = 'ui-bottom-sheet-handle';\n\n/** Process-wide sequence so `autoZIndex` layers a later sheet above earlier ones. */\nlet zIndexSeq = 0;\n/** Process-wide unique id source (aria wiring). */\nlet nextUid = 0;\n\n/**\n * Slot markers routing projected content to a region. No behaviour: the sheet\n * only queries their presence. Each accepts the kebab attribute and the kit's\n * camelCase alias (`uiBottomSheetHeader`).\n */\n/** Header region: title and/or close button. Stays pinned above the scrolling body. */\n@Directive({ selector: '[uiBottomSheetHeader], [ui-bottom-sheet-header]' })\nexport class UiBottomSheetHeader {}\n\n/** Main region. Scrolls natively when the content overflows the sheet. */\n@Directive({ selector: '[uiBottomSheetContent], [ui-bottom-sheet-content]' })\nexport class UiBottomSheetContent {}\n\n/** Footer region: actions. Stays pinned below the scrolling body. */\n@Directive({ selector: '[uiBottomSheetFooter], [ui-bottom-sheet-footer]' })\nexport class UiBottomSheetFooter {}\n\n/**\n * ui-bottom-sheet: headless, mobile-first panel that slides up from the bottom\n * edge, driven by the two-way `visible` model.\n *\n * Enter/leave are CSS transitions on `transform`, which is what lets the\n * drag-to-close gesture flow straight into the closing animation. Content goes\n * into three projected regions laid out as a flex column, so header and footer\n * stay put while the body scrolls. See the MDX page for the full contract.\n *\n * @example\n * ```html\n * <ui-button label=\"Rechercher\" (buttonClick)=\"open.set(true)\" />\n * <ui-bottom-sheet [(visible)]=\"open\" height=\"half\" autoFocusElement=\"#q\">\n * <h2 ui-bottom-sheet-header>Recherche</h2>\n * <div ui-bottom-sheet-content><ui-input id=\"q\" /></div>\n * </ui-bottom-sheet>\n * ```\n */\n@Component({\n selector: 'ui-bottom-sheet',\n imports: [A11yModule, UiIcon],\n templateUrl: './ui-bottom-sheet.html',\n styleUrl: './ui-bottom-sheet.scss',\n})\nexport class UiBottomSheet {\n /** Open state (two-way). Toggling it drives the enter/leave animation. */\n visible = model(false);\n\n /**\n * Opening height: `'auto'` (hugs the content, capped), `'half'` (half the\n * screen), `'full'` (the whole screen) or any CSS length (`'70vh'`, `'400px'`).\n */\n height = input<BottomSheetHeight>('auto');\n\n /** Show the backdrop (dim + capture), which is also what makes the sheet modal. */\n hasBackdrop = input(true, { transform: booleanAttribute });\n /** Close when the backdrop is clicked. */\n closeOnOverlayClick = input(true, { transform: booleanAttribute });\n /** Close the sheet when `Escape` is pressed. */\n closeOnEscape = input(true, { transform: booleanAttribute });\n /** Block background scroll while the sheet is open. */\n blockScroll = input(true, { transform: booleanAttribute });\n\n /** Close the sheet by dragging it down (touch, mouse, pen). */\n enableDragToClose = input(true, { transform: booleanAttribute });\n /** Distance to drag before the release closes the sheet (px). */\n dragThreshold = input(96, { transform: numberAttribute });\n /**\n * Let the user drag a `'half'` sheet up to `'full'` (and back down again).\n * The detent change is the only motion that touches `height`.\n */\n enableSnapping = input(false, { transform: booleanAttribute });\n /** Show the grab handle at the top of the sheet. */\n showHandle = input(true, { transform: booleanAttribute });\n\n /** Trap Tab focus inside the sheet while it is open. */\n trapFocus = input(true, { transform: booleanAttribute });\n /** Move focus into the sheet when it opens (restored on close). */\n focusOnShow = input(true, { transform: booleanAttribute });\n /** CSS selector of the element to focus on opening (e.g. `'#searchInput'`). */\n autoFocusElement = input<string | null>(null);\n\n /** Simple header text (ignored when a header slot is projected). */\n header = input<string>();\n /** Show the close (×) button in the header region. Off by default, as in the design. */\n closable = input(false, { transform: booleanAttribute });\n /** FontAwesome name of the close button icon. */\n closeIcon = input<string>('xmark');\n /** Accessible name of the close button. */\n closeAriaLabel = input<string>('Fermer');\n /** Accessible name of the handle when it is operable (`enableSnapping`). */\n handleAriaLabel = input<string>('Redimensionner le panneau');\n\n /** ARIA role of the sheet surface. */\n role = input<string>('dialog');\n /** Accessible name when there is no visible header to reference. */\n ariaLabel = input<string>();\n /** Id of an external element naming the sheet (overrides the header title). */\n ariaLabelledBy = input<string>();\n\n /** Reserve the OS inset at the bottom of the screen (home indicator, gesture bar). */\n safeArea = input(true, { transform: booleanAttribute });\n /**\n * Scope the sheet to the nearest positioned ancestor (`position: absolute`)\n * instead of the viewport, and skip the body scroll lock. Detents become\n * fractions of that container.\n */\n contained = input(false, { transform: booleanAttribute });\n /** Disable the open/close animation for this sheet. */\n motionDisabled = input(false, { transform: booleanAttribute });\n /** Extra class(es) merged onto the sheet surface. */\n styleClass = input<string>();\n\n /** Layer this sheet above earlier overlays automatically. */\n autoZIndex = input(true, { transform: booleanAttribute });\n /** Floor z-index (added to the auto value, or used as-is when `autoZIndex=false`). */\n baseZIndex = input(0, { transform: numberAttribute });\n\n /** Emitted at the end of the opening animation. */\n opened = output<void>();\n /** Emitted at the end of the closing animation. */\n closed = output<void>();\n\n /** @ignore */\n protected readonly headerSlot = contentChild(UiBottomSheetHeader);\n /** @ignore */\n protected readonly contentSlot = contentChild(UiBottomSheetContent);\n /** @ignore */\n protected readonly footerSlot = contentChild(UiBottomSheetFooter);\n\n /** @ignore */\n private readonly positionerRef = viewChild<ElementRef<HTMLElement>>('positioner');\n /** @ignore */\n private readonly panelRef = viewChild<ElementRef<HTMLElement>>('panel');\n\n /** @ignore */\n private readonly document = inject(DOCUMENT);\n /** @ignore */\n private readonly injector = inject(Injector);\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n /** @ignore Per-instance layering rank for `autoZIndex`. */\n private readonly zSeq = ++zIndexSeq;\n\n /** @ignore */\n protected readonly uid = `ui-bottom-sheet-${nextUid++}`;\n /** @ignore */\n protected readonly titleId = `${this.uid}-title`;\n\n // --- Internal state --------------------------------------------------\n // `mounted` keeps the node in the DOM while the leave transition plays;\n // `atRest` is the position the panel transitions towards.\n\n /** @ignore */\n protected readonly mounted = signal(false);\n /** @ignore */\n protected readonly atRest = signal(false);\n /** @ignore Live drag distance, downwards only (px). */\n protected readonly dragOffset = signal(0);\n /** @ignore Live height while dragging a snapping sheet upwards (px). */\n protected readonly dragHeight = signal<number | null>(null);\n /** @ignore */\n protected readonly dragging = signal(false);\n /** @ignore The `'half'` sheet is currently snapped to `'full'`. */\n protected readonly snapped = signal(false);\n\n /** @ignore */\n private locked = false;\n /** @ignore Transition currently awaited, if any. */\n private pending: 'open' | 'close' | null = null;\n /** @ignore */\n private settleTimer: ReturnType<typeof setTimeout> | null = null;\n /** @ignore */\n private focusTimer: ReturnType<typeof setTimeout> | null = null;\n /** @ignore */\n private dragPointerId: number | null = null;\n /** @ignore */\n private dragStartY = 0;\n /** @ignore Panel height when the drag started (px), for the upward clamp. */\n private dragStartHeight = 0;\n\n /** @ignore Effective stacking level. */\n protected readonly zIndex = computed(() => {\n const base = this.baseZIndex();\n if (this.autoZIndex()) return SHEET_BASE_Z_INDEX + base + this.zSeq;\n return base > 0 ? base : SHEET_BASE_Z_INDEX;\n });\n\n /** @ignore The `'half'` detent can grow to `'full'` on a drag. */\n protected readonly canSnap = computed(() => this.enableSnapping() && this.height() === 'half');\n /** @ignore A gesture on the drag area does something. */\n protected readonly dragEnabled = computed(() => this.enableDragToClose() || this.canSnap());\n\n /** @ignore Detent in force, once snapping is taken into account. */\n private readonly effectiveHeight = computed(() =>\n this.canSnap() && this.snapped() ? 'full' : this.height(),\n );\n /** @ignore Preset detent, or `null` for a free-form CSS length. */\n protected readonly heightPreset = computed<BottomSheetHeightPreset | null>(() => {\n const h = this.effectiveHeight();\n return HEIGHT_PRESETS.includes(h) ? (h as BottomSheetHeightPreset) : null;\n });\n /**\n * @ignore Height written inline: the live drag height, else the free-form\n * value. A preset resolves through its class so the SCSS hook stays in charge.\n */\n protected readonly inlineHeight = computed(() => {\n const drag = this.dragHeight();\n if (drag !== null) return `${drag}px`;\n return this.heightPreset() ? null : this.effectiveHeight();\n });\n\n /** @ignore Sheet position: off-screen, dragged, or at rest. */\n protected readonly panelTransform = computed(() => {\n if (!this.atRest()) return 'translateY(100%)';\n const offset = this.dragOffset();\n return offset > 0 ? `translateY(${offset}px)` : 'translateY(0)';\n });\n\n /** @ignore */\n protected readonly panelClasses = computed(() => {\n const classes = ['ui-bottom-sheet'];\n const preset = this.heightPreset();\n if (preset) classes.push(`_${preset}`);\n if (this.contained()) classes.push('_contained');\n if (this.safeArea() && !this.contained()) classes.push('_safe-area');\n if (this.dragging()) classes.push('_dragging');\n if (this.motionDisabled()) classes.push('_no-motion');\n const extra = this.styleClass();\n if (extra) classes.push(extra);\n return classes.join(' ');\n });\n\n /** @ignore A title is available, from the slot or the string shorthand. */\n protected readonly hasTitle = computed(() => !!this.headerSlot() || !!this.header());\n /** @ignore The header region is rendered at all. */\n protected readonly hasHeaderRegion = computed(() => this.hasTitle() || this.closable());\n /** @ignore The `header` string is the title source (a slot takes precedence). */\n protected readonly showHeaderString = computed(() => !this.headerSlot() && !!this.header());\n\n /** @ignore Id of the element naming the sheet (header title, or an external id). */\n protected readonly labelledBy = computed(\n () => this.ariaLabelledBy() ?? (this.hasTitle() ? this.titleId : null),\n );\n /** @ignore Fallback accessible name when nothing is referenced. */\n protected readonly resolvedAriaLabel = computed(() =>\n this.labelledBy() ? null : this.ariaLabel(),\n );\n\n constructor() {\n let wasVisible = false;\n\n effect(() => {\n const v = this.visible();\n untracked(() => {\n if (v && !wasVisible) {\n wasVisible = true;\n this.beginOpen();\n } else if (!v && wasVisible) {\n wasVisible = false;\n this.beginClose();\n }\n });\n });\n\n // A11y safeguard: a dialog must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.visible() && !this.labelledBy() && !this.resolvedAriaLabel()) {\n console.warn(\n '[ui-bottom-sheet] Panel has no accessible name: provide `header`, `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n\n inject(DestroyRef).onDestroy(() => {\n this.clearSettle();\n this.clearFocus();\n this.releaseLock();\n });\n }\n\n /** Open the sheet. */\n open(): void {\n this.visible.set(true);\n }\n\n /** Close the sheet. */\n close(): void {\n this.visible.set(false);\n }\n\n /** Toggle the sheet. */\n toggle(): void {\n this.visible.update((v) => !v);\n }\n\n /** Move focus onto the sheet surface. */\n focus(): void {\n this.panelRef()?.nativeElement.focus({ preventScroll: true });\n }\n\n // --- Open / close lifecycle ------------------------------------------\n\n /** @ignore Mount off-screen, then transition to the rest position. */\n private beginOpen(): void {\n this.clearSettle();\n this.snapped.set(false);\n this.dragOffset.set(0);\n this.dragHeight.set(null);\n this.dragging.set(false);\n this.mounted.set(true);\n\n if (!this.isBrowser) {\n this.atRest.set(true);\n return;\n }\n\n if (this.blockScroll() && !this.contained() && !this.locked) {\n lockBodyScroll(this.document);\n this.locked = true;\n }\n\n afterNextRender(\n () => {\n // Flush the off-screen position so the class swap below interpolates\n // instead of jumping. A layout read is enough, and unlike a rAF it also\n // runs in a throttled tab.\n void this.positionerRef()?.nativeElement.offsetHeight;\n this.atRest.set(true);\n this.awaitTransition('open');\n this.applyAutoFocus();\n },\n { injector: this.injector },\n );\n }\n\n /** @ignore Transition back off-screen, then unmount. */\n private beginClose(): void {\n if (!this.mounted()) return;\n this.clearSettle();\n this.clearFocus();\n this.endDrag();\n this.dragOffset.set(0);\n this.dragHeight.set(null);\n this.atRest.set(false);\n this.awaitTransition('close');\n }\n\n /**\n * @ignore Wait for the panel transition to end. `transitionend` is the accurate\n * signal, but it never fires when the duration is zero (motion off, reduced\n * motion) or while the tab is hidden, hence the measured fallback timer.\n */\n private awaitTransition(phase: 'open' | 'close'): void {\n this.pending = phase;\n if (!this.isBrowser) {\n this.settle(phase);\n return;\n }\n this.settleTimer = setTimeout(() => this.settle(phase), this.transitionMs() + SETTLE_MARGIN_MS);\n }\n\n /** @ignore Resolved transition duration of the panel (ms). */\n private transitionMs(): number {\n const el = this.positionerRef()?.nativeElement;\n const view = this.document.defaultView;\n if (!el || !view) return SETTLE_FALLBACK_MS;\n const raw = view.getComputedStyle(el).transitionDuration.split(',')[0]?.trim() ?? '';\n const value = Number.parseFloat(raw);\n if (Number.isNaN(value)) return SETTLE_FALLBACK_MS;\n return raw.endsWith('ms') ? value : value * 1000;\n }\n\n /** @ignore */\n protected onTransitionEnd(event: TransitionEvent): void {\n if (event.propertyName !== 'transform') return;\n if (event.target !== this.positionerRef()?.nativeElement) return;\n if (this.pending) this.settle(this.pending);\n }\n\n /** @ignore End of an open/close transition: emit, and unmount on close. */\n private settle(phase: 'open' | 'close'): void {\n if (this.pending !== phase) return;\n this.clearSettle();\n if (phase === 'open') {\n this.opened.emit();\n } else {\n this.mounted.set(false);\n this.releaseLock();\n this.closed.emit();\n }\n }\n\n /** @ignore */\n private clearSettle(): void {\n this.pending = null;\n if (this.settleTimer !== null) {\n clearTimeout(this.settleTimer);\n this.settleTimer = null;\n }\n }\n\n /** @ignore */\n private releaseLock(): void {\n if (this.locked) {\n unlockBodyScroll(this.document);\n this.locked = false;\n }\n }\n\n // --- Focus -----------------------------------------------------------\n\n /**\n * @ignore Focus the `autoFocusElement` target once it exists. The CDK focus\n * trap captures first (which is what restores focus on close), so this runs\n * after it and wins. Retried a few times because the target is often projected\n * content that renders a tick later; `setTimeout` rather than a rAF, which\n * never fires in a throttled tab.\n */\n private applyAutoFocus(): void {\n const selector = this.autoFocusElement();\n if (!selector || !this.focusOnShow()) return;\n\n let attempts = 0;\n const tryFocus = (): void => {\n const target = this.panelRef()?.nativeElement.querySelector<HTMLElement>(selector);\n if (target) {\n target.focus({ preventScroll: true });\n this.focusTimer = null;\n return;\n }\n if (++attempts >= 5) {\n this.focusTimer = null;\n if (isDevMode()) {\n console.warn(`[ui-bottom-sheet] autoFocusElement \"${selector}\" matched nothing.`);\n }\n return;\n }\n this.focusTimer = setTimeout(tryFocus, 16);\n };\n this.focusTimer = setTimeout(tryFocus, 0);\n }\n\n /** @ignore */\n private clearFocus(): void {\n if (this.focusTimer !== null) {\n clearTimeout(this.focusTimer);\n this.focusTimer = null;\n }\n }\n\n // --- Keyboard --------------------------------------------------------\n\n /** @ignore Escape-to-close. Only swallowed when it actually closes, so a\n * parent overlay still sees the key otherwise. */\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && this.closeOnEscape()) {\n event.stopPropagation();\n this.close();\n }\n }\n\n /** @ignore Keyboard equivalent of the snap gesture (the handle is a button). */\n protected onHandleKeydown(event: KeyboardEvent): void {\n if (!this.canSnap()) return;\n switch (event.key) {\n case 'ArrowUp':\n this.snapped.set(true);\n break;\n case 'ArrowDown':\n this.snapped.set(false);\n break;\n case 'Enter':\n case ' ':\n this.snapped.update((s) => !s);\n break;\n default:\n return;\n }\n event.preventDefault();\n }\n\n // --- Overlay ---------------------------------------------------------\n\n /** @ignore Backdrop click dismiss (backdrop target only). */\n protected onScrimPointerDown(event: PointerEvent): void {\n if (!this.closeOnOverlayClick()) return;\n if (event.target === event.currentTarget) this.close();\n }\n\n // --- Drag gesture (touch / mouse / pen) ------------------------------\n\n /** @ignore */\n protected onDragPointerDown(event: PointerEvent): void {\n if (!this.dragEnabled() || this.dragPointerId !== null) return;\n if (event.pointerType === 'mouse' && event.button !== 0) return;\n // A control inside the drag area keeps its own gesture (close button, link…),\n // except the handle, which is a button in snapping mode.\n const control = (event.target as Element | null)?.closest(INTERACTIVE);\n if (control && !control.classList.contains(HANDLE_CLASS)) return;\n\n const host = event.currentTarget as HTMLElement;\n this.dragPointerId = event.pointerId;\n this.dragStartY = event.clientY;\n this.dragStartHeight = this.panelRef()?.nativeElement.offsetHeight ?? 0;\n this.dragging.set(true);\n host.setPointerCapture(event.pointerId);\n }\n\n /** @ignore */\n protected onDragPointerMove(event: PointerEvent): void {\n if (event.pointerId !== this.dragPointerId) return;\n const delta = event.clientY - this.dragStartY;\n\n if (delta >= 0) {\n // Downwards: translate the sheet, the cheap property.\n this.dragHeight.set(null);\n this.dragOffset.set(this.enableDragToClose() ? delta : 0);\n return;\n }\n\n // Upwards: only a snapping sheet reacts, by growing towards `full`.\n this.dragOffset.set(0);\n if (!this.canSnap() || this.snapped()) return;\n const ceiling = this.viewportHeight();\n this.dragHeight.set(Math.min(ceiling, this.dragStartHeight - delta));\n }\n\n /** @ignore Release: past the threshold the gesture commits, otherwise it springs back. */\n protected onDragPointerUp(event: PointerEvent): void {\n if (event.pointerId !== this.dragPointerId) return;\n const offset = this.dragOffset();\n const grown = (this.dragHeight() ?? this.dragStartHeight) - this.dragStartHeight;\n const threshold = Math.max(1, this.dragThreshold());\n\n this.endDrag();\n this.dragOffset.set(0);\n this.dragHeight.set(null);\n\n if (grown >= threshold) {\n this.snapped.set(true);\n } else if (offset >= threshold) {\n // From `full`, a snapping sheet steps back to `half` before closing.\n if (this.canSnap() && this.snapped()) this.snapped.set(false);\n else if (this.enableDragToClose()) this.close();\n }\n }\n\n /** @ignore */\n private endDrag(): void {\n this.dragPointerId = null;\n this.dragging.set(false);\n }\n\n /** @ignore Ceiling of the upward drag: the viewport, or the container when `contained`. */\n private viewportHeight(): number {\n if (this.contained()) {\n const parent = this.positionerRef()?.nativeElement.parentElement;\n if (parent) return parent.clientHeight;\n }\n return this.document.defaultView?.innerHeight ?? this.dragStartHeight;\n }\n}\n","@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n","/*\n * Public API Surface of ui-kit/ui-bottom-sheet\n */\n\nexport * from './lib/ui-bottom-sheet';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":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,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,mBAAmB,6FAElB,oBAAoB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAErB,mBAAmB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAGI,YAAY,kEAEjB,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE5LxE;;AAEG;;ACFH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-layout-ui-bottom-sheet.mjs","sources":["../../../projects/ui-kit/layout/ui-bottom-sheet/src/lib/ui-bottom-sheet.ts","../../../projects/ui-kit/layout/ui-bottom-sheet/src/lib/ui-bottom-sheet.html","../../../projects/ui-kit/layout/ui-bottom-sheet/src/public-api.ts","../../../projects/ui-kit/layout/ui-bottom-sheet/src/4sh-ui-kit-layout-ui-bottom-sheet.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n isDevMode,\n model,\n numberAttribute,\n output,\n PLATFORM_ID,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { lockBodyScroll, unlockBodyScroll } from '@4sh/ui-kit/overlay';\n\n/** Named opening detents. */\nexport type BottomSheetHeightPreset = 'auto' | 'half' | 'full';\n\n/**\n * Opening height: a preset detent, or any CSS length (`'70vh'`, `'400px'`).\n * `Record<never, never>` keeps the presets suggested by the editor while still\n * accepting a free-form string.\n */\nexport type BottomSheetHeight = BottomSheetHeightPreset | (string & Record<never, never>);\n\n/** The preset detents, for the runtime discrimination `height` needs. */\nconst HEIGHT_PRESETS: readonly string[] = ['auto', 'half', 'full'];\n\n/** Base stacking level, mirroring `$sheet-z-index` in the SCSS. */\nconst SHEET_BASE_Z_INDEX = 1100;\n\n/** Fallback settle delay when the transition duration cannot be read (ms). */\nconst SETTLE_FALLBACK_MS = 320;\n/** Margin added to the measured duration before the settle fallback fires (ms). */\nconst SETTLE_MARGIN_MS = 60;\n\n/** Interactive descendants that must keep their own gesture instead of starting a drag. */\nconst INTERACTIVE = 'button, a[href], input, select, textarea, [role=\"button\"], [contenteditable]';\n/** The handle itself is interactive in snapping mode, yet it IS the grab affordance. */\nconst HANDLE_CLASS = 'ui-bottom-sheet-handle';\n\n/** Process-wide sequence so `autoZIndex` layers a later sheet above earlier ones. */\nlet zIndexSeq = 0;\n/** Process-wide unique id source (aria wiring). */\nlet nextUid = 0;\n\n/**\n * Slot markers routing projected content to a region. No behaviour: the sheet\n * only queries their presence. Each accepts the kebab attribute and the kit's\n * camelCase alias (`uiBottomSheetHeader`).\n */\n/** Header region: title and/or close button. Stays pinned above the scrolling body. */\n@Directive({ selector: '[uiBottomSheetHeader], [ui-bottom-sheet-header]' })\nexport class UiBottomSheetHeader {}\n\n/** Main region. Scrolls natively when the content overflows the sheet. */\n@Directive({ selector: '[uiBottomSheetContent], [ui-bottom-sheet-content]' })\nexport class UiBottomSheetContent {}\n\n/** Footer region: actions. Stays pinned below the scrolling body. */\n@Directive({ selector: '[uiBottomSheetFooter], [ui-bottom-sheet-footer]' })\nexport class UiBottomSheetFooter {}\n\n/**\n * ui-bottom-sheet: headless, mobile-first panel that slides up from the bottom\n * edge, driven by the two-way `visible` model.\n *\n * Enter/leave are CSS transitions on `transform`, which is what lets the\n * drag-to-close gesture flow straight into the closing animation. Content goes\n * into three projected regions laid out as a flex column, so header and footer\n * stay put while the body scrolls. See the MDX page for the full contract.\n *\n * @example\n * ```html\n * <ui-button label=\"Rechercher\" (buttonClick)=\"open.set(true)\" />\n * <ui-bottom-sheet [(visible)]=\"open\" height=\"half\" autoFocusElement=\"#q\">\n * <h2 ui-bottom-sheet-header>Recherche</h2>\n * <div ui-bottom-sheet-content><ui-input id=\"q\" /></div>\n * </ui-bottom-sheet>\n * ```\n */\n@Component({\n selector: 'ui-bottom-sheet',\n imports: [A11yModule, UiIcon],\n templateUrl: './ui-bottom-sheet.html',\n styleUrl: './ui-bottom-sheet.scss',\n})\nexport class UiBottomSheet {\n /** Open state (two-way). Toggling it drives the enter/leave animation. */\n visible = model(false);\n\n /**\n * Opening height: `'auto'` (hugs the content, capped), `'half'` (half the\n * screen), `'full'` (the whole screen) or any CSS length (`'70vh'`, `'400px'`).\n */\n height = input<BottomSheetHeight>('auto');\n\n /** Show the backdrop (dim + capture), which is also what makes the sheet modal. */\n hasBackdrop = input(true, { transform: booleanAttribute });\n /** Close when the backdrop is clicked. */\n closeOnOverlayClick = input(true, { transform: booleanAttribute });\n /** Close the sheet when `Escape` is pressed. */\n closeOnEscape = input(true, { transform: booleanAttribute });\n /** Block background scroll while the sheet is open. */\n blockScroll = input(true, { transform: booleanAttribute });\n\n /** Close the sheet by dragging it down (touch, mouse, pen). */\n enableDragToClose = input(true, { transform: booleanAttribute });\n /** Distance to drag before the release closes the sheet (px). */\n dragThreshold = input(96, { transform: numberAttribute });\n /**\n * Let the user drag a `'half'` sheet up to `'full'` (and back down again).\n * The detent change is the only motion that touches `height`.\n */\n enableSnapping = input(false, { transform: booleanAttribute });\n /** Show the grab handle at the top of the sheet. */\n showHandle = input(true, { transform: booleanAttribute });\n\n /** Trap Tab focus inside the sheet while it is open. */\n trapFocus = input(true, { transform: booleanAttribute });\n /** Move focus into the sheet when it opens (restored on close). */\n focusOnShow = input(true, { transform: booleanAttribute });\n /** CSS selector of the element to focus on opening (e.g. `'#searchInput'`). */\n autoFocusElement = input<string | null>(null);\n\n /** Simple header text (ignored when a header slot is projected). */\n header = input<string>();\n /** Show the close (×) button in the header region. Off by default, as in the design. */\n closable = input(false, { transform: booleanAttribute });\n /** FontAwesome name of the close button icon. */\n closeIcon = input<string>('xmark');\n /** Accessible name of the close button. */\n closeAriaLabel = input<string>('Fermer');\n /** Accessible name of the handle when it is operable (`enableSnapping`). */\n handleAriaLabel = input<string>('Redimensionner le panneau');\n\n /** ARIA role of the sheet surface. */\n role = input<string>('dialog');\n /** Accessible name when there is no visible header to reference. */\n ariaLabel = input<string>();\n /** Id of an external element naming the sheet (overrides the header title). */\n ariaLabelledBy = input<string>();\n\n /** Reserve the OS inset at the bottom of the screen (home indicator, gesture bar). */\n safeArea = input(true, { transform: booleanAttribute });\n /**\n * Scope the sheet to the nearest positioned ancestor (`position: absolute`)\n * instead of the viewport, and skip the body scroll lock. Detents become\n * fractions of that container.\n */\n contained = input(false, { transform: booleanAttribute });\n /** Disable the open/close animation for this sheet. */\n motionDisabled = input(false, { transform: booleanAttribute });\n /** Extra class(es) merged onto the sheet surface. */\n styleClass = input<string>();\n\n /** Layer this sheet above earlier overlays automatically. */\n autoZIndex = input(true, { transform: booleanAttribute });\n /** Floor z-index (added to the auto value, or used as-is when `autoZIndex=false`). */\n baseZIndex = input(0, { transform: numberAttribute });\n\n /** Emitted at the end of the opening animation. */\n opened = output<void>();\n /** Emitted at the end of the closing animation. */\n closed = output<void>();\n\n /** @ignore */\n protected readonly headerSlot = contentChild(UiBottomSheetHeader);\n /** @ignore */\n protected readonly contentSlot = contentChild(UiBottomSheetContent);\n /** @ignore */\n protected readonly footerSlot = contentChild(UiBottomSheetFooter);\n\n /** @ignore */\n private readonly positionerRef = viewChild<ElementRef<HTMLElement>>('positioner');\n /** @ignore */\n private readonly panelRef = viewChild<ElementRef<HTMLElement>>('panel');\n\n /** @ignore */\n private readonly document = inject(DOCUMENT);\n /** @ignore */\n private readonly injector = inject(Injector);\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n /** @ignore Per-instance layering rank for `autoZIndex`. */\n private readonly zSeq = ++zIndexSeq;\n\n /** @ignore */\n protected readonly uid = `ui-bottom-sheet-${nextUid++}`;\n /** @ignore */\n protected readonly titleId = `${this.uid}-title`;\n\n // --- Internal state --------------------------------------------------\n // `mounted` keeps the node in the DOM while the leave transition plays;\n // `atRest` is the position the panel transitions towards.\n\n /** @ignore */\n protected readonly mounted = signal(false);\n /** @ignore */\n protected readonly atRest = signal(false);\n /** @ignore Live drag distance, downwards only (px). */\n protected readonly dragOffset = signal(0);\n /** @ignore Live height while dragging a snapping sheet upwards (px). */\n protected readonly dragHeight = signal<number | null>(null);\n /** @ignore */\n protected readonly dragging = signal(false);\n /** @ignore The `'half'` sheet is currently snapped to `'full'`. */\n protected readonly snapped = signal(false);\n\n /** @ignore */\n private locked = false;\n /** @ignore Transition currently awaited, if any. */\n private pending: 'open' | 'close' | null = null;\n /** @ignore */\n private settleTimer: ReturnType<typeof setTimeout> | null = null;\n /** @ignore */\n private focusTimer: ReturnType<typeof setTimeout> | null = null;\n /** @ignore */\n private dragPointerId: number | null = null;\n /** @ignore */\n private dragStartY = 0;\n /** @ignore Panel height when the drag started (px), for the upward clamp. */\n private dragStartHeight = 0;\n\n /** @ignore Effective stacking level. */\n protected readonly zIndex = computed(() => {\n const base = this.baseZIndex();\n if (this.autoZIndex()) return SHEET_BASE_Z_INDEX + base + this.zSeq;\n return base > 0 ? base : SHEET_BASE_Z_INDEX;\n });\n\n /** @ignore The `'half'` detent can grow to `'full'` on a drag. */\n protected readonly canSnap = computed(() => this.enableSnapping() && this.height() === 'half');\n /** @ignore A gesture on the drag area does something. */\n protected readonly dragEnabled = computed(() => this.enableDragToClose() || this.canSnap());\n\n /** @ignore Detent in force, once snapping is taken into account. */\n private readonly effectiveHeight = computed(() =>\n this.canSnap() && this.snapped() ? 'full' : this.height(),\n );\n /** @ignore Preset detent, or `null` for a free-form CSS length. */\n protected readonly heightPreset = computed<BottomSheetHeightPreset | null>(() => {\n const h = this.effectiveHeight();\n return HEIGHT_PRESETS.includes(h) ? (h as BottomSheetHeightPreset) : null;\n });\n /**\n * @ignore Height written inline: the live drag height, else the free-form\n * value. A preset resolves through its class so the SCSS hook stays in charge.\n */\n protected readonly inlineHeight = computed(() => {\n const drag = this.dragHeight();\n if (drag !== null) return `${drag}px`;\n return this.heightPreset() ? null : this.effectiveHeight();\n });\n\n /** @ignore Sheet position: off-screen, dragged, or at rest. */\n protected readonly panelTransform = computed(() => {\n if (!this.atRest()) return 'translateY(100%)';\n const offset = this.dragOffset();\n return offset > 0 ? `translateY(${offset}px)` : 'translateY(0)';\n });\n\n /** @ignore */\n protected readonly panelClasses = computed(() => {\n const classes = ['ui-bottom-sheet'];\n const preset = this.heightPreset();\n if (preset) classes.push(`_${preset}`);\n if (this.contained()) classes.push('_contained');\n if (this.safeArea() && !this.contained()) classes.push('_safe-area');\n if (this.dragging()) classes.push('_dragging');\n if (this.motionDisabled()) classes.push('_no-motion');\n const extra = this.styleClass();\n if (extra) classes.push(extra);\n return classes.join(' ');\n });\n\n /** @ignore A title is available, from the slot or the string shorthand. */\n protected readonly hasTitle = computed(() => !!this.headerSlot() || !!this.header());\n /** @ignore The header region is rendered at all. */\n protected readonly hasHeaderRegion = computed(() => this.hasTitle() || this.closable());\n /** @ignore The `header` string is the title source (a slot takes precedence). */\n protected readonly showHeaderString = computed(() => !this.headerSlot() && !!this.header());\n\n /** @ignore Id of the element naming the sheet (header title, or an external id). */\n protected readonly labelledBy = computed(\n () => this.ariaLabelledBy() ?? (this.hasTitle() ? this.titleId : null),\n );\n /** @ignore Fallback accessible name when nothing is referenced. */\n protected readonly resolvedAriaLabel = computed(() =>\n this.labelledBy() ? null : this.ariaLabel(),\n );\n\n constructor() {\n let wasVisible = false;\n\n effect(() => {\n const v = this.visible();\n untracked(() => {\n if (v && !wasVisible) {\n wasVisible = true;\n this.beginOpen();\n } else if (!v && wasVisible) {\n wasVisible = false;\n this.beginClose();\n }\n });\n });\n\n // A11y safeguard: a dialog must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.visible() && !this.labelledBy() && !this.resolvedAriaLabel()) {\n console.warn(\n '[ui-bottom-sheet] Panel has no accessible name: provide `header`, `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n\n inject(DestroyRef).onDestroy(() => {\n this.clearSettle();\n this.clearFocus();\n this.releaseLock();\n });\n }\n\n /** Open the sheet. */\n open(): void {\n this.visible.set(true);\n }\n\n /** Close the sheet. */\n close(): void {\n this.visible.set(false);\n }\n\n /** Toggle the sheet. */\n toggle(): void {\n this.visible.update((v) => !v);\n }\n\n /** Move focus onto the sheet surface. */\n focus(): void {\n this.panelRef()?.nativeElement.focus({ preventScroll: true });\n }\n\n // --- Open / close lifecycle ------------------------------------------\n\n /** @ignore Mount off-screen, then transition to the rest position. */\n private beginOpen(): void {\n this.clearSettle();\n this.snapped.set(false);\n this.dragOffset.set(0);\n this.dragHeight.set(null);\n this.dragging.set(false);\n this.mounted.set(true);\n\n if (!this.isBrowser) {\n this.atRest.set(true);\n return;\n }\n\n if (this.blockScroll() && !this.contained() && !this.locked) {\n lockBodyScroll(this.document);\n this.locked = true;\n }\n\n afterNextRender(\n () => {\n // Flush the off-screen position so the class swap below interpolates\n // instead of jumping. A layout read is enough, and unlike a rAF it also\n // runs in a throttled tab.\n void this.positionerRef()?.nativeElement.offsetHeight;\n this.atRest.set(true);\n this.awaitTransition('open');\n this.applyAutoFocus();\n },\n { injector: this.injector },\n );\n }\n\n /** @ignore Transition back off-screen, then unmount. */\n private beginClose(): void {\n if (!this.mounted()) return;\n this.clearSettle();\n this.clearFocus();\n this.endDrag();\n this.dragOffset.set(0);\n this.dragHeight.set(null);\n this.atRest.set(false);\n this.awaitTransition('close');\n }\n\n /**\n * @ignore Wait for the panel transition to end. `transitionend` is the accurate\n * signal, but it never fires when the duration is zero (motion off, reduced\n * motion) or while the tab is hidden, hence the measured fallback timer.\n */\n private awaitTransition(phase: 'open' | 'close'): void {\n this.pending = phase;\n if (!this.isBrowser) {\n this.settle(phase);\n return;\n }\n this.settleTimer = setTimeout(() => this.settle(phase), this.transitionMs() + SETTLE_MARGIN_MS);\n }\n\n /** @ignore Resolved transition duration of the panel (ms). */\n private transitionMs(): number {\n const el = this.positionerRef()?.nativeElement;\n const view = this.document.defaultView;\n if (!el || !view) return SETTLE_FALLBACK_MS;\n const raw = view.getComputedStyle(el).transitionDuration.split(',')[0]?.trim() ?? '';\n const value = Number.parseFloat(raw);\n if (Number.isNaN(value)) return SETTLE_FALLBACK_MS;\n return raw.endsWith('ms') ? value : value * 1000;\n }\n\n /** @ignore */\n protected onTransitionEnd(event: TransitionEvent): void {\n if (event.propertyName !== 'transform') return;\n if (event.target !== this.positionerRef()?.nativeElement) return;\n if (this.pending) this.settle(this.pending);\n }\n\n /** @ignore End of an open/close transition: emit, and unmount on close. */\n private settle(phase: 'open' | 'close'): void {\n if (this.pending !== phase) return;\n this.clearSettle();\n if (phase === 'open') {\n this.opened.emit();\n } else {\n this.mounted.set(false);\n this.releaseLock();\n this.closed.emit();\n }\n }\n\n /** @ignore */\n private clearSettle(): void {\n this.pending = null;\n if (this.settleTimer !== null) {\n clearTimeout(this.settleTimer);\n this.settleTimer = null;\n }\n }\n\n /** @ignore */\n private releaseLock(): void {\n if (this.locked) {\n unlockBodyScroll(this.document);\n this.locked = false;\n }\n }\n\n // --- Focus -----------------------------------------------------------\n\n /**\n * @ignore Focus the `autoFocusElement` target once it exists. The CDK focus\n * trap captures first (which is what restores focus on close), so this runs\n * after it and wins. Retried a few times because the target is often projected\n * content that renders a tick later; `setTimeout` rather than a rAF, which\n * never fires in a throttled tab.\n */\n private applyAutoFocus(): void {\n const selector = this.autoFocusElement();\n if (!selector || !this.focusOnShow()) return;\n\n let attempts = 0;\n const tryFocus = (): void => {\n const target = this.panelRef()?.nativeElement.querySelector<HTMLElement>(selector);\n if (target) {\n target.focus({ preventScroll: true });\n this.focusTimer = null;\n return;\n }\n if (++attempts >= 5) {\n this.focusTimer = null;\n if (isDevMode()) {\n console.warn(`[ui-bottom-sheet] autoFocusElement \"${selector}\" matched nothing.`);\n }\n return;\n }\n this.focusTimer = setTimeout(tryFocus, 16);\n };\n this.focusTimer = setTimeout(tryFocus, 0);\n }\n\n /** @ignore */\n private clearFocus(): void {\n if (this.focusTimer !== null) {\n clearTimeout(this.focusTimer);\n this.focusTimer = null;\n }\n }\n\n // --- Keyboard --------------------------------------------------------\n\n /** @ignore Escape-to-close. Only swallowed when it actually closes, so a\n * parent overlay still sees the key otherwise. */\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && this.closeOnEscape()) {\n event.stopPropagation();\n this.close();\n }\n }\n\n /** @ignore Keyboard equivalent of the snap gesture (the handle is a button). */\n protected onHandleKeydown(event: KeyboardEvent): void {\n if (!this.canSnap()) return;\n switch (event.key) {\n case 'ArrowUp':\n this.snapped.set(true);\n break;\n case 'ArrowDown':\n this.snapped.set(false);\n break;\n case 'Enter':\n case ' ':\n this.snapped.update((s) => !s);\n break;\n default:\n return;\n }\n event.preventDefault();\n }\n\n // --- Overlay ---------------------------------------------------------\n\n /** @ignore Backdrop click dismiss (backdrop target only). */\n protected onScrimPointerDown(event: PointerEvent): void {\n if (!this.closeOnOverlayClick()) return;\n if (event.target === event.currentTarget) this.close();\n }\n\n // --- Drag gesture (touch / mouse / pen) ------------------------------\n\n /** @ignore */\n protected onDragPointerDown(event: PointerEvent): void {\n if (!this.dragEnabled() || this.dragPointerId !== null) return;\n if (event.pointerType === 'mouse' && event.button !== 0) return;\n // A control inside the drag area keeps its own gesture (close button, link…),\n // except the handle, which is a button in snapping mode.\n const control = (event.target as Element | null)?.closest(INTERACTIVE);\n if (control && !control.classList.contains(HANDLE_CLASS)) return;\n\n const host = event.currentTarget as HTMLElement;\n this.dragPointerId = event.pointerId;\n this.dragStartY = event.clientY;\n this.dragStartHeight = this.panelRef()?.nativeElement.offsetHeight ?? 0;\n this.dragging.set(true);\n host.setPointerCapture(event.pointerId);\n }\n\n /** @ignore */\n protected onDragPointerMove(event: PointerEvent): void {\n if (event.pointerId !== this.dragPointerId) return;\n const delta = event.clientY - this.dragStartY;\n\n if (delta >= 0) {\n // Downwards: translate the sheet, the cheap property.\n this.dragHeight.set(null);\n this.dragOffset.set(this.enableDragToClose() ? delta : 0);\n return;\n }\n\n // Upwards: only a snapping sheet reacts, by growing towards `full`.\n this.dragOffset.set(0);\n if (!this.canSnap() || this.snapped()) return;\n const ceiling = this.viewportHeight();\n this.dragHeight.set(Math.min(ceiling, this.dragStartHeight - delta));\n }\n\n /** @ignore Release: past the threshold the gesture commits, otherwise it springs back. */\n protected onDragPointerUp(event: PointerEvent): void {\n if (event.pointerId !== this.dragPointerId) return;\n const offset = this.dragOffset();\n const grown = (this.dragHeight() ?? this.dragStartHeight) - this.dragStartHeight;\n const threshold = Math.max(1, this.dragThreshold());\n\n this.endDrag();\n this.dragOffset.set(0);\n this.dragHeight.set(null);\n\n if (grown >= threshold) {\n this.snapped.set(true);\n } else if (offset >= threshold) {\n // From `full`, a snapping sheet steps back to `half` before closing.\n if (this.canSnap() && this.snapped()) this.snapped.set(false);\n else if (this.enableDragToClose()) this.close();\n }\n }\n\n /** @ignore */\n private endDrag(): void {\n this.dragPointerId = null;\n this.dragging.set(false);\n }\n\n /** @ignore Ceiling of the upward drag: the viewport, or the container when `contained`. */\n private viewportHeight(): number {\n if (this.contained()) {\n const parent = this.positionerRef()?.nativeElement.parentElement;\n if (parent) return parent.clientHeight;\n }\n return this.document.defaultView?.innerHeight ?? this.dragStartHeight;\n }\n}\n","@if (mounted()) {\n <!-- Backdrop and positioner are siblings so the sheet can slide over a static\n scrim, and a click beside the sheet lands on the scrim (dismiss). -->\n @if (hasBackdrop()) {\n <div\n class=\"ui-bottom-sheet-scrim\"\n [class._open]=\"atRest()\"\n [class._contained]=\"contained()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n (pointerdown)=\"onScrimPointerDown($event)\"\n ></div>\n }\n\n <!-- Dialog: Escape/Tab handled on the container, focus lives inside\n (CDK focus-trap). The positioner carries the slide transform. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #positioner\n class=\"ui-bottom-sheet-positioner\"\n [class._contained]=\"contained()\"\n [class._dragging]=\"dragging()\"\n [class._no-motion]=\"motionDisabled()\"\n [style.z-index]=\"zIndex()\"\n [style.transform]=\"panelTransform()\"\n (transitionend)=\"onTransitionEnd($event)\"\n (keydown)=\"onKeydown($event)\"\n >\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"hasBackdrop() ? 'true' : null\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [style.height]=\"inlineHeight()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"trapFocus()\"\n [cdkTrapFocusAutoCapture]=\"focusOnShow()\"\n >\n <!-- Grab zone: handle + header. The body is left out so it keeps its\n native scroll. -->\n @if (showHandle() || hasHeaderRegion()) {\n <div\n class=\"ui-bottom-sheet-grab\"\n [class._draggable]=\"dragEnabled()\"\n (pointerdown)=\"onDragPointerDown($event)\"\n (pointermove)=\"onDragPointerMove($event)\"\n (pointerup)=\"onDragPointerUp($event)\"\n (pointercancel)=\"onDragPointerUp($event)\"\n >\n @if (showHandle()) {\n @if (canSnap()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-handle _operable\"\n [attr.aria-label]=\"handleAriaLabel()\"\n [attr.aria-expanded]=\"snapped()\"\n (keydown)=\"onHandleKeydown($event)\"\n ></button>\n } @else {\n <div class=\"ui-bottom-sheet-handle\" aria-hidden=\"true\"></div>\n }\n }\n\n @if (hasHeaderRegion()) {\n <div class=\"ui-bottom-sheet-header\">\n @if (hasTitle()) {\n <div [attr.id]=\"titleId\" class=\"ui-bottom-sheet-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiBottomSheetHeader], [ui-bottom-sheet-header]\" />\n </div>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-bottom-sheet-action\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"close()\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- Body: scrolls natively, scroll chaining kept inside the sheet.\n `tabindex` is what makes that scroll reachable at the keyboard when the\n body holds no focusable element of its own (WCAG 2.1.1). -->\n <div class=\"ui-bottom-sheet-content\" tabindex=\"0\">\n <ng-content select=\"[uiBottomSheetContent], [ui-bottom-sheet-content]\" />\n <ng-content />\n </div>\n\n @if (footerSlot()) {\n <div class=\"ui-bottom-sheet-footer\">\n <ng-content select=\"[uiBottomSheetFooter], [ui-bottom-sheet-footer]\" />\n </div>\n }\n </div>\n </div>\n}\n","/*\n * Public API Surface of ui-kit/ui-bottom-sheet\n */\n\nexport * from './lib/ui-bottom-sheet';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAqCA;AACA,MAAM,cAAc,GAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;AAElE;AACA,MAAM,kBAAkB,GAAG,IAAI;AAE/B;AACA,MAAM,kBAAkB,GAAG,GAAG;AAC9B;AACA,MAAM,gBAAgB,GAAG,EAAE;AAE3B;AACA,MAAM,WAAW,GAAG,8EAA8E;AAClG;AACA,MAAM,YAAY,GAAG,wBAAwB;AAE7C;AACA,IAAI,SAAS,GAAG,CAAC;AACjB;AACA,IAAI,OAAO,GAAG,CAAC;AAEf;;;;AAIG;AACH;MAEa,mB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