@pixelium/web-vue 0.0.3 → 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 (127) 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.css +1 -2
  10. package/es/auto-complete/index.d.ts +2 -1
  11. package/es/avatar/index.d.ts +3 -2
  12. package/es/back-top/index.d.ts +21 -0
  13. package/es/back-top/type.d.ts +46 -0
  14. package/es/badge/draw.d.ts +1 -0
  15. package/es/badge/index.d.ts +26 -0
  16. package/es/badge/type.d.ts +69 -0
  17. package/es/breadcrumb/index.d.ts +12 -0
  18. package/es/breadcrumb/type.d.ts +52 -0
  19. package/es/breadcrumb-item/index.d.ts +27 -0
  20. package/es/breadcrumb-item/type.d.ts +49 -0
  21. package/es/button/index.css +1 -8
  22. package/es/button/index.d.ts +3 -2
  23. package/es/button-group/index.d.ts +3 -2
  24. package/es/checkbox/index.d.ts +3 -2
  25. package/es/checkbox-group/index.d.ts +3 -2
  26. package/es/col/index.d.ts +3 -2
  27. package/es/container/index.d.ts +3 -2
  28. package/es/dialog/dialog-wrapped.d.ts +9 -8
  29. package/es/dialog/dialog.d.ts +9 -8
  30. package/es/dialog/type.d.ts +58 -58
  31. package/es/divider/index.d.ts +2 -1
  32. package/es/drop-down/index.d.ts +36 -0
  33. package/es/drop-down/type.d.ts +140 -0
  34. package/es/drop-down-list/index.d.ts +10 -0
  35. package/es/drop-down-list/type.d.ts +19 -0
  36. package/es/empty/index.d.ts +3 -2
  37. package/es/footer/index.d.ts +3 -2
  38. package/es/form/index.d.ts +3 -2
  39. package/es/form-item/index.d.ts +9 -8
  40. package/es/grid/index.d.ts +3 -2
  41. package/es/grid-item/index.d.ts +3 -2
  42. package/es/header/index.d.ts +3 -2
  43. package/es/icon/index.d.ts +3 -2
  44. package/es/image/index.d.ts +3 -2
  45. package/es/index.d.ts +1 -1
  46. package/es/index.js +1 -1
  47. package/es/input/index.css +1 -2
  48. package/es/input/index.d.ts +7 -6
  49. package/es/input-group/index.d.ts +3 -2
  50. package/es/input-group-label/index.d.ts +3 -2
  51. package/es/input-number/index.css +1 -2
  52. package/es/input-number/index.d.ts +5 -4
  53. package/es/input-tag/index.css +2 -2
  54. package/es/input-tag/index.d.ts +13 -12
  55. package/es/link/index.css +1 -6
  56. package/es/link/index.d.ts +3 -2
  57. package/es/main/index.d.ts +3 -2
  58. package/es/mask/index.d.ts +2 -1
  59. package/es/menu/index.d.ts +24 -0
  60. package/es/menu/type.d.ts +145 -0
  61. package/es/menu-group/index.d.ts +16 -0
  62. package/es/menu-group/type.d.ts +19 -0
  63. package/es/menu-item/index.d.ts +26 -0
  64. package/es/menu-item/type.d.ts +44 -0
  65. package/es/message/index.d.ts +2 -1
  66. package/es/message-box/message-box-wrapped.d.ts +2 -1
  67. package/es/message-box/message-box.d.ts +2 -1
  68. package/es/option-list/index.d.ts +2 -1
  69. package/es/popconfirm/index.d.ts +32 -0
  70. package/es/popconfirm/type.d.ts +199 -0
  71. package/es/popover/index.d.ts +2 -1
  72. package/es/popup/index.d.ts +2 -1
  73. package/es/popup/use-mouse-position.d.ts +1 -0
  74. package/es/popup/util.d.ts +6 -0
  75. package/es/popup-content/index.d.ts +5 -4
  76. package/es/popup-portal/index.d.ts +5 -4
  77. package/es/popup-trigger/index.d.ts +2 -1
  78. package/es/popup-wrapper/index.d.ts +5 -4
  79. package/es/popup-wrapper/use-popup-wrapper-manager.d.ts +22 -1
  80. package/es/progress/draw.d.ts +6 -0
  81. package/es/progress/index.d.ts +32 -0
  82. package/es/progress/type.d.ts +67 -0
  83. package/es/radio/index.d.ts +3 -2
  84. package/es/radio-group/index.d.ts +3 -2
  85. package/es/row/index.d.ts +3 -2
  86. package/es/scroll-bar/index.d.ts +40 -0
  87. package/es/scroll-bar/type.d.ts +85 -0
  88. package/es/scroll-bar/use-scroll-bar.d.ts +1 -0
  89. package/es/select/index.css +2 -3
  90. package/es/select/index.d.ts +2 -1
  91. package/es/share/hook/use-expand.d.ts +2 -0
  92. package/es/share/hook/use-hidden-measure.d.ts +1 -0
  93. package/es/share/hook/use-pixel-size.d.ts +1 -0
  94. package/es/share/util/locale.d.ts +8 -0
  95. package/es/share/util/scroll.d.ts +2 -0
  96. package/es/slider/index.d.ts +16 -15
  97. package/es/space/index.d.ts +2 -1
  98. package/es/spin/index.d.ts +6 -5
  99. package/es/submenu/index.d.ts +28 -0
  100. package/es/submenu/type.d.ts +60 -0
  101. package/es/switch/index.d.ts +3 -2
  102. package/es/table/index.d.ts +68 -0
  103. package/es/table/module/cell-span.d.ts +7 -0
  104. package/es/table/module/column.d.ts +46 -0
  105. package/es/table/module/draw.d.ts +11 -0
  106. package/es/table/module/event.d.ts +9 -0
  107. package/es/table/module/expandable.d.ts +20 -0
  108. package/es/table/module/filterable.d.ts +9 -0
  109. package/es/table/module/selection.d.ts +20 -0
  110. package/es/table/module/share.d.ts +8 -0
  111. package/es/table/module/sortable.d.ts +10 -0
  112. package/es/table/module/summary.d.ts +2 -0
  113. package/es/table/type.d.ts +733 -0
  114. package/es/tag/index.css +3 -3
  115. package/es/tag/index.d.ts +3 -2
  116. package/es/text-outline/index.d.ts +3 -2
  117. package/es/textarea/index.css +1 -2
  118. package/es/textarea/index.d.ts +5 -4
  119. package/es/theme/theme.d.ts +21 -0
  120. package/es/{share/util → theme}/theme.js +22 -22
  121. package/es/tooltip/index.d.ts +2 -1
  122. package/es/vendor.js +1 -1
  123. package/es/virtual-list/index.d.ts +2 -1
  124. package/package.json +1 -1
  125. package/es/share/hook/use-props-detect.d.ts +0 -2
  126. package/es/share/util/pixel.d.ts +0 -4
  127. package/es/share/util/theme.d.ts +0 -7
