@aplus-frontend/ui 0.4.2 → 0.4.4

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 (125) hide show
  1. package/es/index.mjs +158 -152
  2. package/es/src/ap-field/date/helper.d.ts +1 -1
  3. package/es/src/ap-field/date/helper.mjs +9 -9
  4. package/es/src/ap-field/date/index.vue.mjs +33 -25
  5. package/es/src/ap-field/date-range/index.vue.mjs +44 -43
  6. package/es/src/ap-field/interface.d.ts +0 -6
  7. package/es/src/ap-field/segmented/index.vue.d.ts +7 -1
  8. package/es/src/ap-field/select/index.vue.d.ts +4 -20
  9. package/es/src/ap-field/select/index.vue.mjs +11 -11
  10. package/es/src/ap-field/text/index.vue.d.ts +13 -1
  11. package/es/src/ap-form/items/text/index.vue.d.ts +26 -2
  12. package/es/src/ap-table/constants.d.ts +28 -12
  13. package/es/src/ap-table/utils.d.ts +13 -1
  14. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
  15. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +45 -55
  16. package/es/src/business/ap-batch-action/index.d.ts +5 -3
  17. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +12 -12
  18. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +7 -7
  19. package/es/src/business/ap-group-search/index.d.ts +8 -34
  20. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +2 -10
  21. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -15
  22. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -4
  23. package/es/src/business/batch-input-group/index.vue.d.ts +13 -1
  24. package/es/src/config-provider/hooks/use-namespace.d.ts +1 -1
  25. package/es/src/config-provider/hooks/use-namespace.mjs +3 -3
  26. package/es/src/hooks/index.d.ts +2 -0
  27. package/es/src/hooks/index.mjs +7 -3
  28. package/es/src/hooks/useManualRef.d.ts +6 -0
  29. package/es/src/hooks/useManualRef.mjs +27 -0
  30. package/es/src/hooks/useThrottleRef.d.ts +2 -0
  31. package/es/src/hooks/useThrottleRef.mjs +31 -0
  32. package/es/src/index.d.ts +1 -1
  33. package/es/src/index.mjs +231 -228
  34. package/es/src/path-map.mjs +1 -1
  35. package/es/src/scroll-bar/hooks/use-track.d.ts +30 -0
  36. package/es/src/scroll-bar/hooks/use-track.mjs +76 -0
  37. package/es/src/scroll-bar/index.d.ts +4 -0
  38. package/es/src/scroll-bar/index.mjs +3 -0
  39. package/es/src/scroll-bar/index.vue.d.ts +52 -0
  40. package/es/src/scroll-bar/index.vue.mjs +77 -0
  41. package/es/src/scroll-bar/index.vue2.mjs +4 -0
  42. package/es/src/scroll-bar/interface.d.ts +66 -0
  43. package/es/src/scroll-bar/internal.vue.d.ts +22 -0
  44. package/es/src/scroll-bar/internal.vue.mjs +132 -0
  45. package/es/src/scroll-bar/internal.vue2.mjs +4 -0
  46. package/es/src/scroll-bar/style/css.js +1 -0
  47. package/es/src/scroll-bar/style/index.js +1 -0
  48. package/es/src/scroll-bar/utils/index.d.ts +22 -0
  49. package/es/src/scroll-bar/utils/index.mjs +17 -0
  50. package/lib/index.js +1 -1
  51. package/lib/src/ap-field/date/helper.d.ts +1 -1
  52. package/lib/src/ap-field/date/helper.js +1 -1
  53. package/lib/src/ap-field/date/index.vue.js +1 -1
  54. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  55. package/lib/src/ap-field/interface.d.ts +0 -6
  56. package/lib/src/ap-field/segmented/index.vue.d.ts +7 -1
  57. package/lib/src/ap-field/select/index.vue.d.ts +4 -20
  58. package/lib/src/ap-field/select/index.vue.js +1 -1
  59. package/lib/src/ap-field/text/index.vue.d.ts +13 -1
  60. package/lib/src/ap-form/items/text/index.vue.d.ts +26 -2
  61. package/lib/src/ap-table/constants.d.ts +28 -12
  62. package/lib/src/ap-table/utils.d.ts +13 -1
  63. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
  64. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  65. package/lib/src/business/ap-batch-action/index.d.ts +5 -3
  66. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  67. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  68. package/lib/src/business/ap-group-search/index.d.ts +8 -34
  69. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +2 -10
  70. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
  71. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  72. package/lib/src/business/batch-input-group/index.vue.d.ts +13 -1
  73. package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -1
  74. package/lib/src/config-provider/hooks/use-namespace.js +1 -1
  75. package/lib/src/hooks/index.d.ts +2 -0
  76. package/lib/src/hooks/index.js +1 -1
  77. package/lib/src/hooks/useManualRef.d.ts +6 -0
  78. package/lib/src/hooks/useManualRef.js +1 -0
  79. package/lib/src/hooks/useThrottleRef.d.ts +2 -0
  80. package/lib/src/hooks/useThrottleRef.js +1 -0
  81. package/lib/src/index.d.ts +1 -1
  82. package/lib/src/index.js +1 -1
  83. package/lib/src/path-map.js +1 -1
  84. package/lib/src/scroll-bar/hooks/use-track.d.ts +30 -0
  85. package/lib/src/scroll-bar/hooks/use-track.js +1 -0
  86. package/lib/src/scroll-bar/index.d.ts +4 -0
  87. package/lib/src/scroll-bar/index.js +1 -0
  88. package/lib/src/scroll-bar/index.vue.d.ts +52 -0
  89. package/lib/src/scroll-bar/index.vue.js +1 -0
  90. package/lib/src/scroll-bar/index.vue2.js +1 -0
  91. package/lib/src/scroll-bar/interface.d.ts +66 -0
  92. package/lib/src/scroll-bar/internal.vue.d.ts +22 -0
  93. package/lib/src/scroll-bar/internal.vue.js +1 -0
  94. package/lib/src/scroll-bar/internal.vue2.js +1 -0
  95. package/lib/src/scroll-bar/style/css.cjs +1 -0
  96. package/lib/src/scroll-bar/style/index.cjs +1 -0
  97. package/lib/src/scroll-bar/utils/index.d.ts +22 -0
  98. package/lib/src/scroll-bar/utils/index.js +1 -0
  99. package/package.json +3 -3
  100. package/theme/index.css +36 -21
  101. package/theme/index.less +1 -1
  102. package/theme/scroll-bar/index.css +46 -0
  103. package/theme/scroll-bar/index.less +62 -0
  104. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +0 -8
  105. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.mjs +0 -4
  106. package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +0 -116
  107. package/es/src/ap-scroll-bar/index.d.ts +0 -29
  108. package/es/src/ap-scroll-bar/index.mjs +0 -8
  109. package/es/src/ap-scroll-bar/interface.d.ts +0 -4
  110. package/es/src/ap-scroll-bar/style/css.js +0 -1
  111. package/es/src/ap-scroll-bar/style/index.js +0 -1
  112. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +0 -8
  113. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.js +0 -1
  114. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +0 -1
  115. package/lib/src/ap-scroll-bar/index.d.ts +0 -29
  116. package/lib/src/ap-scroll-bar/index.js +0 -1
  117. package/lib/src/ap-scroll-bar/interface.d.ts +0 -4
  118. package/lib/src/ap-scroll-bar/style/css.cjs +0 -1
  119. package/lib/src/ap-scroll-bar/style/index.cjs +0 -1
  120. /package/es/src/{ap-scroll-bar → scroll-bar}/interface.mjs +0 -0
  121. /package/es/src/{ap-scroll-bar → scroll-bar}/style/css.d.ts +0 -0
  122. /package/es/src/{ap-scroll-bar → scroll-bar}/style/index.d.ts +0 -0
  123. /package/lib/src/{ap-scroll-bar → scroll-bar}/interface.js +0 -0
  124. /package/lib/src/{ap-scroll-bar → scroll-bar}/style/css.d.ts +0 -0
  125. /package/lib/src/{ap-scroll-bar → scroll-bar}/style/index.d.ts +0 -0
