@aplus-frontend/ui 0.6.0-beta.16 → 0.6.0-beta.17

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.
@@ -383,9 +383,7 @@ declare function __VLS_template(): {
383
383
  default: string | number | ColSize;
384
384
  };
385
385
  xxl: {
386
- type: PropType<string | number | **
387
- * extra区域展开占据的span数(占据剩余所有空间)
388
- */).ColSize>;
386
+ type: PropType<string | number | ColSize>;
389
387
  default: string | number | ColSize;
390
388
  };
391
389
  prefixCls: StringConstructor;
@@ -1220,9 +1218,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
1220
1218
  default: string | number | ColSize;
1221
1219
  };
1222
1220
  xxl: {
1223
- type: PropType<string | number | **
1224
- * extra区域展开占据的span数(占据剩余所有空间)
1225
- */).ColSize>;
1221
+ type: PropType<string | number | ColSize>;
1226
1222
  default: string | number | ColSize;
1227
1223
  };
1228
1224
  prefixCls: StringConstructor;
@@ -1,8 +1,8 @@
1
- import { isVNode as oe, defineComponent as ae, useSlots as ne, ref as L, shallowRef as U, computed as _, unref as n, watch as V, createVNode as t, Fragment as w, createBlock as x, openBlock as d, mergeProps as le, withCtx as A, resolveDynamicComponent as B, createElementBlock as re, renderList as se } from "vue";
2
- import { Col as R, Flex as N, Button as M, Row as ie } from "@aplus-frontend/antdv";
1
+ import { isVNode as oe, defineComponent as ae, useSlots as ne, ref as L, shallowRef as U, computed as _, unref as a, watch as V, createVNode as t, Fragment as w, createBlock as y, openBlock as f, mergeProps as le, withCtx as A, resolveDynamicComponent as B, createElementBlock as re, renderList as se } from "vue";
2
+ import { Col as R, Flex as N, Button as W, Row as ie } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../item/index.vue2.mjs";
5
- import { genRealChildren as W } from "../item-group/helper.mjs";
5
+ import { genRealChildren as M } from "../item-group/helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
7
  import { isArray as ue, isBoolean as ce, omit as pe } from "lodash-unified";
8
8
  import { isDef as z } from "../../utils/index.mjs";
@@ -16,8 +16,8 @@ import q from "../item/index.vue.mjs";
16
16
  import xe from "./components/popover-filter.vue2.mjs";
17
17
  import ye from "./components/popover-sorter/index.vue2.mjs";
18
18
  import ge from "../ap-form.vue2.mjs";
