@sixbell-telco/sdk 1.0.3 → 1.2.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 (103) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/README.md +641 -163
  3. package/_index.css +85 -28
  4. package/components/avatar/src/avatar.component.d.ts +40 -26
  5. package/components/badge/src/badge.component.d.ts +0 -4
  6. package/components/button/src/button.component.d.ts +2 -2
  7. package/components/dialog/dialog-actions/dialog-actions.component.d.ts +8 -0
  8. package/components/dialog/dialog-content/dialog-content.component.d.ts +5 -0
  9. package/components/dialog/dialog-sub-title/dialog-sub-title.component.d.ts +5 -0
  10. package/components/dialog/dialog-title/dialog-title.component.d.ts +5 -0
  11. package/components/dialog/index.d.ts +5 -0
  12. package/components/dialog/public-api.d.ts +5 -0
  13. package/components/dialog/src/dialog.component.d.ts +132 -0
  14. package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +39 -0
  15. package/components/dropdown/dropdown-content/dropdown-content.component.d.ts +41 -0
  16. package/components/dropdown/dropdown-group/dropdown-group.component.d.ts +9 -0
  17. package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +23 -12
  18. package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +49 -0
  19. package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +53 -0
  20. package/components/dropdown/dropdown-label/dropdown-label.component.d.ts +17 -0
  21. package/components/dropdown/dropdown-separator/dropdown-separator.component.d.ts +21 -0
  22. package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +121 -0
  23. package/components/dropdown/public-api.d.ts +9 -0
  24. package/components/dropdown/src/dropdown.component.d.ts +20 -174
  25. package/components/dropdown/src/services/dropdown.service.d.ts +22 -0
  26. package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +22 -0
  27. package/components/dropdown-menu/bar/dropdown-menu-bar-content/dropdown-menu-bar-content.component.d.ts +64 -0
  28. package/components/dropdown-menu/bar/dropdown-menu-bar-item/dropdown-menu-bar-item.component.d.ts +37 -0
  29. package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +54 -0
  30. package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +58 -0
  31. package/components/dropdown-menu/bar/dropdown-menu-bar-label/dropdown-menu-bar-label.component.d.ts +16 -0
  32. package/components/dropdown-menu/bar/dropdown-menu-bar-separator/dropdown-menu-bar-separator.component.d.ts +16 -0
  33. package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +29 -0
  34. package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +50 -0
  35. package/components/dropdown-menu/bar/index.d.ts +5 -0
  36. package/components/dropdown-menu/bar/public-api.d.ts +9 -0
  37. package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +23 -0
  38. package/components/dropdown-menu/context/index.d.ts +5 -0
  39. package/components/dropdown-menu/context/public-api.d.ts +1 -0
  40. package/components/dropdown-menu/dropdown-menu-chevron/dropdown-menu-chevron.component.d.ts +43 -0
  41. package/components/dropdown-menu/index.d.ts +5 -0
  42. package/components/dropdown-menu/public-api.d.ts +13 -0
  43. package/components/dropdown-menu/src/directives/dropdown-menu.directive.d.ts +40 -0
  44. package/components/dropdown-menu/src/dropdown-menu/dropdown-menu.component.d.ts +9 -0
  45. package/components/dropdown-menu/src/dropdown-menu-content/dropdown-menu-content.component.d.ts +40 -0
  46. package/components/dropdown-menu/src/dropdown-menu-group/dropdown-menu-group.component.d.ts +8 -0
  47. package/components/dropdown-menu/src/dropdown-menu-item/dropdown-menu-item.component.d.ts +38 -0
  48. package/components/dropdown-menu/src/dropdown-menu-label/dropdown-menu-label.component.d.ts +16 -0
  49. package/components/dropdown-menu/src/dropdown-menu-separator/dropdown-menu-separator.component.d.ts +16 -0
  50. package/components/dropdown-menu/src/dropdown-menu-sub/dropdown-menu-sub.component.d.ts +8 -0
  51. package/components/dropdown-menu/src/dropdown-menu-sub-content/dropdown-menu-sub-content.component.d.ts +31 -0
  52. package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +18 -0
  53. package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +19 -0
  54. package/components/dropdown-menu/src/services/dropdown-menu.service.d.ts +22 -0
  55. package/directives/auto-focus/src/autofocus.directive.d.ts +3 -3
  56. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +75 -39
  57. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  58. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +1 -1
  59. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  60. package/fesm2022/sixbell-telco-sdk-components-button.mjs +1 -0
  61. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  62. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +305 -0
  63. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -0
  64. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +529 -0
  65. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -0
  66. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +52 -0
  67. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -0
  68. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +539 -0
  69. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -0
  70. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +592 -213
  71. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  72. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +5 -2
  73. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  74. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
  75. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  76. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
  77. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  78. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +2 -2
  79. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  80. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs +3 -3
  81. package/fesm2022/sixbell-telco-sdk-directives-auto-focus.mjs.map +1 -1
  82. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +295 -0
  83. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -0
  84. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs +332 -0
  85. package/fesm2022/sixbell-telco-sdk-utils-translation.mjs.map +1 -0
  86. package/package.json +29 -9
  87. package/sixbell-telco-sdk-1.2.0.tgz +0 -0
  88. package/utils/theme/README.md +185 -0
  89. package/{components/modal → utils/theme}/index.d.ts +1 -1
  90. package/utils/theme/public-api.d.ts +1 -0
  91. package/utils/theme/src/theme.service.d.ts +206 -0
  92. package/utils/translation/README.md +274 -0
  93. package/utils/translation/index.d.ts +5 -0
  94. package/utils/translation/public-api.d.ts +5 -0
  95. package/utils/translation/src/translation.service.d.ts +197 -0
  96. package/components/modal/modal-actions/modal-actions.component.d.ts +0 -8
  97. package/components/modal/modal-content/modal-content.component.d.ts +0 -5
  98. package/components/modal/modal-title/modal-title.component.d.ts +0 -5
  99. package/components/modal/public-api.d.ts +0 -4
  100. package/components/modal/src/modal.component.d.ts +0 -102
  101. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +0 -202
  102. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +0 -1
  103. package/sixbell-telco-sdk-1.0.3.tgz +0 -0
