@aplus-frontend/ui 7.13.6 → 7.13.8

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 (215) hide show
  1. package/es/src/ag-grid/components/body-cell/index.vue2.mjs +7 -7
  2. package/es/src/ag-grid/components/empty/index.vue2.mjs +10 -10
  3. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +37 -37
  4. package/es/src/ag-grid/components/row/index.vue2.mjs +5 -5
  5. package/es/src/ag-grid/components/tooltip/index.vue2.mjs +12 -12
  6. package/es/src/ag-grid/editable/form-item.vue.mjs +49 -49
  7. package/es/src/ag-grid/editable/index.vue.mjs +27 -27
  8. package/es/src/ag-grid/index.vue.mjs +249 -249
  9. package/es/src/ap-action/group/index.vue.mjs +15 -15
  10. package/es/src/ap-action/item/index.vue2.mjs +28 -28
  11. package/es/src/ap-action/item-dropdown/index.vue.mjs +39 -39
  12. package/es/src/ap-field/checkbox/index.vue.mjs +19 -19
  13. package/es/src/ap-field/checkbox/read.vue2.mjs +9 -9
  14. package/es/src/ap-field/date/index.vue.mjs +50 -50
  15. package/es/src/ap-field/date/read.vue2.mjs +7 -7
  16. package/es/src/ap-field/date-range/index.vue.mjs +30 -30
  17. package/es/src/ap-field/date-range/read.vue2.mjs +20 -20
  18. package/es/src/ap-field/number/index.vue.mjs +24 -24
  19. package/es/src/ap-field/radio/index.vue.mjs +24 -24
  20. package/es/src/ap-field/second/index.vue.mjs +15 -15
  21. package/es/src/ap-field/second/read.vue2.mjs +7 -7
  22. package/es/src/ap-field/segmented/index.vue.mjs +24 -24
  23. package/es/src/ap-field/select/index.vue.d.ts +1 -1
  24. package/es/src/ap-field/select/index.vue.mjs +246 -206
  25. package/es/src/ap-field/select/read.vue2.mjs +6 -6
  26. package/es/src/ap-field/slider/index.vue.mjs +11 -11
  27. package/es/src/ap-field/style/select.mjs +17 -4
  28. package/es/src/ap-field/switch/index.vue.mjs +45 -45
  29. package/es/src/ap-field/text/read-password.vue2.mjs +13 -13
  30. package/es/src/ap-field/text/read.vue2.mjs +3 -3
  31. package/es/src/ap-field/text-area/index.vue.mjs +29 -29
  32. package/es/src/ap-field/text-area/read.vue2.mjs +12 -12
  33. package/es/src/ap-field/tree-select/index.vue.mjs +31 -31
  34. package/es/src/ap-form/ap-form.vue2.mjs +46 -46
  35. package/es/src/ap-form/drawer-form/index.vue.mjs +30 -30
  36. package/es/src/ap-form/item/index.vue.mjs +75 -75
  37. package/es/src/ap-form/items/checkbox/index.vue.mjs +10 -10
  38. package/es/src/ap-form/items/number/index.vue.mjs +17 -17
  39. package/es/src/ap-form/items/radio/index.vue.mjs +13 -13
  40. package/es/src/ap-form/items/select/index.vue.d.ts +4 -4
  41. package/es/src/ap-form/items/switch/index.vue.mjs +14 -14
  42. package/es/src/ap-form/items/text/index.vue2.mjs +26 -26
  43. package/es/src/ap-form/items/text/password.vue.mjs +19 -19
  44. package/es/src/ap-form/items/text-area/index.vue.mjs +17 -17
  45. package/es/src/ap-form/modal-form/index.vue.mjs +34 -34
  46. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +39 -39
  47. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +7 -7
  48. package/es/src/ap-grid/editable/form-item.vue.mjs +46 -46
  49. package/es/src/ap-grid/editable/index.vue.mjs +19 -19
  50. package/es/src/ap-grid/index.vue.mjs +212 -212
  51. package/es/src/ap-list/index.vue.mjs +116 -116
  52. package/es/src/ap-table/ap-table.vue2.mjs +217 -217
  53. package/es/src/ap-table/components/index/index.vue2.mjs +9 -9
  54. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -42
  55. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +21 -21
  56. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +15 -15
  57. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +69 -69
  58. package/es/src/ap-table/components/setting/template/edit-form.vue2.mjs +22 -22
  59. package/es/src/ap-table/components/setting/template/index.vue2.mjs +25 -25
  60. package/es/src/ap-table/components/setting/template/item.vue2.mjs +40 -40
  61. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +13 -13
  62. package/es/src/ap-table/constants.d.ts +2 -2
  63. package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +54 -54
  64. package/es/src/business/ag-grid-modal/selected-items/default.vue2.mjs +13 -13
  65. package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +20 -20
  66. package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +33 -33
  67. package/es/src/business/ap-descriptions/help-message/index.vue2.mjs +13 -13
  68. package/es/src/business/ap-download/ap-download.vue.mjs +24 -24
  69. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.mjs +77 -77
  70. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +168 -157
  71. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +33 -33
  72. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +12 -12
  73. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +43 -43
  74. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +57 -57
  75. package/es/src/business/ap-tag/ap-tag-group.vue.mjs +37 -37
  76. package/es/src/business/ap-tag/ap-tag.vue.mjs +24 -24
  77. package/es/src/business/ap-title/ApTitle.vue2.mjs +27 -27
  78. package/es/src/business/ap-value-select-card/index.vue2.mjs +98 -98
  79. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  80. package/es/src/business/batch-input-group/form-item.vue.mjs +25 -25
  81. package/es/src/business/batch-input-group/index.vue.mjs +60 -60
  82. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +29 -29
  83. package/es/src/editable-table/form-item.vue.mjs +35 -35
  84. package/es/src/editable-table/index.vue.mjs +19 -19
  85. package/es/src/full-screen/index.vue.mjs +46 -46
  86. package/es/src/mask/index.vue.mjs +48 -48
  87. package/es/src/portal/index.vue.mjs +5 -5
  88. package/es/src/scroll-bar/internal.vue.mjs +62 -62
  89. package/es/src/scroll-view/index.vue.mjs +66 -66
  90. package/es/src/skeleton/components/desc/index.vue2.mjs +9 -9
  91. package/es/src/skeleton/components/desc/item-large.vue2.mjs +25 -25
  92. package/es/src/skeleton/components/desc/item.vue2.mjs +13 -13
  93. package/es/src/skeleton/components/list/index.vue2.mjs +14 -14
  94. package/es/src/skeleton/components/list/item.vue2.mjs +12 -12
  95. package/es/src/skeleton/components/page-header/index.vue2.mjs +8 -8
  96. package/es/src/skeleton/components/search-form/index.vue2.mjs +35 -35
  97. package/es/src/skeleton/components/table/index.vue2.mjs +17 -17
  98. package/es/src/skeleton/components/table/item.vue2.mjs +23 -23
  99. package/es/src/skeleton/descriptions.vue2.mjs +15 -15
  100. package/es/src/skeleton/list-page.vue2.mjs +12 -12
  101. package/es/src/splitter/Panel.vue2.mjs +11 -11
  102. package/es/src/splitter/SplitBar.vue2.mjs +79 -79
  103. package/es/src/splitter/Splitter.vue2.mjs +50 -50
  104. package/es/src/text/group.vue.mjs +8 -8
  105. package/es/src/text/index.vue.mjs +48 -48
  106. package/es/src/version.d.ts +1 -1
  107. package/es/src/version.mjs +1 -1
  108. package/lib/src/ag-grid/components/body-cell/index.vue2.js +1 -1
  109. package/lib/src/ag-grid/components/empty/index.vue2.js +1 -1
  110. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
  111. package/lib/src/ag-grid/components/row/index.vue2.js +1 -1
  112. package/lib/src/ag-grid/components/tooltip/index.vue2.js +1 -1
  113. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  114. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  115. package/lib/src/ag-grid/index.vue.js +1 -1
  116. package/lib/src/ap-action/group/index.vue.js +1 -1
  117. package/lib/src/ap-action/item/index.vue2.js +1 -1
  118. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  119. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  120. package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
  121. package/lib/src/ap-field/date/index.vue.js +1 -1
  122. package/lib/src/ap-field/date/read.vue2.js +1 -1
  123. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  124. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  125. package/lib/src/ap-field/number/index.vue.js +1 -1
  126. package/lib/src/ap-field/radio/index.vue.js +1 -1
  127. package/lib/src/ap-field/second/index.vue.js +1 -1
  128. package/lib/src/ap-field/second/read.vue2.js +1 -1
  129. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  130. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  131. package/lib/src/ap-field/select/index.vue.js +1 -1
  132. package/lib/src/ap-field/select/read.vue2.js +1 -1
  133. package/lib/src/ap-field/slider/index.vue.js +1 -1
  134. package/lib/src/ap-field/style/select.js +1 -1
  135. package/lib/src/ap-field/switch/index.vue.js +1 -1
  136. package/lib/src/ap-field/text/read-password.vue2.js +1 -1
  137. package/lib/src/ap-field/text/read.vue2.js +1 -1
  138. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  139. package/lib/src/ap-field/text-area/read.vue2.js +1 -1
  140. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  141. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  142. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  143. package/lib/src/ap-form/item/index.vue.js +1 -1
  144. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  145. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  146. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  147. package/lib/src/ap-form/items/select/index.vue.d.ts +4 -4
  148. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  149. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  150. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  151. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  152. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  153. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  154. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -1
  155. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  156. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  157. package/lib/src/ap-grid/index.vue.js +1 -1
  158. package/lib/src/ap-list/index.vue.js +1 -1
  159. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  160. package/lib/src/ap-table/components/index/index.vue2.js +1 -1
  161. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  162. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  163. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  164. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  165. package/lib/src/ap-table/components/setting/template/edit-form.vue2.js +1 -1
  166. package/lib/src/ap-table/components/setting/template/index.vue2.js +1 -1
  167. package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
  168. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  169. package/lib/src/ap-table/constants.d.ts +2 -2
  170. package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
  171. package/lib/src/business/ag-grid-modal/selected-items/default.vue2.js +1 -1
  172. package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
  173. package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
  174. package/lib/src/business/ap-descriptions/help-message/index.vue2.js +1 -1
  175. package/lib/src/business/ap-download/ap-download.vue.js +1 -1
  176. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.js +1 -1
  177. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  178. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  179. package/lib/src/business/ap-status/group/ApStatusGroup.vue2.js +1 -1
  180. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  181. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  182. package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -1
  183. package/lib/src/business/ap-tag/ap-tag.vue.js +1 -1
  184. package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
  185. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  186. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  187. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  188. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  189. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  190. package/lib/src/editable-table/form-item.vue.js +1 -1
  191. package/lib/src/editable-table/index.vue.js +1 -1
  192. package/lib/src/full-screen/index.vue.js +1 -1
  193. package/lib/src/mask/index.vue.js +1 -1
  194. package/lib/src/portal/index.vue.js +1 -1
  195. package/lib/src/scroll-bar/internal.vue.js +1 -1
  196. package/lib/src/scroll-view/index.vue.js +1 -1
  197. package/lib/src/skeleton/components/desc/index.vue2.js +1 -1
  198. package/lib/src/skeleton/components/desc/item-large.vue2.js +1 -1
  199. package/lib/src/skeleton/components/desc/item.vue2.js +1 -1
  200. package/lib/src/skeleton/components/list/index.vue2.js +1 -1
  201. package/lib/src/skeleton/components/list/item.vue2.js +1 -1
  202. package/lib/src/skeleton/components/page-header/index.vue2.js +1 -1
  203. package/lib/src/skeleton/components/search-form/index.vue2.js +1 -1
  204. package/lib/src/skeleton/components/table/index.vue2.js +1 -1
  205. package/lib/src/skeleton/components/table/item.vue2.js +1 -1
  206. package/lib/src/skeleton/descriptions.vue2.js +1 -1
  207. package/lib/src/skeleton/list-page.vue2.js +1 -1
  208. package/lib/src/splitter/Panel.vue2.js +1 -1
  209. package/lib/src/splitter/SplitBar.vue2.js +1 -1
  210. package/lib/src/splitter/Splitter.vue2.js +1 -1
  211. package/lib/src/text/group.vue.js +1 -1
  212. package/lib/src/text/index.vue.js +1 -1
  213. package/lib/src/version.d.ts +1 -1
  214. package/lib/src/version.js +1 -1
  215. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
