@sixbell-telco/sdk 2.0.1 → 2.1.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 (137) hide show
  1. package/CHANGELOG.md +65 -1
  2. package/README.md +37 -3
  3. package/components/accordion/accordion-item/accordion-item.component.d.ts +3 -4
  4. package/components/audio-player/audio-timeline/audio-timeline.component.d.ts +28 -1
  5. package/components/audio-player/src/audio-player.component.d.ts +7 -3
  6. package/components/audio-player/volume-control/volume-control.component.d.ts +28 -1
  7. package/components/button/src/button.component.d.ts +46 -1
  8. package/components/data-table/data-table-empty-actions/data-table-empty-actions.component.d.ts +5 -0
  9. package/components/data-table/public-api.d.ts +1 -0
  10. package/components/data-table/src/data-table.component.d.ts +11 -3
  11. package/components/dialog/src/dialog.component.d.ts +51 -5
  12. package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +2 -1
  13. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +37 -1
  14. package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +33 -1
  15. package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +33 -1
  16. package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +53 -2
  17. package/components/dropdown/src/dropdown.component.d.ts +2 -2
  18. package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +2 -1
  19. package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +33 -1
  20. package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +33 -1
  21. package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +33 -1
  22. package/components/dropdown-menu/src/directives/dropdown-menu.directive.d.ts +1 -3
  23. package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +2 -1
  24. package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +33 -1
  25. package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +2 -1
  26. package/components/dual-list/src/dual-list.component.d.ts +3 -2
  27. package/components/file-upload/file-dropzone/file-dropzone.component.d.ts +46 -1
  28. package/components/file-upload/file-uploader/file-uploader.component.d.ts +33 -2
  29. package/components/forms/checkbox/src/checkbox.component.d.ts +46 -2
  30. package/components/forms/combobox/src/combobox.component.d.ts +40 -5
  31. package/components/forms/date-picker/src/date-picker.component.d.ts +11 -1
  32. package/components/forms/form-group/README.md +114 -0
  33. package/components/forms/form-group/index.d.ts +5 -0
  34. package/components/forms/form-group/public-api.d.ts +1 -0
  35. package/components/forms/form-group/src/form-group.component.d.ts +150 -0
  36. package/components/forms/form-item/README.md +17 -0
  37. package/components/forms/form-item/index.d.ts +5 -0
  38. package/components/forms/form-item/public-api.d.ts +1 -0
  39. package/components/forms/form-item/src/form-item.component.d.ts +5 -0
  40. package/components/forms/input/src/input.component.d.ts +35 -2
  41. package/components/forms/radio/src/radio.component.d.ts +46 -2
  42. package/components/forms/range/src/range.component.d.ts +38 -1
  43. package/components/forms/select/src/select.component.d.ts +40 -5
  44. package/components/forms/switch/src/switch.component.d.ts +46 -2
  45. package/components/forms/textarea/src/textarea.component.d.ts +52 -2
  46. package/components/forms/toggle/src/toggle.component.d.ts +46 -1
  47. package/components/overlay/overlay-content/overlay-content.component.d.ts +2 -1
  48. package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +37 -5
  49. package/components/overlay/src/overlay.component.d.ts +4 -5
  50. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +37 -1
  51. package/components/tab/directives/tab-content/tab-content.directive.d.ts +3 -4
  52. package/components/table/public-api.d.ts +1 -0
  53. package/components/table/src/table.component.d.ts +36 -4
  54. package/components/table/table-empty-actions/table-empty-actions.component.d.ts +5 -0
  55. package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +5 -11
  56. package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +5 -11
  57. package/components/toast/toast-message/toast-message.component.d.ts +42 -1
  58. package/components/tooltip/src/tooltip.component.d.ts +10 -1
  59. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +2 -3
  60. package/directives/auto-focus/src/auto-focus.directive.d.ts +5 -9
  61. package/directives/click-outside/src/click-outside.directive.d.ts +1 -3
  62. package/directives/only-numbers/src/only-numbers.directive.d.ts +0 -1
  63. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +6 -9
  64. package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
  65. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +126 -46
  66. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  67. package/fesm2022/sixbell-telco-sdk-components-button.mjs +78 -4
  68. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  69. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +1 -1
  70. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -1
  71. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +52 -26
  72. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  73. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +82 -12
  74. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  75. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +166 -13
  76. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  77. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +69 -21
  78. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +283 -16
  80. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +6 -4
  82. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +146 -7
  84. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +69 -3
  86. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +96 -19
  88. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +13 -3
  90. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
  92. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs +159 -0
  94. package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs.map +1 -0
  95. package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs +20 -0
  96. package/fesm2022/sixbell-telco-sdk-components-forms-form-item.mjs.map +1 -0
  97. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +51 -5
  98. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +69 -3
  100. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +57 -4
  102. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  103. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +89 -18
  104. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +80 -6
  106. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +113 -6
  108. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  109. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +69 -3
  110. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  111. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +94 -42
  112. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
  113. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +71 -10
  114. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  115. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +5 -9
  116. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  117. package/fesm2022/sixbell-telco-sdk-components-table.mjs +131 -47
  118. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  119. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +69 -4
  120. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +15 -3
  122. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  123. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +4 -4
  124. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  125. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +16 -19
  126. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
  127. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +7 -10
  128. package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -1
  129. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs +6 -9
  130. package/fesm2022/sixbell-telco-sdk-directives-only-numbers.mjs.map +1 -1
  131. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +7 -12
  132. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  133. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +6 -11
  134. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -1
  135. package/package.json +52 -44
  136. package/utils/theme/src/theme-dom/theme-dom.service.d.ts +2 -3
  137. package/utils/translation/src/translation-dom/translation-dom.service.d.ts +2 -3
