@scion/components 16.0.0 → 16.2.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.
Files changed (68) hide show
  1. package/_index.scss +116 -1
  2. package/design/_index.scss +1 -0
  3. package/design/_theming.scss +244 -0
  4. package/design/colors/_scion-dark-colors.scss +91 -0
  5. package/design/colors/_scion-light-colors.scss +91 -0
  6. package/design/colors/_scion-static-colors.scss +4 -0
  7. package/design/components/_scion-component-tokens.scss +48 -0
  8. package/design/themes/_scion-dark-theme.scss +55 -0
  9. package/design/themes/_scion-light-theme.scss +55 -0
  10. package/dimension/dimension.directive.d.ts +1 -1
  11. package/dimension/dimension.module.d.ts +1 -2
  12. package/esm2022/dimension/dimension.directive.mjs +3 -2
  13. package/esm2022/dimension/dimension.module.mjs +3 -7
  14. package/esm2022/sashbox/element-ref.directive.mjs +7 -3
  15. package/esm2022/sashbox/public_api.mjs +4 -4
  16. package/esm2022/sashbox/sash-initializer.directive.mjs +7 -4
  17. package/esm2022/sashbox/sash.directive.mjs +3 -2
  18. package/esm2022/sashbox/sashbox.component.mjs +32 -24
  19. package/esm2022/sashbox/sashbox.module.mjs +5 -19
  20. package/esm2022/splitter/public_api.mjs +3 -3
  21. package/esm2022/splitter/splitter.component.mjs +15 -16
  22. package/esm2022/splitter/splitter.module.mjs +4 -8
  23. package/esm2022/throbber/ellipsis-throbber/ellipsis-throbber.component.mjs +3 -3
  24. package/esm2022/throbber/ripple-throbber/ripple-throbber.component.mjs +3 -3
  25. package/esm2022/throbber/roller-throbber/roller-throbber.component.mjs +3 -3
  26. package/esm2022/throbber/spinner-throbber/spinner-throbber.component.mjs +3 -3
  27. package/esm2022/throbber/throbber.component.mjs +19 -10
  28. package/esm2022/throbber/throbber.module.mjs +4 -20
  29. package/esm2022/viewport/native-scrollbar-track-size-provider.service.mjs +6 -5
  30. package/esm2022/viewport/public_api.mjs +4 -5
  31. package/esm2022/viewport/scrollable.directive.mjs +3 -2
  32. package/esm2022/viewport/scrollbar/scrollbar.component.mjs +9 -8
  33. package/esm2022/viewport/viewport.component.mjs +20 -12
  34. package/esm2022/viewport/viewport.module.mjs +4 -12
  35. package/fesm2022/scion-components-dimension.mjs +4 -7
  36. package/fesm2022/scion-components-dimension.mjs.map +1 -1
  37. package/fesm2022/scion-components-sashbox.mjs +48 -44
  38. package/fesm2022/scion-components-sashbox.mjs.map +1 -1
  39. package/fesm2022/scion-components-splitter.mjs +18 -22
  40. package/fesm2022/scion-components-splitter.mjs.map +1 -1
  41. package/fesm2022/scion-components-throbber.mjs +25 -28
  42. package/fesm2022/scion-components-throbber.mjs.map +1 -1
  43. package/fesm2022/scion-components-viewport.mjs +125 -122
  44. package/fesm2022/scion-components-viewport.mjs.map +1 -1
  45. package/package.json +7 -1
  46. package/sashbox/element-ref.directive.d.ts +1 -1
  47. package/sashbox/public_api.d.ts +3 -3
  48. package/sashbox/sash-initializer.directive.d.ts +1 -1
  49. package/sashbox/sash.directive.d.ts +2 -2
  50. package/sashbox/sashbox.component.d.ts +13 -14
  51. package/sashbox/sashbox.module.d.ts +1 -5
  52. package/splitter/public_api.d.ts +2 -2
  53. package/splitter/splitter.component.d.ts +13 -14
  54. package/splitter/splitter.module.d.ts +1 -2
  55. package/throbber/ellipsis-throbber/ellipsis-throbber.component.d.ts +1 -1
  56. package/throbber/ripple-throbber/ripple-throbber.component.d.ts +1 -1
  57. package/throbber/roller-throbber/roller-throbber.component.d.ts +1 -1
  58. package/throbber/spinner-throbber/spinner-throbber.component.d.ts +1 -1
  59. package/throbber/throbber.component.d.ts +4 -3
  60. package/throbber/throbber.module.d.ts +1 -6
  61. package/viewport/native-scrollbar-track-size-provider.service.d.ts +0 -2
  62. package/viewport/public_api.d.ts +3 -4
  63. package/viewport/scrollable.directive.d.ts +1 -1
  64. package/viewport/{_scrollbar.scss → scrollbar/_scrollbar.scss} +3 -4
  65. package/viewport/scrollbar/scrollbar.component.d.ts +6 -5
  66. package/viewport/viewport.component.d.ts +7 -6
  67. package/viewport/viewport.module.d.ts +1 -3
  68. /package/viewport/{_index.scss → scrollbar/_index.scss} +0 -0
