@aplus-frontend/ui 0.5.16 → 0.5.18

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 (242) hide show
  1. package/es/src/ap-action/group/index.vue.mjs +3 -3
  2. package/es/src/ap-action/item/index.vue2.mjs +5 -5
  3. package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
  4. package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
  5. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  6. package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
  7. package/es/src/ap-button/ap-button.vue.mjs +2 -2
  8. package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
  9. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
  10. package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
  11. package/es/src/ap-download/ap-download.vue.mjs +1 -1
  12. package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
  13. package/es/src/ap-field/date/index.vue.mjs +4 -4
  14. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  15. package/es/src/ap-field/index.mjs +30 -30
  16. package/es/src/ap-field/number/index.vue.mjs +8 -8
  17. package/es/src/ap-field/radio/index.vue.mjs +1 -1
  18. package/es/src/ap-field/rate/index.vue.mjs +2 -2
  19. package/es/src/ap-field/segmented/index.vue.mjs +1 -1
  20. package/es/src/ap-field/select/index.vue.mjs +2 -2
  21. package/es/src/ap-field/select/use-select-options.d.ts +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 +2 -2
  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.vue.d.ts +2 -1
  28. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  29. package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  30. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  31. package/es/src/ap-form/item/index.vue.mjs +7 -7
  32. package/es/src/ap-form/item-group/index.vue.mjs +3 -3
  33. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  34. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  35. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  36. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  37. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  38. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  39. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  40. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  41. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  42. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  43. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  44. package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
  45. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  46. package/es/src/ap-form/render/item.vue.mjs +2 -2
  47. package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
  48. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  49. package/es/src/ap-form/set/index.vue.mjs +1 -1
  50. package/es/src/ap-grid/editable/form-item.vue.d.ts +4 -2
  51. package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
  52. package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
  53. package/es/src/ap-grid/editable/index.vue.mjs +2 -2
  54. package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
  55. package/es/src/ap-grid/index.vue.d.ts +4 -2
  56. package/es/src/ap-grid/index.vue.mjs +110 -109
  57. package/es/src/ap-grid/interface.d.ts +10 -0
  58. package/es/src/ap-grid/utils/table.mjs +39 -32
  59. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
  60. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
  61. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  62. package/es/src/ap-list/index.vue.d.ts +4 -2
  63. package/es/src/ap-list/index.vue.mjs +4 -4
  64. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  65. package/es/src/ap-table/ap-table.vue.d.ts +4 -2
  66. package/es/src/ap-table/ap-table.vue2.mjs +26 -26
  67. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
  68. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  69. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
  70. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  71. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  72. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  73. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  74. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  75. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  76. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  77. package/es/src/ap-table/constants.mjs +40 -40
  78. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  79. package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
  80. package/es/src/ap-table/utils.mjs +27 -26
  81. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  82. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  83. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  84. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  85. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  86. package/es/src/ap-upload/components/Picture.vue.d.ts +7 -2
  87. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  88. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  89. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  90. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  91. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
  92. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  93. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  94. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  95. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  96. package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
  97. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  98. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  99. package/es/src/business/ap-expand-alert/index.d.ts +6 -4
  100. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
  101. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
  102. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
  103. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
  104. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
  105. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
  106. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  107. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  108. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -14
  109. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +64 -266
  110. package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
  111. package/es/src/business/ap-ladder/components/SimpleMode.vue.mjs +4 -0
  112. package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +119 -0
  113. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
  114. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.mjs +4 -0
  115. package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +213 -0
  116. package/es/src/business/ap-ladder/index.d.ts +4 -35
  117. package/es/src/business/ap-ladder/interface.d.ts +26 -0
  118. package/es/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
  119. package/es/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
  120. package/es/src/business/ap-ladder/utils.d.ts +2 -0
  121. package/es/src/business/ap-ladder/utils.mjs +5 -0
  122. package/es/src/business/ap-select-layout/index.d.ts +4 -2
  123. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  124. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  125. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  126. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  127. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  128. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +1 -1
  129. package/es/src/business/ap-table-modal/interface.d.ts +1 -1
  130. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +3 -3
  131. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +20 -21
  132. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +17 -17
  133. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  134. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  135. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  136. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  137. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  138. package/es/src/business/batch-input-group/index.vue.mjs +1 -1
  139. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  140. package/es/src/check-card/index.vue2.mjs +3 -3
  141. package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
  142. package/es/src/editable-table/form-item.vue.d.ts +4 -2
  143. package/es/src/editable-table/form-item.vue.mjs +2 -2
  144. package/es/src/editable-table/index.vue.d.ts +4 -2
  145. package/es/src/editable-table/index.vue.mjs +2 -2
  146. package/es/src/full-screen/index.vue.mjs +3 -3
  147. package/es/src/hooks/useFullScreen.mjs +5 -5
  148. package/es/src/mask/index.vue.mjs +10 -10
  149. package/es/src/mask/style/css.d.ts +0 -0
  150. package/es/src/mask/style/css.js +1 -0
  151. package/es/src/mask/style/index.d.ts +0 -0
  152. package/es/src/mask/style/index.js +1 -0
  153. package/es/src/path-map.mjs +3 -1
  154. package/es/src/portal/index.vue.mjs +2 -2
  155. package/es/src/scroll-bar/index.vue.mjs +3 -3
  156. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  157. package/es/src/scroll-view/index.vue.d.ts +5 -5
  158. package/es/src/scroll-view/index.vue.mjs +9 -9
  159. package/es/src/tests/wrapper.d.ts +4 -4
  160. package/es/src/text/group.vue.mjs +2 -2
  161. package/es/src/text/index.vue.mjs +4 -4
  162. package/es/src/text/style/css.d.ts +0 -0
  163. package/es/src/text/style/css.js +2 -0
  164. package/es/src/text/style/index.d.ts +0 -0
  165. package/es/src/text/style/index.js +2 -0
  166. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  167. package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
  168. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  169. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  170. package/lib/src/ap-field/index.js +1 -1
  171. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  172. package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
  173. package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  174. package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
  175. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
  176. package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
  177. package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
  178. package/lib/src/ap-grid/index.vue.d.ts +4 -2
  179. package/lib/src/ap-grid/index.vue.js +1 -1
  180. package/lib/src/ap-grid/interface.d.ts +10 -0
  181. package/lib/src/ap-grid/utils/table.js +1 -1
  182. package/lib/src/ap-list/index.vue.d.ts +4 -2
  183. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  184. package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
  185. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  186. package/lib/src/ap-table/constants.js +1 -1
  187. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  188. package/lib/src/ap-table/utils.js +1 -1
  189. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  190. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  191. package/lib/src/ap-upload/components/Picture.vue.d.ts +7 -2
  192. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  193. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  194. package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
  195. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -14
  196. package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
  197. package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
  198. package/lib/src/business/ap-ladder/components/SimpleMode.vue.js +1 -0
  199. package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -0
  200. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
  201. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.js +1 -0
  202. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -0
  203. package/lib/src/business/ap-ladder/index.d.ts +4 -35
  204. package/lib/src/business/ap-ladder/interface.d.ts +26 -0
  205. package/lib/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
  206. package/lib/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
  207. package/lib/src/business/ap-ladder/utils.d.ts +2 -0
  208. package/lib/src/business/ap-ladder/utils.js +1 -0
  209. package/lib/src/business/ap-select-layout/index.d.ts +4 -2
  210. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  211. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
  212. package/lib/src/business/ap-table-modal/interface.d.ts +1 -1
  213. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
  214. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  215. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  216. package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
  217. package/lib/src/editable-table/form-item.vue.d.ts +4 -2
  218. package/lib/src/editable-table/index.vue.d.ts +4 -2
  219. package/lib/src/mask/style/css.cjs +1 -0
  220. package/lib/src/mask/style/css.d.ts +0 -0
  221. package/lib/src/mask/style/index.cjs +1 -0
  222. package/lib/src/mask/style/index.d.ts +0 -0
  223. package/lib/src/path-map.js +1 -1
  224. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  225. package/lib/src/tests/wrapper.d.ts +4 -4
  226. package/lib/src/text/style/css.cjs +2 -0
  227. package/lib/src/text/style/css.d.ts +0 -0
  228. package/lib/src/text/style/index.cjs +2 -0
  229. package/lib/src/text/style/index.d.ts +0 -0
  230. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
  231. package/package.json +3 -3
  232. package/theme/ap-ladder/ap-ladder.css +28 -1
  233. package/theme/ap-ladder/ap-ladder.less +32 -1
  234. package/theme/index.css +28 -1
  235. package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
  236. package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +0 -4
  237. package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +0 -35
  238. package/es/src/business/ap-ladder/useWatchEllipsis.mjs +0 -35
  239. package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
  240. package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +0 -1
  241. package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +0 -1
  242. package/lib/src/business/ap-ladder/useWatchEllipsis.js +0 -1
