@factorialco/f0-react 1.431.0 → 1.432.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/{F0AiChat-J1mHZWxx.js → F0AiChat-DRUcCTJI.js} +17 -17
- package/dist/{F0HILActionConfirmation-B3GDi-wU.js → F0HILActionConfirmation-ot92kVFT.js} +1 -1
- package/dist/ai.d.ts +9 -5
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +9 -5
- package/dist/experimental.js +4 -4
- package/dist/f0.d.ts +48 -10
- package/dist/f0.js +6247 -5964
- package/dist/i18n-provider-defaults.d.ts +9 -5
- package/dist/i18n-provider-defaults.js +4 -0
- package/dist/{index-DTN2fMDI.js → index-CCcCCEfU.js} +1 -1
- package/package.json +1 -1
|
@@ -204669,23 +204669,23 @@ export {
|
|
|
204669
204669
|
S4e as bb,
|
|
204670
204670
|
GOe as bc,
|
|
204671
204671
|
HD as bd,
|
|
204672
|
-
|
|
204673
|
-
|
|
204674
|
-
|
|
204675
|
-
|
|
204676
|
-
|
|
204677
|
-
|
|
204678
|
-
|
|
204679
|
-
|
|
204680
|
-
|
|
204681
|
-
|
|
204682
|
-
|
|
204683
|
-
|
|
204684
|
-
|
|
204685
|
-
|
|
204686
|
-
|
|
204687
|
-
|
|
204688
|
-
|
|
204672
|
+
Eet as be,
|
|
204673
|
+
Pet as bf,
|
|
204674
|
+
VD as bg,
|
|
204675
|
+
m0e as bh,
|
|
204676
|
+
y0e as bi,
|
|
204677
|
+
kDe as bj,
|
|
204678
|
+
L0e as bk,
|
|
204679
|
+
k$2 as bl,
|
|
204680
|
+
Tet as bm,
|
|
204681
|
+
_$2 as bn,
|
|
204682
|
+
Fet as bo,
|
|
204683
|
+
w0e as bp,
|
|
204684
|
+
M$2 as bq,
|
|
204685
|
+
FDe as br,
|
|
204686
|
+
M4e as bs,
|
|
204687
|
+
df as bt,
|
|
204688
|
+
FIe as bu,
|
|
204689
204689
|
oFe as bv,
|
|
204690
204690
|
HNe as bw,
|
|
204691
204691
|
nFe as bx,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defaultTranslations as ke } from "./i18n-provider-defaults.js";
|
|
2
2
|
import { jsx as q, jsxs as le } from "react/jsx-runtime";
|
|
3
3
|
import { useInsertionEffect as Xe, createContext as Ye, useContext as $e, useRef as B, useEffect as ie, useState as Ue, useCallback as qe, useMemo as He } from "react";
|
|
4
|
-
import { r as Ke, l as je, m as Qe, n as Je, o as Me, p as Ze, q as et, s as tt, t as rt, v as nt, w as Ne, x as ot, V as it, y as st, z as at, A as ct, S as ut, H as lt, B as se, D as ft, E as dt, G as ht, J as mt, K as pt, L as vt, M as fe, N as gt } from "./F0AiChat-
|
|
4
|
+
import { r as Ke, l as je, m as Qe, n as Je, o as Me, p as Ze, q as et, s as tt, t as rt, v as nt, w as Ne, x as ot, V as it, y as st, z as at, A as ct, S as ut, H as lt, B as se, D as ft, E as dt, G as ht, J as mt, K as pt, L as vt, M as fe, N as gt } from "./F0AiChat-DRUcCTJI.js";
|
|
5
5
|
import { useTrackVolume as wt } from "@livekit/components-react";
|
|
6
6
|
function Tt(t, e, r) {
|
|
7
7
|
Xe(() => t.on(e, r), [t, e, r]);
|
package/dist/ai.d.ts
CHANGED
|
@@ -1184,6 +1184,7 @@ export declare const defaultTranslations: {
|
|
|
1184
1184
|
readonly surveyFormBuilder: {
|
|
1185
1185
|
readonly actions: {
|
|
1186
1186
|
readonly actions: "Actions";
|
|
1187
|
+
readonly addQuestion: "Add question";
|
|
1187
1188
|
readonly duplicateQuestion: "Duplicate question";
|
|
1188
1189
|
readonly deleteQuestion: "Delete question";
|
|
1189
1190
|
readonly duplicateSection: "Duplicate section";
|
|
@@ -1236,6 +1237,9 @@ export declare const defaultTranslations: {
|
|
|
1236
1237
|
readonly questionDescriptionPlaceholder: "Describe the question in a few words";
|
|
1237
1238
|
readonly sectionDescriptionPlaceholder: "Describe the section in a few words";
|
|
1238
1239
|
readonly required: "Required";
|
|
1240
|
+
readonly allowMultiSelection: "Allow multi-selection";
|
|
1241
|
+
readonly singleSelection: "Single selection";
|
|
1242
|
+
readonly multiSelection: "Multi selection";
|
|
1239
1243
|
readonly questionType: "Question type";
|
|
1240
1244
|
readonly questionOptions: "Question options";
|
|
1241
1245
|
readonly actions: "Actions";
|
|
@@ -1797,6 +1801,11 @@ declare module "gridstack" {
|
|
|
1797
1801
|
}
|
|
1798
1802
|
|
|
1799
1803
|
|
|
1804
|
+
declare namespace Calendar {
|
|
1805
|
+
var displayName: string;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
|
|
1800
1809
|
declare module "@tiptap/core" {
|
|
1801
1810
|
interface Commands<ReturnType> {
|
|
1802
1811
|
aiBlock: {
|
|
@@ -1844,8 +1853,3 @@ declare module "@tiptap/core" {
|
|
|
1844
1853
|
};
|
|
1845
1854
|
}
|
|
1846
1855
|
}
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
declare namespace Calendar {
|
|
1850
|
-
var displayName: string;
|
|
1851
|
-
}
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as t, h as i, F as e, a as n, C as o, b as r, j as A, k as c, I as u, g as F, c as h, d as C, u as l, f as I, e as f } from "./F0AiChat-
|
|
1
|
+
import { i as t, h as i, F as e, a as n, C as o, b as r, j as A, k as c, I as u, g as F, c as h, d as C, u as l, f as I, e as f } from "./F0AiChat-DRUcCTJI.js";
|
|
2
2
|
import { defaultTranslations as d } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as p, F as S, c as g, d as v, b as x, a as k, o as O, u as P } from "./F0HILActionConfirmation-
|
|
3
|
+
import { A as p, F as S, c as g, d as v, b as x, a as k, o as O, u as P } from "./F0HILActionConfirmation-ot92kVFT.js";
|
|
4
4
|
export {
|
|
5
5
|
p as AiChatTranslationsProvider,
|
|
6
6
|
t as ChatSpinner,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -2757,6 +2757,7 @@ declare const defaultTranslations: {
|
|
|
2757
2757
|
readonly surveyFormBuilder: {
|
|
2758
2758
|
readonly actions: {
|
|
2759
2759
|
readonly actions: "Actions";
|
|
2760
|
+
readonly addQuestion: "Add question";
|
|
2760
2761
|
readonly duplicateQuestion: "Duplicate question";
|
|
2761
2762
|
readonly deleteQuestion: "Delete question";
|
|
2762
2763
|
readonly duplicateSection: "Duplicate section";
|
|
@@ -2809,6 +2810,9 @@ declare const defaultTranslations: {
|
|
|
2809
2810
|
readonly questionDescriptionPlaceholder: "Describe the question in a few words";
|
|
2810
2811
|
readonly sectionDescriptionPlaceholder: "Describe the section in a few words";
|
|
2811
2812
|
readonly required: "Required";
|
|
2813
|
+
readonly allowMultiSelection: "Allow multi-selection";
|
|
2814
|
+
readonly singleSelection: "Single selection";
|
|
2815
|
+
readonly multiSelection: "Multi selection";
|
|
2812
2816
|
readonly questionType: "Question type";
|
|
2813
2817
|
readonly questionOptions: "Question options";
|
|
2814
2818
|
readonly actions: "Actions";
|
|
@@ -7284,6 +7288,11 @@ declare module "gridstack" {
|
|
|
7284
7288
|
}
|
|
7285
7289
|
|
|
7286
7290
|
|
|
7291
|
+
declare namespace Calendar {
|
|
7292
|
+
var displayName: string;
|
|
7293
|
+
}
|
|
7294
|
+
|
|
7295
|
+
|
|
7287
7296
|
declare module "@tiptap/core" {
|
|
7288
7297
|
interface Commands<ReturnType> {
|
|
7289
7298
|
aiBlock: {
|
|
@@ -7331,8 +7340,3 @@ declare module "@tiptap/core" {
|
|
|
7331
7340
|
};
|
|
7332
7341
|
}
|
|
7333
7342
|
}
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
declare namespace Calendar {
|
|
7337
|
-
var displayName: string;
|
|
7338
|
-
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { cI as Sf, a7 as _r, b7 as Nf, a6 as If, cJ as Af, cK as _f, a1 as Ef, cL as Eo, cM as er, cN as Tf, cO as Ls, cP as Ui, cQ as Er, K as k, R as Z, L as it, u as ge, cR as Df, cS as Rf, cT as Lf, cU as Of, cV as Mf, ak as Oe, cW as Ff, a0 as jt, cX as Pf, b8 as zf, _ as H,
|
|
2
|
-
import { eY as fA, eX as hA, eV as pA, aE as mA, eW as gA, aJ as bA, f4 as wA, f5 as xA, f7 as yA, fe as vA, ff as kA, aL as CA, e_ as SA, eZ as NA, f6 as IA, f9 as AA, fa as _A, f3 as EA, f0 as TA, f2 as DA, e$ as RA, c2 as LA, f1 as OA, fb as MA, fc as FA, f8 as PA, fd as zA } from "./F0AiChat-
|
|
1
|
+
import { cI as Sf, a7 as _r, b7 as Nf, a6 as If, cJ as Af, cK as _f, a1 as Ef, cL as Eo, cM as er, cN as Tf, cO as Ls, cP as Ui, cQ as Er, K as k, R as Z, L as it, u as ge, cR as Df, cS as Rf, cT as Lf, cU as Of, cV as Mf, ak as Oe, cW as Ff, a0 as jt, cX as Pf, b8 as zf, _ as H, be as $f, bf as Bf, U as Ht, cY as ka, bn as jf, bh as Hf, M as B, cZ as Os, Z as E, c_ as st, c$ as Vf, d0 as Wf, bi as Uf, ay as Gf, bk as Kf, aH as Vt, d1 as Ca, d2 as qf, d3 as Tt, a_ as Sn, aA as Ms, aB as un, k as Sa, a4 as gt, d4 as Na, d5 as Yf, d6 as To, d7 as rn, d8 as Fs, d9 as Hn, da as Tr, db as Jf, dc as Ia, dd as Xf, de as Ps, df as Nn, dg as Le, dh as Zf, di as Qf, dj as Ct, dk as yi, dl as eh, dm as kn, dn as qt, dp as th, P as de, dq as nh, dr as rh, ds as ih, dt as sh, du as oh, W as Je, Y as ue, dv as zs, aW as Vn, cF as Qr, dw as Aa, dx as $s, dy as lh, dz as ah, dA as ch, dB as dh, dC as uh, dD as fh, dE as hh, dF as ph, dG as mh, bb as gh, dH as bh, b9 as wh, dI as xh, dJ as yh, dK as vh, dL as kh, dM as Ch, dN as Sh, dO as Nh, dP as Ih, c3 as rt, dQ as _a, dR as Ah, a3 as V, N as Ea, dS as Ta, dT as _h, b2 as Bs, a8 as Do, a9 as Ro, as as Eh, dU as Th, dV as Dh, am as fn, dW as Rh, dX as Lh, dY as Oh, dZ as Mh, aR as ei, d_ as Da, d$ as Ra, c5 as La, e0 as Fh, aK as Dr, e1 as Ph, e2 as zh, e3 as $h, e4 as Bh, e5 as jh, ai as Hh, aj as Vh, al as Wh, e6 as Oa, e7 as Uh, e8 as Gh, ax as Rr, e9 as Jt, ea as Kh, eb as Ma, ec as js, ed as qh, ee as Yh, ef as Fa, eg as Gi, c0 as Ki, eh as Pa, ei as Jh, ej as Xh, cE as ti, bE as za, cH as Zh, cG as Qh, ek as ep, bF as sn, el as tp, aO as tr, em as Lo, en as qi, eo as np, bs as rp, ep as ip, b_ as $a, c4 as sp, cg as Ba, ce as Hs, ae as op, ch as lp, c1 as Vs, av as ja, a as ap, c as cp, bW as dp, eq as Ha, er as up, es as fp, F as hp, et as Va, eu as Wa, ev as pp, bx as Oo, ew as mp, ex as gp, bY as bp, bv as Ua, by as wp, ey as xp, ez as yp, eA as vp, eB as kp, bZ as Ga, $ as Cp, Q as ot, bK as Ws, eC as Us, eD as Gs, eE as Ka, bL as Ks, eF as qa, eG as Sp, eH as Np, eI as Ip, eJ as Ap, eK as _p, bM as Ep, eL as Tp, b$ as Dp, eM as Rp, eN as Mo, eO as Fo, eP as Po, b0 as Lp, eQ as Op, eR as Mp, bd as Fp, eS as Ya, bD as Pp, eT as zp, eU as $p } from "./F0AiChat-DRUcCTJI.js";
|
|
2
|
+
import { eY as fA, eX as hA, eV as pA, aE as mA, eW as gA, aJ as bA, f4 as wA, f5 as xA, f7 as yA, fe as vA, ff as kA, aL as CA, e_ as SA, eZ as NA, f6 as IA, f9 as AA, fa as _A, f3 as EA, f0 as TA, f2 as DA, e$ as RA, c2 as LA, f1 as OA, fb as MA, fc as FA, f8 as PA, fd as zA } from "./F0AiChat-DRUcCTJI.js";
|
|
3
3
|
import { jsx as c, jsxs as g, Fragment as re } from "react/jsx-runtime";
|
|
4
4
|
import * as pe from "react";
|
|
5
5
|
import z, { PureComponent as Bp, forwardRef as F, useRef as q, useTransition as jp, useState as L, useLayoutEffect as Ja, useContext as qs, createContext as Ys, useCallback as X, useMemo as te, useEffect as U, useId as Xa, useImperativeHandle as Za, memo as Qa, Fragment as Hp, isValidElement as Vp, cloneElement as ec, Children as tc } from "react";
|
|
6
|
-
import { f as Xt, ac as In, e as nr, ad as Wp, L as vi, ae as Up, A as Gp, i as rr, k as Kp, G as qp, g as zo, af as Yp, j as $o, n as Jp, ag as nc, ah as rc, ai as Xp, C as Zp, aa as Qp, aj as He, ak as lt, al as Te, am as em, an as gr, ao as Ge, ap as ic, aq as Fe, ar as Js, as as Be, at as Bo, au as tm, av as sc, aw as Ae, ax as ze, ay as An, az as Lr, aA as oc, aB as nm, aC as Wt, aD as rm, aE as im, aF as sm, aG as Wn, aH as Un, aI as Xs, aJ as om, aK as lc, aL as ac, aM as cc, aN as lm, aO as dc, aP as uc, aQ as fc, aR as hc, aS as pc, aT as mc, a3 as jo, aU as am, aV as Ho, aW as cm, aX as dm, aY as um, w as fm, x as hm, z as pm, J as mm, K as gm, s as bm, aZ as gc, a_ as wm, a$ as xm, b0 as ym, b1 as bc, a7 as Yi, b2 as vm, b3 as km, b4 as Cm, b5 as Sm, b6 as Nm, b7 as Im, b8 as Am, $ as _m, b9 as Em, ba as Tm, bb as Dm, bc as Rm, ab as wc, M as Lm, N as Om, P as Mm, Q as Fm, V as Pm, O as zm, bd as Vo, be as $m, bf as Bm, l as jm } from "./index-
|
|
7
|
-
import { a5 as BA, W as jA, a0 as HA, R as VA, _ as WA, bk as UA, bj as GA, bh as KA, bi as qA, a4 as YA, T as JA, Z as XA, U as ZA, bg as QA, a8 as e_, a9 as t_ } from "./index-
|
|
6
|
+
import { f as Xt, ac as In, e as nr, ad as Wp, L as vi, ae as Up, A as Gp, i as rr, k as Kp, G as qp, g as zo, af as Yp, j as $o, n as Jp, ag as nc, ah as rc, ai as Xp, C as Zp, aa as Qp, aj as He, ak as lt, al as Te, am as em, an as gr, ao as Ge, ap as ic, aq as Fe, ar as Js, as as Be, at as Bo, au as tm, av as sc, aw as Ae, ax as ze, ay as An, az as Lr, aA as oc, aB as nm, aC as Wt, aD as rm, aE as im, aF as sm, aG as Wn, aH as Un, aI as Xs, aJ as om, aK as lc, aL as ac, aM as cc, aN as lm, aO as dc, aP as uc, aQ as fc, aR as hc, aS as pc, aT as mc, a3 as jo, aU as am, aV as Ho, aW as cm, aX as dm, aY as um, w as fm, x as hm, z as pm, J as mm, K as gm, s as bm, aZ as gc, a_ as wm, a$ as xm, b0 as ym, b1 as bc, a7 as Yi, b2 as vm, b3 as km, b4 as Cm, b5 as Sm, b6 as Nm, b7 as Im, b8 as Am, $ as _m, b9 as Em, ba as Tm, bb as Dm, bc as Rm, ab as wc, M as Lm, N as Om, P as Mm, Q as Fm, V as Pm, O as zm, bd as Vo, be as $m, bf as Bm, l as jm } from "./index-CCcCCEfU.js";
|
|
7
|
+
import { a5 as BA, W as jA, a0 as HA, R as VA, _ as WA, bk as UA, bj as GA, bh as KA, bi as qA, a4 as YA, T as JA, Z as XA, U as ZA, bg as QA, a8 as e_, a9 as t_ } from "./index-CCcCCEfU.js";
|
|
8
8
|
import './experimental.css';const Hm = Sf("Search", [
|
|
9
9
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
10
10
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
package/dist/f0.d.ts
CHANGED
|
@@ -3302,6 +3302,7 @@ export declare const defaultTranslations: {
|
|
|
3302
3302
|
readonly surveyFormBuilder: {
|
|
3303
3303
|
readonly actions: {
|
|
3304
3304
|
readonly actions: "Actions";
|
|
3305
|
+
readonly addQuestion: "Add question";
|
|
3305
3306
|
readonly duplicateQuestion: "Duplicate question";
|
|
3306
3307
|
readonly deleteQuestion: "Delete question";
|
|
3307
3308
|
readonly duplicateSection: "Duplicate section";
|
|
@@ -3354,6 +3355,9 @@ export declare const defaultTranslations: {
|
|
|
3354
3355
|
readonly questionDescriptionPlaceholder: "Describe the question in a few words";
|
|
3355
3356
|
readonly sectionDescriptionPlaceholder: "Describe the section in a few words";
|
|
3356
3357
|
readonly required: "Required";
|
|
3358
|
+
readonly allowMultiSelection: "Allow multi-selection";
|
|
3359
|
+
readonly singleSelection: "Single selection";
|
|
3360
|
+
readonly multiSelection: "Multi selection";
|
|
3357
3361
|
readonly questionType: "Question type";
|
|
3358
3362
|
readonly questionOptions: "Question options";
|
|
3359
3363
|
readonly actions: "Actions";
|
|
@@ -3598,9 +3602,17 @@ declare type DropdownItemSeparator = {
|
|
|
3598
3602
|
type: "separator";
|
|
3599
3603
|
};
|
|
3600
3604
|
|
|
3605
|
+
declare type DropdownMultiQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
|
|
3606
|
+
type: "dropdown-multi";
|
|
3607
|
+
datasetKey: string;
|
|
3608
|
+
value?: string[] | null;
|
|
3609
|
+
showSearchBox?: boolean;
|
|
3610
|
+
searchBoxPlaceholder?: string;
|
|
3611
|
+
};
|
|
3612
|
+
|
|
3601
3613
|
declare type DropdownSingleQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
|
|
3602
3614
|
type: "dropdown-single";
|
|
3603
|
-
|
|
3615
|
+
datasetKey: string;
|
|
3604
3616
|
value?: string | null;
|
|
3605
3617
|
showSearchBox?: boolean;
|
|
3606
3618
|
searchBoxPlaceholder?: string;
|
|
@@ -6228,6 +6240,8 @@ declare interface F0SelectConfigBase {
|
|
|
6228
6240
|
showSearchBox?: boolean;
|
|
6229
6241
|
/** Placeholder for the search box */
|
|
6230
6242
|
searchBoxPlaceholder?: string;
|
|
6243
|
+
/** Icon displayed on the left side of the select input */
|
|
6244
|
+
icon?: IconType;
|
|
6231
6245
|
}
|
|
6232
6246
|
|
|
6233
6247
|
/**
|
|
@@ -8335,6 +8349,7 @@ declare type NumericWithFormatter = {
|
|
|
8335
8349
|
export declare type OnAddNewElementParams = {
|
|
8336
8350
|
type: ElementType;
|
|
8337
8351
|
afterId?: string;
|
|
8352
|
+
datasetKey?: string;
|
|
8338
8353
|
};
|
|
8339
8354
|
|
|
8340
8355
|
declare type OnBulkActionCallback<Record extends RecordType, Filters extends FiltersDefinition> = (...args: [
|
|
@@ -8363,7 +8378,13 @@ declare type OnChangeQuestionParams = BaseQuestionOnChangeParams & ({
|
|
|
8363
8378
|
} | {
|
|
8364
8379
|
type: "dropdown-single";
|
|
8365
8380
|
value?: string | null;
|
|
8366
|
-
|
|
8381
|
+
datasetKey?: string;
|
|
8382
|
+
showSearchBox?: boolean;
|
|
8383
|
+
searchBoxPlaceholder?: string;
|
|
8384
|
+
} | {
|
|
8385
|
+
type: "dropdown-multi";
|
|
8386
|
+
value?: string[] | null;
|
|
8387
|
+
datasetKey?: string;
|
|
8367
8388
|
showSearchBox?: boolean;
|
|
8368
8389
|
searchBoxPlaceholder?: string;
|
|
8369
8390
|
} | {
|
|
@@ -8887,6 +8908,8 @@ export declare type QuestionElement = Omit<TextQuestionProps, QuestionPropsToOmi
|
|
|
8887
8908
|
type: "select" | "multi-select";
|
|
8888
8909
|
}, QuestionPropsToOmit> | Omit<DropdownSingleQuestionProps & {
|
|
8889
8910
|
type: "dropdown-single";
|
|
8911
|
+
}, QuestionPropsToOmit> | Omit<DropdownMultiQuestionProps & {
|
|
8912
|
+
type: "dropdown-multi";
|
|
8890
8913
|
}, QuestionPropsToOmit> | Omit<NumericQuestionProps & {
|
|
8891
8914
|
type: "numeric";
|
|
8892
8915
|
}, QuestionPropsToOmit> | Omit<LinkQuestionProps & {
|
|
@@ -8901,7 +8924,7 @@ export declare type QuestionElement = Omit<TextQuestionProps, QuestionPropsToOmi
|
|
|
8901
8924
|
|
|
8902
8925
|
declare type QuestionPropsToOmit = "onAction" | "onChange" | "onAddNewElement";
|
|
8903
8926
|
|
|
8904
|
-
export declare type QuestionType = "rating" | "select" | "multi-select" | "dropdown-single" | "text" | "longText" | "numeric" | "link" | "date" | "file" | "checkbox";
|
|
8927
|
+
export declare type QuestionType = "rating" | "select" | "multi-select" | "dropdown-single" | "dropdown-multi" | "text" | "longText" | "numeric" | "link" | "date" | "file" | "checkbox";
|
|
8905
8928
|
|
|
8906
8929
|
export declare interface RadarChartConfig {
|
|
8907
8930
|
type: "radar";
|
|
@@ -9421,7 +9444,7 @@ declare type SummaryKey<Definition extends SummariesDefinition> = Definition ext
|
|
|
9421
9444
|
|
|
9422
9445
|
declare type SummaryType = "sum";
|
|
9423
9446
|
|
|
9424
|
-
export declare function SurveyAnsweringForm({ elements, onSubmit: onSubmitProp, mode, title, description, resourceHeader, isOpen, onClose, position: positionProp, module, allowToChangeFullscreen, defaultValues, errorTriggerMode, loading, labels, preview, useUpload, }: SurveyAnsweringFormProps): JSX_2.Element;
|
|
9447
|
+
export declare function SurveyAnsweringForm({ elements, onSubmit: onSubmitProp, mode, title, description, resourceHeader, isOpen, onClose, position: positionProp, module, allowToChangeFullscreen, defaultValues, errorTriggerMode, loading, labels, preview, useUpload, datasets, }: SurveyAnsweringFormProps): JSX_2.Element;
|
|
9425
9448
|
|
|
9426
9449
|
declare interface SurveyAnsweringFormBaseProps {
|
|
9427
9450
|
elements: SurveyFormBuilderElement[];
|
|
@@ -9438,6 +9461,7 @@ declare interface SurveyAnsweringFormBaseProps {
|
|
|
9438
9461
|
errorTriggerMode?: F0FormErrorTriggerMode;
|
|
9439
9462
|
loading?: boolean;
|
|
9440
9463
|
useUpload?: UseFileUpload;
|
|
9464
|
+
datasets?: SurveyDatasets;
|
|
9441
9465
|
labels?: {
|
|
9442
9466
|
empty?: {
|
|
9443
9467
|
title?: string;
|
|
@@ -9484,6 +9508,9 @@ export declare type SurveyAnswerValue = {
|
|
|
9484
9508
|
} | {
|
|
9485
9509
|
type: "dropdown-single";
|
|
9486
9510
|
value: string | null;
|
|
9511
|
+
} | {
|
|
9512
|
+
type: "dropdown-multi";
|
|
9513
|
+
value: string[] | null;
|
|
9487
9514
|
} | {
|
|
9488
9515
|
type: "numeric";
|
|
9489
9516
|
value: number | null;
|
|
@@ -9501,7 +9528,17 @@ export declare type SurveyAnswerValue = {
|
|
|
9501
9528
|
value: boolean | null;
|
|
9502
9529
|
};
|
|
9503
9530
|
|
|
9504
|
-
export declare
|
|
9531
|
+
export declare type SurveyDataset = {
|
|
9532
|
+
title: string;
|
|
9533
|
+
icon?: IconType;
|
|
9534
|
+
placeholder?: string;
|
|
9535
|
+
dataSource: DataSourceDefinition;
|
|
9536
|
+
mapOptions: (item: RecordType) => F0SelectItemProps<string, RecordType>;
|
|
9537
|
+
};
|
|
9538
|
+
|
|
9539
|
+
export declare type SurveyDatasets = Record<string, SurveyDataset>;
|
|
9540
|
+
|
|
9541
|
+
export declare const SurveyFormBuilder: WithDataTestIdReturnType_7<({ elements: elementsProp, disabled, onChange, disallowOptionalQuestions, allowedQuestionTypes, applyingChanges, useUpload, datasets, }: SurveyFormBuilderProps) => JSX_2.Element>;
|
|
9505
9542
|
|
|
9506
9543
|
export declare type SurveyFormBuilderCallbacks = {
|
|
9507
9544
|
onQuestionChange?: (params: OnChangeQuestionParams) => void;
|
|
@@ -9526,6 +9563,7 @@ export declare type SurveyFormBuilderProps = {
|
|
|
9526
9563
|
allowedQuestionTypes?: QuestionType[];
|
|
9527
9564
|
applyingChanges?: boolean;
|
|
9528
9565
|
useUpload?: UseFileUpload;
|
|
9566
|
+
datasets?: SurveyDatasets;
|
|
9529
9567
|
};
|
|
9530
9568
|
|
|
9531
9569
|
export declare type SurveyFormSubmitResult = {
|
|
@@ -10860,6 +10898,11 @@ declare module "gridstack" {
|
|
|
10860
10898
|
}
|
|
10861
10899
|
|
|
10862
10900
|
|
|
10901
|
+
declare namespace Calendar {
|
|
10902
|
+
var displayName: string;
|
|
10903
|
+
}
|
|
10904
|
+
|
|
10905
|
+
|
|
10863
10906
|
declare module "@tiptap/core" {
|
|
10864
10907
|
interface Commands<ReturnType> {
|
|
10865
10908
|
aiBlock: {
|
|
@@ -10907,8 +10950,3 @@ declare module "@tiptap/core" {
|
|
|
10907
10950
|
};
|
|
10908
10951
|
}
|
|
10909
10952
|
}
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
declare namespace Calendar {
|
|
10913
|
-
var displayName: string;
|
|
10914
|
-
}
|