@aplus-frontend/ui 0.5.3 → 0.5.5

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 (193) hide show
  1. package/es/index.mjs +37 -33
  2. package/es/src/ap-action/group/index.vue.mjs +3 -3
  3. package/es/src/ap-action/item/index.vue2.mjs +5 -5
  4. package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
  5. package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
  6. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  7. package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
  8. package/es/src/ap-button/ap-button.vue.mjs +2 -2
  9. package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
  10. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +3 -3
  11. package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
  12. package/es/src/ap-download/ap-download.vue.mjs +1 -1
  13. package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
  14. package/es/src/ap-field/date/index.vue.mjs +4 -4
  15. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  16. package/es/src/ap-field/index.mjs +30 -30
  17. package/es/src/ap-field/number/index.vue.mjs +8 -8
  18. package/es/src/ap-field/radio/index.vue.mjs +1 -1
  19. package/es/src/ap-field/rate/index.vue.mjs +2 -2
  20. package/es/src/ap-field/segmented/index.vue.mjs +1 -1
  21. package/es/src/ap-field/select/index.vue.mjs +2 -2
  22. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  23. package/es/src/ap-field/switch/index.vue.mjs +3 -3
  24. package/es/src/ap-field/text/index.vue2.mjs +13 -13
  25. package/es/src/ap-field/text/password.vue.mjs +2 -2
  26. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  27. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  28. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  29. package/es/src/ap-form/item/index.vue.mjs +7 -7
  30. package/es/src/ap-form/item-group/index.vue.mjs +3 -3
  31. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  32. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  33. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  34. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  35. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  36. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  37. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  38. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  39. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  40. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  41. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  42. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  43. package/es/src/ap-form/render/item.vue.mjs +2 -2
  44. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  45. package/es/src/ap-form/set/index.vue.mjs +1 -1
  46. package/es/src/ap-grid/editable/form-item.vue.d.ts +16 -0
  47. package/es/src/ap-grid/editable/form-item.vue.mjs +257 -0
  48. package/es/src/ap-grid/editable/form-item.vue2.mjs +4 -0
  49. package/es/src/ap-grid/editable/index.vue.d.ts +18 -0
  50. package/es/src/ap-grid/editable/index.vue.mjs +288 -0
  51. package/es/src/ap-grid/editable/index.vue2.mjs +4 -0
  52. package/es/src/ap-grid/editable/interface.d.ts +95 -0
  53. package/es/src/ap-grid/editable/interface.mjs +1 -0
  54. package/es/src/ap-grid/editable/style/css.d.ts +0 -0
  55. package/es/src/ap-grid/editable/style/css.js +1 -0
  56. package/es/src/ap-grid/editable/style/index.d.ts +0 -0
  57. package/es/src/ap-grid/editable/style/index.js +1 -0
  58. package/es/src/ap-grid/hooks/use-editable-columns.d.ts +6 -0
  59. package/es/src/ap-grid/hooks/use-editable-columns.mjs +68 -0
  60. package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
  61. package/es/src/ap-grid/index.d.ts +4 -1
  62. package/es/src/ap-grid/index.mjs +3 -0
  63. package/es/src/ap-grid/index.vue.mjs +113 -103
  64. package/es/src/ap-grid/interface.d.ts +15 -0
  65. package/es/src/ap-grid/utils/col.mjs +39 -39
  66. package/es/src/ap-grid/utils/editable.d.ts +3 -0
  67. package/es/src/ap-grid/utils/editable.mjs +27 -0
  68. package/es/src/ap-grid/utils/table.mjs +24 -17
  69. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
  70. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
  71. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  72. package/es/src/ap-list/index.vue.mjs +4 -4
  73. package/es/src/ap-table/ap-table.vue2.mjs +172 -159
  74. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
  75. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  76. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
  77. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  78. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  79. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  80. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  81. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  82. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  83. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  84. package/es/src/ap-table/constants.mjs +40 -40
  85. package/es/src/ap-table/context.d.ts +4 -4
  86. package/es/src/ap-table/hooks/use-sorted-filtered.d.ts +4 -1
  87. package/es/src/ap-table/hooks/use-sorted-filtered.mjs +11 -9
  88. package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
  89. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +3 -1
  90. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +53 -49
  91. package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -1
  92. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  93. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  94. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  95. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  96. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  97. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  98. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  99. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  100. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
  101. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -2
  102. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  103. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  104. package/es/src/business/ap-batch-action-group/index.d.ts +4 -4
  105. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  106. package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
  107. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  108. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
  109. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
  110. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
  111. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
  112. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
  113. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
  114. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  115. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  116. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +1 -1
  117. package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +1 -1
  118. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  119. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  120. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  121. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  122. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  123. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
  124. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
  125. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  126. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  127. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  128. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  129. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  130. package/es/src/business/batch-input-group/index.vue.mjs +7 -6
  131. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  132. package/es/src/check-card/index.vue2.mjs +3 -3
  133. package/es/src/config-provider/config-provider-props.mjs +1 -1
  134. package/es/src/editable-table/form-item.vue.mjs +2 -2
  135. package/es/src/editable-table/index.vue.mjs +2 -2
  136. package/es/src/editable-table/utils.d.ts +3 -2
  137. package/es/src/full-screen/index.vue.mjs +3 -3
  138. package/es/src/hooks/useFullScreen.mjs +5 -5
  139. package/es/src/index.mjs +24 -20
  140. package/es/src/path-map.mjs +3 -1
  141. package/es/src/portal/index.vue.mjs +2 -2
  142. package/es/src/scroll-bar/index.vue.mjs +3 -3
  143. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  144. package/es/src/scroll-view/index.vue.mjs +9 -9
  145. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  146. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  147. package/lib/index.js +1 -1
  148. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  149. package/lib/src/ap-field/index.js +1 -1
  150. package/lib/src/ap-field/text/index.vue2.js +1 -1
  151. package/lib/src/ap-grid/editable/form-item.vue.d.ts +16 -0
  152. package/lib/src/ap-grid/editable/form-item.vue.js +1 -0
  153. package/lib/src/ap-grid/editable/form-item.vue2.js +1 -0
  154. package/lib/src/ap-grid/editable/index.vue.d.ts +18 -0
  155. package/lib/src/ap-grid/editable/index.vue.js +1 -0
  156. package/lib/src/ap-grid/editable/index.vue2.js +1 -0
  157. package/lib/src/ap-grid/editable/interface.d.ts +95 -0
  158. package/lib/src/ap-grid/editable/interface.js +1 -0
  159. package/lib/src/ap-grid/editable/style/css.cjs +1 -0
  160. package/lib/src/ap-grid/editable/style/css.d.ts +0 -0
  161. package/lib/src/ap-grid/editable/style/index.cjs +1 -0
  162. package/lib/src/ap-grid/editable/style/index.d.ts +0 -0
  163. package/lib/src/ap-grid/hooks/use-editable-columns.d.ts +6 -0
  164. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -0
  165. package/lib/src/ap-grid/index.d.ts +4 -1
  166. package/lib/src/ap-grid/index.js +1 -1
  167. package/lib/src/ap-grid/index.vue.js +1 -1
  168. package/lib/src/ap-grid/interface.d.ts +15 -0
  169. package/lib/src/ap-grid/utils/col.js +1 -1
  170. package/lib/src/ap-grid/utils/editable.d.ts +3 -0
  171. package/lib/src/ap-grid/utils/editable.js +1 -0
  172. package/lib/src/ap-grid/utils/table.js +1 -1
  173. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  174. package/lib/src/ap-table/constants.js +1 -1
  175. package/lib/src/ap-table/context.d.ts +4 -4
  176. package/lib/src/ap-table/hooks/use-sorted-filtered.d.ts +4 -1
  177. package/lib/src/ap-table/hooks/use-sorted-filtered.js +1 -1
  178. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +3 -1
  179. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  180. package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -1
  181. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  182. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -2
  183. package/lib/src/business/ap-batch-action-group/index.d.ts +4 -4
  184. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  185. package/lib/src/config-provider/config-provider-props.js +1 -1
  186. package/lib/src/editable-table/utils.d.ts +3 -2
  187. package/lib/src/index.js +1 -1
  188. package/lib/src/path-map.js +1 -1
  189. package/package.json +1 -1
  190. package/theme/ap-grid/editable.css +22 -0
  191. package/theme/ap-grid/editable.less +28 -0
  192. package/theme/index.css +22 -0
  193. package/theme/index.less +1 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, ref as L, unref as n, computed as O, watch as $, openBlock as c, createElementBlock as y, normalizeClass as d, createVNode as m, withCtx as v, createElementVNode as g, toDisplayString as k, createTextVNode as q, createBlock as b, createCommentVNode as p } from "vue";
