@spartan-ng/brain 0.0.1-alpha.562 → 0.0.1-alpha.564
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/accordion/index.d.ts +125 -10
- package/alert-dialog/index.d.ts +40 -13
- package/autocomplete/index.d.ts +113 -15
- package/avatar/index.d.ts +40 -8
- package/button/index.d.ts +15 -3
- package/calendar/index.d.ts +465 -29
- package/checkbox/index.d.ts +156 -3
- package/collapsible/index.d.ts +70 -8
- package/command/index.d.ts +147 -16
- package/core/index.d.ts +153 -11
- package/date-time/index.d.ts +321 -3
- package/date-time-luxon/index.d.ts +32 -1
- package/dialog/index.d.ts +225 -21
- package/fesm2022/spartan-ng-brain-accordion.mjs +12 -12
- package/fesm2022/spartan-ng-brain-accordion.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-alert-dialog.mjs +18 -18
- package/fesm2022/spartan-ng-brain-alert-dialog.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-autocomplete.mjs +18 -18
- package/fesm2022/spartan-ng-brain-autocomplete.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-avatar.mjs +12 -12
- package/fesm2022/spartan-ng-brain-avatar.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-button.mjs +3 -3
- package/fesm2022/spartan-ng-brain-button.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-calendar.mjs +42 -42
- package/fesm2022/spartan-ng-brain-calendar.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-checkbox.mjs +5 -5
- package/fesm2022/spartan-ng-brain-checkbox.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-collapsible.mjs +9 -9
- package/fesm2022/spartan-ng-brain-collapsible.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-command.mjs +29 -34
- package/fesm2022/spartan-ng-brain-command.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-core.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-date-time-luxon.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-date-time.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-dialog.mjs +24 -24
- package/fesm2022/spartan-ng-brain-dialog.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-form-field.mjs +3 -3
- package/fesm2022/spartan-ng-brain-form-field.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-forms.mjs +6 -6
- package/fesm2022/spartan-ng-brain-forms.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-hover-card.mjs +12 -12
- package/fesm2022/spartan-ng-brain-hover-card.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-input-otp.mjs +6 -6
- package/fesm2022/spartan-ng-brain-input-otp.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-label.mjs +3 -3
- package/fesm2022/spartan-ng-brain-label.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-menu.mjs +24 -24
- package/fesm2022/spartan-ng-brain-menu.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-navigation-menu.mjs +21 -21
- package/fesm2022/spartan-ng-brain-navigation-menu.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-popover.mjs +12 -12
- package/fesm2022/spartan-ng-brain-popover.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-progress.mjs +6 -6
- package/fesm2022/spartan-ng-brain-progress.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-radio-group.mjs +6 -6
- package/fesm2022/spartan-ng-brain-radio-group.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-resizable.mjs +10 -11
- package/fesm2022/spartan-ng-brain-resizable.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-select.mjs +33 -33
- package/fesm2022/spartan-ng-brain-select.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-separator.mjs +3 -3
- package/fesm2022/spartan-ng-brain-separator.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-sheet.mjs +21 -21
- package/fesm2022/spartan-ng-brain-sheet.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-slider.mjs +17 -17
- package/fesm2022/spartan-ng-brain-slider.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-switch.mjs +8 -8
- package/fesm2022/spartan-ng-brain-switch.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-tabs.mjs +15 -15
- package/fesm2022/spartan-ng-brain-tabs.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-toggle-group.mjs +6 -6
- package/fesm2022/spartan-ng-brain-toggle-group.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-toggle.mjs +3 -3
- package/fesm2022/spartan-ng-brain-toggle.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-tooltip.mjs +14 -14
- package/fesm2022/spartan-ng-brain-tooltip.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain.mjs.map +1 -1
- package/form-field/index.d.ts +14 -1
- package/forms/index.d.ts +35 -3
- package/hover-card/index.d.ts +86 -5
- package/index.d.ts +2 -2
- package/input-otp/index.d.ts +82 -5
- package/label/index.d.ts +20 -3
- package/menu/index.d.ts +79 -17
- package/navigation-menu/index.d.ts +185 -13
- package/package.json +24 -24
- package/popover/index.d.ts +39 -9
- package/progress/index.d.ts +39 -6
- package/radio-group/index.d.ts +124 -6
- package/resizable/index.d.ts +103 -3
- package/select/index.d.ts +217 -21
- package/separator/index.d.ts +27 -4
- package/sheet/index.d.ts +51 -15
- package/slider/index.d.ts +100 -12
- package/switch/index.d.ts +141 -5
- package/tabs/index.d.ts +276 -10
- package/toggle/index.d.ts +30 -3
- package/toggle-group/index.d.ts +108 -6
- package/tooltip/index.d.ts +261 -10
- package/accordion/lib/brn-accordion-content.d.ts +0 -20
- package/accordion/lib/brn-accordion-item.d.ts +0 -28
- package/accordion/lib/brn-accordion-token.d.ts +0 -19
- package/accordion/lib/brn-accordion-trigger.d.ts +0 -16
- package/accordion/lib/brn-accordion.d.ts +0 -39
- package/alert-dialog/lib/brn-alert-dialog-content.d.ts +0 -6
- package/alert-dialog/lib/brn-alert-dialog-description.d.ts +0 -6
- package/alert-dialog/lib/brn-alert-dialog-overlay.d.ts +0 -6
- package/alert-dialog/lib/brn-alert-dialog-title.d.ts +0 -6
- package/alert-dialog/lib/brn-alert-dialog-trigger.d.ts +0 -10
- package/alert-dialog/lib/brn-alert-dialog.d.ts +0 -7
- package/autocomplete/lib/brn-autocomplete-empty.d.ts +0 -11
- package/autocomplete/lib/brn-autocomplete-group.d.ts +0 -8
- package/autocomplete/lib/brn-autocomplete-item.d.ts +0 -32
- package/autocomplete/lib/brn-autocomplete-item.token.d.ts +0 -4
- package/autocomplete/lib/brn-autocomplete-list.d.ts +0 -8
- package/autocomplete/lib/brn-autocomplete-search-input.d.ts +0 -13
- package/autocomplete/lib/brn-autocomplete.d.ts +0 -30
- package/autocomplete/lib/brn-autocomplete.token.d.ts +0 -5
- package/avatar/lib/brn-avatar.d.ts +0 -7
- package/avatar/lib/fallback/brn-avatar-fallback.d.ts +0 -9
- package/avatar/lib/fallback/index.d.ts +0 -1
- package/avatar/lib/image/brn-avatar-image.d.ts +0 -9
- package/avatar/lib/image/index.d.ts +0 -1
- package/avatar/lib/util/hex-color-for.d.ts +0 -1
- package/avatar/lib/util/index.d.ts +0 -3
- package/avatar/lib/util/initials.pipe.d.ts +0 -7
- package/avatar/lib/util/is-bright.d.ts +0 -1
- package/button/lib/brn-button.d.ts +0 -10
- package/calendar/lib/brn-calendar-cell-button.d.ts +0 -62
- package/calendar/lib/brn-calendar-cell.d.ts +0 -5
- package/calendar/lib/brn-calendar-grid.d.ts +0 -7
- package/calendar/lib/brn-calendar-header.d.ts +0 -7
- package/calendar/lib/brn-calendar-month-select.d.ts +0 -17
- package/calendar/lib/brn-calendar-next-button.d.ts +0 -13
- package/calendar/lib/brn-calendar-previous-button.d.ts +0 -13
- package/calendar/lib/brn-calendar-week.d.ts +0 -25
- package/calendar/lib/brn-calendar-weekday.d.ts +0 -28
- package/calendar/lib/brn-calendar-year-select.d.ts +0 -16
- package/calendar/lib/brn-calendar.d.ts +0 -74
- package/calendar/lib/brn-calendar.token.d.ts +0 -22
- package/calendar/lib/i18n/calendar-i18n.d.ts +0 -32
- package/calendar/lib/mode/brn-calendar-multiple.d.ts +0 -77
- package/calendar/lib/mode/brn-calendar-range.d.ts +0 -79
- package/checkbox/lib/brn-checkbox.d.ts +0 -151
- package/collapsible/lib/brn-collapsible-content.d.ts +0 -15
- package/collapsible/lib/brn-collapsible-token.d.ts +0 -16
- package/collapsible/lib/brn-collapsible-trigger.d.ts +0 -9
- package/collapsible/lib/brn-collapsible.d.ts +0 -24
- package/command/lib/brn-command-empty.d.ts +0 -11
- package/command/lib/brn-command-group.d.ts +0 -12
- package/command/lib/brn-command-item.d.ts +0 -42
- package/command/lib/brn-command-item.token.d.ts +0 -4
- package/command/lib/brn-command-list.d.ts +0 -8
- package/command/lib/brn-command-search-input.d.ts +0 -24
- package/command/lib/brn-command-search-input.token.d.ts +0 -4
- package/command/lib/brn-command.d.ts +0 -29
- package/command/lib/brn-command.token.d.ts +0 -11
- package/core/helpers/computed-previous.d.ts +0 -36
- package/core/helpers/create-hover-observable.d.ts +0 -7
- package/core/helpers/create-injection-token.d.ts +0 -20
- package/core/helpers/custom-element-class-settable.d.ts +0 -12
- package/core/helpers/debounced-signal.d.ts +0 -9
- package/core/helpers/dev-mode.d.ts +0 -5
- package/core/helpers/exposes-side.d.ts +0 -13
- package/core/helpers/exposes-state.d.ts +0 -13
- package/core/helpers/measure-dimensions.d.ts +0 -5
- package/core/helpers/table-classes-settable.d.ts +0 -16
- package/core/helpers/wait-for-element-animations.d.ts +0 -5
- package/core/helpers/zone-free.d.ts +0 -10
- package/date-time/lib/date-adapter.d.ts +0 -186
- package/date-time/lib/native-date-adapter.d.ts +0 -103
- package/date-time/lib/utc-date-adapter.d.ts +0 -28
- package/date-time-luxon/lib/date-adapter.d.ts +0 -29
- package/dialog/lib/brn-dialog-close.d.ts +0 -8
- package/dialog/lib/brn-dialog-content.d.ts +0 -12
- package/dialog/lib/brn-dialog-description.d.ts +0 -8
- package/dialog/lib/brn-dialog-options.d.ts +0 -26
- package/dialog/lib/brn-dialog-overlay.d.ts +0 -9
- package/dialog/lib/brn-dialog-ref.d.ts +0 -24
- package/dialog/lib/brn-dialog-state.d.ts +0 -1
- package/dialog/lib/brn-dialog-title.d.ts +0 -8
- package/dialog/lib/brn-dialog-token.d.ts +0 -29
- package/dialog/lib/brn-dialog-trigger.d.ts +0 -18
- package/dialog/lib/brn-dialog-utils.d.ts +0 -1
- package/dialog/lib/brn-dialog.d.ts +0 -61
- package/dialog/lib/brn-dialog.service.d.ts +0 -23
- package/form-field/lib/brn-form-field-control.d.ts +0 -11
- package/forms/lib/control-value-accessor.d.ts +0 -2
- package/forms/lib/error-options.d.ts +0 -14
- package/forms/lib/error-state-tracker.d.ts +0 -15
- package/hover-card/lib/brn-hover-card-content.service.d.ts +0 -72
- package/hover-card/lib/brn-hover-card.d.ts +0 -9
- package/input-otp/lib/brn-input-otp-slot.d.ts +0 -15
- package/input-otp/lib/brn-input-otp.d.ts +0 -61
- package/input-otp/lib/brn-input-otp.token.d.ts +0 -5
- package/label/lib/brn-label.d.ts +0 -15
- package/menu/lib/brn-context-menu-trigger.d.ts +0 -14
- package/menu/lib/brn-menu-align.d.ts +0 -4
- package/menu/lib/brn-menu-bar.d.ts +0 -6
- package/menu/lib/brn-menu-group.d.ts +0 -6
- package/menu/lib/brn-menu-item-checkbox.d.ts +0 -11
- package/menu/lib/brn-menu-item-radio.d.ts +0 -11
- package/menu/lib/brn-menu-item.d.ts +0 -10
- package/menu/lib/brn-menu-trigger.d.ts +0 -11
- package/menu/lib/brn-menu.d.ts +0 -11
- package/navigation-menu/lib/brn-navigation-menu-content.d.ts +0 -22
- package/navigation-menu/lib/brn-navigation-menu-content.service.d.ts +0 -44
- package/navigation-menu/lib/brn-navigation-menu-item-focusable.token.d.ts +0 -4
- package/navigation-menu/lib/brn-navigation-menu-item.d.ts +0 -23
- package/navigation-menu/lib/brn-navigation-menu-item.token.d.ts +0 -5
- package/navigation-menu/lib/brn-navigation-menu-link.d.ts +0 -22
- package/navigation-menu/lib/brn-navigation-menu-list.d.ts +0 -7
- package/navigation-menu/lib/brn-navigation-menu-trigger.d.ts +0 -44
- package/navigation-menu/lib/brn-navigation-menu.d.ts +0 -61
- package/navigation-menu/lib/brn-navigation-menu.token.d.ts +0 -5
- package/navigation-menu/lib/brn-parent-nav-menu.token.d.ts +0 -8
- package/popover/lib/brn-popover-close.d.ts +0 -6
- package/popover/lib/brn-popover-content.d.ts +0 -6
- package/popover/lib/brn-popover-trigger.d.ts +0 -10
- package/popover/lib/brn-popover.d.ts +0 -15
- package/progress/lib/brn-progress-indicator.d.ts +0 -6
- package/progress/lib/brn-progress.d.ts +0 -24
- package/progress/lib/brn-progress.token.d.ts +0 -4
- package/radio-group/lib/brn-radio-group.d.ts +0 -59
- package/radio-group/lib/brn-radio-group.token.d.ts +0 -4
- package/radio-group/lib/brn-radio.d.ts +0 -58
- package/resizable/lib/brn-resizable-group.d.ts +0 -37
- package/resizable/lib/brn-resizable-handle.d.ts +0 -26
- package/resizable/lib/brn-resizable-panel.d.ts +0 -39
- package/select/lib/brn-select-content.d.ts +0 -48
- package/select/lib/brn-select-content.token.d.ts +0 -4
- package/select/lib/brn-select-group.d.ts +0 -6
- package/select/lib/brn-select-label.d.ts +0 -9
- package/select/lib/brn-select-option.d.ts +0 -25
- package/select/lib/brn-select-placeholder.d.ts +0 -8
- package/select/lib/brn-select-trigger.d.ts +0 -24
- package/select/lib/brn-select-value-template.d.ts +0 -11
- package/select/lib/brn-select-value.d.ts +0 -18
- package/select/lib/brn-select.d.ts +0 -69
- package/select/lib/brn-select.token.d.ts +0 -4
- package/separator/lib/brn-separator.d.ts +0 -14
- package/separator/lib/brn-separator.token.d.ts +0 -7
- package/sheet/lib/brn-sheet-close.d.ts +0 -6
- package/sheet/lib/brn-sheet-content.d.ts +0 -8
- package/sheet/lib/brn-sheet-description.d.ts +0 -6
- package/sheet/lib/brn-sheet-overlay.d.ts +0 -6
- package/sheet/lib/brn-sheet-title.d.ts +0 -6
- package/sheet/lib/brn-sheet-trigger.d.ts +0 -10
- package/sheet/lib/brn-sheet.d.ts +0 -10
- package/slider/lib/brn-slider-range.d.ts +0 -7
- package/slider/lib/brn-slider-thumb.d.ts +0 -24
- package/slider/lib/brn-slider-tick.d.ts +0 -12
- package/slider/lib/brn-slider-track.d.ts +0 -12
- package/slider/lib/brn-slider-track.token.d.ts +0 -5
- package/slider/lib/brn-slider.d.ts +0 -39
- package/slider/lib/brn-slider.token.d.ts +0 -4
- package/switch/lib/brn-switch-thumb.d.ts +0 -5
- package/switch/lib/brn-switch.d.ts +0 -131
- package/tabs/lib/brn-tabs-content.d.ts +0 -15
- package/tabs/lib/brn-tabs-list.d.ts +0 -17
- package/tabs/lib/brn-tabs-paginated-list.d.ts +0 -196
- package/tabs/lib/brn-tabs-trigger.d.ts +0 -21
- package/tabs/lib/brn-tabs.d.ts +0 -38
- package/toggle/lib/brn-toggle.d.ts +0 -25
- package/toggle-group/lib/brn-toggle-group.d.ts +0 -68
- package/toggle-group/lib/brn-toggle-group.token.d.ts +0 -4
- package/toggle-group/lib/brn-toggle-item.d.ts +0 -31
- package/tooltip/lib/brn-tooltip-content-template.d.ts +0 -8
- package/tooltip/lib/brn-tooltip-content.d.ts +0 -73
- package/tooltip/lib/brn-tooltip-trigger.d.ts +0 -141
- package/tooltip/lib/brn-tooltip.d.ts +0 -7
- package/tooltip/lib/brn-tooltip.token.d.ts +0 -28
package/tooltip/index.d.ts
CHANGED
|
@@ -1,10 +1,261 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, OnDestroy, ElementRef, InjectionToken, Provider, AfterViewInit, ValueProvider } from '@angular/core';
|
|
3
|
+
import * as rxjs from 'rxjs';
|
|
4
|
+
import { ScrollStrategy, ConnectedPosition, OriginConnectionPosition, OverlayConnectionPosition } from '@angular/cdk/overlay';
|
|
5
|
+
|
|
6
|
+
declare class BrnTooltip {
|
|
7
|
+
readonly tooltipTemplate: _angular_core.WritableSignal<TemplateRef<unknown> | null>;
|
|
8
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnTooltip, never>;
|
|
9
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnTooltip, "[brnTooltip]", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Internal component that wraps the tooltip's content.
|
|
14
|
+
* @docs-private
|
|
15
|
+
*/
|
|
16
|
+
declare class BrnTooltipContent implements OnDestroy {
|
|
17
|
+
private readonly _cdr;
|
|
18
|
+
private readonly _isBrowser;
|
|
19
|
+
private readonly _renderer2;
|
|
20
|
+
protected readonly _contentHovered: _angular_core.WritableSignal<boolean>;
|
|
21
|
+
readonly tooltipClasses: _angular_core.WritableSignal<string>;
|
|
22
|
+
readonly side: _angular_core.WritableSignal<string>;
|
|
23
|
+
/** Message to display in the tooltip */
|
|
24
|
+
content: string | TemplateRef<unknown> | null;
|
|
25
|
+
/** The timeout ID of any current timer set to show the tooltip */
|
|
26
|
+
private _showTimeoutId;
|
|
27
|
+
/** The timeout ID of any current timer set to hide the tooltip */
|
|
28
|
+
private _hideTimeoutId;
|
|
29
|
+
/** The timeout ID of any current timer set to animate the tooltip */
|
|
30
|
+
private _animateTimeoutId;
|
|
31
|
+
/** Element that caused the tooltip to open. */
|
|
32
|
+
triggerElement?: HTMLElement;
|
|
33
|
+
/** Amount of milliseconds to delay the closing sequence. */
|
|
34
|
+
mouseLeaveHideDelay: number;
|
|
35
|
+
/** Amount of milliseconds of closing animation. */
|
|
36
|
+
exitAnimationDuration: number;
|
|
37
|
+
/** Reference to the internal tooltip element. */
|
|
38
|
+
readonly tooltip: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
39
|
+
/** Whether interactions on the page should close the tooltip */
|
|
40
|
+
private _closeOnInteraction;
|
|
41
|
+
/** Whether the tooltip is currently visible. */
|
|
42
|
+
private _isVisible;
|
|
43
|
+
/** Subject for notifying that the tooltip has been hidden from the view */
|
|
44
|
+
private readonly _onHide;
|
|
45
|
+
readonly afterHidden: rxjs.Observable<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Shows the tooltip with originating from the provided origin
|
|
48
|
+
* @param delay Amount of milliseconds to the delay showing the tooltip.
|
|
49
|
+
*/
|
|
50
|
+
show(delay: number): void;
|
|
51
|
+
/**
|
|
52
|
+
* Begins to hide the tooltip after the provided delay in ms.
|
|
53
|
+
* @param delay Amount of milliseconds to delay hiding the tooltip.
|
|
54
|
+
* @param exitAnimationDuration Time before hiding to finish animation
|
|
55
|
+
* */
|
|
56
|
+
hide(delay: number, exitAnimationDuration: number): void;
|
|
57
|
+
/** Whether the tooltip is being displayed. */
|
|
58
|
+
isVisible(): boolean;
|
|
59
|
+
ngOnDestroy(): void;
|
|
60
|
+
_isTypeOfString(content: unknown): content is string;
|
|
61
|
+
/**
|
|
62
|
+
* Interactions on the HTML body should close the tooltip immediately as defined in the
|
|
63
|
+
* material design spec.
|
|
64
|
+
* https://material.io/design/components/tooltips.html#behavior
|
|
65
|
+
*/
|
|
66
|
+
_handleBodyInteraction(): void;
|
|
67
|
+
/**
|
|
68
|
+
* Marks that the tooltip needs to be checked in the next change detection run.
|
|
69
|
+
* Mainly used for rendering the initial text before positioning a tooltip, which
|
|
70
|
+
* can be problematic in components with OnPush change detection.
|
|
71
|
+
*/
|
|
72
|
+
_markForCheck(): void;
|
|
73
|
+
_handleMouseLeave({ relatedTarget }: MouseEvent): void;
|
|
74
|
+
/** Cancels any pending animation sequences. */
|
|
75
|
+
_cancelPendingAnimations(): void;
|
|
76
|
+
private _finalize;
|
|
77
|
+
/** Toggles the visibility of the tooltip element. */
|
|
78
|
+
private _toggleVisibility;
|
|
79
|
+
private _toggleDataAttributes;
|
|
80
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnTooltipContent, never>;
|
|
81
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BrnTooltipContent, "brn-tooltip-content", never, {}, {}, never, never, true, never>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare class BrnTooltipContentTemplate {
|
|
85
|
+
private readonly _brnTooltipDirective;
|
|
86
|
+
private readonly _tpl;
|
|
87
|
+
constructor();
|
|
88
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnTooltipContentTemplate, never>;
|
|
89
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnTooltipContentTemplate, "[brnTooltipContent]", never, {}, {}, never, never, true, never>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
type TooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after';
|
|
93
|
+
type TooltipTouchGestures = 'auto' | 'on' | 'off';
|
|
94
|
+
/** Time in ms to throttle repositioning after scroll events. */
|
|
95
|
+
declare const SCROLL_THROTTLE_MS = 20;
|
|
96
|
+
declare function getBrnTooltipInvalidPositionError(position: string): Error;
|
|
97
|
+
/** Injection token that determines the scroll handling while a tooltip is visible. */
|
|
98
|
+
declare const BRN_TOOLTIP_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
99
|
+
declare const BRN_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER: Provider;
|
|
100
|
+
declare class BrnTooltipTrigger implements OnDestroy, AfterViewInit {
|
|
101
|
+
private readonly _tooltipDirective;
|
|
102
|
+
private readonly _tooltipComponent;
|
|
103
|
+
private readonly _cssClassPrefix;
|
|
104
|
+
private readonly _destroyed;
|
|
105
|
+
private readonly _passiveListeners;
|
|
106
|
+
private readonly _defaultOptions;
|
|
107
|
+
private readonly _overlay;
|
|
108
|
+
private readonly _elementRef;
|
|
109
|
+
private readonly _scrollDispatcher;
|
|
110
|
+
private readonly _viewContainerRef;
|
|
111
|
+
private readonly _ngZone;
|
|
112
|
+
private readonly _platform;
|
|
113
|
+
private readonly _ariaDescriber;
|
|
114
|
+
private readonly _focusMonitor;
|
|
115
|
+
private readonly _dir;
|
|
116
|
+
private readonly _scrollStrategy;
|
|
117
|
+
private readonly _document;
|
|
118
|
+
private _portal?;
|
|
119
|
+
private _viewInitialized;
|
|
120
|
+
private _pointerExitEventsInitialized;
|
|
121
|
+
private readonly _viewportMargin;
|
|
122
|
+
private _currentPosition?;
|
|
123
|
+
private _touchstartTimeout?;
|
|
124
|
+
private _overlayRef;
|
|
125
|
+
private _tooltipInstance;
|
|
126
|
+
/** Allows the user to define the position of the tooltip relative to the parent element */
|
|
127
|
+
readonly position: _angular_core.InputSignal<TooltipPosition>;
|
|
128
|
+
/**
|
|
129
|
+
* Whether tooltip should be relative to the click or touch origin
|
|
130
|
+
* instead of outside the element bounding box.
|
|
131
|
+
*/
|
|
132
|
+
readonly positionAtOrigin: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
133
|
+
/** Disables the display of the tooltip. */
|
|
134
|
+
readonly brnTooltipDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
135
|
+
/** The default delay in ms before showing the tooltip after show is called */
|
|
136
|
+
readonly showDelay: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
137
|
+
/** The default delay in ms before hiding the tooltip after hide is called */
|
|
138
|
+
readonly hideDelay: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
139
|
+
/** The default duration in ms that exit animation takes before hiding */
|
|
140
|
+
readonly exitAnimationDuration: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
141
|
+
/** The default delay in ms before hiding the tooltip after hide is called */
|
|
142
|
+
readonly tooltipContentClasses: _angular_core.InputSignal<string>;
|
|
143
|
+
readonly computedTooltipContentClasses: _angular_core.Signal<_angular_core.WritableSignal<string>>;
|
|
144
|
+
/**
|
|
145
|
+
* How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
|
|
146
|
+
* uses a long press gesture to show and hide, however it can conflict with the native browser
|
|
147
|
+
* gestures. To work around the conflict, Angular Material disables native gestures on the
|
|
148
|
+
* trigger, but that might not be desirable on particular elements (e.g. inputs and draggable
|
|
149
|
+
* elements). The different values for this option configure the touch event handling as follows:
|
|
150
|
+
* - `auto` - Enables touch gestures for all elements, but tries to avoid conflicts with native
|
|
151
|
+
* browser gestures on particular elements. In particular, it allows text selection on inputs
|
|
152
|
+
* and textareas, and preserves the native browser dragging on elements marked as `draggable`.
|
|
153
|
+
* - `on` - Enables touch gestures for all elements and disables native
|
|
154
|
+
* browser gestures with no exceptions.
|
|
155
|
+
* - `off` - Disables touch gestures. Note that this will prevent the tooltip from
|
|
156
|
+
* showing on touch devices.
|
|
157
|
+
*/
|
|
158
|
+
readonly touchGestures: _angular_core.InputSignal<TooltipTouchGestures>;
|
|
159
|
+
/** The message to be used to describe the aria in the tooltip */
|
|
160
|
+
readonly ariaDescribedBy: _angular_core.InputSignal<string>;
|
|
161
|
+
readonly computedAriaDescribedBy: _angular_core.Signal<_angular_core.WritableSignal<string>>;
|
|
162
|
+
readonly ariaDescribedByPrevious: _angular_core.Signal<_angular_core.WritableSignal<string>>;
|
|
163
|
+
/** The content to be displayed in the tooltip */
|
|
164
|
+
readonly brnTooltipTrigger: _angular_core.InputSignal<string | TemplateRef<unknown> | null>;
|
|
165
|
+
readonly brnTooltipTriggerState: _angular_core.Signal<string | TemplateRef<unknown> | null>;
|
|
166
|
+
constructor();
|
|
167
|
+
setTooltipContentClasses(tooltipContentClasses: string): void;
|
|
168
|
+
setAriaDescribedBy(ariaDescribedBy: string): void;
|
|
169
|
+
private _initPositionEffect;
|
|
170
|
+
private _initBrnTooltipDisabledEffect;
|
|
171
|
+
private _initPositionAtOriginEffect;
|
|
172
|
+
private _initTooltipContentClassesEffect;
|
|
173
|
+
private _initAriaDescribedByPreviousEffect;
|
|
174
|
+
private _initBrnTooltipTriggerEffect;
|
|
175
|
+
private _initExitAnimationDurationEffect;
|
|
176
|
+
private _initHideDelayEffect;
|
|
177
|
+
ngAfterViewInit(): void;
|
|
178
|
+
/**
|
|
179
|
+
* Dispose the tooltip when destroyed.
|
|
180
|
+
*/
|
|
181
|
+
ngOnDestroy(): void;
|
|
182
|
+
/** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */
|
|
183
|
+
show(delay?: number, origin?: {
|
|
184
|
+
x: number;
|
|
185
|
+
y: number;
|
|
186
|
+
}): void;
|
|
187
|
+
/** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */
|
|
188
|
+
hide(delay?: number, exitAnimationDuration?: number): void;
|
|
189
|
+
toggle(origin?: {
|
|
190
|
+
x: number;
|
|
191
|
+
y: number;
|
|
192
|
+
}): void;
|
|
193
|
+
_isTooltipVisible(): boolean;
|
|
194
|
+
private _createOverlay;
|
|
195
|
+
private _detach;
|
|
196
|
+
private _updatePosition;
|
|
197
|
+
/** Adds the configured offset to a position. Used as a hook for child classes. */
|
|
198
|
+
protected _addOffset(position: ConnectedPosition): ConnectedPosition;
|
|
199
|
+
/**
|
|
200
|
+
* Returns the origin position and a fallback position based on the user's position preference.
|
|
201
|
+
* The fallback position is the inverse of the origin (e.g. `'below' -> 'above'`).
|
|
202
|
+
*/
|
|
203
|
+
_getOrigin(): {
|
|
204
|
+
main: OriginConnectionPosition;
|
|
205
|
+
fallback: OriginConnectionPosition;
|
|
206
|
+
};
|
|
207
|
+
/** Returns the overlay position and a fallback position based on the user's preference */
|
|
208
|
+
_getOverlayPosition(): {
|
|
209
|
+
main: OverlayConnectionPosition;
|
|
210
|
+
fallback: OverlayConnectionPosition;
|
|
211
|
+
};
|
|
212
|
+
/** Updates the tooltip message and repositions the overlay according to the new message length */
|
|
213
|
+
private _updateTooltipContent;
|
|
214
|
+
/** Inverts an overlay position. */
|
|
215
|
+
private _invertPosition;
|
|
216
|
+
/** Updates the class on the overlay panel based on the current position of the tooltip. */
|
|
217
|
+
private _updateCurrentPositionClass;
|
|
218
|
+
/** Binds the pointer events to the tooltip trigger. */
|
|
219
|
+
private _setupPointerEnterEventsIfNeeded;
|
|
220
|
+
private _setupPointerExitEventsIfNeeded;
|
|
221
|
+
private _addListeners;
|
|
222
|
+
private _platformSupportsMouseEvents;
|
|
223
|
+
/** Listener for the `wheel` event on the element. */
|
|
224
|
+
private _wheelListener;
|
|
225
|
+
/** Disables the native browser gestures, based on how the tooltip has been configured. */
|
|
226
|
+
private _disableNativeGesturesIfNecessary;
|
|
227
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrnTooltipTrigger, never>;
|
|
228
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BrnTooltipTrigger, "[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>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface BrnTooltipOptions {
|
|
232
|
+
/** Default delay when the tooltip is shown. */
|
|
233
|
+
showDelay: number;
|
|
234
|
+
/** Default delay when the tooltip is hidden. */
|
|
235
|
+
hideDelay: number;
|
|
236
|
+
/** Default delay when hiding the tooltip on a touch device. */
|
|
237
|
+
touchendHideDelay: number;
|
|
238
|
+
/** Default exit animation duration for the tooltip. */
|
|
239
|
+
exitAnimationDuration: number;
|
|
240
|
+
/** Default touch gesture handling for tooltips. */
|
|
241
|
+
touchGestures?: TooltipTouchGestures;
|
|
242
|
+
/** Default position for tooltips. */
|
|
243
|
+
position?: TooltipPosition;
|
|
244
|
+
/**
|
|
245
|
+
* Default value for whether tooltips should be positioned near the click or touch origin
|
|
246
|
+
* instead of outside the element bounding box.
|
|
247
|
+
*/
|
|
248
|
+
positionAtOrigin?: boolean;
|
|
249
|
+
/** Disables the ability for the user to interact with the tooltip element. */
|
|
250
|
+
disableTooltipInteractivity?: boolean;
|
|
251
|
+
/** Default classes for the tooltip content. */
|
|
252
|
+
tooltipContentClasses?: string;
|
|
253
|
+
}
|
|
254
|
+
declare const defaultOptions: BrnTooltipOptions;
|
|
255
|
+
declare function provideBrnTooltipDefaultOptions(options: Partial<BrnTooltipOptions>): ValueProvider;
|
|
256
|
+
declare function injectBrnTooltipDefaultOptions(): BrnTooltipOptions;
|
|
257
|
+
|
|
258
|
+
declare const BrnTooltipImports: readonly [typeof BrnTooltip, typeof BrnTooltipContentTemplate, typeof BrnTooltipTrigger, typeof BrnTooltipContent];
|
|
259
|
+
|
|
260
|
+
export { BRN_TOOLTIP_SCROLL_STRATEGY, BRN_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER, BrnTooltip, BrnTooltipContent, BrnTooltipContentTemplate, BrnTooltipImports, BrnTooltipTrigger, SCROLL_THROTTLE_MS, defaultOptions, getBrnTooltipInvalidPositionError, injectBrnTooltipDefaultOptions, provideBrnTooltipDefaultOptions };
|
|
261
|
+
export type { BrnTooltipOptions, TooltipPosition, TooltipTouchGestures };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnAccordionContent {
|
|
3
|
-
private readonly _config;
|
|
4
|
-
private readonly _item;
|
|
5
|
-
private readonly _elementRef;
|
|
6
|
-
protected readonly _width: import("@angular/core").WritableSignal<number | null>;
|
|
7
|
-
protected readonly _height: import("@angular/core").WritableSignal<number | null>;
|
|
8
|
-
protected readonly _inert: import("@angular/core").Signal<true | undefined>;
|
|
9
|
-
readonly state: import("@angular/core").Signal<"open" | "closed">;
|
|
10
|
-
readonly id: string;
|
|
11
|
-
readonly ariaLabeledBy: string;
|
|
12
|
-
/**
|
|
13
|
-
* The style to be applied to the host element after the dimensions are calculated.
|
|
14
|
-
* @default 'overflow: hidden'
|
|
15
|
-
*/
|
|
16
|
-
readonly style: import("@angular/core").InputSignal<string>;
|
|
17
|
-
constructor();
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAccordionContent, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAccordionContent, "brn-accordion-content,[brnAccordionContent]", never, { "style": { "alias": "style"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnAccordionItem {
|
|
4
|
-
private static _itemIdGenerator;
|
|
5
|
-
readonly id: number;
|
|
6
|
-
private readonly _accordion;
|
|
7
|
-
/**
|
|
8
|
-
* Whether the item is opened or closed.
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
readonly isOpened: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
12
|
-
/**
|
|
13
|
-
* Computed state of the item, either 'open' or 'closed'
|
|
14
|
-
* @default closed
|
|
15
|
-
*/
|
|
16
|
-
readonly state: import("@angular/core").Signal<"open" | "closed">;
|
|
17
|
-
/**
|
|
18
|
-
* Emits boolean when the item is opened or closed.
|
|
19
|
-
*/
|
|
20
|
-
readonly stateChange: import("@angular/core").OutputEmitterRef<"open" | "closed">;
|
|
21
|
-
/**
|
|
22
|
-
* Emits state change when item is opened or closed
|
|
23
|
-
*/
|
|
24
|
-
readonly openedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
25
|
-
constructor();
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAccordionItem, never>;
|
|
27
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAccordionItem, "[brnAccordionItem]", ["brnAccordionItem"], { "isOpened": { "alias": "isOpened"; "required": false; "isSignal": true; }; }, { "stateChange": "stateChange"; "openedChange": "openedChange"; }, never, never, true, never>;
|
|
28
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type ExistingProvider, InjectionToken, type Type, type ValueProvider } from '@angular/core';
|
|
2
|
-
import type { MeasurementDisplay } from '@spartan-ng/brain/core';
|
|
3
|
-
import type { BrnAccordion } from './brn-accordion';
|
|
4
|
-
import type { BrnAccordionItem } from './brn-accordion-item';
|
|
5
|
-
export declare const BrnAccordionToken: InjectionToken<BrnAccordion>;
|
|
6
|
-
export declare function injectBrnAccordion(): BrnAccordion;
|
|
7
|
-
export declare function provideBrnAccordion(accordion: Type<BrnAccordion>): ExistingProvider;
|
|
8
|
-
export declare const BrnAccordionItemToken: InjectionToken<BrnAccordionItem>;
|
|
9
|
-
export declare function injectBrnAccordionItem(): BrnAccordionItem;
|
|
10
|
-
export declare function provideBrnAccordionItem(item: Type<BrnAccordionItem>): ExistingProvider;
|
|
11
|
-
export interface BrBrnAccordionConfig {
|
|
12
|
-
/**
|
|
13
|
-
* The display style to use when measuring element dimensions.
|
|
14
|
-
* @default 'block'
|
|
15
|
-
*/
|
|
16
|
-
measurementDisplay: MeasurementDisplay;
|
|
17
|
-
}
|
|
18
|
-
export declare function provideBrnAccordionConfig(config: Partial<BrBrnAccordionConfig>): ValueProvider;
|
|
19
|
-
export declare function injectBrnAccordionConfig(): BrBrnAccordionConfig;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { FocusableOption } from '@angular/cdk/a11y';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnAccordionTrigger implements FocusableOption {
|
|
4
|
-
private readonly _accordion;
|
|
5
|
-
private readonly _item;
|
|
6
|
-
private readonly _el;
|
|
7
|
-
readonly state: import("@angular/core").Signal<"open" | "closed">;
|
|
8
|
-
readonly id: string;
|
|
9
|
-
readonly ariaControls: string;
|
|
10
|
-
constructor();
|
|
11
|
-
protected toggle(event: Event): void;
|
|
12
|
-
focus(): void;
|
|
13
|
-
private validateAriaStructure;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAccordionTrigger, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAccordionTrigger, "[brnAccordionTrigger]", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { type AfterContentInit, type OnDestroy } from '@angular/core';
|
|
2
|
-
import { BrnAccordionTrigger } from './brn-accordion-trigger';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BrnAccordion implements AfterContentInit, OnDestroy {
|
|
5
|
-
private readonly _el;
|
|
6
|
-
private readonly _focusMonitor;
|
|
7
|
-
private readonly _keyManager;
|
|
8
|
-
private readonly _focused;
|
|
9
|
-
private readonly _openItemIds;
|
|
10
|
-
readonly openItemIds: import("@angular/core").Signal<number[]>;
|
|
11
|
-
readonly state: import("@angular/core").Signal<"open" | "closed">;
|
|
12
|
-
readonly triggers: import("@angular/core").Signal<readonly BrnAccordionTrigger[]>;
|
|
13
|
-
/**
|
|
14
|
-
* Whether the accordion is in single or multiple mode.
|
|
15
|
-
* @default 'single'
|
|
16
|
-
*/
|
|
17
|
-
readonly type: import("@angular/core").InputSignal<"single" | "multiple">;
|
|
18
|
-
/**
|
|
19
|
-
* The direction of the accordion, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
|
|
20
|
-
* @default null
|
|
21
|
-
*/
|
|
22
|
-
readonly dir: import("@angular/core").InputSignal<"ltr" | "rtl" | null>;
|
|
23
|
-
/**
|
|
24
|
-
* The orientation of the accordion, either 'horizontal' or 'vertical'.
|
|
25
|
-
* @default 'vertical'
|
|
26
|
-
*/
|
|
27
|
-
readonly orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
|
|
28
|
-
ngAfterContentInit(): void;
|
|
29
|
-
ngOnDestroy(): void;
|
|
30
|
-
setActiveItem(item: BrnAccordionTrigger): void;
|
|
31
|
-
toggleItem(id: number): void;
|
|
32
|
-
openItem(id: number): void;
|
|
33
|
-
closeItem(id: number): void;
|
|
34
|
-
private isEditableTarget;
|
|
35
|
-
private shouldIgnoreEvent;
|
|
36
|
-
private preventDefaultEvents;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAccordion, never>;
|
|
38
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAccordion, "[brnAccordion]", ["brnAccordion"], { "type": { "alias": "type"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, ["triggers"], never, true, never>;
|
|
39
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BrnDialogContent } from '@spartan-ng/brain/dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnAlertDialogContent<T> extends BrnDialogContent<T> {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAlertDialogContent<any>, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAlertDialogContent<any>, "[brnAlertDialogContent]", never, {}, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BrnDialogDescription } from '@spartan-ng/brain/dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnAlertDialogDescription extends BrnDialogDescription {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAlertDialogDescription, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAlertDialogDescription, "[brnAlertDialogDescription]", never, {}, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BrnDialogOverlay } from '@spartan-ng/brain/dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnAlertDialogOverlay extends BrnDialogOverlay {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAlertDialogOverlay, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BrnAlertDialogOverlay, "brn-alert-dialog-overlay", never, {}, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BrnDialogTitle } from '@spartan-ng/brain/dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnAlertDialogTitle extends BrnDialogTitle {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAlertDialogTitle, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAlertDialogTitle, "[brnAlertDialogTitle]", never, {}, {}, never, never, true, never>;
|
|
6
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BrnDialogTrigger } from '@spartan-ng/brain/dialog';
|
|
2
|
-
import type { BrnAlertDialog } from './brn-alert-dialog';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BrnAlertDialogTrigger extends BrnDialogTrigger {
|
|
5
|
-
readonly brnAlertDialogTriggerFor: import("@angular/core").InputSignal<BrnAlertDialog | undefined>;
|
|
6
|
-
readonly type: import("@angular/core").InputSignal<"button" | "submit" | "reset">;
|
|
7
|
-
constructor();
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAlertDialogTrigger, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAlertDialogTrigger, "button[brnAlertDialogTrigger],button[brnAlertDialogTriggerFor]", never, { "brnAlertDialogTriggerFor": { "alias": "brnAlertDialogTriggerFor"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BrnDialog, type BrnDialogDefaultOptions } from '@spartan-ng/brain/dialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare const BRN_ALERT_DIALOG_DEFAULT_OPTIONS: Partial<BrnDialogDefaultOptions>;
|
|
4
|
-
export declare class BrnAlertDialog extends BrnDialog {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAlertDialog, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BrnAlertDialog, "brn-alert-dialog", ["brnAlertDialog"], {}, {}, never, ["*"], true, never>;
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnAutocompleteEmpty {
|
|
3
|
-
private readonly _templateRef;
|
|
4
|
-
private readonly _viewContainerRef;
|
|
5
|
-
private readonly _autocomplete;
|
|
6
|
-
/** Determine if the autocomplete has any items */
|
|
7
|
-
private readonly _visible;
|
|
8
|
-
constructor();
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAutocompleteEmpty, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAutocompleteEmpty, "[brnAutocompleteEmpty]", never, {}, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnAutocompleteGroup {
|
|
3
|
-
private static _id;
|
|
4
|
-
/** The id of the autocomplete list */
|
|
5
|
-
readonly id: import("@angular/core").InputSignal<string>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAutocompleteGroup, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAutocompleteGroup, "[brnAutocompleteGroup]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { Highlightable } from '@angular/cdk/a11y';
|
|
2
|
-
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BrnAutocompleteItem<T> implements Highlightable {
|
|
5
|
-
private static _id;
|
|
6
|
-
private readonly _platform;
|
|
7
|
-
private readonly _elementRef;
|
|
8
|
-
/** Access the autocomplete component */
|
|
9
|
-
private readonly _autocomplete;
|
|
10
|
-
/** A unique id for the item */
|
|
11
|
-
readonly id: import("@angular/core").InputSignal<string>;
|
|
12
|
-
/** The value this item represents. */
|
|
13
|
-
readonly value: import("@angular/core").InputSignal<T>;
|
|
14
|
-
/** Whether the item is disabled. */
|
|
15
|
-
readonly _disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
16
|
-
/** Expose disabled as a value - used by the Highlightable interface */
|
|
17
|
-
get disabled(): boolean;
|
|
18
|
-
/** Whether the item is selected. */
|
|
19
|
-
protected readonly _active: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
-
/** Emits when the item is selected. */
|
|
21
|
-
readonly selected: import("@angular/core").OutputEmitterRef<void>;
|
|
22
|
-
/** @internal Get the display value */
|
|
23
|
-
getLabel(): string;
|
|
24
|
-
/** @internal */
|
|
25
|
-
setActiveStyles(): void;
|
|
26
|
-
/** @internal */
|
|
27
|
-
setInactiveStyles(): void;
|
|
28
|
-
protected onClick(): void;
|
|
29
|
-
protected activate(): void;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAutocompleteItem<any>, never>;
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAutocompleteItem<any>, "button[brnAutocompleteItem]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "_disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selected": "selected"; }, never, never, true, never>;
|
|
32
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ExistingProvider, InjectionToken, type Type } from '@angular/core';
|
|
2
|
-
import type { BrnAutocompleteItem } from './brn-autocomplete-item';
|
|
3
|
-
export declare const BrnAutocompleteItemToken: InjectionToken<BrnAutocompleteItem<unknown>>;
|
|
4
|
-
export declare function provideBrnAutocompleteItem<T>(autocomplete: Type<BrnAutocompleteItem<T>>): ExistingProvider;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnAutocompleteList {
|
|
3
|
-
private static _id;
|
|
4
|
-
/** The id of the command list */
|
|
5
|
-
readonly id: import("@angular/core").InputSignal<string>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAutocompleteList, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAutocompleteList, "[brnAutocompleteList]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnAutocompleteSearchInput {
|
|
3
|
-
private readonly _autocomplete;
|
|
4
|
-
/** Whether the autocomplete panel is expanded */
|
|
5
|
-
protected readonly _isExpanded: import("@angular/core").Signal<boolean>;
|
|
6
|
-
/** The id of the active option */
|
|
7
|
-
protected readonly _activeDescendant: import("@angular/core").WritableSignal<string | undefined>;
|
|
8
|
-
constructor();
|
|
9
|
-
/** Listen for keydown events */
|
|
10
|
-
protected onKeyDown(event: KeyboardEvent): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAutocompleteSearchInput, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAutocompleteSearchInput, "input[brnAutocompleteSearchInput]", never, {}, {}, never, never, true, never>;
|
|
13
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
2
|
-
import type { BrnAutocompleteItem } from './brn-autocomplete-item';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BrnAutocomplete<T> {
|
|
5
|
-
private static _id;
|
|
6
|
-
private readonly _injector;
|
|
7
|
-
/** The id of the autocomplete */
|
|
8
|
-
readonly id: import("@angular/core").InputSignal<string>;
|
|
9
|
-
/** when the selection has changed */
|
|
10
|
-
readonly valueChange: import("@angular/core").OutputEmitterRef<T>;
|
|
11
|
-
/** when the selection has been cleared */
|
|
12
|
-
readonly selectionCleared: import("@angular/core").OutputEmitterRef<void>;
|
|
13
|
-
/** Access the popover if present */
|
|
14
|
-
private readonly _brnPopover;
|
|
15
|
-
/** @internal The focus strategy when opening */
|
|
16
|
-
private readonly _focus;
|
|
17
|
-
/** @internal Access all the items within the autocomplete */
|
|
18
|
-
readonly items: import("@angular/core").Signal<readonly BrnAutocompleteItem<T>[]>;
|
|
19
|
-
/** @internal The key manager for managing active descendant */
|
|
20
|
-
readonly keyManager: ActiveDescendantKeyManager<BrnAutocompleteItem<T>>;
|
|
21
|
-
/** @internal Whether the autocomplete is expanded */
|
|
22
|
-
readonly isExpanded: import("@angular/core").Signal<boolean>;
|
|
23
|
-
constructor();
|
|
24
|
-
protected selectActiveItem(): void;
|
|
25
|
-
open(focus?: 'first' | 'last'): void;
|
|
26
|
-
close(): void;
|
|
27
|
-
toggle(): void;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAutocomplete<any>, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAutocomplete<any>, "[brnAutocomplete]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "selectionCleared": "selectionCleared"; }, ["items"], never, true, never>;
|
|
30
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type ExistingProvider, InjectionToken, type Type } from '@angular/core';
|
|
2
|
-
import type { BrnAutocomplete } from './brn-autocomplete';
|
|
3
|
-
export declare const BrnAutocompleteToken: InjectionToken<BrnAutocomplete<unknown>>;
|
|
4
|
-
export declare function provideBrnAutocomplete<T>(autocomplete: Type<BrnAutocomplete<T>>): ExistingProvider;
|
|
5
|
-
export declare function injectBrnAutocomplete<T>(): BrnAutocomplete<T>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BrnAvatarImage } from './image';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnAvatar {
|
|
4
|
-
protected readonly _image: import("@angular/core").Signal<BrnAvatarImage | undefined>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAvatar, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BrnAvatar, "brn-avatar", never, {}, {}, ["_image"], ["[brnAvatarImage]", "[brnAvatarFallback]"], true, never>;
|
|
7
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ClassValue } from 'clsx';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnAvatarFallback {
|
|
4
|
-
private readonly _element;
|
|
5
|
-
readonly userClass: import("@angular/core").InputSignal<ClassValue>;
|
|
6
|
-
getTextContent(): string;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAvatarFallback, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAvatarFallback, "[brnAvatarFallback]", ["avatarFallback"], { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './brn-avatar-fallback';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnAvatarImage {
|
|
3
|
-
private readonly _loaded;
|
|
4
|
-
protected _onError(): void;
|
|
5
|
-
protected _onLoad(): void;
|
|
6
|
-
readonly canShow: import("@angular/core").Signal<boolean>;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnAvatarImage, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnAvatarImage, "img[brnAvatarImage]", ["avatarImage"], {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './brn-avatar-image';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function hexColorFor(str: string): string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class InitialsPipe implements PipeTransform {
|
|
4
|
-
transform(name: string, capitalize?: boolean, firstAndLastOnly?: boolean, delimiter?: string): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InitialsPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<InitialsPipe, "initials", true>;
|
|
7
|
-
}
|