@coolon/angular-ui-powerups 16.1.0-alpha.284 → 16.1.0-alpha.286

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,7 +1,53 @@
1
1
  import { PlaceRouter } from '../../place-router';
2
2
  import { AbstractPlaceNavigationComponent } from '../abstract-place-navigation.component';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * How a tab bar looks.
6
+ * - `folder` (default): folder tabs on a tinted strip; the selected tab joins the page below it.
7
+ * - `segmented`: a compact segmented control, for a second-level bar inside a tabbed place, so it
8
+ * can't be mistaken for the bar above it.
9
+ * - `tonal`: a lighter second-level bar: options on the page over a full-width underline, the
10
+ * selected one on a soft accent tint.
11
+ * - `underline`: the stock Material underline tabs this component used to render.
12
+ */
13
+ export type TabbedPlaceNavigationAppearance = 'folder' | 'segmented' | 'tonal' | 'underline';
14
+ /**
15
+ * @example
16
+ * // Top level (folder tabs are the default)
17
+ * <aup-tabbed-place-navigation [places]="places" [placeOutlet]="outlet"></aup-tabbed-place-navigation>
18
+ * <aup-place-outlet #outlet></aup-place-outlet>
19
+ *
20
+ * // Second level, inside a tabbed place
21
+ * <aup-tabbed-place-navigation appearance="segmented" [places$]="childPlaces$" [placeOutlet]="childOutlet">
22
+ * </aup-tabbed-place-navigation>
23
+ *
24
+ * // CSS overrides (set on the element or any ancestor; defaults shown):
25
+ * aup-tabbed-place-navigation {
26
+ * --aup-tab-nav-accent: <theme primary>; // selected label, folder top line
27
+ * --aup-tab-nav-color: #6b6f76; // unselected label
28
+ * --aup-tab-nav-selected-color: <accent>; // selected label
29
+ * --aup-tab-nav-hover-color: #212121; // unselected label on hover
30
+ * --aup-tab-nav-hover-background: rgba(63, 81, 181, 0.07);
31
+ * --aup-tab-nav-bar-background: #f0f2f5; // folder: the strip behind the tabs
32
+ * --aup-tab-nav-inset: 8px; // folder: space before the first tab
33
+ * --aup-tab-nav-page-background: var(--aup-default-background, #fff); // folder: the page colour;
34
+ * // the selected tab takes it so the two join up
35
+ * --aup-tab-nav-edge-color: #aeb4be; // folder: selected tab outline and join line
36
+ * --aup-tab-nav-top-line-width: 2px; // folder: accent line on the selected tab
37
+ * --aup-tab-nav-label-padding-bottom: 0 | 8px; // folder: room under the label (8px when the
38
+ * // tab has an icon, so it balances the top line)
39
+ * --aup-tab-nav-segment-track-background: <bar-background>; // segmented: the track
40
+ * --aup-tab-nav-segment-border-color: #d9dce2; // segmented: the track outline
41
+ * --aup-tab-nav-segment-selected-background: #fff; // segmented: the sliding highlight
42
+ * --aup-tab-nav-segmented-padding: 12px 12px 4px; // segmented: space around the control
43
+ * --aup-tab-nav-tonal-selected-background: <theme primary 50>; // tonal: the sliding tint
44
+ * --aup-tab-nav-underline-color: #d9dce2; // tonal: the full-width line under the bar
45
+ * --aup-tab-nav-tonal-padding: 8px 12px; // tonal: space around the options
46
+ * }
47
+ */
4
48
  export declare class TabbedPlaceNavigationComponent extends AbstractPlaceNavigationComponent {
49
+ /** See {@link TabbedPlaceNavigationAppearance}. Reflected to the host attribute the styles key off. */
50
+ appearance: TabbedPlaceNavigationAppearance;
5
51
  /**
6
52
  * Animations are suppressed while a navigation is in flight, and for a frame after it settles.
7
53
  *
@@ -20,5 +66,5 @@ export declare class TabbedPlaceNavigationComponent extends AbstractPlaceNavigat
20
66
  private resetHandle;
21
67
  constructor(router: PlaceRouter);
22
68
  static ɵfac: i0.ɵɵFactoryDeclaration<TabbedPlaceNavigationComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<TabbedPlaceNavigationComponent, "aup-tabbed-place-navigation", never, {}, {}, never, ["[nav-start]", "[nav-end]"], false, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabbedPlaceNavigationComponent, "aup-tabbed-place-navigation", never, { "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, ["[nav-start]", "[nav-end]"], false, never>;
24
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.284",
3
+ "version": "16.1.0-alpha.286",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",