@ichaingo/table 1.4.28 → 1.4.30

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 (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -103,14 +103,14 @@ function je({ onChange: l, filterKey: i }) {
103
103
  f(p), y(p[0].toString()), b(p[1].toString());
104
104
  }, N = (p) => {
105
105
  const x = p.target.value;
106
- if (x === "" || /^\d*\.?\d*$/.test(x) && !x.startsWith(".")) {
106
+ if (x === "" || /^\d*\.?\d{0,8}$/.test(x) && !x.startsWith(".")) {
107
107
  y(x);
108
108
  const T = parseFloat(x) || 0;
109
109
  f([T, d[1]]);
110
110
  }
111
111
  }, R = (p) => {
112
112
  const x = p.target.value;
113
- if (x === "" || /^\d*\.?\d*$/.test(x) && !x.startsWith(".")) {
113
+ if (x === "" || /^\d*\.?\d{0,8}$/.test(x) && !x.startsWith(".")) {
114
114
  b(x);
115
115
  const T = parseFloat(x);
116
116
  f([d[0], T]);
@@ -134,11 +134,11 @@ function je({ onChange: l, filterKey: i }) {
134
134
  /* @__PURE__ */ a("div", { className: "flex flex-row items-center justify-between gap-2 py-3", children: [
135
135
  /* @__PURE__ */ a("fieldset", { className: "w-1/2 h-full", children: [
136
136
  /* @__PURE__ */ e("label", { className: "w-full h-full text-sm", children: /* @__PURE__ */ e(B, { value: "form", parentKey: "common.filter.amount" }) }),
137
- /* @__PURE__ */ e("input", { type: "text", inputMode: "decimal", pattern: "[0-9]*\\.?[0-9]*", onBlur: o, placeholder: A("filter.amount.min"), className: "w-full h-full bg-module text-sm border-1 border-gray-300 rounded p-2 my-2 focus-visible:outline-primary placeholder:text-gray-400", value: k, onChange: N })
137
+ /* @__PURE__ */ e("input", { type: "text", inputMode: "decimal", pattern: "[0-9]*\\.?[0-9]{0,8}", onBlur: o, placeholder: A("filter.amount.min"), className: "w-full h-full bg-module text-sm border-1 border-gray-300 rounded p-2 my-2 focus-visible:outline-primary placeholder:text-gray-400", value: k, onChange: N })
138
138
  ] }),
139
139
  /* @__PURE__ */ a("fieldset", { className: "w-1/2 h-full", children: [
140
140
  /* @__PURE__ */ e("label", { className: "w-full h-full text-sm", children: /* @__PURE__ */ e(B, { value: "to", parentKey: "common.filter.amount" }) }),
141
- /* @__PURE__ */ e("input", { type: "text", inputMode: "decimal", pattern: "[0-9]*\\.?[0-9]*", onBlur: h, placeholder: A("filter.amount.max"), className: "w-full h-full bg-module text-sm border-1 border-gray-300 rounded p-2 my-2 focus-visible:outline-primary placeholder:text-gray-400", value: g, onChange: R })
141
+ /* @__PURE__ */ e("input", { type: "text", inputMode: "decimal", pattern: "[0-9]*\\.?[0-9]{0,8}", onBlur: h, placeholder: A("filter.amount.max"), className: "w-full h-full bg-module text-sm border-1 border-gray-300 rounded p-2 my-2 focus-visible:outline-primary placeholder:text-gray-400", value: g, onChange: R })
142
142
  ] })
143
143
  ] }),
144
144
  /* @__PURE__ */ a("div", { className: " w-full pb-4", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichaingo/table",
3
- "version": "1.4.28",
3
+ "version": "1.4.30",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -33,14 +33,14 @@
33
33
  "antd": "^5.24.2",
34
34
  "ahooks": "^3.8.4",
35
35
  "@radix-ui/react-slider": "^1.3.6",
36
- "@ichaingo/image": "1.4.28",
37
- "@ichaingo/ui": "1.4.28",
38
- "@ichaingo/translation": "1.4.28",
39
- "@ichaingo/empty": "1.4.28",
40
- "@ichaingo/i18n": "1.4.28",
41
- "@ichaingo/iconfont": "1.4.28",
42
- "@ichaingo/loading": "1.4.28",
43
- "@ichaingo/request": "1.4.28",
44
- "@ichaingo/number-like": "1.4.28"
36
+ "@ichaingo/ui": "1.4.30",
37
+ "@ichaingo/empty": "1.4.30",
38
+ "@ichaingo/image": "1.4.30",
39
+ "@ichaingo/i18n": "1.4.30",
40
+ "@ichaingo/loading": "1.4.30",
41
+ "@ichaingo/translation": "1.4.30",
42
+ "@ichaingo/request": "1.4.30",
43
+ "@ichaingo/iconfont": "1.4.30",
44
+ "@ichaingo/number-like": "1.4.30"
45
45
  }
46
46
  }