@altertable/data-app 0.79.0 → 0.80.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/REFERENCE.md CHANGED
@@ -320,7 +320,7 @@ createDataHooks().defineView().breakdown: <Key extends DisplayChoiceName<Filters
320
320
  createDataHooks().defineView().dataset: <Row = DatasetRows<Data>, const Columns extends Record<string, object> = Record<string, object>>(definition: BoundDatasetDefinition<Data, FilterInput<Filters>, Row, Columns, Context>): Dataset<OutputOf<Operations[Name]>, FilterInput<FiltersOf<Operations[Name]>>, Row>
321
321
  createDataHooks().defineView().metric: (definition: Parameters<Context['metric']>[0], select: (data: Data, input: FilterInput<Filters>) => HasPeriod<Filters> extends true ? MetricValues : { current: number; previous?: never; }): Metric<OutputOf<Operations[Name]>, FilterInput<FiltersOf<Operations[Name]>>>
322
322
  createDataHooks().defineView().scope: (snapshot: DisplayedSnapshot<Data, FilterInput<Filters>>): string
323
- createDataHooks().defineView().content: (render: (state: DataContentState<Data, FilterInput<Filters>>) => ReactNode): ViewContent<OutputOf<Operations[Name]>, FilterInput<FiltersOf<Operations[Name]>>>
323
+ createDataHooks().defineView().content: (render: (state: DataContentState<Data, FilterInput<Filters>>) => ReactNode, options?: WidgetContentOptions): ViewContent<OutputOf<Operations[Name]>, FilterInput<FiltersOf<Operations[Name]>>> — Options are optional. For a read-only `?_widget=<id>` link, declare content at module scope with a stable `id`. Use `waitForReady` for custom asynchronous drawing.
324
324
  createDataHooks().defineDetailView: <Name extends keyof Operations & string, const Context extends AuthoringDataContext = AuthoringDataContext>(definition: DetailViewDefinition<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> & { operation: Name; dataContext: Context; }): BoundDetailView<OutputOf<Operations[Name]>, InputOf<Oper…
325
325
  createDataHooks().defineDetailView.definition.id: string
326
326
  createDataHooks().defineDetailView.definition.title: ReactNode
@@ -622,7 +622,7 @@ dateTimeRangePresets.analytics: readonly DateTimeRangePreset[]
622
622
  DateTimeRangeSelection (type, @altertable/data-app/contract, @altertable/data-app-react/ui): The picker's URL state: the selected range, relative or absolute, and the comparison toggle.
623
623
  DateTimeRangeSelection.range: DateTimeRange
624
624
  DateTimeRangeSelection.comparison?: 'previous'
625
- dateTimeRangeSql (function, @altertable/data-app/contract): (range: DateTimeRange, parameter: string): { from: string; to: string; params: Record<string, string>; } — DuckDB timestamp expressions using the query session's timezone for relative anchors. Absolute fields remain UTC-rebased TIMESTAMP values. Start is inclusive, end exclusive.
625
+ dateTimeRangeSql (function, @altertable/data-app/contract): (range: DateTimeRange, parameter?: string): { from: string; to: string; params: Record<string, string>; } — DuckDB timestamp expressions using the query session's timezone for relative anchors. Absolute fields remain UTC-rebased TIMESTAMP values. Start is inclusive, end exclusive.
626
626
  dateTimeRangeSql.range.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
627
627
  dateTimeRangeSql.range.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
628
628
  DateTimeTooltip (component, @altertable/data-app-react): (props: DateTimeTooltipProps) — Exact-time disclosure uses the same reporting zone and locale as other date displays.
@@ -706,7 +706,7 @@ DimensionFilter.urlKeys: readonly string[]
706
706
  DimensionFilter.defaultValue: DimensionSelection<T>
707
707
  DimensionFilter.clearValue?: DimensionSelection<T> — Unrestricted value, when this filter can be cleared.
708
708
  DimensionFilter.describe: (value: Value): string
