@movk/nuxt 1.4.1 → 1.5.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 (69) hide show
  1. package/README.en.md +308 -0
  2. package/README.md +4 -2
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +2 -2
  5. package/dist/runtime/components/AutoForm.d.vue.ts +1 -1
  6. package/dist/runtime/components/AutoForm.vue.d.ts +1 -1
  7. package/dist/runtime/components/ColorChooser.d.vue.ts +1 -1
  8. package/dist/runtime/components/ColorChooser.vue.d.ts +1 -1
  9. package/dist/runtime/components/DataTable.d.vue.ts +1 -1
  10. package/dist/runtime/components/DataTable.vue.d.ts +1 -1
  11. package/dist/runtime/components/DatePicker.d.vue.ts +1 -1
  12. package/dist/runtime/components/DatePicker.vue.d.ts +1 -1
  13. package/dist/runtime/components/PillGroup.d.vue.ts +1 -1
  14. package/dist/runtime/components/PillGroup.vue.d.ts +1 -1
  15. package/dist/runtime/components/Popconfirm.d.vue.ts +1 -1
  16. package/dist/runtime/components/Popconfirm.vue.d.ts +1 -1
  17. package/dist/runtime/components/SearchForm.d.vue.ts +1 -1
  18. package/dist/runtime/components/SearchForm.vue.d.ts +1 -1
  19. package/dist/runtime/components/Tree.d.vue.ts +1 -1
  20. package/dist/runtime/components/Tree.vue +4 -3
  21. package/dist/runtime/components/Tree.vue.d.ts +1 -1
  22. package/dist/runtime/components/input/AsPhoneNumberInput.d.vue.ts +1 -1
  23. package/dist/runtime/components/input/AsPhoneNumberInput.vue.d.ts +1 -1
  24. package/dist/runtime/components/input/WithCharacterLimit.d.vue.ts +1 -1
  25. package/dist/runtime/components/input/WithCharacterLimit.vue.d.ts +1 -1
  26. package/dist/runtime/components/input/WithClear.d.vue.ts +1 -1
  27. package/dist/runtime/components/input/WithClear.vue.d.ts +1 -1
  28. package/dist/runtime/components/input/WithCopy.d.vue.ts +1 -1
  29. package/dist/runtime/components/input/WithCopy.vue.d.ts +1 -1
  30. package/dist/runtime/components/input/WithFloatingLabel.d.vue.ts +1 -1
  31. package/dist/runtime/components/input/WithFloatingLabel.vue.d.ts +1 -1
  32. package/dist/runtime/components/input/WithPasswordToggle.d.vue.ts +1 -1
  33. package/dist/runtime/components/input/WithPasswordToggle.vue.d.ts +1 -1
  34. package/dist/runtime/composables/useApiFetch.d.ts +4 -1
  35. package/dist/runtime/composables/useApiFetch.js +14 -2
  36. package/dist/runtime/composables/useTheme.js +3 -3
  37. package/dist/runtime/domains/api/deep-to-value.d.ts +9 -0
  38. package/dist/runtime/domains/api/deep-to-value.js +11 -0
  39. package/dist/runtime/domains/api/interceptors/compose.d.ts +24 -0
  40. package/dist/runtime/domains/api/interceptors/compose.js +18 -0
  41. package/dist/runtime/domains/auto-form/controls.d.ts +11 -90
  42. package/dist/runtime/domains/auto-form/controls.js +0 -2
  43. package/dist/runtime/domains/data-table/columns/resize.d.ts +4 -0
  44. package/dist/runtime/domains/data-table/columns/resize.js +134 -0
  45. package/dist/runtime/domains/data-table/columns/resolve-data-column.js +3 -46
  46. package/dist/runtime/domains/data-table/columns/resolve-special-columns.js +2 -1
  47. package/dist/runtime/domains/data-table/columns/style.d.ts +1 -0
  48. package/dist/runtime/domains/data-table/columns/style.js +22 -5
  49. package/dist/runtime/domains/data-table/components/Pagination.d.vue.ts +1 -1
  50. package/dist/runtime/domains/data-table/components/Pagination.vue.d.ts +1 -1
  51. package/dist/runtime/domains/theme/theme-icons.d.ts +9 -0
  52. package/dist/runtime/domains/theme/theme-icons.js +7 -0
  53. package/dist/runtime/domains/tree/components/TreeToolbar.vue +1 -1
  54. package/dist/runtime/plugins/api.factory.js +9 -3
  55. package/dist/runtime/plugins/theme.js +2 -2
  56. package/dist/runtime/types/auto-form/zod-factory.d.ts +20 -5
  57. package/dist/runtime/types/components/date-picker.d.ts +3 -0
  58. package/dist/runtime/types/components/index.d.ts +0 -1
  59. package/dist/runtime/types/components/tree.d.ts +1 -0
  60. package/dist/runtime/vue/plugins/theme.js +2 -2
  61. package/dist/shared/{nuxt.CXM2nhP4.mjs → nuxt.DJKBap-S.mjs} +0 -28
  62. package/dist/unplugin.mjs +1 -1
  63. package/dist/vite.mjs +1 -1
  64. package/package.json +13 -13
  65. package/dist/runtime/components/StarRating.d.vue.ts +0 -52
  66. package/dist/runtime/components/StarRating.vue +0 -238
  67. package/dist/runtime/components/StarRating.vue.d.ts +0 -52
  68. package/dist/runtime/types/components/star-rating.d.ts +0 -55
  69. package/dist/runtime/types/components/star-rating.js +0 -0
