@testgorilla/tgo-ui 11.3.0 → 11.4.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/fesm2022/testgorilla-tgo-ui-components-badge.mjs +3 -2
- package/fesm2022/testgorilla-tgo-ui-components-badge.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-popover.mjs +8 -5
- package/fesm2022/testgorilla-tgo-ui-components-popover.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-segmented-toggle.mjs +18 -3
- package/fesm2022/testgorilla-tgo-ui-components-segmented-toggle.mjs.map +1 -1
- package/mcp/catalog.json +1 -1
- package/package.json +1 -1
- package/types/testgorilla-tgo-ui-components-badge.d.ts +2 -1
- package/types/testgorilla-tgo-ui-components-popover.d.ts +3 -1
- package/types/testgorilla-tgo-ui-components-segmented-toggle.d.ts +11 -0
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ declare enum BadgeColorEnum {
|
|
|
21
21
|
BLUE_20 = "blue-20",
|
|
22
22
|
BLUE_40 = "blue-40"
|
|
23
23
|
}
|
|
24
|
-
type RebrandBadgeColor = 'success' | 'warning' | 'negative' | 'info' | 'brand' | 'neutral' | 'blue-20' | 'blue-40' | 'pink-30' | 'blue-10' | 'grey-10' | 'grey-20' | 'grey-30';
|
|
24
|
+
type RebrandBadgeColor = 'success' | 'warning' | 'negative' | 'info' | 'brand' | 'neutral' | 'blue-20' | 'blue-40' | 'pink-30' | 'pink-50' | 'blue-10' | 'grey-10' | 'grey-20' | 'grey-30';
|
|
25
25
|
declare enum RebrandBadgeColorEnum {
|
|
26
26
|
SUCCESS = "success",
|
|
27
27
|
WARNING = "warning",
|
|
@@ -32,6 +32,7 @@ declare enum RebrandBadgeColorEnum {
|
|
|
32
32
|
BLUE_40 = "blue-40",
|
|
33
33
|
BLUE_20 = "blue-20",
|
|
34
34
|
PINK_30 = "pink-30",
|
|
35
|
+
PINK_50 = "pink-50",
|
|
35
36
|
BLUE_10 = "blue-10",
|
|
36
37
|
GREY_30 = "grey-30",
|
|
37
38
|
GREY_20 = "grey-20",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, OnDestroy, TemplateRef } from '@angular/core';
|
|
3
3
|
import { HorizontalConnectionPos } from '@angular/cdk/overlay';
|
|
4
|
+
import { CardSize } from '@testgorilla/tgo-ui/components/card';
|
|
4
5
|
|
|
5
6
|
declare class PopoverDirective implements OnInit, OnDestroy {
|
|
6
7
|
uiPopover: _angular_core.InputSignal<TemplateRef<unknown>>;
|
|
@@ -8,6 +9,7 @@ declare class PopoverDirective implements OnInit, OnDestroy {
|
|
|
8
9
|
popoverAlign: _angular_core.InputSignal<HorizontalConnectionPos>;
|
|
9
10
|
popoverOpen: _angular_core.InputSignal<boolean>;
|
|
10
11
|
popoverCard: _angular_core.InputSignal<boolean>;
|
|
12
|
+
popoverCardSize: _angular_core.InputSignal<CardSize>;
|
|
11
13
|
uiPopoverDisabled: _angular_core.InputSignal<boolean>;
|
|
12
14
|
private readonly overlay;
|
|
13
15
|
private readonly elementRef;
|
|
@@ -29,7 +31,7 @@ declare class PopoverDirective implements OnInit, OnDestroy {
|
|
|
29
31
|
ngOnInit(): void;
|
|
30
32
|
ngOnDestroy(): void;
|
|
31
33
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopoverDirective, never>;
|
|
32
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopoverDirective, "[uiPopover]", never, { "uiPopover": { "alias": "uiPopover"; "required": true; "isSignal": true; }; "popoverOffset": { "alias": "popoverOffset"; "required": false; "isSignal": true; }; "popoverAlign": { "alias": "popoverAlign"; "required": false; "isSignal": true; }; "popoverOpen": { "alias": "popoverOpen"; "required": false; "isSignal": true; }; "popoverCard": { "alias": "popoverCard"; "required": false; "isSignal": true; }; "uiPopoverDisabled": { "alias": "uiPopoverDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
34
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopoverDirective, "[uiPopover]", never, { "uiPopover": { "alias": "uiPopover"; "required": true; "isSignal": true; }; "popoverOffset": { "alias": "popoverOffset"; "required": false; "isSignal": true; }; "popoverAlign": { "alias": "popoverAlign"; "required": false; "isSignal": true; }; "popoverOpen": { "alias": "popoverOpen"; "required": false; "isSignal": true; }; "popoverCard": { "alias": "popoverCard"; "required": false; "isSignal": true; }; "popoverCardSize": { "alias": "popoverCardSize"; "required": false; "isSignal": true; }; "uiPopoverDisabled": { "alias": "uiPopoverDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
export { PopoverDirective };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TooltipPosition } from '@angular/material/tooltip';
|
|
2
3
|
import { ApplicationTheme } from '@testgorilla/tgo-ui/components/core';
|
|
3
4
|
export { ApplicationTheme } from '@testgorilla/tgo-ui/components/core';
|
|
4
5
|
import { IconName } from '@testgorilla/tgo-ui/components/icon';
|
|
6
|
+
import { TooltipPositionType } from '@testgorilla/tgo-ui/components/tooltip';
|
|
5
7
|
|
|
6
8
|
interface SegmentedToggleOption<T> {
|
|
7
9
|
value: T;
|
|
@@ -23,6 +25,13 @@ interface SegmentedToggleOption<T> {
|
|
|
23
25
|
* any non-brand option shows the neutral pill.
|
|
24
26
|
*/
|
|
25
27
|
brand?: boolean;
|
|
28
|
+
/** Optional tooltip text shown when hovering or focusing this segment. */
|
|
29
|
+
tooltip?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Position of the tooltip relative to the segment. Only relevant when
|
|
32
|
+
* `tooltip` is set. Defaults to `TooltipPositionType.TOP`.
|
|
33
|
+
*/
|
|
34
|
+
tooltipPosition?: TooltipPositionType;
|
|
26
35
|
}
|
|
27
36
|
|
|
28
37
|
declare class SegmentedToggleComponent<T> {
|
|
@@ -58,6 +67,8 @@ declare class SegmentedToggleComponent<T> {
|
|
|
58
67
|
* the button and this returns `null` (no `aria-label` attribute).
|
|
59
68
|
*/
|
|
60
69
|
protected fallbackAriaLabel(option: SegmentedToggleOption<T>): string | null;
|
|
70
|
+
/** Maps the option's Canopy tooltip position (default TOP) to the MatTooltip position. */
|
|
71
|
+
protected tooltipPosition(option: SegmentedToggleOption<T>): TooltipPosition;
|
|
61
72
|
/** Reads the active button's box and writes it to the indicator signals. */
|
|
62
73
|
private measureIndicator;
|
|
63
74
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedToggleComponent<any>, never>;
|