@spartan-ng/brain 0.0.1-alpha.563 → 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,151 +0,0 @@
|
|
|
1
|
-
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { type AfterContentInit, ElementRef, type OnDestroy } from '@angular/core';
|
|
3
|
-
import { type ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
import type { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare const BRN_CHECKBOX_VALUE_ACCESSOR: {
|
|
7
|
-
provide: import("@angular/core").InjectionToken<readonly ControlValueAccessor[]>;
|
|
8
|
-
useExisting: import("@angular/core").Type<any>;
|
|
9
|
-
multi: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare class BrnCheckbox implements ControlValueAccessor, AfterContentInit, OnDestroy {
|
|
12
|
-
private readonly _destroyRef;
|
|
13
|
-
private readonly _renderer;
|
|
14
|
-
private readonly _elementRef;
|
|
15
|
-
private readonly _focusMonitor;
|
|
16
|
-
private readonly _cdr;
|
|
17
|
-
private readonly _document;
|
|
18
|
-
private readonly _isBrowser;
|
|
19
|
-
protected readonly _focusVisible: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
-
protected readonly _focused: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
-
/**
|
|
22
|
-
* The checked state of the checkbox.
|
|
23
|
-
* Can be bound with [(checked)] for two-way binding.
|
|
24
|
-
*/
|
|
25
|
-
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
26
|
-
/** Emits when checked state changes. */
|
|
27
|
-
readonly checkedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
28
|
-
/**
|
|
29
|
-
* Read-only signal of current checkbox state.
|
|
30
|
-
* Use this when you only need to read state without changing it.
|
|
31
|
-
*/
|
|
32
|
-
readonly isChecked: import("@angular/core").Signal<boolean>;
|
|
33
|
-
readonly indeterminate: import("@angular/core").ModelSignal<boolean>;
|
|
34
|
-
/**
|
|
35
|
-
* Computed data-state attribute value based on checked state.
|
|
36
|
-
* Returns 'checked', 'unchecked', or 'indeterminate'.
|
|
37
|
-
*/
|
|
38
|
-
protected readonly _dataState: import("@angular/core").Signal<"indeterminate" | "checked" | "unchecked">;
|
|
39
|
-
/**
|
|
40
|
-
* Computed aria-checked attribute value for accessibility.
|
|
41
|
-
* Returns 'true', 'false', or 'mixed' (for indeterminate).
|
|
42
|
-
*/
|
|
43
|
-
protected readonly _ariaChecked: import("@angular/core").Signal<"mixed" | "true" | "false">;
|
|
44
|
-
/**
|
|
45
|
-
* Unique identifier for checkbox component.
|
|
46
|
-
* When provided, inner button gets ID without '-checkbox' suffix.
|
|
47
|
-
* Auto-generates ID if not provided.
|
|
48
|
-
*/
|
|
49
|
-
readonly id: import("@angular/core").InputSignal<string | null>;
|
|
50
|
-
/**
|
|
51
|
-
* Form control name for checkbox.
|
|
52
|
-
* When provided, inner button gets name without '-checkbox' suffix.
|
|
53
|
-
*/
|
|
54
|
-
readonly name: import("@angular/core").InputSignal<string | null>;
|
|
55
|
-
/**
|
|
56
|
-
* CSS classes applied to inner button element.
|
|
57
|
-
*/
|
|
58
|
-
readonly class: import("@angular/core").InputSignal<string | null>;
|
|
59
|
-
/**
|
|
60
|
-
* Accessibility label for screen readers.
|
|
61
|
-
* Use when no visible label exists.
|
|
62
|
-
*/
|
|
63
|
-
readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
|
|
64
|
-
/**
|
|
65
|
-
* ID of element that labels this checkbox for accessibility.
|
|
66
|
-
* Auto-set when checkbox is inside label element.
|
|
67
|
-
*/
|
|
68
|
-
readonly ariaLabelledby: import("@angular/core").InputSignal<string | null>;
|
|
69
|
-
readonly mutableAriaLabelledby: import("@angular/core").WritableSignal<string | null>;
|
|
70
|
-
/**
|
|
71
|
-
* ID of element that describes this checkbox for accessibility.
|
|
72
|
-
*/
|
|
73
|
-
readonly ariaDescribedby: import("@angular/core").InputSignal<string | null>;
|
|
74
|
-
/**
|
|
75
|
-
* Whether checkbox is required in a form.
|
|
76
|
-
*/
|
|
77
|
-
readonly required: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
78
|
-
/**
|
|
79
|
-
* Whether checkbox is disabled.
|
|
80
|
-
* Disabled checkboxes cannot be toggled and indicate disabled state through data-disabled attribute.
|
|
81
|
-
*/
|
|
82
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
83
|
-
/**
|
|
84
|
-
* Computed state for checkbox container and accessibility.
|
|
85
|
-
* Manages ID, name, and disabled state.
|
|
86
|
-
*/
|
|
87
|
-
protected readonly _state: import("@angular/core").Signal<{
|
|
88
|
-
disabled: import("@angular/core").WritableSignal<boolean>;
|
|
89
|
-
name: string | null;
|
|
90
|
-
id: string | null;
|
|
91
|
-
}>;
|
|
92
|
-
protected _onChange: ChangeFn<boolean>;
|
|
93
|
-
private _onTouched;
|
|
94
|
-
/**
|
|
95
|
-
* Reference to the checkbox button element in the template.
|
|
96
|
-
*/
|
|
97
|
-
readonly checkbox: import("@angular/core").Signal<ElementRef<HTMLButtonElement>>;
|
|
98
|
-
/**
|
|
99
|
-
* Event emitted when checkbox is blurred (loses focus).
|
|
100
|
-
* Used for form validation.
|
|
101
|
-
*/
|
|
102
|
-
readonly touched: import("@angular/core").OutputEmitterRef<void>;
|
|
103
|
-
constructor();
|
|
104
|
-
/**
|
|
105
|
-
* Toggles checkbox between checked/unchecked states.
|
|
106
|
-
* If checkbox is indeterminate, sets to checked.
|
|
107
|
-
* Does nothing if checkbox is disabled.
|
|
108
|
-
*/
|
|
109
|
-
toggle(): void;
|
|
110
|
-
ngAfterContentInit(): void;
|
|
111
|
-
ngOnDestroy(): void;
|
|
112
|
-
/**
|
|
113
|
-
* Gets proper ID for inner button element.
|
|
114
|
-
* Removes '-checkbox' suffix if present in container ID.
|
|
115
|
-
*
|
|
116
|
-
* @param idPassedToContainer - ID applied to container element
|
|
117
|
-
* @returns ID to use for inner button or null
|
|
118
|
-
*/
|
|
119
|
-
protected _getCheckboxButtonId(idPassedToContainer: string | null | undefined): string | null;
|
|
120
|
-
/**
|
|
121
|
-
* Updates internal state when control value changes from outside.
|
|
122
|
-
* Handles boolean and 'indeterminate' values.
|
|
123
|
-
* Part of ControlValueAccessor interface.
|
|
124
|
-
*
|
|
125
|
-
* @param value - New checkbox state (true/false/'indeterminate')
|
|
126
|
-
*/
|
|
127
|
-
writeValue(value: boolean): void;
|
|
128
|
-
/**
|
|
129
|
-
* Registers callback for value changes.
|
|
130
|
-
* Part of ControlValueAccessor interface.
|
|
131
|
-
*
|
|
132
|
-
* @param fn - Function to call when value changes
|
|
133
|
-
*/
|
|
134
|
-
registerOnChange(fn: ChangeFn<boolean>): void;
|
|
135
|
-
/**
|
|
136
|
-
* Registers callback for touched events.
|
|
137
|
-
* Part of ControlValueAccessor interface.
|
|
138
|
-
*
|
|
139
|
-
* @param fn - Function to call when control is touched
|
|
140
|
-
*/
|
|
141
|
-
registerOnTouched(fn: TouchFn): void;
|
|
142
|
-
/**
|
|
143
|
-
* Updates disabled state from form control.
|
|
144
|
-
* Part of ControlValueAccessor interface.
|
|
145
|
-
*
|
|
146
|
-
* @param isDisabled - Whether checkbox should be disabled
|
|
147
|
-
*/
|
|
148
|
-
setDisabledState(isDisabled: boolean): void;
|
|
149
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCheckbox, never>;
|
|
150
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BrnCheckbox, "brn-checkbox", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "checkedChange": "checkedChange"; "indeterminate": "indeterminateChange"; "touched": "touched"; }, never, ["*"], true, never>;
|
|
151
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnCollapsibleContent {
|
|
3
|
-
private readonly _config;
|
|
4
|
-
private readonly _elementRef;
|
|
5
|
-
protected readonly _collapsible: import("@spartan-ng/brain/collapsible").BrnCollapsible | null;
|
|
6
|
-
protected readonly _width: import("@angular/core").WritableSignal<number | null>;
|
|
7
|
-
protected readonly _height: import("@angular/core").WritableSignal<number | null>;
|
|
8
|
-
/**
|
|
9
|
-
* The id of the collapsible content element.
|
|
10
|
-
*/
|
|
11
|
-
readonly id: import("@angular/core").InputSignal<string | null | undefined>;
|
|
12
|
-
constructor();
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCollapsibleContent, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCollapsibleContent, "[brnCollapsibleContent],brn-collapsible-content", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ValueProvider } from '@angular/core';
|
|
2
|
-
import { type ExistingProvider, InjectionToken, type Type } from '@angular/core';
|
|
3
|
-
import type { MeasurementDisplay } from '@spartan-ng/brain/core';
|
|
4
|
-
import type { BrnCollapsible } from './brn-collapsible';
|
|
5
|
-
export declare const BrnCollapsibleToken: InjectionToken<BrnCollapsible>;
|
|
6
|
-
export declare function injectBrnCollapsible(): BrnCollapsible | null;
|
|
7
|
-
export declare function provideBrnCollapsible(collapsible: Type<BrnCollapsible>): ExistingProvider;
|
|
8
|
-
export interface BrCollapsibleConfig {
|
|
9
|
-
/**
|
|
10
|
-
* The display style to use when measuring element dimensions.
|
|
11
|
-
* @default 'block'
|
|
12
|
-
*/
|
|
13
|
-
measurementDisplay: MeasurementDisplay;
|
|
14
|
-
}
|
|
15
|
-
export declare function provideBrnCollapsibleConfig(config: Partial<BrCollapsibleConfig>): ValueProvider;
|
|
16
|
-
export declare function injectBrnCollapsibleConfig(): BrCollapsibleConfig;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnCollapsibleTrigger {
|
|
3
|
-
protected readonly _collapsible: import("@spartan-ng/brain/collapsible").BrnCollapsible | null;
|
|
4
|
-
readonly type: import("@angular/core").InputSignal<"button" | "submit" | "reset">;
|
|
5
|
-
constructor();
|
|
6
|
-
toggle(): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCollapsibleTrigger, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCollapsibleTrigger, "button[brnCollapsibleTrigger]", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export type BrnCollapsibleState = 'open' | 'closed';
|
|
4
|
-
export declare class BrnCollapsible {
|
|
5
|
-
readonly contentId: import("@angular/core").WritableSignal<string>;
|
|
6
|
-
/**
|
|
7
|
-
* The expanded or collapsed state of the collapsible component.
|
|
8
|
-
*/
|
|
9
|
-
readonly expanded: import("@angular/core").ModelSignal<boolean>;
|
|
10
|
-
/**
|
|
11
|
-
* The current state of the collapsible component as 'open' or 'closed'.
|
|
12
|
-
*/
|
|
13
|
-
readonly state: import("@angular/core").Signal<BrnCollapsibleState>;
|
|
14
|
-
/**
|
|
15
|
-
* The disabled state of the collapsible component.
|
|
16
|
-
*/
|
|
17
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
18
|
-
/**
|
|
19
|
-
* Toggles the expanded state of the collapsible component.
|
|
20
|
-
*/
|
|
21
|
-
toggle(): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCollapsible, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCollapsible, "[brnCollapsible],brn-collapsible", never, { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, never, true, never>;
|
|
24
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnCommandEmpty {
|
|
3
|
-
private readonly _templateRef;
|
|
4
|
-
private readonly _viewContainerRef;
|
|
5
|
-
private readonly _command;
|
|
6
|
-
/** Determine if the command has any visible items */
|
|
7
|
-
private readonly _visible;
|
|
8
|
-
constructor();
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCommandEmpty, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCommandEmpty, "[brnCommandEmpty]", never, {}, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnCommandGroup {
|
|
3
|
-
private static _id;
|
|
4
|
-
/** The id of the command list */
|
|
5
|
-
readonly id: import("@angular/core").InputSignal<string>;
|
|
6
|
-
/** Get the items in the group */
|
|
7
|
-
private readonly _items;
|
|
8
|
-
/** Determine if there are any visible items in the group */
|
|
9
|
-
protected readonly _visible: import("@angular/core").Signal<boolean>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCommandGroup, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCommandGroup, "[brnCommandGroup]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, ["_items"], never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type { Highlightable } from '@angular/cdk/a11y';
|
|
2
|
-
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
-
import { type OnInit } from '@angular/core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BrnCommandItem implements Highlightable, OnInit {
|
|
6
|
-
private static _id;
|
|
7
|
-
private readonly _platform;
|
|
8
|
-
private readonly _elementRef;
|
|
9
|
-
/** Access the command component */
|
|
10
|
-
private readonly _command;
|
|
11
|
-
/** A unique id for the item */
|
|
12
|
-
readonly id: import("@angular/core").InputSignal<string>;
|
|
13
|
-
/** The value this item represents. */
|
|
14
|
-
readonly value: import("@angular/core").InputSignal<string>;
|
|
15
|
-
/** Whether the item is disabled. */
|
|
16
|
-
readonly _disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
17
|
-
/** Expose disabled as a value - used by the Highlightable interface */
|
|
18
|
-
get disabled(): boolean;
|
|
19
|
-
/** Whether the item is initialized, this is to prevent accessing the value-input before the component is initialized.
|
|
20
|
-
* The brn-command-empty directive accesses the value before the component is initialized, which causes an error.
|
|
21
|
-
*/
|
|
22
|
-
private readonly _initialized;
|
|
23
|
-
/** Whether the item is selected. */
|
|
24
|
-
protected readonly _active: import("@angular/core").WritableSignal<boolean>;
|
|
25
|
-
/** Emits when the item is selected. */
|
|
26
|
-
readonly selected: import("@angular/core").OutputEmitterRef<void>;
|
|
27
|
-
/** @internal Determine if this item is visible based on the current search query */
|
|
28
|
-
readonly visible: import("@angular/core").Signal<boolean>;
|
|
29
|
-
/** @internal Get the value of the item, with check if it has been initialized to avoid errors */
|
|
30
|
-
readonly safeValue: import("@angular/core").Signal<string>;
|
|
31
|
-
/** @internal Get the display value */
|
|
32
|
-
getLabel(): string;
|
|
33
|
-
/** @internal */
|
|
34
|
-
setActiveStyles(): void;
|
|
35
|
-
/** @internal */
|
|
36
|
-
setInactiveStyles(): void;
|
|
37
|
-
protected onClick(): void;
|
|
38
|
-
protected activate(): void;
|
|
39
|
-
ngOnInit(): void;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCommandItem, never>;
|
|
41
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCommandItem, "button[brnCommandItem]", 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>;
|
|
42
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ExistingProvider, InjectionToken, type Type } from '@angular/core';
|
|
2
|
-
import type { BrnCommandItem } from './brn-command-item';
|
|
3
|
-
export declare const BrnCommandItemToken: InjectionToken<BrnCommandItem>;
|
|
4
|
-
export declare function provideBrnCommandItem(command: Type<BrnCommandItem>): ExistingProvider;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnCommandList {
|
|
3
|
-
private static _id;
|
|
4
|
-
/** The id of the command list */
|
|
5
|
-
readonly id: import("@angular/core").InputSignal<string>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCommandList, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCommandList, "[brnCommandList]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
-
import { DefaultValueAccessor } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BrnCommandSearchInput extends DefaultValueAccessor {
|
|
5
|
-
private readonly elementRef;
|
|
6
|
-
private readonly _command;
|
|
7
|
-
/** The initial value of the search input */
|
|
8
|
-
readonly value: import("@angular/core").InputSignal<string>;
|
|
9
|
-
/** @internal The mutable value of the search input */
|
|
10
|
-
readonly mutableValue: import("@angular/core").Signal<import("@angular/core").WritableSignal<string>>;
|
|
11
|
-
/** @internal The "real" value of the search input */
|
|
12
|
-
readonly valueState: import("@angular/core").Signal<string>;
|
|
13
|
-
/** The id of the active option */
|
|
14
|
-
protected readonly _activeDescendant: import("@angular/core").WritableSignal<string | undefined>;
|
|
15
|
-
constructor(renderer: Renderer2, elementRef: ElementRef, compositionMode: boolean);
|
|
16
|
-
/** Listen for changes to the input value */
|
|
17
|
-
protected onInput(): void;
|
|
18
|
-
/** Listen for keydown events */
|
|
19
|
-
protected onKeyDown(event: KeyboardEvent): void;
|
|
20
|
-
/** CONROL VALUE ACCESSOR */
|
|
21
|
-
writeValue(value: string | null): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCommandSearchInput, [null, null, { optional: true; }]>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCommandSearchInput, "input[brnCommandSearchInput]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ExistingProvider, InjectionToken, type Type } from '@angular/core';
|
|
2
|
-
import type { BrnCommandSearchInput } from './brn-command-search-input';
|
|
3
|
-
export declare const BrnCommandSearchInputToken: InjectionToken<BrnCommandSearchInput>;
|
|
4
|
-
export declare function provideBrnCommandSearchInput(command: Type<BrnCommandSearchInput>): ExistingProvider;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
2
|
-
import { type AfterViewInit } from '@angular/core';
|
|
3
|
-
import { type CommandFilter } from './brn-command.token';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BrnCommand implements AfterViewInit {
|
|
6
|
-
private static _id;
|
|
7
|
-
private readonly _platform;
|
|
8
|
-
private readonly _injector;
|
|
9
|
-
private readonly _config;
|
|
10
|
-
/** The id of the command */
|
|
11
|
-
readonly id: import("@angular/core").InputSignal<string>;
|
|
12
|
-
/** A custom filter function to use when searching. */
|
|
13
|
-
readonly filter: import("@angular/core").InputSignal<CommandFilter>;
|
|
14
|
-
/** when the selection has changed */
|
|
15
|
-
readonly valueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
16
|
-
/** @internal The search query */
|
|
17
|
-
readonly search: import("@angular/core").Signal<string>;
|
|
18
|
-
/** Access the search input if present */
|
|
19
|
-
private readonly _searchInput;
|
|
20
|
-
/** @internal Access all the items within the command */
|
|
21
|
-
readonly items: import("@angular/core").Signal<readonly import("@spartan-ng/brain/command").BrnCommandItem[]>;
|
|
22
|
-
/** @internal The key manager for managing active descendant */
|
|
23
|
-
readonly keyManager: ActiveDescendantKeyManager<import("@spartan-ng/brain/command").BrnCommandItem>;
|
|
24
|
-
constructor();
|
|
25
|
-
ngAfterViewInit(): void;
|
|
26
|
-
protected selectActiveItem(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCommand, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCommand, "[brnCommand]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, ["_searchInput", "items"], never, true, never>;
|
|
29
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ExistingProvider, InjectionToken, type Type, type ValueProvider } from '@angular/core';
|
|
2
|
-
import type { BrnCommand } from './brn-command';
|
|
3
|
-
export declare const BrnCommandToken: InjectionToken<BrnCommand>;
|
|
4
|
-
export declare function provideBrnCommand(command: Type<BrnCommand>): ExistingProvider;
|
|
5
|
-
export declare function injectBrnCommand(): BrnCommand;
|
|
6
|
-
export type CommandFilter = (value: string, search: string) => boolean;
|
|
7
|
-
export interface BrnCommandConfig {
|
|
8
|
-
filter: CommandFilter;
|
|
9
|
-
}
|
|
10
|
-
export declare function provideBrnCommandConfig(config: Partial<BrnCommandConfig>): ValueProvider;
|
|
11
|
-
export declare function injectBrnCommandConfig(): BrnCommandConfig;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type Signal } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Returns a signal that emits the previous value of the given signal.
|
|
4
|
-
* The first time the signal is emitted, the previous value will be the same as the current value.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* const value = signal(0);
|
|
9
|
-
* const previous = computedPrevious(value);
|
|
10
|
-
*
|
|
11
|
-
* effect(() => {
|
|
12
|
-
* console.log('Current value:', value());
|
|
13
|
-
* console.log('Previous value:', previous());
|
|
14
|
-
* });
|
|
15
|
-
*
|
|
16
|
-
* Logs:
|
|
17
|
-
* // Current value: 0
|
|
18
|
-
* // Previous value: 0
|
|
19
|
-
*
|
|
20
|
-
* value.set(1);
|
|
21
|
-
*
|
|
22
|
-
* Logs:
|
|
23
|
-
* // Current value: 1
|
|
24
|
-
* // Previous value: 0
|
|
25
|
-
*
|
|
26
|
-
* value.set(2);
|
|
27
|
-
*
|
|
28
|
-
* Logs:
|
|
29
|
-
* // Current value: 2
|
|
30
|
-
* // Previous value: 1
|
|
31
|
-
*```
|
|
32
|
-
*
|
|
33
|
-
* @param computation Signal to compute previous value for
|
|
34
|
-
* @returns Signal that emits previous value of `s`
|
|
35
|
-
*/
|
|
36
|
-
export declare function computedPrevious<T>(computation: Signal<T>): Signal<T>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { NgZone } from '@angular/core';
|
|
2
|
-
import { type Observable, type Subject } from 'rxjs';
|
|
3
|
-
export declare function isElement(node?: Element | EventTarget | Node | null): node is Element;
|
|
4
|
-
export declare const createHoverObservable: (nativeElement: HTMLElement, zone: NgZone, destroyed$: Subject<void>) => Observable<{
|
|
5
|
-
hover: boolean;
|
|
6
|
-
relatedTarget?: EventTarget | null;
|
|
7
|
-
}>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type InjectOptions, InjectionToken, type Provider, type Type } from '@angular/core';
|
|
2
|
-
type InjectFn<TTokenValue> = {
|
|
3
|
-
(): TTokenValue;
|
|
4
|
-
(injectOptions: InjectOptions & {
|
|
5
|
-
optional?: false;
|
|
6
|
-
}): TTokenValue;
|
|
7
|
-
(injectOptions: InjectOptions & {
|
|
8
|
-
optional: true;
|
|
9
|
-
}): TTokenValue | null;
|
|
10
|
-
};
|
|
11
|
-
type ProvideFn<TTokenValue> = (value: TTokenValue) => Provider;
|
|
12
|
-
type ProvideExistingFn<TTokenValue> = (valueFactory: () => Type<TTokenValue>) => Provider;
|
|
13
|
-
export type CreateInjectionTokenReturn<TTokenValue> = [
|
|
14
|
-
InjectFn<TTokenValue>,
|
|
15
|
-
ProvideFn<TTokenValue>,
|
|
16
|
-
ProvideExistingFn<TTokenValue>,
|
|
17
|
-
InjectionToken<TTokenValue>
|
|
18
|
-
];
|
|
19
|
-
export declare function createInjectionToken<TTokenValue>(description: string): CreateInjectionTokenReturn<TTokenValue>;
|
|
20
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface CustomElementClassSettable {
|
|
2
|
-
setClassToCustomElement: (newClass: string) => void;
|
|
3
|
-
}
|
|
4
|
-
export declare const injectCustomClassSettable: {
|
|
5
|
-
(): CustomElementClassSettable;
|
|
6
|
-
(injectOptions: import("@angular/core").InjectOptions & {
|
|
7
|
-
optional?: false;
|
|
8
|
-
}): CustomElementClassSettable;
|
|
9
|
-
(injectOptions: import("@angular/core").InjectOptions & {
|
|
10
|
-
optional: true;
|
|
11
|
-
}): CustomElementClassSettable | null;
|
|
12
|
-
}, provideCustomClassSettable: (value: CustomElementClassSettable) => import("@angular/core").Provider, provideCustomClassSettableExisting: (valueFactory: () => import("@angular/core").Type<CustomElementClassSettable>) => import("@angular/core").Provider, SET_CLASS_TO_CUSTOM_ELEMENT_TOKEN: import("@angular/core").InjectionToken<CustomElementClassSettable>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Signal } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a debounced version of a source signal.
|
|
4
|
-
*
|
|
5
|
-
* @param source - The input signal to debounce.
|
|
6
|
-
* @param delay - Debounce time in milliseconds.
|
|
7
|
-
* @returns A new signal that updates only after the source has stopped changing for `delay` ms.
|
|
8
|
-
*/
|
|
9
|
-
export declare function debouncedSignal<T>(source: Signal<T>, delay: number): Signal<T>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Signal } from '@angular/core';
|
|
2
|
-
export interface ExposesSide {
|
|
3
|
-
side: Signal<'top' | 'bottom' | 'left' | 'right'>;
|
|
4
|
-
}
|
|
5
|
-
export declare const injectExposedSideProvider: {
|
|
6
|
-
(): ExposesSide;
|
|
7
|
-
(injectOptions: import("@angular/core").InjectOptions & {
|
|
8
|
-
optional?: false;
|
|
9
|
-
}): ExposesSide;
|
|
10
|
-
(injectOptions: import("@angular/core").InjectOptions & {
|
|
11
|
-
optional: true;
|
|
12
|
-
}): ExposesSide | null;
|
|
13
|
-
}, provideExposedSideProvider: (value: ExposesSide) => import("@angular/core").Provider, provideExposedSideProviderExisting: (valueFactory: () => import("@angular/core").Type<ExposesSide>) => import("@angular/core").Provider, EXPOSES_SIDE_TOKEN: import("@angular/core").InjectionToken<ExposesSide>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Signal } from '@angular/core';
|
|
2
|
-
export interface ExposesState {
|
|
3
|
-
state: Signal<'open' | 'closed'>;
|
|
4
|
-
}
|
|
5
|
-
export declare const injectExposesStateProvider: {
|
|
6
|
-
(): ExposesState;
|
|
7
|
-
(injectOptions: import("@angular/core").InjectOptions & {
|
|
8
|
-
optional?: false;
|
|
9
|
-
}): ExposesState;
|
|
10
|
-
(injectOptions: import("@angular/core").InjectOptions & {
|
|
11
|
-
optional: true;
|
|
12
|
-
}): ExposesState | null;
|
|
13
|
-
}, provideExposesStateProvider: (value: ExposesState) => import("@angular/core").Provider, provideExposesStateProviderExisting: (valueFactory: () => import("@angular/core").Type<ExposesState>) => import("@angular/core").Provider, EXPOSES_STATE_TOKEN: import("@angular/core").InjectionToken<ExposesState>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type MeasurementDisplay = 'block' | 'inline-block' | 'flex' | 'grid' | 'table' | 'contents' | (string & {});
|
|
2
|
-
export declare const measureDimensions: (elementToMeasure: HTMLElement, measurementDisplay: MeasurementDisplay) => {
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface TableClassesSettable {
|
|
2
|
-
setTableClasses: (classes: Partial<{
|
|
3
|
-
table: string;
|
|
4
|
-
headerRow: string;
|
|
5
|
-
bodyRow: string;
|
|
6
|
-
}>) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const injectTableClassesSettable: {
|
|
9
|
-
(): TableClassesSettable;
|
|
10
|
-
(injectOptions: import("@angular/core").InjectOptions & {
|
|
11
|
-
optional?: false;
|
|
12
|
-
}): TableClassesSettable;
|
|
13
|
-
(injectOptions: import("@angular/core").InjectOptions & {
|
|
14
|
-
optional: true;
|
|
15
|
-
}): TableClassesSettable | null;
|
|
16
|
-
}, provideTableClassesSettable: (value: TableClassesSettable) => import("@angular/core").Provider, provideTableClassesSettableExisting: (valueFactory: () => import("@angular/core").Type<TableClassesSettable>) => import("@angular/core").Provider, SET_TABLE_CLASSES_TOKEN: import("@angular/core").InjectionToken<TableClassesSettable>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* We are building on shoulders of giants here and use the implementation provided by the incredible TaigaUI
|
|
3
|
-
* team: https://github.com/taiga-family/taiga-ui/blob/main/projects/cdk/observables/zone-free.ts#L22
|
|
4
|
-
* Check them out! Give them a try! Leave a star! Their work is incredible!
|
|
5
|
-
*/
|
|
6
|
-
import type { NgZone } from '@angular/core';
|
|
7
|
-
import { type MonoTypeOperatorFunction } from 'rxjs';
|
|
8
|
-
export declare function brnZoneFull<T>(zone: NgZone): MonoTypeOperatorFunction<T>;
|
|
9
|
-
export declare function brnZoneFree<T>(zone: NgZone): MonoTypeOperatorFunction<T>;
|
|
10
|
-
export declare function brnZoneOptimized<T>(zone: NgZone): MonoTypeOperatorFunction<T>;
|