@magmonium/one 0.4.36 → 0.4.37

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": "@magmonium/one",
3
- "version": "0.4.36",
3
+ "version": "0.4.37",
4
4
  "description": "Magmonium One — Angular design-system primitives for mm Apps",
5
5
  "author": "magmonium",
6
6
  "license": "MIT",
@@ -13041,10 +13041,18 @@ interface NavVisibilityConfig {
13041
13041
  }
13042
13042
  type NavWidgetEntry = Type<unknown> | NavWidgetConfig | NavMenuConfig | NavRowsConfig | NavInstanceConfig | NavVisibilityConfig;
13043
13043
  /**
13044
- * What an app hands `provideNavWidgets`. Keyed by NavId and nothing else — the
13045
- * same string as the nav asset filename and the route stamp (ADR 0014).
13044
+ * Where an app registers its search answer (ADR 0042): the element the host's
13045
+ * search panel mounts in place of its groups, with `query` bound, while the
13046
+ * Address stands inside that app's mount and the query is non-empty. Beside
13047
+ * `root_search` rather than at it, because a Platform panel stays the host's.
13046
13048
  */
13047
- type NavWidgetMap = Partial<Record<NavIdKey, NavWidgetEntry>>;
13049
+ export declare const SEARCH_ANSWER_KEY = "search_answer";
13050
+ /**
13051
+ * What an app hands `provideNavWidgets`. Keyed by NavId — the same string as
13052
+ * the nav asset filename and the route stamp (ADR 0014) — plus the one
13053
+ * non-Nav key, `SEARCH_ANSWER_KEY`.
13054
+ */
13055
+ type NavWidgetMap = Partial<Record<NavIdKey | typeof SEARCH_ANSWER_KEY, NavWidgetEntry>>;
13048
13056
  export declare function isNavMenuConfig(entry: NavWidgetEntry): entry is NavMenuConfig;
13049
13057
  export declare function isNavRowsConfig(entry: NavWidgetEntry): entry is NavRowsConfig;
13050
13058
  export declare function isNavInstanceConfig(entry: NavWidgetEntry): entry is NavInstanceConfig;
@@ -13054,7 +13062,7 @@ export declare function isNavVisibilityConfig(entry: NavWidgetEntry): entry is N
13054
13062
  * Platform Nav panels first so an app registering at the same NavId replaces
13055
13063
  * them (ADR 0016).
13056
13064
  */
13057
- export declare const NAV_WIDGET_MAP: InjectionToken<Signal<Partial<Record<NavIdKey, NavWidgetEntry>>>>;
13065
+ export declare const NAV_WIDGET_MAP: InjectionToken<Signal<Partial<Record<NavIdKey | "search_answer", NavWidgetEntry>>>>;
13058
13066
  /**
13059
13067
  * List of Angular components to register as custom elements for cross-bundle nav widget rendering.
13060
13068
  * Provided by WC apps in their providers so BaseRootWebComponent can register them on bootstrap.
@@ -13130,6 +13138,9 @@ export declare class FrameComponent {
13130
13138
  resolvedWidget: import("@angular/core").Signal<(import("@magmonium/one").NavWidgetConfig & {
13131
13139
  ceSelector?: string;
13132
13140
  }) | null>;
13141
+ searchAnswer: import("@angular/core").Signal<(import("@magmonium/one").NavWidgetConfig & {
13142
+ ceSelector?: string;
13143
+ }) | null>;
13133
13144
  breadcrumb: import("@angular/core").Signal<import("@magmonium/one").BreadCrumb>;
13134
13145
  navMenus: import("@angular/core").Signal<import("@magmonium/one").BreadcrumbTrail[]>;
13135
13146
  navHasContent: import("@angular/core").Signal<boolean>;
@@ -13536,6 +13547,9 @@ export declare const NavStore: import("@angular/core").Type<{
13536
13547
  resolvedWidget: Signal<(NavWidgetConfig & {
13537
13548
  ceSelector?: string;
13538
13549
  }) | null>;
13550
+ searchAnswer: Signal<(NavWidgetConfig & {
13551
+ ceSelector?: string;
13552
+ }) | null>;
13539
13553
  breadcrumb: Signal<BreadCrumb>;
13540
13554
  navMenus: Signal<import("@magmonium/one").BreadcrumbTrail[]>;
13541
13555
  navHasContent: Signal<boolean>;
@@ -14007,6 +14021,9 @@ export declare class NavDetailsComponent {
14007
14021
  resolvedWidget: import("@angular/core").Signal<(import("@magmonium/one").NavWidgetConfig & {
14008
14022
  ceSelector?: string;
14009
14023
  }) | null>;
14024
+ searchAnswer: import("@angular/core").Signal<(import("@magmonium/one").NavWidgetConfig & {
14025
+ ceSelector?: string;
14026
+ }) | null>;
14010
14027
  breadcrumb: import("@angular/core").Signal<import("@magmonium/one").BreadCrumb>;
14011
14028
  navMenus: import("@angular/core").Signal<import("@magmonium/one").BreadcrumbTrail[]>;
14012
14029
  navHasContent: import("@angular/core").Signal<boolean>;
@@ -14106,10 +14123,22 @@ export declare class NavDetailsComponent {
14106
14123
  visibilityAnswers: Record<string, boolean>;
14107
14124
  }>;
14108
14125
  _device: DeviceService;
14126
+ private readonly _searchStore;
14109
14127
  private readonly _settingsSearch;
14110
14128
  protected readonly Size: typeof Size;
14111
14129
  protected readonly _skeletonItems: number[];
14112
14130
  protected readonly _isInSettings: import("@angular/core").Signal<boolean>;
14131
+ /**
14132
+ * The app's search answer, drawn in place of the search groups only while
14133
+ * the search panel is up and there is text to answer (ADR 0042). The bar
14134
+ * stays in the header and keeps writing `SearchStore`.
14135
+ */
14136
+ protected readonly _searchAnswer: import("@angular/core").Signal<(import("@magmonium/one").NavWidgetConfig & {
14137
+ ceSelector?: string;
14138
+ }) | null>;
14139
+ protected readonly _answerInputs: import("@angular/core").Signal<{
14140
+ query: string;
14141
+ }>;
14113
14142
  protected isScrolledDown: import("@angular/core").Signal<boolean>;
14114
14143
  protected readonly _draggable: import("@angular/core").WritableSignal<Draggable>;
14115
14144
  constructor();
@@ -14244,6 +14273,9 @@ export declare class NavHeaderComponent {
14244
14273
  resolvedWidget: import("@angular/core").Signal<(import("@magmonium/one").NavWidgetConfig & {
14245
14274
  ceSelector?: string;
14246
14275
  }) | null>;
14276
+ searchAnswer: import("@angular/core").Signal<(import("@magmonium/one").NavWidgetConfig & {
14277
+ ceSelector?: string;
14278
+ }) | null>;
14247
14279
  breadcrumb: import("@angular/core").Signal<import("@magmonium/one").BreadCrumb>;
14248
14280
  navMenus: import("@angular/core").Signal<import("@magmonium/one").BreadcrumbTrail[]>;
14249
14281
  navHasContent: import("@angular/core").Signal<boolean>;