@updog/data-editor 0.1.17 → 0.1.18
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/LICENSE +4 -2
- package/index.js +22 -12
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -232,8 +232,10 @@ Sections 5, 8, 11, 12, and 14 survive termination of this License.
|
|
|
232
232
|
--------------------------------------------------------------------------------
|
|
233
233
|
|
|
234
234
|
This License shall be governed by and construed in accordance with the laws of
|
|
235
|
-
the
|
|
236
|
-
|
|
235
|
+
the Dubai International Financial Centre (DIFC), as applied by the DIFC Courts.
|
|
236
|
+
Any dispute arising out of or in connection with this License, including any
|
|
237
|
+
question regarding its existence, validity, or termination, shall be subject to
|
|
238
|
+
the exclusive jurisdiction of the courts of the DIFC.
|
|
237
239
|
|
|
238
240
|
--------------------------------------------------------------------------------
|
|
239
241
|
15. EXPORT COMPLIANCE
|
package/index.js
CHANGED
|
@@ -22104,17 +22104,27 @@ var KS = ({ source: e }) => {
|
|
|
22104
22104
|
})]
|
|
22105
22105
|
})
|
|
22106
22106
|
}), nC = ({ filtersResetKey: e }) => {
|
|
22107
|
-
let { store: t, scrollToGridTop: n } = X(), { t: r } = q(), { filteredErrorCount: i, errorMessageCounts: a } = Mo(t), [o, s] = b(() => new Set(t.getFilters().errorMessageFilters ?? []));
|
|
22107
|
+
let { store: t, scrollToGridTop: n } = X(), { t: r } = q(), { filteredErrorCount: i, errorMessageCounts: a } = Mo(t), [o, s] = b(() => new Set(t.getFilters().errorMessageFilters ?? [])), [c, l] = b(!1);
|
|
22108
22108
|
m(() => {
|
|
22109
|
-
s(new Set(t.getFilters().errorMessageFilters ?? []));
|
|
22109
|
+
s(new Set(t.getFilters().errorMessageFilters ?? [])), l(!1);
|
|
22110
22110
|
}, [e, t]);
|
|
22111
|
-
let
|
|
22112
|
-
|
|
22111
|
+
let u = Object.keys(a), d = u.length > 0;
|
|
22112
|
+
m(() => {
|
|
22113
|
+
!c || !d || (s(new Set(u)), t.setFilters({ errorMessageFilters: u }), l(!1));
|
|
22113
22114
|
}, [
|
|
22114
22115
|
c,
|
|
22116
|
+
d,
|
|
22117
|
+
u,
|
|
22118
|
+
t
|
|
22119
|
+
]);
|
|
22120
|
+
let p = d && u.every((e) => o.has(e)), h = u.some((e) => o.has(e)), g = d ? p : c, _ = d && h && !p, v = f((e) => {
|
|
22121
|
+
l(e), d && (s(e ? new Set(u) : /* @__PURE__ */ new Set()), n(), t.setFilters({ errorMessageFilters: e ? u : [] }));
|
|
22122
|
+
}, [
|
|
22123
|
+
d,
|
|
22124
|
+
u,
|
|
22115
22125
|
n,
|
|
22116
22126
|
t
|
|
22117
|
-
]),
|
|
22127
|
+
]), y = f((e, r) => {
|
|
22118
22128
|
s((i) => {
|
|
22119
22129
|
let a = new Set(i);
|
|
22120
22130
|
return r ? a.add(e) : a.delete(e), t.setFilters({ errorMessageFilters: [...a] }), n(), a;
|
|
@@ -22126,9 +22136,9 @@ var KS = ({ source: e }) => {
|
|
|
22126
22136
|
trigger: ({ toggle: e, isOpen: t }) => {
|
|
22127
22137
|
let n = r(t ? "dataEditor.filters.showLess" : "dataEditor.filters.showMore");
|
|
22128
22138
|
return /* @__PURE__ */ C(Ni, {
|
|
22129
|
-
checked:
|
|
22130
|
-
indeterminate:
|
|
22131
|
-
onChange:
|
|
22139
|
+
checked: g,
|
|
22140
|
+
indeterminate: _,
|
|
22141
|
+
onChange: v,
|
|
22132
22142
|
checkboxPosition: "start",
|
|
22133
22143
|
children: /* @__PURE__ */ w("div", {
|
|
22134
22144
|
className: "updog__error-filter-section__checkbox-label",
|
|
@@ -22137,7 +22147,7 @@ var KS = ({ source: e }) => {
|
|
|
22137
22147
|
className: "updog__error-filter-section__truncated",
|
|
22138
22148
|
children: r("dataEditor.filters.rowsWithErrors")
|
|
22139
22149
|
}),
|
|
22140
|
-
|
|
22150
|
+
u.length > 0 && /* @__PURE__ */ C(la, {
|
|
22141
22151
|
content: n,
|
|
22142
22152
|
children: /* @__PURE__ */ C(ui, {
|
|
22143
22153
|
variant: "ghost",
|
|
@@ -22160,13 +22170,13 @@ var KS = ({ source: e }) => {
|
|
|
22160
22170
|
})
|
|
22161
22171
|
});
|
|
22162
22172
|
},
|
|
22163
|
-
content:
|
|
22173
|
+
content: u.length > 0 && /* @__PURE__ */ C("div", {
|
|
22164
22174
|
className: "updog__error-filter-section__children",
|
|
22165
|
-
children:
|
|
22175
|
+
children: u.map((e) => /* @__PURE__ */ C(tC, {
|
|
22166
22176
|
message: e,
|
|
22167
22177
|
count: a[e] ?? 0,
|
|
22168
22178
|
checked: o.has(e),
|
|
22169
|
-
onChange:
|
|
22179
|
+
onChange: y
|
|
22170
22180
|
}, e))
|
|
22171
22181
|
})
|
|
22172
22182
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@updog/data-editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
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",
|