@varlet/ui 3.3.5 → 3.3.6

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.
@@ -3,5 +3,5 @@ import '../../icon/icon.css'
3
3
  import '../../ripple/ripple.css'
4
4
  import '../../popup/popup.css'
5
5
  import '../actionSheet.css'
6
- import '../ActionItemSfc.css'
7
6
  import '../ActionSheetSfc.css'
7
+ import '../ActionItemSfc.css'
@@ -265,7 +265,7 @@ import './tooltip/style/index.mjs'
265
265
  import './uploader/style/index.mjs'
266
266
  import './watermark/style/index.mjs'
267
267
 
268
- const version = '3.3.5'
268
+ const version = '3.3.6'
269
269
 
270
270
  function install(app) {
271
271
  ActionSheet.install && app.use(ActionSheet)
package/es/index.mjs CHANGED
@@ -176,7 +176,7 @@ export * from './tooltip/index.mjs'
176
176
  export * from './uploader/index.mjs'
177
177
  export * from './watermark/index.mjs'
178
178
 
179
- const version = '3.3.5'
179
+ const version = '3.3.6'
180
180
 
181
181
  function install(app) {
182
182
  ActionSheet.install && app.use(ActionSheet)
@@ -86,7 +86,7 @@ function __render__(_ctx, _cache) {
86
86
  maxlength: _ctx.maxlength,
87
87
  rows: _ctx.rows,
88
88
  enterkeyhint: _ctx.enterkeyhint,
89
- inputmode: _ctx.type === "number" ? "numeric" : void 0,
89
+ inputmode: _ctx.type === "number" ? "decimal" : void 0,
90
90
  style: _normalizeStyle({
91
91
  color: !_ctx.errorMessage ? _ctx.textColor : void 0,
92
92
  caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
@@ -119,7 +119,7 @@ function __render__(_ctx, _cache) {
119
119
  placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
120
120
  maxlength: _ctx.maxlength,
121
121
  enterkeyhint: _ctx.enterkeyhint,
122
- inputmode: _ctx.type === "number" ? "numeric" : void 0,
122
+ inputmode: _ctx.type === "number" ? "decimal" : void 0,
123
123
  style: _normalizeStyle({
124
124
  color: !_ctx.errorMessage ? _ctx.textColor : void 0,
125
125
  caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
@@ -129,6 +129,7 @@ function useValidation() {
129
129
  return true;
130
130
  }
131
131
  const resArr = yield Promise.all(rules.map((rule) => rule(value, apis)));
132
+ resetValidation();
132
133
  return !resArr.some((res) => {
133
134
  if (res !== true) {
134
135
  errorMessage.value = String(res);
package/es/varlet.esm.js CHANGED
@@ -437,14 +437,17 @@ function Ed(e) {
437
437
  }
438
438
  function Yn() {
439
439
  const e = k(""), n = (r, a, i) => qs(this, null, function* () {
440
- return !He(r) || !r.length ? !0 : !(yield Promise.all(r.map((s) => s(a, i)))).some((s) => s !== !0 ? (e.value = String(s), !0) : !1);
441
- });
440
+ if (!He(r) || !r.length)
441
+ return !0;
442
+ const l = yield Promise.all(r.map((s) => s(a, i)));
443
+ return o(), !l.some((s) => s !== !0 ? (e.value = String(s), !0) : !1);
444
+ }), o = () => {
445
+ e.value = "";
446
+ };
442
447
  return {
443
448
  errorMessage: e,
444
449
  validate: n,
445
- resetValidation: () => {
446
- e.value = "";
447
- },
450
+ resetValidation: o,
448
451
  validateWithTrigger: (r, a, i, l, s) => qs(this, null, function* () {
449
452
  r.includes(a) && (yield n(i, l, s)) && (e.value = "");
450
453
  })
@@ -12344,7 +12347,7 @@ function nS(e, n) {
12344
12347
  maxlength: e.maxlength,
12345
12348
  rows: e.rows,
12346
12349
  enterkeyhint: e.enterkeyhint,
12347
- inputmode: e.type === "number" ? "numeric" : void 0,
12350
+ inputmode: e.type === "number" ? "decimal" : void 0,
12348
12351
  style: K({
12349
12352
  color: e.errorMessage ? void 0 : e.textColor,
12350
12353
  caretColor: e.errorMessage ? void 0 : e.focusColor,
@@ -12377,7 +12380,7 @@ function nS(e, n) {
12377
12380
  placeholder: e.hint ? void 0 : e.placeholder,
12378
12381
  maxlength: e.maxlength,
12379
12382
  enterkeyhint: e.enterkeyhint,
12380
- inputmode: e.type === "number" ? "numeric" : void 0,
12383
+ inputmode: e.type === "number" ? "decimal" : void 0,
12381
12384
  style: K({
12382
12385
  color: e.errorMessage ? void 0 : e.textColor,
12383
12386
  caretColor: e.errorMessage ? void 0 : e.focusColor,
@@ -22681,7 +22684,7 @@ te(Ci);
22681
22684
  ue(Ci, lh);
22682
22685
  const DT = Ci;
22683
22686
  var ts = Ci;
22684
- const X8 = "3.3.5";
22687
+ const X8 = "3.3.6";
22685
22688
  function Z8(e) {
22686
22689
  Li.install && e.use(Li), Ri.install && e.use(Ri), Hi.install && e.use(Hi), Yi.install && e.use(Yi), ji.install && e.use(ji), Or.install && e.use(Or), Wi.install && e.use(Wi), Ki.install && e.use(Ki), qi.install && e.use(qi), Gi.install && e.use(Gi), Pn.install && e.use(Pn), Xi.install && e.use(Xi), Zi.install && e.use(Zi), Ji.install && e.use(Ji), lt.install && e.use(lt), Qi.install && e.use(Qi), Tr.install && e.use(Tr), _i.install && e.use(_i), xi.install && e.use(xi), el.install && e.use(el), nl.install && e.use(nl), Nn.install && e.use(Nn), al.install && e.use(al), dl.install && e.use(dl), pl.install && e.use(pl), vl.install && e.use(vl), ml.install && e.use(ml), Nr.install && e.use(Nr), bl.install && e.use(bl), yl.install && e.use(yl), Vt.install && e.use(Vt), kl.install && e.use(kl), $l.install && e.use($l), En.install && e.use(En), Tn.install && e.use(Tn), Ln.install && e.use(Ln), Je.install && e.use(Je), wl.install && e.use(wl), Ft.install && e.use(Ft), Cl.install && e.use(Cl), Sl.install && e.use(Sl), Vr.install && e.use(Vr), It.install && e.use(It), Pl.install && e.use(Pl), zl.install && e.use(zl), it.install && e.use(it), Ol.install && e.use(Ol), Ai.install && e.use(Ai), Tl.install && e.use(Tl), Ut.install && e.use(Ut), Lr.install && e.use(Lr), Rr.install && e.use(Rr), Fr.install && e.use(Fr), El.install && e.use(El), Dl.install && e.use(Dl), Bl.install && e.use(Bl), Il.install && e.use(Il), Po.install && e.use(Po), Ml.install && e.use(Ml), Nl.install && e.use(Nl), Ur.install && e.use(Ur), Al.install && e.use(Al), Vl.install && e.use(Vl), Ll.install && e.use(Ll), tn.install && e.use(tn), Rl.install && e.use(Rl), Fl.install && e.use(Fl), Ul.install && e.use(Ul), Hl.install && e.use(Hl), jl.install && e.use(jl), Wl.install && e.use(Wl), Kl.install && e.use(Kl), ql.install && e.use(ql), ct.install && e.use(ct), Gl.install && e.use(Gl), Lt.install && e.use(Lt), Rt.install && e.use(Rt), Xl.install && e.use(Xl), Zl.install && e.use(Zl), Jl.install && e.use(Jl), Ql.install && e.use(Ql), _l.install && e.use(_l), xl.install && e.use(xl), es.install && e.use(es), ns.install && e.use(ns), Ar.install && e.use(Ar), os.install && e.use(os), ts.install && e.use(ts);
22687
22690
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.3.5",
4
+ "version": "3.3.6",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -3697,7 +3697,7 @@
3697
3697
  },
3698
3698
  {
3699
3699
  "name": "type",
3700
- "description": "Input type, The optional value is `text` `password` `number` `tel`",
3700
+ "description": "Input type, The optional value is `text` `password` `number` `tel` `decimal`",
3701
3701
  "default": "text",
3702
3702
  "value": {
3703
3703
  "type": "string",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.3.5",
4
+ "version": "3.3.6",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -3856,7 +3856,7 @@
3856
3856
  },
3857
3857
  {
3858
3858
  "name": "type",
3859
- "description": "输入框类型, 可选值为 `text` `password` `number` `tel`",
3859
+ "description": "输入框类型, 可选值为 `text` `password` `number` `tel` `decimal`",
3860
3860
  "default": "text",
3861
3861
  "value": {
3862
3862
  "type": "string",
package/lib/varlet.cjs.js CHANGED
@@ -747,6 +747,7 @@ function useValidation() {
747
747
  return true;
748
748
  }
749
749
  const resArr = yield Promise.all(rules.map((rule) => rule(value, apis)));
750
+ resetValidation();
750
751
  return !resArr.some((res) => {
751
752
  if (res !== true) {
752
753
  errorMessage.value = String(res);
@@ -16770,7 +16771,7 @@ function __render__$D(_ctx, _cache) {
16770
16771
  maxlength: _ctx.maxlength,
16771
16772
  rows: _ctx.rows,
16772
16773
  enterkeyhint: _ctx.enterkeyhint,
16773
- inputmode: _ctx.type === "number" ? "numeric" : void 0,
16774
+ inputmode: _ctx.type === "number" ? "decimal" : void 0,
16774
16775
  style: vue.normalizeStyle({
16775
16776
  color: !_ctx.errorMessage ? _ctx.textColor : void 0,
16776
16777
  caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
@@ -16803,7 +16804,7 @@ function __render__$D(_ctx, _cache) {
16803
16804
  placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
16804
16805
  maxlength: _ctx.maxlength,
16805
16806
  enterkeyhint: _ctx.enterkeyhint,
16806
- inputmode: _ctx.type === "number" ? "numeric" : void 0,
16807
+ inputmode: _ctx.type === "number" ? "decimal" : void 0,
16807
16808
  style: vue.normalizeStyle({
16808
16809
  color: !_ctx.errorMessage ? _ctx.textColor : void 0,
16809
16810
  caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
@@ -28937,7 +28938,7 @@ withInstall(stdin_default$1);
28937
28938
  withPropsDefaultsSetter(stdin_default$1, props);
28938
28939
  const _WatermarkComponent = stdin_default$1;
28939
28940
  var stdin_default = stdin_default$1;
28940
- const version = "3.3.5";
28941
+ const version = "3.3.6";
28941
28942
  function install(app) {
28942
28943
  stdin_default$5G.install && app.use(stdin_default$5G);
28943
28944
  stdin_default$5E.install && app.use(stdin_default$5E);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "3.3.5",
3
+ "version": "3.3.6",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -48,9 +48,9 @@
48
48
  "@popperjs/core": "^2.11.6",
49
49
  "dayjs": "^1.10.4",
50
50
  "decimal.js": "^10.2.1",
51
- "@varlet/icons": "3.3.5",
52
- "@varlet/shared": "3.3.5",
53
- "@varlet/use": "3.3.5"
51
+ "@varlet/icons": "3.3.6",
52
+ "@varlet/shared": "3.3.6",
53
+ "@varlet/use": "3.3.6"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@vue/runtime-core": "3.4.21",
@@ -64,9 +64,9 @@
64
64
  "typescript": "^5.1.5",
65
65
  "vue": "3.4.21",
66
66
  "vue-router": "4.2.0",
67
- "@varlet/ui": "3.3.5",
68
- "@varlet/touch-emulator": "3.3.5",
69
- "@varlet/cli": "3.3.5"
67
+ "@varlet/ui": "3.3.6",
68
+ "@varlet/cli": "3.3.6",
69
+ "@varlet/touch-emulator": "3.3.6"
70
70
  },
71
71
  "scripts": {
72
72
  "dev": "varlet-cli dev",