@@ -1,6 +1,6 @@
1
1
  import { CommonModule } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { input, computed, ChangeDetectionStrategy, Component, signal, contentChild, model, output, inject, viewChild, effect } from '@angular/core';
3
+ import { input, computed, ChangeDetectionStrategy, Component, signal, contentChild, inject, DestroyRef, effect, model, output, viewChild } from '@angular/core';
4
4
  import { cn } from '@sixbell-telco/sdk/utils/cn';
5
5
  import { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';
6
6
  import { Dialog } from '@angular/cdk/dialog';
@@ -124,14 +124,15 @@ class DialogComponent {
124
124
  /** @internal Signals for conditional styling */
125
125
  hasTitle = signal(false);
126
126
  hasSubTitle = signal(false);
127
- ngAfterContentInit() {
128
- const titleInstance = typeof this.titleComponent === 'function' ? this.titleComponent() : this.titleComponent;
129
- const subTitleInstance = typeof this.subTitleComponent === 'function' ? this.subTitleComponent() : this.subTitleComponent;
127
+ destroyRef = inject(DestroyRef);
128
+ contentEffect = effect(() => {
129
+ const titleInstance = this.titleComponent();
130
+ const subTitleInstance = this.subTitleComponent();
130
131
  const hasSub = !!subTitleInstance;
131
132
  this.hasTitle.set(!!titleInstance);
132
133
  this.hasSubTitle.set(hasSub);
133
134
  titleInstance?.setHasSubTitle?.(hasSub);
134
- }
135
+ });
135
136
  /**
136
137
  * Specifies the maximum width of the dialog content
137
138
  * @defaultValue 'md'
@@ -156,6 +157,31 @@ class DialogComponent {
156
157
  closed = output();
157
158
  /** Event emitted when clicking outside the dialog content */
158
159
  clickOutside = output();
160
+ /**
161
+ * Stop event propagation for activation events
162
+ * @defaultValue false
163
+ */
164
+ stopPropagation = input(false);
165
+ /**
166
+ * Event emitted on click
167
+ */
168
+ clicked = output();
169
+ /**
170
+ * Event emitted on pointer down
171
+ */
172
+ pointerDown = output();
173
+ /**
174
+ * Event emitted on Enter keydown
175
+ */
176
+ keyDownEnter = output();
177
+ /**
178
+ * Event emitted on Space keydown
179
+ */
180
+ keyDownSpace = output();
181
+ /**
182
+ * Event emitted on activation (click or keyboard)
183
+ */
184
+ triggered = output();
159
185
  /** @internal CDK Dialog service */
160
186
  dialog = inject(Dialog);
161
187
  /** @internal CDK Overlay service for positioning */
@@ -323,16 +349,13 @@ class DialogComponent {
323
349
  /**
324
350
  * Clean up CDK subscriptions and ensure the overlay is closed when the component is destroyed
325
351
  */
326
- ngOnDestroy() {
327
- // Unsubscribe from any dialog-related observables to prevent handlers running after destroy
352
+ destroyEffect = this.destroyRef.onDestroy(() => {
328
353
  this.subs.unsubscribe();
329
- // If a dialog is still open, close it now. We call close after unsubscribing to avoid
330
- // receiving the closed event while this component is being torn down.
331
354
  if (this.dialogRef) {
332
355
  this.dialogRef.close?.();
333
356
  this.dialogRef = null;
334
357
  }
335
- }
358
+ });
336
359
  /**
337
360
  * Handles the close button click
338
361
  * @internal
@@ -340,12 +363,59 @@ class DialogComponent {
340
363
  handleCloseClick() {
341
364
  this.close();
342
365
  }
366
+ /**
367
+ * @internal
368
+ * Handle click activation
369
+ */
370
+ handleClick(event) {
371
+ if (this.stopPropagation()) {
372
+ event.stopPropagation();
373
+ }
374
+ this.clicked.emit(event);
375
+ this.triggered.emit();
376
+ this.close();
377
+ }
378
+ /**
379
+ * @internal
380
+ * Handle pointer down activation
381
+ */
382
+ handlePointerDown(event) {
383
+ if (this.stopPropagation()) {
384
+ event.stopPropagation();
385
+ }
386
+ this.pointerDown.emit(event);
387
+ }
388
+ /**
389
+ * @internal
390
+ * Handle Enter key activation
391
+ */
392
+ handleKeyDownEnter(event) {
393
+ if (this.stopPropagation()) {
394
+ event.stopPropagation();
395
+ }
396
+ this.keyDownEnter.emit(event);
397
+ this.triggered.emit();
398
+ this.close();
399
+ }
400
+ /**
401
+ * @internal
402
+ * Handle Space key activation
403
+ */
404
+ handleKeyDownSpace(event) {
405
+ event.preventDefault();
406
+ if (this.stopPropagation()) {
407
+ event.stopPropagation();
408
+ }
409
+ this.keyDownSpace.emit(event);
410
+ this.triggered.emit();
411
+ this.close();
412
+ }
343
413
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
344
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.0", type: DialogComponent, isStandalone: true, selector: "st-dialog", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, xPosition: { classPropertyName: "xPosition", publicName: "xPosition", isSignal: true, isRequired: false, transformFunction: null }, yPosition: { classPropertyName: "yPosition", publicName: "yPosition", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "openedChange", closed: "closed", clickOutside: "clickOutside" }, queries: [{ propertyName: "titleComponent", first: true, predicate: DialogTitleComponent, descendants: true, isSignal: true }, { propertyName: "subTitleComponent", first: true, predicate: DialogSubTitleComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<!-- Dialog content with data-driven animations -->\n\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t<!-- Close button -->\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm\" (click)=\"handleCloseClick()\" aria-label=\"Close dialog\">\u2715</button>\n\t\t</div>\n\n\t\t<!-- Content projection -->\n\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\n\t\t<!-- Actions section with spacing -->\n\t\t<div class=\"flex justify-end gap-2 pt-4\">\n\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t</div>\n\t</div>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
414
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.0", type: DialogComponent, isStandalone: true, selector: "st-dialog", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, xPosition: { classPropertyName: "xPosition", publicName: "xPosition", isSignal: true, isRequired: false, transformFunction: null }, yPosition: { classPropertyName: "yPosition", publicName: "yPosition", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, stopPropagation: { classPropertyName: "stopPropagation", publicName: "stopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "openedChange", closed: "closed", clickOutside: "clickOutside", clicked: "clicked", pointerDown: "pointerDown", keyDownEnter: "keyDownEnter", keyDownSpace: "keyDownSpace", triggered: "triggered" }, queries: [{ propertyName: "titleComponent", first: true, predicate: DialogTitleComponent, descendants: true, isSignal: true }, { propertyName: "subTitleComponent", first: true, predicate: DialogSubTitleComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["dialogTemplate"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<!-- Dialog content with data-driven animations -->\n\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t<!-- Close button -->\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button\n\t\t\t\tclass=\"btn btn-circle btn-ghost btn-sm\"\n\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t(click)=\"handleClick($event)\"\n\t\t\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t\t\taria-label=\"Close dialog\"\n\t\t\t>\n\t\t\t\t\u2715\n\t\t\t</button>\n\t\t</div>\n\n\t\t<!-- Content projection -->\n\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\n\t\t<!-- Actions section with spacing -->\n\t\t<div class=\"flex justify-end gap-2 pt-4\">\n\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t</div>\n\t</div>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
345
415
  }
346
416
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DialogComponent, decorators: [{
347
417
  type: Component,
348
- args: [{ selector: 'st-dialog', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<!-- Dialog content with data-driven animations -->\n\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t<!-- Close button -->\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm\" (click)=\"handleCloseClick()\" aria-label=\"Close dialog\">\u2715</button>\n\t\t</div>\n\n\t\t<!-- Content projection -->\n\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\n\t\t<!-- Actions section with spacing -->\n\t\t<div class=\"flex justify-end gap-2 pt-4\">\n\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t</div>\n\t</div>\n</ng-template>\n" }]
418
+ args: [{ selector: 'st-dialog', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<!-- Dialog content with data-driven animations -->\n\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t<!-- Close button -->\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button\n\t\t\t\tclass=\"btn btn-circle btn-ghost btn-sm\"\n\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t(click)=\"handleClick($event)\"\n\t\t\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t\t\taria-label=\"Close dialog\"\n\t\t\t>\n\t\t\t\t\u2715\n\t\t\t</button>\n\t\t</div>\n\n\t\t<!-- Content projection -->\n\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\n\t\t<!-- Actions section with spacing -->\n\t\t<div class=\"flex justify-end gap-2 pt-4\">\n\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\n\t\t</div>\n\t</div>\n</ng-template>\n" }]
349
419
  }] });
350
420
 
351
421
  /**
@@ -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/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// Base table properties\n\talignment = input<ModalActionsAligmentProps>('left');\n\n\tcomponentClass = computed(() =>\n\t\tcn('modal-action text-pretty font-body leading-normal', {\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 { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\tselector: 'st-dialog-sub-title',\n\timports: [CommonModule, TypographyDirective],\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 typography tyFontWeight=\"normal\" tyColor=\"inherit\" tyVariant=\"h6\">\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 { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n@Component({\n\tselector: 'st-dialog-title',\n\timports: [CommonModule, TypographyDirective],\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 typography tyFontWeight=\"medium\" tyColor=\"base\" tyVariant=\"h2\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n","import { Dialog, DialogConfig, DialogRef } from '@angular/cdk/dialog';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport {\n\tAfterContentInit,\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\teffect,\n\tinject,\n\tinput,\n\tmodel,\n\tOnDestroy,\n\toutput,\n\tsignal,\n\tTemplateRef,\n\tviewChild,\n} from '@angular/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\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';\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'data-[state=closed]:animate-exit data-[state=open]:animate-enter',\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},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\twidth: 'md',\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/** Configuration properties for the dialog component */\nexport type DialogProps = {\n\twidth?: DialogWidthProps;\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 * alignment=\"center\"\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 (click)=\"confirmAction()\">Confirm</st-button>\n * <st-button variant=\"secondary\" (click)=\"closeDialog()\">Cancel</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 implements AfterContentInit, OnDestroy {\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\tngAfterContentInit() {\n\t\tconst titleInstance = typeof this.titleComponent === 'function' ? this.titleComponent() : this.titleComponent;\n\t\tconst subTitleInstance = typeof this.subTitleComponent === 'function' ? this.subTitleComponent() : 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 maximum width of the dialog content\n\t * @defaultValue 'md'\n\t */\n\twidth = input<DialogWidthProps>('md');\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/** @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 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/**\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}),\n\t\t);\n\t});\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: ['st-dialog-panel'],\n\t\t\t// Use noop scroll strategy to prevent body scroll changes that affect sticky navbar\n\t\t\tscrollStrategy: this.overlay.scrollStrategies.noop(),\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.dialogTemplate()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.dialogRef = this.dialog.open(this.dialogTemplate()!, this.dialogConfig() 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 * Public method to close the dialog\n\t * Can be called directly from parent components or child components\n\t */\n\tclose() {\n\t\t// If we have an active dialogRef, close it immediately so consumers (and tests)\n\t\t// that spy on dialogRef.close() observe the call.\n\t\tif (this.dialogRef) {\n\t\t\tthis.dialogRef.close();\n\t\t\tthis.dialogRef = null;\n\t\t}\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 * Closes the dialog using CDK Dialog\n\t * @internal\n\t */\n\tprivate closeDialog() {\n\t\tif (this.dialogRef && !this.isClosing) {\n\t\t\t// Set closing flag and closed state for animation\n\t\t\tthis.isClosing = true;\n\t\t\tthis.animationState.set('closed');\n\n\t\t\t// The actual CDK close will be triggered by the animation end event\n\t\t}\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 && this.dialogRef) {\n\t\t\t// Animation finished, now actually close the CDK dialog\n\t\t\tthis.dialogRef.close();\n\t\t}\n\t}\n\n\t/**\n\t * Clean up CDK subscriptions and ensure the overlay is closed when the component is destroyed\n\t */\n\tngOnDestroy(): void {\n\t\t// Unsubscribe from any dialog-related observables to prevent handlers running after destroy\n\t\tthis.subs.unsubscribe();\n\n\t\t// If a dialog is still open, close it now. We call close after unsubscribing to avoid\n\t\t// receiving the closed event while this component is being torn down.\n\t\tif (this.dialogRef) {\n\t\t\tthis.dialogRef.close?.();\n\t\t\tthis.dialogRef = null;\n\t\t}\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","<!-- Dialog template for CDK Dialog -->\n<ng-template #dialogTemplate>\n\t<!-- Dialog content with data-driven animations -->\n\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t<!-- Close button -->\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button class=\"btn btn-circle btn-ghost btn-sm\" (click)=\"handleCloseClick()\" aria-label=\"Close dialog\">✕</button>\n\t\t</div>\n\n\t\t<!-- Content projection -->\n\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\n\t\t<!-- Actions section with spacing -->\n\t\t<div class=\"flex justify-end gap-2 pt-4\">\n\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\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;;AAElC,IAAA,SAAS,GAAG,KAAK,CAA4B,MAAM,CAAC;IAEpD,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;uGAVW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EA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AA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIV,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,WACZ,CAAC,YAAY,CAAC,EAEN,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,m2BAAA,EAAA;;;AE3GhD;;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/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// Base table properties\n\talignment = input<ModalActionsAligmentProps>('left');\n\n\tcomponentClass = computed(() =>\n\t\tcn('modal-action text-pretty font-body leading-normal', {\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 { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\n\n@Component({\n\tselector: 'st-dialog-sub-title',\n\timports: [CommonModule, TypographyDirective],\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 typography tyFontWeight=\"normal\" tyColor=\"inherit\" tyVariant=\"h6\">\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 { TypographyDirective } from '@sixbell-telco/sdk/directives/typography';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\n\n@Component({\n\tselector: 'st-dialog-title',\n\timports: [CommonModule, TypographyDirective],\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 typography tyFontWeight=\"medium\" tyColor=\"base\" tyVariant=\"h2\">\n\t\t<ng-content></ng-content>\n\t</h2>\n</div>\n","import { Dialog, DialogConfig, DialogRef } from '@angular/cdk/dialog';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport {\n\tChangeDetectionStrategy,\n\tComponent,\n\tcomputed,\n\tcontentChild,\n\tDestroyRef,\n\teffect,\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 { 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';\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'data-[state=closed]:animate-exit data-[state=open]:animate-enter',\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},\n\t\tcompoundVariants: [],\n\t\tdefaultVariants: {\n\t\t\twidth: 'md',\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/** Configuration properties for the dialog component */\nexport type DialogProps = {\n\twidth?: DialogWidthProps;\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 * alignment=\"center\"\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 (click)=\"confirmAction()\">Confirm</st-button>\n * <st-button variant=\"secondary\" (click)=\"closeDialog()\">Cancel</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\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 maximum width of the dialog content\n\t * @defaultValue 'md'\n\t */\n\twidth = input<DialogWidthProps>('md');\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<boolean>(false);\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 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/**\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}),\n\t\t);\n\t});\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: ['st-dialog-panel'],\n\t\t\t// Use noop scroll strategy to prevent body scroll changes that affect sticky navbar\n\t\t\tscrollStrategy: this.overlay.scrollStrategies.noop(),\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.dialogTemplate()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.dialogRef = this.dialog.open(this.dialogTemplate()!, this.dialogConfig() 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 * Public method to close the dialog\n\t * Can be called directly from parent components or child components\n\t */\n\tclose() {\n\t\t// If we have an active dialogRef, close it immediately so consumers (and tests)\n\t\t// that spy on dialogRef.close() observe the call.\n\t\tif (this.dialogRef) {\n\t\t\tthis.dialogRef.close();\n\t\t\tthis.dialogRef = null;\n\t\t}\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 * Closes the dialog using CDK Dialog\n\t * @internal\n\t */\n\tprivate closeDialog() {\n\t\tif (this.dialogRef && !this.isClosing) {\n\t\t\t// Set closing flag and closed state for animation\n\t\t\tthis.isClosing = true;\n\t\t\tthis.animationState.set('closed');\n\n\t\t\t// The actual CDK close will be triggered by the animation end event\n\t\t}\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 && this.dialogRef) {\n\t\t\t// Animation finished, now actually close the CDK dialog\n\t\t\tthis.dialogRef.close();\n\t\t}\n\t}\n\n\t/**\n\t * Clean up CDK subscriptions and ensure the overlay is closed when the component is destroyed\n\t */\n\tprivate readonly destroyEffect = this.destroyRef.onDestroy(() => {\n\t\tthis.subs.unsubscribe();\n\t\tif (this.dialogRef) {\n\t\t\tthis.dialogRef.close?.();\n\t\t\tthis.dialogRef = null;\n\t\t}\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<!-- Dialog content with data-driven animations -->\n\t<div [class]=\"componentClass()\" [attr.data-state]=\"dataState()\" (animationend)=\"onAnimationEnd($event)\">\n\t\t<!-- Close button -->\n\t\t<div class=\"absolute top-2 right-2\">\n\t\t\t<button\n\t\t\t\tclass=\"btn btn-circle btn-ghost btn-sm\"\n\t\t\t\t(pointerdown)=\"handlePointerDown($event)\"\n\t\t\t\t(click)=\"handleClick($event)\"\n\t\t\t\t(keydown.enter)=\"handleKeyDownEnter($event)\"\n\t\t\t\t(keydown.space)=\"handleKeyDownSpace($event)\"\n\t\t\t\taria-label=\"Close dialog\"\n\t\t\t>\n\t\t\t\t✕\n\t\t\t</button>\n\t\t</div>\n\n\t\t<!-- Content projection -->\n\t\t<ng-content select=\"st-dialog-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-sub-title\"></ng-content>\n\t\t<ng-content select=\"st-dialog-content\"></ng-content>\n\n\t\t<!-- Actions section with spacing -->\n\t\t<div class=\"flex justify-end gap-2 pt-4\">\n\t\t\t<ng-content select=\"st-dialog-actions\"></ng-content>\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":";;;;;;;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Af,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,u+BAEoB,oBAAoB,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,EAAA,EAAA,YAAA,EAAA,mBAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EACjB,uBAAuB,EC/G1E,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,EAAA,8jCA6BA,2CD2EW,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIV,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,WAAW,WACZ,CAAC,YAAY,CAAC,EAEN,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8jCAAA,EAAA;;;AE1GhD;;AAEG;;;;"}
@@ -1,7 +1,7 @@
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, signal, input, output, computed, TemplateRef, ViewChild, Component, ElementRef } from '@angular/core';
4
+ import { inject, viewChild, signal, input, output, computed, Component, ElementRef } from '@angular/core';
5
5
  import { cn } from '@sixbell-telco/sdk/utils/cn';
6
6
  import { IconComponent } from '@sixbell-telco/sdk/components/icon';
7
7
  import { CommonModule } from '@angular/common';
@@ -11,7 +11,10 @@ import { CommonModule } from '@angular/common';
11
11
  */
12
12
  class DropdownMenuBarContentComponent {
13
13
  menuStack = inject(MENU_STACK, { optional: true });
14
- template;
14
+ templateRef = viewChild.required('menuTemplate');
15
+ get template() {
16
+ return this.templateRef();
17
+ }
15
18
  // State management
16
19
  isOpen = signal(false);
17
20
  isAnimatingOpen = signal(false);
@@ -93,17 +96,14 @@ class DropdownMenuBarContentComponent {
93
96
  'shadow-main': this.shadow(),
94
97
  }, this.class());
95
98
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownMenuBarContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
96
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.0", 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: "template", first: true, predicate: ["menuTemplate"], descendants: true, read: TemplateRef, static: true }], exportAs: ["menuBarContent"], ngImport: i0, template: "<ng-template #menuTemplate>\n\t<ul\n\t\tcdkMenu\n\t\trole=\"menu\"\n\t\t[class]=\"menuClass()\"\n\t\t[attr.data-state]=\"dataState()\"\n\t\t(closed)=\"onMenuClosed()\"\n\t\t(animationend)=\"onAnimationEnd($event)\"\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"] }] });
99
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.0", 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\trole=\"menu\"\n\t\t[class]=\"menuClass()\"\n\t\t[attr.data-state]=\"dataState()\"\n\t\t(closed)=\"onMenuClosed()\"\n\t\t(animationend)=\"onAnimationEnd($event)\"\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"] }] });
97
100
  }
