@bigbinary/neeto-rules-frontend 2.5.25 → 2.5.26
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/de.json +2 -1
- package/app/javascript/src/translations/es.json +2 -1
- package/app/javascript/src/translations/fr.json +2 -1
- package/dist/NeetoRulesForm.js +26 -1
- package/dist/NeetoRulesForm.js.map +1 -1
- package/dist/cjs/NeetoRulesForm.js +26 -1
- package/dist/cjs/NeetoRulesForm.js.map +1 -1
- package/package.json +9 -9
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
"addEventDescription": "Fügen Sie einen Auslöser hinzu, der die Regel in Bewegung setzt.",
|
|
78
78
|
"actionTriggeredBy": "Aktion ausgelöst von",
|
|
79
79
|
"addPerformerDescription": "Fügen Sie hinzu, von wem die Aktion ausgelöst werden soll, die die Regel in Bewegung setzt.",
|
|
80
|
-
"aiGeneratedName": "Ein KI-generierter Name wird bald verfügbar sein."
|
|
80
|
+
"aiGeneratedName": "Ein KI-generierter Name wird bald verfügbar sein.",
|
|
81
|
+
"selectTime": "Zeit auswählen"
|
|
81
82
|
},
|
|
82
83
|
"labels": {
|
|
83
84
|
"active": "Aktiv",
|
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
"addEventDescription": "Agrega un desencadenador que activa la regla.",
|
|
78
78
|
"actionTriggeredBy": "Acción activada por",
|
|
79
79
|
"addPerformerDescription": "Agregar por quién se debe activar la acción que pone en marcha la regla.",
|
|
80
|
-
"aiGeneratedName": "Un nombre generado por IA estará disponible pronto."
|
|
80
|
+
"aiGeneratedName": "Un nombre generado por IA estará disponible pronto.",
|
|
81
|
+
"selectTime": "Seleccionar hora"
|
|
81
82
|
},
|
|
82
83
|
"labels": {
|
|
83
84
|
"active": "Activo",
|
|
@@ -145,7 +145,8 @@
|
|
|
145
145
|
"addEventDescription": "Ajouter un déclencheur qui met la règle en mouvement.",
|
|
146
146
|
"actionTriggeredBy": "Action déclenchée par",
|
|
147
147
|
"addPerformerDescription": "Ajouter par qui l'action doit être déclenchée pour mettre la règle en mouvement.",
|
|
148
|
-
"aiGeneratedName": "Un nom généré par IA sera bientôt disponible."
|
|
148
|
+
"aiGeneratedName": "Un nom généré par IA sera bientôt disponible.",
|
|
149
|
+
"selectTime": "Sélectionner l'heure"
|
|
149
150
|
},
|
|
150
151
|
"labels": {
|
|
151
152
|
"active": "Actif",
|
package/dist/NeetoRulesForm.js
CHANGED
|
@@ -147,6 +147,7 @@ var Footer = function Footer(_ref) {
|
|
|
147
147
|
var children = _ref.children,
|
|
148
148
|
className = _ref.className;
|
|
149
149
|
return /*#__PURE__*/jsx("div", {
|
|
150
|
+
"data-cy": "pane-footer",
|
|
150
151
|
className: classNames("neeto-rules-side-panel__footer neeto-ui-border-gray-300 flex items-center justify-between border-t p-6", className),
|
|
151
152
|
children: children
|
|
152
153
|
});
|
|
@@ -164,12 +165,14 @@ var Header = function Header(_ref) {
|
|
|
164
165
|
var _useTranslation = useTranslation(),
|
|
165
166
|
t = _useTranslation.t;
|
|
166
167
|
return /*#__PURE__*/jsxs("div", {
|
|
168
|
+
"data-cy": "pane-header",
|
|
167
169
|
className: classNames("neeto-rules-side-panel__header neeto-ui-border-gray-300 flex items-start justify-between border-b p-6", _defineProperty({}, className, className)),
|
|
168
170
|
children: [/*#__PURE__*/jsx("div", {
|
|
169
171
|
className: "flex min-w-0 flex-grow",
|
|
170
172
|
children: children
|
|
171
173
|
}), /*#__PURE__*/jsx(Button, {
|
|
172
174
|
className: "flex-shrink-0 scale-x-[-1]",
|
|
175
|
+
"data-cy": "collapse-sidebar-button",
|
|
173
176
|
icon: Collapse,
|
|
174
177
|
size: "medium",
|
|
175
178
|
style: "text",
|
|
@@ -434,9 +437,11 @@ var ActionPanel = function ActionPanel() {
|
|
|
434
437
|
children: /*#__PURE__*/jsxs("div", {
|
|
435
438
|
className: "flex flex-col space-y-2",
|
|
436
439
|
children: [/*#__PURE__*/jsxs(Typography, {
|
|
440
|
+
"data-cy": "action-title",
|
|
437
441
|
style: "h3",
|
|
438
442
|
children: [label, "..."]
|
|
439
443
|
}), /*#__PURE__*/jsx(Typography, {
|
|
444
|
+
"data-cy": "action-description",
|
|
440
445
|
style: "body2",
|
|
441
446
|
children: t("neetoRules.form.addActionDescription")
|
|
442
447
|
})]
|
|
@@ -465,6 +470,7 @@ var ActionPanel = function ActionPanel() {
|
|
|
465
470
|
})]
|
|
466
471
|
}), /*#__PURE__*/jsx(Panel.Footer, {
|
|
467
472
|
children: /*#__PURE__*/jsx(Button, {
|
|
473
|
+
"data-cy": "continue-button",
|
|
468
474
|
onClick: handleContinue,
|
|
469
475
|
children: t("neetoRules.buttons.continue")
|
|
470
476
|
})
|
|
@@ -1674,6 +1680,7 @@ var Target$e = function Target(_ref) {
|
|
|
1674
1680
|
children: separator
|
|
1675
1681
|
}), /*#__PURE__*/jsx(Button, {
|
|
1676
1682
|
label: label,
|
|
1683
|
+
"data-cy": "action-value-input-button",
|
|
1677
1684
|
style: "link",
|
|
1678
1685
|
className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
|
|
1679
1686
|
"neeto-ui-text-accent-800": isFieldActive,
|
|
@@ -3212,6 +3219,7 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
|
|
|
3212
3219
|
className: "flex items-center space-x-2",
|
|
3213
3220
|
children: [/*#__PURE__*/jsx(Button, {
|
|
3214
3221
|
className: "flex-shrink-0",
|
|
3222
|
+
"data-cy": "back-button",
|
|
3215
3223
|
icon: Left,
|
|
3216
3224
|
size: "medium",
|
|
3217
3225
|
style: "text",
|
|
@@ -3229,10 +3237,12 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
|
|
|
3229
3237
|
}));
|
|
3230
3238
|
}
|
|
3231
3239
|
}), /*#__PURE__*/jsx(Typography, {
|
|
3240
|
+
"data-cy": "action-sub-item-title",
|
|
3232
3241
|
style: "h3",
|
|
3233
3242
|
children: header
|
|
3234
3243
|
})]
|
|
3235
3244
|
}), /*#__PURE__*/jsx(Typography, {
|
|
3245
|
+
"data-cy": "action-sub-item-description",
|
|
3236
3246
|
style: "body2",
|
|
3237
3247
|
children: t("neetoRules.form.addActionSubItemDescription")
|
|
3238
3248
|
})]
|
|
@@ -3251,6 +3261,7 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
|
|
|
3251
3261
|
})]
|
|
3252
3262
|
}), /*#__PURE__*/jsx(Panel.Footer, {
|
|
3253
3263
|
children: /*#__PURE__*/jsx(Button, {
|
|
3264
|
+
"data-cy": "continue-button",
|
|
3254
3265
|
onClick: handleContinue,
|
|
3255
3266
|
children: t("neetoRules.buttons.continue")
|
|
3256
3267
|
})
|
|
@@ -3381,6 +3392,7 @@ var Target$6 = function Target(_ref) {
|
|
|
3381
3392
|
var label = valueTerm !== null && valueTerm !== void 0 && valueTerm.trim().length ? valueTerm : t("neetoRules.form.addValue");
|
|
3382
3393
|
return /*#__PURE__*/jsx(Button, {
|
|
3383
3394
|
label: label,
|
|
3395
|
+
"data-cy": "condition-value-input-button",
|
|
3384
3396
|
style: "link",
|
|
3385
3397
|
className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
|
|
3386
3398
|
"neeto-ui-text-accent-800": isFieldActive,
|
|
@@ -3916,7 +3928,7 @@ var Target$1 = function Target(_ref) {
|
|
|
3916
3928
|
};
|
|
3917
3929
|
}, [field.value, dropdownOptions]);
|
|
3918
3930
|
return /*#__PURE__*/jsx(Button, {
|
|
3919
|
-
"data-cy": "condition-
|
|
3931
|
+
"data-cy": "condition-verb-dropdown-button",
|
|
3920
3932
|
label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
|
|
3921
3933
|
style: "link",
|
|
3922
3934
|
className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
|
|
@@ -4126,9 +4138,11 @@ var FieldPanel = function FieldPanel() {
|
|
|
4126
4138
|
children: /*#__PURE__*/jsxs("div", {
|
|
4127
4139
|
className: "flex flex-col space-y-2",
|
|
4128
4140
|
children: [/*#__PURE__*/jsxs(Typography, {
|
|
4141
|
+
"data-cy": "condition-title",
|
|
4129
4142
|
style: "h3",
|
|
4130
4143
|
children: [index ? logicalOperatorLabel : conditionLabel, "..."]
|
|
4131
4144
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4145
|
+
"data-cy": "condition-description",
|
|
4132
4146
|
style: "body2",
|
|
4133
4147
|
children: t("neetoRules.form.addConditionDescription")
|
|
4134
4148
|
})]
|
|
@@ -4144,6 +4158,7 @@ var FieldPanel = function FieldPanel() {
|
|
|
4144
4158
|
})
|
|
4145
4159
|
}), /*#__PURE__*/jsx(Panel.Footer, {
|
|
4146
4160
|
children: /*#__PURE__*/jsx(Button, {
|
|
4161
|
+
"data-cy": "continue-button",
|
|
4147
4162
|
onClick: handleContinue,
|
|
4148
4163
|
children: t("neetoRules.buttons.continue")
|
|
4149
4164
|
})
|
|
@@ -4361,10 +4376,12 @@ var VerbAndValuePanel = function VerbAndValuePanel() {
|
|
|
4361
4376
|
}));
|
|
4362
4377
|
}
|
|
4363
4378
|
}), /*#__PURE__*/jsxs(Typography, {
|
|
4379
|
+
"data-cy": "condition-verb-and-value-title",
|
|
4364
4380
|
style: "h3",
|
|
4365
4381
|
children: [index ? logicalOperatorLabel : conditionLabel, " ", fieldLabel, "..."]
|
|
4366
4382
|
})]
|
|
4367
4383
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4384
|
+
"data-cy": "condition-verb-and-value-description",
|
|
4368
4385
|
style: "body2",
|
|
4369
4386
|
children: t("neetoRules.form.addConditionVerbAndValueDescription")
|
|
4370
4387
|
})]
|
|
@@ -4389,6 +4406,7 @@ var VerbAndValuePanel = function VerbAndValuePanel() {
|
|
|
4389
4406
|
})
|
|
4390
4407
|
}), /*#__PURE__*/jsx(Panel.Footer, {
|
|
4391
4408
|
children: /*#__PURE__*/jsx(Button, {
|
|
4409
|
+
"data-cy": "continue-button",
|
|
4392
4410
|
onClick: handleContinue,
|
|
4393
4411
|
children: t("neetoRules.buttons.continue")
|
|
4394
4412
|
})
|
|
@@ -4631,9 +4649,11 @@ var EventsPanel = function EventsPanel() {
|
|
|
4631
4649
|
children: /*#__PURE__*/jsxs("div", {
|
|
4632
4650
|
className: "flex flex-col space-y-2",
|
|
4633
4651
|
children: [/*#__PURE__*/jsxs(Typography, {
|
|
4652
|
+
"data-cy": "event-title",
|
|
4634
4653
|
style: "h3",
|
|
4635
4654
|
children: [t("neetoRules.common.when"), "..."]
|
|
4636
4655
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4656
|
+
"data-cy": "event-description",
|
|
4637
4657
|
style: "body2",
|
|
4638
4658
|
children: t("neetoRules.form.addEventDescription")
|
|
4639
4659
|
})]
|
|
@@ -4665,6 +4685,7 @@ var EventsPanel = function EventsPanel() {
|
|
|
4665
4685
|
})
|
|
4666
4686
|
}), /*#__PURE__*/jsx(Panel.Footer, {
|
|
4667
4687
|
children: /*#__PURE__*/jsx(Button, {
|
|
4688
|
+
"data-cy": "continue-button",
|
|
4668
4689
|
onClick: handleContinue,
|
|
4669
4690
|
children: t("neetoRules.buttons.continue")
|
|
4670
4691
|
})
|
|
@@ -4737,6 +4758,7 @@ var PerformerPanel = function PerformerPanel() {
|
|
|
4737
4758
|
className: "flex items-center space-x-2",
|
|
4738
4759
|
children: [/*#__PURE__*/jsx(Button, {
|
|
4739
4760
|
className: "flex-shrink-0",
|
|
4761
|
+
"data-cy": "back-button",
|
|
4740
4762
|
icon: Left,
|
|
4741
4763
|
size: "medium",
|
|
4742
4764
|
style: "text",
|
|
@@ -4753,10 +4775,12 @@ var PerformerPanel = function PerformerPanel() {
|
|
|
4753
4775
|
}));
|
|
4754
4776
|
}
|
|
4755
4777
|
}), /*#__PURE__*/jsxs(Typography, {
|
|
4778
|
+
"data-cy": "performer-title",
|
|
4756
4779
|
style: "h3",
|
|
4757
4780
|
children: [t("neetoRules.form.actionTriggeredBy"), "..."]
|
|
4758
4781
|
})]
|
|
4759
4782
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4783
|
+
"data-cy": "performer-description",
|
|
4760
4784
|
style: "body2",
|
|
4761
4785
|
children: t("neetoRules.form.addPerformerDescription")
|
|
4762
4786
|
})]
|
|
@@ -4783,6 +4807,7 @@ var PerformerPanel = function PerformerPanel() {
|
|
|
4783
4807
|
})
|
|
4784
4808
|
}), /*#__PURE__*/jsx(Panel.Footer, {
|
|
4785
4809
|
children: /*#__PURE__*/jsx(Button, {
|
|
4810
|
+
"data-cy": "continue-button",
|
|
4786
4811
|
onClick: handleContinue,
|
|
4787
4812
|
children: t("neetoRules.buttons.continue")
|
|
4788
4813
|
})
|