@aplus-frontend/ui 0.2.5 → 0.2.7

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 (51) hide show
  1. package/es/index.mjs +133 -131
  2. package/es/src/ap-field/interface.d.ts +2 -1
  3. package/es/src/ap-field/switch/index.vue.mjs +48 -48
  4. package/es/src/ap-form/interface.d.ts +1 -0
  5. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +27 -0
  6. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.mjs +4 -0
  7. package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +116 -0
  8. package/es/src/ap-scroll-bar/index.d.ts +62 -0
  9. package/es/src/ap-scroll-bar/index.mjs +8 -0
  10. package/es/src/ap-scroll-bar/interface.d.ts +4 -0
  11. package/es/src/ap-scroll-bar/interface.mjs +1 -0
  12. package/es/src/ap-scroll-bar/style/css.d.ts +0 -0
  13. package/es/src/ap-scroll-bar/style/css.js +1 -0
  14. package/es/src/ap-scroll-bar/style/index.d.ts +0 -0
  15. package/es/src/ap-scroll-bar/style/index.js +1 -0
  16. package/es/src/ap-table/ap-table.vue.d.ts +2 -0
  17. package/es/src/ap-table/ap-table.vue2.mjs +116 -123
  18. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +1 -1
  19. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +62 -56
  20. package/es/src/ap-table/constants.d.ts +47 -1229
  21. package/es/src/ap-table/utils.d.ts +40 -40
  22. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +70 -63
  23. package/es/src/index.d.ts +1 -0
  24. package/es/src/index.mjs +192 -190
  25. package/es/src/path-map.mjs +1 -0
  26. package/lib/index.js +1 -1
  27. package/lib/src/ap-field/interface.d.ts +2 -1
  28. package/lib/src/ap-field/switch/index.vue.js +1 -1
  29. package/lib/src/ap-form/interface.d.ts +1 -0
  30. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +27 -0
  31. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.js +1 -0
  32. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +1 -0
  33. package/lib/src/ap-scroll-bar/index.d.ts +62 -0
  34. package/lib/src/ap-scroll-bar/index.js +1 -0
  35. package/lib/src/ap-scroll-bar/interface.d.ts +4 -0
  36. package/lib/src/ap-scroll-bar/interface.js +1 -0
  37. package/lib/src/ap-scroll-bar/style/css.d.ts +0 -0
  38. package/lib/src/ap-scroll-bar/style/css.js +1 -0
  39. package/lib/src/ap-scroll-bar/style/index.d.ts +0 -0
  40. package/lib/src/ap-scroll-bar/style/index.js +1 -0
  41. package/lib/src/ap-table/ap-table.vue.d.ts +2 -0
  42. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  43. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +1 -1
  44. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  45. package/lib/src/ap-table/constants.d.ts +47 -1229
  46. package/lib/src/ap-table/utils.d.ts +40 -40
  47. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  48. package/lib/src/index.d.ts +1 -0
  49. package/lib/src/index.js +1 -1
  50. package/lib/src/path-map.js +1 -1
  51. package/package.json +22 -8
@@ -1,100 +1,106 @@
1
- import { defineComponent as $, ref as x, unref as e, useSlots as j, cloneVNode as F, openBlock as y, createElementBlock as G, Fragment as H, createBlock as L, resolveDynamicComponent as M, createCommentVNode as q, createVNode as l, withCtx as i, createElementVNode as s, normalizeClass as r, toDisplayString as m, createTextVNode as v, isRef as J } from "vue";
2
- import { Modal as K, Button as P, RadioGroup as Q, RadioButton as _, Divider as h } from "@aplus-frontend/antdv";
3
- import { getSingleVNode as W } from "../../../../utils/slot.mjs";
4
- import { useInjectApTable as X } from "../../../context.mjs";
1
+ import { defineComponent as G, ref as x, unref as e, useSlots as H, createVNode as l, cloneVNode as L, openBlock as y, createElementBlock as M, Fragment as q, createBlock as J, resolveDynamicComponent as K, createCommentVNode as P, withCtx as s, createElementVNode as i, normalizeClass as r, toDisplayString as m, createTextVNode as v, isRef as Q } from "vue";
2
+ import { Button as B, Modal as W, RadioGroup as X, RadioButton as _, Divider as h } from "@aplus-frontend/antdv";
3
+ import { getSingleVNode as Y } from "../../../../utils/slot.mjs";
4
+ import { useInjectApTable as Z } from "../../../context.mjs";
5
5
  import "../tree-select/index.vue.mjs";
