@basis-ng/primitives 0.0.1-alpha.0 → 0.0.1-alpha.10
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 +1 -1
- package/core/components/attached-box/attached-box.component.d.ts +2 -2
- package/core/components/badge/badge.component.d.ts +1 -1
- package/core/components/bottom-sheet/bottom-sheet.component.d.ts +1 -1
- package/core/components/button/button.component.d.ts +6 -1
- package/core/components/button-group/button-group.component.d.ts +1 -1
- package/core/components/checkbox/checkbox.component.d.ts +1 -1
- package/core/components/color-picker/color-picker.component.d.ts +1 -1
- package/core/components/icon/icon.component.d.ts +1 -1
- package/core/components/input/input.component.d.ts +1 -1
- package/core/components/input-group/input-group.component.d.ts +1 -1
- package/core/components/menu/menu.component.d.ts +1 -6
- package/core/components/menu/shared/components/menu-item/menu-item.component.d.ts +1 -1
- package/core/components/menu/shared/components/menu-item-checkbox/menu-item-checkbox.component.d.ts +1 -1
- package/core/components/menu/shared/components/menu-item-radio/menu-item-radio.component.d.ts +1 -1
- package/core/components/menu/shared/components/menu-label/menu-label.component.d.ts +1 -1
- package/core/components/menu/shared/directives/menu-trigger.directive.d.ts +1 -1
- package/core/components/range/range.component.d.ts +1 -1
- package/core/components/select/select-options.component.d.ts +52 -0
- package/core/components/select/select.component.d.ts +99 -25
- package/core/components/side-sheet/side-sheet.component.d.ts +2 -2
- package/core/components/spinner/spinner.component.d.ts +1 -1
- package/core/components/switch/switch.component.d.ts +1 -1
- package/core/components/table/components/row/components/row-item/row-item.component.d.ts +1 -1
- package/core/components/table/components/row/row.component.d.ts +1 -1
- package/core/components/table/table.component.d.ts +1 -1
- package/core/components/tabs/components/tab/tab.component.d.ts +1 -1
- package/core/components/tabs/tabs.component.d.ts +1 -1
- package/core/components/textarea/textarea.component.d.ts +1 -1
- package/core/components/tooltip/tooltip.component.d.ts +2 -2
- package/core/components/tree/shared/components/tree-node/tree-node.component.d.ts +1 -1
- package/core/components/tree/tree.component.d.ts +1 -1
- package/core/directives/in-viewport.directive.d.ts +1 -1
- package/fesm2022/basis-ng-primitives.mjs +482 -407
- package/fesm2022/basis-ng-primitives.mjs.map +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +4 -3
- package/shared/components/{label/label.component.d.ts → label.component.d.ts} +2 -6
- package/shared/components/option.component.d.ts +22 -0
- package/shared/directives/lazy-content.directive.d.ts +1 -1
- package/core/components/search/search.component.d.ts +0 -121
- package/shared/components/option/option.component.d.ts +0 -10
- package/shared/services/utils.service.d.ts +0 -16
- /package/{core/components/attached-box → shared}/types/position.type.d.ts +0 -0
|
@@ -16,5 +16,5 @@ export declare class Alert {
|
|
|
16
16
|
readonly colorForeground: import("@angular/core").Signal<string>;
|
|
17
17
|
dismiss(): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<Alert, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Alert, "
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Alert, "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,5 +1,5 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { Position } from '
|
|
2
|
+
import { Position } from '../../../shared/types/position.type';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AttachedBox {
|
|
5
5
|
/**
|
|
@@ -121,5 +121,5 @@ export declare class AttachedBox {
|
|
|
121
121
|
*/
|
|
122
122
|
private adjustSecondaryAlignment;
|
|
123
123
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttachedBox, never>;
|
|
124
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AttachedBox, "
|
|
124
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttachedBox, "b-attached-box", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; }, { "position": "positionChange"; "gap": "gapChange"; }, never, ["[b-attached-box-trigger]", "[b-attached-box-content]"], true, never>;
|
|
125
125
|
}
|
|
@@ -5,5 +5,5 @@ export declare class Badge {
|
|
|
5
5
|
/** The size of the badge. */
|
|
6
6
|
readonly size: import("@angular/core").InputSignal<"small" | "default">;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<Badge, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Badge, "span[
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Badge, "span[b-badge]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
9
|
}
|
|
@@ -56,5 +56,5 @@ export declare class BottomSheet {
|
|
|
56
56
|
*/
|
|
57
57
|
snapToOpenOrClose(): void;
|
|
58
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<BottomSheet, never>;
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BottomSheet, "
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BottomSheet, "b-bottom-sheet", 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,3 +1,4 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class Button {
|
|
3
4
|
/** The variant of the button. */
|
|
@@ -12,6 +13,10 @@ export declare class Button {
|
|
|
12
13
|
readonly toggle: import("@angular/core").InputSignal<boolean>;
|
|
13
14
|
/** The value of the button when it is toggled. */
|
|
14
15
|
readonly isToggled: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
/** Whether the button active animation is enabled. */
|
|
17
|
+
readonly activeEnabled: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
/** The element reference of the button. */
|
|
19
|
+
el: ElementRef<any>;
|
|
15
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<Button, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Button, "button[
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Button, "button[b-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "equalPadding": { "alias": "equalPadding"; "required": false; "isSignal": true; }; "toggle": { "alias": "toggle"; "required": false; "isSignal": true; }; "isToggled": { "alias": "isToggled"; "required": false; "isSignal": true; }; "activeEnabled": { "alias": "activeEnabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
17
22
|
}
|
|
@@ -5,5 +5,5 @@ export declare class ButtonGroup {
|
|
|
5
5
|
*/
|
|
6
6
|
readonly spaced: import("@angular/core").InputSignal<boolean>;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroup, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroup, "
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroup, "b-button-group", never, { "spaced": { "alias": "spaced"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
9
|
}
|
|
@@ -22,5 +22,5 @@ export declare class Checkbox implements AfterViewInit {
|
|
|
22
22
|
*/
|
|
23
23
|
toggleValue(): void;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<Checkbox, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Checkbox, "input[
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Checkbox, "input[b-checkbox]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
26
26
|
}
|
|
@@ -57,5 +57,5 @@ export declare class ColorPicker implements AfterViewInit {
|
|
|
57
57
|
*/
|
|
58
58
|
calculateColorMix(color1: string, color2: string, percentage: number): string;
|
|
59
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColorPicker, never>;
|
|
60
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPicker, "input[
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorPicker, "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
|
}
|
|
@@ -25,5 +25,5 @@ export declare class Icon {
|
|
|
25
25
|
*/
|
|
26
26
|
readonly iconSvg: import("@angular/core").Signal<import("@angular/platform-browser").SafeHtml>;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<Icon, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Icon, "i[
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Icon, "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
|
}
|
|
@@ -74,5 +74,5 @@ export declare class Input implements AfterViewInit {
|
|
|
74
74
|
*/
|
|
75
75
|
formatNumber(value: string | null): string | null;
|
|
76
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<Input, never>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Input, "input[
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Input, "input[b-input]", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "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; }; }, { "invalid": "invalidChange"; "disabled": "disabledChange"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
78
78
|
}
|
|
@@ -9,5 +9,5 @@ export declare class InputGroup {
|
|
|
9
9
|
*/
|
|
10
10
|
readonly maxWidth: import("@angular/core").InputSignal<string>;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputGroup, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputGroup, "
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputGroup, "b-input-group", never, { "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
13
13
|
}
|
|
@@ -4,11 +4,6 @@ import * as i1 from "@angular/cdk/menu";
|
|
|
4
4
|
* Represents a menu component that can optionally float.
|
|
5
5
|
*/
|
|
6
6
|
export declare class Menu {
|
|
7
|
-
/**
|
|
8
|
-
* Determines whether the menu is floating.
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
readonly floating: import("@angular/core").InputSignal<boolean>;
|
|
12
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<Menu, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Menu, "
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Menu, "b-menu", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.CdkMenu; inputs: {}; outputs: {}; }]>;
|
|
14
9
|
}
|
|
@@ -5,5 +5,5 @@ import * as i1 from "@angular/cdk/menu";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class MenuItemComponent {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "b-menu-item", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.CdkMenuItem; inputs: { "cdkMenuItemDisabled": "disabled"; "cdkMenuitemTypeaheadLabel": "typeaheadLabel"; }; outputs: { "cdkMenuItemTriggered": "triggered"; }; }]>;
|
|
9
9
|
}
|
package/core/components/menu/shared/components/menu-item-checkbox/menu-item-checkbox.component.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ import * as i1 from "@angular/cdk/menu";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class MenuItemCheckboxComponent {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemCheckboxComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemCheckboxComponent, "
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemCheckboxComponent, "b-menu-item-checkbox", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.CdkMenuItemCheckbox; inputs: { "cdkMenuItemDisabled": "disabled"; "cdkMenuitemTypeaheadLabel": "typeaheadLabel"; "cdkMenuItemChecked": "active"; }; outputs: { "cdkMenuItemTriggered": "triggered"; }; }]>;
|
|
9
9
|
}
|
package/core/components/menu/shared/components/menu-item-radio/menu-item-radio.component.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ import * as i1 from "@angular/cdk/menu";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class MenuItemRadioComponent {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemRadioComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemRadioComponent, "
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemRadioComponent, "b-menu-item-radio", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.CdkMenuItemRadio; inputs: { "cdkMenuItemDisabled": "disabled"; "cdkMenuitemTypeaheadLabel": "typeaheadLabel"; "cdkMenuItemChecked": "active"; }; outputs: { "cdkMenuItemTriggered": "triggered"; }; }]>;
|
|
9
9
|
}
|
|
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class MenuLabel {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuLabel, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuLabel, "
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuLabel, "b-menu-label", never, {}, {}, never, ["*"], true, never>;
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CdkMenuTrigger } from '@angular/cdk/menu';
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
|
-
import { Position } from '
|
|
3
|
+
import { Position } from '../../../../../shared/types/position.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@angular/cdk/menu";
|
|
6
6
|
export declare class MenuTrigger implements OnInit {
|
|
@@ -22,5 +22,5 @@ export declare class Range implements AfterViewInit {
|
|
|
22
22
|
*/
|
|
23
23
|
onInput(event: Event): void;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<Range, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Range, "input[
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Range, "input[b-range]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
26
26
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { CdkListbox } from '@angular/cdk/listbox';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { OptionComponent } from '../../../shared/components/option.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/cdk/listbox";
|
|
6
|
+
import * as i2 from "@angular/cdk/a11y";
|
|
7
|
+
/**
|
|
8
|
+
* Component representing the list of options in a select.
|
|
9
|
+
* This component integrates with Angular CDK Listbox to manage options and their selection.
|
|
10
|
+
*/
|
|
11
|
+
export declare class SelectOptionsComponent {
|
|
12
|
+
/**
|
|
13
|
+
* Signal representing the selected values in the listbox.
|
|
14
|
+
* This is an array of strings corresponding to the selected option values.
|
|
15
|
+
*/
|
|
16
|
+
readonly value: import("@angular/core").WritableSignal<string[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Event emitter triggered when the dropdown should close.
|
|
19
|
+
* This is used to notify the parent component to close the dropdown.
|
|
20
|
+
*/
|
|
21
|
+
closeEmitter: import("@angular/core").OutputEmitterRef<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Reference to the host element of the component.
|
|
24
|
+
* This provides access to the DOM element of the options list.
|
|
25
|
+
*/
|
|
26
|
+
el: ElementRef<any>;
|
|
27
|
+
/**
|
|
28
|
+
* Input for setting the maximum height of the dropdown.
|
|
29
|
+
* Defaults to '300px'. This controls the vertical size of the dropdown.
|
|
30
|
+
*/
|
|
31
|
+
readonly maxHeight: import("@angular/core").InputSignal<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Reference to the CDK Listbox directive.
|
|
34
|
+
* This is used to manage the options and their selection state.
|
|
35
|
+
*/
|
|
36
|
+
listBox: CdkListbox<any>;
|
|
37
|
+
/**
|
|
38
|
+
* Reference to the list of options in the dropdown.
|
|
39
|
+
* This is a collection of `OptionComponent` instances representing the available options.
|
|
40
|
+
*/
|
|
41
|
+
readonly options: import("@angular/core").Signal<readonly OptionComponent[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Handles changes to the selected value in the listbox.
|
|
44
|
+
* This method updates the `value` signal, emits the `closeEmitter` event,
|
|
45
|
+
* and ensures the parent component is notified of the selection change.
|
|
46
|
+
*
|
|
47
|
+
* @param value - The new array of selected values.
|
|
48
|
+
*/
|
|
49
|
+
handleValueChange(value: string[]): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectOptionsComponent, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectOptionsComponent, "ul[b-select-options]", never, { "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; }, { "closeEmitter": "closeEmitter"; }, ["options"], ["*"], true, [{ directive: typeof i1.CdkListbox; inputs: { "cdkListboxValue": "cdkListboxValue"; }; outputs: { "cdkListboxValueChange": "cdkListboxValueChange"; }; }, { directive: typeof i2.CdkTrapFocus; inputs: { "cdkTrapFocusAutoCapture": "cdkTrapFocusAutoCapture"; }; outputs: {}; }]>;
|
|
52
|
+
}
|
|
@@ -1,48 +1,122 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CdkConnectedOverlay } from '@angular/cdk/overlay';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { SelectOptionsComponent } from './select-options.component';
|
|
4
|
+
import { Button } from '../button/button.component';
|
|
5
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
6
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Component representing a custom select dropdown.
|
|
9
|
+
* This component provides a button to toggle the dropdown and displays the selected option(s).
|
|
10
|
+
*/
|
|
11
|
+
export declare class SelectComponent implements OnInit, ControlValueAccessor {
|
|
4
12
|
/**
|
|
5
|
-
*
|
|
13
|
+
* Placeholder text displayed when no option is selected.
|
|
14
|
+
* Defaults to 'Select an option'.
|
|
6
15
|
*/
|
|
7
|
-
readonly
|
|
16
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
8
17
|
/**
|
|
9
|
-
*
|
|
18
|
+
* Signal indicating whether the dropdown is currently open.
|
|
10
19
|
*/
|
|
11
|
-
readonly
|
|
20
|
+
readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
12
21
|
/**
|
|
13
|
-
*
|
|
22
|
+
* Reference to the button element used to toggle the dropdown.
|
|
23
|
+
* This is used for managing focus and interactions.
|
|
14
24
|
*/
|
|
15
|
-
readonly
|
|
25
|
+
readonly button: import("@angular/core").Signal<Button | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Reference to the content component of the dropdown.
|
|
28
|
+
* This contains the list of selectable options.
|
|
29
|
+
*/
|
|
30
|
+
readonly optionsList: import("@angular/core").Signal<SelectOptionsComponent | undefined>;
|
|
16
31
|
/**
|
|
17
|
-
*
|
|
32
|
+
* Computed signal representing the selected values from the dropdown.
|
|
33
|
+
* This is linked to the value of the `OptionsListComponent`.
|
|
34
|
+
*/
|
|
35
|
+
readonly value: import("@angular/core").WritableSignal<string[] | undefined>;
|
|
36
|
+
/**
|
|
37
|
+
* Input for setting the maximum width of the dropdown.
|
|
38
|
+
* Defaults to '100%'.
|
|
18
39
|
*/
|
|
19
40
|
readonly maxWidth: import("@angular/core").InputSignal<string>;
|
|
20
41
|
/**
|
|
21
|
-
*
|
|
42
|
+
* Computed signal for the width of the button element.
|
|
43
|
+
* This is used to set the width of the dropdown overlay.
|
|
22
44
|
*/
|
|
23
|
-
|
|
45
|
+
readonly buttonWidth: import("@angular/core").Signal<any>;
|
|
24
46
|
/**
|
|
25
|
-
*
|
|
47
|
+
* Model indicating whether the select component is disabled.
|
|
48
|
+
* When disabled, the dropdown cannot be opened or interacted with.
|
|
26
49
|
*/
|
|
27
|
-
readonly
|
|
50
|
+
readonly disabled: import("@angular/core").ModelSignal<boolean>;
|
|
28
51
|
/**
|
|
29
|
-
*
|
|
52
|
+
* Computed signal representing the options available in the dropdown.
|
|
53
|
+
* This retrieves the options from the `OptionsListComponent`.
|
|
30
54
|
*/
|
|
31
|
-
readonly
|
|
55
|
+
readonly options: import("@angular/core").Signal<readonly import("@basis-ng/primitives").OptionComponent[] | undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* Computed signal representing the content of the selected option(s).
|
|
58
|
+
* If no option is selected, it returns the placeholder text.
|
|
59
|
+
*/
|
|
60
|
+
readonly content: import("@angular/core").Signal<string | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Signal representing the delay before closing the dropdown.
|
|
63
|
+
* This is used to provide a smooth transition when closing the dropdown.
|
|
64
|
+
*/
|
|
65
|
+
readonly closeDelay: import("@angular/core").WritableSignal<number>;
|
|
66
|
+
/**
|
|
67
|
+
* Reference to the CdkConnectedOverlay directive.
|
|
68
|
+
* This is used to manage the positioning and visibility of the dropdown overlay.
|
|
69
|
+
*/
|
|
70
|
+
readonly cdkConnectedOverlay: import("@angular/core").Signal<CdkConnectedOverlay | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* Lifecycle hook that is called after the component is initialized.
|
|
73
|
+
* It sets up the necessary subscriptions for handling value changes.
|
|
74
|
+
*/
|
|
75
|
+
ngOnInit(): void;
|
|
76
|
+
/**
|
|
77
|
+
* Subscribes to the `closeEmitter` of the `OptionsListComponent` to handle
|
|
78
|
+
* changes to the selected value. This ensures the dropdown closes and the
|
|
79
|
+
* value is propagated to Angular Forms.
|
|
80
|
+
*/
|
|
81
|
+
handleSelectedValueChange(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Closes the dropdown with a transition effect and refocuses the button.
|
|
84
|
+
* This method sets the `isOpen` signal to `false` after a delay and removes
|
|
85
|
+
* the transition class from the overlay panel.
|
|
86
|
+
*/
|
|
87
|
+
close(): void;
|
|
88
|
+
/**
|
|
89
|
+
* Callback function to propagate changes to the model.
|
|
90
|
+
* This is called whenever the value changes.
|
|
91
|
+
*/
|
|
92
|
+
private onChange;
|
|
93
|
+
/**
|
|
94
|
+
* Callback function to mark the component as touched.
|
|
95
|
+
* This is called when the component loses focus.
|
|
96
|
+
*/
|
|
97
|
+
private onTouched;
|
|
98
|
+
/**
|
|
99
|
+
* Writes a new value to the component.
|
|
100
|
+
* This method is called by Angular Forms to update the value of the select component.
|
|
101
|
+
* @param value - The new value to set.
|
|
102
|
+
*/
|
|
103
|
+
writeValue(value: string[]): void;
|
|
32
104
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @
|
|
105
|
+
* Registers a callback function to be called when the value changes.
|
|
106
|
+
* @param fn - The callback function.
|
|
35
107
|
*/
|
|
36
|
-
|
|
108
|
+
registerOnChange(fn: (value: string[]) => void): void;
|
|
37
109
|
/**
|
|
38
|
-
*
|
|
110
|
+
* Registers a callback function to be called when the component is touched.
|
|
111
|
+
* @param fn - The callback function.
|
|
39
112
|
*/
|
|
40
|
-
|
|
113
|
+
registerOnTouched(fn: () => void): void;
|
|
41
114
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
115
|
+
* Sets the disabled state of the component.
|
|
116
|
+
* This method is called by Angular Forms to enable or disable the component.
|
|
117
|
+
* @param isDisabled - A boolean indicating whether the component should be disabled.
|
|
44
118
|
*/
|
|
45
|
-
|
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
119
|
+
setDisabledState(isDisabled: boolean): void;
|
|
120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
121
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "b-select", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; }, ["optionsList"], ["*"], true, never>;
|
|
48
122
|
}
|
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
* A sliding sheet component that can be positioned on either side of the screen.
|
|
4
4
|
* The sheet slides in from the left or right edge and includes an overlay backdrop.
|
|
5
5
|
*
|
|
6
|
-
* @selector
|
|
6
|
+
* @selector b-side-sheet
|
|
7
7
|
*/
|
|
8
8
|
export declare class SideSheet {
|
|
9
9
|
/**
|
|
@@ -42,5 +42,5 @@ export declare class SideSheet {
|
|
|
42
42
|
*/
|
|
43
43
|
closeOnOutsideClick(event: Event): void;
|
|
44
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<SideSheet, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SideSheet, "
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SideSheet, "b-side-sheet", never, { "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "isOpen": "isOpenChange"; "closeSheet": "closeSheet"; }, never, ["*"], true, never>;
|
|
46
46
|
}
|
|
@@ -5,5 +5,5 @@ export declare class Spinner {
|
|
|
5
5
|
readonly backgroundColor: import("@angular/core").InputSignal<string>;
|
|
6
6
|
readonly size: import("@angular/core").InputSignal<number>;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<Spinner, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Spinner, "
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Spinner, "b-spinner", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -31,5 +31,5 @@ export declare class Switch implements AfterViewInit {
|
|
|
31
31
|
*/
|
|
32
32
|
setValue(newValue: boolean): void;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<Switch, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Switch, "input[
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Switch, "input[b-switch]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
35
35
|
}
|
|
@@ -8,5 +8,5 @@ export declare class RowItem {
|
|
|
8
8
|
justifyContent: string;
|
|
9
9
|
}>;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<RowItem, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RowItem, "
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RowItem, "b-row-item", never, { "widthPx": { "alias": "widthPx"; "required": false; "isSignal": true; }; "alignedLeft": { "alias": "alignedLeft"; "required": false; "isSignal": true; }; "isHeader": { "alias": "isHeader"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
12
12
|
}
|
|
@@ -5,5 +5,5 @@ export declare class Row {
|
|
|
5
5
|
readonly clickable: import("@angular/core").InputSignal<boolean>;
|
|
6
6
|
readonly highlighted: import("@angular/core").InputSignal<boolean>;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<Row, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Row, "
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Row, "b-row", never, { "header": { "alias": "header"; "required": false; "isSignal": true; }; "subheader": { "alias": "subheader"; "required": false; "isSignal": true; }; "clickable": { "alias": "clickable"; "required": false; "isSignal": true; }; "highlighted": { "alias": "highlighted"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class Table {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<Table, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Table, "
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Table, "b-table", never, {}, {}, never, ["[b-row-header]", "[b-row-subheader]", "*"], true, never>;
|
|
5
5
|
}
|
|
@@ -21,5 +21,5 @@ export declare class Tab {
|
|
|
21
21
|
*/
|
|
22
22
|
onMouseLeave(): void;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tab, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Tab, "
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Tab, "b-tab", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "selectEmitter": "selectEmitter"; }, never, ["*"], true, never>;
|
|
25
25
|
}
|
|
@@ -56,5 +56,5 @@ export declare class Tabs {
|
|
|
56
56
|
*/
|
|
57
57
|
scrollToTab(index: number, behavior: string): void;
|
|
58
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tabs, never>;
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Tabs, "
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Tabs, "b-tabs", never, { "selectedValue": { "alias": "selectedValue"; "required": false; "isSignal": true; }; }, { "selectedValue": "selectedValueChange"; "changesEmitter": "changesEmitter"; }, ["tabs"], ["*"], true, never>;
|
|
60
60
|
}
|
|
@@ -44,5 +44,5 @@ export declare class Textarea {
|
|
|
44
44
|
*/
|
|
45
45
|
onInput(event: Event): void;
|
|
46
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<Textarea, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Textarea, "textarea[
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Textarea, "textarea[b-textarea]", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "cols": { "alias": "cols"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "invalid": "invalidChange"; "disabled": "disabledChange"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
48
48
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Position } from '
|
|
1
|
+
import { Position } from '../../../shared/types/position.type';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* TooltipComponent is a reusable UI component that displays a tooltip
|
|
@@ -32,5 +32,5 @@ export declare class TooltipComponent {
|
|
|
32
32
|
*/
|
|
33
33
|
readonly size: import("@angular/core").InputSignal<"small" | "default">;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "b-tooltip", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[b-tooltip-content]"], true, never>;
|
|
36
36
|
}
|
|
@@ -39,5 +39,5 @@ export declare class TreeNode implements OnInit {
|
|
|
39
39
|
*/
|
|
40
40
|
handleExtension(): void;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeNode, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TreeNode, "
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TreeNode, "b-tree-node", never, { "extended": { "alias": "extended"; "required": false; "isSignal": true; }; }, { "extended": "extendedChange"; "closeEmitter": "closeEmitter"; }, ["nestedTree"], ["*", "b-tree"], true, [{ directive: typeof i1.CdkDrag; inputs: { "cdkDragDisabled": "disabled"; }; outputs: {}; }]>;
|
|
43
43
|
}
|
|
@@ -52,5 +52,5 @@ export declare class Tree implements OnInit {
|
|
|
52
52
|
*/
|
|
53
53
|
closeNestedNodes(): void;
|
|
54
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<Tree, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Tree, "
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Tree, "b-tree", never, { "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "closeRecursively": { "alias": "closeRecursively"; "required": false; "isSignal": true; }; }, { "dropEmitter": "dropEmitter"; }, ["nestedNodes"], ["*"], true, [{ directive: typeof i1.CdkDropList; inputs: { "id": "id"; "cdkDropListConnectedTo": "connectedTo"; }; outputs: { "cdkDropListDropped": "cdkDropListDropped"; }; }, { directive: typeof i1.CdkDropListGroup; inputs: {}; outputs: {}; }]>;
|
|
56
56
|
}
|
|
@@ -9,5 +9,5 @@ export declare class InViewportDirective implements OnDestroy {
|
|
|
9
9
|
constructor();
|
|
10
10
|
ngOnDestroy(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<InViewportDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<InViewportDirective, "[
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InViewportDirective, "[b-in-viewport]", never, { "inViewportId": { "alias": "inViewportId"; "required": true; "isSignal": true; }; "inViewportInitialVisibility": { "alias": "inViewportInitialVisibility"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
13
|
}
|