@bigbinary/neeto-form-frontend 4.4.37 → 4.4.39
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/app/javascript/src/translations/ar.json +5 -1
- package/app/javascript/src/translations/bg.json +5 -1
- package/app/javascript/src/translations/ca.json +5 -1
- package/app/javascript/src/translations/cs.json +5 -1
- package/app/javascript/src/translations/da.json +5 -1
- package/app/javascript/src/translations/de.json +5 -1
- package/app/javascript/src/translations/en.json +5 -1
- package/app/javascript/src/translations/es-MX.json +5 -1
- package/app/javascript/src/translations/es.json +5 -1
- package/app/javascript/src/translations/et.json +5 -1
- package/app/javascript/src/translations/fi.json +5 -1
- package/app/javascript/src/translations/fil.json +5 -1
- package/app/javascript/src/translations/fr.json +5 -1
- package/app/javascript/src/translations/he.json +5 -1
- package/app/javascript/src/translations/hi.json +5 -1
- package/app/javascript/src/translations/hr.json +5 -1
- package/app/javascript/src/translations/hu.json +5 -1
- package/app/javascript/src/translations/id.json +5 -1
- package/app/javascript/src/translations/it.json +5 -1
- package/app/javascript/src/translations/ja.json +5 -1
- package/app/javascript/src/translations/ko.json +5 -1
- package/app/javascript/src/translations/nl.json +5 -1
- package/app/javascript/src/translations/pl.json +5 -1
- package/app/javascript/src/translations/pt-BR.json +5 -1
- package/app/javascript/src/translations/pt.json +5 -1
- package/app/javascript/src/translations/ro.json +5 -1
- package/app/javascript/src/translations/ru.json +5 -1
- package/app/javascript/src/translations/sk.json +5 -1
- package/app/javascript/src/translations/sl.json +5 -1
- package/app/javascript/src/translations/sv.json +5 -1
- package/app/javascript/src/translations/th.json +5 -1
- package/app/javascript/src/translations/tr.json +5 -1
- package/app/javascript/src/translations/uk.json +5 -1
- package/app/javascript/src/translations/vi.json +5 -1
- package/app/javascript/src/translations/zh-CN.json +5 -1
- package/app/javascript/src/translations/zh-TW.json +5 -1
- package/dist/.ready +1 -1
- package/dist/BuildForm.js +57 -7
- package/dist/BuildForm.js.map +1 -1
- package/dist/ExternalForm.js +5 -4
- package/dist/ExternalForm.js.map +1 -1
- package/dist/Submission.js +1 -1
- package/dist/UrlBuilder.js +5 -4
- package/dist/UrlBuilder.js.map +1 -1
- package/dist/{buildForm-Ds5d1DR8.js → buildForm-C5642_SF.js} +2 -2
- package/dist/{buildForm-Ds5d1DR8.js.map → buildForm-C5642_SF.js.map} +1 -1
- package/dist/cjs/BuildForm.js +57 -7
- package/dist/cjs/BuildForm.js.map +1 -1
- package/dist/cjs/ExternalForm.js +5 -4
- package/dist/cjs/ExternalForm.js.map +1 -1
- package/dist/cjs/Submission.js +1 -1
- package/dist/cjs/UrlBuilder.js +5 -4
- package/dist/cjs/UrlBuilder.js.map +1 -1
- package/dist/cjs/{buildForm-CtHZCSpo.js → buildForm-BO5Vcxv_.js} +2 -2
- package/dist/cjs/{buildForm-CtHZCSpo.js.map → buildForm-BO5Vcxv_.js.map} +1 -1
- package/dist/cjs/{constants-CUBwzMb-.js → constants-D3en9KhN.js} +2 -1
- package/dist/cjs/constants-D3en9KhN.js.map +1 -0
- package/dist/cjs/hooks.js +4 -4
- package/dist/cjs/{index-Bj56Ua86.js → index-B9L6Cdpy.js} +2 -2
- package/dist/cjs/{index-Bj56Ua86.js.map → index-B9L6Cdpy.js.map} +1 -1
- package/dist/cjs/index.js +10 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{useFormSubmission-DGRHK3u9.js → useFormSubmission-CdbaJ9RK.js} +2 -2
- package/dist/cjs/{useFormSubmission-DGRHK3u9.js.map → useFormSubmission-CdbaJ9RK.js.map} +1 -1
- package/dist/cjs/{utils-Xnit8PUn.js → utils-ojUD_GO6.js} +188 -96
- package/dist/cjs/utils-ojUD_GO6.js.map +1 -0
- package/dist/cjs/v2/BuildForm.js +54 -5
- package/dist/cjs/v2/BuildForm.js.map +1 -1
- package/dist/cjs/v2/ExternalForm.js +3 -3
- package/dist/cjs/v2/Submission.js +1 -1
- package/dist/cjs/v2/UrlBuilder.js +3 -3
- package/dist/cjs/v2/{constants-DIy-d-Pb.js → constants-DyPOVMyi.js} +2 -1
- package/dist/cjs/v2/constants-DyPOVMyi.js.map +1 -0
- package/dist/cjs/v2/index.js +4 -4
- package/dist/cjs/v2/{utils-DHGS4O20.js → utils-ChwdTdnN.js} +190 -98
- package/dist/cjs/v2/utils-ChwdTdnN.js.map +1 -0
- package/dist/cjs/v2/{yup-B-A1W_Vi.js → yup-CKeWnmJ3.js} +337 -37
- package/dist/cjs/v2/yup-CKeWnmJ3.js.map +1 -0
- package/dist/cjs/{yup-DZgfXVgs.js → yup-DvB9BGdG.js} +340 -39
- package/dist/cjs/yup-DvB9BGdG.js.map +1 -0
- package/dist/{constants-fjoeNdhb.js → constants-ClqQe4qZ.js} +2 -1
- package/dist/constants-ClqQe4qZ.js.map +1 -0
- package/dist/hooks.js +4 -4
- package/dist/{index-Cx0yvXwJ.js → index-CAR9-spo.js} +2 -2
- package/dist/{index-Cx0yvXwJ.js.map → index-CAR9-spo.js.map} +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/main.css +1 -1
- package/dist/main.css.map +1 -1
- package/dist/{useFormSubmission-DMpf1msR.js → useFormSubmission-DMRpRRj4.js} +2 -2
- package/dist/{useFormSubmission-DMpf1msR.js.map → useFormSubmission-DMRpRRj4.js.map} +1 -1
- package/dist/{utils-Chj7ZOKi.js → utils-6l6j_LN6.js} +188 -96
- package/dist/utils-6l6j_LN6.js.map +1 -0
- package/dist/v2/BuildForm.js +54 -5
- package/dist/v2/BuildForm.js.map +1 -1
- package/dist/v2/ExternalForm.js +3 -3
- package/dist/v2/Submission.js +1 -1
- package/dist/v2/UrlBuilder.js +3 -3
- package/dist/v2/{constants-CZ7swzMG.js → constants-BlY0KFT4.js} +2 -1
- package/dist/v2/constants-BlY0KFT4.js.map +1 -0
- package/dist/v2/index.js +4 -4
- package/dist/v2/main.css +1 -1
- package/dist/v2/main.css.map +1 -1
- package/dist/v2/{utils-CemGJeLy.js → utils-B8sTYkWG.js} +190 -98
- package/dist/v2/utils-B8sTYkWG.js.map +1 -0
- package/dist/v2/{yup-eUr74YY2.js → yup-Cf-x7SqN.js} +336 -39
- package/dist/v2/yup-Cf-x7SqN.js.map +1 -0
- package/dist/{yup-CwN-8JrO.js → yup-7qmI_2fI.js} +338 -40
- package/dist/yup-7qmI_2fI.js.map +1 -0
- package/package.json +16 -16
- package/dist/cjs/constants-CUBwzMb-.js.map +0 -1
- package/dist/cjs/utils-Xnit8PUn.js.map +0 -1
- package/dist/cjs/v2/constants-DIy-d-Pb.js.map +0 -1
- package/dist/cjs/v2/utils-DHGS4O20.js.map +0 -1
- package/dist/cjs/v2/yup-B-A1W_Vi.js.map +0 -1
- package/dist/cjs/yup-DZgfXVgs.js.map +0 -1
- package/dist/constants-fjoeNdhb.js.map +0 -1
- package/dist/utils-Chj7ZOKi.js.map +0 -1
- package/dist/v2/constants-CZ7swzMG.js.map +0 -1
- package/dist/v2/utils-CemGJeLy.js.map +0 -1
- package/dist/v2/yup-eUr74YY2.js.map +0 -1
- package/dist/yup-CwN-8JrO.js.map +0 -1
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"opinionScale": "Görüş ölçeği",
|
|
91
91
|
"address": "Adres",
|
|
92
92
|
"starRating": "Yıldız derecelendirmesi",
|
|
93
|
-
"spot": "Grupla rezervasyon yeri sayısı"
|
|
93
|
+
"spot": "Grupla rezervasyon yeri sayısı",
|
|
94
|
+
"yesNo": "Evet/Hayır"
|
|
94
95
|
},
|
|
95
96
|
"toasts": {
|
|
96
97
|
"formSubmitted": "Form başarıyla gönderildi!"
|
|
@@ -211,6 +212,9 @@
|
|
|
211
212
|
"minimumWordsError_other": "Minimum {{count}} kelime gereklidir.",
|
|
212
213
|
"minimumWordsMinError": "Minimum kelime sayısı 1 veya daha yüksek olmalıdır.",
|
|
213
214
|
"minimumWordsMaxError": "Kelime sayısı 10,000'den fazla olamaz."
|
|
215
|
+
},
|
|
216
|
+
"yesNo": {
|
|
217
|
+
"showIcons": "Simge göster"
|
|
214
218
|
}
|
|
215
219
|
},
|
|
216
220
|
"error": {
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"opinionScale": "Шкала думок",
|
|
91
91
|
"address": "Адреса",
|
|
92
92
|
"starRating": "Рейтинг зірок",
|
|
93
|
-
"spot": "Кількість місць для групового бронювання"
|
|
93
|
+
"spot": "Кількість місць для групового бронювання",
|
|
94
|
+
"yesNo": "Так/Ні"
|
|
94
95
|
},
|
|
95
96
|
"toasts": {
|
|
96
97
|
"formSubmitted": "Форму було успішно надіслано!"
|
|
@@ -211,6 +212,9 @@
|
|
|
211
212
|
"minimumWordsError_other": "Мінімум {{count}} слова є обов'язковими.",
|
|
212
213
|
"minimumWordsMinError": "Мінімальна кількість слів має бути 1 або більше.",
|
|
213
214
|
"minimumWordsMaxError": "Кількість слів не може перевищувати 10 000."
|
|
215
|
+
},
|
|
216
|
+
"yesNo": {
|
|
217
|
+
"showIcons": "Показати іконки"
|
|
214
218
|
}
|
|
215
219
|
},
|
|
216
220
|
"error": {
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"opinionScale": "Thang ý kiến",
|
|
91
91
|
"address": "Địa chỉ",
|
|
92
92
|
"starRating": "Xếp hạng sao",
|
|
93
|
-
"spot": "Số lượng chỗ đặt nhóm"
|
|
93
|
+
"spot": "Số lượng chỗ đặt nhóm",
|
|
94
|
+
"yesNo": "Có/Không"
|
|
94
95
|
},
|
|
95
96
|
"toasts": {
|
|
96
97
|
"formSubmitted": "Mẫu đã được gửi thành công!"
|
|
@@ -211,6 +212,9 @@
|
|
|
211
212
|
"minimumWordsError_other": "Cần ít nhất {{count}} từ.",
|
|
212
213
|
"minimumWordsMinError": "Số lượng từ tối thiểu phải là 1 hoặc cao hơn.",
|
|
213
214
|
"minimumWordsMaxError": "Số lượng từ không thể cao hơn 10.000."
|
|
215
|
+
},
|
|
216
|
+
"yesNo": {
|
|
217
|
+
"showIcons": "Hiển thị biểu tượng"
|
|
214
218
|
}
|
|
215
219
|
},
|
|
216
220
|
"error": {
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"opinionScale": "意见量表",
|
|
91
91
|
"address": "地址",
|
|
92
92
|
"starRating": "星级评分",
|
|
93
|
-
"spot": "团体预订名额数量"
|
|
93
|
+
"spot": "团体预订名额数量",
|
|
94
|
+
"yesNo": "是/否"
|
|
94
95
|
},
|
|
95
96
|
"toasts": {
|
|
96
97
|
"formSubmitted": "表单已成功提交!"
|
|
@@ -211,6 +212,9 @@
|
|
|
211
212
|
"minimumWordsError_other": "需要最少 {{count}} 个字。",
|
|
212
213
|
"minimumWordsMinError": "最少字数必须为 1 或更高。",
|
|
213
214
|
"minimumWordsMaxError": "字数不能超过 10,000。"
|
|
215
|
+
},
|
|
216
|
+
"yesNo": {
|
|
217
|
+
"showIcons": "显示图标"
|
|
214
218
|
}
|
|
215
219
|
},
|
|
216
220
|
"error": {
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"opinionScale": "意見評量",
|
|
91
91
|
"address": "地址",
|
|
92
92
|
"starRating": "星級評價",
|
|
93
|
-
"spot": "團體訂位名額數量"
|
|
93
|
+
"spot": "團體訂位名額數量",
|
|
94
|
+
"yesNo": "是/否"
|
|
94
95
|
},
|
|
95
96
|
"toasts": {
|
|
96
97
|
"formSubmitted": "表單已成功提交!"
|
|
@@ -211,6 +212,9 @@
|
|
|
211
212
|
"minimumWordsError_other": "需要至少 {{count}} 個字。",
|
|
212
213
|
"minimumWordsMinError": "最少字數必須為 1 或以上。",
|
|
213
214
|
"minimumWordsMaxError": "字數不能超過 10,000。"
|
|
215
|
+
},
|
|
216
|
+
"yesNo": {
|
|
217
|
+
"showIcons": "顯示圖示"
|
|
214
218
|
}
|
|
215
219
|
},
|
|
216
220
|
"error": {
|
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-
|
|
1
|
+
Built at 2026-08-11T10:18:57.417Z
|
package/dist/BuildForm.js
CHANGED
|
@@ -3,14 +3,14 @@ import classnames from 'classnames';
|
|
|
3
3
|
import { isPresent, truncate, findBy, isNotPresent, slugify, existsBy, findById, findIndexById, hyphenate, noop, nullSafe, modifyBy, removeBy } from '@bigbinary/neeto-cist';
|
|
4
4
|
import Spinner from '@bigbinary/neetoui/Spinner';
|
|
5
5
|
import { equals, path, when, assoc, includes, isEmpty, reject, keys, pick, omit, evolve, map, mergeLeft, isNil, pipe, filter, isNotNil, values, uniq, join, pathSatisfies, assocPath, dissoc, append, pluck, test, paths, difference, prop, startsWith, split, last, either, F, T } from 'ramda';
|
|
6
|
-
import { k as useDeleteQuestion, Q as QUESTION_TYPES, b as useForm, l as useCreateQuestion, m as useUpdateQuestion, C as CAPTCHA_TYPES, n as useReorderQuestions, i as QUERY_KEYS } from './constants-
|
|
7
|
-
import {
|
|
6
|
+
import { k as useDeleteQuestion, Q as QUESTION_TYPES, b as useForm, l as useCreateQuestion, m as useUpdateQuestion, C as CAPTCHA_TYPES, n as useReorderQuestions, i as QUERY_KEYS } from './constants-ClqQe4qZ.js';
|
|
7
|
+
import { k as QUESTION_ACTIONS, l as INDEPENDENT_LABELS_MAP, m as buildDisplayLabel, n as isElementOverflowing, o as SELECTABLE_KINDS, p as isAutoGeneratedQuestion, q as isRichTextQuestion, r as SPOT_QUESTION_FIELD_CODE, N as NON_BASIC_LATIN_CHARACTERS_REGEX, s as RESERVED_FIELD_CODES, t as renameKey, f as LABEL_FIELDS, u as isDefaultLanguage, v as buildAddQuestionButtonProps, w as validateEditorContent, F as FIELD_CODES_REJECT_CHARS_REGEX, M as MIN_WORDS_SWITCH_LABEL_PROPS, x as MIN_WORDS, y as isImmutableField, a as QUESTIONS_WITHOUT_FIELD_CODE, z as NON_HIDEABLE_FIELDS, B as NON_READ_ONLY_FIELDS, O as OPINION_LABEL_MAX_LENGTH, G as RICH_TEXT_QUESTIONS, e as ADDRESS_FIELD_WIDTHS, A as ADDRESS_FIELD_TYPES, H as generateDefaultOptions, J as MINIMUM_ADDRESS_FIELDS, K as getDeletedRecords, T as randomId, U as getActiveRecords, V as FILE_TYPES_MAP, W as FILE_GROUPS, X as OPINION_SCALE_MIN_VALUE_OPTIONS, Z as OPINION_SCALE_MAX_VALUE_OPTIONS, D as DEFAULT_CHOICE_QUESTION_ATTRIBUTES, _ as MINIMUM_OPTIONS, $ as IMAGE_HEIGHT_SLIDER_DEFAULTS, a0 as RATING_OPTIONS, a1 as STAR_RATING_MIN_VALUE_OPTIONS, a2 as STAR_RATING_MAX_VALUE_OPTIONS, a3 as STAR_RATING_ICONS_MAP, a4 as YES_NO_ICONS_MAP, a5 as buildDisabledAddButtonHelpPopoverProps, a6 as buildReorderPayload, a7 as QUESTIONS_INITIAL_VALUE, a8 as isMandatoryField, a9 as QUESTION_KINDS, Q as QUESTION_KIND, aa as getActiveQuestionKindDetails, ab as DEFAULT_AVAILABLE_LANGUAGES, ac as DEFAULT_ADVANCED_FEATURES } from './yup-7qmI_2fI.js';
|
|
8
8
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
9
9
|
import { useState, useRef, useEffect, createElement } from 'react';
|
|
10
10
|
import { Droppable, Draggable, DragDropContext } from '@hello-pangea/dnd';
|
|
11
11
|
import { withT, isMetaKeyPressed, useStateWithDependency, useFuncDebounce, useOnClickOutside } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
12
12
|
import { showThumbsUpToastr, withEventTargetValue, hyphenize } from '@bigbinary/neeto-commons-frontend/utils';
|
|
13
|
-
import { a as useBuildFormStore } from './buildForm-
|
|
13
|
+
import { a as useBuildFormStore } from './buildForm-C5642_SF.js';
|
|
14
14
|
import { shallow } from 'zustand/shallow';
|
|
15
15
|
import Alert from '@bigbinary/neetoui/Alert';
|
|
16
16
|
import { useTranslation, Trans } from 'react-i18next';
|
|
@@ -23,7 +23,7 @@ import Tooltip from '@bigbinary/neetoui/Tooltip';
|
|
|
23
23
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
24
24
|
import Equals from '@bigbinary/neeto-icons/Equals';
|
|
25
25
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
26
|
-
import { i as isFunction, f as fieldWithFallback, c as isNameQuestion } from './index-
|
|
26
|
+
import { i as isFunction, f as fieldWithFallback, c as isNameQuestion } from './index-CAR9-spo.js';
|
|
27
27
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
28
28
|
import { t } from 'i18next';
|
|
29
29
|
import { v4 } from 'uuid';
|
|
@@ -81,6 +81,7 @@ import '@bigbinary/neeto-icons/Sms';
|
|
|
81
81
|
import '@bigbinary/neeto-icons/Terms';
|
|
82
82
|
import '@bigbinary/neeto-icons/TextLines';
|
|
83
83
|
import '@bigbinary/neeto-icons/UserRoundedRect';
|
|
84
|
+
import '@bigbinary/neeto-icons/YesNo';
|
|
84
85
|
import 'dompurify';
|
|
85
86
|
import '@bigbinary/neeto-icons/Plus';
|
|
86
87
|
import 'zustand';
|
|
@@ -769,8 +770,9 @@ var NAME = QUESTION_TYPES.NAME,
|
|
|
769
770
|
FILE_UPLOAD$1 = QUESTION_TYPES.FILE_UPLOAD,
|
|
770
771
|
CAPTCHA$1 = QUESTION_TYPES.CAPTCHA,
|
|
771
772
|
SMS_REMINDER = QUESTION_TYPES.SMS_REMINDER,
|
|
772
|
-
ADDRESS$1 = QUESTION_TYPES.ADDRESS
|
|
773
|
-
|
|
773
|
+
ADDRESS$1 = QUESTION_TYPES.ADDRESS,
|
|
774
|
+
YES_NO$1 = QUESTION_TYPES.YES_NO;
|
|
775
|
+
var QUESTIONS_WITH_ADDITIONAL_DATA = [].concat(_toConsumableArray(SELECTABLE_KINDS), [STAR_RATING$1, OPINION_SCALE$1, RATING$1, FILE_UPLOAD$1, CAPTCHA$1, EMAIL$1, ADDRESS$1, YES_NO$1]);
|
|
774
776
|
var QUESTIONS_WITH_PLACEHOLDERS = [NAME, PHONE, EMAIL$1, ADDITIONAL_GUESTS, TEXT, TEXTAREA, RICH_TEXT, INTEGER, DECIMAL, DATE, SMS_REMINDER];
|
|
775
777
|
var DEFAULT_PLACEHOLDERS = {
|
|
776
778
|
CHECKBOX: t("neetoForm.questions.common.questionFields.field.labelExample", {
|
|
@@ -2752,6 +2754,51 @@ var StarRating = function StarRating() {
|
|
|
2752
2754
|
});
|
|
2753
2755
|
};
|
|
2754
2756
|
|
|
2757
|
+
var YesNo = function YesNo() {
|
|
2758
|
+
var _useTranslation = useTranslation(),
|
|
2759
|
+
t = _useTranslation.t;
|
|
2760
|
+
var _useField = useField("isIconEnabled"),
|
|
2761
|
+
_useField2 = _slicedToArray(_useField, 1),
|
|
2762
|
+
isIconEnabled = _useField2[0].value;
|
|
2763
|
+
var _useField3 = useField("iconType"),
|
|
2764
|
+
_useField4 = _slicedToArray(_useField3, 3),
|
|
2765
|
+
iconType = _useField4[0].value;
|
|
2766
|
+
_useField4[1];
|
|
2767
|
+
var setIconType = _useField4[2].setValue;
|
|
2768
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
2769
|
+
children: [/*#__PURE__*/jsx(Switch, {
|
|
2770
|
+
"data-testid": "neeto-form-engine-yes-no-show-icons",
|
|
2771
|
+
label: t("neetoForm.questions.yesNo.showIcons"),
|
|
2772
|
+
name: "isIconEnabled"
|
|
2773
|
+
}), isIconEnabled && /*#__PURE__*/jsxs(Fragment, {
|
|
2774
|
+
children: [/*#__PURE__*/jsx(Label, {
|
|
2775
|
+
children: t("neetoForm.common.shape")
|
|
2776
|
+
}), /*#__PURE__*/jsx("div", {
|
|
2777
|
+
className: "flex gap-2",
|
|
2778
|
+
children: Object.entries(YES_NO_ICONS_MAP).map(function (_ref) {
|
|
2779
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
2780
|
+
name = _ref2[0],
|
|
2781
|
+
_ref2$ = _ref2[1],
|
|
2782
|
+
Yes = _ref2$.Yes,
|
|
2783
|
+
No = _ref2$.No;
|
|
2784
|
+
var isActive = name === iconType;
|
|
2785
|
+
return /*#__PURE__*/jsxs("div", {
|
|
2786
|
+
"data-testid": "neeto-form-engine-yes-no-icon-".concat(name),
|
|
2787
|
+
className: classnames("flex items-center justify-center gap-2 px-3 py-2", "neeto-ui-border-gray-800 neeto-ui-rounded-full cursor-pointer border", "transition-all duration-300 ease-in-out", {
|
|
2788
|
+
"neeto-ui-text-gray-800 neeto-ui-bg-gray-200": !isActive,
|
|
2789
|
+
"neeto-ui-text-white neeto-ui-bg-gray-800": isActive
|
|
2790
|
+
}),
|
|
2791
|
+
onClick: function onClick() {
|
|
2792
|
+
return setIconType(name);
|
|
2793
|
+
},
|
|
2794
|
+
children: [/*#__PURE__*/jsx(Yes, {}), /*#__PURE__*/jsx(No, {})]
|
|
2795
|
+
}, name);
|
|
2796
|
+
})
|
|
2797
|
+
})]
|
|
2798
|
+
})]
|
|
2799
|
+
});
|
|
2800
|
+
};
|
|
2801
|
+
|
|
2755
2802
|
var _excluded$1 = ["minWords"],
|
|
2756
2803
|
_excluded2 = ["fields"];
|
|
2757
2804
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -2765,7 +2812,8 @@ var CHECKBOX = QUESTION_TYPES.CHECKBOX,
|
|
|
2765
2812
|
FILE_UPLOAD = QUESTION_TYPES.FILE_UPLOAD,
|
|
2766
2813
|
CAPTCHA = QUESTION_TYPES.CAPTCHA,
|
|
2767
2814
|
EMAIL = QUESTION_TYPES.EMAIL,
|
|
2768
|
-
ADDRESS = QUESTION_TYPES.ADDRESS
|
|
2815
|
+
ADDRESS = QUESTION_TYPES.ADDRESS,
|
|
2816
|
+
YES_NO = QUESTION_TYPES.YES_NO;
|
|
2769
2817
|
var transformValueForOption = function transformValueForOption(_ref) {
|
|
2770
2818
|
var label = _ref.label,
|
|
2771
2819
|
type = _ref.type;
|
|
@@ -2791,6 +2839,8 @@ var renderAdditionalData = function renderAdditionalData(_ref2) {
|
|
|
2791
2839
|
return /*#__PURE__*/jsx(StarRating, {});
|
|
2792
2840
|
case OPINION_SCALE:
|
|
2793
2841
|
return /*#__PURE__*/jsx(OpinionScale, {});
|
|
2842
|
+
case YES_NO:
|
|
2843
|
+
return /*#__PURE__*/jsx(YesNo, {});
|
|
2794
2844
|
case FILE_UPLOAD:
|
|
2795
2845
|
return /*#__PURE__*/jsx(FileUpload, {});
|
|
2796
2846
|
case CAPTCHA:
|