react-semaphor 0.1.592 → 0.1.594
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/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +2 -2
- package/dist/chunks/{assistant-chat-BusR-5uT.js → assistant-chat-1-vtOSvb.js} +6 -6
- package/dist/chunks/{bookmark-impact-DozXJZDS.js → bookmark-impact-Dh-wiTs3.js} +2 -2
- package/dist/chunks/{card-filter-builder-DBTJ74yy.js → card-filter-builder-CLI3IBUQ.js} +351 -362
- package/dist/chunks/{comparison-window-caption-h8w3ySL6.js → comparison-window-caption-DmMFtNP5.js} +1 -1
- package/dist/chunks/{dashboard-CmzJzmph.js → dashboard-a5cAhXh8.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BOQGpYr2.js → dashboard-briefing-launcher-DtImhLiL.js} +224 -224
- package/dist/chunks/{dashboard-controls-BxI3e2_o.js → dashboard-controls-ChS1JL_o.js} +8 -8
- package/dist/chunks/{dashboard-json-BMqXV2Rx.js → dashboard-json-DEmywwom.js} +1 -1
- package/dist/chunks/{dates-DBsscxL_.js → dates-B-bKEsiu.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-Dvc_Pkfg.js → edit-dashboard-visual-CjGPZh0A.js} +5170 -5302
- package/dist/chunks/{filter-line-CYT7KIXb.js → filter-line-BpdPq1D2.js} +3 -2
- package/dist/chunks/{filter-reach-copy-hEzlpBu7.js → filter-reach-copy-DoXmRmk-.js} +4 -4
- package/dist/chunks/{filter-value-text-CHBm4IU7.js → filter-value-text-CDQCIREQ.js} +10 -10
- package/dist/chunks/{index-BoYJqc3F.js → index-C0jX5wlM.js} +2 -2
- package/dist/chunks/{pivot-result-contract-expectations-CaS0y823.js → pivot-result-contract-expectations-Dt0E1Wou.js} +1309 -1312
- package/dist/chunks/{report-preferences-dialog-Cu_f-8Kw.js → report-preferences-dialog-WFosRbzF.js} +8 -8
- package/dist/chunks/{resolve-dashboard-input-context-CkMk1RW6.js → resolve-dashboard-input-context-DfJshnw8.js} +6248 -6192
- package/dist/chunks/{saved-dashboard-context-RgBS_PIj.js → saved-dashboard-context-DdhPU2Kq.js} +3 -3
- package/dist/chunks/{semaphor-ready-indicator-DXpTZJ7R.js → semaphor-ready-indicator-DBGF9cuM.js} +21939 -21871
- package/dist/chunks/{shelf-drop-preview-context-qdlJKaH7.js → shelf-drop-preview-context-v9NfjBVj.js} +2 -2
- package/dist/chunks/{stored-dashboard-Baw6Bp2A.js → stored-dashboard-D6FtWx_3.js} +930 -928
- package/dist/chunks/{table-export-sheet-Cd6z7SsG.js → table-export-sheet-DBlFMvE8.js} +1 -1
- package/dist/chunks/{variable-draft-BxtN6YcG.js → variable-draft-CxdgKDCx.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +1025 -1012
- package/dist/format-utils/index.js +211 -210
- package/dist/index.js +11 -11
- package/dist/surfboard/index.js +1 -1
- package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +3 -1
- package/dist/types/shared/dashboard-authoring/card-formats/detail-date-display.d.ts +43 -1
- package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/semantic-card-domain.d.ts +30 -0
- package/dist/types/shared/dashboard-authoring/temporal-bucket-authoring.d.ts +7 -1
- package/dist/types/shared/format-utils/temporal-bucket-format-policy.d.ts +27 -5
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TCard, TDashboard, TFrame } from '../../lib/types/common-types.js';
|
|
2
|
+
import { SelectedEntities } from '../../lib/types/explorer-types.js';
|
|
3
|
+
/**
|
|
4
|
+
* A semantic card's domain (support 2026-11-09, ReSpark domainless cards).
|
|
5
|
+
*
|
|
6
|
+
* The query path, filter options and See records load a card's domain only
|
|
7
|
+
* from `dataSource.semanticDomainId`. Cards saved through the management API
|
|
8
|
+
* can name their domain only on the selected datasets
|
|
9
|
+
* (`selectedEntities[].domainId`), and copying a dashboard or a card keeps
|
|
10
|
+
* that shape. Such a card runs with no domain: a domain calculated field on
|
|
11
|
+
* it is refused ("No authorized domain catalog") and model formats do not
|
|
12
|
+
* apply.
|
|
13
|
+
*
|
|
14
|
+
* A stored card gets the one domain its datasets name, in memory wherever a
|
|
15
|
+
* stored dashboard or library frame is read and at save, as the legacy table
|
|
16
|
+
* routing does (PM-D16): every runtime sees the filled card at once, and the
|
|
17
|
+
* next save stores it. Nothing is written back on load. A card whose
|
|
18
|
+
* datasets name no domain or several, or whose saved domain is already set,
|
|
19
|
+
* is returned as it is.
|
|
20
|
+
*/
|
|
21
|
+
/** The distinct domains a card's selected datasets name. */
|
|
22
|
+
export declare function semanticDomainIdsOfSelectedEntities(entities: SelectedEntities | undefined): Set<string>;
|
|
23
|
+
/** The one domain the selected datasets name; undefined for none or several. */
|
|
24
|
+
export declare function inferSemanticDomainIdFromSelectedEntities(entities: SelectedEntities | undefined): string | undefined;
|
|
25
|
+
/** The card with its semantic domain filled from its datasets; the same object when nothing changes. */
|
|
26
|
+
export declare function fillSemanticCardDomain(card: TCard): TCard;
|
|
27
|
+
/** Every sheet, frame and document section card. The input object when nothing changes. */
|
|
28
|
+
export declare function fillSemanticCardDomains<T extends Pick<TDashboard, 'sheets'>>(dashboard: T): T;
|
|
29
|
+
/** Each card of a library frame. The input object when nothing changes. */
|
|
30
|
+
export declare function fillFrameSemanticCardDomains<T extends Pick<TFrame, 'cards'>>(frame: T): T;
|
|
@@ -15,5 +15,11 @@ export type TemporalBucketAuthoringSelection = {
|
|
|
15
15
|
export declare function previewTemporalBucketAuthoringFormat(format: TemporalBucketFormat, granularity: SemaphorTimeGrain, preferences?: ResolvedTemporalValueFormatPreferences): string;
|
|
16
16
|
export declare function getTemporalBucketAuthoringOptions(granularity: SemaphorTimeGrain, preservedFormat?: TemporalBucketFormat, preferences?: ResolvedTemporalValueFormatPreferences): readonly TemporalBucketAuthoringOption[];
|
|
17
17
|
export declare function getTemporalBucketAuthoringSelection(format: TemporalBucketFormat, granularity: SemaphorTimeGrain): TemporalBucketAuthoringSelection;
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* A list choice's stored format: a listed pattern or preset, or a preserved
|
|
20
|
+
* preset. A custom pattern is typed through the grouped date panel and read
|
|
21
|
+
* by `customGroupedDateFormat`, which says why a pattern can't be used
|
|
22
|
+
* (grouped date and time display GD-D6); this resolver doesn't take one.
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolveTemporalBucketAuthoringFormat(granularity: SemaphorTimeGrain, value: string): TemporalBucketFormat;
|
|
19
25
|
export declare function reconcileTemporalBucketAuthoringFormat(format: TemporalBucketFormat, granularity: SemaphorTimeGrain): TemporalBucketFormat;
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import { SemaphorTimeGrain, TemporalBucketFormat, TemporalBucketPreset } from '../analytics-protocol/contracts.js';
|
|
2
|
+
/**
|
|
3
|
+
* Semaphor tokens: the pattern letters every surface draws, including the
|
|
4
|
+
* query's own SQL formatting (semaphor-app `date-utils.ts`
|
|
5
|
+
* `CUSTOM_FORMAT_TOKEN_MAP`) and a detail column's `semaphor_tokens` dialect.
|
|
6
|
+
* They never gain 12-hour letters (grouped date and time display GD-INV-2).
|
|
7
|
+
*/
|
|
2
8
|
export declare const TEMPORAL_BUCKET_PATTERN_TOKENS: readonly ["YYYY", "MMMM", "MMM", "YY", "MM", "DD", "HH", "mm", "ss"];
|
|
3
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The 12-hour letters a grouped date adds (GD-D3): `h` and `hh` (padded) for
|
|
11
|
+
* the hour, `a` or `A` for AM or PM. A grouped date with a grain is labeled
|
|
12
|
+
* after the query, by the browser or the scheduler, never in SQL.
|
|
13
|
+
*/
|
|
14
|
+
export declare const TWELVE_HOUR_PATTERN_TOKENS: readonly ["hh", "h", "a", "A"];
|
|
15
|
+
export type SemaphorPatternToken = (typeof TEMPORAL_BUCKET_PATTERN_TOKENS)[number];
|
|
16
|
+
export type TwelveHourPatternToken = (typeof TWELVE_HOUR_PATTERN_TOKENS)[number];
|
|
17
|
+
export type TemporalBucketPatternToken = SemaphorPatternToken | TwelveHourPatternToken;
|
|
18
|
+
/**
|
|
19
|
+
* Which letters a pattern may use: `semaphor_tokens` where the query may
|
|
20
|
+
* format the date (a detail column's Semaphor-token pattern, a grain-less
|
|
21
|
+
* grouped date), `grouped` for a grouped date's label (GD-D3).
|
|
22
|
+
*/
|
|
23
|
+
export type TemporalBucketPatternVocabulary = 'semaphor_tokens' | 'grouped';
|
|
4
24
|
export type TemporalBucketPatternSegment = {
|
|
5
25
|
kind: 'token';
|
|
6
26
|
value: TemporalBucketPatternToken;
|
|
@@ -9,6 +29,7 @@ export type TemporalBucketPatternSegment = {
|
|
|
9
29
|
value: string;
|
|
10
30
|
};
|
|
11
31
|
export type TemporalBucketFormatApplicabilityErrorCode = 'invalid_temporal_bucket_pattern' | 'incompatible_temporal_bucket_pattern' | 'incompatible_temporal_bucket_preset';
|
|
32
|
+
/** A refusal's `message` is the reason in the author's words, shown by the editor and the MCP alike (GD-D6). */
|
|
12
33
|
export type TemporalBucketPatternTokenizationResult = {
|
|
13
34
|
ok: true;
|
|
14
35
|
segments: TemporalBucketPatternSegment[];
|
|
@@ -27,11 +48,12 @@ export type TemporalBucketFormatApplicabilityResult = {
|
|
|
27
48
|
};
|
|
28
49
|
export declare function isTemporalBucketPreset(value: unknown): value is TemporalBucketPreset;
|
|
29
50
|
/**
|
|
30
|
-
* Tokenizes the finite
|
|
31
|
-
* It intentionally performs a deterministic
|
|
32
|
-
* regex replacement or date-library token
|
|
51
|
+
* Tokenizes the finite pattern vocabulary from Plan 04, with the letters the
|
|
52
|
+
* caller's vocabulary allows. It intentionally performs a deterministic
|
|
53
|
+
* left-to-right scan instead of regex replacement or date-library token
|
|
54
|
+
* inference.
|
|
33
55
|
*/
|
|
34
|
-
export declare function tokenizeTemporalBucketPattern(pattern: string): TemporalBucketPatternTokenizationResult;
|
|
56
|
+
export declare function tokenizeTemporalBucketPattern(pattern: string, vocabulary: TemporalBucketPatternVocabulary): TemporalBucketPatternTokenizationResult;
|
|
35
57
|
export declare function validateTemporalBucketFormatApplicability(format: TemporalBucketFormat, granularity: SemaphorTimeGrain): TemporalBucketFormatApplicabilityResult;
|
|
36
58
|
/**
|
|
37
59
|
* Retains authored temporal presentation only when its grain is present and
|