@aplus-frontend/ui 0.5.25 → 0.5.27

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 (240) 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 +36 -36
  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-field/tree-select/index.vue.mjs +3 -3
  28. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  29. package/es/src/ap-form/ap-form.vue.d.ts +1 -2
  30. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  31. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  32. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  33. package/es/src/ap-form/item/index.vue.mjs +7 -7
  34. package/es/src/ap-form/item-group/index.vue.mjs +3 -3
  35. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  36. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  37. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  38. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  39. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  40. package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
  41. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  42. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  43. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  44. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  45. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  46. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  47. package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
  48. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  49. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  50. package/es/src/ap-form/render/item.vue.mjs +2 -2
  51. package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
  52. package/es/src/ap-form/search-form/index.vue.mjs +2 -2
  53. package/es/src/ap-form/set/index.vue.mjs +1 -1
  54. package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  55. package/es/src/ap-grid/editable/form-item.vue.mjs +16 -16
  56. package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
  57. package/es/src/ap-grid/editable/index.vue.mjs +11 -11
  58. package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
  59. package/es/src/ap-grid/index.vue.d.ts +2 -4
  60. package/es/src/ap-grid/index.vue.mjs +4 -4
  61. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
  62. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
  63. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  64. package/es/src/ap-list/index.vue.d.ts +2 -4
  65. package/es/src/ap-list/index.vue.mjs +4 -4
  66. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  67. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  68. package/es/src/ap-table/ap-table.vue2.mjs +13 -13
  69. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
  70. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  71. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
  72. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  73. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  74. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  75. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  76. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  77. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  78. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  79. package/es/src/ap-table/constants.d.ts +5 -5
  80. package/es/src/ap-table/constants.mjs +45 -45
  81. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  82. package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
  83. package/es/src/ap-table/utils.d.ts +5 -5
  84. package/es/src/ap-table/utils.mjs +17 -17
  85. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  86. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  87. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  88. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  89. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  90. package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
  91. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  92. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  93. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  94. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  95. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
  96. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  97. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  98. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  99. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  100. package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
  101. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  102. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  103. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  104. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
  105. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
  106. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
  107. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
  108. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
  109. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
  110. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  111. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  112. package/es/src/business/ap-ladder/ApLadder.d.ts +83 -0
  113. package/es/src/business/ap-ladder/ApLadder.mjs +42 -0
  114. package/es/src/business/ap-ladder/components/RenderValue.d.ts +34 -0
  115. package/es/src/business/ap-ladder/components/RenderValue.mjs +79 -0
  116. package/es/src/business/ap-ladder/components/SimpleMode.d.ts +37 -0
  117. package/es/src/business/ap-ladder/components/SimpleMode.mjs +42 -0
  118. package/es/src/business/ap-ladder/components/ValueGroupMode.d.ts +28 -0
  119. package/es/src/business/ap-ladder/components/ValueGroupMode.mjs +49 -0
  120. package/es/src/business/ap-ladder/constans.d.ts +50 -0
  121. package/es/src/business/ap-ladder/constans.mjs +51 -0
  122. package/es/src/business/ap-ladder/index.d.ts +133 -15
  123. package/es/src/business/ap-ladder/index.mjs +5 -6
  124. package/es/src/business/ap-ladder/utils.d.ts +4 -0
  125. package/es/src/business/ap-ladder/utils.mjs +22 -19
  126. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  127. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  128. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  129. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  130. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  131. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  132. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  133. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
  134. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
  135. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  136. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  137. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  138. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  139. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  140. package/es/src/business/batch-input-group/index.vue.mjs +1 -1
  141. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  142. package/es/src/check-card/index.vue2.mjs +3 -3
  143. package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
  144. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  145. package/es/src/editable-table/form-item.vue.mjs +83 -83
  146. package/es/src/editable-table/index.vue.d.ts +2 -4
  147. package/es/src/editable-table/index.vue.mjs +84 -79
  148. package/es/src/full-screen/index.vue.mjs +3 -3
  149. package/es/src/hooks/useFullScreen.mjs +5 -5
  150. package/es/src/mask/index.vue.mjs +10 -10
  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/work-order-modal/help-message.vue2.mjs +2 -2
  160. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  161. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  162. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  163. package/lib/src/ap-field/index.js +1 -1
  164. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  165. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  166. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  167. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  168. package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
  169. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  170. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  171. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  172. package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  173. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  174. package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
  175. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  176. package/lib/src/ap-grid/index.vue.d.ts +2 -4
  177. package/lib/src/ap-list/index.vue.d.ts +2 -4
  178. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  179. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  180. package/lib/src/ap-table/constants.d.ts +5 -5
  181. package/lib/src/ap-table/constants.js +1 -1
  182. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  183. package/lib/src/ap-table/utils.d.ts +5 -5
  184. package/lib/src/ap-table/utils.js +1 -1
  185. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  186. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  187. package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
  188. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  189. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  190. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  191. package/lib/src/business/ap-ladder/ApLadder.d.ts +83 -0
  192. package/lib/src/business/ap-ladder/ApLadder.js +1 -0
  193. package/lib/src/business/ap-ladder/components/RenderValue.d.ts +34 -0
  194. package/lib/src/business/ap-ladder/components/RenderValue.js +1 -0
  195. package/lib/src/business/ap-ladder/components/SimpleMode.d.ts +37 -0
  196. package/lib/src/business/ap-ladder/components/SimpleMode.js +1 -0
  197. package/lib/src/business/ap-ladder/components/ValueGroupMode.d.ts +28 -0
  198. package/lib/src/business/ap-ladder/components/ValueGroupMode.js +1 -0
  199. package/lib/src/business/ap-ladder/constans.d.ts +50 -0
  200. package/lib/src/business/ap-ladder/constans.js +1 -0
  201. package/lib/src/business/ap-ladder/index.d.ts +133 -15
  202. package/lib/src/business/ap-ladder/index.js +1 -1
  203. package/lib/src/business/ap-ladder/utils.d.ts +4 -0
  204. package/lib/src/business/ap-ladder/utils.js +1 -1
  205. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  206. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  207. package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
  208. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  209. package/lib/src/editable-table/form-item.vue.js +1 -1
  210. package/lib/src/editable-table/index.vue.d.ts +2 -4
  211. package/lib/src/editable-table/index.vue.js +1 -1
  212. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  213. package/lib/src/tests/wrapper.d.ts +4 -4
  214. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
  215. package/package.json +2 -2
  216. package/theme/ap-grid/index.css +4 -3
  217. package/theme/ap-grid/index.less +4 -3
  218. package/theme/index.css +4 -3
  219. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +0 -23
  220. package/es/src/business/ap-ladder/ApLadder.vue.mjs +0 -4
  221. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +0 -65
  222. package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +0 -48
  223. package/es/src/business/ap-ladder/components/SimpleMode.vue.mjs +0 -4
  224. package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +0 -57
  225. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +0 -46
  226. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.mjs +0 -4
  227. package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +0 -89
  228. package/es/src/business/ap-ladder/useWatchEllipsis.d.ts +0 -2
  229. package/es/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +0 -3
  230. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +0 -23
  231. package/lib/src/business/ap-ladder/ApLadder.vue.js +0 -1
  232. package/lib/src/business/ap-ladder/ApLadder.vue2.js +0 -1
  233. package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +0 -48
  234. package/lib/src/business/ap-ladder/components/SimpleMode.vue.js +0 -1
  235. package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +0 -1
  236. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +0 -46
  237. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.js +0 -1
  238. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +0 -1
  239. package/lib/src/business/ap-ladder/useWatchEllipsis.d.ts +0 -2
  240. package/lib/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +0 -3