@@ -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;
@@ -0,0 +1,32 @@
1
+ import type { PopconfirmProps, PopconfirmExpose } from './type';
2
+ type __VLS_Props = PopconfirmProps & {
3
+ onBeforeOk?: () => Promise<boolean | void> | boolean | void;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, PopconfirmExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ cancel: (event: MouseEvent | KeyboardEvent) => any;
7
+ close: (e: MouseEvent | TouchEvent) => any;
8
+ open: (e: MouseEvent) => any;
9
+ "update:visible": (value: boolean) => any;
10
+ ok: (event: MouseEvent) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onCancel?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
13
+ onClose?: ((e: MouseEvent | TouchEvent) => any) | undefined;
14
+ onOpen?: ((e: MouseEvent) => any) | undefined;
15
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
16
+ onOk?: ((event: MouseEvent) => any) | undefined;
17
+ }>, {
18
+ variant: "dark" | "light";
19
+ loading: boolean;
20
+ placement: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
21
+ root: HTMLElement | string;
22
+ offset: number;
23
+ visible: boolean | null;
24
+ defaultVisible: boolean | null;
25
+ arrow: boolean;
26
+ destroyOnHide: boolean;
27
+ showCancel: boolean;
28
+ showFooter: boolean;
29
+ showIcon: boolean;
30
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
@@ -0,0 +1,199 @@
1
+ import type { ButtonProps, ButtonEvents } from '../button/type';
2
+ import type { PopoverEvents, PopoverProps } from '../popover/type';
3
+ import type { EmitEvent, RestAttrs } from '../share/type';
4
+ export type PopconfirmProps = {
5
+ /**
6
+ * @property {string} [content]
7
+ * @version 0.1.0
8
+ */
9
+ content?: string;
10
+ /**
11
+ * @property {boolean | null} [visible]
12
+ * @version 0.1.0
13
+ */
14
+ visible?: boolean | null;
15
+ /**
16
+ * @property {boolean | null} [defaultVisible]
17
+ * @version 0.1.0
18
+ */
19
+ defaultVisible?: boolean | null;
20
+ /**
21
+ * @property {boolean} [loading=false]
22
+ * @version 0.1.0
23
+ */
24
+ loading?: boolean;
25
+ /**
26
+ * @property {'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end'} [placement='top']
27
+ * @version 0.1.0
28
+ */
29
+ placement?: 'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end';
30
+ /**
31
+ * @property {string} [okText]
32
+ * @version 0.1.0
33
+ */
34
+ okText?: string;
35
+ /**
36
+ * @property {string} [cancelText]
37
+ * @version 0.1.0
38
+ */
39
+ cancelText?: string;
40
+ /**
41
+ * @property {boolean} [showIcon=true]
42
+ * @version 0.1.0
43
+ */
44
+ showIcon?: boolean;
45
+ /**
46
+ * @property {boolean} [showCancel=true]
47
+ * @version 0.1.0
48
+ */
49
+ showCancel?: boolean;
50
+ /**
51
+ * @property {boolean} [showFooter=true]
52
+ * @version 0.1.0
53
+ */
54
+ showFooter?: boolean;
55
+ /**
56
+ * @property {number} [offset=8]
57
+ * @version 0.1.0
58
+ */
59
+ offset?: number;
60
+ /**
61
+ * @property {'dark' | 'light'} [variant='light']
62
+ * @version 0.1.0
63
+ */
64
+ variant?: 'dark' | 'light';
65
+ /**
66
+ * @property {boolean} [arrow=true]
67
+ * @version 0.1.0
68
+ */
69
+ arrow?: boolean;
70
+ /**
71
+ * @property {boolean} [disabled=false]
72
+ * @version 0.1.0
73
+ */
74
+ disabled?: boolean;
75
+ /**
76
+ * @property {number} [zIndex]
77
+ * @version 0.1.0
78
+ */
79
+ zIndex?: number;
80
+ /**
81
+ * @property { HTMLElement | string} [root='body']
82
+ * @version 0.1.0
83
+ */
84
+ root?: HTMLElement | string;
85
+ /**
86
+ * @property {boolean} [destroyOnHide=false]
87
+ * @version 0.1.0
88
+ */
89
+ destroyOnHide?: boolean;
90
+ /**
91
+ * @property {Omit<PopoverProps, 'visible' | 'content' | 'defaultVisible'> & EmitEvent<PopoverEvents>} [popoverProps]
92
+ * @version 0.1.0
93
+ */
94
+ popoverProps?: Omit<PopoverProps, 'visible' | 'content' | 'defaultVisible'> & EmitEvent<PopoverEvents>;
95
+ /**
96
+ * @property {ButtonProps & EmitEvent<ButtonEvents> & RestAttrs} [okButtonProps]
97
+ * @version 0.1.0
98
+ */
99
+ okButtonProps?: ButtonProps & EmitEvent<ButtonEvents> & RestAttrs;
100
+ /**
101
+ * @property {ButtonProps & EmitEvent<ButtonEvents> & RestAttrs} [cancelButtonProps]
102
+ * @version 0.1.0
103
+ */
104
+ cancelButtonProps?: ButtonProps & EmitEvent<ButtonEvents> & RestAttrs;
105
+ /**
106
+ * @property {RestAttrs} [containerProps]
107
+ * @version 0.1.0
108
+ */
109
+ containerProps?: RestAttrs;
110
+ /**
111
+ * @property {RestAttrs} [contentProps]
112
+ * @version 0.1.0
113
+ */
114
+ contentProps?: RestAttrs;
115
+ /**
116
+ * @property {RestAttrs} [footerProps]
117
+ * @version 0.1.0
118
+ */
119
+ footerProps?: RestAttrs;
120
+ };
121
+ export type PopconfirmEvents = {
122
+ /**
123
+ * @event update:visible
124
+ * @param {boolean} value
125
+ * @version 0.1.0
126
+ */
127
+ 'update:visible': [value: boolean];
128
+ /**
129
+ * @event beforeOk
130
+ * @version 0.1.0
131
+ */
132
+ beforeOk: [];
133
+ /**
134
+ * @event ok
135
+ * @param {MouseEvent} event
136
+ * @version 0.1.0
137
+ */
138
+ ok: [event: MouseEvent];
139
+ /**
140
+ * @event cancel
141
+ * @param {MouseEvent | KeyboardEvent} event
142
+ * @version 0.1.0
143
+ */
144
+ cancel: [event: MouseEvent | KeyboardEvent];
145
+ /**
146
+ * @event close
147
+ * @param {MouseEvent} e
148
+ * @version 0.1.0
149
+ */
150
+ close: [e: MouseEvent | TouchEvent];
151
+ /**
152
+ * @event open
153
+ * @param {MouseEvent} e
154
+ * @version 0.1.0
155
+ */
156
+ open: [e: MouseEvent];
157
+ };
158
+ export type PopconfirmSlots = {
159
+ /**
160
+ * @slot default
161
+ * @version 0.1.0
162
+ */
163
+ default: {};
164
+ /**
165
+ * @slot content
166
+ * @version 0.1.0
167
+ */
168
+ content: {};
169
+ /**
170
+ * @slot icon
171
+ * @version 0.1.0
172
+ */
173
+ icon: {};
174
+ /**
175
+ * @slot footer
176
+ * @version 0.1.0
177
+ */
178
+ footer: {};
179
+ };
180
+ export type PopconfirmExpose = {
181
+ /**
182
+ * @property {() => void} open
183
+ * @version 0.1.0
184
+ */
185
+ open: () => void;
186
+ /**
187
+ * @property {() => void} close
188
+ * @version 0.1.0
189
+ */
190
+ close: () => void;
191
+ /**
192
+ * @ignore
193
+ */
194
+ updateRenderState: () => void;
195
+ /**
196
+ * @ignore
197
+ */
198
+ triggerContent: any;
199
+ };
@@ -1,5 +1,5 @@
1
1
  import type { PopoverProps } from './type';
2
- declare const _default: import("vue").DefineComponent<PopoverProps, {
2
+ declare const __VLS_export: import("vue").DefineComponent<PopoverProps, {
3
3
  readonly triggerContent: ({
4
4
  $: import("vue").ComponentInternalInstance;
5
5
  $data: {};
@@ -114,4 +114,5 @@ declare const _default: import("vue").DefineComponent<PopoverProps, {
114
114
  widthEqual: boolean;
115
115
  destroyOnHide: boolean;
116
116
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
117
+ declare const _default: typeof __VLS_export;
117
118
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { nextTick, type VNode } from 'vue';
2
2
  import type { PopupProps } from './type';
3
- declare const _default: import("vue").DefineComponent<PopupProps, {
3
+ declare const __VLS_export: import("vue").DefineComponent<PopupProps, {
4
4
  triggerContent: import("vue").ShallowRef<({
5
5
  $: import("vue").ComponentInternalInstance;
6
6
  $data: {};
@@ -207,4 +207,5 @@ declare const _default: import("vue").DefineComponent<PopupProps, {
207
207
  widthEqual: boolean;
208
208
  destroyOnHide: boolean;
209
209
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
210
+ declare const _default: typeof __VLS_export;
210
211
  export default _default;
@@ -0,0 +1 @@
1
+ export declare function useMousePosition(): readonly [import("vue").Ref<number, number>, import("vue").Ref<number, number>];
@@ -0,0 +1,6 @@
1
+ import type { VNode } from 'vue';
2
+ import PopupContent from '../popup-content/index.ts';
3
+ import type { PopupContentGetter } from './type';
4
+ export declare const getElFromVNode: (node: VNode) => HTMLElement | SVGElement | null;
5
+ export declare function traversePopupContentGetterImplBFS(root: PopupContentGetter, callback: (content: InstanceType<typeof PopupContent> | undefined | null, id: string) => boolean): boolean;
6
+ export declare function traversePopupContentGetters(nodes: PopupContentGetter[], callback: (content: InstanceType<typeof PopupContent> | undefined | null, id: string) => boolean): boolean;
@@ -1,9 +1,9 @@
1
1
  import type { PopupContentProps } from './type';
2
- declare var __VLS_11: {};
2
+ declare var __VLS_14: {};
3
3
  type __VLS_Slots = {} & {
4
- content?: (props: typeof __VLS_11) => any;
4
+ content?: (props: typeof __VLS_14) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<PopupContentProps, {
6
+ declare const __VLS_base: import("vue").DefineComponent<PopupContentProps, {
7
7
  updateRenderState: () => void;
8
8
  content: import("vue").ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
9
9
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -22,7 +22,8 @@ declare const __VLS_component: import("vue").DefineComponent<PopupContentProps,
22
22
  widthEqual: boolean;
23
23
  destroyOnHide: boolean;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
26
27
  export default _default;
27
28
  type __VLS_WithSlots<T, S> = T & {
28
29
  new (): {
@@ -1,12 +1,13 @@
1
1
  import type { PopupPortalProps } from './type';
2
- declare var __VLS_6: {};
2
+ declare var __VLS_7: {};
3
3
  type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_6) => any;
4
+ default?: (props: typeof __VLS_7) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<PopupPortalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PopupPortalProps> & Readonly<{}>, {
6
+ declare const __VLS_base: import("vue").DefineComponent<PopupPortalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PopupPortalProps> & Readonly<{}>, {
7
7
  root: HTMLElement | string;
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,6 +1,6 @@
1
1
  import { type VNode } from 'vue';
2
2
  import type { PopupTriggerProps } from './type';
3
- declare const _default: import("vue").DefineComponent<PopupTriggerProps, {
3
+ declare const __VLS_export: import("vue").DefineComponent<PopupTriggerProps, {
4
4
  firstVNode: import("vue").ShallowRef<VNode<import("vue").RendererNode, import("vue").RendererElement, {
5
5
  [key: string]: any;
6
6
  }> | null, VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -25,4 +25,5 @@ declare const _default: import("vue").DefineComponent<PopupTriggerProps, {
25
25
  }>, {
26
26
  trigger: "hover" | "click";
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: typeof __VLS_export;
28
29
  export default _default;
@@ -1,15 +1,16 @@
1
1
  import type { PopupWrapperProps } from './type';
2
- declare var __VLS_6: {};
2
+ declare var __VLS_7: {};
3
3
  type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_6) => any;
4
+ default?: (props: typeof __VLS_7) => any;
5
5
  };
6
- declare const __VLS_component: import("vue").DefineComponent<PopupWrapperProps, {
6
+ declare const __VLS_base: import("vue").DefineComponent<PopupWrapperProps, {
7
7
  updateRenderState: () => void;
8
8
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PopupWrapperProps> & Readonly<{}>, {
9
9
  root: HTMLElement | string;
10
10
  destroyOnHide: boolean;
11
11
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
+ declare const _default: typeof __VLS_export;
13
14
  export default _default;
14
15
  type __VLS_WithSlots<T, S> = T & {
15
16
  new (): {
@@ -1 +1,22 @@
1
- export declare const usePopupWrapperManager: (id: string) => readonly [() => void, () => void];
1
+ type PopupWrapperInfo = {
2
+ id: string;
3
+ escKeydownHandler: (e: KeyboardEvent) => void;
4
+ needPreventDocumentScroll: () => boolean;
5
+ getZIndex: () => number;
6
+ };
7
+ declare class PopupWrapperManager {
8
+ private popups;
9
+ sortedPopups: PopupWrapperInfo[];
10
+ private isListening;
11
+ add(info: PopupWrapperInfo): void;
12
+ remove(id: string): void;
13
+ getTop(): PopupWrapperInfo | undefined;
14
+ hasPreventScroll(): boolean;
15
+ private findInsertIndex;
16
+ private updateState;
17
+ clearState(): void;
18
+ }
19
+ export declare const popupWrapperManager: PopupWrapperManager;
20
+ export declare const cleanState: () => void;
21
+ export declare const usePopupWrapperManager: (info: PopupWrapperInfo) => readonly [() => void, () => void];
22
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { RgbaColor } from '../share/type';
2
+ import type { ProgressProps } from './type';
3
+ export declare function getBackgroundColor(theme: ProgressProps['theme'], palette: RgbaColor[] | null): RgbaColor | null;
4
+ export declare function getGradientColor(theme: ProgressProps['theme'], palette: RgbaColor[] | null): RgbaColor | null;
5
+ export declare const drawBorder: (ctx: CanvasRenderingContext2D, width: number, height: number, borderColor: RgbaColor, pixelSize: number) => void;
6
+ export declare const drawChecker: (ctx: CanvasRenderingContext2D, width: number, height: number, checkerWidth: number, gradientColor: string, borderWidth: number, padding: number, progress: number) => void;
@@ -0,0 +1,32 @@
1
+ import type { ProgressProps } from './type';
2
+ declare var __VLS_1: {
3
+ percentage: number;
4
+ }, __VLS_3: {
5
+ percentage: number;
6
+ }, __VLS_5: {
7
+ percentage: number;
8
+ };
9
+ type __VLS_Slots = {} & {
10
+ prepend?: (props: typeof __VLS_1) => any;
11
+ } & {
12
+ indicator?: (props: typeof __VLS_3) => any;
13
+ } & {
14
+ append?: (props: typeof __VLS_5) => any;
15
+ };
16
+ declare const __VLS_base: import("vue").DefineComponent<ProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
17
+ size: "medium" | "large" | "small" | number;
18
+ variant: "solid" | "checkered";
19
+ theme: "primary" | "sakura" | "success" | "warning" | "danger";
20
+ pollSizeChange: boolean;
21
+ gap: number;
22
+ percentage: number;
23
+ indicatorPlacement: "inside" | "outside";
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ type __VLS_WithSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,67 @@
1
+ export type ProgressProps = {
2
+ /**
3
+ * @property {number} [percentage=0]
4
+ * @version 0.1.0
5
+ */
6
+ percentage?: number;
7
+ /**
8
+ * @property {'solid' | 'checkered'} [variant='solid']
9
+ * @version 0.1.0
10
+ */
11
+ variant?: 'solid' | 'checkered';
12
+ /**
13
+ * @property {'primary' | 'sakura' | 'success' | 'warning' | 'danger'} [theme='primary']
14
+ * @version 0.1.0
15
+ */
16
+ theme?: 'primary' | 'sakura' | 'success' | 'warning' | 'danger';
17
+ /**
18
+ * @property {'medium' | 'large' | 'small'} [size='medium']
19
+ * @version 0.1.0
20
+ */
21
+ size?: 'medium' | 'large' | 'small' | number;
22
+ /**
23
+ * @property {number} [gap=2]
24
+ * @version 0.1.0
25
+ */
26
+ gap?: number;
27
+ /**
28
+ * @property {'inside' | 'outside'} [indicatorPlacement='inside']
29
+ * @version 0.1.0
30
+ */
31
+ indicatorPlacement?: 'inside' | 'outside';
32
+ /**
33
+ * @property {string} [color]
34
+ * @version 0.1.0
35
+ */
36
+ color?: string;
37
+ /**
38
+ * @property {string} [color]
39
+ * @version 0.1.0
40
+ */
41
+ trackColor?: string;
42
+ /**
43
+ * @property {boolean} [pollSizeChange=false]
44
+ * @version 0.1.0
45
+ */
46
+ pollSizeChange?: boolean;
47
+ };
48
+ export type ProgressSlots = {
49
+ /**
50
+ * @slot append
51
+ * @param {number} percentage
52
+ * @version 0.1.0
53
+ */
54
+ append: {};
55
+ /**
56
+ * @slot prepend
57
+ * @param {number} percentage
58
+ * @version 0.1.0
59
+ */
60
+ prepend: {};
61
+ /**
62
+ * @slot indicator
63
+ * @param {number} percentage
64
+ * @version 0.1.0
65
+ */
66
+ indicator: {};
67
+ };
@@ -3,7 +3,7 @@ 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<RadioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ declare const __VLS_base: import("vue").DefineComponent<RadioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  change: (value: boolean, event: Event) => any;
8
8
  blur: (event: FocusEvent) => any;
9
9
  input: (value: boolean, event: InputEvent) => any;
@@ -21,7 +21,8 @@ declare const __VLS_component: import("vue").DefineComponent<RadioProps, {}, {},
21
21
  modelValue: boolean | null;
22
22
  defaultValue: boolean | null;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
25
26
  export default _default;
26
27
  type __VLS_WithSlots<T, S> = T & {
27
28
  new (): {
@@ -3,7 +3,7 @@ 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<RadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ declare const __VLS_base: import("vue").DefineComponent<RadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  change: (value: any) => any;
8
8
  "update:modelValue": (value: any) => any;
9
9
  }, string, import("vue").PublicProps, Readonly<RadioGroupProps> & Readonly<{
@@ -14,7 +14,8 @@ declare const __VLS_component: import("vue").DefineComponent<RadioGroupProps, {}
14
14
  readonly: boolean;
15
15
  direction: "horizontal" | "vertical";
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 (): {
package/es/row/index.d.ts CHANGED
@@ -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<RowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RowProps> & Readonly<{}>, {
7
+ declare const __VLS_base: import("vue").DefineComponent<RowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RowProps> & Readonly<{}>, {
8
8
  gutter: number | {
9
9
  x?: number;
10
10
  y?: number;
@@ -16,7 +16,8 @@ declare const __VLS_component: import("vue").DefineComponent<RowProps, {}, {}, {
16
16
  align: "start" | "center" | "end" | "stretch";
17
17
  wrap: boolean;
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
20
21
  export default _default;
21
22
  type __VLS_WithSlots<T, S> = T & {
22
23
  new (): {