6
- import { useTableColumnState as Y } from "../../../hooks/use-table-column-state.mjs";
6
+ import { useTableColumnState as ee } from "../../../hooks/use-table-column-state.mjs";
7
7
  import "../../../../config-provider/index.mjs";
8
8
  import "../sorter/index.vue.mjs";
9
- import Z, { customCloneColumnStates as B } from "../utils.mjs";
10
- import { useLocale as ee } from "../../../../config-provider/hooks/use-locale.mjs";
11
- import { useNamespace as te } from "../../../../config-provider/hooks/use-namespace.mjs";
12
- import le from "../tree-select/index.vue2.mjs";
13
- import oe from "../sorter/index.vue2.mjs";
14
- const ae = {
9
+ import te, { customCloneColumnStates as N } from "../utils.mjs";
10
+ import { SettingOutlined as le } from "@ant-design/icons-vue";
11
+ import { useLocale as oe } from "../../../../config-provider/hooks/use-locale.mjs";
12
+ import { useNamespace as T } from "../../../../config-provider/hooks/use-namespace.mjs";
13
+ import ne from "../tree-select/index.vue2.mjs";
14
+ import ae from "../sorter/index.vue2.mjs";
15
+ const ie = {
15
16
  style: {
16
17
  lineHeight: "22px",
17
18
  color: "#8896B0"
18
19
  }
19
- }, Se = /* @__PURE__ */ $({
20
+ }, xe = /* @__PURE__ */ G({
20
21
  __name: "index",
21
22
  props: {
22
23
  config: {
23
24
  default: () => ({})
24
25
  }
25
26
  },
26
- setup(N) {
27
- const C = N, {
28
- columnsBackup: T,
29
- size: A,
27
+ setup(A) {
28
+ const C = A, {
29
+ columnsBackup: V,
30
+ size: z,
30
31
  updateSize: c,
31
32
  updateColumns: d
32
- } = X(), f = x(e(A)), {
33
- columnState: a,
34
- setColumnState: V,
35
- isAllSelected: z,
36
- toggleSelectAll: R,
37
- columnStateBackup: w,
38
- setColumnStateBackup: D,
39
- cacheColumnStateIfNeeded: U
40
- } = Y(C.config, []), {
41
- t: n
42
- } = ee(), {
33
+ } = Z(), f = x(e(z)), {
34
+ columnState: n,
35
+ setColumnState: R,
36
+ isAllSelected: w,
37
+ toggleSelectAll: D,
38
+ columnStateBackup: O,
39
+ setColumnStateBackup: U,
40
+ cacheColumnStateIfNeeded: E
41
+ } = ee(C.config, []), {
42
+ t: a
43
+ } = oe(), {
43
44
  b: g,
44
45
  be: S
45
- } = te("ap-column-setting"), u = x(!1), E = j(), k = W(E.trigger), b = k ? F(k, {
46
+ } = T("ap-column-setting"), {
47
+ b: I
48
+ } = T("ap-table"), u = x(!1), $ = H(), b = Y($.trigger) || l(B, {
49
+ icon: l(le, null, null),
50
+ class: I("setting-trigger-button")
51
+ }, null), k = b ? L(b, {
46
52
  onClick: () => {
47
53
  u.value = !0;
48
54
  }
49
55
  }) : null;
50
- function I() {
51
- V(B(e(w)));
56
+ function j() {
57
+ R(N(e(O)));
52
58
  }
53
- function O() {
59
+ function F() {
54
60
  var t, o;
55
- d == null || d(Z(e(T), e(a))), c == null || c(e(f)), u.value = !1;
56
- const p = B(a.value);
57
- D(p), U(p), (o = (t = C.config) == null ? void 0 : t.onChange) == null || o.call(t, p);
61
+ d == null || d(te(e(V), e(n))), c == null || c(e(f)), u.value = !1;
62
+ const p = N(n.value);
63
+ U(p), E(p), (o = (t = C.config) == null ? void 0 : t.onChange) == null || o.call(t, p);
58
64
  }
59
- return (p, t) => (y(), G(H, null, [e(b) ? (y(), L(M(e(b)), {
65
+ return (p, t) => (y(), M(q, null, [e(k) ? (y(), J(K(e(k)), {
60
66
  key: 0
61
- })) : q("", !0), l(e(K), {
62
- title: e(n)("ap.apTable.setting.title"),
67
+ })) : P("", !0), l(e(W), {
68
+ title: e(a)("ap.apTable.setting.title"),
63
69
  open: u.value,
64
70
  "onUpdate:open": t[2] || (t[2] = (o) => u.value = o),
65
71
  width: 900,
66
- onOk: O,
72
+ onOk: F,
67
73
  "body-style": {
68
74
  padding: "0px !important",
69
75
  height: "450px"
70
76
  }
71
77
  }, {
72
- default: i(() => [s("div", {
78
+ default: s(() => [i("div", {
73
79
  class: r(e(g)("wrapper"))
74
- }, [s("div", {
80
+ }, [i("div", {
75
81
  class: r(e(g)("left"))
76
- }, [s("div", {
82
+ }, [i("div", {
77
83
  class: r(e(S)("left", "header"))
78
- }, [s("div", null, [s("span", ae, m(e(n)("ap.apTable.setting.selectAllTip")), 1), l(e(P), {
84
+ }, [i("div", null, [i("span", ie, m(e(a)("ap.apTable.setting.selectAllTip")), 1), l(e(B), {
79
85
  type: "link",
80
86
  size: "small",
81
- onClick: e(R)
87
+ onClick: e(D)
82
88
  }, {
83
- default: i(() => [v(m(e(z) ? e(n)("ap.apTable.setting.unSelectAll") : e(n)("ap.apTable.setting.selectAll")), 1)]),
89
+ default: s(() => [v(m(e(w) ? e(a)("ap.apTable.setting.unSelectAll") : e(a)("ap.apTable.setting.selectAll")), 1)]),
84
90
  _: 1
85
- }, 8, ["onClick"])]), l(e(Q), {
91
+ }, 8, ["onClick"])]), l(e(X), {
86
92
  value: f.value,
87
93
  "onUpdate:value": t[0] || (t[0] = (o) => f.value = o)
88
94
  }, {
89
- default: i(() => [l(e(_), {
95
+ default: s(() => [l(e(_), {
90
96
  value: "small"
91
97
  }, {
92
- default: i(() => [v(m(e(n)("ap.apTable.setting.sizeSmall")), 1)]),
98
+ default: s(() => [v(m(e(a)("ap.apTable.setting.sizeSmall")), 1)]),
93
99
  _: 1
94
100
  }), l(e(_), {
95
101
  value: "middle"
96
102
  }, {
97
- default: i(() => [v(m(e(n)("ap.apTable.setting.sizeNormal")), 1)]),
103
+ default: s(() => [v(m(e(a)("ap.apTable.setting.sizeNormal")), 1)]),
98
104
  _: 1
99
105
  })]),
100
106
  _: 1
@@ -103,26 +109,26 @@ const ae = {
103
109
  style: {
104
110
  margin: "0px"
105
111
  }
106
- }), l(le, {
112
+ }), l(ne, {
107
113
  class: r(e(S)("left", "content")),
108
- value: e(a)
114
+ value: e(n)
109
115
  }, null, 8, ["class", "value"])], 2), l(e(h), {
110
116
  type: "vertical",
111
117
  style: {
112
118
  height: "100%",
113
119
  margin: "0px"
114
120
  }
115
- }), s("div", {
121
+ }), i("div", {
116
122
  class: r(e(g)("right"))
117
- }, [l(oe, {
118
- value: e(a),
119
- "onUpdate:value": t[1] || (t[1] = (o) => J(a) ? a.value = o : null),
120
- onReset: I
123
+ }, [l(ae, {
124
+ value: e(n),
125
+ "onUpdate:value": t[1] || (t[1] = (o) => Q(n) ? n.value = o : null),
126
+ onReset: j
121
127
  }, null, 8, ["value"])], 2)], 2)]),
122
128
  _: 1
123
129
  }, 8, ["title", "open"])], 64));
124
130
  }
125
131
  });
126
132
  export {
127
- Se as default
133
+ xe as default
128
134
  };