@bigbinary/neeto-tags-frontend 0.0.36 → 0.0.38

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.js CHANGED
@@ -3421,6 +3421,8 @@ var editItem = "Edit {{what}}";
3421
3421
  var createSuccess = "Tag created successfully.";
3422
3422
  var updateSuccess = "Tag updated successfully.";
3423
3423
  var deleteSuccess = "Tag deleted successfully.";
3424
+ var tagsWithCount_one = "{{count}} {{type}} tag";
3425
+ var tagsWithCount_other = "{{count}} {{type}} tags";
3424
3426
  var types = {
3425
3427
  string: "string"
3426
3428
  };
@@ -3468,6 +3470,8 @@ var en = {
3468
3470
  createSuccess: createSuccess,
3469
3471
  updateSuccess: updateSuccess,
3470
3472
  deleteSuccess: deleteSuccess,
3473
+ tagsWithCount_one: tagsWithCount_one,
3474
+ tagsWithCount_other: tagsWithCount_other,
3471
3475
  types: types,
3472
3476
  merge: merge$1
3473
3477
  };
@@ -3636,7 +3640,6 @@ var renderColumnData = function renderColumnData(columns, handleEdit, handleDele
3636
3640
  return handleEdit(tag);
3637
3641
  }
3638
3642
  }, instance.t("edit")), /*#__PURE__*/React.createElement(MenuItem.Button, {
3639
- style: "danger",
3640
3643
  "data-cy": "tags-delete-button",
3641
3644
  onClick: function onClick() {
3642
3645
  return handleDelete(tag);
@@ -7178,7 +7181,7 @@ var EmptyState = function EmptyState(_ref) {
7178
7181
  };
7179
7182
 
7180
7183
  var Dashboard = function Dashboard(_ref) {
7181
- var _data$tags2, _data$tags3, _data$tags4;
7184
+ var _data$tags2, _tagType$label;
7182
7185
 
7183
7186
  var breadcrumbs = _ref.breadcrumbs,
7184
7187
  createTags = _ref.createTags,
@@ -7342,7 +7345,10 @@ var Dashboard = function Dashboard(_ref) {
7342
7345
  leftActionBlock: /*#__PURE__*/React.createElement(Typography, {
7343
7346
  component: "h4",
7344
7347
  className: "neeto-ui-gray-800 font-semibold"
7345
- }, "".concat(data === null || data === void 0 ? void 0 : (_data$tags3 = data.tags) === null || _data$tags3 === void 0 ? void 0 : _data$tags3.length, " ").concat(tagType.label, " tag(s)"))
7348
+ }, t("tagsWithCount", {
7349
+ count: data === null || data === void 0 ? void 0 : data.totalCount,
7350
+ type: (_tagType$label = tagType.label) === null || _tagType$label === void 0 ? void 0 : _tagType$label.toLowerCase()
7351
+ }))
7346
7352
  }), /*#__PURE__*/React.createElement("div", {
7347
7353
  className: "neeto-tags--table__wrapper"
7348
7354
  }, /*#__PURE__*/React.createElement(Table, {
@@ -7352,7 +7358,7 @@ var Dashboard = function Dashboard(_ref) {
7352
7358
  defaultPageSize: DEFAULT_PAGE_SIZE,
7353
7359
  currentPageNumber: pageIndex,
7354
7360
  handlePageChange: setPageIndex,
7355
- totalCount: data === null || data === void 0 ? void 0 : (_data$tags4 = data.tags) === null || _data$tags4 === void 0 ? void 0 : _data$tags4.length,
7361
+ totalCount: data === null || data === void 0 ? void 0 : data.totalCount,
7356
7362
  allowRowClick: onTagRowClick,
7357
7363
  onRowClick: function onRowClick(event, record, rowIndex) {
7358
7364
  return onTagRowClick({