@aplus-frontend/ui 0.5.17 → 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 (235) 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 +4 -4
  57. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
  58. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
  59. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  60. package/es/src/ap-list/index.vue.d.ts +4 -2
  61. package/es/src/ap-list/index.vue.mjs +4 -4
  62. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  63. package/es/src/ap-table/ap-table.vue.d.ts +4 -2
  64. package/es/src/ap-table/ap-table.vue2.mjs +26 -26
  65. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
  66. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  67. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
  68. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  69. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  70. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  71. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  72. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  73. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  74. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  75. package/es/src/ap-table/constants.mjs +40 -40
  76. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  77. package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
  78. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  79. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  80. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  81. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  82. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  83. package/es/src/ap-upload/components/Picture.vue.d.ts +7 -2
  84. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  85. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  86. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  87. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  88. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
  89. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  90. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  91. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  92. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  93. package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
  94. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  95. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  96. package/es/src/business/ap-expand-alert/index.d.ts +6 -4
  97. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
  98. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
  99. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
  100. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
  101. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
  102. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
  103. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  104. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  105. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -14
  106. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +64 -266
  107. package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
  108. package/es/src/business/ap-ladder/components/SimpleMode.vue.mjs +4 -0
  109. package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +119 -0
  110. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
  111. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.mjs +4 -0
  112. package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +213 -0
  113. package/es/src/business/ap-ladder/index.d.ts +4 -35
  114. package/es/src/business/ap-ladder/interface.d.ts +26 -0
  115. package/es/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
  116. package/es/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
  117. package/es/src/business/ap-ladder/utils.d.ts +2 -0
  118. package/es/src/business/ap-ladder/utils.mjs +5 -0
  119. package/es/src/business/ap-select-layout/index.d.ts +4 -2
  120. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  121. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  122. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  123. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  124. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  125. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +1 -1
  126. package/es/src/business/ap-table-modal/interface.d.ts +1 -1
  127. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +3 -3
  128. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +20 -21
  129. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +17 -17
  130. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  131. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  132. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  133. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  134. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  135. package/es/src/business/batch-input-group/index.vue.mjs +1 -1
  136. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  137. package/es/src/check-card/index.vue2.mjs +3 -3
  138. package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
  139. package/es/src/editable-table/form-item.vue.d.ts +4 -2
  140. package/es/src/editable-table/form-item.vue.mjs +2 -2
  141. package/es/src/editable-table/index.vue.d.ts +4 -2
  142. package/es/src/editable-table/index.vue.mjs +2 -2
  143. package/es/src/full-screen/index.vue.mjs +3 -3
  144. package/es/src/hooks/useFullScreen.mjs +5 -5
  145. package/es/src/mask/index.vue.mjs +10 -10
  146. package/es/src/mask/style/css.d.ts +0 -0
  147. package/es/src/mask/style/css.js +1 -0
  148. package/es/src/mask/style/index.d.ts +0 -0
  149. package/es/src/mask/style/index.js +1 -0
  150. package/es/src/path-map.mjs +3 -1
  151. package/es/src/portal/index.vue.mjs +2 -2
  152. package/es/src/scroll-bar/index.vue.mjs +3 -3
  153. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  154. package/es/src/scroll-view/index.vue.d.ts +5 -5
  155. package/es/src/scroll-view/index.vue.mjs +9 -9
  156. package/es/src/tests/wrapper.d.ts +4 -4
  157. package/es/src/text/group.vue.mjs +2 -2
  158. package/es/src/text/index.vue.mjs +4 -4
  159. package/es/src/text/style/css.d.ts +0 -0
  160. package/es/src/text/style/css.js +2 -0
  161. package/es/src/text/style/index.d.ts +0 -0
  162. package/es/src/text/style/index.js +2 -0
  163. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  164. package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
  165. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  166. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  167. package/lib/src/ap-field/index.js +1 -1
  168. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  169. package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
  170. package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  171. package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
  172. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
  173. package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
  174. package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
  175. package/lib/src/ap-grid/index.vue.d.ts +4 -2
  176. package/lib/src/ap-list/index.vue.d.ts +4 -2
  177. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  178. package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
  179. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  180. package/lib/src/ap-table/constants.js +1 -1
  181. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  182. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  183. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  184. package/lib/src/ap-upload/components/Picture.vue.d.ts +7 -2
  185. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  186. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  187. package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
  188. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -14
  189. package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
  190. package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
  191. package/lib/src/business/ap-ladder/components/SimpleMode.vue.js +1 -0
  192. package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -0
  193. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
  194. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.js +1 -0
  195. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -0
  196. package/lib/src/business/ap-ladder/index.d.ts +4 -35
  197. package/lib/src/business/ap-ladder/interface.d.ts +26 -0
  198. package/lib/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
  199. package/lib/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
  200. package/lib/src/business/ap-ladder/utils.d.ts +2 -0
  201. package/lib/src/business/ap-ladder/utils.js +1 -0
  202. package/lib/src/business/ap-select-layout/index.d.ts +4 -2
  203. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  204. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
  205. package/lib/src/business/ap-table-modal/interface.d.ts +1 -1
  206. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
  207. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  208. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  209. package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
  210. package/lib/src/editable-table/form-item.vue.d.ts +4 -2
  211. package/lib/src/editable-table/index.vue.d.ts +4 -2
  212. package/lib/src/mask/style/css.cjs +1 -0
  213. package/lib/src/mask/style/css.d.ts +0 -0
  214. package/lib/src/mask/style/index.cjs +1 -0
  215. package/lib/src/mask/style/index.d.ts +0 -0
  216. package/lib/src/path-map.js +1 -1
  217. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  218. package/lib/src/tests/wrapper.d.ts +4 -4
  219. package/lib/src/text/style/css.cjs +2 -0
  220. package/lib/src/text/style/css.d.ts +0 -0
  221. package/lib/src/text/style/index.cjs +2 -0
  222. package/lib/src/text/style/index.d.ts +0 -0
  223. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
  224. package/package.json +1 -1
  225. package/theme/ap-ladder/ap-ladder.css +28 -1
  226. package/theme/ap-ladder/ap-ladder.less +32 -1
  227. package/theme/index.css +28 -1
  228. package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
  229. package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +0 -4
  230. package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +0 -35
  231. package/es/src/business/ap-ladder/useWatchEllipsis.mjs +0 -35
  232. package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
  233. package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +0 -1
  234. package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +0 -1
  235. package/lib/src/business/ap-ladder/useWatchEllipsis.js +0 -1
