@coolms/core-angular 2.0.0-alpha.8 → 2.0.0-alpha.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolms/core-angular",
3
- "version": "2.0.0-alpha.8",
3
+ "version": "2.0.0-alpha.9",
4
4
  "description": "The CoolMS client runtime for Angular: session and token refresh, boot manifest and app configuration, theme, user preferences, error handling, HTTP interceptors, and the wire types the CoolMS API emits.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -897,9 +897,10 @@ export interface ElevationState {
897
897
  /**
898
898
  * `closed` is the beacon (the panel was closed or reloaded), `dropped_by_user`
899
899
  * the explicit drop, `refresh_from_other_pair` the server's refresh tripwire,
900
- * `never` a session that has not elevated yet.
900
+ * `factor_reset` the person's second factor reset on the server, which ends
901
+ * every live elevation they hold, `never` a session that has not elevated yet.
901
902
  */
902
- export type ElevationEndedReason = 'expired' | 'closed' | 'dropped_by_user' | 'refresh_from_other_pair' | 'never';
903
+ export type ElevationEndedReason = 'expired' | 'closed' | 'dropped_by_user' | 'refresh_from_other_pair' | 'factor_reset' | 'never';
903
904
  export interface ElevationEnded {
904
905
  reason: ElevationEndedReason;
905
906
  /** ISO 8601, null for `never`. */
@@ -2027,6 +2028,7 @@ export declare class NaviGraphService {
2027
2028
  * semantics.
2028
2029
  */
2029
2030
  matchesShowWhen(showWhen: Record<string, unknown> | undefined | null, record: Record<string, unknown>): boolean;
2031
+ private isCondition;
2030
2032
  private evalCondition;
2031
2033
  /**
2032
2034
  * Fetch a graph endpoint and return a nested tree.
@@ -2330,4 +2332,23 @@ export interface CurrentSectionPort {
2330
2332
  * nothing and simply sends no `X-CoolMS-Section` header, which is exactly what
2331
2333
  * a single-site install wants.
2332
2334
  */
2333
- export declare const CURRENT_SECTION: InjectionToken<CurrentSectionPort>;
2335
+ export declare const CURRENT_SECTION: InjectionToken<CurrentSectionPort>;
2336
+ /**
2337
+ * One floating menu open in the whole app at a time: a dropdown, a picker's results, a menu, a date picker. Opening one
2338
+ * closes the one open before it, without moving the focus, wherever the two were opened.
2339
+ */
2340
+ export declare class FloatingMenus {
2341
+ private current;
2342
+ /** This menu has opened: the one open before it, if another, closes. */
2343
+ claim(close: () => void): void;
2344
+ /** This menu has closed. */
2345
+ release(close: () => void): void;
2346
+ /**
2347
+ * Follow a menu's open state from an injection context (a component's or a service's field or constructor): when
2348
+ * it opens it claims the app's one floating menu, and `close` closes it when another opens. `close` must not move
2349
+ * the focus. Gives back the release, which the owner's destruction also runs.
2350
+ */
2351
+ track(open: () => boolean, close: () => void): () => void;
2352
+ static ɵfac: i0.ɵɵFactoryDeclaration<FloatingMenus, never>;
2353
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
2354
+ }