react-semaphor 0.1.508 → 0.1.509
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/brand-studio/index.cjs +2 -2
- package/dist/brand-studio/index.js +181 -172
- package/dist/chunks/{dashboard-briefing-launcher-B9l0ZAbv.js → dashboard-briefing-launcher-B5AQu-Vb.js} +2 -2
- package/dist/chunks/{dashboard-briefing-launcher-C4zsM3Hd.cjs → dashboard-briefing-launcher-BoXFrqq0.cjs} +1 -1
- package/dist/chunks/{dashboard-controls-BCQv4xWM.js → dashboard-controls-CKKkSXEX.js} +3 -3
- package/dist/chunks/{dashboard-controls-CWwllVOe.cjs → dashboard-controls-gUVkQm8o.cjs} +1 -1
- package/dist/chunks/{dashboard-json-DVj2xLsH.cjs → dashboard-json-B7fSi6_b.cjs} +1 -1
- package/dist/chunks/{dashboard-json-BtU_q_0A.js → dashboard-json-CAJJquVx.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CO2IVBOq.cjs → edit-dashboard-visual-AZetLUv1.cjs} +1 -1
- package/dist/chunks/{edit-dashboard-visual-RgFUx-py.js → edit-dashboard-visual-DCnbqRRn.js} +2 -2
- package/dist/chunks/{editor-action-buttons-BE8Fby6n.cjs → editor-action-buttons-CBQsVYdt.cjs} +1 -1
- package/dist/chunks/{editor-action-buttons-D-MaqTIs.js → editor-action-buttons-DDA5JGwO.js} +1 -1
- package/dist/chunks/{index-ByiS9sB4.js → index-CL2lvhwk.js} +31577 -31491
- package/dist/chunks/{index-BaIrLSBb.cjs → index-DkEAikW8.cjs} +242 -244
- package/dist/chunks/{report-preferences-dialog-BbkXcnnn.js → report-preferences-dialog-Bv2VIOKc.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-C9rpWgQZ.cjs → report-preferences-dialog-Wg9g9fIj.cjs} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/visual/matrix-table/matrix-interaction-actions.d.ts +12 -3
- package/dist/types/components/visual/matrix-table/matrix-window-viewer.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +0 -3
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +0 -4
- package/dist/types/lib/matrix-table/{use-matrix-selection.d.ts → use-matrix-cell-focus.d.ts} +13 -17
- package/dist/types/lib/matrix-table/use-matrix.d.ts +0 -1
- package/package.json +1 -1
- package/dist/types/lib/matrix-table/matrix-clipboard.d.ts +0 -45
- package/dist/types/lib/matrix-table/matrix-selection.d.ts +0 -20
package/dist/surfboard/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-DkEAikW8.cjs"),r=require("../chunks/common-types-nBuCd3u2.cjs"),o=require("../chunks/report-preferences-dialog-Wg9g9fIj.cjs");exports.DisplayFormatPreferencesFields=e.DisplayFormatPreferencesFields;exports.Surfboard=e.DashboardPlus;exports.CONTROL_CARD_DEFAULT_VALUE=r.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;exports.ReportPreferencesDialog=o.ReportPreferencesDialog;
|
package/dist/surfboard/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as a, a as o } from "../chunks/index-
|
|
1
|
+
import { b as a, a as o } from "../chunks/index-CL2lvhwk.js";
|
|
2
2
|
import { C as f, E } from "../chunks/common-types-C6cAQgyh.js";
|
|
3
|
-
import { R as t } from "../chunks/report-preferences-dialog-
|
|
3
|
+
import { R as t } from "../chunks/report-preferences-dialog-Bv2VIOKc.js";
|
|
4
4
|
export {
|
|
5
5
|
f as CONTROL_CARD_DEFAULT_VALUE,
|
|
6
6
|
a as DisplayFormatPreferencesFields,
|
|
@@ -7,7 +7,12 @@ export type MatrixInteractionHost = Pick<MatrixInteractionInput, 'resolveField'
|
|
|
7
7
|
* A direct click on a member or a cell. The host decides whether that part
|
|
8
8
|
* of the grid starts a selection and which gesture the pointer asked for.
|
|
9
9
|
*/
|
|
10
|
-
select?: (context: NonNullable<MatrixInteraction['context']>, source: MatrixSelectionSource, event:
|
|
10
|
+
select?: (context: NonNullable<MatrixInteraction['context']>, source: MatrixSelectionSource, event: {
|
|
11
|
+
shiftKey: boolean;
|
|
12
|
+
metaKey: boolean;
|
|
13
|
+
ctrlKey: boolean;
|
|
14
|
+
nativeEvent?: Event;
|
|
15
|
+
}) => void;
|
|
11
16
|
/**
|
|
12
17
|
* Whether this part of the grid is in the card's filter selection, so the
|
|
13
18
|
* viewer can mark it. Absent when the card has nothing selected, which lets
|
|
@@ -17,8 +22,12 @@ export type MatrixInteractionHost = Pick<MatrixInteractionInput, 'resolveField'
|
|
|
17
22
|
drill: (context: NonNullable<MatrixInteraction['context']>, measure: NonNullable<MatrixInteraction['measure']>) => void;
|
|
18
23
|
};
|
|
19
24
|
/** The host adapts Matrix gestures to selection and drill callbacks; it owns no query or permission policy. */
|
|
20
|
-
export declare function MatrixInteractionActions({ input, host,
|
|
25
|
+
export declare function MatrixInteractionActions({ input, host, }: {
|
|
26
|
+
input: Omit<MatrixInteractionInput, 'resolveField' | 'capabilities'>;
|
|
27
|
+
host?: MatrixInteractionHost;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
29
|
+
/** Cell-level drill access after the redundant floating selection toolbar was removed. */
|
|
30
|
+
export declare function MatrixCellDrillAction({ input, host, }: {
|
|
21
31
|
input: Omit<MatrixInteractionInput, 'resolveField' | 'capabilities'>;
|
|
22
32
|
host?: MatrixInteractionHost;
|
|
23
|
-
menu?: boolean;
|
|
24
33
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -15,7 +15,7 @@ type Props = Parameters<typeof useMatrix>[0] & {
|
|
|
15
15
|
}) => void;
|
|
16
16
|
};
|
|
17
17
|
interactions?: MatrixInteractionHost;
|
|
18
|
-
|
|
18
|
+
onCellFocusChange?: (coordinate: MatrixCoordinate | undefined) => void;
|
|
19
19
|
/** Explicit persist of the live view; hosts write it to the card. */
|
|
20
20
|
onPersistView?: (view: MatrixViewState) => void;
|
|
21
21
|
/** Show technical failure diagnostics (owners and editors only). */
|
|
@@ -28,8 +28,6 @@ export declare class MatrixRuntimeController {
|
|
|
28
28
|
private view;
|
|
29
29
|
private spec;
|
|
30
30
|
private snapshot;
|
|
31
|
-
private copyDemand?;
|
|
32
|
-
private rejectCopy?;
|
|
33
31
|
constructor(input: MatrixRuntimeInput, query: QueryClient, execute: MatrixWindowExecutor, session?: MatrixViewState);
|
|
34
32
|
subscribe: (listener: () => void) => () => boolean;
|
|
35
33
|
getSnapshot: () => MatrixRuntimeSnapshot;
|
|
@@ -53,8 +51,6 @@ export declare class MatrixRuntimeController {
|
|
|
53
51
|
/** Used by explicit refresh/retry integrations; latest-issued response wins. */
|
|
54
52
|
refetchCell: (coordinate: MatrixCoordinate) => void;
|
|
55
53
|
refetchPage: (key: string) => void;
|
|
56
|
-
/** Clipboard demand shares page-owner tiles, the queue and retention policy. */
|
|
57
|
-
acquireCells: (coordinates: readonly MatrixCoordinate[], signal?: AbortSignal) => Promise<MatrixCellState[]>;
|
|
58
54
|
private visible;
|
|
59
55
|
private plan;
|
|
60
56
|
private loadPage;
|
package/dist/types/lib/matrix-table/{use-matrix-selection.d.ts → use-matrix-cell-focus.d.ts}
RENAMED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { KeyboardEvent } from 'react';
|
|
2
|
-
import { MatrixCoordinate,
|
|
2
|
+
import { MatrixCoordinate, MatrixSpec } from '../../shared/analytics-protocol/index.js';
|
|
3
3
|
import { MatrixRuntime } from './use-matrix.js';
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* One view-local active cell for grid navigation and editor field scoping.
|
|
6
|
+
* Dashboard selection remains owned by the selection input runtime.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useMatrixCellFocus(input: {
|
|
6
9
|
runtime: MatrixRuntime;
|
|
7
10
|
spec: MatrixSpec;
|
|
8
|
-
absence: MatrixPresentation['absence'];
|
|
9
11
|
reveal: (row: number, valueColumn: number) => void;
|
|
10
|
-
|
|
12
|
+
onFocusChange?: (coordinate: MatrixCoordinate | undefined) => void;
|
|
13
|
+
onActivate?: (coordinate: MatrixCoordinate, event: KeyboardEvent<HTMLDivElement>) => void;
|
|
11
14
|
}): {
|
|
12
15
|
hasFocus: boolean;
|
|
13
16
|
focusedRow: number;
|
|
14
17
|
focusedColumn: number;
|
|
15
|
-
|
|
18
|
+
coordinate: {
|
|
16
19
|
rowPath: readonly {
|
|
17
20
|
member: {
|
|
18
21
|
value: string | number | boolean | {
|
|
@@ -43,17 +46,10 @@ export declare function useMatrixSelection(input: {
|
|
|
43
46
|
}[];
|
|
44
47
|
measureId: string;
|
|
45
48
|
} | undefined;
|
|
46
|
-
/** Inclusive row and value-column bounds of the current selection. */
|
|
47
|
-
range: {
|
|
48
|
-
rows: readonly [number, number];
|
|
49
|
-
columns: readonly [number, number];
|
|
50
|
-
} | null;
|
|
51
|
-
copyState: string;
|
|
52
|
-
copyPending: boolean;
|
|
53
|
-
copy: () => Promise<void>;
|
|
54
49
|
keyboard: (event: KeyboardEvent<HTMLDivElement>) => void;
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
setFocus: (rowIndex: number, valueColumn: number, options?: {
|
|
51
|
+
toggle?: boolean;
|
|
52
|
+
}) => void;
|
|
57
53
|
clear: () => void;
|
|
58
|
-
|
|
54
|
+
isFocused: (rowIndex: number, valueColumn: number) => boolean;
|
|
59
55
|
};
|
|
@@ -25,7 +25,6 @@ export declare function useMatrix(input: MatrixInput): {
|
|
|
25
25
|
}>;
|
|
26
26
|
};
|
|
27
27
|
readCell: (coordinate: import('./matrix-runtime-types.js').MatrixCellAddress) => import('./matrix-runtime-types.js').MatrixCellState;
|
|
28
|
-
acquireCells: (coordinates: readonly import('../../shared/analytics-protocol/index.js').MatrixCoordinate[], signal?: AbortSignal) => Promise<import('./matrix-runtime-types.js').MatrixCellState[]>;
|
|
29
28
|
setViewport: (viewport: import('./matrix-runtime-types.js').MatrixViewport) => void;
|
|
30
29
|
retry: (retryKey: string) => void;
|
|
31
30
|
refresh: () => void;
|
package/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { MatrixSpec, MatrixPresentation, SemaphorScalarValue } from '../../shared/analytics-protocol/index.js';
|
|
2
|
-
import { MatrixAxisItem, MatrixCellState } from './matrix-runtime-types.js';
|
|
3
|
-
import { MatrixSelection } from './matrix-selection.js';
|
|
4
|
-
export declare function prepareMatrixCopy(input: {
|
|
5
|
-
rows: readonly MatrixAxisItem[];
|
|
6
|
-
columns: readonly MatrixAxisItem[];
|
|
7
|
-
spec: MatrixSpec;
|
|
8
|
-
selection: MatrixSelection | undefined;
|
|
9
|
-
}): {
|
|
10
|
-
coordinates: {
|
|
11
|
-
rowPath: readonly {
|
|
12
|
-
member: {
|
|
13
|
-
value: string | number | boolean | {
|
|
14
|
-
value: string;
|
|
15
|
-
type: "integer" | "decimal";
|
|
16
|
-
kind: "exact_number";
|
|
17
|
-
} | null;
|
|
18
|
-
kind: "value";
|
|
19
|
-
} | {
|
|
20
|
-
kind: "others";
|
|
21
|
-
rankingId: string;
|
|
22
|
-
};
|
|
23
|
-
levelId: string;
|
|
24
|
-
}[];
|
|
25
|
-
columnPath: readonly {
|
|
26
|
-
member: {
|
|
27
|
-
value: string | number | boolean | {
|
|
28
|
-
value: string;
|
|
29
|
-
type: "integer" | "decimal";
|
|
30
|
-
kind: "exact_number";
|
|
31
|
-
} | null;
|
|
32
|
-
kind: "value";
|
|
33
|
-
} | {
|
|
34
|
-
kind: "others";
|
|
35
|
-
rankingId: string;
|
|
36
|
-
};
|
|
37
|
-
levelId: string;
|
|
38
|
-
}[];
|
|
39
|
-
measureId: string;
|
|
40
|
-
}[];
|
|
41
|
-
slots: (number | null)[];
|
|
42
|
-
width: number;
|
|
43
|
-
};
|
|
44
|
-
/** TSV quoting preserves tabs/newlines; UTF-8 bytes are bounded before clipboard publication. */
|
|
45
|
-
export declare function formatMatrixCopy(plan: ReturnType<typeof prepareMatrixCopy>, states: readonly MatrixCellState[], formats: ReadonlyMap<string, (value: SemaphorScalarValue) => string>, absence: MatrixPresentation['absence']): string;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MatrixAxisItem } from './matrix-runtime-types.js';
|
|
2
|
-
export type MatrixSelectionPoint = {
|
|
3
|
-
row: string;
|
|
4
|
-
column: string;
|
|
5
|
-
measure: number;
|
|
6
|
-
};
|
|
7
|
-
export type MatrixSelection = {
|
|
8
|
-
startRow: number;
|
|
9
|
-
startColumn: number;
|
|
10
|
-
endRow: number;
|
|
11
|
-
endColumn: number;
|
|
12
|
-
};
|
|
13
|
-
/** Unlike scroll anchors, a selection must never substitute a different member. */
|
|
14
|
-
export declare function resolveMatrixSelection(input: {
|
|
15
|
-
rows: readonly MatrixAxisItem[];
|
|
16
|
-
columns: readonly MatrixAxisItem[];
|
|
17
|
-
measureCount: number;
|
|
18
|
-
start: MatrixSelectionPoint;
|
|
19
|
-
end: MatrixSelectionPoint;
|
|
20
|
-
}): MatrixSelection | undefined;
|