709
- DimensionFilter.describe: (selection: DimensionSelection<T>, options: readonly DimensionOption<T>[]): string
709
+ DimensionFilter.describe: (selection: DimensionSelection<T>, options?: readonly DimensionOption<T>[]): string
710
710
  DimensionFilter.history: HistoryMode
711
711
  DimensionFilter.read: (params: URLSearchParams) => DimensionSelection<T>
712
712
  DimensionFilter.write: (value: DimensionSelection<T>) => Record<string, string | null>
@@ -806,7 +806,7 @@ FacetFilter.urlKeys: readonly string[]
806
806
  FacetFilter.defaultValue: DimensionSelection<Value>
807
807
  FacetFilter.clearValue?: DimensionSelection<Value> — Unrestricted value, when this filter can be cleared.
808
808
  FacetFilter.describe: (value: Value): string
809
- FacetFilter.describe: (selection: DimensionSelection<T>, options: readonly DimensionOption<T>[]): string
809
+ FacetFilter.describe: (selection: DimensionSelection<T>, options?: readonly DimensionOption<T>[]): string
810
810
  FacetFilter.history: HistoryMode
811
811
  FacetFilter.read: (params: URLSearchParams) => DimensionSelection<Value>
812
812
  FacetFilter.write: (value: DimensionSelection<Value>) => Record<string, string | null>
@@ -838,24 +838,24 @@ FilterPresentation (type, @altertable/data-app/contract): Where a filter's or di
838
838
  FilterPresentation.control?: 'toolbar' | 'widget' — Widget controls render beside their visualization instead of in the toolbar. Scope filters remain available in the Filters sheet and active summaries.
839
839
  FilterPresentation.prominence?: 'primary' | 'secondary' — Secondary scope controls live in the Filters sheet with compact pickers when active; secondary display options follow primary options. Defaults to primary.
840
840
  FilterValues (type, @altertable/data-app/contract): <Collection> = { [Key in keyof Collection]: Collection[Key] extends DimensionSelectionFilter<infer Value extends DimensionValue> ? DimensionSelection<...> : ...; }
841
- formatCount (function, @altertable/data-app/format): (value: number | null | undefined, options: CommonOptions & { compact?: boolean; }): string — Negative and fractional counts render as missing. Compact notation is opt-in.
841
+ formatCount (function, @altertable/data-app/format): (value: number | null | undefined, options?: CommonOptions & { compact?: boolean; }): string — Negative and fractional counts render as missing. Compact notation is opt-in.
842
842
  formatCount.options.locale?: string
843
843
  formatCount.options.missing?: string
844
844
  formatCount.options.compact?: boolean
845
- formatDate (function, @altertable/data-app/format): (value: string | null | undefined, options: DateFormatOptions): string — Format an ISO calendar date as a date, never as a browser-local instant.
845
+ formatDate (function, @altertable/data-app/format): (value: string | null | undefined, options?: DateFormatOptions): string — Format an ISO calendar date as a date, never as a browser-local instant.
846
846
  formatDate.options.locale?: string
847
847
  formatDate.options.missing?: string
848
- formatDateRange (function, @altertable/data-app/format): (options: {…}, options: DateFormatOptions): string — Compact, unambiguous calendar dates for labels and request status.
848
+ formatDateRange (function, @altertable/data-app/format): (options: {…}, options?: DateFormatOptions): string — Compact, unambiguous calendar dates for labels and request status.
849
849
  formatDateRange.options.start: string
850
850
  formatDateRange.options.end: string
851
851
  formatDateRange.options.locale?: string
852
852
  formatDateRange.options.missing?: string
853
- formatDateTime (function, @altertable/data-app/format): (value: DateTimeValue, options: DateTimeFormatOptions): string — Format an instant in an explicit reporting zone. Defaults use UTC and 24-hour minutes.
853
+ formatDateTime (function, @altertable/data-app/format): (value: DateTimeValue, options?: DateTimeFormatOptions): string — Format an instant in an explicit reporting zone. Defaults use UTC and 24-hour minutes.
854
854
  formatDateTime.options.locale?: string
