@4sh/ui-kit 0.3.0 → 0.5.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.
Files changed (114) hide show
  1. package/README.fr.md +107 -62
  2. package/README.md +101 -59
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +4 -4
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +7 -6
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +4 -4
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +7 -7
  10. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +11 -8
  12. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +32 -12
  14. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +3 -3
  16. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +51 -15
  17. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  18. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +3 -3
  19. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  20. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +13 -9
  21. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  22. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +6 -6
  23. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +5 -5
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +6 -6
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +8 -4
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +24 -9
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +4 -4
  32. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +3 -3
  34. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +4 -4
  35. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  36. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +4 -8
  37. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  38. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +4 -8
  39. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  40. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +11 -6
  41. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  42. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +29 -15
  43. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  44. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +8 -9
  45. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  46. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +13 -6
  47. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  48. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +6 -4
  49. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  50. package/fesm2022/4sh-ui-kit-forms.mjs +16 -16
  51. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  52. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +12 -12
  53. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  54. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +3 -3
  55. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +3 -3
  56. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +3 -3
  57. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +3 -3
  58. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +3 -3
  59. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  60. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +9 -9
  61. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +3 -3
  62. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +4 -4
  63. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  64. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +5 -4
  65. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  66. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +3 -3
  67. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +3 -3
  68. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +4 -4
  69. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  70. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +3 -3
  71. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  72. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +10 -10
  73. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  74. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +30 -14
  75. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  76. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +15 -15
  77. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +4 -4
  78. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +4 -4
  80. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +23 -7
  82. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
  84. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +10 -5
  86. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +3 -3
  88. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +79 -14
  90. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +15 -13
  92. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  93. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +29 -21
  94. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  95. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +15 -15
  96. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  97. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +4 -4
  98. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  99. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +55 -42
  100. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  101. package/fesm2022/4sh-ui-kit-theming.mjs +7 -7
  102. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  103. package/mcp/LICENSE +201 -0
  104. package/mcp/data/text-search-docs.json +7016 -0
  105. package/mcp/data/ui-config.json +16960 -0
  106. package/mcp/index.js +33018 -0
  107. package/mcp/package.json +19 -0
  108. package/package.json +1 -1
  109. package/schematics/index.cjs +28 -18
  110. package/styles/base/_base.scss +1 -1
  111. package/styles/generated/_tokens-semantics.scss +8 -8
  112. package/styles/generated/_tokens-typography.scss +4 -4
  113. package/styles/index.scss +4 -1
  114. 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 liveIds = new Set(keyed.map((m) => m.id));\n\n // Drop timer bookkeeping for messages that are gone.\n for (const id of [...this.timers.keys()]) {\n if (!liveIds.has(id)) this.forget(id);\n }\n for (const id of [...this.remaining.keys()]) {\n if (!liveIds.has(id)) this.remaining.delete(id);\n }\n\n if (!this.isBrowser) return;\n\n // Arm a countdown for each new, non-sticky message (even ones beyond the\n // visible limit, so a queued toast still expires on schedule).\n for (const message of keyed) {\n const id = message.id!;\n if (message.sticky) continue;\n if (this.timers.has(id) || this.remaining.has(id)) continue;\n const life = message.life ?? this.life();\n if (life > 0) this.arm(id, life);\n }\n });\n\n inject(DestroyRef).onDestroy(() => {\n for (const id of [...this.timers.keys()]) this.forget(id);\n });\n }\n\n /** @ignore Start (or restart) a countdown of `ms` for a message. */\n private arm(id: UiToastId, ms: number): void {\n this.remaining.set(id, ms);\n this.startedAt.set(id, Date.now());\n this.timers.set(\n id,\n setTimeout(() => {\n this.timers.delete(id);\n this.service.remove(id);\n }, ms),\n );\n }\n\n /** @ignore Cancel and drop all timer bookkeeping for a message. */\n private forget(id: UiToastId): void {\n const handle = this.timers.get(id);\n if (handle) clearTimeout(handle);\n this.timers.delete(id);\n this.startedAt.delete(id);\n }\n\n /** @ignore Pause the countdown on hover/focus (banks the remaining time). */\n protected pause(id: UiToastId | undefined): void {\n if (id == null) return;\n const handle = this.timers.get(id);\n if (!handle) return;\n clearTimeout(handle);\n this.timers.delete(id);\n const banked = this.remaining.get(id) ?? 0;\n const elapsed = Date.now() - (this.startedAt.get(id) ?? Date.now());\n this.remaining.set(id, Math.max(banked - elapsed, 0));\n }\n\n /** @ignore Resume a paused countdown when the pointer/focus leaves. */\n protected resume(id: UiToastId | undefined): void {\n if (id == null || !this.isBrowser) return;\n if (this.timers.has(id)) return;\n const left = this.remaining.get(id);\n if (left == null || left <= 0) return;\n this.arm(id, left);\n }\n\n /** @ignore Dismiss a toast (close button or a custom template's `closeFn`). */\n protected dismiss(message: UiToastMessage): void {\n if (message.id != null) this.service.remove(message.id);\n }\n\n /** @ignore Template-context factory: a bound close handler for one message. */\n protected closeFn(message: UiToastMessage): () => void {\n return () => this.dismiss(message);\n }\n}\n","<div\n [class]=\"regionClass()\"\n [style.z-index]=\"zIndex()\"\n [style.gap.px]=\"stackGap() ?? null\"\n>\n @for (item of items(); track item.id) {\n <div\n class=\"ui-toast-region-item\"\n [uiMotion]=\"motionPreset()\"\n [motionDisabled]=\"motionDisabled()\"\n #m=\"uiMotion\"\n [animate.enter]=\"m.enter()\"\n [animate.leave]=\"m.leave()\"\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\n >\n <ui-toast\n [level]=\"item.level ?? 'default'\"\n [subLevel]=\"item.subLevel ?? 'high'\"\n [title]=\"template() ? undefined : item.title\"\n [text]=\"template() ? undefined : item.text\"\n [icon]=\"item.icon ?? true\"\n [closable]=\"item.closable ?? true\"\n [expanded]=\"expanded()\"\n [styleClass]=\"item.styleClass\"\n (closed)=\"dismiss(item)\"\n >\n @if (template(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl; context: { $implicit: item, closeFn: closeFn(item) }\" />\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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AAA,EAAA,oBAAoB,WACrB,CAAC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,kpCAAA,EAAA,MAAA,EAAA,CAAA,i0DAAA,CAAA,EAAA;;;AExDhD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-toast.mjs","sources":["../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.types.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.html","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast.service.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast-container.ts","../../../projects/ui-kit/informative/ui-toast/src/lib/ui-toast-container.html","../../../projects/ui-kit/informative/ui-toast/src/public-api.ts","../../../projects/ui-kit/informative/ui-toast/src/4sh-ui-kit-informative-ui-toast.ts"],"sourcesContent":["import { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\n/** Unique identifier of a toast message (auto-generated when omitted). */\nexport type UiToastId = string | number;\n\n/**\n * Where a {@link UiToastContainer} pins its stack in the viewport.\n */\nexport type UiToastPosition =\n | 'top-left'\n | 'top-center'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-center'\n | 'bottom-right'\n | 'center';\n\n/** All positions, in declaration order (handy for stories/docs). */\nexport const UI_TOAST_POSITIONS: readonly UiToastPosition[] = [\n 'top-left',\n 'top-center',\n 'top-right',\n 'bottom-left',\n 'bottom-center',\n 'bottom-right',\n 'center',\n];\n\n/**\n * A single toast message pushed through the {@link UiToastService}.\n *\n * Only `title`/`text` are typically needed; everything else has a sensible\n * default resolved by the container.\n * remapped to this design system's semantic `level` / `subLevel` vocabulary.\n */\nexport interface UiToastMessage {\n /** Unique id. Auto-generated by the service when omitted. */\n id?: UiToastId;\n /** Routes the message to the container(s) sharing the same `key`. */\n key?: string;\n /** Semantic level (drives colours + default icon). */\n level?: UiFeedbackLevel;\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel?: UiSubLevel;\n /** Bold heading line. */\n title?: string;\n /** Supporting body line. */\n text?: string;\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or omit / `true` for the level's default icon.\n */\n icon?: string | boolean;\n /** Show the dismiss button (default `true`). */\n closable?: boolean;\n /** Never auto-dismiss — the user must close it (default `false`). */\n sticky?: boolean;\n /** Auto-dismiss delay in ms. Falls back to the container `life`. */\n life?: number;\n /** Arbitrary payload forwarded to a custom `template` (custom / action toasts). */\n data?: unknown;\n /** Extra class(es) applied to the toast card for one-off styling. */\n styleClass?: string;\n}\n\n/** Context object handed to a container's custom content `template`. */\nexport interface UiToastTemplateContext {\n /** The message being rendered. */\n $implicit: UiToastMessage;\n /** Dismisses this toast (same as clicking the close button). */\n closeFn: () => void;\n}\n\n/** Default leading icon per semantic level (FontAwesome names, from the Figma source). */\nexport const UI_TOAST_DEFAULT_ICONS: Record<UiFeedbackLevel, string> = {\n default: 'info-circle',\n highlight: 'info-circle',\n success: 'check',\n warning: 'warning',\n error: 'times',\n};\n","import { booleanAttribute, Component, computed, input, output } from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\nimport { UI_TOAST_DEFAULT_ICONS } from './ui-toast.types';\n\n/**\n * ui-toast — presentational notification card.\n *\n * Headless & fully token-driven (the `informative` category): surface, content\n * and stroke all come from `--informative-{level}{sub}-*`. It renders the Figma\n * anatomy (leading icon · title/text · dismiss button) and projects `<ng-content>`\n * in the content region for custom bodies or action buttons.\n *\n * Usually rendered for you by {@link UiToastContainer} from a {@link UiToastService}\n * message, but it is a plain standalone card — drop `<ui-toast>` anywhere.\n *\n * @example\n * ```html\n * <ui-toast level=\"success\" title=\"Enregistré\" text=\"Profil mis à jour.\" (closed)=\"…\" />\n * ```\n */\n@Component({\n selector: 'ui-toast',\n imports: [UiIcon],\n templateUrl: './ui-toast.html',\n styleUrl: './ui-toast.scss',\n host: {\n // Hug content by default; the container makes it fill the region in banner mode.\n '[style.display]': \"'inline-flex'\",\n '[style.maxWidth]': \"'100%'\",\n },\n})\nexport class UiToast {\n /** Bold heading line. */\n title = input<string>();\n /** Supporting body line. */\n text = input<string>();\n /** Semantic level — colours + default icon. */\n level = input<UiFeedbackLevel>('default');\n /** Hierarchical intensity (`high` = solid, `low` = subtle). */\n subLevel = input<UiSubLevel>('high');\n /**\n * Leading icon: a FontAwesome name to override the level default, `false`\n * to hide it, or `true` (default) for the level's default icon.\n */\n icon = input<string | boolean>(true);\n /** Show the dismiss button (default `true`). */\n closable = input(true, { transform: booleanAttribute });\n /** FontAwesome name of the dismiss icon. */\n closeIcon = input<string>('times-circle');\n /** Accessible label of the dismiss button. */\n closeAriaLabel = input<string>('Fermer');\n /** Stretch the card to fill its region width (banner-style). */\n expanded = input(false, { transform: booleanAttribute });\n /** Extra class(es) merged onto the card root. */\n styleClass = input<string>();\n\n /** Emitted when the user clicks the dismiss button. */\n closed = output<MouseEvent>();\n\n /** @ignore Resolved leading icon name (null when hidden). */\n protected readonly iconName = computed<string | null>(() => {\n const icon = this.icon();\n if (icon === false) return null;\n if (typeof icon === 'string') return icon;\n return UI_TOAST_DEFAULT_ICONS[this.level()];\n });\n\n /** @ignore ARIA role — assertive alert for error/warning, polite status otherwise\n * (mirrors ui-alert, so a standalone ui-toast self-announces without the container). */\n protected readonly role = computed(() =>\n this.level() === 'error' || this.level() === 'warning' ? 'alert' : 'status',\n );\n\n /** @ignore */\n protected readonly ariaLive = computed(() =>\n this.level() === 'error' || this.level() === 'warning' ? 'assertive' : 'polite',\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-toast', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.expanded()) c.push('_expanded');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n /** @ignore */\n protected onClose(event: MouseEvent): void {\n this.closed.emit(event);\n }\n}\n","<div [class]=\"classes()\" [attr.role]=\"role()\" [attr.aria-live]=\"ariaLive()\" aria-atomic=\"true\">\n @if (iconName(); as name) {\n <span class=\"ui-toast-icon\">\n <ui-icon [name]=\"name\" size=\"md\" />\n </span>\n }\n\n <div class=\"ui-toast-content\">\n @if (title(); as t) {\n <span class=\"ui-toast-title\">{{ t }}</span>\n }\n @if (text(); as txt) {\n <span class=\"ui-toast-text\">{{ txt }}</span>\n }\n <ng-content />\n </div>\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"ui-toast-close\"\n [attr.aria-label]=\"closeAriaLabel()\"\n (click)=\"onClose($event)\"\n >\n <ui-icon [name]=\"closeIcon()\" size=\"sm\" />\n </button>\n }\n</div>\n","import { computed, Injectable, signal } from '@angular/core';\nimport { UiToastId, UiToastMessage } from './ui-toast.types';\n\n/** Process-wide counter guaranteeing unique auto-generated toast ids. */\nlet nextId = 0;\n\n/**\n * ui-toast service — programmatic entry point to push and clear toasts.\n *\n * Signal-based store:\n * `add`/`addAll` append messages, `clear`/`remove` drop them. One or more\n * {@link UiToastContainer} instances read this store reactively and render the\n * slice that matches their `key`. Provided in root, so a single injection is\n * shared across the app.\n *\n * @example\n * ```ts\n * private readonly toast = inject(UiToastService);\n * this.toast.add({ level: 'success', title: 'Enregistré', text: 'Profil mis à jour.' });\n * ```\n */\n@Injectable({ providedIn: 'root' })\nexport class UiToastService {\n /** @ignore Backing store of live messages. */\n private readonly _messages = signal<UiToastMessage[]>([]);\n\n /** Live messages, in insertion order (read-only). */\n readonly messages = this._messages.asReadonly();\n\n /** Total number of live messages across every key. */\n readonly count = computed(() => this._messages().length);\n\n /**\n * Push a single message. Returns its (possibly generated) id so the caller\n * can dismiss it later (e.g. resolving a \"loading\" toast into a result).\n */\n add(message: UiToastMessage): UiToastId {\n const id = message.id ?? `ui-toast-${nextId++}`;\n this._messages.update((list) => [...list, { ...message, id }]);\n return id;\n }\n\n /** Push several messages at once. Returns their ids, in order. */\n addAll(messages: UiToastMessage[]): UiToastId[] {\n return messages.map((message) => this.add(message));\n }\n\n /**\n * Remove messages. With no argument, clears everything; with a `key`, clears\n * only the messages routed to that key.\n */\n clear(key?: string): void {\n if (key == null) {\n this._messages.set([]);\n return;\n }\n this._messages.update((list) => list.filter((m) => m.key !== key));\n }\n\n /** Remove a single message by id (no-op if it is already gone). */\n remove(id: UiToastId): void {\n this._messages.update((list) => list.filter((m) => m.id !== id));\n }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n effect,\n inject,\n input,\n numberAttribute,\n PLATFORM_ID,\n TemplateRef,\n} from '@angular/core';\nimport { UiMotion, UiMotionPreset } from '@4sh/ui-kit/motion';\nimport { UiToast } from './ui-toast';\nimport { UiToastService } from './ui-toast.service';\nimport { UiToastId, UiToastMessage, UiToastPosition } from './ui-toast.types';\n\n/** Enter/leave motion preset that best fits each anchor edge. */\nconst MOTION_BY_POSITION: Record<UiToastPosition, UiMotionPreset> = {\n 'top-left': 'slide-down',\n 'top-center': 'slide-down',\n 'top-right': 'slide-down',\n 'bottom-left': 'slide-up',\n 'bottom-center': 'slide-up',\n 'bottom-right': 'slide-up',\n center: 'zoom',\n};\n\n/** Base stacking level — mirrors `$toast-z-index` in the SCSS. */\nconst TOAST_BASE_Z_INDEX = 1100;\n\n/** Process-wide sequence so `autoZIndex` layers later stacks above earlier ones. */\nlet zIndexSeq = 0;\n\n/**\n * ui-toast-container — the viewport-pinned stack that renders {@link UiToastService}\n * messages as {@link UiToast} cards.\n *\n * Drop one near the app root (e.g. in `app.html`). It reads the service store\n * reactively, shows the slice matching its `key`, animates insert/remove through\n * the shared motion system (`animate.enter` / `animate.leave`), and auto-dismisses\n * non-sticky toasts after `life` ms — pausing the countdown while hovered.\n *\n * Positioning is `fixed` by default (relative to the viewport); set `contained`\n * to switch to `absolute` so the stack stays inside the nearest positioned\n * ancestor (used by the Storybook demos).\n *\n * @example\n * ```html\n * <ui-toast-container position=\"top-right\" [life]=\"4000\" />\n * ```\n */\n@Component({\n selector: 'ui-toast-container',\n imports: [UiToast, UiMotion, NgTemplateOutlet],\n templateUrl: './ui-toast-container.html',\n styleUrl: './ui-toast-container.scss',\n})\nexport class UiToastContainer {\n /** Only render messages whose `key` matches (omit to render key-less messages). */\n key = input<string>();\n /** Where the stack is pinned in the viewport. */\n position = input<UiToastPosition>('top-right');\n /** Default auto-dismiss delay (ms) for non-sticky toasts. Per-message `life` wins. */\n life = input(4000, { transform: numberAttribute });\n /** Render toasts as full-width banners (fill the region width). */\n expanded = input(false, { transform: booleanAttribute });\n /** Motion preset override. Defaults to a per-position choice. */\n motion = input<UiMotionPreset>();\n /** Disable enter/leave animation for this stack. */\n motionDisabled = input(false, { transform: booleanAttribute });\n /** Use `position: absolute` (scoped to a positioned ancestor) instead of `fixed`. */\n contained = input(false, { transform: booleanAttribute });\n /**\n * Custom content template rendered inside each card in place of `title`/`text`.\n * Context: `{ $implicit: message, closeFn }`.\n */\n template = input<TemplateRef<unknown>>();\n /** Extra class(es) merged onto the region root. */\n styleClass = input<string>();\n /** Show only the N most recent toasts; older ones wait their turn (`0` = no limit). */\n stackVisibleLimit = input(0, { transform: numberAttribute });\n /** Gap between stacked cards in px (overrides the `--units-sm` token default). */\n stackGap = input<number>();\n /** Skip a new toast whose content (level + title + text) matches a live one. */\n preventDuplicates = input(false, { transform: booleanAttribute });\n /** Automatically layer this stack above earlier ones (later container wins). */\n autoZIndex = input(true, { transform: booleanAttribute });\n /** Floor z-index for the stack (added to the auto value, or used as-is when `autoZIndex=false`). */\n baseZIndex = input(0, { transform: numberAttribute });\n\n /** @ignore */\n private readonly service = inject(UiToastService);\n /** @ignore Per-instance layering rank for `autoZIndex`. */\n private readonly zSeq = ++zIndexSeq;\n /** @ignore */\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n /** @ignore All live messages routed to this container (drives timers/dedup). */\n private readonly keyed = computed(() =>\n this.service.messages().filter((m) => m.key === this.key()),\n );\n\n /** @ignore Rendered slice — the most recent `stackVisibleLimit` toasts. */\n protected readonly items = computed(() => {\n const all = this.keyed();\n const limit = this.stackVisibleLimit();\n return limit > 0 ? all.slice(-limit) : all;\n });\n\n /** @ignore Effective stacking level. */\n protected readonly zIndex = computed(() => {\n const base = this.baseZIndex();\n if (this.autoZIndex()) return TOAST_BASE_Z_INDEX + base + this.zSeq;\n return base > 0 ? base : TOAST_BASE_Z_INDEX;\n });\n\n /** @ignore Resolved enter/leave preset. */\n protected readonly motionPreset = computed<UiMotionPreset>(\n () => this.motion() ?? MOTION_BY_POSITION[this.position()],\n );\n\n /** @ignore */\n protected readonly regionClass = computed(() => {\n const c = ['ui-toast-region', `_${this.position()}`];\n if (this.contained()) c.push('_contained');\n if (this.expanded()) c.push('_expanded');\n // Anchor at the bottom edge → newest toast nearest the edge (column-reverse in SCSS).\n if (this.position().startsWith('bottom')) c.push('_reverse');\n const sc = this.styleClass();\n if (sc) c.push(sc);\n return c.join(' ');\n });\n\n // --- Life timers (auto-dismiss, hover-pausable) ----------------------\n\n /** @ignore Active timeout handles, keyed by message id. */\n private readonly timers = new Map<UiToastId, ReturnType<typeof setTimeout>>();\n /** @ignore Remaining ms per message (survives hover pause). */\n private readonly remaining = new Map<UiToastId, number>();\n /** @ignore Wall-clock start of the running countdown, per message. */\n private readonly startedAt = new Map<UiToastId, number>();\n\n constructor() {\n // Reconcile dedup + life timers whenever this container's message set changes.\n effect(() => {\n const keyed = this.keyed();\n\n // preventDuplicates: drop later toasts whose content matches an earlier one.\n if (this.preventDuplicates()) {\n const seen = new Set<string>();\n const dupes: UiToastId[] = [];\n for (const m of keyed) {\n const sig = `${m.level ?? 'default'}|${m.title ?? ''}|${m.text ?? ''}`;\n if (seen.has(sig)) dupes.push(m.id!);\n else seen.add(sig);\n }\n if (dupes.length) {\n // Store mutation re-runs this effect on the deduplicated set.\n dupes.forEach((id) => this.service.remove(id));\n return;\n }\n }\n\n const liveIds = new Set(keyed.map((m) => m.id));\n\n // Drop timer bookkeeping for messages that are gone.\n for (const id of [...this.timers.keys()]) {\n if (!liveIds.has(id)) this.forget(id);\n }\n for (const id of [...this.remaining.keys()]) {\n if (!liveIds.has(id)) this.remaining.delete(id);\n }\n\n if (!this.isBrowser) return;\n\n // Arm a countdown for each new, non-sticky message (even ones beyond the\n // visible limit, so a queued toast still expires on schedule).\n for (const message of keyed) {\n const id = message.id!;\n if (message.sticky) continue;\n if (this.timers.has(id) || this.remaining.has(id)) continue;\n const life = message.life ?? this.life();\n if (life > 0) this.arm(id, life);\n }\n });\n\n inject(DestroyRef).onDestroy(() => {\n for (const id of [...this.timers.keys()]) this.forget(id);\n });\n }\n\n /** @ignore Start (or restart) a countdown of `ms` for a message. */\n private arm(id: UiToastId, ms: number): void {\n this.remaining.set(id, ms);\n this.startedAt.set(id, Date.now());\n this.timers.set(\n id,\n setTimeout(() => {\n this.timers.delete(id);\n this.service.remove(id);\n }, ms),\n );\n }\n\n /** @ignore Cancel and drop all timer bookkeeping for a message. */\n private forget(id: UiToastId): void {\n const handle = this.timers.get(id);\n if (handle) clearTimeout(handle);\n this.timers.delete(id);\n this.startedAt.delete(id);\n }\n\n /** @ignore Pause the countdown on hover/focus (banks the remaining time). */\n protected pause(id: UiToastId | undefined): void {\n if (id == null) return;\n const handle = this.timers.get(id);\n if (!handle) return;\n clearTimeout(handle);\n this.timers.delete(id);\n const banked = this.remaining.get(id) ?? 0;\n const elapsed = Date.now() - (this.startedAt.get(id) ?? Date.now());\n this.remaining.set(id, Math.max(banked - elapsed, 0));\n }\n\n /** @ignore Resume a paused countdown when the pointer/focus leaves. */\n protected resume(id: UiToastId | undefined): void {\n if (id == null || !this.isBrowser) return;\n if (this.timers.has(id)) return;\n const left = this.remaining.get(id);\n if (left == null || left <= 0) return;\n this.arm(id, left);\n }\n\n /** @ignore Dismiss a toast (close button or a custom template's `closeFn`). */\n protected dismiss(message: UiToastMessage): void {\n if (message.id != null) this.service.remove(message.id);\n }\n\n /** @ignore Template-context factory: a bound close handler for one message. */\n protected closeFn(message: UiToastMessage): () => void {\n return () => this.dismiss(message);\n }\n}\n","<div [class]=\"regionClass()\" [style.z-index]=\"zIndex()\" [style.gap.px]=\"stackGap() ?? null\">\n @for (item of items(); track item.id) {\n <div\n class=\"ui-toast-region-item\"\n [uiMotion]=\"motionPreset()\"\n [motionDisabled]=\"motionDisabled()\"\n #m=\"uiMotion\"\n [animate.enter]=\"m.enter()\"\n [animate.leave]=\"m.leave()\"\n (mouseenter)=\"pause(item.id)\"\n (mouseleave)=\"resume(item.id)\"\n (focusin)=\"pause(item.id)\"\n (focusout)=\"resume(item.id)\"\n >\n <ui-toast\n [level]=\"item.level ?? 'default'\"\n [subLevel]=\"item.subLevel ?? 'high'\"\n [title]=\"template() ? undefined : item.title\"\n [text]=\"template() ? undefined : item.text\"\n [icon]=\"item.icon ?? true\"\n [closable]=\"item.closable ?? true\"\n [expanded]=\"expanded()\"\n [styleClass]=\"item.styleClass\"\n (closed)=\"dismiss(item)\"\n >\n @if (template(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: item, closeFn: closeFn(item) }\"\n />\n }\n </ui-toast>\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-toast\n */\n\nexport * from './lib/ui-toast-container';\nexport * from './lib/ui-toast.service';\nexport * from './lib/ui-toast';\nexport * from './lib/ui-toast.types';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAiBA;AACO,MAAM,kBAAkB,GAA+B;IAC5D,UAAU;IACV,YAAY;IACZ,WAAW;IACX,aAAa;IACb,eAAe;IACf,cAAc;IACd,QAAQ;;AAgDV;AACO,MAAM,sBAAsB,GAAoC;AACrE,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,S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@ts-ignore */