98
101
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownMenuBarContentComponent, decorators: [{
99
102
  type: Component,
100
103
  args: [{ selector: 'st-dropdown-menu-bar-content', standalone: true, imports: [CdkMenu], providers: [PARENT_OR_NEW_MENU_STACK_PROVIDER], host: {
101
104
  '(keydown.escape)': 'onEscapeKey($event)',
102
105
  }, exportAs: 'menuBarContent', template: "<ng-template #menuTemplate>\n\t<ul\n\t\tcdkMenu\n\t\trole=\"menu\"\n\t\t[class]=\"menuClass()\"\n\t\t[attr.data-state]=\"dataState()\"\n\t\t(closed)=\"onMenuClosed()\"\n\t\t(animationend)=\"onAnimationEnd($event)\"\n\t\ttabindex=\"-1\"\n\t>\n\t\t<ng-content></ng-content>\n\t</ul>\n</ng-template>\n" }]
103
- }], propDecorators: { template: [{
104
- type: ViewChild,
105
- args: ['menuTemplate', { static: true, read: TemplateRef }]
106
- }] } });
106
+ }] });
107
107
 
108
108
  /**
109
109
  * DropdownMenuBarItemCheckbox - Checkbox menu item for menu bar
@@ -146,6 +146,23 @@ class DropdownMenuBarItemCheckboxComponent {
146
146
  * Emitted when the menu item is triggered/clicked
147
147
  */
