@sixbell-telco/sdk 4.4.0 → 4.6.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 (128) hide show
  1. package/CHANGELOG.md +272 -985
  2. package/GLOSSARY.md +76 -0
  3. package/README.md +143 -1346
  4. package/banner.webp +0 -0
  5. package/components/badge/src/badge.component.d.ts +6 -1
  6. package/components/dropdown-menu/README.md +1 -0
  7. package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +2 -0
  8. package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +9 -2
  9. package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +6 -0
  10. package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +7 -0
  11. package/components/dropdown-menu/public-api.d.ts +1 -0
  12. package/components/dropdown-menu/src/directives/dropdown-menu-keyboard.directive.d.ts +54 -0
  13. package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +5 -0
  14. package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +15 -2
  15. package/components/forms/checkbox/src/checkbox.component.d.ts +12 -1
  16. package/components/status-illustration/README.md +38 -0
  17. package/components/status-illustration/index.d.ts +5 -0
  18. package/components/status-illustration/public-api.d.ts +1 -0
  19. package/components/status-illustration/src/status-illustration.component.d.ts +42 -0
  20. package/components/tab/directives/tab-content/tab-content.directive.d.ts +1 -1
  21. package/components/tree/README.md +11 -1
  22. package/components/tree/src/tree.component.d.ts +44 -5
  23. package/components/wizard/README.md +17 -0
  24. package/components/wizard/services/wizard.service.d.ts +9 -0
  25. package/components/wizard/wizard-indicator/wizard-indicator.component.d.ts +71 -0
  26. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +24 -1
  27. package/directives/text/src/text.directive.d.ts +6 -2
  28. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +5 -5
  29. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  30. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +8 -2
  31. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  32. package/fesm2022/sixbell-telco-sdk-components-button.mjs +1 -1
  33. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  34. package/fesm2022/sixbell-telco-sdk-components-card.mjs +3 -3
  35. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  36. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +4 -4
  37. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  38. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +3 -3
  39. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  40. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +92 -25
  41. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  42. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +29 -3
  43. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
  44. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +271 -21
  45. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  46. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +2 -2
  47. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  48. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
  49. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  50. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +2 -2
  51. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  52. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +14 -3
  53. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  54. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
  55. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  56. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +2 -2
  57. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  58. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
  59. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  60. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +2 -2
  61. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  62. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
  63. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  64. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +15 -5
  65. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  66. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +2 -2
  67. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  68. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
  69. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  70. package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +1 -1
  71. package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -1
  72. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +2 -2
  73. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
  74. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +2 -2
  75. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
  76. package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs +66 -0
  77. package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs.map +1 -0
  78. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -0
  79. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  80. package/fesm2022/sixbell-telco-sdk-components-table.mjs +4 -4
  81. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  82. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  84. package/fesm2022/sixbell-telco-sdk-components-tree.mjs +171 -51
  85. package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -1
  86. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +123 -356
  87. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  88. package/fesm2022/sixbell-telco-sdk-directives-text.mjs +4 -1
  89. package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -1
  90. package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +2 -2
  91. package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -1
  92. package/fesm2022/sixbell-telco-sdk-layouts.mjs +61 -17
  93. package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
  94. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +23 -4
  95. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  96. package/i18n/sdk/en.json +4 -1
  97. package/i18n/sdk/es.json +4 -1
  98. package/i18n/sdk/pt.json +4 -1
  99. package/layouts/README.md +24 -6
  100. package/layouts/public-api.d.ts +1 -1
  101. package/layouts/src/layout-account.d.ts +16 -0
  102. package/layouts/src/page-banner/page-banner.component.d.ts +37 -6
  103. package/layouts/src/user-menu/user-menu.component.d.ts +4 -2
  104. package/manifest.json +10943 -0
  105. package/package.json +50 -38
  106. package/schematics/lib/plan.cjs +179 -0
  107. package/schematics/lib/tokens.cjs +133 -0
  108. package/schematics/lib/workspace.cjs +118 -0
  109. package/schematics/manual-steps.json +90 -0
  110. package/schematics/migration.json +15 -0
  111. package/schematics/migrations/v4-0-0/assets.cjs +331 -0
  112. package/schematics/migrations/v4-0-0/canonical/enghouse_networks.json +360 -0
  113. package/schematics/migrations/v4-0-0/canonical/shell.json +25 -0
  114. package/schematics/migrations/v4-0-0/canonical/theme-assets.json +44 -0
  115. package/schematics/migrations/v4-0-0/canonical/themes.json +11 -0
  116. package/schematics/migrations/v4-0-0/index.cjs +96 -0
  117. package/schematics/migrations/v4-0-0/layout.cjs +269 -0
  118. package/schematics/migrations/v4-0-0/shell.cjs +1864 -0
  119. package/schematics/migrations/v4-6-0/index.cjs +394 -0
  120. package/src/_index.css +257 -26
  121. package/utils/theme/README.md +1 -1
  122. package/utils/theme/public-api.d.ts +1 -1
  123. package/utils/theme/src/models/theme.d.ts +10 -0
  124. package/utils/theme/src/theme-assets/theme-assets.service.d.ts +12 -1
  125. package/banner.png +0 -0
  126. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +0 -85
  127. package/components/wizard/wizard-step/wizard-step.component.d.ts +0 -83
  128. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +0 -95
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-dialog.mjs","sources":["../../../projects/sdk/components/dialog/dialog-actions/dialog-actions.component.ts","../../../projects/sdk/components/dialog/dialog-actions/dialog-actions.component.html","../../../projects/sdk/components/dialog/dialog-content/dialog-content.component.ts","../../../projects/sdk/components/dialog/dialog-content/dialog-content.component.html","../../../projects/sdk/components/dialog/dialog-sub-title/dialog-sub-title.component.ts","../../../projects/sdk/components/dialog/dialog-sub-title/dialog-sub-title.component.html","../../../projects/sdk/components/dialog/dialog-title/dialog-title.component.ts","../../../projects/sdk/components/dialog/dialog-title/dialog-title.component.html","../../../projects/sdk/components/dialog/src/fullscreen-block-scroll-strategy.ts","../../../projects/sdk/components/dialog/src/dialog.component.ts","../../../projects/sdk/components/dialog/src/dialog.component.html","../../../projects/sdk/components/dialog/sixbell-telco-sdk-components-dialog.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type ModalActionsAligmentProps = 'left' | 'right' | 'center';\n\n@Component({\n\tselector: 'st-dialog-actions',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogActionsComponent {\n\t/**\n\t * Horizontal alignment of the actions. Dialog actions sit at the bottom right, dismiss first and confirm last.\n\t * @defaultValue 'right'\n\t */\n\talignment = input<ModalActionsAligmentProps>('right');\n\n\tcomponentClass = computed(() =>\n\t\tcn('modal-action font-body leading-normal text-pretty', {\n\t\t\t'justify-start': this.alignment() === 'left',\n\t\t\t'justify-end': this.alignment() === 'right',\n\t\t\t'justify-center': this.alignment() === 'center',\n\t\t}),\n\t);\n}\n","<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\tselector: 'st-dialog-content',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogContentComponent {}\n","<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\n\n@Component({\n\tselector: 'st-dialog-sub-title',\n\timports: [CommonModule, TextDirective],\n\ttemplateUrl: './dialog-sub-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogSubTitleComponent {}\n","<div class=\"text-base-content/80 mb-3\">\n\t<p stText=\"6\" stTextWeight=\"normal\">\n\t\t<ng-content></ng-content>\n\t</p>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, signal } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n@Component({\n\tselector: 'st-dialog-title',\n\timports: [CommonModule, TextDirective],\n\ttemplateUrl: './dialog-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogTitleComponent {\n\t/** Internal signal that indicates whether a subtitle is present in the dialog */\n\tprivate readonly hasSubTitle = signal(false);\n\n\tsetHasSubTitle(value: boolean) {\n\t\tthis.hasSubTitle.set(value);\n\t}\n\n\tcomponentClass = computed(() =>\n\t\tcn({\n\t\t\t'mb-3': !this.hasSubTitle(),\n\t\t\t'mb-1': this.hasSubTitle(),\n\t\t}),\n\t);\n}\n","<div [class]=\"componentClass()\">\n\t<h2 stText=\"2\" stTextWeight=\"medium\" stTextColor=\"base\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n","import { OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';\n\n/**\n * @internal\n * Matches Tailwind's `max-sm` variant: the range where a `fullscreenOnMobile` dialog fills the screen.\n */\nexport const FULLSCREEN_DIALOG_MEDIA = '(width < 40rem)';\n\nconst SCROLLBLOCK_CLASS = 'cdk-global-scrollblock';\n\n/** The declarations of CDK's `.cdk-global-scrollblock` rule, applied inline so the lock works without that stylesheet. */\nconst SCROLLBLOCK_STYLES = { position: 'fixed', width: '100%', overflowY: 'scroll' } as const;\n\ntype ScrollblockStyle = keyof typeof SCROLLBLOCK_STYLES;\n\n/**\n * @internal\n * Locks the page scroll with the CDK block strategy only while the media query matches, and follows\n * viewport changes while the dialog is open. Wider viewports keep the page as is, so a sticky navbar\n * behind the backdrop does not jump.\n *\n * The CDK strategy only sets the class and the `top`/`left` offsets; the lock itself comes from the\n * `.cdk-global-scrollblock` rule in the global stylesheet. A host that loads the SDK styles only inside a\n * child's shadow root would not have that rule, so the same declarations are applied inline on the root.\n */\nexport class FullscreenBlockScrollStrategy implements ScrollStrategy {\n\tprivate readonly onChange = () => this.sync();\n\tprivate previousStyles: Record<ScrollblockStyle, string> | null = null;\n\n\tconstructor(\n\t\tprivate readonly block: ScrollStrategy,\n\t\tprivate readonly media: MediaQueryList | null,\n\t\tprivate readonly root: HTMLElement | null,\n\t) {}\n\n\tattach(overlayRef: OverlayRef): void {\n\t\tthis.block.attach(overlayRef);\n\t}\n\n\tenable(): void {\n\t\tthis.media?.addEventListener('change', this.onChange);\n\t\tthis.sync();\n\t}\n\n\tdisable(): void {\n\t\tthis.media?.removeEventListener('change', this.onChange);\n\t\tthis.unlock();\n\t}\n\n\tdetach(): void {\n\t\tthis.disable();\n\t\tthis.block.detach?.();\n\t}\n\n\tprivate sync(): void {\n\t\tif (this.media?.matches) {\n\t\t\tthis.lock();\n\t\t} else {\n\t\t\tthis.unlock();\n\t\t}\n\t}\n\n\tprivate lock(): void {\n\t\tif (this.previousStyles || !this.root) {\n\t\t\tthis.block.enable();\n\t\t\treturn;\n\t\t}\n\t\tconst alreadyBlocked = this.root.classList.contains(SCROLLBLOCK_CLASS);\n\t\tthis.block.enable();\n\t\tif (alreadyBlocked || !this.root.classList.contains(SCROLLBLOCK_CLASS)) {\n\t\t\treturn;\n\t\t}\n\t\tconst style = this.root.style;\n\t\tthis.previousStyles = { position: style.position, width: style.width, overflowY: style.overflowY };\n\t\tObject.assign(style, SCROLLBLOCK_STYLES);\n\t}\n\n\tprivate unlock(): void {\n\t\tif (this.previousStyles && this.root) {\n\t\t\tObject.assign(this.root.style, this.previousStyles);\n\t\t\tthis.previousStyles = null;\n\t\t}\n\t\tthis.block.disable();\n\t}\n}\n","import { Dialog, DialogConfig, DialogRef } from '@angular/cdk/dialog';\nimport { Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport { CommonModule, DOCUMENT } from '@angular/common';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tmodel,\n\toutput,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n} from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\nimport { Subscription } from 'rxjs';\nimport { DialogSubTitleComponent } from '../dialog-sub-title/dialog-sub-title.component';\nimport { DialogTitleComponent } from '../dialog-title/dialog-title.component';\nimport { FULLSCREEN_DIALOG_MEDIA, FullscreenBlockScrollStrategy } from './fullscreen-block-scroll-strategy';\n\nconst CLOSE_LABEL = { key: 'sdk.dialog.close', fallback: 'Close dialog' };\n\n/** Dropdown X position options for CDK overlay positioning */\nexport type DialogXPosition = 'start' | 'center' | 'end';\n\n/** Dropdown Y position options for CDK overlay positioning */\nexport type DialogYPosition = 'top' | 'center' | 'bottom';\n\n/**\n * CSS class generator for dialog component variants\n * Uses carefully selected DaisyUI classes that don't conflict with CDK positioning\n * @internal\n */\nexport const dialogComponent = cva(\n\t[\n\t\t'bg-base-200',\n\t\t'rounded-box',\n\t\t'shadow-backdrop',\n\t\t'p-6',\n\t\t'text-base-content',\n\t\t'relative',\n\t\t'max-w-[calc(100vw-2rem)]',\n\t\t'data-[state=closed]:animate-exit data-[state=open]:animate-enter data-[state=closed]:pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\twidth: {\n\t\t\t\txs: ['w-64'],\n\t\t\t\tsm: ['w-80'],\n\t\t\t\tmd: ['w-96'],\n\t\t\t\tlg: ['w-[32rem]'],\n\t\t\t\txl: ['w-[36rem]'],\n\t\t\t\t'2xl': ['w-[42rem]'],\n\t\t\t\t'3xl': ['w-[48rem]'],\n\t\t\t\t'4xl': ['w-[56rem]'],\n\t\t\t\t'5xl': ['w-[64rem]'],\n\t\t\t},\n\t\t\tfullscreenOnMobile: {\n\t\t\t\ttrue: ['max-sm:flex max-sm:h-dvh max-sm:w-screen max-sm:max-w-none max-sm:flex-col max-sm:rounded-none'],\n\t\t\t\tfalse: [],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\twidth: 'lg',\n\t\t\tfullscreenOnMobile: true,\n\t\t},\n\t},\n);\n\n/** Possible width values for the dialog component */\nexport type DialogWidthProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | null | undefined;\n\n/** Animation states for the dialog */\ntype AnimationState = 'closed' | 'open';\n\n/** Upper bound for the exit animation before the overlay is removed anyway */\nconst CLOSE_FALLBACK_MS = 400;\n\n/** Configuration properties for the dialog component */\nexport type DialogProps = {\n\twidth?: DialogWidthProps;\n\tfullscreenOnMobile?: boolean;\n};\n\n/**\n * A customizable dialog component using Angular CDK Dialog for declarative usage\n *\n * @remarks\n * This component provides a declarative way to create dialogs with content projection.\n * Uses CDK Dialog under the hood to avoid z-index issues with native dialog elements.\n *\n * @example\n * ```html\n * <st-dialog\n * [(opened)]=\"isDialogOpen\"\n * width=\"lg\"\n * (closed)=\"handleDialogClosed()\">\n * <st-dialog-title>Confirm Action</st-dialog-title>\n * <st-dialog-content>\n * Are you sure you want to proceed?\n * </st-dialog-content>\n * <st-dialog-actions>\n * <st-button variant=\"secondary\" (click)=\"closeDialog()\">Cancel</st-button>\n * <st-button variant=\"primary\" (click)=\"confirmAction()\">Confirm</st-button>\n * </st-dialog-actions>\n * </st-dialog>\n * ```\n */\n@Component({\n\tselector: 'st-dialog',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogComponent {\n\t/** @internal Content children to detect what's projected */\n\tprivate readonly titleComponent = contentChild(DialogTitleComponent);\n\tprivate readonly subTitleComponent = contentChild(DialogSubTitleComponent);\n\n\t/** @internal Signals for conditional styling */\n\thasTitle = signal(false);\n\thasSubTitle = signal(false);\n\n\tprivate readonly destroyRef = inject(DestroyRef);\n\tprotected readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\tprotected readonly themeDomService = inject(ThemeDomService);\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal Close button name from `sdk.dialog.close`, in English when no translation is loaded. */\n\tprotected readonly closeLabel = computed(() => this.translateLabel(CLOSE_LABEL));\n\n\tprivate readonly contentEffect = effect(() => {\n\t\tconst titleInstance = this.titleComponent();\n\t\tconst subTitleInstance = this.subTitleComponent();\n\n\t\tconst hasSub = !!subTitleInstance;\n\t\tthis.hasTitle.set(!!titleInstance);\n\t\tthis.hasSubTitle.set(hasSub);\n\n\t\ttitleInstance?.setHasSubTitle?.(hasSub);\n\t});\n\n\t/**\n\t * Specifies the width of the dialog\n\t * @defaultValue 'lg'\n\t */\n\twidth = input<DialogWidthProps>('lg');\n\n\t/**\n\t * Below the `sm` breakpoint (640px) the dialog fills the screen: full width and height, no radius,\n\t * the content scrolls and the actions stay visible. Set it to `false` for a short confirm that should\n\t * stay a centered card on phones.\n\t * @defaultValue true\n\t */\n\tfullscreenOnMobile = input(true, { transform: booleanAttribute });\n\n\t/**\n\t * Controls the horizontal positioning of the dialog (x-axis)\n\t * @defaultValue 'center'\n\t */\n\txPosition = input<DialogXPosition>('center');\n\n\t/**\n\t * Controls the vertical positioning of the dialog (y-axis)\n\t * @defaultValue 'center'\n\t */\n\tyPosition = input<DialogYPosition>('center');\n\n\t/**\n\t * Controls the visibility state of the dialog\n\t * Supports two-way binding via Angular's model\n\t */\n\topened = model<boolean>(false);\n\n\t/** Event emitted when the dialog closes */\n\tclosed = output<void>();\n\n\t/** Event emitted when clicking outside the dialog content */\n\tclickOutside = output<void>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on pointer down\n\t */\n\tpointerDown = output<PointerEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t/** @internal CDK Dialog service */\n\tprivate readonly dialog = inject(Dialog);\n\n\t/** @internal CDK Overlay service for positioning */\n\tprivate readonly overlay = inject(Overlay);\n\n\t/** @internal */\n\tprivate readonly document = inject(DOCUMENT);\n\n\t/** @internal Reference to the dialog template */\n\tdialogTemplate = viewChild<TemplateRef<unknown>>('dialogTemplate');\n\n\t/** @internal Reference to the current open dialog */\n\tprivate dialogRef: DialogRef<unknown> | null = null;\n\n\t/** @internal Subscriptions for CDK dialog observables so we can clean up on destroy */\n\tprivate subs = new Subscription();\n\n\t/** @internal Animation state signal for controlling CSS animations */\n\tprivate readonly animationState = signal<AnimationState>('closed');\n\n\t/** @internal Flag to track if we're in the process of closing */\n\tprivate isClosing = false;\n\n\t/** @internal Closes the dialog if the exit animation never reports its end */\n\tprivate closeFallback: ReturnType<typeof setTimeout> | undefined;\n\n\t/**\n\t * Computes the data-state attribute value for CSS animations\n\t * @returns Current animation state\n\t * @internal\n\t */\n\tdataState = computed(() => this.animationState());\n\n\t/**\n\t * Computes CSS classes for dialog content based on current configuration\n\t * @returns Combined Tailwind classes string\n\t * @internal\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tdialogComponent({\n\t\t\t\twidth: this.width(),\n\t\t\t\tfullscreenOnMobile: this.fullscreenOnMobile(),\n\t\t\t}),\n\t\t);\n\t});\n\n\t/**\n\t * Classes for the content region: it takes the free height and scrolls in the full-screen layout\n\t * @internal\n\t */\n\tcontentClass = computed(() => (this.fullscreenOnMobile() ? 'max-sm:min-h-0 max-sm:flex-1 max-sm:overflow-y-auto max-sm:overscroll-contain' : ''));\n\n\t/** @internal Handles open/close state changes */\n\topenedEffect = effect(() => {\n\t\tif (this.opened()) {\n\t\t\tthis.openDialog();\n\t\t} else {\n\t\t\tthis.closeDialog();\n\t\t}\n\t});\n\n\t/**\n\t * Computed CDK Dialog configuration based on x/y axis signals\n\t * Uses CDK's overlay positioning system for full axis control\n\t * @internal\n\t */\n\tprivate readonly dialogConfig = computed<DialogConfig>(() => {\n\t\tconst x = this.xPosition();\n\t\tconst y = this.yPosition();\n\n\t\tconst baseConfig: DialogConfig = {\n\t\t\thasBackdrop: true,\n\t\t\tdisableClose: true, // Prevent automatic close, we handle it manually for animations\n\t\t\tautoFocus: true,\n\t\t\trestoreFocus: true,\n\t\t\tbackdropClass: ['bg-backdrop'],\n\t\t\tpanelClass: this.fullscreenOnMobile() ? ['st-dialog-panel', 'st-dialog-panel-fullscreen'] : ['st-dialog-panel'],\n\t\t};\n\n\t\tlet positionStrategy = this.overlay.position().global();\n\n\t\t// X axis\n\t\tswitch (x) {\n\t\t\tcase 'start':\n\t\t\t\tpositionStrategy = positionStrategy.left('2rem');\n\t\t\t\tbreak;\n\t\t\tcase 'end':\n\t\t\t\tpositionStrategy = positionStrategy.right('2rem');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpositionStrategy = positionStrategy.centerHorizontally();\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Y axis\n\t\tswitch (y) {\n\t\t\tcase 'top':\n\t\t\t\tpositionStrategy = positionStrategy.top('2rem');\n\t\t\t\tbreak;\n\t\t\tcase 'bottom':\n\t\t\t\tpositionStrategy = positionStrategy.bottom('2rem');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpositionStrategy = positionStrategy.centerVertically();\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn {\n\t\t\t...baseConfig,\n\t\t\tpositionStrategy,\n\t\t};\n\t});\n\n\t/**\n\t * Opens the dialog using CDK Dialog\n\t * @internal\n\t */\n\tprivate openDialog() {\n\t\tif (this.dialogRef && this.isClosing) {\n\t\t\tclearTimeout(this.closeFallback);\n\t\t\tthis.closeFallback = undefined;\n\t\t\tthis.isClosing = false;\n\t\t\tthis.animationState.set('open');\n\t\t\tthis.dialogRef.overlayRef?.backdropElement?.classList.add('cdk-overlay-backdrop-showing');\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.dialogRef || !this.dialogTemplate()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.dialogRef = this.dialog.open(this.dialogTemplate()!, {\n\t\t\t...this.dialogConfig(),\n\t\t\tscrollStrategy: this.createScrollStrategy(),\n\t\t} as DialogConfig<unknown, DialogRef<unknown, unknown>>);\n\n\t\t// Set open state for animation\n\t\tthis.animationState.set('open');\n\t\tthis.isClosing = false;\n\n\t\t// Handle dialog close events\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.closed.subscribe(() => {\n\t\t\t\t// tear down current subscriptions to avoid re-entrancy or emits after destroy\n\t\t\t\tthis.subs.unsubscribe();\n\t\t\t\t// recreate the subscription container so future opens can re-subscribe\n\t\t\t\tthis.subs = new Subscription();\n\t\t\t\tthis.dialogRef = null;\n\t\t\t\tthis.animationState.set('closed');\n\t\t\t\tthis.isClosing = false;\n\t\t\t\tif (this.opened()) {\n\t\t\t\t\tthis.opened.set(false);\n\t\t\t\t\tthis.closed.emit();\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\n\t\t// Handle backdrop clicks\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.backdropClick.subscribe(() => {\n\t\t\t\tthis.clickOutside.emit();\n\t\t\t\tthis.close();\n\t\t\t}),\n\t\t);\n\n\t\t// Handle escape key\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.keydownEvents.subscribe((event: KeyboardEvent) => {\n\t\t\t\tif (event.key === 'Escape') {\n\t\t\t\t\tthis.close();\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\t}\n\n\t/**\n\t * A full-screen dialog locks the page scroll below `sm`, where it covers the page anyway. Elsewhere the\n\t * page keeps its scroll (noop), because the block strategy fixes the root and makes a sticky navbar jump.\n\t * @internal\n\t */\n\tprivate createScrollStrategy(): ScrollStrategy {\n\t\tif (!this.fullscreenOnMobile()) {\n\t\t\treturn this.overlay.scrollStrategies.noop();\n\t\t}\n\t\tconst media = this.document.defaultView?.matchMedia?.(FULLSCREEN_DIALOG_MEDIA) ?? null;\n\t\treturn new FullscreenBlockScrollStrategy(this.overlay.scrollStrategies.block(), media, this.document.documentElement);\n\t}\n\n\t/**\n\t * Public method to close the dialog\n\t * Can be called directly from parent components or child components\n\t */\n\tclose() {\n\t\tif (this.isClosing) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.closeDialog();\n\n\t\t// Ensure opened flag is synchronized and notify listeners that the dialog closed\n\t\tthis.opened.set(false);\n\t\tthis.closed.emit();\n\t}\n\n\t/**\n\t * Plays the exit animation; the CDK dialog is closed when it ends\n\t * @internal\n\t */\n\tprivate closeDialog() {\n\t\tif (!this.dialogRef || this.isClosing) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isClosing = true;\n\t\tthis.animationState.set('closed');\n\t\t// Set directly too: after this component is destroyed (e.g. inside an @if) its signals no longer render\n\t\tthis.dialogRef.overlayRef?.overlayElement?.querySelector('[data-state]')?.setAttribute('data-state', 'closed');\n\t\tthis.dialogRef.overlayRef?.backdropElement?.classList.remove('cdk-overlay-backdrop-showing');\n\t\tthis.closeFallback = setTimeout(() => this.finishClose(), CLOSE_FALLBACK_MS);\n\t}\n\n\t/** @internal Closes the CDK dialog once the exit animation is done */\n\tprivate finishClose() {\n\t\tclearTimeout(this.closeFallback);\n\t\tthis.closeFallback = undefined;\n\t\tthis.dialogRef?.close();\n\t}\n\n\t/**\n\t * Handles animation end events to trigger the actual dialog close\n\t * @internal\n\t */\n\tonAnimationEnd(event: AnimationEvent) {\n\t\tconst target = event.target as HTMLElement;\n\n\t\t// Only handle animations on the main dialog element\n\t\tif (target.hasAttribute('data-state') && this.isClosing) {\n\t\t\tthis.finishClose();\n\t\t}\n\t}\n\n\t/**\n\t * Clean up CDK subscriptions and animate the overlay out when the component is destroyed\n\t */\n\tprivate readonly destroyEffect = this.destroyRef.onDestroy(() => {\n\t\tthis.subs.unsubscribe();\n\t\tthis.closeDialog();\n\t});\n\n\t/**\n\t * Handles the close button click\n\t * @internal\n\t */\n\thandleCloseClick() {\n\t\tthis.close();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t\tthis.close();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle pointer down activation\n\t */\n\thandlePointerDown(event: PointerEvent) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.pointerDown.emit(event);\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.close();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event) {\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.close();\n\t}\n}\n","<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(elementRef.nativeElement)\">\n\t\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t\t<!-- Close button -->\n\t\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t\t<button\n\t\t\t\t\tclass=\"btn btn-circle btn-ghost btn-sm\"\n\t\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t\t(click)=\"handleClick($event)\"\n\t\t\t\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t\t\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t\t\t\t[attr.aria-label]=\"closeLabel()\"\n\t\t\t\t>\n\t\t\t\t\t✕\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<!-- Headings keep clear of the close button -->\n\t\t\t<div class=\"pe-8\" data-st-dialog-heading>\n\t\t\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t\t</div>\n\t\t\t<div [class]=\"contentClass()\" data-st-dialog-body>\n\t\t\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\t\t\t</div>\n\n\t\t\t<!-- Actions section with spacing -->\n\t\t\t<div class=\"flex shrink-0 justify-end gap-2 pt-4\" data-st-dialog-actions>\n\t\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAYa,sBAAsB,CAAA;AAClC;;;AAGG;AACH,IAAA,SAAS,GAAG,KAAK,CAA4B,OAAO,CAAC;IAErD,cAAc,GAAG,QAAQ,CAAC,MACzB,EAAE,CAAC,mDAAmD,EAAE;AACvD,QAAA,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,MAAM;AAC5C,QAAA,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,OAAO;AAC3C,QAAA,gBAAgB,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,QAAQ;AAC/C,KAAA,CAAC,CACF;wGAbW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,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AE;IACb;wGArZY,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,soCAEoB,oBAAoB,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,EAAA,EAAA,YAAA,EAAA,mBAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EACjB,uBAAuB,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,gBAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC/H1E,g3CAkCA,2CDsFW,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAIV,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,WACZ,CAAC,YAAY,CAAC,EAAA,eAAA,EAEN,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,g3CAAA,EAAA;;;AE1HhD;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-dialog.mjs","sources":["../../../projects/sdk/components/dialog/dialog-actions/dialog-actions.component.ts","../../../projects/sdk/components/dialog/dialog-actions/dialog-actions.component.html","../../../projects/sdk/components/dialog/dialog-content/dialog-content.component.ts","../../../projects/sdk/components/dialog/dialog-content/dialog-content.component.html","../../../projects/sdk/components/dialog/dialog-sub-title/dialog-sub-title.component.ts","../../../projects/sdk/components/dialog/dialog-sub-title/dialog-sub-title.component.html","../../../projects/sdk/components/dialog/dialog-title/dialog-title.component.ts","../../../projects/sdk/components/dialog/dialog-title/dialog-title.component.html","../../../projects/sdk/components/dialog/src/fullscreen-block-scroll-strategy.ts","../../../projects/sdk/components/dialog/src/dialog.component.ts","../../../projects/sdk/components/dialog/src/dialog.component.html","../../../projects/sdk/components/dialog/sixbell-telco-sdk-components-dialog.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\nexport type ModalActionsAligmentProps = 'left' | 'right' | 'center';\n\n@Component({\n\tselector: 'st-dialog-actions',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog-actions.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogActionsComponent {\n\t/**\n\t * Horizontal alignment of the actions. Dialog actions sit at the bottom right, dismiss first and confirm last.\n\t * @defaultValue 'right'\n\t */\n\talignment = input<ModalActionsAligmentProps>('right');\n\n\tcomponentClass = computed(() =>\n\t\tcn('modal-action font-body leading-normal text-pretty', {\n\t\t\t'justify-start': this.alignment() === 'left',\n\t\t\t'justify-end': this.alignment() === 'right',\n\t\t\t'justify-center': this.alignment() === 'center',\n\t\t}),\n\t);\n}\n","<div [class]=\"componentClass()\">\n\t<ng-content></ng-content>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n\tselector: 'st-dialog-content',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog-content.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogContentComponent {}\n","<ng-content></ng-content>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\n\n@Component({\n\tselector: 'st-dialog-sub-title',\n\timports: [CommonModule, TextDirective],\n\ttemplateUrl: './dialog-sub-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogSubTitleComponent {}\n","<div class=\"text-base-content-secondary mb-3\">\n\t<p stText=\"6\" stTextWeight=\"normal\">\n\t\t<ng-content></ng-content>\n\t</p>\n</div>\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, signal } from '@angular/core';\nimport { TextDirective } from '@sixbell-telco/sdk/directives/text';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n@Component({\n\tselector: 'st-dialog-title',\n\timports: [CommonModule, TextDirective],\n\ttemplateUrl: './dialog-title.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogTitleComponent {\n\t/** Internal signal that indicates whether a subtitle is present in the dialog */\n\tprivate readonly hasSubTitle = signal(false);\n\n\tsetHasSubTitle(value: boolean) {\n\t\tthis.hasSubTitle.set(value);\n\t}\n\n\tcomponentClass = computed(() =>\n\t\tcn({\n\t\t\t'mb-3': !this.hasSubTitle(),\n\t\t\t'mb-1': this.hasSubTitle(),\n\t\t}),\n\t);\n}\n","<div [class]=\"componentClass()\">\n\t<h2 stText=\"2\" stTextWeight=\"medium\" stTextColor=\"base\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n","import { OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';\n\n/**\n * @internal\n * Matches Tailwind's `max-sm` variant: the range where a `fullscreenOnMobile` dialog fills the screen.\n */\nexport const FULLSCREEN_DIALOG_MEDIA = '(width < 40rem)';\n\nconst SCROLLBLOCK_CLASS = 'cdk-global-scrollblock';\n\n/** The declarations of CDK's `.cdk-global-scrollblock` rule, applied inline so the lock works without that stylesheet. */\nconst SCROLLBLOCK_STYLES = { position: 'fixed', width: '100%', overflowY: 'scroll' } as const;\n\ntype ScrollblockStyle = keyof typeof SCROLLBLOCK_STYLES;\n\n/**\n * @internal\n * Locks the page scroll with the CDK block strategy only while the media query matches, and follows\n * viewport changes while the dialog is open. Wider viewports keep the page as is, so a sticky navbar\n * behind the backdrop does not jump.\n *\n * The CDK strategy only sets the class and the `top`/`left` offsets; the lock itself comes from the\n * `.cdk-global-scrollblock` rule in the global stylesheet. A host that loads the SDK styles only inside a\n * child's shadow root would not have that rule, so the same declarations are applied inline on the root.\n */\nexport class FullscreenBlockScrollStrategy implements ScrollStrategy {\n\tprivate readonly onChange = () => this.sync();\n\tprivate previousStyles: Record<ScrollblockStyle, string> | null = null;\n\n\tconstructor(\n\t\tprivate readonly block: ScrollStrategy,\n\t\tprivate readonly media: MediaQueryList | null,\n\t\tprivate readonly root: HTMLElement | null,\n\t) {}\n\n\tattach(overlayRef: OverlayRef): void {\n\t\tthis.block.attach(overlayRef);\n\t}\n\n\tenable(): void {\n\t\tthis.media?.addEventListener('change', this.onChange);\n\t\tthis.sync();\n\t}\n\n\tdisable(): void {\n\t\tthis.media?.removeEventListener('change', this.onChange);\n\t\tthis.unlock();\n\t}\n\n\tdetach(): void {\n\t\tthis.disable();\n\t\tthis.block.detach?.();\n\t}\n\n\tprivate sync(): void {\n\t\tif (this.media?.matches) {\n\t\t\tthis.lock();\n\t\t} else {\n\t\t\tthis.unlock();\n\t\t}\n\t}\n\n\tprivate lock(): void {\n\t\tif (this.previousStyles || !this.root) {\n\t\t\tthis.block.enable();\n\t\t\treturn;\n\t\t}\n\t\tconst alreadyBlocked = this.root.classList.contains(SCROLLBLOCK_CLASS);\n\t\tthis.block.enable();\n\t\tif (alreadyBlocked || !this.root.classList.contains(SCROLLBLOCK_CLASS)) {\n\t\t\treturn;\n\t\t}\n\t\tconst style = this.root.style;\n\t\tthis.previousStyles = { position: style.position, width: style.width, overflowY: style.overflowY };\n\t\tObject.assign(style, SCROLLBLOCK_STYLES);\n\t}\n\n\tprivate unlock(): void {\n\t\tif (this.previousStyles && this.root) {\n\t\t\tObject.assign(this.root.style, this.previousStyles);\n\t\t\tthis.previousStyles = null;\n\t\t}\n\t\tthis.block.disable();\n\t}\n}\n","import { Dialog, DialogConfig, DialogRef } from '@angular/cdk/dialog';\nimport { Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport { CommonModule, DOCUMENT } from '@angular/common';\nimport {\n\tbooleanAttribute,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\teffect,\n\tElementRef,\n\tinject,\n\tinput,\n\tmodel,\n\toutput,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n} from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { ThemeDomService } from '@sixbell-telco/sdk/utils/theme';\nimport { injectLabelTranslator } from '@sixbell-telco/sdk/utils/translation';\nimport { cva } from 'class-variance-authority';\nimport { Subscription } from 'rxjs';\nimport { DialogSubTitleComponent } from '../dialog-sub-title/dialog-sub-title.component';\nimport { DialogTitleComponent } from '../dialog-title/dialog-title.component';\nimport { FULLSCREEN_DIALOG_MEDIA, FullscreenBlockScrollStrategy } from './fullscreen-block-scroll-strategy';\n\nconst CLOSE_LABEL = { key: 'sdk.dialog.close', fallback: 'Close dialog' };\n\n/** Dropdown X position options for CDK overlay positioning */\nexport type DialogXPosition = 'start' | 'center' | 'end';\n\n/** Dropdown Y position options for CDK overlay positioning */\nexport type DialogYPosition = 'top' | 'center' | 'bottom';\n\n/**\n * CSS class generator for dialog component variants\n * Uses carefully selected DaisyUI classes that don't conflict with CDK positioning\n * @internal\n */\nexport const dialogComponent = cva(\n\t[\n\t\t'bg-base-200',\n\t\t'rounded-box',\n\t\t'shadow-modal',\n\t\t'p-6',\n\t\t'text-base-content',\n\t\t'relative',\n\t\t'max-w-[calc(100vw-2rem)]',\n\t\t'data-[state=closed]:animate-exit data-[state=open]:animate-enter data-[state=closed]:pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\twidth: {\n\t\t\t\txs: ['w-64'],\n\t\t\t\tsm: ['w-80'],\n\t\t\t\tmd: ['w-96'],\n\t\t\t\tlg: ['w-[32rem]'],\n\t\t\t\txl: ['w-[36rem]'],\n\t\t\t\t'2xl': ['w-[42rem]'],\n\t\t\t\t'3xl': ['w-[48rem]'],\n\t\t\t\t'4xl': ['w-[56rem]'],\n\t\t\t\t'5xl': ['w-[64rem]'],\n\t\t\t},\n\t\t\tfullscreenOnMobile: {\n\t\t\t\ttrue: ['max-sm:flex max-sm:h-dvh max-sm:w-screen max-sm:max-w-none max-sm:flex-col max-sm:rounded-none'],\n\t\t\t\tfalse: [],\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\twidth: 'lg',\n\t\t\tfullscreenOnMobile: true,\n\t\t},\n\t},\n);\n\n/** Possible width values for the dialog component */\nexport type DialogWidthProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | null | undefined;\n\n/** Animation states for the dialog */\ntype AnimationState = 'closed' | 'open';\n\n/** Upper bound for the exit animation before the overlay is removed anyway */\nconst CLOSE_FALLBACK_MS = 400;\n\n/** Configuration properties for the dialog component */\nexport type DialogProps = {\n\twidth?: DialogWidthProps;\n\tfullscreenOnMobile?: boolean;\n};\n\n/**\n * A customizable dialog component using Angular CDK Dialog for declarative usage\n *\n * @remarks\n * This component provides a declarative way to create dialogs with content projection.\n * Uses CDK Dialog under the hood to avoid z-index issues with native dialog elements.\n *\n * @example\n * ```html\n * <st-dialog\n * [(opened)]=\"isDialogOpen\"\n * width=\"lg\"\n * (closed)=\"handleDialogClosed()\">\n * <st-dialog-title>Confirm Action</st-dialog-title>\n * <st-dialog-content>\n * Are you sure you want to proceed?\n * </st-dialog-content>\n * <st-dialog-actions>\n * <st-button variant=\"secondary\" (click)=\"closeDialog()\">Cancel</st-button>\n * <st-button variant=\"primary\" (click)=\"confirmAction()\">Confirm</st-button>\n * </st-dialog-actions>\n * </st-dialog>\n * ```\n */\n@Component({\n\tselector: 'st-dialog',\n\timports: [CommonModule],\n\ttemplateUrl: './dialog.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DialogComponent {\n\t/** @internal Content children to detect what's projected */\n\tprivate readonly titleComponent = contentChild(DialogTitleComponent);\n\tprivate readonly subTitleComponent = contentChild(DialogSubTitleComponent);\n\n\t/** @internal Signals for conditional styling */\n\thasTitle = signal(false);\n\thasSubTitle = signal(false);\n\n\tprivate readonly destroyRef = inject(DestroyRef);\n\tprotected readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\tprotected readonly themeDomService = inject(ThemeDomService);\n\tprivate readonly translateLabel = injectLabelTranslator();\n\n\t/** @internal Close button name from `sdk.dialog.close`, in English when no translation is loaded. */\n\tprotected readonly closeLabel = computed(() => this.translateLabel(CLOSE_LABEL));\n\n\tprivate readonly contentEffect = effect(() => {\n\t\tconst titleInstance = this.titleComponent();\n\t\tconst subTitleInstance = this.subTitleComponent();\n\n\t\tconst hasSub = !!subTitleInstance;\n\t\tthis.hasTitle.set(!!titleInstance);\n\t\tthis.hasSubTitle.set(hasSub);\n\n\t\ttitleInstance?.setHasSubTitle?.(hasSub);\n\t});\n\n\t/**\n\t * Specifies the width of the dialog\n\t * @defaultValue 'lg'\n\t */\n\twidth = input<DialogWidthProps>('lg');\n\n\t/**\n\t * Below the `sm` breakpoint (640px) the dialog fills the screen: full width and height, no radius,\n\t * the content scrolls and the actions stay visible. Set it to `false` for a short confirm that should\n\t * stay a centered card on phones.\n\t * @defaultValue true\n\t */\n\tfullscreenOnMobile = input(true, { transform: booleanAttribute });\n\n\t/**\n\t * Controls the horizontal positioning of the dialog (x-axis)\n\t * @defaultValue 'center'\n\t */\n\txPosition = input<DialogXPosition>('center');\n\n\t/**\n\t * Controls the vertical positioning of the dialog (y-axis)\n\t * @defaultValue 'center'\n\t */\n\tyPosition = input<DialogYPosition>('center');\n\n\t/**\n\t * Controls the visibility state of the dialog\n\t * Supports two-way binding via Angular's model\n\t */\n\topened = model<boolean>(false);\n\n\t/** Event emitted when the dialog closes */\n\tclosed = output<void>();\n\n\t/** Event emitted when clicking outside the dialog content */\n\tclickOutside = output<void>();\n\n\t/**\n\t * Stop event propagation for activation events\n\t * @defaultValue false\n\t */\n\tstopPropagation = input(false, { transform: booleanAttribute });\n\n\t/**\n\t * Event emitted on click\n\t */\n\tclicked = output<MouseEvent>();\n\n\t/**\n\t * Event emitted on pointer down\n\t */\n\tpointerDown = output<PointerEvent>();\n\n\t/**\n\t * Event emitted on Enter keydown\n\t */\n\tkeyDownEnter = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on Space keydown\n\t */\n\tkeyDownSpace = output<KeyboardEvent>();\n\n\t/**\n\t * Event emitted on activation (click or keyboard)\n\t */\n\ttriggered = output<void>();\n\n\t/** @internal CDK Dialog service */\n\tprivate readonly dialog = inject(Dialog);\n\n\t/** @internal CDK Overlay service for positioning */\n\tprivate readonly overlay = inject(Overlay);\n\n\t/** @internal */\n\tprivate readonly document = inject(DOCUMENT);\n\n\t/** @internal Reference to the dialog template */\n\tdialogTemplate = viewChild<TemplateRef<unknown>>('dialogTemplate');\n\n\t/** @internal Reference to the current open dialog */\n\tprivate dialogRef: DialogRef<unknown> | null = null;\n\n\t/** @internal Subscriptions for CDK dialog observables so we can clean up on destroy */\n\tprivate subs = new Subscription();\n\n\t/** @internal Animation state signal for controlling CSS animations */\n\tprivate readonly animationState = signal<AnimationState>('closed');\n\n\t/** @internal Flag to track if we're in the process of closing */\n\tprivate isClosing = false;\n\n\t/** @internal Closes the dialog if the exit animation never reports its end */\n\tprivate closeFallback: ReturnType<typeof setTimeout> | undefined;\n\n\t/**\n\t * Computes the data-state attribute value for CSS animations\n\t * @returns Current animation state\n\t * @internal\n\t */\n\tdataState = computed(() => this.animationState());\n\n\t/**\n\t * Computes CSS classes for dialog content based on current configuration\n\t * @returns Combined Tailwind classes string\n\t * @internal\n\t */\n\tcomponentClass = computed(() => {\n\t\treturn cn(\n\t\t\tdialogComponent({\n\t\t\t\twidth: this.width(),\n\t\t\t\tfullscreenOnMobile: this.fullscreenOnMobile(),\n\t\t\t}),\n\t\t);\n\t});\n\n\t/**\n\t * Classes for the content region: it takes the free height and scrolls in the full-screen layout\n\t * @internal\n\t */\n\tcontentClass = computed(() => (this.fullscreenOnMobile() ? 'max-sm:min-h-0 max-sm:flex-1 max-sm:overflow-y-auto max-sm:overscroll-contain' : ''));\n\n\t/** @internal Handles open/close state changes */\n\topenedEffect = effect(() => {\n\t\tif (this.opened()) {\n\t\t\tthis.openDialog();\n\t\t} else {\n\t\t\tthis.closeDialog();\n\t\t}\n\t});\n\n\t/**\n\t * Computed CDK Dialog configuration based on x/y axis signals\n\t * Uses CDK's overlay positioning system for full axis control\n\t * @internal\n\t */\n\tprivate readonly dialogConfig = computed<DialogConfig>(() => {\n\t\tconst x = this.xPosition();\n\t\tconst y = this.yPosition();\n\n\t\tconst baseConfig: DialogConfig = {\n\t\t\thasBackdrop: true,\n\t\t\tdisableClose: true, // Prevent automatic close, we handle it manually for animations\n\t\t\tautoFocus: true,\n\t\t\trestoreFocus: true,\n\t\t\tbackdropClass: ['bg-backdrop'],\n\t\t\tpanelClass: this.fullscreenOnMobile() ? ['st-dialog-panel', 'st-dialog-panel-fullscreen'] : ['st-dialog-panel'],\n\t\t};\n\n\t\tlet positionStrategy = this.overlay.position().global();\n\n\t\t// X axis\n\t\tswitch (x) {\n\t\t\tcase 'start':\n\t\t\t\tpositionStrategy = positionStrategy.left('2rem');\n\t\t\t\tbreak;\n\t\t\tcase 'end':\n\t\t\t\tpositionStrategy = positionStrategy.right('2rem');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpositionStrategy = positionStrategy.centerHorizontally();\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Y axis\n\t\tswitch (y) {\n\t\t\tcase 'top':\n\t\t\t\tpositionStrategy = positionStrategy.top('2rem');\n\t\t\t\tbreak;\n\t\t\tcase 'bottom':\n\t\t\t\tpositionStrategy = positionStrategy.bottom('2rem');\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpositionStrategy = positionStrategy.centerVertically();\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn {\n\t\t\t...baseConfig,\n\t\t\tpositionStrategy,\n\t\t};\n\t});\n\n\t/**\n\t * Opens the dialog using CDK Dialog\n\t * @internal\n\t */\n\tprivate openDialog() {\n\t\tif (this.dialogRef && this.isClosing) {\n\t\t\tclearTimeout(this.closeFallback);\n\t\t\tthis.closeFallback = undefined;\n\t\t\tthis.isClosing = false;\n\t\t\tthis.animationState.set('open');\n\t\t\tthis.dialogRef.overlayRef?.backdropElement?.classList.add('cdk-overlay-backdrop-showing');\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.dialogRef || !this.dialogTemplate()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.dialogRef = this.dialog.open(this.dialogTemplate()!, {\n\t\t\t...this.dialogConfig(),\n\t\t\tscrollStrategy: this.createScrollStrategy(),\n\t\t} as DialogConfig<unknown, DialogRef<unknown, unknown>>);\n\n\t\t// Set open state for animation\n\t\tthis.animationState.set('open');\n\t\tthis.isClosing = false;\n\n\t\t// Handle dialog close events\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.closed.subscribe(() => {\n\t\t\t\t// tear down current subscriptions to avoid re-entrancy or emits after destroy\n\t\t\t\tthis.subs.unsubscribe();\n\t\t\t\t// recreate the subscription container so future opens can re-subscribe\n\t\t\t\tthis.subs = new Subscription();\n\t\t\t\tthis.dialogRef = null;\n\t\t\t\tthis.animationState.set('closed');\n\t\t\t\tthis.isClosing = false;\n\t\t\t\tif (this.opened()) {\n\t\t\t\t\tthis.opened.set(false);\n\t\t\t\t\tthis.closed.emit();\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\n\t\t// Handle backdrop clicks\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.backdropClick.subscribe(() => {\n\t\t\t\tthis.clickOutside.emit();\n\t\t\t\tthis.close();\n\t\t\t}),\n\t\t);\n\n\t\t// Handle escape key\n\t\tthis.subs.add(\n\t\t\tthis.dialogRef.keydownEvents.subscribe((event: KeyboardEvent) => {\n\t\t\t\tif (event.key === 'Escape') {\n\t\t\t\t\tthis.close();\n\t\t\t\t}\n\t\t\t}),\n\t\t);\n\t}\n\n\t/**\n\t * A full-screen dialog locks the page scroll below `sm`, where it covers the page anyway. Elsewhere the\n\t * page keeps its scroll (noop), because the block strategy fixes the root and makes a sticky navbar jump.\n\t * @internal\n\t */\n\tprivate createScrollStrategy(): ScrollStrategy {\n\t\tif (!this.fullscreenOnMobile()) {\n\t\t\treturn this.overlay.scrollStrategies.noop();\n\t\t}\n\t\tconst media = this.document.defaultView?.matchMedia?.(FULLSCREEN_DIALOG_MEDIA) ?? null;\n\t\treturn new FullscreenBlockScrollStrategy(this.overlay.scrollStrategies.block(), media, this.document.documentElement);\n\t}\n\n\t/**\n\t * Public method to close the dialog\n\t * Can be called directly from parent components or child components\n\t */\n\tclose() {\n\t\tif (this.isClosing) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.closeDialog();\n\n\t\t// Ensure opened flag is synchronized and notify listeners that the dialog closed\n\t\tthis.opened.set(false);\n\t\tthis.closed.emit();\n\t}\n\n\t/**\n\t * Plays the exit animation; the CDK dialog is closed when it ends\n\t * @internal\n\t */\n\tprivate closeDialog() {\n\t\tif (!this.dialogRef || this.isClosing) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.isClosing = true;\n\t\tthis.animationState.set('closed');\n\t\t// Set directly too: after this component is destroyed (e.g. inside an @if) its signals no longer render\n\t\tthis.dialogRef.overlayRef?.overlayElement?.querySelector('[data-state]')?.setAttribute('data-state', 'closed');\n\t\tthis.dialogRef.overlayRef?.backdropElement?.classList.remove('cdk-overlay-backdrop-showing');\n\t\tthis.closeFallback = setTimeout(() => this.finishClose(), CLOSE_FALLBACK_MS);\n\t}\n\n\t/** @internal Closes the CDK dialog once the exit animation is done */\n\tprivate finishClose() {\n\t\tclearTimeout(this.closeFallback);\n\t\tthis.closeFallback = undefined;\n\t\tthis.dialogRef?.close();\n\t}\n\n\t/**\n\t * Handles animation end events to trigger the actual dialog close\n\t * @internal\n\t */\n\tonAnimationEnd(event: AnimationEvent) {\n\t\tconst target = event.target as HTMLElement;\n\n\t\t// Only handle animations on the main dialog element\n\t\tif (target.hasAttribute('data-state') && this.isClosing) {\n\t\t\tthis.finishClose();\n\t\t}\n\t}\n\n\t/**\n\t * Clean up CDK subscriptions and animate the overlay out when the component is destroyed\n\t */\n\tprivate readonly destroyEffect = this.destroyRef.onDestroy(() => {\n\t\tthis.subs.unsubscribe();\n\t\tthis.closeDialog();\n\t});\n\n\t/**\n\t * Handles the close button click\n\t * @internal\n\t */\n\thandleCloseClick() {\n\t\tthis.close();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle click activation\n\t */\n\thandleClick(event: MouseEvent) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.clicked.emit(event);\n\t\tthis.triggered.emit();\n\t\tthis.close();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle pointer down activation\n\t */\n\thandlePointerDown(event: PointerEvent) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.pointerDown.emit(event);\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Enter key activation\n\t */\n\thandleKeyDownEnter(event: Event) {\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownEnter.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.close();\n\t}\n\n\t/**\n\t * @internal\n\t * Handle Space key activation\n\t */\n\thandleKeyDownSpace(event: Event) {\n\t\tevent.preventDefault();\n\t\tif (this.stopPropagation()) {\n\t\t\tevent.stopPropagation();\n\t\t}\n\t\tthis.keyDownSpace.emit(event as KeyboardEvent);\n\t\tthis.triggered.emit();\n\t\tthis.close();\n\t}\n}\n","<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<div class=\"contents\" [attr.data-theme]=\"themeDomService.themeOf(elementRef.nativeElement)\">\n\t\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t\t<!-- Close button -->\n\t\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t\t<button\n\t\t\t\t\tclass=\"btn btn-circle btn-ghost btn-sm\"\n\t\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t\t(click)=\"handleClick($event)\"\n\t\t\t\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t\t\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t\t\t\t[attr.aria-label]=\"closeLabel()\"\n\t\t\t\t>\n\t\t\t\t\t✕\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<!-- Headings keep clear of the close button -->\n\t\t\t<div class=\"pe-8\" data-st-dialog-heading>\n\t\t\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t\t</div>\n\t\t\t<div [class]=\"contentClass()\" data-st-dialog-body>\n\t\t\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\t\t\t</div>\n\n\t\t\t<!-- Actions section with spacing -->\n\t\t\t<div class=\"flex shrink-0 justify-end gap-2 pt-4\" data-st-dialog-actions>\n\t\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAYa,sBAAsB,CAAA;AAClC;;;AAGG;AACH,IAAA,SAAS,GAAG,KAAK,CAA4B,OAAO,CAAC;IAErD,cAAc,GAAG,QAAQ,CAAC,MACzB,EAAE,CAAC,mDAAmD,EAAE;AACvD,QAAA,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,MAAM;AAC5C,QAAA,aAAa,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g3CAAA,EAAA;;;AE1HhD;;AAEG;;;;"}
@@ -1,9 +1,11 @@
1
1
  import * as i1 from '@angular/cdk/menu';
2
2
  import { MENU_STACK, CdkMenu, PARENT_OR_NEW_MENU_STACK_PROVIDER, CdkMenuItemCheckbox, CdkMenuItemRadio, CdkMenuItem, CdkMenuTrigger, CdkMenuBar } from '@angular/cdk/menu';
3
3
  import * as i0 from '@angular/core';
4
- import { inject, ElementRef, viewChild, signal, input, booleanAttribute, output, computed, Component } from '@angular/core';
4
+ import { inject, ElementRef, viewChild, signal, input, booleanAttribute, output, computed, Component, afterNextRender } from '@angular/core';
5
+ import { DropdownMenuKeyboardDirective, registerDropdownSubmenuTrigger, requestDropdownMenuFocus, registerDropdownMenuBarTrigger, moveInDropdownMenuBar } from '@sixbell-telco/sdk/components/dropdown-menu';
5
6
  import { cn } from '@sixbell-telco/sdk/utils/cn';
6
7
  import { PopoverMenuMotionDirective, popoverMenuPositions } from '@sixbell-telco/sdk/utils/popover-motion';
8
+ import { STANDARD_DROPDOWN_ADJACENT_POSITIONS } from '@angular/cdk/overlay';
7
9
  import { IconComponent } from '@sixbell-telco/sdk/components/icon';
8
10
  import { CommonModule } from '@angular/common';
9
11
 
@@ -98,16 +100,16 @@ class DropdownMenuBarContentComponent {
98
100
  'menu-md': this.size() === 'md',
99
101
  'menu-lg': this.size() === 'lg',
100
102
  'menu-xl': this.size() === 'xl',
101
- 'shadow-main': this.shadow(),
103
+ 'shadow-overlay': this.shadow(),
102
104
  }, this.class());
103
105
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
104
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: DropdownMenuBarContentComponent, isStandalone: true, selector: "st-dropdown-menu-bar-content", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "opened", closed: "closed" }, host: { listeners: { "keydown.escape": "onEscapeKey($event)" } }, providers: [PARENT_OR_NEW_MENU_STACK_PROVIDER], viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["menuTemplate"], descendants: true, isSignal: true }], exportAs: ["menuBarContent"], ngImport: i0, template: "<ng-template #menuTemplate>\n\t<ul cdkMenu stPopoverMenuMotion [stPopoverMenuMotionTheme]=\"host\" role=\"menu\" [class]=\"menuClass()\" (closed)=\"onMenuClosed()\" tabindex=\"-1\">\n\t\t<ng-content></ng-content>\n\t</ul>\n</ng-template>\n", dependencies: [{ kind: "directive", type: CdkMenu, selector: "[cdkMenu]", outputs: ["closed"], exportAs: ["cdkMenu"] }, { kind: "directive", type: PopoverMenuMotionDirective, selector: "[stPopoverMenuMotion]", inputs: ["stPopoverMenuMotionTheme"] }] });
106
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: DropdownMenuBarContentComponent, isStandalone: true, selector: "st-dropdown-menu-bar-content", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "opened", closed: "closed" }, host: { listeners: { "keydown.escape": "onEscapeKey($event)" } }, providers: [PARENT_OR_NEW_MENU_STACK_PROVIDER], viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["menuTemplate"], descendants: true, isSignal: true }], exportAs: ["menuBarContent"], ngImport: i0, template: "<ng-template #menuTemplate>\n\t<ul\n\t\tcdkMenu\n\t\tstPopoverMenuMotion\n\t\t[stPopoverMenuMotionTheme]=\"host\"\n\t\tstDropdownMenuKeyboard\n\t\trole=\"menu\"\n\t\t[class]=\"menuClass()\"\n\t\t(closed)=\"onMenuClosed()\"\n\t\ttabindex=\"-1\"\n\t>\n\t\t<ng-content></ng-content>\n\t</ul>\n</ng-template>\n", dependencies: [{ kind: "directive", type: CdkMenu, selector: "[cdkMenu]", outputs: ["closed"], exportAs: ["cdkMenu"] }, { kind: "directive", type: PopoverMenuMotionDirective, selector: "[stPopoverMenuMotion]", inputs: ["stPopoverMenuMotionTheme"] }, { kind: "directive", type: DropdownMenuKeyboardDirective, selector: "[stDropdownMenuKeyboard]" }] });
105
107
  }
