@spartan-ng/brain 0.0.1-alpha.534 → 0.0.1-alpha.536

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.
@@ -0,0 +1,26 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BrnResizableHandle {
3
+ /** Parent resizable group. */
4
+ private readonly _resizable;
5
+ /** Host element reference. */
6
+ private readonly _el;
7
+ /** Whether a visual handle is rendered inside the separator. */
8
+ readonly withHandle: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
9
+ /** Whether the handle is disabled (not interactive). */
10
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
11
+ /** The direction of the resizable group (`horizontal` or `vertical`). */
12
+ protected readonly _direction: import("@angular/core").InputSignal<"horizontal" | "vertical">;
13
+ /** Computed layout orientation based on the parent group. */
14
+ protected readonly _layout: import("@angular/core").Signal<"horizontal" | "vertical">;
15
+ /** Index of this handle relative to panels in the group. */
16
+ private _handleIndex;
17
+ constructor();
18
+ private _getHandleIndex;
19
+ protected _handleMouseDown(event: MouseEvent): void;
20
+ protected _handleKeyDown(event: KeyboardEvent): void;
21
+ private _getPanelContext;
22
+ private _adjustSizes;
23
+ private _moveToExtreme;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<BrnResizableHandle, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BrnResizableHandle, "brn-resizable-handle, [brnResizeHandle]", ["brnResizableHandle"], { "withHandle": { "alias": "withHandle"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
26
+ }
@@ -0,0 +1,39 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { BrnResizableGroup } from './brn-resizable-group';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BrnResizablePanel {
5
+ /** Unique ID for the panel. */
6
+ readonly id: import("@angular/core").InputSignal<string>;
7
+ /** Reference to the parent {@link BrnResizableGroup}. */
8
+ protected readonly _panelGroup: BrnResizableGroup;
9
+ /** Host DOM element reference. */
10
+ readonly el: ElementRef<any>;
11
+ /**
12
+ * The default size of the panel (percentage of container space).
13
+ * - `undefined` → group decides initial size.
14
+ * - Number → interpreted as percentage (0–100).
15
+ */
16
+ readonly defaultSize: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
17
+ /** The minimum size this panel can shrink to (percentage). */
18
+ readonly minSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
19
+ /** The maximum size this panel can grow to (percentage). */
20
+ readonly maxSize: import("@angular/core").InputSignalWithTransform<number, unknown>;
21
+ /** Whether this panel can be collapsed entirely. */
22
+ readonly collapsible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
23
+ /** Reactive signal holding the current size of the panel. */
24
+ protected readonly _panelSize: import("@angular/core").WritableSignal<number>;
25
+ /**
26
+ * CSS flex style for this panel, derived from its current size.
27
+ * Format: `"flex-grow flex-shrink flex-basis"`.
28
+ *
29
+ * Example: `"25 1 0"` means 25% width (or height in vertical layout).
30
+ */
31
+ protected readonly _flex: import("@angular/core").Signal<string>;
32
+ /**
33
+ * Sets the size of the panel.
34
+ * @param size New size (percentage of container space).
35
+ */
36
+ setSize(size: number): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<BrnResizablePanel, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BrnResizablePanel, "brn-resizable-panel, [brnResizablePanel]", ["brnResizablePanel"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "defaultSize": { "alias": "defaultSize"; "required": false; "isSignal": true; }; "minSize": { "alias": "minSize"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
39
+ }