@pixelium/web-vue 0.0.1-beta → 0.0.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 (199) hide show
  1. package/README.md +21 -10
  2. package/README.zh.md +21 -10
  3. package/dist/icon-pa.d.ts +490 -0
  4. package/dist/index.d.ts +1586 -10
  5. package/dist/pixelium-vue-icon-pa.cjs +1 -0
  6. package/dist/pixelium-vue-icon-pa.css +1 -0
  7. package/dist/pixelium-vue-icon-pa.js +10143 -0
  8. package/dist/pixelium-vue-icon-pa.umd.cjs +1 -0
  9. package/dist/pixelium-vue.cjs +12 -1
  10. package/dist/pixelium-vue.css +1 -1
  11. package/dist/pixelium-vue.js +5368 -1093
  12. package/dist/pixelium-vue.umd.cjs +12 -1
  13. package/es/aside/css.js +1 -1
  14. package/es/aside/index.js +60 -13
  15. package/es/auto-complete/css.js +2 -0
  16. package/es/auto-complete/draw.d.ts +2 -0
  17. package/es/auto-complete/draw.js +52 -0
  18. package/es/auto-complete/index.css +123 -0
  19. package/es/auto-complete/index.d.ts +35 -0
  20. package/es/auto-complete/index.js +402 -0
  21. package/es/auto-complete/type.d.ts +192 -0
  22. package/es/button/css.js +1 -1
  23. package/es/button/draw.d.ts +1 -2
  24. package/es/button/draw.js +105 -123
  25. package/es/button/index.css +24 -14
  26. package/es/button/index.js +70 -121
  27. package/es/button-group/css.js +1 -1
  28. package/es/button-group/index.d.ts +0 -1
  29. package/es/button-group/index.js +11 -37
  30. package/es/button-group/type.d.ts +1 -1
  31. package/es/col/css.js +1 -1
  32. package/es/col/index.d.ts +2 -2
  33. package/es/container/css.js +1 -1
  34. package/es/divider/css.js +1 -1
  35. package/es/empty/css.js +2 -0
  36. package/es/empty/index.css +19 -0
  37. package/es/empty/index.d.ts +17 -0
  38. package/es/empty/index.js +73 -0
  39. package/es/empty/type.d.ts +19 -0
  40. package/es/footer/css.js +1 -1
  41. package/es/grid/css.js +1 -1
  42. package/es/grid/index.js +5 -1
  43. package/es/grid-item/css.js +1 -1
  44. package/es/grid-item/index.d.ts +1 -1
  45. package/es/grid-item/index.js +7 -3
  46. package/es/header/css.js +1 -1
  47. package/es/icon/css.js +1 -1
  48. package/es/icon/index.css +0 -3
  49. package/es/icon/index.js +1 -1
  50. package/es/icons/css-pa.js +2 -0
  51. package/es/icons/icon-hn.js +1 -1
  52. package/es/icons/icon-pa.css +9 -0
  53. package/es/icons/icon-pa.d.ts +490 -0
  54. package/es/icons/icon-pa.js +17449 -0
  55. package/es/index.css +22 -8
  56. package/es/index.d.ts +18 -1
  57. package/es/index.js +63 -2
  58. package/es/input/css.js +2 -0
  59. package/es/input/draw.d.ts +2 -0
  60. package/es/input/draw.js +52 -0
  61. package/es/input/index.css +138 -0
  62. package/es/input/index.d.ts +50 -0
  63. package/es/input/index.js +432 -0
  64. package/es/input/type.d.ts +175 -0
  65. package/es/input-group/css.js +2 -0
  66. package/es/input-group/index.css +24 -0
  67. package/es/input-group/index.d.ts +17 -0
  68. package/es/input-group/index.js +40 -0
  69. package/es/input-group/type.d.ts +30 -0
  70. package/es/input-group-label/css.js +2 -0
  71. package/es/input-group-label/draw.d.ts +2 -0
  72. package/es/input-group-label/draw.js +52 -0
  73. package/es/input-group-label/index.css +50 -0
  74. package/es/input-group-label/index.d.ts +16 -0
  75. package/es/input-group-label/index.js +129 -0
  76. package/es/input-group-label/type.d.ts +30 -0
  77. package/es/input-number/css.js +2 -0
  78. package/es/input-number/draw.d.ts +2 -0
  79. package/es/input-number/draw.js +52 -0
  80. package/es/input-number/index.css +161 -0
  81. package/es/input-number/index.d.ts +47 -0
  82. package/es/input-number/index.js +543 -0
  83. package/es/input-number/type.d.ts +183 -0
  84. package/es/input-tag/css.js +2 -0
  85. package/es/input-tag/draw.d.ts +2 -0
  86. package/es/input-tag/draw.js +49 -0
  87. package/es/input-tag/index.css +133 -0
  88. package/es/input-tag/index.d.ts +73 -0
  89. package/es/input-tag/index.js +474 -0
  90. package/es/input-tag/type.d.ts +212 -0
  91. package/es/link/css.js +1 -1
  92. package/es/link/index.css +2 -5
  93. package/es/link/index.js +10 -6
  94. package/es/main/css.js +1 -1
  95. package/es/mask/css.js +2 -0
  96. package/es/mask/index.css +17 -0
  97. package/es/mask/index.d.ts +8 -0
  98. package/es/mask/index.js +117 -0
  99. package/es/mask/type.d.ts +27 -0
  100. package/es/message/css.js +1 -1
  101. package/es/message/index.css +26 -26
  102. package/es/message/index.d.ts +1 -1
  103. package/es/message/index.js +22 -50
  104. package/es/message-box/css.js +1 -1
  105. package/es/message-box/index.js +40 -30
  106. package/es/message-box/message-box-wrapped.d.ts +0 -1
  107. package/es/message-box/message-box-wrapped.js +2 -2
  108. package/es/message-box/message-box.d.ts +2 -1
  109. package/es/message-box/message-box.js +10 -8
  110. package/es/message-box/type.d.ts +14 -4
  111. package/es/option-list/css.js +2 -0
  112. package/es/option-list/index.css +57 -0
  113. package/es/option-list/index.d.ts +38 -0
  114. package/es/option-list/index.js +169 -0
  115. package/es/option-list/type.d.ts +16 -0
  116. package/es/popover/css.js +1 -0
  117. package/es/popover/index.d.ts +203 -0
  118. package/es/popover/index.js +240 -0
  119. package/es/popover/type.d.ts +100 -0
  120. package/es/popup-content/css.js +2 -0
  121. package/es/popup-content/draw.d.ts +6 -0
  122. package/es/popup-content/draw.js +151 -0
  123. package/es/popup-content/index.css +99 -0
  124. package/es/popup-content/index.d.ts +30 -0
  125. package/es/popup-content/index.js +1578 -0
  126. package/es/popup-content/type.d.ts +20 -0
  127. package/es/popup-trigger/css.js +1 -0
  128. package/es/popup-trigger/index.d.ts +22 -0
  129. package/es/popup-trigger/index.js +97 -0
  130. package/es/popup-trigger/type.d.ts +9 -0
  131. package/es/row/css.js +1 -1
  132. package/es/select/css.js +2 -0
  133. package/es/select/draw.d.ts +2 -0
  134. package/es/select/draw.js +52 -0
  135. package/es/select/index.css +152 -0
  136. package/es/select/index.d.ts +44 -0
  137. package/es/select/index.js +674 -0
  138. package/es/select/type.d.ts +252 -0
  139. package/es/share/const/event-bus-key.d.ts +4 -0
  140. package/es/share/const/event-bus-key.js +10 -0
  141. package/es/share/const/index.d.ts +4 -0
  142. package/es/share/const/index.js +11 -2
  143. package/es/share/const/provide-key.d.ts +3 -0
  144. package/es/share/const/provide-key.js +8 -0
  145. package/es/share/hook/use-click-outside-listener.d.ts +4 -0
  146. package/es/share/hook/use-click-outside-listener.js +44 -0
  147. package/es/share/hook/use-composition.d.ts +5 -0
  148. package/es/share/hook/use-composition.js +17 -0
  149. package/es/share/hook/use-controlled-mode.d.ts +6 -0
  150. package/es/share/hook/use-controlled-mode.js +25 -0
  151. package/es/share/hook/use-dark-mode.js +11 -3
  152. package/es/share/hook/use-index-of-children.d.ts +2 -1
  153. package/es/share/hook/use-index-of-children.js +25 -35
  154. package/es/share/hook/use-resize-observer.js +1 -1
  155. package/es/share/hook/use-textarea-height.d.ts +5 -0
  156. package/es/share/hook/use-textarea-height.js +116 -0
  157. package/es/share/hook/use-watch-global-css-var.d.ts +1 -0
  158. package/es/share/hook/use-watch-global-css-var.js +19 -0
  159. package/es/share/hook/use-z-index.d.ts +6 -0
  160. package/es/share/hook/use-z-index.js +32 -0
  161. package/es/share/type/index.d.ts +9 -1
  162. package/es/share/util/color.js +4 -2
  163. package/es/share/util/common.d.ts +5 -0
  164. package/es/share/util/common.js +71 -0
  165. package/es/share/util/event-bus.d.ts +1 -0
  166. package/es/share/util/event-bus.js +20 -0
  167. package/es/share/util/plot.d.ts +15 -2
  168. package/es/share/util/plot.js +200 -30
  169. package/es/share/util/render.d.ts +1 -0
  170. package/es/share/util/render.js +10 -2
  171. package/es/share/util/theme.js +23 -4
  172. package/es/space/css.js +1 -1
  173. package/es/space/index.css +5 -0
  174. package/es/space/index.js +2 -2
  175. package/es/spin/css.js +2 -0
  176. package/es/spin/index.css +66 -0
  177. package/es/spin/index.d.ts +24 -0
  178. package/es/spin/index.js +104 -0
  179. package/es/spin/type.d.ts +54 -0
  180. package/es/tag/css.js +2 -0
  181. package/es/tag/draw.d.ts +6 -0
  182. package/es/tag/draw.js +135 -0
  183. package/es/tag/index.css +372 -0
  184. package/es/tag/index.d.ts +23 -0
  185. package/es/tag/index.js +193 -0
  186. package/es/tag/type.d.ts +58 -0
  187. package/es/textarea/css.js +2 -0
  188. package/es/textarea/draw.d.ts +2 -0
  189. package/es/textarea/draw.js +13 -0
  190. package/es/textarea/index.css +108 -0
  191. package/es/textarea/index.d.ts +49 -0
  192. package/es/textarea/index.js +267 -0
  193. package/es/textarea/type.d.ts +169 -0
  194. package/es/tooltip/css.js +1 -0
  195. package/es/tooltip/index.d.ts +20 -0
  196. package/es/tooltip/index.js +228 -0
  197. package/es/tooltip/type.d.ts +77 -0
  198. package/package.json +17 -3
  199. package/es/icons/{css.js → css-hn.js} +1 -1