106
108
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarContentComponent, decorators: [{
107
109
  type: Component,
108
- args: [{ selector: 'st-dropdown-menu-bar-content', standalone: true, imports: [CdkMenu, PopoverMenuMotionDirective], providers: [PARENT_OR_NEW_MENU_STACK_PROVIDER], host: {
110
+ args: [{ selector: 'st-dropdown-menu-bar-content', standalone: true, imports: [CdkMenu, PopoverMenuMotionDirective, DropdownMenuKeyboardDirective], providers: [PARENT_OR_NEW_MENU_STACK_PROVIDER], host: {
109
111
  '(keydown.escape)': 'onEscapeKey($event)',
110
- }, exportAs: 'menuBarContent', template: "<ng-template #menuTemplate>\n\t<ul cdkMenu stPopoverMenuMotion [stPopoverMenuMotionTheme]=\"host\" role=\"menu\" [class]=\"menuClass()\" (closed)=\"onMenuClosed()\" tabindex=\"-1\">\n\t\t<ng-content></ng-content>\n\t</ul>\n</ng-template>\n" }]
112
+ }, exportAs: 'menuBarContent', template: "<ng-template #menuTemplate>\n\t<ul\n\t\tcdkMenu\n\t\tstPopoverMenuMotion\n\t\t[stPopoverMenuMotionTheme]=\"host\"\n\t\tstDropdownMenuKeyboard\n\t\trole=\"menu\"\n\t\t[class]=\"menuClass()\"\n\t\t(closed)=\"onMenuClosed()\"\n\t\ttabindex=\"-1\"\n\t>\n\t\t<ng-content></ng-content>\n\t</ul>\n</ng-template>\n" }]
111
113
  }] });