@@ -1,15 +1,32 @@
1
1
  import { isString } from "@movk/core";
2
2
  import { resolvePresetSize } from "./utils.js";
3
+ export function clampSize(n, min, max) {
4
+ return Math.min(Math.max(n, min), max);
5
+ }
6
+ function fixedWidth(n) {
7
+ const w = `${n}px`;
8
+ return { width: w, minWidth: w, maxWidth: w };
9
+ }
10
+ function clampWidth(size, columnDef) {
11
+ return fixedWidth(clampSize(size, columnDef.minSize ?? -Infinity, columnDef.maxSize ?? Infinity));
12
+ }
13
+ function clampMinWidth(size, columnDef) {
14
+ return fixedWidth(clampSize(size, columnDef.minSize ?? -Infinity, Infinity));
15
+ }
16
+ function isInnermostPinned(column, table, pinned) {
17
+ const cols = pinned === "left" ? table.getLeftLeafColumns() : table.getRightLeafColumns();
18
+ const target = pinned === "left" ? cols[cols.length - 1] : cols[0];
19
+ return target?.id === column.id;
20
+ }
3
21
  export function resolveColumnSize(ctx) {
4
22
  const { columnDef } = ctx.column;
5
23
  const table = ctx.getContext().table;
6
- const isPinned = !!ctx.column.getIsPinned();
24
+ const pinned = ctx.column.getIsPinned();
7
25
  const isSized = ctx.column.id in table.getState().columnSizing;
8
26
  const hasExplicitSize = columnDef.size != table._getDefaultColumnDef().size;
9
- if (isPinned || isSized || hasExplicitSize) {
10
- const w = `${ctx.column.getSize()}px`;
11
- return { width: w, minWidth: w, maxWidth: w };
12
- }
27
+ if (hasExplicitSize) return clampWidth(ctx.column.getSize(), columnDef);
28
+ if (isSized) return clampMinWidth(ctx.column.getSize(), columnDef);
29
+ if (pinned && !isInnermostPinned(ctx.column, table, pinned)) return clampWidth(ctx.column.getSize(), columnDef);
13
30
  const style = {};
14
31
  if (columnDef.minSize != null) style.minWidth = `${columnDef.minSize}px`;
15
32
  if (columnDef.maxSize != null) style.maxWidth = `${columnDef.maxSize}px`;
@@ -15,7 +15,7 @@ declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Await
15
15
  slots: DataTablePaginationSlots<T>;
16
16
  emit: {};
17
17
  }>) => import("vue").VNode & {
18
- __ctx?: Awaited<typeof __VLS_setup>;
18
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
19
19
  };
20
20
  declare const _default: typeof __VLS_export;
21
21
  export default _default;
@@ -15,7 +15,7 @@ declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Await
15
15
  slots: DataTablePaginationSlots<T>;
16
16
  emit: {};
17
17
  }>) => import("vue").VNode & {
18
- __ctx?: Awaited<typeof __VLS_setup>;
18
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
19
19
  };
20
20
  declare const _default: typeof __VLS_export;
21
21
  export default _default;