@@ -0,0 +1,83 @@
1
+ import { ApLadderLabelValue } from './interface';
2
+ import { DefineComponent, ExtractPropTypes, PropType, VNode, ComponentOptionsMixin, PublicProps, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ layout: {
5
+ type: PropType<"vertical" | "horizontal">;
6
+ default: string;
7
+ };
8
+ labelValues: {
9
+ type: PropType<ApLadderLabelValue[]>;
10
+ default: () => never[];
11
+ };
12
+ tooltip: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ labelAlign: {
17
+ type: PropType<"left" | "right">;
18
+ default: string;
19
+ };
20
+ major: {
21
+ type: PropType<string | number | VNode | (() => VNode)>;
22
+ default: null;
23
+ };
24
+ minor: {
25
+ type: PropType<string | number | VNode | (() => VNode)>;
26
+ default: null;
27
+ };
28
+ majorColor: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ minorColor: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
37
+ layout: {
38
+ type: PropType<"vertical" | "horizontal">;
39
+ default: string;
40
+ };
41
+ labelValues: {
42
+ type: PropType<ApLadderLabelValue[]>;
43
+ default: () => never[];
44
+ };
45
+ tooltip: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ labelAlign: {
50
+ type: PropType<"left" | "right">;
51
+ default: string;
52
+ };
53
+ major: {
54
+ type: PropType<string | number | VNode | (() => VNode)>;
55
+ default: null;
56
+ };
57
+ minor: {
58
+ type: PropType<string | number | VNode | (() => VNode)>;
59
+ default: null;
60
+ };
61
+ majorColor: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ minorColor: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ }>> & Readonly<{}>, {
70
+ layout: "horizontal" | "vertical";
71
+ tooltip: boolean;
72
+ major: string | number | VNode<RendererNode, RendererElement, {
73
+ [key: string]: any;
74
+ }> | (() => VNode);
75
+ minor: string | number | VNode<RendererNode, RendererElement, {
76
+ [key: string]: any;
77
+ }> | (() => VNode);
78
+ labelAlign: "left" | "right";
79
+ labelValues: ApLadderLabelValue[];
80
+ majorColor: string;
81
+ minorColor: string;
82
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
83
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import { defineComponent as p, computed as i, createVNode as o } from "vue";
2
+ import "../../config-provider/index.mjs";
3
+ import k from "./components/SimpleMode.mjs";
4
+ import b from "./components/ValueGroupMode.mjs";
5
+ import { ApLadderProps as g } from "./constans.mjs";
6
+ import { useNamespace as s } from "../../config-provider/hooks/use-namespace.mjs";
7
+ import { useGlobalConfig as A } from "../../config-provider/hooks/use-global-config.mjs";
8
+ const G = /* @__PURE__ */ p({
9
+ name: "ApLadder",
10
+ props: g(),
11
+ setup(e, {
12
+ slots: n
13
+ }) {
14
+ const {
15
+ b: a,
16
+ m: d
17
+ } = s("ap-ladder"), u = A("uiMode", "aplus"), r = i(() => e.labelValues === void 0 || e.labelValues.length === 0), m = i(() => e.labelValues.length > 0), c = i(() => e.labelAlign), f = (l) => {
18
+ l.link && window.open(l.link, "_blank"), typeof l.handleClickLink == "function" && l.handleClickLink();
19
+ }, t = () => {
20
+ var l;
21
+ return ((l = n.title) == null ? void 0 : l.call(n)) || null;
22
+ };
23
+ return () => o("div", {
24
+ class: [a(), `${d(u.value)}`]
25
+ }, [r.value ? o(k, {
26
+ major: e.major,
27
+ minor: e.minor,
28
+ layout: e.layout
29
+ }, {
30
+ title: n.title ? t : void 0
31
+ }) : m.value ? o(b, {
32
+ labelValues: e.labelValues || [],
33
+ labelAlign: c.value,
34
+ onHandleClick: f
35
+ }, {
36
+ title: n.title ? t : void 0
37
+ }) : null]);
38
+ }
39
+ });
40
+ export {
41
+ G as default
42
+ };
@@ -0,0 +1,34 @@
1
+ import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { ApLadderLabelValue } from '../interface';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ labelValue: {
5
+ type: PropType<ApLadderLabelValue>;
6
+ default: () => void;
7
+ };
8
+ labelValues: {
9
+ type: PropType<ApLadderLabelValue[]>;
10
+ default: () => void;
11
+ };
12
+ onHandleClick: {
13
+ type: PropType<(labelValue: ApLadderLabelValue) => void>;
14
+ default: () => void;
15
+ };
16
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
17
+ labelValue: {
18
+ type: PropType<ApLadderLabelValue>;
19
+ default: () => void;
20
+ };
21
+ labelValues: {
22
+ type: PropType<ApLadderLabelValue[]>;
23
+ default: () => void;
24
+ };
25
+ onHandleClick: {
26
+ type: PropType<(labelValue: ApLadderLabelValue) => void>;
27
+ default: () => void;
28
+ };
29
+ }>> & Readonly<{}>, {
30
+ labelValue: ApLadderLabelValue;
31
+ labelValues: ApLadderLabelValue[];
32
+ onHandleClick: (labelValue: ApLadderLabelValue) => void;
33
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
34
+ export default _default;
@@ -0,0 +1,79 @@
1
+ import { defineComponent as c, createVNode as e, Fragment as t } from "vue";
2
+ import { convertValue as n, renderValue as p, isVNodeOrFunction as d } from "../utils.mjs";
3
+ import "../../../config-provider/index.mjs";
4
+ import { useNamespace as v } from "../../../config-provider/hooks/use-namespace.mjs";
5
+ const f = /* @__PURE__ */ c({
6
+ name: "ApLadderValues",
7
+ props: {
8
+ labelValue: {
9
+ type: Object,
10
+ default: () => {
11
+ }
12
+ },
13
+ labelValues: {
14
+ type: Object,
15
+ default: () => {
16
+ }
17
+ },
18
+ onHandleClick: {
19
+ type: Function,
20
+ default: () => {
21
+ }
22
+ }
23
+ },
24
+ setup(o, {
25
+ emit: r
26
+ }) {
27
+ return () => {
28
+ const {
29
+ labelValue: l,
30
+ labelValues: i
31
+ } = o, {
32
+ e: a
33
+ } = v("ap-ladder"), s = (u) => {
34
+ r("handleClick", u);
35
+ };
36
+ return e(t, null, [e("span", {
37
+ class: a("value-group-value"),
38
+ title: String(n(l.value, {
39
+ ...l
40
+ }))
41
+ }, [d(l.value) ? p(l.value) : l.link ? e("a", {
42
+ href: l.link,
43
+ target: "_blank",
44
+ class: a("value-group-link"),
45
+ title: String(l.value),
46
+ style: l.linkColor ? {
47
+ color: l.linkColor
48
+ } : null,
49
+ onClick: (u) => {
50
+ u.preventDefault(), s(l);
51
+ }
52
+ }, [n(l.value, {
53
+ ...l
54
+ })]) : e(t, null, [e("span", {
55
+ class: [l.handleValueClick ? a("value-group-link") : null],
56
+ title: String(l.value),
57
+ style: l.valueColor ? {
58
+ color: l.valueColor
59
+ } : null,
60
+ onClick: () => {
61
+ l.handleValueClick && l.handleValueClick(i);
62
+ }
63
+ }, [n(l.value, {
64
+ ...l
65
+ })]), l.unit && e("span", {
66
+ class: a("value-group-unit"),
67
+ title: String(n(l.value, {
68
+ ...l
69
+ })),
70
+ style: l.unitColor ? {
71
+ color: l.unitColor
72
+ } : null
73
+ }, [l.unit])])])]);
74
+ };
75
+ }
76
+ });
77
+ export {
78
+ f as default
79
+ };
@@ -0,0 +1,37 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, VNode, ComponentOptionsMixin, PublicProps, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<{
3
+ major: {
4
+ type: PropType<string | number | VNode | (() => VNode)>;
5
+ default: null;
6
+ };
7
+ minor: {
8
+ type: PropType<string | number | VNode | (() => VNode)>;
9
+ default: null;
10
+ };
11
+ layout: {
12
+ type: PropType<"vertical" | "horizontal">;
13
+ default: string;
14
+ };
15
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
16
+ major: {
17
+ type: PropType<string | number | VNode | (() => VNode)>;
18
+ default: null;
19
+ };
20
+ minor: {
21
+ type: PropType<string | number | VNode | (() => VNode)>;
22
+ default: null;
23
+ };
24
+ layout: {
25
+ type: PropType<"vertical" | "horizontal">;
26
+ default: string;
27
+ };
28
+ }>> & Readonly<{}>, {
29
+ layout: "horizontal" | "vertical";
30
+ major: string | number | VNode<RendererNode, RendererElement, {
31
+ [key: string]: any;
32
+ }> | (() => VNode);
33
+ minor: string | number | VNode<RendererNode, RendererElement, {
34
+ [key: string]: any;
35
+ }> | (() => VNode);
36
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
37
+ export default _default;
@@ -0,0 +1,42 @@
1
+ import { defineComponent as r, createVNode as e } from "vue";
2
+ import "../../../config-provider/index.mjs";
3
+ import { ApLadderSimpleModeProps as l } from "../constans.mjs";
4
+ import { isVNodeOrFunction as n } from "../utils.mjs";
5
+ import { useNamespace as s } from "../../../config-provider/hooks/use-namespace.mjs";
6
+ const v = /* @__PURE__ */ r({
7
+ name: "ApLadderSimpleMode",
8
+ props: l(),
9
+ setup(a, {
10
+ slots: o
11
+ }) {
12
+ const {
13
+ b: i,
14
+ e: m,
15
+ m: t
16
+ } = s("ap-ladder");
17
+ return () => e("div", {
18
+ class: [i("simple-mode")]
19
+ }, [a.layout === "vertical" ? e("div", {
20
+ class: [i("base"), t("vertical")]
21
+ }, [e("span", {
22
+ class: [m("major")],
23
+ title: a.major
24
+ }, [a.major]), n(a.minor) ? e("span", {
25
+ class: [m("minor")]
26
+ }, [a.minor]) : e("span", {
27
+ class: [m("minor")],
28
+ title: a.major
29
+ }, [a.minor])]) : e("div", {
30
+ class: [i("base"), t("horizontal")]
31
+ }, [e("span", {
32
+ class: [m("major")],
33
+ title: a.major
34
+ }, [a.major]), e("span", {
35
+ class: [m("minor")],
36
+ title: a.major
37
+ }, [a.minor])]), o.title && o.title()]);
38
+ }
39
+ });
40
+ export {
41
+ v as default
42
+ };
@@ -0,0 +1,28 @@
1
+ import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { ApLadderLabelValue } from '../interface';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ labelValues: {
5
+ type: PropType<ApLadderLabelValue[]>;
6
+ default: () => never[];
7
+ };
8
+ labelAlign: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("handleClick" | "update:valueRefs")[], "handleClick" | "update:valueRefs", PublicProps, Readonly< ExtractPropTypes<{
13
+ labelValues: {
14
+ type: PropType<ApLadderLabelValue[]>;
15
+ default: () => never[];
16
+ };
17
+ labelAlign: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ }>> & Readonly<{
22
+ onHandleClick?: ((...args: any[]) => any) | undefined;
23
+ "onUpdate:valueRefs"?: ((...args: any[]) => any) | undefined;
24
+ }>, {
25
+ labelAlign: string;
26
+ labelValues: ApLadderLabelValue[];
27
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -0,0 +1,49 @@
1
+ import { defineComponent as i, createVNode as a, createTextVNode as d } from "vue";
2
+ import "../../../config-provider/index.mjs";
3
+ import s from "./RenderValue.mjs";
4
+ import { useNamespace as p } from "../../../config-provider/hooks/use-namespace.mjs";
5
+ const v = /* @__PURE__ */ i({
6
+ name: "ApLadderValueGroupMode",
7
+ props: {
8
+ labelValues: {
9
+ type: Array,
10
+ default: () => []
11
+ },
12
+ labelAlign: {
13
+ type: String,
14
+ default: ""
15
+ }
16
+ },
17
+ emits: ["update:valueRefs", "handleClick"],
18
+ setup(o, {
19
+ emit: r,
20
+ slots: t
21
+ }) {
22
+ const {
23
+ e: l
24
+ } = p("ap-ladder"), n = (e) => {
25
+ r("handleClick", e);
26
+ };
27
+ return () => a("div", {
28
+ class: l("value-group-mode")
29
+ }, [o.labelValues.map((e, u) => a("div", {
30
+ key: u,
31
+ class: [l("value-group-item"), e.label === "" && l("value-group-value-end")]
32
+ }, [e.label && a("span", {
33
+ class: [l("value-group-label"), o.labelAlign ? l(`value-group-label-${o.labelAlign}`) : null],
34
+ style: e.labelColor ? {
35
+ color: e.labelColor
36
+ } : null,
37
+ title: String(e.label)
38
+ }, [e.label]), e.label && a("span", {
39
+ class: l("value-group-label-semicolon")
40
+ }, [d(":")]), a(s, {
41
+ labelValue: e,
42
+ labelValues: o.labelValues,
43
+ onHandleClick: n
44
+ }, null), t.title && t.title()]))]);
45
+ }
46
+ });
47
+ export {
48
+ v as default
49
+ };
@@ -0,0 +1,50 @@
1
+ import { PropType, VNode } from 'vue';
2
+ import { ApLadderLabelValue } from './interface';
3
+ export declare const ApLadderProps: () => {
4
+ layout: {
5
+ type: PropType<"vertical" | "horizontal">;
6
+ default: string;
7
+ };
8
+ labelValues: {
9
+ type: PropType<ApLadderLabelValue[]>;
10
+ default: () => never[];
11
+ };
12
+ tooltip: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ labelAlign: {
17
+ type: PropType<"left" | "right">;
18
+ default: string;
19
+ };
20
+ major: {
21
+ type: PropType<string | number | VNode | (() => VNode)>;
22
+ default: null;
23
+ };
24
+ minor: {
25
+ type: PropType<string | number | VNode | (() => VNode)>;
26
+ default: null;
27
+ };
28
+ majorColor: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ minorColor: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ };
37
+ export declare const ApLadderSimpleModeProps: () => {
38
+ major: {
39
+ type: PropType<string | number | VNode | (() => VNode)>;
40
+ default: null;
41
+ };
42
+ minor: {
43
+ type: PropType<string | number | VNode | (() => VNode)>;
44
+ default: null;
45
+ };
46
+ layout: {
47
+ type: PropType<"vertical" | "horizontal">;
48
+ default: string;
49
+ };
50
+ };
@@ -0,0 +1,51 @@
1
+ const t = () => ({
2
+ layout: {
3
+ type: String,
4
+ default: "vertical"
5
+ },
6
+ labelValues: {
7
+ type: Array,
8
+ default: () => []
9
+ },
10
+ tooltip: {
11
+ type: Boolean,
12
+ default: !0
13
+ },
14
+ labelAlign: {
15
+ type: String,
16
+ default: "left"
17
+ },
18
+ major: {
19
+ type: [String, Number, Object, Function],
20
+ default: null
21
+ },
22
+ minor: {
23
+ type: [String, Number, Object, Function],
24
+ default: null
25
+ },
26
+ majorColor: {
27
+ type: String,
28
+ default: ""
29
+ },
30
+ minorColor: {
31
+ type: String,
32
+ default: ""
33
+ }
34
+ }), e = () => ({
35
+ major: {
36
+ type: [String, Number, Object, Function],
37
+ default: null
38
+ },
39
+ minor: {
40
+ type: [String, Number, Object, Function],
41
+ default: null
42
+ },
43
+ layout: {
44
+ type: String,
45
+ default: "vertical"
46
+ }
47
+ });
48
+ export {
49
+ t as ApLadderProps,
50
+ e as ApLadderSimpleModeProps
51
+ };
@@ -1,39 +1,157 @@
1
- import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
- import { ApLadderProps, ApLadderLabelValue, ApLadderSlots } from './interface';
1
+ import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNode, ComponentOptionsMixin, PublicProps, RendererNode, RendererElement, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
+ import { ApLadderLabelValue } from './interface';
3
3
  export * from './interface';
4
4
  declare const ApLadder: {
5
- new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
6
- layout: "vertical" | "horizontal";
5
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
6
+ layout: {
7
+ type: PropType<"vertical" | "horizontal">;
8
+ default: string;
9
+ };
10
+ labelValues: {
11
+ type: PropType< ApLadderLabelValue[]>;
12
+ default: () => never[];
13
+ };
14
+ tooltip: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ labelAlign: {
19
+ type: PropType<"left" | "right">;
20
+ default: string;
21
+ };
22
+ major: {
23
+ type: PropType<string | number | VNode | (() => VNode)>;
24
+ default: null;
25
+ };
26
+ minor: {
27
+ type: PropType<string | number | VNode | (() => VNode)>;
28
+ default: null;
29
+ };
30
+ majorColor: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ minorColor: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
39
+ layout: "horizontal" | "vertical";
40
+ tooltip: boolean;
41
+ major: string | number | VNode<RendererNode, RendererElement, {
42
+ [key: string]: any;
43
+ }> | (() => VNode);
44
+ minor: string | number | VNode<RendererNode, RendererElement, {
45
+ [key: string]: any;
46
+ }> | (() => VNode);
7
47
  labelAlign: "left" | "right";
8
- labelValues: Array< ApLadderLabelValue>;
48
+ labelValues: ApLadderLabelValue[];
9
49
  majorColor: string;
10
50
  minorColor: string;
11
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
51
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
12
52
  P: {};
13
53
  B: {};
14
54
  D: {};
15
55
  C: {};
16
56
  M: {};
17
57
  Defaults: {};
18
- }, Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, {
19
- layout: "vertical" | "horizontal";
58
+ }, Readonly< ExtractPropTypes<{
59
+ layout: {
60
+ type: PropType<"vertical" | "horizontal">;
61
+ default: string;
62
+ };
63
+ labelValues: {
64
+ type: PropType< ApLadderLabelValue[]>;
65
+ default: () => never[];
66
+ };
67
+ tooltip: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ labelAlign: {
72
+ type: PropType<"left" | "right">;
73
+ default: string;
74
+ };
75
+ major: {
76
+ type: PropType<string | number | VNode | (() => VNode)>;
77
+ default: null;
78
+ };
79
+ minor: {
80
+ type: PropType<string | number | VNode | (() => VNode)>;
81
+ default: null;
82
+ };
83
+ majorColor: {
84
+ type: StringConstructor;
85
+ default: string;
86
+ };
87
+ minorColor: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
92
+ layout: "horizontal" | "vertical";
93
+ tooltip: boolean;
94
+ major: string | number | VNode<RendererNode, RendererElement, {
95
+ [key: string]: any;
96
+ }> | (() => VNode);
97
+ minor: string | number | VNode<RendererNode, RendererElement, {
98
+ [key: string]: any;
99
+ }> | (() => VNode);
20
100
  labelAlign: "left" | "right";
21
- labelValues: Array< ApLadderLabelValue>;
101
+ labelValues: ApLadderLabelValue[];
22
102
  majorColor: string;
23
103
  minorColor: string;
24
104
  }>;
25
105
  __isFragment?: never;
26
106
  __isTeleport?: never;
27
107
  __isSuspense?: never;
28
- } & ComponentOptionsBase<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
29
- layout: "vertical" | "horizontal";
108
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
109
+ layout: {
110
+ type: PropType<"vertical" | "horizontal">;
111
+ default: string;
112
+ };
113
+ labelValues: {
114
+ type: PropType< ApLadderLabelValue[]>;
115
+ default: () => never[];
116
+ };
117
+ tooltip: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
121
+ labelAlign: {
122
+ type: PropType<"left" | "right">;
123
+ default: string;
124
+ };
125
+ major: {
126
+ type: PropType<string | number | VNode | (() => VNode)>;
127
+ default: null;
128
+ };
129
+ minor: {
130
+ type: PropType<string | number | VNode | (() => VNode)>;
131
+ default: null;
132
+ };
133
+ majorColor: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ minorColor: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
142
+ layout: "horizontal" | "vertical";
143
+ tooltip: boolean;
144
+ major: string | number | VNode<RendererNode, RendererElement, {
145
+ [key: string]: any;
146
+ }> | (() => VNode);
147
+ minor: string | number | VNode<RendererNode, RendererElement, {
148
+ [key: string]: any;
149
+ }> | (() => VNode);
30
150
  labelAlign: "left" | "right";
31
- labelValues: Array< ApLadderLabelValue>;
151
+ labelValues: ApLadderLabelValue[];
32
152
  majorColor: string;
33
153
  minorColor: string;
34
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
35
- $slots: Readonly< ApLadderSlots> & ApLadderSlots;
36
- }) & ( Plugin & (new (...args: any[]) => {
154
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
37
155
  $props: {
38
156
  onClick?: () => void;
39
157
  };
@@ -1,9 +1,8 @@
1
1
  import { withInstall as o } from "@aplus-frontend/utils";
2
- import "./ApLadder.vue.mjs";
3
- import { locales as f } from "./interface.mjs";
4
- import r from "./ApLadder.vue2.mjs";
5
- const i = o(r);
2
+ import r from "./ApLadder.mjs";
3
+ import { locales as d } from "./interface.mjs";
4
+ const e = o(r);
6
5
  export {
7
- i as ApLadder,
8
- f as locales
6
+ e as ApLadder,
7
+ d as locales
9
8
  };