@scion/components 21.0.0 → 21.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.
@@ -1,5 +1,4 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { OnInit } from '@angular/core';
3
2
 
4
3
  /**
5
4
  * Represents a splitter, a visual element that allows the user to control the size of elements next to it.
@@ -42,7 +41,7 @@ import { OnInit } from '@angular/core';
42
41
  * }
43
42
  * ```
44
43
  */
45
- declare class SciSplitterComponent implements OnInit {
44
+ declare class SciSplitterComponent {
46
45
  /**
47
46
  * Controls whether to render a vertical or horizontal splitter. By default, if not specified, renders a vertical splitter.
48
47
  */
@@ -60,7 +59,7 @@ declare class SciSplitterComponent implements OnInit {
60
59
  */
61
60
  readonly end: _angular_core.OutputEmitterRef<void>;
62
61
  /**
63
- * Notifies when resetting the spliter position.
62
+ * Notifies when resetting the splitter position.
64
63
  */
65
64
  readonly reset: _angular_core.OutputEmitterRef<void>;
66
65
  private readonly _zone;
@@ -68,11 +67,11 @@ declare class SciSplitterComponent implements OnInit {
68
67
  private readonly _document;
69
68
  private readonly _destroyRef;
70
69
  private readonly _touchTarget;
71
- protected moving: boolean;
72
- protected get isVertical(): boolean;
73
- protected get isHorizontal(): boolean;
74
- protected get splitterCursor(): string;
75
- ngOnInit(): void;
70
+ protected readonly moving: _angular_core.WritableSignal<boolean>;
71
+ protected readonly isHorizontal: _angular_core.Signal<boolean>;
72
+ protected readonly isVertical: _angular_core.Signal<boolean>;
73
+ protected readonly splitterCursor: _angular_core.Signal<"ew-resize" | "ns-resize">;
74
+ constructor();
76
75
  private onReset;
77
76
  private onTouchStart;
78
77
  private onMouseDown;
@@ -1,4 +1,4 @@
1
- import * as i0 from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
2
  import { Signal, ElementRef } from '@angular/core';
3
3
 
4
4
  /**
@@ -19,8 +19,8 @@ declare class SciNativeScrollbarTrackSizeProvider {
19
19
  */
20
20
  private computeTrackSize;
21
21
  private createNativeScrollbarTrackSizeSignal;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<SciNativeScrollbarTrackSizeProvider, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<SciNativeScrollbarTrackSizeProvider>;
22
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SciNativeScrollbarTrackSizeProvider, never>;
23
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<SciNativeScrollbarTrackSizeProvider>;
24
24
  }
25
25
  /**
26
26
  * Represents the native scrollbar track size.
@@ -101,11 +101,11 @@ declare class SciViewportComponent {
101
101
  /**
102
102
  * Controls if to use the native scrollbar or a scrollbar that sits on top of the viewport. Defaults to `on-top`.
103
103
  */
104
- readonly scrollbarStyle: i0.InputSignal<ScrollbarStyle>;
104
+ readonly scrollbarStyle: _angular_core.InputSignal<ScrollbarStyle>;
105
105
  /**
106
106
  * Emits when the viewport is scrolled. The event is emitted outside the Angular zone to avoid unnecessary change detection cycles.
107
107
  */
108
- readonly scroll: i0.OutputEmitterRef<Event>;
108
+ readonly scroll: _angular_core.OutputEmitterRef<Event>;
109
109
  private readonly _host;
110
110
  private readonly _viewport;
111
111
  private readonly _viewportClient;
@@ -182,8 +182,8 @@ declare class SciViewportComponent {
182
182
  * Emits when the scroll position changes.
183
183
  */
184
184
  private installScrollEmitter;
185
- static ɵfac: i0.ɵɵFactoryDeclaration<SciViewportComponent, never>;
186
- static ɵcmp: i0.ɵɵComponentDeclaration<SciViewportComponent, "sci-viewport", never, { "scrollbarStyle": { "alias": "scrollbarStyle"; "required": false; "isSignal": true; }; }, { "scroll": "scroll"; }, never, never, true, never>;
185
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SciViewportComponent, never>;
186
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SciViewportComponent, "sci-viewport", never, { "scrollbarStyle": { "alias": "scrollbarStyle"; "required": false; "isSignal": true; }; }, { "scroll": "scroll"; }, never, never, true, never>;
187
187
  }
188
188
  /**
189
189
  * Represents a scrollbar style.
@@ -218,24 +218,23 @@ declare class SciScrollbarComponent {
218
218
  /**
219
219
  * Specifies the direction of the scrollbar. Defaults to a vertical scrollbar.
220
220
  */
221
- readonly direction: i0.InputSignal<"vscroll" | "hscroll">;
221
+ readonly direction: _angular_core.InputSignal<"vscroll" | "hscroll">;
222
222
  /**
223
223
  * The viewport to provide scrollbars for.
224
224
  */
225
- readonly viewport: i0.InputSignal<HTMLElement>;
225
+ readonly viewport: _angular_core.InputSignal<HTMLElement>;
226
226
  private readonly _host;
227
227
  private readonly _document;
228
228
  private readonly _zone;
229
229
  private readonly _destroyRef;
230
230
  private readonly _thumbElement;
231
- private readonly _vertical;
232
- private _lastDragPosition;
231
+ private readonly _lastDragPosition;
232
+ protected readonly vertical: _angular_core.Signal<boolean>;
233
+ protected readonly horizontal: _angular_core.Signal<boolean>;
234
+ protected readonly scrolling: _angular_core.Signal<boolean>;
233
235
  private _overflow;
234
236
  private _thumbSizeFr;
235
237
  private _thumbPositionFr;
236
- protected get vertical(): boolean;
237
- protected get horizontal(): boolean;
238
- protected get scrolling(): boolean;
239
238
  constructor();
240
239
  /**
241
240
  * Computes the scroll position and updates CSS variables to render the scroll position in the UI.
@@ -272,8 +271,8 @@ declare class SciScrollbarComponent {
272
271
  private get scrollPosition();
273
272
  private get thumbSize();
274
273
  private get trackSize();
275
- static ɵfac: i0.ɵɵFactoryDeclaration<SciScrollbarComponent, never>;
276
- static ɵcmp: i0.ɵɵComponentDeclaration<SciScrollbarComponent, "sci-scrollbar", never, { "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "viewport": { "alias": "viewport"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
274
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SciScrollbarComponent, never>;
275
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SciScrollbarComponent, "sci-scrollbar", never, { "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "viewport": { "alias": "viewport"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
277
276
  }
278
277
 
279
278
  /**
@@ -292,7 +291,7 @@ declare class SciScrollableDirective {
292
291
  * Controls whether to display native scrollbars.
293
292
  * Has no effect if the native scrollbar sits on top of the content, e.g. in OS X.
294
293
  */
295
- readonly displayNativeScrollbar: i0.InputSignal<boolean>;
294
+ readonly displayNativeScrollbar: _angular_core.InputSignal<boolean>;
296
295
  private readonly _host;
297
296
  private readonly _renderer;
298
297
  private readonly _nativeScrollbarTrackSizeProvider;
@@ -310,8 +309,8 @@ declare class SciScrollableDirective {
310
309
  */
311
310
  private shiftNativeScrollbars;
312
311
  private setStyle;
313
- static ɵfac: i0.ɵɵFactoryDeclaration<SciScrollableDirective, never>;
314
- static ɵdir: i0.ɵɵDirectiveDeclaration<SciScrollableDirective, "[sciScrollable]", never, { "displayNativeScrollbar": { "alias": "sciScrollableDisplayNativeScrollbar"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
312
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SciScrollableDirective, never>;
313
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SciScrollableDirective, "[sciScrollable]", never, { "displayNativeScrollbar": { "alias": "sciScrollableDisplayNativeScrollbar"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
315
314
  }
316
315
 
317
316
  export { SciScrollableDirective, SciScrollbarComponent, SciViewportComponent };