@factorialco/f0-react 1.423.0 → 1.424.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/{F0HILActionConfirmation-CcDsCCLa.js → F0HILActionConfirmation-Ubb7Zvx9.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +16 -1
- package/dist/experimental.js +450 -450
- package/dist/f0.d.ts +16 -1
- package/dist/f0.js +68 -68
- package/dist/{index-DtTD2awb.js → index-BJIDVQvo.js} +3235 -3245
- package/dist/{registry-Cfsd-zAT.js → registry-DuKzJwXp.js} +8522 -8470
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -3628,7 +3628,7 @@ export declare type DurationUnit = (typeof durationUnits)[number];
|
|
|
3628
3628
|
export declare const durationUnits: readonly ["days", "hours", "minutes", "seconds"];
|
|
3629
3629
|
|
|
3630
3630
|
/** The edit mode for a column cell in the editable table. */
|
|
3631
|
-
declare type EditableTableCellEditType = "text" | "date" | "select" | "multiselect" | "display-only" | "disabled";
|
|
3631
|
+
declare type EditableTableCellEditType = "text" | "number" | "date" | "select" | "multiselect" | "display-only" | "disabled";
|
|
3632
3632
|
|
|
3633
3633
|
declare type EditableTableCollectionProps<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<R>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<R>> = CollectionProps<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, EditableTableVisualizationOptions<R, Filters, Sortings, Summaries>>;
|
|
3634
3634
|
|
|
@@ -3660,6 +3660,12 @@ declare type EditableTableColumnDefinition<R extends RecordType, Sortings extend
|
|
|
3660
3660
|
* function whose return value isn't statically known.
|
|
3661
3661
|
*/
|
|
3662
3662
|
selectConfig?: SelectCellConfig<R>;
|
|
3663
|
+
/**
|
|
3664
|
+
* Configuration for `"number"` cells. Accepts constraints (`min`, `max`),
|
|
3665
|
+
* stepping (`step`), formatting (`maxDecimals`, `locale`), and units.
|
|
3666
|
+
* Falls back to sensible defaults when omitted.
|
|
3667
|
+
*/
|
|
3668
|
+
numberConfig?: NumberCellConfig;
|
|
3663
3669
|
};
|
|
3664
3670
|
|
|
3665
3671
|
declare type EditableTableVisualizationOptions<R extends RecordType, _Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = Omit<TableVisualizationOptions<R, _Filters, Sortings, Summaries>, "columns"> & {
|
|
@@ -8111,6 +8117,15 @@ export declare interface NextStepsProps {
|
|
|
8111
8117
|
items: StepItemProps[];
|
|
8112
8118
|
}
|
|
8113
8119
|
|
|
8120
|
+
declare type NumberCellConfig = {
|
|
8121
|
+
min?: number;
|
|
8122
|
+
max?: number;
|
|
8123
|
+
step?: number;
|
|
8124
|
+
maxDecimals?: number;
|
|
8125
|
+
locale?: string;
|
|
8126
|
+
units?: string;
|
|
8127
|
+
};
|
|
8128
|
+
|
|
8114
8129
|
/**
|
|
8115
8130
|
* All valid renderIf conditions for number fields
|
|
8116
8131
|
*/
|
package/dist/f0.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { O as Oo, P as ye, Q as vt, K as W, L as nn, R as Gn, T as Eo, U as ha, W as si, X as Bu, Y as Io, Z as Pe, u as Te, _ as ht, $ as rr, a0 as Vu, a1 as $u, a2 as _r, a3 as ot, a4 as sr, a5 as zu, a6 as qu, a7 as Zu, a8 as $n, a9 as ys, aa as Wu, ab as Uu, ac as Qu, ad as ai, ae as Hu, af as Gu, ag as Ro, ah as Ku, ai as pa, aj as ga, ak as Kr, al as va, am as Po, an as kr, ao as Lo, ap as Xu, aq as Yu, ar as Ju, as as ed, at as ba, au as ii, av as td, aw as nd, ax as rd, ay as Mo, az as sd, M as Be, aA as ad, aB as ya, aC as xa, aD as jo, aE as Xr, aF as id, aG as od, aH as ar, aI as wa, aJ as
|
|
2
|
-
import {
|
|
1
|
+
import { O as Oo, P as ye, Q as vt, K as W, L as nn, R as Gn, T as Eo, U as ha, W as si, X as Bu, Y as Io, Z as Pe, u as Te, _ as ht, $ as rr, a0 as Vu, a1 as $u, a2 as _r, a3 as ot, a4 as sr, a5 as zu, a6 as qu, a7 as Zu, a8 as $n, a9 as ys, aa as Wu, ab as Uu, ac as Qu, ad as ai, ae as Hu, af as Gu, ag as Ro, ah as Ku, ai as pa, aj as ga, ak as Kr, al as va, am as Po, an as kr, ao as Lo, ap as Xu, aq as Yu, ar as Ju, as as ed, at as ba, au as ii, av as td, aw as nd, ax as rd, ay as Mo, az as sd, M as Be, aA as ad, aB as ya, aC as xa, aD as jo, aE as Xr, aF as id, aG as od, aH as ar, aI as wa, aJ as Bo, aK as vn, aL as Vo, aM as ld, aN as Sa, aO as cd, aP as $o, aQ as zo, N as Kn, aR as ud, aS as Zs, aT as qo, aU as dd, aV as Zo, aW as yn, aX as Wo, aY as fd, aZ as md, a_ as Uo, a$ as hd, b0 as pd, b1 as gd, b2 as Qo, b3 as vd, b4 as bd, b5 as yd, b6 as xd, j as wd, b7 as Sd, b8 as Ho, b9 as Go, ba as Ko, bb as Xo, bc as Cr, bd as Yo, be as _a, bf as ka, bg as _d, bh as kd, bi as Cd, bj as Nd, bk as xs, bl as Jo, bm as Dd, bn as Nr, bo as Dr, bp as Ht, bq as oi, br as li, bs as el, bt as ci, bu as ui, bv as Yr, bw as tl, bx as Ca, by as Na, bz as Ad, bA as Fd, bB as Td, bC as Od, bD as Ed, bE as nl, bF as Id, bG as Rd, bH as Pd, bI as Ld, bJ as rl, bK as Md, bL as jd, bM as Bd, bN as sl, bO as Vd, bP as $d, bQ as zd, bR as qd, I as Zd, bS as Wd, bT as Ud, bU as Qd, bV as Hd, bW as Gd, bX as Kd } from "./registry-DuKzJwXp.js";
|
|
2
|
+
import { cl as J0, i as ew, cx as tw, cF as nw, h as rw, F as sw, a as aw, C as iw, b as ow, bY as lw, bZ as cw, b_ as uw, b$ as dw, c0 as fw, c1 as mw, c3 as hw, c4 as pw, c5 as gw, c6 as vw, ca as bw, cb as yw, cB as xw, k as ww, ce as Sw, cf as _w, cg as kw, ch as Cw, cj as Nw, ck as Dw, cm as Aw, cd as Fw, ci as Tw, cC as Ow, c7 as Ew, c8 as Iw, c9 as Rw, cw as Pw, cr as Lw, cu as Mw, g as jw, cq as Bw, cG as Vw, cp as $w, co as zw, c2 as qw, c as Zw, cn as Ww, cs as Uw, d as Qw, cy as Hw, cz as Gw, cA as Kw, cH as Xw, cc as Yw, ct as Jw, f as e1, e as t1, cE as n1, cv as r1, cD as s1 } from "./registry-DuKzJwXp.js";
|
|
3
3
|
import { jsx as c, jsxs as T, Fragment as pt } from "react/jsx-runtime";
|
|
4
4
|
import * as St from "react";
|
|
5
|
-
import H, { forwardRef as rt, useRef as Q, useImperativeHandle as Xd, Children as Ar, useCallback as P, useMemo as B, useState as ee, useEffect as le, createElement as fr, isValidElement as
|
|
5
|
+
import H, { forwardRef as rt, useRef as Q, useImperativeHandle as Xd, Children as Ar, useCallback as P, useMemo as B, useState as ee, useEffect as le, createElement as fr, isValidElement as al, Fragment as il, useLayoutEffect as Yd, createContext as Ot, memo as ol, useReducer as Jd, useContext as tt, cloneElement as ef, PureComponent as tf, useId as Da } from "react";
|
|
6
6
|
import { unstable_batchedUpdates as mr, createPortal as nf, flushSync as rf } from "react-dom";
|
|
7
|
-
import { C as sf, S as di, a as af, f as ws, L as Pn, b as of, A as lf, i as hr, c as
|
|
8
|
-
import {
|
|
9
|
-
import { A as f1, F as m1, c as h1, d as p1, b as g1, a as v1, o as b1, u as y1 } from "./F0HILActionConfirmation-
|
|
7
|
+
import { C as sf, S as di, a as af, f as ws, L as Pn, b as of, A as lf, i as hr, c as ll, E as cf, g as yr, d as uf, e as df, h as ff, j as pn, k as cl, u as mf, G as hf, l as pf, m as fi, r as gf, n as vf, o as ul, p as bf, B as dl, X as fl, Y as Ws, q as yf, s as ml, t as xf, v as wf, w as Sf, x as _f, y as kf, z as Cf, D as Nf, F as Df, H as mi, I as Af, J as Ff, K as Tf, M as Of, N as Ef, O as If, P as Rf, Q as Pf, V as Lf, R as Us, T as Mf, U as jf, W as Bf, Z as hl, _ as Aa, $ as pl, a0 as Vf, a1 as $f, a2 as zf, a3 as qf, a4 as Zf, a5 as Wf, a6 as Uf } from "./index-BJIDVQvo.js";
|
|
8
|
+
import { a7 as i1, aa as o1, a8 as l1, a9 as c1, ab as u1 } from "./index-BJIDVQvo.js";
|
|
9
|
+
import { A as f1, F as m1, c as h1, d as p1, b as g1, a as v1, o as b1, u as y1 } from "./F0HILActionConfirmation-Ubb7Zvx9.js";
|
|
10
10
|
import { defaultTranslations as w1 } from "./i18n-provider-defaults.js";
|
|
11
11
|
const Qf = {
|
|
12
12
|
xs: 1,
|
|
@@ -779,7 +779,7 @@ const mm = ({
|
|
|
779
779
|
}, hm = tm(
|
|
780
780
|
"BlockContent",
|
|
781
781
|
mm
|
|
782
|
-
), pm = (e) => !
|
|
782
|
+
), pm = (e) => !al(e) || !e.type || typeof e.type == "string" || typeof e.type == "symbol" ? !1 : "__isPageLayoutBlock" in e.type, gm = (e) => !al(e) || !e.type || typeof e.type == "string" || typeof e.type == "symbol" ? !1 : "__isPageLayoutGroup" in e.type, _l = (e, t, n) => {
|
|
783
783
|
const r = Ar.toArray(t);
|
|
784
784
|
for (const s of r)
|
|
785
785
|
n.includes("block") && pm(s) || n.includes("group") && gm(s) || console.warn(
|
|
@@ -794,7 +794,7 @@ const mm = ({
|
|
|
794
794
|
a(Ar.toArray(e));
|
|
795
795
|
}, [e]), le(() => {
|
|
796
796
|
t?.(s);
|
|
797
|
-
}, [s, t]), /* @__PURE__ */ c("div", { ref: r, ...n, children: s.map((i, o) => /* @__PURE__ */ c(
|
|
797
|
+
}, [s, t]), /* @__PURE__ */ c("div", { ref: r, ...n, children: s.map((i, o) => /* @__PURE__ */ c(il, { children: i }, o)) });
|
|
798
798
|
}
|
|
799
799
|
);
|
|
800
800
|
Ta.displayName = "GroupLinear";
|
|
@@ -2831,7 +2831,7 @@ var Ut;
|
|
|
2831
2831
|
(function(e) {
|
|
2832
2832
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2833
2833
|
})(Ut || (Ut = {}));
|
|
2834
|
-
const Th = /* @__PURE__ */
|
|
2834
|
+
const Th = /* @__PURE__ */ ol(function(t) {
|
|
2835
2835
|
var n, r, s, a;
|
|
2836
2836
|
let {
|
|
2837
2837
|
id: i,
|
|
@@ -4477,7 +4477,7 @@ var ur = /* @__PURE__ */ (function(e) {
|
|
|
4477
4477
|
var r = this.props.isAnimationActive;
|
|
4478
4478
|
if (r && !this.state.isAnimationFinished)
|
|
4479
4479
|
return null;
|
|
4480
|
-
var s = this.props, a = s.points, i = s.xAxis, o = s.yAxis, l = s.children, u =
|
|
4480
|
+
var s = this.props, a = s.points, i = s.xAxis, o = s.yAxis, l = s.children, u = ll(l, cf);
|
|
4481
4481
|
return u ? u.map(function(d, f) {
|
|
4482
4482
|
var h = d.props, m = h.direction, x = h.dataKey;
|
|
4483
4483
|
return /* @__PURE__ */ H.cloneElement(d, {
|
|
@@ -4552,7 +4552,7 @@ var ur = /* @__PURE__ */ (function(e) {
|
|
|
4552
4552
|
height: b ? m : m * 2
|
|
4553
4553
|
}))) : null, i && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ H.createElement(Pn, {
|
|
4554
4554
|
key: "recharts-scatter-symbols"
|
|
4555
|
-
}, this.renderSymbols()), (!w || g) &&
|
|
4555
|
+
}, this.renderSymbols()), (!w || g) && cl.renderCallByParent(this.props, a));
|
|
4556
4556
|
}
|
|
4557
4557
|
}], [{
|
|
4558
4558
|
key: "getDerivedStateFromProps",
|
|
@@ -4584,7 +4584,7 @@ Kt(ur, "defaultProps", {
|
|
|
4584
4584
|
animationEasing: "linear"
|
|
4585
4585
|
});
|
|
4586
4586
|
Kt(ur, "getComposedData", function(e) {
|
|
4587
|
-
var t = e.xAxis, n = e.yAxis, r = e.zAxis, s = e.item, a = e.displayedData, i = e.xAxisTicks, o = e.yAxisTicks, l = e.offset, u = s.props.tooltipType, d =
|
|
4587
|
+
var t = e.xAxis, n = e.yAxis, r = e.zAxis, s = e.item, a = e.displayedData, i = e.xAxisTicks, o = e.yAxisTicks, l = e.offset, u = s.props.tooltipType, d = ll(s.props.children, pf), f = pn(t.dataKey) ? s.props.dataKey : t.dataKey, h = pn(n.dataKey) ? s.props.dataKey : n.dataKey, m = r && r.dataKey, x = r ? r.range : os.defaultProps.range, w = x && x[0], g = t.scale.bandwidth ? t.scale.bandwidth() : 0, v = n.scale.bandwidth ? n.scale.bandwidth() : 0, p = a.map(function(b, C) {
|
|
4588
4588
|
var _ = yr(b, f), S = yr(b, h), k = !pn(m) && yr(b, m) || "-", D = [{
|
|
4589
4589
|
name: pn(t.dataKey) ? s.props.name : t.name || t.dataKey,
|
|
4590
4590
|
unit: t.unit || "",
|
|
@@ -4664,10 +4664,10 @@ function Op() {
|
|
|
4664
4664
|
}
|
|
4665
4665
|
var Ep = vf({
|
|
4666
4666
|
chartName: "ComposedChart",
|
|
4667
|
-
GraphicalChild: [
|
|
4667
|
+
GraphicalChild: [ul, bf, dl, ur],
|
|
4668
4668
|
axisComponents: [{
|
|
4669
4669
|
axisType: "xAxis",
|
|
4670
|
-
AxisComp:
|
|
4670
|
+
AxisComp: fl
|
|
4671
4671
|
}, {
|
|
4672
4672
|
axisType: "yAxis",
|
|
4673
4673
|
AxisComp: Ws
|
|
@@ -4803,7 +4803,7 @@ const Ip = (e) => {
|
|
|
4803
4803
|
}
|
|
4804
4804
|
),
|
|
4805
4805
|
/* @__PURE__ */ c(
|
|
4806
|
-
|
|
4806
|
+
fl,
|
|
4807
4807
|
{
|
|
4808
4808
|
...Af(n),
|
|
4809
4809
|
hide: n?.hide,
|
|
@@ -4837,7 +4837,7 @@ const Ip = (e) => {
|
|
|
4837
4837
|
}
|
|
4838
4838
|
),
|
|
4839
4839
|
g.map((k, D) => /* @__PURE__ */ c(
|
|
4840
|
-
|
|
4840
|
+
dl,
|
|
4841
4841
|
{
|
|
4842
4842
|
isAnimationActive: !1,
|
|
4843
4843
|
dataKey: String(k),
|
|
@@ -4845,7 +4845,7 @@ const Ip = (e) => {
|
|
|
4845
4845
|
radius: 4,
|
|
4846
4846
|
maxBarSize: 32,
|
|
4847
4847
|
children: s && /* @__PURE__ */ c(
|
|
4848
|
-
|
|
4848
|
+
cl,
|
|
4849
4849
|
{
|
|
4850
4850
|
position: "top",
|
|
4851
4851
|
offset: 10,
|
|
@@ -4858,7 +4858,7 @@ const Ip = (e) => {
|
|
|
4858
4858
|
`bar-${String(k)}`
|
|
4859
4859
|
)),
|
|
4860
4860
|
v.map((k, D) => /* @__PURE__ */ c(
|
|
4861
|
-
|
|
4861
|
+
ul,
|
|
4862
4862
|
{
|
|
4863
4863
|
type: f?.lineType ?? "natural",
|
|
4864
4864
|
dataKey: String(k),
|
|
@@ -4897,7 +4897,7 @@ const Ip = (e) => {
|
|
|
4897
4897
|
]
|
|
4898
4898
|
}
|
|
4899
4899
|
) });
|
|
4900
|
-
}, Pp =
|
|
4900
|
+
}, Pp = ml(Rp), Lp = ({ value: e, max: t = 100, label: n, color: r }, s) => {
|
|
4901
4901
|
const a = r ? $n(r) : $n("categorical-1"), i = e / t * 100;
|
|
4902
4902
|
return /* @__PURE__ */ T("div", { className: "flex items-center space-x-2", "aria-live": "polite", children: [
|
|
4903
4903
|
/* @__PURE__ */ c("div", { className: "flex-grow", children: /* @__PURE__ */ c(
|
|
@@ -4914,7 +4914,7 @@ const Ip = (e) => {
|
|
|
4914
4914
|
) }),
|
|
4915
4915
|
n && /* @__PURE__ */ c("div", { className: "flex-shrink-0 text-sm font-medium", children: n })
|
|
4916
4916
|
] });
|
|
4917
|
-
}, Mp =
|
|
4917
|
+
}, Mp = ml(Lp), l0 = ye(
|
|
4918
4918
|
vt({ name: "AreaChart", type: "info" }, Of)
|
|
4919
4919
|
), c0 = ye(
|
|
4920
4920
|
vt({ name: "BarChart", type: "info" }, Ef)
|
|
@@ -6317,7 +6317,7 @@ const og = {
|
|
|
6317
6317
|
"data-disabled": m ? "" : void 0,
|
|
6318
6318
|
children: _.map(($, K) => {
|
|
6319
6319
|
const J = f?.[$]?.max, Ce = k[$], ae = f?.[$]?.suffix ?? og[$], pe = Ce > 0 ? String(Ce) : "", ge = f?.[$]?.maxVisibleDigits, ue = typeof ge == "number" && Number.isFinite(ge) ? Math.max(1, Math.floor(ge)) : cg;
|
|
6320
|
-
return /* @__PURE__ */ T(
|
|
6320
|
+
return /* @__PURE__ */ T(il, { children: [
|
|
6321
6321
|
K > 0 && /* @__PURE__ */ c(
|
|
6322
6322
|
ht,
|
|
6323
6323
|
{
|
|
@@ -11159,7 +11159,7 @@ function Rv({
|
|
|
11159
11159
|
status: s
|
|
11160
11160
|
}) {
|
|
11161
11161
|
return /* @__PURE__ */ c(
|
|
11162
|
-
|
|
11162
|
+
Bo,
|
|
11163
11163
|
{
|
|
11164
11164
|
...t,
|
|
11165
11165
|
label: e.label,
|
|
@@ -11347,7 +11347,7 @@ function Vv({
|
|
|
11347
11347
|
}) {
|
|
11348
11348
|
const n = e.validation && Bv(e.validation);
|
|
11349
11349
|
return /* @__PURE__ */ c(
|
|
11350
|
-
|
|
11350
|
+
Vo,
|
|
11351
11351
|
{
|
|
11352
11352
|
...t,
|
|
11353
11353
|
title: e.label,
|
|
@@ -11761,7 +11761,7 @@ function ps({ field: e, sectionId: t }) {
|
|
|
11761
11761
|
(() => {
|
|
11762
11762
|
if (!e.alert) return null;
|
|
11763
11763
|
const p = typeof e.alert == "function" ? e.alert({ fieldValue: g.value, values: r }) : e.alert;
|
|
11764
|
-
return p ? /* @__PURE__ */ c(
|
|
11764
|
+
return p ? /* @__PURE__ */ c($o, { ...p, variant: p.variant ?? "info" }) : null;
|
|
11765
11765
|
})(),
|
|
11766
11766
|
m && !v.error && /* @__PURE__ */ c(ba, { status: e.status }),
|
|
11767
11767
|
m && /* @__PURE__ */ c(
|
|
@@ -12297,7 +12297,7 @@ function Ya({
|
|
|
12297
12297
|
onChange: m
|
|
12298
12298
|
}
|
|
12299
12299
|
),
|
|
12300
|
-
x.map(({ fieldId: p, props: b }) => /* @__PURE__ */ c(
|
|
12300
|
+
x.map(({ fieldId: p, props: b }) => /* @__PURE__ */ c($o, { ...b, variant: b.variant ?? "info" }, p))
|
|
12301
12301
|
]
|
|
12302
12302
|
}
|
|
12303
12303
|
),
|
|
@@ -12356,7 +12356,7 @@ function tu({
|
|
|
12356
12356
|
renderCustomField: f,
|
|
12357
12357
|
isLoading: h
|
|
12358
12358
|
}) {
|
|
12359
|
-
const m = Te(), x = Jc(n), w = i?.label ?? "Submit", g = i?.icon === null ? void 0 : i?.icon ??
|
|
12359
|
+
const m = Te(), x = Jc(n), w = i?.label ?? "Submit", g = i?.icon === null ? void 0 : i?.icon ?? zo, v = i?.showSubmitWhenDirty ?? !1, p = i?.hideSubmitButton ?? !1, b = B(() => eu(m), [m]), C = Jv[o], _ = B(
|
|
12360
12360
|
() => Uc(n, { errorMap: b }),
|
|
12361
12361
|
[n, b]
|
|
12362
12362
|
), S = Oc({
|
|
@@ -13736,7 +13736,7 @@ const Gb = () => {
|
|
|
13736
13736
|
), D = B(
|
|
13737
13737
|
() => b ? void 0 : {
|
|
13738
13738
|
label: S,
|
|
13739
|
-
icon:
|
|
13739
|
+
icon: qo,
|
|
13740
13740
|
onClick: g.goPrevious,
|
|
13741
13741
|
disabled: g.loading
|
|
13742
13742
|
},
|
|
@@ -14352,7 +14352,7 @@ function ay({
|
|
|
14352
14352
|
onSubmit: async ({ data: l }) => (await e.onSubmit?.(l), n(), { success: !0 })
|
|
14353
14353
|
});
|
|
14354
14354
|
return /* @__PURE__ */ c(
|
|
14355
|
-
|
|
14355
|
+
Zo,
|
|
14356
14356
|
{
|
|
14357
14357
|
isOpen: !0,
|
|
14358
14358
|
onClose: n,
|
|
@@ -15009,7 +15009,7 @@ function vu(e) {
|
|
|
15009
15009
|
isLoading: m,
|
|
15010
15010
|
defaultValuesParamsSchema: x,
|
|
15011
15011
|
defaultValuesFn: w
|
|
15012
|
-
} = e, g = f?.showSectionsSidepanel ?? !1, v = l?.type === "action-bar", p = l?.label ?? "Submit", b = l?.icon === null ? void 0 : l?.icon ??
|
|
15012
|
+
} = e, g = f?.showSectionsSidepanel ?? !1, v = l?.type === "action-bar", p = l?.label ?? "Submit", b = l?.icon === null ? void 0 : l?.icon ?? zo, C = l?.type !== "action-bar" && l?.hideSubmitButton, _ = l?.type !== "action-bar" && !!l?.hideActionBar, S = !v && !C, k = l?.type === "action-bar" && l?.discardable, D = v ? l?.discardConfig : void 0, R = D?.label ?? n.actionBar.discard, F = D?.icon === null ? void 0 : D?.icon ?? yn, I = v ? l?.actionBarLabel ?? n.actionBar.unsavedChanges : n.actionBar.unsavedChanges, N = l?.savingMessage ?? n.actionBar.saving, E = v && !!l?.centerActionBarInFrameContent, M = l?.successMessageDuration, q = Jc(s, a), ce = B(() => q.filter((_e) => _e.type === "section").map((_e) => _e.id), [q]), [te, de] = ee(
|
|
15013
15013
|
ce[0]
|
|
15014
15014
|
), ne = P(
|
|
15015
15015
|
(_e) => {
|
|
@@ -15324,7 +15324,7 @@ const M0 = ye(bu), wy = ({
|
|
|
15324
15324
|
}) => {
|
|
15325
15325
|
const { status: t, title: n, taskCount: r, completedCount: s, expanded: a, onExpandToggle: i } = e;
|
|
15326
15326
|
return /* @__PURE__ */ T(pt, { children: [
|
|
15327
|
-
/* @__PURE__ */ c(
|
|
15327
|
+
/* @__PURE__ */ c(Wo, { icon: fd, size: "sm" }),
|
|
15328
15328
|
/* @__PURE__ */ T("div", { className: "flex flex-1 items-center justify-between", children: [
|
|
15329
15329
|
/* @__PURE__ */ c(
|
|
15330
15330
|
md,
|
|
@@ -15337,7 +15337,7 @@ const M0 = ye(bu), wy = ({
|
|
|
15337
15337
|
}
|
|
15338
15338
|
),
|
|
15339
15339
|
s !== void 0 && /* @__PURE__ */ c(
|
|
15340
|
-
|
|
15340
|
+
Uo,
|
|
15341
15341
|
{
|
|
15342
15342
|
text: `${s}/${r}`,
|
|
15343
15343
|
variant: t === "completed" ? "positive" : "warning"
|
|
@@ -15397,7 +15397,7 @@ const M0 = ye(bu), wy = ({
|
|
|
15397
15397
|
const { status: t, icon: n = hd, title: r, description: s, metadata: a } = e, i = a?.some(Boolean);
|
|
15398
15398
|
return /* @__PURE__ */ T("div", { className: "flex justify-between gap-3 w-full flex-wrap", children: [
|
|
15399
15399
|
/* @__PURE__ */ T("div", { className: "flex justify-start items-center gap-3 h-8", children: [
|
|
15400
|
-
/* @__PURE__ */ c(
|
|
15400
|
+
/* @__PURE__ */ c(Wo, { icon: n, size: "sm" }),
|
|
15401
15401
|
/* @__PURE__ */ c(
|
|
15402
15402
|
"h4",
|
|
15403
15403
|
{
|
|
@@ -15424,7 +15424,7 @@ const M0 = ye(bu), wy = ({
|
|
|
15424
15424
|
)
|
|
15425
15425
|
}
|
|
15426
15426
|
), Ny = {
|
|
15427
|
-
completed: /* @__PURE__ */ c(ht, { icon:
|
|
15427
|
+
completed: /* @__PURE__ */ c(ht, { icon: Qo, color: "positive", size: "lg" }),
|
|
15428
15428
|
"in-progress": /* @__PURE__ */ c(ht, { icon: gd, size: "lg", color: "warning" }),
|
|
15429
15429
|
"not-started": /* @__PURE__ */ c(ht, { icon: pd, size: "lg", color: "secondary" })
|
|
15430
15430
|
}, yu = ({
|
|
@@ -15736,7 +15736,7 @@ const z0 = ye(
|
|
|
15736
15736
|
),
|
|
15737
15737
|
/* @__PURE__ */ c("span", { className: "font-medium", children: e.t("surveyFormBuilder.labels.applyingChanges") })
|
|
15738
15738
|
] });
|
|
15739
|
-
}, By =
|
|
15739
|
+
}, By = ol(jy);
|
|
15740
15740
|
var Vy = Op();
|
|
15741
15741
|
const bo = /* @__PURE__ */ Sd(Vy), _u = (e) => {
|
|
15742
15742
|
switch (e) {
|
|
@@ -16086,12 +16086,12 @@ const ti = () => {
|
|
|
16086
16086
|
return [
|
|
16087
16087
|
{
|
|
16088
16088
|
label: t("surveyFormBuilder.questionTypes.rating"),
|
|
16089
|
-
icon:
|
|
16089
|
+
icon: Ho,
|
|
16090
16090
|
questionType: "rating"
|
|
16091
16091
|
},
|
|
16092
16092
|
{
|
|
16093
16093
|
label: t("surveyFormBuilder.questionTypes.multipleChoice"),
|
|
16094
|
-
icon:
|
|
16094
|
+
icon: Go,
|
|
16095
16095
|
questionType: "multi-select"
|
|
16096
16096
|
},
|
|
16097
16097
|
{
|
|
@@ -16101,12 +16101,12 @@ const ti = () => {
|
|
|
16101
16101
|
},
|
|
16102
16102
|
{
|
|
16103
16103
|
label: t("surveyFormBuilder.questionTypes.text"),
|
|
16104
|
-
icon:
|
|
16104
|
+
icon: Ko,
|
|
16105
16105
|
questionType: "text"
|
|
16106
16106
|
},
|
|
16107
16107
|
{
|
|
16108
16108
|
label: t("surveyFormBuilder.questionTypes.longText"),
|
|
16109
|
-
icon:
|
|
16109
|
+
icon: Xo,
|
|
16110
16110
|
questionType: "longText"
|
|
16111
16111
|
},
|
|
16112
16112
|
{
|
|
@@ -16121,7 +16121,7 @@ const ti = () => {
|
|
|
16121
16121
|
},
|
|
16122
16122
|
{
|
|
16123
16123
|
label: t("surveyFormBuilder.questionTypes.date"),
|
|
16124
|
-
icon:
|
|
16124
|
+
icon: Yo,
|
|
16125
16125
|
questionType: "date"
|
|
16126
16126
|
},
|
|
16127
16127
|
{
|
|
@@ -16138,14 +16138,14 @@ const ti = () => {
|
|
|
16138
16138
|
(s) => e(s.questionType)
|
|
16139
16139
|
);
|
|
16140
16140
|
}, zy = {
|
|
16141
|
-
rating:
|
|
16142
|
-
"multi-select":
|
|
16141
|
+
rating: Ho,
|
|
16142
|
+
"multi-select": Go,
|
|
16143
16143
|
select: Kn,
|
|
16144
|
-
text:
|
|
16145
|
-
longText:
|
|
16144
|
+
text: Ko,
|
|
16145
|
+
longText: Xo,
|
|
16146
16146
|
numeric: Cr,
|
|
16147
16147
|
link: Sa,
|
|
16148
|
-
date:
|
|
16148
|
+
date: Yo,
|
|
16149
16149
|
"dropdown-single": ya,
|
|
16150
16150
|
file: wa
|
|
16151
16151
|
}, qy = () => {
|
|
@@ -16315,7 +16315,7 @@ const Hy = ({
|
|
|
16315
16315
|
/* @__PURE__ */ c(Ht, { icon: t, color: "default" }),
|
|
16316
16316
|
/* @__PURE__ */ c("span", { className: "flex-1", children: e }),
|
|
16317
16317
|
/* @__PURE__ */ c(
|
|
16318
|
-
|
|
16318
|
+
Vo,
|
|
16319
16319
|
{
|
|
16320
16320
|
title: e,
|
|
16321
16321
|
checked: n,
|
|
@@ -16338,7 +16338,7 @@ const Hy = ({
|
|
|
16338
16338
|
)?.label;
|
|
16339
16339
|
return /* @__PURE__ */ T(oi, { children: [
|
|
16340
16340
|
/* @__PURE__ */ c(li, { className: "mx-1 px-2 data-[state=open]:rounded-sm data-[state=closed]:bg-transparent data-[state=open]:bg-f1-background-hover", children: /* @__PURE__ */ T("div", { className: "flex w-full flex-row items-center gap-2", children: [
|
|
16341
|
-
/* @__PURE__ */ c(Ht, { icon:
|
|
16341
|
+
/* @__PURE__ */ c(Ht, { icon: el, color: "default" }),
|
|
16342
16342
|
/* @__PURE__ */ c("span", { className: "flex-1 text-base font-medium", children: e }),
|
|
16343
16343
|
!!i && /* @__PURE__ */ c("span", { className: "mr-1 text-base text-f1-foreground-secondary", children: i })
|
|
16344
16344
|
] }) }),
|
|
@@ -16433,7 +16433,7 @@ function Ky({
|
|
|
16433
16433
|
Hy,
|
|
16434
16434
|
{
|
|
16435
16435
|
label: a("surveyFormBuilder.labels.required"),
|
|
16436
|
-
icon:
|
|
16436
|
+
icon: Jo,
|
|
16437
16437
|
checked: !!i?.required,
|
|
16438
16438
|
onChange: d
|
|
16439
16439
|
}
|
|
@@ -16815,7 +16815,7 @@ const wo = {
|
|
|
16815
16815
|
});
|
|
16816
16816
|
}, o = n("surveyFormBuilder.answer.numericPlaceholder");
|
|
16817
16817
|
return /* @__PURE__ */ c(Ue, { ...t, children: /* @__PURE__ */ c("div", { className: "px-0.5", children: s ? /* @__PURE__ */ c(
|
|
16818
|
-
|
|
16818
|
+
Bo,
|
|
16819
16819
|
{
|
|
16820
16820
|
locale: "en-US",
|
|
16821
16821
|
size: "md",
|
|
@@ -17070,7 +17070,7 @@ const ox = {
|
|
|
17070
17070
|
{
|
|
17071
17071
|
label: v("surveyFormBuilder.selectQuestion.markAsCorrect"),
|
|
17072
17072
|
variant: "ghost",
|
|
17073
|
-
icon: l ? ar :
|
|
17073
|
+
icon: l ? ar : tl,
|
|
17074
17074
|
onClick: _,
|
|
17075
17075
|
hideLabel: !0
|
|
17076
17076
|
}
|
|
@@ -17632,7 +17632,7 @@ const ox = {
|
|
|
17632
17632
|
D || M.push({
|
|
17633
17633
|
type: "toggle",
|
|
17634
17634
|
label: u,
|
|
17635
|
-
icon:
|
|
17635
|
+
icon: Jo,
|
|
17636
17636
|
checked: !!S?.required,
|
|
17637
17637
|
onCheckedChange: R
|
|
17638
17638
|
});
|
|
@@ -17663,7 +17663,7 @@ const ox = {
|
|
|
17663
17663
|
return M.push({
|
|
17664
17664
|
type: "submenu",
|
|
17665
17665
|
label: d,
|
|
17666
|
-
icon:
|
|
17666
|
+
icon: el,
|
|
17667
17667
|
selectedLabel: ce,
|
|
17668
17668
|
children: q
|
|
17669
17669
|
}), M.push({ type: "separator" }), M.push({
|
|
@@ -18407,7 +18407,7 @@ function No({
|
|
|
18407
18407
|
d ? /* @__PURE__ */ c("div", { className: "min-h-8 p-1", children: /* @__PURE__ */ c(
|
|
18408
18408
|
ht,
|
|
18409
18409
|
{
|
|
18410
|
-
icon: x.correct ?
|
|
18410
|
+
icon: x.correct ? tl : ar,
|
|
18411
18411
|
color: x.correct ? "positive" : "critical",
|
|
18412
18412
|
"aria-hidden": !0
|
|
18413
18413
|
}
|
|
@@ -18942,10 +18942,10 @@ function Z0({
|
|
|
18942
18942
|
} : void 0, Oe = E ? m || te ? void 0 : q && !N.isFirstStep ? {
|
|
18943
18943
|
label: v("surveyAnsweringForm.actions.previous"),
|
|
18944
18944
|
onClick: ue,
|
|
18945
|
-
icon:
|
|
18945
|
+
icon: qo
|
|
18946
18946
|
} : void 0 : void 0, Le = n === "all-questions" && E && !m, De = q && E && !m, $e = q && !!N.currentQuestion?.sectionTitle && !m, Xe = !E && !m || q, ct = K === "center" || K === "fullscreen";
|
|
18947
18947
|
return /* @__PURE__ */ c(
|
|
18948
|
-
|
|
18948
|
+
Zo,
|
|
18949
18949
|
{
|
|
18950
18950
|
isOpen: i,
|
|
18951
18951
|
onClose: o,
|
|
@@ -19041,7 +19041,7 @@ function Z0({
|
|
|
19041
19041
|
);
|
|
19042
19042
|
}
|
|
19043
19043
|
const Vx = ({ benefits: e }) => /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: e.map((t, n) => /* @__PURE__ */ c($x, { text: t }, n)) }), $x = ({ text: e }) => /* @__PURE__ */ T("div", { className: "flex flex-row items-start gap-2", children: [
|
|
19044
|
-
/* @__PURE__ */ c(ht, { icon:
|
|
19044
|
+
/* @__PURE__ */ c(ht, { icon: Qo, size: "md", className: "text-f1-icon-positive" }),
|
|
19045
19045
|
/* @__PURE__ */ c("span", { children: e })
|
|
19046
19046
|
] }), Iu = rt(
|
|
19047
19047
|
({
|
|
@@ -19075,13 +19075,13 @@ const Vx = ({ benefits: e }) => /* @__PURE__ */ c("div", { className: "flex flex
|
|
|
19075
19075
|
/* @__PURE__ */ T("div", { className: "flex flex-col gap-5", children: [
|
|
19076
19076
|
/* @__PURE__ */ T("div", { className: "flex flex-col gap-2", children: [
|
|
19077
19077
|
/* @__PURE__ */ T("div", { className: "flex flex-row items-center gap-2", children: [
|
|
19078
|
-
a && /* @__PURE__ */ c(
|
|
19078
|
+
a && /* @__PURE__ */ c(nl, { module: a }),
|
|
19079
19079
|
i && /* @__PURE__ */ c("p", { className: "text-base font-medium text-f1-foreground", children: i })
|
|
19080
19080
|
] }),
|
|
19081
19081
|
(o || l) && /* @__PURE__ */ T("div", { className: "flex justify-start gap-2", children: [
|
|
19082
19082
|
o && /* @__PURE__ */ c(Id, { icon: o.icon, text: o.label }),
|
|
19083
19083
|
l && /* @__PURE__ */ c(
|
|
19084
|
-
|
|
19084
|
+
Uo,
|
|
19085
19085
|
{
|
|
19086
19086
|
variant: l.variant || "positive",
|
|
19087
19087
|
text: l.label
|
|
@@ -19121,7 +19121,7 @@ function qx({
|
|
|
19121
19121
|
children: [
|
|
19122
19122
|
/* @__PURE__ */ T("div", { className: "flex flex-row items-center justify-between px-4 py-4", children: [
|
|
19123
19123
|
/* @__PURE__ */ T(Ld, { className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground", children: [
|
|
19124
|
-
s && /* @__PURE__ */ c(
|
|
19124
|
+
s && /* @__PURE__ */ c(nl, { module: s, size: "lg" }),
|
|
19125
19125
|
n
|
|
19126
19126
|
] }),
|
|
19127
19127
|
/* @__PURE__ */ c(
|
|
@@ -19229,7 +19229,7 @@ function Zx({
|
|
|
19229
19229
|
}
|
|
19230
19230
|
),
|
|
19231
19231
|
C && v && /* @__PURE__ */ c(
|
|
19232
|
-
|
|
19232
|
+
rl,
|
|
19233
19233
|
{
|
|
19234
19234
|
open: !0,
|
|
19235
19235
|
onClose: () => {
|
|
@@ -19304,7 +19304,7 @@ function Wx({
|
|
|
19304
19304
|
] }),
|
|
19305
19305
|
o && /* @__PURE__ */ c(Bd, { className: "p-3", children: o.map(
|
|
19306
19306
|
(m) => m.type === "upsell" ? /* @__PURE__ */ c(
|
|
19307
|
-
|
|
19307
|
+
sl,
|
|
19308
19308
|
{
|
|
19309
19309
|
label: m.label,
|
|
19310
19310
|
onRequest: m.onClick,
|
|
@@ -19332,7 +19332,7 @@ function Wx({
|
|
|
19332
19332
|
const Ux = ye(Wx), Ru = rt(
|
|
19333
19333
|
function({ primaryAction: t, secondaryAction: n, ...r }, s) {
|
|
19334
19334
|
const a = (l) => l.variant === "promote" ? /* @__PURE__ */ c(
|
|
19335
|
-
|
|
19335
|
+
sl,
|
|
19336
19336
|
{
|
|
19337
19337
|
label: l.label,
|
|
19338
19338
|
onRequest: async () => {
|
|
@@ -19447,7 +19447,7 @@ function Qx({
|
|
|
19447
19447
|
)
|
|
19448
19448
|
] }),
|
|
19449
19449
|
_?.type === "upsell" && _.showConfirmation && b && /* @__PURE__ */ c(
|
|
19450
|
-
|
|
19450
|
+
rl,
|
|
19451
19451
|
{
|
|
19452
19452
|
open: !0,
|
|
19453
19453
|
onClose: R,
|
|
@@ -19542,7 +19542,7 @@ export {
|
|
|
19542
19542
|
R0 as F0AiFormRegistryProvider,
|
|
19543
19543
|
ow as F0AiFullscreenChat,
|
|
19544
19544
|
m1 as F0AiMask,
|
|
19545
|
-
|
|
19545
|
+
$o as F0Alert,
|
|
19546
19546
|
H0 as F0AnalyticsDashboard,
|
|
19547
19547
|
h1 as F0AuraVoiceAnimation,
|
|
19548
19548
|
lw as F0Avatar,
|
|
@@ -19553,7 +19553,7 @@ export {
|
|
|
19553
19553
|
od as F0AvatarFile,
|
|
19554
19554
|
fw as F0AvatarIcon,
|
|
19555
19555
|
mw as F0AvatarList,
|
|
19556
|
-
|
|
19556
|
+
nl as F0AvatarModule,
|
|
19557
19557
|
hw as F0AvatarPerson,
|
|
19558
19558
|
pw as F0AvatarTeam,
|
|
19559
19559
|
g0 as F0BigNumber,
|
|
@@ -19565,7 +19565,7 @@ export {
|
|
|
19565
19565
|
xa as F0Checkbox,
|
|
19566
19566
|
N0 as F0ChipList,
|
|
19567
19567
|
jo as F0DatePicker,
|
|
19568
|
-
|
|
19568
|
+
Zo as F0Dialog,
|
|
19569
19569
|
Ad as F0DialogContext,
|
|
19570
19570
|
yw as F0DialogProvider,
|
|
19571
19571
|
dg as F0DurationInput,
|
|
@@ -19590,7 +19590,7 @@ export {
|
|
|
19590
19590
|
Cw as F0TagList,
|
|
19591
19591
|
Nw as F0TagPerson,
|
|
19592
19592
|
Id as F0TagRaw,
|
|
19593
|
-
|
|
19593
|
+
Uo as F0TagStatus,
|
|
19594
19594
|
Dw as F0TagTeam,
|
|
19595
19595
|
xl as F0Text,
|
|
19596
19596
|
B0 as F0TimelineRow,
|
|
@@ -19613,9 +19613,9 @@ export {
|
|
|
19613
19613
|
V0 as Tag,
|
|
19614
19614
|
Tw as TagCounter,
|
|
19615
19615
|
i0 as TwoColumnLayout,
|
|
19616
|
-
|
|
19616
|
+
rl as UpsellRequestResponseDialog,
|
|
19617
19617
|
U0 as UpsellingBanner,
|
|
19618
|
-
|
|
19618
|
+
sl as UpsellingButton,
|
|
19619
19619
|
Q0 as UpsellingPopover,
|
|
19620
19620
|
m0 as VerticalBarChart,
|
|
19621
19621
|
g1 as actionItemStatuses,
|