@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,17 @@
1
+ import { Size } from "../../../types.js";
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", { 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: boolean) => any;
13
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: boolean) => 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,5 @@
1
+ export * from "./base/index.js";
2
+ export * from "./data/index.js";
3
+ export * from "./form/index.js";
4
+ export * from "./layout/index.js";
5
+ export * from "./other/index.js";
@@ -0,0 +1,2 @@
1
+ export * from "./page/index.js";
2
+ export * from "./layout/index.js";
@@ -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", { 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,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", { 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>;
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", { 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>;
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/index.js";
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", { 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>;
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", { with: { "resolution-mode": "import" } }).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", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
15
+ "date-click": (date: dayjs.Dayjs) => any;
16
+ }, string, import("vue", { with: { "resolution-mode": "import" } }).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", { with: { "resolution-mode": "import" } }).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/index.js";
2
+ export * from "./calendar/index.js";
@@ -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.js";
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", { 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>;
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.js";
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", { 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>;
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", { 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>;
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.js";
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", { 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>;
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", { 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 @@
1
+ export * from "./is-mobile.js";
@@ -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/index.js";
3
+ export * from "./context/index.js";
@@ -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.js";
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").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>