@aplus-frontend/ui 0.6.0-beta.11 → 0.6.0-beta.13

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 (204) hide show
  1. package/es/index.mjs +79 -77
  2. package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
  3. package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
  4. package/es/src/ap-form/dependency/index.vue.mjs +29 -24
  5. package/es/src/ap-form/interface.d.ts +3 -3
  6. package/es/src/ap-form/item/index.vue.mjs +39 -35
  7. package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
  8. package/es/src/ap-grid/index.vue.mjs +2 -2
  9. package/es/src/ap-table/ap-table.vue2.mjs +17 -17
  10. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +41 -44
  11. package/es/src/ap-table/constants.d.ts +18 -18
  12. package/es/src/ap-table/utils.d.ts +18 -18
  13. package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
  14. package/es/src/business/ap-copy/ApCopy.mjs +79 -0
  15. package/es/src/business/ap-copy/constans.d.ts +24 -0
  16. package/es/src/business/ap-copy/constans.mjs +25 -0
  17. package/es/src/business/ap-copy/index.d.ts +102 -0
  18. package/es/src/business/ap-copy/index.mjs +7 -0
  19. package/es/src/business/ap-copy/interface.d.ts +8 -0
  20. package/es/src/business/ap-copy/interface.mjs +1 -0
  21. package/es/src/business/ap-copy/style/css.d.ts +0 -0
  22. package/es/src/business/ap-copy/style/css.js +1 -0
  23. package/es/src/business/ap-copy/style/index.d.ts +0 -0
  24. package/es/src/business/ap-copy/style/index.js +1 -0
  25. package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  26. package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -53
  27. package/es/src/business/ap-product-info/constans.d.ts +4 -0
  28. package/es/src/business/ap-product-info/constans.mjs +4 -0
  29. package/es/src/business/ap-product-info/index.d.ts +15 -0
  30. package/es/src/business/ap-product-info/interface.d.ts +1 -0
  31. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
  32. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +23 -23
  33. package/es/src/business/ap-radio-group/index.d.ts +5 -0
  34. package/es/src/business/hooks/usePageListApGrid.d.ts +0 -2
  35. package/es/src/business/hooks/usePageListApGrid.mjs +48 -65
  36. package/es/src/business/index.d.ts +1 -0
  37. package/es/src/business/index.mjs +20 -18
  38. package/es/src/components.d.ts +1 -0
  39. package/es/src/index.mjs +58 -56
  40. package/es/src/locale/lang/en.mjs +4 -0
  41. package/es/src/locale/lang/zh-cn.mjs +4 -0
  42. package/es/src/path-map.mjs +1 -0
  43. package/es/src/version.d.ts +1 -1
  44. package/es/src/version.mjs +1 -1
  45. package/es/test/setup.d.ts +5 -0
  46. package/lib/index.js +1 -1
  47. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  48. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  49. package/lib/src/ap-form/dependency/index.vue.js +1 -1
  50. package/lib/src/ap-form/interface.d.ts +3 -3
  51. package/lib/src/ap-form/item/index.vue.js +1 -1
  52. package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
  53. package/lib/src/ap-grid/index.vue.js +1 -1
  54. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  55. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  56. package/lib/src/ap-table/constants.d.ts +18 -18
  57. package/lib/src/ap-table/utils.d.ts +18 -18
  58. package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
  59. package/lib/src/business/ap-copy/ApCopy.js +1 -0
  60. package/lib/src/business/ap-copy/constans.d.ts +24 -0
  61. package/lib/src/business/ap-copy/constans.js +1 -0
  62. package/lib/src/business/ap-copy/index.d.ts +102 -0
  63. package/lib/src/business/ap-copy/index.js +1 -0
  64. package/lib/src/business/ap-copy/interface.d.ts +8 -0
  65. package/lib/src/business/ap-copy/interface.js +1 -0
  66. package/lib/src/business/ap-copy/style/css.cjs +1 -0
  67. package/lib/src/business/ap-copy/style/css.d.ts +0 -0
  68. package/lib/src/business/ap-copy/style/index.cjs +1 -0
  69. package/lib/src/business/ap-copy/style/index.d.ts +0 -0
  70. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  71. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  72. package/lib/src/business/ap-product-info/constans.d.ts +4 -0
  73. package/lib/src/business/ap-product-info/constans.js +1 -1
  74. package/lib/src/business/ap-product-info/index.d.ts +15 -0
  75. package/lib/src/business/ap-product-info/interface.d.ts +1 -0
  76. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
  77. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  78. package/lib/src/business/ap-radio-group/index.d.ts +5 -0
  79. package/lib/src/business/hooks/usePageListApGrid.d.ts +0 -2
  80. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  81. package/lib/src/business/index.d.ts +1 -0
  82. package/lib/src/business/index.js +1 -1
  83. package/lib/src/components.d.ts +1 -0
  84. package/lib/src/index.js +1 -1
  85. package/lib/src/locale/lang/en.js +1 -1
  86. package/lib/src/locale/lang/zh-cn.js +1 -1
  87. package/lib/src/path-map.js +1 -1
  88. package/lib/src/version.d.ts +1 -1
  89. package/lib/src/version.js +1 -1
  90. package/lib/test/setup.d.ts +5 -0
  91. package/package.json +5 -8
  92. package/theme/antd-global-overwrite/admin/index.css +11 -9
  93. package/theme/antd-global-overwrite/admin/modal.css +9 -6
  94. package/theme/antd-global-overwrite/admin/modal.less +8 -6
  95. package/theme/antd-global-overwrite/admin/table.css +2 -3
  96. package/theme/antd-global-overwrite/admin/table.less +2 -3
  97. package/theme/antd-global-overwrite/aplus/index.css +11 -8
  98. package/theme/antd-global-overwrite/aplus/modal.css +9 -6
  99. package/theme/antd-global-overwrite/aplus/modal.less +8 -6
  100. package/theme/antd-global-overwrite/aplus/table.css +2 -2
  101. package/theme/antd-global-overwrite/aplus/table.less +2 -2
  102. package/theme/ap-action/item-dropdown.css +2 -2
  103. package/theme/ap-action/item.css +19 -8
  104. package/theme/ap-action/item.less +18 -6
  105. package/theme/ap-appendix/ap-appendix.css +8 -8
  106. package/theme/ap-appendix/ap-appendix.less +6 -6
  107. package/theme/ap-attachment/ap-attachment.css +2 -2
  108. package/theme/ap-batch-action/ap-batch-action.css +5 -5
  109. package/theme/ap-batch-action/ap-batch-action.less +3 -3
  110. package/theme/ap-button/ap-button.css +2 -2
  111. package/theme/ap-card/ap-card.css +2 -2
  112. package/theme/ap-copy/ap-copy.css +94 -0
  113. package/theme/ap-copy/ap-copy.less +59 -0
  114. package/theme/ap-descriptions/ap-descriptions.css +6 -6
  115. package/theme/ap-descriptions/ap-descriptions.less +4 -4
  116. package/theme/ap-download/ap-download.css +2 -2
  117. package/theme/ap-expand-alert/ap-expand-alert.css +2 -2
  118. package/theme/ap-field/checkbox.css +2 -2
  119. package/theme/ap-field/index.css +2 -2
  120. package/theme/ap-field/number.css +2 -2
  121. package/theme/ap-field/radio.css +2 -2
  122. package/theme/ap-field/text-area.css +2 -2
  123. package/theme/ap-form/ap-form-item-group.css +2 -2
  124. package/theme/ap-form/ap-form-item.css +6 -6
  125. package/theme/ap-form/ap-form-item.less +4 -4
  126. package/theme/ap-form/drawer-form.css +2 -2
  127. package/theme/ap-form/index.css +13 -13
  128. package/theme/ap-form/item-text-group.css +2 -2
  129. package/theme/ap-form/item-text.css +2 -2
  130. package/theme/ap-form/modal-form.css +2 -2
  131. package/theme/ap-form/search-form-sorter.css +6 -6
  132. package/theme/ap-form/search-form-sorter.less +4 -4
  133. package/theme/ap-form/search-form.css +13 -13
  134. package/theme/ap-form/search-form.less +3 -3
  135. package/theme/ap-grid/editable.css +2 -2
  136. package/theme/ap-grid/index.css +43 -24
  137. package/theme/ap-grid/index.less +14 -3
  138. package/theme/ap-group-search/ap-extension-select.css +2 -2
  139. package/theme/ap-group-search/ap-group-search.css +2 -2
  140. package/theme/ap-group-search/ap-popover-select.css +2 -2
  141. package/theme/ap-image/ap-image.css +2 -2
  142. package/theme/ap-input-radio/ap-input-radio.css +2 -2
  143. package/theme/ap-label/ap-label.css +2 -2
  144. package/theme/ap-ladder/ap-ladder.css +2 -2
  145. package/theme/ap-layout/ap-info-layout.css +2 -2
  146. package/theme/ap-list/index.css +2 -2
  147. package/theme/ap-product-info/ap-product-info.css +22 -32
  148. package/theme/ap-product-info/ap-product-info.less +28 -42
  149. package/theme/ap-radio-group/ap-radio-group.css +8 -7
  150. package/theme/ap-radio-group/ap-radio-group.less +7 -5
  151. package/theme/ap-select-layout/ap-select-layout.css +2 -2
  152. package/theme/ap-size-input/ap-size-input.css +2 -2
  153. package/theme/ap-status/ap-status.css +2 -2
  154. package/theme/ap-summary/index.css +2 -2
  155. package/theme/ap-table/ap-table-index.css +2 -2
  156. package/theme/ap-table/ap-table-paragraph-ellipsis.css +3 -3
  157. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  158. package/theme/ap-table/ap-table.css +59 -37
  159. package/theme/ap-table/ap-table.less +14 -7
  160. package/theme/ap-table/setting/index.css +14 -9
  161. package/theme/ap-table/setting/modal.css +7 -3
  162. package/theme/ap-table/setting/modal.less +5 -1
  163. package/theme/ap-table/setting/select-group.css +2 -2
  164. package/theme/ap-table/setting/sortable-item-meta.css +4 -4
  165. package/theme/ap-table/setting/sortable-item-meta.less +2 -2
  166. package/theme/ap-table/setting/sortable-item.css +2 -2
  167. package/theme/ap-table/setting/sorter.css +7 -6
  168. package/theme/ap-table/setting/sorter.less +4 -4
  169. package/theme/ap-table-modal/index.css +59 -37
  170. package/theme/ap-tag/ap-tag-group.css +2 -2
  171. package/theme/ap-tag/ap-tag.css +3 -3
  172. package/theme/ap-tag/ap-tag.less +1 -1
  173. package/theme/ap-title/ap-title.css +2 -2
  174. package/theme/ap-upload/index.css +2 -2
  175. package/theme/ap-upload/multiple-file.css +2 -2
  176. package/theme/ap-upload/picture.css +2 -2
  177. package/theme/ap-upload/single-file.css +2 -2
  178. package/theme/ap-upload/upload.css +2 -2
  179. package/theme/ap-upload-single/index.css +6 -6
  180. package/theme/ap-upload-single/index.less +4 -4
  181. package/theme/ap-view/ap-view.css +9 -9
  182. package/theme/ap-view/ap-view.less +7 -7
  183. package/theme/batch-input-group/index.css +4 -4
  184. package/theme/batch-input-group/popover-input.css +4 -4
  185. package/theme/batch-input-group/popover-input.less +2 -2
  186. package/theme/check-card/index.css +7 -7
  187. package/theme/check-card/index.less +5 -5
  188. package/theme/editable-table/index.css +30 -19
  189. package/theme/full-screen/index.css +2 -2
  190. package/theme/index.css +229 -206
  191. package/theme/index.less +1 -0
  192. package/theme/mask/index.css +2 -2
  193. package/theme/mixins/mixins.css +2 -2
  194. package/theme/mixins/mixins.less +2 -2
  195. package/theme/scroll-bar/index.css +2 -2
  196. package/theme/scroll-view/index.css +2 -2
  197. package/theme/splitter/index.css +5 -5
  198. package/theme/splitter/index.less +1 -1
  199. package/theme/text/group.css +2 -2
  200. package/theme/text/index.css +6 -6
  201. package/theme/text/index.less +4 -4
  202. package/theme/ui-mode.css +44 -90
  203. package/theme/ui-mode.less +90 -90
  204. package/theme/work-order-modal/index.css +2 -2