1
+ import { defineComponent as A, ref as L, computed as O, watch as $, createElementBlock as y, openBlock as c, normalizeClass as d, unref as n, createVNode as m, createElementVNode as v, withCtx as g, toDisplayString as k, createTextVNode as q, createCommentVNode as p, createBlock as b } from "vue";
2
2
  import { Flex as G, Button as H, Divider as J } from "@aplus-frontend/antdv";
3
3
  import N from "vuedraggable";
4
4
  import "../sortable/index.vue.mjs";
@@ -112,8 +112,8 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
112
112
  align: "center",
113
113
  justify: "space-between"
114
114
  }, {
115
- default: v(() => [
116
- g("span", {
115
+ default: g(() => [
116
+ v("span", {
117
117
  class: d(n(r)("header-title"))
118
118
  }, k(n(h)("ap.apTable.setting.selectCount", { count: z.value })), 3),
119
119
  m(n(H), {
@@ -122,7 +122,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
122
122
  style: { padding: "0" },
123
123
  onClick: x.onReset
124
124
  }, {
125
- default: v(() => [
125
+ default: g(() => [
126
126
  q(k(n(h)("ap.apTable.setting.reset")), 1)
127
127
  ]),
128
128
  _: 1
@@ -131,11 +131,11 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
131
131
  _: 1
132
132
  }, 8, ["class"]),
133
133
  m(n(J), { style: { margin: "0px" } }),
134
- g("div", {
134
+ v("div", {
135
135
  class: d(n(r)("content"))
136
136
  }, [
137
137
  i.value.length ? (c(), y("div", W, [
138
- g("span", {
138
+ v("span", {
139
139
  class: d(n(r)("section-title"))
140
140
  }, k(n(h)("ap.apTable.setting.fixToLeft")), 3),
141
141
  m(n(N), {
@@ -143,7 +143,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
143
143
  "item-key": "key",
144
144
  "onUpdate:modelValue": D
145
145
  }, {
146
- item: v(({ element: o }) => [
146
+ item: g(({ element: o }) => [
147
147
  C(o) ? (c(), b(R, {
148
148
  key: 0,
149
149
  value: o
@@ -153,7 +153,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
153
153
  }, 8, ["model-value"])
154
154
  ])) : p("", !0),
155
155
  s.value.length ? (c(), y("div", X, [
156
- g("span", {
156
+ v("span", {
157
157
  class: d(n(r)("section-title"))
158
158
  }, k(n(h)("ap.apTable.setting.unFixed")), 3),
159
159
  m(n(N), {
@@ -161,7 +161,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
161
161
  "item-key": "key",
162
162
  "onUpdate:modelValue": E
163
163
  }, {
164
- item: v(({ element: o }) => [
164
+ item: g(({ element: o }) => [
165
165
  C(o) ? (c(), b(R, {
166
166
  key: 0,
167
167
  value: o
@@ -171,7 +171,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
171
171
  }, 8, ["model-value"])
172
172
  ])) : p("", !0),
173
173
  u.value.length ? (c(), y("div", Y, [
174
- g("span", {
174
+ v("span", {
175
175
  class: d(n(r)("section-title"))
176
176
  }, k(n(h)("ap.apTable.setting.fixToRight")), 3),
177
177
  m(n(N), {
@@ -179,7 +179,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
179
179
  "item-key": "key",
180
180
  "onUpdate:modelValue": j
181
181
  }, {
182
- item: v(({ element: o }) => [
182
+ item: g(({ element: o }) => [
183
183
  C(o) ? (c(), b(R, {
184
184
  key: 0,
185
185
  value: o
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, computed as w, unref as o, openBlock as c, createElementBlock as i, createVNode as s, withCtx as d, Fragment as m, renderList as B, createBlock as u, mergeProps as I, resolveDynamicComponent as L } from "vue";
1
+ import { defineComponent as x, computed as w, unref as o, createElementBlock as i, openBlock as c, createVNode as s, withCtx as d, Fragment as m, renderList as B, createBlock as u, mergeProps as I, resolveDynamicComponent as L } from "vue";
2
2
  import { Row as N, Col as k, Checkbox as P } from "@aplus-frontend/antdv";
3
3
  import "../select-group/index.vue.mjs";
4
4
  import { useInjectApTable as U } from "../../../context.mjs";
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, computed as o, openBlock as u, createBlock as a, unref as m, normalizeProps as p, mergeProps as l, createCommentVNode as c } from "vue";
1
+ import { defineComponent as n, computed as o, createBlock as u, createCommentVNode as a, openBlock as m, unref as p, normalizeProps as l, mergeProps as c } from "vue";
2
2
  import { Badge as s } from "@aplus-frontend/antdv";
3
3
  const _ = /* @__PURE__ */ n({
4
4
  name: "ApTableStatus",
@@ -9,7 +9,7 @@ const _ = /* @__PURE__ */ n({
9
9
  },
10
10
  setup(t) {
11
11
  const e = t, r = o(() => e.valueEnum[e.value]);
12
- return (d, f) => r.value ? (u(), a(m(s), p(l({ key: 0 }, r.value)), null, 16)) : c("", !0);
12
+ return (d, f) => r.value ? (m(), u(p(s), l(c({ key: 0 }, r.value)), null, 16)) : a("", !0);
13
13
  }
14
14
  });
15
15
  export {
@@ -3,53 +3,53 @@ import "../ap-field/index.mjs";
3
3
  import "../ap-form/index.mjs";
4
4
  import "./components/index/index.vue.mjs";
5
5
  import "./components/status/index.vue.mjs";
6
- import o from "../ap-form/items/date/index.vue.mjs";
7
- import r from "../ap-form/items/date-range/index.vue.mjs";
8
- import i from "../ap-form/items/number/index.vue.mjs";
9
- import t from "../ap-form/items/radio/index.vue.mjs";
10
- import a from "../ap-form/items/select/index.vue.mjs";
11
- import f from "../ap-form/items/switch/index.vue.mjs";
12
6
  import { ApFormItemText as m } from "../ap-form/items/text/index.mjs";
13
- import _ from "../ap-form/items/text-area/index.vue.mjs";
14
- import e from "../ap-form/items/checkbox/index.vue.mjs";
15
- import s from "../ap-field/date/index.vue.mjs";
16
- import p from "../ap-field/date-range/index.vue.mjs";
17
- import c from "../ap-field/number/index.vue.mjs";
18
- import n from "../ap-field/radio/index.vue.mjs";
19
- import $ from "../ap-field/select/index.vue.mjs";
20
- import d from "../ap-field/switch/index.vue.mjs";
7
+ import o from "../ap-form/items/checkbox/index.vue.mjs";
8
+ import r from "../ap-form/items/text-area/index.vue.mjs";
9
+ import i from "../ap-form/items/switch/index.vue.mjs";
10
+ import t from "../ap-form/items/select/index.vue.mjs";
11
+ import a from "../ap-form/items/radio/index.vue.mjs";
12
+ import f from "../ap-form/items/number/index.vue.mjs";
13
+ import _ from "../ap-form/items/date-range/index.vue.mjs";
14
+ import e from "../ap-form/items/date/index.vue.mjs";
15
+ import s from "../ap-field/text/password.vue.mjs";
16
+ import p from "./components/status/index.vue2.mjs";
17
+ import c from "./components/index/index.vue2.mjs";
18
+ import n from "../ap-action/group/index.vue.mjs";
19
+ import $ from "../ap-field/checkbox/index.vue.mjs";
20
+ import d from "../ap-field/text-area/index.vue.mjs";
21
21
  import { ApFieldText as x } from "../ap-field/text/index.mjs";
22
- import b from "../ap-field/text-area/index.vue.mjs";
23
- import l from "../ap-field/checkbox/index.vue.mjs";
24
- import h from "../ap-action/group/index.vue.mjs";
25
- import w from "./components/index/index.vue2.mjs";
26
- import A from "./components/status/index.vue2.mjs";
27
- import u from "../ap-field/text/password.vue.mjs";
22
+ import b from "../ap-field/switch/index.vue.mjs";
23
+ import l from "../ap-field/select/index.vue.mjs";
24
+ import h from "../ap-field/radio/index.vue.mjs";
25
+ import w from "../ap-field/number/index.vue.mjs";
26
+ import A from "../ap-field/date-range/index.vue.mjs";
27
+ import u from "../ap-field/date/index.vue.mjs";
28
28
  const U = {
29
- date: o,
30
- dateRange: r,
31
- number: i,
32
- radio: t,
33
- select: a,
34
- switch: f,
29
+ date: e,
30
+ dateRange: _,
31
+ number: f,
32
+ radio: a,
33
+ select: t,
34
+ switch: i,
35
35
  text: m,
36
- textArea: _,
37
- checkbox: e,
36
+ textArea: r,
37
+ checkbox: o,
38
38
  password: m.Password
39
39
  }, W = {
40
- date: s,
41
- dateRange: p,
42
- number: c,
43
- radio: n,
44
- select: $,
45
- switch: d,
40
+ date: u,
41
+ dateRange: A,
42
+ number: w,
43
+ radio: h,
44
+ select: l,
45
+ switch: b,
46
46
  text: x,
47
- textArea: b,
48
- checkbox: l,
49
- action: h,
50
- index: w,
51
- status: A,
52
- password: u
47
+ textArea: d,
48
+ checkbox: $,
49
+ action: n,
50
+ index: c,
51
+ status: p,
52
+ password: s
53
53
  }, X = [
54
54
  "action",
55
55
  "index"
@@ -1,4 +1,4 @@
1
- import { ColumnType } from '@aplus-frontend/antdv/es/table';
1
+ import { ColumnsType } from '@aplus-frontend/antdv/es/table';
2
2
  import { ComputedRef, InjectionKey } from 'vue';
3
3
  import { ApTableContextRenderConfig, ApTableProps } from './interface';
4
4
  type TableSize = ApTableProps['size'];
@@ -6,11 +6,11 @@ type ApTableContextProps<RecordType> = {
6
6
  /**
7
7
  * 表格列配置
8
8
  */
9
- columns?: ComputedRef<ColumnType<RecordType>[]>;
9
+ columns?: ComputedRef<ColumnsType<RecordType>>;
10
10
  /**
11
11
  * 表格列配置备份(只有在props变更后才会变更)
12
12
  */
13
- columnsBackup?: ComputedRef<ColumnType<RecordType>[]>;
13
+ columnsBackup?: ComputedRef<ColumnsType<RecordType>>;
14
14
  /**
15
15
  * 更新数据源的方法
16
16
  * @param name
@@ -18,7 +18,7 @@ type ApTableContextProps<RecordType> = {
18
18
  * @param triggerChange 是否触发外部的`onValuesChange`函数
19
19
  * @returns
20
20
  */
21
- updateColumns?: (nextColumns: ColumnType<RecordType>[]) => void;
21
+ updateColumns?: (nextColumns: ColumnsType<RecordType>) => void;
22
22
  /**
23
23
  * ApForm内部实例
24
24
  */
@@ -1,9 +1,12 @@
1
1
  import { ApColumnType } from '../interface';
2
2
  import { Recordable } from '../../type';
3
+ import { Ref } from 'vue';
3
4
  export declare const useTableSortedAndFiltered: () => {
4
- getColumnSFConfig: (column: ApColumnType) => Recordable;
5
+ getColumnSFConfig: (column: ApColumnType, append?: boolean) => Recordable;
5
6
  setSF: (filters: any, sorter: any) => void;
6
7
  clearSorter: () => void;
7
8
  clearFilters: () => void;
8
9
  clearAll: () => void;
10
+ sortedInfo: Ref<any, any>;
11
+ filteredInfo: Ref<any, any>;
9
12
  };
@@ -1,11 +1,11 @@
1
1
  import { ref as i, unref as s } from "vue";
2
- const F = () => {
2
+ const S = () => {
3
3
  const r = i(), t = i();
4
- function c(e) {
5
- const n = s(t) || {}, u = s(r) || {}, l = {};
6
- return e.filters && (l.filteredValue = n[e.key] || null), e.sorter && (l.sortOrder = u.columnKey === e.key ? u.order : null), l;
4
+ function c(e, n = !1) {
5
+ const v = s(t) || {}, u = s(r) || {}, l = n ? e : {};
6
+ return e.filters && (l.filteredValue = v[e.key] || null), e.sorter && (l.sortOrder = u.columnKey === e.key ? u.order : null), l;
7
7
  }
8
- function d(e, n) {
8
+ function a(e, n) {
9
9
  t.value = e, r.value = n;
10
10
  }
11
11
  function o() {
@@ -14,17 +14,19 @@ const F = () => {
14
14
  function f() {
15
15
  t.value = null;
16
16
  }
17
- function a() {
17
+ function d() {
18
18
  o(), f();
19
19
  }
20
20
  return {
21
21
  getColumnSFConfig: c,
22
- setSF: d,
22
+ setSF: a,
23
23
  clearSorter: o,
24
24
  clearFilters: f,
25
- clearAll: a
25
+ clearAll: d,
26
+ sortedInfo: r,
27
+ filteredInfo: t
26
28
  };
27
29
  };
28
30
  export {
29
- F as useTableSortedAndFiltered
31
+ S as useTableSortedAndFiltered
30
32
  };
@@ -2,7 +2,7 @@ import { ref as P, shallowRef as W, unref as i, computed as X, watchEffect as q
2
2
  import { isDef as H } from "../../utils/index.mjs";
3
3
  import L, { customCloneColumnStates as T, getColumnStateString as Q } from "../components/setting/utils.mjs";
4
4
  import { useInjectApTable as U } from "../context.mjs";
5
- import { isObject as N, mergeWith as F, isBoolean as V, isString as Y, omit as Z, isNumber as B } from "lodash-unified";
5
+ import { isObject as N, mergeWith as F, isBoolean as V, omit as Y, isString as Z, isNumber as B } from "lodash-unified";
6
6
  import "../../config-provider/index.mjs";
7
7
  import { useToken as $ } from "@aplus-frontend/antdv/es/theme/internal";
8
8
  import { getTableTitle as K } from "../utils.mjs";
@@ -46,7 +46,7 @@ const he = (r, o, n) => {
46
46
  var y, A;
47
47
  const b = (m == null ? void 0 : m[f.key]) || {}, g = {
48
48
  key: f.key,
49
- label: Y(f.title) ? K(
49
+ label: Z(f.title) ? K(
50
50
  f,
51
51
  a("table-header", "title"),
52
52
  void 0,
@@ -60,7 +60,7 @@ const he = (r, o, n) => {
60
60
  G
61
61
  ),
62
62
  disabled: !1,
63
- ...Z(b, ["children", "fixed"])
63
+ ...Y(b, ["children", "fixed"])
64
64
  };
65
65
  return g.children = (A = f.children) != null && A.length ? d(
66
66
  f.children,
@@ -88,6 +88,8 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
88
88
  }>;
89
89
  dataSource: ComputedRef<DataType[]>;
90
90
  setDataSource: (dataSource?: DataType[]) => void;
91
- getColumnSFConfig: (column: ApColumnType) => Recordable;
91
+ getColumnSFConfig: (column: ApColumnType, append?: boolean) => Recordable;
92
+ sortedInfo: Ref<any, any>;
93
+ filteredInfo: Ref<any, any>;
92
94
  };
93
95
  export {};
@@ -1,23 +1,23 @@
1
- import { ref as te, reactive as I, unref as h, nextTick as re, onMounted as oe, watch as ne, computed as A, createVNode as C } from "vue";
2
- import { useTableSortedAndFiltered as ae } from "./use-sorted-filtered.mjs";
1
+ import { ref as oe, reactive as q, unref as h, nextTick as ne, onMounted as ae, watch as se, computed as A, createVNode as C } from "vue";
2
+ import { useTableSortedAndFiltered as ce } from "./use-sorted-filtered.mjs";
3
3
  import "../../config-provider/index.mjs";
4
- import { parseFieldValue as se, dataIndexToStr as ce, isEqualCustom as ie } from "../utils.mjs";
5
- import { isArray as N, isEqualWith as le } from "lodash-unified";
6
- import { useLocale as ue } from "../../config-provider/hooks/use-locale.mjs";
7
- import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
4
+ import { parseFieldValue as ie, dataIndexToStr as le, isEqualCustom as ue } from "../utils.mjs";
5
+ import { isArray as N, isEqualWith as fe } from "lodash-unified";
6
+ import { useLocale as ge } from "../../config-provider/hooks/use-locale.mjs";
7
+ import { useNamespace as pe } from "../../config-provider/hooks/use-namespace.mjs";
8
8
  const S = 1, L = 10;
9
- function ge(g) {
9
+ function de(g) {
10
10
  const l = {};
11
11
  return g && (g === !0 ? (l.current = S, l.pageSize = L) : (l.current = g.defaultCurrent || S, l.pageSize = g.defaultPageSize || L)), l;
12
12
  }
13
- const Pe = ({
13
+ const we = ({
14
14
  manual: g = !1,
15
15
  request: l,
16
16
  defaultParams: v = {},
17
17
  defaultData: y = [],
18
18
  formatParams: D,
19
19
  paramsValueTypeMap: R,
20
- resetFieldsIgnores: V,
20
+ resetFieldsIgnores: I,
21
21
  filterFields: U,
22
22
  sortFields: B,
23
23
  namespace: K = "ap-table",
@@ -29,22 +29,24 @@ const Pe = ({
29
29
  }
30
30
  }) => {
31
31
  let b = 0, s = {};
32
- const M = p ?? {}, $ = (e) => D ? D(e) : e, z = te(), c = I(ge(p)), {
32
+ const M = p ?? {}, $ = (e) => D ? D(e) : e, z = oe(), c = q(de(p)), {
33
33
  getColumnSFConfig: G,
34
34
  setSF: J,
35
- clearAll: Q
36
- } = ae(), {
35
+ clearAll: Q,
36
+ sortedInfo: W,
37
+ filteredInfo: Z
38
+ } = ce(), {
37
39
  t: T
38
- } = ue(), {
40
+ } = ge(), {
39
41
  b: P
40
- } = fe(K), o = I({
42
+ } = pe(K), o = q({
41
43
  total: y.length,
42
44
  records: y,
43
45
  loading: !1
44
46
  }), F = () => {
45
47
  var e, t;
46
48
  return ((t = (e = z.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
47
- }, O = async (e) => {
49
+ }, V = async (e) => {
48
50
  var n;
49
51
  const t = $(e), r = Date.now();
50
52
  b = r, o.loading = !0;
@@ -59,27 +61,27 @@ const Pe = ({
59
61
  } finally {
60
62
  o.loading = !1;
61
63
  }
62
- }, _ = (e) => {
64
+ }, O = (e) => {
63
65
  const t = {};
64
66
  return Object.entries(e).forEach(([r, n]) => {
65
67
  if (t[r] = n, R && n) {
66
68
  const a = R[r];
67
- a && (t[r] = se(a, n));
69
+ a && (t[r] = ie(a, n));
68
70
  }
69
71
  }), t;
70
- }, W = async (e) => {
72
+ }, H = async (e) => {
71
73
  var n, a, u, f, d;
72
74
  const t = F(), r = {};
73
75
  Object.entries(t).forEach(([m, x]) => {
74
- V && V.indexOf(m) > -1 && (r[m] = x);
75
- }), await ((a = (n = z.value) == null ? void 0 : n.apForm) == null ? void 0 : a.resetFields()), (d = (f = (u = z.value) == null ? void 0 : u.apForm) == null ? void 0 : f.setFieldsValue) == null || d.call(f, r), re(() => {
76
+ I && I.indexOf(m) > -1 && (r[m] = x);
77
+ }), await ((a = (n = z.value) == null ? void 0 : n.apForm) == null ? void 0 : a.resetFields()), (d = (f = (u = z.value) == null ? void 0 : u.apForm) == null ? void 0 : f.setFieldsValue) == null || d.call(f, r), ne(() => {
76
78
  e == null || e();
77
79
  });
78
80
  }, w = (e) => {
79
81
  s = e;
80
- const t = _(e);
81
- O(t);
82
- }, Z = (e) => {
82
+ const t = O(e);
83
+ V(t);
84
+ }, X = (e) => {
83
85
  w({
84
86
  ...s,
85
87
  ...e
@@ -93,29 +95,29 @@ const Pe = ({
93
95
  current: p ? S : void 0,
94
96
  pageSize: p ? s.pageSize || c.pageSize : void 0
95
97
  });
96
- }, H = () => {
97
- Q(), s.sort = {}, s.filter = {}, W(E);
98
- }, j = () => {
98
+ }, Y = () => {
99
+ Q(), s.sort = {}, s.filter = {}, H(E);
100
+ }, _ = () => {
99
101
  w(s);
100
- }, X = (e) => {
102
+ }, k = (e) => {
101
103
  if (!p)
102
- j();
104
+ _();
103
105
  else {
104
106
  const {
105
107
  current: t,
106
108
  pageSize: r
107
109
  } = c, n = o.total - e, a = Math.ceil(n / r), u = t > a ? a : t;
108
- Z({
110
+ X({
109
111
  current: u > 0 ? u : 1
110
112
  });
111
113
  }
112
- }, q = (e, t, r) => {
114
+ }, j = (e, t, r) => {
113
115
  var m, x;
114
116
  const n = F();
115
117
  c.current = e.current, c.pageSize = e.pageSize, J(t, r);
116
118
  const a = N(r) ? [...r] : [r], u = {};
117
119
  for (const i of a)
118
- (m = h(B)) != null && m.includes(i.columnKey || i.field) && i.order && (u[ce(i.columnKey || i.field)] = i.order);
120
+ (m = h(B)) != null && m.includes(i.columnKey || i.field) && i.order && (u[le(i.columnKey || i.field)] = i.order);
119
121
  const f = {};
120
122
  for (const i of Object.keys(t))
121
123
  (x = h(U)) != null && x.includes(i) && t[i] && (f[i] = t[i]);
@@ -126,9 +128,9 @@ const Pe = ({
126
128
  current: e.current,
127
129
  pageSize: e.pageSize
128
130
  };
129
- le(s, d, ie) || w(d);
131
+ fe(s, d, ue) || w(d);
130
132
  };
131
- oe(() => {
133
+ ae(() => {
132
134
  const e = F(), {
133
135
  current: t,
134
136
  pageSize: r
@@ -140,15 +142,15 @@ const Pe = ({
140
142
  sort: {},
141
143
  ...e
142
144
  }, !g) {
143
- const n = _(s);
144
- O(n);
145
+ const n = O(s);
146
+ V(n);
145
147
  }
146
- }), ne(() => h(v), () => {
148
+ }), se(() => h(v), () => {
147
149
  E();
148
150
  }, {
149
151
  deep: !0
150
152
  });
151
- const Y = A(() => {
153
+ const ee = A(() => {
152
154
  if (o.total === 0)
153
155
  return "-";
154
156
  const {
@@ -157,10 +159,10 @@ const Pe = ({
157
159
  } = c;
158
160
  return `${e}/${Math.ceil(o.total / t)}`;
159
161
  });
160
- function k(e) {
162
+ function te(e) {
161
163
  N(e) && (o.records = e, o.total = e.length);
162
164
  }
163
- const ee = A(() => {
165
+ const re = A(() => {
164
166
  const {
165
167
  showLessItems: e,
166
168
  showTotal: t
@@ -183,30 +185,32 @@ const Pe = ({
183
185
  class: P("pagination--total-right")
184
186
  }, [T("ap.apTable.pagination.totalRightPrefix"), " ", C("span", {
185
187
  class: P("pagination-count-text")
186
- }, [h(Y)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
188
+ }, [h(ee)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
187
189
  },
188
- onChange: q,
190
+ onChange: j,
189
191
  dataSource: o.records
190
192
  };
191
193
  });
192
194
  return {
193
195
  formRef: z,
194
196
  submit: E,
195
- reset: H,
196
- refresh: j,
197
- refreshByDelete: X,
197
+ reset: Y,
198
+ refresh: _,
199
+ refreshByDelete: k,
198
200
  data: o,
199
201
  current: c.current,
200
202
  pageSize: c.pageSize,
201
- handleTableChange: q,
202
- tableProps: ee,
203
+ handleTableChange: j,
204
+ tableProps: re,
203
205
  dataSource: A(() => o.records),
204
- setDataSource: k,
205
- getColumnSFConfig: G
206
+ setDataSource: te,
207
+ getColumnSFConfig: G,
208
+ sortedInfo: W,
209
+ filteredInfo: Z
206
210
  };
207
211
  };
208
212
  export {
209
213
  S as DEFAULT_CURRENT,
210
214
  L as DEFAULT_PAGE_SIZE,
211
- Pe as useTablePaging
215
+ we as useTablePaging
212
216
  };
@@ -108,5 +108,5 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
108
108
  }>;
109
109
  dataSource: ComputedRef<DataType[]>;
110
110
  setDataSource: (dataSource?: DataType[]) => void;
111
- getColumnSFConfig: (column: ApColumnType) => Recordable;
111
+ getColumnSFConfig: (column: ApColumnType, append?: boolean) => Recordable;
112
112
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, ref as C, computed as n, unref as f, watch as N, nextTick as S, onMounted as j, onUnmounted as G, openBlock as c, createBlock as d, mergeProps as b, withCtx as g, renderSlot as R, createTextVNode as A, toDisplayString as k, createElementVNode as o, normalizeClass as W, normalizeStyle as _, createElementBlock as T, Fragment as F, renderList as I, createCommentVNode as U } from "vue";
1
+ import { defineComponent as D, ref as C, computed as n, unref as f, watch as N, nextTick as S, onMounted as j, onUnmounted as G, createBlock as d, openBlock as c, mergeProps as b, withCtx as g, createElementVNode as o, normalizeStyle as k, normalizeClass as W, createElementBlock as _, createCommentVNode as R, Fragment as A, renderList as F, toDisplayString as T, renderSlot as I, createTextVNode as U } from "vue";
2
2
  import { Tooltip as q } from "@aplus-frontend/antdv";
3
3
  import H from "@ant-design/icons-vue";
4
4
  import "./ap-tag.vue2.mjs";
@@ -79,8 +79,8 @@ const ue = /* @__PURE__ */ D({
79
79
  window.removeEventListener("resize", y);
80
80
  }), (e, t) => (c(), d(f(q), b({ trigger: "hover" }, $.value), {
81
81
  title: g(() => [
82
- R(e.$slots, "tooltip", { tags: e.list }, () => [
83
- A(k(L.value), 1)
82
+ I(e.$slots, "tooltip", { tags: e.list }, () => [
83
+ U(T(L.value), 1)
84
84
  ])
85
85
  ]),
86
86
  default: g(() => [
@@ -88,12 +88,12 @@ const ue = /* @__PURE__ */ D({
88
88
  ref_key: "container",
89
89
  ref: u,
90
90
  class: W(M.value),
91
- style: _({
91
+ style: k({
92
92
  pointerEvents: p.value ? "auto" : "none"
93
93
  // opacity: isUpdating ? '0' : '1'
94
94
  })
95
95
  }, [
96
- (c(!0), T(F, null, I(e.list, (s, l) => (c(), d(X, b({ ref_for: !0 }, s, {
96
+ (c(!0), _(A, null, F(e.list, (s, l) => (c(), d(X, b({ ref_for: !0 }, s, {
97
97
  key: l,
98
98
  style: {
99
99
  display: l >= m.value ? "none" : "inline-block",
@@ -102,7 +102,7 @@ const ue = /* @__PURE__ */ D({
102
102
  }), null, 16, ["style"]))), 128)),
103
103
  p.value && r.value.symbol === "icon" ? (c(), d(f(H), {
104
104
  key: 0,
105
- style: _({ color: e.ellipsisColor || r.value.iconColor })
105
+ style: k({ color: e.ellipsisColor || r.value.iconColor })
106
106
  }, {
107
107
  component: g(() => t[0] || (t[0] = [
108
108
  o("svg", {
@@ -160,10 +160,10 @@ const ue = /* @__PURE__ */ D({
160
160
  ], -1)
161
161
  ])),
162
162
  _: 1
163
- }, 8, ["style"])) : p.value && r.value.symbol === "text" ? (c(), T("span", {
163
+ }, 8, ["style"])) : p.value && r.value.symbol === "text" ? (c(), _("span", {
164
164
  key: 1,
165
165
  class: W(P.value)
166
- }, k(r.value.text), 3)) : U("", !0)
166
+ }, T(r.value.text), 3)) : R("", !0)
167
167
  ], 6)
168
168
  ]),
169
169
  _: 3
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, computed as n, openBlock as b, createElementBlock as y, normalizeStyle as w, normalizeClass as p, createVNode as z, unref as B } from "vue";
1
+ import { defineComponent as $, computed as n, createElementBlock as b, openBlock as y, normalizeClass as p, normalizeStyle as w, createVNode as z, unref as B } from "vue";
2
2
  import "../config-provider/index.mjs";
3
3
  import { TypographyText as v } from "@aplus-frontend/antdv";
4
4
  import { useGlobalConfig as I } from "../config-provider/hooks/use-global-config.mjs";
@@ -26,7 +26,7 @@ const A = /* @__PURE__ */ $({
26
26
  const t = [r("inner-wrapper"), a("inner-wrapper", e.size)];
27
27
  return e.disabled && (o.value === "aplus" ? t.push(a("inner-wrapper", "disabled")) : t.push(a("inner-wrapper", "disabled-admin"))), t;
28
28
  });
29
- return (t, s) => (b(), y("span", {
29
+ return (t, s) => (y(), b("span", {
30
30
  style: w(c.value),
31
31
  class: p(u.value)
32
32
  }, [