@aplus-frontend/ui 0.2.13 → 0.2.14

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 (63) hide show
  1. package/es/index.mjs +145 -143
  2. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -5
  3. package/es/src/ap-descriptions/help-message/index.vue.d.ts +3 -15
  4. package/es/src/ap-descriptions/help-message/index.vue2.mjs +35 -20
  5. package/es/src/ap-form/item-group/index.vue.mjs +1 -1
  6. package/es/src/ap-table/ap-table.vue2.mjs +13 -12
  7. package/es/src/ap-table/hooks/use-table-paging.mjs +15 -14
  8. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +42 -33
  9. package/es/src/business/batch-input-group/index.d.ts +2 -0
  10. package/es/src/business/batch-input-group/index.mjs +1 -0
  11. package/es/src/business/batch-input-group/index.vue.d.ts +50 -0
  12. package/es/src/business/batch-input-group/index.vue.mjs +155 -0
  13. package/es/src/business/batch-input-group/index.vue2.mjs +4 -0
  14. package/es/src/business/batch-input-group/interface.d.ts +34 -0
  15. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +17 -0
  16. package/es/src/business/batch-input-group/popover-input/index.vue.mjs +4 -0
  17. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +74 -0
  18. package/es/src/business/batch-input-group/popover-input/style/css.d.ts +0 -0
  19. package/es/src/business/batch-input-group/popover-input/style/css.js +1 -0
  20. package/es/src/business/batch-input-group/popover-input/style/index.d.ts +0 -0
  21. package/es/src/business/batch-input-group/popover-input/style/index.js +1 -0
  22. package/es/src/business/batch-input-group/style/css.d.ts +0 -0
  23. package/es/src/business/batch-input-group/style/css.js +1 -0
  24. package/es/src/business/batch-input-group/style/index.d.ts +0 -0
  25. package/es/src/business/batch-input-group/style/index.js +1 -0
  26. package/es/src/business/index.d.ts +1 -0
  27. package/es/src/business/index.mjs +41 -40
  28. package/es/src/index.mjs +27 -25
  29. package/es/src/locale/lang/en.mjs +1 -1
  30. package/es/src/locale/lang/zh-cn.mjs +1 -1
  31. package/es/src/path-map.mjs +2 -1
  32. package/lib/index.js +1 -1
  33. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  34. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +3 -15
  35. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  36. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  37. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  38. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  39. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  40. package/lib/src/business/batch-input-group/index.d.ts +2 -0
  41. package/lib/src/business/batch-input-group/index.js +1 -0
  42. package/lib/src/business/batch-input-group/index.vue.d.ts +50 -0
  43. package/lib/src/business/batch-input-group/index.vue.js +2 -0
  44. package/lib/src/business/batch-input-group/index.vue2.js +1 -0
  45. package/lib/src/business/batch-input-group/interface.d.ts +34 -0
  46. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +17 -0
  47. package/lib/src/business/batch-input-group/popover-input/index.vue.js +1 -0
  48. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -0
  49. package/lib/src/business/batch-input-group/popover-input/style/css.d.ts +0 -0
  50. package/lib/src/business/batch-input-group/popover-input/style/css.js +1 -0
  51. package/lib/src/business/batch-input-group/popover-input/style/index.d.ts +0 -0
  52. package/lib/src/business/batch-input-group/popover-input/style/index.js +1 -0
  53. package/lib/src/business/batch-input-group/style/css.d.ts +0 -0
  54. package/lib/src/business/batch-input-group/style/css.js +1 -0
  55. package/lib/src/business/batch-input-group/style/index.d.ts +0 -0
  56. package/lib/src/business/batch-input-group/style/index.js +1 -0
  57. package/lib/src/business/index.d.ts +1 -0
  58. package/lib/src/business/index.js +1 -1
  59. package/lib/src/index.js +1 -1
  60. package/lib/src/locale/lang/en.js +1 -1
  61. package/lib/src/locale/lang/zh-cn.js +1 -1
  62. package/lib/src/path-map.js +1 -1
  63. package/package.json +11 -11