112
114
 
113
115
  /**
@@ -226,17 +228,21 @@ class DropdownMenuBarItemCheckboxComponent {
226
228
  'menu-disabled pointer-events-none opacity-50': this.disabled(),
227
229
  }, this.class());
228
230
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarItemCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
229
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DropdownMenuBarItemCheckboxComponent, isStandalone: true, selector: "st-dropdown-menu-bar-item-checkbox", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indicator: { classPropertyName: "indicator", publicName: "indicator", isSignal: true, isRequired: false, transformFunction: null }, showIndicator: { classPropertyName: "showIndicator", publicName: "showIndicator", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChanged: "checkedChanged", triggered: "triggered", clicked: "clicked", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace" }, hostDirectives: [{ directive: i1.CdkMenuItemCheckbox, inputs: ["cdkMenuItemChecked", "checked"], outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: "<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\ttabindex=\"0\"\n\trole=\"menuitemcheckbox\"\n\t[attr.aria-checked]=\"checked()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span class=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-checked:opacity-100 group-aria-[checked=false]:opacity-0\">\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" });
231
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DropdownMenuBarItemCheckboxComponent, isStandalone: true, selector: "st-dropdown-menu-bar-item-checkbox", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indicator: { classPropertyName: "indicator", publicName: "indicator", isSignal: true, isRequired: false, transformFunction: null }, showIndicator: { classPropertyName: "showIndicator", publicName: "showIndicator", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChanged: "checkedChanged", triggered: "triggered", clicked: "clicked", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace" }, host: { listeners: { "click": "handleClick($event)", "keydown.enter": "handleKeyDownEnter($event)", "keydown.space": "handleKeyDownSpace($event)" } }, hostDirectives: [{ directive: i1.CdkMenuItemCheckbox, inputs: ["cdkMenuItemChecked", "checked"], outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: "<li [class]=\"itemClass()\" [attr.data-state]=\"dataState()\" role=\"none\">\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-data-[state=checked]:opacity-100 group-data-[state=unchecked]:opacity-0\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" });
230
232
  }
231
233
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarItemCheckboxComponent, decorators: [{
232
234
  type: Component,
233
- args: [{ selector: 'st-dropdown-menu-bar-item-checkbox', standalone: true, imports: [], hostDirectives: [
235
+ args: [{ selector: 'st-dropdown-menu-bar-item-checkbox', standalone: true, imports: [], host: {
236
+ '(click)': 'handleClick($event)',
237
+ '(keydown.enter)': 'handleKeyDownEnter($event)',
238
+ '(keydown.space)': 'handleKeyDownSpace($event)',
239
+ }, hostDirectives: [
234
240
  {
235
241
  directive: CdkMenuItemCheckbox,
236
242
  inputs: ['cdkMenuItemChecked: checked'],
237
243
  outputs: ['cdkMenuItemTriggered: triggered'],
238
244
  },
239
- ], template: "<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\ttabindex=\"0\"\n\trole=\"menuitemcheckbox\"\n\t[attr.aria-checked]=\"checked()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span class=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-checked:opacity-100 group-aria-[checked=false]:opacity-0\">\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" }]
245
+ ], template: "<li [class]=\"itemClass()\" [attr.data-state]=\"dataState()\" role=\"none\">\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-data-[state=checked]:opacity-100 group-data-[state=unchecked]:opacity-0\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" }]
240
246
  }], ctorParameters: () => [] });
241
247
 
242
248
  /**
@@ -365,17 +371,21 @@ class DropdownMenuBarItemRadioComponent {
365
371
  'bg-primary text-primary-content': this.checked() && !this.disabled(),
366
372
  });
367
373
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarItemRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
368
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DropdownMenuBarItemRadioComponent, isStandalone: true, selector: "st-dropdown-menu-bar-item-radio", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indicator: { classPropertyName: "indicator", publicName: "indicator", isSignal: true, isRequired: false, transformFunction: null }, showIndicator: { classPropertyName: "showIndicator", publicName: "showIndicator", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChanged: "checkedChanged", triggered: "triggered", clicked: "clicked", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace" }, hostDirectives: [{ directive: i1.CdkMenuItemRadio, inputs: ["cdkMenuItemChecked", "checked"], outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: "<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\ttabindex=\"0\"\n\trole=\"menuitemradio\"\n\t[attr.aria-checked]=\"checked()\"\n>\n\t<a [class]=\"anchorClass()\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-checked:opacity-100 group-aria-[checked=false]:opacity-0\"\n\t\t\t\t[class.rotate-90]=\"checked()\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" });
374
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DropdownMenuBarItemRadioComponent, isStandalone: true, selector: "st-dropdown-menu-bar-item-radio", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indicator: { classPropertyName: "indicator", publicName: "indicator", isSignal: true, isRequired: false, transformFunction: null }, showIndicator: { classPropertyName: "showIndicator", publicName: "showIndicator", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChanged: "checkedChanged", triggered: "triggered", clicked: "clicked", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace" }, host: { listeners: { "click": "handleClick($event)", "keydown.enter": "handleKeyDownEnter($event)", "keydown.space": "handleKeyDownSpace($event)" } }, hostDirectives: [{ directive: i1.CdkMenuItemRadio, inputs: ["cdkMenuItemChecked", "checked"], outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: "<li [class]=\"itemClass()\" [attr.data-state]=\"dataState()\" role=\"none\">\n\t<a [class]=\"anchorClass()\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-data-[state=checked]:opacity-100 group-data-[state=unchecked]:opacity-0\"\n\t\t\t\t[class.rotate-90]=\"checked()\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" });
369
375
  }
370
376
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarItemRadioComponent, decorators: [{
371
377
  type: Component,
372
- args: [{ selector: 'st-dropdown-menu-bar-item-radio', standalone: true, imports: [], hostDirectives: [
378
+ args: [{ selector: 'st-dropdown-menu-bar-item-radio', standalone: true, imports: [], host: {
379
+ '(click)': 'handleClick($event)',
380
+ '(keydown.enter)': 'handleKeyDownEnter($event)',
381
+ '(keydown.space)': 'handleKeyDownSpace($event)',
382
+ }, hostDirectives: [
373
383
  {
374
384
  directive: CdkMenuItemRadio,
375
385
  inputs: ['cdkMenuItemChecked: checked'],
376
386
  outputs: ['cdkMenuItemTriggered: triggered'],
377
387
  },
378
- ], template: "<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\ttabindex=\"0\"\n\trole=\"menuitemradio\"\n\t[attr.aria-checked]=\"checked()\"\n>\n\t<a [class]=\"anchorClass()\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-checked:opacity-100 group-aria-[checked=false]:opacity-0\"\n\t\t\t\t[class.rotate-90]=\"checked()\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" }]
388
+ ], template: "<li [class]=\"itemClass()\" [attr.data-state]=\"dataState()\" role=\"none\">\n\t<a [class]=\"anchorClass()\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (showIndicator()) {\n\t\t\t<span\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-data-[state=checked]:opacity-100 group-data-[state=unchecked]:opacity-0\"\n\t\t\t\t[class.rotate-90]=\"checked()\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" }]
379
389
  }], ctorParameters: () => [] });
380
390
 
381
391
  /**
@@ -469,16 +479,20 @@ class DropdownMenuBarItemComponent {
469
479
  'menu-active': this.active(),
470
480
  }, this.class());
471
481
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
472
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DropdownMenuBarItemComponent, isStandalone: true, selector: "st-dropdown-menu-bar-item", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, shortcut: { classPropertyName: "shortcut", publicName: "shortcut", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { triggered: "triggered", clicked: "clicked", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace" }, hostDirectives: [{ directive: i1.CdkMenuItem, outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: "<li\n\t[class]=\"itemClass()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\ttabindex=\"0\"\n\trole=\"menuitem\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (shortcut(); as shortcutText) {\n\t\t\t<span class=\"ml-auto text-xs opacity-60\">{{ shortcutText }}</span>\n\t\t}\n\t</a>\n</li>\n" });
482
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: DropdownMenuBarItemComponent, isStandalone: true, selector: "st-dropdown-menu-bar-item", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, shortcut: { classPropertyName: "shortcut", publicName: "shortcut", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { triggered: "triggered", clicked: "clicked", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace" }, host: { listeners: { "click": "handleClick($event)", "keydown.enter": "handleKeyDownEnter($event)", "keydown.space": "handleKeyDownSpace($event)" } }, hostDirectives: [{ directive: i1.CdkMenuItem, outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: "<li [class]=\"itemClass()\" role=\"none\">\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (shortcut(); as shortcutText) {\n\t\t\t<span class=\"ml-auto text-xs opacity-60\">{{ shortcutText }}</span>\n\t\t}\n\t</a>\n</li>\n" });
473
483
  }
474
484
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarItemComponent, decorators: [{
475
485
  type: Component,
476
- args: [{ selector: 'st-dropdown-menu-bar-item', standalone: true, imports: [], hostDirectives: [
486
+ args: [{ selector: 'st-dropdown-menu-bar-item', standalone: true, imports: [], host: {
487
+ '(click)': 'handleClick($event)',
488
+ '(keydown.enter)': 'handleKeyDownEnter($event)',
489
+ '(keydown.space)': 'handleKeyDownSpace($event)',
490
+ }, hostDirectives: [
477
491
  {
478
492
  directive: CdkMenuItem,
479
493
  outputs: ['cdkMenuItemTriggered: triggered'],
480
494
  },
481
- ], template: "<li\n\t[class]=\"itemClass()\"\n\t(click)=\"handleClick($event)\"\n\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\ttabindex=\"0\"\n\trole=\"menuitem\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (shortcut(); as shortcutText) {\n\t\t\t<span class=\"ml-auto text-xs opacity-60\">{{ shortcutText }}</span>\n\t\t}\n\t</a>\n</li>\n" }]
495
+ ], template: "<li [class]=\"itemClass()\" role=\"none\">\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t@if (shortcut(); as shortcutText) {\n\t\t\t<span class=\"ml-auto text-xs opacity-60\">{{ shortcutText }}</span>\n\t\t}\n\t</a>\n</li>\n" }]
482
496
  }] });
483
497
 
484
498
  /**
@@ -492,7 +506,7 @@ class DropdownMenuBarLabelComponent {
492
506
  /**
493
507
  * Computed CSS classes for the label
494
508
  */