@@ -1,3 +1,9 @@
1
+ export type ThemeIconSet = keyof typeof themeIcons;
2
+ /**
3
+ * 按图标集覆盖当前图标表,图标集未收录的键回退当前值。
4
+ * 整体替换会丢失 @nuxt/ui 新增而图标集尚未跟进的键(如 4.10 的 star),故此处合并。
5
+ */
6
+ export declare function resolveThemeIcons(set: string, current: Record<string, string>): Record<string, string>;
1
7
  export declare const themeIcons: {
2
8
  lucide: {
3
9
  arrowDown: string;
@@ -37,6 +43,7 @@ export declare const themeIcons: {
37
43
  reload: string;
38
44
  search: string;
39
45
  stop: string;
46
+ star: string;
40
47
  success: string;
41
48
  system: string;
42
49
  tip: string;
@@ -81,6 +88,7 @@ export declare const themeIcons: {
81
88
  reload: string;
82
89
  search: string;
83
90
  stop: string;
91
+ star: string;
84
92
  success: string;
85
93
  system: string;
86
94
  tip: string;
@@ -125,6 +133,7 @@ export declare const themeIcons: {
125
133
  reload: string;
126
134
  search: string;
127
135
  stop: string;
136
+ star: string;
128
137
  success: string;
129
138
  system: string;
130
139
  tip: string;
@@ -1,3 +1,7 @@
1
+ export function resolveThemeIcons(set, current) {
2
+ const icons = themeIcons[set];
3
+ return icons ? { ...current, ...icons } : current;
4
+ }
1
5
  export const themeIcons = {
2
6
  lucide: {
3
7
  arrowDown: "i-lucide-arrow-down",
@@ -37,6 +41,7 @@ export const themeIcons = {
37
41
  reload: "i-lucide-rotate-ccw",
38
42
  search: "i-lucide-search",
39
43
  stop: "i-lucide-square",
44
+ star: "i-lucide-star",
40
45
  success: "i-lucide-circle-check",
41
46
  system: "i-lucide-monitor",
42
47
  tip: "i-lucide-lightbulb",
@@ -81,6 +86,7 @@ export const themeIcons = {
81
86
  reload: "i-ph-arrow-counter-clockwise",
82
87
  search: "i-ph-magnifying-glass",
83
88
  stop: "i-ph-square",
89
+ star: "i-ph-star",
84
90
  success: "i-ph-check-circle",
85
91
  system: "i-ph-monitor",
86
92
  tip: "i-ph-lightbulb",
@@ -125,6 +131,7 @@ export const themeIcons = {
125
131
  reload: "i-tabler-reload",
126
132
  search: "i-tabler-search",
127
133
  stop: "i-tabler-player-stop",
134
+ star: "i-tabler-star",
128
135
  success: "i-tabler-square-rounded-check",
129
136
  system: "i-tabler-device-desktop",
130
137
  tip: "i-tabler-bulb",
@@ -26,7 +26,7 @@ function onToggleAll(checked) {
26
26
  </script>
27
27
 
28
28
  <template>
29
- <div :class="ui.toolbar">
29
+ <div :class="ui.toolbar" data-slot="toolbar">
30
30
  <slot name="leading" />
31
31
 
32
32
  <UInput
@@ -2,15 +2,21 @@ import { resolveEndpointConfig } from "../domains/api/endpoint-config.js";
2
2
  import { createOnRequest } from "../domains/api/interceptors/request.js";
3
3
  import { createOnResponse } from "../domains/api/interceptors/response.js";
4
4
  import { createOnResponseError } from "../domains/api/interceptors/error.js";
5
+ import { attachInterceptors } from "../domains/api/interceptors/compose.js";
5
6
  import { defineNuxtPlugin, useNuxtApp, useRuntimeConfig } from "#imports";
6
7
  function createEndpointFetch(resolvedConfig, publicConfig, nuxtApp) {
7
- return $fetch.create({
8
- baseURL: resolvedConfig.baseURL,
9
- headers: resolvedConfig.headers,
8
+ const interceptors = {
10
9
  onRequest: createOnRequest(resolvedConfig, publicConfig, nuxtApp),
11
10
  onResponse: createOnResponse(resolvedConfig, publicConfig, nuxtApp),
12
11
  onResponseError: createOnResponseError(resolvedConfig, publicConfig, nuxtApp)
12
+ };
13
+ const instance = $fetch.create({
14
+ baseURL: resolvedConfig.baseURL,
15
+ headers: resolvedConfig.headers,
16
+ ...interceptors
13
17
  });
18
+ attachInterceptors(instance, interceptors);
19
+ return instance;
14
20
  }
15
21
  export default defineNuxtPlugin(() => {
16
22
  const nuxtApp = useNuxtApp();
@@ -1,6 +1,6 @@
1
1
  import { kebabCase } from "@movk/core";
2
2
  import { defineNuxtPlugin, useAppConfig, useHead, useSiteConfig } from "#imports";
3
- import { themeIcons } from "../domains/theme/theme-icons.js";
3
+ import { resolveThemeIcons } from "../domains/theme/theme-icons.js";
4
4
  export default defineNuxtPlugin({
5
5
  enforce: "post",
6
6
  setup() {
@@ -13,7 +13,7 @@ export default defineNuxtPlugin({
13
13
  const neutral = localStorage.getItem(`${name}-ui-neutral`);
14
14
  if (neutral) appConfig.ui.colors.neutral = neutral;
15
15
  const icons = localStorage.getItem(`${name}-ui-icons`);
16
- if (icons) appConfig.ui.icons = themeIcons[icons];
16
+ if (icons) appConfig.ui.icons = resolveThemeIcons(icons, appConfig.ui.icons);
17
17
  }
18
18
  if (import.meta.server) {
19
19
  const pickerFonts = appConfig.movk?.picker?.fonts ?? [];
@@ -1,7 +1,7 @@
1
1
  import type { z } from 'zod';
2
- import type { DateRange } from 'reka-ui';
3
- import type { CalendarDate, DateValue, Time } from '@internationalized/date';
2
+ import type { CalendarDate, Time } from '@internationalized/date';
4
3
  import type { ComponentProps, ComponentSlots, IsAny, IsComponent, KnownKeys, OmitByKey, Prettify, ReactiveValue, UnionToIntersection, WidenLiteral } from '@movk/core';
4
+ import type { ValueFormat } from '../../composables/useDateFormatter';
5
5
  import type { AutoFormFieldContext } from './fields';
6
6
  import type { AutoFormControl, AutoFormControls, AutoFormControlsMeta, _Unset, AutoFormLayoutConfig } from './controls';
7
7
  import type { AUTOFORM_META } from '../../domains/auto-form/constants';
@@ -72,10 +72,25 @@ type EnumFactory<TControls extends AutoFormControls> = {
72
72
  <const T extends EnumValues>(values: T, overwrite: MetaByDefaultIfExists<TControls, 'enum'>): EnumFactoryResult<T>;
73
73
  <const T extends EnumValues, C extends IsComponent>(values: T, overwrite: MetaByComponent<C>): EnumFactoryResult<T>;
74
74
  };
75
+ type _CalendarSingle<V> = V extends 'iso' ? string : V extends 'timestamp' | 'unix' ? number : V extends 'date' ? Date : CalendarDate;
76
+ type _ResolveControlProps<CP> = CP extends (...args: any[]) => infer R ? R : CP;
77
+ type _ValueFormatOf<CP> = CP extends {
78
+ valueFormat: infer V extends ValueFormat;
79
+ } ? V : 'date-value';
80
+ type InferCalendarDateValue<Meta> = Meta extends {
81
+ controlProps?: infer CP;
82
+ } ? _ResolveControlProps<CP> extends infer P ? P extends {
83
+ multiple: true;
84
+ } ? _CalendarSingle<_ValueFormatOf<P>>[] : P extends {
85
+ range: true;
86
+ } ? {
87
+ start: _CalendarSingle<_ValueFormatOf<P>> | undefined;
88
+ end: _CalendarSingle<_ValueFormatOf<P>> | undefined;
89
+ } | undefined : _CalendarSingle<_ValueFormatOf<P>> : CalendarDate : CalendarDate;
75
90
  type CalendarDateFactory<TControls extends AutoFormControls> = {
76
- <T extends DateValue | DateRange | DateValue[] = CalendarDate, K extends ControlKey<TControls> = ControlKey<TControls>>(meta?: MetaByControlKey<TControls, K>): z.ZodType<T>;
77
- <T extends DateValue | DateRange | DateValue[] = CalendarDate>(meta: MetaByDefaultIfExists<TControls, 'calendarDate'>): z.ZodType<T>;
78
- <C extends IsComponent, T extends DateValue | DateRange | DateValue[] = CalendarDate>(meta: MetaByComponent<C>): z.ZodType<T>;
91
+ <const Meta = unknown>(meta?: Meta & MetaByDefaultIfExists<TControls, 'calendarDate'>): z.ZodType<InferCalendarDateValue<Meta>>;
92
+ <const Meta = unknown, K extends ControlKey<TControls> = ControlKey<TControls>>(meta: Meta & MetaByControlKey<TControls, K>): z.ZodType<InferCalendarDateValue<Meta>>;
93
+ <const Meta = unknown, C extends IsComponent = IsComponent>(meta: Meta & MetaByComponent<C>): z.ZodType<InferCalendarDateValue<Meta>>;
79
94
  };
80
95
  type ArrayFactory<TControls extends AutoFormControls> = {
81
96
  <T extends z.ZodType, K extends ControlKey<TControls>>(schema: T, overwrite?: MetaByControlKey<TControls, K>): z.ZodArray<T>;
@@ -35,6 +35,9 @@ export interface DatePickerProps<R extends boolean, M extends boolean, P extends
35
35
  presets?: DatePickerPreset<R, M>[] | 'default';
36
36
  ui?: Record<string, ClassNameValue>;
37
37
  }
38
+ type CalendarUnportableKeys = 'isDateDisabled' | 'isDateUnavailable' | 'isMonthDisabled' | 'isMonthUnavailable' | 'isYearDisabled' | 'isYearUnavailable' | 'weekStartsOn' | 'weekdayFormat';
39
+ /** AutoForm calendarDate 控件可移植 props(DatePicker props 去除 reka-ui 不可移植项),用于 controlProps 类型提示 */
40
+ export type CalendarDateControlProps = OmitByKey<DatePickerProps<boolean, boolean, PopoverMode, ValueFormat>, CalendarUnportableKeys>;
38
41
  export type DatePickerEmits<R extends boolean, M extends boolean, V extends ValueFormat = 'date-value'> = PopoverEmits & Omit<CalendarEmits<R, M>, 'update:modelValue'> & {
39
42
  'update:modelValue': [value: FormattedValue<R, M, V>];
40
43
  };
@@ -4,6 +4,5 @@ export type { MessageBoxEmits, MessageBoxProps, MessageBoxSlots } from './messag
4
4
  export type { MTreeItem, TreeEmits, TreeExposed, TreeFilter, TreeItem, TreeLoadChildren, TreeProps, TreeSelectionResult, TreeSelectionStrategy, TreeSelectionSummary, TreeSlots } from './tree';
5
5
  export type { PopconfirmEmits, PopconfirmProps, PopconfirmSlots } from './popconfirm';
6
6
  export type { SlideVerifyEmits, SlideVerifyProps, SlideVerifySlots } from './slide-verify';
7
- export type { StarRatingEmits, StarRatingProps } from './star-rating';
8
7
  export type { PillGroupEmits, PillGroupProps, PillGroupSlots, PillItem, PillGroupValue, PillSelectPayload } from './pill-group';
9
8
  export type { AsPhoneNumberInputProps, WithCharacterLimitProps, WithClearEmits, WithClearProps, WithCopyEmits, WithCopyProps, WithFloatingLabelEmits, WithFloatingLabelProps, WithPasswordToggleProps } from './input';
@@ -84,6 +84,7 @@ export interface TreeProps<T extends TreeItem[] = TreeItem[], M extends boolean
84
84
  /** 渲染复选框并启用多选(multiple + strategy,默认 cascade) */
85
85
  checkable?: M & boolean;
86
86
  ui?: Record<string, ClassNameValue>;
87
+ class?: ClassNameValue;
87
88
  }
88
89
  /** 父子勾选策略 */
89
90
  export type TreeSelectionStrategy = 'cascade' | 'isolated';
@@ -1,6 +1,6 @@
1
1
  import { defineNuxtPlugin, useAppConfig, useSiteConfig } from "#imports";
2
2
  import { kebabCase } from "@movk/core";
3
- import { themeIcons } from "../../domains/theme/theme-icons.js";
3
+ import { resolveThemeIcons } from "../../domains/theme/theme-icons.js";
4
4
  export default defineNuxtPlugin(() => {
5
5
  const appConfig = useAppConfig();
6
6
  const site = useSiteConfig();
@@ -10,5 +10,5 @@ export default defineNuxtPlugin(() => {
10
10
  const neutral = localStorage.getItem(`${name}-ui-neutral`);
11
11
  if (neutral) appConfig.ui.colors.neutral = neutral;
12
12
  const icons = localStorage.getItem(`${name}-ui-icons`);
13
- if (icons) appConfig.ui.icons = themeIcons[icons];
13
+ if (icons) appConfig.ui.icons = resolveThemeIcons(icons, appConfig.ui.icons);
14
14
  });
@@ -372,33 +372,6 @@ const autoForm = () => ({
372
372
  }
373
373
  });
374
374
 
375
- const starRating = () => ({
376
- slots: {
377
- root: "inline-flex items-center gap-1",
378
- stars: "flex items-center gap-0.5",
379
- star: "transition-all duration-150"
380
- },
381
- variants: {
382
- interactive: {
383
- true: { star: "cursor-pointer hover:scale-110" }
384
- },
385
- disabled: {
386
- true: { star: "cursor-not-allowed opacity-50" }
387
- },
388
- readonly: {
389
- true: { star: "cursor-default" }
390
- },
391
- fieldGroup: {
392
- horizontal: {
393
- root: "rounded-md bg-default ring ring-inset ring-accented px-1 not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]"
394
- },
395
- vertical: {
396
- root: "rounded-md bg-default ring ring-inset ring-accented px-1 not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"
397
- }
398
- }
399
- }
400
- });
401
-
402
375
  const pillGroup = () => ({
403
376
  slots: {
404
377
  root: "flex items-center gap-2",
@@ -457,7 +430,6 @@ const theme = {
457
430
  popconfirm: popconfirm,
458
431
  searchForm: searchForm,
459
432
  slideVerify: slideVerify,
460
- starRating: starRating,
461
433
  themePicker: themePicker,
462
434
  tree: tree,
463
435
  withCharacterLimit: withCharacterLimit,
package/dist/unplugin.mjs CHANGED
@@ -8,7 +8,7 @@ import MagicString from 'magic-string';
8
8
  import { resolvePathSync } from 'mlly';
9
9
  import fs from 'node:fs';
10
10
  import path from 'node:path';
11
- import { U as UI_COMPONENTS, g as getTemplates } from './shared/nuxt.CXM2nhP4.mjs';
11
+ import { U as UI_COMPONENTS, g as getTemplates } from './shared/nuxt.DJKBap-S.mjs';
12
12
  import { kebabCase } from 'scule';
13
13
  import { getDefaultConfig } from '../dist/runtime/utils/theme-defaults.js';
14
14
  import { getPackageJsonMetadata } from '../dist/runtime/utils/meta.js';
package/dist/vite.mjs CHANGED
@@ -9,7 +9,7 @@ import 'magic-string';
9
9
  import 'mlly';
10
10
  import 'node:fs';
11
11
  import 'node:path';
12
- import './shared/nuxt.CXM2nhP4.mjs';
12
+ import './shared/nuxt.DJKBap-S.mjs';
13
13
  import 'scule';
14
14
  import '@nuxt/kit';
15
15
  import '../dist/runtime/utils/theme-defaults.js';
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@movk/nuxt",
3
3
  "type": "module",
4
- "version": "1.4.1",
5
- "packageManager": "pnpm@11.8.0",
4
+ "version": "1.5.0",
5
+ "packageManager": "pnpm@11.13.1",
6
6
  "description": "An engineering suite built on Nuxt UI: schema-driven AutoForm (Zod v4), a full-featured DataTable, standalone UI components and composables. Get the full capabilities — including API integration with auth & progress — in Nuxt 4, and use its UI, forms, tables and theming in plain Vue + Vite via the Vite plugin.",
7
7
  "author": "YiXuan <mhaibaraai@gmail.com>",
8
8
  "license": "MIT",
@@ -124,13 +124,13 @@
124
124
  "test:vue": "vitest --project vue"
125
125
  },
126
126
  "dependencies": {
127
- "@iconify-json/lucide": "^1.2.114",
127
+ "@iconify-json/lucide": "^1.2.117",
128
128
  "@iconify-json/ph": "^1.2.2",
129
129
  "@iconify-json/tabler": "^1.2.35",
130
130
  "@internationalized/date": "^3.12.2",
131
131
  "@movk/core": "^1.3.1",
132
132
  "@nuxt/image": "^2.0.0",
133
- "@nuxt/ui": "^4.9.0",
133
+ "@nuxt/ui": "^4.10.0",
134
134
  "@tanstack/vue-table": "^8.21.3",
135
135
  "@vueuse/core": "^14.3.0",
136
136
  "@vueuse/nuxt": "^14.3.0",
@@ -140,15 +140,15 @@
140
140
  "maska": "^3.2.0",
141
141
  "mlly": "^1.8.2",
142
142
  "nuxt-auth-utils": "^0.5.29",
143
- "nuxt-site-config": "^4.1.0",
143
+ "nuxt-site-config": "^4.1.1",
144
144
  "pathe": "^2.0.3",
145
- "reka-ui": "2.9.10",
145
+ "reka-ui": "2.10.1",
146
146
  "scule": "^1.3.0",
147
147
  "tailwind-variants": "^3.2.2",
148
- "tailwindcss": "^4.3.1",
148
+ "tailwindcss": "^4.3.2",
149
149
  "tinyglobby": "^0.2.17",
150
150
  "unifont": "^0.7.4",
151
- "unplugin": "^3.0.0",
151
+ "unplugin": "^3.3.0",
152
152
  "zod": "^4.4.3"
153
153
  },
154
154
  "devDependencies": {
@@ -157,16 +157,16 @@
157
157
  "@nuxt/module-builder": "^1.0.2",
158
158
  "@nuxt/schema": "^4.4.8",
159
159
  "@release-it/conventional-changelog": "^11.0.1",
160
- "eslint": "^10.5.0",
160
+ "eslint": "^10.7.0",
161
161
  "happy-dom": "^20.10.6",
162
162
  "nuxt": "^4.4.8",
163
- "release-it": "^20.2.0",
163
+ "release-it": "^20.2.1",
164
164
  "typescript": "^6.0.3",
165
165
  "unbuild": "^3.6.1",
166
166
  "unplugin-auto-import": "^21.0.0",
167
167
  "unplugin-vue-components": "^32.1.0",
168
- "vitest": "^4.1.9",
169
- "vue": "^3.5.38",
170
- "vue-tsc": "^3.3.5"
168
+ "vitest": "^4.1.10",
169
+ "vue": "^3.5.39",
170
+ "vue-tsc": "^3.3.7"
171
171
  }
172
172
  }
@@ -1,52 +0,0 @@
1
- import type { ComponentConfig } from '@nuxt/ui';
2
- import theme from '#build/movk-ui/star-rating';
3
- import type { AppConfig } from 'nuxt/schema';
4
- import type { StarRatingProps } from '../types/components/star-rating';
5
- type __VLS_Props = StarRatingProps & {
6
- ui?: ComponentConfig<typeof theme, AppConfig, 'starRating'>['slots'];
7
- };
8
- type __VLS_ModelProps = {
9
- modelValue?: number;
10
- };
11
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
- declare var __VLS_7: {
13
- value: number;
14
- max: number;
15
- }, __VLS_19: {
16
- value: number;
17
- max: number;
18
- label: string;
19
- }, __VLS_26: {
20
- value: number;
21
- max: number;
22
- };
23
- type __VLS_Slots = {} & {
24
- prefix?: (props: typeof __VLS_7) => any;
25
- } & {
26
- badge?: (props: typeof __VLS_19) => any;
27
- } & {
28
- suffix?: (props: typeof __VLS_26) => any;
29
- };
30
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
- change: (value: number) => any;
32
- "update:modelValue": (value: number) => any;
33
- hover: (value: number | null) => any;
34
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
35
- onChange?: ((value: number) => any) | undefined;
36
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
37
- onHover?: ((value: number | null) => any) | undefined;
38
- }>, {
39
- max: number;
40
- showBadge: boolean;
41
- emptyIcon: import("@nuxt/ui").IconProps["name"];
42
- filledIcon: import("@nuxt/ui").IconProps["name"];
43
- halfIcon: import("@nuxt/ui").IconProps["name"];
44
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
45
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
- declare const _default: typeof __VLS_export;
47
- export default _default;
48
- type __VLS_WithSlots<T, S> = T & {
49
- new (): {
50
- $slots: S;
51
- };
52
- };