z-vue-design 0.0.44 → 0.0.46

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.
@@ -1,6 +1,5 @@
1
1
  import { defineComponent as V, computed as m, onBeforeMount as F, ref as v, watch as L, onMounted as A, nextTick as O, createVNode as h, useModel as W, resolveComponent as X, createBlock as j, openBlock as R, mergeProps as K } from "vue";
2
- import { r as N, A as U, T as G, _ as w, x as Z, D as Q, E as q, P as a, u as J, h as Y, d as k, W as ii, b as p, L as ni, G as f, t as ei, l as b, z as ci } from "./index-BbnfunXb.mjs";
3
- import { o as ai, K as C } from "./KeyCode-CehThJSs.mjs";
2
+ import { v as N, D as U, T as G, _ as w, y as Z, E as Q, G as q, P as a, u as J, h as Y, d as k, W as ii, b as p, o as ni, L as ei, H as f, t as ci, K as b, l as C, A as ai } from "./index-QQhQzbiW.mjs";
4
3
  const ti = (i) => {
5
4
  const {
6
5
  componentCls: n
@@ -259,7 +258,7 @@ const ti = (i) => {
259
258
  // small style
260
259
  ti(r)
261
260
  ];
262
- }), hi = ei("small", "default"), ui = () => ({
261
+ }), hi = ci("small", "default"), ui = () => ({
263
262
  id: String,
264
263
  prefixCls: String,
265
264
  size: a.oneOf(hi),
@@ -320,7 +319,7 @@ const ti = (i) => {
320
319
  return (c = i.disabled) !== null && c !== void 0 ? c : x.value;
321
320
  });
322
321
  F(() => {
323
- b(!("defaultChecked" in e), "Switch", "'defaultChecked' is deprecated, please use 'v-model:checked'"), b(!("value" in e), "Switch", "`value` is not validate prop, do you mean `checked`?");
322
+ C(!("defaultChecked" in e), "Switch", "'defaultChecked' is deprecated, please use 'v-model:checked'"), C(!("value" in e), "Switch", "`value` is not validate prop, do you mean `checked`?");
324
323
  });
325
324
  const S = v(i.checked !== void 0 ? i.checked : e.defaultChecked), I = m(() => S.value === i.checkedValue);
326
325
  L(() => i.checked, () => {
@@ -330,7 +329,7 @@ const ti = (i) => {
330
329
  prefixCls: l,
331
330
  direction: y,
332
331
  size: P
333
- } = k("switch", i), [z, E] = oi(l), u = v(), M = () => {
332
+ } = k("switch", i), [z, H] = oi(l), u = v(), M = () => {
334
333
  var c;
335
334
  (c = u.value) === null || c === void 0 || c.focus();
336
335
  };
@@ -347,14 +346,14 @@ const ti = (i) => {
347
346
  });
348
347
  const $ = (c, o) => {
349
348
  g.value || (d("update:checked", c), d("change", c, o), r.onFieldChange());
350
- }, H = (c) => {
349
+ }, E = (c) => {
351
350
  d("blur", c);
352
351
  }, _ = (c) => {
353
352
  M();
354
353
  const o = I.value ? i.unCheckedValue : i.checkedValue;
355
354
  $(o, c), d("click", o, c);
356
355
  }, T = (c) => {
357
- c.keyCode === C.LEFT ? $(i.unCheckedValue, c) : c.keyCode === C.RIGHT && $(i.checkedValue, c), d("keydown", c);
356
+ c.keyCode === b.LEFT ? $(i.unCheckedValue, c) : c.keyCode === b.RIGHT && $(i.checkedValue, c), d("keydown", c);
358
357
  }, D = (c) => {
359
358
  var o;
360
359
  (o = u.value) === null || o === void 0 || o.blur(), d("mouseup", c);
@@ -365,16 +364,16 @@ const ti = (i) => {
365
364
  [`${l.value}-disabled`]: g.value,
366
365
  [l.value]: !0,
367
366
  [`${l.value}-rtl`]: y.value === "rtl",
368
- [E.value]: !0
367
+ [H.value]: !0
369
368
  }));
370
369
  return () => {
371
370
  var c;
372
371
  return z(h(ii, null, {
373
- default: () => [h("button", p(p(p({}, ai(i, ["prefixCls", "checkedChildren", "unCheckedChildren", "checked", "autofocus", "checkedValue", "unCheckedValue", "id", "onChange", "onUpdate:checked"])), e), {}, {
372
+ default: () => [h("button", p(p(p({}, ni(i, ["prefixCls", "checkedChildren", "unCheckedChildren", "checked", "autofocus", "checkedValue", "unCheckedValue", "id", "onChange", "onUpdate:checked"])), e), {}, {
374
373
  id: (c = i.id) !== null && c !== void 0 ? c : r.id.value,
375
374
  onKeydown: T,
376
375
  onClick: _,
377
- onBlur: H,
376
+ onBlur: E,
378
377
  onMouseup: D,
379
378
  type: "button",
380
379
  role: "switch",
@@ -384,7 +383,7 @@ const ti = (i) => {
384
383
  ref: u
385
384
  }), [h("div", {
386
385
  class: `${l.value}-handle`
387
- }, [i.loading ? h(ni, {
386
+ }, [i.loading ? h(ei, {
388
387
  class: `${l.value}-loading-icon`
389
388
  }, null) : null]), h("span", {
390
389
  class: `${l.value}-inner`
@@ -417,7 +416,7 @@ const ti = (i) => {
417
416
  }, e.$attrs), null, 16, ["checked"]);
418
417
  };
419
418
  }
420
- }), vi = /* @__PURE__ */ ci($i, [["__scopeId", "data-v-db05950a"]]);
419
+ }), Mi = /* @__PURE__ */ ai($i, [["__scopeId", "data-v-db05950a"]]);
421
420
  export {
422
- vi as default
421
+ Mi as default
423
422
  };
@@ -1,7 +1,7 @@
1
1
  import { useModel as c, resolveComponent as r, createBlock as s, openBlock as m, unref as d, withCtx as p, createVNode as u, mergeProps as _ } from "vue";
2
- import { C as f, l as v } from "./zh_CN-BorO3n7g.mjs";
3
- import { z as k } from "./index-BbnfunXb.mjs";
4
- import { T as g } from "./dayjs-YMug7Cd8.mjs";
2
+ import { C as f, l as v } from "./zh_CN-CsKEyUNA.mjs";
3
+ import { A as k } from "./index-QQhQzbiW.mjs";
4
+ import { T as g } from "./dayjs-LL23ULLS.mjs";
5
5
  const P = {
6
6
  name: "ZRangePicker",
7
7
  components: {
@@ -29,7 +29,7 @@ const P = {
29
29
  }, 8, ["locale"]);
30
30
  };
31
31
  }
32
- }), A = /* @__PURE__ */ k(V, [["__scopeId", "data-v-d1d1deb7"]]);
32
+ }), b = /* @__PURE__ */ k(V, [["__scopeId", "data-v-d1d1deb7"]]);
33
33
  export {
34
- A as default
34
+ b as default
35
35
  };
@@ -1,7 +1,7 @@
1
1
  import { useModel as c, resolveComponent as a, createBlock as s, openBlock as m, unref as p, withCtx as u, createVNode as d, mergeProps as _ } from "vue";
2
- import { C as f, l as g } from "./zh_CN-BorO3n7g.mjs";
3
- import { z as v } from "./index-BbnfunXb.mjs";
4
- import { a as k } from "./dayjs-YMug7Cd8.mjs";
2
+ import { C as f, l as g } from "./zh_CN-CsKEyUNA.mjs";
3
+ import { A as v } from "./index-QQhQzbiW.mjs";
4
+ import { a as k } from "./dayjs-LL23ULLS.mjs";
5
5
  const P = {
6
6
  name: "ZRangePicker",
7
7
  components: {
@@ -30,7 +30,7 @@ const P = {
30
30
  }, 8, ["locale"]);
31
31
  };
32
32
  }
33
- }), z = /* @__PURE__ */ v(V, [["__scopeId", "data-v-5e447850"]]);
33
+ }), T = /* @__PURE__ */ v(V, [["__scopeId", "data-v-5e447850"]]);
34
34
  export {
35
- z as default
35
+ T as default
36
36
  };
@@ -1,5 +1,5 @@
1
- import { _ as m } from "./index-BbnfunXb.mjs";
2
- import { g as a, a as i } from "./zh_CN-BorO3n7g.mjs";
1
+ import { _ as m } from "./index-QQhQzbiW.mjs";
2
+ import { g as a, a as i } from "./zh_CN-CsKEyUNA.mjs";
3
3
  const {
4
4
  DatePicker: n,
5
5
  WeekPicker: r,
@@ -0,0 +1,165 @@
1
+ import { _ as t, s as U, q as c, u as O, a0 as D, b as d, o as N } from "./index-QQhQzbiW.mjs";
2
+ import { defineComponent as B, ref as w, createVNode as R } from "vue";
3
+ import { g as H, c as S, d as q, r as M, a as V } from "./zh_CN-CsKEyUNA.mjs";
4
+ const T = () => ({
5
+ format: String,
6
+ showNow: c(),
7
+ showHour: c(),
8
+ showMinute: c(),
9
+ showSecond: c(),
10
+ use12Hours: c(),
11
+ hourStep: Number,
12
+ minuteStep: Number,
13
+ secondStep: Number,
14
+ hideDisabledOptions: c(),
15
+ popupClassName: String,
16
+ status: U()
17
+ });
18
+ function W(u) {
19
+ const _ = H(u, t(t({}, T()), {
20
+ order: {
21
+ type: Boolean,
22
+ default: !0
23
+ }
24
+ })), {
25
+ TimePicker: I,
26
+ RangePicker: y
27
+ } = _, j = B({
28
+ name: "ATimePicker",
29
+ inheritAttrs: !1,
30
+ props: t(t(t(t({}, S()), q()), T()), {
31
+ addon: {
32
+ type: Function
33
+ }
34
+ }),
35
+ slots: Object,
36
+ setup(m, g) {
37
+ let {
38
+ slots: i,
39
+ expose: C,
40
+ emit: o,
41
+ attrs: h
42
+ } = g;
43
+ const a = m, r = O();
44
+ D(!(i.addon || a.addon), "TimePicker", "`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");
45
+ const s = w();
46
+ C({
47
+ focus: () => {
48
+ var n;
49
+ (n = s.value) === null || n === void 0 || n.focus();
50
+ },
51
+ blur: () => {
52
+ var n;
53
+ (n = s.value) === null || n === void 0 || n.blur();
54
+ }
55
+ });
56
+ const k = (n, F) => {
57
+ o("update:value", n), o("change", n, F), r.onFieldChange();
58
+ }, f = (n) => {
59
+ o("update:open", n), o("openChange", n);
60
+ }, P = (n) => {
61
+ o("focus", n);
62
+ }, v = (n) => {
63
+ o("blur", n), r.onFieldBlur();
64
+ }, b = (n) => {
65
+ o("ok", n);
66
+ };
67
+ return () => {
68
+ const {
69
+ id: n = r.id.value
70
+ } = a;
71
+ return R(I, d(d(d({}, h), N(a, ["onUpdate:value", "onUpdate:open"])), {}, {
72
+ id: n,
73
+ dropdownClassName: a.popupClassName,
74
+ mode: void 0,
75
+ ref: s,
76
+ renderExtraFooter: a.addon || i.addon || a.renderExtraFooter || i.renderExtraFooter,
77
+ onChange: k,
78
+ onOpenChange: f,
79
+ onFocus: P,
80
+ onBlur: v,
81
+ onOk: b
82
+ }), i);
83
+ };
84
+ }
85
+ }), A = B({
86
+ name: "ATimeRangePicker",
87
+ inheritAttrs: !1,
88
+ props: t(t(t(t({}, S()), M()), T()), {
89
+ order: {
90
+ type: Boolean,
91
+ default: !0
92
+ }
93
+ }),
94
+ slots: Object,
95
+ setup(m, g) {
96
+ let {
97
+ slots: i,
98
+ expose: C,
99
+ emit: o,
100
+ attrs: h
101
+ } = g;
102
+ const a = m, r = w(), s = O();
103
+ C({
104
+ focus: () => {
105
+ var e;
106
+ (e = r.value) === null || e === void 0 || e.focus();
107
+ },
108
+ blur: () => {
109
+ var e;
110
+ (e = r.value) === null || e === void 0 || e.blur();
111
+ }
112
+ });
113
+ const k = (e, l) => {
114
+ o("update:value", e), o("change", e, l), s.onFieldChange();
115
+ }, f = (e) => {
116
+ o("update:open", e), o("openChange", e);
117
+ }, P = (e) => {
118
+ o("focus", e);
119
+ }, v = (e) => {
120
+ o("blur", e), s.onFieldBlur();
121
+ }, b = (e, l) => {
122
+ o("panelChange", e, l);
123
+ }, n = (e) => {
124
+ o("ok", e);
125
+ }, F = (e, l, E) => {
126
+ o("calendarChange", e, l, E);
127
+ };
128
+ return () => {
129
+ const {
130
+ id: e = s.id.value
131
+ } = a;
132
+ return R(y, d(d(d({}, h), N(a, ["onUpdate:open", "onUpdate:value"])), {}, {
133
+ id: e,
134
+ dropdownClassName: a.popupClassName,
135
+ picker: "time",
136
+ mode: void 0,
137
+ ref: r,
138
+ onChange: k,
139
+ onOpenChange: f,
140
+ onFocus: P,
141
+ onBlur: v,
142
+ onPanelChange: b,
143
+ onOk: n,
144
+ onCalendarChange: F
145
+ }), i);
146
+ };
147
+ }
148
+ });
149
+ return {
150
+ TimePicker: j,
151
+ TimeRangePicker: A
152
+ };
153
+ }
154
+ const {
155
+ TimePicker: p,
156
+ TimeRangePicker: x
157
+ } = W(V), J = t(p, {
158
+ TimePicker: p,
159
+ TimeRangePicker: x,
160
+ install: (u) => (u.component(p.name, p), u.component(x.name, x), u)
161
+ });
162
+ export {
163
+ J as T,
164
+ x as a
165
+ };
@@ -1,4 +1,4 @@
1
- import { r as S, v as x, A as l, _ as e, x as u, aC as m } from "./index-BbnfunXb.mjs";
1
+ import { v as S, x, D as l, _ as e, y as u, aF as m } from "./index-QQhQzbiW.mjs";
2
2
  const H = (r) => ({
3
3
  // Firefox
4
4
  "&::-moz-placeholder": {