855
855
  formatDateTime.options.missing?: string
856
856
  formatDateTime.options.timeZone?: string
857
857
  formatDateTime.options.precision?: 'minute' | 'second'
858
- formatDateTimeBound (function, @altertable/data-app/contract): (value: AbsoluteOrRelativeDateTime | null | undefined, fallback: string): string
858
+ formatDateTimeBound (function, @altertable/data-app/contract): (value: AbsoluteOrRelativeDateTime | null | undefined, fallback?: string): string
859
859
  formatDateTimeBound.value.anchor: RelativeAnchor [variant 2 of 2]
860
860
  formatDateTimeBound.value.offset: RelativeOffset[] [variant 2 of 2]
861
861
  formatDateTimeBound.value.…: plus props inherited from built-in
@@ -870,15 +870,15 @@ formatMetric.format.kind: 'ratio' [variant 2 of 3]
870
870
  formatMetric.format.maximumFractionDigits?: number [variant 2 of 3]
871
871
  formatMetric.format.kind: 'currency' [variant 3 of 3]
872
872
  formatMetric.format.currency: string [variant 3 of 3]
873
- formatNumber (function, @altertable/data-app/format): (value: number | null | undefined, options: CommonOptions & Intl.NumberFormatOptions): string — Missing and non-finite values use the `missing` label; negative zero renders as zero.
873
+ formatNumber (function, @altertable/data-app/format): (value: number | null | undefined, options?: CommonOptions & Intl.NumberFormatOptions): string — Missing and non-finite values use the `missing` label; negative zero renders as zero.
874
874
  formatNumber.options.locale?: string
875
875
  formatNumber.options.missing?: string
876
876
  formatNumber.options.…: plus props inherited from built-in
877
- formatPercent (function, @altertable/data-app/format): (ratio: number | null | undefined, options: CommonOptions & { maximumFractionDigits?: number; }): string — Accepts a ratio (0.116), not a percentage (11.6).
877
+ formatPercent (function, @altertable/data-app/format): (ratio: number | null | undefined, options?: CommonOptions & { maximumFractionDigits?: number; }): string — Accepts a ratio (0.116), not a percentage (11.6).
878
878
  formatPercent.options.locale?: string
879
879
  formatPercent.options.missing?: string
880
880
  formatPercent.options.maximumFractionDigits?: number
881
- formatTime (function, @altertable/data-app/format): (value: DateTimeValue, options: DateTimeFormatOptions): string — Format an instant's time for intraday chart axes using the same zone and precision policy.
881
+ formatTime (function, @altertable/data-app/format): (value: DateTimeValue, options?: DateTimeFormatOptions): string — Format an instant's time for intraday chart axes using the same zone and precision policy.
882
882
  formatTime.options.locale?: string
883
883
  formatTime.options.missing?: string
884
884
  formatTime.options.timeZone?: string
@@ -963,7 +963,7 @@ IconButton.tooltipAlign?: 'center' | 'end' | 'start'
963
963
  IconButton.children?: ReactNode
964
964
  IconButton.…: plus props inherited from React
965
965
  IconButtonProps (type, @altertable/data-app-react): = props listed as IconButton.*
966
- injectDataAppStyles (function, @altertable/data-app-react, @altertable/data-app-react/ui): (options: DataAppStylesOptions): HTMLStyleElement — Install the complete UI stylesheet once per document, before mounting.
966
+ injectDataAppStyles (function, @altertable/data-app-react, @altertable/data-app-react/ui): (options?: DataAppStylesOptions): HTMLStyleElement — Install the complete UI stylesheet once per document, before mounting.
967
967
  injectDataAppStyles.options.document?: Document — Defaults to the current browser document.
968
968
  injectDataAppStyles.options.nonce?: string — Nonce permitted by the document's style-src CSP.