@@ -0,0 +1,37 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/cdk/menu";
3
+ /**
4
+ * DropdownMenuBarItem - Regular menu item for menu bar
5
+ */
6
+ export declare class DropdownMenuBarItemComponent {
7
+ /**
8
+ * Whether the menu item is disabled
9
+ */
10
+ disabled: import("@angular/core").InputSignal<boolean>;
11
+ /**
12
+ * Whether the menu item is active
13
+ */
14
+ active: import("@angular/core").InputSignal<boolean>;
15
+ /**
16
+ * Optional keyboard shortcut text
17
+ */
18
+ shortcut: import("@angular/core").InputSignal<string | undefined>;
19
+ /**
20
+ * Custom CSS classes
21
+ */
22
+ class: import("@angular/core").InputSignal<string>;
23
+ /**
24
+ * Emitted when the menu item is triggered/clicked
25
+ */
26
+ triggered: import("@angular/core").OutputEmitterRef<void>;
27
+ /**
28
+ * Handle item click
29
+ */
30
+ onItemClick(): void;
31
+ /**
32
+ * Computed CSS classes for the menu item
33
+ */
34
+ itemClass: () => string;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuBarItemComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuBarItemComponent, "st-dropdown-menu-bar-item", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "shortcut": { "alias": "shortcut"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "triggered": "triggered"; }, never, ["*"], true, [{ directive: typeof i1.CdkMenuItem; inputs: {}; outputs: { "cdkMenuItemTriggered": "triggered"; }; }]>;
37
+ }
@@ -0,0 +1,54 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/cdk/menu";
3
+ /**
4
+ * DropdownMenuBarItemCheckbox - Checkbox menu item for menu bar
5
+ */
6
+ export declare class DropdownMenuBarItemCheckboxComponent {
7
+ private readonly isChecked;
8
+ /**
9
+ * Whether the checkbox is checked
10
+ */
11
+ checked: import("@angular/core").InputSignal<boolean>;
12
+ /**
13
+ * Watch for changes to checked input
14
+ */
15
+ constructor();
16
+ /**
17
+ * Whether the menu item is disabled
18
+ */
19
+ disabled: import("@angular/core").InputSignal<boolean>;
20
+ /**
21
+ * Custom indicator character or text
22
+ */
23
+ indicator: import("@angular/core").InputSignal<string>;
24
+ /**
25
+ * Whether to show the indicator
26
+ */
27
+ showIndicator: import("@angular/core").InputSignal<boolean>;
28
+ /**
29
+ * Custom CSS classes
30
+ */
31
+ class: import("@angular/core").InputSignal<string>;
32
+ /**
33
+ * Emitted when the checkbox state changes
34
+ */
35
+ checkedChange: import("@angular/core").OutputEmitterRef<boolean>;
36
+ /**
37
+ * Emitted when the menu item is triggered/clicked
38
+ */
39
+ triggered: import("@angular/core").OutputEmitterRef<void>;
40
+ /**
41
+ * Computed data state for ARIA
42
+ */
43
+ dataState: import("@angular/core").Signal<"checked" | "unchecked">;
44
+ /**
45
+ * Handle item click - toggle checkbox state
46
+ */
47
+ onItemClick(): void;
48
+ /**
49
+ * Computed CSS classes for the menu item
50
+ */
51
+ itemClass: () => string;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuBarItemCheckboxComponent, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuBarItemCheckboxComponent, "st-dropdown-menu-bar-item-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; "triggered": "triggered"; }, never, ["*"], true, [{ directive: typeof i1.CdkMenuItemCheckbox; inputs: { "cdkMenuItemChecked": "checked"; }; outputs: { "cdkMenuItemTriggered": "triggered"; }; }]>;
54
+ }
@@ -0,0 +1,58 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/cdk/menu";
3
+ /**
4
+ * DropdownMenuBarItemRadio - Radio menu item for menu bar
5
+ */
6
+ export declare class DropdownMenuBarItemRadioComponent {
7
+ private readonly isChecked;
8
+ /**
9
+ * Whether the radio is checked
10
+ */
11
+ checked: import("@angular/core").InputSignal<boolean>;
12
+ /**
13
+ * The value of this radio item
14
+ */
15
+ value: import("@angular/core").InputSignal<string>;
16
+ /**
17
+ * Whether the menu item is disabled
18
+ */
19
+ disabled: import("@angular/core").InputSignal<boolean>;
20
+ /**
21
+ * Custom indicator character or text
22
+ */
23
+ indicator: import("@angular/core").InputSignal<string>;
24
+ /**
25
+ * Whether to show the indicator
26
+ */
27
+ showIndicator: import("@angular/core").InputSignal<boolean>;
28
+ /**
29
+ * Custom CSS classes
30
+ */
31
+ class: import("@angular/core").InputSignal<string>;
32
+ /**
33
+ * Emitted when the radio state changes
34
+ */
35
+ checkedChange: import("@angular/core").OutputEmitterRef<string>;
36
+ /**
37
+ * Emitted when the menu item is triggered/clicked
38
+ */
39
+ triggered: import("@angular/core").OutputEmitterRef<void>;
40
+ /**
41
+ * Watch for changes to checked input
42
+ */
43
+ constructor();
44
+ /**
45
+ * Computed data state for ARIA
46
+ */
47
+ dataState: import("@angular/core").Signal<"checked" | "unchecked">;
48
+ /**
49
+ * Handle item click - select this radio option
50
+ */
51
+ onItemClick(): void;
52
+ /**
53
+ * Computed CSS classes for the menu item
54
+ */
55
+ itemClass: () => string;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuBarItemRadioComponent, never>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuBarItemRadioComponent, "st-dropdown-menu-bar-item-radio", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indicator": { "alias": "indicator"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; "triggered": "triggered"; }, never, ["*"], true, [{ directive: typeof i1.CdkMenuItemRadio; inputs: { "cdkMenuItemChecked": "checked"; }; outputs: { "cdkMenuItemTriggered": "triggered"; }; }]>;
58
+ }
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * DropdownMenuBarLabel - Label for menu bar sections
4
+ */
5
+ export declare class DropdownMenuBarLabelComponent {
6
+ /**
7
+ * Custom CSS classes
8
+ */
9
+ class: import("@angular/core").InputSignal<string>;
10
+ /**
11
+ * Computed CSS classes for the label
12
+ */
13
+ labelClass: () => string;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuBarLabelComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuBarLabelComponent, "st-dropdown-menu-bar-label", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
16
+ }
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * DropdownMenuBarSeparator - Visual separator between menu bar sections
4
+ */
5
+ export declare class DropdownMenuBarSeparatorComponent {
6
+ /**
7
+ * Custom CSS classes
8
+ */
9
+ class: import("@angular/core").InputSignal<string>;
10
+ /**
11
+ * Computed CSS classes for the separator
12
+ */
13
+ separatorClass: () => string;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuBarSeparatorComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuBarSeparatorComponent, "st-dropdown-menu-bar-separator", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
16
+ }
@@ -0,0 +1,29 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * DropdownMenuBarSubTrigger - Trigger for opening a submenu in menu bar
5
+ */
6
+ export declare class DropdownMenuBarSubTriggerComponent {
7
+ private readonly elementRef;
8
+ private readonly isOpen;
9
+ private hoverTimeout;
10
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
11
+ readonly className: import("@angular/core").InputSignal<string | undefined>;
12
+ readonly chevronIcon: import("@angular/core").InputSignal<string>;
13
+ /**
14
+ * Menu template reference for the clean API (menuTriggerFor)
15
+ */
16
+ menuTriggerFor: import("@angular/core").InputSignal<TemplateRef<unknown> | null>;
17
+ /**
18
+ * Computed data state for ARIA
19
+ */
20
+ dataState: import("@angular/core").Signal<"closed" | "open">;
21
+ readonly triggerClass: import("@angular/core").Signal<string>;
22
+ readonly chevronClass: import("@angular/core").Signal<string>;
23
+ onMenuOpened(): void;
24
+ onMenuClosed(): void;
25
+ onMouseEnter(): void;
26
+ onMouseLeave(): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuBarSubTriggerComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuBarSubTriggerComponent, "st-dropdown-menu-bar-sub-trigger", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "chevronIcon": { "alias": "chevronIcon"; "required": false; "isSignal": true; }; "menuTriggerFor": { "alias": "menuTriggerFor"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
29
+ }
@@ -0,0 +1,50 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * DropdownMenuBarTrigger - Trigger element for menu bar items
5
+ */
6
+ export declare class DropdownMenuBarTriggerComponent {
7
+ private readonly elementRef;
8
+ private readonly isOpen;
9
+ private hoverTimeout;
10
+ /**
11
+ * Whether the trigger is disabled
12
+ */
13
+ disabled: import("@angular/core").InputSignal<boolean>;
14
+ /**
15
+ * Menu template reference for the clean API (menuTriggerFor)
16
+ */
17
+ menuTriggerFor: import("@angular/core").InputSignal<TemplateRef<unknown> | null>;
18
+ /**
19
+ * Custom CSS classes
20
+ */
21
+ class: import("@angular/core").InputSignal<string>;
22
+ /**
23
+ * Emitted when menu is opened
24
+ */
25
+ opened: import("@angular/core").OutputEmitterRef<void>;
26
+ /**
27
+ * Emitted when menu is closed
28
+ */
29
+ closed: import("@angular/core").OutputEmitterRef<void>;
30
+ /**
31
+ * Computed data state for ARIA attributes
32
+ */
33
+ dataState: import("@angular/core").Signal<"closed" | "open">;
34
+ /**
35
+ * Handle menu opened
36
+ */
37
+ onMenuOpened(): void;
38
+ /**
39
+ * Handle menu closed
40
+ */
41
+ onMenuClosed(): void;
42
+ onMouseEnter(): void;
43
+ onMouseLeave(): void;
44
+ /**
45
+ * Computed CSS classes for the trigger
46
+ */
47
+ triggerClass: () => string;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuBarTriggerComponent, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuBarTriggerComponent, "st-dropdown-menu-bar-trigger", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "menuTriggerFor": { "alias": "menuTriggerFor"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; }, never, ["*"], true, never>;
50
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sixbell-telco/sdk/components/dropdown-menu/bar" />
5
+ export * from './public-api';
@@ -0,0 +1,9 @@
1
+ export * from './dropdown-menu-bar-content/dropdown-menu-bar-content.component';
2
+ export * from './dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component';
3
+ export * from './dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component';
4
+ export * from './dropdown-menu-bar-item/dropdown-menu-bar-item.component';
5
+ export * from './dropdown-menu-bar-label/dropdown-menu-bar-label.component';
6
+ export * from './dropdown-menu-bar-separator/dropdown-menu-bar-separator.component';
7
+ export * from './dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component';
8
+ export * from './dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component';
9
+ export * from './dropdown-menu-bar/dropdown-menu-bar.component';
@@ -0,0 +1,23 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/cdk/menu";
3
+ /**
4
+ * DropdownContextMenuTrigger - Trigger for context menu (right-click)
5
+ */
6
+ export declare class DropdownContextMenuTriggerComponent {
7
+ private readonly document;
8
+ private originalBodyOverflow;
9
+ /**
10
+ * Whether the context menu is disabled
11
+ */
12
+ disabled: import("@angular/core").InputSignal<boolean>;
13
+ /**
14
+ * Handle menu opened - prevent body scroll
15
+ */
16
+ onMenuOpened(): void;
17
+ /**
18
+ * Handle menu closed - restore body scroll
19
+ */
20
+ onMenuClosed(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownContextMenuTriggerComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownContextMenuTriggerComponent, "st-dropdown-context-menu-trigger", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.CdkContextMenuTrigger; inputs: { "cdkContextMenuTriggerFor": "menuTriggerFor"; }; outputs: { "cdkContextMenuOpened": "opened"; "cdkContextMenuClosed": "closed"; }; }]>;
23
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sixbell-telco/sdk/components/dropdown-menu/context" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './dropdown-context-menu-trigger/dropdown-context-menu-trigger.component';
@@ -0,0 +1,43 @@
1
+ import { IconColorProps, IconSizeProps } from '@sixbell-telco/sdk/components/icon';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * DropdownMenuChevron - Chevron indicator for dropdown menu triggers (especially submenus)
5
+ * Automatically rotates based on menu state
6
+ */
7
+ export declare class DropdownMenuChevronComponent {
8
+ private readonly dropdownMenuService;
9
+ /**
10
+ * Custom icon to use instead of default chevron right
11
+ */
12
+ icon: import("@angular/core").InputSignal<string>;
13
+ /**
14
+ * Additional CSS classes
15
+ */
16
+ class: import("@angular/core").InputSignal<string>;
17
+ /**
18
+ * Size of the chevron using Icon component size types
19
+ */
20
+ size: import("@angular/core").InputSignal<IconSizeProps>;
21
+ /**
22
+ * Color of the chevron using Icon component color types
23
+ */
24
+ color: import("@angular/core").InputSignal<IconColorProps>;
25
+ /**
26
+ * Position relative to content
27
+ */
28
+ position: import("@angular/core").InputSignal<"left" | "right">;
29
+ /**
30
+ * Whether the menu is open (for rotation) - now uses service or input
31
+ */
32
+ isOpen: import("@angular/core").InputSignal<boolean>;
33
+ /**
34
+ * Computed open state that uses service first, then input
35
+ */
36
+ private readonly computedIsOpen;
37
+ /**
38
+ * Computed classes for the chevron
39
+ */
40
+ readonly chevronClasses: import("@angular/core").Signal<string>;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuChevronComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuChevronComponent, "st-dropdown-menu-chevron", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
43
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sixbell-telco/sdk/components/dropdown-menu" />
5
+ export * from './public-api';
@@ -0,0 +1,13 @@
1
+ export * from './dropdown-menu-chevron/dropdown-menu-chevron.component';
2
+ export * from './src/dropdown-menu-content/dropdown-menu-content.component';
3
+ export * from './src/dropdown-menu-group/dropdown-menu-group.component';
4
+ export * from './src/dropdown-menu-item/dropdown-menu-item.component';
5
+ export * from './src/dropdown-menu-label/dropdown-menu-label.component';
6
+ export * from './src/dropdown-menu-separator/dropdown-menu-separator.component';
7
+ export * from './src/dropdown-menu-sub-content/dropdown-menu-sub-content.component';
8
+ export * from './src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component';
9
+ export * from './src/dropdown-menu-sub/dropdown-menu-sub.component';
10
+ export * from './src/dropdown-menu-trigger/dropdown-menu-trigger.component';
11
+ export * from './src/dropdown-menu/dropdown-menu.component';
12
+ export * from './src/services/dropdown-menu.service';
13
+ export * from './src/directives/dropdown-menu.directive';
@@ -0,0 +1,40 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Directive to mark an element as dropdown menu content
5
+ * This allows the trigger to reference the content without ng-template
6
+ */
7
+ export declare class DropdownMenuContentDirective {
8
+ elementRef: ElementRef;
9
+ /**
10
+ * Unique identifier for this menu content
11
+ */
12
+ contentId: import("@angular/core").InputSignal<string>;
13
+ constructor(elementRef: ElementRef);
14
+ /**
15
+ * Get the native element for CDK menu trigger
16
+ */
17
+ get element(): HTMLElement;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuContentDirective, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownMenuContentDirective, "[stDropdownMenuContent]", ["dropdownMenuContent"], { "contentId": { "alias": "contentId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
20
+ }
21
+ /**
22
+ * Service to manage dropdown menu content references
23
+ */
24
+ export declare class DropdownMenuService {
25
+ private readonly contentRegistry;
26
+ /**
27
+ * Register a menu content directive
28
+ */
29
+ registerContent(id: string, directive: DropdownMenuContentDirective): void;
30
+ /**
31
+ * Unregister a menu content directive
32
+ */
33
+ unregisterContent(id: string): void;
34
+ /**
35
+ * Get a registered menu content by ID
36
+ */
37
+ getContent(id: string): DropdownMenuContentDirective | undefined;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuService, never>;
39
+ static ɵprov: i0.ɵɵInjectableDeclaration<DropdownMenuService>;
40
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * DropdownMenu - Container component that provides the menu context
4
+ * Provides a shared MENU_STACK for all nested menus and DropdownMenuStateService for state management
5
+ */
6
+ export declare class DropdownMenuComponent {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuComponent, "st-dropdown-menu", never, {}, {}, never, ["*"], true, never>;
9
+ }
@@ -0,0 +1,40 @@
1
+ import { AfterViewInit, TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * DropdownMenuContent - Container for dropdown menu items
5
+ */
6
+ export declare class DropdownMenuContentComponent implements AfterViewInit {
7
+ private readonly menuStack;
8
+ template: TemplateRef<unknown>;
9
+ ngAfterViewInit(): void;
10
+ /**
11
+ * Custom CSS classes
12
+ */
13
+ class: import("@angular/core").InputSignal<string>;
14
+ /**
15
+ * Size variant
16
+ */
17
+ size: import("@angular/core").InputSignal<"xs" | "sm" | "md" | "lg" | "xl">;
18
+ /**
19
+ * Emitted when the menu is closed
20
+ */
21
+ closed: import("@angular/core").OutputEmitterRef<void>;
22
+ /**
23
+ * Handle ESC key press
24
+ */
25
+ onEscapeKey(event: KeyboardEvent): void;
26
+ /**
27
+ * Handle menu closed event
28
+ */
29
+ onMenuClosed(): void;
30
+ /**
31
+ * Close this menu and all child menus
32
+ */
33
+ closeMenu(): void;
34
+ /**
35
+ * Computed CSS classes for the menu
36
+ */
37
+ menuClass: () => string;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuContentComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuContentComponent, "st-dropdown-menu-content", ["menuContent"], { "class": { "alias": "class"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
40
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * DropdownMenuGroup - Groups related menu items together
4
+ */
5
+ export declare class DropdownMenuGroupComponent {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuGroupComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuGroupComponent, "st-dropdown-menu-group", never, {}, {}, never, ["*"], true, never>;
8
+ }
@@ -0,0 +1,38 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/cdk/menu";
3
+ /**
4
+ * DropdownMenuItem - Individual menu item
5
+ */
6
+ export declare class DropdownMenuItemComponent {
7
+ private readonly menuStack;
8
+ /**
9
+ * Whether the menu item is disabled
10
+ */
11
+ disabled: import("@angular/core").InputSignal<boolean>;
12
+ /**
13
+ * Whether the menu item is active
14
+ */
15
+ active: import("@angular/core").InputSignal<boolean>;
16
+ /**
17
+ * Optional keyboard shortcut text
18
+ */
19
+ shortcut: import("@angular/core").InputSignal<string | undefined>;
20
+ /**
21
+ * Custom CSS classes
22
+ */
23
+ class: import("@angular/core").InputSignal<string>;
24
+ /**
25
+ * Emitted when the menu item is triggered/clicked
26
+ */
27
+ triggered: import("@angular/core").OutputEmitterRef<void>;
28
+ /**
29
+ * Handle item click - close all menus unless disabled
30
+ */
31
+ onItemClick(): void;
32
+ /**
33
+ * Computed CSS classes for the menu item
34
+ */
35
+ itemClass: () => string;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuItemComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuItemComponent, "st-dropdown-menu-item", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "shortcut": { "alias": "shortcut"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "triggered": "triggered"; }, never, ["*"], true, [{ directive: typeof i1.CdkMenuItem; inputs: {}; outputs: { "cdkMenuItemTriggered": "triggered"; }; }]>;
38
+ }
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * DropdownMenuLabel - Label for menu sections
4
+ */
5
+ export declare class DropdownMenuLabelComponent {
6
+ /**
7
+ * Custom CSS classes
8
+ */
9
+ class: import("@angular/core").InputSignal<string>;
10
+ /**
11
+ * Computed CSS classes for the label
12
+ */
13
+ labelClass: () => string;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuLabelComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuLabelComponent, "st-dropdown-menu-label", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
16
+ }
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * DropdownMenuSeparator - Visual separator between menu sections
4
+ */
5
+ export declare class DropdownMenuSeparatorComponent {
6
+ /**
7
+ * Custom CSS classes
8
+ */
9
+ class: import("@angular/core").InputSignal<string>;
10
+ /**
11
+ * Computed CSS classes for the separator
12
+ */
13
+ separatorClass: () => string;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuSeparatorComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuSeparatorComponent, "st-dropdown-menu-separator", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
16
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * DropdownMenuSub - Container for submenu functionality
4
+ */
5
+ export declare class DropdownMenuSubComponent {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuSubComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuSubComponent, "st-dropdown-menu-sub", never, {}, {}, never, ["*"], true, never>;
8
+ }
@@ -0,0 +1,31 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * DropdownMenuSubContent - Container for submenu items
5
+ */
6
+ export declare class DropdownMenuSubContentComponent {
7
+ private readonly menuStack;
8
+ template: TemplateRef<unknown>;
9
+ /**
10
+ * Custom CSS classes
11
+ */
12
+ class: import("@angular/core").InputSignal<string>;
13
+ /**
14
+ * Size variant
15
+ */
16
+ size: import("@angular/core").InputSignal<"xs" | "sm" | "md" | "lg" | "xl">;
17
+ /**
18
+ * Handle ESC key press
19
+ */
20
+ onEscapeKey(event: KeyboardEvent): void;
21
+ /**
22
+ * Close this menu and all child menus
23
+ */
24
+ closeMenu(): void;
25
+ /**
26
+ * Computed CSS classes for the submenu
27
+ */
28
+ subMenuClass: () => string;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuSubContentComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuSubContentComponent, "st-dropdown-menu-sub-content", ["menuContent"], { "class": { "alias": "class"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
31
+ }
@@ -0,0 +1,18 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/cdk/menu";
3
+ /**
4
+ * DropdownMenuSubTrigger - Trigger for opening a submenu
5
+ */
6
+ export declare class DropdownMenuSubTriggerComponent {
7
+ private readonly dropdownMenuService;
8
+ readonly iconChevronRight = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z\"></path></svg>";
9
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
10
+ readonly className: import("@angular/core").InputSignal<string | undefined>;
11
+ private readonly isOpen;
12
+ readonly triggerClass: import("@angular/core").Signal<string>;
13
+ readonly chevronClass: import("@angular/core").Signal<string>;
14
+ onMenuOpened(): void;
15
+ onMenuClosed(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuSubTriggerComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuSubTriggerComponent, "st-dropdown-menu-sub-trigger", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.CdkMenuItem; inputs: {}; outputs: {}; }, { directive: typeof i1.CdkMenuTrigger; inputs: { "cdkMenuTriggerFor": "menuTriggerFor"; }; outputs: { "cdkMenuOpened": "cdkMenuOpened"; "cdkMenuClosed": "cdkMenuClosed"; }; }]>;
18
+ }