148
148
  triggered = output();
149
+ /**
150
+ * Stop event propagation for activation events
151
+ * @defaultValue false
152
+ */
153
+ stopPropagation = input(false);
154
+ /**
155
+ * Event emitted on click
156
+ */
157
+ clicked = output();
158
+ /**
159
+ * Event emitted on Enter keydown
160
+ */
161
+ keyDownEnter = output();
162
+ /**
163
+ * Event emitted on Space keydown
164
+ */
165
+ keyDownSpace = output();
149
166
  /**
150
167
  * Computed data state for ARIA
151
168
  */
@@ -163,6 +180,40 @@ class DropdownMenuBarItemCheckboxComponent {
163
180
  this.triggered.emit();
164
181
  }
165
182
  }
183
+ /**
184
+ * @internal
185
+ * Handle click activation
186
+ */
187
+ handleClick(event) {
188
+ if (this.stopPropagation()) {
189
+ event.stopPropagation();
190
+ }
191
+ this.clicked.emit(event);
192
+ this.onItemClick();
193
+ }
194
+ /**
195
+ * @internal
196
+ * Handle Enter key activation
197
+ */
198
+ handleKeyDownEnter(event) {
199
+ if (this.stopPropagation()) {
200
+ event.stopPropagation();
201
+ }
202
+ this.keyDownEnter.emit(event);
203
+ this.onItemClick();
204
+ }
205
+ /**
206
+ * @internal
207
+ * Handle Space key activation
208
+ */
209
+ handleKeyDownSpace(event) {
210
+ event.preventDefault();
211
+ if (this.stopPropagation()) {
212
+ event.stopPropagation();
213
+ }
214
+ this.keyDownSpace.emit(event);
215
+ this.onItemClick();
216
+ }
166
217
  /**
167
218
  * Computed CSS classes for the menu item
168
219
  */
