@spartan-ng/brain 0.0.1-alpha.437 → 0.0.1-alpha.439
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/calendar/index.d.ts +5 -2
- package/calendar/lib/brn-calendar-cell-button.directive.d.ts +2 -2
- package/calendar/lib/brn-calendar-grid.directive.d.ts +1 -1
- package/calendar/lib/brn-calendar.directive.d.ts +4 -1
- package/calendar/lib/brn-calendar.token.d.ts +19 -5
- package/calendar/lib/mode/brn-calendar-multiple.directive.d.ts +61 -0
- package/fesm2022/spartan-ng-brain-calendar.mjs +196 -9
- package/fesm2022/spartan-ng-brain-calendar.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-input-otp.mjs +212 -0
- package/fesm2022/spartan-ng-brain-input-otp.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-select.mjs +2 -1
- package/fesm2022/spartan-ng-brain-select.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-slider.mjs +278 -342
- package/fesm2022/spartan-ng-brain-slider.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-toggle-group.mjs +260 -0
- package/fesm2022/spartan-ng-brain-toggle-group.mjs.map +1 -0
- package/fesm2022/spartan-ng-brain-toggle.mjs +6 -197
- package/fesm2022/spartan-ng-brain-toggle.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-tooltip.mjs +18 -8
- package/fesm2022/spartan-ng-brain-tooltip.mjs.map +1 -1
- package/hlm-tailwind-preset.js +5 -0
- package/input-otp/README.md +3 -0
- package/input-otp/index.d.ts +10 -0
- package/input-otp/lib/brn-input-otp-slot.component.d.ts +14 -0
- package/input-otp/lib/brn-input-otp.component.d.ts +57 -0
- package/input-otp/lib/brn-input-otp.token.d.ts +5 -0
- package/package.json +9 -1
- package/slider/index.d.ts +9 -4
- package/slider/lib/brn-slider-range.directive.d.ts +7 -0
- package/slider/lib/brn-slider-thumb.directive.d.ts +18 -11
- package/slider/lib/brn-slider-tick.directive.d.ts +12 -0
- package/slider/lib/brn-slider-track.directive.d.ts +8 -136
- package/slider/lib/brn-slider-track.token.d.ts +5 -0
- package/slider/lib/brn-slider.directive.d.ts +37 -0
- package/slider/lib/brn-slider.token.d.ts +4 -0
- package/toggle/index.d.ts +0 -7
- package/toggle/lib/brn-toggle.directive.d.ts +0 -2
- package/toggle-group/README.md +3 -0
- package/toggle-group/index.d.ts +15 -0
- package/{toggle → toggle-group}/lib/brn-toggle-group.component.d.ts +5 -5
- package/toggle-group/lib/brn-toggle-item.directive.d.ts +25 -0
- package/tooltip/lib/brn-tooltip-trigger.directive.d.ts +8 -4
- package/slider/lib/brn-slider-tick-mark.directive.d.ts +0 -15
- package/slider/lib/brn-slider-track-active-fill.directive.d.ts +0 -10
- /package/{toggle → toggle-group}/lib/brn-toggle-group.token.d.ts +0 -0
|
@@ -1,140 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { type AfterViewInit, InjectionToken, type OnDestroy, type Signal, type WritableSignal } from '@angular/core';
|
|
3
|
-
import { type ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
import type { BrnLabelDirective } from '@spartan-ng/brain/label';
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
5
2
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
isFocused: Signal<boolean>;
|
|
12
|
-
}
|
|
13
|
-
export declare const BRN_SLIDER_TRACK: InjectionToken<BrnSliderTrack>;
|
|
14
|
-
export declare const BRN_SLIDER: InjectionToken<BrnSlider>;
|
|
15
|
-
export interface BrnSlider {
|
|
16
|
-
/** The minimun value of the slider. */
|
|
17
|
-
min: WritableSignal<number>;
|
|
18
|
-
/** The maximun value of the slider. */
|
|
19
|
-
max: WritableSignal<number>;
|
|
20
|
-
/** The amount that slider values can increment or decrement by. */
|
|
21
|
-
step: Signal<number>;
|
|
22
|
-
/** Whether the slider is disabled. */
|
|
23
|
-
disabled: WritableSignal<boolean>;
|
|
24
|
-
/** Whether the slider displays tick marks along the slider track. */
|
|
25
|
-
showTickMarks: Signal<boolean>;
|
|
26
|
-
/** Whether the slider is ltr or rtl.
|
|
27
|
-
* Any consumer of slider interested in getting the current
|
|
28
|
-
* direction state, will consume this signal.
|
|
29
|
-
*/
|
|
30
|
-
direction: Signal<Direction>;
|
|
31
|
-
/** The underlying slider's track element */
|
|
32
|
-
brnSliderTrack: Signal<BrnSliderTrack | undefined>;
|
|
33
|
-
/** The aria-labelledby element */
|
|
34
|
-
label: Signal<BrnLabelDirective | null>;
|
|
35
|
-
/** The optional aria-label fallback value.
|
|
36
|
-
* If no label is provided, this input must be provided by the user,
|
|
37
|
-
* otherwise an error will be displayed prompting the user to either
|
|
38
|
-
* provide a spartan-ui label or a fallback aria label text.
|
|
39
|
-
*/
|
|
40
|
-
ariaLabel: Signal<string | null>;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Directive that adds slider-specific behaviors to an input element inside `<brn-slider>`.
|
|
44
|
-
*/
|
|
45
|
-
export declare class BrnSliderInputDirective implements ControlValueAccessor, BrnSliderInput {
|
|
46
|
-
private _onChangeFn;
|
|
47
|
-
private _onTouchedFn;
|
|
48
|
-
protected isDisabled: Signal<true | undefined>;
|
|
49
|
-
protected valueNow: Signal<number>;
|
|
50
|
-
protected valueMin: Signal<number>;
|
|
51
|
-
protected valueMax: Signal<number>;
|
|
52
|
-
protected ariaLabelledby: Signal<import("@angular/core").InputSignal<string> | undefined>;
|
|
53
|
-
protected ariaLabel: Signal<string | null>;
|
|
54
|
-
readonly value: WritableSignal<number>;
|
|
55
|
-
readonly isFocused: WritableSignal<boolean>;
|
|
56
|
-
private readonly _platformId;
|
|
57
|
-
private readonly _elementRef;
|
|
58
|
-
private readonly _slider;
|
|
59
|
-
private readonly _renderer2;
|
|
60
|
-
private readonly _changeDetector;
|
|
3
|
+
export declare class BrnSliderTrackDirective {
|
|
4
|
+
/** Access the slider */
|
|
5
|
+
protected readonly slider: import("@spartan-ng/brain/slider").BrnSliderDirective;
|
|
6
|
+
/** @internal Access the slider track */
|
|
7
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
61
8
|
constructor();
|
|
62
|
-
|
|
63
|
-
onBlur(): void;
|
|
64
|
-
onInput(): void;
|
|
65
|
-
onChange(): void;
|
|
66
|
-
writeValue(obj: number): void;
|
|
67
|
-
registerOnChange(fn: (value: string | number) => void): void;
|
|
68
|
-
registerOnTouched(fn: () => void): void;
|
|
69
|
-
/**
|
|
70
|
-
* Sets the disabled state of the slider.
|
|
71
|
-
* @param isDisabled The new disabled state
|
|
72
|
-
*/
|
|
73
|
-
setDisabledState(isDisabled: boolean): void;
|
|
74
|
-
private _updateHostElementValue;
|
|
75
|
-
private _updateValue;
|
|
76
|
-
private _updateHostElementStep;
|
|
77
|
-
private _updateMinValue;
|
|
78
|
-
private _updateMaxValue;
|
|
79
|
-
private _updateDirection;
|
|
80
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnSliderInputDirective, never>;
|
|
81
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnSliderInputDirective, "input[brnSliderInput]", never, {}, {}, never, never, true, never>;
|
|
82
|
-
}
|
|
83
|
-
export declare class BrnSliderDirective implements BrnSlider, AfterViewInit, OnDestroy {
|
|
84
|
-
readonly label: import("@angular/core").InputSignal<BrnLabelDirective | null>;
|
|
85
|
-
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
86
|
-
/** Used only as an input. */
|
|
87
|
-
readonly dir: import("@angular/core").InputSignal<Direction>;
|
|
88
|
-
readonly disabled: import("@angular/core").ModelSignal<boolean>;
|
|
89
|
-
readonly min: import("@angular/core").ModelSignal<number>;
|
|
90
|
-
readonly max: import("@angular/core").ModelSignal<number>;
|
|
91
|
-
readonly step: import("@angular/core").InputSignal<number>;
|
|
92
|
-
readonly showTickMarks: import("@angular/core").InputSignal<boolean>;
|
|
93
|
-
readonly direction: WritableSignal<Direction>;
|
|
94
|
-
private readonly _destroyed;
|
|
95
|
-
private readonly _injector;
|
|
96
|
-
private readonly _dir;
|
|
97
|
-
private readonly _platformId;
|
|
98
|
-
readonly brnSliderTrack: Signal<BrnSliderTrack | undefined>;
|
|
99
|
-
ngAfterViewInit(): void;
|
|
100
|
-
ngOnDestroy(): void;
|
|
101
|
-
/**
|
|
102
|
-
* The method is responsible of setting the current direction state
|
|
103
|
-
* based on the latest 'dir' input or bidi state change. The only
|
|
104
|
-
* source of truth for slider direction state is the 'direction' signal
|
|
105
|
-
* and all interested consumers of it, will consume this interface exposed signal.
|
|
106
|
-
*/
|
|
107
|
-
private _updateDirectionality;
|
|
108
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnSliderDirective, never>;
|
|
109
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnSliderDirective, "[brnSlider]", ["brnSlider"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "disabled": { "alias": "brnSliderDisabled"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "showTickMarks": { "alias": "showTickMarks"; "required": false; "isSignal": true; }; }, { "disabled": "brnSliderDisabledChange"; "min": "minChange"; "max": "maxChange"; }, ["brnSliderTrack"], never, true, never>;
|
|
110
|
-
}
|
|
111
|
-
export interface BrnSliderTrack {
|
|
112
|
-
/** The track's active portion. */
|
|
113
|
-
activeTrackPercentage: Signal<number>;
|
|
114
|
-
/** The host element's bounding client rect width without padding left and right. */
|
|
115
|
-
hostElementWidth: Signal<number>;
|
|
116
|
-
/** The available tick mark track width based on slider's step min and max values. */
|
|
117
|
-
tickMarkTrackWidth: Signal<number>;
|
|
118
|
-
/** The tick marks array indicating if a mark is currently active or inactive. */
|
|
119
|
-
tickMarks: Signal<Array<boolean>>;
|
|
120
|
-
/** The underlying slider's track input element */
|
|
121
|
-
brnSliderInput: Signal<BrnSliderInput | undefined>;
|
|
122
|
-
}
|
|
123
|
-
export declare class BrnSliderTrackDirective implements BrnSliderTrack, AfterViewInit, OnDestroy {
|
|
124
|
-
readonly hostElementWidth: WritableSignal<number>;
|
|
125
|
-
private readonly _destroyed;
|
|
126
|
-
private readonly _slider;
|
|
127
|
-
private readonly _platformId;
|
|
128
|
-
private readonly _elementRef;
|
|
129
|
-
private readonly _sharedResizeObserver;
|
|
130
|
-
readonly brnSliderInput: Signal<BrnSliderInput | undefined>;
|
|
131
|
-
activeTrackPercentage: Signal<number>;
|
|
132
|
-
tickMarkTrackWidth: Signal<number>;
|
|
133
|
-
tickMarks: Signal<any[]>;
|
|
134
|
-
ngAfterViewInit(): void;
|
|
135
|
-
ngOnDestroy(): void;
|
|
136
|
-
private _onResize;
|
|
137
|
-
private _storeDimensions;
|
|
9
|
+
protected moveThumbToPoint(event: MouseEvent): void;
|
|
138
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<BrnSliderTrackDirective, never>;
|
|
139
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnSliderTrackDirective, "[brnSliderTrack]", never, {}, {},
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnSliderTrackDirective, "[brnSliderTrack]", never, {}, {}, never, never, true, never>;
|
|
140
12
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ExistingProvider, InjectionToken, Type } from '@angular/core';
|
|
2
|
+
import type { BrnSliderTrackDirective } from './brn-slider-track.directive';
|
|
3
|
+
export declare const BrnSliderTrackToken: InjectionToken<BrnSliderTrackDirective>;
|
|
4
|
+
export declare function provideBrnSliderTrack(slider: Type<BrnSliderTrackDirective>): ExistingProvider;
|
|
5
|
+
export declare function injectBrnSliderTrack(): BrnSliderTrackDirective;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
|
|
5
|
+
import type { BrnSliderTrackDirective } from './brn-slider-track.directive';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class BrnSliderDirective implements ControlValueAccessor, OnInit {
|
|
8
|
+
private readonly _changeDetectorRef;
|
|
9
|
+
private readonly _elementRef;
|
|
10
|
+
readonly value: import("@angular/core").ModelSignal<number>;
|
|
11
|
+
readonly min: import("@angular/core").InputSignalWithTransform<number, NumberInput>;
|
|
12
|
+
readonly max: import("@angular/core").InputSignalWithTransform<number, NumberInput>;
|
|
13
|
+
readonly step: import("@angular/core").InputSignalWithTransform<number, NumberInput>;
|
|
14
|
+
readonly _disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
15
|
+
/** Whether we should show tick marks */
|
|
16
|
+
readonly showTicks: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
readonly ticks: import("@angular/core").Signal<any[]>;
|
|
19
|
+
/** @internal */
|
|
20
|
+
readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
/** @internal */
|
|
22
|
+
readonly percentage: import("@angular/core").Signal<number>;
|
|
23
|
+
/** @internal Store the on change callback */
|
|
24
|
+
protected _onChange?: ChangeFn<number>;
|
|
25
|
+
/** @internal Store the on touched callback */
|
|
26
|
+
protected _onTouched?: TouchFn;
|
|
27
|
+
/** @internal Store the track */
|
|
28
|
+
readonly track: import("@angular/core").WritableSignal<BrnSliderTrackDirective | null>;
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
registerOnChange(fn: (value: number) => void): void;
|
|
31
|
+
registerOnTouched(fn: () => void): void;
|
|
32
|
+
setDisabledState(isDisabled: boolean): void;
|
|
33
|
+
writeValue(value: number): void;
|
|
34
|
+
setValue(value: number): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnSliderDirective, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnSliderDirective, "[brnSlider]", ["brnSlider"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "_disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ExistingProvider, Type } from '@angular/core';
|
|
2
|
+
import type { BrnSliderDirective } from './brn-slider.directive';
|
|
3
|
+
export declare function provideBrnSlider(slider: Type<BrnSliderDirective>): ExistingProvider;
|
|
4
|
+
export declare function injectBrnSlider(): BrnSliderDirective;
|
package/toggle/index.d.ts
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./lib/brn-toggle.directive";
|
|
3
|
-
import * as i2 from "./lib/brn-toggle-group.component";
|
|
4
|
-
export * from './lib/brn-toggle-group.component';
|
|
5
3
|
export * from './lib/brn-toggle.directive';
|
|
6
4
|
export declare class BrnToggleModule {
|
|
7
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<BrnToggleModule, never>;
|
|
8
6
|
static ɵmod: i0.ɵɵNgModuleDeclaration<BrnToggleModule, never, [typeof i1.BrnToggleDirective], [typeof i1.BrnToggleDirective]>;
|
|
9
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<BrnToggleModule>;
|
|
10
8
|
}
|
|
11
|
-
export declare class BrnToggleGroupModule {
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnToggleGroupModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BrnToggleGroupModule, never, [typeof i1.BrnToggleDirective, typeof i2.BrnToggleGroupComponent], [typeof i1.BrnToggleDirective, typeof i2.BrnToggleGroupComponent]>;
|
|
14
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<BrnToggleGroupModule>;
|
|
15
|
-
}
|
|
@@ -3,8 +3,6 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class BrnToggleDirective<T> {
|
|
4
4
|
private static _uniqueId;
|
|
5
5
|
private readonly _changeDetector;
|
|
6
|
-
/** Access the toggle group if available. */
|
|
7
|
-
protected readonly group: import("@spartan-ng/brain/toggle").BrnToggleGroupComponent<T> | null;
|
|
8
6
|
/** The id of the toggle. */
|
|
9
7
|
readonly id: import("@angular/core").InputSignal<string>;
|
|
10
8
|
/** The value this toggle represents. */
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./lib/brn-toggle-item.directive";
|
|
3
|
+
import * as i2 from "./lib/brn-toggle-group.component";
|
|
4
|
+
export * from './lib/brn-toggle-group.component';
|
|
5
|
+
export * from './lib/brn-toggle-item.directive';
|
|
6
|
+
export declare class BrnToggleGroupModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnToggleGroupModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BrnToggleGroupModule, never, [typeof i1.BrnToggleGroupItemDirective, typeof i2.BrnToggleGroupComponent], [typeof i1.BrnToggleGroupItemDirective, typeof i2.BrnToggleGroupComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BrnToggleGroupModule>;
|
|
10
|
+
}
|
|
11
|
+
export declare class BrnToggleGroupItemModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnToggleGroupItemModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BrnToggleGroupItemModule, never, [typeof i1.BrnToggleGroupItemDirective], [typeof i1.BrnToggleGroupItemDirective]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BrnToggleGroupItemModule>;
|
|
15
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { type ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import {
|
|
3
|
+
import { BrnToggleGroupItemDirective } from './brn-toggle-item.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare const BRN_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR: {
|
|
6
6
|
provide: import("@angular/core").InjectionToken<readonly ControlValueAccessor[]>;
|
|
@@ -8,9 +8,9 @@ export declare const BRN_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR: {
|
|
|
8
8
|
multi: boolean;
|
|
9
9
|
};
|
|
10
10
|
export declare class BrnButtonToggleChange<T = unknown> {
|
|
11
|
-
source:
|
|
11
|
+
source: BrnToggleGroupItemDirective<T>;
|
|
12
12
|
value: ToggleValue<T>;
|
|
13
|
-
constructor(source:
|
|
13
|
+
constructor(source: BrnToggleGroupItemDirective<T>, value: ToggleValue<T>);
|
|
14
14
|
}
|
|
15
15
|
export declare class BrnToggleGroupComponent<T = unknown> implements ControlValueAccessor {
|
|
16
16
|
/**
|
|
@@ -48,12 +48,12 @@ export declare class BrnToggleGroupComponent<T = unknown> implements ControlValu
|
|
|
48
48
|
* @internal
|
|
49
49
|
* Selects a value.
|
|
50
50
|
*/
|
|
51
|
-
select(value: T, source:
|
|
51
|
+
select(value: T, source: BrnToggleGroupItemDirective<T>): void;
|
|
52
52
|
/**
|
|
53
53
|
* @internal
|
|
54
54
|
* Deselects a value.
|
|
55
55
|
*/
|
|
56
|
-
deselect(value: T, source:
|
|
56
|
+
deselect(value: T, source: BrnToggleGroupItemDirective<T>): void;
|
|
57
57
|
/**
|
|
58
58
|
* @internal
|
|
59
59
|
* Determines whether a value is selected.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BrnToggleGroupItemDirective<T> {
|
|
4
|
+
private static _uniqueId;
|
|
5
|
+
private readonly _changeDetector;
|
|
6
|
+
/** Access the toggle group if available. */
|
|
7
|
+
protected readonly group: import("@spartan-ng/brain/toggle-group").BrnToggleGroupComponent<T> | null;
|
|
8
|
+
/** The id of the toggle. */
|
|
9
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
10
|
+
/** The value this toggle represents. */
|
|
11
|
+
readonly value: import("@angular/core").InputSignal<T | undefined>;
|
|
12
|
+
/** Whether the toggle is disabled. */
|
|
13
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
14
|
+
/** The current state of the toggle when not used in a group. */
|
|
15
|
+
readonly state: import("@angular/core").ModelSignal<"on" | "off">;
|
|
16
|
+
/** Whether the toggle is responds to click events. */
|
|
17
|
+
readonly disableToggleClick: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
18
|
+
/** Whether the toggle is in the on state. */
|
|
19
|
+
protected readonly isOn: import("@angular/core").Signal<boolean>;
|
|
20
|
+
/** The current state that reflects the group state or the model state. */
|
|
21
|
+
protected readonly _state: import("@angular/core").Signal<"on" | "off">;
|
|
22
|
+
toggle(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BrnToggleGroupItemDirective<any>, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnToggleGroupItemDirective<any>, "button[hlmToggleGroupItem], button[brnToggleGroupItem]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "disableToggleClick": { "alias": "disableToggleClick"; "required": false; "isSignal": true; }; }, { "state": "stateChange"; }, never, never, true, never>;
|
|
25
|
+
}
|
|
@@ -51,7 +51,8 @@ export declare class BrnTooltipTriggerDirective implements OnDestroy, AfterViewI
|
|
|
51
51
|
/** The default duration in ms that exit animation takes before hiding */
|
|
52
52
|
readonly exitAnimationDuration: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
53
53
|
/** The default delay in ms before hiding the tooltip after hide is called */
|
|
54
|
-
readonly
|
|
54
|
+
readonly _tooltipContentClasses: import("@angular/core").InputSignal<string>;
|
|
55
|
+
readonly tooltipContentClasses: import("@angular/core").Signal<import("@angular/core").WritableSignal<string>>;
|
|
55
56
|
/**
|
|
56
57
|
* How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
|
|
57
58
|
* uses a long press gesture to show and hide, however it can conflict with the native browser
|
|
@@ -68,12 +69,15 @@ export declare class BrnTooltipTriggerDirective implements OnDestroy, AfterViewI
|
|
|
68
69
|
*/
|
|
69
70
|
readonly touchGestures: import("@angular/core").InputSignal<TooltipTouchGestures>;
|
|
70
71
|
/** The message to be used to describe the aria in the tooltip */
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
72
|
+
readonly _ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
73
|
+
readonly ariaDescribedBy: import("@angular/core").Signal<import("@angular/core").WritableSignal<string>>;
|
|
74
|
+
readonly ariaDescribedByPrevious: import("@angular/core").Signal<import("@angular/core").WritableSignal<string>>;
|
|
73
75
|
/** The content to be displayed in the tooltip */
|
|
74
76
|
readonly brnTooltipTrigger: import("@angular/core").InputSignal<string | TemplateRef<unknown> | null>;
|
|
75
77
|
readonly brnTooltipTriggerState: import("@angular/core").Signal<string | TemplateRef<unknown> | null>;
|
|
76
78
|
constructor();
|
|
79
|
+
setTooltipContentClasses(tooltipContentClasses: string): void;
|
|
80
|
+
setAriaDescribedBy(ariaDescribedBy: string): void;
|
|
77
81
|
private _initPositionEffect;
|
|
78
82
|
private _initBrnTooltipDisabledEffect;
|
|
79
83
|
private _initPositionAtOriginEffect;
|
|
@@ -133,5 +137,5 @@ export declare class BrnTooltipTriggerDirective implements OnDestroy, AfterViewI
|
|
|
133
137
|
/** Disables the native browser gestures, based on how the tooltip has been configured. */
|
|
134
138
|
private _disableNativeGesturesIfNecessary;
|
|
135
139
|
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTooltipTriggerDirective, never>;
|
|
136
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnTooltipTriggerDirective, "[brnTooltipTrigger]", ["brnTooltipTrigger"], { "position": { "alias": "position"; "required": false; "isSignal": true; }; "positionAtOrigin": { "alias": "positionAtOrigin"; "required": false; "isSignal": true; }; "brnTooltipDisabled": { "alias": "brnTooltipDisabled"; "required": false; "isSignal": true; }; "showDelay": { "alias": "showDelay"; "required": false; "isSignal": true; }; "hideDelay": { "alias": "hideDelay"; "required": false; "isSignal": true; }; "exitAnimationDuration": { "alias": "exitAnimationDuration"; "required": false; "isSignal": true; }; "
|
|
140
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnTooltipTriggerDirective, "[brnTooltipTrigger]", ["brnTooltipTrigger"], { "position": { "alias": "position"; "required": false; "isSignal": true; }; "positionAtOrigin": { "alias": "positionAtOrigin"; "required": false; "isSignal": true; }; "brnTooltipDisabled": { "alias": "brnTooltipDisabled"; "required": false; "isSignal": true; }; "showDelay": { "alias": "showDelay"; "required": false; "isSignal": true; }; "hideDelay": { "alias": "hideDelay"; "required": false; "isSignal": true; }; "exitAnimationDuration": { "alias": "exitAnimationDuration"; "required": false; "isSignal": true; }; "_tooltipContentClasses": { "alias": "tooltipContentClasses"; "required": false; "isSignal": true; }; "touchGestures": { "alias": "touchGestures"; "required": false; "isSignal": true; }; "_ariaDescribedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "brnTooltipTrigger": { "alias": "brnTooltipTrigger"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
137
141
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnSliderTickMarkDirective {
|
|
3
|
-
private readonly _platformId;
|
|
4
|
-
readonly data: import("@angular/core").InputSignal<{
|
|
5
|
-
tickMarkIndex: number;
|
|
6
|
-
totalTickMarks: number;
|
|
7
|
-
} | undefined>;
|
|
8
|
-
private readonly _sliderTrack;
|
|
9
|
-
private readonly _elementRef;
|
|
10
|
-
private readonly _slider;
|
|
11
|
-
constructor();
|
|
12
|
-
private _updateTranslateX;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnSliderTickMarkDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnSliderTickMarkDirective, "[brnSliderTickMark]", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnSliderTrackActiveFillDirective {
|
|
3
|
-
private readonly _platformId;
|
|
4
|
-
private readonly _elementRef;
|
|
5
|
-
private readonly _sliderTrack;
|
|
6
|
-
constructor();
|
|
7
|
-
private _updateActiveTrackPercentage;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnSliderTrackActiveFillDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnSliderTrackActiveFillDirective, "[brnSliderTrackActiveFill]", never, {}, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
File without changes
|