@graphysdk/react-renderer 1.9.0-beta.1791369792799 → 1.9.0-beta.1791393170165
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/editable.cjs +1 -1
- package/dist/editable.mjs +8 -8
- package/dist/history-chords-BawOLCTm.cjs +2 -0
- package/dist/{history-chords-BMpwNlXF.js → history-chords-D8QcdvOF.js} +2102 -2020
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -9
- package/dist/index.mjs +8 -8
- package/package.json +4 -4
- package/dist/history-chords-DWL_2wdE.cjs +0 -2
package/dist/editable.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as sn, $t as cn, At as hi, C as pi, Ct as mi, D as gi, E as vi, F as k, G as fi, H as bi, Ht as yi, J as Si, Jt as Ci, K as Dn, Kt as xi, N as wi, O as Gr, Ot as Xe, P as Ti, Q as Vr, Qt as $r, R as Ai, Rt as ki, S as Li, St as Pi, T as Le, Tt as de, U as Z, V as Ii, W as V, X as dn, Xt as Ei, Y as U, Yt as Oi, Z as un, _ as Me, _t as M, b as Wr, bt as Ne, c as Ur, ct as _n, d as
|
|
1
|
+
import { $ as sn, $t as cn, At as hi, C as pi, Ct as mi, D as gi, E as vi, F as k, G as fi, H as bi, Ht as yi, J as Si, Jt as Ci, K as Dn, Kt as xi, N as wi, O as Gr, Ot as Xe, P as Ti, Q as Vr, Qt as $r, R as Ai, Rt as ki, S as Li, St as Pi, T as Le, Tt as de, U as Z, V as Ii, W as V, X as dn, Xt as Ei, Y as U, Yt as Oi, Z as un, _ as Me, _t as M, at as Mi, b as Wr, bt as Ne, c as Ur, ct as _n, d as Ni, dn as te, en as He, et as vt, f as Ri, ft, g as Kr, gt as Di, h as hn, hn as B, ht as _i, i as Fi, in as zi, jt as Bi, k as bt, kt as J, l as Hi, ln as qr, lt as Gi, m as Vi, n as ve, nt as Xr, o as $i, on as Wi, ot as Ui, p as Zr, pn as _, q as Ki, qt as qi, r as K, rn as Xi, rt as jr, st as Zi, t as ji, tt as Yi, u as Ji, ut as ie, v as Qi, vt as el, wt as tl, x as nl, y as rl, zt as Yr } from "./history-chords-D8QcdvOF.js";
|
|
2
2
|
import { n as se, t as Jr } from "./theme.contract.css-BKkzmOkD.js";
|
|
3
3
|
import { ARROW_DEFAULTS as al, ARROW_STICKER_DECLARATIONS as ol, ARROW_STROKE_WIDTHS_PX as Dt, AddAnnotationCommand as we, AddHighlightCommand as il, BORDER_RADIUS_TOKENS as Fn, COMBO_TYPES as zn, CONSTANT_VARIABLES as ll, DASH_PRESETS as sl, DEFAULT_BAR_CORNER_RADIUS as cl, DEFAULT_GEOM_COLOR as dl, DEFAULT_POINT_SIZE_PX as ul, DEFAULT_STROKE_WIDTH_PX as hl, DIFFERENCE_ARROW_DEFAULTS as Qr, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Bn, InternalError as pl, MAX_BAR_WIDTH_FRACTION as ml, MIN_BAR_WIDTH_FRACTION as gl, MoveAnnotationCommand as vl, RESTING_HOVER_STATE as pn, RemoveAnnotationCommand as $e, RemoveHighlightCommand as fl, SHAPE_DEFAULTS as bl, SetAxisLabelCommand as yl, SetAxisPositionCommand as Sl, SetAxisTickModeCommand as Cl, SetAxisTicksVisibilityCommand as xl, SetAxisVisibilityCommand as wl, SetBarCornerRadiusCommand as Tl, SetBarWidthCommand as Al, SetChartTypeCommand as ea, SetContentCaptionCommand as ta, SetContentSourceCommand as kl, SetContentSubtitleCommand as na, SetContentTitleCommand as ra, SetDataLabelsFormatCommand as Ll, SetDifferenceArrowStyleCommand as Pl, SetGridLineStyleCommand as Il, SetGridLineWidthCommand as El, SetGridVisibilityCommand as Ol, SetHeadlineCompareWithCommand as Ml, SetHeadlinePositionCommand as Nl, SetHeadlineShowCommand as Hn, SetHeadlineSizeCommand as Rl, SetHighlightDimStyleCommand as Dl, SetLayerYScaleTypeCommand as _l, SetLegendAlignCommand as Fl, SetLegendDisplayCommand as zl, SetLegendPositionCommand as Bl, SetLineCurveCommand as Hl, SetLineMissingValuesCommand as Gl, SetLineWidthCommand as Gn, SetMappingCommand as Vl, SetNumberFormatAbbreviationCommand as $l, SetNumberFormatDecimalsCommand as Vn, SetPointSizeCommand as Wl, SetPolarInnerRadiusCommand as Ul, SetPolarStartAngleCommand as Kl, SetRuleLabelCommand as ql, SetRuleValueCommand as Xl, SetScaleDomainCommand as _t, SetScaleReverseCommand as Zl, SetScaleTransformCommand as jl, SetStatLineCommand as Yl, SetStyleRuleCommand as Ee, TEXT_ANNOTATION_DEFAULTS as Jl, TEXT_ANNOTATION_FADE_ALPHA as Ql, ToggleCategoryLabelsCommand as es, ToggleContentVisibilityCommand as yt, ToggleDataLabelsCommand as ts, ToggleGoalLineCommand as ns, ToggleLineFillCommand as rs, ToggleLinePointsCommand as as, ToggleStackTotalsCommand as os, UpdateAnnotationCommand as ue, alignUnitFractions as is, areAnchorsEqual as aa, areEditTargetsEqual as oa, areEndpointsComparable as ls, buildEditMenuTriggerRegion as ss, buildLayerStyleAddress as cs, buildObservationPredicate as ds, buildObservationsTarget as St, buildObservationsTargetAtValue as ia, canAnchorDirectLabels as us, canBecomeCombo as hs, canBecomeHeatmap as ps, clampAnnotationTranslation as ms, combineKindStyleDeclarations as $n, computeArrow as la, createObservationAnchorBuilder as gs, createObservationAnchorParser as vs, createStyleResolver as fs, createValueFormatter as sa, createXValueReader as bs, filterLayersByGeoms as Vt, findAnnotation as ys, findAverageLineLayer as Ss, findAxisGuide as Cs, findCompanionLayers as ca, findGoalLineLayer as xs, findHighlightsAtObservation as ws, findLayerByGeom as da, findLayerById as be, findObservationAttachment as Ts, findStyleRule as Ae, findTrendLineLayer as As, formatDifferenceLabel as ks, getBoundingRect as $t, getGroupVariables as Ls, getXBand as Ps, getYBand as Is, hasMainAxisBand as Es, hasMultipleGroups as Os, inferDefaultDifferenceArrowEndpoints as Ms, inferDifferenceArrowEndpoints as Ns, isComboChartType as Ie, isCompanionLayer as mn, isObservationAttachmentKind as Rs, isPointWithinEditMenuTrigger as gn, isSafeUrl as Ds, isZeroAnchoredAxis as _s, measureObservationsBoxes as ua, projectAnchorToPanel as lt, readBroadestObservationsScope as Fs, readChartType as ha, readComboLineLayerId as zs, readCompanionRowsAtScopeKey as Bs, readConstantValue as Hs, readEditTargetKey as Ct, readGeomColor as Gs, readHighlightDimStyle as Vs, readMainAxis as $s, readMappableAesthetics as Ws, readMappedVariable as Us, readObservationIndex as pa, readReachableLevels as Ks, readRowScopeKey as qs, readRowsAtScopeKey as Xs, readScopeXVariable as Zs, readStyleCoord as Re, readStyleRulesBeneath as js, readVariableName as xt, resolveArrowAnnotationStyle as vn, resolveBarBandFraction as Ys, resolveComparisonBasis as Js, resolveDifferenceArrowAnnotationStyle as Qs, resolveEditOutlineStyle as ec, resolveObservationPoint as ma, resolveObservationsTarget as Wn, stepDifferenceArrowEndpoint as tc, toDashPreset as Wt, toPaintColor as st, toPanelCursor as wt } from "@graphysdk/viz-engine";
|
|
4
4
|
import { Fragment as nc, createContext as De, memo as ga, useCallback as ae, useContext as Se, useEffect as z, useId as ke, useLayoutEffect as Oe, useMemo as P, useRef as ne, useState as Y } from "react";
|
|
@@ -2409,7 +2409,7 @@ import './editable.css';var Lc = {
|
|
|
2409
2409
|
"en-US": _c,
|
|
2410
2410
|
ar: Ec,
|
|
2411
2411
|
"pt-PT": Hc
|
|
2412
|
-
}, Vc = [Gc, el], $c = ({ children: e, ...t }) => /* @__PURE__ */ r(
|
|
2412
|
+
}, Vc = [Gc, el], $c = ({ children: e, ...t }) => /* @__PURE__ */ r(Di, {
|
|
2413
2413
|
dictionaries: Vc,
|
|
2414
2414
|
...t,
|
|
2415
2415
|
children: e
|
|
@@ -3271,7 +3271,7 @@ var Ga = "srewh00", Xd = "srewh01", yn = ({ children: e }) => {
|
|
|
3271
3271
|
i?.commands.focus("end", { scrollIntoView: !1 });
|
|
3272
3272
|
}, [i]), /* @__PURE__ */ r(Sa, {
|
|
3273
3273
|
"aria-label": t("graph.annotations.text.editLabel"),
|
|
3274
|
-
className:
|
|
3274
|
+
className: Ri,
|
|
3275
3275
|
editor: i,
|
|
3276
3276
|
"data-testid": "text-annotation-editor"
|
|
3277
3277
|
});
|
|
@@ -3588,7 +3588,7 @@ var Eu = (e, { coordSystem: t, panelRect: n }) => {
|
|
|
3588
3588
|
d: e,
|
|
3589
3589
|
...a
|
|
3590
3590
|
}), Hu = ({ pathData: e, source: t, ...n }) => {
|
|
3591
|
-
const a = Xi(e,
|
|
3591
|
+
const a = Xi(e, zi, t);
|
|
3592
3592
|
return /* @__PURE__ */ r(rc.path, {
|
|
3593
3593
|
d: a,
|
|
3594
3594
|
...n
|
|
@@ -6791,7 +6791,7 @@ var zp = "ydgo3h0", Bp = "ydgo3h1", Hp = "ydgo3h2", Gp = ({ clientPoint: e, pane
|
|
|
6791
6791
|
top: s.y + o.y - 2,
|
|
6792
6792
|
width: o.width + 4,
|
|
6793
6793
|
height: o.height + 4,
|
|
6794
|
-
borderRadius:
|
|
6794
|
+
borderRadius: _i(n, 2)
|
|
6795
6795
|
}
|
|
6796
6796
|
}),
|
|
6797
6797
|
/* @__PURE__ */ r(br, {
|
|
@@ -6992,7 +6992,7 @@ var e2 = {
|
|
|
6992
6992
|
});
|
|
6993
6993
|
}, a2 = ({ annotation: e, panel: t }) => {
|
|
6994
6994
|
const n = Yi(e.id);
|
|
6995
|
-
return /* @__PURE__ */ r(
|
|
6995
|
+
return /* @__PURE__ */ r(Ni, {
|
|
6996
6996
|
annotation: e,
|
|
6997
6997
|
panel: t,
|
|
6998
6998
|
style: te().annotation.text(e.id).resolve(),
|
|
@@ -8281,7 +8281,7 @@ var om = "_1tyillx1", im = {
|
|
|
8281
8281
|
o
|
|
8282
8282
|
]);
|
|
8283
8283
|
}, Em = (e) => e instanceof HTMLElement && (e.isContentEditable || e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement), Om = (e, t) => {
|
|
8284
|
-
const n = V(), { store: a } = B(), { engine: o, overlayRef: i } = Xe(), l = J(t), { annotations: s, observationsPress: c, guidePress: h, tolerance: d } = Ne[Le()], u =
|
|
8284
|
+
const n = V(), { store: a } = B(), { engine: o, overlayRef: i } = Xe(), l = J(t), { annotations: s, observationsPress: c, guidePress: h, tolerance: d } = Ne[Le()], u = Mi(), p = c && !u;
|
|
8285
8285
|
return ae(() => ({
|
|
8286
8286
|
frameElement: e,
|
|
8287
8287
|
captureRect: i.current,
|
|
@@ -8899,7 +8899,7 @@ function Ng(e) {
|
|
|
8899
8899
|
return t.includes("_1ii3bsb0") || t.includes("_1ii3bsb1");
|
|
8900
8900
|
}
|
|
8901
8901
|
var Rg = ({ handle: e, children: t, controls: n, defaultExpandedSection: a = void 0, className: o }) => {
|
|
8902
|
-
const i =
|
|
8902
|
+
const i = Fi(e), { themeClass: l, inlineVarsStyle: s } = ft(), [c, h] = Y(() => a ? [a] : []), d = P(() => ({
|
|
8903
8903
|
expandSection: (u) => h([u]),
|
|
8904
8904
|
collapseAllSections: () => h([])
|
|
8905
8905
|
}), []);
|