@testgorilla/tgo-ui 11.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testgorilla/tgo-ui",
3
- "version": "11.7.0",
3
+ "version": "11.8.0",
4
4
  "license": "proprietary-license",
5
5
  "lint-staged": {
6
6
  "{projects,components}/**/*.ts": [
@@ -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 {