react-semaphor 0.1.544 → 0.1.545
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/analytics-protocol/index.js +35 -34
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +2 -2
- package/dist/briefings/index.js +50 -47
- package/dist/chunks/{class-utils-Df1OVOT1.js → _commonjsHelpers-DimLPMtv.js} +124 -98
- package/dist/chunks/{apply-dashboard-operations-Bz4n1Lq6.js → apply-dashboard-operations-CZEMsx8E.js} +778 -958
- package/dist/chunks/{assistant-chat-BNLkCDml.js → assistant-chat-D7sWTypJ.js} +308 -309
- package/dist/chunks/calendar-day-equality-dvoQp1xW.js +410 -0
- package/dist/chunks/{comparison-window-caption-BTkrN3W4.js → comparison-window-caption-D4E6IHPD.js} +56 -55
- package/dist/chunks/{custom-visual-inputs-DUtpYZOk.js → custom-visual-inputs-DLCD9Y5V.js} +8 -2
- package/dist/chunks/{dashboard-g5a4DKWq.js → dashboard-B1tMju0u.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DQ_8O_e2.js → dashboard-briefing-launcher-CePgIu0Z.js} +771 -776
- package/dist/chunks/{dashboard-controls-8RyBTQUO.js → dashboard-controls-Cq05n3e0.js} +28 -28
- package/dist/chunks/{dashboard-json-7qT9jmfL.js → dashboard-json-CoYRPqxx.js} +3 -3
- package/dist/chunks/document-dashboard-inputs-BesAHZvB.js +3112 -0
- package/dist/chunks/{edit-dashboard-visual-BfJwnRIZ.js → edit-dashboard-visual-JPtNfJRb.js} +5624 -5615
- package/dist/chunks/{filter-value-text-CYsVYPuD.js → filter-value-text-ff7osJr7.js} +1 -1
- package/dist/chunks/{index-DkAyQvC6.js → index-DRWiuqyd.js} +378 -333
- package/dist/chunks/{matrix-formatter-CxJLkztA.js → matrix-formatter-DnCyRXJE.js} +13 -13
- package/dist/chunks/{numeric-presentation-DESvLiu9.js → numeric-presentation-7X_IrD58.js} +2571 -2572
- package/dist/chunks/{raw-temporal-presentation-CLiVi90c.js → raw-temporal-presentation-C3mUgnEx.js} +1 -1
- package/dist/chunks/{zoned-wall-clock-MulfA26h.js → relative-date-label-Bk2j94pA.js} +21 -64
- package/dist/chunks/rendered-file-D8xEuVVx.js +108 -0
- package/dist/chunks/{report-preferences-dialog-Df7VpRVW.js → report-preferences-dialog-DUtuUL_5.js} +631 -603
- package/dist/chunks/resolve-dashboard-input-context-DJ2tICwz.js +9415 -0
- package/dist/chunks/{saved-dashboard-context-B-mQ--nV.js → saved-dashboard-context-LrF_kW0l.js} +183 -211
- package/dist/chunks/selection-filter-compiler-BKXmyLrS.js +79 -0
- package/dist/chunks/{semaphor-ready-indicator-DDAxk8us.js → semaphor-ready-indicator-BxF96Yhv.js} +45764 -46519
- package/dist/chunks/{shelf-drop-preview-context-BSRPwaED.js → shelf-drop-preview-context-CNaM_Gmh.js} +885 -866
- package/dist/chunks/{switch-C3jLxlG0.js → switch-uDtPgQlQ.js} +44 -45
- package/dist/chunks/{table-export-sheet-CPfGAQ9X.js → table-export-sheet-YzMioA7Y.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BxzFviM-.js → use-create-flow-overlay-state-CjB7ig1o.js} +105 -105
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +556 -544
- package/dist/data-app-sdk/index.js +1 -1
- package/dist/format-utils/index.js +163 -152
- package/dist/index.js +351 -323
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/briefings/attachments.d.ts +33 -6
- package/dist/types/briefings/index.d.ts +6 -5
- package/dist/types/components/surfboard/filter/types.d.ts +0 -14
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +68 -82
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +0 -8
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +35 -1
- package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +199 -0
- package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +7 -2
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +1 -1
- package/dist/types/lib/dashboard-viewer/captured-runtime-values.d.ts +40 -0
- package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +16 -16
- package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +11 -9
- package/dist/types/lib/download-pdf.d.ts +75 -1
- package/dist/types/lib/hooks/use-date-filter.d.ts +5 -0
- package/dist/types/lib/hooks/use-text-filter.d.ts +5 -0
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +5 -4
- package/dist/types/lib/query-context/assemble-card-query.d.ts +158 -0
- package/dist/types/lib/query-context/build-card-query-context.d.ts +3 -3
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +15 -6
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +11 -13
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +22 -12
- package/dist/types/lib/stores/dashboard-store.d.ts +39 -55
- package/dist/types/lib/stores/editor-store.d.ts +0 -3
- package/dist/types/lib/types/common-types.d.ts +21 -6
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +4 -11
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +12 -12
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +92 -0
- package/dist/types/shared/dashboard-authoring/filter-model/ad-hoc-filter-values.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +29 -0
- package/dist/types/shared/dashboard-authoring/filter-model/filter-values.d.ts +58 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/filter-model/prototype-document-inputs.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/filter-model/read-dashboard-filter-model.d.ts +78 -0
- package/dist/types/shared/dashboard-authoring/filter-model/stored-dashboard.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/filter-model/toolbar-filter-reach.d.ts +23 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +2 -0
- package/dist/types/shared/format-utils/exporters/index.d.ts +2 -0
- package/dist/types/shared/format-utils/exporters/rendered-file.d.ts +106 -0
- package/package.json +2 -2
- package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/chunks/calendar-day-equality-BmJAWduY.js +0 -460
- package/dist/chunks/document-dashboard-inputs-BC6p-ESg.js +0 -8087
- package/dist/chunks/document-sheet-utils-Duo9uLoH.js +0 -3619
- package/dist/chunks/sort-target-MT1WK1vX.js +0 -29
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +0 -88
- package/dist/types/lib/dashboard-inputs/dashboard-input-scope.d.ts +0 -10
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { r as d } from "./metric-comparison-DEwi9uc2.js";
|
|
2
|
-
function s(n, i) {
|
|
3
|
-
return d({ ...n, role: i });
|
|
4
|
-
}
|
|
5
|
-
function m(n, i) {
|
|
6
|
-
if (i.id) {
|
|
7
|
-
const e = [];
|
|
8
|
-
n.forEach(
|
|
9
|
-
({ fields: a }, f) => a.forEach((l, r) => {
|
|
10
|
-
l.id === i.id && e.push({ group: f, index: r });
|
|
11
|
-
})
|
|
12
|
-
);
|
|
13
|
-
const t = i.alias ? e.find(
|
|
14
|
-
({ group: a, index: f }) => s(n[a].fields[f], n[a].role) === i.alias
|
|
15
|
-
) : void 0;
|
|
16
|
-
if (t) return t;
|
|
17
|
-
if (e.length === 1) return e[0];
|
|
18
|
-
}
|
|
19
|
-
for (let e = 0; e < n.length; e += 1) {
|
|
20
|
-
const t = n[e].fields.findIndex(
|
|
21
|
-
(a) => a.name === i.name && a.entityName === i.entityName && (a.alias === i.alias || !i.alias)
|
|
22
|
-
);
|
|
23
|
-
if (t !== -1) return { group: e, index: t };
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
m as f,
|
|
28
|
-
s
|
|
29
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { TFilter, TFilterValue } from '../../components/surfboard/filter/types.js';
|
|
2
|
-
import { DashboardInput, DashboardInputValues } from '../types/common-types.js';
|
|
3
|
-
import { DashboardInputRuntimeTarget } from './dashboard-input-values.js';
|
|
4
|
-
import { DefaultsCalendar } from '../utils/filter-default-value-utils.js';
|
|
5
|
-
import { GlobalDateComparisonSelection } from '../../shared/analytics-protocol/index.js';
|
|
6
|
-
import { DashboardFilterOptionDependencies, DashboardFilterOptionPopulation, DashboardFilterOptionSource } from '../../shared/dashboard-authoring/index.js';
|
|
7
|
-
export type DashboardFilterStorageState = {
|
|
8
|
-
filterValues?: TFilterValue[];
|
|
9
|
-
defaultFilterValues?: TFilterValue[];
|
|
10
|
-
dashboardInputValues: DashboardInputValues;
|
|
11
|
-
defaultInputValues?: DashboardInputValues;
|
|
12
|
-
};
|
|
13
|
-
export type DashboardFilterAuthoringSettingsUpdate = {
|
|
14
|
-
forceSelection?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* The caller changed the default its target loads. Filter settings start
|
|
17
|
-
* from the target's saved default (`resolveAuthoredFilterDefaultFields`),
|
|
18
|
-
* which can differ from the definition for a scoped Input or an overlay
|
|
19
|
-
* entry, so they say so; callers that start from the definition leave it
|
|
20
|
-
* unset and the owner compares definitions. Also resets a saved slot that
|
|
21
|
-
* has no backing default.
|
|
22
|
-
*/
|
|
23
|
-
defaultValueChanged?: boolean;
|
|
24
|
-
defaultComparisonChanged?: boolean;
|
|
25
|
-
defaultComparisonSelection?: GlobalDateComparisonSelection;
|
|
26
|
-
target?: DashboardInputRuntimeTarget;
|
|
27
|
-
optionSourceChanged?: boolean;
|
|
28
|
-
optionSource?: DashboardFilterOptionSource;
|
|
29
|
-
/** Authored option dependency policy edit; undefined value restores the
|
|
30
|
-
* dashboard default (omitted, meaning All applicable). */
|
|
31
|
-
optionDependenciesChanged?: boolean;
|
|
32
|
-
optionDependencies?: DashboardFilterOptionDependencies;
|
|
33
|
-
optionPopulationChanged?: boolean;
|
|
34
|
-
optionPopulation?: DashboardFilterOptionPopulation;
|
|
35
|
-
/** Raw selection identity changed; the previous runtime value is invalid. */
|
|
36
|
-
selectionIdentityChanged?: boolean;
|
|
37
|
-
};
|
|
38
|
-
/** Persisted option policy carried by a filter Input. */
|
|
39
|
-
export type DashboardFilterOptionPolicy = {
|
|
40
|
-
optionDependencies?: DashboardFilterOptionDependencies;
|
|
41
|
-
optionPopulation?: DashboardFilterOptionPopulation;
|
|
42
|
-
};
|
|
43
|
-
/** Resolves the policy an authoring transaction should persist. */
|
|
44
|
-
export declare function resolveFilterOptionPolicy(current: DashboardFilterOptionPolicy | undefined, settings: DashboardFilterAuthoringSettingsUpdate | undefined): DashboardFilterOptionPolicy;
|
|
45
|
-
export declare function hasFilterOptionPolicy(policy: DashboardFilterOptionPolicy | undefined): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Callers submit edits; the owner decides whether defaults must be reseeded.
|
|
48
|
-
* A default change (values, date window or mode) writes the target's saved
|
|
49
|
-
* default and live value; the definition, which the caller submits whole,
|
|
50
|
-
* holds the last authored default.
|
|
51
|
-
*/
|
|
52
|
-
export declare function resolveFilterAuthoringSettings(previous: TFilter | undefined, filter: TFilter, settings: DashboardFilterAuthoringSettingsUpdate | undefined, target: DashboardInputRuntimeTarget, calendar?: DefaultsCalendar): {
|
|
53
|
-
target: DashboardInputRuntimeTarget;
|
|
54
|
-
defaultValueChanged: boolean;
|
|
55
|
-
defaultFilterValue: TFilterValue | undefined;
|
|
56
|
-
forceSelection?: boolean;
|
|
57
|
-
defaultComparisonChanged?: boolean;
|
|
58
|
-
defaultComparisonSelection?: GlobalDateComparisonSelection;
|
|
59
|
-
optionSourceChanged?: boolean;
|
|
60
|
-
optionSource?: DashboardFilterOptionSource;
|
|
61
|
-
optionDependenciesChanged?: boolean;
|
|
62
|
-
optionDependencies?: DashboardFilterOptionDependencies;
|
|
63
|
-
optionPopulationChanged?: boolean;
|
|
64
|
-
optionPopulation?: DashboardFilterOptionPopulation;
|
|
65
|
-
selectionIdentityChanged?: boolean;
|
|
66
|
-
};
|
|
67
|
-
export declare function moveOrdinaryFilterStorageToMappedInput(params: {
|
|
68
|
-
state: DashboardFilterStorageState;
|
|
69
|
-
input: Pick<DashboardInput, 'id' | 'runtimeScope'>;
|
|
70
|
-
filter: TFilter;
|
|
71
|
-
}): DashboardFilterStorageState;
|
|
72
|
-
export declare function moveMappedInputStorageToOrdinaryFilter(params: {
|
|
73
|
-
state: DashboardFilterStorageState;
|
|
74
|
-
input: Pick<DashboardInput, 'id' | 'runtimeScope'>;
|
|
75
|
-
filter: TFilter;
|
|
76
|
-
}): DashboardFilterStorageState;
|
|
77
|
-
/**
|
|
78
|
-
* Applies Basic-tab default edits to the same storage transaction that changes
|
|
79
|
-
* mapped participation. This keeps the authoritative filter, mapped input, and
|
|
80
|
-
* its runtime/default slots from becoming observable in mixed states.
|
|
81
|
-
*/
|
|
82
|
-
export declare function applyFilterAuthoringSettingsToStorage(params: {
|
|
83
|
-
state: DashboardFilterStorageState;
|
|
84
|
-
input: Pick<DashboardInput, 'id' | 'runtimeScope'>;
|
|
85
|
-
filterId: string;
|
|
86
|
-
storage: 'mapped' | 'ordinary';
|
|
87
|
-
settings?: ReturnType<typeof resolveFilterAuthoringSettings>;
|
|
88
|
-
}): DashboardFilterStorageState;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DashboardInputBase } from '../types/common-types.js';
|
|
2
|
-
import { DashboardInputRuntimeTarget } from './dashboard-input-values.js';
|
|
3
|
-
export type ScopedDashboardInputTarget = DashboardInputRuntimeTarget & {
|
|
4
|
-
sheetKind?: 'dashboard' | 'document';
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* The one interpreter of `DashboardInputScope`. Filters, controls, and
|
|
8
|
-
* click-to-filter targets all decide "does this reach that card" here.
|
|
9
|
-
*/
|
|
10
|
-
export declare function doesDashboardInputApplyToTarget(input: Pick<DashboardInputBase, 'scope' | 'compatibility'>, target: ScopedDashboardInputTarget): boolean;
|