react-semaphor 0.1.593 → 0.1.595
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-D05uNAeO.js → assistant-chat-C8VXUHvX.js} +6 -6
- package/dist/chunks/{bookmark-impact-B0k90wq8.js → bookmark-impact-Dh-wiTs3.js} +2 -2
- package/dist/chunks/{card-filter-builder-CiafWE26.js → card-filter-builder-Dmh9R278.js} +351 -362
- package/dist/chunks/{comparison-window-caption-h8w3ySL6.js → comparison-window-caption-DmMFtNP5.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CPh2B3Rf.js → dashboard-briefing-launcher-BFlkwqSg.js} +224 -224
- package/dist/chunks/{dashboard-controls-Cijc9c3G.js → dashboard-controls-C-MFtXUc.js} +8 -8
- package/dist/chunks/{dashboard-json-D3m7h4VL.js → dashboard-json-H8rjI8MK.js} +1 -1
- package/dist/chunks/{dashboard-T-gYKGTF.js → dashboard-wzORuqkj.js} +1 -1
- package/dist/chunks/{dates-Bb0sn54j.js → dates-B-bKEsiu.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-C0iSuX9t.js → edit-dashboard-visual-g78CyvZZ.js} +5170 -5302
- package/dist/chunks/{filter-line-CYT7KIXb.js → filter-line-BpdPq1D2.js} +3 -2
- package/dist/chunks/{filter-reach-copy-CifrEFxj.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-CzM2w1kY.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-GHvai50w.js → report-preferences-dialog-B2CoGxJu.js} +8 -8
- package/dist/chunks/{resolve-dashboard-input-context-BcQHmMlw.js → resolve-dashboard-input-context-DfJshnw8.js} +3621 -3556
- package/dist/chunks/{saved-dashboard-context-BHHEzmwM.js → saved-dashboard-context-DdhPU2Kq.js} +3 -3
- package/dist/chunks/{semaphor-ready-indicator-AOUJrUAJ.js → semaphor-ready-indicator-CLJFaXjd.js} +22645 -22574
- package/dist/chunks/{shelf-drop-preview-context-Cs62lWI1.js → shelf-drop-preview-context-BMUmDkqr.js} +2 -2
- package/dist/chunks/{stored-dashboard-Cmtl_Obh.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-CSK9Ps1o.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/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
|
@@ -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
|