@aplus-frontend/ui 7.4.5 → 7.6.0

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 (121) hide show
  1. package/es/index.mjs +208 -202
  2. package/es/src/ag-grid/editable/form-item.vue.mjs +14 -14
  3. package/es/src/ag-grid/editable/index.vue.mjs +20 -20
  4. package/es/src/ag-grid/index.vue.mjs +15 -15
  5. package/es/src/ap-field/date/index.vue.mjs +14 -14
  6. package/es/src/ap-field/date/read.vue2.mjs +3 -3
  7. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  8. package/es/src/ap-field/date-range/read.vue2.mjs +3 -3
  9. package/es/src/ap-form/item/index.vue.mjs +20 -20
  10. package/es/src/ap-form/item-group/helper.mjs +8 -8
  11. package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
  12. package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
  13. package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
  14. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  15. package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  16. package/es/src/ap-grid/editable/form-item.vue.mjs +7 -7
  17. package/es/src/ap-grid/editable/index.vue.mjs +38 -38
  18. package/es/src/ap-grid/index.vue.mjs +1 -1
  19. package/es/src/ap-table/ap-table.vue2.mjs +37 -36
  20. package/es/src/ap-table/constants.d.ts +5 -5
  21. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  22. package/es/src/business/ap-descriptions/style/index.mjs +2 -1
  23. package/es/src/business/ap-label/group/ApLabelGroup.mjs +14 -14
  24. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +6 -6
  25. package/es/src/business/ap-tag/ap-tag-group.vue.mjs +2 -2
  26. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  27. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  28. package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
  29. package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
  30. package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
  31. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  32. package/es/src/design-token/interface.d.ts +2 -0
  33. package/es/src/highlight/index.d.ts +3 -0
  34. package/es/src/highlight/index.mjs +2 -0
  35. package/es/src/highlight/index.vue.d.ts +31 -0
  36. package/es/src/highlight/index.vue.mjs +49 -0
  37. package/es/src/highlight/index.vue2.mjs +4 -0
  38. package/es/src/highlight/interface.d.ts +14 -0
  39. package/es/src/highlight/interface.mjs +1 -0
  40. package/es/src/highlight/style/index.d.ts +8 -0
  41. package/es/src/highlight/style/index.mjs +23 -0
  42. package/es/src/index.d.ts +2 -0
  43. package/es/src/index.mjs +309 -301
  44. package/es/src/locale/lang/en.mjs +17 -0
  45. package/es/src/locale/lang/zh-cn.mjs +17 -0
  46. package/es/src/time-ago/index.d.ts +4 -0
  47. package/es/src/time-ago/index.mjs +6 -0
  48. package/es/src/time-ago/index.vue.d.ts +10 -0
  49. package/es/src/time-ago/index.vue.mjs +47 -0
  50. package/es/src/time-ago/index.vue2.mjs +4 -0
  51. package/es/src/time-ago/interface.d.ts +16 -0
  52. package/es/src/time-ago/interface.mjs +1 -0
  53. package/es/src/time-ago/style/index.d.ts +3 -0
  54. package/es/src/time-ago/style/index.mjs +12 -0
  55. package/es/src/time-ago/useTimeAgo.d.ts +42 -0
  56. package/es/src/time-ago/useTimeAgo.mjs +57 -0
  57. package/es/src/time-ago/utils.d.ts +4 -0
  58. package/es/src/time-ago/utils.mjs +23 -0
  59. package/es/src/version.d.ts +1 -1
  60. package/es/src/version.mjs +1 -1
  61. package/lib/index.js +1 -1
  62. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  63. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  64. package/lib/src/ag-grid/index.vue.js +1 -1
  65. package/lib/src/ap-field/date/index.vue.js +1 -1
  66. package/lib/src/ap-field/date/read.vue2.js +1 -1
  67. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  68. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  69. package/lib/src/ap-form/item/index.vue.js +1 -1
  70. package/lib/src/ap-form/item-group/helper.js +1 -1
  71. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
  72. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
  73. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
  74. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  75. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  76. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  77. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  78. package/lib/src/ap-grid/index.vue.js +1 -1
  79. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  80. package/lib/src/ap-table/constants.d.ts +5 -5
  81. package/lib/src/business/ap-appendix/icons/file-icon.vue.js +1 -1
  82. package/lib/src/business/ap-descriptions/style/index.js +1 -1
  83. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  84. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  85. package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -1
  86. package/lib/src/business/ap-upload-file/icon/delete-icon.vue.js +1 -1
  87. package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
  88. package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -1
  89. package/lib/src/business/ap-view/icons/line-down.vue.js +1 -1
  90. package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -1
  91. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  92. package/lib/src/design-token/interface.d.ts +2 -0
  93. package/lib/src/highlight/index.d.ts +3 -0
  94. package/lib/src/highlight/index.js +1 -0
  95. package/lib/src/highlight/index.vue.d.ts +31 -0
  96. package/lib/src/highlight/index.vue.js +1 -0
  97. package/lib/src/highlight/index.vue2.js +1 -0
  98. package/lib/src/highlight/interface.d.ts +14 -0
  99. package/lib/src/highlight/interface.js +1 -0
  100. package/lib/src/highlight/style/index.d.ts +8 -0
  101. package/lib/src/highlight/style/index.js +1 -0
  102. package/lib/src/index.d.ts +2 -0
  103. package/lib/src/index.js +1 -1
  104. package/lib/src/locale/lang/en.js +1 -1
  105. package/lib/src/locale/lang/zh-cn.js +1 -1
  106. package/lib/src/time-ago/index.d.ts +4 -0
  107. package/lib/src/time-ago/index.js +1 -0
  108. package/lib/src/time-ago/index.vue.d.ts +10 -0
  109. package/lib/src/time-ago/index.vue.js +1 -0
  110. package/lib/src/time-ago/index.vue2.js +1 -0
  111. package/lib/src/time-ago/interface.d.ts +16 -0
  112. package/lib/src/time-ago/interface.js +1 -0
  113. package/lib/src/time-ago/style/index.d.ts +3 -0
  114. package/lib/src/time-ago/style/index.js +1 -0
  115. package/lib/src/time-ago/useTimeAgo.d.ts +42 -0
  116. package/lib/src/time-ago/useTimeAgo.js +1 -0
  117. package/lib/src/time-ago/utils.d.ts +4 -0
  118. package/lib/src/time-ago/utils.js +1 -0
  119. package/lib/src/version.d.ts +1 -1
  120. package/lib/src/version.js +1 -1
  121. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { defineComponent as O, useSlots as U, ref as y, watch as W, unref as n, createBlock as M, openBlock as $, withCtx as d, createVNode as w, mergeProps as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
1
+ import { defineComponent as G, useSlots as U, ref as y, watch as W, unref as n, createBlock as M, openBlock as $, withCtx as d, createVNode as w, mergeProps as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
2
2
  import { ApForm as u } from "../../ap-form/index.mjs";
3
3
  import { isEqual as ee, isArray as g, omit as oe } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
@@ -12,7 +12,7 @@ import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mj
12
12
  import { useControllableValue as re } from "../../hooks/useControllableValue.mjs";
13
13
  import { useGlobalConfig as se } from "../../config-provider/hooks/use-global-config.mjs";
14
14
  import ie from "../index.vue.mjs";
15
- const xe = /* @__PURE__ */ O({
15
+ const xe = /* @__PURE__ */ G({
16
16
  name: "EditableGrid",
17
17
  __name: "index",
18
18
  props: {
@@ -68,7 +68,7 @@ const xe = /* @__PURE__ */ O({
68
68
  rowExpandable: {},
69
69
  transformCellText: {},
70
70
  rowSelection: {
71
- type: Boolean
71
+ type: [Boolean, Object]
72
72
  },
73
73
  onLoadingChange: {},
74
74
  onShownColumnsChange: {},
@@ -129,12 +129,12 @@ const xe = /* @__PURE__ */ O({
129
129
  },
130
130
  emits: ["update:value"],
131
131
  setup(h, {
132
- expose: C,
133
- emit: R
132
+ expose: b,
133
+ emit: C
134
134
  }) {
135
- const b = U(), o = h, {
135
+ const R = U(), o = h, {
136
136
  b: v
137
- } = le("editable-aggrid"), x = ne("editable-aggrid"), B = R, s = y(), {
137
+ } = le("editable-aggrid"), x = ne("editable-aggrid"), B = C, s = y(), {
138
138
  value: r,
139
139
  updateValue: m
140
140
  } = re(o, B), l = y(), S = u.useWatch(o.name, l);
@@ -150,12 +150,12 @@ const xe = /* @__PURE__ */ O({
150
150
  remove: N,
151
151
  removeByKey: A,
152
152
  getRowData: V,
153
- getRowsData: k,
154
- setRowData: D,
155
- clear: K,
153
+ getRowsData: j,
154
+ setRowData: k,
155
+ clear: D,
156
156
  refreshRowIds: i
157
157
  } = te(o, l, r, m);
158
- function j() {
158
+ function K() {
159
159
  const e = s.value?._internalGridApi;
160
160
  if (!i.value?.length || !e)
161
161
  return;
@@ -183,10 +183,10 @@ const xe = /* @__PURE__ */ O({
183
183
  const t = e === "end" ? r.value.length - 1 : e;
184
184
  s.value?.scrollToRow(t, a);
185
185
  }
186
- function P(e, a) {
186
+ function O(e, a) {
187
187
  s.value?.scrollToColumn(e, a);
188
188
  }
189
- return C({
189
+ return b({
190
190
  resetFields: I,
191
191
  validateFields: H,
192
192
  add: F,
@@ -194,13 +194,13 @@ const xe = /* @__PURE__ */ O({
194
194
  remove: N,
195
195
  removeByKey: A,
196
196
  getRowData: V,
197
- getRowsData: k,
198
- setRowData: D,
199
- clear: K,
197
+ getRowsData: j,
198
+ setRowData: k,
199
+ clear: D,
200
200
  setTableData: L,
201
201
  scrollTo: c,
202
202
  scrollToRow: c,
203
- scrollToColumn: P
203
+ scrollToColumn: O
204
204
  }), (e, a) => ($(), M(n(u), {
205
205
  ref_key: "formRef",
206
206
  ref: l,
@@ -223,12 +223,12 @@ const xe = /* @__PURE__ */ O({
223
223
  columns: n(_),
224
224
  "data-source": n(r),
225
225
  "search-form": !1,
226
- onUpdate: j
226
+ onUpdate: K
227
227
  }), J({
228
228
  _: 2
229
- }, [Q(b, (t, f) => ({
229
+ }, [Q(R, (t, f) => ({
230
230
  name: f,
231
- fn: d((G) => [X(e.$slots, f, Y(Z(G || {})))])
231
+ fn: d((P) => [X(e.$slots, f, Y(Z(P || {})))])
232
232
  }))]), 1040, ["class", "columns", "data-source"])]),
233
233
  _: 3
234
234
  }, 8, ["name"])]),
@@ -1,6 +1,6 @@
1
- import { defineComponent as po, useSlots as fo, ref as M, toRef as F, unref as t, computed as n, nextTick as z, watch as G, createElementBlock as L, openBlock as h, normalizeStyle as O, normalizeClass as f, createCommentVNode as se, createElementVNode as B, createVNode as ie, mergeProps as W, createSlots as go, withCtx as ue, Fragment as wo, renderList as So, createBlock as H, resolveDynamicComponent as Co, renderSlot as de, withDirectives as ho, vShow as yo } from "vue";
1
+ import { defineComponent as po, useSlots as fo, ref as M, toRef as F, unref as t, computed as n, nextTick as z, watch as G, createElementBlock as O, openBlock as h, normalizeStyle as L, normalizeClass as f, createCommentVNode as se, createElementVNode as B, createVNode as ie, mergeProps as W, createSlots as go, withCtx as ue, Fragment as wo, renderList as So, createBlock as H, resolveDynamicComponent as Co, renderSlot as de, withDirectives as ho, vShow as yo } from "vue";
2
2
  import { AgGridVue as Ro } from "ag-grid-vue3";
3
- import { ModuleRegistry as vo, ValidationModule as bo, ColumnAutoSizeModule as Mo, PinnedRowModule as Fo, RowAutoHeightModule as Bo, RowStyleModule as ko, CellSpanModule as xo, CellStyleModule as Io, TooltipModule as Ao, RowSelectionModule as No, LocaleModule as To, ValueCacheModule as Do, GridStateModule as Eo, ColumnApiModule as Po, RowApiModule as Ko, CellApiModule as Vo, RenderApiModule as zo, EventApiModule as Go, ClientSideRowModelApiModule as Lo, ClientSideRowModelModule as Oo } from "ag-grid-community";
3
+ import { ModuleRegistry as vo, ValidationModule as bo, ColumnAutoSizeModule as Mo, PinnedRowModule as Fo, RowAutoHeightModule as Bo, RowStyleModule as ko, CellSpanModule as xo, CellStyleModule as Io, TooltipModule as Ao, RowSelectionModule as No, LocaleModule as To, ValueCacheModule as Do, GridStateModule as Eo, ColumnApiModule as Po, RowApiModule as Ko, CellApiModule as Vo, RenderApiModule as zo, EventApiModule as Go, ClientSideRowModelApiModule as Oo, ClientSideRowModelModule as Lo } from "ag-grid-community";
4
4
  import { mergeProps as Wo } from "./utils.mjs";
5
5
  import { Spin as Ho, Pagination as Uo } from "@aplus-frontend/antdv";
6
6
  import { isUndefined as k, isFunction as N } from "lodash-unified";
@@ -71,7 +71,7 @@ const Qt = /* @__PURE__ */ po({
71
71
  rowExpandable: {},
72
72
  transformCellText: {},
73
73
  columns: {},
74
- rowSelection: { type: Boolean },
74
+ rowSelection: { type: [Boolean, Object] },
75
75
  card: { type: Boolean },
76
76
  params: {},
77
77
  request: {},
@@ -129,8 +129,8 @@ const Qt = /* @__PURE__ */ po({
129
129
  Vo,
130
130
  zo,
131
131
  Go,
132
- Lo,
133
- Oo
132
+ Oo,
133
+ Lo
134
134
  ]);
135
135
  const o = me, U = fo(), { e: x, b: d, be: ge } = mt("ag-grid"), { lang: _ } = pt(), we = ut("ag-grid"), y = M(o.size), Se = et(
136
136
  y,
@@ -228,8 +228,8 @@ const Qt = /* @__PURE__ */ po({
228
228
  unSelect: ze,
229
229
  selectedRows: P,
230
230
  selectedRowKeys: Ge,
231
- clearAll: Le,
232
- selectMultiByKeys: Oe,
231
+ clearAll: Oe,
232
+ selectMultiByKeys: Le,
233
233
  selectMulti: We,
234
234
  unSelectMulti: He
235
235
  } = qo({
@@ -277,10 +277,10 @@ const Qt = /* @__PURE__ */ po({
277
277
  }, $e = () => {
278
278
  R = !0;
279
279
  }, V = () => {
280
- Le(), s.value?.deselectAll();
280
+ Oe(), s.value?.deselectAll();
281
281
  };
282
282
  function qe(e) {
283
- Oe(e), z(() => {
283
+ Le(e), z(() => {
284
284
  A({});
285
285
  });
286
286
  }
@@ -463,14 +463,14 @@ const Qt = /* @__PURE__ */ po({
463
463
  refreshCells: io,
464
464
  redrawRows: uo,
465
465
  _internalGridApi: n(() => s.value)
466
- }), (e, r) => (h(), L("div", {
466
+ }), (e, r) => (h(), O("div", {
467
467
  class: f(eo.value),
468
- style: O(e.wrapperStyle)
468
+ style: L(e.wrapperStyle)
469
469
  }, [
470
- t(k)(e.dataSource) && e.searchForm !== !1 && t($).length > 0 ? (h(), L("div", {
470
+ t(k)(e.dataSource) && e.searchForm !== !1 && t($).length > 0 ? (h(), O("div", {
471
471
  key: 0,
472
472
  class: f(e.card ? t(x)("search-wrapper") : null),
473
- style: O(e.searchFormWrapperStyle)
473
+ style: L(e.searchFormWrapperStyle)
474
474
  }, [
475
475
  ie(t(_o).SearchForm, W(e.searchForm || {}, {
476
476
  ref_key: "formRef",
@@ -481,7 +481,7 @@ const Qt = /* @__PURE__ */ po({
481
481
  onReset: t(E)
482
482
  }), go({
483
483
  default: ue(() => [
484
- (h(!0), L(wo, null, So(t($), (l) => (h(), H(Co(l.renderNode), {
484
+ (h(!0), O(wo, null, So(t($), (l) => (h(), H(Co(l.renderNode), {
485
485
  key: l.dataIndex
486
486
  }))), 128))
487
487
  ]),
@@ -498,7 +498,7 @@ const Qt = /* @__PURE__ */ po({
498
498
  ], 6)) : se("", !0),
499
499
  B("div", {
500
500
  class: f([t(x)("table-wrapper"), e.card ? t(x)("table-wrapper-card") : null]),
501
- style: O(e.tableWrapperStyle)
501
+ style: L(e.tableWrapperStyle)
502
502
  }, [
503
503
  B("div", {
504
504
  class: f(t(d)("header-wrapper"))
@@ -1,9 +1,9 @@
1
- import { defineComponent as E, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as N, withCtx as s, createVNode as P, createCommentVNode as I, isRef as j, renderList as b, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as W, guardReactiveProps as $ } from "vue";
1
+ import { defineComponent as E, computed as r, unref as t, createElementBlock as B, createBlock as y, openBlock as i, Fragment as g, createTextVNode as k, toDisplayString as w, normalizeStyle as N, withCtx as s, createVNode as b, createCommentVNode as j, isRef as I, renderList as P, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as W, guardReactiveProps as $ } from "vue";
2
2
  import u from "dayjs";
3
3
  import { InputGroup as G, FormItemRest as L, Select as Y, SelectOption as Z, DatePicker as q } from "@aplus-frontend/antdv";
4
4
  import { ApFieldDatePresetFormats as J, PRESET_FORMAT_MAP as C, PRESET_FORMAT_PICK_MAP as Q, PRESET_FORMAT_TIME_MAP as X } from "./constant.mjs";
5
5
  import "../../hooks/index.mjs";
6
- import { isNil as S, omit as ee } from "lodash-unified";
6
+ import { isNil as O, omit as ee } from "lodash-unified";
7
7
  import { formatDayWithTimezone as oe } from "./helper.mjs";
8
8
  import { getTimeFormatToZone as te } from "@aplus-frontend/utils";
9
9
  import { useDefaultPlaceholder as ae } from "../hooks/use-default-placeholder.mjs";
@@ -51,7 +51,7 @@ const he = /* @__PURE__ */ E({
51
51
  autocomplete: {},
52
52
  direction: {},
53
53
  showToday: { type: Boolean, default: void 0 },
54
- showTime: { type: Boolean, default: void 0 },
54
+ showTime: { type: [Boolean, Object], default: void 0 },
55
55
  picker: {},
56
56
  prefixCls: {},
57
57
  defaultPickerValue: {},
@@ -92,16 +92,16 @@ const he = /* @__PURE__ */ E({
92
92
  timezone: {}
93
93
  },
94
94
  emits: ["update:value"],
95
- setup(T, { emit: F }) {
96
- const e = T, O = F, { value: f, updateValue: h } = le(
95
+ setup(S, { emit: T }) {
96
+ const e = S, F = T, { value: f, updateValue: h } = le(
97
97
  e,
98
- O
98
+ F
99
99
  ), _ = ae("Date", e), { currentTimezone: d } = ne(e), l = r(
100
100
  () => J.indexOf(e.format) > -1
101
101
  ), A = r(() => e.shownFormat ? e.shownFormat : l.value ? C[e.format] : e.format), m = r(
102
102
  () => l.value ? C[e.format] : e.format
103
103
  ), c = r(() => {
104
- if (S(t(f)))
104
+ if (O(t(f)))
105
105
  return;
106
106
  let o = u(t(f));
107
107
  return e.timezone && (o = u(te(t(f), d.value))), o;
@@ -122,7 +122,7 @@ const he = /* @__PURE__ */ E({
122
122
  };
123
123
  }), v = (o, n, a = !0) => oe(d.value)(o, n, a);
124
124
  function D(o) {
125
- if (S(o)) {
125
+ if (O(o)) {
126
126
  h(null);
127
127
  return;
128
128
  }
@@ -161,19 +161,19 @@ const he = /* @__PURE__ */ E({
161
161
  })
162
162
  }, {
163
163
  default: s(() => [
164
- P(t(L), null, {
164
+ b(t(L), null, {
165
165
  default: s(() => [
166
166
  Array.isArray(e.timezone) && e.timezone.length ? (i(), y(t(Y), {
167
167
  key: 0,
168
168
  value: t(d),
169
- "onUpdate:value": n[0] || (n[0] = (a) => j(d) ? d.value = a : null),
169
+ "onUpdate:value": n[0] || (n[0] = (a) => I(d) ? d.value = a : null),
170
170
  "default-active-first-option": "",
171
171
  "dropdown-match-select-width": !1,
172
172
  style: { "max-width": "50%" },
173
173
  disabled: o.disabled
174
174
  }, {
175
175
  default: s(() => [
176
- (i(!0), B(g, null, b(e.timezone, (a) => (i(), y(t(Z), {
176
+ (i(!0), B(g, null, P(e.timezone, (a) => (i(), y(t(Z), {
177
177
  key: a?.value,
178
178
  value: a?.value
179
179
  }, {
@@ -184,11 +184,11 @@ const he = /* @__PURE__ */ E({
184
184
  }, 1032, ["value"]))), 128))
185
185
  ]),
186
186
  _: 1
187
- }, 8, ["value", "disabled"])) : I("", !0)
187
+ }, 8, ["value", "disabled"])) : j("", !0)
188
188
  ]),
189
189
  _: 1
190
190
  }),
191
- P(t(q), U(M.value, {
191
+ b(t(q), U(M.value, {
192
192
  value: c.value,
193
193
  format: A.value,
194
194
  picker: R.value,
@@ -196,7 +196,7 @@ const he = /* @__PURE__ */ E({
196
196
  onChange: V,
197
197
  onOk: x
198
198
  }), H({ _: 2 }, [
199
- b(o.$slots, (a, p) => ({
199
+ P(o.$slots, (a, p) => ({
200
200
  name: p,
201
201
  fn: s((z) => [
202
202
  K(o.$slots, p, W($(z || {})))
@@ -4,7 +4,7 @@ import { isNil as m } from "lodash-unified";
4
4
  import { getTimeFormatToZone as c } from "@aplus-frontend/utils";
5
5
  import { useDateTimezone as f } from "../hooks/use-date-timezone.mjs";
6
6
  import { ApFieldDatePresetFormats as y, PRESET_FORMAT_MAP as B } from "./constant.mjs";
7
- const T = /* @__PURE__ */ u({
7
+ const S = /* @__PURE__ */ u({
8
8
  name: "ApFieldDateRead",
9
9
  __name: "read",
10
10
  props: {
@@ -46,7 +46,7 @@ const T = /* @__PURE__ */ u({
46
46
  autocomplete: {},
47
47
  direction: {},
48
48
  showToday: { type: Boolean },
49
- showTime: { type: Boolean },
49
+ showTime: { type: [Boolean, Object] },
50
50
  picker: {},
51
51
  prefixCls: {},
52
52
  defaultPickerValue: {},
@@ -101,5 +101,5 @@ const T = /* @__PURE__ */ u({
101
101
  }
102
102
  });
103
103
  export {
104
- T as default
104
+ S as default
105
105
  };
@@ -1,4 +1,4 @@
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 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 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";
2
2
  import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as T, PRESET_FORMAT_PICK_MAP as le, PRESET_FORMAT_TIME_MAP as ue } from "../date/constant.mjs";
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as M, omit as b, isString as c, isFunction as de } from "lodash-unified";
@@ -103,7 +103,7 @@ const ze = /* @__PURE__ */ L({
103
103
  },
104
104
  variant: {},
105
105
  showTime: {
106
- type: Boolean,
106
+ type: [Boolean, Object],
107
107
  default: void 0
108
108
  },
109
109
  showNow: {
@@ -166,7 +166,7 @@ const ze = /* @__PURE__ */ L({
166
166
  }) {
167
167
  const o = R, _ = F, z = Y(), i = s(() => re.indexOf(o.format) > -1), y = s(() => i.value ? T[o.format] : o.format), {
168
168
  value: v,
169
- updateValue: O
169
+ updateValue: P
170
170
  } = ke(o, _), N = s(() => o.shownFormat ? o.shownFormat : i.value ? T[o.format] : o.format), x = ve("DateRange", o), {
171
171
  currentTimezone: l
172
172
  } = ge(o), {
@@ -192,12 +192,12 @@ const ze = /* @__PURE__ */ L({
192
192
  });
193
193
  function j(e) {
194
194
  if (!e) {
195
- O(e);
195
+ P(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
- O([p(a, r), p(n, r, !1)]);
200
+ P([p(a, r), p(n, r, !1)]);
201
201
  }
202
202
  function H(e) {
203
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;
@@ -217,9 +217,9 @@ const ze = /* @__PURE__ */ L({
217
217
  const $ = s(() => {
218
218
  const e = o.readModeSeparator;
219
219
  if (e)
220
- return Z(e) || de(e) ? o.readModeSeparator : P(m, null, [o.readModeSeparator]);
220
+ return Z(e) || de(e) ? o.readModeSeparator : O(m, null, [o.readModeSeparator]);
221
221
  const a = z.readModeSeparator?.();
222
- return a ? P(m, null, [a]) : ce;
222
+ return a ? O(m, null, [a]) : ce;
223
223
  });
224
224
  return (e, a) => e.mode === "read" ? (u(), g(m, {
225
225
  key: 0
@@ -249,7 +249,7 @@ const ze = /* @__PURE__ */ L({
249
249
  _: 2
250
250
  }, 1032, ["value"]))), 128))]),
251
251
  _: 1
252
- }, 8, ["value"])) : Q("", !0), P(t(fe).RangePicker, ee(U.value, {
252
+ }, 8, ["value"])) : Q("", !0), O(t(fe).RangePicker, ee(U.value, {
253
253
  value: h.value,
254
254
  picker: I.value,
255
255
  format: N.value,
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as h, toDisplayString as p, resolveDynamicComponent as b } from "vue";
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
2
  import { isNil as g } from "lodash-unified";
3
3
  import { useDateTimezone as w } from "../hooks/use-date-timezone.mjs";
4
4
  import { getTimeFormatToZone as m } from "@aplus-frontend/utils";
@@ -60,7 +60,7 @@ const M = /* @__PURE__ */ v({
60
60
  size: {},
61
61
  bordered: { type: Boolean },
62
62
  variant: {},
63
- showTime: { type: Boolean },
63
+ showTime: { type: [Boolean, Object] },
64
64
  showNow: { type: Boolean },
65
65
  order: { type: Boolean },
66
66
  defaultOpenValue: {},
@@ -108,7 +108,7 @@ const M = /* @__PURE__ */ v({
108
108
  );
109
109
  return (o, s) => t.value ? (r(), d(i, { key: 0 }, [
110
110
  l(p(t.value[0]?.format(u.value)) + " ", 1),
111
- (r(), h(b(o.readModeSeparator))),
111
+ (r(), b(h(o.readModeSeparator))),
112
112
  l(" " + p(t.value[1]?.format(u.value)), 1)
113
113
  ], 64)) : (r(), d(i, { key: 1 }, [
114
114
  l(p(o.emptyText), 1)
@@ -3,9 +3,9 @@ import { Form as X, Tooltip as Z, TypographyText as ee } from "@aplus-frontend/a
3
3
  import { useToken as oe } from "@aplus-frontend/antdv/es/theme/internal";
4
4
  import { isFunction as F, cloneDeep as te, isArray as re, omit as V } from "lodash-unified";
5
5
  import { apFormItemColPropKeys as le } from "../constant.mjs";
6
- import { QuestionCircleOutlined as ae } from "@ant-design/icons-vue";
6
+ import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
7
7
  import "../../config-provider/index.mjs";
8
- import { useInjectForm as ne } from "../context.mjs";
8
+ import { useInjectForm as ae } from "../context.mjs";
9
9
  import { isPromise as ie } from "@fruits-chain/utils";
10
10
  import { getValidVNodeList as se } from "../../utils/slot.mjs";
11
11
  import ue from "../style/item.mjs";
@@ -58,7 +58,7 @@ const Ce = /* @__PURE__ */ _({
58
58
  disabled: { type: Boolean }
59
59
  },
60
60
  setup(g, { expose: h }) {
61
- const o = g, m = j(), { model: p, updateModel: B, internalInstance: C } = ne(), { m: u, b: k } = de("ap-form-item"), x = ue("ap-form-item"), d = y(!1), n = y(), [, N] = oe();
61
+ const o = g, m = j(), { model: p, updateModel: B, internalInstance: C } = ae(), { m: u, b: k } = de("ap-form-item"), P = ue("ap-form-item"), d = y(!1), a = y(), [, x] = oe();
62
62
  E(async () => {
63
63
  let e = F(o.initialValue) ? o.initialValue() : o.initialValue;
64
64
  ie(e) && (e = await e), C?.registerField({
@@ -68,11 +68,11 @@ const Ce = /* @__PURE__ */ _({
68
68
  });
69
69
  });
70
70
  const c = M(() => o.name ? re(o.name) ? o.name.reduce((e, t) => e?.[t], r(p)) : p?.value[o.name] : null);
71
- function P(e, t) {
72
- const l = Object.keys(t), a = { ...t };
71
+ function N(e, t) {
72
+ const l = Object.keys(t), n = { ...t };
73
73
  return l.forEach((s) => {
74
- s in e || delete a[s];
75
- }), console.log("result", e), a;
74
+ s in e || delete n[s];
75
+ }), n;
76
76
  }
77
77
  function I() {
78
78
  const e = m.default?.() || [];
@@ -81,14 +81,14 @@ const Ce = /* @__PURE__ */ _({
81
81
  const t = se(e)[0];
82
82
  if (!t)
83
83
  return null;
84
- const l = t?.type?.props ?? {}, a = {
84
+ const l = t?.type?.props ?? {}, n = {
85
85
  variant: o.bordered ? "borderless" : t?.props?.variant,
86
86
  bordered: o.bordered ? !1 : t?.props?.bordered,
87
87
  onFocus: T,
88
88
  onBlur: w
89
89
  };
90
90
  return O(t, {
91
- ...P(l, a),
91
+ ...N(l, n),
92
92
  [o.valuePropName]: r(c),
93
93
  [`onUpdate:${o.valuePropName}`]: S
94
94
  });
@@ -103,16 +103,16 @@ const Ce = /* @__PURE__ */ _({
103
103
  d.value = !1;
104
104
  }
105
105
  function z() {
106
- n.value?.onFieldBlur();
106
+ a.value?.onFieldBlur();
107
107
  }
108
108
  function R() {
109
- n.value?.onFieldChange();
109
+ a.value?.onFieldChange();
110
110
  }
111
111
  function A() {
112
- n.value?.clearValidate();
112
+ a.value?.clearValidate();
113
113
  }
114
114
  function D() {
115
- n.value?.resetField();
115
+ a.value?.resetField();
116
116
  }
117
117
  function L(e = !1) {
118
118
  const t = r(c);
@@ -130,7 +130,7 @@ const Ce = /* @__PURE__ */ _({
130
130
  }), (e, t) => (v(), b(r(X).Item, $(
131
131
  {
132
132
  ref_key: "formItemRef",
133
- ref: n
133
+ ref: a
134
134
  },
135
135
  r(V)(o, [...r(le), "tooltip", "label", "description"]),
136
136
  {
@@ -139,7 +139,7 @@ const Ce = /* @__PURE__ */ _({
139
139
  [r(u)("focused")]: e.bordered && d.value,
140
140
  [r(u)("disabled")]: e.bordered && e.disabled,
141
141
  [r(k)()]: !0,
142
- [r(x)]: !0
142
+ [r(P)]: !0
143
143
  },
144
144
  colon: e.bordered ? !1 : o.colon
145
145
  }
@@ -159,9 +159,9 @@ const Ce = /* @__PURE__ */ _({
159
159
  title: o.tooltip
160
160
  }, {
161
161
  default: i(() => [
162
- f(r(ae), {
162
+ f(r(ne), {
163
163
  style: G({
164
- color: r(N).colorTextTertiary,
164
+ color: r(x).colorTextTertiary,
165
165
  fontSize: "14px",
166
166
  transform: "translateY(1px)"
167
167
  })
@@ -184,10 +184,10 @@ const Ce = /* @__PURE__ */ _({
184
184
  ]),
185
185
  key: "1"
186
186
  } : void 0,
187
- Q(r(V)(m, "default"), (l, a) => ({
188
- name: a,
187
+ Q(r(V)(m, "default"), (l, n) => ({
188
+ name: n,
189
189
  fn: i((s) => [
190
- H(e.$slots, a, J(W(s || {})))
190
+ H(e.$slots, n, J(W(s || {})))
191
191
  ])
192
192
  }))
193
193
  ]), 1040, ["class", "colon"]));
@@ -1,5 +1,5 @@
1
- import { isFunction as u, isArray as i } from "lodash-unified";
2
- import { isDef as c } from "../../utils/index.mjs";
1
+ import { isFunction as c, isArray as u } from "lodash-unified";
2
+ import { isDef as p } from "../../utils/index.mjs";
3
3
  const s = (r) => r <= 1 ? 1 : r, o = (r, t = 1) => {
4
4
  const n = Math.floor(24 / r), e = n * t;
5
5
  return e > 24 ? n : e;
@@ -11,22 +11,22 @@ const s = (r) => r <= 1 ? 1 : r, o = (r, t = 1) => {
11
11
  xl: o(r, t),
12
12
  xxl: o(r, t)
13
13
  });
14
- function p(r) {
15
- return u(r.type) ? r.type() : r;
14
+ function i(r) {
15
+ return c(r.type) ? r.type() : r;
16
16
  }
17
17
  function f(r) {
18
18
  const t = [], n = r.filter(
19
- (e) => e && p(e) && e.type !== Symbol.for("v-cmt")
19
+ (e) => e && i(e) && e.type !== Symbol.for("v-cmt")
20
20
  );
21
21
  for (const e of n)
22
22
  if (e.type === Symbol.for("v-fgt")) {
23
23
  const l = f(e.children);
24
24
  t.push(...l);
25
- } else if (i(e)) {
25
+ } else if (u(e)) {
26
26
  const l = f(e);
27
27
  t.push(...l);
28
28
  } else
29
- t.push(e);
29
+ t.push(i(e));
30
30
  return t;
31
31
  }
32
32
  const y = (r) => {
@@ -34,7 +34,7 @@ const y = (r) => {
34
34
  return t.push(...f(r)), t;
35
35
  };
36
36
  function N(r) {
37
- return c(r) ? (i(r) ? r : [r]).join("") : Date.now();
37
+ return p(r) ? (u(r) ? r : [r]).join("") : Date.now();
38
38
  }
39
39
  export {
40
40
  h as buildColSpan,
@@ -66,9 +66,9 @@ declare function __VLS_template(): {
66
66
  type: "up" | "down";
67
67
  }) => void) | undefined;
68
68
  readonly type?: string | undefined;
69
+ readonly placeholder?: string | undefined;
69
70
  readonly name?: string | undefined;
70
71
  readonly id?: string | undefined;
71
- readonly placeholder?: string | undefined;
72
72
  readonly valueModifiers?: Record<string, any> | undefined;
73
73
  readonly addonBefore?: any;
74
74
  readonly addonAfter?: any;
@@ -561,9 +561,9 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
561
561
  type: "up" | "down";
562
562
  }) => void) | undefined;
563
563
  readonly type?: string | undefined;
564
+ readonly placeholder?: string | undefined;
564
565
  readonly name?: string | undefined;
565
566
  readonly id?: string | undefined;
566
- readonly placeholder?: string | undefined;
567
567
  readonly valueModifiers?: Record<string, any> | undefined;
568
568
  readonly addonBefore?: any;
569
569
  readonly addonAfter?: any;
@@ -66,6 +66,7 @@ declare function __VLS_template(): {
66
66
  readonly direction?: "ltr" | "rtl" | undefined;
67
67
  readonly animation?: string | undefined;
68
68
  readonly children?: VueNode[] | undefined;
69
+ readonly placeholder?: any;
69
70
  readonly prefixCls?: string | undefined;
70
71
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
71
72
  readonly loading?: boolean | undefined;
@@ -76,7 +77,6 @@ declare function __VLS_template(): {
76
77
  readonly getPopupContainer?: RenderDOMFunc | undefined;
77
78
  readonly virtual?: boolean | undefined;
78
79
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
79
- readonly placeholder?: any;
80
80
  readonly status?: "" | "error" | "warning" | undefined;
81
81
  readonly defaultValue?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
82
82
  readonly prefix?: any;
@@ -715,6 +715,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
715
715
  readonly direction?: "ltr" | "rtl" | undefined;
716
716
  readonly animation?: string | undefined;
717
717
  readonly children?: VueNode[] | undefined;
718
+ readonly placeholder?: any;
718
719
  readonly prefixCls?: string | undefined;
719
720
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
720
721
  readonly loading?: boolean | undefined;
@@ -725,7 +726,6 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
725
726
  readonly getPopupContainer?: RenderDOMFunc | undefined;
726
727
  readonly virtual?: boolean | undefined;
727
728
  readonly dropdownMatchSelectWidth?: number | boolean | undefined;
728
- readonly placeholder?: any;
729
729
  readonly status?: "" | "error" | "warning" | undefined;
730
730
  readonly defaultValue?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
731
731
  readonly prefix?: any;
@@ -46,6 +46,7 @@ declare function __VLS_template(): {
46
46
  readonly onMousedown?: MouseEventHandler | undefined;
47
47
  readonly value?: string | number | undefined;
48
48
  readonly disabled?: boolean | undefined;
49
+ readonly placeholder?: string | number | undefined;
49
50
  readonly prefixCls?: string | undefined;
50
51
  readonly name?: string | undefined;
51
52
  readonly loading?: boolean | undefined;
@@ -56,7 +57,6 @@ declare function __VLS_template(): {
56
57
  readonly focused?: boolean | undefined;
57
58
  readonly readonly?: boolean | undefined;
58
59
  readonly autocomplete?: string | undefined;
59
- readonly placeholder?: string | number | undefined;
60
60
  readonly maxlength?: number | undefined;
61
61
  readonly showCount?: boolean | ShowCountProps | undefined;
62
62
  readonly htmlSize?: number | undefined;
@@ -203,6 +203,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
203
203
  readonly onMousedown?: MouseEventHandler | undefined;
204
204
  readonly value?: string | number | undefined;
205
205
  readonly disabled?: boolean | undefined;
206
+ readonly placeholder?: string | number | undefined;
206
207
  readonly prefixCls?: string | undefined;
207
208
  readonly name?: string | undefined;
208
209
  readonly loading?: boolean | undefined;
@@ -213,7 +214,6 @@ declare const __VLS_component: DefineComponent<ApFormItemTextProps, {
213
214
  readonly focused?: boolean | undefined;
214
215
  readonly readonly?: boolean | undefined;
215
216
  readonly autocomplete?: string | undefined;
216
- readonly placeholder?: string | number | undefined;
217
217
  readonly maxlength?: number | undefined;
218
218
  readonly showCount?: boolean | ShowCountProps | undefined;
219
219
  readonly htmlSize?: number | undefined;