@pixelium/web-vue 0.0.4 → 0.0.5

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 (119) hide show
  1. package/dist/index.d.ts +162 -120
  2. package/dist/pixelium-vue.cjs +1 -1
  3. package/dist/pixelium-vue.css +1 -1
  4. package/dist/pixelium-vue.js +19 -21
  5. package/dist/pixelium-vue.umd.cjs +1 -1
  6. package/es/alert/index.d.ts +3 -2
  7. package/es/alert/type.d.ts +15 -15
  8. package/es/aside/index.d.ts +3 -2
  9. package/es/auto-complete/index.d.ts +2 -1
  10. package/es/avatar/index.d.ts +3 -2
  11. package/es/back-top/index.d.ts +21 -0
  12. package/es/back-top/type.d.ts +46 -0
  13. package/es/badge/index.d.ts +3 -2
  14. package/es/badge/type.d.ts +12 -12
  15. package/es/breadcrumb/index.d.ts +12 -0
  16. package/es/breadcrumb/type.d.ts +52 -0
  17. package/es/breadcrumb-item/index.d.ts +27 -0
  18. package/es/breadcrumb-item/type.d.ts +49 -0
  19. package/es/button/index.d.ts +3 -2
  20. package/es/button-group/index.d.ts +3 -2
  21. package/es/checkbox/index.d.ts +3 -2
  22. package/es/checkbox-group/index.d.ts +3 -2
  23. package/es/col/index.d.ts +3 -2
  24. package/es/container/index.d.ts +3 -2
  25. package/es/dialog/dialog-wrapped.d.ts +9 -8
  26. package/es/dialog/dialog.d.ts +9 -8
  27. package/es/dialog/type.d.ts +58 -58
  28. package/es/divider/index.d.ts +2 -1
  29. package/es/drop-down/index.d.ts +36 -0
  30. package/es/drop-down/type.d.ts +140 -0
  31. package/es/drop-down-list/index.d.ts +10 -0
  32. package/es/drop-down-list/type.d.ts +19 -0
  33. package/es/empty/index.d.ts +3 -2
  34. package/es/footer/index.d.ts +3 -2
  35. package/es/form/index.d.ts +3 -2
  36. package/es/form-item/index.d.ts +9 -8
  37. package/es/grid/index.d.ts +3 -2
  38. package/es/grid-item/index.d.ts +3 -2
  39. package/es/header/index.d.ts +3 -2
  40. package/es/icon/index.d.ts +3 -2
  41. package/es/image/index.d.ts +3 -2
  42. package/es/index.d.ts +1 -1
  43. package/es/index.js +1 -1
  44. package/es/input/index.d.ts +7 -6
  45. package/es/input-group/index.d.ts +3 -2
  46. package/es/input-group-label/index.d.ts +3 -2
  47. package/es/input-number/index.d.ts +5 -4
  48. package/es/input-tag/index.css +1 -0
  49. package/es/input-tag/index.d.ts +13 -12
  50. package/es/link/index.d.ts +3 -2
  51. package/es/main/index.d.ts +3 -2
  52. package/es/mask/index.d.ts +2 -1
  53. package/es/menu/index.d.ts +24 -0
  54. package/es/menu/type.d.ts +145 -0
  55. package/es/menu-group/index.d.ts +16 -0
  56. package/es/menu-group/type.d.ts +19 -0
  57. package/es/menu-item/index.d.ts +26 -0
  58. package/es/menu-item/type.d.ts +44 -0
  59. package/es/message/index.d.ts +2 -1
  60. package/es/message-box/message-box-wrapped.d.ts +2 -1
  61. package/es/message-box/message-box.d.ts +2 -1
  62. package/es/option-list/index.d.ts +2 -1
  63. package/es/popconfirm/index.d.ts +2 -1
  64. package/es/popconfirm/type.d.ts +35 -35
  65. package/es/popover/index.d.ts +2 -1
  66. package/es/popup/index.d.ts +2 -1
  67. package/es/popup/use-mouse-position.d.ts +1 -0
  68. package/es/popup/util.d.ts +6 -0
  69. package/es/popup-content/index.d.ts +5 -4
  70. package/es/popup-portal/index.d.ts +5 -4
  71. package/es/popup-trigger/index.d.ts +2 -1
  72. package/es/popup-wrapper/index.d.ts +5 -4
  73. package/es/popup-wrapper/use-popup-wrapper-manager.d.ts +22 -1
  74. package/es/progress/index.d.ts +4 -3
  75. package/es/progress/type.d.ts +14 -14
  76. package/es/radio/index.d.ts +3 -2
  77. package/es/radio-group/index.d.ts +3 -2
  78. package/es/row/index.d.ts +3 -2
  79. package/es/scroll-bar/index.d.ts +40 -0
  80. package/es/scroll-bar/type.d.ts +85 -0
  81. package/es/scroll-bar/use-scroll-bar.d.ts +1 -0
  82. package/es/select/index.css +1 -1
  83. package/es/select/index.d.ts +2 -1
  84. package/es/share/hook/use-expand.d.ts +2 -0
  85. package/es/share/hook/use-hidden-measure.d.ts +1 -0
  86. package/es/share/hook/use-pixel-size.d.ts +1 -0
  87. package/es/share/util/locale.d.ts +4 -0
  88. package/es/share/util/scroll.d.ts +2 -0
  89. package/es/slider/index.d.ts +16 -15
  90. package/es/space/index.d.ts +2 -1
  91. package/es/spin/index.d.ts +6 -5
  92. package/es/submenu/index.d.ts +28 -0
  93. package/es/submenu/type.d.ts +60 -0
  94. package/es/switch/index.d.ts +3 -2
  95. package/es/table/index.d.ts +68 -0
  96. package/es/table/module/cell-span.d.ts +7 -0
  97. package/es/table/module/column.d.ts +46 -0
  98. package/es/table/module/draw.d.ts +11 -0
  99. package/es/table/module/event.d.ts +9 -0
  100. package/es/table/module/expandable.d.ts +20 -0
  101. package/es/table/module/filterable.d.ts +9 -0
  102. package/es/table/module/selection.d.ts +20 -0
  103. package/es/table/module/share.d.ts +8 -0
  104. package/es/table/module/sortable.d.ts +10 -0
  105. package/es/table/module/summary.d.ts +2 -0
  106. package/es/table/type.d.ts +733 -0
  107. package/es/tag/index.css +3 -3
  108. package/es/tag/index.d.ts +3 -2
  109. package/es/text-outline/index.d.ts +3 -2
  110. package/es/textarea/index.d.ts +5 -4
  111. package/es/theme/theme.d.ts +21 -0
  112. package/es/{share/util → theme}/theme.js +22 -22
  113. package/es/tooltip/index.d.ts +2 -1
  114. package/es/vendor.js +1 -1
  115. package/es/virtual-list/index.d.ts +2 -1
  116. package/package.json +1 -1
  117. package/es/share/hook/use-props-detect.d.ts +0 -2
  118. package/es/share/util/pixel.d.ts +0 -4
  119. package/es/share/util/theme.d.ts +0 -7
