@tolle_/tolle-ui 18.2.22 → 18.2.24
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/date-picker.component.mjs +37 -22
- package/esm2022/lib/date-range-picker.component.mjs +28 -18
- 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 +262 -39
- package/fesm2022/tolle-ui.mjs.map +1 -1
- package/lib/button.component.d.ts +2 -2
- package/lib/date-picker.component.d.ts +1 -1
- package/lib/date-range-picker.component.d.ts +1 -1
- package/lib/resizable-panel-item.component.d.ts +16 -0
- package/lib/resizable-panel.component.d.ts +28 -0
- package/lib/toggle.component.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/theme.css +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" |
|
|
5
|
-
size?: "
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "xs" | "sm" | "default" | "lg" | "icon-xs" | "icon-sm" | "icon" | "icon-lg" | null | undefined;
|
|
6
6
|
busy?: boolean | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export type ButtonProps = VariantProps<typeof buttonVariants>;
|
|
@@ -17,7 +17,7 @@ export declare class DatePickerComponent implements ControlValueAccessor, OnDest
|
|
|
17
17
|
formatMonthFn?: (date: Date) => string;
|
|
18
18
|
formatYearFn?: (date: Date) => string;
|
|
19
19
|
displayFormat?: (date: Date, mode: CalendarMode) => string;
|
|
20
|
-
|
|
20
|
+
trigger: ElementRef;
|
|
21
21
|
popover: ElementRef;
|
|
22
22
|
value: Date | null;
|
|
23
23
|
inputValue: string;
|
|
@@ -10,7 +10,7 @@ export declare class DateRangePickerComponent implements ControlValueAccessor, O
|
|
|
10
10
|
class: string;
|
|
11
11
|
disablePastDates: boolean;
|
|
12
12
|
size: 'xs' | 'sm' | 'default' | 'lg';
|
|
13
|
-
|
|
13
|
+
trigger: ElementRef;
|
|
14
14
|
popover: ElementRef;
|
|
15
15
|
value: DateRange;
|
|
16
16
|
isOpen: boolean;
|
|
@@ -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
|
+
}
|
|
@@ -4,7 +4,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
declare const toggleVariants: (props?: ({
|
|
6
6
|
variant?: "default" | "outline" | null | undefined;
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "sm" | "default" | "lg" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export type ToggleProps = VariantProps<typeof toggleVariants>;
|
|
10
10
|
export declare class ToggleComponent implements ControlValueAccessor {
|
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';
|
package/theme.css
CHANGED
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
--border: 228 228 231;
|
|
39
39
|
/* #e4e4e7 in RGB */
|
|
40
40
|
--input: 228 228 231;
|
|
41
|
-
--ring:
|
|
42
|
-
/*
|
|
41
|
+
--ring: var(--primary);
|
|
42
|
+
/* derives from primary color */
|
|
43
43
|
--radius: 0.5rem;
|
|
44
44
|
|
|
45
45
|
/* --- Shadows --- */
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
|
|
78
78
|
--border: 39 39 42;
|
|
79
79
|
--input: 39 39 42;
|
|
80
|
-
--ring:
|
|
81
|
-
/*
|
|
80
|
+
--ring: var(--primary);
|
|
81
|
+
/* derives from primary color */
|
|
82
82
|
|
|
83
83
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
|
84
84
|
--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
|