@wx-design/components 1.1.19 → 1.1.20

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/es/index.mjs CHANGED
@@ -17909,7 +17909,7 @@ const EC = "$__table_id", SC = "$__table_parent", bs = (e, t) => {
17909
17909
  row: d,
17910
17910
  ...u
17911
17911
  }) => {
17912
- var x, b, O;
17912
+ var x, b, O, D;
17913
17913
  if (typeof t.filterMethod == "function")
17914
17914
  return t.filterMethod({
17915
17915
  option: c,
@@ -17923,25 +17923,25 @@ const EC = "$__table_id", SC = "$__table_parent", bs = (e, t) => {
17923
17923
  ...u
17924
17924
  });
17925
17925
  const f = A(() => {
17926
- var D, v, g, E;
17927
- return (D = t == null ? void 0 : t.headerFilterConfig) != null && D.extendFromColumnEditor ? ko(
17926
+ var v, g, E, w;
17927
+ return (v = t == null ? void 0 : t.headerFilterConfig) != null && v.extendFromColumnEditor ? ko(
17928
17928
  // @ts-ignore
17929
- t.editorProps || ((v = t.editRender) == null ? void 0 : v.editorProps) || {},
17930
- ((g = t.headerFilterConfig) == null ? void 0 : g.editorProps) || {}
17931
- ) : (E = t == null ? void 0 : t.headerFilterConfig) == null ? void 0 : E.editorProps;
17929
+ t.editorProps || ((g = t.editRender) == null ? void 0 : g.editorProps) || {},
17930
+ ((E = t.headerFilterConfig) == null ? void 0 : E.editorProps) || {}
17931
+ ) : (w = t == null ? void 0 : t.headerFilterConfig) == null ? void 0 : w.editorProps;
17932
17932
  }), p = c.data ?? c.value;
17933
17933
  if (typeof p < "u" && t.field) {
17934
- let D = ((O = d[((b = f.value) == null ? void 0 : b.effectValueField) || t.field]) == null ? void 0 : O.toString().toLowerCase()) || "";
17934
+ let v = ((O = d[((b = f.value) == null ? void 0 : b.effectValueField) || t.field]) == null ? void 0 : O.toString().toLowerCase()) || "";
17935
17935
  if (Array.isArray(p)) {
17936
- for (let v of p)
17937
- if (D.includes(v == null ? void 0 : v.toString().toLowerCase()))
17936
+ for (let g of p)
17937
+ if (v.includes(g == null ? void 0 : g.toString().toLowerCase()))
17938
17938
  return !0;
17939
- if (t.sabCellType === Nn.DatePciker && p.length === 2) {
17940
- let [v, g] = p;
17941
- return v = new Date(v), g = new Date(g), D = new Date(D), D >= v && D <= g;
17939
+ if ((t.sabCellType === Nn.DatePciker || ((D = t.headerFilterConfig) == null ? void 0 : D.sabCellType) === Nn.DatePciker) && p.length === 2) {
17940
+ let [g, E] = p;
17941
+ return g = new Date(g), E = new Date(E), v = new Date(v), v >= g && v <= E;
17942
17942
  }
17943
17943
  }
17944
- return D.includes(p == null ? void 0 : p.toString().toLowerCase());
17944
+ return v.includes(p == null ? void 0 : p.toString().toLowerCase());
17945
17945
  }
17946
17946
  return !0;
17947
17947
  };