495
- labelClass = () => cn('menu-title text-base-content/80 font-semibold', this.class());
509
+ labelClass = () => cn('menu-title text-base-content-secondary font-semibold', this.class());
496
510
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
497
511
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: DropdownMenuBarLabelComponent, isStandalone: true, selector: "st-dropdown-menu-bar-label", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<li [class]=\"labelClass()\">\n\t<ng-content></ng-content>\n</li>\n" });
498
512
  }
@@ -526,11 +540,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
526
540
  */
527
541
  class DropdownMenuBarSubTriggerComponent {
528
542
  elementRef = inject(ElementRef, { optional: true });
529
- /** @internal Placements tagged for the shared popover motion */
530
- menuPositions = popoverMenuPositions();
531
543
  // State
532
544
  isOpen = signal(false);
533
545
  hoverTimeout = null;
546
+ menuTrigger = viewChild.required(CdkMenuTrigger);
547
+ /** @internal Submenus open beside their item */
548
+ menuPositions = STANDARD_DROPDOWN_ADJACENT_POSITIONS;
549
+ constructor() {
550
+ afterNextRender(() => {
551
+ const trigger = this.menuTrigger();
552
+ registerDropdownSubmenuTrigger(trigger, this.itemElement());
553
+ });
554
+ }
555
+ /** @internal ArrowRight opens the submenu beside the item; it, Enter and Space focus its first item */
556
+ onKeydown(event) {
557
+ if (!['ArrowRight', 'Enter', ' '].includes(event.key) || this.disabled())
558
+ return;
559
+ requestDropdownMenuFocus(this.menuTrigger(), 'first');
560
+ if (event.key === 'ArrowRight') {
561
+ event.preventDefault();
562
+ this.menuTrigger().open();
563
+ }
564
+ }
565
+ /** @internal A click opens on the first item */
566
+ onClick() {
567
+ requestDropdownMenuFocus(this.menuTrigger(), 'first');
568
+ }
569
+ itemElement() {
570
+ return (this.elementRef?.nativeElement).querySelector('.cdk-menu-item');
571
+ }
534
572
  // Inputs
535
573
  disabled = input(false, { transform: booleanAttribute });
536
574
  className = input();
@@ -567,14 +605,14 @@ class DropdownMenuBarSubTriggerComponent {
567
605
  }
568
606
  }