@@ -1,83 +1,73 @@
1
- import { defineComponent as k, useSlots as N, computed as V, ref as $, watch as x, openBlock as d, createElementBlock as C, normalizeClass as v, unref as c, renderSlot as A, createCommentVNode as P, createElementVNode as u, createTextVNode as S, toDisplayString as m, createVNode as D, withCtx as E } from "vue";
2
- import { Button as K } from "@aplus-frontend/antdv";
1
+ import { defineComponent as b, useSlots as x, computed as D, ref as N, watch as V, openBlock as E, createElementBlock as K, normalizeClass as f, unref as t, withDirectives as T, createElementVNode as c, renderSlot as m, vShow as z, createTextVNode as v, toDisplayString as a, createVNode as F, withCtx as O } from "vue";
2
+ import { Button as j } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
- import { usePermission as L } from "@aplus-frontend/hooks";
5
- import { useNamespace as R } from "../../config-provider/hooks/use-namespace.mjs";
6
- import { useLocale as z } from "../../config-provider/hooks/use-locale.mjs";
7
- const F = { class: "selected-desc" }, H = { class: "selected-desc-conut" }, O = { class: "selected-desc-clean" }, M = /* @__PURE__ */ k({
4
+ import { useNamespace as q } from "../../config-provider/hooks/use-namespace.mjs";
5
+ import { useLocale as G } from "../../config-provider/hooks/use-locale.mjs";
6
+ const I = { class: "selected-desc" }, J = { class: "selected-desc-conut" }, M = { class: "selected-desc-clean" }, Y = /* @__PURE__ */ b({
8
7
  __name: "ApBatchAction",
9
8
  props: {
10
9
  selectedRowKeys: {},
11
10
  clearAll: { type: Function }
12
11
  },
13
- setup(b) {
14
- const { b: f } = R("ap-batch-action"), { t: h } = z(), y = b, { hasPermission: w } = L(), l = N(), g = V(() => {
15
- var s;
16
- return ((s = y.selectedRowKeys) == null ? void 0 : s.length) || 0;
17
- }), B = $(!1);
18
- return x(
19
- () => l.header,
12
+ setup(R) {
13
+ const { b: n } = q("ap-batch-action"), { t: r } = G(), i = R, s = x(), $ = D(() => {
14
+ var e;
15
+ return ((e = i.selectedRowKeys) == null ? void 0 : e.length) || 0;
16
+ }), d = N(!1), p = N();
17
+ return V(
18
+ () => s.header,
20
19
  () => {
21
- var p;
22
- const s = (p = l == null ? void 0 : l.header) == null ? void 0 : p.call(l);
23
- B.value = Array.isArray(s) && s.filter(Boolean).filter(
24
- (t) => (
25
- // 兼容 v-if 和 空标签
26
- t.type !== Symbol.for("v-cmt") && t.type !== Symbol.for("v-fgt")
27
- )
28
- ).filter((t) => {
29
- var i, e, a, _;
30
- const o = ((i = t == null ? void 0 : t.props) == null ? void 0 : i["if-show"]) ?? ((e = t == null ? void 0 : t.props) == null ? void 0 : e.ifShow), n = (a = t == null ? void 0 : t.props) == null ? void 0 : a.auth;
31
- let r = o;
32
- return !((_ = t == null ? void 0 : t.props) != null && _.ifShow) && n && (r = () => w(n)), (r == null ? void 0 : r()) ?? !0;
33
- }).filter((t) => {
34
- var r, i;
35
- const o = ((r = t == null ? void 0 : t.props) == null ? void 0 : r["menu-list"]) ?? ((i = t == null ? void 0 : t.props) == null ? void 0 : i.menuList), n = (o == null ? void 0 : o.filter((e) => {
36
- let a = e == null ? void 0 : e.ifShow;
37
- return !(e != null && e.ifShow) && (e != null && e.auth) && (a = () => w(e.auth)), (a == null ? void 0 : a()) ?? !0;
38
- })) || [];
39
- return o === void 0 ? !0 : n.length > 0;
40
- }).length > 0;
20
+ setTimeout(() => {
21
+ var l, h, y, A, _, B, o, g, w, S, k;
22
+ const e = (l = s.header) == null ? void 0 : l.call(s);
23
+ (e == null ? void 0 : e.length) === 1 && ((y = (h = e == null ? void 0 : e[0]) == null ? void 0 : h.type) == null ? void 0 : y.name) === "ASpace" ? d.value = !!((w = (g = (o = Array.prototype.slice.call((B = (_ = (A = p.value) == null ? void 0 : A.children) == null ? void 0 : _[0]) == null ? void 0 : B.children)) == null ? void 0 : o.filter) == null ? void 0 : g.call(o, (u) => {
24
+ var C;
25
+ return (C = u == null ? void 0 : u.children) == null ? void 0 : C.length;
26
+ })) != null && w.length) : d.value = !!((k = (S = p.value) == null ? void 0 : S.children) != null && k.length);
27
+ });
41
28
  },
42
29
  {
43
30
  immediate: !0
44
31
  }
45
- ), (s, p) => (d(), C("div", {
46
- class: v([c(f)()])
32
+ ), (e, l) => (E(), K("div", {
33
+ class: f([t(n)()])
47
34
  }, [
48
- B.value ? (d(), C("div", {
49
- key: 0,
50
- class: v(c(f)("header"))
35
+ T(c("div", {
36
+ ref_key: "headerRef",
37
+ ref: p,
38
+ class: f(t(n)("header"))
51
39
  }, [
52
- A(s.$slots, "header")
53
- ], 2)) : P("", !0),
54
- u("div", {
55
- class: v(c(f)("body"))
40
+ m(e.$slots, "header")
41
+ ], 2), [
42
+ [z, d.value]
43
+ ]),
44
+ c("div", {
45
+ class: f(t(n)("body"))
56
46
  }, [
57
- A(s.$slots, "prefix"),
58
- u("div", F, [
59
- u("div", H, [
60
- S(m(c(h)("ap.apBatchAction.selected")) + " ", 1),
61
- u("span", null, m(g.value), 1),
62
- S(" " + m(c(h)("ap.apBatchAction.piecesOfData")), 1)
47
+ m(e.$slots, "prefix"),
48
+ c("div", I, [
49
+ c("div", J, [
50
+ v(a(t(r)("ap.apBatchAction.selected")) + " ", 1),
51
+ c("span", null, a($.value), 1),
52
+ v(" " + a(t(r)("ap.apBatchAction.piecesOfData")), 1)
63
53
  ]),
64
- u("div", O, [
65
- D(c(K), {
54
+ c("div", M, [
55
+ F(t(j), {
66
56
  type: "link",
67
- onClick: p[0] || (p[0] = (t) => y.clearAll && y.clearAll())
57
+ onClick: l[0] || (l[0] = (h) => i.clearAll && i.clearAll())
68
58
  }, {
69
- default: E(() => [
70
- S(m(c(h)("ap.apBatchAction.empty")), 1)
59
+ default: O(() => [
60
+ v(a(t(r)("ap.apBatchAction.empty")), 1)
71
61
  ]),
72
62
  _: 1
73
63
  })
74
64
  ])
75
65
  ]),
76
- A(s.$slots, "suffix")
66
+ m(e.$slots, "suffix")
77
67
  ], 2)
78
68
  ], 2));
79
69
  }
80
70
  });
81
71
  export {
82
- M as default
72
+ Y as default
83
73
  };
@@ -2,7 +2,9 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
2
2
  import { ApBatchActionProps } from './interface';
3
3
  export * from './interface';
4
4
  declare const ApBatchAction: {
5
- new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
5
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
6
+ headerRef: HTMLDivElement;
7
+ }, HTMLDivElement, ComponentProvideOptions, {
6
8
  P: {};
7
9
  B: {};
8
10
  D: {};
@@ -15,11 +17,11 @@ declare const ApBatchAction: {
15
17
  __isSuspense?: never;
16
18
  } & ComponentOptionsBase<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
17
19
  $slots: Readonly<{
18
- header: () => void;
20
+ header: () => any[];
19
21
  prefix: () => void;
20
22
  suffix: () => void;
21
23
  }> & {
22
- header: () => void;
24
+ header: () => any[];
23
25
  prefix: () => void;
24
26
  suffix: () => void;
25
27
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as M, computed as c, onMounted as N, watch as R, unref as t, resolveComponent as D, openBlock as w, createElementBlock as K, normalizeClass as d, createVNode as p, withCtx as C, normalizeStyle as O, createBlock as F, createCommentVNode as T, renderSlot as $ } from "vue";
1
+ import { defineComponent as P, ref as M, computed as c, onMounted as N, watch as O, unref as t, resolveComponent as R, openBlock as C, createElementBlock as D, normalizeClass as d, createVNode as p, withCtx as w, normalizeStyle as K, createBlock as F, createCommentVNode as T, renderSlot as $ } from "vue";
2
2
  import { Flex as j, Select as E } from "@aplus-frontend/antdv";
3
3
  import G from "./images/icon-down.vue.mjs";
4
4
  import "./extension-select/index.vue.mjs";
@@ -26,7 +26,6 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
26
26
  placement: {},
27
27
  status: {},
28
28
  "onUpdate:value": {},
29
- onBeforeSelect: {},
30
29
  children: {},
31
30
  listHeight: {},
32
31
  onMouseenter: {},
@@ -86,16 +85,17 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
86
85
  optionFilterProp: {},
87
86
  optionLabelProp: {},
88
87
  defaultActiveFirstOption: { type: Boolean },
88
+ onClickOption: {},
89
89
  labelInValue: { type: Boolean },
90
90
  hasAll: { type: Boolean, default: !0 },
91
91
  style: {}
92
92
  },
93
93
  emits: ["update:value"],
94
- setup(S, { emit: B }) {
95
- const { t: h } = H(), f = U("uiMode", "aplus"), y = M(), l = S, _ = c(() => ({
94
+ setup(S, { emit: _ }) {
95
+ const { t: h } = H(), f = U("uiMode", "aplus"), y = M(), l = S, B = c(() => ({
96
96
  width: "auto",
97
97
  ...l.style
98
- })), b = B, { value: a, updateValue: u } = z(l, b), A = (e) => {
98
+ })), b = _, { value: a, updateValue: u } = z(l, b), A = (e) => {
99
99
  let o = e;
100
100
  e === m ? o = l.options.map((n) => n.value) : o = toString.call(o) === "[object Array]" ? e : [e], u({
101
101
  ...a.value,
@@ -112,7 +112,7 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
112
112
  return !o || o.length === 1 ? n : ((i = l.options) == null ? void 0 : i.filter((r) => o.includes(r.value)).map((r) => r.label).join("/")) || n;
113
113
  });
114
114
  N(() => {
115
- R(
115
+ O(
116
116
  () => {
117
117
  var e;
118
118
  return [l.hasAll, (e = t(a)) == null ? void 0 : e.key];
@@ -142,31 +142,31 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
142
142
  });
143
143
  }, { b: I, e: g, em: L } = W("ap-group-search");
144
144
  return (e, o) => {
145
- const n = D("Divider");
146
- return w(), K("div", {
145
+ const n = R("Divider");
146
+ return C(), D("div", {
147
147
  ref_key: "containerRef",
148
148
  ref: y,
149
149
  class: d(t(I)())
150
150
  }, [
151
151
  p(t(j), null, {
152
- default: C(() => {
152
+ default: w(() => {
153
153
  var s, i;
154
154
  return [
155
155
  p(t(E), {
156
156
  value: V.value,
157
- style: O(_.value),
157
+ style: K(B.value),
158
158
  class: d(`${e.$attrs.class} ${t(f) === "admin" ? t(L)("search", "admin") : t(g)("search")}`),
159
159
  options: k.value,
160
160
  bordered: !1,
161
161
  "dropdown-match-select-width": l.dropdownMatchSelectWidth,
162
162
  onChange: A
163
163
  }, {
164
- suffixIcon: C(() => [
164
+ suffixIcon: w(() => [
165
165
  p(G)
166
166
  ]),
167
167
  _: 1
168
168
  }, 8, ["value", "style", "class", "options", "dropdown-match-select-width"]),
169
- t(f) === "aplus" ? (w(), F(n, {
169
+ t(f) === "aplus" ? (C(), F(n, {
170
170
  key: 0,
171
171
  class: d(t(g)("divider")),
172
172
  type: "vertical",
@@ -1,11 +1,11 @@
1
- import { defineComponent as y, ref as a, computed as C, watch as w, openBlock as B, createElementBlock as _, createVNode as s, unref as l, normalizeClass as x, normalizeStyle as S, withCtx as b } from "vue";
1
+ import { defineComponent as C, ref as a, computed as y, watch as w, openBlock as B, createElementBlock as _, createVNode as s, unref as l, normalizeClass as x, normalizeStyle as b, withCtx as S } from "vue";
2
2
  import { Select as I } from "@aplus-frontend/antdv";
3
3
  import "../popover-select/index.vue.mjs";
4
4
  import "../../../config-provider/index.mjs";
5
5
  import { useGlobalConfig as R } from "../../../config-provider/hooks/use-global-config.mjs";
6
6
  import { useNamespace as V } from "../../../config-provider/hooks/use-namespace.mjs";
7
7
  import N from "../popover-select/index.vue2.mjs";
8
- const O = /* @__PURE__ */ y({
8
+ const F = /* @__PURE__ */ C({
9
9
  __name: "index",
10
10
  props: {
11
11
  value: {},
@@ -21,7 +21,6 @@ const O = /* @__PURE__ */ y({
21
21
  placement: {},
22
22
  status: {},
23
23
  "onUpdate:value": {},
24
- onBeforeSelect: {},
25
24
  children: {},
26
25
  listHeight: {},
27
26
  onMouseenter: {},
@@ -81,12 +80,13 @@ const O = /* @__PURE__ */ y({
81
80
  optionFilterProp: {},
82
81
  optionLabelProp: {},
83
82
  defaultActiveFirstOption: { type: Boolean },
83
+ onClickOption: {},
84
84
  labelInValue: { type: Boolean },
85
85
  __parentRef: {}
86
86
  },
87
87
  emits: ["change"],
88
88
  setup(u, { emit: c }) {
89
- const d = R("uiMode", "aplus"), o = u, r = a(), n = a(), t = a(!1), m = C(() => o.__parentRef || r.value), f = c, h = (e) => {
89
+ const d = R("uiMode", "aplus"), o = u, r = a(), n = a(), t = a(!1), m = y(() => o.__parentRef || r.value), f = c, h = (e) => {
90
90
  e && (t.value = !1);
91
91
  };
92
92
  w(
@@ -106,7 +106,7 @@ const O = /* @__PURE__ */ y({
106
106
  s(l(I), {
107
107
  class: x(l(g)()),
108
108
  value: n.value,
109
- style: S(e.$attrs.style),
109
+ style: b(e.$attrs.style),
110
110
  bordered: l(d) === "admin",
111
111
  mode: "tags",
112
112
  "show-arrow": !0,
@@ -117,7 +117,7 @@ const O = /* @__PURE__ */ y({
117
117
  onDropdownVisibleChange: i[0] || (i[0] = (v) => t.value = v),
118
118
  onChange: p
119
119
  }, {
120
- suffixIcon: b(() => [
120
+ suffixIcon: S(() => [
121
121
  s(N, {
122
122
  value: n.value,
123
123
  "__parent-ref": m.value,
@@ -131,5 +131,5 @@ const O = /* @__PURE__ */ y({
131
131
  }
132
132
  });
133
133
  export {
134
- O as default
134
+ F as default
135
135
  };
@@ -98,10 +98,6 @@ declare const ApExtensionSelect: {
98
98
  type: PropType<(val: SelectValue) => void>;
99
99
  default: (val: SelectValue) => void;
100
100
  };
101
- onBeforeSelect: {
102
- type: PropType<(nextVal: SelectValue) => boolean | Promise<boolean>>;
103
- default: (nextVal: SelectValue) => boolean | Promise<boolean>;
104
- };
105
101
  children: PropType< VueNode[]>;
106
102
  listHeight: NumberConstructor;
107
103
  onMouseenter: PropType<(e: MouseEvent) => void>;
@@ -221,6 +217,7 @@ declare const ApExtensionSelect: {
221
217
  type: BooleanConstructor;
222
218
  default: any;
223
219
  };
220
+ onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
224
221
  labelInValue: {
225
222
  type: BooleanConstructor;
226
223
  default: any;
@@ -283,10 +280,6 @@ declare const ApExtensionSelect: {
283
280
  type: PropType<(val: SelectValue) => void>;
284
281
  default: (val: SelectValue) => void;
285
282
  };
286
- onBeforeSelect: {
287
- type: PropType<(nextVal: SelectValue) => boolean | Promise<boolean>>;
288
- default: (nextVal: SelectValue) => boolean | Promise<boolean>;
289
- };
290
283
  children: PropType< VueNode[]>;
291
284
  listHeight: NumberConstructor;
292
285
  onMouseenter: PropType<(e: MouseEvent) => void>;
@@ -406,6 +399,7 @@ declare const ApExtensionSelect: {
406
399
  type: BooleanConstructor;
407
400
  default: any;
408
401
  };
402
+ onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
409
403
  labelInValue: {
410
404
  type: BooleanConstructor;
411
405
  default: any;
@@ -461,10 +455,6 @@ declare const ApExtensionSelect: {
461
455
  type: PropType<(val: SelectValue) => void>;
462
456
  default: (val: SelectValue) => void;
463
457
  };
464
- onBeforeSelect: {
465
- type: PropType<(nextVal: SelectValue) => boolean | Promise<boolean>>;
466
- default: (nextVal: SelectValue) => boolean | Promise<boolean>;
467
- };
468
458
  children: PropType< VueNode[]>;
469
459
  listHeight: NumberConstructor;
470
460
  onMouseenter: PropType<(e: MouseEvent) => void>;
@@ -584,6 +574,7 @@ declare const ApExtensionSelect: {
584
574
  type: BooleanConstructor;
585
575
  default: any;
586
576
  };
577
+ onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
587
578
  labelInValue: {
588
579
  type: BooleanConstructor;
589
580
  default: any;
@@ -643,10 +634,6 @@ declare const ApPopoverSelect: {
643
634
  type: PropType<(val: SelectValue) => void>;
644
635
  default: (val: SelectValue) => void;
645
636
  };
646
- onBeforeSelect: {
647
- type: PropType<(nextVal: SelectValue) => boolean | Promise<boolean>>;
648
- default: (nextVal: SelectValue) => boolean | Promise<boolean>;
649
- };
650
637
  children: PropType< VueNode[]>;
651
638
  listHeight: NumberConstructor;
652
639
  onMouseenter: PropType<(e: MouseEvent) => void>;
@@ -766,6 +753,7 @@ declare const ApPopoverSelect: {
766
753
  type: BooleanConstructor;
767
754
  default: any;
768
755
  };
756
+ onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
769
757
  labelInValue: {
770
758
  type: BooleanConstructor;
771
759
  default: any;
@@ -822,10 +810,6 @@ declare const ApPopoverSelect: {
822
810
  type: PropType<(val: SelectValue) => void>;
823
811
  default: (val: SelectValue) => void;
824
812
  };
825
- onBeforeSelect: {
826
- type: PropType<(nextVal: SelectValue) => boolean | Promise<boolean>>;
827
- default: (nextVal: SelectValue) => boolean | Promise<boolean>;
828
- };
829
813
  children: PropType< VueNode[]>;
830
814
  listHeight: NumberConstructor;
831
815
  onMouseenter: PropType<(e: MouseEvent) => void>;
@@ -945,6 +929,7 @@ declare const ApPopoverSelect: {
945
929
  type: BooleanConstructor;
946
930
  default: any;
947
931
  };
932
+ onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
948
933
  labelInValue: {
949
934
  type: BooleanConstructor;
950
935
  default: any;
@@ -973,7 +958,6 @@ declare const ApPopoverSelect: {
973
958
  filterOption: boolean | FilterFunc<DefaultOptionType>;
974
959
  defaultActiveFirstOption: boolean;
975
960
  labelInValue: boolean;
976
- onBeforeSelect: (nextVal: SelectValue) => boolean | Promise<boolean>;
977
961
  }, true, {}, CustomSlotsType<{
978
962
  notFoundContent: any;
979
963
  suffixIcon: any;
@@ -1037,10 +1021,6 @@ declare const ApPopoverSelect: {
1037
1021
  type: PropType<(val: SelectValue) => void>;
1038
1022
  default: (val: SelectValue) => void;
1039
1023
  };
1040
- onBeforeSelect: {
1041
- type: PropType<(nextVal: SelectValue) => boolean | Promise<boolean>>;
1042
- default: (nextVal: SelectValue) => boolean | Promise<boolean>;
1043
- };
1044
1024
  children: PropType< VueNode[]>;
1045
1025
  listHeight: NumberConstructor;
1046
1026
  onMouseenter: PropType<(e: MouseEvent) => void>;
@@ -1160,6 +1140,7 @@ declare const ApPopoverSelect: {
1160
1140
  type: BooleanConstructor;
1161
1141
  default: any;
1162
1142
  };
1143
+ onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
1163
1144
  labelInValue: {
1164
1145
  type: BooleanConstructor;
1165
1146
  default: any;
@@ -1188,7 +1169,6 @@ declare const ApPopoverSelect: {
1188
1169
  filterOption: boolean | FilterFunc<DefaultOptionType>;
1189
1170
  defaultActiveFirstOption: boolean;
1190
1171
  labelInValue: boolean;
1191
- onBeforeSelect: (nextVal: SelectValue) => boolean | Promise<boolean>;
1192
1172
  }> | null;
1193
1173
  }, HTMLDivElement, ComponentProvideOptions, {
1194
1174
  P: {};
@@ -1240,10 +1220,6 @@ declare const ApPopoverSelect: {
1240
1220
  type: PropType<(val: SelectValue) => void>;
1241
1221
  default: (val: SelectValue) => void;
1242
1222
  };
1243
- onBeforeSelect: {
1244
- type: PropType<(nextVal: SelectValue) => boolean | Promise<boolean>>;
1245
- default: (nextVal: SelectValue) => boolean | Promise<boolean>;
1246
- };
1247
1223
  children: PropType< VueNode[]>;
1248
1224
  listHeight: NumberConstructor;
1249
1225
  onMouseenter: PropType<(e: MouseEvent) => void>;
@@ -1363,6 +1339,7 @@ declare const ApPopoverSelect: {
1363
1339
  type: BooleanConstructor;
1364
1340
  default: any;
1365
1341
  };
1342
+ onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
1366
1343
  labelInValue: {
1367
1344
  type: BooleanConstructor;
1368
1345
  default: any;
@@ -1419,10 +1396,6 @@ declare const ApPopoverSelect: {
1419
1396
  type: PropType<(val: SelectValue) => void>;
1420
1397
  default: (val: SelectValue) => void;
1421
1398
  };
1422
- onBeforeSelect: {
1423
- type: PropType<(nextVal: SelectValue) => boolean | Promise<boolean>>;
1424
- default: (nextVal: SelectValue) => boolean | Promise<boolean>;
1425
- };
1426
1399
  children: PropType< VueNode[]>;
1427
1400
  listHeight: NumberConstructor;
1428
1401
  onMouseenter: PropType<(e: MouseEvent) => void>;
@@ -1542,6 +1515,7 @@ declare const ApPopoverSelect: {
1542
1515
  type: BooleanConstructor;
1543
1516
  default: any;
1544
1517
  };
1518
+ onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
1545
1519
  labelInValue: {
1546
1520
  type: BooleanConstructor;
1547
1521
  default: any;
@@ -60,10 +60,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
60
60
  type: PropType<(val: SelectValue) => void>;
61
61
  default: (val: SelectValue) => void;
62
62
  };
63
- onBeforeSelect: {
64
- type: PropType<(nextVal: SelectValue) => boolean | Promise<boolean>>;
65
- default: (nextVal: SelectValue) => boolean | Promise<boolean>;
66
- };
67
63
  children: PropType< VueNode[]>;
68
64
  listHeight: NumberConstructor;
69
65
  onMouseenter: PropType<(e: MouseEvent) => void>;
@@ -183,6 +179,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
183
179
  type: BooleanConstructor;
184
180
  default: any;
185
181
  };
182
+ onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
186
183
  labelInValue: {
187
184
  type: BooleanConstructor;
188
185
  default: any;
@@ -211,7 +208,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
211
208
  filterOption: boolean | FilterFunc<DefaultOptionType>;
212
209
  defaultActiveFirstOption: boolean;
213
210
  labelInValue: boolean;
214
- onBeforeSelect: (nextVal: SelectValue) => boolean | Promise<boolean>;
215
211
  }, true, {}, CustomSlotsType<{
216
212
  notFoundContent: any;
217
213
  suffixIcon: any;
@@ -275,10 +271,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
275
271
  type: PropType<(val: SelectValue) => void>;
276
272
  default: (val: SelectValue) => void;
277
273
  };
278
- onBeforeSelect: {
279
- type: PropType<(nextVal: SelectValue) => boolean | Promise<boolean>>;
280
- default: (nextVal: SelectValue) => boolean | Promise<boolean>;
281
- };
282
274
  children: PropType< VueNode[]>;
283
275
  listHeight: NumberConstructor;
284
276
  onMouseenter: PropType<(e: MouseEvent) => void>;
@@ -398,6 +390,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
398
390
  type: BooleanConstructor;
399
391
  default: any;
400
392
  };
393
+ onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
401
394
  labelInValue: {
402
395
  type: BooleanConstructor;
403
396
  default: any;
@@ -426,7 +419,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
426
419
  filterOption: boolean | FilterFunc<DefaultOptionType>;
427
420
  defaultActiveFirstOption: boolean;
428
421
  labelInValue: boolean;
429
- onBeforeSelect: (nextVal: SelectValue) => boolean | Promise<boolean>;
430
422
  }> | null;
431
423
  }, HTMLDivElement>;
432
424
  export default _default;
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, ref as u, watchEffect as R, openBlock as L, createElementBlock as M, normalizeClass as p, unref as e, createVNode as a, withCtx as n, createElementVNode as s, mergeProps as O, createTextVNode as d, toDisplayString as m } from "vue";
1
+ import { defineComponent as P, ref as u, watchEffect as O, openBlock as R, createElementBlock as L, normalizeClass as p, unref as e, createVNode as a, withCtx as n, createElementVNode as s, mergeProps as M, createTextVNode as d, toDisplayString as m } from "vue";
2
2
  import { Popover as T, Select as z, Button as f, Space as G } from "@aplus-frontend/antdv";
3
3
  import "../../../config-provider/index.mjs";
4
4
  import A from "../images/icon-line-select.vue.mjs";
@@ -22,7 +22,6 @@ const Y = /* @__PURE__ */ P({
22
22
  placement: {},
23
23
  status: {},
24
24
  "onUpdate:value": {},
25
- onBeforeSelect: {},
26
25
  children: {},
27
26
  listHeight: {},
28
27
  onMouseenter: {},
@@ -82,35 +81,36 @@ const Y = /* @__PURE__ */ P({
82
81
  optionFilterProp: {},
83
82
  optionLabelProp: {},
84
83
  defaultActiveFirstOption: { type: Boolean },
84
+ onClickOption: {},
85
85
  labelInValue: { type: Boolean },
86
86
  __parentRef: {}
87
87
  },
88
88
  emits: ["submit", "open-change"],
89
89
  setup(S, { emit: w }) {
90
- const { t: r } = F(), h = E("uiMode", "aplus"), c = S, v = w, t = u([]), i = u(!1), g = u();
91
- R(() => {
92
- t.value = c.value;
90
+ const { t: r } = F(), h = E("uiMode", "aplus"), i = S, v = w, t = u([]), c = u(!1), g = u();
91
+ O(() => {
92
+ t.value = i.value;
93
93
  });
94
- const B = (o) => c.__parentRef || o, b = (o) => {
95
- i.value = o, v("open-change", o);
94
+ const B = (o) => i.__parentRef || o, b = (o) => {
95
+ c.value = o, v("open-change", o);
96
96
  }, C = () => {
97
- i.value = !1;
97
+ c.value = !1;
98
98
  }, _ = () => {
99
99
  t.value = [];
100
- }, x = (o) => {
100
+ }, k = (o) => {
101
101
  t.value = o;
102
- }, k = async () => {
102
+ }, x = async () => {
103
103
  var o;
104
104
  (o = g.value) == null || o.blur(), C(), await D(150), v("submit", t.value);
105
105
  }, { b: V, e: I, em: l } = K("ap-popover-select");
106
- return (o, y) => (L(), M("div", {
106
+ return (o, y) => (R(), L("div", {
107
107
  class: p(e(V)())
108
108
  }, [
109
109
  a(e(T), {
110
110
  "overlay-class-name": e(I)("popover"),
111
111
  "get-popup-container": B,
112
112
  trigger: "click",
113
- open: i.value,
113
+ open: c.value,
114
114
  placement: "bottomLeft",
115
115
  onOpenChange: b
116
116
  }, {
@@ -119,7 +119,7 @@ const Y = /* @__PURE__ */ P({
119
119
  s("div", {
120
120
  class: p(e(l)("popover", "content"))
121
121
  }, [
122
- a(e(z), O({ ...c }, {
122
+ a(e(z), M({ ...i }, {
123
123
  ref_key: "selectRef",
124
124
  ref: g,
125
125
  mode: "tags",
@@ -130,7 +130,7 @@ const Y = /* @__PURE__ */ P({
130
130
  `, "\r"],
131
131
  "max-tag-count": 200,
132
132
  open: !1,
133
- onChange: y[0] || (y[0] = (N) => x(N))
133
+ onChange: y[0] || (y[0] = (N) => k(N))
134
134
  }), null, 16, ["value", "placeholder"])
135
135
  ], 2),
136
136
  s("div", {
@@ -161,7 +161,7 @@ const Y = /* @__PURE__ */ P({
161
161
  a(e(f), {
162
162
  size: "small",
163
163
  type: "primary",
164
- onClick: k
164
+ onClick: x
165
165
  }, {
166
166
  default: n(() => [
167
167
  d(m(e(r)("ap.apGroupSearch.confirm")), 1)
@@ -117,7 +117,9 @@ const pe = /* @__PURE__ */ U({
117
117
  var u, p;
118
118
  if (l.length > e.maxCount) {
119
119
  B.warning(
120
- g("ap.apTableModal.messageMaxCount", { maxCount: e.maxCount })
120
+ g("ap.apTableModal.messageMaxCount", {
121
+ maxCount: e.maxCount
122
+ })
121
123
  );
122
124
  return;
123
125
  }
@@ -132,7 +134,9 @@ const pe = /* @__PURE__ */ U({
132
134
  if (l) {
133
135
  if (a.value.length >= e.maxCount) {
134
136
  B.warning(
135
- g("ap.apTableModal.messageMaxCount", { maxCount: e.maxCount })
137
+ g("ap.apTableModal.messageMaxCount", {
138
+ maxCount: e.maxCount
139
+ })
136
140
  );
137
141
  return;
138
142
  }
@@ -209,7 +213,7 @@ const pe = /* @__PURE__ */ U({
209
213
  onDeleteItem: E
210
214
  }), {
211
215
  default: h(() => [
212
- S(s(ee), y(s(R)(e.apTableProps, "dataSource"), {
216
+ S(s(ee), y({
213
217
  ref_key: "apTableRef",
214
218
  ref: d,
215
219
  scroll: { y: "100%" },
@@ -220,7 +224,7 @@ const pe = /* @__PURE__ */ U({
220
224
  "row-selection": A.value,
221
225
  bordered: s(I) === "admin",
222
226
  "data-source": C.value
223
- }), null, 16, ["columns", "row-key", "row-selection", "bordered", "data-source"])
227
+ }, s(R)(e.apTableProps, "dataSource")), null, 16, ["columns", "row-key", "row-selection", "bordered", "data-source"])
224
228
  ]),
225
229
  _: 1
226
230
  }, 16, ["selected-list"])