@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
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnToggleGroupItem<T> {
|
|
4
|
-
private static _uniqueId;
|
|
5
|
-
/** Access the toggle group if available. */
|
|
6
|
-
protected readonly _group: import("@spartan-ng/brain/toggle-group").BrnToggleGroup<T> | null;
|
|
7
|
-
/** The id of the toggle. */
|
|
8
|
-
readonly id: import("@angular/core").InputSignal<string>;
|
|
9
|
-
/** The value this toggle represents. */
|
|
10
|
-
readonly value: import("@angular/core").InputSignal<T | undefined>;
|
|
11
|
-
/** Whether the toggle is disabled. */
|
|
12
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
13
|
-
/** Whether the toggle is disabled either from itself or from the group. */
|
|
14
|
-
protected readonly _disabled: import("@angular/core").Signal<boolean | undefined>;
|
|
15
|
-
/** The current state of the toggle when not used in a group. */
|
|
16
|
-
readonly state: import("@angular/core").ModelSignal<"on" | "off">;
|
|
17
|
-
/** The type of the button. */
|
|
18
|
-
readonly type: import("@angular/core").InputSignal<"button" | "submit" | "reset">;
|
|
19
|
-
/**
|
|
20
|
-
* Accessibility label for screen readers.
|
|
21
|
-
* Use when no visible label exists.
|
|
22
|
-
*/
|
|
23
|
-
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
24
|
-
/** Whether the toggle is in the on state. */
|
|
25
|
-
protected readonly _isOn: import("@angular/core").Signal<boolean>;
|
|
26
|
-
/** The current state that reflects the group state or the model state. */
|
|
27
|
-
protected readonly _state: import("@angular/core").Signal<"on" | "off">;
|
|
28
|
-
toggle(): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnToggleGroupItem<any>, never>;
|
|
30
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnToggleGroupItem<any>, "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; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, { "state": "stateChange"; }, never, never, true, never>;
|
|
31
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnTooltipContentTemplate {
|
|
3
|
-
private readonly _brnTooltipDirective;
|
|
4
|
-
private readonly _tpl;
|
|
5
|
-
constructor();
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTooltipContentTemplate, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnTooltipContentTemplate, "[brnTooltipContent]", never, {}, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ElementRef, type OnDestroy, type TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Internal component that wraps the tooltip's content.
|
|
5
|
-
* @docs-private
|
|
6
|
-
*/
|
|
7
|
-
export declare class BrnTooltipContent implements OnDestroy {
|
|
8
|
-
private readonly _cdr;
|
|
9
|
-
private readonly _isBrowser;
|
|
10
|
-
private readonly _renderer2;
|
|
11
|
-
protected readonly _contentHovered: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
-
readonly tooltipClasses: import("@angular/core").WritableSignal<string>;
|
|
13
|
-
readonly side: import("@angular/core").WritableSignal<string>;
|
|
14
|
-
/** Message to display in the tooltip */
|
|
15
|
-
content: string | TemplateRef<unknown> | null;
|
|
16
|
-
/** The timeout ID of any current timer set to show the tooltip */
|
|
17
|
-
private _showTimeoutId;
|
|
18
|
-
/** The timeout ID of any current timer set to hide the tooltip */
|
|
19
|
-
private _hideTimeoutId;
|
|
20
|
-
/** The timeout ID of any current timer set to animate the tooltip */
|
|
21
|
-
private _animateTimeoutId;
|
|
22
|
-
/** Element that caused the tooltip to open. */
|
|
23
|
-
triggerElement?: HTMLElement;
|
|
24
|
-
/** Amount of milliseconds to delay the closing sequence. */
|
|
25
|
-
mouseLeaveHideDelay: number;
|
|
26
|
-
/** Amount of milliseconds of closing animation. */
|
|
27
|
-
exitAnimationDuration: number;
|
|
28
|
-
/** Reference to the internal tooltip element. */
|
|
29
|
-
readonly tooltip: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
30
|
-
/** Whether interactions on the page should close the tooltip */
|
|
31
|
-
private _closeOnInteraction;
|
|
32
|
-
/** Whether the tooltip is currently visible. */
|
|
33
|
-
private _isVisible;
|
|
34
|
-
/** Subject for notifying that the tooltip has been hidden from the view */
|
|
35
|
-
private readonly _onHide;
|
|
36
|
-
readonly afterHidden: import("rxjs").Observable<void>;
|
|
37
|
-
/**
|
|
38
|
-
* Shows the tooltip with originating from the provided origin
|
|
39
|
-
* @param delay Amount of milliseconds to the delay showing the tooltip.
|
|
40
|
-
*/
|
|
41
|
-
show(delay: number): void;
|
|
42
|
-
/**
|
|
43
|
-
* Begins to hide the tooltip after the provided delay in ms.
|
|
44
|
-
* @param delay Amount of milliseconds to delay hiding the tooltip.
|
|
45
|
-
* @param exitAnimationDuration Time before hiding to finish animation
|
|
46
|
-
* */
|
|
47
|
-
hide(delay: number, exitAnimationDuration: number): void;
|
|
48
|
-
/** Whether the tooltip is being displayed. */
|
|
49
|
-
isVisible(): boolean;
|
|
50
|
-
ngOnDestroy(): void;
|
|
51
|
-
_isTypeOfString(content: unknown): content is string;
|
|
52
|
-
/**
|
|
53
|
-
* Interactions on the HTML body should close the tooltip immediately as defined in the
|
|
54
|
-
* material design spec.
|
|
55
|
-
* https://material.io/design/components/tooltips.html#behavior
|
|
56
|
-
*/
|
|
57
|
-
_handleBodyInteraction(): void;
|
|
58
|
-
/**
|
|
59
|
-
* Marks that the tooltip needs to be checked in the next change detection run.
|
|
60
|
-
* Mainly used for rendering the initial text before positioning a tooltip, which
|
|
61
|
-
* can be problematic in components with OnPush change detection.
|
|
62
|
-
*/
|
|
63
|
-
_markForCheck(): void;
|
|
64
|
-
_handleMouseLeave({ relatedTarget }: MouseEvent): void;
|
|
65
|
-
/** Cancels any pending animation sequences. */
|
|
66
|
-
_cancelPendingAnimations(): void;
|
|
67
|
-
private _finalize;
|
|
68
|
-
/** Toggles the visibility of the tooltip element. */
|
|
69
|
-
private _toggleVisibility;
|
|
70
|
-
private _toggleDataAttributes;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTooltipContent, never>;
|
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BrnTooltipContent, "brn-tooltip-content", never, {}, {}, never, never, true, never>;
|
|
73
|
-
}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { type ConnectedPosition, type OriginConnectionPosition, type OverlayConnectionPosition, type ScrollStrategy } from '@angular/cdk/overlay';
|
|
2
|
-
import { type AfterViewInit, InjectionToken, type OnDestroy, type Provider, type TemplateRef } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export type TooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after';
|
|
5
|
-
export type TooltipTouchGestures = 'auto' | 'on' | 'off';
|
|
6
|
-
/** Time in ms to throttle repositioning after scroll events. */
|
|
7
|
-
export declare const SCROLL_THROTTLE_MS = 20;
|
|
8
|
-
export declare function getBrnTooltipInvalidPositionError(position: string): Error;
|
|
9
|
-
/** Injection token that determines the scroll handling while a tooltip is visible. */
|
|
10
|
-
export declare const BRN_TOOLTIP_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
11
|
-
export declare const BRN_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER: Provider;
|
|
12
|
-
export declare class BrnTooltipTrigger implements OnDestroy, AfterViewInit {
|
|
13
|
-
private readonly _tooltipDirective;
|
|
14
|
-
private readonly _tooltipComponent;
|
|
15
|
-
private readonly _cssClassPrefix;
|
|
16
|
-
private readonly _destroyed;
|
|
17
|
-
private readonly _passiveListeners;
|
|
18
|
-
private readonly _defaultOptions;
|
|
19
|
-
private readonly _overlay;
|
|
20
|
-
private readonly _elementRef;
|
|
21
|
-
private readonly _scrollDispatcher;
|
|
22
|
-
private readonly _viewContainerRef;
|
|
23
|
-
private readonly _ngZone;
|
|
24
|
-
private readonly _platform;
|
|
25
|
-
private readonly _ariaDescriber;
|
|
26
|
-
private readonly _focusMonitor;
|
|
27
|
-
private readonly _dir;
|
|
28
|
-
private readonly _scrollStrategy;
|
|
29
|
-
private readonly _document;
|
|
30
|
-
private _portal?;
|
|
31
|
-
private _viewInitialized;
|
|
32
|
-
private _pointerExitEventsInitialized;
|
|
33
|
-
private readonly _viewportMargin;
|
|
34
|
-
private _currentPosition?;
|
|
35
|
-
private _touchstartTimeout?;
|
|
36
|
-
private _overlayRef;
|
|
37
|
-
private _tooltipInstance;
|
|
38
|
-
/** Allows the user to define the position of the tooltip relative to the parent element */
|
|
39
|
-
readonly position: import("@angular/core").InputSignal<TooltipPosition>;
|
|
40
|
-
/**
|
|
41
|
-
* Whether tooltip should be relative to the click or touch origin
|
|
42
|
-
* instead of outside the element bounding box.
|
|
43
|
-
*/
|
|
44
|
-
readonly positionAtOrigin: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
45
|
-
/** Disables the display of the tooltip. */
|
|
46
|
-
readonly brnTooltipDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
47
|
-
/** The default delay in ms before showing the tooltip after show is called */
|
|
48
|
-
readonly showDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
49
|
-
/** The default delay in ms before hiding the tooltip after hide is called */
|
|
50
|
-
readonly hideDelay: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
51
|
-
/** The default duration in ms that exit animation takes before hiding */
|
|
52
|
-
readonly exitAnimationDuration: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
53
|
-
/** The default delay in ms before hiding the tooltip after hide is called */
|
|
54
|
-
readonly tooltipContentClasses: import("@angular/core").InputSignal<string>;
|
|
55
|
-
readonly computedTooltipContentClasses: import("@angular/core").Signal<import("@angular/core").WritableSignal<string>>;
|
|
56
|
-
/**
|
|
57
|
-
* How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
|
|
58
|
-
* uses a long press gesture to show and hide, however it can conflict with the native browser
|
|
59
|
-
* gestures. To work around the conflict, Angular Material disables native gestures on the
|
|
60
|
-
* trigger, but that might not be desirable on particular elements (e.g. inputs and draggable
|
|
61
|
-
* elements). The different values for this option configure the touch event handling as follows:
|
|
62
|
-
* - `auto` - Enables touch gestures for all elements, but tries to avoid conflicts with native
|
|
63
|
-
* browser gestures on particular elements. In particular, it allows text selection on inputs
|
|
64
|
-
* and textareas, and preserves the native browser dragging on elements marked as `draggable`.
|
|
65
|
-
* - `on` - Enables touch gestures for all elements and disables native
|
|
66
|
-
* browser gestures with no exceptions.
|
|
67
|
-
* - `off` - Disables touch gestures. Note that this will prevent the tooltip from
|
|
68
|
-
* showing on touch devices.
|
|
69
|
-
*/
|
|
70
|
-
readonly touchGestures: import("@angular/core").InputSignal<TooltipTouchGestures>;
|
|
71
|
-
/** The message to be used to describe the aria in the tooltip */
|
|
72
|
-
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
73
|
-
readonly computedAriaDescribedBy: import("@angular/core").Signal<import("@angular/core").WritableSignal<string>>;
|
|
74
|
-
readonly ariaDescribedByPrevious: import("@angular/core").Signal<import("@angular/core").WritableSignal<string>>;
|
|
75
|
-
/** The content to be displayed in the tooltip */
|
|
76
|
-
readonly brnTooltipTrigger: import("@angular/core").InputSignal<string | TemplateRef<unknown> | null>;
|
|
77
|
-
readonly brnTooltipTriggerState: import("@angular/core").Signal<string | TemplateRef<unknown> | null>;
|
|
78
|
-
constructor();
|
|
79
|
-
setTooltipContentClasses(tooltipContentClasses: string): void;
|
|
80
|
-
setAriaDescribedBy(ariaDescribedBy: string): void;
|
|
81
|
-
private _initPositionEffect;
|
|
82
|
-
private _initBrnTooltipDisabledEffect;
|
|
83
|
-
private _initPositionAtOriginEffect;
|
|
84
|
-
private _initTooltipContentClassesEffect;
|
|
85
|
-
private _initAriaDescribedByPreviousEffect;
|
|
86
|
-
private _initBrnTooltipTriggerEffect;
|
|
87
|
-
private _initExitAnimationDurationEffect;
|
|
88
|
-
private _initHideDelayEffect;
|
|
89
|
-
ngAfterViewInit(): void;
|
|
90
|
-
/**
|
|
91
|
-
* Dispose the tooltip when destroyed.
|
|
92
|
-
*/
|
|
93
|
-
ngOnDestroy(): void;
|
|
94
|
-
/** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */
|
|
95
|
-
show(delay?: number, origin?: {
|
|
96
|
-
x: number;
|
|
97
|
-
y: number;
|
|
98
|
-
}): void;
|
|
99
|
-
/** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */
|
|
100
|
-
hide(delay?: number, exitAnimationDuration?: number): void;
|
|
101
|
-
toggle(origin?: {
|
|
102
|
-
x: number;
|
|
103
|
-
y: number;
|
|
104
|
-
}): void;
|
|
105
|
-
_isTooltipVisible(): boolean;
|
|
106
|
-
private _createOverlay;
|
|
107
|
-
private _detach;
|
|
108
|
-
private _updatePosition;
|
|
109
|
-
/** Adds the configured offset to a position. Used as a hook for child classes. */
|
|
110
|
-
protected _addOffset(position: ConnectedPosition): ConnectedPosition;
|
|
111
|
-
/**
|
|
112
|
-
* Returns the origin position and a fallback position based on the user's position preference.
|
|
113
|
-
* The fallback position is the inverse of the origin (e.g. `'below' -> 'above'`).
|
|
114
|
-
*/
|
|
115
|
-
_getOrigin(): {
|
|
116
|
-
main: OriginConnectionPosition;
|
|
117
|
-
fallback: OriginConnectionPosition;
|
|
118
|
-
};
|
|
119
|
-
/** Returns the overlay position and a fallback position based on the user's preference */
|
|
120
|
-
_getOverlayPosition(): {
|
|
121
|
-
main: OverlayConnectionPosition;
|
|
122
|
-
fallback: OverlayConnectionPosition;
|
|
123
|
-
};
|
|
124
|
-
/** Updates the tooltip message and repositions the overlay according to the new message length */
|
|
125
|
-
private _updateTooltipContent;
|
|
126
|
-
/** Inverts an overlay position. */
|
|
127
|
-
private _invertPosition;
|
|
128
|
-
/** Updates the class on the overlay panel based on the current position of the tooltip. */
|
|
129
|
-
private _updateCurrentPositionClass;
|
|
130
|
-
/** Binds the pointer events to the tooltip trigger. */
|
|
131
|
-
private _setupPointerEnterEventsIfNeeded;
|
|
132
|
-
private _setupPointerExitEventsIfNeeded;
|
|
133
|
-
private _addListeners;
|
|
134
|
-
private _platformSupportsMouseEvents;
|
|
135
|
-
/** Listener for the `wheel` event on the element. */
|
|
136
|
-
private _wheelListener;
|
|
137
|
-
/** Disables the native browser gestures, based on how the tooltip has been configured. */
|
|
138
|
-
private _disableNativeGesturesIfNecessary;
|
|
139
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTooltipTrigger, never>;
|
|
140
|
-
static ɵdir: i0.ɵɵ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>;
|
|
141
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnTooltip {
|
|
4
|
-
readonly tooltipTemplate: import("@angular/core").WritableSignal<TemplateRef<unknown> | null>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnTooltip, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnTooltip, "[brnTooltip]", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type ValueProvider } from '@angular/core';
|
|
2
|
-
import type { TooltipPosition, TooltipTouchGestures } from './brn-tooltip-trigger';
|
|
3
|
-
export interface BrnTooltipOptions {
|
|
4
|
-
/** Default delay when the tooltip is shown. */
|
|
5
|
-
showDelay: number;
|
|
6
|
-
/** Default delay when the tooltip is hidden. */
|
|
7
|
-
hideDelay: number;
|
|
8
|
-
/** Default delay when hiding the tooltip on a touch device. */
|
|
9
|
-
touchendHideDelay: number;
|
|
10
|
-
/** Default exit animation duration for the tooltip. */
|
|
11
|
-
exitAnimationDuration: number;
|
|
12
|
-
/** Default touch gesture handling for tooltips. */
|
|
13
|
-
touchGestures?: TooltipTouchGestures;
|
|
14
|
-
/** Default position for tooltips. */
|
|
15
|
-
position?: TooltipPosition;
|
|
16
|
-
/**
|
|
17
|
-
* Default value for whether tooltips should be positioned near the click or touch origin
|
|
18
|
-
* instead of outside the element bounding box.
|
|
19
|
-
*/
|
|
20
|
-
positionAtOrigin?: boolean;
|
|
21
|
-
/** Disables the ability for the user to interact with the tooltip element. */
|
|
22
|
-
disableTooltipInteractivity?: boolean;
|
|
23
|
-
/** Default classes for the tooltip content. */
|
|
24
|
-
tooltipContentClasses?: string;
|
|
25
|
-
}
|
|
26
|
-
export declare const defaultOptions: BrnTooltipOptions;
|
|
27
|
-
export declare function provideBrnTooltipDefaultOptions(options: Partial<BrnTooltipOptions>): ValueProvider;
|
|
28
|
-
export declare function injectBrnTooltipDefaultOptions(): BrnTooltipOptions;
|