@bigbinary/neeto-rules-frontend 1.2.0-beta3 → 2.0.1
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/README.md +2 -1
- package/app/javascript/src/translations/en.json +1 -1
- package/dist/index.cjs.js +102 -56
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +50 -15
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -165,12 +165,13 @@ The `NeetoRules` component is used to add the dashboard for automation rules.
|
|
|
165
165
|
- `onSuccess`: Object for handling delete rule success callback.
|
|
166
166
|
- `callback`: Function to be called on success. (Optional)
|
|
167
167
|
9. `cloneRule`: Object that define methods for clone rule operation.
|
|
168
|
+
- `allowed`: To specify if the clone rule should be allowed, default `true`. (Boolean)
|
|
168
169
|
- `onSuccess`: Object for handling clone rule success callback.
|
|
169
170
|
- `callback`: Function to be called on success. (Optional)
|
|
170
171
|
10. `reoderRules`: Function to be called on reorder success.
|
|
171
172
|
- `onSuccess`: Object for handling reorder rule success callback.
|
|
172
173
|
- `callback`: Function to be called on success. (Optional)
|
|
173
|
-
|
|
174
|
+
11. `headerProps`: Props for the header component. Refer [Header component doc](https://neeto-molecules.neeto.com/?path=/docs/layouts-header--docs).
|
|
174
175
|
#### 2. `NeetoRulesForm`
|
|
175
176
|
|
|
176
177
|
<div align="center">
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
"title": "Delete automation rule?"
|
|
325
325
|
},
|
|
326
326
|
"noData": {
|
|
327
|
-
"title": "There are no automation
|
|
327
|
+
"title": "There are no automation rules to show",
|
|
328
328
|
"helpText": "Here is how you can use <a>automation rules.</a>"
|
|
329
329
|
},
|
|
330
330
|
"tooltips": {
|
package/dist/index.cjs.js
CHANGED
|
@@ -15,7 +15,7 @@ var Button = require('@bigbinary/neetoui/Button');
|
|
|
15
15
|
var reactI18next = require('react-i18next');
|
|
16
16
|
var jsxRuntime = require('react/jsx-runtime');
|
|
17
17
|
var ReactDOM = require('react-dom');
|
|
18
|
-
var
|
|
18
|
+
var Reorder = require('@bigbinary/neeto-icons/Reorder');
|
|
19
19
|
var Pane = require('@bigbinary/neetoui/Pane');
|
|
20
20
|
var Typography = require('@bigbinary/neetoui/Typography');
|
|
21
21
|
var Pagination = require('@bigbinary/neetoui/Pagination');
|
|
@@ -33,8 +33,14 @@ var i18next = require('i18next');
|
|
|
33
33
|
var utils = require('@bigbinary/neeto-commons-frontend/utils');
|
|
34
34
|
var MoreDropdown = require('@bigbinary/neeto-molecules/MoreDropdown');
|
|
35
35
|
var Switch = require('@bigbinary/neetoui/Switch');
|
|
36
|
+
var Tooltip = require('@bigbinary/neetoui/Tooltip');
|
|
36
37
|
var formik = require('formik');
|
|
38
|
+
var Plus = require('@bigbinary/neeto-icons/Plus');
|
|
39
|
+
var Delete = require('@bigbinary/neeto-icons/Delete');
|
|
40
|
+
var Refresh = require('@bigbinary/neeto-icons/Refresh');
|
|
37
41
|
var classNames$1 = require('classnames');
|
|
42
|
+
var Check = require('@bigbinary/neeto-icons/Check');
|
|
43
|
+
var Search = require('@bigbinary/neeto-icons/Search');
|
|
38
44
|
var Dropdown$1 = require('@bigbinary/neetoui/Dropdown');
|
|
39
45
|
var Input$2 = require('@bigbinary/neetoui/Input');
|
|
40
46
|
var Textarea = require('@bigbinary/neetoui/formik/Textarea');
|
|
@@ -47,14 +53,18 @@ var FormikEditor = require('@bigbinary/neeto-editor/FormikEditor');
|
|
|
47
53
|
var MultiEmailInput = require('@bigbinary/neetoui/formik/MultiEmailInput');
|
|
48
54
|
var Input$3 = require('@bigbinary/neetoui/formik/Input');
|
|
49
55
|
var useHotkeys = require('@bigbinary/neeto-hotkeys');
|
|
56
|
+
var Close = require('@bigbinary/neeto-icons/Close');
|
|
50
57
|
var Checkbox = require('@bigbinary/neetoui/Checkbox');
|
|
51
58
|
var PhoneNumber = require('@bigbinary/neeto-molecules/PhoneNumber');
|
|
52
59
|
var Tag = require('@bigbinary/neetoui/Tag');
|
|
53
60
|
var yup = require('yup');
|
|
54
61
|
var utils$1 = require('@bigbinary/neeto-editor/utils');
|
|
55
|
-
var
|
|
62
|
+
var Eye = require('@bigbinary/neeto-icons/Eye');
|
|
56
63
|
var Select$2 = require('@bigbinary/neetoui/formik/Select');
|
|
57
64
|
var Radio = require('@bigbinary/neetoui/formik/Radio');
|
|
65
|
+
var Help = require('@bigbinary/neeto-icons/Help');
|
|
66
|
+
var Down = require('@bigbinary/neeto-icons/Down');
|
|
67
|
+
var Up = require('@bigbinary/neeto-icons/Up');
|
|
58
68
|
|
|
59
69
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
60
70
|
|
|
@@ -84,6 +94,7 @@ var NeetoHeader__default = /*#__PURE__*/_interopDefaultLegacy(NeetoHeader);
|
|
|
84
94
|
var HelpPopover__default = /*#__PURE__*/_interopDefaultLegacy(HelpPopover);
|
|
85
95
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
86
96
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
97
|
+
var Reorder__default = /*#__PURE__*/_interopDefaultLegacy(Reorder);
|
|
87
98
|
var Pane__default = /*#__PURE__*/_interopDefaultLegacy(Pane);
|
|
88
99
|
var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
|
|
89
100
|
var Pagination__default = /*#__PURE__*/_interopDefaultLegacy(Pagination);
|
|
@@ -95,7 +106,13 @@ var Table__default = /*#__PURE__*/_interopDefaultLegacy(Table);
|
|
|
95
106
|
var NoData__default = /*#__PURE__*/_interopDefaultLegacy(NoData);
|
|
96
107
|
var MoreDropdown__default = /*#__PURE__*/_interopDefaultLegacy(MoreDropdown);
|
|
97
108
|
var Switch__default = /*#__PURE__*/_interopDefaultLegacy(Switch);
|
|
109
|
+
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
|
110
|
+
var Plus__default = /*#__PURE__*/_interopDefaultLegacy(Plus);
|
|
111
|
+
var Delete__default = /*#__PURE__*/_interopDefaultLegacy(Delete);
|
|
112
|
+
var Refresh__default = /*#__PURE__*/_interopDefaultLegacy(Refresh);
|
|
98
113
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames$1);
|
|
114
|
+
var Check__default = /*#__PURE__*/_interopDefaultLegacy(Check);
|
|
115
|
+
var Search__default = /*#__PURE__*/_interopDefaultLegacy(Search);
|
|
99
116
|
var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown$1);
|
|
100
117
|
var Input__default = /*#__PURE__*/_interopDefaultLegacy(Input$2);
|
|
101
118
|
var Textarea__default = /*#__PURE__*/_interopDefaultLegacy(Textarea);
|
|
@@ -108,12 +125,16 @@ var FormikEditor__default = /*#__PURE__*/_interopDefaultLegacy(FormikEditor);
|
|
|
108
125
|
var MultiEmailInput__default = /*#__PURE__*/_interopDefaultLegacy(MultiEmailInput);
|
|
109
126
|
var Input__default$1 = /*#__PURE__*/_interopDefaultLegacy(Input$3);
|
|
110
127
|
var useHotkeys__default = /*#__PURE__*/_interopDefaultLegacy(useHotkeys);
|
|
128
|
+
var Close__default = /*#__PURE__*/_interopDefaultLegacy(Close);
|
|
111
129
|
var Checkbox__default = /*#__PURE__*/_interopDefaultLegacy(Checkbox);
|
|
112
130
|
var Tag__default = /*#__PURE__*/_interopDefaultLegacy(Tag);
|
|
113
131
|
var yup__namespace = /*#__PURE__*/_interopNamespace(yup);
|
|
114
|
-
var
|
|
132
|
+
var Eye__default = /*#__PURE__*/_interopDefaultLegacy(Eye);
|
|
115
133
|
var Select__default$1 = /*#__PURE__*/_interopDefaultLegacy(Select$2);
|
|
116
134
|
var Radio__default = /*#__PURE__*/_interopDefaultLegacy(Radio);
|
|
135
|
+
var Help__default = /*#__PURE__*/_interopDefaultLegacy(Help);
|
|
136
|
+
var Down__default = /*#__PURE__*/_interopDefaultLegacy(Down);
|
|
137
|
+
var Up__default = /*#__PURE__*/_interopDefaultLegacy(Up);
|
|
117
138
|
|
|
118
139
|
function _typeof$3(o) {
|
|
119
140
|
"@babel/helpers - typeof";
|
|
@@ -334,13 +355,14 @@ var Header = function Header(_ref) {
|
|
|
334
355
|
helpPopoverProps = _ref$helpPopoverProps === void 0 ? {} : _ref$helpPopoverProps,
|
|
335
356
|
setIsReorderPaneOpen = _ref.setIsReorderPaneOpen,
|
|
336
357
|
hasUnfilteredRules = _ref.hasUnfilteredRules,
|
|
337
|
-
allowReordering = _ref.allowReordering
|
|
358
|
+
allowReordering = _ref.allowReordering,
|
|
359
|
+
headerProps = _ref.headerProps;
|
|
338
360
|
var _useQueryParams = reactUtils.useQueryParams(),
|
|
339
361
|
_useQueryParams$searc = _useQueryParams.searchTerm,
|
|
340
362
|
searchTerm = _useQueryParams$searc === void 0 ? "" : _useQueryParams$searc;
|
|
341
363
|
var _useTranslation = reactI18next.useTranslation(),
|
|
342
364
|
t = _useTranslation.t;
|
|
343
|
-
return /*#__PURE__*/jsxRuntime.jsx(NeetoHeader__default["default"], {
|
|
365
|
+
return /*#__PURE__*/jsxRuntime.jsx(NeetoHeader__default["default"], _objectSpread$s({
|
|
344
366
|
breadcrumbs: breadcrumbs,
|
|
345
367
|
actionBlock: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
346
368
|
children: [hasUnfilteredRules && allowReordering && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
@@ -371,7 +393,7 @@ var Header = function Header(_ref) {
|
|
|
371
393
|
title: t("neetoRules.common.title")
|
|
372
394
|
}, helpPopoverProps))]
|
|
373
395
|
})
|
|
374
|
-
});
|
|
396
|
+
}, headerProps));
|
|
375
397
|
};
|
|
376
398
|
var Header$1 = /*#__PURE__*/React__default["default"].memo(Header);
|
|
377
399
|
|
|
@@ -9476,7 +9498,7 @@ var DraggableItem = function DraggableItem(props) {
|
|
|
9476
9498
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
9477
9499
|
className: "neeto-ui-bg-white neeto-ui-border-gray-400 neeto-ui-rounded neeto-ui-shadow-xs flex w-96 items-center space-x-4 border border-solid p-3",
|
|
9478
9500
|
"data-cy": "automation-rule-reorder-container",
|
|
9479
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
9501
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Reorder__default["default"], {}), rule.name]
|
|
9480
9502
|
})]
|
|
9481
9503
|
}), "list_".concat(rule.id));
|
|
9482
9504
|
}
|
|
@@ -9572,7 +9594,7 @@ var RulesReorder = function RulesReorder(_ref) {
|
|
|
9572
9594
|
children: rubric.source.index + 1
|
|
9573
9595
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
9574
9596
|
className: "neeto-ui-bg-white neeto-ui-border-gray-400 neeto-ui-rounded neeto-ui-shadow-xs flex w-96 items-center space-x-4 border border-solid p-3",
|
|
9575
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
9597
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Reorder__default["default"], {}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
9576
9598
|
children: initialRules[rubric.source.index].name
|
|
9577
9599
|
})]
|
|
9578
9600
|
})]
|
|
@@ -9677,8 +9699,9 @@ var buildActionDropdownMenuItems = function buildActionDropdownMenuItems(_ref) {
|
|
|
9677
9699
|
onDelete = _ref.onDelete,
|
|
9678
9700
|
_ref$moreDropdownItem = _ref.moreDropdownItems,
|
|
9679
9701
|
moreDropdownItems = _ref$moreDropdownItem === void 0 ? [] : _ref$moreDropdownItem,
|
|
9680
|
-
automationRulesPath = _ref.automationRulesPath
|
|
9681
|
-
|
|
9702
|
+
automationRulesPath = _ref.automationRulesPath,
|
|
9703
|
+
allowCloning = _ref.allowCloning;
|
|
9704
|
+
var defaultOptions = [].concat(_toConsumableArray$1(moreDropdownItems.map(function (_ref2) {
|
|
9682
9705
|
var _onClick = _ref2.onClick,
|
|
9683
9706
|
others = _objectWithoutProperties$1(_ref2, _excluded$h);
|
|
9684
9707
|
return _objectSpread$o(_objectSpread$o({}, others), {}, {
|
|
@@ -9701,6 +9724,9 @@ var buildActionDropdownMenuItems = function buildActionDropdownMenuItems(_ref) {
|
|
|
9701
9724
|
onClick: function onClick() {
|
|
9702
9725
|
return onClone(rule.id);
|
|
9703
9726
|
}
|
|
9727
|
+
}, {
|
|
9728
|
+
key: "divider",
|
|
9729
|
+
type: "divider"
|
|
9704
9730
|
}, {
|
|
9705
9731
|
key: "delete",
|
|
9706
9732
|
"data-test-id": "automation-rules-delete-link",
|
|
@@ -9709,6 +9735,12 @@ var buildActionDropdownMenuItems = function buildActionDropdownMenuItems(_ref) {
|
|
|
9709
9735
|
return onDelete(rule);
|
|
9710
9736
|
}
|
|
9711
9737
|
}]);
|
|
9738
|
+
if (!allowCloning) {
|
|
9739
|
+
return neetoCist.removeBy({
|
|
9740
|
+
key: "clone"
|
|
9741
|
+
}, defaultOptions);
|
|
9742
|
+
}
|
|
9743
|
+
return defaultOptions;
|
|
9712
9744
|
};
|
|
9713
9745
|
var getColumnData = function getColumnData(_ref3) {
|
|
9714
9746
|
var handleChangeStatus = _ref3.handleChangeStatus,
|
|
@@ -9761,10 +9793,17 @@ var getColumnData = function getColumnData(_ref3) {
|
|
|
9761
9793
|
key: "description",
|
|
9762
9794
|
width: 390,
|
|
9763
9795
|
render: function render(description) {
|
|
9764
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
9765
|
-
|
|
9796
|
+
return neetoCist.isPresent(description) ? /*#__PURE__*/jsxRuntime.jsx(Tooltip__default["default"], {
|
|
9797
|
+
content: description,
|
|
9798
|
+
position: "bottom",
|
|
9799
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
9800
|
+
className: "line-clamp-2 whitespace-pre-line",
|
|
9801
|
+
style: "body2",
|
|
9802
|
+
children: description
|
|
9803
|
+
})
|
|
9804
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
9766
9805
|
style: "body2",
|
|
9767
|
-
children:
|
|
9806
|
+
children: "-"
|
|
9768
9807
|
});
|
|
9769
9808
|
}
|
|
9770
9809
|
}, {
|
|
@@ -9821,7 +9860,9 @@ var RulesTable = function RulesTable(_ref) {
|
|
|
9821
9860
|
onCloneSuccess = _ref.onCloneSuccess,
|
|
9822
9861
|
onUpdateSuccess = _ref.onUpdateSuccess,
|
|
9823
9862
|
page = _ref.page,
|
|
9824
|
-
setPage = _ref.setPage
|
|
9863
|
+
setPage = _ref.setPage,
|
|
9864
|
+
_ref$allowCloning = _ref.allowCloning,
|
|
9865
|
+
allowCloning = _ref$allowCloning === void 0 ? true : _ref$allowCloning;
|
|
9825
9866
|
var _useQueryParams = reactUtils.useQueryParams(),
|
|
9826
9867
|
_useQueryParams$searc = _useQueryParams.searchTerm,
|
|
9827
9868
|
searchTerm = _useQueryParams$searc === void 0 ? "" : _useQueryParams$searc;
|
|
@@ -9886,7 +9927,8 @@ var RulesTable = function RulesTable(_ref) {
|
|
|
9886
9927
|
onDelete: setSelectedRule,
|
|
9887
9928
|
onPreview: onPreview,
|
|
9888
9929
|
automationRulesPath: automationRulesPath,
|
|
9889
|
-
moreDropdownItems: moreDropdownItems
|
|
9930
|
+
moreDropdownItems: moreDropdownItems,
|
|
9931
|
+
allowCloning: allowCloning
|
|
9890
9932
|
});
|
|
9891
9933
|
if (isLoading && ramda.isEmpty(rules)) {
|
|
9892
9934
|
return /*#__PURE__*/jsxRuntime.jsx(PageLoader__default["default"], {});
|
|
@@ -9965,7 +10007,7 @@ var RulesTable = function RulesTable(_ref) {
|
|
|
9965
10007
|
function ownKeys$n(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; }
|
|
9966
10008
|
function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9967
10009
|
var NeetoRules = function NeetoRules(_ref) {
|
|
9968
|
-
var _helpPopoverProps$hel, _cloneRule$onSuccess, _deleteRule$onSuccess, _updateRule$onSuccess, _reorderRules$onSucce;
|
|
10010
|
+
var _helpPopoverProps$hel, _cloneRule$allowed, _cloneRule$onSuccess, _deleteRule$onSuccess, _updateRule$onSuccess, _reorderRules$onSucce;
|
|
9969
10011
|
var breadcrumbs = _ref.breadcrumbs,
|
|
9970
10012
|
automationRulesPath = _ref.automationRulesPath,
|
|
9971
10013
|
url = _ref.automationRulesEndpoint,
|
|
@@ -9978,7 +10020,9 @@ var NeetoRules = function NeetoRules(_ref) {
|
|
|
9978
10020
|
deleteRule = _ref.deleteRule,
|
|
9979
10021
|
cloneRule = _ref.cloneRule,
|
|
9980
10022
|
updateRule = _ref.updateRule,
|
|
9981
|
-
reorderRules = _ref.reorderRules
|
|
10023
|
+
reorderRules = _ref.reorderRules,
|
|
10024
|
+
_ref$headerProps = _ref.headerProps,
|
|
10025
|
+
headerProps = _ref$headerProps === void 0 ? {} : _ref$headerProps;
|
|
9982
10026
|
var _useState = React.useState(false),
|
|
9983
10027
|
_useState2 = _slicedToArray$1(_useState, 2),
|
|
9984
10028
|
isReorderPaneOpen = _useState2[0],
|
|
@@ -10012,6 +10056,7 @@ var NeetoRules = function NeetoRules(_ref) {
|
|
|
10012
10056
|
automationRulesPath: automationRulesPath,
|
|
10013
10057
|
breadcrumbs: breadcrumbs,
|
|
10014
10058
|
hasUnfilteredRules: hasUnfilteredRules,
|
|
10059
|
+
headerProps: headerProps,
|
|
10015
10060
|
helpPopoverProps: helpPopoverProps,
|
|
10016
10061
|
setIsReorderPaneOpen: setIsReorderPaneOpen
|
|
10017
10062
|
}), /*#__PURE__*/jsxRuntime.jsx(RulesTable, _objectSpread$m(_objectSpread$m({}, _objectSpread$m({
|
|
@@ -10023,6 +10068,7 @@ var NeetoRules = function NeetoRules(_ref) {
|
|
|
10023
10068
|
totalCount: totalCount,
|
|
10024
10069
|
url: url
|
|
10025
10070
|
}, rulesTableProps)), {}, {
|
|
10071
|
+
allowCloning: (_cloneRule$allowed = cloneRule === null || cloneRule === void 0 ? void 0 : cloneRule.allowed) !== null && _cloneRule$allowed !== void 0 ? _cloneRule$allowed : true,
|
|
10026
10072
|
isLoading: isLoading || isFetching,
|
|
10027
10073
|
onCloneSuccess: cloneRule === null || cloneRule === void 0 || (_cloneRule$onSuccess = cloneRule.onSuccess) === null || _cloneRule$onSuccess === void 0 ? void 0 : _cloneRule$onSuccess.callback,
|
|
10028
10074
|
onDeleteSuccess: deleteRule === null || deleteRule === void 0 || (_deleteRule$onSuccess = deleteRule.onSuccess) === null || _deleteRule$onSuccess === void 0 ? void 0 : _deleteRule$onSuccess.callback,
|
|
@@ -10283,7 +10329,7 @@ var KeyValuePairsField = reactUtils.withT(function (_ref) {
|
|
|
10283
10329
|
name: "".concat(name, ".").concat(index, ".value"),
|
|
10284
10330
|
placeholder: t("neetoRules.labels.value"),
|
|
10285
10331
|
suffix: showDeleteButton && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
10286
|
-
icon:
|
|
10332
|
+
icon: Delete__default["default"],
|
|
10287
10333
|
size: "small",
|
|
10288
10334
|
style: "text",
|
|
10289
10335
|
onClick: function onClick() {
|
|
@@ -10547,7 +10593,7 @@ var DateField$1 = function DateField(_ref) {
|
|
|
10547
10593
|
// eslint-disable-next-line @bigbinary/neeto/use-standard-date-time-formats
|
|
10548
10594
|
date ? dayjs__default["default"](date).format("YYYY-MM-DD") : "");
|
|
10549
10595
|
}
|
|
10550
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
10596
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
|
|
10551
10597
|
className: "cursor-pointer",
|
|
10552
10598
|
onClick: function onClick() {
|
|
10553
10599
|
return setShowInput(function (prevState) {
|
|
@@ -10791,7 +10837,7 @@ var DropdownField$1 = function DropdownField(_ref) {
|
|
|
10791
10837
|
className: "mb-1",
|
|
10792
10838
|
"data-cy": "search-text-field",
|
|
10793
10839
|
placeholder: t("neetoRules.common.search"),
|
|
10794
|
-
prefix: /*#__PURE__*/jsxRuntime.jsx(
|
|
10840
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
|
|
10795
10841
|
value: searchTerm,
|
|
10796
10842
|
onChange: function onChange(e) {
|
|
10797
10843
|
return setSearchTerm(e.target.value);
|
|
@@ -10807,7 +10853,7 @@ var DropdownField$1 = function DropdownField(_ref) {
|
|
|
10807
10853
|
className: classNames__default["default"]({
|
|
10808
10854
|
"neeto-ui-bg-gray-100": defaultSelectedOption.value === option.value
|
|
10809
10855
|
}),
|
|
10810
|
-
suffix: defaultSelectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(
|
|
10856
|
+
suffix: defaultSelectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
|
|
10811
10857
|
className: "neeto-ui-text-primary-800"
|
|
10812
10858
|
}),
|
|
10813
10859
|
onClick: function onClick() {
|
|
@@ -11081,7 +11127,7 @@ var Input$1 = function Input(_ref) {
|
|
|
11081
11127
|
placeholder: t("neetoRules.placeholders.value"),
|
|
11082
11128
|
ref: inputRef,
|
|
11083
11129
|
size: "small",
|
|
11084
|
-
suffix: /*#__PURE__*/jsxRuntime.jsx(
|
|
11130
|
+
suffix: /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
|
|
11085
11131
|
onClick: function onClick() {
|
|
11086
11132
|
return setShowInput(function (prevState) {
|
|
11087
11133
|
return !prevState;
|
|
@@ -11190,14 +11236,14 @@ var InlineInput = /*#__PURE__*/React__default["default"].forwardRef(function (pr
|
|
|
11190
11236
|
children: [/*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
11191
11237
|
"data-cy": "inline-input-submit-button",
|
|
11192
11238
|
disabled: !isValidValue,
|
|
11193
|
-
icon:
|
|
11239
|
+
icon: Check__default["default"],
|
|
11194
11240
|
style: "text",
|
|
11195
11241
|
tooltipProps: LIST_FIELD_TOOLTIP_PROPS.save,
|
|
11196
11242
|
onClick: onSubmit
|
|
11197
11243
|
}), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
11198
11244
|
ref: ref,
|
|
11199
11245
|
"data-cy": "inline-input-cancel-button",
|
|
11200
|
-
icon:
|
|
11246
|
+
icon: Close__default["default"],
|
|
11201
11247
|
style: "text",
|
|
11202
11248
|
tooltipProps: LIST_FIELD_TOOLTIP_PROPS.cancel,
|
|
11203
11249
|
onClick: handleCancel
|
|
@@ -11288,7 +11334,7 @@ var ListField = function ListField(_ref) {
|
|
|
11288
11334
|
}), /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
11289
11335
|
className: "flex-shrink-0",
|
|
11290
11336
|
"data-cy": "list-action-delete-item-button",
|
|
11291
|
-
icon:
|
|
11337
|
+
icon: Delete__default["default"],
|
|
11292
11338
|
size: "small",
|
|
11293
11339
|
style: "text",
|
|
11294
11340
|
onClick: function onClick() {
|
|
@@ -11317,7 +11363,7 @@ var ListField = function ListField(_ref) {
|
|
|
11317
11363
|
ref: initialFocusRef
|
|
11318
11364
|
}) : /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
11319
11365
|
"data-cy": "list-action-add-item-button",
|
|
11320
|
-
icon:
|
|
11366
|
+
icon: Plus__default["default"],
|
|
11321
11367
|
label: t("neetoRules.common.addItem"),
|
|
11322
11368
|
ref: initialFocusRef,
|
|
11323
11369
|
style: "text",
|
|
@@ -11445,7 +11491,7 @@ var MultiSelect$1 = function MultiSelect(_ref) {
|
|
|
11445
11491
|
className: "mb-1",
|
|
11446
11492
|
"data-cy": "search-text-field",
|
|
11447
11493
|
placeholder: t("neetoRules.common.search"),
|
|
11448
|
-
prefix: /*#__PURE__*/jsxRuntime.jsx(
|
|
11494
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
|
|
11449
11495
|
value: searchTerm,
|
|
11450
11496
|
onChange: function onChange(e) {
|
|
11451
11497
|
return setSearchTerm(e.target.value);
|
|
@@ -19261,7 +19307,7 @@ var STYLES = {
|
|
|
19261
19307
|
var MultiValueRemove = function MultiValueRemove(props) {
|
|
19262
19308
|
return /*#__PURE__*/jsxRuntime.jsx(components.MultiValueRemove, _objectSpread$h(_objectSpread$h({}, props), {}, {
|
|
19263
19309
|
innerProps: _objectSpread$h(_objectSpread$h({}, props.innerProps), {}, _defineProperty$2({}, "data-cy", "".concat(dasherize(props.data.label), "-remove-icon"))),
|
|
19264
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
19310
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Close__default["default"], {
|
|
19265
19311
|
size: 16
|
|
19266
19312
|
})
|
|
19267
19313
|
}));
|
|
@@ -19293,7 +19339,7 @@ var ValueContainer = function ValueContainer(_ref) {
|
|
|
19293
19339
|
var ClearIndicator = function ClearIndicator(props) {
|
|
19294
19340
|
return /*#__PURE__*/jsxRuntime.jsx(components.ClearIndicator, _objectSpread$h(_objectSpread$h({}, props), {}, {
|
|
19295
19341
|
innerProps: _objectSpread$h(_objectSpread$h({}, props.innerProps), {}, _defineProperty$2({}, "data-cy", "clear-all-button")),
|
|
19296
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
19342
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Close__default["default"], {
|
|
19297
19343
|
className: "cursor-pointer",
|
|
19298
19344
|
size: 16
|
|
19299
19345
|
})
|
|
@@ -20203,7 +20249,7 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
20203
20249
|
className: "mb-1",
|
|
20204
20250
|
"data-cy": "search-text-field",
|
|
20205
20251
|
placeholder: t("neetoRules.common.search"),
|
|
20206
|
-
prefix: /*#__PURE__*/jsxRuntime.jsx(
|
|
20252
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
|
|
20207
20253
|
value: searchTerm,
|
|
20208
20254
|
onChange: function onChange(e) {
|
|
20209
20255
|
return setSearchTerm(e.target.value);
|
|
@@ -20216,7 +20262,7 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
20216
20262
|
children: searchedOptions.map(function (option, idx) {
|
|
20217
20263
|
return /*#__PURE__*/jsxRuntime.jsx(MenuItem$7.Button, {
|
|
20218
20264
|
"data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
|
|
20219
|
-
suffix: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(
|
|
20265
|
+
suffix: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
|
|
20220
20266
|
className: "neeto-ui-text-primary-800"
|
|
20221
20267
|
}),
|
|
20222
20268
|
onClick: function onClick() {
|
|
@@ -20317,7 +20363,7 @@ var Actions = function Actions(_ref) {
|
|
|
20317
20363
|
className: "-mx-1 flex flex-wrap",
|
|
20318
20364
|
children: [handleSlackChannelRefresh && action.name === "message_to_slack" && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
20319
20365
|
"data-cy": "refresh-slack-button",
|
|
20320
|
-
icon:
|
|
20366
|
+
icon: Refresh__default["default"],
|
|
20321
20367
|
size: 24,
|
|
20322
20368
|
style: "icon",
|
|
20323
20369
|
tooltipProps: {
|
|
@@ -20329,7 +20375,7 @@ var Actions = function Actions(_ref) {
|
|
|
20329
20375
|
}
|
|
20330
20376
|
}), showButton && index === actions.length - 1 && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
20331
20377
|
"data-cy": "add-action-button",
|
|
20332
|
-
icon:
|
|
20378
|
+
icon: Plus__default["default"],
|
|
20333
20379
|
size: 24,
|
|
20334
20380
|
style: "icon",
|
|
20335
20381
|
tooltipProps: {
|
|
@@ -20341,7 +20387,7 @@ var Actions = function Actions(_ref) {
|
|
|
20341
20387
|
}
|
|
20342
20388
|
}), actions.length > 1 && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
20343
20389
|
"data-cy": "delete-action-button-".concat(index),
|
|
20344
|
-
icon:
|
|
20390
|
+
icon: Delete__default["default"],
|
|
20345
20391
|
size: 24,
|
|
20346
20392
|
style: "icon",
|
|
20347
20393
|
tooltipProps: {
|
|
@@ -20460,7 +20506,7 @@ var DropdownField = function DropdownField(_ref) {
|
|
|
20460
20506
|
className: "mb-1",
|
|
20461
20507
|
"data-cy": "search-text-field",
|
|
20462
20508
|
placeholder: t("neetoRules.common.search"),
|
|
20463
|
-
prefix: /*#__PURE__*/jsxRuntime.jsx(
|
|
20509
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
|
|
20464
20510
|
value: searchTerm,
|
|
20465
20511
|
onChange: function onChange(e) {
|
|
20466
20512
|
return setSearchTerm(e.target.value);
|
|
@@ -20476,7 +20522,7 @@ var DropdownField = function DropdownField(_ref) {
|
|
|
20476
20522
|
className: classNames__default["default"]({
|
|
20477
20523
|
"neeto-ui-bg-gray-100": selectedOption.value === option.value
|
|
20478
20524
|
}),
|
|
20479
|
-
suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(
|
|
20525
|
+
suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
|
|
20480
20526
|
className: "neeto-ui-text-primary-800",
|
|
20481
20527
|
"data-cy": "check-icon"
|
|
20482
20528
|
}),
|
|
@@ -20584,7 +20630,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
20584
20630
|
className: "mb-1",
|
|
20585
20631
|
"data-cy": "search-text-field",
|
|
20586
20632
|
placeholder: t("neetoRules.common.search"),
|
|
20587
|
-
prefix: /*#__PURE__*/jsxRuntime.jsx(
|
|
20633
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
|
|
20588
20634
|
value: searchTerm,
|
|
20589
20635
|
onChange: function onChange(e) {
|
|
20590
20636
|
return setSearchTerm(e.target.value);
|
|
@@ -20600,7 +20646,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
20600
20646
|
className: classNames__default["default"]({
|
|
20601
20647
|
"neeto-ui-bg-gray-100": (defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : defaultSelectedOption.value) === option.value
|
|
20602
20648
|
}),
|
|
20603
|
-
suffix: (defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : defaultSelectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(
|
|
20649
|
+
suffix: (defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : defaultSelectedOption.value) === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
|
|
20604
20650
|
className: "neeto-ui-text-primary-800"
|
|
20605
20651
|
}),
|
|
20606
20652
|
onClick: function onClick() {
|
|
@@ -20648,7 +20694,7 @@ var InputField$1 = function InputField(_ref) {
|
|
|
20648
20694
|
placeholder: placeholder,
|
|
20649
20695
|
ref: inputRef,
|
|
20650
20696
|
size: "small",
|
|
20651
|
-
suffix: /*#__PURE__*/jsxRuntime.jsx(
|
|
20697
|
+
suffix: /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
|
|
20652
20698
|
className: "cursor-pointer",
|
|
20653
20699
|
onClick: function onClick() {
|
|
20654
20700
|
return setShowInput(function (prevState) {
|
|
@@ -20762,7 +20808,7 @@ var MultiSelect = function MultiSelect(_ref) {
|
|
|
20762
20808
|
className: "mb-1",
|
|
20763
20809
|
"data-cy": "search-text-field",
|
|
20764
20810
|
placeholder: t("neetoRules.common.search"),
|
|
20765
|
-
prefix: /*#__PURE__*/jsxRuntime.jsx(
|
|
20811
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
|
|
20766
20812
|
value: searchTerm,
|
|
20767
20813
|
onChange: function onChange(e) {
|
|
20768
20814
|
return setSearchTerm(e.target.value);
|
|
@@ -21335,7 +21381,7 @@ var DateField = function DateField(_ref) {
|
|
|
21335
21381
|
name: "".concat(name, ".value"),
|
|
21336
21382
|
type: "date",
|
|
21337
21383
|
onChange: handleOnChange
|
|
21338
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
21384
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
|
|
21339
21385
|
className: "cursor-pointer",
|
|
21340
21386
|
onClick: function onClick() {
|
|
21341
21387
|
return setShowInput(function (prevState) {
|
|
@@ -21600,7 +21646,7 @@ var Conditions = function Conditions(_ref) {
|
|
|
21600
21646
|
className: "flex",
|
|
21601
21647
|
children: [index === conditions.length - 1 && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
21602
21648
|
"data-cy": "add-condition-button",
|
|
21603
|
-
icon:
|
|
21649
|
+
icon: Plus__default["default"],
|
|
21604
21650
|
size: "small",
|
|
21605
21651
|
style: "text",
|
|
21606
21652
|
tooltipProps: {
|
|
@@ -21612,7 +21658,7 @@ var Conditions = function Conditions(_ref) {
|
|
|
21612
21658
|
}
|
|
21613
21659
|
}), (allowEmpty || index !== 0) && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
21614
21660
|
"data-cy": "delete-condition-button-".concat(index),
|
|
21615
|
-
icon:
|
|
21661
|
+
icon: Delete__default["default"],
|
|
21616
21662
|
size: "small",
|
|
21617
21663
|
style: "text",
|
|
21618
21664
|
tooltipProps: {
|
|
@@ -21637,7 +21683,7 @@ var Conditions = function Conditions(_ref) {
|
|
|
21637
21683
|
children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
21638
21684
|
className: "mt-2",
|
|
21639
21685
|
"data-cy": "preview-callback-button",
|
|
21640
|
-
icon:
|
|
21686
|
+
icon: Eye__default["default"],
|
|
21641
21687
|
label: t("neetoRules.common.preview"),
|
|
21642
21688
|
style: "secondary",
|
|
21643
21689
|
onClick: function onClick() {
|
|
@@ -21773,7 +21819,7 @@ var Performer$1 = function Performer(_ref) {
|
|
|
21773
21819
|
className: "mb-1",
|
|
21774
21820
|
"data-cy": "search-text-field",
|
|
21775
21821
|
placeholder: t("neetoRules.common.search"),
|
|
21776
|
-
prefix: /*#__PURE__*/jsxRuntime.jsx(
|
|
21822
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
|
|
21777
21823
|
value: searchTerm,
|
|
21778
21824
|
onChange: function onChange(e) {
|
|
21779
21825
|
return setSearchTerm(e.target.value);
|
|
@@ -21790,7 +21836,7 @@ var Performer$1 = function Performer(_ref) {
|
|
|
21790
21836
|
className: classNames__default["default"]({
|
|
21791
21837
|
"neeto-ui-bg-gray-100": selectedOption.value === option.value
|
|
21792
21838
|
}),
|
|
21793
|
-
suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(
|
|
21839
|
+
suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
|
|
21794
21840
|
className: "neeto-ui-text-primary-800",
|
|
21795
21841
|
"data-cy": "check-icon"
|
|
21796
21842
|
}),
|
|
@@ -21961,7 +22007,7 @@ var Events$1 = function Events(_ref) {
|
|
|
21961
22007
|
className: "mb-1",
|
|
21962
22008
|
"data-cy": "search-text-field",
|
|
21963
22009
|
placeholder: t("neetoRules.common.search"),
|
|
21964
|
-
prefix: /*#__PURE__*/jsxRuntime.jsx(
|
|
22010
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
|
|
21965
22011
|
value: searchTerm,
|
|
21966
22012
|
onChange: function onChange(e) {
|
|
21967
22013
|
return setSearchTerm(e.target.value);
|
|
@@ -22057,7 +22103,7 @@ var EventConditions = function EventConditions(_ref) {
|
|
|
22057
22103
|
"data-cy": "add-condition-button",
|
|
22058
22104
|
"data-test-id": "automation-rules-add-events-button",
|
|
22059
22105
|
disabled: isConditionsEmpty,
|
|
22060
|
-
icon:
|
|
22106
|
+
icon: Plus__default["default"],
|
|
22061
22107
|
size: "small",
|
|
22062
22108
|
style: "text",
|
|
22063
22109
|
onClick: handleAddCondition
|
|
@@ -22179,7 +22225,7 @@ var EventItem = function EventItem(_ref) {
|
|
|
22179
22225
|
className: "mb-1",
|
|
22180
22226
|
"data-cy": "search-text-field",
|
|
22181
22227
|
placeholder: t("neetoRules.common.search"),
|
|
22182
|
-
prefix: /*#__PURE__*/jsxRuntime.jsx(
|
|
22228
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
|
|
22183
22229
|
value: searchTerm,
|
|
22184
22230
|
onChange: function onChange(e) {
|
|
22185
22231
|
return setSearchTerm(e.target.value);
|
|
@@ -22295,7 +22341,7 @@ var Performer = function Performer(_ref) {
|
|
|
22295
22341
|
className: "mb-1",
|
|
22296
22342
|
"data-cy": "search-text-field",
|
|
22297
22343
|
placeholder: t("neetoRules.common.search"),
|
|
22298
|
-
prefix: /*#__PURE__*/jsxRuntime.jsx(
|
|
22344
|
+
prefix: /*#__PURE__*/jsxRuntime.jsx(Search__default["default"], {}),
|
|
22299
22345
|
value: searchTerm,
|
|
22300
22346
|
onChange: function onChange(e) {
|
|
22301
22347
|
return setSearchTerm(e.target.value);
|
|
@@ -22308,7 +22354,7 @@ var Performer = function Performer(_ref) {
|
|
|
22308
22354
|
className: classNames__default["default"]({
|
|
22309
22355
|
"neeto-ui-bg-gray-100": selectedOption.value === option.value
|
|
22310
22356
|
}),
|
|
22311
|
-
suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(
|
|
22357
|
+
suffix: selectedOption.value === option.value && /*#__PURE__*/jsxRuntime.jsx(Check__default["default"], {
|
|
22312
22358
|
className: "neeto-ui-text-primary-800",
|
|
22313
22359
|
"data-cy": "check-icon"
|
|
22314
22360
|
}),
|
|
@@ -22439,7 +22485,7 @@ var Events = function Events(_ref) {
|
|
|
22439
22485
|
children: [showAddButton && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
22440
22486
|
"data-cy": "add-event-button",
|
|
22441
22487
|
"data-test-id": "automation-rules-add-events-button",
|
|
22442
|
-
icon:
|
|
22488
|
+
icon: Plus__default["default"],
|
|
22443
22489
|
size: 32,
|
|
22444
22490
|
style: "icon",
|
|
22445
22491
|
tooltipProps: {
|
|
@@ -22451,7 +22497,7 @@ var Events = function Events(_ref) {
|
|
|
22451
22497
|
}
|
|
22452
22498
|
}), !showMessage && /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
22453
22499
|
"data-cy": "delete-event-button",
|
|
22454
|
-
icon:
|
|
22500
|
+
icon: Delete__default["default"],
|
|
22455
22501
|
size: 32,
|
|
22456
22502
|
style: "icon",
|
|
22457
22503
|
tooltipProps: {
|
|
@@ -22770,7 +22816,7 @@ var Status = function Status() {
|
|
|
22770
22816
|
label: t("neetoRules.labels.active"),
|
|
22771
22817
|
labelProps: {
|
|
22772
22818
|
helpIconProps: {
|
|
22773
|
-
icon:
|
|
22819
|
+
icon: Help__default["default"],
|
|
22774
22820
|
tooltipProps: {
|
|
22775
22821
|
content: status.value === ENABLED ? t("neetoRules.tooltips.rule.active") : t("neetoRules.tooltips.rule.inactive")
|
|
22776
22822
|
}
|
|
@@ -23119,7 +23165,7 @@ var ActionsDetail = function ActionsDetail(_ref) {
|
|
|
23119
23165
|
}), actionsList.length > 4 && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
23120
23166
|
className: "mt-3 w-full",
|
|
23121
23167
|
children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
23122
|
-
icon: !viewMore ?
|
|
23168
|
+
icon: !viewMore ? Down__default["default"] : Up__default["default"],
|
|
23123
23169
|
size: "small",
|
|
23124
23170
|
style: "link",
|
|
23125
23171
|
label: !viewMore ? t("neetoRules.common.viewMore") : t("neetoRules.common.viewLess"),
|
|
@@ -23234,7 +23280,7 @@ var ConditionsDetail = function ConditionsDetail(_ref) {
|
|
|
23234
23280
|
}), conditionsList.length > 3 && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
23235
23281
|
className: "mt-3 w-full",
|
|
23236
23282
|
children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
|
|
23237
|
-
icon: !viewMore ?
|
|
23283
|
+
icon: !viewMore ? Down__default["default"] : Up__default["default"],
|
|
23238
23284
|
size: "small",
|
|
23239
23285
|
style: "link",
|
|
23240
23286
|
label: !viewMore ? t("neetoRules.common.viewMore") : t("neetoRules.common.viewLess"),
|