@@ -1,4 +1,4 @@
1
- import { defineComponent as Le, useSlots as Oe, ref as w, computed as s, unref as l, createVNode as m, Fragment as re, watch as k, createElementBlock as B, openBlock as b, normalizeStyle as K, normalizeClass as y, createCommentVNode as oe, createElementVNode as L, mergeProps as v, createSlots as ae, withCtx as R, renderList as te, createBlock as le, resolveDynamicComponent as Ae, renderSlot as C, normalizeProps as $e, guardReactiveProps as De } from "vue";
1
+ import { defineComponent as Le, useSlots as Oe, ref as w, computed as s, unref as l, createVNode as m, Fragment as re, watch as k, createElementBlock as B, openBlock as y, normalizeStyle as K, normalizeClass as b, createCommentVNode as oe, createElementVNode as L, mergeProps as v, createSlots as ae, withCtx as R, renderList as te, createBlock as le, resolveDynamicComponent as Ae, renderSlot as C, normalizeProps as $e, guardReactiveProps as De } from "vue";
2
2
  import { Divider as je, Table as We } from "@aplus-frontend/antdv";
3
3
  import { useToken as _e } from "@aplus-frontend/antdv/es/theme/internal";
4
4
  import { ApForm as He } from "../ap-form/index.mjs";
