@thestarweb/ui 1.7.1 → 2.0.0-beta.2

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 (236) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +7 -0
  2. package/dist/components/base/button/button.vue.js +5 -0
  3. package/dist/components/base/button/button.vue_vue_type_script_setup_true_lang.js +35 -0
  4. package/dist/components/data/card/card.vue.js +5 -0
  5. package/dist/components/data/card/card.vue_vue_type_script_setup_true_lang.js +50 -0
  6. package/dist/components/data/pagination/pagination.vue.js +5 -0
  7. package/dist/components/data/pagination/pagination.vue_vue_type_script_setup_true_lang.js +101 -0
  8. package/dist/components/data/popover/popover.vue.js +5 -0
  9. package/dist/components/data/popover/popover.vue_vue_type_script_setup_true_lang.js +122 -0
  10. package/dist/components/data/popover/utils.js +68 -0
  11. package/dist/components/data/table/table.vue.js +5 -0
  12. package/dist/components/data/table/table.vue_vue_type_script_setup_true_lang.js +45 -0
  13. package/dist/components/data/tag/tag.vue.js +5 -0
  14. package/dist/components/data/tag/tag.vue_vue_type_script_setup_true_lang.js +21 -0
  15. package/dist/components/data/tree/tree-item.vue.js +5 -0
  16. package/dist/components/data/tree/tree-item.vue_vue_type_script_setup_true_lang.js +75 -0
  17. package/dist/components/data/tree/tree-raw.vue.js +5 -0
  18. package/dist/components/data/tree/tree-raw.vue_vue_type_script_setup_true_lang.js +104 -0
  19. package/dist/components/data/tree/tree.vue.js +4 -0
  20. package/dist/components/data/tree/tree.vue_vue_type_script_setup_true_lang.js +60 -0
  21. package/dist/components/data/tree/utils.js +66 -0
  22. package/dist/components/form/checkbox/checkbox.vue.js +5 -0
  23. package/dist/components/form/checkbox/checkbox.vue_vue_type_script_setup_true_lang.js +50 -0
  24. package/dist/components/form/input/input.vue.js +5 -0
  25. package/dist/components/form/input/input.vue_vue_type_script_setup_true_lang.js +34 -0
  26. package/dist/components/form/select/select.vue.js +5 -0
  27. package/dist/components/form/select/select.vue_vue_type_script_setup_true_lang.js +146 -0
  28. package/dist/components/form/slider/slider.vue.js +5 -0
  29. package/dist/components/form/slider/slider.vue_vue_type_script_setup_true_lang.js +67 -0
  30. package/dist/components/form/switch/switch.vue.js +5 -0
  31. package/dist/components/form/switch/switch.vue_vue_type_script_setup_true_lang.js +38 -0
  32. package/dist/components/layout/layout/index.js +9 -0
  33. package/dist/components/layout/layout/layout-dividing.vue.js +10 -0
  34. package/dist/components/layout/layout/layout-main.vue.js +10 -0
  35. package/dist/components/layout/layout/layout.vue.js +5 -0
  36. package/dist/components/layout/layout/layout.vue_vue_type_script_setup_true_lang.js +14 -0
  37. package/dist/components/layout/page/Page.vue.js +5 -0
  38. package/dist/components/layout/page/Page.vue_vue_type_script_setup_true_lang.js +60 -0
  39. package/dist/components/other/calendar/calendar.vue.js +5 -0
  40. package/dist/components/other/calendar/calendar.vue_vue_type_script_setup_true_lang.js +103 -0
  41. package/dist/components/other/menu/index.vue.js +5 -0
  42. package/dist/components/other/menu/index.vue_vue_type_script_setup_true_lang.js +22 -0
  43. package/dist/components/other/menu/menu-h/index.vue.js +5 -0
  44. package/dist/components/other/menu/menu-h/index.vue_vue_type_script_setup_true_lang.js +22 -0
  45. package/dist/components/other/menu/menu-h/menu-h-item.vue.js +5 -0
  46. package/dist/components/other/menu/menu-h/menu-h-item.vue_vue_type_script_setup_true_lang.js +30 -0
  47. package/dist/components/other/menu/menu-v/index.vue.js +4 -0
  48. package/dist/components/other/menu/menu-v/index.vue_vue_type_script_setup_true_lang.js +32 -0
  49. package/dist/context/is-mobile.js +10 -0
  50. package/dist/icons/arrow-down.svg_component.js +12 -0
  51. package/dist/icons/arrow-right.svg_component.js +12 -0
  52. package/dist/icons/home.svg_component.js +12 -0
  53. package/dist/icons/menu.svg_component.js +12 -0
  54. package/dist/index.js +19 -0
  55. package/dist/style.css +2 -0
  56. package/dist/utils/index.js +9 -0
  57. package/dist/utils/z-index.js +6 -0
  58. package/package.json +38 -81
  59. package/types/src/components/base/button/button.vue.d.ts +22 -0
  60. package/types/src/components/base/button/example/base.vue.d.ts +3 -0
  61. package/types/src/components/base/button/index.d.ts +1 -0
  62. package/types/src/components/base/index.d.ts +1 -0
  63. package/types/src/components/data/card/card.vue.d.ts +32 -0
  64. package/types/src/components/data/card/index.d.ts +1 -0
  65. package/types/src/components/data/index.d.ts +6 -0
  66. package/types/src/components/data/pagination/example/base.vue.d.ts +3 -0
  67. package/types/src/components/data/pagination/index.d.ts +1 -0
  68. package/types/src/components/data/pagination/pagination.vue.d.ts +21 -0
  69. package/types/src/components/data/popover/example/base.vue.d.ts +3 -0
  70. package/types/src/components/data/popover/index.d.ts +1 -0
  71. package/types/src/components/data/popover/popover.vue.d.ts +39 -0
  72. package/types/src/components/data/popover/type.d.ts +1 -0
  73. package/types/src/components/data/popover/utils.d.ts +12 -0
  74. package/types/src/components/data/table/example/base.vue.d.ts +3 -0
  75. package/types/src/components/data/table/example/render.vue.d.ts +3 -0
  76. package/types/src/components/data/table/index.d.ts +2 -0
  77. package/types/src/components/data/table/table.vue.d.ts +36 -0
  78. package/types/src/components/data/table/types.d.ts +12 -0
  79. package/types/src/components/data/tag/example/base.vue.d.ts +3 -0
  80. package/types/src/components/data/tag/index.d.ts +1 -0
  81. package/types/src/components/data/tag/tag.vue.d.ts +20 -0
  82. package/types/src/components/data/tree/example/base.vue.d.ts +3 -0
  83. package/types/src/components/data/tree/index.d.ts +2 -0
  84. package/types/src/components/data/tree/tree-item.vue.d.ts +36 -0
  85. package/types/src/components/data/tree/tree-raw.vue.d.ts +47 -0
  86. package/types/src/components/data/tree/tree.vue.d.ts +34 -0
  87. package/types/src/components/data/tree/type.d.ts +40 -0
  88. package/types/src/components/data/tree/utils.d.ts +10 -0
  89. package/types/src/components/form/checkbox/checkbox.vue.d.ts +32 -0
  90. package/types/src/components/form/checkbox/example/base.vue.d.ts +3 -0
  91. package/types/src/components/form/checkbox/example/group.vue.d.ts +3 -0
  92. package/types/src/components/form/checkbox/index.d.ts +1 -0
  93. package/types/src/components/form/index.d.ts +5 -0
  94. package/types/src/components/form/input/example/base.vue.d.ts +3 -0
  95. package/types/src/components/form/input/index.d.ts +1 -0
  96. package/types/src/components/form/input/input.vue.d.ts +17 -0
  97. package/types/src/components/form/select/example/base.vue.d.ts +3 -0
  98. package/types/src/components/form/select/example/tree-select.vue.d.ts +3 -0
  99. package/types/src/components/form/select/index.d.ts +2 -0
  100. package/types/src/components/form/select/select.vue.d.ts +25 -0
  101. package/types/src/components/form/select/types.d.ts +25 -0
  102. package/types/src/components/form/slider/example/base.vue.d.ts +3 -0
  103. package/types/src/components/form/slider/index.d.ts +1 -0
  104. package/types/src/components/form/slider/slider.vue.d.ts +19 -0
  105. package/types/src/components/form/switch/example/base.vue.d.ts +3 -0
  106. package/types/src/components/form/switch/index.d.ts +1 -0
  107. package/types/src/components/form/switch/switch.vue.d.ts +17 -0
  108. package/types/src/components/index.d.ts +5 -0
  109. package/types/src/components/layout/index.d.ts +2 -0
  110. package/types/src/components/layout/layout/index.d.ts +42 -0
  111. package/types/src/components/layout/layout/layout-dividing.vue.d.ts +3 -0
  112. package/types/src/components/layout/layout/layout-main.vue.d.ts +15 -0
  113. package/types/src/components/layout/layout/layout.vue.d.ts +18 -0
  114. package/types/src/components/layout/page/Page.vue.d.ts +39 -0
  115. package/types/src/components/layout/page/index.d.ts +1 -0
  116. package/types/src/components/other/calendar/calendar.vue.d.ts +41 -0
  117. package/types/src/components/other/calendar/index.d.ts +1 -0
  118. package/types/src/components/other/index.d.ts +2 -0
  119. package/types/src/components/other/menu/index.d.ts +2 -0
  120. package/types/src/components/other/menu/index.vue.d.ts +46 -0
  121. package/types/src/components/other/menu/menu-h/index.vue.d.ts +19 -0
  122. package/types/src/components/other/menu/menu-h/menu-h-item.vue.d.ts +27 -0
  123. package/types/src/components/other/menu/menu-v/index.vue.d.ts +24 -0
  124. package/types/src/components/other/menu/types.d.ts +6 -0
  125. package/types/src/components/other/view-control/index.d.ts +1 -0
  126. package/types/src/components/other/view-control/view-control.vue.d.ts +20 -0
  127. package/types/src/context/index.d.ts +1 -0
  128. package/types/src/context/is-mobile.d.ts +4 -0
  129. package/types/src/icons/index.d.ts +4 -0
  130. package/types/src/index.d.ts +3 -0
  131. package/types/src/types.d.ts +2 -0
  132. package/types/src/utils/index.d.ts +6 -0
  133. package/types/src/utils/z-index.d.ts +1 -0
  134. package/types/vite.config.d.ts +2 -0
  135. package/build-ts/main.js +0 -63
  136. package/dist/demo.html +0 -8
  137. package/dist/star-ui.common.js +0 -33776
  138. package/dist/star-ui.common.js.map +0 -1
  139. package/dist/star-ui.umd.js +0 -33786
  140. package/dist/star-ui.umd.js.map +0 -1
  141. package/dist/star-ui.umd.min.js +0 -299
  142. package/dist/star-ui.umd.min.js.map +0 -1
  143. package/readme.md +0 -16
  144. package/src/components/button.vue +0 -34
  145. package/src/components/calendar.vue +0 -244
  146. package/src/components/call-render.tsx +0 -22
  147. package/src/components/card.vue +0 -126
  148. package/src/components/common/base-popper.vue +0 -132
  149. package/src/components/content/context-menu-box/index.vue +0 -117
  150. package/src/components/content/index.ts +0 -5
  151. package/src/components/content/menu/index.vue +0 -86
  152. package/src/components/content/menu/menu-h/index.vue +0 -68
  153. package/src/components/content/menu/menu-h/menu-h-child.vue +0 -74
  154. package/src/components/content/menu/menu-h/menu-h-item.vue +0 -66
  155. package/src/components/content/menu/menu-v/index.vue +0 -56
  156. package/src/components/content/modals/confirm.vue +0 -45
  157. package/src/components/content/modals/modal.vue +0 -110
  158. package/src/components/content/page.vue +0 -134
  159. package/src/components/form/form/form-item.vue +0 -116
  160. package/src/components/form/form/form.vue +0 -109
  161. package/src/components/form/form/index.ts +0 -2
  162. package/src/components/form/index.ts +0 -1
  163. package/src/components/input.vue +0 -89
  164. package/src/components/layout/auto-direction/index.vue +0 -28
  165. package/src/components/layout/index.ts +0 -1
  166. package/src/components/layout-h.vue +0 -34
  167. package/src/components/layout-main.vue +0 -25
  168. package/src/components/layout-v.vue +0 -36
  169. package/src/components/line-h.vue +0 -29
  170. package/src/components/line-v.vue +0 -29
  171. package/src/components/select.vue +0 -265
  172. package/src/components/slider.vue +0 -171
  173. package/src/components/switch.vue +0 -95
  174. package/src/components/table.vue +0 -59
  175. package/src/components/tree/index.vue +0 -116
  176. package/src/components/tree/tree-item.vue +0 -157
  177. package/src/components/view-control.vue +0 -83
  178. package/src/directives/is-focus.ts +0 -10
  179. package/src/func/download.ts +0 -15
  180. package/src/func/index.ts +0 -2
  181. package/src/func/modal/index.ts +0 -72
  182. package/src/global-style.css +0 -127
  183. package/src/icon-font/iconfont.css +0 -75
  184. package/src/icon-font/iconfont.eot +0 -0
  185. package/src/icon-font/iconfont.json +0 -114
  186. package/src/icon-font/iconfont.svg +0 -62
  187. package/src/icon-font/iconfont.ttf +0 -0
  188. package/src/icon-font/iconfont.woff +0 -0
  189. package/src/icon-font/iconfont.woff2 +0 -0
  190. package/src/main.ts +0 -57
  191. package/src/outher/index.ts +0 -8
  192. package/src/reg.ts +0 -129
  193. package/src/shims-vue.d.ts +0 -8
  194. package/src/types.d.ts +0 -15
  195. package/src/utils.ts +0 -24
  196. package/types/components/button.vue.d.ts +0 -5
  197. package/types/components/calendar.vue.d.ts +0 -26
  198. package/types/components/call-render.d.ts +0 -6
  199. package/types/components/card.vue.d.ts +0 -13
  200. package/types/components/common/base-popper.vue.d.ts +0 -21
  201. package/types/components/content/context-menu-box/index.vue.d.ts +0 -20
  202. package/types/components/content/index.d.ts +0 -5
  203. package/types/components/content/menu/index.vue.d.ts +0 -12
  204. package/types/components/content/menu/menu-h/index.vue.d.ts +0 -8
  205. package/types/components/content/menu/menu-h/menu-h-child.vue.d.ts +0 -7
  206. package/types/components/content/menu/menu-h/menu-h-item.vue.d.ts +0 -8
  207. package/types/components/content/menu/menu-v/index.vue.d.ts +0 -9
  208. package/types/components/content/modals/confirm.vue.d.ts +0 -7
  209. package/types/components/content/modals/modal.vue.d.ts +0 -12
  210. package/types/components/content/page.vue.d.ts +0 -9
  211. package/types/components/form/form/form-item.vue.d.ts +0 -22
  212. package/types/components/form/form/form.vue.d.ts +0 -24
  213. package/types/components/form/form/index.d.ts +0 -2
  214. package/types/components/form/index.d.ts +0 -1
  215. package/types/components/input.vue.d.ts +0 -17
  216. package/types/components/layout/auto-direction/index.vue.d.ts +0 -4
  217. package/types/components/layout/index.d.ts +0 -1
  218. package/types/components/layout-h.vue.d.ts +0 -4
  219. package/types/components/layout-main.vue.d.ts +0 -4
  220. package/types/components/layout-v.vue.d.ts +0 -4
  221. package/types/components/line-h.vue.d.ts +0 -4
  222. package/types/components/line-v.vue.d.ts +0 -4
  223. package/types/components/select.vue.d.ts +0 -26
  224. package/types/components/slider.vue.d.ts +0 -29
  225. package/types/components/switch.vue.d.ts +0 -12
  226. package/types/components/table.vue.d.ts +0 -5
  227. package/types/components/tree/index.vue.d.ts +0 -15
  228. package/types/components/tree/tree-item.vue.d.ts +0 -18
  229. package/types/components/view-control.vue.d.ts +0 -16
  230. package/types/directives/is-focus.d.ts +0 -4
  231. package/types/func/download.d.ts +0 -1
  232. package/types/func/index.d.ts +0 -2
  233. package/types/func/modal/index.d.ts +0 -13
  234. package/types/main.d.ts +0 -75
  235. package/types/outher/index.d.ts +0 -5
  236. package/types/reg.d.ts +0 -45
