@bitrix24/b24ui-nuxt 2.0.9 → 2.1.0

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 (145) hide show
  1. package/dist/meta.d.mts +77776 -42923
  2. package/dist/meta.mjs +77776 -42923
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +3 -3
  5. package/dist/runtime/components/Advice.d.vue.ts +1 -1
  6. package/dist/runtime/components/Advice.vue +1 -3
  7. package/dist/runtime/components/Advice.vue.d.ts +1 -1
  8. package/dist/runtime/components/App.d.vue.ts +1 -1
  9. package/dist/runtime/components/App.vue +2 -1
  10. package/dist/runtime/components/App.vue.d.ts +1 -1
  11. package/dist/runtime/components/Avatar.d.vue.ts +2 -1
  12. package/dist/runtime/components/Avatar.vue.d.ts +2 -1
  13. package/dist/runtime/components/Button.vue +1 -0
  14. package/dist/runtime/components/ChatPrompt.d.vue.ts +2 -2
  15. package/dist/runtime/components/ChatPrompt.vue +5 -5
  16. package/dist/runtime/components/ChatPrompt.vue.d.ts +2 -2
  17. package/dist/runtime/components/ChatPromptSubmit.d.vue.ts +5 -5
  18. package/dist/runtime/components/ChatPromptSubmit.vue +53 -4
  19. package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +5 -5
  20. package/dist/runtime/components/Checkbox.d.vue.ts +2 -1
  21. package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
  22. package/dist/runtime/components/CommandPalette.vue +5 -4
  23. package/dist/runtime/components/DashboardSearch.d.vue.ts +3 -6
  24. package/dist/runtime/components/DashboardSearch.vue +2 -3
  25. package/dist/runtime/components/DashboardSearch.vue.d.ts +3 -6
  26. package/dist/runtime/components/DashboardSearchButton.d.vue.ts +2 -3
  27. package/dist/runtime/components/DashboardSearchButton.vue +44 -6
  28. package/dist/runtime/components/DashboardSearchButton.vue.d.ts +2 -3
  29. package/dist/runtime/components/Error.d.vue.ts +1 -1
  30. package/dist/runtime/components/Error.vue.d.ts +1 -1
  31. package/dist/runtime/components/FileUpload.d.vue.ts +3 -2
  32. package/dist/runtime/components/FileUpload.vue +9 -9
  33. package/dist/runtime/components/FileUpload.vue.d.ts +3 -2
  34. package/dist/runtime/components/Form.d.vue.ts +2 -1
  35. package/dist/runtime/components/Form.vue.d.ts +2 -1
  36. package/dist/runtime/components/Input.d.vue.ts +7 -7
  37. package/dist/runtime/components/Input.vue +2 -2
  38. package/dist/runtime/components/Input.vue.d.ts +7 -7
  39. package/dist/runtime/components/InputDate.d.vue.ts +115 -0
  40. package/dist/runtime/components/InputDate.vue +198 -0
  41. package/dist/runtime/components/InputDate.vue.d.ts +115 -0
  42. package/dist/runtime/components/InputMenu.d.vue.ts +7 -128
  43. package/dist/runtime/components/InputMenu.vue +3 -3
  44. package/dist/runtime/components/InputMenu.vue.d.ts +7 -128
  45. package/dist/runtime/components/InputNumber.d.vue.ts +25 -124
  46. package/dist/runtime/components/InputNumber.vue +3 -3
  47. package/dist/runtime/components/InputNumber.vue.d.ts +25 -124
  48. package/dist/runtime/components/InputTags.d.vue.ts +6 -109
  49. package/dist/runtime/components/InputTags.vue +8 -8
  50. package/dist/runtime/components/InputTags.vue.d.ts +6 -109
  51. package/dist/runtime/components/InputTime.d.vue.ts +99 -0
  52. package/dist/runtime/components/InputTime.vue +170 -0
  53. package/dist/runtime/components/InputTime.vue.d.ts +99 -0
  54. package/dist/runtime/components/Link.d.vue.ts +4 -49
  55. package/dist/runtime/components/Link.vue +1 -0
  56. package/dist/runtime/components/Link.vue.d.ts +4 -49
  57. package/dist/runtime/components/Modal.d.vue.ts +1 -1
  58. package/dist/runtime/components/Modal.vue.d.ts +1 -1
  59. package/dist/runtime/components/Pagination.d.vue.ts +2 -2
  60. package/dist/runtime/components/Pagination.vue.d.ts +2 -2
  61. package/dist/runtime/components/PinInput.d.vue.ts +3 -3
  62. package/dist/runtime/components/PinInput.vue.d.ts +3 -3
  63. package/dist/runtime/components/Progress.d.vue.ts +1 -1
  64. package/dist/runtime/components/Progress.vue.d.ts +1 -1
  65. package/dist/runtime/components/Select.d.vue.ts +6 -107
  66. package/dist/runtime/components/Select.vue +3 -3
  67. package/dist/runtime/components/Select.vue.d.ts +6 -107
  68. package/dist/runtime/components/SelectMenu.d.vue.ts +7 -106
  69. package/dist/runtime/components/SelectMenu.vue +3 -3
  70. package/dist/runtime/components/SelectMenu.vue.d.ts +7 -106
  71. package/dist/runtime/components/Slideover.d.vue.ts +1 -1
  72. package/dist/runtime/components/Slideover.vue.d.ts +1 -1
  73. package/dist/runtime/components/Switch.d.vue.ts +2 -1
  74. package/dist/runtime/components/Switch.vue.d.ts +2 -1
  75. package/dist/runtime/components/Table.d.vue.ts +5 -4
  76. package/dist/runtime/components/Table.vue +4 -3
  77. package/dist/runtime/components/Table.vue.d.ts +5 -4
  78. package/dist/runtime/components/Textarea.d.vue.ts +7 -6
  79. package/dist/runtime/components/Textarea.vue +2 -2
  80. package/dist/runtime/components/Textarea.vue.d.ts +7 -6
  81. package/dist/runtime/components/Toast.vue +5 -5
  82. package/dist/runtime/components/Toaster.d.vue.ts +1 -1
  83. package/dist/runtime/components/Toaster.vue.d.ts +1 -1
  84. package/dist/runtime/components/color-mode/ColorModeAvatar.d.vue.ts +3 -3
  85. package/dist/runtime/components/color-mode/ColorModeAvatar.vue +16 -4
  86. package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +3 -3
  87. package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +3 -3
  88. package/dist/runtime/components/color-mode/ColorModeButton.vue +54 -6
  89. package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +3 -3
  90. package/dist/runtime/components/color-mode/ColorModeImage.d.vue.ts +4 -3
  91. package/dist/runtime/components/color-mode/ColorModeImage.vue +4 -0
  92. package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +4 -3
  93. package/dist/runtime/components/color-mode/ColorModeSelect.d.vue.ts +5 -3
  94. package/dist/runtime/components/color-mode/ColorModeSelect.vue +47 -5
  95. package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +5 -3
  96. package/dist/runtime/components/color-mode/ColorModeSwitch.d.vue.ts +2 -2
  97. package/dist/runtime/components/color-mode/ColorModeSwitch.vue +29 -5
  98. package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +2 -2
  99. package/dist/runtime/components/content/ContentSearch.d.vue.ts +3 -6
  100. package/dist/runtime/components/content/ContentSearch.vue +2 -3
  101. package/dist/runtime/components/content/ContentSearch.vue.d.ts +3 -6
  102. package/dist/runtime/components/content/ContentSearchButton.d.vue.ts +2 -3
  103. package/dist/runtime/components/content/ContentSearchButton.vue +43 -5
  104. package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +2 -3
  105. package/dist/runtime/components/content/ContentSurround.vue +7 -1
  106. package/dist/runtime/components/locale/LocaleSelect.d.vue.ts +11 -7
  107. package/dist/runtime/components/locale/LocaleSelect.vue +50 -6
  108. package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +11 -7
  109. package/dist/runtime/components/prose/Callout.vue +4 -0
  110. package/dist/runtime/composables/index.d.ts +8 -0
  111. package/dist/runtime/composables/index.js +8 -0
  112. package/dist/runtime/composables/useFileUpload.d.ts +2 -1
  113. package/dist/runtime/composables/useFileUpload.js +13 -4
  114. package/dist/runtime/inertia/components/Link.d.vue.ts +17 -10
  115. package/dist/runtime/inertia/components/Link.vue +8 -6
  116. package/dist/runtime/inertia/components/Link.vue.d.ts +17 -10
  117. package/dist/runtime/inertia/stubs.d.ts +1 -1
  118. package/dist/runtime/types/html.d.ts +8 -0
  119. package/dist/runtime/types/html.js +0 -0
  120. package/dist/runtime/types/index.d.ts +2 -0
  121. package/dist/runtime/types/index.js +2 -0
  122. package/dist/runtime/types/input.d.ts +5 -5
  123. package/dist/runtime/types/utils.d.ts +2 -0
  124. package/dist/runtime/utils/content.d.ts +2 -2
  125. package/dist/runtime/utils/dashboard.d.ts +1 -1
  126. package/dist/runtime/utils/link.d.ts +1 -0
  127. package/dist/runtime/utils/link.js +40 -24
  128. package/dist/runtime/vue/components/Link.d.vue.ts +8 -37
  129. package/dist/runtime/vue/components/Link.vue +6 -11
  130. package/dist/runtime/vue/components/Link.vue.d.ts +8 -37
  131. package/dist/runtime/vue/components/color-mode/ColorModeButton.d.vue.ts +2 -2
  132. package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +55 -5
  133. package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +2 -2
  134. package/dist/runtime/vue/components/color-mode/ColorModeSelect.d.vue.ts +5 -3
  135. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +46 -3
  136. package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +5 -3
  137. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.d.vue.ts +1 -1
  138. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +24 -3
  139. package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
  140. package/dist/runtime/vue/stubs.d.ts +2 -2
  141. package/dist/runtime/vue/stubs.js +1 -1
  142. package/dist/shared/{b24ui-nuxt.4XNR9Ysu.mjs → b24ui-nuxt.CXLCGBie.mjs} +135 -1
  143. package/dist/unplugin.mjs +1 -1
  144. package/dist/vite.mjs +1 -1
  145. package/package.json +24 -14
