@testgorilla/tgo-ui 11.6.0 → 11.8.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-accordion.mjs +52 -4
- package/fesm2022/testgorilla-tgo-ui-components-accordion.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-slider.mjs +41 -6
- package/fesm2022/testgorilla-tgo-ui-components-slider.mjs.map +1 -1
- package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs +2 -2
- package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs.map +1 -1
- package/mcp/catalog.json +1 -1
- package/package.json +1 -1
- package/types/testgorilla-tgo-ui-components-accordion.d.ts +44 -2
- package/types/testgorilla-tgo-ui-components-slider.d.ts +31 -1
package/package.json
CHANGED
|
@@ -91,21 +91,63 @@ declare class AccordionComponent {
|
|
|
91
91
|
noBackgroundColor: boolean;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
|
-
* Defines the toggle icon position
|
|
94
|
+
* Defines the toggle icon position. `right` keeps the icon at the trailing edge of the
|
|
95
|
+
* header, `left` moves it in front of the label. The `table` variant is the exception:
|
|
96
|
+
* its chevron is part of the row layout and always sits in front of the label.
|
|
95
97
|
*
|
|
96
98
|
* @type {boolean}
|
|
97
99
|
* @memberof AccordionComponent
|
|
98
100
|
*/
|
|
99
101
|
toggleIconPosition: ToggleIconPosition;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* Replaces the default expansion chevron with the given icon, placed according to
|
|
105
|
+
* `toggleIconPosition`.
|
|
106
|
+
*
|
|
107
|
+
* @type {IconName}
|
|
108
|
+
* @memberof AccordionComponent
|
|
109
|
+
*/
|
|
110
|
+
toggleIcon: IconName;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* Icon shown while the accordion is open. Requires `toggleIcon`.
|
|
114
|
+
* When omitted, `toggleIcon` rotates 180° instead of being swapped.
|
|
115
|
+
*
|
|
116
|
+
* @type {IconName}
|
|
117
|
+
* @memberof AccordionComponent
|
|
118
|
+
*/
|
|
119
|
+
toggleIconExpanded: IconName;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* Renders the label in bold. Don`t work on Classic theme
|
|
123
|
+
*
|
|
124
|
+
* @type {boolean}
|
|
125
|
+
* @default false
|
|
126
|
+
* @memberof AccordionComponent
|
|
127
|
+
*/
|
|
128
|
+
boldLabel: boolean;
|
|
100
129
|
closed: EventEmitter<void>;
|
|
101
130
|
opened: EventEmitter<void>;
|
|
102
131
|
constructor(defaultAppTheme: ApplicationTheme);
|
|
132
|
+
protected get isTableVariant(): boolean;
|
|
133
|
+
/** Whether the component renders the toggle icon itself instead of Material's indicator. */
|
|
134
|
+
protected get hasToggleIcon(): boolean;
|
|
135
|
+
/**
|
|
136
|
+
* The `table` variant renders its chevron as part of the row layout, so it stays in front
|
|
137
|
+
* of the label whatever `toggleIconPosition` says — unless a custom icon replaces it.
|
|
138
|
+
*/
|
|
139
|
+
protected get isToggleIconLeading(): boolean;
|
|
140
|
+
protected get hasLeadingToggleIcon(): boolean;
|
|
141
|
+
protected get hasTrailingToggleIcon(): boolean;
|
|
142
|
+
protected get resolvedToggleIcon(): IconName;
|
|
143
|
+
protected get rotatesToggleIcon(): boolean;
|
|
103
144
|
protected toggle(open: boolean): void;
|
|
104
145
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, [{ optional: true; }]>;
|
|
105
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "ui-accordion", never, { "label": { "alias": "label"; "required": true; }; "open": { "alias": "open"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showPremiumIcon": { "alias": "showPremiumIcon"; "required": false; }; "premiumTooltipText": { "alias": "premiumTooltipText"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "labelIcon": { "alias": "labelIcon"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "allowCustomHeader": { "alias": "allowCustomHeader"; "required": false; }; "noBackgroundColor": { "alias": "noBackgroundColor"; "required": false; }; "toggleIconPosition": { "alias": "toggleIconPosition"; "required": false; }; }, { "closed": "closed"; "opened": "opened"; }, never, ["[subHeader]", "[customHeader]", "[actions]", "*"], true, never>;
|
|
146
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "ui-accordion", never, { "label": { "alias": "label"; "required": true; }; "open": { "alias": "open"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showPremiumIcon": { "alias": "showPremiumIcon"; "required": false; }; "premiumTooltipText": { "alias": "premiumTooltipText"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "labelIcon": { "alias": "labelIcon"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "allowCustomHeader": { "alias": "allowCustomHeader"; "required": false; }; "noBackgroundColor": { "alias": "noBackgroundColor"; "required": false; }; "toggleIconPosition": { "alias": "toggleIconPosition"; "required": false; }; "toggleIcon": { "alias": "toggleIcon"; "required": false; }; "toggleIconExpanded": { "alias": "toggleIconExpanded"; "required": false; }; "boldLabel": { "alias": "boldLabel"; "required": false; }; }, { "closed": "closed"; "opened": "opened"; }, never, ["[subHeader]", "[customHeader]", "[actions]", "*"], true, never>;
|
|
106
147
|
static ngAcceptInputType_open: unknown;
|
|
107
148
|
static ngAcceptInputType_disabled: unknown;
|
|
108
149
|
static ngAcceptInputType_showPremiumIcon: unknown;
|
|
150
|
+
static ngAcceptInputType_boldLabel: unknown;
|
|
109
151
|
}
|
|
110
152
|
|
|
111
153
|
declare class AccordionComponentModule {
|
|
@@ -2,6 +2,7 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import { DecimalPipe } from '@angular/common';
|
|
4
4
|
import { Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
5
|
+
import { MatSliderDragEvent } from '@angular/material/slider';
|
|
5
6
|
import { ApplicationTheme } from '@testgorilla/tgo-ui/components/core';
|
|
6
7
|
export { ApplicationTheme } from '@testgorilla/tgo-ui/components/core';
|
|
7
8
|
|
|
@@ -108,7 +109,33 @@ declare class SliderComponent implements Validator {
|
|
|
108
109
|
minLabel: _angular_core.InputSignal<string | undefined>;
|
|
109
110
|
maxLabel: _angular_core.InputSignal<string | undefined>;
|
|
110
111
|
inputWidth: _angular_core.InputSignal<number>;
|
|
112
|
+
/**
|
|
113
|
+
* Controls whether the value bubble pops above the thumb on hover and while dragging.
|
|
114
|
+
* Set it to false for scrubber-style sliders whose designs do not show one.
|
|
115
|
+
* Applies to both the basic and the range variant.
|
|
116
|
+
*/
|
|
117
|
+
showValueBubble: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
111
118
|
sliderValueChange: EventEmitter<SliderValue>;
|
|
119
|
+
/**
|
|
120
|
+
* Emitted with the current value when the user starts dragging the thumb.
|
|
121
|
+
* Basic variant only, and never emitted for programmatic value writes, so a consumer
|
|
122
|
+
* that also drives the slider on a timer can tell a user drag apart from its own write.
|
|
123
|
+
*/
|
|
124
|
+
dragStart: _angular_core.OutputEmitterRef<number>;
|
|
125
|
+
/**
|
|
126
|
+
* Emitted with the released value when the user stops dragging the thumb.
|
|
127
|
+
* Basic variant only. See {@link dragStart}.
|
|
128
|
+
*/
|
|
129
|
+
dragEnd: _angular_core.OutputEmitterRef<number>;
|
|
130
|
+
/**
|
|
131
|
+
* Tracks hover, so the value bubble markup is only mounted while the pointer is over the slider.
|
|
132
|
+
* Starts true to keep the at-rest markup identical to what the component shipped before
|
|
133
|
+
* `showValueBubble` existed: Material leaves the bubble invisible until the thumb is active, and
|
|
134
|
+
* unmounting it changes how the disabled slider's opacity layer rasterises its text.
|
|
135
|
+
*/
|
|
136
|
+
private readonly isHovered;
|
|
137
|
+
/** Material renders the value bubble only while `discrete` is set, so gate it on both hover and the input. */
|
|
138
|
+
protected readonly isDiscrete: _angular_core.Signal<boolean>;
|
|
112
139
|
cdr: ChangeDetectorRef;
|
|
113
140
|
decimalPipe: DecimalPipe;
|
|
114
141
|
private control?;
|
|
@@ -123,6 +150,9 @@ declare class SliderComponent implements Validator {
|
|
|
123
150
|
setDisabledState(isDisabled: boolean): void;
|
|
124
151
|
writeValue(value: SliderValue): void;
|
|
125
152
|
protected onValueChange(ev?: number): void;
|
|
153
|
+
protected onSliderHover(isHovered: boolean): void;
|
|
154
|
+
protected onDragStart(event: MatSliderDragEvent): void;
|
|
155
|
+
protected onDragEnd(event: MatSliderDragEvent): void;
|
|
126
156
|
protected onInputBlur(inputName: string): void;
|
|
127
157
|
protected onInputFocus(): void;
|
|
128
158
|
private isValueChanged;
|
|
@@ -131,7 +161,7 @@ declare class SliderComponent implements Validator {
|
|
|
131
161
|
formatLabel(value: number): string;
|
|
132
162
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
133
163
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderComponent, [{ optional: true; }]>;
|
|
134
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderComponent, "ui-slider", never, { "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "percentage": { "alias": "percentage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "sliderStart": { "alias": "sliderStart"; "required": false; }; "sliderEnd": { "alias": "sliderEnd"; "required": false; }; "label": { "alias": "label"; "required": false; }; "showInputs": { "alias": "showInputs"; "required": false; }; "step": { "alias": "step"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "useDecimal": { "alias": "useDecimal"; "required": false; "isSignal": true; }; "useThousandsSeparator": { "alias": "useThousandsSeparator"; "required": false; "isSignal": true; }; "minLabel": { "alias": "minLabel"; "required": false; "isSignal": true; }; "maxLabel": { "alias": "maxLabel"; "required": false; "isSignal": true; }; "inputWidth": { "alias": "inputWidth"; "required": false; "isSignal": true; }; }, { "sliderValueChange": "sliderValueChange"; }, never, never, true, never>;
|
|
164
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderComponent, "ui-slider", never, { "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "percentage": { "alias": "percentage"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "sliderStart": { "alias": "sliderStart"; "required": false; }; "sliderEnd": { "alias": "sliderEnd"; "required": false; }; "label": { "alias": "label"; "required": false; }; "showInputs": { "alias": "showInputs"; "required": false; }; "step": { "alias": "step"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "useDecimal": { "alias": "useDecimal"; "required": false; "isSignal": true; }; "useThousandsSeparator": { "alias": "useThousandsSeparator"; "required": false; "isSignal": true; }; "minLabel": { "alias": "minLabel"; "required": false; "isSignal": true; }; "maxLabel": { "alias": "maxLabel"; "required": false; "isSignal": true; }; "inputWidth": { "alias": "inputWidth"; "required": false; "isSignal": true; }; "showValueBubble": { "alias": "showValueBubble"; "required": false; "isSignal": true; }; }, { "sliderValueChange": "sliderValueChange"; "dragStart": "dragStart"; "dragEnd": "dragEnd"; }, never, never, true, never>;
|
|
135
165
|
}
|
|
136
166
|
|
|
137
167
|
declare class SliderComponentModule {
|