@bicharts/chart-host 0.5.42 → 0.5.43
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/index.mjs +4 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/qualifyLaunch.d.ts +20 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -595,6 +595,9 @@ function shouldOpenChooserOnGenerate(i) {
|
|
|
595
595
|
if (!i.hasData) return false;
|
|
596
596
|
return chooserFitsViewport(i.width, i.height);
|
|
597
597
|
}
|
|
598
|
+
function shouldOpenInlineChooserOnGenerate(i) {
|
|
599
|
+
return i.enabled === true && i.hasData === true;
|
|
600
|
+
}
|
|
598
601
|
function canConfirmLaunch(selected) {
|
|
599
602
|
return typeof selected === "string" && selected.trim() !== "";
|
|
600
603
|
}
|
|
@@ -844,6 +847,7 @@ export {
|
|
|
844
847
|
requiredD3Plugins,
|
|
845
848
|
resolveOptions,
|
|
846
849
|
shouldOpenChooserOnGenerate,
|
|
850
|
+
shouldOpenInlineChooserOnGenerate,
|
|
847
851
|
shouldReview,
|
|
848
852
|
stripEsmExports,
|
|
849
853
|
svgNaturalSize,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ export { captureSvgSnapshot, svgToDataUrl, svgNaturalSize, rasterizeSvgToPngData
|
|
|
12
12
|
export { shouldReview, buildReviewWire, bareBase64, actionFor, type ReviewGate, type ReviewWire, type ReviewVerdict, type ReviewAction } from "./review";
|
|
13
13
|
export { askApplyImprovements, type ReviewDialogOptions, type ReviewDialogText } from "./reviewDialog";
|
|
14
14
|
export { qualifyGroupHeadingFor, newQualifyGroupState, type QualifyGroupRow, type QualifyGroupState, type QualifyGroupHeading, } from "./qualifyGroups";
|
|
15
|
-
export { qualifyPick, qualifyAuto, qualifyCancel, launchGenerates, launchFavorStyle, chooserFitsViewport, shouldOpenChooserOnGenerate, canConfirmLaunch, confirmLaunch, qualifyFailureFallsOpen, CHOOSER_MIN_WIDTH_PX, CHOOSER_MIN_HEIGHT_PX, type QualifyLaunchOutcome, type ChooserGateInput, } from "./qualifyLaunch";
|
|
15
|
+
export { qualifyPick, qualifyAuto, qualifyCancel, launchGenerates, launchFavorStyle, chooserFitsViewport, shouldOpenChooserOnGenerate, shouldOpenInlineChooserOnGenerate, canConfirmLaunch, confirmLaunch, qualifyFailureFallsOpen, CHOOSER_MIN_WIDTH_PX, CHOOSER_MIN_HEIGHT_PX, type QualifyLaunchOutcome, type ChooserGateInput, } from "./qualifyLaunch";
|
|
16
16
|
export { computeSelectionCard, normaliseAggregation, type SelectionCardModel, type SelectionCardLine, type SelectionCardOptions, } from "./selectionCard";
|
|
17
17
|
export { ensureCrossfilterHitTargets, type HitTargetReport } from "./hitTargets";
|
|
@@ -83,6 +83,26 @@ export interface ChooserGateInput {
|
|
|
83
83
|
* without auditing what it breaks.
|
|
84
84
|
*/
|
|
85
85
|
export declare function shouldOpenChooserOnGenerate(i: ChooserGateInput): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* The same gate for a host whose chooser is an INLINE, SCROLLING PANEL rather than a modal card
|
|
88
|
+
* - and it deliberately has no size clause at all.
|
|
89
|
+
*
|
|
90
|
+
* THE ASYMMETRY IS THE POINT, AND IT IS MEASURED RATHER THAN ASSUMED. The modal above lives in
|
|
91
|
+
* a card that CLIPS, so past a certain smallness its buttons are simply not on screen and the
|
|
92
|
+
* reader is trapped. A panel that flows inside a scrolling pane, with a wrapping button row,
|
|
93
|
+
* cannot reach that state: swept across 63 pane sizes down to 200x120, every one stayed usable
|
|
94
|
+
* - the footer wrapped from one line to three (38px to 86px) and stayed inside the panel, and
|
|
95
|
+
* the list kept four or more rows because it carries its own max-height and scrolls.
|
|
96
|
+
*
|
|
97
|
+
* So a size clause here would not protect anybody; it would only switch the feature off for a
|
|
98
|
+
* default task pane, which is narrower than the modal's floor. Two hosts, two layouts, two
|
|
99
|
+
* honest answers - written next to each other so the difference reads as a decision rather than
|
|
100
|
+
* as one of them having forgotten.
|
|
101
|
+
*/
|
|
102
|
+
export declare function shouldOpenInlineChooserOnGenerate(i: {
|
|
103
|
+
enabled: boolean;
|
|
104
|
+
hasData: boolean;
|
|
105
|
+
}): boolean;
|
|
86
106
|
/**
|
|
87
107
|
* Is the confirm button live?
|
|
88
108
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/chart-host",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.43",
|
|
4
4
|
"description": "Run a BIC-generated D3 chart in any web host: compiles the generated render() function, applies the shared option defaults, resolves mark clicks (through tooltip overlays), owns the selection affordance, and translates row indices between cross-filtered charts. The same contract the BIC Power BI visual implements, minus Power BI. React bindings at @bicharts/chart-host/react.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|