@@ -0,0 +1,32 @@
1
+ type __VLS_Props = {
2
+ title?: string;
3
+ collapsible?: boolean;
4
+ };
5
+ type __VLS_ModelProps = {
6
+ "isCollapse"?: boolean;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_template: () => {
10
+ __VLS_Slots: {
11
+ default?: (props: {}) => any;
12
+ };
13
+ __VLS_TemplateRefs: {
14
+ body: __VLS_Elements["div"];
15
+ } & {
16
+ bodyInner: __VLS_Elements["div"];
17
+ };
18
+ };
19
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
20
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
21
+ "update:isCollapse": (value: boolean) => any;
22
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:isCollapse"?: ((value: boolean) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1 @@
1
+ export { default as Card } from "./card.vue";
@@ -0,0 +1,6 @@
1
+ export * from "./card/index.js";
2
+ export * from "./table/index.js";
3
+ export * from "./tree/index.js";
4
+ export * from "./popover/index.js";
5
+ export * from "./tag/index.js";
6
+ export * from "./pagination/index.js";
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Pagination } from "./pagination.vue";
@@ -0,0 +1,21 @@
1
+ import { Size } from "../../../types.js";
2
+ type __VLS_Props = {
3
+ total: number;
4
+ size?: Size;
5
+ pagerCont?: number;
6
+ url?: string | ((page: number, pageSize: number) => string);
7
+ };
8
+ type __VLS_ModelProps = {
9
+ "pageSize": number;
10
+ "page": number;
11
+ };
12
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
14
+ "update:pageSize": (value: number) => any;
15
+ "update:page": (value: number) => any;
16
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
+ "onUpdate:pageSize"?: ((value: number) => any) | undefined;
18
+ "onUpdate:page"?: ((value: number) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Popover } from "./popover.vue";
@@ -0,0 +1,39 @@
1
+ import { Placement } from "./type.js";
2
+ type __VLS_Props = {
3
+ referenceElement?: Element | {
4
+ value: Element;
5
+ } | null;
6
+ className?: string | string[];
7
+ updatePoseAt?: "open" | "scroll";
8
+ teleportTo?: Element | string;
9
+ keepRender?: "allways" | "mounted" | "visible";
10
+ placement?: Placement;
11
+ margin?: number;
12
+ allowMobileStyle?: boolean;
13
+ maskOnMobile?: boolean;
14
+ trigger?: "click" | "none";
15
+ position?: "fixed" | "absolute";
16
+ };
17
+ type __VLS_Slots = {
18
+ reference?: any;
19
+ };
20
+ type __VLS_ModelProps = {
21
+ "visible"?: any;
22
+ };
23
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
24
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
25
+ "update:visible": (value: any) => any;
26
+ } & {
27
+ "out-click": (ev: MouseEvent) => any;
28
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
+ "onOut-click"?: ((ev: MouseEvent) => any) | undefined;
30
+ "onUpdate:visible"?: ((value: any) => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
32
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
+ declare const _default: typeof __VLS_export;
34
+ export default _default;
35
+ type __VLS_WithSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1 @@
1
+ export type Placement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
@@ -0,0 +1,12 @@
1
+ import { Placement } from "./type.js";
2
+ export declare const placementHandleFn: {
3
+ before(refBox: any, selfBox: any, offsetBox: any, margin: number, d1: "top" | "left", d2: "height" | "width"): string;
4
+ start(refBox: any, selfBox: any, offsetBox: any, margin: number, d1: "top" | "left", d2: "height" | "width"): string;
5
+ center(refBox: any, selfBox: any, offsetBox: any, margin: number, d1: "top" | "left", d2: "height" | "width"): string;
6
+ end(refBox: any, selfBox: any, offsetBox: any, margin: number, d1: "top" | "left", d2: "height" | "width"): string;
7
+ after(refBox: any, selfBox: any, offsetBox: any, margin: number, d1: "top" | "left", d2: "height" | "width"): string;
8
+ };
9
+ export declare const placementMap: Record<Placement, {
10
+ x: keyof typeof placementHandleFn;
11
+ y: keyof typeof placementHandleFn;
12
+ }>;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as Table } from "./table.vue";
2
+ export * from "./types.js";
@@ -0,0 +1,36 @@
1
+ import { TableColumn } from "./types.js";
2
+ import { ObjectKeyProp } from "../../../utils/index.js";
3
+ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
5
+ data: T[];
6
+ columns: TableColumn<T>[];
7
+ recordKey?: ObjectKeyProp<T>;
8
+ }> & (typeof globalThis extends {
9
+ __VLS_PROPS_FALLBACK: infer P;
10
+ } ? P : {});
11
+ expose: (exposed: {}) => void;
12
+ attrs: any;
13
+ slots: {
14
+ [x: `header_${string}`]: ((props: {
15
+ column: TableColumn<T>;
16
+ }) => any) | undefined;
17
+ } & {
18
+ [x: `render_${string}`]: ((props: {
19
+ record: T;
20
+ index: number;
21
+ column: TableColumn<T>;
22
+ }) => any) | undefined;
23
+ } & {
24
+ default?: (props: {}) => any;
25
+ };
26
+ emit: {};
27
+ }>) => import("vue").VNode & {
28
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
29
+ };
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
33
+ [K in keyof T]: T[K];
34
+ } : {
35
+ [K in keyof T as K]: T[K];
36
+ }) & {};
@@ -0,0 +1,12 @@
1
+ import { Component } from "vue";
2
+ export interface TableColumn<T> {
3
+ header?: string | Component<{
4
+ column: TableColumn<T>;
5
+ }>;
6
+ key: string;
7
+ render?: Component<{
8
+ record: T;
9
+ index: number;
10
+ column: TableColumn<T>;
11
+ }>;
12
+ }
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Tag } from "./tag.vue";
@@ -0,0 +1,20 @@
1
+ import { Size, ThemeColor } from "../../../types.js";
2
+ type __VLS_Props = {
3
+ size?: Size;
4
+ theme?: ThemeColor;
5
+ };
6
+ declare const __VLS_template: () => {
7
+ __VLS_Slots: {
8
+ default?: (props: {}) => any;
9
+ };
10
+ };
11
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
12
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as Tree } from "./tree.vue";
2
+ export type { TreeProp, TreeItemContext } from "./type.js";
@@ -0,0 +1,36 @@
1
+ import { Size } from "../../../types.js";
2
+ import { Tree } from "./type.js";
3
+ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
5
+ item: Tree<T>;
6
+ size: Size;
7
+ currentKey?: string | number;
8
+ expendKey: Set<string | number>;
9
+ labelRender: (item: Tree<T>) => any;
10
+ shouldItemShow?: (item: Tree<T>) => boolean;
11
+ showCheckbox?: boolean;
12
+ } & {
13
+ onExpend?: ((item: Tree<T>) => any) | undefined;
14
+ "onItem-click"?: ((item: Tree<T>) => any) | undefined;
15
+ onCheck?: ((item: Tree<T>) => any) | undefined;
16
+ }> & (typeof globalThis extends {
17
+ __VLS_PROPS_FALLBACK: infer P;
18
+ } ? P : {});
19
+ expose: (exposed: {}) => void;
20
+ attrs: any;
21
+ slots: {};
22
+ emit: {
23
+ (ev: "item-click", item: Tree<T>): void;
24
+ (ev: "expend", item: Tree<T>): void;
25
+ (ev: "check", item: Tree<T>): void;
26
+ };
27
+ }>) => import("vue").VNode & {
28
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
29
+ };
30
+ declare const _default: typeof __VLS_export;
31
+ export default _default;
32
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
33
+ [K in keyof T]: T[K];
34
+ } : {
35
+ [K in keyof T as K]: T[K];
36
+ }) & {};
@@ -0,0 +1,47 @@
1
+ import { Size } from "../../../types.js";
2
+ import { TreeCheckboxMode, Tree } from "./type.js";
3
+ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<({
5
+ tree: Tree<T>[];
6
+ size: Size;
7
+ highlightCurrent?: boolean;
8
+ currentKey?: Tree<T>["itemKey"];
9
+ labelRender: (item: Tree<T>) => any;
10
+ shouldItemShow?: (item: Tree<T>) => boolean;
11
+ showCheckbox?: boolean;
12
+ showCheckboxMode?: TreeCheckboxMode;
13
+ itemHandle?: "expend" | "none" | "check";
14
+ } & {
15
+ expendKey?: (string | number)[];
16
+ }) & {
17
+ onExpend?: ((expend: boolean, item: Tree<T>) => any) | undefined;
18
+ "onUpdate:expendKey"?: ((value: (string | number)[] | undefined) => any) | undefined;
19
+ "onItem-click"?: ((item: Tree<T>) => any) | undefined;
20
+ "onCheck-change"?: ((changed: {
21
+ add: Set<Tree<T>>;
22
+ remove: Set<Tree<T>>;
23
+ }) => any) | undefined;
24
+ }> & (typeof globalThis extends {
25
+ __VLS_PROPS_FALLBACK: infer P;
26
+ } ? P : {});
27
+ expose: (exposed: {}) => void;
28
+ attrs: any;
29
+ slots: {};
30
+ emit: {
31
+ (ev: "item-click", item: Tree<T>): void;
32
+ (ev: "expend", expend: boolean, item: Tree<T>): void;
33
+ (ev: "check-change", changed: {
34
+ add: Set<Tree<T>>;
35
+ remove: Set<Tree<T>>;
36
+ }): void;
37
+ } & ((event: "update:expendKey", value: (string | number)[] | undefined) => void);
38
+ }>) => import("vue").VNode & {
39
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
40
+ };
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
43
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
44
+ [K in keyof T]: T[K];
45
+ } : {
46
+ [K in keyof T as K]: T[K];
47
+ }) & {};
@@ -0,0 +1,34 @@
1
+ import { TreeItemContextWithKey, TreeProp } from "./type.js";
2
+ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<(TreeProp<T> & {
4
+ currentKey?: string | number;
5
+ expendKey?: (string | number)[];
6
+ checkedKey?: (string | number)[];
7
+ }) & {
8
+ onExpend?: ((expend: boolean, item: T) => any) | undefined;
9
+ "onUpdate:expendKey"?: ((value: (string | number)[] | undefined) => any) | undefined;
10
+ "onItem-click"?: ((context: TreeItemContextWithKey<T>) => any) | undefined;
11
+ "onUpdate:currentKey"?: ((value: string | number | undefined) => any) | undefined;
12
+ "onUpdate:checkedKey"?: ((value: (string | number)[] | undefined) => any) | undefined;
13
+ }> & (typeof globalThis extends {
14
+ __VLS_PROPS_FALLBACK: infer P;
15
+ } ? P : {});
16
+ expose: (exposed: {}) => void;
17
+ attrs: any;
18
+ slots: {
19
+ default(props: TreeItemContextWithKey<T>): any;
20
+ };
21
+ emit: {
22
+ (ev: "item-click", context: TreeItemContextWithKey<T>): void;
23
+ (ev: "expend", expend: boolean, item: T): void;
24
+ } & (((event: "update:expendKey", value: (string | number)[] | undefined) => void) & ((event: "update:currentKey", value: string | number | undefined) => void) & ((event: "update:checkedKey", value: (string | number)[] | undefined) => void));
25
+ }>) => import("vue").VNode & {
26
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
27
+ };
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
31
+ [K in keyof T]: T[K];
32
+ } : {
33
+ [K in keyof T as K]: T[K];
34
+ }) & {};
@@ -0,0 +1,40 @@
1
+ import { ComputedRef } from "vue";
2
+ import { Size } from "../../../types.js";
3
+ import { ObjectKeyProp, StringOrNumberValueKey } from "../../../utils/index.js";
4
+ export type TreeCheckboxMode = "default" | "leafOnly" | "raw";
5
+ export interface TreeItemContext<T> {
6
+ item: T;
7
+ index: number;
8
+ items: T[];
9
+ indexes: number[];
10
+ }
11
+ export interface TreeItemContextWithKey<T> extends TreeItemContext<T> {
12
+ item: T;
13
+ index: number;
14
+ itemKey: string | number;
15
+ items: T[];
16
+ indexes: number[];
17
+ }
18
+ export interface Tree<T> extends TreeItemContextWithKey<T> {
19
+ children?: Tree<T>[];
20
+ parent?: Tree<T> | null;
21
+ selfChecked: ComputedRef<boolean>;
22
+ checked: ComputedRef<boolean>;
23
+ indeterminate: ComputedRef<boolean>;
24
+ }
25
+ type MayChildrenKey<T> = {
26
+ [k in keyof T]: T[k] extends T[] | undefined ? k : never;
27
+ }[keyof T];
28
+ export interface TreeProp<T> {
29
+ size?: Size;
30
+ treeData: T[];
31
+ itemKey?: ObjectKeyProp<T, [context: TreeItemContext<T>]>;
32
+ label?: StringOrNumberValueKey<T> | ((context: TreeItemContextWithKey<T>) => any);
33
+ children?: MayChildrenKey<T> | ((item: T) => T[] | undefined);
34
+ highlightCurrent?: boolean;
35
+ itemClick?: "expend" | "select";
36
+ shouldItemShow?: (context: TreeItemContextWithKey<T>) => boolean;
37
+ showCheckbox?: boolean;
38
+ showCheckboxMode?: TreeCheckboxMode;
39
+ }
40
+ export {};
@@ -0,0 +1,10 @@
1
+ import { Tree, TreeItemContext, TreeItemContextWithKey, TreeProp } from "./type.js";
2
+ export declare function toTree<T>(raw: T[], itemKey: TreeProp<T>["itemKey"], children: TreeProp<T>["children"], checkMode: TreeProp<T>["showCheckboxMode"], isItemChecked: (context: Tree<T>) => boolean): {
3
+ map: Map<string | number, Tree<T>>;
4
+ tree: Tree<T>[];
5
+ };
6
+ export declare function traverseTree<T>(tree: T[], getChildren: TreeProp<T>["children"], fn: (context: TreeItemContext<T>) => boolean | undefined | void): any;
7
+ export declare function getTreeKeyFn<T>(itemKey: TreeProp<T>["itemKey"]): (item: T, context: TreeItemContext<T>) => number | string;
8
+ export declare function getChildrenFn<T>(c: TreeProp<T>["children"]): (item: T, context: TreeItemContext<T>) => T[] | undefined | null;
9
+ export declare function getTreeLabelRender<T>(render: TreeProp<T>["label"]): (context: TreeItemContextWithKey<T>) => any;
10
+ export declare function filertTree<T>(tree: T[], getChildren: TreeProp<T> | T, fn: (context: TreeItemContext<T>) => boolean): void;
@@ -0,0 +1,32 @@
1
+ import { Size } from "../../../types.js";
2
+ type __VLS_Props = {
3
+ size?: Size;
4
+ disabled?: boolean;
5
+ indeterminate?: boolean;
6
+ };
7
+ type __VLS_ModelProps = {
8
+ modelValue?: boolean;
9
+ };
10
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
+ declare const __VLS_template: () => {
12
+ __VLS_Slots: {
13
+ default?: (props: {}) => any;
14
+ };
15
+ __VLS_TemplateRefs: {
16
+ input: __VLS_Elements["input"];
17
+ };
18
+ };
19
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
20
+ declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
21
+ "update:modelValue": (value: boolean) => any;
22
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as CheckBox } from "./checkbox.vue";
@@ -0,0 +1,5 @@
1
+ export * from "./input/index.js";
2
+ export * from "./select/index.js";
3
+ export * from "./switch/index.js";
4
+ export * from "./slider/index.js";
5
+ export * from "./checkbox/index.js";
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Input } from "./input.vue";
@@ -0,0 +1,17 @@
1
+ import { Size } from "../../../types.js";
2
+ type __VLS_Props = {
3
+ name?: string;
4
+ disabled?: boolean;
5
+ size?: Size;
6
+ };
7
+ type __VLS_ModelProps = {
8
+ modelValue?: any;
9
+ };
10
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
12
+ "update:modelValue": (value: any) => any;
13
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as Select } from "./select.vue";
2
+ export type { SelectProp } from "./types.js";
@@ -0,0 +1,25 @@
1
+ import { SelectProp } from "./types.js";
2
+ declare const __VLS_export: <T, V, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<(SelectProp<T, V, M> & {
4
+ open?: boolean;
5
+ modelValue?: M extends true ? V[] : V;
6
+ }) & {
7
+ "onUpdate:modelValue"?: ((value: M extends true ? V[] : V | undefined) => any) | undefined;
8
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
9
+ }> & (typeof globalThis extends {
10
+ __VLS_PROPS_FALLBACK: infer P;
11
+ } ? P : {});
12
+ expose: (exposed: {}) => void;
13
+ attrs: any;
14
+ slots: {};
15
+ emit: ((event: "update:modelValue", value: M extends true ? V[] : V | undefined) => void) & ((event: "update:open", value: boolean) => void);
16
+ }>) => import("vue").VNode & {
17
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
18
+ };
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
22
+ [K in keyof T]: T[K];
23
+ } : {
24
+ [K in keyof T as K]: T[K];
25
+ }) & {};
@@ -0,0 +1,25 @@
1
+ import { Size } from "../../../types.js";
2
+ import { TreeCheckboxMode, TreeProp } from "../../data/tree/type.js";
3
+ export type ValueKey<T, V> = {
4
+ [k in keyof T]: T[k] extends V ? k : never;
5
+ }[keyof T];
6
+ export interface SelectProp<T, V, M extends boolean> {
7
+ size?: Size;
8
+ disabled?: boolean;
9
+ label?: TreeProp<T>["label"];
10
+ itemKey?: TreeProp<T>["itemKey"];
11
+ /**
12
+ * item的value,不指定时和itemKey一致
13
+ */
14
+ value?: ValueKey<T, V> | ((item: T) => V);
15
+ /**
16
+ * 判断两个value是否是相等的(仅设置value后)
17
+ */
18
+ isValueEqual?: (a: V, b: V) => boolean;
19
+ children?: TreeProp<T>["children"];
20
+ options: T[];
21
+ multiple?: M;
22
+ placeholder?: string;
23
+ filterable?: boolean;
24
+ treeCheckboxMode?: TreeCheckboxMode;
25
+ }
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Slider } from "./slider.vue";
@@ -0,0 +1,19 @@
1
+ import { Size } from "../../../types.js";
2
+ type __VLS_Props = {
3
+ min?: number;
4
+ max?: number;
5
+ size?: Size;
6
+ step?: number;
7
+ disabled?: boolean;
8
+ };
9
+ type __VLS_ModelProps = {
10
+ modelValue?: number;
11
+ };
12
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {
14
+ "update:modelValue": (value: number) => any;
15
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Switch } from "./switch.vue";