@@ -4,7 +4,7 @@ declare var __VLS_1: {};
4
4
  type __VLS_Slots = {} & {
5
5
  default?: (props: typeof __VLS_1) => any;
6
6
  };
7
- declare const __VLS_component: import("vue").DefineComponent<GridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GridProps> & Readonly<{}>, {
7
+ declare const __VLS_base: import("vue").DefineComponent<GridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GridProps> & Readonly<{}>, {
8
8
  gutter: number | {
9
9
  x?: number;
10
10
  y?: number;
@@ -14,7 +14,8 @@ declare const __VLS_component: import("vue").DefineComponent<GridProps, {}, {},
14
14
  }>;
15
15
  column: number | ValueWithDeviceWidth<number>;
16
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
18
19
  export default _default;
19
20
  type __VLS_WithSlots<T, S> = T & {
20
21
  new (): {
@@ -3,10 +3,11 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<GridItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GridItemProps> & Readonly<{}>, {
6
+ declare const __VLS_base: import("vue").DefineComponent<GridItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GridItemProps> & Readonly<{}>, {
7
7
  offset: number | import("..").ValueWithDeviceWidth<number>;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
11
12
  type __VLS_WithSlots<T, S> = T & {
12
13
  new (): {
@@ -3,10 +3,11 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<HeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeaderProps> & Readonly<{}>, {
6
+ declare const __VLS_base: import("vue").DefineComponent<HeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeaderProps> & Readonly<{}>, {
7
7
  dark: boolean;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
11
12
  type __VLS_WithSlots<T, S> = T & {
12
13
  new (): {
@@ -3,14 +3,15 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {
6
+ declare const __VLS_base: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {
7
7
  size: number | string;
8
8
  color: string;
9
9
  rotate: number;
10
10
  spin: boolean;
11
11
  flip: "horizontal" | "vertical" | "both" | "none";
12
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;
15
16
  type __VLS_WithSlots<T, S> = T & {
16
17
  new (): {
@@ -5,7 +5,7 @@ type __VLS_Slots = {} & {
5
5
  } & {
6
6
  error?: (props: typeof __VLS_3) => any;
7
7
  };
8
- declare const __VLS_component: import("vue").DefineComponent<ImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ declare const __VLS_base: import("vue").DefineComponent<ImageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  error: (img: HTMLImageElement, error: string | Event) => any;
10
10
  close: (event: MouseEvent) => any;
11
11
  load: (img: HTMLImageElement, event: Event) => any;
@@ -26,7 +26,8 @@ declare const __VLS_component: import("vue").DefineComponent<ImageProps, {}, {},
26
26
  referrerpolicy: string;
27
27
  crossorigin: "anonymous" | "use-credentials" | "";
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
+ declare const _default: typeof __VLS_export;
30
31
  export default _default;
31
32
  type __VLS_WithSlots<T, S> = T & {
32
33
  new (): {
package/es/index.d.ts CHANGED
@@ -15,7 +15,7 @@ import Main from './main/index.ts';
15
15
  import Aside from './aside/index.ts';
16
16
  import Header from './header/index.ts';
17
17
  import Footer from './footer/index.ts';
18
- import { setThemeColor, resetThemeColor, setPixelSize, resetPixelSize } from './share/util/theme.ts';
18
+ import { setThemeColor, resetThemeColor, setPixelSize, resetPixelSize } from './theme/theme.ts';
19
19
  import { useThemeMode } from './share/hook/use-theme-mode.ts';
20
20
  import Icon from './icon/index.ts';
21
21
  import Input from './input/index.ts';
package/es/index.js CHANGED
@@ -34,7 +34,7 @@ import { t as aside_default } from "./aside/index.js";
34
34
  import { t as header_default } from "./header/index.js";
35
35
  import { t as footer_default } from "./footer/index.js";
36
36
  import "./share/util/console.js";
37
- import { i as setThemeColor, n as resetThemeColor, r as setPixelSize, t as resetPixelSize } from "./share/util/theme.js";
37
+ import { i as setThemeColor, n as resetThemeColor, r as setPixelSize, t as resetPixelSize } from "./theme/theme.js";
38
38
  import { t as useThemeMode } from "./share/hook/use-theme-mode.js";
39
39
  import { t as icon_default } from "./icon/index.js";
40
40
  import "./input/draw.js";
@@ -1,17 +1,17 @@
1
1
  import type { InputExpose, InputProps } from './type';
2
- declare var __VLS_1: {}, __VLS_27: {
2
+ declare var __VLS_1: {}, __VLS_24: {
3
3
  value: string | import("parsnip-kit").Nullish;
4
4
  count: number;
5
5
  maxLength: number | undefined;
6
- }, __VLS_34: {};
6
+ }, __VLS_31: {};
7
7
  type __VLS_Slots = {} & {
8
8
  prefix?: (props: typeof __VLS_1) => any;
9
9
  } & {
10
- count?: (props: typeof __VLS_27) => any;
10
+ count?: (props: typeof __VLS_24) => any;
11
11
  } & {
12
- suffix?: (props: typeof __VLS_34) => any;
12
+ suffix?: (props: typeof __VLS_31) => any;
13
13
  };
14
- declare const __VLS_component: import("vue").DefineComponent<InputProps, InputExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ declare const __VLS_base: import("vue").DefineComponent<InputProps, InputExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
15
  clear: (value: string) => any;
16
16
  change: (value: string, e?: Event | undefined) => any;
17
17
  blur: (e: FocusEvent) => any;
@@ -34,7 +34,8 @@ declare const __VLS_component: import("vue").DefineComponent<InputProps, InputEx
34
34
  showCount: boolean;
35
35
  status: "success" | "warning" | "error" | "normal";
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
37
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
+ declare const _default: typeof __VLS_export;
38
39
  export default _default;
39
40
  type __VLS_WithSlots<T, S> = T & {
40
41
  new (): {
@@ -3,12 +3,13 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<InputGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupProps> & Readonly<{}>, {
6
+ declare const __VLS_base: import("vue").DefineComponent<InputGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupProps> & Readonly<{}>, {
7
7
  disabled: boolean;
8
8
  readonly: boolean;
9
9
  shape: "rect" | "round" | "default";
10
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
12
13
  export default _default;
13
14
  type __VLS_WithSlots<T, S> = T & {
14
15
  new (): {
@@ -3,8 +3,9 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<InputGroupLabelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
6
+ declare const __VLS_base: import("vue").DefineComponent<InputGroupLabelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
+ declare const _default: typeof __VLS_export;
8
9
  export default _default;
9
10
  type __VLS_WithSlots<T, S> = T & {
10
11
  new (): {
@@ -1,11 +1,11 @@
1
1
  import type { InputNumberExpose, InputNumberProps } from './type';
2
- declare var __VLS_1: {}, __VLS_60: {};
2
+ declare var __VLS_1: {}, __VLS_55: {};
3
3
  type __VLS_Slots = {} & {
4
4
  prefix?: (props: typeof __VLS_1) => any;
5
5
  } & {
6
- suffix?: (props: typeof __VLS_60) => any;
6
+ suffix?: (props: typeof __VLS_55) => any;
7
7
  };
8
- declare const __VLS_component: import("vue").DefineComponent<InputNumberProps, InputNumberExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ declare const __VLS_base: import("vue").DefineComponent<InputNumberProps, InputNumberExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  clear: (value: number) => any;
10
10
  change: (value: number, e?: Event | undefined) => any;
11
11
  blur: (e: FocusEvent) => any;
@@ -31,7 +31,8 @@ declare const __VLS_component: import("vue").DefineComponent<InputNumberProps, I
31
31
  strickStep: boolean;
32
32
  buttonPlacement: "start" | "end" | "both" | "start-reverse" | "end-reverse" | "both-reverse";
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
+ declare const _default: typeof __VLS_export;
35
36
  export default _default;
36
37
  type __VLS_WithSlots<T, S> = T & {
37
38
  new (): {
@@ -9,6 +9,7 @@
9
9
  color: var(--px-neutral-10);
10
10
  display: flex;
11
11
  box-sizing: border-box;
12
+ min-height: var(--input-size);
12
13
  cursor: text;
13
14
  transition: 0.25s;
14
15
  flex-grow: 1;
@@ -1,31 +1,31 @@
1
1
  import type { InputTagExpose, InputTagProps } from './type';
2
- declare var __VLS_1: {}, __VLS_10: {
2
+ declare var __VLS_1: {}, __VLS_11: {
3
3
  tag: string;
4
4
  index: number;
5
- }, __VLS_16: {
5
+ }, __VLS_19: {
6
6
  tag: string;
7
7
  index: number;
8
- }, __VLS_26: {
8
+ }, __VLS_33: {
9
9
  tag: string;
10
10
  index: number;
11
- }, __VLS_36: {
11
+ }, __VLS_44: {
12
12
  tag: string;
13
13
  index: number;
14
- }, __VLS_51: {};
14
+ }, __VLS_58: {};
15
15
  type __VLS_Slots = {} & {
16
16
  prefix?: (props: typeof __VLS_1) => any;
17
17
  } & {
18
- tag?: (props: typeof __VLS_10) => any;
18
+ tag?: (props: typeof __VLS_11) => any;
19
19
  } & {
20
- tag?: (props: typeof __VLS_16) => any;
20
+ tag?: (props: typeof __VLS_19) => any;
21
21
  } & {
22
- tag?: (props: typeof __VLS_26) => any;
22
+ tag?: (props: typeof __VLS_33) => any;
23
23
  } & {
24
- tag?: (props: typeof __VLS_36) => any;
24
+ tag?: (props: typeof __VLS_44) => any;
25
25
  } & {
26
- suffix?: (props: typeof __VLS_51) => any;
26
+ suffix?: (props: typeof __VLS_58) => any;
27
27
  };
28
- declare const __VLS_component: import("vue").DefineComponent<InputTagProps, InputTagExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
+ declare const __VLS_base: import("vue").DefineComponent<InputTagProps, InputTagExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
29
  clear: (value: string[]) => any;
30
30
  change: (value: string[]) => any;
31
31
  blur: (e: FocusEvent) => any;
@@ -58,7 +58,8 @@ declare const __VLS_component: import("vue").DefineComponent<InputTagProps, Inpu
58
58
  tagTheme: "primary" | "sakura" | "success" | "warning" | "danger" | "info";
59
59
  tagVariant: "primary" | "plain" | "outline";
60
60
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
61
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
61
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
62
+ declare const _default: typeof __VLS_export;
62
63
  export default _default;
63
64
  type __VLS_WithSlots<T, S> = T & {
64
65
  new (): {
@@ -5,8 +5,9 @@ type __VLS_Slots = {} & {
5
5
  } & {
6
6
  default?: (props: typeof __VLS_8) => any;
7
7
  };
8
- declare const __VLS_component: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
8
+ declare const __VLS_base: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
11
12
  type __VLS_WithSlots<T, S> = T & {
12
13
  new (): {
@@ -3,10 +3,11 @@ declare var __VLS_1: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<MainProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MainProps> & Readonly<{}>, {
6
+ declare const __VLS_base: import("vue").DefineComponent<MainProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MainProps> & Readonly<{}>, {
7
7
  soft: boolean;
8
8
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
11
12
  type __VLS_WithSlots<T, S> = T & {
12
13
  new (): {
@@ -1,8 +1,9 @@
1
1
  import type { MaskProps } from './type';
2
- declare const _default: import("vue").DefineComponent<MaskProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaskProps> & Readonly<{}>, {
2
+ declare const __VLS_export: import("vue").DefineComponent<MaskProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaskProps> & Readonly<{}>, {
3
3
  zIndex: number;
4
4
  step: number;
5
5
  grid: boolean;
6
6
  lineWidth: number;
7
7
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
8
9
  export default _default;
@@ -0,0 +1,24 @@
1
+ import type { MenuProps } from './type';
2
+ declare const __VLS_export: import("vue").DefineComponent<MenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ select: (index: string | number | symbol, event: MouseEvent) => any;
4
+ "update:active": (value: string | number | symbol) => any;
5
+ "update:expend": (value: (string | number | symbol)[]) => any;
6
+ expandChange: (value: (string | number | symbol)[], event: MouseEvent) => any;
7
+ expand: (index: string | number | symbol, event: MouseEvent) => any;
8
+ fold: (index: string | number | symbol, event: MouseEvent) => any;
9
+ }, string, import("vue").PublicProps, Readonly<MenuProps> & Readonly<{
10
+ onSelect?: ((index: string | number | symbol, event: MouseEvent) => any) | undefined;
11
+ "onUpdate:active"?: ((value: string | number | symbol) => any) | undefined;
12
+ "onUpdate:expend"?: ((value: (string | number | symbol)[]) => any) | undefined;
13
+ onExpandChange?: ((value: (string | number | symbol)[], event: MouseEvent) => any) | undefined;
14
+ onExpand?: ((index: string | number | symbol, event: MouseEvent) => any) | undefined;
15
+ onFold?: ((index: string | number | symbol, event: MouseEvent) => any) | undefined;
16
+ }>, {
17
+ dark: boolean;
18
+ direction: "horizontal" | "vertical";
19
+ ellipsis: boolean;
20
+ collapsed: boolean;
21
+ indent: number;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
@@ -0,0 +1,145 @@
1
+ import type { ComputedRef, Ref } from 'vue';
2
+ import type { GROUP_OPTION_TYPE, SUBMENU_OPTION_TYPE } from '../share/const';
3
+ import type { NavigationOption, ValidVNodeContent } from '../share/type';
4
+ export type MenuProps = {
5
+ /**
6
+ * @property {'horizontal' | 'vertical'} [direction='vertical']
7
+ * @version 0.1.0
8
+ */
9
+ direction?: 'horizontal' | 'vertical';
10
+ /**
11
+ * @property {boolean} [dark=false]
12
+ * @version 0.1.0
13
+ */
14
+ dark?: boolean;
15
+ /**
16
+ * @property {number | string | symbol | null} [active]
17
+ * @version 0.1.0
18
+ */
19
+ active?: number | string | symbol | null;
20
+ /**
21
+ * @property {number | string | symbol | null} [defaultActive]
22
+ * @version 0.1.0
23
+ */
24
+ defaultActive?: number | string | symbol | null;
25
+ /**
26
+ * @property {(number | string | symbol)[] | null} [expanded]
27
+ * @version 0.1.0
28
+ */
29
+ expanded?: (number | string | symbol)[] | null;
30
+ /**
31
+ * @property {(number | string | symbol)[] | null} [defaultExpanded]
32
+ * @version 0.1.0
33
+ */
34
+ defaultExpanded?: (number | string | symbol)[] | null;
35
+ /**
36
+ * @property {boolean} [collapsed=false]
37
+ * @version 0.1.0
38
+ */
39
+ collapsed?: boolean;
40
+ /**
41
+ * @property {'inline' | 'popover'} [submenuMode='inline']
42
+ * @version 0.1.0
43
+ */
44
+ submenuMode?: 'inline' | 'popover';
45
+ /**
46
+ * @property {'hover' | 'click'} [submenuTrigger='hover']
47
+ * @version 0.1.0
48
+ */
49
+ submenuTrigger?: 'hover' | 'click';
50
+ /**
51
+ * @property {number} [indent=16]
52
+ * @version 0.1.0
53
+ */
54
+ indent?: number;
55
+ /**
56
+ * @property {boolean} [ellipsis=true]
57
+ * @version 0.1.0
58
+ */
59
+ ellipsis?: boolean;
60
+ /**
61
+ * @property {(string | MenuOption | MenuGroupOption | SubmenuOption)[]} [options]
62
+ * @version 0.1.0
63
+ */
64
+ options?: (string | MenuOption | MenuGroupOption | SubmenuOption)[];
65
+ };
66
+ export type MenuEvents = {
67
+ /**
68
+ * @event update:active
69
+ * @param {number | string | symbol} value
70
+ * @version 0.1.0
71
+ */
72
+ 'update:active': [value: number | string | symbol];
73
+ /**
74
+ * @event update:expend
75
+ * @param {(number | string | symbol)[]} value
76
+ * @version 0.1.0
77
+ */
78
+ 'update:expend': [value: (number | string | symbol)[]];
79
+ /**
80
+ * @event select
81
+ * @param {number | string | symbol} index
82
+ * @param {MouseEvent} event
83
+ * @version 0.1.0
84
+ */
85
+ select: [index: number | string | symbol, event: MouseEvent];
86
+ /**
87
+ * @event expandChange
88
+ * @param {(number | string | symbol)[]} value
89
+ * @param {MouseEvent} event
90
+ * @version 0.1.0
91
+ */
92
+ expandChange: [value: (number | string | symbol)[], event: MouseEvent];
93
+ /**
94
+ * @event expand
95
+ * @param {number | string | symbol} index
96
+ * @param {MouseEvent} event
97
+ * @version 0.1.0
98
+ */
99
+ expand: [index: number | string | symbol, event: MouseEvent];
100
+ /**
101
+ * @event fold
102
+ * @param {number | string | symbol} index
103
+ * @param {MouseEvent} event
104
+ * @version 0.1.0
105
+ */
106
+ fold: [index: number | string | symbol, event: MouseEvent];
107
+ };
108
+ export type MenuSlots = {
109
+ /**
110
+ * @slot default
111
+ * @version 0.1.0
112
+ */
113
+ default: {};
114
+ };
115
+ export type MenuProvide = {
116
+ direction: Ref<MenuProps['direction']>;
117
+ active: Ref<MenuProps['active']>;
118
+ expanded: Ref<MenuProps['expanded']>;
119
+ submenuTrigger: Ref<MenuProps['submenuTrigger']>;
120
+ submenuMode: Ref<MenuProps['submenuMode']>;
121
+ collapsed: Ref<boolean>;
122
+ dark: ComputedRef<boolean>;
123
+ darkMode: Ref<boolean>;
124
+ indent: Ref<number | undefined>;
125
+ selectMenu: (key: number | string | symbol, event: MouseEvent) => any;
126
+ toggleOpenMenu: (key: number | string | symbol, event: MouseEvent) => any;
127
+ updateRender: () => void;
128
+ };
129
+ export interface MenuOption extends NavigationOption {
130
+ disabled?: boolean;
131
+ href?: string;
132
+ route?: string | object;
133
+ target?: string;
134
+ icon?: () => ValidVNodeContent;
135
+ }
136
+ export interface MenuGroupOption extends NavigationOption {
137
+ children: (string | MenuOption | MenuGroupOption | SubmenuOption)[];
138
+ type: typeof GROUP_OPTION_TYPE;
139
+ }
140
+ export interface SubmenuOption extends NavigationOption {
141
+ children: (string | MenuOption | MenuGroupOption | SubmenuOption)[];
142
+ disabled?: boolean;
143
+ type: typeof SUBMENU_OPTION_TYPE;
144
+ icon?: () => ValidVNodeContent;
145
+ }
@@ -0,0 +1,16 @@
1
+ import type { MenuGroupProps } from './type';
2
+ declare var __VLS_1: {}, __VLS_3: {};
3
+ type __VLS_Slots = {} & {
4
+ label?: (props: typeof __VLS_1) => any;
5
+ } & {
6
+ default?: (props: typeof __VLS_3) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<MenuGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MenuGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,19 @@
1
+ export type MenuGroupProps = {
2
+ /**
3
+ * @property {string} [label]
4
+ * @version 0.1.0
5
+ */
6
+ label?: string;
7
+ };
8
+ export type MenuGroupSlots = {
9
+ /**
10
+ * @slot default
11
+ * @version 0.1.0
12
+ */
13
+ default: {};
14
+ /**
15
+ * @slot label
16
+ * @version 0.1.0
17
+ */
18
+ label: {};
19
+ };
@@ -0,0 +1,26 @@
1
+ import type { MenuItemProps } from './type';
2
+ declare var __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {}, __VLS_17: {}, __VLS_19: {};
3
+ type __VLS_Slots = {} & {
4
+ icon?: (props: typeof __VLS_9) => any;
5
+ } & {
6
+ default?: (props: typeof __VLS_11) => any;
7
+ } & {
8
+ icon?: (props: typeof __VLS_13) => any;
9
+ } & {
10
+ default?: (props: typeof __VLS_15) => any;
11
+ } & {
12
+ icon?: (props: typeof __VLS_17) => any;
13
+ } & {
14
+ default?: (props: typeof __VLS_19) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<MenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MenuItemProps> & Readonly<{}>, {
17
+ disabled: boolean;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,44 @@
1
+ export type MenuItemProps = {
2
+ /**
3
+ * @property {string} [label]
4
+ * @version 0.1.0
5
+ */
6
+ label?: string;
7
+ /**
8
+ * @property {number | string | symbol} index
9
+ * @version 0.1.0
10
+ */
11
+ index: number | string | symbol;
12
+ /**
13
+ * @property {boolean} [disabled=false]
14
+ * @version 0.1.0
15
+ */
16
+ disabled?: boolean;
17
+ /**
18
+ * @property {string | object} [route]
19
+ * @version 0.1.0
20
+ */
21
+ route?: string | object;
22
+ /**
23
+ * @property {string} [href]
24
+ * @version 0.1.0
25
+ */
26
+ href?: string;
27
+ /**
28
+ * @property {string} [target]
29
+ * @version 0.1.0
30
+ */
31
+ target?: string;
32
+ };
33
+ export type MenuItemSlots = {
34
+ /**
35
+ * @slot default
36
+ * @version 0.1.0
37
+ */
38
+ default: {};
39
+ /**
40
+ * @slot icon
41
+ * @version 0.1.0
42
+ */
43
+ icon: {};
44
+ };
@@ -1,6 +1,6 @@
1
1
  import type { MessageProps } from './type';
2
2
  declare function close(): void;
3
- declare const _default: import("vue").DefineComponent<MessageProps, {
3
+ declare const __VLS_export: import("vue").DefineComponent<MessageProps, {
4
4
  close: typeof close;
5
5
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  close: (...args: any[]) => void;
@@ -11,4 +11,5 @@ declare const _default: import("vue").DefineComponent<MessageProps, {
11
11
  content: import("..").ValidContent;
12
12
  duration: number;
13
13
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;
@@ -4,7 +4,8 @@ type __VLS_Props = MessageBoxProps & {
4
4
  'onUpdate:messages': (value: MessageProps[]) => any;
5
5
  onClose: (id: string | number | symbol) => any;
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_Props, MessageBoxExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, MessageBoxExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
8
  root: string | HTMLElement;
9
9
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
@@ -3,7 +3,7 @@ import type { MessageBoxExpose, MessageBoxProps } from './type';
3
3
  type __VLS_Props = MessageBoxProps & {
4
4
  'onUpdate:messages': (value: MessageProps[]) => any;
5
5
  };
6
- declare const _default: import("vue").DefineComponent<__VLS_Props, MessageBoxExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, MessageBoxExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  close: (id: string | number | symbol) => any;
8
8
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  onClose?: ((id: string | number | symbol) => any) | undefined;
@@ -11,4 +11,5 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, MessageBoxExp
11
11
  placement: "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
12
12
  position: "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
13
13
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import type { OptionListGroupOption, OptionListOption, OptionListProps } from './type';
2
- declare const _default: import("vue").DefineComponent<OptionListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ declare const __VLS_export: import("vue").DefineComponent<OptionListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
3
  select: (value: any, option: string | OptionListOption<any>, e: MouseEvent) => any;
4
4
  }, string, import("vue").PublicProps, Readonly<OptionListProps> & Readonly<{
5
5
  onSelect?: ((value: any, option: string | OptionListOption<any>, e: MouseEvent) => any) | undefined;
@@ -8,4 +8,5 @@ declare const _default: import("vue").DefineComponent<OptionListProps, {}, {}, {
8
8
  activeValues: any[];
9
9
  virtualScroll: boolean;
10
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;