@@ -3,8 +3,6 @@ import { Observable } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
5
5
  * Provides the native scrollbar tracksize.
6
- *
7
- * @dynamic ignore 'strictMetadataEmit' errors due to the usage of {@link Document} as ambient type for DI.
8
6
  */
9
7
  export declare class SciNativeScrollbarTrackSizeProvider implements OnDestroy {
10
8
  private _document;
@@ -1,5 +1,4 @@
1
1
  export { SciViewportModule } from './viewport.module';
2
- export * from './viewport.component';
3
- export * from './scrollable.directive';
4
- export * from './scrollbar/scrollbar.component';
5
- export * from './native-scrollbar-track-size-provider.service';
2
+ export { SciViewportComponent, ScrollbarStyle } from './viewport.component';
3
+ export { SciScrollbarComponent } from './scrollbar/scrollbar.component';
4
+ export { SciScrollableDirective } from './scrollable.directive';
@@ -35,5 +35,5 @@ export declare class SciScrollableDirective implements OnChanges, OnDestroy {
35
35
  ngOnChanges(changes: SimpleChanges): void;
36
36
  ngOnDestroy(): void;
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<SciScrollableDirective, never>;
38
- static ɵdir: i0.ɵɵDirectiveDeclaration<SciScrollableDirective, "[sciScrollable]", never, { "isDisplayNativeScrollbar": { "alias": "sciScrollableDisplayNativeScrollbar"; "required": false; }; }, {}, never, never, false, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SciScrollableDirective, "[sciScrollable]", never, { "isDisplayNativeScrollbar": { "alias": "sciScrollableDisplayNativeScrollbar"; "required": false; }; }, {}, never, never, true, never>;
39
39
  }
@@ -5,9 +5,8 @@
5
5
  *
6
6
  * Invoke from within the 'sci-scrollbar' selector.
7
7
  */
8
- @mixin position($theme: ()) {
9
- $scrollbar-size: map.get($theme, scrollbar-size);
10
- $scrollbar-size: 12px !default;
8
+ @mixin position() {
9
+ $scrollbar-size: 12px;
11
10
 
12
11
  position: absolute;
13
12
  transition-duration: 1s;
@@ -39,7 +38,7 @@
39
38
  *
40
39
  * Invoke from within the viewport selector.
41
40
  */
42
- @mixin hide-when-inactive($theme: ()) {
41
+ @mixin hide-when-inactive() {
43
42
  &:host-context(:not(:hover):not(:active)) sci-scrollbar:not(.scrolling) { // use :host-context to work with shadow DOM, i.e., to select the shadow host of the shadow DOM
44
43
  opacity: 0; // do not use 'display' nor 'visibility' property to fade the scrollbar
45
44
  }
@@ -8,11 +8,12 @@ import * as i0 from "@angular/core";
8
8
  * - enlarges the thumb if the mouse pointer is near the thumb
9
9
  * - allows paging on mousedown on the scroll track
10
10
  *
11
- * ### CSS styling:
11
+ * ### Styling:
12
12
  *
13
- * You can override the following CSS variables:
13
+ * To customize the default look of SCION components or support different themes, configure the `@scion/components` SCSS module in `styles.scss`.
14
+ * To style a specific `sci-scrollbar` component, the following CSS variables can be set directly on the component.
14
15
  *
15
- * - sci-scrollbar-color: Sets the color of the scrollbar (by default, uses `rgb(78, 78, 78)`).
16
+ * - sci-scrollbar-color: Sets the color of the scrollbar.
16
17
  *
17
18
  * Example:
18
19
  *
@@ -48,7 +49,7 @@ export declare class SciScrollbarComponent implements OnDestroy {
48
49
  * The viewport to provide scrollbars for.
49
50
  */
50
51
  set setViewport(viewport: HTMLElement);
51
- constructor(_host: ElementRef<HTMLElement>, _document: any, _zone: NgZone);
52
+ constructor(_host: ElementRef<HTMLElement>, _document: Document, _zone: NgZone);
52
53
  /**
53
54
  * Computes the scroll position and updates CSS variables to render the scroll position in the UI.
54
55
  */
@@ -102,5 +103,5 @@ export declare class SciScrollbarComponent implements OnDestroy {
102
103
  private get trackSize();
103
104
  ngOnDestroy(): void;
104
105
  static ɵfac: i0.ɵɵFactoryDeclaration<SciScrollbarComponent, never>;
105
- static ɵcmp: i0.ɵɵComponentDeclaration<SciScrollbarComponent, "sci-scrollbar", never, { "direction": { "alias": "direction"; "required": false; }; "setViewport": { "alias": "viewport"; "required": false; }; }, {}, never, never, false, never>;
106
+ static ɵcmp: i0.ɵɵComponentDeclaration<SciScrollbarComponent, "sci-scrollbar", never, { "direction": { "alias": "direction"; "required": false; }; "setViewport": { "alias": "viewport"; "required": true; }; }, {}, never, never, true, never>;
106
107
  }
@@ -17,7 +17,7 @@ import * as i0 from "@angular/core";
17
17
  *
18
18
  * ## Adding the viewport to a layout
19
19
  *
20
- * Typically you would add the viewport component to a flexible layout, filling the remaining space vertically and horizontally, such as a flexbox container
20
+ * Typically, you would add the viewport component to a flexible layout, filling the remaining space vertically and horizontally, such as a flexbox container
21
21
  * with the viewport's `flex` CSS property set to either `flex: auto` or `flex: 1 1 0`.
22
22
  *
23
23
  * The viewport is sized according to its content width and height. It grows to absorb any free space, thus overflowing its content only when encountering
@@ -39,7 +39,7 @@ import * as i0 from "@angular/core";
39
39
  * By default, the viewport's content is added to a CSS grid container with a single column, filling remaining space vertically and horizontally.
40
40
  * Using the `::part(content)` pseudo element selector, you can configure the grid container or apply a different layout, such as a flex or flow layout.
41
41
  *
42
- * #### Example of adding slotted content to a CSS flex container.
42
+ * #### Example of adding slotted content to a CSS flex container
43
43
  * ```css
44
44
  * sci-viewport::part(content) {
45
45
  * display: flex;
@@ -55,11 +55,12 @@ import * as i0 from "@angular/core";
55
55
  * }
56
56
  * ```
57
57
  *
58
- * ## Styling of scrollbars
58
+ * ## Styling
59
59
  *
60
- * You can override the following CSS variables to control the appearance of the scrollbar:
60
+ * To customize the default look of SCION components or support different themes, configure the `@scion/components` SCSS module in `styles.scss`.
61
+ * To style a specific `sci-viewport` component, the following CSS variables can be set directly on the component.
61
62
  *
62
- * - sci-viewport-scrollbar-color: Sets the color of the scrollbar (by default, uses `rgb(78, 78, 78)`).
63
+ * - sci-viewport-scrollbar-color: Sets the color of the scrollbar.
63
64
  *
64
65
  * ```css
65
66
  * sci-viewport {
@@ -155,7 +156,7 @@ export declare class SciViewportComponent {
155
156
  */
156
157
  computeOffset(element: ElementRef<HTMLElement> | HTMLElement, border: 'left' | 'top'): number | null;
157
158
  static ɵfac: i0.ɵɵFactoryDeclaration<SciViewportComponent, never>;
158
- static ɵcmp: i0.ɵɵComponentDeclaration<SciViewportComponent, "sci-viewport", never, { "scrollbarStyle": { "alias": "scrollbarStyle"; "required": false; }; }, { "scroll": "scroll"; }, never, never, false, never>;
159
+ static ɵcmp: i0.ɵɵComponentDeclaration<SciViewportComponent, "sci-viewport", never, { "scrollbarStyle": { "alias": "scrollbarStyle"; "required": false; }; }, { "scroll": "scroll"; }, never, never, true, never>;
159
160
  }
160
161
  /**
161
162
  * Represents a scrollbar style.
@@ -2,13 +2,11 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./viewport.component";
3
3
  import * as i2 from "./scrollbar/scrollbar.component";
4
4
  import * as i3 from "./scrollable.directive";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/cdk/scrolling";
7
5
  /**
8
6
  * Provides a viewport component with scrollbars that sit on top of the viewport client.
9
7
  */
10
8
  export declare class SciViewportModule {
11
9
  static ɵfac: i0.ɵɵFactoryDeclaration<SciViewportModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<SciViewportModule, [typeof i1.SciViewportComponent, typeof i2.SciScrollbarComponent, typeof i3.SciScrollableDirective], [typeof i4.CommonModule, typeof i5.ScrollingModule], [typeof i1.SciViewportComponent, typeof i2.SciScrollbarComponent, typeof i3.SciScrollableDirective]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SciViewportModule, never, [typeof i1.SciViewportComponent, typeof i2.SciScrollbarComponent, typeof i3.SciScrollableDirective], [typeof i1.SciViewportComponent, typeof i2.SciScrollbarComponent, typeof i3.SciScrollableDirective]>;
13
11
  static ɵinj: i0.ɵɵInjectorDeclaration<SciViewportModule>;
14
12
  }
File without changes