@@ -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
+ };
@@ -0,0 +1,118 @@
1
+ import { StyleValue, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { ApLadderLabelValue } from '../interface';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ title?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
13
+ labelValues: {
14
+ type: () => ApLadderLabelValue[];
15
+ default: () => never[];
16
+ };
17
+ labelAlign: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ labelStyles: {
22
+ type: PropType<StyleValue>;
23
+ default: () => {};
24
+ };
25
+ valueStyles: {
26
+ type: PropType<StyleValue>;
27
+ default: () => {};
28
+ };
29
+ linkStyles: {
30
+ type: PropType<StyleValue>;
31
+ default: () => {};
32
+ };
33
+ unitStyles: {
34
+ type: PropType<StyleValue>;
35
+ default: () => {};
36
+ };
37
+ tooltipLabelStyles: {
38
+ type: PropType<StyleValue>;
39
+ default: () => {};
40
+ };
41
+ tooltipValueStyles: {
42
+ type: PropType<StyleValue>;
43
+ default: () => {};
44
+ };
45
+ tooltipProps: {
46
+ type: ObjectConstructor;
47
+ default: () => {};
48
+ };
49
+ tooltip: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
54
+ handleClick: (...args: any[]) => void;
55
+ "update:valueRefs": (...args: any[]) => void;
56
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
57
+ labelValues: {
58
+ type: () => ApLadderLabelValue[];
59
+ default: () => never[];
60
+ };
61
+ labelAlign: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ labelStyles: {
66
+ type: PropType<StyleValue>;
67
+ default: () => {};
68
+ };
69
+ valueStyles: {
70
+ type: PropType<StyleValue>;
71
+ default: () => {};
72
+ };
73
+ linkStyles: {
74
+ type: PropType<StyleValue>;
75
+ default: () => {};
76
+ };
77
+ unitStyles: {
78
+ type: PropType<StyleValue>;
79
+ default: () => {};
80
+ };
81
+ tooltipLabelStyles: {
82
+ type: PropType<StyleValue>;
83
+ default: () => {};
84
+ };
85
+ tooltipValueStyles: {
86
+ type: PropType<StyleValue>;
87
+ default: () => {};
88
+ };
89
+ tooltipProps: {
90
+ type: ObjectConstructor;
91
+ default: () => {};
92
+ };
93
+ tooltip: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ }>> & Readonly<{
98
+ onHandleClick?: ((...args: any[]) => any) | undefined;
99
+ "onUpdate:valueRefs"?: ((...args: any[]) => any) | undefined;
100
+ }>, {
101
+ tooltip: boolean;
102
+ labelAlign: string;
103
+ tooltipProps: Record<string, any>;
104
+ labelValues: ApLadderLabelValue[];
105
+ labelStyles: StyleValue;
106
+ valueStyles: StyleValue;
107
+ linkStyles: StyleValue;
108
+ unitStyles: StyleValue;
109
+ tooltipLabelStyles: StyleValue;
110
+ tooltipValueStyles: StyleValue;
111
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
112
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
113
+ export default _default;
114
+ type __VLS_WithTemplateSlots<T, S> = T & {
115
+ new (): {
116
+ $slots: S;
117
+ };
118
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ValueGroupMode.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,213 @@
1
+ import { defineComponent as w, ref as x, isVNode as g, h as C, onMounted as A, openBlock as r, createBlock as F, unref as l, normalizeProps as R, guardReactiveProps as B, createSlots as M, withCtx as k, createElementVNode as y, normalizeClass as c, createElementBlock as n, Fragment as p, renderList as O, normalizeStyle as a, createTextVNode as $, toDisplayString as d, createCommentVNode as f, createVNode as z, withModifiers as E, renderSlot as G } from "vue";
2
+ import { Tooltip as T } from "@aplus-frontend/antdv";
3
+ import "../../../config-provider/index.mjs";
4
+ import { locales as b } from "../interface.mjs";
5
+ import { isNull as D } from "../utils.mjs";
6
+ import { useNamespace as q } from "../../../config-provider/hooks/use-namespace.mjs";
7
+ const H = { key: 0 }, I = { key: 0 }, J = ["href", "onClick"], K = { key: 0 }, _ = /* @__PURE__ */ w({
8
+ name: "ApLadderValueGroupMode",
9
+ __name: "ValueGroupMode",
10
+ props: {
11
+ labelValues: {
12
+ type: Array,
13
+ default: () => []
14
+ },
15
+ labelAlign: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ labelStyles: {
20
+ type: Object,
21
+ default: () => ({})
22
+ },
23
+ valueStyles: {
24
+ type: Object,
25
+ default: () => ({})
26
+ },
27
+ linkStyles: {
28
+ type: Object,
29
+ default: () => ({})
30
+ },
31
+ unitStyles: {
32
+ type: Object,
33
+ default: () => ({})
34
+ },
35
+ tooltipLabelStyles: {
36
+ type: Object,
37
+ default: () => ({})
38
+ },
39
+ tooltipValueStyles: {
40
+ type: Object,
41
+ default: () => ({})
42
+ },
43
+ tooltipProps: {
44
+ type: Object,
45
+ default: () => ({})
46
+ },
47
+ tooltip: {
48
+ type: Boolean,
49
+ default: !1
50
+ }
51
+ },
52
+ emits: ["update:valueRefs", "handleClick"],
53
+ setup(i, { emit: j }) {
54
+ const v = j, { e: s } = q("ap-ladder"), S = x([]), N = (t) => g(t) || typeof t == "function", L = (t) => {
55
+ const { value: o, style: e, ref: u } = t;
56
+ return g(o) ? C(o, {
57
+ ref: u,
58
+ style: {
59
+ ...e,
60
+ display: "inline-block"
61
+ }
62
+ }) : typeof o == "function" ? C(o(), {
63
+ ref: u,
64
+ style: {
65
+ ...e,
66
+ display: "inline-block"
67
+ }
68
+ }) : null;
69
+ }, m = (t, o = {}) => {
70
+ const e = {
71
+ rawValue: o.rawValue,
72
+ precision: o.precision === void 0 ? 2 : o.precision,
73
+ thousand: o.thousand,
74
+ thousandSeparator: o.thousandSeparator || ",",
75
+ currency: o.currency,
76
+ percent: o.percent
77
+ };
78
+ if (t === null || typeof t == "object" || typeof t == "function" || typeof t > "u")
79
+ return "--";
80
+ if (typeof t == "boolean")
81
+ return t;
82
+ if (D(t))
83
+ return "--";
84
+ if (e.rawValue)
85
+ return t;
86
+ if (typeof t == "number") {
87
+ if (e.percent)
88
+ return `${t.toFixed(e.precision)}%`;
89
+ if (e.currency)
90
+ return t.toLocaleString(b[e.currency], {
91
+ style: "currency",
92
+ currency: e.currency
93
+ });
94
+ if (e.thousand) {
95
+ const [u, h] = t.toFixed(e.precision).split(".");
96
+ return `${u.replace(
97
+ /(\d)(?=(\d{3})+(?!\d))/g,
98
+ `$1${e.thousandSeparator}`
99
+ )}.${h}`;
100
+ }
101
+ return t.toFixed(e.precision);
102
+ }
103
+ return t;
104
+ }, P = (t) => {
105
+ v("handleClick", t);
106
+ };
107
+ return A(() => {
108
+ S.value.length > 0 && v("update:valueRefs", S.value);
109
+ }), (t, o) => (r(), F(l(T), R(B(i.tooltipProps)), M({
110
+ default: k(() => [
111
+ y("div", {
112
+ class: c(l(s)("value-group"))
113
+ }, [
114
+ (r(!0), n(p, null, O(i.labelValues, (e, u) => (r(), n("div", {
115
+ key: u,
116
+ class: c(l(s)("value-group-item"))
117
+ }, [
118
+ e.label ? (r(), n("div", {
119
+ key: 0,
120
+ class: c([
121
+ l(s)("value-group-label"),
122
+ i.labelAlign && `label-align-${i.labelAlign}`
123
+ ]),
124
+ style: a(e.labelStyles)
125
+ }, [
126
+ $(d(e.label), 1),
127
+ e.label ? (r(), n("span", H, ":")) : f("", !0)
128
+ ], 6)) : f("", !0),
129
+ y("div", {
130
+ class: c(l(s)("value-group-value"))
131
+ }, [
132
+ N(e.value) ? (r(), n("div", I, [
133
+ z(L, {
134
+ value: e.value,
135
+ style: a(
136
+ (e.valueColor, e.valueStyles)
137
+ )
138
+ }, null, 8, ["value", "style"])
139
+ ])) : (r(), n(p, { key: 1 }, [
140
+ e.link ? (r(), n("a", {
141
+ key: 0,
142
+ href: e.link,
143
+ target: "_blank",
144
+ class: c(l(s)("value-group-link")),
145
+ style: a([
146
+ i.linkStyles,
147
+ e.linkStyles,
148
+ e.linkColor ? { color: e.linkColor } : void 0
149
+ ]),
150
+ onClick: E((h) => P(e), ["prevent"])
151
+ }, d(m(e.value, { ...e })), 15, J)) : (r(), n(p, { key: 1 }, [
152
+ y("span", {
153
+ style: a([
154
+ i.valueStyles,
155
+ e.valueStyles,
156
+ e.valueColor ? { color: e.valueColor } : void 0
157
+ ])
158
+ }, d(m(e.value, { ...e })), 5),
159
+ e.unit ? (r(), n("span", {
160
+ key: 0,
161
+ class: c(l(s)("value-group-unit")),
162
+ style: a([
163
+ i.unitStyles,
164
+ e.unitStyles,
165
+ e.unitColor ? { color: e.unitColor } : void 0
166
+ ])
167
+ }, d(e.unit), 7)) : f("", !0)
168
+ ], 64))
169
+ ], 64))
170
+ ], 2)
171
+ ], 2))), 128))
172
+ ], 2)
173
+ ]),
174
+ _: 2
175
+ }, [
176
+ t.$slots.title ? {
177
+ name: "title",
178
+ fn: k(() => [
179
+ G(t.$slots, "title")
180
+ ]),
181
+ key: "0"
182
+ } : i.tooltip ? {
183
+ name: "title",
184
+ fn: k(() => [
185
+ y("div", {
186
+ class: c(l(s)("tooltip"))
187
+ }, [
188
+ (r(!0), n(p, null, O(i.labelValues, (e, u) => (r(), n("div", {
189
+ key: u,
190
+ class: c(l(s)("tooltip-item"))
191
+ }, [
192
+ y("span", {
193
+ class: c(l(s)("tooltip-label")),
194
+ style: a(i.tooltipLabelStyles)
195
+ }, d(e.label), 7),
196
+ y("span", {
197
+ class: c(l(s)("tooltip-value")),
198
+ style: a(i.tooltipValueStyles)
199
+ }, [
200
+ $(d(m(e.value)) + " ", 1),
201
+ e.unit ? (r(), n("span", K, d(e.unit), 1)) : f("", !0)
202
+ ], 6)
203
+ ], 2))), 128))
204
+ ], 2)
205
+ ]),
206
+ key: "1"
207
+ } : void 0
208
+ ]), 1040));
209
+ }
210
+ });
211
+ export {
212
+ _ as default
213
+ };
@@ -1,4 +1,4 @@
1
- import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, StyleValue, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
1
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
2
  import { ApLadderProps, ApLadderLabelValue, ApLadderSlots } from './interface';
3
3
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
4
4
  import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
@@ -11,8 +11,6 @@ declare const ApLadder: {
11
11
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
12
12
  layout: "vertical" | "horizontal";
13
13
  tooltip: boolean;
14
- major: string;
15
- minor: string;
16
14
  labelAlign: "left" | "right";
17
15
  tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
18
16
  title: VueTypeValidableDef<any>;
@@ -89,20 +87,11 @@ declare const ApLadder: {
89
87
  default: boolean;
90
88
  };
91
89
  }>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
90
+ labelValues: Array< ApLadderLabelValue>;
92
91
  majorColor: string;
93
- majorStyles: string | false | CSSProperties | StyleValue[] | null;
94
92
  minorColor: string;
95
- minorStyles: string | false | CSSProperties | StyleValue[] | null;
96
- labelValues: Array< ApLadderLabelValue>;
97
- labelStyles: string | false | CSSProperties | StyleValue[] | null;
98
- valueStyles: string | false | CSSProperties | StyleValue[] | null;
99
- linkStyles: string | false | CSSProperties | StyleValue[] | null;
100
- unitStyles: string | false | CSSProperties | StyleValue[] | null;
101
- tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
102
- tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
103
93
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
104
94
  wrapperRef: HTMLDivElement;
105
- valueRefs: HTMLSpanElement;
106
95
  }, HTMLDivElement, ComponentProvideOptions, {
107
96
  P: {};
108
97
  B: {};
@@ -113,8 +102,6 @@ declare const ApLadder: {
113
102
  }, Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, {
114
103
  layout: "vertical" | "horizontal";
115
104
  tooltip: boolean;
116
- major: string;
117
- minor: string;
118
105
  labelAlign: "left" | "right";
119
106
  tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
120
107
  title: VueTypeValidableDef<any>;
@@ -191,17 +178,9 @@ declare const ApLadder: {
191
178
  default: boolean;
192
179
  };
193
180
  }>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
181
+ labelValues: Array< ApLadderLabelValue>;
194
182
  majorColor: string;
195
- majorStyles: string | false | CSSProperties | StyleValue[] | null;
196
183
  minorColor: string;
197
- minorStyles: string | false | CSSProperties | StyleValue[] | null;
198
- labelValues: Array< ApLadderLabelValue>;
199
- labelStyles: string | false | CSSProperties | StyleValue[] | null;
200
- valueStyles: string | false | CSSProperties | StyleValue[] | null;
201
- linkStyles: string | false | CSSProperties | StyleValue[] | null;
202
- unitStyles: string | false | CSSProperties | StyleValue[] | null;
203
- tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
204
- tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
205
184
  }>;
206
185
  __isFragment?: never;
207
186
  __isTeleport?: never;
@@ -209,8 +188,6 @@ declare const ApLadder: {
209
188
  } & ComponentOptionsBase<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
210
189
  layout: "vertical" | "horizontal";
211
190
  tooltip: boolean;
212
- major: string;
213
- minor: string;
214
191
  labelAlign: "left" | "right";
215
192
  tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
216
193
  title: VueTypeValidableDef<any>;
@@ -287,17 +264,9 @@ declare const ApLadder: {
287
264
  default: boolean;
288
265
  };
289
266
  }>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
