@scion/components 19.0.0 → 19.1.0
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/dimension/dimension.directive.d.ts +2 -2
- package/fesm2022/scion-components-dimension.mjs +1 -1
- package/fesm2022/scion-components-dimension.mjs.map +1 -1
- package/fesm2022/scion-components-sashbox.mjs +183 -206
- package/fesm2022/scion-components-sashbox.mjs.map +1 -1
- package/fesm2022/scion-components-splitter.mjs +56 -68
- package/fesm2022/scion-components-splitter.mjs.map +1 -1
- package/fesm2022/scion-components-throbber.mjs +6 -8
- package/fesm2022/scion-components-throbber.mjs.map +1 -1
- package/fesm2022/scion-components-viewport.mjs +29 -49
- package/fesm2022/scion-components-viewport.mjs.map +1 -1
- package/package.json +1 -1
- package/sashbox/element-ref.directive.d.ts +1 -4
- package/sashbox/sash-initializer.directive.d.ts +4 -7
- package/sashbox/sash.directive.d.ts +21 -20
- package/sashbox/sashbox-accessor.d.ts +3 -4
- package/sashbox/sashbox.component.d.ts +36 -27
- package/splitter/splitter.component.d.ts +22 -26
- package/throbber/spinner-throbber/spinner-throbber.component.d.ts +1 -1
- package/throbber/throbber.component.d.ts +2 -2
- package/viewport/native-scrollbar-track-size-provider.service.d.ts +2 -2
- package/viewport/scrollable.directive.d.ts +4 -4
- package/viewport/scrollbar/scrollbar.component.d.ts +16 -22
- package/viewport/viewport.component.d.ts +6 -6
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
1
|
import { SplitterMoveEvent } from '@scion/components/splitter';
|
|
4
|
-
import { SciSashDirective } from './sash.directive';
|
|
5
2
|
import * as i0 from "@angular/core";
|
|
6
3
|
/**
|
|
7
4
|
* The <sci-sashbox> is like a CSS flexbox container that lays out its content children (sashes) in a row (which is by default)
|
|
8
5
|
* or column arrangement (as specified by the direction property). A splitter is added between each child to allow the user to
|
|
9
6
|
* shrink or stretch the individual sashes.
|
|
10
7
|
*
|
|
11
|
-
* Sashes are modelled as
|
|
12
|
-
* A sash can have a fixed size with an explicit unit, or a unitless proportion to
|
|
8
|
+
* Sashes are modelled as <ng-template> decorated with the 'sciSash' directive.
|
|
9
|
+
* A sash can have a fixed size with an explicit unit, or a unitless proportion to distribute remaining space.
|
|
13
10
|
* A proportional sash has the ability to grow or shrink if necessary.
|
|
14
11
|
*
|
|
12
|
+
* Sash content is added to a CSS grid container with a single column, stretching the content vertically and horizontally.
|
|
15
13
|
*
|
|
16
14
|
* ### Usage
|
|
17
15
|
*
|
|
@@ -56,35 +54,46 @@ import * as i0 from "@angular/core";
|
|
|
56
54
|
* }
|
|
57
55
|
* ```
|
|
58
56
|
*/
|
|
59
|
-
export declare class SciSashboxComponent
|
|
60
|
-
private _destroy$;
|
|
61
|
-
private _host;
|
|
62
|
-
private _zone;
|
|
63
|
-
sashes$: BehaviorSubject<SciSashDirective[]>;
|
|
64
|
-
sashing: boolean;
|
|
65
|
-
maxHeight: number | undefined;
|
|
66
|
-
maxWidth: number | undefined;
|
|
57
|
+
export declare class SciSashboxComponent {
|
|
67
58
|
/**
|
|
68
59
|
* Specifies if to lay out sashes in a row (which is by default) or column arrangement.
|
|
69
60
|
*/
|
|
70
|
-
direction:
|
|
61
|
+
readonly direction: import("@angular/core").InputSignal<"column" | "row">;
|
|
71
62
|
/**
|
|
72
|
-
*
|
|
63
|
+
* Notifies when start sashing.
|
|
73
64
|
*/
|
|
74
|
-
sashStart:
|
|
65
|
+
readonly sashStart: import("@angular/core").OutputEmitterRef<void>;
|
|
75
66
|
/**
|
|
76
|
-
* Emits
|
|
67
|
+
* Emits an array with new sash sizes when sashing ends.
|
|
68
|
+
*
|
|
69
|
+
* The array contains the sash sizes in display order.
|
|
70
|
+
*
|
|
71
|
+
* TODO [Angular 20] BREAKING CHANGE: Change signature from `number[]` to `{[key: string]: number}` and remove {@link sashEnd2}.
|
|
77
72
|
*/
|
|
78
|
-
sashEnd:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
73
|
+
readonly sashEnd: import("@angular/core").OutputEmitterRef<number[]>;
|
|
74
|
+
/**
|
|
75
|
+
* Emits an object with new sash sizes when sashing ends.
|
|
76
|
+
*
|
|
77
|
+
* Each sash size is associated with its {@link SciSashDirective.key} or its display position (zero-based) if not set.
|
|
78
|
+
*
|
|
79
|
+
* Note: This output will be renamed to `sashEnd` in version 20, changing the signature of {@link sashEnd} from `number[]` to `{[key: string]: number}`.
|
|
80
|
+
*
|
|
81
|
+
* TODO [Angular 20] BREAKING CHANGE: Replace with {@link sashEnd}.
|
|
82
|
+
*/
|
|
83
|
+
readonly sashEnd2: import("@angular/core").OutputEmitterRef<{
|
|
84
|
+
[key: string]: number;
|
|
85
|
+
}>;
|
|
86
|
+
private readonly _host;
|
|
87
|
+
protected sashing: boolean;
|
|
88
|
+
protected maxHeight: number | undefined;
|
|
89
|
+
protected maxWidth: number | undefined;
|
|
90
|
+
protected onSashStart(): void;
|
|
91
|
+
protected onSashEnd(): void;
|
|
92
|
+
protected onSash(splitter: HTMLElement, sashIndex: number, moveEvent: SplitterMoveEvent): void;
|
|
93
|
+
protected onSashReset(sashIndex: number): void;
|
|
94
|
+
protected get isColumnDirection(): boolean;
|
|
95
|
+
protected get isRowDirection(): boolean;
|
|
87
96
|
private toPixel;
|
|
88
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<SciSashboxComponent, never>;
|
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SciSashboxComponent, "sci-sashbox", never, { "direction": { "alias": "direction"; "required": false; }; }, { "sashStart": "sashStart"; "sashEnd": "sashEnd"; }, ["
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SciSashboxComponent, "sci-sashbox", never, { "direction": { "alias": "direction"; "required": false; "isSignal": true; }; }, { "sashStart": "sashStart"; "sashEnd": "sashEnd"; "sashEnd2": "sashEnd2"; }, ["sashes"], never, true, never>;
|
|
90
99
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* Represents a splitter, a visual element that allows the user to control the size of elements next to it.
|
|
@@ -41,47 +41,43 @@ import * as i0 from "@angular/core";
|
|
|
41
41
|
* }
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
export declare class SciSplitterComponent implements OnInit
|
|
45
|
-
private _zone;
|
|
46
|
-
private _cd;
|
|
47
|
-
private _document;
|
|
48
|
-
private _destroy$;
|
|
49
|
-
moving: boolean;
|
|
50
|
-
get isVertical(): boolean;
|
|
51
|
-
get isHorizontal(): boolean;
|
|
44
|
+
export declare class SciSplitterComponent implements OnInit {
|
|
52
45
|
/**
|
|
53
|
-
* Controls whether to render a vertical or horizontal splitter.
|
|
54
|
-
* By default, if not specified, renders a vertical splitter.
|
|
46
|
+
* Controls whether to render a vertical or horizontal splitter. By default, if not specified, renders a vertical splitter.
|
|
55
47
|
*/
|
|
56
|
-
orientation:
|
|
48
|
+
readonly orientation: import("@angular/core").InputSignal<"vertical" | "horizontal">;
|
|
57
49
|
/**
|
|
58
|
-
*
|
|
50
|
+
* Notifies when start moving the splitter.
|
|
59
51
|
*/
|
|
60
|
-
start:
|
|
52
|
+
readonly start: import("@angular/core").OutputEmitterRef<void>;
|
|
61
53
|
/**
|
|
62
|
-
*
|
|
63
|
-
* The event is emitted outside of the Angular zone.
|
|
54
|
+
* Notifies when moving the splitter. The event is emitted outside the Angular zone.
|
|
64
55
|
*/
|
|
65
|
-
move:
|
|
56
|
+
readonly move: import("@angular/core").OutputEmitterRef<SplitterMoveEvent>;
|
|
66
57
|
/**
|
|
67
|
-
*
|
|
58
|
+
* Notifies when end moving the splitter.
|
|
68
59
|
*/
|
|
69
|
-
end:
|
|
60
|
+
readonly end: import("@angular/core").OutputEmitterRef<void>;
|
|
70
61
|
/**
|
|
71
|
-
*
|
|
62
|
+
* Notifies when resetting the spliter position.
|
|
72
63
|
*/
|
|
73
|
-
reset:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
64
|
+
readonly reset: import("@angular/core").OutputEmitterRef<void>;
|
|
65
|
+
private readonly _zone;
|
|
66
|
+
private readonly _cd;
|
|
67
|
+
private readonly _document;
|
|
68
|
+
private readonly _destroyRef;
|
|
69
|
+
private readonly _touchTarget;
|
|
70
|
+
protected moving: boolean;
|
|
71
|
+
protected get isVertical(): boolean;
|
|
72
|
+
protected get isHorizontal(): boolean;
|
|
73
|
+
protected get splitterCursor(): string;
|
|
77
74
|
ngOnInit(): void;
|
|
78
75
|
private onReset;
|
|
79
76
|
private onTouchStart;
|
|
80
77
|
private onMouseDown;
|
|
81
78
|
private installMoveListener;
|
|
82
|
-
ngOnDestroy(): void;
|
|
83
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<SciSplitterComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SciSplitterComponent, "sci-splitter", never, { "orientation": { "alias": "orientation"; "required": false; }; }, { "start": "start"; "move": "move"; "end": "end"; "reset": "reset"; }, never, never, true, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SciSplitterComponent, "sci-splitter", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, { "start": "start"; "move": "move"; "end": "end"; "reset": "reset"; }, never, never, true, never>;
|
|
85
81
|
}
|
|
86
82
|
export interface EventPosition {
|
|
87
83
|
clientPos: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
/**
|
|
3
3
|
* Represents a classic spinner throbber with strokes arranged radially. The strokes light up one after the other in clockwise direction
|
|
4
|
-
* and then
|
|
4
|
+
* and then fade out again.
|
|
5
5
|
*
|
|
6
6
|
* Throbber type: `spinner`
|
|
7
7
|
*/
|
|
@@ -38,7 +38,7 @@ export declare class SciThrobberComponent {
|
|
|
38
38
|
* - **spinner** (default)
|
|
39
39
|
* Represents a classic spinner throbber with strokes arranged radially. The strokes light up one after the other in clockwise direction and then then fade out again.
|
|
40
40
|
*/
|
|
41
|
-
type:
|
|
41
|
+
readonly type: import("@angular/core").InputSignal<"ellipsis" | "ripple" | "roller" | "spinner">;
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<SciThrobberComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SciThrobberComponent, "sci-throbber", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SciThrobberComponent, "sci-throbber", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
44
44
|
}
|
|
@@ -4,8 +4,8 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
* Provides the native scrollbar tracksize.
|
|
5
5
|
*/
|
|
6
6
|
export declare class SciNativeScrollbarTrackSizeProvider {
|
|
7
|
-
private _document;
|
|
8
|
-
private _zone;
|
|
7
|
+
private readonly _document;
|
|
8
|
+
private readonly _zone;
|
|
9
9
|
/**
|
|
10
10
|
* Provides the track size of the native scrollbar, or `null` if the native scrollbars sit on top of the content.
|
|
11
11
|
*/
|
|
@@ -11,14 +11,14 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* to hide the pushed out native scrollbars.
|
|
12
12
|
*/
|
|
13
13
|
export declare class SciScrollableDirective {
|
|
14
|
-
private _host;
|
|
15
|
-
private _renderer;
|
|
16
|
-
private _nativeScrollbarTrackSizeProvider;
|
|
17
14
|
/**
|
|
18
15
|
* Controls whether to display native scrollbars.
|
|
19
16
|
* Has no effect if the native scrollbar sits on top of the content, e.g. in OS X.
|
|
20
17
|
*/
|
|
21
|
-
displayNativeScrollbar: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
readonly displayNativeScrollbar: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
private readonly _host;
|
|
20
|
+
private readonly _renderer;
|
|
21
|
+
private readonly _nativeScrollbarTrackSizeProvider;
|
|
22
22
|
constructor();
|
|
23
23
|
/**
|
|
24
24
|
* Controls the display of the native scrollbar based on this directive's configuration.
|
|
@@ -24,38 +24,32 @@ import * as i0 from "@angular/core";
|
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
26
|
export declare class SciScrollbarComponent {
|
|
27
|
-
private _host;
|
|
28
|
-
private _document;
|
|
29
|
-
private _zone;
|
|
30
|
-
private _destroyRef;
|
|
31
|
-
private _lastDragPosition;
|
|
32
|
-
private _overflow;
|
|
33
|
-
private _thumbSizeFr;
|
|
34
|
-
private _thumbPositionFr;
|
|
35
|
-
private _thumbElement;
|
|
36
|
-
private _vertical;
|
|
37
|
-
get vertical(): boolean;
|
|
38
|
-
get horizontal(): boolean;
|
|
39
|
-
get scrolling(): boolean;
|
|
40
27
|
/**
|
|
41
|
-
* Specifies the direction of the scrollbar.
|
|
42
|
-
*
|
|
43
|
-
* By default, if not specified, renders a vertical scrollbar.
|
|
28
|
+
* Specifies the direction of the scrollbar. Defaults to a vertical scrollbar.
|
|
44
29
|
*/
|
|
45
|
-
direction: import("@angular/core").InputSignal<"vscroll" | "hscroll">;
|
|
30
|
+
readonly direction: import("@angular/core").InputSignal<"vscroll" | "hscroll">;
|
|
46
31
|
/**
|
|
47
32
|
* The viewport to provide scrollbars for.
|
|
48
33
|
*/
|
|
49
|
-
viewport: import("@angular/core").InputSignal<HTMLElement>;
|
|
34
|
+
readonly viewport: import("@angular/core").InputSignal<HTMLElement>;
|
|
35
|
+
private readonly _host;
|
|
36
|
+
private readonly _document;
|
|
37
|
+
private readonly _zone;
|
|
38
|
+
private readonly _destroyRef;
|
|
39
|
+
private readonly _thumbElement;
|
|
40
|
+
private readonly _vertical;
|
|
41
|
+
private _lastDragPosition;
|
|
42
|
+
private _overflow;
|
|
43
|
+
private _thumbSizeFr;
|
|
44
|
+
private _thumbPositionFr;
|
|
45
|
+
protected get vertical(): boolean;
|
|
46
|
+
protected get horizontal(): boolean;
|
|
47
|
+
protected get scrolling(): boolean;
|
|
50
48
|
constructor();
|
|
51
49
|
/**
|
|
52
50
|
* Computes the scroll position and updates CSS variables to render the scroll position in the UI.
|
|
53
51
|
*/
|
|
54
52
|
private renderScrollPosition;
|
|
55
|
-
/**
|
|
56
|
-
* Clears CSS variables used for rendering the scroll position in the UI.
|
|
57
|
-
*/
|
|
58
|
-
private unsetScrollPosition;
|
|
59
53
|
protected onTouchStart(event: TouchEvent): void;
|
|
60
54
|
protected onTouchMove(event: TouchEvent): void;
|
|
61
55
|
protected onTouchEnd(event: TouchEvent): void;
|
|
@@ -69,18 +69,18 @@ import * as i0 from "@angular/core";
|
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
71
|
export declare class SciViewportComponent {
|
|
72
|
-
private _viewport;
|
|
73
|
-
private _viewportClient;
|
|
74
|
-
private _host;
|
|
75
|
-
protected nativeScrollbarTrackSizeProvider: SciNativeScrollbarTrackSizeProvider;
|
|
76
72
|
/**
|
|
77
73
|
* Controls if to use the native scrollbar or a scrollbar that sits on top of the viewport. Defaults to `on-top`.
|
|
78
74
|
*/
|
|
79
|
-
scrollbarStyle: import("@angular/core").InputSignal<ScrollbarStyle>;
|
|
75
|
+
readonly scrollbarStyle: import("@angular/core").InputSignal<ScrollbarStyle>;
|
|
80
76
|
/**
|
|
81
77
|
* Emits when the viewport is scrolled. The event is emitted outside the Angular zone to avoid unnecessary change detection cycles.
|
|
82
78
|
*/
|
|
83
|
-
scroll: import("@angular/core").OutputEmitterRef<Event>;
|
|
79
|
+
readonly scroll: import("@angular/core").OutputEmitterRef<Event>;
|
|
80
|
+
private readonly _host;
|
|
81
|
+
private readonly _viewport;
|
|
82
|
+
private readonly _viewportClient;
|
|
83
|
+
protected readonly nativeScrollbarTrackSizeProvider: SciNativeScrollbarTrackSizeProvider;
|
|
84
84
|
constructor();
|
|
85
85
|
focus(): void;
|
|
86
86
|
/**
|