iq-line-form-builder-renderer 1.2.9 → 1.2.10
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/form-renderer.es.js +132 -102
- package/dist/form-renderer.umd.js +2 -2
- package/dist/page/embeds/EmbeddedForm.d.ts +1 -1
- package/dist/page/embeds/EmbeddedForm.d.ts.map +1 -1
- package/dist/page/types/widget-configs.d.ts +2 -0
- package/dist/page/types/widget-configs.d.ts.map +1 -1
- package/dist/page/utils/formEmbedScroll.d.ts +1 -0
- package/dist/page/utils/formEmbedScroll.d.ts.map +1 -1
- package/dist/page/widgets/FormEmbedWidget.d.ts.map +1 -1
- package/dist/page/widgets/TabGroupWidget.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/form-renderer.es.js
CHANGED
|
@@ -3070,7 +3070,7 @@ function kf(e) {
|
|
|
3070
3070
|
maxWidth: "100%"
|
|
3071
3071
|
};
|
|
3072
3072
|
}
|
|
3073
|
-
function
|
|
3073
|
+
function qF(e) {
|
|
3074
3074
|
return kf(e);
|
|
3075
3075
|
}
|
|
3076
3076
|
function xa(e) {
|
|
@@ -3135,7 +3135,7 @@ function us(e) {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
return Kl(Pf(e));
|
|
3137
3137
|
}
|
|
3138
|
-
const
|
|
3138
|
+
const YF = us;
|
|
3139
3139
|
function ql(e) {
|
|
3140
3140
|
if (e.type === "billingGrid" || e.type === "table" || ai(e) > 1) return !0;
|
|
3141
3141
|
const t = Ff(e.appearance?.contentVerticalAlign);
|
|
@@ -3218,7 +3218,7 @@ function du(e) {
|
|
|
3218
3218
|
us(e)
|
|
3219
3219
|
);
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3221
|
+
function XF(e, t) {
|
|
3222
3222
|
const n = {};
|
|
3223
3223
|
e !== void 0 && (n.cellAlign = e), t !== void 0 && (n.cellJustify = t);
|
|
3224
3224
|
const o = e === void 0 && t === void 0 ? void 0 : n;
|
|
@@ -4266,7 +4266,7 @@ const Ot = If((e, t) => ({
|
|
|
4266
4266
|
}
|
|
4267
4267
|
}
|
|
4268
4268
|
}));
|
|
4269
|
-
function
|
|
4269
|
+
function JF() {
|
|
4270
4270
|
return Ot.getState();
|
|
4271
4271
|
}
|
|
4272
4272
|
function fv({
|
|
@@ -11057,22 +11057,22 @@ It.getAdapter = Em.getAdapter;
|
|
|
11057
11057
|
It.HttpStatusCode = El;
|
|
11058
11058
|
It.default = It;
|
|
11059
11059
|
const {
|
|
11060
|
-
Axios:
|
|
11060
|
+
Axios: tP,
|
|
11061
11061
|
AxiosError: gC,
|
|
11062
|
-
CanceledError:
|
|
11063
|
-
isCancel:
|
|
11064
|
-
CancelToken:
|
|
11065
|
-
VERSION:
|
|
11066
|
-
all:
|
|
11067
|
-
Cancel:
|
|
11068
|
-
isAxiosError:
|
|
11069
|
-
spread:
|
|
11070
|
-
toFormData:
|
|
11071
|
-
AxiosHeaders:
|
|
11072
|
-
HttpStatusCode:
|
|
11073
|
-
formToJSON:
|
|
11074
|
-
getAdapter:
|
|
11075
|
-
mergeConfig:
|
|
11062
|
+
CanceledError: nP,
|
|
11063
|
+
isCancel: rP,
|
|
11064
|
+
CancelToken: oP,
|
|
11065
|
+
VERSION: iP,
|
|
11066
|
+
all: sP,
|
|
11067
|
+
Cancel: aP,
|
|
11068
|
+
isAxiosError: lP,
|
|
11069
|
+
spread: cP,
|
|
11070
|
+
toFormData: uP,
|
|
11071
|
+
AxiosHeaders: dP,
|
|
11072
|
+
HttpStatusCode: fP,
|
|
11073
|
+
formToJSON: pP,
|
|
11074
|
+
getAdapter: mP,
|
|
11075
|
+
mergeConfig: hP
|
|
11076
11076
|
} = It;
|
|
11077
11077
|
function pn(e, t) {
|
|
11078
11078
|
if (!t || t.trim() === "" || e == null) return;
|
|
@@ -11255,7 +11255,7 @@ function AC(e) {
|
|
|
11255
11255
|
});
|
|
11256
11256
|
}
|
|
11257
11257
|
let Rm = null;
|
|
11258
|
-
function
|
|
11258
|
+
function gP(e) {
|
|
11259
11259
|
Rm = e;
|
|
11260
11260
|
}
|
|
11261
11261
|
function CC() {
|
|
@@ -11961,16 +11961,16 @@ const Do = If((e) => ({
|
|
|
11961
11961
|
_setAuthHeaders: (t) => e({ authHeaders: JC(t) }),
|
|
11962
11962
|
_reset: () => e({ viewerContext: void 0, authHeaders: void 0 })
|
|
11963
11963
|
}));
|
|
11964
|
-
function
|
|
11964
|
+
function yP(e) {
|
|
11965
11965
|
Do.getState()._setViewerContext(e);
|
|
11966
11966
|
}
|
|
11967
|
-
function
|
|
11967
|
+
function bP(e) {
|
|
11968
11968
|
Do.getState()._setAuthHeaders(e);
|
|
11969
11969
|
}
|
|
11970
|
-
function
|
|
11970
|
+
function vP() {
|
|
11971
11971
|
Do.getState()._reset();
|
|
11972
11972
|
}
|
|
11973
|
-
function
|
|
11973
|
+
function wP() {
|
|
11974
11974
|
return Do.getState().viewerContext;
|
|
11975
11975
|
}
|
|
11976
11976
|
function Wm() {
|
|
@@ -11978,7 +11978,7 @@ function Wm() {
|
|
|
11978
11978
|
}
|
|
11979
11979
|
const gd = {};
|
|
11980
11980
|
let Gm = null;
|
|
11981
|
-
function
|
|
11981
|
+
function SP(e) {
|
|
11982
11982
|
Gm = e;
|
|
11983
11983
|
}
|
|
11984
11984
|
function QC() {
|
|
@@ -14971,7 +14971,7 @@ rg.displayName = ng;
|
|
|
14971
14971
|
function Oc(e) {
|
|
14972
14972
|
return e ? "open" : "closed";
|
|
14973
14973
|
}
|
|
14974
|
-
var og = "DialogTitleWarning", [
|
|
14974
|
+
var og = "DialogTitleWarning", [xP, ig] = cw(og, {
|
|
14975
14975
|
contentName: eo,
|
|
14976
14976
|
titleName: Pc,
|
|
14977
14977
|
docsSlug: "dialog"
|
|
@@ -20858,7 +20858,7 @@ function Uc(e) {
|
|
|
20858
20858
|
});
|
|
20859
20859
|
return n ? { ...e, fields: r } : e;
|
|
20860
20860
|
}
|
|
20861
|
-
function
|
|
20861
|
+
function AP(e) {
|
|
20862
20862
|
return Uc(e);
|
|
20863
20863
|
}
|
|
20864
20864
|
const FR = new Set(
|
|
@@ -23913,10 +23913,10 @@ const wk = ({
|
|
|
23913
23913
|
}
|
|
23914
23914
|
);
|
|
23915
23915
|
};
|
|
23916
|
-
function
|
|
23916
|
+
function CP(e) {
|
|
23917
23917
|
return typeof e == "object" && e !== null && "apiEndpoint" in e;
|
|
23918
23918
|
}
|
|
23919
|
-
function
|
|
23919
|
+
function EP({ formSchema: e }) {
|
|
23920
23920
|
const t = pe(() => {
|
|
23921
23921
|
if (!e)
|
|
23922
23922
|
return [];
|
|
@@ -24008,7 +24008,7 @@ function CP({ formSchema: e }) {
|
|
|
24008
24008
|
isValid: o
|
|
24009
24009
|
};
|
|
24010
24010
|
}
|
|
24011
|
-
function
|
|
24011
|
+
function NP({
|
|
24012
24012
|
field: e,
|
|
24013
24013
|
value: t,
|
|
24014
24014
|
allValues: n,
|
|
@@ -24166,7 +24166,7 @@ function Sk() {
|
|
|
24166
24166
|
]
|
|
24167
24167
|
};
|
|
24168
24168
|
}
|
|
24169
|
-
const
|
|
24169
|
+
const _P = {
|
|
24170
24170
|
// Input Fields
|
|
24171
24171
|
text: {
|
|
24172
24172
|
type: "text",
|
|
@@ -24933,7 +24933,7 @@ function Tk(e) {
|
|
|
24933
24933
|
}
|
|
24934
24934
|
const rf = {};
|
|
24935
24935
|
let my = null;
|
|
24936
|
-
function
|
|
24936
|
+
function TP(e) {
|
|
24937
24937
|
my = e;
|
|
24938
24938
|
}
|
|
24939
24939
|
function Rk() {
|
|
@@ -25802,6 +25802,9 @@ const wF = 75;
|
|
|
25802
25802
|
function SF(e) {
|
|
25803
25803
|
return e ?? wF;
|
|
25804
25804
|
}
|
|
25805
|
+
function xF(e) {
|
|
25806
|
+
return e ? "rounded-md border border-border p-3" : "";
|
|
25807
|
+
}
|
|
25805
25808
|
function sl({
|
|
25806
25809
|
scrollBehavior: e = "page",
|
|
25807
25810
|
maxHeightPercent: t,
|
|
@@ -25809,7 +25812,7 @@ function sl({
|
|
|
25809
25812
|
className: r
|
|
25810
25813
|
}) {
|
|
25811
25814
|
if (e !== "contained")
|
|
25812
|
-
return /* @__PURE__ */ f(an, { children: n });
|
|
25815
|
+
return r ? /* @__PURE__ */ f("div", { className: r, children: n }) : /* @__PURE__ */ f(an, { children: n });
|
|
25813
25816
|
const o = SF(t);
|
|
25814
25817
|
return /* @__PURE__ */ f(
|
|
25815
25818
|
"div",
|
|
@@ -25821,10 +25824,10 @@ function sl({
|
|
|
25821
25824
|
}
|
|
25822
25825
|
);
|
|
25823
25826
|
}
|
|
25824
|
-
function
|
|
25827
|
+
function AF(e, t, n) {
|
|
25825
25828
|
return ["embedded-form", e, t, n ?? "latest"];
|
|
25826
25829
|
}
|
|
25827
|
-
async function
|
|
25830
|
+
async function CF(e, t) {
|
|
25828
25831
|
try {
|
|
25829
25832
|
const n = await Fr.get(
|
|
25830
25833
|
`/api/form-builder/form-layouts/form/${e}`,
|
|
@@ -25838,12 +25841,12 @@ async function AF(e, t) {
|
|
|
25838
25841
|
return null;
|
|
25839
25842
|
}
|
|
25840
25843
|
}
|
|
25841
|
-
async function
|
|
25844
|
+
async function EF(e, t, n) {
|
|
25842
25845
|
const r = n !== void 0 ? `/api/form-builder/forms/${e}/render?version=${n}` : `/api/form-builder/forms/${e}/render`, o = await Fr.get(r, {
|
|
25843
25846
|
params: { clientId: t }
|
|
25844
25847
|
}), s = o.data?.data ?? o.data, a = s.form ?? s, c = s.fields ?? a.fields ?? [];
|
|
25845
25848
|
let u = s.layout ?? a.layout ?? null;
|
|
25846
|
-
(!u || typeof u.columns != "number") && (u = await
|
|
25849
|
+
(!u || typeof u.columns != "number") && (u = await CF(e, t));
|
|
25847
25850
|
const l = s.rules ?? a.rules ?? [], d = ss(
|
|
25848
25851
|
a,
|
|
25849
25852
|
c,
|
|
@@ -25855,7 +25858,7 @@ async function CF(e, t, n) {
|
|
|
25855
25858
|
) ?? ll(u);
|
|
25856
25859
|
return { schema: d, gridLayout: p };
|
|
25857
25860
|
}
|
|
25858
|
-
const
|
|
25861
|
+
const NF = 300 * 1e3;
|
|
25859
25862
|
function Cy({
|
|
25860
25863
|
formId: e,
|
|
25861
25864
|
mode: t = "fill",
|
|
@@ -25864,28 +25867,53 @@ function Cy({
|
|
|
25864
25867
|
clientId: o,
|
|
25865
25868
|
formVersion: i,
|
|
25866
25869
|
scrollBehavior: s,
|
|
25867
|
-
maxHeightPercent: a
|
|
25870
|
+
maxHeightPercent: a,
|
|
25871
|
+
showBorder: c
|
|
25868
25872
|
}) {
|
|
25869
|
-
const { data:
|
|
25870
|
-
queryKey:
|
|
25871
|
-
queryFn: () =>
|
|
25872
|
-
staleTime:
|
|
25873
|
-
}),
|
|
25873
|
+
const { data: u, isLoading: l, isError: d, error: p } = qr({
|
|
25874
|
+
queryKey: AF(e, o, i),
|
|
25875
|
+
queryFn: () => EF(e, o, i),
|
|
25876
|
+
staleTime: NF
|
|
25877
|
+
}), m = pe(
|
|
25874
25878
|
() => lF(r, n),
|
|
25875
25879
|
[r, n]
|
|
25876
|
-
);
|
|
25877
|
-
return
|
|
25878
|
-
|
|
25880
|
+
), g = xF(c);
|
|
25881
|
+
return l ? /* @__PURE__ */ f(
|
|
25882
|
+
sl,
|
|
25883
|
+
{
|
|
25884
|
+
scrollBehavior: s,
|
|
25885
|
+
maxHeightPercent: a,
|
|
25886
|
+
className: g,
|
|
25887
|
+
children: /* @__PURE__ */ f(Pr, {})
|
|
25888
|
+
}
|
|
25889
|
+
) : d ? /* @__PURE__ */ f(
|
|
25890
|
+
sl,
|
|
25879
25891
|
{
|
|
25880
|
-
|
|
25881
|
-
|
|
25882
|
-
|
|
25883
|
-
|
|
25884
|
-
submissionContext: r
|
|
25892
|
+
scrollBehavior: s,
|
|
25893
|
+
maxHeightPercent: a,
|
|
25894
|
+
className: g,
|
|
25895
|
+
children: /* @__PURE__ */ f("p", { className: "text-sm text-destructive", children: p instanceof Error ? p.message : "Failed to load form" })
|
|
25885
25896
|
}
|
|
25886
|
-
)
|
|
25897
|
+
) : u?.schema ? /* @__PURE__ */ f(
|
|
25898
|
+
sl,
|
|
25899
|
+
{
|
|
25900
|
+
scrollBehavior: s,
|
|
25901
|
+
maxHeightPercent: a,
|
|
25902
|
+
className: g,
|
|
25903
|
+
children: /* @__PURE__ */ f(
|
|
25904
|
+
Xg,
|
|
25905
|
+
{
|
|
25906
|
+
schema: u.schema,
|
|
25907
|
+
mode: t,
|
|
25908
|
+
gridLayout: u.gridLayout,
|
|
25909
|
+
initialValues: m,
|
|
25910
|
+
submissionContext: r
|
|
25911
|
+
}
|
|
25912
|
+
)
|
|
25913
|
+
}
|
|
25914
|
+
) : null;
|
|
25887
25915
|
}
|
|
25888
|
-
function
|
|
25916
|
+
function _F({ widget: e }) {
|
|
25889
25917
|
const t = e.config, { context: n, clientId: r } = Gn();
|
|
25890
25918
|
return t.formId ? /* @__PURE__ */ f(
|
|
25891
25919
|
Cy,
|
|
@@ -25896,11 +25924,12 @@ function NF({ widget: e }) {
|
|
|
25896
25924
|
pageContext: n,
|
|
25897
25925
|
clientId: r,
|
|
25898
25926
|
scrollBehavior: t.scrollBehavior,
|
|
25899
|
-
maxHeightPercent: t.maxHeightPercent
|
|
25927
|
+
maxHeightPercent: t.maxHeightPercent,
|
|
25928
|
+
showBorder: t.showBorder
|
|
25900
25929
|
}
|
|
25901
25930
|
) : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No form configured" });
|
|
25902
25931
|
}
|
|
25903
|
-
function
|
|
25932
|
+
function TF({ widget: e }) {
|
|
25904
25933
|
const t = e.config, { context: n, getWorkflowState: r, clientId: o } = Gn(), i = String(n.moduleId ?? "");
|
|
25905
25934
|
if (!r)
|
|
25906
25935
|
return /* @__PURE__ */ $(
|
|
@@ -25935,7 +25964,7 @@ function _F({ widget: e }) {
|
|
|
25935
25964
|
}
|
|
25936
25965
|
);
|
|
25937
25966
|
}
|
|
25938
|
-
function
|
|
25967
|
+
function RF({ widget: e }) {
|
|
25939
25968
|
const t = e.config, { schema: n, dispatchAction: r } = Gn(), o = t.previousPage ?? n.navigation?.previousPage, i = t.nextPage ?? n.navigation?.nextPage, s = t.showPrevious !== !1 && !!o, a = t.showNext !== !1 && !!i, c = t.showBreadcrumbs && n.navigation?.breadcrumbs?.length, u = t.align === "center" ? "justify-center" : t.align === "right" ? "justify-end" : t.align === "space-between" ? "justify-between" : "justify-start", l = (d) => {
|
|
25940
25969
|
r(
|
|
25941
25970
|
{
|
|
@@ -25957,11 +25986,11 @@ function TF({ widget: e }) {
|
|
|
25957
25986
|
] })
|
|
25958
25987
|
] });
|
|
25959
25988
|
}
|
|
25960
|
-
function
|
|
25989
|
+
function kF(e, t) {
|
|
25961
25990
|
return e?.length ? e.filter((n) => n.config.tabId === t) : [];
|
|
25962
25991
|
}
|
|
25963
|
-
const
|
|
25964
|
-
function
|
|
25992
|
+
const FF = 1;
|
|
25993
|
+
function PF(e) {
|
|
25965
25994
|
switch (e) {
|
|
25966
25995
|
case "pills":
|
|
25967
25996
|
return "bg-transparent gap-1 p-0 h-auto";
|
|
@@ -25971,7 +26000,7 @@ function FF(e) {
|
|
|
25971
26000
|
return "";
|
|
25972
26001
|
}
|
|
25973
26002
|
}
|
|
25974
|
-
function
|
|
26003
|
+
function OF(e) {
|
|
25975
26004
|
switch (e) {
|
|
25976
26005
|
case "pills":
|
|
25977
26006
|
return "rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground";
|
|
@@ -25981,10 +26010,10 @@ function PF(e) {
|
|
|
25981
26010
|
return "";
|
|
25982
26011
|
}
|
|
25983
26012
|
}
|
|
25984
|
-
function
|
|
26013
|
+
function IF(e, t, n) {
|
|
25985
26014
|
return e ? new Set(n ? [n] : []) : new Set(t.map((r) => r.id));
|
|
25986
26015
|
}
|
|
25987
|
-
function
|
|
26016
|
+
function MF({
|
|
25988
26017
|
tab: e,
|
|
25989
26018
|
shouldRender: t,
|
|
25990
26019
|
pageContext: n,
|
|
@@ -25999,11 +26028,12 @@ function IF({
|
|
|
25999
26028
|
pageContext: n,
|
|
26000
26029
|
clientId: r,
|
|
26001
26030
|
scrollBehavior: e.scrollBehavior,
|
|
26002
|
-
maxHeightPercent: e.maxHeightPercent
|
|
26031
|
+
maxHeightPercent: e.maxHeightPercent,
|
|
26032
|
+
showBorder: e.showBorder
|
|
26003
26033
|
}
|
|
26004
26034
|
) : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No form configured for this tab" }) : null;
|
|
26005
26035
|
}
|
|
26006
|
-
function
|
|
26036
|
+
function LF({
|
|
26007
26037
|
tab: e,
|
|
26008
26038
|
shouldLoad: t,
|
|
26009
26039
|
shouldRender: n,
|
|
@@ -26018,7 +26048,7 @@ function MF({
|
|
|
26018
26048
|
enabled: t && !!e.pageId,
|
|
26019
26049
|
queryFn: async () => hy(e.pageId, i, e.pageVersion)
|
|
26020
26050
|
});
|
|
26021
|
-
return n ? r >=
|
|
26051
|
+
return n ? r >= FF ? /* @__PURE__ */ f("div", { className: "rounded-md border border-destructive/50 bg-destructive/5 p-4 text-sm text-destructive", children: "Nested page tabs not supported" }) : e.pageId ? l ? /* @__PURE__ */ f(Pr, {}) : d ? /* @__PURE__ */ f("p", { className: "text-sm text-destructive", children: p instanceof Error ? p.message : "Failed to load page" }) : u ? /* @__PURE__ */ f(
|
|
26022
26052
|
Ey,
|
|
26023
26053
|
{
|
|
26024
26054
|
page: u,
|
|
@@ -26031,17 +26061,17 @@ function MF({
|
|
|
26031
26061
|
}
|
|
26032
26062
|
) : null : /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground", children: "No page configured for this tab" }) : null;
|
|
26033
26063
|
}
|
|
26034
|
-
function
|
|
26064
|
+
function DF({
|
|
26035
26065
|
tab: e,
|
|
26036
26066
|
widgetChildren: t,
|
|
26037
26067
|
renderChildren: n
|
|
26038
26068
|
}) {
|
|
26039
|
-
const r =
|
|
26069
|
+
const r = kF(t, e.id);
|
|
26040
26070
|
return r.length === 0 ? /* @__PURE__ */ f("p", { className: "text-sm text-muted-foreground py-4", children: "No widgets in this tab" }) : /* @__PURE__ */ f(an, { children: n?.(r) });
|
|
26041
26071
|
}
|
|
26042
|
-
function
|
|
26072
|
+
function BF({ widget: e, renderChildren: t }) {
|
|
26043
26073
|
const n = e.config, { context: r, clientId: o, nestingDepth: i, onAction: s, getWorkflowState: a } = Gn(), c = n.tabs ?? [], u = n.defaultTabId ?? c[0]?.id ?? "", l = n.lazyLoad !== !1, [d, p] = Ee(u), [m, g] = Ee(
|
|
26044
|
-
() =>
|
|
26074
|
+
() => IF(l, c, u)
|
|
26045
26075
|
), h = (w) => {
|
|
26046
26076
|
g((v) => new Set(v).add(w)), p(w);
|
|
26047
26077
|
}, y = pe(() => !l, [l]);
|
|
@@ -26053,12 +26083,12 @@ function DF({ widget: e, renderChildren: t }) {
|
|
|
26053
26083
|
className: "w-full",
|
|
26054
26084
|
"data-widget-id": e.id,
|
|
26055
26085
|
children: [
|
|
26056
|
-
/* @__PURE__ */ f(ly, { className: L("mb-4",
|
|
26086
|
+
/* @__PURE__ */ f(ly, { className: L("mb-4", PF(n.variant)), children: c.map((w) => /* @__PURE__ */ f(
|
|
26057
26087
|
cy,
|
|
26058
26088
|
{
|
|
26059
26089
|
value: w.id,
|
|
26060
26090
|
disabled: w.disabled,
|
|
26061
|
-
className:
|
|
26091
|
+
className: OF(n.variant),
|
|
26062
26092
|
children: w.label
|
|
26063
26093
|
},
|
|
26064
26094
|
w.id
|
|
@@ -26073,7 +26103,7 @@ function DF({ widget: e, renderChildren: t }) {
|
|
|
26073
26103
|
className: L("mt-0", y && "data-[state=inactive]:hidden"),
|
|
26074
26104
|
children: [
|
|
26075
26105
|
w.contentType === "widgets" && C && /* @__PURE__ */ f(
|
|
26076
|
-
|
|
26106
|
+
DF,
|
|
26077
26107
|
{
|
|
26078
26108
|
tab: w,
|
|
26079
26109
|
widgetChildren: e.children ?? [],
|
|
@@ -26081,7 +26111,7 @@ function DF({ widget: e, renderChildren: t }) {
|
|
|
26081
26111
|
}
|
|
26082
26112
|
),
|
|
26083
26113
|
w.contentType === "form" && /* @__PURE__ */ f(
|
|
26084
|
-
|
|
26114
|
+
MF,
|
|
26085
26115
|
{
|
|
26086
26116
|
tab: w,
|
|
26087
26117
|
shouldRender: S,
|
|
@@ -26090,7 +26120,7 @@ function DF({ widget: e, renderChildren: t }) {
|
|
|
26090
26120
|
}
|
|
26091
26121
|
),
|
|
26092
26122
|
w.contentType === "page" && /* @__PURE__ */ f(
|
|
26093
|
-
|
|
26123
|
+
LF,
|
|
26094
26124
|
{
|
|
26095
26125
|
tab: w,
|
|
26096
26126
|
shouldLoad: S,
|
|
@@ -26111,11 +26141,11 @@ function DF({ widget: e, renderChildren: t }) {
|
|
|
26111
26141
|
}
|
|
26112
26142
|
);
|
|
26113
26143
|
}
|
|
26114
|
-
const
|
|
26144
|
+
const $F = {
|
|
26115
26145
|
section: Kk,
|
|
26116
26146
|
columns: qk,
|
|
26117
26147
|
card: Yk,
|
|
26118
|
-
tab_group:
|
|
26148
|
+
tab_group: BF,
|
|
26119
26149
|
heading: Xk,
|
|
26120
26150
|
text: Jk,
|
|
26121
26151
|
button: eF,
|
|
@@ -26124,11 +26154,11 @@ const BF = {
|
|
|
26124
26154
|
stat_grid: gF,
|
|
26125
26155
|
data_table: vF,
|
|
26126
26156
|
search_filter: yF,
|
|
26127
|
-
form_embed:
|
|
26128
|
-
workflow_embed:
|
|
26129
|
-
page_nav:
|
|
26157
|
+
form_embed: _F,
|
|
26158
|
+
workflow_embed: TF,
|
|
26159
|
+
page_nav: RF
|
|
26130
26160
|
};
|
|
26131
|
-
function
|
|
26161
|
+
function jF({ widget: e }) {
|
|
26132
26162
|
return /* @__PURE__ */ $(
|
|
26133
26163
|
"div",
|
|
26134
26164
|
{
|
|
@@ -26147,16 +26177,16 @@ function $F({ widget: e }) {
|
|
|
26147
26177
|
}
|
|
26148
26178
|
);
|
|
26149
26179
|
}
|
|
26150
|
-
function
|
|
26180
|
+
function zF({
|
|
26151
26181
|
widget: e,
|
|
26152
26182
|
renderChildren: t
|
|
26153
26183
|
}) {
|
|
26154
|
-
const n =
|
|
26184
|
+
const n = $F[e.type] ?? jF;
|
|
26155
26185
|
return /* @__PURE__ */ f(n, { widget: e, renderChildren: t });
|
|
26156
26186
|
}
|
|
26157
26187
|
function uf(e, t) {
|
|
26158
26188
|
return e.map((n) => /* @__PURE__ */ f(
|
|
26159
|
-
|
|
26189
|
+
zF,
|
|
26160
26190
|
{
|
|
26161
26191
|
widget: n,
|
|
26162
26192
|
renderChildren: t
|
|
@@ -26204,7 +26234,7 @@ function Ey({
|
|
|
26204
26234
|
}
|
|
26205
26235
|
);
|
|
26206
26236
|
}
|
|
26207
|
-
function
|
|
26237
|
+
function RP({
|
|
26208
26238
|
clientId: e,
|
|
26209
26239
|
tenantId: t,
|
|
26210
26240
|
moduleId: n,
|
|
@@ -26269,25 +26299,25 @@ function TP({
|
|
|
26269
26299
|
) : /* @__PURE__ */ f("div", { className: "rounded-md border p-4 text-sm text-muted-foreground", children: "No page found for the given scope or route." });
|
|
26270
26300
|
}
|
|
26271
26301
|
export {
|
|
26272
|
-
|
|
26302
|
+
_P as FIELD_TYPE_REGISTRY,
|
|
26273
26303
|
So as FORM_RENDERER_GRID_ROW_HEIGHT_DEFAULT,
|
|
26274
26304
|
ff as FORM_RENDERER_ROOT_CLASS,
|
|
26275
26305
|
Ar as FieldRenderer,
|
|
26276
26306
|
Xg as FormRenderer,
|
|
26277
26307
|
Ey as PageRenderer,
|
|
26278
26308
|
Of as RendererFieldLayoutContext,
|
|
26279
|
-
|
|
26309
|
+
RP as StudioPageHost,
|
|
26280
26310
|
wk as WorkflowStepsView,
|
|
26281
26311
|
Fs as appearanceControlClasses,
|
|
26282
26312
|
Bb as appearanceHasExplicitVerticalIntent,
|
|
26283
26313
|
Nb as appearanceTextareaClasses,
|
|
26284
26314
|
ss as backendToFormSchema,
|
|
26285
|
-
|
|
26286
|
-
|
|
26315
|
+
XF as cellAlignmentClasses,
|
|
26316
|
+
YF as cellVerticalJustifyClassesForField,
|
|
26287
26317
|
Gl as effectiveWidthPercent,
|
|
26288
26318
|
gy as executeDataSource,
|
|
26289
26319
|
hy as fetchPageRender,
|
|
26290
|
-
|
|
26320
|
+
qF as fieldBlockBoxStyle,
|
|
26291
26321
|
Lb as fieldBlockBoxStyleForField,
|
|
26292
26322
|
Pb as fieldBlockHorizontalPlacementClass,
|
|
26293
26323
|
Ob as fieldBlockHorizontalSelfClass,
|
|
@@ -26300,20 +26330,20 @@ export {
|
|
|
26300
26330
|
CC as getBusinessApiOrigin,
|
|
26301
26331
|
Zr as getClientId,
|
|
26302
26332
|
Wm as getRendererHostAuthHeaders,
|
|
26303
|
-
|
|
26304
|
-
|
|
26333
|
+
wP as getRendererHostViewerContext,
|
|
26334
|
+
JF as getRendererStore,
|
|
26305
26335
|
Fb as gridCellFlexClasses,
|
|
26306
26336
|
du as gridCellFlexClassesForField,
|
|
26307
26337
|
kb as gridCellOuterFlexClasses,
|
|
26308
26338
|
Ib as hasExplicitFieldBlockWidth,
|
|
26309
|
-
|
|
26339
|
+
CP as isAsyncSearchFieldProperties,
|
|
26310
26340
|
li as isIntrinsicWidthButtonField,
|
|
26311
|
-
|
|
26341
|
+
AP as normalizeWorkflowFormSchema,
|
|
26312
26342
|
Uc as normalizeWorkflowFormToRendererSchema,
|
|
26313
26343
|
ga as pageBuilderHttp,
|
|
26314
26344
|
Ff as parseContentVerticalAlign,
|
|
26315
26345
|
ma as parseMetadataJson,
|
|
26316
|
-
|
|
26346
|
+
vP as resetRendererHostAuth,
|
|
26317
26347
|
Er as resolveBusinessApiUrl,
|
|
26318
26348
|
Vl as resolveFormGridLayout,
|
|
26319
26349
|
kk as resolvePage,
|
|
@@ -26321,14 +26351,14 @@ export {
|
|
|
26321
26351
|
Zn as resolvedHorizontalAlign,
|
|
26322
26352
|
cs as resolvedVerticalAlign,
|
|
26323
26353
|
Pf as resolvedVerticalAlignForField,
|
|
26324
|
-
|
|
26325
|
-
|
|
26326
|
-
|
|
26327
|
-
|
|
26328
|
-
|
|
26329
|
-
|
|
26354
|
+
gP as setBusinessApiOrigin,
|
|
26355
|
+
SP as setFormBuilderAuthProvider,
|
|
26356
|
+
TP as setPageBuilderAuthProvider,
|
|
26357
|
+
bP as setRendererHostAuthHeaders,
|
|
26358
|
+
yP as setRendererHostViewerContext,
|
|
26359
|
+
NP as useFieldValidation,
|
|
26330
26360
|
fv as useFormRenderer,
|
|
26331
|
-
|
|
26361
|
+
EP as useFormValidation,
|
|
26332
26362
|
Os as useRendererFieldLayout,
|
|
26333
26363
|
Do as useRendererHostAuthStore
|
|
26334
26364
|
};
|