@@ -1,10 +1,9 @@
1
- import { nextTick } from 'vue';
2
- import type { InputHTMLAttributes } from 'vue';
3
1
  import type { ComboboxRootProps, ComboboxRootEmits, ComboboxContentProps, ComboboxContentEmits, ComboboxArrowProps } from 'reka-ui';
4
2
  import type { AppConfig } from '@nuxt/schema';
5
3
  import theme from '#build/b24ui/input-menu';
6
4
  import type { UseComponentIconsProps } from '../composables/useComponentIcons';
7
5
  import type { AvatarProps, ChipProps, BadgeProps, IconComponent } from '../types';
6
+ import type { InputHTMLAttributes } from '../types/html';
8
7
  import type { AcceptableValue, ArrayOrNested, GetItemKeys, GetModelValue, GetModelValueEmits, NestedItem, EmitsToProps } from '../types/utils';
9
8
  import type { ComponentConfig } from '../types/tv';
10
9
  type InputMenu = ComponentConfig<typeof theme, AppConfig, 'inputMenu'>;
@@ -30,7 +29,7 @@ export type InputMenuItem = InputMenuValue | {
30
29
  b24ui?: Pick<InputMenu['slots'], 'tagsItem' | 'tagsItemText' | 'tagsItemDelete' | 'tagsItemDeleteIcon' | 'label' | 'separator' | 'item' | 'itemLeadingIcon' | 'itemLeadingAvatarSize' | 'itemLeadingAvatar' | 'itemLeadingChip' | 'itemLeadingChipSize' | 'itemWrapper' | 'itemLabel' | 'itemDescription' | 'itemTrailing' | 'itemTrailingIcon'>;
31
30
  [key: string]: any;
32
31
  };