56
56
  ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
57
57
  }
58
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiTooltipPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
59
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", 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 <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(--informative-defaulthigh-stroke-default);border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);box-shadow:var(--shadow-default-md);font-family:var(--fontfamily-base);font-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(--informative-defaulthigh-surface-default);border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid 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"] }] }); }
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiTooltipPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
59
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", 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 <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(--informative-defaulthigh-stroke-default);border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);box-shadow:var(--shadow-default-md);font-family:var(--fontfamily-base);font-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(--informative-defaulthigh-surface-default);border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid 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
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiTooltipPanel, decorators: [{
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiTooltipPanel, decorators: [{
62
62
  type: Component,
63
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 <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(--informative-defaulthigh-stroke-default);border-radius:var(--ui-tooltip-radius, var(--radius-default));background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);box-shadow:var(--shadow-default-md);font-family:var(--fontfamily-base);font-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(--informative-defaulthigh-surface-default);border:var(--ui-tooltip-stroke-width, var(--stroke-sm)) solid 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 }] }] } });
@@ -300,20 +300,36 @@ class UiTooltip {
300
300
  const ox = this.positionLeft();
301
301
  const oy = this.positionTop();
302
302
  const top = {
303
- originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom',
304
- offsetX: ox, offsetY: -ARROW_GAP + oy,
303
+ originX: 'center',
304
+ originY: 'top',
305
+ overlayX: 'center',
306
+ overlayY: 'bottom',
307
+ offsetX: ox,
308
+ offsetY: -ARROW_GAP + oy,
305
309
  };
306
310
  const bottom = {
307
- originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top',
308
- offsetX: ox, offsetY: ARROW_GAP + oy,
311
+ originX: 'center',
312
+ originY: 'bottom',
313
+ overlayX: 'center',
314
+ overlayY: 'top',
315
+ offsetX: ox,
316
+ offsetY: ARROW_GAP + oy,
309
317
  };
310
318
  const left = {
311
- originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center',
312
- offsetX: -ARROW_GAP + ox, offsetY: oy,
319
+ originX: 'start',
320
+ originY: 'center',
321
+ overlayX: 'end',
322
+ overlayY: 'center',
323
+ offsetX: -ARROW_GAP + ox,
324
+ offsetY: oy,
313
325
  };
314
326
  const right = {
315
- originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center',
316
- offsetX: ARROW_GAP + ox, offsetY: oy,
327
+ originX: 'end',
328
+ originY: 'center',
329
+ overlayX: 'start',
330
+ overlayY: 'center',
331
+ offsetX: ARROW_GAP + ox,
332
+ offsetY: oy,
317
333
  };
318
334
  const primary = { top, bottom, left, right };
319
335
  // fitContent=false → keep only the preferred side (no auto-flip).
@@ -422,10 +438,10 @@ class UiTooltip {
422
438
  this.overlayRef = null;
423
439
  this.panelRef = null;
424
440
  }
425
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
426
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.1", type: UiTooltip, isStandalone: true, selector: "[uiTooltip]", inputs: { content: { classPropertyName: "content", publicName: "uiTooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, fitContent: { classPropertyName: "fitContent", publicName: "fitContent", isSignal: true, isRequired: false, transformFunction: null }, tooltipEvent: { classPropertyName: "tooltipEvent", publicName: "tooltipEvent", isSignal: true, isRequired: false, transformFunction: null }, tooltipDisabled: { classPropertyName: "tooltipDisabled", publicName: "tooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autoHide: { classPropertyName: "autoHide", publicName: "autoHide", isSignal: true, isRequired: false, transformFunction: null }, hideOnEscape: { classPropertyName: "hideOnEscape", publicName: "hideOnEscape", isSignal: true, isRequired: false, transformFunction: null }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, showOnEllipsis: { classPropertyName: "showOnEllipsis", publicName: "showOnEllipsis", isSignal: true, isRequired: false, transformFunction: null }, positionTop: { classPropertyName: "positionTop", publicName: "positionTop", isSignal: true, isRequired: false, transformFunction: null }, positionLeft: { classPropertyName: "positionLeft", publicName: "positionLeft", isSignal: true, isRequired: false, transformFunction: null }, tooltipContext: { classPropertyName: "tooltipContext", publicName: "tooltipContext", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { tooltipShow: "tooltipShow", tooltipHide: "tooltipHide" }, exportAs: ["uiTooltip"], ngImport: i0 }); }
441
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
442
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.2", type: UiTooltip, isStandalone: true, selector: "[uiTooltip]", inputs: { content: { classPropertyName: "content", publicName: "uiTooltip", isSignal: true, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: true, isRequired: false, transformFunction: null }, fitContent: { classPropertyName: "fitContent", publicName: "fitContent", isSignal: true, isRequired: false, transformFunction: null }, tooltipEvent: { classPropertyName: "tooltipEvent", publicName: "tooltipEvent", isSignal: true, isRequired: false, transformFunction: null }, tooltipDisabled: { classPropertyName: "tooltipDisabled", publicName: "tooltipDisabled", isSignal: true, isRequired: false, transformFunction: null }, showDelay: { classPropertyName: "showDelay", publicName: "showDelay", isSignal: true, isRequired: false, transformFunction: null }, hideDelay: { classPropertyName: "hideDelay", publicName: "hideDelay", isSignal: true, isRequired: false, transformFunction: null }, escape: { classPropertyName: "escape", publicName: "escape", isSignal: true, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autoHide: { classPropertyName: "autoHide", publicName: "autoHide", isSignal: true, isRequired: false, transformFunction: null }, hideOnEscape: { classPropertyName: "hideOnEscape", publicName: "hideOnEscape", isSignal: true, isRequired: false, transformFunction: null }, life: { classPropertyName: "life", publicName: "life", isSignal: true, isRequired: false, transformFunction: null }, showOnEllipsis: { classPropertyName: "showOnEllipsis", publicName: "showOnEllipsis", isSignal: true, isRequired: false, transformFunction: null }, positionTop: { classPropertyName: "positionTop", publicName: "positionTop", isSignal: true, isRequired: false, transformFunction: null }, positionLeft: { classPropertyName: "positionLeft", publicName: "positionLeft", isSignal: true, isRequired: false, transformFunction: null }, tooltipContext: { classPropertyName: "tooltipContext", publicName: "tooltipContext", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { tooltipShow: "tooltipShow", tooltipHide: "tooltipHide" }, exportAs: ["uiTooltip"], ngImport: i0 }); }
427
443
  }
428
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiTooltip, decorators: [{
444
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiTooltip, decorators: [{
429
445
  type: Directive,
430
446
  args: [{
431
447
  selector: '[uiTooltip]',
@@ -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 <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/** 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', () => this.deactivate()),\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 const delay = this.hideDelay();\n if (delay > 0) {\n this.clearHideTimer();\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(new ComponentPortal(UiTooltipPanel, this.vcr, this.injector));\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 if (!this.autoHide()) this.bindPanelHover(overlayRef);\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 if (this.hideOnEscape()) this.bindEscape();\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 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', originY: 'top', overlayX: 'center', overlayY: 'bottom',\n offsetX: ox, offsetY: -ARROW_GAP + oy,\n };\n const bottom: ConnectedPosition = {\n originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top',\n offsetX: ox, offsetY: ARROW_GAP + oy,\n };\n const left: ConnectedPosition = {\n originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center',\n offsetX: -ARROW_GAP + ox, offsetY: oy,\n };\n const right: ConnectedPosition = {\n originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center',\n offsetX: ARROW_GAP + ox, 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 is over it (autoHide=false). */\n private bindPanelHover(overlayRef: OverlayRef): void {\n const panel = overlayRef.overlayElement;\n const enter = this.renderer.listen(panel, 'mouseenter', () => this.clearHideTimer());\n const leave = this.renderer.listen(panel, 'mouseleave', () => this.deactivate());\n this.disposers.push(enter, leave);\n }\n\n /** @ignore */\n private bindEscape(): void {\n const off = this.renderer.listen('document', 'keydown.escape', () => {\n this.deactivate();\n off();\n });\n this.disposers.push(off);\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) { clearTimeout(this.showTimer); this.showTimer = null; }\n }\n\n /** @ignore */\n private clearHideTimer(): void {\n if (this.hideTimer) { clearTimeout(this.hideTimer); this.hideTimer = null; }\n }\n\n /** @ignore */\n private clearLifeTimer(): void {\n if (this.lifeTimer) { clearTimeout(this.lifeTimer); this.lifeTimer = null; }\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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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;;;AC3DD;;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 <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/** 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', () => this.deactivate()),\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 const delay = this.hideDelay();\n if (delay > 0) {\n this.clearHideTimer();\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 if (!this.autoHide()) this.bindPanelHover(overlayRef);\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 if (this.hideOnEscape()) this.bindEscape();\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 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 is over it (autoHide=false). */\n private bindPanelHover(overlayRef: OverlayRef): void {\n const panel = overlayRef.overlayElement;\n const enter = this.renderer.listen(panel, 'mouseenter', () => this.clearHideTimer());\n const leave = this.renderer.listen(panel, 'mouseleave', () => this.deactivate());\n this.disposers.push(enter, leave);\n }\n\n /** @ignore */\n private bindEscape(): void {\n const off = this.renderer.listen('document', 'keydown.escape', () => {\n this.deactivate();\n off();\n });\n this.disposers.push(off);\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,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AAA,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;;;AC3DD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -16,37 +16,37 @@ import { Directive, input, booleanAttribute, contentChild, viewChild, signal, co
16
16
  */
17
17
  /** Full-bleed media region, rendered above the body (image, illustration…). */
18
18
  class UiCardMedia {
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiCardMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
20
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: UiCardMedia, isStandalone: true, selector: "[uiCardMedia], ui-card-media", ngImport: i0 }); }
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
20
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.2", type: UiCardMedia, isStandalone: true, selector: "[uiCardMedia], ui-card-media", ngImport: i0 }); }
21
21
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiCardMedia, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardMedia, decorators: [{
23
23
  type: Directive,
24
24
  args: [{ selector: '[uiCardMedia], ui-card-media' }]
25
25
  }] });
26
26
  /** Title region (also settable via the `header` string input). */
27
27
  class UiCardTitle {
28
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiCardTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
29
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: UiCardTitle, isStandalone: true, selector: "[uiCardTitle], ui-card-title", ngImport: i0 }); }
28
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
29
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.2", type: UiCardTitle, isStandalone: true, selector: "[uiCardTitle], ui-card-title", ngImport: i0 }); }
30
30
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiCardTitle, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardTitle, decorators: [{
32
32
  type: Directive,
33
33
  args: [{ selector: '[uiCardTitle], ui-card-title' }]
34
34
  }] });
35
35
  /** Subtitle region (also settable via the `subheader` string input). */
36
36
  class UiCardSubtitle {
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiCardSubtitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
38
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: UiCardSubtitle, isStandalone: true, selector: "[uiCardSubtitle], ui-card-subtitle", ngImport: i0 }); }
37
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardSubtitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
38
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.2", type: UiCardSubtitle, isStandalone: true, selector: "[uiCardSubtitle], ui-card-subtitle", ngImport: i0 }); }
39
39
  }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiCardSubtitle, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardSubtitle, decorators: [{
41
41
  type: Directive,
42
42
  args: [{ selector: '[uiCardSubtitle], ui-card-subtitle' }]
43
43
  }] });
