@sixbell-telco/sdk 4.4.0 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/CHANGELOG.md +272 -985
  2. package/GLOSSARY.md +76 -0
  3. package/README.md +143 -1346
  4. package/banner.webp +0 -0
  5. package/components/badge/src/badge.component.d.ts +6 -1
  6. package/components/dropdown-menu/README.md +1 -0
  7. package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +2 -0
  8. package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +9 -2
  9. package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +6 -0
  10. package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +7 -0
  11. package/components/dropdown-menu/public-api.d.ts +1 -0
  12. package/components/dropdown-menu/src/directives/dropdown-menu-keyboard.directive.d.ts +54 -0
  13. package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +5 -0
  14. package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +15 -2
  15. package/components/forms/checkbox/src/checkbox.component.d.ts +12 -1
  16. package/components/status-illustration/README.md +38 -0
  17. package/components/status-illustration/index.d.ts +5 -0
  18. package/components/status-illustration/public-api.d.ts +1 -0
  19. package/components/status-illustration/src/status-illustration.component.d.ts +42 -0
  20. package/components/tab/directives/tab-content/tab-content.directive.d.ts +1 -1
  21. package/components/tree/README.md +11 -1
  22. package/components/tree/src/tree.component.d.ts +44 -5
  23. package/components/wizard/README.md +17 -0
  24. package/components/wizard/services/wizard.service.d.ts +9 -0
  25. package/components/wizard/wizard-indicator/wizard-indicator.component.d.ts +71 -0
  26. package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +24 -1
  27. package/directives/text/src/text.directive.d.ts +6 -2
  28. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +5 -5
  29. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  30. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +8 -2
  31. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  32. package/fesm2022/sixbell-telco-sdk-components-button.mjs +1 -1
  33. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  34. package/fesm2022/sixbell-telco-sdk-components-card.mjs +3 -3
  35. package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
  36. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +4 -4
  37. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  38. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +3 -3
  39. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  40. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +92 -25
  41. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  42. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +29 -3
  43. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
  44. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +271 -21
  45. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  46. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +2 -2
  47. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  48. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
  49. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  50. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +2 -2
  51. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  52. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +14 -3
  53. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  54. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
  55. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  56. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +2 -2
  57. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  58. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
  59. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  60. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +2 -2
  61. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  62. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
  63. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  64. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +15 -5
  65. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  66. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +2 -2
  67. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  68. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
  69. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  70. package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +1 -1
  71. package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -1
  72. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +2 -2
  73. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
  74. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +2 -2
  75. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
  76. package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs +66 -0
  77. package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs.map +1 -0
  78. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -0
  79. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  80. package/fesm2022/sixbell-telco-sdk-components-table.mjs +4 -4
  81. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  82. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  84. package/fesm2022/sixbell-telco-sdk-components-tree.mjs +171 -51
  85. package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -1
  86. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +123 -356
  87. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  88. package/fesm2022/sixbell-telco-sdk-directives-text.mjs +4 -1
  89. package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -1
  90. package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +2 -2
  91. package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -1
  92. package/fesm2022/sixbell-telco-sdk-layouts.mjs +61 -17
  93. package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
  94. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +23 -4
  95. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  96. package/i18n/sdk/en.json +4 -1
  97. package/i18n/sdk/es.json +4 -1
  98. package/i18n/sdk/pt.json +4 -1
  99. package/layouts/README.md +24 -6
  100. package/layouts/public-api.d.ts +1 -1
  101. package/layouts/src/layout-account.d.ts +16 -0
  102. package/layouts/src/page-banner/page-banner.component.d.ts +37 -6
  103. package/layouts/src/user-menu/user-menu.component.d.ts +4 -2
  104. package/manifest.json +10943 -0
  105. package/package.json +50 -38
  106. package/schematics/lib/plan.cjs +179 -0
  107. package/schematics/lib/tokens.cjs +133 -0
  108. package/schematics/lib/workspace.cjs +118 -0
  109. package/schematics/manual-steps.json +90 -0
  110. package/schematics/migration.json +15 -0
  111. package/schematics/migrations/v4-0-0/assets.cjs +331 -0
  112. package/schematics/migrations/v4-0-0/canonical/enghouse_networks.json +360 -0
  113. package/schematics/migrations/v4-0-0/canonical/shell.json +25 -0
  114. package/schematics/migrations/v4-0-0/canonical/theme-assets.json +44 -0
  115. package/schematics/migrations/v4-0-0/canonical/themes.json +11 -0
  116. package/schematics/migrations/v4-0-0/index.cjs +96 -0
  117. package/schematics/migrations/v4-0-0/layout.cjs +269 -0
  118. package/schematics/migrations/v4-0-0/shell.cjs +1864 -0
  119. package/schematics/migrations/v4-6-0/index.cjs +394 -0
  120. package/src/_index.css +257 -26
  121. package/utils/theme/README.md +1 -1
  122. package/utils/theme/public-api.d.ts +1 -1
  123. package/utils/theme/src/models/theme.d.ts +10 -0
  124. package/utils/theme/src/theme-assets/theme-assets.service.d.ts +12 -1
  125. package/banner.png +0 -0
  126. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +0 -85
  127. package/components/wizard/wizard-step/wizard-step.component.d.ts +0 -83
  128. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +0 -95
