@updog/data-editor-wc 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.
- package/index.d.ts +1 -2
- package/index.js +21 -24
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -485,8 +485,7 @@ declare var export_default = {
|
|
|
485
485
|
text: "Review how imported values map to your column options. Adjust any mappings that need a different match.",
|
|
486
486
|
importedValues: "Imported values",
|
|
487
487
|
targetValue: "Target value",
|
|
488
|
-
|
|
489
|
-
unmatchedCount: "{{matched}}/{{total}} matched",
|
|
488
|
+
unmatchedCount: "{{count}} unmatched",
|
|
490
489
|
selectValuePlaceholder: "Select value",
|
|
491
490
|
showMatched: "Show matched",
|
|
492
491
|
allMatched: "All values are matched",
|
package/index.js
CHANGED
|
@@ -8453,8 +8453,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
8453
8453
|
text: "Review how imported values map to your column options. Adjust any mappings that need a different match.",
|
|
8454
8454
|
importedValues: "Imported values",
|
|
8455
8455
|
targetValue: "Target value",
|
|
8456
|
-
|
|
8457
|
-
unmatchedCount: "{{matched}}/{{total}} matched",
|
|
8456
|
+
unmatchedCount: "{{count}} unmatched",
|
|
8458
8457
|
selectValuePlaceholder: "Select value",
|
|
8459
8458
|
showMatched: "Show matched",
|
|
8460
8459
|
allMatched: "All values are matched",
|
|
@@ -42906,25 +42905,26 @@ var dL = /* @__PURE__ */ c(yP(), 1), fL = () => {
|
|
|
42906
42905
|
children: /* @__PURE__ */ (0, E.jsxs)("div", {
|
|
42907
42906
|
className: "updog__column-matching__header-content",
|
|
42908
42907
|
children: [
|
|
42909
|
-
/* @__PURE__ */ (0, E.jsx)(W, {
|
|
42910
|
-
as: "div",
|
|
42911
|
-
size: "sm",
|
|
42912
|
-
weight: "medium",
|
|
42913
|
-
className: "updog__column-matching__header-column",
|
|
42914
|
-
children: r("dataEditor.uploader.matchColumns.importedColumns")
|
|
42915
|
-
}),
|
|
42916
|
-
/* @__PURE__ */ (0, E.jsx)("div", { className: "updog__column-matching__header-spacer" }),
|
|
42917
42908
|
/* @__PURE__ */ (0, E.jsxs)("div", {
|
|
42918
42909
|
className: "updog__column-matching__header-column updog__column-matching__header-column--with-items",
|
|
42919
42910
|
children: [/* @__PURE__ */ (0, E.jsx)(W, {
|
|
42911
|
+
as: "div",
|
|
42920
42912
|
size: "sm",
|
|
42921
42913
|
weight: "medium",
|
|
42922
|
-
children: r("dataEditor.uploader.matchColumns.
|
|
42914
|
+
children: r("dataEditor.uploader.matchColumns.importedColumns")
|
|
42923
42915
|
}), b > 0 && /* @__PURE__ */ (0, E.jsx)(rc, {
|
|
42924
42916
|
color: "yellow",
|
|
42925
42917
|
text: r("dataEditor.uploader.matchColumns.unmatchedCount", { count: b })
|
|
42926
42918
|
})]
|
|
42927
42919
|
}),
|
|
42920
|
+
/* @__PURE__ */ (0, E.jsx)("div", { className: "updog__column-matching__header-spacer" }),
|
|
42921
|
+
/* @__PURE__ */ (0, E.jsx)(W, {
|
|
42922
|
+
as: "div",
|
|
42923
|
+
size: "sm",
|
|
42924
|
+
weight: "medium",
|
|
42925
|
+
className: "updog__column-matching__header-column",
|
|
42926
|
+
children: r("dataEditor.uploader.matchColumns.targetColumns")
|
|
42927
|
+
}),
|
|
42928
42928
|
/* @__PURE__ */ (0, E.jsx)("div", { className: "updog__column-matching__action" })
|
|
42929
42929
|
]
|
|
42930
42930
|
})
|
|
@@ -43037,7 +43037,7 @@ var dL = /* @__PURE__ */ c(yP(), 1), fL = () => {
|
|
|
43037
43037
|
return /* @__PURE__ */ (0, E.jsx)("div", {
|
|
43038
43038
|
className: "updog__value-matching",
|
|
43039
43039
|
children: p.map((e) => {
|
|
43040
|
-
let n = e.values.filter((e) => e.mapped
|
|
43040
|
+
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;
|
|
43041
43041
|
return /* @__PURE__ */ (0, E.jsxs)("div", {
|
|
43042
43042
|
className: "updog__value-matching__section",
|
|
43043
43043
|
children: [/* @__PURE__ */ (0, E.jsxs)("header", {
|
|
@@ -43052,12 +43052,9 @@ var dL = /* @__PURE__ */ c(yP(), 1), fL = () => {
|
|
|
43052
43052
|
size: "sm",
|
|
43053
43053
|
weight: "medium",
|
|
43054
43054
|
children: e.columnTitle
|
|
43055
|
-
}), /* @__PURE__ */ (0, E.jsx)(rc, {
|
|
43056
|
-
color:
|
|
43057
|
-
text:
|
|
43058
|
-
matched: n,
|
|
43059
|
-
total: r
|
|
43060
|
-
})
|
|
43055
|
+
}), n > 0 && /* @__PURE__ */ (0, E.jsx)(rc, {
|
|
43056
|
+
color: "yellow",
|
|
43057
|
+
text: t("dataEditor.uploader.matchValues.unmatchedCount", { count: n })
|
|
43061
43058
|
})]
|
|
43062
43059
|
}), /* @__PURE__ */ (0, E.jsx)(Ot, {
|
|
43063
43060
|
checked: s[e.columnId] ?? !0,
|
|
@@ -43073,23 +43070,23 @@ var dL = /* @__PURE__ */ c(yP(), 1), fL = () => {
|
|
|
43073
43070
|
}), /* @__PURE__ */ (0, E.jsx)(Rs, {
|
|
43074
43071
|
content: /* @__PURE__ */ (0, E.jsx)(W, {
|
|
43075
43072
|
size: "sm",
|
|
43076
|
-
children: t(
|
|
43073
|
+
children: t(i ? "dataEditor.common.expand" : "dataEditor.common.collapse")
|
|
43077
43074
|
}),
|
|
43078
43075
|
placement: "bottom-end",
|
|
43079
43076
|
children: /* @__PURE__ */ (0, E.jsx)(at, {
|
|
43080
43077
|
variant: "ghost",
|
|
43081
43078
|
color: "neutral",
|
|
43082
43079
|
className: "updog__value-matching__collapse-btn",
|
|
43083
|
-
"aria-label": t(
|
|
43080
|
+
"aria-label": t(i ? "dataEditor.common.expand" : "dataEditor.common.collapse"),
|
|
43084
43081
|
onClick: () => f(e.columnId),
|
|
43085
|
-
children: /* @__PURE__ */ (0, E.jsx)(ie, { className: j("updog__value-matching__collapse-icon",
|
|
43082
|
+
children: /* @__PURE__ */ (0, E.jsx)(ie, { className: j("updog__value-matching__collapse-icon", i && "updog__value-matching__collapse-icon--collapsed") })
|
|
43086
43083
|
})
|
|
43087
43084
|
})]
|
|
43088
43085
|
}), /* @__PURE__ */ (0, E.jsx)("div", {
|
|
43089
|
-
className: j("updog__value-matching__collapsible", !
|
|
43086
|
+
className: j("updog__value-matching__collapsible", !i && "updog__value-matching__collapsible--expanded"),
|
|
43090
43087
|
children: /* @__PURE__ */ (0, E.jsxs)("div", {
|
|
43091
43088
|
className: "updog__value-matching__table",
|
|
43092
|
-
children: [
|
|
43089
|
+
children: [r.length === 0 ? /* @__PURE__ */ (0, E.jsx)("div", {
|
|
43093
43090
|
className: "updog__value-matching__empty",
|
|
43094
43091
|
children: /* @__PURE__ */ (0, E.jsx)(W, {
|
|
43095
43092
|
size: "sm",
|
|
@@ -43116,7 +43113,7 @@ var dL = /* @__PURE__ */ c(yP(), 1), fL = () => {
|
|
|
43116
43113
|
}),
|
|
43117
43114
|
/* @__PURE__ */ (0, E.jsx)("div", { className: "updog__value-matching__action" })
|
|
43118
43115
|
]
|
|
43119
|
-
}),
|
|
43116
|
+
}), r.map((n) => /* @__PURE__ */ (0, E.jsxs)("div", {
|
|
43120
43117
|
className: "updog__value-matching__row",
|
|
43121
43118
|
children: [
|
|
43122
43119
|
/* @__PURE__ */ (0, E.jsx)("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@updog/data-editor-wc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "Client-side CSV importer and spreadsheet editor SDK as a Web Component. Drop into Vue, Angular, Svelte, or vanilla JS. Import CSV, Excel, JSON; edit 1M+ rows entirely in the browser.",
|
|
5
5
|
"author": "Mikhail Kutateladze <admin@updog.tech>",
|
|
6
6
|
"homepage": "https://updog.tech",
|