19
- function ve(f) {
20
- return typeof f == "function" || Object.prototype.toString.call(f) === "[object Object]" && !oe(f);
19
+ function ve(m) {
20
+ return typeof m == "function" || Object.prototype.toString.call(m) === "[object Object]" && !oe(m);
21
21
  }
22
22
  const s = 24, Ue = /* @__PURE__ */ ae({
23
23
  name: "ApFormSearchForm",
@@ -111,57 +111,57 @@ const s = 24, Ue = /* @__PURE__ */ ae({
111
111
  },
112
112
  resizeTarget: {}
113
113
  },
114
- setup(f, {
114
+ setup(m, {
115
115
  expose: H
116
116
  }) {
117
117
  var P;
118
- const i = ne(), o = f, {
119
- b: m
118
+ const i = ne(), o = m, {
119
+ b: h
120
120
  } = me("ap-form-search-form"), {
121
121
  t: k
122
- } = he(), G = fe(o), y = L();
122
+ } = he(), G = fe(o), g = L();
123
123
  function T() {
124
- var a;
125
- const e = (a = y.value) == null ? void 0 : a.getFieldsValueTransformed(!0);
124
+ var n;
125
+ const e = (n = g.value) == null ? void 0 : n.getFieldsValueTransformed(!0);
126
126
  D(o.onSubmit, e);
127
127
  }
128
128
  function J() {
129
- var e, a;
130
- o.customReset || (a = (e = y.value) == null ? void 0 : e.resetFields) == null || a.call(e), D(o.onReset);
129
+ var e, n;
130
+ o.customReset || (n = (e = g.value) == null ? void 0 : e.resetFields) == null || n.call(e), D(o.onReset);
131
131
  }
132
132
  const K = (e) => z(e) ? (ue(e) ? e : [e]).join("") : Date.now();
133
133
  let I = [];
134
- const u = U(W(i.default())), b = L(!1), c = U((P = i.extra) == null ? void 0 : P.call(i)), E = _(() => Math.floor(s / n(G)));
134
+ const u = U(M(i.default())), b = L(!1), p = U((P = i.extra) == null ? void 0 : P.call(i)), E = _(() => Math.floor(s / a(G)));
135
135
  V(() => i.default(), (e) => {
136
- I = u.value, u.value = de(I, W(e)), b.value = !1;
136
+ I = u.value, u.value = de(I, M(e)), b.value = !1;
137
137
  }), V(() => {
138
138
  var e;
139
139
  return (e = i.extra) == null ? void 0 : e.call(i);
140
140
  }, (e) => {
141
- c.value = e;
141
+ p.value = e;
142
142
  });
143
143
  const l = _(() => {
144
- const e = u.value, a = [], r = [], g = [], h = n(E);
144
+ const e = u.value, n = [], r = [], x = [], c = a(E);
145
145
  let v = 0, S = 0;
146
- const Y = s * o.maxRows - h * (n(c) && !o.extraInAction ? 2 : 1);
146
+ const Y = s * o.maxRows - c * (a(p) && !o.extraInAction ? 2 : 1);
147
147
  e.forEach((F, te) => {
148
- const p = F.props;
149
- if (ce(p.hidden) ? !!p.hidden : z(p.hidden))
150
- a.push(F);
148
+ const d = F.props;
149
+ if (ce(d.hidden) ? !!d.hidden : z(d.hidden))
150
+ n.push(F);
151
151
  else {
152
- let C = p.span || h;
152
+ let C = d.span || c;
153
153
  const $ = {
154
154
  node: F,
155
155
  span: C,
156
- key: `ApFormSearchFormItem-${te}-${K(p.name)}-${p._signal}`
156
+ key: `ApFormSearchFormItem-${te}-${K(d.name)}-${d._signal}`
157
157
  }, j = s - v % s;
158
- j < C && (C += j), v += C, v > Y ? r.push($) : (S = v, g.push($));
158
+ j < C && (C += j), v += C, v > Y ? r.push($) : (S = v, x.push($));
159
159
  }
160
160
  });
161
- const O = s - (S + h) % s, Z = S % s < h, ee = O < h ? s : O;
161
+ const O = s - (S + c) % s, Z = S % s < c, ee = O < c ? s : O;
162
162
  return {
163
- hideNode: t(w, null, [a]),
164
- nodes: g,
163
+ hideNode: t(w, null, [n]),
164
+ nodes: x,
165
165
  collapseNodes: r,
166
166
  extraSpan: ee,
167
167
  lastRowOnlyIncludeActionAndExtra: Z
@@ -172,21 +172,21 @@ const s = 24, Ue = /* @__PURE__ */ ae({
172
172
  }
173
173
  const X = _(() => {
174
174
  let e;
175
- const a = t(R, {
176
- span: n(E),
175
+ const n = l.value.collapseNodes.length || o.sortable && u.value.length, r = t(R, {
176
+ span: a(E),
177
177
  key: "actionWrapper"
178
178
  }, {
179
179
  default: () => [t(q, null, {
180
180
  default: () => [t(N, {
181
181
  wrap: "wrap",
182
- justify: l.value.lastRowOnlyIncludeActionAndExtra && !(n(c) && o.extraInAction) ? "flex-end" : "space-between"
182
+ justify: l.value.lastRowOnlyIncludeActionAndExtra && !(a(p) && o.extraInAction) ? "flex-end" : "space-between"
183
183
  }, {
184
184
  default: () => [t(N, {
185
185
  gap: 8,
186
186
  wrap: "wrap"
187
187
  }, {
188
- default: () => [t("div", {
189
- class: m("column-setting-trigger-wrapper")
188
+ default: () => [n ? t("div", {
189
+ class: h("column-setting-trigger-wrapper")
190
190
  }, [l.value.collapseNodes.length ? t(xe, {
191
191
  onSubmit: T,
192
192
  config: l.value.collapseNodes,
@@ -195,57 +195,57 @@ const s = 24, Ue = /* @__PURE__ */ ae({
195
195
  children: u.value,
196
196
  onClickConfirm: Q,
197
197
  sorted: b.value
198
- }, null) : null]), t(M, {
198
+ }, null) : null]) : null, t(W, {
199
199
  type: "primary",
200
200
  onClick: T,
201
201
  loading: o.submitLoading,
202
202
  htmlType: "submit",
203
- class: m("action-btn")
203
+ class: h("action-btn")
204
204
  }, {
205
205
  default: () => [o.searchText || k("ap.apForm.search.search")]
206
- }), t(M, {
206
+ }), t(W, {
207
207
  onClick: J,
208
208
  type: "text",
209
- class: [m("action-btn"), m("action-btn-reset")]
209
+ class: [h("action-btn"), h("action-btn-reset")]
210
210
  }, {
211
211
  default: () => [o.resetText || k("ap.apForm.search.reset")]
212
212
  })]
213
- }), o.extraInAction ? n(c) : null]
213
+ }), o.extraInAction ? a(p) : null]
214
214
  })]
215
215
  })]
216
- }), r = !o.extraInAction && n(c) ? t(R, {
216
+ }), x = !o.extraInAction && a(p) ? t(R, {
217
217
  span: l.value.extraSpan,
218
218
  key: "extraNode"
219
219
  }, {
220
220
  default: () => [t(q, null, {
221
221
  default: () => [t(N, {
222
222
  justify: l.value.extraSpan === s || l.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
223
- }, ve(e = n(c)) ? e : {
223
+ }, ve(e = a(p)) ? e : {
224
224
  default: () => [e]
225
225
  })]
226
226
  })]
227
- }) : null, g = t(R, {
227
+ }) : null, c = t(R, {
228
228
  span: l.value.extraSpan
229
229
  }, null);
230
- return l.value.lastRowOnlyIncludeActionAndExtra ? t(w, null, [r || g, a]) : t(w, null, [a, r]);
230
+ return l.value.lastRowOnlyIncludeActionAndExtra ? t(w, null, [x || c, r]) : t(w, null, [r, x]);
231
231
  });
232
232
  return H({
233
- apForm: _(() => n(y))
234
- }), (e, a) => (d(), x(ge, le({
233
+ apForm: _(() => a(g))
234
+ }), (e, n) => (f(), y(ge, le({
235
235
  ref_key: "apForm",
236
- ref: y,
237
- class: n(m)()
238
- }, n(pe)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
239
- default: A(() => [(d(), x(B(l.value.hideNode))), t(n(ie), {
236
+ ref: g,
237
+ class: a(h)()
238
+ }, a(pe)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
239
+ default: A(() => [(f(), y(B(l.value.hideNode))), t(a(ie), {
240
240
  gutter: 8
241
241
  }, {
242
- default: A(() => [(d(!0), re(w, null, se(l.value.nodes, (r) => (d(), x(n(R), {
242
+ default: A(() => [(f(!0), re(w, null, se(l.value.nodes, (r) => (f(), y(a(R), {
243
243
  key: r.key,
244
244
  span: r.span
245
245
  }, {
246
- default: A(() => [(d(), x(B(r.node)))]),
246
+ default: A(() => [(f(), y(B(r.node)))]),
247
247
  _: 2
248
- }, 1032, ["span"]))), 128)), (d(), x(B(X.value)))]),
248
+ }, 1032, ["span"]))), 128)), (f(), y(B(X.value)))]),
249
249
  _: 1
250
250
  })]),
251
251
  _: 1
@@ -16,7 +16,7 @@ const V = { key: 1 }, j = { key: 1 }, G = /* @__PURE__ */ g({
16
16
  ), c = r(() => {
17
17
  var n;
18
18
  return (n = Object.keys((e == null ? void 0 : e.titleProps) || {})) == null ? void 0 : n.length;
19
- }), p = r(() => e.padding ?? (c.value ? "14px 24px 24px" : "24px"));
19
+ }), p = r(() => e.padding ?? (c.value ? "12px 14px 14px" : "12px 14px"));
20
20
  return (n, w) => {
21
21
  var m, d;
22
22
  return t(), s("div", {
@@ -1,10 +1,11 @@
1
- import { defineComponent as b, isVNode as k, h as a, createElementBlock as n, openBlock as r, normalizeClass as c, unref as o, createVNode as S, withCtx as V, Fragment as _, renderList as w, normalizeStyle as B, createBlock as N, resolveDynamicComponent as z } from "vue";
2
- import { Flex as F } from "@aplus-frontend/antdv";
1
+ import { defineComponent as S, isVNode as b, h as a, createElementBlock as n, openBlock as r, normalizeClass as u, unref as o, createVNode as V, withCtx as _, Fragment as w, renderList as B, normalizeStyle as N, createBlock as z, resolveDynamicComponent as F } from "vue";
2
+ import { Flex as L } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
4
  import "../../hooks/index.mjs";
5
- import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
6
- import { useControllableValue as x } from "../../hooks/useControllableValue.mjs";
7
- const D = ["onClick"], I = /* @__PURE__ */ b({
5
+ import { useNamespace as x } from "../../config-provider/hooks/use-namespace.mjs";
6
+ import { useControllableValue as A } from "../../hooks/useControllableValue.mjs";
7
+ const D = ["onClick"], J = /* @__PURE__ */ S({
8
+ name: "ApRadioGroup",
8
9
  __name: "ap-radio-group",
9
10
  props: {
10
11
  value: { default: "" },
@@ -15,37 +16,36 @@ const D = ["onClick"], I = /* @__PURE__ */ b({
15
16
  }) }
16
17
  },
17
18
  emits: ["update:value", "change"],
18
- setup(f, { emit: d }) {
19
- const { b: h, e: l } = L("ap-radio-group"), g = f, i = d, { value: y, updateValue: v } = x(
19
+ setup(d, { emit: f }) {
20
+ const { b: h, e: i } = x("ap-radio-group"), g = d, l = f, { value: y, updateValue: C } = A(
20
21
  g,
21
- i,
22
- {
23
- beforeUpdateValue: (e) => (i("change", e), !0)
24
- }
25
- ), C = (e) => k(e) ? a(e) : typeof e == "function" ? a("span", e()) : a("span", e);
22
+ l
23
+ ), k = (e) => b(e) ? a(e) : typeof e == "function" ? a("span", e()) : a("span", e), v = (e) => {
24
+ C(e), l("change", e);
25
+ };
26
26
  return (e, E) => {
27
27
  var p;
28
28
  return r(), n("div", {
29
- class: c([o(h)()])
29
+ class: u([o(h)()])
30
30
  }, [
31
- S(o(F), {
31
+ V(o(L), {
32
32
  gap: (p = e.optionStyle) == null ? void 0 : p.gap,
33
33
  wrap: "wrap"
34
34
  }, {
35
- default: V(() => [
36
- (r(!0), n(_, null, w(e.options.filter((t) => t.visible !== !1), (t) => {
37
- var s, u, m;
35
+ default: _(() => [
36
+ (r(!0), n(w, null, B(e.options.filter((t) => t.visible !== !1), (t) => {
37
+ var s, c, m;
38
38
  return r(), n("div", {
39
39
  key: t.value,
40
- class: c([o(l)("item"), o(y) === t.value ? o(l)("item--active") : ""]),
41
- style: B({
40
+ class: u([o(i)("item"), o(y) === t.value ? o(i)("item--active") : ""]),
41
+ style: N({
42
42
  height: ((s = e.optionStyle) == null ? void 0 : s.height) + "px",
43
- lineHeight: ((u = e.optionStyle) == null ? void 0 : u.height) + "px",
43
+ lineHeight: ((c = e.optionStyle) == null ? void 0 : c.height) + "px",
44
44
  color: (m = e.optionStyle) == null ? void 0 : m.color
45
45
  }),
46
- onClick: (H) => o(v)(t.value)
46
+ onClick: (G) => v(t.value)
47
47
  }, [
48
- (r(), N(z(C(t.label))))
48
+ (r(), z(F(k(t.label))))
49
49
  ], 14, D);
50
50
  }), 128))
51
51
  ]),
@@ -56,5 +56,5 @@ const D = ["onClick"], I = /* @__PURE__ */ b({
56
56
  }
57
57
  });
58
58
  export {
59
- I as default
59
+ J as default
60
60
  };
@@ -95,7 +95,7 @@ const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
95
95
  var t;
96
96
  const e = (t = n(a)) == null ? void 0 : t.key;
97
97
  if (e != null && e.length)
98
- return e.length === 1 ? e[0] : d;
98
+ return e.length === 1 || !l.hasAll ? e[0] : d;
99
99
  }), F = u(() => {
100
100
  var o;
101
101
  const e = (o = n(a)) == null ? void 0 : o.key;
@@ -1,2 +1,2 @@
1
- declare const _default: "0.6.0-beta.16";
1
+ declare const _default: "0.6.0-beta.17";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "0.6.0-beta.16";
1
+ const e = "0.6.0-beta.17";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -383,9 +383,7 @@ declare function __VLS_template(): {
383
383
  default: string | number | ColSize;
384
384
  };
385
385
  xxl: {
386
- type: PropType<string | number | **
387
- * extra区域展开占据的span数(占据剩余所有空间)
388
- */).ColSize>;
386
+ type: PropType<string | number | ColSize>;
389
387
  default: string | number | ColSize;
390
388
  };
391
389
  prefixCls: StringConstructor;
@@ -1220,9 +1218,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
1220
1218
  default: string | number | ColSize;
1221
1219
  };
1222
1220
  xxl: {
1223
- type: PropType<string | number | **
1224
- * extra区域展开占据的span数(占据剩余所有空间)
1225
- */).ColSize>;
1221
+ type: PropType<string | number | ColSize>;
1226
1222
  default: string | number | ColSize;
1227
1223
  };
1228
1224
  prefixCls: StringConstructor;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../item/index.vue2.js");const A=require("../item-group/helper.js");require("../../config-provider/index.js");const N=require("lodash-unified"),T=require("../../utils/index.js"),w=require("./utils.js");require("./components/popover-filter.vue.js");const z=require("./hooks/use-count-per-row.js");require("./components/popover-sorter/index.vue.js");const H=require("../../config-provider/hooks/use-namespace.js"),G=require("../../config-provider/hooks/use-locale.js"),P=require("../item/index.vue.js"),J=require("./components/popover-filter.vue2.js"),K=require("./components/popover-sorter/index.vue2.js"),Q=require("../ap-form.vue2.js");function X(p){return typeof p=="function"||Object.prototype.toString.call(p)==="[object Object]"&&!e.isVNode(p)}const u=24,Y=e.defineComponent({name:"ApFormSearchForm",__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},collapse:{type:Boolean,default:void 0},defaultCollapse:{type:Boolean,default:!0},"onUpdate:collapse":{},searchText:{},resetText:{},onReset:{},customReset:{type:Boolean,default:!1},extraInAction:{type:Boolean,default:!1},forceExpand:{type:Boolean,default:!1},countPerRow:{default:4},submitLoading:{type:Boolean},maxRows:{default:2},sortable:{type:Boolean,default:!0},resizeTarget:{}},setup(p,{expose:I}){var S;const s=e.useSlots(),a=p,{b:f}=H.useNamespace("ap-form-search-form"),{t:B}=G.useLocale(),E=z.useCountPerRow(a),h=e.ref();function F(){var n;const t=(n=h.value)==null?void 0:n.getFieldsValueTransformed(!0);w.execFunc(a.onSubmit,t)}function O(){var t,n;a.customReset||(n=(t=h.value)==null?void 0:t.resetFields)==null||n.call(t),w.execFunc(a.onReset)}const j=t=>T.isDef(t)?(N.isArray(t)?t:[t]).join(""):Date.now();let R=[];const c=e.shallowRef(A.genRealChildren(s.default())),y=e.ref(!1),i=e.shallowRef((S=s.extra)==null?void 0:S.call(s)),b=e.computed(()=>Math.floor(u/e.unref(E)));e.watch(()=>s.default(),t=>{R=c.value,c.value=w.diffFormItem(R,A.genRealChildren(t)),y.value=!1}),e.watch(()=>{var t;return(t=s.extra)==null?void 0:t.call(s)},t=>{i.value=t});const o=e.computed(()=>{const t=c.value,n=[],r=[],x=[],m=e.unref(b);let _=0,g=0;const D=u*a.maxRows-m*(e.unref(i)&&!a.extraInAction?2:1);t.forEach((C,$)=>{const d=C.props;if(N.isBoolean(d.hidden)?!!d.hidden:T.isDef(d.hidden))n.push(C);else{let v=d.span||m;const V={node:C,span:v,key:`ApFormSearchFormItem-${$}-${j(d.name)}-${d._signal}`},q=u-_%u;q<v&&(v+=q),_+=v,_>D?r.push(V):(g=_,x.push(V))}});const k=u-(g+m)%u,M=g%u<m,W=k<m?u:k;return{hideNode:e.createVNode(e.Fragment,null,[n]),nodes:x,collapseNodes:r,extraSpan:W,lastRowOnlyIncludeActionAndExtra:M}});function L(t){c.value=[...t],y.value=!0}const U=e.computed(()=>{let t;const n=e.createVNode(l.Col,{span:e.unref(b),key:"actionWrapper"},{default:()=>[e.createVNode(P.default,null,{default:()=>[e.createVNode(l.Flex,{wrap:"wrap",justify:o.value.lastRowOnlyIncludeActionAndExtra&&!(e.unref(i)&&a.extraInAction)?"flex-end":"space-between"},{default:()=>[e.createVNode(l.Flex,{gap:8,wrap:"wrap"},{default:()=>[e.createVNode("div",{class:f("column-setting-trigger-wrapper")},[o.value.collapseNodes.length?e.createVNode(J.default,{onSubmit:F,config:o.value.collapseNodes,submitLoading:a.submitLoading},null):null,a.sortable&&c.value.length?e.createVNode(K.default,{children:c.value,onClickConfirm:L,sorted:y.value},null):null]),e.createVNode(l.Button,{type:"primary",onClick:F,loading:a.submitLoading,htmlType:"submit",class:f("action-btn")},{default:()=>[a.searchText||B("ap.apForm.search.search")]}),e.createVNode(l.Button,{onClick:O,type:"text",class:[f("action-btn"),f("action-btn-reset")]},{default:()=>[a.resetText||B("ap.apForm.search.reset")]})]}),a.extraInAction?e.unref(i):null]})]})]}),r=!a.extraInAction&&e.unref(i)?e.createVNode(l.Col,{span:o.value.extraSpan,key:"extraNode"},{default:()=>[e.createVNode(P.default,null,{default:()=>[e.createVNode(l.Flex,{justify:o.value.extraSpan===u||o.value.lastRowOnlyIncludeActionAndExtra?"start":"flex-end"},X(t=e.unref(i))?t:{default:()=>[t]})]})]}):null,x=e.createVNode(l.Col,{span:o.value.extraSpan},null);return o.value.lastRowOnlyIncludeActionAndExtra?e.createVNode(e.Fragment,null,[r||x,n]):e.createVNode(e.Fragment,null,[n,r])});return I({apForm:e.computed(()=>e.unref(h))}),(t,n)=>(e.openBlock(),e.createBlock(Q.default,e.mergeProps({ref_key:"apForm",ref:h,class:e.unref(f)()},e.unref(N.omit)(a,["collapse","defaultCollapse","onUpdate:collapse","searchText","resetText","onSubmit","onReset","extraInAction","forceExpand","countPerRow"])),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value.hideNode))),e.createVNode(e.unref(l.Row),{gutter:8},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.nodes,r=>(e.openBlock(),e.createBlock(e.unref(l.Col),{key:r.key,span:r.span},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.node)))]),_:2},1032,["span"]))),128)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(U.value)))]),_:1})]),_:1},16,["class"]))}});exports.default=Y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../item/index.vue2.js");const A=require("../item-group/helper.js");require("../../config-provider/index.js");const N=require("lodash-unified"),T=require("../../utils/index.js"),w=require("./utils.js");require("./components/popover-filter.vue.js");const z=require("./hooks/use-count-per-row.js");require("./components/popover-sorter/index.vue.js");const H=require("../../config-provider/hooks/use-namespace.js"),G=require("../../config-provider/hooks/use-locale.js"),P=require("../item/index.vue.js"),J=require("./components/popover-filter.vue2.js"),K=require("./components/popover-sorter/index.vue2.js"),Q=require("../ap-form.vue2.js");function X(f){return typeof f=="function"||Object.prototype.toString.call(f)==="[object Object]"&&!e.isVNode(f)}const u=24,Y=e.defineComponent({name:"ApFormSearchForm",__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onFieldsChange:{},onFinish:{},onFinishFailed:{},onValidate:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},collapse:{type:Boolean,default:void 0},defaultCollapse:{type:Boolean,default:!0},"onUpdate:collapse":{},searchText:{},resetText:{},onReset:{},customReset:{type:Boolean,default:!1},extraInAction:{type:Boolean,default:!1},forceExpand:{type:Boolean,default:!1},countPerRow:{default:4},submitLoading:{type:Boolean},maxRows:{default:2},sortable:{type:Boolean,default:!0},resizeTarget:{}},setup(f,{expose:I}){var S;const s=e.useSlots(),n=f,{b:m}=H.useNamespace("ap-form-search-form"),{t:B}=G.useLocale(),E=z.useCountPerRow(n),x=e.ref();function F(){var a;const t=(a=x.value)==null?void 0:a.getFieldsValueTransformed(!0);w.execFunc(n.onSubmit,t)}function O(){var t,a;n.customReset||(a=(t=x.value)==null?void 0:t.resetFields)==null||a.call(t),w.execFunc(n.onReset)}const j=t=>T.isDef(t)?(N.isArray(t)?t:[t]).join(""):Date.now();let R=[];const c=e.shallowRef(A.genRealChildren(s.default())),v=e.ref(!1),d=e.shallowRef((S=s.extra)==null?void 0:S.call(s)),b=e.computed(()=>Math.floor(u/e.unref(E)));e.watch(()=>s.default(),t=>{R=c.value,c.value=w.diffFormItem(R,A.genRealChildren(t)),v.value=!1}),e.watch(()=>{var t;return(t=s.extra)==null?void 0:t.call(s)},t=>{d.value=t});const o=e.computed(()=>{const t=c.value,a=[],r=[],h=[],i=e.unref(b);let _=0,y=0;const D=u*n.maxRows-i*(e.unref(d)&&!n.extraInAction?2:1);t.forEach((C,$)=>{const p=C.props;if(N.isBoolean(p.hidden)?!!p.hidden:T.isDef(p.hidden))a.push(C);else{let g=p.span||i;const V={node:C,span:g,key:`ApFormSearchFormItem-${$}-${j(p.name)}-${p._signal}`},q=u-_%u;q<g&&(g+=q),_+=g,_>D?r.push(V):(y=_,h.push(V))}});const k=u-(y+i)%u,M=y%u<i,W=k<i?u:k;return{hideNode:e.createVNode(e.Fragment,null,[a]),nodes:h,collapseNodes:r,extraSpan:W,lastRowOnlyIncludeActionAndExtra:M}});function L(t){c.value=[...t],v.value=!0}const U=e.computed(()=>{let t;const a=o.value.collapseNodes.length||n.sortable&&c.value.length,r=e.createVNode(l.Col,{span:e.unref(b),key:"actionWrapper"},{default:()=>[e.createVNode(P.default,null,{default:()=>[e.createVNode(l.Flex,{wrap:"wrap",justify:o.value.lastRowOnlyIncludeActionAndExtra&&!(e.unref(d)&&n.extraInAction)?"flex-end":"space-between"},{default:()=>[e.createVNode(l.Flex,{gap:8,wrap:"wrap"},{default:()=>[a?e.createVNode("div",{class:m("column-setting-trigger-wrapper")},[o.value.collapseNodes.length?e.createVNode(J.default,{onSubmit:F,config:o.value.collapseNodes,submitLoading:n.submitLoading},null):null,n.sortable&&c.value.length?e.createVNode(K.default,{children:c.value,onClickConfirm:L,sorted:v.value},null):null]):null,e.createVNode(l.Button,{type:"primary",onClick:F,loading:n.submitLoading,htmlType:"submit",class:m("action-btn")},{default:()=>[n.searchText||B("ap.apForm.search.search")]}),e.createVNode(l.Button,{onClick:O,type:"text",class:[m("action-btn"),m("action-btn-reset")]},{default:()=>[n.resetText||B("ap.apForm.search.reset")]})]}),n.extraInAction?e.unref(d):null]})]})]}),h=!n.extraInAction&&e.unref(d)?e.createVNode(l.Col,{span:o.value.extraSpan,key:"extraNode"},{default:()=>[e.createVNode(P.default,null,{default:()=>[e.createVNode(l.Flex,{justify:o.value.extraSpan===u||o.value.lastRowOnlyIncludeActionAndExtra?"start":"flex-end"},X(t=e.unref(d))?t:{default:()=>[t]})]})]}):null,i=e.createVNode(l.Col,{span:o.value.extraSpan},null);return o.value.lastRowOnlyIncludeActionAndExtra?e.createVNode(e.Fragment,null,[h||i,r]):e.createVNode(e.Fragment,null,[r,h])});return I({apForm:e.computed(()=>e.unref(x))}),(t,a)=>(e.openBlock(),e.createBlock(Q.default,e.mergeProps({ref_key:"apForm",ref:x,class:e.unref(m)()},e.unref(N.omit)(n,["collapse","defaultCollapse","onUpdate:collapse","searchText","resetText","onSubmit","onReset","extraInAction","forceExpand","countPerRow"])),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value.hideNode))),e.createVNode(e.unref(l.Row),{gutter:8},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value.nodes,r=>(e.openBlock(),e.createBlock(e.unref(l.Col),{key:r.key,span:r.span},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.node)))]),_:2},1032,["span"]))),128)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(U.value)))]),_:1})]),_:1},16,["class"]))}});exports.default=Y;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../ap-title/ApTitle.vue.js");const m=require("lodash-unified");require("../../config-provider/index.js");const k=require("../../config-provider/hooks/use-namespace.js"),_=require("../ap-title/ApTitle.vue2.js"),x={key:1},p={key:1},v=e.defineComponent({__name:"ApCard",props:{titleProps:{},padding:{}},setup(u){const t=u,{b:r}=k.useNamespace("ap-card"),d=e.computed(()=>m.omit((t==null?void 0:t.titleProps)||{},["prefix","suffix"])),c=e.computed(()=>{var n;return(n=Object.keys((t==null?void 0:t.titleProps)||{}))==null?void 0:n.length}),f=e.computed(()=>t.padding??(c.value?"14px 24px 24px":"24px"));return(n,y)=>{var s,a;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(r)()]),style:e.normalizeStyle({padding:f.value})},[c.value?(e.openBlock(),e.createBlock(_.default,e.mergeProps({key:0,class:[`${e.unref(r)()}-title`]},{...d.value}),e.createSlots({_:2},[(s=t==null?void 0:t.titleProps)!=null&&s.suffix?{name:"suffix",fn:e.withCtx(()=>{var i,l,o;return[e.isVNode((i=t==null?void 0:t.titleProps)==null?void 0:i.suffix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((l=t==null?void 0:t.titleProps)==null?void 0:l.suffix),{key:0})):(e.openBlock(),e.createElementBlock("div",x,e.toDisplayString((o=t==null?void 0:t.titleProps)==null?void 0:o.suffix),1))]}),key:"0"}:void 0,(a=t==null?void 0:t.titleProps)!=null&&a.prefix?{name:"prefix",fn:e.withCtx(()=>{var i,l,o;return[e.isVNode((i=t==null?void 0:t.titleProps)==null?void 0:i.prefix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((l=t==null?void 0:t.titleProps)==null?void 0:l.prefix),{key:0})):(e.openBlock(),e.createElementBlock("div",p,e.toDisplayString((o=t==null?void 0:t.titleProps)==null?void 0:o.prefix),1))]}),key:"1"}:void 0]),1040,["class"])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default")],6)}}});exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../ap-title/ApTitle.vue.js");const m=require("lodash-unified");require("../../config-provider/index.js");const k=require("../../config-provider/hooks/use-namespace.js"),x=require("../ap-title/ApTitle.vue2.js"),_={key:1},p={key:1},v=e.defineComponent({__name:"ApCard",props:{titleProps:{},padding:{}},setup(u){const t=u,{b:r}=k.useNamespace("ap-card"),d=e.computed(()=>m.omit((t==null?void 0:t.titleProps)||{},["prefix","suffix"])),c=e.computed(()=>{var n;return(n=Object.keys((t==null?void 0:t.titleProps)||{}))==null?void 0:n.length}),f=e.computed(()=>t.padding??(c.value?"12px 14px 14px":"12px 14px"));return(n,y)=>{var s,a;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(r)()]),style:e.normalizeStyle({padding:f.value})},[c.value?(e.openBlock(),e.createBlock(x.default,e.mergeProps({key:0,class:[`${e.unref(r)()}-title`]},{...d.value}),e.createSlots({_:2},[(s=t==null?void 0:t.titleProps)!=null&&s.suffix?{name:"suffix",fn:e.withCtx(()=>{var i,l,o;return[e.isVNode((i=t==null?void 0:t.titleProps)==null?void 0:i.suffix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((l=t==null?void 0:t.titleProps)==null?void 0:l.suffix),{key:0})):(e.openBlock(),e.createElementBlock("div",_,e.toDisplayString((o=t==null?void 0:t.titleProps)==null?void 0:o.suffix),1))]}),key:"0"}:void 0,(a=t==null?void 0:t.titleProps)!=null&&a.prefix?{name:"prefix",fn:e.withCtx(()=>{var i,l,o;return[e.isVNode((i=t==null?void 0:t.titleProps)==null?void 0:i.prefix)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent((l=t==null?void 0:t.titleProps)==null?void 0:l.prefix),{key:0})):(e.openBlock(),e.createElementBlock("div",p,e.toDisplayString((o=t==null?void 0:t.titleProps)==null?void 0:o.prefix),1))]}),key:"1"}:void 0]),1040,["class"])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default")],6)}}});exports.default=v;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("@aplus-frontend/antdv");require("../../config-provider/index.js");require("../../hooks/index.js");const v=require("../../config-provider/hooks/use-namespace.js"),k=require("../../hooks/useControllableValue.js"),y=["onClick"],b=e.defineComponent({__name:"ap-radio-group",props:{value:{default:""},options:{default:()=>[]},optionStyle:{default:()=>({height:28,gap:8})}},emits:["update:value","change"],setup(s,{emit:c}){const{b:p,e:o}=v.useNamespace("ap-radio-group"),d=s,n=c,{value:f,updateValue:m}=k.useControllableValue(d,n,{beforeUpdateValue:t=>(n("change",t),!0)}),h=t=>e.isVNode(t)?e.h(t):typeof t=="function"?e.h("span",t()):e.h("span",t);return(t,C)=>{var l;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(p)()])},[e.createVNode(e.unref(g.Flex),{gap:(l=t.optionStyle)==null?void 0:l.gap,wrap:"wrap"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options.filter(r=>r.visible!==!1),r=>{var a,u,i;return e.openBlock(),e.createElementBlock("div",{key:r.value,class:e.normalizeClass([e.unref(o)("item"),e.unref(f)===r.value?e.unref(o)("item--active"):""]),style:e.normalizeStyle({height:((a=t.optionStyle)==null?void 0:a.height)+"px",lineHeight:((u=t.optionStyle)==null?void 0:u.height)+"px",color:(i=t.optionStyle)==null?void 0:i.color}),onClick:B=>e.unref(m)(r.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h(r.label))))],14,y)}),128))]),_:1},8,["gap"])],2)}}});exports.default=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("@aplus-frontend/antdv");require("../../config-provider/index.js");require("../../hooks/index.js");const v=require("../../config-provider/hooks/use-namespace.js"),y=require("../../hooks/useControllableValue.js"),C=["onClick"],b=e.defineComponent({name:"ApRadioGroup",__name:"ap-radio-group",props:{value:{default:""},options:{default:()=>[]},optionStyle:{default:()=>({height:28,gap:8})}},emits:["update:value","change"],setup(u,{emit:c}){const{b:p,e:n}=v.useNamespace("ap-radio-group"),d=u,r=c,{value:m,updateValue:f}=y.useControllableValue(d,r),h=t=>e.isVNode(t)?e.h(t):typeof t=="function"?e.h("span",t()):e.h("span",t),g=t=>{f(t),r("change",t)};return(t,B)=>{var l;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(p)()])},[e.createVNode(e.unref(k.Flex),{gap:(l=t.optionStyle)==null?void 0:l.gap,wrap:"wrap"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options.filter(o=>o.visible!==!1),o=>{var a,i,s;return e.openBlock(),e.createElementBlock("div",{key:o.value,class:e.normalizeClass([e.unref(n)("item"),e.unref(m)===o.value?e.unref(n)("item--active"):""]),style:e.normalizeStyle({height:((a=t.optionStyle)==null?void 0:a.height)+"px",lineHeight:((i=t.optionStyle)==null?void 0:i.height)+"px",color:(s=t.optionStyle)==null?void 0:s.color}),onClick:S=>g(o.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h(o.label))))],14,C)}),128))]),_:1},8,["gap"])],2)}}});exports.default=b;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../../ap-field/index.js");const L=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const y=require("lodash-unified");require("./popover-input/index.vue.js");require("../../hooks/index.js");const N=require("../../utils/index.js"),O=require("../../ap-field/hooks/use-default-placeholder.js"),z=require("../../hooks/useControllableValue.js"),E=require("../../config-provider/hooks/use-locale.js"),F=require("../../config-provider/hooks/use-namespace.js"),T=require("../../ap-field/select/index.vue.js"),M=require("../../ap-field/text/index.js"),$=require("./popover-input/index.vue2.js"),p="GROUP_SEARCH_ALL",D=t.defineComponent({__name:"index",props:{style:{type:[Boolean,null,String,Object,Array]},inputStyle:{type:[Boolean,null,String,Object,Array]},options:{},hasAll:{type:Boolean,default:!0},value:{},"onUpdate:value":{},popoverPlacement:{default:"left"},mode:{default:"edit"},class:{},id:{},placeholder:{},autocomplete:{},type:{default:"text"},name:{},size:{},autofocus:{type:Boolean},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onKeydown:{},onKeyup:{},onMousedown:{},onMouseUp:{},onFocus:{},onBlur:{},onChange:{},onInput:{},onRawInput:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},hidden:{type:Boolean},status:{},defaultValue:{},inputElement:{},prefixCls:{},disabled:{type:Boolean},focused:{type:Boolean},triggerFocus:{},readonly:{type:Boolean},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"},beforeInput:{}},emits:["update:value"],setup(h,{emit:g}){const l=h,B=O.useDefaultPlaceholder("Text",l),b=g,{value:u,updateValue:a}=z.useControllableValue(l,b),i=t.ref(),c=t.ref(),{t:V}=E.useLocale(),{b:_,cssVar:A}=F.useNamespace("batch-input-group"),C=t.computed(()=>{const e=l.popoverPlacement;return{"popover-left":y.isNumber(e)?`${e}px`:e==="left"?"0px":"unset","popover-right":e==="right"?"0px":"unset"}}),q=t.computed(()=>l.options?l.options.length>1&&l.hasAll?[{value:p,label:V("ap.common.all")},...l.options]:l.options:[]),S=t.computed(()=>l.options?l.options.map(e=>e.value):[]),x=t.computed(()=>{var e,n;return(n=(e=t.unref(u))==null?void 0:e.value)!=null&&n.length?t.unref(u).value.join(","):""}),I=t.computed(()=>{var e,n;return(n=(e=t.unref(u))==null?void 0:e.value)!=null&&n.length?t.unref(u).value.join(`
2
- `):""}),P=t.computed(()=>{var n;const e=(n=t.unref(u))==null?void 0:n.key;if(e!=null&&e.length)return e.length===1?e[0]:p}),U=t.computed(()=>{var o;const e=(o=t.unref(u))==null?void 0:o.key;return!e||(e==null?void 0:e.length)<=1?t.unref(B):(l.options||[]).filter(r=>e.includes(r.value)).map(r=>r.label).join("/")});function w(e){const n=t.unref(u)||{},o=e===p?t.unref(S):N.isDef(e)?[e]:[];a({...n,key:o})}function k(e){var f,v;const n=t.unref(u)||{},o=e.target.value||"",r=o.replace(/[,]+/g,",");if(o!==r){const m=(v=(f=c.value)==null?void 0:f.$el)==null?void 0:v.querySelector("input");m&&(m.value=r)}let s=r.split(",");s.length===1&&s[0]===""&&(s=[]),a({...n,value:s})}function R(e){const n=t.unref(u)||{};let o=e.split(/,|\n/);a({...n,value:o})}function d(){var o;const e=t.unref(u)||{},n=(o=e.value)==null?void 0:o.filter(Boolean);a({...e,value:n})}function j(e){var n;d(),(n=l.onBlur)==null||n.call(l,e)}return(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"containerRef",ref:i,class:t.normalizeClass(t.unref(_)()),style:t.normalizeStyle(t.unref(A)(C.value)),onFocus:n[0]||(n[0]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[1]||(n[1]=(...o)=>e.onBlur&&e.onBlur(...o))},[t.createVNode(t.unref(L.Space).Compact,{block:""},{default:t.withCtx(()=>{var o;return[(o=e.options)!=null&&o.length?(t.openBlock(),t.createBlock(t.unref(T.default),{key:0,style:t.normalizeStyle(e.style),options:q.value,value:P.value,"allow-clear":!1,"dropdown-match-select-width":!1,disabled:e.disabled,"get-popup-container":()=>i.value,"onUpdate:value":w},null,8,["style","options","value","disabled","get-popup-container"])):t.createCommentVNode("",!0),t.createVNode(t.unref(M.ApFieldText),t.mergeProps(t.unref(y.omit)(l,["style","value","onUpdate:value","inputStyle","hasAll","options","onBlur"]),{ref_key:"inputRef",ref:c,style:e.inputStyle,value:x.value,placeholder:U.value,onInput:k,onBlur:j}),{suffix:t.withCtx(()=>[t.createVNode($.default,{_parent:i.value,value:I.value,disabled:e.disabled,placement:l.popoverPlacement,"onUpdate:value":R,onClose:d},null,8,["_parent","value","disabled","placement"])]),_:1},16,["style","value","placeholder"])]}),_:1})],38))}});exports.default=D;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../../ap-field/index.js");const L=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const y=require("lodash-unified");require("./popover-input/index.vue.js");require("../../hooks/index.js");const N=require("../../utils/index.js"),O=require("../../ap-field/hooks/use-default-placeholder.js"),z=require("../../hooks/useControllableValue.js"),E=require("../../config-provider/hooks/use-locale.js"),F=require("../../config-provider/hooks/use-namespace.js"),T=require("../../ap-field/select/index.vue.js"),M=require("../../ap-field/text/index.js"),$=require("./popover-input/index.vue2.js"),p="GROUP_SEARCH_ALL",D=t.defineComponent({__name:"index",props:{style:{type:[Boolean,null,String,Object,Array]},inputStyle:{type:[Boolean,null,String,Object,Array]},options:{},hasAll:{type:Boolean,default:!0},value:{},"onUpdate:value":{},popoverPlacement:{default:"left"},mode:{default:"edit"},class:{},id:{},placeholder:{},autocomplete:{},type:{default:"text"},name:{},size:{},autofocus:{type:Boolean},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onKeydown:{},onKeyup:{},onMousedown:{},onMouseUp:{},onFocus:{},onBlur:{},onChange:{},onInput:{},onRawInput:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},hidden:{type:Boolean},status:{},defaultValue:{},inputElement:{},prefixCls:{},disabled:{type:Boolean},focused:{type:Boolean},triggerFocus:{},readonly:{type:Boolean},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"},beforeInput:{}},emits:["update:value"],setup(h,{emit:g}){const l=h,B=O.useDefaultPlaceholder("Text",l),b=g,{value:u,updateValue:r}=z.useControllableValue(l,b),i=t.ref(),c=t.ref(),{t:V}=E.useLocale(),{b:_,cssVar:A}=F.useNamespace("batch-input-group"),C=t.computed(()=>{const e=l.popoverPlacement;return{"popover-left":y.isNumber(e)?`${e}px`:e==="left"?"0px":"unset","popover-right":e==="right"?"0px":"unset"}}),q=t.computed(()=>l.options?l.options.length>1&&l.hasAll?[{value:p,label:V("ap.common.all")},...l.options]:l.options:[]),S=t.computed(()=>l.options?l.options.map(e=>e.value):[]),x=t.computed(()=>{var e,n;return(n=(e=t.unref(u))==null?void 0:e.value)!=null&&n.length?t.unref(u).value.join(","):""}),I=t.computed(()=>{var e,n;return(n=(e=t.unref(u))==null?void 0:e.value)!=null&&n.length?t.unref(u).value.join(`
2
+ `):""}),P=t.computed(()=>{var n;const e=(n=t.unref(u))==null?void 0:n.key;if(e!=null&&e.length)return e.length===1||!l.hasAll?e[0]:p}),U=t.computed(()=>{var o;const e=(o=t.unref(u))==null?void 0:o.key;return!e||(e==null?void 0:e.length)<=1?t.unref(B):(l.options||[]).filter(a=>e.includes(a.value)).map(a=>a.label).join("/")});function w(e){const n=t.unref(u)||{},o=e===p?t.unref(S):N.isDef(e)?[e]:[];r({...n,key:o})}function k(e){var f,v;const n=t.unref(u)||{},o=e.target.value||"",a=o.replace(/[,]+/g,",");if(o!==a){const m=(v=(f=c.value)==null?void 0:f.$el)==null?void 0:v.querySelector("input");m&&(m.value=a)}let s=a.split(",");s.length===1&&s[0]===""&&(s=[]),r({...n,value:s})}function R(e){const n=t.unref(u)||{};let o=e.split(/,|\n/);r({...n,value:o})}function d(){var o;const e=t.unref(u)||{},n=(o=e.value)==null?void 0:o.filter(Boolean);r({...e,value:n})}function j(e){var n;d(),(n=l.onBlur)==null||n.call(l,e)}return(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"containerRef",ref:i,class:t.normalizeClass(t.unref(_)()),style:t.normalizeStyle(t.unref(A)(C.value)),onFocus:n[0]||(n[0]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[1]||(n[1]=(...o)=>e.onBlur&&e.onBlur(...o))},[t.createVNode(t.unref(L.Space).Compact,{block:""},{default:t.withCtx(()=>{var o;return[(o=e.options)!=null&&o.length?(t.openBlock(),t.createBlock(t.unref(T.default),{key:0,style:t.normalizeStyle(e.style),options:q.value,value:P.value,"allow-clear":!1,"dropdown-match-select-width":!1,disabled:e.disabled,"get-popup-container":()=>i.value,"onUpdate:value":w},null,8,["style","options","value","disabled","get-popup-container"])):t.createCommentVNode("",!0),t.createVNode(t.unref(M.ApFieldText),t.mergeProps(t.unref(y.omit)(l,["style","value","onUpdate:value","inputStyle","hasAll","options","onBlur"]),{ref_key:"inputRef",ref:c,style:e.inputStyle,value:x.value,placeholder:U.value,onInput:k,onBlur:j}),{suffix:t.withCtx(()=>[t.createVNode($.default,{_parent:i.value,value:I.value,disabled:e.disabled,placement:l.popoverPlacement,"onUpdate:value":R,onClose:d},null,8,["_parent","value","disabled","placement"])]),_:1},16,["style","value","placeholder"])]}),_:1})],38))}});exports.default=D;
@@ -1,2 +1,2 @@
1
- declare const _default: "0.6.0-beta.16";
1
+ declare const _default: "0.6.0-beta.17";
2
2
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="0.6.0-beta.16";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="0.6.0-beta.17";exports.default=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.6.0-beta.16",
3
+ "version": "0.6.0-beta.17",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -67,7 +67,7 @@
67
67
  "@aplus-frontend/hooks": "1.0.7"