@@ -0,0 +1,183 @@
1
+ import type { Nullish } from 'parsnip-kit';
2
+ import type { NumberOrPercentage } from '../share/type';
3
+ export type InputNumberProps = {
4
+ /**
5
+ * @property {string | null} [modelValue]
6
+ * @version 0.0.2
7
+ */
8
+ modelValue?: number | null;
9
+ /**
10
+ * @property {string | null} [defaultValue]
11
+ * @version 0.0.2
12
+ */
13
+ defaultValue?: number | null;
14
+ /**
15
+ * @property {string} [placeholder]
16
+ * @version 0.0.2
17
+ */
18
+ placeholder?: string;
19
+ /**
20
+ * @property {boolean} [disabled=false]
21
+ * @version 0.0.2
22
+ */
23
+ disabled?: boolean;
24
+ /**
25
+ * @property {boolean} [readonly=false]
26
+ * @version 0.0.2
27
+ */
28
+ readonly?: boolean;
29
+ /**
30
+ * @property {number} [max=Number.MAX_SAFE_INTEGER]
31
+ * @version 0.0.2
32
+ */
33
+ max?: number;
34
+ /**
35
+ * @property {number} [min=Number.MIN_SAFE_INTEGER]
36
+ * @version 0.0.2
37
+ */
38
+ min?: number;
39
+ /**
40
+ * @property {number} [step=1]
41
+ * @version 0.0.2
42
+ */
43
+ step?: number;
44
+ /**
45
+ * @property {number} [precision]
46
+ * @version 0.0.2
47
+ */
48
+ precision?: number;
49
+ /**
50
+ * @property {boolean} [strickStep=false]
51
+ * @version 0.0.2
52
+ */
53
+ strickStep?: boolean;
54
+ /**
55
+ * @property {(value: number | Nullish) => string} [format]
56
+ * @version 0.0.2
57
+ */
58
+ format?: (value: number | Nullish) => string;
59
+ /**
60
+ * @property {(value: string) => boolean} [allowInput]
61
+ * @version 0.0.2
62
+ */
63
+ allowInput?: (value: string) => boolean;
64
+ /**
65
+ * @property {(value: string) => number} [parse]
66
+ * @version 0.0.2
67
+ */
68
+ parse?: (value: string) => number;
69
+ /**
70
+ * @property {boolean} [clearable=false]
71
+ * @version 0.0.2
72
+ */
73
+ clearable?: boolean;
74
+ /**
75
+ * @property {boolean} [loading=false]
76
+ * @version 0.0.2
77
+ */
78
+ loading?: boolean;
79
+ /**
80
+ * @property {'medium' | 'large' | 'small'} [size='medium']
81
+ * @version 0.0.2
82
+ */
83
+ size?: 'medium' | 'large' | 'small';
84
+ /**
85
+ * @property {'default' | 'round'} [shape='default']
86
+ * @version 0.0.2
87
+ */
88
+ shape?: 'default' | 'round';
89
+ /**
90
+ * @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
91
+ * @version 0.0.2
92
+ */
93
+ borderRadius?: NumberOrPercentage | NumberOrPercentage[];
94
+ /**
95
+ * @property {boolean} [buttonPlacement='end']
96
+ * @version 0.0.2
97
+ */
98
+ buttonPlacement?: 'start' | 'end' | 'both' | 'start-reverse' | 'end-reverse' | 'both-reverse';
99
+ /**
100
+ * @property {'success' | 'warning' | 'error' | 'normal'} [status='normal']
101
+ * @version 0.0.2
102
+ */
103
+ status?: 'success' | 'warning' | 'error' | 'normal';
104
+ /**
105
+ * @property {boolean} [autofocus=false]
106
+ * @version 0.0.2
107
+ */
108
+ autofocus?: boolean;
109
+ };
110
+ export type InputNumberEvents = {
111
+ /**
112
+ * @event input
113
+ * @param {number} value
114
+ * @param {Event} e
115
+ * @version 0.0.2
116
+ */
117
+ input: [value: number, e: Event];
118
+ /**
119
+ * @event update:modelValue
120
+ * @param {number} value
121
+ * @version 0.0.2
122
+ */
123
+ 'update:modelValue': [value: number];
124
+ /**
125
+ * @event change
126
+ * @param {number} value
127
+ * @param {Event | undefined} e
128
+ * @version 0.0.2
129
+ */
130
+ change: [value: number, e?: Event];
131
+ /**
132
+ * @event clear
133
+ * @param {number} value
134
+ * @version 0.0.2
135
+ */
136
+ clear: [value: number];
137
+ /**
138
+ * @event blur
139
+ * @param {FocusEvent} e
140
+ * @version 0.0.2
141
+ */
142
+ blur: [e: FocusEvent];
143
+ /**
144
+ * @event focus
145
+ * @param {FocusEvent} e
146
+ * @version 0.0.2
147
+ */
148
+ focus: [e: FocusEvent];
149
+ };
150
+ export type InputNumberSlots = {
151
+ /**
152
+ * @slot prefix
153
+ * @version 0.0.2
154
+ */
155
+ prefix: {};
156
+ /**
157
+ * @slot suffix
158
+ * @version 0.0.2
159
+ */
160
+ suffix: {};
161
+ };
162
+ export type InputNumberExpose = {
163
+ /**
164
+ * @property {() => void} focus
165
+ * @version 0.0.2
166
+ */
167
+ focus: () => void;
168
+ /**
169
+ * @property {() => void} blur
170
+ * @version 0.0.2
171
+ */
172
+ blur: () => void;
173
+ /**
174
+ * @property {() => void} clear
175
+ * @version 0.0.2
176
+ */
177
+ clear: () => void;
178
+ /**
179
+ * @property {() => void} select
180
+ * @version 0.0.2
181
+ */
182
+ select: () => void;
183
+ };
@@ -0,0 +1,2 @@
1
+ import '../index.css'
2
+ import './index.css'
@@ -0,0 +1,2 @@
1
+ import type { RgbaColor } from '../share/type';
2
+ export declare const drawBorder: (ctx: CanvasRenderingContext2D, width: number, height: number, center: [number, number][], borderRadius: number[], rad: [number, number][], borderColor: RgbaColor, pixelSize: number, inner: boolean, first: boolean, last: boolean) => void;
@@ -0,0 +1,49 @@
1
+ import { d as drawCircle } from "../share/util/plot.js";
2
+ import { r as rgbaColor2string } from "../share/util/color.js";
3
+ const drawBorder = (ctx, width, height, center, borderRadius, rad, borderColor, pixelSize, inner, first, last) => {
4
+ ctx.fillStyle = rgbaColor2string(borderColor);
5
+ for (let i = 0; i < 4; i++) {
6
+ if (borderRadius[i] <= pixelSize) {
7
+ continue;
8
+ }
9
+ if (i === 1 || i === 2 ? inner && last || !inner : true) {
10
+ drawCircle(
11
+ ctx,
12
+ center[i][0],
13
+ center[i][1],
14
+ borderRadius[i],
15
+ rad[i][0],
16
+ rad[i][1],
17
+ pixelSize
18
+ );
19
+ }
20
+ }
21
+ if (center[1][0] + pixelSize > center[0][0]) {
22
+ const width2 = inner && !last ? center[1][0] - center[0][0] + pixelSize / 2 + 1 : center[1][0] - center[0][0] + pixelSize;
23
+ ctx.fillRect(center[0][0], 0, width2, pixelSize);
24
+ }
25
+ if (center[2][1] + pixelSize > center[1][1] && (inner && last || !inner)) {
26
+ ctx.fillRect(
27
+ width - pixelSize,
28
+ center[1][1],
29
+ pixelSize,
30
+ center[2][1] - center[1][1] + pixelSize
31
+ );
32
+ }
33
+ if (center[3][0] < center[2][0] + pixelSize) {
34
+ const width2 = inner && !last ? center[2][0] - center[3][0] + pixelSize / 2 : center[2][0] - center[3][0] + pixelSize;
35
+ ctx.fillRect(center[3][0], height - pixelSize, width2, pixelSize);
36
+ }
37
+ if (center[3][1] + pixelSize > center[0][1] && !(inner && !first)) {
38
+ ctx.fillRect(0, center[0][1], pixelSize, center[3][1] - center[0][1] + pixelSize);
39
+ }
40
+ if (inner && !first) {
41
+ ctx.fillRect(pixelSize / 2, 0, pixelSize / 2, height);
42
+ }
43
+ if (inner && !last) {
44
+ ctx.fillRect(width - 2 * pixelSize - 1, 0, pixelSize / 2 + 1, height);
45
+ }
46
+ };
47
+ export {
48
+ drawBorder as d
49
+ };
@@ -0,0 +1,133 @@
1
+ div.px-input-tag {
2
+ font-size: var(--text-size);
3
+ }
4
+ .px-input-tag {
5
+ --input-size: var(--px-medium-size);
6
+ --px-medium-padding-x: var(--px-interval-2);
7
+ --px-large-padding-x: var(--px-interval-3);
8
+ --px-small-padding-x: var(--px-interval-2);
9
+ --padding-x-size: var(--px-medium-padding-x);
10
+ --text-size: var(--px-medium-font-size);
11
+ z-index: 0;
12
+ position: relative;
13
+ background-color: transparent;
14
+ border-color: transparent;
15
+ border-width: var(--px-bit);
16
+ border-style: solid;
17
+ color: var(--px-neutral-10);
18
+ display: flex;
19
+ padding: 0 var(--padding-x-size);
20
+ box-sizing: border-box;
21
+ cursor: text;
22
+ }
23
+ .px-input-tag__inner {
24
+ padding-right: calc(var(--padding-x-size) + 1px + 1 * var(--px-bit));
25
+ }
26
+ .px-input-tag__inner:last-child {
27
+ padding-right: var(--padding-x-size);
28
+ }
29
+ .px-input-tag-content {
30
+ min-height: calc(var(--input-size) - var(--px-bit) * 2);
31
+ display: flex;
32
+ flex-wrap: wrap;
33
+ align-items: center;
34
+ width: 100%;
35
+ }
36
+ .px-input-tag-content .px-tag {
37
+ margin-right: var(--px-interval-2);
38
+ margin-top: 1px;
39
+ margin-bottom: 1px;
40
+ }
41
+ .px-input-tag-inner {
42
+ height: calc(var(--input-size) - var(--px-bit) * 2);
43
+ border: 0;
44
+ background-color: transparent;
45
+ box-sizing: border-box;
46
+ flex: 1;
47
+ font-size: var(--text-size);
48
+ line-height: var(--px-line-height);
49
+ font-family: 'Fusion Pixel Zh_hans', sans-serif;
50
+ padding: 0;
51
+ }
52
+ .px-input-tag-inner:focus-visible {
53
+ outline-color: var(--px-neutral-10);
54
+ outline-offset: var(--px-bit);
55
+ }
56
+ .px-input-tag-inner:disabled {
57
+ color: var(--px-neutral-10);
58
+ }
59
+ .px-input-tag-inner::placeholder {
60
+ color: var(--px-neutral-8);
61
+ opacity: 1;
62
+ }
63
+ .px-input-tag__large {
64
+ --padding-x-size: var(--px-large-padding-x);
65
+ --text-size: var(--px-large-font-size);
66
+ --input-size: var(--px-large-size);
67
+ }
68
+ .px-input-tag__small {
69
+ --padding-x-size: var(--px-small-padding-x);
70
+ --input-size: var(--px-small-size);
71
+ --text-size: var(--px-small-font-size);
72
+ }
73
+ .px-input-tag__small .px-input-tag-content .px-tag {
74
+ margin-top: 0px;
75
+ margin-bottom: 0px;
76
+ }
77
+ .px-input-tag__disabled {
78
+ cursor: not-allowed;
79
+ }
80
+ .px-input-tag__disabled .px-input-tag-inner:disabled {
81
+ cursor: not-allowed;
82
+ color: var(--px-neutral-8);
83
+ }
84
+ .px-input-tag-prefix-wrapper,
85
+ .px-input-tag-suffix-wrapper,
86
+ .px-input-tag-loading-wrapper,
87
+ .px-input-tag-close-wrapper {
88
+ flex-shrink: 0;
89
+ display: flex;
90
+ align-items: center;
91
+ }
92
+ .px-input-tag-prefix-wrapper {
93
+ margin-right: var(--px-interval-2);
94
+ }
95
+ .px-input-tag-suffix-wrapper,
96
+ .px-input-tag-loading-wrapper,
97
+ .px-input-tag-close-wrapper {
98
+ margin-left: var(--px-interval-2);
99
+ }
100
+ .px-input-tag-close-wrapper .px-input-tag-icon-placeholder {
101
+ width: var(--text-size);
102
+ height: var(--text-size);
103
+ }
104
+ .px-input-tag-close-wrapper .px-input-tag-icon {
105
+ width: var(--text-size);
106
+ height: var(--text-size);
107
+ cursor: pointer;
108
+ fill: var(--px-neutral-8);
109
+ transition: 0.25s;
110
+ }
111
+ .px-input-tag-close-wrapper .px-input-tag-icon:hover {
112
+ fill: var(--px-neutral-7);
113
+ }
114
+ .px-input-tag-close-wrapper .px-input-tag-icon:active {
115
+ fill: var(--px-neutral-9);
116
+ }
117
+ .px-input-tag-loading-wrapper .px-input-tag-icon {
118
+ width: var(--text-size);
119
+ height: var(--text-size);
120
+ fill: var(--px-primary-6);
121
+ }
122
+ .px-input-tag-prefix-wrapper,
123
+ .px-input-tag-suffix-wrapper {
124
+ color: var(--px-neutral-10);
125
+ }
126
+ .px-input-tag-canvas {
127
+ position: absolute;
128
+ top: 50%;
129
+ left: 50%;
130
+ transform: translate(-50%, -50%);
131
+ z-index: -1;
132
+ pointer-events: none;
133
+ }
@@ -0,0 +1,73 @@
1
+ import type { InputTagProps } from './type';
2
+ declare var __VLS_1: {}, __VLS_10: {
3
+ tag: string;
4
+ index: number;
5
+ }, __VLS_16: {
6
+ tag: string;
7
+ index: number;
8
+ }, __VLS_26: {
9
+ tag: string;
10
+ index: number;
11
+ }, __VLS_36: {
12
+ tag: string;
13
+ index: number;
14
+ }, __VLS_51: {};
15
+ type __VLS_Slots = {} & {
16
+ prefix?: (props: typeof __VLS_1) => any;
17
+ } & {
18
+ tag?: (props: typeof __VLS_10) => any;
19
+ } & {
20
+ tag?: (props: typeof __VLS_16) => any;
21
+ } & {
22
+ tag?: (props: typeof __VLS_26) => any;
23
+ } & {
24
+ tag?: (props: typeof __VLS_36) => any;
25
+ } & {
26
+ suffix?: (props: typeof __VLS_51) => any;
27
+ };
28
+ declare const __VLS_component: import("vue").DefineComponent<InputTagProps, {
29
+ focus: () => void;
30
+ blur: () => void;
31
+ clear: () => Promise<void>;
32
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
+ input: (value: string, e: Event) => any;
34
+ change: (value: string[]) => any;
35
+ clear: (value: string[]) => any;
36
+ blur: (e: FocusEvent) => any;
37
+ focus: (e: FocusEvent) => any;
38
+ "update:modelValue": (value: string[]) => any;
39
+ tagAdd: (value: string, e: KeyboardEvent) => any;
40
+ tagClose: (value: string, index: number, e: MouseEvent) => any;
41
+ "update:inputValue": (value: string) => any;
42
+ inputChange: (value: string, e?: Event | undefined) => any;
43
+ }, string, import("vue").PublicProps, Readonly<InputTagProps> & Readonly<{
44
+ onInput?: ((value: string, e: Event) => any) | undefined;
45
+ onChange?: ((value: string[]) => any) | undefined;
46
+ onClear?: ((value: string[]) => any) | undefined;
47
+ onBlur?: ((e: FocusEvent) => any) | undefined;
48
+ onFocus?: ((e: FocusEvent) => any) | undefined;
49
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
50
+ onTagAdd?: ((value: string, e: KeyboardEvent) => any) | undefined;
51
+ onTagClose?: ((value: string, index: number, e: MouseEvent) => any) | undefined;
52
+ "onUpdate:inputValue"?: ((value: string) => any) | undefined;
53
+ onInputChange?: ((value: string, e?: Event | undefined) => any) | undefined;
54
+ }>, {
55
+ shape: "default" | "round";
56
+ size: "medium" | "large" | "small";
57
+ disabled: boolean;
58
+ loading: boolean;
59
+ readonly: boolean;
60
+ clearable: boolean;
61
+ status: "success" | "warning" | "error" | "normal";
62
+ collapseTags: boolean;
63
+ collapseTagsPopover: boolean;
64
+ tagTheme: "primary" | "sakura" | "success" | "warning" | "danger" | "info";
65
+ tagVariant: "primary" | "plain" | "outline";
66
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
67
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
68
+ export default _default;
69
+ type __VLS_WithSlots<T, S> = T & {
70
+ new (): {
71
+ $slots: S;
72
+ };
73
+ };