33
- export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'resetSearchTermOnSelect' | 'highlightOnHover' | 'openOnClick' | 'openOnFocus'>, UseComponentIconsProps {
32
+ export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> extends Pick<ComboboxRootProps<T>, 'open' | 'defaultOpen' | 'disabled' | 'name' | 'resetSearchTermOnBlur' | 'resetSearchTermOnSelect' | 'highlightOnHover' | 'openOnClick' | 'openOnFocus'>, UseComponentIconsProps, /** @vue-ignore */ Omit<InputHTMLAttributes, 'disabled' | 'name' | 'type' | 'placeholder' | 'autofocus' | 'maxlength' | 'minlength' | 'pattern' | 'size' | 'min' | 'max' | 'step'> {
34
33
  /**
35
34
  * The element or component this component should render as.
36
35
  * @defaultValue 'div'
@@ -59,7 +58,7 @@ export interface InputMenuProps<T extends ArrayOrNested<InputMenuItem> = ArrayOr
59
58
  */
60
59
  underline?: boolean;
61
60
  /**
62
- * Rounds the corners of the button
61
+ * Rounds the corners of the input
63
62
  * @defaultValue false
64
63
  */
65
64
  rounded?: boolean;
@@ -226,11 +225,11 @@ declare const __VLS_export: <T extends ArrayOrNested<InputMenuItem>, VK extends
226
225
  props: __VLS_PrettifyLocal<(InputMenuProps<T, VK, M> & {
227
226
  searchTerm?: string;
228
227
  }) & {
229
- onBlur?: ((event: FocusEvent) => any) | undefined;
230
228
  onChange?: ((event: Event) => any) | undefined;
229
+ onBlur?: ((event: FocusEvent) => any) | undefined;
231
230
  onFocus?: ((event: FocusEvent) => any) | undefined;
232
- onCreate?: ((item: string) => any) | undefined;
233
231
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
232
+ onCreate?: ((item: string) => any) | undefined;
234
233
  "onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
235
234
  onHighlight?: ((payload: {
236
235
  ref: HTMLElement;
@@ -240,131 +239,11 @@ declare const __VLS_export: <T extends ArrayOrNested<InputMenuItem>, VK extends
240
239
  "onRemove-tag"?: ((item: GetModelValue<T, VK, M>) => any) | undefined;
241
240
  }> & import("vue").PublicProps;
242
241
  expose: (exposed: import("vue").ShallowUnwrapRef<{
243
- inputRef: import("vue").Ref<({
244
- $: import("vue").ComponentInternalInstance;
245
- $data: {};
246
- $props: {
247
- readonly displayValue?: ((val: any) => string) | undefined;
248
- readonly modelValue?: string | undefined;
249
- readonly autoFocus?: boolean | undefined;
250
- readonly disabled?: boolean | undefined;
251
- readonly asChild?: boolean | undefined;
252
- readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
253
- readonly "onUpdate:modelValue"?: ((args_0: string) => any) | undefined | undefined;
254
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
255
- $attrs: {
256
- [x: string]: unknown;
257
- };
258
- $refs: {
259
- [x: string]: unknown;
260
- };
261
- $slots: Readonly<{
262
- [name: string]: import("vue").Slot<any> | undefined;
263
- }>;
264
- $root: import("vue").ComponentPublicInstance | null;
265
- $parent: import("vue").ComponentPublicInstance | null;
266
- $host: Element | null;
267
- $emit: (event: "update:modelValue", args_0: string) => void;
268
- $el: any;
269
- $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ComboboxInputProps> & Readonly<{
270
- "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
271
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
272
- "update:modelValue": (args_0: string) => any;
273
- }, string, {
274
- as: import("reka-ui").AsTag | import("vue").Component;
275
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
276
- beforeCreate?: (() => void) | (() => void)[];
277
- created?: (() => void) | (() => void)[];
278
- beforeMount?: (() => void) | (() => void)[];
279
- mounted?: (() => void) | (() => void)[];
280
- beforeUpdate?: (() => void) | (() => void)[];
281
- updated?: (() => void) | (() => void)[];
282
- activated?: (() => void) | (() => void)[];
283
- deactivated?: (() => void) | (() => void)[];
284
- beforeDestroy?: (() => void) | (() => void)[];
285
- beforeUnmount?: (() => void) | (() => void)[];
286
- destroyed?: (() => void) | (() => void)[];
287
- unmounted?: (() => void) | (() => void)[];
288
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
289
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
290
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
291
- };
292
- $forceUpdate: () => void;
293
- $nextTick: typeof nextTick;
294
- $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
295
- } & Readonly<{
296
- as: import("reka-ui").AsTag | import("vue").Component;
297
- }> & Omit<Readonly<import("reka-ui").ComboboxInputProps> & Readonly<{
298
- "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
299
- }>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
300
- $slots: {
301
- default?: (props: {}) => any;
302
- };
303
- }) | null, ({
304
- $: import("vue").ComponentInternalInstance;
305
- $data: {};
306
- $props: {
307
- readonly displayValue?: ((val: any) => string) | undefined;
308
- readonly modelValue?: string | undefined;
309
- readonly autoFocus?: boolean | undefined;
310
- readonly disabled?: boolean | undefined;
311
- readonly asChild?: boolean | undefined;
312
- readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
313
- readonly "onUpdate:modelValue"?: ((args_0: string) => any) | undefined | undefined;
314
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
315
- $attrs: {
316
- [x: string]: unknown;
317
- };
318
- $refs: {
319
- [x: string]: unknown;
320
- };
321
- $slots: Readonly<{
322
- [name: string]: import("vue").Slot<any> | undefined;
323
- }>;
324
- $root: import("vue").ComponentPublicInstance | null;
325
- $parent: import("vue").ComponentPublicInstance | null;
326
- $host: Element | null;
327
- $emit: (event: "update:modelValue", args_0: string) => void;
328
- $el: any;
329
- $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").ComboboxInputProps> & Readonly<{
330
- "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
331
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
332
- "update:modelValue": (args_0: string) => any;
333
- }, string, {
334
- as: import("reka-ui").AsTag | import("vue").Component;
335
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
336
- beforeCreate?: (() => void) | (() => void)[];
337
- created?: (() => void) | (() => void)[];
338
- beforeMount?: (() => void) | (() => void)[];
339
- mounted?: (() => void) | (() => void)[];
340
- beforeUpdate?: (() => void) | (() => void)[];
341
- updated?: (() => void) | (() => void)[];
342
- activated?: (() => void) | (() => void)[];
343
- deactivated?: (() => void) | (() => void)[];
344
- beforeDestroy?: (() => void) | (() => void)[];
345
- beforeUnmount?: (() => void) | (() => void)[];
346
- destroyed?: (() => void) | (() => void)[];
347
- unmounted?: (() => void) | (() => void)[];
348
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
349
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
350
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
351
- };
352
- $forceUpdate: () => void;
353
- $nextTick: typeof nextTick;
354
- $watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
355
- } & Readonly<{
356
- as: import("reka-ui").AsTag | import("vue").Component;
357
- }> & Omit<Readonly<import("reka-ui").ComboboxInputProps> & Readonly<{
358
- "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
359
- }>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
360
- $slots: {
361
- default?: (props: {}) => any;
362
- };
363
- }) | null>;
242
+ inputRef: Readonly<import("vue").Ref<HTMLInputElement, HTMLInputElement>>;
364
243
  }>) => void;
365
244
  attrs: any;
366
245
  slots: InputMenuSlots<T, VK, M, NestedItem<T>>;
367
- emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
246
+ emit: (((evt: "change", event: Event) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "create", item: string) => void) & ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "highlight", payload: {
368
247
  ref: HTMLElement;
369
248
  value: GetModelValue<T, VK, M>;
370
249
  } | undefined) => void) & ((evt: "remove-tag", item: GetModelValue<T, VK, M>) => void)) & ((evt: "update:searchTerm", value: string) => void);
@@ -2,10 +2,12 @@ import type { NumberFieldRootProps } from 'reka-ui';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/b24ui/input-number';
4
4
  import type { ButtonProps, BadgeProps, IconComponent } from '../types';
5
+ import type { InputHTMLAttributes } from '../types/html';
5
6
  import type { ModelModifiers } from '../types/input';
6
7
  import type { ComponentConfig } from '../types/tv';
7
8
  type InputNumber = ComponentConfig<typeof theme, AppConfig, 'inputNumber'>;
8
- export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'step' | 'stepSnapping' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange' | 'invertWheelChange' | 'readonly'> {
9
+ type InputNumberValue = number | null;
10
+ export interface InputNumberProps<T extends InputNumberValue = InputNumberValue> extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'step' | 'stepSnapping' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange' | 'invertWheelChange' | 'readonly'>, /** @vue-ignore */ Omit<InputHTMLAttributes, 'disabled' | 'min' | 'max' | 'readonly' | 'required' | 'step' | 'name' | 'placeholder' | 'type' | 'autofocus' | 'maxlength' | 'minlength' | 'pattern' | 'size'> {
9
11
  /**
10
12
  * The element or component this component should render as.
11
13
  * @defaultValue 'div'
@@ -32,7 +34,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
32
34
  */
33
35
  underline?: boolean;
34
36
  /**
35
- * Rounds the corners of the button
37
+ * Rounds the corners of the input
36
38
  * @defaultValue false
37
39
  */
38
40
  rounded?: boolean;
@@ -76,7 +78,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
76
78
  decrementDisabled?: boolean;
77
79
  autofocus?: boolean;
78
80
  autofocusDelay?: number;
79
- modelModifiers?: Pick<ModelModifiers, 'optional'>;
81
+ modelModifiers?: Pick<ModelModifiers<T>, 'optional'>;
80
82
  /**
81
83
  * The locale to use for formatting and parsing numbers.
82
84
  * @defaultValue B24App.locale.code
@@ -85,8 +87,8 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
85
87
  class?: any;
86
88
  b24ui?: InputNumber['slots'];
87
89
  }
88
- export interface InputNumberEmits {
89
- 'update:modelValue': [value: number];
90
+ export interface InputNumberEmits<T extends InputNumberValue = InputNumberValue> {
91
+ 'update:modelValue': [value: T];
90
92
  'blur': [event: FocusEvent];
91
93
  'change': [event: Event];
92
94
  }
@@ -94,124 +96,23 @@ export interface InputNumberSlots {
94
96
  increment(props?: {}): any;
95
97
  decrement(props?: {}): any;
96
98
  }
97
- declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<InputNumberProps, {
98
- inputRef: import("vue").Ref<({
99
- $: import("vue").ComponentInternalInstance;
100
- $data: {};
101
- $props: {
102
- readonly asChild?: boolean | undefined;
103
- readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
104
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
105
- $attrs: {
106
- [x: string]: unknown;
107
- };
108
- $refs: {
109
- [x: string]: unknown;
110
- };
111
- $slots: Readonly<{
112
- [name: string]: import("vue").Slot<any> | undefined;
113
- }>;
114
- $root: import("vue").ComponentPublicInstance | null;
115
- $parent: import("vue").ComponentPublicInstance | null;
116
- $host: Element | null;
117
- $emit: (event: string, ...args: any[]) => void;
118
- $el: any;
119
- $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
120
- as: import("reka-ui").AsTag | import("vue").Component;
121
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
122
- beforeCreate?: (() => void) | (() => void)[];
123
- created?: (() => void) | (() => void)[];
124
- beforeMount?: (() => void) | (() => void)[];
125
- mounted?: (() => void) | (() => void)[];
126
- beforeUpdate?: (() => void) | (() => void)[];
127
- updated?: (() => void) | (() => void)[];
128
- activated?: (() => void) | (() => void)[];
129
- deactivated?: (() => void) | (() => void)[];
130
- beforeDestroy?: (() => void) | (() => void)[];
131
- beforeUnmount?: (() => void) | (() => void)[];
132
- destroyed?: (() => void) | (() => void)[];
133
- unmounted?: (() => void) | (() => void)[];
134
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
135
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
136
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
137
- };
138
- $forceUpdate: () => void;
139
- $nextTick: typeof import("vue").nextTick;
140
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
141
- } & Readonly<{
142
- as: import("reka-ui").AsTag | import("vue").Component;
143
- }> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
144
- $slots: {
145
- default?: (props: {}) => any;
146
- };
147
- }) | null, ({
148
- $: import("vue").ComponentInternalInstance;
149
- $data: {};
150
- $props: {
151
- readonly asChild?: boolean | undefined;
152
- readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
153
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
154
- $attrs: {
155
- [x: string]: unknown;
156
- };
157
- $refs: {
158
- [x: string]: unknown;
159
- };
160
- $slots: Readonly<{
161
- [name: string]: import("vue").Slot<any> | undefined;
162
- }>;
163
- $root: import("vue").ComponentPublicInstance | null;
164
- $parent: import("vue").ComponentPublicInstance | null;
165
- $host: Element | null;
166
- $emit: (event: string, ...args: any[]) => void;
167
- $el: any;
168
- $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
169
- as: import("reka-ui").AsTag | import("vue").Component;
170
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
171
- beforeCreate?: (() => void) | (() => void)[];
172
- created?: (() => void) | (() => void)[];
173
- beforeMount?: (() => void) | (() => void)[];
174
- mounted?: (() => void) | (() => void)[];
175
- beforeUpdate?: (() => void) | (() => void)[];
176
- updated?: (() => void) | (() => void)[];
177
- activated?: (() => void) | (() => void)[];
178
- deactivated?: (() => void) | (() => void)[];
179
- beforeDestroy?: (() => void) | (() => void)[];
180
- beforeUnmount?: (() => void) | (() => void)[];
181
- destroyed?: (() => void) | (() => void)[];
182
- unmounted?: (() => void) | (() => void)[];
183
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
184
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
185
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
186
- };
187
- $forceUpdate: () => void;
188
- $nextTick: typeof import("vue").nextTick;
189
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
190
- } & Readonly<{
191
- as: import("reka-ui").AsTag | import("vue").Component;
192
- }> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
193
- $slots: {
194
- default?: (props: {}) => any;
195
- };
196
- }) | null>;
197
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
198
- blur: (event: FocusEvent) => any;
199
- change: (event: Event) => any;
200
- "update:modelValue": (value: number) => any;
201
- }, string, import("vue").PublicProps, Readonly<InputNumberProps> & Readonly<{
202
- onBlur?: ((event: FocusEvent) => any) | undefined;
203
- onChange?: ((event: Event) => any) | undefined;
204
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
205
- }>, {
206
- color: InputNumber["variants"]["color"];
207
- decrement: boolean | ButtonProps;
208
- increment: boolean | ButtonProps;
209
- orientation: "vertical" | "horizontal";
210
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, InputNumberSlots>;
99
+ declare const __VLS_export: <T extends InputNumberValue = InputNumberValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
100
+ props: __VLS_PrettifyLocal<InputNumberProps<T> & {
101
+ onChange?: ((event: Event) => any) | undefined;
102
+ onBlur?: ((event: FocusEvent) => any) | undefined;
103
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
104
+ }> & import("vue").PublicProps;
105
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
106
+ inputRef: Readonly<import("vue").Ref<HTMLInputElement, HTMLInputElement>>;
107
+ }>) => void;
108
+ attrs: any;
109
+ slots: InputNumberSlots;
110
+ emit: ((evt: "change", event: Event) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "update:modelValue", value: T) => void);
111
+ }>) => import("vue").VNode & {
112
+ __ctx?: Awaited<typeof __VLS_setup>;
113
+ };
211
114
  declare const _default: typeof __VLS_export;
212
115
  export default _default;
213
- type __VLS_WithSlots<T, S> = T & {
214
- new (): {
215
- $slots: S;
216
- };
217
- };
116
+ type __VLS_PrettifyLocal<T> = {
117
+ [K in keyof T as K]: T[K];
118
+ } & {};
@@ -3,7 +3,7 @@ import theme from "#build/b24ui/input-number";
3
3
  </script>
4
4
 
5
5
  <script setup>
6
- import { onMounted, ref, computed } from "vue";
6
+ import { onMounted, computed, useTemplateRef, toRef } from "vue";
7
7
  import { NumberFieldRoot, NumberFieldInput, NumberFieldDecrement, NumberFieldIncrement, useForwardPropsEmits } from "reka-ui";
8
8
  import { reactivePick, useVModel } from "@vueuse/core";
9
9
  import { useAppConfig } from "#imports";
@@ -81,7 +81,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.inputNu
81
81
  }));
82
82
  const incrementIcon = computed(() => props.incrementIcon || (props.orientation === "horizontal" ? icons.plus : icons.chevronUp));
83
83
  const decrementIcon = computed(() => props.decrementIcon || (props.orientation === "horizontal" ? icons.minus : icons.chevronDown));
84
- const inputRef = ref(null);
84
+ const inputRef = useTemplateRef("inputRef");
85
85
  function onUpdate(value) {
86
86
  if (props.modelModifiers?.optional) {
87
87
  value = value ?? void 0;
@@ -106,7 +106,7 @@ onMounted(() => {
106
106
  }, props.autofocusDelay);
107
107
  });
108
108
  defineExpose({
109
- inputRef
109
+ inputRef: toRef(() => inputRef.value?.$el)
110
110
  });
111
111
  </script>
112
112
 
@@ -2,10 +2,12 @@ import type { NumberFieldRootProps } from 'reka-ui';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/b24ui/input-number';
4
4
  import type { ButtonProps, BadgeProps, IconComponent } from '../types';
5
+ import type { InputHTMLAttributes } from '../types/html';
5
6
  import type { ModelModifiers } from '../types/input';
6
7
  import type { ComponentConfig } from '../types/tv';
7
8
  type InputNumber = ComponentConfig<typeof theme, AppConfig, 'inputNumber'>;
8
- export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'step' | 'stepSnapping' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange' | 'invertWheelChange' | 'readonly'> {
9
+ type InputNumberValue = number | null;
10
+ export interface InputNumberProps<T extends InputNumberValue = InputNumberValue> extends Pick<NumberFieldRootProps, 'modelValue' | 'defaultValue' | 'min' | 'max' | 'step' | 'stepSnapping' | 'disabled' | 'required' | 'id' | 'name' | 'formatOptions' | 'disableWheelChange' | 'invertWheelChange' | 'readonly'>, /** @vue-ignore */ Omit<InputHTMLAttributes, 'disabled' | 'min' | 'max' | 'readonly' | 'required' | 'step' | 'name' | 'placeholder' | 'type' | 'autofocus' | 'maxlength' | 'minlength' | 'pattern' | 'size'> {
9
11
  /**
10
12
  * The element or component this component should render as.
11
13
  * @defaultValue 'div'
@@ -32,7 +34,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
32
34
  */
33
35
  underline?: boolean;
34
36
  /**
35
- * Rounds the corners of the button
37
+ * Rounds the corners of the input
36
38
  * @defaultValue false
37
39
  */
38
40
  rounded?: boolean;
@@ -76,7 +78,7 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
76
78
  decrementDisabled?: boolean;
77
79
  autofocus?: boolean;
78
80
  autofocusDelay?: number;
79
- modelModifiers?: Pick<ModelModifiers, 'optional'>;
81
+ modelModifiers?: Pick<ModelModifiers<T>, 'optional'>;
80
82
  /**
81
83
  * The locale to use for formatting and parsing numbers.
82
84
  * @defaultValue B24App.locale.code
@@ -85,8 +87,8 @@ export interface InputNumberProps extends Pick<NumberFieldRootProps, 'modelValue
85
87
  class?: any;
86
88
  b24ui?: InputNumber['slots'];
87
89
  }
88
- export interface InputNumberEmits {
89
- 'update:modelValue': [value: number];
90
+ export interface InputNumberEmits<T extends InputNumberValue = InputNumberValue> {
91
+ 'update:modelValue': [value: T];
90
92
  'blur': [event: FocusEvent];
91
93
  'change': [event: Event];
92
94
  }
@@ -94,124 +96,23 @@ export interface InputNumberSlots {
94
96
  increment(props?: {}): any;
95
97
  decrement(props?: {}): any;
96
98
  }
97
- declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<InputNumberProps, {
98
- inputRef: import("vue").Ref<({
99
- $: import("vue").ComponentInternalInstance;
100
- $data: {};
101
- $props: {
102
- readonly asChild?: boolean | undefined;
103
- readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
104
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
105
- $attrs: {
106
- [x: string]: unknown;
107
- };
108
- $refs: {
109
- [x: string]: unknown;
110
- };
111
- $slots: Readonly<{
112
- [name: string]: import("vue").Slot<any> | undefined;
113
- }>;
114
- $root: import("vue").ComponentPublicInstance | null;
115
- $parent: import("vue").ComponentPublicInstance | null;
116
- $host: Element | null;
117
- $emit: (event: string, ...args: any[]) => void;
118
- $el: any;
119
- $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
120
- as: import("reka-ui").AsTag | import("vue").Component;
121
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
122
- beforeCreate?: (() => void) | (() => void)[];
123
- created?: (() => void) | (() => void)[];
124
- beforeMount?: (() => void) | (() => void)[];
125
- mounted?: (() => void) | (() => void)[];
126
- beforeUpdate?: (() => void) | (() => void)[];
127
- updated?: (() => void) | (() => void)[];
128
- activated?: (() => void) | (() => void)[];
129
- deactivated?: (() => void) | (() => void)[];
130
- beforeDestroy?: (() => void) | (() => void)[];
131
- beforeUnmount?: (() => void) | (() => void)[];
132
- destroyed?: (() => void) | (() => void)[];
133
- unmounted?: (() => void) | (() => void)[];
134
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
135
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
136
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
137
- };
138
- $forceUpdate: () => void;
139
- $nextTick: typeof import("vue").nextTick;
140
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
141
- } & Readonly<{
142
- as: import("reka-ui").AsTag | import("vue").Component;
143
- }> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
144
- $slots: {
145
- default?: (props: {}) => any;
146
- };
147
- }) | null, ({
148
- $: import("vue").ComponentInternalInstance;
149
- $data: {};
150
- $props: {
151
- readonly asChild?: boolean | undefined;
152
- readonly as?: (import("reka-ui").AsTag | import("vue").Component) | undefined;
153
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
154
- $attrs: {
155
- [x: string]: unknown;
156
- };
157
- $refs: {
158
- [x: string]: unknown;
159
- };
160
- $slots: Readonly<{
161
- [name: string]: import("vue").Slot<any> | undefined;
162
- }>;
163
- $root: import("vue").ComponentPublicInstance | null;
164
- $parent: import("vue").ComponentPublicInstance | null;
165
- $host: Element | null;
166
- $emit: (event: string, ...args: any[]) => void;
167
- $el: any;
168
- $options: import("vue").ComponentOptionsBase<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
169
- as: import("reka-ui").AsTag | import("vue").Component;
170
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
171
- beforeCreate?: (() => void) | (() => void)[];
172
- created?: (() => void) | (() => void)[];
173
- beforeMount?: (() => void) | (() => void)[];
174
- mounted?: (() => void) | (() => void)[];
175
- beforeUpdate?: (() => void) | (() => void)[];
176
- updated?: (() => void) | (() => void)[];
177
- activated?: (() => void) | (() => void)[];
178
- deactivated?: (() => void) | (() => void)[];
179
- beforeDestroy?: (() => void) | (() => void)[];
180
- beforeUnmount?: (() => void) | (() => void)[];
181
- destroyed?: (() => void) | (() => void)[];
182
- unmounted?: (() => void) | (() => void)[];
183
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
184
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
185
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
186
- };
187
- $forceUpdate: () => void;
188
- $nextTick: typeof import("vue").nextTick;
189
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
190
- } & Readonly<{
191
- as: import("reka-ui").AsTag | import("vue").Component;
192
- }> & Omit<Readonly<import("reka-ui").NumberFieldInputProps> & Readonly<{}>, "as"> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
193
- $slots: {
194
- default?: (props: {}) => any;
195
- };
196
- }) | null>;
197
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
198
- blur: (event: FocusEvent) => any;
199
- change: (event: Event) => any;
200
- "update:modelValue": (value: number) => any;
201
- }, string, import("vue").PublicProps, Readonly<InputNumberProps> & Readonly<{
202
- onBlur?: ((event: FocusEvent) => any) | undefined;
203
- onChange?: ((event: Event) => any) | undefined;
204
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
205
- }>, {
206
- color: InputNumber["variants"]["color"];
207
- decrement: boolean | ButtonProps;
208
- increment: boolean | ButtonProps;
209
- orientation: "vertical" | "horizontal";
210
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, InputNumberSlots>;
99
+ declare const __VLS_export: <T extends InputNumberValue = InputNumberValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
100
+ props: __VLS_PrettifyLocal<InputNumberProps<T> & {
101
+ onChange?: ((event: Event) => any) | undefined;
102
+ onBlur?: ((event: FocusEvent) => any) | undefined;
103
+ "onUpdate:modelValue"?: ((value: T) => any) | undefined;
104
+ }> & import("vue").PublicProps;
105
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
106
+ inputRef: Readonly<import("vue").Ref<HTMLInputElement, HTMLInputElement>>;
107
+ }>) => void;
108
+ attrs: any;
109
+ slots: InputNumberSlots;
110
+ emit: ((evt: "change", event: Event) => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "update:modelValue", value: T) => void);
111
+ }>) => import("vue").VNode & {
112
+ __ctx?: Awaited<typeof __VLS_setup>;
113
+ };
211
114
  declare const _default: typeof __VLS_export;
212
115
  export default _default;
213
- type __VLS_WithSlots<T, S> = T & {
214
- new (): {
215
- $slots: S;
216
- };
217
- };
116
+ type __VLS_PrettifyLocal<T> = {
117
+ [K in keyof T as K]: T[K];
118
+ } & {};