@coolon/angular-ui-powerups 16.1.0-alpha.288 → 16.1.0-alpha.291

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.
@@ -7,6 +7,22 @@ export declare class LoadableComponent extends DisposableComponent implements On
7
7
  protected readonly loadTracker: LoadingStateTracker.Tracker | undefined;
8
8
  constructor();
9
9
  get loaded$(): ValueModel<boolean>;
10
+ /**
11
+ * How far through loading the component is, from 0 to 1, for a determinate progress bar: combined over
12
+ * the loadables that {@link loaded$} waits for, with a part they share counted once (see
13
+ * {@link Loadable.combinedProgress}). Loadables registered with `wait: false` or a gate are left out,
14
+ * as they are from loaded$. Reads 1 exactly when loaded$ is true, and so stays 1 if a loadable
15
+ * later reloads, as loaded$ does; 0 until `ngOnInit`.
16
+ */
17
+ get loadProgress$(): ValueModel<number>;
18
+ /**
19
+ * Items loaded so far and expected, [loadedCount, totalItems], over the same loadables as
20
+ * {@link loadProgress$}, for "1,200 of 4,000" (see {@link Loadable.combinedCounts}). totalItems is
21
+ * undefined until every one of them knows its own; [0, undefined] until `ngOnInit`.
22
+ */
23
+ get loadCounts$(): ValueModel<Loadable.Counts>;
24
+ /** The loadables {@link loaded$} waits for, so anything combining this component with others counts them once. */
25
+ get loadableParts(): readonly Loadable[];
10
26
  ngOnInit(): void;
11
27
  private loadDependencies;
12
28
  protected injectLoadable<T extends Loadable>(token: ProviderToken<T>, options?: InjectOptions & LoadableComponent.RegisterOptions): T;
@@ -19,6 +19,8 @@ import * as i0 from "@angular/core";
19
19
  * The rail collapses to an icon strip from the Menu row, and expands over the content when the
20
20
  * pointer rests on it. The pinned state is kept in localStorage under {@link persistKey}.
21
21
  *
22
+ * {@link currentPath$} names where the user is the way the rail does, for a breadcrumb.
23
+ *
22
24
  * @example
23
25
  * // Usage
24
26
  * <aup-side-place-navigation [places]="placeConstructorArray"
@@ -97,6 +99,12 @@ export declare class SidePlaceNavigationComponent extends AbstractPlaceNavigatio
97
99
  /** Hover-expanded over the content, as opposed to pinned expanded beside it. */
98
100
  readonly overlay$: BooleanValueModelChain;
99
101
  readonly navItems$: ListModelChain<SidePlaceNavigationComponent.Item>;
102
+ /**
103
+ * Where the user is, as the rail names it: the group and the current child in it, or else the one
104
+ * current entry. Grouped by the rail's rules and settled when it is, after a navigation, so a
105
+ * breadcrumb bound to it always agrees with the rail. Empty while no listed place is current.
106
+ */
107
+ readonly currentPath$: ListModelChain<SidePlaceNavigationComponent.PathSegment>;
100
108
  /** Groups the user has opened. The current place's group joins on arrival and stays. */
101
109
  private readonly openGroups$;
102
110
  readonly childListAnimation: {
@@ -158,4 +166,9 @@ export declare namespace SidePlaceNavigationComponent {
158
166
  readonly face: CommandFace;
159
167
  readonly current: boolean;
160
168
  }
169
+ /** One step of {@link SidePlaceNavigationComponent.currentPath$}. */
170
+ interface PathSegment {
171
+ readonly place: PlaceDefinition;
172
+ readonly face: CommandFace;
173
+ }
161
174
  }
@@ -44,6 +44,11 @@ export type TabbedPlaceNavigationAppearance = 'folder' | 'segmented' | 'tonal' |
44
44
  * --aup-tab-nav-tonal-selected-background: <theme primary 50>; // tonal: the sliding tint
45
45
  * --aup-tab-nav-underline-color: #d9dce2; // tonal: the full-width line under the bar
46
46
  * --aup-tab-nav-tonal-padding: 8px 12px; // tonal: space around the options
47
+ * --aup-tab-nav-tonal-tab-height: 30px; // tonal: each option's height
48
+ * --aup-tab-nav-tonal-tab-padding: 0 12px; // tonal: space inside each option
49
+ * --aup-tab-nav-tonal-gap: 2px; // tonal: space between the options
50
+ * --aup-tab-nav-tonal-font-size: 13px;
51
+ * --aup-tab-nav-tonal-selected-weight: 700; // tonal: the selected option's label
47
52
  * }
48
53
  */
49
54
  export declare class TabbedPlaceNavigationComponent extends AbstractPlaceNavigationComponent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.288",
3
+ "version": "16.1.0-alpha.291",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",
@@ -12,7 +12,7 @@
12
12
  "@angular/platform-browser-dynamic": "^16.2.9",
13
13
  "@angular/material-moment-adapter": "^16.2.10",
14
14
  "@angular/router": "^16.2.9",
15
- "@coolon/pectin": "^5.0.0-alpha.140",
15
+ "@coolon/pectin": "^5.0.0-alpha.141",
16
16
  "fast-typescript-memoize": "^1.1.1",
17
17
  "lodash-es": "^4.17.21",
18
18
  "marked": "4.0.10",