@updog/data-editor 0.1.34 → 0.1.35

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.
Files changed (3) hide show
  1. package/index.d.ts +1 -2
  2. package/index.js +21 -24
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -487,8 +487,7 @@ declare var export_default = {
487
487
  text: "Review how imported values map to your column options. Adjust any mappings that need a different match.",
488
488
  importedValues: "Imported values",
489
489
  targetValue: "Target value",
490
- fullyMatched: "All matched",
491
- unmatchedCount: "{{matched}}/{{total}} matched",
490
+ unmatchedCount: "{{count}} unmatched",
492
491
  selectValuePlaceholder: "Select value",
493
492
  showMatched: "Show matched",
494
493
  allMatched: "All values are matched",
package/index.js CHANGED
@@ -462,8 +462,7 @@ var Ur = {
462
462
  text: "Review how imported values map to your column options. Adjust any mappings that need a different match.",
463
463
  importedValues: "Imported values",
464
464
  targetValue: "Target value",
465
- fullyMatched: "All matched",
466
- unmatchedCount: "{{matched}}/{{total}} matched",
465
+ unmatchedCount: "{{count}} unmatched",
467
466
  selectValuePlaceholder: "Select value",
468
467
  showMatched: "Show matched",
469
468
  allMatched: "All values are matched",
@@ -24117,25 +24116,26 @@ var zC = ({ text: e, onSelect: t }) => /* @__PURE__ */ S(X, {
24117
24116
  children: /* @__PURE__ */ C("div", {
24118
24117
  className: "updog__column-matching__header-content",
24119
24118
  children: [
24120
- /* @__PURE__ */ S(Y, {
24121
- as: "div",
24122
- size: "sm",
24123
- weight: "medium",
24124
- className: "updog__column-matching__header-column",
24125
- children: r("dataEditor.uploader.matchColumns.importedColumns")
24126
- }),
24127
- /* @__PURE__ */ S("div", { className: "updog__column-matching__header-spacer" }),
24128
24119
  /* @__PURE__ */ C("div", {
24129
24120
  className: "updog__column-matching__header-column updog__column-matching__header-column--with-items",
24130
24121
  children: [/* @__PURE__ */ S(Y, {
24122
+ as: "div",
24131
24123
  size: "sm",
24132
24124
  weight: "medium",
24133
- children: r("dataEditor.uploader.matchColumns.targetColumns")
24125
+ children: r("dataEditor.uploader.matchColumns.importedColumns")
24134
24126
  }), T > 0 && /* @__PURE__ */ S(ka, {
24135
24127
  color: "yellow",
24136
24128
  text: r("dataEditor.uploader.matchColumns.unmatchedCount", { count: T })
24137
24129
  })]
24138
24130
  }),
24131
+ /* @__PURE__ */ S("div", { className: "updog__column-matching__header-spacer" }),
24132
+ /* @__PURE__ */ S(Y, {
24133
+ as: "div",
24134
+ size: "sm",
24135
+ weight: "medium",
24136
+ className: "updog__column-matching__header-column",
24137
+ children: r("dataEditor.uploader.matchColumns.targetColumns")
24138
+ }),
24139
24139
  /* @__PURE__ */ S("div", { className: "updog__column-matching__action" })
24140
24140
  ]
24141
24141
  })
@@ -24248,7 +24248,7 @@ var zC = ({ text: e, onSelect: t }) => /* @__PURE__ */ S(X, {
24248
24248
  return /* @__PURE__ */ S("div", {
24249
24249
  className: "updog__value-matching",
24250
24250
  children: h.map((e) => {
24251
- let n = e.values.filter((e) => e.mapped !== void 0).length, r = e.values.length, i = n === r, a = e.values.filter((t) => (s[e.columnId] ?? !0) || t.mapped === void 0), u = l[e.columnId] ?? !1;
24251
+ let n = e.values.filter((e) => e.mapped === void 0).length, r = e.values.filter((t) => (s[e.columnId] ?? !0) || t.mapped === void 0), i = l[e.columnId] ?? !1;
24252
24252
  return /* @__PURE__ */ C("div", {
24253
24253
  className: "updog__value-matching__section",
24254
24254
  children: [/* @__PURE__ */ C("header", {
@@ -24263,12 +24263,9 @@ var zC = ({ text: e, onSelect: t }) => /* @__PURE__ */ S(X, {
24263
24263
  size: "sm",
24264
24264
  weight: "medium",
24265
24265
  children: e.columnTitle
24266
- }), /* @__PURE__ */ S(ka, {
24267
- color: i ? "green" : "yellow",
24268
- text: i ? t("dataEditor.uploader.matchValues.fullyMatched") : t("dataEditor.uploader.matchValues.unmatchedCount", {
24269
- matched: n,
24270
- total: r
24271
- })
24266
+ }), n > 0 && /* @__PURE__ */ S(ka, {
24267
+ color: "yellow",
24268
+ text: t("dataEditor.uploader.matchValues.unmatchedCount", { count: n })
24272
24269
  })]
24273
24270
  }), /* @__PURE__ */ S(Ni, {
24274
24271
  checked: s[e.columnId] ?? !0,
@@ -24284,23 +24281,23 @@ var zC = ({ text: e, onSelect: t }) => /* @__PURE__ */ S(X, {
24284
24281
  }), /* @__PURE__ */ S(ua, {
24285
24282
  content: /* @__PURE__ */ S(Y, {
24286
24283
  size: "sm",
24287
- children: t(u ? "dataEditor.common.expand" : "dataEditor.common.collapse")
24284
+ children: t(i ? "dataEditor.common.expand" : "dataEditor.common.collapse")
24288
24285
  }),
24289
24286
  placement: "bottom-end",
24290
24287
  children: /* @__PURE__ */ S(Z, {
24291
24288
  variant: "ghost",
24292
24289
  color: "neutral",
24293
24290
  className: "updog__value-matching__collapse-btn",
24294
- "aria-label": t(u ? "dataEditor.common.expand" : "dataEditor.common.collapse"),
24291
+ "aria-label": t(i ? "dataEditor.common.expand" : "dataEditor.common.collapse"),
24295
24292
  onClick: () => m(e.columnId),
24296
- children: /* @__PURE__ */ S(L, { className: T("updog__value-matching__collapse-icon", u && "updog__value-matching__collapse-icon--collapsed") })
24293
+ children: /* @__PURE__ */ S(L, { className: T("updog__value-matching__collapse-icon", i && "updog__value-matching__collapse-icon--collapsed") })
24297
24294
  })
24298
24295
  })]
24299
24296
  }), /* @__PURE__ */ S("div", {
24300
- className: T("updog__value-matching__collapsible", !u && "updog__value-matching__collapsible--expanded"),
24297
+ className: T("updog__value-matching__collapsible", !i && "updog__value-matching__collapsible--expanded"),
24301
24298
  children: /* @__PURE__ */ C("div", {
24302
24299
  className: "updog__value-matching__table",
24303
- children: [a.length === 0 ? /* @__PURE__ */ S("div", {
24300
+ children: [r.length === 0 ? /* @__PURE__ */ S("div", {
24304
24301
  className: "updog__value-matching__empty",
24305
24302
  children: /* @__PURE__ */ S(Y, {
24306
24303
  size: "sm",
@@ -24327,7 +24324,7 @@ var zC = ({ text: e, onSelect: t }) => /* @__PURE__ */ S(X, {
24327
24324
  }),
24328
24325
  /* @__PURE__ */ S("div", { className: "updog__value-matching__action" })
24329
24326
  ]
24330
- }), a.map((n) => /* @__PURE__ */ C("div", {
24327
+ }), r.map((n) => /* @__PURE__ */ C("div", {
24331
24328
  className: "updog__value-matching__row",
24332
24329
  children: [
24333
24330
  /* @__PURE__ */ S("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@updog/data-editor",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "description": "Client-side CSV importer and spreadsheet editor SDK for React. Import CSV, Excel, JSON, TSV, and XML, match columns, validate, and edit 1M+ rows entirely in the browser.",
5
5
  "author": "Mikhail Kutateladze <admin@updog.tech>",
6
6
  "homepage": "https://updog.tech",