@factorialco/f0-react 1.273.1 → 1.275.0
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/experimental.d.ts +13 -5
- package/dist/experimental.js +967 -948
- package/dist/f0.d.ts +13 -5
- package/dist/f0.js +110 -102
- package/dist/{hooks-DhSyBRGu.js → hooks-BaU58qvY.js} +547 -543
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as J, c as yt, d as De, E as bt, g as X, e as gt, h as xt, C as wt, j as St, k as $, l as Fe, u as Pt, G as Ct, m as
|
|
2
|
-
import { bp as tn, br as an, bA as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aW as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, b1 as bn, bw as gn, b3 as xn, b5 as wn, b6 as Sn, b7 as Pn, b8 as Cn, bb as
|
|
1
|
+
import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as J, c as yt, d as De, E as bt, g as X, e as gt, h as xt, C as wt, j as St, k as $, l as Fe, u as Pt, G as Ct, m as At, n as we, o as Nt, p as Ie, q as Ot, B as Ee, X as _e, Y as le, r as kt, s as je, t as Lt, v as Tt, w as Dt, x as Ft, y as It, z as Et, D as _t, F as jt, H as Se, I as $t, J as q, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as _, R as I, T as zt, U as Kt, V as qt, W as Wt, Z as Gt, _ as Vt, $ as Ht, a0 as Be, a1 as Yt, a2 as Z, a3 as Me, a4 as Re, a5 as Ut, a6 as ze, a7 as Ke, a8 as qe, a9 as We, aa as Jt, ab as Ge, ac as Xt, ad as Zt, ae as Qt, af as Pe, ag as se, ah as ea, ai as ta, aj as Ve, ak as aa, al as ra, am as He, an as na, ao as oa, ap as sa, aq as ia, ar as la, as as ca, at as ua, au as da, av as Ye, aw as M, ax as Ue, ay as fa, az as pa, aA as Ce, aB as ma, aC as Je, aD as ha, aE as va, aF as ya, aG as ba, aH as ga, aI as xa, aJ as wa, aK as Sa, aL as Pa, aM as Ca, aN as Aa, aO as Na } from "./hooks-BaU58qvY.js";
|
|
2
|
+
import { bp as tn, br as an, bA as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aW as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, b1 as bn, bw as gn, b3 as xn, b5 as wn, b6 as Sn, b7 as Pn, b8 as Cn, bb as An, bc as Nn, bd as On, bf as kn, b4 as Ln, be as Tn, ba as Dn, bx as Fn, bq as In, bk as En, bn as _n, bj as jn, bB as $n, bi as Bn, bh as Mn, aX as Rn, b2 as zn, b9 as Kn, bg as qn, bl as Wn, bs as Gn, bt as Vn, bu as Hn, bC as Yn, bm as Un, bv as Jn, bz as Xn, bo as Zn, by as Qn } from "./hooks-BaU58qvY.js";
|
|
3
3
|
import { jsx as n, jsxs as C, Fragment as ae } from "react/jsx-runtime";
|
|
4
4
|
import * as fe from "react";
|
|
5
|
-
import k, { PureComponent as
|
|
6
|
-
const
|
|
5
|
+
import k, { PureComponent as Oa, useState as T, forwardRef as V, useEffect as B, useMemo as ie, useCallback as Ae, useRef as pe, useImperativeHandle as ka, Children as La, createContext as Ta } from "react";
|
|
6
|
+
const Nr = {
|
|
7
7
|
approvals: {
|
|
8
8
|
history: "Approval history",
|
|
9
9
|
statuses: {
|
|
@@ -82,7 +82,9 @@ const Or = {
|
|
|
82
82
|
lessThanOrEqualShort: "<= {{value}}",
|
|
83
83
|
rangeTitle: "Use range",
|
|
84
84
|
range: "Between {{min}} and {{max}}"
|
|
85
|
-
}
|
|
85
|
+
},
|
|
86
|
+
selectAll: "Select all",
|
|
87
|
+
clear: "Clear"
|
|
86
88
|
},
|
|
87
89
|
toc: {
|
|
88
90
|
search: "Search..."
|
|
@@ -112,6 +114,12 @@ const Or = {
|
|
|
112
114
|
settings: "{{visualizationName}} settings",
|
|
113
115
|
reset: "Reset to default"
|
|
114
116
|
},
|
|
117
|
+
table: {
|
|
118
|
+
settings: {
|
|
119
|
+
showAllColumns: "Show all",
|
|
120
|
+
hideAllColumns: "Hide all"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
115
123
|
itemsCount: "items",
|
|
116
124
|
emptyStates: {
|
|
117
125
|
noData: {
|
|
@@ -249,7 +257,7 @@ const Or = {
|
|
|
249
257
|
greaterThan: "It should be greater than {{min}}",
|
|
250
258
|
lessThan: "It should be less than {{max}}"
|
|
251
259
|
}
|
|
252
|
-
},
|
|
260
|
+
}, Or = [
|
|
253
261
|
"person",
|
|
254
262
|
"team",
|
|
255
263
|
"company",
|
|
@@ -415,7 +423,7 @@ function G() {
|
|
|
415
423
|
return e;
|
|
416
424
|
}, G.apply(this, arguments);
|
|
417
425
|
}
|
|
418
|
-
function
|
|
426
|
+
function Ne(e, t) {
|
|
419
427
|
var r = Object.keys(e);
|
|
420
428
|
if (Object.getOwnPropertySymbols) {
|
|
421
429
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -428,9 +436,9 @@ function Oe(e, t) {
|
|
|
428
436
|
function F(e) {
|
|
429
437
|
for (var t = 1; t < arguments.length; t++) {
|
|
430
438
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
431
|
-
t % 2 ?
|
|
439
|
+
t % 2 ? Ne(Object(r), !0).forEach(function(a) {
|
|
432
440
|
j(e, a, r[a]);
|
|
433
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
441
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ne(Object(r)).forEach(function(a) {
|
|
434
442
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
|
|
435
443
|
});
|
|
436
444
|
}
|
|
@@ -440,14 +448,14 @@ function qa(e, t) {
|
|
|
440
448
|
if (!(e instanceof t))
|
|
441
449
|
throw new TypeError("Cannot call a class as a function");
|
|
442
450
|
}
|
|
443
|
-
function
|
|
451
|
+
function Oe(e, t) {
|
|
444
452
|
for (var r = 0; r < t.length; r++) {
|
|
445
453
|
var a = t[r];
|
|
446
454
|
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, tt(a.key), a);
|
|
447
455
|
}
|
|
448
456
|
}
|
|
449
457
|
function Wa(e, t, r) {
|
|
450
|
-
return t &&
|
|
458
|
+
return t && Oe(e.prototype, t), r && Oe(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
451
459
|
}
|
|
452
460
|
function Ga(e, t, r) {
|
|
453
461
|
return t = ee(t), Va(e, et() ? Reflect.construct(t, r || [], ee(e).constructor) : t.apply(e, r));
|
|
@@ -457,9 +465,9 @@ function Va(e, t) {
|
|
|
457
465
|
return t;
|
|
458
466
|
if (t !== void 0)
|
|
459
467
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
460
|
-
return
|
|
468
|
+
return Ha(e);
|
|
461
469
|
}
|
|
462
|
-
function
|
|
470
|
+
function Ha(e) {
|
|
463
471
|
if (e === void 0)
|
|
464
472
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
465
473
|
return e;
|
|
@@ -479,7 +487,7 @@ function ee(e) {
|
|
|
479
487
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
480
488
|
}, ee(e);
|
|
481
489
|
}
|
|
482
|
-
function
|
|
490
|
+
function Ya(e, t) {
|
|
483
491
|
if (typeof t != "function" && t !== null)
|
|
484
492
|
throw new TypeError("Super expression must either be null or a function");
|
|
485
493
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && ue(e, t);
|
|
@@ -506,7 +514,7 @@ function Ua(e, t) {
|
|
|
506
514
|
}
|
|
507
515
|
return String(e);
|
|
508
516
|
}
|
|
509
|
-
var
|
|
517
|
+
var H = /* @__PURE__ */ function(e) {
|
|
510
518
|
function t() {
|
|
511
519
|
var r;
|
|
512
520
|
qa(this, t);
|
|
@@ -524,7 +532,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
524
532
|
});
|
|
525
533
|
}), j(r, "id", Pt("recharts-scatter-")), r;
|
|
526
534
|
}
|
|
527
|
-
return
|
|
535
|
+
return Ya(t, e), Wa(t, [{
|
|
528
536
|
key: "renderSymbolsStatically",
|
|
529
537
|
value: function(a) {
|
|
530
538
|
var o = this, i = this.props, l = i.shape, d = i.activeShape, s = i.activeIndex, m = ne(this.props, !1);
|
|
@@ -561,18 +569,18 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
561
569
|
onAnimationEnd: this.handleAnimationEnd,
|
|
562
570
|
onAnimationStart: this.handleAnimationStart
|
|
563
571
|
}, function(h) {
|
|
564
|
-
var u = h.t, g = i.map(function(
|
|
565
|
-
var
|
|
566
|
-
if (
|
|
567
|
-
var x = J(
|
|
568
|
-
return F(F({},
|
|
572
|
+
var u = h.t, g = i.map(function(A, N) {
|
|
573
|
+
var O = f && f[N];
|
|
574
|
+
if (O) {
|
|
575
|
+
var x = J(O.cx, A.cx), b = J(O.cy, A.cy), w = J(O.size, A.size);
|
|
576
|
+
return F(F({}, A), {}, {
|
|
569
577
|
cx: x(u),
|
|
570
578
|
cy: b(u),
|
|
571
579
|
size: w(u)
|
|
572
580
|
});
|
|
573
581
|
}
|
|
574
|
-
var S = J(0,
|
|
575
|
-
return F(F({},
|
|
582
|
+
var S = J(0, A.size);
|
|
583
|
+
return F(F({}, A), {}, {
|
|
576
584
|
size: S(u)
|
|
577
585
|
});
|
|
578
586
|
});
|
|
@@ -600,12 +608,12 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
600
608
|
xAxis: l,
|
|
601
609
|
yAxis: d,
|
|
602
610
|
layout: u === "x" ? "vertical" : "horizontal",
|
|
603
|
-
dataPointFormatter: function(
|
|
611
|
+
dataPointFormatter: function(N, O) {
|
|
604
612
|
return {
|
|
605
|
-
x:
|
|
606
|
-
y:
|
|
607
|
-
value: u === "x" ? +
|
|
608
|
-
errorVal: X(
|
|
613
|
+
x: N.cx,
|
|
614
|
+
y: N.cy,
|
|
615
|
+
value: u === "x" ? +N.node.x : +N.node.y,
|
|
616
|
+
errorVal: X(N, O)
|
|
609
617
|
};
|
|
610
618
|
}
|
|
611
619
|
});
|
|
@@ -623,15 +631,15 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
623
631
|
};
|
|
624
632
|
});
|
|
625
633
|
else if (l === "fitting") {
|
|
626
|
-
var h = gt(o), u = h.xmin, g = h.xmax,
|
|
627
|
-
return
|
|
634
|
+
var h = gt(o), u = h.xmin, g = h.xmax, A = h.a, N = h.b, O = function(w) {
|
|
635
|
+
return A * w + N;
|
|
628
636
|
};
|
|
629
637
|
c = [{
|
|
630
638
|
x: u,
|
|
631
|
-
y:
|
|
639
|
+
y: O(u)
|
|
632
640
|
}, {
|
|
633
641
|
x: g,
|
|
634
|
-
y:
|
|
642
|
+
y: O(g)
|
|
635
643
|
}];
|
|
636
644
|
}
|
|
637
645
|
var x = F(F(F({}, s), {}, {
|
|
@@ -650,12 +658,12 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
650
658
|
}, {
|
|
651
659
|
key: "render",
|
|
652
660
|
value: function() {
|
|
653
|
-
var a = this.props, o = a.hide, i = a.points, l = a.line, d = a.className, s = a.xAxis, m = a.yAxis, c = a.left, f = a.top, h = a.width, u = a.height, g = a.id,
|
|
661
|
+
var a = this.props, o = a.hide, i = a.points, l = a.line, d = a.className, s = a.xAxis, m = a.yAxis, c = a.left, f = a.top, h = a.width, u = a.height, g = a.id, A = a.isAnimationActive;
|
|
654
662
|
if (o || !i || !i.length)
|
|
655
663
|
return null;
|
|
656
|
-
var
|
|
664
|
+
var N = this.state.isAnimationFinished, O = St("recharts-scatter", d), x = s && s.allowDataOverflow, b = m && m.allowDataOverflow, w = x || b, S = $(g) ? this.id : g;
|
|
657
665
|
return /* @__PURE__ */ k.createElement(K, {
|
|
658
|
-
className:
|
|
666
|
+
className: O,
|
|
659
667
|
clipPath: w ? "url(#clipPath-".concat(S, ")") : null
|
|
660
668
|
}, x || b ? /* @__PURE__ */ k.createElement("defs", null, /* @__PURE__ */ k.createElement("clipPath", {
|
|
661
669
|
id: "clipPath-".concat(S)
|
|
@@ -666,7 +674,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
666
674
|
height: b ? u : u * 2
|
|
667
675
|
}))) : null, l && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ k.createElement(K, {
|
|
668
676
|
key: "recharts-scatter-symbols"
|
|
669
|
-
}, this.renderSymbols()), (!
|
|
677
|
+
}, this.renderSymbols()), (!A || N) && Fe.renderCallByParent(this.props, i));
|
|
670
678
|
}
|
|
671
679
|
}], [{
|
|
672
680
|
key: "getDerivedStateFromProps",
|
|
@@ -680,9 +688,9 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
680
688
|
} : null;
|
|
681
689
|
}
|
|
682
690
|
}]);
|
|
683
|
-
}(
|
|
684
|
-
j(
|
|
685
|
-
j(
|
|
691
|
+
}(Oa);
|
|
692
|
+
j(H, "displayName", "Scatter");
|
|
693
|
+
j(H, "defaultProps", {
|
|
686
694
|
xAxisId: 0,
|
|
687
695
|
yAxisId: 0,
|
|
688
696
|
zAxisId: 0,
|
|
@@ -697,8 +705,8 @@ j(Y, "defaultProps", {
|
|
|
697
705
|
animationDuration: 400,
|
|
698
706
|
animationEasing: "linear"
|
|
699
707
|
});
|
|
700
|
-
j(
|
|
701
|
-
var t = e.xAxis, r = e.yAxis, a = e.zAxis, o = e.item, i = e.displayedData, l = e.xAxisTicks, d = e.yAxisTicks, s = e.offset, m = o.props.tooltipType, c = De(o.props.children,
|
|
708
|
+
j(H, "getComposedData", function(e) {
|
|
709
|
+
var t = e.xAxis, r = e.yAxis, a = e.zAxis, o = e.item, i = e.displayedData, l = e.xAxisTicks, d = e.yAxisTicks, s = e.offset, m = o.props.tooltipType, c = De(o.props.children, At), f = $(t.dataKey) ? o.props.dataKey : t.dataKey, h = $(r.dataKey) ? o.props.dataKey : r.dataKey, u = a && a.dataKey, g = a ? a.range : re.defaultProps.range, A = g && g[0], N = t.scale.bandwidth ? t.scale.bandwidth() : 0, O = r.scale.bandwidth ? r.scale.bandwidth() : 0, x = i.map(function(b, w) {
|
|
702
710
|
var S = X(b, f), y = X(b, h), v = !$(u) && X(b, u) || "-", L = [{
|
|
703
711
|
name: $(t.dataKey) ? o.props.name : t.name || t.dataKey,
|
|
704
712
|
unit: t.unit || "",
|
|
@@ -725,18 +733,18 @@ j(Y, "getComposedData", function(e) {
|
|
|
725
733
|
var D = we({
|
|
726
734
|
axis: t,
|
|
727
735
|
ticks: l,
|
|
728
|
-
bandSize:
|
|
736
|
+
bandSize: N,
|
|
729
737
|
entry: b,
|
|
730
738
|
index: w,
|
|
731
739
|
dataKey: f
|
|
732
740
|
}), E = we({
|
|
733
741
|
axis: r,
|
|
734
742
|
ticks: d,
|
|
735
|
-
bandSize:
|
|
743
|
+
bandSize: O,
|
|
736
744
|
entry: b,
|
|
737
745
|
index: w,
|
|
738
746
|
dataKey: h
|
|
739
|
-
}), p = v !== "-" ? a.scale(v) :
|
|
747
|
+
}), p = v !== "-" ? a.scale(v) : A, P = Math.sqrt(Math.max(p, 0) / Math.PI);
|
|
740
748
|
return F(F({}, b), {}, {
|
|
741
749
|
cx: D,
|
|
742
750
|
cy: E,
|
|
@@ -765,9 +773,9 @@ j(Y, "getComposedData", function(e) {
|
|
|
765
773
|
points: x
|
|
766
774
|
}, s);
|
|
767
775
|
});
|
|
768
|
-
var Ja =
|
|
776
|
+
var Ja = Nt({
|
|
769
777
|
chartName: "ComposedChart",
|
|
770
|
-
GraphicalChild: [Ie,
|
|
778
|
+
GraphicalChild: [Ie, Ot, Ee, H],
|
|
771
779
|
axisComponents: [{
|
|
772
780
|
axisType: "xAxis",
|
|
773
781
|
AxisComp: _e
|
|
@@ -808,14 +816,14 @@ const Xa = (e) => {
|
|
|
808
816
|
hide: !0
|
|
809
817
|
}, label: o = !1, hideTooltip: i = !1, hideGrid: l = !1, aspect: d, legend: s, showValueUnderLabel: m = !1, bar: c, line: f, scatter: h, onClick: u }, g) => {
|
|
810
818
|
var v, L, D, E;
|
|
811
|
-
const
|
|
819
|
+
const A = Lt(t), N = c != null && c.categories ? Array.isArray(c.categories) ? c.categories : [c.categories] : [], O = f != null && f.categories ? Array.isArray(f.categories) ? f.categories : [f.categories] : [], x = h != null && h.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], b = [...N, ...O, ...x], w = Math.max(...A.flatMap((p) => b.map((P) => Tt(a != null && a.tickFormatter ? a.tickFormatter(`${p[P]}`) : `${p[P]}`)))), S = [c, f, h].filter((p) => (p == null ? void 0 : p.axisPosition) === "left"), y = [c, f, h].filter((p) => (p == null ? void 0 : p.axisPosition) === "right");
|
|
812
820
|
return n(Dt, {
|
|
813
821
|
config: e,
|
|
814
822
|
ref: g,
|
|
815
823
|
aspect: d,
|
|
816
824
|
children: C(Ja, {
|
|
817
825
|
accessibilityLayer: !0,
|
|
818
|
-
data:
|
|
826
|
+
data: A,
|
|
819
827
|
margin: {
|
|
820
828
|
left: a && !a.hide ? 0 : 12,
|
|
821
829
|
right: 12,
|
|
@@ -830,8 +838,8 @@ const Xa = (e) => {
|
|
|
830
838
|
label: p.activeLabel,
|
|
831
839
|
values: {}
|
|
832
840
|
};
|
|
833
|
-
for (const
|
|
834
|
-
P.values[
|
|
841
|
+
for (const Y of p.activePayload)
|
|
842
|
+
P.values[Y.name] = Y.value;
|
|
835
843
|
u(P);
|
|
836
844
|
},
|
|
837
845
|
children: [!i && n(Ft, {
|
|
@@ -868,9 +876,9 @@ const Xa = (e) => {
|
|
|
868
876
|
hide: r == null ? void 0 : r.hide,
|
|
869
877
|
tick: m ? (p) => {
|
|
870
878
|
var be, ge;
|
|
871
|
-
const { x: P, y:
|
|
879
|
+
const { x: P, y: Y, payload: ve } = p, ye = ((be = t.find((pt) => pt.label === ve.value)) == null ? void 0 : be.values) || "", U = Object.keys(ye).length === 1 ? (ge = Object.values(ye)) == null ? void 0 : ge[0] : void 0, ft = U !== void 0 && a.tickFormatter ? a.tickFormatter(`${U}`) : U.toLocaleString();
|
|
872
880
|
return C("g", {
|
|
873
|
-
transform: `translate(${P},${
|
|
881
|
+
transform: `translate(${P},${Y})`,
|
|
874
882
|
children: [n("text", {
|
|
875
883
|
x: 0,
|
|
876
884
|
y: 0,
|
|
@@ -888,7 +896,7 @@ const Xa = (e) => {
|
|
|
888
896
|
})]
|
|
889
897
|
});
|
|
890
898
|
} : void 0
|
|
891
|
-
}),
|
|
899
|
+
}), N.map((p, P) => n(Ee, {
|
|
892
900
|
isAnimationActive: !1,
|
|
893
901
|
dataKey: String(p),
|
|
894
902
|
fill: e[p].color ? q(e[p].color) : oe(P),
|
|
@@ -900,17 +908,17 @@ const Xa = (e) => {
|
|
|
900
908
|
className: "fill-f1-foreground",
|
|
901
909
|
fontSize: 12
|
|
902
910
|
}, `label-${String(p)}`)
|
|
903
|
-
}, `bar-${String(p)}`)),
|
|
911
|
+
}, `bar-${String(p)}`)), O.map((p, P) => n(Ie, {
|
|
904
912
|
type: (f == null ? void 0 : f.lineType) ?? "natural",
|
|
905
913
|
dataKey: String(p),
|
|
906
|
-
stroke: e[p].color ? q(e[p].color) : oe(
|
|
914
|
+
stroke: e[p].color ? q(e[p].color) : oe(N.length + P),
|
|
907
915
|
strokeWidth: 2,
|
|
908
916
|
dot: (f == null ? void 0 : f.dot) ?? !1,
|
|
909
917
|
isAnimationActive: !1,
|
|
910
918
|
yAxisId: (f == null ? void 0 : f.axisPosition) === "right" ? "right" : void 0
|
|
911
|
-
}, `line-${String(p)}`)), x.map((p, P) => n(
|
|
919
|
+
}, `line-${String(p)}`)), x.map((p, P) => n(H, {
|
|
912
920
|
dataKey: String(p),
|
|
913
|
-
fill: e[p].color ? q(e[p].color) : oe(
|
|
921
|
+
fill: e[p].color ? q(e[p].color) : oe(N.length + O.length + P),
|
|
914
922
|
r: 4,
|
|
915
923
|
isAnimationActive: !1,
|
|
916
924
|
yAxisId: (h == null ? void 0 : h.axisPosition) === "right" ? "right" : void 0,
|
|
@@ -1083,7 +1091,7 @@ const ir = ({ value: e, max: t = 100, label: r, color: a }, o) => {
|
|
|
1083
1091
|
type: "info"
|
|
1084
1092
|
},
|
|
1085
1093
|
Qa
|
|
1086
|
-
), $r =
|
|
1094
|
+
), $r = Ht, Br = Be, Mr = ["default", "outline", "neutral"], Rr = Be, zr = ["sm", "md", "lg"], Kr = Yt, de = ({ count: e, list: t }) => {
|
|
1087
1095
|
const [r, a] = T(!1), o = n(Z, {
|
|
1088
1096
|
label: `+${e}`
|
|
1089
1097
|
});
|
|
@@ -1151,7 +1159,7 @@ const qr = We("F0ChipList", lt), ct = V(({ value: e, onDateChange: t, granularit
|
|
|
1151
1159
|
const g = (x) => Qt(x, r, {
|
|
1152
1160
|
minDate: o,
|
|
1153
1161
|
maxDate: i
|
|
1154
|
-
}),
|
|
1162
|
+
}), A = (x, b) => {
|
|
1155
1163
|
if (x === "") {
|
|
1156
1164
|
t == null || t({
|
|
1157
1165
|
value: void 0,
|
|
@@ -1164,8 +1172,8 @@ const qr = We("F0ChipList", lt), ct = V(({ value: e, onDateChange: t, granularit
|
|
|
1164
1172
|
value: w,
|
|
1165
1173
|
granularity: b.key
|
|
1166
1174
|
}), h(!1)) : h(!0);
|
|
1167
|
-
},
|
|
1168
|
-
|
|
1175
|
+
}, N = () => {
|
|
1176
|
+
A(m, r);
|
|
1169
1177
|
};
|
|
1170
1178
|
return n(ae, {
|
|
1171
1179
|
children: n(Xt, {
|
|
@@ -1174,17 +1182,17 @@ const qr = We("F0ChipList", lt), ct = V(({ value: e, onDateChange: t, granularit
|
|
|
1174
1182
|
ref: s,
|
|
1175
1183
|
onFocus: () => a == null ? void 0 : a(!0),
|
|
1176
1184
|
onClear: () => {
|
|
1177
|
-
l == null || l(), c(""),
|
|
1185
|
+
l == null || l(), c(""), A("", r);
|
|
1178
1186
|
},
|
|
1179
1187
|
onKeyDown: (x) => {
|
|
1180
|
-
x.key === "Enter" &&
|
|
1188
|
+
x.key === "Enter" && N();
|
|
1181
1189
|
},
|
|
1182
1190
|
type: "text",
|
|
1183
1191
|
onChange: (x) => {
|
|
1184
1192
|
c(x);
|
|
1185
1193
|
},
|
|
1186
1194
|
error: f || d.error,
|
|
1187
|
-
onBlur:
|
|
1195
|
+
onBlur: N,
|
|
1188
1196
|
value: m,
|
|
1189
1197
|
onClickContent: () => a == null ? void 0 : a(!0)
|
|
1190
1198
|
})
|
|
@@ -1196,7 +1204,7 @@ function cr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"]
|
|
|
1196
1204
|
B(() => {
|
|
1197
1205
|
f(l);
|
|
1198
1206
|
}, [l]);
|
|
1199
|
-
const h = Ge(), u = ie(() => a[0] ?? "day", [a]), g =
|
|
1207
|
+
const h = Ge(), u = ie(() => a[0] ?? "day", [a]), g = Ae((y) => {
|
|
1200
1208
|
const v = y || u;
|
|
1201
1209
|
if (!Pe[v])
|
|
1202
1210
|
throw new Error(`Invalid granularity ${v}`);
|
|
@@ -1204,7 +1212,7 @@ function cr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"]
|
|
|
1204
1212
|
...Pe[v],
|
|
1205
1213
|
key: v
|
|
1206
1214
|
};
|
|
1207
|
-
}, [u]),
|
|
1215
|
+
}, [u]), A = Ae((y) => {
|
|
1208
1216
|
var L;
|
|
1209
1217
|
if (!y)
|
|
1210
1218
|
return;
|
|
@@ -1213,16 +1221,16 @@ function cr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"]
|
|
|
1213
1221
|
value: v.toRange(v.calendarMode === "range" ? y.value : ((L = y.value) == null ? void 0 : L.from) ?? void 0),
|
|
1214
1222
|
granularity: y.granularity
|
|
1215
1223
|
} : void 0;
|
|
1216
|
-
}, [g]),
|
|
1224
|
+
}, [g]), N = ie(() => g(s == null ? void 0 : s.granularity), [s == null ? void 0 : s.granularity, g]);
|
|
1217
1225
|
B(() => {
|
|
1218
|
-
const y =
|
|
1226
|
+
const y = A(t);
|
|
1219
1227
|
se(s, y) || m(y);
|
|
1220
1228
|
}, [t]);
|
|
1221
|
-
const
|
|
1222
|
-
const v =
|
|
1229
|
+
const O = (y) => {
|
|
1230
|
+
const v = A(y), D = g(v == null ? void 0 : v.granularity).calendarMode !== "range" && (v == null ? void 0 : v.granularity) === (s == null ? void 0 : s.granularity) && !se(v, s);
|
|
1223
1231
|
x(v), D && f(!1);
|
|
1224
1232
|
}, x = (y) => {
|
|
1225
|
-
const v =
|
|
1233
|
+
const v = A(y);
|
|
1226
1234
|
if (m(v), !se(v, s)) {
|
|
1227
1235
|
const L = g(v == null ? void 0 : v.granularity);
|
|
1228
1236
|
e == null || e(v, L.toString(v == null ? void 0 : v.value, h));
|
|
@@ -1238,7 +1246,7 @@ function cr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"]
|
|
|
1238
1246
|
});
|
|
1239
1247
|
}, [c]), n(ea, {
|
|
1240
1248
|
hideCalendarInput: !0,
|
|
1241
|
-
onSelect:
|
|
1249
|
+
onSelect: O,
|
|
1242
1250
|
value: s,
|
|
1243
1251
|
presets: w,
|
|
1244
1252
|
granularities: a,
|
|
@@ -1251,7 +1259,7 @@ function cr({ onChange: e, value: t, presets: r = [], granularities: a = ["day"]
|
|
|
1251
1259
|
ref: S,
|
|
1252
1260
|
...d,
|
|
1253
1261
|
value: s,
|
|
1254
|
-
granularity:
|
|
1262
|
+
granularity: N,
|
|
1255
1263
|
onDateChange: x
|
|
1256
1264
|
})
|
|
1257
1265
|
});
|
|
@@ -1344,10 +1352,10 @@ ut.displayName = "StandardLayout";
|
|
|
1344
1352
|
const Vr = I({
|
|
1345
1353
|
name: "StandardLayout",
|
|
1346
1354
|
type: "layout"
|
|
1347
|
-
}, ut),
|
|
1355
|
+
}, ut), Hr = I({
|
|
1348
1356
|
name: "TwoColumnLayout",
|
|
1349
1357
|
type: "layout"
|
|
1350
|
-
}, fr),
|
|
1358
|
+
}, fr), Yr = I({
|
|
1351
1359
|
name: "HomeLayout",
|
|
1352
1360
|
type: "layout"
|
|
1353
1361
|
}, dr), hr = ({ benefits: e }) => n("div", {
|
|
@@ -1382,7 +1390,7 @@ const Vr = I({
|
|
|
1382
1390
|
className: "flex flex-col gap-2",
|
|
1383
1391
|
children: [C("div", {
|
|
1384
1392
|
className: "flex flex-row items-center gap-2",
|
|
1385
|
-
children: [i && n(
|
|
1393
|
+
children: [i && n(He, {
|
|
1386
1394
|
module: i
|
|
1387
1395
|
}), l && n("p", {
|
|
1388
1396
|
className: "text-base font-medium text-f1-foreground",
|
|
@@ -1428,13 +1436,13 @@ function yr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalCon
|
|
|
1428
1436
|
className: "flex flex-row items-center justify-between px-4 py-4",
|
|
1429
1437
|
children: [C(ua, {
|
|
1430
1438
|
className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
|
|
1431
|
-
children: [o && n(
|
|
1439
|
+
children: [o && n(He, {
|
|
1432
1440
|
module: o,
|
|
1433
1441
|
size: "lg"
|
|
1434
1442
|
}), r]
|
|
1435
1443
|
}), n(da, {
|
|
1436
1444
|
variant: "outline",
|
|
1437
|
-
icon:
|
|
1445
|
+
icon: Ye,
|
|
1438
1446
|
onClick: t,
|
|
1439
1447
|
label: "Close modal",
|
|
1440
1448
|
hideLabel: !0
|
|
@@ -1449,14 +1457,14 @@ function yr({ isOpen: e, onClose: t, title: r, children: a, module: o, portalCon
|
|
|
1449
1457
|
})
|
|
1450
1458
|
});
|
|
1451
1459
|
}
|
|
1452
|
-
function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessage: i, successMessage: l, loadingState: d, nextSteps: s, closeLabel: m, primaryAction: c, modalTitle: f, modalModule: h, secondaryAction: u, portalContainer: g, tag:
|
|
1460
|
+
function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessage: i, successMessage: l, loadingState: d, nextSteps: s, closeLabel: m, primaryAction: c, modalTitle: f, modalModule: h, secondaryAction: u, portalContainer: g, tag: A, promoTag: N, showResponseDialog: O = !0 }) {
|
|
1453
1461
|
const [x, b] = T(e), [w, S] = T(null), [y, v] = T(!1), L = async () => {
|
|
1454
1462
|
if (c != null && c.onClick) {
|
|
1455
1463
|
v(!0);
|
|
1456
1464
|
try {
|
|
1457
|
-
await c.onClick(), b(!1),
|
|
1465
|
+
await c.onClick(), b(!1), O && S("success");
|
|
1458
1466
|
} catch {
|
|
1459
|
-
|
|
1467
|
+
O && S("error");
|
|
1460
1468
|
} finally {
|
|
1461
1469
|
v(!1);
|
|
1462
1470
|
}
|
|
@@ -1478,8 +1486,8 @@ function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessa
|
|
|
1478
1486
|
image: a,
|
|
1479
1487
|
benefits: o,
|
|
1480
1488
|
withShadow: !1,
|
|
1481
|
-
tag:
|
|
1482
|
-
promoTag:
|
|
1489
|
+
tag: A,
|
|
1490
|
+
promoTag: N,
|
|
1483
1491
|
actions: C("div", {
|
|
1484
1492
|
className: "flex gap-3",
|
|
1485
1493
|
children: [c && n(M, {
|
|
@@ -1499,7 +1507,7 @@ function Ur({ isOpen: e, onClose: t, title: r, image: a, benefits: o, errorMessa
|
|
|
1499
1507
|
})
|
|
1500
1508
|
})
|
|
1501
1509
|
})
|
|
1502
|
-
}), w &&
|
|
1510
|
+
}), w && O && n(Ue, {
|
|
1503
1511
|
open: !0,
|
|
1504
1512
|
onClose: () => {
|
|
1505
1513
|
D(), S(null);
|
|
@@ -1532,7 +1540,7 @@ function br({ mediaUrl: e, title: t, description: r, onClose: a, dismissible: o,
|
|
|
1532
1540
|
className: "absolute right-2 top-2 z-10",
|
|
1533
1541
|
children: n(M, {
|
|
1534
1542
|
variant: "ghost",
|
|
1535
|
-
icon:
|
|
1543
|
+
icon: Ye,
|
|
1536
1544
|
size: "sm",
|
|
1537
1545
|
hideLabel: !0,
|
|
1538
1546
|
onClick: f,
|
|
@@ -1614,9 +1622,9 @@ const gr = V(function({ primaryAction: t, secondaryAction: r, ...a }, o) {
|
|
|
1614
1622
|
});
|
|
1615
1623
|
});
|
|
1616
1624
|
gr.displayName = "UpsellingBanner";
|
|
1617
|
-
function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o = "md", showIcon: i = !0, side: l = "right", align: d = "center", icon: s = va, mediaUrl: m, title: c, description: f, width: h = "300px", trackVisibility: u, actions: g, onClick:
|
|
1618
|
-
const [
|
|
1619
|
-
t(P),
|
|
1625
|
+
function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o = "md", showIcon: i = !0, side: l = "right", align: d = "center", icon: s = va, mediaUrl: m, title: c, description: f, width: h = "300px", trackVisibility: u, actions: g, onClick: A, hideLabel: N = !1 }) {
|
|
1626
|
+
const [O, x] = T(!1), [b, w] = T(null), [S, y] = T(null), v = (P) => {
|
|
1627
|
+
t(P), A && A();
|
|
1620
1628
|
}, L = async (P) => {
|
|
1621
1629
|
if (P.type === "upsell") {
|
|
1622
1630
|
y(P);
|
|
@@ -1628,7 +1636,7 @@ function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o
|
|
|
1628
1636
|
}
|
|
1629
1637
|
}, D = () => {
|
|
1630
1638
|
w(null), x(!1), y(null), t(!1);
|
|
1631
|
-
}, E = e && !
|
|
1639
|
+
}, E = e && !O, p = g == null ? void 0 : g.map((P) => P.type === "upsell" ? {
|
|
1632
1640
|
...P,
|
|
1633
1641
|
onClick: () => L(P)
|
|
1634
1642
|
} : P);
|
|
@@ -1644,7 +1652,7 @@ function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o
|
|
|
1644
1652
|
size: o,
|
|
1645
1653
|
icon: i ? s : void 0,
|
|
1646
1654
|
onClick: () => t(e),
|
|
1647
|
-
hideLabel:
|
|
1655
|
+
hideLabel: N
|
|
1648
1656
|
})
|
|
1649
1657
|
}), n(ze, {
|
|
1650
1658
|
side: l,
|
|
@@ -1676,7 +1684,7 @@ function Jr({ isOpen: e, setIsOpen: t, label: r, variant: a = "promote", size: o
|
|
|
1676
1684
|
}
|
|
1677
1685
|
const xr = Ta(null), wr = ({ children: e, fullScreen: t = !0 }) => {
|
|
1678
1686
|
const r = pe(null), [a, o] = T(r.current);
|
|
1679
|
-
return
|
|
1687
|
+
return Na(() => {
|
|
1680
1688
|
o(r.current);
|
|
1681
1689
|
}, []), n(xr.Provider, {
|
|
1682
1690
|
value: {
|
|
@@ -1691,7 +1699,7 @@ const xr = Ta(null), wr = ({ children: e, fullScreen: t = !0 }) => {
|
|
|
1691
1699
|
children: e
|
|
1692
1700
|
})
|
|
1693
1701
|
});
|
|
1694
|
-
}, Sr = ({ children: e }) => n(
|
|
1702
|
+
}, Sr = ({ children: e }) => n(Aa, {
|
|
1695
1703
|
reducedMotion: "user",
|
|
1696
1704
|
children: e
|
|
1697
1705
|
}), Xr = ({ children: e, layout: t, link: r, privacyModeInitiallyEnabled: a, image: o, i18n: i, l10n: l, isDev: d = !1, dataCollectionStorageHandler: s, showExperimentalWarnings: m = !1 }) => n(Sr, {
|
|
@@ -1747,7 +1755,7 @@ export {
|
|
|
1747
1755
|
un as F0AvatarFile,
|
|
1748
1756
|
dn as F0AvatarIcon,
|
|
1749
1757
|
fn as F0AvatarList,
|
|
1750
|
-
|
|
1758
|
+
He as F0AvatarModule,
|
|
1751
1759
|
pn as F0AvatarPerson,
|
|
1752
1760
|
mn as F0AvatarTeam,
|
|
1753
1761
|
M as F0Button,
|
|
@@ -1765,13 +1773,13 @@ export {
|
|
|
1765
1773
|
Sn as F0TagBalance,
|
|
1766
1774
|
Pn as F0TagCompany,
|
|
1767
1775
|
Cn as F0TagDot,
|
|
1768
|
-
|
|
1769
|
-
|
|
1776
|
+
An as F0TagList,
|
|
1777
|
+
Nn as F0TagPerson,
|
|
1770
1778
|
na as F0TagRaw,
|
|
1771
1779
|
oa as F0TagStatus,
|
|
1772
|
-
|
|
1780
|
+
On as F0TagTeam,
|
|
1773
1781
|
kn as GROUP_ID_SYMBOL,
|
|
1774
|
-
|
|
1782
|
+
Yr as HomeLayout,
|
|
1775
1783
|
Fr as LineChart,
|
|
1776
1784
|
Ln as OneFilterPicker,
|
|
1777
1785
|
Ir as PieChart,
|
|
@@ -1783,13 +1791,13 @@ export {
|
|
|
1783
1791
|
_r as ProgressBarChart,
|
|
1784
1792
|
Vr as StandardLayout,
|
|
1785
1793
|
Dn as TagCounter,
|
|
1786
|
-
|
|
1794
|
+
Hr as TwoColumnLayout,
|
|
1787
1795
|
Ue as UpsellRequestResponseDialog,
|
|
1788
1796
|
gr as UpsellingBanner,
|
|
1789
1797
|
Je as UpsellingButton,
|
|
1790
1798
|
Jr as UpsellingPopover,
|
|
1791
1799
|
Er as VerticalBarChart,
|
|
1792
|
-
|
|
1800
|
+
Or as avatarVariants,
|
|
1793
1801
|
Fn as buildTranslations,
|
|
1794
1802
|
Rr as buttonDropdownSizes,
|
|
1795
1803
|
Mr as buttonDropdownVariants,
|
|
@@ -1800,7 +1808,7 @@ export {
|
|
|
1800
1808
|
En as createDataSourceDefinition,
|
|
1801
1809
|
Zr as dataCollectionLocalStorageHandler,
|
|
1802
1810
|
Wr as datepickerSizes,
|
|
1803
|
-
|
|
1811
|
+
Nr as defaultTranslations,
|
|
1804
1812
|
We as experimental,
|
|
1805
1813
|
_n as getAnimationVariants,
|
|
1806
1814
|
jn as getDataSourcePaginationType,
|
|
@@ -1815,8 +1823,8 @@ export {
|
|
|
1815
1823
|
Wn as useDataSource,
|
|
1816
1824
|
Gn as useDndEvents,
|
|
1817
1825
|
Vn as useDraggable,
|
|
1818
|
-
|
|
1819
|
-
|
|
1826
|
+
Hn as useDroppableList,
|
|
1827
|
+
Yn as useEmojiConfetti,
|
|
1820
1828
|
Un as useGroups,
|
|
1821
1829
|
Jn as usePrivacyMode,
|
|
1822
1830
|
Xn as useReducedMotion,
|