@thestarweb/ui 1.7.1 → 2.0.0-beta.1

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 (256) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.mjs +7 -0
  2. package/dist/components/base/button/button.vue.mjs +5 -0
  3. package/dist/components/base/button/button.vue_vue_type_script_setup_true_lang.mjs +27 -0
  4. package/dist/components/base/button/index.mjs +1 -0
  5. package/dist/components/base/index.mjs +2 -0
  6. package/dist/components/data/card/card.vue.mjs +5 -0
  7. package/dist/components/data/card/card.vue_vue_type_script_setup_true_lang.mjs +50 -0
  8. package/dist/components/data/card/index.mjs +1 -0
  9. package/dist/components/data/index.mjs +11 -0
  10. package/dist/components/data/popover/index.mjs +1 -0
  11. package/dist/components/data/popover/popover.vue.mjs +5 -0
  12. package/dist/components/data/popover/popover.vue_vue_type_script_setup_true_lang.mjs +123 -0
  13. package/dist/components/data/popover/utils.mjs +68 -0
  14. package/dist/components/data/table/index.mjs +1 -0
  15. package/dist/components/data/table/table.vue.mjs +5 -0
  16. package/dist/components/data/table/table.vue_vue_type_script_setup_true_lang.mjs +45 -0
  17. package/dist/components/data/tag/index.mjs +1 -0
  18. package/dist/components/data/tag/tag.vue.mjs +5 -0
  19. package/dist/components/data/tag/tag.vue_vue_type_script_setup_true_lang.mjs +21 -0
  20. package/dist/components/data/tree/index.mjs +1 -0
  21. package/dist/components/data/tree/tree-item.vue.mjs +5 -0
  22. package/dist/components/data/tree/tree-item.vue_vue_type_script_setup_true_lang.mjs +77 -0
  23. package/dist/components/data/tree/tree-raw.vue.mjs +5 -0
  24. package/dist/components/data/tree/tree-raw.vue_vue_type_script_setup_true_lang.mjs +104 -0
  25. package/dist/components/data/tree/tree.vue.mjs +4 -0
  26. package/dist/components/data/tree/tree.vue_vue_type_script_setup_true_lang.mjs +60 -0
  27. package/dist/components/data/tree/utils.mjs +66 -0
  28. package/dist/components/form/checkbox/checkbox.vue.mjs +5 -0
  29. package/dist/components/form/checkbox/checkbox.vue_vue_type_script_setup_true_lang.mjs +50 -0
  30. package/dist/components/form/checkbox/index.mjs +1 -0
  31. package/dist/components/form/index.mjs +11 -0
  32. package/dist/components/form/input/index.mjs +1 -0
  33. package/dist/components/form/input/input.vue.mjs +5 -0
  34. package/dist/components/form/input/input.vue_vue_type_script_setup_true_lang.mjs +34 -0
  35. package/dist/components/form/select/index.mjs +1 -0
  36. package/dist/components/form/select/select.vue.mjs +5 -0
  37. package/dist/components/form/select/select.vue_vue_type_script_setup_true_lang.mjs +148 -0
  38. package/dist/components/form/slider/index.mjs +1 -0
  39. package/dist/components/form/slider/slider.vue.mjs +5 -0
  40. package/dist/components/form/slider/slider.vue_vue_type_script_setup_true_lang.mjs +67 -0
  41. package/dist/components/form/switch/index.mjs +1 -0
  42. package/dist/components/form/switch/switch.vue.mjs +5 -0
  43. package/dist/components/form/switch/switch.vue_vue_type_script_setup_true_lang.mjs +38 -0
  44. package/dist/components/index.mjs +21 -0
  45. package/dist/components/layout/index.mjs +4 -0
  46. package/dist/components/layout/layout/index.mjs +9 -0
  47. package/dist/components/layout/layout/layout-dividing.vue.mjs +10 -0
  48. package/dist/components/layout/layout/layout-main.vue.mjs +10 -0
  49. package/dist/components/layout/layout/layout.vue.mjs +5 -0
  50. package/dist/components/layout/layout/layout.vue_vue_type_script_setup_true_lang.mjs +14 -0
  51. package/dist/components/layout/page/Page.vue.mjs +5 -0
  52. package/dist/components/layout/page/Page.vue_vue_type_script_setup_true_lang.mjs +63 -0
  53. package/dist/components/layout/page/index.mjs +1 -0
  54. package/dist/components/other/calendar/calendar.vue.mjs +5 -0
  55. package/dist/components/other/calendar/calendar.vue_vue_type_script_setup_true_lang.mjs +103 -0
  56. package/dist/components/other/calendar/index.mjs +1 -0
  57. package/dist/components/other/index.mjs +5 -0
  58. package/dist/components/other/menu/index.mjs +1 -0
  59. package/dist/components/other/menu/index.vue.mjs +5 -0
  60. package/dist/components/other/menu/index.vue_vue_type_script_setup_true_lang.mjs +22 -0
  61. package/dist/components/other/menu/menu-h/index.vue.mjs +5 -0
  62. package/dist/components/other/menu/menu-h/index.vue_vue_type_script_setup_true_lang.mjs +22 -0
  63. package/dist/components/other/menu/menu-h/menu-h-item.vue.mjs +5 -0
  64. package/dist/components/other/menu/menu-h/menu-h-item.vue_vue_type_script_setup_true_lang.mjs +30 -0
  65. package/dist/components/other/menu/menu-v/index.vue.mjs +4 -0
  66. package/dist/components/other/menu/menu-v/index.vue_vue_type_script_setup_true_lang.mjs +33 -0
  67. package/dist/context/index.mjs +1 -0
  68. package/dist/context/is-mobile.mjs +10 -0
  69. package/dist/icons/arrow-down.svg_component.mjs +12 -0
  70. package/dist/icons/arrow-right.svg_component.mjs +12 -0
  71. package/dist/icons/home.svg_component.mjs +12 -0
  72. package/dist/icons/index.mjs +5 -0
  73. package/dist/icons/menu.svg_component.mjs +12 -0
  74. package/dist/index.mjs +20 -0
  75. package/dist/style.css +2 -0
  76. package/dist/utils/index.mjs +9 -0
  77. package/dist/utils/z-index.mjs +6 -0
  78. package/package.json +33 -81
  79. package/types/src/components/base/button/button.vue.d.ts +21 -0
  80. package/types/src/components/base/button/example/base.vue.d.ts +3 -0
  81. package/types/src/components/base/button/index.d.ts +1 -0
  82. package/types/src/components/base/index.d.ts +1 -0
  83. package/types/src/components/data/card/card.vue.d.ts +32 -0
  84. package/types/src/components/data/card/index.d.ts +1 -0
  85. package/types/src/components/data/index.d.ts +5 -0
  86. package/types/src/components/data/pagination/example/base.vue.d.ts +3 -0
  87. package/types/src/components/data/pagination/index.d.ts +1 -0
  88. package/types/src/components/data/pagination/pagination.vue.d.ts +20 -0
  89. package/types/src/components/data/popover/example/base.vue.d.ts +3 -0
  90. package/types/src/components/data/popover/index.d.ts +1 -0
  91. package/types/src/components/data/popover/popover.vue.d.ts +39 -0
  92. package/types/src/components/data/popover/type.d.ts +1 -0
  93. package/types/src/components/data/popover/utils.d.ts +12 -0
  94. package/types/src/components/data/table/example/base.vue.d.ts +3 -0
  95. package/types/src/components/data/table/example/render.vue.d.ts +3 -0
  96. package/types/src/components/data/table/index.d.ts +2 -0
  97. package/types/src/components/data/table/table.vue.d.ts +36 -0
  98. package/types/src/components/data/table/types.d.ts +12 -0
  99. package/types/src/components/data/tag/example/base.vue.d.ts +3 -0
  100. package/types/src/components/data/tag/index.d.ts +1 -0
  101. package/types/src/components/data/tag/tag.vue.d.ts +20 -0
  102. package/types/src/components/data/tree/example/base.vue.d.ts +3 -0
  103. package/types/src/components/data/tree/index.d.ts +2 -0
  104. package/types/src/components/data/tree/tree-item.vue.d.ts +36 -0
  105. package/types/src/components/data/tree/tree-raw.vue.d.ts +47 -0
  106. package/types/src/components/data/tree/tree.vue.d.ts +34 -0
  107. package/types/src/components/data/tree/type.d.ts +40 -0
  108. package/types/src/components/data/tree/utils.d.ts +10 -0
  109. package/types/src/components/form/checkbox/checkbox.vue.d.ts +32 -0
  110. package/types/src/components/form/checkbox/example/base.vue.d.ts +3 -0
  111. package/types/src/components/form/checkbox/example/group.vue.d.ts +3 -0
  112. package/types/src/components/form/checkbox/index.d.ts +1 -0
  113. package/types/src/components/form/index.d.ts +5 -0
  114. package/types/src/components/form/input/example/base.vue.d.ts +3 -0
  115. package/types/src/components/form/input/index.d.ts +1 -0
  116. package/types/src/components/form/input/input.vue.d.ts +17 -0
  117. package/types/src/components/form/select/example/base.vue.d.ts +3 -0
  118. package/types/src/components/form/select/example/tree-select.vue.d.ts +3 -0
  119. package/types/src/components/form/select/index.d.ts +2 -0
  120. package/types/src/components/form/select/select.vue.d.ts +25 -0
  121. package/types/src/components/form/select/types.d.ts +25 -0
  122. package/types/src/components/form/slider/example/base.vue.d.ts +3 -0
  123. package/types/src/components/form/slider/index.d.ts +1 -0
  124. package/types/src/components/form/slider/slider.vue.d.ts +19 -0
  125. package/types/src/components/form/switch/example/base.vue.d.ts +3 -0
  126. package/types/src/components/form/switch/index.d.ts +1 -0
  127. package/types/src/components/form/switch/switch.vue.d.ts +17 -0
  128. package/types/src/components/index.d.ts +5 -0
  129. package/types/src/components/layout/index.d.ts +2 -0
  130. package/types/src/components/layout/layout/index.d.ts +42 -0
  131. package/types/src/components/layout/layout/layout-dividing.vue.d.ts +3 -0
  132. package/types/src/components/layout/layout/layout-main.vue.d.ts +15 -0
  133. package/types/src/components/layout/layout/layout.vue.d.ts +18 -0
  134. package/types/src/components/layout/page/Page.vue.d.ts +39 -0
  135. package/types/src/components/layout/page/index.d.ts +1 -0
  136. package/types/src/components/other/calendar/calendar.vue.d.ts +41 -0
  137. package/types/src/components/other/calendar/index.d.ts +1 -0
  138. package/types/src/components/other/index.d.ts +2 -0
  139. package/types/src/components/other/menu/index.d.ts +2 -0
  140. package/types/src/components/other/menu/index.vue.d.ts +46 -0
  141. package/types/src/components/other/menu/menu-h/index.vue.d.ts +19 -0
  142. package/types/src/components/other/menu/menu-h/menu-h-item.vue.d.ts +27 -0
  143. package/types/src/components/other/menu/menu-v/index.vue.d.ts +24 -0
  144. package/types/src/components/other/menu/types.d.ts +6 -0
  145. package/types/src/components/other/view-control/index.d.ts +1 -0
  146. package/types/src/components/other/view-control/view-control.vue.d.ts +20 -0
  147. package/types/src/context/index.d.ts +1 -0
  148. package/types/src/context/is-mobile.d.ts +4 -0
  149. package/types/src/icons/index.d.ts +4 -0
  150. package/types/src/index.d.ts +3 -0
  151. package/types/src/types.d.ts +2 -0
  152. package/types/src/utils/index.d.ts +6 -0
  153. package/types/src/utils/z-index.d.ts +1 -0
  154. package/types/vite.config.d.ts +2 -0
  155. package/build-ts/main.js +0 -63
  156. package/dist/demo.html +0 -8
  157. package/dist/star-ui.common.js +0 -33776
  158. package/dist/star-ui.common.js.map +0 -1
  159. package/dist/star-ui.umd.js +0 -33786
  160. package/dist/star-ui.umd.js.map +0 -1
  161. package/dist/star-ui.umd.min.js +0 -299
  162. package/dist/star-ui.umd.min.js.map +0 -1
  163. package/readme.md +0 -16
  164. package/src/components/button.vue +0 -34
  165. package/src/components/calendar.vue +0 -244
  166. package/src/components/call-render.tsx +0 -22
  167. package/src/components/card.vue +0 -126
  168. package/src/components/common/base-popper.vue +0 -132
  169. package/src/components/content/context-menu-box/index.vue +0 -117
  170. package/src/components/content/index.ts +0 -5
  171. package/src/components/content/menu/index.vue +0 -86
  172. package/src/components/content/menu/menu-h/index.vue +0 -68
  173. package/src/components/content/menu/menu-h/menu-h-child.vue +0 -74
  174. package/src/components/content/menu/menu-h/menu-h-item.vue +0 -66
  175. package/src/components/content/menu/menu-v/index.vue +0 -56
  176. package/src/components/content/modals/confirm.vue +0 -45
  177. package/src/components/content/modals/modal.vue +0 -110
  178. package/src/components/content/page.vue +0 -134
  179. package/src/components/form/form/form-item.vue +0 -116
  180. package/src/components/form/form/form.vue +0 -109
  181. package/src/components/form/form/index.ts +0 -2
  182. package/src/components/form/index.ts +0 -1
  183. package/src/components/input.vue +0 -89
  184. package/src/components/layout/auto-direction/index.vue +0 -28
  185. package/src/components/layout/index.ts +0 -1
  186. package/src/components/layout-h.vue +0 -34
  187. package/src/components/layout-main.vue +0 -25
  188. package/src/components/layout-v.vue +0 -36
  189. package/src/components/line-h.vue +0 -29
  190. package/src/components/line-v.vue +0 -29
  191. package/src/components/select.vue +0 -265
  192. package/src/components/slider.vue +0 -171
  193. package/src/components/switch.vue +0 -95
  194. package/src/components/table.vue +0 -59
  195. package/src/components/tree/index.vue +0 -116
  196. package/src/components/tree/tree-item.vue +0 -157
  197. package/src/components/view-control.vue +0 -83
  198. package/src/directives/is-focus.ts +0 -10
  199. package/src/func/download.ts +0 -15
  200. package/src/func/index.ts +0 -2
  201. package/src/func/modal/index.ts +0 -72
  202. package/src/global-style.css +0 -127
  203. package/src/icon-font/iconfont.css +0 -75
  204. package/src/icon-font/iconfont.eot +0 -0
  205. package/src/icon-font/iconfont.json +0 -114
  206. package/src/icon-font/iconfont.svg +0 -62
  207. package/src/icon-font/iconfont.ttf +0 -0
  208. package/src/icon-font/iconfont.woff +0 -0
  209. package/src/icon-font/iconfont.woff2 +0 -0
  210. package/src/main.ts +0 -57
  211. package/src/outher/index.ts +0 -8
  212. package/src/reg.ts +0 -129
  213. package/src/shims-vue.d.ts +0 -8
  214. package/src/types.d.ts +0 -15
  215. package/src/utils.ts +0 -24
  216. package/types/components/button.vue.d.ts +0 -5
  217. package/types/components/calendar.vue.d.ts +0 -26
  218. package/types/components/call-render.d.ts +0 -6
  219. package/types/components/card.vue.d.ts +0 -13
  220. package/types/components/common/base-popper.vue.d.ts +0 -21
  221. package/types/components/content/context-menu-box/index.vue.d.ts +0 -20
  222. package/types/components/content/index.d.ts +0 -5
  223. package/types/components/content/menu/index.vue.d.ts +0 -12
  224. package/types/components/content/menu/menu-h/index.vue.d.ts +0 -8
  225. package/types/components/content/menu/menu-h/menu-h-child.vue.d.ts +0 -7
  226. package/types/components/content/menu/menu-h/menu-h-item.vue.d.ts +0 -8
  227. package/types/components/content/menu/menu-v/index.vue.d.ts +0 -9
  228. package/types/components/content/modals/confirm.vue.d.ts +0 -7
  229. package/types/components/content/modals/modal.vue.d.ts +0 -12
  230. package/types/components/content/page.vue.d.ts +0 -9
  231. package/types/components/form/form/form-item.vue.d.ts +0 -22
  232. package/types/components/form/form/form.vue.d.ts +0 -24
  233. package/types/components/form/form/index.d.ts +0 -2
  234. package/types/components/form/index.d.ts +0 -1
  235. package/types/components/input.vue.d.ts +0 -17
  236. package/types/components/layout/auto-direction/index.vue.d.ts +0 -4
  237. package/types/components/layout/index.d.ts +0 -1
  238. package/types/components/layout-h.vue.d.ts +0 -4
  239. package/types/components/layout-main.vue.d.ts +0 -4
  240. package/types/components/layout-v.vue.d.ts +0 -4
  241. package/types/components/line-h.vue.d.ts +0 -4
  242. package/types/components/line-v.vue.d.ts +0 -4
  243. package/types/components/select.vue.d.ts +0 -26
  244. package/types/components/slider.vue.d.ts +0 -29
  245. package/types/components/switch.vue.d.ts +0 -12
  246. package/types/components/table.vue.d.ts +0 -5
  247. package/types/components/tree/index.vue.d.ts +0 -15
  248. package/types/components/tree/tree-item.vue.d.ts +0 -18
  249. package/types/components/view-control.vue.d.ts +0 -16
  250. package/types/directives/is-focus.d.ts +0 -4
  251. package/types/func/download.d.ts +0 -1
  252. package/types/func/index.d.ts +0 -2
  253. package/types/func/modal/index.d.ts +0 -13
  254. package/types/main.d.ts +0 -75
  255. package/types/outher/index.d.ts +0 -5
  256. package/types/reg.d.ts +0 -45
