@nualang/nualang-ui-components 0.1.1318 → 0.1.1319

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.
@@ -512,6 +512,7 @@ function PhrasesEditor(props) {
512
512
  })
513
513
  }), /*#__PURE__*/_jsx(ToggleButton, {
514
514
  value: Modes.SPREADSHEET,
515
+ "data-cy": "spreadsheet-toggle",
515
516
  children: /*#__PURE__*/_jsx(Tooltip, {
516
517
  title: t("spreadsheet_mode"),
517
518
  children: /*#__PURE__*/_jsx(TableChartIcon, {})
@@ -75,6 +75,7 @@ function SpreadsheetEditor(props) {
75
75
  color: "primary",
76
76
  onClick: saveChanges,
77
77
  disabled: errors.length > 0,
78
+ "data-cy": "save-spreadsheet-changes",
78
79
  children: t("save_changes")
79
80
  })
80
81
  })]
@@ -257,18 +257,21 @@ const MeetingPromptsList = withStyles(({
257
257
  },
258
258
  children: formatMeetingDueText(discussion?.meetingDate, discussion?.meetingTime, t)
259
259
  }), /*#__PURE__*/_jsx(Tooltip, {
260
- title: t("edit_discussion"),
261
- children: /*#__PURE__*/_jsx(IconButton, {
262
- size: "medium",
263
- onClick: e => {
264
- e.stopPropagation();
265
- setSelectedDiscussion(discussion);
266
- setSelectedGroup(discussion);
267
- setGroupedId(discussion?.groupedId);
268
- setIsEditMeetingDialogOpen(true);
269
- },
270
- children: /*#__PURE__*/_jsx(EditIcon, {
271
- fontSize: "medium"
260
+ title: submittedCount > 0 ? t("cannot_edit_discussion") : t("edit_discussion"),
261
+ children: /*#__PURE__*/_jsx("span", {
262
+ children: /*#__PURE__*/_jsx(IconButton, {
263
+ size: "medium",
264
+ disabled: submittedCount > 0,
265
+ onClick: e => {
266
+ e.stopPropagation();
267
+ setSelectedDiscussion(discussion);
268
+ setSelectedGroup(discussion);
269
+ setGroupedId(discussion?.groupedId);
270
+ setIsEditMeetingDialogOpen(true);
271
+ },
272
+ children: /*#__PURE__*/_jsx(EditIcon, {
273
+ fontSize: "medium"
274
+ })
272
275
  })
273
276
  })
274
277
  }), /*#__PURE__*/_jsx(Tooltip, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nualang/nualang-ui-components",
3
- "version": "0.1.1318",
3
+ "version": "0.1.1319",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -77,7 +77,7 @@
77
77
  "react-qrcode-logo": "^3.0.0",
78
78
  "react-refresh": "^0.17.0",
79
79
  "react-simplemde-editor": "5.2.0",
80
- "react-spreadsheet-grid": "^2.0.0",
80
+ "react-spreadsheet-grid": "^1.4.3",
81
81
  "react-swipeable-views": "^0.14.0",
82
82
  "rehype-raw": "^6.1.0",
83
83
  "socket.io-client": "^4.7.1",