@@ -171,7 +222,7 @@ class DropdownMenuBarItemCheckboxComponent {
171
222
  'menu-active': this.checked(),
172
223
  }, this.class());
173
224
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownMenuBarItemCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
174
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", 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 } }, outputs: { checkedChanged: "checkedChanged", triggered: "triggered" }, 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)=\"onItemClick()\"\n\t(keydown.enter)=\"onItemClick()\"\n\t(keydown.space)=\"onItemClick()\"\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\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" });
225
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", 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\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" });
175
226
  }
176
227
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownMenuBarItemCheckboxComponent, decorators: [{
177
228
  type: Component,
@@ -181,7 +232,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
181
232
  inputs: ['cdkMenuItemChecked: checked'],
182
233
  outputs: ['cdkMenuItemTriggered: triggered'],
183
234
  },
184
- ], template: "<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"onItemClick()\"\n\t(keydown.enter)=\"onItemClick()\"\n\t(keydown.space)=\"onItemClick()\"\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\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" }]
235
+ ], 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\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\n\t\t\t>\n\t\t\t\t{{ indicator() }}\n\t\t\t</span>\n\t\t}\n\t</a>\n</li>\n" }]
185
236
  }], ctorParameters: () => [] });
186
237
 
187
238
  /**
@@ -222,6 +273,23 @@ class DropdownMenuBarItemRadioComponent {
222
273
  * Emitted when the menu item is triggered/clicked
223
274
  */
