@bigbinary/neeto-rules-frontend 2.7.20 → 2.7.21
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 +2 -1
- package/app/javascript/src/translations/bg.json +2 -1
- package/app/javascript/src/translations/ca.json +2 -1
- package/app/javascript/src/translations/cs.json +2 -1
- package/app/javascript/src/translations/da.json +2 -1
- package/app/javascript/src/translations/de.json +2 -1
- package/app/javascript/src/translations/es-MX.json +2 -1
- package/app/javascript/src/translations/es.json +2 -1
- package/app/javascript/src/translations/et.json +2 -1
- package/app/javascript/src/translations/fi.json +2 -1
- package/app/javascript/src/translations/fil.json +2 -1
- package/app/javascript/src/translations/fr.json +2 -1
- package/app/javascript/src/translations/he.json +2 -1
- package/app/javascript/src/translations/hi.json +2 -1
- package/app/javascript/src/translations/hr.json +2 -1
- package/app/javascript/src/translations/hu.json +2 -1
- package/app/javascript/src/translations/id.json +2 -1
- package/app/javascript/src/translations/it.json +2 -1
- package/app/javascript/src/translations/ja.json +2 -1
- package/app/javascript/src/translations/ko.json +2 -1
- package/app/javascript/src/translations/nl.json +2 -1
- package/app/javascript/src/translations/pl.json +2 -1
- package/app/javascript/src/translations/pt-BR.json +2 -1
- package/app/javascript/src/translations/pt.json +2 -1
- package/app/javascript/src/translations/ro.json +2 -1
- package/app/javascript/src/translations/ru.json +2 -1
- package/app/javascript/src/translations/sk.json +2 -1
- package/app/javascript/src/translations/sl.json +2 -1
- package/app/javascript/src/translations/sv.json +2 -1
- package/app/javascript/src/translations/th.json +2 -1
- package/app/javascript/src/translations/tr.json +2 -1
- package/app/javascript/src/translations/uk.json +2 -1
- package/app/javascript/src/translations/vi.json +2 -1
- package/app/javascript/src/translations/zh-CN.json +2 -1
- package/app/javascript/src/translations/zh-TW.json +2 -1
- package/dist/.ready +1 -1
- package/dist/NeetoRulesBuilder.js +30 -2
- package/dist/NeetoRulesBuilder.js.map +1 -1
- package/dist/NeetoRulesForm.js +2 -2
- package/dist/cjs/NeetoRulesBuilder.js +30 -2
- package/dist/cjs/NeetoRulesBuilder.js.map +1 -1
- package/dist/cjs/NeetoRulesForm.js +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/v2/NeetoRules.js +1 -1
- package/dist/cjs/v2/NeetoRulesBuilder.js +323 -141
- package/dist/cjs/v2/NeetoRulesBuilder.js.map +1 -1
- package/dist/cjs/v2/NeetoRulesForm.js +10 -8
- package/dist/cjs/v2/NeetoRulesForm.js.map +1 -1
- package/dist/cjs/v2/RulePreview.js +1 -1
- package/dist/cjs/v2/hooks.js +2 -2
- package/dist/cjs/v2/index.js +4 -4
- package/dist/{index-DMCgC01M.js → index-49edM85x.js} +2 -2
- package/dist/{index-DMCgC01M.js.map → index-49edM85x.js.map} +1 -1
- package/dist/{index-D_dEe2Gg.js → index-BZYwFjcS.js} +2 -2
- package/dist/{index-D_dEe2Gg.js.map → index-BZYwFjcS.js.map} +1 -1
- package/dist/{index-BXLCiV70.js → index-CcbW7H2S.js} +67 -21
- package/dist/index-CcbW7H2S.js.map +1 -0
- package/dist/{index-hvuc6OIP.js → index-Fukq1VSN.js} +69 -18
- package/dist/index-Fukq1VSN.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/keyboardShortcuts-DtnjcivY.js +96 -0
- package/dist/{keyboardShortcuts-lX0oq49M.js.map → keyboardShortcuts-DtnjcivY.js.map} +1 -1
- package/dist/keyboardShortcuts-_OrtgF0A.js +92 -0
- package/dist/{keyboardShortcuts-DXP5YgeG.js.map → keyboardShortcuts-_OrtgF0A.js.map} +1 -1
- package/dist/{useCustomDataStore-CU3KpyD4.js → useCustomDataStore-CEbhXugO.js} +2 -2
- package/dist/{useCustomDataStore-CU3KpyD4.js.map → useCustomDataStore-CEbhXugO.js.map} +1 -1
- package/dist/{useCustomDataStore-D9k8F5g-.js → useCustomDataStore-DPmWkEhs.js} +2 -2
- package/dist/{useCustomDataStore-D9k8F5g-.js.map → useCustomDataStore-DPmWkEhs.js.map} +1 -1
- package/dist/{useUtilityStore-BBb39TOj.js → useUtilityStore-BVCulMEC.js} +9 -2
- package/dist/useUtilityStore-BVCulMEC.js.map +1 -0
- package/dist/{useUtilityStore-DkxAexDw.js → useUtilityStore-gtPhFvpI.js} +9 -2
- package/dist/useUtilityStore-gtPhFvpI.js.map +1 -0
- package/dist/v2/NeetoRules.js +1 -1
- package/dist/v2/NeetoRulesBuilder.js +304 -141
- package/dist/v2/NeetoRulesBuilder.js.map +1 -1
- package/dist/v2/NeetoRulesForm.js +10 -8
- package/dist/v2/NeetoRulesForm.js.map +1 -1
- package/dist/v2/RulePreview.js +1 -1
- package/dist/v2/hooks.js +2 -2
- package/dist/v2/index.js +4 -4
- package/package.json +7 -7
- package/dist/index-BXLCiV70.js.map +0 -1
- package/dist/index-hvuc6OIP.js.map +0 -1
- package/dist/keyboardShortcuts-DXP5YgeG.js +0 -92
- package/dist/keyboardShortcuts-lX0oq49M.js +0 -96
- package/dist/useUtilityStore-BBb39TOj.js.map +0 -1
- package/dist/useUtilityStore-DkxAexDw.js.map +0 -1
package/dist/NeetoRulesForm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
3
|
-
import './keyboardShortcuts-
|
|
3
|
+
import './keyboardShortcuts-_OrtgF0A.js';
|
|
4
4
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
5
5
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
6
6
|
import { useShallow } from 'zustand/shallow';
|
|
@@ -15,7 +15,7 @@ import { u as useUtilityStore } from './useUtilityStore-CCUYS1mS.js';
|
|
|
15
15
|
import classNames from 'classnames';
|
|
16
16
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
17
17
|
import { isNotNil, isEmpty, pluck } from 'ramda';
|
|
18
|
-
import { g as getActionOptions, a as getFieldDetails, b as getSlackChannelErrors, c as getOptionsKey, d as getActionLabel, A as ActionSubItem, F as FIELDS_WITH_OPTIONS, P as PANEL_TYPES, D as DEFAULT_RULE_ACTION, e as getLogicalOperatorOptions, f as getFieldDetails$1, h as getVerbOptions, R as RadioField$1, S as SelectField$1, V as ValueField, i as DEFAULT_DELAY, j as getAllEvents, O as OPERATORS$1, k as STATUS_KEYS, l as formatData, u as usePollRuleName, T as TouchErrors, m as buildPayload, n as ScrollToErrorField, o as Panel, p as getValidationSchema, q as DEFAULT_INITIAL_VALUE } from './index-
|
|
18
|
+
import { g as getActionOptions, a as getFieldDetails, b as getSlackChannelErrors, c as getOptionsKey, d as getActionLabel, A as ActionSubItem, F as FIELDS_WITH_OPTIONS, P as PANEL_TYPES, D as DEFAULT_RULE_ACTION, e as getLogicalOperatorOptions, f as getFieldDetails$1, h as getVerbOptions, R as RadioField$1, S as SelectField$1, V as ValueField, i as DEFAULT_DELAY, j as getAllEvents, O as OPERATORS$1, k as STATUS_KEYS, l as formatData, u as usePollRuleName, T as TouchErrors, m as buildPayload, n as ScrollToErrorField, o as Panel, p as getValidationSchema, q as DEFAULT_INITIAL_VALUE } from './index-BZYwFjcS.js';
|
|
19
19
|
import { a as useActiveField, u as useCustomDataStore } from './useCustomDataStore-BtKYtLVc.js';
|
|
20
20
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
21
21
|
import { joinHyphenCase } from '@bigbinary/neeto-commons-frontend/utils';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
4
4
|
var _objectDestructuringEmpty = require('@babel/runtime/helpers/objectDestructuringEmpty');
|
|
5
|
-
var keyboardShortcuts = require('../keyboardShortcuts-
|
|
5
|
+
var keyboardShortcuts = require('../keyboardShortcuts-DtnjcivY.js');
|
|
6
6
|
var shallow = require('zustand/shallow');
|
|
7
7
|
var react = require('react');
|
|
8
8
|
var classNames = require('classnames');
|
|
@@ -13,7 +13,7 @@ var Header = require('@bigbinary/neeto-molecules/Header');
|
|
|
13
13
|
var Spinner = require('@bigbinary/neetoui/Spinner');
|
|
14
14
|
var ActionBlock = require('@bigbinary/neetoui/formik/ActionBlock');
|
|
15
15
|
var reactI18next = require('react-i18next');
|
|
16
|
-
var index = require('../index-
|
|
16
|
+
var index = require('../index-49edM85x.js');
|
|
17
17
|
var useCustomDataStore = require('../useCustomDataStore-DxFx8aCf.js');
|
|
18
18
|
var useUtilityStore = require('../useUtilityStore-C_U20IMX.js');
|
|
19
19
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
@@ -1145,6 +1145,7 @@ var MetaBlock = function MetaBlock(_ref) {
|
|
|
1145
1145
|
children: t("neetoRules.builder.automationName")
|
|
1146
1146
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1147
1147
|
ref: nameRef,
|
|
1148
|
+
"data-testid": "rule-name-edit",
|
|
1148
1149
|
role: handleEditName ? "button" : undefined,
|
|
1149
1150
|
tabIndex: handleEditName ? 0 : undefined,
|
|
1150
1151
|
className: classNames("mb-meta-input-wrap", {
|
|
@@ -1153,6 +1154,7 @@ var MetaBlock = function MetaBlock(_ref) {
|
|
|
1153
1154
|
onClick: handleEditName,
|
|
1154
1155
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1155
1156
|
className: "mb-meta-name-display",
|
|
1157
|
+
"data-testid": "rule-name",
|
|
1156
1158
|
children: rule.name
|
|
1157
1159
|
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1158
1160
|
"aria-hidden": true,
|
|
@@ -1174,8 +1176,10 @@ var MetaBlock = function MetaBlock(_ref) {
|
|
|
1174
1176
|
})]
|
|
1175
1177
|
}), /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
1176
1178
|
className: "mb-meta-active",
|
|
1179
|
+
"data-testid": "rule-active-label",
|
|
1177
1180
|
children: [/*#__PURE__*/jsxRuntime.jsx("input", {
|
|
1178
1181
|
checked: rule.active,
|
|
1182
|
+
"data-testid": "rule-active-checkbox",
|
|
1179
1183
|
readOnly: !handleToggleActive,
|
|
1180
1184
|
type: "checkbox",
|
|
1181
1185
|
onChange: handleToggleActive || undefined
|
|
@@ -3135,6 +3139,7 @@ var Canvas = function Canvas(_ref) {
|
|
|
3135
3139
|
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3136
3140
|
className: "mb-add-row",
|
|
3137
3141
|
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
3142
|
+
"data-testid": "rule-delay-add",
|
|
3138
3143
|
icon: Plus,
|
|
3139
3144
|
iconPosition: "left",
|
|
3140
3145
|
label: t("neetoRules.common.addDelay"),
|
|
@@ -3253,6 +3258,7 @@ var ActionConfigFields = function ActionConfigFields(_ref) {
|
|
|
3253
3258
|
};
|
|
3254
3259
|
var noMatches = /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3255
3260
|
className: "mb-pane-empty",
|
|
3261
|
+
"data-testid": "pane-no-matches",
|
|
3256
3262
|
children: t("neetoRules.builder.noMatches")
|
|
3257
3263
|
});
|
|
3258
3264
|
if (type === ACTION_CONFIG_TYPES.emailChannel) {
|
|
@@ -3617,6 +3623,7 @@ var ConfigPane = function ConfigPane(_ref) {
|
|
|
3617
3623
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3618
3624
|
className: "flex w-full flex-col gap-y-2",
|
|
3619
3625
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
3626
|
+
"data-testid": "pane-title",
|
|
3620
3627
|
style: "h3",
|
|
3621
3628
|
children: title
|
|
3622
3629
|
}), configSubtitle && /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
@@ -3626,6 +3633,7 @@ var ConfigPane = function ConfigPane(_ref) {
|
|
|
3626
3633
|
}), showSearch && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3627
3634
|
className: "mb-pane-search",
|
|
3628
3635
|
children: /*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
3636
|
+
dataTestid: "pane-search",
|
|
3629
3637
|
placeholder: t("neetoRules.builder.searchPlaceholder"),
|
|
3630
3638
|
prefix: /*#__PURE__*/jsxRuntime.jsx(Search, {}),
|
|
3631
3639
|
size: "large",
|
|
@@ -3667,6 +3675,7 @@ var ConfigPane = function ConfigPane(_ref) {
|
|
|
3667
3675
|
})
|
|
3668
3676
|
}), shouldAdvanceToRecipient && /*#__PURE__*/jsxRuntime.jsx(index.Panel.Footer, {
|
|
3669
3677
|
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
3678
|
+
"data-testid": "continue-button",
|
|
3670
3679
|
label: t("neetoRules.buttons.continue"),
|
|
3671
3680
|
size: "large",
|
|
3672
3681
|
onClick: handleContinue
|
|
@@ -3723,6 +3732,7 @@ var DelayPane = function DelayPane(_ref) {
|
|
|
3723
3732
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3724
3733
|
className: "flex flex-col gap-y-1",
|
|
3725
3734
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
3735
|
+
"data-testid": "pane-title",
|
|
3726
3736
|
style: "h3",
|
|
3727
3737
|
children: t("neetoRules.common.addDelay")
|
|
3728
3738
|
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
@@ -3744,6 +3754,7 @@ var DelayPane = function DelayPane(_ref) {
|
|
|
3744
3754
|
className: "flex items-start gap-x-2",
|
|
3745
3755
|
children: [/*#__PURE__*/jsxRuntime.jsx(Input$1, {
|
|
3746
3756
|
className: "w-44",
|
|
3757
|
+
dataTestid: "delay-value",
|
|
3747
3758
|
max: index.MAX_DELAY_VALUE,
|
|
3748
3759
|
min: index.MIN_DELAY_VALUE,
|
|
3749
3760
|
name: "".concat(name, ".value.value"),
|
|
@@ -3751,6 +3762,7 @@ var DelayPane = function DelayPane(_ref) {
|
|
|
3751
3762
|
size: "large",
|
|
3752
3763
|
type: "number"
|
|
3753
3764
|
}), /*#__PURE__*/jsxRuntime.jsx(Select, {
|
|
3765
|
+
dataTestid: "delay-unit",
|
|
3754
3766
|
defaultValue: neetoCist.findBy({
|
|
3755
3767
|
value: value === null || value === void 0 ? void 0 : value.unit
|
|
3756
3768
|
}, unitOptions),
|
|
@@ -3787,6 +3799,7 @@ var asText = function asText(value) {
|
|
|
3787
3799
|
var NumberStepper = function NumberStepper(_ref) {
|
|
3788
3800
|
var value = _ref.value,
|
|
3789
3801
|
onChange = _ref.onChange,
|
|
3802
|
+
dataTestid = _ref.dataTestid,
|
|
3790
3803
|
label = _ref.label,
|
|
3791
3804
|
_ref$min = _ref.min,
|
|
3792
3805
|
min = _ref$min === void 0 ? STEPPER_MIN_VALUE : _ref$min,
|
|
@@ -3820,6 +3833,7 @@ var NumberStepper = function NumberStepper(_ref) {
|
|
|
3820
3833
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3821
3834
|
className: "mb-stepper",
|
|
3822
3835
|
children: /*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
3836
|
+
dataTestid: dataTestid,
|
|
3823
3837
|
error: error,
|
|
3824
3838
|
label: label,
|
|
3825
3839
|
min: min,
|
|
@@ -3832,6 +3846,7 @@ var NumberStepper = function NumberStepper(_ref) {
|
|
|
3832
3846
|
children: [/*#__PURE__*/jsxRuntime.jsx("button", {
|
|
3833
3847
|
"aria-label": t("neetoRules.builder.aria.increase"),
|
|
3834
3848
|
className: "mb-stepper-btn",
|
|
3849
|
+
"data-testid": "stepper-increase",
|
|
3835
3850
|
tabIndex: SKIP_TAB_INDEX,
|
|
3836
3851
|
type: "button",
|
|
3837
3852
|
onClick: function onClick() {
|
|
@@ -3841,6 +3856,7 @@ var NumberStepper = function NumberStepper(_ref) {
|
|
|
3841
3856
|
}), /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
3842
3857
|
"aria-label": t("neetoRules.builder.aria.decrease"),
|
|
3843
3858
|
className: "mb-stepper-btn",
|
|
3859
|
+
"data-testid": "stepper-decrease",
|
|
3844
3860
|
tabIndex: SKIP_TAB_INDEX,
|
|
3845
3861
|
type: "button",
|
|
3846
3862
|
onClick: function onClick() {
|
|
@@ -3902,6 +3918,7 @@ var LeadTimePane = function LeadTimePane(_ref) {
|
|
|
3902
3918
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3903
3919
|
className: "flex flex-col gap-y-1",
|
|
3904
3920
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
3921
|
+
"data-testid": "pane-title",
|
|
3905
3922
|
style: "h3",
|
|
3906
3923
|
children: t("neetoRules.builder.leadTimeTitle")
|
|
3907
3924
|
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
@@ -3923,6 +3940,7 @@ var LeadTimePane = function LeadTimePane(_ref) {
|
|
|
3923
3940
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3924
3941
|
className: "flex-1",
|
|
3925
3942
|
children: /*#__PURE__*/jsxRuntime.jsx(NumberStepper, {
|
|
3943
|
+
dataTestid: "lead-time",
|
|
3926
3944
|
error: touched ? error : "",
|
|
3927
3945
|
value: amount,
|
|
3928
3946
|
onChange: function onChange(value) {
|
|
@@ -3935,6 +3953,7 @@ var LeadTimePane = function LeadTimePane(_ref) {
|
|
|
3935
3953
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3936
3954
|
className: "w-32 shrink-0",
|
|
3937
3955
|
children: /*#__PURE__*/jsxRuntime.jsx(Select$1, {
|
|
3956
|
+
dataTestid: "lead-time-unit",
|
|
3938
3957
|
isSearchable: false,
|
|
3939
3958
|
options: LEAD_TIME_UNITS,
|
|
3940
3959
|
value: neetoCist.findBy({
|
|
@@ -3968,6 +3987,7 @@ var NamePane = function NamePane(_ref) {
|
|
|
3968
3987
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3969
3988
|
className: "flex flex-col gap-y-1",
|
|
3970
3989
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
3990
|
+
"data-testid": "pane-title",
|
|
3971
3991
|
style: "h3",
|
|
3972
3992
|
children: t("neetoRules.builder.automationName")
|
|
3973
3993
|
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
@@ -4145,6 +4165,7 @@ var OptionsPane = function OptionsPane(_ref) {
|
|
|
4145
4165
|
if (ramda.isEmpty(filtered)) {
|
|
4146
4166
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
4147
4167
|
className: "mb-pane-empty",
|
|
4168
|
+
"data-testid": "pane-no-matches",
|
|
4148
4169
|
children: t("neetoRules.builder.noMatches")
|
|
4149
4170
|
});
|
|
4150
4171
|
}
|
|
@@ -4204,6 +4225,7 @@ var OptionsPane = function OptionsPane(_ref) {
|
|
|
4204
4225
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4205
4226
|
className: "flex w-full flex-col gap-y-2",
|
|
4206
4227
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
4228
|
+
"data-testid": "pane-title",
|
|
4207
4229
|
style: "h3",
|
|
4208
4230
|
children: title
|
|
4209
4231
|
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
@@ -4214,6 +4236,7 @@ var OptionsPane = function OptionsPane(_ref) {
|
|
|
4214
4236
|
className: "mb-pane-search",
|
|
4215
4237
|
ref: searchRef,
|
|
4216
4238
|
children: /*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
4239
|
+
dataTestid: "pane-search",
|
|
4217
4240
|
placeholder: t("neetoRules.builder.searchPlaceholder"),
|
|
4218
4241
|
prefix: /*#__PURE__*/jsxRuntime.jsx(Search, {}),
|
|
4219
4242
|
size: "large",
|
|
@@ -4228,6 +4251,7 @@ var OptionsPane = function OptionsPane(_ref) {
|
|
|
4228
4251
|
children: [renderBody(), belowContent]
|
|
4229
4252
|
}), cascade && /*#__PURE__*/jsxRuntime.jsx(index.Panel.Footer, {
|
|
4230
4253
|
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
4254
|
+
"data-testid": "continue-button",
|
|
4231
4255
|
disabled: !canContinue,
|
|
4232
4256
|
label: t("neetoRules.buttons.continue"),
|
|
4233
4257
|
size: "large",
|
|
@@ -4390,6 +4414,7 @@ var RecipientPane = function RecipientPane(_ref) {
|
|
|
4390
4414
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4391
4415
|
className: "flex w-full flex-col gap-y-2",
|
|
4392
4416
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
4417
|
+
"data-testid": "pane-title",
|
|
4393
4418
|
style: "h3",
|
|
4394
4419
|
children: meta.recipientTitle || t("neetoRules.builder.panes.recipientTitle")
|
|
4395
4420
|
}), /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
@@ -4436,6 +4461,7 @@ var ConditionValueFields = function ConditionValueFields(_ref) {
|
|
|
4436
4461
|
};
|
|
4437
4462
|
var noMatches = /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
4438
4463
|
className: "mb-pane-empty",
|
|
4464
|
+
"data-testid": "pane-no-matches",
|
|
4439
4465
|
children: t("neetoRules.builder.noMatches")
|
|
4440
4466
|
});
|
|
4441
4467
|
if (type === CONDITION_VALUE_TYPES.multiSelect && neetoCist.isNotEmpty(enumOptions)) {
|
|
@@ -4590,6 +4616,7 @@ var ValuePane = function ValuePane(_ref) {
|
|
|
4590
4616
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4591
4617
|
className: "flex w-full flex-col gap-y-2",
|
|
4592
4618
|
children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
4619
|
+
"data-testid": "pane-title",
|
|
4593
4620
|
style: "h3",
|
|
4594
4621
|
children: t("neetoRules.builder.pickValue", {
|
|
4595
4622
|
field: (field === null || field === void 0 ? void 0 : field.label) || t("neetoRules.builder.valueWord")
|
|
@@ -4604,6 +4631,7 @@ var ValuePane = function ValuePane(_ref) {
|
|
|
4604
4631
|
className: "mb-pane-search",
|
|
4605
4632
|
ref: searchRef,
|
|
4606
4633
|
children: /*#__PURE__*/jsxRuntime.jsx(Input, {
|
|
4634
|
+
dataTestid: "pane-search",
|
|
4607
4635
|
placeholder: t("neetoRules.builder.searchPlaceholder"),
|
|
4608
4636
|
prefix: /*#__PURE__*/jsxRuntime.jsx(Search, {}),
|
|
4609
4637
|
size: "large",
|