@arudovwen/form-builder-react 1.9.8 → 1.9.9
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.
|
@@ -2223,6 +2223,9 @@ const qa = ({
|
|
|
2223
2223
|
]
|
|
2224
2224
|
}), Qa = Object.freeze({
|
|
2225
2225
|
pollComponents: [
|
|
2226
|
+
"textField",
|
|
2227
|
+
"phoneField",
|
|
2228
|
+
"email",
|
|
2226
2229
|
"radio",
|
|
2227
2230
|
// Single Choice
|
|
2228
2231
|
"checkbox",
|
|
@@ -8434,7 +8437,7 @@ const bs = oi(ms), vs = R.object({
|
|
|
8434
8437
|
const a = fe("config"), s = (a == null ? void 0 : a.loaderColor) || "#333";
|
|
8435
8438
|
document.documentElement.style.setProperty("--loader-color", s);
|
|
8436
8439
|
}, []), /* @__PURE__ */ i("div", { className: n, children: /* @__PURE__ */ i("span", { className: "loader" }) });
|
|
8437
|
-
}, Ss = te.lazy(() => import("./logic-flow-
|
|
8440
|
+
}, Ss = te.lazy(() => import("./logic-flow-DsvRkbZ-.js"));
|
|
8438
8441
|
function Ns({
|
|
8439
8442
|
questionData: e,
|
|
8440
8443
|
uploadUrl: n,
|
|
@@ -9205,7 +9208,7 @@ const sn = (e) => {
|
|
|
9205
9208
|
" Responses)"
|
|
9206
9209
|
] }) }),
|
|
9207
9210
|
/* @__PURE__ */ c("div", { className: "space-y-4", children: [
|
|
9208
|
-
["polling", "checkbox", "radio", "imageChoice"].includes(e.type) && ((s = e.responsesData) == null ? void 0 : s.options) && e.responsesData.options.map((t, b) => /* @__PURE__ */ c("div", { className: "w-full", children: [
|
|
9211
|
+
["polling", "checkbox", "radio", "imageChoice", "selectField"].includes(e.type) && ((s = e.responsesData) == null ? void 0 : s.options) && e.responsesData.options.map((t, b) => /* @__PURE__ */ c("div", { className: "w-full", children: [
|
|
9209
9212
|
/* @__PURE__ */ c("div", { className: "flex justify-between items-center mb-1.5 text-sm font-semibold text-gray-800", children: [
|
|
9210
9213
|
/* @__PURE__ */ i("span", { children: t.label }),
|
|
9211
9214
|
/* @__PURE__ */ c("span", { children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as ce, jsx as D, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import ht, { memo as le, useState as xe, useCallback as we, forwardRef as Oo, useRef as ne, useEffect as ie, useContext as gt, createContext as fn, useMemo as be, useLayoutEffect as Aa } from "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
import { A as Ia } from "./index-
|
|
4
|
+
import { A as Ia } from "./index-uGnq1AX8.js";
|
|
5
5
|
function ue(e) {
|
|
6
6
|
if (typeof e == "string" || typeof e == "number") return "" + e;
|
|
7
7
|
let t = "";
|
package/package.json
CHANGED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
export declare const demoPollApiResponse: {
|
|
2
|
+
succeeded: boolean;
|
|
3
|
+
message: string;
|
|
4
|
+
errors: any;
|
|
5
|
+
data: {
|
|
6
|
+
formId: string;
|
|
7
|
+
formName: string;
|
|
8
|
+
category: string;
|
|
9
|
+
totalSubmissions: number;
|
|
10
|
+
submissionsData: ({
|
|
11
|
+
sectionId: string;
|
|
12
|
+
fieldId: string;
|
|
13
|
+
type: string;
|
|
14
|
+
label: string;
|
|
15
|
+
totalResponses: number;
|
|
16
|
+
responsesData: {
|
|
17
|
+
options: {
|
|
18
|
+
optionId: string;
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
count: number;
|
|
22
|
+
percentage: number;
|
|
23
|
+
}[];
|
|
24
|
+
rows?: undefined;
|
|
25
|
+
average?: undefined;
|
|
26
|
+
nps?: undefined;
|
|
27
|
+
rankings?: undefined;
|
|
28
|
+
topRankWeight?: undefined;
|
|
29
|
+
totalPoints?: undefined;
|
|
30
|
+
};
|
|
31
|
+
} | {
|
|
32
|
+
sectionId: string;
|
|
33
|
+
fieldId: string;
|
|
34
|
+
type: string;
|
|
35
|
+
label: string;
|
|
36
|
+
totalResponses: number;
|
|
37
|
+
responsesData: {
|
|
38
|
+
rows: {
|
|
39
|
+
rowId: string;
|
|
40
|
+
label: string;
|
|
41
|
+
value: string;
|
|
42
|
+
totalResponses: number;
|
|
43
|
+
columns: {
|
|
44
|
+
optionId: string;
|
|
45
|
+
label: string;
|
|
46
|
+
value: string;
|
|
47
|
+
count: number;
|
|
48
|
+
percentage: number;
|
|
49
|
+
}[];
|
|
50
|
+
}[];
|
|
51
|
+
options?: undefined;
|
|
52
|
+
average?: undefined;
|
|
53
|
+
nps?: undefined;
|
|
54
|
+
rankings?: undefined;
|
|
55
|
+
topRankWeight?: undefined;
|
|
56
|
+
totalPoints?: undefined;
|
|
57
|
+
};
|
|
58
|
+
} | {
|
|
59
|
+
sectionId: string;
|
|
60
|
+
fieldId: string;
|
|
61
|
+
type: string;
|
|
62
|
+
label: string;
|
|
63
|
+
totalResponses: number;
|
|
64
|
+
responsesData: {
|
|
65
|
+
options: {
|
|
66
|
+
label: string;
|
|
67
|
+
value: string;
|
|
68
|
+
count: number;
|
|
69
|
+
percentage: number;
|
|
70
|
+
}[];
|
|
71
|
+
average: number;
|
|
72
|
+
nps: {
|
|
73
|
+
promoters: number;
|
|
74
|
+
passives: number;
|
|
75
|
+
detractors: number;
|
|
76
|
+
score: number;
|
|
77
|
+
};
|
|
78
|
+
rows?: undefined;
|
|
79
|
+
rankings?: undefined;
|
|
80
|
+
topRankWeight?: undefined;
|
|
81
|
+
totalPoints?: undefined;
|
|
82
|
+
};
|
|
83
|
+
} | {
|
|
84
|
+
sectionId: string;
|
|
85
|
+
fieldId: string;
|
|
86
|
+
type: string;
|
|
87
|
+
label: string;
|
|
88
|
+
totalResponses: number;
|
|
89
|
+
responsesData: {
|
|
90
|
+
options: {
|
|
91
|
+
label: string;
|
|
92
|
+
value: string;
|
|
93
|
+
count: number;
|
|
94
|
+
percentage: number;
|
|
95
|
+
}[];
|
|
96
|
+
average: number;
|
|
97
|
+
rows?: undefined;
|
|
98
|
+
nps?: undefined;
|
|
99
|
+
rankings?: undefined;
|
|
100
|
+
topRankWeight?: undefined;
|
|
101
|
+
totalPoints?: undefined;
|
|
102
|
+
};
|
|
103
|
+
} | {
|
|
104
|
+
sectionId: string;
|
|
105
|
+
fieldId: string;
|
|
106
|
+
type: string;
|
|
107
|
+
label: string;
|
|
108
|
+
totalResponses: number;
|
|
109
|
+
responsesData: {
|
|
110
|
+
rankings: {
|
|
111
|
+
optionId: string;
|
|
112
|
+
label: string;
|
|
113
|
+
value: string;
|
|
114
|
+
count: number;
|
|
115
|
+
percentage: number;
|
|
116
|
+
averageRank: number;
|
|
117
|
+
points: number;
|
|
118
|
+
pointsPercentage: number;
|
|
119
|
+
isTopRanked: boolean;
|
|
120
|
+
}[];
|
|
121
|
+
topRankWeight: number;
|
|
122
|
+
totalPoints: number;
|
|
123
|
+
options?: undefined;
|
|
124
|
+
rows?: undefined;
|
|
125
|
+
average?: undefined;
|
|
126
|
+
nps?: undefined;
|
|
127
|
+
};
|
|
128
|
+
})[];
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export declare const demoQuestionDa: {
|
|
132
|
+
title: string;
|
|
133
|
+
description: string;
|
|
134
|
+
id: string;
|
|
135
|
+
questionData: ({
|
|
136
|
+
required: boolean;
|
|
137
|
+
isReadOnly: boolean;
|
|
138
|
+
isDisabled: boolean;
|
|
139
|
+
id: string;
|
|
140
|
+
sectionId: string;
|
|
141
|
+
type: string;
|
|
142
|
+
label: string;
|
|
143
|
+
inputLabel: string;
|
|
144
|
+
inputType: string;
|
|
145
|
+
} | {
|
|
146
|
+
options: {
|
|
147
|
+
id: any;
|
|
148
|
+
label: any;
|
|
149
|
+
value: any;
|
|
150
|
+
}[];
|
|
151
|
+
options1: {
|
|
152
|
+
id: any;
|
|
153
|
+
label: any;
|
|
154
|
+
value: any;
|
|
155
|
+
}[];
|
|
156
|
+
required: boolean;
|
|
157
|
+
isReadOnly: boolean;
|
|
158
|
+
isDisabled: boolean;
|
|
159
|
+
id: string;
|
|
160
|
+
sectionId: string;
|
|
161
|
+
type: string;
|
|
162
|
+
label: string;
|
|
163
|
+
inputLabel: string;
|
|
164
|
+
inputType: string;
|
|
165
|
+
} | {
|
|
166
|
+
options: {
|
|
167
|
+
id: any;
|
|
168
|
+
label: any;
|
|
169
|
+
value: any;
|
|
170
|
+
}[];
|
|
171
|
+
required: boolean;
|
|
172
|
+
isReadOnly: boolean;
|
|
173
|
+
isDisabled: boolean;
|
|
174
|
+
id: string;
|
|
175
|
+
sectionId: string;
|
|
176
|
+
type: string;
|
|
177
|
+
label: string;
|
|
178
|
+
inputLabel: string;
|
|
179
|
+
inputType: string;
|
|
180
|
+
})[];
|
|
181
|
+
}[];
|