224
275
  triggered = output();
276
+ /**
277
+ * Stop event propagation for activation events
278
+ * @defaultValue false
279
+ */
280
+ stopPropagation = input(false);
281
+ /**
282
+ * Event emitted on click
283
+ */
284
+ clicked = output();
285
+ /**
286
+ * Event emitted on Enter keydown
287
+ */
288
+ keyDownEnter = output();
289
+ /**
290
+ * Event emitted on Space keydown
291
+ */
292
+ keyDownSpace = output();
225
293
  /**
226
294
  * Watch for changes to checked input
227
295
  */
@@ -245,6 +313,40 @@ class DropdownMenuBarItemRadioComponent {
245
313
  this.triggered.emit();
246
314
  }
247
315
  }
316
+ /**
317
+ * @internal
318
+ * Handle click activation
319
+ */
320
+ handleClick(event) {
321
+ if (this.stopPropagation()) {
322
+ event.stopPropagation();
323
+ }
324
+ this.clicked.emit(event);
325
+ this.onItemClick();
326
+ }
327
+ /**
328
+ * @internal
329
+ * Handle Enter key activation
330
+ */
331
+ handleKeyDownEnter(event) {
332
+ if (this.stopPropagation()) {
333
+ event.stopPropagation();
334
+ }
335
+ this.keyDownEnter.emit(event);
336
+ this.onItemClick();
337
+ }
338
+ /**
339
+ * @internal
340
+ * Handle Space key activation
341
+ */
342
+ handleKeyDownSpace(event) {
343
+ event.preventDefault();
344
+ if (this.stopPropagation()) {
345
+ event.stopPropagation();
346
+ }
347
+ this.keyDownSpace.emit(event);
348
+ this.onItemClick();
349
+ }
248
350
  /**
249
351
  * Computed CSS classes for the menu item
250
352
  */