package/banner.webp ADDED
Binary file
@@ -79,11 +79,16 @@ export declare class BadgeComponent {
79
79
  * @defaultValue 'left'
80
80
  */
81
81
  iconPosition: import("@angular/core").InputSignal<BadgeIconPositionProps>;
82
+ /**
83
+ * Keeps the badge within its container and cuts long content with an ellipsis (paths, IDs).
84
+ * @defaultValue false
85
+ */
86
+ truncate: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
82
87
  /**
83
88
  * @internal
84
89
  * Computed class string for the badge container
85
90
  */
86
91
  componentClass: import("@angular/core").Signal<string>;
87
92
  static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
88
- static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "st-badge", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; "soft": { "alias": "soft"; "required": false; "isSignal": true; }; "dash": { "alias": "dash"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
93
+ static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "st-badge", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "outline": { "alias": "outline"; "required": false; "isSignal": true; }; "soft": { "alias": "soft"; "required": false; "isSignal": true; }; "dash": { "alias": "dash"; "required": false; "isSignal": true; }; "ghost": { "alias": "ghost"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "truncate": { "alias": "truncate"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
89
94
  }
@@ -21,4 +21,5 @@ Nested menu system (trigger, content, items, submenus). Menus open and close wit
21
21
 
22
22
  ## Notes
23
23
 
24
+ - Keyboard (WAI-ARIA menu button): Enter, Space or ArrowDown opens on the first item, ArrowUp on the last; ArrowUp/ArrowDown wrap, Home/End jump, a letter jumps to the next matching item; ArrowRight opens a submenu beside its item and ArrowLeft closes it; Escape closes and returns focus to the trigger. The same applies to the menu bar and to context menus.
24
25
  - Prefer `(triggered)` on items. Use `clicked` / keyboard outputs only when you need the event.
@@ -3,6 +3,8 @@ import * as i0 from "@angular/core";
3
3
  * DropdownMenuBar - Container for horizontal menu bar (like Google Docs)
4
4
  */
5
5
  export declare class DropdownMenuBarComponent {
6
+ /** @internal ArrowLeft/ArrowRight on a top-level item move to the previous/next item, wrapping */
7
+ onKeydown(event: KeyboardEvent): void;
6
8
  /**
7
9
  * Custom CSS classes
8
10
  */
@@ -5,10 +5,17 @@ import * as i0 from "@angular/core";
5
5
  */
6
6
  export declare class DropdownMenuBarSubTriggerComponent {
7
7
  private readonly elementRef;
8
- /** @internal Placements tagged for the shared popover motion */
9
- protected readonly menuPositions: import("@angular/cdk/overlay").ConnectedPosition[];
10
8
  private readonly isOpen;
11
9
  private hoverTimeout;
10
+ private readonly menuTrigger;
11
+ /** @internal Submenus open beside their item */
12
+ protected readonly menuPositions: import("@angular/cdk/overlay").ConnectedPosition[];
13
+ constructor();
14
+ /** @internal ArrowRight opens the submenu beside the item; it, Enter and Space focus its first item */
15
+ onKeydown(event: KeyboardEvent): void;
16
+ /** @internal A click opens on the first item */
17
+ onClick(): void;
18
+ private itemElement;
12
19
  readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
13
20
  readonly className: import("@angular/core").InputSignal<string | undefined>;
14
21
  readonly chevronIcon: import("@angular/core").InputSignal<string>;
@@ -9,6 +9,12 @@ export declare class DropdownMenuBarTriggerComponent {
9
9
  protected readonly menuPositions: import("@angular/cdk/overlay").ConnectedPosition[];
10
10
  private readonly isOpen;
11
11
  private hoverTimeout;
12
+ private readonly menuTrigger;
13
+ constructor();
14
+ /** @internal Enter, Space and ArrowDown open on the first item, ArrowUp on the last */
15
+ onKeydown(event: KeyboardEvent): void;
16
+ /** @internal A click opens on the first item */
17
+ onClick(): void;
12
18
  /**
13
19
  * Whether the trigger is disabled
14
20
  */
@@ -5,7 +5,12 @@ import * as i1 from "@angular/cdk/menu";
5
5
  */
6
6
  export declare class DropdownContextMenuTriggerComponent {
7
7
  private readonly document;
8
+ private readonly menuTrigger;
9
+ private readonly host;
10
+ private returnFocus;
8
11
  constructor();
12
+ /** @internal The context menu opens on its first item */
13
+ onContextMenu(): void;
9
14
  private originalBodyOverflow;
10
15
  /**
11
16
  * Whether the context menu is disabled
@@ -19,6 +24,8 @@ export declare class DropdownContextMenuTriggerComponent {
19
24
  * Handle menu closed - restore body scroll
20
25
  */
21
26
  onMenuClosed(): void;
27
+ /** Focus left inside the closing menu (Escape, an activated item) goes back where it was, else to this area */
28
+ private restoreFocus;
22
29
  static ɵfac: i0.ɵɵFactoryDeclaration<DropdownContextMenuTriggerComponent, never>;
23
30
  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"; }; }]>;
24
31
  }
@@ -10,4 +10,5 @@ export * from './src/dropdown-menu-sub/dropdown-menu-sub.component';
10
10
  export * from './src/dropdown-menu-trigger/dropdown-menu-trigger.component';
11
11
  export * from './src/dropdown-menu/dropdown-menu.component';
12
12
  export * from './src/services/dropdown-menu.service';
13
+ export * from './src/directives/dropdown-menu-keyboard.directive';
13
14
  export * from './src/directives/dropdown-menu.directive';
@@ -0,0 +1,54 @@
1
+ import { CdkMenuTrigger, CdkMenuTriggerBase } from '@angular/cdk/menu';
2
+ import * as i0 from "@angular/core";
3
+ /** Item a trigger asks its menu to focus when it opens */
4
+ export type DropdownMenuFocusTarget = 'first' | 'last';
5
+ /**
6
+ * @internal
7
+ * Ask the menu `trigger` opens next to focus its first or last item. Triggers call it for keyboard,
8
+ * click and context-menu opens; a menu opened by hover leaves focus where it is.
9
+ */
10
+ export declare function requestDropdownMenuFocus(trigger: CdkMenuTriggerBase, target: DropdownMenuFocusTarget): void;
11
+ /**
12
+ * @internal
13
+ * Mark `trigger` as a submenu trigger rendered by `element`: ArrowLeft or Escape in its menu closes the
14
+ * menu and returns focus to `element`. A submenu has its own menu stack (so hovering a sub-trigger does
15
+ * not close the menu it sits in); focus inside it is reported to the stack of the menu holding `element`,
16
+ * so that menu stays open.
17
+ */
18
+ export declare function registerDropdownSubmenuTrigger(trigger: CdkMenuTrigger, element: HTMLElement): void;
19
+ /**
20
+ * @internal
21
+ * Mark `element` as a top-level menu-bar item opening `trigger`'s menu, for ArrowLeft/ArrowRight across the bar.
22
+ */
23
+ export declare function registerDropdownMenuBarTrigger(trigger: CdkMenuTrigger, element: HTMLElement): void;
24
+ /**
25
+ * @internal
26
+ * Move from the menu-bar item `from` to the previous or next one (wrapping), per the WAI-ARIA menubar:
27
+ * when `from`'s menu is open, it closes and the neighbour's menu opens on its first item; otherwise
28
+ * focus moves to the neighbour. Returns false when `from` is not a menu-bar item.
29
+ */
30
+ export declare function moveInDropdownMenuBar(from: HTMLElement, step: 1 | -1): boolean;
31
+ /**
32
+ * @internal
33
+ * Keyboard model of an SDK menu panel (`cdkMenu`). Items are projected through `ng-content`, so the CDK
34
+ * menu never sees them and its key manager stays empty; this directive provides the WAI-ARIA menu
35
+ * keys instead: focus on open, ArrowUp/ArrowDown (wrapping), Home/End, type-ahead, and ArrowLeft out
36
+ * of a submenu. Escape and Tab stay with the CDK menu.
37
+ */
38
+ export declare class DropdownMenuKeyboardDirective {
39
+ private readonly menu;
40
+ private readonly trigger;
41
+ constructor();
42
+ /** @internal */
43
+ reportFocus(hasFocus: boolean): void;
44
+ /** @internal */
45
+ onKeydown(event: KeyboardEvent): void;
46
+ private items;
47
+ private focus;
48
+ private leaveSubmenu;
49
+ /** In a menu opened from the menu bar, ArrowLeft/ArrowRight open the previous/next bar item's menu */
50
+ private moveAcrossMenuBar;
51
+ private typeahead;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuKeyboardDirective, never>;
53
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownMenuKeyboardDirective, "[stDropdownMenuKeyboard]", never, {}, {}, never, never, true, never>;
54
+ }
@@ -5,7 +5,12 @@ import * as i1 from "@angular/cdk/menu";
5
5
  */
6
6
  export declare class DropdownMenuSubTriggerComponent {
7
7
  private readonly dropdownMenuService;
8
+ private readonly menuTrigger;
8
9
  constructor();
10
+ /** @internal ArrowRight opens the submenu beside the item; it, Enter and Space focus its first item */
11
+ onKeydown(event: KeyboardEvent): void;
12
+ /** @internal A click opens on the first item */
13
+ onClick(): void;
9
14
  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>";
10
15
  readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
11
16
  readonly className: import("@angular/core").InputSignal<string | undefined>;
@@ -1,12 +1,25 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "@angular/cdk/menu";
3
3
  /**
4
- * DropdownMenuTrigger - Trigger element for opening dropdown menu
5
- * The component acts as the trigger itself
4
+ * DropdownMenuTrigger - Trigger element for opening dropdown menu.
5
+ * With plain content the host is the menu button. When the content is a button (such as `st-button`),
6
+ * that button is the menu button: it carries `aria-haspopup`, `aria-expanded` and `aria-controls`, and
7
+ * the host has no role and leaves the tab order.
6
8
  */
7
9
  export declare class DropdownMenuTriggerComponent {
8
10
  private readonly dropdownMenuService;
11
+ private readonly menuTrigger;
12
+ private readonly host;
13
+ /** @internal Enter, Space and ArrowDown open on the first item, ArrowUp on the last */
14
+ onKeydown(event: KeyboardEvent): void;
15
+ /** @internal A click opens on the first item */
16
+ onClick(): void;
9
17
  constructor();
18
+ /** @internal Focus requests on the host (Escape returning focus to the trigger) go to the projected button */
19
+ onFocus(event: FocusEvent): void;
20
+ private projectedButton;
21
+ /** Moves the menu-button ARIA the CDK writes on the host onto the projected button, if there is one */
22
+ private syncMenuButton;
10
23
  /**
11
24
  * Handle menu opened event
12
25
  */
@@ -73,6 +73,12 @@ export declare class CheckboxComponent implements ControlValueAccessor {
73
73
  * @defaultValue false
74
74
  */
75
75
  stopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
76
+ /**
77
+ * Stretches the label's click target over the nearest positioned ancestor,
78
+ * so a whole card toggles the checkbox. Keyboard focus stays on the input.
79
+ * @defaultValue false
80
+ */
81
+ cover: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
76
82
  /**
77
83
  * Event emitted on click
78
84
  */
@@ -101,6 +107,11 @@ export declare class CheckboxComponent implements ControlValueAccessor {
101
107
  * Computed class string for the checkbox
102
108
  */
103
109
  componentClass: import("@angular/core").Signal<string>;
110
+ /**
111
+ * @internal
112
+ * Label classes that cover the nearest positioned ancestor
113
+ */
114
+ labelClass: import("@angular/core").Signal<"" | "cursor-pointer after:absolute after:inset-0 after:content-['']">;
104
115
  writeValue(obj: any): void;
105
116
  registerOnChange(fn: any): void;
106
117
  registerOnTouched(fn: any): void;
@@ -131,5 +142,5 @@ export declare class CheckboxComponent implements ControlValueAccessor {
131
142
  */
132
143
  handleKeyDownSpace(event: Event): void;
133
144
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
134
- static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "st-checkbox", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "disabled": "disabledChange"; }, never, never, true, never>;
145
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "st-checkbox", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; "stopPropagation": { "alias": "stopPropagation"; "required": false; "isSignal": true; }; "cover": { "alias": "cover"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueUpdated": "valueUpdated"; "clicked": "clicked"; "keyDownEnter": "keyDownEnter"; "keyDownSpace": "keyDownSpace"; "triggered": "triggered"; "disabled": "disabledChange"; }, never, never, true, never>;
135
146
  }
@@ -0,0 +1,38 @@
1
+ # Status Illustration
2
+
3
+ Import: `@sixbell-telco/sdk/components/status-illustration`
4
+
5
+ Selector: `st-status-illustration`
6
+
7
+ Animated artwork for status pages: `not-found` (404), `server-error` (500), `no-access` (403) and `offline`.
8
+
9
+ ## Usage
10
+
11
+ ```html
12
+ <st-status-illustration kind="not-found" />
13
+ ```
14
+
15
+ ```html
16
+ <st-status-illustration kind="no-access" variant="key" />
17
+ ```
18
+
19
+ | Input | Type | Default | Notes |
20
+ | --------- | ----------------------------------------------------------- | -------- | -------------------------------------------------------------------- |
21
+ | `kind` | `'not-found' \| 'server-error' \| 'no-access' \| 'offline'` | required | Status page the artwork illustrates |
22
+ | `variant` | `StatusIllustrationVariant \| null` | `null` | Alternative artwork; a variant of another kind falls back to default |
23
+ | `label` | `string` | `''` | Accessible name; empty keeps the artwork decorative (`aria-hidden`) |
24
+ | `class` | `string` | `''` | Merged onto the host (`flex items-center justify-center`) |
25
+
26
+ Variants per kind (the first is the default):
27
+
28
+ - `not-found`: `depth`, `searching`, `disconnected`, `drift`
29
+ - `server-error`: `monitor`, `crash`, `overload`
30
+ - `no-access`: `shield`, `gate`, `key`, `signal`
31
+ - `offline`: one artwork
32
+
33
+ ## Notes
34
+
35
+ - Colours come from the theme (`primary`, `accent`, `base-100`, `base-300`, `base-content`), so the artwork follows light and dark schemes and runtime themes.
36
+ - The motion is component-scoped CSS: apps add no keyframes or utilities. It stops under `prefers-reduced-motion: reduce`.
37
+ - Keep it decorative and let the page heading say what happened; set `label` only when nothing next to it does.
38
+ - Replaces the `app-not-found-illustration`, `app-server-error-illustration`, `app-no-access-illustration` and `app-offline-illustration` copies and their `sp-*` utilities in consumer apps.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sixbell-telco/sdk/components/status-illustration" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export * from './src/status-illustration.component';
@@ -0,0 +1,42 @@
1
+ import * as i0 from "@angular/core";
2
+ /** Status page the illustration belongs to. */
3
+ export type StatusIllustrationKind = 'not-found' | 'server-error' | 'no-access' | 'offline';
4
+ /**
5
+ * Alternative artwork for a kind: `not-found` takes `depth` (default), `searching`, `disconnected`, `drift`;
6
+ * `server-error` takes `monitor` (default), `crash`, `overload`; `no-access` takes `shield` (default), `gate`, `key`, `signal`.
7
+ * `offline` has one artwork. A variant of another kind falls back to the kind's default.
8
+ */
9
+ export type StatusIllustrationVariant = 'depth' | 'searching' | 'disconnected' | 'drift' | 'monitor' | 'crash' | 'overload' | 'shield' | 'gate' | 'key' | 'signal';
10
+ /**
11
+ * Animated, theme-coloured artwork for status pages (404, 500, 403 and offline).
12
+ *
13
+ * @remarks
14
+ * Colours come from the active theme (`primary`, `accent`, `base-*`), so it follows light and dark schemes.
15
+ * The motion stops under `prefers-reduced-motion: reduce`.
16
+ * It is decorative (`aria-hidden`) unless `label` is set; the page heading should carry the message.
17
+ *
18
+ * @example
19
+ * ```html
20
+ * <st-status-illustration kind="not-found" />
21
+ * <st-status-illustration kind="no-access" variant="key" label="Access denied" />
22
+ * ```
23
+ */
24
+ export declare class StatusIllustrationComponent {
25
+ /** Status page the artwork illustrates */
26
+ kind: import("@angular/core").InputSignal<StatusIllustrationKind>;
27
+ /**
28
+ * Alternative artwork for the kind; `null` or a variant of another kind uses the kind's default
29
+ * @defaultValue null
30
+ */
31
+ variant: import("@angular/core").InputSignal<StatusIllustrationVariant | null>;
32
+ /** Accessible name. Empty keeps the illustration decorative (`aria-hidden`). */
33
+ label: import("@angular/core").InputSignal<string>;
34
+ /** Additional classes merged onto the host */
35
+ class: import("@angular/core").InputSignal<string>;
36
+ /** @internal Template case: `kind/variant`, or the kind alone when it has one artwork. */
37
+ protected readonly illustration: import("@angular/core").Signal<string>;
38
+ /** @internal */
39
+ readonly componentClass: import("@angular/core").Signal<string>;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<StatusIllustrationComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<StatusIllustrationComponent, "st-status-illustration", never, { "kind": { "alias": "kind"; "required": true; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
42
+ }
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- export type TabContentVariantProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;
2
+ export type TabContentVariantProps = 'none' | 'xs' | 'sm' | 'md' | 'lg' | null | undefined;
3
3
  export type TabContentDirectiveProps = {
4
4
  variant?: TabContentVariantProps;
5
5
  };
@@ -57,7 +57,7 @@ the node (`$implicit`), its zero-based `level` and `expanded`.
57
57
 
58
58
  The template renders for the node whose actions hold focus, else the **hovered** one, else the **selected** one, inside a `role="group"`
59
59
  toolbar that is a sibling of the tree (never inside a treeitem), laid over the end
60
- of that row and next in the tab order. Hovering a row shows its actions too (as in the Figma Tree / Item); this adds to the keyboard path, which is unchanged. While focus is inside the actions, hover cannot move them to another row (not even when focus moves between two action buttons), and a click always acts on the node the group is showing. Tab from a tree row goes to the actions of the **selected** node even if the pointer rests on another row, Shift+Tab returns, and Escape inside the actions returns focus to the row they belong to. Give every action button an accessible name that includes the node label. Node actions follow the row-action roles: add `primary`, edit `warning`, delete `error`, all `ghost`.
60
+ of that row and next in the tab order. Hovering a row shows its actions too (as in the Figma Tree / Item); this adds to the keyboard path, which is unchanged. While focus is inside the actions, hover cannot move them to another row (not even when focus moves between two action buttons), and a click always acts on the node the group is showing. Tab from a tree row goes to the actions of the **selected** node even if the pointer rests on another row, Shift+Tab returns, and Escape inside the actions returns focus to the row they belong to. The group takes the row height (32px) and centres its content, so `xs` and `sm` triggers sit centred without offset classes. Give every action button an accessible name that includes the node label. Node actions follow the row-action roles: add `primary`, edit `warning`, delete `error`, all `ghost`.
61
61
 
62
62
  ## Accessibility
63
63
 
@@ -71,3 +71,13 @@ of that row and next in the tab order. Hovering a row shows its actions too (as
71
71
  - The badge is read with the label (for example "Delivery 12"); keep it meaningful.
72
72
  - With no rows (no nodes, or no match) the tree is replaced by `st-empty-state`, since an empty `role="tree"` is invalid.
73
73
  - The focus ring stays visible and transitions respect `motion-reduce`.
74
+
75
+ ## Motion
76
+
77
+ Without `prefers-reduced-motion: reduce`:
78
+
79
+ - The branch chevron is one icon that turns a quarter (150ms, ease-out) when the branch expands.
80
+ - Child rows grow from 0 to the row height and fade in when a branch expands (or a filter brings them back), and shrink and fade out over 150ms when it collapses. Rows rendered on the first paint do not animate.
81
+ - The actions group fades in over 100ms. While rows grow or shrink it moves with its own row (same 150ms ease-out), and when it has no settled row to sit on (a row still growing in, or a switch to another row while rows move) it stays transparent until the rows settle, so it never sits over another row. Row spacing is part of each row, so a leaving row takes its spacing with it and nothing snaps when it is removed.
82
+
83
+ Rows on their way out are `inert`, `aria-hidden` and not treeitems, so keyboard navigation, `aria-setsize` / `aria-posinset` and the roving tab stop only ever see the visible rows. Under reduced motion collapsed rows are removed at once.
@@ -51,12 +51,26 @@ interface TreeRow<T> {
51
51
  posInSet: number;
52
52
  setSize: number;
53
53
  }
54
+ /** A rendered row: a visible row, or one still leaving after its branch collapsed or the filter dropped it. */
55
+ interface RenderedRow<T> {
56
+ row: TreeRow<T>;
57
+ leaving: boolean;
58
+ }
54
59
  /**
55
60
  * @internal
56
61
  * Row classes: selected rows use the primary tint, the keyboard focus ring stays visible.
57
62
  */
58
63
  export declare const treeRow: (props?: ({
59
64
  selected?: boolean | null | undefined;
65
+ entering?: boolean | null | undefined;
66
+ leaving?: boolean | null | undefined;
67
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
68
+ /**
69
+ * @internal
70
+ * Chevron of a branch row: one icon that turns a quarter when the branch expands.
71
+ */
72
+ export declare const treeChevron: (props?: ({
73
+ expanded?: boolean | null | undefined;
60
74
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
61
75
  /**
62
76
  * Single-select tree following the WAI-ARIA treeview pattern.
@@ -99,6 +113,7 @@ export declare class TreeComponent<T = unknown> {
99
113
  private readonly rowElements;
100
114
  private readonly actionsElement;
101
115
  private readonly translateLabel;
116
+ private readonly reducedMotion;
102
117
  /** @internal */
103
118
  protected readonly indent = 20;
104
119
  /** @internal */
@@ -106,11 +121,8 @@ export declare class TreeComponent<T = unknown> {
106
121
  /** @internal */
107
122
  protected readonly rowHeight = 32;
108
123
  /** @internal */
109
- protected readonly rowGap = 2;
110
- /** @internal */
111
124
  protected readonly icons: {
112
- expanded: string;
113
- collapsed: string;
125
+ chevron: string;
114
126
  branch: string;
115
127
  leaf: string;
116
128
  };
@@ -128,6 +140,19 @@ export declare class TreeComponent<T = unknown> {
128
140
  protected readonly hasActions: import("@angular/core").Signal<boolean>;
129
141
  /** Visible rows: expanded branches only, or every match plus its ancestors while filtering. */
130
142
  readonly rows: import("@angular/core").Signal<TreeRow<T>[]>;
143
+ /** @internal Rows inserted after the first render animate in; the first render stays still. */
144
+ protected readonly animateEntering: import("@angular/core").WritableSignal<boolean>;
145
+ /**
146
+ * @internal The rows in the DOM: the visible rows plus, unless reduced motion is on, rows that just left (collapsed
147
+ * branch, filtered out) kept in place for the collapse transition. Leaving rows are inert, hidden from assistive
148
+ * technology and never treeitems, so keyboard navigation and ARIA only ever see `rows()`.
149
+ */
150
+ protected readonly renderedRows: import("@angular/core").WritableSignal<RenderedRow<T>[]>;
151
+ /**
152
+ * @internal True for one row transition after the visible rows change (unless reduced motion is on). Meanwhile
153
+ * the actions group moves with its row at the same timing, or stays transparent when it has no row to follow.
154
+ */
155
+ protected readonly layoutShift: import("@angular/core").WritableSignal<boolean>;
131
156
  /** @internal The row holding the roving tab stop: last focused, else selected, else first. */
132
157
  protected readonly focusId: import("@angular/core").Signal<string>;
133
158
  /** @internal Row under the pointer. Hover shows its actions in addition to the selected row's. */
@@ -140,6 +165,11 @@ export declare class TreeComponent<T = unknown> {
140
165
  template: TemplateRef<TreeNodeActionsContext<any>>;
141
166
  top: number;
142
167
  } | null>;
168
+ /**
169
+ * @internal True while the actions follow their own row through a row transition. It turns false for the rest of
170
+ * the transition as soon as they switch to another row, so they jump there instead of sliding over other rows.
171
+ */
172
+ private readonly actionsFollowRow;
143
173
  /** @internal */
144
174
  protected readonly treeLabel: import("@angular/core").Signal<string>;
145
175
  /** @internal */
@@ -151,7 +181,16 @@ export declare class TreeComponent<T = unknown> {
151
181
  }>;
152
182
  constructor();
153
183
  /** @internal */
154
- protected rowClass(selected: boolean): string;
184
+ protected rowClass(selected: boolean, leaving?: boolean): string;
185
+ /** @internal */
186
+ /**
187
+ * @internal While rows animate, actions that did not start on their row (a row still growing in, or a switch to
188
+ * another row mid-transition) have no settled position to sit on, so they stay transparent until the rows settle.
189
+ */
190
+ protected readonly actionsHidden: import("@angular/core").Signal<boolean>;
191
+ protected readonly actionsClass: import("@angular/core").Signal<string>;
192
+ /** @internal */
193
+ protected chevronClass(expanded: boolean): string;
155
194
  /** @internal */
156
195
  protected focusActionsRow(): void;
157
196
  /** @internal */
@@ -24,6 +24,23 @@ this.wizardService.init([
24
24
  ]);
25
25
  ```
26
26
 
27
+ ## Step indicator
28
+
29
+ `indicator` picks the step indicator. Unset, it follows `variant`: vertical shows `rail`, horizontal shows `segments`.
30
+
31
+ | `indicator` | Placement | Shows |
32
+ | ----------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
33
+ | `rail` | beside the content | one track on the circle centres that fills as steps complete, a state line per step |
34
+ | `checklist` | beside the content | the current step, "Step n of N", a progress bar and a checklist; completed steps are buttons that go back (emit `previous`; not while `loading`) |
35
+ | `segments` | above the content | equal segments that fill, "Step n" and the name under each; below a 400px viewport only the current label |
36
+
37
+ ```html
38
+ <st-wizard variant="vertical" indicator="checklist">…</st-wizard>
39
+ ```
40
+
41
+ The checklist shows an optional `meta` per step (`{ name, label, meta: 'Tested' }` in `init`, or `wizardService.updateStepMeta(index, meta)`).
42
+ Motion plays once per step change and is static under `prefers-reduced-motion`.
43
+
27
44
  ## Notes
28
45
 
29
46
  - `nextDescribedBy`: id(s) of the element(s) that explain why the step cannot continue. They are rendered as `aria-describedby` on the built-in Next/End button, so screen readers announce the reason with the button.
@@ -17,6 +17,7 @@ export declare const WIZARD_STEP_STATUS: {
17
17
  * @property {boolean} isValid - Indicates if the step's data is valid
18
18
  * @property {string} label - Display text for the step
19
19
  * @property {string} [icon] - Optional icon for the step
20
+ * @property {string} [meta] - Optional short summary shown next to the step by the checklist indicator (for example "Tested")
20
21
  */
21
22
  export type WizardStepConfig = {
22
23
  name: string;
@@ -24,12 +25,14 @@ export type WizardStepConfig = {
24
25
  isValid: boolean;
25
26
  label: string;
26
27
  icon?: string;
28
+ meta?: string;
27
29
  };
28
30
  /**
29
31
  * Simplified step definition without status and validation
30
32
  * @property {string} name - Unique identifier for the step
31
33
  * @property {string} label - Display text for the step
32
34
  * @property {string} [icon] - Optional icon for the step
35
+ * @property {string} [meta] - Optional short summary shown by the checklist indicator
33
36
  */
34
37
  export type WizardStep = Omit<WizardStepConfig, 'status' | 'isValid'>;
35
38
  /**
@@ -166,6 +169,12 @@ export declare class WizardService {
166
169
  * @param {string} label - New label for the step
167
170
  */
168
171
  updateStepLabel(index: number, label: string): void;
172
+ /**
173
+ * Updates the meta text of the step at the specified index (shown by the checklist indicator)
174
+ * @param {number} index - Index of step to update
175
+ * @param {string | undefined} meta - New meta text, or undefined to clear it
176
+ */
177
+ updateStepMeta(index: number, meta: string | undefined): void;
169
178
  /**
170
179
  * Updates status of step at specified index
171
180
  * @param {number} index - Index of step to update
@@ -0,0 +1,71 @@
1
+ import { WizardService, WizardStepStatus } from '../services/wizard.service';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Step indicator styles of `st-wizard`.
5
+ * - `rail`: vertical list on one continuous track that fills as steps complete
6
+ * - `checklist`: vertical header ("Step n of N"), progress bar and a compact checklist
7
+ * - `segments`: horizontal segments that fill, with the step name under each
8
+ */
9
+ export type WizardIndicator = 'rail' | 'checklist' | 'segments';
10
+ /**
11
+ * Step indicator rendered by `st-wizard` (internal).
12
+ *
13
+ * @remarks
14
+ * Reads the steps and the current index from {@link WizardService}. The current step (`aria-current="step"`)
15
+ * follows the service index at once; each circle follows the step status, which the service applies after
16
+ * its 300ms delay, so the track fill reaches the next circle as it activates.
17
+ * State-bound elements are recreated when their state changes, which replays their one-shot animation.
18
+ * @internal
19
+ */
20
+ export declare class WizardIndicatorComponent {
21
+ /** @internal */
22
+ wizardService: WizardService;
23
+ /** Indicator style to render */
24
+ indicator: import("@angular/core").InputSignal<WizardIndicator>;
25
+ /** Whether completed checklist steps can be clicked to go back */
26
+ canGoBack: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
27
+ /** Emits the index of a completed step the user picked to go back to */
28
+ stepSelect: import("@angular/core").OutputEmitterRef<number>;
29
+ /** @internal */
30
+ readonly indexMark = "\u2063";
31
+ /** @internal Number of steps */
32
+ count: import("@angular/core").Signal<number>;
33
+ /** @internal Current step index */
34
+ current: import("@angular/core").Signal<number>;
35
+ /** @internal Direction of the last step change, so the number rolls the way the user moved */
36
+ direction: import("@angular/core").WritableSignal<"forward" | "back">;
37
+ /** @internal Current step label */
38
+ currentLabel: import("@angular/core").Signal<string>;
39
+ /** @internal Progress in percent: 0 on the first step, 100 on the last */
40
+ progress: import("@angular/core").Signal<number>;
41
+ /** @internal Height of one rail row (rows share one height) */
42
+ railRowHeight: import("@angular/core").Signal<string>;
43
+ /** @internal Track inset from the top and bottom: half a row, so it starts and ends on the circle centres */
44
+ railTrackInset: import("@angular/core").Signal<string>;
45
+ /** @internal Moves the shared highlight onto the current row */
46
+ railHighlightTransform: import("@angular/core").Signal<string>;
47
+ /** @internal Segment grid columns */
48
+ segmentColumns: import("@angular/core").Signal<string>;
49
+ /**
50
+ * Translation key of the state line for a status
51
+ * @internal
52
+ */
53
+ stateKey(status: WizardStepStatus): string;
54
+ /**
55
+ * Splits a translated "Step {{index}} of {{total}}" rendered with {@link INDEX_MARK} into the text before and after the number
56
+ * @internal
57
+ */
58
+ splitAtIndex(text: string): [string, string];
59
+ /**
60
+ * Segment fill in percent: full when done or failed, half on the current step
61
+ * @internal
62
+ */
63
+ segmentFill(status: WizardStepStatus): number;
64
+ /**
65
+ * Whether a checklist row is a button that goes back to its step
66
+ * @internal
67
+ */
68
+ isSelectable(index: number, status: WizardStepStatus): boolean;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardIndicatorComponent, never>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<WizardIndicatorComponent, "st-wizard-indicator", never, { "indicator": { "alias": "indicator"; "required": true; "isSignal": true; }; "canGoBack": { "alias": "canGoBack"; "required": false; "isSignal": true; }; }, { "stepSelect": "stepSelect"; }, never, never, true, never>;
71
+ }