@aiquants/daily-report 0.37.0 → 0.38.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.
package/dist/client.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import * as react from "react";
2
2
  import { RefObject, ReactNode, Context } from "react";
3
- import { D as DailyReportItem, a as DailyReportUser, b as DailyReportSseTerminalEvent, c as DailyReportSseMessage, d as DailyReportDetail } from "./sse-schema-getLS62T.js";
3
+ import { D as DailyReportItem, a as DailyReportUser, b as DailyReportSseTerminalEvent, c as DailyReportSseMessage, d as DailyReportDetail } from "./sse-schema-byewDmZK.js";
4
4
  import { VirtualScrollLocale, VirtualScrollLabels, VirtualScrollHandle } from "@aiquants/virtualscroll";
5
- import { D as DailyReportActionIntent, a as DailyReportSseStreamAnchor, U as UIComment } from "./comment-adapter-DOUwSlKf.js";
5
+ import { D as DailyReportActionIntent, a as DailyReportSseStreamAnchor, U as UIComment } from "./comment-adapter-CldlCy1v.js";
6
+ import { D as DailyReportSearchFilterFacet } from "./search-filters-wire-5MWi6GWu.js";
7
+ export { a as DAILY_REPORT_SEARCH_FILTER_FACETS } from "./search-filters-wire-5MWi6GWu.js";
6
8
  import { UseReopeningEventSourceResult } from "@aiquants/sse/react";
7
9
  import { ShouldRevalidateFunction } from "react-router";
8
10
  import "zod";