569
607
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarSubTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
570
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: DropdownMenuBarSubTriggerComponent, isStandalone: true, selector: "st-dropdown-menu-bar-sub-trigger", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, chevronIcon: { classPropertyName: "chevronIcon", publicName: "chevronIcon", isSignal: true, isRequired: false, transformFunction: null }, menuTriggerFor: { classPropertyName: "menuTriggerFor", publicName: "menuTriggerFor", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: "<li\n\tcdkMenuItem\n\tcdkMenuTrigger\n\t[cdkMenuTriggerFor]=\"menuTriggerFor()\"\n\t[cdkMenuPosition]=\"menuPositions\"\n\t[class]=\"triggerClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(cdkMenuOpened)=\"onMenuOpened()\"\n\t(cdkMenuClosed)=\"onMenuClosed()\"\n\t(mouseenter)=\"onMouseEnter()\"\n\t(mouseleave)=\"onMouseLeave()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t<st-icon [icon]=\"chevronIcon()\" [class]=\"chevronClass()\"></st-icon>\n\t</a>\n</li>\n", dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "directive", type: CdkMenuItem, selector: "[cdkMenuItem]", inputs: ["cdkMenuItemDisabled", "cdkMenuitemTypeaheadLabel"], outputs: ["cdkMenuItemTriggered"], exportAs: ["cdkMenuItem"] }, { kind: "directive", type: CdkMenuTrigger, selector: "[cdkMenuTriggerFor]", inputs: ["cdkMenuTriggerFor", "cdkMenuPosition", "cdkMenuTriggerData"], outputs: ["cdkMenuOpened", "cdkMenuClosed"], exportAs: ["cdkMenuTriggerFor"] }] });
608
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: DropdownMenuBarSubTriggerComponent, isStandalone: true, selector: "st-dropdown-menu-bar-sub-trigger", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, className: { classPropertyName: "className", publicName: "className", isSignal: true, isRequired: false, transformFunction: null }, chevronIcon: { classPropertyName: "chevronIcon", publicName: "chevronIcon", isSignal: true, isRequired: false, transformFunction: null }, menuTriggerFor: { classPropertyName: "menuTriggerFor", publicName: "menuTriggerFor", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, viewQueries: [{ propertyName: "menuTrigger", first: true, predicate: CdkMenuTrigger, descendants: true, isSignal: true }], ngImport: i0, template: "<li\n\tcdkMenuItem\n\t[attr.role]=\"'menuitem'\"\n\ttabindex=\"-1\"\n\tcdkMenuTrigger\n\t[cdkMenuTriggerFor]=\"menuTriggerFor()\"\n\t[cdkMenuPosition]=\"menuPositions\"\n\t[class]=\"triggerClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(cdkMenuOpened)=\"onMenuOpened()\"\n\t(cdkMenuClosed)=\"onMenuClosed()\"\n\t(keydown)=\"onKeydown($event)\"\n\t(click)=\"onClick()\"\n\t(mouseenter)=\"onMouseEnter()\"\n\t(mouseleave)=\"onMouseLeave()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t<st-icon [icon]=\"chevronIcon()\" [class]=\"chevronClass()\"></st-icon>\n\t</a>\n</li>\n", dependencies: [{ kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon", "ariaLabel"] }, { kind: "directive", type: CdkMenuItem, selector: "[cdkMenuItem]", inputs: ["cdkMenuItemDisabled", "cdkMenuitemTypeaheadLabel"], outputs: ["cdkMenuItemTriggered"], exportAs: ["cdkMenuItem"] }, { kind: "directive", type: CdkMenuTrigger, selector: "[cdkMenuTriggerFor]", inputs: ["cdkMenuTriggerFor", "cdkMenuPosition", "cdkMenuTriggerData"], outputs: ["cdkMenuOpened", "cdkMenuClosed"], exportAs: ["cdkMenuTriggerFor"] }] });
571
609
  }
572
610
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarSubTriggerComponent, decorators: [{
573
611
  type: Component,
574
612
  args: [{ selector: 'st-dropdown-menu-bar-sub-trigger', standalone: true, imports: [IconComponent, CdkMenuItem, CdkMenuTrigger], host: {
575
613
  class: 'contents',
576
- }, template: "<li\n\tcdkMenuItem\n\tcdkMenuTrigger\n\t[cdkMenuTriggerFor]=\"menuTriggerFor()\"\n\t[cdkMenuPosition]=\"menuPositions\"\n\t[class]=\"triggerClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(cdkMenuOpened)=\"onMenuOpened()\"\n\t(cdkMenuClosed)=\"onMenuClosed()\"\n\t(mouseenter)=\"onMouseEnter()\"\n\t(mouseleave)=\"onMouseLeave()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t<st-icon [icon]=\"chevronIcon()\" [class]=\"chevronClass()\"></st-icon>\n\t</a>\n</li>\n" }]
577
- }] });
614
+ }, template: "<li\n\tcdkMenuItem\n\t[attr.role]=\"'menuitem'\"\n\ttabindex=\"-1\"\n\tcdkMenuTrigger\n\t[cdkMenuTriggerFor]=\"menuTriggerFor()\"\n\t[cdkMenuPosition]=\"menuPositions\"\n\t[class]=\"triggerClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(cdkMenuOpened)=\"onMenuOpened()\"\n\t(cdkMenuClosed)=\"onMenuClosed()\"\n\t(keydown)=\"onKeydown($event)\"\n\t(click)=\"onClick()\"\n\t(mouseenter)=\"onMouseEnter()\"\n\t(mouseleave)=\"onMouseLeave()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t\t<st-icon [icon]=\"chevronIcon()\" [class]=\"chevronClass()\"></st-icon>\n\t</a>\n</li>\n" }]
615
+ }], ctorParameters: () => [] });
578
616
 
