@sparrowengg/integrations-templates-frontend 1.9.67 → 1.9.69
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/cjs/_virtual/index10.js +2 -2
- package/dist/cjs/_virtual/index9.js +2 -2
- package/dist/cjs/integration-template/components/dashboard.js +305 -175
- package/dist/cjs/integration-template/components/dashboard.js.map +1 -1
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/domutils/lib/index.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/htmlparser2/lib/index.js +1 -1
- package/dist/cjs/single-mapping/components/mapping.js +14 -8
- package/dist/cjs/single-mapping/components/mapping.js.map +1 -1
- package/dist/cjs/single-mapping/index.js +204 -73
- package/dist/cjs/single-mapping/index.js.map +1 -1
- package/dist/es/_virtual/index10.js +2 -2
- package/dist/es/_virtual/index9.js +2 -2
- package/dist/es/integration-template/components/dashboard.js +305 -175
- package/dist/es/integration-template/components/dashboard.js.map +1 -1
- package/dist/es/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/domutils/lib/index.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/htmlparser2/lib/index.js +1 -1
- package/dist/es/single-mapping/components/mapping.js +14 -8
- package/dist/es/single-mapping/components/mapping.js.map +1 -1
- package/dist/es/single-mapping/index.js +204 -73
- package/dist/es/single-mapping/index.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -12,10 +12,10 @@ import { ArrowLeftIcon } from '../node_modules/@sparrowengg/twigs-react-icons/di
|
|
|
12
12
|
import { Heading } from '../node_modules/@sparrowengg/twigs-react/dist/es/heading/heading.js';
|
|
13
13
|
import { Button } from '../node_modules/@sparrowengg/twigs-react/dist/es/button/button.js';
|
|
14
14
|
import { Text } from '../node_modules/@sparrowengg/twigs-react/dist/es/text/text.js';
|
|
15
|
+
import { Tooltip } from '../node_modules/@sparrowengg/twigs-react/dist/es/tooltip/tooltip.js';
|
|
15
16
|
import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent } from '../node_modules/@sparrowengg/twigs-react/dist/es/dropdown/dropdown.js';
|
|
16
17
|
import { Input } from '../node_modules/@sparrowengg/twigs-react/dist/es/input/input.js';
|
|
17
18
|
import { ChevronDownIcon } from '../node_modules/@sparrowengg/twigs-react-icons/dist/es/icons/chevron-down.js';
|
|
18
|
-
import { Tooltip } from '../node_modules/@sparrowengg/twigs-react/dist/es/tooltip/tooltip.js';
|
|
19
19
|
import { Calendar } from '../node_modules/@sparrowengg/twigs-react/dist/es/calendar/calendar.js';
|
|
20
20
|
import { RadioGroup, Radio } from '../node_modules/@sparrowengg/twigs-react/dist/es/radio/radio.js';
|
|
21
21
|
import { FormLabel } from '../node_modules/@sparrowengg/twigs-react/dist/es/form-label/form-label.js';
|
|
@@ -55,7 +55,7 @@ const SingleMapping = ({
|
|
|
55
55
|
apiURL = surveySparrowURL,
|
|
56
56
|
surveyDetails,
|
|
57
57
|
importResponse,
|
|
58
|
-
|
|
58
|
+
hasExistingMapping,
|
|
59
59
|
onSaveHandler,
|
|
60
60
|
editField,
|
|
61
61
|
previousMappingHandler
|
|
@@ -67,13 +67,9 @@ const SingleMapping = ({
|
|
|
67
67
|
expressions: [],
|
|
68
68
|
property: []
|
|
69
69
|
});
|
|
70
|
-
const [previousMapping, setPreviousMapping] = useState(
|
|
71
|
-
hasPreviousMapping != null ? hasPreviousMapping : false
|
|
72
|
-
);
|
|
73
70
|
useEffect(() => {
|
|
74
71
|
if (!!(editField == null ? void 0 : editField.id)) {
|
|
75
72
|
navigateMappingPage(true);
|
|
76
|
-
setPreviousMapping(true);
|
|
77
73
|
}
|
|
78
74
|
}, []);
|
|
79
75
|
return /* @__PURE__ */ React__default.createElement(
|
|
@@ -97,7 +93,7 @@ const SingleMapping = ({
|
|
|
97
93
|
configuration.onSaveHandler();
|
|
98
94
|
},
|
|
99
95
|
isMappingPage,
|
|
100
|
-
|
|
96
|
+
hasExistingMapping,
|
|
101
97
|
navigateConfigPage: () => navigateMappingPage(false),
|
|
102
98
|
previousMappingHandler,
|
|
103
99
|
onSaveHandler: () => {
|
|
@@ -144,7 +140,7 @@ const SingleMapping = ({
|
|
|
144
140
|
const MappingHeader = ({
|
|
145
141
|
editField,
|
|
146
142
|
importResponse,
|
|
147
|
-
|
|
143
|
+
hasExistingMapping,
|
|
148
144
|
ssMappingData,
|
|
149
145
|
isMappingPage,
|
|
150
146
|
navigateConfigPage,
|
|
@@ -195,7 +191,7 @@ const MappingHeader = ({
|
|
|
195
191
|
{
|
|
196
192
|
gap: "$6",
|
|
197
193
|
alignItems: "center",
|
|
198
|
-
css: { visibility:
|
|
194
|
+
css: { visibility: hasExistingMapping ? "visible" : "hidden" }
|
|
199
195
|
},
|
|
200
196
|
/* @__PURE__ */ React__default.createElement(
|
|
201
197
|
IconButton,
|
|
@@ -248,7 +244,9 @@ const MappingHeader = ({
|
|
|
248
244
|
"Mapping"
|
|
249
245
|
)
|
|
250
246
|
),
|
|
251
|
-
/* @__PURE__ */ React__default.createElement(
|
|
247
|
+
/* @__PURE__ */ React__default.createElement(Flex, { justifyContent: "center", css: {
|
|
248
|
+
width: "180px"
|
|
249
|
+
} }, /* @__PURE__ */ React__default.createElement(
|
|
252
250
|
Button,
|
|
253
251
|
{
|
|
254
252
|
size: "lg",
|
|
@@ -262,15 +260,27 @@ const MappingHeader = ({
|
|
|
262
260
|
}
|
|
263
261
|
},
|
|
264
262
|
isMappingPage ? (editField == null ? void 0 : editField.id) ? "Update Mapping" : "Save Mapping" : "Continue, Mapping"
|
|
265
|
-
)
|
|
263
|
+
))
|
|
266
264
|
);
|
|
267
265
|
};
|
|
268
266
|
const ConfigurationSetup = ({
|
|
269
267
|
configuration,
|
|
270
268
|
surveyName
|
|
271
269
|
}) => {
|
|
272
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
273
|
-
return /* @__PURE__ */ React__default.createElement(Box, { css: { maxWidth: 488, width: "100%" } }, /* @__PURE__ */ React__default.createElement(Heading, { size: "h5" }, "Event Details"), /* @__PURE__ */ React__default.createElement(Flex, { gap: "$2", css: { marginTop: "$4" } }, /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { color: "$neutral500" } }, "Survey Name:"), /* @__PURE__ */ React__default.createElement(
|
|
270
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
271
|
+
return /* @__PURE__ */ React__default.createElement(Box, { css: { maxWidth: 488, width: "100%" } }, /* @__PURE__ */ React__default.createElement(Heading, { size: "h5" }, "Event Details"), /* @__PURE__ */ React__default.createElement(Flex, { gap: "$2", css: { marginTop: "$4" } }, /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { color: "$neutral500" } }, "Survey Name:"), /* @__PURE__ */ React__default.createElement(Tooltip, { content: (surveyName == null ? void 0 : surveyName.length) > 30 ? surveyName : "", css: {
|
|
272
|
+
zIndex: "9999999 !important",
|
|
273
|
+
fontFamily: "DM Sans !important"
|
|
274
|
+
} }, /* @__PURE__ */ React__default.createElement(Box, null, /* @__PURE__ */ React__default.createElement(
|
|
275
|
+
Text,
|
|
276
|
+
{
|
|
277
|
+
size: "sm",
|
|
278
|
+
weight: "medium",
|
|
279
|
+
truncate: true,
|
|
280
|
+
css: { color: "$neutral800", maxWidth: "270px" }
|
|
281
|
+
},
|
|
282
|
+
surveyName
|
|
283
|
+
)))), /* @__PURE__ */ React__default.createElement(
|
|
274
284
|
Flex,
|
|
275
285
|
{
|
|
276
286
|
flexDirection: "column",
|
|
@@ -283,11 +293,49 @@ const ConfigurationSetup = ({
|
|
|
283
293
|
}
|
|
284
294
|
},
|
|
285
295
|
(_a = configuration.configurationFields) == null ? void 0 : _a.map((field) => {
|
|
286
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
296
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
297
|
+
Configuration,
|
|
298
|
+
{
|
|
299
|
+
field,
|
|
300
|
+
configuredFields: configuration.configuredFields
|
|
301
|
+
}
|
|
302
|
+
);
|
|
287
303
|
}),
|
|
288
|
-
configuration.importOptions.showImportOptions && /* @__PURE__ */ React__default.createElement(
|
|
289
|
-
|
|
290
|
-
|
|
304
|
+
configuration.importOptions.showImportOptions && /* @__PURE__ */ React__default.createElement(
|
|
305
|
+
Flex,
|
|
306
|
+
{
|
|
307
|
+
gap: "$2",
|
|
308
|
+
flexDirection: "column",
|
|
309
|
+
css: {
|
|
310
|
+
marginTop: "-4px !important"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
/* @__PURE__ */ React__default.createElement(
|
|
314
|
+
CustomDropdown,
|
|
315
|
+
{
|
|
316
|
+
data: configuration.importOptions.options,
|
|
317
|
+
value: (_d = (_c = (_b = configuration == null ? void 0 : configuration.configuredFields) == null ? void 0 : _b.responseImportType) == null ? void 0 : _c.value) != null ? _d : configuration.importOptions.options[0],
|
|
318
|
+
onChangeHandler: configuration.importOptions.onChangeHandler
|
|
319
|
+
}
|
|
320
|
+
)
|
|
321
|
+
),
|
|
322
|
+
((_g = (_f = (_e = configuration.configuredFields) == null ? void 0 : _e.responseImportType) == null ? void 0 : _f.value) == null ? void 0 : _g.type) === "date" && /* @__PURE__ */ React__default.createElement(
|
|
323
|
+
Text,
|
|
324
|
+
{
|
|
325
|
+
size: "sm",
|
|
326
|
+
weight: "regular",
|
|
327
|
+
css: { color: "$neutral600", marginTop: "-$6" }
|
|
328
|
+
},
|
|
329
|
+
`Existing responses from ${(_j = (_i = (_h = configuration.configuredFields) == null ? void 0 : _h.responseImportType) == null ? void 0 : _i.value) == null ? void 0 : _j.value} will be imported`
|
|
330
|
+
),
|
|
331
|
+
configuration.importOptions.excludeResponse && ((_m = (_l = (_k = configuration.configuredFields) == null ? void 0 : _k.responseImportType) == null ? void 0 : _l.value) == null ? void 0 : _m.type) === "dateRange" && /* @__PURE__ */ React__default.createElement(
|
|
332
|
+
Configuration,
|
|
333
|
+
{
|
|
334
|
+
field: configuration.importOptions.excludeResponse,
|
|
335
|
+
configuredFields: configuration.configuredFields,
|
|
336
|
+
responseImportType: (_q = (_p = (_o = (_n = configuration.configuredFields) == null ? void 0 : _n.responseImportType) == null ? void 0 : _o.value) == null ? void 0 : _p.value) == null ? void 0 : _q.label
|
|
337
|
+
}
|
|
338
|
+
)
|
|
291
339
|
));
|
|
292
340
|
};
|
|
293
341
|
const CustomDropdown = ({ data, onChangeHandler, value }) => {
|
|
@@ -301,12 +349,7 @@ const CustomDropdown = ({ data, onChangeHandler, value }) => {
|
|
|
301
349
|
});
|
|
302
350
|
const [days, setDays] = useState((_b = (_a = value == null ? void 0 : value.value) == null ? void 0 : _a.value) != null ? _b : 0);
|
|
303
351
|
const [open, setOpen] = useState(false);
|
|
304
|
-
return /* @__PURE__ */ React__default.createElement(DropdownMenu, { open, onOpenChange: setOpen, modal: false }, /* @__PURE__ */ React__default.createElement(DropdownMenuTrigger, {
|
|
305
|
-
setOpen(true);
|
|
306
|
-
}, css: {
|
|
307
|
-
border: "none !important",
|
|
308
|
-
background: "transparent !important"
|
|
309
|
-
} }, /* @__PURE__ */ React__default.createElement(
|
|
352
|
+
return /* @__PURE__ */ React__default.createElement(DropdownMenu, { open, onOpenChange: setOpen, modal: false }, /* @__PURE__ */ React__default.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React__default.createElement(
|
|
310
353
|
Input,
|
|
311
354
|
{
|
|
312
355
|
size: "lg",
|
|
@@ -349,7 +392,8 @@ const CustomDropdown = ({ data, onChangeHandler, value }) => {
|
|
|
349
392
|
{
|
|
350
393
|
disabled: option == null ? void 0 : option.disabled,
|
|
351
394
|
css: {
|
|
352
|
-
cursor: (option == null ? void 0 : option.disabled) ? "not-allowed !important" : "pointer !important"
|
|
395
|
+
cursor: (option == null ? void 0 : option.disabled) ? "not-allowed !important" : "pointer !important",
|
|
396
|
+
background: (value == null ? void 0 : value.type) === option.type ? "#4A9CA626 !important" : "transparent !important"
|
|
353
397
|
},
|
|
354
398
|
onClick: () => onChangeHandler({
|
|
355
399
|
id: "responseImportType",
|
|
@@ -384,7 +428,7 @@ const CustomDropdown = ({ data, onChangeHandler, value }) => {
|
|
|
384
428
|
Text,
|
|
385
429
|
{
|
|
386
430
|
size: "xs",
|
|
387
|
-
weight: "
|
|
431
|
+
weight: "regular",
|
|
388
432
|
css: { color: "$neutral700" }
|
|
389
433
|
},
|
|
390
434
|
option.description
|
|
@@ -403,7 +447,7 @@ const CustomDropdown = ({ data, onChangeHandler, value }) => {
|
|
|
403
447
|
zIndex: "9999999 !important"
|
|
404
448
|
}
|
|
405
449
|
},
|
|
406
|
-
/* @__PURE__ */ React__default.createElement(Box, null, /* @__PURE__ */ React__default.createElement(DropdownMenuSub, null, /* @__PURE__ */ React__default.createElement(DropdownMenuSubTrigger, { disabled: option == null ? void 0 : option.disabled, css: { cursor: (option == null ? void 0 : option.disabled) ? "not-allowed !important" : "pointer !important" } }, " ", /* @__PURE__ */ React__default.createElement(
|
|
450
|
+
/* @__PURE__ */ React__default.createElement(Box, null, /* @__PURE__ */ React__default.createElement(DropdownMenuSub, null, /* @__PURE__ */ React__default.createElement(DropdownMenuSubTrigger, { disabled: option == null ? void 0 : option.disabled, css: { cursor: (option == null ? void 0 : option.disabled) ? "not-allowed !important" : "pointer !important", background: (value == null ? void 0 : value.type) === option.type ? "#4A9CA626 !important" : "transparent !important" } }, " ", /* @__PURE__ */ React__default.createElement(
|
|
407
451
|
Flex,
|
|
408
452
|
{
|
|
409
453
|
justifyContent: "space-between",
|
|
@@ -417,8 +461,7 @@ const CustomDropdown = ({ data, onChangeHandler, value }) => {
|
|
|
417
461
|
{
|
|
418
462
|
css: { cursor: "pointer" },
|
|
419
463
|
justifyContent: "center",
|
|
420
|
-
flexDirection: "column"
|
|
421
|
-
gap: "$2"
|
|
464
|
+
flexDirection: "column"
|
|
422
465
|
},
|
|
423
466
|
/* @__PURE__ */ React__default.createElement(
|
|
424
467
|
Text,
|
|
@@ -433,7 +476,7 @@ const CustomDropdown = ({ data, onChangeHandler, value }) => {
|
|
|
433
476
|
Text,
|
|
434
477
|
{
|
|
435
478
|
size: "xs",
|
|
436
|
-
weight: "
|
|
479
|
+
weight: "regular",
|
|
437
480
|
css: { color: "$neutral700" }
|
|
438
481
|
},
|
|
439
482
|
option.description
|
|
@@ -524,7 +567,7 @@ const CustomDropdown = ({ data, onChangeHandler, value }) => {
|
|
|
524
567
|
));
|
|
525
568
|
};
|
|
526
569
|
const Configuration = ({ field, configuredFields, responseImportType = null }) => {
|
|
527
|
-
var _a, _b;
|
|
570
|
+
var _a, _b, _c, _d;
|
|
528
571
|
let fieldValue = null;
|
|
529
572
|
fieldValue = (_b = (_a = configuredFields == null ? void 0 : configuredFields[field.id]) == null ? void 0 : _a.value) != null ? _b : null;
|
|
530
573
|
const [error, setError] = useState({
|
|
@@ -556,57 +599,145 @@ const Configuration = ({ field, configuredFields, responseImportType = null }) =
|
|
|
556
599
|
value
|
|
557
600
|
}) }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "regular", css: { color: "$neutral900" } }, field.label)), /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "regular", css: { color: "$neutral500" } }, field.value ? field.ifChecked() : field.ifUnchecked(responseImportType)));
|
|
558
601
|
case "input":
|
|
559
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
602
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, (field == null ? void 0 : field.id) === "spreadsheet" ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, ((_c = configuredFields == null ? void 0 : configuredFields.action) == null ? void 0 : _c.value) ? /* @__PURE__ */ React__default.createElement(
|
|
603
|
+
Box,
|
|
604
|
+
{
|
|
605
|
+
className: "dm-sans",
|
|
606
|
+
css: {
|
|
607
|
+
label: {
|
|
608
|
+
fontSize: "$xs !important"
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
/* @__PURE__ */ React__default.createElement(
|
|
613
|
+
FormInput,
|
|
614
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
615
|
+
disabled: field == null ? void 0 : field.disabled
|
|
616
|
+
}, error.id === field.id && {
|
|
617
|
+
error: error.errorMessage,
|
|
618
|
+
errorBorder: error.error
|
|
619
|
+
}), {
|
|
620
|
+
label: field.label,
|
|
621
|
+
value: typeof fieldValue === "object" ? "" : fieldValue || "",
|
|
622
|
+
size: "lg"
|
|
623
|
+
}), field.pattern && {
|
|
624
|
+
pattern: field.pattern
|
|
625
|
+
}), {
|
|
626
|
+
onChange: (event) => {
|
|
627
|
+
if (field == null ? void 0 : field.pattern) {
|
|
628
|
+
const pattern = new RegExp(field.pattern);
|
|
629
|
+
if (!pattern.test(event.currentTarget.value) && event.currentTarget.value !== "") {
|
|
630
|
+
setError({
|
|
631
|
+
errorMessage: field.errorMessage,
|
|
632
|
+
error: true,
|
|
633
|
+
id: field.id
|
|
634
|
+
});
|
|
635
|
+
} else {
|
|
636
|
+
setError({
|
|
637
|
+
errorMessage: "",
|
|
638
|
+
error: false,
|
|
639
|
+
id: null
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
field.onChangeHandler({
|
|
643
|
+
id: field.id,
|
|
644
|
+
value: event.currentTarget.value
|
|
585
645
|
});
|
|
586
646
|
} else {
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
id: null
|
|
647
|
+
field.onChangeHandler({
|
|
648
|
+
id: field.id,
|
|
649
|
+
value: event.currentTarget.value
|
|
591
650
|
});
|
|
592
651
|
}
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
652
|
+
}
|
|
653
|
+
})
|
|
654
|
+
)
|
|
655
|
+
) : null) : /* @__PURE__ */ React__default.createElement(
|
|
656
|
+
Box,
|
|
657
|
+
{
|
|
658
|
+
className: "dm-sans",
|
|
659
|
+
css: {
|
|
660
|
+
label: {
|
|
661
|
+
fontSize: "$xs !important"
|
|
602
662
|
}
|
|
603
663
|
}
|
|
604
|
-
}
|
|
664
|
+
},
|
|
665
|
+
/* @__PURE__ */ React__default.createElement(
|
|
666
|
+
FormInput,
|
|
667
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
668
|
+
disabled: field == null ? void 0 : field.disabled
|
|
669
|
+
}, error.id === field.id && {
|
|
670
|
+
error: error.errorMessage,
|
|
671
|
+
errorBorder: error.error
|
|
672
|
+
}), {
|
|
673
|
+
label: field.label,
|
|
674
|
+
value: typeof fieldValue === "object" ? "" : fieldValue || "",
|
|
675
|
+
size: "lg"
|
|
676
|
+
}), field.pattern && {
|
|
677
|
+
pattern: field.pattern
|
|
678
|
+
}), {
|
|
679
|
+
onChange: (event) => {
|
|
680
|
+
if (field == null ? void 0 : field.pattern) {
|
|
681
|
+
const pattern = new RegExp(field.pattern);
|
|
682
|
+
if (!pattern.test(event.currentTarget.value) && event.currentTarget.value !== "") {
|
|
683
|
+
setError({
|
|
684
|
+
errorMessage: field.errorMessage,
|
|
685
|
+
error: true,
|
|
686
|
+
id: field.id
|
|
687
|
+
});
|
|
688
|
+
} else {
|
|
689
|
+
setError({
|
|
690
|
+
errorMessage: "",
|
|
691
|
+
error: false,
|
|
692
|
+
id: null
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
field.onChangeHandler({
|
|
696
|
+
id: field.id,
|
|
697
|
+
value: event.currentTarget.value
|
|
698
|
+
});
|
|
699
|
+
} else {
|
|
700
|
+
field.onChangeHandler({
|
|
701
|
+
id: field.id,
|
|
702
|
+
value: event.currentTarget.value
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
})
|
|
707
|
+
)
|
|
605
708
|
));
|
|
606
709
|
default:
|
|
607
|
-
return /* @__PURE__ */ React__default.createElement(
|
|
608
|
-
|
|
609
|
-
|
|
710
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, field.id === "spreadsheet" ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, ((_d = configuredFields == null ? void 0 : configuredFields.action) == null ? void 0 : _d.value) ? /* @__PURE__ */ React__default.createElement(
|
|
711
|
+
Flex,
|
|
712
|
+
{
|
|
713
|
+
gap: "$2",
|
|
714
|
+
flexDirection: "column",
|
|
715
|
+
css: {
|
|
716
|
+
cursor: "pointer !important",
|
|
717
|
+
".twigs-select__indicator": {
|
|
718
|
+
width: "14px !important",
|
|
719
|
+
color: "#848484 !important"
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
/* @__PURE__ */ React__default.createElement(FormLabel, { size: "xs", css: { fontWeight: "$5" } }, field.label),
|
|
724
|
+
/* @__PURE__ */ React__default.createElement(CustomAddNewSelect, { field })
|
|
725
|
+
) : null) : /* @__PURE__ */ React__default.createElement(
|
|
726
|
+
Flex,
|
|
727
|
+
{
|
|
728
|
+
gap: "$2",
|
|
729
|
+
flexDirection: "column",
|
|
730
|
+
css: {
|
|
731
|
+
cursor: "pointer !important",
|
|
732
|
+
".twigs-select__indicator": {
|
|
733
|
+
width: "14px !important",
|
|
734
|
+
color: "#848484 !important"
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
/* @__PURE__ */ React__default.createElement(FormLabel, { size: "xs", css: { fontWeight: "$5" } }, field.label),
|
|
739
|
+
/* @__PURE__ */ React__default.createElement(CustomAddNewSelect, { field })
|
|
740
|
+
));
|
|
610
741
|
}
|
|
611
742
|
};
|
|
612
743
|
const CustomAddNewSelect = ({ field }) => {
|