@basis-ng/primitives 0.0.1-alpha.6 → 0.0.1-alpha.61
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/core/components/alert/alert.component.d.ts +3 -3
- package/core/components/badge/badge.component.d.ts +3 -3
- package/core/components/button/button.component.d.ts +31 -16
- package/core/components/button-group/button-group.component.d.ts +3 -3
- package/core/components/card/card-content.component.d.ts +5 -0
- package/core/components/card/card-description.component.d.ts +5 -0
- package/core/components/card/card-footer.component.d.ts +5 -0
- package/core/components/card/card-header.component.d.ts +5 -0
- package/core/components/card/card-title.component.d.ts +5 -0
- package/core/components/card/card.component.d.ts +10 -0
- package/core/components/color-picker/color-picker.component.d.ts +3 -3
- package/core/components/combobox/combobox.component.d.ts +114 -0
- package/core/components/command/command-options.component.d.ts +58 -0
- package/core/components/command/command.component.d.ts +67 -0
- package/core/components/dialog/dialog.component.d.ts +42 -0
- package/core/components/{bottom-sheet/bottom-sheet.component.d.ts → drawer/drawer.component.d.ts} +14 -14
- package/core/components/icon/icon.component.d.ts +3 -3
- package/core/components/input/input.component.d.ts +12 -27
- package/core/components/input-group/input-group.component.d.ts +4 -8
- package/core/components/menu/menu.component.d.ts +3 -3
- package/core/components/menu/shared/components/menu-group/menu-group.component.d.ts +9 -0
- package/core/components/menu/shared/components/menu-item/menu-item.component.d.ts +5 -1
- package/core/components/menu/shared/components/menu-item-checkbox/menu-item-checkbox.component.d.ts +5 -1
- package/core/components/menu/shared/components/menu-item-radio/menu-item-radio.component.d.ts +5 -1
- package/core/components/menu/shared/components/menu-label/menu-label.component.d.ts +3 -3
- package/core/components/menu/shared/directives/menu-trigger.directive.d.ts +3 -3
- package/core/components/range/range.component.d.ts +3 -3
- package/core/components/select/{select-content.component.d.ts → select-options.component.d.ts} +8 -13
- package/core/components/select/select.component.d.ts +21 -22
- package/core/components/{side-sheet/side-sheet.component.d.ts → sheet/sheet.component.d.ts} +11 -11
- package/core/components/spinner/spinner.component.d.ts +3 -3
- package/core/components/switch/switch.component.d.ts +3 -3
- package/core/components/table/components/row/components/row-item/row-item.component.d.ts +3 -3
- package/core/components/table/components/row/row.component.d.ts +3 -3
- package/core/components/table/table.component.d.ts +3 -3
- package/core/components/tabs/tab.component.d.ts +11 -0
- package/core/components/tabs/tabs.component.d.ts +19 -50
- package/core/components/textarea/textarea.component.d.ts +5 -44
- package/core/components/tooltip/tooltip.component.d.ts +22 -22
- package/core/components/tooltip/tooltip.directive.d.ts +114 -0
- package/core/components/tree/shared/components/tree-node/tree-node.component.d.ts +5 -5
- package/core/components/tree/tree.component.d.ts +3 -3
- package/core/directives/dialog.directive.d.ts +90 -0
- package/core/directives/overlay-trigger.directive.d.ts +23 -0
- package/core/directives/overlay.directive.d.ts +111 -0
- package/core/services/dialog.service.d.ts +91 -0
- package/fesm2022/basis-ng-primitives.mjs +2079 -1421
- package/fesm2022/basis-ng-primitives.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +21 -11
- package/shared/components/option.component.d.ts +22 -0
- package/shared/services/utils.service.d.ts +14 -7
- package/core/components/attached-box/attached-box.component.d.ts +0 -125
- package/core/components/attached-box/types/alignment.type.d.ts +0 -1
- package/core/components/search/search.component.d.ts +0 -121
- package/core/components/select/select-option.component.d.ts +0 -22
- package/core/components/tabs/components/tab/tab.component.d.ts +0 -25
- package/shared/components/label/label.component.d.ts +0 -30
- package/shared/components/option/option.component.d.ts +0 -10
- /package/{core/components/attached-box → shared}/types/direction.type.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class AlertComponent {
|
|
3
3
|
/** The type of the alert. */
|
|
4
4
|
readonly type: import("@angular/core").InputSignal<"error" | "success" | "warning" | "info">;
|
|
5
5
|
/** The title of the alert. */
|
|
@@ -15,6 +15,6 @@ export declare class Alert {
|
|
|
15
15
|
/** The color foreground of the alert. */
|
|
16
16
|
readonly colorForeground: import("@angular/core").Signal<string>;
|
|
17
17
|
dismiss(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "b-alert", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; }, { "dismissed": "dismissed"; }, never, ["*"], true, never>;
|
|
20
20
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class BadgeComponent {
|
|
3
3
|
/** The variant of the badge. */
|
|
4
4
|
readonly variant: import("@angular/core").InputSignal<"primary" | "secondary" | "ghost" | "outlined">;
|
|
5
5
|
/** The size of the badge. */
|
|
6
6
|
readonly size: import("@angular/core").InputSignal<"small" | "default">;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "span[b-badge]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
9
|
}
|
|
@@ -1,22 +1,37 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Button component that provides various styles and configurations.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ButtonComponent {
|
|
7
|
+
/**
|
|
8
|
+
* Defines the visual style of the button.
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue 'primary'
|
|
11
|
+
*/
|
|
5
12
|
readonly variant: import("@angular/core").InputSignal<"primary" | "secondary" | "ghost" | "outlined">;
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
readonly
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the size of the button.
|
|
15
|
+
*
|
|
16
|
+
* @defaultValue '2'
|
|
17
|
+
*/
|
|
18
|
+
readonly size: import("@angular/core").InputSignal<"1" | "2" | "3">;
|
|
19
|
+
/**
|
|
20
|
+
* Determines whether the button has an active state enabled.
|
|
21
|
+
*
|
|
22
|
+
* @defaultValue true
|
|
23
|
+
*/
|
|
17
24
|
readonly activeEnabled: import("@angular/core").InputSignal<boolean>;
|
|
18
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Indicates whether the button should have squared corners.
|
|
27
|
+
*
|
|
28
|
+
* @defaultValue false
|
|
29
|
+
*/
|
|
30
|
+
readonly squared: import("@angular/core").InputSignal<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* Reference to the host DOM element.
|
|
33
|
+
*/
|
|
19
34
|
el: ElementRef<any>;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[b-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "activeEnabled": { "alias": "activeEnabled"; "required": false; "isSignal": true; }; "squared": { "alias": "squared"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
22
37
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class ButtonGroupComponent {
|
|
3
3
|
/**
|
|
4
4
|
* Whether the buttons should be spaced.
|
|
5
5
|
*/
|
|
6
6
|
readonly spaced: import("@angular/core").InputSignal<boolean>;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "b-button-group", never, { "spaced": { "alias": "spaced"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
9
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CardContentComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardContentComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardContentComponent, "b-card-content", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CardDescriptionComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardDescriptionComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardDescriptionComponent, "b-card-description", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CardFooterComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardFooterComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardFooterComponent, "b-card-footer", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CardHeaderComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardHeaderComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardHeaderComponent, "b-card-header", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class CardComponent {
|
|
3
|
+
/**
|
|
4
|
+
* The width of the card.
|
|
5
|
+
* @default '80vw'
|
|
6
|
+
*/
|
|
7
|
+
readonly maxWidth: import("@angular/core").InputSignal<string>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "b-card", never, { "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
10
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class ColorPickerComponent implements AfterViewInit {
|
|
4
4
|
/**
|
|
5
5
|
* Specifies the maximum width of the input.
|
|
6
6
|
*/
|
|
@@ -56,6 +56,6 @@ export declare class ColorPicker implements AfterViewInit {
|
|
|
56
56
|
* @returns The resulting mixed color in hexadecimal format.
|
|
57
57
|
*/
|
|
58
58
|
calculateColorMix(color1: string, color2: string, percentage: number): string;
|
|
59
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
60
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "input[b-color-picker]", never, { "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "showColor": { "alias": "showColor"; "required": false; "isSignal": true; }; }, {}, ["ngModel"], never, true, never>;
|
|
61
61
|
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ButtonComponent } from '../button/button.component';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import { CommandComponent } from '../command/command.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Component representing a combobox dropdown.
|
|
8
|
+
* This component provides a button to toggle the dropdown and displays the selected option(s) with an input field.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ComboboxComponent implements OnInit, ControlValueAccessor {
|
|
11
|
+
/**
|
|
12
|
+
* Placeholder text displayed when no option is selected.
|
|
13
|
+
* Defaults to 'Select an option'.
|
|
14
|
+
*/
|
|
15
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Signal indicating whether the dropdown is currently open.
|
|
18
|
+
*/
|
|
19
|
+
readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Reference to the button element used to toggle the dropdown.
|
|
22
|
+
* This is used for managing focus and interactions.
|
|
23
|
+
*/
|
|
24
|
+
readonly button: import("@angular/core").Signal<ButtonComponent | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Reference to the content component of the dropdown.
|
|
27
|
+
* This contains the list of selectable options.
|
|
28
|
+
*/
|
|
29
|
+
readonly command: import("@angular/core").Signal<CommandComponent | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Computed signal representing the selected values from the dropdown.
|
|
32
|
+
* This is linked to the value of the `CommandComponent`.
|
|
33
|
+
*/
|
|
34
|
+
readonly value: import("@angular/core").WritableSignal<string[] | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Linked signal for the width of the button element.
|
|
37
|
+
* This is used to set the width of the dropdown overlay.
|
|
38
|
+
*/
|
|
39
|
+
readonly buttonWidth: import("@angular/core").WritableSignal<any>;
|
|
40
|
+
/**
|
|
41
|
+
* Model indicating whether the combobox component is disabled.
|
|
42
|
+
* When disabled, the dropdown cannot be opened or interacted with.
|
|
43
|
+
*/
|
|
44
|
+
readonly disabled: import("@angular/core").ModelSignal<boolean>;
|
|
45
|
+
/**
|
|
46
|
+
* Computed signal representing the options available in the dropdown.
|
|
47
|
+
* This retrieves the options from the `CommandComponent`.
|
|
48
|
+
*/
|
|
49
|
+
readonly options: import("@angular/core").Signal<readonly import("@angular/cdk/listbox").CdkOption<any>[] | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* Computed signal representing the content of the selected option(s).
|
|
52
|
+
* If no option is selected, it returns the placeholder text.
|
|
53
|
+
*/
|
|
54
|
+
readonly content: import("@angular/core").Signal<string | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Signal representing the delay before closing the dropdown.
|
|
57
|
+
* This is used to provide a smooth transition when closing the dropdown.
|
|
58
|
+
*/
|
|
59
|
+
readonly closeDelay: import("@angular/core").WritableSignal<number>;
|
|
60
|
+
/**
|
|
61
|
+
* Lifecycle hook that is called after the component is initialized.
|
|
62
|
+
* It sets up the necessary subscriptions for handling value changes.
|
|
63
|
+
*/
|
|
64
|
+
ngOnInit(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Subscribes to the `closeEmitter` of the `CommandComponent` to handle
|
|
67
|
+
* changes to the selected value. This ensures the dropdown closes and the
|
|
68
|
+
* value is propagated to Angular Forms.
|
|
69
|
+
*/
|
|
70
|
+
handleSelectedValueChange(): void;
|
|
71
|
+
/**
|
|
72
|
+
* Focuses the input element within the command component when the overlay is attached.
|
|
73
|
+
*/
|
|
74
|
+
onOverlayAttached(): void;
|
|
75
|
+
/**
|
|
76
|
+
* Sets the width of the button element when the window is resized.
|
|
77
|
+
* This ensures that the dropdown overlay matches the width of the button.
|
|
78
|
+
*/
|
|
79
|
+
setButtonWidth(): void;
|
|
80
|
+
/**
|
|
81
|
+
* Callback function to propagate changes to the model.
|
|
82
|
+
* This is called whenever the value changes.
|
|
83
|
+
*/
|
|
84
|
+
private onChange;
|
|
85
|
+
/**
|
|
86
|
+
* Callback function to mark the component as touched.
|
|
87
|
+
* This is called when the component loses focus.
|
|
88
|
+
*/
|
|
89
|
+
private onTouched;
|
|
90
|
+
/**
|
|
91
|
+
* Writes a new value to the component.
|
|
92
|
+
* This method is called by Angular Forms to update the value of the combobox component.
|
|
93
|
+
* @param value - The new value to set.
|
|
94
|
+
*/
|
|
95
|
+
writeValue(value: string[]): void;
|
|
96
|
+
/**
|
|
97
|
+
* Registers a callback function to be called when the value changes.
|
|
98
|
+
* @param fn - The callback function.
|
|
99
|
+
*/
|
|
100
|
+
registerOnChange(fn: (value: string[]) => void): void;
|
|
101
|
+
/**
|
|
102
|
+
* Registers a callback function to be called when the component is touched.
|
|
103
|
+
* @param fn - The callback function.
|
|
104
|
+
*/
|
|
105
|
+
registerOnTouched(fn: () => void): void;
|
|
106
|
+
/**
|
|
107
|
+
* Sets the disabled state of the component.
|
|
108
|
+
* This method is called by Angular Forms to enable or disable the component.
|
|
109
|
+
* @param isDisabled - A boolean indicating whether the component should be disabled.
|
|
110
|
+
*/
|
|
111
|
+
setDisabledState(isDisabled: boolean): void;
|
|
112
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxComponent, never>;
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxComponent, "b-combobox", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; }, ["command"], ["*"], true, never>;
|
|
114
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
2
|
+
import { CdkListbox, CdkOption } from '@angular/cdk/listbox';
|
|
3
|
+
import { OnInit } from '@angular/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/cdk/listbox";
|
|
6
|
+
/**
|
|
7
|
+
* Component representing a list of command options.
|
|
8
|
+
* It uses Angular CDK's listbox and option utilities for accessibility and keyboard navigation.
|
|
9
|
+
*/
|
|
10
|
+
export declare class CommandOptionsComponent implements OnInit {
|
|
11
|
+
/**
|
|
12
|
+
* Collection of child options within the listbox.
|
|
13
|
+
*/
|
|
14
|
+
readonly options: import("@angular/core").Signal<readonly CdkOption<any>[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Key manager for handling keyboard navigation and active descendant management.
|
|
17
|
+
*/
|
|
18
|
+
readonly listKeyManager: import("@angular/core").Signal<ActiveDescendantKeyManager<CdkOption<any>>>;
|
|
19
|
+
/**
|
|
20
|
+
* Signal representing the currently selected values.
|
|
21
|
+
*/
|
|
22
|
+
readonly value: import("@angular/core").WritableSignal<string[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Signal representing the currently highlighted option.
|
|
25
|
+
*/
|
|
26
|
+
readonly highlightedOption: import("@angular/core").WritableSignal<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Reference to the injected CDK Listbox instance.
|
|
29
|
+
*/
|
|
30
|
+
cdkListbox: CdkListbox<any>;
|
|
31
|
+
/**
|
|
32
|
+
* Emitter for closing the command options.
|
|
33
|
+
*/
|
|
34
|
+
closeEmitter: import("@angular/core").OutputEmitterRef<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Lifecycle hook that initializes the component.
|
|
37
|
+
* Enables the use of active descendant for the listbox.
|
|
38
|
+
*/
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Selects the currently active option and updates the listbox value.
|
|
42
|
+
*/
|
|
43
|
+
selectOption(value?: string[] | string): void;
|
|
44
|
+
/**
|
|
45
|
+
* Moves the active item to the next option and updates the highlighted option.
|
|
46
|
+
*/
|
|
47
|
+
nextOption(): void;
|
|
48
|
+
/**
|
|
49
|
+
* Moves the active item to the previous option and updates the highlighted option.
|
|
50
|
+
*/
|
|
51
|
+
previousOption(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Updates the CSS class of options to reflect the currently highlighted option.
|
|
54
|
+
*/
|
|
55
|
+
updateHighlightedOption(): void;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandOptionsComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandOptionsComponent, "ul[b-command-options]", never, {}, { "closeEmitter": "closeEmitter"; }, ["options"], ["*"], true, [{ directive: typeof i1.CdkListbox; inputs: {}; outputs: { "cdkListboxValueChange": "cdkListboxValueChange"; }; }]>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CommandOptionsComponent } from './command-options.component';
|
|
3
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Component representing a command input with associated options.
|
|
7
|
+
* It provides keyboard navigation and focus trapping for accessibility.
|
|
8
|
+
*/
|
|
9
|
+
export declare class CommandComponent implements OnDestroy {
|
|
10
|
+
/**
|
|
11
|
+
* Reference to the child `CommandOptionsComponent` if present.
|
|
12
|
+
* Used to interact with the options for navigation and selection.
|
|
13
|
+
*/
|
|
14
|
+
readonly commandOptions: import("@angular/core").Signal<CommandOptionsComponent | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* Input representing the maximum height of the component.
|
|
17
|
+
* This can be used to control the visual appearance of the command component.
|
|
18
|
+
*/
|
|
19
|
+
readonly maxHeight: import("@angular/core").InputSignal<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Computed signal representing the selected value from the command options.
|
|
22
|
+
* This is linked to the value of the `CommandOptionsComponent`.
|
|
23
|
+
*/
|
|
24
|
+
readonly value: import("@angular/core").Signal<string[] | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Computed signal representing the options available in the command options.
|
|
27
|
+
* This is linked to the options of the `CommandOptionsComponent`.
|
|
28
|
+
*/
|
|
29
|
+
readonly options: import("@angular/core").Signal<readonly import("@angular/cdk/listbox").CdkOption<any>[] | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Reference to the BreakpointObserver service for responsive design.
|
|
32
|
+
*/
|
|
33
|
+
breakpointObserver: BreakpointObserver;
|
|
34
|
+
/**
|
|
35
|
+
* Signal representing whether the current viewport is desktop or not.
|
|
36
|
+
* This is determined by checking if the Handset breakpoint is matched.
|
|
37
|
+
*/
|
|
38
|
+
readonly isDesktop: import("@angular/core").WritableSignal<boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* Reference to the host element of the component.
|
|
41
|
+
* This provides access to the DOM element of the command component.
|
|
42
|
+
*/
|
|
43
|
+
el: ElementRef<any>;
|
|
44
|
+
/**
|
|
45
|
+
* Output that emits the current input value.
|
|
46
|
+
*/
|
|
47
|
+
readonly inputValueChange: import("@angular/core").OutputEmitterRef<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Input to control debounce time (ms) for valueChange emission.
|
|
50
|
+
*/
|
|
51
|
+
readonly debounce: import("@angular/core").InputSignal<number>;
|
|
52
|
+
/**
|
|
53
|
+
* Reference to the UtilsService for debounce logic.
|
|
54
|
+
*/
|
|
55
|
+
private utils;
|
|
56
|
+
/**
|
|
57
|
+
* Unique key for debounce timer.
|
|
58
|
+
*/
|
|
59
|
+
private readonly debounceKey;
|
|
60
|
+
/**
|
|
61
|
+
* Handler for input event, emits value with debounce if set.
|
|
62
|
+
*/
|
|
63
|
+
onInput(event: Event): void;
|
|
64
|
+
ngOnDestroy(): void;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandComponent, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandComponent, "b-command", never, { "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "debounce": { "alias": "debounce"; "required": false; "isSignal": true; }; }, { "inputValueChange": "inputValueChange"; }, ["commandOptions"], ["*"], true, never>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ClosingType, DialogService } from '../../services/dialog.service';
|
|
2
|
+
import { CdkDialogContainer, DialogRef } from '@angular/cdk/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* DialogComponent acts as a custom container for dialogs opened via the Angular CDK Dialog module.
|
|
6
|
+
* It provides custom close behavior (ESC key and outside click) and hosts the dialog content.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* Used internally by DialogService. Not intended for direct use.
|
|
10
|
+
*/
|
|
11
|
+
export declare class DialogComponent extends CdkDialogContainer {
|
|
12
|
+
/**
|
|
13
|
+
* Injected instance of the DialogService.
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
dialogService: DialogService;
|
|
17
|
+
/**
|
|
18
|
+
* Injected reference to the current DialogRef.
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
dialogRef: DialogRef<any, any>;
|
|
22
|
+
/**
|
|
23
|
+
* Injected reference to the host element.
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
private el;
|
|
27
|
+
/**
|
|
28
|
+
* Signal indicating if the dialog is in the process of leaving (closing).
|
|
29
|
+
*/
|
|
30
|
+
readonly leaving: import("@angular/core").WritableSignal<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* Closes the dialog by calling the DialogService.
|
|
33
|
+
*/
|
|
34
|
+
close(type: ClosingType): void;
|
|
35
|
+
/**
|
|
36
|
+
* Listens for document click events and closes the dialog if the click occurs outside the dialog element.
|
|
37
|
+
* @param event MouseEvent
|
|
38
|
+
*/
|
|
39
|
+
onDocumentClick(event: MouseEvent): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "b-dialog", never, {}, {}, never, never, true, never>;
|
|
42
|
+
}
|
package/core/components/{bottom-sheet/bottom-sheet.component.d.ts → drawer/drawer.component.d.ts}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class DrawerComponent {
|
|
3
3
|
/**
|
|
4
|
-
* Indicates whether the
|
|
4
|
+
* Indicates whether the drawer is open.
|
|
5
5
|
*/
|
|
6
6
|
readonly isOpen: import("@angular/core").ModelSignal<boolean>;
|
|
7
7
|
/**
|
|
8
|
-
* The height of the
|
|
8
|
+
* The height of the drawer.
|
|
9
9
|
*/
|
|
10
10
|
readonly height: import("@angular/core").InputSignal<string>;
|
|
11
11
|
/**
|
|
12
|
-
* Event emitted when the
|
|
12
|
+
* Event emitted when the drawer is closed.
|
|
13
13
|
*/
|
|
14
14
|
closeSheet: import("@angular/core").OutputEmitterRef<void>;
|
|
15
15
|
/**
|
|
@@ -21,40 +21,40 @@ export declare class BottomSheet {
|
|
|
21
21
|
*/
|
|
22
22
|
readonly startY: import("@angular/core").WritableSignal<number>;
|
|
23
23
|
/**
|
|
24
|
-
* The current Y translation of the
|
|
24
|
+
* The current Y translation of the drawer in percentage.
|
|
25
25
|
*/
|
|
26
26
|
private readonly translateY;
|
|
27
27
|
/**
|
|
28
|
-
* The threshold for closing the
|
|
28
|
+
* The threshold for closing the drawer, in percentage.
|
|
29
29
|
*/
|
|
30
30
|
readonly closeThreshold: import("@angular/core").InputSignal<number>;
|
|
31
31
|
/**
|
|
32
|
-
* The computed transform property for the
|
|
32
|
+
* The computed transform property for the drawer.
|
|
33
33
|
*/
|
|
34
34
|
readonly transform: import("@angular/core").Signal<string>;
|
|
35
35
|
/**
|
|
36
|
-
* The reference to the
|
|
36
|
+
* The reference to the drawer DOM element.
|
|
37
37
|
*/
|
|
38
38
|
private readonly el;
|
|
39
39
|
/**
|
|
40
|
-
* Closes the
|
|
40
|
+
* Closes the drawer when clicking outside of it.
|
|
41
41
|
* @param event The click event.
|
|
42
42
|
*/
|
|
43
43
|
closeOnOutsideClick(event: Event): void;
|
|
44
44
|
/**
|
|
45
|
-
* Starts the drag event for the
|
|
45
|
+
* Starts the drag event for the drawer.
|
|
46
46
|
* @param event The pointer event that starts the drag.
|
|
47
47
|
*/
|
|
48
48
|
startDrag(event: PointerEvent): void;
|
|
49
49
|
/**
|
|
50
|
-
* Updates the drag position of the
|
|
50
|
+
* Updates the drag position of the drawer.
|
|
51
51
|
* @param clientY The current Y position of the pointer.
|
|
52
52
|
*/
|
|
53
53
|
updateDrag(clientY: number): void;
|
|
54
54
|
/**
|
|
55
|
-
* Snaps the
|
|
55
|
+
* Snaps the drawer to either open or closed state based on the drag position.
|
|
56
56
|
*/
|
|
57
57
|
snapToOpenOrClose(): void;
|
|
58
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerComponent, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrawerComponent, "b-drawer", never, { "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "closeThreshold": { "alias": "closeThreshold"; "required": false; "isSignal": true; }; }, { "isOpen": "isOpenChange"; "closeSheet": "closeSheet"; }, never, ["*"], true, never>;
|
|
60
60
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class IconComponent {
|
|
3
3
|
/**
|
|
4
4
|
* The sanitizer service.
|
|
5
5
|
*/
|
|
@@ -24,6 +24,6 @@ export declare class Icon {
|
|
|
24
24
|
* The svg of the icon.
|
|
25
25
|
*/
|
|
26
26
|
readonly iconSvg: import("@angular/core").Signal<import("@angular/platform-browser").SafeHtml>;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "i[b-icon]", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
29
29
|
}
|
|
@@ -1,26 +1,10 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class InputComponent implements AfterViewInit {
|
|
4
4
|
/**
|
|
5
5
|
* The type of the input.
|
|
6
6
|
*/
|
|
7
7
|
readonly type: import("@angular/core").InputSignal<"number" | "text" | "password" | "email">;
|
|
8
|
-
/**
|
|
9
|
-
* The placeholder text for the input.
|
|
10
|
-
*/
|
|
11
|
-
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
12
|
-
/**
|
|
13
|
-
* The value of the input.
|
|
14
|
-
*/
|
|
15
|
-
readonly value: import("@angular/core").WritableSignal<string | number | null>;
|
|
16
|
-
/**
|
|
17
|
-
* Whether the input is invalid.
|
|
18
|
-
*/
|
|
19
|
-
readonly invalid: import("@angular/core").ModelSignal<boolean>;
|
|
20
|
-
/**
|
|
21
|
-
* Whether the input is disabled.
|
|
22
|
-
*/
|
|
23
|
-
readonly disabled: import("@angular/core").ModelSignal<boolean>;
|
|
24
8
|
/**
|
|
25
9
|
* The maximum width of the input.
|
|
26
10
|
*/
|
|
@@ -37,14 +21,6 @@ export declare class Input implements AfterViewInit {
|
|
|
37
21
|
* Whether the input type is number.
|
|
38
22
|
*/
|
|
39
23
|
readonly isNumberType: import("@angular/core").Signal<boolean>;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the input is focused.
|
|
42
|
-
*/
|
|
43
|
-
readonly focused: import("@angular/core").WritableSignal<boolean>;
|
|
44
|
-
/**
|
|
45
|
-
* Event emitted when the value changes.
|
|
46
|
-
*/
|
|
47
|
-
valueChange: import("@angular/core").OutputEmitterRef<string | number | null>;
|
|
48
24
|
/**
|
|
49
25
|
* Reference to the input element.
|
|
50
26
|
*/
|
|
@@ -53,10 +29,19 @@ export declare class Input implements AfterViewInit {
|
|
|
53
29
|
* Reference to the ngModel directive.
|
|
54
30
|
*/
|
|
55
31
|
private ngModel;
|
|
32
|
+
/**
|
|
33
|
+
* The size of the input.
|
|
34
|
+
*/
|
|
35
|
+
readonly size: import("@angular/core").InputSignal<"1" | "2" | "3">;
|
|
56
36
|
/**
|
|
57
37
|
* After the view has been initialized, set the value of the select.
|
|
58
38
|
*/
|
|
59
39
|
ngAfterViewInit(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Sets the value of the input element.
|
|
42
|
+
* @param value The value to set.
|
|
43
|
+
*/
|
|
44
|
+
setValue(value: string): void;
|
|
60
45
|
/**
|
|
61
46
|
* Handles the input event.
|
|
62
47
|
* @param event The input event.
|
|
@@ -73,6 +58,6 @@ export declare class Input implements AfterViewInit {
|
|
|
73
58
|
* @returns The formatted value.
|
|
74
59
|
*/
|
|
75
60
|
formatNumber(value: string | null): string | null;
|
|
76
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "input[b-input]", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "decimals": { "alias": "decimals"; "required": false; "isSignal": true; }; "numberType": { "alias": "numberType"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
78
63
|
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class InputGroupComponent {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
readonly bordered: import("@angular/core").InputSignal<boolean>;
|
|
7
|
-
/**
|
|
8
|
-
* The maximum width of the input.
|
|
4
|
+
* Sets the maximum width of the input group (e.g. 300px, 100%).
|
|
9
5
|
*/
|
|
10
6
|
readonly maxWidth: import("@angular/core").InputSignal<string>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputGroupComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputGroupComponent, "b-input-group", never, { "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
13
9
|
}
|