68
68
  },
69
69
  "peerDependencies": {
70
- "@aplus-frontend/antdv": "^1.1.5",
70
+ "@aplus-frontend/antdv": "^1.1.6",
71
71
  "@aplus-frontend/icon": "^1.2.3",
72
72
  "@aplus-frontend/oss": "^1.1.2",
73
73
  "vue": "^3.5.13",
@@ -75,7 +75,7 @@
75
75
  "vxe-table": "4.11.29"
76
76
  },
77
77
  "devDependencies": {
78
- "@aplus-frontend/antdv": "^1.1.5",
78
+ "@aplus-frontend/antdv": "^1.1.6",
79
79
  "@aplus-frontend/icon": "^1.2.3",
80
80
  "@aplus-frontend/oss": "^1.1.2",
81
81
  "@types/sortablejs": "^1.15.8",
@@ -25,3 +25,15 @@
25
25
  .ant-input-number .ant-input-number-input-wrap > input::placeholder {
26
26
  color: #bfbfbf;
27
27
  }
28
+ input[disabled].ant-input {
29
+ color: var(--ap-text-color-1);
30
+ }
31
+ textarea[disabled].ant-input {
32
+ color: var(--ap-text-color-1);
33
+ }
34
+ .ant-picker.ant-picker-disabled .ant-picker-input > input[disabled] {
35
+ color: var(--ap-text-color-1);
36
+ }
37
+ .ant-select-disabled .ant-select-selection-item {
38
+ color: var(--ap-text-color-1) !important;
39
+ }
@@ -21,3 +21,19 @@
21
21
  .ant-input-number .ant-input-number-input-wrap > input::placeholder {
22
22
  color: #bfbfbf;
23
23
  }
24
+
25
+ input[disabled].ant-input {
26
+ color: var(--ap-text-color-1);
27
+ }
28
+
29
+ textarea[disabled].ant-input {
30
+ color: var(--ap-text-color-1);
31
+ }
32
+
33
+ .ant-picker.ant-picker-disabled .ant-picker-input > input[disabled] {
34
+ color: var(--ap-text-color-1);
35
+ }
36
+
37
+ .ant-select-disabled .ant-select-selection-item {
38
+ color: var(--ap-text-color-1) !important;
39
+ }
@@ -268,3 +268,15 @@
268
268
  .ant-input-number .ant-input-number-input-wrap > input::placeholder {
269
269
  color: #bfbfbf;
270
270
  }
271
+ input[disabled].ant-input {
272
+ color: var(--ap-text-color-1);
273
+ }
274
+ textarea[disabled].ant-input {
275
+ color: var(--ap-text-color-1);
276
+ }
277
+ .ant-picker.ant-picker-disabled .ant-picker-input > input[disabled] {
278
+ color: var(--ap-text-color-1);
279
+ }
280
+ .ant-select-disabled .ant-select-selection-item {
281
+ color: var(--ap-text-color-1) !important;
282
+ }
@@ -25,3 +25,15 @@
25
25
  .ant-input-number .ant-input-number-input-wrap > input::placeholder {
26
26
  color: #abb7cc;
27
27
  }
28
+ input[disabled].ant-input {
29
+ color: var(--ap-text-color-1);
30
+ }
31
+ textarea[disabled].ant-input {
32
+ color: var(--ap-text-color-1);
33
+ }
34
+ .ant-picker.ant-picker-disabled .ant-picker-input > input[disabled] {
35
+ color: var(--ap-text-color-1);
36
+ }
37
+ .ant-select-disabled .ant-select-selection-item {
38
+ color: var(--ap-text-color-1) !important;
39
+ }
@@ -21,3 +21,19 @@
21
21
  .ant-input-number .ant-input-number-input-wrap > input::placeholder {
22
22
  color: #abb7cc;
23
23
  }
24
+
25
+ input[disabled].ant-input {
26
+ color: var(--ap-text-color-1);
27
+ }
28
+
29
+ textarea[disabled].ant-input {
30
+ color: var(--ap-text-color-1);
31
+ }
32
+
33
+ .ant-picker.ant-picker-disabled .ant-picker-input > input[disabled] {
34
+ color: var(--ap-text-color-1);
35
+ }
36
+
37
+ .ant-select-disabled .ant-select-selection-item {
38
+ color: var(--ap-text-color-1) !important;
39
+ }
@@ -261,6 +261,18 @@
261
261
  .ant-input-number .ant-input-number-input-wrap > input::placeholder {
262
262
  color: #abb7cc;
263
263
  }
264
+ input[disabled].ant-input {
265
+ color: var(--ap-text-color-1);
266
+ }
267
+ textarea[disabled].ant-input {
268
+ color: var(--ap-text-color-1);
269
+ }
270
+ .ant-picker.ant-picker-disabled .ant-picker-input > input[disabled] {
271
+ color: var(--ap-text-color-1);
272
+ }
273
+ .ant-select-disabled .ant-select-selection-item {
274
+ color: var(--ap-text-color-1) !important;
275
+ }
264
276
  .ant-tooltip div[role='tooltip'] {
265
277
  padding-block: 6px;
266
278
  }
@@ -52,5 +52,5 @@
52
52
  margin-top: 10px;
53
53
  }
54
54
  .aplus-ap-card-title {
55
- margin-bottom: 14px;
55
+ margin-bottom: 12px;
56
56
  }
@@ -8,5 +8,5 @@
8
8
  }
9
9
  });
10
10
  .b(ap-card-title,{
11
- margin-bottom: 14px;
11
+ margin-bottom: 12px;
12
12
  });
package/theme/index.css CHANGED
@@ -286,7 +286,7 @@
286
286
  margin-top: 10px;
287
287
  }
288
288
  .aplus-ap-card-title {
289
- margin-bottom: 14px;
289
+ margin-bottom: 12px;
290
290
  }
291
291
  /**
292
292
  TODO: