@aplus-frontend/ui 7.17.4 → 7.18.1

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 (105) hide show
  1. package/es/src/ag-grid/hooks/use-editable-form-item-api.mjs +1 -1
  2. package/es/src/ag-grid/index.vue.mjs +1 -1
  3. package/es/src/ap-field/cascader/index.vue.mjs +9 -8
  4. package/es/src/ap-field/cascader/read.vue2.mjs +3 -2
  5. package/es/src/ap-field/checkbox/index.vue.mjs +12 -11
  6. package/es/src/ap-field/checkbox/read.vue2.mjs +5 -4
  7. package/es/src/ap-field/date/index.vue.mjs +83 -73
  8. package/es/src/ap-field/date/read.vue2.mjs +1 -0
  9. package/es/src/ap-field/date-range/index.vue.mjs +80 -70
  10. package/es/src/ap-field/date-range/read.vue2.mjs +3 -2
  11. package/es/src/ap-field/hooks/use-read-mode-render.d.ts +9 -0
  12. package/es/src/ap-field/hooks/use-read-mode-render.mjs +6 -0
  13. package/es/src/ap-field/interface.d.ts +8 -0
  14. package/es/src/ap-field/number/index.vue.mjs +57 -46
  15. package/es/src/ap-field/number/read.vue2.mjs +1 -0
  16. package/es/src/ap-field/radio/index.vue.mjs +17 -16
  17. package/es/src/ap-field/radio/read.vue2.mjs +1 -0
  18. package/es/src/ap-field/rate/index.vue.mjs +6 -5
  19. package/es/src/ap-field/second/index.vue.mjs +35 -20
  20. package/es/src/ap-field/second/read.vue2.mjs +1 -0
  21. package/es/src/ap-field/segmented/index.vue.mjs +15 -14
  22. package/es/src/ap-field/select/index.vue.mjs +53 -52
  23. package/es/src/ap-field/select/read.vue2.mjs +1 -0
  24. package/es/src/ap-field/slider/index.vue.mjs +11 -10
  25. package/es/src/ap-field/switch/index.vue.mjs +20 -19
  26. package/es/src/ap-field/switch/read.vue2.mjs +5 -4
  27. package/es/src/ap-field/text/index.vue2.mjs +35 -31
  28. package/es/src/ap-field/text/password.vue.d.ts +4 -4
  29. package/es/src/ap-field/text/password.vue.mjs +57 -48
  30. package/es/src/ap-field/text/read-password.vue2.mjs +6 -5
  31. package/es/src/ap-field/text/read.vue2.mjs +3 -2
  32. package/es/src/ap-field/text-area/index.vue.mjs +46 -36
  33. package/es/src/ap-field/text-area/read.vue2.mjs +1 -0
  34. package/es/src/ap-field/tree-select/index.vue.mjs +9 -8
  35. package/es/src/ap-field/tree-select/read.vue2.mjs +1 -0
  36. package/es/src/ap-form/items/cascader/index.vue.d.ts +3 -1
  37. package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -1
  38. package/es/src/ap-form/items/date/index.vue.d.ts +3 -1
  39. package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -1
  40. package/es/src/ap-form/items/number/index.vue.d.ts +3 -1
  41. package/es/src/ap-form/items/select/index.vue.d.ts +3 -1
  42. package/es/src/ap-form/items/switch/index.vue.d.ts +3 -1
  43. package/es/src/ap-form/items/text/index.vue.d.ts +3 -1
  44. package/es/src/ap-form/items/text/password.vue.d.ts +3 -1
  45. package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -1
  46. package/es/src/ap-table/constants.d.ts +11 -1
  47. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -1
  48. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +110 -99
  49. package/es/src/business/batch-input-group/index.vue.d.ts +2 -1
  50. package/es/src/business/batch-input-group/index.vue.mjs +11 -10
  51. package/es/src/version.d.ts +1 -1
  52. package/es/src/version.mjs +1 -1
  53. package/lib/src/ag-grid/hooks/use-editable-form-item-api.js +1 -1
  54. package/lib/src/ag-grid/index.vue.js +1 -1
  55. package/lib/src/ap-field/cascader/index.vue.js +1 -1
  56. package/lib/src/ap-field/cascader/read.vue2.js +1 -1
  57. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  58. package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
  59. package/lib/src/ap-field/date/index.vue.js +1 -1
  60. package/lib/src/ap-field/date/read.vue2.js +1 -1
  61. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  62. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  63. package/lib/src/ap-field/hooks/use-read-mode-render.d.ts +9 -0
  64. package/lib/src/ap-field/hooks/use-read-mode-render.js +1 -0
  65. package/lib/src/ap-field/interface.d.ts +8 -0
  66. package/lib/src/ap-field/number/index.vue.js +1 -1
  67. package/lib/src/ap-field/number/read.vue2.js +1 -1
  68. package/lib/src/ap-field/radio/index.vue.js +1 -1
  69. package/lib/src/ap-field/radio/read.vue2.js +1 -1
  70. package/lib/src/ap-field/rate/index.vue.js +1 -1
  71. package/lib/src/ap-field/second/index.vue.js +1 -1
  72. package/lib/src/ap-field/second/read.vue2.js +1 -1
  73. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  74. package/lib/src/ap-field/select/index.vue.js +1 -1
  75. package/lib/src/ap-field/select/read.vue2.js +1 -1
  76. package/lib/src/ap-field/slider/index.vue.js +1 -1
  77. package/lib/src/ap-field/switch/index.vue.js +1 -1
  78. package/lib/src/ap-field/switch/read.vue2.js +1 -1
  79. package/lib/src/ap-field/text/index.vue2.js +1 -1
  80. package/lib/src/ap-field/text/password.vue.d.ts +4 -4
  81. package/lib/src/ap-field/text/password.vue.js +1 -1
  82. package/lib/src/ap-field/text/read-password.vue2.js +1 -1
  83. package/lib/src/ap-field/text/read.vue2.js +1 -1
  84. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  85. package/lib/src/ap-field/text-area/read.vue2.js +1 -1
  86. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  87. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  88. package/lib/src/ap-form/items/cascader/index.vue.d.ts +3 -1
  89. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -1
  90. package/lib/src/ap-form/items/date/index.vue.d.ts +3 -1
  91. package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -1
  92. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -1
  93. package/lib/src/ap-form/items/select/index.vue.d.ts +3 -1
  94. package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -1
  95. package/lib/src/ap-form/items/text/index.vue.d.ts +3 -1
  96. package/lib/src/ap-form/items/text/password.vue.d.ts +3 -1
  97. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -1
  98. package/lib/src/ap-table/constants.d.ts +11 -1
  99. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -1
  100. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  101. package/lib/src/business/batch-input-group/index.vue.d.ts +2 -1
  102. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  103. package/lib/src/version.d.ts +1 -1
  104. package/lib/src/version.js +1 -1
  105. package/package.json +1 -1
@@ -94,7 +94,7 @@ const W = (l, c, n, w) => {
94
94
  void 0,
95
95
  !0,
96
96
  (e, u) => {
97
- e[u] = o;
97
+ e[u] = [...o];
98
98
  }
99
99
  );
100
100
  }
@@ -494,7 +494,7 @@ const ur = /* @__PURE__ */ ho({
494
494
  () => o.dataSource,
495
495
  (e) => {
496
496
  A(() => {
497
- Ge(e);
497
+ Ge(e, !0);
498
498
  });
499
499
  },
500
500
  { immediate: !0, deep: !0 }
@@ -13,6 +13,7 @@ const ee = { key: 0 }, pe = /* @__PURE__ */ A({
13
13
  class: {},
14
14
  style: {},
15
15
  emptyText: { default: "--" },
16
+ customReadMode: {},
16
17
  multiple: { type: Boolean, default: void 0 },
17
18
  size: {},
18
19
  bordered: { type: Boolean, default: !0 },
@@ -97,7 +98,7 @@ const ee = { key: 0 }, pe = /* @__PURE__ */ A({
97
98
  setup(N, { expose: k, emit: P }) {
98
99
  const n = N, T = b(
99
100
  () => J(n, ["onUpdate:value", "value", "options", "loadData"])
100
- ), I = L(), V = P, i = O(), { value: f, updateValue: D } = Z(n, V), R = X("Cascader", n), { options: h, request: g, loading: y } = Y(n), v = b(() => {
101
+ ), I = L(), R = P, i = O(), { value: f, updateValue: V } = Z(n, R), D = X("Cascader", n), { options: h, request: g, loading: y } = Y(n), v = b(() => {
101
102
  const o = e(f);
102
103
  if (!o?.length) return [];
103
104
  const C = n.fieldNames?.label || "label", s = n.fieldNames?.value || "value";
@@ -105,15 +106,15 @@ const ee = { key: 0 }, pe = /* @__PURE__ */ A({
105
106
  const r = [];
106
107
  for (const p of c || []) {
107
108
  if (t.find(
108
- (M) => M === p[s]
109
+ (F) => F === p[s]
109
110
  ) && r.push(p[C]), r.length === t.length)
110
111
  return r;
111
112
  p.children?.length && r.push(...a(p.children, t));
112
113
  }
113
114
  return r;
114
115
  }
115
- const d = [], F = Q(o[0]) ? o : [o];
116
- for (const c of F) {
116
+ const d = [], z = Q(o[0]) ? o : [o];
117
+ for (const c of z) {
117
118
  const t = a(h.value, c);
118
119
  t.length && d.push(t);
119
120
  }
@@ -122,12 +123,12 @@ const ee = { key: 0 }, pe = /* @__PURE__ */ A({
122
123
  function _() {
123
124
  i.value?.focus?.();
124
125
  }
125
- function z() {
126
+ function M() {
126
127
  i.value?.blur?.();
127
128
  }
128
129
  return k({
129
130
  focus: _,
130
- blur: z,
131
+ blur: M,
131
132
  request: g
132
133
  }), (o, C) => o.mode === "read" ? (l(), u(B, { key: 0 }, [
133
134
  v.value.length ? (l(), w(e(W), {
@@ -144,9 +145,9 @@ const ee = { key: 0 }, pe = /* @__PURE__ */ A({
144
145
  value: e(f),
145
146
  loading: e(y),
146
147
  options: e(h),
147
- placeholder: e(R),
148
+ placeholder: e(D),
148
149
  "load-data": o.loadData ? e(g) : void 0,
149
- "onUpdate:value": e(D)
150
+ "onUpdate:value": e(V)
150
151
  }), E({ _: 2 }, [
151
152
  S(I, (s, a) => ({
152
153
  name: a,
@@ -3,7 +3,7 @@ import { Space as N } from "@aplus-frontend/antdv";
3
3
  import { isArray as S } from "lodash-unified";
4
4
  const T = {
5
5
  key: 0
6
- }, R = /* @__PURE__ */ C({
6
+ }, M = /* @__PURE__ */ C({
7
7
  name: "ApFieldCascaderRead",
8
8
  __name: "read",
9
9
  props: {
@@ -15,6 +15,7 @@ const T = {
15
15
  emptyText: {
16
16
  default: "--"
17
17
  },
18
+ customReadMode: {},
18
19
  multiple: {
19
20
  type: Boolean
20
21
  },
@@ -156,5 +157,5 @@ const T = {
156
157
  }
157
158
  });
158
159
  export {
159
- R as default
160
+ M as default
160
161
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as O, computed as T, useSlots as _, ref as P, onMounted as U, createElementBlock as r, openBlock as o, Fragment as s, unref as e, createTextVNode as d, toDisplayString as c, createBlock as f, mergeProps as F, createSlots as N, renderList as z, withCtx as A, renderSlot as L, normalizeProps as j, guardReactiveProps as w } from "vue";
2
- import { Spin as D, CheckboxGroup as E } from "@aplus-frontend/antdv";
3
- import { omit as G, isFunction as I, isNil as M } from "lodash-unified";
1
+ import { defineComponent as O, computed as T, useSlots as _, ref as P, onMounted as U, createElementBlock as r, openBlock as o, Fragment as s, unref as e, createTextVNode as d, toDisplayString as c, createBlock as f, mergeProps as F, createSlots as N, renderList as z, withCtx as A, renderSlot as L, normalizeProps as M, guardReactiveProps as R } from "vue";
2
+ import { Spin as j, CheckboxGroup as w } from "@aplus-frontend/antdv";
3
+ import { omit as D, isFunction as E, isNil as G } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../hooks/index.mjs";
6
- import R from "../hooks/use-options.mjs";
6
+ import I from "../hooks/use-options.mjs";
7
7
  import $ from "../style/index.mjs";
8
8
  import { getOptionValue as H, getOptionLabel as J } from "./helper.mjs";
9
9
  import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs";
@@ -17,6 +17,7 @@ const ne = /* @__PURE__ */ O({
17
17
  class: {},
18
18
  style: {},
19
19
  emptyText: { default: "--" },
20
+ customReadMode: {},
20
21
  defaultValue: {},
21
22
  value: {},
22
23
  onChange: {},
@@ -32,10 +33,10 @@ const ne = /* @__PURE__ */ O({
32
33
  emits: ["update:value"],
33
34
  setup(v, { expose: y, emit: k }) {
34
35
  const x = k, t = v, h = T(
35
- () => G(t, ["onUpdate:value", "value", "request", "vertical", "emptyText"])
36
- ), g = _(), { options: u, updateOptions: b } = R(t), { b: C, m: S } = K("field-checkbox"), V = $("field"), n = P(!1);
36
+ () => D(t, ["onUpdate:value", "value", "request", "vertical", "emptyText"])
37
+ ), g = _(), { options: u, updateOptions: b } = I(t), { b: C, m: S } = K("field-checkbox"), V = $("field"), n = P(!1);
37
38
  async function p() {
38
- if (I(t.request))
39
+ if (E(t.request))
39
40
  return n.value = !0, t.request().then((a) => b(a)).finally(() => {
40
41
  n.value = !1;
41
42
  });
@@ -53,16 +54,16 @@ const ne = /* @__PURE__ */ O({
53
54
  return y({
54
55
  request: p
55
56
  }), (a, W) => a.mode === "read" ? (o(), r(s, { key: 0 }, [
56
- e(M)(e(i)) ? (o(), r(s, { key: 0 }, [
57
+ e(G)(e(i)) ? (o(), r(s, { key: 0 }, [
57
58
  d(c(t.emptyText), 1)
58
59
  ], 64)) : (o(), r(s, { key: 1 }, [
59
60
  d(c(e(u)?.filter((l) => e(i).indexOf(e(H)(l)) > -1).map((l) => e(J)(l)).join("、") || t.emptyText), 1)
60
61
  ], 64))
61
62
  ], 64)) : (o(), r(s, { key: 1 }, [
62
- n.value ? (o(), f(e(D), {
63
+ n.value ? (o(), f(e(j), {
63
64
  key: 0,
64
65
  size: "small"
65
- })) : (o(), f(e(E), F({ key: 1 }, h.value, {
66
+ })) : (o(), f(e(w), F({ key: 1 }, h.value, {
66
67
  options: e(u),
67
68
  value: e(i),
68
69
  class: [e(C)(), a.vertical ? e(S)("vertical") : null, e(V)],
@@ -71,7 +72,7 @@ const ne = /* @__PURE__ */ O({
71
72
  z(g, (l, m) => ({
72
73
  name: m,
73
74
  fn: A((B) => [
74
- L(a.$slots, m, j(w(B || {})))
75
+ L(a.$slots, m, M(R(B || {})))
75
76
  ])
76
77
  }))
77
78
  ]), 1040, ["options", "value", "class", "onUpdate:value"]))
@@ -1,4 +1,4 @@
1
- import { defineComponent as r, createElementBlock as o, unref as a, openBlock as l, Fragment as n, createTextVNode as p, toDisplayString as i } from "vue";
1
+ import { defineComponent as r, createElementBlock as a, unref as o, openBlock as l, Fragment as n, createTextVNode as p, toDisplayString as i } from "vue";
2
2
  import { isNil as d } from "lodash-unified";
3
3
  import { getOptionValue as m, getOptionLabel as u } from "./helper.mjs";
4
4
  const g = /* @__PURE__ */ r({
@@ -9,6 +9,7 @@ const g = /* @__PURE__ */ r({
9
9
  class: {},
10
10
  style: {},
11
11
  emptyText: { default: "--" },
12
+ customReadMode: {},
12
13
  defaultValue: {},
13
14
  value: {},
14
15
  onChange: {},
@@ -22,10 +23,10 @@ const g = /* @__PURE__ */ r({
22
23
  vertical: { type: Boolean }
23
24
  },
24
25
  setup(s) {
25
- return (e, f) => a(d)(e.value) ? (l(), o(n, { key: 0 }, [
26
+ return (e, f) => o(d)(e.value) ? (l(), a(n, { key: 0 }, [
26
27
  p(i(e.emptyText), 1)
27
- ], 64)) : (l(), o(n, { key: 1 }, [
28
- p(i(e.options?.filter((t) => e.value.indexOf(a(m)(t)) > -1).map((t) => a(u)(t)).join("、") || e.emptyText), 1)
28
+ ], 64)) : (l(), a(n, { key: 1 }, [
29
+ p(i(e.options?.filter((t) => e.value.indexOf(o(m)(t)) > -1).map((t) => o(u)(t)).join("、") || e.emptyText), 1)
29
30
  ], 64));
30
31
  }
31
32
  });
@@ -1,15 +1,18 @@
1
- import { defineComponent as I, useSlots as U, ref as H, computed as r, unref as t, createElementBlock as B, createBlock as h, openBlock as i, Fragment as g, createTextVNode as b, toDisplayString as P, normalizeStyle as K, withCtx as s, createVNode as w, createCommentVNode as W, isRef as G, renderList as C, mergeProps as L, createSlots as Y, renderSlot as Z, normalizeProps as $, guardReactiveProps as q } from "vue";
2
- import { InputGroup as J, FormItemRest as Q, Select as X, SelectOption as ee, DatePicker as oe } from "@aplus-frontend/antdv";
3
- import { getTimeFormatToZone as te } from "@aplus-frontend/utils";
1
+ import { defineComponent as N, useSlots as j, ref as I, computed as r, unref as o, createBlock as c, openBlock as s, withCtx as d, createElementVNode as U, toDisplayString as B, normalizeStyle as H, createVNode as g, createCommentVNode as K, isRef as W, createElementBlock as G, Fragment as L, renderList as b, createTextVNode as Y, mergeProps as Z, createSlots as $, renderSlot as q, normalizeProps as J, guardReactiveProps as Q } from "vue";
2
+ import { InputGroup as X, FormItemRest as ee, Select as oe, SelectOption as te, DatePicker as ae } from "@aplus-frontend/antdv";
3
+ import { getTimeFormatToZone as ne } from "@aplus-frontend/utils";
4
4
  import u from "dayjs";
5
- import { isNil as S, omit as ae } from "lodash-unified";
5
+ import { isNil as P, omit as le } from "lodash-unified";
6
6
  import "../../hooks/index.mjs";
7
- import { useDateTimezone as ne } from "../hooks/use-date-timezone.mjs";
8
- import { useDefaultPlaceholder as le } from "../hooks/use-default-placeholder.mjs";
9
- import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as O, PRESET_FORMAT_PICK_MAP as ue, PRESET_FORMAT_TIME_MAP as de } from "./constant.mjs";
10
- import { formatDayWithTimezone as ie } from "./helper.mjs";
11
- import { useControllableValue as se } from "../../hooks/useControllableValue.mjs";
12
- const Pe = /* @__PURE__ */ I({
7
+ import "../../render/index.mjs";
8
+ import { useDateTimezone as re } from "../hooks/use-date-timezone.mjs";
9
+ import { useDefaultPlaceholder as de } from "../hooks/use-default-placeholder.mjs";
10
+ import { useReadModeRender as ue } from "../hooks/use-read-mode-render.mjs";
11
+ import { ApFieldDatePresetFormats as ie, PRESET_FORMAT_MAP as w, PRESET_FORMAT_PICK_MAP as se, PRESET_FORMAT_TIME_MAP as me } from "./constant.mjs";
12
+ import { formatDayWithTimezone as pe } from "./helper.mjs";
13
+ import { useControllableValue as fe } from "../../hooks/useControllableValue.mjs";
14
+ import ce from "../../render/render.mjs";
15
+ const Te = /* @__PURE__ */ N({
13
16
  name: "ApFieldDate",
14
17
  __name: "index",
15
18
  props: {
@@ -17,6 +20,7 @@ const Pe = /* @__PURE__ */ I({
17
20
  class: {},
18
21
  style: {},
19
22
  emptyText: { default: "--" },
23
+ customReadMode: {},
20
24
  dropdownClassName: {},
21
25
  dropdownAlign: {},
22
26
  popupStyle: {},
@@ -92,23 +96,23 @@ const Pe = /* @__PURE__ */ I({
92
96
  timezone: {}
93
97
  },
94
98
  emits: ["update:value"],
95
- setup(T, { expose: _, emit: F }) {
96
- const R = U(), e = T, A = F, f = H(), { value: c, updateValue: k } = se(
99
+ setup(R, { expose: C, emit: S }) {
100
+ const _ = j(), e = R, O = S, v = I(), { value: y, updateValue: k } = fe(
97
101
  e,
98
- A
99
- ), M = le("Date", e), { currentTimezone: d } = ne(e), l = r(
100
- () => re.indexOf(e.format) > -1
101
- ), x = r(() => e.shownFormat ? e.shownFormat : l.value ? O[e.format] : e.format), m = r(
102
- () => l.value ? O[e.format] : e.format
103
- ), v = r(() => {
104
- if (S(t(c)))
102
+ O
103
+ ), T = de("Date", e), { currentTimezone: i } = re(e), l = r(
104
+ () => ie.indexOf(e.format) > -1
105
+ ), F = r(() => e.shownFormat ? e.shownFormat : l.value ? w[e.format] : e.format), m = r(
106
+ () => l.value ? w[e.format] : e.format
107
+ ), p = r(() => {
108
+ if (P(o(y)))
105
109
  return;
106
- let o = u(t(c));
107
- return e.timezone && (o = u(te(t(c), d.value))), o;
108
- }), D = r(() => t(l) ? e.picker ?? ue[e.format] : e.picker), V = r(() => {
109
- const o = t(l) ? de[e.format] : {};
110
+ let t = u(o(y));
111
+ return e.timezone && (t = u(ne(o(y), i.value))), t;
112
+ }), { renderer: A } = ue(e, p), M = r(() => o(l) ? e.picker ?? se[e.format] : e.picker), x = r(() => {
113
+ const t = o(l) ? me[e.format] : {};
110
114
  return {
111
- ...ae(e, [
115
+ ...le(e, [
112
116
  "value",
113
117
  "defaultValue",
114
118
  "onChange",
@@ -117,95 +121,101 @@ const Pe = /* @__PURE__ */ I({
117
121
  "onUpdate:value",
118
122
  "mode"
119
123
  ]),
120
- placeholder: t(M),
121
- ...o
124
+ placeholder: o(T),
125
+ ...t
122
126
  };
123
- }), y = (o, n, a = !0) => ie(d.value)(o, n, a);
124
- function z(o) {
125
- if (S(o)) {
127
+ }), h = (t, n, a = !0) => pe(i.value)(t, n, a);
128
+ function D(t) {
129
+ if (P(t)) {
126
130
  k(null);
127
131
  return;
128
132
  }
129
- const n = u(o);
133
+ const n = u(t);
130
134
  k(
131
- y(
135
+ h(
132
136
  n,
133
- t(l) ? t(m) : void 0,
137
+ o(l) ? o(m) : void 0,
134
138
  e.formatBegins
135
139
  )
136
140
  );
137
141
  }
138
- function E(o, n) {
139
- const a = u(o), p = o ? y(
142
+ function V(t, n) {
143
+ const a = u(t), f = t ? h(
140
144
  a,
141
- t(l) ? t(m) : void 0,
145
+ o(l) ? o(m) : void 0,
142
146
  e.formatBegins
143
147
  ) : null;
144
- e.onChange?.(p, n);
148
+ e.onChange?.(f, n);
145
149
  }
146
- function N(o) {
147
- const n = u(o), a = o ? y(
150
+ function z(t) {
151
+ const n = u(t), a = t ? h(
148
152
  n,
149
- t(l) ? t(m) : void 0,
153
+ o(l) ? o(m) : void 0,
150
154
  e.formatBegins
151
155
  ) : null;
152
156
  e.onOk?.(a);
153
157
  }
154
- return _({
155
- focus: () => f.value?.focus(),
156
- blur: () => f.value?.blur()
157
- }), (o, n) => o.mode === "read" ? (i(), B(g, { key: 0 }, [
158
- b(P(v.value ? t(u)(v.value).format(m.value) : o.emptyText), 1)
159
- ], 64)) : (i(), h(t(J), {
158
+ return C({
159
+ focus: () => v.value?.focus(),
160
+ blur: () => v.value?.blur()
161
+ }), (t, n) => t.mode === "read" ? (s(), c(o(ce), {
162
+ key: 0,
163
+ renderer: o(A)
164
+ }, {
165
+ default: d(() => [
166
+ U("span", null, B(p.value ? o(u)(p.value).format(m.value) : t.emptyText), 1)
167
+ ]),
168
+ _: 1
169
+ }, 8, ["renderer"])) : (s(), c(o(X), {
160
170
  key: 1,
161
171
  compact: "",
162
- style: K({
172
+ style: H({
163
173
  display: Array.isArray(e.timezone) && e.timezone.length ? "flex" : "block"
164
174
  })
165
175
  }, {
166
- default: s(() => [
167
- w(t(Q), null, {
168
- default: s(() => [
169
- Array.isArray(e.timezone) && e.timezone.length ? (i(), h(t(X), {
176
+ default: d(() => [
177
+ g(o(ee), null, {
178
+ default: d(() => [
179
+ Array.isArray(e.timezone) && e.timezone.length ? (s(), c(o(oe), {
170
180
  key: 0,
171
- value: t(d),
172
- "onUpdate:value": n[0] || (n[0] = (a) => G(d) ? d.value = a : null),
181
+ value: o(i),
182
+ "onUpdate:value": n[0] || (n[0] = (a) => W(i) ? i.value = a : null),
173
183
  "default-active-first-option": "",
174
184
  "dropdown-match-select-width": !1,
175
185
  style: { "max-width": "50%" },
176
- disabled: o.disabled
186
+ disabled: t.disabled
177
187
  }, {
178
- default: s(() => [
179
- (i(!0), B(g, null, C(e.timezone, (a) => (i(), h(t(ee), {
188
+ default: d(() => [
189
+ (s(!0), G(L, null, b(e.timezone, (a) => (s(), c(o(te), {
180
190
  key: a?.value,
181
191
  value: a?.value
182
192
  }, {
183
- default: s(() => [
184
- b(P(a?.label ?? a?.value), 1)
193
+ default: d(() => [
194
+ Y(B(a?.label ?? a?.value), 1)
185
195
  ]),
186
196
  _: 2
187
197
  }, 1032, ["value"]))), 128))
188
198
  ]),
189
199
  _: 1
190
- }, 8, ["value", "disabled"])) : W("", !0)
200
+ }, 8, ["value", "disabled"])) : K("", !0)
191
201
  ]),
192
202
  _: 1
193
203
  }),
194
- w(t(oe), L({
204
+ g(o(ae), Z({
195
205
  ref_key: "datePickerRef",
196
- ref: f
197
- }, V.value, {
198
- value: v.value,
199
- format: x.value,
200
- picker: D.value,
201
- "onUpdate:value": z,
202
- onChange: E,
203
- onOk: N
204
- }), Y({ _: 2 }, [
205
- C(R, (a, p) => ({
206
- name: p,
207
- fn: s((j) => [
208
- Z(o.$slots, p, $(q(j || {})))
206
+ ref: v
207
+ }, x.value, {
208
+ value: p.value,
209
+ format: F.value,
210
+ picker: M.value,
211
+ "onUpdate:value": D,
212
+ onChange: V,
213
+ onOk: z
214
+ }), $({ _: 2 }, [
215
+ b(_, (a, f) => ({
216
+ name: f,
217
+ fn: d((E) => [
218
+ q(t.$slots, f, J(Q(E || {})))
209
219
  ])
210
220
  }))
211
221
  ]), 1040, ["value", "format", "picker"])
@@ -215,5 +225,5 @@ const Pe = /* @__PURE__ */ I({
215
225
  }
216
226
  });
217
227
  export {
218
- Pe as default
228
+ Te as default
219
229
  };
@@ -12,6 +12,7 @@ const S = /* @__PURE__ */ u({
12
12
  class: {},
13
13
  style: {},
14
14
  emptyText: { default: "--" },
15
+ customReadMode: {},
15
16
  dropdownClassName: {},
16
17
  dropdownAlign: {},
17
18
  popupStyle: {},