579
617
  /**
580
618
  * DropdownMenuBarTrigger - Trigger element for menu bar items
@@ -586,6 +624,25 @@ class DropdownMenuBarTriggerComponent {
586
624
  // State management
587
625
  isOpen = signal(false);
588
626
  hoverTimeout = null;
627
+ menuTrigger = viewChild.required(CdkMenuTrigger);
628
+ constructor() {
629
+ afterNextRender(() => {
630
+ const item = this.elementRef.nativeElement.querySelector('.cdk-menu-trigger');
631
+ if (item)
632
+ registerDropdownMenuBarTrigger(this.menuTrigger(), item);
633
+ });
634
+ }
635
+ /** @internal Enter, Space and ArrowDown open on the first item, ArrowUp on the last */
636
+ onKeydown(event) {
637
+ if (event.key === 'ArrowUp')
638
+ requestDropdownMenuFocus(this.menuTrigger(), 'last');
639
+ else if (['Enter', ' ', 'ArrowDown'].includes(event.key))
640
+ requestDropdownMenuFocus(this.menuTrigger(), 'first');
641
+ }
642
+ /** @internal A click opens on the first item */
643
+ onClick() {
644
+ requestDropdownMenuFocus(this.menuTrigger(), 'first');
645
+ }
589
646
  /**
590
647
  * Whether the trigger is disabled
591
648
  */