969
969
  InputOf (type, @altertable/data-app/client): <T> = T extends { input: (value: unknown) => infer Input; } ? Input : never
@@ -973,7 +973,7 @@ InputOperationDefinition.input: (value: unknown) => Input — Parses the operati
973
973
  InputOperationDefinition.checks: readonly [Input, ...Input[]] — Representative valid own inputs; each must pass `input`.
974
974
  InputOperationDefinition.policy: OperationPolicy
975
975
  InputOperationDefinition.run: OperationRun<WithFilterInput<Filters, Input>, Output, Queries>
976
- isPlainKeyEvent (function, @altertable/data-app-react/ui): (event: KeyEvent, options: {…}): boolean — Keep local key actions separate from shortcuts and IME composition. Pass React's nativeEvent.
976
+ isPlainKeyEvent (function, @altertable/data-app-react/ui): (event: KeyEvent, options?: {…}): boolean — Keep local key actions separate from shortcuts and IME composition. Pass React's nativeEvent.
977
977
  isPlainKeyEvent.event.…: plus props inherited from built-in
978
978
  isPlainKeyEvent.options.allowShift?: boolean
979
979
  ItemActions (type, @altertable/data-app-react/ui): <Row> = (row: Row) => readonly ExplorationAction[] — Resolves the actions available for a displayed domain row.
