@tolle_/tolle-ui 18.2.22 → 18.2.23
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/esm2022/lib/resizable-panel-item.component.mjs +79 -0
- package/esm2022/lib/resizable-panel.component.mjs +130 -0
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/tolle-ui.mjs +199 -1
- package/fesm2022/tolle-ui.mjs.map +1 -1
- package/lib/resizable-panel-item.component.d.ts +16 -0
- package/lib/resizable-panel.component.d.ts +28 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ResizablePanelItemComponent {
|
|
3
|
+
size: number;
|
|
4
|
+
minSize: number;
|
|
5
|
+
maxSize?: number;
|
|
6
|
+
resizable: boolean;
|
|
7
|
+
class: string;
|
|
8
|
+
isLast: boolean;
|
|
9
|
+
private container;
|
|
10
|
+
get computedContainerClass(): string;
|
|
11
|
+
get computedHandleClass(): string;
|
|
12
|
+
get computedHandleIndicatorClass(): string;
|
|
13
|
+
onHandleMouseDown(event: MouseEvent): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResizablePanelItemComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResizablePanelItemComponent, "tolle-resizable-panel-item", never, { "size": { "alias": "size"; "required": false; }; "minSize": { "alias": "minSize"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { QueryList, AfterContentInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ResizablePanelItemComponent } from './resizable-panel-item.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ResizablePanelComponent implements AfterContentInit, OnDestroy {
|
|
5
|
+
direction: 'horizontal' | 'vertical';
|
|
6
|
+
class: string;
|
|
7
|
+
panels: QueryList<ResizablePanelItemComponent>;
|
|
8
|
+
private el;
|
|
9
|
+
private cdr;
|
|
10
|
+
private isResizing;
|
|
11
|
+
private activePanelIndex;
|
|
12
|
+
private startCursorPosition;
|
|
13
|
+
private startPanelSizes;
|
|
14
|
+
private mouseMoveListener?;
|
|
15
|
+
private mouseUpListener?;
|
|
16
|
+
ngAfterContentInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
private updateLastStatus;
|
|
19
|
+
startResize(item: ResizablePanelItemComponent, event: MouseEvent): void;
|
|
20
|
+
private setupListeners;
|
|
21
|
+
private cleanupListeners;
|
|
22
|
+
private onMouseMove;
|
|
23
|
+
private stopResize;
|
|
24
|
+
private updatePanelSizes;
|
|
25
|
+
get computedContainerClass(): string;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResizablePanelComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResizablePanelComponent, "tolle-resizable-panel", never, { "direction": { "alias": "direction"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, ["panels"], ["*"], true, never>;
|
|
28
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -80,3 +80,5 @@ export * from './lib/country-selector.component';
|
|
|
80
80
|
export * from './lib/phone-number-input.component';
|
|
81
81
|
export * from './lib/phone-number.service';
|
|
82
82
|
export * from './lib/country-codes.service';
|
|
83
|
+
export * from './lib/resizable-panel.component';
|
|
84
|
+
export * from './lib/resizable-panel-item.component';
|