@@ -130,6 +132,10 @@ type DailyReportLabels = VirtualScrollLabels & {
130
132
  readonly searchMatchOutsideView: string;
131
133
  readonly searchMatchOutsideViewDescription: string;
132
134
  readonly searchReadingMarkDescription: string;
135
+ readonly searchFilterSourceType: string;
136
+ readonly searchFiltersLoading: string;
137
+ readonly searchFiltersTooMany: string;
138
+ readonly searchFilterUnavailable: string;
133
139
  readonly totalCount: (count: number) => string;
134
140
  readonly debounce: (milliseconds: number) => string;
135
141
  readonly streamProgressCount: (loaded: number) => string;
@@ -150,6 +156,8 @@ type DailyReportLabels = VirtualScrollLabels & {
150
156
  readonly searchFailed: (failure: DailyReportSearchFailure) => string;
151
157
  readonly searchMatchedKeywords: (matched: number, total: number) => string;
152
158
  readonly searchMatchedKeywordsDescription: (matched: number, total: number) => string;
159
+ readonly searchFiltersToggle: (count: number) => string;
160
+ readonly searchFiltersFailed: (failure: Exclude<DailyReportSearchFailure, "invalid">) => string;
153
161
  };
154
162
  type DailyReportLabelOverrides = {
155
163
  readonly [K in keyof DailyReportLabels]?: DailyReportLabels[K];
@@ -251,6 +259,10 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
251
259
  "searchMatchOutsideView",
252
260
  "searchMatchOutsideViewDescription",
253
261
  "searchReadingMarkDescription",
262
+ "searchFilterSourceType",
263
+ "searchFiltersLoading",
264
+ "searchFiltersTooMany",
265
+ "searchFilterUnavailable",
254
266
  "totalCount",
255
267
  "debounce",
256
268
  "streamProgressCount",
@@ -267,10 +279,25 @@ declare const DAILY_REPORT_LABEL_KEYS: readonly [
267
279
  "searchHitCount",
268
280
  "searchFailed",
269
281
  "searchMatchedKeywords",
270
- "searchMatchedKeywordsDescription"
282
+ "searchMatchedKeywordsDescription",
283
+ "searchFiltersToggle",
284
+ "searchFiltersFailed"
271
285
  ];
272
286
  declare const DAILY_REPORT_LABEL_CATALOGS: Readonly<Record<DailyReportLocale, DailyReportLabels>>;
273
287
  declare const resolveDailyReportLabels: (locale: DailyReportLocale | undefined, overrides: DailyReportLabelOverrides | undefined) => DailyReportLabels;
288
+ type DailyReportSearchFilterOption = {
289
+ readonly value: string;
290
+ readonly label: string;
291
+ };
292
+ type DailyReportSearchFilterSelectProps = {
293
+ readonly facet: DailyReportSearchFilterFacet;
294
+ readonly label: string;
295
+ readonly options: readonly DailyReportSearchFilterOption[];
296
+ readonly value: readonly string[];
297
+ readonly onChange: (values: readonly string[]) => void;
298
+ readonly locale: DailyReportLocale;
299
+ };
300
+ type DailyReportSearchFilterSelectRenderer = (props: DailyReportSearchFilterSelectProps) => ReactNode;
274
301
  type DailyReportHeaderProps = {
275
302
  title: string;
276
303
  annotation?: ReactNode;
@@ -288,9 +315,11 @@ type SourceTypeConfig = {
288
315
  };
289
316
  type DailyReportSearchSetting = {
290
317
  readonly debounceMs: number | null;
318
+ readonly renderFilterSelect: DailyReportSearchFilterSelectRenderer | null;
291
319
  };
292
320
  type DailyReportSearchSettingInput = {
293
321
  readonly debounceMs?: number;
322
+ readonly renderFilterSelect?: DailyReportSearchFilterSelectRenderer;
294
323
  };
295
324
  type DailyReportClientConfig = {
296
325
  apiBasePath: string;
@@ -537,4 +566,4 @@ declare const createDailyReportClientLoader: <TServerData extends Record<string,
537
566
  };
538
567
  declare const LATTICE_BLOCK_QUANTUM_CLASS_NAME = "[--aqdr-lattice-block:4px] [@media(resolution:1.125dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.375dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.625dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:1.875dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.125dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.375dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.625dppx)]:[--aqdr-lattice-block:8px] [@media(resolution:2.875dppx)]:[--aqdr-lattice-block:8px]";
539
568
  declare const DAILY_REPORT_LAYOUT_LATTICE_PX = 4;
540
- export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, LATTICE_BLOCK_QUANTUM_CLASS_NAME as DAILY_REPORT_LATTICE_BLOCK_QUANTUM_CLASS_NAME, DAILY_REPORT_LAYOUT_LATTICE_PX, type ReportBusinessDate as DailyReportActionBusinessDate, type DailyReportActionContextType, type DailyReportActionFunctions, type DailyReportActionLedgers, DailyReportActionProvider, type DailyReportActionState, type DailyReportActions, DailyReportAttachmentIndicator, type DailyReportAttachmentIndicatorProps, type DailyReportClientConfig, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportDetailListProps, type DailyReportDetailListScrollRestore, type DailyReportDetailResource, type DailyReportErrorInfo, DailyReportErrorProvider, type DailyReportHeaderProps, DailyReportIdsStreamClient, type DailyReportIdsStreamClientOptions, type DailyReportIdsStreamItemReplacement, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, type DailyReportLedgerView, DailyReportList, type ListNavigationHandle as DailyReportListNavigationHandle, type DailyReportListProps, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportResolvedContent, type DailyReportResolvedContentProps, type ListScrollToIndexOptions as DailyReportRevealOptions, type DailyReportSearchFailure, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type DailyReportSseConnectionStatus, type ViewTestHandle as DailyReportViewTestHandle, type ViewTestReadHandle as DailyReportViewTestReadHandle, type SourceTypeConfig, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };
569
+ export { DAILY_REPORT_LABEL_CATALOGS, DAILY_REPORT_LABEL_KEYS, LATTICE_BLOCK_QUANTUM_CLASS_NAME as DAILY_REPORT_LATTICE_BLOCK_QUANTUM_CLASS_NAME, DAILY_REPORT_LAYOUT_LATTICE_PX, type ReportBusinessDate as DailyReportActionBusinessDate, type DailyReportActionContextType, type DailyReportActionFunctions, type DailyReportActionLedgers, DailyReportActionProvider, type DailyReportActionState, type DailyReportActions, DailyReportAttachmentIndicator, type DailyReportAttachmentIndicatorProps, type DailyReportClientConfig, type DailyReportClientConfigDefaults, type DailyReportClientConfigInput, DailyReportConfigProvider, DailyReportDetailList, type DailyReportDetailListProps, type DailyReportDetailListScrollRestore, type DailyReportDetailResource, type DailyReportErrorInfo, DailyReportErrorProvider, type DailyReportHeaderProps, DailyReportIdsStreamClient, type DailyReportIdsStreamClientOptions, type DailyReportIdsStreamItemReplacement, type DailyReportIdsStreamItemsChange, type DailyReportIdsStreamPhase, type DailyReportIdsStreamState, DailyReportIdsStreamStatus, type DailyReportLabelOverrides, type DailyReportLabels, type DailyReportLedgerView, DailyReportList, type ListNavigationHandle as DailyReportListNavigationHandle, type DailyReportListProps, type DailyReportLocale, type DailyReportOperation, DailyReportPage, type DailyReportPageProps, DailyReportResolvedContent, type DailyReportResolvedContentProps, type ListScrollToIndexOptions as DailyReportRevealOptions, type DailyReportSearchFailure, DailyReportSearchFilterFacet, type DailyReportSearchFilterOption, type DailyReportSearchFilterSelectProps, type DailyReportSearchFilterSelectRenderer, type DailyReportSearchSetting, type DailyReportSearchSettingInput, type DailyReportSseConnectionStatus, type ViewTestHandle as DailyReportViewTestHandle, type ViewTestReadHandle as DailyReportViewTestReadHandle, type SourceTypeConfig, type UseDailyReportSseConnectionOptions, bootstrapDailyReportIdsStreamSession, createDailyReportClientLoader, dailyReportShouldRevalidate, defaultDailyReportClientConfig, ensureDailyReportIdsStreamSession, primeDailyReportIdsStreamSession, resolveDailyReportLabels, resolveSourceTypeConfig, resyncDailyReportIdsStream, useDailyReportActionContext, useDailyReportComments, useDailyReportConfig, useDailyReportDetail, useDailyReportIdsStream, useDailyReportPrefetch, useDailyReportSseConnection };