@4sh/ui-kit 0.14.0 → 0.15.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-actions-ui-button.mjs +2 -2
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +2 -2
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +2 -2
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +4 -4
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +4 -4
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.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-chip.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.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-informative-ui-tooltip.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.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/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +2 -2
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +2 -2
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +4 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +6 -6
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +2 -2
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2 -2
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/mcp/data/text-search-docs.json +16 -6
- package/mcp/data/ui-config.json +317 -23
- package/mcp/package.json +1 -1
- package/package.json +1 -1
- package/styles/base/_motion.scss +16 -16
- package/styles/component-vars.scss +2 -5
- package/styles/generated/_tokens-motion.scss +54 -0
- package/styles/generated/_tokens-transitions.scss +4 -4
- package/styles/generated/_tokens.scss +1 -0
- package/styles/settings/_ui-config.scss +23 -6
- package/styles/utils/_mixins.scss +28 -5
- package/styles/utils/_motion.scss +3 -3
- package/styles.css +1 -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 shown = this.items();\n const shownIds = new Set(shown.map((m) => m.id));\n\n // Drop timer bookkeeping for messages that are gone or no longer shown.\n for (const id of [...this.timers.keys()]) {\n if (!shownIds.has(id)) this.forget(id);\n }\n for (const id of [...this.remaining.keys()]) {\n if (!shownIds.has(id)) this.remaining.delete(id);\n }\n\n if (!this.isBrowser) return;\n\n // Arm a countdown for each newly shown, non-sticky message.\n for (const message of shown) {\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 >\n <ui-toast\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\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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A,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDsBY,OAAO,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,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,uqCAAA,EAAA,MAAA,EAAA,CAAA,o3DAAA,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 shown = this.items();\n const shownIds = new Set(shown.map((m) => m.id));\n\n // Drop timer bookkeeping for messages that are gone or no longer shown.\n for (const id of [...this.timers.keys()]) {\n if (!shownIds.has(id)) this.forget(id);\n }\n for (const id of [...this.remaining.keys()]) {\n if (!shownIds.has(id)) this.remaining.delete(id);\n }\n\n if (!this.isBrowser) return;\n\n // Arm a countdown for each newly shown, non-sticky message.\n for (const message of shown) {\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 >\n <ui-toast\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\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,gBA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AAA,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,uqCAAA,EAAA,MAAA,EAAA,CAAA,o3DAAA,CAAA,EAAA;;;AExDhD;;AAEG;;ACFH;;AAEG;;"}
|
|
@@ -56,11 +56,11 @@ class UiTooltipPanel {
|
|
|
56
56
|
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
57
57
|
}
|
|
58
58
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiTooltipPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
59
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiTooltipPanel, isStandalone: true, selector: "ui-tooltip", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, templateContext: { classPropertyName: "templateContext", publicName: "templateContext", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, tooltipId: { classPropertyName: "tooltipId", publicName: "tooltipId", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFI\u00C9E : mode `escape=false` (opt-in). Ce n'est PAS un contournement \u2014 la liaison passe par l'assainisseur d'Angular, aucun bypass n'est lev\u00E9. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n", styles: [".ui-tooltip{position:relative;display:inline-block;box-sizing:border-box;max-width:var(--ui-tooltip-max-width, 16rem);padding:var(--ui-tooltip-padding-y, var(--units-sm)) var(--ui-tooltip-padding-x, var(--units-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-tooltip-color, var(--informative-defaulthigh-content-default));box-shadow:var(--shadow-default-md);font-family:var(--ui-tooltip-font-family, var(--fontfamily-base));font-weight:var(--ui-tooltip-weight, var(--weight-regular));font-size:var(--ui-tooltip-font-size, var(--size-typography-text-md));line-height:1.4;overflow-wrap:break-word;--ui-motion-duration: var(--transition-fast);--ui-motion-easing: var(--transition-easeout);opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-tooltip._top{translate:0 4px}.ui-tooltip._bottom{translate:0 -4px}.ui-tooltip._left{translate:4px 0}.ui-tooltip._right{translate:-4px 0}.ui-tooltip._visible{opacity:1;translate:0 0}.ui-tooltip._interactive{pointer-events:auto}@media(prefers-reduced-motion:reduce){.ui-tooltip{transition-duration:.01ms;translate:none}}:root[data-motion=off] .ui-tooltip{transition-duration:.01ms;translate:none}.ui-tooltip-text{display:block}.ui-tooltip-arrow{position:absolute;width:var(--ui-tooltip-arrow-size, .5rem);height:var(--ui-tooltip-arrow-size, .5rem);background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));rotate:45deg}.ui-tooltip._top .ui-tooltip-arrow{bottom:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-tooltip._bottom .ui-tooltip-arrow{top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-tooltip._left .ui-tooltip-arrow{right:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-tooltip._right .ui-tooltip-arrow{left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
59
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiTooltipPanel, isStandalone: true, selector: "ui-tooltip", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, template: { classPropertyName: "template", publicName: "template", isSignal: true, isRequired: false, transformFunction: null }, templateContext: { classPropertyName: "templateContext", publicName: "templateContext", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, tooltipId: { classPropertyName: "tooltipId", publicName: "tooltipId", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFI\u00C9E : mode `escape=false` (opt-in). Ce n'est PAS un contournement \u2014 la liaison passe par l'assainisseur d'Angular, aucun bypass n'est lev\u00E9. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n", styles: [".ui-tooltip{position:relative;display:inline-block;box-sizing:border-box;max-width:var(--ui-tooltip-max-width, 16rem);padding:var(--ui-tooltip-padding-y, var(--units-sm)) var(--ui-tooltip-padding-x, var(--units-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-tooltip-color, var(--informative-defaulthigh-content-default));box-shadow:var(--shadow-default-md);font-family:var(--ui-tooltip-font-family, var(--fontfamily-base));font-weight:var(--ui-tooltip-weight, var(--weight-regular));font-size:var(--ui-tooltip-font-size, var(--size-typography-text-md));line-height:1.4;overflow-wrap:break-word;--ui-motion-duration: var(--transition-fast);--ui-motion-easing: var(--transition-easeout);opacity:0;transition:opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-tooltip._top{translate:0 4px}.ui-tooltip._bottom{translate:0 -4px}.ui-tooltip._left{translate:4px 0}.ui-tooltip._right{translate:-4px 0}.ui-tooltip._visible{opacity:1;translate:0 0}.ui-tooltip._interactive{pointer-events:auto}@media(prefers-reduced-motion:reduce){.ui-tooltip{transition-duration:.01ms;translate:none}}:root[data-motion=off] .ui-tooltip{transition-duration:.01ms;translate:none}.ui-tooltip-text{display:block}.ui-tooltip-arrow{position:absolute;width:var(--ui-tooltip-arrow-size, .5rem);height:var(--ui-tooltip-arrow-size, .5rem);background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));rotate:45deg}.ui-tooltip._top .ui-tooltip-arrow{bottom:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-tooltip._bottom .ui-tooltip-arrow{top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-tooltip._left .ui-tooltip-arrow{right:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-tooltip._right .ui-tooltip-arrow{left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
60
60
|
}
|
|
61
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiTooltipPanel, decorators: [{
|
|
62
62
|
type: Component,
|
|
63
|
-
args: [{ selector: 'ui-tooltip', imports: [NgTemplateOutlet], encapsulation: ViewEncapsulation.Emulated, template: "<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFI\u00C9E : mode `escape=false` (opt-in). Ce n'est PAS un contournement \u2014 la liaison passe par l'assainisseur d'Angular, aucun bypass n'est lev\u00E9. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n", styles: [".ui-tooltip{position:relative;display:inline-block;box-sizing:border-box;max-width:var(--ui-tooltip-max-width, 16rem);padding:var(--ui-tooltip-padding-y, var(--units-sm)) var(--ui-tooltip-padding-x, var(--units-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-tooltip-color, var(--informative-defaulthigh-content-default));box-shadow:var(--shadow-default-md);font-family:var(--ui-tooltip-font-family, var(--fontfamily-base));font-weight:var(--ui-tooltip-weight, var(--weight-regular));font-size:var(--ui-tooltip-font-size, var(--size-typography-text-md));line-height:1.4;overflow-wrap:break-word;--ui-motion-duration: var(--transition-fast);--ui-motion-easing: var(--transition-easeout);opacity:0;transition:opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-tooltip._top{translate:0 4px}.ui-tooltip._bottom{translate:0 -4px}.ui-tooltip._left{translate:4px 0}.ui-tooltip._right{translate:-4px 0}.ui-tooltip._visible{opacity:1;translate:0 0}.ui-tooltip._interactive{pointer-events:auto}@media(prefers-reduced-motion:reduce){.ui-tooltip{transition-duration:.01ms;translate:none}}:root[data-motion=off] .ui-tooltip{transition-duration:.01ms;translate:none}.ui-tooltip-text{display:block}.ui-tooltip-arrow{position:absolute;width:var(--ui-tooltip-arrow-size, .5rem);height:var(--ui-tooltip-arrow-size, .5rem);background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));rotate:45deg}.ui-tooltip._top .ui-tooltip-arrow{bottom:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-tooltip._bottom .ui-tooltip-arrow{top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-tooltip._left .ui-tooltip-arrow{right:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-tooltip._right .ui-tooltip-arrow{left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"] }]
|
|
63
|
+
args: [{ selector: 'ui-tooltip', imports: [NgTemplateOutlet], encapsulation: ViewEncapsulation.Emulated, template: "<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFI\u00C9E : mode `escape=false` (opt-in). Ce n'est PAS un contournement \u2014 la liaison passe par l'assainisseur d'Angular, aucun bypass n'est lev\u00E9. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n", styles: [".ui-tooltip{position:relative;display:inline-block;box-sizing:border-box;max-width:var(--ui-tooltip-max-width, 16rem);padding:var(--ui-tooltip-padding-y, var(--units-sm)) var(--ui-tooltip-padding-x, var(--units-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-tooltip-color, var(--informative-defaulthigh-content-default));box-shadow:var(--shadow-default-md);font-family:var(--ui-tooltip-font-family, var(--fontfamily-base));font-weight:var(--ui-tooltip-weight, var(--weight-regular));font-size:var(--ui-tooltip-font-size, var(--size-typography-text-md));line-height:1.4;overflow-wrap:break-word;--ui-motion-duration: var(--transition-fast);--ui-motion-easing: var(--transition-easeout);opacity:0;transition:opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),translate var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-tooltip._top{translate:0 4px}.ui-tooltip._bottom{translate:0 -4px}.ui-tooltip._left{translate:4px 0}.ui-tooltip._right{translate:-4px 0}.ui-tooltip._visible{opacity:1;translate:0 0}.ui-tooltip._interactive{pointer-events:auto}@media(prefers-reduced-motion:reduce){.ui-tooltip{transition-duration:.01ms;translate:none}}:root[data-motion=off] .ui-tooltip{transition-duration:.01ms;translate:none}.ui-tooltip-text{display:block}.ui-tooltip-arrow{position:absolute;width:var(--ui-tooltip-arrow-size, .5rem);height:var(--ui-tooltip-arrow-size, .5rem);background-color:var(--ui-tooltip-surface, var(--informative-defaulthigh-surface-default));border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid var(--ui-tooltip-stroke, var(--informative-defaulthigh-stroke-default));rotate:45deg}.ui-tooltip._top .ui-tooltip-arrow{bottom:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-left:0}.ui-tooltip._bottom .ui-tooltip-arrow{top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));left:50%;margin-left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-right:0;border-bottom:0}.ui-tooltip._left .ui-tooltip-arrow{right:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-bottom:0;border-left:0}.ui-tooltip._right .ui-tooltip-arrow{left:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));top:50%;margin-top:calc(-1 * calc(var(--ui-tooltip-arrow-size, .5rem) / 2));border-top:0;border-right:0}\n"] }]
|
|
64
64
|
}], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], template: [{ type: i0.Input, args: [{ isSignal: true, alias: "template", required: false }] }], templateContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateContext", required: false }] }], escape: [{ type: i0.Input, args: [{ isSignal: true, alias: "escape", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], tooltipId: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipId", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }] } });
|
|
65
65
|
|
|
66
66
|
/** Gap (px) left between the trigger and the tooltip for the arrow — mirrors `$tooltip-arrow-size` in the SCSS. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4sh-ui-kit-informative-ui-tooltip.mjs","sources":["../../../projects/ui-kit/informative/ui-tooltip/src/lib/ui-tooltip-panel.ts","../../../projects/ui-kit/informative/ui-tooltip/src/lib/ui-tooltip-panel.html","../../../projects/ui-kit/informative/ui-tooltip/src/lib/ui-tooltip.ts","../../../projects/ui-kit/informative/ui-tooltip/src/public-api.ts","../../../projects/ui-kit/informative/ui-tooltip/src/4sh-ui-kit-informative-ui-tooltip.ts"],"sourcesContent":["import { Component, computed, input, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n/** Side of the trigger the tooltip is displayed on (drives the arrow position). */\nexport type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';\n\n/**\n * Internal visual panel of the tooltip (the \"bubble\" + arrow).\n *\n * Rendered inside a CDK overlay by the {@link UiTooltip} directive — never used\n * directly in templates. Styling is co-located in `ui-tooltip.scss` and fully\n * token-driven; every value is overridable through the `--ui-tooltip-*` CSS hooks.\n */\n@Component({\n selector: 'ui-tooltip',\n imports: [NgTemplateOutlet],\n templateUrl: './ui-tooltip-panel.html',\n styleUrl: './ui-tooltip.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class UiTooltipPanel {\n /** Plain-text (or HTML when `escape=false`) content. Ignored if `template` is set. */\n text = input<string>();\n /** Rich content rendered through `ngTemplateOutlet`. Takes precedence over `text`. */\n template = input<TemplateRef<unknown>>();\n /** Context object forwarded to `template`. */\n templateContext = input<unknown>();\n /** When true (default) content is text; when false, `text` is bound as sanitized HTML. */\n escape = input(true);\n /** Extra class(es) applied to the tooltip root for one-off customization. */\n styleClass = input<string>();\n /** Side the tooltip sits on — sets the arrow orientation. */\n position = input<TooltipPosition>('top');\n /** DOM id, wired to the trigger via `aria-describedby`. */\n tooltipId = input<string>();\n /** Whether the panel is in its shown (opaque) state — drives the fade transition. */\n visible = input(false);\n /** When true the panel accepts pointer events (autoHide disabled). */\n interactive = input(false);\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-tooltip', `_${this.position()}`];\n if (this.visible()) c.push('_visible');\n if (this.interactive()) c.push('_interactive');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n}\n","<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFIÉE : mode `escape=false` (opt-in). Ce n'est PAS un contournement — la liaison passe par l'assainisseur d'Angular, aucun bypass n'est levé. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n afterNextRender,\n booleanAttribute,\n ComponentRef,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n numberAttribute,\n output,\n PLATFORM_ID,\n Renderer2,\n TemplateRef,\n untracked,\n ViewContainerRef,\n} from '@angular/core';\nimport {\n ConnectedPosition,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\nimport { TooltipPosition, UiTooltipPanel } from './ui-tooltip-panel';\n\nexport type TooltipEvent = 'hover' | 'focus' | 'both';\n\n/** Gap (px) left between the trigger and the tooltip for the arrow — mirrors `$tooltip-arrow-size` in the SCSS. */\nconst ARROW_GAP = 8;\n\n/** Floor applied to `hideDelay` when the panel is interactive. */\nconst INTERACTIVE_HIDE_DELAY = 120;\n\n/** Process-wide counter for unique tooltip ids (aria-describedby wiring). */\nlet nextId = 0;\n\n/**\n * Attribute directive that attaches an advisory tooltip to its host element.\n *\n * Headless behavior (Angular CDK Overlay) + a co-located, fully token-driven panel\n * ({@link UiTooltipPanel}). Inspired by the PrimeNG `pTooltip` API, adapted to the\n * signals idiom of this design system.\n *\n * Positioning, viewport flipping and scroll re-alignment are delegated to the CDK\n * `FlexibleConnectedPositionStrategy` (no manual geometry).\n *\n * @example\n * ```html\n * <button uiTooltip=\"Save the document\" tooltipPosition=\"bottom\">Save</button>\n * <button [uiTooltip]=\"tpl\" [tooltipContext]=\"{ $implicit: user }\">Profile</button>\n * <ng-template #tpl let-u>{{ u.name }}</ng-template>\n * ```\n */\n@Directive({\n selector: '[uiTooltip]',\n exportAs: 'uiTooltip',\n})\nexport class UiTooltip {\n /** Content: plain text, HTML (with `escape=false`) or a `TemplateRef` for rich content. */\n content = input<string | TemplateRef<unknown> | undefined>(undefined, { alias: 'uiTooltip' });\n /** Preferred side of the trigger. CDK flips it automatically when space is lacking. */\n tooltipPosition = input<TooltipPosition>('top');\n /** Auto-flip to another side when the preferred one lacks space (default). `false` locks the side. */\n fitContent = input(true, { transform: booleanAttribute });\n /** Interaction(s) that reveal the tooltip. `both` (default) also covers keyboard focus (a11y). */\n tooltipEvent = input<TooltipEvent>('both');\n /** Disables the tooltip entirely. */\n tooltipDisabled = input(false, { transform: booleanAttribute });\n /** Delay before showing, in ms. */\n showDelay = input(150, { transform: numberAttribute });\n /** Delay before hiding, in ms. */\n hideDelay = input(0, { transform: numberAttribute });\n /** `true` (default): content rendered as text. `false`: `content` bound as sanitized HTML. */\n escape = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the tooltip panel. */\n tooltipStyleClass = input<string>();\n /** Auto-hide when the pointer leaves the trigger (default). `false` keeps it open while hovered. */\n autoHide = input(true, { transform: booleanAttribute });\n /** Hide when the Escape key is pressed (default, WCAG dismissible). */\n hideOnEscape = input(true, { transform: booleanAttribute });\n /** Auto-hide after N ms even while active. `0` (default) disables it. */\n life = input(0, { transform: numberAttribute });\n /** Only show when the trigger text is truncated (ellipsis active). */\n showOnEllipsis = input(false, { transform: booleanAttribute });\n /** Additional vertical offset (px) from the computed position. */\n positionTop = input(0, { transform: numberAttribute });\n /** Additional horizontal offset (px) from the computed position. */\n positionLeft = input(0, { transform: numberAttribute });\n /** Context object forwarded to a `TemplateRef` content. */\n tooltipContext = input<unknown>();\n\n /** Emitted right after the tooltip becomes visible. */\n tooltipShow = output<void>();\n /** Emitted right after the tooltip is hidden. */\n tooltipHide = output<void>();\n\n /** @ignore */\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n /** @ignore */\n private readonly overlay = inject(Overlay);\n /** @ignore */\n private readonly vcr = inject(ViewContainerRef);\n /** @ignore */\n private readonly injector = inject(Injector);\n /** @ignore */\n private readonly renderer = inject(Renderer2);\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n /** @ignore */\n private overlayRef: OverlayRef | null = null;\n /** @ignore */\n private positionStrategy: FlexibleConnectedPositionStrategy | null = null;\n /** @ignore */\n private panelRef: ComponentRef<UiTooltipPanel> | null = null;\n /** @ignore */\n private readonly tooltipId = `ui-tooltip-${nextId++}`;\n\n /** @ignore Deferred timers. */\n private showTimer: ReturnType<typeof setTimeout> | null = null;\n private hideTimer: ReturnType<typeof setTimeout> | null = null;\n private lifeTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** @ignore Teardown handles for host / document listeners. */\n private readonly disposers: (() => void)[] = [];\n\n /** @ignore Content is a template (vs a string). */\n private readonly hasTemplate = computed(() => this.content() instanceof TemplateRef);\n\n constructor() {\n // A navigation removes the trigger without ever firing `mouseleave`:\n // drop the tooltip (and any pending show) instead of leaving it stuck.\n closeOnNavigation(() => this.remove());\n\n // Inputs are only resolved after construction → bind once the view exists (browser only).\n if (this.isBrowser) {\n afterNextRender(() => this.bindTriggerEvents());\n }\n\n // Keep an open tooltip in sync with live content / option changes.\n effect(() => {\n // Track the visible inputs so the effect re-runs on any change.\n const content = this.content();\n this.escape();\n this.tooltipStyleClass();\n this.tooltipContext();\n untracked(() => {\n if (!this.panelRef) return;\n this.applyContent();\n if (!content) this.hide();\n });\n });\n\n // Hide as soon as the tooltip is disabled.\n effect(() => {\n if (this.tooltipDisabled()) untracked(() => this.hide());\n });\n\n inject(DestroyRef).onDestroy(() => this.destroy());\n }\n\n /** Programmatically show the tooltip (respects `showDelay`). */\n show(): void {\n this.activate();\n }\n\n /** Programmatically hide the tooltip (respects `hideDelay`). */\n hide(): void {\n this.deactivate();\n }\n\n // --- Trigger events --------------------------------------------------\n\n /** @ignore */\n private bindTriggerEvents(): void {\n const host = this.el.nativeElement;\n const evt = this.tooltipEvent();\n if (evt === 'hover' || evt === 'both') {\n this.disposers.push(\n this.renderer.listen(host, 'mouseenter', () => this.activate()),\n this.renderer.listen(host, 'mouseleave', () => this.deactivate()),\n this.renderer.listen(host, 'click', () => this.deactivate()),\n this.renderer.listen(host, 'touchstart', () => this.activate()),\n );\n }\n if (evt === 'focus' || evt === 'both') {\n // focusin/focusout bubble → also works when the host wraps the focusable element.\n this.disposers.push(\n this.renderer.listen(host, 'focusin', () => this.activate()),\n this.renderer.listen(host, 'focusout', (event: FocusEvent) => {\n if (this.movedIntoPanel(event.relatedTarget)) return;\n this.deactivate();\n }),\n );\n }\n\n this.disposers.push(\n this.renderer.listen('document', 'keydown.escape', () => {\n if (this.hideOnEscape() && this.overlayRef?.hasAttached()) this.remove();\n }),\n );\n }\n\n // --- Activation lifecycle -------------------------------------------\n\n /** @ignore */\n private activate(): void {\n if (this.tooltipDisabled() || !this.hasContent()) return;\n if (this.showOnEllipsis() && !this.hasEllipsis()) return;\n\n this.clearHideTimer();\n if (this.overlayRef?.hasAttached()) return;\n\n const delay = this.showDelay();\n this.clearShowTimer();\n if (delay > 0) {\n this.showTimer = setTimeout(() => this.render(), delay);\n } else {\n this.render();\n }\n }\n\n /** @ignore */\n private deactivate(): void {\n this.clearShowTimer();\n this.clearHideTimer();\n const delay = this.autoHide()\n ? this.hideDelay()\n : Math.max(this.hideDelay(), INTERACTIVE_HIDE_DELAY);\n if (delay > 0) {\n this.hideTimer = setTimeout(() => this.remove(), delay);\n } else {\n this.remove();\n }\n }\n\n // --- Overlay rendering ----------------------------------------------\n\n /** @ignore */\n private render(): void {\n if (!this.hasContent() || this.tooltipDisabled()) return;\n\n const overlayRef = this.getOverlayRef();\n if (!overlayRef.hasAttached()) {\n this.panelRef = overlayRef.attach(\n new ComponentPortal(UiTooltipPanel, this.vcr, this.injector),\n );\n this.panelRef.setInput('tooltipId', this.tooltipId);\n this.applyContent();\n this.renderer.setAttribute(this.el.nativeElement, 'aria-describedby', this.tooltipId);\n // Let hover pass through unless the tooltip is interactive (autoHide=false).\n overlayRef.overlayElement.style.pointerEvents = this.autoHide() ? 'none' : 'auto';\n }\n\n // Trigger the fade-in on the next frame so the transition runs.\n requestAnimationFrame(() => this.panelRef?.setInput('visible', true));\n\n this.armLifeTimer();\n this.tooltipShow.emit();\n }\n\n /** @ignore */\n private remove(): void {\n this.clearLifeTimer();\n this.clearShowTimer();\n if (!this.overlayRef?.hasAttached()) return;\n this.overlayRef.detach();\n this.panelRef = null;\n this.renderer.removeAttribute(this.el.nativeElement, 'aria-describedby');\n this.tooltipHide.emit();\n }\n\n /** @ignore Built once, reused across shows; positions refreshed each time. */\n private getOverlayRef(): OverlayRef {\n if (this.overlayRef) {\n this.positionStrategy?.withPositions(this.positionsFor(this.tooltipPosition()));\n return this.overlayRef;\n }\n this.positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.el)\n .withFlexibleDimensions(false)\n .withPush(false)\n .withViewportMargin(ARROW_GAP)\n .withPositions(this.positionsFor(this.tooltipPosition()));\n\n // Single subscription for the whole lifecycle → arrow follows the effective side.\n this.positionStrategy.positionChanges.subscribe((change) => {\n this.panelRef?.setInput('position', this.sideOf(change.connectionPair));\n });\n\n this.overlayRef = this.overlay.create({\n positionStrategy: this.positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n panelClass: 'ui-tooltip-overlay',\n hasBackdrop: false,\n });\n this.bindPanelEvents(this.overlayRef);\n return this.overlayRef;\n }\n\n /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */\n private positionsFor(pos: TooltipPosition): ConnectedPosition[] {\n const ox = this.positionLeft();\n const oy = this.positionTop();\n const top: ConnectedPosition = {\n originX: 'center',\n originY: 'top',\n overlayX: 'center',\n overlayY: 'bottom',\n offsetX: ox,\n offsetY: -ARROW_GAP + oy,\n };\n const bottom: ConnectedPosition = {\n originX: 'center',\n originY: 'bottom',\n overlayX: 'center',\n overlayY: 'top',\n offsetX: ox,\n offsetY: ARROW_GAP + oy,\n };\n const left: ConnectedPosition = {\n originX: 'start',\n originY: 'center',\n overlayX: 'end',\n overlayY: 'center',\n offsetX: -ARROW_GAP + ox,\n offsetY: oy,\n };\n const right: ConnectedPosition = {\n originX: 'end',\n originY: 'center',\n overlayX: 'start',\n overlayY: 'center',\n offsetX: ARROW_GAP + ox,\n offsetY: oy,\n };\n const primary: Record<TooltipPosition, ConnectedPosition> = { top, bottom, left, right };\n // fitContent=false → keep only the preferred side (no auto-flip).\n if (!this.fitContent()) return [primary[pos]];\n\n const order: Record<TooltipPosition, ConnectedPosition[]> = {\n top: [top, bottom, right, left],\n bottom: [bottom, top, right, left],\n left: [left, right, top, bottom],\n right: [right, left, top, bottom],\n };\n return order[pos];\n }\n\n /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */\n private sideOf(pair: ConnectedPosition): TooltipPosition {\n if (pair.overlayY === 'bottom') return 'top';\n if (pair.overlayY === 'top') return 'bottom';\n if (pair.overlayX === 'end') return 'left';\n return 'right';\n }\n\n // --- Content ---------------------------------------------------------\n\n /** @ignore */\n private applyContent(): void {\n if (!this.panelRef) return;\n const content = this.content();\n if (this.hasTemplate()) {\n this.panelRef.setInput('template', content as TemplateRef<unknown>);\n this.panelRef.setInput('templateContext', this.tooltipContext());\n this.panelRef.setInput('text', undefined);\n } else {\n this.panelRef.setInput('text', content as string | undefined);\n this.panelRef.setInput('template', undefined);\n }\n this.panelRef.setInput('escape', this.escape());\n this.panelRef.setInput('styleClass', this.tooltipStyleClass());\n this.panelRef.setInput('interactive', !this.autoHide());\n }\n\n /** @ignore */\n private hasContent(): boolean {\n const c = this.content();\n return this.hasTemplate() || !!(typeof c === 'string' && c.length);\n }\n\n /** @ignore Whether the trigger text is visually truncated. */\n private hasEllipsis(): boolean {\n const el = this.el.nativeElement;\n return el.offsetWidth < el.scrollWidth || el.offsetHeight < el.scrollHeight;\n }\n\n // --- Interactive / dismiss listeners --------------------------------\n\n /** @ignore Keep the tooltip open while the pointer or the focus is over it (autoHide=false). */\n private bindPanelEvents(overlayRef: OverlayRef): void {\n const panel = overlayRef.overlayElement;\n this.disposers.push(\n this.renderer.listen(panel, 'mouseenter', () => {\n if (!this.autoHide()) this.clearHideTimer();\n }),\n this.renderer.listen(panel, 'mouseleave', () => {\n if (!this.autoHide()) this.deactivate();\n }),\n this.renderer.listen(panel, 'focusin', () => {\n if (!this.autoHide()) this.clearHideTimer();\n }),\n this.renderer.listen(panel, 'focusout', (event: FocusEvent) => {\n if (this.autoHide() || panel.contains(event.relatedTarget as Node | null)) return;\n this.deactivate();\n }),\n );\n }\n\n /** @ignore The focus moved into an interactive panel rather than away from it. */\n private movedIntoPanel(target: EventTarget | null): boolean {\n if (this.autoHide() || !target) return false;\n const panel = this.overlayRef?.overlayElement;\n return !!panel && panel.contains(target as Node);\n }\n\n // --- Timers ----------------------------------------------------------\n\n /** @ignore */\n private armLifeTimer(): void {\n this.clearLifeTimer();\n const life = this.life();\n if (life > 0) this.lifeTimer = setTimeout(() => this.remove(), life);\n }\n\n /** @ignore */\n private clearShowTimer(): void {\n if (this.showTimer) {\n clearTimeout(this.showTimer);\n this.showTimer = null;\n }\n }\n\n /** @ignore */\n private clearHideTimer(): void {\n if (this.hideTimer) {\n clearTimeout(this.hideTimer);\n this.hideTimer = null;\n }\n }\n\n /** @ignore */\n private clearLifeTimer(): void {\n if (this.lifeTimer) {\n clearTimeout(this.lifeTimer);\n this.lifeTimer = null;\n }\n }\n\n /** @ignore */\n private destroy(): void {\n this.clearShowTimer();\n this.clearHideTimer();\n this.clearLifeTimer();\n this.disposers.forEach((off) => off());\n this.disposers.length = 0;\n this.overlayRef?.dispose();\n this.overlayRef = null;\n this.panelRef = null;\n }\n}\n","/*\n * Public API Surface of ui-kit/ui-tooltip\n */\n\nexport * from './lib/ui-tooltip-panel';\nexport * from './lib/ui-tooltip';\n","/**\n * Generated bundle index. Do not edit.\n */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AA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,EAAA,iBAAA,EAAA,gBAAA,EAAA,UAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,YAAA,EAAA,EAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,EAAA,iBAAA,EAAA,gBAAA,EAAA,UAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBAJrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,QAAQ,EAAE,WAAW;AACtB,iBAAA;;;AC9DD;;AAEG;;ACFH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"4sh-ui-kit-informative-ui-tooltip.mjs","sources":["../../../projects/ui-kit/informative/ui-tooltip/src/lib/ui-tooltip-panel.ts","../../../projects/ui-kit/informative/ui-tooltip/src/lib/ui-tooltip-panel.html","../../../projects/ui-kit/informative/ui-tooltip/src/lib/ui-tooltip.ts","../../../projects/ui-kit/informative/ui-tooltip/src/public-api.ts","../../../projects/ui-kit/informative/ui-tooltip/src/4sh-ui-kit-informative-ui-tooltip.ts"],"sourcesContent":["import { Component, computed, input, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n/** Side of the trigger the tooltip is displayed on (drives the arrow position). */\nexport type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';\n\n/**\n * Internal visual panel of the tooltip (the \"bubble\" + arrow).\n *\n * Rendered inside a CDK overlay by the {@link UiTooltip} directive — never used\n * directly in templates. Styling is co-located in `ui-tooltip.scss` and fully\n * token-driven; every value is overridable through the `--ui-tooltip-*` CSS hooks.\n */\n@Component({\n selector: 'ui-tooltip',\n imports: [NgTemplateOutlet],\n templateUrl: './ui-tooltip-panel.html',\n styleUrl: './ui-tooltip.scss',\n encapsulation: ViewEncapsulation.Emulated,\n})\nexport class UiTooltipPanel {\n /** Plain-text (or HTML when `escape=false`) content. Ignored if `template` is set. */\n text = input<string>();\n /** Rich content rendered through `ngTemplateOutlet`. Takes precedence over `text`. */\n template = input<TemplateRef<unknown>>();\n /** Context object forwarded to `template`. */\n templateContext = input<unknown>();\n /** When true (default) content is text; when false, `text` is bound as sanitized HTML. */\n escape = input(true);\n /** Extra class(es) applied to the tooltip root for one-off customization. */\n styleClass = input<string>();\n /** Side the tooltip sits on — sets the arrow orientation. */\n position = input<TooltipPosition>('top');\n /** DOM id, wired to the trigger via `aria-describedby`. */\n tooltipId = input<string>();\n /** Whether the panel is in its shown (opaque) state — drives the fade transition. */\n visible = input(false);\n /** When true the panel accepts pointer events (autoHide disabled). */\n interactive = input(false);\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-tooltip', `_${this.position()}`];\n if (this.visible()) c.push('_visible');\n if (this.interactive()) c.push('_interactive');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n}\n","<div [class]=\"classes()\" role=\"tooltip\" [id]=\"tooltipId()\">\n <span class=\"ui-tooltip-arrow\" aria-hidden=\"true\"></span>\n <div class=\"ui-tooltip-text\">\n @if (template()) {\n <ng-container *ngTemplateOutlet=\"template()!; context: templateContext()\" />\n } @else if (escape()) {\n {{ text() }}\n } @else {\n <!-- eslint-disable-next-line no-restricted-syntax -- EXCEPTION JUSTIFIÉE : mode `escape=false` (opt-in). Ce n'est PAS un contournement — la liaison passe par l'assainisseur d'Angular, aucun bypass n'est levé. Registre : docs/SECURITY-PRACTICES.md. -->\n <span [innerHTML]=\"text()\"></span>\n }\n </div>\n</div>\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n afterNextRender,\n booleanAttribute,\n ComponentRef,\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n numberAttribute,\n output,\n PLATFORM_ID,\n Renderer2,\n TemplateRef,\n untracked,\n ViewContainerRef,\n} from '@angular/core';\nimport {\n ConnectedPosition,\n FlexibleConnectedPositionStrategy,\n Overlay,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\nimport { TooltipPosition, UiTooltipPanel } from './ui-tooltip-panel';\n\nexport type TooltipEvent = 'hover' | 'focus' | 'both';\n\n/** Gap (px) left between the trigger and the tooltip for the arrow — mirrors `$tooltip-arrow-size` in the SCSS. */\nconst ARROW_GAP = 8;\n\n/** Floor applied to `hideDelay` when the panel is interactive. */\nconst INTERACTIVE_HIDE_DELAY = 120;\n\n/** Process-wide counter for unique tooltip ids (aria-describedby wiring). */\nlet nextId = 0;\n\n/**\n * Attribute directive that attaches an advisory tooltip to its host element.\n *\n * Headless behavior (Angular CDK Overlay) + a co-located, fully token-driven panel\n * ({@link UiTooltipPanel}). Inspired by the PrimeNG `pTooltip` API, adapted to the\n * signals idiom of this design system.\n *\n * Positioning, viewport flipping and scroll re-alignment are delegated to the CDK\n * `FlexibleConnectedPositionStrategy` (no manual geometry).\n *\n * @example\n * ```html\n * <button uiTooltip=\"Save the document\" tooltipPosition=\"bottom\">Save</button>\n * <button [uiTooltip]=\"tpl\" [tooltipContext]=\"{ $implicit: user }\">Profile</button>\n * <ng-template #tpl let-u>{{ u.name }}</ng-template>\n * ```\n */\n@Directive({\n selector: '[uiTooltip]',\n exportAs: 'uiTooltip',\n})\nexport class UiTooltip {\n /** Content: plain text, HTML (with `escape=false`) or a `TemplateRef` for rich content. */\n content = input<string | TemplateRef<unknown> | undefined>(undefined, { alias: 'uiTooltip' });\n /** Preferred side of the trigger. CDK flips it automatically when space is lacking. */\n tooltipPosition = input<TooltipPosition>('top');\n /** Auto-flip to another side when the preferred one lacks space (default). `false` locks the side. */\n fitContent = input(true, { transform: booleanAttribute });\n /** Interaction(s) that reveal the tooltip. `both` (default) also covers keyboard focus (a11y). */\n tooltipEvent = input<TooltipEvent>('both');\n /** Disables the tooltip entirely. */\n tooltipDisabled = input(false, { transform: booleanAttribute });\n /** Delay before showing, in ms. */\n showDelay = input(150, { transform: numberAttribute });\n /** Delay before hiding, in ms. */\n hideDelay = input(0, { transform: numberAttribute });\n /** `true` (default): content rendered as text. `false`: `content` bound as sanitized HTML. */\n escape = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the tooltip panel. */\n tooltipStyleClass = input<string>();\n /** Auto-hide when the pointer leaves the trigger (default). `false` keeps it open while hovered. */\n autoHide = input(true, { transform: booleanAttribute });\n /** Hide when the Escape key is pressed (default, WCAG dismissible). */\n hideOnEscape = input(true, { transform: booleanAttribute });\n /** Auto-hide after N ms even while active. `0` (default) disables it. */\n life = input(0, { transform: numberAttribute });\n /** Only show when the trigger text is truncated (ellipsis active). */\n showOnEllipsis = input(false, { transform: booleanAttribute });\n /** Additional vertical offset (px) from the computed position. */\n positionTop = input(0, { transform: numberAttribute });\n /** Additional horizontal offset (px) from the computed position. */\n positionLeft = input(0, { transform: numberAttribute });\n /** Context object forwarded to a `TemplateRef` content. */\n tooltipContext = input<unknown>();\n\n /** Emitted right after the tooltip becomes visible. */\n tooltipShow = output<void>();\n /** Emitted right after the tooltip is hidden. */\n tooltipHide = output<void>();\n\n /** @ignore */\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n /** @ignore */\n private readonly overlay = inject(Overlay);\n /** @ignore */\n private readonly vcr = inject(ViewContainerRef);\n /** @ignore */\n private readonly injector = inject(Injector);\n /** @ignore */\n private readonly renderer = inject(Renderer2);\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n /** @ignore */\n private overlayRef: OverlayRef | null = null;\n /** @ignore */\n private positionStrategy: FlexibleConnectedPositionStrategy | null = null;\n /** @ignore */\n private panelRef: ComponentRef<UiTooltipPanel> | null = null;\n /** @ignore */\n private readonly tooltipId = `ui-tooltip-${nextId++}`;\n\n /** @ignore Deferred timers. */\n private showTimer: ReturnType<typeof setTimeout> | null = null;\n private hideTimer: ReturnType<typeof setTimeout> | null = null;\n private lifeTimer: ReturnType<typeof setTimeout> | null = null;\n\n /** @ignore Teardown handles for host / document listeners. */\n private readonly disposers: (() => void)[] = [];\n\n /** @ignore Content is a template (vs a string). */\n private readonly hasTemplate = computed(() => this.content() instanceof TemplateRef);\n\n constructor() {\n // A navigation removes the trigger without ever firing `mouseleave`:\n // drop the tooltip (and any pending show) instead of leaving it stuck.\n closeOnNavigation(() => this.remove());\n\n // Inputs are only resolved after construction → bind once the view exists (browser only).\n if (this.isBrowser) {\n afterNextRender(() => this.bindTriggerEvents());\n }\n\n // Keep an open tooltip in sync with live content / option changes.\n effect(() => {\n // Track the visible inputs so the effect re-runs on any change.\n const content = this.content();\n this.escape();\n this.tooltipStyleClass();\n this.tooltipContext();\n untracked(() => {\n if (!this.panelRef) return;\n this.applyContent();\n if (!content) this.hide();\n });\n });\n\n // Hide as soon as the tooltip is disabled.\n effect(() => {\n if (this.tooltipDisabled()) untracked(() => this.hide());\n });\n\n inject(DestroyRef).onDestroy(() => this.destroy());\n }\n\n /** Programmatically show the tooltip (respects `showDelay`). */\n show(): void {\n this.activate();\n }\n\n /** Programmatically hide the tooltip (respects `hideDelay`). */\n hide(): void {\n this.deactivate();\n }\n\n // --- Trigger events --------------------------------------------------\n\n /** @ignore */\n private bindTriggerEvents(): void {\n const host = this.el.nativeElement;\n const evt = this.tooltipEvent();\n if (evt === 'hover' || evt === 'both') {\n this.disposers.push(\n this.renderer.listen(host, 'mouseenter', () => this.activate()),\n this.renderer.listen(host, 'mouseleave', () => this.deactivate()),\n this.renderer.listen(host, 'click', () => this.deactivate()),\n this.renderer.listen(host, 'touchstart', () => this.activate()),\n );\n }\n if (evt === 'focus' || evt === 'both') {\n // focusin/focusout bubble → also works when the host wraps the focusable element.\n this.disposers.push(\n this.renderer.listen(host, 'focusin', () => this.activate()),\n this.renderer.listen(host, 'focusout', (event: FocusEvent) => {\n if (this.movedIntoPanel(event.relatedTarget)) return;\n this.deactivate();\n }),\n );\n }\n\n this.disposers.push(\n this.renderer.listen('document', 'keydown.escape', () => {\n if (this.hideOnEscape() && this.overlayRef?.hasAttached()) this.remove();\n }),\n );\n }\n\n // --- Activation lifecycle -------------------------------------------\n\n /** @ignore */\n private activate(): void {\n if (this.tooltipDisabled() || !this.hasContent()) return;\n if (this.showOnEllipsis() && !this.hasEllipsis()) return;\n\n this.clearHideTimer();\n if (this.overlayRef?.hasAttached()) return;\n\n const delay = this.showDelay();\n this.clearShowTimer();\n if (delay > 0) {\n this.showTimer = setTimeout(() => this.render(), delay);\n } else {\n this.render();\n }\n }\n\n /** @ignore */\n private deactivate(): void {\n this.clearShowTimer();\n this.clearHideTimer();\n const delay = this.autoHide()\n ? this.hideDelay()\n : Math.max(this.hideDelay(), INTERACTIVE_HIDE_DELAY);\n if (delay > 0) {\n this.hideTimer = setTimeout(() => this.remove(), delay);\n } else {\n this.remove();\n }\n }\n\n // --- Overlay rendering ----------------------------------------------\n\n /** @ignore */\n private render(): void {\n if (!this.hasContent() || this.tooltipDisabled()) return;\n\n const overlayRef = this.getOverlayRef();\n if (!overlayRef.hasAttached()) {\n this.panelRef = overlayRef.attach(\n new ComponentPortal(UiTooltipPanel, this.vcr, this.injector),\n );\n this.panelRef.setInput('tooltipId', this.tooltipId);\n this.applyContent();\n this.renderer.setAttribute(this.el.nativeElement, 'aria-describedby', this.tooltipId);\n // Let hover pass through unless the tooltip is interactive (autoHide=false).\n overlayRef.overlayElement.style.pointerEvents = this.autoHide() ? 'none' : 'auto';\n }\n\n // Trigger the fade-in on the next frame so the transition runs.\n requestAnimationFrame(() => this.panelRef?.setInput('visible', true));\n\n this.armLifeTimer();\n this.tooltipShow.emit();\n }\n\n /** @ignore */\n private remove(): void {\n this.clearLifeTimer();\n this.clearShowTimer();\n if (!this.overlayRef?.hasAttached()) return;\n this.overlayRef.detach();\n this.panelRef = null;\n this.renderer.removeAttribute(this.el.nativeElement, 'aria-describedby');\n this.tooltipHide.emit();\n }\n\n /** @ignore Built once, reused across shows; positions refreshed each time. */\n private getOverlayRef(): OverlayRef {\n if (this.overlayRef) {\n this.positionStrategy?.withPositions(this.positionsFor(this.tooltipPosition()));\n return this.overlayRef;\n }\n this.positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.el)\n .withFlexibleDimensions(false)\n .withPush(false)\n .withViewportMargin(ARROW_GAP)\n .withPositions(this.positionsFor(this.tooltipPosition()));\n\n // Single subscription for the whole lifecycle → arrow follows the effective side.\n this.positionStrategy.positionChanges.subscribe((change) => {\n this.panelRef?.setInput('position', this.sideOf(change.connectionPair));\n });\n\n this.overlayRef = this.overlay.create({\n positionStrategy: this.positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n panelClass: 'ui-tooltip-overlay',\n hasBackdrop: false,\n });\n this.bindPanelEvents(this.overlayRef);\n return this.overlayRef;\n }\n\n /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */\n private positionsFor(pos: TooltipPosition): ConnectedPosition[] {\n const ox = this.positionLeft();\n const oy = this.positionTop();\n const top: ConnectedPosition = {\n originX: 'center',\n originY: 'top',\n overlayX: 'center',\n overlayY: 'bottom',\n offsetX: ox,\n offsetY: -ARROW_GAP + oy,\n };\n const bottom: ConnectedPosition = {\n originX: 'center',\n originY: 'bottom',\n overlayX: 'center',\n overlayY: 'top',\n offsetX: ox,\n offsetY: ARROW_GAP + oy,\n };\n const left: ConnectedPosition = {\n originX: 'start',\n originY: 'center',\n overlayX: 'end',\n overlayY: 'center',\n offsetX: -ARROW_GAP + ox,\n offsetY: oy,\n };\n const right: ConnectedPosition = {\n originX: 'end',\n originY: 'center',\n overlayX: 'start',\n overlayY: 'center',\n offsetX: ARROW_GAP + ox,\n offsetY: oy,\n };\n const primary: Record<TooltipPosition, ConnectedPosition> = { top, bottom, left, right };\n // fitContent=false → keep only the preferred side (no auto-flip).\n if (!this.fitContent()) return [primary[pos]];\n\n const order: Record<TooltipPosition, ConnectedPosition[]> = {\n top: [top, bottom, right, left],\n bottom: [bottom, top, right, left],\n left: [left, right, top, bottom],\n right: [right, left, top, bottom],\n };\n return order[pos];\n }\n\n /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */\n private sideOf(pair: ConnectedPosition): TooltipPosition {\n if (pair.overlayY === 'bottom') return 'top';\n if (pair.overlayY === 'top') return 'bottom';\n if (pair.overlayX === 'end') return 'left';\n return 'right';\n }\n\n // --- Content ---------------------------------------------------------\n\n /** @ignore */\n private applyContent(): void {\n if (!this.panelRef) return;\n const content = this.content();\n if (this.hasTemplate()) {\n this.panelRef.setInput('template', content as TemplateRef<unknown>);\n this.panelRef.setInput('templateContext', this.tooltipContext());\n this.panelRef.setInput('text', undefined);\n } else {\n this.panelRef.setInput('text', content as string | undefined);\n this.panelRef.setInput('template', undefined);\n }\n this.panelRef.setInput('escape', this.escape());\n this.panelRef.setInput('styleClass', this.tooltipStyleClass());\n this.panelRef.setInput('interactive', !this.autoHide());\n }\n\n /** @ignore */\n private hasContent(): boolean {\n const c = this.content();\n return this.hasTemplate() || !!(typeof c === 'string' && c.length);\n }\n\n /** @ignore Whether the trigger text is visually truncated. */\n private hasEllipsis(): boolean {\n const el = this.el.nativeElement;\n return el.offsetWidth < el.scrollWidth || el.offsetHeight < el.scrollHeight;\n }\n\n // --- Interactive / dismiss listeners --------------------------------\n\n /** @ignore Keep the tooltip open while the pointer or the focus is over it (autoHide=false). */\n private bindPanelEvents(overlayRef: OverlayRef): void {\n const panel = overlayRef.overlayElement;\n this.disposers.push(\n this.renderer.listen(panel, 'mouseenter', () => {\n if (!this.autoHide()) this.clearHideTimer();\n }),\n this.renderer.listen(panel, 'mouseleave', () => {\n if (!this.autoHide()) this.deactivate();\n }),\n this.renderer.listen(panel, 'focusin', () => {\n if (!this.autoHide()) this.clearHideTimer();\n }),\n this.renderer.listen(panel, 'focusout', (event: FocusEvent) => {\n if (this.autoHide() || panel.contains(event.relatedTarget as Node | null)) return;\n this.deactivate();\n }),\n );\n }\n\n /** @ignore The focus moved into an interactive panel rather than away from it. */\n private movedIntoPanel(target: EventTarget | null): boolean {\n if (this.autoHide() || !target) return false;\n const panel = this.overlayRef?.overlayElement;\n return !!panel && panel.contains(target as Node);\n }\n\n // --- Timers ----------------------------------------------------------\n\n /** @ignore */\n private armLifeTimer(): void {\n this.clearLifeTimer();\n const life = this.life();\n if (life > 0) this.lifeTimer = setTimeout(() => this.remove(), life);\n }\n\n /** @ignore */\n private clearShowTimer(): void {\n if (this.showTimer) {\n clearTimeout(this.showTimer);\n this.showTimer = null;\n }\n }\n\n /** @ignore */\n private clearHideTimer(): void {\n if (this.hideTimer) {\n clearTimeout(this.hideTimer);\n this.hideTimer = null;\n }\n }\n\n /** @ignore */\n private clearLifeTimer(): void {\n if (this.lifeTimer) {\n clearTimeout(this.lifeTimer);\n this.lifeTimer = null;\n }\n }\n\n /** @ignore */\n private destroy(): void {\n this.clearShowTimer();\n this.clearHideTimer();\n this.clearLifeTimer();\n this.disposers.forEach((off) => off());\n this.disposers.length = 0;\n this.overlayRef?.dispose();\n this.overlayRef = null;\n this.panelRef = null;\n }\n}\n","/*\n * Public API Surface of ui-kit/ui-tooltip\n */\n\nexport * from './lib/ui-tooltip-panel';\nexport * from './lib/ui-tooltip';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;;;AAMG;MAQU,cAAc,CAAA;AAP3B,IAAA,WAAA,GAAA;;AASE,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAwB;;AAExC,QAAA,IAAA,CAAA,eAAe,GAAG,KAAK;uGAAW;;QAElC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,IAAI;mFAAC;;AAEpB,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAU;;QAE5B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAkB,KAAK;qFAAC;;AAExC,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAE3B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK;oFAAC;;QAEtB,IAAA,CAAA,WAAW,GAAG,KAAK,CAAC,KAAK;wFAAC;;AAGP,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;AACzC,YAAA,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,CAAA,CAAA,EAAI,IAAI,CAAC,QAAQ,EAAE,CAAA,CAAE,CAAC;YAC/C,IAAI,IAAI,CAAC,OAAO,EAAE;AAAE,gBAAA,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;YACtC,IAAI,IAAI,CAAC,WAAW,EAAE;AAAE,gBAAA,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC;AAC9C,YAAA,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,EAAE;AAC5B,YAAA,IAAI,EAAE;AAAE,gBAAA,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;AAClB,YAA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;;"}
|
|
@@ -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.7", ngImport: i0, type: UiBottomSheet, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
589
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", 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"] }] }); }
|
|
589
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", 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(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-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(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-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(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-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(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-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.7", 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: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"] }]
|
|
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(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-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(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-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(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-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(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-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
|
/*
|