@@ -11,16 +11,16 @@ const ue = ({
11
11
  request: N,
12
12
  defaultParams: $ = {},
13
13
  defaultData: q = [],
14
- formatParams: C,
15
- paramsValueTypeMap: y,
14
+ formatParams: y,
15
+ paramsValueTypeMap: C,
16
16
  resetFieldsIgnores: D,
17
17
  filterFields: J,
18
- sortFields: L,
18
+ sortFields: K,
19
19
  showLessItems: b = !1,
20
- showTotal: Q = !0
20
+ showTotal: L = !0
21
21
  }) => {
22
22
  let z = 0, f = {};
23
- const G = (e) => C ? C(e) : e, c = x(), l = x(M), p = x(w), {
23
+ const Q = (e) => y ? y(e) : e, c = x(), l = x(M), p = x(w), {
24
24
  t: F
25
25
  } = ae(), {
26
26
  b: S
@@ -30,7 +30,7 @@ const ue = ({
30
30
  loading: !1
31
31
  }), O = async (e) => {
32
32
  var r;
33
- const a = G(e), t = Date.now();
33
+ const a = Q(e), t = Date.now();
34
34
  z = t, n.value.loading = !0;
35
35
  try {
36
36
  const s = await N({
@@ -46,12 +46,12 @@ const ue = ({
46
46
  }, R = (e) => {
47
47
  const a = {};
48
48
  return Object.entries(e).forEach(([t, r]) => {
49
- if (a[t] = r, y && r) {
50
- const s = y[t];
49
+ if (a[t] = r, C && r) {
50
+ const s = C[t];
51
51
  s && (a[t] = ee(s, r));
52
52
  }
53
53
  }), a;
54
- }, H = async (e) => {
54
+ }, G = async (e) => {
55
55
  var r, s, g, d, m, u, h;
56
56
  const a = ((s = (r = c.value) == null ? void 0 : r.apForm) == null ? void 0 : s.getFieldsValue()) || {}, t = {};
57
57
  Object.entries(a).forEach(([v, i]) => {
@@ -63,7 +63,7 @@ const ue = ({
63
63
  f = e;
64
64
  const a = R(e);
65
65
  O(a);
66
- }, K = (e) => {
66
+ }, H = (e) => {
67
67
  T({
68
68
  ...f,
69
69
  ...e
@@ -77,21 +77,22 @@ const ue = ({
77
77
  pageSize: f.pageSize || w
78
78
  });
79
79
  }, U = () => {
80
- H(j);
80
+ G(j);
81
81
  }, W = () => {
82
82
  T(f);
83
83
  }, X = (e) => {
84
84
  const a = o(n).total - e, t = Math.ceil(a / o(p)), r = o(l) > t ? t : o(l);
85
- K({
85
+ H({
86
86
  current: r > 0 ? r : 1
87
87
  });
88
88
  }, A = (e, a, t) => {
89
89
  var m, u, h, v;
90
+ console.log("filters", a);
90
91
  const r = ((u = (m = c.value) == null ? void 0 : m.apForm) == null ? void 0 : u.getFieldsValue(!0)) || {};
91
92
  l.value = e.current, p.value = e.pageSize;
92
93
  const s = B(t) ? [...t] : [t], g = {};
93
94
  for (const i of s)
94
- (h = o(L)) != null && h.includes(i.field) && (g[te(i.field)] = i.order);
95
+ (h = o(K)) != null && h.includes(i.columnKey || i.field) && (g[te(i.field)] = i.order);
95
96
  const d = {};
96
97
  for (const i of Object.keys(a))
97
98
  (v = o(J)) != null && v.includes(i) && (d[i] = a[i]);
@@ -129,7 +130,7 @@ const ue = ({
129
130
  showQuickJumper: !b,
130
131
  showLessItems: b,
131
132
  size: "default",
132
- showTotal: Q ? (e) => P("span", {
133
+ showTotal: L ? (e) => P("span", {
133
134
  class: S("pagination-total-wrapper")
134
135
  }, [F("ap.apTable.pagination.totalLeftPrefix"), " ", P("span", {
135
136
  class: S("pagination-count-text")
@@ -1,58 +1,67 @@
1
- import { defineComponent as v, useSlots as _, computed as u, openBlock as m, createElementBlock as f, normalizeClass as r, unref as t, renderSlot as i, createCommentVNode as B, createElementVNode as s, createTextVNode as d, toDisplayString as o, createVNode as C, withCtx as k } from "vue";
2
- import { Button as N } from "@aplus-frontend/antdv";
1
+ import { defineComponent as A, useSlots as B, computed as _, ref as S, watch as C, openBlock as f, createElementBlock as h, normalizeClass as d, unref as t, renderSlot as p, createCommentVNode as b, createElementVNode as a, createTextVNode as m, toDisplayString as c, createVNode as k, withCtx as N } from "vue";
2
+ import { Button as g } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
- import { useNamespace as V } from "../../config-provider/hooks/use-namespace.mjs";
5
- import { useLocale as $ } from "../../config-provider/hooks/use-locale.mjs";
6
- const b = { class: "selected-desc" }, g = { class: "selected-desc-conut" }, w = { class: "selected-desc-clean" }, z = /* @__PURE__ */ v({
4
+ import { useNamespace as w } from "../../config-provider/hooks/use-namespace.mjs";
5
+ import { useLocale as V } from "../../config-provider/hooks/use-locale.mjs";
6
+ const $ = { class: "selected-desc" }, x = { class: "selected-desc-conut" }, D = { class: "selected-desc-clean" }, H = /* @__PURE__ */ A({
7
7
  __name: "ApBatchAction",
8
8
  props: {
9
9
  selectedRowKeys: {},
10
10
  clearAll: { type: Function }
11
11
  },
12
- setup(h) {
13
- const { b: c } = V("ap-batch-action"), { t: a } = $(), l = h, n = _().header, y = u(() => {
12
+ setup(y) {
13
+ const { b: l } = w("ap-batch-action"), { t: r } = V(), n = y, o = B(), v = _(() => {
14
14
  var e;
15
- return ((e = l.selectedRowKeys) == null ? void 0 : e.length) || 0;
16
- }), A = u(() => {
17
- const e = n == null ? void 0 : n();
18
- return Array.isArray(e) && e.length > 0;
19
- });
20
- return (e, p) => (m(), f("div", {
21
- class: r([t(c)()])
15
+ return ((e = n.selectedRowKeys) == null ? void 0 : e.length) || 0;
16
+ }), u = S(!1);
17
+ return C(
18
+ () => o.header,
19
+ () => {
20
+ var s;
21
+ const e = (s = o == null ? void 0 : o.header) == null ? void 0 : s.call(o);
22
+ u.value = Array.isArray(e) && e.filter(Boolean).filter(
23
+ (i) => i.type !== Symbol.for("v-cmt") && i.type !== Symbol.for("v-fgt")
24
+ ).length > 0;
25
+ },
26
+ {
27
+ immediate: !0
28
+ }
29
+ ), (e, s) => (f(), h("div", {
30
+ class: d([t(l)()])
22
31
  }, [
23
- A.value ? (m(), f("div", {
32
+ u.value ? (f(), h("div", {
24
33
  key: 0,
25
- class: r(t(c)("header"))
34
+ class: d(t(l)("header"))
26
35
  }, [
27
- i(e.$slots, "header")
28
- ], 2)) : B("", !0),
29
- s("div", {
30
- class: r(t(c)("body"))
36
+ p(e.$slots, "header")
37
+ ], 2)) : b("", !0),
38
+ a("div", {
39
+ class: d(t(l)("body"))
31
40
  }, [
32
- i(e.$slots, "prefix"),
33
- s("div", b, [
34
- s("div", g, [
35
- d(o(t(a)("ap.apBatchAction.selected")) + " ", 1),
36
- s("span", null, o(y.value), 1),
37
- d(" " + o(t(a)("ap.apBatchAction.piecesOfData")), 1)
41
+ p(e.$slots, "prefix"),
42
+ a("div", $, [
43
+ a("div", x, [
44
+ m(c(t(r)("ap.apBatchAction.selected")) + " ", 1),
45
+ a("span", null, c(v.value), 1),
46
+ m(" " + c(t(r)("ap.apBatchAction.piecesOfData")), 1)
38
47
  ]),
39
- s("div", w, [
40
- C(t(N), {
48
+ a("div", D, [
49
+ k(t(g), {
41
50
  type: "link",
42
- onClick: p[0] || (p[0] = (x) => l.clearAll && l.clearAll())
51
+ onClick: s[0] || (s[0] = (i) => n.clearAll && n.clearAll())
43
52
  }, {
44
- default: k(() => [
45
- d(o(t(a)("ap.apBatchAction.empty")), 1)
53
+ default: N(() => [
54
+ m(c(t(r)("ap.apBatchAction.empty")), 1)
46
55
  ]),
47
56
  _: 1
48
57
  })
49
58
  ])
50
59
  ]),
51
- i(e.$slots, "suffix")
60
+ p(e.$slots, "suffix")
52
61
  ], 2)
53
62
  ], 2));
54
63
  }
55
64
  });
56
65
  export {
57
- z as default
66
+ H as default
58
67
  };
@@ -0,0 +1,2 @@
1
+ import { default as BatchInputGroup } from './index.vue';
2
+ export { BatchInputGroup };
@@ -0,0 +1 @@
1
+ import "./index.vue2.mjs";
@@ -0,0 +1,50 @@
1
+ import { BatchInputGroupProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ import { FieldMode } from '../../ap-field';
4
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BatchInputGroupProps>, {
5
+ hasAll: boolean;
6
+ emptyText: string;
7
+ mode: string;
8
+ bordered: boolean;
9
+ type: string;
10
+ lazy: boolean;
11
+ allowClear: boolean;
12
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
+ "update:value": (...args: any[]) => void;
14
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<BatchInputGroupProps>, {
15
+ hasAll: boolean;
16
+ emptyText: string;
17
+ mode: string;
18
+ bordered: boolean;
19
+ type: string;
20
+ lazy: boolean;
21
+ allowClear: boolean;
22
+ }>>> & {
23
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
24
+ }, {
25
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
26
+ mode: FieldMode;
27
+ bordered: boolean;
28
+ lazy: boolean;
29
+ allowClear: boolean;
30
+ emptyText: string;
31
+ hasAll: boolean;
32
+ }, {}>;
33
+ export default _default;
34
+ type __VLS_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
36
+ default: D[K];
37
+ }> : P[K];
38
+ };
39
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
+ type __VLS_TypePropsToOption<T> = {
41
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
42
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
43
+ } : {
44
+ type: PropType<T[K]>;
45
+ required: true;
46
+ };
47
+ };
48
+ type __VLS_PrettifyLocal<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
@@ -0,0 +1,155 @@
1
+ import { defineComponent as S, ref as V, computed as p, unref as o, openBlock as d, createElementBlock as U, createVNode as i, withCtx as f, createBlock as b, normalizeStyle as k, createCommentVNode as E, mergeProps as I } from "vue";
2
+ import "../../ap-field/index.mjs";
3
+ import { Space as L } from "@aplus-frontend/antdv";
4
+ import "../../config-provider/index.mjs";
5
+ import { omit as j } from "lodash-unified";
6
+ import "./popover-input/index.vue.mjs";
7
+ import "../../hooks/index.mjs";
8
+ import { useControllableValue as w } from "../../hooks/useControllableValue.mjs";
9
+ import { useLocale as O } from "../../config-provider/hooks/use-locale.mjs";
10
+ import R from "../../ap-field/select/index.vue.mjs";
11
+ import { ApFieldText as z } from "../../ap-field/text/index.mjs";
12
+ import T from "./popover-input/index.vue2.mjs";
13
+ const F = "GROUP_SEARCH_ALL", Q = /* @__PURE__ */ S({
14
+ __name: "index",
15
+ props: {
16
+ style: { type: [Boolean, null, String, Object, Array] },
17
+ inputStyle: { type: [Boolean, null, String, Object, Array] },
18
+ options: {},
19
+ hasAll: { type: Boolean, default: !0 },
20
+ value: {},
21
+ "onUpdate:value": {},
22
+ mode: { default: "edit" },
23
+ class: {},
24
+ id: {},
25
+ placeholder: {},
26
+ autocomplete: {},
27
+ type: { default: "text" },
28
+ name: {},
29
+ size: {},
30
+ autofocus: { type: Boolean },
31
+ lazy: { type: Boolean, default: !0 },
32
+ maxlength: {},
33
+ loading: { type: Boolean },
34
+ bordered: { type: Boolean, default: !0 },
35
+ showCount: { type: [Boolean, Object] },
36
+ htmlSize: {},
37
+ onPressEnter: {},
38
+ onKeydown: {},
39
+ onKeyup: {},
40
+ onFocus: {},
41
+ onBlur: {},
42
+ onChange: {},
43
+ onInput: {},
44
+ onCompositionstart: {},
45
+ onCompositionend: {},
46
+ valueModifiers: {},
47
+ hidden: { type: Boolean },
48
+ status: {},
49
+ defaultValue: {},
50
+ inputElement: {},
51
+ prefixCls: {},
52
+ disabled: { type: Boolean },
53
+ focused: { type: Boolean },
54
+ triggerFocus: {},
55
+ readonly: { type: Boolean },
56
+ handleReset: {},
57
+ addonBefore: {},
58
+ addonAfter: {},
59
+ prefix: {},
60
+ suffix: {},
61
+ clearIcon: {},
62
+ allowClear: { type: Boolean, default: !0 },
63
+ emptyText: { default: "--" }
64
+ },
65
+ emits: ["update:value"],
66
+ setup(m, { emit: y }) {
67
+ const r = m, v = y, { value: n, updateValue: u } = w(
68
+ r,
69
+ v
70
+ ), s = V(), { t: h } = O(), B = p(() => r.options ? r.hasAll ? [
71
+ { value: F, label: h("ap.apGroupSearch.all") },
72
+ ...r.options
73
+ ] : r.options : []), _ = p(() => {
74
+ var e, t;
75
+ return (t = (e = o(n)) == null ? void 0 : e.value) != null && t.length ? o(n).value.join(",") : "";
76
+ }), A = p(() => {
77
+ var e, t;
78
+ return (t = (e = o(n)) == null ? void 0 : e.value) != null && t.length ? o(n).value.join(`
79
+ `) : "";
80
+ });
81
+ function g(e) {
82
+ const t = o(n) || {};
83
+ u({
84
+ ...t,
85
+ key: e
86
+ });
87
+ }
88
+ function x(e) {
89
+ const t = o(n) || {};
90
+ let l = e;
91
+ for (; l.startsWith(","); )
92
+ l = l.slice(1);
93
+ let a = l.replaceAll(",,", ",").split(",");
94
+ a.length === 1 && a[0] === "" && (a = []), u({
95
+ ...t,
96
+ value: a
97
+ });
98
+ }
99
+ function C(e) {
100
+ const t = o(n) || {};
101
+ let l = e.split(/,|\n/);
102
+ u({
103
+ ...t,
104
+ value: l
105
+ });
106
+ }
107
+ function c() {
108
+ var l;
109
+ const e = o(n) || {}, t = (l = e.value) == null ? void 0 : l.filter(Boolean);
110
+ u({
111
+ ...e,
112
+ value: t
113
+ });
114
+ }
115
+ return (e, t) => (d(), U("div", {
116
+ ref_key: "containerRef",
117
+ ref: s,
118
+ style: { position: "relative" }
119
+ }, [
120
+ i(o(L).Compact, { block: "" }, {
121
+ default: f(() => {
122
+ var l, a;
123
+ return [
124
+ (l = e.options) != null && l.length ? (d(), b(o(R), {
125
+ key: 0,
126
+ style: k(e.style),
127
+ options: B.value,
128
+ value: (a = o(n)) == null ? void 0 : a.key,
129
+ "onUpdate:value": g
130
+ }, null, 8, ["style", "options", "value"])) : E("", !0),
131
+ i(o(z), I({ style: e.inputStyle }, o(j)(r, ["style", "value", "onUpdate:value", "inputStyle"]), {
132
+ value: _.value,
133
+ "onUpdate:value": x,
134
+ onBlur: c
135
+ }), {
136
+ suffix: f(() => [
137
+ i(T, {
138
+ _parent: s.value,
139
+ value: A.value,
140
+ "onUpdate:value": C,
141
+ onClose: c
142
+ }, null, 8, ["_parent", "value"])
143
+ ]),
144
+ _: 1
145
+ }, 16, ["style", "value"])
146
+ ];
147
+ }),
148
+ _: 1
149
+ })
150
+ ], 512));
151
+ }
152
+ });
153
+ export {
154
+ Q as default
155
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,34 @@
1
+ import { ApFieldTextAreaProps, ApFieldTextProps } from '../../ap-field';
2
+ import { DefaultOptionType, SelectValue } from '@aplus-frontend/antdv/es/select';
3
+ import { StyleValue } from 'vue';
4
+ export type BatchInputGroupValueType = {
5
+ key: SelectValue;
6
+ value: string[];
7
+ };
8
+ export interface BatchInputGroupProps extends Omit<ApFieldTextProps, 'value' | 'onUpdate:value' | 'style'> {
9
+ /**
10
+ * 下拉框自定义样式
11
+ */
12
+ style?: StyleValue;
13
+ /**
14
+ * 输入框样式
15
+ */
16
+ inputStyle?: StyleValue;
17
+ /**
18
+ * 下拉框可选项列表
19
+ */
20
+ options?: DefaultOptionType[];
21
+ /**
22
+ * 是否为下拉框添加全选选项
23
+ */
24
+ hasAll?: boolean;
25
+ /**
26
+ * v-model
27
+ */
28
+ value?: BatchInputGroupValueType;
29
+ 'onUpdate:value'?: (nextValue: BatchInputGroupValueType) => void;
30
+ }
31
+ export interface BatchInputGroupPopoverInputProps extends Pick<ApFieldTextAreaProps, 'value' | 'onUpdate:value'> {
32
+ _parent?: HTMLElement;
33
+ onClose?: () => void;
34
+ }
@@ -0,0 +1,17 @@
1
+ import { BatchInputGroupPopoverInputProps } from '../interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare const _default: DefineComponent<__VLS_TypePropsToOption<BatchInputGroupPopoverInputProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4
+ "update:value": (...args: any[]) => void;
5
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<BatchInputGroupPopoverInputProps>>> & {
6
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
7
+ }, {}, {}>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToOption<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,74 @@
1
+ import { defineComponent as k, ref as y, openBlock as N, createElementBlock as A, normalizeClass as l, unref as e, createVNode as p, withCtx as i, createElementVNode as I } from "vue";
2
+ import { Popover as w, Textarea as L } from "@aplus-frontend/antdv";
3
+ import "../../../config-provider/index.mjs";
4
+ import { IconApAdLineScreen as P } from "@aplus-frontend/icon";
5
+ import "../../../hooks/index.mjs";
6
+ import { useControllableValue as S } from "../../../hooks/useControllableValue.mjs";
7
+ import { useLocale as z } from "../../../config-provider/hooks/use-locale.mjs";
8
+ import { useNamespace as B } from "../../../config-provider/hooks/use-namespace.mjs";
9
+ const j = /* @__PURE__ */ k({
10
+ __name: "index",
11
+ props: {
12
+ _parent: {},
13
+ onClose: { type: Function },
14
+ value: {},
15
+ "onUpdate:value": { type: Function }
16
+ },
17
+ emits: ["update:value"],
18
+ setup(m, { emit: f }) {
19
+ const a = m, d = f, { value: v, updateValue: g } = S(a, d), n = y(), h = (t) => a._parent || t, { t: C } = z();
20
+ function _(t) {
21
+ var u;
22
+ const o = t.target.value || "", r = o.replace(/[\n,]+/g, `
23
+ `);
24
+ if (r !== o) {
25
+ const s = ((u = n.value) == null ? void 0 : u.$el) || n.value;
26
+ s && (s.value = r);
27
+ }
28
+ g(r);
29
+ }
30
+ function x(t) {
31
+ var o;
32
+ t || (o = a.onClose) == null || o.call(a);
33
+ }
34
+ const { b: c, e: V, em: b } = B("batch-input-group-popover-input");
35
+ return (t, o) => (N(), A("div", {
36
+ class: l(e(c)())
37
+ }, [
38
+ p(e(w), {
39
+ overlayClassName: e(V)("popover"),
40
+ "get-popup-container": h,
41
+ trigger: "click",
42
+ placement: "bottomLeft",
43
+ onOpenChange: x
44
+ }, {
45
+ content: i(() => [
46
+ I("div", {
47
+ class: l(e(b)("popover", "content"))
48
+ }, [
49
+ p(e(L), {
50
+ placeholder: e(C)("ap.apGroupSearch.tokenSeparatorsPlaceholder"),
51
+ bordered: !1,
52
+ rows: 5,
53
+ value: e(v),
54
+ onInput: _,
55
+ ref_key: "textAreaRef",
56
+ ref: n,
57
+ "allow-clear": !1,
58
+ "auto-size": !1
59
+ }, null, 8, ["placeholder", "value"])
60
+ ], 2)
61
+ ]),
62
+ default: i(() => [
63
+ p(e(P), {
64
+ class: l(e(c)("trigger-icon"))
65
+ }, null, 8, ["class"])
66
+ ]),
67
+ _: 1
68
+ }, 8, ["overlayClassName"])
69
+ ], 2));
70
+ }
71
+ });
72
+ export {
73
+ j as default
74
+ };
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/dist/batch-input-group/popover-input.css';
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/batch-input-group/popover-input.less';
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/dist/batch-input-group/index.css';
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/batch-input-group/index.less';
@@ -18,4 +18,5 @@ export * from './ap-summary';
18
18
  export * from './ap-appendix';
19
19
  export * from './ap-group-search';
20
20
  export * from './ap-upload-file';
21
+ export * from './batch-input-group';
21
22
  export { ApTransformDataHelper } from '../utils/ap-trans-data';
@@ -1,46 +1,47 @@
1
- import { default as e } from "./ap-table-modal/index.mjs";
2
- import { ApAttachment as m } from "./ap-attachment/index.mjs";
3
- import { ApBatchAction as a } from "./ap-batch-action/index.mjs";
4
- import { ApBatchActionGroup as u } from "./ap-batch-action-group/index.mjs";
5
- import { ApButtonGroup as n } from "./ap-button-group/index.mjs";
1
+ import { default as A } from "./ap-table-modal/index.mjs";
2
+ import { ApAttachment as x } from "./ap-attachment/index.mjs";
3
+ import { ApBatchAction as f } from "./ap-batch-action/index.mjs";
4
+ import { ApBatchActionGroup as l } from "./ap-batch-action-group/index.mjs";
5
+ import { ApButtonGroup as c } from "./ap-button-group/index.mjs";
6
6
  import { ApCard as d } from "./ap-card/index.mjs";
7
- import { ApExpandAlert as S } from "./ap-expand-alert/index.mjs";
8
- import { ApExportGroup as s } from "./ap-export-group/index.mjs";
9
- import { ApImage as L } from "./ap-image/index.mjs";
10
- import { ApInputRadio as B } from "./ap-input-radio/index.mjs";
11
- import { ApLabel as T, ApLabelGroup as y } from "./ap-label/index.mjs";
12
- import { ApLadder as g } from "./ap-ladder/index.mjs";
13
- import { ApSelectLayout as C } from "./ap-select-layout/index.mjs";
14
- import { ApStatus as H, ApStatusGroup as M } from "./ap-status/index.mjs";
15
- import { ApTitle as R } from "./ap-title/index.mjs";
7
+ import { ApExpandAlert as G } from "./ap-expand-alert/index.mjs";
8
+ import { ApExportGroup as h } from "./ap-export-group/index.mjs";
9
+ import { ApImage as b } from "./ap-image/index.mjs";
10
+ import { ApInputRadio as E } from "./ap-input-radio/index.mjs";
11
+ import { ApLabel as y, ApLabelGroup as I } from "./ap-label/index.mjs";
12
+ import { ApLadder as v } from "./ap-ladder/index.mjs";
13
+ import { ApSelectLayout as D } from "./ap-select-layout/index.mjs";
14
+ import { ApStatus as M, ApStatusGroup as P } from "./ap-status/index.mjs";
15
+ import { ApTitle as j } from "./ap-title/index.mjs";
16
16
  import "./hooks/index.mjs";
17
- import { ApSummary as k } from "./ap-summary/index.mjs";
18
- import { ApAppendix as w } from "./ap-appendix/index.mjs";
19
- import { ApExtensionSelect as F, ApGroupSearch as J, ApPopoverSelect as K } from "./ap-group-search/index.mjs";
17
+ import { ApSummary as q } from "./ap-summary/index.mjs";
18
+ import { ApAppendix as z } from "./ap-appendix/index.mjs";
19
+ import { ApExtensionSelect as J, ApGroupSearch as K, ApPopoverSelect as N } from "./ap-group-search/index.mjs";
20
20
  import "./ap-upload-file/index.mjs";
21
- import { ApTransformDataHelper as O } from "../utils/ap-trans-data/index.mjs";
21
+ import "./batch-input-group/index.mjs";
22
+ import { ApTransformDataHelper as Q } from "../utils/ap-trans-data/index.mjs";
22
23
  export {
23
- w as ApAppendix,
24
- m as ApAttachment,
25
- a as ApBatchAction,
26
- u as ApBatchActionGroup,
27
- n as ApButtonGroup,
24
+ z as ApAppendix,
25
+ x as ApAttachment,
26
+ f as ApBatchAction,
27
+ l as ApBatchActionGroup,
28
+ c as ApButtonGroup,
28
29
  d as ApCard,
29
- S as ApExpandAlert,
30
- s as ApExportGroup,
31
- F as ApExtensionSelect,
32
- J as ApGroupSearch,
33
- L as ApImage,
34
- B as ApInputRadio,
35
- T as ApLabel,
36
- y as ApLabelGroup,
37
- g as ApLadder,
38
- K as ApPopoverSelect,
39
- C as ApSelectLayout,
40
- H as ApStatus,
41
- M as ApStatusGroup,
42
- k as ApSummary,
43
- e as ApTableModal,
44
- R as ApTitle,
45
- O as ApTransformDataHelper
30
+ G as ApExpandAlert,
31
+ h as ApExportGroup,
32
+ J as ApExtensionSelect,
33
+ K as ApGroupSearch,
34
+ b as ApImage,
35
+ E as ApInputRadio,
36
+ y as ApLabel,
37
+ I as ApLabelGroup,
38
+ v as ApLadder,
39
+ N as ApPopoverSelect,
40
+ D as ApSelectLayout,
41
+ M as ApStatus,
42
+ P as ApStatusGroup,
43
+ q as ApSummary,
44
+ A as ApTableModal,
45
+ j as ApTitle,
46
+ Q as ApTransformDataHelper
46
47
  };