@@ -644,19 +701,28 @@ class DropdownMenuBarTriggerComponent {
644
701
  'disabled pointer-events-none opacity-50': this.disabled(),
645
702
  }, this.class());
646
703
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
647
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: DropdownMenuBarTriggerComponent, isStandalone: true, selector: "st-dropdown-menu-bar-trigger", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, menuTriggerFor: { classPropertyName: "menuTriggerFor", publicName: "menuTriggerFor", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "opened", closed: "closed" }, host: { classAttribute: "contents" }, ngImport: i0, template: "<li\n\tcdkMenuItem\n\tcdkMenuTrigger\n\t[cdkMenuTriggerFor]=\"menuTriggerFor()\"\n\t[cdkMenuPosition]=\"menuPositions\"\n\t[class]=\"triggerClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(cdkMenuOpened)=\"onMenuOpened()\"\n\t(cdkMenuClosed)=\"onMenuClosed()\"\n\t(mouseenter)=\"onMouseEnter()\"\n\t(mouseleave)=\"onMouseLeave()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t</a>\n</li>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: CdkMenuItem, selector: "[cdkMenuItem]", inputs: ["cdkMenuItemDisabled", "cdkMenuitemTypeaheadLabel"], outputs: ["cdkMenuItemTriggered"], exportAs: ["cdkMenuItem"] }, { kind: "directive", type: CdkMenuTrigger, selector: "[cdkMenuTriggerFor]", inputs: ["cdkMenuTriggerFor", "cdkMenuPosition", "cdkMenuTriggerData"], outputs: ["cdkMenuOpened", "cdkMenuClosed"], exportAs: ["cdkMenuTriggerFor"] }] });
704
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.25", type: DropdownMenuBarTriggerComponent, isStandalone: true, selector: "st-dropdown-menu-bar-trigger", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, menuTriggerFor: { classPropertyName: "menuTriggerFor", publicName: "menuTriggerFor", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "opened", closed: "closed" }, host: { classAttribute: "contents" }, viewQueries: [{ propertyName: "menuTrigger", first: true, predicate: CdkMenuTrigger, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- role is bound, not static: the CDK trigger sets role=\"button\" because the menu bar is not its DI parent -->\n<li\n\tcdkMenuItem\n\t[attr.role]=\"'menuitem'\"\n\ttabindex=\"-1\"\n\tcdkMenuTrigger\n\t[cdkMenuTriggerFor]=\"menuTriggerFor()\"\n\t[cdkMenuPosition]=\"menuPositions\"\n\t[class]=\"triggerClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(cdkMenuOpened)=\"onMenuOpened()\"\n\t(cdkMenuClosed)=\"onMenuClosed()\"\n\t(keydown)=\"onKeydown($event)\"\n\t(click)=\"onClick()\"\n\t(mouseenter)=\"onMouseEnter()\"\n\t(mouseleave)=\"onMouseLeave()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t</a>\n</li>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: CdkMenuItem, selector: "[cdkMenuItem]", inputs: ["cdkMenuItemDisabled", "cdkMenuitemTypeaheadLabel"], outputs: ["cdkMenuItemTriggered"], exportAs: ["cdkMenuItem"] }, { kind: "directive", type: CdkMenuTrigger, selector: "[cdkMenuTriggerFor]", inputs: ["cdkMenuTriggerFor", "cdkMenuPosition", "cdkMenuTriggerData"], outputs: ["cdkMenuOpened", "cdkMenuClosed"], exportAs: ["cdkMenuTriggerFor"] }] });
648
705
  }