@@ -0,0 +1,17 @@
1
+ import { Size } from "../../../types";
2
+ type __VLS_Props = {
3
+ size?: Size;
4
+ name?: string;
5
+ disabled?: boolean;
6
+ };
7
+ type __VLS_ModelProps = {
8
+ modelValue?: boolean;
9
+ };
10
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": (value: boolean) => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export * from "./base";
2
+ export * from "./data";
3
+ export * from "./form";
4
+ export * from "./layout";
5
+ export * from "./other";
@@ -0,0 +1,2 @@
1
+ export * from "./page";
2
+ export * from "./layout";
@@ -0,0 +1,42 @@
1
+ export declare const Layout: {
2
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
3
+ direction?: "h" | "v";
4
+ }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
5
+ P: {};
6
+ B: {};
7
+ D: {};
8
+ C: {};
9
+ M: {};
10
+ Defaults: {};
11
+ }, Readonly<{
12
+ direction?: "h" | "v";
13
+ }> & Readonly<{}>, {}, {}, {}, {}, {}>;
14
+ __isFragment?: never;
15
+ __isTeleport?: never;
16
+ __isSuspense?: never;
17
+ } & import("vue").ComponentOptionsBase<Readonly<{
18
+ direction?: "h" | "v";
19
+ }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
20
+ $slots: {
21
+ default?: (props: {}) => any;
22
+ };
23
+ }) & {
24
+ Main: {
25
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
26
+ P: {};
27
+ B: {};
28
+ D: {};
29
+ C: {};
30
+ M: {};
31
+ Defaults: {};
32
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
33
+ __isFragment?: never;
34
+ __isTeleport?: never;
35
+ __isSuspense?: never;
36
+ } & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
37
+ $slots: {
38
+ default?: (props: {}) => any;
39
+ };
40
+ });
41
+ Dividing: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
42
+ };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,15 @@
1
+ declare const __VLS_template: () => {
2
+ __VLS_Slots: {
3
+ default?: (props: {}) => any;
4
+ };
5
+ };
6
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
7
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ direction?: "h" | "v";
3
+ };
4
+ declare const __VLS_template: () => {
5
+ __VLS_Slots: {
6
+ default?: (props: {}) => any;
7
+ };
8
+ };
9
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,39 @@
1
+ import { MenuItem } from "../../other";
2
+ type __VLS_Props = {
3
+ menu: MenuItem[];
4
+ };
5
+ declare const __VLS_template: () => {
6
+ __VLS_Slots: {
7
+ header?: (props: {}) => any;
8
+ } & {
9
+ menu?: (props: {
10
+ name?: string;
11
+ path?: string;
12
+ title: string;
13
+ children?: MenuItem[];
14
+ }) => any;
15
+ } & {
16
+ text?: (props: any) => any;
17
+ } & {
18
+ default?: (props: {}) => any;
19
+ } & {
20
+ menu?: (props: {
21
+ name?: string;
22
+ path?: string;
23
+ title: string;
24
+ children?: MenuItem[];
25
+ }) => any;
26
+ } & {
27
+ text?: (props: any) => any;
28
+ };
29
+ };
30
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
31
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").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 { default as Page } from "./Page.vue";
@@ -0,0 +1,41 @@
1
+ import dayjs from "dayjs";
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
5
+ displayMonth?: Date | string | number | dayjs.Dayjs;
6
+ /**
7
+ * 周的名字
8
+ */
9
+ weekNames?: [string, string, string, string, string, string, string];
10
+ /**
11
+ * 周的偏移量
12
+ */
13
+ weekOffset?: number;
14
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
+ "date-click": (date: dayjs.Dayjs) => any;
16
+ }, string, import("vue").PublicProps, Readonly<{
17
+ displayMonth?: Date | string | number | dayjs.Dayjs;
18
+ /**
19
+ * 周的名字
20
+ */
21
+ weekNames?: [string, string, string, string, string, string, string];
22
+ /**
23
+ * 周的偏移量
24
+ */
25
+ weekOffset?: number;
26
+ }> & Readonly<{
27
+ "onDate-click"?: ((date: dayjs.Dayjs) => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
29
+ default?: (props: {
30
+ display: number;
31
+ isPrevious: boolean;
32
+ isNext: boolean;
33
+ week: string;
34
+ date: dayjs.Dayjs;
35
+ }) => any;
36
+ }>;
37
+ type __VLS_WithSlots<T, S> = T & {
38
+ new (): {
39
+ $slots: S;
40
+ };
41
+ };
@@ -0,0 +1 @@
1
+ export { default as Calender } from "./calendar.vue";
@@ -0,0 +1,2 @@
1
+ export * from "./menu";
2
+ export * from "./calendar";
@@ -0,0 +1,2 @@
1
+ export { default as Menu } from "./index.vue";
2
+ export type { MenuItem } from "./types.js";
@@ -0,0 +1,46 @@
1
+ import { MenuItem } from "./types";
2
+ type __VLS_Props = {
3
+ menu: MenuItem[];
4
+ direction: "h" | "v";
5
+ };
6
+ declare const __VLS_template: () => {
7
+ __VLS_Slots: {
8
+ default?: (props: {
9
+ name?: string;
10
+ path?: string;
11
+ title: string;
12
+ children?: MenuItem[];
13
+ }) => any;
14
+ } & {
15
+ default?: (props: {
16
+ name?: string;
17
+ path?: string;
18
+ title: string;
19
+ children?: MenuItem[];
20
+ }) => any;
21
+ } & {
22
+ default?: (props: {
23
+ name?: string;
24
+ path?: string;
25
+ title: string;
26
+ children?: MenuItem[];
27
+ }) => any;
28
+ } & {
29
+ default?: (props: {
30
+ name?: string;
31
+ path?: string;
32
+ title: string;
33
+ children?: MenuItem[];
34
+ }) => any;
35
+ };
36
+ };
37
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
38
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
40
+ declare const _default: typeof __VLS_export;
41
+ export default _default;
42
+ type __VLS_WithSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -0,0 +1,19 @@
1
+ import { MenuItem } from "../types";
2
+ type __VLS_Props = {
3
+ menu: MenuItem[];
4
+ };
5
+ declare const __VLS_template: () => {
6
+ __VLS_Slots: {
7
+ default?: (props: any) => any;
8
+ };
9
+ };
10
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,27 @@
1
+ import { MenuItem } from "../types.js";
2
+ type __VLS_Props = {
3
+ item: MenuItem;
4
+ childDirection?: "right" | "bottom";
5
+ };
6
+ declare const __VLS_template: () => {
7
+ __VLS_Slots: {
8
+ default?: (props: {
9
+ name?: string;
10
+ path?: string;
11
+ title: string;
12
+ children?: MenuItem[];
13
+ }) => any;
14
+ } & {
15
+ default?: (props: any) => any;
16
+ };
17
+ };
18
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
19
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,24 @@
1
+ import { MenuItem } from "../types";
2
+ type __VLS_Props = {
3
+ menu: MenuItem[];
4
+ };
5
+ declare const __VLS_template: () => {
6
+ __VLS_Slots: {
7
+ default?: (props: {
8
+ name?: string;
9
+ path?: string;
10
+ title: string;
11
+ children?: MenuItem[];
12
+ }) => any;
13
+ };
14
+ };
15
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,6 @@
1
+ export interface MenuItem {
2
+ name?: string;
3
+ path?: string;
4
+ title: string;
5
+ children?: MenuItem[];
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ type DeviceType = "mobile" | "pc";
2
+ type __VLS_Props = {
3
+ deviceType?: DeviceType;
4
+ checkFunction?: "ua" | "screen-width";
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").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").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 @@
1
+ export * from "./is-mobile";
@@ -0,0 +1,4 @@
1
+ import { ComputedRef, Ref } from "vue";
2
+ export declare const SuViewCtrlInjectKeyIsMobile: unique symbol;
3
+ export declare function useIsMobile(): Ref<boolean, boolean> | ComputedRef<boolean>;
4
+ export declare function provideIsMobile(p: Ref<boolean> | ComputedRef<boolean>): void;
@@ -0,0 +1,4 @@
1
+ export { default as IconMenu } from "./menu.svg?component";
2
+ export { default as IconHome } from "./home.svg?component";
3
+ export { default as IconArrowRight } from "./arrow-right.svg?component";
4
+ export { default as IconArrowDown } from "./arrow-down.svg?component";
@@ -0,0 +1,3 @@
1
+ import "./style/index.css";
2
+ export * from "./components";
3
+ export * from "./context";
@@ -0,0 +1,2 @@
1
+ export type Size = "medium" | "small" | "mini";
2
+ export type ThemeColor = "info" | "primary" | "success" | "warning" | "danger";
@@ -0,0 +1,6 @@
1
+ export * from "./z-index";
2
+ export type StringOrNumberValueKey<T> = {
3
+ [k in keyof T]: T[k] extends string | number ? k : never;
4
+ }[keyof T];
5
+ export type ObjectKeyProp<T, P extends any[] = [index: number]> = StringOrNumberValueKey<T> | ((data: T, ...prop: P) => string | number);
6
+ export declare function getObjectKeyFn<T, P extends any[] = [index: number]>(recordKey?: ObjectKeyProp<T, P> | undefined): ((data: T, ...prop: P) => string | number) | ((record: T) => string | number) | undefined;
@@ -0,0 +1 @@
1
+ export declare function getNewIndex(): number;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vite", { with: { "resolution-mode": "import" } }).UserConfig;
2
+ export default _default;
package/build-ts/main.js DELETED
@@ -1,63 +0,0 @@
1
- const fs = require('fs');
2
- const path = require('path');
3
- const srcDir="./src";
4
- const outDir="./out";
5
- const alias = JSON.parse(fs.readFileSync('./tsconfig.json')).compilerOptions.paths;
6
- var down = [];
7
- var task = ["/main.ts"];
8
- while(task.length){
9
- const file=task.pop();
10
- if(down.indexOf(file) != -1) continue;
11
- let fileData = fs.readFileSync(path.join(srcDir, file), "utf8");
12
- let outfile=path.join(outDir, file);
13
- if(file.endsWith(".vue")){
14
- //fileData
15
- fileData=fileData.substring(fileData.indexOf("<script lang=\"ts\">")+18,fileData.lastIndexOf("</script>"));
16
- outfile+=".ts";
17
- }
18
- fileData=fileData.replace(/(?:import|export) (?:.+?) from "(.+?)"/g,function(row,importFile){
19
- if(alias){
20
- Object.keys(alias).find(key => {
21
- const _key = key.replace("*","");
22
- if(importFile.startsWith(_key)){
23
- const _r = path.relative(path.resolve(path.dirname(path.join(srcDir, file))),path.resolve(alias[key][0].replace("*","")));
24
- const r = _r.replace(/\\/g, "/");
25
- row = row.replace(`from "${_key}`,`from "${r}/`);
26
- importFile = importFile.replace(_key, `${r}/`);
27
- return true;
28
- }
29
- return false;
30
- });
31
- }
32
- if(!importFile.startsWith(".")){
33
- return row;
34
- }
35
- let importFile_ = path.join(path.dirname(file), importFile);
36
- if(importFile.lastIndexOf(".")<=importFile.lastIndexOf("/")){
37
- const base = path.join(srcDir, importFile_);
38
- if(fs.existsSync(base+".ts")){
39
- importFile_+=".ts";
40
- }else if(fs.existsSync(base+".tsx")){
41
- importFile_+=".tsx";
42
- }else if(fs.existsSync(base+".d.ts")){
43
- importFile_+=".d.ts";
44
- }else if(fs.existsSync(base+"/index.ts")){
45
- importFile_+="/index.ts";
46
- }
47
- }
48
- task.push(importFile_);
49
- return row;
50
- });
51
- try{
52
- makdir(path.dirname(outfile));
53
- }catch(e){
54
- //nothin to do
55
- }
56
- down.push(file);
57
- fs.writeFileSync(outfile, fileData, {flag: "w+"});
58
- }
59
- function makdir(pathName){
60
- if (fs.existsSync(pathName)) return;
61
- makdir(path.dirname(pathName));
62
- fs.mkdirSync(pathName);
63
- }
package/dist/demo.html DELETED
@@ -1,8 +0,0 @@
1
- <meta charset="utf-8">
2
- <title>star-ui demo</title>
3
- <script src="./star-ui.umd.js"></script>
4
-
5
-
6
- <script>
7
- console.log(star-ui)
8
- </script>