@@ -1160,9 +1160,9 @@ parseBooleanSelection.filter.same: (left: BooleanSelection, right: BooleanSelect
1160
1160
  parseCount (function, @altertable/data-app/contract): (value: unknown): number — Accepts numeric strings from DuckDB; rejects negative, fractional, and unsafe integers.
1161
1161
  parseDateTime (function, @altertable/data-app/format): (value: DateTimeValue): Date | null — Parse only unambiguous instants. String values must include `Z` or an explicit offset.
1162
1162
  parseDateTimeBound (function, @altertable/data-app/contract): (text: string): AbsoluteOrRelativeDateTime | null — Parse one bound without resolving relative anchors or offsets.
1163
- parseDateTimeRange (function, @altertable/data-app/contract): (value: unknown, options: {…}): DateTimeRange — Validate and restore UTC-rebased dates from JSON, without resolving relative bounds.
1163
+ parseDateTimeRange (function, @altertable/data-app/contract): (value: unknown, options?: {…}): DateTimeRange — Validate and restore UTC-rebased dates from JSON, without resolving relative bounds.
1164
1164
  parseDateTimeRange.options.maxRangeDays?: number
1165
- parseDateTimeRangeInput (function, @altertable/data-app/format): (input: string, options: DateTimeRangeParserOptions): ParseDateTimeRangeResult
1165
+ parseDateTimeRangeInput (function, @altertable/data-app/format): (input: string, options?: DateTimeRangeParserOptions): ParseDateTimeRangeResult
1166
1166
  parseDateTimeRangeInput.options.now?: Date — UTC-encoded reference fields for omitted dates/years. Defaults to the current UTC date/time.
1167
1167
  ParseDateTimeRangeResult (type, @altertable/data-app/format)
1168
1168
  ParseDateTimeRangeResult.ok: true [variant 1 of 2]
@@ -1179,7 +1179,7 @@ parseDimensionSelection.filter.urlKeys: readonly string[]
1179
1179
  parseDimensionSelection.filter.defaultValue: DimensionSelection<T>
1180
1180
  parseDimensionSelection.filter.clearValue?: DimensionSelection<T> — Unrestricted value, when this filter can be cleared.
1181
1181
  parseDimensionSelection.filter.describe: (value: Value): string
1182
- parseDimensionSelection.filter.describe: (selection: DimensionSelection<T>, options: readonly DimensionOption<T>[]): string
1182
+ parseDimensionSelection.filter.describe: (selection: DimensionSelection<T>, options?: readonly DimensionOption<T>[]): string
1183
1183
  parseDimensionSelection.filter.history: HistoryMode
1184
1184
  parseDimensionSelection.filter.read: (params: URLSearchParams) => DimensionSelection<T>
1185
1185
  parseDimensionSelection.filter.write: (value: DimensionSelection<T>) => Record<string, string | null>
@@ -1200,7 +1200,7 @@ parseFacetOptions.filter.urlKeys: readonly string[]
1200
1200
  parseFacetOptions.filter.defaultValue: DimensionSelection<T>
1201
1201
  parseFacetOptions.filter.clearValue?: DimensionSelection<T> — Unrestricted value, when this filter can be cleared.
1202
1202
  parseFacetOptions.filter.describe: (value: Value): string
1203
- parseFacetOptions.filter.describe: (selection: DimensionSelection<T>, options: readonly DimensionOption<T>[]): string
1203
+ parseFacetOptions.filter.describe: (selection: DimensionSelection<T>, options?: readonly DimensionOption<T>[]): string
1204
1204
  parseFacetOptions.filter.history: HistoryMode
1205
1205
  parseFacetOptions.filter.read: (params: URLSearchParams) => DimensionSelection<T>
1206
1206
  parseFacetOptions.filter.write: (value: DimensionSelection<T>) => Record<string, string | null>
@@ -1213,7 +1213,7 @@ parseFacetOptions.filter.allowMissing: boolean
1213
1213
  parseFacetOptions.filter.allowExclusion: boolean
1214
1214
  parseFacetOptions.filter.maxSelected: number
1215
1215
  parseFacetOptions.filter.options: readonly DimensionOption<T>[]
1216
- parseLabel (function, @altertable/data-app/contract): (value: unknown, maxLength: number): string
1216
+ parseLabel (function, @altertable/data-app/contract): (value: unknown, maxLength?: number): string
1217
1217
  parseNumberSelection (function, @altertable/data-app/contract): (value: unknown, filter: NumberFilter): NumberSelection
1218
1218
  parseNumberSelection.filter.kind: 'numberFilter'
1219
1219
  parseNumberSelection.filter.label: string
@@ -1251,8 +1251,8 @@ PieChartItem.id: string
1251
1251
  PieChartItem.label: string
1252
1252
  PieChartItem.value: number
1253
1253
  PieChartProps (type, @altertable/data-app-react/ui): <Row> = props listed as PieChart.*
1254
- pluralize (function, @altertable/data-app/format): (count: number, singular: string, plural: string): string
1255
- PresentStory (component, @altertable/data-app-react/ui): (props: PresentStoryProps) — Uses an already loaded snapshot. Navigation is stored in `?present=1&step=`, and step inspection uses `?about=`. The presentation owns its modal structure.
1254
+ pluralize (function, @altertable/data-app/format): (count: number, singular: string, plural?: string): string
1255
+ PresentStory (component, @altertable/data-app-react/ui): (props: PresentStoryProps) — Uses an already loaded snapshot. Navigation is stored in `?_present=1&_step=`, and step inspection uses `?_about=`. The presentation owns its modal structure.
1256
1256
  PresentStory.title: string
1257
1257
  PresentStory.findings: readonly StoryFinding[]
1258
1258
  PresentStory.empty?: AboutEmpty
@@ -1261,10 +1261,10 @@ PresentStory.dataContext: DataContext
1261
1261
  PresentStory.theme?: ThemeController
1262
1262
  PresentStory.headerActions?: ReactNode
1263
1263
  PresentStory.footer?: ReactNode
1264
- PresentStory.trigger?: boolean — False renders only the presentation, which `?present=1&step=` opens.
1264
+ PresentStory.trigger?: boolean — False renders only the presentation, which `?_present=1&_step=` opens.
1265
1265
  PresentStory.…: plus props inherited from React
1266
1266
  PresentStoryProps (type, @altertable/data-app-react/ui): = props listed as PresentStory.*
1267
- queryDateTimeRangeParams (function, @altertable/data-app/contract): <const Prefix extends string>(filter: Pick<DateTimeRangeFilter, 'request'>, input: DateTimeRangeInput, prefix: Prefix, now: Date): { current: Record<`${Prefix}_from` | `${Prefix}_to`, string>; comparison: Record<`${Prefix}_from` | `${Prefix}_to`, string> | null; combined: Record<`${Prefix}_from` |… — Bind one date selection immediately before dispatching a query. Both periods share one clock.
1267
+ queryDateTimeRangeParams (function, @altertable/data-app/contract): <const Prefix extends string>(filter: Pick<DateTimeRangeFilter, 'request'>, input: DateTimeRangeInput, prefix: Prefix, now?: Date): { current: Record<`${Prefix}_from` | `${Prefix}_to`, string>; comparison: Record<`${Prefix}_from` | `${Prefix}_to`, string> | null; combined: Record<`${Prefix}_from` |… — Bind one date selection immediately before dispatching a query. Both periods share one clock.
1268
1268
  queryDateTimeRangeParams.filter.request: (selection: DateTimeRangeSelection, now?: Date | undefined) => DateTimeRangeRequest — Resolve a selection against one reference time.
1269
1269
  queryDateTimeRangeParams.input.range: ResolvedDateTimeRange
1270
1270
  queryDateTimeRangeParams.input.comparison: ResolvedDateTimeRange | null
@@ -1338,7 +1338,7 @@ ReportingPeriod.end: string
1338
1338
  ReportingPeriod.kind: 'calendar' [variant 2 of 2]
1339
1339
  ReportingPeriod.start: string [variant 2 of 2]
1340
1340
  ReportingPeriod.timeZone: string [variant 2 of 2]
1341
- resolveDateTimeRange (function, @altertable/data-app/contract): (value: DateTimeRange, now: Date): { from: Date | null; to: Date; } — UTC preview only. Backend execution owns reporting-timezone interpretation. Null start is unbounded; null end is now.
1341
+ resolveDateTimeRange (function, @altertable/data-app/contract): (value: DateTimeRange, now?: Date): { from: Date | null; to: Date; } — UTC preview only. Backend execution owns reporting-timezone interpretation. Null start is unbounded; null end is now.
1342
1342
  resolveDateTimeRange.value.from?: AbsoluteOrRelativeDateTime | null — Inclusive start; null or omitted means unbounded.
1343
1343
  resolveDateTimeRange.value.to?: AbsoluteOrRelativeDateTime | null — Exclusive end; null or omitted means now.
1344
1344
  resolveDateTimeRange.now.…: plus props inherited from built-in
@@ -1631,12 +1631,12 @@ UpdatedAt.timeZone?: string
1631
1631
  UpdatedAtProps (type, @altertable/data-app-react): = props listed as UpdatedAt.*
1632
1632
  useAppFilters (hook, @altertable/data-app-react/ui): <const Collection extends FilterCollection>(definitions: Collection): { values: FilterValues<Collection>; calendarRevision: number; set: <Key extends keyof Collection & string>(name: Key, value: FilterValues<Collection>[Key]) => void; ... 4 more ...; bind: <Key extends keyof Collection & string>(na… — URL is the source of truth for app filters; one update can change dependent values atomically.
1633
1633
  useChartCursorGroup (hook, @altertable/data-app-react/ui): (): ChartCursorGroup — Creates a stable shared mouse-hover cursor handle. Pass it explicitly to each participating chart's cursorGroup prop. Peers indicate exact timestamp matches while tooltips remain local.
1634
- useDateFormatting (hook, @altertable/data-app-react, @altertable/data-app-react/ui): (options: {…}): { locale: string; timeZone: string; } — Resolve date display defaults for custom charts and narrative. Explicit options override the view and app.
1634
+ useDateFormatting (hook, @altertable/data-app-react, @altertable/data-app-react/ui): (options?: {…}): { locale: string; timeZone: string; } — Resolve date display defaults for custom charts and narrative. Explicit options override the view and app.
1635
1635
  useDateFormatting.options.locale?: string
1636
1636
  useDateFormatting.options.timeZone?: string
1637
1637
  useDetailNavigation (hook, @altertable/data-app-react): (): DetailNavigation — Resolve a detail target from an interaction. The destination validates input before fetching.
1638
1638
  useSvgId (hook, @altertable/data-app-react/ui): (): string — Stable React ID for SVG definitions and their URL references; safe with identifier prefixes.
1639
- useViewTab (hook, @altertable/data-app-react/ui): <View extends string>(views: readonly View[], fallback: View): [View, (key: string | number) => void] — Keep a page-level tab in `?view=`; reserve `?tab=` for the inspect sheet.
1639
+ useViewTab (hook, @altertable/data-app-react/ui): <View extends string>(views: readonly View[], fallback: View): [View, (key: string | number) => void] — Keep a page-level tab in `?_view=`; reserve `?_tab=` for the inspect sheet.
1640
1640
  ViewSource (type, @altertable/data-app-react): <Data, Input> — A view's displayed data and input, or its loading state; widgets and bindings read it.
1641
1641
  ViewSource.loading: true [variant 1 of 2]
1642
1642
  ViewSource.loading?: false [variant 2 of 2]
@@ -1,4 +1,4 @@
1
- import { a as resolveDateTimeRange, c as parseDateTimeRangeInput, i as parseDateTimeRange, l as invariant, n as formatDateTimeRange, o as serializeDateTimeRange, s as fixedUnitMilliseconds } from "./date-time-range-value-D-XfqVTT.js";
1
+ import { a as resolveDateTimeRange, c as fixedUnitMilliseconds, i as parseDateTimeRange, l as invariant, n as formatDateTimeRange, o as serializeDateTimeRange, s as parseDateTimeRangeInput } from "./date-time-range-value-DA8GWV_U.js";
2
2
  import { t as isRecord } from "./record-Cr4Uk1K3.js";
3
3
  import { fromDate, parseDate, toCalendarDateTime, today } from "@internationalized/date";
4
4
  //#region src/core/keys.ts
@@ -408,6 +408,18 @@ function withDimensionSelectors(operations) {
408
408
  return expanded;
409
409
  }
410
410
  //#endregion
411
+ //#region src/core/app-url-keys.ts
412
+ const appUrlKeys = {
413
+ view: "_view",
414
+ about: "_about",
415
+ tab: "_tab",
416
+ present: "_present",
417
+ step: "_step",
418
+ details: "_details",
419
+ widget: "_widget",
420
+ theme: "_theme"
421
+ };
422
+ //#endregion
411
423
  //#region src/core/app-filters.ts
412
424
  /** Name filters once in the app. URL keys must be unique across its controls. */
413
425
  function defineAppFilters(filters) {
@@ -416,14 +428,7 @@ function defineAppFilters(filters) {
416
428
  const presentation = filter.presentation;
417
429
  invariant(presentation === void 0 || isRecord(presentation) && (presentation.control === void 0 || presentation.control === "toolbar" || presentation.control === "widget") && (presentation.group === void 0 || presentation.group === "scope" || presentation.group === "display") && (presentation.prominence === void 0 || presentation.prominence === "primary" || presentation.prominence === "secondary"), `Filter ${name} has invalid presentation.`);
418
430
  for (const key of filter.urlKeys) {
419
- invariant(![
420
- "view",
421
- "about",
422
- "tab",
423
- "present",
424
- "step",
425
- "details"
426
- ].includes(key), `Filter ${name} uses reserved URL key: ${key}.`);
431
+ invariant(!key.startsWith("_"), `Filter ${name} uses reserved URL key “${key}”. URL keys starting with “_” are reserved for the runtime; choose a key without the “_” prefix.`);
427
432
  invariant(!!key && !owners.has(key), `Filter ${name} has an empty or duplicate URL key: ${key}.`);
428
433
  owners.set(key, name);
429
434
  }
@@ -1584,6 +1589,6 @@ var DataSourceError = class extends Error {
1584
1589
  }
1585
1590
  };
1586
1591
  //#endregion
1587
- export { snapshotQueries as $, resolvedDateTimeRangeParams as A, resolveFilterInput as B, parseCount as C, dateTimeRangePresets as D, dateTimeRangeFilter as E, numberOperatorLabels as F, searchFilter as G, defineAppFilters as H, parseBooleanSelection as I, bindDimensionSource as J, validateChoiceOptions as K, parseNumberSelection as L, facetSource as M, booleanFilter as N, queryDateTimeRangeParams as O, numberFilter as P, REGISTERED_QUERY_ID_PATTERN as Q, combineOperationFilters as R, defineQueryNames as S, parseTrue as T, displayChoice as U, choiceFilter as V, multiChoiceFilter as W, withDimensionSelectors as X, dimensionSource as Y, MAX_QUERY_ROWS as Z, navigationUpdateRoute as _, annotationDraftRoute as a, parseDimensionSelection as at, connectionCheck as b, annotationSendRoute as c, parseDataAppAnnotationDraft as d, unsupportedParameterReference as et, MessageRoutingError as f, defineMessageRoute as g, defineDataOperationRoute as h, resolveExternalLinkTarget as i, dimensionPredicate as it, facetFilter as j, dateTimeRangeSql as k, annotationUpdateRoute as l, dataAppRoutes as m, openExternalLinkRoute as n, dimensionFilter as nt, annotationEditorStateRoute as o, parseFacetOptions as ot, createMessageRouter as p, DimensionMembershipError as q, parseExternalUrl as r, dimensionMemberKey as rt, annotationModeRoute as s, KEY_SEPARATOR as st, DataSourceError as t, createDimensionFilter as tt, isAnnotationPresentation as u, registeredQueryRoute as v, parseLabel as w, defineOperation as x, validLocation as y, dateFilterName as z };
1592
+ export { REGISTERED_QUERY_ID_PATTERN as $, resolvedDateTimeRangeParams as A, resolveFilterInput as B, parseCount as C, dateTimeRangePresets as D, dateTimeRangeFilter as E, numberOperatorLabels as F, searchFilter as G, defineAppFilters as H, parseBooleanSelection as I, DimensionMembershipError as J, validateChoiceOptions as K, parseNumberSelection as L, facetSource as M, booleanFilter as N, queryDateTimeRangeParams as O, numberFilter as P, MAX_QUERY_ROWS as Q, combineOperationFilters as R, defineQueryNames as S, parseTrue as T, displayChoice as U, choiceFilter as V, multiChoiceFilter as W, dimensionSource as X, bindDimensionSource as Y, withDimensionSelectors as Z, navigationUpdateRoute as _, annotationDraftRoute as a, dimensionPredicate as at, connectionCheck as b, annotationSendRoute as c, KEY_SEPARATOR as ct, parseDataAppAnnotationDraft as d, snapshotQueries as et, MessageRoutingError as f, defineMessageRoute as g, defineDataOperationRoute as h, resolveExternalLinkTarget as i, dimensionMemberKey as it, facetFilter as j, dateTimeRangeSql as k, annotationUpdateRoute as l, dataAppRoutes as m, openExternalLinkRoute as n, createDimensionFilter as nt, annotationEditorStateRoute as o, parseDimensionSelection as ot, createMessageRouter as p, appUrlKeys as q, parseExternalUrl as r, dimensionFilter as rt, annotationModeRoute as s, parseFacetOptions as st, DataSourceError as t, unsupportedParameterReference as tt, isAnnotationPresentation as u, registeredQueryRoute as v, parseLabel as w, defineOperation as x, validLocation as y, dateFilterName as z };
1588
1593
 
1589
- //# sourceMappingURL=contract-BTG-BUwW.js.map
1594
+ //# sourceMappingURL=contract-CNG8X16X.js.map