@@ -253,7 +355,7 @@ class DropdownMenuBarItemRadioComponent {
253
355
  'menu-active': this.checked(),
254
356
  }, this.class());
255
357
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownMenuBarItemRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
256
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", 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 } }, outputs: { checkedChanged: "checkedChanged", triggered: "triggered" }, 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)=\"onItemClick()\"\n\t(keydown.enter)=\"onItemClick()\"\n\t(keydown.space)=\"onItemClick()\"\n\ttabindex=\"0\"\n\trole=\"menuitemradio\"\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\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\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" });
358
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", 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=\"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-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\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" });
257
359
  }
258
360
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownMenuBarItemRadioComponent, decorators: [{
259
361
  type: Component,
@@ -263,7 +365,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
263
365
  inputs: ['cdkMenuItemChecked: checked'],
264
366
  outputs: ['cdkMenuItemTriggered: triggered'],
265
367
  },
266
- ], template: "<li\n\t[class]=\"itemClass()\"\n\t[attr.data-state]=\"dataState()\"\n\t(click)=\"onItemClick()\"\n\t(keydown.enter)=\"onItemClick()\"\n\t(keydown.space)=\"onItemClick()\"\n\ttabindex=\"0\"\n\trole=\"menuitemradio\"\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\n\t\t\t\tclass=\"ml-auto text-xs transition-opacity duration-300 ease-in-out group-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\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" }]
368
+ ], 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=\"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-aria-[checked=false]:opacity-0 group-aria-[checked=true]:opacity-100\"\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" }]
267
369
  }], ctorParameters: () => [] });