44
44
  /** Footer region (actions, tags…), rendered below the body content. */
45
45
  class UiCardFooter {
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiCardFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
47
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.1", type: UiCardFooter, isStandalone: true, selector: "[uiCardFooter], ui-card-footer", ngImport: i0 }); }
46
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
47
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.2", type: UiCardFooter, isStandalone: true, selector: "[uiCardFooter], ui-card-footer", ngImport: i0 }); }
48
48
  }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiCardFooter, decorators: [{
49
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCardFooter, decorators: [{
50
50
  type: Directive,
51
51
  args: [{ selector: '[uiCardFooter], ui-card-footer' }]
52
52
  }] });
@@ -144,10 +144,10 @@ class UiCard {
144
144
  this.hasProjectedContent.set(has);
145
145
  });
146
146
  }
147
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiCard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
148
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiCard, isStandalone: true, selector: "ui-card", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, subheader: { classPropertyName: "subheader", publicName: "subheader", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, contentFlush: { classPropertyName: "contentFlush", publicName: "contentFlush", 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 } }, queries: [{ propertyName: "titleSlot", first: true, predicate: UiCardTitle, descendants: true, isSignal: true }, { propertyName: "subtitleSlot", first: true, predicate: UiCardSubtitle, descendants: true, isSignal: true }, { propertyName: "mediaSlot", first: true, predicate: UiCardMedia, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: UiCardFooter, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "contentWrap", first: true, predicate: ["contentWrap"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n [class]=\"classes()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.role]=\"ariaLabel() || ariaLabelledBy() ? 'region' : null\"\n>\n @if (hasMedia()) {\n <div class=\"ui-card-media\">\n <ng-content select=\"[uiCardMedia], ui-card-media\" />\n </div>\n }\n\n <div class=\"ui-card-body\">\n @if (hasHeader()) {\n <div class=\"ui-card-header\">\n @if (hasTitle()) {\n <div class=\"ui-card-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiCardTitle], ui-card-title\" />\n </div>\n }\n @if (hasSubtitle()) {\n <div class=\"ui-card-subtitle\">\n @if (showSubheaderString()) {\n {{ subheader() }}\n }\n <ng-content select=\"[uiCardSubtitle], ui-card-subtitle\" />\n </div>\n }\n </div>\n }\n\n <div\n class=\"ui-card-content\"\n #contentWrap\n [class._empty]=\"!hasContent()\"\n [class._flush]=\"contentFlush()\"\n >\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div class=\"ui-card-footer\">\n <ng-content select=\"[uiCardFooter], ui-card-footer\" />\n </div>\n }\n </div>\n</div>\n", styles: [":host{display:block}.ui-card{--ui-card-gutter: var(--ui-card-padding, var(--units-lg));display:flex;flex-direction:column;overflow:hidden;background-color:var(--global-background-default);border:var(--ui-card-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-card-radius, var(--radius-md));color:var(--global-text-default);font-family:var(--fontfamily-base)}.ui-card-media{display:flex;overflow:hidden}.ui-card-media ::ng-deep img,.ui-card-media ::ng-deep svg,.ui-card-media ::ng-deep ui-image,.ui-card-media ::ng-deep picture{display:block;width:100%;height:100%;object-fit:cover}.ui-card-body{display:flex;flex-direction:column;gap:var(--ui-card-gap, var(--units-md));padding-block:var(--ui-card-padding, var(--units-lg))}.ui-card-header{display:flex;flex-direction:column;gap:var(--ui-card-header-gap, var(--units-2xs));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card-title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--units-sm);font-family:var(--fontfamily-title);font-size:var(--size-typography-title-default);font-weight:var(--weight-bold);line-height:1.2;color:var(--global-text-default)}.ui-card-subtitle{font-size:var(--size-typography-text-md);line-height:1.4;color:var(--global-text-muted)}.ui-card-content{padding-inline:var(--ui-card-padding, var(--units-lg));font-size:var(--size-typography-text-md);line-height:1.5;color:var(--global-text-default)}.ui-card-content._flush{padding-inline:0}.ui-card-content._empty{display:none}.ui-card-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-card-footer-gap, var(--units-sm));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card._outlined{border-color:var(--global-border-subtle)}.ui-card._elevated{box-shadow:var(--shadow-default-md)}\n"] }); }
147
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
148
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiCard, isStandalone: true, selector: "ui-card", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, subheader: { classPropertyName: "subheader", publicName: "subheader", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, contentFlush: { classPropertyName: "contentFlush", publicName: "contentFlush", 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 } }, queries: [{ propertyName: "titleSlot", first: true, predicate: UiCardTitle, descendants: true, isSignal: true }, { propertyName: "subtitleSlot", first: true, predicate: UiCardSubtitle, descendants: true, isSignal: true }, { propertyName: "mediaSlot", first: true, predicate: UiCardMedia, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: UiCardFooter, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "contentWrap", first: true, predicate: ["contentWrap"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n [class]=\"classes()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.role]=\"ariaLabel() || ariaLabelledBy() ? 'region' : null\"\n>\n @if (hasMedia()) {\n <div class=\"ui-card-media\">\n <ng-content select=\"[uiCardMedia], ui-card-media\" />\n </div>\n }\n\n <div class=\"ui-card-body\">\n @if (hasHeader()) {\n <div class=\"ui-card-header\">\n @if (hasTitle()) {\n <div class=\"ui-card-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiCardTitle], ui-card-title\" />\n </div>\n }\n @if (hasSubtitle()) {\n <div class=\"ui-card-subtitle\">\n @if (showSubheaderString()) {\n {{ subheader() }}\n }\n <ng-content select=\"[uiCardSubtitle], ui-card-subtitle\" />\n </div>\n }\n </div>\n }\n\n <div\n class=\"ui-card-content\"\n #contentWrap\n [class._empty]=\"!hasContent()\"\n [class._flush]=\"contentFlush()\"\n >\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div class=\"ui-card-footer\">\n <ng-content select=\"[uiCardFooter], ui-card-footer\" />\n </div>\n }\n </div>\n</div>\n", styles: [":host{display:block}.ui-card{--ui-card-gutter: var(--ui-card-padding, var(--units-lg));display:flex;flex-direction:column;overflow:hidden;background-color:var(--global-background-default);border:var(--ui-card-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-card-radius, var(--radius-md));color:var(--global-text-default);font-family:var(--fontfamily-base)}.ui-card-media{display:flex;overflow:hidden}.ui-card-media ::ng-deep img,.ui-card-media ::ng-deep svg,.ui-card-media ::ng-deep ui-image,.ui-card-media ::ng-deep picture{display:block;width:100%;height:100%;object-fit:cover}.ui-card-body{display:flex;flex-direction:column;gap:var(--ui-card-gap, var(--units-md));padding-block:var(--ui-card-padding, var(--units-lg))}.ui-card-header{display:flex;flex-direction:column;gap:var(--ui-card-header-gap, var(--units-2xs));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card-title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--units-sm);font-family:var(--fontfamily-title);font-size:var(--size-typography-title-default);font-weight:var(--weight-bold);line-height:1.2;color:var(--global-text-default)}.ui-card-subtitle{font-size:var(--size-typography-text-md);line-height:1.4;color:var(--global-text-muted)}.ui-card-content{padding-inline:var(--ui-card-padding, var(--units-lg));font-size:var(--size-typography-text-md);line-height:1.5;color:var(--global-text-default)}.ui-card-content._flush{padding-inline:0}.ui-card-content._empty{display:none}.ui-card-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-card-footer-gap, var(--units-sm));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card._outlined{border-color:var(--global-border-subtle)}.ui-card._elevated{box-shadow:var(--shadow-default-md)}\n"] }); }
149
149
  }
