@movk/nuxt 1.8.2 → 2.0.0-beta.1
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.
- package/README.en.md +16 -6
- package/README.md +16 -6
- package/dist/module.d.mts +6 -0
- package/dist/module.json +3 -3
- package/dist/module.mjs +21 -24
- package/dist/runtime/components/AutoForm.d.vue.ts +15 -1
- package/dist/runtime/components/AutoForm.vue +48 -50
- package/dist/runtime/components/AutoForm.vue.d.ts +15 -1
- package/dist/runtime/components/DataTable.d.vue.ts +4 -2
- package/dist/runtime/components/DataTable.vue +166 -174
- package/dist/runtime/components/DataTable.vue.d.ts +4 -2
- package/dist/runtime/components/DatePicker.d.vue.ts +6 -5
- package/dist/runtime/components/DatePicker.vue +96 -43
- package/dist/runtime/components/DatePicker.vue.d.ts +6 -5
- package/dist/runtime/components/MessageBox.d.vue.ts +1 -5
- package/dist/runtime/components/MessageBox.vue +9 -7
- package/dist/runtime/components/MessageBox.vue.d.ts +1 -5
- package/dist/runtime/components/SearchForm.d.vue.ts +12 -4
- package/dist/runtime/components/SearchForm.vue +130 -120
- package/dist/runtime/components/SearchForm.vue.d.ts +12 -4
- package/dist/runtime/components/Tree.d.vue.ts +3 -1
- package/dist/runtime/components/Tree.vue +102 -140
- package/dist/runtime/components/Tree.vue.d.ts +3 -1
- package/dist/runtime/components/theme-picker/ThemePicker.vue +5 -3
- package/dist/runtime/components/theme-picker/ThemePickerButton.vue +15 -6
- package/dist/runtime/composables/index.d.ts +1 -0
- package/dist/runtime/composables/index.js +1 -0
- package/dist/runtime/composables/useApiFetch.d.ts +7 -7
- package/dist/runtime/composables/useApiFetch.js +5 -23
- package/dist/runtime/composables/useAutoForm.js +2 -2
- package/dist/runtime/composables/useClientApiFetch.d.ts +5 -5
- package/dist/runtime/composables/useDateFormatter.d.ts +32 -34
- package/dist/runtime/composables/useDateFormatter.js +75 -232
- package/dist/runtime/composables/useDownloadWithProgress.d.ts +11 -8
- package/dist/runtime/composables/useDownloadWithProgress.js +49 -132
- package/dist/runtime/composables/useMessageBox.js +3 -2
- package/dist/runtime/composables/useMovkLocale.d.ts +16 -0
- package/dist/runtime/composables/useMovkLocale.js +20 -0
- package/dist/runtime/composables/useTheme.js +8 -18
- package/dist/runtime/composables/useUploadWithProgress.d.ts +9 -6
- package/dist/runtime/composables/useUploadWithProgress.js +50 -84
- package/dist/runtime/domains/ai/chat-transport.js +1 -0
- package/dist/runtime/domains/api/adapters/xhr.d.ts +17 -0
- package/dist/runtime/domains/api/adapters/xhr.js +55 -0
- package/dist/runtime/domains/api/auth.d.ts +4 -1
- package/dist/runtime/domains/api/auth.js +9 -13
- package/dist/runtime/domains/api/client.d.ts +13 -0
- package/dist/runtime/domains/api/client.js +35 -0
- package/dist/runtime/domains/api/download.d.ts +10 -0
- package/dist/runtime/domains/api/download.js +28 -0
- package/dist/runtime/domains/api/errors.d.ts +20 -2
- package/dist/runtime/domains/api/errors.js +61 -8
- package/dist/runtime/domains/api/fetch-key.d.ts +2 -2
- package/dist/runtime/domains/api/fetch-key.js +4 -4
- package/dist/runtime/domains/api/interceptors/request.d.ts +2 -6
- package/dist/runtime/domains/api/interceptors/request.js +3 -2
- package/dist/runtime/domains/api/interceptors/response.d.ts +8 -12
- package/dist/runtime/domains/api/interceptors/response.js +34 -20
- package/dist/runtime/domains/api/report.d.ts +25 -0
- package/dist/runtime/domains/api/report.js +51 -0
- package/dist/runtime/domains/api/response.d.ts +29 -4
- package/dist/runtime/domains/api/response.js +27 -6
- package/dist/runtime/domains/api/session.d.ts +12 -0
- package/dist/runtime/domains/api/session.js +9 -0
- package/dist/runtime/domains/api/stream.d.ts +2 -1
- package/dist/runtime/domains/api/stream.js +2 -1
- package/dist/runtime/domains/api/toast.d.ts +6 -3
- package/dist/runtime/domains/api/toast.js +7 -7
- package/dist/runtime/domains/auto-form/actions.d.ts +2 -1
- package/dist/runtime/domains/auto-form/actions.js +6 -4
- package/dist/runtime/domains/auto-form/array-ops.d.ts +3 -0
- package/dist/runtime/domains/auto-form/array-ops.js +9 -0
- package/dist/runtime/domains/auto-form/async-items.d.ts +10 -0
- package/dist/runtime/domains/auto-form/async-items.js +42 -0
- package/dist/runtime/domains/auto-form/components/Array.d.vue.ts +0 -4
- package/dist/runtime/domains/auto-form/components/Array.vue +81 -73
- package/dist/runtime/domains/auto-form/components/Array.vue.d.ts +0 -4
- package/dist/runtime/domains/auto-form/components/Children.d.vue.ts +0 -2
- package/dist/runtime/domains/auto-form/components/Children.vue +0 -5
- package/dist/runtime/domains/auto-form/components/Children.vue.d.ts +0 -2
- package/dist/runtime/domains/auto-form/components/Field.d.vue.ts +0 -2
- package/dist/runtime/domains/auto-form/components/Field.vue +9 -2
- package/dist/runtime/domains/auto-form/components/Field.vue.d.ts +0 -2
- package/dist/runtime/domains/auto-form/components/Layout.d.vue.ts +0 -2
- package/dist/runtime/domains/auto-form/components/Layout.vue +3 -6
- package/dist/runtime/domains/auto-form/components/Layout.vue.d.ts +0 -2
- package/dist/runtime/domains/auto-form/components/Nested.d.vue.ts +0 -2
- package/dist/runtime/domains/auto-form/components/Nested.vue +5 -9
- package/dist/runtime/domains/auto-form/components/Nested.vue.d.ts +0 -2
- package/dist/runtime/domains/auto-form/controls.d.ts +5 -572
- package/dist/runtime/domains/auto-form/controls.js +7 -20
- package/dist/runtime/domains/auto-form/fields.d.ts +21 -4
- package/dist/runtime/domains/auto-form/fields.js +52 -40
- package/dist/runtime/domains/auto-form/provider.d.ts +15 -6
- package/dist/runtime/domains/auto-form/provider.js +24 -10
- package/dist/runtime/domains/auto-form/schema.d.ts +9 -4
- package/dist/runtime/domains/auto-form/schema.js +91 -50
- package/dist/runtime/domains/auto-form/search-query.d.ts +10 -0
- package/dist/runtime/domains/auto-form/search-query.js +57 -0
- package/dist/runtime/domains/auto-form/useAutoFormCore.d.ts +62 -0
- package/dist/runtime/domains/auto-form/useAutoFormCore.js +108 -0
- package/dist/runtime/domains/auto-form/useSearchQuerySync.d.ts +11 -0
- package/dist/runtime/domains/auto-form/useSearchQuerySync.js +64 -0
- package/dist/runtime/domains/data-table/columns/constants.d.ts +2 -0
- package/dist/runtime/domains/data-table/columns/constants.js +1 -1
- package/dist/runtime/domains/data-table/columns/resolve-columns.d.ts +2 -1
- package/dist/runtime/domains/data-table/columns/resolve-columns.js +3 -2
- package/dist/runtime/domains/data-table/columns/resolve-data-column.d.ts +7 -2
- package/dist/runtime/domains/data-table/columns/resolve-data-column.js +10 -5
- package/dist/runtime/domains/data-table/columns/resolve-special-columns.js +14 -8
- package/dist/runtime/domains/data-table/components/ColumnSettings.d.vue.ts +20 -0
- package/dist/runtime/domains/data-table/components/ColumnSettings.vue +63 -0
- package/dist/runtime/domains/data-table/components/ColumnSettings.vue.d.ts +20 -0
- package/dist/runtime/domains/data-table/components/Pagination.d.vue.ts +2 -8
- package/dist/runtime/domains/data-table/components/Pagination.vue +34 -36
- package/dist/runtime/domains/data-table/components/Pagination.vue.d.ts +2 -8
- package/dist/runtime/domains/data-table/export.d.ts +23 -0
- package/dist/runtime/domains/data-table/export.js +43 -0
- package/dist/runtime/domains/data-table/load-more.d.ts +8 -0
- package/dist/runtime/domains/data-table/load-more.js +14 -0
- package/dist/runtime/domains/data-table/pagination.d.ts +29 -0
- package/dist/runtime/domains/data-table/pagination.js +42 -0
- package/dist/runtime/domains/data-table/persist.d.ts +12 -0
- package/dist/runtime/domains/data-table/persist.js +41 -0
- package/dist/runtime/domains/data-table/state/keys.d.ts +11 -0
- package/dist/runtime/domains/data-table/state/keys.js +44 -0
- package/dist/runtime/domains/data-table/state/models.d.ts +5 -0
- package/dist/runtime/domains/data-table/state/models.js +38 -0
- package/dist/runtime/domains/data-table/tree-layout.d.ts +13 -0
- package/dist/runtime/domains/data-table/tree-layout.js +30 -0
- package/dist/runtime/domains/theme/theme-color.d.ts +3 -0
- package/dist/runtime/domains/theme/theme-color.js +16 -0
- package/dist/runtime/domains/theme/theme-fouc.d.ts +5 -0
- package/dist/runtime/domains/theme/theme-fouc.js +43 -0
- package/dist/runtime/domains/tree/components/TreeToolbar.d.vue.ts +7 -5
- package/dist/runtime/domains/tree/components/TreeToolbar.vue +6 -4
- package/dist/runtime/domains/tree/components/TreeToolbar.vue.d.ts +7 -5
- package/dist/runtime/domains/tree/tree-disabled.d.ts +5 -0
- package/dist/runtime/domains/tree/tree-disabled.js +15 -0
- package/dist/runtime/domains/tree/tree-lazy.d.ts +8 -0
- package/dist/runtime/domains/tree/tree-lazy.js +19 -1
- package/dist/runtime/domains/tree/tree-search.d.ts +3 -1
- package/dist/runtime/domains/tree/tree-search.js +4 -0
- package/dist/runtime/domains/tree/useTreeLazy.d.ts +22 -0
- package/dist/runtime/domains/tree/useTreeLazy.js +57 -0
- package/dist/runtime/domains/tree/useTreeSearch.d.ts +27 -0
- package/dist/runtime/domains/tree/useTreeSearch.js +59 -0
- package/dist/runtime/domains/tree/useTreeSelection.d.ts +31 -0
- package/dist/runtime/domains/tree/useTreeSelection.js +89 -0
- package/dist/runtime/domains/zod/apply.d.ts +23 -0
- package/dist/runtime/domains/zod/apply.js +26 -0
- package/dist/runtime/domains/zod/error-map.d.ts +13 -0
- package/dist/runtime/domains/zod/error-map.js +19 -0
- package/dist/runtime/domains/zod/locale-map.d.ts +5 -0
- package/dist/runtime/domains/zod/locale-map.js +17 -0
- package/dist/runtime/domains/zod/sync.d.ts +12 -0
- package/dist/runtime/domains/zod/sync.js +30 -0
- package/dist/runtime/locale/en.d.ts +74 -0
- package/dist/runtime/locale/en.js +73 -0
- package/dist/runtime/locale/index.d.ts +8 -0
- package/dist/runtime/locale/index.js +15 -0
- package/dist/runtime/locale/zh_cn.d.ts +74 -0
- package/dist/runtime/locale/zh_cn.js +73 -0
- package/dist/runtime/plugins/api.factory.js +5 -22
- package/dist/runtime/plugins/theme.js +4 -42
- package/dist/runtime/plugins/zod.d.ts +2 -0
- package/dist/runtime/plugins/zod.js +16 -0
- package/dist/runtime/types/api/config.d.ts +12 -0
- package/dist/runtime/types/api/fetch.d.ts +3 -16
- package/dist/runtime/types/api/index.d.ts +1 -1
- package/dist/runtime/types/api/response.d.ts +33 -19
- package/dist/runtime/types/api/stream.d.ts +2 -3
- package/dist/runtime/types/api/transfer.d.ts +3 -7
- package/dist/runtime/types/auto-form/base.d.ts +9 -1
- package/dist/runtime/types/auto-form/component.d.ts +31 -3
- package/dist/runtime/types/auto-form/fields.d.ts +15 -1
- package/dist/runtime/types/auto-form/index.d.ts +3 -3
- package/dist/runtime/types/auto-form/search-form.d.ts +26 -12
- package/dist/runtime/types/auto-form/zod-factory.d.ts +2 -2
- package/dist/runtime/types/components/date-picker.d.ts +14 -3
- package/dist/runtime/types/components/index.d.ts +1 -6
- package/dist/runtime/types/components/message-box.d.ts +5 -18
- package/dist/runtime/types/components/tree.d.ts +17 -14
- package/dist/runtime/types/data-table/columns.d.ts +6 -14
- package/dist/runtime/types/data-table/component.d.ts +42 -1
- package/dist/runtime/types/data-table/index.d.ts +1 -1
- package/dist/runtime/types/data-table/pagination.d.ts +7 -8
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/locale.d.ts +82 -0
- package/dist/runtime/types/shared.d.ts +13 -0
- package/dist/runtime/types/zod-config.d.ts +38 -0
- package/dist/runtime/types/zod.d.ts +9 -1
- package/dist/runtime/utils/date/convert.d.ts +29 -0
- package/dist/runtime/utils/date/convert.js +93 -0
- package/dist/runtime/utils/date/guards.d.ts +10 -0
- package/dist/runtime/utils/date/guards.js +18 -0
- package/dist/runtime/utils/extend-theme.js +2 -1
- package/dist/runtime/utils/form-control.d.ts +0 -12
- package/dist/runtime/utils/form-control.js +3 -39
- package/dist/runtime/utils/interpolate.d.ts +2 -0
- package/dist/runtime/utils/interpolate.js +4 -0
- package/dist/runtime/utils/theme-defaults.d.ts +10 -0
- package/dist/runtime/utils/theme-defaults.js +9 -0
- package/dist/runtime/utils/tree-selection.d.ts +2 -15
- package/dist/runtime/utils/tv.d.ts +1 -1
- package/dist/runtime/vue/plugins/zod.d.ts +7 -0
- package/dist/runtime/vue/plugins/zod.js +12 -0
- package/dist/shared/{nuxt.C7xx2FPO.mjs → nuxt.CbmfnBRt.mjs} +92 -236
- package/dist/unplugin.d.mts +3 -2
- package/dist/unplugin.mjs +22 -22
- package/dist/vite.d.mts +1 -0
- package/dist/vite.mjs +2 -1
- package/package.json +40 -34
- package/vue-plugin.d.ts +7 -1
- package/dist/runtime/components/ColorChooser.d.vue.ts +0 -36
- package/dist/runtime/components/ColorChooser.vue +0 -328
- package/dist/runtime/components/ColorChooser.vue.d.ts +0 -36
- package/dist/runtime/components/PillGroup.d.vue.ts +0 -33
- package/dist/runtime/components/PillGroup.vue +0 -291
- package/dist/runtime/components/PillGroup.vue.d.ts +0 -33
- package/dist/runtime/components/Popconfirm.d.vue.ts +0 -30
- package/dist/runtime/components/Popconfirm.vue +0 -143
- package/dist/runtime/components/Popconfirm.vue.d.ts +0 -30
- package/dist/runtime/components/SlideVerify.d.vue.ts +0 -41
- package/dist/runtime/components/SlideVerify.vue +0 -174
- package/dist/runtime/components/SlideVerify.vue.d.ts +0 -41
- package/dist/runtime/components/input/AsPhoneNumberInput.d.vue.ts +0 -32
- package/dist/runtime/components/input/AsPhoneNumberInput.vue +0 -48
- package/dist/runtime/components/input/AsPhoneNumberInput.vue.d.ts +0 -32
- package/dist/runtime/components/input/WithCharacterLimit.d.vue.ts +0 -32
- package/dist/runtime/components/input/WithCharacterLimit.vue +0 -54
- package/dist/runtime/components/input/WithCharacterLimit.vue.d.ts +0 -32
- package/dist/runtime/components/input/WithClear.d.vue.ts +0 -33
- package/dist/runtime/components/input/WithClear.vue +0 -60
- package/dist/runtime/components/input/WithClear.vue.d.ts +0 -33
- package/dist/runtime/components/input/WithCopy.d.vue.ts +0 -33
- package/dist/runtime/components/input/WithCopy.vue +0 -66
- package/dist/runtime/components/input/WithCopy.vue.d.ts +0 -33
- package/dist/runtime/components/input/WithFloatingLabel.d.vue.ts +0 -33
- package/dist/runtime/components/input/WithFloatingLabel.vue +0 -75
- package/dist/runtime/components/input/WithFloatingLabel.vue.d.ts +0 -33
- package/dist/runtime/components/input/WithPasswordToggle.d.vue.ts +0 -32
- package/dist/runtime/components/input/WithPasswordToggle.vue +0 -61
- package/dist/runtime/components/input/WithPasswordToggle.vue.d.ts +0 -32
- package/dist/runtime/domains/api/interceptors/compose.d.ts +0 -24
- package/dist/runtime/domains/api/interceptors/compose.js +0 -18
- package/dist/runtime/domains/api/interceptors/error.d.ts +0 -13
- package/dist/runtime/domains/api/interceptors/error.js +0 -49
- package/dist/runtime/domains/api/transfer.d.ts +0 -69
- package/dist/runtime/domains/api/transfer.js +0 -82
- package/dist/runtime/types/components/color-chooser.d.ts +0 -109
- package/dist/runtime/types/components/input/as-phone-number-input.d.ts +0 -17
- package/dist/runtime/types/components/input/index.d.ts +0 -6
- package/dist/runtime/types/components/input/index.js +0 -0
- package/dist/runtime/types/components/input/with-character-limit.d.ts +0 -11
- package/dist/runtime/types/components/input/with-character-limit.js +0 -0
- package/dist/runtime/types/components/input/with-clear.d.ts +0 -10
- package/dist/runtime/types/components/input/with-clear.js +0 -0
- package/dist/runtime/types/components/input/with-copy.d.ts +0 -11
- package/dist/runtime/types/components/input/with-copy.js +0 -0
- package/dist/runtime/types/components/input/with-floating-label.d.ts +0 -12
- package/dist/runtime/types/components/input/with-floating-label.js +0 -0
- package/dist/runtime/types/components/input/with-password-toggle.d.ts +0 -7
- package/dist/runtime/types/components/input/with-password-toggle.js +0 -0
- package/dist/runtime/types/components/pill-group.d.ts +0 -103
- package/dist/runtime/types/components/pill-group.js +0 -0
- package/dist/runtime/types/components/popconfirm.d.ts +0 -74
- package/dist/runtime/types/components/popconfirm.js +0 -0
- package/dist/runtime/types/components/slide-verify.d.ts +0 -54
- package/dist/runtime/types/components/slide-verify.js +0 -0
- /package/dist/runtime/types/{components/color-chooser.js → locale.js} +0 -0
- /package/dist/runtime/types/{components/input/as-phone-number-input.js → zod-config.js} +0 -0
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import type { VNode } from 'vue';
|
|
2
|
-
import type { ButtonProps, ColorPickerProps, IconProps, PopoverProps } from '@nuxt/ui';
|
|
3
|
-
import type { OmitByKey } from '@movk/core';
|
|
4
|
-
import type { ClassNameValue } from '../shared';
|
|
5
|
-
type PopoverMode = 'click' | 'hover';
|
|
6
|
-
export type ColorFormat = NonNullable<ColorPickerProps['format']>;
|
|
7
|
-
export type ColorChooserTrigger = 'button' | 'chip' | 'input';
|
|
8
|
-
export interface ColorChooserProps<M extends PopoverMode = PopoverMode> extends /** @vue-ignore */ OmitByKey<PopoverProps<M>, 'open' | 'defaultOpen' | 'ui'> {
|
|
9
|
-
id?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
/**
|
|
12
|
-
* 当前激活的颜色格式。
|
|
13
|
-
* @defaultValue 'hex'
|
|
14
|
-
*/
|
|
15
|
-
format?: ColorFormat;
|
|
16
|
-
/**
|
|
17
|
-
* 启用的颜色格式 tab 列表,长度 >= 2 时在 popover 顶部渲染切换器。
|
|
18
|
-
* 仅一项时不渲染 tab,等价于 `format`。
|
|
19
|
-
* @defaultValue ['hex']
|
|
20
|
-
*/
|
|
21
|
-
formats?: ColorFormat[];
|
|
22
|
-
/**
|
|
23
|
-
* 预设色板。
|
|
24
|
-
* 一维数组渲染为单行,二维数组渲染为多行分组。
|
|
25
|
-
*/
|
|
26
|
-
swatches?: string[] | string[][];
|
|
27
|
-
/**
|
|
28
|
-
* 点击预设色后是否自动关闭弹层。
|
|
29
|
-
* @defaultValue true
|
|
30
|
-
*/
|
|
31
|
-
closeOnSwatch?: boolean;
|
|
32
|
-
/** 是否在底部 actions 区显示清除按钮。 */
|
|
33
|
-
clearable?: boolean;
|
|
34
|
-
/** actions 区显示复制按钮(基于 navigator.clipboard)。 */
|
|
35
|
-
copyable?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* 触发器形态。
|
|
38
|
-
* - `button`:色点 + 色值 / label 的常规按钮(默认)
|
|
39
|
-
* - `chip`:仅一个圆形色点
|
|
40
|
-
* - `input`:色点 leading + 可输入色值文本框
|
|
41
|
-
* @defaultValue 'button'
|
|
42
|
-
*/
|
|
43
|
-
trigger?: ColorChooserTrigger;
|
|
44
|
-
/** `trigger='button'` 时按钮上的文本,未传则显示当前色值。 */
|
|
45
|
-
label?: string;
|
|
46
|
-
/**
|
|
47
|
-
* 未选中颜色时的占位文案。
|
|
48
|
-
* @defaultValue '选择颜色'
|
|
49
|
-
*/
|
|
50
|
-
placeholder?: string;
|
|
51
|
-
/**
|
|
52
|
-
* 触发器尺寸,同时驱动主题 size variant。
|
|
53
|
-
* @defaultValue 'md'
|
|
54
|
-
*/
|
|
55
|
-
size?: ButtonProps['size'];
|
|
56
|
-
/** 触发按钮的颜色(trigger=button|chip 生效)。 */
|
|
57
|
-
color?: ButtonProps['color'];
|
|
58
|
-
/**
|
|
59
|
-
* 触发按钮的视觉变体(trigger=button|chip 生效)。
|
|
60
|
-
* @defaultValue 'subtle'
|
|
61
|
-
*/
|
|
62
|
-
variant?: ButtonProps['variant'];
|
|
63
|
-
/** 是否禁用。禁用时弹层不会打开、所有交互失效。 */
|
|
64
|
-
disabled?: boolean;
|
|
65
|
-
/** Highlight the ring color like a focus state. */
|
|
66
|
-
highlight?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* 未选中颜色时占位的图标。
|
|
69
|
-
* @IconifyIcon
|
|
70
|
-
* @defaultValue 'i-lucide-palette'
|
|
71
|
-
*/
|
|
72
|
-
icon?: IconProps['name'];
|
|
73
|
-
/**
|
|
74
|
-
* 透传给 `UColorPicker` 的属性。
|
|
75
|
-
* `modelValue`、`format`、`disabled` 由组件内部托管。
|
|
76
|
-
*/
|
|
77
|
-
colorPickerProps?: Omit<ColorPickerProps, 'modelValue' | 'format' | 'disabled'>;
|
|
78
|
-
ui?: Record<string, ClassNameValue>;
|
|
79
|
-
}
|
|
80
|
-
export interface ColorChooserEmits {
|
|
81
|
-
'update:modelValue': [value: string | undefined];
|
|
82
|
-
'update:open': [open: boolean];
|
|
83
|
-
'change': [value: string | undefined];
|
|
84
|
-
'clear': [];
|
|
85
|
-
'copy': [value: string];
|
|
86
|
-
'format-change': [format: ColorFormat];
|
|
87
|
-
}
|
|
88
|
-
export interface ColorChooserSlots {
|
|
89
|
-
default?(props: {
|
|
90
|
-
open: boolean;
|
|
91
|
-
value: string | undefined;
|
|
92
|
-
}): VNode[];
|
|
93
|
-
leading?(props: {
|
|
94
|
-
value: string | undefined;
|
|
95
|
-
}): VNode[];
|
|
96
|
-
trailing?(props: {
|
|
97
|
-
value: string | undefined;
|
|
98
|
-
}): VNode[];
|
|
99
|
-
swatches?(props: {
|
|
100
|
-
swatches: string[][];
|
|
101
|
-
select: (color: string) => void;
|
|
102
|
-
}): VNode[];
|
|
103
|
-
actions?(props: {
|
|
104
|
-
value: string | undefined;
|
|
105
|
-
copy: () => void;
|
|
106
|
-
clear: () => void;
|
|
107
|
-
}): VNode[];
|
|
108
|
-
}
|
|
109
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { InputProps, InputValue } from '@nuxt/ui';
|
|
2
|
-
import type { OmitByKey } from '@movk/core';
|
|
3
|
-
import type { ClassNameValue } from '../../shared';
|
|
4
|
-
export interface AsPhoneNumberInputProps<T extends InputValue = InputValue> extends /** @vue-ignore */ OmitByKey<InputProps<T>, 'type' | 'modelValue' | 'ui'> {
|
|
5
|
-
/**
|
|
6
|
-
* 输入掩码格式,`#` 表示一个数字位。
|
|
7
|
-
* @defaultValue '(###) ###-####'
|
|
8
|
-
*/
|
|
9
|
-
mask?: string;
|
|
10
|
-
/**
|
|
11
|
-
* 区号前缀
|
|
12
|
-
* @defaultValue '+86'
|
|
13
|
-
* @example '+1'、'+44'
|
|
14
|
-
*/
|
|
15
|
-
dialCode?: string;
|
|
16
|
-
ui?: Record<string, ClassNameValue>;
|
|
17
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type { AsPhoneNumberInputProps } from './as-phone-number-input';
|
|
2
|
-
export type { WithCharacterLimitProps } from './with-character-limit';
|
|
3
|
-
export type { WithClearEmits, WithClearProps } from './with-clear';
|
|
4
|
-
export type { WithCopyEmits, WithCopyProps } from './with-copy';
|
|
5
|
-
export type { WithFloatingLabelEmits, WithFloatingLabelProps } from './with-floating-label';
|
|
6
|
-
export type { WithPasswordToggleProps } from './with-password-toggle';
|
|
File without changes
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { InputProps, InputValue } from '@nuxt/ui';
|
|
2
|
-
import type { OmitByKey } from '@movk/core';
|
|
3
|
-
import type { ClassNameValue } from '../../shared';
|
|
4
|
-
export interface WithCharacterLimitProps<T extends InputValue = InputValue> extends /** @vue-ignore */ OmitByKey<InputProps<T>, 'modelValue' | 'ui'> {
|
|
5
|
-
/**
|
|
6
|
-
* 最大允许输入的字符数
|
|
7
|
-
* @defaultValue 50
|
|
8
|
-
*/
|
|
9
|
-
maxLength?: number;
|
|
10
|
-
ui?: Record<string, ClassNameValue>;
|
|
11
|
-
}
|
|
File without changes
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps, InputEmits, InputProps, InputValue } from '@nuxt/ui';
|
|
2
|
-
import type { OmitByKey } from '@movk/core';
|
|
3
|
-
import type { ClassNameValue } from '../../shared';
|
|
4
|
-
export interface WithClearProps<T extends InputValue = InputValue> extends /** @vue-ignore */ OmitByKey<InputProps<T>, 'modelValue' | 'ui'> {
|
|
5
|
-
buttonProps?: ButtonProps;
|
|
6
|
-
ui?: Record<string, ClassNameValue>;
|
|
7
|
-
}
|
|
8
|
-
export type WithClearEmits<T extends InputValue = InputValue> = InputEmits<T> & {
|
|
9
|
-
clear: [];
|
|
10
|
-
};
|
|
File without changes
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps, InputEmits, InputProps, InputValue, TooltipProps } from '@nuxt/ui';
|
|
2
|
-
import type { OmitByKey } from '@movk/core';
|
|
3
|
-
import type { ClassNameValue } from '../../shared';
|
|
4
|
-
export interface WithCopyProps<T extends InputValue = InputValue> extends /** @vue-ignore */ OmitByKey<InputProps<T>, 'modelValue' | 'ui'> {
|
|
5
|
-
buttonProps?: ButtonProps;
|
|
6
|
-
tooltipProps?: TooltipProps;
|
|
7
|
-
ui?: Record<string, ClassNameValue>;
|
|
8
|
-
}
|
|
9
|
-
export type WithCopyEmits<T extends InputValue = InputValue> = InputEmits<T> & {
|
|
10
|
-
copy: [value: string];
|
|
11
|
-
};
|
|
File without changes
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps, InputEmits, InputProps, InputValue } from '@nuxt/ui';
|
|
2
|
-
import type { OmitByKey } from '@movk/core';
|
|
3
|
-
import type { ClassNameValue } from '../../shared';
|
|
4
|
-
export interface WithFloatingLabelProps<T extends InputValue = InputValue> extends /** @vue-ignore */ OmitByKey<InputProps<T>, 'modelValue' | 'size' | 'ui'> {
|
|
5
|
-
label?: string;
|
|
6
|
-
size?: InputProps<T>['size'];
|
|
7
|
-
clearButtonProps?: ButtonProps;
|
|
8
|
-
ui?: Record<string, ClassNameValue>;
|
|
9
|
-
}
|
|
10
|
-
export type WithFloatingLabelEmits<T extends InputValue = InputValue> = InputEmits<T> & {
|
|
11
|
-
clear: [];
|
|
12
|
-
};
|
|
File without changes
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ButtonProps, InputProps, InputValue } from '@nuxt/ui';
|
|
2
|
-
import type { OmitByKey } from '@movk/core';
|
|
3
|
-
import type { ClassNameValue } from '../../shared';
|
|
4
|
-
export interface WithPasswordToggleProps<T extends InputValue = InputValue> extends /** @vue-ignore */ OmitByKey<InputProps<T>, 'type' | 'modelValue' | 'ui'> {
|
|
5
|
-
buttonProps?: ButtonProps;
|
|
6
|
-
ui?: Record<string, ClassNameValue>;
|
|
7
|
-
}
|
|
File without changes
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import type { VNode } from 'vue';
|
|
2
|
-
import type { AcceptableValue, AvatarProps, ButtonProps, GetItemKeys, GetModelValue } from '@nuxt/ui';
|
|
3
|
-
import type { ClassNameValue } from '../shared';
|
|
4
|
-
export type PillGroupValue = AcceptableValue;
|
|
5
|
-
type PillItemUI = 'item' | 'itemWrapper' | 'itemLabel' | 'itemDescription' | 'leading' | 'trailing';
|
|
6
|
-
export type PillItem = PillGroupValue | {
|
|
7
|
-
value?: PillGroupValue;
|
|
8
|
-
label?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
icon?: string;
|
|
12
|
-
avatar?: AvatarProps;
|
|
13
|
-
variant?: ButtonProps['variant'];
|
|
14
|
-
color?: ButtonProps['color'];
|
|
15
|
-
onSelect?: (e: Event) => void;
|
|
16
|
-
class?: ClassNameValue;
|
|
17
|
-
ui?: Partial<Record<PillItemUI, ClassNameValue>>;
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
};
|
|
20
|
-
export interface PillGroupProps<T extends PillItem = PillItem, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> {
|
|
21
|
-
items?: T[];
|
|
22
|
-
valueKey?: VK;
|
|
23
|
-
/** @defaultValue 'label' */
|
|
24
|
-
labelKey?: GetItemKeys<T>;
|
|
25
|
-
/** @defaultValue 'description' */
|
|
26
|
-
descriptionKey?: GetItemKeys<T>;
|
|
27
|
-
/**
|
|
28
|
-
* 对象模式下判定 selected 的比较依据。string 走 `getPath` 比较(multiple=true 时启用 Map O(1));
|
|
29
|
-
* function 自定义比较;不传则按 [valueKey, 'value', labelKey] 启发式回退。
|
|
30
|
-
*/
|
|
31
|
-
by?: string | ((a: T, b: T) => boolean);
|
|
32
|
-
/**
|
|
33
|
-
* 排列方向
|
|
34
|
-
* @defaultValue 'horizontal'
|
|
35
|
-
*/
|
|
36
|
-
orientation?: 'horizontal' | 'vertical';
|
|
37
|
-
/**
|
|
38
|
-
* 按钮尺寸
|
|
39
|
-
* @defaultValue 'md'
|
|
40
|
-
*/
|
|
41
|
-
size?: ButtonProps['size'];
|
|
42
|
-
/**
|
|
43
|
-
* 按钮颜色
|
|
44
|
-
* @defaultValue 'primary'
|
|
45
|
-
*/
|
|
46
|
-
color?: ButtonProps['color'];
|
|
47
|
-
/**
|
|
48
|
-
* 选中态单项视觉变体
|
|
49
|
-
* @defaultValue 'solid'
|
|
50
|
-
*/
|
|
51
|
-
activeVariant?: ButtonProps['variant'];
|
|
52
|
-
/**
|
|
53
|
-
* 未选中态单项视觉变体
|
|
54
|
-
* @defaultValue 'soft'
|
|
55
|
-
*/
|
|
56
|
-
inactiveVariant?: ButtonProps['variant'];
|
|
57
|
-
disabled?: boolean;
|
|
58
|
-
/** 是否可以多选 */
|
|
59
|
-
multiple?: M & boolean;
|
|
60
|
-
/** 单选:再次点击当前选中项清空(多选模式下被忽略) */
|
|
61
|
-
deselectable?: boolean;
|
|
62
|
-
/** 多选:最多可选数量 */
|
|
63
|
-
max?: number;
|
|
64
|
-
/** 多选:最少需保留数量 */
|
|
65
|
-
min?: number;
|
|
66
|
-
defaultValue?: GetModelValue<T, VK, M>;
|
|
67
|
-
modelValue?: GetModelValue<T, VK, M>;
|
|
68
|
-
class?: ClassNameValue;
|
|
69
|
-
ui?: Record<string, ClassNameValue>;
|
|
70
|
-
}
|
|
71
|
-
type ItemSlotProps<T extends PillItem> = (props: {
|
|
72
|
-
item: T;
|
|
73
|
-
index: number;
|
|
74
|
-
selected: boolean;
|
|
75
|
-
}) => VNode[];
|
|
76
|
-
type GroupSlotProps<T extends PillItem, VK extends GetItemKeys<T> | undefined, M extends boolean> = (props: {
|
|
77
|
-
modelValue: GetModelValue<T, VK, M> | undefined;
|
|
78
|
-
items: T[];
|
|
79
|
-
}) => VNode[];
|
|
80
|
-
export interface PillGroupSlots<T extends PillItem = PillItem, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false> {
|
|
81
|
-
'leading'?: GroupSlotProps<T, VK, M>;
|
|
82
|
-
'default'?: GroupSlotProps<T, VK, M>;
|
|
83
|
-
'trailing'?: GroupSlotProps<T, VK, M>;
|
|
84
|
-
'item'?: ItemSlotProps<T>;
|
|
85
|
-
'item-leading'?: ItemSlotProps<T>;
|
|
86
|
-
'item-label'?: ItemSlotProps<T>;
|
|
87
|
-
'item-description'?: ItemSlotProps<T>;
|
|
88
|
-
'item-trailing'?: ItemSlotProps<T>;
|
|
89
|
-
}
|
|
90
|
-
export interface PillSelectPayload<T extends PillItem> {
|
|
91
|
-
item: T;
|
|
92
|
-
value: PillGroupValue | T;
|
|
93
|
-
selected: boolean;
|
|
94
|
-
index: number;
|
|
95
|
-
}
|
|
96
|
-
export interface PillGroupEmits<T extends PillItem, VK extends GetItemKeys<T> | undefined, M extends boolean> {
|
|
97
|
-
'blur': [event: FocusEvent];
|
|
98
|
-
'focus': [event: FocusEvent];
|
|
99
|
-
'change': [value: GetModelValue<T, VK, M>];
|
|
100
|
-
'update:modelValue': [value: GetModelValue<T, VK, M>];
|
|
101
|
-
'select': [payload: PillSelectPayload<T>];
|
|
102
|
-
}
|
|
103
|
-
export {};
|
|
File without changes
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { VNode } from 'vue';
|
|
2
|
-
import type { ButtonProps, IconProps, LinkPropsKeys, PopoverProps, PopoverSlots } from '@nuxt/ui';
|
|
3
|
-
import type { OmitByKey, VoidCallback } from '@movk/core';
|
|
4
|
-
import type { ClassNameValue, SemanticColor } from '../shared';
|
|
5
|
-
type PopoverMode = 'click' | 'hover';
|
|
6
|
-
export interface PopconfirmProps<M extends PopoverMode = PopoverMode> extends /** @vue-ignore */ OmitByKey<PopoverProps<M>, 'open' | 'defaultOpen' | 'dismissible' | 'arrow' | 'ui'> {
|
|
7
|
-
/**
|
|
8
|
-
* 确认气泡的标题文本。
|
|
9
|
-
* @defaultValue '确认操作'
|
|
10
|
-
*/
|
|
11
|
-
title?: string;
|
|
12
|
-
/**
|
|
13
|
-
* 标题下方的补充说明。
|
|
14
|
-
* 传入空字符串时可隐藏描述区。
|
|
15
|
-
* @defaultValue '请确认是否执行此操作?'
|
|
16
|
-
*/
|
|
17
|
-
description?: string;
|
|
18
|
-
/**
|
|
19
|
-
* 预设的语义化颜色主题,会影响图标。
|
|
20
|
-
* @defaultValue 'neutral'
|
|
21
|
-
*/
|
|
22
|
-
type?: SemanticColor;
|
|
23
|
-
/**
|
|
24
|
-
* 标题前展示的图标名称。
|
|
25
|
-
* @IconifyIcon
|
|
26
|
-
* @defaultValue 'i-lucide-circle-question-mark'
|
|
27
|
-
*/
|
|
28
|
-
icon?: IconProps['name'];
|
|
29
|
-
/**
|
|
30
|
-
* 气泡内容与触发器之间的箭头指示。
|
|
31
|
-
* @defaultValue true
|
|
32
|
-
*/
|
|
33
|
-
arrow?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* 透传给确认按钮的属性。
|
|
36
|
-
* `loading` 状态由组件内部托管。
|
|
37
|
-
*/
|
|
38
|
-
confirmButton?: OmitByKey<ButtonProps, 'loading' | LinkPropsKeys>;
|
|
39
|
-
/**
|
|
40
|
-
* 透传给取消按钮的属性。
|
|
41
|
-
* 传入 `false` 可完全隐藏取消按钮。
|
|
42
|
-
* @defaultValue true
|
|
43
|
-
*/
|
|
44
|
-
cancelButton?: ButtonProps | boolean;
|
|
45
|
-
/**
|
|
46
|
-
* 当 `false` 时,点击遮罩层或按下 `Esc` 键将不会关闭弹层。
|
|
47
|
-
* @defaultValue false
|
|
48
|
-
*/
|
|
49
|
-
dismissible?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* 点击确认按钮时执行的回调。
|
|
52
|
-
* 支持返回 `Promise`,期间确认按钮自动进入 loading 状态。
|
|
53
|
-
* 回调成功完成后弹层自动关闭并触发 `confirm` 事件;抛错时保持弹层打开。
|
|
54
|
-
*/
|
|
55
|
-
onConfirm?: VoidCallback;
|
|
56
|
-
ui?: Record<string, ClassNameValue>;
|
|
57
|
-
}
|
|
58
|
-
export interface PopconfirmEmits {
|
|
59
|
-
confirm: [];
|
|
60
|
-
cancel: [];
|
|
61
|
-
error: [error: unknown];
|
|
62
|
-
}
|
|
63
|
-
export interface PopconfirmSlots<M extends PopoverMode = PopoverMode> {
|
|
64
|
-
default?(props: {
|
|
65
|
-
open: boolean;
|
|
66
|
-
}): VNode[];
|
|
67
|
-
header?: PopoverSlots<M>['content'];
|
|
68
|
-
title?: PopoverSlots<M>['content'];
|
|
69
|
-
description?: PopoverSlots<M>['content'];
|
|
70
|
-
actions?: PopoverSlots<M>['content'];
|
|
71
|
-
body?: PopoverSlots<M>['content'];
|
|
72
|
-
footer?: PopoverSlots<M>['content'];
|
|
73
|
-
}
|
|
74
|
-
export {};
|
|
File without changes
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { VNode } from 'vue';
|
|
2
|
-
import type { ClassNameValue } from '../shared';
|
|
3
|
-
import type { IconProps } from '@nuxt/ui';
|
|
4
|
-
export interface SlideVerifyProps {
|
|
5
|
-
id?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
/**
|
|
8
|
-
* 尺寸大小
|
|
9
|
-
* @defaultValue 'md'
|
|
10
|
-
*/
|
|
11
|
-
size?: string;
|
|
12
|
-
/** 是否禁用 */
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* 待滑动时的提示文本
|
|
16
|
-
* @defaultValue '请向右滑动验证'
|
|
17
|
-
*/
|
|
18
|
-
text?: string;
|
|
19
|
-
/**
|
|
20
|
-
* 验证成功时的提示文本
|
|
21
|
-
* @defaultValue '验证成功'
|
|
22
|
-
*/
|
|
23
|
-
successText?: string;
|
|
24
|
-
/**
|
|
25
|
-
* 滑块图标
|
|
26
|
-
* @IconifyIcon
|
|
27
|
-
* @defaultValue 'i-lucide-chevrons-right'
|
|
28
|
-
*/
|
|
29
|
-
icon?: IconProps['name'];
|
|
30
|
-
/**
|
|
31
|
-
* 验证成功时的图标
|
|
32
|
-
* @IconifyIcon
|
|
33
|
-
* @defaultValue 'i-lucide-check'
|
|
34
|
-
*/
|
|
35
|
-
successIcon?: IconProps['name'];
|
|
36
|
-
/**
|
|
37
|
-
* 完成验证所需的阈值百分比(0-1)
|
|
38
|
-
* @defaultValue 0.9
|
|
39
|
-
*/
|
|
40
|
-
threshold?: number;
|
|
41
|
-
class?: ClassNameValue;
|
|
42
|
-
ui?: Record<string, ClassNameValue>;
|
|
43
|
-
}
|
|
44
|
-
export interface SlideVerifyEmits {
|
|
45
|
-
success: [];
|
|
46
|
-
dragStart: [];
|
|
47
|
-
dragEnd: [success: boolean];
|
|
48
|
-
}
|
|
49
|
-
export interface SlideVerifySlots {
|
|
50
|
-
slider?(props: {
|
|
51
|
-
verified?: boolean;
|
|
52
|
-
progress: number;
|
|
53
|
-
}): VNode[];
|
|
54
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|