267
+ labelValues: Array< ApLadderLabelValue>;
290
268
  majorColor: string;
291
- majorStyles: string | false | CSSProperties | StyleValue[] | null;
292
269
  minorColor: string;
293
- minorStyles: string | false | CSSProperties | StyleValue[] | null;
294
- labelValues: Array< ApLadderLabelValue>;
295
- labelStyles: string | false | CSSProperties | StyleValue[] | null;
296
- valueStyles: string | false | CSSProperties | StyleValue[] | null;
297
- linkStyles: string | false | CSSProperties | StyleValue[] | null;
298
- unitStyles: string | false | CSSProperties | StyleValue[] | null;
299
- tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
300
- tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
301
270
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
302
271
  $slots: Readonly< ApLadderSlots> & ApLadderSlots;
303
272
  }) & ( Plugin & (new (...args: any[]) => {
@@ -252,3 +252,29 @@ export type CurrencyCode = 'CNY' | 'USD' | 'EUR' | 'GBP';
252
252
  * 国际货币代码-映射-语言
253
253
  */
254
254
  export declare const locales: CurrencyCodeInLocale;
255
+ export interface ConvertValueOptions {
256
+ /**
257
+ * 是否采用原始值
258
+ */
259
+ rawValue?: boolean;
260
+ /**
261
+ * 精度 默认2位小数
262
+ */
263
+ precision?: number;
264
+ /**
265
+ * 千分位展示
266
+ */
267
+ thousand?: boolean;
268
+ /**
269
+ * 千分位分隔符
270
+ */
271
+ thousandSeparator?: string;
272
+ /**
273
+ * 货币单位
274
+ */
275
+ currency?: CurrencyCode;
276
+ /**
277
+ * 百分比展示
278
+ */
279
+ percent?: boolean;
280
+ }