649
706
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarTriggerComponent, decorators: [{
650
707
  type: Component,
651
708
  args: [{ selector: 'st-dropdown-menu-bar-trigger', standalone: true, imports: [CommonModule, CdkMenuItem, CdkMenuTrigger], host: {
652
709
  class: 'contents',
653
- }, template: "<li\n\tcdkMenuItem\n\tcdkMenuTrigger\n\t[cdkMenuTriggerFor]=\"menuTriggerFor()\"\n\t[cdkMenuPosition]=\"menuPositions\"\n\t[class]=\"triggerClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(cdkMenuOpened)=\"onMenuOpened()\"\n\t(cdkMenuClosed)=\"onMenuClosed()\"\n\t(mouseenter)=\"onMouseEnter()\"\n\t(mouseleave)=\"onMouseLeave()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t</a>\n</li>\n" }]
654
- }] });
710
+ }, template: "<!-- role is bound, not static: the CDK trigger sets role=\"button\" because the menu bar is not its DI parent -->\n<li\n\tcdkMenuItem\n\t[attr.role]=\"'menuitem'\"\n\ttabindex=\"-1\"\n\tcdkMenuTrigger\n\t[cdkMenuTriggerFor]=\"menuTriggerFor()\"\n\t[cdkMenuPosition]=\"menuPositions\"\n\t[class]=\"triggerClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(cdkMenuOpened)=\"onMenuOpened()\"\n\t(cdkMenuClosed)=\"onMenuClosed()\"\n\t(keydown)=\"onKeydown($event)\"\n\t(click)=\"onClick()\"\n\t(mouseenter)=\"onMouseEnter()\"\n\t(mouseleave)=\"onMouseLeave()\"\n>\n\t<a class=\"flex items-center justify-between\">\n\t\t<span class=\"flex-1\">\n\t\t\t<ng-content></ng-content>\n\t\t</span>\n\t</a>\n</li>\n" }]
711
+ }], ctorParameters: () => [] });
655
712
 
656
713
  /**
657
714
  * DropdownMenuBar - Container for horizontal menu bar (like Google Docs)
658
715
  */
659
716
  class DropdownMenuBarComponent {
717
+ /** @internal ArrowLeft/ArrowRight on a top-level item move to the previous/next item, wrapping */
718
+ onKeydown(event) {
719
+ if (event.altKey || event.ctrlKey || event.metaKey)
720
+ return;
721
+ if (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight')
722
+ return;
723
+ if (moveInDropdownMenuBar(event.target, event.key === 'ArrowRight' ? 1 : -1))
724
+ event.preventDefault();
725
+ }
660
726
  /**
661
727
  * Custom CSS classes
662
728
  */
@@ -676,15 +742,16 @@ class DropdownMenuBarComponent {
676
742
  'menu-md': this.size() === 'md',
677
743
  'menu-lg': this.size() === 'lg',
678
744
  'menu-xl': this.size() === 'xl',
679
- 'shadow-main': this.shadow(),
745
+ 'shadow-overlay': this.shadow(),
680
746
  }, this.class());
681
747
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
682
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: DropdownMenuBarComponent, isStandalone: true, selector: "st-dropdown-menu-bar", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, exportAs: ["menuBar"], ngImport: i0, template: "<ul [class]=\"menuBarClass()\" cdkMenuBar>\n\t<ng-content></ng-content>\n</ul>\n", dependencies: [{ kind: "directive", type: CdkMenuBar, selector: "[cdkMenuBar]", exportAs: ["cdkMenuBar"] }] });
748
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: DropdownMenuBarComponent, isStandalone: true, selector: "st-dropdown-menu-bar", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "onKeydown($event)" }, classAttribute: "contents" }, exportAs: ["menuBar"], ngImport: i0, template: "<ul [class]=\"menuBarClass()\" cdkMenuBar>\n\t<ng-content></ng-content>\n</ul>\n", dependencies: [{ kind: "directive", type: CdkMenuBar, selector: "[cdkMenuBar]", exportAs: ["cdkMenuBar"] }] });
683
749
  }
684
750
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DropdownMenuBarComponent, decorators: [{
685
751
  type: Component,
686
752
  args: [{ selector: 'st-dropdown-menu-bar', standalone: true, imports: [CdkMenuBar], host: {
687
753
  class: 'contents',
754
+ '(keydown)': 'onKeydown($event)',
688
755
  }, exportAs: 'menuBar', template: "<ul [class]=\"menuBarClass()\" cdkMenuBar>\n\t<ng-content></ng-content>\n</ul>\n" }]
689
756
  }] });
690
757