@updog/data-editor-wc 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.
Files changed (3) hide show
  1. package/LICENSE +4 -2
  2. package/index.js +22 -12
  3. 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 United Arab Emirates. Any disputes arising under this License shall be
236
- subject to the exclusive jurisdiction of the courts of the United Arab Emirates.
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
@@ -39027,17 +39027,27 @@ var dN = ({ source: e }) => {
39027
39027
  })]
39028
39028
  })
39029
39029
  }), xN = ({ filtersResetKey: e }) => {
39030
- let { store: t, scrollToGridTop: n } = Bd(), { t: r } = k(), { filteredErrorCount: i, errorMessageCounts: a } = nl(t), [o, s] = (0, _.useState)(() => new Set(t.getFilters().errorMessageFilters ?? []));
39030
+ let { store: t, scrollToGridTop: n } = Bd(), { t: r } = k(), { filteredErrorCount: i, errorMessageCounts: a } = nl(t), [o, s] = (0, _.useState)(() => new Set(t.getFilters().errorMessageFilters ?? [])), [c, l] = (0, _.useState)(!1);
39031
39031
  (0, _.useEffect)(() => {
39032
- s(new Set(t.getFilters().errorMessageFilters ?? []));
39032
+ s(new Set(t.getFilters().errorMessageFilters ?? [])), l(!1);
39033
39033
  }, [e, t]);
39034
- let c = Object.keys(a), l = c.length > 0 && c.every((e) => o.has(e)), u = c.some((e) => o.has(e)) && !l, d = (0, _.useCallback)((e) => {
39035
- s(e ? new Set(c) : /* @__PURE__ */ new Set()), n(), t.setFilters({ errorMessageFilters: e ? c : [] });
39034
+ let u = Object.keys(a), d = u.length > 0;
39035
+ (0, _.useEffect)(() => {
39036
+ !c || !d || (s(new Set(u)), t.setFilters({ errorMessageFilters: u }), l(!1));
39036
39037
  }, [
39037
39038
  c,
39039
+ d,
39040
+ u,
39041
+ t
39042
+ ]);
39043
+ let f = d && u.every((e) => o.has(e)), p = u.some((e) => o.has(e)), m = d ? f : c, h = d && p && !f, g = (0, _.useCallback)((e) => {
39044
+ l(e), d && (s(e ? new Set(u) : /* @__PURE__ */ new Set()), n(), t.setFilters({ errorMessageFilters: e ? u : [] }));
39045
+ }, [
39046
+ d,
39047
+ u,
39038
39048
  n,
39039
39049
  t
39040
- ]), f = (0, _.useCallback)((e, r) => {
39050
+ ]), v = (0, _.useCallback)((e, r) => {
39041
39051
  s((i) => {
39042
39052
  let a = new Set(i);
39043
39053
  return r ? a.add(e) : a.delete(e), t.setFilters({ errorMessageFilters: [...a] }), n(), a;
@@ -39049,9 +39059,9 @@ var dN = ({ source: e }) => {
39049
39059
  trigger: ({ toggle: e, isOpen: t }) => {
39050
39060
  let n = r(t ? "dataEditor.filters.showLess" : "dataEditor.filters.showMore");
39051
39061
  return /* @__PURE__ */ (0, E.jsx)(Tt, {
39052
- checked: l,
39053
- indeterminate: u,
39054
- onChange: d,
39062
+ checked: m,
39063
+ indeterminate: h,
39064
+ onChange: g,
39055
39065
  checkboxPosition: "start",
39056
39066
  children: /* @__PURE__ */ (0, E.jsxs)("div", {
39057
39067
  className: "updog__error-filter-section__checkbox-label",
@@ -39060,7 +39070,7 @@ var dN = ({ source: e }) => {
39060
39070
  className: "updog__error-filter-section__truncated",
39061
39071
  children: r("dataEditor.filters.rowsWithErrors")
39062
39072
  }),
39063
- c.length > 0 && /* @__PURE__ */ (0, E.jsx)(Ps, {
39073
+ u.length > 0 && /* @__PURE__ */ (0, E.jsx)(Ps, {
39064
39074
  content: n,
39065
39075
  children: /* @__PURE__ */ (0, E.jsx)(nt, {
39066
39076
  variant: "ghost",
@@ -39083,13 +39093,13 @@ var dN = ({ source: e }) => {
39083
39093
  })
39084
39094
  });
39085
39095
  },
39086
- content: c.length > 0 && /* @__PURE__ */ (0, E.jsx)("div", {
39096
+ content: u.length > 0 && /* @__PURE__ */ (0, E.jsx)("div", {
39087
39097
  className: "updog__error-filter-section__children",
39088
- children: c.map((e) => /* @__PURE__ */ (0, E.jsx)(bN, {
39098
+ children: u.map((e) => /* @__PURE__ */ (0, E.jsx)(bN, {
39089
39099
  message: e,
39090
39100
  count: a[e] ?? 0,
39091
39101
  checked: o.has(e),
39092
- onChange: f
39102
+ onChange: v
39093
39103
  }, e))
39094
39104
  })
39095
39105
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@updog/data-editor-wc",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
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",