@design-system-rte/angular 0.13.0 → 0.15.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.
- package/esm2022/lib/components/badge/badge.component.mjs +3 -3
- package/esm2022/lib/components/badge/badge.directive.mjs +3 -3
- package/esm2022/lib/components/banner/banner.component.mjs +5 -5
- package/esm2022/lib/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.mjs +38 -0
- package/esm2022/lib/components/breadcrumbs/breadcrumbs.component.mjs +12 -14
- package/esm2022/lib/components/button/button.component.mjs +14 -19
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +4 -5
- package/esm2022/lib/components/checkbox-group/checkbox-group.component.mjs +5 -6
- package/esm2022/lib/components/chip/chip.component.mjs +3 -3
- package/esm2022/lib/components/divider/divider.component.mjs +5 -5
- package/esm2022/lib/components/dropdown/dropdown-item/dropdown-item.component.mjs +41 -0
- package/esm2022/lib/components/dropdown/dropdown-menu/dropdown-menu.component.mjs +44 -0
- package/esm2022/lib/components/dropdown/dropdown-trigger/dropdown-trigger.directive.mjs +39 -0
- package/esm2022/lib/components/dropdown/dropdown.directive.mjs +147 -0
- package/esm2022/lib/components/dropdown/dropdown.module.mjs +19 -0
- package/esm2022/lib/components/dropdown/dropdown.utils.mjs +40 -0
- package/esm2022/lib/components/dropdown/index.mjs +8 -0
- package/esm2022/lib/components/grid/col/col.directive.mjs +3 -3
- package/esm2022/lib/components/grid/grid.directive.mjs +3 -3
- package/esm2022/lib/components/icon/icon.component.mjs +3 -3
- package/esm2022/lib/components/icon/icon.service.mjs +3 -3
- package/esm2022/lib/components/icon-button/icon-button.component.mjs +5 -5
- package/esm2022/lib/components/icon-button-toggle/icon-button-toggle.component.mjs +3 -3
- package/esm2022/lib/components/link/link.component.mjs +7 -5
- package/esm2022/lib/components/popover/popover.component.mjs +5 -5
- package/esm2022/lib/components/popover/popover.directive.mjs +3 -3
- package/esm2022/lib/components/radio-button/radio-button.component.mjs +3 -3
- package/esm2022/lib/components/radio-button-group/radio-button-group.component.mjs +3 -3
- package/esm2022/lib/components/segmented-control/segmented-control.component.mjs +3 -3
- package/esm2022/lib/components/split-button/split-button.component.mjs +33 -7
- package/esm2022/lib/components/switch/switch.component.mjs +3 -3
- package/esm2022/lib/components/text-input/text-input.component.mjs +3 -3
- package/esm2022/lib/components/textarea/textarea.component.mjs +4 -4
- package/esm2022/lib/components/tooltip/tooltip.component.mjs +3 -3
- package/esm2022/lib/components/tooltip/tooltip.directive.mjs +20 -5
- package/esm2022/lib/services/dropdown.service.mjs +81 -0
- package/esm2022/lib/services/overlay.service.mjs +3 -3
- package/fesm2022/design-system-rte-angular.mjs +571 -134
- package/fesm2022/design-system-rte-angular.mjs.map +1 -1
- package/lib/components/badge/badge.directive.d.ts +1 -1
- package/lib/components/breadcrumbs/breadcrumb-item/breadcrumb-item.component.d.ts +16 -0
- package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +2 -2
- package/lib/components/button/button.component.d.ts +4 -12
- package/lib/components/checkbox/checkbox.component.d.ts +1 -2
- package/lib/components/checkbox-group/checkbox-group.component.d.ts +1 -2
- package/lib/components/chip/chip.component.d.ts +1 -1
- package/lib/components/dropdown/dropdown-item/dropdown-item.component.d.ts +25 -0
- package/lib/components/dropdown/dropdown-menu/dropdown-menu.component.d.ts +20 -0
- package/lib/components/dropdown/dropdown-trigger/dropdown-trigger.directive.d.ts +14 -0
- package/lib/components/dropdown/dropdown.directive.d.ts +49 -0
- package/lib/components/dropdown/dropdown.module.d.ts +10 -0
- package/lib/components/dropdown/dropdown.utils.d.ts +4 -0
- package/lib/components/dropdown/index.d.ts +5 -0
- package/lib/components/icon-button/icon-button.component.d.ts +2 -2
- package/lib/components/icon-button-toggle/icon-button-toggle.component.d.ts +2 -2
- package/lib/components/link/link.component.d.ts +3 -1
- package/lib/components/split-button/split-button.component.d.ts +12 -5
- package/lib/components/text-input/text-input.component.d.ts +3 -3
- package/lib/components/tooltip/tooltip.directive.d.ts +2 -1
- package/lib/services/dropdown.service.d.ts +27 -0
- package/package.json +4 -4
|
@@ -5,6 +5,7 @@ export declare class TooltipDirective implements AfterViewInit, OnDestroy {
|
|
|
5
5
|
readonly rteTooltipPosition: import("@angular/core").InputSignal<string>;
|
|
6
6
|
readonly rteTooltipAlignment: import("@angular/core").InputSignal<string>;
|
|
7
7
|
readonly rteTooltipArrow: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
readonly rteTooltipShouldFocusTrigger: import("@angular/core").InputSignal<boolean>;
|
|
8
9
|
private tooltipRef;
|
|
9
10
|
private hostElement;
|
|
10
11
|
private overlayService;
|
|
@@ -24,5 +25,5 @@ export declare class TooltipDirective implements AfterViewInit, OnDestroy {
|
|
|
24
25
|
private positionTooltip;
|
|
25
26
|
private hideTooltip;
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
27
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[rteTooltip]", never, { "rteTooltip": { "alias": "rteTooltip"; "required": true; "isSignal": true; }; "rteTooltipPosition": { "alias": "rteTooltipPosition"; "required": false; "isSignal": true; }; "rteTooltipAlignment": { "alias": "rteTooltipAlignment"; "required": false; "isSignal": true; }; "rteTooltipArrow": { "alias": "rteTooltipArrow"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[rteTooltip]", never, { "rteTooltip": { "alias": "rteTooltip"; "required": true; "isSignal": true; }; "rteTooltipPosition": { "alias": "rteTooltipPosition"; "required": false; "isSignal": true; }; "rteTooltipAlignment": { "alias": "rteTooltipAlignment"; "required": false; "isSignal": true; }; "rteTooltipArrow": { "alias": "rteTooltipArrow"; "required": false; "isSignal": true; }; "rteTooltipShouldFocusTrigger": { "alias": "rteTooltipShouldFocusTrigger"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
28
29
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { BehaviorSubject, Observable } from "rxjs";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface KeyboardHandlingOptions {
|
|
5
|
+
menuElement: ElementRef | null;
|
|
6
|
+
menuId: string;
|
|
7
|
+
itemIndex?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface DropdownState {
|
|
10
|
+
activeMenuId: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class DropdownService {
|
|
13
|
+
private readonly initialState;
|
|
14
|
+
state$: BehaviorSubject<DropdownState | null>;
|
|
15
|
+
readonly activeMenuId$: Observable<string | undefined>;
|
|
16
|
+
openMenu(menuId: string): void;
|
|
17
|
+
closeAllMenus(): void;
|
|
18
|
+
isMenuActive(menuId: string): Observable<boolean>;
|
|
19
|
+
reset(): void;
|
|
20
|
+
handleKeyboardInput(key: string, options: KeyboardHandlingOptions): void;
|
|
21
|
+
handleKeyboardNavigation(key: string, options: KeyboardHandlingOptions): void;
|
|
22
|
+
private focusNextElement;
|
|
23
|
+
private focusPreviousElement;
|
|
24
|
+
private getFocusableElements;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownService, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DropdownService>;
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design-system-rte/angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Angular components for the Design System RTE",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@angular/common": "^
|
|
11
|
-
"@angular/core": "^
|
|
10
|
+
"@angular/common": "^18.2.14",
|
|
11
|
+
"@angular/core": "^18.2.14"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@design-system-rte/core": "^0.
|
|
14
|
+
"@design-system-rte/core": "^0.19.0",
|
|
15
15
|
"tslib": "^2.3.0"
|
|
16
16
|
},
|
|
17
17
|
"sideEffects": false,
|