150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiCard, decorators: [{
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiCard, decorators: [{
151
151
  type: Component,
152
152
  args: [{ selector: 'ui-card', imports: [], template: "<div\n [class]=\"classes()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.role]=\"ariaLabel() || ariaLabelledBy() ? 'region' : null\"\n>\n @if (hasMedia()) {\n <div class=\"ui-card-media\">\n <ng-content select=\"[uiCardMedia], ui-card-media\" />\n </div>\n }\n\n <div class=\"ui-card-body\">\n @if (hasHeader()) {\n <div class=\"ui-card-header\">\n @if (hasTitle()) {\n <div class=\"ui-card-title\">\n @if (showHeaderString()) {\n {{ header() }}\n }\n <ng-content select=\"[uiCardTitle], ui-card-title\" />\n </div>\n }\n @if (hasSubtitle()) {\n <div class=\"ui-card-subtitle\">\n @if (showSubheaderString()) {\n {{ subheader() }}\n }\n <ng-content select=\"[uiCardSubtitle], ui-card-subtitle\" />\n </div>\n }\n </div>\n }\n\n <div\n class=\"ui-card-content\"\n #contentWrap\n [class._empty]=\"!hasContent()\"\n [class._flush]=\"contentFlush()\"\n >\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div class=\"ui-card-footer\">\n <ng-content select=\"[uiCardFooter], ui-card-footer\" />\n </div>\n }\n </div>\n</div>\n", styles: [":host{display:block}.ui-card{--ui-card-gutter: var(--ui-card-padding, var(--units-lg));display:flex;flex-direction:column;overflow:hidden;background-color:var(--global-background-default);border:var(--ui-card-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-card-radius, var(--radius-md));color:var(--global-text-default);font-family:var(--fontfamily-base)}.ui-card-media{display:flex;overflow:hidden}.ui-card-media ::ng-deep img,.ui-card-media ::ng-deep svg,.ui-card-media ::ng-deep ui-image,.ui-card-media ::ng-deep picture{display:block;width:100%;height:100%;object-fit:cover}.ui-card-body{display:flex;flex-direction:column;gap:var(--ui-card-gap, var(--units-md));padding-block:var(--ui-card-padding, var(--units-lg))}.ui-card-header{display:flex;flex-direction:column;gap:var(--ui-card-header-gap, var(--units-2xs));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card-title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--units-sm);font-family:var(--fontfamily-title);font-size:var(--size-typography-title-default);font-weight:var(--weight-bold);line-height:1.2;color:var(--global-text-default)}.ui-card-subtitle{font-size:var(--size-typography-text-md);line-height:1.4;color:var(--global-text-muted)}.ui-card-content{padding-inline:var(--ui-card-padding, var(--units-lg));font-size:var(--size-typography-text-md);line-height:1.5;color:var(--global-text-default)}.ui-card-content._flush{padding-inline:0}.ui-card-content._empty{display:none}.ui-card-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-card-footer-gap, var(--units-sm));padding-inline:var(--ui-card-padding, var(--units-lg))}.ui-card._outlined{border-color:var(--global-border-subtle)}.ui-card._elevated{box-shadow:var(--shadow-default-md)}\n"] }]
153
153
  }], ctorParameters: () => [], propDecorators: { header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], subheader: [{ type: i0.Input, args: [{ isSignal: true, alias: "subheader", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], contentFlush: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentFlush", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], titleSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiCardTitle), { isSignal: true }] }], subtitleSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiCardSubtitle), { isSignal: true }] }], mediaSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiCardMedia), { isSignal: true }] }], footerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => UiCardFooter), { isSignal: true }] }], contentWrap: [{ type: i0.ViewChild, args: ['contentWrap', { isSignal: true }] }] } });