@spartan-ng/brain 0.0.1-alpha.563 → 0.0.1-alpha.565
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 +9 -9
- 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,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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isBright: (hex: string) => boolean;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnButton {
|
|
4
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
5
|
-
protected readonly _isAnchor: boolean;
|
|
6
|
-
private readonly _elementRef;
|
|
7
|
-
constructor();
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnButton, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnButton, "a[brnButton], button[brnButton]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnCalendarCellButton<T> {
|
|
3
|
-
/** Access the date adapter */
|
|
4
|
-
protected readonly _dateAdapter: import("@spartan-ng/brain/date-time").BrnDateAdapter<T>;
|
|
5
|
-
/** Access the calendar component */
|
|
6
|
-
protected readonly _calendar: import("./brn-calendar.token").BrnCalendarBase<T>;
|
|
7
|
-
/** Access the element ref */
|
|
8
|
-
private readonly _elementRef;
|
|
9
|
-
/** The date this cell represents */
|
|
10
|
-
readonly date: import("@angular/core").InputSignal<T>;
|
|
11
|
-
/** Whether this date is currently selected */
|
|
12
|
-
readonly selected: import("@angular/core").Signal<boolean>;
|
|
13
|
-
readonly start: import("@angular/core").Signal<boolean>;
|
|
14
|
-
readonly end: import("@angular/core").Signal<boolean>;
|
|
15
|
-
readonly betweenRange: import("@angular/core").Signal<boolean>;
|
|
16
|
-
/** Whether this date is focusable */
|
|
17
|
-
readonly focusable: import("@angular/core").Signal<boolean>;
|
|
18
|
-
readonly outside: import("@angular/core").Signal<boolean>;
|
|
19
|
-
/** Whether this date is today */
|
|
20
|
-
readonly today: import("@angular/core").Signal<boolean>;
|
|
21
|
-
/** Whether this date is disabled */
|
|
22
|
-
readonly disabled: import("@angular/core").Signal<boolean>;
|
|
23
|
-
/**
|
|
24
|
-
* Focus the previous cell.
|
|
25
|
-
*/
|
|
26
|
-
protected focusPrevious(event: Event): void;
|
|
27
|
-
/**
|
|
28
|
-
* Focus the next cell.
|
|
29
|
-
*/
|
|
30
|
-
protected focusNext(event: Event): void;
|
|
31
|
-
/**
|
|
32
|
-
* Focus the above cell.
|
|
33
|
-
*/
|
|
34
|
-
protected focusAbove(event: Event): void;
|
|
35
|
-
/**
|
|
36
|
-
* Focus the below cell.
|
|
37
|
-
*/
|
|
38
|
-
protected focusBelow(event: Event): void;
|
|
39
|
-
/**
|
|
40
|
-
* Focus the first date of the month.
|
|
41
|
-
*/
|
|
42
|
-
protected focusFirst(event: Event): void;
|
|
43
|
-
/**
|
|
44
|
-
* Focus the last date of the month.
|
|
45
|
-
*/
|
|
46
|
-
protected focusLast(event: Event): void;
|
|
47
|
-
/**
|
|
48
|
-
* Focus the same date in the previous month.
|
|
49
|
-
*/
|
|
50
|
-
protected focusPreviousMonth(event: Event): void;
|
|
51
|
-
/**
|
|
52
|
-
* Focus the same date in the next month.
|
|
53
|
-
*/
|
|
54
|
-
protected focusNextMonth(event: Event): void;
|
|
55
|
-
/**
|
|
56
|
-
* Get the direction of the element.
|
|
57
|
-
*/
|
|
58
|
-
private getDirection;
|
|
59
|
-
focus(): void;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendarCellButton<any>, never>;
|
|
61
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCalendarCellButton<any>, "button[brnCalendarCellButton]", never, { "date": { "alias": "date"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
62
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnCalendarGrid<T> {
|
|
3
|
-
/** Access the calendar component */
|
|
4
|
-
protected readonly _calendar: import("./brn-calendar.token").BrnCalendarBase<T>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendarGrid<any>, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCalendarGrid<any>, "[brnCalendarGrid]", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnCalendarHeader {
|
|
3
|
-
/** The unique id for the header */
|
|
4
|
-
readonly id: import("@angular/core").InputSignal<string>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendarHeader, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCalendarHeader, "[brnCalendarHeader]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnCalendarMonthSelect {
|
|
3
|
-
/** Access the select */
|
|
4
|
-
private readonly _select;
|
|
5
|
-
/** Access the calendar */
|
|
6
|
-
private readonly _calendar;
|
|
7
|
-
/** Access the date adapter */
|
|
8
|
-
private readonly _dateAdapter;
|
|
9
|
-
/** Access the calendar i18n */
|
|
10
|
-
protected readonly _i18n: import("./i18n/calendar-i18n").BrnCalendarI18nService;
|
|
11
|
-
protected readonly _selectedMonth: import("@angular/core").Signal<string>;
|
|
12
|
-
constructor();
|
|
13
|
-
/** Focus selected month */
|
|
14
|
-
protected monthSelected(selectedMonth: string): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendarMonthSelect, never>;
|
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCalendarMonthSelect, "brn-select[brnCalendarMonthSelect]", never, {}, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnCalendarNextButton {
|
|
3
|
-
/** Access the calendar */
|
|
4
|
-
private readonly _calendar;
|
|
5
|
-
/** Access the date adapter */
|
|
6
|
-
private readonly _dateAdapter;
|
|
7
|
-
/** Access the calendar i18n */
|
|
8
|
-
protected readonly _i18n: import("./i18n/calendar-i18n").BrnCalendarI18nService;
|
|
9
|
-
/** Focus the previous month */
|
|
10
|
-
protected focusPreviousMonth(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendarNextButton, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCalendarNextButton, "[brnCalendarNextButton]", never, {}, {}, never, never, true, never>;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnCalendarPreviousButton {
|
|
3
|
-
/** Access the calendar */
|
|
4
|
-
private readonly _calendar;
|
|
5
|
-
/** Access the date adapter */
|
|
6
|
-
private readonly _dateAdapter;
|
|
7
|
-
/** Access the calendar i18n */
|
|
8
|
-
protected readonly _i18n: import("./i18n/calendar-i18n").BrnCalendarI18nService;
|
|
9
|
-
/** Focus the previous month */
|
|
10
|
-
protected focusPreviousMonth(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendarPreviousButton, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCalendarPreviousButton, "[brnCalendarPreviousButton]", never, {}, {}, never, never, true, never>;
|
|
13
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type OnDestroy } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnCalendarWeek<T> implements OnDestroy {
|
|
4
|
-
/** Access the calendar */
|
|
5
|
-
private readonly _calendar;
|
|
6
|
-
/** Access the view container ref */
|
|
7
|
-
private readonly _viewContainerRef;
|
|
8
|
-
/** Access the change detector */
|
|
9
|
-
private readonly _changeDetector;
|
|
10
|
-
/** Access the template ref */
|
|
11
|
-
private readonly _templateRef;
|
|
12
|
-
protected readonly _weeks: import("@angular/core").Signal<T[][]>;
|
|
13
|
-
/** Store the view refs */
|
|
14
|
-
private _viewRefs;
|
|
15
|
-
static ngTemplateContextGuard<T>(_: BrnCalendarWeek<T>, ctx: unknown): ctx is BrnWeekContext<T>;
|
|
16
|
-
constructor();
|
|
17
|
-
private _renderWeeks;
|
|
18
|
-
ngOnDestroy(): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendarWeek<any>, never>;
|
|
20
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCalendarWeek<any>, "[brnCalendarWeek]", never, {}, {}, never, never, true, never>;
|
|
21
|
-
}
|
|
22
|
-
interface BrnWeekContext<T> {
|
|
23
|
-
$implicit: T[];
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type OnDestroy } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BrnCalendarWeekday<T> implements OnDestroy {
|
|
4
|
-
/** Access the calendar */
|
|
5
|
-
private readonly _calendar;
|
|
6
|
-
/** Access the date time adapter */
|
|
7
|
-
private readonly _dateAdapter;
|
|
8
|
-
/** Access the view container ref */
|
|
9
|
-
private readonly _viewContainerRef;
|
|
10
|
-
/** Access the change detector */
|
|
11
|
-
private readonly _changeDetector;
|
|
12
|
-
/** Access the template ref */
|
|
13
|
-
private readonly _templateRef;
|
|
14
|
-
/** Get the days of the week to display in the header. */
|
|
15
|
-
protected readonly _weekdays: import("@angular/core").Signal<T[]>;
|
|
16
|
-
/** Store the view refs */
|
|
17
|
-
private _viewRefs;
|
|
18
|
-
static ngTemplateContextGuard<T>(_: BrnCalendarWeekday<T>, ctx: unknown): ctx is BrnWeekdayContext;
|
|
19
|
-
constructor();
|
|
20
|
-
private _renderWeekdays;
|
|
21
|
-
ngOnDestroy(): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendarWeekday<any>, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCalendarWeekday<any>, "[brnCalendarWeekday]", never, {}, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
25
|
-
interface BrnWeekdayContext {
|
|
26
|
-
$implicit: number;
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BrnCalendarYearSelect {
|
|
3
|
-
/** Access the select */
|
|
4
|
-
private readonly _select;
|
|
5
|
-
/** Access the calendar */
|
|
6
|
-
private readonly _calendar;
|
|
7
|
-
/** Access the date adapter */
|
|
8
|
-
private readonly _dateAdapter;
|
|
9
|
-
/** Access the calendar i18n */
|
|
10
|
-
protected readonly _i18n: import("./i18n/calendar-i18n").BrnCalendarI18nService;
|
|
11
|
-
constructor();
|
|
12
|
-
/** Focus selected year */
|
|
13
|
-
protected yearSelected(year: number): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendarYearSelect, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCalendarYearSelect, "brn-select[brnCalendarYearSelect]", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { BrnCalendarCellButton } from './brn-calendar-cell-button';
|
|
3
|
-
import { BrnCalendarHeader } from './brn-calendar-header';
|
|
4
|
-
import { type BrnCalendarBase } from './brn-calendar.token';
|
|
5
|
-
import { type Weekday } from './i18n/calendar-i18n';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class BrnCalendar<T> implements BrnCalendarBase<T> {
|
|
8
|
-
private readonly _i18n;
|
|
9
|
-
/** Access the date adapter */
|
|
10
|
-
protected readonly _dateAdapter: import("@spartan-ng/brain/date-time").BrnDateAdapter<T>;
|
|
11
|
-
/** Access the change detector */
|
|
12
|
-
private readonly _changeDetector;
|
|
13
|
-
/** Access the injector */
|
|
14
|
-
private readonly _injector;
|
|
15
|
-
/** The minimum date that can be selected.*/
|
|
16
|
-
readonly min: import("@angular/core").InputSignal<T | undefined>;
|
|
17
|
-
/** The maximum date that can be selected. */
|
|
18
|
-
readonly max: import("@angular/core").InputSignal<T | undefined>;
|
|
19
|
-
/** Determine if the date picker is disabled. */
|
|
20
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
21
|
-
/** The selected value. */
|
|
22
|
-
readonly date: import("@angular/core").ModelSignal<T | undefined>;
|
|
23
|
-
/** Whether a specific date is disabled. */
|
|
24
|
-
readonly dateDisabled: import("@angular/core").InputSignal<(date: T) => boolean>;
|
|
25
|
-
/** The day the week starts on */
|
|
26
|
-
readonly weekStartsOn: import("@angular/core").InputSignalWithTransform<Weekday | undefined, NumberInput>;
|
|
27
|
-
protected readonly _weekStartsOn: import("@angular/core").Signal<Weekday>;
|
|
28
|
-
/** The default focused date. */
|
|
29
|
-
readonly defaultFocusedDate: import("@angular/core").InputSignal<T | undefined>;
|
|
30
|
-
/** @internal Access the header */
|
|
31
|
-
readonly header: import("@angular/core").Signal<BrnCalendarHeader | undefined>;
|
|
32
|
-
/** Store the cells */
|
|
33
|
-
protected readonly _cells: import("@angular/core").Signal<readonly BrnCalendarCellButton<T>[]>;
|
|
34
|
-
/**
|
|
35
|
-
* The focused date.
|
|
36
|
-
*/
|
|
37
|
-
readonly focusedDate: import("@angular/core").WritableSignal<T>;
|
|
38
|
-
/**
|
|
39
|
-
* Get all the days to display, this is the days of the current month
|
|
40
|
-
* and the days of the previous and next month to fill the grid.
|
|
41
|
-
*/
|
|
42
|
-
readonly days: import("@angular/core").Signal<T[]>;
|
|
43
|
-
/** @internal Constrain a date to the min and max boundaries */
|
|
44
|
-
constrainDate(date: T): T;
|
|
45
|
-
/** @internal Determine if a date is disabled */
|
|
46
|
-
isDateDisabled(date: T): boolean;
|
|
47
|
-
isSelected(date: T): boolean;
|
|
48
|
-
selectDate(date: T): void;
|
|
49
|
-
/** @internal Set the focused date */
|
|
50
|
-
setFocusedDate(date: T): void;
|
|
51
|
-
/**
|
|
52
|
-
* Determine if a date is the start of a range. In a date picker, this is always false.
|
|
53
|
-
* @param date The date to check.
|
|
54
|
-
* @returns Always false.
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
isStartOfRange(_: T): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Determine if a date is the end of a range. In a date picker, this is always false.
|
|
60
|
-
* @param date The date to check.
|
|
61
|
-
* @returns Always false.
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
isEndOfRange(_: T): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Determine if a date is between the start and end dates. In a date picker, this is always false.
|
|
67
|
-
* @param date The date to check.
|
|
68
|
-
* @returns True if the date is between the start and end dates, false otherwise.
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
isBetweenRange(_: T): boolean;
|
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendar<any>, never>;
|
|
73
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCalendar<any>, "[brnCalendar]", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "dateDisabled": { "alias": "dateDisabled"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "defaultFocusedDate": { "alias": "defaultFocusedDate"; "required": false; "isSignal": true; }; }, { "date": "dateChange"; }, ["header", "_cells"], never, true, never>;
|
|
74
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type ExistingProvider, InjectionToken, type Signal, type Type, type WritableSignal } from '@angular/core';
|
|
2
|
-
import type { BrnCalendarHeader } from './brn-calendar-header';
|
|
3
|
-
export interface BrnCalendarBase<T> {
|
|
4
|
-
isSelected: (date: T) => boolean;
|
|
5
|
-
selectDate: (date: T) => void;
|
|
6
|
-
constrainDate: (date: T) => T;
|
|
7
|
-
isDateDisabled: (date: T) => boolean;
|
|
8
|
-
setFocusedDate: (date: T) => void;
|
|
9
|
-
isStartOfRange: (date: T) => boolean;
|
|
10
|
-
isEndOfRange: (date: T) => boolean;
|
|
11
|
-
isBetweenRange: (date: T) => boolean;
|
|
12
|
-
disabled: Signal<boolean>;
|
|
13
|
-
focusedDate: WritableSignal<T>;
|
|
14
|
-
header: Signal<BrnCalendarHeader | undefined>;
|
|
15
|
-
days: Signal<T[]>;
|
|
16
|
-
}
|
|
17
|
-
export declare const BrnCalendarToken: InjectionToken<BrnCalendarBase<unknown>>;
|
|
18
|
-
export declare function provideBrnCalendar<T>(instance: Type<BrnCalendarBase<T>>): ExistingProvider;
|
|
19
|
-
/**
|
|
20
|
-
* Inject the calendar component.
|
|
21
|
-
*/
|
|
22
|
-
export declare function injectBrnCalendar<T>(): BrnCalendarBase<T>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export type Weekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
-
interface BrnCalendarI18n {
|
|
5
|
-
formatWeekdayName: (index: number) => string;
|
|
6
|
-
formatHeader: (month: number, year: number) => string;
|
|
7
|
-
formatYear: (year: number) => string;
|
|
8
|
-
formatMonth: (month: number) => string;
|
|
9
|
-
labelPrevious: () => string;
|
|
10
|
-
labelNext: () => string;
|
|
11
|
-
labelWeekday: (index: number) => string;
|
|
12
|
-
months: () => [string, string, string, string, string, string, string, string, string, string, string, string];
|
|
13
|
-
years: (startYear?: number, endYear?: number) => number[];
|
|
14
|
-
firstDayOfWeek: () => Weekday;
|
|
15
|
-
}
|
|
16
|
-
export declare const BrnCalendarI18nToken: InjectionToken<BrnCalendarI18nService>;
|
|
17
|
-
/**
|
|
18
|
-
* Provide the calendar i18n configuration.
|
|
19
|
-
*/
|
|
20
|
-
export declare function provideBrnCalendarI18n(configuration?: BrnCalendarI18n): Provider;
|
|
21
|
-
/**
|
|
22
|
-
* Inject the calendar i18n configuration.
|
|
23
|
-
*/
|
|
24
|
-
export declare function injectBrnCalendarI18n(): BrnCalendarI18nService;
|
|
25
|
-
export declare class BrnCalendarI18nService {
|
|
26
|
-
private readonly _config;
|
|
27
|
-
readonly config: import("@angular/core").Signal<BrnCalendarI18n>;
|
|
28
|
-
use(config: Partial<BrnCalendarI18n>): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendarI18nService, never>;
|
|
30
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<BrnCalendarI18nService>;
|
|
31
|
-
}
|
|
32
|
-
export {};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { BrnCalendarCellButton } from '../brn-calendar-cell-button';
|
|
3
|
-
import { BrnCalendarHeader } from '../brn-calendar-header';
|
|
4
|
-
import { type BrnCalendarBase } from '../brn-calendar.token';
|
|
5
|
-
import { type Weekday } from '../i18n/calendar-i18n';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class BrnCalendarMulti<T> implements BrnCalendarBase<T> {
|
|
8
|
-
private readonly _i18n;
|
|
9
|
-
/**
|
|
10
|
-
* Determine if a date is the start of a range. In a date picker, this is always false.
|
|
11
|
-
* @param date The date to check.
|
|
12
|
-
* @returns Always false.
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
isStartOfRange(_: T): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Determine if a date is the end of a range. In a date picker, this is always false.
|
|
18
|
-
* @param date The date to check.
|
|
19
|
-
* @returns Always false.
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
isEndOfRange(_: T): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Determine if a date is between the start and end dates. In a date picker, this is always false.
|
|
25
|
-
* @param date The date to check.
|
|
26
|
-
* @returns True if the date is between the start and end dates, false otherwise.
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
isBetweenRange(_: T): boolean;
|
|
30
|
-
protected readonly _dateAdapter: import("@spartan-ng/brain/date-time").BrnDateAdapter<T>;
|
|
31
|
-
/** Access the change detector */
|
|
32
|
-
private readonly _changeDetector;
|
|
33
|
-
/** Access the injector */
|
|
34
|
-
private readonly _injector;
|
|
35
|
-
/** The minimum date that can be selected.*/
|
|
36
|
-
readonly min: import("@angular/core").InputSignal<T | undefined>;
|
|
37
|
-
/** The maximum date that can be selected. */
|
|
38
|
-
readonly max: import("@angular/core").InputSignal<T | undefined>;
|
|
39
|
-
/** The minimum selectable dates. */
|
|
40
|
-
readonly minSelection: import("@angular/core").InputSignalWithTransform<number | undefined, NumberInput>;
|
|
41
|
-
/** The maximum selectable dates. */
|
|
42
|
-
readonly maxSelection: import("@angular/core").InputSignalWithTransform<number | undefined, NumberInput>;
|
|
43
|
-
/** Determine if the date picker is disabled. */
|
|
44
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
45
|
-
/** The selected value. */
|
|
46
|
-
readonly date: import("@angular/core").ModelSignal<T[] | undefined>;
|
|
47
|
-
/** Whether a specific date is disabled. */
|
|
48
|
-
readonly dateDisabled: import("@angular/core").InputSignal<(date: T) => boolean>;
|
|
49
|
-
/** The day the week starts on */
|
|
50
|
-
readonly weekStartsOn: import("@angular/core").InputSignalWithTransform<Weekday | undefined, NumberInput>;
|
|
51
|
-
protected readonly _weekStartsOn: import("@angular/core").Signal<Weekday>;
|
|
52
|
-
/** The default focused date. */
|
|
53
|
-
readonly defaultFocusedDate: import("@angular/core").InputSignal<T | undefined>;
|
|
54
|
-
/** @internal Access the header */
|
|
55
|
-
readonly header: import("@angular/core").Signal<BrnCalendarHeader | undefined>;
|
|
56
|
-
/** Store the cells */
|
|
57
|
-
protected readonly _cells: import("@angular/core").Signal<readonly BrnCalendarCellButton<T>[]>;
|
|
58
|
-
/**
|
|
59
|
-
* The focused date.
|
|
60
|
-
*/
|
|
61
|
-
readonly focusedDate: import("@angular/core").WritableSignal<T>;
|
|
62
|
-
/**
|
|
63
|
-
* Get all the days to display, this is the days of the current month
|
|
64
|
-
* and the days of the previous and next month to fill the grid.
|
|
65
|
-
*/
|
|
66
|
-
readonly days: import("@angular/core").Signal<T[]>;
|
|
67
|
-
isSelected(date: T): boolean;
|
|
68
|
-
selectDate(date: T): void;
|
|
69
|
-
/** @internal Constrain a date to the min and max boundaries */
|
|
70
|
-
constrainDate(date: T): T;
|
|
71
|
-
/** @internal Determine if a date is disabled */
|
|
72
|
-
isDateDisabled(date: T): boolean;
|
|
73
|
-
/** @internal Set the focused date */
|
|
74
|
-
setFocusedDate(date: T): void;
|
|
75
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendarMulti<any>, never>;
|
|
76
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCalendarMulti<any>, "[brnCalendarMulti]", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "minSelection": { "alias": "minSelection"; "required": false; "isSignal": true; }; "maxSelection": { "alias": "maxSelection"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "dateDisabled": { "alias": "dateDisabled"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "defaultFocusedDate": { "alias": "defaultFocusedDate"; "required": false; "isSignal": true; }; }, { "date": "dateChange"; }, ["header", "_cells"], never, true, never>;
|
|
77
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { BrnCalendarCellButton } from '../brn-calendar-cell-button';
|
|
3
|
-
import { BrnCalendarHeader } from '../brn-calendar-header';
|
|
4
|
-
import { type BrnCalendarBase } from '../brn-calendar.token';
|
|
5
|
-
import { type Weekday } from '../i18n/calendar-i18n';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class BrnCalendarRange<T> implements BrnCalendarBase<T> {
|
|
8
|
-
private readonly _i18n;
|
|
9
|
-
protected readonly _dateAdapter: import("@spartan-ng/brain/date-time").BrnDateAdapter<T>;
|
|
10
|
-
/** Access the change detector */
|
|
11
|
-
private readonly _changeDetector;
|
|
12
|
-
/** Access the injector */
|
|
13
|
-
private readonly _injector;
|
|
14
|
-
/** The minimum date that can be selected.*/
|
|
15
|
-
readonly min: import("@angular/core").InputSignal<T | undefined>;
|
|
16
|
-
/** The maximum date that can be selected. */
|
|
17
|
-
readonly max: import("@angular/core").InputSignal<T | undefined>;
|
|
18
|
-
/** Determine if the date picker is disabled. */
|
|
19
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
20
|
-
/** Whether a specific date is disabled. */
|
|
21
|
-
readonly dateDisabled: import("@angular/core").InputSignal<(date: T) => boolean>;
|
|
22
|
-
/** The day the week starts on */
|
|
23
|
-
readonly weekStartsOn: import("@angular/core").InputSignalWithTransform<Weekday | undefined, NumberInput>;
|
|
24
|
-
protected readonly _weekStartsOn: import("@angular/core").Signal<Weekday>;
|
|
25
|
-
/** The default focused date. */
|
|
26
|
-
readonly defaultFocusedDate: import("@angular/core").InputSignal<T | undefined>;
|
|
27
|
-
/** @internal Access the header */
|
|
28
|
-
readonly header: import("@angular/core").Signal<BrnCalendarHeader | undefined>;
|
|
29
|
-
/** Store the cells */
|
|
30
|
-
protected readonly _cells: import("@angular/core").Signal<readonly BrnCalendarCellButton<T>[]>;
|
|
31
|
-
/**
|
|
32
|
-
* The focused date.
|
|
33
|
-
*/
|
|
34
|
-
readonly focusedDate: import("@angular/core").WritableSignal<T>;
|
|
35
|
-
/**
|
|
36
|
-
* The selected start date
|
|
37
|
-
*/
|
|
38
|
-
readonly startDate: import("@angular/core").ModelSignal<T | undefined>;
|
|
39
|
-
/**
|
|
40
|
-
* The selected end date
|
|
41
|
-
*/
|
|
42
|
-
readonly endDate: import("@angular/core").ModelSignal<T | undefined>;
|
|
43
|
-
/**
|
|
44
|
-
* Get all the days to display, this is the days of the current month
|
|
45
|
-
* and the days of the previous and next month to fill the grid.
|
|
46
|
-
*/
|
|
47
|
-
readonly days: import("@angular/core").Signal<T[]>;
|
|
48
|
-
isSelected(date: T): boolean;
|
|
49
|
-
selectDate(date: T): void;
|
|
50
|
-
/** @internal Constrain a date to the min and max boundaries */
|
|
51
|
-
constrainDate(date: T): T;
|
|
52
|
-
/** @internal Determine if a date is disabled */
|
|
53
|
-
isDateDisabled(date: T): boolean;
|
|
54
|
-
/** @internal Set the focused date */
|
|
55
|
-
setFocusedDate(date: T): void;
|
|
56
|
-
/**
|
|
57
|
-
* Determine if a date is the start of a range.
|
|
58
|
-
* @param date The date to check.
|
|
59
|
-
* @returns Always false.
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
isStartOfRange(date: T): boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Determine if a date is the end of a range.
|
|
65
|
-
* @param date The date to check.
|
|
66
|
-
* @returns Always false.
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
isEndOfRange(date: T): boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Determine if a date is between the start and end dates.
|
|
72
|
-
* @param date The date to check.
|
|
73
|
-
* @returns True if the date is between the start and end dates, false otherwise.
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
isBetweenRange(date: T): boolean;
|
|
77
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BrnCalendarRange<any>, never>;
|
|
78
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrnCalendarRange<any>, "[brnCalendarRange]", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "dateDisabled": { "alias": "dateDisabled"; "required": false; "isSignal": true; }; "weekStartsOn": { "alias": "weekStartsOn"; "required": false; "isSignal": true; }; "defaultFocusedDate": { "alias": "defaultFocusedDate"; "required": false; "isSignal": true; }; "startDate": { "alias": "startDate"; "required": false; "isSignal": true; }; "endDate": { "alias": "endDate"; "required": false; "isSignal": true; }; }, { "startDate": "startDateChange"; "endDate": "endDateChange"; }, ["header", "_cells"], never, true, never>;
|
|
79
|
-
}
|