- import { defineComponent as L, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as O, Fragment as m, createElementBlock as g, createBlock as k, openBlock as u, createTextVNode as S, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as w, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
1
+ import { defineComponent as L, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as P, Fragment as m, createElementBlock as g, createBlock as k, openBlock as u, createTextVNode as S, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as T, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
2
2
  import { SwapRightOutlined as re } from "@ant-design/icons-vue";
3
3
  import { InputGroup as le, Select as ue, SelectOption as de, DatePicker as ie } from "@aplus-frontend/antdv";
4
- import { getTimeFormatToZone as T } from "@aplus-frontend/utils";
4
+ import { getTimeFormatToZone as M } from "@aplus-frontend/utils";
5
5
  import d from "dayjs";
6
- import { isNil as M, omit as b, isString as c, isFunction as se } from "lodash-unified";
6
+ import { isNil as b, omit as A, isString as c, isFunction as se } from "lodash-unified";
7
7
  import "../../hooks/index.mjs";
8
8
  import { omitUndefined as pe } from "../../utils/index.mjs";
9
- import { ApFieldDatePresetFormats as fe, PRESET_FORMAT_MAP as A, PRESET_FORMAT_PICK_MAP as me, PRESET_FORMAT_TIME_MAP as ce } from "../date/constant.mjs";
9
+ import { ApFieldDatePresetFormats as fe, PRESET_FORMAT_MAP as R, PRESET_FORMAT_PICK_MAP as me, PRESET_FORMAT_TIME_MAP as ce } from "../date/constant.mjs";
10
10
  import { formatDayWithTimezone as ye } from "../date/helper.mjs";
11
11
  import { useDateTimezone as ve } from "../hooks/use-date-timezone.mjs";
12
12
  import { useDefaultPlaceholder as he } from "../hooks/use-default-placeholder.mjs";
13
13
  import { useDefaultPresets as ge } from "../hooks/use-default-presets.mjs";
14
14
  import { useControllableValue as ke } from "../../hooks/useControllableValue.mjs";
15
- const ze = /* @__PURE__ */ L({
15
+ const xe = /* @__PURE__ */ L({
16
16
  name: "ApFieldDateRange",
17
17
  __name: "index",
18
18
  props: {
@@ -161,13 +161,13 @@ const ze = /* @__PURE__ */ L({
161
161
  }
162
162
  },
163
163
  emits: ["update:value"],
164
- setup(R, {
164
+ setup(D, {
165
165
  emit: F
166
166
  }) {
167
- const o = R, _ = F, z = Y(), i = s(() => fe.indexOf(o.format) > -1), y = s(() => i.value ? A[o.format] : o.format), {
167
+ const o = D, _ = F, x = Y(), i = s(() => fe.indexOf(o.format) > -1), y = s(() => i.value ? R[o.format] : o.format), {
168
168
  value: v,
169
- updateValue: P
170
- } = ke(o, _), N = s(() => o.shownFormat ? o.shownFormat : i.value ? A[o.format] : o.format), x = he("DateRange", o), {
169
+ updateValue: w
170
+ } = ke(o, _), z = s(() => o.shownFormat ? o.shownFormat : i.value ? R[o.format] : o.format), N = he("DateRange", o), {
171
171
  currentTimezone: l
172
172
  } = ve(o), {
173
173
  presets: E,
@@ -177,57 +177,57 @@ const ze = /* @__PURE__ */ L({
177
177
  timezone: l
178
178
  }), p = (e, a, n = !0) => ye(l.value)(e, a, n), h = s(() => {
179
179
  const e = t(v);
180
- if (M(e) || !e?.length)
180
+ if (b(e) || !e?.length)
181
181
  return e;
182
- const a = l.value ? T(t(v)[0], l.value) : t(v)?.[0], n = o.timezone ? T(t(v)[1], l.value) : t(v)?.[1];
182
+ const a = l.value ? M(t(v)[0], l.value) : t(v)?.[0], n = o.timezone ? M(t(v)[1], l.value) : t(v)?.[1];
183
183
  return [d(a), d(n)];
184
184
  }), I = s(() => t(i) ? o.picker ?? me[o.format] : o.picker), U = s(() => {
185
185
  const e = t(i) ? ce[o.format] : {};
186
186
  return {
187
- ...pe(b(o, ["value", "onUpdate:value", "onChange", "onOk", "format", "mode", "presets"])),
188
- placeholder: t(x),
187
+ ...pe(A(o, ["value", "onUpdate:value", "onChange", "onOk", "format", "mode", "presets"])),
188
+ placeholder: t(N),
189
189
  presets: t(E),
190
190
  ...e
191
191
  };
192
192
  });
193
193
  function j(e) {
194
194
  if (!e) {
195
- P(e);
195
+ w(e);
196
196
  return;
197
197
  }
198
198
  let a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1];
199
199
  const r = t(i) ? t(y) : void 0;
200
- P([p(a, r), p(n, r, !1)]);
200
+ w([p(a, r), p(n, r, !1)]);
201
201
  }
202
202
  function H(e) {
203
- const a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1], r = t(i) ? t(y) : void 0, f = e[0] ? p(a, r) : null, D = e[1] ? p(n, r, !1) : null;
204
- o.onOk?.([f, D]);
203
+ const a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1], r = t(i) ? t(y) : void 0, f = e[0] ? p(a, r) : null, O = e[1] ? p(n, r, !1) : null;
204
+ o.onOk?.([f, O]);
205
205
  }
206
206
  function K(e) {
207
207
  e && V(), o.onOpenChange?.(e);
208
208
  }
209
209
  function W(e, a) {
210
- if (M(e)) {
210
+ if (b(e)) {
211
211
  o.onChange?.(e, a);
212
212
  return;
213
213
  }
214
- const n = c(e[0]) ? d(e[0]) : e[0], r = c(e[1]) ? d(e[1]) : e[1], f = t(i) ? t(y) : void 0, D = e[0] ? p(n, f) : null, G = e[1] ? p(r, f, !1) : null;
215
- o.onChange?.([D, G], a);
214
+ const n = c(e[0]) ? d(e[0]) : e[0], r = c(e[1]) ? d(e[1]) : e[1], f = t(i) ? t(y) : void 0, O = e[0] ? p(n, f) : null, G = e[1] ? p(r, f, !1) : null;
215
+ o.onChange?.([O, G], a);
216
216
  }
217
217
  const $ = s(() => {
218
218
  const e = o.readModeSeparator;
219
219
  if (e)
220
- return Z(e) || se(e) ? o.readModeSeparator : O(m, null, [o.readModeSeparator]);
221
- const a = z.readModeSeparator?.();
222
- return a ? O(m, null, [a]) : re;
220
+ return Z(e) || se(e) ? o.readModeSeparator : P(m, null, [o.readModeSeparator]);
221
+ const a = x.readModeSeparator?.();
222
+ return a ? P(m, null, [a]) : re;
223
223
  });
224
- return (e, a) => e.mode === "read" ? (u(), g(m, {
224
+ return (e, a) => D.mode === "read" ? (u(), g(m, {
225
225
  key: 0
226
226
  }, [h.value ? (u(), g(m, {
227
227
  key: 0
228
228
  }, [S(C(h.value[0]?.format(y.value)) + " ", 1), (u(), k(q($.value))), S(" " + C(h.value[1]?.format(y.value)), 1)], 64)) : (u(), g(m, {
229
229
  key: 1
230
- }, [S(C(e.emptyText), 1)], 64))], 64)) : (u(), k(t(le), {
230
+ }, [S(C(D.emptyText), 1)], 64))], 64)) : (u(), k(t(le), {
231
231
  key: 1,
232
232
  compact: "",
233
233
  style: J({
@@ -241,7 +241,7 @@ const ze = /* @__PURE__ */ L({
241
241
  "default-active-first-option": "",
242
242
  "dropdown-match-select-width": !1
243
243
  }, {
244
- default: B(() => [(u(!0), g(m, null, w(o.timezone, (n) => (u(), k(t(de), {
244
+ default: B(() => [(u(!0), g(m, null, T(o.timezone, (n) => (u(), k(t(de), {
245
245
  key: n?.value,
246
246
  value: n?.value
247
247
  }, {
@@ -249,17 +249,17 @@ const ze = /* @__PURE__ */ L({
249
249
  _: 2
250
250
  }, 1032, ["value"]))), 128))]),
251
251
  _: 1
252
- }, 8, ["value"])) : Q("", !0), O(t(ie).RangePicker, ee(U.value, {
252
+ }, 8, ["value"])) : Q("", !0), P(t(ie).RangePicker, ee(U.value, {
253
253
  value: h.value,
254
254
  picker: I.value,
255
- format: N.value,
255
+ format: z.value,
256
256
  "onUpdate:value": j,
257
257
  onChange: W,
258
258
  onOk: H,
259
259
  onOpenChange: K
260
260
  }), oe({
261
261
  _: 2
262
- }, [w(t(b)(e.$slots, "readModeSeparator"), (n, r) => ({
262
+ }, [T(t(A)(e.$slots, "readModeSeparator"), (n, r) => ({
263
263
  name: r,
264
264
  fn: B((f) => [te(e.$slots, r, ne(ae(f || {})))])
265
265
  }))]), 1040, ["value", "picker", "format"])]),
@@ -268,5 +268,5 @@ const ze = /* @__PURE__ */ L({
268
268
  }
269
269
  });
270
270
  export {
271
- ze as default
271
+ xe as default
272
272
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as b, toDisplayString as p, resolveDynamicComponent as h } from "vue";
2
- import { getTimeFormatToZone as m } from "@aplus-frontend/utils";
3
- import c from "dayjs";
1
+ import { defineComponent as v, computed as r, createElementBlock as i, openBlock as l, Fragment as m, createTextVNode as p, createBlock as b, toDisplayString as u, resolveDynamicComponent as h } from "vue";
2
+ import { getTimeFormatToZone as c } from "@aplus-frontend/utils";
3
+ import y from "dayjs";
4
4
  import { isNil as g } from "lodash-unified";
5
5
  import { ApFieldDatePresetFormats as w, PRESET_FORMAT_MAP as C } from "../date/constant.mjs";
6
6
  import { useDateTimezone as S } from "../hooks/use-date-timezone.mjs";
7
- const M = /* @__PURE__ */ v({
7
+ const F = /* @__PURE__ */ v({
8
8
  name: "ApFieldDateRangeRead",
9
9
  __name: "read",
10
10
  props: {
@@ -88,33 +88,33 @@ const M = /* @__PURE__ */ v({
88
88
  readModeSeparator: {},
89
89
  presets: { type: [Array, Boolean] }
90
90
  },
91
- setup(y) {
92
- const e = y, { currentTimezone: a } = S(e), t = n(() => {
91
+ setup(a) {
92
+ const e = a, { currentTimezone: t } = S(e), n = r(() => {
93
93
  const o = e.value;
94
94
  if (g(o) || !o?.length)
95
95
  return o;
96
- const s = a.value ? m(
96
+ const d = t.value ? c(
97
97
  e.value[0],
98
- a.value
99
- ) : e.value?.[0], B = e.timezone ? m(
98
+ t.value
99
+ ) : e.value?.[0], B = e.timezone ? c(
100
100
  e.value[1],
101
- a.value
101
+ t.value
102
102
  ) : e.value?.[1];
103
- return [c(s), c(B)];
104
- }), f = n(
103
+ return [y(d), y(B)];
104
+ }), f = r(
105
105
  () => w.indexOf(e.format) > -1
106
- ), u = n(
106
+ ), s = r(
107
107
  () => f.value ? C[e.format] : e.format
108
108
  );
109
- return (o, s) => t.value ? (r(), d(i, { key: 0 }, [
110
- l(p(t.value[0]?.format(u.value)) + " ", 1),
111
- (r(), b(h(o.readModeSeparator))),
112
- l(" " + p(t.value[1]?.format(u.value)), 1)
113
- ], 64)) : (r(), d(i, { key: 1 }, [
114
- l(p(o.emptyText), 1)
109
+ return (o, d) => n.value ? (l(), i(m, { key: 0 }, [
110
+ p(u(n.value[0]?.format(s.value)) + " ", 1),
111
+ (l(), b(h(a.readModeSeparator))),
112
+ p(" " + u(n.value[1]?.format(s.value)), 1)
113
+ ], 64)) : (l(), i(m, { key: 1 }, [
114
+ p(u(a.emptyText), 1)
115
115
  ], 64));
116
116
  }
117
117
  });
118
118
  export {
119
- M as default
119
+ F as default
120
120
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as N, shallowRef as x, computed as D, unref as t, createElementBlock as s, createBlock as P, openBlock as l, normalizeClass as i, createCommentVNode as m, createElementVNode as R, renderSlot as u, toDisplayString as V, mergeProps as $, createSlots as I, renderList as M, withCtx as A, normalizeProps as U, guardReactiveProps as z } from "vue";
1
+ import { defineComponent as C, shallowRef as N, computed as D, unref as t, createElementBlock as i, createBlock as P, openBlock as l, normalizeClass as u, createCommentVNode as f, createElementVNode as R, renderSlot as d, toDisplayString as V, mergeProps as $, createSlots as I, renderList as M, withCtx as A, normalizeProps as U, guardReactiveProps as z } from "vue";
2
2
  import { InputNumber as E } from "@aplus-frontend/antdv";
3
3
  import { isNil as T, omit as w } from "lodash-unified";
4
4
  import { roundWith as F, toDecimalMark as O } from "../../utils/format.mjs";
@@ -7,9 +7,9 @@ import "../../hooks/index.mjs";
7
7
  import { useDefaultPlaceholder as W } from "../hooks/use-default-placeholder.mjs";
8
8
  import L from "../style/index.mjs";
9
9
  import { addZeroToDecimalPlaces as Z } from "./helper.mjs";
10
- import { useNamespace as _ } from "../../config-provider/hooks/use-namespace.mjs";
11
- import { useControllableValue as j } from "../../hooks/useControllableValue.mjs";
12
- const le = /* @__PURE__ */ N({
10
+ import { useNamespace as j } from "../../config-provider/hooks/use-namespace.mjs";
11
+ import { useControllableValue as q } from "../../hooks/useControllableValue.mjs";
12
+ const le = /* @__PURE__ */ C({
13
13
  name: "ApFieldNumber",
14
14
  __name: "index",
15
15
  props: {
@@ -61,8 +61,8 @@ const le = /* @__PURE__ */ N({
61
61
  limitDecimalsRetain: { type: Boolean }
62
62
  },
63
63
  emits: ["update:value"],
64
- setup(f, { expose: c, emit: y }) {
65
- const v = y, { b: r } = _("field-number"), h = L("field"), o = f, n = x(), { value: p, updateValue: B } = j(
64
+ setup(r, { expose: c, emit: y }) {
65
+ const v = y, { b: n } = j("field-number"), h = L("field"), o = r, s = N(), { value: p, updateValue: B } = q(
66
66
  o,
67
67
  v
68
68
  ), b = W("Number", o), g = D(() => {
@@ -74,40 +74,40 @@ const le = /* @__PURE__ */ N({
74
74
  return o.precision && o.limitDecimalsRetain && (a = Z(a, o.precision)), a;
75
75
  });
76
76
  function k() {
77
- n.value?.focus();
77
+ s.value?.focus();
78
78
  }
79
79
  function S() {
80
- n.value?.blur();
80
+ s.value?.blur();
81
81
  }
82
- return c({ focus: k, blur: S }), (e, a) => e.mode === "read" ? (l(), s("span", {
82
+ return c({ focus: k, blur: S }), (e, a) => r.mode === "read" ? (l(), i("span", {
83
83
  key: 0,
84
- class: i([t(r)(), t(h)])
84
+ class: u([t(n)(), t(h)])
85
85
  }, [
86
- e.$slots.prefix ? (l(), s("span", {
86
+ e.$slots.prefix ? (l(), i("span", {
87
87
  key: 0,
88
- class: i(t(r)("label-left"))
88
+ class: u(t(n)("label-left"))
89
89
  }, [
90
- u(e.$slots, "prefix")
91
- ], 2)) : m("", !0),
90
+ d(e.$slots, "prefix")
91
+ ], 2)) : f("", !0),
92
92
  R("span", null, V(g.value), 1),
93
- e.$slots.addonAfter ? (l(), s("span", {
93
+ e.$slots.addonAfter ? (l(), i("span", {
94
94
  key: 1,
95
- class: i(t(r)("label-right"))
95
+ class: u(t(n)("label-right"))
96
96
  }, [
97
- u(e.$slots, "addonAfter")
98
- ], 2)) : m("", !0)
97
+ d(e.$slots, "addonAfter")
98
+ ], 2)) : f("", !0)
99
99
  ], 2)) : (l(), P(t(E), $({ key: 1 }, t(w)(o, ["value", "onUpdate:value", "mode"]), {
100
100
  ref_key: "inputRef",
101
- ref: n,
101
+ ref: s,
102
102
  placeholder: t(b),
103
103
  value: t(p),
104
- mode: e.inputMode,
104
+ mode: r.inputMode,
105
105
  "onUpdate:value": t(B)
106
106
  }), I({ _: 2 }, [
107
- M(e.$slots, (q, d) => ({
108
- name: d,
109
- fn: A((C) => [
110
- u(e.$slots, d, U(z(C || {})))
107
+ M(e.$slots, (G, m) => ({
108
+ name: m,
109
+ fn: A((x) => [
110
+ d(e.$slots, m, U(z(x || {})))
111
111
  ])
112
112
  }))
113
113
  ]), 1040, ["placeholder", "value", "mode", "onUpdate:value"]));
@@ -1,5 +1,5 @@
1
- import { defineComponent as V, shallowRef as _, ref as q, onMounted as C, computed as O, unref as e, createElementBlock as s, openBlock as a, Fragment as p, createTextVNode as S, toDisplayString as U, createBlock as m, mergeProps as G } from "vue";
2
- import { Spin as N, RadioGroup as z } from "@aplus-frontend/antdv";
1
+ import { defineComponent as V, shallowRef as q, ref as C, onMounted as O, computed as S, unref as e, createElementBlock as p, openBlock as a, Fragment as m, createTextVNode as U, toDisplayString as G, createBlock as c, mergeProps as N } from "vue";
2
+ import { Spin as _, RadioGroup as z } from "@aplus-frontend/antdv";
3
3
  import { isNil as F, omit as w } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
5
  import "../../hooks/index.mjs";
@@ -32,38 +32,38 @@ const $ = /* @__PURE__ */ V({
32
32
  request: {}
33
33
  },
34
34
  emits: ["update:value"],
35
- setup(d, { expose: f, emit: c }) {
36
- const t = d, v = c, l = _(), { options: r, updateOptions: y } = A(t), { value: u, updateValue: g } = L(t, v), { b: k, m: b } = M("field-radio"), x = D("field"), n = q(!1);
37
- C(() => {
38
- t.request && (n.value = !0, t.request?.().then((o) => y(o)).finally(() => {
39
- n.value = !1;
35
+ setup(l, { expose: d, emit: f }) {
36
+ const t = l, v = f, n = q(), { options: u, updateOptions: y } = A(t), { value: i, updateValue: x } = L(t, v), { b: g, m: k } = M("field-radio"), b = D("field"), r = C(!1);
37
+ O(() => {
38
+ t.request && (r.value = !0, t.request?.().then((o) => y(o)).finally(() => {
39
+ r.value = !1;
40
40
  }));
41
41
  });
42
- const h = O(() => {
43
- const o = e(u);
42
+ const h = S(() => {
43
+ const o = e(i);
44
44
  if (F(o))
45
45
  return t.emptyText;
46
- const i = r.value?.find(
46
+ const s = u.value?.find(
47
47
  (R) => o === E(R)
48
48
  );
49
- return I(i) || t.emptyText;
49
+ return I(s) || t.emptyText;
50
50
  });
51
51
  function B() {
52
- l.value?.focus();
52
+ n.value?.focus();
53
53
  }
54
54
  function T() {
55
- l.value?.blur();
55
+ n.value?.blur();
56
56
  }
57
- return f({
57
+ return d({
58
58
  focus: B,
59
59
  blur: T
60
- }), (o, i) => o.mode === "read" ? (a(), s(p, { key: 0 }, [
61
- S(U(h.value), 1)
62
- ], 64)) : (a(), s(p, { key: 1 }, [
63
- n.value ? (a(), m(e(N), {
60
+ }), (o, s) => l.mode === "read" ? (a(), p(m, { key: 0 }, [
61
+ U(G(h.value), 1)
62
+ ], 64)) : (a(), p(m, { key: 1 }, [
63
+ r.value ? (a(), c(e(_), {
64
64
  key: 0,
65
65
  size: "small"
66
- })) : (a(), m(e(z), G(
66
+ })) : (a(), c(e(z), N(
67
67
  { key: 1 },
68
68
  e(w)(t, [
69
69
  "value",
@@ -74,11 +74,11 @@ const $ = /* @__PURE__ */ V({
74
74
  ]),
75
75
  {
76
76
  ref_key: "radioGroupRef",
77
- ref: l,
78
- value: e(u),
79
- options: e(r),
80
- class: [e(k)(), o.vertical ? e(b)("vertical") : null, e(x)],
81
- "onUpdate:value": e(g)
77
+ ref: n,
78
+ value: e(i),
79
+ options: e(u),
80
+ class: [e(g)(), l.vertical ? e(k)("vertical") : null, e(b)],
81
+ "onUpdate:value": e(x)
82
82
  }
83
83
  ), null, 16, ["value", "options", "class", "onUpdate:value"]))
84
84
  ], 64));
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, shallowRef as B, useSlots as b, createElementBlock as x, createBlock as S, openBlock as r, toDisplayString as _, unref as e, mergeProps as g, createSlots as k, renderList as C, withCtx as P, renderSlot as I, normalizeProps as U, guardReactiveProps as w } from "vue";
1
+ import { defineComponent as h, shallowRef as B, useSlots as x, createElementBlock as b, createBlock as S, openBlock as r, toDisplayString as g, unref as e, mergeProps as _, createSlots as k, renderList as C, withCtx as P, renderSlot as I, normalizeProps as U, guardReactiveProps as w } from "vue";
2
2
  import { InputNumber as R } from "@aplus-frontend/antdv";
3
3
  import { omit as V } from "lodash-unified";
4
4
  import "../../hooks/index.mjs";
@@ -54,32 +54,32 @@ const E = { key: 0 }, q = /* @__PURE__ */ h({
54
54
  emptyText: { default: "--" }
55
55
  },
56
56
  emits: ["update:value"],
57
- setup(u, { expose: d, emit: s }) {
58
- const o = u, p = s, t = B(), { value: a, updateValue: i } = D(
57
+ setup(t, { expose: u, emit: d }) {
58
+ const o = t, s = d, a = B(), { value: l, updateValue: p } = D(
59
59
  o,
60
- p
61
- ), f = b(), c = z("Second", o);
62
- function m() {
63
- t.value?.focus();
60
+ s
61
+ ), i = x(), f = z("Second", o);
62
+ function c() {
63
+ a.value?.focus();
64
64
  }
65
- function y() {
66
- t.value?.blur();
65
+ function m() {
66
+ a.value?.blur();
67
67
  }
68
- return d({ focus: m, blur: y }), (l, F) => l.mode === "read" ? (r(), x("span", E, _(e(A)(Number(e(a)))), 1)) : (r(), S(e(R), g(
68
+ return u({ focus: c, blur: m }), (y, F) => t.mode === "read" ? (r(), b("span", E, g(e(A)(Number(e(l)))), 1)) : (r(), S(e(R), _(
69
69
  {
70
70
  key: 1,
71
71
  min: 0,
72
72
  style: { width: "100%" },
73
- placeholder: e(c),
74
- value: e(a)
73
+ placeholder: e(f),
74
+ value: e(l)
75
75
  },
76
76
  e(V)(o, ["value", "onUpdate:value", "min", "placeholder", "mode"]),
77
- { "onUpdate:value": e(i) }
77
+ { "onUpdate:value": e(p) }
78
78
  ), k({ _: 2 }, [
79
- C(f, (M, n) => ({
79
+ C(i, (M, n) => ({
80
80
  name: n,
81
81
  fn: P((v) => [
82
- I(l.$slots, n, U(w(v || {})))
82
+ I(y.$slots, n, U(w(v || {})))
83
83
  ])
84
84
  }))
85
85
  ]), 1040, ["placeholder", "value", "onUpdate:value"]));
@@ -1,6 +1,6 @@
1
- import { defineComponent as n, createElementBlock as t, openBlock as r, toDisplayString as l, unref as p } from "vue";
2
- import { formatSecond as s } from "./helper.mjs";
3
- const m = /* @__PURE__ */ n({
1
+ import { defineComponent as a, createElementBlock as n, openBlock as t, toDisplayString as r, unref as l } from "vue";
2
+ import { formatSecond as p } from "./helper.mjs";
3
+ const c = /* @__PURE__ */ a({
4
4
  name: "ApFieldSecond",
5
5
  __name: "read",
6
6
  props: {
@@ -48,11 +48,11 @@ const m = /* @__PURE__ */ n({
48
48
  onFocus: {},
49
49
  emptyText: { default: "--" }
50
50
  },
51
- setup(o) {
52
- const a = o;
53
- return (e, d) => (r(), t("span", null, l(e.value ? p(s)(Number(a.value)) : e.emptyText), 1));
51
+ setup(e) {
52
+ const o = e;
53
+ return (d, s) => (t(), n("span", null, r(e.value ? l(p)(Number(o.value)) : e.emptyText), 1));
54
54
  }
55
55
  });
56
56
  export {
57
- m as default
57
+ c as default
58
58
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as B, ref as C, useSlots as S, onMounted as h, computed as U, unref as t, createVNode as s, Fragment as a, createBlock as i, createElementBlock as V, openBlock as u, resolveDynamicComponent as _, mergeProps as N, withCtx as q, renderSlot as z, normalizeProps as F, guardReactiveProps as P } from "vue";
1
+ import { defineComponent as B, ref as C, useSlots as S, onMounted as h, computed as U, unref as e, createVNode as u, Fragment as a, createBlock as i, createElementBlock as V, openBlock as s, resolveDynamicComponent as N, mergeProps as _, withCtx as q, renderSlot as z, normalizeProps as F, guardReactiveProps as P } from "vue";
2
2
  import { Spin as T, Segmented as O } from "@aplus-frontend/antdv";
3
- import { isFunction as f, isUndefined as R, isString as w, isNumber as A, omit as D } from "lodash-unified";
3
+ import { isFunction as c, isUndefined as R, isString as w, isNumber as A, omit as D } from "lodash-unified";
4
4
  import "../../hooks/index.mjs";
5
5
  import E from "../hooks/use-options.mjs";
6
6
  import { useControllableValue as M } from "../../hooks/useControllableValue.mjs";
@@ -40,48 +40,48 @@ const K = /* @__PURE__ */ B({
40
40
  request: {}
41
41
  },
42
42
  emits: ["update:value"],
43
- setup(c, {
43
+ setup(d, {
44
44
  emit: v
45
45
  }) {
46
- const o = c, {
46
+ const t = d, {
47
47
  options: p,
48
48
  updateOptions: y
49
- } = E(o), g = v, {
50
- value: d,
49
+ } = E(t), g = v, {
50
+ value: m,
51
51
  updateValue: b
52
- } = M(o, g), r = C(!1), k = S();
52
+ } = M(t, g), r = C(!1), k = S();
53
53
  h(() => {
54
- f(o.request) && (r.value = !0, o.request().then((e) => y(e)).finally(() => {
54
+ c(t.request) && (r.value = !0, t.request().then((o) => y(o)).finally(() => {
55
55
  r.value = !1;
56
56
  }));
57
57
  });
58
58
  const x = U(() => {
59
- const e = t(d);
60
- if (R(e))
61
- return s(a, null, [o.emptyText]);
62
- const l = t(p)?.find((m) => m === e || m?.value === e);
59
+ const o = e(m);
60
+ if (R(o))
61
+ return u(a, null, [t.emptyText]);
62
+ const l = e(p)?.find((f) => f === o || f?.value === o);
63
63
  if (w(l) || A(l))
64
- return s(a, null, [l]);
64
+ return u(a, null, [l]);
65
65
  const n = l?.label || k.label;
66
- return f(n) ? s(a, null, [n?.({
66
+ return c(n) ? u(a, null, [n?.({
67
67
  ...l
68
- })]) : s(a, null, [n || o.emptyText]);
68
+ })]) : u(a, null, [n || t.emptyText]);
69
69
  });
70
- return (e, l) => r.value ? (u(), i(t(T), {
70
+ return (o, l) => r.value ? (s(), i(e(T), {
71
71
  key: 0,
72
72
  size: "small"
73
- })) : (u(), V(a, {
73
+ })) : (s(), V(a, {
74
74
  key: 1
75
- }, [e.mode === "read" ? (u(), i(_(x.value), {
75
+ }, [d.mode === "read" ? (s(), i(N(x.value), {
76
76
  key: 0
77
- })) : (u(), i(t(O), N({
77
+ })) : (s(), i(e(O), _({
78
78
  key: 1
79
- }, t(D)(o, ["onUpdate:value", "value", "defaultValue", "options"]), {
80
- value: t(d),
81
- options: t(p),
82
- "onUpdate:value": t(b)
79
+ }, e(D)(t, ["onUpdate:value", "value", "defaultValue", "options"]), {
80
+ value: e(m),
81
+ options: e(p),
82
+ "onUpdate:value": e(b)
83
83
  }), {
84
- label: q((n) => [z(e.$slots, "label", F(P(n)))]),
84
+ label: q((n) => [z(o.$slots, "label", F(P(n)))]),
85
85
  _: 3
86
86
  }, 16, ["value", "options", "onUpdate:value"]))], 64));
87
87
  }
@@ -19,7 +19,7 @@ type ApFieldSelectSlots = {
19
19
  maxTagPlaceholder: any;
20
20
  optionLabel: any;
21
21
  default: any;
22
- dropdownRender: any;
22
+ option: any;
23
23
  };
24
24
  declare function __VLS_template(): {
25
25
  attrs: Partial<{}>;