@bigbinary/neeto-approvals-frontend 0.2.9 → 0.2.10
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/index.cjs.js +7 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -412,6 +412,7 @@ var STATUS_UPDATED_BY = {
|
|
|
412
412
|
approved: i18next.t("neetoApprovals.common.approvedBy"),
|
|
413
413
|
cancelled: i18next.t("neetoApprovals.common.cancelledBy")
|
|
414
414
|
};
|
|
415
|
+
var DATA_CY_KEY = "data-cy";
|
|
415
416
|
|
|
416
417
|
dayjs__default["default"].extend(utc__default["default"]);
|
|
417
418
|
dayjs__default["default"].extend(timezone__default["default"]);
|
|
@@ -1036,10 +1037,12 @@ var Form$1 = function Form(_ref) {
|
|
|
1036
1037
|
}))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Footer, {
|
|
1037
1038
|
className: "flex gap-x-2"
|
|
1038
1039
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
1040
|
+
"data-cy": "neeto-approvals-templates-save-template-btn",
|
|
1039
1041
|
label: t("neetoApprovals.buttons.saveChanges"),
|
|
1040
1042
|
loading: isLoading,
|
|
1041
1043
|
type: "submit"
|
|
1042
1044
|
}), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
1045
|
+
"data-cy": "neeto-approvals-templates-close-template-form-btn",
|
|
1043
1046
|
label: t("neetoApprovals.buttons.cancel"),
|
|
1044
1047
|
style: "text",
|
|
1045
1048
|
onClick: onClose
|
|
@@ -1292,19 +1295,19 @@ var columnData = function columnData(_ref) {
|
|
|
1292
1295
|
return e.stopPropagation();
|
|
1293
1296
|
}
|
|
1294
1297
|
},
|
|
1295
|
-
menuItems: [{
|
|
1298
|
+
menuItems: [_defineProperty({
|
|
1296
1299
|
key: "edit",
|
|
1297
1300
|
label: i18next__default["default"].t("neetoApprovals.common.edit"),
|
|
1298
1301
|
onClick: function onClick(event) {
|
|
1299
1302
|
return onEditClick(event, template);
|
|
1300
1303
|
}
|
|
1301
|
-
}, {
|
|
1304
|
+
}, DATA_CY_KEY, "neeto-approvals-templates-edit-template-btn"), _defineProperty({
|
|
1302
1305
|
key: "delete",
|
|
1303
1306
|
label: i18next__default["default"].t("neetoApprovals.common.delete"),
|
|
1304
1307
|
onClick: function onClick(event) {
|
|
1305
1308
|
return onDeleteClick(event, template);
|
|
1306
1309
|
}
|
|
1307
|
-
}]
|
|
1310
|
+
}, DATA_CY_KEY, "neeto-approvals-templates-delete-template-btn")]
|
|
1308
1311
|
}));
|
|
1309
1312
|
}
|
|
1310
1313
|
}, {
|
|
@@ -1477,6 +1480,7 @@ var createRoutes = function createRoutes(_ref) {
|
|
|
1477
1480
|
actionBlock: function actionBlock() {
|
|
1478
1481
|
var _t;
|
|
1479
1482
|
return /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
1483
|
+
"data-cy": "neeto-approvals-templates-add-new-button",
|
|
1480
1484
|
label: i18next.t("neetoApprovals.common.addNew_", {
|
|
1481
1485
|
what: (_t = i18next.t("neetoApprovals.common.template", constants.SINGULAR)) === null || _t === void 0 ? void 0 : _t.toLocaleLowerCase()
|
|
1482
1486
|
}),
|