@@ -1,292 +1,90 @@
1
- import { defineComponent as Q, useSlots as U, ref as N, computed as h, unref as o, createElementBlock as r, openBlock as l, normalizeClass as a, createBlock as y, createCommentVNode as S, normalizeProps as E, mergeProps as C, createSlots as R, withCtx as c, Fragment as k, createElementVNode as m, normalizeStyle as p, toDisplayString as n, renderSlot as T, renderList as D, createTextVNode as X, isVNode as V, resolveDynamicComponent as b, createVNode as v } from "vue";
2
- import { Tooltip as j } from "@aplus-frontend/antdv";
1
+ import { defineComponent as g, useSlots as A, shallowRef as C, computed as o, openBlock as n, createElementBlock as B, normalizeClass as _, unref as e, createBlock as s, createSlots as p, withCtx as u, renderSlot as m, createCommentVNode as h } from "vue";
2
+ import { memoize as O } from "lodash-unified";
3
3
  import "../../config-provider/index.mjs";
4
- import { locales as Y } from "./interface.mjs";
5
- import "./HelpMessageIcon.vue.mjs";
6
- import { useWatchEllipsis as Z, ellipsisElementCls as A } from "./useWatchEllipsis.mjs";
7
- import { useNamespace as x } from "../../config-provider/hooks/use-namespace.mjs";
8
- import { useGlobalConfig as ee } from "../../config-provider/hooks/use-global-config.mjs";
9
- import M from "./HelpMessageIcon.vue2.mjs";
10
- const te = { key: 1 }, le = { key: 0 }, oe = { key: 1 }, re = { key: 0 }, ie = ["onClick"], ne = { key: 0 }, se = { key: 1 }, Se = /* @__PURE__ */ Q({
4
+ import "./components/SimpleMode.vue.mjs";
5
+ import "./components/ValueGroupMode.vue.mjs";
6
+ import { isNull as V, createMemoizeKey as w } from "./utils.mjs";
7
+ import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
8
+ import { useGlobalConfig as M } from "../../config-provider/hooks/use-global-config.mjs";
9
+ import $ from "./components/SimpleMode.vue2.mjs";
10
+ import z from "./components/ValueGroupMode.vue2.mjs";
11
+ const J = /* @__PURE__ */ g({
11
12
  name: "ApLadder",
12
13
  __name: "ApLadder",
13
14
  props: {
14
- major: { default: "" },
15
- minor: { default: "" },
15
+ major: {},
16
+ minor: {},
16
17
  majorColor: { default: "" },
17
- majorStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
18
+ majorStyles: { type: [Boolean, null, String, Object, Array] },
18
19
  minorColor: { default: "" },
19
- minorStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
20
- layout: { default: "vertical" },
20
+ minorStyles: { type: [Boolean, null, String, Object, Array] },
21
+ layout: { default: "horizontal" },
21
22
  tooltip: { type: Boolean, default: !0 },
22
23
  labelValues: { default: () => [] },
23
- labelAlign: { default: "right" },
24
- labelStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
25
- valueStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
26
- linkStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
27
- unitStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
28
- tooltipProps: { default: () => ({
29
- title: void 0,
30
- align: {},
31
- arrowPointAtCenter: !1,
32
- arrow: !0,
33
- autoAdjustOverflow: !0,
34
- color: "",
35
- destroyTooltipOnHide: !1,
36
- getPopupContainer: () => document.body,
37
- mouseEnterDelay: 0.1,
38
- mouseLeaveDelay: 0.1,
39
- overlayClassName: "",
40
- overlayStyle: {},
41
- overlayInnerStyle: {},
42
- placement: "top",
43
- trigger: "hover"
44
- }) },
45
- tooltipLabelStyles: { type: [Boolean, null, String, Object, Array], default: void 0 },
46
- tooltipValueStyles: { type: [Boolean, null, String, Object, Array], default: void 0 }
24
+ labelAlign: { default: "left" },
25
+ labelStyles: { type: [Boolean, null, String, Object, Array] },
26
+ valueStyles: { type: [Boolean, null, String, Object, Array] },
27
+ linkStyles: { type: [Boolean, null, String, Object, Array] },
28
+ unitStyles: { type: [Boolean, null, String, Object, Array] },
29
+ tooltipProps: { default: () => ({}) },
30
+ tooltipLabelStyles: { type: [Boolean, null, String, Object, Array] },
31
+ tooltipValueStyles: { type: [Boolean, null, String, Object, Array] }
47
32
  },
48
- setup(F) {
49
- const P = U(), i = F, { b: z, e: s, m: G } = x("ap-ladder"), W = ee("uiMode", "aplus"), g = N([]), w = N(), H = Z(w);
50
- function I(t) {
51
- var f;
52
- const u = (f = g.value) == null ? void 0 : f[t];
53
- return u ? getComputedStyle(u).color : void 0;
54
- }
55
- const q = h(() => i.labelValues.length === 0), J = h(() => i.labelValues.length > 0), B = h(() => i.majorColor ? {
56
- color: `${i.majorColor}`
57
- } : {}), $ = h(() => i.minorColor ? {
58
- color: `${i.minorColor}`
59
- } : {}), _ = (t) => t == null || typeof t == "string" && t.trim() === "", d = (t, u = {}) => {
60
- const e = {
61
- rawValue: u.rawValue,
62
- precision: u.precision === void 0 ? 2 : u.precision,
63
- thousand: u.thousand,
64
- thousandSeparator: u.thousandSeparator || ",",
65
- currency: u.currency,
66
- percent: u.percent
67
- };
68
- if (t === null || typeof t == "object" || typeof t == "function" || typeof t > "u")
69
- return "--";
70
- if (typeof t == "boolean")
71
- return t;
72
- if (_(t))
73
- return "--";
74
- if (e.rawValue)
75
- return t;
76
- if (typeof t == "number") {
77
- if (e.percent)
78
- return `${t.toFixed(e.precision)}%`;
79
- if (e.currency)
80
- return t.toLocaleString(Y[e.currency], {
81
- style: "currency",
82
- currency: e.currency
83
- });
84
- if (e.thousand) {
85
- const [f, L] = t.toFixed(e.precision).split(".");
86
- return `${f.replace(
87
- /(\d)(?=(\d{3})+(?!\d))/g,
88
- `$1${e.thousandSeparator}`
89
- )}.${L}`;
90
- }
91
- return t.toFixed(e.precision);
92
- }
93
- return t;
94
- }, O = h(() => P.title ? !0 : i.tooltip && o(H)), K = (t) => {
33
+ setup(y) {
34
+ const r = A(), l = y, { b: c, m: f } = L("ap-ladder"), d = M("uiMode", "aplus"), S = C(), b = o(() => l.labelValues.length === 0), v = o(() => l.labelValues.length > 0), k = o(() => l.labelAlign), a = O((t) => V(t) ? "" : typeof t == "number" ? t.toString() : typeof t == "string" ? t : "", w), i = o(() => !!r.title || l.tooltip), j = (t) => {
95
35
  t.link && window.open(t.link, "_blank"), typeof t.handleClickLink == "function" && t.handleClickLink();
96
36
  };
97
- return (t, u) => (l(), r("div", {
37
+ return (t, P) => (n(), B("div", {
98
38
  ref_key: "wrapperRef",
99
- ref: w,
100
- class: a([o(z)(), `${o(G)(o(W))}`])
39
+ ref: S,
40
+ class: _([e(c)(), `${e(f)(e(d))}`])
101
41
  }, [
102
- q.value ? (l(), y(o(j), E(C({ key: 0 }, { ...i.tooltipProps })), R({
103
- default: c(() => [
104
- !_(t.major) || !_(t.minor) ? (l(), r(k, { key: 0 }, [
105
- i.layout === "vertical" ? (l(), r(k, { key: 0 }, [
106
- m("div", {
107
- class: a([o(s)("major"), o(s)("ellipsis"), o(A)]),
108
- style: p([t.majorStyles, B.value])
109
- }, n(d(t.major)), 7),
110
- m("div", {
111
- class: a([o(s)("minor"), o(s)("ellipsis"), o(A)]),
112
- style: p([t.minorStyles, $.value])
113
- }, n(d(t.minor)), 7)
114
- ], 64)) : (l(), r("div", {
115
- key: 1,
116
- class: a([o(s)("ellipsis"), o(A)])
117
- }, [
118
- m("span", {
119
- class: a([o(s)("major")]),
120
- style: p([t.majorStyles, B.value])
121
- }, n(d(t.major)), 7),
122
- m("span", {
123
- class: a([o(s)("minor")]),
124
- style: p([t.minorStyles, $.value])
125
- }, n(d(t.minor)), 7)
126
- ], 2))
127
- ], 64)) : (l(), r("div", te, n("--")))
128
- ]),
129
- _: 2
130
- }, [
131
- O.value ? {
42
+ b.value ? (n(), s($, {
43
+ key: 0,
44
+ major: l.major,
45
+ minor: l.minor,
46
+ "major-styles": l.majorStyles,
47
+ "major-color": l.majorColor,
48
+ "minor-styles": l.minorStyles,
49
+ "minor-color": l.minorColor,
50
+ "tooltip-props": l.tooltipProps,
51
+ layout: l.layout,
52
+ tooltip: i.value,
53
+ "convert-value": e(a)
54
+ }, p({ _: 2 }, [
55
+ r.title ? {
132
56
  name: "title",
133
- fn: c(() => [
134
- P.title ? T(t.$slots, "title", { key: 0 }) : (l(), r(k, { key: 1 }, [
135
- i.tooltipProps.title ? (l(), r("div", le, n(i.tooltipProps.title), 1)) : (l(), r("div", oe, [
136
- m("div", null, n(d(t.major)), 1),
137
- m("div", null, n(d(t.minor)), 1)
138
- ]))
139
- ], 64))
57
+ fn: u(() => [
58
+ m(t.$slots, "title")
140
59
  ]),
141
60
  key: "0"
142
61
  } : void 0
143
- ]), 1040)) : S("", !0),
144
- J.value ? (l(), y(o(j), E(C({ key: 1 }, { ...i.tooltipProps })), R({
145
- default: c(() => [
146
- (l(!0), r(k, null, D(i.labelValues, (e, f) => (l(), r("div", {
147
- key: f,
148
- class: a([o(s)("cross-bar")])
149
- }, [
150
- m("div", {
151
- class: a([o(s)("ellipsis"), o(A)]),
152
- style: p({ color: I(f) })
153
- }, [
154
- m("span", {
155
- class: a(o(s)("label")),
156
- style: p([
157
- t.labelStyles,
158
- e.labelStyles,
159
- e.labelColor ? { color: e.labelColor } : void 0,
160
- { textAlign: e.labelAlign || t.labelAlign }
161
- ])
162
- }, [
163
- X(n(e.label), 1),
164
- e.label ? (l(), r("span", re, ":")) : S("", !0)
165
- ], 6),
166
- V(e.value) ? (l(), y(b(e.value), {
167
- key: 0,
168
- ref_for: !0,
169
- ref_key: "valueRefs",
170
- ref: g,
171
- style: { display: "inline-block" }
172
- }, null, 512)) : typeof e.value == "function" ? (l(), y(b(e.value()), {
173
- key: 1,
174
- ref_for: !0,
175
- ref_key: "valueRefs",
176
- ref: g,
177
- style: { display: "inline-block" }
178
- }, null, 512)) : (l(), r(k, { key: 2 }, [
179
- _(e.link) ? (l(), r("span", {
180
- key: 1,
181
- ref_for: !0,
182
- ref_key: "valueRefs",
183
- ref: g,
184
- class: a(o(s)("value")),
185
- style: p([
186
- t.valueStyles,
187
- e.valueStyles,
188
- e.valueColor ? { color: e.valueColor } : void 0
189
- ])
190
- }, n(d(e.value, { ...e })), 7)) : (l(), r("span", {
191
- key: 0,
192
- ref_for: !0,
193
- ref_key: "valueRefs",
194
- ref: g,
195
- class: a(o(s)("link")),
196
- style: p([
197
- t.linkStyles,
198
- e.linkStyles,
199
- e.linkColor ? { color: e.linkColor } : void 0
200
- ]),
201
- onClick: (L) => K(e)
202
- }, n(d(e.value, { ...e })), 15, ie))
203
- ], 64)),
204
- e.unit ? (l(), r("span", {
205
- key: 3,
206
- class: a(o(s)("unit")),
207
- style: p([
208
- t.unitStyles,
209
- e.unitStyles,
210
- e.unitColor ? { color: e.unitColor } : void 0
211
- ])
212
- }, n(e.unit), 7)) : S("", !0)
213
- ], 6),
214
- e.helpMessage ? (l(), r("div", {
215
- key: 0,
216
- class: a([o(s)("help-message")])
217
- }, [
218
- V(e.helpMessage) ? (l(), y(o(j), C({
219
- key: 0,
220
- ref_for: !0
221
- }, { ...e.helpMessageTooltipProps }), {
222
- title: c(() => [
223
- (l(), y(b(e.helpMessage)))
224
- ]),
225
- default: c(() => [
226
- v(M, { lv: e }, null, 8, ["lv"])
227
- ]),
228
- _: 2
229
- }, 1040)) : typeof e.helpMessage == "function" ? (l(), y(o(j), C({
230
- key: 1,
231
- ref_for: !0
232
- }, { ...e.helpMessageTooltipProps }), {
233
- title: c(() => [
234
- (l(), y(b(e.helpMessage())))
235
- ]),
236
- default: c(() => [
237
- v(M, { lv: e }, null, 8, ["lv"])
238
- ]),
239
- _: 2
240
- }, 1040)) : (l(), y(o(j), C({
241
- key: 2,
242
- ref_for: !0
243
- }, { ...e.helpMessageTooltipProps }, {
244
- placement: "bottom",
245
- title: e.helpMessage
246
- }), {
247
- default: c(() => [
248
- v(M, { lv: e }, null, 8, ["lv"])
249
- ]),
250
- _: 2
251
- }, 1040, ["title"]))
252
- ], 2)) : S("", !0)
253
- ], 2))), 128))
254
- ]),
255
- _: 2
256
- }, [
257
- O.value ? {
62
+ ]), 1032, ["major", "minor", "major-styles", "major-color", "minor-styles", "minor-color", "tooltip-props", "layout", "tooltip", "convert-value"])) : v.value ? (n(), s(z, {
63
+ key: 1,
64
+ "label-values": l.labelValues,
65
+ "label-align": k.value,
66
+ "label-styles": l.labelStyles,
67
+ "value-styles": l.valueStyles,
68
+ "link-styles": l.linkStyles,
69
+ "unit-styles": l.unitStyles,
70
+ "tooltip-label-styles": l.tooltipLabelStyles,
71
+ "tooltip-value-styles": l.tooltipValueStyles,
72
+ "tooltip-props": l.tooltipProps,
73
+ tooltip: i.value,
74
+ "convert-value": e(a),
75
+ onHandleClick: j
76
+ }, p({ _: 2 }, [
77
+ r.title ? {
258
78
  name: "title",
259
- fn: c(() => [
260
- P.title ? T(t.$slots, "title", { key: 0 }) : (l(), r(k, { key: 1 }, [
261
- i.tooltipProps.title ? (l(), r("div", ne, n(i.tooltipProps.title), 1)) : (l(), r("div", se, [
262
- (l(!0), r(k, null, D(i.labelValues, (e, f) => (l(), r("div", {
263
- key: f,
264
- style: { "word-break": "break-all" }
265
- }, [
266
- e.label ? (l(), r("span", {
267
- key: 0,
268
- style: p([t.tooltipLabelStyles, e.tooltipLabelStyles])
269
- }, n(e.label) + ":", 5)) : S("", !0),
270
- V(e.value) ? (l(), y(b(e.value), {
271
- key: 1,
272
- style: { display: "inline-block" }
273
- })) : typeof e.value == "function" ? (l(), y(b(e.value()), {
274
- key: 2,
275
- style: { display: "inline-block" }
276
- })) : (l(), r("span", {
277
- key: 3,
278
- style: p([t.tooltipValueStyles, e.tooltipValueStyles])
279
- }, n(d(e.value, { ...e })), 5))
280
- ]))), 128))
281
- ]))
282
- ], 64))
79
+ fn: u(() => [
80
+ m(t.$slots, "title")
283
81
  ]),
284
82
  key: "0"
285
83
  } : void 0
286
- ]), 1040)) : S("", !0)
84
+ ]), 1032, ["label-values", "label-align", "label-styles", "value-styles", "link-styles", "unit-styles", "tooltip-label-styles", "tooltip-value-styles", "tooltip-props", "tooltip", "convert-value"])) : h("", !0)
287
85
  ], 2));
288
86
  }
289
87
  });
290
88
  export {
291
- Se as default
89
+ J as default
292
90
  };
@@ -0,0 +1,110 @@
1
+ import { StyleValue, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ title?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
12
+ major: {
13
+ type: (NumberConstructor | ObjectConstructor | StringConstructor | FunctionConstructor)[];
14
+ default: null;
15
+ };
16
+ minor: {
17
+ type: (NumberConstructor | ObjectConstructor | StringConstructor | FunctionConstructor)[];
18
+ default: null;
19
+ };
20
+ majorStyles: {
21
+ type: PropType<StyleValue>;
22
+ default: () => {};
23
+ };
24
+ majorColorStyles: {
25
+ type: PropType<StyleValue>;
26
+ default: () => {};
27
+ };
28
+ minorStyles: {
29
+ type: PropType<StyleValue>;
30
+ default: () => {};
31
+ };
32
+ minorColorStyles: {
33
+ type: PropType<StyleValue>;
34
+ default: () => {};
35
+ };
36
+ tooltipProps: {
37
+ type: ObjectConstructor;
38
+ default: () => {};
39
+ };
40
+ layout: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ tooltip: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ convertValue: {
49
+ type: FunctionConstructor;
50
+ required: true;
51
+ };
52
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
53
+ major: {
54
+ type: (NumberConstructor | ObjectConstructor | StringConstructor | FunctionConstructor)[];
55
+ default: null;
56
+ };
57
+ minor: {
58
+ type: (NumberConstructor | ObjectConstructor | StringConstructor | FunctionConstructor)[];
59
+ default: null;
60
+ };
61
+ majorStyles: {
62
+ type: PropType<StyleValue>;
63
+ default: () => {};
64
+ };
65
+ majorColorStyles: {
66
+ type: PropType<StyleValue>;
67
+ default: () => {};
68
+ };
69
+ minorStyles: {
70
+ type: PropType<StyleValue>;
71
+ default: () => {};
72
+ };
73
+ minorColorStyles: {
74
+ type: PropType<StyleValue>;
75
+ default: () => {};
76
+ };
77
+ tooltipProps: {
78
+ type: ObjectConstructor;
79
+ default: () => {};
80
+ };
81
+ layout: {
82
+ type: StringConstructor;
83
+ default: string;
84
+ };
85
+ tooltip: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ convertValue: {
90
+ type: FunctionConstructor;
91
+ required: true;
92
+ };
93
+ }>> & Readonly<{}>, {
94
+ layout: string;
95
+ tooltip: boolean;
96
+ major: string | number | Function | Record<string, any>;
97
+ minor: string | number | Function | Record<string, any>;
98
+ tooltipProps: Record<string, any>;
99
+ majorStyles: StyleValue;
100
+ majorColorStyles: StyleValue;
101
+ minorStyles: StyleValue;
102
+ minorColorStyles: StyleValue;
103
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
104
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
105
+ export default _default;
106
+ type __VLS_WithTemplateSlots<T, S> = T & {
107
+ new (): {
108
+ $slots: S;
109
+ };
110
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./SimpleMode.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,119 @@
1
+ import { defineComponent as j, openBlock as i, createBlock as S, unref as t, normalizeProps as v, guardReactiveProps as b, createSlots as C, withCtx as c, createElementBlock as r, Fragment as f, createElementVNode as a, normalizeClass as o, normalizeStyle as m, toDisplayString as n, createCommentVNode as u, renderSlot as k } from "vue";
2
+ import { Tooltip as V } from "@aplus-frontend/antdv";
3
+ import "../../../config-provider/index.mjs";
4
+ import { isNull as s } from "../utils.mjs";
5
+ import { useNamespace as O } from "../../../config-provider/hooks/use-namespace.mjs";
6
+ const y = "ellipsis-element", h = /* @__PURE__ */ j({
7
+ name: "ApLadderSimpleMode",
8
+ __name: "SimpleMode",
9
+ props: {
10
+ major: {
11
+ type: [String, Number, Function, Object],
12
+ default: null
13
+ },
14
+ minor: {
15
+ type: [String, Number, Function, Object],
16
+ default: null
17
+ },
18
+ majorStyles: {
19
+ type: Object,
20
+ default: () => ({})
21
+ },
22
+ majorColorStyles: {
23
+ type: Object,
24
+ default: () => ({})
25
+ },
26
+ minorStyles: {
27
+ type: Object,
28
+ default: () => ({})
29
+ },
30
+ minorColorStyles: {
31
+ type: Object,
32
+ default: () => ({})
33
+ },
34
+ tooltipProps: {
35
+ type: Object,
36
+ default: () => ({})
37
+ },
38
+ layout: {
39
+ type: String,
40
+ default: "horizontal"
41
+ },
42
+ tooltip: {
43
+ type: Boolean,
44
+ default: !1
45
+ },
46
+ convertValue: {
47
+ type: Function,
48
+ required: !0
49
+ }
50
+ },
51
+ setup(e) {
52
+ const { e: l } = O("ap-ladder");
53
+ return (d, g) => (i(), S(t(V), v(b(e.tooltipProps)), C({
54
+ default: c(() => [
55
+ !t(s)(e.major) || !t(s)(e.minor) ? (i(), r(f, { key: 0 }, [
56
+ e.layout === "vertical" ? (i(), r(f, { key: 0 }, [
57
+ a("div", {
58
+ class: o([t(l)("major"), t(l)("ellipsis"), y]),
59
+ style: m([e.majorStyles, e.majorColorStyles])
60
+ }, n(e.convertValue(e.major)), 7),
61
+ a("div", {
62
+ class: o([t(l)("minor"), t(l)("ellipsis"), y]),
63
+ style: m([e.minorStyles, e.minorColorStyles])
64
+ }, n(e.convertValue(e.minor)), 7)
65
+ ], 64)) : (i(), r("div", {
66
+ key: 1,
67
+ class: o([t(l)("ellipsis"), y])
68
+ }, [
69
+ a("span", {
70
+ class: o([t(l)("major")]),
71
+ style: m([e.majorStyles, e.majorColorStyles])
72
+ }, n(e.convertValue(e.major)), 7),
73
+ a("span", {
74
+ class: o([t(l)("minor")]),
75
+ style: m([e.minorStyles, e.minorColorStyles])
76
+ }, n(e.convertValue(e.minor)), 7)
77
+ ], 2))
78
+ ], 64)) : u("", !0)
79
+ ]),
80
+ _: 2
81
+ }, [
82
+ d.$slots.title ? {
83
+ name: "title",
84
+ fn: c(() => [
85
+ k(d.$slots, "title")
86
+ ]),
87
+ key: "0"
88
+ } : e.tooltip ? {
89
+ name: "title",
90
+ fn: c(() => [
91
+ a("div", {
92
+ class: o(t(l)("tooltip"))
93
+ }, [
94
+ t(s)(e.major) ? u("", !0) : (i(), r("div", {
95
+ key: 0,
96
+ class: o(t(l)("tooltip-item"))
97
+ }, [
98
+ a("span", {
99
+ class: o(t(l)("tooltip-label"))
100
+ }, n(e.convertValue(e.major)), 3)
101
+ ], 2)),
102
+ t(s)(e.minor) ? u("", !0) : (i(), r("div", {
103
+ key: 1,
104
+ class: o(t(l)("tooltip-item"))
105
+ }, [
106
+ a("span", {
107
+ class: o(t(l)("tooltip-label"))
108
+ }, n(e.convertValue(e.minor)), 3)
109
+ ], 2))
110
+ ], 2)
111
+ ]),
112
+ key: "1"
113
+ } : void 0
114
+ ]), 1040));
115
+ }
116
+ });
117
+ export {
118
+ h as default
119
+ };