@@ -155,9 +155,9 @@ const Or = /* @__PURE__ */ Le({
155
155
  b: f,
156
156
  be: A,
157
157
  m: me,
158
- cssVar: be
158
+ cssVar: ye
159
159
  } = ur("ap-table"), $ = ir("valueTypeMap"), {
160
- height: ye,
160
+ height: be,
161
161
  contentRef: ge
162
162
  } = ar(), D = w(), j = w(), {
163
163
  isStickyMode: W,
@@ -317,7 +317,7 @@ const Or = /* @__PURE__ */ Le({
317
317
  var a, o;
318
318
  if (r.adaptive && (S.total > 0 || ((a = r.dataSource) == null ? void 0 : a.length)))
319
319
  return {
320
- y: l(ye),
320
+ y: l(be),
321
321
  x: ((o = r.scroll) == null ? void 0 : o.x) || "100%"
322
322
  };
323
323
  if (r.scroll)
@@ -409,16 +409,16 @@ const Or = /* @__PURE__ */ Le({
409
409
  },
410
410
  y: void 0
411
411
  }
412
- }), (e, a) => (b(), B("div", {
412
+ }), (e, a) => (y(), B("div", {
413
413
  ref_key: "tableWrapperRef",
414
414
  ref: D,
415
- class: y(Ne.value),
416
- style: K(l(be)({
415
+ class: b(Ne.value),
416
+ style: K(l(ye)({
417
417
  "scroll-bar-width": `${l(H)}px`
418
418
  }))
419
- }, [l(g)(e.dataSource) && e.searchForm !== !1 && U.value.length > 0 ? (b(), B("div", {
419
+ }, [l(g)(e.dataSource) && e.searchForm !== !1 && U.value.length > 0 ? (y(), B("div", {
420
420
  key: 0,
421
- class: y(e.card ? l(z)("search-wrapper") : null),
421
+ class: b(e.card ? l(z)("search-wrapper") : null),
422
422
  style: K(e.searchFormWrapperStyle)
423
423
  }, [m(l(He).SearchForm, v(e.searchForm || {}, {
424
424
  ref_key: "formRef",
@@ -428,7 +428,7 @@ const Or = /* @__PURE__ */ Le({
428
428
  onSubmit: l(I),
429
429
  onReset: l(V)
430
430
  }), ae({
431
- default: R(() => [(b(!0), B(re, null, te(U.value, (o) => (b(), le(Ae(o.renderNode.Comp), v({
431
+ default: R(() => [(y(!0), B(re, null, te(U.value, (o) => (y(), le(Ae(o.renderNode.Comp), v({
432
432
  key: o.dataIndex,
433
433
  item: o,
434
434
  ref_for: !0
@@ -444,20 +444,20 @@ const Or = /* @__PURE__ */ Le({
444
444
  } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : oe("", !0), L("div", {
445
445
  ref_key: "contentRef",
446
446
  ref: ge,
447
- class: y([l(z)("table-wrapper"), e.card ? l(z)("table-wrapper-card") : null]),
447
+ class: b([l(z)("table-wrapper"), e.card ? l(z)("table-wrapper-card") : null]),
448
448
  style: K(e.tableWrapperStyle)
449
449
  }, [L("div", {
450
- class: y(l(f)("header-wrapper"))
451
- }, [e.settings ? (b(), B("div", {
450
+ class: b(l(f)("header-wrapper"))
451
+ }, [e.settings ? (y(), B("div", {
452
452
  key: 0,
453
- class: y(l(f)("header"))
453
+ class: b(l(f)("header"))
454
454
  }, [L("div", {
455
- class: y(l(A)("header", "title"))
455
+ class: b(l(A)("header", "title"))
456
456
  }, [C(e.$slots, "title", v({
457
457
  selectedRows: l(x),
458
458
  selectedRowKeys: l(T).selectedRowKeys,
459
459
  shownColumns: u.value
460
- }, F))], 2), c.title ? (b(), le(l(je), {
460
+ }, F))], 2), c.title ? (y(), le(l(je), {
461
461
  key: 0,
462
462
  type: "vertical"
463
463
  })) : oe("", !0), m(fr, {
@@ -492,7 +492,7 @@ const Or = /* @__PURE__ */ Le({
492
492
  ref: i,
493
493
  "scroll-container": (t = (o = j.value) == null ? void 0 : o.table) == null ? void 0 : t.scrollBodyRef,
494
494
  direction: "horizontal",
495
- "bar-color": "var(--basic-scrollbar-thumb-color-base, #bfbfbf)",
495
+ "bar-color": "var(--ap-scrollbar-thumb-color-base)",
496
496
  "track-color": "var(--ap-table-header-bg, #f2f6f9)"
497
497
  }, null, 8, ["scroll-container"])];
498
498
  }),
@@ -1,23 +1,18 @@
1
- import { defineComponent as G, ref as y, unref as e, computed as H, useSlots as L, createVNode as l, cloneVNode as M, createElementBlock as P, openBlock as x, Fragment as q, createBlock as J, createCommentVNode as Q, resolveDynamicComponent as W, withCtx as i, createElementVNode as s, normalizeClass as r, toDisplayString as c, createTextVNode as C, isRef as X } from "vue";
2
- import { Button as B, Modal as Y, RadioGroup as Z, RadioButton as _, Divider as h } from "@aplus-frontend/antdv";
1
+ import { defineComponent as G, ref as y, unref as e, computed as L, useSlots as M, createVNode as l, cloneVNode as P, createElementBlock as q, openBlock as x, Fragment as H, createBlock as J, createCommentVNode as Q, resolveDynamicComponent as W, withCtx as r, createElementVNode as s, normalizeClass as i, toDisplayString as c, createTextVNode as S, isRef as X } from "vue";
2
+ import { Button as B, Modal as Y, RadioGroup as Z, RadioButton as N, Divider as T } from "@aplus-frontend/antdv";
3
3
  import { getSingleVNode as ee } from "../../../../utils/slot.mjs";
4
4
  import { useInjectApTable as te } from "../../../context.mjs";
5
5
  import "../tree-select/index.vue.mjs";
6
6
  import { useTableColumnState as le } from "../../../hooks/use-table-column-state.mjs";
7
7
  import "../../../../config-provider/index.mjs";
8
8
  import "../sorter/index.vue.mjs";
9
- import oe, { customCloneColumnStates as N } from "../utils.mjs";
10
- import { SettingOutlined as ne } from "@ant-design/icons-vue";
9
+ import ne, { customCloneColumnStates as h } from "../utils.mjs";
10
+ import { SettingOutlined as oe } from "@ant-design/icons-vue";
11
11
  import { useLocale as ae } from "../../../../config-provider/hooks/use-locale.mjs";
12
- import { useNamespace as T } from "../../../../config-provider/hooks/use-namespace.mjs";
12
+ import { useNamespace as _ } from "../../../../config-provider/hooks/use-namespace.mjs";
13
13
  import se from "../tree-select/index.vue2.mjs";
14
14
  import ie from "../sorter/index.vue2.mjs";
15
- const re = {
16
- style: {
17
- lineHeight: "22px",
18
- color: "#8896B0"
19
- }
20
- }, Be = /* @__PURE__ */ G({
15
+ const xe = /* @__PURE__ */ G({
21
16
  __name: "index",
22
17
  props: {
23
18
  config: {
@@ -30,8 +25,8 @@ const re = {
30
25
  size: z,
31
26
  updateSize: d,
32
27
  updateColumns: f
33
- } = te(), g = y(e(z)), R = H(() => m.config.persistenceKey), {
34
- columnState: n,
28
+ } = te(), g = y(e(z)), R = L(() => m.config.persistenceKey), {
29
+ columnState: o,
35
30
  setColumnState: w,
36
31
  isAllSelected: D,
37
32
  toggleSelectAll: O,
@@ -42,31 +37,31 @@ const re = {
42
37
  t: a
43
38
  } = ae(), {
44
39
  b: v,
45
- be: S
46
- } = T("ap-column-setting"), {
40
+ be: C
41
+ } = _("ap-column-setting"), {
47
42
  b: K
48
- } = T("ap-table"), u = y(!1), $ = L(), b = ee($.trigger) || l(B, {
49
- icon: l(ne, null, null),
43
+ } = _("ap-table"), u = y(!1), $ = M(), b = ee($.trigger) || l(B, {
44
+ icon: l(oe, null, null),
50
45
  class: K("setting-trigger-button")
51
- }, null), k = b ? M(b, {
46
+ }, null), k = b ? P(b, {
52
47
  onClick: () => {
53
48
  u.value = !0;
54
49
  }
55
50
  }) : null;
56
51
  function j() {
57
- w(N(e(U)));
52
+ w(h(e(U)));
58
53
  }
59
54
  function F() {
60
- var t, o;
61
- f == null || f(oe(e(V), e(n))), d == null || d(e(g)), u.value = !1;
62
- const p = N(n.value);
63
- E(p), I(p), (o = (t = m.config) == null ? void 0 : t.onChange) == null || o.call(t, p);
55
+ var t, n;
56
+ f == null || f(ne(e(V), e(o))), d == null || d(e(g)), u.value = !1;
57
+ const p = h(o.value);
58
+ E(p), I(p), (n = (t = m.config) == null ? void 0 : t.onChange) == null || n.call(t, p);
64
59
  }
65
- return (p, t) => (x(), P(q, null, [e(k) ? (x(), J(W(e(k)), {
60
+ return (p, t) => (x(), q(H, null, [e(k) ? (x(), J(W(e(k)), {
66
61
  key: 0
67
62
  })) : Q("", !0), l(e(Y), {
68
63
  open: u.value,
69
- "onUpdate:open": t[2] || (t[2] = (o) => u.value = o),
64
+ "onUpdate:open": t[2] || (t[2] = (n) => u.value = n),
70
65
  title: e(a)("ap.apTable.setting.title"),
71
66
  width: 900,
72
67
  centered: !0,
@@ -76,54 +71,56 @@ const re = {
76
71
  },
77
72
  onOk: F
78
73
  }, {
79
- default: i(() => [s("div", {
80
- class: r(e(v)("wrapper"))
74
+ default: r(() => [s("div", {
75
+ class: i(e(v)("wrapper"))
81
76
  }, [s("div", {
82
- class: r(e(v)("left"))
77
+ class: i(e(v)("left"))
83
78
  }, [s("div", {
84
- class: r(e(S)("left", "header"))
85
- }, [s("div", null, [s("span", re, c(e(a)("ap.apTable.setting.selectAllTip")), 1), l(e(B), {
79
+ class: i(e(C)("left", "header"))
80
+ }, [s("div", null, [s("span", {
81
+ class: i(e(C)("left", "header-tips"))
82
+ }, c(e(a)("ap.apTable.setting.selectAllTip")), 3), l(e(B), {
86
83
  type: "link",
87
84
  size: "small",
88
85
  onClick: e(O)
89
86
  }, {
90
- default: i(() => [C(c(e(D) ? e(a)("ap.apTable.setting.unSelectAll") : e(a)("ap.apTable.setting.selectAll")), 1)]),
87
+ default: r(() => [S(c(e(D) ? e(a)("ap.apTable.setting.unSelectAll") : e(a)("ap.apTable.setting.selectAll")), 1)]),
91
88
  _: 1
92
89
  }, 8, ["onClick"])]), l(e(Z), {
93
90
  value: g.value,
94
- "onUpdate:value": t[0] || (t[0] = (o) => g.value = o)
91
+ "onUpdate:value": t[0] || (t[0] = (n) => g.value = n)
95
92
  }, {
96
- default: i(() => [l(e(_), {
93
+ default: r(() => [l(e(N), {
97
94
  value: "small"
98
95
  }, {
99
- default: i(() => [C(c(e(a)("ap.apTable.setting.sizeSmall")), 1)]),
96
+ default: r(() => [S(c(e(a)("ap.apTable.setting.sizeSmall")), 1)]),
100
97
  _: 1
101
- }), l(e(_), {
98
+ }), l(e(N), {
102
99
  value: "middle"
103
100
  }, {
104
- default: i(() => [C(c(e(a)("ap.apTable.setting.sizeNormal")), 1)]),
101
+ default: r(() => [S(c(e(a)("ap.apTable.setting.sizeNormal")), 1)]),
105
102
  _: 1
106
103
  })]),
107
104
  _: 1
108
- }, 8, ["value"])], 2), l(e(h), {
105
+ }, 8, ["value"])], 2), l(e(T), {
109
106
  dashed: "",
110
107
  style: {
111
108
  margin: "0px"
112
109
  }
113
110
  }), l(se, {
114
- class: r(e(S)("left", "content")),
115
- value: e(n)
116
- }, null, 8, ["class", "value"])], 2), l(e(h), {
111
+ class: i(e(C)("left", "content")),
112
+ value: e(o)
113
+ }, null, 8, ["class", "value"])], 2), l(e(T), {
117
114
  type: "vertical",
118
115
  style: {
119
116
  height: "100%",
120
117
  margin: "0px"
121
118
  }
122
119
  }), s("div", {
123
- class: r(e(v)("right"))
120
+ class: i(e(v)("right"))
124
121
  }, [l(ie, {
125
- value: e(n),
126
- "onUpdate:value": t[1] || (t[1] = (o) => X(n) ? n.value = o : null),
122
+ value: e(o),
123
+ "onUpdate:value": t[1] || (t[1] = (n) => X(o) ? o.value = n : null),
127
124
  onReset: j
128
125
  }, null, 8, ["value"])], 2)], 2)]),
129
126
  _: 1
@@ -131,5 +128,5 @@ const re = {
131
128
  }
132
129
  });
133
130
  export {
134
- Be as default
131
+ xe as default
135
132
  };
@@ -847,13 +847,13 @@ export declare const apTableFormItemMap: {
847
847
  field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
848
848
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
849
849
  $slots: Readonly<{
850
- label: any;
851
- help: any;
852
- extra: any;
850
+ label?: any;
851
+ help?: any;
852
+ extra?: any;
853
853
  }> & {
854
- label: any;
855
- help: any;
856
- extra: any;
854
+ label?: any;
855
+ help?: any;
856
+ extra?: any;
857
857
  };
858
858
  });
859
859
  select: {
@@ -2156,13 +2156,13 @@ export declare const apTableFormItemMap: {
2156
2156
  field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
2157
2157
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
2158
2158
  $slots: Readonly<{
2159
- label: any;
2160
- help: any;
2161
- extra: any;
2159
+ label?: any;
2160
+ help?: any;
2161
+ extra?: any;
2162
2162
  }> & {
2163
- label: any;
2164
- help: any;
2165
- extra: any;
2163
+ label?: any;
2164
+ help?: any;
2165
+ extra?: any;
2166
2166
  };
2167
2167
  });
2168
2168
  checkbox: {
@@ -2203,13 +2203,13 @@ export declare const apTableFormItemMap: {
2203
2203
  field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
2204
2204
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
2205
2205
  $slots: Readonly<{
2206
- label: any;
2207
- help: any;
2208
- extra: any;
2206
+ label?: any;
2207
+ help?: any;
2208
+ extra?: any;
2209
2209
  }> & {
2210
- label: any;
2211
- help: any;
2212
- extra: any;
2210
+ label?: any;
2211
+ help?: any;
2212
+ extra?: any;
2213
2213
  };
2214
2214
  });
2215
2215
  password: {
@@ -863,13 +863,13 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
863
863
  field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
864
864
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
865
865
  $slots: Readonly<{
866
- label: any;
867
- help: any;
868
- extra: any;
866
+ label?: any;
867
+ help?: any;
868
+ extra?: any;
869
869
  }> & {
870
- label: any;
871
- help: any;
872
- extra: any;
870
+ label?: any;
871
+ help?: any;
872
+ extra?: any;
873
873
  };
874
874
  })) | ({
875
875
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemNumberProps> & Readonly<{}>, {
@@ -1681,13 +1681,13 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
1681
1681
  field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
1682
1682
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1683
1683
  $slots: Readonly<{
1684
- label: any;
1685
- help: any;
1686
- extra: any;
1684
+ label?: any;
1685
+ help?: any;
1686
+ extra?: any;
1687
1687
  }> & {
1688
- label: any;
1689
- help: any;
1690
- extra: any;
1688
+ label?: any;
1689
+ help?: any;
1690
+ extra?: any;
1691
1691
  };
1692
1692
  })) | ({
1693
1693
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemSelectProps> & Readonly<{}>, {
@@ -2467,13 +2467,13 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
2467
2467
  field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
2468
2468
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
2469
2469
  $slots: Readonly<{
2470
- label: any;
2471
- help: any;
2472
- extra: any;
2470
+ label?: any;
2471
+ help?: any;
2472
+ extra?: any;
2473
2473
  }> & {
2474
- label: any;
2475
- help: any;
2476
- extra: any;
2474
+ label?: any;
2475
+ help?: any;
2476
+ extra?: any;
2477
2477
  };
2478
2478
  })) | ({
2479
2479
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemTreeSelectProps> & Readonly<{}>, {
@@ -0,0 +1,52 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, CSSProperties, ComponentProvideOptions } from 'vue';
2
+ import { ApCopy } from './interface';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ text: {
5
+ type: PropType< ApCopy["text"]>;
6
+ default: string;
7
+ };
8
+ size: {
9
+ type: PropType< ApCopy["size"]>;
10
+ default: number;
11
+ };
12
+ textStyle: {
13
+ type: PropType< ApCopy["textStyle"]>;
14
+ default: string;
15
+ };
16
+ link: {
17
+ type: PropType< ApCopy["link"]>;
18
+ default: string;
19
+ };
20
+ disableCopy: {
21
+ type: PropType< ApCopy["disableCopy"]>;
22
+ default: boolean;
23
+ };
24
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
25
+ text: {
26
+ type: PropType< ApCopy["text"]>;
27
+ default: string;
28
+ };
29
+ size: {
30
+ type: PropType< ApCopy["size"]>;
31
+ default: number;
32
+ };
33
+ textStyle: {
34
+ type: PropType< ApCopy["textStyle"]>;
35
+ default: string;
36
+ };
37
+ link: {
38
+ type: PropType< ApCopy["link"]>;
39
+ default: string;
40
+ };
41
+ disableCopy: {
42
+ type: PropType< ApCopy["disableCopy"]>;
43
+ default: boolean;
44
+ };
45
+ }>> & Readonly<{}>, {
46
+ size: number | undefined;
47
+ link: string | undefined;
48
+ text: string | undefined;
49
+ textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
50
+ disableCopy: boolean | undefined;
51
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
52
+ export default _default;
@@ -0,0 +1,79 @@
1
+ import { defineComponent as T, Text as y, isVNode as p, computed as b, createVNode as r, Fragment as h } from "vue";
2
+ import { ApCopyProps as v } from "./constans.mjs";
3
+ import { IconApAdLineCopy as k } from "@aplus-frontend/icon";
4
+ import "../../config-provider/index.mjs";
5
+ import { message as m } from "@aplus-frontend/antdv";
6
+ import { isNull as j, isUndefined as A } from "lodash-unified";
7
+ import { useNamespace as N } from "../../config-provider/hooks/use-namespace.mjs";
8
+ import { useLocale as P } from "../../config-provider/hooks/use-locale.mjs";
9
+ const I = /* @__PURE__ */ T({
10
+ name: "CopyBtn",
11
+ props: v(),
12
+ setup(n, {
13
+ slots: l
14
+ }) {
15
+ const {
16
+ b: d,
17
+ e: a,
18
+ m: x
19
+ } = N("ap-copy"), {
20
+ t: c
21
+ } = P(), g = () => {
22
+ navigator.clipboard.writeText(n.text || u() || "").then(() => {
23
+ m.success(c("ap.apCopy.copySuccess"));
24
+ }).catch(() => {
25
+ m.error(c("ap.apCopy.copyError"));
26
+ });
27
+ }, S = (t) => {
28
+ if (t.length === 1) {
29
+ const e = t[0];
30
+ if (e.type === y || e.type.toString() === "Symbol(Text)" || p(e) && typeof e.children == "string")
31
+ return !0;
32
+ }
33
+ return !1;
34
+ }, C = (t) => {
35
+ if (!t.length) return "";
36
+ const e = t[0];
37
+ return e.type === y || e.type.toString() === "Symbol(Text)" ? String(e.children) : p(e) && typeof e.children == "string" ? e.children : "";
38
+ }, u = () => {
39
+ var f;
40
+ const t = (f = l.default) == null ? void 0 : f.call(l);
41
+ return t && S(t) ? C(t) : null;
42
+ }, s = (t) => !(j(t) || A(t) || typeof t == "string" && t === ""), i = b(() => {
43
+ if (typeof n.textStyle == "string")
44
+ switch (n.textStyle) {
45
+ case "link":
46
+ return "text-link";
47
+ case "minor":
48
+ return "text-minor";
49
+ case "major":
50
+ return "text-major";
51
+ default:
52
+ return "text-major";
53
+ }
54
+ else if (typeof n.textStyle == "object")
55
+ return {
56
+ ...n.textStyle
57
+ };
58
+ return {};
59
+ }), o = u() || n.text || "";
60
+ return () => r(h, null, [r("div", {
61
+ class: [d()],
62
+ onClick: n.disableCopy ? void 0 : g
63
+ }, [r("div", {
64
+ class: [a("text"), typeof i.value == "string" && x(i.value)],
65
+ style: typeof i.value != "string" && i.value,
66
+ title: typeof i.value == "string" ? o : ""
67
+ }, [s(o) ? n.link ? r("a", {
68
+ href: n.link,
69
+ target: "_blank"
70
+ }, [o]) : o : "--"]), s(o) && !n.disableCopy && r("div", {
71
+ class: [a("copy-btn"), "copy-btn"]
72
+ }, [r(k, {
73
+ size: n.size
74
+ }, null)])])]);
75
+ }
76
+ });
77
+ export {
78
+ I as default
79
+ };
@@ -0,0 +1,24 @@
1
+ import { PropType } from 'vue';
2
+ import { ApCopy } from './interface';
3
+ export declare const ApCopyProps: () => {
4
+ text: {
5
+ type: PropType<ApCopy["text"]>;
6
+ default: string;
7
+ };
8
+ size: {
9
+ type: PropType<ApCopy["size"]>;
10
+ default: number;
11
+ };
12
+ textStyle: {
13
+ type: PropType<ApCopy["textStyle"]>;
14
+ default: string;
15
+ };
16
+ link: {
17
+ type: PropType<ApCopy["link"]>;
18
+ default: string;
19
+ };
20
+ disableCopy: {
21
+ type: PropType<ApCopy["disableCopy"]>;
22
+ default: boolean;
23
+ };
24
+ };
@@ -0,0 +1,25 @@
1
+ const t = () => ({
2
+ text: {
3
+ type: String,
4
+ default: ""
5
+ },
6
+ size: {
7
+ type: Number,
8
+ default: 14
9
+ },
10
+ textStyle: {
11
+ type: [String, Object],
12
+ default: "major"
13
+ },
14
+ link: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ disableCopy: {
19
+ type: Boolean,
20
+ default: !1
21
+ }
22
+ });
23
+ export {
24
+ t as ApCopyProps
25
+ };
@@ -0,0 +1,102 @@
1
+ import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, CSSProperties, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
+ import { ApCopy } from './interface';
3
+ export * from './interface';
4
+ declare const ApCopy: {
5
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
6
+ text: {
7
+ type: PropType< ApCopy["text"]>;
8
+ default: string;
9
+ };
10
+ size: {
11
+ type: PropType< ApCopy["size"]>;
12
+ default: number;
13
+ };
14
+ textStyle: {
15
+ type: PropType< ApCopy["textStyle"]>;
16
+ default: string;
17
+ };
18
+ link: {
19
+ type: PropType< ApCopy["link"]>;
20
+ default: string;
21
+ };
22
+ disableCopy: {
23
+ type: PropType< ApCopy["disableCopy"]>;
24
+ default: boolean;
25
+ };
26
+ }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
27
+ size: number | undefined;
28
+ link: string | undefined;
29
+ text: string | undefined;
30
+ textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
31
+ disableCopy: boolean | undefined;
32
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
33
+ P: {};
34
+ B: {};
35
+ D: {};
36
+ C: {};
37
+ M: {};
38
+ Defaults: {};
39
+ }, Readonly< ExtractPropTypes<{
40
+ text: {
41
+ type: PropType< ApCopy["text"]>;
42
+ default: string;
43
+ };
44
+ size: {
45
+ type: PropType< ApCopy["size"]>;
46
+ default: number;
47
+ };
48
+ textStyle: {
49
+ type: PropType< ApCopy["textStyle"]>;
50
+ default: string;
51
+ };
52
+ link: {
53
+ type: PropType< ApCopy["link"]>;
54
+ default: string;
55
+ };
56
+ disableCopy: {
57
+ type: PropType< ApCopy["disableCopy"]>;
58
+ default: boolean;
59
+ };
60
+ }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
61
+ size: number | undefined;
62
+ link: string | undefined;
63
+ text: string | undefined;
64
+ textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
65
+ disableCopy: boolean | undefined;
66
+ }>;
67
+ __isFragment?: never;
68
+ __isTeleport?: never;
69
+ __isSuspense?: never;
70
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
71
+ text: {
72
+ type: PropType< ApCopy["text"]>;
73
+ default: string;
74
+ };
75
+ size: {
76
+ type: PropType< ApCopy["size"]>;
77
+ default: number;
78
+ };
79
+ textStyle: {
80
+ type: PropType< ApCopy["textStyle"]>;
81
+ default: string;
82
+ };
83
+ link: {
84
+ type: PropType< ApCopy["link"]>;
85
+ default: string;
86
+ };
87
+ disableCopy: {
88
+ type: PropType< ApCopy["disableCopy"]>;
89
+ default: boolean;
90
+ };
91
+ }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
92
+ size: number | undefined;
93
+ link: string | undefined;
94
+ text: string | undefined;
95
+ textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
96
+ disableCopy: boolean | undefined;
97
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
98
+ $props: {
99
+ onClick?: () => void;
100
+ };
101
+ }));
102
+ export { ApCopy };