268
370
 
269
371
  /**
@@ -290,6 +392,23 @@ class DropdownMenuBarItemComponent {
290
392
  * Emitted when the menu item is triggered/clicked
291
393
  */
292
394
  triggered = output();
395
+ /**
396
+ * Stop event propagation for activation events
397
+ * @defaultValue false
398
+ */
399
+ stopPropagation = input(false);
400
+ /**
401
+ * Event emitted on click
402
+ */
403
+ clicked = output();
404
+ /**
405
+ * Event emitted on Enter keydown
406
+ */
407
+ keyDownEnter = output();
408
+ /**
409
+ * Event emitted on Space keydown
410
+ */
411
+ keyDownSpace = output();
293
412
  /**
294
413
  * Handle item click
295
414
  */
@@ -298,6 +417,40 @@ class DropdownMenuBarItemComponent {
298
417
  this.triggered.emit();
299
418
  }
300
419
  }
420
+ /**
421
+ * @internal
422
+ * Handle click activation
423
+ */
424
+ handleClick(event) {
425
+ if (this.stopPropagation()) {
426
+ event.stopPropagation();
427
+ }
428
+ this.clicked.emit(event);
429
+ this.onItemClick();
430
+ }
431
+ /**
432
+ * @internal
433
+ * Handle Enter key activation
434
+ */
435
+ handleKeyDownEnter(event) {
436
+ if (this.stopPropagation()) {
437
+ event.stopPropagation();
438
+ }
439
+ this.keyDownEnter.emit(event);
440
+ this.onItemClick();
441
+ }
442
+ /**
443
+ * @internal
444
+ * Handle Space key activation
445
+ */
446
+ handleKeyDownSpace(event) {
447
+ event.preventDefault();
448
+ if (this.stopPropagation()) {
449
+ event.stopPropagation();
450
+ }
451
+ this.keyDownSpace.emit(event);
452
+ this.onItemClick();
453
+ }
301
454
  /**
302
455
  * Computed CSS classes for the menu item
303
456
  */
@@ -306,7 +459,7 @@ class DropdownMenuBarItemComponent {
306
459
  'menu-active': this.active(),
307
460
  }, this.class());
308
461
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownMenuBarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
309
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", 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 } }, outputs: { triggered: "triggered" }, hostDirectives: [{ directive: i1.CdkMenuItem, outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: "<li [class]=\"itemClass()\" (click)=\"onItemClick()\" (keydown.enter)=\"onItemClick()\" (keydown.space)=\"onItemClick()\" tabindex=\"0\" role=\"menuitem\">\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" });
462
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.0", 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" });
310
463
  }
311
464
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DropdownMenuBarItemComponent, decorators: [{
312
465
  type: Component,
@@ -315,7 +468,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
315
468
  directive: CdkMenuItem,
316
469
  outputs: ['cdkMenuItemTriggered: triggered'],
317
470
  },
318
- ], template: "<li [class]=\"itemClass()\" (click)=\"onItemClick()\" (keydown.enter)=\"onItemClick()\" (keydown.space)=\"onItemClick()\" tabindex=\"0\" role=\"menuitem\">\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" }]
471
+ ], 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" }]
319
472
  }] });
320
473
 
321
474
  /**